paperlint 18.9.0 → 18.9.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paperlint",
3
- "version": "18.9.0",
3
+ "version": "18.9.1",
4
4
  "description": "Skills and hooks for writing a research paper with paperlint",
5
5
  "skills": "./skills/",
6
6
  "hooks": "./plugin/hooks/hooks.json"
package/CLAUDE.md CHANGED
@@ -1,4 +1,4 @@
1
- <!-- vigiles:sha256:95d2ae05ac0791df compiled from CLAUDE.md.spec.ts -->
1
+ <!-- vigiles:sha256:66d7a4e4745e9fae compiled from CLAUDE.md.spec.ts -->
2
2
 
3
3
  # CLAUDE.md
4
4
 
@@ -25,6 +25,12 @@ This file loads on every turn, so it holds only what applies to **any** change h
25
25
 
26
26
  `npm install` — not optional: `vigiles` is a real dependency, and every harness, spec and hook resolves through it. Without it, failures look like broken code rather than a missing install.
27
27
 
28
+ ## Claude Code and Codex
29
+
30
+ Keep the repository instructions and maintainer skills available in both tools. This spec builds both `CLAUDE.md` and `AGENTS.md`. Use the table below for folder-specific instructions.
31
+
32
+ Claude Code loads `add-venue` from `.claude/skills/` and Codex loads it from `.agents/skills/`. Edit `.claude/skills/add-venue/SKILL.md.spec.ts` and run `npx vigiles compile .claude/skills/add-venue/SKILL.md.spec.ts` followed by `npm run sync:skills` to regenerate both copies. The sync command uses Rulesync and needs Node 22.22 or later. Commit the generated Markdown with the spec. CI checks the Codex copy during `npm run fmt:check`.
33
+
28
34
  ## Where the other rules live
29
35
 
30
36
  | when you are… | read | holds |
@@ -659,6 +659,7 @@ __export(util_exports, {
659
659
  required: () => required,
660
660
  safeExtend: () => safeExtend,
661
661
  shallowClone: () => shallowClone,
662
+ sizeCaps: () => sizeCaps,
662
663
  slugify: () => slugify,
663
664
  stringifyPrimitive: () => stringifyPrimitive,
664
665
  toZod: () => toZod,
@@ -1178,6 +1179,18 @@ function prefixIssues(path, issues) {
1178
1179
  function unwrapMessage(message) {
1179
1180
  return typeof message === "string" ? message : message?.message;
1180
1181
  }
1182
+ function sizeCaps(defChecks) {
1183
+ const caps = [];
1184
+ for (const ch of defChecks ?? []) {
1185
+ const d = ch._zod.def;
1186
+ if (!/_(length|size)$|_equals$/.test(d.check))
1187
+ break;
1188
+ const max = d.maximum ?? d.length ?? d.size;
1189
+ if (max >= 0)
1190
+ caps.push([max, ch]);
1191
+ }
1192
+ return caps;
1193
+ }
1181
1194
  function attachSchema(issues, start, inst) {
1182
1195
  var _a3;
1183
1196
  for (let i = start; i < issues.length; i++) {
@@ -2598,7 +2611,7 @@ ${content.join("\n")}
2598
2611
  var version = {
2599
2612
  major: 4,
2600
2613
  minor: 6,
2601
- patch: 5
2614
+ patch: 7
2602
2615
  };
2603
2616
 
2604
2617
  // node_modules/zod/v4/core/schemas.js
@@ -3354,6 +3367,31 @@ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => {
3354
3367
  return payload;
3355
3368
  };
3356
3369
  });
3370
+ function capSize(inst, size) {
3371
+ const caps = sizeCaps(inst._zod.def.checks);
3372
+ if (!caps.length)
3373
+ return;
3374
+ const cap = Math.min(...caps.map((c) => c[0]));
3375
+ const parse3 = inst._zod.parse;
3376
+ inst._zod.parse = (payload, ctx) => {
3377
+ const n = size(payload.value);
3378
+ if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
3379
+ for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
3380
+ if (n > max && ch._zod.def.when(payload)) {
3381
+ const start = payload.issues.length;
3382
+ ch._zod.check(payload);
3383
+ payload.issues[start].continue = false;
3384
+ attachSchema(payload.issues, start, inst);
3385
+ return payload;
3386
+ }
3387
+ }
3388
+ }
3389
+ return parse3(payload, ctx);
3390
+ };
3391
+ }
3392
+ var arraySize = (input2) => Array.isArray(input2) ? input2.length : -1;
3393
+ var mapSize = (input2) => input2 instanceof Map ? input2.size : -1;
3394
+ var setSize = (input2) => input2 instanceof Set ? input2.size : -1;
3357
3395
  function handleArrayResult(result, final, index) {
3358
3396
  if (result.issues.length) {
3359
3397
  final.issues.push(...prefixIssues(index, result.issues));
@@ -3397,6 +3435,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
3397
3435
  }
3398
3436
  return payload;
3399
3437
  };
3438
+ capSize(inst, arraySize);
3400
3439
  });
