Production checklist
Preflight checklist for AI Transport deployments.
Use this checklist before enabling AI Transport for production traffic. It is grouped by area so each owner (platform, security, operations, client teams) can sign off their section. Every item links a requirement to something you can verify; if an item does not apply, write down why.
Build and config
- Build with
v2,ai-transport, the selected shared adapter/cache/store features, andpushwhen push recipes are used. For example:cargo build -p sockudo --features "v2,ai-transport,redis,postgres,push". - Build Docker images both with and without
ai-transportenabled, and confirm the default profile carries no AI Transport feature. - Enable
[history],[versioned_messages], and[ai_transport]. Startup rejects AI Transport without the first two. - Use shared history, version store, and cache for horizontal deployments. Startup rejects
memory history, a memory version store, or a
memory/nonecache with any adapter other thanlocal. - Scope
[[ai_transport.channels]]to narrow prefixes, and confirm every session channel name actually starts with one (prefix matching is literal). - Set history and version retention to cover reconnect, rewind, and support windows. Keep version retention at least as long as history retention so history can materialize each output’s latest aggregate.
- Review
[ai_transport]stream caps (max_accumulated_message_bytes,max_appends_per_message,max_open_streaming_messages_per_channel) against your longest expected answer. - Choose
ai_transport.rollup.orphan_ttl_mslonger than your longest legitimate pause inside a stream.config/ai-transport.example.tomlis the release config example.
Auth
- Issue short-lived V2 capability tokens from a backend only.
- Keep capability patterns exact or tenant/user scoped.
- Use app-key HTTP only from trusted server workers. Agent events are accepted only there.
- Revoke by
jtiorclient_idfor incident response, and know that aclient_idrevocation also blocks new tokens until its TTL expires. - Do not accept client-asserted identity fields. Derive the user in your
/api/chatroute from your own session, not from theclientIdin the request body. - Grant
publishon push notification channels only to server-side publishers.
Operations
- Scrape Prometheus metrics from every node.
- Alert on history degraded/reset-required channels, recovery failures, rollup flush latency, active stream leaks, horizontal transport drops, and push queue/provider failures. Starting thresholds are in production operations.
- Subscribe a webhook endpoint to
ai_run_endedandai_stream_orphanedif you persist transcripts or monitor orphaned streams. - Execute
tests/loadandtools/chaosprofiles on production-like hardware before headline claims. - Keep
[ai_transport]runtime-disabled during a mixed-version rolling upgrade on shared Redis. Enable it only after every node runs the new release, then run an AI stream and recovery smoke test.
Release evidence
-
Run the AIT-S conformance suite before release:
Terminal window AIT_CONFORMANCE_OFFLINE=1 scripts/ai-conformance-node.sh -
Run the benchmark guard and review budgets:
Terminal window scripts/ai-transport-bench-guard.sh -
Run the deterministic gate on every release-candidate branch:
Terminal window scripts/ai-transport-ga-gate.sh ci-evidence -
Generate release evidence with
scripts/ai-transport-s14-release-evidence.sh,scripts/ai-transport-rolling-upgrade-redis.mjs --execute, andscripts/sdk-compat-full-matrix.mjs --execute. -
Run
scripts/ai-transport-ga-gate.sh release-evidencebefore any GA tag; it fails until the external S14 scale/chaos, rolling-upgrade, and full SDK compatibility manifests are committed.
Client behavior
- Treat Sockudo history as authoritative after reconnect or notification open.
- Use
until_attachfor late-join history to avoid gaps. - Reduce mutable-message events by
message_serialandversion.serial. - Send terminal stream status for completed/cancelled/error runs, and call
run.end(...)on every code path, including errors. - Refresh tokens before expiry and back off on auth errors. Configure
authCallbackorauthUrlso refresh aftersockudo:token_expiredis automatic. - Handle
position_expiredandstream_resetby resubscribing and reloading history.
GA readiness
The canonical readiness record is
docs/specs/ai-transport-ga-readiness.md.
Server releases ship AI Transport defaults off before SDK releases that depend on the feature. Full
product parity still depends on the SDK plans and enablement work listed in that record.