CSM Vision Implementation Audit - 2026-06-20
Scope
Reviewed against:
- `docs/cm_csm_adac_aspec_product_vision.md`
- `docs/CSM_Macro_Vision_Explainer.html`
- `docs/TWO_FILE_CONVERTER_SETTINGS_ARCHITECTURE.md`
- `docs/MACRO_ARCHITECTURE_AND_PLAN.md`
- Prototype shell: `C:\Users\a.almouhajer\Downloads\CSM_Apply_Profile_UI_Shell_v2_prefilled_extracted`
- CSM Graphify manifest: `graphify-out/CSM_GRAPH_MANIFEST.md`
Built / Verified
- One fixed production macro remains the target: `exports/CSM_Apply_Profile.4dm`.
- Macro compiles cleanly to `exports/CSM_Apply_Profile.4do`.
- Static 12d call audit is clean: 91 official calls, 0 unknown calls, 0 policy warnings.
- UI shell uses real `GridCtrl_Box` review tables.
- Source model is a `Source_Box`.
- Client is a `Choice_Box`, prefilled to Vida for test/default workflow.
- Run, group, and attribute action buttons are horizontal groups.
- The macro has a "Go to element" path using `Get_focus_cells`, hidden model/element uid grid columns, `Get_cell`, `Get_element`, `Highlight_add_string`, and `View_fit`.
- Project/runtime values are driven from `csm_field_input_spec.csv` and saved back to `CSM_client_subprofile.txt`.
- Output Window XML capture remains wired through `Save_output_window_to_XML`.
- CSM Graphify was rebuilt after changes.
- Export audit passed: 82 PASS, 0 FAIL, 0 MISSING, 2 SKIPPED.
- Full test suite passed: 1039 passed.
Fixed In This Loop
- Added `REFERENCE_POINT_A` runtime key support to the fixed macro.
- Added point-reference dispatch for `reference_geometry` candidates using nearest readable reference point vertices.
- Added explicit skip evidence when `REFERENCE_POINT_A` has no readable point vertices.
- Added explicit skip evidence for unknown fallback candidate kinds instead of collapsing them to generic missing fallback evidence.
- Added Output Window logging for failed ATTMF panel runs: `ATTMF_FAILED rc=...`.
- Switched remaining panel `Input_Box` reads to `Validate(...)`, clearing static macro audit warnings.
- Restored the QML capture-gaps empty-state binding to `gapsModel.filteredEmptyMessage`, restoring the full Python/QML test baseline.
Not Fully Closed
Fresh visible 12d panel proof is not closed by automation in this loop.
Evidence:
- 12d tester exists and worker-backed live control preflight passed.
- The live macro evidence harness correctly classified `CSM_Apply_Profile.4dm` as a panel macro and returned `blocked_panel_macro`.
- That harness only accepts no-panel data smoke macros, so it cannot prove the visible CSM panel shell.
Required next proof:
- Open `exports/CSM_Apply_Profile.4do` in `C:\12d_auto\12dAITester`.
- Capture a fresh visible screenshot or panel contract proof for the panel shell.
- Confirm the visible panel shows the source box, client choice box, horizontal button rows, seeded group grid, selected review grids, project/runtime values grid, run evidence, and Go to element button.
- Run one real Vida or UnityWater package through the panel path, not only through headless shims.
Verification Commands
python scripts\build_csm_knowledge_graph.py
python -m pytest -q
python _planning\run_export_audit_2026-05-29.py
python "C:\Users\a.almouhajer\OneDrive - Veris\0_IDEA\bible-assistant\scripts\compile_12d.py" "C:\Users\a.almouhajer\Veris\Veris DNA - General\01_Codelist\Client_Schema_Manager\exports\CSM_Apply_Profile.4dm"
python "C:\Veris_12d_Agent_Runtime\tools\twelve_d_index\audit_12d_macro_calls.py" "C:\Users\a.almouhajer\Veris\Veris DNA - General\01_Codelist\Client_Schema_Manager\exports\CSM_Apply_Profile.4dm"
$env:PYTHONPATH="C:\Veris_12d_Agent_Runtime\backend"; python -m veris_runtime.cli live-control-preflight --dismiss-safe-modals --timeout 90
$env:PYTHONPATH="C:\Veris_12d_Agent_Runtime\backend"; python -m veris_runtime.cli live-macro-evidence "C:\Users\a.almouhajer\Veris\Veris DNA - General\01_Codelist\Client_Schema_Manager\exports\CSM_Apply_Profile.4dm" "C:\12d_agent_runtime\results\csm_apply_profile_panel_attempt_20260620.txt" --timeout 45 --expected-status pass --required-key statusEvidence Paths
- Live control preflight: `C:\12d_agent_runtime\evidence\live_control_preflight_20260620_225633_7fa450\summary.md`
- Panel macro blocked proof: `C:\12d_agent_runtime\evidence\live_macro_CSM_Apply_Profile_20260620_230053_8c46ff\summary.json`
- Export audit report: `.planning\EXPORT_AUDIT_2026-05-29_FINAL.md`