paperlint 17.3.0 → 18.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/.github/workflows/deadlines.yml +1 -1
  2. package/CONTRIBUTING.md +8 -5
  3. package/README.md +20 -19
  4. package/dist/adapters/hotcrp/index.d.ts +11 -1
  5. package/dist/adapters/hotcrp/index.d.ts.map +1 -1
  6. package/dist/adapters/hotcrp/index.js +11 -1
  7. package/dist/adapters/hotcrp/index.js.map +1 -1
  8. package/dist/adapters/hotcrp/site.d.ts.map +1 -1
  9. package/dist/adapters/hotcrp/site.js +3 -1
  10. package/dist/adapters/hotcrp/site.js.map +1 -1
  11. package/dist/adapters/hotcrp/token.d.ts +11 -0
  12. package/dist/adapters/hotcrp/token.d.ts.map +1 -1
  13. package/dist/adapters/hotcrp/token.js +34 -7
  14. package/dist/adapters/hotcrp/token.js.map +1 -1
  15. package/dist/adapters/latex/index.d.ts +1 -0
  16. package/dist/adapters/latex/index.d.ts.map +1 -1
  17. package/dist/adapters/latex/index.js +3 -0
  18. package/dist/adapters/latex/index.js.map +1 -1
  19. package/dist/adapters/latex/parse.d.ts +9 -0
  20. package/dist/adapters/latex/parse.d.ts.map +1 -1
  21. package/dist/adapters/latex/parse.js +12 -0
  22. package/dist/adapters/latex/parse.js.map +1 -1
  23. package/dist/adapters/latex/venue-lines.d.ts +10 -0
  24. package/dist/adapters/latex/venue-lines.d.ts.map +1 -0
  25. package/dist/adapters/latex/venue-lines.js +11 -0
  26. package/dist/adapters/latex/venue-lines.js.map +1 -0
  27. package/dist/build.d.ts +1 -1
  28. package/dist/build.d.ts.map +1 -1
  29. package/dist/cli.d.ts.map +1 -1
  30. package/dist/cli.js +21 -9
  31. package/dist/cli.js.map +1 -1
  32. package/dist/domain/body-pages.d.ts +1 -1
  33. package/dist/domain/body-pages.js +1 -1
  34. package/dist/domain/edition.d.ts +35 -0
  35. package/dist/domain/edition.d.ts.map +1 -0
  36. package/dist/domain/edition.js +64 -0
  37. package/dist/domain/edition.js.map +1 -0
  38. package/dist/domain/portal-token.d.ts +26 -10
  39. package/dist/domain/portal-token.d.ts.map +1 -1
  40. package/dist/domain/portal-token.js +19 -12
  41. package/dist/domain/portal-token.js.map +1 -1
  42. package/dist/edition-rule.d.ts +17 -0
  43. package/dist/edition-rule.d.ts.map +1 -0
  44. package/dist/edition-rule.js +90 -0
  45. package/dist/edition-rule.js.map +1 -0
  46. package/dist/facts-file.d.ts +1 -1
  47. package/dist/facts-file.d.ts.map +1 -1
  48. package/dist/folder-layout-rule.js +1 -1
  49. package/dist/folder-layout-rule.js.map +1 -1
  50. package/dist/folder-venue-rule.d.ts +1 -1
  51. package/dist/folder-venue-rule.d.ts.map +1 -1
  52. package/dist/folder-venue-rule.js +15 -6
  53. package/dist/folder-venue-rule.js.map +1 -1
  54. package/dist/heading-case.js +1 -1
  55. package/dist/ports/latex.d.ts +6 -1
  56. package/dist/ports/latex.d.ts.map +1 -1
  57. package/dist/ports/submission-portal.d.ts +7 -0
  58. package/dist/ports/submission-portal.d.ts.map +1 -1
  59. package/dist/preset-card-rule.d.ts.map +1 -1
  60. package/dist/preset-card-rule.js +2 -1
  61. package/dist/preset-card-rule.js.map +1 -1
  62. package/dist/presets.d.ts +26 -8
  63. package/dist/presets.d.ts.map +1 -1
  64. package/dist/presets.js +86 -19
  65. package/dist/presets.js.map +1 -1
  66. package/dist/submission.d.ts +3 -2
  67. package/dist/submission.d.ts.map +1 -1
  68. package/dist/submission.js +24 -12
  69. package/dist/submission.js.map +1 -1
  70. package/dist/tex-requirements.d.ts +0 -2
  71. package/dist/tex-requirements.d.ts.map +1 -1
  72. package/dist/tex-requirements.js +0 -1
  73. package/dist/tex-requirements.js.map +1 -1
  74. package/dist/tex-venue-rules.d.ts +19 -8
  75. package/dist/tex-venue-rules.d.ts.map +1 -1
  76. package/dist/tex-venue-rules.js +81 -21
  77. package/dist/tex-venue-rules.js.map +1 -1
  78. package/dist/venue-rules.js +1 -1
  79. package/dist/venue-rules.js.map +1 -1
  80. package/docs/configuration.md +7 -6
  81. package/docs/optional-rules.md +2 -2
  82. package/docs/prior-art/hotcrp-option-types.md +1 -1
  83. package/docs/rules/anonymity/identity.md +2 -2
  84. package/docs/rules/cycle/record.md +4 -4
  85. package/docs/rules/paper/edition-over.md +66 -0
  86. package/docs/rules/paper/folder-venue-leftover.md +22 -18
  87. package/docs/rules/pdf/body-size.md +6 -6
  88. package/docs/rules/talk/profile.md +3 -3
  89. package/docs/rules/tex/claim-emphasis.md +1 -1
  90. package/docs/rules/tex/contrast-frames.md +1 -1
  91. package/docs/rules/tex/heading-case.md +20 -20
  92. package/docs/rules/tex/negated-sentences.md +1 -1
  93. package/docs/rules/tex/relation-markers.md +1 -1
  94. package/docs/rules/tex/venue-leftover.md +82 -44
  95. package/docs/rules.md +37 -24
  96. package/docs/submission.md +31 -14
  97. package/docs/talk.md +2 -2
  98. package/docs/venues.md +85 -5
  99. package/fixtures/build-e2e/acmart/expect.json +1 -1
  100. package/fixtures/build-e2e/acmart/paperlint.json +1 -1
  101. package/fixtures/build-e2e/aidc/paperlint.json +1 -1
  102. package/fixtures/build-e2e/anon-ack/paperlint.json +1 -1
  103. package/fixtures/build-e2e/anon-author/paperlint.json +1 -1
  104. package/fixtures/build-e2e/anon-bib/paperlint.json +1 -1
  105. package/fixtures/build-e2e/anon-href/paperlint.json +1 -1
  106. package/fixtures/build-e2e/anon-macro/paperlint.json +1 -1
  107. package/fixtures/build-e2e/anon-pdfauthor/paperlint.json +1 -1
  108. package/fixtures/build-e2e/fallback/expect.json +1 -1
  109. package/fixtures/build-e2e/fse/expect.json +1 -1
  110. package/fixtures/build-e2e/fse/paperlint.json +1 -1
  111. package/fixtures/build-e2e/fse-over/expect.json +1 -1
  112. package/fixtures/build-e2e/fse-over/paperlint.json +1 -1
  113. package/fixtures/build-e2e/msr/paperlint.json +1 -1
  114. package/fixtures/build-e2e/msr-appendix-after/paperlint.json +1 -1
  115. package/lib/skill-checks.mjs +1 -1
  116. package/package.json +1 -1
  117. package/presets/acl-latex.jsonc +35 -0
  118. package/presets/acl-latex.md +40 -0
  119. package/presets/acm-acmsmall.md +1 -1
  120. package/presets/acm-sigconf.jsonc +1 -1
  121. package/presets/acm-sigconf.md +1 -1
  122. package/presets/acsac-2026.jsonc +19 -0
  123. package/presets/acsac-2026.md +46 -0
  124. package/presets/{agent.jsonc → agent-2027.jsonc} +14 -7
  125. package/presets/{agent.md → agent-2027.md} +10 -6
  126. package/presets/{agenticdev.jsonc → agenticdev-2026.jsonc} +6 -3
  127. package/presets/{agenticdev.md → agenticdev-2026.md} +5 -5
  128. package/presets/{agentverify.jsonc → agentverify-2027.jsonc} +10 -2
  129. package/presets/{agentverify.md → agentverify-2027.md} +9 -3
  130. package/presets/{aidc.jsonc → aidc-2026.jsonc} +12 -4
  131. package/presets/{aidc.md → aidc-2026.md} +8 -4
  132. package/presets/{aisec.jsonc → aisec-2026.jsonc} +7 -4
  133. package/presets/{aisec.md → aisec-2026.md} +7 -6
  134. package/presets/{ase.jsonc → ase-2026.jsonc} +9 -9
  135. package/presets/{ase.md → ase-2026.md} +8 -8
  136. package/presets/{ccs.jsonc → ccs-2026.jsonc} +4 -4
  137. package/presets/{ccs.md → ccs-2026.md} +4 -4
  138. package/presets/emnlp-2026.jsonc +21 -0
  139. package/presets/emnlp-2026.md +46 -0
  140. package/presets/{fse.jsonc → fse-2027.jsonc} +6 -7
  141. package/presets/{fse.md → fse-2027.md} +9 -9
  142. package/presets/icse-2027.jsonc +24 -0
  143. package/presets/icse-2027.md +53 -0
  144. package/presets/{icse.jsonc → icse-2028.jsonc} +8 -7
  145. package/presets/{icse.md → icse-2028.md} +9 -8
  146. package/presets/ieee-conference.jsonc +1 -1
  147. package/presets/ieee-conference.md +2 -2
  148. package/presets/{msr.jsonc → msr-2027.jsonc} +4 -5
  149. package/presets/{msr.md → msr-2027.md} +7 -7
  150. package/presets/{nlbse.jsonc → nlbse-2027.jsonc} +9 -1
  151. package/presets/{nlbse.md → nlbse-2027.md} +9 -3
  152. package/presets/{realm.jsonc → realm-2026.jsonc} +17 -27
  153. package/presets/{realm.md → realm-2026.md} +11 -4
  154. package/presets/{sp.jsonc → sp-2027.jsonc} +8 -8
  155. package/presets/{sp.md → sp-2027.md} +5 -5
  156. package/presets/tex/agenticdev.tex +1 -1
  157. package/presets/venue-profile.schema.json +28 -13
  158. package/scripts/refresh-deadlines/main.test.ts +4 -4
  159. package/scripts/refresh-deadlines/refresh.test.ts +9 -9
  160. package/skills/find-venue/SKILL.md +2 -2
  161. package/skills/find-venue/SKILL.md.spec.ts +1 -1
  162. package/skills/render-paper/extract-pdf-facts.harness.ts +2 -2
  163. package/skills/submit-paper/SKILL.md +7 -7
  164. package/skills/submit-paper/SKILL.md.spec.ts +6 -6
  165. package/src/adapters/hotcrp/cassette/README.md +1 -1
  166. package/src/adapters/hotcrp/index.ts +12 -0
  167. package/src/adapters/hotcrp/site.ts +4 -0
  168. package/src/adapters/hotcrp/token.test.ts +39 -1
  169. package/src/adapters/hotcrp/token.ts +40 -7
  170. package/src/adapters/latex/index.ts +3 -0
  171. package/src/adapters/latex/parse.ts +15 -0
  172. package/src/adapters/latex/venue-lines.ts +21 -0
  173. package/src/build.harness.mjs +5 -2
  174. package/src/build.ts +1 -1
  175. package/src/cli.test.ts +8 -6
  176. package/src/cli.ts +27 -9
  177. package/src/cycle-rules.test.ts +8 -6
  178. package/src/domain/body-pages.ts +1 -1
  179. package/src/domain/edition.ts +104 -0
  180. package/src/domain/portal-token.test.ts +121 -2
  181. package/src/domain/portal-token.ts +39 -15
  182. package/src/domain/submission-fields.test.ts +13 -10
  183. package/src/domain/venue-name.test.ts +41 -16
  184. package/src/domain/versions.test.ts +2 -2
  185. package/src/edition-rule.test.ts +164 -0
  186. package/src/edition-rule.ts +121 -0
  187. package/src/facts-file.test.ts +4 -4
  188. package/src/facts-file.ts +1 -1
  189. package/src/folder-layout-rule.test.ts +1 -1
  190. package/src/folder-layout-rule.ts +1 -1
  191. package/src/folder-venue-rule.test.ts +33 -11
  192. package/src/folder-venue-rule.ts +16 -7
  193. package/src/heading-case.test.ts +4 -4
  194. package/src/heading-case.ts +1 -1
  195. package/src/linted-set.test.ts +1 -1
  196. package/src/new-paper.test.ts +38 -25
  197. package/src/paper-files.test.ts +1 -1
  198. package/src/paper-settings-commands.test.ts +4 -4
  199. package/src/paper-settings.test.ts +16 -13
  200. package/src/ports/latex.ts +6 -0
  201. package/src/ports/submission-portal.ts +7 -0
  202. package/src/preset-card-rule.test.ts +30 -24
  203. package/src/preset-card-rule.ts +2 -1
  204. package/src/presets.test.ts +347 -70
  205. package/src/presets.ts +124 -31
  206. package/src/register-bands.test.ts +2 -2
  207. package/src/rule-cases.test.ts +26 -4
  208. package/src/submission-show.test.ts +4 -4
  209. package/src/submission-update.test.ts +1 -1
  210. package/src/submission.test.ts +99 -8
  211. package/src/submission.ts +28 -11
  212. package/src/talk-rules.test.ts +1 -1
  213. package/src/tex-requirements.harness.ts +2 -2
  214. package/src/tex-requirements.ts +2 -4
  215. package/src/tex-venue-rules.test.ts +187 -62
  216. package/src/tex-venue-rules.ts +129 -29
  217. package/src/venue-rules.test.ts +26 -23
  218. package/src/venue-rules.ts +1 -1
  219. package/src/versions-command.test.ts +2 -2
  220. package/templates/paper/paperlint.json +1 -1
