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,30 +1,25 @@
1
1
  ---
2
2
  name: paper-pipeline
3
- description: The orchestrator for writing a research paper end-to-end, from idea to accepted-and-extended, with every stage graded for the credit it earns a body of work. START HERE when writing/hardening a paper (AgenticDev, AISec, and future ones) and want the whole lifecycle driven, not one step. Routes to the stage skills — research-ideate, find-venue, plan-paper-timeline, build-benchmark, draft-paper, render-paper, verify-citations, the review skills, submit-paper (+ venue cards), camera-ready, extend-paper — and owns the shared references.
3
+ description: The orchestrator for writing a research paper end-to-end, from idea to accepted-and-extended. START HERE when writing/hardening a paper (AgenticDev, AISec, and future ones) and want the whole lifecycle driven, not one step. Routes to the stage skills — research-ideate, find-venue, plan-paper-timeline, build-benchmark, draft-paper, verify-citations, the review skills, submit-paper (+ venue cards), camera-ready, extend-paper — and owns the shared references.
4
4
  allowed-tools: [Read, Write, Edit, Grep, Glob, Bash, WebSearch, WebFetch, Agent, Skill]
5
5
  ---
6
6
 
7
- <!-- vigiles:sha256:2d9e6480db9c97bd compiled from skills/paper-pipeline/SKILL.md.spec.ts -->
7
+ <!-- vigiles:sha256:66354b5d44875bdc compiled from skills/paper-pipeline/SKILL.md.spec.ts -->
8
8
 
9
9
  # paper-pipeline — the conductor for the whole organism
10
10
 
11
11
  Editing the paper's text after an approved copy exists (`paperlint versions approve`): declare each change in `versions/<cycle>/changes.yaml`, `paperlint versions diff` shows what was lost (EXPERIMENTAL; `docs/rules/cycle/changes-since-approved.md`). With an approved copy, `submission … --save` refuses while the source differs from it; approve it first (the author does, never the agent).
12
12
 
13
13
  This is the entry point. Each lifecycle stage is its own skill; this routes through them in order and
14
- owns the shared reference docs the others cite. **These papers are written to COUNT as credentials** —
15
- every stage is graded against `references/credit-criteria.md`, not abstract "impact." The personal half
16
- of that — who is filing what, and when — stays in the author's own private notes, never in a public repo.
14
+ owns the shared reference docs the others cite.
17
15
 
18
16
  ## Shared references (single source of truth — all skills cite these)
19
- - `references/credit-criteria.md` — which criteria a paper feeds; where venue quality bites; the
20
- decisions credit value forces on the pipeline.
21
17
  - `references/artifact-checklist.md` — the self-checking reproduction artifact.
22
18
  - `references/anonymization.md` — the double-blind deny-list + hygiene (and its reverse at camera-ready).
23
- - `references/writing-craft.md` — how well-written papers read (craft rules + exemplar lessons + the
24
- gradeable 10-dim writing rubric); cited by `draft-paper`, `grade-paper-writing`, and `harden-paper`.
25
- - `references/review-ratchet.md` — how to fix a caught overclaim (tighten → cut → Threats → hedge)
26
- and why every review round must be paid back with a `tighten-paper` pass; cited by
27
- `paper-adversarial-review`, `pc-panel-review`, `harden-paper`.
19
+ - `references/writing-craft.md` — how well-written papers read (craft rules);
20
+ cited by `draft-paper`, `rewrite-unclear` and `tighten-paper`.
21
+ - `references/review-ratchet.md` — how to fix a caught overclaim (tighten → cut → Threats → hedge);
22
+ cited by `pc-panel-review` and `harden-paper`.
28
23
  - `references/pipeline-status-template.md` — the per-paper **readiness scorecard** (which stages ran,
29
24
  grades, open findings, submit-ready verdict). Copied into `<paper-dir>/PIPELINE-STATUS.md`.
30
25
  - `references/acl-venue-rules.md` — what holds at **every** ACL-family venue and workshop: the
@@ -46,92 +41,9 @@ their grade/result, what's open,* and a one-line **submit-ready verdict**. Rules
46
41
  reconstruct from chat.
47
42
  - Distinct from `SUBMIT-CHECKLIST.md` (venue-format compliance); both must be green before upload.
48
43
 
49
- ## 🗺️ Where every check actually runs — and where it can be walked around
44
+ ## Four kinds of work, four shapes
50
45
 
