engine-adapters: clan-adapter-config-vars-supply — inventory as data, recipient sets, closure seeding #164
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#164
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
Engine-adapters child spec: #161 (ADRs 0102–0107; scoped on wayfinder #160 — Ben ruled live: per-family clan-lab smokes gate each family, the arc closes on a real-hardware end-to-end, tickets arm the swarm). Everything else agent-decided, post-hoc review pending.
What to build
The escape-hatch faces real (ADR 0102): Config drives
inventory.jsonas structured data (AddNode/AssignRole/AttachService/SetVarSpec) with the one quarantined Nix-templating layer for per-machine text; Vars exposes recipient-set control (machine keys, per-operator keys, the deliberately-excluded recovery recipient — S13 Q3's tiered model) with per-secret rotation churning nothing else; Supply seeds eval + helper closures onto a node over the established connection (S13 Q4/Q9).Acceptance criteria
Blocked by
Task manifest
Built the Config / Vars / Supply escape hatches on the production
internal/clanAdapter(commit42586cb, onorigin/main).inventory.go+config.go): edits the structuredinventory.jsonAS DATA — AddNode/RemoveNode/AssignRole/AttachService/DetachService/SetVarSpec — each landing as ONE commit through the single-writerConfigRepo.Mutate; bad edits refused at call time; the one quarantined Nix-templating layer staysBuildNodeConfig.vars.go): headlessclan vars generate— seals missing secrets or rotates exactly one (--regenerate --generator g) so per-secret churn touches nothing else; unanswered prompt is a typedFailMissingVar(never a hang); answers ride a temp--prompt-inputdata file (never a TTY, cleaned up);Missingis a pure repo read;Getreturns a redactingSecret.SetVarSpecrecords the S13 tiered recipient set (recovery/escrow excluded) readable back.supply.go):nix flake archive --to ssh-ng://<target>seeds eval+input closures (S13 offline-eval fix); target from inventorydeploy.target_host(no target => fail loud, Netbird capture rides #163); idempotent;Missingisnix copy --dry-run.Acceptance: all four ACs proven by contract tests over scripted clan/nix doubles + a real single-writer git repo —
config_test.go(AC1 data/one-commit, AC3 recovery-excluded recipients readable back),vars_test.go(AC2 rotation churns one secret),supply_test.go(AC4 no closures missing after seed).Enroll/Resumeremain fail-loud (#163).go build ./.../vet/gofmt+ full clan and wireconvention suites clean.nix copy --dry-run, a flag the real nix does not have (and a flake-ref eval trap) — fixed under #175 #190