Policy Enforcement Loop
The full loop
┌─────────────────────────────────────────────────────────────────┐
│ enforce-policy │
│ │
│ 1. diagnose ──────────────── Find violations in code │
│ ↓ │
│ 2. orl-existing-rules / rules-service ── Check rule coverage │
│ ↓ ↓ │
│ ┌────────────────┐ ┌──────────────────────────────────────┐ │
│ │ Rules exist │ │ No rule exists — create one │ │
│ │ (path 3A) │ │ (path 3B) │ │
│ │ │ │ │ │
│ │ orl-remediation│ │ orl-planner │ │
│ │ -planner │ │ ↓ │ │
│ │ ↓ │ │ orl-test-planner │ │
│ │ orl-remediation│ │ ↓ │ │
│ │ -expert │ │ orl-expert (build + test) │ │
│ └────────────────┘ │ ↓ │ │
│ ↓ │ orl-reviewer (quality gate) │ │
│ │ ↓ │ │
│ │ orl-metadata-enricher │ │
│ │ ↓ │ │
│ │ rules-service (publish) │ │
│ │ ↓ │ │
│ │ orl-remediation-expert (apply) │ │
│ └──────────────────────────────────────┘ │
│ ↓ ↓ │
│ 4. diagnose ──────────────── Verify compliance │
└─────────────────────────────────────────────────────────────────┘Stage breakdown
Stage
Skills involved
What it produces
Common starting points (partial loop)
Starting point
What to run
How to trigger the loop in each agent
Agent
How to trigger
Quick-start examples
Flag reference for enforce-policy
enforce-policyFlag
Effect
See also
Last updated