Spike Q2.2 — real fresh-host full-install takeover (S13 residual) #12
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.
Dependencies
No dependencies set.
Reference
Matou/idss#12
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?
Spike Q2.2 — real fresh-host full-install takeover
Focused gating spike — the one clan-shaped risk still carrying paper instead of evidence. S13 (issue #4) confirmed the takeover mechanism (headless-capable, nixos-anywhere/kexec-style disk overwrite driven via clan) but did not execute it against a real non-NixOS host. Ticket #9 carries the ruling: this must be executed before the device-add slice ships. Filed from the device-add grill (2026-07-23); when
to-ticketsemits device-add's slices, the deploy-touching slice takes a nativedepends_onthis issue.Task manifest
Environment
The
clan-labskill environment, plus one extra plain DigitalOcean droplet from a stock Ubuntu image as the takeover target (it must NOT come from the golden snapshot — the whole point is a fresh non-NixOS host). Drive the takeover from the lab's gateway-shaped node over SSH, mirroring the fleet direction. Destroy everything at the end (clan-labteardown + the extra droplet).Deliverables
docs/spike-findings/q22-fresh-host-takeover.md(verdict-shaped, evidence inline)spikes/q22-fresh-host-takeover/Sandcastle picked this up but is blocked in this run: no DigitalOcean credentials in the sandbox.
DIGITALOCEAN_ACCESS_TOKENis unset anddoctlis unauthenticated here, soclan-lab create(and the extra stock-Ubuntu takeover-target droplet) cannot be provisioned — this spike needs a real lab it cannot reach. No repo or state changes made; leaving open.To run this spike, the swarm invocation needs the DO token forwarded into the sandbox (the org-level Actions secret the matou-workstation runner normally materialises into
.env). Everything else the manifest asks for is in place (clan-lab + lab-dns skills,doctlbinary present).Blocked — external dependency: no DigitalOcean credentials in this Sandcastle run.
This spike's acceptance is real execution: stand up the
clan-labcontrol plane and one extra plain stock-Ubuntu droplet (explicitly not from the golden snapshot), drive a headless disk-overwrite takeover over SSH, interrupt it mid-run, classify the failures, and record commands/output/timings — then tear it all down. Every deliverable is real-world evidence; the issue itself frames this as "the one clan-shaped risk still carrying paper instead of evidence." Both the lab and the takeover target require provisioning on DigitalOcean.The
clan-labskill (and the extra target, viaclan-lab create --fresh) drivedoctl, which needsDIGITALOCEAN_ACCESS_TOKEN. In this iteration that token is absent:.sandcastle/.env(only.env.example, which documents the key as required for clan-lab tasks and empty by default);DIGITALOCEAN_ACCESS_TOKENunset in the environment;doctlauth config (doctl account get→ "access token is required").Only
FORGEJO_*credentials were forwarded into the sandbox. Without a DO token I cannot provision either the lab or the takeover target, so the spike cannot run. I will not fabricate a findings report — paper evidence is exactly what this spike exists to replace.To unblock: supply
DIGITALOCEAN_ACCESS_TOKENto the Sandcastle run (via.sandcastle/.envor the runner's org secrets, per.sandcastle/.env.example). With it present, the plan is:clan-lab createfor the gateway-shaped control plane +clan-lab create --fresh(tagged/TTL'd, stock Ubuntu) as the takeover target, drive the takeover from the lab node over SSH mirroring fleet direction, run the two interruption cases, writedocs/spike-findings/q22-fresh-host-takeover.md(verdict-shaped) + prototype underspikes/q22-fresh-host-takeover/, thenclan-lab destroyeverything.Leaving this issue open. No repo changes made this iteration.
Sandcastle: blocked on lab credentials — leaving open.
This spike requires real DigitalOcean infrastructure (a
clan-labplus one extra fresh stock-Ubuntu droplet as the takeover target), but the Sandcastle runner has no DO access:doctlis unauthenticated,DIGITALOCEAN_ACCESS_TOKENis unset, and there is no.sandcastle/.env. Theclan-labskill (and the extra droplet) cannot be provisioned, so the takeover cannot be driven or its failures classified.To unblock: provide a DigitalOcean token to the runner (e.g.
DIGITALOCEAN_ACCESS_TOKENin.sandcastle/.env, per theclan-labskill), then re-run. Nothing else here is blocking —depends_on: [], and this should run early.Blocked (this Sandcastle iteration): no DigitalOcean credential in the sandbox.
This is a real-infrastructure gating spike — it requires the
clan-labenvironment (a DO droplet) plus one extra stock-Ubuntu DO droplet as the fresh-host takeover target. Neither can be provisioned without a DigitalOcean API token, and this run has none:DIGITALOCEAN_ACCESS_TOKENis unset;.sandcastle/.envdoes not exist (only.env.example, where the key is blank).doctl account get→Error: ... access token is required..claude/skills/clan-lab/clan-lab status→ same error (the CLI can't init the DO client).No code/test workaround is possible: the spike's whole point is a real disk-overwrite takeover of a real fresh non-NixOS host with measured commands/output/timings and mid-run interruption — a mock would validate nothing (
interface: n/a — spike; produces findings + prototype, not product code).To unblock: provide a DigitalOcean token to the swarm (populate
DIGITALOCEAN_ACCESS_TOKENin.sandcastle/.env, per.sandcastle/.env.exampleand theclan-labSKILL). Then a future iteration can:clan-lab createa lab host, provision one plain stock-Ubuntu droplet (deliberately not from the golden snapshot), stage the takeover-ready residue, drive the headless nixos-anywhere/kexec takeover from the gateway-shaped node over SSH, exercise the two interrupt cases, write the verdict-shapeddocs/spike-findings/q22-fresh-host-takeover.md+ prototype underspikes/q22-fresh-host-takeover/, and destroy everything.Leaving open — not guessing a verdict.
depends_on: []andneeds_human_decision: []are satisfied; the only gap is the credential.Context: device-add spec #13 carries this as a native
depends_onfor its deploy-touching slice (per ticket #9), so this stays on the critical path for device-add.Blocked in this Sandcastle iteration — no DigitalOcean credentials in the sandbox.
This spike's Environment section requires the
clan-labskill to stand up real DO infrastructure (the lab control plane + one extra plain stock-Ubuntu droplet as the fresh-host takeover target).clan-labneeds an authenticateddoctl/DIGITALOCEAN_ACCESS_TOKEN.This sandbox only carries
FORGEJO_TOKEN/FORGEJO_API.DIGITALOCEAN_ACCESS_TOKENis unset and.sandcastle/.envdoes not exist (only.env.example, which reserves that key precisely 'for tasks that use the clan-lab skill'). Verified:doctl account get->Error: ... access token is requiredclan-lab status-> sameWithout provisioning I cannot execute the headless takeover, the mid-run interruption cases, or capture the measured constraints the acceptance clauses ask for. To unblock: add
DIGITALOCEAN_ACCESS_TOKENto the swarm runner's.sandcastle/.envso it forwards into the sandbox.No code changed. Prior art the execution will build on when unblocked:
spikes/S13-clan-orchestration/+docs/spike-findings/S13-clan-orchestration.md(Q2.2 mechanism-confirmed, execution-pending). Leaving open.Blocked — external dependency (no DigitalOcean credentials in the swarm environment).
Picked this spike up in a Sandcastle iteration (it is the one genuinely-ready, self-contained task of the three currently
ready-for-agent; #11 and #13 are feature specs still waiting on the Phase-2 slice-map, with no repo skeleton to build into yet).The spike's substance is real evidence: stand up the
clan-lab, provision one fresh stock-Ubuntu droplet as the takeover target, drive a headless disk-overwrite takeover over SSH, exercise the interruption/recovery cases, and record measured constraints (kexec RAM floor, disk, duration). Every acceptance clause requires executing against real DigitalOcean infrastructure — a nested-VM stand-in cannot produce the honest resource-floor/duration numbers the manifest asks for, and fabricating a verdict would defeat the whole point of a gating spike.What I verified in this environment:
DIGITALOCEAN_ACCESS_TOKENis not set, and there is no.sandcastle/.envcarrying it (run-swarm.shcopies.env.example, whoseDIGITALOCEAN_ACCESS_TOKEN=is empty).doctlhas no authenticated context (doctl account get→ access token is required), soclan-lab create/status/ any droplet op fails..sandcastle/.env.exampledocuments this token as "only needed by tasks that use the clan-lab skill" — i.e. it is deliberately optional and was not forwarded into this swarm run.To unblock: provision a DigitalOcean API token into the swarm's sandbox — set
DIGITALOCEAN_ACCESS_TOKENin.sandcastle/.env(or the Actions secret the workflow forwards), the same credential the two prior gating spikes (#4, #5) used. Once present, this spike can run end-to-end via theclan-labskill (lab as the gateway-shaped driver) plus one extra reapable stock-Ubuntu droplet as the fresh takeover target, producingdocs/spike-findings/q22-fresh-host-takeover.md+spikes/q22-fresh-host-takeover/and closing with the verdict.Leaving open. No code or findings committed (there is nothing real to report yet).
Unblocked:
DIGITALOCEAN_ACCESS_TOKENis now a Matou org Actions secret andswarm.ymlforwards it into the sandbox (commit749ba2b), sodoctl/ the clan-lab skill can authenticate. Re-arming withready-for-agent.Q2.2 executed on real hardware — verdict: CONFIRMED-WITH-WORKAROUND.
A real fresh stock-Ubuntu DigitalOcean droplet (not the golden snapshot) was disk-overwritten to NixOS and came back a clan member, end to end, driven headlessly from the gateway over the established community SSH trust — mirroring the fleet direction. The takeover mechanism S13 flagged is real and executable.
Acceptance — all PASS (evidence in the findings doc):
clan machines install(kexec→disko wipe→install→GRUB→reboot) → NixOS 26.11 on the overwritten disk (ext4 /dev/vda3); the residue was WIPED (no old OS underneath); the gateway then droveclan machines updateover the connection (rc=0, ~33s — ADR 0028).interrupted→ resume the deploy (idempotent re-drive) → reachable member; a forced reboot mid-write (power-cut during the closure copy, after disko wiped Ubuntu's table) → the half-written disk boots nothing — no old OS to roll back to → rescue boot + reinstall recovered it to a member./+ 58 MB ESP · ~120 s on 8 GB / ~204 s on 2 GB · kexec RAM floor probed ≤ 2 GB (validated on a reals-1vcpu-2gbdroplet, no OOM; zswap on by default).The workaround (not a clan defect — inputs to the device-add takeover-ready contract): a fresh cloud host cannot self-describe, so the node config must carry facts captured at enrollment: DO is static-networked via a config drive, not DHCP, so capture the public IP/CIDR, gateway, DNS and the public NIC's MAC (a droplet has two NICs; match by MAC like DO's own netplan) and bake them in; use a hybrid BIOS+UEFI disko layout (clan-core's
ext4-single-disk); clan-core is networkd fleet-wide. Also fed todocs/seams/clan.md: two takeover-time classifier token-stealing bugs (config-eval stolen by "disko"; SIGKILL "Killed" stolen by OOM) — the echo of S13's connectivity-before-secrets lesson, both fixed.Deliverables:
docs/spike-findings/q22-fresh-host-takeover.md(verdict-shaped, evidence inline) + prototypespikes/q22-fresh-host-takeover/. Committed onsandcastle/worker/20260724-021537-50d2d5(a9c7289);STATUS.mdupdated — the validation ledger is now empty, and the device-add deploy slice'sdepends_on#12 is satisfied. All lab infrastructure (driver + target droplets, extra SSH key) destroyed.clanpackage + fake adapter behind DDR 0010 #25netbird uprejectsmesh.internaland no device can land #956invalid-policy— the #12 policy gate's label check has a 6s retry budget, records no verdict error line, and blames a policy file that is valid (the #1359 defect in the other preflight gate) #2052invalid-policy— the #12 policy gate's label check has a 6s retry budget, records no verdict error line, and blames a policy file that is valid (the #1359 defect in the other preflight gate) #2052