Skip to content

Staging - #320

Merged
suguanYang merged 16 commits into
stagingfrom
main
Aug 24, 2026
Merged

Staging#320
suguanYang merged 16 commits into
stagingfrom
main

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

No description provided.

EricNGOntos and others added 14 commits August 21, 2026 19:22
… and normalize_match_text

- Updated multiple files to replace instances of normalize_heading_text with the new function normalize_heading_label for improved heading normalization.
- Introduced normalize_match_text for consistent text matching, ensuring CJK-aware spacing and case-insensitivity.
- Adjusted related functions and tests to reflect these changes, enhancing overall text processing accuracy.
- Replaced the read_page_texts function with read_page_text_bands to extract page content, header, and footer as structured PageTextBands.
- Updated ProfileCoordinator and related services to accommodate the new text extraction method, ensuring compatibility with existing workflows.
- Adjusted the blackboard state to include page_text_search_view and modified tests to validate the new structure and functionality.
- Enhanced overall text processing by introducing a more granular approach to handling page content.
…functionality

- Updated the null-page locating logic to differentiate between leaves and parents, improving the handling of null-page nodes.
- Introduced a new function, locate_null_page_parent_overrides, to locate null-page parents using sibling windows, enhancing the accuracy of parent-child relationships.
- Adjusted existing functions to accommodate the new parent locating logic, ensuring compatibility with the overall document structure.
- Refined test cases to validate the new functionality and ensure robustness in null-page handling.
- Updated the strip_margin_text function to support edge-specific margin stripping for headers and footers, improving content extraction accuracy.
- Introduced a new utility function, apply_null_page_locates_and_prune, to streamline null-page processing and enhance the handling of parent-child relationships in document structures.
- Refactored related functions and tests to ensure compatibility with the new logic, improving overall robustness in null-page handling and text processing.
- Enhanced test coverage for edge cases in margin stripping and null-page processing to validate the new functionality.
…indows

- Refactored the anchor_hierarchy_from_regimes function to enhance clarity and maintainability, specifically in the handling of structural parent paths.
- Introduced a new function, progressive_page_windows, to generate non-overlapping page windows for scanning, improving the efficiency of page inspections.
- Updated scan_title_forward to utilize the new progressive page windows function, ensuring better management of page scanning logic.
- Adjusted related tests to validate the new functionality and ensure robustness in null-page processing and page window generation.
Anchor all remaining printed nodes from nearest regime offset before
null-page ReAct, and use preorder max confirmed pages for probe left
bounds so nested appendices keep a usable search window.

Co-authored-by: Cursor <cursoragent@cursor.com>
Avoid PageTextBands class-identity mismatch when a prior contract fixture
clears app.* modules mid-suite.

Co-authored-by: Cursor <cursoragent@cursor.com>
fix: null-page probe bounds and printed-page offset backfill
Avoid PageTextBands/grep_text class-identity mismatch when other contract
fixtures clear app.* mid-suite, matching the anchoring contract pattern.

Co-authored-by: Cursor <cursoragent@cursor.com>
…ort-rebind

test: rebind live tool imports in smoke contract after module clear
- Changed the calculation of inspect_calls to sum the number of scanned pages instead of rounds.
- Introduced concurrent page inspection to improve efficiency in the scan_title_forward function.
- Updated related functions and tests to reflect the new inspection logic, ensuring accurate results and error handling.
- Enhanced test cases to validate the new single-page inspection approach and its impact on scanning behavior.
…concurrent-pages

fix: concurrent single-page calibration scan and null-page planner JSON
Fall back once to direct upload when an accepted URL-mode task reaches a terminal failed state, avoiding AWS URL accessibility failures without retrying unrelated polling errors.

Co-authored-by: Cursor <cursoragent@cursor.com>
fix: retry failed MinerU URL tasks via direct upload
Comment thread apps/worker/app/services/document_agent/pdf_text.py Fixed
Comment thread apps/worker/tests/contract/test_structure_anchoring_contract.py Fixed
Comment thread apps/worker/tests/contract/test_structure_anchoring_contract.py Fixed
suguanYang and others added 2 commits August 24, 2026 18:05
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@suguanYang
suguanYang merged commit 69c557e into staging Aug 24, 2026
6 checks passed
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.

3 participants