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.
5.1 KiB
5.1 KiB
Phase 1 Site Inventory — mcp_client.py
File: src/mcp_client.py
Source: tests/artifacts/PHASE1_AUDIT_BASELINE.json (audit --include-baseline)
Total sites in audit: 55
Migration-target sites: 46
Stay-as-is sites: 9
Category Breakdown
| Category | Count |
|---|---|
| INTERNAL_BROAD_CATCH (MIGRATION) | 40 |
| INTERNAL_COMPLIANT (stay) | 9 |
| INTERNAL_SILENT_SWALLOW (MIGRATION) | 5 |
| UNCLEAR (MIGRATION) | 1 |
Migration-Target Sites
| # | Line | Category | Code excerpt | Phase bucket |
|---|---|---|---|---|
| 1 | L171 | INTERNAL_SILENT_SWALLOW | _is_allowed (EXCEPT) |
Phase 8 (mcp) / Phase 11 (ai) / Phase 13 (rag) |
| 2 | L191 | INTERNAL_BROAD_CATCH | _resolve_and_check (EXCEPT) |
Batch (Phase 3-7) |
| 3 | L229 | INTERNAL_BROAD_CATCH | search_files (EXCEPT) |
Batch (Phase 3-7) |
| 4 | L254 | INTERNAL_BROAD_CATCH | list_directory (EXCEPT) |
Batch (Phase 3-7) |
| 5 | L266 | INTERNAL_BROAD_CATCH | read_file (EXCEPT) |
Batch (Phase 3-7) |
| 6 | L395 | INTERNAL_BROAD_CATCH | edit_file (EXCEPT) |
Batch (Phase 3-7) |
| 7 | L414 | INTERNAL_BROAD_CATCH | get_file_summary (EXCEPT) |
Batch (Phase 3-7) |
| 8 | L430 | INTERNAL_BROAD_CATCH | get_file_slice (EXCEPT) |
Batch (Phase 3-7) |
| 9 | L451 | INTERNAL_BROAD_CATCH | set_file_slice (EXCEPT) |
Batch (Phase 3-7) |
| 10 | L473 | INTERNAL_BROAD_CATCH | get_git_diff (EXCEPT) |
Batch (Phase 3-7) |
| 11 | L492 | INTERNAL_BROAD_CATCH | ts_c_get_skeleton (EXCEPT) |
Batch (Phase 3-7) |
| 12 | L509 | INTERNAL_BROAD_CATCH | ts_c_get_code_outline (EXCEPT) |
Batch (Phase 3-7) |
| 13 | L523 | INTERNAL_BROAD_CATCH | ts_c_get_definition (EXCEPT) |
Batch (Phase 3-7) |
| 14 | L537 | INTERNAL_BROAD_CATCH | ts_c_get_signature (EXCEPT) |
Batch (Phase 3-7) |
| 15 | L555 | INTERNAL_BROAD_CATCH | ts_c_update_definition (EXCEPT) |
Batch (Phase 3-7) |
| 16 | L576 | INTERNAL_BROAD_CATCH | ts_cpp_get_skeleton (EXCEPT) |
Batch (Phase 3-7) |
| 17 | L593 | INTERNAL_BROAD_CATCH | ts_cpp_get_code_outline (EXCEPT) |
Batch (Phase 3-7) |
| 18 | L610 | INTERNAL_BROAD_CATCH | ts_cpp_get_definition (EXCEPT) |
Batch (Phase 3-7) |
| 19 | L624 | INTERNAL_BROAD_CATCH | ts_cpp_get_signature (EXCEPT) |
Batch (Phase 3-7) |
| 20 | L645 | INTERNAL_BROAD_CATCH | ts_cpp_update_definition (EXCEPT) |
Batch (Phase 3-7) |
| 21 | L695 | INTERNAL_BROAD_CATCH | py_get_skeleton (EXCEPT) |
Batch (Phase 3-7) |
| 22 | L713 | INTERNAL_BROAD_CATCH | py_get_code_outline (EXCEPT) |
Batch (Phase 3-7) |
| 23 | L739 | INTERNAL_BROAD_CATCH | py_get_symbol_info (EXCEPT) |
Batch (Phase 3-7) |
| 24 | L768 | INTERNAL_BROAD_CATCH | py_get_definition (EXCEPT) |
Batch (Phase 3-7) |
| 25 | L788 | INTERNAL_BROAD_CATCH | py_update_definition (EXCEPT) |
Batch (Phase 3-7) |
| 26 | L818 | INTERNAL_BROAD_CATCH | py_get_signature (EXCEPT) |
Batch (Phase 3-7) |
| 27 | L843 | INTERNAL_BROAD_CATCH | py_set_signature (EXCEPT) |
Batch (Phase 3-7) |
| 28 | L872 | INTERNAL_BROAD_CATCH | py_get_class_summary (EXCEPT) |
Batch (Phase 3-7) |
| 29 | L893 | INTERNAL_BROAD_CATCH | py_get_var_declaration (EXCEPT) |
Batch (Phase 3-7) |
| 30 | L913 | INTERNAL_BROAD_CATCH | py_set_var_declaration (EXCEPT) |
Batch (Phase 3-7) |
| 31 | L936 | INTERNAL_SILENT_SWALLOW | _search_file (EXCEPT) |
Phase 8 (mcp) / Phase 11 (ai) / Phase 13 (rag) |
| 32 | L951 | INTERNAL_BROAD_CATCH | py_find_usages (EXCEPT) |
Batch (Phase 3-7) |
| 33 | L974 | INTERNAL_BROAD_CATCH | py_get_imports (EXCEPT) |
Batch (Phase 3-7) |
| 34 | L987 | UNCLEAR | py_check_syntax (EXCEPT) |
Phase 8 (mcp) |
| 35 | L989 | INTERNAL_BROAD_CATCH | py_check_syntax (EXCEPT) |
Batch (Phase 3-7) |
| 36 | L1012 | INTERNAL_SILENT_SWALLOW | _search_file (EXCEPT) |
Phase 8 (mcp) / Phase 11 (ai) / Phase 13 (rag) |
| 37 | L1026 | INTERNAL_BROAD_CATCH | py_get_hierarchy (EXCEPT) |
Batch (Phase 3-7) |
| 38 | L1047 | INTERNAL_BROAD_CATCH | py_get_docstring (EXCEPT) |
Batch (Phase 3-7) |
| 39 | L1071 | INTERNAL_BROAD_CATCH | derive_code_path (EXCEPT) |
Batch (Phase 3-7) |
| 40 | L1106 | INTERNAL_BROAD_CATCH | trace (EXCEPT) |
Batch (Phase 3-7) |
| 41 | L1140 | INTERNAL_BROAD_CATCH | get_tree (EXCEPT) |
Batch (Phase 3-7) |
| 42 | L1223 | INTERNAL_BROAD_CATCH | web_search (EXCEPT) |
Batch (Phase 3-7) |
| 43 | L1249 | INTERNAL_BROAD_CATCH | fetch_url (EXCEPT) |
Batch (Phase 3-7) |
| 44 | L1268 | INTERNAL_BROAD_CATCH | get_ui_performance (EXCEPT) |
Batch (Phase 3-7) |
| 45 | L1311 | INTERNAL_SILENT_SWALLOW | stop (EXCEPT) |
Phase 8 (mcp) / Phase 11 (ai) / Phase 13 (rag) |
| 46 | L1316 | INTERNAL_SILENT_SWALLOW | stop (EXCEPT) |
Phase 8 (mcp) / Phase 11 (ai) / Phase 13 (rag) |
Stay-As-Is Sites
| Line | Category | Code excerpt |
|---|---|---|
| L126 | INTERNAL_COMPLIANT | configure (EXCEPT) |
| L152 | INTERNAL_COMPLIANT | _is_allowed (EXCEPT) |
| L177 | INTERNAL_COMPLIANT | _is_allowed (EXCEPT) |
| L276 | INTERNAL_COMPLIANT | _resolve_and_check_result (EXCEPT) |
| L307 | INTERNAL_COMPLIANT | read_file_result (EXCEPT) |
| L335 | INTERNAL_COMPLIANT | list_directory_result (EXCEPT) |
| L363 | INTERNAL_COMPLIANT | search_files_result (EXCEPT) |
| L471 | INTERNAL_COMPLIANT | get_git_diff (EXCEPT) |
| L1126 | INTERNAL_COMPLIANT | _build_tree (EXCEPT) |