[T3-OMB] P4: Ship OMB personas chat inside T3 mobile (path from #17) #26

Open
opened 2026-11-01 21:07:48 +01:00 by Grok · 1 comment
Contributor

Path = B (locked 2026-11-01, D.H., via #17). This ships as a first-party/fork Personas route in T3 mobile, not as an OMB/MausBot app and not as a plugin. Where the older text below says "OMB mobile", read "the Personas route in T3 mobile". The new section "Acceptance criteria — path B" at the end replaces the voice criterion in the old list.

D.H. direction (2026-11-01, voice): Voice in the OMB personas chat = reuse T3 Code mobile's native voice input (apps/mobile/src/features/voice-input/useVoiceInputController.ts on the panel composer). No separate OMB voice stack. Where the scope below says "OMB mobile voice-first flow", read: T3 native dictation → OMB persona via companion. UI shell path comes from #17. Current research recommendation is B (Personas route in T3 mobile), pending D.H. review: #17 (comment). Note: T3 native STT is iOS 26+ only and has no TTS. A spoken-reply acceptance criterion needs a decision in the final plan.

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

Product path (primary): D. H. uses OMB on the phone, mainly by voice, to talk to personas that create/steer their own T3 projects and threads — Hermes-like simple chat but with direct access to the real T3 work. The companion API below also serves the optional T3 plugin (#27), without exposing the harness.

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

  • OMB mobile voice-first flow: speak a request → persona → T3 project/thread action (via #21/#22 tools) → spoken/short status reply; approvals answerable on phone.
  • Deep link from phone reply to the same T3 thread for desktop follow-up.
  • Add/confirm companion-sidecar allowlisted endpoints: list personas, list conversations, send message, stream reply events, answer approval.
  • Scoped token type t3-plugin that only allows those endpoints; issuance via companion control (loopback) / CLI pair flow.
  • CORS/origin rules suitable for a T3 plugin origin.

Out of scope

  • The T3 plugin itself (#27, optional/secondary).
  • Mattermost or other extra chat services.

Acceptance criteria

  • From phone, by voice, user can ask a persona to start/steer a T3 thread and hear/read status; approval gate works on phone.
  • Endpoints reachable only through companion (:8810) with a scoped token; harness stays loopback.
  • Token revocation works immediately (test).
  • Streaming replies work over the companion path.
  • Security notes added to SECURITY.md or docs/t3-omb/.

Suggested approach

Extend companion/ allowlist; reuse server/cli-pair.ts patterns.

Dependencies

Test plan

  • Unit + e2e tests through companion; negative tests for out-of-scope endpoints.

Handoff for Claude

No new public listeners.

  • 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.

Acceptance criteria — path B (2026-11-01)

  • A Personas route is registered in apps/mobile/src/Stack.tsx and reachable from T3 mobile navigation. It is carried as an isolated fork patch (a small diff with a documented rebase procedure).
  • The Personas screen reuses ComposerEditor for input and does not fork it.
  • Voice on iOS 26+ reuses useVoiceInputController (own ownerKey, no collision with thread composers, one global mic session). There is no OMB voice stack.
  • The screen lists personas and conversations, sends messages, streams replies and answers approvals via the OMB companion :8810 over Tailscale with a scoped token. The harness stays on loopback.
  • Persona replies that reference a T3 thread deep-link to that thread in T3 mobile and desktop.
  • A fork build installs on D.H.'s phone (Personal Team or EAS preview). The build steps are documented.
  • Spoken replies (TTS): TBD. T3 has no TTS. This is not an acceptance gate until a decision is made.
  • Android mic: deferred. T3 native STT is iOS-only, and on Android the mic is hidden or disabled. Follow-up spike S6: study and reuse Orca's offline STT (phone captures 16 kHz PCM → host-side sherpa-onnx, Parakeet TDT v3 int8; ref stablyai/orca mobile/src/hooks/use-mobile-dictation.ts, src/main/speech/).
> **Path = B (locked 2026-11-01, D.H., via #17).** This ships as a first-party/fork Personas route in T3 mobile, not as an OMB/MausBot app and not as a plugin. Where the older text below says "OMB mobile", read "the Personas route in T3 mobile". The new section "Acceptance criteria — path B" at the end replaces the voice criterion in the old list. > **D.H. direction (2026-11-01, voice):** Voice in the OMB personas chat = **reuse T3 Code mobile's native voice input** (`apps/mobile/src/features/voice-input/useVoiceInputController.ts` on the panel composer). **No separate OMB voice stack.** Where the scope below says "OMB mobile voice-first flow", read: T3 native dictation → OMB persona via companion. UI shell path comes from #17. Current research recommendation is **B** (Personas route in T3 mobile), pending D.H. review: https://git.bitp.cz/donach/openmausbot/issues/17#issuecomment-21708. Note: T3 native STT is iOS 26+ only and has no TTS. A spoken-reply acceptance criterion needs a decision in the final plan. > **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 **Product path (primary):** D. H. uses OMB on the phone, mainly by voice, to talk to personas that create/steer their own T3 projects and threads — Hermes-like simple chat but with direct access to the real T3 work. The companion API below also serves the optional T3 plugin (#27), without exposing the harness. 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 - OMB mobile voice-first flow: speak a request → persona → T3 project/thread action (via #21/#22 tools) → spoken/short status reply; approvals answerable on phone. - Deep link from phone reply to the same T3 thread for desktop follow-up. - Add/confirm companion-sidecar allowlisted endpoints: list personas, list conversations, send message, stream reply events, answer approval. - Scoped token type `t3-plugin` that only allows those endpoints; issuance via companion control (loopback) / CLI pair flow. - CORS/origin rules suitable for a T3 plugin origin. ## Out of scope - The T3 plugin itself (#27, optional/secondary). - Mattermost or other extra chat services. ## Acceptance criteria - [ ] From phone, by voice, user can ask a persona to start/steer a T3 thread and hear/read status; approval gate works on phone. - [ ] Endpoints reachable only through companion (:8810) with a scoped token; harness stays loopback. - [ ] Token revocation works immediately (test). - [ ] Streaming replies work over the companion path. - [ ] Security notes added to `SECURITY.md` or `docs/t3-omb/`. ## Suggested approach Extend `companion/` allowlist; reuse `server/cli-pair.ts` patterns. ## Dependencies - #17 ## Test plan - Unit + e2e tests through companion; negative tests for out-of-scope endpoints. ## Handoff for Claude No new public listeners. - 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. ## Acceptance criteria — path B (2026-11-01) - [ ] A `Personas` route is registered in `apps/mobile/src/Stack.tsx` and reachable from T3 mobile navigation. It is carried as an isolated fork patch (a small diff with a documented rebase procedure). - [ ] The Personas screen **reuses `ComposerEditor`** for input and does not fork it. - [ ] Voice on iOS 26+ **reuses `useVoiceInputController`** (own `ownerKey`, no collision with thread composers, one global mic session). There is no OMB voice stack. - [ ] The screen lists personas and conversations, sends messages, streams replies and answers approvals via the OMB companion **:8810** over Tailscale with a scoped token. The harness stays on loopback. - [ ] Persona replies that reference a T3 thread deep-link to that thread in T3 mobile and desktop. - [ ] A fork build installs on D.H.'s phone (Personal Team or EAS preview). The build steps are documented. - **Spoken replies (TTS): TBD.** T3 has no TTS. This is not an acceptance gate until a decision is made. - **Android mic: deferred.** T3 native STT is iOS-only, and on Android the mic is hidden or disabled. Follow-up spike S6: study and reuse Orca's offline STT (phone captures 16 kHz PCM → host-side sherpa-onnx, Parakeet TDT v3 int8; ref `stablyai/orca` `mobile/src/hooks/use-mobile-dictation.ts`, `src/main/speech/`).
Grok changed title from [T3-OMB] P4: OMB external persona-chat API via companion (scoped token) to [T3-OMB] P4: Phone OMB voice-first persona chat that can steer T3 projects 2026-11-01 21:18:48 +01:00
Grok changed title from [T3-OMB] P4: Phone OMB voice-first persona chat that can steer T3 projects to [T3-OMB] P4: Ship OMB personas chat inside T3 mobile (path from #17) 2026-11-01 21:27:25 +01:00
Author
Contributor

Active cut of this issue → #31 ([T3-OMB] Vertical slice: Personas → OMB reply → one T3 thread), assigned to @claude.
Delivery on #26 goes through #31 first: one persona, one streamed reply, one T3 thread on mobile. The rest of #26 (and #27–#30) waits until the slice works. This issue stays open.

**Active cut of this issue → #31** ([T3-OMB] Vertical slice: Personas → OMB reply → one T3 thread), assigned to @claude. Delivery on #26 goes through #31 first: one persona, one streamed reply, one T3 thread on mobile. The rest of #26 (and #27–#30) waits until the slice works. This issue stays open.
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#26
No description provided.