reporter: the diagnosis-fallback files ready-for-session, not ready-for-human (ADR 0174) #531

Closed
opened 2026-08-14 16:32:25 +00:00 by ben · 2 comments
Owner

Why

ADR 0174 (b183490) narrows ready-for-human to Ben's hands/eyes/one-way-door rulings. The rehearsal reporter's diagnosis-fallback path (.sandcastle/rehearsal-report.sh) still files its unparseable-diagnosis tickets as ready-for-human (#530 was filed that way minutes after the ADR landed), so every headless red re-parks the queue on Ben.

What to change

  • The fallback path labels its tickets ready-for-session (+ priority + rehearsal-183, unchanged) — a session diagnoses from the workstation evidence bundle and escalates to ready-for-human only on a one-way door.
  • Grep for any other ready-for-human defaults in .sandcastle/ and reroute the ones that are session-work by the ADR 0174 bar (leave genuinely-human ones).
  • Offline test alongside the reporter's existing cases.

Why human

Nothing — filed ready-for-session because .sandcastle/ is a protected path (#445): an interactive session lands it.

## Why ADR 0174 (`b183490`) narrows `ready-for-human` to Ben's hands/eyes/one-way-door rulings. The rehearsal reporter's diagnosis-fallback path (`.sandcastle/rehearsal-report.sh`) still files its unparseable-diagnosis tickets as `ready-for-human` (#530 was filed that way minutes after the ADR landed), so every headless red re-parks the queue on Ben. ## What to change - The fallback path labels its tickets `ready-for-session` (+ `priority` + `rehearsal-183`, unchanged) — a session diagnoses from the workstation evidence bundle and escalates to `ready-for-human` only on a one-way door. - Grep for any other `ready-for-human` defaults in `.sandcastle/` and reroute the ones that are session-work by the ADR 0174 bar (leave genuinely-human ones). - Offline test alongside the reporter's existing cases. ## Why human Nothing — filed `ready-for-session` because `.sandcastle/` is a protected path (#445): an interactive session lands it.
Author
Owner

This was generated by AI during triage.

Triage: added the missing category label; state (ready-for-session, already reasoned in this thread) left as-is.

> *This was generated by AI during triage.* **Triage:** added the missing category label; state (`ready-for-session`, already reasoned in this thread) left as-is.
Author
Owner

Ruled by agent under ADR 0174 — veto anytime.

Ruling: the reporter's diagnosis-fallback (rehearsal-report.sh line
~399, the else-branch when confident is false or the diagnosis is
unparseable) now labels its rehearsal-183 filing ready-for-session
instead of ready-for-human, exactly as this ticket asked. This is a
two-way door: revertible with a one-line label-name change, provable by the
offline test suite.

Scope ruling on the grep-and-reroute ask: grepped .sandcastle/ for
every other ready-for-human default and applied the ADR 0174 rule 5 bar
(session-standing work: host creds, protected paths, live doors,
design-tier runs) to each:

  • Rerouted to ready-for-session (all describe the same protected-path
    escape hatch, ADR 0174 rule 5's own named example — protected .sandcastle/ paths per #445): protected-paths-lib.sh's
    PP_ESCAPE_PATH + failure banner, run-swarm.sh's matching
    comment/Mattermost text, and .sandcastle/prompt.md rule 9 (a
    hand-duplicated third copy of the same worker-facing text).
  • Left as ready-for-human, confirmed correct, not stale:
    flip_drive_to_human's blocked-invariant flip (cases 6/8 in
    rehearsal-report-test.sh). Proof: session-runner.sh's queue query
    explicitly excludes the standing drive issue
    (select(.number != $drive)), so ready-for-human is the only way
    a broken blocked-invariant ever reaches anyone — by design, Ben's digest.
    Relabelling it ready-for-session would have silently orphaned it.
  • Out of scope, filed as follow-up #585 instead of folded in:
    ask-human.sh's timeout fallback and run-triage.sh's headless
    /triage prompt both still default any judgement call straight to
    ready-for-human, which is a different (broader, pre-ADR-0174)
    over-defaulting problem than "needs session standing" — worth its own
    scoped fix rather than widening this ticket's diff.

Proof:

  • commit c98124b6a57b29338177430bf201952fc58404ae on origin/main
  • bash .sandcastle/tests/rehearsal-report-test.sh → PASS (25 cases,
    including two new/updated cases pinning the unparseable AND explicit
    "confident":false paths file ready-for-session)
  • bash .sandcastle/tests/protected-paths-lib-test.sh → 27 checks passed
    (banner assertion updated to ready-for-session)
  • full .sandcastle/tests/*.sh sweep run; the 4 failures present
    (heal-test, list-ready-tasks-test, preflight-swarm-test,
    rehearsal-healer-test) reproduce identically on a clean git stash
    of main — pre-existing, unrelated to this change
  • follow-up filed: #585 (ask-human.sh/run-triage.sh judgement-call
    defaults)

No one-way door hit — nothing here touches personal credentials,
security-posture, member-facing trust surfaces, data, or spend.

Ruled by agent under ADR 0174 — veto anytime. **Ruling:** the reporter's diagnosis-fallback (`rehearsal-report.sh` line ~399, the else-branch when `confident` is false or the diagnosis is unparseable) now labels its rehearsal-183 filing `ready-for-session` instead of `ready-for-human`, exactly as this ticket asked. This is a two-way door: revertible with a one-line label-name change, provable by the offline test suite. **Scope ruling on the grep-and-reroute ask:** grepped `.sandcastle/` for every other `ready-for-human` default and applied the ADR 0174 rule 5 bar (session-standing work: host creds, protected paths, live doors, design-tier runs) to each: - **Rerouted to `ready-for-session`** (all describe the *same* protected-path escape hatch, ADR 0174 rule 5's own named example — `protected .sandcastle/ paths per #445`): `protected-paths-lib.sh`'s `PP_ESCAPE_PATH` + failure banner, `run-swarm.sh`'s matching comment/Mattermost text, and `.sandcastle/prompt.md` rule 9 (a hand-duplicated third copy of the same worker-facing text). - **Left as `ready-for-human`, confirmed correct, not stale**: `flip_drive_to_human`'s blocked-invariant flip (cases 6/8 in `rehearsal-report-test.sh`). Proof: `session-runner.sh`'s queue query explicitly excludes the standing drive issue (`select(.number != $drive)`), so `ready-for-human` is the *only* way a broken blocked-invariant ever reaches anyone — by design, Ben's digest. Relabelling it `ready-for-session` would have silently orphaned it. - **Out of scope, filed as follow-up #585 instead of folded in**: `ask-human.sh`'s timeout fallback and `run-triage.sh`'s headless `/triage` prompt both still default *any* judgement call straight to `ready-for-human`, which is a different (broader, pre-ADR-0174) over-defaulting problem than "needs session standing" — worth its own scoped fix rather than widening this ticket's diff. **Proof:** - commit `c98124b6a57b29338177430bf201952fc58404ae` on `origin/main` - `bash .sandcastle/tests/rehearsal-report-test.sh` → PASS (25 cases, including two new/updated cases pinning the unparseable AND explicit `"confident":false` paths file `ready-for-session`) - `bash .sandcastle/tests/protected-paths-lib-test.sh` → 27 checks passed (banner assertion updated to `ready-for-session`) - full `.sandcastle/tests/*.sh` sweep run; the 4 failures present (`heal-test`, `list-ready-tasks-test`, `preflight-swarm-test`, `rehearsal-healer-test`) reproduce identically on a clean `git stash` of `main` — pre-existing, unrelated to this change - follow-up filed: #585 (ask-human.sh/run-triage.sh judgement-call defaults) No one-way door hit — nothing here touches personal credentials, security-posture, member-facing trust surfaces, data, or spend.
ben closed this issue 2026-08-15 08:38:55 +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#531
No description provided.