Research Assistant
76aba04ed5
fix: test_migration expects run_index_refresh dict return (v2.1)
2026-05-09 22:57:57 +08:00
Research Assistant
e54ef1ac5c
test: align deep-reading expectations with main-note workflow
2026-05-08 17:47:46 +08:00
Research Assistant
7eeaebdd81
test(merge-gate): add upgrade migration and index path integrity tests
...
- test OCR state machine: isolate runtime (no ambient tokens), fix retry exhaustion and full cycle tests
- test migration: verify no-index flat note migration, legacy flag promotion including false overrides
- test migration: verify non-canonical filename migration via frontmatter title
- test migration: verify already-migrated workspace reconciliation from legacy records
- test asset_index: verify fulltext/deep-reading paths only advertised when files exist
2026-05-07 21:52:16 +08:00
Research Assistant
a9c5534bfa
fix(46-index-path-resolution): update tests for removed LIBRARY_RECORDS and config-resolved paths
...
- test_base_views.py: Replace LIBRARY_RECORDS placeholder tests with LITERATURE/CONTROL_DIR
- test_migration.py: Use config-resolved lit_rel instead of hardcoded 'Literature/' prefix
2026-05-07 19:03:04 +08:00
Research Assistant
db042cd6dd
chore: complete v1.9 Frontmatter Rationalization & Library-Record Deprecation
...
Milestone v1.9 — 5 phases, 28 requirements, 188 tests passing.
Key changes:
- Frontmatter rationalization: slimmed formal note frontmatter (28→16 fields), created per-workspace paper-meta.json
- Library-record deprecation: removed library_record_markdown(), sync no longer creates library-records
- Workspace stabilization: unconditional workspace creation, fulltext bridge, discussion.py reads canonical index
- Base view fix: removed ghost lifecycle fields, restored workflow flags, Literature/ folder filter
- Plugin sync: version badge reads paperforge_version from index envelope
Archived: .planning/milestones/v1.9-ROADMAP.md, .planning/milestones/v1.9-REQUIREMENTS.md
2026-05-07 10:11:42 +08:00
Research Assistant
60355d4e97
test(26-01): add migration tests for flat-to-workspace, _build_entry workspace write, and idempotency
...
- test_migrate_flat_note_to_workspace: D-11/D-12 copy-not-move verification
- test_migrate_extracts_deep_reading: D-13 deep-reading.md extraction
- test_migrate_creates_ai_dir: ai/ directory creation
- test_migrate_idempotent_skips_existing: D-15 idempotency
- test_build_entry_writes_to_workspace_after_migration: workspace-aware _build_entry
- test_build_entry_flat_fallback_for_unmigrated_paper: backward compat fallback
- test_build_entry_new_paper_creates_workspace: new paper behavior
- test_run_index_refresh_calls_migrate: spy on run_index_refresh integration
- bonus: test_migrate_returns_zero_when_no_index
2026-05-04 12:46:31 +08:00