Commit 45df405
docs(skill): check intent first on any failure-relevant code change (#875)
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.
Signed-off-by: Charan Kamarapu <kamarapucharan@gmail.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 76aec27 commit 45df405
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| |||
0 commit comments