Parent
Architecture review (2026-06-21). Slice 5 of 6 from the deepening series. Overlaps with Slice 1 (Reconcile docs to code) — Slice 1 establishes the section header; this slice executes the inventory of dead code and overlapping responsibilities that the new discipline will eliminate.
What to build
Walk the workspace and find every case where two or more modules claim the same responsibility. The architecture review names three:
- Config:
Server::app_state, api::load_config, and the CLI all merge config from different sources. Pick one.
- Metrics:
metrics.rs contains 79 lines of static counters that nothing increments. Delete the file, or wire it (one path).
- Windows process spawn:
windows/src/actions.rs and main.rs both spawn the server. Pick one.
For each, name the single owner in CONTEXT.md, delete the duplicates, and add a "// the only place that does X — see CONTEXT.md" comment at the new owner. Apply the same discipline to anything else the agent finds in the walk.
This is the slice where "many small files" pays off. A 200-line file with one responsibility is easier to police than a 2000-line god module.
Acceptance criteria
Blocked by
Parent
Architecture review (2026-06-21). Slice 5 of 6 from the deepening series. Overlaps with Slice 1 (Reconcile docs to code) — Slice 1 establishes the section header; this slice executes the inventory of dead code and overlapping responsibilities that the new discipline will eliminate.
What to build
Walk the workspace and find every case where two or more modules claim the same responsibility. The architecture review names three:
Server::app_state,api::load_config, and the CLI all merge config from different sources. Pick one.metrics.rscontains 79 lines of static counters that nothing increments. Delete the file, or wire it (one path).windows/src/actions.rsand main.rs both spawn the server. Pick one.For each, name the single owner in CONTEXT.md, delete the duplicates, and add a "// the only place that does X — see CONTEXT.md" comment at the new owner. Apply the same discipline to anything else the agent finds in the walk.
This is the slice where "many small files" pays off. A 200-line file with one responsibility is easier to police than a 2000-line god module.
Acceptance criteria
metrics.rsis either deleted or wired; either way the file is no longer deadgrep -r '// TODO.*only place\|// NOTE.*owner'etc.) and surface any new overlapping responsibility found; record in CONTEXT.mdcargo test --workspace --releasepasses;cargo clippy --workspace -- -D warningscleanBlocked by