factory design: incident/healer view + ask inbox + engage side (#611 follow-up) #613
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#613
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
#611 ("factory design: the factory TUI — fleet/worker-table/incident/ask
screens + read-adjacent engage") built the worker-class enumeration table
(
docs/agents/worker-classes.json, 13 classes source-verified) and theFleet screen it unblocked (
.sandcastle/tui/, this ticket's landingcommit). #611 closed on that delivered, proven slice per #607's own
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 #611 named that didn't fit in
one slice.
Scope
Read side (still real gaps, not stubs):
Mattermost thread id). See
.sandcastle/heal-lib.sh(ledger_get/ledger_set/ledger_decide, keys:workflow,first_seen,last_seen,attempts,repaired,thread_id) and.sandcastle/heal.shfor theledger shape — one file per incident signature under
$HEALER_STATE.ask-human.shthreads..sandcastle/ask-human.shposts a parking notice and times out to
ready-for-human;.sandcastle/post-issue-ask.shwrites the idempotent marker;.sandcastle/resume-parked-asks.shis the sweep that later consumes areply (resume order is load-bearing: copy ruling → re-arm → consume
thread LAST, per
docs/agents/swarm-atlas.md§6).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, carried forward unchanged by #611):
(
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 #612 (already
filed, its own sibling 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/#611's own slice-by-slice history: ask inbox or
incident/healer view are the next-cheapest read-only pieces since their
data already exists in
heal-lib.sh's ledger files andask-human.sh'smarker/parking-notice pattern — same shape as the Fleet screen's
data/worker_classes.pymodule (#611) before it: a newdata/*.pyreaderTabbedContentpane + offline tests seeded against the realledger/marker file shape, live-smoke-verified on matou-workstation.
Ruled by agent under ADR 0174 (scope split, revertible/provable, no
one-way-door): filed
ready-for-sessionto match #573/#607/#611's ownlabel — this is factory/dev tooling requiring the session's host standing,
not Ben.
Ruled by agent under ADR 0174 — veto anytime: filed as a scope split off #611 (the ticket named more read screens + the engage side than fit in one slice, same pattern #607 used to split into #611/#612). Two-way door, revertible/provable: filing a ready-for-session ticket is itself reversible (relabel/close/edit), and the split mirrors #607/#611's own precedent exactly. Labelled ready-for-session (matches #611's own label — factory/dev tooling needing the session's host standing, not Ben).
Ruled by agent under ADR 0174 — veto anytime
Scope split: this ticket named three pieces (incident/healer view, ask
inbox, engage side). Per #573/#607/#611's own precedent — a
ready-for-sessionticket left open across sessions scores "no progress"under this repo's session-runner rules — this session delivered the
"Suggested next slice" (incident/healer view, the cheaper local-file read)
and split the rest to a follow-up rather than leave #613 open indefinitely.
Revertible (a commit), provable (offline tests + live smoke against the
real host ledger), no one-way door.
What landed
commit c3b2da3onmain..sandcastle/tui/data/healer_ledger.py: reads.sandcastle/heal-lib.sh's per-signature incident ledger under$HEALER_STATE. Source-verified againstheal.sh's actualledger_setcall sites (not copied from
heal-lib.sh's own key-list comment, whichomits
replies/escalated— both are real keys the healer writes).Filters strictly to 12-hex-char signature filenames: the real
$HEALER_STATEdirectory on matou-workstation also holds aretired/subdirectory (manual triage moves — no script does this) and loose
<sig>.chanmove-bakfiles (ad-hoc host cruft, no committed script writesthem) — both confirmed present on the live host before writing the
reader, and both excluded by the filter (offline tests pin this).
app.pygains a fifthTabbedContentpane,Incidents: signature,workflow, first/last seen, attempts, replies, repaired, escalated,
thread — newest
last_seenfirst. Same 5s refresh interval as theMonitor/Run tabs (live host state, unlike Fleet's one-shot doc load).
test_healer_ledger.py, 5test_app.py); fullTUI suite 78/78 green.
$HOME/swarm/Matou/ourcloud/.sandcastle/.state/healer/onmatou-workstation: 23 real signature files correctly loaded out of 32
directory entries (8
.chanmove-bakfiles + theretired/dir correctlyexcluded), and a full
run_test()mount of the app with the Incidentstab active renders those 23 rows.
README.mdandSTATUS.mdupdated in the same commit.What didn't land — split to #614
Ask inbox screen and the engage side (answer parked asks, arm/park/
prioritise via labels,
rearm_dispatch) — filed as#614, same
ready-for-sessionlabel, carrying #613's own "Suggested next slice"pointer forward. #614 also corrects one thing in this ticket's own body:
post-issue-ask.shdoes not write a local idempotent marker file — readingthe script shows its idempotency is entirely derived from the Mattermost
thread's own post history (the newest
:raising_hand:post vs. any:white_check_mark:after it). Noted so the next session doesn't golooking for a marker file that doesn't exist.
This ticket's proven slice is delivered; the state PATCH to
closedfollows this comment.