paperlint 17.2.0 → 18.0.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 (195) hide show
  1. package/.github/workflows/deadlines.yml +1 -1
  2. package/CONTRIBUTING.md +8 -5
  3. package/README.md +26 -23
  4. package/dist/adapters/latex/index.d.ts +1 -0
  5. package/dist/adapters/latex/index.d.ts.map +1 -1
  6. package/dist/adapters/latex/index.js +3 -0
  7. package/dist/adapters/latex/index.js.map +1 -1
  8. package/dist/adapters/latex/parse.d.ts +9 -0
  9. package/dist/adapters/latex/parse.d.ts.map +1 -1
  10. package/dist/adapters/latex/parse.js +12 -0
  11. package/dist/adapters/latex/parse.js.map +1 -1
  12. package/dist/adapters/latex/venue-lines.d.ts +10 -0
  13. package/dist/adapters/latex/venue-lines.d.ts.map +1 -0
  14. package/dist/adapters/latex/venue-lines.js +11 -0
  15. package/dist/adapters/latex/venue-lines.js.map +1 -0
  16. package/dist/build.d.ts +1 -1
  17. package/dist/build.d.ts.map +1 -1
  18. package/dist/cli.d.ts.map +1 -1
  19. package/dist/cli.js +17 -6
  20. package/dist/cli.js.map +1 -1
  21. package/dist/domain/body-pages.d.ts +1 -1
  22. package/dist/domain/body-pages.js +1 -1
  23. package/dist/domain/edition.d.ts +35 -0
  24. package/dist/domain/edition.d.ts.map +1 -0
  25. package/dist/domain/edition.js +64 -0
  26. package/dist/domain/edition.js.map +1 -0
  27. package/dist/edition-rule.d.ts +17 -0
  28. package/dist/edition-rule.d.ts.map +1 -0
  29. package/dist/edition-rule.js +90 -0
  30. package/dist/edition-rule.js.map +1 -0
  31. package/dist/facts-file.d.ts +1 -1
  32. package/dist/facts-file.d.ts.map +1 -1
  33. package/dist/folder-layout-rule.js +1 -1
  34. package/dist/folder-layout-rule.js.map +1 -1
  35. package/dist/folder-venue-rule.d.ts +1 -1
  36. package/dist/folder-venue-rule.d.ts.map +1 -1
  37. package/dist/folder-venue-rule.js +15 -6
  38. package/dist/folder-venue-rule.js.map +1 -1
  39. package/dist/heading-case.js +1 -1
  40. package/dist/ports/latex.d.ts +6 -1
  41. package/dist/ports/latex.d.ts.map +1 -1
  42. package/dist/preset-card-rule.d.ts.map +1 -1
  43. package/dist/preset-card-rule.js +2 -1
  44. package/dist/preset-card-rule.js.map +1 -1
  45. package/dist/presets.d.ts +26 -8
  46. package/dist/presets.d.ts.map +1 -1
  47. package/dist/presets.js +86 -19
  48. package/dist/presets.js.map +1 -1
  49. package/dist/tex-requirements.d.ts +0 -2
  50. package/dist/tex-requirements.d.ts.map +1 -1
  51. package/dist/tex-requirements.js +0 -1
  52. package/dist/tex-requirements.js.map +1 -1
  53. package/dist/tex-venue-rules.d.ts +19 -8
  54. package/dist/tex-venue-rules.d.ts.map +1 -1
  55. package/dist/tex-venue-rules.js +81 -21
  56. package/dist/tex-venue-rules.js.map +1 -1
  57. package/dist/venue-rules.js +1 -1
  58. package/dist/venue-rules.js.map +1 -1
  59. package/docs/configuration.md +7 -6
  60. package/docs/optional-rules.md +2 -2
  61. package/docs/prior-art/hotcrp-option-types.md +1 -1
  62. package/docs/rules/anonymity/identity.md +2 -2
  63. package/docs/rules/cycle/record.md +4 -4
  64. package/docs/rules/paper/edition-over.md +66 -0
  65. package/docs/rules/paper/folder-venue-leftover.md +22 -18
  66. package/docs/rules/pdf/body-size.md +6 -6
  67. package/docs/rules/talk/profile.md +3 -3
  68. package/docs/rules/tex/claim-emphasis.md +1 -1
  69. package/docs/rules/tex/contrast-frames.md +1 -1
  70. package/docs/rules/tex/heading-case.md +20 -20
  71. package/docs/rules/tex/negated-sentences.md +1 -1
  72. package/docs/rules/tex/relation-markers.md +1 -1
  73. package/docs/rules/tex/venue-leftover.md +82 -44
  74. package/docs/rules.md +38 -23
  75. package/docs/submission.md +6 -6
  76. package/docs/talk.md +2 -2
  77. package/docs/venues.md +85 -5
  78. package/fixtures/build-e2e/acmart/expect.json +1 -1
  79. package/fixtures/build-e2e/acmart/paperlint.json +1 -1
  80. package/fixtures/build-e2e/aidc/paperlint.json +1 -1
  81. package/fixtures/build-e2e/anon-ack/paperlint.json +1 -1
  82. package/fixtures/build-e2e/anon-author/paperlint.json +1 -1
  83. package/fixtures/build-e2e/anon-bib/paperlint.json +1 -1
  84. package/fixtures/build-e2e/anon-href/paperlint.json +1 -1
  85. package/fixtures/build-e2e/anon-macro/paperlint.json +1 -1
  86. package/fixtures/build-e2e/anon-pdfauthor/paperlint.json +1 -1
  87. package/fixtures/build-e2e/fallback/expect.json +1 -1
  88. package/fixtures/build-e2e/fse/PIPELINE-STATUS.md +3 -0
  89. package/fixtures/build-e2e/fse/expect.json +15 -0
  90. package/fixtures/build-e2e/fse/paper.tex +42 -0
  91. package/fixtures/build-e2e/fse/paperlint.json +1 -0
  92. package/fixtures/build-e2e/fse-over/PIPELINE-STATUS.md +3 -0
  93. package/fixtures/build-e2e/fse-over/expect.json +16 -0
  94. package/fixtures/build-e2e/fse-over/paper.tex +41 -0
  95. package/fixtures/build-e2e/fse-over/paperlint.json +1 -0
  96. package/fixtures/build-e2e/msr/paperlint.json +1 -1
  97. package/fixtures/build-e2e/msr-appendix-after/paperlint.json +1 -1
  98. package/lib/skill-checks.mjs +1 -1
  99. package/package.json +1 -1
  100. package/presets/acl-latex.jsonc +35 -0
  101. package/presets/acl-latex.md +40 -0
  102. package/presets/acm-acmsmall.jsonc +115 -0
  103. package/presets/acm-acmsmall.md +62 -0
  104. package/presets/acm-sigconf.jsonc +1 -1
  105. package/presets/acm-sigconf.md +1 -1
  106. package/presets/acsac-2026.jsonc +19 -0
  107. package/presets/acsac-2026.md +46 -0
  108. package/presets/{agent.jsonc → agent-2027.jsonc} +14 -7
  109. package/presets/{agent.md → agent-2027.md} +10 -6
  110. package/presets/{agenticdev.jsonc → agenticdev-2026.jsonc} +6 -3
  111. package/presets/{agenticdev.md → agenticdev-2026.md} +5 -5
  112. package/presets/{agentverify.jsonc → agentverify-2027.jsonc} +10 -2
  113. package/presets/{agentverify.md → agentverify-2027.md} +9 -3
  114. package/presets/{aidc.jsonc → aidc-2026.jsonc} +12 -4
  115. package/presets/{aidc.md → aidc-2026.md} +8 -4
  116. package/presets/{aisec.jsonc → aisec-2026.jsonc} +7 -4
  117. package/presets/{aisec.md → aisec-2026.md} +7 -6
  118. package/presets/{ase.jsonc → ase-2026.jsonc} +9 -9
  119. package/presets/{ase.md → ase-2026.md} +8 -8
  120. package/presets/{ccs.jsonc → ccs-2026.jsonc} +4 -4
  121. package/presets/{ccs.md → ccs-2026.md} +4 -4
  122. package/presets/emnlp-2026.jsonc +21 -0
  123. package/presets/emnlp-2026.md +46 -0
  124. package/presets/fse-2027.jsonc +92 -0
  125. package/presets/fse-2027.md +143 -0
  126. package/presets/icse-2027.jsonc +24 -0
  127. package/presets/icse-2027.md +53 -0
  128. package/presets/{icse.jsonc → icse-2028.jsonc} +8 -7
  129. package/presets/{icse.md → icse-2028.md} +9 -8
  130. package/presets/ieee-conference.jsonc +1 -1
  131. package/presets/ieee-conference.md +2 -2
  132. package/presets/{msr.jsonc → msr-2027.jsonc} +4 -5
  133. package/presets/{msr.md → msr-2027.md} +7 -7
  134. package/presets/{nlbse.jsonc → nlbse-2027.jsonc} +9 -1
  135. package/presets/{nlbse.md → nlbse-2027.md} +9 -3
  136. package/presets/{realm.jsonc → realm-2026.jsonc} +17 -27
  137. package/presets/{realm.md → realm-2026.md} +11 -4
  138. package/presets/{sp.jsonc → sp-2027.jsonc} +8 -8
  139. package/presets/{sp.md → sp-2027.md} +5 -5
  140. package/presets/tex/agenticdev.tex +1 -1
  141. package/presets/venue-profile.schema.json +28 -13
  142. package/scripts/refresh-deadlines/main.test.ts +4 -4
  143. package/scripts/refresh-deadlines/refresh.test.ts +9 -9
  144. package/skills/find-venue/SKILL.md +2 -2
  145. package/skills/find-venue/SKILL.md.spec.ts +1 -1
  146. package/skills/render-paper/extract-pdf-facts.harness.ts +2 -2
  147. package/skills/submit-paper/SKILL.md +7 -7
  148. package/skills/submit-paper/SKILL.md.spec.ts +6 -6
  149. package/src/adapters/latex/index.ts +3 -0
  150. package/src/adapters/latex/parse.ts +15 -0
  151. package/src/adapters/latex/venue-lines.ts +21 -0
  152. package/src/build.harness.mjs +5 -2
  153. package/src/build.ts +1 -1
  154. package/src/cli.test.ts +8 -6
  155. package/src/cli.ts +23 -6
  156. package/src/cycle-rules.test.ts +8 -6
  157. package/src/domain/body-pages.ts +1 -1
  158. package/src/domain/edition.ts +104 -0
  159. package/src/domain/submission-fields.test.ts +13 -10
  160. package/src/domain/venue-name.test.ts +41 -16
  161. package/src/domain/versions.test.ts +2 -2
  162. package/src/edition-rule.test.ts +164 -0
  163. package/src/edition-rule.ts +121 -0
  164. package/src/facts-file.test.ts +4 -4
  165. package/src/facts-file.ts +1 -1
  166. package/src/folder-layout-rule.test.ts +1 -1
  167. package/src/folder-layout-rule.ts +1 -1
  168. package/src/folder-venue-rule.test.ts +43 -10
  169. package/src/folder-venue-rule.ts +16 -7
  170. package/src/heading-case.test.ts +4 -4
  171. package/src/heading-case.ts +1 -1
  172. package/src/linted-set.test.ts +1 -1
  173. package/src/new-paper.test.ts +38 -25
  174. package/src/paper-files.test.ts +1 -1
  175. package/src/paper-settings-commands.test.ts +4 -4
  176. package/src/paper-settings.test.ts +16 -13
  177. package/src/ports/latex.ts +6 -0
  178. package/src/preset-card-rule.test.ts +31 -23
  179. package/src/preset-card-rule.ts +2 -1
  180. package/src/presets.test.ts +389 -61
  181. package/src/presets.ts +124 -31
  182. package/src/register-bands.test.ts +2 -2
  183. package/src/rule-cases.test.ts +26 -4
  184. package/src/submission-show.test.ts +3 -3
  185. package/src/submission-update.test.ts +1 -1
  186. package/src/submission.test.ts +1 -1
  187. package/src/talk-rules.test.ts +1 -1
  188. package/src/tex-requirements.harness.ts +2 -2
  189. package/src/tex-requirements.ts +2 -4
  190. package/src/tex-venue-rules.test.ts +231 -53
  191. package/src/tex-venue-rules.ts +129 -29
  192. package/src/venue-rules.test.ts +154 -21
  193. package/src/venue-rules.ts +1 -1
  194. package/src/versions-command.test.ts +2 -2
  195. package/templates/paper/paperlint.json +1 -1
