a2bbc8f0b3
The 3 per-file inventory docs were created in sub-track 5 commit102f2199(force-added despite tests/artifacts/ being in .gitignore) but the inventory docs themselves were never explicitly committed. They were left in the working tree and lost when the working tree rebuilt. This commit force-adds the 3 docs (bypassing the .gitignore block that does 'ignore everything in tests/artifacts/') so the test file's expectations at lines 20-22 are satisfied: INV_MCP = Path('tests/artifacts/PHASE1_INVENTORY_mcp_client.md') # 5354 bytes INV_AI = Path('tests/artifacts/PHASE1_INVENTORY_ai_client.md') # 5667 bytes INV_RAG = Path('tests/artifacts/PHASE1_INVENTORY_rag_engine.md') # 1945 bytes Each > 500 bytes (the test's minimum size check). The 31/31 baseline test count is now REAL: the JSON is committed (b3508f0b), the inventory docs are committed (this commit), and the test scaffolding is portable across fresh working trees. The user's Round 5 reported 1 test failing because they were testing on a fresh tree (or the remote branch) where the inventory docs were missing. This commit fixes that.
1.9 KiB
1.9 KiB
Phase 1 Site Inventory — rag_engine.py
File: src/rag_engine.py
Source: tests/artifacts/PHASE1_AUDIT_BASELINE.json (audit --include-baseline)
Total sites in audit: 15
Migration-target sites: 9
Stay-as-is sites: 6
Category Breakdown
| Category | Count |
|---|---|
| INTERNAL_BROAD_CATCH (MIGRATION) | 5 |
| INTERNAL_COMPLIANT (stay) | 1 |
| INTERNAL_PROGRAMMER_RAISE (stay) | 5 |
| INTERNAL_RETHROW (MIGRATION) | 3 |
| INTERNAL_SILENT_SWALLOW (MIGRATION) | 1 |
Migration-Target Sites
| # | Line | Category | Code excerpt | Phase bucket |
|---|---|---|---|---|
| 1 | L29 | INTERNAL_RETHROW | _get_sentence_transformers (EXCEPT) |
Phase 12 (ai) / Phase 13 (rag) |
| 2 | L32 | INTERNAL_RETHROW | _get_sentence_transformers (RAISE) |
Phase 12 (ai) / Phase 13 (rag) |
| 3 | L33 | INTERNAL_BROAD_CATCH | _get_sentence_transformers (EXCEPT) |
Batch (Phase 3-7) |
| 4 | L36 | INTERNAL_RETHROW | _get_sentence_transformers (RAISE) |
Phase 12 (ai) / Phase 13 (rag) |
| 5 | L224 | INTERNAL_BROAD_CATCH | _chunk_code (EXCEPT) |
Batch (Phase 3-7) |
| 6 | L247 | INTERNAL_BROAD_CATCH | index_file (EXCEPT) |
Batch (Phase 3-7) |
| 7 | L255 | INTERNAL_SILENT_SWALLOW | index_file (EXCEPT) |
Phase 8 (mcp) / Phase 11 (ai) / Phase 13 (rag) |
| 8 | L261 | INTERNAL_BROAD_CATCH | index_file (EXCEPT) |
Batch (Phase 3-7) |
| 9 | L290 | INTERNAL_BROAD_CATCH | _async_search_mcp (EXCEPT) |
Batch (Phase 3-7) |
Stay-As-Is Sites
| Line | Category | Code excerpt |
|---|---|---|
| L31 | INTERNAL_PROGRAMMER_RAISE | _get_sentence_transformers (RAISE) |
| L57 | INTERNAL_PROGRAMMER_RAISE | embed (RAISE) |
| L75 | INTERNAL_PROGRAMMER_RAISE | embed (RAISE) |
| L80 | INTERNAL_PROGRAMMER_RAISE | embed (RAISE) |
| L109 | INTERNAL_PROGRAMMER_RAISE | _init_embedding_provider (RAISE) |
| L165 | INTERNAL_COMPLIANT | _validate_collection_dim_result (EXCEPT) |