Repository navigation
Description
Motivation
The current first connection requires users to understand extras, device identity, login, enrollment operation UUIDs, target bindings, policy JSON, receiver startup, and pairing. Offer an explicit guided flow that exposes decisions, not internal plumbing.
Alternatives considered
- Keep the existing manual CLI for automation and advanced users.
- Bundling Relay dependencies into every default installation would affect lightweight local/SSH users and Python compatibility; do not make that an implicit decision.
- Reuse existing invitation-file pairing initially; short code/link pairing is a separate protocol work item.
- fix(install): respect Claude/Codex skill paths and separately managed installs #187's installation-manager/skill-path work and fix(install): preserve the previous standalone on interrupted installation #204's atomic installer protection must be preserved, not duplicated.
Proposed behaviour
A tentative session-peer setup (final command name subject to design review) guides the user through:
- Choose local/SSH-only or Relay-enabled use. Official installation guidance/frontends offer the same explicit choice so users need not memorize the extras syntax.
- Check Python/runtime capabilities and the current installation manager. Explain the exact dependency action; any installation requires explicit consent and must retain the chosen manager.
- Browser login or headless code approval, device naming, and enrollment.
- Discover and select the intended currently usable Claude/Codex/other supported target, then confirm its identity and any required executable path.
- Select the peer and least-privilege capabilities; preview the generated policy and ask before applying it.
- Start or explain how to start the receiver, complete existing pairing, and perform a metadata/probe-only readiness check. A real test message needs explicit consent.
- Explain how to stop the receiver, recover from login expiration, and locate the state/policy safely.
Generate and durably retain operation UUIDs where the existing API requires them; interrupted steps must reconcile the same operation rather than blindly create another mutation.
Acceptance criteria
- A clean supported environment can complete setup without hand-writing policy JSON or manually generating enrollment UUIDs.
- CLI-only and Relay-enabled installation paths are both documented and tested; missing Node.js is not made a prerequisite for the Python Relay workflow.
- Existing manager, state, keys, peers, policies, and live services are detected and preserved; no automatic reinitialization, policy broadening, or overwrite.
- Generated permissions allow only explicitly selected peers, operations, and target bindings; secrets/state remain private (0700/0600 as appropriate).
- Headless/noninteractive users retain a supported manual workflow; cancellation and interrupted enrollment are tested.
- Background service installation/autostart, when offered, is a separate explicit opt-in with a stop/uninstall path.
- No permission bypass, auto-approval of native agents, automatic package-manager switch, or resend of uncertain messages.
- Tests cover absent runtime/extras, expired login, duplicate/stale target selection, denied permissions, cancelled setup, and successful readiness checks.
- Four-language documentation separates package, skill/plugin, and hosted-service responsibilities and makes no availability guarantee.
Scope
A v1.1.0 user-experience feature, not part of the v1.0.2 stability patch. Runtime installation policy and final command interface require design review; this issue does not approve deploying changes to the public Relay.
Activity
abruption commentedon Oct 9, 2026
Final acceptance — 2026-10-09: closing as completed for the documented v1.1.0 guided setup scope, implemented by #289.
The local/SSH/optional Unix Relay choices retain original-manager guidance and separate explicit consent for mutations. Tagged core/Relay setup tests cover least-privilege policy preview/exclusive apply, stale targets, private retained enrollment UUID/payload and receipt reconciliation after a lost response, cancellation, missing capabilities and loopback invitation/TLS pair/probe/list with a fake native endpoint. Four-locale guidance covers login expiry and safe resume without new intent.
The receiver is foreground-only; no service/autostart installation is offered, so the original conditional autostart criterion does not imply that such a feature shipped. Optional Relay requires Unix/Python 3.11+ extras, not Node.js. Readiness is metadata/probe evidence, not ACK. Real-host SSH, public Control browser/headless approval, Windows native Relay, real agent delivery and production-service acceptance are not claimed. Existing arbitrary service discovery remains explicitly incomplete.
Release evidence: v1.1.0, source
8ca77cf31254c8287a2593fe484bb30a7dba2727; exact integrated-main CI and PyPI publication/verification succeeded. Final acceptance rechecked tagged code/tests/docs and merged PR evidence; this final accounting did not rerun tests or perform new live messages, native wake, installations or operations.