ARCHOS 525 BLUEPRINT · /d/dgm_code-strategy-and-policy-injection
Strategy & Policy Injection (Table-Driven Extensible Rules)
6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_code-strategy-and-policy-injection) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_code-strategy-and-policy-injection)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_code-strategy-and-policy-injection" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Strategy & Policy Injection (Table-Driven Extensible Rules) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0["Context + Rule Key"]
n1_1[("Policy Registry Map")]
n2a_2["Pure Strategy Impl"]
n2b_3["Fallback / Safe Default"]
n3_4["Audited Decision"]
downstream_5["Downstream & OTel"]
client_0 -->|"1. Resolve · Map"| n1_1
n1_1 -->|"2a. Evaluate · Strategy"| n2a_2
n1_1 -->|"2b. Default · Guard"| n2b_3
n2a_2 -->|"3a. Emit rule · Decision"| n3_4
n2b_3 -->|"3b. Merge · RAM"| n3_4
n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5COMPONENT STACK (6)
- Context + Rule KeySTATELESSPricing / Routing / AuthZ
- Policy Registry MapSTATEFULO key -> Strategy lookup
- Pure Strategy ImplSTATELESSStateless Pricing / Retry policy
- Fallback / Safe DefaultSTATELESSFail-closed default policy
- Audited DecisionSTATELESSResult + rule version tag
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Context + Rule Key → Policy Registry Map (Resolve)[Map]
- Policy Registry Map → Pure Strategy Impl (Evaluate)[Strategy]
- Policy Registry Map → Fallback / Safe Default (Default)[Guard]
- Pure Strategy Impl → Audited Decision (Emit rule)[Decision]
- Fallback / Safe Default → Audited Decision (Merge)[RAM]
- Audited Decision → Downstream & OTel (Emit /)[OTLP/API]