Repository navigation
Conversation
…x loop Since fullsend-ai#1049, any finding with `actionable: true` and a remediation sends the PR back to the fix agent, low severity included. Each fix commit gives the next review fresh code to find new nits in, so a PR whose blocking findings are already fixed keeps looping until the iteration cap (fullsend#6930: 5 fix iterations after the only medium was fixed in the first). On a re-review, a low or info finding that matches no prior finding now counts as non-actionable for the verdict. It stays in the findings as a suggestion. First reviews, medium+ findings, and low findings carried over from the prior review are unchanged. The skillsaw context-budget ceilings for pr-review and code-review are raised by the added lines. Closes fullsend-ai#1208 Signed-off-by: guy oron <goron@redhat.com>
Functional tests did not runFunctional tests run automatically for org/repo members and collaborators on pull requests. For other contributors, a maintainer must add the |
PR Summary by QodoKeep new low re-review findings from reopening the fix loop
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1.
|
| On a re-review, a new low or info finding — one that matches no prior | ||
| finding — counts as non-actionable for the outcomes above, so it cannot | ||
| send the PR back to the fix agent on its own. It stays in the findings | ||
| as a suggestion. See the `pr-review` skill, step 6f. |
There was a problem hiding this comment.
2. Re-review behavior lacks regression tests 📜 Skill insight ▣ Testability
agents/review.md changes verdict behavior for unmatched low and info findings, but the PR changes no automated test or evaluation case. A re-review containing a new actionable low is therefore not constrained alongside the required cases where matched lows and medium-or-higher findings must continue to block.
Agent Prompt
## Issue description
The agent's verdict behavior changes without an automated test covering the new exception and its boundaries.
## Fix Focus Areas
- agents/review.md[233-236]
- skills/pr-review/SKILL.md[1260-1266]
- eval/review/eval.yaml[71-77]
## Recommended Fix
Add review evaluation cases proving that a re-review with only a new unmatched low or info suggestion does not request changes, while a first review, a matched actionable low, and every medium-or-higher finding continue to produce their existing blocking outcomes.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| On a re-review, a new low or info finding — one that matches no prior | ||
| finding — counts as non-actionable for the outcomes above, so it cannot | ||
| send the PR back to the fix agent on its own. It stays in the findings | ||
| as a suggestion. See the `pr-review` skill, step 6f. |
There was a problem hiding this comment.
3. Review policy changes need human review 📜 Skill insight § Compliance
agents/review.md and both changed skill files are protected governance paths that alter the automated review policy. The linked issue and PR explanation justify the edits, but these instructions still require human approval before merge.
…t-only exemption A verdict-only exemption left these findings `actionable: true` with a remediation while the review approved, contradicting the unconditional blocking rule and the schema. Step 6f now sets `actionable: false` on them before the outcome rules run. Matching now defers to the code-review finding matching procedure instead of restating a looser subset of it, and the suggestion label moves into the finding description, since step 7 forbids a summary section. Signed-off-by: guy oron <goron@redhat.com>
|
Thanks Qodo. Three fixed in
|
Understood. The changes in |
| the PR mergeable. | ||
|
|
||
| **Re-review: new low findings do not reopen the loop.** On a re-review | ||
| (step 2a found prior findings), before applying the rules above, take |
There was a problem hiding this comment.
MEDIUM — Re-review precondition for the new low-finding rule differs between step 6f here and the authoritative agents/review.md
This line gates the new rule on "On a re-review (step 2a found prior findings)". In this skill, "prior findings exist" is a distinct condition from "re-review": step 2a only tests whether prior-review.txt is non-empty (lines 193-198), and the re-review dispatch rules at lines 223, 310, 361 and 672 branch separately on whether prior findings exist. agents/review.md:233-236 (which wins on conflict per code-review/SKILL.md:316-319) and skills/code-review/SKILL.md:311-312 state the rule for any re-review with no qualifier.
The two readings diverge when prior-review.txt is present but contains zero findings (prior review approved clean, author pushed more code, re-review finds a new actionable low):
- Under
agents/review.md, every new low vacuously matches nothing and is setactionable: false, so it never reaches the fix agent even once — contradicting the PR body's own "Unchanged" claim that actionable lows reach the fix agent once. - Under this skill's literal gate, the rule does not apply and the low still yields request-changes.
The gap is narrower than it might look: an absent or empty prior-review.txt is a first review per step 2a, so the divergence is only the present-but-zero-findings case. It is still a real conflict between the three files that the agent must resolve at run time.
Suggestion: Pick one precondition and state it identically in all three places.
- If the intent is "any re-review" (
prior-review.txtnon-empty), change this line to "(step 2a found a non-emptyprior-review.txt)" — the phrasing already used at line 549 — and drop "found prior findings". - If the intent is "only when the prior review had findings" (preserving the once-through-the-fix-agent guarantee), add that qualifier to
agents/review.md:233andcode-review/SKILL.md:311, sinceagents/review.mdis authoritative on conflict.
Conflict: .skillsaw-baseline.json. Main regenerated the baseline (new timestamp, entries reordered, pr-review ceiling 16,630 -> 16,784) while this branch had raised the pr-review and code-review ceilings for its added rule text. Main's file is taken as is and only the two context-budget entries this PR grows are changed, each to the token count skillsaw 0.18.0 measures for the merged skill: - skills/pr-review/SKILL.md: 16,784 -> 16,889 (main plus this PR's step 6f paragraph) - skills/code-review/SKILL.md: 3,846 -> 3,875 (main plus the step 6f pointer; the branch carried 3,877, two tokens above measured) skills/pr-review/SKILL.md itself merged cleanly. Signed-off-by: guy oron <goron@redhat.com>
…dings exist Step 6f gated the rule on "step 2a found prior findings", while agents/review.md, which wins on conflict, and the code-review pointer stated it for any re-review. The readings split when prior-review.txt is present but holds no findings: a clean review, then more code pushed. Under "any re-review" a new actionable low there is demoted without ever reaching the fix agent, which contradicts the PR's claim that actionable lows still get one fix pass. The narrower precondition is the intended one. fullsend-ai#1208 is about the review, fix, re-review loop, where every iteration has prior findings, so the loop still terminates. Code pushed after a clean review has never been through the fix agent, so its actionable lows keep their one pass. All three files now open the rule with the same words, "On a re-review where prior findings exist", the term the pr-review skill already branches on (steps 3a and 3c). agents/review.md also states the complement: if the prior review had no findings, the rule does not apply. Net-neutral on the context budget. Step 6f's closing sentence and the code-review pointer are tightened to pay for the added words, so pr-review measures 16,886 tokens (was 16,889; ceiling lowered to match) and code-review stays at 3,875. Signed-off-by: guy oron <goron@redhat.com>
|
@waynesun09 thanks — addressed in
Upstream main is merged in; the only conflict was |
940e7c2 to
249577d
Compare
waynesun09
left a comment
There was a problem hiding this comment.
Review sweep: two findings, posted inline.
| "rule_id": "context-budget", | ||
| "file_path": "skills/code-review/SKILL.md", | ||
| "message": "Estimated 3,846 tokens exceeds skill warn limit of 3,000", | ||
| "message": "Estimated 3,875 tokens exceeds skill warn limit of 3,000", |
There was a problem hiding this comment.
HIGH: This PR raises its own skillsaw context-budget ceilings instead of trimming.
At head 249577d, .skillsaw-baseline.json raises the context-budget ceiling for skills/code-review/SKILL.md from 3,846 to 3,875 (lines 74/76). It raises the one for skills/pr-review/SKILL.md from 16,784 to 16,886 (lines 83/85). Those are the two files this PR edits. The PR body says so: "The raise is this PR's own rule text; main's text is untouched."
CONTRIBUTING.md (Opening a PR) says to regenerate the baseline only when unrelated changes on main raise a violation: "Do not regenerate the baseline for violations introduced or increased by your PR; fix those instead." skillsaw passes only because the ceiling was raised.
Suggestion: Revert both baseline entries to their main values (3,846 and 16,784). Then trim the added text to fit. For example, shorten the pr-review step 6f paragraph. It repeats "Medium+ or matched findings are unaffected", which the agents/review.md text already implies. Also cut or shorten the one-line code-review pointer, or remove equal wording elsewhere in the same files, until make lint passes against the original ceilings.
| **Re-review: new low findings do not reopen the loop.** | ||
| On a re-review where prior findings exist (step 2a), before applying the | ||
| rules above, take each **low** or **info** finding that fails the | ||
| code-review skill's finding matching procedure against every prior |
There was a problem hiding this comment.
MEDIUM: An unaddressed low in an edited file can fail matching criterion 3 and get demoted.
Step 6f demotes a low/info finding to actionable: false when it "fails the code-review skill's finding matching procedure against every prior finding". Criterion 3 of that procedure (skills/code-review/SKILL.md, Finding matching procedure) says: "verify the function or class containing the finding still exists in the unchanged file".
That wording was written for severity anchoring, where changed and unchanged files are handled separately. Before this PR, failing to match only meant "assess severity normally", so it did no harm. Now it decides whether a finding blocks.
A fix commit often edits the flagged file without resolving an older low finding in it. The file is then no longer "unchanged", so a literal reading fails criterion 3. The carried-over low is treated as new, demoted, and never reaches the fix agent. That breaks the PR's stated rule that "low findings carried over from the prior review that are still unaddressed" stay unchanged.
This is separate from the existing thread on category vs. dimension and the thread on the prior-findings precondition.
Suggestion: For the 6f classification, say that code-location matching uses the function/class anchor whether or not the file changed since the prior review SHA. The simplest fix is to reword criterion 3 to "still exists in the file (changed or not)". Or have 6f say that a prior finding whose logical issue is still present counts as matched even if the file changed. Consider an eval case: a prior low on file X, file X edited but the issue remains, and the finding must stay actionable: true.
|
@waynesun09 thanks for the review. Closing this one: #1636 (merged 2026-10-12) implements #1208 on main with a finding ledger and stable finding ids, and enforces the gate in |
Summary
Since #1049, any finding with
actionable: trueand a remediation returnsrequest-changes, low severity included. Every fix commit gives the next review new code to find nits in, so a PR whose blocking findings are already fixed keeps looping until the iteration cap. On fullsend-ai/fullsend#6930, the only medium was fixed in iteration 1, and five more rounds ran on new lows ($58 total).This implements #1208. On a re-review where prior findings exist, a low or info finding that matches no prior finding gets
actionable: falsebefore the outcome is decided. The finding is still posted, as a suggestion.Unchanged:
"Matches a prior finding" reuses the code-review skill's finding matching procedure (all four criteria: category, file, code location, description).
Changes
skills/pr-review/SKILL.md§6f: the rule, next to the verdict rules. A demoted finding stays infindingswithactionable: false, and its description starts with "Suggestion:".agents/review.md: the same rule in the outcome section, since the agent definition wins on conflicts. It also states the complement: if the prior review had no findings, the rule does not apply.skills/code-review/SKILL.md: a one-line pointer next to its copy of the outcome rules..skillsaw-baseline.json: context-budget ceilings set to the measured size of the two skills with the rule added (pr-review 16,784 → 16,886; code-review 3,846 → 3,875). The raise is this PR's own rule text; main's text is untouched.Trade-off
A new actionable low found on a re-review that follows a review with findings no longer gets auto-fixed. It's still visible on the PR, and the author or a human
/fs-fixcan pick it up. That's the point of #1208: those rounds cost about $10 each and never blocked merge.Testing
make lintpasses (grade A) andpre-commitpasses on the changed files. Validation per #1208: over the next 10 PRs with 2+ review rounds, check that no round is triggered only by new lows and that no medium+ finding is suppressed.Closes #1208