You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SPIR feature. A first-class coordination layer for multi-architect workspaces in codev/afx. From a field report by a heavy-use private workspace (peak 5 architects + 7 builders), generalized and routed via the relaying operator. Build all six points as one coherent SPIR.
Problem
Codev lets an operator spawn N architects but gives no first-class way to see, route, dedup, or retire them — so every coordination function falls back on the one human. Observed failure modes (all recurred):
Human is the registry — no command answers "which architect owns what."
Human is the message router — cross-architect coordination relayed by hand (sibling messaging exists but is under-surfaced).
Duplicate investigation — one symptom independently investigated by 3 architects under 3 issues; overlap found only after the fact (~3× cost). No code collision.
Lifecycle / state drift — ~14 architect identities in ~2 weeks; retirement by hand-renaming state files to *-inactive; some live architects have no state file; one appointed architect's state file was never created. State files grow unbounded (tens of KB of strikethrough history), making resume-cold expensive.
Shared checkout couples the fleet — all architects share one git checkout; a branch switch by any one yanks it from siblings, and builders branch from the shared HEAD, so one stale checkout = everyone's stale builders. Current mitigation is a fragile "never switch branches" discipline rule.
An audit found the fleet's actual code changes are largely orthogonal — the problem is coordination, not diff contention.
Scope — all six (one SPIR)
Architect roster — afx architects: table of each architect, owned open issues, live builders, last-activity, state-file path. Single source of truth for "who owns what."
Unified board / digest — auto-generated cross-architect open-thread digest (one artifact vs N state files), regenerated on spawn/gate/merge. Columns: item, owning architect, state, who-owes-next. Prefer extending the existing dashboard Work view / afx tower over a separate artifact.
Formal lifecycle — enhance the existingafx workspace add-architect / remove-architect: enforce a state file on add (from a template); archive + release builders/issues on retire. (The add/remove commands already exist; the gap is the state-file + archive/release semantics, not the commands.)
Bounded, templated state files — cap the "current state" head + auto-rotate history, so resume-cold cost stays predictable. Applies to codev/state/<id>_thread.md.
Per-architect checkout isolation — give each architect its own checkout root/worktree, eliminating shared-checkout coupling, the stale-HEAD → stale-builder hazard, and the "never switch branches" constraint. Largest/riskiest piece — touches Tower, the builder-base model, and disk; needs careful design + 3-way review.
What already exists (build the gaps, not duplicates)
Noafx architects roster, no ownership ledger / dedup-at-spawn, no bounded-state mechanism, no per-architect checkout.
Suggested sequencing (for the plan)
#3 + #1 (dedup + roster) are highest-leverage / cheapest; #5 is contained; #4 / #2 are enhancements of existing surfaces; #6 is the big structural fix and should be designed carefully (possibly staged last).
Notes
Generalized pattern; source workspace is private. Full detail available from the source architect via the relaying operator.
SPIR feature. A first-class coordination layer for multi-architect workspaces in codev/afx. From a field report by a heavy-use private workspace (peak 5 architects + 7 builders), generalized and routed via the relaying operator. Build all six points as one coherent SPIR.
Problem
Codev lets an operator spawn N architects but gives no first-class way to see, route, dedup, or retire them — so every coordination function falls back on the one human. Observed failure modes (all recurred):
*-inactive; some live architects have no state file; one appointed architect's state file was never created. State files grow unbounded (tens of KB of strikethrough history), making resume-cold expensive.An audit found the fleet's actual code changes are largely orthogonal — the problem is coordination, not diff contention.
Scope — all six (one SPIR)
afx architects: table of each architect, owned open issues, live builders, last-activity, state-file path. Single source of truth for "who owns what."afx towerover a separate artifact.afx workspace add-architect/remove-architect: enforce a state file on add (from a template); archive + release builders/issues on retire. (The add/remove commands already exist; the gap is the state-file + archive/release semantics, not the commands.)codev/state/<id>_thread.md.What already exists (build the gaps, not duplicates)
afx workspace add-architectandremove-architectexist → Installation Process Failures - Multiple Steps Being Skipped #4 is an enhancement.afx statuslists architects;afx toweris a cross-project board; sibling messagingafx send architect:<name>exists but is under-surfaced → Context Window Optimization - AI Needs Project Knowledge Without Breaking Limits #2 router.afx architectsroster, no ownership ledger / dedup-at-spawn, no bounded-state mechanism, no per-architect checkout.Suggested sequencing (for the plan)
#3 + #1 (dedup + roster) are highest-leverage / cheapest; #5 is contained; #4 / #2 are enhancements of existing surfaces; #6 is the big structural fix and should be designed carefully (possibly staged last).
Notes