paperlint 20.4.0 → 20.6.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 (100) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/adapters/venue-corpus/index.d.ts.map +1 -1
  3. package/dist/adapters/venue-corpus/index.js +9 -2
  4. package/dist/adapters/venue-corpus/index.js.map +1 -1
  5. package/dist/cli.d.ts.map +1 -1
  6. package/dist/cli.js +61 -26
  7. package/dist/cli.js.map +1 -1
  8. package/dist/corpus-json-rules.d.ts +6 -0
  9. package/dist/corpus-json-rules.d.ts.map +1 -0
  10. package/dist/corpus-json-rules.js +15 -0
  11. package/dist/corpus-json-rules.js.map +1 -0
  12. package/dist/corpus-layout-rule.d.ts +11 -0
  13. package/dist/corpus-layout-rule.d.ts.map +1 -0
  14. package/dist/corpus-layout-rule.js +92 -0
  15. package/dist/corpus-layout-rule.js.map +1 -0
  16. package/dist/corpus-licence-rule.d.ts +27 -0
  17. package/dist/corpus-licence-rule.d.ts.map +1 -0
  18. package/dist/corpus-licence-rule.js +78 -0
  19. package/dist/corpus-licence-rule.js.map +1 -0
  20. package/dist/corpus-record-rule.d.ts +2 -0
  21. package/dist/corpus-record-rule.d.ts.map +1 -1
  22. package/dist/corpus-record-rule.js +6 -3
  23. package/dist/corpus-record-rule.js.map +1 -1
  24. package/dist/domain/corpus-layout.d.ts +30 -0
  25. package/dist/domain/corpus-layout.d.ts.map +1 -0
  26. package/dist/domain/corpus-layout.js +101 -0
  27. package/dist/domain/corpus-layout.js.map +1 -0
  28. package/dist/domain/corpus-licence.d.ts +23 -0
  29. package/dist/domain/corpus-licence.d.ts.map +1 -0
  30. package/dist/domain/corpus-licence.js +50 -0
  31. package/dist/domain/corpus-licence.js.map +1 -0
  32. package/dist/domain/corpus-record.d.ts +8 -0
  33. package/dist/domain/corpus-record.d.ts.map +1 -1
  34. package/dist/domain/corpus-record.js +11 -9
  35. package/dist/domain/corpus-record.js.map +1 -1
  36. package/dist/domain/edition.d.ts +3 -1
  37. package/dist/domain/edition.d.ts.map +1 -1
  38. package/dist/domain/edition.js +6 -2
  39. package/dist/domain/edition.js.map +1 -1
  40. package/dist/domain/licence.d.ts +1 -1
  41. package/dist/domain/licence.d.ts.map +1 -1
  42. package/dist/domain/licence.js +2 -2
  43. package/dist/domain/licence.js.map +1 -1
  44. package/dist/domain/paper-layout.d.ts +3 -2
  45. package/dist/domain/paper-layout.d.ts.map +1 -1
  46. package/dist/domain/paper-layout.js +3 -2
  47. package/dist/domain/paper-layout.js.map +1 -1
  48. package/dist/paper-files.d.ts +11 -4
  49. package/dist/paper-files.d.ts.map +1 -1
  50. package/dist/paper-files.js +16 -2
  51. package/dist/paper-files.js.map +1 -1
  52. package/dist/skill-chunks/chunk-QPWFSYJG.js +17 -0
  53. package/dist/skill-chunks/{chunk-6YEM4VDI.js → chunk-WYQTXKNM.js} +1 -1
  54. package/docs/design/venue-corpus.md +16 -16
  55. package/docs/layout.md +2 -2
  56. package/docs/optional-rules.md +11 -10
  57. package/docs/rules/corpus/allowed-files-only.md +99 -0
  58. package/docs/rules/corpus/licence.md +125 -0
  59. package/docs/rules/corpus/record.md +10 -6
  60. package/docs/rules.md +3 -1
  61. package/docs/venues.md +14 -11
  62. package/package.json +1 -1
  63. package/skills/argument-arc/scripts/headings.js +2 -2
  64. package/skills/cold-read-diff/scripts/cold-read.js +5 -5
  65. package/skills/paper-pipeline/scripts/extract-ref-facts.js +3 -3
  66. package/skills/pc-panel-review/scripts/prior-reviews.js +2 -1
  67. package/skills/study-accepted-papers/SKILL.md +4 -3
  68. package/skills/study-accepted-papers/SKILL.md.spec.ts +3 -2
  69. package/skills/study-accepted-papers/papers.schema.json +2 -2
  70. package/skills/study-accepted-papers/scripts/corpus-licences.js +15 -3
  71. package/skills/study-accepted-papers/scripts/corpus-licences.test.ts +1 -1
  72. package/skills/verify-citations/scripts/bib-authors.js +3 -3
  73. package/skills/verify-citations/scripts/verify-cites.js +3 -3
  74. package/src/adapters/venue-corpus/index.test.ts +25 -0
  75. package/src/adapters/venue-corpus/index.ts +16 -2
  76. package/src/cli-e2e.test.mjs +2 -2
  77. package/src/cli.ts +75 -26
  78. package/src/corpus-json-rules.ts +22 -0
  79. package/src/corpus-layout-rule.test.ts +177 -0
  80. package/src/corpus-layout-rule.ts +145 -0
  81. package/src/corpus-licence-rule.test.ts +217 -0
  82. package/src/corpus-licence-rule.ts +94 -0
  83. package/src/corpus-record-rule.test.ts +27 -4
  84. package/src/corpus-record-rule.ts +8 -3
  85. package/src/domain/corpus-layout.test.ts +118 -0
  86. package/src/domain/corpus-layout.ts +159 -0
  87. package/src/domain/corpus-licence.test.ts +128 -0
  88. package/src/domain/corpus-licence.ts +99 -0
  89. package/src/domain/corpus-record.test.ts +7 -1
  90. package/src/domain/corpus-record.ts +26 -9
  91. package/src/domain/edition.ts +8 -2
  92. package/src/domain/licence.test.ts +1 -1
  93. package/src/domain/licence.ts +2 -2
  94. package/src/domain/paper-layout.ts +3 -2
  95. package/src/layout-docs.test.ts +3 -1
  96. package/src/paper-files.ts +19 -3
  97. package/src/rule-cases.test.ts +6 -70
  98. package/src/rule-id-shape.test.ts +42 -0
  99. package/src/unowned-file.test.ts +1 -1
  100. package/dist/skill-chunks/{chunk-CXAGKT44.js → chunk-EDHTB7KT.js} +4 -4
