rehearsal: healer-first, ticket-on-refusal — every red heals in-lane unless a refusal rule fires; cap 200→400 (Ben ruled 2026-09-02) #1144
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1144
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?
Ruled by Ben (2026-09-02): restructure the drive loop to healer-first, ticket-on-refusal
This supersedes the narrower "widen the healer's rail signatures" finding from the phase-5 retrospective: with no signature gate, the refusal rules ARE the rails.
Why
Phase-5 data: the healer self-fixed 18 of 61 reds at ~170k output tokens each — roughly a tenth of the swarm's per-fix token cost — with zero reverted commits, and a healer fix re-fires the drive on the next 2-minute tick where a ticketed fix waits on the swarm queue (median ticket time-to-close 18 min, but queue + drive re-fire latency is much larger in practice). The signature gate is what kept the healer to 18: every unrecognized red went to the reporter → ticket → swarm even when mechanical.
The counter-lesson the restructure must respect: the arc's two most valuable finds (#1114, #1134) were product defects needing design rulings. A healer whose goal is "make the drive green" and meets such a red has one cheap move — weaken the assertion (the #1113 lesson: a red that is inconvenient is not a red that is wrong). The refusal rules below exist to force those reds onto the ticket path with the paper trail intact.
What
internal/orapp/srcthat alters what a community sees or what a deploy does — harness, fixtures,scripts/, wiring and test plumbing are fair game).Acceptance
expect(...)/assertion line produces a ticket with a "healer refused: assertion rule" diagnosis, and no commit.standingthat the healer refuses carriespriorityon its ticket (composes with the retro-5 reporter change).rehearsal healer: … (sig …)).Evidence: phase-5 retrospective (18/61 self-fixes, zero reverts, token ratios); #1113 correction on the tracker; healer cap history
09d2ea0e(GOTCHAS #115).Close report — #1144 landed (Ruled by agent under ADR 0174 — veto anytime)
The drive loop is now healer-first with ticket-on-refusal. Landed upstream in
Matou/dev-factoryfirst (the healer/reporter/prompt are factory-vendored, ADR 0180), then re-vendored into idss (check-harness-driftgreen).Two-way door (revertible code, offline-proven, and the rehearsal loop is DISARMED on every host so this is inert until a human re-arms): no personal credentials, no security-posture widening — the refusal rules NARROW the healer's reach — no member-facing trust, no data destruction, no spend.
What landed
dev-factory (
Matou/dev-factory):07d779e(restructure) +2d7a089(noglob fix), onmain.idss:
10657340onmain(re-vendor + idss product-surface declaration + STATUS).rehearsal-heal-lib.sh'sheal_railsgained three hard backstops that reset the checkout and name the rule inHEAL_RAIL_REASON:expect(...)/assert line, or deletes/skips a leg or test, refuses (the #1113 guard). A selector-drift heal editing a locator/action line (not an assertion) still heals in-lane.HEAL_PRODUCT_SURFACE_GLOBS(factory ships it empty; IDSS setsinternal/* app/src/*in its own non-vendored.sandcastle/report-guard.sh). Harness/fixtures/scripts//test-plumbing stay healable.rehearsal-report.sh'stry_healfiles the blocker ITSELF on a refusal, reusing the healer's single claude call and naming the rule + the healer's own finding.HEAL_RAIL_SWARMABLEroutes a too-big-but-mechanical refusal to the swarm (ready-for-agent), and a weaken-a-check / product-surface refusal to a ruling (ready-for-session). Filing flows through the existing cap/priority/dependency-wiring path (so #1138's cap and the priority float apply, and a standing-leg refusal carriespriority).heal_healed_*marks; never a second heal (no heal loops).rehearsal healer: … (sig …)).Acceptance criteria — all met, offline-proven
rehearsal-healer-testheal path; selector-driftrehearsal-heal-libR1d passes the rails).expect(...)/assertion edit → ticket "healer refused (assertion rule)", no commit — ✅ (rehearsal-heal-libR1a/b/c,rehearsal-healercase 13).priority— ✅ (funnelled through the shared touched→priority float).rehearsal-heal-lib9b,rehearsal-healercase 16).Proof
tests/*.sh+onboarding/tests/*.sh) +bash -nall scripts. Render goldens re-generated (onboard-lib-test234,judgement-call-prompts-test33).rehearsal-heal-lib26,rehearsal-healer17,rehearsal-report41,claim-next-task28,list-ready-tasks18;check-harness-driftOK @2d7a089.Notes / residue for the next session
2d7a089):for g in $surfacespathname-expands, sointernal/*glob-matched the drive repo's realinternal/dir instead of staying a literalcasepattern — the product-surface rule silently no-opped in exactly the product repos it exists for. Fixed withset -faround the split; the test now runs its R3 cases from a decoy cwd so the regression is caught everywhere.