working drawings
Diagrams you could build from.
Real values, failure modes, revision blocks. Marketing diagrams lie by omission; these are the drawings we work from.
01 · kvwarden admission path
How a quiet tenant stays quiet: fairness enforced before a tenant-blind engine, with the measured cost of not doing it drawn dashed.
dwg-01 · kvwarden admission path1x A100 · Llama-3.1-8B · vLLM 0.19.1 · 300 s
Read this drawing
- A request enters at the left carrying a tenant id. Everything past the boundary line has no idea tenants exist, so fairness has to be enforced before the engine.
- The token bucket refills at rate_limit_rpm divided by 60 tokens per second, and the bucket depth is the burst allowance: a tenant can spend saved tokens in a spike but cannot beat the refill rate for long.
- The admission gate caps requests in flight at max_concurrent. A request that cannot get a slot waits up to 30 seconds, then is shed instead of queueing forever.
- The vLLM engine runs continuous batching and is tenant-blind by design; the dash-dot line marks where tenant identity stops existing.
- The accent dimension is the measured result: 61.5 ms p99 for a quiet tenant post-warmup, n=311, on 1x A100, Llama-3.1-8B, vLLM 0.19.1, over a 300 s window.
- The dashed dimension is the control: the same quiet tenant behind a flood sees 1,585 ms p99 when requests go straight to the engine FIFO, 26x the gated figure.
provenance for the dimensions: /benchmarks →
02 · the gated library
How a private library on a laptop serves the public internet with no open port, and what each status code means when it breaks.
dwg-02 · the gated librarycloudflare access · quic · outbound-only
Read this drawing
- A browser asks for the library from any device; there is no VPN client. DNS is proxied, so the origin address is never public.
- The Cloudflare edge runs the Access check first: a four-address email allowlist for people, a service token for automation. No auth means a 302 to the Access login; a valid session with the wrong email is a 403.
- Traffic that passes rides a cloudflared tunnel over QUIC. The tunnel is outbound-only: the laptop dials out, nothing dials in, so there is no inbound port to scan.
- The origin is python http.server on localhost:8000 serving static wings of files. It never sees unauthenticated traffic.
- When it breaks, the status code names the failing layer, which is why this drawing is also the runbook: 302 auth, 403 identity, 530 tunnel, 502 origin, 404 path.
03 · the deterministic gate
What stands between a commit and production on this site. Nothing lands on a red gate.
dwg-03 · the deterministic gatemaxDiffPixels 0 · darwin + linux baselines
Read this drawing
- Every change starts as a commit, by hand or by agent; commits in agent ranges also get agent-audit before merge.
- Four static gates run first: typecheck, design-lint (raw hex, em dashes, icon libraries, font literals), the vitest unit suite at 32 tests, and a production build.
- Playwright then drives the built site in three engines: Chromium, Firefox, WebKit.
- The pixel gate screenshots 14 routes four ways each (two viewports, light and dark) and compares at maxDiffPixels 0 against committed baselines, darwin locally and linux in CI. One changed pixel is a red gate.
- A red gate loops back to commit. A pixel diff has exactly one legitimate exit: an intended change, a deliberate baseline update, and a commit message stating what changed visually and why.
- After deploy, verify-live probes 9 production surfaces plus a post-auth path; a failure there loops back like any other red gate.