lllin000_PaperForge/tests
LLLin000 40326d6759 fix: add vec0 k-NN health probe to embed status
embed status now runs a zero-vector k-NN query on each vec0 table
that has companion meta rows. If the probe fails (table dropped,
extension unavailable, index corrupted), healthy=false and
corrupted=true are reported even when meta row counts > 0.

Includes integration test that drops vec_fulltext and verifies
healthy=false.
2026-07-10 23:55:16 +08:00
..
audit feat: figure-number inference for leading Figure 1 gaps 2026-06-26 21:13:24 +08:00
chaos test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
cli Unify PFResult envelope: data.matches with consistent field names, --deep flag 2026-07-10 23:15:16 +08:00
e2e test: add legacy OCR backfill e2e smoke test procedure 2026-06-05 13:01:15 +08:00
fixtures feat(#31): OpenAICompatibleProvider uses openai SDK with requests fallback 2026-07-09 17:15:19 +08:00
integration fix: add vec0 k-NN health probe to embed status 2026-07-10 23:55:16 +08:00
journey test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
sandbox feat: Phase 0, 1, 3a — legacy OCR fix, ChromaDB migration, search bar UI 2026-07-10 00:02:02 +08:00
unit feat: PR 1 — nested structure tree + body_units correctness 2026-07-06 16:42:08 +08:00
conftest.py feat(#31): OpenAICompatibleProvider uses openai SDK with requests fallback 2026-07-09 17:15:19 +08:00
test_appendix_figure_numbering.py feat: Workstream A — OCR object writeback module 2026-07-04 13:16:37 +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 feat: PR D — Base view cleanup 2026-07-05 01:26:34 +08:00
test_base_views.py feat: PR D — Base view cleanup 2026-07-05 01:26:34 +08:00
test_chroma_migration.py feat: Phase 0, 1, 3a — legacy OCR fix, ChromaDB migration, search bar UI 2026-07-10 00:02:02 +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: 3 pre-existing test failures 2026-07-01 22:21:34 +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_deep_search.py feat(#38, #40): version history panel + @ Deep Search 2026-07-10 01:01:48 +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_embed_retrieve.py feat(#27 #28 #29 #30 #32): migrate write/read/status/build_state from ChromaDB to sqlite-vec 2026-07-09 17:52:45 +08:00
test_e2e_ocr_pipeline.py feat(#27 #28 #29 #30 #32): migrate write/read/status/build_state from ChromaDB to sqlite-vec 2026-07-09 17:52:45 +08:00
test_e2e_pipeline.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_embed_integration.py feat(#27 #28 #29 #30 #32): migrate write/read/status/build_state from ChromaDB to sqlite-vec 2026-07-09 17:52:45 +08:00
test_layer4_gateway_commands.py fix: close 4 review gaps — registry, body/object-unit schemas, compat vector arm 2026-07-05 15:13:43 +08:00
test_layer4_lance_backend.py feat: add LanceDB evaluation backend scaffold 2026-07-05 14:19:37 +08:00
test_layer4_paper_lookup.py feat: make paper lookup decomposed and coverage-scored 2026-07-05 14:14:03 +08:00
test_layer4_structure_tree.py fix: heading→emitted events, backmatter→heading events, page-qualified keys 2026-07-06 18:19:17 +08:00
test_layer4_units_and_fts.py feat: PR 8 — Object Vector Retrieval (paperforge_objects collection) 2026-07-06 19:58:46 +08:00
test_layer4_vector_backend.py refactor: add vector backend adapter with Chroma compatibility 2026-07-05 14:13:59 +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_bio.py style: fix ruff lint issues in bio detection files 2026-06-29 02:02:53 +08:00
test_ocr_blocks.py feat: drop non-preproof cover page 1 via positive cover markers 2026-06-22 01:47:00 +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(pr3): remove same-column guard from body_blocks, fix _page_width_for_zone_block arg 2026-07-04 22:36:46 +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 fix: reference-zone ordering fixes (P0-P4) 2026-07-02 19:06:06 +08:00
test_ocr_figure_reader.py fix: govern local figure pairing and ownership fallbacks 2026-06-22 22:15:39 +08:00
test_ocr_figure_vnext_accounting_pass.py feat(ocr): add vnext FinalAccountingPass with invariant checks 2026-07-03 16:39:16 +08:00
test_ocr_figure_vnext_bundle_pass.py feat(ocr): add vnext LegendBundlePass 2026-07-03 16:15:25 +08:00
test_ocr_figure_vnext_classic_seq_pass.py feat(ocr): add vnext ClassicSequentialPass with unresolved cluster consolidation 2026-07-03 16:40:50 +08:00
test_ocr_figure_vnext_compare.py feat(ocr): checkpoint layout robustness and figure vnext groundwork on master 2026-07-03 17:48:50 +08:00
test_ocr_figure_vnext_composite_pass.py feat(ocr): add vnext CompositeParentPass 2026-07-03 16:39:32 +08:00
test_ocr_figure_vnext_corpus.py feat(ocr): checkpoint layout robustness and figure vnext groundwork on master 2026-07-03 17:48:50 +08:00
test_ocr_figure_vnext_group_seq_pass.py fix: rescue single narrow side-caption figure layouts 2026-07-06 02:38:59 +08:00
test_ocr_figure_vnext_locator_pass.py feat(ocr): add vnext LocatorBridgePass 2026-07-03 16:14:21 +08:00
test_ocr_figure_vnext_passes.py fix: rescue single narrow side-caption figure layouts 2026-07-06 02:38:59 +08:00
test_ocr_figure_vnext_real_papers.py feat(ocr): switch figure inventory wrapper to vnext by default 2026-07-03 17:45:56 +08:00
test_ocr_figure_vnext_reservations.py feat(ocr): add vnext cross-page reservation state 2026-07-03 15:41:52 +08:00
test_ocr_figure_vnext_sidecar_pass.py fix: rescue single narrow side-caption figure layouts 2026-07-06 02:38:59 +08:00
test_ocr_figure_vnext_state.py feat(ocr): checkpoint layout robustness and figure vnext groundwork on master 2026-07-03 17:48:50 +08:00
test_ocr_figure_vnext_types.py feat(ocr): checkpoint layout robustness and figure vnext groundwork on master 2026-07-03 17:48:50 +08:00
test_ocr_figures.py fix: exclude table-owned media and inline figure body refs from figure matching 2026-07-05 22:36:17 +08:00
test_ocr_fulltext_state.py refactor: separate render artifact writes from user fulltext commit 2026-07-05 16:50:58 +08:00
test_ocr_health.py feat: improve vnext figure matching and split OCR status 2026-07-06 00:55:40 +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_initial_fulltext_writeback.py feat: persist machine fulltext hash for initial OCR 2026-07-05 16:58:23 +08:00
test_ocr_integration_fixtures.py test: fix 25 stale test fixtures across 10 issues (616 OCR tests pass) 2026-06-28 23:19:47 +08:00
test_ocr_layout_first_regressions.py fix: preserve panel labels and figure_inner_text in post-reference backmatter zone 2026-06-17 22:36:51 +08:00
test_ocr_layout_zones.py fix: heading detection, backmatter, table consumed, footnote reorder, figure crop + audit fixtures 2026-06-22 01:28:55 +08:00
test_ocr_maintenance.py feat: rebuild speed-up with parallel rebuild, threaded asset cropping, maintenance refactor, embed progress, CLI docs 2026-07-05 19:43:07 +08:00
test_ocr_metadata.py fix: reuse rebuild metadata and object extraction work 2026-06-22 22:15:25 +08:00
test_ocr_object_writeback.py fix: pre-merge blockers A-D 2026-07-04 16:40:53 +08:00
test_ocr_objects.py fix: final cleanup before merge — stale test, helper, RGB safety 2026-07-05 21:36:17 +08:00
test_ocr_pairing_framework.py fix(ocr): unblock pairing framework merge 2026-07-03 22:50:15 +08:00
test_ocr_pdf_spans.py fix: optimize span backfill with per-page rawdict batching and incremental re-extraction 2026-07-05 20:39:52 +08:00
test_ocr_pdf_text_fallback.py fix: PR1 deterministic OCR residual fixes 2026-07-01 21:49:45 +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_pipeline_v3.py feat: enable OCR_PIPELINE_V3 by default 2026-07-04 20:04:39 +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_quality.py fix(ocr-quality): contract polish — 4 P0/P1 fixes 2026-07-04 23:38:03 +08:00
test_ocr_quality_feedback.py fix(ocr-quality): contract polish — 4 P0/P1 fixes 2026-07-04 23:38:03 +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_audit_contracts.py feat: complete OCR-v2 readiness gates + blind audit validation 2026-06-19 00:35:21 +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 fix: appendix numbering cross-cutting bugs (TABLE regex, int block_id, table alpha prefix, weak-caption tie-break) 2026-07-04 01:29:06 +08:00
test_ocr_rebuild.py feat: PR 1 — nested structure tree + body_units correctness 2026-07-06 16:42:08 +08:00
test_ocr_redo.py test: lock OCR phase4 rebuild orchestration contract 2026-06-05 11:17:04 +08:00
test_ocr_render.py fix(pr1): remove has_any_author gate from affiliation/email fallback 2026-07-04 22:17:43 +08:00
test_ocr_render_stabilization.py test: fix 25 stale test fixtures across 10 issues (616 OCR tests pass) 2026-06-28 23:19:47 +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 feat: Workstream A — OCR object writeback module 2026-07-04 13:16:37 +08:00
test_ocr_roles.py fix: exclude table-owned media and inline figure body refs from figure matching 2026-07-05 22:36:17 +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: support Roman numeral and S-prefix table captions across roles/signatures/tables 2026-07-02 00:47:18 +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: fix 25 stale test fixtures across 10 issues (616 OCR tests pass) 2026-06-28 23:19:47 +08:00
test_ocr_structural_gate.py fix: heading detection, backmatter, table consumed, footnote reorder, figure crop + audit fixtures 2026-06-22 01:28:55 +08:00
test_ocr_synthetic_fixtures.py test: make OCR real-paper regressions reproducible 2026-06-08 12:13:11 +08:00
test_ocr_table_pairing_framework.py fix: appendix numbering cross-cutting bugs (TABLE regex, int block_id, table alpha prefix, weak-caption tie-break) 2026-07-04 01:29:06 +08:00
test_ocr_tables.py merge: ocr pairing framework 2026-07-03 22:53:11 +08:00
test_ocr_tail_settlement.py feat: Workstream B — OCR tail settlement extraction and report 2026-07-04 13:37:45 +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_truth_surface_docs.py fix: 3 pre-existing test failures 2026-07-01 22:21:34 +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 test: fix 25 stale test fixtures across 10 issues (616 OCR tests pass) 2026-06-28 23:19:47 +08:00
test_ocr_versions.py feat(#20): hash-based OCR change detection — two-tier mtime+xxhash staleness 2026-07-09 17:09:28 +08:00
test_openai_compatible.py feat(#31): OpenAICompatibleProvider uses openai SDK with requests fallback 2026-07-09 17:15:19 +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_phase2a_backup.py feat(#37): auto-backup fulltext before rebuild 2026-07-10 00:34:44 +08:00
test_plugin_install_bootstrap.py test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
test_pr9a_resume_rebuild.py feat: Phase 0, 1, 3a — legacy OCR fix, ChromaDB migration, search bar UI 2026-07-10 00:02:02 +08:00
test_pr9b_embed_parallel.py feat(#27 #28 #29 #30 #32): migrate write/read/status/build_state from ChromaDB to sqlite-vec 2026-07-09 17:52:45 +08:00
test_pr9c_streaming_embed.py feat(#27 #28 #29 #30 #32): migrate write/read/status/build_state from ChromaDB to sqlite-vec 2026-07-09 17:52:45 +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
test_vector_schema.py feat(#27 #28 #29 #30 #32): migrate write/read/status/build_state from ChromaDB to sqlite-vec 2026-07-09 17:52:45 +08:00