control-plane: compose-enroll — register the built enroll faces in the composition root #200
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
Reference
Matou/idss#200
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
Device-add spec #13. Gap audit 2026-07-30 (post #191–#195 sweep of the composition roots and both app shells). Filed per the #191–#195 precedent: a close-out blocker of #183 found while preparing the run, confirmed by Ben.
What's true today
WithEnroll(#151: the codes ledger — mint/list/revoke — and the install config, ADR 0054/0097) andWithEnrollPending(#184: the pending projection) are built and integration-tested, but neither is registered in the control plane's composition root. STATUS.md twice defers this to "the compose ticket's job" (the #128→#155 precedent) — this is that ticket, it had never been filed./enroll/*route 404s: no code can mint, no pending device can be listed. The dashboard's live device-add clients (#151/#184) point at nothing.What to build
Register both faces per the ADR 0107 whole-or-resting discipline: the whole composition serves them over the real enroll ledger with the real
EnrollConfig(community domain / release channel read from the config repo's vars, ADR 0054); the resting composition keeps the honest resting answers. Extend the composition seam tests to prove both branches.Acceptance criteria
Task manifest
Blocks
#183 — leg B·2 (no enrollment code can mint without it).
Done in
f57f673(on origin/main).Registered both enroll faces in the control planes composition root:
WithEnroll) and the pending strip (WithEnrollPending) over the ONE real*enroll.Ledger— the same instance the fleet-state projection and Overview already read (no second reader) — with a realEnrollConfig:community_domain= the gateway apex (/get, ADR 0054/0113),release_channel= a compiled-in generic Matou app channel (https://releases.matou.nz/app; the app is never community-specific, ADR 0054).restingEnrollreturns empty codes/pending reads and an honest config (no apex -> empty community domain), and fails loud on mint/revoke rather than fabricate a code no durable ledger holds. No route 404s.Acceptance:
TestComposeEnroll_WholeServesRealLedgerAndConfig.TestComposeEnroll_WholeListsRealPendingDevice.TestComposeEnroll_RestingAnswersHonestly.Evidence:
control-plane/cmd/control-plane/compose_enroll_test.go(composition seam over both branches, driven over HTTP), plus the wiring incompose.go/whole_composition.go/resting_composition.go/main.go.Unblocks #183 leg B.2.
NB: verified by careful review only — the Sandcastle sandbox still has no Go toolchain (issue #198), so
go build/vet/testcould not run here.document-archive-healthy: a REST delete only SOFT-deletes in Paperless — the check's own cleanup leaves its fixture in the trash, where it keeps its checksum and refuses every later consume as a duplicate while search reports the archive clear #1332