@@ -4,7 +4,7 @@ description: "Discover and rank real venues for a given paper, scored by whether
4
4
  allowed-tools: [Read, Write, Grep, Glob, WebSearch, WebFetch, Agent]
5
5
  ---
6
6
 
7
- <!-- vigiles:sha256:d63449710e4800b6 compiled from skills/find-venue/SKILL.md.spec.ts -->
7
+ <!-- vigiles:sha256:784a0e1bfaa6e736 compiled from skills/find-venue/SKILL.md.spec.ts -->
8
8
 
9
9
  # find-venue — rank real venues by what makes a publication, then keep or switch
10
10
 
@@ -78,7 +78,7 @@ rank = archival-weight × topic-fit × accept-probability × deadline-feasibilit
78
78
  (`paperlint:acm-sigconf`) or the project's own `./venues/<name>.jsonc`; the `pdf/*` rules then
79
79
  check the built PDF against its page limit and format.
80
80
  - the venue cards, `presets/<venue>.md` in the paperlint package beside each venue preset (e.g.
81
- `agenticdev.md`, `aisec.md`) — the winner gets a card with its HotCRP quirks beside its preset;
81
+ `agenticdev-2026.md`, `aisec-2026.md`) — the winner gets a card with its HotCRP quirks beside its preset;
82
82
  for a venue with no shipped preset, the project's own `./venues/<name>.md` beside its
83
83
  `./venues/<name>.jsonc`. Plain data, not a new skill. That `./venues/` is not the venue's corpus
84
84
  of accepted papers, `<papers-root>/venues/<venue>/` (`study-accepted-papers`): the three places are
@@ -87,7 +87,7 @@ rank = archival-weight × topic-fit × accept-probability × deadline-feasibilit
87
87
  (\`paperlint:acm-sigconf\`) or the project's own \`./venues/<name>.jsonc\`; the \`pdf/*\` rules then
88
88
  check the built PDF against its page limit and format.
89
89
  - the venue cards, \`presets/<venue>.md\` in the paperlint package beside each venue preset (e.g.
90
- \`agenticdev.md\`, \`aisec.md\`) — the winner gets a card with its HotCRP quirks beside its preset;
90
+ \`agenticdev-2026.md\`, \`aisec-2026.md\`) — the winner gets a card with its HotCRP quirks beside its preset;
91
91
  for a venue with no shipped preset, the project's own \`./venues/<name>.md\` beside its
92
92
  \`./venues/<name>.jsonc\`. Plain data, not a new skill. That \`./venues/\` is not the venue's corpus
93
93
  of accepted papers, \`<papers-root>/venues/<venue>/\` (\`study-accepted-papers\`): the three places are
@@ -89,7 +89,7 @@ try {
89
89
  cpSync(join(FIX, "t3-mixed.pdf"), join(paper, "paper.pdf"));
90
90
  writeFileSync(
91
91
  join(paper, "paperlint.json"),
92
- JSON.stringify({ extends: "paperlint:agenticdev", kind: "short" }),
92
+ JSON.stringify({ extends: "paperlint:agenticdev-2026", kind: "short" }),
93
93
  );
94
94
  const factsFile = join(paper, "_build", "paper.facts.json");
95
95
 
@@ -122,7 +122,7 @@ try {
122
122
  "the facts are schema 3, about paper.pdf, for the venue paperlint.json declares",
123
123
  facts.schema === 3 &&
124
124
  facts.pdf === "paper.pdf" &&
125
- facts.venue === "agenticdev" &&
125
+ facts.venue === "agenticdev-2026" &&
126
126
  facts.kind === "short",
127
127
  JSON.stringify(facts).slice(0, 200),
128
128
  );
@@ -4,7 +4,7 @@ description: "End-to-end playbook for submitting a peer-reviewed paper to a doub
4
4
  allowed-tools: [Read, Write, Edit, Grep, Glob, Bash, WebSearch, WebFetch, Skill]
5
5
  ---
6
6
 
7
- <!-- vigiles:sha256:568512923bbbbdfb compiled from skills/submit-paper/SKILL.md.spec.ts -->
7
+ <!-- vigiles:sha256:567ef8c125d44ebd compiled from skills/submit-paper/SKILL.md.spec.ts -->
8
8
 
9
9
  # submit-paper — get a reviewed paper from "done" to "ready for review"
10
10
 
@@ -16,11 +16,11 @@ The venue-specific facts (deadline, page limits, tracks, PC-member conflict list
16
16
  quirks, whether a supplementary-upload field exists) live in the venue's **card**, `presets/<venue>.md`
17
17
  in the paperlint package, beside the preset `presets/<venue>.jsonc` that the lint rules check a
18
18
  paper against:
19
- - `presets/agenticdev.md` — AgenticDev @ ASE (workshop; ASE workshop proceedings).
20
- - `presets/aisec.md` — AISec @ ACM CCS (security workshop; ACM DL; harder bar).
21
- - `presets/aidc.md` — AIDC @ IEEE ACSAC (workshop; IEEE template, LLM Usage Statement).
22
- - `presets/msr.md` — MSR Technical Papers (conference; IEEE template from 2027, appendices count in the page limit).
23
- - `presets/realm.md` — REALM @ EMNLP (ACL family, OpenReview).
19
+ - `presets/agenticdev-2026.md` — AgenticDev @ ASE (workshop; ASE workshop proceedings).
20
+ - `presets/aisec-2026.md` — AISec @ ACM CCS (security workshop; ACM DL; harder bar).
21
+ - `presets/aidc-2026.md` — AIDC @ IEEE ACSAC (workshop; IEEE template, LLM Usage Statement).
22
+ - `presets/msr-2027.md` — MSR Technical Papers (conference; IEEE template from 2027, appendices count in the page limit).
23
+ - `presets/realm-2026.md` — REALM @ EMNLP (ACL family, OpenReview).
24
24
 
25
25
  **The card is prose; the machine-checked format is the PRESET beside it.** A paper declares its venue
26
26
  in `<paper>/paperlint.json`: `{ "extends": "paperlint:<venue>", "kind": "<kind>" }`, and the
@@ -183,5 +183,5 @@ convention with no reader.
183
183
  - Harden first: `harden-paper` (the submit checklist).
184
184
  - Publisher mechanics (camera-ready): `references/publishers/<publisher>.md`.
185
185
  - Venue specifics: the venue's card `presets/<venue>.md` in the paperlint package (e.g.
186
- `presets/agenticdev.md`) for deadlines, page limits, PC-member conflict lists, and whether a
186
+ `presets/agenticdev-2026.md`) for deadlines, page limits, PC-member conflict lists, and whether a
187
187
  supplementary upload exists.
@@ -35,11 +35,11 @@ The venue-specific facts (deadline, page limits, tracks, PC-member conflict list
35
35
  quirks, whether a supplementary-upload field exists) live in the venue's **card**, \`presets/<venue>.md\`
36
36
  in the paperlint package, beside the preset \`presets/<venue>.jsonc\` that the lint rules check a
37
37
  paper against:
38
- - \`presets/agenticdev.md\` — AgenticDev @ ASE (workshop; ASE workshop proceedings).
39
- - \`presets/aisec.md\` — AISec @ ACM CCS (security workshop; ACM DL; harder bar).
40
- - \`presets/aidc.md\` — AIDC @ IEEE ACSAC (workshop; IEEE template, LLM Usage Statement).
41
- - \`presets/msr.md\` — MSR Technical Papers (conference; IEEE template from 2027, appendices count in the page limit).
42
- - \`presets/realm.md\` — REALM @ EMNLP (ACL family, OpenReview).
38
+ - \`presets/agenticdev-2026.md\` — AgenticDev @ ASE (workshop; ASE workshop proceedings).
39
+ - \`presets/aisec-2026.md\` — AISec @ ACM CCS (security workshop; ACM DL; harder bar).
40
+ - \`presets/aidc-2026.md\` — AIDC @ IEEE ACSAC (workshop; IEEE template, LLM Usage Statement).
41
+ - \`presets/msr-2027.md\` — MSR Technical Papers (conference; IEEE template from 2027, appendices count in the page limit).
42
+ - \`presets/realm-2026.md\` — REALM @ EMNLP (ACL family, OpenReview).
43
43
 
44
44
  **The card is prose; the machine-checked format is the PRESET beside it.** A paper declares its venue
45
45
  in \`<paper>/paperlint.json\`: \`{ "extends": "paperlint:<venue>", "kind": "<kind>" }\`, and the
@@ -202,7 +202,7 @@ convention with no reader.
202
202
  - Harden first: \`harden-paper\` (the submit checklist).
203
203
  - Publisher mechanics (camera-ready): \`references/publishers/<publisher>.md\`.
204
204
  - Venue specifics: the venue's card \`presets/<venue>.md\` in the paperlint package (e.g.
205
- \`presets/agenticdev.md\`) for deadlines, page limits, PC-member conflict lists, and whether a
205
+ \`presets/agenticdev-2026.md\`) for deadlines, page limits, PC-member conflict lists, and whether a
206
206
  supplementary upload exists.
207
207
  `,
208
208
  });
