Run an executor and reviewer loop
A review loop lets an executor produce work, reviewers inspect it, and the executor address blocking feedback.
1. Create a review loop
Start with two roles
A sequential node with an executor and a reviewer forms a review loop. The executor produces a candidate; the reviewer checks it and can approve or request changes.
---schema_version: "1.0"name: Review Loop Examplenodes: - id: implement mode: sequential providers: - provider: codex role: executor - provider: claude role: reviewer---
## implementImplement the requested change and list the files changed. Review loop
Blocking feedback can lead to another executor attempt; the final result is executor output.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Executor → Reviewer · candidate
- Reviewer → Executor · blocking feedback
- Executor → Selected result · select
Produce the candidate
The executor creates the work reviewers will inspect. When a review blocks and a fix remains, unresolved feedback is sent to the executor for another attempt.
Review before selection
The reviewer checks the current candidate and reports issues and a verdict. Blocking feedback can trigger a fix; a clean first candidate review ends any remaining audits.
Select executor work
The selected result comes from an executor, with reviewer verdicts kept in the run record. Depending on the exhaustion policy, continuation does not always mean approval.
Follow the first pass
By default the executor runs first. Crewplane sends the reviewer the same node prompt, the current candidate, and the required review format.
---schema_version: "1.0"name: Review Loop Examplenodes: - id: implement mode: sequential providers: - provider: codex role: executor - provider: claude role: reviewer---
## implementImplement the requested change and list the files changed. Explore the review loop
Maximum fixes in each audit.
Maximum fresh review passes.
Choose whether the executor or reviewers run first.
Reviewers request changes on the first candidate review in each audit, including new issues in later audits. They approve the next review if a fix is available.
codexclaudeAudit and fix budget
Up to 1 audits can run. Each includes a first candidate review and allows up to 1 fixes; the first review does not use a fix.
Ready to start
Choose the settings and outcome, then play or step through the loop.
Depth and audit rounds are maximums. Approval can leave fixes unused, and a clean first review ends the loop early.
Configuration
depth: 1
audit_rounds: 1
review_starts_with: executor One fix in each audit. Reviewers request changes on the first candidate review in each audit, including new issues in later audits. They approve the next review if a fix is available.
- Executor runs — The executor runs to produce this node’s first candidate.
- Candidate ready — Candidate version 1 is the executor output ready for review.
- Changes requested — Reviewers request changes to candidate version 1.
- Executor fixes — Fix 1 of up to 1 in audit 1: the executor receives the current candidate and unresolved feedback.
- Candidate ready — Candidate version 2 is the executor output ready for review.
- Candidate approved — All reviewers approve candidate version 2 in audit 1.
- Approved result selected — Reviewers approved candidate version 2 after a fix, and no later audits remain. The selected result is executor output.
Follow blocked feedback
If review blocks the candidate, unresolved feedback goes into the next executor fix prompt. By default one blocked review can trigger one fix attempt; the loop ends on approval or when attempts are exhausted.
Review loop
Blocking feedback can lead to another executor attempt; the final result is executor output.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Executor → Reviewer · candidate
- Reviewer → Executor · blocking feedback
- Executor → Selected result · select
Produce the candidate
The executor creates the work reviewers will inspect. When a review blocks and a fix remains, unresolved feedback is sent to the executor for another attempt.
Review before selection
The reviewer checks the current candidate and reports issues and a verdict. Blocking feedback can trigger a fix; a clean first candidate review ends any remaining audits.
Select executor work
The selected result comes from an executor, with reviewer verdicts kept in the run record. Depending on the exhaustion policy, continuation does not always mean approval.
Select the result
Review-loop status identifies the selected executor output. Reviewer output remains available as evidence; the final node result comes from an executor.
Saved review evidence
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Executor outputs → Review status · record
- Reviewer outputs → Review status · record
Keep candidate files
Executor outputs remain available in the node stage directory. The status identifies the selected output, and Crewplane checks that file before choosing the final node result.
Keep review evidence
Reviewer responses record verdicts and feedback separately from executor work. An interrupted attempt is distinguished from the last completed review so an old verdict is not attached to new work.
Inspect the decision
The review-loop status records the selected executor output, verdicts, stop reason, and whether attempts ran out. Downstream {{node.output}} points to the selected executor output.
2. Order providers
List executors before reviewers
Keep every executor before every reviewer. Executors run in order, then reviewers run in parallel against the complete set of executor outputs.
providers: - provider: codex role: executor - provider: gemini role: executor - provider: claude role: reviewer - provider: copilot role: reviewer Executor and reviewer phases
Executors run in order; reviewers run in parallel against the same complete set.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- codex → gemini · then
- gemini → Candidate set · collect
- codex → Candidate set · collect
- Candidate set → claude · review
- Candidate set → copilot · review
First executor
Codex runs before Gemini because the executor entries are ordered. Both receive the authored executor instructions; the order does not automatically insert Codex’s response into Gemini’s prompt.
Second executor
Gemini runs after Codex and contributes its own candidate output. For a true plan-to-implementation handoff, use separate nodes with a dependency and an explicit output reference.
Review a complete set
The candidate set contains one output per executor in provider order. If an output is missing, empty, or invalid, reviewers skip that round instead of reviewing a partial set.
Claude reviews the set
Claude reviews both executor outputs, not just one paired response. Its current-round feedback is independent of Copilot’s; all reviewers must approve the same set for approval.
Copilot reviews the set
Copilot receives the same complete candidate set as Claude. The reviewers can run concurrently, subject to the configured provider invocation limit.
Review the whole set
Each executor round produces one candidate set, containing one output per executor in provider order. Reviewers are not paired with individual executors; each reviews the same set.
providers: - provider: codex role: executor - provider: gemini role: executor - provider: claude role: reviewer - provider: copilot role: reviewer Executor and reviewer phases
Executors run in order; reviewers run in parallel against the same complete set.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- codex → gemini · then
- gemini → Candidate set · collect
- codex → Candidate set · collect
- Candidate set → claude · review
- Candidate set → copilot · review
First executor
Codex runs before Gemini because the executor entries are ordered. Both receive the authored executor instructions; the order does not automatically insert Codex’s response into Gemini’s prompt.
Second executor
Gemini runs after Codex and contributes its own candidate output. For a true plan-to-implementation handoff, use separate nodes with a dependency and an explicit output reference.
Review a complete set
The candidate set contains one output per executor in provider order. If an output is missing, empty, or invalid, reviewers skip that round instead of reviewing a partial set.
Claude reviews the set
Claude reviews both executor outputs, not just one paired response. Its current-round feedback is independent of Copilot’s; all reviewers must approve the same set for approval.
Copilot reviews the set
Copilot receives the same complete candidate set as Claude. The reviewers can run concurrently, subject to the configured provider invocation limit.
Avoid partial reviews
If any executor output is empty, missing, or rejected as an invalid candidate, Crewplane skips reviewers for that round rather than reviewing a partial set. If reviewers block a complete set and a fix attempt remains, unresolved feedback goes to all executors.
Incomplete candidate set
An incomplete candidate set does not go to reviewers.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Executors → Invalid or missing output · check
- Invalid or missing output → Reviewers skipped · skip this round
Collect executor outputs
Each executor must supply a valid, non-empty candidate for the round. The reviewers need the complete set, so a missing response affects the entire review round.
Detect an incomplete set
An empty, missing, or invalid executor output makes this candidate set incomplete. Crewplane does not present the remaining outputs as though they were the full set.
Skip this review round
Reviewers do not run against a partial candidate set. Inspect the executor outputs and failure details to find which candidate prevented review.
Use separate nodes for handoffs
Executors receive the same authored executor instructions. Their order does not automatically send one executor’s output to the next or assign separate tasks. For a plan-to-implementation handoff, use separate nodes, needs, and an explicit output reference.
Executor and reviewer phases
Executors run in order; reviewers run in parallel against the same complete set.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- codex → gemini · then
- gemini → Candidate set · collect
- codex → Candidate set · collect
- Candidate set → claude · review
- Candidate set → copilot · review
First executor
Codex runs before Gemini because the executor entries are ordered. Both receive the authored executor instructions; the order does not automatically insert Codex’s response into Gemini’s prompt.
Second executor
Gemini runs after Codex and contributes its own candidate output. For a true plan-to-implementation handoff, use separate nodes with a dependency and an explicit output reference.
Review a complete set
The candidate set contains one output per executor in provider order. If an output is missing, empty, or invalid, reviewers skip that round instead of reviewing a partial set.
Claude reviews the set
Claude reviews both executor outputs, not just one paired response. Its current-round feedback is independent of Copilot’s; all reviewers must approve the same set for approval.
Copilot reviews the set
Copilot receives the same complete candidate set as Claude. The reviewers can run concurrently, subject to the configured provider invocation limit.
3. Route prompts and interpret verdicts
Give each role its instructions
Unmarked prompt text goes to both roles. crewplane:executor and crewplane:reviewer blocks add role-specific instructions.
## implementUse the supplied change request as the scope for implementation and review.
<!-- crewplane:executor -->Make the smallest correct change and include validation steps.<!-- /crewplane:executor -->
<!-- crewplane:reviewer -->Review for correctness, regressions, and missing tests. Do not edit files.<!-- /crewplane:reviewer --> Prompt routing
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Shared text → Executor prompt · include
- Shared text → Reviewer prompt · include
- Executor block → Executor prompt · include
- Reviewer block → Reviewer prompt · include
Direct the executor
The executor block adds instructions only for executors, such as making the smallest correct change and describing validation. Reviewers do not receive this role-specific block.
Direct the reviewer
The reviewer block adds instructions only for reviewers, such as checking for regressions without editing files. Executor-specific instructions stay out of this block.
Assemble executor instructions
The executor receives shared text plus the executor block. On a fix attempt, unresolved feedback is also supplied so the executor can address blocking issues.
Assemble reviewer instructions
The reviewer receives shared text plus the reviewer block, along with the current candidate and required review format. Explicit references provide any additional context it needs.
Provide review context
Crewplane also supplies reviewer prompts with the current executor outputs, unresolved feedback, instructions to review without changing the candidate, and the required review format.
## implementUse the supplied change request as the scope for implementation and review.
<!-- crewplane:executor -->Make the smallest correct change and include validation steps.<!-- /crewplane:executor -->
<!-- crewplane:reviewer -->Review for correctness, regressions, and missing tests. Do not edit files.<!-- /crewplane:reviewer --> Prompt routing
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Shared text → Executor prompt · include
- Shared text → Reviewer prompt · include
- Executor block → Executor prompt · include
- Reviewer block → Reviewer prompt · include
Direct the executor
The executor block adds instructions only for executors, such as making the smallest correct change and describing validation. Reviewers do not receive this role-specific block.
Direct the reviewer
The reviewer block adds instructions only for reviewers, such as checking for regressions without editing files. Executor-specific instructions stay out of this block.
Assemble executor instructions
The executor receives shared text plus the executor block. On a fix attempt, unresolved feedback is also supplied so the executor can address blocking issues.
Assemble reviewer instructions
The reviewer receives shared text plus the reviewer block, along with the current candidate and required review format. Explicit references provide any additional context it needs.
Read the review block
Reviewers are asked for major issues, minor issues, nitpicks, and a verdict. Crewplane can recognize some plain-text approvals or change requests, but the structured format is reliable; unclear text is saved as feedback and does not count as approval.
## Major IssuesNone
## Minor IssuesNone
## NitpicksNone
---VERDICT: CHANGES_REQUESTED | NITS_ONLY | NO_FINDINGS Review loop
Blocking feedback can lead to another executor attempt; the final result is executor output.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Executor → Reviewer · candidate
- Reviewer → Executor · blocking feedback
- Executor → Selected result · select
Produce the candidate
The executor creates the work reviewers will inspect. When a review blocks and a fix remains, unresolved feedback is sent to the executor for another attempt.
Review before selection
The reviewer checks the current candidate and reports issues and a verdict. Blocking feedback can trigger a fix; a clean first candidate review ends any remaining audits.
Select executor work
The selected result comes from an executor, with reviewer verdicts kept in the run record. Depending on the exhaustion policy, continuation does not always mean approval.
Require all reviewers to approve
NO_FINDINGS and NITS_ONLY approve only when major and minor sections are empty. Major or minor issues block approval regardless of the stated verdict; CHANGES_REQUESTED always blocks. All reviewers must approve the same candidate set.
Executor and reviewer phases
Executors run in order; reviewers run in parallel against the same complete set.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- codex → gemini · then
- gemini → Candidate set · collect
- codex → Candidate set · collect
- Candidate set → claude · review
- Candidate set → copilot · review
First executor
Codex runs before Gemini because the executor entries are ordered. Both receive the authored executor instructions; the order does not automatically insert Codex’s response into Gemini’s prompt.
Second executor
Gemini runs after Codex and contributes its own candidate output. For a true plan-to-implementation handoff, use separate nodes with a dependency and an explicit output reference.
Review a complete set
The candidate set contains one output per executor in provider order. If an output is missing, empty, or invalid, reviewers skip that round instead of reviewing a partial set.
Claude reviews the set
Claude reviews both executor outputs, not just one paired response. Its current-round feedback is independent of Copilot’s; all reviewers must approve the same set for approval.
Copilot reviews the set
Copilot receives the same complete candidate set as Claude. The reviewers can run concurrently, subject to the configured provider invocation limit.
Keep reviewer feedback independent
Reviewers do not see each other’s current-round feedback before responding. settings.max_parallel_invocations can cap concurrent reviewer calls.
Executor and reviewer phases
Executors run in order; reviewers run in parallel against the same complete set.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- codex → gemini · then
- gemini → Candidate set · collect
- codex → Candidate set · collect
- Candidate set → claude · review
- Candidate set → copilot · review
First executor
Codex runs before Gemini because the executor entries are ordered. Both receive the authored executor instructions; the order does not automatically insert Codex’s response into Gemini’s prompt.
Second executor
Gemini runs after Codex and contributes its own candidate output. For a true plan-to-implementation handoff, use separate nodes with a dependency and an explicit output reference.
Review a complete set
The candidate set contains one output per executor in provider order. If an output is missing, empty, or invalid, reviewers skip that round instead of reviewing a partial set.
Claude reviews the set
Claude reviews both executor outputs, not just one paired response. Its current-round feedback is independent of Copilot’s; all reviewers must approve the same set for approval.
Copilot reviews the set
Copilot receives the same complete candidate set as Claude. The reviewers can run concurrently, subject to the configured provider invocation limit.
4. Set fix and audit limits
Allow fix attempts
In a review loop, depth counts executor fix attempts after the first reviewed candidate. It does not count that candidate, reviewer calls, or fresh audit passes.
nodes: - id: implement mode: sequential providers: - provider: codex role: executor - provider: claude role: reviewer depth: 2 Explore the review loop
Maximum fixes in each audit.
Maximum fresh review passes.
Choose whether the executor or reviewers run first.
Reviewers request changes on the first two candidate reviews in each audit, including new issues in later audits. They approve the next review if two fixes are available.
codexclaudeAudit and fix budget
Up to 1 audits can run. Each includes a first candidate review and allows up to 2 fixes; the first review does not use a fix.
Ready to start
Choose the settings and outcome, then play or step through the loop.
Depth and audit rounds are maximums. Approval can leave fixes unused, and a clean first review ends the loop early.
Configuration
depth: 2
audit_rounds: 1
review_starts_with: executor Two fixes in each audit. Reviewers request changes on the first two candidate reviews in each audit, including new issues in later audits. They approve the next review if two fixes are available.
- Executor runs — The executor runs to produce this node’s first candidate.
- Candidate ready — Candidate version 1 is the executor output ready for review.
- Changes requested — Reviewers request changes to candidate version 1.
- Executor fixes — Fix 1 of up to 2 in audit 1: the executor receives the current candidate and unresolved feedback.
- Candidate ready — Candidate version 2 is the executor output ready for review.
- Changes requested — Reviewers request changes to candidate version 2.
- Executor fixes — Fix 2 of up to 2 in audit 1: the executor receives the current candidate and unresolved feedback.
- Candidate ready — Candidate version 3 is the executor output ready for review.
- Candidate approved — All reviewers approve candidate version 3 in audit 1.
- Approved result selected — Reviewers approved candidate version 3 after a fix, and no later audits remain. The selected result is executor output.
Follow two fix attempts
With depth: 2, the initial candidate can be followed by up to two fix attempts, each reviewed if needed. Approval on an audit’s first candidate review ends the loop early. Approval after a fix ends that audit; a later configured audit can review the candidate afresh.
nodes: - id: implement mode: sequential providers: - provider: codex role: executor - provider: claude role: reviewer depth: 2 Explore the review loop
Maximum fixes in each audit.
Maximum fresh review passes.
Choose whether the executor or reviewers run first.
Reviewers request changes on the first two candidate reviews in each audit, including new issues in later audits. They approve the next review if two fixes are available.
codexclaudeAudit and fix budget
Up to 1 audits can run. Each includes a first candidate review and allows up to 2 fixes; the first review does not use a fix.
Ready to start
Choose the settings and outcome, then play or step through the loop.
Depth and audit rounds are maximums. Approval can leave fixes unused, and a clean first review ends the loop early.
Configuration
depth: 2
audit_rounds: 1
review_starts_with: executor Two fixes in each audit. Reviewers request changes on the first two candidate reviews in each audit, including new issues in later audits. They approve the next review if two fixes are available.
- Executor runs — The executor runs to produce this node’s first candidate.
- Candidate ready — Candidate version 1 is the executor output ready for review.
- Changes requested — Reviewers request changes to candidate version 1.
- Executor fixes — Fix 1 of up to 2 in audit 1: the executor receives the current candidate and unresolved feedback.
- Candidate ready — Candidate version 2 is the executor output ready for review.
- Changes requested — Reviewers request changes to candidate version 2.
- Executor fixes — Fix 2 of up to 2 in audit 1: the executor receives the current candidate and unresolved feedback.
- Candidate ready — Candidate version 3 is the executor output ready for review.
- Candidate approved — All reviewers approve candidate version 3 in audit 1.
- Approved result selected — Reviewers approved candidate version 3 after a fix, and no later audits remain. The selected result is executor output.
Carry unresolved feedback
Unresolved major issues, minor issues, and unstructured feedback go to the next executor prompt. Nitpicks remain in the run record unless raised as major or minor concerns.
Review loop
Blocking feedback can lead to another executor attempt; the final result is executor output.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Executor → Reviewer · candidate
- Reviewer → Executor · blocking feedback
- Executor → Selected result · select
Produce the candidate
The executor creates the work reviewers will inspect. When a review blocks and a fix remains, unresolved feedback is sent to the executor for another attempt.
Review before selection
The reviewer checks the current candidate and reports issues and a verdict. Blocking feedback can trigger a fix; a clean first candidate review ends any remaining audits.
Select executor work
The selected result comes from an executor, with reviewer verdicts kept in the run record. Depending on the exhaustion policy, continuation does not always mean approval.
Add a fresh audit
Each audit_rounds pass has its own depth budget. Later passes start from the latest valid candidate from the previous pass; the default for both controls is 1, and audit rounds cannot exceed settings.max_audit_rounds.
nodes: - id: implement mode: sequential providers: - provider: codex role: executor - provider: claude role: reviewer depth: 1 audit_rounds: 2 Explore the review loop
Maximum fixes in each audit.
Maximum fresh review passes.
Choose whether the executor or reviewers run first.
Reviewers request changes on the first candidate review in each audit, including new issues in later audits. They approve the next review if a fix is available.
codexclaudeAudit and fix budget
Up to 2 audits can run. Each includes a first candidate review and allows up to 1 fixes; the first review does not use a fix.
Ready to start
Choose the settings and outcome, then play or step through the loop.
Depth and audit rounds are maximums. Approval can leave fixes unused, and a clean first review ends the loop early.
Configuration
depth: 1
audit_rounds: 2
review_starts_with: executor One fix in each audit. Reviewers request changes on the first candidate review in each audit, including new issues in later audits. They approve the next review if a fix is available.
- Executor runs — The executor runs to produce this node’s first candidate.
- Candidate ready — Candidate version 1 is the executor output ready for review.
- Changes requested — Reviewers request changes to candidate version 1.
- Executor fixes — Fix 1 of up to 1 in audit 1: the executor receives the current candidate and unresolved feedback.
- Candidate ready — Candidate version 2 is the executor output ready for review.
- Candidate approved — All reviewers approve candidate version 2 in audit 1.
- Fresh audit begins — Audit 2 begins with candidate version 2 from the prior audit. Review starts afresh, so reviewers can request changes again, and the fix count resets to zero.
- Changes requested — Reviewers request changes to candidate version 2.
- Executor fixes — Fix 1 of up to 1 in audit 2: the executor receives the current candidate and unresolved feedback.
- Candidate ready — Candidate version 3 is the executor output ready for review.
- Candidate approved — All reviewers approve candidate version 3 in audit 2.
- Approved result selected — Reviewers approved candidate version 3 after a fix, and no later audits remain. The selected result is executor output.
Tune the limits
Raise depth when blocked feedback is often fixable. Add audit rounds when a fixed candidate needs another fresh pass without carrying over feedback from the prior pass.
nodes: - id: implement mode: sequential providers: - provider: codex role: executor - provider: claude role: reviewer depth: 1 audit_rounds: 2 Audit and fix limits
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Audit 1 → Audit 2 · fresh pass
Start the first audit
The first audit reviews the candidate and may use its own fix budget. A clean first review ends the loop; a candidate approved after a fix can proceed to another configured audit.
Review the latest candidate afresh
The next audit starts from the latest valid candidate and gets a fresh fix budget. Feedback from the earlier audit is not carried into this fresh pass.
5. Start with review
Review existing context first
review_starts_with: reviewer runs an initial review before this node produces a candidate. Keep executors before reviewers in the provider list; the node still ends with an executor output.
nodes: - id: implement mode: sequential providers: - provider: codex role: executor - provider: claude role: reviewer review_starts_with: reviewer Explore the review loop
Maximum fixes in each audit.
Maximum fresh review passes.
Choose whether the executor or reviewers run first.
In this example, reviewers approve the first candidate review.
codexclaudeAudit and fix budget
Up to 1 audits can run. Each includes a first candidate review and allows up to 1 fixes; the first review does not use a fix.
Ready to start
Choose the settings and outcome, then play or step through the loop.
Depth and audit rounds are maximums. Approval can leave fixes unused, and a clean first review ends the loop early.
Configuration
depth: 1
audit_rounds: 1
review_starts_with: reviewer Approved on first review. In this example, reviewers approve the first candidate review.
- Context approved — Round 0: reviewers approve the provided context. The executor still runs and is told to preserve that context; no fix attempt has been spent.
- Executor runs — The executor runs to produce this node’s first candidate.
- Candidate ready — Candidate version 1 is the executor output ready for review.
- Candidate approved — All reviewers approve candidate version 1 in audit 1.
- Clean review ends loop — The first candidate review in audit 1 is clean, so its remaining fixes and all later audits are not needed.
Understand round zero
The initial review is round 0 and does not consume depth. If it approves, the executor is told to preserve the context; otherwise unresolved feedback goes to the executor. Reviewers then check the executor candidate.
Review before an executor candidate
Round 0 precedes this node’s first executor output and does not consume depth.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Existing context → Round 0 · inspect
- Round 0 → Executor · approval or feedback
- Executor → Review candidate · candidate
Supply something to inspect
Round zero happens before this node creates a candidate. Include the relevant upstream artifacts or project files in the prompt so reviewers have actual context to examine.
Review before execution
Reviewers inspect the supplied context once in round zero. This initial review does not consume the fix budget; even approval still leads to an executor run and a candidate review.
Act on the first review
If round zero approves, the executor is told to preserve the context. Otherwise it receives unresolved feedback and produces a candidate addressing the review.
Review the new candidate
Reviewers check the executor’s output after round zero. The usual candidate review and fix budget apply, even when the initial review approved the supplied context.
Provide explicit context
needs controls order but does not tell reviewers what to inspect. Include upstream output, findings, metadata, or project files in shared text or a reviewer block.
## review.fixUse these inputs as review context:
- backend: {{backend.impl.output}}- test findings: {{test.audit.findings}}- backend digest: {{backend.impl.output_sha256}}- project file: {{file:src/foo.py}} Provide review context
An ordering dependency alone does not insert review context.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Upstream artifacts → Review prompt · reference
- Project files → Review prompt · include
- Review prompt → Reviewer · send
Reference prior results
An upstream output, findings file, or digest can give the reviewer context. The node must depend on its source, and the prompt must explicitly reference the material to include it.
Include project files
A {{file:...}} template includes a specific file in the prompt. In a managed workspace, reviewer-first file templates read recorded Git versions rather than uncommitted manual changes.
Assemble the context
The authored prompt names the material to inspect, such as {{backend.impl.output}} and {{file:src/foo.py}}. A needs dependency sets order but does not insert these contents.
Inspect supplied material
The reviewer receives the rendered prompt and checks the context it contains. Giving explicit material matters especially for round zero, before this node has an executor candidate.
6. Choose an exhaustion policy
Understand the default
When attempts run out, the default sequential_consensus_on_exhaustion: continue can let a workflow succeed with an unapproved candidate. Inspect saved reviewer verdicts; success alone does not prove consensus.
Review loop
Blocking feedback can lead to another executor attempt; the final result is executor output.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Executor → Reviewer · candidate
- Reviewer → Executor · blocking feedback
- Executor → Selected result · select
Produce the candidate
The executor creates the work reviewers will inspect. When a review blocks and a fix remains, unresolved feedback is sent to the executor for another attempt.
Review before selection
The reviewer checks the current candidate and reports issues and a verdict. Blocking feedback can trigger a fix; a clean first candidate review ends any remaining audits.
Select executor work
The selected result comes from an executor, with reviewer verdicts kept in the run record. Depending on the exhaustion policy, continuation does not always mean approval.
Explore the review loop
Maximum fixes in each audit.
Maximum fresh review passes.
Choose whether the executor or reviewers run first.
In this example, reviewers request changes on every review, and every fix changes the candidate.
codexclaudeAudit and fix budget
Up to 1 audits can run. Each includes a first candidate review and allows up to 1 fixes; the first review does not use a fix.
Ready to start
Choose the settings and outcome, then play or step through the loop.
Depth and audit rounds are maximums. Approval can leave fixes unused, and a clean first review ends the loop early.
Configuration
depth: 1
audit_rounds: 1
review_starts_with: executor Always blocked. In this example, reviewers request changes on every review, and every fix changes the candidate.
- Executor runs — The executor runs to produce this node’s first candidate.
- Candidate ready — Candidate version 1 is the executor output ready for review.
- Changes requested — Reviewers request changes to candidate version 1.
- Executor fixes — Fix 1 of up to 1 in audit 1: the executor receives the current candidate and unresolved feedback.
- Candidate ready — Candidate version 2 is the executor output ready for review.
- Changes requested — Reviewers request changes to candidate version 2.
- Attempts exhausted — The configured audits and fixes are exhausted without approval. Under the default continue policy, a valid executor candidate can be selected even though reviewers did not approve it.
Require approval
Set settings.sequential_consensus_on_exhaustion: fatal in the existing config and leave continue_on_failure unset or false on review nodes that must block later work. A node-level continue_on_failure: true can continue even under the fatal policy; it also applies to reviewer command failures. Failed dependencies still block later nodes.
settings: sequential_consensus_on_exhaustion: fatal Review loop
Blocking feedback can lead to another executor attempt; the final result is executor output.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Executor → Reviewer · candidate
- Reviewer → Executor · blocking feedback
- Executor → Selected result · select
Produce the candidate
The executor creates the work reviewers will inspect. When a review blocks and a fix remains, unresolved feedback is sent to the executor for another attempt.
Review before selection
The reviewer checks the current candidate and reports issues and a verdict. Blocking feedback can trigger a fix; a clean first candidate review ends any remaining audits.
Select executor work
The selected result comes from an executor, with reviewer verdicts kept in the run record. Depending on the exhaustion policy, continuation does not always mean approval.
Handle unchanged attempts
Crewplane stops with no_progress after two consecutive fix attempts leave the work unchanged and the same feedback unresolved. It warns after the first; the count crosses audit rounds and resets when work or feedback changes. The global continue policy cannot override this stop; node-level continue_on_failure: true can allow continuation.
Review loop
Blocking feedback can lead to another executor attempt; the final result is executor output.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Executor → Reviewer · candidate
- Reviewer → Executor · blocking feedback
- Executor → Selected result · select
Produce the candidate
The executor creates the work reviewers will inspect. When a review blocks and a fix remains, unresolved feedback is sent to the executor for another attempt.
Review before selection
The reviewer checks the current candidate and reports issues and a verdict. Blocking feedback can trigger a fix; a clean first candidate review ends any remaining audits.
Select executor work
The selected result comes from an executor, with reviewer verdicts kept in the run record. Depending on the exhaustion policy, continuation does not always mean approval.
7. Inspect review state
Find the selected output
review-state/review-loop-status.json records the selected executor output, verdicts, stop reason, and whether attempts ran out. Crewplane checks selected files before choosing the final result; downstream {{node.output}} points to that executor output.
<node-id>/review-state/review-loop-status.json Saved review evidence
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Executor outputs → Review status · record
- Reviewer outputs → Review status · record
Keep candidate files
Executor outputs remain available in the node stage directory. The status identifies the selected output, and Crewplane checks that file before choosing the final node result.
Keep review evidence
Reviewer responses record verdicts and feedback separately from executor work. An interrupted attempt is distinguished from the last completed review so an old verdict is not attached to new work.
Inspect the decision
The review-loop status records the selected executor output, verdicts, stop reason, and whether attempts ran out. Downstream {{node.output}} points to the selected executor output.
Read interrupted state
Status is saved between attempts and on failure or cancellation. It distinguishes the latest attempted round from the last completed review, preventing an older verdict from being attached to new work.
Saved review evidence
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Executor outputs → Review status · record
- Reviewer outputs → Review status · record
Keep candidate files
Executor outputs remain available in the node stage directory. The status identifies the selected output, and Crewplane checks that file before choosing the final node result.
Keep review evidence
Reviewer responses record verdicts and feedback separately from executor work. An interrupted attempt is distinguished from the last completed review so an old verdict is not attached to new work.
Inspect the decision
The review-loop status records the selected executor output, verdicts, stop reason, and whether attempts ran out. Downstream {{node.output}} points to the selected executor output.
Inspect candidate comparisons
.candidate.json files beside executor outputs record how content was compared for progress or why comparison was unavailable. If file changes cannot be checked reliably, reviewers run again.
Saved review evidence
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Executor outputs → Review status · record
- Reviewer outputs → Review status · record
Keep candidate files
Executor outputs remain available in the node stage directory. The status identifies the selected output, and Crewplane checks that file before choosing the final node result.
Keep review evidence
Reviewer responses record verdicts and feedback separately from executor work. An interrupted attempt is distinguished from the last completed review so an old verdict is not attached to new work.
Inspect the decision
The review-loop status records the selected executor output, verdicts, stop reason, and whether attempts ran out. Downstream {{node.output}} points to the selected executor output.
Understand protected run data
Provider responses stay separate until each provider finishes. Unexpected changes to protected candidate, reviewer results, or other run data fail the node; an audit with no valid reviewer results does not reuse earlier verdicts.
Saved review evidence
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Executor outputs → Review status · record
- Reviewer outputs → Review status · record
Keep candidate files
Executor outputs remain available in the node stage directory. The status identifies the selected output, and Crewplane checks that file before choosing the final node result.
Keep review evidence
Reviewer responses record verdicts and feedback separately from executor work. An interrupted attempt is distinguished from the last completed review so an old verdict is not attached to new work.
Inspect the decision
The review-loop status records the selected executor output, verdicts, stop reason, and whether attempts ran out. Downstream {{node.output}} points to the selected executor output.
Understand worktree behavior
With worktrees enabled, reviewers inspect the executor’s current files. Reviewer runs do not update the version used by later nodes; executor runs do. A kind: worktree node allows only one executor, though it can have multiple reviewers.
Worktree review
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Executor files → Reviewer · inspect
- Executor files → Later node · continue
Maintain the candidate files
The executor’s current worktree version is the candidate that review inspects. Executor runs update the file version that later nodes can use.
Inspect the current version
The reviewer sees the executor’s current files in the worktree. A reviewer run does not update the version handed to later nodes.
Continue from executor work
The later node uses the executor’s version rather than a reviewer’s changes. A worktree node permits one executor, though it can have multiple reviewers.
Read recorded file versions
For reviewer-first runs in a managed workspace, {{file:...}} reads a recorded Git version: this node’s existing candidate if available, otherwise the upstream node’s files when the worktree takes its source from another node, otherwise starting project files. Uncommitted manual changes are not included.
Recorded source for reviewer-first files
The first applicable recorded Git version supplies the file; uncommitted manual changes are excluded.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Node candidate → Upstream source · otherwise
- Upstream source → Starting files · otherwise
Prefer this node’s candidate
For a reviewer-first run in a managed workspace, a file template reads this node’s recorded candidate when one is available. Uncommitted manual changes are not included.
Fall back to upstream files
If this node has no candidate and its worktree takes its source from another node, the template reads that upstream node’s recorded files.
Otherwise use starting files
When neither a node candidate nor an applicable upstream source is available, the template reads the project’s recorded starting files. It does not pick up uncommitted manual edits.