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
@@ -13,6 +13,7 @@ import { latexReader } from "./adapters/latex/index.ts";
13
13
  import {
14
14
  cyclePortRules,
15
15
  judgeRequiredSections,
16
+ judgeLeftover,
16
17
  judgeTemplate,
17
18
  otherVenues,
18
19
  FORMAT_RULE_LEVELS,
@@ -117,7 +118,7 @@ function lint(
117
118
  const ids = (fs: readonly Finding[]) =>
118
119
  fs.map((f) => `${f.rule}:${f.messageId}`).sort();
119
120
 
120
- const AIDC = { extends: "paperlint:aidc", kind: "regular" };
121
+ const AIDC = { extends: "paperlint:aidc-2026", kind: "regular" };
121
122
  /** A paper in `documentclass`; the default body carries AIDC's required closing section. */
122
123
  const paper = (
123
124
  documentclass: string,
@@ -246,7 +247,7 @@ describe("the venue rules read the whole paper: the files it \\inputs, spliced w
246
247
  PAPER,
247
248
  {
248
249
  "paper.tex": tex,
249
- "intro.tex": "One line.\nFirst written for AgenticDev.\n",
250
+ "intro.tex": "One line.\nFirst written for AgenticDev 2026.\n",
250
251
  },
251
252
  [
252
253
  { path: "paper.tex", role: "body" },
@@ -309,8 +310,8 @@ describe("tex/template — several \\documentclass lines behind a TeX switch", (
309
310
  describe("tex/template — the shipped ACM and ACL templates", () => {
310
311
  it("🔴 acmart without sigconf — the manuscript format — fails every ACM preset", () => {
311
312
  for (const settings of [
312
- { extends: "paperlint:aisec", kind: "research" },
313
- { extends: "paperlint:agenticdev", kind: "short" },
313
+ { extends: "paperlint:aisec-2026", kind: "research" },
314
+ { extends: "paperlint:agenticdev-2026", kind: "short" },
314
315
  { extends: "paperlint:acm-sigconf" },
315
316
  ])
316
317
  expect(ids(lint(paper("\\documentclass{acmart}"), settings))).toEqual([
@@ -318,16 +319,39 @@ describe("tex/template — the shipped ACM and ACL templates", () => {
318
319
  ]);
319
320
  expect(
320
321
  lint(paper("\\documentclass[sigconf,review,anonymous]{acmart}"), {
321
- extends: "paperlint:aisec",
322
+ extends: "paperlint:aisec-2026",
322
323
  kind: "research",
323
324
  }),
324
325
  ).toEqual([]);
325
326
  });
326
327
 
328
+ it("🔴 acmart without acmsmall — the manuscript or the sigconf format — fails the single-column family and FSE", () => {
329
+ const FSE = { extends: "paperlint:fse-2027", kind: "research" };
330
+ for (const settings of [{ extends: "paperlint:acm-acmsmall" }, FSE])
331
+ for (const cls of [
332
+ "\\documentclass{acmart}",
333
+ "\\documentclass[sigconf,review,anonymous]{acmart}",
334
+ ])
335
+ expect(lint(paper(cls), settings)).toEqual([
336
+ {
337
+ rule: "tex/template",
338
+ messageId: "missingOption",
339
+ message: `the class option \`acmsmall\` is missing: ${settings === FSE ? "FSE" : "acm-acmsmall"} requires \`\\documentclass[acmsmall]{acmart}\``,
340
+ line: 2,
341
+ },
342
+ ]);
343
+ // The call's own line, and acmsmall without the options it only encourages.
344
+ for (const cls of [
345
+ "\\documentclass[acmsmall,screen,review,anonymous]{acmart}",
346
+ "\\documentclass[acmsmall]{acmart}",
347
+ ])
348
+ expect(lint(paper(cls), FSE)).toEqual([]);
349
+ });
350
+
327
351
  it("an ACL paper — article at 11pt, acl.sty as a package — passes realm", () => {
328
352
  expect(
329
353
  lint(paper("\\documentclass[11pt]{article}\n\\usepackage[review]{acl}"), {
330
- extends: "paperlint:realm",
354
+ extends: "paperlint:realm-2026",
331
355
  kind: "long",
332
356
  }),
333
357
  ).toEqual([]);
@@ -336,7 +360,7 @@ describe("tex/template — the shipped ACM and ACL templates", () => {
336
360
 
337
361
  const PORTING = {
338
362
  id: "aidc-2026",
339
- venue: { kind: "preset", extends: "paperlint:aidc" },
363
+ venue: { kind: "preset", extends: "paperlint:aidc-2026" },
340
364
  kind: "regular",
341
365
  opened: "2026-09-26",
342
366
  phase: "porting",
@@ -469,8 +493,8 @@ describe("tex/template — class options the preset forbids (`template_forbids`)
469
493
  });
470
494
  });
471
495
 
472
- describe("tex/template under paperlint:msr — `[10pt,conference]`, without compsoc or compsocconf", () => {
473
- const MSR = { extends: "paperlint:msr", kind: "technical" };
496
+ describe("tex/template under paperlint:msr-2027 — `[10pt,conference]`, without compsoc or compsocconf", () => {
497
+ const MSR = { extends: "paperlint:msr-2027", kind: "technical" };
474
498
 
475
499
  it("the class line MSR's call names passes", () => {
476
500
  expect(
@@ -694,6 +718,17 @@ describe("tex/required-section — what fails", () => {
694
718
  });
695
719
  });
696
720
 
721
+ describe("tex/venue-leftover — FSE in related work is no leftover", () => {
722
+ it("🔴 «FSE 2027» in another venue's paper warns; FSE papers cited by older years do not", () => {
723
+ const leftover = (body: string) =>
724
+ lint(aidcPaper(body + STATEMENT), AIDC)
725
+ .filter((f) => f.rule === "tex/venue-leftover")
726
+ .map((f) => f.messageId);
727
+ expect(leftover("First written for FSE 2027.\n")).toEqual(["leftover"]);
728
+ expect(leftover("As shown at ESEC/FSE 2023 and FSE 2024.\n")).toEqual([]);
729
+ });
730
+ });
731
+
697
732
  describe("tex/required-section — the edges", () => {
698
733
  it("an unmarked section after the bibliography is back matter, not body", () => {
699
734
  // A statement, then the bibliography, then an unmarked section: that section is back matter.
@@ -720,7 +755,7 @@ describe("tex/required-section — the edges", () => {
720
755
  expect(
721
756
  required(
722
757
  lint(paper("\\documentclass[sigconf]{acmart}"), {
723
- extends: "paperlint:aisec",
758
+ extends: "paperlint:aisec-2026",
724
759
  kind: "research",
725
760
  }),
726
761
  ),
@@ -732,7 +767,7 @@ describe("tex/required-section — the edges", () => {
732
767
  const extra = {
733
768
  [own]: JSON.stringify(
734
769
  venuePreset("own", {
735
- extends: "paperlint:aidc",
770
+ extends: "paperlint:aidc-2026",
736
771
  required_sections: [{ title: "Ethics" }],
737
772
  }),
738
773
  ),
@@ -748,7 +783,7 @@ describe("tex/required-section — the edges", () => {
748
783
  });
749
784
 
750
785
  const INSTITUTION =
751
- "\\institution{Presented at AISec 2026, co-located with ACM CCS}";
786
+ "\\institution{Presented at AISec 2026, co-located with ACM CCS 2026}";
752
787
  const leftovers = (fs: readonly Finding[]) =>
753
788
  fs.filter((f) => f.rule === "tex/venue-leftover");
754
789
 
@@ -757,8 +792,8 @@ describe("tex/venue-leftover — another venue named in the text", () => {
757
792
  const tex = aidcPaper(`${INSTITUTION}\n${BODY}${STATEMENT}`);
758
793
  const fs = leftovers(lint(tex, AIDC));
759
794
  expect(fs.map((f) => f.message)).toEqual([
760
- "«AISec» names AISec, and this paper extends AIDC — a leftover from an earlier submission? A reviewer reads it before the abstract. Comments and citation keys are not reported; a sentence that names the other venue on purpose can keep it with a disable directive",
761
- expect.stringContaining("«ACM CCS» names ACM CCS"),
795
+ "«AISec» names AISec 2026, and this paper extends AIDC 2026 — a leftover from an earlier submission? A reviewer reads it before the abstract. Comments and citation keys are not reported; a sentence that names the other venue on purpose can keep it with a disable directive",
796
+ expect.stringContaining("«ACM CCS» names ACM CCS 2026"),
762
797
  ]);
763
798
  const line = tex.split("\n").indexOf(INSTITUTION) + 1;
764
799
  expect(fs.map((f) => f.line)).toEqual([line, line]);
@@ -770,7 +805,9 @@ describe("tex/venue-leftover — another venue named in the text", () => {
770
805
  `${INSTITUTION}\nText.`,
771
806
  );
772
807
  expect(
773
- leftovers(lint(tex, { extends: "paperlint:aisec", kind: "research" })),
808
+ leftovers(
809
+ lint(tex, { extends: "paperlint:aisec-2026", kind: "research" }),
810
+ ),
774
811
  ).toEqual([]);
775
812
  });
776
813
 
@@ -783,7 +820,7 @@ describe("tex/venue-leftover — another venue named in the text", () => {
783
820
 
784
821
  it("a citation's note in square brackets is printed, so it is reported", () => {
785
822
  const tex = aidcPaper(
786
- `As shown~\\citep[presented at AISec]{aisec2025}.\n${BODY}${STATEMENT}`,
823
+ `As shown~\\citep[presented at AISec 2026]{aisec2025}.\n${BODY}${STATEMENT}`,
787
824
  );
788
825
  expect(leftovers(lint(tex, AIDC)).map((f) => f.line)).toEqual([4]);
789
826
  });
@@ -800,7 +837,7 @@ describe("tex/venue-leftover — another venue named in the text", () => {
800
837
  describe("tex/venue-leftover — a workshop's parent conference (`parent`) is the paper's own", () => {
801
838
  const agenticdev = (text: string) =>
802
839
  paper("\\documentclass[sigconf]{acmart}", `${text}\nText.`);
803
- const AGENTICDEV = { extends: "paperlint:agenticdev", kind: "full" };
840
+ const AGENTICDEV = { extends: "paperlint:agenticdev-2026", kind: "full" };
804
841
  const named = (fs: readonly Finding[]) =>
805
842
  leftovers(fs).map((f) => /«(.*?)» names (.*?),/u.exec(f.message)?.slice(1));
806
843
 
@@ -812,32 +849,49 @@ describe("tex/venue-leftover — a workshop's parent conference (`parent`) is th
812
849
 
813
850
  it("🔴 an AIDC paper naming ASE 2026 is reported once, as ASE", () => {
814
851
  const tex = aidcPaper(`Formerly at ASE 2026.\n${BODY}${STATEMENT}`);
815
- expect(named(lint(tex, AIDC))).toEqual([["ASE", "ASE"]]);
852
+ expect(named(lint(tex, AIDC))).toEqual([["ASE", "ASE 2026"]]);
816
853
  });
817
854
 
818
855
  it("🔴 an AIDC paper naming ACM CCS 2026 is reported once, as ACM CCS; an AISec paper is silent", () => {
819
856
  const text = "Co-located with ACM CCS 2026.";
820
857
  expect(
821
858
  named(lint(aidcPaper(`${text}\n${BODY}${STATEMENT}`), AIDC)),
822
- ).toEqual([["ACM CCS", "ACM CCS"]]);
859
+ ).toEqual([["ACM CCS", "ACM CCS 2026"]]);
823
860
  expect(
824
861
  leftovers(
825
862
  lint(agenticdev(text), {
826
- extends: "paperlint:aisec",
863
+ extends: "paperlint:aisec-2026",
827
864
  kind: "research",
828
865
  }),
829
866
  ),
830
867
  ).toEqual([]);
831
868
  });
832
869
 
870
+ it("🔴 FSE and ASE do not collide: an AgenticDev paper names ASE as its own and FSE 2027 as another venue; an FSE paper reports ASE", () => {
871
+ expect(
872
+ named(lint(agenticdev("At ASE 2026, after FSE 2027."), AGENTICDEV)),
873
+ ).toEqual([["FSE", "FSE 2027"]]);
874
+ expect(
875
+ named(
876
+ lint(
877
+ paper(
878
+ "\\documentclass[acmsmall]{acmart}",
879
+ "Formerly at ASE 2026, now FSE 2027.\nText.",
880
+ ),
881
+ { extends: "paperlint:fse-2027", kind: "research" },
882
+ ),
883
+ ),
884
+ ).toEqual([["ASE", "ASE 2026"]]);
885
+ });
886
+
833
887
  it("the parent's names are the paper's own, not the workshop's: AgenticDev still reports AISec", () => {
834
888
  expect(
835
- named(lint(agenticdev("ASE 2026, after AISec."), AGENTICDEV)),
836
- ).toEqual([["AISec", "AISec"]]);
889
+ named(lint(agenticdev("ASE 2026, after AISec 2026."), AGENTICDEV)),
890
+ ).toEqual([["AISec", "AISec 2026"]]);
837
891
  });
838
892
  });
839
893
 
840
- describe("tex/venue-leftover — MSR, a name that is also an acronym, counts only with a year (`mentions`)", () => {
894
+ describe("tex/venue-leftover — in prose, a name counts only beside a recent year", () => {
841
895
  const under = (text: string) =>
842
896
  leftovers(lint(aidcPaper(`${text}\n${BODY}${STATEMENT}`), AIDC));
843
897
 
@@ -855,31 +909,119 @@ describe("tex/venue-leftover — MSR, a name that is also an acronym, counts onl
855
909
  "As shown~\\cite{msr2024}.\n\\begin{thebibliography}{1}\\bibitem{msr2024} A. Author, ``Mining,'' in \\emph{Proc. MSR 2024}, 2024.\\end{thebibliography}",
856
910
  ],
857
911
  ["a year that is not beside the name", "MSR, in 2027, scored best."],
912
+ ["a bare name", "Submitted to AISec, then to REALM."],
913
+ [
914
+ "related work: a year older than the paper's own minus one",
915
+ "As shown at ICSE 2019, FSE'24 and AISec~2023.",
916
+ ],
858
917
  ])("silent: %s", (_, text) => {
859
918
  expect(under(text)).toEqual([]);
860
919
  });
861
920
 
862
921
  it.each([
863
- ["First written for MSR 2027.", "MSR"],
864
- ["A version appeared as MSR'27 work.", "MSR"],
865
- ["Submitted to MSR~2027.", "MSR"],
866
- ])("🔴 reported: «%s»", (text, name) => {
922
+ ["First written for MSR 2027.", "MSR", "MSR 2027"],
923
+ ["A version appeared as MSR'27 work.", "MSR", "MSR 2027"],
924
+ ["Submitted to MSR~2027.", "MSR", "MSR 2027"],
925
+ ["Submitted to AISec 2025.", "AISec", "AISec 2025"],
926
+ ["Aimed at ICSE’28.", "ICSE", "ICSE 2028"],
927
+ ])("🔴 reported: «%s»", (text, name, other) => {
867
928
  const fs = under(text);
868
929
  expect(fs.map((f) => f.message)).toEqual([
869
930
  expect.stringMatching(
870
- new RegExp(`^«${name}» names MSR, and this paper extends AIDC`),
931
+ new RegExp(
932
+ `^«${name}» names ${other}, and this paper extends AIDC 2026`,
933
+ ),
871
934
  ),
872
935
  ]);
873
936
  expect(fs[0]?.line).toBe(4);
874
937
  });
938
+ });
875
939
 
876
- it("under msr itself, its own name with a year is never a leftover", () => {
940
+ describe("tex/venue-leftover — the paper's own series, and its parent's, in another edition", () => {
941
+ it("under msr itself, its own name with its own year is never a leftover", () => {
877
942
  const tex = paper(
878
943
  "\\documentclass[10pt,conference]{IEEEtran}",
879
944
  "First written for MSR 2027.",
880
945
  );
881
946
  expect(
882
- leftovers(lint(tex, { extends: "paperlint:msr", kind: "technical" })),
947
+ leftovers(
948
+ lint(tex, { extends: "paperlint:msr-2027", kind: "technical" }),
949
+ ),
950
+ ).toEqual([]);
951
+ });
952
+
953
+ it("🔴 its own series in another recent edition is a leftover: «ICSE 2027» in an ICSE 2028 paper; «ICSE 2019» is not", () => {
954
+ const icse = (text: string) =>
955
+ leftovers(
956
+ lint(paper("\\documentclass[sigconf]{acmart}", text), {
957
+ extends: "paperlint:icse-2028",
958
+ kind: "research",
959
+ }),
960
+ ).map((f) =>
961
+ /«(.*?)» names (.*?), and this paper extends (.*?) —/u
962
+ .exec(f.message)
963
+ ?.slice(1),
964
+ );
965
+ expect(icse("First written for ICSE 2027.")).toEqual([
966
+ ["ICSE", "ICSE 2027", "ICSE 2028"],
967
+ ]);
968
+ expect(icse("Submitted to ICSE 2028, after ICSE 2019.")).toEqual([]);
969
+ });
970
+
971
+ it("a workshop's parent of the same year is its own; another recent edition of the parent is not", () => {
972
+ const nlbse = (text: string) =>
973
+ leftovers(
974
+ lint(paper("\\documentclass[conference]{IEEEtran}", text), {
975
+ extends: "paperlint:nlbse-2027",
976
+ kind: "full",
977
+ }),
978
+ ).map((f) => /«(.*?)» names (.*?),/u.exec(f.message)?.slice(1));
979
+ expect(nlbse("An NLBSE workshop of ICSE 2027.")).toEqual([]);
980
+ expect(nlbse("Rejected at ICSE 2028.")).toEqual([["ICSE", "ICSE 2028"]]);
981
+ });
982
+ });
983
+
984
+ describe("tex/venue-leftover — inside a command that states the venue, any other venue's name counts", () => {
985
+ const under = (line: string, settings: object = AIDC) =>
986
+ leftovers(lint(aidcPaper(`${line}\n${BODY}${STATEMENT}`), settings)).map(
987
+ (f) => /«(.*?)» names (.*?),/u.exec(f.message)?.slice(1),
988
+ );
989
+
990
+ it.each([
991
+ [
992
+ "\\acmConference[AISec]{AISec}{Nov 2026}{The Hague}",
993
+ [
994
+ ["AISec", "AISec"],
995
+ ["AISec", "AISec"],
996
+ ],
997
+ ],
998
+ ["\\acmBooktitle{Proceedings of ASE}", [["ASE", "ASE"]]],
999
+ ["\\conferenceinfo{MSR}{Dublin}", [["MSR", "MSR"]]],
1000
+ ["\\IEEEpubid{978-1-2345 \\copyright 2019 IEEE S\\&P}", []],
1001
+ ["\\IEEEpubid{Accepted at REALM}", [["REALM", "REALM"]]],
1002
+ [
1003
+ "\\acmConference[ICSE '19]{ICSE}{2019}{x}",
1004
+ [
1005
+ ["ICSE", "ICSE 2019"],
1006
+ ["ICSE", "ICSE"],
1007
+ ],
1008
+ ],
1009
+ ])("🔴 %s", (line, want) => {
1010
+ expect(under(line)).toEqual(want);
1011
+ });
1012
+
1013
+ it("the paper's own edition, and its parent, in the command: silent; its own name with another year: reported", () => {
1014
+ expect(
1015
+ under("\\acmConference[AIDC '26]{AIDC at ACSAC 2026}{x}{y}"),
1016
+ ).toEqual([]);
1017
+ expect(under("\\acmConference[AIDC '25]{AIDC}{x}{y}")).toEqual([
1018
+ ["AIDC", "AIDC 2025"],
1019
+ ]);
1020
+ });
1021
+
1022
+ it("the same names in prose without a year, or in a comment: silent", () => {
1023
+ expect(
1024
+ under("Unlike AISec and ASE, and MSR.\n% \\acmConference{AISec}"),
883
1025
  ).toEqual([]);
884
1026
  });
885
1027
  });
@@ -903,7 +1045,7 @@ describe("tex/venue-leftover — a URL is not text, a definition body is", () =>
903
1045
  "a macro definition naming another venue is reported at the definition, %s",
904
1046
  (_, use) => {
905
1047
  const tex = aidcPaper(
906
- `\\newcommand{\\oldvenue}{AISec}\n${use}${BODY}${STATEMENT}`,
1048
+ `\\newcommand{\\oldvenue}{AISec 2026}\n${use}${BODY}${STATEMENT}`,
907
1049
  );
908
1050
  const fs = leftovers(lint(tex, AIDC));
909
1051
  expect(fs.map((f) => [f.line, f.message.slice(0, 16)])).toEqual([
@@ -920,8 +1062,8 @@ describe("tex/venue-leftover — where names are found, and whose they are", ()
920
1062
  "\\acmConference[AISec '26]{x}",
921
1063
  ["AISec"],
922
1064
  ],
923
- ["a footnote", "Text.\\footnote{Submitted to REALM.}", ["REALM"]],
924
- ["a tie inside the name", "ACM~CCS", ["ACM CCS"]],
1065
+ ["a footnote", "Text.\\footnote{Submitted to REALM 2026.}", ["REALM"]],
1066
+ ["a tie inside the name", "ACM~CCS~2026", ["ACM CCS"]],
925
1067
  [
926
1068
  "whole words only: AISecX and xAIDC are other words",
927
1069
  "AISecX, EMNLPs and AgenticDevOps.",
@@ -939,13 +1081,13 @@ describe("tex/venue-leftover — where names are found, and whose they are", ()
939
1081
  const own = `${PAPER}/own.jsonc`;
940
1082
  const extra = {
941
1083
  [own]: JSON.stringify(
942
- venuePreset("AIDC 2027", {
943
- extends: "paperlint:aidc",
1084
+ venuePreset("AIDC Next", {
1085
+ extends: "paperlint:aidc-2026",
944
1086
  aliases: ["ACM CCS"],
945
1087
  }),
946
1088
  ),
947
1089
  };
948
- const tex = aidcPaper(`ACM CCS and AIDC 2027.\n${BODY}${STATEMENT}`);
1090
+ const tex = aidcPaper(`ACM CCS 2026 and AIDC 2027.\n${BODY}${STATEMENT}`);
949
1091
  expect(
950
1092
  leftovers(
951
1093
  lint(tex, { extends: "./own.jsonc", kind: "regular" }, { extra }),
@@ -957,7 +1099,7 @@ describe("tex/venue-leftover — where names are found, and whose they are", ()
957
1099
  // ieee-conference is on aidc's chain, so under the family aidc is ANOTHER venue.
958
1100
  const tex = paper(
959
1101
  "\\documentclass[conference]{IEEEtran}",
960
- "Accepted at AIDC. Formerly at AISec.",
1102
+ "Accepted at AIDC 2026. Formerly at AISec 2026.",
961
1103
  );
962
1104
  expect(
963
1105
  leftovers(lint(tex, { extends: "paperlint:ieee-conference" }))
@@ -967,9 +1109,35 @@ describe("tex/venue-leftover — where names are found, and whose they are", ()
967
1109
  });
968
1110
  });
969
1111
 
1112
+ describe("tex/venue-leftover, judged on places the parser did not give", () => {
1113
+ const files = memoryFiles(shipped);
1114
+ const aidc = resolvePreset("paperlint:aidc-2026", `${PAPER}/paperlint.json`, {
1115
+ files,
1116
+ venuesDir: VENUES,
1117
+ });
1118
+ const preset = aidc.ok ? aidc.value : null;
1119
+
1120
+ it("a venue line with no place holds no name; a parent's name no shipped venue carries is shown as written", () => {
1121
+ expect(preset).not.toBeNull();
1122
+ if (preset === null) return;
1123
+ const src = "Unlike AISec, and Gone 2025.";
1124
+ const runs = latexReader.renderedRuns(src);
1125
+ // The line is unplaced, so «AISec» without a year stands in prose: silent.
1126
+ const found = judgeLeftover(
1127
+ runs,
1128
+ [{ kind: "unplaced" }],
1129
+ { ...preset, parentNames: ["Gone"] },
1130
+ [],
1131
+ );
1132
+ expect(found.map((f) => f.data)).toEqual([
1133
+ { name: "Gone", other: "Gone 2025", venue: "AIDC 2026" },
1134
+ ]);
1135
+ });
1136
+ });
1137
+
970
1138
  describe("the judges, on places the parser did not give", () => {
971
1139
  const files = memoryFiles(shipped);
972
- const aidc = resolvePreset("paperlint:aidc", `${PAPER}/paperlint.json`, {
1140
+ const aidc = resolvePreset("paperlint:aidc-2026", `${PAPER}/paperlint.json`, {
973
1141
  files,
974
1142
  venuesDir: VENUES,
975
1143
  });
@@ -1028,27 +1196,37 @@ describe("otherVenues", () => {
1028
1196
  it("every shipped venue off the paper's chain; one that does not resolve is skipped", () => {
1029
1197
  const files = memoryFiles(
1030
1198
  Object.fromEntries(
1031
- Object.entries(shipped).filter(([f]) => !f.endsWith("realm.jsonc")),
1199
+ Object.entries(shipped).filter(
1200
+ ([f]) => !f.endsWith("realm-2026.jsonc"),
1201
+ ),
1032
1202
  ),
1033
1203
  );
1034
1204
  const deps = { files, venuesDir: VENUES };
1035
1205
  const from = `${PAPER}/paperlint.json`;
1036
- const aidc = resolvePreset("paperlint:aidc", from, deps);
1206
+ const aidc = resolvePreset("paperlint:aidc-2026", from, deps);
1037
1207
  expect(aidc.ok).toBe(true);
1038
1208
  if (!aidc.ok) return;
1039
- expect(otherVenues(aidc.value, deps).map((o) => o.label)).toEqual([
1040
- "acm-sigconf",
1041
- "AGENT 2027",
1042
- "AgenticDev",
1043
- "AGENTVERIFY",
1044
- "AISec",
1045
- "ASE",
1046
- "ACM CCS",
1047
- "ICSE 2028",
1048
- "MSR",
1049
- "NLBSE",
1050
- "IEEE S&P",
1051
- ]);
1209
+ expect(otherVenues(aidc.value, deps).map((o) => [o.label, o.year])).toEqual(
1210
+ [
1211
+ ["acl-latex", null],
1212
+ ["acm-acmsmall", null],
1213
+ ["acm-sigconf", null],
1214
+ ["ACSAC", 2026],
1215
+ ["AGENT", 2027],
1216
+ ["AgenticDev", 2026],
1217
+ ["AGENTVERIFY", 2027],
1218
+ ["AISec", 2026],
1219
+ ["ASE", 2026],
1220
+ ["ACM CCS", 2026],
1221
+ ["EMNLP", 2026],
1222
+ ["FSE", 2027],
1223
+ ["ICSE", 2027],
1224
+ ["ICSE", 2028],
1225
+ ["MSR", 2027],
1226
+ ["NLBSE", 2027],
1227
+ ["IEEE S&P", 2027],
1228
+ ],
1229
+ );
1052
1230
  });
1053
1231
  });
1054
1232