ARCHOS 525 BLUEPRINT · /d/dgm_agent-trace-and-telemetry-schema
Agent trace and telemetry schema (spans, metrics, redaction, sampled evaluation)
13 COMPONENTS · 15 FLOWS · UPDATED 2026-11-21
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_agent-trace-and-telemetry-schema) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_agent-trace-and-telemetry-schema)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_agent-trace-and-telemetry-schema" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Agent trace and telemetry schema (spans, metrics, redaction, sampled evaluation) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0[("Web Client")]
alerting_1[("Alerting")]
orch_2[("Agent orchestration runtime")]
toolgw_3["Function calling"]
pdp_4["Policy decision point (PDP)"]
tsdb_5[("Time-series database (TSDB)")]
queue_6[("Message queue")]
worker_7["Competing consumers"]
dlq_8[("Dead-letter queue (DLQ)")]
eval_9[("Evaluation service")]
store_10[("PostgreSQL")]
secrets_11[("Secrets manager")]
capacity_12["Capacity Estimate"]
client_0 -->|"1. Asks with JWT · HTTPS"| orch_2
orch_2 -->|"2. Calls with trace id · HTTP/2"| toolgw_3
toolgw_3 -->|"3. Returns result · HTTP/2"| orch_2
orch_2 -->|"4a. Relays answer · HTTPS"| client_0
orch_2 -.->|"4b. Publishes spans · TCP"| queue_6
queue_6 -.->|"5a. Delivers spans · TCP"| worker_7
queue_6 -.->|"5b. Broker parks spans · TCP"| dlq_8
worker_7 -.->|"6. Writes redacted · SQL"| store_10
toolgw_3 -->|"Asks, fails closed · HTTP/2"| pdp_4
orch_2 -->|"Exports metrics · OTLP"| tsdb_5
queue_6 -->|"Reports depth · OTLP"| tsdb_5
dlq_8 -->|"Reports depth · OTLP"| tsdb_5
tsdb_5 -->|"Notifies · HTTP"| alerting_1
eval_9 -->|"Reads, writes score · SQL"| store_10
secrets_11 -->|"Supplies credential · HTTPS"| eval_9COMPONENT STACK (12)
- Web ClientSTATEFULStaff member on an untrusted network
- AlertingSTATEFULOn-call pager outside our boundary
- Agent orchestration runtimeSTATEFULOpens the run span; passes the trace id on
- Function callingSTATELESSRuns tools; returns its span with the result
- Policy decision point (PDP)STATELESSAllows tools per user
- Time-series database (TSDB)STATEFULStores latency, tokens, errors
- Message queueSTATEFULBuffers spans before processing
- Competing consumersSTATELESSRedacts fields and samples spans
- Dead-letter queue (DLQ)STATEFULUnredacted failed spans, kept 3 days
- Evaluation serviceSTATEFULScores a sample of stored traces
- PostgreSQLSTATEFULData team store of redacted spans
- Secrets managerSTATEFULHolds the trace store credential
REQUEST & DATA FLOW (15)
- Web Client → Agent orchestration runtime (Asks with JWT)[HTTPS]
- Agent orchestration runtime → Function calling (Calls with trace id)[HTTP/2]
- Function calling → Agent orchestration runtime (Returns result)[HTTP/2]
- Agent orchestration runtime → Web Client (Relays answer)[HTTPS]
- Agent orchestration runtime → Message queue (Publishes spans)[TCP]
- Message queue → Competing consumers (Delivers spans)[TCP]
- Message queue → Dead-letter queue (DLQ) (Broker parks spans)[TCP]
- Competing consumers → PostgreSQL (Writes redacted)[SQL]
- Function calling → Policy decision point (PDP) (Asks, fails closed)[HTTP/2]
- Agent orchestration runtime → Time-series database (TSDB) (Exports metrics)[OTLP]
- Message queue → Time-series database (TSDB) (Reports depth)[OTLP]
- Dead-letter queue (DLQ) → Time-series database (TSDB) (Reports depth)[OTLP]
- Time-series database (TSDB) → Alerting (Notifies)[HTTP]
- Evaluation service → PostgreSQL (Reads, writes score)[SQL]