factory design: engage side — answer parked asks (#617 follow-up) #618
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#618
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
#617 ("factory design: engage side — answer-asks + rearm_dispatch (#615
follow-up)") scoped both engage write actions #615 didn't fit in its slice:
answering parked asks and
rearm_dispatch. #617's own "Suggested nextslice" recommended
rearm_dispatchas the cheaper of the two — a singleworkflow_dispatchPOST with no state to track beyond firing the request,versus answering parked asks needing
ask-human.sh'sconsumed-vs-outstanding thread logic replayed on the write side too. This
session delivered
rearm_dispatch(the Queue tab'srbinding,.sandcastle/tui/data/rearm.py) and closed #617 on that delivered, provenslice — per #607/#611/#613/#614/#615'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 the one write action that didn't fit in that slice.
Scope
The last remaining two-way door under ADR 0174 (agent-shaped once picked
up, per #573's own ruling, carried forward unchanged by
#611/#613/#614/#615/#617):
(
ask-human.sh/post-issue-ask.sh/resume-parked-asks.sh) — the Inboxtab (#614) already surfaces which issues are
outstandingvsanswered-pending-sweepvsidle; this ticket is the write action thatacts on that read.
Explicitly NOT this ticket: cancelling a live run (#612), arm/park/
prioritise label writes (#615), and
rearm_dispatch(#617) — alreadyshipped.
Suggested next slice
This is the last engage write action, so there is no further "pick ONE of
several" split to weigh — the whole ticket is one slice. It still wants its
own confirm-before-fire UX design (the Cancel action's two-keypress
arm/confirm, #612, is the nearest precedent), same as every write action
before it. The harder part is the one #614/#617 both flagged:
data/ ask_inbox.py(#614) already computes read-side thread state (current-question / consumed-vs-outstanding) in pure Python mirroring
ask-human.sh/post-issue-ask.sh/resume-parked-asks.sh's own jq; the write side needsto (a) post the operator's answer into the same Mattermost thread the way
ask-human.sh's protocol expects a human reply to arrive, and (b), perresume-parked-asks.sh's own re-arm pair, flip the issue's labels once theanswer lands — likely composing
ask_inbox.py's thread read withlabels.py'sarm(#615) rather than inventing a third label-write path.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/#617'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: filed as
ready-for-session(factory/dev tooling requiring thesession's host standing — protected
.sandcastle/tui/paths and thischeckout's
FORGEJO_TOKEN, not Ben's hands or eyes). Two-way door: the workis a Textual TUI write action + tests, revertible with a commit, provable by
the offline suite plus the existing live-tested bash equivalent
(
ask-human.sh/resume-parked-asks.sh) this ticket's write side mustcompose with. Not on the ADR 0174 one-way-door list.
Ruled by agent under ADR 0174 — veto anytime.
Ruling: the last remaining engage write action under ADR 0174 (per this
ticket's own scoping, carried forward unchanged since #573/#611/#613/#614/
#615/#617) — no further "pick ONE of several" split to weigh, the whole
ticket is one slice. Two-way door: revertible with a commit, provable by
the offline suite plus a disposable-scratch-issue live write. Not on the
ADR 0174 one-way-door list.
Close report:
.sandcastle/tui/data/answer_ask.py—answer()composes ratherthan reinvents:
labels.py'sarm(#615) for the re-arm pair,ask_inbox.py's already-fetched thread id for the target. Four writesin a fixed order — durable issue comment, re-arm
ready-for-agent, aMattermost thread reply carrying the operator's text, closing
:white_check_mark:last — comment+re-arm land first since they're theload-bearing half (the next agent session reads the issue, not chat);
the checkmark trails last so a crash never marks a thread consumed
without the answer actually being recorded and the issue actually being
re-armed, the same ordering invariant
resume-parked-asks.shitselfprotects.
app.py's Inbox tab gains awbinding with a different confirm shapefrom the prior three write actions: answering needs free text, not a
binary choice, so arm/confirm becomes open/submit —
won a selectedoutstandingrow opens a TextualInput, Enter submits non-empty text,Escape cancels. No timed re-arm window: typing text and pressing Enter
is already a deliberate two-step gesture, unlike a bare keypress that
could be a stray repeat.
per-operator Mattermost account exists), so by design it can never be
picked up as a "human reply" by
ask-human.sh's/resume-parked-asks.sh'sown
first_replyfilter (which excludes bot authors) — this moduleperforms the comment+re-arm those scripts would otherwise wait for,
rather than leaning on that shared detection machinery.
tests/test_answer_ask.py, 8tests/test_app.py) — full TUI suite 143/143 green.disposable-scratch-issue shape as #615/#616:
record_ruling_commentandlabels.armrun directly against a scratch issue created and closedthis session (
Matou/ourcloud#619) — comment landed, labels flippedexactly as predicted. The Mattermost-writing half (
post_reply,consume_thread) was not live-verified: this session-runnercheckout carries
FORGEJO_TOKENbut notMATTERMOST_BOT_TOKEN(thesame gap #614 hit), so there was no live channel to post into — the
offline suite pins the POST shape and the four-call ordering instead.
STATUS.mdand.sandcastle/tui/README.mdupdated in the same commit(
26aeb72, pushed tomain).arm/park/prioritise (#615), rearm dispatch (#617), and answer parked
asks (#618) are all built. No follow-up ticket filed — nothing left to
split.