51
- ```
52
- YOU EDIT YOU COMMIT YOU BUILD YOU PUSH
53
- │ │ │ │
54
- ▼ ▼ ▼ ▼
55
- ┌──────────────┐ ┌────────────────┐ ┌────────────────┐ ┌────────────────┐
56
- │ PostToolUse │ │ .githooks/ │ │ build- │ │ GitHub Actions │
57
- │ paper-lint │ BLOCKS │ pre-commit │REFUSES│ submission.sh │ │ paper-gates │
58
- │ pre >55 wds │ │ │ │ │ │ │
59
- │ paper-lint │ nudges │ numbers gate │ │ numbers gate │REFUSES numbers+self│
60
- │ post │ │ │ │ │ │ │
61
- │ prose-lint │ │ prose-lint │ nudge │ page count │ │ prose-lint │
62
- │ SHAVE │ │ self-test if │ │ overfull │ │ check-anon │
63
- │ numbers │ │ you touched │ │ unresolved │ │ verify-cites │
64
- │ paper-edit- │ BLOCKS │ a gate │ │ refs │ │ provenance │
65
- │ guard │ bash │ harness if │ │ dropped glyphs│ │ scorecard │
66
- └──────────────┘ │ you touched │ │ anon grep │ │ harness │
67
- │ │ a hook │ └────────────────┘ │ LaTeX build │
68
- │ │ RAW DNA │REFUSES │ └────────────────┘
69
- │ └────────────────┘ │ │
70
- │ │ │ │
71
- watches EVENTS watches STATE watches OUTPUT watches EVERYTHING
72
- (Edit/Write fired) (what is staged) (the actual PDF) (after the fact)
73
- │ │
74
- │ │
75
- 🕳 BYPASSABLE: 🛡 NOT bypassable by that route: it does not care
76
- write from Bash and HOW the bytes got there. However you wrote the
77
- no event fires, so file, you still have to commit it.
78
- every PostToolUse
79
- check silently
80
- does not run.
81
- ```
82
-
83
- **Read the bottom row, it is the whole point.** Each column watches a different KIND of thing, and
84
- that is why they are not three copies of one check:
85
-
86
- - **Editor hooks watch events.** Fast, and the only layer that can stop a bad edit *before* it lands.
87
- Bypassable by construction — an event that never fires cannot be checked, and writing the file from
88
- Bash produces no event. Documented in `papers/CLAUDE.md`, open since 2026-08-04.
89
- - **The git hook watches state.** Immune to that whole class, because it reads what is staged and has
90
- no opinion about how it got staged. This is the layer that was missing, and the one to reach for
91
- when an editor check turns out to be walkable-around.
92
- - **The build watches output.** Only it can see page count, overfull boxes, and glyphs pdflatex
93
- silently dropped — none of which exist until the PDF does.
94
- - **CI watches everything, but after the fact.** Its real job is the slow checks nobody will wait for
95
- locally (the anonymity self-test copies a 24 MB bundle per leak category) and the self-tests, which
96
- are what catch a gate that has quietly stopped catching things.
97
-
98
- 🔴 **A fifth kind, and none of the four columns can see it: does the MODEL call these skills at all?**
99
- Every column above watches something the repository produced — an event, staged bytes, a PDF, a commit.
100
- None watches *selection*: whether a real model, reading 37 competing descriptions, picks `tighten-paper`
101
- over `grade-paper-writing` when the draft is bloated. A harness test proves a skill works once invoked;
102
- it cannot prove it gets invoked. That needs the real CLI and it costs money, so it is a measurement, not
103
- a gate — `.claude/skills/paper-pipeline/pipeline-firing.eval.mjs`, run manually or by the weekly
104
- `skill-firing` job (`workflow_dispatch` + `schedule`, deliberately NOT on push). It installs every skill
105
- in this repo natively so selection is *competitive*, feeds each skill 4 prompts it should fire on plus 4
106
- its colliding sibling owns, and reports recall / false-positive / precision per skill against a committed
107
- baseline. **What it measures drifts without a commit here** — a model update can change routing while
108
- every file stays byte-identical, which is exactly the regression no check in the diagram can see.
109
- Prior art is named in the file header (`adewale/skill-eval-harness` does this too); the idea is not ours.
110
-
111
- 🔴 **Still manual, and no mechanism has been found for it:** the **cold read** — a reader with no
112
- context restating each sentence — is the only check that catches a sentence that is short, true,
113
- threshold-passing and meaningless. It needs a fresh subagent, so no hook can run it.
114
-
115
- Install the git hook once per clone: `git config core.hooksPath .githooks`.
116
-
117
- ## 🔴 There is no stage 7. Four kinds of work, four shapes.
118
-
119
- **This section replaced a single numbered list running 0 → 12, on 2026-08-03.** That list had a
120
- paragraph on top explaining that the numbers were dependencies rather than turns — and underneath it,
121
- a table numbered straight through, which every reader (including this pipeline's own author) read as a
122
- waterfall. The paragraph was the tell: a document that needs a disclaimer explaining how not to read
123
- it is mis-shaped, and the fix is to change the shape, not to add a second disclaimer. That is the
124
- argument `compile-rules-2026` makes about instruction files, applied here.
125
-
126
- Three concrete errors the numbering produced, all real:
127
-
128
- - **`verify-citations` sat at 7**, looking like a one-shot step, while the project rule is that it runs
129
- every cycle — an edit on the last day adds a `\cite` that "we checked last cycle" does not cover.
130
- - **`render-paper` sat at 6**, as a stage. It is a command you run twenty times a day.
131
- - **`map-prior-work` sat at 1.5** and its own description told you to re-run it as a cheap delta before
132
- submit — so it was simultaneously a stage and a continuous check, and the table could only show one.
133
-
134
- Work is now grouped by **how it runs**, and only the groups that are genuinely ordered carry an order.
46
+ Work is grouped by **how it runs**, and only the groups that are genuinely ordered carry an order.
135
47
 
136
48
  | kind | shape | how to read it |
137
49
  |---|---|---|
@@ -149,9 +61,9 @@ Ordered, because each really does gate the next. Two pairs run in parallel; that
149
61
  | Step | Skill | What it settles |
150
62
  |---|---|---|
151
63
  | **Orient** | — | Read `<papers-root>/HANDOFF.md` + `<papers-root>/research/README.md`. Never restart from scratch. |
152
- | **Validate the idea** | **`research-ideate`** | Is it a reusable method (survives review) in your lane, and does it feed the credit criteria? Go/no-go + the MVP finding. |
64
+ | **Validate the idea** | **`research-ideate`** | Is it a reusable method (survives review) in your lane? Go/no-go + the MVP finding. |
153
65
  | **Map the competition** ‖ | **`map-prior-work`** | 🔴 **Who already did this?** Multi-angle sweep; date each hit against your submission (5 months = prior, not concurrent); triage by which layer of your claim it threatens; deep-read the dangerous ones. Output: **what you can still claim** + a related-work skeleton. *Added 2026-07-27 after a five-month-older paper surfaced at T−10 days on a finished draft.* |
154
- | **Pick the venue** ‖ | **`find-venue`** | Rank by credit-weight (peer-reviewed + indexed) × fit × accept-odds × deadline × remote. |
66
+ | **Pick the venue** ‖ | **`find-venue`** | Rank by archival weight (peer-reviewed + indexed) × fit × accept-odds × deadline × remote. |
155
67
  | **Learn what the venue rewards** | **`study-accepted-papers`** (mode A idea, B design) | 🔴 **What does this venue REWARD, before the study is designed?** The venue's award winners against its ordinary accepted papers over 5–7 years (plus award papers on the topic at other venues, labelled apart), coded for substance as well as form, written as **requirements for the study**: what the oracle under the headline is, which belief stated on record the claim targets, which factor is a column. The corpus goes to `<papers-root>/venues/<venue>/`, shared by every paper for that venue; the stage is row `venuebar`. **The same skill comes back once text exists** (mode C draft: the strong-accept scorecard, M1–M10, in `PIPELINE-STATUS.md`; mode D final: the abstract and introduction). The skill always asks which mode. Venue format facts go in its preset (`presets/<venue>.jsonc` in the package, or the project's own) and the venue card beside it (`presets/<venue>.md`); confirm family rules (`references/acl-venue-rules.md`). *Promoted to its own step 2026-08-03: every judgement of a paper's quality had come from instruments this pipeline itself generated, with no external grounding. Moved to modes on 2026-10-12 (#207): run only on a draft, its main findings arrived after they could change the design.* |