3401
3440
  function handlePropertyResult(result, final, key, input2, optin, optout) {
3402
3441
  const isPresent = key in input2;
@@ -4353,6 +4392,7 @@ var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def) => {
4353
4392
  return Promise.all(proms).then(() => payload);
4354
4393
  return payload;
4355
4394
  };
4395
+ capSize(inst, mapSize);
4356
4396
  });
4357
4397
  function handleMapResult(keyResult, valueResult, final, key, input2, inst, ctx) {
4358
4398
  if (keyResult.issues.length) {
@@ -4419,6 +4459,7 @@ var $ZodSet = /* @__PURE__ */ $constructor("$ZodSet", (inst, def) => {
4419
4459
  return Promise.all(proms).then(() => payload);
4420
4460
  return payload;
4421
4461
  };
4462
+ capSize(inst, setSize);
4422
4463
  });
4423
4464
  function handleSetResult(result, final) {
4424
4465
  if (result.issues.length) {
@@ -13949,9 +13990,15 @@ function generateNullableCheck(doc, ctx, schema, accessor, buildsValue = true) {
13949
13990
  doc.write(`}`);
13950
13991
  return outputVar;
13951
13992
  }
13993
+ function generateSizeGate(doc, schema, size) {
13994
+ for (const [max, check2] of sizeCaps(schema._zod.def.checks)) {
13995
+ doc.write(`if (${size} > ${numericOperand(max, check2._zod.def.check)}) return INVALID;`);
13996
+ }
13997
+ }
13952
13998
  function generateArrayCheck(doc, ctx, schema, accessor, buildsValue = true) {
13953
13999
  const def = schema._zod.def;
13954
14000
  doc.write(`if (!Array.isArray(${accessor})) return INVALID;`);
14001
+ generateSizeGate(doc, schema, `${accessor}.length`);
13955
14002
  const outputVar = buildsValue ? newVar(ctx) : null;
13956
14003
  const iVar = newVar(ctx);
13957
14004
  const elemVar = newVar(ctx);
@@ -14351,6 +14398,7 @@ function literalPropertyKey(ctx, key) {
14351
14398
  function generateMapCheck(doc, ctx, schema, accessor) {
14352
14399
  const def = schema._zod.def;
14353
14400
  doc.write(`if (!(${accessor} instanceof Map)) return INVALID;`);
14401
+ generateSizeGate(doc, schema, `${accessor}.size`);
14354
14402
  const outputVar = newVar(ctx);
14355
14403
  const kVar = newVar(ctx);
14356
14404
  const valVar = newVar(ctx);
@@ -14367,6 +14415,7 @@ function generateMapCheck(doc, ctx, schema, accessor) {
14367
14415
  function generateSetCheck(doc, ctx, schema, accessor) {
14368
14416
  const def = schema._zod.def;
14369
14417
  doc.write(`if (!(${accessor} instanceof Set)) return INVALID;`);
14418
+ generateSizeGate(doc, schema, `${accessor}.size`);
14370
14419
  const outputVar = newVar(ctx);
14371
14420
  const valVar = newVar(ctx);
14372
14421
  doc.write(`const ${outputVar} = new Set();`);
@@ -9,7 +9,7 @@ import {
9
9
  printRaw,
10
10
  replaceNode,
11
11
  visit
12
- } from "./chunk-65X5HVIJ.js";
12
+ } from "./chunk-UL4INX2P.js";
13
13
  import {
14
14
  CONFIG_KEY,
15
15
  settingsOf
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-GRSXIWYF.js";
31
31
  import {
32
32
  external_exports
33
- } from "./chunk-NPQVDEE4.js";
33
+ } from "./chunk-4MHEJ6FR.js";
34
34
  import {
35
35
  __commonJS,
36
36
  __toESM
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paperlint",
3
- "version": "18.9.0",
3
+ "version": "18.9.1",
4
4
  "description": "A linter for scientific papers written in LaTeX: catches mistakes before you submit to a conference or journal.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -20,8 +20,9 @@
20
20
  "check": "node scripts/check.ts",
21
21
  "pipeline": "node scripts/pipeline.ts",
22
22
  "refresh-deadlines": "node --conditions=paperlint-source scripts/refresh-deadlines/main.ts",
23
+ "sync:skills": "node scripts/sync-skills.ts",
23
24
  "fmt": "prettier --write .",
24
- "fmt:check": "prettier --check .",
25
+ "fmt:check": "prettier --check . && npm run sync:skills -- --check",
25
26
  "site:build": "npm ci --prefix site && npm run lint --prefix site && npm run typecheck --prefix site && npm run test --prefix site && npm run build --prefix site && npm run test:browser --prefix site"
26
27
  },
27
28
  "dependencies": {
@@ -70,6 +71,7 @@
70
71
  "jsonc-parser": "^3.3.1",
71
72
  "playwright-core": "^1.64.1",
72
73
  "prettier": "^3.8.1",
74
+ "rulesync": "43.11.0",
73
75
  "semantic-release": "25.0.9",
74
76
  "typescript-eslint": "^8.70.1",
75
77
  "vitest": "^4.1.11"
@@ -65,17 +65,23 @@
65
65
  },
66
66
  },
67
67
 
68
- // The portal's reading: `"sub":1794657599` = 2026-11-14T11:59:59Z = the end of 13 Nov AoE. It
69
- // agrees with the call and with the ICSE workshops page; the organizers' email of 2026-10-23
70
- // (agentverify-2027.md) says the same and that there is no separate abstract deadline, so there is no
71
- // `registration`. Notification and camera-ready are the site's, at the end of the AoE day.
68
+ // HotCRP's submission and resubmission deadlines are the ends of 14 and 15 Nov AoE.
69
+ // The workshop CFP still lists 13 Nov AoE and the organizers confirmed there is no separate
70
+ // abstract deadline (agentverify-2027.md). Notification and camera-ready come from the workshop site.
72
71
  "deadlines": [
73
72
  {
74
73
  "what": "submission",
75
- "at": "2026-11-14T11:59:59Z",
74
+ "at": "2026-11-15T11:59:59Z",
76
75
  "source": "portal",
77
76
  "url": "https://icse2027-agentverify.hotcrp.com/deadlines",
78
- "read": "2026-10-26",
77
+ "read": "2026-11-22",
78
+ },
79
+ {
80
+ "what": "resubmission",
81
+ "at": "2026-11-16T11:59:59Z",
82
+ "source": "portal",
83
+ "url": "https://icse2027-agentverify.hotcrp.com/deadlines",
84
+ "read": "2026-11-22",
79
85
  },
80
86
  {
81
87
  "what": "notification",
@@ -30,8 +30,8 @@ researchr page `conf.researchr.org/home/agentverify-2027` only redirects to the
30
30
  is offered (below).
31
31
  - **Presenting**: «At least one author of each accepted paper must register and present.» Remote
32
32
  presentation is allowed (below).
33
- - **Deadlines (AoE)**: submission 13 Nov 2026, reviews due 5 Dec, final notification 11 Dec 2026,
34
- camera-ready 29 Jan 2027.
33
+ - **Deadlines (AoE)**: HotCRP submission 14 Nov 2026 and resubmission 15 Nov 2026.
34
+ Reviews are due 5 Dec, final notification 11 Dec 2026, and camera-ready 29 Jan 2027.
35
35
 
36
36
  ## 🔴 The submission deadline moved
37
37
 
@@ -43,8 +43,12 @@ The organizers' email of 2026-10-23 (as received by an author; the email itself
43
43
  Source: **organizers' email, 2026-10-23**. On 2026-10-26 every public source agreed with it: the
44
44
  CFP, the home page («Papers are due November 13th, 2026 (AoE)»), the ICSE workshops page («Workshop
45
45
  Papers Submission Deadline for all Workshops: 13 November 2026») and the portal (`"sub":1794657599`,
46
- 2026-11-14T11:59:59Z). None of the pages read showed 6 November. If a cached copy of any of them
47
- does, the email and the live pages win.
46
+ 2026-11-14T11:59:59Z).
47
+
48
+ The [workshop CFP](https://agentverify2027.github.io/cfp.html) still lists 13 Nov AoE. The
49
+ [HotCRP deadlines page](https://icse2027-agentverify.hotcrp.com/deadlines), rechecked on
50
+ 2026-11-21 UTC, gives 2026-11-15T11:59:59Z for new submissions and 2026-11-16T11:59:59Z
51
+ for updates to completed submissions. The preset follows the portal for both.
48
52
 
49
53
  ## Paper kinds and limits
50
54
 
@@ -63,9 +67,9 @@ body are a finding.
63
67
  - **The IEEE template**, through `extends: paperlint:ieee-conference` ([`ieee-conference.md`](ieee-conference.md)).
64
68
  - **Double-blind review** (`blind`), so `anonymity/identity` checks the PDF against the paper's
65
69
  declared `identity`.
66
- - **Portal and deadlines**: the submission reading is the portal's, refreshed by paperlint's
67
- scheduled workflow; notification and camera-ready are the site's. No `registration`: there is no
68
- abstract deadline.
70
+ - **Portal and deadlines**: paperlint's scheduled workflow refreshes submission and resubmission
71
+ from HotCRP. Notification and camera-ready come from the workshop site. The organizers confirmed
72
+ that there is no separate abstract deadline.
69
73
 
70
74
  ## Answered by the organizers (emails to an author, not public)
71
75
 
@@ -40,8 +40,8 @@
40
40
  // the HotCRP API, there.
41
41
  "portal": { "kind": "hotcrp", "url": "https://aidc.submit.acsac.org" },
42
42
 
43
- // Read from the portal's public deadlines page; the camera-ready only in its status object
44
- // (`"final":{"done":1793447999}`).
43
+ // Read from the portal's public deadlines page. The camera-ready timestamp is the hard
44
+ // `final.done` value in its status object. The workshop site's earlier date is recorded in the card.
45
45
  "deadlines": [
46
46
  {
47
47
  "what": "submission",
@@ -52,10 +52,10 @@
52
52
  },
53
53
  {
54
54
  "what": "camera-ready",
55
- "at": "2026-11-09T11:59:59Z",
55
+ "at": "2026-11-18T11:59:59Z",
56
56
  "source": "portal",
57
57
  "url": "https://aidc.submit.acsac.org/deadlines",
58
- "read": "2026-10-29",
58
+ "read": "2026-11-22",
59
59
  },
60
60
  ],
61
61
 
@@ -27,6 +27,10 @@ from it. The `submit-paper` skill reads this card for the venue's specifics.
27
27
  2026-10-03 11:59:59 UTC (`"sub":1791028799`). The portal is what refuses the upload. The preset
28
28
  carries its readings as `deadlines`, refreshed by paperlint's scheduled workflow when the portal
29
29
  changes them.
30
+ - **Camera-ready**: the [workshop site](https://aidcworkshop.github.io/#important-dates) lists
31
+ 2026-11-08T11:59:59Z. The [HotCRP deadlines page](https://aidc.submit.acsac.org/deadlines)
32
+ gives 2026-11-18T11:59:59Z as its hard `final.done` deadline. Both were rechecked on
33
+ 2026-11-21 UTC. The preset follows HotCRP.
30
34
 
31
35
  ## Paper kinds and limits
32
36
 
@@ -38,17 +38,22 @@
38
38
  // «should be performed electronically through HotCRP» (the call above).
39
39
  "portal": { "kind": "hotcrp", "url": "https://icse2027-nlbse.hotcrp.com" },
40
40
 
41
- // 🔴 THE PORTAL HOLDS NO DEADLINE YET: on 2026-10-26 its status data read `"sub":{"open":false}`
42
- // with no date, while the call lists 13 Nov. So these are the call's readings, in UTC at the end
43
- // of the AoE day; the refresh adds the portal's the day it publishes one (the earlier binds).
44
- // The competition papers' 27 Nov is in the card only: one reading per kind and source.
41
+ // The CFP's updated 20 Nov AoE paper deadline matches HotCRP's 21 Nov 11:59:59 UTC.
42
+ // The separate 27 Nov AoE deadline for tool competition and research challenge papers is in the card.
45
43
  "deadlines": [
46
44
  {
47
45
  "what": "submission",
48
- "at": "2026-11-14T11:59:59Z",
46
+ "at": "2026-11-21T11:59:59Z",
47
+ "source": "portal",
48
+ "url": "https://icse2027-nlbse.hotcrp.com/deadlines",
49
+ "read": "2026-11-22",
50
+ },
51
+ {
52
+ "what": "submission",
53
+ "at": "2026-11-21T11:59:59Z",
49
54
  "source": "call",
50
55
  "url": "https://conf.researchr.org/home/icse-2027/nlbse-2027",
51
- "read": "2026-10-26",
56
+ "read": "2026-11-22",
52
57
  },
53
58
  {
54
59
  "what": "notification",
@@ -29,12 +29,11 @@ Sources read 2026-10-26: that page, the portal's
29
29
  proceedings.» (tool competitions) and «Accepted papers will appear in the NLBSE ’27 proceedings.»
30
30
  (research challenge, skill classification). IEEE comes from the ICSE page above. No archival /
31
31
  non-archival choice is mentioned.
32
- - **Deadlines (AoE)**: paper submission 13 Nov 2026 (marked «updated»), tool competition and
33
- research challenge papers **27 Nov 2026** (marked «new»), notification 11 Dec 2026, camera-ready
34
- 29 Jan 2027. Only the 13 Nov line is in the preset.
35
- - 🔴 **Disagreement**: the call lists 13 Nov, but the portal's status data on 2026-10-26 reads
36
- `"sub":{"open":false}` with no date, i.e. it was closed and showed none. The preset therefore
37
- carries the call's reading until the portal publishes one.
32
+ - **Deadlines (AoE)**: paper submission **20 Nov 2026**, tool competition and research challenge
33
+ papers **27 Nov 2026**, author notification 11 Dec 2026, and camera-ready 29 Jan 2027.
34
+ The [workshop CFP](https://conf.researchr.org/home/icse-2027/nlbse-2027) and
35
+ [HotCRP](https://icse2027-nlbse.hotcrp.com/deadlines) agree on the paper submission deadline,
36
+ 2026-11-21T11:59:59Z. Both were rechecked on 2026-11-22 UTC.
38
37
 
39
38
  ## Paper kinds and limits
40
39
 
@@ -60,7 +59,8 @@ counts every page of the PDF: references that spill onto a page after a full bod
60
59
  - **The IEEE template**, through `extends: paperlint:ieee-conference` ([`ieee-conference.md`](ieee-conference.md)).
61
60
  - **Anonymous review** (`blind`), so `anonymity/identity` checks the PDF against the paper's
62
61
  declared `identity`.
63
- - **Portal and deadlines**: all three readings are the call's for now (see Disagreement above).
62
+ - **Portal and deadlines**: the preset records paper submission from both sources, and notification
63
+ and camera-ready from the call. The separate competition and challenge deadline is listed above.
64
64
 
65
65
  ## Not verified
66
66
 
@@ -0,0 +1,69 @@
1
+ import { execFileSync } from "node:child_process";
2
+ import { mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
3
+ import { tmpdir } from "node:os";
4
+ import { join } from "node:path";
5
+ import { describe, expect, it } from "vitest";
6
+ import { syncSkills } from "./sync-skills.ts";
7
+
8
+ describe("repository skill sync", () => {
9
+ it("detects a missing or stale Codex skill, and regenerates it from the Claude skill", async () => {
10
+ const root = await mkdtemp(join(tmpdir(), "paperlint-skill-test-"));
11
+ try {
12
+ const claudeDir = join(root, ".claude", "skills", "add-venue");
13
+ const claudeFile = join(claudeDir, "SKILL.md");
14
+ const codexFile = join(
15
+ root,
16
+ ".agents",
17
+ "skills",
18
+ "add-venue",
19
+ "SKILL.md",
20
+ );
21
+ const skill = [
22
+ "---",
23
+ "name: add-venue",
24
+ "description: Update a workshop.",
25
+ "---",
26
+ "",
27
+ "<!-- vigiles:sha256:abc compiled from .claude/skills/add-venue/SKILL.md.spec.ts -->",
28
+ "",
29
+ "# Check each deadline.",
30
+ "",
31
+ ].join("\n");
32
+
33
+ await mkdir(claudeDir, { recursive: true });
34
+ await writeFile(claudeFile, skill);
35
+ await expect(syncSkills(root, true)).rejects.toThrow(
36
+ "npm run sync:skills",
37
+ );
38
+ await expect(readFile(codexFile, "utf8")).rejects.toThrow();
39
+
40
+ await syncSkills(root, false);
41
+ const generated = await readFile(codexFile, "utf8");
42
+ expect(generated).toContain("name: add-venue");
43
+ expect(generated).toContain("# Check each deadline.");
44
+ expect(generated).not.toContain("vigiles:sha256");
45
+ expect(await readFile(claudeFile, "utf8")).toBe(skill);
46
+ await syncSkills(root, true);
47
+
48
+ await writeFile(claudeFile, skill.replace("each deadline", "the portal"));
49
+ await expect(syncSkills(root, true)).rejects.toThrow(
50
+ "npm run sync:skills",
51
+ );
52
+ expect(await readFile(codexFile, "utf8")).toBe(generated);
53
+ await syncSkills(root, false);
54
+ expect(await readFile(codexFile, "utf8")).toContain(
55
+ "# Check the portal.",
56
+ );
57
+ } finally {
58
+ await rm(root, { recursive: true, force: true });
59
+ }
60
+ });
61
+
62
+ it("the published CLI can check the tracked skill from a different directory", () => {
63
+ execFileSync(
64
+ process.execPath,
65
+ [join(import.meta.dirname, "sync-skills.ts"), "--check"],
66
+ { cwd: tmpdir(), stdio: "pipe" },
67
+ );
68
+ });
69
+ });
@@ -0,0 +1,57 @@
1
+ import assert from "node:assert/strict";
2
+ import { mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
3
+ import { tmpdir } from "node:os";
4
+ import { join } from "node:path";
5
+ import { generate } from "rulesync";
6
+ import { isMain } from "../skills/paper-pipeline/scripts/consumer.mjs";
7
+
8
+ const sourcePath = ".claude/skills/add-venue/SKILL.md";
9
+
10
+ /** Stage the compiled skill alone. Its eval and spec are repository authoring files. */
11
+ async function stageSkill(inputRoot: string, source: string): Promise<void> {
12
+ const skill = join(inputRoot, "skills", "add-venue");
13
+ await mkdir(skill, { recursive: true });
14
+ await writeFile(
15
+ join(skill, "SKILL.md"),
16
+ source.replace(
17
+ /^<!-- vigiles:sha256:.* -->\r?$/m,
18
+ "<!-- Generated by npm run sync:skills from the compiled Claude skill. -->",
19
+ ),
20
+ );
21
+ }
22
+
23
+ export async function syncSkills(root: string, check: boolean): Promise<void> {
24
+ const source = await readFile(join(root, sourcePath), "utf8");
25
+ const inputRoot = await mkdtemp(join(tmpdir(), "paperlint-rulesync-"));
26
+ try {
27
+ await stageSkill(inputRoot, source);
28
+ const result = await generate({
29
+ inputRoots: [inputRoot],
30
+ outputRoots: [root],
31
+ targets: ["codexcli"],
32
+ features: ["skills"],
33
+ check,
34
+ delete: false,
35
+ silent: true,
36
+ global: false,
37
+ });
38
+ assert.equal(
39
+ result.sourceLoadFailed,
40
+ false,
41
+ "Rulesync could not read add-venue",
42
+ );
43
+ assert.ok(
44
+ !check || !result.hasDiff,
45
+ "Run npm run sync:skills to refresh the Codex skill",
46
+ );
47
+ } finally {
48
+ await rm(inputRoot, { recursive: true, force: true });
49
+ }
50
+ }
51
+
52
+ if (isMain(import.meta.url)) {
53
+ await syncSkills(
54
+ join(import.meta.dirname, ".."),
55
+ process.argv.includes("--check"),
56
+ );
57
+ }
@@ -8,7 +8,7 @@ const __dirname = __plDirname(__filename);
8
8
  import {
9
9
  latexReader,
10
10
  sourcesCodec
11
- } from "../../../dist/skill-chunks/chunk-65X5HVIJ.js";
11
+ } from "../../../dist/skill-chunks/chunk-UL4INX2P.js";
12
12
  import {
13
13
  callerPath,
14
14
  decoded,
@@ -17,7 +17,7 @@ import {
17
17
  runText
18
18
  } from "../../../dist/skill-chunks/chunk-6NU6CXUS.js";
19
19
  import "../../../dist/skill-chunks/chunk-GRSXIWYF.js";
20
- import "../../../dist/skill-chunks/chunk-NPQVDEE4.js";
20
+ import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
21
21
  import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
22
22
 
23
23
  // skills/argument-arc/scripts/headings-core.ts
@@ -25,7 +25,7 @@ import {
25
25
  } from "../../../dist/skill-chunks/chunk-GRSXIWYF.js";
26
26
  import {
27
27
  external_exports
28
- } from "../../../dist/skill-chunks/chunk-NPQVDEE4.js";
28
+ } from "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
29
29
  import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
30
30
 
31
31
  // skills/build-label-page/scripts/label-page-cli.ts
@@ -10,7 +10,7 @@ import {
10
10
  parseLatex,
11
11
  sourcesCodec,
12
12
  visit
13
- } from "../../../dist/skill-chunks/chunk-65X5HVIJ.js";
13
+ } from "../../../dist/skill-chunks/chunk-UL4INX2P.js";
14
14
  import {
15
15
  messageOf,
16
16
  nodeFiles,
@@ -21,7 +21,7 @@ import {
21
21
  t,
22
22
  t10 as t2
23
23
  } from "../../../dist/skill-chunks/chunk-GRSXIWYF.js";
24
- import "../../../dist/skill-chunks/chunk-NPQVDEE4.js";
24
+ import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
25
25
  import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
26
26
 
27
27
  // skills/cold-read-diff/scripts/cold-read-core.ts
@@ -7,7 +7,7 @@ const __filename = __plFileURLToPath(import.meta.url);
7
7
  const __dirname = __plDirname(__filename);
8
8
  import {
9
9
  external_exports
10
- } from "../../../dist/skill-chunks/chunk-NPQVDEE4.js";
10
+ } from "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
11
11
  import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
12
12
 
13
13
  // skills/label-agent-runs/scripts/labels.ts
@@ -10,18 +10,18 @@ import {
10
10
  bibliographyAt,
11
11
  bibliographyUnreadWhy,
12
12
  isMain
13
- } from "../../../dist/skill-chunks/chunk-KWK6RT4T.js";
13
+ } from "../../../dist/skill-chunks/chunk-EOVEVX67.js";
14
14
  import {
15
15
  latexReader,
16
16
  sourcesCodec
17
- } from "../../../dist/skill-chunks/chunk-65X5HVIJ.js";
17
+ } from "../../../dist/skill-chunks/chunk-UL4INX2P.js";
18
18
  import "../../../dist/skill-chunks/chunk-IREAROCV.js";
19
19
  import {
20
20
  absolutePath,
21
21
  nodeFiles
22
22
  } from "../../../dist/skill-chunks/chunk-6NU6CXUS.js";
23
23
  import "../../../dist/skill-chunks/chunk-GRSXIWYF.js";
24
- import "../../../dist/skill-chunks/chunk-NPQVDEE4.js";
24
+ import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
25
25
  import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
26
26
 
27
27
  // skills/paper-pipeline/scripts/extract-ref-facts.mjs
@@ -23,7 +23,7 @@ import {
23
23
  import "../../../dist/skill-chunks/chunk-GRSXIWYF.js";
24
24
  import {
25
25
  external_exports
26
- } from "../../../dist/skill-chunks/chunk-NPQVDEE4.js";
26
+ } from "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
27
27
  import {
28
28
  __commonJS,
29
29
  __toESM
@@ -7,7 +7,7 @@ const __filename = __plFileURLToPath(import.meta.url);
7
7
  const __dirname = __plDirname(__filename);
8
8
  import {
9
9
  external_exports
10
- } from "../../../dist/skill-chunks/chunk-NPQVDEE4.js";
10
+ } from "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
11
11
  import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
12
12
 
13
13
  // skills/run-agent-grid/scripts/grid-guard.ts
@@ -10,18 +10,18 @@ import {
10
10
  bibliographyAt,
11
11
  bibliographyUnreadWhy,
12
12
  isMain
13
- } from "../../../dist/skill-chunks/chunk-KWK6RT4T.js";
13
+ } from "../../../dist/skill-chunks/chunk-EOVEVX67.js";
14
14
  import {
15
15
  latexReader,
16
16
  sourcesCodec
17
- } from "../../../dist/skill-chunks/chunk-65X5HVIJ.js";
17
+ } from "../../../dist/skill-chunks/chunk-UL4INX2P.js";
18
18
  import "../../../dist/skill-chunks/chunk-IREAROCV.js";
19
19
  import {
20
20
  absolutePath,
21
21
  nodeFiles
22
22
  } from "../../../dist/skill-chunks/chunk-6NU6CXUS.js";
23
23
  import "../../../dist/skill-chunks/chunk-GRSXIWYF.js";
24
- import "../../../dist/skill-chunks/chunk-NPQVDEE4.js";
24
+ import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
25
25
  import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
26
26
 
27
27
  // skills/verify-citations/scripts/bib-authors.mjs
@@ -11,18 +11,18 @@ import {
11
11
  bibliographyUnreadWhy,
12
12
  consumerContactEmail,
13
13
  isMain
14
- } from "../../../dist/skill-chunks/chunk-KWK6RT4T.js";
14
+ } from "../../../dist/skill-chunks/chunk-EOVEVX67.js";
15
15
  import {
16
16
  latexReader,
17
17
  sourcesCodec
18
- } from "../../../dist/skill-chunks/chunk-65X5HVIJ.js";
18
+ } from "../../../dist/skill-chunks/chunk-UL4INX2P.js";
19
19
  import "../../../dist/skill-chunks/chunk-IREAROCV.js";
20
20
  import {
21
21
  absolutePath,
22
22
  nodeFiles
23
23
  } from "../../../dist/skill-chunks/chunk-6NU6CXUS.js";
24
24
  import "../../../dist/skill-chunks/chunk-GRSXIWYF.js";
25
- import "../../../dist/skill-chunks/chunk-NPQVDEE4.js";
25
+ import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
26
26
  import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
27
27
 
28
28
  // skills/verify-citations/scripts/verify-cites.mjs
@@ -1,7 +1,7 @@
1
1
  /**
2
- * `paper/edition-over` (`src/edition-rule.ts`) on papers held in memory beside the SHIPPED presets,
3
- * with the clock fixed: the warning when every deadline of the paper's edition has passed, naming
4
- * the newer editions of its series; silence while one is still ahead, and with nothing to judge.
2
+ * `paper/edition-over` (`src/edition-rule.ts`) on papers held in memory beside the preset catalog,
3
+ * with the clock and AIDC's deadlines fixed. The rule warns when every deadline has passed and names
4
+ * newer editions of the same series. It is silent while a deadline is ahead or no deadline is recorded.
5
5
  */
6
6
  import { readdirSync, readFileSync } from "node:fs";
7
7
  import { join } from "node:path";
@@ -13,15 +13,19 @@ import {
13
13
  editionRules,
14
14
  judgeEdition,
15
15
  } from "./edition-rule.ts";
16
+ import { frozenText } from "../test/frozen-presets.ts";
16
17
  import { venuePreset } from "../test/support.ts";
17
18
 
18
19
  const VENUES = presetsDir();
19
20
  const PAPERS = "/work/papers";
20
- const shipped = Object.fromEntries(
21
- readdirSync(VENUES)
22
- .filter((f) => f.endsWith(".jsonc") || f.endsWith(".json"))
23
- .map((f) => [join(VENUES, f), readFileSync(join(VENUES, f))]),
24
- );
21
+ const presets = {
22
+ ...Object.fromEntries(
23
+ readdirSync(VENUES)
24
+ .filter((f) => f.endsWith(".jsonc") || f.endsWith(".json"))
25
+ .map((f) => [join(VENUES, f), readFileSync(join(VENUES, f))]),
26
+ ),
27
+ [join(VENUES, "aidc-2026.jsonc")]: frozenText("aidc-2026.jsonc"),
28
+ };
25
29
 
26
30
  /** The rule over one paper's PIPELINE-STATUS.md at the instant `now`: each message, as ESLint words it. */
27
31
  function lint(
@@ -34,7 +38,7 @@ function lint(
34
38
  ): string[] {
35
39
  const dir = `${PAPERS}/p`;
36
40
  const files = memoryFiles({
37
- ...shipped,
41
+ ...presets,
38
42
  [`${dir}/paperlint.json`]: JSON.stringify(settings),
39
43
  ...extra,
40
44
  });
@@ -75,7 +79,7 @@ describe("paper/edition-over — every deadline of the edition has passed", () =
75
79
  "2027-01-01T00:00:00Z",
76
80
  ),
77
81
  ).toEqual([
78
- 'AIDC 2026 is over: every deadline its preset records has passed, the last (camera-ready) at 2026-11-09T11:59:59Z. paperlint ships no newer edition of it yet; if the paper goes elsewhere, point "extends" at that venue',
82
+ 'AIDC 2026 is over: every deadline its preset records has passed, the last (camera-ready) at 2026-10-31T11:59:59Z. paperlint ships no newer edition of it yet; if the paper goes elsewhere, point "extends" at that venue',
79
83
  ]);
80
84
  });
81
85
 
@@ -102,12 +106,12 @@ describe("paper/edition-over — silent", () => {
102
106
  [
103
107
  "a deadline is still ahead",
104
108
  { extends: "paperlint:aidc-2026", kind: "regular" },
105
- "2026-11-01T00:00:00Z",
109
+ "2026-10-30T00:00:00Z",
106
110
  ],
107
111
  [
108
112
  "at the last deadline's very instant",
109
113
  { extends: "paperlint:aidc-2026", kind: "regular" },
110
- "2026-11-09T11:59:59Z",
114
+ "2026-10-31T11:59:59Z",
111
115
  ],
112
116
  [
113
117
  "an edition whose preset records no deadline",