device-add: full-install-takeover-ready — Full-install device lands takeover-ready #59
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.
Blocks
Depends on
Reference
Matou/idss#59
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?
Parent
Feature spec: #13 (device-add).
What to build
The residue a full-install join leaves behind — takeover-ready, not taken over. On full-install consent (Linux, CLI P2-S3 or app P3-S3L) nothing destructive happens during the join: when it completes the machine still runs its existing OS at Connected. What device-add leaves is exactly what provisioning's first deploy needs to execute the wipe — the agent as a persistent service, sshd up and reachable over the mesh, the community's SSH trust installed, and the consented mode bound into the NodeCert. The wipe itself (kexec/disk-overwrite via the
clanseam) belongs to provisioning's first deploy, never here (ADR 0024).Because a freshly re-imaged host is statically configured and cannot self-describe at takeover time, the spec-gate/facter probe also captures the host's network facts — public IP + CIDR, default gateway, DNS, and the public NIC's MAC — which ride the takeover-ready contract (spike #12 §6, confirmed 2026-07-24: DHCP-only boots come up unreachable, so the public interface must be matched by MAC). The contract carries a MAC-matched systemd-networkd node config (clan-core is networkd fleet-wide) and a hybrid BIOS+UEFI disko layout (clan-core's
ext4-single-disktemplate) so the overwritten host boots regardless of firmware; the community-signed SSH host cert is what carries the gateway's trust across the re-image withoutknown_hostschurn. Story 14 was amended at the spec gate for exactly these spike inputs.Notes: this contract is consumed by provisioning's full-install deploy (the wipe is provisioning's). Spike #12 is already closed, so its blocking edge is satisfied. The takeover-ready stager is a fake below THE seam.
Acceptance criteria
ext4-single-disk) so the overwritten host boots regardless of firmware, with the community-signed SSH host cert carrying trust across the re-image withoutknown_hostschurn.Blocked by
Task manifest
Done — commit
58b8b10(sandcastle: device-add:full-install-takeover-ready #59).What was built (at the ADR 0057
join-orchestrator seam: realenrollledger + clock, takeover-ready stager and clan adapter faked below):TakeoverStagerport (internal/join/takeover.go). On a full-install join nothing destructive runs: no VM, no self-remove, and no wipe verb exists on the surface by construction (the wipe is provisioning's first deploy's, ADR 0024). Staging is a gate step beforeConfirmEnrolled: sshd up over the mesh + the contract persisted, or the request holds at Approved and retries clean — a machine is never called Connected without the residue.enroll.NetworkFacts(public IP/CIDR, gateway, DNS, public NIC MAC), captured on full-install consent, ridingPairand echoed monotonically inRequestViewat Pending, so provisioning reads them where it reads the rest of the request. VM-mode joins capture none; a LAN/DHCP host's zero facts still validate.clan.BuildNodeConfig): MAC-matched systemd-networkd node config (explicit gateway interface — the networkd assertion the spike hit) + hybrid BIOS+UEFI disko (clan-coreext4-single-disk), validated against the Q2.2 assertions before staging. The community-signed SSH host cert rides the contract verbatim (trust across the re-image, no known_hosts churn), and the NodeCert now binds the consented mode and consent hash (the ledger stores Pair's ConsentHash and threads it into the GrantSpec — previously dropped).Evidence:
internal/join/takeover_test.go— 6 seam tests covering all three acceptance clauses (landing takeover-ready with the gate order asserted, stage-failure holds at Approved, VM-mode never stages, facts ride Pair → contract, firmware-agnostic node config + SSH-cert carry, zero-fact LAN join). Full Go suite, vet, gofmt green. Seam contract doc (docs/seams/agent-control-plane.md) andSTATUS.mdupdated in the same commit.idss-rental-expires-tag on a LIVE rental once the broker actually deploys (#741's broker half is merged but not installed) #745seamis cancelled — the newest published broker binary is b9a3adfd (2026-08-24), two broker commits behind main #864idss-rental-expires-tag on a LIVE rental once the broker actually deploys (#741's broker half is merged but not installed) #745workflow_runevent here, and all 4 broker-deploy runs in history were manual #874