156
68
  | 🔴 **Can you physically submit?** | **`plan-paper-timeline`** | **The step that owns the question no stage used to own.** Create the portal account NOW; drive the profile to **ACTIVE**, not "pending moderation"; confirm the form's fields and the artifact-hosting requirement. OpenReview moderation runs **up to two weeks**, and an author with no institutional email has no expedite route. Scorecard row `access`. *Added 2026-08-03, when this was the sole critical-path item on a finished paper at T−4 days: the science was done and there was nowhere to put it.* |
157
69
  | **Schedule it** | **`plan-paper-timeline`** | Deadlines → calendar with buffers, in the author's own zone (AoE − 12h ≠ your clock). Space papers apart. |
@@ -202,7 +114,7 @@ These have no position, because a position is what made them look finished. Each
202
114
  | any `\cite` added or moved | **`verify-citations`** | An edit on the last day adds a citation the last run never saw. "We checked last cycle" does not count — the project rule, and it was numbered as a one-shot anyway. |
203
115
  | a genuine sibling surfaces | **`analyze-sibling-paper`** | Deep-read, scoop/delta, saved in `<paper-dir>/siblings/`. |
204
116
  | the contribution's framing moves | **`map-prior-work`** (delta mode) | A cheap re-sweep. ⚠️ If a rival first surfaces during citation checking, the SETUP sweep was skipped and you are reshaping the contribution under deadline. |
205
- | any `.tex` edit | **`render-paper`** + page count | **Not a stage — a command.** Render, then eyeball pages 1–2 before believing anything about the paper. 🔴 **Rendering is continuous; ACTING on the page count is not** — see the rule below. |
117
+ | any `.tex` edit | `npx paperlint build` + the render gate (`docs/render.md` in the package), page count | **Not a stage — a command.** Build, then look at every page with a figure for what the log cannot flag (label collisions inside a figure, legibility, misaligned sub-figures) before believing anything about the paper; send the page images to the author with what changed since the last build. 🔴 **Rendering is continuous; ACTING on the page count is not** — see the rule below. |
206
118
  | the deadline approaches | the `access` row | Re-check that the profile is still ACTIVE and the portal still opens. External state rots without telling you. |
207
119
 
208
120
  ## GATES — late, expensive, each blocked on a named input
@@ -211,11 +123,9 @@ Ordered, and the order is real: every one refuses to run without the output of t
211
123
 
212
124
  | Gate | Skill | Requires (hard) |
213
125
  |---|---|---|
