device-add: app-join-happy — Non-technical owner joins via the operator app #50
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#50
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 app doorway, for a device owner with no terminal, across Windows, Mac, and Linux. The owner enters the code on Join with a code (P3-S2) and sees what they're joining — the branded community, the role hint, the spec floor, the valid install modes for this OS, and the code's expiry (branding via the
brandkitseam). The app's first real act is installing the same standing agent as a persistent OS service (ADR 0053); from there every join screen renders the agent's state over its local Unix socket, so closing the app never stops the join — the machine's membership never depends on the app staying open.On This computer (P3-S3) a Windows or Mac owner is offered VM mode as the way their machine joins — no full install on these hosts — with consent stating the dedicated CPU/RAM/disk, sized by the role hint. A Linux owner reaches the install-mode screen (P3-S3L) where VM mode and full install are both offered, full install carrying the explicit wipe consent (ADR 0024). On VM-mode consent the agent creates and keeps a local NixOS VM on its bundled QEMU (KVM/WHPX/HVF acceleration), sized by the hint, registers it for autostart, and then pairs in one shot (ADR 0056) — the probe, consented mode, and SSH host key travelling together to Pending, the probe report exactly what the operator's pending card shows.
Notes: this join is consumed upstream by founding's manual stand-up paths (the S7b desktop-app hand-off). VM lifecycle rides the ADR 0056 VM-manager interface (native hypervisor stacks are a later swap behind it).
Acceptance criteria
Blocked by
Task manifest
clanpackage + fake adapter behind DDR 0010brandkitpackage + golden corpusDone — the app doorway's happy path (P3-S2 → P3-S4), the
joinorchestrator's app-path side, ADRs 0053/0056/0057/0024/0055. Commit69bebf9.What shipped (
internal/join/app.go+socket.go, extending #48's device-endjoinpackage):Prospect(resp)brands a valid RedeemResponse into the P3-S2 view: the branded community (via aBranderport over the brandkit seam), the role hint, the role's spec floor, the install modes valid for this host OS each with device-end consent copy, and the code's expiry.socket.go,Serve/ServeListenerover NDJSON): the standing agent serves the join, the app renders its state over the socket, and closing the app (dropping the connection) never stops the join — a reopened app re-reads the same Pending state. The realagentbinary gains ajoinsubcommand serving the socket (skeleton wiring over an in-process ledger + fakes, mirroring the helper'sclansubcommand).VMManager.Create, ADR 0056) sized by the hint, then pairs (an ordering test proves create is a precondition of pairing).Pair; the Pending view'sProbeis exactly the operator's pending card (one sharedenroll.RequestView.Probetype).The OS→modes split is the control plane's (
enrollledgerInstallModes(os)); the orchestrator renders what enroll returns and decides no OS policy of its own. VM sizing = the role's spec floor (a single source, so consent numbers and the spec gate cannot disagree).Evidence: 8 new
joinseam tests (ADR 0057) over the realenrollledger + clock with faked VM-manager/brandkit/host-prober, ininternal/join/app_test.go+socket_test.go(incl. the local-socket round-trip).go build/vet/gofmtclean; full suite +go test -race ./internal/joingreen.Out of scope (own slices): virt self-loop + spec-gate rejection (spec-gate-and-virt), full-install takeover-ready residue (full-install-takeover-ready), approve/enroll/land (approve-enroll-land).
seam), not workflow (ci) #1045seam), not workflow (ci) #1045