reporter: ask-human.sh/run-triage.sh judgement-call fallback still defaults to ready-for-human under ADR 0174 #585
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#585
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
While working #531 (the rehearsal reporter's diagnosis-fallback wrongly
defaulting to
ready-for-humaninstead ofready-for-session), I grepped.sandcastle/for every otherready-for-humandefault and rerouted theones that are session-work by the ADR 0174 bar (protected-path escape hatches
in
protected-paths-lib.sh,run-swarm.sh, andprompt.mdrule 9 — allthree now agree on
ready-for-session).Two sites are stale in a different way and were deliberately left alone to
keep #531's diff scoped:
.sandcastle/run-triage.sh's headless/triageprompt (line 69): "Whenyou hit ambiguity or a judgement call you would normally ask a human
about, label the issue
ready-for-human..." — this is the pre-ADR-0174"any judgement call → human" default. Per ADR 0174 rule 1, a two-way-door
judgement call (revertible, provable) should be RULED by the agent itself
and posted to the ticket, not deferred —
ready-for-humannow narrows toBen's hands/eyes/one-way-doors only (
docs/agents/triage-labels.mdalreadydocuments the narrower bar; this prompt string doesn't reflect it).
.sandcastle/prompt.mdrule 6 / "When you are blocked" (lines ~88, ~207)and
ask-human.sh's own timeout fallback (line 168): a swarm worker thathits a judgement call it can't answer asks via Mattermost, and on timeout
parks the issue
ready-for-human. Same question: should some fraction ofthese first be tried against the ADR 0174 reversibility rule (rule and act,
post the ruling, move on) before ever reaching for a human ask at all?
What to change (not scoped here)
Work out where the line sits between "genuinely needs Ben" (a real judgement
call outside the reversibility rule) and "the agent should just rule it" for
these two flows, and update the prompt text / fallback labels accordingly.
This is a broader prompt-design question than #531's narrow label-routing
fix, so it's filed separately rather than folded in.
Why session, not human
Two-way door: prompt/doc text, revertible by a commit, provable by the
existing offline test suites (
run-triagehas none today — would need one).Proposed default ruling: reroute the genuine-judgement-call defaults to
attempt an ADR-0174 ruling first, falling back to
ready-for-humanonly whenthe call is truly outside the reversibility rule — matching the pattern
docs/agents/triage-labels.mdalready documents. A session can rule thisunder ADR 0174 unless the prompt-design tradeoffs turn out to need Ben's eyes
on the wording.
Ruled by agent under ADR 0174 — veto anytime.
Ruling: both stale sites now try an agent ruling under ADR 0174 before
ever defaulting to
ready-for-human, matching the patterndocs/agents/ triage-labels.mdalready documents and #531 applied to the session-standingsites.
run-triage.sh's headless/triageprompt (line 69) no longer says "labelthe issue ready-for-human" unconditionally. It now tells the agent: for a
judgement call that is revertible by a later commit/label change, provable
by an existing test/drive/probe, and not on the one-way-door list, RULE it
yourself — post "Ruled by agent under ADR 0174 — veto anytime" plus the
reasoning, and apply the label the ruling calls for.
ready-for-humanisreserved for a genuine one-way door, named in a
## Why humanline.prompt.mdrule 6 (a swarm worker hittingneeds_human_decisionmid-task)gets the identical self-ruling attempt inserted before it ever invokes
ask-human.sh's synchronous Mattermost ask. Asking a human is now thefallback for a genuine one-way door or genuine uncertainty, not the
default. "When you are blocked" step 2 narrows its own
ready-for-humanfallback the same way.
ask-human.sh's own timeout-parking text (line 168) is left unchanged: it'sa generic escalation utility also used by
sync-harness.shfor acredential push failure (always a one-way door), and by the time either
caller's call times out, the upstream gate has already established this
isn't something the agent could rule itself —
ready-for-humanstayscorrect there.
Why two-way door: prompt/doc text only, revertible with a commit, and
provable — pinned by a new offline suite
judgement-call-prompts-test.sh(10 grep-based checks over the prompt source text, reproduced red against
the pre-fix text via
git show HEAD:). Full.sandcastle/tests/*.shsweep:all 34 suites green.
Proof: commit
9900b60onorigin/main,STATUS.mdupdated in the samecommit.
Landed and closing per the close-report/audit-trail pattern this ticket
itself is scoped to (prompt/doc text, not code needing the envelope gate).