From 75cc2a4b9cde9d91105563ff135c8b8e2e6bbcc5 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Sat, 12 Sep 2026 12:14:41 -0600 Subject: [PATCH] feat(TASK-010): add max_attempts to read-only agent lanes in bundled graphs --- assets/agents/code-reviewer/graph.yaml | 2 ++ assets/agents/deep-research/graph.yaml | 1 + assets/agents/review-gauntlet/graph.yaml | 4 ++++ assets/agents/step-runner/graph.yaml | 1 + 4 files changed, 8 insertions(+) diff --git a/assets/agents/code-reviewer/graph.yaml b/assets/agents/code-reviewer/graph.yaml index 6f4eb8a..464628a 100644 --- a/assets/agents/code-reviewer/graph.yaml +++ b/assets/agents/code-reviewer/graph.yaml @@ -272,6 +272,7 @@ nodes: Linter output (extract the lines for your files): {{linter_notes}} {{extra_context}} + max_attempts: 2 state_updates: domain_report: '{{output}}' next: completeness_gate @@ -472,6 +473,7 @@ nodes: Findings (JSON; verify every 🔴 and 🟡 entry — id, severity, path, lines, claim are the fields; `title` + `block` together are the claim): {{findings}} + max_attempts: 2 state_updates: verifier_output: '{{output}}' next: verdict diff --git a/assets/agents/deep-research/graph.yaml b/assets/agents/deep-research/graph.yaml index 4aa2b25..f8be351 100644 --- a/assets/agents/deep-research/graph.yaml +++ b/assets/agents/deep-research/graph.yaml @@ -242,6 +242,7 @@ nodes: Produce the final report following your instructions. timeout: 300 + max_attempts: 2 state_updates: report: '{{output}}' next: verify_sources diff --git a/assets/agents/review-gauntlet/graph.yaml b/assets/agents/review-gauntlet/graph.yaml index 54b3e74..e975f17 100644 --- a/assets/agents/review-gauntlet/graph.yaml +++ b/assets/agents/review-gauntlet/graph.yaml @@ -276,6 +276,7 @@ nodes: {{extra_context}} Close your report with your Review Verdict line. + max_attempts: 2 state_updates: lane_out: '{{output}}' @@ -296,6 +297,7 @@ nodes: {{extra_context}} Return your ADVERSARIAL_REVIEW verdict. + max_attempts: 2 state_updates: lane_out: '{{output}}' @@ -313,6 +315,7 @@ nodes: {{extra_context}} Return your SECURITY_REVIEW verdict. + max_attempts: 2 state_updates: lane_out: '{{output}}' @@ -335,6 +338,7 @@ nodes: Derive expected behaviors from the plan/contract BEFORE reading implementation code, run existing suites first, then author spec-first tests for the uncovered delta. Return your USAGE_PROBE verdict. + max_attempts: 2 state_updates: lane_out: '{{output}}' diff --git a/assets/agents/step-runner/graph.yaml b/assets/agents/step-runner/graph.yaml index dc8cbe0..5c3c85b 100644 --- a/assets/agents/step-runner/graph.yaml +++ b/assets/agents/step-runner/graph.yaml @@ -405,6 +405,7 @@ nodes: Review the changed files against the step plan's acceptance criteria. Preserve severity tags in your findings. timeout: 1200 + max_attempts: 2 state_updates: review_report: '{{output}}' next: route_review