rehearsal drive red at ports-honest #624
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#624
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
(headless diagnosis unparseable — raw stdout saved to logs/reporter-claude.out)
drive
20260821T003234Zred atports-honest:expect(locator).toBeVisible() failed Locator: locator('[data-action="recheck-ports"]') Expected: visible Timeout: 600000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 600evidence:
test-results/…/20260821T003234Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)Head-start (evidence
test-results/drive-selfhosted/20260821T003234Z, first drive on DDR 0188 /5c8b064+d2c56b6, served pind2c56b6via the now-automatic reseed) — DDR 0188 WORKED; this red is the leg's fault-injection sequencing, a spec-only fix.state/founding-state.json: the S10 auto-probe saw80/443 refused→reachable: truewith the new detail "the knock reaches your machine on ports 80, 443 (nothing is serving yet; the gateway deploy comes next)" → name-wiring "rehearsal-b.idss.nz now points at 209.38.31.39" →step: deploying. Exactly the ruled behaviour (#623).The leg red is
journey.selfhosted.spec.ts:441:[data-action="recheck-ports"]not found (10 min). Cause:portsHonestarmsiptables … 443 DROPafter thepairleg has seenspec-gate-pass— but the auto-probe fires the instantstandup.stepflips toreachability, and under DDR 0188 a pre-drop probe now passes and advances, so the S10 board (and its re-check button) has folded away before the SSH drop lands. #622's click-recheck fix assumed the board would still be there; under 0188 it isn't.Fix (spec only, two-way door): arm the drop before S10 is entered — i.e. in the
pairleg before awaitingspec-gate-pass(line ~297), or as the first thingportsHonestdoes before the step transition is possible. Then the sequence is: auto-probe →443 droppedrendered on the board + firewall-lane guidance + noreachable(under-report detector intact) →undrop→ clickrecheck-ports→reachable→ advances todeploying. Thefinally { undrop }must still wrap the whole window so a red never strands the droplet. The existing assertions (lines 445–470) need no change; only whenplan.dropruns moves. KeepwizardPrecheck/s4AccessSelfHostedas-is — the S4 pre-check is a separate probe and should still see the honest pre-drop state.Under-report check worth adding while there: assert
[data-status="reachable"]has count 0 andstandup.step(via the state file or the page) has not advanced pastreachabilitywhile the rule stands.Ruled by agent under ADR 0174 — veto anytime
Ruling: two-way-door test-driver retiming, no app/DDR change. Revertible by
commit (
e101413b), provable against the run dir's own evidence(
test-results/drive-selfhosted/20260821T003234Z/) plus a source-level readof
internal/reachability/prober.go's DDR 0188 verdict fold andinternal/join/takeover.go's wipe-timing comments. Not on the one-way-doorlist: no credentials, no security-posture widening, no trust-surface accept,
no data destruction, no hardware.
Diagnosis
DDR 0188 (#623) changed pre-deploy S10 semantics: a required port that only
refuses (nothing listening, nothing filtered) now reads
Reachable: true(path-proven).
journey.selfhosted.spec.ts'sports-honestleg drops port443 after leg 7 (
pair) resolves, then waits for[data-action="recheck-ports"]to appear — banking on the walkthrough boardalready being up (however stale) so the button exists to click. Under DDR
0188's new fold that assumption no longer holds: before the drop lands, S10's
one-shot auto-probe (which fires reactively the same poll tick
spec-gate-passrenders, per #622's own finding) sees only refused ports,renders the plain green "Reachable" checkmark, and the walkthrough — and its
recheck button — never renders at all pre-drop. Waiting on a button that
structurally cannot exist yet is exactly the
toBeVisibletimeout at600000ms this ticket reports. DDR 0188's own consequences section claim
("the
ports-honestleg... is unchanged... and now passes against the realproduct") was untested by a live drive and turned out to be wrong — this
ticket is the live proof.
Fix
app/tests/e2e/journey.selfhosted.spec.ts(e101413b): the SSH drop of port443 now fires before leg 7 (
pair) starts, concurrently with pairing,instead of after
pairresolves inside theports-honestleg body — givingit the whole of leg 7's wait (up to 5 minutes) to land ahead of S10's reactive
one-shot probe instead of racing a sub-second window after
pairresolves.Safe that early: nothing before
deploy-takeover(leg 10, thenixos-anywherekexec/disko reformat) touches the droplet's firewall — thewipe is provisioning's first deploy, never device-add's join
(
internal/join/takeover.go's own comment) — so the box is still running itsoriginal OS, untouched, through pair/ports-honest/point. No app code, DDR, or
gate semantics changed; DDR 0188's ruling stands exactly as written. Leg
boundaries, ceilings, and the leg's own assertions (dropped-not-masked, then
undrop+recheck proves
reachable) are unchanged.Proof
vue-tsc -p tsconfig.json --noEmitclean.eslint app/tests/e2e/journey.selfhosted.spec.tsclean.fixtures/selfhosted.test.ts(17/17, the fault-injection-ordering unitcontract) green, unaffected.
vitest run: 906/906 green (with the host's strayIDSS_PAYLOAD_DIRenv var unset — that leak is pre-existing on
mainand unrelated to thisfix, confirmed by reproducing it on a clean checkout).
go test ./...: green.constraint as #622/#623 (this session holds
matou-session-runner.lockforits own duration). The next unattended
selfhostedre-drive is the liveproof, the same closure path #608/#609/#622/#623 all took. A fresh red
there — a different leg, or this fix being wrong — mints its own new ticket
via the same reporter/dedup path.
Advances #624; commit
e101413b,STATUS.mdupdated in the same commit.ports-honest: the S10 one-shot probe beats the 443 drop, then #915's acme-dns gate faultsRunReachabilityuncommitted and freezes the screen buttonless #920