@@ -0,0 +1,99 @@
1
+ # corpus/allowed-files-only
2
+
3
+ **Level:** error, on by default · **Reads:** the listing of each venue corpus's top · **Reported
4
+ on:** the corpus's `papers.json`, first line, once per stray entry; the project's root
5
+ `paperlint.json`, first line, once per corpus that stores copies without `papers.json`
6
+
7
+ ## What it catches
8
+
9
+ A venue corpus, `<papers-root>/venues/<venue>/` ([`venues.md`](../../venues.md#the-corpus-of-accepted-papers)),
10
+ holds seven names and nothing else:
11
+
12
+ <!-- layout:begin — drawn from src/domain/corpus-layout.ts (CORPUS_LAYOUT_TREE); src/layout-docs.test.ts fails when this block differs -->
13
+
14
+ ```text
15
+ <papers-root>/venues/<venue>/
16
+ ├── papers.json ← the record: every paper, each copy of it and its licence
17
+ ├── MANIFEST.md ← optional: caveats only, the prose no field holds
18
+ ├── measurements.json ← the codes of L0 and L1, one row per paper, by key
19
+ ├── .gitignore ← optional: keeps the stored copies out of git
20
+ ├── pdf/ ← pdf/<key>.pdf, when a copy's licence permits it
21
+ ├── text/ ← text/<key>.txt and text/<key>.<variant>.txt
22
+ ├── deep-reads/ ← deep-reads/<key>.md, one per paper read in full
23
+ └── sources/ ← the listing and call pages as they were read
24
+ ```
25
+
26
+ <!-- layout:end -->
27
+
28
+ The rule reports:
29
+
30
+ - an entry at the top of a corpus that is not one of those names, file or folder, any extension
31
+ (`stray`), on the corpus's `papers.json`. A name of the list with the wrong kind (a folder named
32
+ `papers.json`, a file named `pdf`) is a stray too;
33
+ - a corpus that keeps `pdf/` or `text/` and has no `papers.json` (`unrecorded`). It has no file of
34
+ its own, so the finding is on the root `paperlint.json`, which `paperlint lint` lints only when a
35
+ papers root holds `venues/`: a project without a corpus lints exactly what it linted before;
36
+ - a file loose at the top of `venues/` (`loose`), on the root `paperlint.json` too. `venues/` holds one
37
+ folder per corpus, and `README.md`, `CLAUDE.md` or `AGENTS.md`; a file about one venue goes into
38
+ that corpus, and one that serves several (a script) goes out of `venues/`. A folder there is a
39
+ corpus, judged by the two findings above.
40
+
41
+ What the operating system and interpreters leave (`.DS_Store`, `Thumbs.db`, `__pycache__/`,
42
+ `node_modules/`: the names `paper/allowed-files-only` and `repro/allowed-files-only` never report)
43
+ is never reported here either.
44
+
45
+ ## Why
46
+
47
+ A real consumer kept six corpora with five names for the paper list
48
+ ([the design note](../../design/venue-corpus.md#measured-on-a-real-consumer-2026-11-24)). A reader of
49
+ a corpus, a person or `study-accepted-papers`, finds the record by its name; a list under another
50
+ name, a page saved beside it, or notes on one paper at the top are files nobody knows the meaning
51
+ of. A corpus that stores copies with no record is one where nobody can say what each file is a copy
52
+ of, or whether its licence lets the project keep it, and [`corpus/record`](record.md) has no file to
53
+ read. It is on by default because this holds for every corpus whatever the venue; it is silent in a
54
+ project with no `venues/`.
55
+
56
+ ## Examples
57
+
58
+ Failing: a note at the top of a corpus, and PDFs kept with no record.
59
+
60
+ ```text
61
+ papers/venues/agent/papers.json
62
+ 1:1 error `venues/agent/notes.md` is not one of the names a venue corpus holds. Where it goes:
63
+ MANIFEST.md when it is a caveat about the whole corpus; deep-reads/<key>.md when it is
64
+ about one paper. corpus/allowed-files-only
65
+
66
+ paperlint.json
67
+ 1:1 error `papers/venues/other/` stores copies in pdf/ or text/ and has no papers.json, so nothing
68
+ records which paper each file is a copy of, or under which licence it is kept.
69
+ corpus/allowed-files-only
70
+ ```
71
+
72
+ Passing: the seven names, the optional ones left out or not.
73
+
74
+ ## Options / preset fields
75
+
76
+ No rule options. A project turns the rule off in its root `paperlint.json`:
77
+
78
+ ```json
79
+ { "rules": { "corpus/allowed-files-only": "off" } }
80
+ ```
81
+
82
+ ## What it does not check
83
+
84
+ - Names inside `pdf/` and `text/` ([`corpus/record`](record.md)'s), and what is inside
85
+ `deep-reads/` and `sources/`.
86
+ - Entries directly in `venues/` that are not a corpus folder.
87
+ - The strays of a corpus with no `papers.json`: they are reported once the record is written.
88
+ - A corpus with no `papers.json` when the project has no root `paperlint.json`, or when
89
+ `paperlint lint` is given paths: only a run of the whole project lints the root file.
90
+
91
+ ## How to fix
92
+
93
+ Each finding names its cure: a caveat into `MANIFEST.md` and notes on one paper into
94
+ `deep-reads/<key>.md`; a PDF or a text into `pdf/<key>.pdf` or `text/<key>.txt`, claimed by its copy
95
+ in `papers.json`; a list's rows into `papers.json` or `measurements.json`, and the list as it was
96
+ downloaded into `sources/`; a saved page into `sources/`; a script out of the corpus, into the
97
+ paper's `repro/tools/`, with the command that runs it in `papers.json`'s `rebuild`. A corpus with no
98
+ `papers.json`: write it (`study-accepted-papers` does; the fields are in its `papers.schema.json`),
99
+ or remove `pdf/` and `text/` and keep the papers' ids.
@@ -0,0 +1,125 @@
1
+ # corpus/licence
2
+
3
+ **Level:** off by default, in no rule set; documented way on is `"warn"` · **Reads:** a venue
4
+ corpus's `papers.json` and the licence table (`src/domain/licence.ts`) · **Reported on:**
5
+ `papers.json`, at the line of the `stored` of the copy each finding is about
6
+
7
+ ## What it catches
8
+
9
+ A venue corpus, `<papers-root>/venues/<venue>/` ([`venues.md`](../../venues.md#the-corpus-of-accepted-papers)),
10
+ keeps copies of other people's papers, and each stored file is a copy of one version, judged by
11
+ that copy's licence. For every copy in `papers.json` and every kind in its `stored` (`"pdf"`,
12
+ `"text"`) the rule asks the licence table whether that licence permits keeping that kind, and
13
+ reports one finding per copy for each reason it refuses, naming every kind that reason stands
14
+ against (a copy storing both kinds under a publisher's terms is one finding, not two), in four kinds:
15
+
16
+ - no licence was read for the copy (`NOASSERTION`, `not-read`): the message asks for the licence
17
+ and where it was read (`licence.id`, `read_from`, `read_on`), or for the file to go and the
18
+ paper's ids to stay;
19
+ - an id the table does not list (`unlisted`): the message names it. The table lists what it has
20
+ read the terms of; an id it does not list permits nothing, so a typo is as loud as a licence
21
+ nobody has looked up;
22
+ - a licence that does not permit that kind (`forbidden`): the message quotes the table's reason
23
+ (the publisher grants no right to third parties; arXiv's non-exclusive licence grants only arXiv
24
+ the right to distribute; ND and an extracted text);
25
+ - a non-commercial licence in a project that has not declared itself non-commercial
26
+ (`non-commercial-only`): the message names the option that answers it.
27
+
28
+ ## Why
29
+
30
+ A real consumer kept 217 stored copies, 179 of them with no licence recorded
31
+ ([the design note](../../design/venue-corpus.md#measured-on-a-real-consumer-2026-11-24)).
32
+ [`corpus/record`](record.md) holds that every stored file is a recorded fact; whether the recorded
33
+ licence lets it be kept is this rule's.
34
+
35
+ It is **off, and in no set**, because it is the one corpus rule whose answer depends on who can
36
+ read the files. The licence question arises when others can read the corpus, and the rule cannot
37
+ tell whether they can; a finding a careful author could dispute does not belong in the default
38
+ set. A project whose corpus others can read turns it on; a private one leaves it off, and
39
+ gets no finding, no notice and no prompt. Nothing opt-in ships at `error`: turn it on with
40
+ `"warn"`.
41
+
42
+ ## Examples
43
+
44
+ Failing: a copy stored with no licence read.
45
+
46
+ ```text
47
+ papers/venues/agent/papers.json
48
+ 22:11 warning a copy of `2026-01` stores `pdf` (`pdf/<key>.pdf`), and no licence was read for that copy
49
+ (`NOASSERTION`). What to do: record the licence and where it was read (`licence.id`,
50
+ `read_from`, `read_on`), or remove the file and `"pdf"` from that copy's `stored`, and
51
+ keep the paper's ids corpus/licence
52
+ ```
53
+
54
+ Failing: a licence that grants nothing to a third party.
55
+
56
+ ```text
57
+ papers/venues/agent/papers.json
58
+ 22:11 warning a copy of `2026-02` stores `text` (`text/<key>.txt`) under `LicenseRef-publisher`, which
59
+ does not permit it: the publisher grants no right to third parties. What to do: remove
60
+ the file and `"text"` from that copy's `stored`, and keep the paper's ids corpus/licence
61
+ ```
62
+
63
+ Passing: the same copy under a licence the table permits, or a copy that stores nothing and keeps
64
+ only its ids.
65
+
66
+ ```json
67
+ {
68
+ "version": "published",
69
+ "url": "https://doi.org/10.1145/3786167.3788430",
70
+ "licence": {
71
+ "id": "CC-BY-4.0",
72
+ "read_from": "https://api.crossref.org/works/10.1145/3786167.3788430",
73
+ "read_on": "2026-11-03"
74
+ },
75
+ "fetched_from": "https://dl.acm.org/doi/pdf/10.1145/3786167.3788430",
76
+ "stored": ["pdf"]
77
+ }
78
+ ```
79
+
80
+ ## Options / preset fields
81
+
82
+ Turn it on for every corpus in the root `paperlint.json`:
83
+
84
+ ```json
85
+ { "rules": { "corpus/licence": "warn" } }
86
+ ```
87
+
88
+ One option, `nonCommercial` (boolean, default `false`; any other key is an error). A project that
89
+ is non-commercial says so on the rule, as ESLint rules take their options:
90
+
91
+ ```json
92
+ { "rules": { "corpus/licence": ["warn", { "nonCommercial": true }] } }
93
+ ```
94
+
95
+ With it, the two non-commercial licences (`CC-BY-NC-4.0`, `CC-BY-NC-SA-4.0`) permit storing both
96
+ kinds, and `CC-BY-NC-ND-4.0` its PDF. paperlint does not assume it. The option declares how the corpus is
97
+ used, not who uses it: Creative Commons defines non-commercial as "not primarily intended for or
98
+ directed towards commercial advantage or monetary compensation", and its FAQ says the definition
99
+ "does not turn on the type of user". A paper's own `paperlint.json` does not reach a
100
+ corpus.
101
+
102
+ ## What it does not check
103
+
104
+ - A `papers.json` that does not parse: [`corpus/record`](record.md) reports it, and this rule
105
+ says nothing about that file.
106
+ - That a stored file exists, or that no file is unclaimed: [`corpus/record`](record.md).
107
+ - That a recorded licence is the licence the source states: the rule trusts `licence.id`, and
108
+ `read_from` and `read_on` say where it was read.
109
+ - Whether a repository is public. That is why the rule is off by default.
110
+ - The legal questions the table leaves open: whether an extracted text is an adaptation under ND
111
+ (the table says no), and what counts as non-commercial.
112
+ - A copy that stores nothing: ids and metadata are kept whatever the licence.
113
+ - A licence's conditions on sharing. `CC-BY` and `CC-BY-SA` permit a copy on condition of
114
+ attribution: the creator, the licence and its URI, and a note that the material was modified.
115
+ `papers.json` carries the first three for each copy; an extracted text carries no note of the
116
+ change.
117
+ - A permission given to the project alone (an email from the authors). It has no SPDX id, a
118
+ `LicenseRef-` the table does not list is `unlisted`, and `papers.json` is strict JSON, so no
119
+ inline disable can stand beside the copy ([#676](https://github.com/zernie/paperlint/issues/676)).
120
+
121
+ ## How to fix
122
+
123
+ Each finding names its cure. In short: record the licence and where it was read, or remove the
124
+ file and the kind from that copy's `stored` and keep the paper's ids; correct a misspelt id; and,
125
+ for a project that really is non-commercial, set `nonCommercial`.
@@ -14,6 +14,8 @@ paper which copy every stored file is and under which licence, and how the corpu
14
14
  it stands, a wrong value at its key, a required field left out at the object that should hold it.
15
15
  It is the parser the skill's script uses, so the two refuse the same record; the fields are in
16
16
  `papers.schema.json`, shipped with `study-accepted-papers`;
17
+ - a `venue` that is not the name of the folder the record stands in (`venue`), at that field: the
18
+ folder is the venue preset's series, so the two say the same; rename the folder or correct the field;
17
19
  - a file in `pdf/` or `text/` that no copy's `stored` claims (`unclaimed`), including a name that
18
20
  is not `pdf/<key>.pdf`, `text/<key>.txt` or `text/<key>.<variant>.txt`: at the paper's `copies`
19
21
  when the record lists the paper, otherwise on the first line;
@@ -34,8 +36,8 @@ A real consumer kept six corpora with five names for the paper list and 217 stor
34
36
  them with no licence recorded and 18 whose source nobody wrote down
35
37
  ([the design note](../../design/venue-corpus.md#measured-on-a-real-consumer-2026-11-24)). A copy
36
38
  the record does not name is a copy nobody can say may be kept. The rule holds that every stored
37
- file is a recorded fact; whether its licence permits keeping it is a separate question, for a
38
- separate rule.
39
+ file is a recorded fact; whether its licence permits keeping it is a separate question, for
40
+ [`corpus/licence`](licence.md), which is off by default.
39
41
 
40
42
  It is on by default because it holds for every corpus whatever the venue: a `papers.json` that
41
43
  does not parse breaks the skill that reads it, and a file the record does not name is one no reader
@@ -97,13 +99,14 @@ paper.
97
99
 
98
100
  ## What it does not check
99
101
 
100
- - A corpus folder with no `papers.json`: there is no file to report on. The planned
101
- `corpus/allowed-files-only` reports a corpus that stores files without one.
102
+ - A corpus folder with no `papers.json`: there is no file to report on.
103
+ [`corpus/allowed-files-only`](allowed-files-only.md) reports a corpus that stores files without one.
102
104
  - Whether a stored copy's licence permits keeping it, or whether a licence was read at all: that is
103
- the licence rule, planned and off by default.
105
+ [`corpus/licence`](licence.md), off by default.
104
106
  - That a stored file is the copy it is attributed to; it checks that the attribution was recorded.
105
107
  - Names in the corpus folder outside `pdf/` and `text/` (`deep-reads/`, `sources/`, a stray file),
106
- and folders inside `pdf/` or `text/` beyond their names: the planned `corpus/allowed-files-only`.
108
+ and folders inside `pdf/` or `text/` beyond their names: the top of the corpus is
109
+ [`corpus/allowed-files-only`](allowed-files-only.md)'s.
107
110
  - Hidden files in `pdf/` and `text/` (`.gitkeep`, `.DS_Store`): they are not copies.
108
111
  - A corpus outside `<papers-root>/venues/`.
109
112
  - `MANIFEST.md` (optional, caveats only) and `measurements.json`.
@@ -112,6 +115,7 @@ paper.
112
115
 
113
116
  Each finding names its cure. In short:
114
117
 
118
+ - A `venue` that is not its folder's name: rename the folder, or correct the field.
115
119
  - A field that breaks the schema: correct it. `capped`, `proxy` and `rebuild` are required; "none"
116
120
  is `null` (`capped`, `proxy`) or `[]` (`rebuild`), never a field left out.
117
121
  - A file nobody claims: add its kind to the `stored` of the copy it was fetched from, with
package/docs/rules.md CHANGED
@@ -9,7 +9,9 @@ reads and when it fails. Errors fail `paperlint lint`; warnings print and do not
9
9
  | `paper/source` | error | `PIPELINE-STATUS.md` | a declared stage has no frozen `.tex` beside its PDF (a commit hash does not count — squash and gc destroy it). Silent in a paper that keeps `cycles`: there [`versions/layout`](rules/versions/layout.md) holds each PDF to its source |
10
10
  | [`study/declare-sample`](rules/study/declare-sample.md) | experimental; off unless a paper turns it on (`"error"`) | each study's `repro/<study>/prereg.json` | a study's pre-registration does not declare its `population` (what the claim is about, source, size), the `strata` and what each of its `screens` removed per stratum value, its `coverage` (share 0–1 or null with a reason, and the strata it cannot reach), or the `author_check` of the drawn units (a doubtful verdict needs a recorded `decision`); reported on `PIPELINE-STATUS.md`, once per problem — [page](rules/study/declare-sample.md) |
11
11
  | [`cycle/record`](rules/cycle/record.md) | error | `paperlint.json` (`cycles`) | the paper's attempts at venues (`cycles`, one entry per attempt) hold one source's deadlines out of order (registration ≤ submission ≤ resubmission < notification < camera-ready), or copy a portal reading the venue's preset carries; reported on `PIPELINE-STATUS.md`. A record that does not parse — a bare date, two open cycles, an unknown key — is refused by `paperlint lint` itself before any rule runs, exit 2 — [page](rules/cycle/record.md) |
12
- | [`corpus/record`](rules/corpus/record.md) | error | a venue corpus's `papers.json` → its `pdf/` and `text/` listing | a field of `papers.json` breaks the record's schema, a stored file is claimed by no copy, a claimed file is missing, or two copies of a paper store one kind; reported in `papers.json` at the field. Off with `"corpus/record": "off"` in the root `paperlint.json` — [page](rules/corpus/record.md) |
12
+ | [`corpus/allowed-files-only`](rules/corpus/allowed-files-only.md) | error | the listing of each venue corpus's top | a name at the top of a corpus outside `papers.json`, `MANIFEST.md`, `measurements.json`, `pdf/`, `text/`, `deep-reads/`, `sources/`, reported on its `papers.json`; a corpus with `pdf/` or `text/` and no `papers.json`, and a file loose in `venues/`, reported on the root `paperlint.json`. Off with `"corpus/allowed-files-only": "off"` in the root `paperlint.json` — [page](rules/corpus/allowed-files-only.md) |
13
+ | [`corpus/record`](rules/corpus/record.md) | error | a venue corpus's `papers.json` → its `pdf/` and `text/` listing | a field of `papers.json` breaks the record's schema, its `venue` is not its folder's name, a stored file is claimed by no copy, a claimed file is missing, or two copies of a paper store one kind; reported in `papers.json` at the field. Off with `"corpus/record": "off"` in the root `paperlint.json` — [page](rules/corpus/record.md) |
14
+ | [`corpus/licence`](rules/corpus/licence.md) | off, in no set; `"warn"` turns it on | a venue corpus's `papers.json` → the licence table | a stored copy whose licence was not read, is not in the table, forbids that kind, or is non-commercial in a project not declared so (`["warn", { "nonCommercial": true }]`); reported at the copy's `stored`. Opt-in: the same files are legal in a private repository and illegal in a public one — [page](rules/corpus/licence.md) |
13
15
  | [`cycle/evidence`](rules/cycle/evidence.md) | error | `paperlint.json` (`cycles`) → the paper folder | a closed cycle (`accepted`, `rejected`, `withdrawn`) or a deadline's `override` names an `evidence` file — the decision mail, the reviews, the withdrawal note, the chairs' mail — that is not in the paper folder; reported on `PIPELINE-STATUS.md` — [page](rules/cycle/evidence.md) |
14
16
  | [`cycle/port-done`](rules/cycle/port-done.md) | error | `paper.tex` → `paperlint.json` (`cycles`) → the preset's `template` | the current cycle still declares `"phase": "porting"` (which silences the venue's format rules) while the `\documentclass` is already the venue's template: the port is done, drop the phase — [page](rules/cycle/port-done.md) |
15
17
  | [`cycle/prior-reviews-answered`](rules/cycle/prior-reviews-answered.md) | error | `paper.tex` → `paperlint.json` (`cycles`) → the rejection's `points` file | the attempt before the open one was rejected with reviews, and a point in its points file has no answer, or is answered in a place that is no `\section` of the paper — [page](rules/cycle/prior-reviews-answered.md) |
package/docs/venues.md CHANGED
@@ -268,9 +268,9 @@ for the other papers it keeps the ids. What each licence permits is one table, i
268
268
  (decision 3). In short: CC0 1.0, CC BY 4.0 and CC BY-SA 4.0 permit both; an ND licence permits the
269
269
  PDF and not an extracted text; an NC licence permits only in a project declared non-commercial; arXiv's
270
270
  non-exclusive licence, a publisher's own and a licence not read (`NOASSERTION`) permit neither; and an
271
- id the table does not list, another CC version included, permits nothing. The
272
- setting by which a project declares itself non-commercial is not shipped yet: until it is, an NC
273
- copy is treated as not permitted.
271
+ id the table does not list, another CC version included, permits nothing. A project declares itself
272
+ non-commercial with the option of [`corpus/licence`](rules/corpus/licence.md),
273
+ `["warn", { "nonCommercial": true }]`; without it an NC copy is treated as not permitted.
274
274
 
275
275
  The skill's script prints, for each paper and each kind, the copy to keep or each copy's reason:
276
276
 
@@ -323,19 +323,22 @@ whole site and none per paper. Where no source gives a copy's licence, it stays
323
323
  `<papers-root>/venues/`: `paperlint lint` lints the file as JSON and reports, at the line of the field,
324
324
  a field that breaks the record's schema, a stored file no copy claims, a claimed file that is
325
325
  missing, and two copies of one paper storing one kind. A `papers.json` that is not JSON fails as a
326
- parse error on its first line. A corpus folder without `papers.json` is not this rule's: the planned
327
- `corpus/allowed-files-only` will report it. A project turns the rule off with
326
+ parse error on its first line. A project turns the rule off with
328
327
  `{ "rules": { "corpus/record": "off" } }` in its root `paperlint.json`.
329
328
 
329
+ [`corpus/allowed-files-only`](rules/corpus/allowed-files-only.md), on by default, holds the names
330
+ above: an entry at the top of a corpus outside them is reported on its `papers.json`, with where it
331
+ goes, and a corpus that keeps `pdf/` or `text/` with no `papers.json` is reported on the project's
332
+ root `paperlint.json`.
333
+
330
334
  Nothing in a corpus is a paper: a `paper.tex` kept there is an accepted paper's source, and no
331
335
  paper rule judges it. The hook that refuses misplaced files acts only inside a paper folder.
332
336
 
333
- Two more rules of the family are planned for later releases, **not shipped yet**:
334
-
335
- | rule | will report |
336
- | --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
337
- | `corpus/licence` | a stored file whose copy's licence was not read, or does not permit that kind; planned off by default, for a project whose corpus others read |
338
- | `corpus/allowed-files-only` | a name in the corpus folder outside the names above, and a corpus that stores files with no `papers.json` |
337
+ [`corpus/licence`](rules/corpus/licence.md) is **off by default and in no rule set**: the licence question
338
+ arises when others can read the corpus, and the rule cannot tell whether they can. A project whose corpus others read turns it on with `{ "rules": { "corpus/licence": "warn" } }`
339
+ in its root `paperlint.json`; it reports, at the copy's `stored`, a stored kind whose licence was not
340
+ read, is not in the licence table, or does not permit it. A non-commercial project says so with the
341
+ rule's option, `["warn", { "nonCommercial": true }]`.
339
342
 
340
343
  Also checked: a corpus started **inside** a paper folder. A `venues/` or
341
344
  `venue-corpus/` folder at a paper's root is reported, with this place as where it goes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paperlint",
3
- "version": "20.4.0",
3
+ "version": "20.6.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",
@@ -8,17 +8,17 @@ const __dirname = __plDirname(__filename);
8
8
  import {
9
9
  latexReader,
10
10
  sourcesCodec
11
- } from "../../../dist/skill-chunks/chunk-CXAGKT44.js";
11
+ } from "../../../dist/skill-chunks/chunk-EDHTB7KT.js";
12
12
  import {
13
13
  decoded,
14
14
  readPaper,
15
15
  runText
16
16
  } from "../../../dist/skill-chunks/chunk-J5XYPERO.js";
17
- import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
18
17
  import {
19
18
  callerPath,
20
19
  nodeFiles
21
20
  } from "../../../dist/skill-chunks/chunk-5KCU4WTN.js";
21
+ import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
22
22
  import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
23
23
  import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
24
24
 
@@ -10,19 +10,19 @@ import {
10
10
  parseLatex,
11
11
  sourcesCodec,
12
12
  visit
13
- } from "../../../dist/skill-chunks/chunk-CXAGKT44.js";
13
+ } from "../../../dist/skill-chunks/chunk-EDHTB7KT.js";
14
14
  import {
15
15
  paperRecord,
16
16
  readPaper
17
17
  } from "../../../dist/skill-chunks/chunk-J5XYPERO.js";
18
- import {
19
- chunk,
20
- last
21
- } from "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
22
18
  import {
23
19
  messageOf,
24
20
  nodeFiles
25
21
  } from "../../../dist/skill-chunks/chunk-5KCU4WTN.js";
22
+ import {
23
+ chunk,
24
+ last
25
+ } from "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
26
26
  import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
27
27
  import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
28
28
 
@@ -10,18 +10,18 @@ import {
10
10
  bibliographyAt,
11
11
  bibliographyUnreadWhy,
12
12
  isMain
13
- } from "../../../dist/skill-chunks/chunk-6YEM4VDI.js";
13
+ } from "../../../dist/skill-chunks/chunk-WYQTXKNM.js";
14
14
  import {
15
15
  latexReader,
16
16
  sourcesCodec
17
- } from "../../../dist/skill-chunks/chunk-CXAGKT44.js";
17
+ } from "../../../dist/skill-chunks/chunk-EDHTB7KT.js";
18
18
  import "../../../dist/skill-chunks/chunk-J5XYPERO.js";
19
- import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
20
19
  import "../../../dist/skill-chunks/chunk-Z5YMDZYW.js";
21
20
  import {
22
21
  absolutePath,
23
22
  nodeFiles
24
23
  } from "../../../dist/skill-chunks/chunk-5KCU4WTN.js";
24
+ import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
25
25
  import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
26
26
  import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
27
27
 
@@ -9,7 +9,7 @@ import {
9
9
  fieldOf,
10
10
  isRecord
11
11
  } from "../../../dist/skill-chunks/chunk-J5XYPERO.js";
12
- import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
12
+ import "../../../dist/skill-chunks/chunk-QPWFSYJG.js";
13
13
  import {
14
14
  CONFIG_FILE,
15
15
  ROOT_ONLY_KEYS,
@@ -23,6 +23,7 @@ import {
23
23
  nodeFiles,
24
24
  ok
25
25
  } from "../../../dist/skill-chunks/chunk-5KCU4WTN.js";
26
+ import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
26
27
  import {
27
28
  external_exports
28
29
  } from "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
@@ -5,7 +5,7 @@ context: fork
5
5
  allowed-tools: [Read, Write, Edit, Grep, Glob, Bash, WebSearch, WebFetch, Agent]
6
6
  ---
7
7
 
8
- <!-- vigiles:sha256:e956f9144d8c9170 compiled from skills/study-accepted-papers/SKILL.md.spec.ts -->
8
+ <!-- vigiles:sha256:d159bd885a6beed8 compiled from skills/study-accepted-papers/SKILL.md.spec.ts -->
9
9
 
10
10
  # study-accepted-papers — what this venue rewards, measured on its own papers
11
11
 
@@ -167,8 +167,9 @@ cannot (unique keys, a paper's edition among the listed ones, a stored copy's `f
167
167
  the project is non-commercial.
168
168
 
169
169
  `paperlint lint` checks the record with `corpus/record`, at the line of each wrong field; whether a
170
- stored copy's licence permits it is `corpus/licence` (not shipped yet), so until then the script is
171
- the only check of that.
170
+ stored copy's licence permits it is `corpus/licence`, off by default: a project whose corpus others read
171
+ turns it on with `"warn"` in its root `paperlint.json`. The script above asks the same licence table
172
+ when you store.
172
173
 
173
174
  ## Before any level: pin the venue's stated bar
174
175
 
@@ -192,8 +192,9 @@ cannot (unique keys, a paper's edition among the listed ones, a stored copy's \`
192
192
  the project is non-commercial.
193
193
 
194
194
  \`paperlint lint\` checks the record with \`corpus/record\`, at the line of each wrong field; whether a
195
- stored copy's licence permits it is \`corpus/licence\` (not shipped yet), so until then the script is
196
- the only check of that.
195
+ stored copy's licence permits it is \`corpus/licence\`, off by default: a project whose corpus others read
196
+ turns it on with \`"warn"\` in its root \`paperlint.json\`. The script above asks the same licence table
197
+ when you store.
197
198
 
198
199
  ## Before any level: pin the venue's stated bar
199
200
 
@@ -4,7 +4,7 @@
4
4
  "properties": {
5
5
  "venue": {
6
6
  "type": "string",
7
- "minLength": 1
7
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
8
8
  },
9
9
  "editions": {
10
10
  "type": "array",
@@ -428,7 +428,7 @@
428
428
  },
429
429
  "venue": {
430
430
  "type": "string",
431
- "minLength": 1
431
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
432
432
  },
433
433
  "year": {
434
434
  "type": "integer",
@@ -5,6 +5,10 @@ import { dirname as __plDirname } from "node:path";
5
5
  const require = __plCreateRequire(import.meta.url);
6
6
  const __filename = __plFileURLToPath(import.meta.url);
7
7
  const __dirname = __plDirname(__filename);
8
+ import {
9
+ SERIES_ID,
10
+ endsInYear
11
+ } from "../../../dist/skill-chunks/chunk-QPWFSYJG.js";
8
12
  import {
9
13
  CONFIG_FILE,
10
14
  DEFAULT_PAPERS_ROOT,
@@ -15,6 +19,7 @@ import {
15
19
  nodeFiles,
16
20
  spawnProcess
17
21
  } from "../../../dist/skill-chunks/chunk-5KCU4WTN.js";
22
+ import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
18
23
  import {
19
24
  external_exports
20
25
  } from "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
@@ -27,7 +32,7 @@ var ND = {
27
32
  no: "ND permits reproduction in unmodified form; whether an extracted text is an adaptation is unsettled"
28
33
  };
29
34
  var ARXIV = {
30
- no: 'it grants arXiv alone the right to distribute: "We are thus unable to grant others the right to distribute arXiv articles"'
35
+ no: 'its only grant is to arXiv: "I grant arXiv.org a perpetual, non-exclusive license to distribute this article" (arxiv.org/licenses/nonexclusive-distrib/1.0/license.html), and nothing to anyone else'
31
36
  };
32
37
  var PUBLISHER = {
33
38
  no: "the publisher grants no right to third parties"
@@ -74,6 +79,13 @@ var editionCountIssue = (edition2, papers) => {
74
79
 
75
80
  // src/adapters/venue-corpus/index.ts
76
81
  var words = external_exports.string().min(1);
82
+ var series = external_exports.string().regex(
83
+ SERIES_ID,
84
+ "a venue is a series id: lowercase words and digits joined by hyphens, as in `usenix-sec`"
85
+ ).refine(
86
+ (v) => !endsInYear(v),
87
+ "a venue is a series, not one edition: drop the year (`agent`, not `agent-2026`)"
88
+ );
77
89
  var date = external_exports.iso.date();
78
90
  var webUrl = external_exports.url({
79
91
  protocol: /^https?$/u,
@@ -162,7 +174,7 @@ var paper = external_exports.discriminatedUnion("group", [
162
174
  external_exports.looseObject({
163
175
  ...paperFields,
164
176
  group: external_exports.literal("sister"),
165
- venue: words,
177
+ venue: series,
166
178
  year,
167
179
  listed_from: webUrl
168
180
  })
@@ -204,7 +216,7 @@ var consistent = (r, ctx) => {
204
216
  });
205
217
  };
206
218
  var record = external_exports.strictObject({
207
- venue: words,
219
+ venue: series,
208
220
  editions: external_exports.array(edition),
209
221
  papers: external_exports.array(paper),
210
222
  rebuild: external_exports.array(words)
@@ -90,7 +90,7 @@ const corpus = (papers: readonly object[]): VenueCorpus => {
90
90
  const COMMERCIAL = { nonCommercial: false };
91
91
 
92
92
  const ARXIV_WHY =
93
- 'it grants arXiv alone the right to distribute: "We are thus unable to grant others the right to distribute arXiv articles"';
93
+ 'its only grant is to arXiv: "I grant arXiv.org a perpetual, non-exclusive license to distribute this article" (arxiv.org/licenses/nonexclusive-distrib/1.0/license.html), and nothing to anyone else';
94
94
  const ND_WHY =
95
95
  "ND permits reproduction in unmodified form; whether an extracted text is an adaptation is unsettled";
96
96
 
@@ -10,18 +10,18 @@ import {
10
10
  bibliographyAt,
11
11
  bibliographyUnreadWhy,
12
12
  isMain
13
- } from "../../../dist/skill-chunks/chunk-6YEM4VDI.js";
13
+ } from "../../../dist/skill-chunks/chunk-WYQTXKNM.js";
14
14
  import {
15
15
  latexReader,
16
16
  sourcesCodec
17
- } from "../../../dist/skill-chunks/chunk-CXAGKT44.js";
17
+ } from "../../../dist/skill-chunks/chunk-EDHTB7KT.js";
18
18
  import "../../../dist/skill-chunks/chunk-J5XYPERO.js";
19
- import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
20
19
  import "../../../dist/skill-chunks/chunk-Z5YMDZYW.js";
21
20
  import {
22
21
  absolutePath,
23
22
  nodeFiles
24
23
  } from "../../../dist/skill-chunks/chunk-5KCU4WTN.js";
24
+ import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
25
25
  import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
26
26
  import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
27
27
 
@@ -11,18 +11,18 @@ import {
11
11
  bibliographyUnreadWhy,
12
12
  consumerContactEmail,
13
13
  isMain
14
- } from "../../../dist/skill-chunks/chunk-6YEM4VDI.js";
14
+ } from "../../../dist/skill-chunks/chunk-WYQTXKNM.js";
15
15
  import {
16
16
  latexReader,
17
17
  sourcesCodec
18
- } from "../../../dist/skill-chunks/chunk-CXAGKT44.js";
18
+ } from "../../../dist/skill-chunks/chunk-EDHTB7KT.js";
19
19
  import "../../../dist/skill-chunks/chunk-J5XYPERO.js";
20
- import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
21
20
  import "../../../dist/skill-chunks/chunk-Z5YMDZYW.js";
22
21
  import {
23
22
  absolutePath,
24
23
  nodeFiles
25
24
  } from "../../../dist/skill-chunks/chunk-5KCU4WTN.js";
25
+ import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
26
26
  import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
27
27
  import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
28
28