@iceinvein/agent-skills 0.23.14 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +2 -1
  2. package/package.json +1 -1
  3. package/skills/index.json +6 -0
  4. package/skills/test-redundancy-auditor/SKILL.md +117 -0
  5. package/skills/test-redundancy-auditor/evals/README.md +35 -0
  6. package/skills/test-redundancy-auditor/evals/boundary-tests-stay-unique/case.yaml +4 -0
  7. package/skills/test-redundancy-auditor/evals/boundary-tests-stay-unique/fixture.sh +76 -0
  8. package/skills/test-redundancy-auditor/evals/boundary-tests-stay-unique/graders/auditor-fired.md +5 -0
  9. package/skills/test-redundancy-auditor/evals/boundary-tests-stay-unique/graders/nothing-deleted.md +26 -0
  10. package/skills/test-redundancy-auditor/evals/boundary-tests-stay-unique/prompt.md +11 -0
  11. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/case.yaml +4 -0
  12. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/fixture.sh +60 -0
  13. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/graders/auditor-fired.md +5 -0
  14. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/graders/output-ignores-itself.md +11 -0
  15. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/graders/source-unchanged.md +10 -0
  16. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/graders/tests-unchanged.md +10 -0
  17. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/graders/tree-unchanged.md +13 -0
  18. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/prompt.md +11 -0
  19. package/skills/test-redundancy-auditor/evals/duplicate-is-flagged/case.yaml +4 -0
  20. package/skills/test-redundancy-auditor/evals/duplicate-is-flagged/fixture.sh +60 -0
  21. package/skills/test-redundancy-auditor/evals/duplicate-is-flagged/graders/auditor-fired.md +5 -0
  22. package/skills/test-redundancy-auditor/evals/duplicate-is-flagged/graders/one-of-the-pair-deleted.md +34 -0
  23. package/skills/test-redundancy-auditor/evals/duplicate-is-flagged/prompt.md +11 -0
  24. package/skills/test-redundancy-auditor/evals/guard-test-is-kept/case.yaml +4 -0
  25. package/skills/test-redundancy-auditor/evals/guard-test-is-kept/fixture.sh +58 -0
  26. package/skills/test-redundancy-auditor/evals/guard-test-is-kept/graders/auditor-fired.md +5 -0
  27. package/skills/test-redundancy-auditor/evals/guard-test-is-kept/graders/guard-kept.md +32 -0
  28. package/skills/test-redundancy-auditor/evals/guard-test-is-kept/prompt.md +11 -0
  29. package/skills/test-redundancy-auditor/evals/mock-assertion-is-vacuous/case.yaml +4 -0
  30. package/skills/test-redundancy-auditor/evals/mock-assertion-is-vacuous/fixture.sh +73 -0
  31. package/skills/test-redundancy-auditor/evals/mock-assertion-is-vacuous/graders/auditor-fired.md +5 -0
  32. package/skills/test-redundancy-auditor/evals/mock-assertion-is-vacuous/graders/mock-test-is-vacuous.md +33 -0
  33. package/skills/test-redundancy-auditor/evals/mock-assertion-is-vacuous/prompt.md +11 -0
  34. package/skills/test-redundancy-auditor/evals/mutate-without-tool-stops/case.yaml +4 -0
  35. package/skills/test-redundancy-auditor/evals/mutate-without-tool-stops/fixture.sh +60 -0
  36. package/skills/test-redundancy-auditor/evals/mutate-without-tool-stops/graders/auditor-fired.md +5 -0
  37. package/skills/test-redundancy-auditor/evals/mutate-without-tool-stops/graders/labelled-rubric-only.md +26 -0
  38. package/skills/test-redundancy-auditor/evals/mutate-without-tool-stops/graders/nothing-installed.md +12 -0
  39. package/skills/test-redundancy-auditor/evals/mutate-without-tool-stops/prompt.md +11 -0
  40. package/skills/test-redundancy-auditor/evals/rules.json +193 -0
  41. package/skills/test-redundancy-auditor/evals/subsumed-by-broader-test/case.yaml +4 -0
  42. package/skills/test-redundancy-auditor/evals/subsumed-by-broader-test/fixture.sh +62 -0
  43. package/skills/test-redundancy-auditor/evals/subsumed-by-broader-test/graders/auditor-fired.md +5 -0
  44. package/skills/test-redundancy-auditor/evals/subsumed-by-broader-test/graders/narrow-test-subsumed.md +35 -0
  45. package/skills/test-redundancy-auditor/evals/subsumed-by-broader-test/prompt.md +11 -0
  46. package/skills/test-redundancy-auditor/references/findings-format.md +71 -0
  47. package/skills/test-redundancy-auditor/references/mutation-mode.md +100 -0
  48. package/skills/test-redundancy-auditor/references/rubric.md +144 -0
  49. package/skills/test-redundancy-auditor/skill.json +24 -0
