From d46a71f736d8c1b89f8b8eb92eb50614baf7bab5 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Mon, 22 Jun 2026 02:27:30 -0400 Subject: [PATCH] conductor(tracks): mark code_path_audit_20260607 v2 as SHIPPED v2 final commit: a99e3e6e. 131 tests passing. 13 aggregate profiles + 4 rollups generated. v1 preserved unchanged. --- conductor/tracks.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/conductor/tracks.md b/conductor/tracks.md index c09331dd..b970a19c 100644 --- a/conductor/tracks.md +++ b/conductor/tracks.md @@ -631,15 +631,9 @@ Lightweight chronology; full spec/plan/state per track is in the linked folder. *Link: [./tracks/test_batching_post_refactor_polish_20260607/](./tracks/test_batching_post_refactor_polish_20260607/)* #### Track: Code Path Audit -*Link: [./tracks/code_path_audit_20260607/](./tracks/code_path_audit_20260607/), Spec: [./tracks/code_path_audit_20260607/spec.md](./tracks/code_path_audit_20260607/spec.md), Plan: [./tracks/code_path_audit_20260607/plan.md](./tracks/code_path_audit_20260607/plan.md) (to be authored by writing-plans skill)* -*Goal: Build `src/code_path_audit.py` ΓÇö a static-analysis tool that audits the 3 major actions (AI message lifecycle, discussion save/load, GUI startup) for expensive operations, redundant calls, and pipelining candidates. Output: custom postfix `.dsl` data + markdown + Mermaid + prefix tree text under `docs/reports/code_path_audit//`. The follow-up `pipeline_pruning_20260607` consumes the `.dsl` files; the markdown + tree are for human review. MMA worker spawn is **cold per user**. **Timing (revised 2026-06-08):** the audit must run *after* the 4 foundational tracks ship (`qwen_llama_grok`, `data_oriented_error_handling`, `data_structure_strengthening`, `mcp_architecture_refactor`); pre-4-tracks code is too stale to ground optimization decisions.* - -*Pre-Flight Adjustments (2026-06-21, per `docs/handoffs/PROMPT_FOR_TIER_1.md` + `HANDOFF_CODE_PATH_AUDIT_FROM_any_type_componentization.md`):* -- *Add 2 new actions to per-action profiling: `provider_history_append` (the hot path Phase 3 will refactor; measures per-turn append latency + lock acquire time) + `websocket_broadcast` (the GUI thread's per-event cost; the path Phase 6a will fix)* -- *Add 5 micro-benchmarks to `optimization_candidates.md`: `NormalizedResponse.__init__` (<1╬╝s), `WebSocketMessage.__init__` (<5╬╝s), `UsageStats.__init__` (<500ns), `ProviderHistory.lock` (<500ns), `ToolSpec.__init__` (<2╬╝s)* -- *Add the "no-TypeError-errors-on-any-thread" assertion: the audit fails if any `worker[queue_fallback] error: WebSocketServer.broadcast()` appears in harness output; backed by `tests/test_websocket_broadcast_regression.py`* -- *Add the 89 fat-struct sites from `ANY_TYPE_AUDIT_20260621.md` ┬º3 as instrumented targets; tags each with `(file:line, hot_path, cold_path, init_path)`* -- *BLOCKER: `phase2_4_5_call_site_completion_20260621` (the broadcast() TypeError fix). The audit's per-action profiling is contaminated by the TypeError spam until Phase 6a merges. Recommended sequence: run the follow-up track first; after merge, launch the audit; the audit's per-action data informs the deferred Phase 3 + cross-phase coupling follow-up tracks* +*Link: [./tracks/code_path_audit_20260607/](./tracks/code_path_audit_20260607/), Spec: [./tracks/code_path_audit_20260607/spec_v2.md](./tracks/code_path_audit_20260607/spec_v2.md), Plan: [./tracks/code_path_audit_20260607/plan_v2.md](./tracks/code_path_audit_20260607/plan_v2.md), Report: [../../docs/reports/TRACK_COMPLETION_code_path_audit_20260622.md](../../docs/reports/TRACK_COMPLETION_code_path_audit_20260622.md)* +*Goal: **v2 SHIPPED 2026-06-22 (commit `a99e3e6e`)** — Build `src/code_path_audit.py` — a data-oriented static-analysis tool that audits the 13 data aggregates (10 in-scope + 3 candidate placeholders for any_type_componentization_20260621) in `src/`. 4 static analyzers (PCG via 3 AST passes, MemoryDim classifier, APD with 5 access patterns + 25% dominance, CFE with 7 frequencies + entry-point detection), 4 renderers (`to_dsl_v2` flat-section, `to_markdown` 10-section, `to_tree` box-drawing, `parse_dsl_v2` round-trip), 11 public functions (5 deterministic + 5 returning `Result[T]` per `error_handling.md` hard rule + 1 CLI), 14-tagged-word v2 postfix DSL. Cross-validates the 2 foundational tracks (`data_structure_strengthening_20260606` + `data_oriented_error_handling_20260606`) via the 6-input cross-audit integration. 4-direction decomposition cost (componentize/unify/hold/insufficient_data). 131 tests passing (124 unit + 7 integration; 2 live_gui opt-in via `CODE_PATH_AUDIT_LIVE_GUI=1`). All 4 audit scripts pass (with 2 known issues documented in the completion report). 5 follow-up tracks recorded.* +*v1 preserved unchanged as `spec.md` + `plan.md`. The v2 re-scope replaced "per-action" framing with "per-data-aggregate" framing (the user's directive 2026-06-22).* #### Track: Phase 2/4/5 Call-Site Completion (post any_type_componentization) `[track-created: 2026-06-21]` *Link: [./tracks/phase2_4_5_call_site_completion_20260621/](./tracks/phase2_4_5_call_site_completion_20260621/), Spec: [./tracks/phase2_4_5_call_site_completion_20260621/spec.md](./tracks/phase2_4_5_call_site_completion_20260621/spec.md), Plan: [./tracks/phase2_4_5_call_site_completion_20260621/plan.md](./tracks/phase2_4_5_call_site_completion_20260621/plan.md), Metadata: [./tracks/phase2_4_5_call_site_completion_20260621/metadata.json](./tracks/phase2_4_5_call_site_completion_20260621/metadata.json), State: [./tracks/phase2_4_5_call_site_completion_20260621/state.toml](./tracks/phase2_4_5_call_site_completion_20260621/state.toml)*