founding enroll relay carrier: the SSH-relayed dial from the agent's join socket to the in-helper ledger (ADR 0043) — unblocks the drive's consent + pair legs #583
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.
Dependencies
No dependencies set.
Reference
Matou/idss#583
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?
Split from #581 (the agent-side founding-mode fix). #581 landed Part 1: on the founding path (no
OURCLOUD_COMMUNITY_ORIGIN) the agent no longer dies at construction —enrollTransportFor(agent/cmd/agent/wiring_prod.go) wires afoundingEnrollCP soagent joinserves the join socket and becomes the standing service (unblocks the drive'sagent-installservice-active bar). Every founding CP verb (redeem/pair/poll/report) now fails loud with the honest ADR 0043/0100 message when driven, naming this carrier as its own slice.What's left — the SSH-relayed dial (ADR 0043)
Per ADR 0043 the founding enroll face is the in-helper enroll ledger, reached from the box over SSH: "the helper reaches the device over SSH and relays the agent's redeem/pair calls through it (the agent serves its enrollment calls on a local Unix socket)." The pieces the #581 exploration confirmed already live:
newEnrollLedger()/foundingPorts()"enroll" port (app/helper/cmd/helper/wiring_prod.go:208,346), durable overenroll.json;internal/join/socket.go, served byagent join;foundingEnroll(#581), the fail-loud placeholder to REPLACE with the real relay-socket client.The missing piece is the SSH-relayed dial between them: a founding CP on the agent that speaks the enroll protocol over a local Unix socket, and a helper-side bridge that (over the SSH session the wizard's S4b captured — IP + access) forwards those redeem/pair calls to the in-helper ledger, whose resulting request record +
IdentityGrantthe seeded control plane inherits (ADR 0043 §Consequences).Acceptance (the phase-3 drive's
consent+pairlegs —journey.selfhosted.spec.ts)consent:ourcloud-agent enroll <code>answered over the SSH PTY printsconsent recordedandconnection request sent(redeem + pair reach the in-helper ledger).pair: the app renders[data-status="spec-gate-pass"]— the ledger holds the Pending request with the droplet's probed hardware.Notes / a design question the builder must settle first
The phase-3 install script (
bootstrap/cmd/bootstrap/installscript.go) currentlyexecsagent enroll <code>in the foreground (spec 2026-08-14 §Task 1), which blocks the drive's non-interactiveagent-installleg (sshDroplet, expects exit 0) — the drive re-attaches the terminal join separately at theconsentleg (sshDropletInteractive). Reconcile the "foreground enroll for a real operator" shape with the drive's install-then-reattach split as part of this carrier (a mode flag, or the install script installs the service only and the operator/helper drives enroll). This is the remaining judgement call the relay design turns on.Blocks the phase-3 standing drive #523 for the
consent/pairfrontier. Split from #581; advances #523.Closing as a duplicate of #582 — I filed this before discovering #581 had already landed (commit
4c72704) and had filed #582 for the identical relay-carrier follow-up (enrollwire-over-SSH device server on the in-helper ledger + app-side pairing observation). #582 is the more complete ticket (it carries the ADR 0152 reconciliation and the installScript/leg-separation ruling). Track the carrier there.