Deploy Capacity Proof

This is the source-only DEPLOY sizing guide for the B524 capacity proof and B525 100k Platform Tier proof. The B526 governed OpenAI-compatible API gateway proof remains source-only. It tells owner repos which evidence can unlock public sizing and gateway claims, but it is not production launch proof and it does not claim that the 20,000-stream stage, 100,000 concurrent-session platform tier, or /v1/chat/completions gateway has shipped.

Current status: owner-evidence-pending. retvest-platform owns the API/SSE drill, vLLM drill, measured model-serving rows, queue behavior, and audit-ledger implementation evidence. For B525, retvest-platform also owns SCIM and SSO load proof, Redis-backed session validation, 100,000 concurrent SSE connection proof, indexed ACL filtering, and per-team quota, priority, and queueing proof. For B526, retvest-platform owns /v1/chat/completions route behavior, streaming proxy behavior, per-user API key authentication, per-user and team quota enforcement, priority queueing, usage metering, audit receipts per call, and OpenAI SDK compatibility proof. retvest-site owns this public-safe guide, claim ledger wording, navigation, and docs gates.

Evidence Boundary

B524 has three evidence inputs before public copy may publish measured capacity:

  1. API-tier streaming proof against a stub OpenAI-compatible model backend.
  2. vLLM replica scaling proof against the real model-serving path.
  3. A sizing row derived from measured generated-token throughput.

Public docs may name the target stages and required metadata. Public docs must not publish measured tok/s numbers, GPU counts, provider-specific hardware sizing, hosted deployment promises, or a claim that the 20,000-stream stage passed until owner evidence is verified and the claim ledger is promoted. Do not publish measured tok/s numbers before that promotion path completes.

B525 has five additional evidence inputs before public copy may publish 100k platform-tier wording:

  1. SCIM provisioning and SSO login-storm drill using customer-IdP-shaped fixtures.
  2. Redis-backed session validation that keeps session checks off the Postgres hot path while Postgres remains authoritative.
  3. 100,000 concurrent SSE connections across stateless API replicas against a stub OpenAI-compatible backend.
  4. Indexed ACL filtering in retrieval, with no per-document ACL checks in the hot path.
  5. Per-team quota, priority, and queueing so 100,000 users share bounded generation slots with honest queue UX.

Public docs may name those target evidence categories. Public docs must not claim the 100k tier is shipped, verified, production-ready, generally available, or customer-proven until owner evidence is verified and the claim ledger is promoted.

B526 has six evidence inputs before public copy may publish governed gateway availability:

  1. An OpenAI SDK compatibility test that calls /v1/chat/completions unmodified and proves streaming chunk shape, terminal finish metadata, and usage accounting.
  2. Per-user API key authentication that rejects missing, revoked, wrong-scope, and cross-tenant credentials before any model backend dispatch.
  3. Backend routing evidence that binds the requested model, upstream backend type, stream model id, and configured model allowlist for Ollama or vLLM.
  4. Per-user and team quotas with priority queueing and fail-closed quota-store behavior.
  5. Usage metering that records prompt tokens, completion tokens, total tokens, latency, queue time, backend, model, and streaming status without raw prompts or generated answers.
  6. Audit receipts per call, including denied, queued, cancelled, upstream-error, timeout, and success outcomes.

Public docs may name the route and target control categories while the contract is frozen. Public docs must not claim that /v1/chat/completions is live, OpenAI-compatible, generally available, IDE-ready, terminal-agent-ready, quota-enforced, metered, audited, or production-ready until owner evidence is verified and the claim ledger is promoted.

API-Tier Streaming Drill

The API-tier drill proves that stateless API replicas and ingress can hold long SSE streams without spending GPU capacity. It must run against a stub OpenAI-compatible model backend so the result measures connection handling, stream scheduling, TTFT, route latency, disconnect behavior, and backpressure instead of model decode speed.

The staged ladder is 100, 1,000, 10,000, and 20,000 concurrent streaming connections. In public-safe shorthand, it is the 100, 1,000, 10,000, and 20,000 concurrent streaming connections ladder. Each stage should hold the target long enough to observe steady state, then record only metadata. Every stage row must include a measured UTC window so the proof ties the reported hold duration to a concrete, non-stale observation interval:

