rehearsal: a red before any leg looks green to the reporter — wizard-stage reds never block the drive, the loop refires forever #392

Closed
opened 2026-08-10 12:57:03 +00:00 by ben · 1 comment
Owner

2026-08-10, 07:00–11:10Z: 25 consecutive red drives (exit 1 at the S5 fixture), and after every one the reporter said no red legs — green drive, nothing to file. #378 was never blocked, so the executor re-fired on every */10 tick for over four hours — ~25 paid droplet create/destroy cycles that would have continued indefinitely. The pre-legs path (exit 3) files correctly (it produced #390 and parked the loop); the wizard-stage path falls through.

Invariant: any red drive must end with #378 blocked. A playwright red that produces zero red legs in legs.json (the wizard died before the legs ran) must file a "drive red at wizard" issue — same shape as the pre-legs filing, with the playwright failure line + run dir as evidence — and add the native dependency.

Evidence: rehearsal-executor.log lines ~317–7879 on matou-workstation; any run dir from 20260810T070055Z through 20260810T110036Z.

2026-08-10, 07:00–11:10Z: 25 consecutive red drives (exit 1 at the S5 fixture), and after every one the reporter said `no red legs — green drive, nothing to file`. #378 was never blocked, so the executor re-fired on every */10 tick for over four hours — ~25 paid droplet create/destroy cycles that would have continued indefinitely. The pre-legs path (exit 3) files correctly (it produced #390 and parked the loop); the wizard-stage path falls through. Invariant: **any red drive must end with #378 blocked.** A playwright red that produces zero red legs in `legs.json` (the wizard died before the legs ran) must file a "drive red at wizard" issue — same shape as the pre-legs filing, with the playwright failure line + run dir as evidence — and add the native dependency. Evidence: `rehearsal-executor.log` lines ~317–7879 on matou-workstation; any run dir from `20260810T070055Z` through `20260810T110036Z`.
Author
Owner

Fixed in commit e2fd149 on main.

Root cause: the reporter derived "green" from the red-leg count in legs.json, but a wizard-stage red (the wizard dies at S1–S5 before driveLegs runs) leaves an EMPTY legs.json — zero red legs — so a real red drive fell through to no red legs — green drive, nothing to file, #378 was never blocked, and the */10 executor re-fired indefinitely.

Fix:

  • scripts/rehearsal-cycle.sh now passes the drive exit code to rehearsal-report.sh as arg 2.
  • .sandcastle/rehearsal-report.sh: a red drive (rc != 0) with zero red legs synthesizes a wizard red leg from the playwright failure line — same shape as the existing pre-legs synthesis — files a drive-red-at-wizard issue and wires the native dependency onto #378. A green drive (rc 0) with zero red legs still files nothing. The wizard leg name gives repeats a stable dedup signature.

Invariant restored: any red drive ends with #378 blocked.

Evidence: .sandcastle/tests/rehearsal-report-test.sh cases 10 (wizard red files+blocks) and 11 (green rc=0 files nothing); 11/11 pass locally.

Fixed in commit e2fd149 on `main`. Root cause: the reporter derived "green" from the red-leg count in `legs.json`, but a wizard-stage red (the wizard dies at S1–S5 before `driveLegs` runs) leaves an EMPTY `legs.json` — zero red legs — so a real red drive fell through to `no red legs — green drive, nothing to file`, #378 was never blocked, and the */10 executor re-fired indefinitely. Fix: - `scripts/rehearsal-cycle.sh` now passes the drive exit code to `rehearsal-report.sh` as arg 2. - `.sandcastle/rehearsal-report.sh`: a red drive (rc != 0) with zero red legs synthesizes a `wizard` red leg from the playwright failure line — same shape as the existing pre-legs synthesis — files a drive-red-at-wizard issue and wires the native dependency onto #378. A green drive (rc 0) with zero red legs still files nothing. The `wizard` leg name gives repeats a stable dedup signature. Invariant restored: any red drive ends with #378 blocked. Evidence: `.sandcastle/tests/rehearsal-report-test.sh` cases 10 (wizard red files+blocks) and 11 (green rc=0 files nothing); 11/11 pass locally.
ben closed this issue 2026-08-10 13:18:16 +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.

Reference
Matou/idss#392
No description provided.