paperlint 20.5.0 → 20.6.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.
- package/.claude-plugin/plugin.json +1 -1
- package/dist/adapters/venue-corpus/index.d.ts.map +1 -1
- package/dist/adapters/venue-corpus/index.js +9 -2
- package/dist/adapters/venue-corpus/index.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +11 -8
- package/dist/cli.js.map +1 -1
- package/dist/corpus-json-rules.d.ts +6 -0
- package/dist/corpus-json-rules.d.ts.map +1 -0
- package/dist/corpus-json-rules.js +15 -0
- package/dist/corpus-json-rules.js.map +1 -0
- package/dist/corpus-layout-rule.d.ts +6 -2
- package/dist/corpus-layout-rule.d.ts.map +1 -1
- package/dist/corpus-layout-rule.js +6 -2
- package/dist/corpus-layout-rule.js.map +1 -1
- package/dist/corpus-licence-rule.d.ts +27 -0
- package/dist/corpus-licence-rule.d.ts.map +1 -0
- package/dist/corpus-licence-rule.js +78 -0
- package/dist/corpus-licence-rule.js.map +1 -0
- package/dist/corpus-record-rule.d.ts +2 -0
- package/dist/corpus-record-rule.d.ts.map +1 -1
- package/dist/corpus-record-rule.js +4 -2
- package/dist/corpus-record-rule.js.map +1 -1
- package/dist/domain/corpus-licence.d.ts +23 -0
- package/dist/domain/corpus-licence.d.ts.map +1 -0
- package/dist/domain/corpus-licence.js +50 -0
- package/dist/domain/corpus-licence.js.map +1 -0
- package/dist/domain/corpus-record.d.ts +8 -0
- package/dist/domain/corpus-record.d.ts.map +1 -1
- package/dist/domain/corpus-record.js +11 -9
- package/dist/domain/corpus-record.js.map +1 -1
- package/dist/domain/edition.d.ts +3 -1
- package/dist/domain/edition.d.ts.map +1 -1
- package/dist/domain/edition.js +6 -2
- package/dist/domain/edition.js.map +1 -1
- package/dist/domain/licence.d.ts +1 -1
- package/dist/domain/licence.d.ts.map +1 -1
- package/dist/domain/licence.js +2 -2
- package/dist/domain/licence.js.map +1 -1
- package/dist/skill-chunks/chunk-QPWFSYJG.js +17 -0
- package/dist/skill-chunks/{chunk-6YEM4VDI.js → chunk-WYQTXKNM.js} +1 -1
- package/docs/design/venue-corpus.md +16 -16
- package/docs/optional-rules.md +11 -10
- package/docs/rules/corpus/allowed-files-only.md +9 -8
- package/docs/rules/corpus/licence.md +125 -0
- package/docs/rules/corpus/record.md +6 -3
- package/docs/rules.md +3 -2
- package/docs/venues.md +8 -8
- package/package.json +1 -1
- package/skills/argument-arc/scripts/headings.js +2 -2
- package/skills/cold-read-diff/scripts/cold-read.js +5 -5
- package/skills/paper-pipeline/scripts/extract-ref-facts.js +3 -3
- package/skills/pc-panel-review/scripts/prior-reviews.js +2 -1
- package/skills/study-accepted-papers/SKILL.md +4 -3
- package/skills/study-accepted-papers/SKILL.md.spec.ts +3 -2
- package/skills/study-accepted-papers/papers.schema.json +2 -2
- package/skills/study-accepted-papers/scripts/corpus-licences.js +15 -3
- package/skills/study-accepted-papers/scripts/corpus-licences.test.ts +1 -1
- package/skills/verify-citations/scripts/bib-authors.js +3 -3
- package/skills/verify-citations/scripts/verify-cites.js +3 -3
- package/src/adapters/venue-corpus/index.test.ts +25 -0
- package/src/adapters/venue-corpus/index.ts +16 -2
- package/src/cli.ts +13 -11
- package/src/corpus-json-rules.ts +22 -0
- package/src/corpus-layout-rule.test.ts +3 -1
- package/src/corpus-layout-rule.ts +7 -3
- package/src/corpus-licence-rule.test.ts +217 -0
- package/src/corpus-licence-rule.ts +94 -0
- package/src/corpus-record-rule.test.ts +12 -0
- package/src/corpus-record-rule.ts +6 -2
- package/src/domain/corpus-licence.test.ts +128 -0
- package/src/domain/corpus-licence.ts +99 -0
- package/src/domain/corpus-record.test.ts +7 -1
- package/src/domain/corpus-record.ts +26 -9
- package/src/domain/edition.ts +8 -2
- package/src/domain/licence.test.ts +1 -1
- package/src/domain/licence.ts +2 -2
- package/src/rule-cases.test.ts +2 -44
- package/src/rule-id-shape.test.ts +42 -0
- package/dist/skill-chunks/{chunk-CXAGKT44.js → chunk-EDHTB7KT.js} +4 -4
package/docs/optional-rules.md
CHANGED
|
@@ -55,16 +55,17 @@ writing, not a number the venue states.
|
|
|
55
55
|
|
|
56
56
|
## The other optional rules
|
|
57
57
|
|
|
58
|
-
| rule | what it checks | who needs it
|
|
59
|
-
| ----------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
|
|
60
|
-
| `pdf/last-page-balance` | the two columns of the last page end at about the same height | two-column papers whose publisher asks for it — see below
|
|
61
|
-
| [`tex/heading-case`](rules/tex/heading-case.md) | the words of the paper's title and of each heading are in the capitalization the venue asks | papers whose venue names a case style paperlint builds; only the AgenticDev preset turns it on (`chicago-headline` for the title and every heading) — [page](rules/tex/heading-case.md)
|
|
62
|
-
| [`tex/term-before-definition`](rules/tex/term-before-definition.md) | a term the body defines with `\emph` is not used before that definition | papers that mark each definition in italics; others mostly use italics for stress — [page](rules/tex/term-before-definition.md)
|
|
63
|
-
| [`tex/term-defined-twice`](rules/tex/term-defined-twice.md) | a term the body defines is set as a definition once | the same papers — [page](rules/tex/term-defined-twice.md)
|
|
64
|
-
| [`study/declare-sample`](rules/study/declare-sample.md) | experimental: a study's `prereg.json` declares its population, screens, coverage and the author's check of the drawn units | papers with a sampled study; no preset turns it on — [page](rules/study/declare-sample.md)
|
|
65
|
-
| [`cycle/changes-since-approved`](rules/cycle/changes-since-approved.md) | experimental: what the approved text had (numbers, cite keys) and the draft lacks is declared in `changes.yaml` | papers that keep an approved version; no preset turns it on — [page](rules/cycle/changes-since-approved.md)
|
|
66
|
-
| [`cycle/changes-since-approved-coverage`](rules/cycle/changes-since-approved-coverage.md) | experimental: each paragraph of the approved text that is gone is covered by a `changes.yaml` entry | the same; a warning — [page](rules/cycle/changes-since-approved-coverage.md)
|
|
67
|
-
| [`artifact/upload-current`](rules/artifact/upload-current.md) | the paper prints the numbers its uploaded artifact was built for, as the upload record (`paperlint artifact record`) says | papers with an uploaded artifact and a file of number macros; turned on with `["warn", { "numbers": "numbersdef.tex" }]` — [page](rules/artifact/upload-current.md)
|
|
58
|
+
| rule | what it checks | who needs it |
|
|
59
|
+
| ----------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
60
|
+
| `pdf/last-page-balance` | the two columns of the last page end at about the same height | two-column papers whose publisher asks for it — see below |
|
|
61
|
+
| [`tex/heading-case`](rules/tex/heading-case.md) | the words of the paper's title and of each heading are in the capitalization the venue asks | papers whose venue names a case style paperlint builds; only the AgenticDev preset turns it on (`chicago-headline` for the title and every heading) — [page](rules/tex/heading-case.md) |
|
|
62
|
+
| [`tex/term-before-definition`](rules/tex/term-before-definition.md) | a term the body defines with `\emph` is not used before that definition | papers that mark each definition in italics; others mostly use italics for stress — [page](rules/tex/term-before-definition.md) |
|
|
63
|
+
| [`tex/term-defined-twice`](rules/tex/term-defined-twice.md) | a term the body defines is set as a definition once | the same papers — [page](rules/tex/term-defined-twice.md) |
|
|
64
|
+
| [`study/declare-sample`](rules/study/declare-sample.md) | experimental: a study's `prereg.json` declares its population, screens, coverage and the author's check of the drawn units | papers with a sampled study; no preset turns it on — [page](rules/study/declare-sample.md) |
|
|
65
|
+
| [`cycle/changes-since-approved`](rules/cycle/changes-since-approved.md) | experimental: what the approved text had (numbers, cite keys) and the draft lacks is declared in `changes.yaml` | papers that keep an approved version; no preset turns it on — [page](rules/cycle/changes-since-approved.md) |
|
|
66
|
+
| [`cycle/changes-since-approved-coverage`](rules/cycle/changes-since-approved-coverage.md) | experimental: each paragraph of the approved text that is gone is covered by a `changes.yaml` entry | the same; a warning — [page](rules/cycle/changes-since-approved-coverage.md) |
|
|
67
|
+
| [`artifact/upload-current`](rules/artifact/upload-current.md) | the paper prints the numbers its uploaded artifact was built for, as the upload record (`paperlint artifact record`) says | papers with an uploaded artifact and a file of number macros; turned on with `["warn", { "numbers": "numbersdef.tex" }]` — [page](rules/artifact/upload-current.md) |
|
|
68
|
+
| [`corpus/licence`](rules/corpus/licence.md) | each copy a venue corpus stores has a licence that permits keeping that file | a project whose corpus others can read (the same files are legal in a private repository); `"warn"`, and `["warn", { "nonCommercial": true }]` for a non-commercial project — [page](rules/corpus/licence.md) |
|
|
68
69
|
|
|
69
70
|
## `pdf/last-page-balance`
|
|
70
71
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# corpus/allowed-files-only
|
|
2
2
|
|
|
3
|
-
**Level:**
|
|
3
|
+
**Level:** warn, on by default · **Reads:** the listing of each venue corpus's top · **Reported
|
|
4
4
|
on:** the corpus's `papers.json`, first line, once per stray entry; the project's root
|
|
5
5
|
`paperlint.json`, first line, once per corpus that stores copies without `papers.json`
|
|
6
6
|
|
|
@@ -51,7 +51,8 @@ name, a page saved beside it, or notes on one paper at the top are files nobody
|
|
|
51
51
|
of. A corpus that stores copies with no record is one where nobody can say what each file is a copy
|
|
52
52
|
of, or whether its licence lets the project keep it, and [`corpus/record`](record.md) has no file to
|
|
53
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/`.
|
|
54
|
+
project with no `venues/`. It warns rather than fails: a corpus folder made before `papers.json`
|
|
55
|
+
existed is a migration to do, not a broken build.
|
|
55
56
|
|
|
56
57
|
## Examples
|
|
57
58
|
|
|
@@ -59,14 +60,14 @@ Failing: a note at the top of a corpus, and PDFs kept with no record.
|
|
|
59
60
|
|
|
60
61
|
```text
|
|
61
62
|
papers/venues/agent/papers.json
|
|
62
|
-
1:1
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
1:1 warning `venues/agent/notes.md` is not one of the names a venue corpus holds. Where it goes:
|
|
64
|
+
MANIFEST.md when it is a caveat about the whole corpus; deep-reads/<key>.md when it is
|
|
65
|
+
about one paper. corpus/allowed-files-only
|
|
65
66
|
|
|
66
67
|
paperlint.json
|
|
67
|
-
1:1
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
1:1 warning `papers/venues/other/` stores copies in pdf/ or text/ and has no papers.json, so nothing
|
|
69
|
+
records which paper each file is a copy of, or under which licence it is kept.
|
|
70
|
+
corpus/allowed-files-only
|
|
70
71
|
```
|
|
71
72
|
|
|
72
73
|
Passing: the seven names, the optional ones left out or not.
|
|
@@ -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
|
|
38
|
-
|
|
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
|
|
@@ -100,7 +102,7 @@ paper.
|
|
|
100
102
|
- A corpus folder with no `papers.json`: there is no file to report on.
|
|
101
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
|
-
|
|
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
108
|
and folders inside `pdf/` or `text/` beyond their names: the top of the corpus is
|
|
@@ -113,6 +115,7 @@ paper.
|
|
|
113
115
|
|
|
114
116
|
Each finding names its cure. In short:
|
|
115
117
|
|
|
118
|
+
- A `venue` that is not its folder's name: rename the folder, or correct the field.
|
|
116
119
|
- A field that breaks the schema: correct it. `capped`, `proxy` and `rebuild` are required; "none"
|
|
117
120
|
is `null` (`capped`, `proxy`) or `[]` (`rebuild`), never a field left out.
|
|
118
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,8 +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/allowed-files-only`](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, 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) | warn | 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) |
|
|
14
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) |
|
|
15
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) |
|
|
16
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.
|
|
272
|
-
|
|
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
|
|
|
@@ -334,11 +334,11 @@ root `paperlint.json`.
|
|
|
334
334
|
Nothing in a corpus is a paper: a `paper.tex` kept there is an accepted paper's source, and no
|
|
335
335
|
paper rule judges it. The hook that refuses misplaced files acts only inside a paper folder.
|
|
336
336
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
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 }]`.
|
|
342
342
|
|
|
343
343
|
Also checked: a corpus started **inside** a paper folder. A `venues/` or
|
|
344
344
|
`venue-corpus/` folder at a paper's root is reported, with this place as where it goes
|
package/package.json
CHANGED
|
@@ -8,17 +8,17 @@ const __dirname = __plDirname(__filename);
|
|
|
8
8
|
import {
|
|
9
9
|
latexReader,
|
|
10
10
|
sourcesCodec
|
|
11
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
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-
|
|
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-
|
|
13
|
+
} from "../../../dist/skill-chunks/chunk-WYQTXKNM.js";
|
|
14
14
|
import {
|
|
15
15
|
latexReader,
|
|
16
16
|
sourcesCodec
|
|
17
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
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-
|
|
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:
|
|
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
|
|
171
|
-
|
|
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
|
|
196
|
-
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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: '
|
|
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:
|
|
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:
|
|
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
|
-
'
|
|
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-
|
|
13
|
+
} from "../../../dist/skill-chunks/chunk-WYQTXKNM.js";
|
|
14
14
|
import {
|
|
15
15
|
latexReader,
|
|
16
16
|
sourcesCodec
|
|
17
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
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-
|
|
14
|
+
} from "../../../dist/skill-chunks/chunk-WYQTXKNM.js";
|
|
15
15
|
import {
|
|
16
16
|
latexReader,
|
|
17
17
|
sourcesCodec
|
|
18
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
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
|
|
|
@@ -264,6 +264,31 @@ const REFUSED: readonly (readonly [string, string, string])[] = [
|
|
|
264
264
|
}),
|
|
265
265
|
"editions.0.accepted: Invalid input: expected number, received undefined; editions.0.capped: Invalid input: expected string, received undefined; editions.0.proxy.papers: Too small: expected number to be >=0",
|
|
266
266
|
],
|
|
267
|
+
[
|
|
268
|
+
"🔴 a venue that is one edition, not its series",
|
|
269
|
+
text({ ...RECORD, venue: "agent-2026" }),
|
|
270
|
+
"venue: a venue is a series, not one edition: drop the year (`agent`, not `agent-2026`)",
|
|
271
|
+
],
|
|
272
|
+
[
|
|
273
|
+
"🔴 a venue that is a display name, and a sister's too",
|
|
274
|
+
text({
|
|
275
|
+
...RECORD,
|
|
276
|
+
venue: "ICSE",
|
|
277
|
+
papers: [
|
|
278
|
+
PAPER,
|
|
279
|
+
{
|
|
280
|
+
...PAPER,
|
|
281
|
+
key: "s",
|
|
282
|
+
edition: undefined,
|
|
283
|
+
group: "sister",
|
|
284
|
+
venue: "NLBSE",
|
|
285
|
+
year: 2025,
|
|
286
|
+
listed_from: "https://nlbse.github.io/2025/",
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
}),
|
|
290
|
+
"venue: a venue is a series id: lowercase words and digits joined by hyphens, as in `usenix-sec`; papers.1.venue: a venue is a series id: lowercase words and digits joined by hyphens, as in `usenix-sec`",
|
|
291
|
+
],
|
|
267
292
|
[
|
|
268
293
|
"🔴 a record without its rebuild commands",
|
|
269
294
|
text({ ...RECORD, rebuild: undefined }),
|