factory design: the factory TUI — fleet/worker-table/incident/ask screens + read-adjacent engage (#607 follow-up) #611
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#611
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
#573 ("the factory TUI — monitor and engage") shipped the read-only Monitor
tab and #607 ("fleet/live-run/incident/ask screens + engage side") shipped
the Queue tab and a Run tab (live run detail) —
.sandcastle/tui/, commitsf721699/525ac93/(this ticket's landing commit). #607 closed on thatdelivered slice per its own thread's precedent (a
ready-for-sessionticket left open across sessions scores "no progress" under this repo's
session-runner rules) rather than sit open indefinitely; this ticket carries
everything #607 named that isn't cancel-a-run (split out separately — see
the sibling ticket, because that piece needs its own new-mechanism design
pass before any TUI wiring, per #607's own suggestion).
Scope
Read side (still real gaps, not stubs):
nothing but the work itself. The survey
(
docs/research/2026-08-15-factory-reengineering-survey.md§4) claimsdocs/agents/swarm-atlas.mdhas a structured table of the 13 workerclasses; confirmed three times now (both #573 sessions, then #607) that
it does not — the atlas has the 13 classes in prose only. Build the table
(probably a new section in
swarm-atlas.md, or a small structured fileunder
docs/agents/the TUI can parse directly — a session's call) beforetouching the fleet screen itself.
(today four workers' failure mode is "exits 0 quietly", per the survey).
Needs the table above first.
Mattermost thread id). See
.sandcastle/heal-lib.sh/heal.shfor theledger shape.
ask-human.shthreads.Engage side — the composition-of-existing-protocols half only (all
two-way doors under ADR 0174, agent-shaped once picked up, per #573's own
ruling):
(
ask-human.sh/post-issue-ask.sh/resume-parked-asks.sh)./labelssub-endpoint (seedocs/agents/issue-tracker.md— alabelsfield in an issue PATCH issilently ignored).
rearm_dispatch.Explicitly NOT this ticket: cancelling a live run — see the sibling
follow-up ticket; it is a genuinely new kill-path mechanism
(
RunOptions.signal/AbortSignalis unused today, no rollback patternexists), not composition of existing protocols, and needs its own design
pass before any TUI wiring lands.
Suggested next slice
Same shape as #573/#607's own slice-by-slice history: the worker-class table
is the natural first step (it unblocks the fleet screen and is pure
research+doc work, no new mechanism); ask inbox or incident/healer view are
likely the next-cheapest read-only pieces since their data already exists in
heal-lib.sh's ledger andask-human.sh's marker files, same pattern asrecent_attempts/open_processesbefore this ticket.Ruled by agent under ADR 0174 (scope split, revertible/provable, no
one-way-door): filed
ready-for-sessionto match #573/#607's own label —this is factory/dev tooling requiring the session's host standing, not Ben.
Triage
Category:
enhancement. State:ready-for-session.The issue body already carries a ruling ("Ruled by agent under ADR 0174 ...
filed
ready-for-session") from filing time, but the label was neveractually applied via the
/labelssub-endpoint (only the body text statedit) — closing that gap now.
Confirming the ruling holds: checked
docs/agents/swarm-atlas.mdfor astructured worker-class table — none found (prose only), matching the
ticket's claim (confirmed a fourth time now). No
.out-of-scope/entrymatches this request; not already implemented.
ready-for-session(notready-for-agent) is correct perdocs/agents/triage-labels.md: this isfactory/dev tooling needing the session's host standing, matching the
#573/#607precedent — not a swarm-worker-pickable task, and not one ofBen's one-way doors.
The design-to-agent system's
needs-designgate does not apply — thisticket has no reference to a
docs/ux/flows/*.mermaidordocs/ux/wireframes/*.htmlcontract; it is internal factory/dev tooling, nota member-facing product feature.
Ruled by agent under ADR 0174 — veto anytime: closing on a delivered, proven slice rather than leaving this open across sessions (the #573/#607 threads' own correction — a ready-for-session ticket left open scores "no progress" under the session-runner rules). Followed the ticket's own "Suggested next slice" exactly: worker-class table first (pure research+doc, no new mechanism), then the Fleet screen it unblocked.
What landed — commit
b571df3onmain:docs/agents/worker-classes.json— the real worker-class enumeration table (trigger/host/lock/writes/stuck-signal, 13 classes), source-verified against every named script/workflow, not copied from the 2026-08-15 survey's prose (which claimedswarm-atlas.mdalready had this — confirmed wrong for the third time, after #573 x2 and #607). Pointed to from a newdocs/agents/swarm-atlas.md§9.exit 0even when broken) plus a fourth the survey left unnamed:session-runner.sh— every one of its 13 exit paths isexit 0(including its own two-strikes escalation), and it never appears in Forgejo Actions at all, so a dead cron entry has zero visible tell. Flagged in the JSON'sinvisible_failure_notewith the reasoning and two runner-up candidates, in case a stronger fourth turns up later..sandcastle/tui/app.py(data/worker_classes.py, new): one row per (host, worker-class) pair — 17 rows over the 13 classes (several run on both hosts) — sourced straight from the JSON above. Doc-maintained data, not live host state, so it loads once on mount rather than polling like the other three tabs..venv/bin/python -m pytest tests/ -v). Live-smoke-verified against the realdocs/agents/worker-classes.jsonin this checkout (17 rows, invisible-flag correct for healer/rehearsal-executor/reporter/session-runner) and a fullrun_test()mount of the actual app — not just the unit-level module.STATUS.mdupdated in the same commit per this repo's convention.What did not land — split into #613 (
ready-for-session, same label as this ticket): incident/healer view, ask inbox, and the engage-side composition (answer parked asks, arm/park/prioritise via label writes,rearm_dispatch) — the ticket named more read screens plus the engage side than fit in one slice, same split #607 used to produce #611/#612. Cancel-a-run stays out of scope everywhere (that's #612, its own new-mechanism design pass, unchanged by this session).Closing #611 now.