Back to loops
Reviewmanual triggermarkdown-export Hardened

Regression Risk Audit

A review loop for changes that may have second-order effects. It forces the agent to reason from call chain, data flow, and user-facing behavior.

Use loop copies the kickoff prompt. Copy Markdown and Download loop include the complete Markdown page with context, source attribution, anchors, and guardrails. Cursor / Claude Code buttons prepare the shorter kickoff prompt only.

Run shape

Supported agents

CursorClaude CodeCodex

Goal

Identify likely regressions and verify the highest-risk paths.

Feedback gate

git diff --name-only main...HEAD

Stop condition

Top regression risks are either tested, ruled out, or documented as unresolved.

Do not weaken, skip, delete, or rewrite the validation command to force success.
Do not claim completion until the stated exit condition is actually satisfied.
If blocked, report the blocker, evidence, and next safest action instead of gaming the metric.
Required context

Give the agent these inputs before it starts the loop. This keeps discovery bounded and prevents vague retries.

Changed files.
Feature area.
Acceptance criteria.
Required tools

The loop assumes these commands or integrations are available. Missing tools should be reported as blockers, not ignored.

git
rg
tests/build
How to run

Two separate pieces: the kickoff prompt starts the loop, while the downloaded Markdown carries the complete reference page.

1. Copy or download

Use the kickoff for a fast agent run. Download the full Markdown when you need source, context, and attribution in one file.

2. Paste into the agent

Start a fresh agent session in the target repo and provide the requested project context if the loop asks for it.

3. Let it self-pace

The agent should act, check evidence, retry only when the gate fails, and stop at the stated exit condition.

manual triggerReview Step flow
Manual start
Map changed surfaces
List failure modes
Verify top risks
Report residual risk
Feedback gate
Top regression risks are either tested, ruled out, or documented as unresolved.
not done → return to next actiondone → exit condition met
Manual startMap changed surfacesList failure modesVerify top risksReport residual riskFeedback gatedoneTop regression risks are either tested, ruled out, or documented as unresolved.not done
Action checklist

The diagram shows the order. This checklist keeps only the action, command, and failure handling needed during a real pass.

1. Map changed surfaces

List changed files and affected routes/services/components.

git diff --name-only main...HEAD

2. List failure modes

Enumerate plausible user-visible and runtime failures.

3. Verify top risks

Run targeted tests or inspect code paths for top risks.

4. Report residual risk

State what remains unverified and why.

Kickoff prompt

This is the text copied by Use loop. It is intentionally shorter than the Markdown export.

Map the changed files to affected call chains, list likely regressions, verify the top risks, and report remaining uncertainty.
Goal: Identify likely regressions and verify the highest-risk paths.
Check command: git diff --name-only main...HEAD
Exit condition: Top regression risks are either tested, ruled out, or documented as unresolved.
Max iterations: 4
Guardrails:
- Do not weaken, skip, delete, or rewrite the validation command to force success.
- Do not claim completion until the stated exit condition is actually satisfied.
- If blocked, report the blocker, evidence, and next safest action instead of gaming the metric.
- Do not overstate confidence when a risk was not actually verified.

Quality

86/100

Safety

90/100

Expected output

A risk map, verification plan, and pass/fail evidence.

Related loops

Browse all
Reviewmanual trigger Hardened

Independent Verifier Pass

Review an agent-produced change as a skeptical verifier before it is marked done.

CursorClaude CodeCodex
reviewverificationquality

Kickoff preview

Act as an independent verifier. Restate the requirements, inspect the diff, run relevant checks, and return a pass/fail/blocker verdict with evidence.
Goal: Prove the implementation satisfies the request without relying on the implementer’s claim.
Check command: git diff --stat && git diff --check
Exit condition: The verifier can map each requirement to code and verification evidence.
Max iterations: 3
Guardrails:
- Do not weaken, skip, delete, or rewrite the validation command to force success.
- Do not claim completion until the stated exit condition is actually satisfied.
- If blocked, report the blocker, evidence, and next safest action instead of gaming the metric.
- Do not rubber-stamp. Find at least one plausible failure mode and check it.
View
Reviewmanual trigger Hardened

PR Self Review

Have the agent review its own pull request for requirement coverage, risky changes, and missing tests.

CursorClaude CodeCodex
pull-requestreviewdiff

Kickoff preview

Review your own PR against the original task, changed files, tests, and risk categories. Fix must-fix issues and report evidence.
Goal: Identify problems in the agent’s own PR before human review.
Check command: git diff --stat main...HEAD && git diff --check main...HEAD
Exit condition: No must-fix review issues remain, or unresolved issues are clearly documented.
Max iterations: 3
Guardrails:
- Do not weaken, skip, delete, or rewrite the validation command to force success.
- Do not claim completion until the stated exit condition is actually satisfied.
- If blocked, report the blocker, evidence, and next safest action instead of gaming the metric.
- Do not hide unresolved issues; label them as risks or blockers.
View
Docsevent trigger Hardened

Docs Sync After Edits

After behavior or API changes, update README, docs, examples, and project instructions to match the code.

CursorClaude CodeCodex
docsreadmechangelog

Kickoff preview

Review code changes for documentation impact, update relevant docs/examples/instructions, and report evidence or why no docs update is needed.
Goal: Keep documentation aligned with code changes.
Check command: git diff --name-only HEAD
Exit condition: Docs are updated for relevant changes or the no-docs-needed decision is justified.
Max iterations: 3
Guardrails:
- Do not weaken, skip, delete, or rewrite the validation command to force success.
- Do not claim completion until the stated exit condition is actually satisfied.
- If blocked, report the blocker, evidence, and next safest action instead of gaming the metric.
- Do not update docs with behavior that the code does not actually implement.
View
CImanual trigger Hardened

Ship PR Until Green

Implement a scoped change, open or update a pull request, inspect CI, and continue until all required PR checks pass.

CursorClaude CodeCodex
pull-requestcigithub-actionsverification

Kickoff preview

Take this branch to a green pull request. Implement the requested change, run local verification, open or update the PR, run `gh pr checks`, inspect failures, fix root causes, and repeat until every required check passes or you hit the iteration cap.
Goal: Open or update a pull request and stop only when all required PR checks are green.
Check command: gh pr checks
Exit condition: All required pull request checks are successful and the PR is ready for review or merge.
Max iterations: 10
Guardrails:
- Do not weaken, skip, delete, or rewrite the validation command to force success.
- Do not claim completion until the stated exit condition is actually satisfied.
- If blocked, report the blocker, evidence, and next safest action instead of gaming the metric.
- Do not disable required checks, edit loops to skip jobs, or remove tests to make CI green.
- Do not merge the PR unless the user explicitly asked for merge authority.
View