rehearsal loop reports GREEN + closes #378 on a FAULTED finish leg — a faulted finish must fail the drive #440

Closed
opened 2026-08-11 18:59:22 +00:00 by ben · 1 comment
Owner

The rehearsal loop reported GREEN and auto-closed #378 on a FAULTED finish leg

Run 20260811T185108Z: playwright 1 passed (4.2m), harness DRIVE GREEN — closing drive issue #378. But state/founding-state.json shows the finish leg faulted:

step: deploying            (never reached founded-complete)
finish | the stand-up hit a problem — founding: hand over authority:
        scp: /var/lib/ourcloud/enroll.json: No such file or directory
standup.fault: <the same scp error>

The drive did NOT complete a founding — it faulted at the last leg — yet passed and closed the standing drive issue. GREEN is the ratchet's only close; a false green defeats the entire contract.

Root cause

99393f9 (a correct fix) added finish as the last entry of OWN_VPS_ORDER in journey.droplet.spec.ts. But the spec's success model is "wait for each leg; a leg is done once the bar's currentId advances past it" (legVerdict, journey.ts). When the bar advances to finish — even a FAULTED finish — currentId === 'finish' (the last leg), so every waitForLeg returns done and the test ends passing. waitForLeg's only failure check is snap.state === 'failed', but a finish-leg fault sets standup.fault / overlays the row without flipping the BAR's overall data-state to failed (step stays deploying) — so the guard never trips.

Fix

The drive must assert the founding actually COMPLETED, not merely that the bar reached the last row:

  1. After the leg loop, assert a terminal success signal — the paired/deployed/founded state the private path checks (e.g. [data-status="paired"] already asserted at spec:164, plus a founded/finish-done marker) AND assert no standup.fault / the bar is not in a failed/faulted row.
  2. Make a faulted finish surface as snap.state === 'failed' (or data-failed="finish") so waitForLeg throws — the bar should render the overall failed state on a finish fault the same way it does for earlier legs (the 2523d88 overlay kept the row visible but the OVERALL state signal is what the harness polls).
  3. Guard with a unit/seam test: a standup whose finish row faulted must NOT read as a passed journey.

This is the top blocker — until it lands, any drive that reaches finish closes #378 whether or not the founding succeeded.

drive 20260811T185108Z false green; evidence test-results/…/20260811T185108Z/state/founding-state.json

## The rehearsal loop reported GREEN and auto-closed #378 on a FAULTED finish leg Run `20260811T185108Z`: playwright `1 passed (4.2m)`, harness `DRIVE GREEN — closing drive issue #378`. But `state/founding-state.json` shows the finish leg **faulted**: ``` step: deploying (never reached founded-complete) finish | the stand-up hit a problem — founding: hand over authority: scp: /var/lib/ourcloud/enroll.json: No such file or directory standup.fault: <the same scp error> ``` The drive did NOT complete a founding — it faulted at the last leg — yet passed and closed the standing drive issue. GREEN is the ratchet's only close; a false green defeats the entire contract. ## Root cause `99393f9` (a correct fix) added `finish` as the last entry of `OWN_VPS_ORDER` in `journey.droplet.spec.ts`. But the spec's success model is "wait for each leg; a leg is done once the bar's currentId advances past it" (`legVerdict`, `journey.ts`). When the bar advances to `finish` — even a FAULTED finish — `currentId === 'finish'` (the last leg), so every `waitForLeg` returns `done` and the test ends passing. `waitForLeg`'s only failure check is `snap.state === 'failed'`, but a finish-leg fault sets `standup.fault` / overlays the row without flipping the BAR's overall `data-state` to `failed` (step stays `deploying`) — so the guard never trips. ## Fix The drive must assert the founding actually COMPLETED, not merely that the bar reached the last row: 1. After the leg loop, assert a terminal success signal — the paired/deployed/founded state the private path checks (e.g. `[data-status="paired"]` already asserted at spec:164, plus a founded/finish-done marker) AND assert **no** `standup.fault` / the bar is not in a failed/faulted row. 2. Make a faulted finish surface as `snap.state === 'failed'` (or `data-failed="finish"`) so `waitForLeg` throws — the bar should render the overall failed state on a finish fault the same way it does for earlier legs (the `2523d88` overlay kept the row visible but the OVERALL state signal is what the harness polls). 3. Guard with a unit/seam test: a standup whose finish row faulted must NOT read as a passed journey. This is the top blocker — until it lands, any drive that reaches finish closes #378 whether or not the founding succeeded. drive `20260811T185108Z` false green; evidence `test-results/…/20260811T185108Z/state/founding-state.json`
Author
Owner

