rehearsal drive red at ports-honest #625

Closed
opened 2026-08-21 01:15:09 +00:00 by matou-build-agent · 2 comments

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

drive 20260821T010253Z red at ports-honest: expect(locator).toBeVisible() failed Locator: locator('[data-status="reachable"]') Expected: visible Timeout: 600000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 600000m
evidence: test-results/…/20260821T010253Z/ 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 `20260821T010253Z` red at `ports-honest`: `expect(locator).toBeVisible() failed Locator: locator('[data-status="reachable"]') Expected: visible Timeout: 600000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 600000m` evidence: `test-results/…/20260821T010253Z/` 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 (evidence test-results/drive-selfhosted/20260821T010253Z, on e101413b / served pin d2c56b6) — the PRODUCT passed the whole honesty tooth; the spec's last assertion looks for an element the success path folds away. Spec-only, same class as #624, one assertion later.

state/founding-state.json reachability events, in order:

  1. "the probe to port 443 was dropped, not refused (open: none)" — #624's early drop landed first; the fault was detected honestly (and the leg's dropped + guidance + no-false-reachable assertions passed).
  2. after undrop + recheck-ports: "answers — the knock reaches your machine on ports 80, 443 (nothing is serving yet; the gateway deploy comes next)" → reachable: true (DDR 0188).
  3. name-wiring: "rehearsal-b.idss.nz now points at 134.199.147.194" → step: deploying.

The red is journey.selfhosted.spec.ts portsHonest's final line: expect([data-status="reachable"]).toBeVisible() after the re-check. FoundingReachability.vue:10 renders that element only while the stand-up is on the reachability step; on success RunReachability wires the name and flips step to deploying in the same commit, so the S10 section folds and FoundingDeployGateway.vue (data-status="deploy-gateway" / "deploying") replaces it — the element is gone before Playwright can see it.

Fix: mirror what leg 9 (point) already does — it waits on wired.or(deployStarted).first(). The ports-honest closing assertion should be reachable.or(deploy-gateway).first() (selectors [data-status="reachable"], [data-status="deploy-gateway"]), since "advanced past S10" is the proof the door answered. Optionally also assert the state file's last reachability event contains reaches your machine, so the leg still proves the re-probe produced a changed verdict (dropped → reachable), not just that the step moved. No app/DDR change.

**Head-start (evidence `test-results/drive-selfhosted/20260821T010253Z`, on `e101413b` / served pin `d2c56b6`) — the PRODUCT passed the whole honesty tooth; the spec's last assertion looks for an element the success path folds away. Spec-only, same class as #624, one assertion later.** `state/founding-state.json` reachability events, in order: 1. `"the probe to port 443 was dropped, not refused (open: none)"` — #624's early drop landed first; the fault was detected honestly (and the leg's `dropped` + guidance + no-false-`reachable` assertions passed). 2. after `undrop` + `recheck-ports`: `"answers — the knock reaches your machine on ports 80, 443 (nothing is serving yet; the gateway deploy comes next)"` → `reachable: true` (DDR 0188). 3. `name-wiring: "rehearsal-b.idss.nz now points at 134.199.147.194"` → `step: deploying`. The red is `journey.selfhosted.spec.ts` `portsHonest`'s final line: `expect([data-status="reachable"]).toBeVisible()` after the re-check. `FoundingReachability.vue:10` renders that element only while the stand-up is on the reachability step; on success `RunReachability` wires the name and flips `step` to `deploying` in the same commit, so the S10 section folds and `FoundingDeployGateway.vue` (`data-status="deploy-gateway"` / `"deploying"`) replaces it — the element is gone before Playwright can see it. **Fix:** mirror what leg 9 (`point`) already does — it waits on `wired.or(deployStarted).first()`. The `ports-honest` closing assertion should be `reachable.or(deploy-gateway).first()` (selectors `[data-status="reachable"]`, `[data-status="deploy-gateway"]`), since "advanced past S10" *is* the proof the door answered. Optionally also assert the state file's last reachability event contains `reaches your machine`, so the leg still proves the re-probe produced a *changed* verdict (dropped → reachable), not just that the step moved. No app/DDR change.
Author
Member

Ruled by agent under ADR 0174 — veto anytime

Ruling: two-way-door test-driver fix, no app/DDR change. Revertible by commit (aa9de31b), provable against the run dir's own evidence (test-results/drive-selfhosted/20260821T010253Z/) plus a source-level read of internal/founding/standup.go's RunReachability and FoundingStandup.vue/FoundingReachability.vue's mount conditions — independently confirming Ben's head-start comment above. Not on the one-way-door list: no credentials, no security-posture widening, no trust-surface accept, no data destruction, no hardware.

Diagnosis (matches the head-start exactly)

state/founding-state.json shows the honesty tooth fully worked: dropped (not refused) → guidance rendered → undrop → recheck → reachable: true ("reaches your machine on ports 80, 443") → name-wiring (rehearsal-b.idss.nz now points at 134.199.147.194) → step: deploying. RunReachability (standup.go:774-786) wires the name and flips Step to StandupDeploying in the SAME response as the reachable read — atomic, not staged (ADR 0049). FoundingStandup.vue mounts FoundingReachability (owner of [data-status="reachable"]) only while step === 'reachability' (line 110) and swaps to FoundingDeployGateway ([data-status="deploy-gateway"]) the same Vue tick step becomes 'deploying' (line 122) — so the reachable element structurally never exists in the DOM for a subdomain-addressed self-hosted community. Leg 9 (point) already documents and handles this exact fold (wired.or(deployStarted)); leg 8's own closing assertion was the one spot that never got the same treatment. DDR 0188/#624's fix worked exactly as designed — this is one assertion later, same class.

Fix

app/tests/e2e/journey.selfhosted.spec.ts (aa9de31b): the closing assertion now accepts [data-status="reachable"] OR [data-status="deploy-gateway"] — reaching the deploy view is itself proof the probe passed, since the app cannot reach deploying without Reachable having just been true. Added a positive check reading the state file for a "reaches your machine" event on the re-probe, so the leg still proves a genuine dropped→reachable transition rather than just "the step moved for some other reason." No app code, DDR, or gate semantics touched.

Proof

  • vue-tsc -p tsconfig.json --noEmit clean.
  • eslint app/tests/e2e/journey.selfhosted.spec.ts clean.
  • fixtures/selfhosted.test.ts (17/17, the fault-injection-ordering unit contract) green, unaffected.
  • Full vitest run: 906/906 green.
  • go test ./...: green.
  • NOT re-proved by a fresh live drive this session — architecturally impossible, not just a capacity preference: scripts/rehearsal-cycle.sh grabs /tmp/matou-session-runner.lock exclusively (all-or-nothing) before driving, and this session holds that lock for its own duration. The next unattended selfhosted re-drive is the live proof, same closure path #608/#609/#622/#623/#624 all took.

New finding along the way — filed separately as #626, NOT fixed here

This same drive is the first in the whole #622→#623→#624→#625 chain to ever reach deploy-takeover live — and it genuinely reds there, for real: a missing_var clan eval failure (gateway's sops.defaultGroups/secretUploadDirectory never generated), despite ADR 0126/#398's generate-before-eval guard in internal/clan/enrollment.go. Different subsystem (clan/nix secrets generation, not a Playwright assertion), needs its own root-cause pass before a ruling — out of scope for this ticket per ADR 0174 sequencing. #626 carries the full evidence and a node-id-vs-flake-machine-name hypothesis worth checking first. Once this ticket's fix lands, the next drive to get past ports-honest will very likely hit #626's red next.

Advances #625; commit aa9de31b, STATUS.md updated in the same commit.

## Ruled by agent under ADR 0174 — veto anytime **Ruling:** two-way-door test-driver fix, no app/DDR change. Revertible by commit (`aa9de31b`), provable against the run dir's own evidence (`test-results/drive-selfhosted/20260821T010253Z/`) plus a source-level read of `internal/founding/standup.go`'s `RunReachability` and `FoundingStandup.vue`/`FoundingReachability.vue`'s mount conditions — independently confirming Ben's head-start comment above. Not on the one-way-door list: no credentials, no security-posture widening, no trust-surface accept, no data destruction, no hardware. ## Diagnosis (matches the head-start exactly) `state/founding-state.json` shows the honesty tooth fully worked: dropped (not refused) → guidance rendered → undrop → recheck → `reachable: true` ("reaches your machine on ports 80, 443") → name-wiring (`rehearsal-b.idss.nz now points at 134.199.147.194`) → `step: deploying`. `RunReachability` (standup.go:774-786) wires the name and flips `Step` to `StandupDeploying` in the SAME response as the reachable read — atomic, not staged (ADR 0049). `FoundingStandup.vue` mounts `FoundingReachability` (owner of `[data-status="reachable"]`) only while `step === 'reachability'` (line 110) and swaps to `FoundingDeployGateway` (`[data-status="deploy-gateway"]`) the same Vue tick `step` becomes `'deploying'` (line 122) — so the reachable element structurally never exists in the DOM for a subdomain-addressed self-hosted community. Leg 9 (`point`) already documents and handles this exact fold (`wired.or(deployStarted)`); leg 8's own closing assertion was the one spot that never got the same treatment. DDR 0188/#624's fix worked exactly as designed — this is one assertion later, same class. ## Fix `app/tests/e2e/journey.selfhosted.spec.ts` (`aa9de31b`): the closing assertion now accepts `[data-status="reachable"]` OR `[data-status="deploy-gateway"]` — reaching the deploy view is itself proof the probe passed, since the app cannot reach `deploying` without `Reachable` having just been true. Added a positive check reading the state file for a "reaches your machine" event on the re-probe, so the leg still proves a genuine dropped→reachable transition rather than just "the step moved for some other reason." No app code, DDR, or gate semantics touched. ## Proof - `vue-tsc -p tsconfig.json --noEmit` clean. - `eslint app/tests/e2e/journey.selfhosted.spec.ts` clean. - `fixtures/selfhosted.test.ts` (17/17, the fault-injection-ordering unit contract) green, unaffected. - Full `vitest run`: 906/906 green. - `go test ./...`: green. - **NOT re-proved by a fresh live drive this session** — architecturally impossible, not just a capacity preference: `scripts/rehearsal-cycle.sh` grabs `/tmp/matou-session-runner.lock` exclusively (all-or-nothing) before driving, and this session holds that lock for its own duration. The next unattended `selfhosted` re-drive is the live proof, same closure path #608/#609/#622/#623/#624 all took. ## New finding along the way — filed separately as #626, NOT fixed here This same drive is the first in the whole #622→#623→#624→#625 chain to ever reach `deploy-takeover` live — and it genuinely reds there, for real: a `missing_var` clan eval failure (`gateway`'s `sops.defaultGroups`/`secretUploadDirectory` never generated), despite ADR 0126/#398's generate-before-eval guard in `internal/clan/enrollment.go`. Different subsystem (clan/nix secrets generation, not a Playwright assertion), needs its own root-cause pass before a ruling — out of scope for this ticket per ADR 0174 sequencing. #626 carries the full evidence and a node-id-vs-flake-machine-name hypothesis worth checking first. Once this ticket's fix lands, the next drive to get past `ports-honest` will very likely hit #626's red next. Advances #625; commit `aa9de31b`, `STATUS.md` updated in the same commit.
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#625
No description provided.