Adaptive Review Orchestrator
Skill4 starsChanged 12 days agoApache-2.0View on GitHub
Autonomously selects review protocols and dispatches nested subagents based on Sentry finding severity.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- nseney1/Soma-Governanceword for word, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 1
- nseney1/Soma-Governance★ 4100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- Domain ResearcherSkill
- Genesis — Codebase Onboarding ReconnaissanceSkill
- Governance AuditorSkill
- incident-debugSkill
- performance-auditSkill
- post-mortemSkill
- readme-writerSkill
- refactoring-pilotSkill
- security-auditSkill
- Session MonitorSkill
- Session Pre-flight ProbeSkill
- Spec SynthesizerSkill
- Staff Review ProtocolSkill
- Visual AnalystSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Run the orchestrator as one subagent (${SLOT.TOOL_SUBAGENT}) that may itself dispatch subagents and write its report.
- Distinctive: line 57
Ship: Only when the full adversarial cycle is clean.
- Distinctive: line 61
If Bastion returns BLOCK:
- Distinctive: line 64
If still BLOCK → report to parent
- Distinctive: line 66
If Gauntlet breaks fixes:
- Distinctive: line 72
Before dispatching, the orchestrator inspects the target:
- Very specific: line 76
Read governance/debrief_queue.jsonl for known anti-patterns
- Very specific: line 80
ALL prong subagents: ${SLOT.MODEL_FAST} model, read-only (no write tools)
- Distinctive: line 111
Post-mortem analysis: Use standalone Sentry — no fixes needed.
- Very specific: line 112
Live monitoring: Use session-monitor skill instead.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Adaptive Review Orchestrator
Role: Autonomously execute review protocols by dispatching nested subagents. Eliminates manual protocol selection — the orchestrator starts with Sentry and auto-escalates based on finding severity.
Setup
Run the orchestrator as one subagent (${SLOT.TOOL_SUBAGENT}) that may itself dispatch subagents and write its report. Where the host lets you define a reusable subagent type, define one named adaptive_reviewer that may dispatch subagents and write files. Prompt it with:
Review [target files/directory]. Context: [what changed, why]The orchestrator handles everything internally and reports back with a structured synthesis.
Auto-Escalation Logic
The orchestrator runs Sentry first, then decides:
| Sentry Result | Auto-Decision |
| 0 findings or all ℹ️ | STOP as Sweep — synthesize and report |
| 1-3 ⚠️ warnings, 0 🔴 | Probe only — targeted fixes |
| Any 🔴 critical | Full Vanguard — Probe + Bastion |
| 2+ 🔴 or security finding | Bulwark — Probe + Gauntlet + Bastion |
| Infra/auth/schema 🔴 | Fortress — + Trace + Debrief |
| Pre-release / user-requested | Citadel — 8 orthogonal prongs, adversarial pairs, iterative until clean |
Citadel Protocol
Citadel applies the same adversarial information-partitioning principle as Layer 2 verification, but to the review process itself.
Cycle Structure
For each prong pair (e.g., Correctness + Portability):
- 🔴 Prosecutor: Reviews code with the goal of finding every possible defect. Incentivized to over-report.
- 🟢 Defender: Reviews the same code with the goal of proving correctness. Incentivized to disprove findings.
- ⚖️ Arbiter (orchestrator): Reconciles both reports. Only findings that survive the defense make the final cut.
Why Adversarial?
- Eliminates false positives: A cooperative auditor can't catch its own over-reporting bias. A Defender filters noise (e.g., test fixture strings flagged as "hardcoded paths").
- Eliminates false negatives: A Prosecutor actively hunts for issues a cooperative auditor might rationalize away.
- Information asymmetry: Prosecutor sees code + tests, Defender sees code + docstrings/specs. Neither has full context — truth emerges from intersection.
Iteration (No Deferrals)
- Review: Fan out 8 orthogonal prongs (Cycle 1 may be cooperative for triage speed).
- Fix everything: Address ALL findings — security, correctness, quality, elegance. Nothing is deferred. RCA each finding: what broke, how we missed it, antipattern candidate.
- Adversarial re-review: Re-run affected prongs with Prosecutor/Defender pairs. New findings from fixes are treated the same — fix everything.
- Repeat steps 2-3 until all 8 prongs return zero surviving findings in the same cycle.
- Ship: Only when the full adversarial cycle is clean.
Self-Healing
If Bastion returns BLOCK:
- Re-dispatch Probe on failed fixes with Bastion's objections
- Re-run Bastion (max 1 retry)
- If still BLOCK → report to parent
If Gauntlet breaks fixes:
- Re-dispatch Probe with Gauntlet attack vectors as context
- Continue to Bastion with revised fixes
Phase 0: Triage (No Subagent)
Before dispatching, the orchestrator inspects the target:
hooks/**,Makefile,install*→ HIGH sensitivity (Security lens mandatory)rules/*.md(semantic) → MEDIUM (Compliance lens)docs/**,README→ LOW (may stop at Sweep)- Read
governance/debrief_queue.jsonlfor known anti-patterns
Subagent Rules
- ALL prong subagents:
${SLOT.MODEL_FAST}model, read-only (no write tools) - Context Pre-Seed every prompt (~200 token header)
- Orthogonal Persona Mandate: no two scouts share the same lens
- Kill each subagent immediately after debrief
- Max 12 dispatches (hard cap)
Output Format
# Adaptive Review — [Target]
## Protocol: [auto-selected] (escalated from Sentry)
## Verdict: SHIP / BLOCK / REVISE
## 🔴 Critical Findings
## ⚠️ Warnings
## Proposed Fixes (post-Gauntlet if applicable)
## Stats (dispatches, prongs, wall-clock)Proven Results (E11 Testing)
| Metric | Manual Orchestration | Adaptive Orchestrator |
| Parent context consumed | ~6 turns per review | 1 turn (dispatch + receive) |
| Protocol selection | Manual (user guesses) | Empirical (data-driven) |
| Gauntlet revision loop | Manual relay | Autonomous |
| Dispatches | Same count | Same count, 0 wasted |
When NOT to Use
- Patrol (known single-file defect): Use the
staff-reviewskill directly in Patrol mode — adaptive triage adds unnecessary overhead for known defects. - Post-mortem analysis: Use standalone Sentry — no fixes needed.
- Live monitoring: Use
session-monitorskill instead.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

