Skip to content

feat: TOC outline keep/null-page react + nav node filter - #371

Merged
EricNGOntos merged 4 commits into
mainfrom
feat/wuchengke/2026-09-01
Sep 1, 2026
Merged

feat: TOC outline keep/null-page react + nav node filter#371
EricNGOntos merged 4 commits into
mainfrom
feat/wuchengke/2026-09-01

Conversation

@EricNGOntos

Copy link
Copy Markdown
Contributor

Summary

  • TOC outline: keep no-page bookmark nodes for judge fairness; feed only paged destinations into anchoring so null-page ReAct is not flooded by truncated destinations.
  • Null-page ReAct planner: reduce merged titles to semantic body (strip trailing codes) before metadata-only queries; align pipeline skill notes with parent-first locate.
  • Retrieval map-nav: node/scope filter tooling and related nav cleanup from today's branch work.

Test plan

  • make check (ruff + pyright) green locally after rebase onto origin/main
  • Outline/null-page contract tests for changed paths
  • SJSYJ text_track --stop-at profile: null-page probe 5/5 after planner prompt update
  • Remote PR CI green before merge

Made with Cursor

This commit introduces a node filtering feature to enhance the retrieval process. Key additions include configuration options for enabling node filtering, setting filter parameters, and updating relevant functions to support filtering logic. The changes also include updates to the decision trace to log node filter actions and their outcomes, ensuring better tracking of retrieval decisions. Additionally, tests have been added to validate the new functionality.
…eatures

This commit refactors the navigation configuration by removing unused parameters and features, including `navigate_max_steps`, `enable_depth0_oversize_to_dispatch`, and `depth0_oversize_char_limit`. The `RegionReport` class has also been eliminated, simplifying the codebase. Additionally, adjustments have been made to the decision trace and related functions to reflect these changes, ensuring a cleaner and more efficient navigation process.
This commit refines the TOC anchoring logic by ensuring that only resolvable outline destinations are consumed, improving the handling of null-page entries. The `_find_toc_text_matches` function is updated to match TOC keywords based on line-level containment rather than whole-line equality, enhancing accuracy. Additionally, the outline processing functions are restructured to retain no-page destinations, ensuring they are correctly represented in the output. Debugging and persistence mechanisms for outline roots are also introduced to support Stage-2 processing.
This commit updates the instructions for deriving the semantic title body from the given title. The changes emphasize the importance of stripping leading prefixes and trailing metadata qualifiers while ensuring that the semantic body is prioritized over any metadata-only queries. This refinement aims to enhance the accuracy of title processing in the document agent's structure.
@EricNGOntos
EricNGOntos merged commit ee0e424 into main Sep 1, 2026
6 checks passed
@EricNGOntos
EricNGOntos deleted the feat/wuchengke/2026-09-01 branch September 1, 2026 08:00
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