ARCHOS 525 BLUEPRINT · /d/dgm_agent-platform
Agent platform (tool-calling agent loop with durable state and approval)
14 COMPONENTS · 18 FLOWS · UPDATED 2026-11-20
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_agent-platform) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_agent-platform)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_agent-platform" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Agent platform (tool-calling agent loop with durable state and approval) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0[("Web Client")]
inference_1["Inference server"]
rs_2["Resource server"]
idp_3[("Identity provider (IdP)")]
gw_4["API gateway"]
tsdb_5[("Time-series database (TSDB)")]
alerting_6[("Alerting")]
we_7[("Durable workflow engine")]
orch_8[("Agent orchestration runtime")]
toolgw_9["Function calling"]
pdp_10["Policy decision point (PDP)"]
secrets_11[("Secrets manager")]
aigw_12["AI gateway"]
capacity_13["Capacity Estimate"]
client_0 -->|"1. Calls with JWT · HTTPS"| gw_4
gw_4 -->|"2. Starts run · HTTP/2"| orch_8
orch_8 -->|"3a. Saves run state · HTTP/2"| we_7
orch_8 -->|"3b. Asks model · HTTP/2"| aigw_12
aigw_12 -->|"4. Calls model · HTTPS"| inference_1
inference_1 -->|"5. Model reply · HTTPS"| aigw_12
aigw_12 -->|"6. Tool request · HTTP/2"| orch_8
orch_8 -->|"7. Calls tool · HTTP/2"| toolgw_9
toolgw_9 -->|"8. Asks policy · HTTP/2"| pdp_10
pdp_10 -->|"9. Decision · HTTP/2"| toolgw_9
toolgw_9 -->|"10a. Calls tool · HTTPS"| rs_2
toolgw_9 -->|"10b. Returns result · HTTP/2"| orch_8
orch_8 -->|"11. Sends answer · HTTP/2"| gw_4
gw_4 -->|"12. Relays answer · HTTPS"| client_0
idp_3 -->|"Publishes keys (JWKS) · HTTPS"| gw_4
secrets_11 -->|"Supplies model key · HTTPS"| aigw_12
orch_8 -->|"Exports (OTLP) · OTLP"| tsdb_5
tsdb_5 -->|"Queried by alerting · HTTP"| alerting_6COMPONENT STACK (13)
- Web ClientSTATEFULStarts and approves runs from an untrusted network
- Inference serverSTATELESSHosted model API outside our boundary
- Resource serverSTATELESSExternal tool API that checks the scoped token
- Identity provider (IdP)STATEFULIssues the JWT; publishes its signing keys
- API gatewaySTATELESSChecks the JWT and scope, then starts the run
- Time-series database (TSDB)STATEFULStores step count, errors, latency, spend
- AlertingSTATEFULPages on-call on error or spend spikes
- Durable workflow engineSTATEFULRun history in PostgreSQL; resumes runs
- Agent orchestration runtimeSTATEFULLoops: model, tool, observe; step cap, token budget
- Function callingSTATELESSGateway that runs only allowed tools, least privilege
- Policy decision point (PDP)STATELESSAllows, denies or asks for approval per tool
- Secrets managerSTATEFULHolds the model key and tool credentials
- AI gatewaySTATELESSHolds the model key; routes and limits model calls
REQUEST & DATA FLOW (18)
- Web Client → API gateway (Calls with JWT)[HTTPS]
- API gateway → Agent orchestration runtime (Starts run)[HTTP/2]
- Agent orchestration runtime → Durable workflow engine (Saves run state)[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 (Tool request)[HTTP/2]
- Agent orchestration runtime → Function calling (Calls tool)[HTTP/2]
- Function calling → Policy decision point (PDP) (Asks policy)[HTTP/2]
- Policy decision point (PDP) → Function calling (Decision)[HTTP/2]
- Function calling → Resource server (Calls tool)[HTTPS]
- Function calling → Agent orchestration runtime (Returns result)[HTTP/2]
- Agent orchestration runtime → API gateway (Sends answer)[HTTP/2]
- API gateway → Web Client (Relays answer)[HTTPS]