founding: seed-fleet-authority — enrol node #1, seed crown jewels, hand over config repo #65
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#65
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: #11 (founding).
What to build
The seeding step that makes the gateway an ordinary enrolled node of its own community and flips authority from the laptop to the fleet. The helper enrols the first node through the app-hosted
enrollcontrol-plane face (same package, in-process ledger; carrier per path — LAN listener at the operator's place, SSH relay for VPS/rented, direct drive for the private VM), and seeding hands the connection-request record and issued IdentityGrant into the fleet's ledger (ADR 0043), so the control plane knows its gateway as enrolled node #1 with no special identity path. The crown jewels — root CA, SSH CA, config repo, gateway vars — are born on the laptop during founding and, at seeding, placed as clan vars encrypted to machine keys and recovery material only; operator keys are not recipients (ADR 0044), so a replica plus operator key can never reconstruct them. Seeding pushes the founding repo to the bare repo on the gateway (ADR 0045); authority flips so the control-plane API is the only writer from that commit on, and the app re-clones its former repo as the replica — provenance is the fleet and staleness measurement starts honest (ADR 0032).This seeds the crown-jewel store and the fleet's ledger (ADRs 0043/0044/0045) on the
foundingorchestrator (ADR 0052). The passkey enrolment, recovery-kit offer, and scrub follow in identity-handoff-scrub.Acceptance criteria
enrollcontrol-plane face (same package, in-process ledger; carrier per path — LAN listener at my place, SSH relay for VPS/rented, direct drive for the private VM), and seeding hands the connection-request record and issued IdentityGrant into the fleet's ledger (ADR 0043), so the control plane knows its gateway as enrolled node #1.Blocked by
Task manifest
Done — landed on
origin/mainasb9ec880.Seeding portion of P1-S11→S12 (engineering slice at the ADR-0052
foundingorchestrator seam). From the resting liveStandupDeploying,Orchestrator.RunSeed(internal/founding/seed.go) makes the gateway an ordinary enrolled node of its own community and flips authority from the laptop to the fleet, resting at the newStandupSeededstep:enrollface at pairing (carrier per path). Seeding confirms the gateway enrolled (EnrollFace.ConfirmEnrolled), exports the handover unit (Ledger.Export()— the connection-request record + issuedIdentityGrant), and hands it into the fleet's in-process ledger over a new narrowFleetseam (SeedLedger). The seam test reconstructs the fleet ledger via the receiving halfenroll.NewLedgerFromStateand proves the control plane knows the gateway as enrolled node #1.clan.Config.SetVarSpec/VarSpec.Recipients), so replica + operator key can never reconstruct them; verified through the clan boundary with a newclan.Fake.VarSpecs()recorder.Fleet.PushConfigRepo) and flips authority so the control-plane API is the sole writer and the app re-clones its former repo as the replica (provenance: the fleet, staleness starts honest).No secret material is persisted or logged (ADR 0051):
SeedStatusrecords only non-secret evidence.Evidence:
internal/founding/seed_test.go(stories 24/25/26 + logged-non-secret-and-persisted + fleet-failure + guards),internal/founding/seed.go,internal/founding/fakes.go(FakeFleet),internal/clan/fake.go(VarSpecs()),internal/founding/{standup,orchestrator,stdio}.go.go test ./internal/founding/ ./internal/clan/green;go vet+gofmtclean.Out of scope / next (identity-handoff-scrub #72): the S12 hand-off landing — passkey enrolment, operator-key/passkey split, recovery kit, scrub, portal, Operator home — which wires the new
run-seedop into the app-side hand-off screen. The named S12 wireframe's UI is that slice's, so this engineering slice ships no Vue.