founding: identity-handoff-scrub — passkey enrolment, recovery kit, scrub, land Operator home #72
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
#77 founding: standup-rented — the folded rented-server checklist (shortest complete path)
Matou/idss
Reference
Matou/idss#72
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: #11 (founding).
What to build
The hand-off (P1-S12): first login, recovery, scrub, and landing. Seeding minted a single-use, short-TTL kanidm credential-enrolment token returned over the founding SSH connection only (ADR 0046); S12 opens the dashboard with it and the operator lands on kanidm's branded enrolment screen (brand name + mono logo) to register a passkey — no password ever exists. If the token expired because stand-up took days (a designed-for case), the app re-mints one through the same mechanism and the operator retries losing nothing. The operator key (mesh identity + SSH key, generated by the helper, registered in seeded config) authenticates the app for Tier-1; the passkey authenticates the person to the dashboard; each is revocable on its own surface without touching the other (ADR 0046). The recovery-kit prompt offers export/print, and after the scrub the kit is the only Tier-3 path (ADR 0044); declining completes founding anyway, with the community visibly holding no Tier-3 material until the dashboard re-prompt is accepted — an accepted, surfaced risk, never a reason to keep laptop copies. The scrub runs as a real, verifiable stand-up step: the laptop is left holding exactly the designed residue — repo replica, operator key, exported kit if any — and the founding state file is deleted (ADRs 0044/0050). The branded portal is live at the community's address (brand + service links only), and on exit the operator lands on Operator home (shell) with the gateway visible on the dashboard's fleet surface (name, role, health).
Runs on the
foundingorchestrator (ADR 0052). Notes: this slice seeds runtime data other features read — founder member row, auth-gate OIDC client, default-open matrix, kaitiaki group, alert contact, spent founding code, first operator key. Per the slice-map ruling (2026-07-25) these are data couplings, not build edges — no cross-feature blocking dependency is created by them.Acceptance criteria
Blocked by
Task manifest
Done in
dcbcc00(origin/main).The P1-S12 hand-off, scrub, and landing — founding's last slice, completing the P1 happy path end to end (W → S1…S12 → Operator home). Built at the ADR-0052
foundingorchestrator seam (internal/founding/handoff.go) with five ops resting at the newStandupHandOffstep, and shipped as the S12 screenFoundingHandOff.vue.Enrolmentseam (kanidm's native credential-reset flow) mints a single-use, short-TTL token;EnrolPasskeyopens the branded enrolment screen (brand name + mono logo) and registers a passkey — no password. An expired token (stand-up took days) is re-minted through the same mechanism and retried losslessly (FakeEnrolment.ExpireFirst= the fake clock).dashboard:operator-keysvskanidm:person) so neither revocation touches the other.SaveRecoveryKit/DeclineRecoveryKit— a saved kit is the only Tier-3 path after the scrub; declining completes founding anyway, surfacing the no-Tier-3-until-the-dashboard-re-prompt risk (never a reason to keep laptop copies).CompleteHandOffruns the scrub against a newLaptopseam as a real, verifiable step — asserts residue is exactly repo replica + operator key + exported-kit-if-any (ErrScrubResiduerefuses otherwise, nothing deleted), then deletes the founding state file via the newStore.Delete.Evidence:
internal/founding/handoff_test.go(stories 27–32 at the seam, incl. re-mint, residue-refusal, non-secret logging, and guard tests) andapp/tests/unit/foundingHandOff.test.ts(the S12 screen driven through the wizard). The S12 screen mounts after a live deploy via deploy-gateway's newfinish-setupaffordance →run-seed→begin-hand-off. No token value is ever persisted or logged (ADR 0051). STATUS.md updated (header + milestone log). Fullgo test ./...and all 179 vitest tests green.enroll-copy's ceiling to a measured rented copy — with #716's drain fix the shared 20mdefaultPhaseTimeoutnow CUTS a cold copy instead of hanging on it #717