Repository navigation
Description
Summary
Design the native Android client for ID as a product: a first-class client with its own identity custody, local/offline worlds, and the phone's capability-provider role — not a peripheral for driving other machines.
Motivation
#1831 (2026-10-28) is a proof of concept: an Android app that relays the phone's touch input into a live app running elsewhere, over a deliberately limited interface. It answers "can a phone drive a remote app?" — a real question, and its input-event model work stands. But it is scoped as a PoC and defines the phone as an input peripheral. Drew's 2026-11-04 direction names the Android app as its own design line: what ID is on a phone — the device most users will actually carry — is a different and larger question that no issue currently owns. #1831 becomes this design's remote-drive feature and its PoC precursor, not its definition.
Sketch
- Identity custody on-device: Ed25519 keys in Android Keystore / StrongBox where available; enrolment and recovery applying the design(id): identity, login & delegation — simplicity-first key custody, security-code recovery, and pseudo-login identities #5684 custody model (including its plainly-stated unrecoverable cases) to mobile realities — device loss, biometrics as unlock (not as identity), multi-device households.
- Offline worlds: a local journal on-device with sync on reconnect (the id-sync seams from the crate split, pkgs/id: split the monolith crate into sub-crates along module seams (prioritized by Drew 2026-11-01) #3447); the journal model itself is the conflict posture — no separate merge design until one is proven needed.
- Client shape: the shell contract on mobile — portable-screen presenter plus native surfaces where Android is genuinely better (notifications, share intents, widgets); presence and background-sync limits stated honestly against Android's battery rules.
- Capability-provider role: the phone as a design(id): client-side capability providers — one provider model for ESP32/MQTT, terminal, Bevy, smartphone, and web #5686 provider — sensors, location, camera, notifications — with Android's runtime-permission model mapped onto ID's grant model, actuation vs observation risk classes respected.
- Build shape: Rust core via the crate split's client-only variant; the shell in Kotlin/Compose vs shared Rust UI is an open decision for this design, informed by id: Phase 13 F13.6 native client shells on the shell contract #788's framework record rather than forking it.
Open questions
- Thin client, thick client, or per-world choice — and what decides?
- Distribution for a personal fleet: Play, sideload, or both — and what each does to the update story?
- How much of Proof-of-concept Android app + input interface extension (touch, mouse, hover) for relaying into live apps #1831's input-event model survives as remote-drive mode vs is subsumed by the shell contract?
- Push/presence without a central server: what wakes the app when a world changes?
Relations
Parent: epic #2056. Precursor: #1831 (PoC — input relay; this design supersedes its framing, not its event-model work). Relations: #5684 (identity custody/delegation), #5686 (capability providers — the phone as provider), #788 (shell contract + framework record), #3447 (client-only build variant), #5671 (transport fallback — mobile networks are the UDP-denied case in the wild). Filed in the 2026-11-04 gap pass (WS-F) per Drew's order.
Activity
developing-today commentedon Nov 5, 2026
CODE-1464
dezren39 commentedon Nov 5, 2026
Field survey filed: #5931 (capability-provider research widening, per Drew's 2026-11-04 ruling) covers the current option space relevant to this issue in §2 (smartphone/Android) — AppFunctions/'Android MCP' as an OS-owned declaration+discovery surface, classic intents/permissions, third-party phone-as-MCP-server precedent, on-device agent runtimes. It is an inventory, not a decision — the section ends with the open questions this design needs to answer.
dezren39 commentedon Nov 5, 2026
🤖 Agent note · done
dezren39 commentedon Nov 8, 2026
🤖 Agent note · triaged — real and current; converted to fix task 12783
Verdict: REAL and current — a design line whose named follow-up was never enqueued.
Verified fresh, 2026-11-07 (laptop primary clone, main 466f638):
Routing: converted to fix packet task 12783 (dedupe key repo-health:v1:fix:developing-today/code:issue:5780) — produce the design document in the repo doc/ convention and land it via PR: all five sketch sections (Keystore/StrongBox custody per the #5684 model, offline journal + sync via the #3447 seams, shell contract on mobile, phone as #5686 capability provider, Rust-core build shape) and decisions — or explicitly deferred decisions with the deciding evidence named — on the four open questions (thin vs thick client, distribution, #1831 event-model survival, push/presence without a central server). This issue stays open until that work lands — triage completion does not complete it.
developing-today commentedon Nov 8, 2026
Agent note — task 12783 handed off to opencode claimant by lane code-e
— repo-worker-code (lane code-e), 2026-11-08
145 remaining items
dezren39 commentedon Nov 9, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 10, 2026
🤖 Agent note · handed off to opencode claimant
dezren39 commentedon Nov 10, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 10, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 10, 2026
agent-note:v1
task: 12783
lane: code-o
stage: handed_off
state: execution lane assigned opencode (lane row 4558); handed off to the opencode claimant per runbook 1b. Fresh check 2026-11-10T02:18:19Z via gh: issue #5780 open, no hard-stop labels (held, user/owned, do-not-merge, do-not-auto-edit).
next: claimant launches the bound opencode session for task 12783 (issue #5780: Fix #5780: produce the native Android client design document (identity custody, ).
dezren39 commentedon Nov 10, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 10, 2026
state: picked_up
task: 12783
lane: code-b (direct, #8187)
issue: #5780
pr: #7826
Resumed task 12783 from pr_opened. Fresh verification 2026-11-10 (lane code-b): issue #5780 OPEN, no hard-stop labels; PR #7826 OPEN, MERGEABLE, head 5b1d422. The sole Codex P2 finding on PR #7826 (consumer grant denials scoped to the invocation) was fixed in 5b1d422 by task 14482 and dispositioned on the review thread. Follow-on implementation issue #7938 is filed and named in the design doc section 9. Basic-tier checks have been QUEUED since 2026-11-10T03:09Z (runner saturation; docs-only change, local link/diff checks clean) — per standing merge authority PRs do not wait for CI; CI runs on main. Proceeding to merge PR #7826, which closes this issue via its closing keyword.
Merge pull request #7826 from developing-today/queue/12783-5780-andro…
dezren39 commentedon Nov 10, 2026
state: done
task: 12783
lane: code-b (direct, #8187)
issue: #5780
pr: #7826
PR #7826 MERGED at 2026-11-10T19:45:17Z, merge commit faba602; this issue CLOSED by the PR closing keyword. The design document for the native Android client (custody, offline journal/sync, shell contract, phone-as-capability-provider, build shape; all four open questions decided) is landed in doc/. The sole Codex P2 finding was fixed at PR head 5b1d422 (task 14482) and dispositioned on its review thread before merge. Implementation follow-on: issue #7938 (task 14300). Queue/status/work labels cleaned; task 12783 completing as fixed_merged.