rehearsal drive red at ports-honest #623
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#623
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
20260820T215448Zred atports-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 600000mevidence:
test-results/…/20260820T215448Z/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/20260820T215448Z) — this is NOT #622 again; #622's fix worked. This is a product/design gap, please do not "fix" it by weakening the spec's assertion without a ruling.What happened.
ports-honest's first half now passes: after the SSH drop +recheck-portsclick, 443 rendereddropped, guidance rendered, no falsereachable. The red is the leg's second half (journey.selfhosted.spec.ts:466-467): after un-dropping and re-checking, the spec expects[data-status="reachable"]; the probe honestly reports80 refused, 443 refused—"170.64.154.115 answered but ports 80, 443 closed — nothing is listening".host.jsonconfirms: only sshd listens on the droplet at that point.Why it can never pass as designed.
RunReachability(internal/founding/standup.go:740-775) advances toStandupDeployingonly whenres.Reachableis true, and the prober (internal/reachability/prober.go:163-185) returnsReachable: trueonly when every required port (80/443) isopen. But on the self-hosted path the thing that would listen on 80/443 — the gateway — is deployed at S11, after S10. Pre-deploy nothing on the box listens (the agent only opens a Unix socket,agent/cmd/agent/main.go:200). So for a real self-hosted founding the S10 gate is a deadlock, not just a drive red: this drive is the first to reach S10 with a real probe, which is why it surfaces only now (#608 → #609 → #622 peeled the layers above it).Candidates (this needs a DDR/ADR-grade ruling; two-way door under ADR 0174 if the session can argue it, else
ready-for-human):refusedpre-deploy as "reachable, not yet listening". Semantically honest and carries real signal: a working port-forward to a box with nothing listening yields RST (refused); a missing forward / firewall yields silence (dropped). So S10 pre-deploy can gate onno port dropped(path proven) rather thanall open(service proven), and S12/activation keeps theopenproof. Smallest change: prober returnsReachable: truewith a distinct detail whenrefusedonly and nodropped/filtered; rows still renderrefused(DDR 0175 vocabulary intact, rows speak the prober's words). The spec's final assertion then passes as written. The under-report detector is unaffected (dropped still ≠ reachable).open, but a new listener + port-bind privilege + hand-off-to-gateway sequencing on the takeover path — bigger, and ADR 0181's carrier design didn't plan for it.wireNameruns off the reachable result and deploy needs the name.Recommend (b) unless the wireframe/DDR 0175 contract says S10 must prove service, not path — check
p1-s10-reachability-and-name.htmland DDR 0175 §2 ("Reachability re-runs when every required row answers") before ruling. Rented path is unaffected (the rented gateway already listens when S10 runs).RULED by Ben (2026-08-20 22:1xZ): go with option (b).
Pre-deploy, S10 gates on path proven — no required port
dropped— not service proven.refused= the knock reached the box (forward works, nothing listening yet) →Reachable: truewith a distinct, honest detail line; rows keep rendering the prober's own word (refused, DDR 0175 vocabulary intact).droppedstill ≠ reachable (the under-report detector stands). The strict all-openproof remains at activation/S12. Record the ruling as a DDR/ADR amendment to DDR 0175 (next free number — checkorigin/mainfirst), update the S10 guidance copy + the wireframe note if it states "every required row answers", and keepjourney.selfhosted.spec.ts:466-467as written — it should pass under (b) without edits.Diagnosis — a new gap, one leg deeper than #622
272273a7(#622's fix, landed 21:24:35Z) worked exactly as intended: this drive(
20260820T215448Z, started 21:55:56Z — after the fix) is the firstselfhosteddrive ever to get past[data-port="443"][data-status="dropped"](legs.json'sjourney.selfhosted-*/error-context.mdshows the fault-injection toothrendered and the board named
443/droppedcorrectly). Every prior drive(
20260820T012307Z,20260820T021653Z,20260820T205437Z— #608/#609/#622)reddened at that exact locator, before the one-shot-probe race let it that
far. This one reds one assertion later, at the leg's last line
(
journey.selfhosted.spec.ts:467,[data-status="reachable"]after the SSHundrop+ re-check) — genuinely new territory, not a repeat.Not a race, not a test bug.
logs/droplet-units.txt'sss -tlnp(takenat evidence-harvest time, end of the leg) shows exactly one thing listening
on this droplet for the whole run:
sshdon:22. Nothing on:80/:443,before the drop, during it, or after
undrop.state/founding-state.json'sreach.eventslog confirms three real probes, not a stuck one:refused/refused(expected — nothing deployed yet)443reportsdropped(the injectediptables … DROP,correctly detected — the #622-fixed tooth)
undroprecheck → stillrefused/refusedon both80and443— the assertion this leg reds on.iptables -D … -j DROPonly removes a rule this leg itself injected; it wasnever capable of making anything answer. Nothing has served
80/443onthis droplet at any point in the leg — the fault injection is a red
herring for this particular red.
Why nothing listens (traced, not guessed): per the phase-3 spec's own
leg table (
docs/superpowers/specs/2026-08-14-183-phase-3-home-gateway-rehearsal-design.md)and
internal/founding/standup.go's comments, S10 reachability(
ports-honest) runs before DNS wiring (point, leg 9) and before theOS takeover (
deploy-takeover, leg 10: kexec→disko→install→reboot) — bydesign, ADR 0049 wants reachability proven before the name is wired. This
drive's own
artifacts/consent-transcript.txtconfirms the takeover hasn'trun yet at leg 8: "✓ consent recorded — the wipe runs at first deploy."
Caddy only exists after that wipe (
scripts/lib/rehearsal-droplet.sh's owncomments:
/var/lib/caddyis wiped before Caddy ever starts; the caddy useronly appears once the post-takeover NixOS boots). The manual install command
(
internal/founding/manualpath.go:installCommand) installs onlyidss-agent— confirmed live inlogs/droplet-journal.txt:idss-agent[…] msg="join socket listening" … path=/run/idss/agent.sock, aunix socket, no TCP bind. I grepped the tree for anything that binds a
placeholder to
80/443before the takeover (agent, control-plane,bootstrap, provision) — there is none.
So the leg's last tooth has never once been exercisable. Pre-#622 it
always died earlier (the one-shot-probe race). Post-#622 it reaches the real
assertion for the first time — and proves, honestly, that on the current
build nothing on the still-unwiped operator machine can ever answer
80/443,fault-injected or not. This is the
ports-honestleg's whole point workingcorrectly (an honest board, never a masked pass) surfacing a real product gap
for the first time, not a defect in the leg or in #622's fix.
Ruled by agent under ADR 0174 — veto anytime
Ruling: this is NOT a two-way-door bug fix. Closing the gap means picking
between two designs, not patching broken logic:
80/443on theoperator's box before it's wiped — but that's a new deliberately-public
surface on a not-yet-secured machine, which ADR 0174 §3 names by example as
a one-way door ("security-posture widenings: a new deliberately-public
surface or port"); or
ports-honest/S10 reachability gate to run afterdeploy-takeoverinstead of before — which changes what the self-hostedfounding flow promises (ADR 0049's "reachability proven before the name is
wired" no longer holds in the same sense), a call on the founding
contract's meaning, not its implementation.
Either changes what the app guarantees on the self-hosted path, not just
how it's tested — outside the reversibility rule's "provable by an existing
test/drive/probe" plus "not a security-posture widening" bar. I'm not
weakening the leg's final assertion to make it pass either — that would mask
exactly the failure mode this honesty leg exists to catch.
Proposed default ruling (ADR 0174 rule 4): lean (b) — keep the
fault-injection contract (drop
443, assertdropped+ no falsereachable, undrop, assertreachable) but run it once Caddy is actuallylive post-takeover, since the prober's "indistinguishable from a home router
with no forward rule" premise doesn't depend on when the gateway comes up,
only that something real is listening for the drop/undrop to mean anything.
(b) needs a look at whether
point(DNS wiring, currently leg 9, beforedeploy-takeover) also needs to move for ADR 0049 to still hold end to end —that's the part I don't have standing to just decide.
Overlap with #331: #331 (already
needs-design) already names theadjacent gap in its own body — "the only port-forwarding guidance anywhere
in the tree is a failure string… S4b… and nothing after it." This drive is
concrete, live-proven evidence of that same underlying incompleteness: DDR
0175's thin manual slice built the S10b board, but nothing yet makes the
board's own required-now "web" row ever have something real to observe
pre-deploy. Worth folding into whatever
/grill-ux-with-docsor/wireframepass eventually resumes #331.
Why human
A ruling between (a) a new pre-wipe public listener (ADR 0174 §3
security-posture widening, explicitly one-way) and (b) resequencing the
founding flow's reachability gate relative to deploy (changes the ADR 0049
guarantee the self-hosted path makes) — both reshape what the app promises
on the self-hosted path, not just how it's tested. Proposed default above:
option (b).
Leaving
ready-for-sessionoff this ticket (routing toready-for-human+needs-design) since the next step is Ben's ruling, then — if (b) — a/grill-ux-with-docs/DDR pass extending #331, not more agent-sessiondiagnosis.
priorityandrehearsal-183kept; this still blocks #523natively (unchanged from the reporter's filing).
Ben's ruling stands and is a THIRD option, not the session's (b) — re-arming
ready-for-session.The session's comment crossed with Ben's ruling above (posted 22:1xZ, after the session started). To be unambiguous, the ruled option is "refused = path proven, pre-deploy":
point/deploy-takeover), the prober returnsReachable: truewhen no required port isdropped/filtered —refusedon 80/443 means the knock reached the operator's box (the forward and firewall are right; nothing listens yet, which is expected before the gateway exists).droppedstill ⇒ not reachable, with the firewall-lane guidance — the under-report detector is untouched.refused), DDR 0175 vocabulary intact. The detail line must say it honestly, e.g. "Probed from outside: answers — the knock reaches your machine on 80, 443 (nothing is serving yet; the gateway deploy comes next)."openproof moves to where a service actually exists (activation/S12 — the existing checks there already cover it).journey.selfhosted.spec.ts:466-467stays as written; under this ruling the post-undropre-check yieldsreachableand the leg passes.Scope for the session:
internal/reachability/prober.goverdict fold (+ tests for refused-only / dropped-mixed / open), the S10 copy, a short DDR amending DDR 0175 (checkorigin/mainfor the next free number; 0188 as of8ca4a74), and a note on #331 that the pre-deploy semantics are now ruled. Two-way door by Ben's explicit ruling — veto already exercised in the other direction.Close-report.
Implemented Ben's ruling (comment above, 2026-08-20 22:18–22:21Z): pre-deploy, S10 reachability is path-proven, not service-proven.
What landed (commit
5c8b06430cd4f6258e8889fda5999da21429b463, pushed tomain):internal/reachability/prober.go: verdict fold changed —Reachable: truewhen no required port isdropped/filtered (a refused port now counts: the knock reaches the box, nothing is serving yet, the expected pre-deploy state).droppedis still the one lane that fails the gate — the under-report detector (ports-honest's whole point) is untouched. Removed the now-deadportsGuidance(the old "ports lane" message).internal/reachability/prober_test.go: TDD — wrote the new/updated tests first (refused-only, mixed open+refused, dropped-mixed-with-open-or-refused) confirmed red against the old code, then implemented the fold to green. Full suite green.internal/founding/standup.go: doc comments onReachability/PortVerdictRefusedupdated to match (no behavioural change here —RunReachabilityalready just forwards the prober's verdict).docs/adr/0188-design-pre-deploy-reachability-is-path-proven-not-service-proven.md: records Ben's ruling, the two rejected one-way-door options, and the consequences.docs/adr/0175-...'s status line points to it.docs/ux/wireframes/p1-founding/p1-s10b-port-board.html+...-still-closed.html: ✎ amendment notes — the "refused stalls the board" frame has no live edge to reach pre-deploy any more under DDR 0188; left as a design record for #331's next pass rather than redrawn.app/tests/unit/foundingSpecGateReachability.test.ts: the S10b fail-surface fixture updated from an (now unrealistic) refused scenario to a dropped one, so the test still models something the real product can produce.STATUS.mdupdated in the same commit.Proof:
go build ./...clean;go test ./...green (all packages, includinginternal/reachabilityandinternal/founding);app's touched Vue/TS files eslint-clean andvitest run tests/unit/foundingSpecGateReachability.test.tsgreen (12/12).journey.selfhosted.spec.ts'sports-honestleg (lines 421–470) needed no edit — it already asserted exactly the contract DDR 0188 now makes deliverable.Not re-proved by a fresh live drive this session — same host-capacity constraint noted on #622 (this session holds
matou-session-runner.lockfor its own duration, andrehearsal-cycle.sh's two-slot semaphore, ADR 0184, excludes a manual drive alongside it). The next unattendedselfhostedre-drive (native dep on #523) is the live proof; a fresh red onports-honestthere mints its own new ticket via the same reporter/dedup path.This was a genuine design-tier ruling by Ben, not a two-way-door agent ruling under ADR 0174 — the earlier diagnosis correctly routed it
ready-for-humanrather than picking a default, and both agent-legible options ((a) a new pre-wipe listener, (b) resequencing S10) were one-way doors for the reasons recorded in DDR 0188.Advances #623, #331.