Docs Start here
How t10 works
The platform at a glance: the boundaries it rests on, every component, how they connect and where each design lives.
This is the high-level design: the boundaries, the components, how they connect, and the decisions each part rests on. Details live in each part's own design doc, listed in "Where the details are".
Overview#
t10 is a multi-tenant platform for working with AI agents by text and voice. Eleven sub projects are built or partly built, plus t10-quickstart, which publishes the lightweight profile. They include agent-pi, workbench and the first business module, t10-collab. flutter/ holds the mobile app, Kaidan's whole app rewired onto t10 for sign-in, text, voice messages and calls. Features with no t10 service stay, unconnected, until it's decided what to keep.
Nine boundaries shape everything else:
auth-serveris the only issuer of t10 identity and delegated tokens. Services verify those tokens against its public keys. LiveKit room and worker tokens use a separate shared LiveKit secret; delegated grant checks can also callauth-server.- Each session's harness owns its conversation.
agent-piis the only harness today. It holds the transcript, prompts, tools and model choice. Other components submit input and read events. - Each sub project is an independent repo. They share no code by import, so they connect only through network contracts and hand-kept copies,
t10-modkit's snapshot among them.t10-modkitis the one Go kit for business modules, public and tagged (v0.1.0first): workspace repos carry a checked snapshot of it, and modules made fromt10-template, outside the workspace, import a tag. A folder's name is its module, binary, image and manifest name, and every repo shares one set of conventions, held bymake check(proposals/unified-conventions.md). The workspace repo around them holds this document, the contracts,deploy/and the contract checks, and no sub project depends on it. - Business modules plug in behind one contract. Each owns its data and access rules, and shared components treat them all alike. Proposed: which actions a person may take moves to tenant-defined business roles in
auth-server, while a module keeps which records an action reaches, field masking and workflow. See "Business modules". - Harnesses plug in behind one contract.
/agentis a platform contract incontracts/agent/, with a black-box suite.agent-pipasses it, no second harness exists yet, and a client names an agent, never a harness. See "Agent plane". - Text and live audio take separate paths into one conversation. Text uses Streamable HTTP, a live call uses WebRTC, and both end at the same session. Implemented and deployed locally; real-call validation is still outstanding. See "Communication and scaling".
ai-gatewayis the road to models, to tools and into agents. One codebase runs as separate deployments:ai-gateway-agentfor client traffic,ai-gateway-llmfor model calls, and, proposed,ai-gateway-toolsfor tool calls.ai-gateway-llmserves OpenAI's APIs and Anthropic's Messages API over one router: a call goes natively to providers that speak its API, and is translated for the rest. Harnesses choose the API per model entry (apiinagent.json). The lightweight profile leaves it out.- Every run has a principal and a trigger. A run acts as a person or a tenant's agent account, and starts from a person, a call, a timer, an event, a webhook or another agent. Both facts travel on its grant. Proposed: today every run starts from a person's token. See "Runs and triggers".
- Governance is optional tenant configuration, enforced outside harnesses. A tenant with no policy runs as before, and no harness contains policy code. In Full,
ai-gateway-toolsneeds one policy feed fromt10-agent-controlbefore it passes any tool call, for every tenant. Proposed. See "Governance".
Where the details are#
| Topic | Design doc |
|---|---|
| Guides for building on t10: a business module, signing people in and calling t10, adding an agent, a coding agent on a team, an agent hand-over walked through, debugging one session on a deployed t10 | guides/ |
| Module contract, clients of modules, administering a module | contracts/module/README.md |
| Names, layout, shared plumbing and the error body every repo uses | proposals/unified-conventions.md, checked by scripts/check-conventions.py |
| Make targets, CI, the test database, configuration and toolchains every repo uses | proposals/dev-loop.md, checked by the same script |
| Tenant knowledge: document administration, document sets, text search and set-scoped agent tools built; semantic retrieval planned | t10-knowledge/docs/design.md |
| Agent contract as enforced | contracts/agent/README.md |
| Ontology contract: a module's records, links and actions as data, the generic object, action, proposal and undo routes, agent tiers and generated tools | contracts/ontology/README.md, and how to use it in a module, an app, a service or an agent: guides/use-the-ontology.md |
| Agent contract design: terms, capabilities, building a harness, handoff, retiring a pool, bundles, runs nobody typed | contracts/agent/design.md |
| Control plane: snapshot, placement, console access, tenant settings | t10-agent-control/docs/design.md |
| Tenant skills and workflows: overrides and custom skills, read by agents per turn | t10-agent-control/docs/tenant-skills.md |
| Tenant connectors: a tenant's own MCP servers, their sign-in and credentials | t10-agent-control/docs/tenant-connectors.md |
| Tenant agents, proposed: customizing an agent, agents on the team as teammates, named assistants later | t10-agent-control/docs/tenant-agents.md |
| External agent teammates: a coding agent outside t10, beside the team's code, as an agent teammate whose runner calls in through Workbench's address and leases its work with a runner key | t10-agent-control/docs/external-teammates.md |
| Skills screens for tenant admins: library, skill page, history; drafts and test chats proposed | workbench/docs/skills-ui.md |
| Governance: policy, enforcement, evidence, approvals, entitlement | t10-agent-control/docs/governance.md |
| Audit record fields shared by every service, proposed | contracts/audit/README.md |
ai-gateway roles, the text path, tenant limits, the tool gateway |
ai-gateway/docs/design.md |
| Identity, grants and tokens | auth-server/docs/design.md |
| Agent identity: runtimes, principals, standing grants, tenant agent accounts | auth-server/docs/agent-identity.md |
Sign-in, landing and moving between workbench and t10-console, mostly built |
auth-server/docs/sign-in-and-landing.md |
| Consumer identity, deferred | auth-server/docs/records/consumer-identity-plan.md |
| Business roles: tenant-defined roles from module permissions | auth-server/docs/design.md, "Business roles" |
| Automations: schedules, firings, delivery | t10-automations/docs/design.md |
agent-pi, and its replicas |
agent-pi/docs/design.md, agent-pi/docs/replicas.md |
agent-ti (agent-pi in Rust; text agent running, features being ported) |
agent-ti/docs/design.md, agent-ti/docs/storage.md, agent-ti/docs/records/implementation-plan.md |
t10-agents: the agents on agent-ti (Ti), their prompts, tools, pod settings and catalog entries |
t10-agents/README.md |
| Voice worker, and scaling it | t10-livekit-agent/docs/design.md, t10-livekit-agent/docs/scaling.md |
workbench |
workbench/docs/design.md |
Which modules workbench shows: by deployment and business role, mostly built |
workbench/docs/module-visibility.md |
| The first screen after sign-in, partly built | workbench/docs/first-screen.md |
| Mobile app | flutter/docs/design.md |
t10-collab, and how it serves the ontology |
t10-collab/docs/design.md, t10-collab/docs/ontology-design.md |
t10-modkit: the shared Go kit, module and verifier published by tag |
t10-modkit/docs/api.md, t10-modkit/docs/module-design.md |
| Platform console | t10-console/docs/console.md |
Docs for coding agents: every image serves its consumer docs at /docs/mcp, and t10-docs serves them all at /mcp |
contracts/docs/README.md, docs-server/README.md |
| Deployment profiles, and deploying | deploy/profiles.md, deploy/README.md, deploy/add-an-agent.md, deploy/edge/ for one https host per service, with TLS on a public VM and rathole into the network |
A design for a repo that doesn't exist yet lives in proposals/ until the repo is created, then moves to its docs/. Plans, reviews, validation logs and superseded proposals move to a repo's docs/records/. Every doc carries front matter saying who it's for, what kind it is and whether it's current, and make check holds that, as proposals/docs-for-coding-agents.md describes.
System diagram#
Solid lines are implemented paths; they may require configuration. Dashed lines are proposed, or still need client integration or configuration. Implemented does not mean production-deployed: the Kubernetes deployment has been checked only on the local Docker Desktop cluster. The standalone voice defaults still use DashScope directly; the Kubernetes voice workers use agent_pi.
flowchart TB mac["t10-mac-client<br/>Voice test harness"] workbench["workbench<br/>Web client, holds tokens, proxies"] mobile["mobile app (partly built)<br/>Flutter"] livekit["LiveKit server<br/>Relays audio and data"] voice["t10-livekit-agent<br/>Voice loop, barge-in<br/>Speech: DashScope"] gateway["ai-gateway-agent<br/>Places sessions, routes by session ID"] harnesses["Harnesses: agent-pi<br/>Own conversations<br/>Storage: SQLite"] llm["ai-gateway-llm<br/>Model routing, provider keys"] tools["ai-gateway-tools<br/>Token checks, exchange, tool audit"] collab["t10-collab<br/>First business module<br/>Storage: Postgres"] auth["auth-server<br/>Identity, tenants, org facts,<br/>grants, room admission<br/>Storage: Postgres"] control["t10-agent-control<br/>Agents, pools, routes, tenant settings,<br/>policy and evidence (proposed)<br/>Storage: Postgres"] console["t10-console<br/>Platform console"] automations["t10-automations (proposed)<br/>Timers, events, webhooks"] mac -->|WebRTC| livekit mobile -->|WebRTC| livekit workbench -->|room token| livekit livekit <-->|room streams| voice voice -->|by session ID| harnesses workbench -->|HTTP and SSE| gateway mobile -->|HTTP and SSE| gateway automations -.->|/agent, as a client| gateway gateway -->|JSON-RPC and SSE| harnesses harnesses -->|model calls| llm harnesses -->|MCP, delegated token| collab harnesses -.->|MCP, delegated token| tools tools -.-> collab harnesses -->|grants| auth voice -->|grant exchange| auth automations -.->|standing grants| auth workbench -->|sign-in, tokens| auth mobile -->|device sign-in| auth workbench -->|user token| collab workbench -->|tenant settings, policy| control console -->|platform API| control console -->|identity pages| auth console -->|audit UI| llm control -->|route snapshot| gateway control -->|route snapshot| voice control -.->|snapshot with policy| tools tools -.->|evidence, consents| control control -->|role checks| auth control -->|manifests, for Fleet| harnesses
Components#
Ports are the local development defaults. "Built" describes code; "deployed locally" describes the Docker Desktop cluster checked on Nov 2, 2026. Production deployment and load testing remain outstanding.
| Component | State | Stack | Owns | Interface |
|---|---|---|---|---|
auth-server |
Built. External security review outstanding | Go, Postgres | Accounts, tenants, org facts, sessions, agent grants, audit log, room admission | HTTP on :8081, hosted sign-in pages, JSON admin routes, JWKS. No admin screens: /admin sends people to the console or workbench |
agent-pi |
Built. assistant has one weather skill, and t10-collab's tools when COLLAB_MCP_URL is set |
TypeScript on Node 24, SQLite, pi-durable | Sessions, transcripts, runs, tools, skills, sub-agents, model calls | JSON-RPC and SSE at /agent on :9800, optional MCP at /mcp |
t10-livekit-agent |
Built. Agent-pi path tested with simulated audio only | Go, LiveKit SDK, cgo Opus | Live-call loop, VAD, barge-in, speech orchestration | LiveKit room participant, with no inbound HTTP API |
t10-mac-client |
Built. Voice test harness | Go, malgo, cgo Opus | Microphone and speaker, terminal UI, Keychain session | Command-line client, LiveKit room participant |
t10-collab |
Built, including departures, agent tools and the ontology | Go, Postgres | People's work items, offers, shared lists, notifications | HTTP API, the ontology's routes, and MCP at /mcp on :8082 |
t10-agent-control |
Built: routes, history, the platform API, tenant agent settings and agentctl. Governance proposed |
Go, Postgres | Agents, pools, routes and their history. Each tenant's agent settings, and later its policy, evidence and consents | GET /v1/routes for routers, /v1/platform/ for t10-console, and workbench's agents module on :8085 |
t10-console |
Built | Go, Postgres for sign-ins only | Nothing but sign-ins | Server-rendered pages on an internal address, on :8086 |
workbench |
Partly built. Conversations, results and tasks work; real-call validation is outstanding | Go backend, React frontend, Postgres | Browser sessions only | Web app and same-origin API on :8083 |
flutter/ |
Partly built, on Kaidan's app. Device sign-in, text, voice messages and calls work | Flutter | Microphone and speaker, device keys for approving sign-ins | LiveKit room participant. Client t10-mobile |
ai-gateway |
agent and llm built and deployed locally. tools proposed |
Go | Model aliases, provider fallback, provider keys, model-call audit and usage, over OpenAI's APIs and Anthropic's Messages API. Later, tool policy and outside tool credentials | ai-gateway-llm on :7200, ai-gateway-agent on :7201 |
Proposed repos that don't exist yet: t10-automations (see "Runs and triggers"), agent-codex and agent-kit (see "Agent plane"), and t10-notify (see "Business modules").
Four supporting services sit outside the sub projects' own code:
| Service | Comes from | Used for |
|---|---|---|
| LiveKit server | t10-livekit-agent/compose.yml, host port 8890; also deploy/k8s/overlays/local/local-infra.yaml |
WebRTC audio and data streams |
| Redis | deploy/k8s/overlays/local/local-infra.yaml |
Voice-worker room claims; LiveKit uses Redis when clustered |
otel-lgtm |
t10-livekit-agent/compose.yml, Grafana on 3002 |
Traces, metrics and logs |
| Alibaba DashScope | External | Speech-to-text, text-to-speech, and the LLM when voice bypasses agent-pi |
Connections#
Code, manifests and local cluster workloads were checked on Nov 2, 2026. The local deployment routes workbench and mobile web text through ai-gateway-agent. Direct /agent access remains supported for standalone clients.
Implemented#
| From | To | Transport | Credential | Purpose |
|---|---|---|---|---|
t10-mac-client |
auth-server |
HTTP, system browser | PKCE code flow, then a session secret in the Keychain | Sign in and refresh. Password grant works in dev mode only |
t10-mac-client, mobile app, workbench backend |
auth-server |
POST /v1/rooms/admission |
User bearer token | Get a room token and server URL |
t10-mac-client, mobile app, browser |
LiveKit server | WebRTC | Room token | Calls; the mobile app also sends voice messages |
t10-livekit-agent |
LiveKit server | WebRTC | Token it mints itself with the LiveKit secret | List rooms, and join each one with someone in it |
t10-livekit-agent |
auth-server |
POST /v1/token, agent_grant |
Client ID and secret, plus the grant ID | A delegated token of up to 5 minutes for the caller |
t10-livekit-agent |
agent-pi |
POST /agent, JSON-RPC and SSE |
Delegated token | Each turn when LLM_PROVIDER=agent_pi, routed by session ID |
t10-livekit-agent |
DashScope | WebSocket and HTTP | API key | Speech, and the LLM under the default openai_compat provider |
agent-pi |
auth-server |
JWKS, /v1/token, /v1/grants |
Client ID and secret | Verify tokens, and create, extend, revoke and exchange grants |
agent-pi, agent-ti |
ai-gateway-llm |
OpenAI-compatible HTTP, or Anthropic's Messages API where a model entry sets api: anthropic-messages |
API key, plus identity and trace headers | Model requests |
agent-pi |
MCP servers | HTTP or stdio | Short token minted from the conversation's grant | Tool calls. assistant configures t10-collab when COLLAB_MCP_URL is set |
| Browser | workbench backend |
Same-origin HTTP | Session cookie, never a t10 token | All browser work |
workbench backend |
auth-server |
Code flow with PKCE, /v1/tenants/{tenant}/* |
Client secret, then user token | Sign-in, tenant switching, Administration |
workbench backend, mobile app |
ai-gateway-agent |
/agent, JSON-RPC and SSE |
User token | Conversations. Browsers hold no token |
workbench backend |
t10-collab, t10-agent-control |
The module proxy | User token | Inbox, tasks, and the tenant's agent settings |
t10-collab |
auth-server |
/v1/org/*, JWKS |
Service token | Org facts and token verification |
| Mobile app | auth-server |
/v1/login, /v1/qr, /v1/me/* |
Device keys, then a mobile session | Sign-in, approving QR sign-ins, account changes |
ai-gateway-agent |
agent-pi |
/agent, JSON-RPC and SSE |
User token | Placement and routing |
ai-gateway |
Model providers | Provider APIs | Provider keys | Model calls, with fallback |
ai-gateway-agent, t10-livekit-agent |
t10-agent-control |
GET /v1/routes, every 10 seconds with ETag |
Service token | The route snapshot, when AGENT_CONTROL_URL is set. On the path of no request |
t10-agent-control, t10-console |
auth-server |
GET /v1/me/access, and the console's code flow and identity routes |
The caller's own token | Every platform and tenant admin check |
t10-agent-control |
Harnesses | GET /v1/runtime, /readyz |
None | The console's Fleet page |
t10-console |
t10-agent-control, ai-gateway-llm |
The platform API; the audit UI | The admin's own token; GATEWAY_AUDIT_KEY |
Fleet, routes and history; Model calls |
t10-livekit-agent, clustered LiveKit |
Redis | Redis protocol | Redis credentials when configured | Room claims |
auth-server never calls LiveKit. It signs room tokens with the shared LIVEKIT_API_SECRET, and the token carries the caller's grant ID in the t10.grant attribute, which a client can't change. t10-mac-client never calls agent-pi; it reaches the agent only through the room.
Proposed#
| From | To | Transport | Credential | Needed for |
|---|---|---|---|---|
| Mobile app | Business modules | HTTPS through a public modules route | User bearer token | Module screens, after the first release |
t10-notify |
Business modules; a tenant's chat tool | GET /internal/v1/attention; vendor API |
Service token; tenant's chat app secret | The daily digest |
t10-livekit-agent |
ai-gateway-llm |
OpenAI-compatible HTTP | Service credential | The standalone openai_compat path |
| Harnesses | ai-gateway-tools, then MCP servers |
MCP | The run's delegated token | Every tool call, with tenant policy and outside credentials |
| Harnesses | ai-gateway-llm |
OpenAI-compatible HTTP | The run's delegated token, replacing identity headers | Model rules and budgets that don't trust a header |
ai-gateway-tools |
t10-agent-control |
POST /v1/evidence, /v1/consents |
Service token | Evidence and approvals |
t10-automations |
auth-server, then ai-gateway-agent |
Grants; /agent |
Client secret; a token from a standing grant | Runs from timers, events and webhooks |
| Business modules | t10-automations |
POST /v1/events |
Service token | Event triggers |
| Business modules | auth-server |
Internal entitlement read | Service token | Business-role grants and membership, account and tenant status, uncached, once per protected request |
Contracts held by copies#
| Contract | Lives in | Kept equal by |
|---|---|---|
Room protocol: topics such as agent.chat, agent.state and agent.message.status |
internal/roomprotocol in t10-livekit-agent and t10-mac-client, with topic names in workbench and a Dart copy in flutter/ |
make check |
| Opus framing | Both of those Go repos | make check |
| Telemetry | Both of those Go repos. The client's is a trimmed copy | Hand |
| Token verification | auth-server/verifier for Go and TypeScript, copied into t10-collab, ai-gateway and t10-agent-control. agent-pi has its own jwt.ts |
make check for the Go copies |
traceparent and turn ID |
Room stream attributes, then HTTP headers | Convention. A turn's trace ID is its turn ID |
/agent methods and events |
contracts/agent/, with event types copied into workbench and flutter/ |
make check: the conformance suite on each harness |
| Module contract | contracts/module/README.md, met by t10-collab and read by workbench |
Each repo's tests |
| Route snapshot | Rendered by t10-agent-control, parsed by internal/agentroute in ai-gateway. t10-livekit-agent reads only pools |
make check, on a golden document |
| Platform API | t10-agent-control's /v1/platform/, with JSON types copied into t10-console |
make check for the message formats |
| Identity headers on model calls | agent-pi, t10-livekit-agent and ai-gateway |
make check. Replaced by delegated tokens, as proposed |
| Policy matcher vectors, proposed | contracts/governance/vectors.json, run by ai-gateway and t10-agent-control |
make check |
| Runtime directory, proposed | Each pool's audience in t10-agent-control, delivered in its policy feed, read by ai-gateway. Runtimes themselves stay in auth-server's clients.yaml |
The console's check against auth-server's clients listing |
| Audit record fields, proposed | contracts/audit/, declared by every service with an audit record |
make check |
Telemetry#
Every turn is one trace, and its turn_id is the trace ID. It runs from the client through t10-livekit-agent and the harness to ai-gateway, crossing the room as stream attributes and every other hop as an HTTP header. Tool calls carry traceparent, X-Turn-ID and X-Session-ID as headers to ai-gateway-tools, which passes them to t10's own modules and strips them before a tenant's server. auth-server joins the turn too, so grant time shows inside it. agent-ti and the Flutter client pass the trace on but export no spans yet. Every service exports over OTLP/HTTP, and all take the same URL.
One chat session. A session's turns are separate traces, and every span of a chat carries t10.session.id. So { span.t10.session.id = "<id>" } finds all of its turns, plus model calls outside a turn, such as generating a title. The session ID is in session.create's answer and on tool audit and model audit records as session_id. Details and the check that proves it: deploy/k8s/components/observability/.
Who reads traces, and what they hold. Platform admins read every tenant's traces, as the platform's operators. So spans carry facts and never content:
| Spans may carry | Spans never carry |
|---|---|
| Tenant, principal and its kind, runtime, agent, pool, grant, trigger, automation, session ID, route revision and rule, model alias, MCP server and tool name, policy rule and decision, outcome, timing | Prompts, replies, transcripts, tool arguments or results, query strings, tokens, a person's name or sign-in name |
Proposed additions:
- Placement attributes.
ai-gateway-agentrecords the route revision, rule, pool and agent onsession.create, and passes the revision and rule to the harness, which keeps them on the session, so any conversation's placement can be explained from route history. - Runs with no client. A firing's trace starts at
t10-automations, and a run resumed after an approval links to the turn that asked, by its consent ID. - Metrics over the same exporters, which send traces only today: snapshot age at each router, publish-to-fetch time, evidence ingest lag, refusals on the fail-closed paths.
t10-agent-control/docs/design.md, "Observability", has the list. - Logs carry
trace_id.
Debugging one session, with its words. Spans never carry content, but ai-gateway-llm's model audit does, by the user's decision of 2026-11-18: each call's whole request and reply, and upstream, every exchange with a provider as sent and received, including fallbacks. audit.store_bodies: false strips it. Platform admins read it in t10-console's Model calls. The debug capture keeps a second copy of one tenant's calls, apart from audit, while a platform admin has it on, with a reason, for at most 7 days, kept 30; the console records each read of it. ai-gateway's log lines drop every body. scripts/session-dump.py gathers one session's model calls with their text, tool calls, traces and matching log lines from a remote cluster or Compose host into a folder a coding agent can read. See guides/debugging-a-session.md and ai-gateway/docs/design.md, "Debug capture". Proposed: turning capture on shows in the tenant's Activity.
Audit#
Each service keeps its own append-only record, beside the data it's about, and refusals are recorded as well as changes: auth-server for identity and grants, t10-agent-control for routes, tenant settings, entitlement, policy and evidence, ai-gateway for model and tool calls, and t10-automations for firings. There's no central audit store, because it would sit on every service's write path. Instead every record carries the same fields, from contracts/audit/README.md, proposed, and screens that need several sources combine them by tenant, actor, grant and turn_id.
| Who | Sees | Where |
|---|---|---|
| Platform admins | Every service's platform and tenant records except evidence, and every trace. Content only in ai-gateway's debug capture, when it's on for a tenant |
t10-console |
| Tenant admins | Their tenant's records, including platform changes that affect it, without pools or harnesses, and their evidence. Any run's content, one recorded read at a time | workbench's Administration |
| Each person | Their own runs' content, and who else read them | workbench, a conversation's details |
Evidence is the one record platform admins can't read. They see the same facts in traces, without content, so governance sells a tamper-evident record the tenant holds and can verify, not secrecy from t10's operators.
Audit records aren't application logs. They answer different questions, and neither stands in for the other:
| Audit records | Application logs, traces and metrics | |
|---|---|---|
| Answers | Who did what, to what, when and why, for accountability | What the code did, for debugging and operating |
| Readers | Tenant admins, platform admins, customers' auditors | Engineers and operators |
| Kept in | Each service's own database, append-only | stdout and OTLP, to the telemetry backend |
| Shape | Fixed fields, from contracts/audit/. Changing one is a contract change |
Free-form messages and attributes, changed with the code |
| Completeness | Every change and refusal. If the record can't be written, the change is refused | Best effort. Sampling and loss are acceptable |
| Retention | By contract, per tenant, deleted only by a retention job | Days to weeks, set by the backend |
| Content | IDs and reasons, never content | The same rule, never content, and no audit record copied in |
A service never writes an audit record by logging it, and never reads logs to rebuild one. They share only trace_id, so an auditor's question can be followed into the trace when an engineer needs to.
Business modules#
A business module is a service that owns one kind of tenant data and the access rules for it. t10-collab is the first, and Deals and Documents are likely next. Adding one changes configuration and adds a folder to each client, with no change to shared code. contracts/module/README.md is the contract and its rationale.
- One module, one service, one database. Nothing outside a module reads its tables.
- The contract is network-only. HTTP and MCP, so a module can be written in any language.
- Shared components use a module ID, never a module name in code.
- Screens compile into each client. No central registry and no runtime plugins.
- Anything two modules would both need moves out of them. The first case is the digest, in a small
t10-notifyservice, not built yet. What modules share lives int10-modkit, the one Go kit, published and tagged: org reads, IDs, cursors, migrations, traces, the error body, web sign-in, the frame, the ontology, the verifier, andmodule, what every module made fromt10-templateanswers. Route guards and sweep locks are still to be extracted.
t10-agent-control also answers the module contract, as workbench's agents module, so tenant agent settings and later approvals reuse the module proxy and notifications. It's a deliberate exception: it owns no tenant records, has no attention counts, and isn't counted as a business module.
Every module provides a manifest, one access policy for routes and agent tools, notifications, attention counts, settings, a departures job, optional MCP tools, and its own OpenAPI file. Records point across modules with opaque <module>:<type>:<id> references, resolved by their owner with the viewer's token.
The ontology (framework in t10-modkit). A module that lists ontology in its manifest describes its records, links and actions as data at GET /v1/ontology, and serves them through the same generic routes as every other such module: get, search, links and resolve of objects, validate and apply of actions, undo, and proposals. A descriptor's core is declared in code and the same for every tenant; a tenant layer, such as a sales pack, only adds values and properties, never actions. Each action has an agent tier: never, propose (an agent drafts, the person confirms) or undoable (an agent applies it for the person, who can undo it), and money, consent and scope are always never. Generated tools (<prefix>_describe, _search, _get, _links, _propose, _activity, _withdraw, and _act for an undoable action, or in a module that lists auto_apply a propose one too) reach agents through /mcp/modules, the same list for every tenant, always masking sensitive values. An agent sees an object's links and the names of what its references point at in one _get, searches free text with q and counts with total, reads which tenant fields belong to which variant of a type, and can take back what an agent did for the person (_withdraw). It's federated: each module serves its own part from its own database, so rule 1 holds, and t10-modkit/ontology builds it from declarations over the module's existing reads and commands, with a Go client and a TypeScript client and components for using any module's ontology. Business modules adopt it by declaring their own types. Property, in a project of its own since Nov 28, was first. kuaidan-sales's sales module, a project made from t10-template outside this workspace, adopts it over each rep's private ledger, with the company's pack as its tenant layer and record.add as the first undoable action; its mini program's agent only drafts, for the rep's tap. t10-collab serves its tasks, lists, comments and offers the same way, under its one access policy, with item types as its tenant layer: an assistant acting for a person makes the person's own task (undoable) and drafts everything others would see, and agent teammates keep their own tools, acting as themselves. Collab's own "suggestions" are gone. Workbench's Home shows every module's drafts in one place, For you to confirm, and what assistants did, Done for you (from each module's GET /v1/done, or GET /v1/undo for one that doesn't list auto_apply), with Undo where it can be undone, and a record's page shows those about it. Auto-apply: a person may let their assistant act without asking, per module and per tenant (Workbench's Settings; auth-server's /v1/me/auto-apply). It reaches modules only as <prefix>:apply on the grant chain, which auth-server answers only while the person chooses it, so it takes effect on running agents within the verifier's chain cache; with it, _act applies propose actions with no draft, audited as auto_apply, and never stays out of reach. A module opts in by listing auto_apply (t10-modkit v0.5.0). See contracts/ontology/README.md and guides/use-the-ontology.md.
Business roles (built; collab uses them, knowledge next). Modules such as property and knowledge need a manager who can act without being a tenant admin, so by rule 5 roles move out of modules. A module declares its permissions in its manifest, auth-server registers them from deployment config, and tenant admins compose roles from them on a Roles page in workbench. A role assignment carries an ID; the module binds its own scope, such as buildings or a document set, to that ID, and unions scopes only across assignments that grant the requested action. Modules check grants with one uncached entitlement read per request, which also returns membership and tenant status. Tokens carry no permission lists, and a role's name confers nothing: tenant and platform admin stay built in. See auth-server/docs/design.md, "Business roles", and for the routes as built, auth-server/docs/guides/service-api.md, "Business roles". The Roles page in workbench is built, and t10-collab reads work:admin; property, in its own project, checks property:* with scopes bound to assignments; knowledge adopts them next.
Business apps (direction chosen, not built). A business application such as property becomes its own web app, linked from workbench and a landing page, while capability modules stay in workbench. Both reach agents through MCP, skills and record references, with no module code in a harness. See proposals/business-module-apps.md.
Property (moved out). Property management, the first module built on business roles, left this workspace on Nov 28, 2026. It runs as its own project made from t10-template, with t10-property as its module and the published foundation images beside it; its pack brings its own clients, runtimes and agent. The workspace's configuration names it nowhere.
Tenant knowledge (document management built). t10-knowledge provides a tenant-scoped base catalog, file uploads, durable extraction jobs, immutable versions, publication/rollback, trash/restore, source access and text search, with Workbench admin/member screens and live membership/admin checks. The bounded-file release stores originals and extracted text in its own Postgres database; see implementation status. Admins group documents into document sets; agents get read-only MCP tools through ai-gateway-tools and must name the sets they search, never the whole tenant. Tenant admins can limit each agent to chosen sets, which knowledge enforces using t10-agent-control's runtime directory, and agents cite documents with links Workbench opens. Private object storage, Qdrant semantic retrieval and gateway embeddings remain the target design. Publishing makes documents available to subsequent member queries without copying files into shared harnesses or publishing agent bundles. See t10-knowledge/docs/design.md.
Agent plane#
Personal memory (proposed). t10-knowledge can also hold user-owned long-term memory, separately from tenant-wide documents. Ownership is (tenant, user), with separate memory tools, policy and vector collections. The harness retrieves authorized memories as per-turn context; users manage them in Settings, and tenant admin status grants no ordinary access to another user's memory. See personal long-term memory.
t10 treats harnesses as it treats business modules: many implementations behind one network contract, so a harness can be switched or chosen at runtime, including Codex or a custom one.
/agentis a platform contract, owned by the workspace. A harness is anything that passes the conformance suite incontracts/agent/. It stays at version 0 until a second harness passes, and declares optional capabilities, such assteer,voiceanddurable_runs, atGET /v1/runtime.- An agent isn't a harness. Clients name agents, and session IDs name pools.
- The contract is the seam, not a code interface inside
agent-pi. Most new harnesses are only an engine behind a shared host fromagent-kit. - A small control plane, read only as a copy.
t10-agent-controldecides where new conversations go and keeps each tenant's skills, customization, connectors and policy. Routers, gateways and harnesses read it only through versioned feeds with anETag, answer from their last good copy, keep that copy on disk, and keep it with no time limit. Past one staleness budget, 15 minutes without an answer, each failed read logs an error that alerts. So an outage delays changes and stops nothing. Connector credentials, drafts and consents are the named exceptions. See "Reading control" int10-agent-control/docs/design.md. Proposed: the feeds become one fleet snapshot, one snapshot per tenant and one change feed. - The session ID stays the route. Harness choice happens once, at placement, and is written into the ID.
- Conversations stay inside their harness until they're handed off. A handoff carries a lossy copy to a new session, and it's how a harness is really switched off. t10 builds no central transcript store.
- Everything between a client and a harness is optional. See "Deployment profiles".
- Runs need no person present. A run's principal and trigger are on its grant, and
t10-automationsstarts runs as a client. See "Runs and triggers". - Governance is the enterprise product, and safety isn't. Every tenant gets the protections that keep t10 safe, and enterprise customers pay to set their own rules and prove they held. See "Governance".
| Term | Meaning | Example |
|---|---|---|
| Agent | The product a person talks to | assistant, sales |
| Harness | The engine that runs a loop of model and tool calls | pi, codex |
| Bundle | An agent's prompts, skills, tool policy and model aliases, versioned. Rolls out in place | sales@2026-11-02 |
| Pool | One deployment of an agent on a harness. New only when an agent moves harness, because replicas can't be removed | sales (pi), sales-codex |
| Route | The rule that sends an agent's new conversations to pools | Tenant acme, 10% to sales-codex |
| Run | One execution of an agent under one grant, with a principal and a trigger | A morning brief at 7:00 |
| How work moves | Mechanism |
|---|---|
| Placement of a new conversation | The router checks tenant access, matches its cached routes with stable weights, drops pools lacking a required capability, then picks a replica by rendezvous hash |
| Delegation of a task | Agent as an MCP tool, with the user's grant narrowed |
| Handoff of a conversation | A new session continues the old one with a copy of its history, and the old one is sealed with a pointer |
contracts/agent/design.md has the contract, harness building, handoff and bundles. t10-agent-control/docs/design.md has the snapshot, placement rules, console access and tenant settings.
Tenant skills (built). A bundle's skills are the platform's, in its image. A tenant admin can change a built-in skill's workflow or add skills of the tenant's own, in workbench's Workflows page. They're published as immutable versions in t10-agent-control, and agent-pi reads a tenant's published skills from there when a turn needs them, keeping each answer 10 seconds and revalidating with an ETag, while a change feed brings a publish in about a second. A turn keeps the version it started with. Nothing is copied into a pod, so every replica sees a publish within 10 seconds at most, and other tenants never see it. Custom skills carry their own reference files. See t10-agent-control/docs/tenant-skills.md.
Tenant connectors (built). A tenant admin can add the tenant's own remote MCP servers in workbench's Connectors page, signing in with no credential, an API key, OAuth client credentials, or each person's own OAuth sign-in (authorization code with PKCE, found and registered per the MCP authorization spec). t10-agent-control keeps the address, the reviewed tool schemas, the agents that may use them and the credentials, sealed with a key only it holds. agent-pi offers a tenant's published tools in an extension only that tenant's conversations select, and calls them at ai-gateway-tools' /mcp/connector/<id>, which checks the run's tenant, agent and tool, applies the tenant's policy, gets the credential from control and sends nothing of t10's to the server. Proposed: the gateway serves each run its tenant's connectors as one MCP server, /mcp/tenant, listed from the published schemas, and harnesses (agent-pi, agent-ti, any other) configure it as a grant MCP server listed per tenant at each turn, with no connector code and no control client for it. A person who hasn't connected gets a tool error telling them to, never someone else's account. See t10-agent-control/docs/tenant-connectors.md.
Model keys. Built on the feat/model-keys branches, not yet merged; speech through the gateway is behind a setting that's off. Before it, every model, speech and embedding key was the platform's, one per provider. Now a tenant admin adds the tenant's own keys and endpoints in workbench, and maps the platform's model aliases to its endpoints, for all agents or one. A platform admin assigns platform keys and endpoints to tenants in t10-console, and sets which fallback modes each tenant may choose. ai-gateway-llm tries a whole source before the next: strict, the tenant's own only, is the default once a tenant brings a key. Harnesses keep sending the platform's aliases and never see a key. The platform can hold a tenant to a list of regions. t10-agent-control keeps the records, the platform's shared keys included, and keeps secrets behind a store interface: its own database first, Vault or a cloud secret manager later. MODEL_KEYS_FILE does the same job in Standard and Compose, and control gets its own Compose file. Voice can move onto the gateway so speech can use tenants' keys. Model calls carry the run's delegated token, so the gateway knows the tenant. See t10-agent-control/docs/model-keys.md.
Tenant agents (proposed). A tenant agent is a tenant's answers to questions every run already has an owner for: what the agent does (the bundle, then the tenant's layer), whose rights it uses (the principal), why it runs (the trigger), and what it may do in the end (grants, policy, modules). The principal makes two kinds. An assistant acts for one person with their rights. A teammate acts for the organization as its own agent account.
- Customizing an agent, first. In workbench's Administration → Agents, one page per agent shows everything the tenant sets for it, each kept by its owner. Customize adds instructions at a slot the agent's own instructions mark (with short separate ones for calls), turns tools and built-in skills off, and picks a model entry the platform allows. It's a tenant layer on top of the bundle: immutable versions in
t10-agent-control, read per turn and pinned per turn as tenant skills are. The agent keeps its name, so the contract, router, session stores and clients don't change. It only narrows:ai-gateway-toolsrefuses a tool the tenant turned off, for every tenant, so only pools that claimtools_via_gatewaycan be customized. Tools are named by the module that owns them, as policy rules name them. Each agent has its own runtime, so an agent another pool hosts beside its own, as property's project does onti's pool, gets a runtime of its own and the gateway still learns the agent from the token. - Agents on the team, next. A teammate is a tenant agent account in
auth-server(R8), with a manager, an org place and business roles, bound to its own customization of a platform agent and to automations that run as it. People send it work items int10-collabas they send them to each other: it accepts or declines by its instructions, works with its own rights, answers on the item, and sends work back or to its manager. Its manager approves its gated actions. Agents work with agents only through work items, with limits on agent-to-agent passing. The harness reads its configuration by the run's principal, so neither the contract nor the harness learns what a teammate is. - Named assistants, later. Several customized assistants in one person's picker, the only part that changes the contract, router and session stores.
Full profile only. See t10-agent-control/docs/tenant-agents.md.
Runs and triggers#
Status: proposed, and agreed: tenant agent accounts and 90-day standing grants.
| Part | Decision |
|---|---|
| Principal | A person, or a tenant agent account: a membership of kind agent with no sign-in, which modules check like any member |
| Trigger | user, voice, schedule, event, webhook or agent, as the trg claim on the run's delegated token |
| Consent | A standing grant, created from a live user token, lasting 90 days and renewed by use. Each firing gets an ordinary 8-hour child grant |
| Starting runs | t10-automations fires schedules, module events and webhooks, and calls /agent like any client, once per firing |
| Contract | An idempotent session.create, an origin on sessions, and trigger input delivered as data. Unattended runs go only to pools with durable_runs |
auth-server/docs/agent-identity.md and t10-automations/docs/design.md are the designs.
Viewing a run#
Proposed. Anyone allowed can see what an agent did in a turn: its input, each model round, every tool call with its arguments, and the reply, beside each call's model, tokens, latency and policy decision.
- Content comes from the harness, facts from the gateways. The harness answers
session.run, behind therun_viewcapability, from its transcript.ai-gateway-llmandai-gateway-toolsanswer the turn's model calls and tool decisions, metadata only.workbenchjoins them byturnIdand keeps nothing. - Tool results stay hidden unless their server is marked
results_visible, as the transcript already hides them, because a tool can return what the person may not read. - The owner sees their own runs. Tenant admins see any run in their tenant, including agent accounts', with a 15-minute read token for one session from
auth-server, asked with a reason and a fresh factor. The read is an audit record, and the owner sees it. - Platform admins see no content, only traces and gateway records, except
ai-gateway's debug capture: off by default, turned on for one tenant for at most 7 days with a reason, and shown in that tenant's Activity.
contracts/agent/design.md, "Viewing a run", is the design.
Admin surfaces#
Each kind of admin has one address. Someone who holds both roles signs in once, and each place links to the other.
| Surface | For | Has | Reached by |
|---|---|---|---|
Platform console, t10-console |
Platform admins | Fleet, agent catalog, route history, every tenant and user, the platform audit log, model calls, and later entitlement. Every tenant's traces, in the tracing UI | Internal ingress only |
Administration in workbench |
Tenant admins | People, the org tree, running agents, the MFA policy, activity, the tenant's agents, each module's settings, and later policy, evidence and automations | User token |
auth-server serves no admin screens, and checks every call either surface makes, through GET /v1/me/access. In the console, publishing a fleet change and every identity page need a second factor from the last 15 minutes. Fleet pages can be read without one. A token with an agent acting for a user is always refused. "Operator" means a platform admin.
Deployment profiles#
| Light | Standard | Full | |
|---|---|---|---|
| Runs | A harness, auth-server and clients, plus LiveKit and a voice worker for calls |
Light, plus ai-gateway's roles |
Standard, plus t10-agent-control |
| Routes from | AGENT_URLS |
A routes file | t10-agent-control |
| Policy | None | From the routes file | Authored by tenant admins, with evidence and approvals |
Each service can be left out on its own. t10-automations is optional in every profile, and rules for unattended runs need Full. Light isn't meant for several untrusted tenants on the public internet: it has no tenant quota or model audit, and the provider key sits with the harness. deploy/profiles.md has the details, and make light-smoke proves one turn with no gateway. t10-quickstart publishes Light, and a Compose file with every component, from images pinned by commit. The redesign keeps Light working: everything it adds is either harness behaviour that conformance tests, or a service Light leaves out.
Governance#
Status: proposed, nothing built. The tool gateway is agreed, and so is keeping governance in t10-agent-control. Selling waits on enterprise sign-in, durable audit and durable quota.
- Policy is a tenant setting in
t10-agent-control, published in the snapshot. Rules name an MCP server and tool, and can match the agent, trigger and principal kind. - Enforcement is outside harnesses: placement for allowed harnesses,
ai-gateway-toolsfor tool calls,ai-gateway-llmfor models. A harness only has to send its tool calls through the gateway, which its pool declares withtools_via_gateway. It can't skip the gateway, because its runtime's tokens are then good only at the gateway, which exchanges them for each module's audience. Light sets none of this and is unchanged. Redaction is the one exception, because content never leaves the harness for policy, and where a tenant's own redaction rules run is open. - Policy only narrows what the bundle allows, and fails closed.
- Entitlement gates writing rules, never enforcing them, so a lapsed contract doesn't weaken protection.
- Gateways learn a call's agent from its runtime. A token names its runtime in
act.suband no agent, sot10-agent-controlkeeps a directory from runtime to pool to agent, one runtime per pool, and sends it with policy.auth-serverstill decides what a runtime is. - Evidence holds IDs, decisions and keyed hashes, never content, chained per tenant. Only tenant admins can see it. Gateway outboxes sit on per-replica volumes, and numbered writes make any lost records visible.
- Approval works by repeating the call: a call that needs approval fails with a pending consent, and the same call succeeds once after an approver the rule names says yes, for live and unattended runs alike. The consent matches the principal, agent, automation, tool and canonical arguments, not the grant, so a new firing's grant can use it.
t10-agent-control/docs/governance.md is the design. Consumer apps fit the agent side, and their identity, plans and abuse controls are deferred to auth-server/docs/records/consumer-identity-plan.md.
Communication and scaling#
Text and live calls use different transports into the same conversation. Text uses Streamable HTTP through a stateless router, ai-gateway-agent, and a live call uses WebRTC through LiveKit. Neither path needs a message broker, because a harness already fans events out to every open stream.
- The transport follows the traffic. Text must arrive complete and in order, and audio must arrive on time. HTTP with resume gives the first, and WebRTC the second.
- A conversation is the meeting point. Both paths end at one session, so a person can type, call, then type again.
- Rooms are for audio. A text conversation holds no room and no voice worker.
- The session ID is the route. Every caller works out the replica from the ID, so t10 needs no routing table and no sticky load balancer.
| Traffic | Client edge | Inside the platform | Why this transport |
|---|---|---|---|
| Typed turns, reply text, history, session commands | Streamable HTTP to ai-gateway-agent |
JSON-RPC and SSE to the harness | Loss isn't acceptable, but a delay of seconds is |
| Live-call audio | WebRTC to LiveKit | WebRTC to a voice worker | A late audio frame is useless, so dropping it beats resending it |
| Call state and captions | LiveKit room streams | Same | Captions stay in step with the audio |
| Voice messages | A WebSocket to ai-gateway-agent's /agent/voice, relayed by workbench; the mobile app still uses a LiveKit byte stream |
Speech to text through ai-gateway-llm, then session.prompt |
Every word must arrive, and the text shows as it's heard. See ai-gateway/docs/voice-messages.md |
| Sidebar state and notifications | Polling | The harness and each module's API | Seconds of delay are fine |
| Model and tool calls | Not applicable | ai-gateway-llm, and later ai-gateway-tools |
One place for keys, audit, limits and policy |
| Component | How it scales | Pinned to one process | When one is lost |
|---|---|---|---|
ai-gateway-agent, workbench backend |
Add replicas | Nothing | Clients reconnect and resume |
ai-gateway-llm |
One replica while quotas matter | Usage counters, and the audit file on its own persistent volume, unless audit is in Postgres | In-flight calls fail. With a quota set, the counters are taken back from audit at start. Audit stays on the volume, or in Postgres |
ai-gateway-tools |
Add replicas | Its tool audit file, and later its evidence outbox | Tool calls fail and are retried by the model |
| LiveKit nodes | Add nodes on one Redis | A room, to its node | Its calls drop, and clients rejoin |
| Voice workers | Add workers | A call, to its worker | The lease runs out, and another worker joins |
| Harness replicas | Add replicas, never remove them | A session, to its replica, for life | Its sessions wait for the volume to remount |
auth-server, t10-collab, t10-agent-control, later modules |
Add replicas on Postgres | Nothing | Unchanged. Routers keep their last snapshot |
| Redis | One highly available instance | Not applicable | New calls fail |
Nothing here has a capacity number yet. ai-gateway/docs/design.md covers the text path and tenant limits, t10-livekit-agent/docs/scaling.md voice workers and the rules during a call, and agent-pi/docs/replicas.md harness replicas.
Key data flows#
A live-call turn#
sequenceDiagram participant Mac as Mac client participant Auth as auth-server participant LK as LiveKit server participant Voice as t10-livekit-agent participant Pi as agent-pi participant LLM as ai-gateway Mac->>Auth: 1 Admission request Auth->>Mac: 2 Room token, grant Mac->>LK: 3 Join room, publish microphone LK->>Voice: 4 Audio, grant ID Note over Voice: 5 Transcribe speech Voice->>Auth: 6 Exchange grant Auth->>Voice: 7 Delegated token Voice->>Pi: 8 session.interrupt Pi->>LLM: 9 Model rounds Pi->>Voice: 10 text.delta, SSE Note over Voice: 11 Text to speech Voice->>LK: 12 Audio, captions LK->>Mac: 13 Reply plays
Steps 1 to 3 run once per call. Steps 6 and 7 run only when the cached delegated token needs replacing, and each new token rechecks the user. Barge-in stays local to the voice worker, which cuts its audio at once and tells the client.
A browser turn#
- The browser sends a prompt to the
workbenchbackend with its session cookie. - The backend adds the user's token and trace headers, and calls
session.promptthroughai-gateway-agent, which routes it to the session's replica. - Output arrives on the conversation's
GET /agentstream, not on the prompt's response. - If the connection drops, the browser reconnects with
Last-Event-ID. The run continues either way.
A scheduled run, proposed#
- At 7:00,
t10-automationsclaims the firing once, and creates a child grant from the person's standing grant, withtrg=schedule. - It calls
session.createthroughai-gateway-agent, with the firing asAgent-Request-Id, and the router places it on a pool withdurable_runs. - It sends the instruction with
session.prompt. The run's tool calls passai-gateway-tools, which applies the tenant's rules for scheduled runs. - The result reaches the person as a notification, and the conversation is in their sidebar.
Roadmap#
Each step is useful alone. Per-repo detail is in the design docs above.
| Area | Done | Next | Later |
|---|---|---|---|
| Communication and scaling | Voice claims and draining, update frames, both gateway roles, workbench and mobile on /agent, StatefulSets, local infra |
Load tests, production ingress, clustered LiveKit and TURN | Mobile and mini-program voice messages on /agent/voice |
| Agent contract | Steps 0 to 2: the contract and suite, routes from one file, the agent picker, the lightweight profile | Step 3: a second harness, first answering whether Codex's shell can be fully turned off | Steps 4, 5, 5a, 7 to 9: broker and proxy, a comparison pool, handoff, voice with narrowed voice tokens, delegation |
| Control plane | Steps 6a to 6c: /v1/me/access, t10-agent-control, t10-console, tenant settings, one admin address per role |
||
| Runs and triggers | R1 to R3: grant triggers and standing grants, idempotent create, origin, placement of unattended runs on durable_runs pools, t10-automations with schedules |
R8: tenant agent accounts, module events, webhooks | |
| Governance | R4 to R7: ai-gateway-tools with token checks, exchange, audit and tenant policy, placement by policy, entitlement, evidence with writer numbering, consent by re-call |
Observe mode, model rules, budgets, compliance roles | |
| Business modules | t10-collab, the module contract, the workbench plug-in refactor |
t10-notify, remaining t10-modkit extraction, the public modules ingress |
R1 to R3 give scheduled runs with no governance at all, and R4 doesn't wait for a second harness. R5 waits for R1, because rules on a trigger read the trg claim, and its check uses a scheduled run.
Gaps and open questions#
| Gap | Effect |
|---|---|
Token verifiers are still copied, and agent-pi has its own |
Parity depends on make check |
Global tracing has no production home. Only the local observability component receives it |
Production traces go nowhere, and phones have nowhere to send spans |
| No metrics, and no placement facts on spans | A router on an old snapshot, or a wrong weight, can't be seen. Why a conversation went to a pool can't be answered |
| Audit records have different shapes, and some lack reasons or refusals | No screen can show one person's or one tenant's actions across services. Tenant admins can't see platform changes that affect them |
Standalone voice's default LLM skips ai-gateway |
Those calls miss audit, usage and limits. Kubernetes uses the gateway |
| One delegated voice token fits every agent | A compromised agent could replay a caller's token at another agent |
| Voice can create sessions outside placement | t10-livekit-agent's session.list and session.create go to a fixed AGENT_PI_URL. Only t10-mac-client, a test harness, takes this path |
ai-gateway-llm trusts X-Tenant-ID |
Model rules and budgets are only as strong as each harness, until delegated tokens replace it |
| Grant constraints are unused | Record-level limits on an agent can't be set yet |
| No enterprise sign-in | Blocks most enterprise sales |
Harnesses return usage to a conversation's owner |
Only admins are meant to see usage. workbench's backend removes it from session.get for members, but a client calling a harness directly still gets it |
| A cancelled stream's tokens are unknown | Providers report counts at the end of a stream. These calls are marked usage_missing, so reports can undercount what was charged |
| Quota counted in memory per replica (taken back from audit at a restart), and model audit by default in one file on one volume | No budget can be sold across replicas. In the file, audit survives a restart but not a lost volume, and only that pod can read it. AUDIT_STORE=postgres keeps it in Postgres instead, readable by every replica; see ai-gateway's docs/design.md, "Where audit is kept" |
A router on a new pod while t10-agent-control is down has no snapshot |
Its copy is on an emptyDir, so it outlives a restarted container but not a rescheduled pod. Such a router answers 503 even for existing sessions until control is back |
A harness's agent setting is both its pool name and its agent name |
A second pool of an agent can't answer to the agent's name. Proposed: separate pool and agent settings |
Open questions
- When does the external security review of
auth-serverhappen? Public registration waits on it. - How are harness volumes protected? A lost volume loses its conversations, and no backup or replication is designed.
- What quotas do DashScope and the providers behind
ai-gatewayallow? They may cap growth first. - Where are callers? The design assumes one region.
- Where does the platform console's private ingress live? Locally it's a port-forward.
- Do harness terms allow hosted use? The Codex documentation appears to restrict app-server authentication in hosted services.
- What happens to sessions nobody reopens when a pool retires? They need a service-side export with no user token, the same gap as volume backups.
- How costly is an MCP proxy? R4 measures it before policy depends on it.
- Where do a tenant's own redaction rules run? Redaction has to happen inside the harness's host, which is the one place governance would reach into a harness.
Generated from t10’s own docs (bbc3cde). Spotted a problem? Tell us.