@@ -35,6 +35,7 @@ import { outlineOf } from "./outline.ts";
35
35
  import { parseLatex } from "./parse.ts";
36
36
  import { bodyEmphasis, bodyProse } from "./prose.ts";
37
37
  import { renderedRuns } from "./rendered.ts";
38
+ import { venueLinesOf } from "./venue-lines.ts";
38
39
  import { layoutOverridesOf } from "./layout.ts";
39
40
  import { filecontentsOf } from "./filecontents.ts";
40
41
 
@@ -59,6 +60,7 @@ export { outlineOf } from "./outline.ts";
59
60
  export { parseLatex, type ParsedTex } from "./parse.ts";
60
61
  export { bodyEmphasis, bodyProse } from "./prose.ts";
61
62
  export { renderedRuns } from "./rendered.ts";
63
+ export { venueLinesOf } from "./venue-lines.ts";
62
64
  export { layoutOverridesOf } from "./layout.ts";
63
65
 
64
66
  /** The `LatexReader` port over unified-latex: each call parses its source once. */
@@ -67,6 +69,7 @@ export const latexReader: LatexReader = {
67
69
  outline: (src) => outlineOf(parseLatex(src)),
68
70
  headings: (src) => headingsOf(parseLatex(src)),
69
71
  renderedRuns: (src) => renderedRuns(parseLatex(src)),
72
+ venueLines: (src) => venueLinesOf(parseLatex(src)),
70
73
  bodyProse: (src) => bodyProse(parseLatex(src)),
71
74
  bodyEmphasis: (src) => bodyEmphasis(parseLatex(src)),
72
75
  captions: (src) => captionProse(parseLatex(src)),
@@ -121,6 +121,20 @@ export const KEY_ARGUMENT: ReadonlyMap<string, number> = new Map([
121
121
 
122
122
  const LINK_SIGNATURES = Object.fromEntries(signed(["href"], "m m"));
123
123
 
124
+ /**
125
+ * The commands that state the paper's venue, by template: acmart's `\\acmConference[short]{name}{date}{place}`
126
+ * and `\\acmBooktitle{…}`, the older ACM classes' `\\conferenceinfo{name}{place}`, and IEEEtran's
127
+ * `\\IEEEpubid{…}` (the conference's copyright line). ACL's template has none. Signed so their
128
+ * arguments attach to them, and `tex/venue-leftover` can tell a name inside one from prose.
129
+ */
130
+ export const VENUE_LINE_SIGNATURES: Readonly<
131
+ Record<string, { readonly signature: string }>
132
+ > = Object.fromEntries([
133
+ ...signed(["acmConference"], "o m m m"),
134
+ ...signed(["acmBooktitle", "IEEEpubid"], "m"),
135
+ ...signed(["conferenceinfo"], "m m"),
136
+ ]);
137
+
124
138
  /**
125
139
  * Declarations unified-latex has no signature for: signed so their arguments (sizes, not text)
126
140
  * attach to them instead of standing beside them as groups a reader would seem to see.
@@ -182,6 +196,7 @@ const parser = once(() =>
182
196
  macros: {
183
197
  ...KEY_SIGNATURES,
184
198
  ...LINK_SIGNATURES,
199
+ ...VENUE_LINE_SIGNATURES,
185
200
  ...DECLARATION_SIGNATURES,
186
201
  ...DEF_SIGNATURES,
187
202
  ...CAPTION_SIGNATURES,
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Where a source states its venue — the input `tex/venue-leftover` judges a name by: inside one of
3
+ * these commands any other venue's name is a leftover, with or without a year; in prose, only beside
4
+ * a recent year. Read from the parse tree, never the text: a command in a comment is not a command.
5
+ */
6
+ import type { Place } from "../../domain/tex-document.ts";
7
+ import { isList, macroPlace, visited } from "./nodes.ts";
8
+ import { VENUE_LINE_SIGNATURES, type ParsedTex } from "./parse.ts";
9
+
10
+ /** Each venue-stating command of the source, with its arguments, in source order. */
11
+ export function venueLinesOf(t: ParsedTex): readonly Place[] {
12
+ return visited(t.root, () => false)
13
+ .filter(isList)
14
+ .flatMap((list) =>
15
+ list.flatMap((n) =>
16
+ n.type === "macro" && n.content in VENUE_LINE_SIGNATURES
17
+ ? [macroPlace(n)]
18
+ : [],
19
+ ),
20
+ );
21
+ }
@@ -174,13 +174,16 @@ try {
174
174
  const venued = paper("venued", {
175
175
  "paper.tex": CLEAN_TEX,
176
176
  "paperlint.json": JSON.stringify({
177
- extends: "paperlint:agenticdev",
177
+ extends: "paperlint:agenticdev-2026",
178
178
  kind: "short",
179
179
  }),
180
180
  "build.sh": "exit 0\n",
181
181
  });
182
182
  const facts = readFacts(venued);
183
- check("the venue comes from paperlint.json", facts.venue === "agenticdev");
183
+ check(
184
+ "the venue comes from paperlint.json",
185
+ facts.venue === "agenticdev-2026",
186
+ );
184
187
  check(
185
188
  "a leftover build.sh is a FACT (reported), not a step",
186
189
  JSON.stringify(facts.ignoredScripts) === JSON.stringify(["build.sh"]) &&
package/src/build.ts CHANGED
@@ -135,7 +135,7 @@ export interface PaperFacts {
135
135
  readonly name: string;
136
136
  readonly options: readonly string[];
137
137
  } | null;
138
- /** The id of the venue preset `paperlint.json` extends (`agenticdev`), or null. */
138
+ /** The id of the venue preset `paperlint.json` extends (`agenticdev-2026`), or null. */
139
139
  readonly venue: string | null;
140
140
  /** Paper-supplied build scripts found on disk — reported as ignored. */
141
141
  readonly ignoredScripts: readonly string[];
package/src/cli.test.ts CHANGED
@@ -437,10 +437,10 @@ test("chooseVenue: a preset by path (inside and outside the paper), by prefixed
437
437
  const dir = join(root, "venues");
438
438
  writeTree(dir, {
439
439
  "papers/p/mine.jsonc": JSON.stringify(
440
- venuePreset("mine", { extends: "paperlint:agenticdev" }),
440
+ venuePreset("mine", { extends: "paperlint:agenticdev-2026" }),
441
441
  ),
442
442
  "shared/ours.jsonc": JSON.stringify(
443
- venuePreset("ours", { extends: "paperlint:agenticdev" }),
443
+ venuePreset("ours", { extends: "paperlint:agenticdev-2026" }),
444
444
  ),
445
445
  "shared/broken.jsonc": "{ nope",
446
446
  });
@@ -458,7 +458,7 @@ test("chooseVenue: a preset by path (inside and outside the paper), by prefixed
458
458
  const results = await Promise.all([
459
459
  choose("./papers/p/mine.jsonc"),
460
460
  choose("./shared/ours.jsonc"),
461
- choose("paperlint:agenticdev"),
461
+ choose("paperlint:agenticdev-2026"),
462
462
  choose("./shared/broken.jsonc"),
463
463
  ]);
464
464
  assert.deepEqual(
@@ -466,7 +466,7 @@ test("chooseVenue: a preset by path (inside and outside the paper), by prefixed
466
466
  [
467
467
  "./mine.jsonc",
468
468
  "../../shared/ours.jsonc",
469
- "paperlint:agenticdev",
469
+ "paperlint:agenticdev-2026",
470
470
  "--venue ./shared/broken.jsonc",
471
471
  ],
472
472
  );
@@ -645,7 +645,9 @@ test("build --dry-run on a paper with a venue plans for the preset's packages",
645
645
  "package.json": "{}",
646
646
  "papers/v/paper.tex":
647
647
  "\\documentclass{acmart}\\begin{document}x\\end{document}\n",
648
- "papers/v/paperlint.json": JSON.stringify({ extends: "paperlint:aisec" }),
648
+ "papers/v/paperlint.json": JSON.stringify({
649
+ extends: "paperlint:aisec-2026",
650
+ }),
649
651
  });
650
652
  const r = await withoutTex(dir, () =>
651
653
  cli(["build", "papers/v", "--dry-run"], dir),
@@ -967,7 +969,7 @@ const submissionPaper = (dir: string, site: string): void => {
967
969
  "package.json": "{}",
968
970
  "venue.jsonc": JSON.stringify(
969
971
  venuePreset("venue", {
970
- extends: "paperlint:aidc",
972
+ extends: "paperlint:aidc-2026",
971
973
  portal: { kind: "hotcrp", url: site },
972
974
  }),
973
975
  ),
package/src/cli.ts CHANGED
@@ -49,7 +49,7 @@ import {
49
49
  paperBodies,
50
50
  type PaperBody,
51
51
  } from "./paper-includes.ts";
52
- import { omit } from "remeda";
52
+ import { hasAtLeast, omit } from "remeda";
53
53
  import { refusalOf } from "./unowned-file.ts";
54
54
  import { ruleTimes, timingLines } from "./lint-timing.ts";
55
55
  import { prepareEngine } from "./build-engine.ts";
@@ -129,9 +129,10 @@ import {
129
129
  presetProblemText,
130
130
  resolvePreset,
131
131
  resolveShipped,
132
+ bareSeriesText,
132
133
  shippedPresets,
133
134
  shippedSpec,
134
- shippedVenueNames,
135
+ shippedFolderNames,
135
136
  SHIPPED_PREFIX,
136
137
  type PaperPreset,
137
138
  type Preset,
@@ -185,6 +186,7 @@ export { nextSteps } from "./init.ts";
185
186
  import paperStages from "#eslint-rules/paper-stages";
186
187
  import preregCoverage from "#eslint-rules/prereg-coverage";
187
188
  import { CYCLE_RULE_LEVELS, cycleRules } from "./cycle-rules.ts";
189
+ import { EDITION_RULE_LEVELS, editionRules } from "./edition-rule.ts";
188
190
  import { changesRules } from "./changes-rule.ts";
189
191
  import { latexDiff, withTexBin } from "./adapters/latexdiff/index.ts";
190
192
  import { runVersions } from "./versions-command.ts";
@@ -254,6 +256,7 @@ import reviewFrontmatter from "#eslint-rules/review-frontmatter";
254
256
  import siblingFrontmatter from "#eslint-rules/sibling-frontmatter";
255
257
  import pdfRules from "#eslint-rules/pdf-last-page-balance";
256
258
  import { messageOf } from "./domain/text.ts";
259
+ import { editionsOf } from "./domain/edition.ts";
257
260
  import { isRecord } from "./domain/record.ts";
258
261
  import { ESCAPE_HATCH } from "./domain/paper-layout.ts";
259
262
 
@@ -403,7 +406,7 @@ settings — paperlint.json, at two levels, one schema. Both are optional.
403
406
 
404
407
  <papersDir>/<paper>/paperlint.json — one paper, merged over the root file:
405
408
 
406
- { "extends": "paperlint:aisec", "kind": "research", "rules": { "pdf/last-page-balance": "error" } }
409
+ { "extends": "paperlint:aisec-2026", "kind": "research", "rules": { "pdf/last-page-balance": "error" } }
407
410
 
408
411
  "extends" names a venue preset: paperlint:<name> (shipped: ${SHIPPED_VENUES().join(", ")})
409
412
  or ./path.jsonc, relative to the paperlint.json. npm presets are not supported yet.
@@ -411,7 +414,7 @@ settings — paperlint.json, at two levels, one schema. Both are optional.
411
414
  cycles and deadlines — a paper's attempts at venues, oldest first, instead of "extends",
412
415
  "kind" and "submission" (those are then the current attempt's, and refused beside "cycles"):
413
416
 
414
- { "cycles": [ { "id": "msr-2027", "venue": { "kind": "preset", "extends": "paperlint:msr" },
417
+ { "cycles": [ { "id": "msr-2027", "venue": { "kind": "preset", "extends": "paperlint:msr-2027" },
415
418
  "kind": "technical", "opened": "2026-10-05",
416
419
  "deadlines": [ { "what": "submission",
417
420
  "observed": [ { "at": "2026-10-23 AoE", "source": "call",
@@ -617,6 +620,11 @@ export function buildConfig(
617
620
  rules: {
618
621
  ...paperStages.rules,
619
622
  ...folderVenueRules({ files: nodeFiles, venuesDir: presetsDir() }),
623
+ ...editionRules({
624
+ files: nodeFiles,
625
+ venuesDir: presetsDir(),
626
+ now: isoNow,
627
+ }),
620
628
  ...folderLayoutRules(LAYOUT_RULE_DEPS),
621
629
  },
622
630
  },
@@ -631,6 +639,7 @@ export function buildConfig(
631
639
  "paper/stages": "error",
632
640
  "paper/source": "error",
633
641
  ...FOLDER_VENUE_RULE_LEVELS,
642
+ ...EDITION_RULE_LEVELS,
634
643
  ...FOLDER_LAYOUT_RULE_LEVELS,
635
644
  ...REPRO_RULE_LEVELS,
636
645
  ...STATUS_CYCLE_RULE_LEVELS,
@@ -1701,7 +1710,7 @@ export async function createPaperAt(
1701
1710
  ): Promise<number> {
1702
1711
  const result = newPaper(papersRoot, name, {
1703
1712
  venue,
1704
- venues: allowVenueName ? [] : shippedVenueNames(PRESET_DEPS),
1713
+ venues: allowVenueName ? [] : shippedFolderNames(PRESET_DEPS),
1705
1714
  });
1706
1715
  const here = (p: string): string => shown(cwd, p);
1707
1716
  for (const line of reportNewPaper(result, here)) log(line);
@@ -1836,6 +1845,14 @@ function venueSpec(
1836
1845
  const name = venue.startsWith(SHIPPED_PREFIX)
1837
1846
  ? venue.slice(SHIPPED_PREFIX.length)
1838
1847
  : venue;
1848
+ const editions = editionsOf(name, shipped);
1849
+ if (!shipped.includes(name) && hasAtLeast(editions, 1))
1850
+ return bad(
1851
+ bareSeriesText(
1852
+ { kind: "bare-series", spec: shippedSpec(name), editions },
1853
+ "--venue",
1854
+ ),
1855
+ );
1839
1856
  if (!shipped.includes(name))
1840
1857
  return bad(
1841
1858
  `--venue ${venue}: no such venue preset. Shipped: ${shipped.join(", ")} — or a path to your own preset, starting with ./ or ../`,
@@ -2233,7 +2250,7 @@ async function runInit(
2233
2250
  paper: a.paper,
2234
2251
  createPaper: (papersRoot, name) =>
2235
2252
  createPaperAt(papersRoot, name, { log, err, cwd }),
2236
- venues: shippedVenueNames(PRESET_DEPS),
2253
+ venues: shippedFolderNames(PRESET_DEPS),
2237
2254
  tex: initTexLive(a, { log, err, cwd }),
2238
2255
  resolveCliPapers: (root: string): string | null =>
2239
2256
  cliPapers({ ...a, config: null }, root),
@@ -13,7 +13,7 @@ import { frozenText } from "../test/frozen-presets.ts";
13
13
  const VENUES = presetsDir();
14
14
  const DIR = "/work/papers/p";
15
15
  /**
16
- * The shipped presets, so a cycle naming `paperlint:msr` resolves through the memory files — msr
16
+ * The shipped presets, so a cycle naming `paperlint:msr-2027` resolves through the memory files — msr
17
17
  * FROZEN (test/frozen-presets.ts): its deadlines are rewritten by the scheduled refresh, and the
18
18
  * tests below assert the readings they sit beside.
19
19
  */
@@ -23,7 +23,7 @@ const SHIPPED = {
23
23
  .filter((f) => f.endsWith(".jsonc"))
24
24
  .map((f) => [join(VENUES, f), readFileSync(join(VENUES, f), "utf8")]),
25
25
  ),
26
- [join(VENUES, "msr.jsonc")]: frozenText("msr.jsonc"),
26
+ [join(VENUES, "msr-2027.jsonc")]: frozenText("msr-2027.jsonc"),
27
27
  };
28
28
 
29
29
  interface Reported {
@@ -68,10 +68,10 @@ const CALL = {
68
68
  url: "https://2027.msrconf.org/track/msr-2027-technical-papers",
69
69
  read: "2026-10-05",
70
70
  };
71
- /** A cycle at the shipped `paperlint:msr`, whose preset carries the portal's readings. */
71
+ /** A cycle at the shipped `paperlint:msr-2027`, whose preset carries the portal's readings. */
72
72
  const msr = (deadlines: readonly object[]) => ({
73
73
  id: "msr-2027",
74
- venue: { kind: "preset", extends: "paperlint:msr" },
74
+ venue: { kind: "preset", extends: "paperlint:msr-2027" },
75
75
  kind: "technical",
76
76
  opened: "2026-10-05",
77
77
  deadlines,
@@ -135,7 +135,9 @@ describe("cycle/record", () => {
135
135
  });
136
136
 
137
137
  it("the flat form, no settings file, or a file that is not JSON: silent — not this rule's to say", () => {
138
- expect(lint({ extends: "paperlint:aidc", kind: "regular" })).toEqual([]);
138
+ expect(lint({ extends: "paperlint:aidc-2026", kind: "regular" })).toEqual(
139
+ [],
140
+ );
139
141
  expect(lint(undefined)).toEqual([]);
140
142
  expect(lint("{ not json")).toEqual([]);
141
143
  });
@@ -218,7 +220,7 @@ describe("cycle/record — a portal reading beside the preset's", () => {
218
220
  ],
219
221
  });
220
222
  expect(fs.map((f) => f.message)).toEqual([
221
- "paperlint.json, cycle «msr-2027»: the \"submission\" deadline records a portal reading, and the preset paperlint:msr carries it (2026-10-21T11:59:59Z, the portal's reading on 2026-10-19 from https://msr2027.hotcrp.com/deadlines — venues move dates: re-check there before relying on it) — a second copy drifts when paperlint updates the preset: delete this one (the call's reading and an override stay)",
223
+ "paperlint.json, cycle «msr-2027»: the \"submission\" deadline records a portal reading, and the preset paperlint:msr-2027 carries it (2026-10-21T11:59:59Z, the portal's reading on 2026-10-19 from https://msr2027.hotcrp.com/deadlines — venues move dates: re-check there before relying on it) — a second copy drifts when paperlint updates the preset: delete this one (the call's reading and an override stay)",
222
224
  ]);
223
225
  });
224
226
 
@@ -3,7 +3,7 @@
3
3
  * classifies its pages. A venue that limits the body «excluding references and appendices» (AIDC)
4
4
  * cannot be judged on banal's body count: banal calls any page holding non-bibliography text body,
5
5
  * so an LLM Usage Statement or an appendix placed after the bibliography is counted as body, and a
6
- * correct paper fails (measured, `presets/aidc.jsonc`).
6
+ * correct paper fails (measured, `presets/aidc-2026.jsonc`).
7
7
  *
8
8
  * ── WHERE THE BODY ENDS: AT THE REFERENCES, OR AT THE APPENDIX, WHICHEVER COMES FIRST ──────
9
9
  * «Excluding references and appendices» excludes an appendix wherever it sits, so the body ends at
@@ -0,0 +1,104 @@
1
+ /**
2
+ * ONE PRESET PER EDITION — what a preset's id says about it.
3
+ *
4
+ * A venue preset is one edition of a series, and its id says which: `<series>-<year>`, the year in
5
+ * four digits after the last hyphen (`icse-2028`, `nlbse-2027`, `usenix-sec-2027`). The year has one
6
+ * source, this id: a venue's `name` carries none (`ICSE`), and a display that needs the year is the
7
+ * name and the id's year (`ICSE 2028`). A template family is a format, not an edition, so its id
8
+ * ends in no year (`acm-sigconf`, `ieee-conference`).
9
+ *
10
+ * A bare series (`paperlint:icse`) is never an alias for the latest edition: a paper that names one
11
+ * would have its rules change under it the day a new edition ships. It is refused, listing the
12
+ * editions (`src/presets.ts`).
13
+ */
14
+ import { sortBy } from "remeda";
15
+
16
+ /** A venue preset's id: a series of lowercase words and digits joined by hyphens, then `-<year>`. */
17
+ export const EDITION_ID = /^([a-z0-9]+(?:-[a-z0-9]+)*)-(\d{4})$/u;
18
+
19
+ /** An edition: its series and its year. */
20
+ export interface Edition {
21
+ readonly series: string;
22
+ readonly year: number;
23
+ }
24
+
25
+ /** The edition an id names, or null when the id ends in no year (a family, or a file of one's own). Pure. */
26
+ export function editionOf(id: string): Edition | null {
27
+ const m = EDITION_ID.exec(id);
28
+ return m === null
29
+ ? null
30
+ : { series: String(m[1]), year: Number.parseInt(String(m[2]), 10) };
31
+ }
32
+
33
+ /** Whether `id` ends in a year, as a family's id must not: `-2027`, or `2027` glued on. Pure. */
34
+ export const endsInYear = (id: string): boolean => /\d{4}$/u.test(id);
35
+
36
+ /** A venue's name with its edition's year, `ICSE 2028`; the bare name when the year is not known. Pure. */
37
+ export const editionLabel = (name: string, year: number | null): string =>
38
+ year === null ? name : `${name} ${String(year)}`;
39
+
40
+ /**
41
+ * The shipped editions of `series`, oldest first, as ids (`icse-2027`, `icse-2028`): what a bare
42
+ * series spec is refused with. Pure.
43
+ */
44
+ export const editionsOf = (
45
+ series: string,
46
+ shipped: readonly string[],
47
+ ): readonly string[] => editionsWithIds(series, shipped).map((e) => e.id);
48
+
49
+ /** The shipped editions of `series` after `e`'s year, oldest first, as ids. Pure. */
50
+ export const newerEditions = (
51
+ e: Edition,
52
+ shipped: readonly string[],
53
+ ): readonly string[] =>
54
+ editionsWithIds(e.series, shipped)
55
+ .filter((x) => x.year > e.year)
56
+ .map((x) => x.id);
57
+
58
+ /** Each shipped edition of `series` with its id, oldest first. Pure. */
59
+ const editionsWithIds = (
60
+ series: string,
61
+ shipped: readonly string[],
62
+ ): readonly (Edition & { readonly id: string })[] =>
63
+ sortBy(
64
+ shipped.flatMap((id) => {
65
+ const e = editionOf(id);
66
+ return e !== null && e.series === series ? [{ ...e, id }] : [];
67
+ }),
68
+ (e) => e.year,
69
+ );
70
+
71
+ /**
72
+ * Why a shipped preset's id does not fit what the file declares itself to be, or null: a venue's id
73
+ * is `<series>-<year>`, a family's ends in no year. Pure.
74
+ */
75
+ export function idProblem(
76
+ id: string,
77
+ type: "venue" | "family" | "base",
78
+ ): string | null {
79
+ if (type === "venue" && editionOf(id) === null)
80
+ return `${id}: a venue preset is one edition, and its id is <series>-<year> (icse-2028)`;
81
+ if (type === "family" && endsInYear(id))
82
+ return `${id}: a template family is a format, not an edition, and its id ends in no year`;
83
+ return null;
84
+ }
85
+
86
+ /**
87
+ * Each deadline of the edition `year` that falls outside [year − 2, year + 1], as a line naming it.
88
+ * An edition's dates fall in the two years before it and the year it is held, and its camera-ready
89
+ * may follow it: anything else is a reading of another edition. Pure.
90
+ */
91
+ export const deadlineYearProblems = (
92
+ id: string,
93
+ year: number,
94
+ deadlines: readonly { readonly what: string; readonly at: string }[],
95
+ ): readonly string[] =>
96
+ deadlines
97
+ .filter((d) => {
98
+ const y = Number.parseInt(d.at.slice(0, 4), 10);
99
+ return y < year - 2 || y > year + 1;
100
+ })
101
+ .map(
102
+ (d) =>
103
+ `${id}: the ${d.what} deadline ${d.at} is outside ${String(year - 2)}–${String(year + 1)}, the years an edition of ${String(year)} falls in`,
104
+ );
@@ -35,7 +35,7 @@ const VENUE: VenueFields = {
35
35
  };
36
36
 
37
37
  test("parsePaperFields: absent on a venue that records no fields → nothing to send; every kind's value passes as given", () => {
38
- assert.deepEqual(parsePaperFields(null, null, "msr.jsonc"), {
38
+ assert.deepEqual(parsePaperFields(null, null, "msr-2027.jsonc"), {
39
39
  ok: true,
40
40
  value: {},
41
41
  });
@@ -48,7 +48,7 @@ test("parsePaperFields: absent on a venue that records no fields → nothing to
48
48
  ACMCorAut: "author@example.org",
49
49
  note: "free text",
50
50
  };
51
- assert.deepEqual(parsePaperFields(fields, VENUE, "msr.jsonc"), {
51
+ assert.deepEqual(parsePaperFields(fields, VENUE, "msr-2027.jsonc"), {
52
52
  ok: true,
53
53
  value: fields,
54
54
  });
@@ -59,7 +59,7 @@ test("🔴 parsePaperFields: a topic the form does not offer is refused, naming
59
59
  parsePaperFields(
60
60
  { topics: ["AI for software engineering"] },
61
61
  VENUE,
62
- "msr.jsonc",
62
+ "msr-2027.jsonc",
63
63
  ),
64
64
  {
65
65
  ok: false,
@@ -71,7 +71,7 @@ test("🔴 parsePaperFields: a topic the form does not offer is refused, naming
71
71
 
72
72
  test("🔴 parsePaperFields: each other wrong answer is refused by key", () => {
73
73
  const refused = (v: unknown): string => {
74
- const r = parsePaperFields(v, VENUE, "msr.jsonc");
74
+ const r = parsePaperFields(v, VENUE, "msr-2027.jsonc");
75
75
  return r.ok ? "accepted" : r.error;
76
76
  };
77
77
  assert.equal(
@@ -110,7 +110,7 @@ test("🔴 parsePaperFields: each other wrong answer is refused by key", () => {
110
110
  });
111
111
 
112
112
  test("🔴 parsePaperFields: no fields at all, on a venue whose form requires one — refused, naming it, not sent empty", () => {
113
- const r = parsePaperFields(null, VENUE, "msr.jsonc");
113
+ const r = parsePaperFields(null, VENUE, "msr-2027.jsonc");
114
114
  expect(r.ok ? "accepted" : r.error).toBe(
115
115
  '"fields" does not fill 1 field the venue\'s form requires: topics (checkboxes: one or more of "SE Topic: AI for software engineering", "Performance analysis and testing")',
116
116
  );
@@ -137,11 +137,14 @@ test("parsePaperFields: an optional checkbox list may be empty; a required text
137
137
  });
138
138
 
139
139
  test("🔴 parsePaperFields: fields on a venue whose preset records none — refused, naming where it looked", () => {
140
- assert.deepEqual(parsePaperFields({ topics: ["x"] }, null, "msr.jsonc"), {
141
- ok: false,
142
- error:
143
- '"fields" is set, but the venue preset records no "submission_fields" (read: msr.jsonc) — record the form\'s fields in the venue\'s preset first, or drop "fields"',
144
- });
140
+ assert.deepEqual(
141
+ parsePaperFields({ topics: ["x"] }, null, "msr-2027.jsonc"),
142
+ {
143
+ ok: false,
144
+ error:
145
+ '"fields" is set, but the venue preset records no "submission_fields" (read: msr-2027.jsonc) — record the form\'s fields in the venue\'s preset first, or drop "fields"',
146
+ },
147
+ );
145
148
  });
146
149
 
147
150
  test("🔴 droppedFields: a checkbox list sent, missing from the changes and named by the portal — dropped; otherwise not", () => {