rehearsal drive red at ports-honest #622

Closed
opened 2026-08-20 21:07:32 +00:00 by matou-build-agent · 2 comments

(headless diagnosis unparseable — raw stdout saved to logs/reporter-claude.out)

drive 20260820T205437Z red at ports-honest: expect(locator).toBeVisible() failed Locator: locator('[data-port="443"][data-status="dropped"]') Expected: visible Timeout: 600000ms Error: element(s) not found Call log: - Expect "toBeVisible" with
evidence: test-results/…/20260820T205437Z/ on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)

(headless diagnosis unparseable — raw stdout saved to logs/reporter-claude.out) drive `20260820T205437Z` red at `ports-honest`: `expect(locator).toBeVisible() failed Locator: locator('[data-port="443"][data-status="dropped"]') Expected: visible Timeout: 600000ms Error: element(s) not found Call log: - Expect "toBeVisible" with ` evidence: `test-results/…/20260820T205437Z/` on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596) <!-- rehearsal-sig: 89cf86e7639e -->
Owner

Head-start from the live evidence (test-results/drive-selfhosted/20260820T205437Z, matou-workstation) — not a #609 regression, the next fault behind it.

  • #609's fix (ce94770) took: state/founding-state.json → standup.reach now has an IP and a real probe result: "Probed from outside: 170.64.151.28 answered but ports 80, 443 closed — nothing is listening (open: none)", both port rows verdict: "refused".
  • The spec (journey.selfhosted.spec.ts portsHonest) runs iptables -I INPUT -p tcp --dport 443 -j DROP on the droplet then waits up to 10 min for [data-port="443"][data-status="dropped"].
  • Since #608 made the probe fire automatically on entering S10, the one-and-only probe ran before the spec's drop — and before anything listens on the droplet at that stage — so the honest snapshot is refused/refused. FoundingReachability.vue renders that single snapshot (:data-status="row.verdict"); nothing re-probes afterwards, so dropped can never appear and the leg times out. Drive ran 10.2 m, 7/8 legs green, first red ports-honest.

Candidates (pick by the wireframe/story-20 contract, p1-s10-reachability-and-name.html): (a) the spec drives the walkthrough's own retry after dropping 443 (story 20 says "then retry" — if the button exists, the spec should press it, and the assertion becomes meaningful); (b) if no retry affordance exists in the UI, that's the product gap — the walkthrough must offer re-probe; (c) alternatively sequence the drop before S10 entry, but then the drive never proves a changed verdict, which was the point of ports-honest.

Related: the prober vocabulary is open|refused|dropped (internal/founding/standup.go:136-143), so dropped IS a real verdict — the question is only when it's probed.

**Head-start from the live evidence (`test-results/drive-selfhosted/20260820T205437Z`, matou-workstation) — not a #609 regression, the next fault behind it.** - #609's fix (`ce94770`) took: `state/founding-state.json` → `standup.reach` now has an IP and a real probe result: `"Probed from outside: 170.64.151.28 answered but ports 80, 443 closed — nothing is listening (open: none)"`, both port rows `verdict: "refused"`. - The spec (`journey.selfhosted.spec.ts` `portsHonest`) runs `iptables -I INPUT -p tcp --dport 443 -j DROP` on the droplet *then* waits up to 10 min for `[data-port="443"][data-status="dropped"]`. - Since #608 made the probe fire automatically on entering S10, the one-and-only probe ran **before** the spec's drop — and before anything listens on the droplet at that stage — so the honest snapshot is `refused`/`refused`. `FoundingReachability.vue` renders that single snapshot (`:data-status="row.verdict"`); nothing re-probes afterwards, so `dropped` can never appear and the leg times out. Drive ran 10.2 m, 7/8 legs green, first red `ports-honest`. Candidates (pick by the wireframe/story-20 contract, `p1-s10-reachability-and-name.html`): (a) the spec drives the walkthrough's own **retry** after dropping 443 (story 20 says "then retry" — if the button exists, the spec should press it, and the assertion becomes meaningful); (b) if no retry affordance exists in the UI, that's the product gap — the walkthrough must offer re-probe; (c) alternatively sequence the drop before S10 entry, but then the drive never proves a *changed* verdict, which was the point of `ports-honest`. Related: the prober vocabulary is `open|refused|dropped` (`internal/founding/standup.go:136-143`), so `dropped` IS a real verdict — the question is only *when* it's probed.
Author
Member

Ruled by agent under ADR 0174 — veto anytime.

Root cause confirmed off the run dir's own evidence (test-results/drive-selfhosted/20260820T205437Z) plus a source read — matches Ben's head-start comment above exactly:

FoundingStandup.vue's reachabilityPending watch (#608's own fix, { immediate: true }) fires onProbe exactly once, the instant standup.step flips to reachability, and never re-polls on its own — DDR 0175's re-check is a deliberate operator click, not a timer. spec-gate-pass renders sub-second (853ms in this run) and the step transition follows right behind it — faster than the SSH round-trip portsHonest needs to land iptables -I INPUT -p tcp --dport 443 -j DROP on the droplet. So the one lone probe reliably wins the race and captures the pre-drop truth: host.json's ss -tlnp shows only port 22 listening on the fresh droplet, and founding-state.log's single captured snapshot shows both port rows refused — never dropped, because nothing ever looked again.

