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.
Reference
Matou/idss#704
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
20260823T115746Zreds atactivation(sig4c82deb1e678):journey.rented.spec.ts:774 throwOnDeployFailurethrows "the gateway deploy failed — The gateway deploy failed. [There is no old operating system to roll back to — this machine was taken over for the community.]" (app/tests/e2e/journey.rented.spec.ts:310, error-context.md).Evidence chain (
state/founding-state.json→.standup.deploy):applyControlPlane(internal/founding/deploy.go:687) runs the real clan deploy — it succeeds: log lines show"reconciled"(stageupdate) and"explicit unit restarts deferred to the target resolver (#163)"(stagerestart). Noclan.DeployError.probeControlPlaneActive(internal/founding/deploy.go:1115) then re-probesidss-control-plane.serviceviaAdapter.UnitActive(internal/clan/adapter.go:168) up to 6 times, 15s apart. All 6 attempts fail; the log carries probes 1/6–5/6 ("...was unreachable for the probe") before the loop exhausts.tailon the persisted failure is a raw OpenSSH refusal, not a timeout: (state/founding-state.json.standup.deploy.failure.tail).UnitActivepinsStrictHostKeyChecking=accept-newagainst the app-scopedown-vps/known_hosts(internal/clan/adapter.go:180-190,#458). That file holds exactly ONE entry for this host (state/own-vps/known_hosts— a single hashed line), i.e. no stale/reused-IP entry from a prior drive — the key genuinely changed during this drive, between the earlierconnectleg (which learned/pinned it fine — legconnectgreen, "connected to root@170.64.230.22") and this post-deploy probe.logs/droplet-journal.txt,droplet-units.txt,droplet-caddy.txt), the box was fully unreachable —ssh: connect to host 170.64.230.22 port 22: Connection timed out— not just refusing on a key mismatch. The box went dark.Why this isn't a fresh bug — it's the same shape as
docs/GOTCHAS.md#62 / issue #703. That entry (drive20260823T104013Z) diagnosed thatclan machines update(clan-core's_nixos_activate) wraps the liveswitch-to-configuration switchinsystemd-run --pipe --wait --collecton the TARGET, decoupled from the invoking SSH session — so our local timeout/SIGKILL does not necessarily stop the remote switch, and a VMMode box (rented —internal/founding/rentedpath.go:32-35explicitly documents "no RotateHostKey — no reboot") can still end up dark afterward for reasons requiring live droplet/console evidence, which #703 was filed to chase and explicitly could not resolve blind.What's new here vs #703/GOTCHAS #62: the prior instance reddened inside
enroll-activate'sverify()(internal/clan/enrollment.go:900), which runsmachines update --host-key-check none(enrollment.go:917) — host-key-blind, so it never NOTICED a changed identity, it just timed out reconnecting. This drive's instance is one stage later: the deploy's ownmachines updatereconciled successfully (also host-key-blind), but the FOLLOW-UPUnitActiveprobe (which DOES check host identity via the pinned known_hosts) then caught a real, fresh key change immediately after — direct proof that the box's presented SSH identity changes across this deploy despite VMMode's documented no-reboot contract, and it then goes fully dark. This is a second independent data point for the same underlying mystery GOTCHAS #62 flagged as needing live evidence, not yet reproduced live at that point — now it has been.Suspected layer: either (a) clan-core's detached remote switch genuinely reboots/rekeys under some condition despite the update.py read in GOTCHAS #62, or (b) the rented gateway image (ADR 0048) regenerates its SSH host key on some trigger coincident with the first real community-config activation (as opposed to first boot), or (c) the droplet itself crashes/hangs during the live switch (kernel panic, OOM, network reconfiguration wedging sshd) and the "changed key" is a red herring surfaced by a NAT/console-reset artifact. None of these are distinguishable from this repo's evidence alone.
What plugging it needs: live droplet/console access AT THE MOMENT this reproduces (DigitalOcean console log or a kept-alive rescue session) to see what actually happened to the box's sshd/host key during the deploy's
switch-to-configuration switch— the same blocker #703 already named. No mechanical, verifiable-here fix exists; this run's droplet (170.64.230.22) is now fully unreachable, so nothing further can be extracted from it.drive
20260823T115746Zred atactivation:the gateway deploy failed — The gateway deploy failed. [There is no old operating system to roll back to — this machine was taken over for the community.]evidence:
test-results/…/20260823T115746Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)Head-start from the phase-4 session — two findings from drive
115746Z's own generated config (state/clan-config/machines/gateway/), both structural, neither a timeout:1. The host-key change is EXPECTED, and the rented path's "no reboot ⇒ no key change" premise is wrong. clan-core's
sshdservice (inventory) installs generated host keys from clan vars at activation and restarts sshd — the key the image booted with is replaced the moment the community config switches, reboot or not. Own-VPS/self-hosted absorb exactly this withRotateHostKey;rentedpath.go:34skips it on the reboot argument. SoapplyControlPlane'sclan machines update(host-key-blind,--host-key-check none) reconciles fine, and the very next pinned-known_hosts probe (UnitActive,accept-new) correctly refuses a CHANGED key. Fix shape: afterconfigurein VMMode, do RotateHostKey's bookkeeping without its reboot wait — re-learn the box's new host key intoown-vps/known_hosts(the same re-learn the own-VPS path does post-takeover) beforepair/deployprobe it. Verify with the inventory: confirm thesshdclan service (vars generatoropenssh) is ininventory.jsonforgateway.2. The VMMode config inherits the PRIVATE-VM baseline and drops the image's DO networking — the likely "goes dark". The machine dir has no
networking.nix(VMMode writes none,rentedpath.go:310) and nothing carries the image'sservices.cloud-init.network/useNetworkd(nix/gateway-image/configuration.nix:62-85) into the community config. What it DOES carry isgateway-guest.nix(vmguest.go) — the private-path QEMU guest baseline:networking.useDHCP = lib.mkForce true(scripted dhcpcd, no networkd),boot.growPartition,console=ttyS0kernel params, andfileSystems."/" = { device = "/dev/disk/by-label/nixos"; autoResize = true; }. On a DO droplet that means: afterswitch, the static public address/gateway cloud-init rendered is gone and the box is betting on dhcpcd getting170.64.x.y/19+ the gateway from DO's DHCP onens3— and the/entry names a label (nixos) the disko-built image does not carry (disk-main-rootpartlabel, ext4 unlabelled), which is a latent one-way door: harmless until the first reboot, then unbootable. Fix shape (pick one): (a) rendernetworking.nixfor rented from theConnectfacts the way own-VPS does (renderNetworkd) — choosing the public/19address, NOT the10.x/16anchor thatip -4 addrlists first on a DO NixOS box (ip route get 1.1.1.1gives the right source); or (b) keep the image's networking module (cloud-init network + networkd) in the rented machine's config. Either way the rented machine must stop importing the VM guest baseline's disk/boot/DHCP lines (fileSystems."/",growPartition,useDHCPforce) — those are QEMU-guest facts, not a rented box's.How to prove (1) and (2) live without the drive: with
doctl(permissions now allow it), create a droplet from the currentidss-gateway-*snapshot, ssh in,cat /etc/ssh/ssh_host_ed25519_key.pubandip -4 route; then apply a minimal switch that mirrors the community config's network + sshd shape (nixos-rebuild testwithuseDHCP=true, no cloud-init) and watch whether the address survives — that's the #703 forensics in 10 minutes. Evidence dir on elitebook-03:test-results/drive-rented/20260823T115746Z/state/clan-config/machines/gateway/.Close report
What landed: commit
20a342df(sandcastle: #704 — a red rented drive was auto-reaping its droplet before anyone could pull DO-console evidence).Diagnosis verified. Re-checked the ticket's own evidence chain against the code (
internal/founding/deploy.go:687,1115,internal/clan/adapter.go:168-190,internal/founding/rentedpath.go) — confirmed accurate: the real deploy reconciles, the follow-upUnitActiveprobe then catches a genuine, freshly-changed SSH host key (single known_hosts entry, no stale/reused-IP explanation possible), and the box goes fully dark shortly after. This is a second, independent reproduction of the mystery GOTCHAS #62 / #703 already opened, one stage later than #702/#703's instance.No mechanical fix exists for the deploy-time root cause — confirmed, not just asserted: whether it's clan-core's detached remote switch, the rented image (ADR 0048) regenerating its host key, or an on-box crash/hang is not distinguishable from repo-side evidence alone. That needs live-droplet/console access at the moment it reproduces, which is exactly what #703 is already scoped and open to do.
What I did instead of duplicating #703's ask under a second ticket:
170.64.230.22) is already gone — confirmed nothing further is extractable from it.oc_rented_teardown(scripts/lib/rehearsal-droplet.sh) was unconditionally reaping the rented droplet on every red drive, unlike the clan-lab target'sREHEARSAL_KEEP_RED_DROPLETcontract (#412) — meaning even a future #703-chasing session would have had its droplet auto-destroyed before it could look. Fixed to honour the same flag (skips broker release + fallback reap on red, still offboards the subdomain, still TTL-reaped by the broker per GOTCHAS #48). Proven by two new red-before/green-after cases inscripts/tests/rehearsal-rented-target-test.sh(8/8 passing); full shell test suite (scripts/tests/*.sh) green; no Go touched.docs/GOTCHAS.md#62 as a second data point.STATUS.md's header.Ruling (ADR 0174 — veto anytime): two-way door throughout — a documentation/evidence consolidation plus a revertible, test-proven harness fix; no security-posture widening, no data destruction, no personal credentials. Closing #704 rather than leaving a duplicate
ready-for-sessionticket chasing the identical live-forensics need #703 already tracks — advances #703.enroll-copy's shipped ServerAliveInterval=30/CountMax=10 did not terminate a live stallednix copy, ran the full 90m ceiling — the fix's synthetic proof does not match live behaviour #716