Fixed in 591374b (on origin/main).

Root cause: journey.droplet.spec.ts's leg loop only waited through pair, then asserted paired and ran no-op Stage-3 legs — so the whole deploy + finish leg went UNWATCHED, and a faulted finish (drive 20260811T185108Z: the enroll.json scp on a missing /var/lib/ourcloud) slid past as a false green.

Fix:

  1. The droplet spec now waits each deploy row (mesh · public-entry · control-plane · dashboard · brand · admin) under its own budget (a deploy fault reds at its row via waitForLeg), then requires the finish leg to COMPLETE: it races the S12 hand-off ([data-status="hand-off"]) against the fault frame ([data-status="journey-fault"]) so a faulted finish reds in seconds, then asserts the hand-off opened with no fault standing. Reaching the finish ROW is not a founded community — the hand-off opening is (mirrors the proven private-path foundingPrefix.ts).
  2. A finish-leg fault already flips the bar to state=failed at the seam; guarded that with TestJourneyRows_FinishFaultMarksFinishFailed — a StandupDeploying+DeployLive+Fault standup marks the finish row FAILED (not running, not all-done) on BOTH journeyRows and the droplet's ownVPSJourneyRows.

Verified: go test ./internal/founding green (incl. new guard), gofmt/vet clean, vue-tsc clean, playwright --list parses the droplet spec. Next drive closes #378 only on a real founded hand-off.

Files: app/tests/e2e/journey.droplet.spec.ts, internal/founding/journey_test.go, STATUS.md.

Fixed in 591374b (on origin/main). **Root cause**: `journey.droplet.spec.ts`'s leg loop only waited through `pair`, then asserted `paired` and ran no-op Stage-3 legs — so the whole deploy + finish leg went UNWATCHED, and a faulted finish (drive `20260811T185108Z`: the enroll.json scp on a missing `/var/lib/ourcloud`) slid past as a false green. **Fix**: 1. The droplet spec now waits each deploy row (mesh · public-entry · control-plane · dashboard · brand · admin) under its own budget (a deploy fault reds at its row via `waitForLeg`), then requires the finish leg to COMPLETE: it races the S12 hand-off (`[data-status="hand-off"]`) against the fault frame (`[data-status="journey-fault"]`) so a faulted finish reds in seconds, then asserts the hand-off opened with no fault standing. Reaching the finish ROW is not a founded community — the hand-off opening is (mirrors the proven private-path `foundingPrefix.ts`). 2. A finish-leg fault already flips the bar to `state=failed` at the seam; guarded that with `TestJourneyRows_FinishFaultMarksFinishFailed` — a `StandupDeploying`+`DeployLive`+`Fault` standup marks the finish row FAILED (not running, not all-done) on BOTH `journeyRows` and the droplet's `ownVPSJourneyRows`. **Verified**: `go test ./internal/founding` green (incl. new guard), gofmt/vet clean, `vue-tsc` clean, `playwright --list` parses the droplet spec. Next drive closes #378 only on a real founded hand-off. Files: `app/tests/e2e/journey.droplet.spec.ts`, `internal/founding/journey_test.go`, `STATUS.md`.
ben closed this issue 2026-08-11 19:48:18 +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#440
No description provided.