ARCHOS 525 BLUEPRINT · /d/dgm_agent-online-evals-shadow-canary
Online evals, shadow traffic and canaries for LLM changes
15 COMPONENTS · 21 FLOWS · UPDATED 2026-11-21
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_agent-online-evals-shadow-canary) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_agent-online-evals-shadow-canary)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_agent-online-evals-shadow-canary" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Online evals, shadow traffic and canaries for LLM changes — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0[("Web Client")]
judge_1["LLM-as-a-judge"]
flags_2[("Feature flag service")]
runtime_3[("Agent orchestration runtime")]
pdp_4["Policy decision point (PDP)"]
live_5["Inference server"]
cand_6["Inference server"]
queue_7[("Message queue")]
controller_8["Progressive delivery controller"]
secrets_9[("Secrets manager")]
eval_10[("Evaluation service")]
tsdb_11[("Time-series database (TSDB)")]
alerting_12[("Alerting")]
dlq_13[("Dead-letter queue (DLQ)")]
capacity_14["Capacity Estimate"]
client_0 -->|"1. Asks with JWT · HTTPS"| runtime_3
runtime_3 -->|"2a. Calls live (mTLS) · HTTP/2"| live_5
runtime_3 -->|"2b. Calls canary (mTLS) · HTTP/2"| cand_6
live_5 -->|"3a. Returns answer · HTTP/2"| runtime_3
cand_6 -->|"3b. Returns answer · HTTP/2"| runtime_3
runtime_3 -->|"4a. Relays answer · HTTPS"| client_0
runtime_3 -.->|"4b. Samples answer · TCP"| queue_7
queue_7 -.->|"5. Delivers · TCP"| eval_10
eval_10 -->|"6. Replays (mTLS) · HTTP/2"| cand_6
cand_6 -->|"7. Returns answer · HTTP/2"| eval_10
eval_10 -->|"8. Bearer token · HTTPS"| judge_1
judge_1 -->|"9. Returns grade · HTTPS"| eval_10
eval_10 -.->|"10. Exports scores (OTLP) · OTLP"| tsdb_11
tsdb_11 -->|"11. Returns series · HTTP"| controller_8
controller_8 -->|"12. Sets share (mTLS) · HTTP/2"| flags_2
flags_2 -->|"Pushes (mTLS) · HTTP/2"| runtime_3
controller_8 -->|"Asks policy (mTLS) · HTTP/2"| pdp_4
pdp_4 -->|"Decision · HTTP/2"| controller_8
secrets_9 -->|"Supplies judge key · HTTPS"| eval_10
queue_7 -->|"Parks failed samples · TCP"| dlq_13
alerting_12 -->|"Queries series · HTTP"| tsdb_11COMPONENT STACK (14)
- Web ClientSTATEFULUser who asks the agent a question
- LLM-as-a-judgeSTATELESSVendor model that grades answers, outside us
- Feature flag serviceSTATEFULHolds canary share and kill switch
- Agent orchestration runtimeSTATEFULPicks live or canary per user, samples answers
- Policy decision point (PDP)STATELESSAllows or denies a share change
- Inference serverSTATELESSServes the live version to most users
- Inference serverSTATELESSCandidate: canary users and shadow replays
- Message queueSTATEFULBuffers sampled answers
- Progressive delivery controllerSTATELESSRaises, holds or cuts the canary share
- Secrets managerSTATEFULHolds the vendor judge key
- Evaluation serviceSTATEFULReplays, grades and exports per-arm scores
- Time-series database (TSDB)STATEFULStores errors, latency and judge scores by arm
- AlertingSTATEFULPages on-call on backlog, errors or silence
- Dead-letter queue (DLQ)STATEFULSamples that failed three times
REQUEST & DATA FLOW (21)
- Web Client → Agent orchestration runtime (Asks with JWT)[HTTPS]
- Agent orchestration runtime → Inference server (Calls live (mTLS))[HTTP/2]
- Agent orchestration runtime → Inference server (Calls canary (mTLS))[HTTP/2]
- Inference server → Agent orchestration runtime (Returns answer)[HTTP/2]
- Inference server → Agent orchestration runtime (Returns answer)[HTTP/2]
- Agent orchestration runtime → Web Client (Relays answer)[HTTPS]
- Agent orchestration runtime → Message queue (Samples answer)[TCP]
- Message queue → Evaluation service (Delivers)[TCP]
- Evaluation service → Inference server (Replays (mTLS))[HTTP/2]
- Inference server → Evaluation service (Returns answer)[HTTP/2]
- Evaluation service → LLM-as-a-judge (Bearer token)[HTTPS]
- LLM-as-a-judge → Evaluation service (Returns grade)[HTTPS]
- Evaluation service → Time-series database (TSDB) (Exports scores (OTLP))[OTLP]
- Time-series database (TSDB) → Progressive delivery controller (Returns series)[HTTP]