CSPM Triage Loop
The full loop
┌─────────────────────────────────────────────────────────────────────┐
│ cspm-triage │
│ │
│ Phase 0: collect inputs (observation ID, local source path) │
│ ↓ │
│ Phase 1: parallel validation (env vars, service health, │
│ observation fetch, IaC detection, classification lookup) │
│ ↓ │
│ Phase 2: tier assignment │
│ ↓ │
│ 1. Gather context ─────── Body type, control ID, severity, │
│ ↓ resource type, remediation spec │
│ 2. Classify ──────────── Create gomboc-ai/wiz/<control-id> YAML │
│ ↓ (skipped if already exists) │
│ 3. Diagnose local code ─ IaC match + code confidence gate │
│ ↓ │
│ 4. Build ORL rule ─────── build-rule delegates to orl-planner │
│ ↓ → orl-expert → orl-test-planner │
│ 5. Enrich metadata ─────── enrich-rule (risk scores, diff example) │
│ ↓ │
│ 6. Review + release ───── review-rule → release-rule │
│ ↓ │
│ 7. Apply, commit, PR ──── orl remediate + gh pr create │
│ ↓ + write triage artifact (.gomboc/triage/) │
│ 8. Resolution note ─────── add_observation_note.py → Wiz UI │
└─────────────────────────────────────────────────────────────────────┘Stage breakdown
Stage
Skills / tools involved
What it produces
Tiers
Tier
Condition
What the loop produces
Code match confidence gate
Confidence
Condition
Action
Caveats
exampleObservationId may be null or stale in unique-observation results
exampleObservationId may be null or stale in unique-observation resultsGitHub token and PR creation
Required environment variables
Variable
Purpose
How to trigger the loop in each agent
Agent
How to trigger
Output artifacts
Common starting points (partial loop)
Starting point
What to run
Quick-start examples
How cspm-triage fits in the broader Gomboc plugin
Workflow
Entry point
Starts from
See also
Last updated