@@ -4,7 +4,7 @@ title: "IEEE S&P — venue card"
4
4
 
5
5
  # IEEE S&P (IEEE Symposium on Security and Privacy, "Oakland")
6
6
 
7
- The card of the venue preset `paperlint:sp` ([`sp.jsonc`](sp.jsonc)): what the venue asks for, in
7
+ The card of the venue preset `paperlint:sp-2027` ([`sp-2027.jsonc`](sp-2027.jsonc)): what the venue asks for, in
8
8
  prose. The numbers a machine checks live in the preset; the section at the end is generated from
9
9
  it. The `submit-paper` skill reads this card for the venue's specifics.
10
10
 
@@ -101,7 +101,7 @@ the submission's, so not in the preset.
101
101
  🔴 **The 13 pages are the text before the references and the appendix**, whichever comes first
102
102
  (`format.body_ends_at: "references"`), and the page they end on counts when text stands above the
103
103
  heading there. banal's count would call any page with non-bibliography text body, so an appendix
104
- would push a correct paper over (measured for AIDC on the same template, `aidc.jsonc`). **Load
104
+ would push a correct paper over (measured for AIDC on the same template, `aidc-2026.jsonc`). **Load
105
105
  hyperref**: without it an appendix placed before the references is counted as text
106
106
  (`docs/rules/format/page-limit.md`). The five pages of references and appendices are judged on
