Skip to content

refactor: calibration phase1 probe and debug script cleanup - #311

Merged
EricNGOntos merged 3 commits into
mainfrom
refactor/wuchengke/calibration-phase1-probe
Aug 20, 2026
Merged

refactor: calibration phase1 probe and debug script cleanup#311
EricNGOntos merged 3 commits into
mainfrom
refactor/wuchengke/calibration-phase1-probe

Conversation

@EricNGOntos

Copy link
Copy Markdown
Contributor

Summary

  • Tighten calibration phase 1 probe logic and expand contract coverage.
  • Remove deprecated debug_parse.py and align page-memory/debug script helpers with the current track-split workflow.
  • Refresh AGENTS.md debug-script notes for TEXT-TRACK vs PAGE-TRACK.

Test plan

  • make check (lint + typecheck)
  • pytest apps/worker/tests/contract/test_calibration_phase1_contract.py
  • Confirm PR CI (Lint / Typecheck / Test / CodeQL / Gitleaks) is green before merge

Made with Cursor

- Added new debug scripts for PDF/PPT track-split debugging and page memory staged debugging.
- Removed the unified debug_parse.py script, consolidating its functionality into more specialized scripts.
- Updated the pptx_to_pdf_api function documentation for clarity.
- Enhanced the page_memory argument parser to include a clean option for output directory management.
- Updated the probing mechanism to ensure distinct printed pages are used for each regime, preventing duplicate entries.
- Adjusted the scanning start logic to prioritize the printed page over the TOC end, ensuring offsets are non-negative.
- Added new tests to validate the updated probing behavior and confirm that the scanning logic adheres to the new rules.
- Renamed and updated debug scripts for page memory stages, reflecting changes in the debugging process.
- Removed deprecated Stage 3 and Stage 4 scripts, consolidating their functionality into more streamlined processes.
- Adjusted documentation and argument parsing to align with the new script structure and improve clarity.
- Updated references in shared utilities to reflect the removal of obsolete stages.
@EricNGOntos
EricNGOntos merged commit 89d917f into main Aug 20, 2026
6 checks passed
@EricNGOntos
EricNGOntos deleted the refactor/wuchengke/calibration-phase1-probe branch August 20, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant