rehearsal drive red at ports-honest #608

Closed
opened 2026-08-20 01:35:14 +00:00 by matou-build-agent · 1 comment

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

drive 20260820T012307Z red at ports-honest: `mexpect(mmlocatormm).mtoBeVisiblem(mm)m failed

Locator: locator('[data-port="N"][data-status="dropped"]')
Expected: visible
Timeout: Nms
Error: element(s) not found

Call log:
m - Expect "toBeVisible" with timeout Nmsm
m - waiting for locator('[data-port="N"][data-status="dropped"]')mevidence:test-results/…/20260820T012307Z/` 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 `20260820T012307Z` red at `ports-honest`: `mexpect(mmlocatormm).mtoBeVisiblem(mm)m failed Locator: locator('[data-port="N"][data-status="dropped"]') Expected: visible Timeout: Nms Error: element(s) not found Call log: m - Expect "toBeVisible" with timeout Nmsm m - waiting for locator('[data-port="N"][data-status="dropped"]')m` evidence: `test-results/…/20260820T012307Z/` on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596) <!-- rehearsal-sig: 89cf86e7639e -->
Author
Member

Ruled by agent under ADR 0174 — veto anytime

Ruling: a two-way-door bug fix — revertible by commit, and provable by a
red-before-green unit test that reproduces the exact drive-observed failure
shape. Not a one-way door: no credentials, no security-posture widening, no
trust-surface accept, no data destruction, no protected path.

Root cause

Diagnosed straight from the drive's own evidence
(test-results/drive-selfhosted/20260820T012307Z/ — legs.json,
verdict.json, founding-state.log, droplet-journal.txt): the
ports-honest leg reds because the S10b port-walkthrough board
([data-port="443"][data-status="dropped"]) never rendered at all — not a
wrong verdict, an absent one. internal/reachability's verdict vocabulary
(open/refused/dropped) was never in question; the app simply never ran
the outside-in probe.

Traced to #594 (self-hosted relay carrier, landed the day before this drive):
its observe-pairing poll can land the standup step on reachability well
after FoundingStandup.vue mounted — but the "the reachability test runs
next, automatically" logic (story 18) only ever fired once, imperatively,
inside onLoad's mount-time check (if (standup.value?.step === 'reachability' && !standup.value.reach) await onProbe();). The public/rented
paths are already at reachability by the time onLoad runs that check; the
self-hosted relay carrier reaches it LATER, driven by the poll, so the check
had already run-and-found-nothing by the time pairing landed. reach stayed
null forever, the S10b board's v-if (which requires !reach.reachable)
never had anything to show, and the leg burned its full 10-minute ceiling
waiting for a locator that could never appear.

Fix

042d515 — replaced the mount-only imperative check with a reactive
reachabilityPending computed + watch (mirroring the file's own existing
finishPending pattern) that fires onProbe() whenever the step lands on
reachability, from wherever that transition originates — mount, or a later
poll tick.

Red-first: app/tests/unit/foundingSpecGateReachability.test.ts gained a
new case exercising the self-hosted relay carrier's actual timing (a new fake
helper, FakeFoundingClient.queueSelfHostedPairing, queues the S9 snapshot
for a LATER observe-pairing poll tick — unlike simulatePair's synchronous
write, which is exactly what was masking this gap from every existing test).
Confirmed red on main (expected [...] to include 'run-reachability'),
green on the fix.

Full verification: app vitest suite green (826/828; the 2 remaining
failures — an OURCLOUD_PAYLOAD_DIR env leak in stdioBridge.test.ts and a
pre-existing flake in frontierLegRecords.test.ts — reproduced identically on
unmodified main, unrelated to this change). vue-tsc --noEmit and
eslint clean on every touched file.

What's NOT closed by this fix

This is the app-side bug fix only. The downstream rehearsal-183 proof — a
live droplet re-run of the self-hosted drive actually greening
ports-honest — still needs to happen on the next scheduled drive, the same
residual #594 itself left open. Filing no separate follow-up ticket: the
standing drive will re-exercise this leg on its own next cycle, and a fresh
red there (if any) would be a new, different signature.

Commit: 042d515
STATUS.md updated in the same commit.

## Ruled by agent under ADR 0174 — veto anytime **Ruling:** a two-way-door bug fix — revertible by commit, and provable by a red-before-green unit test that reproduces the exact drive-observed failure shape. Not a one-way door: no credentials, no security-posture widening, no trust-surface accept, no data destruction, no protected path. ## Root cause Diagnosed straight from the drive's own evidence (`test-results/drive-selfhosted/20260820T012307Z/` — `legs.json`, `verdict.json`, `founding-state.log`, `droplet-journal.txt`): the `ports-honest` leg reds because the S10b port-walkthrough board (`[data-port="443"][data-status="dropped"]`) never rendered at all — not a wrong verdict, an absent one. `internal/reachability`'s verdict vocabulary (`open`/`refused`/`dropped`) was never in question; the app simply never ran the outside-in probe. Traced to #594 (self-hosted relay carrier, landed the day before this drive): its `observe-pairing` poll can land the standup step on `reachability` well after `FoundingStandup.vue` mounted — but the "the reachability test runs next, automatically" logic (story 18) only ever fired once, imperatively, inside `onLoad`'s mount-time check (`if (standup.value?.step === 'reachability' && !standup.value.reach) await onProbe();`). The public/rented paths are already at `reachability` by the time `onLoad` runs that check; the self-hosted relay carrier reaches it LATER, driven by the poll, so the check had already run-and-found-nothing by the time pairing landed. `reach` stayed `null` forever, the S10b board's `v-if` (which requires `!reach.reachable`) never had anything to show, and the leg burned its full 10-minute ceiling waiting for a locator that could never appear. ## Fix `042d515` — replaced the mount-only imperative check with a reactive `reachabilityPending` computed + `watch` (mirroring the file's own existing `finishPending` pattern) that fires `onProbe()` whenever the step lands on `reachability`, from wherever that transition originates — mount, or a later poll tick. **Red-first:** `app/tests/unit/foundingSpecGateReachability.test.ts` gained a new case exercising the self-hosted relay carrier's actual timing (a new fake helper, `FakeFoundingClient.queueSelfHostedPairing`, queues the S9 snapshot for a LATER `observe-pairing` poll tick — unlike `simulatePair`'s synchronous write, which is exactly what was masking this gap from every existing test). Confirmed red on `main` (`expected [...] to include 'run-reachability'`), green on the fix. **Full verification:** `app` vitest suite green (826/828; the 2 remaining failures — an `OURCLOUD_PAYLOAD_DIR` env leak in `stdioBridge.test.ts` and a pre-existing flake in `frontierLegRecords.test.ts` — reproduced identically on unmodified `main`, unrelated to this change). `vue-tsc --noEmit` and `eslint` clean on every touched file. ## What's NOT closed by this fix This is the app-side bug fix only. The downstream rehearsal-183 proof — a live droplet re-run of the self-hosted drive actually greening `ports-honest` — still needs to happen on the next scheduled drive, the same residual #594 itself left open. Filing no separate follow-up ticket: the standing drive will re-exercise this leg on its own next cycle, and a fresh red there (if any) would be a new, different signature. Commit: 042d515 STATUS.md updated in the same commit.
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#608
No description provided.