fix: respect target page restrictions during body section navigation

This commit is contained in:
2026-10-17 20:21:18 +08:00
parent 9a1afd5020
commit d27ad535c6
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -169,6 +169,7 @@ def test_plan_navigation_finds_future_work_body_despite_nonempty_semantic_hits(s
"page_type": "body", "text": noise.text, "rank": .03}])
assert any(hit["page"] == 14 and "t0" in hit["target_ids"] for hit in selected["evidence"])
assert all(hit["page_type"] == "body" for hit in selected["evidence"])
assert navigator({**targets[0], "allowed_page_types": ["appendix"]}) == []
def test_heading_navigation_supplements_existing_hits_for_custom_labels():