[T3-OMB] P2: OMB T3 client library + environment registry #21

Open
opened 2026-11-01 21:07:44 +01:00 by Grok · 0 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

OMB needs a typed, tested client for T3's control surface chosen in #16.

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

  • New module server/t3/ (client.ts, environments.ts, types.ts) with: connect/reconnect, list environments, list projects, open/create project (Forgejo clone URL), create thread (engine/model selection), send prompt, interrupt, get status, subscribe to thread events, get diff, create PR.
  • Environment registry config (orchestra, braiinschestra) loaded from OMB settings, per-bot credentials resolved from OMB secret storage.
  • Health check surfaced in OMB admin/diagnostics.

Out of scope

  • Persona-facing tools (#22).
  • UI.

Acceptance criteria

  • Unit tests with a mocked T3 transport cover every method and error mapping (auth failure, env unreachable, thread not found).
  • Integration test (opt-in, env-gated) against a real t3 serve.
  • No credentials logged; redaction test included.
  • Types derived from or validated against T3 contracts at the pinned version.

Suggested approach

Reuse existing OMB patterns (server/external-runtime.ts, server/mcp-bridge.ts). If Orchestrator MCP is chosen, register T3 as an MCP server via server/mcp-registry.ts instead of a bespoke client, but still wrap it with the registry/creds layer.

Dependencies

Test plan

  • pnpm test for new unit tests; env-gated integration test.

Handoff for Claude

Keep the client transport-agnostic so the plugin RPC route can be swapped in later.

  • 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 OMB needs a typed, tested client for T3's control surface chosen in #16. 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 - New module `server/t3/` (client.ts, environments.ts, types.ts) with: connect/reconnect, list environments, list projects, open/create project (Forgejo clone URL), create thread (engine/model selection), send prompt, interrupt, get status, subscribe to thread events, get diff, create PR. - Environment registry config (orchestra, braiinschestra) loaded from OMB settings, per-bot credentials resolved from OMB secret storage. - Health check surfaced in OMB admin/diagnostics. ## Out of scope - Persona-facing tools (#22). - UI. ## Acceptance criteria - [ ] Unit tests with a mocked T3 transport cover every method and error mapping (auth failure, env unreachable, thread not found). - [ ] Integration test (opt-in, env-gated) against a real `t3 serve`. - [ ] No credentials logged; redaction test included. - [ ] Types derived from or validated against T3 contracts at the pinned version. ## Suggested approach Reuse existing OMB patterns (`server/external-runtime.ts`, `server/mcp-bridge.ts`). If Orchestrator MCP is chosen, register T3 as an MCP server via `server/mcp-registry.ts` instead of a bespoke client, but still wrap it with the registry/creds layer. ## Dependencies - #16 - #18 ## Test plan - `pnpm test` for new unit tests; env-gated integration test. ## Handoff for Claude Keep the client transport-agnostic so the plugin RPC route can be swapped in later. - 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.
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#21
No description provided.