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#920
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?
Drive
20260828T035255Z(targetidip, commit4e29224), red legports-honest, signature89cf86e7639e.artifacts/verdict.json: 7 green, 1 red,firstRedLeg: ports-honest, leg ms 600689 (the full 10-minuteCEILING.portsHonest). The assertion that timed out isapp/tests/e2e/journey.idip.spec.ts:745—[data-action="recheck-ports"]never existed.Two separate defects. The first reds the leg on its own; the second then deadlocks the screen so the remaining ~8 minutes could never recover.
Defect 1 — the #624 mitigation is inert: the one-shot S10 probe still wins the race against the DROP
app/tests/e2e/journey.idip.spec.ts:350-365arms the 443 DROP before leg 7 (pair) precisely so it lands before the auto-probe. It does not, because leg 7 resolves in 160 ms (artifacts/legs.json,pair): the spec gate had already passed during leg 6 (consent, 4064 ms), so[data-status="spec-gate-pass"](journey.idip.spec.ts:374) was already rendered when the leg started. Arming "a whole leg early" buys 160 ms, not a leg.Timeline, from
artifacts/verdict.jsonstartedAt03:54:02.950Z plus the cumulativelegs.jsonms:journey.idip.spec.ts:365), pair ends ~03:54:13.7 → the probe fires on that same poll tick (app/src/components/founding/FoundingStandup.vue:642-651, thereachabilityPendingwatch).logs/droplet-journal.txt:1185-1191, sshd[7674]Accepted publickey03:54:15 →Disconnected03:54:16). ~1.5–2 s too late.Proof the probe read reachable: the app rendered
founding: read acme-dns challenge for "rehearsal-b.idss.nz": …(artifacts/journey.idip-…/error-context.md, page snapshot). That string isinternal/founding/standup.go:965, insidewireName, which is only reached frominternal/founding/standup.go:810— i.e. afterif !res.Reachable { … return }atstandup.go:798-805. Sores.Reachablewas true.Why reachable with nothing listening:
logs/droplet-units.txtss -tlnpat 04:04 shows only sshd:22 and resolved:53 — no 80/443, correct pre-deploy. Under DDR 0188 a port that merely refuses (RST) reads path-proven-reachable, which is exactly what an un-DROPped 443 on a bare droplet gives.Consequence:
reach.reachabletrue →FoundingReachability.vue:56(v-if="reach && !reach.reachable && reach.ports?.length") never renders the S10b board, sorecheck-ports(FoundingReachability.vue:76) never exists. The leg reds even if Defect 2 is fixed.Defect 2 — #915's acme-dns gate is structurally unsatisfiable on the self-hosted path, and its fault is dropped on the floor
Regression from
6fc7fba1(#915).app/helper/cmd/helper/wiring_prod.go:537-544wires the production challenge source withChallengeTimeout: 2 * time.Minute— andSSHPort: newGuestVM().SSHPort(wiring_prod.go:540), i.e. the loopback guest VM. On the self-hosted/IDIP carrier there is no guest VM at all (artifacts/host.json:qemu: exit ENOENT: spawn qemu-system-x86_64 ENOENT), soreadChallenge(internal/fleetwire/challenge.go:117-136) returns""on every poll.Worse, it could not succeed even with a working transport: on this path
wireNameruns before the gateway deploy —internal/founding/selfhostedpath.go:23: "after the name is pointed (RunReachability's wireName), BEFORE RunDeploy applies Config().Head()".acme-dns-register(internal/clan/acmedns.go) has not run, soclan.AcmeDNSFulldomainFactcannot exist at wire time. The budget is guaranteed to exhaust andwaitForChallengefails loud (internal/fleetwire/challenge.go:142-160, message at :156) — whichinternal/founding/standup.go:963-966treats as fatal to the wiring.Before #915 this same read returned honest-absent
""and the name wired A + wildcard alone (ADR 0100) — benign here, because the self-hosted heartbeat re-points with the challenge after the fleet carries the secret (internal/founding/ownvpspath.go:392,rentedpath.go:200).Defect 3 (presentation, same code path) — the fault leaves the wizard with no affordance at all
internal/founding/standup.go:810-812returns thewireNameerror without committing:st.Reachis assigned at :813, one line after the early return, andst.logEvent(…, "reachability", res.Detail)at :809 is lost with it. Confirmed inlogs/founding-state.log:standup.stepis stillreachability, there is noreachkey, andstandup.eventsends at the spec-gate row with no reachability event.That is a hard deadlock, not just a cosmetic gap.
FoundingStandup.vue:642computesreachabilityPending = step === 'reachability' && !reach; it was alreadytrueand staystrue, so thewatchat :645-651 never re-fires and the probe never re-runs.FoundingReachability.vuethen renders only the pending row —error-context.mdsnapshot: "● Reachable from the internet — probing from outside: does the address answer on the web ports?" — with neitherrecheck-ports(:76) norretry-reachability(:91) present, because both live underv-if="reach && …". A real operator hitting a genuine wiring fault is stranded on the same screen.Suspected layer
app/tests/e2e/journey.idip.spec.ts(and the same shape atjourney.selfhosted.spec.ts:357).app/helper/cmd/helper/wiring_prod.go,internal/fleetwire/challenge.go.internal/founding/standup.go.What plugging it needs
rehearsal-c, drive20260827T144343Z) where the gateway is up at wire time; the self-hosted path points the name pre-deploy by design, so gating there can only ever fail. Options: scopeChallengeTimeoutper carrier at the wiring; makewireNamegate only when a gateway transport is actually resolvable; or keep the gate but move the self-hosted challenge point onto the post-deploy heartbeat. Guessing risks re-opening #915's 648 s dead-door regression in one direction and re-deadlocking the drive in the other.journey.idip.spec.ts:359-363: nothing before leg 10 touches the droplet firewall) already licenses arming before leg 6 (consent, ~4 s of headroom) or leg 5 — orawaitthe drop before the pair assertion rather than after it. Note the same 160 ms pair leg exists injourney.selfhosted.spec.ts.Reach(or at minimum leaveretry-reachabilityreachable) whenwireNameerrors atstandup.go:810, so the screen always carries a retry. Guard with a seam test ininternal/foundingasserting the persisted stand-up carries a reach + event after a challenge-read fault.Targeted checks a worker can run here
go test ./internal/founding/... ./internal/fleetwire/...for defects 2–3;pnpm --filter app exec vitest run app/tests/e2e/fixtures/selfhosted.test.tscoversportFaultPlanbut not the leg ordering — defect 1 is only provable on a live drive.Evidence absent from this run dir
No
state/clan-configand nostate/logs(logs/state-logs.log:ENOENT … scandir …/state/logs) — expected, the deploy never started.logs/droplet-caddy.txtand everyguest-*.logare empty for the same reason.artifacts/journey.jsonis{"rows": null, "fault": null}.drive
20260828T035255Zred 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:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260828T035255Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedRuled by agent under ADR 0174 — veto anytime. Split this ticket: two defects were revertible + provable two-way doors and landed now; the third is a one-way-ish cross-carrier design ruling and STOPS on the human.
Landed (two-way,
b8e36c8d, advances #788)Defect 1 — the one-shot S10 probe beat the DROP (rehearsal-harness ordering). The ports-honest DROP is now armed before leg 5 (agent-install) in both
journey.idip.spec.tsandjourney.selfhosted.spec.ts, not before leg 7 (pair). Pair resolves in ~160 ms becausespec-gate-passalready rendered during consent, so a DROP armed there lands ~1.5–2 s too late — after the one-shot auto-probe already read the un-dropped 443 as reachable under DDR 0188 — and the S10b board + itsrecheck-portsbutton never rendered. Arming it an install+consent ahead gives the DROP tens of seconds to land first. Safe this early: nothing before deploy-takeover (leg 10) touches the firewall, and the rule is INBOUND 443 only (iptables -I INPUT --dport 443), so the agent's outbound get.idss.nz fetch + enroll/broker traffic are untouched.Proof: live-drive-only — the next
idipdrive is its test (as the ticket's "Targeted checks" notes).pnpm --filter app exec tscclean on the changed specs.Defect 3 — the wireName fault was dropped on the floor, deadlocking the wizard (orchestrator error handling).
RunReachabilityreturned thewireNameerror uncommitted (st.Reachwas assigned one line past the early return; the:809reachability event went with it), so a name-wiring fault left the S10 screen buttonless —reachabilityPendingstayed true and never re-fired, and neitherrecheck-portsnorretry-reachabilityrendered (both gate onreach). It now persists a not-reachableReach+ a reachability event before failing loud, so the screen always carries a retry.Proof: red-first seam test
TestStory20_ChallengeReadFaultCommitsRetryableReachininternal/founding/standup_test.go(asserts the persisted stand-up carries aReach+ reachability event after a challenge-read fault, and never points the subdomain);go build/vet+go test ./internal/founding/green.Why human — Defect 2 (the acme-dns carrier-scoping ruling)
ready-for-humanfor a ruling (not Ben's hands/eyes): #915's acme-dns gate is structurally unsatisfiable on the self-hosted/IDIP path and must not be guessed.wireNameruns pre-deploy on that path (internal/founding/selfhostedpath.go:23— "after the name is pointed … BEFORE RunDeploy applies Config().Head()"), soclan.AcmeDNSFulldomainFactcannot exist at wire time and the single productionchallenge-source(app/helper/cmd/helper/wiring_prod.go:537-544,ChallengeTimeout: 2m,SSHPort: newGuestVM().SSHPort— a loopback guest VM that does not exist on the IDIP carrier) always exhausts fatally. Before #915 the same read returned honest-absent""and the name wired A + wildcard alone (ADR 0100) — benign there, because the self-hosted heartbeat re-points with the challenge after the fleet carries the secret (ownvpspath.go/rentedpath.go).Why it can't be a two-way agent ruling here: the two failure modes are in tension and only fully provable by live drives on both paths (idip AND rented) — which this session can't run. Guessing wrong re-opens #915's 648 s rented dead-door in one direction, or re-deadlocks the self-hosted drive in the other. A single wired
ChallengeSourceserves all carriers viao.acmeChallenge, so scoping is a real cross-carrier design choice, not a config toggle.Proposed default ruling (adoptable under ADR 0174 rule 1 by whoever has drive access): option (a) — scope
ChallengeTimeoutper carrier at the wiring, leaving the rented/own-VPS carriers at 2 min (so #915 provably cannot regress — their behaviour is byte-identical) and giving the self-hosted carrier a zero budget (the documented single-shot honest-absent read:""never fatal, name wired A + wildcard alone, heartbeat re-points post-deploy). RequireswireName/acmeChallengeto select behaviour byd.Access.Kind, or a per-carrier challenge source. Options (b) "gate only when a gateway transport is actually resolvable" and (c) "move the self-hosted challenge point onto the post-deploy heartbeat" are the alternatives the ticket lists. Confirm (a) or pick, then re-drive idip + rented to prove both doors.Defects 1 + 3 de-risk the drive so that, once Defect 2 is ruled, the next drive tests the fix cleanly. Relabelled
ready-for-session→ready-for-human.Defect 2 RULED by Ben (2026-08-28): option (a) — landed
71c0a7d7+c61eeb63(gofmt), GOTCHAS #116founding.ChallengeSourceOnce— optional single-shot face of aChallengeSource.fleetwire.ChallengeSource.AcmeChallengeOnce— the honest-absent single read, budget ignored, never faults.Orchestrator.acmeChallenge(ctx, d)takes the once-face only whend.Access.Kind == AccessSelfHosted; every other carrier calls the source's own gatedAcmeChallengeunchanged — #915's rented fix is byte-identical.TestStory20_SelfHostedTakesSingleShotChallengeReadNotTheGate(gated read scripted to exhaust; self-hosted still wires A + wildcard and commits reach, once-read taken exactly once) andTestStory20_RentedKeepsTheGatedChallengeRead(once-face offered but never taken).TestChallengeSource_OnceIgnoresTheBudgetAndNeverFaultsin fleetwire.All three #920 defects are now landed. Closing; the next #788
idipdrive is the live proof, and onerenteddrive proves no regression (the phase-5rehearsal-dfounding covers that).