214
- | **Structure** | **`tighten-paper`** | A rendered PDF and a page count. Produces the cut plan + structural verdict. *Before 2026-07-30 this appeared only INSIDE the harden stage — i.e. after the gate that requires it — so a literal reading sent you into a hard-blocked gate.* |
215
- | **Writing craft** | **`grade-paper-writing`** | The current draft. Produces the **persona stall inventory**, which the panel cannot run without. The stalls are rewritten by **`rewrite-unclear`**, the one skill that rewrites for clarity. |
216
- | **Review decision** | **`pc-panel-review`** | 🔴 **Both of the above.** N independent lenses (incl. an artifact-runner that executes the artifact) + a chair meta-review — predicts the PC's accept/reject. Its venue-fit mode is the one-reviewer CFP-fit spot-check. |
217
- | **Claim preservation** | Fable diff (`claims`) | The pre-pass baseline. Run after **every** aggressive rewrite, before committing. |
218
- | **Harden** | **`harden-paper`** | The panel's verdict. Closes the desk-reject axes a reviewer-sim misses: threat-model, ethics/dual-use, page-fit, citability, double-blind hygiene, artifact-runs-clean. Its structure and writing axes are the **re-run/confirm** pass, not the first invocation. |
126
+ | **Final review** | **`tighten-paper`** → **`cold-read-diff`** `--whole` → **`pc-panel-review`** | A rendered PDF and a page count. Once, in that order, then closed: the next section. Sentences the readers flag are rewritten by **`rewrite-unclear`**. |
127
+ | **Claim preservation** | `rewrite-unclear` step 4 (`claims`) | The pre-pass baseline. Run on each rewrite, before committing; it writes the `claims` row. |
128
+ | **Harden** | **`harden-paper`** | The closed final review. The submit checklist: `npx paperlint lint`, then the items no rule decides (threat model and ethics, the artifact and its numbers, the headline table). It takes the final review's reports and does not run them again. |
219
129
  | **Submit** | **`submit-paper`** (+ the venue card) | 🔴 **The `access` row green.** Portal mechanics, PDF-only, artifact hosted anonymously, "ready for review" marked. |
220
130
 
221
131
  ## AFTER — only reachable by acceptance
@@ -223,55 +133,72 @@ Ordered, and the order is real: every one refuses to run without the output of t
223
133
  **`camera-ready`** — de-anonymize; public repo + archival DOI; complete disclosure. Then
224
134
  **`extend-paper`** — extend (≥30% new) to a higher-prestige venue, the "second, stronger publication."
225
135
 
226
- **Which review skill?** `paper-adversarial-review` = one hostile reviewer, fast defect hunt;
227
- `pc-panel-review` = the full panel + meta-review that makes the accept/reject **decision** (its
228
- **venue-fit mode** is the one-reviewer CFP-fit spot-check — formerly the standalone `venue-review-sim`).
229
- Use an atom for a quick spot-check; **run the panel for the decision.**
136
+ **Which review skill?** `pc-panel-review`: the full panel + meta-review predicts the accept/reject
137
+ **decision**; before the final review, a red-team request runs its **hostile seat** alone, without
138
+ the readability inputs, and in the final review that seat sits on the panel; the **venue-fit seat**
139
+ alone is a spot-check for a CFP-fit score.
230
140
 
231
141
  **Four grading axes — don't confuse them.** A draft is judged on four independent axes, each its own
232
142
  skill: 🔴 **argument architecture** — does the whole thing carry the reader to one conclusion