Fix (app/tests/e2e/journey.selfhosted.spec.ts, 272273a7): took Ben's preferred candidate (a) over (c). Sequencing the drop before the leg starts (c) would dodge the race but only prove a static already-dropped snapshot on first paint — not the leg's actual point, that the app detects a changed verdict on re-probe. Instead, after the SSH drop, portsHonest now waits for the walkthrough's own existing "Re-check the doors" button (data-action="recheck-ports", confirmed wired to the same onProbe/client.runReachability() seam call the auto-probe uses — FoundingStandup.vue:82,112) and clicks it before asserting [data-status="dropped"]. This forces a fresh probe that lands after the rule is armed regardless of which side of the race the SSH round-trip fell on, while still genuinely exercising the re-probe-detects-a-change path.

Proof:

  • pnpm exec tsc --noEmit / pnpm exec eslint clean on the touched file (only pre-existing, unrelated AppUpdateSurface errors elsewhere).
  • selfhosted.test.ts (the offline fixture suite for this journey's pure sequencing logic) — 17/17 green, unaffected by this change.
  • Not proved by a fresh live drive: this defect is a live-only timing race (the journey spec file itself IS the test, #377 — no sandbox-green claim), and a manual live re-drive was structurally unavailable from this session — rehearsal-cycle.sh's host-capacity semaphore (ADR 0184/#577) excludes a drive from running alongside an active session-runner tick, and this session holds matou-session-runner.lock for its own duration. Closing this ticket unblocks #523 (blocked_by #622, native dependency) for the standing executor's own next tick, which re-drives selfhosted unattended and is the live proof. A fresh red there — a different leg, or this fix being wrong — mints its own new ticket via the same reporter/dedup path #608/#609/#622 all came through.

STATUS.md updated in the same commit. Advances #523.

**Ruled by agent under ADR 0174 — veto anytime.** Root cause confirmed off the run dir's own evidence (`test-results/drive-selfhosted/20260820T205437Z`) plus a source read — matches Ben's head-start comment above exactly: `FoundingStandup.vue`'s `reachabilityPending` watch (#608's own fix, `{ immediate: true }`) fires `onProbe` **exactly once**, the instant `standup.step` flips to `reachability`, and never re-polls on its own — DDR 0175's re-check is a deliberate operator click, not a timer. `spec-gate-pass` renders sub-second (853ms in this run) and the step transition follows right behind it — faster than the SSH round-trip `portsHonest` needs to land `iptables -I INPUT -p tcp --dport 443 -j DROP` on the droplet. So the one lone probe reliably wins the race and captures the pre-drop truth: `host.json`'s `ss -tlnp` shows only port 22 listening on the fresh droplet, and `founding-state.log`'s single captured snapshot shows both port rows `refused` — never `dropped`, because nothing ever looked again. **Fix** (`app/tests/e2e/journey.selfhosted.spec.ts`, `272273a7`): took Ben's preferred candidate (a) over (c). Sequencing the drop before the leg starts (c) would dodge the race but only prove a static already-dropped snapshot on first paint — not the leg's actual point, that the app detects a **changed** verdict on re-probe. Instead, after the SSH drop, `portsHonest` now waits for the walkthrough's own existing "Re-check the doors" button (`data-action="recheck-ports"`, confirmed wired to the same `onProbe`/`client.runReachability()` seam call the auto-probe uses — `FoundingStandup.vue:82,112`) and clicks it before asserting `[data-status="dropped"]`. This forces a fresh probe that lands after the rule is armed regardless of which side of the race the SSH round-trip fell on, while still genuinely exercising the re-probe-detects-a-change path. **Proof:** - `pnpm exec tsc --noEmit` / `pnpm exec eslint` clean on the touched file (only pre-existing, unrelated `AppUpdateSurface` errors elsewhere). - `selfhosted.test.ts` (the offline fixture suite for this journey's pure sequencing logic) — 17/17 green, unaffected by this change. - **Not** proved by a fresh live drive: this defect is a live-only timing race (the journey spec file itself IS the test, #377 — no sandbox-green claim), and a manual live re-drive was structurally unavailable from this session — `rehearsal-cycle.sh`'s host-capacity semaphore (ADR 0184/#577) excludes a drive from running alongside an active session-runner tick, and this session holds `matou-session-runner.lock` for its own duration. Closing this ticket unblocks #523 (`blocked_by` #622, native dependency) for the standing executor's own next tick, which re-drives `selfhosted` unattended and is the live proof. A fresh red there — a different leg, or this fix being wrong — mints its own new ticket via the same reporter/dedup path #608/#609/#622 all came through. `STATUS.md` updated in the same commit. Advances #523.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#622
No description provided.