Skip to content

chore: supervisor: out_of_scope review_result leaves thread open, so the merge gate keeps dispatching empty repairs - #938

Merged
getappz merged 3 commits into
masterfrom
task/766-supervisor-out-of-scope-review-result-le
Oct 20, 2026
Merged

getappz merged 3 commits into
masterfrom
task/766-supervisor-out-of-scope-review-result-le

Conversation

@getappz

@getappz getappz commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Item work (#766): out_of_scope/not_valid review results no longer block merge or trigger repair; fixed behaviour unchanged; acceptance tests added in 8b78a78; supervisor tests 195/195 pass; clippy/CI not run.


Opened by claude-code on i-flare-c997d745ae66 (flared:c997d745ae66) for item #766 via agentflare.

Summary by CodeRabbit

  • Bug Fixes

    • Review findings marked Not Valid or Out of Scope no longer block merging once their result is recorded.
    • Such findings are no longer sent for repair, including when a reply attempt fails.
    • Findings without a recorded result remain merge-blocking and eligible for follow-up.
    • A new bot response after an out-of-scope result reopens the discussion for the next review round.
  • Tests

    • Added regression coverage for merge gating and review-bot dispatch behavior.

…k merge or trigger repair (#766)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Agentflare-Agent: claude-code
Agentflare-Branch: task/766-supervisor-out-of-scope-review-result-le
Agentflare-Item: 766
Agentflare-Session: f3ef8ff3-adf9-457c-8a9a-b392ec23f4bc
Agentflare-Agent: claude-code
Agentflare-Branch: task/766-supervisor-out-of-scope-review-result-le
Agentflare-Item: 766
Agentflare-Session: f3ef8ff3-adf9-457c-8a9a-b392ec23f4bc
…air (#766)

Agentflare-Agent: claude-code
Agentflare-Branch: task/766-supervisor-out-of-scope-review-result-le
Agentflare-Item: 766
Agentflare-Session: 260a89ea-e308-4bdb-afea-4cce791623e5
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: getappz/agentflare/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 07008f06-3b47-4eae-bee7-70abb88361ba
📥 Commits

Reviewing files that changed from the base of the PR and between d6c1d73 and 8b78a78.

📒 Files selected for processing: 6
  • src/supervisor.rs
  • src/supervisor/review_bots.rs
  • src/supervisor/review_findings.rs
  • src/supervisor/tests/auto_merge_tests.rs
  • src/supervisor/tests/review_bots_out_of_scope_tests.rs
  • src/supervisor/tests/review_bots_tests.rs

Included review availability: This review used your included allowance. 1 included review remains after this review. Your included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.

📝 Walkthrough

Same-round NotValid and OutOfScope review outcomes no longer contribute to merge-blocking counts. Tests cover unrecorded findings, failed replies, repair dispatch, and bot pushback.

Changes: Review-bot merge gate

Layer / File(s) Summary
Merge-blocking rules
src/supervisor/review_findings.rs, src/supervisor/review_bots.rs
BotFinding::blocks_merge and ReviewBotState::blocking exclude findings with same-round NotValid or OutOfScope results.
Regression coverage
src/supervisor.rs, src/supervisor/tests/*
Tests cover recorded and unrecorded results, failed replies, repair dispatch, and bot pushback. Shared test helpers are visible to the parent test module.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 8b78a

No merge-blocking defect is established. The reported test pass has not been independently verified, so normal checks should run before merging.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 55.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 20 functions across 6 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the supervisor bug involving out-of-scope review results and empty repair dispatches. It is somewhat long and does not mention the not-valid case, but it accurately descri…
Description check Passed The description states the change and reports supervisor test results. It does not follow the template headings, checklist format, or include risk and backwards-compatibility notes, but it contains th…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title clearly identifies the supervisor bug involving out-of-scope review results and empty repair dispatches. It is somewhat long and does not mention the not-valid case, but it accurately describes the main change.

Full details: Description check

Explanation

The description states the change and reports supervisor test results. It does not follow the template headings, checklist format, or include risk and backwards-compatibility notes, but it contains the core summary and test status.

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@getappz
getappz marked this pull request as ready for review October 20, 2026 16:03
@getappz
getappz merged commit cdb9f09 into master Oct 20, 2026
19 checks passed
@getappz
getappz deleted the task/766-supervisor-out-of-scope-review-result-le branch October 20, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant