[T3-OMB] P0: Lock ADR (T3 replaces Orca; T3 mobile + OMB panel; min surfaces) + interface contract #15

Open
opened 2026-11-01 21:07:39 +01:00 by Grok · 2 comments
Contributor

Plan correction (2026-11-01, phone shell): The phone shell is T3 Code mobile (kept as-is, user likes it), extended with an OMB personas chat — NOT a native OMB/MausBot companion app as primary. P0 research gate #17 decides how (A upstream plugin on mobile / B first-party or fork Personas tab / C MausBot companion = fallback only). #26 ships OMB personas inside T3 mobile after #17 decides; #27 = same surface on T3 desktop/web. Still holds: T3 replaces Orca; Mattermost off critical path. Where text below says "phone OMB voice-first app", read "OMB personas chat inside T3 mobile". Spec Page: https://cursor.com/canvas/store-4873b256-5720-4e4c-a921-b29ba11d3e02/4a1423dc-1cd5-4ce2-b54f-2c0fd46574be

Plan correction (UX + min surface, 2026-11-01): Phone = OpenMausBot, voice-first, to manage projects/agents; desktop = T3 Code as the primary session UI. Goal: unify Hermes-like simple chat with direct access to the same T3 work (fixes the Hermes clunk of chatting with no access to real work). Minimum services: OMB + T3 + Forgejo + Tailscale; Mattermost and similar are off the critical path (tokens may stay parked). T3 still replaces Orca on orchestra/braiinschestra. #26 = phone voice-first OMB path (product); #27 = optional T3 omb-chat plugin (secondary). See the revised spec Page and milestone 18.

Spec Page: https://cursor.com/canvas/store-4873b256-5720-4e4c-a921-b29ba11d3e02/4a1423dc-1cd5-4ce2-b54f-2c0fd46574be · Milestone: https://git.bitp.cz/donach/openmausbot/milestone/18

Context

The feature spans two products (OMB = persona plane, T3 Code = session plane). Claude needs a single in-repo source of truth before writing code.

Architecture (normative): Persona plane = OMB (Grok Bot–style persona chats, routines, forgejo-mcp, approvals/widgets; primary user surface = OMB mobile, voice-first; Mattermost-class chat is optional/off critical path). Session plane = T3 Code (projects, worktrees, coding threads, diffs, commit/PR) running as the primary agent runtime on hosts orchestra and braiinschestra — T3 replaces Orca as the main runtime driving agents (Orca WSS / orca CLI is not the agent path after cutover). Engine plane = CLIs under T3 (OpenCode/Claude/Codex/…). OMB controls T3 over T3's own API/RPC/MCP; the user opens the same sessions directly in the T3 desktop UI (primary on desktop). OMB bots are never registered as T3 provider drivers.

Scope

  • ADR states normatively that T3 Code replaces Orca as the main agent runtime on orchestra + braiinschestra, incl. cutover and Orca retirement phases.
  • Add docs/t3-omb/ADR-001-bidirectional-control.md capturing layers, control flows, non-goals, phases (copy from the spec Page, adapt to repo conventions).
  • Add docs/t3-omb/glossary.md: environment, project, thread, task, persona, owner, approval gate.
  • Record the decision table for auth (filled in by P0 inventory issues) and keep it updated.

Out of scope

  • Any product code.
  • Changes in upstream pingdotgg/t3code.

Acceptance criteria

  • ADR explicitly states T3 replaces Orca as main agent runtime; Orca is listed as legacy/retiring, not a layer.
  • ADR merged on main with sections: Goals, Non-goals, Layers, Control flows (OMB→T3, User→T3, optional T3→OMB plugin), Phases P0–P6, Risks.
  • Non-goals explicitly list: no OMB-as-T3-provider, no public harness exposure, no Mattermost-class service on the critical path.
  • ADR records minimum service set (OMB + T3 + Forgejo + Tailscale) and UX split: phone = OMB voice-first, desktop = T3 Code.
  • Glossary maps OMB bot id ↔ T3 project namespace terminology.
  • Links to every issue in this milestone.

Suggested approach

Docs-only PR. Keep ADR short (<300 lines); link to inventories produced by P0 issues instead of duplicating.

Dependencies

  • None

Test plan

  • Markdown lint / docs build passes (if docs site builds from docs/).

Handoff for Claude

Do not invent APIs here; mark unknowns as TBD (see #16 / #17).

  • Do not register OMB bots as T3 providers. Do not expose harness :8799 publicly. No secrets in commits, logs, or PR text.
  • Open PRs against main with label t3-omb, reference this issue (Closes #N), and tick acceptance criteria in the PR description for dual review.
> **Plan correction (2026-11-01, phone shell):** The phone shell is **T3 Code mobile** (kept as-is, user likes it), **extended with an OMB personas chat** — NOT a native OMB/MausBot companion app as primary. P0 research gate **#17** decides how (A upstream plugin on mobile / B first-party or fork Personas tab / C MausBot companion = fallback only). **#26** ships OMB personas inside T3 mobile after #17 decides; **#27** = same surface on T3 desktop/web. Still holds: **T3 replaces Orca**; **Mattermost off critical path**. Where text below says "phone OMB voice-first app", read "OMB personas chat inside T3 mobile". Spec Page: https://cursor.com/canvas/store-4873b256-5720-4e4c-a921-b29ba11d3e02/4a1423dc-1cd5-4ce2-b54f-2c0fd46574be > **Plan correction (UX + min surface, 2026-11-01):** **Phone** = OpenMausBot, voice-first, to manage projects/agents; **desktop** = T3 Code as the primary session UI. Goal: unify Hermes-like simple chat with **direct** access to the same T3 work (fixes the Hermes clunk of chatting with no access to real work). **Minimum services:** OMB + T3 + Forgejo + Tailscale; Mattermost and similar are **off the critical path** (tokens may stay parked). T3 still **replaces Orca** on orchestra/braiinschestra. #26 = phone voice-first OMB path (product); #27 = optional T3 `omb-chat` plugin (secondary). See the [revised spec Page](https://cursor.com/canvas/store-4873b256-5720-4e4c-a921-b29ba11d3e02/4a1423dc-1cd5-4ce2-b54f-2c0fd46574be) and [milestone 18](https://git.bitp.cz/donach/openmausbot/milestone/18). > Spec Page: https://cursor.com/canvas/store-4873b256-5720-4e4c-a921-b29ba11d3e02/4a1423dc-1cd5-4ce2-b54f-2c0fd46574be · Milestone: https://git.bitp.cz/donach/openmausbot/milestone/18 ## Context The feature spans two products (OMB = persona plane, T3 Code = session plane). Claude needs a single in-repo source of truth before writing code. Architecture (normative): **Persona plane = OMB** (Grok Bot–style persona chats, routines, forgejo-mcp, approvals/widgets; primary user surface = OMB mobile, voice-first; Mattermost-class chat is optional/off critical path). **Session plane = T3 Code** (projects, worktrees, coding threads, diffs, commit/PR) running as the **primary agent runtime** on hosts **orchestra** and **braiinschestra** — T3 **replaces Orca** as the main runtime driving agents (Orca WSS / `orca` CLI is not the agent path after cutover). **Engine plane** = CLIs under T3 (OpenCode/Claude/Codex/…). OMB controls T3 over T3's own API/RPC/MCP; the user opens the same sessions directly in the T3 desktop UI (primary on desktop). OMB bots are **never** registered as T3 provider drivers. ## Scope - ADR states normatively that **T3 Code replaces Orca as the main agent runtime** on orchestra + braiinschestra, incl. cutover and Orca retirement phases. - Add `docs/t3-omb/ADR-001-bidirectional-control.md` capturing layers, control flows, non-goals, phases (copy from the spec Page, adapt to repo conventions). - Add `docs/t3-omb/glossary.md`: environment, project, thread, task, persona, owner, approval gate. - Record the decision table for auth (filled in by P0 inventory issues) and keep it updated. ## Out of scope - Any product code. - Changes in upstream pingdotgg/t3code. ## Acceptance criteria - [ ] ADR explicitly states T3 replaces Orca as main agent runtime; Orca is listed as legacy/retiring, not a layer. - [ ] ADR merged on `main` with sections: Goals, Non-goals, Layers, Control flows (OMB→T3, User→T3, optional T3→OMB plugin), Phases P0–P6, Risks. - [ ] Non-goals explicitly list: no OMB-as-T3-provider, no public harness exposure, no Mattermost-class service on the critical path. - [ ] ADR records minimum service set (OMB + T3 + Forgejo + Tailscale) and UX split: phone = OMB voice-first, desktop = T3 Code. - [ ] Glossary maps OMB bot id ↔ T3 project namespace terminology. - [ ] Links to every issue in this milestone. ## Suggested approach Docs-only PR. Keep ADR short (<300 lines); link to inventories produced by P0 issues instead of duplicating. ## Dependencies - None ## Test plan - Markdown lint / docs build passes (if docs site builds from `docs/`). ## Handoff for Claude Do not invent APIs here; mark unknowns as `TBD (see #16 / #17)`. - Do not register OMB bots as T3 providers. Do not expose harness :8799 publicly. No secrets in commits, logs, or PR text. - Open PRs against `main` with label `t3-omb`, reference this issue (`Closes #N`), and tick acceptance criteria in the PR description for dual review.
Grok changed title from [T3-OMB] P0: Lock architecture ADR + interface contract doc in repo to [T3-OMB] P0: Lock architecture ADR (T3 replaces Orca) + interface contract doc in repo 2026-11-01 21:13:53 +01:00
Grok changed title from [T3-OMB] P0: Lock architecture ADR (T3 replaces Orca) + interface contract doc in repo to [T3-OMB] P0: Lock ADR (T3 replaces Orca; min surfaces; phone/desktop UX) + interface contract 2026-11-01 21:18:37 +01:00
Grok changed title from [T3-OMB] P0: Lock ADR (T3 replaces Orca; min surfaces; phone/desktop UX) + interface contract to [T3-OMB] P0: Lock ADR (T3 replaces Orca; T3 mobile + OMB panel; min surfaces) + interface contract 2026-11-01 21:27:12 +01:00
Author
Contributor

ADR note: #17 decided B (2026-11-01, D.H.)

  • Chosen: B. T3 mobile gets a first-party/fork Personas screen: a route in apps/mobile/src/Stack.tsx plus a Personas screen. It is carried as a fork patch until upstream accepts it, and is shaped so it can go upstream as a generic "external chat" feature.
  • Rejected / deferred: A (runtime plugin on mobile) is not possible because upstream has no mobile PluginHost (#2979 closed unmerged; host #16047 closed 2026-10-27 with "let us handle this"; #16053 plugin views are web/desktop only). A′ (OMB MCP App in a T3 thread) is an optional later spike. C (MausBot companion) is fallback only, not primary.
  • Transport/auth: the Personas screen talks to OMB only through the companion :8810 over Tailscale with a scoped token. The harness :8799 stays on loopback. OMB→T3 control goes through the T3 environment MCP (/mcp, OAuth).
  • Voice (iOS): reuse T3 native STT. That means ComposerEditor + useVoiceInputController with its own ownerKey, and native/voiceTranscription.ios.ts (on-device Apple, iOS 26+). There is no separate OMB voice stack on iOS.
  • Voice (Android): deferred to its own spike (S6), direction set. Study and reuse Orca's offline STT: the phone captures audio and a host-side sherpa-onnx engine transcribes it (Parakeet TDT v3 int8). Evidence is below.
  • Spoken replies (TTS): still TBD. T3 has none.
  • Evidence: #17 research #17 (comment)

Android voice: study and reuse Orca's offline approach (D.H., 2026-11-01). Upstream stablyai/orca was checked on 2026-11-01. Orca's phone app does not run the model on the phone. It records audio on the phone and sends it to the paired Orca host, which transcribes it offline with a local model.

  • Phone side: mobile/src/hooks/use-mobile-dictation.ts calls startMobileDictationDesktopSession, and audio is captured by @orca/expo-two-way-audio (mobile/packages/expo-two-way-audio, which uses Android AudioRecord). The model picker and download controls live in mobile/app/voice-settings.tsx and mobile/src/dictation/mobile-dictation-setup.ts, using the RPCs speech.models.list, speech.models.download and speech.dictation.setup.
  • Host side: src/main/speech/ (stt-worker.ts, stt-service.ts, model-manager.ts, model-catalog.ts) runs a sherpa-onnx worker. The recommended model is parakeet-tdt-0.6b-v3-int8, which covers 25 European languages including Czech and adds punctuation. Others include streaming Zipformer, Whisper Tiny and SenseVoice. Models are downloaded with a SHA-256 check.
  • For B: iOS keeps T3 native STT (iOS 26+). On Android, the Personas screen captures 16 kHz PCM and streams it over Tailscale to a host-side sherpa-onnx STT, either next to the OMB companion (:8810) or on orchestra. Transcribing on the phone itself with sherpa-onnx's Android build is the alternative. This is spike S6 (Android STT). There is no cloud STT and no separate OMB voice stack on iOS.
### ADR note: #17 decided **B** (2026-11-01, D.H.) - **Chosen:** B. T3 mobile gets a first-party/fork **Personas screen**: a route in `apps/mobile/src/Stack.tsx` plus a Personas screen. It is carried as a fork patch until upstream accepts it, and is shaped so it can go upstream as a generic "external chat" feature. - **Rejected / deferred:** A (runtime plugin on mobile) is not possible because upstream has no mobile PluginHost (#2979 closed unmerged; host #16047 closed 2026-10-27 with "let us handle this"; #16053 plugin views are web/desktop only). A′ (OMB MCP App in a T3 thread) is an optional later spike. C (MausBot companion) is **fallback only, not primary**. - **Transport/auth:** the Personas screen talks to OMB only through the companion **:8810** over Tailscale with a scoped token. The harness :8799 stays on loopback. OMB→T3 control goes through the T3 environment MCP (`/mcp`, OAuth). - **Voice (iOS):** reuse T3 native STT. That means `ComposerEditor` + `useVoiceInputController` with its own `ownerKey`, and `native/voiceTranscription.ios.ts` (on-device Apple, **iOS 26+**). There is no separate OMB voice stack on iOS. - **Voice (Android): deferred to its own spike (S6), direction set.** Study and reuse Orca's offline STT: the phone captures audio and a host-side sherpa-onnx engine transcribes it (Parakeet TDT v3 int8). Evidence is below. - **Spoken replies (TTS):** still TBD. T3 has none. - **Evidence:** #17 research https://git.bitp.cz/donach/openmausbot/issues/17#issuecomment-21708 **Android voice: study and reuse Orca's offline approach (D.H., 2026-11-01).** Upstream stablyai/orca was checked on 2026-11-01. Orca's phone app does **not** run the model on the phone. It records audio on the phone and sends it to the paired Orca host, which transcribes it offline with a local model. - **Phone side:** `mobile/src/hooks/use-mobile-dictation.ts` calls `startMobileDictationDesktopSession`, and audio is captured by `@orca/expo-two-way-audio` (`mobile/packages/expo-two-way-audio`, which uses Android AudioRecord). The model picker and download controls live in `mobile/app/voice-settings.tsx` and `mobile/src/dictation/mobile-dictation-setup.ts`, using the RPCs `speech.models.list`, `speech.models.download` and `speech.dictation.setup`. - **Host side:** `src/main/speech/` (`stt-worker.ts`, `stt-service.ts`, `model-manager.ts`, `model-catalog.ts`) runs a **sherpa-onnx** worker. The recommended model is **`parakeet-tdt-0.6b-v3-int8`**, which covers 25 European languages including Czech and adds punctuation. Others include streaming Zipformer, Whisper Tiny and SenseVoice. Models are downloaded with a SHA-256 check. - **For B:** iOS keeps T3 native STT (iOS 26+). On Android, the Personas screen captures 16 kHz PCM and streams it over Tailscale to a host-side sherpa-onnx STT, either next to the OMB companion (:8810) or on orchestra. Transcribing on the phone itself with sherpa-onnx's Android build is the alternative. This is spike **S6** (Android STT). There is no cloud STT and no separate OMB voice stack on iOS.
Author
Contributor

First delivery after ADR B → #31 (vertical slice: Personas screen → OMB streamed reply → one T3 thread, on T3 mobile fork). Owner: @claude.
Scope is deliberately minimal. Desktop parity, E2E PR flow, hardening, Android STT (S6) and TTS are deferred until the slice works.

**First delivery after ADR B → #31** (vertical slice: Personas screen → OMB streamed reply → one T3 thread, on T3 mobile fork). Owner: @claude. Scope is deliberately minimal. Desktop parity, E2E PR flow, hardening, Android STT (S6) and TTS are deferred until the slice works.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
donach/openmausbot#15
No description provided.