feat(model-routing): /code-clean split — audit+gate inline, code-cleaner = sonnet PHASE-2 executor

code-cleaner is now a pure fix executor (was audit+gate+execute). Reroute the two
read-only-audit consumers (onboard STEP 6, tour Phase B) to a big-model agent
(general-purpose/analyzer) — an audit must stay on the big model, never the sonnet
executor. Refactor now runs on sonnet inside the executor (inline-load pin was inert).
This commit is contained in:
Bastien Chanot
2026-07-16 03:24:51 +02:00
parent 1f7afc1d49
commit a7d4df8704
4 changed files with 249 additions and 204 deletions
+3 -2
View File
@@ -111,8 +111,9 @@ honestly in the summary. Never loop past 3.
### Phase B — CLEAN
1. Dispatch a read-only cleanup audit (code-cleaner agent if available,
else analyzer/general): dead code, unused imports/exports,
1. Dispatch a read-only cleanup audit (analyzer or general-purpose —
inherits the big session model; NOT the sonnet code-cleaner, which is
now a fix executor): dead code, unused imports/exports,
commented-out blocks, stale flags, norm violations. Findings as
`id | file:line | finding | proposed fix`.
2. Apply **behavior-preserving** fixes only. A finding that would change