paperlint 16.8.0 → 17.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.
Files changed (300) hide show
  1. package/CLAUDE.md +10 -2
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +17 -14
  4. package/dist/adapters/latex/abstract.d.ts +7 -1
  5. package/dist/adapters/latex/abstract.d.ts.map +1 -1
  6. package/dist/adapters/latex/abstract.js +19 -4
  7. package/dist/adapters/latex/abstract.js.map +1 -1
  8. package/dist/adapters/latex/captions.d.ts +6 -5
  9. package/dist/adapters/latex/captions.d.ts.map +1 -1
  10. package/dist/adapters/latex/captions.js +14 -30
  11. package/dist/adapters/latex/captions.js.map +1 -1
  12. package/dist/adapters/latex/index.d.ts +1 -1
  13. package/dist/adapters/latex/index.d.ts.map +1 -1
  14. package/dist/adapters/latex/index.js +5 -2
  15. package/dist/adapters/latex/index.js.map +1 -1
  16. package/dist/adapters/latex/prose.d.ts +6 -0
  17. package/dist/adapters/latex/prose.d.ts.map +1 -1
  18. package/dist/adapters/latex/prose.js +18 -12
  19. package/dist/adapters/latex/prose.js.map +1 -1
  20. package/dist/cli.d.ts +6 -1
  21. package/dist/cli.d.ts.map +1 -1
  22. package/dist/cli.js +16 -8
  23. package/dist/cli.js.map +1 -1
  24. package/dist/domain/register.d.ts +23 -1
  25. package/dist/domain/register.d.ts.map +1 -1
  26. package/dist/domain/register.js +37 -14
  27. package/dist/domain/register.js.map +1 -1
  28. package/dist/domain/term-definitions.d.ts +48 -0
  29. package/dist/domain/term-definitions.d.ts.map +1 -0
  30. package/dist/domain/term-definitions.js +228 -0
  31. package/dist/domain/term-definitions.js.map +1 -0
  32. package/dist/domain/tex-document.d.ts +11 -0
  33. package/dist/domain/tex-document.d.ts.map +1 -1
  34. package/dist/domain/tex-document.js.map +1 -1
  35. package/dist/eslint-rules/review-frontmatter.js +5 -5
  36. package/dist/eslint-rules/review-frontmatter.schema.json +15 -8
  37. package/dist/eslint-rules/sibling-frontmatter.d.ts.map +1 -1
  38. package/dist/folder-venue-rule.d.ts +1 -1
  39. package/dist/folder-venue-rule.d.ts.map +1 -1
  40. package/dist/folder-venue-rule.js +4 -2
  41. package/dist/folder-venue-rule.js.map +1 -1
  42. package/dist/hooks-notice.d.ts +3 -3
  43. package/dist/hooks-notice.d.ts.map +1 -1
  44. package/dist/hooks-notice.js +41 -8
  45. package/dist/hooks-notice.js.map +1 -1
  46. package/dist/link-skills.d.ts +5 -0
  47. package/dist/link-skills.d.ts.map +1 -1
  48. package/dist/link-skills.js +7 -0
  49. package/dist/link-skills.js.map +1 -1
  50. package/dist/ports/latex.d.ts +11 -1
  51. package/dist/ports/latex.d.ts.map +1 -1
  52. package/dist/presets.d.ts +21 -2
  53. package/dist/presets.d.ts.map +1 -1
  54. package/dist/presets.js +66 -17
  55. package/dist/presets.js.map +1 -1
  56. package/dist/readability.d.ts +12 -2
  57. package/dist/readability.d.ts.map +1 -1
  58. package/dist/readability.js +76 -3
  59. package/dist/readability.js.map +1 -1
  60. package/dist/register-bands.d.ts +16 -5
  61. package/dist/register-bands.d.ts.map +1 -1
  62. package/dist/register-bands.js +56 -17
  63. package/dist/register-bands.js.map +1 -1
  64. package/dist/skills/argument-arc/scripts/headings-core.d.ts +12 -0
  65. package/dist/skills/argument-arc/scripts/headings.d.ts +2 -0
  66. package/dist/skills/cold-read-diff/scripts/cold-read-core.d.ts +12 -0
  67. package/dist/skills/cold-read-diff/scripts/readers.d.ts +2 -1
  68. package/dist/term-definition-rules.d.ts +26 -0
  69. package/dist/term-definition-rules.d.ts.map +1 -0
  70. package/dist/term-definition-rules.js +137 -0
  71. package/dist/term-definition-rules.js.map +1 -0
  72. package/dist/tex-paper.d.ts +6 -0
  73. package/dist/tex-paper.d.ts.map +1 -1
  74. package/dist/tex-paper.js +10 -0
  75. package/dist/tex-paper.js.map +1 -1
  76. package/dist/tex-requirements.d.ts +2 -0
  77. package/dist/tex-requirements.d.ts.map +1 -1
  78. package/dist/tex-requirements.js +9 -0
  79. package/dist/tex-requirements.js.map +1 -1
  80. package/dist/tex-venue-rules.d.ts +3 -2
  81. package/dist/tex-venue-rules.d.ts.map +1 -1
  82. package/dist/tex-venue-rules.js +3 -2
  83. package/dist/tex-venue-rules.js.map +1 -1
  84. package/docs/configuration.md +2 -2
  85. package/{skills/paper-pipeline/references → docs/design}/acceptance-gate.md +50 -53
  86. package/docs/design/paper-pipeline-history.md +217 -0
  87. package/docs/design/skill-provenance.md +132 -0
  88. package/docs/design/study-modes.md +1 -1
  89. package/docs/design/verify-citations-history.md +135 -0
  90. package/docs/design/writing-exemplars.md +19 -0
  91. package/docs/install.md +7 -4
  92. package/docs/layout.md +5 -4
  93. package/docs/optional-rules.md +4 -0
  94. package/docs/osf-artifact.md +54 -0
  95. package/docs/pipeline.md +171 -0
  96. package/docs/render.md +82 -0
  97. package/docs/rules/paper/folder-venue-leftover.md +10 -7
  98. package/docs/rules/tex/contrast-frames.md +1 -2
  99. package/docs/rules/tex/max-caption-words.md +82 -0
  100. package/docs/rules/tex/max-paragraph-words.md +2 -2
  101. package/docs/rules/tex/negated-sentences.md +96 -0
  102. package/docs/rules/tex/term-before-definition.md +103 -0
  103. package/docs/rules/tex/term-defined-twice.md +62 -0
  104. package/docs/rules/tex/venue-leftover.md +13 -1
  105. package/docs/rules.md +23 -18
  106. package/docs/skills.md +16 -21
  107. package/docs/submission.md +14 -0
  108. package/docs/texlive-install-decision.md +1 -1
  109. package/docs/toolchain.md +11 -11
  110. package/eslint-rules/review-frontmatter.schema.json +15 -8
  111. package/eslint-rules/review-frontmatter.test.mjs +8 -5
  112. package/eslint-rules/review-frontmatter.ts +5 -5
  113. package/eslint.config.mjs +1 -5
  114. package/hooks/paper-status-gates.sh +21 -4
  115. package/hooks/paper-status-gates.test.ts +51 -0
  116. package/lib/skill-checks.test.mjs +2 -6
  117. package/lib/skill-trigger-cases.mjs +12 -97
  118. package/lib/skill-trigger-cases.test.ts +0 -6
  119. package/package.json +3 -1
  120. package/presets/acm-sigconf.md +1 -1
  121. package/presets/agenticdev.jsonc +5 -2
  122. package/presets/agenticdev.md +4 -2
  123. package/presets/aidc.jsonc +14 -1
  124. package/presets/aidc.md +3 -2
  125. package/presets/aisec.jsonc +9 -3
  126. package/presets/aisec.md +4 -1
  127. package/presets/ase.jsonc +145 -0
  128. package/presets/ase.md +178 -0
  129. package/presets/ccs.jsonc +87 -0
  130. package/presets/ccs.md +184 -0
  131. package/presets/icse.jsonc +100 -0
  132. package/presets/icse.md +126 -0
  133. package/presets/ieee-conference.md +1 -1
  134. package/presets/sp.jsonc +152 -0
  135. package/presets/sp.md +160 -0
  136. package/presets/venue-profile.schema.json +22 -3
  137. package/scripts/harness-api.frozen.json +0 -4
  138. package/scripts/pipeline.ts +481 -0
  139. package/skills/CLAUDE.md +2 -2
  140. package/skills/CLAUDE.md.spec.ts +26 -1
  141. package/skills/analyze-sibling-paper/SKILL.md +2 -20
  142. package/skills/analyze-sibling-paper/SKILL.md.spec.ts +9 -19
  143. package/skills/argument-arc/SKILL.md +32 -18
  144. package/skills/argument-arc/SKILL.md.spec.ts +43 -17
  145. package/skills/argument-arc/scripts/headings-core.js +46 -0
  146. package/skills/argument-arc/scripts/headings-core.ts +65 -0
  147. package/skills/argument-arc/scripts/headings.js +15 -0
  148. package/skills/argument-arc/scripts/headings.test.ts +105 -0
  149. package/skills/argument-arc/scripts/headings.ts +20 -0
  150. package/skills/build-benchmark/SKILL.md +1 -12
  151. package/skills/build-benchmark/SKILL.md.spec.ts +15 -11
  152. package/skills/build-label-page/SKILL.md.spec.ts +11 -0
  153. package/skills/camera-ready/SKILL.md +1 -8
  154. package/skills/camera-ready/SKILL.md.spec.ts +8 -7
  155. package/skills/cold-read-diff/SKILL.md +36 -25
  156. package/skills/cold-read-diff/SKILL.md.spec.ts +44 -24
  157. package/skills/cold-read-diff/scripts/cold-read-core.js +63 -6
  158. package/skills/cold-read-diff/scripts/cold-read-core.ts +81 -6
  159. package/skills/cold-read-diff/scripts/cold-read.js +1 -1
  160. package/skills/cold-read-diff/scripts/cold-read.test.ts +66 -0
  161. package/skills/cold-read-diff/scripts/cold-read.ts +1 -1
  162. package/skills/cold-read-diff/scripts/readers.js +2 -1
  163. package/skills/cold-read-diff/scripts/readers.ts +2 -1
  164. package/skills/draft-paper/SKILL.md +16 -29
  165. package/skills/draft-paper/SKILL.md.spec.ts +27 -28
  166. package/skills/extend-paper/SKILL.md +7 -16
  167. package/skills/extend-paper/SKILL.md.spec.ts +18 -15
  168. package/skills/find-venue/SKILL.md +11 -24
  169. package/skills/find-venue/SKILL.md.spec.ts +19 -23
  170. package/skills/harden-paper/SKILL.md +62 -290
  171. package/skills/harden-paper/SKILL.md.spec.ts +82 -304
  172. package/skills/harden-paper/harden-paper.harness.mjs +1 -2
  173. package/skills/jobs.ts +25 -0
  174. package/skills/label-agent-runs/SKILL.md.spec.ts +10 -0
  175. package/skills/map-prior-work/SKILL.md +5 -4
  176. package/skills/map-prior-work/SKILL.md.spec.ts +13 -3
  177. package/skills/paper-pipeline/SKILL.md +80 -278
  178. package/skills/paper-pipeline/SKILL.md.spec.ts +130 -276
  179. package/skills/paper-pipeline/description-language.eval.mjs +0 -22
  180. package/skills/paper-pipeline/framing-vs-vocabulary.eval.mjs +0 -29
  181. package/skills/paper-pipeline/paper-pipeline.harness.mjs +0 -16
  182. package/skills/paper-pipeline/pipeline-firing.eval.mjs +7 -29
  183. package/skills/paper-pipeline/pipeline-language.eval.mjs +0 -52
  184. package/skills/paper-pipeline/references/artifact-checklist.md +6 -1
  185. package/skills/paper-pipeline/references/body-vs-appendix.md +3 -4
  186. package/skills/paper-pipeline/references/pipeline-status-template.md +8 -10
  187. package/skills/paper-pipeline/references/review-ratchet.md +4 -7
  188. package/skills/paper-pipeline/references/venue-bar.md +1 -2
  189. package/skills/paper-pipeline/references/writing-craft.md +21 -281
  190. package/skills/paper-status/SKILL.md +17 -20
  191. package/skills/paper-status/SKILL.md.spec.ts +23 -19
  192. package/skills/pc-panel-review/SKILL.md +66 -93
  193. package/skills/pc-panel-review/SKILL.md.spec.ts +75 -92
  194. package/skills/plan-paper-timeline/SKILL.md +7 -29
  195. package/skills/plan-paper-timeline/SKILL.md.spec.ts +16 -28
  196. package/skills/plan-paper-timeline/plan-paper-timeline.effects.harness.mjs +2 -2
  197. package/skills/render-paper/check-render.sh +2 -2
  198. package/skills/render-paper/render-paper.harness.mjs +4 -20
  199. package/skills/research-ideate/SKILL.md +15 -32
  200. package/skills/research-ideate/SKILL.md.spec.ts +25 -31
  201. package/skills/rewrite-unclear/SKILL.md +15 -14
  202. package/skills/rewrite-unclear/SKILL.md.spec.ts +24 -15
  203. package/skills/rewrite-unclear/rewrite-unclear.eval.ts +2 -3
  204. package/skills/run-agent-grid/SKILL.md +3 -3
  205. package/skills/run-agent-grid/SKILL.md.spec.ts +10 -2
  206. package/skills/study-accepted-papers/SKILL.md +5 -5
  207. package/skills/study-accepted-papers/SKILL.md.spec.ts +27 -4
  208. package/skills/submit-paper/SKILL.md +37 -31
  209. package/skills/submit-paper/SKILL.md.spec.ts +46 -30
  210. package/skills/submit-paper/check-deanon.sh +1 -1
  211. package/skills/tighten-paper/SKILL.md +43 -68
  212. package/skills/tighten-paper/SKILL.md.spec.ts +51 -67
  213. package/skills/verify-citations/SKILL.md +18 -112
  214. package/skills/verify-citations/SKILL.md.spec.ts +27 -114
  215. package/src/adapters/latex/abstract.test.ts +42 -0
  216. package/src/adapters/latex/abstract.ts +23 -6
  217. package/src/adapters/latex/captions.test.ts +36 -38
  218. package/src/adapters/latex/captions.ts +16 -33
  219. package/src/adapters/latex/index.test.ts +11 -0
  220. package/src/adapters/latex/index.ts +5 -2
  221. package/src/adapters/latex/prose.ts +23 -11
  222. package/src/cli.ts +26 -5
  223. package/src/domain/register.test.ts +65 -0
  224. package/src/domain/register.ts +72 -16
  225. package/src/domain/term-definitions.test.ts +240 -0
  226. package/src/domain/term-definitions.ts +329 -0
  227. package/src/domain/tex-document.ts +12 -0
  228. package/src/domain/venue-name.test.ts +4 -4
  229. package/src/folder-venue-rule.test.ts +23 -2
  230. package/src/folder-venue-rule.ts +8 -8
  231. package/src/hooks-notice.test.ts +127 -0
  232. package/src/hooks-notice.ts +50 -10
  233. package/src/link-skills.ts +9 -0
  234. package/src/new-paper.test.ts +2 -2
  235. package/src/paper-settings-commands.test.ts +1 -1
  236. package/src/ports/latex.ts +11 -0
  237. package/src/preset-card-rule.test.ts +4 -0
  238. package/src/presets.test.ts +141 -4
  239. package/src/presets.ts +113 -22
  240. package/src/readability.test.ts +92 -0
  241. package/src/readability.ts +113 -5
  242. package/src/register-bands.test.ts +81 -1
  243. package/src/register-bands.ts +88 -23
  244. package/src/rule-cases.test.ts +122 -2
  245. package/src/term-definition-rules.test.ts +150 -0
  246. package/src/term-definition-rules.ts +189 -0
  247. package/src/tex-paper.test.ts +18 -1
  248. package/src/tex-paper.ts +11 -0
  249. package/src/tex-requirements.ts +15 -0
  250. package/src/tex-venue-rules.test.ts +45 -1
  251. package/src/tex-venue-rules.ts +8 -3
  252. package/src/venue-rules.test.ts +2 -2
  253. package/templates/paper/PIPELINE-STATUS.md +19 -19
  254. package/dist/paper-prose.d.ts +0 -17
  255. package/dist/paper-prose.d.ts.map +0 -1
  256. package/dist/paper-prose.js +0 -46
  257. package/dist/paper-prose.js.map +0 -1
  258. package/skills/grade-paper-writing/SKILL.md +0 -494
  259. package/skills/grade-paper-writing/SKILL.md.spec.ts +0 -501
  260. package/skills/grade-paper-writing/__snapshots__/prose-lint.test.ts.snap +0 -84
  261. package/skills/grade-paper-writing/fixtures/control_gopen.txt +0 -1
  262. package/skills/grade-paper-writing/fixtures/control_human_paper.txt +0 -1
  263. package/skills/grade-paper-writing/fixtures/rewrite.txt +0 -1
  264. package/skills/grade-paper-writing/fixtures/specimen.txt +0 -1
  265. package/skills/grade-paper-writing/fixtures/structure-checks.md +0 -22
  266. package/skills/grade-paper-writing/grade-paper-writing.eval.mjs +0 -19
  267. package/skills/grade-paper-writing/grade-paper-writing.harness.mjs +0 -23
  268. package/skills/grade-paper-writing/prose-lint.mjs +0 -602
  269. package/skills/grade-paper-writing/prose-lint.test.ts +0 -413
  270. package/skills/osf-artifact-upload/SKILL.md +0 -58
  271. package/skills/osf-artifact-upload/SKILL.md.spec.ts +0 -65
  272. package/skills/osf-artifact-upload/osf-artifact-upload.eval.mjs +0 -22
  273. package/skills/osf-artifact-upload/osf-artifact-upload.harness.ts +0 -102
  274. package/skills/paper-adversarial-review/SKILL.md +0 -100
  275. package/skills/paper-adversarial-review/SKILL.md.spec.ts +0 -107
  276. package/skills/paper-adversarial-review/paper-adversarial-review.eval.mjs +0 -19
  277. package/skills/paper-adversarial-review/paper-adversarial-review.harness.mjs +0 -24
  278. package/skills/paper-pipeline/grade-paper-writing-ablation.eval.mjs +0 -1274
  279. package/skills/paper-pipeline/references/credit-criteria.md +0 -69
  280. package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/README.md +0 -35
  281. package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/run_retext.mjs +0 -24
  282. package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/sentences.txt +0 -11
  283. package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/test_sentences.py +0 -25
  284. package/skills/paper-pipeline/references/occupancy-2026-08-06-prose-checkers.md +0 -538
  285. package/skills/paper-pipeline/references/occupancy-2026-08-06-reproducible-tooling.md +0 -431
  286. package/skills/paper-pipeline/references/occupancy-2026-08-06-staleness-and-orchestration.md +0 -592
  287. package/skills/paper-pipeline/repro/2026-08-08-parent-replication.mjs +0 -92
  288. package/skills/render-paper/SKILL.md +0 -123
  289. package/skills/render-paper/SKILL.md.spec.ts +0 -130
  290. package/skills/render-paper/render-paper.eval.mjs +0 -19
  291. package/skills/submission-portal/SKILL.md +0 -129
  292. package/skills/submission-portal/SKILL.md.spec.ts +0 -134
  293. package/skills/submission-portal/submission-portal.eval.mjs +0 -15
  294. package/skills/submission-portal/submission-portal.test.ts +0 -12
  295. package/skills/sweep-design-space/SKILL.md +0 -232
  296. package/skills/sweep-design-space/SKILL.md.spec.ts +0 -248
  297. package/skills/sweep-design-space/sweep-design-space.eval.mjs +0 -19
  298. package/skills/sweep-design-space/sweep-design-space.harness.mjs +0 -23
  299. package/src/paper-prose.test.ts +0 -78
  300. package/src/paper-prose.ts +0 -67
