factory design: engage side — answer-asks + rearm_dispatch (#615 follow-up) #617
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#617
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
#615 ("factory design: engage side — answer-ask/label writes/rearm_dispatch", #614 follow-up) scoped all three remaining engage write actions #614 named: answer parked asks, arm/park/prioritise (label writes), and re-arm (
rearm_dispatch). #615's own "Suggested next slice" recommended picking ONE for that session rather than all three at once, and named label writes as the cheapest (no Mattermost thread-protocol replay, just a/labelsPOST/DELETE pair). #615 closed on that delivered, proven slice — the Queue tab's arm/park/prioritise actions (.sandcastle/tui/,data/labels.py) — per #607/#611/#613/#614's own precedent (aready-for-sessionticket left open across sessions scores "no progress" under this repo's session-runner rules) rather than sit open indefinitely. This ticket carries the two write actions that didn't fit in that slice.Scope
Both remaining two-way doors under ADR 0174 (agent-shaped once picked up, per #573's own ruling, carried forward unchanged by #611/#613/#614/#615):
ask-human.sh/post-issue-ask.sh/resume-parked-asks.sh) — the Inbox tab (#614) already surfaces which issues areoutstandingvsanswered-pending-sweepvsidle; this ticket is the write action that acts on that read.rearm_dispatch(.sandcastle/claim-lib.sh— aworkflow_dispatchPOST againstswarm.yml, distinct from a label write).Explicitly NOT this ticket: cancelling a live run (#612) and arm/park/prioritise label writes (#615) — already shipped.
Suggested next slice
Same shape as #573/#607/#611/#612/#613/#614/#615's own slice-by-slice history: each of these two write actions wants its own confirm-before-fire UX design (the Cancel action's two-keypress arm/confirm, #612, is the nearest precedent) rather than being bolted onto the Inbox tab's read. Recommend picking ONE for the next session rather than both at once.
rearm_dispatchis likely the cheaper of the two — a singlePOST /actions/workflows/swarm.yml/dispatchescall (forgejo_dispatch_workflowinforgejo-lib.shalready has the exact shape) with no state to track beyond firing the request, versus answering parked asks needing to replayask-human.sh's consumed-vs-outstanding thread logic (data/ask_inbox.py, #614) on the write side too.Ruled by agent under ADR 0174 (scope split, revertible/provable, no one-way-door): filing
ready-for-sessionto match #573/#607/#611/#612/#613/#614/#615's own label — this is factory/dev tooling requiring the session's host standing, not Ben.Ruled by agent under ADR 0174 — veto anytime.
Ruling: per this ticket's own "Suggested next slice", picked ONE of the
two remaining engage write actions for this session —
rearm_dispatch,the cheaper of the two (a single
workflow_dispatchPOST, noMattermost thread-protocol replay). Two-way door: revertible with a commit,
provable by the offline suite plus the already-live-tested bash equivalent
it mirrors. Not on the ADR 0174 one-way-door list.
Close report:
.sandcastle/tui/data/rearm.py—dispatch()POSTs{"ref":"main"}to/actions/workflows/swarm.yml/dispatches, theexact shape
.sandcastle/claim-lib.sh's ownrearm_dispatchandforgejo-lib.sh'sforgejo_dispatch_workflowalready use inproduction (
run-swarm.sh's own re-dispatch-when-work-remains call).app.py's Queue tab gains anrbinding: two-keypress arm/confirm(
REARM_CONFIRM_WINDOW, 5s — same shape as Cancel'sCANCEL_CONFIRM_WINDOWand the label ops'LABELOP_CONFIRM_WINDOW),scoped to the Queue tab, with no row selection involved (the armed state
is a bare timestamp, not an (action, issue) pair, since the dispatch
isn't scoped to any one issue).
tests/test_rearm.py, 6tests/test_app.py) —full TUI suite 129/129 green.
#615's disposable scratch-issue label writes, a real
workflow_dispatchPOST againstswarm.ymlhas no disposableequivalent — it would kick an actual swarm run (real compute, real
ticket claims), making the "proof" indistinguishable from the write
action's real-world side effect. The protocol is instead proven live
daily by the bash equivalent it mirrors (
run-swarm.shviaclaim-lib.sh'srearm_dispatch, plusforgejo-lib-test.sh's andself-rearm-test.sh's existing fake-curl coverage of that same call);the new offline suite pins the Python side of the identical shape.
STATUS.mdand.sandcastle/tui/README.mdupdated in the samecommit (
cc304a5, pushed tomain).follow-up #618, filed
ready-for-session, per the same#607/#611/#613/#614/#615 precedent — advances #618.
matou-build-agent referenced this issue2026-08-20 05:45:13 +00:00