Skip to content

self-review: report adjacent issues only when found - #3

Merged
oribarilan merged 1 commit into
mainfrom
fix/self-review-adjacent-issues
Oct 26, 2026
Merged

oribarilan merged 1 commit into
mainfrom
fix/self-review-adjacent-issues

Conversation

@oribarilan

Copy link
Copy Markdown
Owner

Fixes #2.

self-review told agents to end every summary with Adjacent issues: none found in ±20 lines of touched hunks. The idea was that an agent that skipped the scan would have nothing to write, but an agent can write "none found" without looking, so the line was mostly noise.

Agents now add the Adjacent issues: line only when the scan finds something. The scan itself, the six patterns, and the test-fixture carve-out are unchanged.

Removing the line wasn't enough on its own. In testing, agents swapped it for a sentence like "I checked the surrounding lines and found nothing unsafe." Step 8 now says what the summary contains and that checks that came up clean aren't part of it. A side effect is that summaries also stop listing other checks that passed, like "no new logging, no warnings."

Testing

Single-shot Sonnet runs, with the skill as system prompt and a finished change to hand off. 5 runs per cell unless noted.

Skill Clean change: scan mentioned Hardcoded key nearby: named Unrelated mutable default: named
No skill 0/5 5/5 5/5
Before 5/5 5/5 5/5
Step 1 change only 5/5 5/5 5/5
This PR 0/10 5/5 5/5

The no-skill runs caught every planted issue too, so these tests show the new wording cuts the noise without suppressing findings. They don't show whether the skill makes agents scan more. A 97-bench run would answer that.

npm test passes.

The skill required an "Adjacent issues: none found" line in every
summary, which added noise to almost every hand-off. Agents now add
the line only when the ±20-line scan finds something, and step 8
keeps clean checks out of the summary.

Tested with single-shot Sonnet runs: summaries of a clean change
mentioned the scan 5/5 times before and 0/10 after. Planted adjacent
issues were still named 10/10.

Fixes #2
@oribarilan
oribarilan merged commit e4e8d4e into main Oct 26, 2026
18 checks passed
@oribarilan
oribarilan deleted the fix/self-review-adjacent-issues branch October 26, 2026 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

self-review prints "Adjacent issues: none found" in every summary

1 participant