WardenAI โ€” AI Governance

Multi-agent AI builds fast.
The hard part is governance.

WardenAI is an agent governance layer for software delivery โ€” structured human checkpoints, domain-specific skills, and a self-improving correction loop that stops the same mistake from repeating across sprints.

Get in Touch See how it works ๐Ÿ”’ Private repository
Human sign-off on every gate Full EVIDENCE.md audit trail Pluggable execution engine
Human-in-the-Loop Multi-agent SDLC BDD Traceability Self-healing Skill refinement Rubric evaluation
Why It Exists
What you actually get

Four things a framework alone doesn't hand you: a decision record, a memory for mistakes, portable domain knowledge, and a cost curve that doesn't punish rigor.

8 gates

Nothing ships without a decision

Every phase transition needs a human APPROVE / REJECT / DECIDE, recorded to EVIDENCE.md.

2+ per sprint

Recurring mistakes become rules

Two recurring corrections in a sprint become a proposed SKILL.md rule before the next ticket runs.

per role & domain

Knowledge lives in the agents

Composable SKILL.md files carry the rules โ€” not tribal knowledge stuck in one person's head.

sized to the task

Judgment where it counts

Mechanical roles run on cheaper, faster models; judgment-heavy roles run on the stronger one โ€” not a blanket top-tier default.

01 / The Problem
Frameworks give you orchestration. Nobody gives you correctness.

Multi-agent frameworks solve agent-to-agent handoffs. They don't solve what happens around those handoffs โ€” quality gates, domain knowledge, human oversight, and a way to stop the same mistake from happening twice.

Orchestration frameworks provide the agent-to-agent plumbing. WardenAI adds the governance layer on top โ€” quality gates, structured human checkpoints, and a correction loop that turns a repeated mistake into a reviewable rule. It defines what each agent should know and when a human must intervene. The execution engine (Claude Code, Gemini, any LLM) is pluggable.
02 / How It Works
Eight gates. Every handoff is a checkpoint.

Agents don't pass work directly to each other. Every phase produces output, emits a structured checkpoint, and waits for a human APPROVE / REJECT / DECIDE before the next phase runs. The human acts at gates โ€” never mid-phase.

PO
BDD feature
G1
ARCH
pre-dev
G2
TL
spec
G3
DEV
self-heal ร—3
G4
Evaluator loop ยท max 2 passes
CR
DEV fixes
G5
ARCH
QA
parallel
G6ยท7
Post-Process
corrections
G8
03 / Key Mechanisms
Designed for domains where correctness matters

Seven agent roles. Composable domain skills. A BDD traceability chain from requirement to test. And a self-healing loop that tries to fix its own failures before surfacing them.

๐Ÿ“‹
Product Owner
๐Ÿ›๏ธ
Architect
๐Ÿงญ
Tech Lead
๐Ÿ› ๏ธ
Developer
๐Ÿ”
Code Reviewer
โœ…
QA
๐Ÿ”
Post-Process
Self-Heal Loop

DEV fixes its own test failures before escalating

On a red test, the DEV agent reads the stack trace, makes a targeted fix, and re-runs โ€” up to 3 iterations. If still failing, Gate 4 surfaces a diagnosed failure with iteration history, not a raw traceback. The loop has hard stops: secrets, scope expansion, or repeated identical fixes bypass it entirely.

Skill Composition

Domain knowledge injected per agent role

Each agent loads composable SKILL.md files: an Azure Function skill enforces _require_env() for secrets, Service Bus error isolation, PII rules, and golden example tests. Skills are separate from role definitions โ€” the same domain skill can compose across multiple agents.

BDD Traceability

From requirement to test, every step linked

PO writes acceptance criteria as Given/When/Then scenarios. TL verifies them for technical completeness. DEV implements step definitions against the same file. CR checks that every AC has a corresponding passing test. A traceability gap at any step is a Gate block.

Context Compaction

DEV reads a brief, not three phases of history

After Gate 3, the context-compactor skill distils the accumulated ticket into a DEV-BRIEF.md โ€” just the file structure, edge cases, fixtures, and reference values DEV needs. The full ticket stays as the audit record. DEV reads the brief. Context noise drops, reliability goes up.

HITL Protocol

Structured checkpoints, not ad-hoc prompts

