Debian Codegraph @

.agents/skills/focused-sabotage-testing/SKILL.md

raw
1 ---
2 name: focused-sabotage-testing
3 description: Use after adding or changing clnkr tests to prove the tests fail when the intended behavior is deliberately broken.
4 ---
5
6 # Focused Sabotage Testing
7
8 Use this for behavior changes where a new test could pass trivially or mirror
9 the current implementation.
10
11 ## Workflow
12
13 1. Identify the smallest deliberate code break for the behavior under test.
14 2. Save it as a patch outside the repo, usually under `/tmp`.
15 3. Run:
16
17 ```sh
18 scripts/sabotage-check.sh --patch /tmp/clnkr-sabotage.patch --test-cmd 'make test'
19 ```
20
21 4. If the sabotage patch does not make the test fail, improve the test before
22 accepting it.
23 5. Keep the sabotage patch out of git.
24
25 ## Patch Rules
26
27 - Break behavior, not compilation.
28 - Change one thing.
29 - Prefer public CLI output, provider request/response shape, typed event output, transcript persistence, or shell execution behavior.
30 - Do not sabotage unrelated error handling just to force a failure.
31
32 ## Evidence
33
34 In review notes, record:
35
36 - patch intent
37 - exact test command
38 - failing result under sabotage
39 - passing result after restore