control plane: the enrollment ledger is never persisted — codes, pending requests (and enrolled devices?) live only in memory; a restart in the update window drops them (#1975 class) #2007
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.
Dependencies
No dependencies set.
Reference
Matou/idss#2007
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?
Symptom
On a live gateway, every enrollment code and every device request exists only in the control plane's memory. On Whakatōhea Demo (2026-09-30) the operator minted a code at 00:33Z and a device paired to Pending at 00:51Z;
/var/lib/idss/enroll.jsonon the box was last written 2026-09-23 22:39 (founding's hand-over) and holds neither. Both are readable only throughGET /api/v1/enroll/codesand/pendingon the running process.Consequence: a control-plane restart — every update lands one; the demo's window is 11:00–13:00 UTC daily — drops every unspent code and every pending request. Whether an enrolled device survives (the ledger's
nodesandrequestsare what the fleet projection andConfirmEnrolledread) needs establishing as part of this ticket; if it does not, a device joined after founding vanishes from the fleet at the next update.Cause
openEnrollLedger(control-plane/cmd/control-plane/whole_composition.go:1041) opens the ledger overenroll.NewFileStore(<state>/enroll.json)— and that is the only place the store is touched.enroll.Persist(internal/enroll/store.go:56) has two callers in the tree: the smoke-stores tool and the app helper'spersistedEnrollwrapper (app/helper/cmd/helper/enrollpersist.go), which saves after every verb precisely because "a memory-only ledger strands every approved request the moment its process exits". The control plane never got the same wrapper.Ledger.MintCode/Redeem/Pair/Approvemutate memory and return.Same class as #1975 (update policy in memory only, closed).
Fix
persistedEnrollintointernal/enrollso both compositions share one wrapper rather than a copy.curl http://127.0.0.1:8080/api/v1/enroll/codes(loopback, no auth), notenroll.json.Related
Found while joining
bens-mac-04to Whakatōhea Demo by hand; sibling tickets filed alongside.Siblings
Found in the one hand run (bens-mac-04 → Whakatōhea Demo, 2026-09-30): #2002 #2003 #2004 #2005 #2006
swarm-claim host=bens-mac-04 run=36142
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #2007 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
504a4a5325is not reachable from origin/main (not landed)envelope
close-report for #2007 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope