paperlint 3.2.0 → 4.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 (442) hide show
  1. package/.github/workflows/ci.yml +16 -23
  2. package/CLAUDE.md +33 -13
  3. package/CONTRIBUTING.md +23 -7
  4. package/README.md +11 -8
  5. package/dist/adapters/banal/failure.d.ts +1 -7
  6. package/dist/adapters/banal/failure.d.ts.map +1 -1
  7. package/dist/adapters/banal/failure.js +5 -7
  8. package/dist/adapters/banal/failure.js.map +1 -1
  9. package/dist/adapters/banal/index.d.ts.map +1 -1
  10. package/dist/adapters/banal/index.js +8 -11
  11. package/dist/adapters/banal/index.js.map +1 -1
  12. package/dist/adapters/banal/install.d.ts.map +1 -1
  13. package/dist/adapters/banal/install.js +4 -3
  14. package/dist/adapters/banal/install.js.map +1 -1
  15. package/dist/adapters/banal/invocation.d.ts +10 -5
  16. package/dist/adapters/banal/invocation.d.ts.map +1 -1
  17. package/dist/adapters/banal/invocation.js +13 -1
  18. package/dist/adapters/banal/invocation.js.map +1 -1
  19. package/dist/adapters/banal/locate.d.ts +12 -9
  20. package/dist/adapters/banal/locate.d.ts.map +1 -1
  21. package/dist/adapters/banal/locate.js +19 -12
  22. package/dist/adapters/banal/locate.js.map +1 -1
  23. package/dist/adapters/banal/run.d.ts +10 -1
  24. package/dist/adapters/banal/run.d.ts.map +1 -1
  25. package/dist/adapters/banal/run.js +8 -4
  26. package/dist/adapters/banal/run.js.map +1 -1
  27. package/dist/adapters/banal/settings.d.ts +1 -1
  28. package/dist/adapters/banal/settings.d.ts.map +1 -1
  29. package/dist/adapters/banal/settings.js +2 -1
  30. package/dist/adapters/banal/settings.js.map +1 -1
  31. package/dist/adapters/latex/document-class.d.ts +22 -0
  32. package/dist/adapters/latex/document-class.d.ts.map +1 -0
  33. package/dist/adapters/latex/document-class.js +102 -0
  34. package/dist/adapters/latex/document-class.js.map +1 -0
  35. package/dist/adapters/latex/hidden.d.ts +16 -0
  36. package/dist/adapters/latex/hidden.d.ts.map +1 -0
  37. package/dist/adapters/latex/hidden.js +49 -0
  38. package/dist/adapters/latex/hidden.js.map +1 -0
  39. package/dist/adapters/latex/index.d.ts +29 -0
  40. package/dist/adapters/latex/index.d.ts.map +1 -0
  41. package/dist/adapters/latex/index.js +18 -0
  42. package/dist/adapters/latex/index.js.map +1 -0
  43. package/dist/adapters/latex/nodes.d.ts +54 -0
  44. package/dist/adapters/latex/nodes.d.ts.map +1 -0
  45. package/dist/adapters/latex/nodes.js +93 -0
  46. package/dist/adapters/latex/nodes.js.map +1 -0
  47. package/dist/adapters/latex/outline.d.ts +10 -0
  48. package/dist/adapters/latex/outline.d.ts.map +1 -0
  49. package/dist/adapters/latex/outline.js +39 -0
  50. package/dist/adapters/latex/outline.js.map +1 -0
  51. package/dist/adapters/latex/parse.d.ts +42 -0
  52. package/dist/adapters/latex/parse.d.ts.map +1 -0
  53. package/dist/adapters/latex/parse.js +94 -0
  54. package/dist/adapters/latex/parse.js.map +1 -0
  55. package/dist/adapters/latex/rendered.d.ts +10 -0
  56. package/dist/adapters/latex/rendered.d.ts.map +1 -0
  57. package/dist/adapters/latex/rendered.js +39 -0
  58. package/dist/adapters/latex/rendered.js.map +1 -0
  59. package/dist/adapters/memory/index.d.ts.map +1 -1
  60. package/dist/adapters/memory/index.js +8 -2
  61. package/dist/adapters/memory/index.js.map +1 -1
  62. package/dist/adapters/node/process.io.d.ts +6 -3
  63. package/dist/adapters/node/process.io.d.ts.map +1 -1
  64. package/dist/adapters/node/process.io.js.map +1 -1
  65. package/dist/adapters/node/workspace.io.d.ts.map +1 -1
  66. package/dist/adapters/node/workspace.io.js +4 -2
  67. package/dist/adapters/node/workspace.io.js.map +1 -1
  68. package/dist/adapters/pdfjs/fill.d.ts.map +1 -1
  69. package/dist/adapters/pdfjs/fill.js +12 -12
  70. package/dist/adapters/pdfjs/fill.js.map +1 -1
  71. package/dist/adapters/references/index.d.ts.map +1 -1
  72. package/dist/adapters/references/index.js +4 -2
  73. package/dist/adapters/references/index.js.map +1 -1
  74. package/dist/build-engine.d.ts +1 -1
  75. package/dist/build-engine.d.ts.map +1 -1
  76. package/dist/build-engine.js +8 -1
  77. package/dist/build-engine.js.map +1 -1
  78. package/dist/build.d.ts +2 -3
  79. package/dist/build.d.ts.map +1 -1
  80. package/dist/build.js +9 -10
  81. package/dist/build.js.map +1 -1
  82. package/dist/caller-path.d.ts +3 -0
  83. package/dist/caller-path.d.ts.map +1 -0
  84. package/dist/caller-path.js +13 -0
  85. package/dist/caller-path.js.map +1 -0
  86. package/dist/cli.d.ts +10 -17
  87. package/dist/cli.d.ts.map +1 -1
  88. package/dist/cli.js +91 -17
  89. package/dist/cli.js.map +1 -1
  90. package/dist/doctor.d.ts +12 -3
  91. package/dist/doctor.d.ts.map +1 -1
  92. package/dist/doctor.js +2 -1
  93. package/dist/doctor.js.map +1 -1
  94. package/dist/domain/paths.d.ts +8 -2
  95. package/dist/domain/paths.d.ts.map +1 -1
  96. package/dist/domain/paths.js +12 -1
  97. package/dist/domain/paths.js.map +1 -1
  98. package/dist/domain/ready.d.ts +24 -0
  99. package/dist/domain/ready.d.ts.map +1 -0
  100. package/dist/domain/ready.js +11 -0
  101. package/dist/domain/ready.js.map +1 -0
  102. package/dist/domain/record.d.ts +8 -0
  103. package/dist/domain/record.d.ts.map +1 -0
  104. package/dist/domain/record.js +8 -0
  105. package/dist/domain/record.js.map +1 -0
  106. package/dist/domain/sha256.d.ts.map +1 -1
  107. package/dist/domain/sha256.js +4 -2
  108. package/dist/domain/sha256.js.map +1 -1
  109. package/dist/domain/tex-document.d.ts +84 -0
  110. package/dist/domain/tex-document.d.ts.map +1 -0
  111. package/dist/domain/tex-document.js +43 -0
  112. package/dist/domain/tex-document.js.map +1 -0
  113. package/dist/engine.d.ts +23 -22
  114. package/dist/engine.d.ts.map +1 -1
  115. package/dist/engine.js.map +1 -1
  116. package/dist/eslint-rules/bib-reachable-entry.d.ts +1 -1
  117. package/dist/eslint-rules/bib-reachable-entry.js.map +1 -1
  118. package/dist/eslint-rules/install-path-literals.d.ts +2 -2
  119. package/dist/eslint-rules/install-path-literals.js.map +1 -1
  120. package/dist/eslint-rules/paper-research-question.d.ts +1 -1
  121. package/dist/eslint-rules/paper-research-question.js.map +1 -1
  122. package/dist/eslint-rules/paper-stages.d.ts +2 -2
  123. package/dist/eslint-rules/paper-stages.js.map +1 -1
  124. package/dist/eslint-rules/paper-typography.d.ts +6 -6
  125. package/dist/eslint-rules/paper-typography.js.map +1 -1
  126. package/dist/eslint-rules/pdf-last-page-balance.d.ts +1 -1
  127. package/dist/eslint-rules/pdf-last-page-balance.js.map +1 -1
  128. package/dist/eslint-rules/review-frontmatter.d.ts +2 -2
  129. package/dist/eslint-rules/review-frontmatter.js.map +1 -1
  130. package/dist/eslint-rules/sibling-frontmatter.d.ts +1 -1
  131. package/dist/eslint-rules/sibling-frontmatter.d.ts.map +1 -1
  132. package/dist/eslint-rules/temp-root-realpath.d.ts +1 -1
  133. package/dist/eslint-rules/temp-root-realpath.js.map +1 -1
  134. package/dist/eslint-rules/tex-build.d.ts +2 -2
  135. package/dist/eslint-rules/tex-build.js.map +1 -1
  136. package/dist/facts-file.d.ts.map +1 -1
  137. package/dist/facts-file.js +31 -28
  138. package/dist/facts-file.js.map +1 -1
  139. package/dist/hooks-settings.d.ts.map +1 -1
  140. package/dist/hooks-settings.js +17 -2
  141. package/dist/hooks-settings.js.map +1 -1
  142. package/dist/init.d.ts +3 -4
  143. package/dist/init.d.ts.map +1 -1
  144. package/dist/init.js +18 -8
  145. package/dist/init.js.map +1 -1
  146. package/dist/lib/paper-config.d.ts.map +1 -1
  147. package/dist/lib/paper-config.js +1 -5
  148. package/dist/lib/paper-config.js.map +1 -1
  149. package/dist/new-paper.d.ts +5 -0
  150. package/dist/new-paper.d.ts.map +1 -1
  151. package/dist/new-paper.js +8 -1
  152. package/dist/new-paper.js.map +1 -1
  153. package/dist/package-dirs.d.ts +5 -0
  154. package/dist/package-dirs.d.ts.map +1 -0
  155. package/dist/package-dirs.js +14 -0
  156. package/dist/package-dirs.js.map +1 -0
  157. package/dist/paper-files.d.ts +4 -4
  158. package/dist/paper-files.d.ts.map +1 -1
  159. package/dist/paper-files.js +6 -6
  160. package/dist/paper-files.js.map +1 -1
  161. package/dist/paper-settings.js +3 -3
  162. package/dist/paper-settings.js.map +1 -1
  163. package/dist/pdf-facts.d.ts +51 -1
  164. package/dist/pdf-facts.d.ts.map +1 -1
  165. package/dist/pdf-facts.js +23 -15
  166. package/dist/pdf-facts.js.map +1 -1
  167. package/dist/pdf-geometry.d.ts.map +1 -1
  168. package/dist/pdf-geometry.js +2 -3
  169. package/dist/pdf-geometry.js.map +1 -1
  170. package/dist/ports/latex.d.ts +24 -0
  171. package/dist/ports/latex.d.ts.map +1 -0
  172. package/dist/ports/latex.js +2 -0
  173. package/dist/ports/latex.js.map +1 -0
  174. package/dist/ports/tool-installer.d.ts +2 -14
  175. package/dist/ports/tool-installer.d.ts.map +1 -1
  176. package/dist/presets.d.ts +15 -2
  177. package/dist/presets.d.ts.map +1 -1
  178. package/dist/presets.js +35 -10
  179. package/dist/presets.js.map +1 -1
  180. package/dist/references.d.ts.map +1 -1
  181. package/dist/references.js +4 -4
  182. package/dist/references.js.map +1 -1
  183. package/dist/rules-config.d.ts +26 -1
  184. package/dist/rules-config.d.ts.map +1 -1
  185. package/dist/rules-config.js +9 -9
  186. package/dist/rules-config.js.map +1 -1
  187. package/dist/tex-requirements.d.ts +15 -0
  188. package/dist/tex-requirements.d.ts.map +1 -1
  189. package/dist/tex-requirements.js +28 -10
  190. package/dist/tex-requirements.js.map +1 -1
  191. package/dist/tex-venue-rules.d.ts +83 -0
  192. package/dist/tex-venue-rules.d.ts.map +1 -0
  193. package/dist/tex-venue-rules.js +254 -0
  194. package/dist/tex-venue-rules.js.map +1 -0
  195. package/dist/types.d.ts +5 -3
  196. package/dist/types.d.ts.map +1 -1
  197. package/dist/venue-rules.d.ts +1 -1
  198. package/dist/venue-rules.d.ts.map +1 -1
  199. package/dist/venue-rules.js +20 -7
  200. package/dist/venue-rules.js.map +1 -1
  201. package/docs/configuration.md +5 -4
  202. package/docs/e2e.md +69 -40
  203. package/docs/install.md +1 -1
  204. package/docs/prior-art/README.md +1 -1
  205. package/docs/prior-art/package-location.md +5 -5
  206. package/docs/prior-art/repro/README.md +1 -1
  207. package/docs/prior-art/test-tooling.md +21 -10
  208. package/docs/rules/tex/required-section.md +73 -0
  209. package/docs/rules/tex/template.md +62 -0
  210. package/docs/rules/tex/venue-leftover.md +71 -0
  211. package/docs/rules.md +70 -48
  212. package/docs/testing.md +17 -4
  213. package/docs/texlive-install-decision.md +1 -1
  214. package/docs/toolchain.md +2 -2
  215. package/eslint-rules/bib-reachable-entry.ts +1 -1
  216. package/eslint-rules/install-path-literals.ts +2 -2
  217. package/eslint-rules/paper-research-question.ts +1 -1
  218. package/eslint-rules/paper-stages.ts +2 -2
  219. package/eslint-rules/paper-typography.ts +2 -2
  220. package/eslint-rules/pdf-last-page-balance.ts +1 -1
  221. package/eslint-rules/review-frontmatter.ts +1 -1
  222. package/eslint-rules/temp-root-realpath.ts +1 -1
  223. package/eslint-rules/tex-build.ts +2 -2
  224. package/eslint.config.mjs +162 -15
  225. package/fixtures/build-e2e/acmart/expect.json +26 -0
  226. package/fixtures/build-e2e/aidc/PIPELINE-STATUS.md +3 -0
  227. package/fixtures/build-e2e/aidc/expect.json +14 -0
  228. package/fixtures/build-e2e/aidc/paper.tex +46 -0
  229. package/fixtures/build-e2e/aidc/paperlint.json +1 -0
  230. package/fixtures/build-e2e/broken/expect.json +11 -0
  231. package/fixtures/build-e2e/cite/expect.json +27 -0
  232. package/fixtures/build-e2e/empty/expect.json +12 -0
  233. package/fixtures/build-e2e/fallback/expect.json +53 -0
  234. package/fixtures/build-e2e/guards/expect.json +6 -0
  235. package/fixtures/build-e2e/no-source/expect.json +10 -0
  236. package/fixtures/build-e2e/unbalanced/expect.json +60 -0
  237. package/fixtures/install-path-literals/clean.fixture.mjs +1 -1
  238. package/fixtures/install-path-literals/clean.md +2 -2
  239. package/fixtures/install-path-literals/defect.fixture.mjs +1 -1
  240. package/fixtures/install-path-literals/defect.md +2 -2
  241. package/fixtures/pdf-facts/README.md +1 -1
  242. package/fixtures/real-markdown-paper/baseline.ts +1 -1
  243. package/fixtures/render-paper/build-clean.sh +3 -5
  244. package/hooks/paper-status-gates.sh +9 -19
  245. package/lib/paper-config.harness.mjs +1 -1
  246. package/lib/paper-config.ts +1 -5
  247. package/lib/skill-checks.mjs +24 -381
  248. package/lib/skill-checks.test.mjs +63 -115
  249. package/lib/skill-corpus.mjs +10 -251
  250. package/lib/skill-corpus.test.mjs +2 -13
  251. package/lib/skill-trigger-cases.mjs +1 -1
  252. package/package.json +13 -2
  253. package/{skills/submit-paper/references/venues → presets}/acm-sigconf.jsonc +4 -1
  254. package/{skills/submit-paper/references/venues → presets}/agenticdev.jsonc +4 -0
  255. package/presets/aidc.jsonc +73 -0
  256. package/{skills/submit-paper/references/venues → presets}/aisec.jsonc +4 -0
  257. package/presets/ieee-conference.jsonc +66 -0
  258. package/{skills/submit-paper/references/venues → presets}/realm.jsonc +8 -1
  259. package/{skills/submit-paper/references/venues → presets/tex}/paper-guards.tex +1 -1
  260. package/{skills/submit-paper/references/venues → presets}/venue-profile.schema.json +30 -2
  261. package/scripts/check.harness.ts +64 -10
  262. package/scripts/check.test.ts +60 -13
  263. package/scripts/check.ts +83 -30
  264. package/scripts/coverage-config.test.ts +0 -1
  265. package/scripts/harness-api.frozen.json +0 -1
  266. package/scripts/test.test.ts +1 -1
  267. package/scripts/test.ts +1 -1
  268. package/skills/analyze-sibling-paper/SKILL.md +1 -39
  269. package/skills/analyze-sibling-paper/SKILL.md.spec.ts +0 -38
  270. package/skills/argument-arc/SKILL.md +2 -36
  271. package/skills/argument-arc/SKILL.md.spec.ts +1 -43
  272. package/skills/build-benchmark/SKILL.md +1 -41
  273. package/skills/build-benchmark/SKILL.md.spec.ts +0 -40
  274. package/skills/camera-ready/SKILL.md +1 -34
  275. package/skills/camera-ready/SKILL.md.spec.ts +0 -33
  276. package/skills/cold-read-diff/SKILL.md +1 -35
  277. package/skills/cold-read-diff/SKILL.md.spec.ts +0 -34
  278. package/skills/draft-paper/SKILL.md +2 -41
  279. package/skills/draft-paper/SKILL.md.spec.ts +1 -50
  280. package/skills/extend-paper/SKILL.md +2 -33
  281. package/skills/extend-paper/SKILL.md.spec.ts +1 -42
  282. package/skills/find-venue/SKILL.md +2 -38
  283. package/skills/find-venue/SKILL.md.spec.ts +1 -47
  284. package/skills/grade-paper-writing/SKILL.md +3 -38
  285. package/skills/grade-paper-writing/SKILL.md.spec.ts +2 -47
  286. package/skills/grade-paper-writing/prose-lint.mjs +2 -3
  287. package/skills/grade-paper-writing/prose-lint.test.ts +1 -1
  288. package/skills/harden-paper/SKILL.md +1 -39
  289. package/skills/harden-paper/SKILL.md.spec.ts +0 -38
  290. package/skills/map-prior-work/SKILL.md +1 -35
  291. package/skills/map-prior-work/SKILL.md.spec.ts +0 -34
  292. package/skills/osf-artifact-upload/osf-artifact-upload.harness.ts +3 -4
  293. package/skills/paper-adversarial-review/SKILL.md +2 -35
  294. package/skills/paper-adversarial-review/SKILL.md.spec.ts +1 -43
  295. package/skills/paper-pipeline/PIPELINE-MAP.md +2 -2
  296. package/skills/paper-pipeline/SKILL.md +3 -29
  297. package/skills/paper-pipeline/SKILL.md.spec.ts +2 -28
  298. package/skills/paper-pipeline/grade-paper-writing-ablation.eval.mjs +1 -1
  299. package/skills/paper-pipeline/paper-pipeline.harness.mjs +25 -40
  300. package/skills/paper-pipeline/references/acceptance-gate.md +1 -6
  301. package/skills/paper-pipeline/references/pipeline-status-template.md +8 -35
  302. package/skills/paper-pipeline/scripts/README.md +30 -225
  303. package/skills/paper-pipeline/scripts/artifact-coverage.harness.mjs +4 -8
  304. package/skills/paper-pipeline/scripts/consumer.d.mts +0 -2
  305. package/skills/paper-pipeline/scripts/consumer.harness.mjs +6 -104
  306. package/skills/paper-pipeline/scripts/consumer.mjs +24 -119
  307. package/skills/paper-pipeline/scripts/generated-code.harness.mjs +2 -3
  308. package/skills/paper-pipeline/scripts/population-map.harness.mjs +3 -3
  309. package/skills/paper-status/SKILL.md +2 -42
  310. package/skills/paper-status/SKILL.md.spec.ts +1 -41
  311. package/skills/pc-panel-review/SKILL.md +2 -46
  312. package/skills/pc-panel-review/SKILL.md.spec.ts +1 -45
  313. package/skills/plan-paper-timeline/SKILL.md +2 -36
  314. package/skills/plan-paper-timeline/SKILL.md.spec.ts +0 -36
  315. package/skills/render-paper/SKILL.md +2 -38
  316. package/skills/render-paper/SKILL.md.spec.ts +1 -37
  317. package/skills/render-paper/check-render.sh +16 -63
  318. package/skills/render-paper/render-paper.harness.mjs +17 -59
  319. package/skills/research-ideate/SKILL.md +2 -39
  320. package/skills/research-ideate/SKILL.md.spec.ts +1 -47
  321. package/skills/study-accepted-papers/SKILL.md +1 -34
  322. package/skills/study-accepted-papers/SKILL.md.spec.ts +0 -33
  323. package/skills/submit-paper/SKILL.md +1 -33
  324. package/skills/submit-paper/SKILL.md.spec.ts +0 -32
  325. package/skills/sweep-design-space/SKILL.md +1 -38
  326. package/skills/sweep-design-space/SKILL.md.spec.ts +0 -37
  327. package/skills/tighten-paper/SKILL.md +2 -39
  328. package/skills/tighten-paper/SKILL.md.spec.ts +1 -47
  329. package/skills/tighten-paper/structure.mjs +4 -11
  330. package/skills/verify-citations/SKILL.md +2 -38
  331. package/skills/verify-citations/SKILL.md.spec.ts +1 -37
  332. package/src/adapters/banal/failure.ts +9 -10
  333. package/src/adapters/banal/index.test.ts +3 -3
  334. package/src/adapters/banal/index.ts +8 -10
  335. package/src/adapters/banal/install.ts +9 -4
  336. package/src/adapters/banal/invocation.test.ts +20 -8
  337. package/src/adapters/banal/invocation.ts +24 -9
  338. package/src/adapters/banal/locate.test.ts +2 -2
  339. package/src/adapters/banal/locate.ts +27 -21
  340. package/src/adapters/banal/output.test.ts +1 -1
  341. package/src/adapters/banal/run.test.ts +3 -3
  342. package/src/adapters/banal/run.ts +16 -10
  343. package/src/adapters/banal/settings.ts +2 -2
  344. package/src/adapters/banal/xml.test.ts +1 -1
  345. package/src/adapters/curl/download.test.ts +4 -4
  346. package/src/adapters/latex/document-class.ts +147 -0
  347. package/src/adapters/latex/hidden.ts +70 -0
  348. package/src/adapters/latex/index.test.ts +361 -0
  349. package/src/adapters/latex/index.ts +55 -0
  350. package/src/adapters/latex/nodes.ts +141 -0
  351. package/src/adapters/latex/outline.ts +64 -0
  352. package/src/adapters/latex/parse.ts +136 -0
  353. package/src/adapters/latex/rendered.ts +59 -0
  354. package/src/adapters/memory/index.ts +4 -3
  355. package/src/adapters/node/files.test.ts +5 -3
  356. package/src/adapters/node/process.io.ts +9 -2
  357. package/src/adapters/node/process.test.ts +4 -4
  358. package/src/adapters/node/workspace.io.ts +9 -4
  359. package/src/adapters/pdfjs/fill.test.ts +1 -1
  360. package/src/adapters/pdfjs/fill.ts +18 -10
  361. package/src/adapters/references/index.ts +7 -2
  362. package/src/build-engine.test.ts +11 -6
  363. package/src/build-engine.ts +10 -5
  364. package/src/build.harness.mjs +5 -7
  365. package/src/build.test.ts +10 -11
  366. package/src/build.ts +12 -13
  367. package/src/caller-path.ts +13 -0
  368. package/src/cli.harness.mjs +1 -3
  369. package/src/cli.test.ts +21 -16
  370. package/src/cli.ts +115 -33
  371. package/src/doctor.test.ts +1 -1
  372. package/src/doctor.ts +14 -5
  373. package/src/domain/paths.test.ts +15 -0
  374. package/src/domain/paths.ts +20 -1
  375. package/src/domain/ready.ts +31 -0
  376. package/src/domain/record.test.ts +20 -0
  377. package/src/domain/record.ts +12 -0
  378. package/src/domain/sha256.ts +5 -3
  379. package/src/domain/tex-document.test.ts +80 -0
  380. package/src/domain/tex-document.ts +110 -0
  381. package/src/engine.harness.mjs +1 -1
  382. package/src/engine.ts +30 -2
  383. package/src/facts-file.test.ts +4 -7
  384. package/src/facts-file.ts +45 -30
  385. package/src/hooks-settings.harness.ts +17 -0
  386. package/src/hooks-settings.ts +28 -4
  387. package/src/init.test.ts +25 -5
  388. package/src/init.ts +26 -12
  389. package/src/latex-loop.harness.ts +1 -1
  390. package/src/new-paper.harness.mjs +7 -23
  391. package/src/new-paper.test.ts +28 -3
  392. package/src/new-paper.ts +15 -3
  393. package/src/package-dirs.ts +17 -0
  394. package/src/paper-files.test.ts +22 -19
  395. package/src/paper-files.ts +16 -27
  396. package/src/paper-settings-commands.test.ts +6 -1
  397. package/src/paper-settings.test.ts +2 -2
  398. package/src/paper-settings.ts +5 -5
  399. package/src/pdf-facts.test.ts +16 -5
  400. package/src/pdf-facts.ts +79 -22
  401. package/src/pdf-geometry.ts +5 -3
  402. package/src/ports/latex.ts +29 -0
  403. package/src/ports/tool-installer.ts +2 -17
  404. package/src/presets.test.ts +65 -4
  405. package/src/presets.ts +65 -28
  406. package/src/references.test.ts +25 -19
  407. package/src/references.ts +4 -5
  408. package/src/rule-cases.test.ts +474 -0
  409. package/src/rule-docs.test.ts +159 -0
  410. package/src/rules-config.ts +40 -11
  411. package/src/tex-requirements.harness.ts +13 -23
  412. package/src/tex-requirements.test.ts +21 -0
  413. package/src/tex-requirements.ts +64 -14
  414. package/src/tex-venue-rules.test.ts +659 -0
  415. package/src/tex-venue-rules.ts +429 -0
  416. package/src/toolchain.harness.mjs +1 -1
  417. package/src/toolchain.test.ts +9 -5
  418. package/src/toolchain.ts +2 -2
  419. package/src/types.ts +5 -3
  420. package/src/venue-rules.test.ts +104 -8
  421. package/src/venue-rules.ts +22 -12
  422. package/templates/paper/paper.tex +2 -1
  423. package/skills/paper-pipeline/scripts/announce.mjs +0 -67
  424. package/skills/paper-pipeline/scripts/announce.test.mjs +0 -102
  425. package/skills/paper-pipeline/scripts/fixtures/clean/PIPELINE-STATUS.md +0 -51
  426. package/skills/paper-pipeline/scripts/fixtures/dirty/PIPELINE-STATUS.md +0 -52
  427. package/skills/paper-pipeline/scripts/fixtures/dirty/paper.md +0 -6
  428. package/skills/paper-pipeline/scripts/fixtures/scorecard.ts +0 -100
  429. package/skills/paper-pipeline/scripts/ledger.cli.test.mjs +0 -302
  430. package/skills/paper-pipeline/scripts/ledger.mjs +0 -623
  431. package/skills/paper-pipeline/scripts/ledger.test.mjs +0 -254
  432. package/skills/paper-pipeline/scripts/pipeline-check.cli.test.mjs +0 -474
  433. package/skills/paper-pipeline/scripts/pipeline-check.harness.mjs +0 -328
  434. package/skills/paper-pipeline/scripts/pipeline-check.mjs +0 -750
  435. package/skills/paper-pipeline/scripts/pipeline-edges.mjs +0 -169
  436. package/skills/paper-pipeline/scripts/pipeline-edges.test.mjs +0 -73
  437. package/skills/paper-pipeline/scripts/run-mechanical.mjs +0 -648
  438. package/skills/paper-pipeline/scripts/run-mechanical.test.mjs +0 -468
  439. package/skills/paper-pipeline/scripts/status.mjs +0 -295
  440. package/skills/paper-pipeline/scripts/status.test.mjs +0 -232
  441. /package/{skills/submit-paper/references/venues → presets/tex}/agenticdev.tex +0 -0
  442. /package/{skills/submit-paper/references/venues → presets}/tex-base.jsonc +0 -0
