skill: classify by intent first, not by commit/uncommit alone#875
Merged
Conversation
0436c4a to
eb2dfb5
Compare
Replace the "uncommitted edit → Case 1 mandatory" gate with a
symmetric intent check that applies to BOTH committed and uncommitted
source changes on the failing handler's path — AND only when the
change could plausibly be causing the failure.
Why: validation runs against cursor-agent --print repeatedly
misclassified scenarios. The two-bucket framing
(uncommitted = revert, committed = mock) gave the model a permission
gradient that flipped its decision on the wrong axis. It rationalized
"preserve your source change" and silently patched the mock for what
was actually a half-finished regression.
The new wording:
- treats committed and uncommitted symmetrically
- ties the check to the actual failure (does the diff touch the
drifted field / SQL / header / status code in the report?)
- forces an explicit intent question when the diff doesn't decide
- bans the most common misclassification phrase the model
produces ("patch a mock to preserve an uncommitted edit")
Mirrored from .cursor/skills/keploy/SKILL.md in the test-12
validation workspace.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Charan Kamarapu <kamarapucharan@gmail.com>
e910879 to
108c9fb
Compare
ayush3160
approved these changes
Jun 9, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Replace the "uncommitted edit → Case 1 mandatory" gate with a symmetric intent check that applies to BOTH committed and uncommitted source changes on the failing handler's path.
Why
Validation runs against
cursor-agent --printrepeatedly misclassified scenarios:The literal rule was correct, but the two-bucket framing (uncommitted = revert, committed = mock) gave the model a permission gradient that flipped its decision on the wrong axis. It rationalized either way based on commit state instead of intent.
What changes
Before:
After:
Key shifts:
Test plan
.cursor/skills/keploy/SKILL.mdin the test-12 workspace🤖 Generated with Claude Code