bootstrap: clan-seam — the clan package + fake adapter behind DDR 0010 #25
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
#47 founding: spec-gate-and-reachability — spec gate pass/fail, reachability before name-wire
Matou/idss
#76 members: komiti-matrix-roles — komiti CRUD, the access matrix, kaitiaki + operator role
Matou/idss
Reference
Matou/idss#25
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
Wayfinder map: #7 — the engineering foundation (PROCESS.md Phase 2½, emitted as DAG root slices).
What to build
The
clanGo package — the single boundary between OurCloud and clan.lol (DDR 0010, the seam contract indocs/seams/clan.md). Nothing outside this package knows clan's config format, CLI flags, phase names, or exit-code lies. The interface's spine is the two hot paths:Deploy(the commit→apply loop the deploy runner runs many times a day) andEnrollment(the resumable, snapshot-durable stand-up of one approved device, blocking on human physical steps for days if needed). Around them: theReadinesseval gate, the thinConfigandVarsescape hatches,Supplyfor closure seeding, and the per-serviceHealthChecktype. Outcome detection is layered (the S13 amendment); the error taxonomy classifies failures with structured remedies, connectivity before secrets.Two build targets from day one (the clan seam's founding gate decision, ADR 0043): the package builds into the control plane for steady-state, and into the standalone per-platform Go helper the operator app bundles for founding stand-up. The fake adapter is the other half of this slice — it must simulate the blocked/resume/remedy and partial-failure flows (the S13 fakes) so seam tests can drive the exact disko-recovery path deterministically: a
Remedyblock, then one moreAdvance.Notes: this slice also lands the Q2.2 reconciliation inputs (issue #12, absorbed into the seam) —
EnrollRequestcarries the fresh host's captured network facts (public IP + CIDR, gateway, DNS, and the public NIC's MAC), the adapter bakes them into a MAC-matched systemd-networkd config with an explicit gateway interface, and the node config uses clan-core's hybrid BIOS+UEFI disko layout. The two progress/embedding gate decisions are settled (checklist-only Events; the app embeds the seam) — agents must not invent progress-bar plumbing the design never asked for.Acceptance criteria
clanpackage is built, thenDeploy,Enroll/Resume/Enrollment(configure→preflight→install→verify→done, forward-only, phase-bookkept),Readiness,Config,Vars,Supply, and theHealthChecktype all exist as specified.Deployexcludes-and-reports it (never lets the batch die) andDeployResultstill names what reconciled,Restarted, andSkipped.install,rebootsubset only after aRemedy+Advance.{Kind, Node, Summary, Detail, Remedy}with connectivity classified before secrets, and outcomes log-derived (masked-exit proof carried inDetail).EnrollRequestarrives, then it carries the host's network facts (public IP/CIDR, gateway, DNS, public-NIC MAC) which the adapter bakes into a MAC-matched systemd-networkd config with an explicit gateway interface and a hybrid BIOS+UEFI disko layout.Blocked by
Task manifest
enrollpackage + in-memory fake #26Done —
bootstrap:clan-seamshipped in commitedaaf3e.The
clanGo package (internal/clan/) is the single DDR-0010 boundary between OurCloud and clan.lol, built to the seam contract indocs/seams/clan.md, plus the fake adapter that is the other half of the slice.Acceptance criteria — all met, each with a seam test:
Deploy,Enroll/Resume/Enrollment(configure→preflight→install→verify→done, forward-only, phase-bookkept, snapshot-resumable),Readiness,Config,Vars,Supply,HealthCheck(clan.go;TestEnrollment_HappyPath).DeployResultnames reconciled/skipped/restarted (TestDeploy_ExcludeAndReport);Strictfails the run, a reconcile-time failure returns*DeployErrorwhile the result still names what reconciled (TestDeploy_StrictFailsWholeRun,TestDeploy_PartialFailure).Remedyblock →Snapshot/Resume→ one moreAdvancethat resumes with install,reboot only (TestEnrollment_DiskoRecovery); prompt-block/Answercovered too (TestEnrollment_BlockedOnPrompt).Bridge/ServeStdio(helper clansubcommand). Verified: both binaries compile, andhelper clanwas driven end-to-end over stdin/stdout (TestServeStdio_RoundTrip).Classifyreturns typed{Kind, Node, Summary, Detail, Remedy}with connectivity before secrets and masked exits log-derived (FailMaskedExit, proof inDetail) (TestClassify_ConnectivityBeforeSecrets,TestClassify_MaskedExit,TestClassify_Taxonomy).EnrollRequest.NetworkFacts→BuildNodeConfigbakes a MAC-matched systemd-networkd config with an explicit gateway interface and a hybrid BIOS+UEFI disko layout, guarded byNodeConfig.Validate(TestBuildNodeConfig_FreshHostTakeover,TestNodeConfig_ValidateCatchesTheSpikeAssertions,TestEnrollment_BakesNodeConfig).Files:
internal/clan/{clan,errors,secret,nodeconfig,fake,stdio,clan_test}.go;control-plane/cmd/control-plane/main.goandapp/helper/cmd/helper/main.gowired to the two build targets;STATUS.mdupdated (header + milestone log).Checks: 17 seam tests (stdlib
testing, hand-written fake);go build ./...,go vet ./...,gofmt -l, andgo test -race ./internal/clan/all clean. Secret/Response redact inStringand JSON; Events are checklist-only (no progress-bar plumbing, per the 2026-07-09 gate); wire types carry snake_case tags.Out of scope (untouched): the real PTY-driving clan adapter, the enroll agent↔control-plane boundary (#26's), theming compile, and real catalogue provisioning — each its own slice.