Every agent emits a standard checkpoint before handoff: ALWAYS SURFACE items, conditional FLAG items, and AUTO-BLOCK conditions with no bypass. The human responds with APPROVE, REJECT: <reason>, or DECIDE: <choice>. Every response is recorded in EVIDENCE.md โ€” the committed human oversight audit trail.

Model Tiering

Judgment roles on strong models, mechanical roles cheap

Agent frontmatter declares a model: tier. ARCH, TL, CR, and QA run on Sonnet (judgment-heavy, cross-cutting decisions). PO and Post-Process run on Haiku (structured formatting, categorisation). Any orchestration layer picks this up automatically, so spend scales with how much judgment a step actually needs.

04 / The Intelligence Loop
Recurring mistakes become rules, not repeat incidents

Post-Process reads self-heal logs, CR findings, and QA results. When two corrections of the same type appear in a sprint, the system proposes a concrete rule addition to the relevant skill file. The human approves the exact text. It gets committed. The loop closes.

01
Self-heal log written to ticket MD
Each iteration records: error summary, fix applied, result. An exhausted loop adds a root cause assessment before escalating to Gate 4.
DEV
02
Post-Process categorises and indexes
Reads self-heal logs, REVIEW.md, and QA.md. Writes full detail to the ticket's === CORRECTIONS === section. Appends one index row to root CORRECTIONS.md โ€” ID, ticket, sprint, category, agent, status.
POST
03
Pattern detection on the compact index
Skill-refinement reads only the index โ€” bounded size, fast scan. Filters to open entries in the sprint window. Groups by category + agent. If any group has 2+ entries, threshold is met.
AUTO
04
Reads ticket detail only for matched patterns
Skill-refinement fetches the === CORRECTIONS === section from the 2โ€“3 referenced tickets. Drafts a concrete addition to the relevant SKILL.md โ€” an exact line, not vague guidance.
AUTO
05
DECIDE checkpoint at Gate 8
The human sees the pattern, root cause, proposed exact line, and rationale. APPROVE to commit it, DECIDE to rewrite the wording, REJECT to leave the skill unchanged. Every response is recorded in EVIDENCE.md.
HUMAN
06
SKILL.md updated and committed
The approved rule is applied to the target skill file and committed with a traceable message. Index rows and ticket sections are marked resolved. The same root cause cannot produce another exhausted loop next sprint without a deliberate human decision to skip it.
DONE
TICKET-142 ยท Gate 8
โš 
Pattern detected
2 corrections this sprint ยท category: null-check ยท agent: DEV
What was found
  • TICKET-138: unhandled null on optional API field
  • TICKET-142: same failure mode, different endpoint
Proposed rule โ€” development/SKILL.md
Always guard optional API response fields with a null check before property access.
Every response recorded to EVIDENCE.md
Architecture decision โ€” why a compact index, not a flat log
Before
CORRECTIONS.md (root)
โ”œโ”€ CORR-001 โ€” full detail
โ”œโ”€ CORR-002 โ€” full detail
   ... 80 more entries
โ”œโ”€ Pattern Analysis table
โ””โ”€ Proposal blocks

Skill-refinement reads
the entire file every run.
Merge conflicts on every ticket.
After
CORRECTIONS.md (root)
โ”‚ 6 columns, append-only rows
โ”‚ no prose, no detail

tickets/TICKET-007.md
โ”‚ === CORRECTIONS ===
โ”‚ full detail, self-heal ref
โ””โ”€ no other ticket can conflict

Pattern detection reads index.
Proposal fetches 2โ€“3 tickets.
Scales to any sprint size.
05 / Who It's For
Who it's for

Not every team needs eight gates. This is built for the ones where "the tests pass" isn't the same thing as "this is safe to ship."

01

Teams shipping AI-authored code in regulated or high-stakes domains

Where a reviewer needs to see why a change is correct, not just that CI is green โ€” and where that reasoning has to be committed somewhere auditable.

02

Platform / DevEx teams standardizing multi-agent workflows

One skill system and one gate protocol reused across squads, instead of every team hand-rolling its own agent prompts and quality bar.

03

Anyone tired of the same review comment every sprint

If a correction is worth flagging twice, it's worth writing into the skill file once. The loop is built to make that automatic instead of aspirational.

Built for teams who need to prove the output is correct.

WardenAI is a private, proprietary system. Get in touch for a technical walkthrough of the governance layer, skill definitions, and correction pipeline.

Get in Touch Back to Projects ๐Ÿ”’ Private repository