device-add: cli-join-happy — Install command joins a stock Linux machine to Pending #49
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#49
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 CLI doorway, end to end, on a stock Linux machine. The device owner copy-pastes the one install command carrying the code; it fetches the agent from the community's own gateway at the fleet's pinned release (never upstream — S13 Q9), installs it as a persistent OS service, and starts the join with the embedded code. The command is a doorway, not a kept tool — nothing standing is left for an operator to drive (ADR 0028).
In the terminal (P2-S3) the owner meets the install-mode choice and consent — the consent that deliberately lives with the person at the machine (ADR 0024). Full install states plainly that the machine will be wiped at first deploy and requires explicit consent; VM mode states what it dedicates and keeps. Once consent is given, the agent pairs in one shot: the probe, the consented mode, and the machine's SSH host key travel together, the connection request advances to Pending, and the probe report the agent sends is exactly what the operator's pending card will show — device screen and dashboard card share one type and cannot disagree.
This is the
joinorchestrator's CLI entry (Go, in the agent, ADRs 0053/0057) driving theenrollseam through Redeem → consent → Pair → Pending, bringing the clan connection up via theclanseam.Acceptance criteria
Blocked by
Task manifest
clanpackage + fake adapter behind DDR 0010Done in commit
ead53ec(sandcastle: device-add:cli-join-happy #49).What shipped — the P2 CLI doorway end to end, at the ADR 0057 seam (real
enrollledger + clock; artifact serving, service install, VM manager, prober faked below):internal/join/cli.go:ArtifactSource(the gateway/getface, ADR 0054 — the doorway's ONLY source) +ServiceInstaller;InstallAgent/RunInstallCommandfetch the agent at the fleet's pinned release (never upstream — the seam test wires an upstream stand-in and asserts zero fetches), install it as a persistent OS service, and start the join with the embedded code. Residue: exactly one agent service, nothing operator-driveable left (ADR 0028).RunTerminalis P2-S3 built to the wireframe's copy: menu full [1] / VM [2] with the trade lines; full install states the first-deploy wipe plainly (Erases EVERYTHING… The takeover runs at first deploy) and requires typedWIPEconsent — anything else pairs nothing, changes nothing, and the code survives (ADR 0024); VM mode states what it dedicates (Dedicate to the community: CPUs [2] Memory [4 GB] Disk [40 GB], role-floor-sized) and what it keeps (keep this OS), creating + autostarting the guest before pairing (ADR 0056).enroll.ProbeReport, they cannot disagree.Evidence: 6 new seam tests in
internal/join/cli_test.go(green incl.-race; full Go suite green, gofmt/vet clean). The real agent binary gainsagent enroll [CODE]rendering the same terminal contract (skeleton in-process wiring mirroringagent join); both consent paths exercised against the built binary.Notes: no clan verbs run in this slice — the clan connection coming up post-approval is approve-enroll-land's (stories 17–20, out of scope here); the real
/getHTTP round-trip stays with the non-gating lab smoke per the spec's testing decisions. STATUS.md updated in the same commit.