rehearsal: one red, one ticket — the reporter is the single filer, the refusing healer hands it a diagnosis artifact (#1144 seam) #1184

Closed
opened 2026-09-03 14:35:18 +00:00 by ben · 1 comment
Owner

The defect (proven on the phase-7 first drive)

Drive 20260903T042240Z redded once and produced TWO blocker tickets for the one fault: #1178 (healer-refusal filing, rich diagnosis) and #1179 (reporter filing, evidence dump) — closed as a dup. The #1144 healer-first regime gave the refusing healer its own filing path but the two rails share no signature ledger: the reporter's leg::error dedup (rail 6) never sees a healer-filed ticket, and the healer never checks the reporter's.

Single writer: the reporter. The healer keeps first-responder role (#1144 unchanged) but on REFUSAL it files nothing — it writes its diagnosis (the refusal rule hit, the layer analysis, the fix shape) to a well-known artifact in the run dir (e.g. artifacts/healer-refusal.md). The reporter — deterministic, always runs, already carries the dedup ledger, the #1138 filing cap, #601 priority, and the drive-issue blocking — files the ONE ticket, embedding the healer's diagnosis verbatim when the artifact exists.

Why not healer-only filing: the healer is killable (REHEARSAL_HEALER=0), capped, and an LLM session — if it is off or dead, a red would file NOTHING and the drive parks silently with no blocker (the #1138 class, minus even the ticket). The deterministic rail must remain the writer of record.

Notes

  • .sandcastle/rehearsal-report.sh is #445-fingerprinted (protected path) — session work; the healer side lands upstream in dev-factory and re-vendors (the self-hosting lesson).
  • Acceptance: one red drive with a refusing healer files exactly ONE ticket carrying the healer's diagnosis; a red with the healer disarmed still files (reporter alone); the same leg::error twice still dedups to zero new tickets.
  • Cannot-fail check on the embed: an absent/empty healer artifact must not file an empty-diagnosis ticket silently claiming a healer ran — name "healer: did not run / no diagnosis" honestly.

Origin: Ben's question on the #1179 dup, 2026-09-03; #1179's close comment carries the race evidence.

## The defect (proven on the phase-7 first drive) Drive `20260903T042240Z` redded once and produced TWO blocker tickets for the one fault: #1178 (healer-refusal filing, rich diagnosis) and #1179 (reporter filing, evidence dump) — closed as a dup. The #1144 healer-first regime gave the refusing healer its own filing path but the two rails share no signature ledger: the reporter's `leg::error` dedup (rail 6) never sees a healer-filed ticket, and the healer never checks the reporter's. ## The ruling this ticket asks a session to land (recommended shape) **Single writer: the reporter.** The healer keeps first-responder role (#1144 unchanged) but on REFUSAL it files nothing — it writes its diagnosis (the refusal rule hit, the layer analysis, the fix shape) to a well-known artifact in the run dir (e.g. `artifacts/healer-refusal.md`). The reporter — deterministic, always runs, already carries the dedup ledger, the #1138 filing cap, #601 priority, and the drive-issue blocking — files the ONE ticket, embedding the healer's diagnosis verbatim when the artifact exists. Why not healer-only filing: the healer is killable (`REHEARSAL_HEALER=0`), capped, and an LLM session — if it is off or dead, a red would file NOTHING and the drive parks silently with no blocker (the #1138 class, minus even the ticket). The deterministic rail must remain the writer of record. ## Notes - `.sandcastle/rehearsal-report.sh` is #445-fingerprinted (protected path) — session work; the healer side lands upstream in dev-factory and re-vendors (the self-hosting lesson). - Acceptance: one red drive with a refusing healer files exactly ONE ticket carrying the healer's diagnosis; a red with the healer disarmed still files (reporter alone); the same `leg::error` twice still dedups to zero new tickets. - Cannot-fail check on the embed: an absent/empty healer artifact must not file an empty-diagnosis ticket silently claiming a healer ran — name "healer: did not run / no diagnosis" honestly. Origin: Ben's question on the #1179 dup, 2026-09-03; #1179's close comment carries the race evidence.
Author
Owner

Close report — landed 04aa72df (idss re-vendor) + dev-factory 11264ede on main (Ruled by session under ADR 0174 — veto anytime). Two-way: labels, shell libs and a rail step after a successful install, all revertible by one commit; no spend, no posture change.

Shape chosen — the reporter stays the single writer, keyed on the FAULT. The executor log for drive 20260903T042240Z shows the concrete mechanism: the healer's file-verdict was already filed THROUGH the reporter's own filing flow (sig 25304f657c24, leg standing); the second ticket came from the reporter processing the nested wizard-rent leg — same error text, different leg name, so a different leg-keyed leg::error signature, and the healer runs once per drive so leg 2 went to the reporter's own diagnosis. Two rails sharing a ledger would not have caught it; a fault-keyed dedup does.

What landed (upstream Matou/dev-factory 11264ede, re-vendored here, drift OK): rehearsal-report.sh keeps a per-run filed_by_fault[normalize_error_line(err)] map, filled at every point an issue number becomes known (start-of-run sig match, fresh re-match, a new filing); a later red leg carrying an already-filed fault appends its evidence to that issue and never files. The healer's file-verdict is also persisted to artifacts/healer-refusal.json (leg + sig folded in) — the diagnosis artifact this ticket asked for — so it survives a refused filing or a cap skip and is there for the reporter and a later human.

Acceptance: one red drive, one fault under two legs → ONE ticket + one evidence comment (factory rehearsal-report-test 4c; digits differing between the two copies do not defeat the match); healer disarmed still files (unchanged cases); same leg::error twice still dedups to zero new tickets (cases 2/3); the artifact exists and is the file-verdict (rehearsal-healer-test 2). An absent artifact never files a fake "healer ran" ticket — nothing reads the artifact to file, the reporter files from the verdict in hand. The bump also carries factory #121 (session-runner ISO-8601 line stamps).

**Close report — landed `04aa72df` (idss re-vendor) + dev-factory `11264ede` on main (Ruled by session under ADR 0174 — veto anytime).** Two-way: labels, shell libs and a rail step after a successful install, all revertible by one commit; no spend, no posture change. **Shape chosen — the reporter stays the single writer, keyed on the FAULT.** The executor log for drive `20260903T042240Z` shows the concrete mechanism: the healer's file-verdict was already filed THROUGH the reporter's own filing flow (sig `25304f657c24`, leg `standing`); the second ticket came from the reporter processing the nested `wizard-rent` leg — same error text, different leg name, so a different leg-keyed `leg::error` signature, and the healer runs once per drive so leg 2 went to the reporter's own diagnosis. Two rails sharing a ledger would not have caught it; a fault-keyed dedup does. **What landed (upstream `Matou/dev-factory` `11264ede`, re-vendored here, drift OK):** `rehearsal-report.sh` keeps a per-run `filed_by_fault[normalize_error_line(err)]` map, filled at every point an issue number becomes known (start-of-run sig match, fresh re-match, a new filing); a later red leg carrying an already-filed fault appends its evidence to that issue and never files. The healer's file-verdict is also persisted to `artifacts/healer-refusal.json` (leg + sig folded in) — the diagnosis artifact this ticket asked for — so it survives a refused filing or a cap skip and is there for the reporter and a later human. **Acceptance:** one red drive, one fault under two legs → ONE ticket + one evidence comment (factory `rehearsal-report-test` 4c; digits differing between the two copies do not defeat the match); healer disarmed still files (unchanged cases); same `leg::error` twice still dedups to zero new tickets (cases 2/3); the artifact exists and is the file-verdict (`rehearsal-healer-test` 2). An absent artifact never files a fake "healer ran" ticket — nothing reads the artifact to file, the reporter files from the verdict in hand. The bump also carries factory #121 (session-runner ISO-8601 line stamps).
ben closed this issue 2026-09-03 15:51:26 +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#1184
No description provided.