field meaning
proof_id Synthetic proof run id, not a private artifact URL.
commit Platform commit under test.
backend stub_openai_compatible; real model backends belong to the vLLM drill.
api_replicas Number of stateless API replicas serving the run.
target_concurrent_streams Stage target from the staged ladder.
held_concurrent_streams Highest sustained concurrent stream count.
hold_seconds Length of the steady-state hold window.
measured_window_started_at / measured_window_ended_at ISO-8601 UTC start and end for the measured UTC window; the duration must cover hold_seconds.
successful_streams / dropped_streams Completed and failed stream counts for the same window.
ttft_ms_p50 / ttft_ms_p95 / ttft_ms_p99 Time to first token from request accept to first emitted SSE data event.
stream_latency_ms_p95 / stream_latency_ms_p99 Per-event latency or inter-event gap for active streams.
api_cpu_p95 / api_memory_p95 API tier saturation indicators.
ingress_active_connections_p95 Load balancer or ingress active connection evidence.
redis_ops_p95 Session, quota, or queue store pressure when enabled.

Reject a public proof packet when it counts heartbeats, bytes, UI chunks, citations, or stream events as model throughput. Those values can diagnose the API tier, but they do not satisfy generated-token capacity.

The site guard also rejects an API-tier proof packet that omits the commit, replica count, successful stream count, TTFT percentile ladder, stream latency percentile ladder, CPU, memory, ingress active connections, or Redis pressure metadata. It rejects rows without measured UTC windows, rows whose measured window is shorter than the reported hold duration, and rows whose timestamps use local time or offsets instead of the Z UTC form. A packet that links to private evidence URLs or raw payload fields is not public-safe evidence.

vLLM Replica Scaling Drill

The vLLM replica scaling drill proves model-serving scale separately from the API-tier SSE drill. It must run the same measured prompt and output-token shape across 1, 2, and 4 replicas, then compare generated-token throughput against the single-replica baseline.

The public-safe row shape is:

field meaning
proof_id Synthetic proof run id shared with the model-serving evidence packet.
backend openai_compatible.
served_model Model id returned by stream metadata.
llm_openai_model Requested model id configured for the OpenAI-compatible client.
stream_model_id Model id echoed by the measured streaming response.
replica_count vLLM replica count for this row.
prompt_tokens_p50 / prompt_tokens_p95 Prompt distribution used for the run.
output_tokens_p50 / output_tokens_p95 Generated-token distribution for completed streams.
ttft_ms_p50 / ttft_ms_p95 Time to first token for the measured stream path.
decode_tok_s_total Generated-token throughput for all replicas in the row.
generated_token_metric_name Must be vllm:generation_tokens_total.
generated_token_metric_model_name Metric label that must match the served model.
generated_token_metric_served_model_name Served-model metric label that must match the served model.
generated_token_metric_series_count Must be exactly one after filtering by metric and model.
measurement_window_seconds Counter window used for the row.
measured_window_started_at / measured_window_ended_at ISO-8601 UTC start and end for the measured UTC window; the duration must cover measurement_window_seconds.
linearity_ratio Row throughput divided by the single-replica baseline times replica count.

The drill is not satisfied by request counts, prompt-token counters, byte counts, SSE events, UI chunks, or citation counts. It also is not satisfied by model aliases that bind the requested client model, stream metadata, or metric labels to different models.

The site guard requires the requested OpenAI-compatible model, stream model id, generated-token metric model label, and generated-token metric served-model label to match the served model. It also requires exactly one generated-token series after filtering and recomputes the 1, 2, and 4 replica linearity ratio from measured throughput. The measured UTC window is mandatory for every row so stale metric snapshots or local-time exports cannot satisfy the evidence contract.

Sizing Guide

The sizing guide is streams -> tok/s -> GPUs. Public docs may publish the formula before owner evidence exists, but not the measured inputs.

Use these variables when the owner evidence is ready:

variable meaning
active_streams_target Concurrent generated streams the customer wants to support.
measured_window_started_at / measured_window_ended_at ISO-8601 UTC source window for the measured throughput used by the sizing row.
per_stream_decode_tok_s_p95 Generated-token rate needed per active stream at the chosen user experience target.
burst_headroom_factor Capacity margin for tenant bursts, reconnects, and queue jitter.
required_decode_tok_s active_streams_target * per_stream_decode_tok_s_p95 * burst_headroom_factor.
measured_tok_s_per_gpu Generated-token throughput per GPU from the verified vLLM row.
target_utilization Utilization cap selected by the platform owner for latency headroom.
required_gpu_count ceil(required_decode_tok_s / (measured_tok_s_per_gpu * target_utilization)).

Queue UX and quota policy are part of the sizing answer. When demand exceeds bounded generation slots, public copy should describe the state as queued, priority-limited, or quota-limited; it must not imply that every authenticated session receives unbounded simultaneous generation.

The site guard recomputes both sizing formulas. A public-safe proof packet is rejected when required_decode_tok_s does not equal active_streams_target * per_stream_decode_tok_s_p95 * burst_headroom_factor or when required_gpu_count is not the ceiling of required throughput divided by measured per-GPU throughput at the selected utilization cap.

