paperlint 17.3.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 (190) hide show
  1. package/.github/workflows/deadlines.yml +1 -1
  2. package/CONTRIBUTING.md +8 -5
  3. package/README.md +19 -18
  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 +37 -24
  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/expect.json +1 -1
  89. package/fixtures/build-e2e/fse/paperlint.json +1 -1
  90. package/fixtures/build-e2e/fse-over/expect.json +1 -1
  91. package/fixtures/build-e2e/fse-over/paperlint.json +1 -1
  92. package/fixtures/build-e2e/msr/paperlint.json +1 -1
  93. package/fixtures/build-e2e/msr-appendix-after/paperlint.json +1 -1
  94. package/lib/skill-checks.mjs +1 -1
  95. package/package.json +1 -1
  96. package/presets/acl-latex.jsonc +35 -0
  97. package/presets/acl-latex.md +40 -0
  98. package/presets/acm-acmsmall.md +1 -1
  99. package/presets/acm-sigconf.jsonc +1 -1
  100. package/presets/acm-sigconf.md +1 -1
  101. package/presets/acsac-2026.jsonc +19 -0
  102. package/presets/acsac-2026.md +46 -0
  103. package/presets/{agent.jsonc → agent-2027.jsonc} +14 -7
  104. package/presets/{agent.md → agent-2027.md} +10 -6
  105. package/presets/{agenticdev.jsonc → agenticdev-2026.jsonc} +6 -3
  106. package/presets/{agenticdev.md → agenticdev-2026.md} +5 -5
  107. package/presets/{agentverify.jsonc → agentverify-2027.jsonc} +10 -2
  108. package/presets/{agentverify.md → agentverify-2027.md} +9 -3
  109. package/presets/{aidc.jsonc → aidc-2026.jsonc} +12 -4
  110. package/presets/{aidc.md → aidc-2026.md} +8 -4
  111. package/presets/{aisec.jsonc → aisec-2026.jsonc} +7 -4
  112. package/presets/{aisec.md → aisec-2026.md} +7 -6
  113. package/presets/{ase.jsonc → ase-2026.jsonc} +9 -9
  114. package/presets/{ase.md → ase-2026.md} +8 -8
  115. package/presets/{ccs.jsonc → ccs-2026.jsonc} +4 -4
  116. package/presets/{ccs.md → ccs-2026.md} +4 -4
  117. package/presets/emnlp-2026.jsonc +21 -0
  118. package/presets/emnlp-2026.md +46 -0
  119. package/presets/{fse.jsonc → fse-2027.jsonc} +6 -7
  120. package/presets/{fse.md → fse-2027.md} +9 -9
  121. package/presets/icse-2027.jsonc +24 -0
  122. package/presets/icse-2027.md +53 -0
  123. package/presets/{icse.jsonc → icse-2028.jsonc} +8 -7
  124. package/presets/{icse.md → icse-2028.md} +9 -8
  125. package/presets/ieee-conference.jsonc +1 -1
  126. package/presets/ieee-conference.md +2 -2
  127. package/presets/{msr.jsonc → msr-2027.jsonc} +4 -5
  128. package/presets/{msr.md → msr-2027.md} +7 -7
  129. package/presets/{nlbse.jsonc → nlbse-2027.jsonc} +9 -1
  130. package/presets/{nlbse.md → nlbse-2027.md} +9 -3
  131. package/presets/{realm.jsonc → realm-2026.jsonc} +17 -27
  132. package/presets/{realm.md → realm-2026.md} +11 -4
  133. package/presets/{sp.jsonc → sp-2027.jsonc} +8 -8
  134. package/presets/{sp.md → sp-2027.md} +5 -5
  135. package/presets/tex/agenticdev.tex +1 -1
  136. package/presets/venue-profile.schema.json +28 -13
  137. package/scripts/refresh-deadlines/main.test.ts +4 -4
  138. package/scripts/refresh-deadlines/refresh.test.ts +9 -9
  139. package/skills/find-venue/SKILL.md +2 -2
  140. package/skills/find-venue/SKILL.md.spec.ts +1 -1
  141. package/skills/render-paper/extract-pdf-facts.harness.ts +2 -2
  142. package/skills/submit-paper/SKILL.md +7 -7
  143. package/skills/submit-paper/SKILL.md.spec.ts +6 -6
  144. package/src/adapters/latex/index.ts +3 -0
  145. package/src/adapters/latex/parse.ts +15 -0
  146. package/src/adapters/latex/venue-lines.ts +21 -0
  147. package/src/build.harness.mjs +5 -2
  148. package/src/build.ts +1 -1
  149. package/src/cli.test.ts +8 -6
  150. package/src/cli.ts +23 -6
  151. package/src/cycle-rules.test.ts +8 -6
  152. package/src/domain/body-pages.ts +1 -1
  153. package/src/domain/edition.ts +104 -0
  154. package/src/domain/submission-fields.test.ts +13 -10
  155. package/src/domain/venue-name.test.ts +41 -16
  156. package/src/domain/versions.test.ts +2 -2
  157. package/src/edition-rule.test.ts +164 -0
  158. package/src/edition-rule.ts +121 -0
  159. package/src/facts-file.test.ts +4 -4
  160. package/src/facts-file.ts +1 -1
  161. package/src/folder-layout-rule.test.ts +1 -1
  162. package/src/folder-layout-rule.ts +1 -1
  163. package/src/folder-venue-rule.test.ts +33 -11
  164. package/src/folder-venue-rule.ts +16 -7
  165. package/src/heading-case.test.ts +4 -4
  166. package/src/heading-case.ts +1 -1
  167. package/src/linted-set.test.ts +1 -1
  168. package/src/new-paper.test.ts +38 -25
  169. package/src/paper-files.test.ts +1 -1
  170. package/src/paper-settings-commands.test.ts +4 -4
  171. package/src/paper-settings.test.ts +16 -13
  172. package/src/ports/latex.ts +6 -0
  173. package/src/preset-card-rule.test.ts +30 -24
  174. package/src/preset-card-rule.ts +2 -1
  175. package/src/presets.test.ts +347 -70
  176. package/src/presets.ts +124 -31
  177. package/src/register-bands.test.ts +2 -2
  178. package/src/rule-cases.test.ts +26 -4
  179. package/src/submission-show.test.ts +3 -3
  180. package/src/submission-update.test.ts +1 -1
  181. package/src/submission.test.ts +1 -1
  182. package/src/talk-rules.test.ts +1 -1
  183. package/src/tex-requirements.harness.ts +2 -2
  184. package/src/tex-requirements.ts +2 -4
  185. package/src/tex-venue-rules.test.ts +187 -62
  186. package/src/tex-venue-rules.ts +129 -29
  187. package/src/venue-rules.test.ts +26 -23
  188. package/src/venue-rules.ts +1 -1
  189. package/src/versions-command.test.ts +2 -2
  190. package/templates/paper/paperlint.json +1 -1
