rehearsal-5 task 3/13: Fleet admission — mesh fact, AddNode on land, live TakeoverReady/Consent #844
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
2 participants
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#844
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?
Part of the #183 phase-5 rehearsal arc (device-add + Nextcloud-on-device on a standing rented community).
docs/superpowers/specs/2026-08-25-183-phase-5-device-nextcloud-rehearsal-design.mddocs/superpowers/plans/2026-08-25-183-phase-5-device-nextcloud-rehearsal.md— this ticket is Task 3, carried verbatim below. The plan's Global Constraints apply to every step.Task 3: Fleet admission — mesh fact, AddNode on land, live TakeoverReady/Consent
Files:
internal/enroll/enroll.go(ConfirmEnrolledgains the mesh address; ledger stores it),internal/enroll/ledger.go,ledger_test.gointernal/enrollwire/(device transport carriesmesh_addresson the confirm verb), its testsinternal/enroll/admission.go+admission_test.go(the land-side fleet admission)internal/fleetstate/projection.go+projection_test.go(Install facts + mesh address projected)internal/fleetstate/fleetstate.go(Device.MeshAddress string;Install.TakeoverReady/Consentfed from the ledger)control-plane/cmd/control-plane/whole_composition.go(wire the admission;configRepoInventoryreads the mesh address + derivesDatasetsfrom placement — files →Dataset{Name: "Files & documents", Service: "files", Homes: [<node>]})dashboard/src/lib/pending.ts(setUpRouteuses the grant's node idnode-<requestID>, not the raw request id),dashboard/tests/unit/sibling testSTATUS.mdInterfaces:
Consumes: Task 2's
ConfirmEnrolled(…, MeshAddress);clan.Config().AddNode(founding's existing call is the signature source —internal/founding/deploy.go),enroll.Ledgerconsent record (written at the terminal WIPE consent).Produces:
fleetstate.Device{ID: "node-<requestID>", MeshAddress, Resources: <probe>, Install: &Install{Mode: ModeFull, TakeoverReady: true, Consent: &Consent{By, At}}}visible inGET /api/v1/fleetthe moment the agent lands;GET /provision/devices/node-<requestID>/assessmentstops 404ing;provision.ReviewImpactrenders ERASES live (it already readsInstall.Consent—impact.go:164-166); LOSES speaks from the derived dataset. The fleet row's action readsset-up-node-<requestID>(role empty ⇒ un-provisioned).Step 1: Write failing ledger/admission tests —
TestConfirmEnrolled_StoresMeshAddress,TestAdmission_LandedDevicePlacedWithProbeResourcesAndInstallFacts,TestAdmission_IdempotentOnRepeatConfirm.Step 2: Run
go test ./internal/enroll -run 'Confirm|Admission' -v→ FAIL; implement; → PASS.Step 3: Write failing projection tests —
TestProjection_EnrolledDeviceCarriesTakeoverReadyAndConsent,TestProjection_MeshAddressProjected,TestPlacement_FilesHomeDerivesDataset.Step 4: Run → FAIL; implement projection +
whole_composition.goderivation; → PASS.Step 5: Fix
setUpRoute(failing dashboard unit test first: the intent id equals the fleet DeviceID);pnpm --filter dashboard test→ PASS.Step 6: Run
go build ./... && go vet ./... && go test ./... && pnpm -r typecheck→ PASS.Step 7: Commit —
git commit -m "rehearsal-5: a landed device enters the fleet — mesh fact, AddNode admission, live ERASES/LOSES facts (ADR 0208) (task 3 of #<ticket>)".Global Constraints (from the plan)
failure is a named error, never a masked success. No sandbox-green claim (#377).
at P4-S3x; the takeover runs at provisioning's first deploy, never at join.
commit, then two single-node
clan.Deploycalls, device first (ruling: aroute to a dead service is the honest failure, a service with no route is
invisible).
test-results/standing-rented/; staleness gate =oc_bootstrap_stalenesspattern overagent/ go.mod go.sum internal/; thereaper stays honest — renewal, not exemption (
idss-rental-holdis forhumans, the executor never sets it).
#721/#722 (workstation) keep running; the prefix extraction (Task 10) is
behavior-preserving and #720 must stay green across it. Never touch the
executors' env files from a ticket.
POST/DELETE /issues/<n>/labels, never in anissue PATCH. "closes #NNN" in commit messages auto-closes — say "task N of
#NNN" instead.
git ls-tree origin/main docs/adr/at mint (IDIP + observability swarm lanes are minting concurrently).
git pull --rebaseimmediately before a STATUS commit (shared checkout).gofmt,go vet ./...,go test ./...green; TS:pnpm -r typecheck+unit suites green, pre-land.
journey.device.spec.ts+ device-add fixturesADR numbers ruled at mint — read 0207 → 0208, 0208 → 0209, 0209 → 0210
Task 1 (#842) has landed the phase-5 design tier. This ticket's body carries the
plan's assumed ADR numbers; they shifted by one at mint, exactly as the
Global Constraints line in your body told you to re-check.
/getWhy:
docs/adr/0207-design-keri-stack-version-pins.md(#771, the concurrentIDIP lane) had taken 0207 on
origin/mainbefore this arc minted.Use the ruled numbers in your commit messages and code comments. The plan
(
docs/superpowers/plans/2026-08-25-183-phase-5-device-nextcloud-rehearsal.md)is updated and records the mapping; commit
70a3bce6.Ruled by agent under ADR 0174 — veto anytime.
swarm-claim host=elitebook-distributed-server-03 run=10103
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #844 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
mesh.internal, on a device with no netbird (#788 idip drive 20260827T161538Z, sig 28ff46f6d26f) #907netbird uprejectsmesh.internaland no device can land #956