107
107
  banal's count of reference pages, and the 18 pages on the PDF's page count.
@@ -118,7 +118,7 @@ banal's count of reference pages, and the 18 pages on the PDF's page count.
118
118
  updates a paper's submission through HotCRP's API there (`/api/whoami` answered 401 «Missing
119
119
  credentials» without a token, 2026-11-19).
120
120
  - **Names**: `IEEE S&P`, `S&P` and `Oakland`, what `tex/venue-leftover` looks for in another
121
- venue's paper — only with a year beside it (`mentions: with-year`: «S&P 2027», «Oakland'27»),
121
+ venue's paper — in prose only beside a year no older than the paper's own edition's year minus one («S&P 2027», «Oakland'27»),
122
122
  since security papers name S&P as the venue of work they cite, «S&P» is also a stock index and
123
123
  «Oakland» a city. «Oakland» is the call's «Since 1980 in Oakland». IEEE Xplore's bare «SP» is
124
124
  left out: `paper/folder-venue-leftover` matches folder words, case ignored, and would take any
@@ -150,9 +150,9 @@ banal's count of reference pages, and the 18 pages on the PDF's page count.
150
150
 
151
151
  <!-- paperlint:preset-rules -->
152
152
  <!-- prettier-ignore-start -->
153
- <!-- Generated from sp.jsonc by `npx eslint --fix` (rule preset/card-rules). Edit the preset, not this section. -->
153
+ <!-- Generated from sp-2027.jsonc by `npx eslint --fix` (rule preset/card-rules). Edit the preset, not this section. -->
154
154
 
