Skip to main content
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
[![Agent platform (tool-calling agent loop with durable state and approval) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_agent-platform/opengraph-image)](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_6

COMPONENT STACK (13)

  • Web ClientSTATEFUL
    Starts and approves runs from an untrusted network
  • Inference serverSTATELESS
    Hosted model API outside our boundary
  • Resource serverSTATELESS
    External tool API that checks the scoped token
  • Identity provider (IdP)STATEFUL
    Issues the JWT; publishes its signing keys
  • API gatewaySTATELESS
    Checks the JWT and scope, then starts the run
  • Time-series database (TSDB)STATEFUL
    Stores step count, errors, latency, spend
  • AlertingSTATEFUL
    Pages on-call on error or spend spikes
  • Durable workflow engineSTATEFUL
    Run history in PostgreSQL; resumes runs
  • Agent orchestration runtimeSTATEFUL
    Loops: model, tool, observe; step cap, token budget
  • Function callingSTATELESS
    Gateway that runs only allowed tools, least privilege
  • Policy decision point (PDP)STATELESS
    Allows, denies or asks for approval per tool
  • Secrets managerSTATEFUL
    Holds the model key and tool credentials
  • AI gatewaySTATELESS
    Holds the model key; routes and limits model calls

REQUEST & DATA FLOW (18)

  1. Web Client → API gateway (Calls with JWT)[HTTPS]
  2. API gateway → Agent orchestration runtime (Starts run)[HTTP/2]
  3. Agent orchestration runtime → Durable workflow engine (Saves run state)[HTTP/2]
  4. Agent orchestration runtime → AI gateway (Asks model)[HTTP/2]
  5. AI gateway → Inference server (Calls model)[HTTPS]
  6. Inference server → AI gateway (Model reply)[HTTPS]
  7. AI gateway → Agent orchestration runtime (Tool request)[HTTP/2]
  8. Agent orchestration runtime → Function calling (Calls tool)[HTTP/2]
  9. Function calling → Policy decision point (PDP) (Asks policy)[HTTP/2]
  10. Policy decision point (PDP) → Function calling (Decision)[HTTP/2]
  11. Function calling → Resource server (Calls tool)[HTTPS]
  12. Function calling → Agent orchestration runtime (Returns result)[HTTP/2]
  13. Agent orchestration runtime → API gateway (Sends answer)[HTTP/2]
  14. API gateway → Web Client (Relays answer)[HTTPS]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →