Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
39f7acb
feat(#1654): scope review to own commits on stacked/cherry-picked PRs
fullsend-ai-coder[bot] Oct 12, 2026
eb77e70
fix(#1654): address review feedback on PR #1661
fullsend-ai-coder[bot] Oct 12, 2026
a81467d
fix(#1654): address second review round on PR #1661
fullsend-ai-coder[bot] Oct 12, 2026
89fbe17
fix(#1654): address third review round on PR #1661
fullsend-ai-coder[bot] Oct 12, 2026
bd3a6b9
fix(#1654): quote PINNED assignment to satisfy shellcheck SC2209
fullsend-ai-coder[bot] Oct 12, 2026
ff2403d
fix(#1654): separate dependency scoping from approval
shairevivo Oct 12, 2026
4b4a3d3
fix(#1654): keep security findings on whole PR, restore removed fetch…
fullsend-ai-coder[bot] Oct 12, 2026
7977f22
fix(#1654): harden dependency review scoping
shairevivo Oct 12, 2026
e9f3399
docs(#1654): clarify dependency review scoping
shairevivo Oct 13, 2026
05b0c96
fix(#1654): keep review scope assertion contiguous
shairevivo Oct 13, 2026
c39499b
fix(#1654): distinguish final-newline changes in dependency scoping
shairevivo Oct 18, 2026
b87d5bb
fix(#1654): use sandbox-compatible dependency scope syntax
shairevivo Oct 21, 2026
4fd6a00
Merge branch 'main' into agent/1654-scope-stacked-pr-review
shairevivo Oct 21, 2026
1afc750
Merge branch 'main' into agent/1654-scope-stacked-pr-review
shairevivo Oct 21, 2026
6cf0fcf
Merge branch 'main' into agent/1654-scope-stacked-pr-review
shairevivo Oct 23, 2026
ad5358a
test(review): classify dependency-scope inputs
shairevivo Oct 23, 2026
5250a73
Merge branch 'main' into agent/1654-scope-stacked-pr-review
shairevivo Oct 24, 2026
2128e3a
fix(#1654): handle empty commits in dependency scoping
shairevivo Oct 25, 2026
84a7420
Merge branch 'main' into agent/1654-scope-stacked-pr-review
shairevivo Oct 26, 2026
c037816
fix(#1654): verify complete reviewed dependency scope
shairevivo Oct 28, 2026
815e53b
fix(#1654): merge main and preserve scoped security review
shairevivo Nov 1, 2026
3e804e0
fix(#1654): preserve prior findings and unblock dependency scoping
shairevivo Nov 2, 2026
254491b
fix(#1654): invoke scoping script at staged skill path
shairevivo Nov 3, 2026
197c3a3
chore: merge main into dependency review PR
shairevivo Nov 3, 2026
6544323
fix(#1654): fall back on invalid dependency commit lists
shairevivo Nov 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .skillsaw-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@
"fingerprint": "0285e1a7243ebead",
"rule_id": "context-budget",
"file_path": "skills/pr-review/SKILL.md",
"message": "Estimated 17,060 tokens exceeds skill error limit of 6,000",
"message": "Estimated 17,111 tokens exceeds skill error limit of 6,000",
"severity": "error",
"value": 17060,
"value": 17111,
"baseline_mode": "ceiling"
},
{
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ script-test:
$(call run-timed,bash scripts/pre-review-test.sh)
$(call run-timed,bash scripts/pr-review-challenger-contract-test.sh)
$(call run-timed,bash scripts/pr-review-remediation-test.sh)
$(call run-timed,bash scripts/pr-review-dependency-scope-test.sh)
$(call run-timed,bash scripts/post-review-test.sh)
$(call run-timed,bash scripts/risk-tier1-test.sh)
$(call run-timed,bash scripts/pre-fix-test.sh)
Expand Down
5 changes: 4 additions & 1 deletion agents/review.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ mutations on the runner.
`REVIEW_RISK_VERDICT_THRESHOLD` is not `6`,
`risk_assessment.score` is below `REVIEW_RISK_VERDICT_THRESHOLD` and
the assessment is not degraded (when threshold is `6`, the risk
verdict gate is disabled and does not block approval)
verdict gate is disabled and does not block approval). Dependency
Comment thread
shairevivo marked this conversation as resolved.
Resolved
Comment thread
waynesun09 marked this conversation as resolved.
Resolved
scoping requires verified current-head upstream approval and complete
dependency coverage; otherwise review the full diff. It does not impose
merge ordering or alter these approval criteria.
- `request-changes` — findings *requiring* resolution: one or more critical or
high findings; one or more medium-severity findings identifying a
functional bug (incorrect behavior, permission error, schema violation,
Expand Down
22 changes: 22 additions & 0 deletions docs/review.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,28 @@ The review agent follows the same pre-script / sandbox / post-script pipeline as

On re-review, the sandbox receives a validated `fullsend:review-findings-v2` projection containing `action`, severity, category, file, optional line, id, optional `actionable`, and an `{id, status}` disposition per prior id—not prior descriptions, remediation text, rationales, evidence, or review-thread bodies. Immediately before sandbox creation, the host fetches current thread state and marks eligible findings dismissed only when a verified write-or-higher human other than the PR author resolved a thread containing a trusted review-bot comment with the exact finding-id stamp. Unstamped thread comments stay open; path and line are not used as a fallback. A legacy marker without ids is assigned one before sandbox ingress. Resolved and human-dismissed findings stay in the projection with their anchor so they are recognised and not raised again. A null file retains PR-level category context without serving as a path or severity anchor. The pre-script continues to accept v1 markers for existing comments. Only GitHub `app-verified` re-reviews use file-backed records for remediation-candidate matching.

### Stacked and cherry-picked PRs

On GitHub, the author can declare an open PR in the same repository as a
dependency ("depends on #N", "stacked on #N"). Scoping requires a non-draft
dependency targeting the same base, with a verified current-head approval
from another reviewer with write access and an approved repository review
decision. The excluded prefix must cover that dependency's complete ordered
history: exact SHAs for stacks, or matching patches plus an identical net
diff for cherry-picks. Prefixes omitting later changes or reverts, reordered
picks, and unverifiable matches receive a full review.

Only after verification do non-security dimensions review the PR's own
commits. Security reviewers include custom personas declaring security
categories from the review taxonomy. Security inspection, protected-path checks, and PR-body defenses
cover the whole PR. Retries preserve the pinned full diff and restore full
review when verification fails; an unrecoverable artifact error stops the
review. Scoping does not impose merge ordering or prevent an approval under
the normal review criteria. The review body identifies the excluded commits,
dependency PR, and approved head. GitLab continues to review the full diff.
An existing finding on dependency code remains open at its original severity
until the finding is actually resolved; declaring the dependency does not clear it.

## Time budget

The runner gives the sandbox `timeout_minutes` (45 in
Expand Down
12 changes: 6 additions & 6 deletions scripts/post-review-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3354,13 +3354,13 @@ run_stamped_disposition_case "approve-withheld-for-open-high-prior-finding-re-em
assert_last_result "approve-withheld-for-open-high-prior-finding-re-emitted-lower" \
'.action == "request-changes" and (.body | contains("Approval withheld")) and (.body | contains("f_hi1") | not)'

# Re-emitting an open prior high finding at high still leaves it open.
# open is not a resolution, so approval is withheld.
run_stamped_disposition_case "approve-withheld-for-open-high-prior-finding-re-emitted-high" \
"$(jq -c '.action="approve" | .findings=[{severity:"high",category:"logic-error",file:"old.go",line:3,description:"d",id:"f_hi1"}] | .dispositions=[{id:"f_hi1",status:"open",rationale:"Still present.",evidence:""}]' <<< "${BASE_REVIEW}")" \
'{"version":2,"findings":[{"severity":"high","category":"logic-error","file":"old.go","line":3,"id":"f_hi1"}]}' \
# A dependency declaration between review rounds cannot clear the first
# round's high finding. Keeping its id open at the original severity blocks approval.
run_stamped_disposition_case "dependency-scoped-prior-high-stays-blocking" \
"$(jq -c '.action="approve" | .findings=[{severity:"high",category:"logic-error",file:"old.go",line:3,description:"d",id:"f_hi1"}] | .dispositions=[{id:"f_hi1",status:"open",rationale:"Code matches approved dependency #5 but remains unfixed.",evidence:"Dependency #5 head a1."}]' <<< "${BASE_REVIEW}")" \
'{"version":2,"action":"request-changes","findings":[{"severity":"high","category":"logic-error","file":"old.go","line":3,"id":"f_hi1"}]}' \
'.findings == [{"severity":"high","category":"logic-error","file":"old.go","id":"f_hi1","line":3}] and .dispositions == [{id: "f_hi1", status: "open"}]'
assert_last_result "approve-withheld-for-open-high-prior-finding-re-emitted-high" \
assert_last_result "dependency-scoped-prior-high-stays-blocking" \
'.action == "request-changes" and (.body | contains("Approval withheld")) and (.body | contains("f_hi1") | not)'

# Finding ids never reach the posted text, whatever the model wrote: known
Expand Down
Loading
Loading