# Agent API Source: https://docs.vexa.ai/api/agent The control plane — dispatch a unit, stream a chat turn, manage routines, read the workspace. > [!WARNING] > > **Not available on the hosted service, and not available on Kubernetes.** The gateway mounts > `/agent/*` and resolves your key, but no agent-api workload is deployed on either — every route on > this page answers `502 {"detail":"upstream unreachable: ConnectError"}` on > `https://api.cloud.vexa.ai`. Verified 2026-08-18 against the hosted gateway and the production > cluster. Tracked as > [vexa-platform#324](https://github.com/Vexa-ai/vexa-platform/issues/324). > > The two streamed routes fail worse than the rest: `POST /agent/chat` and `GET /agent/meeting/stream` > open `200 text/event-stream` and close with **zero bytes** — no `error` frame, no `done` — so a > client reads a successful empty stream rather than an outage. Same issue. > > This page documents the surface as built and as it runs on self-hosted Docker Compose. Do not build > a hosted integration against it until the tracking issue closes. The agent API is Vexa's **control plane**. It turns triggers into [dispatches](/core/agents) and streams their output; it does no execution itself — it validates and hands off to the [runtime](/core/runtime). Endpoints are fronted by the gateway, which carries authentication and per-route scopes; the service itself is internal. > [!NOTE] > > **Identity is server-derived.** Public clients reach these routes through the gateway under the > canonical prefix **`/agent/*`**. The gateway resolves your > `X-API-Key` → user and injects `X-User-Id`; agent-api derives the workspace/chat/quota **`subject`** from > that header (P20). A `subject` in a request body or query string is **ignored** — never trust the client > for identity. The `$AGENT_API/api/...` paths below address the internal service directly (which requires > `X-User-Id`); through the gateway the same routes are `$API_BASE/agent/...` with `X-API-Key`. ## Health ```bash GET /health theme={null} curl "$AGENT_API/health" # → {"status":"ok","service":"agent-api","checks":{"dispatcher":true}} ``` ## Models `GET /api/models` → the resolved model names for this subject: ```json theme={null} { "chat_model": "...", "agent_model": "...", "streaming_model": "...", "meeting_model": "..." } ``` ## Dispatch a unit `POST /invocations` — the sink every trigger funnels through. Body is a conformant `unit.v1` Invocation (the same envelope `units.make_dispatch` builds); it is validated and dispatched to the runtime. `400` if the envelope is non-conformant. ```bash POST /invocations → 202 theme={null} curl -X POST "$AGENT_API/invocations" -H "Content-Type: application/json" -d '{ "identity":{"subject":"u_jane","launcher":"schedule:u_jane"}, "runner":"claude-code", "workspaces":[{"id":"u_jane","mode":"rw"}], "trigger":"scheduled", "start":{"entrypoint":{"inline":"Summarize overnight activity."}} }' # → {"workload_id":"agent-..."} ``` The shape is: `identity.subject` + `identity.launcher`, `runner`, a `workspaces` list (`mode` is `rw` for trusted triggers — `message`/`scheduled` — else `ro`), the `trigger`, and a `start` that is either `{"entrypoint":{"inline":"..."}}`, `{"entrypoint":{"path":"..."}}`, or `{"session":{"ref":"..."}}`. There is **no** top-level `subject`, `workspace_repo`, or `plan` field. ## Chat (streamed) `POST /api/chat` — body `{ prompt, session?, active? }` (`subject` is server-derived, not sent). Returns **Server-Sent Events**; each `data:` line is one frame: | frame | fields | | - | - | | `message-delta` | `text` | | `tool-call` | `tool`, `args`, `callId` | | `tool-result` | `callId`, `ok`, `summary` | | `commit` | `sha` | | `rejected` | `violations` | | `done` | `reply`, `sessionId`, `ok` (+ `detail` when a failure's raw provider text was rewritten) | | `error` | `message` — the turn was refused before dispatch (e.g. no model credential configured); actionable, names what to set | ```bash POST /api/chat (SSE) theme={null} curl -N -X POST "$AGENT_API/api/chat" -H "Content-Type: application/json" \ -H "X-User-Id: u_jane" \ -d '{"prompt":"Record that Acme renewed."}' ``` `POST /api/chat/reset` `{ session? }` → `{ "ok": true }` · `GET /api/sessions` → `{ "sessions": [...] }` · `GET /api/sessions/{session}/history` → `{ "turns": [...] }` (tolerant — a missing transcript returns `{ "turns": [] }`). ## Routines ```bash POST /api/routines → 201 theme={null} curl -X POST "$AGENT_API/api/routines" -H "Content-Type: application/json" \ -H "X-User-Id: u_jane" -d '{ "name":"Morning brief","cron":"0 8 * * 1-5", "prompt":"Brief me from overnight activity.","run_now":true }' # → {"routine":{...},"job_id":"job_...","ran_now":true} ``` `GET /api/routines` → `{ "routines": [...] }` · `PATCH /api/routines/{name}/enabled` `{ enabled }` → `{ "ok": true, "name", "enabled", "reconcile" }` · `DELETE /api/routines/{routine_id}` → `{ "ok": true, "routine_id": "..." }`. ## Events `POST /events` — body is an `event.v1` Event (an integration firing). It maps to a `unit.v1` Invocation and dispatches. `400` if non-conformant; `422` if the event carries no plan. ```bash POST /events → 202 theme={null} curl -X POST "$AGENT_API/events" -H "Content-Type: application/json" -d '{ "name":"email.received","subject":"u_jane", "source":{"uri":"mailbox://u_jane/INBOX/AB12CD"}, "plan":{"prompt":"Triage this email into tasks."} }' # → {"workload_id":"agent-...","trigger":"event"} ``` ## Live meeting copilot A live-meeting copilot is itself driven through `make_dispatch`; the id invariant is `meeting_id == session_uid == native_id`. * `POST /api/meeting/start` `{ native_id, platform, title? }` → `202`, returns the live-meeting record. * `POST /api/meeting/process` `{ native_id, platform, on }` → toggle opt-in processing. `on:true` resumes from the per-meeting cursor (`{ ..., "processing":true, "resumed_from":"" }`); `on:false` clears the flag and freezes the cursor (`{ ..., "processing":false }`). * `GET /api/meeting/relay-health` → typed transcript-relay health (a stale bot key surfaces as `native_resolve:{ok:false,kind:"unauthorized"}` rather than silent dead air). * `GET /api/meeting/stream?meeting_id=&session_uid=` (SSE) → the merged transcript + copilot-output feed. Resumable: every event carries an SSE `id:`; on reconnect echo it as `Last-Event-ID` to resume gaplessly. Event types: `transcript`, `card`, `message-delta`, `tool-call`, `ping`, `meeting-end`. ## Workspace `GET /api/workspace/tree?hidden=` → `{ "files": ["kg/entities/..."] }` · `GET /api/workspace/file?path=` → `{ "path": "...", "content": "..." }` (`404` if absent) · `GET /api/workspace/git` → `{ branch, changes, commits }` · `POST /api/workspace/upload` (multipart `files`, ≤25 MB each) → `{ "files": [{ name, path }] }` · `POST /api/workspace/init` → `201` `{ workspace, seeded, already_initialized }` (idempotent) · `GET /api/workspace/attached` → `{ active, parked }` · `POST /api/workspace/swap` `{ repo?, ref?, token? }` → attach an external git repo as the active workspace (parks the current one; omit `repo` to swap back to the seed). (All workspace routes derive `subject` from `X-User-Id` — no `subject` query parameter.) # Calendar API Source: https://docs.vexa.ai/api/calendar Connect and manage multiple ICS calendars, run synchronization, and inspect the calendar metadata persisted on planned meetings. The Calendar API manages named ICS connections and imports upcoming events into the ordinary [`meetings`](/api/meetings) lifecycle. Each connection has its own auto-join policy and bot name. All requests use the same base URL and API-key authentication as the rest of Vexa ([base URL & auth](/api/meetings#base-url--auth)): ```bash theme={null} -H "X-API-Key: $API_KEY" ``` The ICS address is a credential. Write it only in a connection request; Vexa never returns it in full. See [Calendar sync](/how-to/calendar-sync) for Google Calendar and Outlook setup. ## Calendar connection ```json theme={null} { "id": "f52a1067-6f0d-43c5-9641-54da51d3610f", "name": "Work", "ics_url_set": true, "ics_url_masked": "calendar.google.com/….ics", "auto_join": true, "bot_name": "Work Notes", "enabled": true } ``` | Field | Type | Meaning | | - | - | - | | `id` | string | Stable opaque connection ID. Use it in update, delete, and sync paths. | | `name` | string | User-visible calendar name, 1–100 characters. | | `ics_url_set` | boolean | Whether this connection has a secret feed address. | | `ics_url_masked` | string or null | Host plus a short suffix for recognition; never the credential. | | `auto_join` | boolean | Whether meetings imported from this source arm unattended join. | | `bot_name` | string | Bot display name for this calendar, 1–100 characters. | | `enabled` | boolean | Whether background discovery includes this connection. | ## List calendars ```bash GET /user/calendars theme={null} curl "$API_BASE/user/calendars" -H "X-API-Key: $API_KEY" ``` ```json Response — 200 theme={null} { "calendars": [ { "id": "f52a1067-6f0d-43c5-9641-54da51d3610f", "name": "Work", "ics_url_set": true, "ics_url_masked": "calendar.google.com/….ics", "auto_join": true, "bot_name": "Work Notes", "enabled": true } ] } ``` Deleted connections are omitted. An account can have up to ten active connections. ## Connect a calendar ```bash POST /user/calendars theme={null} curl -X POST "$API_BASE/user/calendars" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{ "name": "Work", "ics_url": "https://calendar.google.com/calendar/ical/…/private-…/basic.ics", "auto_join": true, "bot_name": "Work Notes" }' ``` Returns the masked Calendar connection with **201 Created**. **name** `string` *required* Display name for this connection. Leading/trailing whitespace is removed; maximum 100 characters. **ics\_url** `string` *required* Secret HTTP(S) ICS address. Maximum 2,048 characters. Embed-page URLs are rejected with setup guidance. **auto\_join** `boolean` (default: true) Arm meetings imported from this source for unattended join. **bot\_name** `string` (default: Vexa) Bot display name for this calendar. When omitted, Vexa uses the legacy user-wide fallback and then `Vexa`. The eleventh active connection returns **409 Conflict**. Invalid names, bot names, or feed URLs return **422 Unprocessable Entity**. Creating the connection does not itself wait for provider publication. Call the connection's [Sync now](#sync-now) endpoint immediately when you want a fresh result. The hosted dashboard ([dashboard.vexa.ai](https://dashboard.vexa.ai)) calls it for you right after Connect; a self-hosted deployment, or any client driving this API directly, has to make that call itself. ## Update one calendar ```bash PATCH /user/calendars/{calendar_id} theme={null} curl -X PATCH "$API_BASE/user/calendars/$CALENDAR_ID" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"name":"Customer calls","auto_join":true,"bot_name":"Customer Notes"}' ``` Supply any subset of: | Field | Effect | | - | - | | `name` | Rename only this connection. | | `ics_url` | Replace its secret feed address. | | `auto_join` | Change this source's policy. The next sync recomputes planned-meeting auto-join. | | `bot_name` | Change this source's bot display name. The next sync copies it into planned-meeting provenance. | | `enabled` | Include/exclude the feed from background discovery without deleting its stored configuration. | Returns the updated masked connection with **200 OK**. An unknown or deleted ID returns **404 Not Found**. A PATCH does not run synchronization automatically; call Sync now after changing fields that must be reconciled onto existing planned meetings. The hosted dashboard ([dashboard.vexa.ai](https://dashboard.vexa.ai)) calls it for you after a change to auto-join or bot name; drive this API directly and the call is yours to make. ## Disconnect one calendar ```bash DELETE /user/calendars/{calendar_id} theme={null} curl -X DELETE "$API_BASE/user/calendars/$CALENDAR_ID" \ -H "X-API-Key: $API_KEY" ``` Returns **204 No Content**. Vexa immediately removes the stored secret and retains a secret-free deletion marker long enough for synchronization to remove this source from planned meetings. Meetings also referenced by another calendar remain. A calendar-owned planned meeting with no remaining source is removed; an adopted manual plan remains. Live and terminal meetings are never rewritten by calendar cleanup. An unknown or already deleted ID returns **404 Not Found**. ## Synchronization ### Sync now ```bash POST /user/calendars/{calendar_id}/sync theme={null} curl -X POST "$API_BASE/user/calendars/$CALENDAR_ID/sync" \ -H "X-API-Key: $API_KEY" ``` ```json Response — 200 theme={null} { "calendar_id": "f52a1067-6f0d-43c5-9641-54da51d3610f", "calendar_name": "Work", "last_sync": "2026-08-14T15:30:00+00:00", "last_error": null, "counts": {"created": 3, "updated": 1, "cancelled": 0} } ``` A feed fetch or parse problem is a successful HTTP response with a non-null `last_error`; the connection exists and the sync attempt was recorded. An unknown, disabled, or deleted connection returns **404 Not Found** because it is not available to the sync discovery edge. A deployment with calendar sync unwired returns **503 Service Unavailable**. > [!WARNING] > > **Two divergences from this contract are open on the service today** > ([#1240](https://github.com/Vexa-ai/vexa/issues/1240)): > > * A **disabled** connection answers `200` with `last_error: null` and zero counts — and advances > `last_sync` — instead of the `404` above. A client that pauses a feed and keeps polling is told > the feed is current. Until that is fixed, do not read a `200` here as proof the feed was fetched; > check `enabled` on the connection. > * On the error path the response omits `counts` rather than returning zeros. ### Read the last sync result ```bash GET /user/calendars/{calendar_id}/sync theme={null} curl "$API_BASE/user/calendars/$CALENDAR_ID/sync" \ -H "X-API-Key: $API_KEY" ``` Returns the latest stamp with **200 OK**, or `{}` when this connection has no retained sync stamp. The stamp is operational state in Redis; the calendar connection and imported meetings are durable in Postgres. Background cadence is controlled by `CALENDAR_SYNC_INTERVAL_S` (self-hosted default: 300 seconds; current hosted rollout: 60 seconds). Provider publication delay is additional. See [How often Vexa checks the feed](/how-to/calendar-sync#how-often-vexa-checks-the-feed). ## Compatibility: singular calendar endpoints These endpoints remain for existing single-calendar clients. New integrations should use the plural API above. | Endpoint | Behavior | | - | - | | `GET /user/calendar` | Returns the first active connection's masked URL and auto-join state; `bot_name` is the legacy user-wide fallback. | | `PUT /user/calendar` | Creates or updates the first active connection. `ics_url: null` disconnects it. `bot_name` also updates the legacy user-wide fallback. | | `GET /user/calendar/sync` | Returns the aggregate last-sync stamp across active connections, or `{}` before a sync. | | `POST /user/calendar/sync` | Synchronizes all active connections and returns aggregate counts plus a `calendars` array of per-connection stamps. | `POST /user/calendar/sync` returns **404 Not Found** when no active feed is connected and **503 Service Unavailable** when sync is not wired. ## Imported meeting metadata Every imported event becomes an ordinary planned meeting. Link-less events are also imported with `platform: "unknown"`; they remain visible but cannot auto-join until a recognizable Meet, Zoom, or Teams link appears. The normalized fields include `data.title`, `data.scheduled_at`, `data.attendees`, the parsed platform/native ID, and the constructed meeting URL. Multi-calendar provenance is under `data.calendar_sources`; API responses return the projected shape: ```json theme={null} { "data": { "calendar_sources": [ { "id": "f52a1067-6f0d-43c5-9641-54da51d3610f", "name": "Work", "auto_join": true, "bot_name": "Work Notes" } ] } } ``` Every response edge projects `calendar_sources` to exactly these four keys. The full ICS event snapshot (properties, parameters, recurrence context) is internal reconciliation state the sync keeps per source; it never rides an API response, so calendar payloads such as event descriptions and attendee addresses are not exposed to transcript viewers or workspace members. The configured secret feed URL is likewise redacted everywhere and never appears as provenance. See [What Vexa stores](/how-to/calendar-sync#what-vexa-stores) for the complete persistence model. ## Error summary | Status | Operations | Meaning | | - | - | - | | `200` | list, update, sync state/run, singular get/put | Request completed. A sync failure is represented by `last_error`. | | `201` | create | Calendar connection created. | | `204` | delete | Calendar disconnected; response has no body. | | `401` / `403` | all | API key missing, invalid, or not authorized for the route. | | `404` | update, delete, or POST sync | Calendar unavailable, deleted, disabled for sync, or no singular feed connected. | | `409` | create | Ten active connections already exist. | | `422` | create/update/singular put | Invalid name, bot name, or ICS URL. | | `503` | sync endpoints | Calendar sync is not wired in this deployment. | # Errors Source: https://docs.vexa.ai/api/errors Status codes, error shape, and what each one means across the Meetings and Agent APIs. All public routes are fronted by the gateway and return conventional HTTP status codes. Error bodies follow FastAPI's convention — a JSON object with a `detail` field: ```json theme={null} { "detail": "Missing API key" } ``` `detail` is a human-readable string for client errors, or a list of field errors for request-validation failures (`422`). ## Status codes | Status | When | Example `detail` | | - | - | - | | `200` / `201` / `202` | success (`201` create, `202` accepted-for-dispatch) | — | | `204` | success, no body (e.g. token deleted, `DELETE /meetings/{id}`) | — | | `400` | malformed request — non-conformant envelope on `POST /invocations` | `Invocation envelope is not conformant` | | `401` | missing or invalid API key — no/unknown/revoked `X-API-Key` | `Missing API key` · `Invalid API key` | | `403` | under-scoped key, or bad/missing admin token | `Insufficient scope for this endpoint` · `Invalid or missing admin token.` | | `404` | resource not found — user, token, meeting, or workspace file | `User not found` · `not found` | | `422` | semantic validation failed — bad field, invalid scope, event with no plan | `Invalid scope(s): ['foo']. Valid: ['bot', 'browser', 'tx']` | | `429` | rate-limited — per-IP edge throttle or per-user limiter; honor the `Retry-After` header (seconds) | — | | `500` | unexpected server error | — | ## By surface **Authentication / admin** (`/admin/*`) * `403` on a missing **or** wrong admin token (`detail: "Invalid or missing admin token."`). * `404` minting a token for a non-existent user id. * `422` minting with an invalid scope (valid: `bot`, `tx`, `browser`). **Meetings API** (`/meetings`, `/bots`, `/transcripts/*`) * `401` on a missing or invalid `X-API-Key`; `403` when the key lacks the route's scope. * `404` reading a transcript for a meeting that was never started. * `POST /meetings` (plan) → `409` when a non-terminal meeting already exists for that link; `422` on an unrecognizable `meeting_url`. * `PATCH /meetings/{id}` → `409` once the bot lifecycle owns the record (a planned meeting is only editable while it's still planned); `409` when the new link collides with another active meeting. * `DELETE /meetings/{id}` deletes a plan before spawn or deletes transcript/recording artifacts after the lifecycle is terminal; it returns `409` while the meeting is in flight. * `POST /bots` → `409` when a bot is already active on that link (a *planned* record on the link is fine — the spawn claims it); `429` past your concurrency limit. * `DELETE /bots/{platform}/{native_meeting_id}` → `200` with a body (`{"status":"stopping","meeting_id":…}`), not `204`. * A bot that fails to join surfaces in `GET /bots/status` rather than as an HTTP error on `POST /bots` — see [Troubleshooting](/troubleshooting#bot-wont-join). > [!WARNING] > > **The concurrency refusal does not match this contract today.** Past your concurrency limit > `POST /bots` answers `403` with an object `detail` > (`{"code":"service_not_allowed","reason":"concurrency_limit_reached","decision_id":…}`), not the > documented `429` with a string. A client that treats `403` as an auth failure will stop instead of > backing off — until this is fixed, branch on the `reason` field. > Tracked as [#1240](https://github.com/Vexa-ai/vexa/issues/1240). **Calendar API** (`/user/calendar*`) — see [Calendar API → Error summary](/api/calendar#error-summary). **Agent API** (`/agent/*`) — **not served on the hosted service or on Kubernetes**; every route answers `502 {"detail":"upstream unreachable: ConnectError"}` there ([vexa-platform#324](https://github.com/Vexa-ai/vexa-platform/issues/324)). On a deployment that does run agent-api: * `POST /invocations` → `400` if the `unit.v1` envelope is non-conformant. * `POST /events` → `400` if the `event.v1` event is non-conformant; **`422` if the event carries no plan**. * Workspace reads → `404` (`detail: "not found"`) if the path is absent (`GET /agent/workspace/file?path=...`). ## Streaming errors Streamed endpoints (`POST /agent/chat`, `GET /agent/meeting/stream`) open with `200` and report problems **in-band** as SSE frames, not as a status code: * `rejected` — a write was blocked by governance; the frame carries `violations`. * `done` with `ok: false` — the turn ended unsuccessfully. * On a dropped meeting stream, reconnect with the last `id:` echoed as `Last-Event-ID` to resume gaplessly. On the hosted service and on Kubernetes both streams open `200` and close with **zero bytes** — no frame at all, because agent-api is not deployed. Do not read a successfully-opened stream as a healthy one ([vexa-platform#324](https://github.com/Vexa-ai/vexa-platform/issues/324)). ## Rate limits Two layers gate the gateway, in order: 1. **Per-IP edge throttle (pre-auth).** An optional fastapi-guard edge layer caps requests per client IP *before* the API key is validated — so an IP flooding invalid keys, or rotating many keys from one IP to defeat the per-user limiter, is answered with `429` at the edge and never reaches admin-api. An IP that keeps offending past a threshold is **auto-banned for a window**. **On by default everywhere** — code, compose and Helm — so you opt out, not in: `GUARD_ENABLED=false` (or `gateway.guard.enabled=false`) removes the layer, `GUARD_RATE_LIMIT_RPM=0` keeps it installed but stops rate limiting. See [Configuration → Gateway edge protection](/configuration#gateway-edge-protection). 2. **Per-user limiter (post-auth).** A token-bucket limiter keyed by user id fires *after* the key is resolved — it catches one token driving too much traffic across many IPs. **ON** by default: a bucket of `GATEWAY_RATE_LIMIT_BURST` (120) tokens refilled at `GATEWAY_RATE_LIMIT_RPS` (40)/s, off only when `GATEWAY_RATE_LIMIT_DISABLED` is set. See [Configuration](/configuration). A throttled request returns `429` with a `Retry-After` header (seconds) — honor it before retrying. Beyond rate limits, throughput is bounded by your own infrastructure and per-user concurrency (`max_concurrent_bots`, set when the user is created). The hosted service additionally applies plan-based limits. # Meetings API Source: https://docs.vexa.ai/api/meetings Plan meetings ahead, sync your calendar, send a bot, get the real-time transcript, manage the bot, retrieve recordings. The Meetings API covers a meeting's whole life: **plan** it ahead (or import it from a calendar), **send a bot** into the call (or let auto-join do it), and read the **transcript in real time**. It is the public Vexa API — the same surface whether you use the hosted service or self-host. ## Base URL & auth | | | | - | - | | Hosted | `https://api.cloud.vexa.ai` | | Self-hosted | `http://localhost:18056` (the gateway; `API_GATEWAY_HOST_PORT`, default `18056`) | Every request carries your key: ```bash theme={null} -H "X-API-Key: " ``` > [!TIP] > > **Hosted, no install:** [connect your agent](https://vexa.ai/connect?utm_source=docs\&utm_medium=tip\&utm_campaign=api-meetings) (Claude Code, Codex, Cursor) or [get an API key](https://vexa.ai/start?utm_source=docs\&utm_medium=tip\&utm_campaign=api-meetings) (free credit, no card required). Self-hosting: [Deployment](/deployment). ## Platforms Pass one of these as `platform`: | Platform | `platform` value | | - | - | | Google Meet | `google_meet` | | Zoom | `zoom` | | Microsoft Teams | `teams` | | Jitsi Meet | `jitsi` \* | The bot joins like any participant — no plugins, no host configuration. \* **Jitsi: transcripts observed on the hosted service; validation with real participants is open.** Meet, Zoom and Teams are production. On 2026-08-20 a Jitsi run on the hosted service with two synthetic speakers returned 41 transcript segments, 35 of them attributed to a speaker ([#883](https://github.com/Vexa-ai/vexa/issues/883), closed). Validation with real participants is still open: [#570](https://github.com/Vexa-ai/vexa/issues/570). For `teams`, a meeting is addressed either by its **numeric meeting ID** (10–15 digits, the one Teams prints beside a passcode) or by the **thread id** from a `…/l/meetup-join/19:meeting_…@thread.v2` link. With the numeric ID, send the passcode as `passcode` — the bot joins at `…/meet/?p=`, and the passcode is kept off the stored `constructed_meeting_url` and out of the logs. Add `teams_base_host` for a non-default cloud (`teams.live.com` for personal meetings, `gov.teams.microsoft.us` / `dod.teams.microsoft.us` for GCC-High and DoD); hosts outside the Teams web clients are rejected with `422`. Sending the full `meeting_url` settles host and passcode together. Only `passcode` is read. `password`, `meeting_password` and similar aliases are rejected with a `422` naming the right field, rather than accepted and dropped. For `jitsi`, the full `meeting_url` is **required** (like Zoom): a Jitsi room name is scoped to a deployment — `MyRoom` exists on meet.jit.si *and* on every self-hosted instance — so only the URL says which one to join. The `native_meeting_id` reflects that scoping: the bare room name on meet.jit.si (`MyRoom`), and `room@host` on any other deployment (`MyRoom@video.example.org`) — so same-named rooms on different deployments never collide. A password-protected room is joined by passing the optional `passcode` field. To make **calendar sync** recognize a self-hosted deployment's links, list its hostnames in the `VEXA_JITSI_HOSTS` env (comma-separated). On Jitsi the transcript also carries the meeting's **chat**: each chat message arrives as a segment with `source: "chat"` (the sender is the `speaker`), and speaker names come from the conference's own dominant-speaker signal. ## Meeting statuses A meeting is **one record from plan to transcript**: | Phase | `status` values | Who owns it | | - | - | - | | Planned (intent) | `idle` (no time) · `scheduled` (time set) | you — freely editable | | Live (bot FSM) | `requested` · `joining` · `awaiting_admission` · `needs_help` · `active` · `stopping` | the bot lifecycle | | Terminal | `completed` · `failed` | — | Sending a bot to a planned meeting (yours or auto-join's) **upgrades the same record in place** — its title, workspace binding, and transcript stay together. `PATCH`/`DELETE` work only while the record is still planned; once the bot lifecycle owns it they answer `409`. ## Plan a meeting Create a meeting **before it happens** — no bot is spawned. All fields are optional: a plan can be just a title, and the link can be attached later. **title** `string` What the meeting is about — shown in the Meetings list. **scheduled\_at** `string` ISO-8601 start time. Present → status `scheduled` (and [auto-join](#auto-join) arms); absent → `idle`. **meeting\_url** `string` A Meet/Zoom/Teams link — parsed server-side into `platform` + `native_meeting_id`. Unrecognized links are rejected with `422`. **workspace\_id** `string` Bind the meeting to a shared workspace — its members then see the meeting, its live feed, and the transcript. **auto\_join** `boolean` Send the bot automatically at start time. Default `true`. ```bash POST /meetings theme={null} curl -X POST "$API_BASE/meetings" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"title":"Q3 kickoff with Acme","scheduled_at":"2026-07-10T15:00:00Z", "meeting_url":"https://meet.google.com/abc-defg-hij","workspace_id":"ws-acme"}' ``` Returns `201` with the meeting record. `409` when a non-terminal meeting already exists for the same link. ### Edit a plan or delete meeting artifacts Planned meetings are addressed **by record id** (a plan without a link has no platform/native path). Send only the fields you're changing; `null` clears a field (`scheduled_at: null` flips the status back to `idle`, `meeting_url: null` detaches the link, `workspace_id: null` unbinds). ```bash PATCH /meetings/{meeting_id} theme={null} curl -X PATCH "$API_BASE/meetings/12345" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"scheduled_at":"2026-07-10T16:00:00Z","auto_join":false}' ``` ```bash DELETE /meetings/{meeting_id} theme={null} curl -X DELETE "$API_BASE/meetings/12345" -H "X-API-Key: $API_KEY" ``` `PATCH` is plan-only. `DELETE` has two deliberately distinct meanings: * For an `idle`/`scheduled` plan, it deletes the plan row. * For a `completed`/`failed` meeting, it deletes durable transcript rows, transcript-derived notes/shares, recording objects from primary object storage, and recording metadata. The terminal meeting row remains as lifecycle evidence, but transcript reads return `404`. Both answer an owner-indistinguishable `404` for an unknown or unowned record. An in-flight meeting (`requested` through `stopping`) answers `409`; use `DELETE /bots/{platform}/{native_meeting_id}` to stop a bot, then delete artifacts after the meeting becomes terminal. The same edit/delete is also reachable **by native key** — `PATCH`/`DELETE /meetings/{platform}/{native_meeting_id}` — which resolves `(platform, native_meeting_id)` to your newest owned row and applies the same rules (`404` unknown/unowned, `409` while in flight). Use it when you address meetings by their join-link identity rather than the record id; `DELETE` answers `200` on this path (the by-record-id `DELETE` answers `204`). > [!WARNING] > > Deletion confirms erasure from the live Postgres/Redis state and configured primary object storage. > It does **not** claim immediate erasure from database snapshots, object-store version history, or > other backups; those residuals expire under the operator's deployment retention policy. ### Set the planned status by native key `PUT /meetings/{platform}/{native_meeting_id}/intent` writes only the two **user-owned** statuses — this is the route a dropdown drives, where `PATCH` is the route a form drives. ```bash PUT /meetings/{platform}/{native_meeting_id}/intent theme={null} curl -X PUT "$API_BASE/meetings/google_meet/abc-defg-hij/intent" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"intent":"scheduled","at":"2026-07-10T15:00:00Z"}' ``` | Field | Rule | | - | - | | `intent` | `idle` or `scheduled` only. Any FSM-owned status (`requested`, `active`, `completed`, …) is refused with `422`. | | `at` | ISO-8601 string. **Required** when `intent` is `scheduled`; ignored for `idle`. | Returns `200` with `{meeting_id, status, scheduled_at}`. `404` for a record you don't own. The write is idempotent — setting the status it already holds changes nothing and emits no WebSocket frame. ### Bind a meeting to a shared workspace `POST /meetings/{platform}/{native_meeting_id}/workspace` sets the meeting's `workspace_id`. Members of that workspace can then subscribe to the meeting's live transcript feed. Many meetings may point at one workspace. ```bash POST /meetings/{platform}/{native_meeting_id}/workspace theme={null} curl -X POST "$API_BASE/meetings/google_meet/abc-defg-hij/workspace" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"workspace_id":"ws-acme"}' ``` Returns `200` with `{"workspace_id": "ws-acme"}`. `422` when `workspace_id` is missing or empty; `404` for a record you don't own. `POST /meetings` accepts the same binding at creation time. ## api.v1 native-id support (per route) `api.v1` is sealed as a **file hash** (`contracts.seal.json`), which pins the schema document, not the running implementation. This table states, per route, whether the `(platform, native_meeting_id)` keying a 0.10 client uses is served by the 0.12 core: | Route | Native-id keying in 0.12 | | - | - | | `PATCH /meetings/{platform}/{native_meeting_id}` | **Yes** — resolves to your newest owned row. | | `DELETE /meetings/{platform}/{native_meeting_id}` | **Yes** — `200` on success (by-id path is `204`). | | `GET /bots/status` | **Yes** — body carries both `running_bots` (0.10) and `running`/`count` (0.12). | | `POST /transcripts/{platform}/{native_meeting_id}/share` | **Aliased** to the moved `POST /meetings/{platform}/{native_meeting_id}/share` mint. The response is the capability-token share (`{id, token, mode, expires_at}`), not the 0.10 public-URL `TranscriptShareResponse` — the public-URL-share backend is not in the 0.12 core. | | `GET /recordings/{recording_id}/media/{media_file_id}/download` | **Aliased** to the `.../raw` master byte stream (Range-capable). | | `GET /bots/{platform}/{native_meeting_id}/chat` | **Restored, empty** — the owner boundary is real; the message list is always empty (0.12 does not persist in-meeting chat server-side; chat flows live over the WS `va:…:chat` channel). | | `POST /bots/{platform}/{native_meeting_id}/chat` | **Not implemented** — no bot-command (send) backend in the 0.12 core. | | `POST /meetings/{meeting_id}/transcribe` | **Not implemented** — no on-demand re-transcribe backend in the 0.12 core. | > [!NOTE] > > **What the seal enforces now.** Because the file hash pins the *document* and not the *running > implementation*, CI now also runs a **reverse** conformance check (`gate:contract-conformance`): for > every `(path, method)` `api.v1` declares, the shipped gateway + meeting-api must serve it — otherwise > the route must be recorded in the audited `core/gateway/contracts/api.v1/KNOWN_GAPS.json` ledger (with > a reason + issue link), which the gate prints loudly on every run. A sealed endpoint renamed or dropped > without a ledger entry fails CI. The frozen golden examples are also driven against the real responses, > so a renamed response field (e.g. `running_bots` → `running`) fails too. The two **Not implemented** > rows above and the share **response-shape** divergence are the current recorded gaps — a client can rely > on the seal meaning "served, or explicitly listed as a gap", not merely "the schema file didn't change". ## Auto-join A `scheduled` meeting **with a link** is joined automatically: a background sweep sends the bot \~60 s before `scheduled_at` (never more than 10 min after — a stale plan is skipped, not joined late). Opt out per meeting with `auto_join: false`. Failures are loud: a concurrency-cap or spawn failure stamps `auto_join_error` into the meeting's `data` and retries after a backoff. Timing is tunable on a self-host — see [Configuration](/configuration). ## Calendar sync Connect up to ten named ICS feeds through the [Calendar API](/api/calendar). Each connection owns its auto-join policy and bot name. Sync imports every upcoming event as a planned meeting: events with Meet/Zoom/Teams links are armed for auto-join, while link-less events remain visible with `platform: "unknown"` until a link appears. Imported rows retain normalized scheduling/participant fields and the complete per-source ICS snapshot under `data.calendar_sources[].event`. Moves, cancellations, attendee changes, and custom provider metadata follow the feed only while the meeting remains planned; calendar sync never rewrites a meeting after the bot lifecycle claims it. > [!NOTE] > > The endpoints below are the **singular** compatibility routes, which address one feed. An account can > hold up to ten named connections, each with its own `auto_join` and `bot_name`, through > `/user/calendars` — the full contract is the [Calendar API](/api/calendar). New integrations should > use that. ```bash PUT /user/calendar theme={null} curl -X PUT "$API_BASE/user/calendar" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"ics_url":"https://calendar.google.com/calendar/ical/…/basic.ics","auto_join":true}' ``` See the [Calendar API reference](/api/calendar) for connection CRUD, per-connection sync endpoints, request/response schemas, compatibility endpoints, error statuses, and metadata persistence. See [Calendar sync](/how-to/calendar-sync) for Google Calendar and Outlook setup. ## Send a bot to a meeting **platform** `string` *required* `google_meet` · `zoom` · `teams` **native\_meeting\_id** `string` *required* The meeting id from the join URL (e.g. `abc-defg-hij`). **bot\_name** `string` Display name the bot uses in the call. Defaults to `Vexa`. **language** `string` ISO code (e.g. `en`). **Omitted** = auto mode: each STT window's language is detected independently and stamped on its segments' `language` field. **Set** = forced mode: every STT call is pinned to this code and every segment carries it. Granularity is the transcription window (a few seconds of one speaker's audio), not word-level; in auto mode a low-confidence detection on the Zoom/Teams (mixed-audio) lane discards the window rather than guessing. Undetermined windows yield `language: null`. (0.10's `allowed_languages` is not part of the 0.12 API.) **task** `string` `transcribe` (default) or `translate`. **transcribe\_enabled** `boolean` Whether this spawn should request transcription. **Resolution:** an explicit value wins; else the deployment env `TRANSCRIBE_ENABLED`; else `true`. Non-boolean values (other than the common string forms `true`/`false`/`1`/`0`/`yes`/`no`/`on`/`off`) are refused with `422` (`transcribe_enabled must be a boolean`). When the resolved value is `true` and no STT backend is configured, `POST /bots` answers **503** with a detail naming the unset keys, e.g. `no transcription backend configured — set it in Settings or environment variables TRANSCRIPTION_SERVICE_URL + TRANSCRIPTION_SERVICE_TOKEN`. "Settings" there means [`PUT /user/transcription`](/api/settings#transcription-backend). Set `false` for **capture-only** (bot may still join; no STT client is constructed) — on its own that persists nothing, see [Capture now, transcribe later](/how-to/deferred-transcription). **recording\_enabled** `boolean` Whether this spawn should persist an **audio** recording (see [Recordings](/how-to/recordings) — there is no video recording path). Same resolution pattern as `transcribe_enabled` against env `RECORDING_ENABLED` (default `true` at the env resolver; the service default when callers omit it follows the request/env chain). Capture-only (`transcribe_enabled=false`) is **not** the same as recorded — recording is gated separately. Set **both** to capture a meeting for transcription elsewhere: [Capture now, transcribe later](/how-to/deferred-transcription). ```bash POST /bots theme={null} curl -X POST "$API_BASE/bots" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"platform":"google_meet","native_meeting_id":"abc-defg-hij","bot_name":"Vexa","language":"en"}' ``` If a **planned** meeting exists for the same link, the spawn **claims it**: the same record moves to `requested`, keeping its title, `scheduled_at`, and workspace binding. `409` when a bot is already active on that link; `429` past your concurrency limit — see the [concurrency-refusal divergence](/api/errors#by-surface), which answers `403` today. With transcription requested (the default) and STT unconfigured, the spawn is **refused loud** — `503` naming `TRANSCRIPTION_SERVICE_URL` / `TRANSCRIPTION_SERVICE_TOKEN`. Two ways out: set the backend for your account over the API — [`PUT /user/transcription`](/api/settings#transcription-backend), which overrides the deployment default without a restart — or set those env vars for the whole deployment ([Configuration](/configuration#transcription-stt)). Capture-only: `{"transcribe_enabled": false}` (or `TRANSCRIBE_ENABLED=false` for the deployment). Configured and still failing? See [Troubleshooting](/troubleshooting#bot-joins-but-theres-no-transcript). ### Completion service provenance The signed `meeting.completed` webhook includes `data.meeting.service_provenance` when the meeting has complete producer-owned lifecycle facts: ```json theme={null} { "bot_admitted_at": "2026-07-28T10:05:00.000Z", "bot_departed_at": "2026-07-28T10:30:00.000Z", "bot_outcome": "served", "transcription_provider": "customer", "transcription_outcome": "served", "lifecycle_contract_version": "2026-07-28" } ``` `transcription_provider` is frozen when that bot is created: `vexa`, `customer`, or `none`. `bot_admitted_at` and `bot_departed_at` are the bot-observed lifecycle transitions, not meeting wall-clock time or delayed webhook receipt time. A bot that never reached `active` reports `bot_outcome: "never_admitted"` with both timestamps absent. The block never contains an endpoint URL, hostname, token, credential, meeting title, or transcript. If a legacy or mixed-version run lacks provider ownership or producer timestamps, the block is `null` or absent. Consumers must treat that as unresolved provenance; do not reconstruct it from `transcribe_enabled`, current user settings, endpoint URLs, or meeting start/end time. ## Get the transcript ```bash GET /transcripts/{platform}/{native_meeting_id} theme={null} curl -H "X-API-Key: $API_KEY" \ "$API_BASE/transcripts/google_meet/abc-defg-hij" ``` ```json Response theme={null} { "segments": [ { "segment_id": "sess_9c2a:spk1:12400", "speaker": "Jane Liu", "text": "Let's lock the renewal pricing by July 1.", "start": 12.4, "end": 15.1, "language": "en", "completed": true, "confidence": 0.93, "words": [{ "word": "Let's", "start": 12.4, "end": 12.6, "probability": 0.98 }] } ] } ``` Segments stream in while the meeting runs — poll this endpoint, or subscribe over **WebSocket** for live, per-segment updates. Live drafts arrive as `completed: false` and are replaced by `completed: true` confirmations. The same response is reachable **by record id**, which is what you have after planning a meeting that has no link yet: ```bash GET /transcripts/by-id/{meeting_id} theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/transcripts/by-id/12345" ``` Both forms return the meeting record alongside its `segments` — `id`, `platform`, `native_meeting_id`, `status`, `start_time`, `end_time`, `constructed_meeting_url`, `notes`, `recordings`, and the full `data` detail. `404` for an unknown record or one you don't own. ## Manage the bot ```bash Update config — PUT /bots/{platform}/{native_meeting_id}/config theme={null} curl -X PUT "$API_BASE/bots/google_meet/abc-defg-hij/config" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"language":"es","task":"translate"}' ``` ```bash Stop / leave — DELETE /bots/{platform}/{native_meeting_id} theme={null} curl -X DELETE "$API_BASE/bots/google_meet/abc-defg-hij" -H "X-API-Key: $API_KEY" ``` Stop answers `200` with `{"status":"stopping","meeting_id":…,"also_stopped":[],"cancelled":[]}`. ```bash Running bots — GET /bots/status theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/bots/status" ``` ```bash Make the bot speak — POST /bots/{platform}/{native_meeting_id}/speak theme={null} curl -X POST "$API_BASE/bots/google_meet/abc-defg-hij/speak" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"text":"Thanks everyone, wrapping up."}' ``` > [!NOTE] > > **Config** (`PUT …/config`, change language/task mid-call) and **speak** (`POST …/speak`, TTS into the > call) ride the live bot-control plane and are not yet wired in the v0.12 open-core stack — they currently > return `404`. Send-a-bot, stop, **running bots** (`GET /bots/status`), list, and transcripts are live. ```bash List meetings — GET /meetings theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/meetings" ``` ```bash Single meeting — GET /meetings/{meeting_id} theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/meetings/12345" ``` ### List rows are slim; detail is full The two list endpoints — `GET /bots` and `GET /meetings` — return **lightweight rows**. Each row keeps its light metadata (id, status, times, `title`, connected docs) but **omits the heavy `data` detail keys**: `speaker_events`, `bot_logs`, `recordings`, `status_transition`, `chat_messages`, `error_details`, `last_error`, and the complete `calendar_sources` event snapshots. Compact calendar identity such as `calendar_connection_id`, `calendar_uid`, and `scheduled_at` remains available in a list row. Fetch a meeting's full `data` from `GET /meetings/{meeting_id}` — the detail endpoint is unaffected and still returns every key. The list is also **paged**: with no `limit`, a default page size of `50` applies (pass `limit`/`offset` to page explicitly). `GET /bots` returns `has_more: true` when more rows remain past the current page. Pass `exclude_planned=true` to either endpoint when rendering run/transcript history: the server removes `idle` and `scheduled` plans before applying `limit` and `offset`. An explicit `status=...` filter takes precedence. This keeps future Calendar entries on schedule surfaces without letting them consume a history page. ## Speaker-attributed transcripts Each segment carries **word-level timestamps** (`words[]`) and a `confidence`, and most segments are **diarized** — attributed to a bound speaker display name. **Attribution is not guaranteed:** when the binder cannot resolve a turn it publishes the segment with an **empty speaker** rather than guessing, so your client must handle unattributed segments. We do not yet publish a measured rate for the current release; [#868](https://github.com/Vexa-ai/vexa/issues/868) tracks one known cause. Speaker attribution is text-level (who said what), via speaker binding / clustering / captions — *not* separate audio tracks. Times are seconds from session start; `absolute_start_time` / `absolute_end_time` give wall-clock. The same segments arrive **live** (`completed: false`, a pending draft) and then **confirmed** (`completed: true`) — the gateway forwards the confirmed-plus-pending bundle to subscribers as the meeting runs. ## Meeting participants ```bash GET /meetings/{platform}/{native_meeting_id}/participants theme={null} curl "$API_BASE/meetings/google_meet/abc-defg-hij/participants" -H "X-API-Key: $API_KEY" ``` ```json theme={null} { "meeting_id": 12345, "platform": "google_meet", "native_meeting_id": "abc-defg-hij", "participants": [ {"name": "Alice Example", "email": "alice@example.com", "source": "invite", "response_status": "accepted"}, {"name": "Bob Silent", "email": "bob@example.com", "source": "invite", "response_status": "accepted"}, {"name": "Alice Example", "email": null, "source": "speaker"} ], "sources": ["invite", "speaker"], "observed_roster": "not_recorded" } ``` Every row says where it came from, because the two sources answer different questions: | `source` | What it is | What it misses | | - | - | - | | `invite` | The calendar invitation's attendee list, from the feed you connected under [Calendar sync](#calendar-sync). Carries `email` and, when the feed supplied one, `response_status`. | Only exists for meetings imported from a calendar. Lists who was **asked** — an invitee who never showed up still appears. | | `speaker` | Distinct speaker names heard in the transcript, ordered by first utterance. | Only people who **spoke and were named**. A silent participant is absent; so is a speaker the binder could not name (see [Speaker-attributed transcripts](#speaker-attributed-transcripts)). | `404` for a meeting you don't own — not an empty list. `sources` names only the sources that actually contributed, so `[]` means neither did. > [!NOTE] > > **`observed_roster` is always `"not_recorded"` today, and that is the important field.** Nothing in > the current core records who was *present* in a meeting: the bot's platform modules watch only tiles > that emit a speaking signal, so a participant who joins and never speaks leaves no trace anywhere > (tracked as [#861](https://github.com/Vexa-ai/vexa/issues/861)). So an empty `participants` means > **attendance was never captured** — it can never mean "nobody attended", and your client should not > render it that way. Today the only route to a complete list including silent people is the `invite` > source, i.e. connecting the calendar the meeting came from. > > **No identity resolution is performed.** Someone both invited and heard appears **twice**, once per > source, as Alice does above. Matching a voice label to an invitee is a guess, and the wrong guess > silently merges two people — so the API hands you both layers, labelled, and leaves the join to you. ## Recordings The meeting's **audio recording** is uploaded to object storage — on a self-host, your own MinIO bucket, so it never leaves your environment. This is the meeting audio, stored separately from the diarized transcript above (there is no "per-speaker audio" — speaker separation lives in the transcript as text). ```bash List recordings — GET /recordings theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/recordings" ``` ```bash Recording detail — GET /recordings/{recording_id} theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/recordings/42" ``` ```bash Delete one recording — DELETE /recordings/{recording_id} theme={null} curl -X DELETE -H "X-API-Key: $API_KEY" "$API_BASE/recordings/42" ``` After the meeting is terminal, recording deletion is owner-scoped (`404` for unknown and unowned ids; `409` while the meeting is in flight) and removes all discovered chunks/masters from configured primary object storage before removing the recording metadata. If storage deletion fails, metadata is retained so the same request can be retried safely. This route does not delete the meeting transcript; use `DELETE /meetings/{meeting_id}` after completion to erase the meeting's transcript and all of its recordings together. ```bash Master metadata (finalize-on-read) — GET /recordings/{recording_id}/master?type=audio theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/recordings/42/master?type=audio" ``` The master metadata returns a `raw_url` pointing at the byte stream `GET /recordings/{recording_id}/media/{media_file_id}/raw`, which the player loads. The `/raw` endpoint honours a `Range` header and returns `206 Partial Content` with `Content-Range` and `Accept-Ranges` — these are preserved **through the gateway**, not only on a direct hit, so browser playback and seeking work. *** In Vexa's [runtime](/core/runtime) terms, a bot is a browser [container](/concepts#container); the transcript it produces compiles into the [workspace](/concepts#workspace), where [agents](/core/agents) act on it. See [Meetings](/core/meetings). # Settings API Source: https://docs.vexa.ai/api/settings Read your identity and limits, and configure the per-account settings Vexa stores: model credentials, transcription backend, and webhook delivery. Vexa's settings are **per API-key owner** — there is one settings blob per account, and the server derives whose it is from your key. There is no organization or workspace settings tier. All requests use the same API-key authentication as the rest of Vexa: ```bash theme={null} -H "X-API-Key: $API_KEY" ``` Every route on this page accepts a key holding either the `bot` or the `tx` scope. See [Authentication](/authentication) for minting and scoping keys. ## Where each setting lives | You want to change | Where | | - | - | | Model provider, model names, credentials | [Model configuration](#model-configuration), below | | Transcription backend URL and token | [Transcription backend](#transcription-backend), below | | Webhook URL, secret, event filter | [Webhook configuration](#webhook-configuration), below | | Calendar connections and auto-join | [Calendar API](/api/calendar) | | API keys — mint, scope, revoke | [Authentication](/authentication) | | A single bot's language, task, or name | per request on [`POST /bots`](/api/meetings#send-a-bot-to-a-meeting) | | Ports, storage, STT engine, rate limits | environment variables — [Configuration](/configuration) | Settings written here are **account-level overrides of the deployment's defaults**, resolved field by field: a field you set wins; a field you leave unset falls through to the deployment configuration. Clearing a field returns it to the deployment default. ## Identity ```bash GET /auth/me theme={null} curl "$API_BASE/auth/me" -H "X-API-Key: $API_KEY" ``` ```json Response — 200 theme={null} { "user_id": 1, "email": "jane@acme.com", "scopes": ["bot", "tx"], "max_concurrent": 3 } ``` | Field | Meaning | | - | - | | `user_id` | The account this key resolves to. | | `email` | The account's email address. | | `scopes` | The scopes carried by *this key*, not by the account. | | `max_concurrent` | How many bots this account may run at once. Changing it is an [admin operation](#account-limits-admin-tier). | This is the cheapest way to check that a key is live and which scopes it holds. A key with only the `browser` scope can call this route and nothing else. ## Model configuration The account's LLM settings, used by the [agent control plane](/api/agent) and meeting-time summarization. ```bash GET /user/models theme={null} curl "$API_BASE/user/models" -H "X-API-Key: $API_KEY" ``` ```json Response — 200 theme={null} { "mode": "custom", "model": "gpt-4o", "meeting_model": "gpt-4o-mini", "base_url": "https://api.example.com/v1", "api_key_set": true, "api_key": "********1f4c" } ``` The stored credential never leaves in the clear: `api_key` is masked to its last four characters, enough to recognize which credential is set, and `api_key_set` states whether one exists at all. An unset field reads as `null`. ```bash PUT /user/models theme={null} curl -X PUT "$API_BASE/user/models" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"mode":"custom","base_url":"https://api.example.com/v1","api_key":"sk-…"}' ``` Returns the same masked shape as the read, with **200 OK**. **mode** `string` `subscription` or `custom` — which credential terms this account operates under. Any other value returns **422**. See [Model credentials & licensing](/model-credentials-licensing). **model** `string` Model name for general agent work. **meeting\_model** `string` Model name for meeting-time work, when it should differ from `model`. **base\_url** `string` OpenAI-compatible endpoint. Must be an `http` or `https` URL with a hostname, or the request returns **422**. **api\_key** `string` Credential for that endpoint. Stored, never echoed in the clear. The update is **partial**: only the fields present in the body change. Sending a field as an empty string clears it, and a cleared field falls back to the deployment default. Clearing every field removes the account override entirely. String fields longer than 2,048 characters return **422**. ## Transcription backend The account's override of the deployment's speech-to-text endpoint. Leave it unset to use whatever the deployment configures — see [Bring your own STT](/how-to/custom-stt). ```bash GET /user/transcription theme={null} curl "$API_BASE/user/transcription" -H "X-API-Key: $API_KEY" ``` ```json Response — 200 theme={null} { "url": "https://stt.example.com", "token_set": true, "token": "********9a2b" } ``` ```bash PUT /user/transcription theme={null} curl -X PUT "$API_BASE/user/transcription" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"url":"https://stt.example.com","token":"…"}' ``` **url** `string` Transcription endpoint. Must be an `http` or `https` URL with a hostname. **token** `string` Credential for that endpoint. Masked on every read-back, exactly like the model credential. Same partial-update and clearing rules as [model configuration](#model-configuration). ## Webhook configuration > [!WARNING] > > Webhook **delivery** has never been proven against a real external receiver — see > [Webhooks](/webhooks) for what is and is not established. The configuration endpoints below are > the settings surface for it; they store what you send. ```bash GET /user/webhook theme={null} curl "$API_BASE/user/webhook" -H "X-API-Key: $API_KEY" ``` ```json Response — 200 theme={null} { "webhook_url": "https://hooks.example.com/vexa", "webhook_secret_set": true, "webhook_secret": "********c3d1", "webhook_events": {"meeting.completed": true} } ``` ```bash PUT /user/webhook theme={null} curl -X PUT "$API_BASE/user/webhook" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{ "webhook_url": "https://hooks.example.com/vexa", "webhook_secret": "a-long-random-string", "webhook_events": {"meeting.completed": true} }' ``` **webhook\_url** `string` *required* Where Vexa POSTs events. Required on every write — this endpoint replaces the URL, it does not patch it. **webhook\_secret** `string` HMAC signing secret. Written only when non-empty: sending `""` leaves the stored secret in place rather than clearing it. **webhook\_events** `object` A `{event_type: boolean}` filter. When you have never set one, **only `meeting.completed` fires**. An explicit `false` suppresses an event; an event you do not mention falls back to that default. The write returns the account record with **200 OK**; the stored secret is omitted from it. Read it back with `GET /user/webhook`, where it appears masked. ### Delivery history ```bash GET /user/webhook/deliveries theme={null} curl "$API_BASE/user/webhook/deliveries?limit=50" -H "X-API-Key: $API_KEY" ``` ```json Response — 200 theme={null} { "deliveries": [ { "event_type": "meeting.completed", "event_id": "e2f1…", "target_host": "hooks.example.com", "outcome": "delivered", "status_code": 200, "attempt": 0, "meeting_id": 812, "created_at": "2026-08-14T15:30:00Z" } ] } ``` Newest first. `limit` accepts 1–500 and defaults to 100; a value outside that range returns **422**. Vexa retains the most recent 100 attempts per account — this is a recent-history window, not an audit log. A row carries the target **host only**, never the configured URL or the secret: a webhook URL can carry a token in its path or query. | `outcome` | Meaning | | - | - | | `delivered` | The receiver accepted it. | | `queued` | The attempt failed retryably and is queued for another sweep. | | `suppressed` | Your event filter is not subscribed to this event type. | | `blocked` | The target was refused before any request left Vexa. | | `failed` | The attempt failed and was not queued. | An empty `deliveries` array means no attempt has been recorded for this account — including when the feature has never fired at all. ## Account limits (admin tier) Concurrency is an account limit, not a self-serve setting: it is changed with the **admin** key on the admin API, not with your `X-API-Key`. ```bash PATCH /admin/users/{user_id} theme={null} curl -X PATCH "$ADMIN/admin/users/1" \ -H "X-Admin-API-Key: $ADMIN_TOKEN" -H "Content-Type: application/json" \ -d '{"max_concurrent_bots": 5}' ``` Returns the updated account with **200 OK**; an unknown id returns **404**. A body that changes nothing returns **422** — the patch requires at least one field. Unrecognized fields are refused rather than dropped. The same patch also accepts a `data` object of platform-billing fields, which the hosted deployment's billing integration writes. A self-hosted deployment does not need it. Creating accounts and minting keys are covered in [Authentication](/authentication). ## What is not configurable through the API These have no settings endpoint today. They are listed so you can stop looking for one. | Not available | What exists instead | | - | - | | Organization or team settings | Settings are per API-key owner only. | | Self-serve key management with your `X-API-Key` | Minting and revoking keys requires the admin key ([Authentication](/authentication)). | | A default language, task, or bot name for all bots | Set per request on `POST /bots`; calendar connections carry their own `bot_name` ([Calendar API](/api/calendar)). | | Notification or email preferences | No such setting is stored. | | Reading your own plan, quota usage, or billing state | `GET /auth/me` returns `max_concurrent` only. | | Retention or data-deletion policy | Delete individual meetings via the [Meetings API](/api/meetings). | ## Error summary | Status | Operations | Meaning | | - | - | - | | `200` | all reads and writes on this page | Request completed. | | `401` | all | API key missing, unknown, or revoked. | | `403` | all | The key does not carry a scope this route accepts. | | `404` | admin patch | No account with that id. | | `422` | model, transcription, webhook writes, admin patch | Invalid `mode`, a non-`http(s)` URL, a string over 2,048 characters, an out-of-range `limit`, or an unrecognized field. | | `503` | all | Identity resolution is unavailable — the key was not rejected, it could not be checked. | See the full [error reference](/api/errors). # Architecture as Code (CALM) Source: https://docs.vexa.ai/architecture/architecture-as-code The runtime architecture is a validated FINOS CALM model — nodes, data carriers, single-writer ownership, and a self-hostable meeting-intelligence pattern, enforced in CI. The Vexa runtime is modeled as code using **[FINOS CALM](https://calm.finos.org/)** (Common Architecture Language Model). There is **one chart** — the repo-root [`architecture.calm.json`](https://github.com/Vexa-ai/vexa/blob/main/architecture.calm.json) — the single source of truth; [`calm/`](https://github.com/Vexa-ai/vexa/tree/main/calm) holds the governance controls and the reusable pattern that validate it. Two CI gates keep it honest: `pnpm gate:calm` (FINOS pattern conformance) and `pnpm gate:dataflow` (model↔disk completeness, ownership enforcement, and a reality diff against the code) — so the architecture description can't silently drift from the system. ## What's modeled The chart carries both lenses at once: the complete **module / service / contract inventory** (every `core/*` service, module, and sealed contract is registered — adding one without registering it turns CI red) and the **runtime / data-flow view**: the standing services ([gateway](/architecture/identity-and-trust), `meeting-api`, `agent-api`, `admin-api`, [`runtime`](/architecture/execution)), the **runtime-spawned workers** (`bot`, `agent-worker` — [`deployed-in` the runtime kernel](/architecture/execution)), the redis transcript fabric, the durable stores (postgres, object storage), and the **first-party, self-hostable STT** boundary. | Layer | Nodes | | - | - | | Edge | `gateway` — the one authenticated door (auth · routing · WS fan-out) | | Services | `meeting-api` (collector hub) · `agent-api` (copilot) · `admin-api` (identity) | | Workers | `bot` · `agent-worker` — ephemeral, spawned per meeting / per dispatch | | Carriers | the redis [streams + pub/sub](/architecture/streaming) (transcript live + durable planes) | | Stores | postgres (transcripts · identity) · object storage (recordings) | | STT | `transcription` — first-party GPU service, **tenant-hosted by default** | ## Controls (governance, machine-checked) The model carries [governance](/architecture/governance) controls, each backed by a JSON-Schema requirement in `calm/controls/`: * **single-writer (P23)** — every data carrier declares exactly one producer; readers never re-derive a producer's data. * **render-only** — the terminal renders transcript and cards; it never re-derives or republishes. * **data-egress** — the `bot → transcription` edge declares its egress posture. Default is **tenant-hosted**, so meeting audio need not leave the tenant. ## The pattern `calm/patterns/meeting-intelligence.pattern.json` is a reusable CALM **pattern** a meeting-intelligence deployment must conform to: a single authenticated edge, a capture worker, a collector, a copilot, a render-only client, and a **declared STT egress boundary**. Conformance is **fail-closed** — a design that omits the egress control or the render-only client is rejected: ```bash theme={null} pnpm gate:calm # = calm validate -p calm/patterns/meeting-intelligence.pattern.json -a architecture.calm.json ``` Because the model is standard CALM, you can also `calm generate` a conformant starter architecture from the pattern and validate your own deployment against it with the FINOS [`calm-cli`](https://www.npmjs.com/package/@finos/calm-cli). ## Generated views Diagram views are **carved from the chart, never drawn by hand**. `pnpm arch:dsl --write` regenerates [`docs/views/`](https://github.com/Vexa-ai/vexa/tree/main/docs/views) deterministically, and `gate:dataflow` fails when they are stale: | View | Shows | | - | - | | `architecture.dsl` | compact text projection — the always-in-context LLM index | | `containers.mmd` | systems, services, clients, and the protocols between them | | `ownership.mmd` | every data carrier and its writers/readers (multi-writer carriers highlighted) | | `flow-*.mmd` | one sequence diagram per declared flow (live transcript · agent dispatch) | | `deployment.mmd` | the runtime.v1 spawn topology | | `egress.mmd` | the tenant trust boundary and every egress-controlled edge | The chart is also **sealed** (`architecture.seal.json`): any edit fails CI until deliberately re-sealed with `pnpm seal:arch`, so ownership or boundary changes are always a reviewed act. ## Why this exists A standard, validated model gives one diffable source of truth for the architecture, makes the [single-writer](/architecture/streaming) and [trust-boundary](/architecture/identity-and-trust) invariants machine-checkable, and lets the design be consumed by any CALM tooling — not a bespoke diagram that rots. # Control plane Source: https://docs.vexa.ai/architecture/control-plane The meeting/agent separation of concerns, the terminal jobs, and the critical paths. > Companion to [`ARCHITECTURE.md`](/governance/architecture). That file is the constitution; this one is the > applied separation-of-concerns for **live meetings + the agent copilot**, and the catalog of critical > paths we prove deterministically. Governed by **P2** (couple only through contracts), **P3** > (`meetings ⊥ agent`), **P23** (one writer per carrier; readers never re-derive). ## 1. The three layers | Layer | What it is | Owns | Never does | | - | - | - | - | | **Domain** | `meetings`, `agent` — each a bounded context with its own carriers/logic | meetings: bots, meeting rows, the transcript (single writer), status. agent: copilot lifecycle, chat, workspace, notes/cards, config | reach into the other domain's internals; re-derive the other's data | | **API** | each domain's published, gateway-fronted endpoints | meetings-control (`/bots`, `/meetings`, `/transcripts`, `/intent`, `/ws` status). agent-control (`/api/meeting/process`, `/api/chat`, `/api/workspace/*`, `/api/models`) | hold business logic in the gateway; let a client reach a domain backend directly | | **Top-level wiring (cookbook)** | composed operations + tool-authorization patterns that deliver *state* | "agent listening on a meeting" (compose bot-spawn + copilot-enable); per-turn meeting-scoped tool grants | live *inside* a domain (that re-merges `meetings ⊥ agent`); compose over anything but published contracts | **The rule:** the two domains never reach into each other's internals. They meet only through **published contracts** — the gateway's `api.v1` HTTP surface, or a `.v1`-governed bus carrier (`transcript.v1`, `tool.v1`). Composition that spans both domains lives **above** them in the cookbook layer — never folded into either domain. **Legal acquisition, not "never touch."** The boundary is about *write-ownership* and *how data is acquired*, not about forbidding possession. The agent **may hold, compose, and serve meeting data downstream** once it has acquired it **legally** through a published contract (e.g. reading `/transcripts` via the gateway, or the `transcript.v1` carrier). What's forbidden is **owning/writing** another domain's carrier, **re-deriving** a producer's data into a competing copy (P23), or reaching into **internals** (P3). So the agent's live-view composition and its chat-grounding tool are both fine — each legally acquires the transcript, then uses its own downstream copy. `send bot ≠ start copilot` — two toggles, two domains. The bot (meetings) makes the transcript *flow*; the copilot (agent, the `proc:on` toggle) *processes* it. The cookbook layer is where a single high-level op ("agent on this meeting") composes the two. ## 2. Terminal jobs → domain map **Meetings-domain control** (terminal → gateway → meeting-api): * send / stop / re-send bot — `POST /bots`, `DELETE /bots/{platform}/{native}` * schedule / set intent + cancel — `PUT /meetings/{platform}/{native}/intent` * list meetings (live + past) — `GET /meetings` * transcript history — `GET /transcripts/{platform}/{native}` * live status for ALL user meetings (left pane) — `WS /ws`, auto-subscribed to `u:{user_id}:meetings` at connect; meeting-api publishes every status change there (no polling). *Already built.* **Agent-domain control** (terminal → gateway → agent-api): * enable/disable copilot ("start agent listening") — `POST /api/meeting/process` (the `proc:on` toggle) * chat with copilot — `POST /api/chat` * read meeting doc/notes — `GET /api/workspace/file` (`kg/entities/meeting/{native}.md`) * browse workspace — `GET /api/workspace/tree` (the user's workspace git repo = durable agent memory) * configure copilot — edit workspace `agents/meeting.md` (its body is spliced into the live extraction prompt every turn — it *is* the real-time steering prompt) * model list — `GET /api/models` **Cross-domain (cookbook / composed at the edge):** * "agent on meeting" — one op = `POST /bots` + `POST /api/meeting/process` (cookbook entry #2) * chat grounded in a live meeting — agent-api folds the meeting's live transcript from its redis Stream (`tc:meeting:{native}`, the same wire the copilot tails) into the prompt, not a file (cookbook entry #1) * live view — the gateway *composes* the meetings transcript feed + the agent card feed (`unit:agent-meet-*:out`) into one client stream; neither domain merges the other's data ## 3. Chat grounding — fold the live transcript stream, not a file When the terminal's `active` tab is a meeting, agent-api grounds the chat turn by reading the meeting's live transcript directly from its redis Stream `tc:meeting:{native}` — the SAME wire the live copilot tails (`worker/meeting.py`) and the terminal renders — and folding the segments (refining drafts upserted by `segment_id`, arrival order preserved, bounded) into the prompt. This happens **fresh on every turn**, so a follow-up re-reads the latest lines. The transcript stays inside the trusted control plane and rides the prompt to the isolated worker: no notes-file dependency, no cross-domain HTTP, and no user key or scoped token in the worker (P15). The copilot still writes a durable `kg/entities/meeting/{native}.md` for the *finished* record, but live chat no longer depends on it. ## 4. Critical-path catalog (proven with deterministic fixtures) Each path: simplest perfect fixture in → frozen expected output, byte-identical across two runs (stubbed LLM/turn). Where an LLM reply is inherently non-deterministic, assert the *plumbing*, never the prose. | ID | Path | Owner | Fixture → output | | | - | - | - | - | - | | **CP1** | raw `transcription_segments` → collector `ingest()` → `:mutable` + durable hash | meetings | 2 segments (1 confirmed, 1 pending) → exact bundle + stored hash | | | **CP2** | collector single-writer → native transcript feed (D7) | meetings | numeric segments → exact native-keyed, time-anchored entries | | | **CP3** | `proc:on` → watcher arms → worker reads from `:cursor` | agent | flag + 3-seg stream + cursor → dispatch with right `transcript_start_id`; cursor advances | | | **CP4** | `serve_meeting`: segments → gate → stub `card_turn` → notes/cards + doc | agent | 3 segs (speaker change) → exact cards/notes/doc | | | **CP5** | live view = transcript feed + card feed → one client stream, gapless resume by a dual-stream cursor | agent-api SSE today (reader-composes); gateway-composed eventually | canned transcript + cards → merged ordered stream, gapless resume | `_encode/_decode_sse_cursor` + `test_meeting_stream` (`test_api.py`) | | **CP6** | chat `active={meeting}` → agent-api folds `tc:meeting:{native}` into the prompt | agent (reads meetings' transcript Stream) | seeded stream → folded `speaker: text` prompt grounding; refining drafts deduped, empty stream → "no transcript yet" | | | **CP7** | status change → `u:{user}:meetings` → gateway fan-in → client | meetings | one status change → exact user-channel frame | | | **CP8** | cookbook "agent-on-meeting" = `POST /bots` + `POST /api/meeting/process` | wiring | meeting input → both calls (right args) + combined state + partial-failure surfaced | | ## 5. Cookbook — patterns, not yet a home We build the first two concrete entries (#1 context grounding, #2 composition) before deciding where the cookbook layer permanently lives (gateway-composed vs a thin orchestration surface). The patterns to extract once both exist: * **Composition over contracts** — a high-level op calls ≥2 domain APIs, owns partial-failure, returns combined state; lives above the domains. * **Per-turn context grounding** — when the turn's `active` context warrants, the trusted control plane reads the one in-focus resource (here the meeting's transcript Stream) and folds it into the prompt, fresh each turn — keeping the credential/data inside the control plane, never in the isolated worker. ## 6. Deferred (seam wired, implementation follows — P16) These are intentionally staged: the contract/seam is in place and tested; the runtime piece follows. * **Gateway-composed live view** (CP5) — today agent-api's SSE *reads* the meetings-owned transcript carrier and *composes* it with the agent's cards (a reader composing — no P23 violation). Relocating that compose to the gateway (transcript from meetings, cards from agent) is a user-invisible follow-up; the merge + gapless cursor are already pinned by the CP5 tests. * **Cookbook home** — the two concrete entries (#1 tool-authorization, #2 composition) exist; where the cookbook layer *permanently* lives (gateway vs a thin orchestration surface) is decided from these real instances, not up front. # The dispatch Source: https://docs.vexa.ai/architecture/dispatch One agent run — the composition of the seven primitives. A **dispatch** is one run of an agent. It is the [model](/concepts)'s single object. See the shape in the [primitives overview](/concepts). * **Lifecycle** = TTL-on-idle (the [Runtime](/core/runtime) reaps it when nothing is computing). * **subject vs launcher** — on-behalf-of vs who-triggered (see [Identity](/architecture/identity-and-trust)). * **`trust` and `output` are derived**, not stored: `trust` = (all workspaces `ro` && irreversible tools gated), set by the trigger→grant policy; `output` = `unit::out`. # Architecture review Source: https://docs.vexa.ai/architecture/evaluation What an architecture review asks — where audio goes, what running it costs, how it fails, what is and isn't proven, and what you own — answered from the tree. This page is for the person who has to sign off on depending on Vexa. Every claim below points at a file, a contract, or a stated gap. Where something is not shipped, or shipped but unproven, it says so — those lines are the point of the page, not an aside. The map of the codebase itself — module tree, the sealed contract registry, the eval levels — is the next page: [Modules & Seams](/architecture/modules). Read that one if you are going to write code against this. Read this one if you are going to *depend* on it. ## 1. What runs where Five core domains behind one front door. The **gateway** is the only world-facing process: it resolves `x-api-key` fail-closed, enforces per-route scopes, and proxies the REST surface plus a `/ws` multiplex. Everything else binds loopback or the internal network. * **core/meetings** — joins the call, captures audio, emits a speaker-attributed `transcript.v1`. * **core/gateway** — the edge; the one authenticated boundary. * **core/runtime** — the kernel that spawns and supervises isolated workloads (one browser container per meeting, one agent container per dispatch). * **core/identity** — authN/authZ and accounts, default-deny. * **core/agent** — the knowledge layer: transcripts into a git Markdown workspace via sandboxed agents. **Self-hosted only.** The hosted service runs meetings and transcription; it does not run the agent plane. Three deployment shapes ship, and they are the same bricks composed differently — see [§3](#3-what-running-it-costs). ## 2. Where the audio goes This is usually the first question, so here is the whole path with nothing elided: | Hop | How | | - | - | | Bot container captures PCM, converts to WAV | in-process, one browser container per meeting | | Bot → transcription service | HTTP POST multipart to `{TRANSCRIPTION_SERVICE_URL}/v1/audio/transcriptions`, OpenAI-compatible, bearer token | | Bot → segment stream | redis `XADD` (`transcript.v1`) | | `collector` → Postgres | consumer group `collector_group`; rows in `meetings`, `transcriptions`, `meeting_sessions` | | `collector` → per-meeting redis stream | single writer | | Gateway `/ws` → your clients | WebSocket (`ws.v1`) | | Recordings | bot chunks → meeting-api stitches → S3/MinIO | **At rest:** Postgres holds users, tokens, meetings, transcripts. S3/MinIO holds recordings, agent workspaces, and authenticated-bot browser profiles. Redis holds the streams and the bot command bus. ### The egress answer, precisely The repository models its own egress as machine-checkable architecture. In [`architecture.calm.json`](https://github.com/Vexa-ai/vexa/tree/main/architecture.calm.json) every node sits inside the tenant boundary except the transcription service, and exactly **one** edge crosses out — `bot → transcription`, carrying audio. A CI gate (`pnpm gate:dataflow`, `gate:calm`) fails the build if that changes. The rendered view is [`docs/views/egress.mmd`](https://github.com/Vexa-ai/vexa/tree/main/docs/views/egress.mmd). So the honest statement is conditional, and the condition is yours to set: * **Point `TRANSCRIPTION_SERVICE_URL` at your own STT** — the bundled GPU unit under `deploy/transcription`, or any OpenAI-compatible endpoint — and audio never leaves your perimeter. This is the no-egress posture [Security & compliance](/security-compliance) describes. * **Leave it unset and follow the quickstart** and you are using hosted STT: the variable ships empty in `deploy/compose/.env.example`, and the quickstart hands you a hosted token to get going. That is a fine way to evaluate and the wrong way to run a sovereignty requirement. **Self-hosting the control plane does not by itself make the deployment zero-egress.** Three further egress paths that the CALM model does **not** currently cover, and you should plan for directly: **LLM inference** for the agent plane (you supply the endpoint — an external provider or your own), **webhook delivery** to whatever subscriber URL you configure, and **the agents themselves**. The default agent toolset includes `Bash`, `WebSearch` and `WebFetch`, and the stack ships no egress control — no `NetworkPolicy` in the chart, and Compose agents share the stack's Docker network — so an agent reaches whatever your network lets it reach. None is hidden; none is modelled by the gate yet. ## 3. What running it costs > [!NOTE] > > Everything in this section is the cost of running it **yourself**. The > [hosted service](/how-to/send-a-bot) removes all of it — one authenticated `POST /bots`, nothing to > install, nothing to operate. Self-host when the audio must not leave your perimeter, or when you > want the agent plane, which the hosted service does not run. Three shapes, all in-tree, none requiring a GPU for the control plane: | Shape | What you actually run | Stateful | | - | - | - | | **Lite** | 1 app container — 13 supervised programs inside it — plus 2 sidecars | Postgres, MinIO | | **Compose** | 11 services by default (13 declared, 2 profile-gated) + one ephemeral browser container per meeting | Postgres 17, Valkey 8, MinIO, 4 named volumes | | **Kubernetes** | 7 Deployments, 2 StatefulSets (Postgres, MinIO) and an init Job; bots and agents are bare Pods | as above, plus an **RWX** storage class for the agent-workspace PVC on multi-node | Every count in that table is a command, not a claim. On a clean clone, before you install anything: ```bash theme={null} docker compose -f deploy/compose/docker-compose.yml config --services # 11 lines helm template vexa deploy/helm/charts/vexa | grep -E '^kind:' | sort | uniq -c grep -c '^\[program:' deploy/lite/supervisord.conf # 13 ``` **GPU** is needed only if you self-host STT, and then only for that one unit (`deploy/transcription`, which ships a CPU variant too). Helm's shipped resource requests, which is the number a capacity plan wants: | Service | Replicas | Requests | Limits | | - | -: | - | - | | gateway | 2 | 100m / 256Mi | 500m / 512Mi | | admin-api | 2 | 100m / 256Mi | 500m / 512Mi | | meeting-api | 2 | 200m / 512Mi | 1000m / 1Gi | | terminal | 2 | 100m / 256Mi | 1000m / 1Gi | | runtime | 1 | 50m / 256Mi | 500m / 768Mi | | agent-api | 1 | 100m / 256Mi | 1000m / 1Gi | | **application tier** | | **1150m / 3 GiB** | 7500m / 7.75 GiB | | postgres · valkey · minio (bundled, default-on) | 1 each | 400m / 1 GiB | 5500m / 6 GiB | | **whole default render** | | **1550m / 4 GiB** | **13000m / 13.75 GiB** | So **1.55 vCPU and 4 GiB requested**, and a burst ceiling of 13 vCPU / 13.75 GiB, before a single meeting runs. Point the chart at an external Postgres and object store and you schedule the application tier only — 1.15 vCPU / 3 GiB. Meetings and agent dispatches are ephemeral Pods on top, and are **not** in either figure. **Configuration surface.** `deploy/compose/.env.example` declares **77 variables**. `make all` seeds `.env` from it and the stack comes up on the defaults for all but two credential blocks you supply yourself: transcription (`TRANSCRIPTION_SERVICE_URL` + `_TOKEN` — without it bots join and record but produce no transcript) and one model credential for the agent plane (any one of five accepted names — without it agent chat refuses). `make all` warns loudly about both rather than failing quietly. **Is it working?** `make probe` runs a full-journey smoke in **nine stages** — S0 ready, spawn, schedule, boot, join, transcribe, live-view, stop, S8 log sweep — each printing Expected / Actual / Verdict. It runs against all three surfaces (`make probe`, `make probe SURFACE=lite`, `make probe SURFACE=helm`). Every long-running service answers `GET /health`; compose gates bring-up on `service_healthy` rather than sleeping. **Upgrades** are a tag bump and a re-run — `IMAGE_TAG` for Lite and compose, `--set global.imageTag=…` for Helm. Schema migrations converge in-process on service start; there is no separate migration step. ### What operability does not include yet Say this part out loud, because an architecture review will find it anyway: * **No backup, restore, or DR procedure is documented.** Postgres and S3/MinIO are yours to back up by your own standard. Nothing in the tree does it for you. * **No automated upgrade path** — no operator, no version-check service. Upgrades are the manual step above. * **No published hardware minimum for Lite or Kubernetes.** The one hardware figure in the docs (8 vCPU / 16 GB) is stated for the full stack, and the README and quickstart disagree about whether it applies to running published images or only to building from source. Size from the table above, not from that line. ### What we do not measure Everything above is an **inventory of what there is to run**, taken from the tree. That is a smaller claim than it may look: it does not tell you how many hours you will spend running it. We have not run the study that would, so we publish no operator-hours figure, no total cost of ownership, and no setup-time comparison against any other product. Operability is the row this field most often argues with a percentage. Three such figures are published today. We went looking for the source of each and did not find one: | The published figure | Where it is published | Source published with it | | - | - | - | | a self-hosted solution "requires 45-48% more time to operate" | Recall.ai, [Recall.ai vs Attendee](https://www.recall.ai/recall-ai-vs-attendee) | none on the page | | "By self-hosting Attendee you can reduce costs by 10x compared to closed source vendors" | Attendee, [README](https://github.com/attendee-labs/attendee#readme) | none | | Vexa "requires significant DevOps expertise to set up", and "the development time and infrastructure costs outweigh the savings" | Skribby, [Best Meeting Bot APIs 2026](https://skribby.io/blog/meeting-bot-api-comparison-2026) | none | We are not answering any of them with a number of our own. The question worth asking any vendor — this one included — is whether they will tell you how much before you commit, and in a form you can check without asking them. Ours is the three commands above, the requests table, and the list of what we do not ship. ## 4. How it fails Failure reasons are not prose. They are a **sealed contract** — [`lifecycle.v1`](https://github.com/Vexa-ai/vexa/tree/main/core/meetings/contracts/lifecycle.v1/lifecycle.schema.json), one of the 16 frozen in `contracts.seal.json`, with a sha256 that CI refuses to let drift, and golden fixtures beside it. `BotStatus`: `joining · awaiting_admission · active · needs_help · completed · failed`. `CompletionReason` — the schema's own word for it is *operator-facing*: `stopped · left_alone · startup_alone · evicted · awaiting_admission_timeout · awaiting_admission_rejected · join_failure · auth_session_missing · validation_error · max_bot_time_exceeded`. `FailureStage`: `requested · joining · awaiting_admission · active` — which is what separates a broken node from a refused join. Events also carry `exit_code`, a `bot_logs` ring buffer, an `error_details` object, and a cgroup resource snapshot. The schema is deliberately liberal (`additionalProperties: true`), so producers can add detail (`infra_fault: control_plane_unreachable`, for one) without a reseal. > [!NOTE] > > The enum is fully public and machine-readable in the tree, and it is now enumerated end to end in > these docs: [Completion reasons](/troubleshooting/completion-reasons) carries all ten values, whose > side each points at, and the four timeouts you control. > [Troubleshooting](/troubleshooting) is the symptom-shaped companion. ## 5. Security posture — and what is not claimed What is real and checkable: * **One authenticated front door.** Services bind loopback; the gateway resolves identity server-side, fail-closed, with per-route scopes and default-deny ownership checks. * **A pre-auth edge guard on by default** on compose and Helm — per-IP throttle (600 req/min), auto-ban, allow/deny lists — with an explicit kill switch (`GUARD_ENABLED`, `gateway.guard.enabled`). * **Agents are untrusted by design:** ephemeral isolated container scoped to the workspaces it was granted, propose-only on untrusted input, irreversible effects gated. Its network egress is **not** restricted — see [the egress answer](#the-egress-answer-precisely). * **Procurement artifacts resolve**, and they are files, not assertions: [`architecture.calm.json`](https://github.com/Vexa-ai/vexa/tree/main/architecture.calm.json) (FINOS CALM), [`SECURITY.md`](https://github.com/Vexa-ai/vexa/tree/main/SECURITY.md), [`security-insights.yml`](https://github.com/Vexa-ai/vexa/tree/main/security-insights.yml) (OpenSSF), [`license-exceptions.json`](https://github.com/Vexa-ai/vexa/tree/main/license-exceptions.json) and [`THIRD_PARTY_LICENSES.md`](https://github.com/Vexa-ai/vexa/tree/main/THIRD_PARTY_LICENSES.md), and the CI gates at [`scripts/gates.mjs`](https://github.com/Vexa-ai/vexa/tree/main/scripts/gates.mjs). What is **not** claimed, stated plainly so no one has to discover it in a questionnaire: * **No third-party certification.** No SOC 2, no ISO 27001, no HIPAA BAA, no published penetration test, no external auditor. The posture here is self-attestation plus machine-checkable artifacts you can run yourself. If your process requires a certificate, this does not have one. * **Encryption at rest is planned, not shipped** — for workspaces, transcripts, and stored tokens. Today you bring your own disk or volume encryption. * **Mid-call bot control endpoints are not wired** in the open-core stack. Full detail: [Security & compliance](/security-compliance). ## 6. What you own, and how you leave * **Apache-2.0**, verbatim, no addenda, no dual licence, no enterprise edition, no feature gates. Nothing in the tree is withheld from the licence. * **No CLA and no copyright assignment.** Contributions come in under Apache-2.0 with a DCO sign-off; an individual CLA is not required. No assignment means no unilateral relicensing lever over what you have already received. * **Fork rights are the exit plan.** There is no licence restriction on reselling or embedding it in a service you sell. * **The data leaves with you.** Transcripts and derived knowledge are Markdown in a git repository you hold; recordings are objects in your bucket; everything else is rows in your Postgres. Leaving does not orphan the data. One boundary that is not about this repository: agent workers can drive a vendor's CLI, and *that vendor's* terms govern how their credentials may be used. See [Model credentials & licensing](/model-credentials-licensing). Model weights carry their own licences, listed in the tree. ## 7. Known gaps, in one place | Area | State | | - | - | | Encryption at rest | planned, not shipped | | Backup / restore / DR | not documented; operator-owned | | Automated upgrades | none; manual tag bump | | Operator hours / total cost of ownership | not measured; we publish an inventory of what runs, not a time or cost figure | | Third-party certification | none claimed | | Failure-taxonomy reference page | published — [Completion reasons](/troubleshooting/completion-reasons) enumerates all ten values | | Mid-call bot control | not wired in the open-core stack | | `TRANSCRIPTION_MODEL` on Helm | not values-plumbed; inject via `extraEnv` (compose and Lite plumb it) | | Jitsi transcripts | observed on the hosted service on 2026-08-20 with two synthetic speakers (41 segments, 35 attributed; [#883](https://github.com/Vexa-ai/vexa/issues/883) closed); validation with real participants open ([#570](https://github.com/Vexa-ai/vexa/issues/570)) — Meet, Teams and Zoom are production | | LLM + webhook egress | real, operator-configured, not yet covered by the egress gate | | Agent network egress | not restricted; no `NetworkPolicy` ships — enforce it at your cluster | Capability-by-capability status, kept against the tree: [Status](/roadmap/status#capability-truth-table). Where Vexa sits against the alternatives: [Comparison](/comparison). # Execution Source: https://docs.vexa.ai/architecture/execution The agent runs in a runtime-spawned container, over a mounted workspace folder, resuming from a session file. 1. The [Scheduler](/concepts#scheduler) fires; agent-api asks the [Runtime](/core/runtime) to spawn (it touches **no docker** itself). 2. The container mounts **only** the granted [workspaces](/concepts#workspace) — one bind per mount, no clone; another tenant's workspace is not in the filesystem at all — + brokers creds. 3. The agent **resumes from the session file** in the rw folder (continuity is a file), runs the [runner](/concepts#agent), and **commits freeform** changes. 4. It emits events on its [Stream](/architecture/streaming); the container is **reaped when idle**. The workspace folder (+ its session file) is the only durable state; the container is disposable. ## Implemented — the live path A dispatch **is** the in-container worker `agent_api.worker`. The Runtime injects everything it needs as env + a bind-mount, and the worker drives the [runner](/concepts#agent) over the mounted folder: ```text theme={null} trigger → Scheduler → Runtime spawns the `agent` container (CMD: python -m agent_api.worker) ├─ bind-mounts ONLY the granted workspaces, one per mount (ported in, not cloned; :ro roles enforced) ├─ injects the signed dispatch token + REDIS_URL + the unit::in / unit::out topics + `start` └─ brokers the model credential (never in the dispatch envelope) worker → one governed turn: runner → workspace.v1 re-validate → git commit ├─ XADD each UnitEvent to unit::out (the Stream) └─ block on unit::in for the next message; idle ⇒ exit ⇒ container reaped (TTL-on-idle) ``` **Continuity is files in the workspace.** Both the session id (`.claude/.session`) **and the chat transcript** are saved in the folder — claude-code's transcript dir is symlinked into `/.claude/projects` — so a fresh container [resumes](/concepts#workspace) the same conversation from the durable git folder, no warm container needed. > [!NOTE] > > Proven end-to-end on docker: a `unit.v1` dispatch → isolated `vexa-agent-` container → a real > claude turn → a `workspace.v1`-governed commit → events on `unit::out`. Code: > `core/agent/services/agent-api/src/agent_api/worker.py` (the harness), > `core/runtime/src/runtime_kernel/docker_backend.py` (mount + credential brokering). ## The same run, any substrate The flow above is the **Docker** path (the open-core default). agent-api never spawns anything itself — it hands the [Runtime](/core/runtime) a `runtime.v1` workload, and the kernel's pluggable backend turns that *same* workload into a child process, a container, or a **Kubernetes Pod** (`RUNTIME_BACKEND=k8s`) — same lifecycle, same dispatch, same worker. Only *how* the container is created changes; the run does not. The per-backend mechanics — and what the k8s path does and does **not** wire up yet — are in [Runtime → Where it runs](/core/runtime#where-it-runs). # Governance Source: https://docs.vexa.ai/architecture/governance Two axes — input trust × effect reversibility. Untrusted or irreversible → propose, approve, apply. Governance is enforced at the **boundaries** (runtime, MCP Gateway, identity), never by the agent, and it turns on **two axes**: * **Input trust** (from the trigger): **trusted** (you, in [chat](/how-to/chat-workspace)) ⇒ the agent may write `rw`. **Untrusted** (email, web — attacker-controllable, prompt-injectable) ⇒ **propose-only** (`ro` workspaces). * **Effect reversibility**: **reversible** (a workspace commit) ⇒ auto (git is the undo). **Irreversible** (send, order) ⇒ **gated**. When propose-only or gated, the agent's output is **proposed actions** — `proactive-card.v1` frames on its [Stream](/architecture/streaming): `record` (a task/note — payload is the file), `draft`, `send` (external). **Untrusted agent proposes → human approves → trusted code applies**: a `record` is committed by a trusted applier; a `send` is executed by the [Integration](/how-to/email-triage). There is **no workspace-structure/schema check** anywhere — the workspace is [just files](/concepts#workspace). # Identity & trust Source: https://docs.vexa.ai/architecture/identity-and-trust Chain of custody — authenticity of the launcher, a signed token through every hop, verified at the boundaries. This is the cross-cutting **trust flow**. For the identity *domain* — accounts, the access-control model, what's built, and the roadmap — see [Identity](/core/identity). A dispatch is often launched by a **non-human** (a 3am schedule entry, a Gmail webhook). We cannot trust the launcher by virtue of it running — it must **prove** it was authorized, and that proof must survive every hop to the tool that finally sends an email. The agent is **untrusted** and carries proof but never enforces it. The flow — authenticate the launcher (OIDC session, or a **signed delegation grant**) → the identity service **mints a short-lived signed dispatch token** → the runtime **attests the workload** → every **boundary verifies**: * **Workspace store** mounts only granted workspaces, `rw` only where the token says. * **Tool calls** route through the **MCP Gateway**, which does an **RFC 8693 token exchange** (the agent's SPIFFE identity → a token scoped to that one tool's audience) and acts with brokered creds — the agent never holds the credential. * **Stream** tags every event with `dispatch_id`; audit resolves it to `(subject · launcher · scope)`. We adopt **[kagenti](https://github.com/kagenti/kagenti)**: **SPIRE** (workload identity) + **Keycloak** (RFC 8693) + Envoy **MCP Gateway**. Dev uses a token-bound secret behind the same interface; k8s uses SPIRE. > [!NOTE] > > The agent (LLM) is outside the trust boundary. Compromise it via prompt injection and it still > cannot exceed the token's scope — the boundaries enforce, not the model. The same posture covers **user-supplied secrets and URLs**. A calendar's ICS address is a credential: it is stored server-side, every user-facing read returns it **masked**, and it crosses in the clear only on the internal, secret-gated hop the sync poller calls. And because the poller dereferences a user-controlled URL, the fetch runs on the same **IP-pinned, SSRF-guarded transport** as webhook delivery — re-resolved and validated at connect time, so a DNS-rebinding flip can never turn calendar sync into an internal-network probe. # Modules & Seams Source: https://docs.vexa.ai/architecture/modules The single map of the codebase: the module tree, the sealed contract registry (owner → consumers), and the four eval levels. This is the one-page index of the system: **which module owns what**, **which sealed contracts join them**, and **how each level is proven**. Every module entry links to its in-tree README — the README is the source of truth; this page is the map. Why the system has this shape: **a [module](/concepts#module) owns exactly one concern and is the single source of truth for it**; every service is a **modular monolith** built from such modules; modules join only through **[sealed contracts](/concepts#contract)** that CI refuses to let drift. The payoff is debuggability at every scale — a module alone against its fixtures, or a chain of modules at the scale a bug lives at — and a verify loop (code + adversarial tests + goldens, deterministic ports, fixtures from real meetings) simple enough for AI agents to own. The narrative: [What 0.12 is](/roadmap/status#what-012-is). ## The module tree Five core domains, a client, and the composition layer. Each domain owns its contracts + the services that honour them. | Module | Path | Purpose | | - | - | - | | **core/agent** | [`core/agent`](https://github.com/Vexa-ai/vexa/tree/main/core/agent/README.md) | The **execution domain** — turns a trigger (chat turn · fired schedule · external event · live transcript beat) into a **governed agent action** committed to a user's `workspace.v1` git repo. Funnels every trigger through one `unit.v1` envelope (the one Dispatcher). | | ↳ agent-api | [`core/agent/services/agent-api`](https://github.com/Vexa-ai/vexa/tree/main/core/agent/services/agent-api) | The one Dispatcher + the in-container `agent_api.worker` (claude-in-container) it spawns via the runtime. | | **core/meetings** | [`core/meetings`](https://github.com/Vexa-ai/vexa/tree/main/core/meetings/README.md) | The **capture domain** — joins a meeting, captures + transcribes it, emits a speaker-attributed `transcript.v1`. The same `modules/` bricks composed three ways. | | ↳ bot | [`core/meetings/services/bot`](https://github.com/Vexa-ai/vexa/tree/main/core/meetings/services/bot) | TS realtime capture + browser automation — streams audio to the transcription service, relays the returned segments as `transcript.v1`. | | ↳ transcription | [`core/meetings/services/transcription`](https://github.com/Vexa-ai/vexa/tree/main/core/meetings/services/transcription) | The STT service — faster-whisper / CTranslate2 behind an OpenAI-compatible `/v1/audio/transcriptions`. The **GPU workload, deployed separately** (not in `make all`); the bot calls it via `TRANSCRIPTION_SERVICE_URL`. | | ↳ meeting-api | [`core/meetings/services/meeting-api`](https://github.com/Vexa-ai/vexa/tree/main/core/meetings/services/meeting-api) | Python control-plane: the REST surface + lifecycle sink; its `collector` ingests the bot's segments; background sweeps run [auto-join](/core/meetings#auto-join--scheduled-means-the-bot-comes) (due scheduled meetings → the same spawn flow) and `calendar_sync` (ICS feeds → planned meetings, SSRF-pinned fetch). | | ↳ desktop | [`core/meetings/services/desktop`](https://github.com/Vexa-ai/vexa/tree/main/core/meetings/services/desktop) | Single-process desktop host (same bricks, one process). | | **core/gateway** | [`core/gateway`](https://github.com/Vexa-ai/vexa/tree/main/core/gateway/README.md) | The world-facing **edge** — resolves `x-api-key` (fail-closed), enforces per-route scopes, proxies the CORE REST surface verbatim, runs the `/ws` multiplex (per-meeting redis channels → one socket). | | ↳ gateway | [`core/gateway/services/gateway`](https://github.com/Vexa-ai/vexa/tree/main/core/gateway/services/gateway) | The shipped FastAPI edge (`create_app`, hexagonal). | | ↳ conformance | [`core/gateway/services/conformance`](https://github.com/Vexa-ai/vexa/tree/main/core/gateway/services/conformance) | The O-API-1 conformance suite, driven against fakes. | | **core/runtime** | [`core/runtime`](https://github.com/Vexa-ai/vexa/tree/main/core/runtime/README.md) | The **kernel** — spawns + supervises isolated workloads (`runtime.v1`) over a pluggable Backend (process / Docker / K8s), and runs the redis-backed `Scheduler` for `schedule.v1` jobs. Mechanism, not policy (P11). | | ↳ runtime\_kernel | [`core/runtime/src`](https://github.com/Vexa-ai/vexa/tree/main/core/runtime/src) | The kernel + scheduler library; backends (process · docker · k8s). | | **core/identity** | [`core/identity`](https://github.com/Vexa-ai/vexa/tree/main/core/identity/README.md) | The **authN/authZ + accounts** lane — authenticates opaque tokens to a `User`, decides ownership/scope (default-deny, P20), brokers scoped creds. Exists twice on purpose. | | ↳ admin-api | [`core/identity/services/admin-api`](https://github.com/Vexa-ai/vexa/tree/main/core/identity/services/admin-api) | The live DB-backed auth oracle (`/internal/validate`). | | ↳ identity\_core | [`core/identity/src`](https://github.com/Vexa-ai/vexa/tree/main/core/identity/src) | The pure, DB-free reference library honouring `identity.v1`. | | **clients/terminal** | [`clients/terminal`](https://github.com/Vexa-ai/vexa/tree/main/clients/terminal/README.md) | The browser-CLI **workbench** (Next.js) — a dockview over a registry of surfaces (chat · meeting · workspace · routines · sessions · tasks). Owns no business logic; thin `/api/*` proxies to agent-api. | | **clients/slim** | [`clients/slim`](https://github.com/Vexa-ai/vexa/tree/main/clients/slim/README.md) | **`vexa-slim`** — a minimal **Python** client/SDK that drives the control plane through the gateway (`api.v1`) only: peer `slim.agent.*` / `slim.meetings.*` sub-clients + a high-level cookbook. Holds no redis URL or domain internals, so it doubles as a `meetings ⊥ agent` SoC validator. | | **deploy** | [`deploy`](https://github.com/Vexa-ai/vexa/tree/main/deploy/README.md) | The **composition** layer (Compose) — `deploy/compose` brings up the whole v0.12 control plane as one ordered, health-gated stack (postgres · redis · minio + the Python services), GPU-free. `deploy/transcription` is the **separate GPU unit** for the STT service (own compose, GPU or CPU). Owns `execution-targets.v1`. | ## Contract registry The sealed seam between modules. **16 `*.v1` contracts are frozen** in [`contracts.seal.json`](https://github.com/Vexa-ai/vexa/tree/main/contracts.seal.json) — a sha256 per contract; CI fails if a sealed schema drifts. Grouped by owning module, with `owner → consumers`. > [!NOTE] > > The agent domain also defines six **unsealed** control-plane contracts still in flight — > `event.v1`, `unit.v1`, `invoke.v1` (UNSEALED), `task.v1`, `routine.v1`, `tool.v1`, > `proactive-card.v1`. Only the 16 below carry a seal hash today. ### core/agent | Contract | Owner → Consumers | What it is | | - | - | - | | `invoke.v1` | agent ← meetings transcript bridge → agent-api | The meeting → agent trigger; an `Invocation` agent-api turns into a `runtime.v1` worker. (seal: UNSEALED marker in README; hashed in seal) | | `workspace.v1` | agent → agent-api worker, terminal | The agent's git-repo workspace convention — durable memory; data, not platform code. | ### core/meetings | Contract | Owner → Consumers | What it is | | - | - | - | | `transcript.v1` | bot (TS) → collector (Py), gateway, eval | Speaker-attributed segments — the product's core output; the TS↔Py seam. | | `lifecycle.v1` | bot → meeting-api callback | The bot's domain status (distinct from container lifecycle). | | `invocation.v1` | meeting-api → bot (`VEXA_BOT_CONFIG`) | The bot's constructor, validated at boot (fail-fast). | | `acts.v1` | control-plane → bot (redis pub/sub) | The bot command bus; unknown actions ignored (forward-compatible). | | `webhook.v1` | control-plane → subscriber URLs | Outbound delivery envelope + signed-header scheme. | | `captured-signal.v1` | bot capture bridge → eval replay | Raw capture signal teed before the pipeline — replays offline (O-TEL-2). | | `flagged-issue.v1` | user / system → eval | A flagged transcript/attribution bug → reproducible offline test (O-TEL-3). | ### core/gateway | Contract | Owner → Consumers | What it is | | - | - | - | | `api.v1` | gateway → all clients (eval · terminal · SDKs) | The public REST + WS + MCP surface, OpenAPI 3.1, frozen to vexa `main`. | | `ws.v1` | gateway → clients | The live `/ws` multiplex (transcripts · bot status · chat), pinned to `main`'s G5 gate. | | `logevent.v1` | all control-plane services → observability | The structured log envelope + distributed `trace_id` — the observability SSOT. | ### core/identity | Contract | Owner → Consumers | What it is | | - | - | - | | `identity.v1` | admin-api → gateway, every service | Scoped token + access decision; the one auth wire shape (P20). | ### core/runtime | Contract | Owner → Consumers | What it is | | - | - | - | | `runtime.v1` | runtime kernel ← meeting-api, agent-api | The workload lifecycle contract (mechanism, not policy — P11). | | `schedule.v1` | runtime scheduler ← agent-api, routines | HTTP-call job spec: one-shot (`execute_at`) or recurring (`cron`) + retry policy. | ### deploy | Contract | Owner → Consumers | What it is | | - | - | - | | `execution-targets.v1` | deploy → planner | "Where can work run, and what does it need?" — resolved in planning, before execution (ADR-0020). | ## Eval levels — the validation pyramid Every change is proven at the lowest level that can catch it. Governed by [the architecture constitution](/governance/architecture); the live gate lives at [`core/meetings/eval`](https://github.com/Vexa-ai/vexa/tree/main/core/meetings/eval/README.md). | Level | Name | What it proves | Where | | - | - | - | - | | **L1** | Contract | A schema is honoured — every `*.v1` validates its golden fixtures (`validate.mjs`), and the seal catches drift. | each `*/contracts/.v1/` | | **L2** | Unit | A brick does its job in isolation, collaborators faked (ports/adapters). | per-service tests | | **L3** | Integration | Modules compose across a real seam (e.g. gateway → meeting-api, agent-api → runtime). | per-service / cross-module tests | | **L4** | Live + eval | A **real meeting, scored** — bots join, speak a known timeline, and the captured `transcript.v1` is scored (completeness · leakage · attribution) vs ground truth. 0.12 is "done" when live scores ≥ the 0.11 baseline. | [`core/meetings/eval`](https://github.com/Vexa-ai/vexa/tree/main/core/meetings/eval/README.md) | ## Gates, harness & fixtures The eval levels are *enforced*, not aspirational: **an artifact "exists" only when it is gate-green** (P9). Three terms separate the concern: * a **gate** is a runnable check that turns CI red when a rule is crossed; * the **harness** is the machinery that stands a real (or faked) system up so a gate can run; * **fixtures** are the inputs and lifecycle plumbing the harness runs against. ### The gate In this tree the runnable bar is `pnpm typecheck build test`, the compose stack-readiness proof — `make -C deploy/compose stack-test` (it stands the whole stack up, proves it, and tears it down) — and the gate suite (`scripts/gates.mjs`, invoked as `pnpm gates` / `pnpm gate:*`): readme · isolation · exports · graph · schema · contract-version · python · licenses in CI, plus the two architecture gates — `pnpm gate:dataflow` (model↔disk completeness, single-writer / render-only ownership, a reality diff against the code, and view staleness) and `pnpm gate:calm` ([Architecture as Code](/architecture/architecture-as-code)). Contracts **and** the architecture chart are sealed (`pnpm seal:contracts` / `pnpm seal:arch`) — drift from a seal is deliberate-only. ### The harness — three tiers | Tier | What it stands up | Where | | - | - | - | | **Stack proof** | the **real** v0.12 compose stack — `up --build`, wait every service healthy, prove health · auth · transcript dataflow · recording · control-plane invariants, then `down -v` in a guaranteed `finally` | [`deploy/compose/tests`](https://github.com/Vexa-ai/vexa/tree/main/deploy/compose/tests) | | **Replay** | drives the agent / meeting path with **no real meeting** — XADDs `transcript.v1` segments onto the same redis stream the bot produces, so a turn replays offline and deterministically | [`core/agent/eval/replay`](https://github.com/Vexa-ai/vexa/tree/main/core/agent/eval/replay) | | **Unit** | one brick in isolation, collaborators faked through its ports/adapters | each service's `tests/` | Two rules run through every tier: **poll with bounded timeouts, never sleep-and-hope**, and **green-or-skip** — when Docker is absent the stack proof *skips* rather than fails, so the gate stays honest on a machine that cannot run it. The slow, real-bot lanes (a \~7GB browser image) are opt-in behind `COMPOSE_BOT=1`; the always-on subset never spawns one. ### Fixtures * **Golden vectors** — committed example envelopes that *are the spec* (P8). Tests load them **by path from the published contract** (e.g. the `transcript.v1` and `lifecycle.v1` goldens), never by importing the producing domain's code — which preserves the same `meetings ⊥ agent` boundary the production code keeps. * **Lifecycle fixtures** — the session-scoped `stack` fixture owns the whole compose `up → healthy → down -v` cycle; the unit tier uses ephemeral testcontainers (Postgres / Redis), in-process fakes (`fakeredis`, a fake authorizer, a fake webhook receiver), and a `FakeClock` so time-based logic is deterministic. * **Replay fixtures** — captured transcript material (a scripted call) plus a VTT→fixture converter, so an agent turn can be re-driven offline without a live meeting. # Streaming Source: https://docs.vexa.ai/architecture/streaming Redis Streams from the agent container, relayed to the terminal over websocket. The agent runs in a different container than the thing talking to the browser, so output flows through a shared broker — **redis**: ``` Agent (container) ──XADD unit::out──▶ redis Stream ──XREAD──▶ agent-api/gateway ──ws──▶ terminal ``` Because it is a **Stream** (not pub/sub) it is durable + replayable — live for [chat](/how-to/chat-workspace) and [cards](/how-to/live-copilot), and after-the-fact for background dispatches. This reuses the exact mechanism Vexa already runs for [meeting transcripts](/core/meetings). # Authenticated bots Source: https://docs.vexa.ai/authenticated-bots Run every bot signed in to a real account — provision a session once, spawn through the stock API, keep the session alive through use. By default a Vexa bot joins **anonymously**: it knocks on the lobby under a guest name and a host admits it. Authenticated mode makes every bot join **signed in to a real account** instead — the participant list shows the account identity, and org-restricted meetings that refuse anonymous participants open to it. The flow is three parts: provision a session once, configure the deployment to spawn with it, and let normal use keep it alive. **Validated on Google Meet.** The mechanism is platform-agnostic (the session store never inspects a platform; the provisioner also knows Teams and Zoom sign-in surfaces), but Teams and Zoom authenticated joins ride the same setup and validate on their own waves. Zoom is expected to move to a server-side (RTMS) lane that would not need browser auth at all. ## 1. Provision the session — `make login` Provisioning opens a browser, a human signs in **once**, and the session's auth-essential subset (\~200 KB: cookies, local/session storage, login data, preferences — never cache or history) is uploaded to your deployment's userdata storage. ```bash theme={null} export BOT_USERDATA_S3_PATH=userdata/bot-identity-1 # a dedicated prefix per bot identity export BOT_S3_ENDPOINT=http://localhost:18900 # compose: the storage service's loopback port export BOT_S3_BUCKET=vexa export BOT_S3_ACCESS_KEY=... # SCOPED userdata credentials — see security export BOT_S3_SECRET_KEY=... make login # AUTH_PLATFORM=google (default) | teams | zoom ``` The command opens the platform's sign-in page (headed on a desktop; inside a container, attach via the provisioning browser's VNC on `:6080`), waits for you to finish signing in, **confirms** the session (it only succeeds after a logged-in validation passes), then uploads. Aborting without signing in exits non-zero with the login verdict and leaves the storage prefix untouched. Prerequisite on the machine running it: the `aws` CLI (the bot image ships it; a desktop needs it installed). Use a **dedicated account** for the bot (a Workspace user like `notetaker@your-org.com`), never a personal one. ## 2. Configure the deployment to spawn signed-in Authenticated mode is a **deployment property**: set it once on `meeting-api` and every stock `POST /bots` spawns signed-in — no per-request field, no hand-crafted bot config. ```bash theme={null} # meeting-api environment (compose: deploy/compose .env; helm: meeting-api env values) BOT_AUTHENTICATED=true BOT_USERDATA_S3_PATH=userdata/bot-identity-1 BOT_S3_ENDPOINT=http://storage:9000 # as reachable FROM the bot containers BOT_S3_BUCKET=vexa BOT_S3_ACCESS_KEY=... BOT_S3_SECRET_KEY=... ``` With the knob set, each bot restores the stored session into its own ephemeral browser profile before launch and joins as the signed-in account — no guest-name entry, no lobby knock where the account has access. If the knob is set but the storage config is incomplete, `POST /bots` refuses with a 503 naming what's missing — a half-configured deployment never silently spawns anonymous bots. If the session store is unreachable at spawn time, the bot fails loud with a typed `session-restore` error naming the step and endpoint — it never joins signed-out on a failed restore. **One session, one bot at a time.** A second concurrent spawn against the same stored session is refused with a 409 naming the meeting that holds it. One live cookie jar used from N containers and IPs at once is a textbook account-risk signal to Google, and concurrent runs would race the write-back below. Need N concurrent authenticated bots? Provision N accounts under N `BOT_USERDATA_S3_PATH` prefixes (today that means N deployments of the spawn knob, one identity each). ## 3. Session lifetime — the session stays alive because it is used Google rotates session cookies continuously during use and re-challenges state that looks stale. A stored session that is only ever *read* decays with every restore. Vexa therefore closes the round trip: **restore freshest → use → write back**. On every clean bot teardown, the rotated session is uploaded back to the userdata prefix, so the next spawn restores the freshest state instead of a decaying snapshot. The boundary, stated honestly: write-back runs on **clean teardown only**. A hard-killed bot (SIGKILL, node crash) never reaches it — the durable copy simply stays at the last successful write-back, and the next clean meeting refreshes it. A write-back failure is an attributed warning in the bot log, never a hang on exit. The levers that make session lifetime a configured property instead of luck: * **Workspace session-duration policy** — the biggest lever, pure configuration. In Google Workspace Admin, set the bot account's OU session duration to the maximum (or "never expire"). * **Stable egress and browser** — keep each identity on a stable egress IP and a stable bot image version. An identity that hops IPs and browser fingerprints looks cloned. * **Keep-warm** — an idle identity decays on Google's clock. If the account doesn't meet regularly, run a periodic authenticated meeting (or simply schedule the bot into a recurring internal meeting) so rotation keeps happening. There is no packaged keep-warm job today; a cron'd `POST /bots` into a standing meeting is the recipe. * **N accounts for N concurrent bots** — follows from the one-session-one-bot rule above. ## When the session dies anyway — the recovery loop Eventually a session can decay past recovery (a Workspace policy change, a security challenge, a long idle gap). A bot restoring a signed-out session is reported as a failed meeting (the typed `auth_session_missing` verdict is landing with the signed-out detection change — until it merges, the failure surfaces as the join failing to proceed as the signed-in account; see [Troubleshooting](/troubleshooting#authenticated-bot-fails-or-joins-signed-out)). The fix is always the same one command: ```bash theme={null} make login # re-provision; the next spawn picks the fresh session up automatically ``` If sessions die **soon after provisioning** rather than after weeks, don't just re-provision in a loop — check the lifetime levers above (is write-back running? one bot per session? stable egress?). ## Storage layout and security ``` s3:////browser-data/ Local State Default/Cookies ← the live credential material Default/Login Data ... Default/Local Storage/ ... Default/Session Storage/ ... ``` * **The stored session IS a credential.** Anyone who can read the prefix can be the account. Create **dedicated S3 credentials scoped to the userdata prefix** for `BOT_S3_ACCESS_KEY` / `BOT_S3_SECRET_KEY` — never reuse the deployment's admin S3 credentials. * **The boundary, stated honestly:** the S3 credentials ride the bot's invocation into the bot container's environment (that is how the bot restores and writes back). Anyone with `docker inspect` on the bot host, or read access to the runtime API, can see them — which is exactly why they must be scoped to the userdata prefix and nothing else. Secret *values* are never printed in bot logs. * The session subset is not otherwise encrypted at rest beyond what your S3 storage provides; on Compose that is versitygw, which writes it as plain files in the `storage-data` volume. ## Availability by deployment surface * **Compose** — supported as above; the in-stack `storage` service (versitygw) is the userdata store. Choose a key pair for `BOT_S3_ACCESS_KEY` / `BOT_S3_SECRET_KEY` (different from `MINIO_ACCESS_KEY`) and set `BOT_S3_ENDPOINT=http://storage:9000`: on bring-up, `storage-init` creates that account, attaches a bucket policy that limits it to `BOT_USERDATA_S3_PATH`, and checks the limit (its own prefix readable and writable; recordings and other prefixes denied). If the check fails it exits 1, and `docker compose up` does not start meeting-api. * **Kubernetes/Helm** — set the same `BOT_AUTHENTICATED` / `BOT_*` env on the meeting-api deployment (values → env); point the S3 vars at storage the bot pods can reach. * **Lite** — the single-container build does not package a userdata store or the provisioning flow; authenticated mode is not available on Lite today. # Authentication Source: https://docs.vexa.ai/authentication Mint an API key, send it on every request, scope it, and rotate it. Every public request carries an API key in the **`X-API-Key`** header. The gateway resolves the key to a user and injects identity downstream — you never pass a user id or subject yourself; the server derives it from the key. ```bash theme={null} -H "X-API-Key: " ``` ## Base URL | Deployment | API base | | - | - | | Self-hosted (`make all` / compose) | `http://localhost:18056` (`API_GATEWAY_HOST_PORT`) | | Hosted | `https://api.cloud.vexa.ai` | ## Getting a key > [!TIP] > > **Hosted, no install:** [connect your agent](https://vexa.ai/connect?utm_source=docs\&utm_medium=tip\&utm_campaign=authentication) (Claude Code, Codex, Cursor) or [get an API key](https://vexa.ai/start?utm_source=docs\&utm_medium=tip\&utm_campaign=authentication) (free credit, no card required). Self-hosting: [Deployment](/deployment). `make all` mints a key as part of bring-up and **prints it** (along with the service URLs) when the stack is ready — copy it from the `make all` output and use it as your `X-API-Key`. ### Minting more keys To mint additional keys, use the `provision-token` make target with your `ADMIN_TOKEN` (it's set in `.env`, default `dev-admin-token` — **change it before exposing anything**): ```bash theme={null} make -s provision-token ADMIN_TOKEN=dev-admin-token # → prints a freshly minted vxa_... API key ``` Under the hood the **admin API** mints keys. It listens on `http://localhost:18057` by default (`ADMIN_API_PORT`) and is protected by `ADMIN_TOKEN` via the `X-Admin-API-Key` header — you can call it directly for finer control over users and scopes: ```bash theme={null} export ADMIN=http://localhost:18057 export ADMIN_TOKEN=dev-admin-token # your ADMIN_TOKEN from .env # 1. create (or find) a user curl -X POST "$ADMIN/admin/users" \ -H "X-Admin-API-Key: $ADMIN_TOKEN" -H "Content-Type: application/json" \ -d '{"email":"jane@acme.com","name":"Jane","max_concurrent_bots":2}' # → {"id":1,"email":"jane@acme.com","name":"Jane","max_concurrent_bots":2} # 2. mint a key for that user id (JSON body preferred) curl -X POST "$ADMIN/admin/users/1/tokens" \ -H "X-Admin-API-Key: $ADMIN_TOKEN" -H "Content-Type: application/json" \ -d '{"scopes":["bot","tx"]}' # → {"id":7,"token":"vxa_bot_...","user_id":1,"scopes":["bot","tx"]} # query form still works: ?scopes=bot,tx or ?scope=bot ``` The returned `token` is your `X-API-Key`. **It is shown once** — store it. ## Scopes A key carries one or more scopes. Pass them in the JSON body as `{"scopes":["bot","tx"]}`, or as query `scope=` / `scopes=,`. The body wins when both are present. An unknown body field is refused with `422` — never silently dropped. | Scope | Grants | | - | - | | `bot` | bot lifecycle — `POST`/`GET`/`DELETE /bots`, `/bots/status`, bot config — and the calendar connections (`/user/calendar`, `/user/calendars/*`), because an auto-join feed spawns bots | | `tx` | the transcript and meeting-record plane — `/meetings*`, `/transcripts/*` | | `browser` | browser-tool capabilities. **Reaches no API route today** — a browser-only key can call [`/auth/me`](/api/settings#identity) and nothing else | `/recordings*`, `/user/webhook*`, `/user/models`, `/user/transcription`, `/agent/*` and `/mcp` accept either `bot` or `tx`. Most keys want both: `{"scopes":["bot","tx"]}`. The three `/user/*` routes in that list are the [Settings API](/api/settings) — model credentials, transcription backend, and webhook delivery, stored per key owner. Every route requires a scope. A key that holds none of the scopes a route accepts gets `403`, whichever route it is. Keys are prefixed by their primary scope — `vxa_bot_…`, `vxa_tx_…`, `vxa_browser_…`. A key without a recognized scope is rejected. ## Rotating and revoking Mint a new key, switch your clients over, then delete the old one by its token id: ```bash theme={null} curl -X DELETE "$ADMIN/admin/tokens/7" -H "X-Admin-API-Key: $ADMIN_TOKEN" # → 204 ``` Set an expiry at mint time with `expires_in=`; expired keys are rejected automatically. ### Login-minted tokens (`terminal-login`) When a user signs in through the terminal (OAuth or email login), the terminal mints an API token named **`terminal-login`** to populate the auth cookie. These are **bounded per user**: after each sign-in the terminal keeps only the newest `VEXA_TERMINAL_LOGIN_TOKEN_CAP` (default `3`) and revokes the older ones. So when you audit a user's tokens — ```bash theme={null} curl "$ADMIN/admin/users/1/tokens" -H "X-Admin-API-Key: $ADMIN_TOKEN" ``` — the `terminal-login`-named entries are login sessions (capped, not unbounded), while any differently-named entries are self-serve keys the user minted and are never pruned by login. ## What can go wrong | Status | `detail` | Meaning | | - | - | - | | `401` | `Missing API key` | no `X-API-Key` header | | `401` | `Invalid API key` | unknown or revoked key | | `403` | `Insufficient scope for this endpoint` | key lacks the scope this route needs | See the full [error reference](/api/errors). # Changelog & migration Source: https://docs.vexa.ai/changelog Release notes and what changes between major versions. > 📌 **These docs reflect Vexa `v0.12.27`** — the current stable release (2026-09-07). Older self-hosts should read against their pinned version. The authoritative, per-release changelog is on **GitHub Releases**: [github.com/Vexa-ai/vexa/releases](https://github.com/Vexa-ai/vexa/releases). This page summarizes the notable line and the migration notes between majors. ## 0.12 — control-plane carve 0.12 reorganizes the backend around a single front door and server-derived identity. * **Planned meetings.** A meeting is now one record from plan to transcript: create it ahead with `POST /meetings` (title, time, optional link, optional workspace binding), edit/delete while planned, and the eventual bot spawn claims the same record. Members of a bound workspace see the plan, the live feed, and the transcript. See [Meetings](/core/meetings) and [Plan and share a meeting](/how-to/plan-a-meeting). * **Auto-join.** `scheduled` means the bot joins: a sweep sends the bot at start time (per-meeting toggle, loud failures). See [the Meetings API](/api/meetings#auto-join). * **Calendar sync.** Paste a secret ICS address (`PUT /user/calendar`) and upcoming meetings with Meet/Zoom/Teams links import as planned meetings — no OAuth. See [Calendar sync](/how-to/calendar-sync). * **One gateway.** All public traffic enters through the gateway (`API_GATEWAY_HOST_PORT`, default `18056`); it carries authentication and per-route scopes and routes to the internal services. * **Server-derived identity.** The gateway resolves your `X-API-Key` → user and injects identity downstream. A `subject` in a request body or query is **ignored** — the server never trusts the client for identity. See [Authentication](/authentication) and [Identity & trust](/architecture/identity-and-trust). * **Agent control plane.** Dispatch, chat, routines, events, and workspace reads are unified under the [Agent API](/api/agent) at the `/agent/*` prefix (the legacy `/api/*` alias still resolves). * **Compose-based self-host.** The open core brings the whole control plane up with `make all` (Docker Compose) on a single Linux host. See [Deployment](/deployment). * **Open Knowledge Format workspaces.** The workspace knowledge graph (`kg/`) is an [OKF v0.1](https://github.com/GoogleCloudPlatform/knowledge-catalog/tree/main/okf) bundle: the entity frontmatter contract is a strict superset of OKF, seeds ship generated `index.md` listings, and the whole knowledge base is portable to any OKF consumer. See [Browse the workspace](/how-to/workspace-files#the-knowledge-graph-is-an-okf-bundle). ### Migrating from 0.10 * **Route through the gateway.** Point clients at the gateway base URL and send `X-API-Key`; stop calling internal services directly. * **Drop client-supplied identity.** Remove any `subject` / user id you sent in bodies or query strings — it's now derived from the key. * **Use the `/agent/*` prefix** for control-plane routes (the old `/api/*` alias still works during transition). * **Re-check your secrets.** Set real values for `ADMIN_TOKEN`, `INTERNAL_API_SECRET`, `VEXA_DISPATCH_SIGNING_KEY`, and DB/MinIO credentials — see [Configuration](/configuration). ### Upgrade runbook: 0.10 to 0.12.x The items above are the client-side contract changes. This section is the **operator** runbook for moving an existing 0.10.x install — with a populated database — onto the current 0.12.x line. The path was validated against a production migration in July 2026. #### Go straight to the latest 0.12.x — no intermediate hop Upgrade **0.10.x → the latest 0.12.x release** in one step. There is no staged upgrade path and none is needed: schema convergence is **state-based, not sequential** (see below), so stopping on an older 0.12.x buys nothing and costs you the fixes shipped since. In particular, older 0.12.x releases lack the fail-closed schema check described below, so a missing dedup index degrades **silently** instead of refusing to start — the failure mode that check exists to catch. #### The database: no Alembic, three manual steps Vexa has **no migration tool**. `ensure_schema()` runs on every admin-api boot and *converges* the schema: `create_all` → additive `ADD COLUMN` → data backfills → index sync. It never drops a table, never rewrites an existing value, and never issues `ALTER … SET DEFAULT`. That is what makes the upgrade order-independent — and it is also why three things a live 0.10 database needs are **not** done for you. Run these against the database **before** you deploy 0.12.x, as standalone `psql` statements (not wrapped in a `BEGIN`). The runbooks with full SQL, policy notes, and rollback live beside the schema in the repo: [`core/identity/services/admin-api/src/admin_api/schema/`](https://github.com/Vexa-ai/vexa/tree/main/core/identity/services/admin-api/src/admin_api/schema). **1 · Pre-flight the active-meeting dedup index — do this first.** 0.12.x adds a partial UNIQUE index over `meetings (user_id, platform, platform_specific_id)` for non-terminal rows. If the table already holds two or more active rows for the same key, the index **cannot be built** — and admin-api **fails closed**: startup raises, the process exits `3`, `/health` never answers, and the compose healthcheck / Kubernetes probes never pass. Check for duplicates before you deploy anything (read-only): ```sql theme={null} SELECT user_id, platform, platform_specific_id, count(*) AS active_dups, array_agg(id ORDER BY created_at DESC, id DESC) AS meeting_ids FROM meetings WHERE status NOT IN ('completed', 'failed') AND platform_specific_id IS NOT NULL GROUP BY user_id, platform, platform_specific_id HAVING count(*) > 1 ORDER BY active_dups DESC; ``` Zero rows → go straight to building the index. Rows returned → retire the stale duplicates to a terminal status first (policy and the exact statement are in [`MIGRATION-0002`](https://github.com/Vexa-ai/vexa/blob/main/core/identity/services/admin-api/src/admin_api/schema/MIGRATION-0002-meeting-active-dedup-index.md)), re-run the query until it is empty, then build the index out of band so the build does not lock writes on the hot spawn table: ```sql theme={null} CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS uq_meeting_active_user_platform_native ON meetings (user_id, platform, platform_specific_id) WHERE status NOT IN ('completed', 'failed'); ``` `CONCURRENTLY` is why this is manual: `ensure_schema` runs inside a single transaction, and `CREATE INDEX CONCURRENTLY` cannot. With the index already present, the boot-time sync matches it by name and no-ops. **2 · Raise the `max_concurrent_bots` default.** The per-user default moved **1 → 3** in 0.12. The additive column sync neither changes the column default nor backfills existing rows, so on an upgraded database every existing user stays on their old value. Raise-only, so it never lowers an account already granted more ([`MIGRATION-0003`](https://github.com/Vexa-ai/vexa/blob/main/core/identity/services/admin-api/src/admin_api/schema/MIGRATION-0003-default-max-concurrent-bots-3.md)): ```sql theme={null} ALTER TABLE users ALTER COLUMN max_concurrent_bots SET DEFAULT 3; UPDATE users SET max_concurrent_bots = 3 WHERE max_concurrent_bots < 3; ``` **3 · API-token scopes — applied automatically on boot.** 0.10 tokens predate the `scopes` column, so the additive `ADD COLUMN` leaves them empty, and an empty scope set is a `403` on every core route. `ensure_schema` backfills them at startup; left unbackfilled, an empty scope set is an invisible revocation of every existing customer key ([`MIGRATION-0004`](https://github.com/Vexa-ai/vexa/blob/main/core/identity/services/admin-api/src/admin_api/schema/MIGRATION-0004-backfill-token-scopes.md)). Empty rows converge to the full valid-scope set; already-scoped tokens are never widened. > [!NOTE] > > Running on Kubernetes with the Helm chart? The chart's migration Job is off by default > (`migrations.enabled: false`) — the convergence you rely on is the one admin-api runs at boot, and > the manual steps above still have to be run against the database yourself. #### Kubernetes: check the namespace LimitRange before you upgrade Every bot and agent is spawned as its own bare Pod, and a spawned Pod declares **no resource requests or limits of its own**. In a quota-controlled namespace this means the namespace's `LimitRange` defaults are what the bot actually gets — and browser-based bots need real headroom. Either run Vexa in a namespace with no `LimitRange`, or give that namespace the defaults Vexa's own production runs: `default` `{cpu: 1500m, memory: 2560Mi}`, `defaultRequest` `{cpu: 1000m, memory: 1100Mi}`. The `2560Mi` limit is a hard ceiling, not a suggestion — a Teams call spikes past 2 Gi. Too small a default shows up as a bot that dies mid-join, not as a scheduling error. See [Kubernetes (Helm)](/deployment-kubernetes#namespace-limitrange-defaults). ### Parity with the 0.10.x line The public `api.v1` contract is sealed **hash-equal to `main`'s OpenAPI 1.5.0** and enforced in CI (`gate:contract-version`), so the wire surface is identical by construction. Two honest caveats follow from that: 1. A sealed *endpoint* is not automatically a wired *capability* — some contract routes are not mounted in the open-core control plane yet, and this page says which. 2. Anything `main` merged **after** 1.5.0 is by definition not in 0.12 until a contract revision. Every row below was verified against the 0.12 tree (route tables, module code, or a live-edge probe), not inferred from planning docs. #### Not yet in 0.12 | Capability (0.10.x has it) | Status in 0.12 | Honest note | | - | - | - | | Mid-call bot config — `PUT /bots/{platform}/{id}/config` (change language/task live) | contract-sealed, not wired | The gateway mounts and forwards it, but the live bot-control plane isn't wired in the open-core meeting-api — authenticated calls return the downstream `404`. Flagged in the [Meetings API](/api/meetings) reference. | | Voice agent — `POST /bots/{platform}/{id}/speak` (TTS into the call) | contract-sealed, not wired | Proven at contract level (`acts.v1` + the mock-bot speak-ack gate); the real path returns `404` in the shipped stack. Contract-ready, not user-ready. | | Interactive bots beyond speak — in-meeting **chat**, **screen share**, **avatar** | contract-sealed, not wired | The `chat`/`screen`/`avatar` endpoints are in the sealed `api.v1`, but the 0.12 gateway does not mount them (edge probe: `404`). **Planned back in the 0.12.x line** — same honest framing as config/speak. | | Transcript **share links** — the 0.10.x public-URL share `GET /public/transcripts/{id}.txt` | not mounted | Verified: sealed in `api.v1`, mounted by no component; a URL of that shape does not resolve on a 0.12 deployment. `POST /transcripts/…/share` **is** served, but as a capability-token mint (`{id, token, mode, expires_at}`) redeemed by another authenticated user at `POST /transcripts/share/accept` — not the 0.10.x public-URL response. See the [api.v1 native-id table](/api/meetings#apiv1-native-id-support-per-route). | | `GET …/participants` — meeting participants endpoint (main PR #453) | post-seal | Merged into `main` after the 1.5.0 seal; **planned back in the 0.12.x line** with the next `api.v1` contract revision. | | **`discord`** as a non-bot ingest platform (main PR #452) | post-seal | The 0.12 platform enum is `google_meet` / `zoom` / `teams` — a contract test asserts `DELETE /bots/discord/…` → `422`. **Planned back in the 0.12.x line** with the next `api.v1` contract revision. | | Zoom **bring-your-own OBF/ZAK tokens** + native SDK path (main PR #320) | not carried — **planned back in the 0.12.x Zoom track** | Verified: the carved bot joins Zoom via the **web client only** (`buildZoomWebClientUrl` → `app.zoom.us/wc/…/join`); no ZAK/OBF token handling and no native-SDK branch exist yet. Authorized-join (tokens and/or SDK) returns with the 0.12.x Zoom work. | | **Segment-latency env knobs** (main PR #447: `MIN_AUDIO_DURATION_SEC`, `SUBMIT_INTERVAL_SEC`, `IDLE_TIMEOUT_SEC`) | partial | The three knobs exist as **programmatic** config (`SpeakerStreamManagerConfig`: `minAudioDuration` / `submitInterval` / `idleTimeoutSec`), but nothing reads them from the environment — a deployment cannot opt into low-latency mode without code. | | `max_concurrent_bots=0` treated as **depleted, not unlimited** (main PR #456) | **carried (fixed 2026-07-04)** | The gap was found while fact-checking this page and fixed the same day (0.12 PR #44, mirroring main's #456): a cap of `0` now rejects the spawn as depleted, with a regression test. | | Swagger/OpenAPI **auth-scheme fixes** (main PRs #319, #336) | not carried | The 0.12 admin-api declares both `APIKeyHeader`s **without `scheme_name`** — the exact collapsed-scheme Swagger bug #319 fixed; the 0.12 gateway declares no OpenAPI security schemes at all. Cosmetic-but-real DX gap in the *served* docs. The sealed contract carried the same class of bug — all 61 secured operations referenced the undefined `APIKeyHeader` scheme (#62) — fixed by #531 (refs now resolve to `ApiKeyAuth`/`AdminApiKeyAuth`, pinned by `validate.mjs`); the *served*-spec gap remains open. | | Dashboard-authz + schedule-callback hardening (main PR #406) | superseded by architecture | 0.12 scheduling compiles `schedule.v1` jobs that the runtime scheduler fires internally — there is no exposed schedule-callback endpoint to harden. The vendored dashboard rides as an optional compose overlay behind the gateway. | | Hardened Python Docker builds (main PR #435) | superseded | 0.12 rebuilt all of its images. | #### Verified carried (previously uncertain) * **Stop a bot** — `DELETE /bots/{platform}/{native_meeting_id}` is mounted and live end-to-end: the gateway forwards it and the meeting-api stop router handles it (leave command over redis + direct runtime teardown for a still-booting bot), with route-level tests. * **Google Meet lobby-timeout vs host-denial** (main PR #460) — carried in a **stronger typed form**: admission ends in a typed `AdmissionOutcome` (`denial` | `lobby_timeout` | `join_failure`); a denial maps to `rejected`, a lobby timeout to the retryable `awaiting_admission_timeout`. * **WS subscription authz for hex-derived native IDs** (main PR #385) — subsumed: the 0.12 authorize-subscribe hop authorizes on **DB ownership first**; URL constructability is advisory only, so Vexa-generated 16-hex Teams IDs subscribe fine. * **Token scoping** (main PR #436 territory) — present: admin token mint issues `vxa__…` tokens, accepts multi-scope `?scopes=bot,tx`, and the gateway enforces per-route scopes. #### Known defects carried (flagged, not hidden) * **max-bots cap has a TOCTOU race** — concurrent `POST /bots` can overspill the per-user cap (bounded; reproduced and asserted by the stress lane; likely shared with `main`). The atomic fix is on the enhancement list. #### What 0.12 delivers instead * **One front door** — a single gateway with auth + per-route scopes; **server-derived identity** (client-supplied `subject` is ignored everywhere). * **The agent control plane** — dispatch, streamed chat, routines (cron/event), events, and workspace APIs; sandboxed CLI agents over an **OKF v0.1** git workspace. * **Sealed, frozen contracts** — `api.v1` hash-equal to `main`'s OpenAPI 1.5.0, enforced by `gate:contract-version`; parity itself is a gate (`gate:parity`). * **A gate system `main` doesn't have** — module isolation, acyclic import graph, one front door per module, fail-loud fault surfacing, complete mediation (default-deny), per-service health, license/SBOM cleanliness, an architecture-compliance map. * **A real-stack proof lane** — `gate:compose` + MOCK\_BOT drives the full control plane (join/reject/crash/timeout, recordings, webhook envelopes, WS frames) on every change. * **Architecture as code** — a validated FINOS CALM model with generated views, enforced in CI. * **The lite / compose / helm deploy trio** — `deploy/lite` (the whole control plane in one container, process runtime backend), `deploy/compose` (`make all`), and `deploy/helm` (`charts/vexa`, bots spawn as Pods via `RUNTIME_BACKEND=k8s`). **All three are supported deploy paths**; lite and helm docs land with the 0.12.x docs push (tracked in `DOCS-GAPS.md`). * **An MCP server for the public API** — the 0.10.6 meeting-control MCP service is ported (9 tools + 4 prompts, stateless, every call authorized by the gateway with the caller's key) and runs as its own compose service today. Direction: **one MCP server servicing all of Vexa's capabilities, fronted by the gateway** — no separate service; the standalone port is an interim exposure until the gateway mounts `/mcp`. * **The terminal workbench** — the primary client surface (docs pending); the vendored dashboard remains available as an optional compose overlay. * **Honest roadmap/status docs** — capabilities are claimed only with a green gate behind them. #### Release-notes decisions (resolved by the maintainer, 2026-07-04) * **Vexa Lite ships as a supported deploy path** — the lite/compose/helm trio; the release-image validation matrix proves it from published images, and its docs land with the 0.12.x docs push. * **MCP**: the ported meeting-control server is carried as its own compose service for now; the direction is **one MCP server servicing all of Vexa's capabilities, fronted by the gateway** — no separate service long-term. * **Interactive bots** (chat / screen share / avatar): **planned back in the 0.12.x line** — contract-sealed today, control plane not yet wired. * **`discord` ingest and `GET …/participants`**: **planned back in the 0.12.x line** with the next `api.v1` contract revision. ## 0.12.x maintenance fixes * **Compose: `BROWSER_IMAGE` pinned to the release tag (#659).** `deploy/compose` now pins `BROWSER_IMAGE` to the immutable release tag instead of a moving `:v012` tag, so `make all` deploys are reproducible. See [Deployment](/deployment). * **Admin-API: empty token scopes backfilled on upgrade (#578).** Upgrading a 0.10 stack to 0.12 backfills `api_token` rows that had empty `scopes`, so pre-existing tokens keep working under the scoped gateway. No action required — the backfill runs during schema sync. * **Lite: terminal transcription env wired (#628).** In `deploy/lite`, the `[program:terminal]` worker now receives the STT and internal-secret environment it needs, so speech-to-text works in the single-container lite deploy. See [Deployment](/deployment). * **Webhooks: crash-safe retry drain (#520).** The retry drain now uses a Redis reliable-queue, so failed webhook deliveries survive a storage outage and are still delivered after recovery instead of being lost. * **Google Meet: stop silence hallucinations (#617).** Added ja/tr phrase lists plus a near-silent submit gate, so near-silent audio windows are no longer sent to Whisper — killing the phantom phrases Whisper emits for near-silence. * **Google Meet: empirical hallucination harvester (#617 follow-up).** A single script that harvests hallucination phrase-lists empirically across every Whisper language — groundwork for the broader silence-hallucination work (#622). * **Credits (v0.12.10).** @waqaskhan137 — the orphan-process-group diagnosis (#486) and the transcription-model findings whose regression rows now live in #522/#525; @m-tauqueer — driving the leave-when-alone value (#270) whose spec is now #545. Superseded PRs are credited on their threads; findings are contributions. * **STT model id is now a deployment choice: `TRANSCRIPTION_MODEL` (#522).** The bot's whisper client used to hardcode `model=whisper-1` on every live transcription request, so OpenAI-compatible backends that validate model ids (Groq, vLLM, LiteLLM, gateways) rejected every request — the bot joined and captured but produced no transcript. Set `TRANSCRIPTION_MODEL` (e.g. `whisper-large-v3-turbo` for Groq) in the stack `.env` and every request — bot pipeline and the terminal's composer-mic dictation — carries that id end-to-end; unset, the wire stays `whisper-1` byte-for-byte. The bundled `deploy/transcription` unit still ignores the field (its model is its own `MODEL_SIZE`). Credit: @waqaskhan137's #489 prototyped the client-side half. See [Configuration](/configuration#transcription-stt). * **Google Meet segments now carry a real `language` (#523).** The Meet lane stamps the STT-detected (or forced) language of each transcription window onto its segments, so `GET /transcripts/...` labels Meet segments the same way Zoom/Teams always did — mixed-language meetings read truthfully instead of `null`. The language contract (auto vs forced mode, window-level granularity) is now documented in [Send a bot](/how-to/send-a-bot) and the [Meetings API](/api/meetings#send-a-bot-to-a-meeting). * **Terminal errors now speak user truth (#533).** Every error a terminal surface shows states what happened in the user's vocabulary ("Couldn't reach the Vexa server — check that the stack is running.", "Your API key was rejected — sign in again.", or the backend's own reason verbatim) instead of transport plumbing like `/api/... → 502: upstream unreachable: ConnectError`. The full technical string is preserved on the browser console for operators. A new presenter seam (`presentError` beside `ApiError`) plus a grep-guard test keep the 46 former raw render sites — and any future one — honest. * **Google Meet leave: confirmation-dialog fallbacks work again, and the error spam is gone (#542).** The browser-context leave click fed Playwright-only `:has-text()` selectors to `document.querySelector`, so every dialog-confirmation fallback ("Leave meeting", "Just leave the meeting", dialog-scoped Leave/End) was silently dead, and each leave attempt logged a burst of `not a valid selector` errors that read like join failures (#432). Leave buttons are now matched in-page with plain CSS plus real text matching, and the selector-validity gate CSS-parses every array declared browser-context, so this class of dead selector fails CI loudly instead of shipping green. * **Per-PR lite boot smoke: lite-only breakage now fails the PR, not the release (#581).** A new `lite-smoke` job in `pr-value` builds `deploy/lite/Dockerfile.lite` from the PR's own tree, boots it with `make -C deploy/lite up`, probes the front doors, and runs the concurrent-bots smoke — scoped to PRs that touch `deploy/lite/**` or `core/**`, with no secrets (anonymous pulls). Three v0.12.2 release blockers were lite-only bugs this leg would have caught per-PR. A companion `gate:lite-makefile` statically rejects the exact footgun class (a comment line inside a `\`-continued recipe block in `deploy/lite/Makefile`, which once shipped `docker run` with an empty image). * **Pre-active teardown attribution: lobby waits are no longer filed as join errors (#598).** A bot whose workload is torn down while it sits in `awaiting_admission` now terminates with `completion_reason: awaiting_admission_timeout` ("the room never admitted the bot") instead of the generic `join_failure`; bots destroyed at `requested`/`joining` keep `join_failure`. Both reasons stay transient→retry, so only the label — what operators see on the meeting terminal — changes. * **Meeting-header bot controls follow the live WebSocket, never a stale snapshot (#674).** When the `meeting.status` stream is disconnected the header shows "Reconnecting…" and Stop/Send bot are disabled — a stale-live row can no longer offer an actionable "Stop bot" for a meeting the backend no longer has. A stop that races reality (404/409) now shows a human message ("This meeting is no longer active — refreshing the list.") and reconciles the control, instead of a raw JSON toast. * **`make probe` — the standing full-journey smoke probe, per surface (#690).** One command per install surface (`make probe`, `SURFACE=compose|lite|helm`) drives the whole journey through the gateway front door — spawn → schedule → boot → join → transcribe → live-view → stop — then sweeps every component's logs once. Each stage prints Expected / Actual / Verdict and a red stage names where the journey broke, so an operator (or an agent mid-debug) gets a truthful install verdict in minutes with zero humans. See [Kubernetes deployment](/deployment-kubernetes) and the `deploy/*/probe.sh` wrappers. * **Merge card: acceptance row — `Closes` can no longer silently drop delivery legs (#712).** The merge card grows a third row: every issue a PR would auto-close must have its whole Acceptance section delivered (checkbox and legacy-bullet shapes both parsed); undelivered legs red-card the PR until they ship, carry delivered evidence on the issue, or the link is re-filed as `Part of #N`. A dropped acceptance leg is now a decision on record, never a GitHub-keyword side-effect. See [Delivery](/governance/delivery#integration-—-the-merge-bar). * **Release witness receipts: full image digests or no pass (#713).** The witness gate now rejects any `sha256:` in a receipt's deployment fields that is not followed by the full 64-hex digest (prefixes and trailing ellipses fail, naming the field), and the generator's skeleton asks for the full index + platform-image digests at fill time. The v0.12.10 receipt's deployment field is completed to the full values in the same change — the record of which bytes were witnessed no longer needs a registry lookup to be evidence. * **Release runbook: publish step named (#714).** `releases/README.md` §the-two-phase-flow gains step 4 — after `:v012` moves, a human publishes the GitHub Release with `gh release create vX.Y.Z --verify-tag --latest --notes-file `; the guard's retract-to-draft re-check now lives under the act it guards. An operator ships a release end-to-end from the runbook alone. * **Sealed `api.v1` contract: security references now resolve (#531, closes #62).** All 61 secured operations in the sealed OpenAPI document referenced `APIKeyHeader` — a scheme the document never defines — so Swagger UI's Authorize dialog could not attach the key and spec-driven client generators emitted clients that never sent `X-API-Key`. The per-operation references now point at the document's own defined schemes: `ApiKeyAuth` (`X-API-Key`) on the 56 client operations, `AdminApiKeyAuth` (`X-Admin-API-Key`) on the 5 `/admin/{path}` operations — the headers the running gateway and admin-api already honor. `gate:schema`'s `validate.mjs` now pins referential integrity (every referenced scheme must be defined, first offenders named), so a re-capture can never re-import the bug. * **Recordings: opening a recording mid-meeting no longer freezes it (#768).** Master assembly is now re-assemblable instead of write-once — a `GET /recordings/{id}/master` while the meeting is still recording serves the audio captured so far without permanently freezing the file, and every later read that finds new chunks rebuilds the master (repairing already-frozen recordings on their next read). The assembled-chunk-count is recorded and compared so the freeze cannot silently return. * **Recordings: long recordings over \~1000 chunks are assembled in full (#769).** The chunk listing now paginates `list_objects_v2` to exhaustion (looping on `IsTruncated`/`NextContinuationToken`) instead of reading only the first 1000-key page, so a master built from a very long meeting no longer silently drops everything past the first page. A chunk-count mismatch is logged loudly. * **Helm: spread replicas across nodes with `topologySpreadConstraints` (#770).** `replicaCount > 1` no longer means "all on one node" — set `global.topologySpreadConstraints` (applied to every component) or a per-component `.topologySpreadConstraints` override, and the chart injects that component's own pod selector when you omit `labelSelector`, so a single block spreads each component's own replicas. Empty by default (single-node / k3s installs are unaffected). See the chart README's "Spreading replicas across nodes". * **Speaker-stream tuning now reaches spawned bots (#771).** `runtime.speakerStream.*` (`BOT_SPEAKER_MIN_AUDIO_SEC`, `BOT_SPEAKER_SUBMIT_INTERVAL_SEC`, `BOT_SPEAKER_CONFIRM_THRESHOLD`, `BOT_SPEAKER_MAX_BUFFER_SEC`, `BOT_SPEAKER_IDLE_TIMEOUT_SEC`) rendered onto the runtime pod are now merged into each spawned bot workload's environment, so the accuracy/latency knobs actually take effect on k8s and docker-backed deployments instead of rendering as dead config. See [Configuration](/configuration). * **Helm: agent-api no longer deadlocks on upgrade (#774).** agent-api mounts the single `agent-workspaces` PVC, whose default access mode is `ReadWriteOnce`; the shared zero-downtime RollingUpdate (`maxSurge:1`) made any pod-spec-changing `helm upgrade` stall on a Multi-Attach error. agent-api now renders `strategy: Recreate` under an RWO workspace (the same opt-out redis already carries), and keeps RollingUpdate when the workspace is `ReadWriteMany`. * **Teams bot speaker attribution: the hint pipeline now reaches the transcriber (#498 — wiring only; live attribution NOT yet delivered).** ⚠ The v0.12.14 witness pass (2026-07-19) observed a live 2-speaker Teams meeting still publishing every segment as `seg_N` — the hints cross, the name resolution does not complete. #498 remains open; the end-to-end value lands in a later release. What this change DID deliver: the bot now bundles the Teams voice-level-outline speaker watcher (`@vexa/teams-capture` — the same module the desktop extension runs) into its browser bundle and wires it to the transcriber: hints cross the page→Node boundary under Teams' true `dom-outline` kind (previously erased to Zoom's `dom-active`), on one epoch-ms clock with a loud skew guard, and a periodic `hint-counters` log line names the exact hop if a name ever goes missing again. A headless boundary CI test pins the wiring so the regression cannot ship silently. * **Bots fail fast when the control plane is unreachable, instead of an opaque crashloop (#530).** On a freshly autoscaled k8s node whose network hasn't converged, a bot's first callback to meeting-api can be unreachable. The bot now makes its first `joining` lifecycle emit load-bearing: if the meeting-api callback is unreachable it probes redis, and only if BOTH control-plane channels are down does it refuse to join — terminating in under a few seconds with a dedicated exit code (3) and an attributed terminal (`failure_stage: requested`, `infra_fault: control_plane_unreachable`) rather than a generic `join_failure` or a stuck-`requested` meeting. A reachable control plane adds zero latency (the secondary channel is never probed). Operators can now tell "broken node" from "broken join" in one `kubectl describe`. See [Kubernetes deployment](/deployment-kubernetes) and [Troubleshooting](/troubleshooting). * **Zoom speaker hints: watcher wired into the capture bundle (#538 — wiring only; live attribution NOT yet delivered).** ⚠ The v0.12.14 witness pass observed live Zoom segments still publishing as `seg_N`; #538 remains open. What this change DID deliver: the Zoom active-speaker watcher (`createZoomSpeakers`) is wired into the bot's page-side capture bundle: active-speaker transitions cross to the name binder as `dom-active` hints, so Zoom bot segments carry the real participant's name instead of `seg_N` placeholders — the same attribution Google Meet and Jitsi already deliver. Flicker-debounced (a single \~250 ms tile blip never mislabels a turn); screen-share layouts and nameless tiles emit no hint rather than a wrong one. * **Google Meet authenticated join: fail closed on signed-out browser profile (#607).** When `authenticated: true` the bot refuses to degrade to an anonymous join if the browser profile is signed out — the guard throws a typed `AuthSessionError` (an `AdmissionError` subclass with outcome `auth_session_missing`) which the join driver maps to the new permanent `auth_session_missing` completion reason: the control plane records the truth and never re-spawns against the dead profile. `auth_session_missing` is added to the lifecycle.v1 and api.v1 completion-reason enums (api.v1 also gains the previously missing `startup_alone`; contracts re-sealed, lane:contract). The guard distinguishes a signed-out guest lobby (name input visible) from a signed-in-but-not-pre-admitted account (no name input), which still knocks via "Ask to join". * **Authenticated bots: the user flow exists end to end (#724).** Provision a signed-in bot session with one command (`make login` — sign in once, the session lands in the deployment's userdata storage), then set `BOT_AUTHENTICATED=true` on meeting-api and every stock `POST /bots` spawns signed-in under the account identity. A failed session restore is now a typed, attributed `session-restore` error instead of an unattributed pre-launch death. See [Authenticated bots](/authenticated-bots). * **Authenticated bots: sessions survive use (#725).** The bot writes the rotated browser session back to the userdata store on clean teardown, so the next spawn restores the freshest state instead of a decaying snapshot; a second concurrent spawn against the same stored session is refused with a 409 naming the conflict (one identity, one live bot). The session-lifetime levers are documented on [Authenticated bots](/authenticated-bots). * **Google Meet auth-session guard is now pinned by an offline test (#756).** `session.test.ts` drives `joinGoogleMeeting`'s authenticated branch against fabricated lobby fixtures: a signed-out guest lobby must throw the typed `auth_session_missing` refusal and a signed-in not-pre-admitted lobby must knock. Deleting the guard turns the join module's suite red — the guard is no longer carried only by the live leg. * **Signed-out detection on Google Meet no longer depends on English UI text (#757).** The authenticated lobby's join CTA and the signed-out guest-lobby probe are now located by structural (jsname/attribute) selectors first, with English text as last-resort fallbacks — so a non-English lobby still fails closed with the actionable `auth_session_missing` error instead of a misleading "no join button found" timeout. Both selector arrays are covered by the selector-validity gate. * **Teams bot leave — dead browser-context fallbacks revived (#759).** The Microsoft Teams leave path ran its fallback list through the browser's `document.querySelector`, but 10 of the 25 entries were Playwright-only `:has-text()` locators — invalid CSS that threw on every call, so every text-labelled button (all three leave-confirmation dialog buttons included) was silently un-clickable and each leave attempt logged 10 "not a valid selector" errors. The array is now a `{ css | text }` matcher list driven by the same shared in-page clicker as Google Meet (#542), and it joins the selector-validity gate's browser-context lane so the class fails loudly for Teams too. * **Governance: four D-book amendments from the v0.12.12 retro (#785).** TAKE verdicts now name the head sha they examined (a later push makes the endorsement historical); one rule governs sealed-contract re-stamps (a back-compatible re-seal may ride a `lane:contract` PR whose merge is the ruling, breaking changes get an issue-recorded ruling first); the closure mechanism gains mechanism-vs-tree verification over open prepared issues (catching deliveries no link sweep sees); and the incoming-report template now requires the deployed version / verified tag. See [Delivery](/governance/delivery). * **Security floor: adm-zip bumped to 0.6.0 via pnpm override (#773).** Closes Dependabot high GHSA-xcpc-8h2w-3j85 (crafted-ZIP 4 GB allocation in adm-zip `<0.6.0`), which rode in through onnxruntime-node's install-time unpack under `@vexa/mixed-pipeline`. Exposure was postinstall-only, but the resolution layer now excludes the vulnerable range entirely. * **`POST /bots` with only a `meeting_url` now derives the meeting id — no more orphan meetings (#792).** A url-only body used to return 201 while persisting `native_meeting_id=''`, creating a meeting (and a live bot) no `DELETE /bots/...` or `GET /transcripts/...` could ever address. The API now honors what api.v1 always promised: the URL is parsed to extract `platform`, `native_meeting_id`, and the passcode (Zoom `?pwd=` / Teams `?p=`); an unrecognizable URL is a typed `422` naming the missing `native_meeting_id`, and a `platform` that disagrees with the URL is a `422` too. Explicit `native_meeting_id` is never overridden. See [Send a bot](/how-to/send-a-bot). * merge-card: concurrency group scoped per trigger event — near-simultaneous approval + label events no longer cancel each other's runs, leaving a stale red required check on the final mile (#798) * **meeting-api: shared-meetings list no longer melts the database under load (#800).** The meetings list combined owner, transcript-share, and workspace access in one `OR`, which planned as a backward walk of the whole `created_at` index — 100s+ per call for users with few or old meetings, enough concurrent calls to saturate the connection pool (this rolled back a hosted 0.12.12 production cutover). The three access branches now run as an indexed `UNION` (each with its own top-N scan) plus supporting indexes; worst-case calls drop from hundreds of seconds to sub-millisecond with identical results. Deployers: build the three new `meetings` indexes `CONCURRENTLY` before rolling the image on a large live table. * **helm chart: probe timeouts raised to 5s across app services (#802).** Liveness/readiness/startup probes previously inherited Kubernetes' 1-second default `timeoutSeconds`; on a busy single-event-loop service a healthy pod can hold `/health` past 1s, and the liveness kill turned load into a restart storm (observed in hosted production on meeting-api: pods serving 200s probe-killed every \~10 min). All HTTP-probed app deployments (meeting-api, gateway, admin-api, runtime, agent-api, terminal) now declare `timeoutSeconds: 5`. * **Bot lifecycle callbacks survive meeting-api blips; completions carry a delivery marker (#806, #807).** The bot's status-callback retry horizon grows from \~0.6s (3×200ms) to \~7.5s (5×500ms exponential) — in hosted production a brief meeting-api disruption made seated, healthy bots unable to report `joining`, and the reaper then failed their meetings; a longer horizon rides out such blips. Separately, every terminal transition now stamps `meeting.data.segments_captured`, so a meeting that "completed" without capturing any transcript is queryable and alertable instead of being indistinguishable from a success. * **Record-always at the capture boundary: bots can now persist their raw `captured-signal.v1` stream for offline replay.** With `captureSignalEnabled` in the invocation (or `VEXA_CAPTURE_SIGNAL=1`), the bot tees every raw capture frame — per-channel PCM audio plus the speaker events it was captured with — into a session JSONL, and logs each STT round-trip beside it (`.stt.jsonl`). A recorded session replays byte-for-byte through the exact transcription pipeline with no live meeting (`REPLAY_FIXTURE= tsx src/replay.test.ts`), and `eval/src/distill.mjs` cuts a session down to a minimal fixture around a reported symptom (time window / speaker). A session stores both halves of the signal: the audio frames and — for Zoom/Teams/Jitsi, whose single mixed stream is named from active-speaker hints arriving on their own channel — those hints as `type: "hint"` records, so a replay reproduces who spoke, not just what was heard. Off by default; when off, the capture path is unchanged (a single branch). This is the diagnostic layer for zero-transcript and misattribution reports: the failing meeting's input becomes a deterministic red test. * **Governance: a session's own worktree comes before its first edit.** The actor contract (AGENTS.md) now spells out the two trespass tells — `git worktree add` answering "already used by worktree" and uncommitted files you didn't write — and the remedy for each: branch from the ref into a fresh worktree of your own, never edit `main`, the primary checkout, or another session's tree. D14b ties the claim lease to that own-worktree rule. * **An exhausted STT token is now caught where you set it — by transcribing real audio, not by guessing from balances or account names.** The config preflight's STT probe posts a \~1s WAV (the same request a bot's first chunk makes); a metered backend that answers 402 becomes a typed `exhausted` configuration fault that demotes `/health`, refuses bot spawns, and names the consequence ("meetings will complete with no transcript"). The old empty-body probe could never elicit the 402 and greened the dead token. The wizard's Test button now runs the same round-trip and no longer consults `balance_minutes` — which reads 0.0 both for an exhausted token and for a billing-exempt service account that transcribes perfectly — and no account identity is hardcoded anywhere. The probe is metered, so it caches for 15 minutes. * **Cold first-run no longer dies on `invalid reference format` (#812).** Stock `.env.example` ships `BROWSER_IMAGE=vexaai/vexa-bot:${IMAGE_TAG}` — docker-compose expands it, but `make all`'s spawn-image pull read the literal string and handed `docker pull` an invalid reference, breaking every fresh install at the last step. The pull now resolves `${IMAGE_TAG}` (and hardens the tag read against duplicate lines); a genuinely custom literal `BROWSER_IMAGE` still pulls verbatim. * **Webhook deliveries now report every outcome (#815).** `WebhookSink.deliver` returns `delivered | suppressed | blocked | failed | queued`, and that outcome used to be discarded — so a webhook a subscriber never received (an event type outside their filter, an SSRF-refused target, an endpoint returning 4xx) was indistinguishable from one that arrived, and even successful deliveries logged nothing. Each delivery now emits one `webhook_delivery` logevent carrying the outcome, the event type, the target **host** (never the full URL — it can carry a token in its path or query), the HTTP status and the error, at `warning` for anything that did not arrive. "My webhooks stopped" is now a one-query answer instead of a silent failure. A compose-stack test asserts the outcome is reported end-to-end. ### Fixed * **A wrong STT URL or token is now caught where you set it, not by an empty transcript.** The config probe treated *any* answer except 401/403 as proof of a working backend, so a URL whose transcriptions path 404s — the most common misconfiguration — passed every check. It is now reported as `misconfigured` with the reason, on the boot log and the `stt` row of `GET /health`. ([#511](https://github.com/Vexa-ai/vexa/issues/511)) * **The setup wizard's green now means "a bot will transcribe".** On any non-Vexa OpenAI-compatible endpoint the test previously reported "reachable; token was not verified" as a PASS, so a rejected key tested green and failed mid-meeting. It now verifies with the same request a bot's first audio chunk makes, and grades the endpoint's own answer. ([#511](https://github.com/Vexa-ai/vexa/issues/511)) * **`POST /bots` refuses a set-but-broken backend** with a typed 503 carrying the probe's reason, before the meeting row is written — instead of spawning a bot that joins and captures nothing. The refusal names how to re-test immediately. ([#511](https://github.com/Vexa-ai/vexa/issues/511)) * **`TRANSCRIPTION_SERVICE_URL` accepts both documented shapes everywhere.** A full `…/v1/audio/transcriptions` URL worked in meetings but double-pathed into a 404 in the boot probe and the terminal's dictation route. All four consumers now share one rule: append the path only when it is absent. ([#511](https://github.com/Vexa-ai/vexa/issues/511)) ### Fixed * **A bot that never got into the meeting is no longer reported as a completed meeting.** Stopping a bot still sitting in the waiting room overwrote the stage it had reached, so the terminal classifier concluded the bot had been live and persisted the run as `completed` with zero transcript — a failure the system reported as success. The stage now survives the stop, and such a run ends `failed` with `failure_stage` naming where it actually died. Reproduced on the deployed 0.12.14 build (meeting 24336's own transition log records the illegal edge); the prior-era share of this shape was \~49% of zero-segment completions. ([#807](https://github.com/Vexa-ai/vexa/issues/807)) * **Cancelling a bot before it is admitted no longer re-spawns it three times.** The terminal reason for a user stop is now the user-terminal `stopped` (permanent) rather than `awaiting_admission_timeout` (transient), so a meeting the user deliberately walked away from is not retried on their quota. An admission wait that times out on its own is unchanged and still retried. ([#807](https://github.com/Vexa-ai/vexa/issues/807)) * **A redelivered `DELETE /bots/…` no longer publishes a second leave command.** The stop trigger is one-shot, guarded on the recorded user intent instead of a status side-effect — the previous guard held only against the in-memory test double, never against the real database. ([#807](https://github.com/Vexa-ai/vexa/issues/807)) ### Fixed * **`GET /bots/status` no longer reads a caller's entire meeting history to answer a running-bots badge.** It fetched every meeting the account ever had, with the full `data` JSONB, and filtered in Python — 4,896 meetings / 180 MB on one production account, 144 MB of that `bot_logs` no endpoint renders. Four concurrent polls demanded roughly 740 MB transiently and OOM-killed the pod at the default 1 GiB limit. The status filter and the heavy-key projection now both happen in the query. ([#803](https://github.com/Vexa-ai/vexa/issues/803)) * **`GET /meetings/{id}` fetches the row instead of enumerating the account and filtering by id.** Access rules are unchanged — the same ownership/share union decides visibility — and the detail view still returns full `data`. ([#803](https://github.com/Vexa-ai/vexa/issues/803)) ### Fixed * **Zoom and Teams admission verdicts are now typed, so permanent failures are no longer retried on your quota.** Both platforms threw plain errors for every admission failure, which the control plane classified as transient `join_failure` and re-spawned up to 3× — a Zoom host denial re-knocked on the same host, the Zoom RTMS anti-bot wall was retried into the same wall, and a meeting restricted to signed-in users was rejoined just as signed-out. They now throw the same typed `AdmissionError` Google Meet and Jitsi already use: denials and auth walls are permanent (no retry), lobby timeouts stay transient (still retried). Teams additionally had an outer catch that re-wrapped *any* error — including a typed one — into a plain string; typed verdicts now pass through it. Failure reasons land in `completion_reason` (`awaiting_admission_rejected` / `awaiting_admission_timeout` / `auth_session_missing`), making these modes measurable per platform for the first time. ([#806](https://github.com/Vexa-ai/vexa/issues/806)) ### Added * **The deprecated 0.10 dashboard is back in the stack as an off-by-default option** — a `dashboard` compose profile (`docker compose --profile dashboard up -d`, port 13001) and a `dashboard.enabled` helm value, both wiring the pinned external image `vexaai/dashboard:0.10.6.3.14` to the gateway's hosted-compat surface exactly as hosted production runs it. It stays deprecated and versions on its own pinned tag (never `global.imageTag`); it ships because it is still load-bearing — the authenticated-session flows are only walkable through it today — and the UI users actually see should belong to a release. Deletion, not porting, is the deprecation exit. ([#813](https://github.com/Vexa-ai/vexa/issues/813)) ### Fixed * **Requesting a `browser_session` bot answers a typed 422 instead of a 500 that poisons the retry.** api.v1 seals more platforms than the meeting-bot invocation contract carries; with a `meeting_url` attached, such a request wrote its meeting row and then died inside schema validation — a 500 plus an orphaned active row that made the user's retry 409. The refusal now happens before any write, names the supported platforms, and points at the tracked restoration ([#816](https://github.com/Vexa-ai/vexa/issues/816)). * **The join layer refuses an unknown platform instead of silently running the Google Meet flow.** The dispatch's fallback branch WAS the Google Meet branch, so an unrecognized platform drove Meet selectors against an arbitrary URL and failed minutes later with misattributed selector errors. ([#816](https://github.com/Vexa-ai/vexa/issues/816)) * **Lite: bots no longer echo in Google Meet (#819).** Vexa Lite left the bot's microphone path (`tts_sink` / `virtual_mic`) unmuted by default, so meeting audio looped back and participants heard themselves. Lite now mutes the mic by default like the per-meeting bot does; on-demand speaking still unmutes for the utterance. See [Deployment](/deployment). * **Bot: no more "Socket already opened" on first use (#820).** The redis adapters flipped a `connected` flag only *after* `connect()` resolved, so two concurrent first-use callers both saw it false and both connected — node-redis v4 throws on the second. Both adapters now share one idempotent `makeLazyConnect` memo, so concurrent first-use callers await a single `connect()`. * **A malformed `native_meeting_id` is refused at the door, not by the database (#843).** A meeting id longer than 255 characters, or one containing a NUL/control byte, used to travel the whole spawn path and fail inside the Postgres INSERT — surfacing as an opaque `500` about five seconds later. It is now a typed `422` naming the problem, alongside the other request-shape refusals. Only length and control bytes are checked: the id's *shape* is deliberately not validated, because ids that look unusual do join real meetings. * **Meeting bots now leave ended calls instead of parking until the hard cap (#545).** After the configured remote-audio silence window, empty rooms and silent bots-only rooms finish as `completed(left_alone)`; `automatic_leave.max_time_left_alone` overrides the 10-minute default. See [Send a bot and get a transcript](/how-to/send-a-bot#when-the-bot-leaves-on-its-own). * **A meeting with no transcript now says why.** When the transcription backend refuses — an exhausted token, a rejected key, an unreachable service — the bot counts the failures and reports them once on its terminal `lifecycle.v1` event, and meeting-api persists them to `meeting.data.stt_fault` and onto the `meeting.status_change` webhook. Previously those faults were fully typed and attributed inside the bot and then died in a `console.error`, so a meeting whose STT was dead completed indistinguishable from a silent room — the empty-transcript reports that could never be diagnosed after the fact. The report carries the backend's own words (`payment_required`, HTTP 402, "Insufficient balance…") and one count per kind, so a storm of per-chunk failures becomes one honest summary rather than a flood. * **Meeting timestamps serialize as UTC (#860).** `created_at` / `start_time` / `end_time` left the API as naive datetimes, so clients parsed server-local wall time as their own local time and rendered meetings hours off. Every meeting timestamp now carries the `Z` suffix, so standard client parsing lands on the correct local time. * **Bring-your-own STT endpoint, documented (#537).** Any OpenAI-compatible transcription endpoint can serve as the backend via `TRANSCRIPTION_SERVICE_URL` + `TRANSCRIPTION_SERVICE_TOKEN`; the contract (request shape, auth, response fields) is now written down. See [Custom STT endpoints](/how-to/custom-stt). The FunASR/SenseVoice example is community-contributed and not yet independently validated (#863). * **Fixed:** Teams transcripts no longer show a new fake speaker per line. Unattributed turns on the mixed lane (Teams/Zoom) now carry the stable "Speaker" label instead of leaking the internal `seg_N` cluster id, so per-speaker consumers group them as one speaker; late attribution still repaints by segment id. ([#890](https://github.com/Vexa-ai/vexa/issues/890)) * **Fixed:** Teams/Zoom live transcripts now paint in real time on the dashboard instead of only after a reload. The bot's mixed-lane segment mapper wasn't stamping `absolute_start_time`, so the live renderer (which keys on it) skipped every pending draft; a prior producer-stamp fix had covered only Google Meet. ([#895](https://github.com/Vexa-ai/vexa/issues/895)) * **Docs: default bot spawn requires STT and refuses loud; capture-only is explicit (#532).** Quickstart, README, deployment, API, and how-to pages no longer claim that missing transcription silently yields an empty transcript. They document `transcribe_enabled` / `TRANSCRIBE_ENABLED` and the real 503 detail. See [Configuration](/configuration#transcription-stt) and [Send a bot](/how-to/send-a-bot#capture-only-no-stt). * **Teams: a benign alert no longer evicts a just-joined bot (#600).** The Teams removal monitor matched a generic `[role="alert"]` (plus `[role="alertdialog"]`, `.error-message`, `.connection-error`, `.meeting-error`), so a transient toast or the post-join AV-confirmation modal could trip a false removal \~1.5s after admission and self-leave with `completed(evicted)` and no transcript. The removal signal is now the removal/"meeting ended" text only. * **A bot that fails to start now surfaces the failure instead of a false success (#718).** When the runtime cannot start a bot workload (e.g. the bot image is absent), `POST /bots` returns `502` with the reason (the missing image is named) and the meeting is marked `failed` on the spot — no more a `201` over a workload that never came up, followed by five silent minutes and a reason-less `failed`. The runtime kernel answers the spawn honestly (non-201 + `workload_spawn_failed`), the meeting-api refuses the dead spawn at both the runtime seam and the service, and `make dev` now exits non-zero naming an unpulled bot image even when an earlier build step fails. * **MCP clients connect through the gateway front door, and the SSE stream stays open (#795).** The gateway now fronts the MCP streamable-HTTP transport at `/mcp`: `POST` (messages) forwards buffered as before, and `GET` — the server→client SSE stream — is **relayed** on a dedicated streaming client with no read deadline, because a stream that is silent is a stream with nothing to push. Buffering that leg is what made a healthy stream look like a dead upstream: the proxy waited on the next body read, hit its 30-second read timeout, and answered a `503` the MCP service never saw (8 of 14 stream-open attempts in a 15-minute hosted window, while `POST` was 116/116 healthy on the same client). Point your MCP client at your Vexa API host — `mcp-remote https:///mcp --header "Authorization: Bearer $VEXA_API_KEY"` — instead of the MCP service's own port. The gateway carries the upstream's status, content type and `mcp-session-id` verbatim; it never rewrites an MCP answer. * **The meeting-api webhook-envelope introspection capture is bounded (#803).** The production app previously retained every lifecycle envelope in an unbounded in-process list; it now keeps a capped recent-history ring while preserving the eval seam. The point-of-introduction regression is covered on the exact PR head. The release's fresh production RSS readback is the remaining evidence for the broad “no continuing climb” claim. * **A Redis outage no longer becomes a full core-API outage (#809).** meeting-api reports Redis honestly on `/health` — a new `pipeline.redis_reachable` component surfaces `false` during an outage while the shared probe stays `200`, so readiness holds and Postgres-backed reads (`GET /meetings`, durable `GET /transcripts`) keep serving. The genuinely Redis-dependent stop path (`DELETE /bots`) now fails narrowly with `503` (retryable, the stop is already recorded and reconciles when Redis returns) instead of an opaque `500`, and a returning Redis is picked up without a restart. Prevents the 2026-07-19 incident where a wedged Redis volume CrashLooped all replicas even though Postgres was healthy. * **Google Meet: a host denial now ends the meeting instead of hanging forever (#840).** Meet loads reCAPTCHA Enterprise invisibly on every join, so a background captcha frame sat on the denial screen too — the bot read it as bot-detection, logged "staying for manual/agent solve" every two seconds, and the meeting stayed `awaiting_admission` until the 10-minute lobby timeout (which is retried, so a host who said no could be knocked on again). An explicit denial ("denied your request", "weren't allowed to join", …) now wins over any captcha on the page, only a *visible* challenge widget counts as a real captcha, and the stay-for-solve wait is bounded at two minutes. A denied bot reports `failed / awaiting_admission_rejected` — permanent, no re-knock. * **Webhooks gain a queryable, secret-safe delivery ledger API (#841 core half).** Core records recent per-user delivery outcomes (`delivered | queued | suppressed | blocked | failed`) and serves them at `GET /user/webhook/deliveries`, carrying only the target host — never the webhook URL or signing secret. The hosted dashboard does not read this ledger yet; its real Delivery History consumer remains open in v0.12.20. * **Google Meet lobby language is deterministic and locator failures are diagnosable (#846, #856).** The bot pins the browser UI to English by default and records the resolved URL, page language, and visible button labels when the CTA cannot be found. The broad structural CTA scan is diagnostic-only and never clicks. The English path passed live; arbitrary non-English joining is not claimed. * **Pin the bot browser's UI locale so Google Meet renders English by construction (#856).** The bot never told its browser what language to be, so Meet localised from `Accept-Language` or IP geolocation and served non-English lobbies on EU/other egress — the root cause of the join-button-not-found class (#846). The browser now launches with `--lang` / `--accept-lang`, a Playwright context `locale`, and `?hl=` on the Meet URL, all driven by a `BOT_UI_LOCALE` knob (default `en-US`). The resolved locale (`navigator.language`, ``) is now logged at lobby time and recorded in `last_error` on failure, so it is never invisible again. The #917 structural CTA scan is demoted to diagnostic-only (it records candidate labels and telemetry but never clicks), and the lobby selector lists now put exact-text entries first with the broad structural entry last as a locale-agnostic backstop. * **A bot waiting in a Google Meet lobby is no longer killed at 5 minutes (#862).** The bot is handed a 10-minute waiting-room budget, but it reports `awaiting_admission` once and then waits silently — so the reconcile sweep, which only checked whether the workload was alive for bots already *in* the meeting, force-deleted healthy bots at 300s of legitimate quiet, seconds before hosts who admit at 4–5 minutes let them in. The liveness check now covers the whole pre-admission span, and the sweep's patience for a not-yet-admitted bot is derived from the budget it issued, so it can never be shorter. * **A bot that never reached the meeting now reports why, and is retried (#862).** When the runtime confirms a pre-admission workload really is gone, the meeting is attributed to the stage it died in (`awaiting_admission_timeout` / `join_failure`) with the runtime's own evidence — workload state and exit code — instead of the catch-all `left_alone`. `left_alone` counts as a normal ending, so it also suppressed the automatic re-join; these reasons are retryable, and the re-spawn happens again. * **Bot test doubles: shared `noopAloneness` (+ siblings) and named missing-port errors (#865).** Pure L2 scaffolding — no user-facing behaviour change. Stops every new orchestrator construction site rediscovering the required `aloneness` seam by crashing with a raw TypeError. * **Google Meet Stop during `awaiting_admission` now reaches the pre-active withdraw path and cleans up the workload (#889).** The bot subscribes to leave commands before the join race and routes Stop through its phase-aware abort instead of dropping the pub/sub message. The release witness still found that Meet's host-side knock prompt can persist after cleanup; visible prompt withdrawal remains #839. * **`POST /bots` rejects a `native_meeting_id` carrying URL characters (#892).** A meeting id with `?`, `#`, `&`, `=`, `/`, or a space (e.g. a Teams passcode accidentally left on the id, `397421056486982?p=…`) now returns a typed `422` at intake instead of building a broken join URL and storing an unfindable record. Pass any passcode in the `passcode` field, or supply the full `meeting_url`. Bare ids across platforms (Meet dash-codes, Zoom digits, Teams `19:…@thread.v2`) are unaffected. * **Meeting-api removes the O(keyspace) Redis SCAN from the ten-second db-writer hot loop (#893).** Steady-state ticks use the authoritative `active_meetings` set; the self-healing scan runs only on startup and at `DB_WRITER_RECONCILE_INTERVAL_S` (default 300s). Exact-head tests prove the scheduling boundary. The fresh production saturation/readiness readback remains the release-level proof for the original live failure shape. * **Helm migrations Job now honors `global.imageTag` (#900).** A pinned-tag deploy with `migrations.enabled=true` previously ran the schema-convergence Job from the rolling `v012` image instead of the deployed release tag — a schema/code skew risk. The Job now resolves its tag with the same precedence the component Deployments use (`global.imageTag` wins, falling back to the `migrations`/`meetingApi` image tag). See [Kubernetes deployment](/deployment-kubernetes). * **admin-api retries the initial DB connect on cold start (#901).** On a boot where Postgres DNS isn't resolvable yet, admin-api used to throw `socket.gaierror` and exit immediately, relying on the k8s restart loop (a transient RED an operator would see). It now retries the first connect with bounded exponential backoff (env-tunable via `DB_CONNECT_MAX_ATTEMPTS` / `DB_CONNECT_BASE_DELAY` / `DB_CONNECT_MAX_DELAY`), then fails loud once the bound is exhausted. * **Teams login redirects fail fast with a typed cause instead of an admission timeout (#915).** A navigation to `login.microsoftonline.com` now terminates with `teams_auth_redirect: … (url=…)`, carried into `last_error`, rather than spending about 75 seconds searching a login page for meeting controls. The exact-head redirect fixture is green; this external redirect did not recur during the release witness and is not claimed as live-reproduced. * **MCP sessioned GET /mcp starts its SSE stream (#921).** A `GET /mcp` with a valid `mcp-session-id` now emits `text/event-stream` headers promptly (and sse-starlette's keep-alive ping on an idle stream). fastapi-mcp's buffered HTTP adapter had swallowed the open SSE response so the server→client channel never opened. Sessionless GET still returns MCP's own 400. * **Admin token mint honors JSON `scopes` (and refuses unknown body fields) (#922).** `POST /admin/users/{id}/tokens` with `{"scopes":["bot","tx"]}` now mints those scopes instead of silently falling through to `["bot"]`. Query `?scopes=` / `?scope=` still work; unsupported body fields return `422`. See [Authentication](/authentication). * **A non-admitted bot death carries a human-readable cause instead of `reason: None` (#926).** The typed admission error now crosses the join driver and terminal callback, with a derived fallback so the branch cannot emit a reasonless failure. Exact-head fixtures cover Zoom and the shared non-admitted path. The original external Zoom failure did not recur during the release witness and is not claimed as live-reproduced. * **Vexa Lite pins its service interpreters to Python 3.12, so admin-api boots again (#927).** The single-container Lite image builds each service venv with `uv venv` on a Playwright/jammy base whose only system Python is 3.10 — below `requires-python >=3.11`. An unpinned `uv venv` therefore auto-downloaded the newest managed CPython (3.14), on which the frozen async-Postgres stack fails (asyncpg's C extension will not build under 3.14; SQLAlchemy's psycopg dialect import crashes at startup), so `admin-api` entered a supervisor FATAL loop and API-key provisioning silently no-oped — the gateway then answered every request with `Authentication temporarily unavailable`. All five Lite venvs (admin-api, runtime, meeting-api, gateway, agent) now pass `--python 3.12`, matching the `FROM python:3.12-slim` every compose image (and helm, which ships those images) already pinned. Compose and helm never shared the exposure. * **Microsoft Teams speaker attribution (#499).** Teams uses CSRC transport activity to route the mixed audio into per-speaker transcription windows with the same LocalAgreement buffering contract as Google Meet. A transport-contested phrase is currently published under both contributing tracks — detected and counted in pipeline health, not yet resolved or marked in the public transcript. * **Every deploy surface now runs Valkey 8.1.9 instead of Redis (#653).** Vexa Lite, Docker Compose, and Helm all use [Valkey](https://valkey.io) — the Linux Foundation's BSD-3 fork of Redis 7.2.4 — for the bus, scheduler, and per-dispatch streams. This gives every surface (Lite included) `XAUTOCLAIM` orphan-reclaim parity, and moves off source-available Redis ≥7.4 (RSALv2/SSPLv1). The store is wire-compatible (RESP): `REDIS_URL` and every `redis.*` config key are unchanged, so existing overrides keep working. See [Deployment](/deployment). * **Two new license/parity gates close the class the audit exposed (#653).** `gate:image-licenses` audits container-image pins and image-baked binaries (which `gate:licenses` never saw), and `gate:runtime-parity` asserts every surface's engine version supports the RESP commands the code actually calls — the rung that catches a backing store shipped without a capability the code assumes. docs: attribute the FunASR/SenseVoice client validation to the upstream maintainers who ran it, and state plainly that no Vexa maintainer has reproduced it (#928). Release promotion now assigns moving image aliases by copying the authenticated registry manifest bytes and media type exactly, then reads back all frozen descriptors. Single-platform images can no longer be silently wrapped in a new index, and `:latest` is checked as an unchanged negative control unless its promotion was explicitly requested. * **Start here: hosted now runs Vexa 0.12 for meeting bots and transcription (#954).** The Overview page no longer says hosted [vexa.ai](https://vexa.ai) is on the 0.10 line. It states the current boundary: hosted runs 0.12 for meeting bots and transcription but does not include the agent runtime — agents and the full stack require [self-hosting](/deployment). * **Meeting completion now reports the service that actually ran (#984).** Lifecycle events carry producer-observed transition times, and completed meetings expose privacy-safe bot runtime and transcription-provider outcomes so hosted billing can distinguish Vexa transcription from a customer endpoint without inspecting configuration or credentials. * **Self-hosted deployments can opt into an external service authority without importing hosted billing policy (#988).** Meeting-api can now ask a signed, versioned authority before bot spawn and at each one-minute active-service boundary; stock OSS remains explicit allow-all when the integration is unset. See [Configuration](/configuration#optional-service-authority). * **Operators can route terminal meeting facts to one signed, boot-frozen system callback (#992).** The optional destination accepts only `meeting.completed` and `bot.failed`, has its own retry/dead-letter lane, and may explicitly target an in-cluster HTTP service without weakening the SSRF guard on customer-configured webhooks. See [Configuration](/configuration#operator-terminal-callback). * **Admin identity reads now resolve an existing user by authoritative ID (#994).** Internal service consumers can bind admission and lifecycle work to the authenticated numeric user identity without falling back to email or creating a user as a side effect. * **Fixed (Teams):** speaker attribution now names participants again. Teams migrated its meeting UI to Fluent-UI v9, whose hashed class names churn every release — the old class-based name selectors resolved to `""`, so every hint was suppressed and all speech fell back to `Speaker`. Names now resolve from Teams' **stable** `data-tid` on the `[data-stream-type]` tile wrapper (anchored on the voice-level outline). The `vdi-frame-occlusion` speaking signal was correct all along; only the name lookup had rotted. * **Fixed (Teams):** transcription no longer repeats words. Teams delivers the whole meeting as a single server-side audio mix (track id prefixed `mainAudio`) — witnessed live: the standard web client receives exactly one audio receiver — but the bot is handed an extra redundant track whose audio is already in that mix. The mixed lane combined both, double-feeding every word to the transcriber. Teams now transcribes **only** the `mainAudio` mix. Separately, the WebRTC hook was mirroring each remote track twice (both `addEventListener('track')` and the `ontrack` setter fired) — now deduped by track id. * **Automate meeting summaries with n8n, documented (#1076).** New [n8n guide](/n8n) walks the no-code path end to end — calendar trigger, `POST /bots`, transcript fetch, summary, Slack — and states plainly that the published community template still points at the retired `gateway.dev.vexa.ai` base URL, which must be swapped for `api.cloud.vexa.ai` after import. Also covers the self-hosted reachability variants and the option to skip the calendar trigger entirely by using [Vexa's own calendar sync](/how-to/calendar-sync). The `/n8n` URL had been drawing steady traffic to a 404. * **The MCP server has a page, and it states the boundary (#1077).** New [MCP server](/vexa-mcp) page lists the nine tools, gives a working client config, and says plainly what the surface does and does not cover: fronted by the gateway at `/mcp` on self-hosted compose from 0.12.18, **not** deployed by the Helm chart and therefore unavailable on hosted or Kubernetes, and never proven against a real MCP client end to end ([#888](https://github.com/Vexa-ai/vexa/issues/888)). The service README's Status block, which still listed the gateway-fronted `/mcp` forward as planned while its own body documented the shipped behaviour, now matches. docs: honest-status page at `/chatgpt-transcript-share-links` — the 0.10.x public share-link flow is sealed-but-unserved in 0.12; page states what replaced it and what works today (#1078). docs: honest-status page at `/interactive-bots` — per-surface truth for the interactive family (chat read works; speak/chat-write/screen/avatar sealed-unserved), with the shape-design question linked (#1086). docs: redirect five guessed paths onto the pages that already answer them — `/ws/events`, `/local-webhook-development`, `/how-to/webhooks`, `/api/webhooks`, `/cookbook/share-transcript-url` — measured from the docs edge sensor. * **Manage multiple calendar feeds from the hosted dashboard (#1150).** Calendar is now a first-class sidebar page with named, independently synced and disconnected ICS connections. Meetings deduplicate across feeds, retain every named source under **Imported from**, and keep existing single-calendar API clients compatible. The page groups upcoming auto-joins by calendar, assigns each connection its own bot display name, and persists the complete source event metadata on the planned meeting. The Meetings page requests run history separately, so `idle` and `scheduled` calendar plans appear only in Calendar and no longer displace transcript rows. See [Calendar sync](/how-to/calendar-sync). * **One bot per meeting, even under concurrent requests (#1185).** Simultaneous requests for the same meeting now resolve to a single bot rather than occasionally admitting two, and a request for a meeting that is already live adopts the running bot instead of starting a second one. * **Self-hosted deployments fail closed when the one-bot-per-meeting guarantee cannot be enforced (#1187).** The admin service now refuses to start if its database is missing the unique index that prevents duplicate live meetings, instead of starting and allowing duplicates to slip through. Operators upgrading an existing deployment apply the schema migration shipped with this release before rolling out. See [Deployment](/deployment). * **A failed auto-join retries on a bounded backoff instead of repeatedly (#1200).** When a calendar occurrence's bot fails to join, the next attempt waits out a fixed backoff, and the reason for the wait is readable on the meeting instead of being silent. * **Scheduled bots arrive two minutes early and wait longer to be admitted (#1210).** Calendar auto-joins now dispatch two minutes before the scheduled start rather than one, and a bot waits up to fifteen minutes in the lobby before giving up. See [Calendar sync](/how-to/calendar-sync). * **A meeting already served or stopped is never re-armed (#1211).** Calendar sync no longer recreates and re-dispatches an occurrence whose bot already attended the meeting or was stopped by the user; only genuine failures retry, and only within that occurrence's own window. * **An explicit stop is honoured on every path (#1212).** Stopping a scheduled meeting before its bot is dispatched now cancels that occurrence instead of letting the sweep send a bot anyway; a stop that races a starting bot leaves nothing running; and a stopped meeting records the stop as its outcome rather than a join failure. A meeting the user stopped can no longer be continued in place — request a new bot instead. * **Calendar auto-joined meetings are recorded like manually started ones (#1217).** A bot dispatched from a connected calendar now follows the same recording setting as one started from the API or the dashboard. Previously those meetings were transcribed but never recorded, and the meeting page reported the missing audio as normal. See [Calendar sync](/how-to/calendar-sync). * **Teams speaker names no longer lock to the wrong participant (#1228).** When a participant joined during the first minute, a name could be bound permanently to another speaker's audio and never revised, leaving one person's words under another's name for the rest of the meeting. Names earned before the participant list is complete are now provisional and corrected as evidence arrives. * **Added (Meetings API):** `GET /meetings/{platform}/{native_meeting_id}/participants` — who was in a meeting, as far as the core actually knows. Every row is labelled with its `source`: `invite` (the calendar invitation's attendee list, which **does** include people who never spoke — for meetings imported from a connected calendar) and `speaker` (distinct speakers heard in the transcript, first-heard first). Owner-scoped: another user's meeting answers `404`, never an empty roster. The response also carries `observed_roster: "not_recorded"`, which is the honest part — nothing in the core records who was actually present, so an empty `participants` means *attendance was never captured*, never *nobody attended*. No identity resolution is performed: someone both invited and heard appears once per source, because matching a voice label to an invitee is a guess. * **Teams bots join with a separate `passcode` (#892).** A numeric Teams meeting ID plus its `passcode` now builds the join URL Teams actually uses — `…/meet/?p=` — instead of interpolating the id into the thread-id deep link and dropping the passcode; a `19:…@thread.v2` id keeps its `…/l/meetup-join/` path. `teams_base_host` is honoured for the personal and GCC-High/DoD clouds (unknown hosts are a `422`), and the passcode is kept off the stored `constructed_meeting_url` and out of the bot's logs. Unsupported password aliases (`password`, `meeting_password`, …) are refused with a typed `422` naming `passcode` rather than accepted and silently ignored. See [Send a bot](/how-to/send-a-bot). * **Spawned bot and agent-worker Pods declare CPU/memory requests and limits, so quota-controlled namespaces admit them (#1005).** The runtime accepted `resources` on a `runtime.v1` WorkloadSpec but dropped it before the backend, so every dynamically created Pod was unsized — and a namespace whose policy requires each container to declare requests *and* limits (a `ResourceQuota`, a restricted OpenShift project) rejected both shipped workload classes at admission. Resource intent now crosses the backend port, and the Kubernetes backend submits a complete Pod manifest carrying the container's requests and limits alongside its image, command, env, labels, workspace mounts and scheduling. Size the two classes independently with the chart's `runtime.workloadResources` (`meetingBot` / `agentWorker`); each value sets both the request and the limit, and leaving a class empty keeps the previous unsized behaviour. Enforcement is Kubernetes-only — the docker and process backends accept the same intent without acting on it. See [Deployment](/deployment-kubernetes). * **Interactive meeting capabilities get one API home — and the status page stops overstating speak (#1089).** [ADR-0035](https://github.com/Vexa-ai/vexa/blob/main/docs/adr/0035-interactive-capabilities-live-behind-one-act-endpoint.md) settles where speak / chat / screen / avatar live: a single `POST /bots/{platform}/{native_meeting_id}/acts` endpoint carrying an `acts.v1` act, with `POST`/`DELETE …/speak` and `POST …/chat` kept as aliases for callers already coding against them; `…/screen` and `…/avatar` retire from `api.v1`. The [status page](/roadmap/status) is corrected in the same change: a bot spawned through the public API cannot speak today even once the route lands, because `voice_agent_enabled` is accepted by `POST /bots` and silently dropped before the invocation is built. See [Roadmap status](/roadmap/status). fix(gates): every gate failure now prints its diagnostic — an empty stdout Buffer is truthy, so `(e.stdout || e.stderr || e)` was discarding the real error at all 21 call sites (#1107). A gate that fails because the worktree has no dependencies installed now says so. * **Fixed:** a bot whose audio capture breaks mid-meeting no longer leaves a **live** meeting as `completed(left_alone)` (#1192). `left_alone` had one oracle — whether remote audio frames were arriving — so a broken capture chain was indistinguishable from an emptied room, and the meeting ended as a recorded success with an empty transcript. The bot now also reads whether any remote stream is currently connected and live: connected streams delivering nothing for a whole silence window are a capture fault, not an empty room. The bot holds the meeting open, logs `aloneness: capture-fault suspected`, and attempts one capture restart. **Behaviour change worth knowing:** where the platform keeps a server-side mix alive on an empty meeting (Teams), affected runs now end at the `maxActiveMs` ceiling instead of at the silence window — holding a live meeting is preferred to reporting a false success. An empty room with no connected streams still resolves `left_alone` exactly as before. * **Changed (API): your meetings list is ordered by when the meeting happened (#1226).** `GET /meetings` previously ordered by row creation, so a meeting imported from a calendar after it ran could sort above one that happened later. The list now orders by event time, and meetings that have not reached a terminal state stay pinned at the top where you are looking for them. See [Meetings](/api/meetings). * **New (MCP): an agent can file a ticket from inside its own session (#1272).** The `report_issue` tool lets a calling agent that hits a wall tell the operator what happened, in its own words, without leaving the session. Supplying `meeting_id` binds the report to the cluster's own record of the same meeting, so an operator reads the agent's account and the machine's account of the same seconds side by side. The caller's credential is verified before anything is filed, and the caller's API key never reaches the ticket sink — only a salted fingerprint of it. Ticketing is off until the deployment sets `VEXA_TICKET_SINK_URL`; until then the tool answers `503` and nothing else changes. * **Restarting mid-leave no longer strands a meeting in "stopping" (#1280).** When Vexa restarted while a bot was still leaving, the meeting could sit in "stopping" — shown as active — indefinitely across a redeploy burst. A meeting whose stop was explicitly requested now converges on the short stop grace. * **The bot and Lite images now build on Ubuntu 24.04 (Noble) (#1011).** The meeting-bot image and the Vexa Lite single-container image moved from the Jammy to the Noble Playwright base — one base for both. Self-hosters running the agent worker also get a fix: it already exec'd its Python interpreter as a non-root per-subject uid, but that interpreter lives under `/root`, which is `0700`, so every dispatch died with `Permission denied` and respawned. `/root` is now traverse-only for others (`chmod o+x`); it stays unlistable and root-owned files keep their modes. * **More accurate Zoom speaker attribution (#1018).** Zoom transcripts are named per-participant with a self-correcting vote, so a speaker's words are far less likely to land under the wrong name. * **Known limit — the Zoom bot joins as a web client, so not every Zoom meeting can be recorded.** Some Zoom accounts and meetings block automated browser clients outright; the bot is refused at the door there, ends as `failed` with reason `zoom_requires_rtms`, and no transcript is produced. This is a platform policy on the host's side, not a fault in the bot — those meetings need Zoom's Realtime Media Streams path, which this release does not ship ([#706](https://github.com/Vexa-ai/vexa/issues/706)). Meetings that do admit a web client are unaffected, and this release also improves the bot's ability to be admitted at all. * **Text-only custom STT responses now reach the transcript (#1148).** OpenAI-compatible endpoints may return only `text`; the mixed pipeline now assigns that text to the submitted speech window instead of discarding it for missing provider timestamps. See [Custom STT endpoints](/how-to/custom-stt). * **Self-host: `DEFAULT_BOT_NAME` now names the bots the terminal sends (#1258).** The terminal hardcoded `bot_name: "Vexa"` on every join, so the variable compose, Lite and helm already passed to meeting-api could never take effect. The terminal now omits `bot_name` and lets the deployment decide, making a rename a `.env` edit plus a meeting-api restart — no terminal rebuild. The stock name is unchanged (`Vexa`), an explicit `bot_name` in `POST /bots` still wins, and `NEXT_PUBLIC_DEFAULT_BOT_NAME` is now a real terminal build arg for baking a name into the image. See [Configuration](/configuration#bot-participant-name). * **Custom STT: JSON-only Voxtral models now transcribe meetings.** Vexa negotiates down from `verbose_json` to `json` once when a backend rejects verbose output, while Whisper backends keep their richer segment metadata. See [Use a custom STT endpoint](/how-to/custom-stt). ## Versioning Vexa follows semantic-ish versioning at the `MAJOR.MINOR` line; breaking changes are called out in the GitHub release notes and mirrored in the migration section above. Pin a specific image with `IMAGE_TAG` so deploys are reproducible. # Share a transcript into ChatGPT Source: https://docs.vexa.ai/chatgpt-transcript-share-links Public transcript share links were a 0.10.x capability — contract-sealed but not served in 0.12. What exists today, and what replaced them. > [!WARNING] > > **Honest status:** the public share-link flow this page once documented is **not available in 0.12**. > The endpoint is contract-sealed but mounted nowhere. Tracking: [#541](https://github.com/Vexa-ai/vexa/issues/541) > (sealed-vs-served reconcile) · demand record: [#1078](https://github.com/Vexa-ai/vexa/issues/1078). ## What this page used to describe (0.10.x) Vexa could mint a **public, unauthenticated, short-lived URL** for a transcript: 1. An authenticated call created a share id; the transcript was rendered as plain text and stored under a TTL (default 15 minutes). 2. The response returned a URL of the form `/public/transcripts/.txt`. 3. You handed that URL to ChatGPT — *"Read from this URL so I can ask questions about it"* — and ChatGPT fetched it directly, avoiding paste-length limits. ## What is true in 0.12 today * `GET /public/transcripts/{share_id}.txt` is **sealed in the API contract but not served** by any component. A URL of that shape will not resolve on a 0.12 deployment. * A share endpoint exists under the same name — `POST /meetings/{platform}/{native_meeting_id}/share` — but it does something different: it mints a token that **another authenticated Vexa user** redeems (`POST /transcripts/share/accept`). It is user-to-user sharing inside a Vexa deployment, not a public URL, and an external assistant cannot consume it. ## What you can do today To get a transcript into ChatGPT or any assistant right now: * **Fetch and paste/upload:** retrieve the transcript with an API key carrying the `tx` scope — `GET /transcripts/{platform}/{native_meeting_id}` — and paste or upload the text into your assistant. * **Share to a teammate inside Vexa:** use the 0.12 share/accept flow above (both sides authenticated). ## If you need the public link back Demand for this page is measured and sustained, a substantial share of it from AI agents. Whether to re-mount the public leg is a product and security decision — unauthenticated transcript URLs need deliberate TTL and identifier design — and it is being weighed on the release scope via [#541](https://github.com/Vexa-ai/vexa/issues/541). If this capability matters to you, say so there: demand comments on that issue are exactly the evidence the decision consumes. # How Vexa compares Source: https://docs.vexa.ai/comparison An honest map of the meeting-capture options — Vexa, Attendee, MeetingBaaS, hosted APIs, local notetakers, DIY — what Apache-2.0 vs Elastic License 2.0 actually costs you, and when each is the right choice. If you're evaluating self-hosted meeting intelligence, you'll find these options. Here is how they actually differ — including where an alternative is the better fit. ## The field **Meeting-bot APIs** put a bot *in* the call and give you a server-side API — the only shape that works org-wide (IT deploys it once; every meeting can be captured, governed, audited): * **Vexa** (this project) — Apache-2.0, self-hosted, bot + real-time STT + speaker attribution + the agent/knowledge layer, running **inside your perimeter with no egress**: a bundled STT unit (GPU or CPU) means the audio path never calls out. * **[Attendee](https://github.com/attendee-labs/attendee)** — a source-available meeting-bot API (Django/Postgres/Redis) under the **Elastic License 2.0**, not an open-source license: ELv2 states *"You may not provide the software to third parties as a hosted or managed service."* They also run a hosted cloud. Good software; the licence is the difference. * **[MeetingBaaS](https://github.com/Meeting-BaaS/meet-teams-bot)** — its bot, [`meet-teams-bot`](https://github.com/Meeting-BaaS/meet-teams-bot/blob/main/LICENSE), carries the **same Elastic License 2.0** (© Spoke SAS) with the same limitation quoted above. The MIT repos around it — the MCP server, transcript viewer, speaking-bot examples — are satellites of the API, not the bot. They also run a hosted service. * **Hosted bot APIs** (e.g. Recall.ai) — mature and convenient, but your meetings transit their cloud; nothing to self-host. **Local notetakers** (Meetily, Hyprnote, and similar) record the *user's own device audio* on a laptop. Genuinely private for an individual — but per-seat installs with no server-side fleet, no API for downstream systems, and speaker attribution limited to what mono device audio allows. A personal tool, not an infrastructure layer. **DIY** (Whisper + your own headless-browser bot) — full control, and an enormous, permanently maintained effort: four platforms' join flows, admission handling, audio capture, streaming STT, attribution, scaling. ## Vexa vs. the alternatives | Capability | **Vexa** | Attendee | Hosted APIs | Local notetakers | DIY | | - | :-: | :-: | :-: | :-: | :-: | | Self-hosted / data stays in your perimeter | ✅ | ✅ | ❌ | ✅ | ✅ | | **Self-hosted STT, no egress** (bundled GPU or CPU unit) | ✅ compose · Lite · 🟡 Kubernetes | 🟡 BYO STT wiring | ❌ | 🟡 local models | 🟡 build it | | Bot joins **Meet + Teams + Zoom + Jitsi** | ✅ 3 production · 🟡 Jitsi | ✅ | ✅ | ❌ device audio | 🟡 build ×3 | | Real-time transcript API, speaker-attributed | ✅ | ✅ | ✅ | 🟡 app-local | 🟡 build it | | 99+ languages: auto-detect or forced, per-window segment labels | ✅ | 🟡 provider-dependent | ✅ | 🟡 model-dependent | 🟡 build it | | **Bring your own models** (STT + LLM endpoints) | ✅ | 🟡 STT providers | ❌ | ✅ | ✅ | | Kubernetes / OpenShift scale-out (Helm, a Pod per workload) | ✅ | 🟡 compose-first | n/a | ❌ | 🟡 build it | | Knowledge layer: transcripts → git Markdown workspace + sandboxed agents | ✅ | ❌ | ❌ | 🟡 app notes | ❌ | | Architecture built for AI-assisted maintenance ([one-concern modules, sealed contracts, golden fixtures](/architecture/modules)) | ✅ | 🟡 conventional | n/a | ❌ | — | | **Operability**: how much there is to run, and a one-command journey probe that says whether it works | ✅ 3 shapes · `make probe` | 🟡 one Django image, no journey probe | ✅ nothing to run | 🟡 per-seat install | ❌ all yours | | **Evidence an evaluator can check** without asking us | ✅ [sealed contracts, CI gates, CALM model, audit artifacts](/architecture/evaluation) | 🟡 source readable, no published gates | ❌ vendor attestation | ❌ | — | | [License](#what-the-licence-difference-actually-means) | **Apache-2.0** (OSI-approved open source) | Elastic License 2.0 (source-available, not OSI-approved) | proprietary | varies | — | | **May you resell or embed it in a service you sell?** | ✅ no licence restriction | ❌ ELv2 forbids providing it as a hosted or managed service | ❌ vendor terms | ❌ | ✅ | *Jitsi*: transcripts were observed on the hosted service on 2026-08-20 with two synthetic speakers ([#883](https://github.com/Vexa-ai/vexa/issues/883), closed); live-room acceptance with real participants is open ([#570](https://github.com/Vexa-ai/vexa/issues/570)). Meet, Teams and Zoom are production. See [Status](/roadmap/status#capability-truth-table). *Operability* is the row most often argued with a number and no source, so here are ours. The control plane is GPU-free and ships in three sizes: **Lite** (one app container, 13 supervised programs inside it, plus two sidecars), **compose** (11 services by default, with Postgres, Valkey and MinIO), and **Helm** (7 Deployments and 2 StatefulSets, requesting **1.55 vCPU / 4 GiB** in total before a meeting runs — 1.15 vCPU / 3 GiB if you bring your own datastores). Those counts are commands, not claims: `docker compose config --services` and `helm template` produce them on a clean clone. `make probe` then runs the whole journey — spawn → join → transcribe → live-view → stop — in nine stages with a per-stage verdict, against any of the three. What we do **not** ship: a backup or DR procedure, an automated upgrade path, or a published hardware minimum for Lite and Kubernetes. Those are real operator costs and they are enumerated, with the rest, on [Architecture review](/architecture/evaluation#3-what-running-it-costs). **Or pay none of it.** The [hosted service](/how-to/send-a-bot) is one authenticated `POST /bots` — nothing to install, nothing to operate, no figure in this paragraph applies. Self-host when the audio must stay inside your perimeter, or when you want the agent plane, which the hosted service does not run. Three operability figures circulate in this field, and we went looking for the source of each without finding one. Recall.ai publishes that a self-hosted solution [requires 45-48% more time to operate](https://www.recall.ai/recall-ai-vs-attendee). Attendee's README publishes that self-hosting [reduces costs by 10x compared to closed source vendors](https://github.com/attendee-labs/attendee#readme). Skribby publishes that Vexa [requires significant DevOps expertise to set up](https://skribby.io/blog/meeting-bot-api-comparison-2026). No source accompanies any of the three. We are not answering them with a percentage of our own — we have not run that study, and what is above is an inventory of what there is to run, not a measurement of your hours. Self-hosting is work. The question worth asking any vendor, this one included, is whether they will tell you how much before you commit, in a form you can check without asking them. *Bring your own models* covers both halves of the STT contract: the endpoint (`TRANSCRIPTION_SERVICE_URL`) **and** the model id (`TRANSCRIPTION_MODEL`) — so backends that validate the id (Groq, vLLM, OpenAI-compatible gateways) work end-to-end, not just backends that ignore it. See [Configuration](/configuration#transcription-stt). *No egress* is the claim we can defend, and it is narrower than "air-gapped". On **Docker Compose and Lite** both halves of that STT contract are plumbed and the transcription unit ships in-tree with GPU and CPU variants ([`deploy/transcription`](https://github.com/Vexa-ai/vexa/tree/main/deploy/transcription)), so the whole audio path can run with nothing leaving your network. On **Kubernetes the chart does not yet expose `TRANSCRIPTION_MODEL` as a value** — you set it on the meeting-api and terminal Deployments via `extraEnv` until it lands, which the chart's own [known boundaries](https://github.com/Vexa-ai/vexa/blob/main/deploy/helm/README.md) state. We have not run an install on a genuinely disconnected network, so we do not claim one: what a procurement review can hold us to is self-hosted with no egress, not a certified air gap. *Licence* — Attendee is not the only ELv2 entrant here. MeetingBaaS's bot carries the same licence (above), so both licence rows describe it too. What that difference costs you depends entirely on what you intend to do with the software, which is the next section. ## What the licence difference actually means A licence name is not an argument. Here is what each one lets you do. **Apache-2.0** (Vexa) is OSI-approved. It grants a *"perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable"* copyright licence — and a patent licence on the same terms — to use, modify, sublicense and distribute the work ([§2–§3](https://github.com/Vexa-ai/vexa/blob/main/LICENSE)). There is no field-of-use restriction: run it for anyone, build a product on it and sell that product, keep your changes private, grow without the terms changing. The obligations are mechanical — include a copy of the licence, keep the notices, mark the files you changed (§4). **Elastic License 2.0** ([Attendee](https://github.com/attendee-labs/attendee/blob/main/LICENSE), [MeetingBaaS](https://github.com/Meeting-BaaS/meet-teams-bot/blob/main/LICENSE)) is source-available, not OSI-approved. You may read, modify and run it. Its first limitation is the one that decides most cases: > You may not provide the software to third parties as a hosted or managed service, where the > service provides users with access to any substantial set of the features or functionality of the > software. Two more are easy to miss: you may not *"move, change, disable, or circumvent the license key functionality"*, and you may not *"alter, remove, or obscure any licensing, copyright, or other notices of the licensor"*. Which of those bites depends on what you are building: | What you plan to do | Apache-2.0 | Elastic License 2.0 | | - | :-: | :-: | | Run it internally, for your own organisation's meetings | ✅ | ✅ **both fine** | | Modify it and keep your changes private | ✅ | ✅ | | Embed capture inside a product you sell | ✅ | ❌ the limitation above | | Run it for a client, resell it, or white-label it | ✅ | ❌ same | | Clear a regulated buyer's legal review on the licence alone | ✅ OSI-approved | ⚠️ bespoke review | **If you self-host for your own company and nothing else, the licence is not your deciding factor** — including when we say it is. It starts deciding the moment the software reaches someone who is not your own employee. One forward-looking note, stated neutrally: licence changes are in practice one-way, so choosing a dependency means inheriting its terms for the life of the integration. And this page is a reading of the two licence files linked above, not legal advice — if you are embedding or reselling, that is a question for your own counsel. ## When to choose what — honestly * **Choose Attendee** if you want *only* a capture API with the most conventional stack possible, you're happy wiring your own transcription provider, and the knowledge/agent layer is something you'd rather build yourself — and you are **not** reselling it or embedding it in a service you offer to others, which ELv2 does not permit. It's good software and the comparison keeps us honest. * **Choose a hosted API** if your compliance posture allows a vendor cloud and you want zero operations. That's a real trade — it's just not the one this project exists for. * **Choose a local notetaker** for personal note-taking on your own laptop with no IT involvement. * **Choose Vexa** when the requirement is *organizational and sovereign*: every meeting platform, real-time attributed transcripts through an API you host, **your** STT and LLM endpoints, scaling from one Linux box to an OpenShift cluster inside your walls — and, when you want it, the [agent layer](/core/agents) that compounds those transcripts into a knowledge base your team owns. **Don't have a key yet?** Hosted: sign in at [vexa.ai/signin](https://vexa.ai/signin) with a Google account and copy your key from [your account page](https://vexa.ai/account) — free credit, no card required. Self-hosted: `make all` prints a key when the stack comes up. The deeper positioning discussion — why capture sits upstream of every "chat with your docs" tool — is in [Concepts](/concepts). For the regulated-enterprise posture (no egress, procurement artifacts, OSPS Baseline), see [Security & compliance](/security-compliance). If you are the one who has to sign off on the dependency — where audio goes, what it costs to run, how it fails, what is *not* certified — that is [Architecture review](/architecture/evaluation). # Concepts Source: https://docs.vexa.ai/concepts The primitives Vexa is built from — workspace, meeting, agent, container, identity, scheduler — and the two beneath them: module and contract. Everything in Vexa composes from a handful of primitives. A unit of work — a **dispatch** — is one [agent](#agent), in one [container](#container), over a person's [workspace](#workspace), authorized by an [identity](#identity) token, fired by the [scheduler](#scheduler). The data those agents grow on comes from [meetings](#meeting) and docs. **Don't have a key yet?** Hosted: sign in at [vexa.ai/signin](https://vexa.ai/signin) with a Google account and copy your key from [your account page](https://vexa.ai/account) — free credit, no card required. Self-hosted: `make all` prints a key when the stack comes up. ## Workspace A git **folder**, stored in an (encrypted) bucket, with an `id` and an access **mode** (`ro`/`rw`). A dispatch mounts a list — typically `system` (ro) + `company` (ro) + `user` (rw). It holds knowledge, plans, and the agent's session — all just files, with **no dictated structure**. git is the durable state and the undo. The knowledge itself lives in the `kg/` subtree as an [Open Knowledge Format](https://github.com/GoogleCloudPlatform/knowledge-catalog/tree/main/okf) (OKF) v0.1 bundle — one markdown file per entity at `kg/entities//.md`, YAML frontmatter on top, `index.md` listings for navigation. Knowledge-as-code: portable, diffable, and readable by any OKF consumer, not just Vexa. See [Browse the workspace](/how-to/workspace-files#the-knowledge-graph-is-an-okf-bundle). ## Meeting **One record from plan to transcript.** A meeting is born in a user-owned *intent* status — planned ahead by hand or imported from a calendar (`idle`/`scheduled`) — is **claimed in place** by the bot lifecycle when the bot joins (`requested → … → completed`), and ends with its speaker-attributed transcript on the same record. Because it is one record, everything attached to the plan survives the meeting: the title, and the **workspace binding** — bind a meeting to a shared workspace and every member sees it (the plan, the live feed, the transcript). `scheduled` means the bot **joins on its own** at start time (the auto-join sweep; per-meeting opt-out). See [Meetings](/core/meetings). ## Agent A generic CLI coding agent selected by a **runner** (Claude Code is one; others and BYO-inference plug in the same way). It works the mounted workspace with a scoped toolbelt and commits. It is **untrusted** — outside the trust boundary — so it carries a signed token but enforces nothing. Its outbound capabilities (email, calendar, web) are **integrations**: cred-gated tools reached over MCP, never built into the backend. See [Agents](/core/agents). ## Container The isolated, ephemeral unit an agent runs in, spawned by the [runtime](/core/runtime). Sub-second to start, reaped on idle, holding only the workspaces it was granted — thousands run in parallel. Vexa does not restrict its outbound network access; that is your cluster's policy today. Its live output streams to the client over a per-dispatch channel. ## Identity The chain of custody. The launcher proves itself (a user session, or a signed delegation grant for a schedule/integration); the identity service mints a **short-lived signed dispatch token** (*subject* = on whose behalf · *launcher* = who triggered · scope); the runtime **attests the workload** (SPIFFE/SPIRE); and **every boundary verifies** the token — never the agent. Tool calls exchange it for an audience-scoped credential (Keycloak / RFC 8693) at an MCP gateway, so the agent never holds a raw key. ## Scheduler Redis. The one mechanism that **dispatches agents**, on a trigger — a schedule entry (cron), an integration event (e.g. new email), or *now* (chat). It holds the user-manageable schedule; a meeting ending is just another event that dispatches an agent. *** Two more primitives live one level down, in the **code itself** — they are how everything above is built: ## Module The unit of construction. **A module owns exactly one concern and is the single source of truth for that concern** — that's the rule, everywhere. Capture bricks compose into the meeting bot, modules compose into services (each service a **modular monolith**), services compose into deployments. Because its concern is exact and singular, a module is tested — and debugged — **fully in isolation** against fixtures. Every module ships three things: the running code, the adversarial code (tests that harness it), and the data (goldens that validate it). Fixtures are collected from real meetings — real audio, speaker activations, environment metadata — so the harness replays reality. The full tree: [Modules & Seams](/architecture/modules). ## Contract The only way modules join. A contract is **defined once, rarely changed, and sealed** — a sha256 per contract in `contracts.seal.json`, enforced in CI, so a seal can break loudly but a contract can never drift silently. Chains of modules joined by contracts test in integration with the same fixtures — a bug is reproduced at exactly the scale it lives at. All ports are deterministic for deterministic input, which keeps the verify loop simple enough for an AI agent to own. The registry (owner → consumers, all 16 seals): [Modules & Seams](/architecture/modules#contract-registry). # Configuration Source: https://docs.vexa.ai/configuration Every environment variable the stack reads — what it does and its default. Vexa is configured by environment variables, set in `deploy/compose/.env` for Docker Compose (seeded from `.env.example` on first `make all`). Defaults below are what the stack falls back to when the variable is unset — fine for local evaluation, **not** for anything exposed. > [!WARNING] > > Change every secret (`ADMIN_TOKEN`, `INTERNAL_API_SECRET`, DB and storage credentials, > `VEXA_DISPATCH_SIGNING_KEY`, `NEXTAUTH_SECRET`) before putting the stack on a network. The defaults > are public. ## Transcription (STT) | Variable | Default | Purpose | | - | - | - | | `TRANSCRIPTION_SERVICE_URL` | — | STT service URL, e.g. `http://:8083`. Give it the **base URL** (canonical) or the full `…/v1/audio/transcriptions` endpoint — every consumer appends the path only when it is missing, so both shapes behave identically. Point it at the bundled service you deploy separately (`deploy/transcription`) or any OpenAI-compatible endpoint. Unset + default `transcribe_enabled=true` → `POST /bots` answers **503** naming the missing keys (not a silent empty transcript). | | `TRANSCRIPTION_SERVICE_TOKEN` | — | STT auth token — must match the `API_TOKEN` of your `deploy/transcription` unit, or a token from `vexa.ai/account`. | | `TRANSCRIPTION_MODEL` | `whisper-1` | STT model id sent on every transcription request (the OpenAI-compatible `model` field). **Set it when the backend validates model ids** — Groq (`whisper-large-v3-turbo`), OpenAI (`whisper-1` / `gpt-4o-transcribe`), vLLM/LiteLLM (the served name) — or every request fails `model_not_found`. Ignored by the bundled `deploy/transcription` unit, whose model is its own `MODEL_SIZE`. | | `TRANSCRIBE_ENABLED` | `true` | Deployment-level default for a spawn's `transcribe_enabled` when `POST /bots` does not say. Resolution: **explicit request body wins** → else this env → else `true`. Set `false` for a deliberately no-STT deployment: bots spawn **capture-only** instead of answering 503. Leaving it **empty means `true`** — only an explicit `false`/`0`/`no`/`off` opts out. | | `RECORDING_ENABLED` | `true` | Deployment-level default for a spawn's recording when `POST /bots` does not say. Same empty-means-default rule as above. | | `BOT_ALONE_SILENCE_WINDOW_MS` | `600000` | Active-phase remote-audio silence window before the bot leaves with `completed(left_alone)`. Forwarded to spawned bots. A request's `automatic_leave.max_time_left_alone` overrides it. | | `BOT_SPEAKER_MIN_AUDIO_SEC` | `2` | Google Meet minimum audio window before submitting to STT. Lower values reduce first-transcript latency but increase request frequency. | | `BOT_SPEAKER_SUBMIT_INTERVAL_SEC` | `2` | Google Meet speaker-stream submission interval. | | `BOT_SPEAKER_CONFIRM_THRESHOLD` | `2` | Consecutive matching STT results required to confirm a segment. `1` lowers latency but reduces LocalAgreement protection against corrections. | | `BOT_SPEAKER_MAX_BUFFER_SEC` | `30` | Maximum buffered Google Meet audio before a forced submission. | | `BOT_SPEAKER_IDLE_TIMEOUT_SEC` | `15` | Flush/reset timeout after a speaker stops producing audio. | The STT service is the **GPU workload, deployed separately** from this stack — see [Deployment → Transcription](/deployment#transcription-the-separate-gpu-unit). The main stack stays GPU-free and reaches it over the network via the two variables above. ### When the backend is wrong, you learn at configure time A URL or token that does not work is refused where you set it, not by an empty transcript hours later. The same live check runs at three surfaces, and all three name the same cause: | Surface | What you see | | - | - | | Setup wizard — **Save & test** | Red with the endpoint's own status: `Token REJECTED by … (HTTP 401)` or `No transcriptions endpoint at … (HTTP 404)`. A green here means a bot will transcribe — the wizard verifies with the exact request a bot's first audio chunk makes. | | Boot log + `GET /health` | The `stt` capability row reads `misconfigured` with a `probe.reason`, instead of `configured`. A failing probe warns loudly but never blocks boot. | | `POST /bots` | `503` carrying that same reason, **before** any meeting row is written — never a bot that joins and silently transcribes nothing. | The verdict is cached for 60s, so after fixing the value either wait a minute or call `GET /health?force=1` to re-probe immediately. > [!NOTE] > > A `404` from the transcriptions path is treated as a **wrong URL**, not as proof of life: a real > OpenAI-compatible endpoint answers `400` or `401` to an empty request body and never `404`. Some > gateways also answer `404` for a rejected credential — the error text names both possibilities. > [!WARNING] > > **Never put a comment on the same line as a value in `.env`.** Write it on its own line above the > key. Compose tolerates a trailing `# comment`, but `docker run --env-file` (which Vexa Lite uses) > does **not** strip it — the comment becomes part of the value, so `TERMINAL_PORT=13000 # the UI` > sets the port to the literal string `13000 # the UI`. ## Optional service authority Stock self-hosted Vexa has no external service authority and continues to admit bots exactly as before. Operators who need an independently owned admission/active-service policy can opt into the sealed `service-authority.v1` boundary: | Variable | Default | Purpose | | - | - | - | | `VEXA_SERVICE_AUTHORITY_CONFIG` | — | Compact JSON containing a credential-free `url`, `contract_version: "service-authority.v1"`, `timeout_ms`, `response_max_age_seconds`, `failure_policy: "closed"`, and `mode: "enforce"` or `"observe"`. HTTPS is required except for loopback/in-cluster HTTP. | | `VEXA_SERVICE_AUTHORITY_SECRET` | — | HMAC-SHA256 secret for the exact timestamped request bytes. Required only when the config is set; keep it in the deployment secret store. | | `SERVICE_AUTHORITY_SWEEP_INTERVAL_S` | `15` | Poll cadence for discovering due active-service boundaries. Decisions remain anchored to admitted time plus whole minutes, so changing the poll cadence does not change the billable boundary. | The request contains service identity, authoritative user ID, service mode, frozen transcription provider, concurrency, and lifecycle timestamps. It deliberately contains no email, customer or payment-provider identifier, price, balance, transcription endpoint URL, or credential. A configured authority that is unavailable, malformed, stale, or bound to another request fails closed before a new bot is spawned. During active service, its stop intent is committed before runtime teardown and resumed after restart. `mode: "observe"` records decisions without refusing or stopping service. It is useful for rollout, but it is not evidence that a hard service control is enforced. A session admitted in one mode is never reinterpreted under another mode after a deployment change. ## Operator terminal callback An operator can send terminal service facts to one deployment-owned system endpoint. This is separate from a user's webhook configuration: the URL is frozen at boot, cannot be supplied by an API caller or meeting payload, and receives only `meeting.completed` and `bot.failed`. | Variable | Default | Purpose | | - | - | - | | `VEXA_SYSTEM_WEBHOOK_URL` | — | Absolute operator-owned endpoint for terminal `webhook.v1` envelopes. HTTPS is required unless private HTTP is explicitly enabled. URLs with credentials, query strings or fragments are rejected. | | `VEXA_SYSTEM_WEBHOOK_SECRET` | — | HMAC-SHA256 secret for the exact timestamped envelope bytes. Required with the URL and stored only in the deployment secret store. | | `VEXA_SYSTEM_WEBHOOK_ALLOW_PRIVATE_HTTP` | `false` | Explicitly permits a private/in-cluster HTTP destination such as a billing service on the Compose/Kubernetes network. It does not change customer webhook SSRF protection. | | `VEXA_SYSTEM_WEBHOOK_TIMEOUT_S` | `10` | Bounded delivery timeout, greater than zero and at most 60 seconds. | Transient delivery failures enter a dedicated retry/dead-letter queue and retain the same deterministic event ID. Customer webhook destinations continue through DNS/IP validation and cannot redirect this operator callback. Leave all four values unset for the stock OSS behavior. ## Secrets & identity | Variable | Default | Purpose | | - | - | - | | `ADMIN_TOKEN` | `changeme` | Admin API key (`X-Admin-API-Key`) — mints users and tokens. | | `INTERNAL_API_SECRET` | `vexa-internal-secret` | Shared secret for service-to-service calls. | | `VEXA_DISPATCH_SIGNING_KEY` | `dev-dispatch-signing-key` | Signs dispatch tokens (the identity chain of custody). | | `NEXTAUTH_SECRET` | `dev-nextauth-secret` | Session secret for the web UI. | | `VEXA_BOT_API_KEY` | — | Pre-shared key a bot uses to call back into the stack. | ## Bot participant name `DEFAULT_BOT_NAME` on meeting-api names the bot, and compose, Lite and helm ship it as `Vexa`. To rename the bot, set it in `.env` (compose/Lite) or `meetingApi.defaultBotName` (helm) and restart meeting-api — the terminal needs no rebuild, because it omits `bot_name` when it sends a bot and lets the deployment decide. Blank the variable and meeting-api falls back to `VexaBot-{random}`. Two things still win over it. An explicit `bot_name` in a `POST /bots` request always takes precedence, which is also how a calendar connection applies its own per-calendar bot name. And a name baked into the terminal image at build time overrides the deployment: pass `NEXT_PUBLIC_DEFAULT_BOT_NAME` as a Docker build arg (there is a commented-out line for it under the terminal's `build.args` in compose) and rebuild the image — a rename then costs another rebuild, which is why the runtime variable is the better knob. Direct `joinMeeting` callers read `DEFAULT_BOT_NAME` too and fall back to `Vexa Join Layer`. ## Database & storage | Variable | Default | Purpose | | - | - | - | | `DB_NAME` / `DB_USER` / `DB_PASSWORD` | `vexa` / `postgres` / `postgres` | Postgres credentials (metadata). | | `POSTGRES_HOST_PORT` | `5458` | Host port mapped to Postgres. | | `DB_POOL_SIZE` | `5` | SQLAlchemy async-engine `pool_size` — persistent connections **per pod** — read by admin-api and meeting-api and applied to each service's engine. | | `DB_MAX_OVERFLOW` | `10` | SQLAlchemy async-engine `max_overflow` — burst connections above `pool_size`, per pod. Ceiling per pod is `pool_size + max_overflow` (default `15`). | > [!NOTE] > > `DB_POOL_SIZE` / `DB_MAX_OVERFLOW` are pure runtime overrides. On managed Postgres with a hard > `max_connections`, reconcile them with the per-service connection budget in `deploy/db-budget.json`, > whose accounting is `Σ (replicas × (pool_size + max_overflow)) + reserved ≤ max_connections`. > The defaults (`5` / `10`) match that budget. ### Object storage (recordings) Recordings are stored over S3. Lite and Compose run the store themselves: versitygw (`versity/versitygw`, Apache-2.0), whose POSIX backend keeps each object as a plain file in a local volume. The variables keep their historical `MINIO_*` names; no MinIO runs in Lite or Compose. | Variable | Default | Purpose | | - | - | - | | `MINIO_ENDPOINT` | `storage:9000` | Where meeting-api stores recordings: `host:port`, or a full `http(s)://` URL. The default is the Compose `storage` service; Lite sets `vexa-lite-storage:9000` itself. Point it at your own S3-compatible store to use that instead. | | `MINIO_ACCESS_KEY` / `MINIO_SECRET_KEY` | `vexa-access-key` / `vexa-secret-key` | The S3 key pair meeting-api uses. In Lite and Compose it is also the storage server's root key pair, so these are the credentials to change. | | `MINIO_BUCKET` | `vexa` | Bucket holding recordings; created on bring-up if missing (Compose `storage-init`, Lite `make up`). | | `MINIO_SECURE` | `false` | Use `https://` when `MINIO_ENDPOINT` is a bare `host:port`. | | `STORAGE_HOST_PORT` | `18900` | Compose only: the storage S3 port on `127.0.0.1` (see [Ports](#ports)). | Upgrading an install that ran MinIO: [Upgrade from MinIO](/upgrade-from-minio). Backups: [Recordings → Backups](/how-to/recordings#backups). ### Object storage on Kubernetes On Helm, meeting-api's storage variables come from the chart's `storage.s3` values — see [Kubernetes → Object storage](/deployment-kubernetes#object-storage). The chart refuses to render when `meetingApi.extraEnv` also sets one of them. | meeting-api variable | Set by the chart from | | - | - | | `S3_ENDPOINT`, `MINIO_ENDPOINT` | `storage.s3.endpoint` | | `MINIO_SECURE` | `true` when that endpoint starts with `https://` | | `MINIO_BUCKET` | `storage.s3.bucket` | | `S3_ACCESS_KEY`, `MINIO_ACCESS_KEY` | the `storage.s3.accessKeyIdKey` key of the `storage.s3.existingSecret` Secret | | `S3_SECRET_KEY`, `MINIO_SECRET_KEY` | the `storage.s3.secretAccessKeyKey` key of the same Secret | | `STORAGE_BACKEND` | `s3` — the label stamped on each new recording's metadata | | `AWS_CONFIG_FILE` | `/etc/vexa/s3/config`, a mounted file with `storage.s3.region`, the addressing style from `storage.s3.forcePathStyle` and, when set, `storage.s3.caBundle` | ## Agent inference (bring your own) Point the agent at your own model so no inference leaves the network. | Variable | Default | Purpose | | - | - | - | | `VEXA_AGENT_MODEL` | — | Model the agent runner uses. | | `VEXA_MEETING_MODEL` | — | Model for meeting-time processing. | | `ANTHROPIC_API_KEY` | — | Key for Anthropic-backed runners. | | `ANTHROPIC_MODEL` · `ANTHROPIC_DEFAULT_OPUS_MODEL` · `…_SONNET_MODEL` · `…_HAIKU_MODEL` | — | Per-tier model overrides. | | `HOST_CLAUDE_CREDENTIALS` | — | Host path to Claude credentials mounted into agent containers (see below). | | `VEXA_AGENT_DEFAULT_SUBJECT` | `u_live` | Fallback subject before the gateway fronts agent-api. | ### Claude subscription credentials (`HOST_CLAUDE_CREDENTIALS`) Setting `HOST_CLAUDE_CREDENTIALS=~/.claude/.credentials.json` mounts your Claude Code sign-in into the agent containers (read-only), so the agent runs on your subscription instead of an API key. Whether that file stays valid depends on the host OS: * **Linux** (and **Windows via WSL2** — run the stack and the `claude` CLI inside WSL): the file is Claude Code's own store; the CLI refreshes it in place. Nothing to do. * **macOS**: the CLI's source of truth is the login **Keychain** — the file is a one-time export whose token expires every \~8–12 hours. Symptom: agent chat fails with `401 Invalid authentication credentials` while `claude` works fine in your terminal. Install the bundled sync daemon once: ```bash theme={null} deploy/bin/claude-creds-sync/install.sh ``` It registers a launchd user agent (`ai.vexa.claude-creds-sync`) that re-exports the Keychain into the file every 5 minutes, write-only-on-change, preserving the inode the containers mount. `install.sh uninstall` removes it. Details: `deploy/bin/claude-creds-sync/README.md`. The credential-file mount is a single-developer convenience. For a portable setup that survives token rotation on any OS, configure an API key or a custom endpoint in **Settings → Models** (stored per-user/global in the database) — see the setup wizard or the table above. ## Auto-join & calendar sync Timing knobs for the two meeting-api background sweeps ([auto-join](/core/meetings#auto-join--scheduled-means-the-bot-comes) and [calendar sync](/how-to/calendar-sync)). Both degrade gracefully: without `ADMIN_API_URL` + `INTERNAL_API_SECRET`, calendar sync no-ops and auto-join spawns without per-user context — the stack still boots. | Variable | Default | Purpose | | - | - | - | | `DEFAULT_BOT_NAME` | `Vexa` | The bot's display name in the meeting. The terminal omits `bot_name` when it sends a bot, so this names those bots; an explicit `bot_name` still wins. Blank it and meeting-api falls back to `VexaBot-{random}`. | | `AUTO_JOIN_SWEEP_INTERVAL_S` | `30` | How often scheduled meetings are checked for a due start. | | `AUTO_JOIN_LEAD_S` | `120` | The bot is sent this many seconds *before* the scheduled time, so it is already standing in the lobby when the meeting starts. | | `VEXA_LOBBY_BUDGET_S` | `900` | How long a spawned bot waits for admission before giving up (`automatic_leave.waitingRoomTimeout`). The reconciler's pre-active grace derives from this, so raising it never leaves a waiting bot reaped early. | | `AUTO_JOIN_GRACE_S` | `600` | A meeting whose start passed longer ago than this is skipped — never joined hours late. | | `AUTO_JOIN_RETRY_BACKOFF_S` | `300` | Wait after a loud auto-join failure (cap/quota/spawn) before retrying that meeting. | | `CALENDAR_SYNC_INTERVAL_S` | `300` | How often connected ICS feeds are re-fetched and upserted. | | `ADMIN_API_URL` | — | admin-api base URL for the sweeps' internal lookups (spawn context, calendar configs). | ## Images & runtime | Variable | Default | Purpose | | - | - | - | | `IMAGE_TAG` | `dev` | Tag for the built service images. | | `BROWSER_IMAGE` | `vexaai/vexa-bot:v012` | Browser/bot container the runtime spawns per meeting. **Built from source** (`make bot`), spawned without pulling — the published `vexaai/vexa-bot:dev` is the old 0.10 line and is incompatible. | | `AGENT_IMAGE` / `AGENT_WORKER_IMAGE` | `vexaai/v012-agent-*` | Agent container the runtime spawns per dispatch. | | `DOCKER_GID` | `0` | Host docker group id, so the runtime can use the Docker socket. | | `LOG_LEVEL` | `info` | Log verbosity. | ## Ports Host ports the compose stack publishes on `127.0.0.1` (override any of them in `.env`): | Variable | Default | Service | | - | - | - | | `API_GATEWAY_HOST_PORT` | `18056` | gateway (the one front door) | | `ADMIN_API_PORT` | `18057` | admin-api | | `MEETING_API_PORT` | `18080` | meeting-api | | `RUNTIME_API_PORT` | `18090` | runtime | | `AGENT_API_PORT` | `18100` | agent-api | | `TERMINAL_PORT` | `13000` | web UI / terminal | | `STORAGE_HOST_PORT` | `18900` | storage (versitygw) S3 API; no web console | > [!NOTE] > > The gateway (`:18056`) is the one front door; the terminal web workbench is at `:13000`. The other host > ports above are bound to `127.0.0.1` for local inspection and aren't needed for day-to-day use. ## Gateway edge protection The gateway carries two independent abuse layers. Both are env-driven; both default sensibly for self-hosted and can be left untouched. ### Per-user limiter (post-auth, on by default) A token-bucket limiter keyed by user id fires *after* the API key is resolved — it catches one token driving too much traffic. On by default. | Variable | Default | Purpose | | - | - | - | | `GATEWAY_RATE_LIMIT_DISABLED` | — | `1` / `true` / `yes` / `on` disables the per-user limiter entirely. | | `GATEWAY_RATE_LIMIT_BURST` | `120` | Bucket size (max burst). | | `GATEWAY_RATE_LIMIT_RPS` | `40` | Refill rate (tokens/sec). High enough for normal use; lower for stricter throttling. | ### Edge guard (pre-auth, off by default) An optional fastapi-guard edge layer caps requests per **client IP** *before* the API key is validated — so an IP flooding invalid keys, or rotating many keys from one IP to defeat the per-user limiter, is answered with `429` at the edge and never reaches admin-api. An IP that keeps offending past a threshold is **auto-banned for a window**; sustained abuse costs the abuser, not the operator. It is **on by default everywhere**: the code default is `GUARD_ENABLED=true`, compose interpolates `GUARD_ENABLED=${GUARD_ENABLED:-true}` and ships the opt-out line commented, and the Helm chart sets `gateway.guard.enabled: true`. You opt OUT, not in. > [!NOTE] > > `GUARD_ENABLED=false` is the kill switch — set it to turn the whole edge layer off. When > behind a reverse proxy you must also set `GUARD_TRUSTED_PROXIES`, or every request keys to the proxy > IP → one global bucket shared by all clients (one abuser throttles everyone). See > [Deployment → Publishing behind a reverse proxy](/deployment#publishing-behind-a-reverse-proxy). | Variable | Default | Purpose | | - | - | - | | `GUARD_ENABLED` | `true` (code, compose and Helm) | Kill switch for the entire edge layer. | | `GUARD_ENABLE_REDIS` | `true` | Share rate/ban state across processes via the existing `REDIS_URL` (`false` → in-memory only, per-process). | | `GUARD_RATE_LIMIT_RPM` | `600` | Per-IP request cap per minute; `0` disables rate limiting. | | `GUARD_RATE_LIMIT_WINDOW` | `60` | Rate-limit window in seconds. | | `GUARD_AUTO_BAN_THRESHOLD` | `10` | Over-limit events from one IP before it is auto-banned. | | `GUARD_AUTO_BAN_DURATION` | `3600` | Auto-ban window in seconds; after expiry the offender gets a fresh budget. | | `GUARD_IP_WHITELIST` | — | CSV of IPs that bypass every guard check. | | `GUARD_IP_BLACKLIST` | — | CSV of IPs rejected on the first request (`403`). | | `GUARD_BLOCKED_COUNTRIES` | — | CSV of ISO country codes to block (geo, opt-in). | | `GUARD_BLOCK_CLOUD_PROVIDERS` | — | CSV of cloud providers to block (e.g. `aws,gcp`), opt-in. | | `GUARD_TRUSTED_PROXIES` | — | CSV of trusted proxy IPs whose `X-Forwarded-For` is honored for client-IP resolution. **Set this when behind a reverse proxy.** | | `GUARD_TRUST_X_FORWARDED_PROTO` | `false` | Trust `X-Forwarded-Proto` for scheme enforcement. | | `GUARD_REDIS_PREFIX` | `vexa:guard:` | Redis key namespace (avoids colliding with Vexa's own keys). | | `GUARD_WS_ENABLED` | `false` | Opt-in `/ws` connect guard. In-memory per-process — does **not** share ban/rate state with the Redis-backed HTTP layer, and under `uvicorn --workers N>1` each worker keeps an independent WS ban set. | > [!NOTE] > > With `GUARD_ENABLE_REDIS=false` AND `uvicorn --workers N>1`, the HTTP rate-limit buckets and auto-bans are also per-process: the effective limit becomes `N × GUARD_RATE_LIMIT_RPM` and bans do not propagate across workers (the WS per-process ceiling above applies to the WS path independently). The same applies across multiple gateway **replicas** without Redis — each is its own process. > > **Safe configurations:** the shipped gateway runs a **single** uvicorn worker, so the default (`GUARD_ENABLE_REDIS=true`, one worker) enforces the limit globally. If you scale to multiple workers **or** replicas, keep `GUARD_ENABLE_REDIS=true` — Redis-backed state is what shares the buckets and bans across processes. `GUARD_ENABLE_REDIS=false` is only safe with a single worker **and** a single replica; if you must run without Redis at higher concurrency, divide `GUARD_RATE_LIMIT_RPM` by the process count to hold the aggregate cap (note this still will not propagate bans). The guard fails open (`fail_secure=false`): a guard-check bug or a redis outage returns the request to the app rather than taking the gateway down. Request-body WAF scanning is intentionally off — the gateway proxies arbitrary user text (chat, meeting `data`, transcript shares), so signature scanning would false-positive on legitimate content. # Agents Source: https://docs.vexa.ai/core/agents A sandboxed CLI agent that works a person's knowledge like a developer works a codebase. An **agent** is a CLI coding agent (Claude Code, Codex, …) given a [workspace](/concepts#workspace) and a job. It reads and writes Markdown files, runs tools, and commits — the same loop that disrupted software development, pointed at knowledge instead of code. The domain itself is built the way everything in Vexa is: [one-concern modules](/concepts#module) (dispatcher, worker, workspace store, LLM runners) joined by [sealed contracts](/concepts#contract) (`unit.v1`, `workspace.v1`, `invoke.v1`), each testable in isolation against fixtures. Agents are a **standalone domain** — they work any [workspace](/concepts#workspace) of knowledge, **with or without meetings**. A meeting is just one of the triggers and sources ([message, schedule, event](/concepts#scheduler)), never a requirement. ## Why this works A CLI coding agent is just a **process on Linux** — it reads files, runs commands, commits. That bare simplicity is exactly why it reshaped software work: no special runtime, nothing to integrate. We change two things, and nothing else: * **Put it in a container** — now it is *isolated* (its own container, holding only the workspaces it was granted) and *scalable* (ephemeral, thousands in parallel). Outbound network access is your cluster's policy today; Vexa does not restrict it. * **Point it at business data** instead of dev prompts — give it a [workspace](/concepts#workspace) of Markdown instead of a code repo, and the same loop treats **knowledge as code**. Nothing exotic: the proven coding-agent loop, isolated and scalable, aimed at your knowledge. ## How an agent runs A trigger ([message, schedule, event, or a meeting](/concepts#scheduler)) dispatches an agent. The [runtime](/core/runtime) spawns it in an isolated [container](/concepts#container) with the workspace mounted; it works, commits, streams its output, and is reaped when idle. Continuity is a session **file** in the workspace, so a fresh container resumes instantly — nothing stays warm. The agent is **untrusted** by design (it is prompt-injectable). It carries a signed [identity](/concepts#identity) token that every boundary verifies; it never enforces anything itself, and never holds a raw credential. ## Trusted vs untrusted input What an agent may do is set by where its input came from, enforced at the boundaries — never by the model: * **Trusted** (you, in chat) → the agent writes to the workspace directly; git is the undo. * **Untrusted** (an email, a web page) → the agent runs **propose-only**: it suggests actions (record a task, draft a reply, send) as cards; a human approves, and trusted code applies them. Irreversible effects (send, order) are always gated. # Identity Source: https://docs.vexa.ai/core/identity The one place that decides who is asking, what they own, and whether they are allowed — for every request in the system. Identity is the platform checkpoint: accounts, keys, and the rule that you only touch what you own. Every other domain assumes a request already passed through it. It exists twice on purpose — the live DB-backed oracle and the pure DB-free reference library — both honouring the same [sealed contract](/concepts#contract) (`identity.v1`): the [one-concern-per-module](/concepts#module) rule applied to trust itself, so authorization logic is testable in full isolation from the database. On every request it resolves three things: 1. **Who is asking** — resolved once at the edge, never from the client's word. 2. **What they touch, and who owns it** — every meeting, recording, and workspace has an owner. 3. **Whether they are allowed** — a default-deny decision. It also mints **short-lived, single-purpose tokens** so an agent acts on your behalf without holding your API key (see [zero-trust](#where-we-are-going-zero-trust)). Two forms, on purpose: * **`admin-api`** (`core/identity/services/admin-api`) — the live, database-backed service: user accounts, API tokens, and the `/internal/validate` oracle the gateway calls. * **`identity_core`** (`core/identity/src/identity_core`) — a pure, dependency-free library of the rules (mint a token, check access, mint a dispatch token, broker a secret), sealed as the [`identity.v1`](#building-blocks) contract so every service decides the same way. > [!NOTE] > > This page is the identity **domain** — accounts, the access model, what's built, and the roadmap. > The cross-cutting **trust flow** — how a dispatch's authorization is proven and verified at every hop — > is its own document: [Identity & trust](/architecture/identity-and-trust). *** ## The model Six rules — the reasoning, the mechanism, and the established practice each comes from. | Rule | Why | Mechanism | Maps to | | - | - | - | - | | **Verified caller** | A claimed identity can be faked; verify it once at the edge, then trust it. | Gateway resolves the key to a user, stamps `X-User-Id`, strips any client-supplied identity. | Zero-trust edge / policy enforcement point (Google BeyondCorp) | | **Owned resources** | Being logged in isn't being allowed; check the object's owner, not just the session. | `meetings.user_id`; a workspace is named for its owner. | Least privilege; prevents IDOR / broken object-level authZ (OWASP API1:2023 BOLA) | | **Check per request** | A check you can skip isn't a check; decide on every access, never in the UI. | [`OwnerOnlyPolicy`](#building-blocks) on each read. | Complete mediation (Saltzer & Schroeder) | | **One decision point** | Rules copied across services drift; keep one decider and have services call it. | `identity_core` decides; services enforce. | PDP/PEP separation (XACML lineage; OPA · AWS Cedar) | | **Default deny** | A forgotten check should fail closed; deny unless explicitly allowed. | `OwnerOnlyPolicy` allows the owner, denies the rest with a reason. | Fail-safe defaults (Saltzer & Schroeder) | | **No shared keys** | A master key can do everything; hand out a token good for one thing, briefly. | Signed [dispatch tokens](/architecture/identity-and-trust); credentials are brokered, never handed over. | OAuth 2.0 token exchange (RFC 8693); avoids the confused-deputy problem | > [!NOTE] > > The agent (the LLM) is **outside** the trust boundary — it carries proof but never enforces it. > Compromise it via prompt injection ([OWASP LLM01](https://genai.owasp.org/)) and it still cannot exceed > its token's scope; the boundaries enforce, not the model. See > [Identity & trust](/architecture/identity-and-trust). *** ## The request path (grounded) Everything reaches the domains through the [gateway](/architecture/modules); the [terminal](/concepts) is one client. For every call the gateway resolves the key to a user and forwards to the owning domain with `X-User-Id` stamped on. ``` terminal ──(API key, from your login)──▶ GATEWAY ──(X-User-Id, verified)──▶ meetings / agent domain │ resolve key → user (fail-closed) │ strip any client-supplied identity (anti-spoof) │ check the route's coarse scope ``` The full public surface, grouped by **what it protects** — this is the real attack surface, and what the security model has to cover (nothing more): | Group | Endpoints | Owner rule | Scope | | - | - | - | - | | **Front door** | `GET /health`, `GET /auth/me`, `WS /ws` | n/a / "who am I" / per-meeting subscribe | — | | **Meetings** (you must own the meeting) | `GET·POST /bots`, `…/bots/{platform}/{native}` (delete · config · speak), `GET /transcripts/{platform}/{native}`, `GET /recordings…`, `GET /meetings…` | owner = `meetings.user_id` | `bot` · `browser` · `tx` | | **Your agent space** (yours by construction) | `POST /agent/chat`, `GET /agent/meeting/stream`, and `/agent/*` → `chat`, `workspace/{tree,file,init,swap,git,upload}`, `sessions`, `routines`, `models`, `meeting/{start,process,stream}` | owner = you, **by partition** (you can only name your own workspace/session) | none today | Two safety shapes result: * **Agent space** is safe by partition — a workspace, session, or routine is addressed by your id, so no explicit check is needed. * **Meetings** are owned in the meetings domain, so the owner-checked path runs there (`GET /transcripts`, `/ws` subscribe authorization). The leak is where the agent domain reads a meeting directly instead of via the meetings domain — see [adoption gaps](#where-we-are). *** ## Building blocks What actually exists today, with the real names. **`identity_core`** — the pure rule library, sealed as `identity.v1` (`core/identity/contracts/identity.v1`): * **Tokens** (`tokens.py`) — `ScopedToken(subject, scopes, expires_at)`; scopes are `bot · tx · browser`; `mint_token` / `validate_token`. * **Access** (`access.py`) — `Resource(kind, id, owner)` for kinds `meeting_transcript · recording · ws_subscribe`; `AccessDecision(allow, subject, …, reason)`; `OwnerOnlyPolicy` (default-deny, allow iff `subject == owner`); the front-door function `can_access(subject, resource, action)`. * **Dispatch tokens** (`dispatch_tokens.py`) — a JWT-style, audience-scoped bearer token signed HS256 in dev (SPIFFE [SVIDs](https://spiffe.io/) in production): `DispatchClaims(subject, launcher, workspaces[], tools[], iat, exp)`; `mint_dispatch_token` / `verify_dispatch_token`. `subject` is *who you act for*; `launcher` is *what triggered it*. `may_mount(id, mode)` and `may_call(tool)` are the limits a boundary checks. This is the "single-purpose pass." * **Secrets** (`secrets.py`) — the brokered-secrets pattern ([HashiCorp Vault](https://www.vaultproject.io/)): `SecretsPort` returns a redacted `BrokeredSecret` (its `repr` never prints the value) and writes an audit log; the value is fetched on demand, never logged. The real vault (lease, rotation) is deferred — see [encryption](#data-at-rest-encryption). **`admin-api`** — accounts and the live oracle: * Tables: `User` and `APIToken(token, user_id, scopes[], expires_at, …)`; tokens look like `vxa__`. * `POST /internal/validate` — the gateway calls this (behind an internal secret, fail-closed) to turn an API key into `{user_id, scopes, …}`. * Three tiers: **admin** (`X-Admin-API-Key`, create users/tokens), **user** (`X-API-Key`, e.g. set a webhook), **internal** (`X-Internal-Secret`, the validate oracle). **Gateway** — the edge that resolves the key, stamps `X-User-Id`, enforces coarse route scopes, and runs the `/ws` multiplex. *** ## Where we are Honest status. The **design is frozen and the primitives are built** — the gap is *adoption*: the rules exist as a library but are not yet wired into every path that needs them. The constitution names this risk directly: **P20** (complete mediation) records that the `canAccess` seam "was designed but never wired, so it **rotted**," and **P9** holds that an unenforced rule is only aspirational — a rule that does not turn CI red can be crossed. | Piece | State | | - | - | | Per-dispatch signed token (`DispatchClaims`, HS256) | ✅ **built, proven live** | | `identity_core` library + sealed `identity.v1` | ✅ **built** | | `admin-api` (users, tokens, `/internal/validate`) | ✅ **built** | | Gateway: key → user, `X-User-Id`, route scopes, `/ws` | ✅ **built** | | Agent-api derives `subject` from `X-User-Id`, ignores the client body | ✅ **built** (P20) | | Client identity is real (terminal sends the logged-in user's key via OAuth) | ✅ **fixed** — the old hardcoded `u_live` is gone from the client | | `can_access` / `OwnerOnlyPolicy` **adopted on every meeting path** | ⚠️ **partial** — meeting-api owner-checks its own way; the agent domain's `chat` / `meeting/stream` / `meeting/start` / `meeting/process` do **not** call it yet | | Server-side live-meeting **owner attribution** | ⚠️ **pre-M2** — the live-meeting watcher is started with the default `subject = "u_live"` (`control_plane/api.py:880` → `transcription_watcher.py:203`); live-meeting dispatch (M2) is not yet delivered, so this default must be replaced with the real owner before it ships | | **Auth spine** end-to-end (opaque token → user → scoped access, everywhere) | ⬜ **planned** (Stage 2) | | Workload identity in production (SPIRE), Keycloak, RFC 8693, MCP Gateway | ⬜ **planned** (Stage 2) | | SSO (Okta/Entra) + SCIM | ⬜ **planned** (Stage 5) | The front door is real; a few agent-domain endpoints read a meeting's data directly instead of via the meetings domain, skipping the owner check that already exists in the library. Closing it is wiring, not design: route those reads through the owning domain and decide with `OwnerOnlyPolicy`. *** ## Where we are going (zero-trust) The target — a **chain of custody** where a dispatch's authorization is proven and verified at every hop (signed tokens, [RFC 8693](https://datatracker.ietf.org/doc/html/rfc8693) exchange at the tool boundary, SPIRE/Keycloak via [kagenti](https://github.com/kagenti/kagenti)) — is one document: [Identity & trust](/architecture/identity-and-trust). It lands as [Stage 2 — Trust](/roadmap/stages). The point for this domain is narrow: we run an **untrusted, prompt-injectable agent on private data**, so safety must come from boundaries that verify, not from trusting the model. *** ## Roadmap — by principle Each item ties a declared principle to its code reality and the concrete next step, plus the gate or stage that makes it real (P9: an ungated rule is aspirational). Foundations: [the agent is untrusted](/concepts), [identity is a chain of custody](/concepts), [self-host & air-gap by default](/concepts). | Principle | Today (in code) | Next step | Lands as | | - | - | - | - | | **P20 — complete mediation**: authorize every access, default-deny `canAccess` on API · WS · agent | deny test on the library only (`core/identity/tests/test_access.py`, `gate:access`); meeting-api owner-checks **implicitly per query**; agent meeting paths unchecked (`can_access` count = 0 in `control_plane/api.py`) | wire `can_access(subject, resource, action)` onto every meeting path (`chat` · `meeting/stream` · `meeting/start` · `meeting/process`); extend `gate:access` to the wired paths | ADR-0012 · `gate:access` | | **Identity is a chain of custody** | `x-user-id` is plaintext, trusted by network position (`gateway/app.py:192`); the per-dispatch token is minted (`control_plane/dispatch.py:36`) but not yet verified at a boundary | a **signed** user-assertion verified at each hop; verify the dispatch token at the workspace/tool boundaries | Stage 2 — SPIRE · Keycloak · RFC 8693 · MCP Gateway | | **Scoped agent domain** | `/api/*` carries **no** scope — any valid key reaches any agent route (`gateway/app.py:153-156`) | per-route scopes for the agent domain | Stage 3 | | **P15 — secrets behind a port** | broker pattern **wired** for the per-user git token (`agent/shared/adapters.py:135-162`); the store is the stand-in `PassthroughSecretsBroker` | real vault — lease · rotation · BYOK — behind `SecretsPort` | P16 · ADR-0003 | | **P15 — data encrypted at rest** | buckets bind-mounted; transcripts and tokens in cleartext | the three at-rest stores → see [Data at rest](#data-at-rest-encryption) | Stage 0 contract · planned | | **Multi-tenant attribution** | the copilot **does** dispatch on live meetings; what is pre-M2 is *who it is attributed to* — the watcher starts with the default `subject = "u_live"` (`control_plane/api.py:2342` passes no `subject=` → `transcription_watcher.py:216`, whose docstring calls it a "PRE-M2 placeholder"), so every armed copilot lands on one subject instead of the meeting's owner | pass the real meeting owner at `transcription_watcher.start` before M2 ships | Auth spine · M2 | | **P9 / P6 — one front door** | `_resolve_user_id` is duplicated across four meeting-api routers (`collector` · `bot_spawn` · `lifecycle` · `recordings`) | fold identity resolution into the shared `identity` front door | cleanup | > [!NOTE] > > `subject_of` (`control_plane/api.py`) has a `VEXA_AGENT_DEFAULT_SUBJECT` fallback for a gateway-less > single-user self-host. It is fail-closed (401) when unset; it **must stay unset** in any multi-tenant > deployment, or every caller collapses to one subject. ## Data at rest (encryption) Three stores hold sensitive data at rest (data **in transit** is encrypted with TLS — the standard that secures HTTPS connections). State and plan: | Store | What is in it | Today | Plan | | - | - | - | - | | **Workspace buckets** | Your whole workspace — notes, meeting docs, chat transcripts — a git folder in object storage (minio/S3) | bind-mounted local dirs (M1); contract reserves an `encryption` field on `workspace.v1` | **Per-workspace envelope encryption** (the KMS data-key pattern): a data key per workspace, wrapped by a master key the identity layer brokers; decrypted **only inside the sandboxed container**; keys stay in-VPC for air-gap | | **Transcripts** | The durable source of truth: the meetings **Postgres** `transcriptions` table (what `GET /transcripts` reads). The redis `transcription_segments` / `tc:…:mutable` stream is the live carrier; the workspace Markdown is a derived copy | persisted in Postgres; carried in redis; derived copy in the workspace bucket | Encrypt at rest in the **meetings database** (the SSOT); protect the redis carrier (auth/TLS, restricted ACLs); the workspace copy is covered by bucket encryption above | | **User API tokens** | The keys in `api_tokens.token` that unlock an account | stored and matched as **cleartext** | Store only a **hash** and verify by hashing the presented key — the same practice as passwords (argon2 / bcrypt) — or encrypt at rest, so a database leak yields no usable keys | These are tracked in the [roadmap status](/roadmap/status); workspace/bucket encryption is already part of the `workspace.v1` contract shape in [Stage 0](/roadmap/stages). *** ## Why this much, and not more Measures are sized to the system: a multi-user product where each person owns meetings and a private workspace, agents run untrusted in isolated containers, all driven from the terminal. The API reduces to "is this yours?", so the priorities are: * owner checks on meetings and workspaces (cross-user exposure is the real risk); * credentials out of the agent (the one untrusted, injectable component); * encryption of the three at-rest stores. Heavier machinery — SPIRE everywhere, SSO/SCIM, full air-gap — is staged ([Stage 5](/roadmap/stages)) for self-host and regulated verticals. The interfaces (`can_access`, the token shapes) do not change when it lands; only what sits behind them does. # Meetings Source: https://docs.vexa.ai/core/meetings A standalone service that plans, captures, stores, and serves meeting data in real time — usable on its own or with agents. **Meetings is a separate, self-contained service** — a detached domain with its own [API](/api/meetings). It covers a meeting's **whole life**: plan it (or import it from your calendar), auto-join it when it starts, capture it natively in real time, and share it — the transcript stored and served over the API as it happens. Run it entirely on its own as a meeting-capture backend — no agents required. Like every Vexa domain it is built as [modules of one concern](/concepts#module) — the same capture bricks compose into the bot, the desktop host, and the eval harness — joined by [sealed contracts](/concepts#contract) (`transcript.v1`, `lifecycle.v1`, `invocation.v1`, …), with fixtures collected from real meetings driving the tests at every scale. It also **composes** with the [agent domain](/core/agents) — the transcript becomes knowledge agents act on — but that is a composition, not a dependency: meetings stands alone. How the two connect (the `transcript.v1` → agent bridge) lives in one place: [Modules & seams](/architecture/modules). > [!TIP] > > **Hosted, no install:** [connect your agent](https://vexa.ai/connect?utm_source=docs\&utm_medium=tip\&utm_campaign=core-meetings) (Claude Code, Codex, Cursor) or [get an API key](https://vexa.ai/start?utm_source=docs\&utm_medium=tip\&utm_campaign=core-meetings) (free credit, no card required). Self-hosting: [Deployment](/deployment). ## The lifecycle — one meeting, one row A meeting is **one record from plan to transcript**. It is born in a user-owned *intent* status, is claimed by the bot lifecycle when the bot joins, and ends terminal — the plan's title, its workspace binding, and the eventual transcript all live together: | Phase | Statuses | Owned by | | - | - | - | | **Planned** | `idle` (no time) · `scheduled` (time set) | you — create/edit/delete freely | | **Live** | `requested → joining → awaiting_admission → active → stopping` | the bot lifecycle FSM | | **Done** | `completed` · `failed` | terminal | Terminal lifecycle events carry a completion reason. `left_alone` means the active meeting produced no remote microphone audio for its configured silence window (10 minutes by default), covering both an empty room and a silent bots-only room with one platform-agnostic rule. Qualifying remote speech resets the full window; local bot speech does not. If capture is unavailable, the detector fails closed and keeps the bot seated. The deliberate trade is that a human who remains silent for the whole window is also treated as an ended meeting; callers can raise the per-meeting window with `automatic_leave.max_time_left_alone`. Sending a bot to a planned meeting (manually or via auto-join) **upgrades the same record in place** — it is never duplicated, and a planned record can be edited or deleted only while it is still planned (the FSM is never fought). ### Plan Create a meeting before it happens with [`POST /meetings`](/api/meetings#plan-a-meeting): a title, an optional start time, an optional meeting link (Meet/Zoom/Teams/Jitsi — parsed server-side), an optional [workspace](/concepts#workspace) binding. A plan without a link is fine — attach the link later; a plan without a time sits in `idle` until you schedule it. ### Import — calendar sync Connect your calendar with its **secret ICS address** (Google Calendar and Outlook both provide one — see [Calendar sync](/how-to/calendar-sync)); no OAuth needed. Connecting syncs immediately and answers with the result — every sync failure is stamped as a human-readable status (`GET /user/calendars/{calendar_id}/sync`, surfaced on the Calendar page of the hosted dashboard at [dashboard.vexa.ai](https://dashboard.vexa.ai)), never swallowed — failures are loud here, like everywhere in the lifecycle. A background sweep re-fetches the feed (`CALENDAR_SYNC_INTERVAL_S`; self-hosted default 5 minutes, hosted rollout 60 seconds) and upserts planned meetings: * **Every upcoming event imports.** Recognizable Meet/Zoom/Teams links arm auto-join; link-less events remain visible as unarmed planned meetings until a link appears. * **One meeting per calendar event, next occurrence only** — a weekly meeting reuses one link, so the importer tracks the next upcoming occurrence; the following one imports after the current completes. * Moves, cancellations, title/link changes, attendees, and complete provider metadata follow the feed; a meeting the bot already joined is never touched. * A meeting you planned manually on the same link is **adopted** (linked to the calendar event), not duplicated. ### Auto-join — "scheduled" means the bot comes A `scheduled` meeting with a link is joined **automatically**: a sweep sends the bot shortly before the start time (default 60 s lead). Control it per meeting with the **auto-join toggle** (default on) and per source with each calendar connection's **auto-join switch**. Two guarantees: * **Never hours late** — a meeting whose start passed the grace window (default 10 min) is skipped, not joined absurdly late. * **Failures are loud** — a concurrency-cap or spawn failure stamps a visible error on the meeting (`auto_join_error`) instead of silently not showing up. See [Troubleshooting](/troubleshooting#a-scheduled-meeting-didnt-auto-join). ### Capture The bot joins natively, in real time, with no plugins or host configuration — it attends like any participant, on [**Google Meet**, **Zoom**, and **Microsoft Teams**](/api/meetings#platforms) in production, plus [**Jitsi Meet**](/api/meetings#platforms) — transcripts observed on the hosted service with synthetic speakers, validation with real participants open ([#570](https://github.com/Vexa-ai/vexa/issues/570)). Mechanically it is a **browser [container](/concepts#container) spawned by the [runtime](/core/runtime)** — the same runtime an agent runs in. The speaker-attributed (diarized) transcript streams live over the [API](/api/meetings) and WebSocket. ### Share — workspaces carry the meeting Bind a meeting to a shared [workspace](/core/agents) and **every member of that workspace sees it**: the upcoming plan, the live transcript feed, and the finished transcript. That makes the prep workflow one motion — prepare context in a workspace, invite the people you're meeting, and the meeting itself rides along. See [Plan and share a meeting](/how-to/plan-a-meeting). (Independent one-off transcript share links exist too — no workspace required.) ## From transcript to knowledge 1. The bot captures audio; transcription produces a real-time `transcript.v1` stream. 2. The transcript compiles into the person's [workspace](/concepts#workspace) as Markdown. 3. Agents read it like any other file — and act on it: * **Before the meeting** — prepare a briefing in the bound workspace; attendees see it live. * **After the meeting** — a dispatch writes notes, decisions, and action items as workspace files. * **During the meeting** — a live dispatch surfaces proactive cards (new person, action item, decision); see [Meeting copilot](/how-to/live-copilot). # Runtime Source: https://docs.vexa.ai/core/runtime Isolated, ephemeral containers — the execution layer. The **runtime** spawns, reuses, and reaps the [containers](/concepts#container) that agents (and meeting bots) run in. It is the only thing that touches the orchestrator; the control plane just asks it to run a dispatch. It is one [one-concern module](/concepts#module) — mechanism, not policy — behind one [sealed contract](/concepts#contract) (`runtime.v1`), with pluggable backends (process · Docker · K8s) proven by the same fixture suite against each. ## Why it exists: safety An agent is an untrusted, tool-using process operating on sensitive data. So every dispatch runs **isolated** (its own container) and scoped to **only the workspaces and tools it was granted**. Isolation is what makes the governance real rather than advisory — which is why agents never run in the control plane. Outbound network access is **not** restricted by the runtime: the Docker backend joins the stack's network and the Helm chart ships no `NetworkPolicy`, so egress is your cluster's policy today. The workspace grant is **enforced by the substrate**, not by instructions to the model: docker binds one volume subpath per granted mount (read-only roles bind `:ro`; requires engine ≥ v26 for named-volume stores); Kubernetes emits one `subPath` + `readOnly` volumeMount per mount against the store PVC; the lite process backend drops each worker to a **per-subject uid** with `0700` private tiers and per-shared-workspace groups. Another tenant's workspace isn't merely off-limits — it is **not in the worker's filesystem at all**, so even a prompt-injected agent cannot read or write it. ## One lifecycle, one substrate * **TTL-on-idle** — a container lives while it works and is reaped when idle. No warm/oneshot bookkeeping; continuity is the [session file in the workspace](/concepts#workspace). * **Sub-second, ephemeral, thousands in parallel** — the single-machine coding-agent model, made multi-tenant and cheap. ## Where it runs The runtime is **orchestration-agnostic**. The kernel owns the [`runtime.v1`](https://github.com/Vexa-ai/vexa/tree/main/core/runtime/contracts/runtime.v1) lifecycle — `starting → running → stopping → stopped → destroyed`, emitting an event on every transition — and delegates the one substrate-specific question (*how* do I start, observe, and stop a workload?) to a pluggable **Backend** with a five-method port: `start` · `exit_code` · `terminate` · `kill` · `cleanup`. The same control plane and the same `unit.v1` dispatch drive every backend; only the implementation behind that port differs: * **Process** — agents and bots are spawned as **child processes**, no Docker socket required. Each workload leads its own process group, and the backend owns that group: an observed exit or a stop reaps every descendant, so a self-exiting or stopped bot never strands its child tree (e.g. Chromium) on the shared host. Declared limitation — descendants that detach into their own process group (the debug-view x11vnc/websockify) are out of the group signal's reach. * **Docker** — each workload is its own container via the Docker socket. This is what the open core ships, brought up with **Docker Compose** (`make all`). * **Kubernetes** — the same workload model scheduled as a **Pod** across a cluster. The backend is selected per deployment by `RUNTIME_BACKEND` (default `docker`). Because all three honour the same port, the lifecycle a caller observes is **identical** across substrates — a bot and an agent are the same `runtime.v1` workload, differing only by [profile](/concepts#container) and env. ### On Kubernetes With `RUNTIME_BACKEND=k8s`, a workload is a **bare Pod**, created with `kubectl run … --restart=Never` (the kernel shells out to `kubectl` — no client library, mirroring the Docker backend). Two choices are deliberate: * **`--restart=Never`** — the *kernel* owns restart and reaping (TTL-on-idle, max-lifetime, per-owner quotas). A Pod that resurrected itself would defeat the kernel's "has it stopped?" detection, so the Pod must stay dead once it exits. * **A bare Pod, not a Deployment/Job** — a dispatch is a single ephemeral run, not a replicated service. The Pod is named `vexa-` (DNS-1123) in the namespace the runtime reads from the downward API (`POD_NAMESPACE`). Pod phase drives the backend's exit check (`Pending`/`Running` → still running; `Succeeded` → exit 0; `Failed` → the container's terminated exit code), which the kernel turns into the terminal state `stopped` with reason `completed` (exit 0) or `failed` (nonzero). > [!NOTE] > > **Current state (open core):** the Kubernetes backend implements the lifecycle **and the > workspace mount** — worker Pods get one `subPath` + `readOnly` volumeMount per granted workspace > against the store PVC (the same per-mount isolation the Docker backend enforces with volume-subpath > binds). The in-cluster substrate — ServiceAccount + RBAC to create Pods, the store PVC — ships as the > **Helm chart** in `deploy/helm`. The simplest self-hosted paths remain **Docker Compose** (`make all`) > — see [Deployment](/deployment) — and the one-container **lite** (`make lite`) — see > [Vexa Lite](/deployment-lite). Code: > `core/runtime/src/runtime_kernel/k8s_backend.py` + `mounts.py:k8s_volume_mounts` (Pod spec) vs > `docker_backend.py` (the reference bind + credential path). ## Already in production Vexa's [meeting bots](/core/meetings) are browser containers spawned by this exact runtime. Running agents this way is the same machinery, a different workload type — not a new system to stand up. # Workspaces & live collaboration Source: https://docs.vexa.ai/core/workspaces The workspace model an agent turn sees, sharing, membership, and live collaboration during meetings. The workspace model an agent turn sees, how workspaces are shared, how a user joins and manages them, and how members collaborate live during a meeting. This is the canonical explainer; the code lives in `core/agent/control_plane/` (membership, invites, mounts, purpose, git-sync, git-credentials), `core/agent/worker/` (the turn + mount preamble), `core/runtime/` (the binds), and `clients/terminal/src/` — `surfaces/workspace.tsx` (sidebar), `surfaces/workspaceManage.tsx` (the manage panel), `app/App.tsx` (invite consent), `surfaces/tokens.tsx` (the GitHub token). Status is marked ✅ done / 🟡 partial / ⬜ planned throughout. ## The mount model — three tiers Every agent turn mounts an ordered set `[_global?, *normal, _system]`: | Tier | Slug | Access | Always mounted | Purpose | | - | - | - | - | - | | **Global system** | `_global` | **read-only** (fs `:ro`) | yes (when configured) | Platform-owned self-awareness: a synced **Vexa branch** (code + docs) + behaviour/skills. One copy, central. | | **Normal** | `` / `.attached//` | read-write | opt-in (flat, equal rank) | The user's own + shared knowledge workspaces — all the **same rank** (see below). | | **Private system** | `_system` | **read-write** | yes | Per-user private store — **who you're helping** (`identity.md`), chats/sessions, settings, routines, membership/attachment records. Never shared. | * **There is NO "baseline"/"primary" rank** (2026-07-07 flat model). The normal tier is a **flat, equal-rank list** (`active_set`) — every workspace activates/deactivates the same way. The mount set's `primary` flag marks only the **dynamic default HOME** (the *first active* normal workspace = the turn's cwd, whose `CLAUDE.md` auto-loads); it moves as workspaces are switched on/off, and is absent when nothing normal is active. Code: `workspace_attach._normalized_active_set` (flat, with a one-time `_flat_v1` migration off the legacy baseline state), `dispatch._worker_cwd`. * **`_system` carries the light self-identity** (`identity.md`): the user's **name** + a pointer to the full `self: true` profile in their Personal workspace. Always mounted, so the agent knows who it's helping even when Personal is switched off; the worker preamble routes identity here and **asks for the name until it's set** (✅). Full profile (company/role/relationships) stays in Personal. * `_global` and `_system` are **"system possessions" always attached** to a user's agent. They are **invisible** in the workspace lists and **non-sharable** — both are in `RESERVED_SLUGS` and `ensure_workspace_shareable` refuses them (✅). `_system` can be **surfaced read-only in the files panel via a toggle, hidden by default** (the key icon in the KNOWLEDGE header) (✅). * `_global` is provisioned from `GLOBAL_SYSTEM_WORKSPACE_PATH` (a host dir / synced branch); the runtime gives it its own `:ro` bind. Skips gracefully (logs) when unset/absent. (✅ wired; auto-sync of the branch is a ⬜ follow-up.) * Code: `core/agent/control_plane/system_mounts.py` (`GLOBAL_SLUG`, `SYSTEM_SLUG`, `global_mount`, `system_mount`, `system_store_path`), the mount stack in `dispatch.py`, binds in `core/runtime/src/runtime_kernel/mounts.py:workspace_binds`. ## Tenant isolation — enforced by the substrate (✅ all three backends) The mount set is not just a declaration to the model — it is **the enforced boundary**. A worker's filesystem physically contains ONLY its dispatch's declared mounts; another tenant's workspace is not reachable, so a prompt injection cannot read or write it. Read-only roles (viewer shares, `_global`) are enforced at the mount, not just at the commit token. | Backend | Mechanism | | - | - | | **docker** | One bind per mount: a named-volume store rides the Mounts API's `VolumeOptions.Subpath` (**requires engine ≥ v26** — older engines fail the container create loudly); a host-path store joins the subpath (no version requirement). The whole-store root bind is never emitted. | | **k8s** | One `volumeMount` per mount against the single store PVC — native `subPath` + `readOnly` (no version caveat). | | **lite (process)** | POSIX: workers drop to a **per-subject uid** (`100000+id`), private/system tiers are `0700`-owned, each shared workspace gets its own **gid** (persisted registry, joined as a supplementary group), per-subject `HOME`/`TMPDIR`, and a **default-deny sweep** seals never-dispatched tenants' dirs on every apply. Unavailable conditions (non-root runtime, non-numeric subject) degrade **loudly** to shared-trust. | There is **no opt-out knob** — strict is the only mode. Known lite limitation: within a shared workspace, viewer-vs-contributor *write* gating stays at the commit layer (a POSIX group can't split read from write per member without ACLs); cross-tenant isolation is fully kernel-enforced. Code: `runtime_kernel/mounts.py` (`workspace_binds`, `k8s_volume_mounts`), `runtime_kernel/isolation.py` (the POSIX plan/apply), tests `test_mounts.py` + `test_isolation.py`. ## Personal + normal workspaces * **Personal is just a normal workspace** — no special rank. It's the workspace **auto-seeded at account creation** and shown as **"Personal"** in the UI; beyond that it activates/deactivates, reads/writes, and behaves exactly like any other normal workspace (✅). Switch it off and it leaves the active set — **its files drop from the finder** and the agent stops working in it, same as any workspace. Its tree still physically lives at `/` (the "seed slot" — a **storage detail, not a rank**); code resolves that path via `_seed_slot_slug` / `_slug_dir`. * 🟡 residual: **share/archive/delete of the seed slot are still refused** (you can't yet delete/ share the exact slot whose tree sits at `/`). Making Personal *fully* like others means relocating that tree out of the seed slot — a ⬜ follow-up (see Deferred). * **Provisioned eagerly on account creation** (✅): first login provisions BOTH Personal (light seed) and `_system` via `POST /api/workspace/init` (idempotent; the lazy first-dispatch seed remains a fallback). Wired from the terminal's `findOrCreateUserToken`. * **Light default seed** (✅): a new workspace seeds from the light `default` template (**not** FINOS — `DEFAULT_TEMPLATE`/`default_template` flipped), whose **`README.md` is a human onboarding-dashboard** ("what's in here and what matters"), not developer docs. Convention: **the README is every workspace's dashboard**, kept current by the agent (stated in the seed `CLAUDE.md`). FINOS stays an opt-in template (`VEXA_DEFAULT_TEMPLATE=finos`). * **First-view / landing** (✅, `firstView.ts` + `Workbench.resolveFirstView`) — on login the pinned first tab is chosen by what's shared: **nothing → own README-onboarding**, **shared workspace → that workspace's README**, **shared meeting → the meeting**, \*\*meeting + workspace → the workspace README * the meeting\*\* (its live badge). One resolver, replacing the old racing auto-opens. - A **just-accepted invite is explicit** and outranks a saved layout: it **pins the shared workspace's README AND forces the Knowledge section open** so the joiner actually sees the shared workspace's tree (`pinReadme(slug, forceKnowledge)`). **Gotcha handled:** the default Sessions view is *chat-only* (the dockview grid isn't mounted, so the resolver's `onReady` never fires) — an early effect un-chat-onlys the layout when a pending landing (`vexa.openWorkspace` / `vexa.openMeeting`) exists, so the grid mounts and the resolver runs. Without it an accepted invite silently dropped onto the session chat instead of the workspace. * **Normal workspaces are single rank** (sharing roles — see below). Created blank + additive; every workspace has a root `README.md`. * **Per-workspace PURPOSE** (✅, `workspace_purpose.py`) — the capability that makes the flat model *usable*. Each workspace carries a one-line statement of what it's **for / what the agent should write there**, stored as a plain `PURPOSE` file at the workspace root (committed to its git, so it **travels when the workspace is shared** — a member who mounts a `customer-deal` workspace inherits its purpose). The dispatcher reads each mount's purpose (`dispatch.py`) and `engine.mounts_preamble` declares it to the model with a routing instruction — so an agent with a *composition* mounted (Personal + a customer-deal shared ws + a sales-dept ws) **knows what belongs where** instead of dumping everything in one place. Editable in the manage panel (below); capped to a one-liner (`MAX_PURPOSE_LEN`) so it stays a cheap preamble line, not a document. **Why:** flat mounting is the *mechanism*; purpose is what keeps a multi-workspace mount set from becoming a junk drawer. ## Sharing model (Lane M — `workspace_membership.py`) **Single rank + creator (owner ruling 2026-07-07).** A shared workspace has one member rank; the `owner` is just the **creator**. Roles in the git store are still `owner`/`contributor`, but: * Invites mint a **read/write MEMBER** only — `INVITABLE_ROLES = ("contributor",)`; the read-only `viewer` tier is retained in the lattice for back-compat but is **not invitable** (✅). * **Any member can share** (mint/revoke invites) and read/write — `POST /api/workspace/invites` + `DELETE /api/workspace/invites/{id}` require `contributor`. * **Only the creator** (`owner`) can **unshare / remove members / change role** (`require_role("owner")`). → creator-only unshare/delete. * **DEFERRED DECISION:** whether to *also* offer an **owner-restricted invite mode** (only the creator invites) vs. keeping invites purely single-rank. Not decided; see `vexa-ops` handoff. **Two stores, written together** (git authoritative, index derived): * Authoritative: the workspace's own git repo — `policy/members.json` (`[{subject, role, added_by, added_at, email?}]`) + `policy/invites.json` (sha256 **hash** of each token * `{id, role, mode, allowed_emails, expires_at, max_uses, uses, revoked}`). * Index: `users.data.memberships[]` for "shared with me" — via the injected `MembershipIndex` (admin-api `/internal/users/{id}/memberships`; in-memory fake in tests). **Human roster — members show emails, not opaque ids** (✅). The participant list needs a human label, but `agent-api` has no user directory. Solution: **persist the gateway-verified `X-User-Email` into the member record at every grant point** — owner bootstrap (`ensure_owner`) and invite redeem (`accept_invite` → `grant_membership`). For **legacy** rows granted before this, `ws_members_list` **self-heals** by stamping the *requesting* member's own email onto their row the first time they open the manage panel (each member's email fills in on their next view). The email is committed to `members.json`, so it **travels with the workspace** to every member. **Why here (not `admin-api`/user.data):** the email is already in-hand on every request and only this store needs it — no cross-service directory lookup. **Access modes:** `open` (anyone-with-link, authenticated) or `restricted` (verified `X-User-Email` in `allowed_emails`). Redeem is **post-auth, no guest** — `POST /api/workspace/invites/accept`. **`policy/` is PLATFORM-WRITE-ONLY:** an agent turn may never write `policy/`; the worker's turn-commit reverts any `policy/` change (`_revert_policy_writes` → `{"type":"policy-reverted"}`). Membership is written only by `workspace_membership.policy_commit` (platform git identity). ## Joining a workspace — invite link → preview → consent → land (✅) The full path from an invite link to seeing the shared workspace. **Why a consent step:** joining mounts someone else's workspace into your agent — you should see *what it is* and *how you're joining* before committing, not silently get opted in. 1. **Mint** — a member creates an invite in the manage panel; the link is `…/?invite=`. 2. **Login** — `AuthGate` signs the user in first (the `?invite=` query survives the OAuth round-trip via the callback URL). **Consent is placed AFTER login** — the terminal's only path to `agent-api` is the **fail-closed gateway**, which 401s anonymous calls (the terminal has no service key), so a *pre-login* preview can't authenticate. `InviteGate` renders **inside** `AuthGate`'s authed subtree. 3. **Preview (no grant)** — `GET /api/workspace/invites/preview?token=` → `preview_invite` resolves the token to `{workspace_id, purpose, role, shared_by, mode, expires_at, valid}` **without** granting, consuming a use, or checking membership (capability-gated by the token; 404 if it matches nothing, so it never enumerates workspaces). Powers the consent card: **workspace name · purpose · your access · shared-by**. 4. **Consent → redeem** — "Continue to join" calls `POST …/invites/accept`, stashes `vexa.openWorkspace`, and reloads to a clean URL. "Not now" drops the invite. 5. **Land** — the first-view resolver pins the shared workspace's **README** and forces the **Knowledge** section open (see First-view above). Restricted invites still enforce `allowed_emails` at *accept* time — the preview only reveals name/purpose/ role to whoever already holds the token (the same trust boundary as the link itself). Code: `workspace_membership.preview_invite`, `api.py` (`ws_invite_preview`), `App.tsx` (`InviteGate`, `InviteConsent`). ## Managing a workspace — the manage panel (✅) Every workspace opens a **center-tab manage hub** (click the workspace name in the WORKSPACES sidebar). One place for everything about that workspace, so the sidebar row stays minimal (just a **checkbox** = mount/park + the **name** = open panel; the old per-row action icons were removed). `workspaceManage.tsx`: * **Rename** (display label) · **on/off** toggle (mount into the agent or park). * **PURPOSE** — view/edit the one-liner that steers what the agent writes here (see Per-workspace PURPOSE). * **GitHub** — publish (create repo + push), **push** / **pull** (fast-forward only, ahead/behind counts), Open-on-GitHub. Uses the saved GitHub token (below) so it doesn't re-prompt. * **Participants** — the roster (emails), **invite link**, **add by email**, remove member, **leave** (self), **unshare** (creator), **archive** / **delete**. Create flows are also panel/modal-based, not inline: **Attach repo** opens a portaled `Modal` (`ui-kit/Modal.tsx`); **New workspace** creates a blank additive workspace. Code: `clients/terminal/src/surfaces/workspaceManage.tsx`, `workspace.tsx` (sidebar rows), `ui-kit/Modal.tsx`. ## Reusable GitHub token (✅) Save a GitHub PAT **once** and reuse it for every git op across **all** repos, instead of re-entering it per push/pull/publish/attach. Set it in **API Tokens → GitHub**; the git-op forms then don't prompt. **Security model** (parity with the webhook secret — access-controlled, not encrypted at rest): * **Server-side only** — stored under the workspaces store root at `.secrets/.ghtoken` (`0600`, a dot-dir the workspace scanners skip, **outside any git tree** so it never lands in a commit). * **Browser-isolated** — never returned to the client; a read yields only a `••••abcd` mask. * **Never transits the gateway as a header** and never leaves the one service that uses it (smaller blast radius than routing it through `admin-api`/user.data — and no governed-service change). * **Applied then scrubbed** — git ops fall back to it when no per-call token is given; it rides the push URL for that op only, is **redacted from every error/log** (P15), and is never written to `.git/config`. * **Plaintext at rest** (the chosen level) → use a **minimally-scoped, revocable fine-grained PAT**; a stored PAT is password-equivalent and a full server compromise can use it. Code: `git_credentials.py` (`set`/`read`/`masked_github_token`), `api.py` (`GET`/`POST /api/workspace/git-token`; push/pull/publish/attach fallback), `tokens.tsx` (the card). ## Live collaboration (during a meeting) — all ✅ Meetings BIND to workspaces (`meetings.data.workspace_id`): a member of the bound workspace sees the meeting — the upcoming PLAN (planned meetings + auto-join + ICS calendar sync, 2026-07-08), the live feed, and the transcript. The user-facing story is `docs/docs/core/meetings.mdx` + `docs/docs/how-to/plan-a-meeting.mdx`; the prep tab is `clients/terminal/src/surfaces/meetingPrep.tsx`. A member's edits in a shared workspace surface live to the other members: * **One aggregated activity feed** — the SOURCE CONTROL panel merges commits across ALL active workspaces, recency-sorted, each labeled with its workspace (no per-workspace strips). Changed files are **clickable links** that open the doc. * **"New updates" badge on the Knowledge nav** — counts OTHER members' commits since Knowledge was last opened; polled always (even on Meetings/Sessions); clears on opening Knowledge. (`clients/terminal/src/surfaces/updatesBadge.ts` + the Workbench poll.) * **Live doc auto-reload** — an OPEN doc reloads (5 s poll) when a member edits it; an "Updated just now" banner + one-click **Changes** panel showing that file's latest highlighted diff. * **Attribution by EMAIL** — commits are authored as the human editor's email (`X-User-Email` stamped as the git author name; the synthetic `@vexa.local` stays for the you/member classification). `git_state_at(viewer)` classifies each commit `you` / `member` / `system`. * **Highlighted diffs** — `GET /api/workspace/git/show` returns a commit's unified diff; the UI renders `+`/`−` line highlighting. * **Cross-workspace file search** — Find-file spans every active workspace, not just the primary; hits are tagged with their workspace and open against the right mount. * **README auto-pinned** when a shared workspace connects — collaborators land on the doc. * **The 6 s poll is the accepted change-feed** (owner ruling) — no SSE push needed. Delivery mechanics: **Lane W** serialises the attributed writer per shared repo (`core/agent/shared/adapters.py workspace_write_lock`); note the flock is not yet on the live commit path (`dispatch.py` comment) — drive concurrent shared writes **sequentially** for now (⬜ to wire). ## Deferred / planned (documented, not built) * ⬜ **`_global` branch auto-sync** (currently a one-time clone). * ⬜ **Agent-proposed GitHub issues** — since `_global` carries the real repo, an agent that notices a user's feature request / bug should be able to **propose an issue** to the main repo (governed propose→approve→submit, author = principal). * ⬜ **Filesystem isolation** — today the whole store is bound once at `/workspaces`, so a turn can `cd ..` to other workspaces; per-mount binds are the fix (`workspace_binds`), decoupled as a presentation remap. (Security hardening for multi-tenant ship.) * ⬜ **Full seed-slot de-specialization** — relocate Personal's tree out of the fixed `/` seed slot into a normal store slot, so share/archive/delete work on it like any workspace (removes the last residual specialness; the rank is already gone). * ⬜ **Owner-restricted invite mode (deferred decision)** — whether to also offer creator-only invites. * ⬜ **At-rest encryption for the saved GitHub token** — today it's plaintext-at-rest (webhook-secret parity); envelope encryption with a server-held key would harden against DB/disk/backup leaks. * ⬜ **Routine can send a bot** (`routine.v1` gains a `target: agent|meeting`). * ⬜ **Chat migration (M1)** into `_system` (today `_system` holds `identity.md` + a README marker). * ✅ done since the last revision: **flat equal-rank model** (no baseline), **cwd follows the active set**, **light default seed + onboarding-dashboard README**, **first-view landing resolver**, **`_system` light identity**, **eager provision on account creation**, **per-workspace PURPOSE → mount preamble**, **the manage panel** (rename · on/off · GitHub · purpose · participants), **invite preview + post-login consent screen**, **participant roster shows emails (+ self-heal)**, **accepted invite lands on the shared README + Knowledge**, **reusable save-once GitHub token**, **minimal sidebar rows + attach-repo modal**. ## Related docs * `core/agent/control_plane/README.md` — Lane M membership/invites + the policy write-guard. * `core/agent/README.md` — the execution domain (dispatch, worker, contracts). * [Control plane](/architecture/control-plane) — control-plane boundary. * `core/agent/contracts/workspace.v1/` — the workspace git-repo contract. # Deployment Source: https://docs.vexa.ai/deployment Self-host Vexa with Docker Compose — no egress, with bring-your-own inference. Vexa runs **in your own environment** — open-source, self-hostable, and able to run with no egress. Data, recordings, and agent state stay on infrastructure you control. This page is the Docker Compose path; the other two supported shapes are [Vexa Lite](/deployment-lite) (one container, no Docker socket) and [Kubernetes](/deployment-kubernetes) (Helm, a Pod per bot). ## Quick start (Docker Compose) Prerequisites: a Linux host (Ubuntu 24.04) for production, **Docker engine ≥ v26** (agent workers mount each granted workspace as an isolated volume subpath — older engines fail worker creation; `make all` checks and refuses), `git`, `curl`. A Mac with Docker Desktop works for a local evaluation — everything runs in containers either way. Published `vexaai/v012-*` images include `linux/arm64` variants alongside `linux/amd64`, so Docker on Apple Silicon pulls arm64 where available — but the arm64 images are published **best-effort**: release CI currently validates only the amd64 images (no arm64 execution leg yet), so treat Apple Silicon as experimental. `vexaai/vexa-bot` remains amd64-only (the install pulls the published image; `make bot` builds a local `vexa/vexa-bot:dev` for development). For GPU transcription on Mac, point `TRANSCRIPTION_SERVICE_URL` at any OpenAI-compatible local endpoint (see [Configuration](/configuration)). ```bash theme={null} curl -fsSL https://get.docker.com | sh git clone https://github.com/Vexa-ai/vexa.git && cd vexa make all # full stack via Docker Compose — each service in its own container make bot # build the meeting bot FROM SOURCE — required before a bot can join a meeting ``` `make all` seeds `.env` from `.env.example`, mints the secrets the services refuse to boot without (`INTERNAL_API_SECRET`, `VEXA_FLOWS_API_KEY`, `VEXA_FLOWS_TIMELINE_KEY` — a value you already set is kept), brings the stack up, and **prints an API key plus the service URLs** when it's done. The **meeting bot is built from source** (`make bot`), **not pulled** — the published `vexaai/vexa-bot:dev` on Docker Hub is the older 0.10 line and is **not compatible** with this stack's `lifecycle.v1` (bots reach `joining` then fail). `make all` warns loudly if the bot image is missing. For a transcript, set a **transcription (STT) token** in `.env` (`TRANSCRIPTION_SERVICE_TOKEN`) — get one at `vexa.ai/account`, or self-host the transcription service on a GPU so the audio path never calls out. The API is then at `http://localhost:18056` (the gateway) and the terminal web workbench at `http://localhost:13000`. **Don't have a key yet?** Hosted: sign in at [vexa.ai/signin](https://vexa.ai/signin) with a Google account and copy your key from [your account page](https://vexa.ai/account) — free credit, no card required. Self-hosted: `make all` prints a key when the stack comes up. ## The stack | Service | Role | | - | - | | **gateway** (`:18056`) | the one front door — auth, scopes, routing | | **admin-api** | users + API keys | | **meeting-api** | bots, transcripts, **recordings** (to object storage) | | **runtime** | spawns bot + agent **containers** on demand (via the Docker socket) | | **agent-api** | the [agent control plane](/api/agent) — dispatch, chat, routines, events | | **terminal** (`:13000`) | the web workbench — proxies `/ws` → gateway and REST/login → agent-api/admin-api | | redis (Valkey) · postgres · **storage** (versitygw) | bus + scheduler · metadata · recordings, stored as plain files in the `storage-data` volume | The **bot is not a long-running service** — the [runtime](/core/runtime) spawns a browser container per meeting (`BROWSER_IMAGE`) and an agent container per dispatch (`AGENT_IMAGE`), then reaps them. The `BROWSER_IMAGE` is **built from source** here (`make bot`) and the runtime spawns it **without pulling** — so it must exist locally before any bot can join (build it once; `make all` checks and warns if it's absent). ## Configuration * **Transcription (STT)** — `TRANSCRIPTION_SERVICE_URL` / `TRANSCRIPTION_SERVICE_TOKEN`. Unset → default `POST /bots` answers **503** (refuse loud). Capture-only: set `TRANSCRIBE_ENABLED=false` or pass `{"transcribe_enabled": false}` on the spawn. See [Configuration](/configuration#transcription-stt). * **Object storage** — the `storage` service runs versitygw (`versity/versitygw`, Apache-2.0, pinned by tag and digest), an S3 server whose POSIX backend keeps every recording as a plain file in the `storage-data` volume. meeting-api reaches it over S3 with the `MINIO_*` settings (the variable names are unchanged): `MINIO_ENDPOINT=storage:9000`, and `MINIO_ACCESS_KEY` / `MINIO_SECRET_KEY` are the server's root credentials, so change both before exposing the stack. The one-shot `storage-init` ensures the bucket exists and verifies a PUT/GET/DELETE probe under `.vexa-storage-init/` before meeting-api starts. The storage S3 port is published on loopback only, at `STORAGE_HOST_PORT` (default `18900`). To keep recordings in your own S3 instead, point `S3_ENDPOINT` (or `MINIO_ENDPOINT`) at it; the same readiness check applies ([Configuration](/configuration#database-storage)). Back the volume up with an attribute-preserving copy ([Recordings → Backups](/how-to/recordings#backups)). Upgrading a stack that ran MinIO: old recordings stay in the old volume and do not play back from the new storage until copied with `make -C deploy/compose migrate-storage`. Update the old `.env` endpoint as described in [Where your recordings live now](/upgrade-from-minio). * **Agent inference** — bring your own: point the agent at your endpoint so no inference leaves the network (`VEXA_AGENT_MODEL` / mounted credentials). * **Secrets** — `ADMIN_TOKEN`, `INTERNAL_API_SECRET`, DB credentials. Set real values before exposing. ## Transcription (the separate GPU unit) Speech-to-text is the one **GPU workload**, so it is **carved out** of the main stack: `make all` runs GPU-free and anywhere, and the STT service is its own deploy unit at [`deploy/transcription`](https://github.com/Vexa-ai/vexa/tree/main/deploy/transcription) ([`core/meetings/services/transcription`](https://github.com/Vexa-ai/vexa/tree/main/core/meetings/services/transcription) is the brick — faster-whisper / CTranslate2 behind an OpenAI-compatible `/v1/audio/transcriptions`). Language is detected per transcription window and stamped on each segment; force a single language via the bot request's `language` (see [Send a bot](/how-to/send-a-bot)). Stand it up wherever a GPU lives (the same host or a dedicated GPU box): ```bash theme={null} cd deploy/transcription cp .env.example .env # set MODEL_SIZE, API_TOKEN, TRANSCRIPTION_LB_PORT docker compose up -d # GPU (needs nvidia-container-toolkit) # no GPU? CPU variant (slower, use a smaller model): docker compose -f docker-compose.cpu.yml up -d curl http://localhost:8083/health # waits on the model load ``` Then point the main stack at it in `deploy/compose/.env`: ```bash theme={null} TRANSCRIPTION_SERVICE_URL=http://:8083 # base URL; client appends /v1/audio/transcriptions TRANSCRIPTION_SERVICE_TOKEN= ``` **Which model id goes where:** the stack sends `TRANSCRIPTION_MODEL` as the OpenAI-compatible `model` field on every request (unset → `whisper-1`). The **bundled unit ignores it** — pick its model with the unit's own `MODEL_SIZE`. Backends that **validate** the field need the right id: **Groq** → `whisper-large-v3-turbo`, **OpenAI** → `whisper-1` / `gpt-4o-transcribe`, **vLLM/LiteLLM** → the exact served model name. Any OpenAI-compatible `/v1/audio/transcriptions` endpoint works: set `TRANSCRIPTION_SERVICE_URL` to its base URL, `TRANSCRIPTION_SERVICE_TOKEN` to its key, and `TRANSCRIPTION_MODEL` to the id it expects. Now bots transcribe end-to-end: **bot → transcription service → segments → meeting-api `collector` → live fan-out**. Scale by adding workers (one GPU each) in the unit's `docker-compose.yml` + `nginx.conf`. ## Publishing behind a reverse proxy `make all` binds every service to `127.0.0.1` (loopback only). To expose the **terminal** at a public hostname, put a TLS-terminating reverse proxy in front of the terminal port (`TERMINAL_PORT`, default `13000`) and tell the terminal its public origin so auth cookies and OAuth callbacks are correct: ```bash theme={null} # deploy/compose/.env NEXTAUTH_URL=https://your-host.example.com NEXTAUTH_SECRET= # don't ship the dev default ``` An nginx vhost (the terminal proxies `/ws` to the gateway itself, so the proxy only needs standard WebSocket-upgrade headers): ```nginx theme={null} server { listen 443 ssl; server_name your-host.example.com; ssl_certificate /etc/letsencrypt/live/your-host.example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/your-host.example.com/privkey.pem; location / { proxy_pass http://127.0.0.1:13000; # TERMINAL_PORT proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Upgrade $http_upgrade; # terminal /ws → gateway proxy_set_header Connection "upgrade"; proxy_read_timeout 86400; } } ``` If you publish the **gateway** (`:18056`) through a reverse proxy, set `GUARD_TRUSTED_PROXIES` to the proxy's IP and have the proxy forward the real client IP. The edge guard is **on by default**, so this applies unless you have explicitly opted out: ```nginx theme={null} proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; ``` Without it, every request keys to the proxy IP — one global rate-limit/ban bucket shared by all clients, so one abuser throttles everyone. The gateway honors the `X-Forwarded-For` chain only from an IP named in `GUARD_TRUSTED_PROXIES` (it reads the rightmost entry); a spoofed header from any other source is ignored, so it cannot rotate an abuser's budget. See [Configuration → Gateway edge protection](/configuration#gateway-edge-protection). The terminal carries its own Google/Microsoft OAuth login, so the proxy needs no auth of its own. ## No egress Everything runs inside your perimeter: gateway + services + redis/postgres/storage on your host, the [transcription unit](#transcription-the-separate-gpu-unit) on your own GPU or CPU, **BYO inference**, recordings in your object storage. A bundled STT unit means the audio path never calls out — the posture the regulated verticals ask for. We have not run an install on a genuinely disconnected network, so we do not claim one: what a procurement review can hold us to is self-hosted with no egress, not a certified air gap. On **Kubernetes** the chart does not yet expose `TRANSCRIPTION_MODEL` as a value — see [No-egress clusters](/deployment-kubernetes#no-egress-clusters). # Kubernetes (Helm) Source: https://docs.vexa.ai/deployment-kubernetes Deploy Vexa on Kubernetes or OpenShift with the Helm chart — a Pod per bot and per agent, scalable to thousands of users. The Helm chart at [`deploy/helm/charts/vexa`](https://github.com/Vexa-ai/vexa/tree/main/deploy/helm) deploys the same control plane as the Compose stack, with the runtime pointed at the cluster: `RUNTIME_BACKEND=k8s` makes **every bot and every agent dispatch its own bare Pod** (`restart: Never`), so capacity is your cluster's scheduler — not a bigger box. ## What the chart deploys | Component | Form | | - | - | | gateway · admin-api · meeting-api · agent-api · runtime | Deployments (RollingUpdate, `maxUnavailable: 0`) | | terminal (web workbench) | Deployment + ingress | | postgres | StatefulSet (or point values at your managed DB) | | redis (Valkey) | Deployment | | object storage | **not deployed** — recordings go to your own S3 bucket ([`storage.s3`](#object-storage), required) | | DB migrations | Job | | pgbouncer | optional connection pooling | | dashboard (deprecated 0.10 UI) | optional Deployment + Service, **off by default** | | RBAC for the k8s spawn backend | Role/RoleBinding scoped to Pod create/watch/delete | The chart sets no pod security context by default and the service images run as root; set `global.podSecurityContext` / `global.securityContext` to run as a non-root UID. Containers have all capabilities dropped, with PodDisruptionBudgets on the control plane and rolling updates that never take the last replica down. ## Install Create the bucket first (the chart never creates one) and a Secret holding a key pair for it, then install with the bucket in `storage.s3`: ```bash theme={null} git clone https://github.com/Vexa-ai/vexa.git && cd vexa kubectl create namespace vexa kubectl -n vexa create secret generic vexa-s3 \ --from-literal=AWS_ACCESS_KEY_ID='' \ --from-literal=AWS_SECRET_ACCESS_KEY='' helm install vexa deploy/helm/charts/vexa -n vexa \ --set secrets.internalApiSecret="$(openssl rand -hex 32)" \ --set secrets.adminApiToken="$(openssl rand -hex 32)" \ --set secrets.dispatchSigningKey="$(openssl rand -hex 32)" \ --set secrets.nextauthSecret="$(openssl rand -hex 32)" \ --set storage.s3.endpoint=https://s3.eu-central-1.amazonaws.com \ --set storage.s3.bucket= \ --set storage.s3.existingSecret=vexa-s3 ``` Keep these four secret values: every later `helm upgrade` must pass the same ones (or use `--reuse-values`). `values-staging.yaml` and `values-test.yaml` show environment overlays. Chart tests (`helm lint` + template tests) live under `deploy/helm/tests/`. **Don't have a key yet?** Hosted: sign in at [vexa.ai/signin](https://vexa.ai/signin) with a Google account and copy your key from [your account page](https://vexa.ai/account) — free credit, no card required. Self-hosted: `make all` prints a key when the stack comes up. ### Is this install actually working? — `make probe SURFACE=helm` The standing full-journey smoke probe drives spawn → schedule → boot → join → transcribe → live-view → stop through the gateway front door, then sweeps every deployment's logs once. Each stage prints Expected / Actual / Verdict; a red stage names where the journey broke and fails the command, so you get a truthful install verdict in minutes with no meeting and no humans. ```bash theme={null} make probe SURFACE=helm # port-forwards gateway + admin-api GATEWAY_URL=http://: make probe SURFACE=helm # or drive a NodePort directly ``` It mints its API key from the release secret's `ADMIN_API_TOKEN` (or pass `VEXA_API_KEY`). The same journey runs on the other surfaces: `make probe` (compose, the fast default) and `make probe SURFACE=lite`. ## Object storage meeting-api stores recordings in **your** bucket, on AWS S3 or any S3-compatible service. The chart runs no object store of its own and has no fallback to storage inside a pod: until `storage.s3` names an endpoint, a bucket and a Secret, `helm install`, `helm upgrade` and `helm template` refuse to render and name the missing values. Use an `https://` endpoint for any store outside the cluster. The bucket must not allow anonymous (public) read or list access. ```yaml theme={null} storage: s3: endpoint: https://s3.eu-central-1.amazonaws.com # a full URL, https:// or http:// bucket: my-vexa-recordings # must already exist region: eu-central-1 # default us-east-1 existingSecret: vexa-s3 # in the release namespace ``` | Value | Default | Meaning | | - | - | - | | `storage.s3.endpoint` | required | The S3 endpoint, as a full URL. | | `storage.s3.bucket` | required | An existing bucket. meeting-api writes recordings under `recordings/`, and bots' captured-signal tapes, when bots upload them, under `signal/`. | | `storage.s3.existingSecret` | required | A Secret holding the access key pair. Credentials are never chart values. | | `storage.s3.accessKeyIdKey` · `secretAccessKeyKey` | `AWS_ACCESS_KEY_ID` · `AWS_SECRET_ACCESS_KEY` | The key names inside that Secret. | | `storage.s3.region` | `us-east-1` | The signing region. | | `storage.s3.forcePathStyle` | `true` | `true` sends path-style requests (`https://host/bucket/key`); `false` sends virtual-hosted ones (`https://bucket.host/key`), which need DNS for `bucket.host`. | | `storage.s3.caBundle.configMapName` or `.secretName`, and `.key` | unset, `ca.crt` | A private CA for an `https://` endpoint: a ConfigMap or a Secret in the namespace, not both. It replaces the default trust store for S3 calls. On OpenShift, a ConfigMap labelled `config.openshift.io/inject-trusted-cabundle=true` receives the cluster's trusted bundle under the key `ca-bundle.crt`. | The key pair needs to list the bucket and to read, write and delete objects in it. meeting-api's `/health` reports `object_storage` as configured once the Secret's two keys are set; it does not check that they work. Credentials the store rejects surface when a recording is written or played back: the API answers `500` (not `404`), and meeting-api's log names the S3 error, such as `SignatureDoesNotMatch`. Set these values here, not through `meetingApi.extraEnv`: the chart refuses to render when `extraEnv` sets one of the chart's storage variables or an AWS override of the mounted client config (see [Configuration](/configuration#object-storage-on-kubernetes)). ### Upgrading from the built-in MinIO Earlier versions of this chart ran MinIO beside the stack by default (`minio.enabled: true`). The chart no longer includes it: MinIO's images can no longer be pulled, so those installs cannot start again as they were. A values file that still sets `minio.enabled: true` is refused with a link to these steps. 1. **Create the bucket and the Secret** in your S3, as in [Install](#install). 2. **Copy the objects while the old release still runs**, with any S3 tool. With the AWS CLI through a port-forward: ```bash theme={null} kubectl -n vexa port-forward svc/vexa-vexa-minio 9000:9000 & AWS_ACCESS_KEY_ID=vexa-access-key AWS_SECRET_ACCESS_KEY=vexa-secret-key \ aws --endpoint-url http://127.0.0.1:9000 s3 sync s3://vexa ./vexa-objects AWS_ACCESS_KEY_ID='' AWS_SECRET_ACCESS_KEY='' \ aws --endpoint-url https://s3.eu-central-1.amazonaws.com s3 sync ./vexa-objects s3:// ``` The old credentials and bucket are your `minio.accessKey`, `minio.secretKey` and `minio.bucket` (`vexa-access-key`, `vexa-secret-key` and `vexa` unless you changed them); Service and PVC names carry your release name (`-vexa-minio`). Keep every key as it is — recordings are found by key, and the new bucket's name does not matter. `s3 sync` copies only what changed, so run both commands again just before the upgrade to pick up recordings made in between. Run the final `s3 sync` commands and `helm upgrade` while nothing is recording (no bot in a meeting). Chunks written after the final sync stay only on the retained MinIO volume. 3. **Upgrade** with `storage.s3` set and `minio` removed from your values: ```bash theme={null} helm upgrade vexa deploy/helm/charts/vexa -n vexa -f my-values.yaml ``` `--reuse-values` keeps the previous chart's defaults, including `minio.enabled: true`; with it, also pass `--set minio.enabled=false`. If you pointed meeting-api at your own S3 through `meetingApi.extraEnv`, move those settings into `storage.s3`. Anything else aimed at the old MinIO Service, such as `meetingApi.botS3Endpoint` for [authenticated bots](/authenticated-bots), needs a new endpoint. 4. **Play back an old recording**, then clean up. The upgrade deletes the MinIO StatefulSet and its Service, but not the data: the PVC `data-vexa-vexa-minio-0` was created by the StatefulSet, not by Helm, so Helm does not delete it. It stays bound, with the old objects on it, mounted by nothing. The completed bucket Job `vexa-vexa-minio-init` stays too: it was a Helm hook, and Helm does not delete a hook the chart no longer declares. Delete both when you no longer need them (`kubectl -n vexa delete job vexa-vexa-minio-init`, `kubectl -n vexa delete pvc data-vexa-vexa-minio-0`); with most storage classes, deleting the PVC also deletes the volume. Remove the local recording copies with `rm -rf ./vexa-objects`. `helm rollback` to the MinIO-era revision recreates the StatefulSet, which attaches the retained PVC again and serves the objects on it — provided the MinIO images that revision names can still be pulled. Recordings made after the upgrade are in your bucket, not on that volume. ## The runtime on Kubernetes The runtime kernel owns one `runtime.v1` lifecycle (`starting → running → stopping → stopped → destroyed`) and delegates only the substrate question — *how do I start, observe, and stop a workload?* — to the backend. On `k8s`, a workload is a bare Pod; the same dispatch, contracts, and worker run identically to the Docker backend. See [Execution](/architecture/execution). ### Scheduling spawned Pods on a tainted / dedicated pool A spawned bot or agent Pod is created with `kubectl run` — it is **not** a child of the runtime Deployment, so it does **not** inherit `global.nodeSelector` / `global.tolerations`. On a cluster whose nodes are all tainted (the standard pool-segregation pattern — dedicated, spot/temp, or GPU node pools), a spawned Pod with no tolerations sits `Pending` forever (`untolerated taint(s)`) and the meeting silently fails while the runtime itself — a Deployment that *does* apply those constraints — looks healthy. The chart closes this by handing the runtime its **own** scheduling constraints as env, which the spawn backend stamps onto every Pod it creates: | Env on the runtime | Chart source | Applied to | | - | - | - | | `RUNTIME_K8S_TOLERATIONS` | `runtime.tolerations` ⟶ defaults to `global.tolerations` | every spawned Pod's `spec.tolerations` | | `RUNTIME_K8S_NODE_SELECTOR` | `runtime.nodeSelector` ⟶ defaults to `global.nodeSelector` | every spawned Pod's `spec.nodeSelector` | By default a spawned Pod schedules **wherever the runtime itself can** — set `global.tolerations` / `global.nodeSelector` for your pool and both the runtime and everything it spawns land there, with no extra action: ```yaml theme={null} global: tolerations: - key: vexa.ai/pool operator: Equal value: main effect: NoSchedule nodeSelector: vexa.ai/pool: main ``` Set `runtime.tolerations` / `runtime.nodeSelector` only to send spawned workloads to a **different** pool than the kernel (e.g. GPU bots). Both values are serialized to JSON; malformed JSON fails the spawn loudly rather than dropping the constraint (a dropped constraint is the stranded-Pod bug). > [!WARNING] > > **Spawned-workload commands must exist in the target image under k8s (entrypoint-replace) > semantics.** A runtime profile may carry a `command`; the k8s backend passes it as > `kubectl run --command -- …`, which **replaces** the image `ENTRYPOINT` (it becomes the Pod's > `argv[0]`). So a command path that is not present in the image `StartError`s **every** spawn on > k8s — even though the Docker backend, which *appends* the command to the entrypoint as arguments, > silently ignores the same bad path. The meeting-bot profile therefore carries **no** command: the > bot image's own `ENTRYPOINT` (`/app/entrypoint.sh`) boots it on every backend. At release time an > image↔profile conformance gate (`image-identity`) asserts each profile command is either empty or > an in-image executable against the published images, so a profile that diverges from its image > fails the release rather than a customer's install. ### Autoscaling and bot bursts — the fresh-node reachability gate Because every bot is its own bare Pod, a burst of meeting requests can push the cluster autoscaler to add nodes, and bots get scheduled onto them the moment they report `Ready`. But a brand-new node's network can take up to a few minutes to fully converge *after* `Ready` — the CNI/NetworkPolicy programming, kube-proxy, and DNS warmup all lag node readiness. A bot scheduled into that window can find its control plane (its meeting-api callback URL and redis) unreachable on its first outbound hop. The bot handles this with a **pre-join reachability gate**: it makes its first `joining` lifecycle emit load-bearing. If the meeting-api callback is reachable (any HTTP response), it joins immediately — zero added latency. If not, it probes redis; **if either channel is up it proceeds** (it can still report), and **only if both are down does it refuse to join**, terminating fast (\< a few seconds) with: * **Pod exit code `3`** — the attributable terminal signal (`kubectl describe pod ` → `Last State: Terminated, Exit Code: 3`). Distinct from a real join failure (exit `1`). * a `failed` lifecycle event carrying `failure_stage: requested` and `infra_fault: control_plane_unreachable` on whichever channel recovers (often none — the exit code is the signal). This converts an opaque CrashLoop / stuck-`requested` meeting into a fast, attributed failure an operator can read in one `kubectl describe`. See [Troubleshooting → exit code 3](/troubleshooting). **What stays cluster-side (not solved by the gate):** the node-readiness window itself. Consider pre-pulling the bot image onto new nodes (a cold pull can itself take minutes and mask the network window), and treat node `Ready` as insufficient for scheduling network-dependent work — the gate fails fast and, on k8s, the exit lets the operator (or an autoscaler policy) reschedule onto a warmed node. ## Scaling meeting-api `meetingApi.replicaCount` defaults to `2`, and that is safe for the segment consumer. Each replica now joins the `transcription_segments` consumer group under a **per-pod identity** (`collector-`, overridable with `COLLECTOR_CONSUMER_NAME`), and a surviving replica periodically `XAUTOCLAIM`s a crashed replica's un-acked segment batch and drains it through the normal persist path — so no transcript segments are orphaned when a pod dies mid-batch. The reclaim only fires once a batch has idled past `COLLECTOR_RECLAIM_MIN_IDLE_MS` (default `60000`), so a live peer's in-flight batch is never stolen. `/health` exposes `pipeline.pending_depth` (the group's delivered-but-un-acked count) alongside `pipeline.consumer_lag`, and degrades to `503` once it exceeds `PIPELINE_PENDING_ALARM` (default `100`) — a stuck batch is a reportable state, not a silent stall. A pod's hostname changes on **every recreate** (a rolling deploy, a pod restart, a compose `--force-recreate`), so each new container joins `collector_group` under a **new** `collector-` and the old name is left behind. Those abandoned consumers hold no pending entries (they read their last message and acked it), so they are harmless to correctness — but left unchecked the group fills with dead names that inflate operator `XINFO CONSUMERS` reads and muddy `/health`. The same reclaim sweep now **prunes** them: any consumer with `pending == 0` that has idled past `COLLECTOR_CONSUMER_TTL_MS` (default `1800000`, 30 min — well above the reclaim idle gate, so a briefly-quiet live replica is never touched) is removed with `XGROUP DELCONSUMER`. A consumer holding an in-flight batch (`pending > 0`) is **never** pruned, and the running replica never prunes itself; a live consumer re-registers on its next `XREADGROUP`, so the prune is idempotent and self-healing. Reading `XINFO CONSUMERS collector_group` should therefore list only the replicas that actually exist — dead `collector-` names are expected to disappear within a sweep of the TTL. For k8s you can eliminate the churn at the source by pinning a stable per-replica identity via `COLLECTOR_CONSUMER_NAME` (e.g. a StatefulSet ordinal) so a restart re-uses the same consumer. > [!NOTE] > > **Every surface now ships Valkey 8.x**, which has `XAUTOCLAIM` — so orphan reclaim is active > everywhere Vexa ships, including Vexa Lite (compose, helm, and Lite all run Valkey, the Linux > Foundation BSD-3 fork of Redis 7.2.4; see [the changelog](/changelog) and #653). Reclaim, per-pod > identity, and ghost-consumer pruning all work on the shipped stack. Check yours with > `valkey-server --version`. > > The degradation path below still exists as a safety net for a *bring-your-own* backing store older > than the floor: on a Redis/Valkey without `XAUTOCLAIM` the reclaim disables itself and logs once at > startup; everything else (normal `XREADGROUP` consumption, `pending_depth`) is unaffected. The cost > is narrow but real — if a replica dies mid-batch on such a store, that batch stays pending instead of > being drained by a peer, so run a single replica or move to a store with `XAUTOCLAIM` (Redis ≥ 6.2 / > Valkey ≥ 7.2). Ghost-consumer pruning degrades the same way: if the backing store rejects `XINFO > CONSUMERS`, the prune logs once and no-ops, leaving the consume path untouched. ## In-cluster self-addressing Under Helm the meeting-api Service is release-qualified (`-vexa-meeting-api`), not the bare `meeting-api` that the Compose stack uses. So the chart sets `MEETING_API_URL` explicitly on the meeting-api deployment to `http://-vexa-meeting-api:8080` — the address a spawned bot calls back on for its lifecycle callback and recording upload. Left unset it would fall back to the compose-only default `http://meeting-api:8080`, which does not resolve in-cluster. The chart sets the same address as `VEXA_MEETING_API_URL` on the **agent-api** deployment. Before opening a live-transcript SSE stream (`GET /api/meeting/stream`), agent-api verifies the caller owns the meeting by calling `GET /meetings/{id}` on meeting-api, and **fails closed** — an unreachable meeting-api returns `403 "not authorized for this meeting"` for the meeting's own owner. Left unset it would fall back to the compose-only `http://meeting-api:8080`, so the owner sees a permanent "Reconnecting to live stream…" instead of streaming words. The chart likewise sets `ADMIN_API_URL` on the meeting-api deployment to `http://-vexa-admin-api:8001` (mirroring Compose's `ADMIN_API_URL=http://admin-api:8001`). This is **required** for two background loops: calendar sync (discovering each user's connected ICS feed through admin-api's internal edge) and capped auto-join (fetching the per-user max-bots cap for every scheduled-meeting spawn). With `ADMIN_API_URL` unset, calendar sync no-ops and the auto-join sweep cannot resolve the per-user cap. The meeting-api then **fails closed and refuses to spawn** rather than spawn uncapped; set `AUTO_JOIN_ALLOW_UNCAPPED=1` only if you deliberately want uncapped auto-join spawns on a self-host. ## Exposing the cluster — ingress and TLS The chart ships an optional Ingress, **off by default**. Enabling it fronts the Terminal, which is the human entry point: it proxies `/ws` to the gateway and `/api` to agent-api/admin-api server-side, so one hostname is usually enough. ```yaml theme={null} ingress: enabled: true className: nginx # your controller's IngressClass host: vexa.example.com annotations: cert-manager.io/cluster-issuer: letsencrypt-prod tls: - secretName: vexa-tls hosts: - vexa.example.com ``` `tls` is passed through to the Ingress `spec.tls` verbatim, so it is ordinary Kubernetes TLS — the chart neither issues nor terminates certificates itself. Either let cert-manager populate `secretName` via the annotation above, or create the Secret yourself: ```bash theme={null} kubectl -n vexa create secret tls vexa-tls --cert=fullchain.pem --key=privkey.pem ``` `annotations` are rendered onto the Ingress unchanged, which is also where controller-specific settings go — body size, proxy timeouts, and the long-lived-connection settings a WebSocket upgrade needs on `/ws`. ### Exposing the raw API as well `paths` defaults to a single rule sending `/` to the Terminal on port 3000. Add a second rule if external clients should reach the gateway directly: ```yaml theme={null} ingress: # the same `ingress:` key as above — one block, not two enabled: true className: nginx host: vexa.example.com paths: - path: / pathType: Prefix service: terminal servicePort: 3000 - path: /api pathType: Prefix service: gateway servicePort: 8000 ``` A path entry that omits `service` defaults to the gateway. ### Tell the Terminal its external origin Enabling the Ingress is not sufficient on its own. `terminal.publicUrl` is empty by default — correct for cluster-internal or `port-forward` access — and it is what sets `NEXTAUTH_URL` and `TERMINAL_URL`. Left empty behind a public hostname, cookie security and the OAuth callback are computed against the wrong origin: ```yaml theme={null} terminal: publicUrl: https://vexa.example.com ``` ### Sign-in providers — Google and Microsoft The Terminal's Google and Microsoft buttons each self-gate on their own credentials: set **both** the client id and the client secret and that button appears; leave either empty and it stays hidden. The chart has no dedicated fields for them — pass them through `terminal.extraEnv`, which is rendered onto the Deployment verbatim, so `valueFrom` works where a literal would put a secret in your values file: ```yaml theme={null} terminal: # the same `terminal:` key as above — one block, not two publicUrl: https://vexa.example.com extraEnv: - name: MICROSOFT_CLIENT_ID value: "" - name: MICROSOFT_CLIENT_SECRET valueFrom: secretKeyRef: { name: vexa-oauth, key: microsoft-client-secret } # "common" = work/school + personal; or a single org tenant id. Unset ⇒ common. - name: MICROSOFT_TENANT_ID value: "common" # Google is the same shape, minus the tenant: - name: GOOGLE_CLIENT_ID value: "" - name: GOOGLE_CLIENT_SECRET valueFrom: secretKeyRef: { name: vexa-oauth, key: google-client-secret } ``` Register the redirect URI in the provider console as `/api/auth/callback/microsoft` (or `.../google`) — so `terminal.publicUrl` above is a prerequisite, not an optional extra. > [!NOTE] > > Without an Ingress the Services stay cluster-internal. `helm install` alone does not expose Vexa — > reach it with `kubectl port-forward` during evaluation, or enable the Ingress above. ## The deprecated dashboard (optional) The 0.10 dashboard — the multi-user web UI that predates the Terminal — ships as an **off-by-default** component while it is still load-bearing: hosted production runs it against the 0.12 core, and the authenticated-session flows are only walkable through it today. Enable it explicitly: ```bash theme={null} helm upgrade --install vexa deploy/helm/charts/vexa -n vexa \ --set dashboard.enabled=true \ --set dashboard.publicUrl=https://dashboard.example.com \ --set dashboard.publicApiUrl=https://api.example.com ``` It runs the pinned external image `vexaai/dashboard` on its own tag — `global.imageTag` does not apply to it — and talks to the gateway's hosted-compat surface. It is **deprecated**: when the Terminal covers its remaining flows, the component is deleted, not ported. On Compose the same option is `docker compose --profile dashboard up -d` (port 13001). ## Honest status The k8s backend **lifecycle and the workspace mount are implemented** (the workspace store binds into each worker Pod as a PVC, scoped per-mount). The Compose stack is the path with the most production mileage today; the chart is the right starting point for a cluster evaluation — track the [status page](/roadmap/status). ## No-egress clusters Everything the chart deploys pulls from images you build and host in your own registry; pair it with the [self-hosted transcription unit](/deployment#transcription-the-separate-gpu-unit) — bundled GPU or CPU — and your own LLM endpoint ([Configuration](/configuration)) so the audio path never calls out. See [Security & compliance](/security-compliance). **One gap on this path, and it is this chart's:** `TRANSCRIPTION_MODEL` is **not values-plumbed** — set it on the meeting-api and terminal Deployments via `extraEnv` until it lands, which the chart's own [known boundaries](https://github.com/Vexa-ai/vexa/blob/main/deploy/helm/README.md) state. Compose and Lite plumb it as a first-class setting. So no egress is ✅ on **Compose and Lite** and 🟡 **here**. We have not run an install on a genuinely disconnected network, so we do not claim one: what a procurement review can hold us to is self-hosted with no egress, not a certified air gap. # Vexa Lite (single container) Source: https://docs.vexa.ai/deployment-lite The whole control plane in one container — process runtime backend, no Docker socket, two datastore sidecars. Vexa Lite packs every control-plane service into a single image (`vexaai/vexa-lite`) and runs bots and agent workers as **in-container processes** (`RUNTIME_BACKEND=process`) — no Docker socket, no per-bot containers. Two sidecars carry state: Postgres and the recordings storage (versitygw, an S3 server that keeps each recording as a plain file in a volume). Lite is one of the three supported deploy paths (lite · [compose](/deployment) · [Kubernetes](/deployment-kubernetes)) and ships from the same images and contracts. ## Quick start ```bash theme={null} git clone https://github.com/Vexa-ai/vexa.git && cd vexa make lite ``` `make lite` (= `make -C deploy/lite all`) writes a minimal `.env` if you don't have one, pulls `vexaai/vexa-lite:$IMAGE_TAG` (default `v012`; a locally built `vexa-lite:dev` wins when present), starts the `vexa-lite-postgres` and `vexa-lite-storage` sidecars on the `vexa-lite-net` Docker network, boots the app container, waits on the gateway health endpoint, and probes the three front doors, giving each up to two minutes to answer (on first boot the terminal restarts once the self-host key is minted): | Front door | Port | | - | - | | **gateway** — the public REST API | `8056` | | **terminal** — the workbench UI | `3001` | | **agent-api** — the agent control plane (reached directly, not via the gateway) | `8100` | On first boot Lite mints its own credentials — a `self-host@vexa.ai` user and `bot,tx`-scoped API keys — and hands them to the terminal, so `http://localhost:3001` opens signed in. Set `VEXA_API_KEY` in `.env` to bring your own key and skip the minting. **Don't have a key yet?** Hosted: sign in at [vexa.ai/signin](https://vexa.ai/signin) with a Google account and copy your key from [your account page](https://vexa.ai/account) — free credit, no card required. Self-hosted: `make all` prints a key when the stack comes up. Transcription needs a backend: point `TRANSCRIPTION_SERVICE_URL` / `TRANSCRIPTION_SERVICE_TOKEN` at a [transcription unit](/deployment#transcription-the-separate-gpu-unit), or run the bundled CPU sidecar: ```bash theme={null} # CPU Whisper (faster-whisper tiny.en, English-only) on :8083 — for trying it, not for real meetings make -C deploy/lite up LOCAL_STT=1 make -C deploy/lite stt-smoke # synthesizes speech in a container, asserts a transcript comes back ``` Without a transcription backend, bots join and capture but produce no text — a default `POST /bots` answers `503` unless the spawn opts out ([capture-only](/how-to/send-a-bot#capture-only-no-stt)). ## What's in the container One supervisord tree runs the services a compose deployment spreads across containers: | Program | Role | | - | - | | **gateway** (`:8056`), **terminal** (`:3001`), **agent-api** (`:8100`) | the three published front doors | | **meeting-api, admin-api, runtime** | loopback-only (`127.0.0.1`) — reach them with `docker exec` | | **valkey** | in-container Redis-compatible store, loopback-only | | **Xvfb · fluxbox · pulseaudio · x11vnc · noVNC** | the shared virtual display and audio graph bots run on | Bots and agent workers are **not** supervisord programs — the runtime spawns them as child processes, one per meeting and per agent dispatch. Inspect a running deployment with: ```bash theme={null} docker logs -f vexa-lite # all service logs go to stdout docker exec vexa-lite supervisorctl status # the service tree docker exec vexa-lite ps aux | grep dist/index.js # live bot processes ``` ## Configuration Lite reads the repo-root `.env` (via `docker run --env-file`) plus the flags the Makefile sets explicitly. Every key in the [configuration reference](/configuration) applies; mind its warning about inline `# comments` in `.env` values — it exists because of Lite's `--env-file` semantics. If `~/.claude/.credentials.json` exists on the host, `make lite` mounts it read-only into the container so agents run on your Claude subscription without copying credentials into `.env`. ## Persistence and upgrade State lives in the sidecars' named volumes and survives app-container replacement: | Data | Where | | - | - | | Users, meetings, transcripts (Postgres) | volume `vexa-lite-pgdata` | | Recordings (the `vexa-lite-storage` sidecar, versitygw) | volume `vexa-lite-storagedata` — one plain file per object under `data/vexa/` | | Valkey state and `/workspaces` scratch | **in-container, ephemeral** — mount `/var/lib/redis` yourself if you need it kept | The storage sidecar runs `versity/versitygw` (Apache-2.0), pinned by tag and digest in `deploy/lite/Makefile`. meeting-api reaches it over S3 at `vexa-lite-storage:9000` with the `MINIO_*` settings the Makefile passes (the names are unchanged; the credentials default to `vexa-access-key` / `vexa-secret-key` and can be overridden on the `make` command line). Its port is not published. Back the volume up with a copy that keeps extended attributes (`rsync -aX`, `cp -a`); see [Recordings → Backups](/how-to/recordings#backups). Upgrading is re-running with a newer image: set `IMAGE_TAG` in `.env` (pin a specific release so deploys are reproducible), then `make lite` again — it replaces the app container and leaves the sidecars and their volumes untouched. Schema converges in-process on service startup; there is no separate migration step. **Coming from a Lite that ran MinIO**: old recordings stay in `vexa-lite-miniodata` and do not play back until copied. `make lite` starts on the new storage without inspecting the old volume. Run `make -C deploy/lite migrate-storage` to copy and verify objects by SHA-256; it never deletes the old volume. [Where your recordings live now](/upgrade-from-minio) covers the copy and rollback. ```bash theme={null} make -C deploy/lite down # containers go, volumes stay docker volume rm vexa-lite-pgdata vexa-lite-storagedata # full wipe ``` ## Is this install actually working? — `make probe SURFACE=lite` ```bash theme={null} make probe SURFACE=lite ``` The probe mints a key and drives the whole journey — spawn → boot → join → transcribe → live-view → stop. Lite runs the **real** bot in-process, so a dead meeting URL ends in a truthful named failure, never a fake green. The container also carries a Docker `HEALTHCHECK` on the gateway's `/health` (30s interval, 120s start period). ## Limits vs compose and Kubernetes * **One shared display.** Bots share a single Xvfb — best for one browser session at a time. Compose isolates bots in containers; the Helm chart gives each bot its own Pod. * **Ephemeral Valkey.** In-container with no volume by default. * **Agent API is not gateway-fronted.** Clients reach `:8100` directly; gateway-fronting is roadmap. * **No MCP service.** The compose stack's `/mcp` surface does not exist in Lite. * **Sidecar ports are unpublished.** Postgres and the storage sidecar's S3 port are reachable only on the Docker network, not from the host. * **No authenticated bots.** Lite does not package the provisioning flow or a userdata store ([Authenticated bots](/authenticated-bots#availability-by-deployment-surface)). Outgrown it? Switch to [compose](/deployment) — same images, same contracts. Per-feature honest status: [Roadmap → Status](/roadmap/status). # Architecture compliance (generated) Source: https://docs.vexa.ai/governance/arch-compliance Generated map: every modularity principle and the gate that enforces it. > Generated by `scripts/arch-report.mjs`. The constitution promises every principle names the practice > it comes from **and the gate that enforces it** ([Architecture](/governance/architecture) §2/§4, **P9**: an > ungated rule is aspirational). This is that map, live — each modularity principle → its CI gate(s) → > the current evidence. **P9 itself is the table**: every row is a green gate, not a README rule, so > "fully modular" is a claim backed by mechanical evidence. Regenerate with `node scripts/arch-report.mjs`; > `gate:arch-report` keeps it honest in CI. | Principle | Rule | Gate(s) | Evidence | Status | | - | - | - | - | - | | **P2** | Couple only through contracts — no import reaches around a contract into a sibling module's internals (prod AND tests). | `gate:isolation` · `gate:isolation-py` · `gate:test-isolation` | 17 brick(s) checked; every Python sibling import is own-module, declared, or an allowed edge; no Python test imports a sibling module's internals (test lane gated, P2) | ✅ | | **P3** | Dependencies point inward to the kernel; the graph is acyclic (runtime depends on nothing above). | `gate:graph` · `gate:graph-py` | acyclic + allowed-edges; Python cross-package edges acyclic + allow-listed | ✅ | | **P4** | Cross a process/network boundary → a sealed, versioned, golden-pinned schema. | `gate:schema` · `gate:contract-version` | 24 contract(s) conform (goldens ≡ schema); 24 sealed contract(s) frozen | ✅ | | **P6** | One public front door per module; internals are private. | `gate:exports` | 13 library package(s) lock their front door | ✅ | | **P12** | Every folder self-documents (README: concern · surface · deps). | `gate:readme` | 299 dirs each carry a README | ✅ | | **P23** | One writer per data carrier; a reader never re-derives a producer's data (data-flow ownership, architecture.calm.json). | `gate:dataflow` | 81 nodes · 52 edges · 11 carriers · complete + sealed (P23) | ✅ | **Modularity verdict: all gates green — the v0.12 backend is fully modular by the constitution's own definition.** Per-service module structure (each a front-doored brick, independently testable): `meeting-api` = `{lifecycle · bot_spawn · collector · recordings · webhooks · scheduling · sessions · obs}`; `runtime` = the kernel (imports nothing above); `gateway`/`identity`/`agent-api` per their domains. The test lane is gated too (`gate:test-isolation`) — a test cannot reach across a module boundary where prod imports can't. # Architecture — the governing reference Source: https://docs.vexa.ai/governance/architecture The build constitution: principles P1–P23, each naming the practice it comes from and the gate that enforces it. > The constitution. Before you add a file, move a module, or define a contract, it is > governed by something here. **Every principle names the established practice it comes from > *and* the CI gate that enforces it** — so no rule lives by convention alone. If a rule is not > gated, it is aspirational; treat closing that gap as work. > > Scope note: `crm` and `retrieval` are **deferred**, and there is no `memory` domain. A workspace > is a *user-owned git repo* (data, not platform code); `crm` is an *application* — one entity schema > over a workspace (see **P11**) — not a platform domain. This doc governs what we build now. *** ## 0. The shape, in one sentence Vexa is **contract-bounded at two scales** — a handful of **microservices** coupled only by published schemas, each internally a **modular monolith** of modules coupled only by ports — all over a shared **runtime kernel**. The construction discipline is modular-monolith; the deployment shape is microservices, carved where a real force requires it (runtime, scale, data, ephemerality). *** ## 1. Concepts — the vocabulary (use these words precisely) | Term | What it is | In Vexa | Canonical source | | - | - | - | - | | **Module** | unit of *composition* — a library behind a contract; compile-time, no runtime of its own | `@vexa/*` bricks under a domain's `modules/` | Parnas (*information hiding*, 1972); Szyperski (*Component Software*) | | **Service** | unit of *deployment* — a process with a lifecycle and an address; runtime | a dir with an entrypoint (bot, meeting-api, agent-api) | C4 "container" (Brown) | | **Domain** | a *bounded context* — one cohesive concern with its own language | `runtime/ meetings/ agent/ identity/ …` | DDD (Evans) | | **Contract** | the *only* sanctioned coupling between two parties | ports (in-process) + schemas (at boundaries) | Design by Contract (Meyer); Published Language (DDD) | | **Port** | an interface the core depends on — a "hole" an adapter fills | `JoinDriver`, `Pipeline`, `TranscriptSink` | Hexagonal / Ports & Adapters (Cockburn) | | **Adapter** | binds a port to a real transport or external brick | `join-vexa`, `transcript-redis`, `lifecycle-http` | Hexagonal; Anti-Corruption Layer (DDD) | | **Published schema** | a *language-neutral* contract at a boundary | `contracts/*.v1` (JSON Schema / OpenAPI + golden vectors) | schema-first / consumer-driven contract testing | | **Kernel (runtime)** | the domain-agnostic execution substrate everything sits on | `runtime/` (spawn/execute, now or scheduled; mounts the workspace) | platform substrate | | **Workspace** | a *user-owned git repo* — durable memory the agent reads/writes; **data, not platform code** | the user's repo; template = `core/agent/contracts/workspace.v1`; mount = a `runtime` capability | git-as-database; mechanism-not-policy | | **Composition root** | the one place wiring happens; the only place adapters meet the core | a service's `index.ts` / `main` | DI composition root (Seemann) | | **Worker** | an ephemeral, stateless service spawned on demand and disposed | `bot` (per meeting), `agent` (per run) | 12-Factor (disposability) | *** ## 2. Principles — the rules (each has a *why*, a *source*, and a *gate*) | # | Principle | Why | Source | Enforced by | | - | - | - | - | - | | **P1** | **Package by domain, not by layer.** Top-level dirs name the business (`meetings`, `agent`), never the framework (`controllers`, `utils`). | the structure should scream what the system *does* | Screaming Architecture (Martin) | review + structure | | **P2** | **Couple only through contracts.** No import reaches around a contract into another module's internals. | a boundary you can't reach around can't rot | Information hiding (Parnas); Bounded Context (DDD) | `gate:isolation` | | **P3** | **Dependencies point inward to the kernel; the graph is acyclic.** `runtime` depends on nothing above it. No cycles, ever. | the core must never depend on the edges; a cycle is mud | Clean / Onion architecture (Martin, Palermo) | `gate:graph` | | **P4** | **Cross a language or domain boundary → a published schema. Stay intra-domain and in-process → nest the contract with its owner.** A contract that crosses a **process / network / independently-deployable boundary is sealed + versioned + golden-pinned even when both sides are the same language and domain** — only a truly in-process, same-artifact call nests as a bare port. | the Python consumer can't `import` a TS type; *and* two sides that deploy independently (extension↔desktop, bot↔desktop) drift silently across a same-language wire unless it's pinned — `capture.v1` is the busiest such wire | schema-first / contract testing; independent deployability (Newman) | `gate:schema` · `gate:contract-version` (every cross-process `.v1`) | | **P5** | **Adapt at every boundary someone else owns.** Their vocabulary is translated at the edge, never leaked into your core. | one brick's churn must not ripple into your logic | Hexagonal + Anti-Corruption Layer (Cockburn, Evans) | review | | **P6** | **One public front door per module; internals are private.** Consumers import the `index`, never a deep path. | you can refactor freely behind a stable surface | encapsulation / information hiding | `gate:exports` | | **P7** | **Workers are stateless and ephemeral; all config arrives by env.** They spawn, work, emit, and die. | horizontal fan-out (one bot per meeting) + disposability | 12-Factor (Wiggins) | review | | **P8** | **The goldens are the spec.** A contract's truth is its committed example vectors, not the current output of any implementation. | stops "fix the test to match the bug" | golden/contract testing; fitness functions | `gate:schema-conformance`, `gate:unit` | | **P9** | **Every boundary is mechanically enforced, not aspirational.** A rule in a README rots; a rule that turns CI red cannot be crossed. | this is the meta-principle that keeps a modular monolith from decaying | Evolutionary Architecture / fitness functions (Ford, Parsons, Kua) | all gates | | **P10** | **Default to a module; carve a service only when a force requires it** (independent scale, different runtime, separate team, hard fault isolation). | distribution is a tax — pay it on purpose, not by reflex | Modular Monolith (Brown) | review | | **P11** | **Mechanism, not policy.** The platform owns *mechanism* (`runtime`, contracts, the workspace primitive); a *specific* entity schema, integration, or a customer's workspace is **config at the edge — never a platform domain.** | a sales CRM schema and a bank's control catalog are both just schemas; freeze one into the platform and it fits no one else | mechanism-not-policy (microkernel tradition); Open/Closed | review + structure | | **P12** | **Every folder self-documents.** A directory at any level carries a `README.md` stating its one concern, its public surface (the `index`/contract it exposes, or the children it groups), and what it may depend on. Trivial leaves get a one-liner — the rule is *existence*, not length. | a modular tree must be navigable; the README is the front-door *doc* beside the front-door *code* (P6) | self-documenting systems; the `modules/README` symptom→brick router | `gate:readme` | | **P13** | **Language minimalism.** Add a language only when an ecosystem forces it (browser→TS, ML→Python); the control plane's language is a deliberate choice. Align every language boundary with a service+contract boundary — never mix languages within a module. | each language multiplies the schema surface | mechanism-not-policy; P10 for languages | review · ADR-0001 | | **P14** | **Config is a validated contract, delivered by env.** App vars are `VEXA_*`; structured config travels as one JSON env var validated against a `*.v1` schema; secrets are a class (`*_TOKEN`/`_SECRET`/`_KEY`) — never logged, committed, or in goldens; validate at boot, fail fast. | env is where config discipline usually leaks | 12-Factor; schema-first | `.env.example` · ADR-0002 | | **P15** | **User data & secrets are protected by default.** Data → per-tenant envelope encryption (crypto-shreddable, BYOK); secrets → a vault behind a port; the agent gets scoped, brokered, audited access — never raw keys in its workspace or logs. | a meeting product's data is its liability | data-protection; least privilege | ports now, impl deferred · ADR-0003 | | **P16** | **Defer the implementation, not the seam.** A deferred capability is a port with a default (passthrough) adapter, wired through now; the contract *fields* it needs are added **additively** when it lands (optional fields are back-compatible — so early threading buys nothing). | "plug-and-play later" only works if the socket exists now; but unused fields are noise | open/closed; ports & adapters; YAGNI | review · ADR-0003 | | **P17** | **Every dependency is OSS-licence-clean.** Direct *and transitive* deps carry an OSI-approved permissive licence (Cat A: Apache-2.0 / MIT / BSD / ISC / …); weak-copyleft (Cat B: MPL / EPL / LGPL) only when isolated (unmodified, not statically bundled) and exception-logged; strong-copyleft (GPL / AGPL) and source-available/proprietary (BSL / SSPL / Elastic / Commons-Clause) are **forbidden**. The platform must drop into a regulated org with zero licence encumbrance. | one GPL/AGPL or source-available dep *anywhere* in the tree blocks deployment in a bank — the licence tree is a hard deployment constraint, not a footnote | FINOS OSS governance; ASF licence categories A/B/X; SBOM/SPDX | `gate:licenses` · ADR-0004 | | **P18** | **Fail loud and attributable.** A dependency's failure is translated at its adapter into a **typed fault** (`source` + `kind`) and surfaced on an **observable channel** (log · telemetry · a health frame · a lifecycle event) — never swallowed into silent degradation. A running component also exposes its **health** (can it reach its dependencies?) and **liveness** (is the expected signal actually flowing?) — **absence of an expected signal is itself a reportable state.** "No output" must be distinguishable from "the dependency is down / unpaid / unauthorized" *and* from "nothing is arriving." | a silent *fault* read as "the extension is broken" (STT `402`); *and* a silent *absence* — "session active, zero audio frames" (the YouTube stream-not-minted case) — throws nothing yet looks identical to "no speech" | crash-only / fail-fast (Candea–Fox); observability (Majors); health checks + absence-of-signal (Google SRE) | `onError` seam + fault-surfacing gate · `/health` + no-frames watchdog (ADD) · ADR-0010 | | **P19** | **Prove at the altitude of the claim.** A capability is "done" only when proven at the level it operates: a user-facing *behavior* needs live evidence (L4), not just structural/contract green (L1–L3). State *which* level a "green" claim rests on; the proof obligation scales with the claim's blast radius. | the costliest failures hide behind L1–L3 green read as "works" — a lane marked done while gmeet was untested, YouTube intermittent, STT dead; the L1–L4 pyramid (§5) is the *mechanism*, this is the *obligation* that binds a claim to it | test pyramid (Cohn); risk-based verification; DORA | a recorded **L4 eval baseline** per user-facing lane (the `eval/` harness; `gate:eval-baseline` ADD) · ADR-0011 | | **P20** | **Complete mediation — authorize every access, default-deny.** Every read/write of a user-owned resource passes a `canAccess(subject, resource, action)` check at **every** path (API · live subscribe · agent), defaulting to owner-only. | P15 protects data *at rest* (encryption, secrets-as-a-class) but not *who may read it* — the desktop's `/transcripts`·`/recordings`·`/ws` are wide open, and ADR-0003's `canAccess` seam was designed but never wired, so it rotted (P9) | complete mediation + least privilege (Saltzer–Schroeder); default-deny | `canAccess` port on the three read paths + a deny test (`gate:access` ADD) · ADR-0012 | | **P21** | **Report state from evidence, not intent.** A component's displayed/reported state reflects **observed reality, not the action attempted** — a success/active status is *earned* by the confirming signal (capture is "Listening" only once frames are observed flowing; "started, no signal" is its own state, never "working"). `started ≠ working`. **Principles & gates extend to the clients** — the extension/desktop UI is where the user meets failure, so it is in scope, not exempt. | "Listening — capturing 0 stream(s)" flips to success on the Start *command* while no audio flows — an unearned positive that hides the commonest failure exactly where the user sees it; the client was the least-governed code (zero tests) precisely where it matters most | runtime dual of P19; positive complement of P18 (don't fake success); make-illegal-states-unrepresentable (Wlaschin) | first-frame-observed transition + no-frames watchdog + client state-machine tests (`gate:client-liveness` ADD) · ADR-0013 | | **P22** | **Guarantee teardown, don't request it.** A destructive lifecycle effect (stop/kill) is **guaranteed at the boundary**, never delegated to a fire-and-forget message a not-yet-subscribed consumer can miss. Pair a graceful command for a **confirmed-listening** consumer (so it finalizes cleanly) with a **hard guarantee** when it can't be confirmed listening (directly kill the workload), and **reconcile the create/destroy race** (the spawn re-checks for a stop that landed mid-boot). | a `POST` then immediate `DELETE` left an **orphan** bot live in the meeting (DB `stopping`, bot joined) — the stop only PUBLISHED `{action:leave}` over redis pub/sub, which has **no buffering for late/booting subscribers**, so a booting bot never received it; the teardown *requested* an effect over an unreliable channel instead of *guaranteeing* it | crash-only / fail-fast teardown (Candea–Fox); reliable-delivery vs fire-and-forget (pub/sub has no buffering); compensating action (Sagas) | direct `runtime.delete_workload` for a booting bot + spawn race-reconcile + reconcile loop; orphan regressions in `test_robustness_seam.py` (`gate:eval` *meeting-lifecycle* path, under `gate:python`) · ADR-0024 | | **P23** | **Data-flow ownership — one writer per data carrier; a reader never re-derives a producer's data.** Every redis stream · pubsub · table · blob (a *data carrier*) has exactly **one writer**; consumers read, they never re-transform a producer's data into a competing copy. The whole service/module/contract/client inventory + carriers + `connects`/`flows` live in ONE registry — `architecture.calm.json` (FINOS CALM) — which renders the picture (`pnpm arch:viz`) and is gated against drift. | the same transcript was reshaped by **three** owners (bot confirm · agent-api rewrite · terminal `buildMeetingNotes`) — invisible to a suite that modeled code coupling but not data-flow, found only by hand-tracing | data-flow / lineage modeling; single-writer; architecture-as-code (FINOS CALM) | `gate:dataflow` (+ chart seal `architecture.seal.json`) · learnings ledger | *** ## 3. The structure — render the chart, don't snapshot it The module / service / contract inventory **and** the runtime data-flow ARE the chart — [`architecture.calm.json`](https://github.com/Vexa-ai/vexa/blob/main/architecture.calm.json), the single source of truth, gated against drift (P23, `gate:dataflow`). A hand-written tree here would drift (it already had), so structure lives nowhere but the chart. Render any slice instead of restating it: ``` pnpm arch:viz cluster: # a bundle's services/modules/contracts + the carriers it touches pnpm arch:viz flow: | path: # a data path | a carrier's writers -> readers (contract per hop) ``` **Code-dependency rule** — the acyclic seam, enforced by `gate:graph` / `gate:graph-py` (spec in `.dependency-cruiser.cjs` + `scripts/check-isolation-py.mjs`), so it is doctrine, not a snapshot: a domain's internals (`services/`, `modules/`) may import only **its own code · another domain's `contracts/` · `core/runtime/contracts`** — never another domain's internals. **meetings ⊥ agent** at the internals level: agent may reference `core/meetings/contracts/transcript.v1` (that IS the seam), never `core/meetings/services` / `modules`. Contracts **nest with their owner domain** as JSON Schema (P4); the chart lists which contract each domain exposes. *** ## 4. The gates (CI — the teeth) Each gate enforces one or more principles. **An artifact "exists" only when it is gate-green** — *"verified-compliant" = passing this suite.* Admit nothing on trust. The rows below are kept in sync with `scripts/gates.mjs`'s `GATES` map — **every gate the runner exposes appears here** (`node scripts/gates.mjs all` runs them). ("ADD" = gap still open; "retire" = scheduled for removal.) | Gate | Checks | Enforces | Tool | Status | | - | - | - | - | - | | `gate:isolation` | every import is intra-module, builtin, or a declared dep | P2 | `check-isolation.js` | **have** | | `gate:isolation-py` | every Python sibling-package import is own-module, a declared pyproject dep, or an allowed edge | P2 | `check-isolation-py.mjs --mode=isolation` | **have** (green-on-empty) | | `gate:graph` | module graph is acyclic + matches the allowed-edges spec | P3 | `dependency-cruiser` | **have** (green-on-empty; bites as packages land) | | `gate:graph-py` | Python cross-package edges are acyclic + allow-listed (the Python twin of the depcruise DAG) | P3 | `check-isolation-py.mjs --mode=graph` | **have** (green-on-empty) | | `gate:test-isolation` | no Python test imports a sibling module's internals (the test lane obeys the same P2 boundary as prod) | P2 | `check-isolation-py.mjs --mode=test-isolation` | **have** (green-on-empty) | | `gate:exports` | no consumer deep-imports past a module's `index` | P6 | `package.json` `"exports"` + scan | **have** (locks land per-package) | | `gate:readme` | every non-ignored directory has a non-empty `README.md` | P12 | tree-walk | **have** | | `gate:schema` | goldens ≡ schema (ajv) | P4, P8 | `validate.mjs` (ajv) | **have** (both-language conformance per-consumer in Stage 3/4) | | `gate:contract-version` | a sealed `.vN` schema is frozen; any change routes to human re-seal (back-compat) or a vN+1 dir (breaking) | P4 | seal hash (`contracts.seal.json`) | **have** | | `gate:contract-conformance` | the SHIPPED meeting-api conforms to the sealed `api.v1` — registered routes ≡ declared (path, method); known drift is bounded by an explicit, reasoned waiver list, NEW drift turns RED | P8 | `tests/test_contract_conformance.py` (real `create_app()` route enumeration) | **have** (offline structural half; live input-fuzzing via schemathesis is the L4 extension on the dev host) | | `gate:python` | pytest green in every Python package (pyproject + tests/) — the L1–L2 Python pyramid | P8 | `uv run pytest` per package | **have** | | `gate:node` | build + unit-test every workspace TS package (the L1–L2 TS pyramid; carries `gate:fault-surfacing` + `gate:client-liveness` proofs) | P8 | `turbo run build test` | **have** | | `gate:stack` | the Group-1 backing-stack evals (postgres·redis·admin-api) pass on ephemeral testcontainers | P5, P8 | `test_stack_*.py` (testcontainers) | **have** (green-or-skip without docker) | | `gate:fault-surfacing` | a forced dependency fault (e.g. STT `402`) is surfaced + attributed via `onError`, never swallowed | P18 | failure-injection tests (under `gate:node`) | **have** (rides `gate:node`) | | `gate:health` | each long-running HTTP service exposes a conforming `/health` (status·service) | P18 | per-service `tests/test_health.py` (gateway · conformance · runtime · meeting-api · admin-api · agent-api) | **have** | | `gate:eval-baseline` | the worker-L4 eval oracle self-test passes offline + the recorded L4 ground truth exists (a reusable, calibrated instrument) | P19 | `core/meetings/services/bot/eval/verify.sh` + `core/meetings/eval/BASELINE.md` | **have** (instrument ready; live L4 score is B:V1) | | `gate:eval` | every essential path (Groups 2–8) ships an offline eval harness — the completeness/presence umbrella | P19 | filename discovery of per-path harnesses | **have** | | `gate:access` | each read path (API · WS subscribe · agent) denies an unauthorized `canAccess` request | P20 | `core/identity/tests/test_access.py` (deny test) | **have** | | `gate:client-liveness` | the extension's capture state is **evidence-driven** — "active" only after first-frame-observed; a no-frames watchdog flips to "no-signal"; the state machine is unit-tested | P21 | `clients/extension/src/capture-liveness.test.ts` (extension L2, under `gate:node`) | **have** (rides `gate:node`) | | `gate:tracing` | one synthetic multi-service request threads ONE `trace_id` through every hop's structured log; every line conforms to `logevent.v1` | P18 (O-OBS-1) | `tests/test_tracing.py` (conformance) | **have** | | `gate:telemetry` | `captured-signal.v1` + `flagged-issue.v1` exist; the capture-bridge `TelemetrySink` tap is proven (fed frame reaches the sink, round-trips the codec) | P18 (O-TEL-1/3) | `src/telemetry.test.ts` (capture-bridge) | **have** | | `gate:replay` | a stored captured-signal/tape replays through the EXACT pipeline to its expected transcript, deterministically (same in ⇒ same out) | P8 (O-TEL-2) | `pnpm run replay` (per package) | **have** | | `gate:licenses` | every direct+transitive dep licence is on the allowlist (Cat A; B by logged exception); no GPL/AGPL/source-available. The per-release SPDX SBOM (`scripts/sbom.mjs`, emitted + gated by `release-images`) records the npm/pip tree **and** baked model weights | P17 | `pnpm licenses` (FINOS Cat A/B/X) · `scripts/sbom.mjs` | **have** | | `gate:compose` | the REAL deploy/compose stack comes up bot-ready (health · auth · transcript dataflow · recording→minio · control-plane); `MOCK_BOT=1` runs the L3 backend↔bot seam | P5, P9 | `deploy/compose/bin/stack-test` | **have** (green-or-skip without docker) | | `gate:compose-stress` | the control plane under CONCURRENT load (N mock bots): max-bots never overspills, every FSM reaches terminal under contention | A:V2 | `deploy/compose/tests/stress_test.py` | **have** (opt-in `COMPOSE_STRESS=1`; `all` skips green) | | `gate:compose-chaos` | the control plane RECOVERS from injected dependency faults (redis/meeting-api pause) — FSM reaches a clean terminal, never a silent stall | P18 (A:V3) | `deploy/compose/tests/chaos_test.py` | **have** (opt-in `COMPOSE_CHAOS=1`; `all` skips green) | | `gate:execution-env` | the execution-target registry conforms to `execution-targets.v1` (committed template always; the gitignored real file when present); secrets are references only | P14 (ADR-0020) | `execution-targets.v1/validate.mjs` | **have** (green-on-empty before the contract lands) | | `gate:parity` | every capability + `api.v1` endpoint row in the parity matrix maps to a green proof (no unmapped/TODO on-par row) — "0.12 ≡ main" is a checked claim | P4, P9 | parity-matrix scan (maintainer workspace; green-on-empty in-repo) | **have** (green-on-empty before the matrix lands) | | `gate:arch-report` | every modularity principle (P2·P3·P4·P6·P12·P23) resolves to a passing gate — the compliance map is regenerable + current | P9 | `scripts/arch-report.mjs --check` | **have** (green-on-empty before the generator lands) | | `gate:dataflow` | the chart (`architecture.calm.json`) covers every service/module/contract/client (completeness, model↔disk — no drift); each data carrier has one writer + no reader re-derives a producer's data (`render-only`); the committed chart matches its seal | P23 | `scripts/gates.mjs` (CALM model · reality-diff · `architecture.seal.json`) | **have** | | `gate:unit` | per-module tests pass (the L1–L2 pyramid) | P8 | subsumed by `gate:node` + `gate:python` | **have** (alias — the per-language gates above) | | `gate:e2e` | offline lane/wire integration (L3) | P8 | subsumed by `gate:compose` (`MOCK_BOT`) + per-package e2e | **have** (alias) | | `typecheck` / `gate:standalone` | `tsc` clean against own declared deps | P2 | `tsc --noEmit` (under `gate:node`) | **have** (rides `gate:node`) | | `gate:dist-in-sync` | committed `dist/` ≡ clean rebuild of `src/` | — | — | **retire** (workspace tool builds on demand → delete committed `dist/`) | **Two-layer enforcement.** Locally, a `pre-push` hook (`.githooks/pre-push`, wired by `core.hooksPath` via the root `prepare` script — zero-dependency, per P17) runs `pnpm gates` and blocks any push that isn't green. In CI, `gates.yml` re-runs each gate as its own step so a failure is unambiguous. `git commit` itself runs nothing — the bar is at **push**, not every commit. **The architecture chart.** [`architecture.calm.json`](https://github.com/Vexa-ai/vexa/blob/main/architecture.calm.json) (FINOS CALM) is the runtime data-flow + ownership model and the single inventory of every node — *the index for AI, the mental model for humans* (P23). `pnpm arch:viz [--lod=0..3] [--scale]` renders **deterministic** perspectives to `docs/views/*.svg` — you read one cluster or path at a time, never the whole graph. `gate:dataflow` keeps it true (completeness · single-writer · render-only · seal); `pnpm seal:arch` re-stamps the asserted-true baseline after a *reviewed* change. *** ## 5. How we prove a change — the validation pyramid Build downward from the cheapest, most-isolated proof. The bot is the worked example (71 checks). | Level | Proves | How | Speed | | - | - | - | - | | **L1 — contract** | the contract is self-consistent + the goldens conform | schema + golden vectors | ms | | **L2 — unit** | the core logic, with every port mocked | in-memory fakes for ports | ms | | **L3 — integration** | the real engine wired to mock externals | real lane/module + mock STT/redis | \~1s | | **L4 — live + eval** | the whole thing against reality, **plus quality vs ground truth** | hot container, real meeting + the `eval/` harness | minutes | Rule: a port (P5) is what lets L2 exist. If you can't unit-test the core without a browser/redis, you're missing an adapter seam. The **eval harness** (L4 quality) is first-class — it's how a domain proves its *output is correct*, not merely that it ran. *** ## 6. Reference shelf (read these to pressure-test a decision) | Practice | What it governs here | Source | | - | - | - | | **Microservices** | the system shape: services over REST/Redis, carved by force (P10) | Newman; Fowler | | **Modular Monolith** | each service's internal shape + the movable module↔service boundary | Simon Brown; Spring Modulith (Drotbohm) | | **Hexagonal / Ports & Adapters** | every service's internal shape | Cockburn | | **Clean / Onion** | dependency direction (P3) | Martin; Palermo | | **DDD — Bounded Context, Published Language, ACL** | domains, schemas, adapters | Evans | | **Information hiding** | why a module hides one decision behind one front door (P2, P6) | Parnas (1972) | | **Component Software** | the module definition | Szyperski | | **C4 model** | module (component) vs service (container) vs deploy node | Brown | | **12-Factor** | workers + config-by-env (P7) | Wiggins | | **Mechanism not policy** | the platform stays generic; schemas are config (P11) | microkernel / Open-Closed | | **Evolutionary Architecture / fitness functions** | gates as executable architecture (P9) | Ford, Parsons, Kua | | **Screaming Architecture** | package-by-domain (P1) | Martin | *** ## 7. When the rules bend (be honest, not dogmatic) * **An adapter is ceremony** if it does no vocabulary translation, no dispatch, and unlocks no test seam, over a stable leaf — inline it (P5 has a cost). * **Default to a module.** A new service must justify its distribution tax against P10's forces. * **A README boundary is acceptable for a leaf with no consumers.** The moment it has two, gate it (P9). * **`shared/`-style kernels are allowed but strict** — smallest, most stable, most reviewed code; never a junk drawer. If you can't name the one concern it hides, it's not a module. *** ## 8. Development process — how we build (and contribute) The sections above say *what the system is*. This says *how you change it*. Same discipline — every step names its practice and ends at a gate. **The inner loop (one change):** 1. **Contract first** — define/change the port or `contracts/*.v1` *before* the code; the contract is the unit of agreement. *(API-first / consumer-driven contracts)* 2. **Implement behind a port** — transports are adapters; the core stays offline-provable. *(hexagonal)* 3. **Prove down the pyramid** — L1 golden → L2 unit (mock ports) → L3 integration → L4 live + eval. Cheapest proof first. *(test pyramid)* 4. **Green under the gates is "done"** — isolation · graph · exports · schema-conformance · unit. *Green or it didn't happen.* *(fitness functions)* 5. **Small PR on trunk** — short-lived branch, small diff, gates required to merge. *(trunk-based dev / DORA)* **Special rules:** | Rule | Why | Practice | | - | - | - | | **`lane:contract` PRs are human-gated** — a PR label that routes any change touching a `contracts/*.v1` to *required human review* (it can break consumers across languages); ordinary changes merge on green gates alone | published contracts have a wide blast radius | published-language governance; semver (add-optional = v1, breaking = bump to v2) | | **Fix in the brick that owns the symptom** | never mask a brick's bug in a consumer | symptom→brick router (`modules/README`) | | **Reproduce with no live meeting before you fix** | the brick's own logs are a claim, not proof | brick debug discipline | | **Record decisions as an ADR** — *Architecture Decision Record*: a short, dated, numbered `docs/adr/NNNN.md` capturing **one** decision = context · the decision · the trade-off accepted | the durable "why," so a boundary isn't relitigated later | Nygard ADRs | | **Big work is staged with per-stage validation gates** | each stage is specific and ends at a *runnable* proof; never advance on red | staged migration | | **One worktree per chat** — concurrent work is isolated in its own `git worktree` on a short-lived branch, integrated via PR; **never two chats on one working tree**, and you never touch another chat's uncommitted files | shared-tree collisions cost us (the `meeting-api` appeared mid-session; the `bot/` brick was destroyed) — uncommitted state must be isolated | git worktrees; trunk-based + PR · ADR-0019 | **Planning mode ⇄ execution mode — never build without a current plan:** * **A current plan always exists** — the *full path* from where we are to the goal: the staged route to "done", each stage with a runnable proof, plus the critical path and what's parallelizable. It is a **maintained doc** (kept in the maintainer workspace), not a memory. *The plan is the macro expectation; the expectation–reality loop below executes against it.* * **Goal vs objective.** The **goal** is the destination — the *end of the plan* (the release). An **objective** is the *current go* — the one waypoint you execute toward now; the plan is the ordered path of objectives to the goal. The objective is the **unit of execution and assessment**: you are always executing toward exactly **one open objective** (never drifting), and it closes either **expected** (result met it → **continue with the next *planned* objective** autonomously — do not stop to ask) or **unexpected** (result diverged → **stop, interpret it *with the human* as learning**, root-cause + codify, **and update the plan** — an unexpected result is exactly what triggers a re-plan). Expected closure flows on its own through the plan; unexpected closure pulls in the human *and* revises the plan (ADR-0017). * **Planning mode** produces or revises that plan *before* building — decompose the objective into staged proofs, mark the parallel workstreams, set each stage's definition-of-done. Output = an approved plan. *(design-before-build; staged migration)* * **Execution mode** runs the plan one stage at a time under the expectation–reality loop — instrument-validated, stop-on-surprise. * **The modes interlock.** A surprise that root-causes to a principle gap — or a changed objective — loops **back to planning**: revise the plan, then resume. The plan is *living* and always current; you are always in one mode or the other, never improvising without a path. > **Collapsed:** *Plan the full path (planning mode) → execute a stage under the loop (execution mode) → on a gap/surprise, re-plan. Never build without a current plan.* **The expectation–reality loop — how execution mode runs, and how the principle-set grows:** 1. **State the expected behaviour first.** Before acting, name what the system *should* do and what "done" looks like for the current objective — the contract for the work in front of you. *You can't detect a divergence you never defined.* *(expectation-first; P19/P21 applied to the work itself)* 2. **Validate cheaply by instrument — but know it's approximate.** Gates, unit/integration tests, the `eval/` `replay`·`analyze`·`benchmark` path are fast, reproducible, and run with no human — so they do the **broad, cheap filtering**. But their pass/fail is a *proxy* for "actually working": the proxy can mis-*define* success (green while broken, red while fine) or mis-*interpret* the signal (the `capture` tool once called a healthy gmeet "unhealthy"). **Cheap, not definitive** — green is necessary, never sufficient (P19). 3. **The human is the ground-truth oracle — scarce, and fallible.** At the end of the day only a human can finally tell if the thing *actually works* — deploy the human precisely where cheap tests can't correctly **define** success or **interpret** the signal (real browser behaviour, real-meeting quality). Because the human is the scarcest resource *and* errs: spend it **last and least**, hand a **minimal, fully-instructed surface** (the exact `🧑` step), and **cross-validate both directions** — a green instrument is provisional until it correlates with real success; a human "it works" / "I topped up the balance" is checked against an instrument (ping the service, census the tape). A human↔instrument disagreement is a *signal*: usually the instrument's success-definition is the gap — fix it. * **Instrumentalise the human's verdict.** Each human judgement is *captured* as ground truth — a golden (P8), an eval baseline, a recorded expected-vs-actual — so the cheap test is **calibrated to the human** and the human is needed less next time. (The `eval/` completeness·leakage·attribution scores *are* "is the transcript right?" turned reproducible.) 4. **An unexpected error is a STOP.** Reality ≠ expectation ⇒ stop. Don't paper over it, blind-retry, or push past — an unpredicted behaviour is a *signal*, not a nuisance. 5. **Root-cause every surprise — earn the learning with the human, and promote it twice.** Each unexpected error is a *symptom* of a missing/violated principle. Interpret it **with the human** (the ground-truth interpreter — a learning is never minted from an instrument alone), trace it to the gap, fix the instance, and **promote the learning to BOTH (a) the architecture** — a principle + its gate + an ADR, so it bites (P9) — **and (b) the learnings log** (the running ledger, kept in the maintainer workspace of *surprise → root-cause → promotion*; the log always, even for a *practice*/*candidate* with no P-number). *This is how the principle-set grows* — P18–P21 were each born from one such surprise. *(blameless root-cause; evolutionary architecture; ADR-0018)* **State the objective, then report facts — not evaluations.** A report is the actual result-state assessed against the **current objective** (*result vs objective*, ADR-0017), so it **names the objective first**, then ships the **raw evidence** that produced the result — the command + its actual output, the counts and names of what was checked, and (crucially) **what was *not*** (fakes vs real, type-checked vs executed, instrument vs human, the boundary of the claim). "Done" / "validated" / "works" is *your* interpretation — state it separately and *labelled*, downstream of the facts, so the human (the ground-truth interpreter) assesses result-vs-objective themselves and can overturn yours. *An interpretation without its evidence is an unbacked claim (P21); surface the facts.* See ADR-0016. > **Collapsed:** *Expect → instrument → (human: minimal, cross-validated) → stop on surprise → root-cause to a principle → codify. Report facts, not evaluations.* **The brick lifecycle (how a module is born):** scaffold (one template, incl. its `README.md`: *what · surface · deps*) → define its contract (a nested port, or `contracts/*.v1` if it crosses a boundary) → implement behind the port → pass the gate suite → *admit* it (consumers may now import its `index`). **A brick that isn't gate-green doesn't exist yet.** **Collapsed:** *Contract → pyramid → gates → small PR. Contracts (`lane:contract`) are human-gated. Fix in the owning brick. Decisions get an ADR. Big work is staged to runnable proofs.* *** *This file is the source of truth for "how we build." Changes to a principle or a gate ride a `lane:contract`, human-reviewed PR and are recorded as an ADR under `docs/adr/`.* # Contributor rights Source: https://docs.vexa.ai/governance/contributor-rights Vexa's low-friction DCO path for individuals and head-bound authorization path for employer-owned contributions. Vexa uses one conscious rights choice at pull-request intake and automates the remaining mechanics. The canonical policy and operational commands live in [`CONTRIBUTOR_RIGHTS.md`](https://github.com/Vexa-ai/vexa/blob/main/CONTRIBUTOR_RIGHTS.md). | Path | Contributor action | Merge evidence | | - | - | - | | Independent | Select the declaration and sign each commit with `git commit --signoff` | Declaration plus the required DCO check; no individual CLA | | Employer/client-controlled | Select the corporate path and provide a legal/IP contact privately | Individual DCO plus a private authorization receipt bound to the current PR head | | Unsure | Select unsure as early as possible | Rights review resolves the path before merge | Technical review may continue during rights review. A later push invalidates a corporate verification, and only a designated verifier can bind a private receipt to the new head. Executed agreements, signatures, addresses, and employment information never belong in public PR comments. ## Agent-assisted flow Agents automate Git, not legal judgment. They ask the human to choose the path, check the repository-local Git identity, use `--signoff` after authorization, identify failing commits by SHA, and prepare safe remediation. They never select the declaration, sign for another person, or rewrite/push history without explicit approval. For the latest unsigned commit: ```bash theme={null} git commit --amend --no-edit --signoff git push --force-with-lease ``` Shared branches use the DCO App's individual remediation flow rather than third-party sign-off. ## Historical work The gate is prospective. Earlier contributions are triaged by concrete risk instead of rewritten or subjected to a blanket CLA campaign. Significant ambiguous work may receive a retrospective attestation; corporate-directed work receives a contribution-specific corporate authorization; material work that cannot be cleared is replaced or removed. # Delivery — the governing reference Source: https://docs.vexa.ai/governance/delivery The delivery constitution D0–D17: how work is chosen, prepared, proven, and shipped. > The delivery constitution — sibling of [`ARCHITECTURE.md`](/governance/architecture). That book governs > **how the software is built**; this one governs **how work is chosen, prepared, proven, and > shipped** — roadmap, issues, PRs, release. Same discipline: every principle names the practice > it comes from *and* the gate that enforces it. **A process rule that isn't enforced is a > comment, not a rule** (D1). Gates not yet built are marked **TO BUILD** — honestly, the same > way the architecture book ships green-on-empty gates — and tracked in > [the enforcement map](#enforcement-map). *** ## 0. The axiom **D0 — The scarce input is verified truth about value, not code.** Coding agents made writing code cheap; what remains scarce — and therefore what this whole system optimizes for — is *evidence that a change delivers its intended value in the real world*. We spend our effort preparing work so that the scarce thing (human, instrumented validation) is the only thing we ask for. · *Source:* the economics shift of agentic coding; Lean "build quality in" (Poppendieck). · *Gate:* this constitution is the mechanism. ## 1. The Loop — the shape of the whole system Everything below is one closed loop. Read it once and you know the system; each principle governs one arc, and each arc has a gate. ``` ┌──────────────────────── THE WORLD ────────────────────────┐ │ reports · incidents · Discord · support · probe results │ └───────────────────────────┬────────────────────────────────┘ │ raw signal ┌───────────────▼───────────────┐ │ 1. INTAKE (D2b) │ ≤3 days: no signal dead-ends └───────────────┬───────────────┘ ┌───────────────▼───────────────┐ │ 2. PREPARE (D-R1/2 · D5/6 · │ isolate → a ready, harnessed, │ D10 acceptance floor) │ merge-guaranteed issue └───────────────┬───────────────┘ │ seeded, in priority order ┌───────────────▼───────────────┐ │ 3. ROADMAP (D2 · D3 · D-R3)│ one ordered queue, three tiers └───────────────┬───────────────┘ │ pick from the top / self-propose ┌───────────────▼───────────────┐ │ 4. CLAIM (D14b) │ heartbeat lease: 4h, renew or release └───────────────┬───────────────┘ ┌───────────────▼───────────────┐ │ 5. DELIVER (D-A · D6b · D-A2 │ human + agent: debug the hot loop, │ · D-L the two loops) │ package only the proven diff └───────────────┬───────────────┘ │ a PR: value bundle + diff ┌───────────────▼───────────────┐ │ 6. PROVE (D8 · D9 · D10 · D12│ non-author witnesses value; channels │ ) + SECURE (D-S) │ corroborate; diff passes review+security └───────────────┬───────────────┘ │ value-signed + acceptance floor met ┌───────────────▼───────────────┐ │ 7. RELEASE (D15) │ batch signed PRs → ship → credit signers └───────────────┬───────────────┘ │ shipped value ┌───────────────────────────▼────────────────────────────────┐ │ 8. CLOSE BACK (D16): your report → this fix → this │ │ release; come validate │ └───────────────────────────┬────────────────────────────────┘ └──► back to THE WORLD Off-loop but first-class: INVALIDATED (D11) — honest-negative of a delivery · DECLINE (D17) — honest-negative of a proposal or stale item · both are results, recorded. ``` **In one sentence:** the world's feedback becomes a prepared, harnessed, merge-guaranteed issue on an ordered roadmap; a human takes it on a heartbeat lease, delivers it with an agent in the harnessed loop, and a *different* human witnesses the value — corroborated by instruments, never on authority alone — after which it ships in a batch and the loop closes back to whoever raised it. ## 2. Meta **D1 — Enforced, not aspirational.** Every rule here is machine-checked (a required status, a checks bot, a template gate) or it does not exist; a rule that lives only in prose rots exactly as an architecture boundary does. Unbuilt checks are marked TO BUILD and tracked — never silently assumed. · *Source:* fitness functions (Ford/Parsons/Kua); the mirror of architecture P9. · *Gate:* [the enforcement map](#enforcement-map) — the live principle→gate→status map. ## 3. The bridge to architecture **D-A — Delivery inherits architecture; the issue reuses the modular software.** The architecture constitution is the *substrate* every issue is built on. An issue's atoms ARE the architecture's isolated units (a module behind a contract, a seam), and their early validation IS that unit's existing harness + fixtures. We do not invent test scaffolding per issue; we compose the harnesses architecture already mandates. When an issue needs a harness that doesn't exist, building it is architecture debt surfaced by delivery (feeds D7). · *Source:* build discipline (P-book) and delivery discipline (D-book) share one modular substrate; testability-as-architecture (Feathers; Humble–Farley). · *Gate:* every component's `Target:` resolves to a real module/seam and its early validation runs in that module's own harness lane — not a bespoke script. **D-A2 — Fixtures are first-class: every seam carries a range to play with.** Validation is built on fixtures, produced and reused wherever possible, so every seam has a *range* of inputs — not one happy path. Three kinds, all welcome: **deterministic producers** where raw input must be simulated (a generator with a known oracle — e.g. a 1..500 counting fixture, where any drop, dup, or misattribution is arithmetic); **captured live output treated as a dataset** (real DOM snapshots, real transcripts — sanitized, versioned; a live validation that isn't captured is a fixture wasted); **hand-authored edge fixtures** (the broken states a report described). A seam without a fixture range is under-harnessed; adding the range is part of the work. · *Source:* golden/contract testing (architecture P8); property-based + example-based testing. · *Gate:* each component's early validation names its fixture(s); new seams ship a range, not a single case. ## 4. Roles and phases **D-R0 — Two species: CONTRIBUTOR and MAINTAINER; the maintainer holds exactly two exclusive authorities.** A **maintainer** exclusively (1) **approves an issue as `ready`** — the stamp that puts it on the guaranteed path — and (2) **merges PRs** — checks the bundle against the acceptance table + the closing security bundle and honors the promise. **Everything else is species-neutral**: preparing, proposing, claiming, delivering, heartbeating, validating as the non-author, signing, authoring probes — contributors and maintainers do all of it under identical rules ("ours included"). Why exactly these two: `ready` is where the project's guarantee is *issued*, merge is where it is *honored* — a promise needs an accountable guarantor; everything before and after stays open. · *Source:* the open-source commit-bit model, minimized. · *Gate:* branch protection (merge rights) + the `state: ready` transition restricted to maintainers; every other transition open. **D-R1 — Two phases, one public constitution: PREPARE, then DELIVER.** **PREPARE** — raw input is *isolated and shaped* into a ready-to-go issue whose body is governed by these principles (the issue body IS the constitution applied). **DELIVER** — a prepared issue is built by human + agent in the harnessed loop and proven. Because this constitution is public, both phases are open to both species; only the `ready` stamp and the merge are maintainer acts. · *Source:* dual-track discovery/delivery (Cagan); open governance. · *Gate:* the state machine — `incoming → prepared` is PREPARE (anyone); `prepared → ready` is the maintainer stamp; `ready → claimed → value-signed` is DELIVER (anyone); `value-signed → merged` is the maintainer honoring the promise. Each phase has its operational protocol below: [PREPARE](#prepare-protocol) (queue item → prepared issue) and [TAKE](#take-protocol) (delivered PR → verdict against the floor). **D-R2 — The preparation function: prepare issues and keep the roadmap true.** Preparation is species-neutral; only the `ready` stamp is a maintainer act. The function's job: (a) turn raw input into prepared, isolated, harnessed issues within the intake SLA (D2b); (b) seed them onto the roadmap in priority order (D2); (c) keep the roadmap a true picture — every known problem represented, nothing stale asserted as ready. It is the first step before any dev starts, and the highest-leverage work: a well-prepared issue makes delivery a known motion instead of a research project. · *Source:* replenishment as a first-class activity (Kanban). · *Gate:* issues reach `ready` only in full D5/D6/D10 shape. **D-R3 — The roadmap holds three tiers; contributors pick or propose.** (1) **prepared issues** — ready to pick, merge guaranteed by their acceptance floor; (2) **generic/raw issues** — incoming, inside the 3-day SLA; (3) **declared items without issues** — intents too far out to prepare, explicitly marked so the picture stays complete without pretending readiness. A contributor either **takes a prepared item** (the guaranteed path) or **self-proposes** — welcome, but with **no merge guarantee** until it meets the same bars. · *Source:* now/next/later roadmapping; pull with an explicit replenishment boundary. · *Gate:* board fields distinguish the tiers; self-proposed PRs are judged on the same value + security bars. ## 5. The roadmap **D2 — The roadmap is one ordered pickup queue.** Every problem we know and every capability we intend maps to exactly one ordered item; anyone takes the highest ready item. No hidden backlog, no parallel priorities. · *Source:* single-queue pull (Kanban, Anderson). · *Gate:* the GitHub Project board is the single source; a coverage check maps every failure mode + committed feature to an item. **\[TO BUILD: coverage check]** **D2b — Coverage is a target with an SLA: world feedback becomes a ready bundle in 3 days.** Every incoming signal is triaged and converted into a prepared issue, target **3 days**, then seeded onto the roadmap. **The target is not being met** — measured 2026-08-20, 26 reports sat in `state: incoming`, median wait 13 days, oldest 28. The gate that would have caught this — the intake ager named below — is one of the unbuilt ones. Nothing we know stays unrepresented; no report dead-ends as a raw ticket. (`state: needs-info` pauses the clock when only the reporter can unblock.) The incoming-report template asks **"observed on which deployed version / verified against which tag?"** as a required field — a report anchored to a deleted tree earns a fast re-anchor verdict instead of a phantom fix (of seven same-day prod reports, the two that stamped their era got correct fast verdicts, #779/#783). · *Source:* lead-time SLA / class-of-service (Kanban). · *Gate:* intake bot ages `state: incoming` items; >3 days without `prepared` alarms. **\[TO BUILD: intake bot]** **D3 — Every item carries business meaning.** A tracker entry states what a user gains or loses, in plain language, before any mechanism — named by the problem, opened with dry, factual stakes. No jargon titles, no drama. · *Source:* jobs-to-be-done (Christensen). · *Gate:* title + "why this matters" check at preparation review. **D4 — Grounded in the code as it is.** Items are shaped by the *current* module tree and its contracts, never by mechanism-narratives reconstructed from old reports; old reports contribute the symptom only. · *Source:* the code is the truth (Feathers). · *Gate:* every component's `Target:` names a module/seam that exists in the tree. ## 6. The issue **D5 — Atomicity is two-level: the issue is the atom of VALUE; its components are atoms of CODE.** The *issue* is the smallest holistic thing a human recognizes as "this delivers value to me" — the smallest complete unit of perceived value, which is what gives a contributor the incentive to take it and a clear idea of what they're validating. The *components* are isolated, harnessed code atoms — each exactly ONE module or seam (named in a `Target:` line), each with its own fixture/golden lane — composing into the issue's one value. A solution that needs two modules is two components. · *Source:* minimum marketable feature (Denne–Cleland-Huang); information hiding (Parnas). · *Gate:* issue template requires the one-sentence value statement + components each with a real Target and harness. **D5b — Bundle by diff, not by theme: one code change = one issue, however many values it carries.** Issues are deduplicated by the CODE CHANGE, never by topic. When one change delivers several recognizable values (one root cause behind several reports, one seam fix that closes several asks), they ride ONE issue: every value is stated in its own value sentence, and the acceptance table carries a discriminating row — and a preferred validator — *per value*, so no value is silently absorbed into another's. When values require different changes, they stay separate issues no matter how adjacent — relatedness is recorded as a `same-setup` note (a claim-together recommendation on the board), never a merged item. The two-way test at preparation: *would splitting duplicate the same diff across issues?* → bundle; *would bundling staple independent diffs into one PR?* → split. This is D8's precondition: issue=PR one-to-one only works if the issue is shaped like exactly one change. **The perceiver bounds the atom — platform-facing behavior is per-platform:** a Meet user's value is Meet working; they will not debug Teams, and a validator can only sign the platform they sit on. Issues about in-meeting behavior are prepared one per platform even when the engine diff is shared: the first platform issue claimed carries the shared-engine change, its siblings reference it (`same-setup`) and validate their own platform's fixtures and live leg. · *Source:* single responsibility applied to work items — one reason to change; cohesion/coupling (Constantine). · *Gate:* preparation review runs the split/bundle test; the acceptance-table check requires one discriminating row per stated value. **D6 — Preparation is ours; validation is theirs.** Every issue ships good solutions AND the along-the-way forks — mechanism, files, steps, the branches a contributor may hit — so delivery is a known motion, not a research project. The contribution asked for is the validation, not the invention; alternate solutions are welcome, never required. · *Source:* "make the change easy, then make the easy change" (Beck); paved paths. · *Gate:* prepared-solution + along-the-way sections required before `ready`. **D6b — The delivery motion: human + agent, harnessed loop, PR.** An issue is delivered by a human who starts it with a capable coding agent, drives the change inside the issue's harnessed validation loop (fixtures + early checks give fast, honest feedback), and emerges with a PR whose bundle is the record of that loop. The harness does the mechanical proving; the human does the recognizing. · *Source:* fast-feedback inner loop (Humble–Farley); human-in-the-loop only where judgment is required. · *Gate:* the PR bundle shows the loop was run (per-component early-validation observations), not just a final green. **D6c — The docs are part of the change, and the docs STORY is part of the human validation.** A change isn't delivered until the documentation tells it. Every prepared issue names its docs surface up front — which pages, at which altitudes — and the PR carries the docs diff beside the code diff. A real docs change is rarely one line: the same truth usually lands in several places at several levels (the quickstart step that touches it, the how-to that walks it, the reference that specifies it, the concept page that explains why), each written for its reader. The human validator's signature covers the docs too, and it is judgment work no checker replaces: does the update *follow the docs story* — right pages, right altitude, consistent with how the docs already teach, explained from the angles a reader actually arrives from — not merely "words were edited somewhere". A docs-less capability or a story-breaking page is an incomplete delivery, same as a red acceptance row. · *Source:* documentation as part of done (DoD discipline); Diátaxis — the four documentation modes are different readers, not duplication. · *Gate:* prepared-issue template requires the "docs surface" section before `ready`; the PR template's bundle includes the docs diff; the value attestation includes the docs-story check. **D7 — Every defect indicts a principle or founds one.** Each fix names the architecture principle it restores (verbatim) and the gate that should have caught it; a defect covered by no principle is a constitution finding that feeds back into `ARCHITECTURE.md`. · *Source:* five-whys to systemic cause (Toyota); the two books talk to each other. · *Gate:* "Principle check" section on fix-requests. ## 7. The two loops — debug before you package The DELIVER arc (Loop box 5) runs **two** loops, not one, and confusing them is the most expensive mistake we make. v0.12.9 proved the bill: \~6 of \~12 wall-clock hours went to driving fixes through the release pipeline to discover whether the *next* layer worked — the pipeline used as a debugger. This cluster (`D-L`) makes the split law, gives debugging an exit criterion and a parallel-inventory discipline, earns the word "flake", and fixes the human to two moments. Its enforcement arms are issues #689, #690, #691; this section is the law they enforce. **D-L0 — Two loops: debug ≠ deliver.** The release pipeline (PR → gates → tag → build, \~40 min/iter) is a *packaging* loop; it must never be used to answer *"does this code work?"*. A hypothesis drops to the **hottest loop that carries the real external semantics** — live staging exec, a ConfigMap overlay of the runtime env, a spawn probe against a dead URL — where an iteration costs seconds to minutes, not a build; ceremony packages *proven* diffs only. · *Source:* the fast inner loop vs. the slow outer loop (Humble–Farley); a build is a packaging step, not an experiment. · *Evidence:* v0.12.8 was cut after four serially-found helm fixes with no assembled-system probe, and the 5th bug was in the new code — PR #684 emitted `containers: [{name}]` in every `kubectl run --overrides`, which merges the containers list *by replacement* and wiped the generated image/env/command, so the API server rejected every Pod (`spec.containers[0].image: Required value`) and every spawn died in \~0.3 s, forcing a full re-cut to v0.12.9; the eventual hot loop (ConfigMap overlay + dead-URL spawn probe) proved the whole chain in \~10 minutes. · *Gate:* #690 (`make probe` — the standing hot loop) * \#689 (the pre-tag real-spawn leg, so the packaging loop never *has* to be the debugger). **\[TO BUILD: #689, #690]** **D-L1 — Debug exit criterion: a green end-to-end probe of the assembled system on the target surface.** You leave debug when the **assembled chain** runs green on the surface that carries the bug — never on "N green unit fixes". The last component compiling is not the exit; the whole journey running on the real surface is. A unit green claims only its unit (P19/D12): four green helm fixes never touched the spawn path that was actually broken. · *Source:* prove at the altitude of the claim (P19) applied to the debug loop's exit. · *Gate:* #690 / #689 — the assembled-system probe *is* the exit criterion, machine-run. **\[TO BUILD: #689, #690]** **D-L2 — Parallel failure inventory before fixing.** On a suspect surface, run the **full-journey probe matrix** (spawn · schedule · boot · join · transcribe · live-view · stop) and sweep **all** component logs **once, before touching a fix** — inventory the whole failure set at once, never peel one bug at a time. Serial onion-peeling pays the outer-loop tax per layer. · *Source:* see the whole line, not one station (Toyota jidoka); log-sweep-before-fix. · *Evidence:* the v0.12.9 helm chain was peeled one bug at a time (#656 → #675/#681 → #677/#680 → #676/#679 → #684), \~3h a single 20-min full-journey probe + one all-component log sweep would have inventoried at once. · *Gate:* #690 — the probe matrix as standing infrastructure. **\[TO BUILD: #690]** **D-L3 — Flake discipline: "flake" is a claim of nondeterminism, and must be earned.** Calling a failure a *flake* asserts the code is correct and the run was noise — a claim, not a shrug. One unexplained failure buys **exactly one** rerun; an **identical second failure forbids further reruns and demands reading the code**. Tool answers (gh CLI state, cached reads, a green that "usually passes") are cross-checked against a second source before you act on them. · *Source:* Heisenbug discipline; a flaky-test claim is a hypothesis to reproduce or refute, never assume. · *Evidence:* the `gate:helm` `printf | grep -q` under `set -euo pipefail` SIGPIPE-raced to exit 141 *exactly on a match* — **deterministic** on ubuntu runners once `$RENDER_AUTH` outgrew the pipe buffer; it "failed the v0.12.9 preflight twice" and was rerun as a flake, two full builds burned, before the code was read (#686). · *Gate:* a durable regression test on the fixed gate (here-strings not pipes, `deploy/helm/tests/test_template.sh`, #686) + this rule in the [TAKE protocol](#take-protocol). **have** (#686) / **\[TO BUILD: rerun-discipline check]** **D-L4 — Human placement: the human appears exactly twice.** The final **witness pass** and the **sign / approve** gates — and nothing else. Everything before is **agent-self-served** — the agent drives its own browser session, raw-protocol clients, synthetic and dead-URL meetings, in-bot screenshots — and **rehearses the demo path end-to-end minutes before the human walks it**. A human asked to admit a bot and handed a dead tunnel, a stale session, or a cold-start model is a scarce oracle spent on the agent's un-run homework. · *Source:* the human is the scarce oracle (D9); the [two choke points](#the-two-choke-points) already name the two moments — D-L4 adds the rehearsal obligation. · *Evidence:* \~8 owner round-trips in v0.12.9 on dead tunnels, stale browser sessions, and a cold whisper model — a demo path the agent had not rehearsed. · *Gate:* the witness receipt structurally requires the **delivered deployment record** (`witness_deployment: {url, provisioned_by, prevalidated[]}` — `release-witness-gate` refuses a receipt without it: the human receives a running URL, never a setup recipe) + #690 (the agent-runnable probe *is* the rehearsal) * [choke point 2](#the-two-choke-points). **have** (receipt-level delivered-deployment gate; choke point 2 named) / **\[TO BUILD: #690 rehearsal probe]** ## 8. Proof — PRs and validation **D8 — Issue = PR, one to one; a PR carries two artifacts — the value bundle and the diff.** The bundle answers *"is the value real?"* (D9/D10); the diff answers *"is it correct and safe?"* (review + D-S). They are judged on different axes and neither substitutes for the other. A diff with no observation bundle is not reviewable, whatever it says. · *Source:* evidence-based review ("show your work"). · *Gate:* PR template requires the bundle; value gate checks the bundle, review + security gates check the diff. **D-S — Security is a required lane on the diff, on both sides.** Value never buys a security pass. The contributor runs the security checks the issue names (dependency + licence scan — architecture P17 — secrets scan, SAST where it applies) and shows them in the PR; the maintainer runs the closing security bundle before a change enters a release. · *Source:* shift-left DevSecOps; defence in depth. · *Gate:* security-checks required status on the PR + a maintainer security bundle before release. **\[TO BUILD: contributor security status]** **D9 — Human validation is an instrument, spent only on the reading machines can't take — cross-checked, never sovereign.** The human supplies one irreducible signal: *"this makes sense to me — I witness the value."* Everything measurable is captured by machine alongside it — the validation is **multichannel**: what the bot did (logs, FSM, egress), what the user saw (the eyeball, screenshots, transcript), what the instruments recorded (counters, test output). The validator is any competent non-author — a maintainer, another contributor, or the originating reporter, who is the *preferred* signer for a fix that closes their own report. **Humans mistake, so the human's observation carries no distinctive authority — it is harnessed in the same paradigm as every other channel**: a green PR requires the channels to *corroborate*, not the human to *assert*, and a human/instrument divergence is a first-class finding that blocks merge until reconciled. · *Source:* triangulation / converging evidence; segregation of duties; no single oracle. · *Gate:* `gate:value-signed` — green only on a non-author attestation whose multichannel bundle is internally consistent. **\[TO BUILD: value-gate bot]** **D10 — Acceptance is a pre-declared experiment that guarantees merge — a floor, never a ceiling on value.** Each issue publishes observations that, if presented, **guarantee** the PR merges — a promise, not a hurdle. Every required observation is **discriminating** (a red→green pair, not just green), **controlled** (a negative control shown red — no green-on-empty), **anchored** (shas, ids, timestamps), and **complete** (no-regression rows). We may require some experiments and propose others — but we **never forbid** a contributor from defining value the issue missed: value is ultimately human-witnessed, and extending it is welcome and credited, never scope creep. If a bundle satisfies the table and the PR is still wrong, the table was wrong — our bug, not the contributor's (the plan-bug rule). · *Source:* ATDD; design-of-experiments controls; emergent requirements (Beck). · *Gate:* acceptance table required before `ready`; the checks bot verifies the bundle covers the floor. **\[TO BUILD: bundle checker]** **D11 — Both outcomes are knowledge.** A contributor who follows the prepared path and finds it does NOT deliver has produced a first-class result: a signed INVALIDATED bundle kills a wrong theory with evidence, credited identically to a confirmation. There is no failure state for an honest validator. · *Source:* falsification (Popper); blameless culture. · *Gate:* verdict field CONFIRMED/INVALIDATED; both close-or-advance the issue and appear in release notes. **D12 — Validate at the altitude of the claim, no higher.** Unit/golden for a seam, live for a behavior; live bars scale to the observation — speaker behavior needs 2–5 people, join/API needs one operator, a parser needs none. Never ask for more humans than the observation requires. · *Source:* the test pyramid (Cohn); architecture P19's runtime twin. · *Gate:* per-component early validation at module altitude; the live bar stated and scaled in the issue. **D12b — Every validation names its deployment, and how the setup was built is itself evidence.** Vexa ships as more than one thing — Lite single-machine compose, the full compose stack, k8s/helm, hosted — and a behavior proven on one is only *proven on that one*. The prepared issue declares which deployment(s) the acceptance table must be run against (and which are explicitly out of scope); every attestation states the setup it validated on. The build provenance of that setup is part of the bundle — repo sha, compose file / values used, fresh-clone or long-lived, the env deltas from stock — because "works on my install" without how the install was made is an unanchored claim (the D10 anchor rule applied to the *environment*). Lite is called out deliberately: it takes the most divergent path through the stack, so a fix proven on the full stack may still need its own Lite run — the issue says so when it does. A deployment nobody validated stays honestly unclaimed in the bundle, never assumed covered. · *Source:* test- environment parity ("it works where, exactly?" — 12-factor dev/prod parity); provenance as evidence. · *Gate:* prepared-issue template requires the deployments-to-validate declaration; the attestation names its setup + build provenance; the bundle checker flags rows with no named deployment. ## 9. People **D13 — Humans author; tools assist. Disclosure welcome, co-authorship never.** What ships carries a human name and a human's full responsibility — the sole author is the human, and responsibility is honored as full authorship: full credit, full standing. "The agent wrote it" is neither a defense nor a discount. Disclosing your tooling in the PR is welcome as transparency, never required, and never an attribution: an agent is not a co-author, gets no `Co-Authored-By` trailer, holds no standing. Tools are instruments; instruments don't sign. · *Source:* engineering accountability; provenance without diffused responsibility. · *Gate:* commit-trailer check rejects agent co-authors; the attestation signer is the accountable author. **\[TO BUILD: trailer check]** **D14 — The tracker is the CI of the human loop.** Labels are truth, not decoration: a state label means exactly what it says, enforced by the state machine (`incoming → prepared → ready → claimed → awaiting-evaluation → value-signed → closed-with-release`). Nothing is claimed before `ready`; community-authored issues enter the same machine. · *Source:* explicit value stream (Lean); make-illegal-states-unrepresentable (Wlaschin). · *Gate:* a label bot enforces legal transitions; `ready` is the maintainer stamp. **\[TO BUILD: label bot]** **D14b — A claim is a heartbeat lease, not ownership.** Anyone claims a `ready` item — no permission needed. A checkout is a **4-hour lease** on a *worktree of your own*, created before your first edit — never `main`, never another session's checkout; building on someone else's branch means branching from the ref into a fresh worktree, not editing their tree (the actor contract's worktree rule, AGENTS.md). A **heartbeat** (a short "here's what's going on" update) renews the lease for another 4 hours. No heartbeat → the lease expires and the item returns to `ready`, claimable by anyone; the prior holder may reclaim with a fresh heartbeat. Work is never hoarded and flow never stalls on an absent contributor — and the heartbeats become the front of the PR's observation bundle, the loop's narration written as it happens. · *Source:* TTL leases (distributed systems); WIP-pull with abandonment; work-stealing. · *Gate:* a lease bot stamps `claimed` + expiry, watches heartbeats, auto-releases on a miss — all on the issue timeline. **\[TO BUILD: lease bot]** ### 9b. The tags — the state machine's alphabet Five orthogonal dimensions; a tag is a claim, and the bots keep every claim true. **Exactly one `state:`, exactly one `kind:` on prepared work, any number of `area:`, `P0` only when production-critical, `good first issue` only when truly zero-prerequisite.** | Dimension | Tags | Rule | | - | - | - | | `state:` | `incoming` · `needs-info` · `prepared` · `ready` · `claimed` · `awaiting-evaluation` · `value-signed` | exactly one, always; transitions only via the machine; `ready` = maintainer stamp; `claimed` = live lease; closure carries no state | | `declined:` | `out-of-scope` · `superseded` · `wont-fix` · `too-far` · `stale` | exactly one, on closed-without-merge only (D17) | | `kind:` | `fix-request` · `evaluation-request` · `probe` | the prepared ask's contract shape; legacy `type: bug\|feature\|docs` stays as the raw signal's nature — an issue carries both | | `area:` | existing taxonomy + `security` | routing; any number | | flags | `P0` · `good first issue` · `help wanted` | strict meanings; never inflate. **Canonical spellings — `good first issue` and `help wanted`, with spaces, are the only accepted forms** (GitHub's newcomer-discovery UI promotes exactly these names); hyphenated or underscored variants (`good-first`, `good-first-issue`, `help-wanted`) are never created and never applied | Invariants the bots enforce: one `state:` at all times; illegal transitions reverted; `ready` maintainer-only on a passing template check; `claimed` only with a live lease; a PR merges only if its issue is `value-signed` + security green; `incoming` >3 days alarms; `needs-info` quiet 14 days → proposed `declined: stale`; every closed-without-merge issue carries one `declined:` reason. ## 10. Release and closure **D15 — Release closes the loop, fast.** A maintainer batches a few value-signed PRs, runs the release machinery (image set, gates, VM-validated) and the closing security bundle, ships, and the notes credit every signer — including INVALIDATED ones. The release loop and the contribution loop are the same loop. · *Source:* small batches, fast flow (Accelerate/DORA); continuous delivery. · *Gate:* release-set + `release/vm-validated` + maintainer-security-bundle required statuses; notes generated from signed bundles. **D16 — The loop closes back to its origin.** When a change ships, the report that seeded it is told — "your report → this fix → this release" — and the reporter is invited to the validation. A fix that ships without closing back leaves the loop open: the person who gave us the truth never learns it landed, and never becomes the repeat contributor they were about to be. · *Source:* close the feedback loop (Deming); the flywheel. · *Gate:* release notes link origin reports; a ship-closes-report step comments on the originating issue. **\[TO BUILD: close-back step]** **D17 — Decline is a first-class outcome; nothing rots.** Not everything is taken forward, and a graceful, reasoned *no* is part of the system: a self-proposed PR not accepted, a prepared issue unclaimed too long, a report out of scope — each closed with one stated `declined:` reason, recorded and auditable. INVALIDATED is the honest-negative of a *delivery*; decline is the honest-negative of a *proposal or a stale item* — both are results. A silent-rot backlog is the failure state we refuse. · *Source:* explicit disposition; stop starting, start finishing (Lean). · *Gate:* every closed-without-merge issue carries a `declined:` reason; intake/stale bots propose declines rather than letting items age. **\[TO BUILD: stale proposer]** **D18 — Every release session ends in a retrospective; abandonment doubly so.** A release session — whether it promoted or abandoned its candidate — closes with a retro stage covering three axes: **loop efficiency** (where wall-time went; which hypotheses ran the packaging loop instead of the hot loop — D-L0), **delivery hardening** (what shipped-or-nearly-shipped that the machine missed, and which gate would have caught it), and **architecture quality** (what class of gap the batch exposed — not the instances, the class). Findings leave the chat as *prepared issues* before the session closes; a reflection that stays in the transcript is a reflection lost. An **abandoned candidate is not an embarrassment to skip past — it is the highest-yield retro input we have** (v0.12.5–v0.12.8 each carried a lesson no green run could teach). · *Source:* the v0.12.9 retrospective — six shipped bugs, two release-infra bugs, and the D-L cluster itself all came out of one retro stage. · *Gate:* the CTO handover template carries the three retro axes; a release event in the planning log links its retro issues. **\[TO BUILD: handover template section]** *** ## 11. How this document changes Like the architecture book: propose the change, record the decision as an ADR under [`docs/adr/`](https://github.com/Vexa-ai/vexa/tree/main/docs/adr) (process decisions live beside build decisions), and update the [enforcement map](#enforcement-map). A principle without its gate enters as TO BUILD, never as silently assumed. *** # Part II — Operating the loop Part I is the law; this part is the loop run day to day, module by module. Each module has one concern, one source of truth, and a contract on its edge — the same discipline the [architecture](/governance/architecture) applies to the software (P23: one writer per carrier). ## The roadmap The [roadmap board](https://github.com/orgs/Vexa-ai/projects/2) is the one ordered queue (D2), grouped into **lanes named by who feels the work**: Google Meet · MS Teams · Zoom · API integrators · Transcription · Recordings · Webhooks & billing · First run · Production ops · Feature shelf. Four axes on every item: * **Lane** — the business value: match it to what the contributor actually uses. * **Milestone** — the version it gates ([`v0.12.x`](https://github.com/Vexa-ai/vexa/milestones) is the current patch stream; its progress bar is the roadmap-at-a-glance). * **Human bar** — what validation costs in human terms: *Desk check* (read the bundle, eyeball the logs) · *Operator run* · *Solo meeting* · *Small group (2–4)* · *Crowd 5+* · *In-the-loop UX* (walk the flow, judge the experience itself). * **Setup** — the infrastructure floor: *None* · *Lite* (one laptop) · *Compose* · *k8s/helm*. Both bars are **extracted from each issue's own acceptance floor**, never assigned by feel — D12's promise (no issue demands more humans than its table justifies) made filterable. **Draft cards with no issue number are declared direction** — we state where a lane goes before the work is prepared; ask about them, don't claim them. The whole board comes back in one public GraphQL call — the query lives in [AGENTS.md](https://github.com/Vexa-ai/vexa/blob/main/AGENTS.md), the repo's agent front door. ### The state machine Every open issue carries exactly one `state:` label: | State | Meaning | | - | - | | `state: incoming` | New report — awaiting triage (target 3 days, D2b; see the current wait on [Support](/support)) | | `state: prepared` | Full delivery spec, code-grounded; awaiting the maintainer's ready stamp | | `state: ready` | Maintainer-stamped — claimable now | | `state: claimed` | Someone is on it (heartbeat lease, D14b: renew by activity; \~4h silence releases) | | `state: awaiting-evaluation` | Delivered — waiting for a non-author to validate the value live | | `state: value-signed` | A non-author witnessed the value; merge proceeds | | `state: accepted` | Feature acknowledged into the queue, not yet prepared | | `state: incident-thread` | User-facing thread of a hosted/ops incident — open for the reporter; fix tracked in the ops lane | | `state: needs-info` | A real, dated question pending; \~14 quiet days → honest stale-close | | `declined: *` (closed) | Every close-without-merge names its reason and what would reopen it (D17) | ## PREPARE protocol ### The prompt You are preparing ONE issue for Vexa-ai/vexa in full compliance with `docs/docs/governance/delivery.mdx`. **Input:** one queue item — a value sentence plus its source signals (GitHub issue numbers, incident postmortems, failure-mode entries, probe findings) — and a checkout of the current tree. **Output:** the artifacts in step 6. You post NOTHING; a human reviews and publishes. #### Step 0 — Read the law Read `docs/docs/governance/delivery.mdx` end to end and `.github/ISSUE_TEMPLATE/3-prepared-issue.md`. Every section you write maps to a principle; when in doubt the principle wins over habit. #### Step 1 — Gather the signal (D4: symptoms only) Read every source issue WITH its comments, every named incident report, every failure-mode entry. Extract: who hurts, what they observed, on which version and deployment, when. Old reports contribute **symptoms only** — never adopt a mechanism-narrative from a stale report. #### Step 2 — Ground in the code as it is (D4, D-A) Locate the real modules/seams in the current tree. Every `Target:` you will write must be a path that exists — verify each one. If the code moved since the report, the issue is shaped by today's tree. Find the module's existing harness and fixtures (D-A): you compose them, you do not invent bespoke scaffolding; a missing harness is architecture debt to surface, named in the issue. #### Step 3 — The D5b split/bundle verdict (explicit, first) State it before writing the body: * Would splitting force the **same diff** into two issues? → bundle: one issue, one value sentence PER value, one acceptance row + preferred validator per value. * Would bundling staple **independent diffs** into one PR? → split: emit a split recommendation (two prepared issues) instead of one bloated issue. * Adjacent-but-different-diff work → a `same-setup:` note naming the batch, never a merge. * **Platform rule (the perceiver bounds the atom):** in-meeting behavior prepares ONE issue per platform, even when the engine diff is shared — a Meet user won't debug Teams, and a validator signs only the platform they sit on. The first platform issue claimed carries the shared-engine change; siblings reference it and validate their own platform's fixtures + live leg. #### Step 4 — Write the body (template sections, in order) 1. **Title** — name the bug and explain it, plainly (D3: named by the problem): for fixes, `component: the defect — its consequence` (house example: "api-gateway: shared HTTP pool starves token validation under load — valid API keys mass-401"); for probes, the question being measured; for features, the capability. Never an aspirational state-sentence ("The API answers while…") — the title states what is wrong, not the world after the fix. 2. **Value this issue delivers** — one witnessable sentence per value (D5/D5b), FIRST: the reader decides whether to care before anything else, so the value leads the body. 3. **Why this matters** — dry, factual stakes: what a user loses, what depends on it, what was observed and where (D3). 4. **Where we are (honest)** — current-code facts, `file:line` for every claim. Unknowns stated as unknowns. **The era note is mandatory when the report predates the current tree:** state the report's version/era vs today's code explicitly — an old-era report means we are *validating new code against a known failure mode of the old code*, and the body must say so in those words, so nobody mistakes an inherited symptom for a confirmed present-tense bug. 5. **Components** — each exactly ONE module or seam, `Target:` a real path (D5, D-A); each a business-named waypoint with early validation in that module's own harness lane and a named fixture **range** — deterministic producer / captured live output / hand-authored edge case (D-A2). A solution needing two modules is two components. 6. **Prepared solution + along-the-way forks** — mechanism, files, steps, and the branches a contributor may actually hit (D6). Alternates welcome, never required. 7. **Acceptance table** — the floor that guarantees merge (D10). Every row: discriminating (red→green pair), controlled (negative control shown red), anchored (sha/id/timestamp), complete (no-regression rows). One discriminating row per stated value (D5b). Floor, never ceiling — extending value is welcome and credited. 8. **Deployments to validate** (D12b) — which of Lite compose / full compose / k8s-helm / hosted the table runs against, which are explicitly out of scope, and whether Lite needs its own run (say so either way — Lite takes the most divergent path). State that every attestation must name its setup + build provenance (sha, compose/values file, fresh-clone vs long-lived, env deltas). 9. **Docs surface** (D6c) — the pages this change must touch and at what altitude: quickstart step / how-to / reference / concept, each for its reader. Usually several files. "No docs impact" must be argued, never assumed. 10. **Live bar** (D12) — scaled to the observation: speaker behavior 2–5 people, join/API one operator, a parser none. Never more humans than the observation requires. 11. **Validation request** (D9) — the preferred signer is the originating reporter(s), named; any competent non-author qualifies. Multichannel: what the bot did, what the human saw, what the instruments recorded — channels must corroborate. 12. **Principle check** (D7, fix-requests only) — the architecture principle this defect indicts (verbatim) and the gate that should have caught it; if none covers it, say so — that is a constitution finding. #### Step 5 — Labels, board, closures * Labels: `state: prepared` (only a maintainer flips to `ready`) · `kind: fix-request | evaluation-request | probe` · legacy `type:*` kept · `area:*` · P0 only if production-critical. * Board: where it sits in the one ordered queue, and its `same-setup:` batch note. * Supersede list: which raw issues close into this one, each with a drafted closing comment that links here and invites the reporter to validate when it ships (D16). #### Step 6 — Self-audit, then emit Run the gate checklist: value sentence(s) witnessable · every Target exists · every component has a harness + fixture range · table rows discriminating/controlled/anchored/complete · row per value · deployments declared · docs surface named · live bar scaled · preferred signer named · D5b verdict stated · D7 check present (fixes). Then emit, in order: 1. the D5b verdict, 2. the full issue body, 3. the label set, 4. the supersede/close list with drafted comments, 5. open questions for the maintainer — anything you could not ground in code or signal. **Never guess to fill a section**; an honest open question beats a confident invention. #### Honesty rules (override everything) No promise the project can't keep. Every code claim carries `file:line`. Every behavior claim names its deployment. Uncertain solutions ship as forks, not as facts. If preparation reveals the queue item itself is wrong (already fixed, wrongly bundled, not reproducible), emitting that finding IS the deliverable (D11 applies to preparation too). ## TAKE protocol ### The prompt You are triaging ONE pull request against Vexa-ai/vexa in full compliance with `docs/docs/governance/delivery.mdx`. **Input:** one PR that claims a prepared issue, and a checkout of the current tree. **Output:** one verdict (step 6) with its full evidence map. You are reviewing against a **pre-declared floor** — the issue promised that presenting the table merges the PR; TAKE exists to keep that promise exactly, in both directions. #### Step 0 — Read the law and the claim Read `docs/docs/governance/delivery.mdx`, the claimed issue END TO END (body + comments — rulings and sharpenings live in the thread), and the PR (body + every commit). D8: issue = PR, one to one. A PR claiming no issue, or several, is returned for scoping before any review. #### Step 1 — The bundle gate (before reading a line of the diff) The PR carries two artifacts judged on different axes: the **observation bundle** (is the value real?) and the **diff** (is it correct and safe?). **A diff with no bundle is not reviewable, whatever it says** — request the bundle, warmly, and stop. Do not review code on vibes and do not let a good-looking diff substitute for evidence. **The machine rows count.** The bundle is assembled from two sources: the harness's runs on the PR's head sha (`gates`, `pr-value` — the machine-presented rows) and the contributor's own witness (everything above the automation line). Before requesting a bundle, check what the harness already presented — asking a contributor to hand-write evidence `pr-value` carries on their sha is our process bug, not their gap. #### Step 2 — Floor mapping, in the issue's own numbering Rebuild the issue's acceptance table AS DECLARED (A1…An) and map every row to the PR's evidence. **Detect renumbering and thinning** — a PR body that re-labels or quietly drops rows hides its gaps; the map is always in the issue's numbering, never the PR's. Per row: * **presented** — red→green pair shown, negative control shown red, anchors present (base+head shas, ids, timestamps); **a green `pr-value`/`gates` run on the head sha is `presented` for every row those legs carry** — link the run, don't re-demand the row; * **partial** — claimed but missing its control, its anchor, or its red side; * **missing** — including the rows only a live leg can carry. The live row exists precisely because unit greens can lie; never waive it for a plausible diff — but route it to the cheapest rung that carries it (the ladder, §Validation) before routing it to a human. #### Step 3 — The diff on its own axis Review correctness, security (the checks the issue names, D-S), and architecture conformance (the P-book: fix at the point of introduction, contracts owned by the core, per-runtime front doors, comments state the designed present). **Spot-check the PR's code claims in the tree** (D10's plan-bug rule cuts both ways — verify before you assert). Two questions always: 1. Does the change hold **at the altitude of the claim** (P19) — is user-facing behavior proven by a live leg, or only by unit green? 2. Do the negative controls actually discriminate — would the test stay green if the fix were reverted? #### Step 4 — The plan-bug rule (own our half) If the bundle satisfies the table but the change is still wrong — or the contributor was misled by an imprecise issue — **that is OUR bug in the table, not theirs.** Say so in the review in those words, sharpen the issue in its thread so the floor is exact for the next attempt, and never let a table defect read as a contributor failure. #### Step 5 — Tone (first contributions are load-bearing) Credit what is verifiably right FIRST, and say what you verified ("checked, correct" beats silence). Findings carry `file:line` and the failure scenario, never adjectives. On a contributor's first PR, post the validation-protocol explanation (the two human layers and the exact path to merge) so nothing surprises them after the fixes — the review comment is also the onboarding. #### Step 6 — The verdict (exactly one) Every verdict names the **head sha it examined** — a later push renders the endorsement visibly historical, the same way GitHub dismisses stale approvals (#621: a TAKE praised a head the author replaced hours later, and the stale endorsement stood while the architecture changed underneath it). * **Floor met + diff sound** → arrange the value validation: a **non-author** runs it live (preferred signer: the originating reporter, D16/D9), multichannel evidence corroborating, attestation naming setup + build provenance (D12b). On the signature: merge, label `state: value-signed`, credit author AND validator. * **Floor not met** → CHANGES\_REQUESTED with the row-by-row map from step 2 and the exact, finite path to merge — then restate the promise: present the table and this merges. Nothing beyond the floor may be demanded (value beyond it is welcomed and credited, never required). * **Diff unsound** → CHANGES\_REQUESTED with the grounded findings; pair every 🔴 with the fix direction the issue's prepared solution already implies. * **Wrong work entirely** (doesn't deliver the claimed issue) → decline honestly: what it would take, what would reopen it, and whether the diff carries value worth its own issue. #### Step 7 — After merge: close the loop `value-signed` → ships in the next release batch (D15) → the issue closes **with the release**, the close-back names the fix and invites the reporter who validated (D16), and release notes credit authors and signers by name. An issue closed without its reporter hearing about it is an unclosed loop. #### Honesty rules (override everything) The floor is a floor: never move it mid-review, never demand past it. Every finding carries `file:line` and a concrete failure scenario. A human-red is never bounced back as "try again" — fully elaborate the failure on instruments first, then request the next human attempt. **A red is not a flake until earned** (D-L3): one unexplained failure buys exactly one rerun, an identical second demands reading the code — never rerun a deterministic red into green. An invalidation ("row A3 is red") is a first-class, credited result. If TAKE reveals the issue itself was wrong, saying so publicly IS the deliverable (D11). ## Debugging — the hot loop [Validation](#validation) is machine-first *proof*; this module is how a provable diff is *produced*. It operates the `D-L` cluster ([§7](#the-two-loops)): the packaging pipeline is never the debugger, and a hypothesis is tested on the hottest loop that carries the real external semantics. **Pick the hottest loop that carries the real semantics (`D-L0`).** Rank the loops by iteration cost and by how much external truth each carries; drop the hypothesis to the *hottest one that still exercises the real failure*: | Loop | Iter cost | Carries | Use it to | | - | - | - | - | | unit / golden | seconds | one seam, mocked edges | localize a seam bug you can already name | | **assembled hot loop** — live exec · ConfigMap overlay · spawn probe | seconds–minutes | the real chain on the real surface | **answer "does this work?"** — this is the debug loop | | release pipeline — PR → gates → tag → build | \~40 min | the packaged artifact | package a *proven* diff — never to discover one | If you find yourself cutting a build to learn whether the next layer works, you are debugging in the wrong loop — stop and build the overlay / probe that carries the same semantics in minutes. **Inventory in parallel, before the first fix (`D-L2`).** On a suspect surface, run the full-journey probe matrix — spawn · schedule · boot · join · transcribe · live-view · stop — and sweep **every** component's logs **once**, before touching a fix. Write the whole failure set down, then fix. Serial onion-peeling pays the outer-loop tax per layer (v0.12.9's helm chain: \~3h of one-bug-at-a-time a single 20-min sweep would have inventoried). **Leave debug only on the assembled-system green (`D-L1`).** The exit is a green end-to-end probe of the *assembled* system on the surface that has the bug — not the last component compiling. A unit green claims only its unit (P19/D12). **Earn the word "flake" (`D-L3`).** A failure is not a flake until you have earned the claim. One unexplained failure → **exactly one** rerun; an identical second failure → **stop rerunning, read the code**. Cross-check tool answers (CLI state, cached reads) against a second source before acting. A deterministic failure rerun as a flake burns builds and hides the bug (v0.12.9's SIGPIPE gate, #686). **Rehearse before the human (`D-L4`).** The human appears exactly twice — the witness pass and the sign/approve gates. Everything else the agent self-serves (own browser session, raw-protocol clients, synthetic and dead-URL meetings, in-bot screenshots), and the agent **runs the demo path end-to-end minutes before the human walks it** (`make probe` is the rehearsal, #690). A human handed a dead tunnel or a cold model is a wasted oracle. ## Validation ### The ladder — machine first, human last Validation is a ladder; each rung runs **as early and as often as it can be automated**, and a human is asked only for what no rung below can see (D9: the human is the scarce oracle). The rungs, and where the machinery runs them: | Rung | Proves | Machinery | When | | - | - | - | - | | **L1/L2 — sound** | isolation, contracts, units, licenses, build | `gates` | every PR push, \~5 min | | **L3 — delivers** | the PR's own tree assembles and drives the full product FSM — join lifecycle, failure attribution, transcript-segment emission, concurrent bots, acts — through the **real** backend (mock bot: real orchestrator + real adapters; only join/audio faked) | `pr-value` | every runtime-surface PR, \~10–15 min | | **L3.5 — transcribes** *(to build)* | fixture audio → real pipeline → real CPU STT → **golden words** land via the API — no Meet, no human | wav→words leg | PRs touching the transcription path; every release | | **L4 — artifact truth** | the *published* images deliver on every deployment shape (compose · mock-FSM · 0.10-compat · bot-spawn · lite · helm) + fresh-VM concurrent-bots | `release-validate` + VM leg | every release, ≤10 min re-runnable | | **L5 — witnessed value** | a real Meet, real audio, real admission → words a human saw land, plus the batch's user-visible values walked once | the release **witness script** over the eval lane (`bot/eval/run.sh`: autonomous verdict; human acts: admit + speak + walk the script, \~10 min) | once per release — the combined pass | Two laws fall out of the ladder: * **The machine presents what the machine can prove.** A green `pr-value` run on the PR's head sha **is** the live-leg evidence row for backend-visible behavior — TAKE step 2 consumes it directly. Contributors hand-assemble only the rows above the automation line: platform-specific behavior, UX, real external services. Never ask a contributor or a human validator to re-witness a rung the harness already witnessed on their exact sha. * **Claim only your rung** (P19/D12 restated for the ladder). `pr-value` green does not claim audio→words; L3.5 green does not claim real-Meet admission. Every rung's report names what it proved AND the rungs it explicitly does not reach — an over-claimed rung is a false green, treated as an incident (the v0.12.1 lesson: a machinery-green release was published as if value-witnessed; the witness was still unsigned). ### The human signature Before merge, a **non-author** signs what they witnessed **above the automation line** — after the **author's own witness**: the author runs their change live first and their run is the bundle's first row; you never ask another human to witness value you haven't witnessed yourself. Where every acceptance row sits at or below the automation line (behavior `pr-value`/L3.5 proves on the PR's sha), the machine rows stand as the live witness and the non-author signs the *review of the evidence*, not a re-run. The attestation is **multichannel** — what the bot did (logs), what the human saw (the meeting, the transcript), what the instruments recorded (test output, API responses) — and the channels must **corroborate**: a human/instrument divergence blocks merge until reconciled, as a finding in its own right (D9). Per **D12b** it names its setup and build provenance: deployment, repo sha, fresh-clone or long-lived, env deltas from stock. Per **D6c** it covers the docs story. Validators are credited in release notes alongside authors; the originating reporter is the preferred signer (D16); an invalidation is a first-class, credited result (D11). ## Integration — the merge bar Main is **always releasable, never auto-released**. A PR enters it when: the acceptance floor is presented (TAKE, step 2 — machine rows + contributor rows) · the diff passes review + the named security checks (D-S) · the value is signed (D9) · sealed-contract changes rode `lane:contract` with a human review · the full CI gate suite is green **and `pr-value` is green when the PR touches a runtime surface** — the machine contract between every PR and main ([the live map](/governance/arch-compliance)). **Merge is the promise to the contributor, honored.** **One rule for sealed-contract re-stamps.** A back-compatible re-seal MAY ride the delivering PR when (a) the PR carries `lane:contract`, (b) the seal hunk is named in the PR body, and (c) a maintainer performs the merge — the merge IS the ruling. Breaking changes and cross-contract mirror divergences (the api.v1 `MeetingCompletionReason` case, #607) always get an explicit issue-recorded ruling first. (One day, three contract acts, three ad-hoc treatments — #755 re-sealed in-PR, #607 ruled human-only, #765 held for an explicit maintainer act — all defensible; the inconsistency was the defect.) **`Closes` asserts the full acceptance table is delivered; a partial delivery links `Part of #N` (a plain reference, not a closing keyword). The merge card enforces it** — a `Closes`-target issue with undelivered acceptance legs is a ❌ row on the card (choke point 1), so a dropped leg is a decision on record, never a GitHub-keyword side-effect. Cross-reference sweeps miss what was never referenced, so the closure mechanism (#712) carries a second detection mode: **periodic mechanism-vs-tree verification over open prepared issues** — reading whether the tree already delivers an issue, not whether a PR happens to link it (one night surfaced eleven stale-open issues, five of them delivered by PRs that named no issue at all — invisible to any link sweep). ## Release — the ship bar **A release is the promise to users** — a batch event, distinct from merge: 1. **Batch** — the value-signed merges since the last release, cut on the version milestone. 2. **Validate together** — the release machinery proves the batch as a whole (the compose stack bot-ready end-to-end, L4 evidence); individually-proven changes can still interfere. 3. **Publish** — images built and pushed; **tags move per the declared tag policy** (`:v012` moves every release; `:latest` only by explicit, policy-conformant promotion) — artifact pointers are part of the release's truth surface. 4. **Credit + coverage** — release notes name authors **and** validators, per change (D11/D15), and carry the **coverage statement**: which deployments/platforms each change was validated on and which stay *honestly unclaimed* (D12b). A release is proven on what we name — never a bare "works". 5. **Close back** — every issue in the batch closes *with the release*; its reporter is invited to validate on the shipped artifact (D16). An issue closed without its reporter hearing about it is an unclosed loop. 6. **The milestone ticks** — the public progress bar is the release ledger. **The value-witness law.** "All value witnessed" is a *named act*, never an inference from machinery green (the v0.12.1 incident: promoted and published on L4 alone, witness unsigned): * **PR-level value is machine-witnessed.** A PR's value rows are proven by the harness on its own sha (`pr-value`, path-aware legs); no human eyeballs individual PRs. A PR reaches the human only as *proven value + reviewed diff* — or when it needs a genuine ruling. * **Every release carries ONE combined-value witness pass.** The release generates a **witness script** from the batch: a single live session (one real meeting on the release candidate + one product walkthrough) in which every user-visible value shipped in the batch is experienced once. The autonomous legs surround it; the human contributes the irreducible minimum — admit the bot, speak, walk the script (\~10 min). Backend-invisible changes are listed under the script with their machine evidence, witnessed by proxy and named as such. * **Publish and promote are the same act** for witness purposes: neither happens before the witness pass is signed. A release published unwitnessed is retracted to pre-release until the pass is met. **The verdict-latency law.** The release loop is only honest if it is also *fast to re-ask*: * **Re-verdict in ≤10 minutes, no rebuild.** The release verdict (the validate legs) must be re-obtainable against already-published artifacts without rebuilding anything unchanged. Build+publish and validate+promote are separate machinery; a harness fix re-runs only the second. · *Gate:* `release-validate` is independently dispatchable with a version input. * **Harness fixes iterate off-main.** A validation-harness change is testable from its branch against the published set *before* it merges — a smoke-script fix must never cost a PR→merge→full-pipeline round trip per attempt (the v0.12.1 maiden run paid 3 × \~20–50 min for two one-line harness fixes; this law is that bill, paid once). * **Silence is an incident signal.** A triggered release run that has produced no first job within 10 minutes is stuck, not slow — check the runner queue instead of waiting (the same maiden run lost 50 minutes to an unwatched queue stall). ### The guarantee — what every release promises, and what proves each line Owner-approved canon (2026-07-13). The release notes carry this block **generated from the actual run results with links** — never written by hand. A line that cannot link its proof is stated as *honestly unclaimed*; a hidden gap is an incident. 1. **Every artifact users pull is the artifact we proved.** All images — services, agents, workers, bot — published, and validation ran against those published bytes, never a local build. · *Proof: release-validate pulls-only; the install digest audit (#569).* 2. **The product works end-to-end on every documented install path.** Compose, lite, Kubernetes: up from scratch, product FSM green. · *Proof: the deployment-shape matrix.* 3. **Real audio becomes correct, speaker-attributed words.** Fixture audio → real pipeline → real STT, exact-words oracle, both pipelines. · *Proof: the wav→words leg (#560); until it ships, this line reads "proven at the witness pass only" — and the notes say so.* 4. **A fresh machine with nothing on it succeeds.** Clean cloud VM, documented install, working bots. · *Proof: the fresh-VM leg, born and destroyed per release.* 5. **Nothing that worked before broke.** Prior-release behavior holds; 0.10 clients still function; deliberate breaks recorded by name. · *Proof: v010-compat + no-regression rows.* 6. **Every image contains what its name promises.** · *Proof: image-identity leg.* 7. **A human witnessed the assembled value.** One live pass on the release candidate — real meeting, real words, every user-visible batch change walked once — signed by the human who did it. **No signature, no release.** · *Proof: the witness pass.* 8. **Every change in the batch was individually proven before it entered.** Machine-validated on its own tree, diff-reviewed, merged through the card. · *Proof: pr-value + gates green on each merged head.* 9. **The notes tell the truth about coverage.** Proven-on-what-we-name, per path, per leg; the honestly-unclaimed list explicit; every author and validator credited; the loop closed to every reporter. · *Proof: the guarantee block is machine-generated from run results.* 10. **Pointers moved honestly.** `:v012` only after all of the above; `:latest` only by explicit ruling; the 0.10 line never touched. · *Proof: promote's constitutional guards.* ## The two choke points The whole delivery loop routes through exactly **two** engineered human moments — everything else is autonomous machinery or agent work. Adding a third human gate anywhere is a process regression; making either of these two vague is a process bug. **Choke point 1 — the merge card, one per PR.** Before any merge, the maintainer receives ONE card, plain language, no jargon, no flood: 1. **What you get** — the value in one or two sentences, in user terms. 2. **Is it real?** — the proof, honestly: which machine legs ran green *on this PR's sha* (linked), what the contributor witnessed themselves, and — never omitted — what is NOT yet proven and which later gate carries it. 3. **The change** — the diff in plain words: what was touched, how big, where the risk sits, what the review found (fixed or outstanding). 4. **Your decision** — the exact ask, one sentence, and what changes on each answer. A card that buries the gap, inflates the proof, or asks two questions is returned to its author (us). The maintainer rules on the card in minutes; they never re-derive evidence. **Choke point 2 — the release witness pass, one per release.** The batch's user-visible value, walked once, live, on the release candidate (the witness script; ship bar above). The human acts where machines cannot — admission, and seeing the assembled product deliver. The agent **rehearses the whole path end-to-end minutes before** — every tunnel, session, and model warm — so the human meets a working demo, not the agent's un-run homework (D-L4). ## Asking the human The human is the scarce oracle (D9) — so every ask of them is engineered, not tossed over the wall. Whenever the loop needs a human verdict — a `ready` stamp, a ruling, a validation leg, a release call — the request obeys this contract: * **One concern per ask, one ask at a time.** Never a wall of parallel questions; the queue is ours to hold, not theirs to untangle. The next ask waits for the verdict on this one. * **The full bundle in one shot.** Everything the decision needs arrives together: the value at stake, the reasoning, the architecture implications, the recommendation with its trade-off — no follow-up round-trip to assemble context the asker already had. * **No jargon — readable at both altitudes in the same text.** The CEO reading (what value, what risk, what it costs) and the CTO reading (which module, which principle, which gate) must both land without translation. Codenames and session shorthand never survive into an ask. * **Say exactly what the verdict changes.** An ask is a decision with consequences, never an FYI; if nothing changes on their answer, don't ask. * **One eyeball request at a time** (the validation form of the same rule): a human validation ask names one flow, fully instructed, earned by a green instrument first — never "try again" as a probe (D9's human-red rule). ## The maintenance cycle The standing duty loop that drives every open PR toward merge and forms release batches — run it on every PR event and as a daily sweep. PREPARE and TAKE are per-item prompts; this is the orchestrator that invokes them. Only the `ready` stamp, the merge, and the ship are maintainer acts (D-R0); everything else in the cycle is species-neutral. ### The prompt You are running one maintenance cycle over Vexa-ai/vexa. Input: the open PRs, the tracker, the board. Output: every open PR advanced exactly one honest state (or explicitly left, with why), and a release verdict. You never lower a floor, never merge unsigned value, never let silence rot a claim. **Step 1 — sweep every open PR, oldest first, and classify:** * **No linked issue** (pre-constitution or drive-by) → the era rule: a PR is *signal + a candidate diff*. Map it: delivers a now-prepared issue → invite adoption (author claims the issue; their diff meets its floor); valuable but unprepared → run PREPARE seeded by the PR; era-superseded → decline with credit and what would reopen it. * **Bundle missing** → request it warmly (TAKE step 1) and stop there — never review a diff on vibes. * **Awaiting triage** → run TAKE → one verdict. * **Changes requested** → heartbeat check: active → wait; silent days → one nudge (issue + Discord); silent past the lease → release the claim, mark the PR draft, thank the author, requeue the issue. * **Floor met, awaiting validation** → drive it: ping the preferred signer (the reporter); no signer in reach → recruit any competent non-author (the lane names the species); an owner-only leg → surface it to the owner explicitly per [Asking the human](#asking-the-human), never let it wait silently. * **Value-signed** → merge same-day (the promise, honored), label, credit in the thread. **Step 2 — cross-PR invariants:** two PRs on one issue → the earlier claim holds, the later gets an honest note (and its novel value, if any, becomes a fork on the issue). One PR spanning two issues → split request (D8). Every touched issue/PR leaves the cycle with exactly one `state:` label. **Step 3 — release ripeness.** After merges, ask: is a release due? Triggers, any one sufficient: a P0 fix merged (ship fast) · the value-signed backlog reaches a batch worth validating together · a milestone checkpoint or time-box arrives. Ripe → run the [ship bar](#release--the-ship-bar) end to end: batch → validate together → publish + move tags per policy → notes crediting authors and signers → close-backs to every reporter → milestone tick. Not ripe → say what would make it ripe. **Step 4 — report facts.** End the cycle with the dashboard, not adjectives — its FIRST line is always the pipeline position (intake → prepared → ready → claimed → delivering → validating → merged → release), counts per stage, so no one ever asks where we are: PRs by state · each blocked-on-whom (named) · validation legs scheduled · release ETA and its trigger · incident threads owing updates. A cycle that touched nothing states why that is correct. **Honesty rules:** the floor is the floor (never raised mid-review, never waived for a plausible diff) · a human-red is elaborated on instruments before any human is asked again · silence is released, never punished · every decline names its reopen condition (D17). ## Enforcement map | Principle | Gate | Status | | - | - | - | | D1 enforced-not-aspirational | this table stays current in every delivery PR | **have** (manual) | | D-A targets resolve to real modules | preparation review: `Target:` paths exist | **have** (manual review) | | D-A2 fixture ranges | preparation review: early validations name fixtures | **have** (manual review) | | D-R0 two species | branch protection (merge) · `state: ready` maintainer-only | **have** (branch protection) / **TO BUILD** (label permission bot) | | D2 one ordered queue | the Vexa Roadmap project board is the single source | **have** (board live) / **TO BUILD** (coverage check) | | D2b 3-day intake SLA | report forms auto-label `state: incoming`; intake bot ages them | **have** (forms) / **TO BUILD** (ager) | | D3/D4 business meaning + code grounding | preparation review checklist | **have** (manual) | | D5/D6 issue shape | issue template with required sections | **have** (`.github/ISSUE_TEMPLATE/3-prepared-issue.md`) | | D5b bundle-by-diff | split/bundle test at preparation review; one acceptance row per stated value | **have** (template note + manual review) / **TO BUILD** (row-per-value in bundle checker) | | D6c docs ride the change; docs declare their release; docs story human-validated | `docs-current` (product-surface PR updates docs/ or declares `docs: none`) · `gate:docs-version` (docs stamp == appVersion) · attestation covers the docs story | **have** (CI: `docs-current-gate` + `gate:docs-version`, [ADR-0032](https://github.com/Vexa-ai/vexa/blob/main/docs/adr/0032-docs-currency-gates.md)) / **TO BUILD** (content-accuracy stays human) | | D12b deployment named + setup provenance | "deployments to validate" required before `ready`; attestation names setup + build provenance | **have** (templates) / **TO BUILD** (bundle checker flags rows with no named deployment) | | D7 principle check on fixes | fix-request template section | **have** (prepared-issue template) | | D-L0/D-L1 debug ≠ deliver + assembled-probe exit criterion | the standing hot loop (`make probe`) + a pre-tag real-spawn leg, so the packaging pipeline is never the debugger | **TO BUILD** (#689 real-spawn leg · #690 `make probe`; [ADR-0033](https://github.com/Vexa-ai/vexa/blob/main/docs/adr/0033-the-two-loops-debug-flake-human.md)) | | D-L2 parallel failure inventory before fixing | full-journey probe matrix + one all-component log sweep, as standing infrastructure | **TO BUILD** (#690 probe matrix) | | D-L3 "flake" is earned | durable regression test on the fixed gate + the one-rerun rule in TAKE | **have** (#686 `deploy/helm/tests/test_template.sh`) / **TO BUILD** (rerun-discipline in the checks bot) | | D-L4 human placement — exactly twice + rehearsal | agent-rehearsable probe is the rehearsal; choke point 2 names the witness moment | **have** (choke point 2 named) / **TO BUILD** (#690 agent-rehearsable probe) | | D8 bundle + diff | PR template requires the observation bundle | **have** (`.github/pull_request_template.md`) | | D-S security lanes | contributor security status + maintainer bundle | **TO BUILD** (status) / **have** (maintainer practice) | | D9 value-signed, corroborated | `gate:value-signed` checks non-author + channel consistency (merge-time) · **release-time:** `value-gate` requires every batch PR pr-value-green/value-signed | **have** (CI: `merge-card-gate` merge-time, `release-value-gate` release-time; [ADR-0029](https://github.com/Vexa-ai/vexa/blob/main/docs/adr/0029-release-witness-and-value-gates-enforced.md)/[ADR-0030](https://github.com/Vexa-ai/vexa/blob/main/docs/adr/0030-merge-card-value-and-diff-gate.md)) | | D10 acceptance floor | bundle-vs-table check (merge-time) · **release-time:** guarantee line 8 enforced by `value-gate` | **TO BUILD** (bundle checker) / **have** (CI: `release-value-gate`) | | Merge bar — value + diff accepted (choke point 1) | `merge-card` required status check: value-fsm green + `state: value-signed` (value) AND a fresh non-author review approval (diff) | **have** (CI: `merge-card-gate`, [ADR-0030](https://github.com/Vexa-ai/vexa/blob/main/docs/adr/0030-merge-card-value-and-diff-gate.md)) | | Contributor onboarding — explain the change | PR template + CONTRIBUTING recommend Discord; `pr-welcome` nudges first-timers (recommended, never a gate) | **have** (templates + CI) | | D11 both verdicts credited | release-notes generation from bundles | **TO BUILD** | | D12 altitude-scaled validation | stated live bar in every prepared issue | **have** (manual review) | | D13 human sole author | commit-trailer check (reject agent co-authors) | **TO BUILD** | | D14/D14b state machine + lease | label bot + lease bot | **TO BUILD** | | D15 release machinery | release-set gate · `release/vm-validated` · **witness + value gates on promote** (publish/promote split; `witness-gate` + `value-gate` + the `release-promote` Environment; `release-published-guard` retracts an unwitnessed release) | **have** (CI: [ADR-0029](https://github.com/Vexa-ai/vexa/blob/main/docs/adr/0029-release-witness-and-value-gates-enforced.md)) | | D16 close-back to reporter | ship-closes-report step | **TO BUILD** | | D17 declined-with-reason | closed-without-merge requires one `declined:` label | **have** (manual) / **TO BUILD** (stale proposer) | Machinery tracking: the TO BUILD rows are one work item (the delivery checks bot: label state machine, lease TTL, value gate, bundle checker, intake/stale agers, trailer check) — tracked on the roadmap as delivery-machinery work. # How Vexa governs itself Source: https://docs.vexa.ai/governance/index The full governance map: two constitutions, two protocols, the surfaces and actors of the delivery loop, who enforces what, and how the law itself changes. Vexa is governed by written, enforced law — not convention. Three documents, each governing a different noun; two operational protocols bookending the contribution loop; a set of surfaces where humans and agents meet the system; and one amendment mechanism through which the law itself evolves. This page is the map. ## The trinity | Document | Governs | Character | | - | - | - | | **[Architecture](/governance/architecture)** — the P-book (P1–P23) | the **artifact**: what the software must be — structure, contracts, isolation, data-flow, proof altitudes | timeless · machine-enforced | | **[Delivery](/governance/delivery)** — the D-book (D0–D17) | the **flow**: how change earns its way in — intake → prepare → roadmap → claim → deliver → prove → release → close-back | cyclic · process-enforced | | **[AGENTS.md](https://github.com/Vexa-ai/vexa/blob/main/AGENTS.md)** — the actor contract | the **actor**: how a session (human, agent, or both) behaves inside a checkout | per-session · ledger-enforced | AGENTS.md is deliberately the thinnest: it owns no law of its own — it *binds* a session to the other two and adds only session mechanics (worktree isolation, the expect→verdict loop, the claim heartbeat). ## The two protocols Each phase of the delivery loop has an operational protocol — an agent-runnable prompt, not prose about process: * **[PREPARE](/governance/delivery#prepare-protocol)** — signal → spec. Turns one queue item (a raw report, an incident, a failure mode) into a prepared issue: code-grounded, harnessed, carrying an acceptance table that *guarantees* merge. * **[TAKE](/governance/delivery#take-protocol)** — PR → verdict. Triages a delivered PR against its issue's declared floor: bundle before diff, row-by-row in the issue's own numbering, the floor never moved, the plan-bug rule owned on our side. The prepared issue is the hinge between them: the *output* of PREPARE and the *input* of a contributor's work — a PRD whose acceptance table is a merge promise. ## Surfaces and actors — one pass around the loop | Stage | Actor | Surface | Governed by | | - | - | - | - | | Discover | remote agent / human | this site's `/llms.txt` (auto-generated) · [AGENTS.md](https://github.com/Vexa-ai/vexa/blob/main/AGENTS.md) (the repo agent front door, 28+ tools read it natively) · README | — | | Feed back | remote agent / user | **GitHub issues** — every report enters `state: incoming`; 3-day triage is the target, not today's wait ([the current queue](/support)) | D2b | | Prepare | maintainer's agents | the tracker | PREPARE | | Stamp + roadmap | maintainer | the [board](https://github.com/orgs/Vexa-ai/projects/2): Lane × Milestone × Human bar × Setup | D-R1 / D2 | | Pick | contributor's agent | one GraphQL call ([contributing](/governance/delivery#the-roadmap)) | — | | Claim | contributor | issue comment + **Discord hello** (the human-to-human channel) + heartbeat | AGENTS.md / D14b | | Build | contributor + agent | the checkout: issue-as-PRD, worktree, gates | AGENTS.md binding the P-book | | Deliver | contributor | the two-artifact PR: observation bundle + diff | D8 | | Take | maintainer | the PR, against the declared floor | TAKE | | Validate | **a non-author human** | a real meeting / deployment — multichannel, provenance-anchored | D9 / D12b | | Release + close back | maintainer | release notes credit author *and* signer; the reporter is invited to validate | D15 / D16 | ## Who enforces what * **The P-book: machines.** The CI gate suite (28 gates) — red or it didn't happen. The live map of principle → gate is [Architecture compliance](/governance/arch-compliance), generated, never hand-edited. * **The D-book: process.** The state-label machine (exactly one `state:` per issue), acceptance floors, value signing. The enforcement map — including the honestly-marked TO-BUILD rows (the `value-signed` status check, the label bot) — is [the enforcement map](/governance/delivery#enforcement-map). * **The actor contract: visibility.** No gate checks the expect→verdict loop — the human reading the ledger *is* the gate. * **[Contributor rights](/governance/contributor-rights): declaration + DCO + attributable corporate authorization.** Individuals make one conscious choice and encounter no CLA; employer-controlled work waits for a private receipt bound to the current PR head. ## How the law itself changes No principle is edited casually. The amendment loop: > surprise → root-cause **with a human** → learning → **ADR** on `lane:contract` (human-reviewed) > → new principle in the P-book or D-book → new gate that enforces it. The case law lives in [`docs/adr/`](https://github.com/Vexa-ai/vexa/tree/main/docs/adr) — decision records the constitutions cite by number. Machine models keep both books executable: the P-book's is [`architecture.calm.json`](https://github.com/Vexa-ai/vexa/blob/main/architecture.calm.json) (FINOS CALM, drift-gated); the D-book's is the roadmap board itself. ## The one idea underneath Agents made code cheap. The scarce input is **verified truth about delivered value** — so every mechanism above exists to route human attention to the one thing only humans can give: *"I ran it, and I witness the value."* Validation is credited as authorship's equal, invalidation is a first-class result, and nothing merges on anyone's say-so alone — including ours. # Calendar sync Source: https://docs.vexa.ai/how-to/calendar-sync Connect one or more calendars with secret ICS addresses — upcoming meetings import automatically and retain their source. Connect your calendars once and Vexa keeps your **Upcoming** meetings in sync: every calendar event with a Meet/Zoom/Teams link becomes a [planned meeting](/core/meetings#the-lifecycle--one-meeting-one-row), and the bot [auto-joins](/core/meetings#auto-join--scheduled-means-the-bot-comes) each one at start time. No OAuth, no calendar permissions — it works off the **secret ICS address** your calendar already provides. You can connect up to **ten** calendars, each with its own auto-join policy and bot name — see the [Calendar API](/api/calendar) for the endpoints. ## 1. Find your secret ICS address **Google Calendar** 1. Open [Google Calendar settings](https://calendar.google.com/calendar/r/settings) → pick your calendar under **Settings for my calendars**. 2. Scroll to **Integrate calendar**. 3. Copy **Secret address in iCal format** — it looks like `https://calendar.google.com/calendar/ical/you%40company.com/private-…/basic.ics`. > [!WARNING] > > **Not** the field above it. The *Public address in iCal format* (`…/public/basic.ics`) only > works for calendars you've made fully public — for a normal private calendar Google answers > it with `401`/`404`, and Vexa will show you exactly that error. The *Public URL* and *Embed > code* are web pages, not feeds — pasting one is rejected at save with a pointer back here. > **No 'Secret address in iCal format' field? (Google Workspace)** > > On a **Google Workspace** domain the secret address is governed by an admin policy, and under > the Workspace default (*"Only free/busy information"*) Google **hides the field entirely** — > the section ends at the public address. A Workspace admin unlocks it domain-wide: > > 1. [admin.google.com](https://admin.google.com) → **Apps → Google Workspace → Calendar** > 2. **Sharing settings** → **External sharing options for primary calendars** > 3. Select **"Share all information, but outsiders cannot change calendars"** and save. > > Propagation usually takes minutes (Google says up to 24 h). Reload the calendar settings page > and the **Secret address in iCal format** field appears below the public one. > > This only enables the *possibility* of detailed external sharing — nothing is exposed until a > user actually hands out their secret address, and each address is revocable per calendar > (**Reset** next to the field). **Outlook / Microsoft 365** 1. Outlook on the web → **Settings → Calendar → Shared calendars**. 2. Under **Publish a calendar**, pick your calendar, permissions **Can view all details**, and click **Publish**. 3. Copy the **ICS** link. > [!WARNING] > > The ICS address is a **secret** — anyone holding it can read your calendar. Vexa stores it > accordingly: it is never shown back in full (reads return a masked form), and the sync fetch runs > through the same server-side request guard as webhooks. Revoke it anytime from your calendar's > settings ("Reset" in Google Calendar) — then reconnect with the new address. ## 2. Connect it — and get an answer immediately On hosted Vexa, the dashboard lives at **[dashboard.vexa.ai](https://dashboard.vexa.ai)** — a different host from `vexa.ai`, which carries the site and sign-in and has no calendar page. Sign in there and open **Calendar** from the sidebar. Give the connection a recognizable name such as **Work** or **Personal**, paste the secret address, choose whether meetings from that calendar should auto-join, and click **Connect**. Repeat this for each feed you want Vexa to follow (up to 10 active connections). Everything the dashboard does here is the [calendar API](/api/calendar) underneath, so a self-hosted deployment — which ships the API but not the hosted dashboard — connects feeds the same way with `POST /user/calendars`. The API is the complete surface; the examples are below. The same page groups **Upcoming auto-joins** by source calendar. Each calendar has its own **Default bot name**, used when that calendar arms an unattended join. For a meeting present in several calendars, the first source with auto-join enabled supplies the bot name. **Connecting runs a sync on the spot** — within seconds the panel answers with the result, not silence: * `✓ Synced just now — imported 3` — done; the meetings are under **Upcoming**. * `✓ Synced just now — 0 imported, 0 updated` — the feed is fine and already reconciled, or it has no event inside the current import window. * `⚠ Last sync failed: …` — the actual reason, named (see the [error reference](#reading-the-sync-status) below). Each connection keeps its own **last sync status**, **Auto-join** switch, **Sync now**, and **Disconnect** action — no waiting on the background cycle after you add an event or change a preference. ### How often Vexa checks the feed * **Connect and Sync now:** run the same reconciliation immediately. * **Hosted calendar rollout:** polls each connected feed every **60 seconds**. * **Self-hosted default:** polls every **5 minutes**. Operators can change this with `CALENDAR_SYNC_INTERVAL_S`. * **Bot scheduling:** checks due planned meetings every **30 seconds** by default. A bot becomes eligible **60 seconds before** `scheduled_at` and remains eligible until **10 minutes after** it. The calendar provider controls when an edit appears in its published ICS feed, so the practical delay is provider publication time plus up to one Vexa polling interval. Sync now cannot make an edit visible before Google or Outlook has published it to the feed. Over the API: ```bash Connect a named feed theme={null} curl -X POST "$API_BASE/user/calendars" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"name":"Work","ics_url":"https://calendar.google.com/calendar/ical/…/private-…/basic.ics","auto_join":true,"bot_name":"Work Notes"}' ``` ```bash Sync right now → the fresh result theme={null} curl -X POST "$API_BASE/user/calendars/$CALENDAR_ID/sync" -H "X-API-Key: $API_KEY" # {"calendar_id":"…","calendar_name":"Work","last_sync":"2026-07-08T15:30:00+00:00","last_error":null,"counts":{"created":3,"updated":0,"cancelled":0}} ``` ```bash Read the last sync status theme={null} curl "$API_BASE/user/calendars/$CALENDAR_ID/sync" -H "X-API-Key: $API_KEY" ``` `GET /user/calendars` lists the masked connections. The original `/user/calendar` endpoint remains available for single-calendar clients and refers to the first active connection. The singular `/user/calendar/sync` compatibility endpoint synchronizes all active connections and returns an aggregate stamp. See the [Calendar API](/api/calendar) for exact schemas and statuses. Legacy single-calendar clients can still set or read the user-wide fallback bot name through the compatible singular preferences edge: ```bash Set the default auto-join bot name theme={null} curl -X PUT "$API_BASE/user/calendar" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"bot_name":"My Meeting Notes"}' ``` ### Multi-calendar API reference | Operation | Endpoint | Result | | - | - | - | | List connections | `GET /user/calendars` | Named connections with masked URLs; secret feed URLs are never returned. | | Connect | `POST /user/calendars` | Creates one connection from `name`, `ics_url`, `auto_join`, and optional `bot_name`. | | Rename or configure | `PATCH /user/calendars/{calendar_id}` | Updates `name`, `ics_url`, `auto_join`, `bot_name`, or `enabled` for only that connection. | | Disconnect | `DELETE /user/calendars/{calendar_id}` | Removes that source without changing other connections. | | Read sync state | `GET /user/calendars/{calendar_id}/sync` | Returns that connection's latest sync stamp. | | Sync now | `POST /user/calendars/{calendar_id}/sync` | Fetches and reconciles only that connection immediately. | Imported meeting metadata includes `data.calendar_sources`, an array of source objects with the stable connection `id`, display `name`, provider event `uid`, source `auto_join` preference, per-calendar `bot_name`, and the complete event snapshot. Consumers should use the array rather than the single-source convenience fields when they need complete provenance. ## What Vexa stores Vexa does not keep a second calendar-event database. A connected feed and an imported meeting have separate storage responsibilities: | Data | Durable home | Notes | | - | - | - | | Named calendar connections, secret ICS URLs, per-feed auto-join, per-feed bot name | The user's `data` JSON document in Postgres | User-facing reads mask the feed URL. The full URL crosses only the authenticated internal sync edge. | | Imported events | Ordinary rows in the Postgres `meetings` table | A future event is a planned meeting with `status: "scheduled"`. | | Event and calendar provenance | The meeting's `data` JSON document | Includes scheduling, attendees, calendar source IDs/names, and provider event UIDs. | | Latest sync time, error, and created/updated/cancelled counts | Redis | Operational status under the user/connection sync key; this is not the durable event authority. | | Bot attempts | The same meeting row plus `meeting_sessions` rows | Auto-join claims the planned meeting in place through the normal bot lifecycle. | | Transcript segments | Postgres `transcriptions` rows linked to the meeting | Finalized meeting output remains addressable by the meeting ID. | | Recording and processed post-meeting metadata | The meeting's `data` JSON document | Media objects themselves use the configured object store. | An imported meeting currently carries this calendar-specific shape (alongside its ordinary meeting fields): ```json theme={null} { "status": "scheduled", "data": { "scheduled_at": "2026-08-14T15:00:00+00:00", "calendar_uid": "provider-event-uid", "calendar_connection_id": "calendar-uuid", "calendar_name": "Work", "calendar_managed": true, "calendar_sources": [ { "id": "calendar-uuid", "name": "Work", "uid": "provider-event-uid", "auto_join": true, "bot_name": "Work Notes", "event": { "resolved_start": "2026-08-14T15:00:00+00:00", "calendar": { "name": "VCALENDAR", "properties": { "VERSION": [{"value": "2.0"}], "PRODID": [{"value": "-//Provider//Calendar//EN"}] } }, "component": { "name": "VEVENT", "properties": { "UID": [{"value": "provider-event-uid"}], "ORGANIZER": [{ "value": "mailto:owner@example.com", "parameters": {"CN": "Owner"} }], "X-PROVIDER-FIELD": [{"value": "provider-value"}] } } } } ], "attendees": [ { "email": "person@example.com", "name": "Person", "partstat": "accepted" } ] } } ``` `calendar_sources` is the authoritative multi-calendar provenance. The singular `calendar_connection_id`, `calendar_name`, and `calendar_uid` fields are compatibility conveniences for the first source. ### Participants and current metadata boundary ICS `ATTENDEE` entries are synchronized into `data.attendees`. Vexa preserves the normalized email, optional display name, and participation status (`partstat`, such as `accepted` or `tentative`) for ordinary people. Calendar rooms and resources are excluded from this convenience list, but remain present in the complete event snapshot. Attendee additions, removals, and response changes follow the feed while the meeting is still planned. The per-source `event` snapshot preserves every event property in its canonical iCalendar text representation, including every property parameter, repeated property, provider `X-` extension, and nested component such as `VALARM`. It also preserves the top-level `VCALENDAR` properties. For a moved or otherwise overridden recurring occurrence, `event.component` is the selected occurrence and `event.series_master` retains the RRULE master. `event.resolved_start` is the UTC occurrence Vexa actually scheduled. This is a JSON-safe event snapshot, not the original feed: it deliberately does not contain the secret ICS URL or unrelated events. Vexa normalizes the commonly queried title, start, meeting link, and people into ordinary meeting fields while retaining the complete source component for consumers that need organizer, description, location, end time, recurrence, sequence, revision, categories, custom provider properties, or other calendar metadata. ## Reading the sync status Every failure names its fix — these are the messages the panel (and the API stamp's `last_error`) can show: | Message | What it means | Fix | | - | - | - | | `the URL answered HTTP 401` / `HTTP 404` | You pasted the **public** iCal address of a private calendar. | Use the **secret** address (`…/private-…/basic.ics`). | | `the URL returns a web page, not a calendar feed` | An embed/share *page* URL, not a feed. (Google's embed page is also rejected at save.) | Copy the address from **Integrate calendar**, not the browser's address bar. | | `the URL redirects — paste the final feed URL` | The address bounces through a redirect; the guarded fetch doesn't follow them. | Paste the URL the redirect lands on. | | `the URL doesn't return an ICS calendar (no BEGIN:VCALENDAR)` | The server answered, but not with calendar data. | Check you copied the full `.ics` address. | | `the feed is too large (over 2 MB)` | Unusually huge feed. | Sync a specific calendar rather than an aggregate. | | `couldn't reach the URL (unreachable, timed out, or a blocked/internal address)` | Network failure, or the address points somewhere the server-side guard refuses (internal hosts). | Verify the URL opens from a browser; use the calendar provider's public host. | ## What imports (and what doesn't) * **Events with a recognizable meeting link** — Meet, Zoom, or Teams, found in the event's conferencing field, location, or description — can auto-join. Link-less events still appear as planned calendar entries, but Vexa has nowhere to send a bot until a meeting link is added. * **One meeting per event — the next occurrence only.** A recurring series tracks its next upcoming occurrence; the one after imports once the current completes. * **Moves and cancellations follow the feed.** A rescheduled event moves its meeting; a cancelled or deleted event removes it. Title, start time, meeting link, and attendee changes are also reconciled while the row remains planned. Once the bot lifecycle claims the meeting (requested, active, completed, or failed), calendar sync never rewrites that live or historical record. * **Your manual plans are respected.** If you already planned a meeting on the same link, the calendar event links up with it instead of creating a duplicate — your title and workspace binding win. * **One meeting can have several sources.** If Work and Personal contain the same native meeting, Vexa keeps one meeting and records both named calendar sources. The meeting detail page shows them under **Imported from**. ## Auto-join for imported meetings Every calendar connection has its own **Auto-join** switch and **Default bot name**. A meeting shared by multiple connected feeds auto-joins when at least one source has auto-join enabled; the first auto-joining source in stable source order supplies its bot name. You can still override auto-join per meeting in its prep view. Connections created without an explicit bot name default to the legacy user-wide setting, then `Vexa`. ## Disconnect On **Calendar**, choose **Disconnect** for the exact named feed. Meetings that also belong to another calendar keep that source and remain. A future planned meeting owned only by the removed calendar is cleaned up; a manual plan that the calendar had adopted remains. Other connections and their credentials are untouched. ## It's not syncing? The panel's status line is the first stop — it names the failure. For the broader checklist (self-host env, link-less events, timing) see [Troubleshooting → Calendar isn't syncing](/troubleshooting#calendar-isnt-syncing). # Chat with your workspace Source: https://docs.vexa.ai/how-to/chat-workspace Ask an agent that has your whole knowledge base as context — and let it record what you decide. **Chat** is a [dispatch](/core/agents) fired *now*: you send a message, an agent works your [workspace](/concepts#workspace) — every meeting, email, and note already compiled there — and answers, streaming back live. This is not retrieval over a document store; the workspace is a maintained Markdown knowledge base the agent reads and edits like a developer in a repo. ## Ask a question The endpoint returns **Server-Sent Events**: ```bash theme={null} curl -N -X POST "$API_BASE/agent/chat" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"prompt":"What did we agree with Acme on pricing, and what is still open?"}' ``` Each `data:` line is one frame: | frame | fields | meaning | | - | - | - | | `message-delta` | `text` | a chunk of the streamed reply | | `tool-call` | `tool`, `args`, `callId` | the agent invoked a tool | | `tool-result` | `callId`, `ok`, `summary` | that tool returned | | `commit` | `sha` | the agent wrote to the workspace (git commit) | | `rejected` | `violations` | a write was blocked by governance | | `done` | `reply`, `sessionId`, `ok` | turn finished | ## Record a decision (trusted write) Because input from you is **trusted**, the same agent can write — record a decision, update an entity, draft a doc. Just ask: ```bash theme={null} curl -N -X POST "$API_BASE/agent/chat" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"prompt":"Record that Acme renewed at the Q3 pricing, effective July 1."}' ``` Watch for a `commit` frame — `git` is the durable state and the undo. ## Continue a conversation Pass `session` to keep context across turns; reset or inspect history: ```bash theme={null} # continue a session -d '{"prompt":"And who owns the follow-up?","session":""}' curl -X POST "$API_BASE/agent/chat/reset" -H "X-API-Key: $API_KEY" \ -H "Content-Type: application/json" -d '{"session":""}' # → {"ok":true} curl -H "X-API-Key: $API_KEY" "$API_BASE/agent/sessions" # list sessions curl -H "X-API-Key: $API_KEY" "$API_BASE/agent/sessions//history" ``` ## Build a cross-source briefing The agent grounds its answer in everything the workspace holds, so you can ask it to pull a topic together across past meetings and emails: ```bash theme={null} -d '{"prompt":"Brief me on the Acme account: every meeting and email, the open decisions, and the next step."}' ``` This is the **knowledge agent** pattern — the output is anchored in accumulated context, and each run leaves the workspace a little more complete. > [!NOTE] > > A `rejected` frame means governance blocked the write. Trusted chat may write; untrusted triggers (email, > web) are propose-only — see [Governance](/architecture/governance) and > [Troubleshooting](/troubleshooting#agent-write-was-rejected). # Use a custom STT endpoint Source: https://docs.vexa.ai/how-to/custom-stt Point Vexa at any OpenAI-compatible speech-to-text service, including self-hosted FunASR or SenseVoice gateways. Vexa sends meeting audio to one OpenAI-compatible speech-to-text endpoint. The endpoint can be the bundled faster-whisper service, Vexa's hosted transcription service, or a self-hosted gateway that implements the same request shape. Use this path when you want a different ASR model without changing the bot, meeting-api, or live transcript pipeline. > [!TIP] > > **Hosted, no install:** [connect your agent](https://vexa.ai/connect?utm_source=docs\&utm_medium=tip\&utm_campaign=how-to-custom-stt) (Claude Code, Codex, Cursor) or [get an API key](https://vexa.ai/start?utm_source=docs\&utm_medium=tip\&utm_campaign=how-to-custom-stt) (free credit, no card required). Self-hosting: [Deployment](/deployment). To transcribe **later** instead — or on hardware Vexa never talks to — send the bot with transcription off and collect the audio afterwards: [Capture now, transcribe later](/how-to/deferred-transcription). ## Contract Vexa appends `/v1/audio/transcriptions` to `TRANSCRIPTION_SERVICE_URL` and sends multipart form data: | Field | Required | Notes | | - | -: | - | | `file` | yes | Audio window captured by the bot. | | `model` | yes | Comes from `TRANSCRIPTION_MODEL`, or `whisper-1` when unset. | | `language` | no | Present when the bot request pins a language. | | `response_format` | no | Backends may return plain JSON or verbose JSON. | The minimum response Vexa needs is: ```json theme={null} { "text": "transcribed speech" } ``` Backends may include segments, words, timestamps, duration, or usage metadata. Keep those fields additive: the meeting pipeline must still work when only `text` is present. ## Configure Vexa Set these variables in `deploy/compose/.env`: ```bash theme={null} TRANSCRIPTION_SERVICE_URL=http://:8000 TRANSCRIPTION_SERVICE_TOKEN= TRANSCRIPTION_MODEL= ``` `TRANSCRIPTION_SERVICE_URL` is the base URL. Do not include `/v1/audio/transcriptions`; Vexa appends that path. If the backend ignores the `model` form part, leave `TRANSCRIPTION_MODEL` unset. If it validates model ids, set the exact served name. ## Before you swap: the bundled model has a knob The bundled faster-whisper service chooses its model from `MODEL_SIZE`, which defaults to **`large-v3-turbo`** (`core/meetings/services/transcription/src/transcription/main.py`). Turbo is a faster, lighter distillation of `large-v3` — it trades some accuracy for speed and VRAM, and how much depends on the language. If accuracy on yours matters more than latency, change one variable before you go looking for a different engine: ```bash theme={null} MODEL_SIZE=large-v3 ``` Set it on the **transcription unit** (`deploy/transcription/.env`), not on the main stack. That unit ignores the `model` form part a caller sends and serves whatever `MODEL_SIZE` names, so `TRANSCRIPTION_MODEL` has no effect on it — `TRANSCRIPTION_MODEL` exists for backends that *validate* a model id. See `deploy/transcription/README.md`. ## Example: FunASR or SenseVoice > [!NOTE] > > **Client path validated upstream; complete meeting deployment still needs a witness.** The FunASR > maintainers ran Vexa's own `TranscriptionClient` against the FunASR 1.3.26 OpenAI-compatible server > with SenseVoice on CPU ([#928](https://github.com/Vexa-ai/vexa/pull/928)). Chinese, English, > Cantonese, Japanese, Korean, and concatenated Chinese-English samples all produced non-empty > transcripts, verbose segments, and duration metadata. **No Vexa maintainer has reproduced this** — a > bot-in-meeting run and the `platform_settings` override path remain unwitnessed on either side, and > are tracked in [#863](https://github.com/Vexa-ai/vexa/issues/863). A self-hosted FunASR/SenseVoice gateway is a **working example of this contract**: a real non-Vexa backend that has been run against Vexa's own client and answered with non-empty verbose responses. That is a claim about **portability**, not about quality. **Which model transcribes your languages best is your decision — Vexa does not benchmark third-party models.** Measure your own audio before you switch. Run or deploy a gateway that accepts: ```bash theme={null} curl -sS http://:8000/v1/audio/transcriptions \ -H "Authorization: Bearer " \ -F file=@sample.wav \ -F model=sensevoice \ -F language=zh ``` Then point Vexa at the same host: ```bash theme={null} TRANSCRIPTION_SERVICE_URL=http://:8000 TRANSCRIPTION_SERVICE_TOKEN= TRANSCRIPTION_MODEL=sensevoice ``` The official `funasr-server --model sensevoice` exposes `sensevoice` as its served model id. A Hub checkpoint path such as `FunAudioLLM/SenseVoiceSmall` is not automatically an API model id; verify the names exposed by your gateway's `GET /v1/models` route. The official Fun-ASR-Nano server uses `fun-asr-nano`. Other gateways may expose different names. > [!WARNING] > > FunASR 1.3.26 transcribes all five languages correctly, but when `language` is omitted it reports > `language: "zh"` for every verbose response. Pin the meeting language when accurate metadata matters. > The upstream fix is tracked in > [modelscope/FunASR#3400](https://github.com/modelscope/FunASR/pull/3400). > [!NOTE] > > Vexa treats the STT service as a network dependency. Put the ASR runtime on a GPU box if needed, and > keep the main stack CPU-only. ## Preflight before a meeting Test the endpoint from the Vexa host before sending a bot: ```bash theme={null} curl -sS "$TRANSCRIPTION_SERVICE_URL/v1/audio/transcriptions" \ -H "Authorization: Bearer $TRANSCRIPTION_SERVICE_TOKEN" \ -F file=@sample.wav \ -F model="${TRANSCRIPTION_MODEL:-whisper-1}" ``` Accept the endpoint only if it returns HTTP 2xx and a non-empty `text` field. A 404 usually means the base URL already included `/v1` or `/v1/audio/transcriptions`. A 401 or 403 means the token is missing or wrong. A `model_not_found` response means `TRANSCRIPTION_MODEL` does not match the served model id. ## Keep provider errors attributable When adding or operating a custom STT backend: * Preserve the raw HTTP status in logs. * Keep provider error messages sanitized, but do not collapse every failure into "transcription failed". * Separate route errors, auth errors, model-id errors, and audio-format errors. * Keep long-audio chunking on the backend side if the model has a fixed window limit. That makes a bad URL, expired token, unsupported model id, or model-specific audio limit diagnosable without changing the meeting bot. # Brief me every morning Source: https://docs.vexa.ai/how-to/daily-brief An unattended agent that runs on a schedule and commits to your workspace. A **routine** is a scheduler entry — a trigger plus a plan. The agent runs with no one watching, works your [workspace](/concepts#workspace), and commits; the output is replayable later. ## Create the routine ```bash theme={null} curl -X POST "$API_BASE/agent/routines" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{ "name":"Morning brief", "cron":"0 8 * * 1-5", "prompt":"Brief me from overnight activity — new meetings, decisions, and follow-ups due today. Write it to brief/today.md.", "run_now":true }' # → 201 {"routine":{...},"job_id":"job_...","ran_now":true} ``` `cron` is a standard five-field expression — `0 8 * * 1-5` is 08:00 every weekday. `run_now:true` also fires it once immediately so you can verify the output without waiting. ## Manage it ```bash theme={null} # list curl -H "X-API-Key: $API_KEY" "$API_BASE/agent/routines" # pause / resume curl -X PATCH "$API_BASE/agent/routines/Morning%20brief/enabled" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"enabled":false}' # delete (by routine id) curl -X DELETE "$API_BASE/agent/routines/" -H "X-API-Key: $API_KEY" ``` ## Read the result ```bash theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/agent/workspace/file?path=brief/today.md" ``` ## Variations Same machinery, different trigger or plan: * **On an event** — run when something happens (e.g. a new email) instead of on a clock: [Triage incoming email](/how-to/email-triage). * **After a meeting** — write a report when a call ends: [Report after every meeting](/how-to/post-meeting-report). Only the trigger changes — same agent, same isolation, same governance. # Capture now, transcribe later Source: https://docs.vexa.ai/how-to/deferred-transcription Record a meeting without transcribing it, then download the audio and run it through your own speech-to-text — on your schedule, on your hardware. Vexa can join a meeting, capture the audio, and **not transcribe it**. You collect the recording afterwards and put it through whatever speech-to-text you like — a batch job overnight, a model on your own GPU, a vendor Vexa never talks to. **Don't have a key yet?** Hosted: sign in at [vexa.ai/signin](https://vexa.ai/signin) with a Google account and copy your key from [your account page](https://vexa.ai/account) — free credit, no card required. Self-hosted: `make all` prints a key when the stack comes up. This is not the same as [Use a custom STT endpoint](/how-to/custom-stt), which keeps Vexa's real-time pipeline and swaps the engine behind it. Here there is no engine: nothing is transcribed during the call, and the audio file is the deliverable. ## Two flags, not one **`transcribe_enabled: false` on its own leaves you nothing to retrieve.** It turns transcription off. It does not turn recording on — recording is gated separately by `recording_enabled`, and a bot that ran with both off captured a meeting that now exists nowhere. Set both: ```bash POST /bots theme={null} curl -X POST "$API_BASE/bots" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"platform":"google_meet","native_meeting_id":"abc-defg-hij","bot_name":"Vexa", "transcribe_enabled":false,"recording_enabled":true}' ``` Each flag resolves the same way: an explicit value in the request wins, else the deployment's `TRANSCRIBE_ENABLED` / `RECORDING_ENABLED` env, else `true`. A non-boolean is refused with `422` rather than coerced. Because `transcribe_enabled` is `false`, the spawn does not require an STT backend, so the `503` that normally refuses a bot on a deployment with no speech-to-text configured cannot fire. A capture-only bot joins a stack that has no ASR at all. The meeting's `transcription_provider` is frozen to `"none"` at spawn — the durable record that this meeting was never transcribed by anyone. It surfaces in the `meeting.completed` webhook's [`service_provenance`](/api/meetings#completion-service-provenance) block. ## Confirm nothing was transcribed ```bash GET /transcripts/{platform}/{native_meeting_id} theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/transcripts/google_meet/abc-defg-hij" ``` ```json Response — 200 theme={null} { "segments": [] } ``` An empty segment list is the **expected** result here, not a failure. With transcription off the bot builds a no-op transcriber: audio still flows through capture and turn-gating, no speech-to-text client is ever constructed, and every window returns empty text. Nothing leaves for any STT service, and there is nothing to poll for. ## Find the recording ```bash GET /recordings theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/recordings" ``` ```json Response — 200 theme={null} { "recordings": [ { "id": 481159273044, "meeting_id": 12345, "status": "completed", "media_files": [ { "id": 730928415562, "type": "audio", "format": "webm", "file_size_bytes": 31233, "duration_seconds": 41.6, "is_final": true } ] } ] } ``` Wait for `status: "completed"`. While the bot is still in the call the recording exists with `status: "in_progress"` and grows chunk by chunk. ## `/master` hands you JSON, not audio **The `master` route returns metadata.** It finalizes the recording and tells you where the bytes are; it does not serve them. ```bash GET /recordings/{recording_id}/master theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/recordings/481159273044/master?type=audio" ``` ```json Response — 200 theme={null} { "id": 481159273044, "type": "audio", "storage_path": "…/audio/master.webm", "media_file_id": 730928415562, "raw_url": "/recordings/481159273044/media/730928415562/raw?type=audio", "duration_seconds": 41.6 } ``` **`media_file_id` is not the recording id.** Both are independent random 12-digit numbers and neither can be derived from the other. Repeating the recording id in the byte path — `/recordings/481159273044/media/481159273044/raw` — answers `404 No such media file`. Use the `raw_url` the response hands you, or read `media_files[].id` off the recording. Never construct it. ## Download the audio ```bash GET — the raw_url from above theme={null} curl -H "X-API-Key: $API_KEY" \ "$API_BASE/recordings/481159273044/media/730928415562/raw?type=audio" \ -o meeting.webm ``` `200` with `Content-Type: audio/webm` (or `audio/wav` where the deployment records WAV). The body is a real WebM container: its first four bytes are the EBML magic `1a 45 df a3`. The route honours HTTP `Range`, so you can pull the file in parts, resume an interrupted transfer, or stream it straight into a transcoder. See [Retrieve a meeting recording](/how-to/recordings#range-requests-playback-and-seek). ## Transcribe it on your own terms From here it is an ordinary audio file. Nothing about the next step is Vexa's: feed it to a local Whisper, an OpenAI-compatible endpoint, a batch service, or leave it in cold storage until somebody asks. Until you fetch it, the recording sits in the bucket configured by `MINIO_*` ([Configuration](/configuration#database-storage)) — on a self-host, your own object storage, which the audio never leaves. ## What this path covers | | | | - | - | | **Audio** | Yes. One `audio` media file per recording, WebM or WAV. | | **Video** | **No.** `recording_enabled: true` asks the bot for audio *and* video, but no video capture path ships — the video recorder has no callers, `media_files` only ever holds an `audio` entry, and `playback_url.video` stays `null`. Tracked in [#980](https://github.com/Vexa-ai/vexa/issues/980). | | **Per-speaker audio** | No. Speaker separation exists only as text in the transcript, and this path has no transcript. | | **Real-time transcription by a backend of yours** | A **different** route — `PUT /user/transcription` ([Settings API](/api/settings#transcription-backend)), which keeps transcription live and points it at your endpoint. It is not part of this path and is not exercised by it; see [#1031](https://github.com/Vexa-ai/vexa/issues/1031) for known defects in it before you rely on it. | > [!NOTE] > > **What has been verified.** The sequence on this page — capture-only spawn, empty transcript, > finalized recording, `/master`, byte download — was run end-to-end against the hosted API on > 2026-08-21: a bot joined a live Google Meet with `transcribe_enabled: false` and > `recording_enabled: true`, both participants spoke, `GET /transcripts/…` returned zero segments, and > the downloaded body was a WebM whose length matched the recording's `file_size_bytes` exactly. > > Not verified by that run: video recording (there is no video path), WAV-format deployments, and the > real-time customer-backend route above. ## Related * [Retrieve a meeting recording](/how-to/recordings) — listing, `Range` playback, where the bytes live. * [Use a custom STT endpoint](/how-to/custom-stt) — keep transcription live, change the engine. * [Meetings API](/api/meetings#send-a-bot-to-a-meeting) — the full `POST /bots` parameter set. # Triage incoming email Source: https://docs.vexa.ai/how-to/email-triage An event-triggered agent that turns new mail into proposed tasks — safely. Email is an **Integration**, not a backend object. A new email is an **inbound event** that can fire the [scheduler](/concepts#scheduler); the agent reads and drafts through the integration's MCP tool. ## Why this one is different: untrusted input Email is attacker-controllable and **prompt-injectable**, so triage runs [propose-only](/architecture/governance): the agent gets the mailbox `ro` and **cannot write or send directly**. It emits proposal cards — `record` (a task/note), `draft`, `send` (external) — a human approves, and trusted code applies. A `send` stays gated until you approve it. ## Fire a triage on a new email An integration delivers the email as an `event.v1` event carrying a plan: ```bash theme={null} curl -X POST "$API_BASE/agent/events" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{ "name":"email.received", "source":{"uri":"mailbox://u_jane/INBOX/AB12CD"}, "plan":{"prompt":"Triage this email into tasks. Propose a record for each action item and a draft reply if one is warranted."} }' # → 202 {"workload_id":"agent-...","trigger":"event"} ``` > [!WARNING] > > The event **must carry a plan** — `POST /events` returns `422` if `plan` is absent. See the > [error reference](/api/errors#by-surface). ## Approve the proposals The dispatch emits `proactive-card.v1` frames on its [Stream](/architecture/streaming). Approving a `record` commits it to the workspace (a trusted applier does the write); approving a `send` executes it through the integration. Nothing leaves your control without that approval. ## Make it standing To triage automatically for every inbound message, bind a triage routine to the email integration so each `email.received` event dispatches the agent — the inbound trigger replaces the manual `POST /events` call above. See **Integrations** and [AI routines](/how-to/daily-brief). # Get a Google Meet transcript via API Source: https://docs.vexa.ai/how-to/google-meet-transcript-api Google Meet transcript API: send a bot to the meeting with one POST, then read the live transcription over REST or WebSocket. Send a bot to the meeting with **one POST**, then read the transcript **while the call is still running**. The bot joins Google Meet like any participant — no plugin, no host configuration — and streams back a speaker-attributed transcript you either poll over REST or subscribe to over WebSocket. > [!TIP] > > **Hosted, no install:** [connect your agent](https://vexa.ai/connect?utm_source=docs\&utm_medium=tip\&utm_campaign=how-to-google-meet-transcript-api) (Claude Code, Codex, Cursor) or [get an API key](https://vexa.ai/start?utm_source=docs\&utm_medium=tip\&utm_campaign=how-to-google-meet-transcript-api) (free credit, no card required). Self-hosting: [Deployment](/deployment). ## 1. Send the bot ```bash theme={null} curl -X POST "$API_BASE/bots" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"platform":"google_meet","native_meeting_id":"abc-defg-hij","bot_name":"Vexa"}' ``` `native_meeting_id` is the id **inside** the join URL — `abc-defg-hij` in `https://meet.google.com/abc-defg-hij` — not the whole URL. Have only the URL? Send `meeting_url` alone; the API parses it into `platform` and `native_meeting_id`: ```bash theme={null} curl -X POST "$API_BASE/bots" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"meeting_url":"https://meet.google.com/abc-defg-hij","bot_name":"Vexa"}' ``` `$API_BASE` is `https://api.cloud.vexa.ai` hosted, or `http://localhost:18056` self-hosted. Optional on the spawn: `language` (ISO code; omit for per-window auto-detection) and `task` (`transcribe` default, or `translate`). ## 2. Read the transcript live Segments stream in as the meeting runs. Poll: ```bash theme={null} curl -H "X-API-Key: $API_KEY" \ "$API_BASE/transcripts/google_meet/abc-defg-hij" ``` ```json theme={null} { "segments": [ { "speaker": "Jane Liu", "text": "Let's lock the renewal pricing by July 1.", "start": 12.4, "end": 15.1, "language": "en", "completed": true, "confidence": 0.93 } ] } ``` Live drafts arrive as `completed: false` and are replaced by `completed: true` confirmations. For per-segment push instead of polling, subscribe on the gateway's `/ws`: ```json theme={null} { "action": "subscribe", "meetings": [ { "platform": "google_meet", "native_id": "abc-defg-hij" } ] } ``` ## Google Meet specifics * **Admission.** The bot may be parked in a lobby until a host admits it — admit it like any guest. A run that ended there reports [`awaiting_admission_timeout` or `awaiting_admission_rejected`](/troubleshooting/completion-reasons); `automatic_leave.max_wait_for_admission` sets how long it waits. * **Joining as a real account.** With `authenticated: true` the bot uses a persistent browser profile and joins as your Google account instead of an anonymous guest. If that profile is signed out it refuses to join with `auth_session_missing` rather than silently degrading — see [Authenticated bots](/authenticated-bots). * **Leaving on its own.** An active bot leaves after 10 minutes with no remote microphone audio and finishes as `completed(left_alone)`. Widen it per meeting with `automatic_leave.max_time_left_alone`. ## Stop the bot ```bash theme={null} curl -X DELETE "$API_BASE/bots/google_meet/abc-defg-hij" -H "X-API-Key: $API_KEY" ``` ## See also * [Send a bot and get a transcript](/how-to/send-a-bot) — the full walkthrough, all platforms * [Meetings API](/api/meetings) — every parameter, status, and response shape * [Troubleshooting](/troubleshooting) — the bot joined but there is no transcript **Roadmap:** [speaker separation on mixed audio](/roadmap/items/speaker-separation) · [name mapping from a roster you supply](/roadmap/items/name-mapping) · [upload a recording of an in-person meeting](/roadmap/items/in-person-upload). # Run a live meeting copilot Source: https://docs.vexa.ai/how-to/live-copilot Surface people, action items, and decisions as a call happens — approve them into the workspace. A **meeting copilot** rides the live transcript: a dispatch stays non-idle on the stream and emits **proactive cards** — a new person, an action item, a decision — as they come up. Approving a card commits it to your [workspace](/concepts#workspace). Same agent and governance as everything else; only the trigger (the transcript stream) differs. The flow usually starts before the call: [plan the meeting](/how-to/plan-a-meeting) (or let [calendar sync](/how-to/calendar-sync) plan it), bind its prep workspace, and the bot auto-joins at start — members of the bound workspace get the same live feed the copilot rides. ## 1. Start the copilot The id invariant is `meeting_id == session_uid == native_id`. ```bash theme={null} curl -X POST "$API_BASE/agent/meeting/start" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"native_id":"abc-defg-hij","platform":"google_meet","title":"Acme renewal"}' # → 202, the live-meeting record ``` ## 2. Turn processing on Processing is opt-in. Toggle it on to start consuming the transcript: ```bash theme={null} curl -X POST "$API_BASE/agent/meeting/process" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"native_id":"abc-defg-hij","platform":"google_meet","on":true}' # → { ..., "processing": true, "resumed_from": "" } ``` ## 3. Stream the merged feed Subscribe to the SSE stream that merges transcript and copilot output: ```bash theme={null} curl -N -H "X-API-Key: $API_KEY" \ "$API_BASE/agent/meeting/stream?meeting_id=abc-defg-hij&session_uid=abc-defg-hij" ``` Event types on the stream: `transcript`, `card` (a proposal), `message-delta`, `tool-call`, `ping`, `meeting-end`. Every event carries an SSE `id:` — on reconnect, echo it as `Last-Event-ID` to **resume gaplessly**. Approving a `card` commits it to the workspace (a person, an action item, a decision). ## Pause and resume mid-call Toggle processing off to stop consuming without ending the meeting; the per-meeting **cursor freezes**. Turn it back on and it resumes from exactly where it stopped: ```bash theme={null} # pause — clears the flag, freezes the cursor curl -X POST "$API_BASE/agent/meeting/process" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"native_id":"abc-defg-hij","platform":"google_meet","on":false}' # → { ..., "processing": false } ``` `on:true` later resumes from the saved cursor (`"resumed_from":""`) — no re-processing, no gap. ## Health ```bash theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/agent/meeting/relay-health" ``` A stale bot key surfaces as `native_resolve:{ok:false,kind:"unauthorized"}` rather than silent dead air. ## After the call To write the durable record once the meeting ends — notes, decisions, follow-ups linked to people and companies — see [Report after every meeting](/how-to/post-meeting-report). # Get a Microsoft Teams transcript via API Source: https://docs.vexa.ai/how-to/microsoft-teams-transcript-api Microsoft Teams live transcription API: send a bot to the meeting with one POST, then read the transcript over REST or WebSocket. Send a bot to the meeting with **one POST**, then read the transcript **while the call is still running**. The bot joins Microsoft Teams like any participant — no plugins, no host configuration — and streams back a speaker-attributed transcript you either poll over REST or subscribe to over WebSocket. > [!TIP] > > **Hosted, no install:** [connect your agent](https://vexa.ai/connect?utm_source=docs\&utm_medium=tip\&utm_campaign=how-to-microsoft-teams-transcript-api) (Claude Code, Codex, Cursor) or [get an API key](https://vexa.ai/start?utm_source=docs\&utm_medium=tip\&utm_campaign=how-to-microsoft-teams-transcript-api) (free credit, no card required). Self-hosting: [Deployment](/deployment). ## 1. Send the bot ```bash theme={null} # the meeting ID and its passcode, as Teams shows them in the invite curl -X POST "$API_BASE/bots" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"platform":"teams","native_meeting_id":"397421056486982","passcode":"X8hcQVTnGNpGelJLSv","bot_name":"Vexa"}' ``` Teams meetings come addressed two ways, and both are valid `native_meeting_id`s: * the **numeric meeting ID** (10–15 digits) Teams prints next to a **passcode** — pass the passcode in `passcode`, never glued onto the id; * the **thread id** out of a classic `…/l/meetup-join/19:meeting_…@thread.v2` link, which carries its own credential and takes no separate passcode. Sending the full `meeting_url` instead settles both the host and the passcode on its own. `$API_BASE` is `https://api.cloud.vexa.ai` hosted, or `http://localhost:18056` self-hosted. ## 2. Read the transcript live Segments stream in as the meeting runs. Poll: ```bash theme={null} curl -H "X-API-Key: $API_KEY" \ "$API_BASE/transcripts/teams/397421056486982" ``` ```json theme={null} { "segments": [ { "speaker": "Jane Liu", "text": "Let's lock the renewal pricing by July 1.", "start": 12.4, "end": 15.1, "language": "en", "completed": true, "confidence": 0.93 } ] } ``` Live drafts arrive as `completed: false` and are replaced by `completed: true` confirmations. For per-segment push instead of polling, subscribe on the gateway's `/ws`: ```json theme={null} { "action": "subscribe", "meetings": [ { "platform": "teams", "native_id": "397421056486982" } ] } ``` ## Microsoft Teams specifics * **Admission.** The bot may wait in the lobby until a host admits it — admit it like any guest. A run that ended there reports [`awaiting_admission_timeout` or `awaiting_admission_rejected`](/troubleshooting/completion-reasons); `automatic_leave.max_wait_for_admission` sets how long it waits. * **Non-default clouds.** On `teams.live.com` for personal meetings, or `gov.` / `dod.` `teams.microsoft.us` for GCC-High and DoD, add `teams_base_host` — otherwise the bot builds its URL on the world-wide host and joins a different Teams. Hosts outside the Teams web clients are rejected with `422`. * **Passcodes.** Only `passcode` is read. `password`, `meeting_password` and similar aliases are rejected with a `422` naming the right field. The passcode is kept off the stored `constructed_meeting_url` and out of the logs. * **Language auto-detection.** Teams rides the mixed-audio lane, where a low-confidence detection discards the window rather than guessing; those windows carry `language: null`. Pin `language` on the spawn to avoid it. ## Stop the bot ```bash theme={null} curl -X DELETE "$API_BASE/bots/teams/397421056486982" -H "X-API-Key: $API_KEY" ``` ## See also * [Send a bot and get a transcript](/how-to/send-a-bot) — the full walkthrough, all platforms * [Meetings API](/api/meetings) — every parameter, status, and response shape * [Troubleshooting](/troubleshooting) — the bot joined but there is no transcript **Roadmap:** [overlapping-speech separation on Teams](/roadmap/items/overlapping-speech-teams) · [speaker separation on mixed audio](/roadmap/items/speaker-separation) · [name mapping from a roster you supply](/roadmap/items/name-mapping). # How-to guides Source: https://docs.vexa.ai/how-to/overview Task-oriented recipes, split by which plane they touch — meetings, agents, or both. Each guide is a complete path to one outcome. They assume you've finished the [Quickstart](/quickstart) and have an `$API_BASE` and `$API_KEY` ([Authentication](/authentication)). > [!TIP] > > **Hosted, no install:** [connect your agent](https://vexa.ai/connect?utm_source=docs\&utm_medium=tip\&utm_campaign=how-to-overview) (Claude Code, Codex, Cursor) or [get an API key](https://vexa.ai/start?utm_source=docs\&utm_medium=tip\&utm_campaign=how-to-overview) (free credit, no card required). Self-hosting: [Deployment](/deployment). The guides fall into three chapters by the plane they work on. **Meetings** and **agents** are [separate domains](/index), each usable on its own; the third chapter is where they compose. ## Meetings only Capture and access meetings through the [Meetings API](/api/meetings) — no agent involved. > **[Sync your calendar](/how-to/calendar-sync)** > > Paste one secret ICS address — upcoming meetings import and auto-join. > **[Send a bot and get a transcript](/how-to/send-a-bot)** > > Capture Google Meet, Zoom, or Teams — live, speaker-attributed. > **[Stream a transcript over WebSocket](/how-to/stream-transcript)** > > Per-segment push instead of polling. > **[Use a custom STT endpoint](/how-to/custom-stt)** > > Point meeting transcription at your own OpenAI-compatible ASR service. > **[Retrieve a recording](/how-to/recordings)** > > List recordings and stream the audio from your own storage. > **[Capture now, transcribe later](/how-to/deferred-transcription)** > > Record without transcribing, then run the audio through your own STT. > **[Automate summaries with n8n](/n8n)** > > Calendar to bot to transcript to Slack — no backend to write or host. ## Agents only Put agents to work over your [workspace](/concepts#workspace) through the [Agent API](/api/agent) — with or without any meeting. > **[Chat with your workspace](/how-to/chat-workspace)** > > Ask an agent that has your whole knowledge base as context. > **[Browse, upload & swap the workspace](/how-to/workspace-files)** > > Read files over the API, add documents, or attach your own git repo. > **[Brief me every morning](/how-to/daily-brief)** > > An unattended agent on a cron schedule. > **[Triage incoming email](/how-to/email-triage)** > > An event-triggered agent that proposes tasks — safely. ## Meetings + agents Where the two planes compose: an agent rides or acts on a meeting. > **[Plan and share a meeting](/how-to/plan-a-meeting)** > > Prepare a shared knowledge space, invite your attendees, and the bot joins at start. > **[Run a live meeting copilot](/how-to/live-copilot)** > > Cards for people, decisions, and action items as the call happens. > **[Report after every meeting](/how-to/post-meeting-report)** > > Notes, decisions, and follow-ups written into your workspace when a call ends. ## Operate Running the stack itself — [Deployment](/deployment), [Configuration](/configuration), and [Troubleshooting](/troubleshooting). # Plan and share a meeting Source: https://docs.vexa.ai/how-to/plan-a-meeting Create a meeting before it happens, prepare a shared knowledge space with the agent, invite the people you're meeting, and let the bot join at start. This is the **prepare-for-a-meeting** flow end to end: plan the meeting, build shared context in a workspace, hand that context to your attendees, and have the bot show up on time — so everyone walks in prepared and walks out with the transcript in the same place. It composes both planes: the meeting record lives in the [meetings domain](/core/meetings), the prep space is an [agent workspace](/core/agents). You can drive everything from the Terminal UI or the [API](/api/meetings#plan-a-meeting); both are shown. ## 1. Plan the meeting In the Terminal's **Meetings** list, click **+ Plan a meeting** — one click creates the meeting and opens its **prep view**, which is where everything is edited: type the title, pick the time (quick chips like *Tomorrow 09:00*, or the calendar picker), and paste the Meet/Zoom/Teams link if you already have it. Everything saves as you go; the link is optional and can be attached any time before start. ```bash Via the API theme={null} curl -X POST "$API_BASE/meetings" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{"title":"Q3 kickoff with Acme","scheduled_at":"2026-07-10T15:00:00Z", "meeting_url":"https://meet.google.com/abc-defg-hij"}' ``` The meeting sits under **Upcoming** with a `Scheduled` badge (or `Planned` until it has a time); clicking it re-opens the prep view — title, time, link, the auto-join toggle, and the workspace section below. > [!NOTE] > > Meetings on your calendar can create these records for you — the **Connect your calendar** row > sits right under the plan button. See [Calendar sync](/how-to/calendar-sync). ## 2. Prepare the knowledge space In the prep view, **bind a workspace**: pick an existing one (say, the client's deal workspace) or click **+ Create a prep workspace**. This workspace is where the preparation lives — brief, agenda, open questions, background research. Now put the agent to work in it: open the workspace and ask for what you need — research the company from the open web, pull context from your other workspaces, summarize the last meeting's notes, draft the agenda. Everything it produces is Markdown files in the workspace — reviewable, editable, versioned. ## 3. Share it with the people you're meeting Click **Share with attendees** in the prep view. It mints a workspace **invite link** — send it to your colleagues or the client. Anyone who accepts becomes a member of the prep workspace and gets: * the **prepared context**, live — workspace edits sync in real time, so you can keep refining it together right up to (and during) the call; * **the meeting itself** — a meeting bound to a workspace is visible to every member: the upcoming plan in their Meetings list, the live transcript feed once the bot joins, and the finished transcript after. There is nothing extra to share when the meeting starts — the binding already carries it. ## 4. The bot joins on its own At start time the bot auto-joins (the **Auto-join** toggle is on by default for any scheduled meeting with a link — flip it off for meetings you want to keep bot-free, or click **Send bot now** to bring it in early). Admit the bot like any participant; the transcript starts streaming to every workspace member. If the bot *didn't* appear, the meeting row says why — see [Troubleshooting](/troubleshooting#a-scheduled-meeting-didnt-auto-join). ## 5. After the meeting The transcript lands on the **same meeting record** you planned — with the title and workspace binding intact. From here the usual post-meeting composition applies: run a [post-meeting report](/how-to/post-meeting-report) into the bound workspace, and the notes join the context the attendees already share. # Report after every meeting Source: https://docs.vexa.ai/how-to/post-meeting-report When a call ends, an agent writes notes, decisions, and follow-ups into your workspace. Once a meeting produces a transcript, an [agent](/core/agents) can read it **through your [workspace](/concepts#workspace)** — grounding the write-up in what you already know about the people and the deal — and commit a report. Because the transcript is trusted input, the agent both reads and writes; git is the undo. For a [planned meeting](/how-to/plan-a-meeting) with a bound workspace this closes the loop: the transcript lands on the same meeting record the plan started as, and the report lands in the same workspace the attendees already share. ## Option A — dispatch a report when the meeting ends Fire a one-shot [dispatch](/core/agents) the moment a call wraps (e.g. from your own meeting-end hook): ```bash theme={null} curl -X POST "$API_BASE/agent/invocations" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{ "runner":"claude-code", "workspaces":[{"id":"u_jane","mode":"rw"}], "trigger":"scheduled", "start":{"entrypoint":{"inline":"Write a report for the meeting that just ended: summary, decisions, action items with owners, and links to the people and companies involved. File it in the workspace."}} }' # → 202 {"workload_id":"agent-..."} ``` The agent reads the latest transcript and existing entities, then commits the report. Retrieve it from the workspace: ```bash theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/agent/workspace/tree" curl -H "X-API-Key: $API_KEY" "$API_BASE/agent/workspace/file?path=meetings/2026-06-29-acme.md" ``` ## Option B — a standing routine If you'd rather not wire a hook, run it on a schedule that sweeps recent meetings: ```bash theme={null} curl -X POST "$API_BASE/agent/routines" \ -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \ -d '{ "name":"Meeting reports", "cron":"0 * * * *", "prompt":"For any meeting that ended in the last hour and has no report yet, write one: summary, decisions, action items with owners. File each in the workspace.", "run_now":true }' # → 201 {"routine":{...},"job_id":"job_...","ran_now":true} ``` ## What you get The report is **grounded**, not a bare summary — it's anchored in the accumulated context the workspace already holds, and each run leaves the workspace more complete (people, companies, decisions linked). See [Knowledge agent](/how-to/chat-workspace). ## Going live instead To surface decisions and action items **during** the call rather than after, run the live copilot — `POST /agent/meeting/start` then stream cards from `GET /agent/meeting/stream`. See [Meeting copilot](/how-to/live-copilot) and the [Agent API](/api/agent#live-meeting-copilot). > [!NOTE] > > Routines and dispatches are workspace writes, so they need a **trusted** trigger (`message`/`scheduled`), > which mounts the workspace `rw`. Untrusted triggers are propose-only — see > [Governance](/architecture/governance). # Retrieve a meeting recording Source: https://docs.vexa.ai/how-to/recordings List recordings and stream the audio — from your own object storage on a self-host. > [!NOTE] > > Recording retrieval is **API-only today** — the terminal has no built-in player yet. The endpoints below > are live and covered by service tests. Browser playback and seeking work **through the gateway**: a `Range` > request returns a `206 Partial Content` with its `Content-Range` and `Accept-Ranges` headers intact. > See the [capability truth table](/roadmap/status#capability-truth-table). Alongside the diarized transcript, each meeting's **audio recording** is uploaded to object storage — on a self-host, storage you run, so it never leaves your environment (Lite and Compose keep it as plain files in a local volume). The recording is the meeting audio, stored separately from the transcript (speaker separation lives in the transcript as text — there is no per-speaker audio). **Don't have a key yet?** Hosted: sign in at [vexa.ai/signin](https://vexa.ai/signin) with a Google account and copy your key from [your account page](https://vexa.ai/account) — free credit, no card required. Self-hosted: `make all` prints a key when the stack comes up. To record a meeting **without** transcribing it and take the audio away for your own speech-to-text, see [Capture now, transcribe later](/how-to/deferred-transcription). ## List recordings ```bash theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/recordings" ``` Get the detail for one: ```bash theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/recordings/42" ``` ## Get the playable audio Resolve the master metadata (finalize-on-read), which points at the raw byte stream: ```bash theme={null} curl -H "X-API-Key: $API_KEY" "$API_BASE/recordings/42/master?type=audio" ``` The response carries a `raw_url` of the form `GET /recordings/{recording_id}/media/{media_file_id}/raw` — the actual audio bytes the player loads: ```bash theme={null} curl -H "X-API-Key: $API_KEY" \ "$API_BASE/recordings/42/media//raw" -o meeting-42.audio ``` ### Range requests (playback and seek) The `/raw` endpoint honours HTTP `Range` — a partial request returns `206 Partial Content` carrying `Content-Range` and `Accept-Ranges: bytes`, **preserved through the gateway** front door. This is what lets a browser `