155
- **`paperlint:sp`** — venue preset for IEEE S&P · call for papers: <https://sp2027.ieee-security.org/cfpapers.html> · extends `paperlint:ieee-conference`
155
+ **`paperlint:sp-2027`** — venue preset for IEEE S&P 2027 · call for papers: <https://sp2027.ieee-security.org/cfpapers.html> · extends `paperlint:ieee-conference`
156
156
 
157
157
  No preset of this chain sets a rule: under it, every rule keeps paperlint's default.
158
158
 
@@ -1,5 +1,5 @@
1
1
  % agenticdev.tex — venue numbers for the guards IN THE PREAMBLE. LaTeX doesn't read YAML, so the
2
- % values are duplicated from presets/agenticdev.jsonc (the source of truth — read by the
2
+ % values are duplicated from presets/agenticdev-2026.jsonc (the source of truth — read by the
3
3
  % `pdf/profile` rule, see eslint-rules/pdf-facts.mjs:128). in = inches.
4
4
  %
5
5
  % 🔴 THIS USED TO SAY `venues/agenticdev.yaml`, AND NO SUCH FILE EXISTS (fixed 2026-09-12). The
@@ -12,14 +12,17 @@
12
12
  "minLength": 1
13
13
  },
14
14
  "type": {
15
- "description": "What this file is. `venue`: one venue's call for papers, and it must say which venue (`name`) and where its call is (`url`). `family`: a publisher's template (acm-sigconf, ieee-conference) that venue presets extend; it names no venue, so it has neither `name` nor `url`. `base`: the TeX packages every paper gets (tex-base.jsonc); it holds only `tex` and nothing extends it.",
15
+ "description": "What this file is, exactly one of three. `venue`: one EDITION of a venue's call for papers, in a file named `<series>-<year>.jsonc` (`icse-2028`); it must say which venue (`name`) and where its call is (`url`). `family`: a publisher's template (acm-sigconf, ieee-conference, acl-latex) that venue presets extend, in a file whose name ends in no year; it names no venue, so it has neither `name` nor `url`. `base`: the TeX packages every paper gets (tex-base.jsonc); it holds only `tex` and nothing extends it.",
16
16
  "type": "string",
17
17
  "enum": ["venue", "family", "base"]
18
18
  },
19
19
  "name": {
20
- "description": "A venue's name as its call for papers spells it (`AgenticDev`). Required on a venue, refused on a family. The label of messages, and one of the names `tex/venue-leftover` looks for.",
20
+ "description": "A venue's name as its call for papers spells it, WITHOUT a year (`AgenticDev`, `ICSE`): the year of a shipped edition is its id's (`icse-2028`), the one source of it, and a display that needs a year is the name and the id's year. Required on a venue, refused on a family. The label of messages, and one of the names `tex/venue-leftover` looks for.",
21
21
  "type": "string",
22
- "minLength": 1
22
+ "minLength": 1,
23
+ "not": {
24
+ "pattern": "(^|[^0-9])(19|20)[0-9]{2}([^0-9]|$)|['’][0-9]{2}([^0-9]|$)"
25
+ }
23
26
  },
24
27
  "url": {
25
28
  "description": "A venue's call for papers or author instructions: the page its numbers are quoted from. Required on a venue, refused on a family.",
@@ -49,24 +52,26 @@
49
52
  "type": "boolean"
50
53
  },