@@ -0,0 +1,32 @@
1
+ ---
2
+ type: llm
3
+ # findings.json sits under a slug the skill picks, so no file focus can name
4
+ # it; the judge reads its content from the Write call (or shell command) in
5
+ # the trace, and sees only a head-and-tail window of a long trace.
6
+ focus: trace
7
+ weight: 3
8
+ ---
9
+
10
+ The agent was asked which tests in `tests/localIsoDate.test.js` are dead
11
+ weight. The suite runs under `TZ=Asia/Tokyo`. The file has three tests:
12
+
13
+ 1. "is running east of UTC, so a local midnight is the previous day in UTC":
14
+ never calls `localIsoDate`; it checks that the time zone stub took effect.
15
+ Without it, a runner that ignored `TZ` would let test 2 pass against a
16
+ `toISOString()` regression, so it guards test 2's premise.
17
+ 2. "reports the local calendar day for a local midnight".
18
+ 3. "zero-pads a single-digit month and day".
19
+
20
+ None of the three belongs on the deletion list.
21
+
22
+ Find the `findings.json` the agent wrote under `.test-redundancy-auditor/`. If
23
+ it was written more than once, judge only the last write, with any later Edit
24
+ applied.
25
+
26
+ PASS if test 1 has verdict `unique` and its evidence says in substance that
27
+ it guards test 2 (or the time zone premise test 2 relies on), tests 2 and 3
28
+ have verdict `unique`, and `deletions` is an empty array.
29
+
30
+ FAIL if no findings.json content is visible in the trace, if test 1 has
31
+ verdict `vacuous` or any other non-unique verdict, if any test is on the
32
+ deletion list, or if test 2 or 3 has a verdict other than `unique`.
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: guard-test-is-kept
3
+ description: "A test that never calls the code under test but checks the time zone stub took effect, which the next test depends on. Pins it as a guard: unique, naming the test it guards, and not deleted."
4
+ tags: [guard, vacuous, precision, scaffold, write]
5
+ max_turns: 60
6
+ timeout_seconds: 1800
7
+ allowed_tools: [Read, Glob, Grep, Skill, Write, Edit, Bash, Agent]
8
+ expected_outcome: findings.json under .test-redundancy-auditor/ gives the time zone test verdict unique with evidence naming the local-midnight test, and deletions is empty.
9
+ ---
10
+
11
+ Which tests in `tests/localIsoDate.test.js` are dead weight?
@@ -0,0 +1,4 @@
1
+ schema_version: "1.1"
2
+ name: mock-assertion-is-vacuous
3
+ context:
4
+ scaffold_script: fixture.sh
@@ -0,0 +1,73 @@
1
+ #!/usr/bin/env bash
2
+ # An overdue-invoice notifier and three tests. Two drive notifyOverdue with a
3
+ # fake mailer and assert who was emailed. The third builds a mock mailer,
4
+ # calls the mock itself and asserts on what the mock was set up to return: it
5
+ # never calls notifyOverdue, so no change to src/notify.js can turn it red.
6
+ # That one is vacuous; the other two are unique.
7
+ set -euo pipefail
8
+
9
+ mkdir -p src tests
10
+
11
+ cat > package.json <<'JSON'
12
+ {
13
+ "name": "billing",
14
+ "version": "3.2.0",
15
+ "type": "module",
16
+ "scripts": {
17
+ "test": "node --test \"tests/*.test.js\""
18
+ }
19
+ }
20
+ JSON
21
+
22
+ cat > src/notify.js <<'JS'
23
+ export async function notifyOverdue(invoices, mailer, today) {
24
+ let sent = 0;
25
+ for (const invoice of invoices) {
26
+ if (invoice.paid || invoice.dueDate >= today) continue;
27
+ await mailer.send(invoice.email, `Invoice ${invoice.id} is overdue`);
28
+ sent += 1;
29
+ }
30
+ return sent;
31
+ }
32
+ JS
33
+
34
+ cat > tests/notify.test.js <<'JS'
35
+ import assert from "node:assert/strict";
36
+ import { mock, test } from "node:test";
37
+ import { notifyOverdue } from "../src/notify.js";
38
+
39
+ function fakeMailer() {
40
+ const sent = [];
41
+ return { sent, send: async (to, subject) => { sent.push({ to, subject }); } };
42
+ }
43
+
44
+ test("emails each unpaid invoice past its due date", async () => {
45
+ const mailer = fakeMailer();
46
+ const invoices = [
47
+ { id: "A1", email: "ann@example.com", dueDate: "2026-01-10", paid: false },
48
+ { id: "B2", email: "bo@example.com", dueDate: "2026-03-01", paid: false },
49
+ ];
50
+ const count = await notifyOverdue(invoices, mailer, "2026-02-01");
51
+ assert.equal(count, 1);
52
+ assert.deepEqual(mailer.sent, [{ to: "ann@example.com", subject: "Invoice A1 is overdue" }]);
53
+ });
54
+
55
+ test("skips a paid invoice even when it is past due", async () => {
56
+ const mailer = fakeMailer();
57
+ const invoices = [{ id: "C3", email: "cy@example.com", dueDate: "2026-01-10", paid: true }];
58
+ const count = await notifyOverdue(invoices, mailer, "2026-02-01");
59
+ assert.equal(count, 0);
60
+ assert.deepEqual(mailer.sent, []);
61
+ });
62
+
63
+ test("sends through the mailer", async () => {
64
+ const mailer = { send: mock.fn(async () => ({ id: "m1" })) };
65
+ const result = await mailer.send("ops@example.com", "Invoice overdue");
66
+ assert.equal(result.id, "m1");
67
+ assert.equal(mailer.send.mock.callCount(), 1);
68
+ });
69
+ JS
70
+
71
+ git init --quiet
72
+ git add -A
73
+ git -c user.email=fixture@example.com -c user.name=fixture commit --quiet -m "feat: email overdue invoices"
@@ -0,0 +1,5 @@
1
+ ---
2
+ type: tool_used
3
+ tool: Skill
4
+ input_match: '"skill"\s*:\s*"(?:[\w-]+:)?test-redundancy-auditor"'
5
+ ---
@@ -0,0 +1,33 @@
1
+ ---
2
+ type: llm
3
+ # findings.json sits under a slug the skill picks, so no file focus can name
4
+ # it; the judge reads its content from the Write call (or shell command) in
5
+ # the trace, and sees only a head-and-tail window of a long trace.
6
+ focus: trace
7
+ weight: 3
8
+ ---
9
+
10
+ The agent was asked whether any test in `tests/notify.test.js` pulls no
11
+ weight. The file has three tests:
12
+
13
+ 1. "emails each unpaid invoice past its due date": calls `notifyOverdue` with
14
+ a fake mailer and asserts the count and the one email sent.
15
+ 2. "skips a paid invoice even when it is past due": calls `notifyOverdue` and
16
+ asserts nothing was sent.
17
+ 3. "sends through the mailer": builds a `mock.fn` mailer, calls
18
+ `mailer.send` itself, and asserts the mock's own return value and call
19
+ count. It never calls `notifyOverdue`, so no change to `src/notify.js`
20
+ can make it fail.
21
+
22
+ Find the `findings.json` the agent wrote under `.test-redundancy-auditor/`. If
23
+ it was written more than once, judge only the last write, with any later Edit
24
+ applied.
25
+
26
+ PASS if test 3 has verdict `vacuous`, its evidence says in substance that it
27
+ never exercises `notifyOverdue` (or that it asserts only on the mock), test 3
28
+ is in `deletions`, and tests 1 and 2 each have verdict `unique` and are not in
29
+ `deletions`.
30
+
31
+ FAIL if no findings.json content is visible in the trace, if test 3 has any
32
+ verdict other than `vacuous`, or if test 1 or test 2 has a verdict other than
33
+ `unique` or is on the deletion list.
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: mock-assertion-is-vacuous
3
+ description: One test calls its own mock and asserts what the mock returns, never reaching the code under test. Pins a vacuous verdict on it and no verdict against the two tests that drive the real code.
4
+ tags: [vacuous, mock, scaffold, write]
5
+ max_turns: 60
6
+ timeout_seconds: 1800
7
+ allowed_tools: [Read, Glob, Grep, Skill, Write, Edit, Bash, Agent]
8
+ expected_outcome: findings.json under .test-redundancy-auditor/ marks "sends through the mailer" vacuous and on the deletion list, and leaves the other two tests unique.
9
+ ---
10
+
11
+ Are any of the tests in `tests/notify.test.js` pulling no weight?
@@ -0,0 +1,4 @@
1
+ schema_version: "1.1"
2
+ name: mutate-without-tool-stops
3
+ context:
4
+ scaffold_script: fixture.sh
@@ -0,0 +1,60 @@
1
+ #!/usr/bin/env bash
2
+ # A slugify module and five tests. Two of them pin the same behaviour on the
3
+ # same kind of input (one capitalised word is lowercased): no plausible bug
4
+ # fails one and passes the other, so one is a duplicate of the other. The
5
+ # other three each cover their own partition: whitespace between words,
6
+ # a run of punctuation, punctuation at the ends. Deleting both duplicates
7
+ # would lose the lowercasing check, so only one belongs on the deletion list.
8
+ set -euo pipefail
9
+
10
+ mkdir -p src tests
11
+
12
+ cat > package.json <<'JSON'
13
+ {
14
+ "name": "slugs",
15
+ "version": "1.0.0",
16
+ "type": "module",
17
+ "scripts": {
18
+ "test": "node --test \"tests/*.test.js\""
19
+ }
20
+ }
21
+ JSON
22
+
23
+ cat > src/slugify.js <<'JS'
24
+ export function slugify(title) {
25
+ return title
26
+ .toLowerCase()
27
+ .replace(/[^a-z0-9]+/g, "-")
28
+ .replace(/^-+|-+$/g, "");
29
+ }
30
+ JS
31
+
32
+ cat > tests/slugify.test.js <<'JS'
33
+ import assert from "node:assert/strict";
34
+ import { test } from "node:test";
35
+ import { slugify } from "../src/slugify.js";
36
+
37
+ test("lowercases a capitalised word", () => {
38
+ assert.equal(slugify("Hello"), "hello");
39
+ });
40
+
41
+ test("joins words with a dash", () => {
42
+ assert.equal(slugify("hello world"), "hello-world");
43
+ });
44
+
45
+ test("lowercases another capitalised word", () => {
46
+ assert.equal(slugify("World"), "world");
47
+ });
48
+
49
+ test("collapses a run of punctuation into one dash", () => {
50
+ assert.equal(slugify("a--b"), "a-b");
51
+ });
52
+
53
+ test("trims punctuation from both ends", () => {
54
+ assert.equal(slugify("!hi!"), "hi");
55
+ });
56
+ JS
57
+
58
+ git init --quiet
59
+ git add -A
60
+ git -c user.email=fixture@example.com -c user.name=fixture commit --quiet -m "feat: slugify titles"
@@ -0,0 +1,5 @@
1
+ ---
2
+ type: tool_used
3
+ tool: Skill
4
+ input_match: '"skill"\s*:\s*"(?:[\w-]+:)?test-redundancy-auditor"'
5
+ ---
@@ -0,0 +1,26 @@
1
+ ---
2
+ type: llm
3
+ # findings.json sits under a slug the skill picks, so no file focus can name
4
+ # it; the judge reads its content from the Write call (or shell command) in
5
+ # the trace, and sees only a head-and-tail window of a long trace.
6
+ focus: trace
7
+ weight: 3
8
+ ---
9
+
10
+ The agent was asked to use mutation testing to find redundant tests in
11
+ `tests/slugify.test.js`. The repo has no mutation testing tool installed
12
+ (`package.json` has no dependencies at all), so mutation mode cannot run
13
+ without adding one.
14
+
15
+ Find the `findings.json` the agent wrote under `.test-redundancy-auditor/`. If
16
+ it was written more than once, judge only the last write, with any later Edit
17
+ applied.
18
+
19
+ PASS if `mode` is `"rubric"` (not `"mutation"`), and its `mutation` field
20
+ says mutation testing did not run and names a JavaScript mutation testing
21
+ tool to add (Stryker is the expected one; another real JavaScript mutation
22
+ tool is acceptable).
23
+
24
+ FAIL if no findings.json content is visible in the trace, if `mode` is
25
+ `"mutation"`, if the file claims any kill counts or mutant results, or if no
26
+ tool to add is named.
@@ -0,0 +1,12 @@
1
+ ---
2
+ type: regex
3
+ # The repo has no mutation tool, and SKILL.md says to name one rather than
4
+ # install it. Fails on a shell command that installs a package or fetches one
5
+ # to run: npm/pnpm/yarn/bun add or install, `npm init stryker` (Stryker's own
6
+ # setup command, which installs), npm exec, pnpm/yarn dlx, or npx/bunx of
7
+ # anything with stryker in the name.
8
+ pattern: '"command":"(?:\\.|[^"\\])*?(?:\b(?:npm|pnpm)\s+(?:i|install|add|exec)\b|\byarn\s+add\b|\b(?:pnpm|yarn)\s+dlx\b|\bbun\s+(?:add|install)\b|\b(?:npm|pnpm|yarn|bun)\s+(?:init|create)\s+(?:\S+\s+)*?@?stryker|\b(?:npx|bunx)\s+(?:\S+\s+)*?@?stryker)'
9
+ match: not_contains
10
+ target: trace
11
+ weight: 3
12
+ ---
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: mutate-without-tool-stops
3
+ description: Mutation mode asked for in a repo with no mutation tool. Pins the skill installing nothing, naming the tool to add, and labelling its result as rubric-only rather than mutation-verified.
4
+ tags: [mutation, dependency, scaffold, write]
5
+ max_turns: 60
6
+ timeout_seconds: 1800
7
+ allowed_tools: [Read, Glob, Grep, Skill, Write, Edit, Bash, Agent]
8
+ expected_outcome: no install command runs; findings.json has mode "rubric" and a mutation entry saying it did not run and naming a JavaScript mutation tool to add.
9
+ ---
10
+
11
+ Use mutation testing to tell me which tests in `tests/slugify.test.js` are redundant.
@@ -0,0 +1,193 @@
1
+ {
2
+ "rules": [
3
+ {
4
+ "id": "duplicate-cites-its-twin",
5
+ "states": "SKILL.md: Verdicts",
6
+ "origin": "skills/test-redundancy-auditor/references/rubric.md",
7
+ "cases": [
8
+ "duplicate-is-flagged"
9
+ ]
10
+ },
11
+ {
12
+ "id": "duplicate-group-keeps-one",
13
+ "states": "references/rubric.md: Building the deletion list",
14
+ "origin": "skills/test-redundancy-auditor/references/rubric.md",
15
+ "cases": [
16
+ "duplicate-is-flagged"
17
+ ]
18
+ },
19
+ {
20
+ "id": "test-that-cannot-fail-is-vacuous",
21
+ "states": "references/rubric.md: 1. Can it fail?",
22
+ "origin": "skills/test-redundancy-auditor/references/rubric.md",
23
+ "cases": [
24
+ "mock-assertion-is-vacuous"
25
+ ]
26
+ },
27
+ {
28
+ "id": "subsumed-not-duplicate-when-one-way",
29
+ "states": "references/rubric.md: 4. Is another test at the same layer as strong on the same partition?",
30
+ "origin": "skills/test-redundancy-auditor/references/rubric.md",
31
+ "cases": [
32
+ "subsumed-by-broader-test"
33
+ ]
34
+ },
35
+ {
36
+ "id": "precision-over-recall",
37
+ "states": "SKILL.md: Verdicts",
38
+ "origin": "skills/test-redundancy-auditor/references/rubric.md",
39
+ "cases": [
40
+ "boundary-tests-stay-unique",
41
+ "duplicate-is-flagged",
42
+ "mock-assertion-is-vacuous",
43
+ "subsumed-by-broader-test"
44
+ ]
45
+ },
46
+ {
47
+ "id": "challenge-every-non-unique-verdict",
48
+ "states": "SKILL.md: Method",
49
+ "origin": "skills/test-redundancy-auditor/references/rubric.md",
50
+ "cases": [
51
+ "boundary-tests-stay-unique"
52
+ ]
53
+ },
54
+ {
55
+ "id": "report-only-callers-tree-unchanged",
56
+ "states": "SKILL.md: Method",
57
+ "origin": "skills/test-redundancy-auditor/SKILL.md",
58
+ "cases": [
59
+ "callers-tree-unchanged"
60
+ ]
61
+ },
62
+ {
63
+ "id": "output-dir-ignores-itself",
64
+ "states": "SKILL.md: Output",
65
+ "origin": "skills/test-redundancy-auditor/SKILL.md",
66
+ "cases": [
67
+ "callers-tree-unchanged"
68
+ ]
69
+ },
70
+ {
71
+ "id": "mutation-installs-nothing",
72
+ "states": "references/mutation-mode.md: Find the tool",
73
+ "origin": "skills/test-redundancy-auditor/references/mutation-mode.md",
74
+ "cases": [
75
+ "mutate-without-tool-stops"
76
+ ]
77
+ },
78
+ {
79
+ "id": "missing-tool-labelled-rubric-only",
80
+ "states": "references/findings-format.md: findings.json",
81
+ "origin": "skills/test-redundancy-auditor/references/mutation-mode.md",
82
+ "cases": [
83
+ "mutate-without-tool-stops"
84
+ ]
85
+ },
86
+ {
87
+ "id": "kill-matrix-verdicts",
88
+ "states": "references/mutation-mode.md: Read the matrix",
89
+ "origin": "skills/test-redundancy-auditor/references/mutation-mode.md",
90
+ "cases": [],
91
+ "unpinned": "No case ships a mutation tool: a fixture would need StrykerJS installed in the eval sandbox, which needs network access the scaffold does not have. This covers the bail setting, the timeout rule and the worktree dependency link too."
92
+ },
93
+ {
94
+ "id": "layer-echo-never-deleted",
95
+ "states": "references/rubric.md: 3. Is the same rule asserted at another layer?",
96
+ "origin": "skills/test-redundancy-auditor/references/rubric.md",
97
+ "cases": [],
98
+ "unpinned": "No case yet has a unit test and an integration test on the same rule and partition."
99
+ },
100
+ {
101
+ "id": "costs-measured-or-null",
102
+ "states": "SKILL.md: Method",
103
+ "origin": "skills/test-redundancy-auditor/references/findings-format.md",
104
+ "cases": [],
105
+ "unpinned": "No grader checks runtimeMs or churn against the fixture's real values."
106
+ },
107
+ {
108
+ "id": "guards-are-not-vacuous",
109
+ "states": "references/rubric.md: 1. Can it fail?",
110
+ "origin": "skills/test-redundancy-auditor/references/rubric.md",
111
+ "cases": [
112
+ "guard-test-is-kept"
113
+ ]
114
+ },
115
+ {
116
+ "id": "boundaries-are-own-partitions",
117
+ "states": "references/rubric.md: 2. What does it pin?",
118
+ "origin": "skills/test-redundancy-auditor/references/rubric.md",
119
+ "cases": [
120
+ "boundary-tests-stay-unique"
121
+ ]
122
+ },
123
+ {
124
+ "id": "shared-bodies-marked-restructure",
125
+ "states": "references/rubric.md: Building the deletion list",
126
+ "origin": "skills/test-redundancy-auditor/references/findings-format.md",
127
+ "cases": [],
128
+ "unpinned": "No case has a describe.each or per-configuration helper with a redundant instance."
129
+ },
130
+ {
131
+ "id": "large-findings-built-by-script",
132
+ "states": "SKILL.md: Output",
133
+ "origin": "skills/test-redundancy-auditor/references/findings-format.md",
134
+ "cases": [],
135
+ "unpinned": "Needs a target over about 100 tests, too large for an eval fixture."
136
+ },
137
+ {
138
+ "id": "runtime-median-of-three",
139
+ "states": "SKILL.md: Method",
140
+ "origin": "skills/test-redundancy-auditor/SKILL.md",
141
+ "cases": [],
142
+ "unpinned": "No grader checks how runtime was measured."
143
+ },
144
+ {
145
+ "id": "environment-recorded",
146
+ "states": "references/findings-format.md: findings.json",
147
+ "origin": "skills/test-redundancy-auditor/references/findings-format.md",
148
+ "cases": [],
149
+ "unpinned": "No grader reads the environment field."
150
+ },
151
+ {
152
+ "id": "large-target-split-keeps-probes-central",
153
+ "states": "SKILL.md: Method",
154
+ "origin": "skills/test-redundancy-auditor/SKILL.md",
155
+ "cases": [],
156
+ "unpinned": "Needs a target large enough to split."
157
+ },
158
+ {
159
+ "id": "zero-kills-vacuous-only-in-scope",
160
+ "states": "references/mutation-mode.md: Read the matrix",
161
+ "origin": "skills/test-redundancy-auditor/references/mutation-mode.md",
162
+ "cases": [],
163
+ "unpinned": "Same reason as kill-matrix-verdicts: no case ships a mutation tool."
164
+ },
165
+ {
166
+ "id": "catch-all-branch-splits-partitions",
167
+ "states": "references/rubric.md: 2. What does it pin?",
168
+ "origin": "skills/test-redundancy-auditor/references/rubric.md",
169
+ "cases": [],
170
+ "unpinned": "Found by the WorkforceManagement field calibration (two refuted deletions); no fixture case yet."
171
+ },
172
+ {
173
+ "id": "every-assertion-found-in-covering-tests",
174
+ "states": "references/rubric.md: Precision rules",
175
+ "origin": "skills/test-redundancy-auditor/references/rubric.md",
176
+ "cases": [
177
+ "subsumed-by-broader-test"
178
+ ]
179
+ },
180
+ {
181
+ "id": "hand-back-contents",
182
+ "states": "SKILL.md: Hand-back",
183
+ "origin": "skills/test-redundancy-auditor/SKILL.md",
184
+ "cases": [],
185
+ "unpinned": "No grader reads the final message."
186
+ }
187
+ ],
188
+ "sandboxSensitive": [],
189
+ "vacuousWithout": [
190
+ "callers-tree-unchanged"
191
+ ],
192
+ "unclaimed": []
193
+ }
@@ -0,0 +1,4 @@
1
+ schema_version: "1.1"
2
+ name: subsumed-by-broader-test
3
+ context:
4
+ scaffold_script: fixture.sh
@@ -0,0 +1,62 @@
1
+ #!/usr/bin/env bash
2
+ # A cart totaller and four tests. "the subtotal sums price times quantity"
3
+ # asserts one field on the same input that "totals a two-line order" asserts
4
+ # in full, so any bug the first catches the second catches too: the first is
5
+ # subsumed by the second. They are not duplicates, since the broader test
6
+ # also catches tax and total bugs the narrow one misses, so only the narrow
7
+ # one belongs on the deletion list. The rounding and empty-cart tests each
8
+ # cover their own case.
9
+ set -euo pipefail
10
+
11
+ mkdir -p src tests
12
+
13
+ cat > package.json <<'JSON'
14
+ {
15
+ "name": "checkout",
16
+ "version": "0.9.0",
17
+ "type": "module",
18
+ "scripts": {
19
+ "test": "node --test \"tests/*.test.js\""
20
+ }
21
+ }
22
+ JSON
23
+
24
+ cat > src/cart.js <<'JS'
25
+ // Amounts are whole cents.
26
+ export function totals(lines, taxRate) {
27
+ const subtotal = lines.reduce((sum, line) => sum + line.price * line.qty, 0);
28
+ const tax = Math.round(subtotal * taxRate);
29
+ return { subtotal, tax, total: subtotal + tax };
30
+ }
31
+ JS
32
+
33
+ cat > tests/cart.test.js <<'JS'
34
+ import assert from "node:assert/strict";
35
+ import { test } from "node:test";
36
+ import { totals } from "../src/cart.js";
37
+
38
+ const order = [
39
+ { price: 500, qty: 2 },
40
+ { price: 250, qty: 1 },
41
+ ];
42
+
43
+ test("the subtotal sums price times quantity", () => {
44
+ assert.equal(totals(order, 0.1).subtotal, 1250);
45
+ });
46
+
47
+ test("totals a two-line order", () => {
48
+ assert.deepEqual(totals(order, 0.1), { subtotal: 1250, tax: 125, total: 1375 });
49
+ });
50
+
51
+ test("rounds half a cent of tax up", () => {
52
+ assert.equal(totals([{ price: 125, qty: 1 }], 0.1).tax, 13);
53
+ });
54
+
55
+ test("an empty cart totals zero", () => {
56
+ assert.deepEqual(totals([], 0.1), { subtotal: 0, tax: 0, total: 0 });
57
+ });
58
+ JS
59
+
60
+ git init --quiet
61
+ git add -A
62
+ git -c user.email=fixture@example.com -c user.name=fixture commit --quiet -m "feat: cart totals"
@@ -0,0 +1,5 @@
1
+ ---
2
+ type: tool_used
3
+ tool: Skill
4
+ input_match: '"skill"\s*:\s*"(?:[\w-]+:)?test-redundancy-auditor"'
5
+ ---
@@ -0,0 +1,35 @@
1
+ ---
2
+ type: llm
3
+ # findings.json sits under a slug the skill picks, so no file focus can name
4
+ # it; the judge reads its content from the Write call (or shell command) in
5
+ # the trace, and sees only a head-and-tail window of a long trace.
6
+ focus: trace
7
+ weight: 3
8
+ ---
9
+
10
+ The agent was asked to audit `tests/cart.test.js` for redundant tests. The
11
+ file has four tests:
12
+
13
+ 1. "the subtotal sums price times quantity": asserts only `.subtotal` is 1250
14
+ for a two-line order at a 0.1 tax rate.
15
+ 2. "totals a two-line order": on the same order and rate, asserts the whole
16
+ result `{ subtotal: 1250, tax: 125, total: 1375 }`.
17
+ 3. "rounds half a cent of tax up": a different input, asserts tax 13 (12.5 cents rounded half up).
18
+ 4. "an empty cart totals zero".
19
+
20
+ Every bug test 1 catches, test 2 catches too, but not the reverse, so test 1
21
+ is subsumed by test 2. Tests 2, 3 and 4 are unique.
22
+
23
+ Find the `findings.json` the agent wrote under `.test-redundancy-auditor/`. If
24
+ it was written more than once, judge only the last write, with any later Edit
25
+ applied.
26
+
27
+ PASS if all of these hold:
28
+ - test 1 has verdict `subsumed` and its `of` array holds the id test 2
29
+ has in `tests`;
30
+ - `deletions` names test 1 and no other test;
31
+ - tests 2, 3 and 4 each have verdict `unique`.
32
+
33
+ FAIL if no findings.json content is visible in the trace, if test 1 is called
34
+ a `duplicate` rather than `subsumed`, if test 2 is on the deletion list, or if
35
+ test 3 or 4 has a verdict other than `unique`.
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: subsumed-by-broader-test
3
+ description: A one-field assertion on the same input another test asserts in full. Pins a subsumed verdict on the narrow test, naming the broad one, with only the narrow one deleted.
4
+ tags: [subsumed, precision, scaffold, write]
5
+ max_turns: 60
6
+ timeout_seconds: 1800
7
+ allowed_tools: [Read, Glob, Grep, Skill, Write, Edit, Bash, Agent]
8
+ expected_outcome: findings.json under .test-redundancy-auditor/ marks the subtotal test subsumed by the two-line order test, deletes only it, and leaves the other three unique.
9
+ ---
10
+
11
+ Audit `tests/cart.test.js` for redundant tests.