enroll: approve-decline-live — the human gate's acts over HTTP and the device-add surfaces mounted #206
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#206
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 (P2-S4/S5 — approve-enroll-land, the human gate). 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
What to build
approvedhonestly (approved ≠ enrolled — the honest split), a decline carries its reason.Acceptance criteria
Task manifest
Blocked by
Blocks
#183 — leg B·2 ("both approved" happens here).
Ruling taken (Ben, 2026-07-30): the device-add surfaces mount on the Fleet tab — the Fleet drill-in option. Recorded as DDR 0109 (
docs/adr/0109-design-device-add-mounts-fleet.md, commitfcb3ccc).This confirms the design as drawn:
p2-device-add-cli.mermaidalready names S1 "Fleet → Add device", and DDR 0093/0101 §1 already make the Fleet tab the home of device-lifecycle standing surfaces. Settings rejected (operational act, not configuration); a new tab barred (ADR 0094's closed set). No flow or wireframe amendment needed.The
needs_human_decisionin the manifest is resolved — this ticket is now pure wiring (endpoints for approve/decline + mount the built #151 surfaces at their drawn home). Re-labelledready-for-agent; still blocked by #200 via the native dependency.Done — landed on
origin/mainasb74049e(sandcastle: enroll:approve-decline-live #206).What shipped:
POST /api/v1/enroll/pending/{id}/approveand.../declineproject over the real ledger's Operator verbs (controlapi.EnrollActsService+WithEnrollPendingActs), no seam change. Approve mints the grant and spends the code, advancing the request to Approved (joining), never straight to Enrolled (the honest split, story 20); Decline records the reason on theClosure(ADR 0097). The pending strip read (#184) broadens to{pending, approved}so the approved card stays visible as joining. Wired to the one enroll ledger in the whole composition; fail-loud at rest.enrollClient.ts) become realpostEnrollApprove/postEnrollDeclinePOSTs. Approve honestly returns 503 where no community CA is wired (enroll.ErrNoCA, ADR 0111 — wiring the CA into production is #210's separate follow-up).FleetSurfaceopensDeviceAddSurface/EnrollmentCodesSurfacein place from the DF list's "+ Add device" / "Enrollment codes", and "+ New code" in the ledger switches to mint over the same mount — mint → code → call-in runs end-to-end from Fleet.Evidence:
internal/controlapi/enroll_integration_test.go(grown over the two acts: approve advances / decline records reason / no-CA 503 / terminal 409);control-plane/cmd/control-plane/compose_enroll_test.go(TestComposeEnroll_WholeActsOverRealLedger+ resting fail-loud);dashboard/tests/unit/pendingActsLive.test.ts(live-HTTP vitest driving approve/decline through the strip) +fleet.test.ts(Fleet-tab mount tests). OpenAPI spec + generated client regenerated (ADR 0037). Dashboard suite 697 green; Go seam verified by CI (no local Go toolchain, #198). Unblocks #183 leg B·2 (both approved). STATUS.md updated (header + milestone log).