51
54
  "aliases": {
52
- "description": "Other names the venue goes by in a paper's text — its acronym (`[\"AISec\"]`); the conference a workshop is held at is its `parent`. Read by `tex/venue-leftover`: a paper that extends another venue and says one of these is flagged. Matched as whole words, case-sensitive. Also read by `paper/folder-venue-leftover`, against the words of the paper's folder name, case ignored. Collected along the `extends` chain, with `name`.",
55
+ "description": "Other names the venue goes by in a paper's text — its acronym (`[\"AISec\"]`), without a year; the conference a workshop is held at is its `parent`. Read by `tex/venue-leftover`: in prose a name counts only beside a year no older than the paper's own edition's year minus one (`2027`, `'27`, `~2027`); inside a venue-identity command (`\\acmConference`, `\\acmBooktitle`, `\\conferenceinfo`, `\\IEEEpubid`), with or without one. Matched as whole words, case-sensitive. Also read by `paper/folder-venue-leftover`, against the words of the paper's folder name, case ignored. Collected along the `extends` chain, with `name`.",
53
56
  "type": "array",
54
57
  "uniqueItems": true,
55
58
  "items": {
56
59
  "type": "string",
57
- "minLength": 1
60
+ "minLength": 1,
61
+ "not": {
62
+ "pattern": "(^|[^0-9])(19|20)[0-9]{2}([^0-9]|$)|['’][0-9]{2}([^0-9]|$)"
63
+ }
58
64
  }
59
65
  },
66
+ "workshop": {
67
+ "description": "This venue is a workshop held at a conference: then `parent` is required, and it names that conference's edition. Only `true`; a conference leaves it out. Refused on a family.",
68
+ "const": true
69
+ },
60
70
  "parent": {
61
- "description": "The conference a workshop is held at: `paperlint:<name>` (shipped) or a path starting with ./ or ../, relative to this file, naming a venue preset (`\"parent\": \"paperlint:ccs\"` in aisec.jsonc). The parent's `name` and `aliases`, and its own parent's, count as the paper's own names: `tex/venue-leftover` and `paper/folder-venue-leftover` never report them in a paper of this venue, and report them as the parent in any other venue's paper. A parent that does not resolve to a venue, or parents that name each other, are refused. Refused on a family. A child's value replaces its parent's.",
71
+ "description": "The conference a workshop is held at, required on a workshop and refused elsewhere: `paperlint:<series>-<year>` (a shipped edition, of the workshop's own year) or a path starting with ./ or ../, relative to this file, naming a venue preset (`\"parent\": \"paperlint:ccs-2026\"` in aisec-2026.jsonc). The parent's `name` and `aliases`, and its own parent's, count as the paper's own names: `tex/venue-leftover` and `paper/folder-venue-leftover` never report them in a paper of this venue, and report them as the parent in any other venue's paper. A parent that does not resolve to a venue, a parent of another year, or parents that name each other, are refused. A child's value replaces its parent's.",
62
72
  "type": "string",
63
73
  "minLength": 1
64
74
  },
65
- "mentions": {
66
- "description": "When the venue's `name` and `aliases` count as naming it in a paper's text (`tex/venue-leftover`). Absent: any whole-word use. `with-year`: only with a year beside the name — `MSR 2027`, `MSR'27`, `MSR~2027` — for a name that is also a common acronym (MSR: Microsoft Research, or an acronym a paper defines), where a bare use names something else far more often than the venue. A child's value replaces its parent's.",
67
- "type": "string",
68
- "enum": ["with-year"]
69
- },
70
75
  "portal": {
71
76
  "description": "Where the venue takes submissions, read by `paperlint submission`: the portal's kind (an adapter exists for `hotcrp`) and the site's base URL, the one its pages and `/api/` hang off. A paper says which submission is its own with `submission: { id }` in its paperlint.json. A child's value replaces its parent's.",
72
77
  "type": "object",
@@ -512,7 +517,8 @@
512
517
  },
513
518
  "required": ["type"],
514
519
  "dependencies": {
515
- "template_forbids": ["template"]
520
+ "template_forbids": ["template"],
521
+ "parent": ["workshop"]
516
522
  },
517
523
  "allOf": [
518
524
  {
@@ -540,7 +546,12 @@
540
546
  "properties": { "type": { "const": "family" } }
541
547
  },
542
548
  "then": {
543
- "properties": { "name": false, "url": false, "parent": false }
549
+ "properties": {
550
+ "name": false,
551
+ "url": false,
552
+ "parent": false,
553
+ "workshop": false
554
+ }
544
555
  }
545
556
  },
546
557
  {
@@ -552,6 +563,10 @@
552
563
  "required": ["type", "tex"],
553
564
  "maxProperties": 2
554
565
  }
566
+ },
567
+ {
568
+ "if": { "required": ["workshop"] },
569
+ "then": { "required": ["parent"] }
555
570
  }
556
571
  ],
