reporter: ask-human.sh/run-triage.sh judgement-call fallback still defaults to ready-for-human under ADR 0174 #585

Closed
opened 2026-08-15 08:37:49 +00:00 by ben · 1 comment
Owner

Context

While working #531 (the rehearsal reporter's diagnosis-fallback wrongly
defaulting to ready-for-human instead of ready-for-session), I grepped
.sandcastle/ for every other ready-for-human default and rerouted the
ones that are session-work by the ADR 0174 bar (protected-path escape hatches
in protected-paths-lib.sh, run-swarm.sh, and prompt.md rule 9 — all
three 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 /triage prompt (line 69): "When
    you 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-human now narrows to
    Ben's hands/eyes/one-way-doors only (docs/agents/triage-labels.md already
    documents the narrower bar; this prompt string doesn't reflect it).
  • .sandcastle/prompt.md rule 6 / "When you are blocked" (lines ~88, ~207)
    and ask-human.sh's own timeout fallback (line 168): a swarm worker that
    hits a judgement call it can't answer asks via Mattermost, and on timeout
    parks the issue ready-for-human. Same question: should some fraction of
    these 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-triage has 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-human only when
the call is truly outside the reversibility rule — matching the pattern
docs/agents/triage-labels.md already documents. A session can rule this
under ADR 0174 unless the prompt-design tradeoffs turn out to need Ben's eyes
on the wording.

## Context While working #531 (the rehearsal reporter's diagnosis-fallback wrongly defaulting to `ready-for-human` instead of `ready-for-session`), I grepped `.sandcastle/` for every other `ready-for-human` default and rerouted the ones that are session-work by the ADR 0174 bar (protected-path escape hatches in `protected-paths-lib.sh`, `run-swarm.sh`, and `prompt.md` rule 9 — all three 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 `/triage` prompt (line 69): "When you 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-human` now narrows to Ben's hands/eyes/one-way-doors only (`docs/agents/triage-labels.md` already documents the narrower bar; this prompt string doesn't reflect it). - `.sandcastle/prompt.md` rule 6 / "When you are blocked" (lines ~88, ~207) and `ask-human.sh`'s own timeout fallback (line 168): a swarm worker that hits a judgement call it can't answer asks via Mattermost, and on timeout parks the issue `ready-for-human`. Same question: should some fraction of these 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-triage` has 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-human` only when the call is truly outside the reversibility rule — matching the pattern `docs/agents/triage-labels.md` already documents. A session can rule this under ADR 0174 unless the prompt-design tradeoffs turn out to need Ben's eyes on the wording.
Author
Owner

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 pattern docs/agents/ triage-labels.md already documents and #531 applied to the session-standing
sites.

  • run-triage.sh's headless /triage prompt (line 69) no longer says "label
    the 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-human is
    reserved for a genuine one-way door, named in a ## Why human line.
  • prompt.md rule 6 (a swarm worker hitting needs_human_decision mid-task)
    gets the identical self-ruling attempt inserted before it ever invokes
    ask-human.sh's synchronous Mattermost ask. Asking a human is now the
    fallback for a genuine one-way door or genuine uncertainty, not the
    default. "When you are blocked" step 2 narrows its own ready-for-human
    fallback the same way.
  • ask-human.sh's own timeout-parking text (line 168) is left unchanged: it's
    a generic escalation utility also used by sync-harness.sh for a
    credential 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-human stays
    correct 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/*.sh sweep:
all 34 suites green.

Proof: commit 9900b60 on origin/main, STATUS.md updated in the same
commit.

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).

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 pattern `docs/agents/ triage-labels.md` already documents and #531 applied to the session-standing sites. - `run-triage.sh`'s headless `/triage` prompt (line 69) no longer says "label the 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-human` is reserved for a genuine one-way door, named in a `## Why human` line. - `prompt.md` rule 6 (a swarm worker hitting `needs_human_decision` mid-task) gets the identical self-ruling attempt inserted *before* it ever invokes `ask-human.sh`'s synchronous Mattermost ask. Asking a human is now the fallback for a genuine one-way door or genuine uncertainty, not the default. "When you are blocked" step 2 narrows its own `ready-for-human` fallback the same way. - `ask-human.sh`'s own timeout-parking text (line 168) is left unchanged: it's a generic escalation utility also used by `sync-harness.sh` for a credential 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-human` stays correct 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/*.sh` sweep: all 34 suites green. **Proof:** commit `9900b60` on `origin/main`, `STATUS.md` updated in the same commit. 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).
ben closed this issue 2026-08-15 10:07:06 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#585
No description provided.