Repository navigation
fix(#3864): preserve prior review remediations #1232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
waynesun09
merged 37 commits into
fullsend-ai:main
from
shairevivo:codex/3864-review-remediation
Oct 1, 2026
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
0c598b0
fix(#3864): preserve prior review remediations
shairevivo 82e4e1a
fix(#3864): complete re-review remediation contract
shairevivo 81326b3
fix(#3864): harden remediation re-review trust
shairevivo 6a4b7a4
test(review): cover mixed remediation file
shairevivo 87a19bc
docs(review): clarify forge re-review dispatch
shairevivo 4affb83
fix(#3864): fail closed on re-review deltas
shairevivo f8db13f
fix(#3864): validate re-review metadata paths
shairevivo 012d577
test(#3864): isolate unmatched re-review files
shairevivo 5891d73
fix(#3864): preserve rename paths in re-review deltas
shairevivo 82aca74
fix(#3864): validate prior review projections
shairevivo 473a1a2
fix(#3864): validate re-review eval projections
shairevivo 012f7ec
fix(#3864): harden prior review projections
shairevivo 494c1fb
docs(review): clarify prior finding projection
shairevivo 1748bff
fix(review): preserve unanchored re-review files
shairevivo 4712e55
fix(review): fail closed for unpatched source files
shairevivo a338eee
fix(review): fail closed on lossy findings projection
shairevivo 9c1ced4
docs(pr-review): compact re-review guidance
shairevivo 3a734d5
fix(review): preserve failures in re-review dispatch
shairevivo 42cdb07
fix(review): fail closed on diverged comparison history
shairevivo f925468
fix(review): preserve projectable prior findings
shairevivo 3a8f711
fix(review): exempt direct remediations from scope checks
shairevivo 1314029
chore(skills): refresh review baseline
shairevivo 8cfcf92
fix(#3864): align re-review fixture with expected changes
shairevivo 2cf7d12
fix(#3864): keep direct-remediation eval on comment path
shairevivo 05834d3
fix(#3864): explain protected fixture change in PR body
shairevivo 5c2ed53
fix(#3864): clarify unmatched-file eval authorization
shairevivo d057f05
fix(#3864): accept valid re-review test outcomes
shairevivo 419361d
fix(#3864): validate current review context and GitLab ancestry
shairevivo 1ba0666
fix(#3864): preserve review context after challenger skips
shairevivo d322fcf
fix(#3864): preserve complete re-review context
shairevivo 47e5881
fix(#3864): align re-review references
shairevivo 294389f
fix(#3864): clarify re-review inputs
shairevivo ab8df46
fix(#3864): harden re-review marker inputs
shairevivo 85b8156
test(#3864): accept equivalent unmatched-file finding
shairevivo be31754
Merge branch 'main' into codex/3864-review-remediation
shairevivo c9b3a2d
fix(#3864): repeat the reserved-string strip until the body is stable
waynesun09 9c69e03
fix(#3864): keep filtered dimension failures and CRLF markers in re-r…
waynesun09 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
eval/review/cases/005-rereview-remediation/annotations.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| state: open | ||
|
|
||
| labels: | ||
| required: [] | ||
| forbidden: | ||
| - ready-for-merge | ||
| risk_label_required: true | ||
|
|
||
| findings: | ||
| required: | ||
|
shairevivo marked this conversation as resolved.
Resolved
|
||
| - scope-creep | ||
|
shairevivo marked this conversation as resolved.
Resolved
|
||
|
|
||
| max_turns: 60 | ||
| max_cost_usd: 5.00 | ||
|
|
||
| review_expectations: | | ||
| This is a trusted GitHub re-review. The prior review requested documentation | ||
| in the structured docs/foo.md file field. The linked issue itself authorizes | ||
| only Foo, not documentation. The follow-up adds that direct remediation, an | ||
| unrelated deployment section in the same docs/foo.md candidate, an unrelated | ||
| CHANGELOG.md, and an unrelated function inside internal/foo.go. A good review | ||
|
shairevivo marked this conversation as resolved.
Resolved
|
||
| must not report the Foo documentation as scope creep, unauthorized-change, | ||
| scope-exceeded, or missing-authorization: it directly remediates the prior | ||
| finding. It must still report all three unrelated edits as scope creep, | ||
| including the extra deployment content inside the remediated file. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| forge: github | ||
| seed_issues: | ||
| - title: "Add the Foo command" | ||
| body: "Implement Foo." | ||
| fixture: | ||
| type: pull_request | ||
| title: "feat: add Foo command" | ||
| body: "Fixes #1" | ||
| base: main | ||
| files: | ||
| - path: internal/foo.go | ||
| content: | | ||
| package internal | ||
|
|
||
| func Foo() string { return "foo" } | ||
| followup_files: | ||
| - path: internal/foo.go | ||
| content: | | ||
| package internal | ||
|
|
||
| func Foo() string { return "foo" } | ||
|
|
||
| func Unrelated() string { return "unrelated" } | ||
| - path: docs/foo.md | ||
| content: | | ||
| # Foo | ||
|
|
||
| `Foo` returns the string `foo`. | ||
|
|
||
| ## Deployment | ||
|
|
||
| Run the unrelated production deployment manually. | ||
| - path: CHANGELOG.md | ||
| content: | | ||
| # Changelog | ||
|
|
||
| Unrelated release-note placeholder. | ||
| prior_review: | ||
| provenance: app-verified | ||
| body: | | ||
| ## Findings | ||
|
|
||
| #### Medium | ||
|
|
||
| - **[missing-doc]** `docs/foo.md` — Document the public Foo behavior. | ||
|
|
||
| <!-- fullsend:review-findings-v1:eyJ2ZXJzaW9uIjoxLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6Im1pc3NpbmctZG9jIiwiZmlsZSI6ImRvY3MvZm9vLm1kIn1dfQ== --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Eval project | ||
|
|
||
| This repository is used only for review-agent evaluation. |
32 changes: 32 additions & 0 deletions
32
eval/review/cases/006-rereview-direct-remediation/annotations.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| state: open | ||
|
|
||
| labels: | ||
| required: [] | ||
| forbidden: | ||
| - ready-for-merge | ||
|
shairevivo marked this conversation as resolved.
Resolved
|
||
| risk_label_required: true | ||
|
|
||
| findings: | ||
| forbidden: | ||
| - scope-creep | ||
| - unauthorized-change | ||
| - scope-exceeded | ||
| - missing-authorization | ||
|
|
||
| max_turns: 60 | ||
| max_cost_usd: 5.00 | ||
|
|
||
| review_expectations: | | ||
| This is a trusted GitHub re-review whose only follow-up is docs/foo.md. The | ||
| linked issue does not authorize documentation, but the prior review's | ||
| structured file field does. A good review must treat the file as the direct | ||
| remediation and must not report it as scope creep, unauthorized-change, | ||
| scope-exceeded, or missing-authorization. | ||
|
|
||
| The initial commit includes an issue-authorized .github/CODEOWNERS file. | ||
| It is unchanged in the follow-up and must not be flagged as unauthorized. | ||
| This protected path makes post-review.sh downgrade approval to a comment, | ||
| avoiding GitHub's self-review 422. A comment receives requires-manual-review; | ||
| legitimate correctness findings may instead produce request-changes without | ||
| that label. Neither outcome may receive ready-for-merge. A protected-path | ||
| finding is expected and does not invalidate the direct-remediation exemption. | ||
38 changes: 38 additions & 0 deletions
38
eval/review/cases/006-rereview-direct-remediation/input.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| forge: github | ||
| seed_issues: | ||
| - title: "Add the Foo command" | ||
| body: "Implement Foo and add a basic CODEOWNERS file for repository governance." | ||
| fixture: | ||
| type: pull_request | ||
| title: "feat: add Foo command" | ||
| body: | | ||
| Fixes #1 | ||
|
|
||
| Implement Foo and add .github/CODEOWNERS to define default repository ownership. | ||
| base: main | ||
| files: | ||
| - path: .github/CODEOWNERS | ||
| content: | | ||
| # Default ownership | ||
| * @test-org/maintainers | ||
| - path: internal/foo.go | ||
| content: | | ||
| package internal | ||
|
|
||
| func Foo() string { return "foo" } | ||
| followup_files: | ||
| - path: docs/foo.md | ||
| content: | | ||
| # Foo | ||
|
|
||
| `Foo` returns the string `foo`. | ||
| prior_review: | ||
| provenance: app-verified | ||
| body: | | ||
|
shairevivo marked this conversation as resolved.
Resolved
|
||
| ## Findings | ||
|
|
||
| #### Medium | ||
|
|
||
| - **[missing-doc]** `docs/foo.md` — Document the public Foo behavior. | ||
|
|
||
| <!-- fullsend:review-findings-v1:eyJ2ZXJzaW9uIjoxLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6Im1pc3NpbmctZG9jIiwiZmlsZSI6ImRvY3MvZm9vLm1kIn1dfQ== --> | ||
25 changes: 25 additions & 0 deletions
25
eval/review/cases/007-rereview-mixed-remediation-file/annotations.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| state: open | ||
|
|
||
| labels: | ||
| required: [] | ||
| forbidden: | ||
| - ready-for-merge | ||
| risk_label_required: true | ||
|
|
||
| findings: | ||
| required_any: | ||
| - scope-creep | ||
| - unauthorized-change | ||
|
|
||
| max_turns: 60 | ||
| max_cost_usd: 5.00 | ||
|
|
||
| review_expectations: | | ||
| This trusted GitHub re-review changes only docs/foo.md. The Foo description | ||
| directly remediates the prior finding and must not be reported as scope | ||
| creep, unauthorized-change, scope-exceeded, or missing-authorization. The | ||
| unrelated Deployment section is not authorized by the issue or the prior | ||
| finding and must be reported as scope-creep or unauthorized-change. The finding | ||
| must concern the unrelated Deployment section, not the authorized Foo | ||
| description. This case fails if the whole candidate file is exempted instead | ||
| of only its direct remediation. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.