factory design: engage side — answer-ask/label writes/rearm_dispatch (#614 follow-up) #615
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#615
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
#614 ("factory design: ask inbox + engage side", #613 follow-up) scoped both the ask-inbox read screen and the composition-of-existing-protocols half of engage. #614 closed on its delivered, proven slice — the Inbox tab (
.sandcastle/tui/,data/ask_inbox.py) — per #607/#611/#613'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 engage-side write actions #614 named that didn't fit in that slice.Scope
All two-way doors under ADR 0174 (agent-shaped once picked up, per #573's own ruling, carried forward unchanged by #611/#613/#614):
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./labelssub-endpoint (seedocs/agents/issue-tracker.md— alabelsfield in an issue PATCH is silently ignored).rearm_dispatch.Explicitly NOT this ticket: cancelling a live run — already shipped, #612.
Suggested next slice
Same shape as #573/#607/#611/#612/#613/#614's own slice-by-slice history: each of these three write actions is a real write against the tracker or Mattermost, and 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 write action for the next session rather than all three at once — label writes (arm/park/prioritise) are probably the cheapest first slice: no Mattermost thread-protocol replay to get right, just a
/labelsPOST/DELETE pair behind a two-keypress confirm, directly analogous to #612's own marker-file write.Ruled by agent under ADR 0174 (scope split, revertible/provable, no one-way-door): filed
ready-for-sessionto match #573/#607/#611/#612/#613/#614's own label — this is factory/dev tooling requiring the session's host standing, not Ben.Ruling — ADR 0174
Ruled by agent under ADR 0174 — veto anytime. Scope: label writes
(arm/park/prioritise via the tracker's
/labelssub-endpoint) — revertible(any label add/remove is a follow-up commit or a further label write away
from reversed), provable (offline suite + a real write against a disposable
scratch issue), no one-way door. Per this ticket's own "Suggested next
slice", picked label writes as the cheapest of the three named actions and
left the other two (answer parked asks,
rearm_dispatch) for a follow-upticket — #617.
What landed
data/labels.py(new):fetch_label_ids(paginatedGET /labels,name→id map),
add_label/remove_label(the raw POST/DELETE pair), andthree composed actions —
arm(addsready-for-agent, removesready-for-human— the exact pairresume-parked-asks.shposts on itsown re-arm sweep),
park(the reverse),set_priority(toggles theadditive
prioritylabel). Mirrorsdocs/agents/issue-tracker.md'spinned protocol (POST adds, DELETE removes, a PATCH's
labelsfield issilently ignored) rather than inventing a new one.
data/tracker.py:queue_snapshotnow carries aprioritybool perrow so the toggle knows which direction to flip.
app.py: the Queue tab getsa/p/ibindings — arm / park /toggle-priority on the currently selected row, each its own two-keypress
arm/confirm (
LABELOP_CONFIRM_WINDOW, same shape as Cancel'sCANCEL_CONFIRM_WINDOWfrom #612), scoped to the Queue tab and to thespecific (action, issue) pair armed. Landed on Queue rather than Inbox:
arm/park/prioritise apply to any tracker issue by triage state, not
specifically to the Inbox's
ready-for-humanset.Proof
test_labels.py, 1test_tracker.py, 8test_app.py) — no real network call in the suite,every test injects fake fetch/poster/deleter callables.
scratch issue (
Matou/ourcloud#616), randata/labels.py'sset_priority(True)→arm→park→set_priority(False)directlyagainst it with the real
FORGEJO_TOKEN, then read the issue back — finallabel state (
ready-for-humanonly) matched exactly what the sequencepredicts. Commented and closed #616 immediately after; it was never
ready-for-agentso no queue ever saw it. Also live-verified the Queuetab's real read path (43 real open issues loaded through
app.pyitself,no crash) — writes were exercised at the module level against the
disposable issue rather than replayed through the running app a second
time, to avoid a second live write for no additional proof.
e724254(the slice),619a0dd(STATUS.md/README.mdcorrection pointing the residue at #617 instead of leaving it
un-ticketed).
Residue
Answering parked asks and
rearm_dispatchremain — split into #617(
ready-for-session), same precedent as #607→#611→#613→#614→#615.matou-build-agent referenced this issue2026-08-20 05:45:13 +00:00