ARCHOS 525 BLUEPRINT · /d/dgm_guardrails-pipeline
Guardrails Pipeline (input and output checks around a model call)
13 COMPONENTS · 17 FLOWS · UPDATED 2026-11-21
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_guardrails-pipeline) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_guardrails-pipeline)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_guardrails-pipeline" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Guardrails Pipeline (input and output checks around a model call) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0[("Web Client")]
model_1["Inference server"]
reviewer_2["Human-in-the-loop approval (HITL)"]
idp_3[("Identity provider (IdP)")]
gw_4["API gateway"]
orch_5[("Agent orchestration runtime")]
gin_6["Guardrails"]
gout_7["Guardrails"]
aigw_8["AI gateway"]
queue_9[("Message queue")]
tsdb_10[("Time-series database (TSDB)")]
alerting_11[("Alerting")]
capacity_12["Capacity Estimate"]
client_0 -->|"1. Calls with JWT · HTTPS"| gw_4
gw_4 -->|"2. Starts request · HTTP/2"| orch_5
orch_5 -->|"3. Checks input · HTTP/2"| gin_6
gin_6 -->|"4. Returns verdict · HTTP/2"| orch_5
orch_5 -->|"5. Asks model · HTTP/2"| aigw_8
aigw_8 -->|"6. Calls model · HTTPS"| model_1
model_1 -->|"7. Model reply · HTTPS"| aigw_8
aigw_8 -->|"8. Returns reply · HTTP/2"| orch_5
orch_5 -->|"9. Checks output · HTTP/2"| gout_7
gout_7 -->|"10a. Returns verdict · HTTP/2"| orch_5
gout_7 -.->|"10b. Holds reply · TCP"| queue_9
orch_5 -->|"11a. Answer or notice · HTTP/2"| gw_4
queue_9 -.->|"11b. Pulls item · TCP"| reviewer_2
gw_4 -->|"12. Relays answer · HTTPS"| client_0
idp_3 -->|"Publishes keys (JWKS) · HTTPS"| gw_4
gin_6 -->|"Exports (OTLP) · OTLP"| tsdb_10
tsdb_10 -->|"Feeds Alerting · HTTP"| alerting_11COMPONENT STACK (12)
- Web ClientSTATEFULSends prompts from an untrusted network
- Inference serverSTATELESSHosted model API outside our boundary
- Human-in-the-loop approval (HITL)STATELESSA person reviews held replies
- Identity provider (IdP)STATEFULIssues the JWT; publishes its signing keys
- API gatewaySTATELESSChecks the JWT, then starts the request
- Agent orchestration runtimeSTATEFULRuns the model call; obeys each guardrail verdict
- GuardrailsSTATELESSInput check on the prompt; fail closed
- GuardrailsSTATELESSOutput check on the reply; fail closed
- AI gatewaySTATELESSHolds the model key; limits and retries model calls
- Message queueSTATEFULHolds flagged replies for a person
- Time-series database (TSDB)STATEFULStores block, hold and timeout counts
- AlertingSTATEFULPages on-call when checks go silent
REQUEST & DATA FLOW (17)
- Web Client → API gateway (Calls with JWT)[HTTPS]
- API gateway → Agent orchestration runtime (Starts request)[HTTP/2]
- Agent orchestration runtime → Guardrails (Checks input)[HTTP/2]
- Guardrails → Agent orchestration runtime (Returns verdict)[HTTP/2]
- Agent orchestration runtime → AI gateway (Asks model)[HTTP/2]
- AI gateway → Inference server (Calls model)[HTTPS]
- Inference server → AI gateway (Model reply)[HTTPS]
- AI gateway → Agent orchestration runtime (Returns reply)[HTTP/2]
- Agent orchestration runtime → Guardrails (Checks output)[HTTP/2]
- Guardrails → Agent orchestration runtime (Returns verdict)[HTTP/2]
- Guardrails → Message queue (Holds reply)[TCP]
- Agent orchestration runtime → API gateway (Answer or notice)[HTTP/2]
- Message queue → Human-in-the-loop approval (HITL) (Pulls item)[TCP]
- API gateway → Web Client (Relays answer)[HTTPS]