paperlint 20.7.0 → 20.9.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 (67) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/adapters/revision-plan/index.d.ts +17 -0
  3. package/dist/adapters/revision-plan/index.d.ts.map +1 -0
  4. package/dist/adapters/revision-plan/index.js +168 -0
  5. package/dist/adapters/revision-plan/index.js.map +1 -0
  6. package/dist/domain/paper-layout.d.ts.map +1 -1
  7. package/dist/domain/paper-layout.js +4 -0
  8. package/dist/domain/paper-layout.js.map +1 -1
  9. package/dist/domain/revision-plan.d.ts +121 -0
  10. package/dist/domain/revision-plan.d.ts.map +1 -0
  11. package/dist/domain/revision-plan.js +15 -0
  12. package/dist/domain/revision-plan.js.map +1 -0
  13. package/dist/ports/revision-plan-codec.d.ts +7 -0
  14. package/dist/ports/revision-plan-codec.d.ts.map +1 -0
  15. package/dist/ports/revision-plan-codec.js +2 -0
  16. package/dist/ports/revision-plan-codec.js.map +1 -0
  17. package/dist/skill-chunks/{chunk-J5XYPERO.js → chunk-FOYA3JCS.js} +0 -6
  18. package/dist/skill-chunks/chunk-KCX34KV4.js +7610 -0
  19. package/dist/skill-chunks/{chunk-WYQTXKNM.js → chunk-KIKDPXE4.js} +2 -2
  20. package/dist/skill-chunks/{chunk-EDHTB7KT.js → chunk-MX3LJNFG.js} +4 -2
  21. package/dist/skill-chunks/chunk-UE2CAVD6.js +34 -0
  22. package/dist/skill-chunks/{chunk-QPWFSYJG.js → chunk-ZWJMR4TF.js} +5 -7
  23. package/dist/skills/paper-pipeline/scripts/revision-plan-core.d.ts +79 -0
  24. package/dist/skills/paper-pipeline/scripts/revision-plan.d.ts +2 -0
  25. package/docs/configuration.md +56 -0
  26. package/docs/layout.md +1 -0
  27. package/docs/rules/paper/allowed-files-only.md +1 -0
  28. package/package.json +2 -1
  29. package/scripts/bundle-skills.ts +1 -0
  30. package/scripts/revision-plan-schema.test.ts +39 -0
  31. package/scripts/revision-plan-schema.ts +17 -0
  32. package/skills/argument-arc/scripts/headings.js +3 -2
  33. package/skills/cold-read-diff/scripts/cold-read.js +3 -2
  34. package/skills/find-venue/SKILL.md +3 -2
  35. package/skills/find-venue/SKILL.md.spec.ts +2 -1
  36. package/skills/harden-paper/SKILL.md +5 -1
  37. package/skills/harden-paper/SKILL.md.spec.ts +4 -0
  38. package/skills/paper-pipeline/SKILL.md +29 -4
  39. package/skills/paper-pipeline/SKILL.md.spec.ts +28 -3
  40. package/skills/paper-pipeline/revision-plan.schema.json +619 -0
  41. package/skills/paper-pipeline/scripts/README.md +6 -5
  42. package/skills/paper-pipeline/scripts/extract-ref-facts.js +4 -3
  43. package/skills/paper-pipeline/scripts/revision-plan-core.js +194 -0
  44. package/skills/paper-pipeline/scripts/revision-plan-core.ts +286 -0
  45. package/skills/paper-pipeline/scripts/revision-plan.js +462 -0
  46. package/skills/paper-pipeline/scripts/revision-plan.test.ts +386 -0
  47. package/skills/paper-pipeline/scripts/revision-plan.ts +21 -0
  48. package/skills/paper-status/SKILL.md +2 -1
  49. package/skills/paper-status/SKILL.md.spec.ts +1 -0
  50. package/skills/pc-panel-review/SKILL.md +5 -2
  51. package/skills/pc-panel-review/SKILL.md.spec.ts +4 -1
  52. package/skills/pc-panel-review/pc-panel-review.harness.ts +122 -0
  53. package/skills/pc-panel-review/scripts/prior-reviews.js +11 -7031
  54. package/skills/study-accepted-papers/SKILL.md +5 -2
  55. package/skills/study-accepted-papers/SKILL.md.spec.ts +4 -1
  56. package/skills/study-accepted-papers/scripts/corpus-licences.js +1 -1
  57. package/skills/tighten-paper/SKILL.md +3 -2
  58. package/skills/tighten-paper/SKILL.md.spec.ts +2 -1
  59. package/skills/verify-citations/scripts/bib-authors.js +4 -3
  60. package/skills/verify-citations/scripts/verify-cites.js +4 -3
  61. package/src/adapters/revision-plan/index.test.ts +207 -0
  62. package/src/adapters/revision-plan/index.ts +236 -0
  63. package/src/adapters/revision-plan/schema.test.ts +69 -0
  64. package/src/domain/paper-layout.test.ts +1 -0
  65. package/src/domain/paper-layout.ts +4 -0
  66. package/src/domain/revision-plan.ts +127 -0
  67. package/src/ports/revision-plan-codec.ts +7 -0
