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
package/docs/render.md ADDED
@@ -0,0 +1,82 @@
1
+ # Building and looking at the paper
2
+
3
+ Three commands turn `paper.tex` into a PDF you can trust and pages you can read on a phone. None of
4
+ them judges the writing; they say whether the paper builds clean.
5
+
6
+ ```sh
7
+ npx paperlint toolchain # TeX Live with the venue's packages, once
8
+ npx paperlint build papers/my-paper # the PDF and its facts
9
+ bash node_modules/paperlint/skills/render-paper/check-render.sh papers/my-paper # the render gate
10
+ ```
11
+
12
+ ## The toolchain
13
+
14
+ `npx paperlint toolchain` installs TeX Live with exactly the packages the venue presets declare, and
15
+ banal (HotCRP's page-geometry script). `--check` reports what is missing and changes nothing. Where
16
+ it installs, what it needs and why: [toolchain.md](toolchain.md). The package list lives in the venue
17
+ presets (`presets/*.jsonc`, the `tex` block; `tex-base.jsonc` for every paper) and nowhere else: a
18
+ TeX Live without `libertine` builds an acmart paper green in Computer Modern, which is why the files
19
+ are checked, not the exit code.
20
+
21
+ ## Compile
22
+
23
+ `npx paperlint build <paper-dir>` picks a TeX Live that has every package the venue declares,
24
+ runs pdflatex and bibtex until the references settle, fails on an undefined `\ref` or `\cite`
25
+ through `presets/tex/paper-guards.tex`, then measures the PDF into `_build/paper.facts.json` (fonts,
26
+ Type 3, the last page's column heights). It judges nothing; the lint rules read the facts file.
27
+ Without a terminal and without a qualifying TeX Live it stops with one line naming
28
+ `npx paperlint toolchain`.
29
+
30
+ ## The render gate
31
+
32
+ An overfull box on page 9 (text or a table bleeding past the column into the margin) is invisible
33
+ on pages 1 and 2. LaTeX reports every one in the log, and `check-render.sh` turns them into an exit
34
+ code:
35
+
36
+ ```sh
37
+ bash node_modules/paperlint/skills/render-paper/check-render.sh <paper-dir> [texbasename=paper] [threshold_pt=5]
38
+ ```
39
+
40
+ It compiles, then exits 1 on any `Overfull \hbox` at or over the threshold, any `Overfull \vbox`,
41
+ or any undefined reference, citation or control sequence. It warns on a literal space inside
42
+ `\texttt{…}` (failure 6 below). A paper renders clean when it exits 0. The usual fixes:
43
+
44
+ - a long `\texttt{…}`, a literal command or a URL: `\seqsplit{}`, `\url{}` (breakable), a `p{width}`
45
+ table column instead of `l`, or `\small` / `\footnotesize` on the block;
46
+ - a wide table: `\small` and fixed-width `p{}` columns so cells wrap, or
47
+ `\resizebox{\columnwidth}{!}{…}`.
48
+
49
+ ## Known failures
50
+
51
+ 1. **`pdfTeX error (font expansion): auto expansion is only possible with scalable fonts`.** acmart
52
+ with microtype wants Libertine outlines. Add `\microtypesetup{expansion=false}` after
53
+ `\documentclass`.
54
+ 2. **`Undefined control sequence \lesssim` / `\gtrsim`.** Add `\usepackage{amssymb}`, or write `\le` /
55
+ `\ge`.
56
+ 3. **A bibliography in `\begin{filecontents*}[overwrite]{refs.bib}`** keeps the paper one file, and
57
+ overwrites `refs.bib` on every build: fix a citation inside the block, never in `refs.bib`.
58
+ Ignore the generated `refs.bib` in git so it cannot drift from the block.
59
+ 4. **Double-blind.** ACM: `\documentclass[sigconf,review,anonymous]{acmart}`, author
60
+ `Anonymous Author(s)`. `anonymity/identity` checks the built PDF against the paper's `identity`.
61
+ 5. **Build files in git.** Ignore `*.aux *.log *.out *.bbl *.blg`; keep `paper.pdf` only if you mean to.
62
+ 6. **A shell command in `\texttt{}` breaks at its inner space** (`rm` ⏎ `-rf`). The break is legal, so
63
+ no overfull warning fires. Tie the command's tokens with `~` (`\texttt{rm~-rf~/}`) or wrap them in
64
+ `\mbox{}`; the space before an argument may stay breakable.
65
+ 7. **The page count comes from the built PDF, not from a label in the `.aux`.** An `.aux` label
66
+ reflects the previous build's pagination. `format/page-limit` reads the body pages from the facts
67
+ file of the current build.
68
+
69
+ ## Pages as images
70
+
71
+ Reading the pages needs [PyMuPDF](https://pymupdf.readthedocs.io/) (`pip install pymupdf`):
72
+
73
+ ```sh
74
+ python3 -c "import fitz; d=fitz.open('paper.pdf'); \
75
+ [d[i].get_pixmap(dpi=200).save(f'p{i+1}.png') for i in range(d.page_count)]; \
76
+ print('rendered', d.page_count)"
77
+ ```
78
+
79
+ 200 DPI reads on a phone; 150 is a quick preview, 300 a print check. Write the images outside the
80
+ repository. The render gate cannot see collisions inside a figure (a legend on an axis tick, TikZ
81
+ nodes overlapping), colour and legibility, or misaligned sub-figures: look at every page with a
82
+ figure.
@@ -14,8 +14,9 @@ ignored. `aisec-2026`, `aisec_2026` and `aisec2026` all name AISec; `overrealm`
14
14
  name REALM. A venue name of several words (`ACM CCS`) counts only when its words stand in a row.
15
15
 
16
16
  The venue names come from the preset registry: every shipped preset's label (`aisec`) and its `name`
17
- and `aliases` (`AISec`, `ACM CCS`), collected along `extends` — the same names `tex/venue-leftover`
18
- looks for in the text. A venue with no shipped preset is not recognized.
17
+ and `aliases` (`AISec`), collected along `extends` — the same names `tex/venue-leftover` looks for in
18
+ the text. A venue with no shipped preset is not recognized. The names of the conference the paper's
19
+ venue is held at (its `parent`) are the paper's own.
19
20
 
20
21
  ## Why
21
22
 
@@ -41,14 +42,16 @@ papers/aisec-2026/PIPELINE-STATUS.md
41
42
  paper/folder-venue-leftover
42
43
  ```
43
44
 
44
- Named by an alias, the message says which: `papers/acm-ccs-agents/` under `paperlint:aidc` names
45
- `aisec («ACM CCS»)`.
45
+ Named by an alias, the message says which: `papers/emnlp-agents/` under `paperlint:aidc` names
46
+ `REALM («EMNLP»)`.
46
47
 
47
48
  Passing:
48
49
 
49
50
  - `papers/agent-rule-drift/` — names no venue;
50
51
  - `papers/aidc-2026/` or `papers/acsac-2026/` under `paperlint:aidc` — the paper's own venue, by its
51
52
  label or its alias;
53
+ - `papers/ase-agents/` under `paperlint:agenticdev` — the conference the workshop is held at
54
+ (`"parent": "paperlint:ase"`); under `paperlint:aidc` the same folder names ASE;
52
55
  - `papers/overrealm-study/` — `realm` inside another word is that other word;
53
56
  - any folder whose `paperlint.json` has no `extends` yet, or none at all;
54
57
  - `papers/secure-acsac24/` under `paperlint:ieee-conference` — a bare template family names no venue.
@@ -59,11 +62,11 @@ No rule options. It reads each shipped preset's `name` and `aliases`, the fields
59
62
  `tex/venue-leftover` reads too:
60
63
 
61
64
  ```jsonc
62
- "aliases": ["AISec", "ACM CCS"]
65
+ "aliases": ["AISec"],
66
+ "parent": "paperlint:ccs"
63
67
  ```
64
68
 
65
- A name the paper's own chain also declares (two workshops of one parent conference) is never
66
- reported.
69
+ A name the paper's own chain also declares, or its `parent` conference's, is never reported.
67
70
 
68
71
  ## What it does not check
69
72
 
@@ -87,8 +87,7 @@ source, and record them (`anchorOf` in `src/register-bands.ts` is the one way an
87
87
  ## What it does not check
88
88
 
89
89
  Whether a given frame is needed. A frame is the right sentence where a reader would otherwise assume
90
- the rejected alternative; the rule counts, and judging each one is the job of the `grade-paper-writing`
91
- skill. It does not read a frame split over two sentences (_It is fast. Not exact._), a negation by
90
+ the rejected alternative; the rule counts, and judging each one is a reader's job. It does not read a frame split over two sentences (_It is fast. Not exact._), a negation by
92
91
  synonym (_ignores_, _fails to_), or anything in the appendix.
93
92
 
94
93
  ## How to fix
@@ -0,0 +1,82 @@
1
+ # tex/max-caption-words
2
+
3
+ **Level:** off by default · **Reads:** `paper.tex` and the files it includes
4
+
5
+ ## What it catches
6
+
7
+ Two things, both a caption that is too long:
8
+
9
+ - a caption longer than `max` words (default 100, so a 101st word fires), reported at its `\caption`;
10
+ - a sentence of a caption longer than `maxSentence` words (default 40), reported at its start.
11
+
12
+ Captions sit in floats, outside the body every other prose rule reads, so without this rule nothing
13
+ counts their words. One rule with two options, as ESLint's `max-len` has `comments`: both findings
14
+ are a caption too long, and an author switches them off for the same reason.
15
+
16
+ ## How it counts
17
+
18
+ - Every `\caption` a reader sees: its last mandatory argument, whatever optional argument
19
+ (`\caption[Short]{…}`), star or space comes before it. Not one in a comment, in `verbatim` or in a
20
+ macro's definition. A caption with no word is left out.
21
+ - Words and sentences as the body rules count them ([`tex/max-sentence-words`](max-sentence-words.md)):
22
+ a citation, a cross-reference or a formula is one word; a bold label ending in a stop
23
+ (`\textbf{Overview.}`) is a sentence of its own.
24
+
25
+ ## Turning it on
26
+
27
+ ```json
28
+ {
29
+ "rules": {
30
+ "tex/max-caption-words": ["warn", { "max": 100, "maxSentence": 40 }]
31
+ }
32
+ }
33
+ ```
34
+
35
+ No call for papers states a caption limit, so no venue preset carries the numbers. See
36
+ [optional rules](../../optional-rules.md).
37
+
38
+ ## Why
39
+
40
+ A reader reads a caption in one pass with its figure. A caption that holds the method is a section
41
+ under a picture.
42
+
43
+ **Where 100 and 40 come from.** They are carried over unchanged from the prose counter this rule
44
+ replaced, where they were set from one paper's own four
45
+ captions. They are not calibrated on accepted papers. On the real-papers corpus (114 papers, the
46
+ files each build recorded spliced in), measured 2026-11-19 with this rule's counter:
47
+
48
+ | | captions over 100 words | caption sentences over 40 words |
49
+ | --------------------------- | ----------------------- | ------------------------------- |
50
+ | the 5 accepted ACSAC papers | 0 | 0 |
51
+ | all 114 papers | 42, in 22 papers | 108, in 34 papers |
52
+
53
+ With both checks, 39 of the 114 papers fire at least once; as a default the rule would speak on
54
+ about one paper in three, so it ships off.
55
+
56
+ ## Examples
57
+
58
+ ```latex
59
+ \caption{Results. We ran each agent five times on every task, then ... (120 words)} % fires
60
+ \caption{Pass rate by model; error bars are 95\% intervals.} % passes
61
+ ```
62
+
63
+ ## Options / preset fields
64
+
65
+ - `max`: the largest caption, in words, that does not fire; default 100.
66
+ - `maxSentence`: the largest caption sentence, in words, that does not fire; default 40.
67
+
68
+ No preset field.
69
+
70
+ ## What it does not check
71
+
72
+ - Whether a long caption is needed: a self-contained legend of a dense table. Suppress that one with
73
+ `% eslint-disable-next-line tex/max-caption-words`.
74
+ - A caption built by a macro (`\figcap{…}`), and text inside an included PDF figure.
75
+ - `\captionof` and `\subcaption`.
76
+ - An include the last build did not record: with no current `_build/sources.json`, the paper is
77
+ `paper.tex` alone.
78
+
79
+ ## How to fix
80
+
81
+ Move the method into the body and keep in the caption what the figure shows; cut a long caption
82
+ sentence where a clause could stand alone.
@@ -29,8 +29,8 @@ or in one paper's own `paperlint.json`, for that paper alone. See
29
29
  ## Why
30
30
 
31
31
  A reader sees a paragraph's length before reading a word. A page-long block is skimmed past, and what
32
- the argument turns on in the middle of it is lost. 150 is the wall the `grade-paper-writing` skill
33
- names; it is a general default, not a venue's.
32
+ the argument turns on in the middle of it is lost. 150 is the wall `writing-craft.md` names (its
33
+ "wall-of-text check"); it is a general default, not a venue's.
34
34
 
35
35
  Measured with this rule's own counter on the accepted papers of `fixtures/accepted-papers/`
36
36
  (p50 / p95 / p99 / max in words; one finding per paragraph over 150):
@@ -0,0 +1,96 @@
1
+ # tex/negated-sentences
2
+
3
+ **Level:** off by default · **Reads:** `paper.tex` and the files it includes → `paperlint.json`
4
+
5
+ ## What it catches
6
+
7
+ A body in which the share of sentences holding a negator runs outside the band the accepted papers
8
+ of its venue set. It is a share of the body's sentences, in percent, not a rate per words: a
9
+ sentence with two negators counts once. The negators are the list the earlier prose counter
10
+ used, whole words, case ignored:
11
+
12
+ > not, no, none, never, cannot, n't, neither, nor, without, fail to (fails to, failed to), unable
13
+
14
+ `n't` is matched where it ends a word (_don't_, _isn't_); the counter it came from wrote it as a
15
+ whole word and so never matched it.
16
+
17
+ Above or below the band it reports once, at the start of the body: the count, the share, the band
18
+ and the anchors' own range, and — above it — the first three sentences. A body under 2 000 words is
19
+ not judged, and neither is a paper whose preset records no negation for its anchors.
20
+
21
+ It reads the same body as [`tex/contrast-frames`](contrast-frames.md): from the start of the
22
+ document, the abstract included, to `\appendix` or the bibliography, includes spliced in; headings,
23
+ run-in headings, captions, tables, figures and code are not prose.
24
+
25
+ 🔴 **A contrast frame is counted here too.** _X, not Y_ and _not X but Y_ hold a negator, so a
26
+ sentence with one adds to this share and to [`tex/contrast-frames`](contrast-frames.md). Turning
27
+ both on judges that sentence twice; read the two findings as one before rewriting.
28
+
29
+ ## Turning it on
30
+
31
+ ```json
32
+ {
33
+ "rules": { "tex/negated-sentences": "warn" }
34
+ }
35
+ ```
36
+
37
+ It ships off: it is a writing measure, and what share of negation a paper needs is a judgement the
38
+ venue does not state. See [optional rules](../../optional-rules.md).
39
+
40
+ ## Why
41
+
42
+ A paper that says what a thing is not, sentence after sentence, reads as an argument with an
43
+ absent opponent. Measured with this rule's counter on the LaTeX source, with each paper's includes
44
+ spliced from its recorded build (2026-11-19):
45
+
46
+ | paper | sentences | negated | share |
47
+ | ----------------------------------------- | --------: | ------: | ----: |
48
+ | `barovox-acsac24` (ACSAC 2024) | 400 | 21 | 5.3% |
49
+ | `rr-dataset-quality-acsac24` (ACSAC 2024) | 368 | 26 | 7.1% |
50
+ | `secure-acsac24` (ACSAC 2024) | 368 | 28 | 7.6% |
51
+ | `leaking-queries-acsac25` (ACSAC 2025) | 441 | 36 | 8.2% |
52
+ | `llm-splained-acsac25` (ACSAC 2025) | 454 | 81 | 17.8% |
53
+ | `agenticdev-acm26` (ours, ACM) | 171 | 63 | 36.8% |
54
+
55
+ Over the 106 arXiv preprints of `fixtures/arxiv-papers/` with more than 2 000 words of body, the
56
+ share runs from 2.6% to 38.7%, median 13.3%, and 26 of them stand above AIDC's band. The measure
57
+ separates a paper that argues by negation from the venue's accepted ones; whether a given paper
58
+ should change is the author's call.
59
+
60
+ ## Examples
61
+
62
+ ```latex
63
+ The gate does not parse the command; it never reads the operation. % negated
64
+ The gate matches the words of a command and blocks on a match. % not negated
65
+ ```
66
+
67
+ ## Options / preset fields
68
+
69
+ No rule options. The band is the preset's: each anchor in `register.anchors` records its body's
70
+ `sentences` and its `negated_sentences`, both or neither, beside the counts the other band rules read:
71
+
72
+ ```jsonc
73
+ "register": {
74
+ "anchors": [
75
+ { "paper": "barovox-acsac24", "words": 7670, "contrast_frames": 1, "claim_emphasis": 8,
76
+ "relation_markers": 31, "sentences": 400, "negated_sentences": 21 }
77
+ ]
78
+ }
79
+ ```
80
+
81
+ The band is the anchors' range of shares widened at each end by two Poisson standard deviations of
82
+ the anchor standing there, as for the other band rules. For `paperlint:aidc` the anchors are the five
83
+ accepted ACSAC papers above: their shares run **5.3–17.8%**, and the band is **3.0–21.8%**.
84
+ `src/register-bands.test.ts` re-measures every anchor that has a fixture. An anchor without the two
85
+ fields sets no band, so a preset written before this rule leaves it silent.
86
+
87
+ ## What it does not check
88
+
89
+ Whether a negation is needed: a limitation, a threat to validity and a null result are negative by
90
+ nature. A negation by a word outside the list (_lacks_, _absent_, _ignores_, _nothing_), and anything
91
+ in the appendix, are not counted.
92
+
93
+ ## How to fix
94
+
95
+ Say what a thing is and does, with the evidence; keep a negation where a reader would otherwise
96
+ assume the opposite. Check after a rewrite that no claim was softened or strengthened.
@@ -0,0 +1,103 @@
1
+ # tex/term-before-definition
2
+
3
+ **Level:** off by default · **Reads:** `paper.tex` and the files it includes
4
+
5
+ ## What it catches
6
+
7
+ A term the body defines, used before that definition. A paper that sets a new word in italics where
8
+ it explains it (`a file the two readings disagree on is a \emph{witness}`) has marked the definition;
9
+ a reader who meets the word earlier meets it with no meaning. The rule reports once per term, at the
10
+ **first** earlier use, with the command and place of the definition and how many uses come before it.
11
+
12
+ When the rule is on and the body sets no term with the configured commands, it reports that once, at
13
+ the body's start: a rule that checks nothing must not look like a clean pass.
14
+
15
+ ## What counts as a definition
16
+
17
+ A phrase set with a command in `commands` (default `\emph` alone) that:
18
+
19
+ - stands in the body, after the abstract and before `\appendix` or the bibliography;
20
+ - is not a run-in heading (`\emph{Scope.} …` opening a paragraph). A list item's label without a
21
+ stop (`\item \emph{Gate}: blocks …`) is a definition;
22
+ - is 1 to `maxWords` words (default 4);
23
+ - holds no digit and does not end on `.`, `:`, `;`, `,`, `!` or `?`;
24
+ - holds at least one word that is not a function word (a closed list of about 100 articles,
25
+ conjunctions, negations, quantifiers, modals, pronouns, prepositions and auxiliaries in
26
+ `src/domain/term-definitions.ts`: `\emph{not}` stresses a word, it defines none).
27
+
28
+ ## What counts as a use
29
+
30
+ - The term in a sentence of the body: paragraphs, list items, footnotes; never a heading, a caption,
31
+ a float, a table, code or math.
32
+ - Whole words, case ignored, any spacing between the words of a multi-word term. A term written in
33
+ capitals (`CI`) keeps its case.
34
+ - The last word as written, with `s`, with `es`, `y` → `ies`, or — when it ends in `s` — without it.
35
+ - Not a use: one in the abstract (a summary read on its own), and one in the sentence that holds the
36
+ definition (`a file, which we call a \emph{witness}` defines once).
37
+
38
+ ## Turning it on
39
+
40
+ ```json
41
+ {
42
+ "rules": {
43
+ "tex/term-before-definition": [
44
+ "warn",
45
+ { "commands": ["emph"], "maxWords": 4 }
46
+ ]
47
+ }
48
+ }
49
+ ```
50
+
51
+ `warn` is the level to use: `error` makes the edit hook block, and on the papers below a share of
52
+ the findings are italics used for stress. See [optional rules](../../optional-rules.md).
53
+
54
+ ## Why it is off by default
55
+
56
+ The rule is right only for a paper that marks its definitions with the commands it reads. On the
57
+ real-papers corpus (`fixtures/accepted-papers/`, `fixtures/arxiv-papers/`; 114 papers, each with the
58
+ files its build recorded spliced in), with the default options, measured 2026-11-19:
59
+
60
+ | | papers | findings |
61
+ | ------------------------------------------------------------------------ | --------- | -------- |
62
+ | a term used before its definition | 61 | 299 |
63
+ | a term defined twice ([`tex/term-defined-twice`](term-defined-twice.md)) | 40 | 176 |
64
+ | either | 64 of 114 | |
65
+ | no term set with `\emph` (the "checks nothing" notice) | 38 | 38 |
66
+
67
+ The findings were not judged one by one. A sample reads as a mix: real terms used early
68
+ («bilateral trade», «simulation corpus») and words in italics for stress («below», «better»). Among
69
+ other people's papers, italics mostly stress a word or label an item; a paper that uses them to
70
+ define one is the paper this rule is for.
71
+
72
+ ## Examples
73
+
74
+ ```latex
75
+ A gate runs before every call. % fires: «gate» before its definition
76
+ ...
77
+ A \emph{gate} is a check that blocks a call.
78
+ ```
79
+
80
+ ```latex
81
+ A \emph{gate} is a check that blocks a call. % passes: defined, then used
82
+ The gate holds.
83
+ ```
84
+
85
+ ## Options / preset fields
86
+
87
+ - `commands`: the commands that mark a definition. Any of `emph`, `textit`, `textsl`, `textbf`,
88
+ `underline`, `uline`, `em`, `itshape`, `it`, `slshape`, `bfseries`, `bf`; default `["emph"]`.
89
+ - `maxWords`: the longest phrase read as a term; default 4.
90
+
91
+ No preset field.
92
+
93
+ ## What it does not check
94
+
95
+ - A term defined in plain words without the marking command (`we call such a file a witness`).
96
+ - Whether an earlier use already explains itself (`eligible requirements, those that …`).
97
+ - Synonyms, hyphen variants, irregular plurals: `witnesses` is not `witness`.
98
+ - A term used only inside a macro (`\toolname`), a caption, a table or a heading.
99
+ - A dedicated definition macro such as `\defn{…}`: an unknown macro's argument is not read as prose.
100
+
101
+ ## How to fix
102
+
103
+ Move the definition to the first use, or say at the first use in plain words what the term means.
@@ -0,0 +1,62 @@
1
+ # tex/term-defined-twice
2
+
3
+ **Level:** off by default · **Reads:** `paper.tex` and the files it includes
4
+
5
+ ## What it catches
6
+
7
+ A term set as a definition a second time. A reader who sees a word marked as a definition again
8
+ wonders whether it names a new idea. The rule reports at each later definition and names where the
9
+ first one stands.
10
+
11
+ What a definition is — the commands, the word count, the filters, the abstract left out — is the same
12
+ as for [`tex/term-before-definition`](term-before-definition.md#what-counts-as-a-definition). Two
13
+ definitions are of one term when their text is the same, case ignored (a term written in capitals
14
+ keeps its case).
15
+
16
+ ## Turning it on
17
+
18
+ ```json
19
+ {
20
+ "rules": {
21
+ "tex/term-defined-twice": ["warn", { "commands": ["emph"], "maxWords": 4 }]
22
+ }
23
+ }
24
+ ```
25
+
26
+ It is a separate rule from `tex/term-before-definition` because an author may keep a definition in
27
+ the introduction and again in the method on purpose, and still want to know where a word comes before
28
+ its meaning. See [optional rules](../../optional-rules.md).
29
+
30
+ ## Why it is off by default
31
+
32
+ On the real-papers corpus (114 papers), with the default options, it reports 176 findings in 40
33
+ papers (measured 2026-11-19; the table is on the
34
+ [`tex/term-before-definition` page](term-before-definition.md#why-it-is-off-by-default)). Italics
35
+ used for stress repeat as often as definitions do.
36
+
37
+ ## Examples
38
+
39
+ ```latex
40
+ A \emph{witness} is a file the two readings disagree on.
41
+ ...
42
+ Each \emph{witness} is kept. % fires: defined again
43
+ ```
44
+
45
+ ```latex
46
+ A \emph{witness} is a file the two readings disagree on.
47
+ ...
48
+ Each witness is kept. % passes: later mentions in roman
49
+ ```
50
+
51
+ ## Options / preset fields
52
+
53
+ `commands` and `maxWords`, as for [`tex/term-before-definition`](term-before-definition.md#options--preset-fields). No preset field.
54
+
55
+ ## What it does not check
56
+
57
+ Whether the second definition is a deliberate gloss followed by a full definition; a definition in
58
+ plain words; `witnesses` against `witness`.
59
+
60
+ ## How to fix
61
+
62
+ Keep one definition and set later mentions in roman, or point back to the first one.
@@ -9,7 +9,8 @@ left over from an earlier submission: "Submission to VenueA 2026" in the author
9
9
  now going to VenueB.
10
10
 
11
11
  It only knows the venues paperlint ships a preset for, by each preset's `name` and `aliases`. A
12
- venue with no preset is not recognized.
12
+ venue with no preset is not recognized. The names of the conference the paper's venue is held at
13
+ (its `parent`) are the paper's own, and never reported.
13
14
 
14
15
  It reads the whole paper — `paper.tex` with the files it `\input`s, `\include`s or `\subfile`s
15
16
  spliced in; a name found in an included file is reported at that include, with the file and line at
@@ -57,6 +58,17 @@ No rule options. It reads every shipped preset's `name` and `aliases`, collected
57
58
  A name the paper's own chain also declares (two workshops of one parent conference) is never
58
59
  reported.
59
60
 
61
+ ```jsonc
62
+ "parent": "paperlint:ase"
63
+ ```
64
+
65
+ The conference a workshop is held at. Its `name` and `aliases`, and its own parent's, count as the
66
+ paper's own: under `paperlint:agenticdev`, whose parent is `paperlint:ase`, «a workshop of ASE 2026»
67
+ is silent; under `paperlint:aidc`, the same sentence reports «ASE» once, as ASE. A conference's names
68
+ belong to its own preset, not to each workshop's `aliases`, so another venue's paper that names it
69
+ is reported once, as that conference: «ACM CCS 2026» in an AIDC paper names ACM CCS, not AISec. A
70
+ `parent` that does not resolve to a venue preset, or parents that name each other, are refused.
71
+
60
72
  ```jsonc
61
73
  "mentions": "with-year"
62
74
  ```