Finish the production Iroh transport rollout
Merged
AZ
4mo ago+6698+6698+0123456789012345678901234567890123456789-388-388-012345678901234567890123456789
Summary
- make authenticated Iroh the default cmux iOS transport with zero-touch same-account discovery
- keep Tailscale and other private networks as authenticated Iroh path hints, plus old-iOS-to-new-Mac compatibility
- add server-driven managed relay policy, custom relay preferences, and debug relay-only/direct-only modes
- harden endpoint binding, challenges, grants, relay credentials, direct UDP ports, reconnect lifecycle, and redacted diagnostics
- add a real isolated iOS release gate covering terminal, workspace, events, notifications, chat, and artifacts
Verification
- shared Iroh transport: 407 tests passed
- web trust and relay policy: 131 tests passed
- isolated iOS zero-touch reconnect: passed across a force relaunch without QR pairing
- release gate: Automatic, Relay Only, and Direct Only passed against staging with authenticated Iroh
- custom relay test harness: 46 transport, 10 macOS settings, and 8 isolated iOS tests passed
- final security pass: no high findings; legacy new-iOS-to-unchanged-old-Mac raw TCP stays fail-closed and shows the Mac-update migration message
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.
Summary by cubic
Make authenticated Iroh the default iOS transport with zero-touch same-account discovery. Adds managed/custom relay control, signed direct UDP ports, stronger lifecycle/diagnostics, and a simulator release gate.
-
New Features
- Default iOS Iroh transport; keep Tailscale/private networks as path hints.
- Server-driven relay policy plus per-account custom relays (unauthenticated, static token, endpoint‑bound); redacted relay details in diagnostics.
- Publish signed direct UDP ports in broker registration; prefer them over legacy TCP VPN ports.
- Privacy-safe diagnostics for session lifecycle and path selection with foreground ownership via
CmxTransportSessionPurpose. - Canonicalize UUID device IDs across
CMUXMobileCore, pairing, backup/restore, discovery, and runtime configs; paired‑Mac store v7 migrates and dedupes case‑only aliases. - Debug transport verification modes (automatic/relay‑only/direct‑only) exposed in iOS settings; simulator-only release gate in
CmuxMobileShellReleaseGateSupportand a GitHub workflow to validate control, terminal, workspace, events, notifications, chat, and artifacts.
-
Bug Fixes
- Hardened endpoint binding and relay readiness (wait-for-relay, bind credentials to active endpoints, NAT traversal gating); redacted error logs.
- Discovery outcomes classified (offline/rate-limited); do not reuse stale snapshots; scrub revoked direct ports.
- Race/stability fixes for admission, refresh, and reconnect; publish paths only after establishment; more deterministic capacity tests.
- CI/Deps: extend macOS compatibility timeouts and disable index store; add iroh release-gate workflow; bump
iroh-ffito1.0.2-cmux.3.
Summary by CodeRabbit
- New Features
- Added debug transport verification modes: Automatic, Relay Only, and Direct Only.
- Improved direct-network connectivity by sharing verified IPv4/IPv6 port information.
- Added privacy-safe transport session diagnostics and lifecycle reporting.
- Added an automated Iroh release-gate flow for validating mobile connectivity and core interactions.
- Bug Fixes
- Standardized UUID-based device identifiers while preserving legacy identifiers.
- Improved relay readiness handling, connection cleanup, discovery refresh results, and stale socket cleanup.
- Relay credentials are no longer issued for unbound endpoints.
- Documentation
- Added guidance for running transport behavior tests and updated relay architecture documentation.