@@ -9,14 +9,14 @@ import {
9
9
  printRaw,
10
10
  replaceNode,
11
11
  visit
12
- } from "./chunk-EDHTB7KT.js";
12
+ } from "./chunk-MX3LJNFG.js";
13
13
  import {
14
14
  JOBNAME,
15
15
  decoded,
16
16
  describeChanges,
17
17
  paperRecord,
18
18
  spelledIn
19
- } from "./chunk-J5XYPERO.js";
19
+ } from "./chunk-FOYA3JCS.js";
20
20
  import {
21
21
  CONFIG_KEY,
22
22
  settingsOf
@@ -11,11 +11,13 @@ import {
11
11
  SOURCES_SCHEMA,
12
12
  collapse,
13
13
  documentClassLine,
14
- fieldOf,
15
14
  optionsInEffect,
16
15
  readWhole,
17
16
  venueClass
18
- } from "./chunk-J5XYPERO.js";
17
+ } from "./chunk-FOYA3JCS.js";
18
+ import {
19
+ fieldOf
20
+ } from "./chunk-ZWJMR4TF.js";
19
21
  import {
20
22
  err,
21
23
  ok
@@ -0,0 +1,34 @@
1
+ import { createRequire as __plCreateRequire } from "node:module";
2
+ import { fileURLToPath as __plFileURLToPath } from "node:url";
3
+ import { dirname as __plDirname } from "node:path";
4
+ const require = __plCreateRequire(import.meta.url);
5
+ const __filename = __plFileURLToPath(import.meta.url);
6
+ const __dirname = __plDirname(__filename);
7
+ import {
8
+ sortBy
9
+ } from "./chunk-C2G5EK7S.js";
10
+
11
+ // src/domain/edition.ts
12
+ var SERIES = "[a-z0-9]+(?:-[a-z0-9]+)*";
13
+ var EDITION_ID = new RegExp(`^(${SERIES})-(\\d{4})$`, "u");
14
+ var SERIES_ID = new RegExp(`^${SERIES}$`, "u");
15
+ function editionOf(id) {
16
+ const m = EDITION_ID.exec(id);
17
+ return m === null ? null : { series: String(m[1]), year: Number.parseInt(String(m[2]), 10) };
18
+ }
19
+ var endsInYear = (id) => /\d{4}$/u.test(id);
20
+ var editionsOf = (series, shipped) => editionsWithIds(series, shipped).map((e) => e.id);
21
+ var editionsWithIds = (series, shipped) => sortBy(
22
+ shipped.flatMap((id) => {
23
+ const e = editionOf(id);
24
+ return e !== null && e.series === series ? [{ ...e, id }] : [];
25
+ }),
26
+ (e) => e.year
27
+ );
28
+
29
+ export {
30
+ SERIES_ID,
31
+ editionOf,
32
+ endsInYear,
33
+ editionsOf
34
+ };
@@ -5,13 +5,11 @@ const require = __plCreateRequire(import.meta.url);
5
5
  const __filename = __plFileURLToPath(import.meta.url);
6
6
  const __dirname = __plDirname(__filename);
7
7
 
8
- // src/domain/edition.ts
9
- var SERIES = "[a-z0-9]+(?:-[a-z0-9]+)*";
10
- var EDITION_ID = new RegExp(`^(${SERIES})-(\\d{4})$`, "u");
11
- var SERIES_ID = new RegExp(`^${SERIES}$`, "u");
12
- var endsInYear = (id) => /\d{4}$/u.test(id);
8
+ // src/domain/record.ts
9
+ var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
10
+ var fieldOf = (v, key) => isRecord(v) ? v[key] : void 0;
13
11
 
14
12
  export {
15
- SERIES_ID,
16
- endsInYear
13
+ isRecord,
14
+ fieldOf
17
15
  };
@@ -0,0 +1,79 @@
1
+ import type { Current } from "#src/domain/cycle";
2
+ import type { VenueScope } from "#src/domain/venue-scope";
3
+ import { type PlanProblem, type RevisionPlan, type Row } from "#src/domain/revision-plan";
4
+ import type { Files } from "#src/ports/files";
5
+ import type { RevisionPlanCodec } from "#src/ports/revision-plan-codec";
6
+ import { type PaperPreset } from "#src/presets";
7
+ /** What the script reads through. */
8
+ export interface Deps {
9
+ readonly files: Files;
10
+ readonly codec: RevisionPlanCodec;
11
+ /** The package's presets directory (`presetsDir()`). */
12
+ readonly venuesDir: string;
13
+ }
14
+ /** The plan file, as far as the script can read it. */
15
+ export type PlanRead = {
16
+ readonly kind: "none";
17
+ } | {
18
+ readonly kind: "unreadable";
19
+ readonly problems: readonly PlanProblem[];
20
+ } | {
21
+ readonly kind: "read";
22
+ readonly plan: RevisionPlan;
23
+ };
24
+ /** Where the plan stands against the paper's cycles. */
25
+ export type CycleFit =
26
+ /** `paperlint.json` keeps no `cycles`: nothing to hold the plan's cycle against. */
27
+ {
28
+ readonly kind: "no-cycles";
29
+ } | {
30
+ readonly kind: "current";
31
+ } | {
32
+ readonly kind: "stale";
33
+ readonly current: string;
34
+ }
35
+ /** No open attempt: the paper is accepted, between venues, or has no cycle yet. */
36
+ | {
37
+ readonly kind: "no-open-cycle";
38
+ };
39
+ /** The plan's cycle held against the paper's current attempt. Pure. */
40
+ export declare const cycleFit: (plan: RevisionPlan, current: Current | null) => CycleFit;
41
+ /** The plan file of the paper in `dir`, read and parsed. */
42
+ export declare const readPlan: (dir: string, deps: Deps) => PlanRead;
43
+ /**
44
+ * The scope lines: the call's sentences verbatim, from the paper's venue preset. A `paperlint.json`
45
+ * that does not parse never gets here: `report` stops on it first, and the type says so.
46
+ */
47
+ export declare const scopeLines: (p: Exclude<PaperPreset, {
48
+ kind: "settings-problem";
49
+ }>) => readonly string[];
50
+ /** One venue scope as lines: its address and reading date, each sentence quoted, then its topics. */
51
+ export declare const scopeText: (s: VenueScope) => readonly string[];
52
+ /** One row: its id, state, what it asks, and what closes it. */
53
+ export declare const rowLine: (r: Row) => string;
54
+ /** Whether the list is closed, as far as the plan alone can say. */
55
+ export type Stop = {
56
+ readonly kind: "met";
57
+ } | {
58
+ readonly kind: "not-met";
59
+ readonly open: readonly string[];
60
+ readonly byRule: readonly string[];
61
+ };
62
+ /** The stop verdict over the rows: met when nothing is open; `by-rule` rows are lint's to decide. Pure. */
63
+ export declare const stopOf: (rows: readonly Row[]) => Stop;
64
+ /** The rows added after the plan was written: growth of the list, which its reader sees. Pure. */
65
+ export declare const addedAfter: (plan: RevisionPlan) => readonly string[];
66
+ /** What the command prints, and its exit code. */
67
+ export interface Report {
68
+ readonly code: number;
69
+ readonly lines: readonly string[];
70
+ }
71
+ /** The report for the paper in `dir`. */
72
+ export declare const report: (dir: string, deps: Deps) => Report;
73
+ /** Where the command writes. */
74
+ export interface Output {
75
+ readonly out: (s: string) => void;
76
+ readonly err: (s: string) => void;
77
+ }
78
+ /** Run the command on `argv`; the exit code. */
79
+ export declare function main(argv: readonly string[], deps: Deps, { out, err }: Output): number;
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -387,6 +387,62 @@ deadlines from its call, `"source": "call"`, and re-read the call yourself.
387
387
  deadlines in order, the evidence on disk — and gives the same answer tomorrow for the same files.
388
388
  How many days are left is a status view's or a calendar's question, not a gate's.
389
389
 
390
+ ## A paper's `revision-plan.json`: what is left before submitting
391
+
392
+ A paper may keep a `revision-plan.json` in its folder: for the current cycle, which accepted papers it
393
+ is held against (`bar`), whether new evidence is still being gathered (`measurement`), and the closed
394
+ list of what remains before it is submitted (`remaining`). "Done" is that list: a review finding outside
395
+ it is a proposal until the author adds a row
396
+ ([#502](https://github.com/zernie/paperlint/issues/502)).
397
+
398
+ ```json
399
+ {
400
+ "cycle": "langcode-2027",
401
+ "written": "2026-11-25",
402
+ "bar": {
403
+ "kind": "none",
404
+ "why": "a first edition: no accepted papers to read yet"
405
+ },
406
+ "measurement": { "kind": "open" },
407
+ "remaining": [
408
+ {
409
+ "id": "R1",
410
+ "what": "a Limitations section after the conclusion",
411
+ "from": { "kind": "venue" },
412
+ "added": "2026-11-25",
413
+ "state": "by-rule",
414
+ "rule": "tex/required-section"
415
+ },
416
+ {
417
+ "id": "R2",
418
+ "what": "a second model family",
419
+ "from": { "kind": "author" },
420
+ "added": "2026-11-26",
421
+ "state": "dropped",
422
+ "reason": "out of budget before the deadline; the threats section says so",
423
+ "kind": "accepted-cap"
424
+ }
425
+ ]
426
+ }
427
+ ```
428
+
429
+ | field | holds |
430
+ | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
431
+ | `cycle` | the cycle the plan is for, as `cycles[].id` in the paper's `paperlint.json` names it |
432
+ | `written` | the day the plan was written |
433
+ | `bar` | `corpus` (a venue corpus's `series` and `editions`), `proxy` (another venue's corpus `series`, and what it `stands_in_for`), or `none` with `why` |
434
+ | `measurement` | `open`, or `enough` with `since` and the paper's `evidence` file |
435
+ | `remaining` | the rows: each with `id`, `what`, `from` (`author`, `venue`, a review `finding` by `file` and id, or `prior-reviews` of a `cycle`), `added`, and a `state`: `todo`, `doing`, `done` with `evidence`, `dropped` with `reason` and `kind` (`not-doing` or `accepted-cap`), or `by-rule` with `rule` |
436
+
437
+ Every object is strict, so a misspelt key is an error, not a field nobody reads. A path names a file
438
+ inside the paper folder: never absolute and never through `..`. The fields, their values and which
439
+ are required are the JSON Schema
440
+ [`skills/paper-pipeline/revision-plan.schema.json`](../skills/paper-pipeline/revision-plan.schema.json),
441
+ generated from the parser (`src/adapters/revision-plan/index.ts`; `npm run schema:revision-plan`
442
+ rewrites it, and a test fails when it is stale): point an editor at it for completion. A schema
443
+ cannot say that each row's id is unique, that a path stays inside the paper folder, that the cycle
444
+ is the current one, or that a named file exists. No rule reads the file yet.
445
+
390
446
  ## Records in frontmatter, checked by shipped JSON Schemas
391
447
 
392
448
  Two kinds of file under a paper keep a record in their YAML frontmatter, and paperlint validates
package/docs/layout.md CHANGED
@@ -61,6 +61,7 @@ creates one.
61
61
  ├── CLAIMS.md ← the claims ledger
62
62
  ├── NOTES.md ← each number in the paper → the data it comes from
63
63
  ├── SUBMIT-CHECKLIST.md ← the venue's format and submission mechanics
64
+ ├── revision-plan.json ← the current cycle's bar and the closed list of what remains
64
65
  ├── .gitignore ← keeps the build's byproducts out of git
65
66
  ├── paper.pdf ← the built PDF
66
67
  ├── *.tex *.bib *.cls *.sty *.bst ← what TeX and bibtex look up beside paper.tex
@@ -25,6 +25,7 @@ it: [the map](../../layout.md).
25
25
  ├── CLAIMS.md ← the claims ledger
26
26
  ├── NOTES.md ← each number in the paper → the data it comes from
27
27
  ├── SUBMIT-CHECKLIST.md ← the venue's format and submission mechanics
28
+ ├── revision-plan.json ← the current cycle's bar and the closed list of what remains
28
29
  ├── .gitignore ← keeps the build's byproducts out of git
29
30
  ├── paper.pdf ← the built PDF
30
31
  ├── *.tex *.bib *.cls *.sty *.bst ← what TeX and bibtex look up beside paper.tex
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paperlint",
3
- "version": "20.7.0",
3
+ "version": "20.9.0",
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,6 +20,7 @@
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
+ "schema:revision-plan": "node --conditions=paperlint-source scripts/revision-plan-schema.ts skills/paper-pipeline/revision-plan.schema.json",
23
24
  "schema:venue-corpus": "node --conditions=paperlint-source scripts/venue-corpus-schema.ts skills/study-accepted-papers/papers.schema.json",
24
25
  "sync:skills": "node scripts/sync-skills.ts",
25
26
  "fmt": "prettier --write .",
@@ -47,6 +47,7 @@ export const SKILL_ENTRIES: readonly string[] = [
47
47
  "skills/cold-read-diff/scripts/cold-read.ts",
48
48
  "skills/label-agent-runs/scripts/labels.ts",
49
49
  "skills/paper-pipeline/scripts/extract-ref-facts.mjs",
50
+ "skills/paper-pipeline/scripts/revision-plan.ts",
50
51
  "skills/pc-panel-review/scripts/prior-reviews.ts",
51
52
  "skills/run-agent-grid/scripts/grid-guard.ts",
52
53
  "skills/study-accepted-papers/scripts/corpus-licences.ts",
@@ -0,0 +1,39 @@
1
+ /**
2
+ * `npm run schema:venue-corpus`: the script writes the schema the parser generates, where it is told.
3
+ */
4
+ import { readFileSync } from "node:fs";
5
+ import { dirname, join } from "node:path";
6
+ import { fileURLToPath } from "node:url";
7
+ import { describe, expect, it } from "vitest";
8
+ import { revisionPlanSchemaText } from "../src/adapters/revision-plan/index.ts";
9
+ import { runNode, useTempDir } from "../test/support.ts";
10
+
11
+ const SCRIPT = join(
12
+ dirname(fileURLToPath(import.meta.url)),
13
+ "revision-plan-schema.ts",
14
+ );
15
+
16
+ describe("revision-plan-schema.ts", () => {
17
+ const dir = useTempDir();
18
+
19
+ it("🔴 writes the generated schema to the file it is given", () => {
20
+ const out = join(dir, "revision-plan.schema.json");
21
+ expect(
22
+ runNode(SCRIPT, [out], { nodeArgs: ["--conditions=paperlint-source"] }),
23
+ ).toEqual({ status: 0, stdout: "", stderr: "" });
24
+ expect(readFileSync(out, "utf8")).toBe(revisionPlanSchemaText());
25
+ });
26
+
27
+ it("no output file, or more than one: the usage, exit 2, nothing written", () => {
28
+ const usage = {
29
+ status: 2,
30
+ stdout: "",
31
+ stderr: "usage: node revision-plan-schema.ts <output-file>\n",
32
+ };
33
+ const opts = { nodeArgs: ["--conditions=paperlint-source"] };
34
+ expect(runNode(SCRIPT, [], opts)).toEqual(usage);
35
+ expect(runNode(SCRIPT, [join(dir, "a"), join(dir, "b")], opts)).toEqual(
36
+ usage,
37
+ );
38
+ });
39
+ });
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Regenerates the JSON Schema of a paper's revision-plan.json from the plan's parser
4
+ * (`src/adapters/revision-plan`) into the file it is given. `npm run schema:revision-plan` writes the
5
+ * shipped one (`SCHEMA_FILE`); a test fails until the committed file is the one this writes.
6
+ *
7
+ * Usage: node revision-plan-schema.ts <output-file>
8
+ */
9
+ import { writeFileSync } from "node:fs";
10
+ import { resolve } from "node:path";
11
+ import { revisionPlanSchemaText } from "#src/adapters/revision-plan/index";
12
+
13
+ const [out, ...rest] = process.argv.slice(2);
14
+ if (out === undefined || rest.length > 0) {
15
+ process.stderr.write("usage: node revision-plan-schema.ts <output-file>\n");
16
+ process.exitCode = 2;
17
+ } else writeFileSync(resolve(out), revisionPlanSchemaText());
@@ -8,12 +8,13 @@ const __dirname = __plDirname(__filename);
8
8
  import {
9
9
  latexReader,
10
10
  sourcesCodec
11
- } from "../../../dist/skill-chunks/chunk-EDHTB7KT.js";
11
+ } from "../../../dist/skill-chunks/chunk-MX3LJNFG.js";
12
12
  import {
13
13
  decoded,
14
14
  readPaper,
15
15
  runText
16
- } from "../../../dist/skill-chunks/chunk-J5XYPERO.js";
16
+ } from "../../../dist/skill-chunks/chunk-FOYA3JCS.js";
17
+ import "../../../dist/skill-chunks/chunk-ZWJMR4TF.js";
17
18
  import {
18
19
  callerPath,
19
20
  nodeFiles
@@ -10,11 +10,12 @@ import {
10
10
  parseLatex,
11
11
  sourcesCodec,
12
12
  visit
13
- } from "../../../dist/skill-chunks/chunk-EDHTB7KT.js";
13
+ } from "../../../dist/skill-chunks/chunk-MX3LJNFG.js";
14
14
  import {
15
15
  paperRecord,
16
16
  readPaper
17
- } from "../../../dist/skill-chunks/chunk-J5XYPERO.js";
17
+ } from "../../../dist/skill-chunks/chunk-FOYA3JCS.js";
18
+ import "../../../dist/skill-chunks/chunk-ZWJMR4TF.js";
18
19
  import {
19
20
  messageOf,
20
21
  nodeFiles
@@ -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:784a0e1bfaa6e736 compiled from skills/find-venue/SKILL.md.spec.ts -->
7
+ <!-- vigiles:sha256:3a2832a42e4f4dbb 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
 
@@ -61,7 +61,8 @@ rank = archival-weight × topic-fit × accept-probability × deadline-feasibilit
61
61
  type fit, **indexed? (Y/N + where)**, double-blind, remote, selectivity, computed rank.
62
62
  2. **Keep/switch recommendation** — the top-ranked venue with the one-line reason, and (if the paper
63
63
  already has a target) an explicit **keep** or **switch** verdict against it. Note the intended
64
- `extend-paper` upgrade target for later.
64
+ `extend-paper` upgrade target for later. After a **switch**, the paper's revision plan is for the
65
+ old cycle: say that it must be rewritten for the new one (`paper-pipeline`, "The revision plan").
65
66
 
66
67
  ## Rules
67
68
  - Fetch every CFP fact from the real page; never invent a deadline, page limit, or indexing status.
@@ -70,7 +70,8 @@ rank = archival-weight × topic-fit × accept-probability × deadline-feasibilit
70
70
  type fit, **indexed? (Y/N + where)**, double-blind, remote, selectivity, computed rank.
71
71
  2. **Keep/switch recommendation** — the top-ranked venue with the one-line reason, and (if the paper
72
72
  already has a target) an explicit **keep** or **switch** verdict against it. Note the intended
73
- \`extend-paper\` upgrade target for later.
73
+ \`extend-paper\` upgrade target for later. After a **switch**, the paper's revision plan is for the
74
+ old cycle: say that it must be rewritten for the new one (\`paper-pipeline\`, "The revision plan").
74
75
 
75
76
  ## Rules
76
77
  - Fetch every CFP fact from the real page; never invent a deadline, page limit, or indexing status.
@@ -4,7 +4,7 @@ description: "Use when asking \"is this paper actually ready to submit?\" / \"wh
4
4
  allowed-tools: [Read, Write, Grep, Glob, Bash, Skill]
5
5
  ---
6
6
 
7
- <!-- vigiles:sha256:45642cfc040166a9 compiled from skills/harden-paper/SKILL.md.spec.ts -->
7
+ <!-- vigiles:sha256:7fd6cca5d1633e4b compiled from skills/harden-paper/SKILL.md.spec.ts -->
8
8
 
9
9
  # harden-paper — the submit checklist
10
10
 
@@ -27,6 +27,10 @@ the author decides what to apply. "Nothing fails" is a valid result.
27
27
  again, and fix nothing. No closed review fails this item. Count its blockers (the panel's consensus
28
28
  must-fixes and the cold read's `CANNOT PARSE` rows) by `status` in the reports' frontmatter:
29
29
  `fixed`, waived (`wontfix` with a `waived by the author` note), `open`. Any `open` one fails.
30
+ With a revision plan, the blockers are its rows instead: `node ${CLAUDE_SKILL_DIR}/../paper-pipeline/scripts/revision-plan.js <paper-dir>`, read as
31
+ `paper-pipeline` says ("The revision plan"). A row its `stop:` line names `open` fails this item; a row it
32
+ leaves to lint passes when item 1's run reports nothing for the rule on the row; `stop: unknown` or
33
+ `stop: unreadable` fails.
30
34
  3. **Citations and the nearest neighbour.** `verify-citations` ran on the current bibliography
31
35
  (`paper/refs-checked` warns when it did not). `map-prior-work`'s record exists
32
36
  (`siblings/README.md` and its sweep file) and names the closest match with a disposition:
@@ -38,6 +38,10 @@ the author decides what to apply. "Nothing fails" is a valid result.
38
38
  again, and fix nothing. No closed review fails this item. Count its blockers (the panel's consensus
39
39
  must-fixes and the cold read's \`CANNOT PARSE\` rows) by \`status\` in the reports' frontmatter:
40
40
  \`fixed\`, waived (\`wontfix\` with a \`waived by the author\` note), \`open\`. Any \`open\` one fails.
41
+ With a revision plan, the blockers are its rows instead: \`node \${CLAUDE_SKILL_DIR}/../paper-pipeline/scripts/revision-plan.js <paper-dir>\`, read as
42
+ \`paper-pipeline\` says ("The revision plan"). A row its \`stop:\` line names \`open\` fails this item; a row it
43
+ leaves to lint passes when item 1's run reports nothing for the rule on the row; \`stop: unknown\` or
44
+ \`stop: unreadable\` fails.
41
45
  3. **Citations and the nearest neighbour.** \`verify-citations\` ran on the current bibliography
42
46
  (\`paper/refs-checked\` warns when it did not). \`map-prior-work\`'s record exists
43
47
  (\`siblings/README.md\` and its sweep file) and names the closest match with a disposition:
@@ -4,7 +4,7 @@ description: The orchestrator for writing a research paper end-to-end, from idea
4
4
  allowed-tools: [Read, Write, Edit, Grep, Glob, Bash, WebSearch, WebFetch, Agent, Skill]
5
5
  ---
6
6
 
7
- <!-- vigiles:sha256:66354b5d44875bdc compiled from skills/paper-pipeline/SKILL.md.spec.ts -->
7
+ <!-- vigiles:sha256:56f4a23d0d4d612d compiled from skills/paper-pipeline/SKILL.md.spec.ts -->
8
8
 
9
9
  # paper-pipeline — the conductor for the whole organism
10
10
 
@@ -154,6 +154,30 @@ how a day disappears and the same paper ships.
154
154
  decides. Order is
155
155
  **final review → harden → submit**.
156
156
 
157
+ ## The revision plan — what is left, read before any review
158
+
159
+ `<paper-dir>/revision-plan.json` is the author's closed list of what is left this cycle (its format:
160
+ `docs/configuration.md` in the package). Every skill that reviews, cuts or judges readiness runs, first:
161
+
162
+ ```bash
163
+ node ${CLAUDE_SKILL_DIR}/../paper-pipeline/scripts/revision-plan.js <paper-dir>
164
+ ```
165
+
166
+ The one place its lines are read; every other skill points here.
167
+
168
+ - `plan: none written` — work as the rest of this skill says. At the start of a cycle, offer to write
169
+ one; it is the author's list, written on his yes.
170
+ - `… rewrite the plan for it` or `stop: unknown` — the plan is for an earlier cycle: say so, and judge
171
+ nothing against it until the author rewrites it. `plan: unreadable` — show its lines; he fixes the file.
172
+ - `scope:` — the venue's call, verbatim, from its preset: what every reviewer seat is given as the
173
+ venue's statement of what it is for.
174
+ - `measurement: enough` — no new study, experiment or data: only the text changes.
175
+ - `rows added after the plan was written: N` — say N to the author when it is above 0.
176
+ - The rows and `stop:` — what is left. `stop: met` closes the list; `paperlint lint decides R…` rows
177
+ close when `npx paperlint lint` reports nothing for the rule named on the row.
178
+ - **A finding that no row covers is a proposal:** record it `open` in its review's frontmatter, and it
179
+ stops nothing until the author adds a row. Whether a finding is about a row is a reader's judgement.
180
+
157
181
  ## The final review — once, in this order, then closed
158
182
 
159
183
  The one place this order is written; every other skill points here.
@@ -170,9 +194,10 @@ The one place this order is written; every other skill points here.
170
194
  receives only those still open; he decides the panel's after step 3. The write happens once, after
171
195
  step 3: every accepted fix in one pass, a sentence through `rewrite-unclear`, a cut on his yes. A
172
196
  decided finding is not raised again in this review.
173
- - **Blockers** are a closed list, frozen when the review closes: the panel's consensus must-fixes and
174
- the cold read's `CANNOT PARSE` rows. Each stops submission until `fixed` or `wontfix` with
175
- `note: "waived by the author: <reason>"`.
197
+ - **Blockers** are a closed list, frozen when the review closes. With a revision plan, they are its
198
+ rows: a must-fix or a `CANNOT PARSE` row no row covers is a proposal ("The revision plan"). Without
199
+ one, they are the panel's consensus must-fixes and the cold read's `CANNOT PARSE` rows. Each stops
200
+ submission until `fixed` or `wontfix` with `note: "waived by the author: <reason>"`.
176
201
  - **At most one confirmation, and only when the author asks for it:** he names the pass, and it runs once
177
202
  on what changed. No pass schedules another, and none reruns because a score is low.
178
203
  - **Then the review is closed,** whatever the scores; a blocker still `open` stays open into the checklist.
@@ -193,6 +193,30 @@ how a day disappears and the same paper ships.
193
193
  decides. Order is
194
194
  **final review → harden → submit**.
195
195
 
196
+ ## The revision plan — what is left, read before any review
197
+
198
+ \`<paper-dir>/revision-plan.json\` is the author's closed list of what is left this cycle (its format:
199
+ \`docs/configuration.md\` in the package). Every skill that reviews, cuts or judges readiness runs, first:
200
+
201
+ \`\`\`bash
202
+ node \${CLAUDE_SKILL_DIR}/../paper-pipeline/scripts/revision-plan.js <paper-dir>
203
+ \`\`\`
204
+
205
+ The one place its lines are read; every other skill points here.
206
+
207
+ - \`plan: none written\` — work as the rest of this skill says. At the start of a cycle, offer to write
208
+ one; it is the author's list, written on his yes.
209
+ - \`… rewrite the plan for it\` or \`stop: unknown\` — the plan is for an earlier cycle: say so, and judge
210
+ nothing against it until the author rewrites it. \`plan: unreadable\` — show its lines; he fixes the file.
211
+ - \`scope:\` — the venue's call, verbatim, from its preset: what every reviewer seat is given as the
212
+ venue's statement of what it is for.
213
+ - \`measurement: enough\` — no new study, experiment or data: only the text changes.
214
+ - \`rows added after the plan was written: N\` — say N to the author when it is above 0.
215
+ - The rows and \`stop:\` — what is left. \`stop: met\` closes the list; \`paperlint lint decides R…\` rows
216
+ close when \`npx paperlint lint\` reports nothing for the rule named on the row.
217
+ - **A finding that no row covers is a proposal:** record it \`open\` in its review's frontmatter, and it
218
+ stops nothing until the author adds a row. Whether a finding is about a row is a reader's judgement.
219
+
196
220
  ## The final review — once, in this order, then closed
197
221
 
198
222
  The one place this order is written; every other skill points here.
@@ -209,9 +233,10 @@ The one place this order is written; every other skill points here.
209
233
  receives only those still open; he decides the panel's after step 3. The write happens once, after
210
234
  step 3: every accepted fix in one pass, a sentence through \`rewrite-unclear\`, a cut on his yes. A
211
235
  decided finding is not raised again in this review.
212
- - **Blockers** are a closed list, frozen when the review closes: the panel's consensus must-fixes and
213
- the cold read's \`CANNOT PARSE\` rows. Each stops submission until \`fixed\` or \`wontfix\` with
214
- \`note: "waived by the author: <reason>"\`.
236
+ - **Blockers** are a closed list, frozen when the review closes. With a revision plan, they are its
237
+ rows: a must-fix or a \`CANNOT PARSE\` row no row covers is a proposal ("The revision plan"). Without
238
+ one, they are the panel's consensus must-fixes and the cold read's \`CANNOT PARSE\` rows. Each stops
239
+ submission until \`fixed\` or \`wontfix\` with \`note: "waived by the author: <reason>"\`.
215
240
  - **At most one confirmation, and only when the author asks for it:** he names the pass, and it runs once
216
241
  on what changed. No pass schedules another, and none reruns because a score is low.
217
242
  - **Then the review is closed,** whatever the scores; a blocker still \`open\` stays open into the checklist.