Complete native Cloud authentication, credential persistence, and agent handoff
Project / Coordination
- Project board: elizaOS Launch QA (Project 12)
- Parent tracker or epic: #13406; related #13377, #14358, #15603
- Coordination Discussion: #14292
- Suggested lane tag: codex-ios-cloud-launch
Scope
Complete the first-party Cloud-only iOS launch contract as one integrated release lane: native Authorization Code + PKCE, Keychain delivery/ACK/recovery/revocation, deployed mobile-auth routes and registration preflight, valid AASA association, fail-closed onboarding recovery, and durable hosted-agent provisioning/backup/teardown behavior. Preserve browser, desktop, Android, and explicitly opted-in development runtime modes.
Acceptance Criteria
- Native store builds default to Cloud without exposing local/remote choices; explicit development builds retain supported overrides.
- Mobile authorization uses S256 PKCE, claimed HTTPS callback, inactive-until-ACK credentials, Keychain-only secret storage, exact recovery, and exact-key revocation.
- Staging and production mobile config routes return the registered first-party contract rather than router 404.
- AASA origin and Apple CDN serve the exact release app ID and
/auth/callbackwith the required headers; iOS claims onlyapplinks:eliza.appand does not grant unimplemented shared-web-credential trust. - Provisioning teardown and orphan recovery use durable, token-fenced cleanup leases and cannot release allocations before authoritative recount.
- Backup/restore paths enforce bounded materialization and metadata-first verification without worker heap exhaustion.
- Staging passes clean-install auth, provisioning, recovery, revocation, teardown, and a zero-restart soak before production rollout.
- Browser, desktop, and Android compatibility suites remain green.
Evidence Plan
- Screenshots or recording: attach reviewed iOS clean-install before/after screenshots, MP4 walkthrough, and app visual-audit output.
- Logs: attach sanitized Simulator network/native logs, staging API logs, provisioning-worker logs, and restart/memory observations.
- Real-LLM trajectories: N/A - this change does not alter prompts, model selection, providers, or agent action semantics.
- Domain artifacts: attach migration journal/execution proof, mobile grant/API-key lifecycle rows, cleanup outbox rows, and container teardown evidence.
- CI or local commands: attach package tests/typechecks, router/SDK audits, migration execution tests, app audit, native build, staging canary, and deployment preflight results.
Claim / Status Notes
The codex-ios-cloud-launch lane is consolidating an already-coordinated worktree, rebasing it onto current develop, and will publish a draft PR before staging deployment. Shared production levers remain untouched until staging gates pass.
The independently reviewed AASA prerequisite is draft PR #16512. Its production trust document stays outside the develop-published Pages tree, and webcredentials was removed because this launch flow implements an OAuth callback, not shared web credentials.
Source: elizaOS/eliza