B525 100k Platform Tier

The 100k platform tier proof is a platform-owned drill suite, not a marketing availability claim. It must prove the identity, session, streaming, retrieval, and generation-governance paths together enough to prevent a public claim from being built on only one healthy subsystem.

The public-safe packet shape is:

field meaning
load_assumption.concurrent_sessions Must be 100000; this is the target load assumption, not a public support claim.
load_assumption.sso_login_attempts_per_minute Thousands of login attempts per minute for the login-storm fixture.
load_assumption.customer_idp_shaped_fixture Confirms the fixture models customer IdP behavior without naming a customer IdP.
identity_drill.scim_provisioned_users Number of users provisioned through the SCIM fixture.
identity_drill.successful_sso_logins_per_minute Successful SSO login rate during the measured UTC window.
identity_drill.bad_config_fails_closed Unsafe partial SSO or SCIM configuration refuses enablement.
session_validation.redis_backed Session validation reads the bounded Redis path for hot checks.
session_validation.postgres_hot_path Must be false; Postgres remains authoritative but not the per-request hot path.
session_validation.cache_key_fields Includes tenant, user, session version, and policy version.
session_validation.redis_outage_fails_closed Redis uncertainty does not turn into permissive session acceptance.
sse_connection_drill.target_concurrent_sse_connections Must be 100000 against the stub backend.
sse_connection_drill.held_concurrent_sse_connections Highest measured steady-state connection count.
sse_connection_drill.stateless_api_replicas Confirms any API replica can serve the stream after load balancing.
retrieval_acl_filtering.strategy Must be indexed_pre_filter.
retrieval_acl_filtering.per_document_checks_in_hot_path Must be false; the query plan must cover ACL filtering before result fanout.
generation_governance.bounded_generation_slots Bounded shared generation slots, not one simultaneous decode per user.
generation_governance.queue_states Includes queued, priority_limited, and quota_limited.
generation_governance.audit_receipts_per_call Each generated call remains accountable even when queued or denied.

The site guard rejects a B525 proof packet that understates the target, accepts SSO proof below thousands of logins per minute, puts session validation back on the Postgres hot path, omits Redis fail-closed behavior, omits the 100,000 concurrent SSE connection drill, relies on per-document ACL checks, or describes generation as unbounded instead of quota-limited and queue-visible.

B526 Governed OpenAI-Compatible Gateway

The governed gateway proof is a platform-owned API compatibility and control drill, not a launch claim. It must prove that terminal coding agents and IDEs can point an unmodified OpenAI SDK client at Retvest while Retvest still owns authentication, tenant boundaries, quotas, priority, metering, and audit receipts.

The public-safe packet shape is:

field meaning
route Must be /v1/chat/completions.
contract_status Must stay existing_contract_no_surface_change during contract-freeze rounds.
openai_sdk_client.unmodified_client Confirms the proof used the stock OpenAI SDK without a Retvest-specific adapter.
openai_sdk_client.contract_test_command Names the executable compatibility test that ran the stock SDK client.
openai_sdk_client.standard_base_url_configuration Confirms the SDK was pointed at Retvest through the SDK's normal base-url configuration, not a Retvest adapter.
openai_sdk_client.streaming Confirms streaming response behavior was exercised.
openai_sdk_client.stream_chunk_shape_verified Confirms chunks match the OpenAI chat-completions streaming shape.
openai_sdk_client.terminal_finish_metadata_verified Confirms final stream metadata is observable.
proof_artifacts Names distinct SDK compatibility, quota-negative, audit-receipt, and mutation test commands plus distinct red, green, and mutation logs under logs/principal-proof/. The quota command must name quota denial or quota-scope mismatch evidence, the audit command must name audit receipt evidence, and the mutation command must name a mutation or drift rejection.
auth.per_user_api_key API keys are user-bound automation credentials, not shared tenant secrets.
auth.identity_binding_fields Must bind the call to tenant, user, team, API key id, and scope without exposing key material.
auth.denied_cases Must include missing, revoked, wrong-scope, and cross-tenant API-key denial cases.
backend.backend_type Must be ollama or vllm.
backend.configured_model / backend.requested_model / backend.stream_model_id The requested and streamed model must bind to the configured allowlisted model.
backend.dispatch_identity Metadata-only dispatch evidence must bind the selected backend type plus configured, requested, dispatched, upstream, and stream model ids to the same allowlisted model before any upstream call. It must include an allowlist approval, admission identity digest, quota-scope digest, allowed quota decision, and quota-decision binding flag.
quota.per_user_quota / quota.per_team_quota / quota.priority_queue Quota and priority controls are enforced before or during dispatch.
quota.scope_fields Must include tenant, user, team, and API key id so per-user and per-team quota decisions cannot drift.
quota.quota_store_outage_fails_closed Quota uncertainty must deny or queue work, not allow unbounded generation.
metering.usage_tokens_recorded Prompt, completion, and total token counts are recorded from trusted metadata.
metering.latency_ms_recorded / metering.queue_ms_recorded Latency and queue timing are recorded without raw content.
metering.quota_scope_bound / metering.quota_scope_digest Usage rows must carry the same admitted quota scope used for dispatch and billing analysis.
audit.audit_receipt_per_call Every success, denial, queue decision, cancellation, timeout, and upstream error gets a receipt.
audit.receipt_fields Receipts must carry tenant, user, team, API key id, quota scope, quota decision, metering record id, and digest metadata only.
audit.receipt_identity_matches_metering Receipt identity must match metering identity so audit and usage evidence cannot be spliced.
audit.quota_scope_digest / audit.receipt_samples Metadata-only samples for success, denied, timeout, and cancelled calls; each sample uses unique receipt id, unique metering record id, receipt digest, identity digest, the same admitted quota-scope digest, and a receipt_binding_digest over that row metadata rather than raw tenant, user, team, or API-key ids.
negative_cases Must include denied over-quota, revoked-key, cross-tenant-key, quota-scope-mismatch, upstream-timeout, and cancelled-stream probes.

