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
{{ message }}
Repository navigation
Dropped architect session vanishes from the overview instead of serving dead (Spec 1595 SC7/SC13 residual) #1856
An architect whose terminal session is dropped (shellper gone, for example after a reboot before anyone re-adds it) disappears from the overview and the dashboard state instead of being served as dead. Spec 1595's SC7 names "the session was dropped" as one of the cases that must read dead within 15 seconds, and SC13 says an architect whose agent is dead appears in the attention rollups. Builders already meet this: the overview projects over every registered builder row, so a session-less builder is served dead by liveness. Architects do not, because the architect roster comes from the live terminals map.
Where
liveArchitects in packages/codev/src/agent-farm/servers/tower-routes.ts skips an architect with no session (if (!session) continue). The line predates Spec 1595.
removeTerminalFromRegistry in tower-terminals.ts deletes the architect's map entry when its terminal is killed, so the skip is rarely even reached; the architect is gone from the roster.
Liveness (servers/agent-state/liveness.ts) already observes "no session" as not alive; the computed dead has nowhere to be served.
History
Deferred consciously at the 1595 plan CMAP iteration 1 ("dropped architects stay out of overview", spec iteration 1 scope) and recorded as a residual in the 1595 review doc. Filed so the deferral has an owner.
Ask
Serve registered architects from the workspace's architect table rather than only the live terminals map, with pid: 0, terminalId as last known, and agentState from liveness, so a dropped architect reads dead on the sidebar and the dashboard and appears in the rollups. Keep the restart-wait case (served via awaitingRestart) unchanged. Add an overview test for the dropped-session architect. The extension and dashboard rows must tolerate an architect with no live terminal (focus disabled, not an error).
Not in scope
Reviving the architect; afx workspace add-architect --name <same> plus /arch-init remains the recovery path.
Activity
[Spec 1595] Integration review: equal-time ordering test, #1856/#1857 …