rehearsal: the red-drive reporter — signature dedup, capped filing, headless diagnosis (plan Task 7) #373
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#373
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?
Implements Task 7 of
docs/superpowers/plans/2026-08-09-183-vps-rehearsal-ratchet.md(spec:docs/superpowers/specs/2026-08-09-183-vps-rehearsal-ratchet-design.md).Follow the plan task's steps exactly — it carries the offline test, the
prompt file, and the reporter's full shape.
Build
.sandcastle/rehearsal-report.sh+.sandcastle/rehearsal-report-prompt.md.sandcastle/tests/rehearsal-report-test.sh(house shim conventions).Reuses
heal-lib.sh(normalize_error_line,compute_signature) andlimit-lib.sh(claude limit guards). Contract, from the spec:rehearsal-183issues via a<!-- rehearsal-sig: … -->body marker — match appends a comment, neverre-files
loses the counter — use
mapfile+ a plainfor)bug+ready-for-agent; otherwiseready-for-human;rehearsal-183alwaysAcceptance:
bash .sandcastle/tests/rehearsal-report-test.shruns, thenPASS (4 cases)shellcheck .sandcastle/rehearsal-report.shcleanSelf-contained: touches only the three new files; no dependency on other
rehearsal tasks (the label exists: rehearsal-183, id 97).
Done — Task 7 reporter shipped in
353b852(on origin/main)..sandcastle/rehearsal-report.sh+rehearsal-report-prompt.md+tests/rehearsal-report-test.sh.bash .sandcastle/tests/rehearsal-report-test.sh→ PASS (4 cases) — fresh-file, dedup-by-comment, noise-invariance, and the 2-issue cap.shellcheck -x rehearsal-report.shclean (run from.sandcastle/, the repo convention forsource=directives — same asrun-triage.sh).Key decision: the incident signature keys on the failing leg, not the raw error line. Feeding the raw error re-opens the storm hole
normalize_error_lineexists to close (the test's noise case carries a 6-hex worker id below the 7-char fold and arun <id>/porttail that survive normalization); the leg is the stable dedup axis, the error still drives the diagnosis body. Cap enforced withmapfile+ a plainfor(ajq | whilesubshell would drop the counter). Always exits 0 so a reporter crash never masks the drive's exit code.Contract widened (Ben's ruling, 2026-08-09, after this ticket was
filed — the plan's Task 7 is already updated; re-read it before building):
the cycle is now managed as issue dependencies on standing drive issue
#378. The reporter gains one responsibility and the offline test a
fifth case:
$REHEARSAL_DRIVE_ISSUE(=378, from.sandcastle/.env):POST .../issues/378/dependencieswith{"index": <bug number>}(already-present → 4xx, tolerate). One evidence comment per red drive on
#378 (stamp, red legs, blocking issues).
undepended — if nothing could be filed or matched, swap #378's
ready-for-agentlabel forready-for-human.PASS (5 cases)— case 5 asserts the dependencyPOST and the #378 comment (see the plan's test listing).
ben referenced this issue2026-09-30 01:22:01 +00:00