@@ -69,7 +69,7 @@ function lint(
69
69
  return out;
70
70
  }
71
71
 
72
- const AIDC = { extends: "paperlint:aidc", kind: "regular" };
72
+ const AIDC = { extends: "paperlint:aidc-2026", kind: "regular" };
73
73
 
74
74
  describe("paper/folder-venue-leftover — the folder names another venue", () => {
75
75
  it("a folder named after the venue the paper left is reported, naming both and the cure", () => {
@@ -78,7 +78,7 @@ describe("paper/folder-venue-leftover — the folder names another venue", () =>
78
78
  messageId: "leftover",
79
79
  line: 1,
80
80
  message:
81
- "the folder name «aisec-2026» names the venue AISec, and this paper extends AIDC — the name went stale when the venue changed, and venues change on every resubmission. Name the folder after the work (what the paper shows), not the venue",
81
+ "the folder name «aisec-2026» names the venue AISec 2026, and this paper extends AIDC — the name went stale when the venue changed, and venues change on every resubmission. Name the folder after the work (what the paper shows), not the venue",
82
82
  },
83
83
  ]);
84
84
  });
@@ -88,7 +88,7 @@ describe("paper/folder-venue-leftover — the folder names another venue", () =>
88
88
  lint("emnlp-agents", AIDC).map(
89
89
  (r) => /names the venue (.*?), and/u.exec(r.message)?.[1],
90
90
  ),
91
- ).toEqual(["REALM («EMNLP»)"]);
91
+ ).toEqual(["EMNLP"]);
92
92
  });
93
93
 
94
94
  it("two other venues are two findings", () => {
@@ -102,7 +102,7 @@ describe("paper/folder-venue-leftover — the folder names another venue", () =>
102
102
  it("a project's own preset is judged like a shipped one: its label and aliases are its own", () => {
103
103
  const extra = {
104
104
  [`${PAPERS}/aidc-redux/venue.jsonc`]: JSON.stringify(
105
- venuePreset("AISec 2027", { extends: "paperlint:aisec" }),
105
+ venuePreset("AISec Redux", { extends: "paperlint:aisec-2026" }),
106
106
  ),
107
107
  };
108
108
  // Its chain is AISec's, so aisec is its own; aidc is another venue.
@@ -120,7 +120,7 @@ describe("paper/folder-venue-leftover — the folder names another venue", () =>
120
120
  {
121
121
  extra: {
122
122
  [`${PAPERS}/aisec-redux/venue.jsonc`]: JSON.stringify(
123
- venuePreset("venue", { extends: "paperlint:aisec" }),
123
+ venuePreset("venue", { extends: "paperlint:aisec-2026" }),
124
124
  ),
125
125
  },
126
126
  },
@@ -129,7 +129,7 @@ describe("paper/folder-venue-leftover — the folder names another venue", () =>
129
129
  });
130
130
  });
131
131
 
132
- describe("paper/folder-venue-leftover — FSE is named by its edition", () => {
132
+ describe("paper/folder-venue-leftover — a venue is named by its edition", () => {
133
133
  it("«fse-2027-…» is reported; a folder about FSE papers is not", () => {
134
134
  expect(
135
135
  lint("fse-2027-flaky", AIDC).map(
@@ -138,6 +138,25 @@ describe("paper/folder-venue-leftover — FSE is named by its edition", () => {
138
138
  ).toEqual(["FSE 2027"]);
139
139
  expect(lint("fse-replication", AIDC)).toEqual([]);
140
140
  });
141
+
142
+ it("🔴 a name that is an ordinary word counts only as the edition: «agent-2027-…», not «agent-…»", () => {
143
+ const named = (folder: string, settings: object = AIDC) =>
144
+ lint(folder, settings).map(
145
+ (r) => /names the venue (.*?), and/u.exec(r.message)?.[1],
146
+ );
147
+ expect(named("agent-2027-study")).toEqual(["AGENT 2027"]);
148
+ expect(named("agent-study")).toEqual([]);
149
+ });
150
+
151
+ it("🔴 another edition of its own series is another venue: «icse-2027-…» under ICSE 2028", () => {
152
+ const ICSE = { extends: "paperlint:icse-2028", kind: "research" };
153
+ expect(
154
+ lint("icse-2027-flaky", ICSE).map(
155
+ (r) => /names the venue (.*?), and/u.exec(r.message)?.[1],
156
+ ),
157
+ ).toEqual(["ICSE 2027"]);
158
+ expect(lint("icse-2028-flaky", ICSE)).toEqual([]);
159
+ });
141
160
  });
142
161
 
143
162
  describe("paper/folder-venue-leftover — a workshop's parent conference", () => {
@@ -148,6 +167,8 @@ describe("paper/folder-venue-leftover — a workshop's parent conference", () =>
148
167
  );
149
168
  expect(named("acm-ccs-agents")).toEqual(["ACM CCS"]);
150
169
  expect(named("ase-agents")).toEqual(["ASE"]);
170
+ // An alias that is not the start of the edition's name says which alias it was.
171
+ expect(named("oakland-attacks")).toEqual(["IEEE S&P 2027 («Oakland»)"]);
151
172
  });
152
173
  });
153
174
 
@@ -156,18 +177,19 @@ describe("paper/folder-venue-leftover — silent", () => {
156
177
  [
157
178
  "the folder names the paper's own venue",
158
179
  "agenticdev-2026",
159
- { extends: "paperlint:agenticdev", kind: "short" },
180
+ { extends: "paperlint:agenticdev-2026", kind: "short" },
160
181
  ],
161
- ["by its alias", "acsac-2026", AIDC],
182
+ ["by its parent conference's edition", "acsac-2026", AIDC],
183
+ ["by its own edition", "aidc-2026", AIDC],
162
184
  [
163
185
  "the conference the workshop is held at (`parent`)",
164
186
  "ase-agents",
165
- { extends: "paperlint:agenticdev", kind: "short" },
187
+ { extends: "paperlint:agenticdev-2026", kind: "short" },
166
188
  ],
167
189
  [
168
190
  "the parent conference by its two words",
169
191
  "acm-ccs-agents",
170
- { extends: "paperlint:aisec", kind: "research" },
192
+ { extends: "paperlint:aisec-2026", kind: "research" },
171
193
  ],
172
194
  ["the folder names no venue", "agent-rule-drift", AIDC],
173
195
  // Whole words only: REALM is not inside these.
@@ -197,7 +219,7 @@ describe("paper/folder-venue-leftover — silent", () => {
197
219
 
198
220
  it("a paper on a bare template family declares no venue: a venue in its folder may be its own", () => {
199
221
  // The accepted ACSAC papers in fixtures/accepted-papers/ are exactly this: `…-acsac24` folders
200
- // extending ieee-conference, while `aidc` names ACSAC, its parent conference, as an alias.
222
+ // extending ieee-conference, while ACSAC is a shipped venue, the parent conference of AIDC.
201
223
  expect(
202
224
  lint("secure-acsac24", { extends: "paperlint:ieee-conference" }),
203
225
  ).toEqual([]);
@@ -27,7 +27,8 @@
27
27
  */
28
28
  import { basename, dirname } from "node:path";
29
29
  import { venuesNamedBy, type NamedIn } from "./domain/venue-name.ts";
30
- import { paperPreset, type Preset } from "./presets.ts";
30
+ import { editionLabel } from "./domain/edition.ts";
31
+ import { folderNamesOf, paperPreset, type Preset } from "./presets.ts";
31
32
  import { otherVenues, type OtherVenue } from "./tex-venue-rules.ts";
32
33
  import type { Finding, VenueRuleDeps } from "./venue-rules.ts";
33
34
 
@@ -60,11 +61,17 @@ export interface FolderRuleModule {
60
61
  create(context: FolderRuleContext): { root?: () => void };
61
62
  }
62
63
 
63
- /** A venue as the message names it: its label, and the alias when the folder used another name. */
64
+ /**
65
+ * A venue as the message names it: its label, and the alias when the folder used another name. A
66
+ * name the edition's label begins with (`AISec` of `AISec 2026`) is said alone: the folder named
67
+ * the series, not that year.
68
+ */
64
69
  const shown = (n: NamedIn): string =>
65
70
  n.name.toLowerCase() === n.venue.toLowerCase()
66
71
  ? n.venue
67
- : `${n.venue} («${n.name}»)`;
72
+ : n.venue.toLowerCase().startsWith(`${n.name.toLowerCase()} `)
73
+ ? n.name
74
+ : `${n.venue} («${n.name}»)`;
68
75
 
69
76
  /**
70
77
  * Each other venue the folder name names, as a finding. Pure: the folder's name, the paper's
@@ -72,11 +79,13 @@ const shown = (n: NamedIn): string =>
72
79
  */
73
80
  export function judgeFolder(
74
81
  folder: string,
75
- preset: Pick<Preset, "label" | "aliases" | "parentNames">,
82
+ preset: Pick<Preset, "label" | "aliases" | "parentNames" | "year">,
76
83
  others: readonly OtherVenue[],
77
84
  ): readonly Finding[] {
78
- const own = [preset.label, ...preset.aliases, ...preset.parentNames];
79
- return venuesNamedBy(folder, others, own).map((n) => ({
85
+ // Its names, and its parent's (of its own year), bare and as this edition.
86
+ const names = [preset.label, ...preset.aliases, ...preset.parentNames];
87
+ const own = [...names, ...names.map((n) => editionLabel(n, preset.year))];
88
+ return venuesNamedBy(folder, others.map(folderNamesOf), own).map((n) => ({
80
89
  messageId: "leftover",
81
90
  data: { folder, other: shown(n), venue: preset.label },
82
91
  }));
@@ -87,7 +96,7 @@ export function judgeFolder(
87
96
  * "family"`), which a paper for a venue paperlint has no preset for extends directly. Such a paper
88
97
  * declares a format, not a venue, so a venue in its folder name may be its own: the accepted ACSAC
89
98
  * papers in `fixtures/accepted-papers/` extend `ieee-conference` from folders named `…-acsac24`, and
90
- * ACSAC is the parent conference `aidc` names as an alias.
99
+ * ACSAC is a shipped venue, the parent conference of `aidc-2026`.
91
100
  */
92
101
  const isFamily = (preset: Preset): boolean => preset.identity.type === "family";
93
102
 
@@ -85,7 +85,7 @@ async function refusal(entry: unknown): Promise<string> {
85
85
  );
86
86
  }
87
87
 
88
- const PRESET = { extends: "paperlint:agenticdev", kind: "short" };
88
+ const PRESET = { extends: "paperlint:agenticdev-2026", kind: "short" };
89
89
  const CHICAGO = { title: "chicago-headline", headings: "chicago-headline" };
90
90
  const SENTENCE_CASE = [
91
91
  "\\section{Related work}",
@@ -255,10 +255,10 @@ describe("tex/heading-case on a paper whose preset does not turn it on", () => {
255
255
 
256
256
  it.each([
257
257
  ["acm-sigconf", undefined],
258
- ["aisec", "research"],
258
+ ["aisec-2026", "research"],
259
259
  ["ieee-conference", undefined],
260
- ["aidc", "short"],
261
- ["realm", "short"],
260
+ ["aidc-2026", "short"],
261
+ ["realm-2026", "short"],
262
262
  ])(
263
263
  "🔴 is silent on paperlint:%s: its venue's case rule was not read, or is a variant not built",
264
264
  async (venue, kind) => {
@@ -10,7 +10,7 @@
10
10
  * Which style a venue asks is the venue's, and venues name different authorities: Conference
11
11
  * Publishing (AgenticDev's proceedings) quotes the Chicago Manual of Style, ACL links APA title case,
12
12
  * IEEE's manual has its own list. So the rule is optional, like `pdf/last-page-balance`: a venue
13
- * preset whose author kit was read turns it on in its `rules` — today only `presets/agenticdev.jsonc`
13
+ * preset whose author kit was read turns it on in its `rules` — today only `presets/agenticdev-2026.jsonc`
14
14
  * — and a paper may turn it on in its own `paperlint.json`.
15
15
  *
16
16
  * ── THE OPTIONS ARE PARSED ONCE, WHEN ESLINT LOADS THE RULE ──────────────────────
@@ -79,7 +79,7 @@ function project(): string {
79
79
  }),
80
80
  // A venue preset that carries `rules` of its own.
81
81
  "papers/a/paperlint.json": JSON.stringify({
82
- extends: "paperlint:agenticdev",
82
+ extends: "paperlint:agenticdev-2026",
83
83
  }),
84
84
  "papers/a/paper.tex": TEX,
85
85
  "papers/a/PIPELINE-STATUS.md": "---\nstages: []\n---\n",
@@ -74,7 +74,7 @@ describe("paperlint new — paperlint.json", () => {
74
74
  });
75
75
  const s = settingsOf(join(papers, "demo"));
76
76
  expect(s["extends"]).toBeNull();
77
- expect(String(s["$comment"])).toMatch(/paperlint:agenticdev/);
77
+ expect(String(s["$comment"])).toMatch(/paperlint:agenticdev-2026/);
78
78
  expect(parsePaperSettings(s)).toEqual({
79
79
  ok: true,
80
80
  value: {
@@ -97,14 +97,14 @@ describe("paperlint new — paperlint.json", () => {
97
97
  mkdirSync(join(papers, OVERRIDE_DIR), { recursive: true });
98
98
  writeFileSync(
99
99
  join(papers, OVERRIDE_DIR, "paperlint.json"),
100
- '{ "extends": "paperlint:aisec", "kind": "research" }\n',
100
+ '{ "extends": "paperlint:aisec-2026", "kind": "research" }\n',
101
101
  );
102
102
  const r = newPaper(papers, "house", { venues: [] });
103
103
  expect(r.ok && r.files.find((f) => f.file === "paperlint.json")?.from).toBe(
104
104
  "project",
105
105
  );
106
106
  expect(settingsOf(join(papers, "house"))).toEqual({
107
- extends: "paperlint:aisec",
107
+ extends: "paperlint:aisec-2026",
108
108
  kind: "research",
109
109
  });
110
110
  });
@@ -114,14 +114,14 @@ describe("paperlint new — paperlint.json", () => {
114
114
  mkdirSync(join(papers, "p"), { recursive: true });
115
115
  writeFileSync(
116
116
  join(papers, "p", "paperlint.json"),
117
- '{"extends":"paperlint:aisec"}',
117
+ '{"extends":"paperlint:aisec-2026"}',
118
118
  );
119
119
  const r = newPaper(papers, "p", { venues: [] });
120
120
  expect(
121
121
  r.ok && r.files.find((f) => f.file === "paperlint.json")?.status,
122
122
  ).toBe("kept");
123
123
  expect(settingsOf(join(papers, "p"))).toEqual({
124
- extends: "paperlint:aisec",
124
+ extends: "paperlint:aisec-2026",
125
125
  });
126
126
  });
127
127
  });
@@ -165,7 +165,7 @@ describe("paperlint lint — a paper with no venue preset chosen", () => {
165
165
  });
166
166
 
167
167
  it("a paper with a real extends does not get it", async () => {
168
- const { messages } = await lintNew("paperlint:agenticdev");
168
+ const { messages } = await lintNew("paperlint:agenticdev-2026");
169
169
  expect(messages.map((m) => m.message).join("\n")).not.toMatch(
170
170
  /names no venue preset yet/,
171
171
  );
@@ -213,9 +213,9 @@ describe("paperlint new --venue / --kind", () => {
213
213
  `;
214
214
 
215
215
  it("a shipped venue and its kind → extends and kind in paperlint.json, lint resolves it", async () => {
216
- const r = await newIn(["--venue", "agenticdev", "--kind", "short"]);
216
+ const r = await newIn(["--venue", "agenticdev-2026", "--kind", "short"]);
217
217
  expect(r.settings()).toEqual({
218
- extends: "paperlint:agenticdev",
218
+ extends: "paperlint:agenticdev-2026",
219
219
  kind: "short",
220
220
  });
221
221
  expect(r.out).not.toMatch(/pdf\/profile/);
@@ -223,7 +223,7 @@ describe("paperlint new --venue / --kind", () => {
223
223
  });
224
224
 
225
225
  it("🔴 the new paper.tex is set in the venue's class, so tex/template passes on what new wrote; the required section is named", async () => {
226
- const r = await newIn(["--venue", "aidc", "--kind", "regular"]);
226
+ const r = await newIn(["--venue", "aidc-2026", "--kind", "regular"]);
227
227
  const tex = readFileSync(join(r.dir, "paper.tex"), "utf8");
228
228
  expect(tex).toContain("\\documentclass[conference,compsoc]{IEEEtran}\n");
229
229
  expect(tex).not.toContain("{article}");
@@ -267,7 +267,7 @@ describe("paperlint new --venue / --kind", () => {
267
267
 
268
268
  describe("paperlint new --venue msr", () => {
269
269
  it("`new --venue msr` writes MSR's class line, and once the paper declares who wrote it, lint is clean", async () => {
270
- const r = await newIn(["--venue", "msr", "--kind", "technical"]);
270
+ const r = await newIn(["--venue", "msr-2027", "--kind", "technical"]);
271
271
  const tex = readFileSync(join(r.dir, "paper.tex"), "utf8");
272
272
  expect(tex).toContain("\\documentclass[10pt,conference]{IEEEtran}\n");
273
273
  expect(r.out).not.toMatch(/tex\/template|format\/page-limit|pdf\/profile/);
@@ -285,8 +285,10 @@ describe("paperlint new --venue msr", () => {
285
285
  err: () => {},
286
286
  });
287
287
  // Guards: what remains is the reminder that the paper is not built yet — two warnings, not a
288
- // finding about the paper: no PDF measured, no record of what TeX read.
289
- expect(out.join("\n")).toMatch(/\(0 errors, 2 warnings\)/);
288
+ // finding about the paper: no PDF measured, no record of what TeX read — and that MSR 2027,
289
+ // whose every deadline passed in 2026, is over (it stays over, so the count is stable).
290
+ expect(out.join("\n")).toMatch(/\(0 errors, 3 warnings\)/);
291
+ expect(out.join("\n")).toMatch(/MSR 2027 is over.*paper\/edition-over/);
290
292
  expect(out.join("\n")).toMatch(/pdf\/measured/);
291
293
  expect(out.join("\n")).toMatch(/paper\/sources-fresh/);
292
294
  expect(code).toBe(0);
@@ -302,13 +304,24 @@ describe("paperlint new --venue — a venue it cannot use", () => {
302
304
  expect(r.err).toMatch(/--venue neurips: no such venue preset/);
303
305
  expect(existsSync(r.dir)).toBe(false);
304
306
  });
307
+
308
+ it("🔴 a bare series exits 2, names the editions, and creates nothing: it is never the latest edition", async () => {
309
+ for (const venue of ["icse", "paperlint:icse"]) {
310
+ const r = await newIn(["--venue", venue]);
311
+ expect(r.code).toBe(2);
312
+ expect(r.err).toContain(
313
+ "--venue paperlint:icse names a series, not an edition: a venue preset is one edition, so a new edition never changes a paper's rules unasked. Shipped editions: paperlint:icse-2027, paperlint:icse-2028 — did you mean paperlint:icse-2028?",
314
+ );
315
+ expect(existsSync(r.dir)).toBe(false);
316
+ }
317
+ });
305
318
  });
306
319
 
307
320
  describe("paperlint new --venue / --kind — refusals and defaults", () => {
308
321
  it.each([
309
322
  [
310
323
  "a kind the preset lacks",
311
- ["--venue", "agenticdev", "--kind", "long"],
324
+ ["--venue", "agenticdev-2026", "--kind", "long"],
312
325
  /`AgenticDev` has no kind `long`; its kinds: short, full, demo/,
313
326
  ],
314
327
  ["a kind without a venue", ["--kind", "short"], /--kind needs --venue/],
@@ -330,8 +343,8 @@ describe("paperlint new --venue / --kind — refusals and defaults", () => {
330
343
  });
331
344
 
332
345
  it("a venue with kinds and no --kind: written, and new says what lint will report", async () => {
333
- const r = await newIn(["--venue", "agenticdev"]);
334
- expect(r.settings()).toEqual({ extends: "paperlint:agenticdev" });
346
+ const r = await newIn(["--venue", "agenticdev-2026"]);
347
+ expect(r.settings()).toEqual({ extends: "paperlint:agenticdev-2026" });
335
348
  expect(r.out).toMatch(
336
349
  /kind: not set — `AgenticDev` sets a page limit per kind/,
337
350
  );
@@ -346,7 +359,7 @@ describe("paperlint new --venue / --kind — refusals and defaults", () => {
346
359
  });
347
360
 
348
361
  it("an existing paperlint.json is never overwritten: --venue is refused", async () => {
349
- const r = await newIn(["--venue", "aisec"], {
362
+ const r = await newIn(["--venue", "aisec-2026"], {
350
363
  "papers/demo/paperlint.json": '{ "extends": null }\n',
351
364
  });
352
365
  expect(r.code).toBe(2);
@@ -367,19 +380,19 @@ describe("paperlint new — a name that names a venue is refused", () => {
367
380
  "nothing but a year left: no example",
368
381
  "aisec-2026",
369
382
  [],
370
- '`aisec-2026` — the paper folder names a venue ("AISec"); venues change on resubmission, so name it after the work',
383
+ '`aisec-2026` — the paper folder names a venue ("AISec 2026"); venues change on resubmission, so name it after the work',
371
384
  ],
372
385
  [
373
386
  "its own venue too: right today, stale on the next resubmission",
374
387
  "aidc-2026",
375
- ["--venue", "aidc"],
376
- '`aidc-2026` — the paper folder names a venue ("AIDC"); venues change on resubmission, so name it after the work',
388
+ ["--venue", "aidc-2026"],
389
+ '`aidc-2026` — the paper folder names a venue ("AIDC 2026"); venues change on resubmission, so name it after the work',
377
390
  ],
378
391
  [
379
392
  "by an alias, glued to a year",
380
393
  "acsac2026-rules",
381
394
  [],
382
- '`acsac2026-rules` — the paper folder names a venue ("ACSAC"); venues change on resubmission, so name it after the work',
395
+ '`acsac2026-rules` — the paper folder names a venue ("ACSAC 2026"); venues change on resubmission, so name it after the work (e.g. "rules")',
383
396
  ],
384
397
  [
385
398
  "two venues",
@@ -455,7 +468,7 @@ describe("paperlint new --allow-venue-name", () => {
455
468
  {
456
469
  what: "an existing paperlint.json with --venue",
457
470
  name: "realm-of-agents",
458
- args: ["--venue", "aisec"],
471
+ args: ["--venue", "aisec-2026"],
459
472
  files: {
460
473
  "papers/realm-of-agents/paperlint.json": '{ "extends": null }\n',
461
474
  },
@@ -484,11 +497,11 @@ describe("chooseVenue — on a terminal", () => {
484
497
  };
485
498
 
486
499
  it("asks the venue from the shipped list, then its kind", async () => {
487
- const t = at(["agenticdev", "full"]);
500
+ const t = at(["agenticdev-2026", "full"]);
488
501
  const r = await chooseVenue({ venue: null, kind: null }, t.opts);
489
502
  expect(r).toMatchObject({
490
503
  ok: true,
491
- value: { extends: "paperlint:agenticdev", kind: "full" },
504
+ value: { extends: "paperlint:agenticdev-2026", kind: "full" },
492
505
  });
493
506
  expect(t.asked[0]).toContain(
494
507
  [...shippedPresets(presetsDir()), "none"].join(" / "),
@@ -505,7 +518,7 @@ describe("chooseVenue — on a terminal", () => {
505
518
  });
506
519
 
507
520
  it("without a terminal nothing is asked", async () => {
508
- const t = at(["agenticdev"]);
521
+ const t = at(["agenticdev-2026"]);
509
522
  const r = await chooseVenue(
510
523
  { venue: null, kind: null },
511
524
  { ...t.opts, interactive: false },
@@ -523,7 +536,7 @@ describe("a project's own template", () => {
523
536
  writeFileSync(src, '{\n // our house venue\n "extends": null\n}\n');
524
537
  const r = newPaper(papers, "p", {
525
538
  venues: [],
526
- venue: { extends: "paperlint:aisec", kind: null },
539
+ venue: { extends: "paperlint:aisec-2026", kind: null },
527
540
  });
528
541
  expect(r).toEqual({
529
542
  ok: false,
@@ -185,7 +185,7 @@ describe("🔴 a generated block never reaches a file paperlint does not lint (#
185
185
  "a venue preset's rules",
186
186
  {
187
187
  "papers/a/paperlint.json": JSON.stringify({
188
- extends: "paperlint:agenticdev",
188
+ extends: "paperlint:agenticdev-2026",
189
189
  }),
190
190
  },
191
191
  ],
@@ -207,7 +207,7 @@ describe("paperlint lint — the venue preset's rules", () => {
207
207
  it("agenticdev's preset turns pdf/last-page-balance and tex/heading-case on for its paper alone", async () => {
208
208
  const root = project({
209
209
  "papers/a/paperlint.json": JSON.stringify({
210
- extends: "paperlint:agenticdev",
210
+ extends: "paperlint:agenticdev-2026",
211
211
  kind: "short",
212
212
  }),
213
213
  });
@@ -236,7 +236,7 @@ describe("paperlint lint — the venue preset's rules", () => {
236
236
  it("🔴 an unbuilt agenticdev paper: two warnings (pdf/measured, paper/sources-fresh), and no balance error", async () => {
237
237
  const root = project({
238
238
  "papers/a/paperlint.json": JSON.stringify({
239
- extends: "paperlint:agenticdev",
239
+ extends: "paperlint:agenticdev-2026",
240
240
  kind: "short",
241
241
  }),
242
242
  // In agenticdev's class, or tex/template would be the finding.
@@ -256,7 +256,7 @@ describe("paperlint lint — the paper over its preset, and the project's own pr
256
256
  it("the paper's own rules win over its preset's", async () => {
257
257
  const root = project({
258
258
  "papers/a/paperlint.json": JSON.stringify({
259
- extends: "paperlint:agenticdev",
259
+ extends: "paperlint:agenticdev-2026",
260
260
  rules: { "pdf/last-page-balance": "off" },
261
261
  }),
262
262
  });
@@ -302,7 +302,7 @@ describe("paperlint lint — the paper over its preset, and the project's own pr
302
302
  const r = await lint(root);
303
303
  expect(r.code).toBe(1);
304
304
  expect(r.out).toMatch(
305
- /acm-acmsmall, acm-sigconf, agent, agenticdev, agentverify, aidc, aisec, ase, ccs, fse, icse, ieee-conference, msr, nlbse, realm, sp/,
305
+ /acl-latex, acm-acmsmall, acm-sigconf, acsac-2026, agent-2027, agenticdev-2026, agentverify-2027, aidc-2026, aisec-2026, ase-2026, ccs-2026, emnlp-2026, fse-2027, icse-2027, icse-2028, ieee-conference, msr-2027, nlbse-2027, realm-2026, sp-2027/,
306
306
  );
307
307
  });
308
308
  });
@@ -22,11 +22,11 @@ const SHIPPED = new Set([
22
22
  describe("parsePaperSettings", () => {
23
23
  it("reads extends, kind, pdf and rules; every absent field is null", () => {
24
24
  expect(
25
- parsePaperSettings({ extends: "paperlint:aisec", kind: "research" }),
25
+ parsePaperSettings({ extends: "paperlint:aisec-2026", kind: "research" }),
26
26
  ).toEqual({
27
27
  ok: true,
28
28
  value: {
29
- extends: "paperlint:aisec",
29
+ extends: "paperlint:aisec-2026",
30
30
  kind: "research",
31
31
  pdf: null,
32
32
  rules: null,
@@ -86,7 +86,8 @@ describe("parsePaperSettings — optional keys", () => {
86
86
 
87
87
  it("accepts $comment, JSON Schema's comment keyword, and ignores it", () => {
88
88
  expect(
89
- parsePaperSettings({ extends: "paperlint:aisec", $comment: "why" }).ok,
89
+ parsePaperSettings({ extends: "paperlint:aisec-2026", $comment: "why" })
90
+ .ok,
90
91
  ).toBe(true);
91
92
  });
92
93
 
@@ -98,7 +99,7 @@ describe("parsePaperSettings — optional keys", () => {
98
99
  ],
99
100
  [
100
101
  "a comment key other than `$comment`",
101
- { extends: "paperlint:aisec", _: "note" },
102
+ { extends: "paperlint:aisec-2026", _: "note" },
102
103
  /unknown key "_"/,
103
104
  ],
104
105
  [
@@ -144,10 +145,10 @@ describe("readPaperSettings", () => {
144
145
 
145
146
  it("reads paperlint.json", () => {
146
147
  const files = memoryFiles({
147
- [`${PAPER}/paperlint.json`]: '{"extends":"paperlint:aisec"}',
148
+ [`${PAPER}/paperlint.json`]: '{"extends":"paperlint:aisec-2026"}',
148
149
  });
149
150
  const r = readPaperSettings(files, PAPER);
150
- expect(r.ok && r.value?.extends).toBe("paperlint:aisec");
151
+ expect(r.ok && r.value?.extends).toBe("paperlint:aisec-2026");
151
152
  });
152
153
 
153
154
  it("not JSON: broken, with the parser's reason", () => {
@@ -210,10 +211,10 @@ describe("readPaperSettings — the root paperlint.json's defaults, the paper's
210
211
  expect(
211
212
  read({
212
213
  [`${ROOT}/paperlint.json`]:
213
- '{"papersDir":"papers","extends":"paperlint:agenticdev","kind":"short"}',
214
+ '{"papersDir":"papers","extends":"paperlint:agenticdev-2026","kind":"short"}',
214
215
  }),
215
216
  ).toEqual({
216
- extends: "paperlint:agenticdev",
217
+ extends: "paperlint:agenticdev-2026",
217
218
  kind: "short",
218
219
  ...UNSET,
219
220
  });
@@ -221,9 +222,11 @@ describe("readPaperSettings — the root paperlint.json's defaults, the paper's
221
222
 
222
223
  it("paper only: its own values", () => {
223
224
  expect(
224
- read({ [`${PAPER}/paperlint.json`]: '{"extends":"paperlint:aisec"}' }),
225
+ read({
226
+ [`${PAPER}/paperlint.json`]: '{"extends":"paperlint:aisec-2026"}',
227
+ }),
225
228
  ).toEqual({
226
- extends: "paperlint:aisec",
229
+ extends: "paperlint:aisec-2026",
227
230
  kind: null,
228
231
  ...UNSET,
229
232
  });
@@ -233,12 +236,12 @@ describe("readPaperSettings — the root paperlint.json's defaults, the paper's
233
236
  expect(
234
237
  read({
235
238
  [`${ROOT}/paperlint.json`]:
236
- '{"extends":"paperlint:agenticdev","kind":"short","rules":{"pdf/profile":"off"}}',
239
+ '{"extends":"paperlint:agenticdev-2026","kind":"short","rules":{"pdf/profile":"off"}}',
237
240
  [`${PAPER}/paperlint.json`]:
238
241
  '{"extends":null,"kind":"research","rules":{"pdf/fonts":"off"}}',
239
242
  }),
240
243
  ).toEqual({
241
- extends: "paperlint:agenticdev",
244
+ extends: "paperlint:agenticdev-2026",
242
245
  kind: "research",
243
246
  pdf: null,
244
247
  // The root's rules are the project's blocks (cli.ts), not this paper's.
@@ -276,7 +279,7 @@ describe("findProjectRoot — where the root paperlint.json is looked for", () =
276
279
  const files = withFiles({
277
280
  [`${PAPER}/paper.tex`]: "x",
278
281
  [`${PAPER}/paperlint.json`]: '{"kind":"research"}',
279
- [`${ROOT}/paperlint.json`]: '{"extends":"paperlint:aisec"}',
282
+ [`${ROOT}/paperlint.json`]: '{"extends":"paperlint:aisec-2026"}',
280
283
  });
281
284
  const isFile = (p: string) => files.isFile(absolutePath(p));
282
285
  expect(findProjectRoot(PAPER, isFile)).toBe(ROOT);
@@ -12,6 +12,7 @@ import type {
12
12
  LayoutOverride,
13
13
  Outline,
14
14
  Passage,
15
+ Place,
15
16
  Span,
16
17
  TextRun,
17
18
  TitledHeading,
@@ -58,6 +59,11 @@ export interface LatexReader {
58
59
  readonly headings: (src: string) => readonly TitledHeading[];
59
60
  /** The text a reader sees: prose, the author block, footnotes — not comments, keys, math, code. */
60
61
  readonly renderedRuns: (src: string) => readonly TextRun[];
62
+ /**
63
+ * Where the source states its venue: each `\\acmConference`, `\\acmBooktitle`, `\\conferenceinfo`
64
+ * and `\\IEEEpubid` with its arguments, in source order — never one in a comment.
65
+ */
66
+ readonly venueLines: (src: string) => readonly Place[];
61
67
  /**
62
68
  * The body's prose, as passages a sentence cannot cross: from the start of the document (the
63
69
  * abstract included) to the appendix or the bibliography, without headings, captions, floats,