shell: codes-ledger-both-surfaces — one enrollment-codes ledger, two views #36
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.
Depends on
Reference
Matou/idss#36
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: #22 (shell).
What to build
The enrollment-codes ledger as it appears on both surfaces — the operator app (A4,
docs/ux/wireframes/shell/shell-a4-enrollment-codes-ledger.html) and the web dashboard (DF2,docs/ux/wireframes/shell/shell-df2-enrollment-codes-dashboard-ledger.html) — as one ledger read two ways. Each surface lists every code with its masked value, scope, status (active / used / expired / revoked), created-by attribution, and expiry, read throughenroll's Operator faceListCodeswithCodeView.CreatedBy. This is ADR 0097's one additiveenrollamendment: shell reads,enrollowns; A4 and DF2 are two views of the one ledger, not two stores. By the never-empty rule (DDR 0095), the ledger opens with founding's spent gateway code — the first node enrolled through the one mechanism (ADR 0028) — never a blank table.Shell never becomes a second minting path: "+ New code" begins device-add's in-flow generation (edge A4 → P2-S1 / DF2 → P2-S1) —
MintCodestays device-add's. "Revoke" on an active code runsenroll'sRevokeCode(the house-key discipline; edge A4 → A4 self-loop, ADR 0097). When a code's state changes, both windows reflect the oneenrollledger.Note: this slice carries the additive
enrollread (ADR 0097) —ListCodes+CodeView.CreatedBy, recorded indocs/seams/agent-control-plane.mdin the established additive style; nothing confirmed moves. Buildable against a fakedenrolladapter.Acceptance criteria
enroll's Operator-faceListCodeswithCodeView.CreatedBy(ADR 0097's one additiveenrollamendment); shell reads,enrollowns.enroll'sRevokeCoderuns (the house-key discipline; edge A4 → A4 self-loop, ADR 0097).enrollledger (A4 and DF2 are two views of one truth, not two stores).Blocked by
enrollseam (with the additiveListCodes+CreatedBy)Task manifest
enrollpackage + in-memory fakeDone in commit
044def2.The enrollment-codes ledger read onto both surfaces as one ledger, two views — the operator app's A4 (
app/src/components/shell/EnrollmentCodesScreen.vue) and the web dashboard's DF2 (dashboard/src/components/shell/EnrollmentCodesSurface.vue) — both mounting the SAME sharedCodesLedgerScreen.vueover the SAMECodesLedgerSource(the narrow view ofenroll's Operator face:ListCodeswithCodeView.CreatedBy+RevokeCode), in the UI kit atpackages/ui-kit/src/codesLedger.ts+.../components/CodesLedgerScreen.vue.Acceptance:
ListCodes+CreatedBy— shell reads,enrollowns. ✅enroll'sRevokeCode(A4 → A4 self-loop). ✅CodesLedgerSource, so a revoke through one is the same ledger the other re-reads. ✅Evidence: 19 new tests —
packages/ui-kit/tests/unit/codesLedger.test.ts(13, incl. one-ledger-two-views consistency + founding-only never-blank case),dashboard/tests/unit/enrollmentCodes.test.ts(3),app/tests/unit/enrollmentCodes.test.ts(3).vue-tsc+ eslint clean across ui-kit/dashboard/app. STATUS.md updated (header + milestone log). The additiveenrollread (ADR 0097) was already recorded indocs/seams/agent-control-plane.mdby #26; nothing confirmed moved.Out of scope and untouched: MintCode / code generation (device-add's), the
enrollseam's own truth, the Fleet list / app homes that route here.config_eval— the one-shot transport retry never fires and the operator is told to fix a flake that is fine #1272config_eval— the one-shot transport retry never fires and the operator is told to fix a flake that is fine #1272