chore(audit): plan code path audit track (6 phases, 30 tests)
6 phases, one per commit: Phase 1: data structures (CallGraph, ExpensiveOp, StateMutation) - 15 unit tests Phase 2: trace_action + ActionProfile + cost model + AST walking - 8 tests (synthetic + integration on real src/) Phase 3: JSON / markdown / Mermaid output - 4 tests Phase 4: MCP tool + CLI surface - 3 tests Phase 5: run audit on 3 actions; commit report Phase 6: tracks.md update TDD pattern: each task has synthetic-data unit test, then real implementation, then integration with real src/, then commit. The state.toml scaffold is created in Phase 0 Step 0.1 and advanced after each phase. 3 actions in scope (MMA is cold per user): - ai_message_lifecycle (5 entry points) - discussion_save_load (4 entry points) - gui_startup (3 entry points) Two follow-up tracks recorded but NOT in this track: - pipeline_runtime_profiling_20260607 - pipeline_pruning_20260607 No new pip dependencies; pure stdlib (ast, json, pathlib, dataclasses). Read-only on src/; new files are the tool, the tests, and the report under docs/reports/code_path_audit/2026-06-07/.
This commit is contained in: