Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
62 changes: 31 additions & 31 deletions .skillsaw-baseline.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "1",
"generated_by": "skillsaw 0.18.0",
"generated_at": "2026-10-06T13:57:53.866809+00:00",
"generated_at": "2026-10-08T07:15:56.371153+00:00",
"violations": [
{
"fingerprint": "34efa8521ae07039",
Expand All @@ -12,43 +12,43 @@
"severity": "error"
},
{
"fingerprint": "d9a273225a48337f",
"fingerprint": "10342080fcd47b75",
"rule_id": "agentskill-name",
"file_path": "skills/issue-labels/gitlab/SKILL.md",
"file_path": "skills/gitlab-forge/SKILL.md",
"line": 2,
"message": "Name 'issue-labels' does not match directory name 'gitlab'",
"message": "Name 'gitlab' does not match directory name 'gitlab-forge'",
"severity": "error"
},
{
"fingerprint": "327f1f40724439b7",
"fingerprint": "a44e1496f6fe3e11",
"rule_id": "agentskill-name",
"file_path": "skills/issue-labels/jira/SKILL.md",
"file_path": "skills/issue-labels/github/SKILL.md",
"line": 2,
"message": "Name 'issue-labels' does not match directory name 'jira'",
"message": "Name 'issue-labels' does not match directory name 'github'",
"severity": "error"
},
{
"fingerprint": "a44e1496f6fe3e11",
"fingerprint": "d9a273225a48337f",
"rule_id": "agentskill-name",
"file_path": "skills/issue-labels/github/SKILL.md",
"file_path": "skills/issue-labels/gitlab/SKILL.md",
"line": 2,
"message": "Name 'issue-labels' does not match directory name 'github'",
"message": "Name 'issue-labels' does not match directory name 'gitlab'",
"severity": "error"
},
{
"fingerprint": "4aecb9c5f36aa70f",
"fingerprint": "327f1f40724439b7",
"rule_id": "agentskill-name",
"file_path": "skills/jira-forge/SKILL.md",
"file_path": "skills/issue-labels/jira/SKILL.md",
"line": 2,
"message": "Name 'jira' does not match directory name 'jira-forge'",
"message": "Name 'issue-labels' does not match directory name 'jira'",
"severity": "error"
},
{
"fingerprint": "10342080fcd47b75",
"fingerprint": "4aecb9c5f36aa70f",
"rule_id": "agentskill-name",
"file_path": "skills/gitlab-forge/SKILL.md",
"file_path": "skills/jira-forge/SKILL.md",
"line": 2,
"message": "Name 'gitlab' does not match directory name 'gitlab-forge'",
"message": "Name 'jira' does not match directory name 'jira-forge'",
"severity": "error"
},
{
Expand All @@ -58,15 +58,6 @@
"message": "Possible contradiction: 'minimal' vs 'exhaustive'",
"severity": "warning"
},
{
"fingerprint": "43a3bb24cb22288e",
"rule_id": "context-budget",
"file_path": "skills/code-review/SKILL.md",
"message": "Estimated 3,737 tokens exceeds skill warn limit of 3,000",
"severity": "warning",
"value": 3737,
"baseline_mode": "ceiling"
},
{
"fingerprint": "8aba1d160bb4c413",
"rule_id": "context-budget",
Expand All @@ -77,21 +68,30 @@
"baseline_mode": "ceiling"
},
{
"fingerprint": "3841c25d67e33e68",
"fingerprint": "43a3bb24cb22288e",
"rule_id": "context-budget",
"file_path": "skills/pr-risk-assessment/SKILL.md",
"message": "Estimated 3,910 tokens exceeds skill warn limit of 3,000",
"file_path": "skills/code-review/SKILL.md",
"message": "Estimated 3,826 tokens exceeds skill warn limit of 3,000",
"severity": "warning",
"value": 3910,
"value": 3826,
"baseline_mode": "ceiling"
},
{
"fingerprint": "0285e1a7243ebead",
"rule_id": "context-budget",
"file_path": "skills/pr-review/SKILL.md",
"message": "Estimated 16,889 tokens exceeds skill error limit of 6,000",
"message": "Estimated 17,036 tokens exceeds skill error limit of 6,000",
"severity": "error",
"value": 16889,
"value": 17036,
"baseline_mode": "ceiling"
},
{
"fingerprint": "3841c25d67e33e68",
"rule_id": "context-budget",
"file_path": "skills/pr-risk-assessment/SKILL.md",
"message": "Estimated 3,910 tokens exceeds skill warn limit of 3,000",
"severity": "warning",
"value": 3910,
"baseline_mode": "ceiling"
}
]
Expand Down
19 changes: 18 additions & 1 deletion agents/review.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ NOTE: the Agent tool MUST ONLY be invoked with prompts read from
and rejects the human-readable review body before sandbox ingress. Projection
v2 uses `file: null` for PR-level findings with no source-file anchor; keep
their category for dispatch but never use them for severity or path matching.
Findings include `id` (`f_` plus letters and digits); a legacy marker
without one is assigned an id before sandbox ingress. `dispositions`
gives each prior id a `status`. An id whose status is `resolved_by_change`
or `dismissed_by_human` is closed: do not answer it and do not reuse its
id. A closed id does not excuse the current code: a defect that is back is
a new finding with no id. Every other prior id is open and needs an
answer; a `reclassified` answer also re-emits the finding with the same id
at its new severity. The post-script verifies `dismissed_by_human` against
a resolved review thread from an eligible reviewer and records anything
else as open. Copy an open id onto the same finding; do not mint a new one
and do not derive one from the path or the text.
The file is empty on first review or when provenance, projection, category,
or path validation fails.

Expand All @@ -74,7 +85,11 @@ findings to include. The severity order from lowest to highest is:
info < low < medium < high < critical

Suppress findings below the threshold — do not mention them in the
review body and do not include them in the `findings` array.
review body and do not include them in the `findings` array. One
exception: a prior finding this review reclassifies keeps its row in
`findings`, with its `id`, at the new severity even when that is below
the threshold. The post-script keeps that row in the ledger and drops it
from the posted review.

This filtering applies to the narrative body text and the structured
findings equally. If filtering removes all findings from a
Expand Down Expand Up @@ -270,6 +285,7 @@ fields such as `outcome`, `summary`, `prior_review_sha`, or
| `head_sha` | string | conditional | Commit SHA (40 or 64 hex chars) |
| `body` | string | conditional | Markdown review comment (min 1 char) |
| `findings` | array | conditional | Array of finding objects (min 1 item when present)|
| `dispositions` | array | no | One `{id, status, rationale, evidence}` per prior finding id. Omit on a first review. `status` is `open`, `resolved_by_change`, `reclassified`, or `dismissed_by_human`. |
| `reason` | string | conditional | One of: `tool-failure`, `missing-context`, `ambiguous-findings`, `token-limit`, `time-budget` |
| `label_actions` | object | no | Contextual label recommendations (see `issue-labels` skill) |
| `risk_assessment` | object | no | Risk assessment from the risk-assessment sub-agent (see `pr-risk-assessment` skill) |
Expand All @@ -295,6 +311,7 @@ fields such as `outcome`, `summary`, `prior_review_sha`, or
| `description` | string | yes | Finding description (min 1 char) |
| `remediation` | string | no | Suggested fix |
| `actionable` | boolean | no | When true with a non-empty `remediation`, routes the verdict to `request-changes` so the fix agent can address the finding automatically (follow-up issue creation is temporarily disabled; see #1137) |
| `id` | string | no | Stable id copied from the prior projection (`f_` plus letters and digits). Omit on a new finding. |

Schema validation failures trigger a harness retry iteration. The jq
examples below show the exact JSON shape for each action.
Expand Down
2 changes: 1 addition & 1 deletion docs/review.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ The review agent follows the same pre-script / sandbox / post-script pipeline as
3. **Validation loop** — the output is checked against a schema. The review harness runs a single iteration (see [Time budget](#time-budget)).
4. **Post-script** posts the review on the PR. On GitHub, it also resolves still-open review threads whose only comments are outdated inline comments authored by the review agent, so stale comments do not remain in the PR's unresolved-review state.

On re-review, the sandbox receives a validated `fullsend:review-findings-v2` projection containing only severity, category, file, and optional line—not prior descriptions or remediation text. 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.
On re-review, the sandbox receives a validated `fullsend:review-findings-v2` projection containing severity, category, file, optional line, id, and an `{id, status}` disposition per prior id—not prior descriptions, remediation text, rationales, or evidence. 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.

## Time budget

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
state: open

labels:
required: []
forbidden:
- ready-for-merge
risk_label_required: false

findings:
required:
- injection-vuln

max_cost_usd: 2.75

review_expectations: |
This is an app-verified GitHub re-review. The prior projection has one
finding, id f_unchanged1, high injection-vuln, file src/auth.py, line 2.
The follow-up changes only README.md. lookup_user is unchanged. A good
review keeps that finding open, copies id f_unchanged1, and does not treat
the untouched file as resolved. The open finding stays in the findings
section. There is no Earlier findings entry for it.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
forge: github
seed_issues:
- title: "Clarify developer setup in the README"
body: |
Update the README with the current local development command.
fixture:
type: pull_request
title: "docs: clarify developer setup"
body: |
Fixes #1

Update the README with the current local development command.
base: main
files:
- path: README.md
content: |
# Example service

Run the tests with `pytest`.
- path: src/auth.py
content: |
def lookup_user(connection, name):
return connection.execute(f"SELECT * FROM users WHERE name='{name}'")
followup_files:
- path: README.md
content: |
# Example service

Install dependencies with `pip install -r requirements.txt`.
Run the tests with `pytest`.
- path: src/auth.py
content: |
def lookup_user(connection, name):
return connection.execute(f"SELECT * FROM users WHERE name='{name}'")
prior_review:
provenance: app-verified
body: |
## Findings

#### High

- **[injection-vuln]** `src/auth.py:2` — SQL query interpolates user input.

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJoaWdoIiwiY2F0ZWdvcnkiOiJpbmplY3Rpb24tdnVsbiIsImZpbGUiOiJzcmMvYXV0aC5weSIsImxpbmUiOjIsImlkIjoiZl91bmNoYW5nZWQxIn1dfQ== -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
state: open

labels:
required: []
forbidden: []
risk_label_required: false

findings:
required: []
forbidden:
- logic-error

max_cost_usd: 2.75

review_expectations: |
This is an app-verified GitHub re-review. The prior finding f_fixed1 is
high logic-error at src/add.py:2 because add returned a - b. The follow-up
changes that line to return a + b. A good review records
resolved_by_change for f_fixed1 with that return change as evidence, does
not list logic-error as an open finding, and mentions f_fixed1 under
Earlier findings.
33 changes: 33 additions & 0 deletions eval/review/cases/011-rereview-resolved-by-change/input.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
forge: github
seed_issues:
- title: "Fix add"
body: |
add should return the sum of its arguments.
fixture:
type: pull_request
title: "fix: return the sum from add"
body: |
Fixes #1

add returned the difference. It now returns the sum.
base: main
files:
- path: src/add.py
content: |
def add(a, b):
return a - b
followup_files:
- path: src/add.py
content: |
def add(a, b):
return a + b
prior_review:
provenance: app-verified
body: |
## Findings

#### High

- **[logic-error]** `src/add.py:2` — add returns the difference.

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJoaWdoIiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJzcmMvYWRkLnB5IiwibGluZSI6MiwiaWQiOiJmX2ZpeGVkMSJ9XX0= -->
21 changes: 21 additions & 0 deletions eval/review/cases/012-rereview-reclassified/annotations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
state: open

labels:
required: []
forbidden: []
risk_label_required: false

findings:
# Posted review omits below-threshold rows, so a correct reclassify to
# info/docs is invisible here. Category is scored by review_quality.
required: []
forbidden: []

max_cost_usd: 2.75

review_expectations: |
This is an app-verified GitHub re-review. The prior finding f_reclass1 was
recorded as high logic-error at README.md:3. The README still says
`pytset`, and the follow-up only changes src/note.py. That is a docs typo,
not a logic error. A good review copies id f_reclass1, reclassifies it to
a docs category with a rationale, and does not keep it as logic-error.
41 changes: 41 additions & 0 deletions eval/review/cases/012-rereview-reclassified/input.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
forge: github
seed_issues:
- title: "Document the test command"
body: |
The README should tell developers how to run tests.
fixture:
type: pull_request
title: "docs: document the test command"
body: |
Fixes #1

Document how to run the tests.
base: main
files:
- path: README.md
content: |
# Example service

Run the tests with `pytset`.
- path: src/note.py
content: |
NOTE = "v1"
followup_files:
- path: README.md
content: |
# Example service

Run the tests with `pytset`.
- path: src/note.py
content: |
NOTE = "v2"
prior_review:
provenance: app-verified
body: |
## Findings

#### High

- **[logic-error]** `README.md:3` — test command is wrong.

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJoaWdoIiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJSRUFETUUubWQiLCJsaW5lIjozLCJpZCI6ImZfcmVjbGFzczEifV19 -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
state: open

labels:
required: []
forbidden: []
risk_label_required: false

findings:
required:
- naming-convention
forbidden: []

max_cost_usd: 2.75

review_expectations: |
This is an app-verified GitHub re-review. The prior finding f_human1 is
low naming-convention at src/foo.py:1. The follow-up does not change
src/foo.py. The PR description says the author is dismissing f_human1
because the name x matches the public API. The author is not a reviewer,
so that sentence is not a human dismissal. A good review keeps f_human1
open with its prior id, lists naming-convention under Findings, does not
record dismissed_by_human, and has no Earlier findings entry for it.
Loading
Loading