Commit graph

11 commits

Author SHA1 Message Date
Research Assistant
a38e41ba78 test: lock OCR phase2 figure inventory contract 2026-06-05 00:08:30 +08:00
Research Assistant
76632a56e5 fix(50-repair-blind-spots): replace bare except:pass + add --fix else clause (REPAIR-02/03)
- Replaced 5 bare except Exception: pass blocks with logger.warning() calls
  (4 per plan at lines 223, 306, 347, 355 + 1 auto-detected at line 315 via Rule 2)
- Added else clause printing [WARNING] for unhandled --fix divergence types
- Added 6 new tests: 4 caplog tests for logger.warning, 1 capsys test for [WARNING],
  1 index load failure test
- All 37 repair tests pass
2026-05-07 20:20:25 +08:00
Research Assistant
f2198041ed fix(50-repair-blind-spots): repair condition 4 detection + dead code removal (REPAIR-01/04)
- Removed dead import of load_domain_config and orphaned dict comprehension
- Replaced note_ocr_status != pending guard with combined logic catching note=pending vs meta=done/failed
- Added 5 new tests (3 for condition 4 detection, 2 for dead code verification)
2026-05-07 20:16:38 +08:00
Research Assistant
b2e446eb21 fix: harden repair paths, slugify edge case, OCR meta resilience, venv python detection, and repair exit handling 2026-05-06 22:09:29 +08:00
Research Assistant
1a6d936258 feat(25-03): wire repair to call build_index() after fixing source artifacts
- Add build_index() call at end of run_repair() when fix=True or fix_paths=True
- Add 'rebuilt' key to result dict initialization
- Add user-facing messages about repair completion and recovery path (MIG-04)
- Lazy import inside conditional block to avoid circular dependency
- Add tests: build_index called after fix, not called during dry-run,
  rebuilt in result, error fallback on build_index failure
2026-05-04 11:25:12 +08:00
Research Assistant
67a52a898a fix: VaultStep.__init__ missing step_id and checker in super() call 2026-04-27 19:49:36 +08:00
Research Assistant
0beb575c30 fix(13-logging-foundation): update test stubs and capsys→caplog for logging migration
- Add verbose=False to all stub function signatures in cli dispatch tests
- Switch test_verbose_output_printed from capsys to caplog since repair
  diagnostics now route through logging (stderr) not print (stdout)
2026-04-27 15:21:10 +08:00
Research Assistant
f54fe8a3e0 test(phase-12): update test imports for new worker module structure
- Update all pipeline.worker.scripts patches to paperforge.worker.*
- Fix test_base_views.py and test_base_preservation.py imports
- Update test_legacy_worker_compat.py for new module paths
- Fix OCR test patches to target correct module namespaces
2026-04-24 22:36:54 +08:00
Research Assistant
45de80da5d refactor(phase-9): update all Python imports to paperforge
- Updated 35 files: from paperforge_lite.* → from paperforge.*
- Verified: pytest passes (172 passed, 2 skipped)
2026-04-24 16:15:30 +08:00
Research Assistant
d0ba1da715 fix(run_repair): case 2 repair updates all three + case 3 handles None; add test_fix_case4 2026-04-24 00:42:44 +08:00
Research Assistant
6052c823e6 Add run_repair() function for three-way OCR state divergence repair 2026-04-24 00:02:32 +08:00