device-add: mint-code — Mint an enrollment code from Fleet → Add device #40
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#40
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: #13 (device-add).
What to build
The operator's entry point for growing the fleet. From the Fleet surface the operator chooses Add device (P2-S1) and both doorways — the CLI path and the app path — are offered from one place, each issuing the same generated enrollment code: short, human-typeable, single-use, expiring (7 days by default), revocable. The operator picks an intended-role hint (default helper, ADR 0055) that drives only the device-end spec-gate floor and VM-mode guest sizing — never a role assignment, which happens later at provisioning (ADR 0015).
The code screen (P2-S2) then shows the code, its expiry, a revoke affordance, and the one install command — a curl of the community's own gateway (
https://<community-domain>/get) carrying the code, never a Matou-hosted URL (ADR 0054). For the app path the operator instead shares a download link or QR (P3-S1) pointing at Matou's release channel — the operator app is generic and the community only appears after the code is entered. The code screen is a live query: when the device calls in it updates itself without a reload, and leaving the page loses nothing.Minting is the
enrollseam's Operator faceMintCodeverb (intended role + TTL) over the code ledger the seam hides — the additive operator-face amendment from the device-add grill (2026-07-23).Acceptance criteria
https://<community-domain>/get) with the code as its argument (ADR 0054) — no Matou-hosted URL.Blocked by
Task manifest
enrollpackage + in-memory fakeDone in commit
4813eb0(branchsandcastle/worker/20260725-101308-03a716).The operator's Add-device entry point built over
enroll's Operator faceMintCode— the one minting path (ADR 0028/0055).DeviceAddSurfacecomposes three screens indashboard/src/components/device-add/, reading the seam through a narrowDeviceAddSource+FakeDeviceAddSource(in-memory code ledger + a controllable call-in signal). No Go change — MintCode's helper-default / 7-day-TTL / hint→spec-floor+VM-sizing / revocable semantics are the #26 enroll seam's, already tested there.Acceptance:
AddDeviceScreenoffers both doorways (Via CLI + Via the app) from one place; each issues the same generated code (short, single-use, expiring, revocable)./getwith the code (ADR 0054), no Matou URL; the code screen is a live query — the call-in checkpoint flips without a reload and leaving loses nothing (the code stays durable in the ledger).ViaTheAppScreendownload links + QR point at Matou's release channel (ADR 0054), never the community domain.Evidence:
dashboard/tests/unit/deviceAdd.test.ts(13 tests overFakeDeviceAddSource, one per acceptance clause). Full dashboard suite: 69 tests pass,vue-tsc+ eslint clean. STATUS.md +docs/slices/device-add.yaml(mint-codestatus: done) updated in the same commit.Out of scope (own slices): revocation lifecycle + error taxonomy (code-lifecycle-and-errors'), the standing enrollment-codes ledger UI (shell's #36), role/service assignment (provisioning's), and the device-end
joinorchestrator.