lllin000_PaperForge/tests
Research Assistant 33f7b480cc fix(ocr-structural-gate): scope source-anchor override to same page to prevent block_id collision
The source-anchor override for authors matched block_id=2 on EVERY page,
not just page 1. Added page check: only accept anchored role if block is
on the same page as the source anchor. Prevents section headings,
reference items, and figure captions from being misclassified as authors.

Also updated regenerate_traces.py sys.path to use main checkout instead
of worktree, and regenerated both DW (287 blocks) and CAQ (153 blocks)
traces.
2026-06-14 12:42:28 +08:00
..
audit fix: add audit test conftest (golden_vault fixture was missing from git tracking) 2026-05-09 17:41:17 +08:00
chaos test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
cli chore: update status JSON snapshot for legacy backfilled fields 2026-06-05 13:00:40 +08:00
e2e test: add legacy OCR backfill e2e smoke test procedure 2026-06-05 13:01:15 +08:00
fixtures fix(ocr-structural-gate): scope source-anchor override to same page to prevent block_id collision 2026-06-14 12:42:28 +08:00
integration test(memory): add integration test for memory build/status workflow 2026-05-12 17:59:37 +08:00
journey test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
sandbox test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
unit test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
conftest.py test: update fixtures to {key}.md filename format (red phase) 2026-05-11 21:09:36 +08:00
test_asset_index.py feat: preserve user tags during sync 2026-05-31 20:01:16 +08:00
test_asset_index_integration.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_asset_state.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_base_preservation.py fix: minimal-intervention base sanitizer — dedup, fix syntax, preserve content, ensure 4 standard views 2026-06-01 13:05:18 +08:00
test_base_views.py feat: add ocr_time frontmatter field — tracks last OCR completion time, shown in 重做OCR view 2026-06-01 15:36:11 +08:00
test_cli_paths.py fix: VaultStep.__init__ missing step_id and checker in super() call 2026-04-27 19:49:36 +08:00
test_cli_worker_dispatch.py fix: CI dispatch tests — mock at SyncService level, restore --selection/--index flags 2026-05-09 22:42:53 +08:00
test_command_docs.py feat: stabilize paperforge query planning 2026-05-27 21:20:15 +08:00
test_config.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_context.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_discussion.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_doctor.py chore: rename PaperForge Lite -> PaperForge across 27 files 2026-04-28 01:25:51 +08:00
test_e2e_cli.py test: update fixtures to {key}.md filename format (red phase) 2026-05-11 21:09:36 +08:00
test_e2e_pipeline.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_legacy_ocr_backfill.py feat: add legacy OCR backfill-from-result rebuild path 2026-06-05 12:57:01 +08:00
test_legacy_worker_compat.py refactor(17-dead-code-precommit): remove delegation wrappers and dead code, run ruff cleanup 2026-04-27 17:40:47 +08:00
test_literature_hub_regressions.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_migration.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_ocr.py test: lock OCR phase5 role index contract 2026-06-05 12:11:51 +08:00
test_ocr_artifact_paths_config.py fix: route OCR artifact paths through configured OCR root 2026-06-04 23:50:20 +08:00
test_ocr_artifacts.py feat: wire OCR anchor artifacts 2026-06-09 21:56:23 +08:00
test_ocr_attachments.py feat: add OCR layered modules (roles, body spine, layout, attach) 2026-06-01 00:01:05 +08:00
test_ocr_blocks.py style: ruff format after OCR role gate implementation 2026-06-12 15:11:33 +08:00
test_ocr_classify.py fix: VaultStep.__init__ missing step_id and checker in super() call 2026-04-27 19:49:36 +08:00
test_ocr_decisions.py feat: unify OCR decision statuses 2026-06-09 21:45:51 +08:00
test_ocr_doctor.py feat: surface legacy OCR backfill state in doctor and status diagnostics 2026-06-05 13:00:35 +08:00
test_ocr_document.py fix: normalize biography tail blocks as backmatter 2026-06-14 12:28:51 +08:00
test_ocr_emission_regressions.py feat: add OCR emission layer and regression tests 2026-06-01 00:01:39 +08:00
test_ocr_entrypoints.py style: ruff format after OCR role gate implementation 2026-06-12 15:11:33 +08:00
test_ocr_errors.py feat: classify OCR errors and degraded completions 2026-06-08 12:34:44 +08:00
test_ocr_evidence.py test: lock OCR phase5 evidence object contract 2026-06-05 12:14:18 +08:00
test_ocr_families.py feat: partition OCR families inside zones 2026-06-09 17:49:52 +08:00
test_ocr_figure_reader.py test: complete OCR-v2 gate test coverage and harness integration 2026-06-13 17:21:29 +08:00
test_ocr_figures.py test: complete OCR-v2 gate test coverage and harness integration 2026-06-13 17:21:29 +08:00
test_ocr_health.py test: add missing plan-specified gate health and render tests 2026-06-12 15:21:14 +08:00
test_ocr_high_risk_rule_audit.py feat: OCR risk convergence — scored figure/table matching, layout confidence, insert scorer, health uncertainty metrics 2026-06-08 13:43:48 +08:00
test_ocr_index.py test: lock OCR phase5 role index contract 2026-06-05 12:11:51 +08:00
test_ocr_integration_fixtures.py refactor: reorder OCR anchor-first pipeline 2026-06-10 12:35:45 +08:00
test_ocr_layout_zones.py feat: add OCR region bus inference 2026-06-09 16:55:33 +08:00
test_ocr_metadata.py fix: close OCR real-paper anchor-first regressions 2026-06-10 18:18:48 +08:00
test_ocr_objects.py fix: close OCR figure and legend object gaps 2026-06-10 13:24:08 +08:00
test_ocr_pdf_spans.py fix: map OCR bbox coordinates to PDF space before span extraction 2026-06-06 12:59:06 +08:00
test_ocr_phase41_cleanup.py test: lock OCR phase4.1 runtime cleanup semantics 2026-06-05 12:08:14 +08:00
test_ocr_preflight.py fix: mock PADDLEOCR_API_TOKEN in ocr_preflight + skip doctor verdict on empty output 2026-05-09 18:16:36 +08:00
test_ocr_profiles.py feat: partition OCR families inside zones 2026-06-09 17:49:52 +08:00
test_ocr_reading_order_fixtures.py fix: use REPO_ROOT absolute path in fixture inventory test 2026-05-31 23:55:32 +08:00
test_ocr_real_paper_contract.py docs: classify env-driven tests as audit-only, legacy renderer tests as diagnostic 2026-06-13 16:41:38 +08:00
test_ocr_real_paper_reader_audit.py docs: classify env-driven tests as audit-only, legacy renderer tests as diagnostic 2026-06-13 16:41:38 +08:00
test_ocr_real_paper_regressions.py test: complete OCR-v2 gate test coverage and harness integration 2026-06-13 17:21:29 +08:00
test_ocr_rebuild.py fix: 5 root-cause fixes from real-paper rebuild — Frontiers figure seed, panel label exclusion, page 1 heading override, layout audit severity, first_author fallback 2026-06-08 17:10:51 +08:00
test_ocr_redo.py test: lock OCR phase4 rebuild orchestration contract 2026-06-05 11:17:04 +08:00
test_ocr_render_stabilization.py test: complete OCR-v2 gate test coverage and harness integration 2026-06-13 17:21:29 +08:00
test_ocr_render_v2.py feat: OCR complex layout and sidebar detection overhaul 2026-06-07 21:35:57 +08:00
test_ocr_rendering.py test: lock gap surface for closure remediation 2026-06-14 11:51:10 +08:00
test_ocr_roles.py fix: narrow sidebar heading routing 2026-06-14 11:58:52 +08:00
test_ocr_route_audit.py docs: audit OCR production route and mark experimental modules 2026-06-08 12:13:07 +08:00
test_ocr_runtime_preflight.py feat: add OCR runtime preflight warnings for auto-rebuild 2026-06-05 11:03:22 +08:00
test_ocr_scores.py feat: tighten OCR figure validation matching 2026-06-09 21:13:53 +08:00
test_ocr_signatures.py fix: close OCR real-paper anchor-first regressions 2026-06-10 18:18:48 +08:00
test_ocr_spec_contracts.py test: add OCR-v2 spec-contract test suite 2026-06-13 17:21:15 +08:00
test_ocr_state_machine.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_ocr_structural_gate.py test: complete OCR-v2 gate test coverage and harness integration 2026-06-13 17:21:29 +08:00
test_ocr_synthetic_fixtures.py test: make OCR real-paper regressions reproducible 2026-06-08 12:13:11 +08:00
test_ocr_tables.py test: complete OCR-v2 gate test coverage and harness integration 2026-06-13 17:21:29 +08:00
test_ocr_trace_vs_expectations.py test: add real-paper trace vs expectations regression harness with fixtures 2026-06-13 19:27:38 +08:00
test_ocr_v2_contract_audit.py style: ruff format after OCR role gate implementation 2026-06-12 15:11:33 +08:00
test_ocr_v2_structural_regressions.py fix: close OCR v2 real-paper structural, object, and render gaps 2026-06-12 17:41:57 +08:00
test_ocr_versions.py test: lock OCR phase4 version state contract 2026-06-05 11:08:13 +08:00
test_paper_context_evidence.py test: lock OCR phase5 evidence object contract 2026-06-05 12:14:18 +08:00
test_pdf_resolver.py fix: add creators/extra to load_export_rows row dict, fix journal key lookup for first_author/journal/IF in library-records; add first_author, journal, impact_factor columns to Base views; fix PDF storage/ subdirectory resolution 2026-04-27 20:25:35 +08:00
test_pf_bootstrap_capabilities.py feat: stabilize paperforge query planning 2026-05-27 21:20:15 +08:00
test_plugin_install_bootstrap.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_prepare_rollback.py test: update fixtures to {key}.md filename format (red phase) 2026-05-11 21:09:36 +08:00
test_query_command_diagnostics.py feat: stabilize paperforge query planning 2026-05-27 21:20:15 +08:00
test_query_plan.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_repair.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_retrieve_evidence.py feat: add OCR evidence-aware query routing for phase5 2026-06-05 12:22:15 +08:00
test_search_command_diagnostics.py feat: add OCR evidence-aware query routing for phase5 2026-06-05 12:22:15 +08:00
test_second_pass_cross_validation.py feat: second-pass cross-validation for low-confidence role assignments using span profiles 2026-06-06 11:27:44 +08:00
test_selection_sync_pdf.py refactor: preserve OCR compatibility through renderer v2 2026-06-05 10:42:20 +08:00
test_setup_wizard.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_skill_graph_contracts.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_skill_graph_layout.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_smoke.py fix: v1.4.17rc2 — OCR quote fix, 4-stage lifecycle, .env fallback, Codex support, deep-reading anchors, auto-update pip 2026-05-08 01:26:04 +08:00
test_status.py feat: surface legacy OCR backfill state in doctor and status diagnostics 2026-06-05 13:00:35 +08:00
test_sync.py feat: ocr reading-order fixes, single-source fulltext, redo closed-loop, release notes & manual 2026-06-01 18:12:31 +08:00
test_sync_service_ocr_versions.py test: lock legacy OCR classification contract 2026-06-05 12:52:43 +08:00
test_utils_journal.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_utils_json.py docs(v1.4): commit planning artifacts, test files, and phase summaries for phases 13-19 2026-04-27 19:12:03 +08:00
test_utils_slugify.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_utils_yaml.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00