@@ -1,15 +0,0 @@
1
- /**
2
- * submission-portal — the PAID tier: does this skill's description actually fire?
3
- *
4
- * The prompts live in `lib/skill-trigger-cases.mjs` beside every other skill's, so collisions with
5
- * `submit-paper` and `osf-artifact-upload` are visible in one table. Measures recall on its own
6
- * territory and precision against those siblings, against the real harness.
7
- *
8
- * ⚠️ NEVER RUN. Written 2026-10-03 with the skill; its rate is UNKNOWN, not assumed good.
9
- *
10
- * Costs money; not CI.
11
- * node skills/submission-portal/submission-portal.eval.mjs [trials]
12
- */
13
- import { runSkillTriggerEval } from "../../lib/skill-eval-kit.mjs";
14
-
15
- await runSkillTriggerEval("submission-portal");
@@ -1,12 +0,0 @@
1
- /**
2
- * submission-portal — the shared per-skill checks (frontmatter, tool contract, pipeline wiring, own
3
- * identity). Not checked here: that the skill's `npx paperlint submission …` commands are ones the
4
- * CLI runs — that belongs in vigiles (zernie/vigiles#395) — nor that the skill fires
5
- * (`submission-portal.eval.mjs`).
6
- */
7
- import { test } from "vitest";
8
- import { checkSkill } from "../../lib/skill-checks.mjs";
9
-
10
- test("the shared per-skill checks pass", async () => {
11
- await checkSkill("submission-portal");
12
- });
@@ -1,232 +0,0 @@
1
- ---
2
- name: sweep-design-space
3
- description: Find a real MECHANISM for a problem — sweep the design space across type systems, formal verification, functional programming, capabilities, specification-by-example, data integrity, authoring UX, other professions (aviation/law/audit), and historical ancestors in SE — instead of circling the same two or three obvious options. Use when the deliverable needs a solution rather than a measurement, when the last few proposals all rhymed with each other, or when the user says "your options are stale / you're thinking narrowly / think fresh". Encodes the hard filters that kill most candidates (does it re-require the thing already measured as unworkable? is it occupied? who writes the formalization? does it demand a new format? unrepresentable or merely detectable?) and the ladder pattern for when one mechanism can't cover the range. Distinct from research-ideate (validates ONE idea you already have), map-prior-work (finds competitors for a claim), and analyze-sibling-paper (deep-reads one rival) — this one GENERATES candidate mechanisms and filters them.
4
- context: fork
5
- allowed-tools: [WebSearch, WebFetch, Read, Write, Grep, Glob, Bash, Agent]
6
- ---
7
-
8
- <!-- vigiles:sha256:46cb38ac1731883d compiled from skills/sweep-design-space/SKILL.md.spec.ts -->
9
-
10
- # sweep-design-space — stop circling, sweep
11
-
12
- A model asked for "a solution" returns the three designs nearest its training prior, then variations of
13
- those, then variations of the variations. The user experiences this as *"you are thinking very narrowly"* —
14
- and they are right. The fix is not to think harder in place; it is to **sweep named source domains on
15
- purpose** and filter hard.
16
-
17
- Grounding lesson (2026-07-29, `the reference paper`): four consecutive proposals were reformulations of
18
- one idea ("check the prose"), and two of them turned out to be **already shipped in production** by
19
- other people. The design space was never actually swept; it was sampled from memory.
20
-
21
- ## When it fires
22
-
23
- - The task needs a **mechanism**, not a measurement, and the mechanism isn't obvious.
24
- - Your last two or three proposals rhyme with each other.
25
- - The user pushes back with *"your options are stale / you're seeing only old solutions / think fresh"*.
26
- - A measurement phase just finished and the paper/product needs a constructive half.
27
- - 🔴 **You are about to recommend the first design you thought of.** That alone is the trigger.
28
-
29
- ## How to run it
30
-
31
- ### 1. State the defect as a STATE, not as a wish
32
- Not "we want rules to be enforced". Write the exact state that must not exist:
33
- > *a rule asserts an enforcement that nothing provides.*
34
-
35
- Everything downstream is judged by whether it makes **that state** impossible.
36
-
37
- ### 2. Write the hard filters BEFORE generating
38
- Filters written after generation get bent to save a favourite. Standard ones — keep the ones that apply:
39
-
40
- - **🔴 Does it re-require the thing you already measured as unworkable?** The sharpest filter and the
41
- easiest to violate. In the grounding case, prose-to-checker synthesis was measured leaking at
42
- **84–96%** — and half the proposed designs still began with *"parse the prose"*. If your evidence
43
- says X doesn't work, a design that starts with X is dead **regardless of how elegant the rest is**.
44
- - **Unrepresentable or merely detectable?** "We check for it afterwards" is a different (weaker) claim
45
- than "it cannot occur". Say which one honestly.
46
- - **Who produces the formalization — a model or a human?** This, not "is a model involved", is what
47
- predicts leakage. Model-synthesized formalization leaks; human-written formalization does not leak,
48
- it is merely expensive. Sort candidates by this.
49
- - **Adoption cost.** Does it require a new format, a migration, or a new file? Count the artifacts
50
- already in the wild that would have to move. A design requiring migration of a large installed base
51
- has near-zero adoption regardless of merit.
52
- - **Scope honesty.** Which fraction of the real population does it cover, and does it *silently* cover
53
- nothing for the rest? Force each candidate to say "for class X it is silent."
54
-
55
- ### 3. Sweep the catalog — the point of this skill
56
- Take the groups below. For each, generate **3 candidates whose MECHANISMS differ** (three phrasings of
57
- one idea is a failed group). Delegate to a subagent with **no thread context** — the thread is exactly
58
- what anchors you — and hand it: the defect state, the hard filters, the measured constraints, and the
59
- **already-considered list**.
60
-
61
- 🔴 **Hand that list as "considered, and here is exactly why each was set aside" — never as a bare
62
- ban.** A blanket prohibition is the wrong instrument, because some of those options were set aside
63
- for a *bad* reason, and a *modification* of a rejected option is often the best thing in the sweep.
64
- So the instruction to the agent is two-sided:
65
-
66
- - returning a considered option **unchanged** is a failure — that is the laziness the list exists to
67
- prevent;
68
- - returning it **because you can attack the stated reason it was rejected**, or with a modification
69
- that survives that reason, is a **first-class result** — say so explicitly in the brief.
70
-
71
- This shape does something a ban cannot: it surfaces bad rejections. In the grounding session, one
72
- option was discarded with the objection *"the generated file can still be hand-edited"* — an objection
73
- already solved, years earlier, by a checksum on the generated section. Under a bare ban that option
74
- stays dead forever, killed by a wrong reason nobody re-examines. **Record the reason next to every
75
- retired option precisely so it can be attacked later.**
76
-
77
- ### 4. Occupancy check BEFORE you fall in love
78
- Every surviving candidate goes through a refutation-framed occupancy pass (*"find who already did
79
- this"*, not *"confirm it's free"*). In the grounding case this killed the front-runner: the
80
- `enforced-by:` tag design was **already shipped** — CI blocking PRs, reference resolution in Rust,
81
- across several independent projects. "I don't know of such work" ≠ "no such work". Search GitHub code
82
- search, not only papers: practice ships years before it is written up.
83
-
84
- ### 5. Red-team the survivor
85
- Separate subagent, framed to **break** it. See the paper corpus's own refutation rules (`CLAUDE.md` beside the papers).
86
-
87
- ### 6. Save to the repo
88
- A swept design space that lives only in a chat is re-swept from scratch next month. Write the map —
89
- axes, cells, occupancy verdicts, what kills each — as a file, and record **which candidates were
90
- retired and why**, so they are not proposed again.
91
-
92
- ---
93
-
94
- ## The catalog — source domains, with constructs named
95
-
96
- Do not treat this as exhaustive; it is a floor, so the agent starts from named constructs instead of
97
- inventing the list each time. Add groups when the problem calls for them.
98
-
99
- ### A. Type systems and language design
100
- Smart constructors · newtype and phantom types · GADTs · **typestate** · linear and affine types
101
- (a permission that is *consumed*) · refinement types · totality checking · effects in the type ·
102
- **parse-don't-validate** · make illegal states unrepresentable · instance resolution as a gate
103
- (the operation *doesn't exist* when there is no backend for it).
104
-
105
- ### B. Formal verification
106
- Coq · Lean · **TLA+ and Alloy** (model the *process*, not the code) · model checking · SMT ·
107
- **satisfiability as a meaningfulness test** (a constraint that removes no models is vacuous — a
108
- mechanical vacuity check) · refinement (does the implementation refine the spec) · proof-carrying
109
- artifacts · Design-by-Contract · **blame** (Findler & Felleisen — who is at fault at the boundary).
110
-
111
- ### C. Functional programming
112
- Free monads and DSL-as-data (one AST, many interpreters) · tagless-final · **session types**
113
- (protocols as types — the natural home for "order of operations" rules) · algebraic effects ·
114
- optics · **monoids and folds** (how do rules compose, merge, override?) · lattices and semilattices
115
- (CRDT-style merge without conflict) · catamorphisms · **Curry–Howard** (rule as type, proof as value) ·
116
- property laws · denotational semantics (a rule *is* the set it forbids; empty set = vacuous).
117
-
118
- ### D. Capabilities and systems
119
- Capability-based security · **reference monitor with complete mediation** · principle of least
120
- authority · object capabilities · **grants instead of prohibitions** (if the file can only *grant*,
121
- "don't do X" has no syntax) · sandboxing · seccomp/eBPF · information-flow control · taint.
122
-
123
- ### E. Testing and specification by example
124
- Property-based testing · metamorphic relations · golden/approval tests · **mutation testing as an
125
- admission criterion** (a rule that kills no mutant is not admitted) · executable specifications ·
126
- example pairs as the artifact with prose as caption (machine never reads the prose) ·
127
- **A/B measurement of effect** (treat the artifact as opaque and measure whether it changes outcomes —
128
- the one way to take unparseable prose seriously without parsing it).
129
-
130
- ### F. Data integrity and databases
131
- Constraints · **`ADD CONSTRAINT` validates existing rows** (you cannot add a constraint your current
132
- data violates — near-universal in databases, near-absent everywhere else) · `NOT NULL` + foreign keys ·
133
- schema and migrations · `NOT VALID` with a deadline · provenance and lineage · event sourcing ·
134
- **store the thing as data with the human-readable file as a view**.
135
-
136
- ### G. Human–system interaction (authoring)
137
- Asymmetric cost (make the strong claim expensive and the weak one one click) · forced choice with no
138
- escape hatch · **changing the default** rather than adding a gate · feedback at the moment of writing
139
- (live "this would have matched: 0") · progressive disclosure · single entry point (the artifact can
140
- only be created *from* an incident, never from imagination) · what code review, commit hooks and IDE
141
- hints actually taught us about compliance.
142
-
143
- ### H. Other professions — how they make an unenforceable norm unwritable
144
- - **Aviation:** Minimum Equipment List — a defect is permitted only *with* a compensating procedure
145
- and a **repair deadline** by category; expiry is automatic. Also checklists, and why they work.
146
- - **Law:** *lex imperfecta* — an obligation with no sanction is a recognized category, not an
147
- oversight. **Rules vs standards** (Kaplow 1992) — the ex-ante/ex-post distinction, half a century old.
148
- Adjudicator: a standard must name who decides.
149
- - **Audit/finance:** SOX controls — owner + frequency + **evidence artifact**, and two separate tests
150
- (*design* and *operating effectiveness*). "The control exists" stops being a state; there are three.
151
- - **Medicine:** protocols, contraindications, checklists, and the distinction between guideline and
152
- protocol.
153
- - **Safety standards:** MISRA (**decidable/undecidable** is an official per-rule label), DO-178C DAL
154
- A–E, ISO 26262 ASIL, Common Criteria EAL — industries that already formalized *how strongly backed*
155
- something is.
156
- - **Construction codes, military ROE, accounting standards** — same question, different centuries.
157
-
158
- ### I. 🔴 Historical ancestors in software engineering
159
- **Assume the problem is old.** In the grounding case, a "novel" controlled-language idea turned out to
160
- be a 1980s aerospace standard, and its ladder had been published in *Computational Linguistics* in 2014.
161
- Look here **before** generating anything:
162
-
163
- - **Gradual typing** — the canonical template for coexisting checked and unchecked in one artifact,
164
- with an explicit boundary and blame, adopted across a huge installed base *because* it did not
165
- require migration. If your problem is "some items are backed and some are not, and we cannot move
166
- everyone", this is the closest ancestor that exists.
167
- - **Gradual verification**, gradual refinement types.
168
- - **Design by Contract** (Eiffel) and contract blame (Racket).
169
- - **JML · SPARK Ada · ACSL · Dafny** — and specifically **SPARK's stone → bronze → silver → gold →
170
- platinum**: a shipped, mechanically-defined ladder of assurance. Steal the shape.
171
- - **Aspect-oriented programming** — cross-cutting requirements declared away from the code, and
172
- **why it failed** (the failure is more instructive than the successes).
173
- - **lint (Johnson, 1978)** — the original answer to "a rule the compiler does not check".
174
- - **Assertions** (Floyd, Hoare) and how they became normal.
175
- - **Literate programming**, doctest, executable documentation.
176
- - **Requirements engineering** — *testable requirement* as a recognized category, traceability,
177
- EARS, IEEE 830.
178
-
179
- ### J. Migration and coexistence strategies
180
- Not a mechanism but a shape most candidates need: strangler fig · feature flags · `NOT VALID`
181
- constraints · gradual typing's boundary · deprecation with deadlines · advisory-then-enforcing rollout
182
- (how linters actually ship a new rule) · opt-in tiers.
183
-
184
- ---
185
-
186
- ## The ladder pattern
187
-
188
- When no single mechanism covers the range — the usual case — the answer is often a **graded scale**
189
- rather than one gate. A ladder is only worth anything if every rung is:
190
-
191
- 1. **decided mechanically** — no reading, no judgment, no model interpreting anything;
192
- 2. **strictly stronger** than the rung below;
193
- 3. **precedented** — name the ancestor (SPARK levels, DAL, MISRA decidable/undecidable, gradual typing's
194
- typed/untyped boundary). A ladder with invented rungs is a taxonomy, and taxonomies are usually
195
- occupied.
196
-
197
- 🔴 And check whether the *ladder itself* is occupied for your object. Controlled-language scales and
198
- assurance levels already exist; the question is whether anyone has carried them to your problem.
199
-
200
- ---
201
-
202
- ## Rules
203
-
204
- - **Name the forbidden options in the generation brief.** Without an explicit "do not return these"
205
- list, a fresh agent returns your stale options with new names.
206
- - **Generate with a context-free subagent.** The thread is the anchor you are trying to escape.
207
- - **Three ideas per group must differ in MECHANISM**, not in phrasing.
208
- - **Apply the "does it re-require the unworkable thing" filter first** — it is the one most often
209
- violated, including by designs that feel elegant.
210
- - **Occupancy before affection.** Search shipped code, not only literature.
211
- - **Negative results count.** "This group yields nothing here" is a real finding; record it so the
212
- group is not re-swept.
213
- - **Prefer designs that work without anything understanding anything** — counting, required fields,
214
- foreign keys, expiry dates, and grants do not leak. Interpretation does.
215
- - **Say what each candidate is silent about.** A design that covers a quarter of the population and
216
- says nothing about the rest is fine — undeclared silence is not.
217
-
218
- ## Compose with
219
- - `research-ideate` — validates ONE idea's research value; run after this picks a candidate.
220
- - `map-prior-work` / `analyze-sibling-paper` — occupancy at the level of a paper's contribution.
221
- - `build-benchmark` — once the mechanism exists, this measures it.
222
- - `paper-adversarial-review` / `pc-panel-review` — red-team the survivor.
223
-
224
- ## Provenance
225
- Built 2026-07-29 during `the reference paper`, after a solution search stalled for hours. Four
226
- consecutive proposals were the same idea reworded; when finally swept properly, a context-free agent
227
- produced 24 candidates across 8 groups, of which the three least obvious came from **capabilities**
228
- (the rule's text exists only as the monitor's refusal message — no prose is stored at all),
229
- **databases** (`ADD CONSTRAINT` refuses when current data already violates), and
230
- **specification-by-example** (measure the artifact's *effect* and never read it). None of the three
231
- was reachable from the thread, and two of the thread's own front-runners turned out to be shipped
232
- already. The catalog exists so the next sweep starts from named constructs instead of from memory.
@@ -1,248 +0,0 @@
1
- // Compiled to SKILL.md by `vigiles compile`. Edit THIS file, never the markdown.
2
- //
3
- // Adopted 2026-08-17 (batch 3). Body carried over VERBATIM so the compiled diff shows
4
- // only what the compiler adds. No `disallowedTools` fence yet — the field landed on
5
- // `SkillSpec` in vigiles branch `claude/skill-disallowed-tools` and is not in a release
6
- // this repo installs, so writing one here would not compile.
7
- import { experimental_skill } from "vigiles/spec";
8
-
9
- export default experimental_skill({
10
- name: "sweep-design-space",
11
- description:
12
- "Find a real MECHANISM for a problem — sweep the design space across type systems, formal verification, functional programming, capabilities, specification-by-example, data integrity, authoring UX, other professions (aviation/law/audit), and historical ancestors in SE — instead of circling the same two or three obvious options. Use when the deliverable needs a solution rather than a measurement, when the last few proposals all rhymed with each other, or when the user says \"your options are stale / you're thinking narrowly / think fresh\". Encodes the hard filters that kill most candidates (does it re-require the thing already measured as unworkable? is it occupied? who writes the formalization? does it demand a new format? unrepresentable or merely detectable?) and the ladder pattern for when one mechanism can't cover the range. Distinct from research-ideate (validates ONE idea you already have), map-prior-work (finds competitors for a claim), and analyze-sibling-paper (deep-reads one rival) — this one GENERATES candidate mechanisms and filters them.",
13
- context: "fork",
14
- tools: [
15
- "WebSearch",
16
- "WebFetch",
17
- "Read",
18
- "Write",
19
- "Grep",
20
- "Glob",
21
- "Bash",
22
- "Agent",
23
- ],
24
- body: `
25
- # sweep-design-space — stop circling, sweep
26
-
27
- A model asked for "a solution" returns the three designs nearest its training prior, then variations of
28
- those, then variations of the variations. The user experiences this as *"you are thinking very narrowly"* —
29
- and they are right. The fix is not to think harder in place; it is to **sweep named source domains on
30
- purpose** and filter hard.
31
-
32
- Grounding lesson (2026-07-29, \`the reference paper\`): four consecutive proposals were reformulations of
33
- one idea ("check the prose"), and two of them turned out to be **already shipped in production** by
34
- other people. The design space was never actually swept; it was sampled from memory.
35
-
36
- ## When it fires
37
-
38
- - The task needs a **mechanism**, not a measurement, and the mechanism isn't obvious.
39
- - Your last two or three proposals rhyme with each other.
40
- - The user pushes back with *"your options are stale / you're seeing only old solutions / think fresh"*.
41
- - A measurement phase just finished and the paper/product needs a constructive half.
42
- - 🔴 **You are about to recommend the first design you thought of.** That alone is the trigger.
43
-
44
- ## How to run it
45
-
46
- ### 1. State the defect as a STATE, not as a wish
47
- Not "we want rules to be enforced". Write the exact state that must not exist:
48
- > *a rule asserts an enforcement that nothing provides.*
49
-
50
- Everything downstream is judged by whether it makes **that state** impossible.
51
-
52
- ### 2. Write the hard filters BEFORE generating
53
- Filters written after generation get bent to save a favourite. Standard ones — keep the ones that apply:
54
-
55
- - **🔴 Does it re-require the thing you already measured as unworkable?** The sharpest filter and the
56
- easiest to violate. In the grounding case, prose-to-checker synthesis was measured leaking at
57
- **84–96%** — and half the proposed designs still began with *"parse the prose"*. If your evidence
58
- says X doesn't work, a design that starts with X is dead **regardless of how elegant the rest is**.
59
- - **Unrepresentable or merely detectable?** "We check for it afterwards" is a different (weaker) claim
60
- than "it cannot occur". Say which one honestly.
61
- - **Who produces the formalization — a model or a human?** This, not "is a model involved", is what
62
- predicts leakage. Model-synthesized formalization leaks; human-written formalization does not leak,
63
- it is merely expensive. Sort candidates by this.
64
- - **Adoption cost.** Does it require a new format, a migration, or a new file? Count the artifacts
65
- already in the wild that would have to move. A design requiring migration of a large installed base
66
- has near-zero adoption regardless of merit.
67
- - **Scope honesty.** Which fraction of the real population does it cover, and does it *silently* cover
68
- nothing for the rest? Force each candidate to say "for class X it is silent."
69
-
70
- ### 3. Sweep the catalog — the point of this skill
71
- Take the groups below. For each, generate **3 candidates whose MECHANISMS differ** (three phrasings of
72
- one idea is a failed group). Delegate to a subagent with **no thread context** — the thread is exactly
73
- what anchors you — and hand it: the defect state, the hard filters, the measured constraints, and the
74
- **already-considered list**.
75
-
76
- 🔴 **Hand that list as "considered, and here is exactly why each was set aside" — never as a bare
77
- ban.** A blanket prohibition is the wrong instrument, because some of those options were set aside
78
- for a *bad* reason, and a *modification* of a rejected option is often the best thing in the sweep.
79
- So the instruction to the agent is two-sided:
80
-
81
- - returning a considered option **unchanged** is a failure — that is the laziness the list exists to
82
- prevent;
83
- - returning it **because you can attack the stated reason it was rejected**, or with a modification
84
- that survives that reason, is a **first-class result** — say so explicitly in the brief.
85
-
86
- This shape does something a ban cannot: it surfaces bad rejections. In the grounding session, one
87
- option was discarded with the objection *"the generated file can still be hand-edited"* — an objection
88
- already solved, years earlier, by a checksum on the generated section. Under a bare ban that option
89
- stays dead forever, killed by a wrong reason nobody re-examines. **Record the reason next to every
90
- retired option precisely so it can be attacked later.**
91
-
92
- ### 4. Occupancy check BEFORE you fall in love
93
- Every surviving candidate goes through a refutation-framed occupancy pass (*"find who already did
94
- this"*, not *"confirm it's free"*). In the grounding case this killed the front-runner: the
95
- \`enforced-by:\` tag design was **already shipped** — CI blocking PRs, reference resolution in Rust,
96
- across several independent projects. "I don't know of such work" ≠ "no such work". Search GitHub code
97
- search, not only papers: practice ships years before it is written up.
98
-
99
- ### 5. Red-team the survivor
100
- Separate subagent, framed to **break** it. See the paper corpus's own refutation rules (\`CLAUDE.md\` beside the papers).
101
-
102
- ### 6. Save to the repo
103
- A swept design space that lives only in a chat is re-swept from scratch next month. Write the map —
104
- axes, cells, occupancy verdicts, what kills each — as a file, and record **which candidates were
105
- retired and why**, so they are not proposed again.
106
-
107
- ---
108
-
109
- ## The catalog — source domains, with constructs named
110
-
111
- Do not treat this as exhaustive; it is a floor, so the agent starts from named constructs instead of
112
- inventing the list each time. Add groups when the problem calls for them.
113
-
114
- ### A. Type systems and language design
115
- Smart constructors · newtype and phantom types · GADTs · **typestate** · linear and affine types
116
- (a permission that is *consumed*) · refinement types · totality checking · effects in the type ·
117
- **parse-don't-validate** · make illegal states unrepresentable · instance resolution as a gate
118
- (the operation *doesn't exist* when there is no backend for it).
119
-
120
- ### B. Formal verification
121
- Coq · Lean · **TLA+ and Alloy** (model the *process*, not the code) · model checking · SMT ·
122
- **satisfiability as a meaningfulness test** (a constraint that removes no models is vacuous — a
123
- mechanical vacuity check) · refinement (does the implementation refine the spec) · proof-carrying
124
- artifacts · Design-by-Contract · **blame** (Findler & Felleisen — who is at fault at the boundary).
125
-
126
- ### C. Functional programming
127
- Free monads and DSL-as-data (one AST, many interpreters) · tagless-final · **session types**
128
- (protocols as types — the natural home for "order of operations" rules) · algebraic effects ·
129
- optics · **monoids and folds** (how do rules compose, merge, override?) · lattices and semilattices
130
- (CRDT-style merge without conflict) · catamorphisms · **Curry–Howard** (rule as type, proof as value) ·
131
- property laws · denotational semantics (a rule *is* the set it forbids; empty set = vacuous).
132
-
133
- ### D. Capabilities and systems
134
- Capability-based security · **reference monitor with complete mediation** · principle of least
135
- authority · object capabilities · **grants instead of prohibitions** (if the file can only *grant*,
136
- "don't do X" has no syntax) · sandboxing · seccomp/eBPF · information-flow control · taint.
137
-
138
- ### E. Testing and specification by example
139
- Property-based testing · metamorphic relations · golden/approval tests · **mutation testing as an
140
- admission criterion** (a rule that kills no mutant is not admitted) · executable specifications ·
141
- example pairs as the artifact with prose as caption (machine never reads the prose) ·
142
- **A/B measurement of effect** (treat the artifact as opaque and measure whether it changes outcomes —
143
- the one way to take unparseable prose seriously without parsing it).
144
-
145
- ### F. Data integrity and databases
146
- Constraints · **\`ADD CONSTRAINT\` validates existing rows** (you cannot add a constraint your current
147
- data violates — near-universal in databases, near-absent everywhere else) · \`NOT NULL\` + foreign keys ·
148
- schema and migrations · \`NOT VALID\` with a deadline · provenance and lineage · event sourcing ·
149
- **store the thing as data with the human-readable file as a view**.
150
-
151
- ### G. Human–system interaction (authoring)
152
- Asymmetric cost (make the strong claim expensive and the weak one one click) · forced choice with no
153
- escape hatch · **changing the default** rather than adding a gate · feedback at the moment of writing
154
- (live "this would have matched: 0") · progressive disclosure · single entry point (the artifact can
155
- only be created *from* an incident, never from imagination) · what code review, commit hooks and IDE
156
- hints actually taught us about compliance.
157
-
158
- ### H. Other professions — how they make an unenforceable norm unwritable
159
- - **Aviation:** Minimum Equipment List — a defect is permitted only *with* a compensating procedure
160
- and a **repair deadline** by category; expiry is automatic. Also checklists, and why they work.
161
- - **Law:** *lex imperfecta* — an obligation with no sanction is a recognized category, not an
162
- oversight. **Rules vs standards** (Kaplow 1992) — the ex-ante/ex-post distinction, half a century old.
163
- Adjudicator: a standard must name who decides.
164
- - **Audit/finance:** SOX controls — owner + frequency + **evidence artifact**, and two separate tests
165
- (*design* and *operating effectiveness*). "The control exists" stops being a state; there are three.
166
- - **Medicine:** protocols, contraindications, checklists, and the distinction between guideline and
167
- protocol.
168
- - **Safety standards:** MISRA (**decidable/undecidable** is an official per-rule label), DO-178C DAL
169
- A–E, ISO 26262 ASIL, Common Criteria EAL — industries that already formalized *how strongly backed*
170
- something is.
171
- - **Construction codes, military ROE, accounting standards** — same question, different centuries.
172
-
173
- ### I. 🔴 Historical ancestors in software engineering
174
- **Assume the problem is old.** In the grounding case, a "novel" controlled-language idea turned out to
175
- be a 1980s aerospace standard, and its ladder had been published in *Computational Linguistics* in 2014.
176
- Look here **before** generating anything:
177
-
178
- - **Gradual typing** — the canonical template for coexisting checked and unchecked in one artifact,
179
- with an explicit boundary and blame, adopted across a huge installed base *because* it did not
180
- require migration. If your problem is "some items are backed and some are not, and we cannot move
181
- everyone", this is the closest ancestor that exists.
182
- - **Gradual verification**, gradual refinement types.
183
- - **Design by Contract** (Eiffel) and contract blame (Racket).
184
- - **JML · SPARK Ada · ACSL · Dafny** — and specifically **SPARK's stone → bronze → silver → gold →
185
- platinum**: a shipped, mechanically-defined ladder of assurance. Steal the shape.
186
- - **Aspect-oriented programming** — cross-cutting requirements declared away from the code, and
187
- **why it failed** (the failure is more instructive than the successes).
188
- - **lint (Johnson, 1978)** — the original answer to "a rule the compiler does not check".
189
- - **Assertions** (Floyd, Hoare) and how they became normal.
190
- - **Literate programming**, doctest, executable documentation.
191
- - **Requirements engineering** — *testable requirement* as a recognized category, traceability,
192
- EARS, IEEE 830.
193
-
194
- ### J. Migration and coexistence strategies
195
- Not a mechanism but a shape most candidates need: strangler fig · feature flags · \`NOT VALID\`
196
- constraints · gradual typing's boundary · deprecation with deadlines · advisory-then-enforcing rollout
197
- (how linters actually ship a new rule) · opt-in tiers.
198
-
199
- ---
200
-
201
- ## The ladder pattern
202
-
203
- When no single mechanism covers the range — the usual case — the answer is often a **graded scale**
204
- rather than one gate. A ladder is only worth anything if every rung is:
205
-
206
- 1. **decided mechanically** — no reading, no judgment, no model interpreting anything;
207
- 2. **strictly stronger** than the rung below;
208
- 3. **precedented** — name the ancestor (SPARK levels, DAL, MISRA decidable/undecidable, gradual typing's
209
- typed/untyped boundary). A ladder with invented rungs is a taxonomy, and taxonomies are usually
210
- occupied.
211
-
212
- 🔴 And check whether the *ladder itself* is occupied for your object. Controlled-language scales and
213
- assurance levels already exist; the question is whether anyone has carried them to your problem.
214
-
215
- ---
216
-
217
- ## Rules
218
-
219
- - **Name the forbidden options in the generation brief.** Without an explicit "do not return these"
220
- list, a fresh agent returns your stale options with new names.
221
- - **Generate with a context-free subagent.** The thread is the anchor you are trying to escape.
222
- - **Three ideas per group must differ in MECHANISM**, not in phrasing.
223
- - **Apply the "does it re-require the unworkable thing" filter first** — it is the one most often
224
- violated, including by designs that feel elegant.
225
- - **Occupancy before affection.** Search shipped code, not only literature.
226
- - **Negative results count.** "This group yields nothing here" is a real finding; record it so the
227
- group is not re-swept.
228
- - **Prefer designs that work without anything understanding anything** — counting, required fields,
229
- foreign keys, expiry dates, and grants do not leak. Interpretation does.
230
- - **Say what each candidate is silent about.** A design that covers a quarter of the population and
231
- says nothing about the rest is fine — undeclared silence is not.
232
-
233
- ## Compose with
234
- - \`research-ideate\` — validates ONE idea's research value; run after this picks a candidate.
235
- - \`map-prior-work\` / \`analyze-sibling-paper\` — occupancy at the level of a paper's contribution.
236
- - \`build-benchmark\` — once the mechanism exists, this measures it.
237
- - \`paper-adversarial-review\` / \`pc-panel-review\` — red-team the survivor.
238
-
239
- ## Provenance
240
- Built 2026-07-29 during \`the reference paper\`, after a solution search stalled for hours. Four
241
- consecutive proposals were the same idea reworded; when finally swept properly, a context-free agent
242
- produced 24 candidates across 8 groups, of which the three least obvious came from **capabilities**
243
- (the rule's text exists only as the monitor's refusal message — no prose is stored at all),
244
- **databases** (\`ADD CONSTRAINT\` refuses when current data already violates), and
245
- **specification-by-example** (measure the artifact's *effect* and never read it). None of the three
246
- was reachable from the thread, and two of the thread's own front-runners turned out to be shipped
247
- already. The catalog exists so the next sweep starts from named constructs instead of from memory.`,
248
- });
@@ -1,19 +0,0 @@
1
- /**
2
- * sweep-design-space — the PAID tier: does this skill's description actually fire?
3
- *
4
- * COLOCATED ON PURPOSE (vigiles decides coverage by placement as of 2026-08-11).
5
- * The prompts live in `.claude/lib/skill-trigger-cases.mjs` so all 21 cases
6
- * are reviewed as one table where collisions between siblings are visible;
7
- * copying them here would recreate the drift that rule exists to prevent.
8
- *
9
- * Measures recall (fires on its own territory) AND precision (stays quiet on a
10
- * colliding sibling's territory), against the REAL `.claude` harness so the skill
11
- * competes with every other installed description — an isolated run overstates
12
- * recall and understates false positives.
13
- *
14
- * Costs money; not CI.
15
- * node .claude/skills/sweep-design-space/sweep-design-space.eval.mjs [trials]
16
- */
17
- import { runSkillTriggerEval } from "../../lib/skill-eval-kit.mjs";
18
-
19
- await runSkillTriggerEval("sweep-design-space");
@@ -1,23 +0,0 @@
1
- /**
2
- * sweep-design-space — the free, deterministic tier. No model, no network.
3
- *
4
- * COLOCATED ON PURPOSE. vigiles decides coverage by PLACEMENT as of 2026-08-11:
5
- * a test that merely names a surface no longer counts, because that tier was
6
- * crediting surfaces nothing touched. So each skill needs a file inside its own
7
- * directory — this one.
8
- *
9
- * The assertions live in `.claude/lib/skill-checks.mjs` and are CALLED here with
10
- * this skill's name. They are not copied: 22 copies of the same checks is the drift that
11
- * module exists to avoid. (Until 2026-08-11 this was an env-var side channel into a
12
- * 614-line file named after no surface; it is a function call now.)
13
- *
14
- * What this proves: this skill's frontmatter parses as strict YAML, its declared
15
- * tool contract is sane, its pipeline wiring points at scripts that exist, and it
16
- * announces/records under ITS OWN identity rather than a sibling's.
17
- *
18
- * What it does NOT prove: that the skill fires, or that its guidance produces a
19
- * good result. Those need a real model — see `sweep-design-space.eval.mjs`.
20
- */
21
- import { checkSkill } from "../../lib/skill-checks.mjs";
22
-
23
- await checkSkill("sweep-design-space");
@@ -1,78 +0,0 @@
1
- import { expect, it } from "vitest";
2
- import { latexReader } from "./adapters/latex/index.ts";
3
- import { memoryFiles } from "./adapters/memory/index.ts";
4
- import { sourcesCodec } from "./adapters/sources-record/index.ts";
5
- import { paperProse } from "./paper-prose.ts";
6
- import { builtFixture, builtPaper } from "../test/recorded-fixture.ts";
7
-
8
- const SRC = [
9
- "\\documentclass{article}",
10
- "\\usepackage{amsmath} % a preamble word count of its own",
11
- "\\title{A Title}",
12
- "\\begin{document}",
13
- "\\maketitle",
14
- "\\section{Introduction}",
15
- "We measure it~\\cite{a}. % a comment",
16
- "",
17
- "A second paragraph \\input{body}",
18
- "\\begin{filecontents*}{refs.bib}",
19
- "@misc{a, author = {Ada Lovelace}, title = {Never Prose}}",
20
- "\\end{filecontents*}",
21
- "\\end{document}",
22
- ].join("\n");
23
-
24
- it("the body's prose, a blank line between passages, includes spliced; the preamble, comments, the inline .bib and the title stay out", () => {
25
- // The build recorded TeX reading both files; the preamble holds no include.
26
- const files = memoryFiles(
27
- builtPaper(
28
- "/p",
29
- { "paper.tex": SRC, "body.tex": "\\subsection{Method}\nends here." },
30
- [
31
- { path: "paper.tex", role: "body" },
32
- { path: "body.tex", role: "body" },
33
- ],
34
- ),
35
- );
36
- expect(
37
- paperProse("/p/paper.tex", SRC, {
38
- files,
39
- latex: latexReader,
40
- codec: sourcesCodec,
41
- }),
42
- ).toEqual({
43
- // A citation stands as `[1]`, where it is set; a heading — here an included one — ends a passage.
44
- body: "We measure it [1].\n\nA second paragraph\n\nends here.",
45
- headings: ["Introduction", "Method"],
46
- files: [
47
- { file: "paper.tex", text: SRC },
48
- { file: "body.tex", text: "\\subsection{Method}\nends here." },
49
- ],
50
- });
51
- });
52
-
53
- it("a citation stands as `[1]` and a cross-reference as `1`, so the sentence still ends on them", () => {
54
- const src =
55
- "\\documentclass{article}\n\\begin{document}\nIt holds~\\cite{a}. It is shown (Section~\\ref{s}).\n\\end{document}\n";
56
- expect(
57
- paperProse("/p/paper.tex", src, {
58
- files: memoryFiles({ "/p/paper.tex": src }),
59
- latex: latexReader,
60
- codec: sourcesCodec,
61
- }).body,
62
- ).toBe("It holds [1]. It is shown (Section 1).");
63
- });
64
-
65
- it("🔴 a .tex a filecontents block wrote and the body \\input's is prose once: spliced where TeX read it, the block's body no prose", () => {
66
- // v29-generated-input: TeX recorded body.tex — written by the block, read after \begin{document}.
67
- const files = builtFixture("v29-generated-input", "/p");
68
- const src = files["/p/paper.tex"] ?? "";
69
- const { body } = paperProse("/p/paper.tex", src, {
70
- files: memoryFiles(files),
71
- latex: latexReader,
72
- codec: sourcesCodec,
73
- });
74
- expect(
75
- body.match(/This sentence is typeset from a file a block wrote\./g),
76
- ).toHaveLength(1);
77
- expect(body).toMatch(/^Before the generated file\. This sentence/);
78
- });