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
1 participant
Notifications
Due date
No due date set.
Reference
Matou/idss#713
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?
Failure. Drive
20260823T193424Zredsenroll-activateatfounding: the rented server stand-up did not complete (status "blocked"): the node has not come back yet — wait, then re-drive to verify. This is the same signature (073c79de3e67) as drive20260823T104013Z(#702/#703), recorded indocs/GOTCHAS.md:1821-1907(#62) andSTATUS.md.Evidence this run:
artifacts/legs.json:enroll-activateran1200808ms — 0.8s pastdefaultPhaseTimeout(internal/clan/enrollment.go:67, 20min) — and was signal-killed (internal/clan/errors.go:142-143, rc 137/143 →FailInterrupted).logs/founding-state.logtail (enroll-activatestage):the operation was interrupted (signal-killed): [gateway] NOT restarting the following changed units: ... sops-install-secrets: Imported ... Failed to reload user unit dbus-broker.service— byte-for-byte the same tail text GOTCHAS #62 already recorded for the prior occurrence of this signature.internal/clan/enrollment.go:991-992:FailInterruptedis never retried —verify()blocks resumable on the first signal-kill, so there was no second attempt within this leg.logs/droplet-do-forensics.txt: by 34s after the red,DO API: no droplet at 170.64.217.216 in this account — it is already gone.REHEARSAL_KEEP_RED_DROPLET(scripts/lib/rehearsal-droplet.sh:475-487,554-608) is opt-in and evidently unset for this drive, so no live console/forensics survived — the exact gap #703/#704 already flagged and thought closed.Ruling out the two known root causes for this same symptom shape: I checked what this run actually deployed.
state/clan-config/machines/gateway/gateway-guest.nix:137-163(captured in the run dir) shows BOTH prior fixes correctly rendered:rentedHostBoot()(#710, GOTCHAS #66) — root//bootby partlabel, EFI grub — present.rentedHostNetworking()(#703, GOTCHAS #64) —networking.useNetworkd = true+services.cloud-init.network.enable— present.So this is not a regression of either fix; it's a fresh recurrence of the same "box goes unreachable around/after
enroll-activate" shape with neither previously-identified mechanism (dhcpcd/link-local route, or fstab naming a device that doesn't exist) able to explain it.Suspected layer. Either (a) the remote detached
switch-to-configurationunit (GOTCHAS #62's cause section: clan-core wraps it insystemd-run --pipe --wait --collectspecifically so it survives our SSH/local-process kill — meaning our 20min local ceiling does not actually bound the remote job, and killing our wrapper tells us nothing about whether the remote switch ever finished or what state it left the box in), or (b) a third, not-yet-identified failure mode in rented-droplet activation distinct from #703/#710. GOTCHAS #62 explicitly rules that wideningdefaultPhaseTimeoutis "not evidenced to help" for this signature and warns it could mask a second overlappingswitch-to-configurationfiring on re-drive.What plugging it needs. Live-droplet/console forensics on a reproduction, per GOTCHAS #62/#703's standing ask: re-drive with
REHEARSAL_KEEP_RED_DROPLET=1so the box survives past teardown, then pull the DO console (grub prompt vs kernel panic vs login banner) and/or the hypervisor bandwidth series (as #711 did) to see what the remote unit actually did before going dark. Repo-side evidence alone cannot distinguish the remaining hypotheses.drive
20260823T193424Zred atenroll-activate:journey leg "enroll-activate" went red: founding: the rented server stand-up did not complete (status "blocked"): the node has not come back yet — wait, then re-drive to verifyevidence:
test-results/…/20260823T193424Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)Interim — provider-side timeline pulled, live reproduction under way
Ruled by agent under ADR 0174 — veto anytime. Two-way door throughout: read-only DigitalOcean API queries, plus one throwaway lab droplet (
clan-lab-tagged, TTL-reaped) rented from the drive's own gateway image.The drive's droplet is
594611434and its provider-side story survives the reap. DO's account action log dates the whole rented leg:594610486created, powered off, snapshotted (idss-gateway-27880caac2f2, image242399258), destroyed594611324created and destroyed 45s later (the known post-create-404 dance, GOTCHAS #54/#57)594611434created — the drive's rented gateway594611434destroyedNo
power_cycle, no resize, no migration, no power action of any kind between create and destroy — so the box never rebooted, and DigitalOcean never touched it. #710/#66's boot half could not have fired here even if it had regressed.The hypervisor-side bandwidth series (public interface, Mbps) dates the moment it went quiet:
Same shape as #711/#67's box (substitution burst → unsigned-path push → taper), but the collapse is ~20:01, and with
enroll-activateburning its full 20m to a signal-kill at ~20:11, that puts the box going quiet roughly halfway through the leg, not at its ceiling. The remaining ~10 minutes bought nothing, exactly as GOTCHAS #62's rule (2) predicts.One ordering hazard confirmed:
oc_droplet_do_forensicsis called last insideoc_droplet_evidence, whose three ssh captures each burn a 10s connect timeout against a dark box — by the time the provider-side capture ran (~34s after the red), the destroy at 20:11:43 had already landed and it could only write "no droplet at 170.64.217.216 in this account". The forensics #711 added to run "while the box still exists" is on the losing side of that race whenever the box is dark.Now running (live): a droplet rented from the drive's exact image
242399258(clan-lab-i713a, syd1, s-2vcpu-4gb — the broker's own preset), against which the session drives the byte-for-byteclan machines update … --host-key-check none --target-host ssh://root@…?IdentityFile=…thatverify()runs, over the same rented-gateway flakeinstallRented→configurebakes. Reachability is probed every 3s from the drive host and a 2s on-box sampler writes to/var/log/i713-mon.log; the box has a persistent journal, so if it goes dark the power-cycle→journalctl -b -1read is available (which #710's fix now makes survivable). Findings to follow in this thread.Close report — the box was never dark; the ceiling was smaller than the switch
Ruled by agent under ADR 0174 — veto anytime. Landed in
4abdd8e3onmain.What this red actually is
enroll-activateisclan machines update, which evaluates and builds on the target and then runsswitch-to-configurationthere. Both halves were measured live, on droplets rented from this drive's own image (idss-gateway-27880caac2f2, snapshot242399258— the one the drive built at 19:33Z), at the broker's own preset (s-2vcpu-4gb, syd1), driving the byte-for-byte invocationverify()runs (clan machines update … --host-key-check none --target-host ssh://root@…?IdentityFile=…&IdentitiesOnly=yes) over the same rented-gateway flakeinstallRented→configurebakes:machines updateswitch-to-configuration switchaloneclan-lab-i713aclan-lab-i713benroll-build(localnix build) →enroll-copy(nix copy --substitute-on-destination) → updatefirewall.servicereload; TCP/22 and ssh never droppedBoth went green. Both boxes ended with zero failed units, the default route intact,
/etc/fstabondisk-main-root+ the ESP (#710 confirmed live a third time), and/run/booted-systemstill the image's system — no reboot, exactly as VMMode promises.The switch is 8m08s in both runs, to the second: the rented image's system is a NixOS generation behind the deployed one (
nixos-system-idss-gateway-24.11…→nixos-system-gateway-26.11…), so it replaces essentially every unit — restartingsshd,systemd-journald,systemd-networkd,systemd-resolved,systemd-udevd, starting the threecloud-initunits. That is 40% of the old 20m ceiling before clan's remote evaluate/fetch/build gets a second, and run A's worst case finished with five seconds of headroom.The provider's side says the same thing from outside
Droplet
594611434: created 19:35:32Z, destroyed 20:11:43Z, exactly two actions, no power action in between (/v2/droplets/594611434/actions,total: 2) — nothing rebooted, resized or migrated it. Its hypervisor-side bandwidth collapses at ~20:01 (16 → 12 → 3 → 0.5 Mbps, then the floor) and the SIGKILL lands ~20:11. Those ten "silent" minutes are the switch: during run A's switch the same series would read the same way, on a box answering every 3-second probe.So
1200808ms is not a box that vanished — it is our owndefaultPhaseTimeoutkilling a healthy, working activation, after whichFailInterruptedblocks resumable with the misleading "the node has not come back yet".Shipped
vmActivatePhaseTimeout= 45m for the VMMode activate alone (internal/clan/enrollment.go, via newrunPhaseWithin+activateCeiling). Guarded byTestEnroll_VMModeActivateCarriesTheMeasuredRentedCeiling, red before green, with a full-install twin (TestEnroll_FullInstallPhasesKeepTheSharedCeiling) proving the shared 20m still bounds every path this measurement does not reach.enroll-activateleg budget 20m → 50m (app/tests/e2e/journey.rented.spec.ts), deliberately above the adapter's 45m so a real overrun surfaces as the adapter's named interrupt rather than a bare leg timeout.oc_droplet_do_forensicsnow runs FIRST insideoc_droplet_evidence(scripts/lib/rehearsal-droplet.sh). This drive's provider-side capture lost a race to its own teardown by seconds and could only write "no droplet at 170.64.217.216 in this account — it is already gone"; the three ssh captures ahead of it each burn a 10s connect timeout on a box that answers none of them. Guarded byscripts/tests/droplet-evidence-order-test.sh(red before green: the order wasssh ssh ssh forensics).TestRentedActivate_Live(internal/clan/rented_activate_live_test.go) — the last four rented reds each hand-rolled this setup from scratch.STATUS.mdheader updated in the same commit.Full
internal/clan+internal/foundingsuites green,go vet+gofmtclean, both shell tests green,eslintclean on the touched spec.Left open honestly
switch-to-configurationrunning (#62's mechanic, untouched). A wider ceiling makes that far less likely to bite, butFailInterruptedstill cannot tell a box that finished on its own after the kill from one that never did — fileddeferredas #714.REHEARSAL_KEEP_RED_DROPLETwas not needed and was not used: the two lab droplets were rented directly,clan-lab-tagged with a 6h expiry, and destroyed at the end of this session.Two-way doors only
Revertible constants and comments proven by live measurement and Go/shell tests; throwaway
clan-labdroplets on the existing lab door; no credential, no posture widening, no member-facing change, nothing destroyed beyond the two droplets this session created.enroll-copy's ceiling to a measured rented copy — with #716's drain fix the shared 20mdefaultPhaseTimeoutnow CUTS a cold copy instead of hanging on it #717idss-rental-expires-tag on a LIVE rental once the broker actually deploys (#741's broker half is merged but not installed) #745