@mwillbanks/ast-mcp 0.1.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.
- package/CONTRIBUTING.md +60 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/ast-mcp-hook.js +7 -0
- package/dist/ast-mcp-hook.js.map +11 -0
- package/dist/ast-mcp-install.js +22 -0
- package/dist/ast-mcp-install.js.map +12 -0
- package/dist/ast-mcp.js +115 -0
- package/dist/ast-mcp.js.map +89 -0
- package/dprint.json +37 -0
- package/logo.svg +1 -0
- package/package.json +89 -0
- package/src/ast-bro/capability.ts +21 -0
- package/src/ast-bro/client.ts +47 -0
- package/src/ast-bro/result.ts +42 -0
- package/src/ast-bro/rewrite-capability.ts +9 -0
- package/src/ast-bro/tools.json +603 -0
- package/src/hook.ts +79 -0
- package/src/http-entry.ts +3 -0
- package/src/http.ts +138 -0
- package/src/index.ts +8 -0
- package/src/installer.ts +501 -0
- package/src/lifecycle.ts +10 -0
- package/src/managed-hook.ts +4 -0
- package/src/patch/aider.ts +224 -0
- package/src/patch/engine.ts +446 -0
- package/src/patch/languages.ts +36 -0
- package/src/runtime/atomic.ts +26 -0
- package/src/runtime/attributes.ts +70 -0
- package/src/runtime/file-delete.ts +96 -0
- package/src/runtime/file-read.ts +178 -0
- package/src/runtime/format.ts +56 -0
- package/src/runtime/hash.ts +11 -0
- package/src/runtime/locks.ts +87 -0
- package/src/runtime/paths.ts +73 -0
- package/src/runtime/process-input.ts +25 -0
- package/src/runtime/signals.ts +47 -0
- package/src/server.ts +13 -0
- package/src/stdio.ts +154 -0
- package/src/tools/ast-bro.ts +172 -0
- package/src/tools/files.ts +173 -0
- package/src/tools/index.ts +11 -0
- package/src/tools/lifecycle.ts +124 -0
- package/templates/AGENTS.md +56 -0
- package/templates/skills/ast-mcp/SKILL.md +96 -0
- package/templates/skills/ast-mcp/agents/openai.yaml +4 -0
- package/templates/skills/ast-mcp/evals/batch.evals.json +274 -0
- package/templates/skills/ast-mcp/evals/evals.json +1209 -0
- package/templates/skills/ast-mcp/evals/file-hash.evals.json +50 -0
- package/templates/skills/ast-mcp/evals/measure.ts +18 -0
- package/templates/skills/ast-mcp/evals/results.md +17 -0
- package/templates/skills/ast-mcp/evals/score.ts +417 -0
- package/templates/skills/ast-mcp/evals/semantic.ts +332 -0
- package/templates/skills/ast-mcp/evals/trigger-queries.json +22 -0
- package/templates/skills/ast-mcp/evals/validate.ts +99 -0
- package/templates/skills/ast-mcp/references/installation.md +40 -0
- package/templates/skills/ast-mcp/references/managed-hook.ts +3 -0
- package/templates/skills/ast-mcp/references/patch-state-machine.md +39 -0
- package/templates/skills/ast-mcp/references/tool-catalog.md +46 -0
- package/templates/skills/ast-mcp/scripts/check-install.ts +269 -0
- package/templates/skills/ast-mcp/scripts/managed-hook.ts +22 -0
|
@@ -0,0 +1,1209 @@
|
|
|
1
|
+
{
|
|
2
|
+
"evals": [
|
|
3
|
+
{
|
|
4
|
+
"assertions": [
|
|
5
|
+
"Uses files with a bounded lines tuple and never requests full-file content.",
|
|
6
|
+
"Treats returned SHA-256 as the hash of the whole file.",
|
|
7
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
8
|
+
],
|
|
9
|
+
"category": "positive",
|
|
10
|
+
"expected_output": "Routes the non-AST request to file_read with one bounded, end-exclusive line slice.",
|
|
11
|
+
"files": [],
|
|
12
|
+
"forbidden_tools": [],
|
|
13
|
+
"id": 1,
|
|
14
|
+
"prompt": "Read lines 200 through 260 from a large XML fixture without loading the whole file.",
|
|
15
|
+
"required_tools": ["file_read"],
|
|
16
|
+
"surface": "file_read",
|
|
17
|
+
"variant": "primary"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"assertions": [
|
|
21
|
+
"Batches multiple files instead of making repeated file_read calls.",
|
|
22
|
+
"Uses schema-valid zero-based end-exclusive ranges and maxBytes values.",
|
|
23
|
+
"Reports truncation and hasMore metadata when present."
|
|
24
|
+
],
|
|
25
|
+
"category": "variant",
|
|
26
|
+
"expected_output": "Uses one batched file_read call with three bounded requests and per-file byte caps.",
|
|
27
|
+
"files": [],
|
|
28
|
+
"forbidden_tools": [],
|
|
29
|
+
"id": 2,
|
|
30
|
+
"prompt": "Inspect small slices from three non-AST logs in one request and cap every returned slice at 64 KiB.",
|
|
31
|
+
"required_tools": ["file_read"],
|
|
32
|
+
"surface": "file_read",
|
|
33
|
+
"variant": "batch-and-byte-cap"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"assertions": [
|
|
37
|
+
"Does not call file_read for AST-capable source.",
|
|
38
|
+
"Uses map for shape and show for the named implementation.",
|
|
39
|
+
"Avoids whole-file content reads."
|
|
40
|
+
],
|
|
41
|
+
"category": "negative",
|
|
42
|
+
"expected_output": "Uses AST intelligence for the TypeScript file and never calls file_read.",
|
|
43
|
+
"files": [],
|
|
44
|
+
"forbidden_tools": ["file_read"],
|
|
45
|
+
"id": 3,
|
|
46
|
+
"prompt": "Inspect the declarations and implementation of createServer in src/server.ts.",
|
|
47
|
+
"required_tools": ["map", "show"],
|
|
48
|
+
"surface": "file_read",
|
|
49
|
+
"variant": "ast-capable-near-miss"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"assertions": [
|
|
53
|
+
"Uses file_write only for new files.",
|
|
54
|
+
"Uses direct MCP tool file_write; never invents a proxy.",
|
|
55
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
56
|
+
],
|
|
57
|
+
"category": "positive",
|
|
58
|
+
"expected_output": "Routes the request to file_write with the arguments and safety checks described by the skill.",
|
|
59
|
+
"files": [],
|
|
60
|
+
"forbidden_tools": [],
|
|
61
|
+
"id": 4,
|
|
62
|
+
"prompt": "Create a new src/config.ts file with a typed config object.",
|
|
63
|
+
"required_tools": ["file_write"],
|
|
64
|
+
"surface": "file_write",
|
|
65
|
+
"variant": "primary"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"assertions": [
|
|
69
|
+
"Exercises a distinct file_write argument or recovery variant.",
|
|
70
|
+
"Uses schema-valid arguments for file_write.",
|
|
71
|
+
"Reports relevant verification."
|
|
72
|
+
],
|
|
73
|
+
"category": "variant",
|
|
74
|
+
"expected_output": "Uses file_write with the relevant option or recovery variant, then verifies the result.",
|
|
75
|
+
"files": [],
|
|
76
|
+
"forbidden_tools": [],
|
|
77
|
+
"id": 5,
|
|
78
|
+
"prompt": "Create a new JSON settings file and verify the newly created output.",
|
|
79
|
+
"required_tools": ["file_write"],
|
|
80
|
+
"surface": "file_write",
|
|
81
|
+
"variant": "option-variant"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"assertions": [
|
|
85
|
+
"Does not call file_write for the near-miss.",
|
|
86
|
+
"Selects the semantically correct alternative file_patch.",
|
|
87
|
+
"Avoids direct filesystem or shell mutation."
|
|
88
|
+
],
|
|
89
|
+
"category": "negative",
|
|
90
|
+
"expected_output": "Does not route this near-miss to file_write; selects file_patch.",
|
|
91
|
+
"files": [],
|
|
92
|
+
"forbidden_tools": ["file_write"],
|
|
93
|
+
"id": 6,
|
|
94
|
+
"prompt": "Change an existing TypeScript file under the AST write contract.",
|
|
95
|
+
"required_tools": ["file_patch"],
|
|
96
|
+
"surface": "file_write",
|
|
97
|
+
"variant": "near-miss"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"assertions": [
|
|
101
|
+
"Uses file_patch with the correct strategy for the target.",
|
|
102
|
+
"Uses direct MCP tool file_patch; never invents a proxy.",
|
|
103
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
104
|
+
],
|
|
105
|
+
"category": "positive",
|
|
106
|
+
"expected_output": "Routes the request to file_patch with the arguments and safety checks described by the skill.",
|
|
107
|
+
"files": [],
|
|
108
|
+
"forbidden_tools": [],
|
|
109
|
+
"id": 7,
|
|
110
|
+
"prompt": "Rename one uniquely matched TypeScript call with a reviewed AST rule.",
|
|
111
|
+
"required_tools": ["file_patch"],
|
|
112
|
+
"surface": "file_patch",
|
|
113
|
+
"variant": "primary"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"assertions": [
|
|
117
|
+
"Exercises a distinct file_patch argument or recovery variant.",
|
|
118
|
+
"Uses schema-valid arguments for file_patch.",
|
|
119
|
+
"Reports relevant verification."
|
|
120
|
+
],
|
|
121
|
+
"category": "variant",
|
|
122
|
+
"expected_output": "Uses file_patch with the relevant option or recovery variant, then verifies the result.",
|
|
123
|
+
"files": [],
|
|
124
|
+
"forbidden_tools": [],
|
|
125
|
+
"id": 8,
|
|
126
|
+
"prompt": "Patch duplicated unsupported prose with a unique Aider block and fresh hash.",
|
|
127
|
+
"required_tools": ["file_patch"],
|
|
128
|
+
"surface": "file_patch",
|
|
129
|
+
"variant": "option-variant"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"assertions": [
|
|
133
|
+
"Re-inspects through AST and refreshes file_hash after the stale or ambiguous rejection.",
|
|
134
|
+
"Uses run to narrow the structural rule before retrying.",
|
|
135
|
+
"Keeps the final file_patch on the AST strategy with exactly one match."
|
|
136
|
+
],
|
|
137
|
+
"category": "negative",
|
|
138
|
+
"expected_output": "Treats the rejection as recoverable, uses AST inspection and run to narrow the rule, refreshes file_hash, then uses file_patch with one reviewed match.",
|
|
139
|
+
"files": [],
|
|
140
|
+
"forbidden_tools": [],
|
|
141
|
+
"id": 9,
|
|
142
|
+
"prompt": "The existing TypeScript patch reports more matches than expected; re-inspect through AST, refresh file_hash, narrow the AST preview, then continue safely.",
|
|
143
|
+
"required_tools": ["run", "file_hash", "file_patch"],
|
|
144
|
+
"surface": "file_patch",
|
|
145
|
+
"variant": "near-miss"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"assertions": [
|
|
149
|
+
"Uses map for one-file shape and parse health.",
|
|
150
|
+
"Uses direct MCP tool map; never invents a proxy.",
|
|
151
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
152
|
+
],
|
|
153
|
+
"category": "positive",
|
|
154
|
+
"expected_output": "Routes the request to map with the arguments and safety checks described by the skill.",
|
|
155
|
+
"files": [],
|
|
156
|
+
"forbidden_tools": [],
|
|
157
|
+
"id": 10,
|
|
158
|
+
"prompt": "Map one source file for declarations, line ranges, and parse errors.",
|
|
159
|
+
"required_tools": ["map"],
|
|
160
|
+
"surface": "map",
|
|
161
|
+
"variant": "primary"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"assertions": [
|
|
165
|
+
"Exercises a distinct map argument or recovery variant.",
|
|
166
|
+
"Uses schema-valid arguments for map.",
|
|
167
|
+
"Reports relevant verification."
|
|
168
|
+
],
|
|
169
|
+
"category": "variant",
|
|
170
|
+
"expected_output": "Uses map with the relevant option or recovery variant, then verifies the result.",
|
|
171
|
+
"files": [],
|
|
172
|
+
"forbidden_tools": [],
|
|
173
|
+
"id": 11,
|
|
174
|
+
"prompt": "Check parse health for a bounded TypeScript file instead of inferring it from an empty search.",
|
|
175
|
+
"required_tools": ["map"],
|
|
176
|
+
"surface": "map",
|
|
177
|
+
"variant": "option-variant"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"assertions": [
|
|
181
|
+
"Does not call map for the near-miss.",
|
|
182
|
+
"Selects the semantically correct alternative digest.",
|
|
183
|
+
"Avoids direct filesystem or shell mutation."
|
|
184
|
+
],
|
|
185
|
+
"category": "negative",
|
|
186
|
+
"expected_output": "Does not route this near-miss to map; selects digest.",
|
|
187
|
+
"files": [],
|
|
188
|
+
"forbidden_tools": ["map"],
|
|
189
|
+
"id": 12,
|
|
190
|
+
"prompt": "Give a compact inventory of every file in an unfamiliar directory.",
|
|
191
|
+
"required_tools": ["digest"],
|
|
192
|
+
"surface": "map",
|
|
193
|
+
"variant": "near-miss"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"assertions": [
|
|
197
|
+
"Uses digest for directory orientation.",
|
|
198
|
+
"Uses direct MCP tool digest; never invents a proxy.",
|
|
199
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
200
|
+
],
|
|
201
|
+
"category": "positive",
|
|
202
|
+
"expected_output": "Routes the request to digest with the arguments and safety checks described by the skill.",
|
|
203
|
+
"files": [],
|
|
204
|
+
"forbidden_tools": [],
|
|
205
|
+
"id": 13,
|
|
206
|
+
"prompt": "Digest an unfamiliar src directory with public methods.",
|
|
207
|
+
"required_tools": ["digest"],
|
|
208
|
+
"surface": "digest",
|
|
209
|
+
"variant": "primary"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"assertions": [
|
|
213
|
+
"Exercises a distinct digest argument or recovery variant.",
|
|
214
|
+
"Uses schema-valid arguments for digest.",
|
|
215
|
+
"Reports relevant verification."
|
|
216
|
+
],
|
|
217
|
+
"category": "variant",
|
|
218
|
+
"expected_output": "Uses digest with the relevant option or recovery variant, then verifies the result.",
|
|
219
|
+
"files": [],
|
|
220
|
+
"forbidden_tools": [],
|
|
221
|
+
"id": 14,
|
|
222
|
+
"prompt": "Digest bounded directories with private members, fields, and a max member limit.",
|
|
223
|
+
"required_tools": ["digest"],
|
|
224
|
+
"surface": "digest",
|
|
225
|
+
"variant": "option-variant"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"assertions": [
|
|
229
|
+
"Does not call digest for the near-miss.",
|
|
230
|
+
"Selects the semantically correct alternative show.",
|
|
231
|
+
"Avoids direct filesystem or shell mutation."
|
|
232
|
+
],
|
|
233
|
+
"category": "negative",
|
|
234
|
+
"expected_output": "Does not route this near-miss to digest; selects show.",
|
|
235
|
+
"files": [],
|
|
236
|
+
"forbidden_tools": ["digest"],
|
|
237
|
+
"id": 15,
|
|
238
|
+
"prompt": "Show the exact source body of a known symbol in one file.",
|
|
239
|
+
"required_tools": ["show"],
|
|
240
|
+
"surface": "digest",
|
|
241
|
+
"variant": "near-miss"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"assertions": [
|
|
245
|
+
"Uses show for exact source extraction.",
|
|
246
|
+
"Uses direct MCP tool show; never invents a proxy.",
|
|
247
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
248
|
+
],
|
|
249
|
+
"category": "positive",
|
|
250
|
+
"expected_output": "Routes the request to show with the arguments and safety checks described by the skill.",
|
|
251
|
+
"files": [],
|
|
252
|
+
"forbidden_tools": [],
|
|
253
|
+
"id": 16,
|
|
254
|
+
"prompt": "Show the implementation of handleRequest in src/server.ts.",
|
|
255
|
+
"required_tools": ["show"],
|
|
256
|
+
"surface": "show",
|
|
257
|
+
"variant": "primary"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"assertions": [
|
|
261
|
+
"Exercises a distinct show argument or recovery variant.",
|
|
262
|
+
"Uses schema-valid arguments for show.",
|
|
263
|
+
"Reports relevant verification."
|
|
264
|
+
],
|
|
265
|
+
"category": "variant",
|
|
266
|
+
"expected_output": "Uses show with the relevant option or recovery variant, then verifies the result.",
|
|
267
|
+
"files": [],
|
|
268
|
+
"forbidden_tools": [],
|
|
269
|
+
"id": 17,
|
|
270
|
+
"prompt": "Show a Markdown heading from the skill file as a known symbol.",
|
|
271
|
+
"required_tools": ["show"],
|
|
272
|
+
"surface": "show",
|
|
273
|
+
"variant": "option-variant"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"assertions": [
|
|
277
|
+
"Does not call show for the near-miss.",
|
|
278
|
+
"Selects the semantically correct alternative search.",
|
|
279
|
+
"Avoids direct filesystem or shell mutation."
|
|
280
|
+
],
|
|
281
|
+
"category": "negative",
|
|
282
|
+
"expected_output": "Does not route this near-miss to show; selects search.",
|
|
283
|
+
"files": [],
|
|
284
|
+
"forbidden_tools": ["show"],
|
|
285
|
+
"id": 18,
|
|
286
|
+
"prompt": "Find related code when the symbol name is unknown.",
|
|
287
|
+
"required_tools": ["search"],
|
|
288
|
+
"surface": "show",
|
|
289
|
+
"variant": "near-miss"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"assertions": [
|
|
293
|
+
"Uses implements for type hierarchy questions.",
|
|
294
|
+
"Uses direct MCP tool implements; never invents a proxy.",
|
|
295
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
296
|
+
],
|
|
297
|
+
"category": "positive",
|
|
298
|
+
"expected_output": "Routes the request to implements with the arguments and safety checks described by the skill.",
|
|
299
|
+
"files": [],
|
|
300
|
+
"forbidden_tools": [],
|
|
301
|
+
"id": 19,
|
|
302
|
+
"prompt": "Find classes implementing PaymentRepository.",
|
|
303
|
+
"required_tools": ["implements"],
|
|
304
|
+
"surface": "implements",
|
|
305
|
+
"variant": "primary"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"assertions": [
|
|
309
|
+
"Exercises a distinct implements argument or recovery variant.",
|
|
310
|
+
"Uses schema-valid arguments for implements.",
|
|
311
|
+
"Reports relevant verification."
|
|
312
|
+
],
|
|
313
|
+
"category": "variant",
|
|
314
|
+
"expected_output": "Uses implements with the relevant option or recovery variant, then verifies the result.",
|
|
315
|
+
"files": [],
|
|
316
|
+
"forbidden_tools": [],
|
|
317
|
+
"id": 20,
|
|
318
|
+
"prompt": "Find indirect subtypes of an interface using hierarchy options.",
|
|
319
|
+
"required_tools": ["implements"],
|
|
320
|
+
"surface": "implements",
|
|
321
|
+
"variant": "option-variant"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"assertions": [
|
|
325
|
+
"Does not call implements for the near-miss.",
|
|
326
|
+
"Selects the semantically correct alternative callers.",
|
|
327
|
+
"Avoids direct filesystem or shell mutation."
|
|
328
|
+
],
|
|
329
|
+
"category": "negative",
|
|
330
|
+
"expected_output": "Does not route this near-miss to implements; selects callers.",
|
|
331
|
+
"files": [],
|
|
332
|
+
"forbidden_tools": ["implements"],
|
|
333
|
+
"id": 21,
|
|
334
|
+
"prompt": "Find functions that call PaymentRepository.save.",
|
|
335
|
+
"required_tools": ["callers"],
|
|
336
|
+
"surface": "implements",
|
|
337
|
+
"variant": "near-miss"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"assertions": [
|
|
341
|
+
"Uses surface for downstream-visible exports.",
|
|
342
|
+
"Uses direct MCP tool surface; never invents a proxy.",
|
|
343
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
344
|
+
],
|
|
345
|
+
"category": "positive",
|
|
346
|
+
"expected_output": "Routes the request to surface with the arguments and safety checks described by the skill.",
|
|
347
|
+
"files": [],
|
|
348
|
+
"forbidden_tools": [],
|
|
349
|
+
"id": 22,
|
|
350
|
+
"prompt": "Report the true public API including re-export chains.",
|
|
351
|
+
"required_tools": ["surface"],
|
|
352
|
+
"surface": "surface",
|
|
353
|
+
"variant": "primary"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"assertions": [
|
|
357
|
+
"Exercises a distinct surface argument or recovery variant.",
|
|
358
|
+
"Uses schema-valid arguments for surface.",
|
|
359
|
+
"Reports relevant verification."
|
|
360
|
+
],
|
|
361
|
+
"category": "variant",
|
|
362
|
+
"expected_output": "Uses surface with the relevant option or recovery variant, then verifies the result.",
|
|
363
|
+
"files": [],
|
|
364
|
+
"forbidden_tools": [],
|
|
365
|
+
"id": 23,
|
|
366
|
+
"prompt": "Render the public API as a tree with a bounded recursion depth.",
|
|
367
|
+
"required_tools": ["surface"],
|
|
368
|
+
"surface": "surface",
|
|
369
|
+
"variant": "option-variant"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"assertions": [
|
|
373
|
+
"Does not call surface for the near-miss.",
|
|
374
|
+
"Selects the semantically correct alternative map.",
|
|
375
|
+
"Avoids direct filesystem or shell mutation."
|
|
376
|
+
],
|
|
377
|
+
"category": "negative",
|
|
378
|
+
"expected_output": "Does not route this near-miss to surface; selects map.",
|
|
379
|
+
"files": [],
|
|
380
|
+
"forbidden_tools": ["surface"],
|
|
381
|
+
"id": 24,
|
|
382
|
+
"prompt": "Map declarations and parse errors in one source file.",
|
|
383
|
+
"required_tools": ["map"],
|
|
384
|
+
"surface": "surface",
|
|
385
|
+
"variant": "near-miss"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"assertions": [
|
|
389
|
+
"Uses deps for forward import traversal.",
|
|
390
|
+
"Uses direct MCP tool deps; never invents a proxy.",
|
|
391
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
392
|
+
],
|
|
393
|
+
"category": "positive",
|
|
394
|
+
"expected_output": "Routes the request to deps with the arguments and safety checks described by the skill.",
|
|
395
|
+
"files": [],
|
|
396
|
+
"forbidden_tools": [],
|
|
397
|
+
"id": 25,
|
|
398
|
+
"prompt": "List the transitive imports of src/server.ts.",
|
|
399
|
+
"required_tools": ["deps"],
|
|
400
|
+
"surface": "deps",
|
|
401
|
+
"variant": "primary"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"assertions": [
|
|
405
|
+
"Exercises a distinct deps argument or recovery variant.",
|
|
406
|
+
"Uses schema-valid arguments for deps.",
|
|
407
|
+
"Reports relevant verification."
|
|
408
|
+
],
|
|
409
|
+
"category": "variant",
|
|
410
|
+
"expected_output": "Uses deps with the relevant option or recovery variant, then verifies the result.",
|
|
411
|
+
"files": [],
|
|
412
|
+
"forbidden_tools": [],
|
|
413
|
+
"id": 26,
|
|
414
|
+
"prompt": "Rebuild the dependency graph and traverse imports to depth two.",
|
|
415
|
+
"required_tools": ["deps"],
|
|
416
|
+
"surface": "deps",
|
|
417
|
+
"variant": "option-variant"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"assertions": [
|
|
421
|
+
"Does not call deps for the near-miss.",
|
|
422
|
+
"Selects the semantically correct alternative reverse_deps.",
|
|
423
|
+
"Avoids direct filesystem or shell mutation."
|
|
424
|
+
],
|
|
425
|
+
"category": "negative",
|
|
426
|
+
"expected_output": "Does not route this near-miss to deps; selects reverse_deps.",
|
|
427
|
+
"files": [],
|
|
428
|
+
"forbidden_tools": ["deps"],
|
|
429
|
+
"id": 27,
|
|
430
|
+
"prompt": "List the files that import src/server.ts.",
|
|
431
|
+
"required_tools": ["reverse_deps"],
|
|
432
|
+
"surface": "deps",
|
|
433
|
+
"variant": "near-miss"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"assertions": [
|
|
437
|
+
"Uses reverse_deps for importer traversal.",
|
|
438
|
+
"Uses direct MCP tool reverse_deps; never invents a proxy.",
|
|
439
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
440
|
+
],
|
|
441
|
+
"category": "positive",
|
|
442
|
+
"expected_output": "Routes the request to reverse_deps with the arguments and safety checks described by the skill.",
|
|
443
|
+
"files": [],
|
|
444
|
+
"forbidden_tools": [],
|
|
445
|
+
"id": 28,
|
|
446
|
+
"prompt": "List files importing src/runtime/hash.ts.",
|
|
447
|
+
"required_tools": ["reverse_deps"],
|
|
448
|
+
"surface": "reverse_deps",
|
|
449
|
+
"variant": "primary"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"assertions": [
|
|
453
|
+
"Exercises a distinct reverse_deps argument or recovery variant.",
|
|
454
|
+
"Uses schema-valid arguments for reverse_deps.",
|
|
455
|
+
"Reports relevant verification."
|
|
456
|
+
],
|
|
457
|
+
"category": "variant",
|
|
458
|
+
"expected_output": "Uses reverse_deps with the relevant option or recovery variant, then verifies the result.",
|
|
459
|
+
"files": [],
|
|
460
|
+
"forbidden_tools": [],
|
|
461
|
+
"id": 29,
|
|
462
|
+
"prompt": "Find up to five importers with dependency options.",
|
|
463
|
+
"required_tools": ["reverse_deps"],
|
|
464
|
+
"surface": "reverse_deps",
|
|
465
|
+
"variant": "option-variant"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"assertions": [
|
|
469
|
+
"Does not call reverse_deps for the near-miss.",
|
|
470
|
+
"Selects the semantically correct alternative callers.",
|
|
471
|
+
"Avoids direct filesystem or shell mutation."
|
|
472
|
+
],
|
|
473
|
+
"category": "negative",
|
|
474
|
+
"expected_output": "Does not route this near-miss to reverse_deps; selects callers.",
|
|
475
|
+
"files": [],
|
|
476
|
+
"forbidden_tools": ["reverse_deps"],
|
|
477
|
+
"id": 30,
|
|
478
|
+
"prompt": "Find functions that call sha256.",
|
|
479
|
+
"required_tools": ["callers"],
|
|
480
|
+
"surface": "reverse_deps",
|
|
481
|
+
"variant": "near-miss"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"assertions": [
|
|
485
|
+
"Uses cycles for circular-import detection.",
|
|
486
|
+
"Uses direct MCP tool cycles; never invents a proxy.",
|
|
487
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
488
|
+
],
|
|
489
|
+
"category": "positive",
|
|
490
|
+
"expected_output": "Routes the request to cycles with the arguments and safety checks described by the skill.",
|
|
491
|
+
"files": [],
|
|
492
|
+
"forbidden_tools": [],
|
|
493
|
+
"id": 31,
|
|
494
|
+
"prompt": "Find import cycles and return JSON for a CI gate.",
|
|
495
|
+
"required_tools": ["cycles"],
|
|
496
|
+
"surface": "cycles",
|
|
497
|
+
"variant": "primary"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"assertions": [
|
|
501
|
+
"Exercises a distinct cycles argument or recovery variant.",
|
|
502
|
+
"Uses schema-valid arguments for cycles.",
|
|
503
|
+
"Reports relevant verification."
|
|
504
|
+
],
|
|
505
|
+
"category": "variant",
|
|
506
|
+
"expected_output": "Uses cycles with the relevant option or recovery variant, then verifies the result.",
|
|
507
|
+
"files": [],
|
|
508
|
+
"forbidden_tools": [],
|
|
509
|
+
"id": 32,
|
|
510
|
+
"prompt": "Find SCCs of size at least three after rebuilding.",
|
|
511
|
+
"required_tools": ["cycles"],
|
|
512
|
+
"surface": "cycles",
|
|
513
|
+
"variant": "option-variant"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"assertions": [
|
|
517
|
+
"Does not call cycles for the near-miss.",
|
|
518
|
+
"Selects the semantically correct alternative graph.",
|
|
519
|
+
"Avoids direct filesystem or shell mutation."
|
|
520
|
+
],
|
|
521
|
+
"category": "negative",
|
|
522
|
+
"expected_output": "Does not route this near-miss to cycles; selects graph.",
|
|
523
|
+
"files": [],
|
|
524
|
+
"forbidden_tools": ["cycles"],
|
|
525
|
+
"id": 33,
|
|
526
|
+
"prompt": "Render the complete file-level dependency graph.",
|
|
527
|
+
"required_tools": ["graph"],
|
|
528
|
+
"surface": "cycles",
|
|
529
|
+
"variant": "near-miss"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"assertions": [
|
|
533
|
+
"Uses graph for dependency graph emission.",
|
|
534
|
+
"Uses direct MCP tool graph; never invents a proxy.",
|
|
535
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
536
|
+
],
|
|
537
|
+
"category": "positive",
|
|
538
|
+
"expected_output": "Routes the request to graph with the arguments and safety checks described by the skill.",
|
|
539
|
+
"files": [],
|
|
540
|
+
"forbidden_tools": [],
|
|
541
|
+
"id": 34,
|
|
542
|
+
"prompt": "Render the repository file-level dependency graph.",
|
|
543
|
+
"required_tools": ["graph"],
|
|
544
|
+
"surface": "graph",
|
|
545
|
+
"variant": "primary"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"assertions": [
|
|
549
|
+
"Exercises a distinct graph argument or recovery variant.",
|
|
550
|
+
"Uses schema-valid arguments for graph.",
|
|
551
|
+
"Reports relevant verification."
|
|
552
|
+
],
|
|
553
|
+
"category": "variant",
|
|
554
|
+
"expected_output": "Uses graph with the relevant option or recovery variant, then verifies the result.",
|
|
555
|
+
"files": [],
|
|
556
|
+
"forbidden_tools": [],
|
|
557
|
+
"id": 35,
|
|
558
|
+
"prompt": "Render JSON, hide external imports, and rebuild the graph cache.",
|
|
559
|
+
"required_tools": ["graph"],
|
|
560
|
+
"surface": "graph",
|
|
561
|
+
"variant": "option-variant"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"assertions": [
|
|
565
|
+
"Does not call graph for the near-miss.",
|
|
566
|
+
"Selects the semantically correct alternative cycles.",
|
|
567
|
+
"Avoids direct filesystem or shell mutation."
|
|
568
|
+
],
|
|
569
|
+
"category": "negative",
|
|
570
|
+
"expected_output": "Does not route this near-miss to graph; selects cycles.",
|
|
571
|
+
"files": [],
|
|
572
|
+
"forbidden_tools": ["graph"],
|
|
573
|
+
"id": 36,
|
|
574
|
+
"prompt": "Find whether the repository contains a circular import.",
|
|
575
|
+
"required_tools": ["cycles"],
|
|
576
|
+
"surface": "graph",
|
|
577
|
+
"variant": "near-miss"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"assertions": [
|
|
581
|
+
"Uses search for unknown-name discovery.",
|
|
582
|
+
"Uses direct MCP tool search; never invents a proxy.",
|
|
583
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
584
|
+
],
|
|
585
|
+
"category": "positive",
|
|
586
|
+
"expected_output": "Routes the request to search with the arguments and safety checks described by the skill.",
|
|
587
|
+
"files": [],
|
|
588
|
+
"forbidden_tools": [],
|
|
589
|
+
"id": 37,
|
|
590
|
+
"prompt": "Find code related to payment retries when no symbol is known.",
|
|
591
|
+
"required_tools": ["search"],
|
|
592
|
+
"surface": "search",
|
|
593
|
+
"variant": "primary"
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"assertions": [
|
|
597
|
+
"Exercises a distinct search argument or recovery variant.",
|
|
598
|
+
"Uses schema-valid arguments for search.",
|
|
599
|
+
"Reports relevant verification."
|
|
600
|
+
],
|
|
601
|
+
"category": "variant",
|
|
602
|
+
"expected_output": "Uses search with the relevant option or recovery variant, then verifies the result.",
|
|
603
|
+
"files": [],
|
|
604
|
+
"forbidden_tools": [],
|
|
605
|
+
"id": 38,
|
|
606
|
+
"prompt": "Search only TypeScript/TSX for an exact symbol and return JSON.",
|
|
607
|
+
"required_tools": ["search"],
|
|
608
|
+
"surface": "search",
|
|
609
|
+
"variant": "option-variant"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"assertions": [
|
|
613
|
+
"Does not call search for the near-miss.",
|
|
614
|
+
"Selects the semantically correct alternative show.",
|
|
615
|
+
"Avoids direct filesystem or shell mutation."
|
|
616
|
+
],
|
|
617
|
+
"category": "negative",
|
|
618
|
+
"expected_output": "Does not route this near-miss to search; selects show.",
|
|
619
|
+
"files": [],
|
|
620
|
+
"forbidden_tools": ["search"],
|
|
621
|
+
"id": 39,
|
|
622
|
+
"prompt": "Show the exact body of a known symbol in a known file.",
|
|
623
|
+
"required_tools": ["show"],
|
|
624
|
+
"surface": "search",
|
|
625
|
+
"variant": "near-miss"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"assertions": [
|
|
629
|
+
"Uses find_related for file-line similarity.",
|
|
630
|
+
"Uses direct MCP tool find_related; never invents a proxy.",
|
|
631
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
632
|
+
],
|
|
633
|
+
"category": "positive",
|
|
634
|
+
"expected_output": "Routes the request to find_related with the arguments and safety checks described by the skill.",
|
|
635
|
+
"files": [],
|
|
636
|
+
"forbidden_tools": [],
|
|
637
|
+
"id": 40,
|
|
638
|
+
"prompt": "Find chunks related to src/server.ts line 42.",
|
|
639
|
+
"required_tools": ["find_related"],
|
|
640
|
+
"surface": "find_related",
|
|
641
|
+
"variant": "primary"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"assertions": [
|
|
645
|
+
"Exercises a distinct find_related argument or recovery variant.",
|
|
646
|
+
"Uses schema-valid arguments for find_related.",
|
|
647
|
+
"Reports relevant verification."
|
|
648
|
+
],
|
|
649
|
+
"category": "variant",
|
|
650
|
+
"expected_output": "Uses find_related with the relevant option or recovery variant, then verifies the result.",
|
|
651
|
+
"files": [],
|
|
652
|
+
"forbidden_tools": [],
|
|
653
|
+
"id": 41,
|
|
654
|
+
"prompt": "Find the top three related chunks with an explicit root and result limit.",
|
|
655
|
+
"required_tools": ["find_related"],
|
|
656
|
+
"surface": "find_related",
|
|
657
|
+
"variant": "option-variant"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"assertions": [
|
|
661
|
+
"Does not call find_related for the near-miss.",
|
|
662
|
+
"Selects the semantically correct alternative search.",
|
|
663
|
+
"Avoids direct filesystem or shell mutation."
|
|
664
|
+
],
|
|
665
|
+
"category": "negative",
|
|
666
|
+
"expected_output": "Does not route this near-miss to find_related; selects search.",
|
|
667
|
+
"files": [],
|
|
668
|
+
"forbidden_tools": ["find_related"],
|
|
669
|
+
"id": 42,
|
|
670
|
+
"prompt": "Search the repository for the phrase database timeout.",
|
|
671
|
+
"required_tools": ["search"],
|
|
672
|
+
"surface": "find_related",
|
|
673
|
+
"variant": "near-miss"
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"assertions": [
|
|
677
|
+
"Uses index for index lifecycle work.",
|
|
678
|
+
"Uses direct MCP tool index; never invents a proxy.",
|
|
679
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
680
|
+
],
|
|
681
|
+
"category": "positive",
|
|
682
|
+
"expected_output": "Routes the request to index with the arguments and safety checks described by the skill.",
|
|
683
|
+
"files": [],
|
|
684
|
+
"forbidden_tools": [],
|
|
685
|
+
"id": 43,
|
|
686
|
+
"prompt": "Build the repository search index before discovery.",
|
|
687
|
+
"required_tools": ["index"],
|
|
688
|
+
"surface": "index",
|
|
689
|
+
"variant": "primary"
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"assertions": [
|
|
693
|
+
"Exercises a distinct index argument or recovery variant.",
|
|
694
|
+
"Uses schema-valid arguments for index.",
|
|
695
|
+
"Reports relevant verification."
|
|
696
|
+
],
|
|
697
|
+
"category": "variant",
|
|
698
|
+
"expected_output": "Uses index with the relevant option or recovery variant, then verifies the result.",
|
|
699
|
+
"files": [],
|
|
700
|
+
"forbidden_tools": [],
|
|
701
|
+
"id": 44,
|
|
702
|
+
"prompt": "Report index statistics without changing source files.",
|
|
703
|
+
"required_tools": ["index"],
|
|
704
|
+
"surface": "index",
|
|
705
|
+
"variant": "option-variant"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"assertions": [
|
|
709
|
+
"Does not call index for the near-miss.",
|
|
710
|
+
"Selects the semantically correct alternative search.",
|
|
711
|
+
"Avoids direct filesystem or shell mutation."
|
|
712
|
+
],
|
|
713
|
+
"category": "negative",
|
|
714
|
+
"expected_output": "Does not route this near-miss to index; selects search.",
|
|
715
|
+
"files": [],
|
|
716
|
+
"forbidden_tools": ["index"],
|
|
717
|
+
"id": 45,
|
|
718
|
+
"prompt": "Search the indexed repository for PaymentService.",
|
|
719
|
+
"required_tools": ["search"],
|
|
720
|
+
"surface": "index",
|
|
721
|
+
"variant": "near-miss"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"assertions": [
|
|
725
|
+
"Uses callers for reverse call traversal.",
|
|
726
|
+
"Uses direct MCP tool callers; never invents a proxy.",
|
|
727
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
728
|
+
],
|
|
729
|
+
"category": "positive",
|
|
730
|
+
"expected_output": "Routes the request to callers with the arguments and safety checks described by the skill.",
|
|
731
|
+
"files": [],
|
|
732
|
+
"forbidden_tools": [],
|
|
733
|
+
"id": 46,
|
|
734
|
+
"prompt": "Find every caller of PaymentService.save.",
|
|
735
|
+
"required_tools": ["callers"],
|
|
736
|
+
"surface": "callers",
|
|
737
|
+
"variant": "primary"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"assertions": [
|
|
741
|
+
"Exercises a distinct callers argument or recovery variant.",
|
|
742
|
+
"Uses schema-valid arguments for callers.",
|
|
743
|
+
"Reports relevant verification."
|
|
744
|
+
],
|
|
745
|
+
"category": "variant",
|
|
746
|
+
"expected_output": "Uses callers with the relevant option or recovery variant, then verifies the result.",
|
|
747
|
+
"files": [],
|
|
748
|
+
"forbidden_tools": [],
|
|
749
|
+
"id": 47,
|
|
750
|
+
"prompt": "Find callers to depth three with a result limit and ambiguity filtering.",
|
|
751
|
+
"required_tools": ["callers"],
|
|
752
|
+
"surface": "callers",
|
|
753
|
+
"variant": "option-variant"
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"assertions": [
|
|
757
|
+
"Does not call callers for the near-miss.",
|
|
758
|
+
"Selects the semantically correct alternative callees.",
|
|
759
|
+
"Avoids direct filesystem or shell mutation."
|
|
760
|
+
],
|
|
761
|
+
"category": "negative",
|
|
762
|
+
"expected_output": "Does not route this near-miss to callers; selects callees.",
|
|
763
|
+
"files": [],
|
|
764
|
+
"forbidden_tools": ["callers"],
|
|
765
|
+
"id": 48,
|
|
766
|
+
"prompt": "List the symbols called by PaymentService.save.",
|
|
767
|
+
"required_tools": ["callees"],
|
|
768
|
+
"surface": "callers",
|
|
769
|
+
"variant": "near-miss"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"assertions": [
|
|
773
|
+
"Uses callees for forward call traversal.",
|
|
774
|
+
"Uses direct MCP tool callees; never invents a proxy.",
|
|
775
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
776
|
+
],
|
|
777
|
+
"category": "positive",
|
|
778
|
+
"expected_output": "Routes the request to callees with the arguments and safety checks described by the skill.",
|
|
779
|
+
"files": [],
|
|
780
|
+
"forbidden_tools": [],
|
|
781
|
+
"id": 49,
|
|
782
|
+
"prompt": "List what handleRequest calls directly and transitively.",
|
|
783
|
+
"required_tools": ["callees"],
|
|
784
|
+
"surface": "callees",
|
|
785
|
+
"variant": "primary"
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
"assertions": [
|
|
789
|
+
"Exercises a distinct callees argument or recovery variant.",
|
|
790
|
+
"Uses schema-valid arguments for callees.",
|
|
791
|
+
"Reports relevant verification."
|
|
792
|
+
],
|
|
793
|
+
"category": "variant",
|
|
794
|
+
"expected_output": "Uses callees with the relevant option or recovery variant, then verifies the result.",
|
|
795
|
+
"files": [],
|
|
796
|
+
"forbidden_tools": [],
|
|
797
|
+
"id": 50,
|
|
798
|
+
"prompt": "List only internal callees to depth two in JSON.",
|
|
799
|
+
"required_tools": ["callees"],
|
|
800
|
+
"surface": "callees",
|
|
801
|
+
"variant": "option-variant"
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"assertions": [
|
|
805
|
+
"Does not call callees for the near-miss.",
|
|
806
|
+
"Selects the semantically correct alternative trace.",
|
|
807
|
+
"Avoids direct filesystem or shell mutation."
|
|
808
|
+
],
|
|
809
|
+
"category": "negative",
|
|
810
|
+
"expected_output": "Does not route this near-miss to callees; selects trace.",
|
|
811
|
+
"files": [],
|
|
812
|
+
"forbidden_tools": ["callees"],
|
|
813
|
+
"id": 51,
|
|
814
|
+
"prompt": "Trace the path from handleRequest to writeResponse.",
|
|
815
|
+
"required_tools": ["trace"],
|
|
816
|
+
"surface": "callees",
|
|
817
|
+
"variant": "near-miss"
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"assertions": [
|
|
821
|
+
"Uses trace for endpoint-to-endpoint flow.",
|
|
822
|
+
"Uses direct MCP tool trace; never invents a proxy.",
|
|
823
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
824
|
+
],
|
|
825
|
+
"category": "positive",
|
|
826
|
+
"expected_output": "Routes the request to trace with the arguments and safety checks described by the skill.",
|
|
827
|
+
"files": [],
|
|
828
|
+
"forbidden_tools": [],
|
|
829
|
+
"id": 52,
|
|
830
|
+
"prompt": "Trace how requestHandler reaches writeToDatabase.",
|
|
831
|
+
"required_tools": ["trace"],
|
|
832
|
+
"surface": "trace",
|
|
833
|
+
"variant": "primary"
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"assertions": [
|
|
837
|
+
"Exercises a distinct trace argument or recovery variant.",
|
|
838
|
+
"Uses schema-valid arguments for trace.",
|
|
839
|
+
"Reports relevant verification."
|
|
840
|
+
],
|
|
841
|
+
"category": "variant",
|
|
842
|
+
"expected_output": "Uses trace with the relevant option or recovery variant, then verifies the result.",
|
|
843
|
+
"files": [],
|
|
844
|
+
"forbidden_tools": [],
|
|
845
|
+
"id": 53,
|
|
846
|
+
"prompt": "Trace between two symbols with a hop limit and rebuilt graph.",
|
|
847
|
+
"required_tools": ["trace"],
|
|
848
|
+
"surface": "trace",
|
|
849
|
+
"variant": "option-variant"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"assertions": [
|
|
853
|
+
"Does not call trace for the near-miss.",
|
|
854
|
+
"Selects the semantically correct alternative callers.",
|
|
855
|
+
"Avoids direct filesystem or shell mutation."
|
|
856
|
+
],
|
|
857
|
+
"category": "negative",
|
|
858
|
+
"expected_output": "Does not route this near-miss to trace; selects callers.",
|
|
859
|
+
"files": [],
|
|
860
|
+
"forbidden_tools": ["trace"],
|
|
861
|
+
"id": 54,
|
|
862
|
+
"prompt": "Find all callers of writeToDatabase without specifying a source.",
|
|
863
|
+
"required_tools": ["callers"],
|
|
864
|
+
"surface": "trace",
|
|
865
|
+
"variant": "near-miss"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"assertions": [
|
|
869
|
+
"Uses impact for aggregate blast-radius analysis.",
|
|
870
|
+
"Uses direct MCP tool impact; never invents a proxy.",
|
|
871
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
872
|
+
],
|
|
873
|
+
"category": "positive",
|
|
874
|
+
"expected_output": "Routes the request to impact with the arguments and safety checks described by the skill.",
|
|
875
|
+
"files": [],
|
|
876
|
+
"forbidden_tools": [],
|
|
877
|
+
"id": 55,
|
|
878
|
+
"prompt": "Show the full blast radius of changing PaymentService.save.",
|
|
879
|
+
"required_tools": ["impact"],
|
|
880
|
+
"surface": "impact",
|
|
881
|
+
"variant": "primary"
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"assertions": [
|
|
885
|
+
"Exercises a distinct impact argument or recovery variant.",
|
|
886
|
+
"Uses schema-valid arguments for impact.",
|
|
887
|
+
"Reports relevant verification."
|
|
888
|
+
],
|
|
889
|
+
"category": "variant",
|
|
890
|
+
"expected_output": "Uses impact with the relevant option or recovery variant, then verifies the result.",
|
|
891
|
+
"files": [],
|
|
892
|
+
"forbidden_tools": [],
|
|
893
|
+
"id": 56,
|
|
894
|
+
"prompt": "Show only affected tests using a schema-valid impact mode.",
|
|
895
|
+
"required_tools": ["impact"],
|
|
896
|
+
"surface": "impact",
|
|
897
|
+
"variant": "option-variant"
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"assertions": [
|
|
901
|
+
"Does not call impact for the near-miss.",
|
|
902
|
+
"Selects the semantically correct alternative context.",
|
|
903
|
+
"Avoids direct filesystem or shell mutation."
|
|
904
|
+
],
|
|
905
|
+
"category": "negative",
|
|
906
|
+
"expected_output": "Does not route this near-miss to impact; selects context.",
|
|
907
|
+
"files": [],
|
|
908
|
+
"forbidden_tools": ["impact"],
|
|
909
|
+
"id": 57,
|
|
910
|
+
"prompt": "Build symbol context and direct callees for PaymentService.save.",
|
|
911
|
+
"required_tools": ["context"],
|
|
912
|
+
"surface": "impact",
|
|
913
|
+
"variant": "near-miss"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"assertions": [
|
|
917
|
+
"Uses context for a connected symbol packet.",
|
|
918
|
+
"Uses direct MCP tool context; never invents a proxy.",
|
|
919
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
920
|
+
],
|
|
921
|
+
"category": "positive",
|
|
922
|
+
"expected_output": "Routes the request to context with the arguments and safety checks described by the skill.",
|
|
923
|
+
"files": [],
|
|
924
|
+
"forbidden_tools": [],
|
|
925
|
+
"id": 58,
|
|
926
|
+
"prompt": "Build a bounded context packet for handleRequest with callers and direct callees.",
|
|
927
|
+
"required_tools": ["context"],
|
|
928
|
+
"surface": "context",
|
|
929
|
+
"variant": "primary"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"assertions": [
|
|
933
|
+
"Exercises a distinct context argument or recovery variant.",
|
|
934
|
+
"Uses schema-valid arguments for context.",
|
|
935
|
+
"Reports relevant verification."
|
|
936
|
+
],
|
|
937
|
+
"category": "variant",
|
|
938
|
+
"expected_output": "Uses context with the relevant option or recovery variant, then verifies the result.",
|
|
939
|
+
"files": [],
|
|
940
|
+
"forbidden_tools": [],
|
|
941
|
+
"id": 59,
|
|
942
|
+
"prompt": "Build compact JSON context with a 500-token budget.",
|
|
943
|
+
"required_tools": ["context"],
|
|
944
|
+
"surface": "context",
|
|
945
|
+
"variant": "option-variant"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"assertions": [
|
|
949
|
+
"Does not call context for the near-miss.",
|
|
950
|
+
"Selects the semantically correct alternative show.",
|
|
951
|
+
"Avoids direct filesystem or shell mutation."
|
|
952
|
+
],
|
|
953
|
+
"category": "negative",
|
|
954
|
+
"expected_output": "Does not route this near-miss to context; selects show.",
|
|
955
|
+
"files": [],
|
|
956
|
+
"forbidden_tools": ["context"],
|
|
957
|
+
"id": 60,
|
|
958
|
+
"prompt": "Show only the complete source body of handleRequest.",
|
|
959
|
+
"required_tools": ["show"],
|
|
960
|
+
"surface": "context",
|
|
961
|
+
"variant": "near-miss"
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"assertions": [
|
|
965
|
+
"Uses run for AST search and preview/write sequencing.",
|
|
966
|
+
"Uses direct MCP tool run; never invents a proxy.",
|
|
967
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
968
|
+
],
|
|
969
|
+
"category": "positive",
|
|
970
|
+
"expected_output": "Routes the request to run with the arguments and safety checks described by the skill.",
|
|
971
|
+
"files": [],
|
|
972
|
+
"forbidden_tools": [],
|
|
973
|
+
"id": 61,
|
|
974
|
+
"prompt": "Find TypeScript calls matching client.request($$ARGS) without changing files.",
|
|
975
|
+
"required_tools": ["run"],
|
|
976
|
+
"surface": "run",
|
|
977
|
+
"variant": "primary"
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"assertions": [
|
|
981
|
+
"Exercises a distinct run argument or recovery variant.",
|
|
982
|
+
"Uses schema-valid arguments for run.",
|
|
983
|
+
"Reports relevant verification."
|
|
984
|
+
],
|
|
985
|
+
"category": "variant",
|
|
986
|
+
"expected_output": "Uses run with the relevant option or recovery variant, then verifies the result.",
|
|
987
|
+
"files": [],
|
|
988
|
+
"forbidden_tools": [],
|
|
989
|
+
"id": 62,
|
|
990
|
+
"prompt": "Preview a bounded structural rewrite, inspect the diff, then run write=true.",
|
|
991
|
+
"required_tools": ["run"],
|
|
992
|
+
"surface": "run",
|
|
993
|
+
"variant": "option-variant"
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"assertions": [
|
|
997
|
+
"Does not call run for the near-miss.",
|
|
998
|
+
"Selects the semantically correct alternative file_patch.",
|
|
999
|
+
"Avoids direct filesystem or shell mutation."
|
|
1000
|
+
],
|
|
1001
|
+
"category": "negative",
|
|
1002
|
+
"expected_output": "Does not route this near-miss to run; selects file_patch.",
|
|
1003
|
+
"files": [],
|
|
1004
|
+
"forbidden_tools": ["run"],
|
|
1005
|
+
"id": 63,
|
|
1006
|
+
"prompt": "Change one uniquely matched TypeScript call through the SHA-guarded single-file contract.",
|
|
1007
|
+
"required_tools": ["file_patch"],
|
|
1008
|
+
"surface": "run",
|
|
1009
|
+
"variant": "near-miss"
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"assertions": [
|
|
1013
|
+
"Uses squeeze only for repetitive logs/text.",
|
|
1014
|
+
"Uses direct MCP tool squeeze; never invents a proxy.",
|
|
1015
|
+
"Preserves no-direct-editor and no-shell-mutation rules."
|
|
1016
|
+
],
|
|
1017
|
+
"category": "positive",
|
|
1018
|
+
"expected_output": "Routes the request to squeeze with the arguments and safety checks described by the skill.",
|
|
1019
|
+
"files": [],
|
|
1020
|
+
"forbidden_tools": [],
|
|
1021
|
+
"id": 64,
|
|
1022
|
+
"prompt": "Compress repetitive application logs from lines 10 through 80.",
|
|
1023
|
+
"required_tools": ["squeeze"],
|
|
1024
|
+
"surface": "squeeze",
|
|
1025
|
+
"variant": "primary"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"assertions": [
|
|
1029
|
+
"Exercises a distinct squeeze argument or recovery variant.",
|
|
1030
|
+
"Uses schema-valid arguments for squeeze.",
|
|
1031
|
+
"Reports relevant verification."
|
|
1032
|
+
],
|
|
1033
|
+
"category": "variant",
|
|
1034
|
+
"expected_output": "Uses squeeze with the relevant option or recovery variant, then verifies the result.",
|
|
1035
|
+
"files": [],
|
|
1036
|
+
"forbidden_tools": [],
|
|
1037
|
+
"id": 65,
|
|
1038
|
+
"prompt": "Read a selected log slice without compression using raw output.",
|
|
1039
|
+
"required_tools": ["squeeze"],
|
|
1040
|
+
"surface": "squeeze",
|
|
1041
|
+
"variant": "option-variant"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"assertions": [
|
|
1045
|
+
"Does not call squeeze for the near-miss.",
|
|
1046
|
+
"Selects the semantically correct alternative map.",
|
|
1047
|
+
"Avoids direct filesystem or shell mutation."
|
|
1048
|
+
],
|
|
1049
|
+
"category": "negative",
|
|
1050
|
+
"expected_output": "Does not route this near-miss to squeeze; selects map.",
|
|
1051
|
+
"files": [],
|
|
1052
|
+
"forbidden_tools": ["squeeze"],
|
|
1053
|
+
"id": 66,
|
|
1054
|
+
"prompt": "Analyze repeated function declarations in source code.",
|
|
1055
|
+
"required_tools": ["map"],
|
|
1056
|
+
"surface": "squeeze",
|
|
1057
|
+
"variant": "near-miss"
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
"assertions": [
|
|
1061
|
+
"Confirms all file-boundary tools are callable.",
|
|
1062
|
+
"Names direct intelligence tools rather than a proxy.",
|
|
1063
|
+
"Starts exploration with the matching tool."
|
|
1064
|
+
],
|
|
1065
|
+
"category": "positive",
|
|
1066
|
+
"expected_output": "Names file_hash, bounded file_read, file_write, file_patch, and direct ast-bro tools, then starts with the matching route.",
|
|
1067
|
+
"files": [],
|
|
1068
|
+
"forbidden_tools": [],
|
|
1069
|
+
"id": 67,
|
|
1070
|
+
"prompt": "The ast-mcp skill is loaded for an unfamiliar repository. Identify the callable file-boundary and direct intelligence tools, then choose the first safe routing step.",
|
|
1071
|
+
"required_tools": [
|
|
1072
|
+
"file_hash",
|
|
1073
|
+
"file_read",
|
|
1074
|
+
"file_write",
|
|
1075
|
+
"file_patch",
|
|
1076
|
+
"digest",
|
|
1077
|
+
"map",
|
|
1078
|
+
"show"
|
|
1079
|
+
],
|
|
1080
|
+
"surface": "skill",
|
|
1081
|
+
"variant": "availability-routing"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"assertions": [
|
|
1085
|
+
"Does not use another editor while MCP is unavailable.",
|
|
1086
|
+
"Uses checker, scoped installer, and reconnect steps.",
|
|
1087
|
+
"Requires authorization before downloading unavailable packages."
|
|
1088
|
+
],
|
|
1089
|
+
"category": "variant",
|
|
1090
|
+
"expected_output": "Runs the read-only checker, uses the scoped installer, requests authorization before unavailable downloads, reconnects, and verifies direct tools.",
|
|
1091
|
+
"files": [],
|
|
1092
|
+
"forbidden_tools": [
|
|
1093
|
+
"file_hash",
|
|
1094
|
+
"file_read",
|
|
1095
|
+
"file_write",
|
|
1096
|
+
"file_patch",
|
|
1097
|
+
"map",
|
|
1098
|
+
"digest",
|
|
1099
|
+
"show",
|
|
1100
|
+
"implements",
|
|
1101
|
+
"surface",
|
|
1102
|
+
"deps",
|
|
1103
|
+
"reverse_deps",
|
|
1104
|
+
"cycles",
|
|
1105
|
+
"graph",
|
|
1106
|
+
"search",
|
|
1107
|
+
"find_related",
|
|
1108
|
+
"index",
|
|
1109
|
+
"callers",
|
|
1110
|
+
"callees",
|
|
1111
|
+
"trace",
|
|
1112
|
+
"impact",
|
|
1113
|
+
"context",
|
|
1114
|
+
"run",
|
|
1115
|
+
"squeeze"
|
|
1116
|
+
],
|
|
1117
|
+
"id": 68,
|
|
1118
|
+
"prompt": "The skill is loaded but file_hash, file_read, and direct intelligence tools are missing for local Claude Code and Copilot. Recover safely and explain verification.",
|
|
1119
|
+
"required_tools": [],
|
|
1120
|
+
"surface": "skill",
|
|
1121
|
+
"variant": "installation-recovery"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"assertions": [
|
|
1125
|
+
"Recognizes unfamiliar exploration as an ast-mcp trigger.",
|
|
1126
|
+
"Uses digest or map first.",
|
|
1127
|
+
"Uses impact before changing a shared symbol."
|
|
1128
|
+
],
|
|
1129
|
+
"category": "variant",
|
|
1130
|
+
"expected_output": "Triggers ast-mcp, routes orientation to digest/map, and uses impact before the shared change.",
|
|
1131
|
+
"files": [],
|
|
1132
|
+
"forbidden_tools": [],
|
|
1133
|
+
"id": 69,
|
|
1134
|
+
"prompt": "Map an unfamiliar repository before changing a public API and show the blast radius of the planned change.",
|
|
1135
|
+
"required_tools": ["digest", "map", "impact"],
|
|
1136
|
+
"surface": "skill",
|
|
1137
|
+
"variant": "trigger-positive"
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"assertions": [
|
|
1141
|
+
"Does not trigger repository tooling.",
|
|
1142
|
+
"Does not call file or intelligence tools.",
|
|
1143
|
+
"Answers from supplied text only."
|
|
1144
|
+
],
|
|
1145
|
+
"category": "negative",
|
|
1146
|
+
"expected_output": "Does not trigger ast-mcp or call any MCP surface.",
|
|
1147
|
+
"files": [],
|
|
1148
|
+
"forbidden_tools": [
|
|
1149
|
+
"file_hash",
|
|
1150
|
+
"file_read",
|
|
1151
|
+
"file_write",
|
|
1152
|
+
"file_patch",
|
|
1153
|
+
"map",
|
|
1154
|
+
"digest",
|
|
1155
|
+
"show",
|
|
1156
|
+
"implements",
|
|
1157
|
+
"surface",
|
|
1158
|
+
"deps",
|
|
1159
|
+
"reverse_deps",
|
|
1160
|
+
"cycles",
|
|
1161
|
+
"graph",
|
|
1162
|
+
"search",
|
|
1163
|
+
"find_related",
|
|
1164
|
+
"index",
|
|
1165
|
+
"callers",
|
|
1166
|
+
"callees",
|
|
1167
|
+
"trace",
|
|
1168
|
+
"impact",
|
|
1169
|
+
"context",
|
|
1170
|
+
"run",
|
|
1171
|
+
"squeeze"
|
|
1172
|
+
],
|
|
1173
|
+
"id": 70,
|
|
1174
|
+
"prompt": "Summarize this pasted paragraph in Spanish; do not open a repository, edit files, or use code intelligence.",
|
|
1175
|
+
"required_tools": [],
|
|
1176
|
+
"surface": "skill",
|
|
1177
|
+
"variant": "trigger-negative"
|
|
1178
|
+
}
|
|
1179
|
+
],
|
|
1180
|
+
"mcp_tools": [
|
|
1181
|
+
"file_chattr",
|
|
1182
|
+
"file_delete",
|
|
1183
|
+
"file_hash",
|
|
1184
|
+
"file_patch",
|
|
1185
|
+
"file_read",
|
|
1186
|
+
"file_write",
|
|
1187
|
+
"map",
|
|
1188
|
+
"digest",
|
|
1189
|
+
"show",
|
|
1190
|
+
"implements",
|
|
1191
|
+
"surface",
|
|
1192
|
+
"deps",
|
|
1193
|
+
"reverse_deps",
|
|
1194
|
+
"cycles",
|
|
1195
|
+
"graph",
|
|
1196
|
+
"search",
|
|
1197
|
+
"find_related",
|
|
1198
|
+
"index",
|
|
1199
|
+
"callers",
|
|
1200
|
+
"callees",
|
|
1201
|
+
"trace",
|
|
1202
|
+
"impact",
|
|
1203
|
+
"context",
|
|
1204
|
+
"run",
|
|
1205
|
+
"squeeze"
|
|
1206
|
+
],
|
|
1207
|
+
"skill_name": "ast-mcp",
|
|
1208
|
+
"special_surfaces": ["skill", "transport"]
|
|
1209
|
+
}
|