@@ -36,12 +36,13 @@
36
36
  import { dirname, isAbsolute, join, basename, relative } from "node:path";
37
37
  import { FACTS_DIR, FACTS_FILE, factsPath, parseFactsText, } from "./facts-file.js";
38
38
  import { paperPreset, presetProblemText } from "./presets.js";
39
+ import { callerPath } from "./caller-path.js";
39
40
  import { sha256Hex } from "./domain/sha256.js";
41
+ import { fieldOf } from "./domain/record.js";
40
42
  import { CONFIG_FILE } from "#lib/paper-config";
41
43
  const finding = (messageId, data = {}) => ({ messageId, data });
42
- const at = (p) => p;
43
44
  const text = (files, p) => {
44
- const b = files.readBytes(at(p));
45
+ const b = files.readBytes(callerPath(p));
45
46
  return b === null ? null : new TextDecoder().decode(b);
46
47
  };
47
48
  // ── resolving the declaration ────────────────────────────────────────────────────────
@@ -73,7 +74,7 @@ function freshFacts(files, paperDir, body) {
73
74
  ? finding("schema", { got: parsed.error.got })
74
75
  : finding("factsBroken", { why: parsed.error.why });
75
76
  const f = parsed.value;
76
- const pdf = files.readBytes(at(isAbsolute(f.pdf) ? f.pdf : join(paperDir, f.pdf)));
77
+ const pdf = files.readBytes(callerPath(isAbsolute(f.pdf) ? f.pdf : join(paperDir, f.pdf)));
77
78
  if (pdf === null)
78
79
  return finding("pdfMissing", { pdf: f.pdf });
79
80
  return sha256Hex(pdf) === f.sha ? f : finding("stale", { pdf: f.pdf });
@@ -240,8 +241,7 @@ const JUDGES = {
240
241
  ? judgeFonts(a.facts.fonts, a.venue.format, a.venue.venue)
241
242
  : [],
242
243
  geometry: (a, { options }) => a.kind === "ready" && a.facts.geometry
243
- ? judgeGeometry(a.facts.geometry, a.venue.format, a.venue.venue, options[0]?.dimTol ??
244
- DEFAULT_DIM_TOL_IN)
244
+ ? judgeGeometry(a.facts.geometry, a.venue.format, a.venue.venue, dimTolOf(options[0]))
245
245
  : [],
246
246
  limits: (a) => a.kind === "ready" && a.facts.geometry
247
247
  ? judgeLimits(a.facts.geometry, a.venue)
@@ -252,6 +252,11 @@ const JUDGES = {
252
252
  };
253
253
  /** How far, in inches, a measured page dimension may be from the preset's. */
254
254
  export const DEFAULT_DIM_TOL_IN = 0.05;
255
+ /** `geometry`'s `dimTol` option in inches, or the default when the rule was given none. */
256
+ function dimTolOf(options) {
257
+ const tol = fieldOf(options, "dimTol");
258
+ return typeof tol === "number" ? tol : DEFAULT_DIM_TOL_IN;
259
+ }
255
260
  const META = {
256
261
  fresh: {
257
262
  docs: {
@@ -385,7 +390,15 @@ function rule(name, deps) {
385
390
  }
386
391
  /** The venue rules, as the rules of the `pdf` plugin (beside `last-page-balance`). */
387
392
  export function venueRules(deps) {
388
- const names = Object.keys(META);
389
- return Object.fromEntries(names.map((n) => [n, rule(n, deps)]));
393
+ // Every name listed: a record missing one is a compile error.
394
+ return {
395
+ fresh: rule("fresh", deps),
396
+ profile: rule("profile", deps),
397
+ measured: rule("measured", deps),
398
+ fonts: rule("fonts", deps),
399
+ geometry: rule("geometry", deps),
400
+ limits: rule("limits", deps),
401
+ "body-size": rule("body-size", deps),
402
+ };
390
403
  }
391
404
  //# sourceMappingURL=venue-rules.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"venue-rules.js","sourceRoot":"","sources":["../src/venue-rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1E,OAAO,EACL,SAAS,EACT,UAAU,EACV,SAAS,EACT,cAAc,GAGf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAG9D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAUhD,MAAM,OAAO,GAAG,CACd,SAAiB,EACjB,OAAkD,EAAE,EAC3C,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AA+BpC,MAAM,EAAE,GAAG,CAAC,CAAS,EAAgB,EAAE,CAAC,CAAiB,CAAC;AAC1D,MAAM,IAAI,GAAG,CAAC,KAAY,EAAE,CAAS,EAAiB,EAAE;IACtD,MAAM,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACjC,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACzD,CAAC,CAAC;AAEF,wFAAwF;AAExF,SAAS,MAAM,CACb,KAAa,EACb,MAAmB,EACnB,IAAmB;IAEnB,MAAM,KAAK,GAAG,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IA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9D,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;QAC1B,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC;QAC9B,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC;QAChC,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC;QAChC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC;QAC5B,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC;KACrC,CAAC;AACJ,CAAC"}
@@ -15,7 +15,8 @@ venues/usenix-sec.jsonc (optional, your own) a VENUE PRESET: format, page l
15
15
  ```
16
16
 
17
17
  The shipped presets (`paperlint:<name>`) live in the package, under
18
- `skills/submit-paper/references/venues/`: `acm-sigconf`, `agenticdev`, `aisec`, `realm`.
18
+ `presets/`: `acm-sigconf`, `agenticdev`, `aidc`, `aisec`,
19
+ `ieee-conference`, `realm`.
19
20
 
20
21
  ## The root `paperlint.json`
21
22
 
@@ -44,8 +45,8 @@ It sits beside your `package.json`. Without it every setting has its default.
44
45
  | `pdf` | none | where the built PDF is, relative to each paper, when it is not `paper.pdf` |
45
46
  | `$comment` | — | a note for humans (JSON Schema's comment keyword); ignored |
46
47
 
47
- The skill scripts read a few more root keys — `ledger`, `scripts`, `timezone`, `contactEmail`,
48
- `citeChecks`, `triggerCases` — documented with the skills that use them.
48
+ The skill scripts read a few more root keys — `scripts`, `timezone`, `contactEmail`,
49
+ `triggerCases` — documented with the skills that use them.
49
50
 
50
51
  **`paperlint lint` finds the file** by walking up from the current directory to the nearest
51
52
  `paperlint.json` that is not a paper's own (a paper's sits beside its `paper.tex`); if there is
@@ -229,7 +230,7 @@ write. It prints its plan first, one line per step, then runs it:
229
230
 
230
231
  ```
231
232
  papers/my-paper
232
- inputs: TEXINPUTS += <paperlint>/skills/submit-paper/references/venues
233
+ inputs: TEXINPUTS += <paperlint>/presets/tex
233
234
  compile: paper.tex (\documentclass[sigconf,screen]{acmart}, venue agenticdev)
234
235
  measure: pdf.js → _build/paper.facts.json (facts for the lint rules; nothing is judged here)
235
236
  ✓ paper.pdf — 4 pdflatex passes, 1 bibtex run; facts: _build/paper.facts.json, last page 621.5 / 264.8 pt
package/docs/e2e.md CHANGED
@@ -1,37 +1,50 @@
1
1
  # End-to-end tests
2
2
 
3
- They are `test/e2e/install.ts` and `test/e2e/build.ts`. Both are
4
- part of `npm run check`, so nobody has to remember to call them. `npm run test:e2e` runs just
5
- these, install first; if the install e2e fails or is skipped, the build e2e does not run.
3
+ They are vitest tests named `*.e2e.ts` under `test/e2e/`, one vitest project per environment they
4
+ need, found by the project's glob — no list of files exists in `package.json`, `scripts/check.ts`
5
+ or CI:
6
+
7
+ | script | project | what it needs | files |
8
+ | -------------------------- | ------------- | -------------------------------------------- | --------------------------- |
9
+ | `npm run test:e2e:install` | `e2e-install` | npm and pnpm, and the network for `npm pack` | `test/e2e/install/*.e2e.ts` |
10
+ | `npm run test:e2e:tex` | `e2e-tex` | TeX Live from `paperlint toolchain`, banal | `test/e2e/tex/*.e2e.ts` |
11
+ | `npm run test:e2e` | both | | |
12
+
13
+ Both areas are part of `npm run check`, so nobody has to remember to call them. CI runs each in the
14
+ job that has its environment: `test:e2e:install` in `gates`, `test:e2e:tex` in `build-e2e`.
6
15
 
7
16
  This page says what they prove, what they deliberately do not, and when a change owes a new one.
8
17
 
9
- ## The line between a harness and an end-to-end run
18
+ ## The line between the other tests and an end-to-end run
10
19
 
11
- Most of this package is tested by harnesses, described in [`CONTRIBUTING.md`](../CONTRIBUTING.md):
12
- a rule is handed a file with a defect and must find it, then a clean file and must stay silent.
13
- That is the right shape for a rule, and it cannot answer a different kind of question.
20
+ The rest of the package is tested by unit and integration tests and, for what an agent sees, by
21
+ harnesses — [`testing.md`](testing.md) says which is which. A rule is tested twice before any e2e:
22
+ unit tests beside it hand its logic a defect and a clean input, and `src/rule-cases.test.ts` runs
23
+ every registered rule through real ESLint on a small paper tree, the way `paperlint lint` does.
24
+ That is still an integration test: no TeX, no install, the working tree as it is.
14
25
 
15
- A harness runs **in this repository's process, against this repository's working tree**. It
16
- imports the module directly. Every path resolves, every dependency is already installed, and the
17
- file it reads is the file in `git`. An end-to-end run exists because all three of those are
26
+ Those tests run **in this repository's process, against this repository's working tree**. They
27
+ import the modules directly. Every path resolves, every dependency is already installed, and the
28
+ file they read is the file in `git`. An end-to-end run exists because all three of those are
18
29
  assumptions that stop holding the moment somebody else installs the package.
19
30
 
20
- | question | answered by |
21
- | ------------------------------------------------------------------------------------ | --------------------------------------------------------- |
22
- | does this rule find this defect, and stay quiet otherwise | harness |
23
- | does the CLI pick the right script, with the right interpreter | harness (`src/build.harness.mjs` substitutes `spawnSync`) |
24
- | does the tarball, installed into a tree that is not this one, contain what it claims | **e2e** |
25
- | do the paths written inside a skill resolve where the package actually lands | **e2e** |
26
- | did a PDF come out, and is it typeset in the fonts the venue requires | **e2e** |
31
+ | question | answered by |
32
+ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------- |
33
+ | does this rule find this defect, and stay quiet otherwise | unit, beside the rule |
34
+ | does the rule run through ESLint, wired, on the file it is for | integration (`src/rule-cases.test.ts`) |
35
+ | does the CLI pick the right script, with the right interpreter | integration (`src/build.harness.mjs` substitutes `spawnSync`) |
36
+ | does the tarball, installed into a tree that is not this one, contain what it claims | **e2e** |
37
+ | do the paths written inside a skill resolve where the package actually lands | **e2e** |
38
+ | did a PDF come out, and is it typeset in the fonts the venue requires | **e2e** |
27
39
 
28
- The third and fourth rows are the ones a harness cannot reach even in principle: the defect only
29
- exists once the code is somewhere else.
40
+ The last three rows are the ones no other test can reach even in principle: the defect only exists
41
+ once the code is somewhere else, or once a real TeX has typeset it.
30
42
 
31
- ## `test/e2e/install.ts` — the package, installed
43
+ ## `test/e2e/install/install.e2e.ts` — the package, installed
32
44
 
33
- `test/e2e/install.ts`. It runs `npm pack`, then installs the resulting tarball into a fresh
34
- temporary tree, **under npm and under pnpm separately**, and drives the installed binary:
45
+ It runs `npm pack`, then installs the resulting tarball into a fresh temporary tree, **under npm
46
+ and under pnpm separately** — one test per manager, each the whole scenario, because its steps
47
+ depend on each other — and drives the installed binary:
35
48
 
36
49
  - the install itself finishes
37
50
  - `paperlint --help` answers with zero
@@ -55,13 +68,21 @@ that works under npm can be dead under pnpm with no error anywhere. The same run
55
68
  binary **directly** rather than through `node <path>`: under npm `.bin` holds a symlink, under
56
69
  pnpm a shell wrapper, and calling `node bin` measures the caller's habit instead of the package.
57
70
 
58
- ## `test/e2e/build.ts` — a real `pdflatex`
71
+ ## `test/e2e/tex/build.e2e.ts` — a real `pdflatex`
59
72
 
60
- `test/e2e/build.ts`. It copies `fixtures/build-e2e/` — eight papers, none with a build script paperlint
61
- would run — into a temporary tree, points a config at it, and runs `paperlint build --all`. paperlint compiles
62
- each paper itself with the real `pdflatex` and `bibtex`; the artifacts are then measured with
73
+ It copies `fixtures/build-e2e/` — nine papers, none with a build script paperlint would run — into
74
+ a temporary tree, points a config at it, and runs `paperlint build --all`. paperlint compiles each
75
+ paper itself with the real `pdflatex` and `bibtex`; the artifacts are then measured with
63
76
  paperlint's own pdf.js reader from `dist/`, and the fonts are cross-checked against the list of
64
- programs pdfTeX writes into `paper.log`:
77
+ programs pdfTeX writes into `paper.log`.
78
+
79
+ **Each fixture declares what it must produce** in `fixtures/build-e2e/<name>/expect.json`, parsed
80
+ with the schema in `test/e2e/tex/build-expect.ts`: whether it builds (`build.outcome`), what its
81
+ lines of the build output say, its fonts, its last page's text, files in its directory, the facts
82
+ the build measured, and — for `paperlint lint` after the build — the exit code and **exactly** the
83
+ findings for each rule it names (`[]` is "none"). One `describe` per fixture directory turns each
84
+ declared field into a test. A folder without `expect.json`, or with one the schema rejects, fails.
85
+ A new venue fixture is a new folder: its paper, its `paperlint.json`, its `expect.json`.
65
86
 
66
87
  | fixture | what it is there to prove |
67
88
  | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
@@ -72,6 +93,8 @@ programs pdfTeX writes into `paper.log`:
72
93
  | `unbalanced` | a two-column acmart paper whose last page comes out 621.5 / 264.8 pt builds **green** — the build does not judge the layout and rewrites nothing — while `_build/paper.facts.json` records both heights, and `paperlint lint` with `pdf/last-page-balance` turned on in `rules` reports the page |
73
94
  | `broken` | a failing build names pdflatex and its exit code, quotes the error line and its `l.NNN` context, and deletes the stale `paper.pdf` planted before the run |
74
95
  | `no-source` | a paper with no `paper.tex` is named separately, and the run as a whole is a failure |
96
+ | `empty` | a document with no pages: pdflatex exits 0 and writes no PDF, and that is a failure, not a green `paper.pdf` |
97
+ | `aidc` | a real `[conference,compsoc]{IEEEtran}` paper builds on paperlint's TeX Live in NimbusRomNo9L, `tex/template`, `tex/required-section` and the `pdf/*` rules find nothing, and `tex/venue-leftover` warns once, on its planted line |
75
98
 
76
99
  The `fallback` row is the point of the whole file. `acmart.cls` checks for `libertine.sty`,
77
100
  `zi4.sty` and `newtxmath.sty`, and failing to find any of them sets `\@ACM@newfontsfalse` and
@@ -79,28 +102,30 @@ typesets the paper in Computer Modern. The build is green, the PDF looks fine, t
79
102
  and therefore so does the pagination. A submitted paper went out that way. **An exit code cannot
80
103
  see it, so the content of the artifact is what gets measured.**
81
104
 
82
- Before the fixtures, the run proves the refusal with no TeX at all: PATH holds `node` alone, the
105
+ Beside the fixtures, one test proves the refusal with no TeX at all: PATH holds `node` alone, the
83
106
  cache directory is empty and `CI` is set, and `paperlint build` must exit 1 with one line naming
84
- `npx paperlint toolchain` and the venue's packages, print no plan and create no PDF and no cache. It then
85
- asks `paperlint build --dry-run` which TeX Live the real run will use; under `--strict` (CI) that must be
86
- paperlint's own cache, because the runner has no other.
107
+ `npx paperlint toolchain` and the venue's packages, print no plan and create no PDF and no cache.
108
+ The rest asks `paperlint build --dry-run` which TeX Live the real run will use; under CI that must
109
+ be paperlint's own cache, because the runner has no other.
87
110
 
88
- ## `test/e2e/toolchain.ts` — real TeX Live, and only it
111
+ ## `test/e2e/tex/toolchain.e2e.ts` — real TeX Live, and only it
89
112
 
90
113
  `paperlint toolchain` into `$PAPERLINT_TEXLIVE_DIR` against real CTAN; a second run must say "nothing to do"
91
114
  within seconds; `--check` must exit 0; then the `acmart` fixture is built with PATH holding `node`
92
115
  only, so no other TeX Live and no PDF tool can stand in, and the PDF must carry Libertine and Biolinum
93
- and no Computer Modern face. Without `PAPERLINT_TEXLIVE_DIR` it is a declared skip: installing ~270 MB
116
+ and no Computer Modern face. Without `PAPERLINT_TEXLIVE_DIR` its tests are skipped: installing ~270 MB
94
117
  into a home directory as a side effect of `npm run check` is the unasked install rule 11 forbids.
95
118
  `src/toolchain.harness.mjs` covers the installer's logic (mirror fallback, archive check, time
96
119
  limit, verification, idempotence) against a fake mirror on disk, without the network.
97
120
 
98
- ## Skips are declared, never silent
121
+ ## Skips are reported, never passed
99
122
 
100
123
  A clone without TeX Live genuinely cannot run the build e2e; a machine without pnpm cannot run
101
- half of the install e2e. Each says so and exits **77** — the skip code vigiles' own runner uses —
102
- not zero, and `npm run check` reports it as `SKIPPED — not run, not passed`. In CI the same absence
103
- means a broken environment, so `--strict` turns the skip into a failure.
124
+ half of the install e2e. Their tests are then `skipIf`'d, and vitest reports them as skipped.
125
+ `npm run check` reads that count from vitest's JSON report and prints the gate as
126
+ `SKIPPED — not run, not passed`. In CI the same absence means a broken environment: with `CI` set
127
+ (or `PAPERLINT_E2E_STRICT=1`) each such file registers one more test that fails and names what is
128
+ missing (`test/e2e/need.ts`).
104
129
 
105
130
  A skipped step and a passed one look identical in a CI interface. That is the class this whole
106
131
  package is written against, so it is not allowed to happen inside it either.
@@ -115,9 +140,13 @@ Not every change does. The trigger is countable — ask whether the change touch
115
140
  - anything read through `package.json` fields — `bin`, `files`, `exports`
116
141
  - a new external program the pipeline shells out to
117
142
  - a new artifact the pipeline produces whose **content** can be wrong while the exit code is zero
143
+ - a new template-family preset: the TeX packages it declares, and the page size and fonts measured
144
+ from a real build of its class → one fixture folder in `fixtures/build-e2e/`, with its
145
+ `expect.json`
118
146
 
119
- If none of those apply, a harness beside the changed module is the right test, and an e2e run
120
- would only make the suite slower without making it stricter.
147
+ If none of those apply, a unit or integration test beside the changed module is the right test,
148
+ and an e2e run would only make the suite slower without making it stricter. A new rule is not a
149
+ trigger by itself: its cases in `src/rule-cases.test.ts` already run it through real ESLint.
121
150
 
122
151
  ## What these two do NOT cover
123
152
 
@@ -142,7 +171,7 @@ everything.
142
171
 
143
172
  ## The corpus
144
173
 
145
- `stageCorpus()` in `test/e2e/install.ts` writes a small paper by hand — a declared stage, its
174
+ `stageCorpus()` in `test/e2e/install/install.e2e.ts` writes a small paper by hand — a declared stage, its
146
175
  PDF, its byte counts, the cross-check between them — and copies `fixtures/build-e2e/acmart` beside
147
176
  it so the LaTeX rules see LaTeX rather than a placeholder.
148
177
 
package/docs/install.md CHANGED
@@ -121,7 +121,7 @@ a CI workflow and a heavy toolchain), asks two questions and guesses the rest.
121
121
 
122
122
  **npm and pnpm are covered; Yarn Plug'n'Play is not supported.**
123
123
 
124
- `test/e2e/install.ts` packs the tarball, installs it into a clean project with each manager that
124
+ `test/e2e/install/install.e2e.ts` packs the tarball, installs it into a clean project with each manager that
125
125
  launches on the machine, and runs the hook command to see whether it resolves. A grep over
126
126
  `hooks.json` would not do: the string is right under any manager, and whether it resolves depends
127
127
  on the tree the manager laid out. It also checks that every shipped skill is reachable as
@@ -1,7 +1,7 @@
1
1
  # Prior art — how comparable tools are shaped
2
2
 
3
3
  **Why this folder lives in the repository.** These are technical records that code and other docs
4
- cite by path: `test/e2e/install.ts` cites `package-location.md`, `scripts/marketplace-shape.mjs`
4
+ cite by path: `test/e2e/install/install.e2e.ts` cites `package-location.md`, `scripts/marketplace-shape.mjs`
5
5
  and `docs/install.md` point at the probes in `repro/`, and `eslint.config.mjs` excludes `repro/`
6
6
  by name. Moving the folder out would leave those references pointing nowhere. The notes are for
7
7
  contributors and maintainers, not for someone checking a paper, which is why the README does not
@@ -1,6 +1,6 @@
1
1
  # How a package finds its own installed files, and its own bin
2
2
 
3
- **Question this file answers:** `test/e2e/install.ts` inspects the tree it just installed by
3
+ **Question this file answers:** `test/e2e/install/install.e2e.ts` inspects the tree it just installed by
4
4
  spelling the layout out — `node_modules/research-paper-pipeline` (line 172),
5
5
  `node_modules/.bin/rpp` (line 276), and `node_modules/.../plugin/hooks/hooks.json` (line 135).
6
6
  `contentDelivery()` separately tries THREE candidate base directories for a path written as prose
@@ -54,7 +54,7 @@ argument of `import.meta.resolve` is the non-standard part:
54
54
 
55
55
  ### 🔴 `import.meta.resolve` is the wrong tool here, and it fails SILENTLY
56
56
 
57
- `test/e2e/install.ts` runs from the repository and inspects a consumer somewhere in `os.tmpdir()`.
57
+ `test/e2e/install/install.e2e.ts` runs from the repository and inspects a consumer somewhere in `os.tmpdir()`.
58
58
  `import.meta.resolve` always resolves from **the file that calls it** — `cwd` is irrelevant and
59
59
  the `parent` argument is ignored without the flag rather than rejected:
60
60
 
@@ -165,7 +165,7 @@ literal node_modules/ : <WORK>/consumer-pnpm/node_modules/research-paper-pipelin
165
165
  Under pnpm the hardcode addresses the **symlink** and resolution addresses the **store realpath**
166
166
  (Node realpaths by default; `--preserve-symlinks` flips it, and `resolve-package-path` carries
167
167
  `lib/should-preserve-symlinks.js` for exactly that). `realpathSync` of one equals the other, so
168
- every `existsSync` / `readdirSync` / `readFileSync` in `test/e2e/install.ts` gives the same answer
168
+ every `existsSync` / `readdirSync` / `readFileSync` in `test/e2e/install/install.e2e.ts` gives the same answer
169
169
  either way. Two interesting asymmetries, both measured:
170
170
 
171
171
  - `module.findPackageJSON` returns the **symlink** path under pnpm, not the store path — the
@@ -348,7 +348,7 @@ node_modules present? NO
348
348
  today the npm channel is the one that delivers the runnable code — but it is not impossible.
349
349
  3. 🔴 **The blocker the note does NOT name is the immovable one, and no resolution API fixes it.**
350
350
  PnP resolves to a path **inside a zip**. Line 3: the outside process gets `existsSync: false`
351
- for the very path PnP just handed it; only PnP's patched `fs` can open it. `test/e2e/install.ts`
351
+ for the very path PnP just handed it; only PnP's patched `fs` can open it. `test/e2e/install/install.e2e.ts`
352
352
  inspects the installed tree with `existsSync`, `readdirSync` and `readFileSync` **from its own
353
353
  process**. Under PnP those read nothing, whatever API produced the path — and `yarn bin rpp`
354
354
  (line 4) hands back the same unreadable path, so the supported bin lookup does not help either.
@@ -359,7 +359,7 @@ and it should be recorded as such rather than as "PnP has no node_modules".
359
359
 
360
360
  ## 9. The second guess: the base directory for a path written in prose
361
361
 
362
- `contentDelivery()` (in `test/e2e/install.ts`) tries three bases per reference.
362
+ `contentDelivery()` (in `test/e2e/install/install.e2e.ts`) tries three bases per reference.
363
363
  Measured over the real corpus with `claim6-doc-path-candidates.mjs`:
364
364
 
365
365
  ```console
@@ -56,7 +56,7 @@ $ claude plugin validate /tmp/m --strict; echo "RC=$?"
56
56
  ## The CLAIM 4–6 probes — where an installed package is, and how to find it
57
57
 
58
58
  These back [`../package-location.md`](../package-location.md). They measure the two hardcodes in
59
- `test/e2e/install.ts` (`node_modules/<name>` and `node_modules/.bin/rpp`) against the
59
+ `test/e2e/install/install.e2e.ts` (`node_modules/<name>` and `node_modules/.bin/rpp`) against the
60
60
  resolution APIs Node actually offers, under npm, pnpm and Yarn Berry (PnP).
61
61
 
62
62
  Build the consumer trees once — it packs this repository and installs the SAME tarball twice:
@@ -27,16 +27,27 @@ So the genuinely agent-facing harnesses are three: `hooks/hooks.harness.ts` (`ru
27
27
  (`runHarnessTest`, which spawns the real `claude` binary against a scripted model), and the skill
28
28
  contract checks. Everything else is ordinary Node testing that happens to carry the suffix.
29
29
 
30
- ## Why the install e2e stays a script
31
-
32
- `test/e2e/install.ts` is one linear scenario per package manager with strictly dependent steps
33
- — install, bin, `init`, `lint`, hook commands, content delivery — and a summary. A runner adds
34
- named subtests and a reporter; the script already prints per-check `✓`/`✗` and a per-manager
35
- verdict. The pack-and-install work stays in our code under any host, so the host buys only the
36
- reporter, at the cost of a second exit-code path.
37
-
38
- It also stays OUT of `npm test`: it needs the network for the consumer's transitive dependencies
39
- and takes minutes. It is its own CI step with its own timeout.
30
+ ## The e2e runs are vitest projects
31
+
32
+ The end-to-end runs are vitest tests (`test/e2e/<area>/*.e2e.ts`), one project per environment
33
+ they need — `e2e-install` (npm and pnpm) and `e2e-tex` (TeX Live) — found by the project's glob, so
34
+ no list of files exists in `package.json`, `scripts/check.ts` or CI (#132). What the runner buys is
35
+ not the reporter alone:
36
+
37
+ - **the fixture table.** `fixtures/build-e2e/` is a table of independent cases, and each fixture's
38
+ `expect.json` becomes its own tests through one `describe.each` over the directory. A new venue
39
+ fixture is a folder, not a block of test code.
40
+ - **a skip the aggregate can read.** A missing tool is `skipIf`, and vitest's JSON report counts it,
41
+ which is what `npm run check` reads to print a gate as skipped rather than passed. Under CI the
42
+ same absence fails (`test/e2e/need.ts`).
43
+
44
+ `install.e2e.ts` stays ONE test per package manager, each the whole scenario — install, bin,
45
+ `init`, `lint`, hook commands, content delivery — because its steps depend on each other: a
46
+ failure in the install makes every later step meaningless. Inside it, each check is a soft
47
+ expectation, so a run reports every mismatch, not the first.
48
+
49
+ The e2e projects stay OUT of `npm test` (project `unit`): they need the network, TeX Live or
50
+ several minutes. Each runs in its own CI job, with its own timeout.
40
51
 
41
52
  ## Tarball-by-path versus a local registry
42
53
 
@@ -0,0 +1,73 @@
1
+ # tex/required-section
2
+
3
+ **Level:** error · **Reads:** `paper.tex`, and the preset its `paperlint.json` extends
4
+
5
+ ## What it catches
6
+
7
+ A section the venue requires is missing, or is not where the venue requires it. The preset lists
8
+ the required sections by title in `required_sections`; the paper must have a `\section` or
9
+ `\section*` with exactly that title (whitespace collapsed), and, when the preset says
10
+ `position: "last"`, no section of the main text may come after it.
11
+
12
+ It only knows the sections a preset lists. A paper whose `paperlint.json` names no preset, or a
13
+ preset with no `required_sections`, gets no finding.
14
+
15
+ ## Why
16
+
17
+ Some venues make a section mandatory and desk-reject without it. ACSAC's AI Usage Policy, which
18
+ its AIDC workshop applies (https://www.acsac.org/2026/submissions/ai/):
19
+
20
+ > If LLMs are used, authors must include a separate, clearly marked section titled "LLM Usage
21
+ > Statement" at the end of the paper. This section does not count towards the page limit.
22
+
23
+ > Failure to comply with these requirements is grounds for desk rejection without further review.
24
+
25
+ A common near miss is a bold paragraph in another venue's wording («Use of Generative AI.»): not a
26
+ section, and not that title.
27
+
28
+ **"If LLMs are used" is not something a rule can know, so the rule always requires the section for
29
+ a preset that lists it.** An author who used none says so in it («No LLMs were used in this
30
+ work.»).
31
+
32
+ ## Examples
33
+
34
+ Under a preset with
35
+ `"required_sections": [{ "title": "LLM Usage Statement", "position": "last" }]`:
36
+
37
+ ```latex
38
+ \paragraph{Use of Generative AI.} We used an LLM. % fails: a paragraph, not a section
39
+ \section*{LLM usage statement} % fails: not the exact title
40
+ \section*{LLM Usage Statement} % passes, after the last section of the text
41
+ ```
42
+
43
+ A missing section reports:
44
+
45
+ > aidc requires a section titled «LLM Usage Statement» and there is none — add
46
+ > `\section*{LLM Usage Statement}` (the title exactly; a bold paragraph does not count)
47
+
48
+ The right title in the wrong place — before the introduction — reports:
49
+
50
+ > «LLM Usage Statement» must close the paper at aidc, and the section «Introduction» comes after it
51
+ > — move it after the last section of the body (after the bibliography is fine)
52
+
53
+ ## Preset field
54
+
55
+ No rule options. It reads `required_sections`; a child preset's list replaces its parent's:
56
+
57
+ ```jsonc
58
+ "required_sections": [{ "title": "LLM Usage Statement", "position": "last" }]
59
+ ```
60
+
61
+ `title` is compared exactly after collapsing whitespace — the venue's words are the contract.
62
+ `position: "last"` requires it after every section of the main text, which is every section before
63
+ `\appendix` and the bibliography (`\bibliography`, `\printbibliography`, `thebibliography`); after
64
+ the bibliography or an appendix is fine. Without `position`, anywhere will do.
65
+
66
+ ## What it does not check
67
+
68
+ - Whether LLMs were used, or what the section says.
69
+ - Sections pulled in with `\input` or `\include`: the rule reads `paper.tex` alone.
70
+
71
+ ## How to fix
72
+
73
+ Add `\section*{<the title>}` where the message says, with the content the venue asks for.
@@ -0,0 +1,62 @@
1
+ # tex/template
2
+
3
+ **Level:** error · **Reads:** `paper.tex`, and the preset its `paperlint.json` extends
4
+
5
+ ## What it catches
6
+
7
+ The paper is not set in the class its venue requires. The rule compares the `\documentclass` line
8
+ of `paper.tex` with the preset's `template`: the class must be the same, and every option the
9
+ template names must be there. The paper may add options of its own.
10
+
11
+ It only knows the class a preset names. A paper whose `paperlint.json` names no preset, or a
12
+ preset with no `template`, gets no finding.
13
+
14
+ ## Why
15
+
16
+ A venue checks the template before anyone reads the paper, and a paper in the wrong template can
17
+ be rejected with no review. Venues that name a class say so plainly — AIDC, for one: «LaTeX
18
+ submissions must use the IEEEtran.cls version 1.8b template with the
19
+ \documentclass[conference,compsoc]{IEEEtran} document class option», and «This requirement will be
20
+ strictly enforced» (https://aidcworkshop.github.io/).
21
+
22
+ The `pdf/*` rules see the consequences of a wrong class only after a build — fonts, page size,
23
+ columns — and some not at all: `compsoc` changes the text block and the headings, not the fonts.
24
+ This rule reads the cause, in the source, before any build.
25
+
26
+ ## Examples
27
+
28
+ Under a preset with `"template": "\\documentclass[conference,compsoc]{IEEEtran}"`:
29
+
30
+ ```latex
31
+ \documentclass[conference]{IEEEtran} % fails: compsoc is missing
32
+ \documentclass[sigconf]{acmart} % fails: another class
33
+ \documentclass[compsoc, conference]{IEEEtran} % passes: any order, spaces allowed
34
+ \documentclass[conference,compsoc,final]{IEEEtran} % passes: an extra option of the paper's own
35
+ ```
36
+
37
+ The first line reports:
38
+
39
+ > the class option `compsoc` is missing: aidc requires `\documentclass[conference,compsoc]{IEEEtran}`
40
+
41
+ ## Preset field
42
+
43
+ No rule options. It reads `template`, merged along `extends` (a child's replaces its parent's):
44
+
45
+ ```jsonc
46
+ "template": "\\documentclass[conference,compsoc]{IEEEtran}"
47
+ ```
48
+
49
+ A whole `\documentclass[…]{…}` line, or a bare class name (`"article"`), which requires the class
50
+ and no option. A value that is neither is reported as a finding that names the preset file.
51
+
52
+ ## What it does not check
53
+
54
+ - Options a venue forbids (`review`, `anonymous` in a camera-ready): only that what the venue
55
+ requires is there.
56
+ - The version of the class file (#94).
57
+ - A `\documentclass` inside a comment: the rule reads the parse tree, so it does not count.
58
+
59
+ ## How to fix
60
+
61
+ Set the `\documentclass` line to the one the message quotes, keeping your own extra options. A new
62
+ paper made with `paperlint new <name> --venue <preset>` already has it.