233
143
  (`argument-arc`, in the LOOP; the axis that failed on `compile-rules-2026` precisely because it was
234
144
  nobody's) · **content strength** — does the contribution clear *this venue's* bar (`study-accepted-papers`,
235
145
  from the venue's own award winners: in SETUP as requirements for the study, and again on the draft as the strong-accept scorecard, M1–M10) ·
236
- **scientific defects** — what a hostile reviewer attacks (`paper-adversarial-review` / `pc-panel-review`)
237
- · **writing craft** — does it read like a human wrote it (`grade-paper-writing`, the 10-dim rubric in
238
- `references/writing-craft.md`; called by `harden-paper`). A paper can ace one and fail another — grade all four.
146
+ **scientific defects** — what a hostile reviewer attacks (`pc-panel-review`)
147
+ · **clarity** — can a reader with no context say what each sentence claims (`cold-read-diff`, in the
148
+ final review). A paper can ace one and fail another — check all four.
239
149
  **The arc axis comes first**, because tightening length and polishing sentences inside a broken arc is
240
150
  how a day disappears and the same paper ships.
241
151
 
242
- **Panel vs harden — not rival gates, they're sequential.** `pc-panel-review` is the review DECISION
243
- gate: it predicts what the PC does. `harden-paper` is the pre-submit ORCHESTRATOR: it *calls* the review
244
- skills and then closes the desk-reject axes a reviewer-sim doesn't systematically hit (threat-model,
245
- ethics/dual-use, page-fit, citability, double-blind hygiene). Order is **review (decide) → harden (close
246
- every other axis) → submit** — neither is "the one final gate" alone.
247
-
248
- ## The review round (a cycle inside GATES)
249
- Review → **apply the consensus fixes → re-run the panel to confirm**. The artifact-runner re-executes
250
- the artifact each round. Stop when the panel converges to accept and the artifact reproduces clean —
251
- **don't loop past one confirming round**, and don't chase the last notch into the deadline. A defensible
252
- **Accept shipped on time beats a risky Strong that misses it**.
152
+ **Panel vs harden — not rival gates, they're sequential.** `pc-panel-review` predicts what the PC does.
153
+ `harden-paper` is the submit checklist: the lint run, the final review's reports, and the few items no rule
154
+ decides. Order is
155
+ **final review → harden → submit**.
156
+
157
+ ## The final review — once, in this order, then closed
158
+
159
+ The one place this order is written; every other skill points here.
160
+
161
+ 1. **`tighten-paper`** — the structural verdict and the proposed cuts. It applies nothing.
162
+ 2. **`cold-read-diff`** `--whole` — the whole paper in chunks of at most 15 paragraphs, two blind readers
163
+ per chunk; no reader sees more than its chunk.
164
+ 3. **`pc-panel-review`** — one panel, with the reports of steps 1–2 as its inputs.
165
+
166
+ - **Each pass runs once.** "No findings" from any of them is a valid result and ends that pass.
167
+ - **The author decides each finding once**, and the pass's report frontmatter records it
168
+ (`review/frontmatter`): `fixed`, or `wontfix` with a `note` giving his reason; until then it is
169
+ `open`. He decides the findings of steps 1–2 before step 3, and the panel
170
+ receives only those still open; he decides the panel's after step 3. The write happens once, after
171
+ step 3: every accepted fix in one pass, a sentence through `rewrite-unclear`, a cut on his yes. A
172
+ decided finding is not raised again in this review.
173
+ - **Blockers** are a closed list, frozen when the review closes: the panel's consensus must-fixes and
174
+ the cold read's `CANNOT PARSE` rows. Each stops submission until `fixed` or `wontfix` with
175
+ `note: "waived by the author: <reason>"`.
176
+ - **At most one confirmation, and only when the author asks for it:** he names the pass, and it runs once
177
+ on what changed. No pass schedules another, and none reruns because a score is low.
178
+ - **Then the review is closed,** whatever the scores; a blocker still `open` stays open into the checklist.
179
+ Mark the `panel` row of
180
+ `PIPELINE-STATUS.md` `☑ closed <date>`. Ordinary edits, a re-approval (`versions approve`) and a
181
+ gate older than the text do not reopen it; only the author does, by asking for a new final review.
182
+ What is left goes to `harden-paper`, then `submit-paper`.
183
+ - **After close, a cold read of an edit runs only when the author asks.** No skill schedules one.
253
184
 
254
185
  ## 📝 Text pass vs evidence pass — two independent axes, ask which one you want
255
186
 
256
- The author, 2026-08-05 (translated from Russian): *"can we just run the gate on the text? we just
257
- checked the numbers, and now I want to grade the text — assume the numbers are fine."* He is right that these are separable, and
258
- running both when only one is wanted burns an hour for nothing.
259
-
260
- Every gate belongs to exactly one axis. **Sort by what invalidates it**, not by what it reads:
187
+ Every gate but one belongs to one axis. **Sort by what invalidates it**, not by what it reads:
261
188
 
262
189
  | axis | invalidated by | gates |
263
190
  |---|---|---|
264
- | **TEXT** — does the argument land? | a change to the **prose**: any edit, cut, reorder | `structure` tighten-paper · `writing` grade-paper-writing · `arc` argument-arc · the prose lenses of `panel` pc-panel-review |
265
- | **EVIDENCE** — is it true? | a change to the **data, code, or artifact** | `claims` claim-preservation · `cites` verify-citations · `artifact` the artifact-runner lens · the numeric half of `harden` harden-paper |
191
+ | **TEXT** — does the argument land? | a change to the **prose**: any edit, cut, reorder (until the final review is closed) | `structure` tighten-paper · `coldread` cold-read-diff · `arc` argument-arc · the prose lenses of `panel` pc-panel-review |
192
+ | **EVIDENCE** — is it true? | a change to the **data, code, or artifact** | `cites` verify-citations · `artifact` the artifact-runner lens · the numeric half of `harden` harden-paper |
193
+ | **BOTH** — did a rewrite change a claim? | a **prose rewrite after its recorded result**, or a data change | `claims` claim-preservation |
266
194
 
267
195
  **Why this matters more than it looks.** The two axes expire on completely different clocks. Rewriting
268
- a paragraph invalidates every TEXT gate and no EVIDENCE gate. Re-running an experiment does the exact
269
- reverse. Conflating them produces both classic wastes: re-verifying numbers nobody touched, and — worse
196
+ a paragraph invalidates every TEXT gate and `claims`, and no EVIDENCE gate. Re-running an experiment
197
+ invalidates the EVIDENCE gates and `claims`. Conflating them produces both classic wastes: re-verifying numbers nobody touched, and — worse
270
198
  — trusting a readability verdict on prose that has since been rewritten.
271
199
 
272
- **Text-only pass** (the common request, and the right default after a cut, a reorder, or a rewrite where
273
- the numbers did not move): run `structure` and `writing` in parallel, then `panel` with its artifact lens **explicitly
274
- disabled**, and hand each agent the sentence *"assume every number is correct and already verified — do
200
+ **Text-only final review** (the numbers did not move since they were checked): run it with the panel's
201
+ artifact lens **explicitly disabled**, and hand each agent the sentence *"assume every number is correct and already verified — do
275
202
  not re-derive anything; judge the writing, the structure and the argument."* Roughly halves the wall
276
203
  clock and removes the single most expensive stage.
277
204
 
@@ -282,98 +209,16 @@ and the artifact-runner; skip readability entirely.
282
209
  which axis it covered will be read as covering both — which is how a paper ends up believed to be
283
210
  checked on a dimension nobody looked at.
284
211
 
285
- ### 🔢 The one defect neither axis can see: a number correct on both axes and wrong anyway
286
-
287
- **Observed 2026-08-05, on page 1, 29 hours before a deadline.** The abstract read *"147 real rules
288
- files exactly as their projects committed them, 22 fail admission"*. The data has two arms over the
289
- same 147 files: **strict** (files byte-for-byte as committed — nothing fails) and **annotated** (the
290
- same files with the tool's proposed pointers written in — 22 fail). The 22 was from the annotated arm
291
- and was described in the strict arm's words. Five more numbers had the same defect; a sixth was found
292
- later in an appendix by machine, after two people had searched by hand.
293
-
294
- **Every gate passed, and each for a good reason.** `cites` checks the reference is real. `claims` checks the
295
- claim did not grow — and it did not, 22 was always 22. The artifact-runner recomputes the number from
296
- the data and it reconciles, *because the number is correct*. The reading panel takes "unmodified" as a
297
- fact about the world, which is what a reader does. **The defect lives only in the join between a
298
- sentence and a field path, and nothing was holding both.** It is not a TEXT defect and not an EVIDENCE
299
- defect; it is a defect of the edge between them, so no pass on either axis can be made to see it.
212
+ ### 🔢 The one defect neither axis can see
300
213
 
301
- **The construction, not another pass.** A registered quantity is not written as digits at all:
302
-
303
- ```
304
- Over {{corpus.n}} real rules files, with the extractor's proposed mapping
305
- taken as if an author had written it, {{annotated.failedContradicted}} fail admission.
306
- ```
307
-
308
- `<paper>/repro/data/numbers.tsv` gives each name its value, the JSON path or **formula** that recomputes
309
- it, and two guards. The build refuses a PDF unless: the name resolves · the value still matches the
310
- data · the **paragraph** names the arm (`requires`) · the **sentence** does not claim a different one
311
- (`forbids`). Requires and forbids are separate on purpose — the pairing is auditing's, where a control
312
- is tested once for *design* and once for *operating effectiveness*.
313
-
314
- **Why paragraph for one and sentence for the other.** *"Every figure in this paragraph is the
315
- counterfactual arm"* is good writing, and a sentence-scoped `requires` would forbid it. But *"exactly
316
- as committed"* nine words from the number is the defect itself, so `forbids` has to be tight.
317
-
318
- **Coverage without a migration.** `numbers-grandfathered.txt` lists every quantity that predates the
319
- gate; adding a new raw one fails the build. This is `ADD CONSTRAINT ... NOT VALID` — the constraint
320
- binds every row from now on, and the existing rows are *enumerated rather than exempted*, so the file
321
- says out loud how many figures still have no machine-checked path to data. On the paper that has it:
322
- 7 guarded, 248 grandfathered. That ratio is a finding, not a score.
323
-
324
- **Adopting it in another paper:** copy `repro/tools/paper_numbers.py`, `repro/tools/paper_numbers.selftest.py`
325
- and the build step that calls `expand()` on `paper.tex` before `pdflatex`; generate the
326
- grandfather list from the current draft; register the numbers a reviewer will actually check first.
327
-
328
- 🔴 **Do not write the substitution half — it is `jinja2`, and `{{name}}` is already its syntax.**
329
- Eleven candidates were installed and run on a real ACL paper on 2026-08-05. The result is not a
330
- matter of taste:
331
-
332
- | candidate | verdict, from an actual run |
333
- |---|---|
334
- | **jinja2** | **adopt.** Our `{{annotated.failRate}}` was already valid Jinja2; dotted names are attribute access. Zero characters changed in the paper, byte-identical `.tex`. This is Manubot's mechanism, taken without Manubot. Use `StrictUndefined`, and move the block/comment delimiters off `{%`/`{#` if the paper might ever quote a config file |
335
- | **knitr** | equally proven, also byte-identical. Rejected only for putting an R runtime into an artifact that otherwise needs `python3` + `pdflatex` |
336
- | `\newcommand` + `numbers.tex` | works; the folk convention, ~12 GitHub hits, all hand-rolled. No package exists |
337
- | **cog.py** | ❌ line-oriented; cannot substitute mid-sentence |
338
- | **pythontex** | ❌ not in Ubuntu TeX Live at any level, not on PyPI; CTAN zip + `.ins` build |
339
- | **showyourwork** | ❌ it manages *figures*, not in-text numbers |
340
- | DVC · datalad · papermill | orthogonal and **worth adding**: they pin the data file to the pipeline that made it, a layer below anything here |
341
-
342
- **🔴 Computing the value DISSOLVES the freshness problem — do not build a checker for it.** With no
343
- recorded value there is nothing that can go stale, so there is nothing to verify. Adopting jinja2
344
- deleted 137 lines of ours outright: a hand-rolled expression language with an `eval()` sandbox, a
345
- renderer guessing which of six formattings the paper meant, a JSON-path walker and the comparison.
346
- Recording-plus-verifying is the trap; computing is the wheel.
347
-
348
- **Binding a number to its CONDITION is genuinely unoccupied**, and the reason is structural rather
349
- than an accident of packaging: **every literate-programming tool models the paper as a program that
350
- prints text**, so the prose is opaque *output*, not an input to a check. None of them has a hook
351
- where you could say "and the sentence around this must say *counterfactual* and must not say *as
352
- committed*". The near-misses read the manuscript but never the data — `statcheck` recomputes
353
- p-values from statistics printed in the same sentence; `RegCheck` compares a paper to a study
354
- registration with an LLM and reports to a human instead of failing a build. Searched and empty:
355
- GitHub repo search (0 results), the Actions marketplace, the pre-commit hook ecosystem, PyPI, and
356
- the Claude skill marketplaces.
357
-
358
- 🔴 **And it is not a number-keyed table**: the first version keyed rules on the digits, and a paper
359
- printing two unrelated 22s broke it the same hour. Key on the occurrence.
360
-
361
- 🔴 **Hand the gate to a red team the same day you build it.** This one was, and seven holes came
362
- back, the worst being that the original defect could simply be **retyped as digits** — its value was
363
- grandfathered, so the guard applied to the macro and not to the claim. Every hole is now a case in
364
- `repro/tools/paper_numbers.selftest.py` (18/18, including three that must stay **quiet** — a gate that
365
- fires on ordinary writing gets muted, and then its silence reads as coverage).
214
+ A number can be correct on both axes and still be described in the wrong arm's words (the 22 of the
215
+ annotated arm reported as "exactly as committed"). No pass on either axis sees it. Write a registered
216
+ quantity as a name (`{{corpus.n}}`, rendered with jinja2), not as digits, with a guard that the
217
+ paragraph names its arm and the sentence does not claim another. The construction, the tools tried
218
+ and the red-team holes: `docs/design/paper-pipeline-history.md` in the package.
366
219
 
367
220
  ## 🔴 The page limit is a SUBMISSION gate, not an EDIT gate
368
221
 
369
- **Observed failure, `compile-rules-2026`, 2026-08-02/03.** The body oscillated 8 ↔ 9 pages for roughly
370
- fifty iterations. Each time content went in, the page count read 9, and prose came out to get back to
371
- 8 — sixty characters at a time. Every individual cut looked harmless. Their sum is the unanimous 2/5
372
- for clarity: the first compression took real repetition, the second had none left and took
373
- transitions, antecedents and the conclusion's honest half. The structural pass named the arithmetic —
374
- 780 words of genuine repetition removed, then 880 words in and 480 out, leaving the paper 51 words
375
- *heavier* than before the pass that cut 780.
376
-
377
222
  **The rule.** Content work runs OVER the limit on purpose. Compression is **one pass, at the end**,
378
223
  when the content has settled — with a whole-draft view, so it can move a section instead of shaving a
379
224
  clause. Going over during drafting is not a problem to fix; it is the normal state of a paper that is
@@ -381,66 +226,31 @@ still growing.
381
226
 
382
227
  **The trigger to catch yourself:** you just added something, ran the page count, saw it over, and
383
228
  started looking for words to remove **in the section you were just editing**. That is the failure, in
384
- progress. The page count is information for the end of the work, not an alarm during it. (The author's
385
- own words on catching it, translated from Russian: *"you're cutting the text right away — dunno if that really needs doing immediately."*)
229
+ progress. The page count is information for the end of the work, not an alarm during it.
386
230
 
387
231
  **What is still continuous:** rendering, and looking at pages 1–2. Seeing the number is fine. Acting
388
232
  on it is what waits.
389
233
 
390
- 🔴 **Every round adds text; pay it back — in ONE pass.** Review is a ratchet — fixes are additive, so a
391
- paper that survives three rounds is longer and denser than the one that entered them. On `compile-rules-2026` the
392
- body oscillated 8 ↔ 9 pages for ~50 iterations, and the squeezing is what produced the unanimous 2/5 on
393
- clarity: the first compression took real repetition, the second had none left and took transitions,
394
- antecedents and the conclusion's honest half. After each round's fixes, run `tighten-paper` — and if the
395
- page limit is binding, **move** rather than delete (Limitations and Ethics do not count toward ACL page
234
+ 🔴 **Length is paid in ONE pass: the final review's `tighten-paper` step.** If the page limit is
235
+ binding, **move** rather than delete (Limitations and Ethics do not count toward ACL page
396
236
  limits). The trap in that move is real and named in `references/acl-venue-rules.md`: relocating a caveat
397
237
  while its flattering number stays in the body is exactly the asymmetry reviewers punish.
398
238
 
399
- **Anti-churn ≠ skipping unrun gates.** "Don't loop past one confirming round" forbids *re-polishing prose
400
- that already passed a gate* — it does NOT license *skipping a gate that never ran*. A `☐` row in
401
- `PIPELINE-STATUS.md` for **study-accepted-papers, pc-panel-review, or full harden-paper** is an unrun
402
- quality gate, not churn: **if capacity exists, run it before calling the paper done.** (This session
403
- skipped those three under an "anti-churn" rationalization on a submitted paper; when the user forced them,
404
- the pc-panel caught real must-fixes — a release overclaim and an unsupported number — that the skip would
405
- have shipped.) Churn is re-touching FINE prose; a never-run gate is a hole. If a real
239
+ **A gate that never ran is a hole, not churn.** A `☐` `panel` or `harden` row means the final review
240
+ or the checklist has not run on this paper; it runs once. If a real
406
241
  objection is out of scope, name it in Threats to Validity (adversarial reviewers read Threats first; an
407
242
  honest limitation reads as strength).
408
243
 
409
244
  **A `☐` in GATES is a hole. A `☐` in CONTINUOUS is worse** — it means the check exists, ran once, and
410
245
  has been silently stale ever since. That is the shape of every failure this pipeline has actually had.
411
246
 
412
- ## ⏱️ What each stage actually costs — MEASURED, not estimated
413
-
414
- The author, 2026-08-05, watching a run he could not size (translated from Russian): *"is it worth
415
- writing the timing problem into the pipeline skill?"*. Yes — because the project already forbids guessing here. The rule in the papers tree's own `CLAUDE.md`
416
- says an estimate must be decomposed into labour / calendar / result-risk / access and **spiked
417
- rather than guessed**, and the same session it was written I still launched an experiment with no
418
- upper bound and had to cut it four hours later.
419
-
420
- Every number below is subagent **wall clock, measured on 2026-08-04/05** while finishing
421
- `compile-rules-2026`. They are one machine, one paper, one day — treat them as an order of
422
- magnitude, not a promise. Re-measure rather than inherit.
423
-
424
- | stage | measured | note |
425
- |---|--:|---|
426
- | `verify-citations`, one reference | **3 min** | sonnet; a fetch and a comparison |
427
- | `verify-citations`, eight references | **3 min** | the fetches parallelise; count barely matters |
428
- | a single reconciliation ("do these two numbers agree?") | **4 min** | sonnet, over committed data |
429
- | a second-rater pass over ~20 rows | **8 min** | opens every cited file |
430
- | a process/mechanism research pass (docs + source + issue tracker) | **10 min** | |
431
- | `pc-panel-review`, full panel + chair | **17 min** | unchanged for the confirming round |
432
- | `grade-paper-writing` incl. the persona cold read | **20 min** | |
433
- | bundling an experiment into the artifact + gate + re-zip | **24–39 min** | scales with directories, not bytes |
434
- | a design/measurement **spike** (feasibility, a handful of cells) | **27 min** | |
435
- | `tighten-paper` applied, with a loss letter | **34 min** | includes several build round-trips |
436
- | `harden-paper` | **36 min** | the widest gate; it runs the artifact |
437
- | **an experiment with real checkouts and installed dependencies** | **≈4 h for 143 cells** | median cell **76 s**; the outlier by an order of magnitude |
247
+ ## ⏱️ What each stage costs
248
+
249
+ Measured wall clock per stage (one machine, one paper; re-measure rather than inherit): `docs/design/paper-pipeline-history.md` in the package.
438
250
 
439
251
  **What the shape tells you, which matters more than the rows.**
440
252
 
441
- - **A full gate cycle — `tighten` → `grade` → `panel` — is about 1.2 hours.** That is cheap enough
442
- to run after any substantial edit, and there is no excuse for a stale gate on a paper you are
443
- still touching.
253
+ - **The final review is measured in tens of minutes** (`tighten-paper` 34 min, `pc-panel-review` 17 min). It runs once, not after each edit.
444
254
  - **Reading, checking and reviewing are all minutes.** Anything whose cost is dominated by fetching,
445
255
  parsing or judging text lands in the 3–40 minute band regardless of how important it feels.
446
256
  - 🔴 **Anything that installs dependencies and runs an agent inside a real checkout is hours, and
@@ -454,15 +264,14 @@ magnitude, not a promise. Re-measure rather than inherit.
454
264
  ## Model policy (which model runs which stage)
455
265
  Single home for the whole suite — stage skills point here instead of each re-deciding. Default:
456
266
  - **Adversarial / red-team / verify a claim** → **Fable** (a separate model; never the author grading
457
- itself): `paper-adversarial-review`, `pc-panel-review` reviewers, `harden-paper` threat-model +
458
- citability red-team, disputed `verify-citations` verdicts.
267
+ itself): `pc-panel-review` reviewers, disputed `verify-citations` verdicts.
459
268
  - **Heavy generation / synthesis** → the session's main model (**Opus**): `draft-paper`,
460
269
  `build-benchmark` design, `extend-paper`, `research-ideate`.
461
270
  - **Cheap bulk fetch / extraction** → **Haiku** (or Sonnet): `study-accepted-papers` corpus pull,
462
271
  `plan-paper-timeline`.
463
272
  - **No model at all (mechanical)** → `verify-citations`'s `../verify-citations/scripts/verify-cites.mjs` reducer,
464
- `harden-paper`'s `check-*.sh` linters, `render-paper` toolchain.
465
- - **Judge panels use DIVERSE models, not N copies of one** → `grade-paper-writing`, `pc-panel-review`:
273
+ `harden-paper`'s `check-*.sh` linters, `paperlint build`.
274
+ - **Judge panels use DIVERSE models, not N copies of one** → `pc-panel-review`:
466
275
  mix Opus + Fable + Sonnet so independent lenses catch what redundancy can't.
467
276
 
468
277
  Override per call when a stage clearly needs otherwise; this is the default, not a straitjacket.
@@ -472,10 +281,3 @@ Override per call when a stage clearly needs otherwise; this is the default, not
472
281
  - **Never fabricate** a citation, number, or result. Mark `% VERIFY` and check (`verify-citations`).
473
282
  - **Commit + push after each stage**, keep the tree clean (resume-safe across `/compact`); update
474
283
  `<papers-root>/research/README.md` in the same commit as any new research file (its CLAUDE.md enforces this).
475
- - **Two roles, never double-counted:** authoring = the *authorship* criterion; reviewing others at the
476
- venue (the organizer review-offer email) = the *judging* criterion — a separate credential.
477
-
478
- ## Provenance
479
- Two real papers this session ran this pipeline end-to-end: **AgenticDev 2026 @ ASE** ("Measuring the
480
- Wrong Number," ~90%, submitted #20) and **AISec 2026 @ ACM CCS** ("Safety Theater," Weak-Accept→~87–88%
481
- after a panel round + confirm). The stage skills and shared refs are distilled from exactly those runs.