ARCHOS 525 BLUEPRINT · /d/dgm_support-agent
Customer Support Agent (grounded answers, approved refunds)
17 COMPONENTS · 23 FLOWS · UPDATED 2026-11-21
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_support-agent) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_support-agent)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_support-agent" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Customer Support Agent (grounded answers, approved refunds) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0[("Customer")]
model_1["Inference server"]
reviewer_2["Human-in-the-loop approval (HITL)"]
gw_3["API gateway"]
orch_4[("Agent orchestration runtime")]
tsdb_5[("Time-series database (TSDB)")]
alerting_6[("Alerting")]
secrets_7[("Secrets manager")]
aigw_8["AI gateway"]
guard_9["Guardrails"]
toolgw_10["Function calling"]
postgres_11[("PostgreSQL")]
vector_12[("Vector database")]
queue_13[("Message queue")]
dlq_14[("Dead-letter queue (DLQ)")]
pdp_15["Policy decision point (PDP)"]
capacity_16["Capacity Estimate"]
client_0 -->|"1. Calls with JWT · HTTPS"| gw_3
gw_3 -->|"2. Starts turn · HTTP/2"| orch_4
orch_4 -->|"3. Screens input · HTTP/2"| guard_9
guard_9 -->|"4. Verdict · HTTP/2"| orch_4
orch_4 -->|"5. Asks model · HTTP/2"| aigw_8
aigw_8 -->|"6. Calls model · HTTPS"| model_1
model_1 -->|"7. Reply · HTTPS"| aigw_8
aigw_8 -->|"8. Reply · HTTP/2"| orch_4
orch_4 -->|"9. Calls tool · HTTP/2"| toolgw_10
toolgw_10 -->|"10a. Result · HTTP/2"| orch_4
toolgw_10 -->|"10b. Asks approval · TCP"| queue_13
orch_4 -->|"11a. Cited answer · HTTP/2"| gw_3
queue_13 -->|"11b. Notifies · HTTPS"| reviewer_2
gw_3 -->|"12. Answer · HTTPS"| client_0
orch_4 -->|"Reads, writes memory · SQL"| postgres_11
secrets_7 -->|"Model key · HTTPS"| aigw_8
toolgw_10 -->|"Asks policy · HTTP/2"| pdp_15
queue_13 -->|"Parks · TCP"| dlq_14
orch_4 -->|"Exports (OTLP) · OTLP"| tsdb_5
tsdb_5 -->|"Feeds alerts · HTTP"| alerting_6
reviewer_2 -->|"Approves (JWT) · HTTPS"| pdp_15
orch_4 -->|"Retrieves · HTTP/2"| vector_12
vector_12 -->|"Passages · HTTP/2"| orch_4COMPONENT STACK (16)
- CustomerSTATEFULChats from an untrusted network
- Inference serverSTATELESSHosted model API outside our boundary
- Human-in-the-loop approval (HITL)STATELESSSupport person who approves refunds
- API gatewaySTATELESSChecks the JWT, then starts the turn
- Agent orchestration runtimeSTATEFULLoops: model, tool, observe; step cap
- Time-series database (TSDB)STATEFULStores turn latency, errors, tokens
- AlertingSTATEFULPages on turn errors and latency
- Secrets managerSTATEFULHolds the model API key
- AI gatewaySTATELESSHolds the model key; routes and limits calls
- GuardrailsSTATELESSScreens input and the draft answer
- Function callingSTATELESSRuns only allowed tools, least privilege
- PostgreSQLSTATEFULTickets and conversation memory
- Vector databaseSTATEFULHelp-center passages with source ids
- Message queueSTATEFULHolds refund approvals for a person
- Dead-letter queue (DLQ)STATEFULParks approvals that keep failing
- Policy decision point (PDP)STATELESSAllows, denies or asks approval per tool
REQUEST & DATA FLOW (23)
- Customer → API gateway (Calls with JWT)[HTTPS]
- API gateway → Agent orchestration runtime (Starts turn)[HTTP/2]
- Agent orchestration runtime → Guardrails (Screens input)[HTTP/2]
- Guardrails → Agent orchestration runtime (Verdict)[HTTP/2]
- Agent orchestration runtime → AI gateway (Asks model)[HTTP/2]
- AI gateway → Inference server (Calls model)[HTTPS]
- Inference server → AI gateway (Reply)[HTTPS]
- AI gateway → Agent orchestration runtime (Reply)[HTTP/2]
- Agent orchestration runtime → Function calling (Calls tool)[HTTP/2]
- Function calling → Agent orchestration runtime (Result)[HTTP/2]
- Function calling → Message queue (Asks approval)[TCP]
- Agent orchestration runtime → API gateway (Cited answer)[HTTP/2]
- Message queue → Human-in-the-loop approval (HITL) (Notifies)[HTTPS]
- API gateway → Customer (Answer)[HTTPS]