557
572
  "definitions": {
@@ -28,8 +28,8 @@ const PRESETS = join(ROOT, "presets");
28
28
  const CASSETTE = join(ROOT, "src", "adapters", "hotcrp", "cassette");
29
29
  // Frozen at the portal's reading of 2026-10-19 (test/frozen-presets.ts): the shipped file's dates
30
30
  // are the refresh's own output.
31
- const MSR = join(FROZEN_DIR, "msr.jsonc");
32
- const msrText = frozenText("msr.jsonc");
31
+ const MSR = join(FROZEN_DIR, "msr-2027.jsonc");
32
+ const msrText = frozenText("msr-2027.jsonc");
33
33
  const readings = (text: string) => parsePreset(text, MSR).deadlines ?? [];
34
34
  /** MSR with its submission deadline two days before the portal's. */
35
35
  const earlier = msrText.replace(
@@ -71,7 +71,7 @@ describe("`npm run refresh-deadlines`, the command the workflow runs — with no
71
71
  const dir = tempDir("deadlines-");
72
72
  const atServer = (text: string, path: string) =>
73
73
  text.split("https://msr2027.hotcrp.com").join(`${base.url}/${path}`);
74
- writeFileSync(join(dir, "msr.jsonc"), atServer(earlier, "msr"));
74
+ writeFileSync(join(dir, "msr-2027.jsonc"), atServer(earlier, "msr"));
75
75
  writeFileSync(join(dir, "gone.jsonc"), atServer(msrText, "gone"));
76
76
  writeFileSync(join(dir, "notes.md"), "not a preset\n");
77
77
  const summary = join(dir, "summary.md");
@@ -99,7 +99,7 @@ describe("`npm run refresh-deadlines`, the command the workflow runs — with no
99
99
  },
100
100
  ); // rejects on a non-zero exit, with the output
101
101
  expect(
102
- readings(readFileSync(join(dir, "msr.jsonc"), "utf8"))[0]?.at,
102
+ readings(readFileSync(join(dir, "msr-2027.jsonc"), "utf8"))[0]?.at,
103
103
  ).toBe("2026-10-21T11:59:59Z");
104
104
  expect(r.stdout).toMatch(
105
105
  /^::warning title=deadlines::gone\.jsonc: could not read http:\/\/127\.0\.0\.1:\d+\/gone\/deadlines — the portal refused \(HTTP 404\): No such conference$/m,
@@ -23,8 +23,8 @@ import {
23
23
  // The logic is tested over presets FROZEN at the portal's reading of 2026-10-19 (test/frozen-presets.ts):
24
24
  // the shipped files' dates are the refresh's own output, and a test of the refresh that read them
25
25
  // would turn red on the refresh's own pull request.
26
- const MSR = join(FROZEN_DIR, "msr.jsonc");
27
- const msrText = frozenText("msr.jsonc");
26
+ const MSR = join(FROZEN_DIR, "msr-2027.jsonc");
27
+ const msrText = frozenText("msr-2027.jsonc");
28
28
  const readings = (text: string) => parsePreset(text, MSR).deadlines ?? [];
29
29
  /** MSR with its submission deadline two days before the portal's. */
30
30
  const earlier = msrText.replace(
@@ -45,7 +45,7 @@ function inMemory(files: Readonly<Record<string, string>>) {
45
45
  return { presets, written };
46
46
  }
47
47
 
48
- /** What MSR 2027's portal lists — the readings the frozen msr.jsonc holds. */
48
+ /** What MSR 2027's portal lists — the readings the frozen msr-2027.jsonc holds. */
49
49
  const MSR_PAGE: PortalDeadlines = {
50
50
  now: 1792434476,
51
51
  open: true,
@@ -63,7 +63,7 @@ const MSR_PAGE: PortalDeadlines = {
63
63
  },
64
64
  ],
65
65
  };
66
- /** What AIDC 2026's portal lists — the readings presets/aidc.jsonc holds. */
66
+ /** What AIDC 2026's portal lists — the readings presets/aidc-2026.jsonc holds. */
67
67
  const AIDC_PAGE: PortalDeadlines = {
68
68
  now: 1791194489,
69
69
  open: true,
@@ -165,12 +165,12 @@ describe("refreshPreset on MSR 2027's page", () => {
165
165
 
166
166
  describe("refreshPreset — what it skips, and a portal it cannot read", () => {
167
167
  test("a preset without a portal, or with one paperlint has no adapter for, is skipped", async () => {
168
- const aisec = join(FROZEN_DIR, "aisec.jsonc");
168
+ const aisec = join(FROZEN_DIR, "aisec-2026.jsonc");
169
169
  const skipped = { kind: "skipped" };
170
170
  expect(
171
171
  await refreshPreset({
172
172
  file: aisec,
173
- text: frozenText("aisec.jsonc"),
173
+ text: frozenText("aisec-2026.jsonc"),
174
174
  portal: answering(ok(MSR_PAGE)),
175
175
  today: "2026-10-05",
176
176
  }),
@@ -266,7 +266,7 @@ describe("runRefresh — what it prints, writes and returns", () => {
266
266
 
267
267
  describe("runRefresh — a changed preset", () => {
268
268
  test("a changed preset is written back, and the summary names it", async () => {
269
- const { presets, written } = inMemory({ "msr.jsonc": earlier });
269
+ const { presets, written } = inMemory({ "msr-2027.jsonc": earlier });
270
270
  const lines: string[] = [];
271
271
  const summaries: string[] = [];
272
272
  const code = await runRefresh({
@@ -277,12 +277,12 @@ describe("runRefresh — a changed preset", () => {
277
277
  summary: (text) => summaries.push(text),
278
278
  });
279
279
  expect(code).toBe(0);
280
- expect(readings(written["msr.jsonc"] ?? "")[0]?.at).toBe(
280
+ expect(readings(written["msr-2027.jsonc"] ?? "")[0]?.at).toBe(
281
281
  "2026-10-21T11:59:59Z",
282
282
  );
283
283
  expect(lines.at(-1)).toBe("1 preset(s) changed");
284
284
  expect(summaries[0]).toMatch(
285
- /^- `msr\.jsonc` \(https:\/\/msr2027\.hotcrp\.com\/deadlines\)\n {2}- submission: 2026-10-19T04:00:00Z → 2026-10-21T11:59:59Z$/m,
285
+ /^- `msr-2027\.jsonc` \(https:\/\/msr2027\.hotcrp\.com\/deadlines\)\n {2}- submission: 2026-10-19T04:00:00Z → 2026-10-21T11:59:59Z$/m,
286
286
  );
287
287
  });
288
288
  });
@@ -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
  });
@@ -20,7 +20,7 @@ verbatim.
20
20
  | `get-searchcompletion.json` | `GET /api/searchcompletion` on msr2027.hotcrp.com with an author's token, 2026-10-20 — the site's search completions, its topics among them; no personal data, nothing replaced | 200 |
21
21
 
22
22
  To re-record: run the same four requests with `curl` against a HotCRP site where you have a
23
- submission and a token (`Authorization: bearer $HOTCRP_TOKEN_<SITE>`), always with `dry_run=1` on a `POST`,
23
+ submission and a token (`Authorization: bearer $HOTCRP_TOKEN_HOTCRP_COM` (or the site's own variable)), always with `dry_run=1` on a `POST`,
24
24
  save each body, then replace every identifying value with a fake of the same type before committing.
25
25
  These files ship in the npm package with the rest of `src/`, like the tests beside them.
26
26
 
@@ -1,6 +1,16 @@
1
1
  /**
2
2
  * HotCRP, as the `PortalSite` and `SubmissionPortal` ports: its token variables and token page, its
3
3
  * REST API read and written over `fetch`, its answers parsed here. Everything that changes if HotCRP's API does lives in this folder.
4
+ *
5
+ * HotCRP is open source (PHP, https://github.com/kohler/hotcrp). When its behaviour is unclear, its
6
+ * source is the first place to look — before guessing, and before testing against a live site with
7
+ * real credentials. Worked example (#547): whether one token serves two conferences on hotcrp.com
8
+ * is answered by `src/init.php` (a bearer token starting `hcT_` is looked up in the installation's
9
+ * shared contact database, one starting `hct_` in the one conference's own) and by
10
+ * `src/userinfo/u_developer.php` (a new token's "Site availability" defaults to "All sites"). So one
11
+ * shared token for all of hotcrp.com is the normal case; a separate token is the exception — a
12
+ * self-hosted server, or a token made as "This site only". Details in `token.ts`.
13
+ * This is the page a contributor to this adapter reads first; `docs/submission.md` is for its users.
4
14
  */
5
15
  export {
6
16
  CONTENT_FIELD,
@@ -21,6 +31,8 @@ export { hotcrpSite } from "./site.ts";
21
31
  export {
22
32
  SITE_LESS_VARIABLE,
23
33
  VARIABLE_PATTERN,
34
+ isSiteOnlyToken,
35
+ sharedVariable,
24
36
  tokenVariable,
25
37
  } from "./token.ts";
26
38
  export { parseDeadlinesPage, whatOf } from "./deadlines.ts";
@@ -8,12 +8,16 @@ import { hotcrpPortal } from "./portal.io.ts";
8
8
  import {
9
9
  SITE_LESS_VARIABLE,
10
10
  VARIABLE_PATTERN,
11
+ isSiteOnlyToken,
12
+ sharedVariable,
11
13
  tokenVariable,
12
14
  } from "./token.ts";
13
15
 
14
16
  /** The HotCRP site at `url` (no trailing slash). */
15
17
  export const hotcrpSite = (url: string): PortalSite => ({
16
18
  tokenVariable: tokenVariable(url),
19
+ sharedVariable: sharedVariable(url),
20
+ isSiteOnlyToken,
17
21
  siteLessVariable: SITE_LESS_VARIABLE,
18
22
  variablePattern: VARIABLE_PATTERN,
19
23
  credentials: {
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { map, unique } from "remeda";
6
6
  import { expect, test } from "vitest";
7
- import { tokenVariable } from "./index.ts";
7
+ import { isSiteOnlyToken, sharedVariable, tokenVariable } from "./index.ts";
8
8
 
9
9
  test("tokenVariable: on hotcrp.com the subdomain alone names the site", () => {
10
10
  expect(tokenVariable("https://msr2027.hotcrp.com")).toBe(
@@ -67,3 +67,41 @@ test("tokenVariable: a port other than the scheme's default is part of the site;
67
67
  "HOTCRP_TOKEN_127_0_0_1_9",
68
68
  ]);
69
69
  });
70
+
71
+ test("sharedVariable: every *.hotcrp.com site has the one hosted-service variable", () => {
72
+ expect(
73
+ map(
74
+ [
75
+ "https://msr2027.hotcrp.com",
76
+ "https://msr2027.hotcrp.com/",
77
+ "https://ase-2027.hotcrp.com/paper/7",
78
+ "msr2027.hotcrp.com",
79
+ ],
80
+ sharedVariable,
81
+ ),
82
+ ).toStrictEqual(
83
+ map(Array.from({ length: 4 }), () => "HOTCRP_TOKEN_HOTCRP_COM"),
84
+ );
85
+ });
86
+
87
+ test("🔴 sharedVariable: a self-hosted install has none, however its host looks", () => {
88
+ expect(
89
+ map(
90
+ [
91
+ "https://aidc.submit.acsac.org",
92
+ "https://hotcrp.example.edu/conf2027",
93
+ "https://review.example.org:8443/conf",
94
+ "https://hotcrp.com.example.org",
95
+ "https://nothotcrp.com",
96
+ "http://127.0.0.1:9",
97
+ ],
98
+ sharedVariable,
99
+ ),
100
+ ).toStrictEqual(map(Array.from({ length: 6 }), () => null));
101
+ });
102
+
103
+ test("isSiteOnlyToken: the prefix tells — lowercase hct_ is one site's, capital hcT_ is every site's", () => {
104
+ expect(
105
+ map(["hct_fake", "hcT_fake", "fake", "", "HCT_FAKE"], isSiteOnlyToken),
106
+ ).toStrictEqual([true, false, false, false, false]);
107
+ });
@@ -2,12 +2,24 @@
2
2
  * WHICH ENVIRONMENT VARIABLE HOLDS A HOTCRP SITE'S API TOKEN — HotCRP's fact, so HotCRP's adapter.
3
3
  * Pure.
4
4
  *
5
- * A HotCRP token works on the site it was made on and nowhere else (measured 2026-10-19: a token
6
- * made on one HotCRP site gets `401 Unauthorized` from `msr2027.hotcrp.com`'s `/api/whoami`). So the
7
- * variable is named after the site, and no two sites share one — `HOTCRP_TOKEN_<subdomain>` on the
8
- * hosted service, `HOTCRP_TOKEN_<host and path>` anywhere else — and an author with live submissions
9
- * at two venues sets two variables (#236). The site-less `HOTCRP_TOKEN` is no longer read; the policy that refuses it
10
- * by name is the domain's (`src/domain/portal-token.ts`).
5
+ * What HotCRP's source says (github.com/kohler/hotcrp, read 2026-11-19; #547). A token is one of two
6
+ * kinds, and its prefix tells which: `hcT_` is kept in the installation's shared contact database and
7
+ * works on every conference of that installation — all of hotcrp.com; `hct_` is kept in one
8
+ * conference's own database and works there only (`src/init.php`, where a bearer token is looked up
9
+ * by its prefix; `test/t_authorize.php`: "Bearer tokens start with hct_ (local) or hcT_ (cdb)").
10
+ * An installation with a shared contact database offers "Site availability: All sites / This site
11
+ * only" when a token is made, "All sites" preselected (`src/userinfo/u_developer.php`), so on
12
+ * hotcrp.com a token is shared unless the author picks otherwise. A self-hosted install is a separate
13
+ * installation with its own databases and cannot know a hotcrp.com token — what was measured on
14
+ * 2026-10-19: a token made on a self-hosted install got `401 Unauthorized` from
15
+ * `msr2027.hotcrp.com`'s `/api/whoami`. That crossed two installations; it says nothing about two
16
+ * hosted sites.
17
+ *
18
+ * So a `*.hotcrp.com` site reads `HOTCRP_TOKEN_<subdomain>` first, as an override, then the one
19
+ * variable of the whole service, `HOTCRP_TOKEN_HOTCRP_COM` — refused when it holds a site-only
20
+ * token. A self-hosted install reads `HOTCRP_TOKEN_<host and path>` only, never the service's. The
21
+ * site-less `HOTCRP_TOKEN` is no longer read; the policy that refuses it by name is the domain's
22
+ * (`src/domain/portal-token.ts`).
11
23
  */
12
24
  import { hostOf } from "../../domain/portal-token.ts";
13
25
 
@@ -20,6 +32,27 @@ export const VARIABLE_PATTERN = `${SITE_LESS_VARIABLE}_<LABEL>`;
20
32
  /** The hosted service, where each conference is a subdomain of its own. */
21
33
  const HOSTED = ".hotcrp.com";
22
34
 
35
+ /** The one variable of the hosted service: its sites share an account system, so one token. */
36
+ const SHARED_VARIABLE = `${SITE_LESS_VARIABLE}_HOTCRP_COM`;
37
+
38
+ /**
39
+ * Whether a token works on one site only: HotCRP's lowercase `hct_` prefix (an all-sites token starts
40
+ * `hcT_`).
41
+ */
42
+ export const isSiteOnlyToken = (token: string): boolean =>
43
+ token.startsWith("hct_");
44
+
45
+ /** Whether `url` is a site of the hosted service. */
46
+ const isHosted = (url: string): boolean => hostOf(url).endsWith(HOSTED);
47
+
48
+ /**
49
+ * The variable shared by every site of the hosted service, for a site on it; null for a self-hosted
50
+ * install, whose token the hosted service does not accept (measured 2026-10-19: 401) and which never
51
+ * reads this one.
52
+ */
53
+ export const sharedVariable = (url: string): string | null =>
54
+ isHosted(url) ? SHARED_VARIABLE : null;
55
+
23
56
  /**
24
57
  * What names a site, and no other: on the hosted service the subdomain alone
25
58
  * (`msr2027.hotcrp.com` → `msr2027`); anywhere else the whole host, with a port other than the
@@ -29,7 +62,7 @@ const HOSTED = ".hotcrp.com";
29
62
  */
30
63
  function siteLabel(url: string): string {
31
64
  const host = hostOf(url);
32
- if (host.endsWith(HOSTED)) return host.slice(0, -HOSTED.length);
65
+ if (isHosted(url)) return host.slice(0, -HOSTED.length);
33
66
  const path = URL.canParse(url) ? new URL(url).pathname : "";
34
67
  return `${host}${path}`;
35
68
  }
@@ -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[];