The site guard rejects B526 proof packets that use a Retvest-specific SDK adapter, omit an executable SDK compatibility test command, skip standard SDK base-url configuration, omit proof-log artifacts, reuse one proof log for red, green, or mutation evidence, use pass-only shell wrappers instead of executable tests, reuse one generic test command for quota, audit, or mutation evidence, skip streaming, omit API-key denial cases, dispatch to a backend whose streamed model does not match the configured allowlist, omit dispatch-time backend/model identity evidence, omit dispatch allowlist approval, let dispatch drift from the quota decision, omit per-user or team quota, omit quota-scope identity binding, fail open during quota-store uncertainty, meter from raw prompts or generated answers, let usage rows drift from the admission quota scope, omit audit receipts for denied calls, omit metadata-only receipt samples with unique receipt ids, unique metering record ids, and sha256: digests, let receipt sample quota-scope digests drift from the admitted quota-scope digest, publish a receipt binding digest that does not match its own sample row metadata, let receipt identity drift from metering identity, publish direct tenant/user/team/API-key ids in receipt samples, or publish bearer tokens, authorization headers, API key values, tenant secrets, raw OpenAI messages, raw stream chunks, raw request or response bodies, and private payloads.

Hash-Chain Bottleneck

B524 must flag the single global hash-chain ledger as a serialization bottleneck. A design that appends every AI answer and action to one global chain will eventually bottleneck on ordering, lock contention, and verification latency even if the API tier and model fleet scale horizontally.

The sharded-chain design note is:

  • Use a per-tenant or per-team chain for hot audit appends.
  • Preserve strict append-only ordering inside each chain.
  • Include tenant, team, sequence, previous hash, row hash, and receipt digest in each row.
  • Publish a periodic cross-anchor, such as a Merkle root over chain heads, for portfolio-level integrity checks.
  • Fail closed when the owner chain or cross-anchor cannot be written.
  • Keep raw prompts, generated answers, customer documents, bearer tokens, and private evidence refs out of public proof rows.

This design keeps audit integrity checkable without requiring a global lock on every high-volume stream completion. The exact storage, migration, and recovery implementation remains retvest-platform owner evidence.

The site guard rejects a hash-chain note that does not preserve strict per-chain ordering, does not fail closed on chain or cross-anchor write failure, or does not declare metadata-only rows that exclude private payloads.

Promotion Checklist

Before measured capacity numbers can move into public copy:

  • retvest-platform records the staged API/SSE proof with 100, 1,000, 10,000, and 20,000 concurrent streaming connections against the stub backend.
  • retvest-platform records the vLLM replica scaling drill for 1, 2, and 4 replicas with generated-token metric binding.
  • retvest-platform publishes a metadata-only sizing row derived from measured generated-token throughput.
  • retvest-platform names the single global hash-chain ledger bottleneck and a sharded-chain design note.
  • For B525, retvest-platform records SCIM provisioning and SSO login-storm proof, Redis-backed session validation proof, 100,000 concurrent SSE connection proof, indexed ACL filtering proof, and per-team quota, priority, and queueing proof.
  • docs/claim-ledger.md and Launch readiness are promoted from owner-evidence-pending.
  • The focused site guard and full repo gate pass:
make site-claims
make docs-build
make verify

Choose what this site may use. Your choice is kept in this browser only.