paperlint 20.1.2 → 20.3.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.
- package/.claude-plugin/plugin.json +1 -1
- package/CLAUDE.md +5 -1
- package/dist/adapters/venue-corpus/index.d.ts +361 -0
- package/dist/adapters/venue-corpus/index.d.ts.map +1 -0
- package/dist/adapters/venue-corpus/index.js +221 -0
- package/dist/adapters/venue-corpus/index.js.map +1 -0
- package/dist/cli.d.ts +4 -3
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +42 -13
- package/dist/cli.js.map +1 -1
- package/dist/corpus-record-rule.d.ts +65 -0
- package/dist/corpus-record-rule.d.ts.map +1 -0
- package/dist/corpus-record-rule.js +85 -0
- package/dist/corpus-record-rule.js.map +1 -0
- package/dist/domain/corpus-record.d.ts +51 -0
- package/dist/domain/corpus-record.d.ts.map +1 -0
- package/dist/domain/corpus-record.js +119 -0
- package/dist/domain/corpus-record.js.map +1 -0
- package/dist/domain/licence.d.ts +51 -0
- package/dist/domain/licence.d.ts.map +1 -0
- package/dist/domain/licence.js +61 -0
- package/dist/domain/licence.js.map +1 -0
- package/dist/domain/venue-corpus.d.ts +142 -0
- package/dist/domain/venue-corpus.d.ts.map +1 -0
- package/dist/domain/venue-corpus.js +17 -0
- package/dist/domain/venue-corpus.js.map +1 -0
- package/dist/eslint-rules/CLAUDE.md.spec.d.ts.map +1 -1
- package/dist/eslint-rules/CLAUDE.md.spec.js +1 -0
- package/dist/eslint-rules/CLAUDE.md.spec.js.map +1 -1
- package/dist/paper-files.d.ts +10 -3
- package/dist/paper-files.d.ts.map +1 -1
- package/dist/paper-files.js +17 -2
- package/dist/paper-files.js.map +1 -1
- package/dist/papers-roots.d.ts +6 -0
- package/dist/papers-roots.d.ts.map +1 -1
- package/dist/papers-roots.js +14 -0
- package/dist/papers-roots.js.map +1 -1
- package/dist/ports/venue-corpus-codec.d.ts +11 -0
- package/dist/ports/venue-corpus-codec.d.ts.map +1 -0
- package/dist/ports/venue-corpus-codec.js +2 -0
- package/dist/ports/venue-corpus-codec.js.map +1 -0
- package/dist/skill-chunks/chunk-5KCU4WTN.js +108 -0
- package/dist/skill-chunks/{chunk-X4VKG4KT.js → chunk-6YEM4VDI.js} +11 -9
- package/dist/skill-chunks/{chunk-L3NJUJUP.js → chunk-CXAGKT44.js} +5 -3
- package/dist/skill-chunks/{chunk-6NU6CXUS.js → chunk-J5XYPERO.js} +12 -72
- package/dist/skill-chunks/{chunk-IREAROCV.js → chunk-Z5YMDZYW.js} +4 -0
- package/dist/skills/study-accepted-papers/scripts/corpus-licences-core.d.ts +54 -0
- package/dist/skills/study-accepted-papers/scripts/corpus-licences.d.ts +2 -0
- package/docs/design/venue-corpus.md +271 -0
- package/docs/layout.md +2 -2
- package/docs/rules/corpus/record.md +119 -0
- package/docs/rules.md +1 -0
- package/docs/venues.md +158 -24
- package/eslint-rules/CLAUDE.md +5 -1
- package/eslint-rules/CLAUDE.md.spec.ts +3 -0
- package/eslint.config.mjs +1 -0
- package/package.json +3 -1
- package/scripts/bundle-skills.ts +1 -0
- package/scripts/eslint-file-length.mjs +3 -3
- package/scripts/venue-corpus-schema.test.ts +39 -0
- package/scripts/venue-corpus-schema.ts +17 -0
- package/skills/argument-arc/scripts/headings.js +6 -4
- package/skills/cold-read-diff/scripts/cold-read.js +6 -4
- package/skills/paper-pipeline/scripts/extract-ref-facts.js +6 -5
- package/skills/pc-panel-review/scripts/prior-reviews.js +7 -5
- package/skills/study-accepted-papers/SKILL.md +34 -2
- package/skills/study-accepted-papers/SKILL.md.spec.ts +33 -1
- package/skills/study-accepted-papers/papers.schema.json +474 -0
- package/skills/study-accepted-papers/scripts/corpus-licences-core.js +180 -0
- package/skills/study-accepted-papers/scripts/corpus-licences-core.ts +303 -0
- package/skills/study-accepted-papers/scripts/corpus-licences.js +393 -0
- package/skills/study-accepted-papers/scripts/corpus-licences.test.ts +488 -0
- package/skills/study-accepted-papers/scripts/corpus-licences.ts +27 -0
- package/skills/verify-citations/scripts/bib-authors.js +6 -5
- package/skills/verify-citations/scripts/verify-cites.js +6 -5
- package/src/adapters/venue-corpus/index.test.ts +337 -0
- package/src/adapters/venue-corpus/index.ts +306 -0
- package/src/cli-e2e.test.mjs +2 -2
- package/src/cli.test.ts +1 -1
- package/src/cli.ts +57 -13
- package/src/corpus-record-rule.test.ts +228 -0
- package/src/corpus-record-rule.ts +175 -0
- package/src/domain/corpus-record.test.ts +163 -0
- package/src/domain/corpus-record.ts +210 -0
- package/src/domain/licence.test.ts +122 -0
- package/src/domain/licence.ts +95 -0
- package/src/domain/venue-corpus.ts +159 -0
- package/src/paper-files.test.ts +13 -4
- package/src/paper-files.ts +23 -2
- package/src/paper-settings-commands.test.ts +2 -2
- package/src/papers-roots.test.ts +34 -1
- package/src/papers-roots.ts +15 -0
- package/src/ports/venue-corpus-codec.ts +11 -0
- package/src/rule-cases.test.ts +15 -0
- package/src/settled-paper.test.ts +1 -1
- package/src/unowned-file.test.ts +1 -1
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
# The venue corpus record — design
|
|
2
|
+
|
|
3
|
+
A venue's corpus (`<papers-root>/venues/<venue>/`, [`docs/venues.md`](../venues.md)) is where
|
|
4
|
+
`study-accepted-papers` keeps the papers a venue accepted, so every paper aimed at that venue measures
|
|
5
|
+
against the same set. Until now its shape was prose: fixed names for `MANIFEST.md`, `measurements.json`,
|
|
6
|
+
`text/` and `deep-reads/`, the lists "named by whoever runs the skill", and "the PDFs are not committed".
|
|
7
|
+
A real consumer kept six corpora, and they drifted: five names for the paper list, two ways of writing a
|
|
8
|
+
licence (a field per row in one, a separate TSV in another), PDFs committed in one corpus against the
|
|
9
|
+
rule, one corpus with no manifest, and one outside `venues/` altogether. Nothing could read them all, and
|
|
10
|
+
nothing could say whether a stored copy was allowed to be there.
|
|
11
|
+
|
|
12
|
+
This note fixes one record per corpus, the check that keeps its stored copies legal, and the order of the
|
|
13
|
+
pull requests that follow. It is the base for #302, #568, #356, #500, #215, #608 and #465.
|
|
14
|
+
|
|
15
|
+
## What is decided
|
|
16
|
+
|
|
17
|
+
1. **One record, `papers.json`, JSON with a schema.** It is the list of papers and, for each, every copy
|
|
18
|
+
we know of with its licence, and it holds every fact about how the corpus was collected. The schema
|
|
19
|
+
(zod, in `src/adapters/venue-corpus/`) is checked where the file is read; nothing after it
|
|
20
|
+
re-validates (the study registry's pattern, [`study-registry.md`](study-registry.md)). Codes and
|
|
21
|
+
measurements stay in `measurements.json`, keyed by the paper's `key`.
|
|
22
|
+
|
|
23
|
+
**Why the collection facts are in the record, not in a prose `MANIFEST.md`.** Read against the four real manifests of the consumer (52 to 86
|
|
24
|
+
lines each), three of their four parts were records: a hand-kept table of the folder's files (it
|
|
25
|
+
drifts from the disk), coverage counts (computable from `papers.json`), and the sources, years,
|
|
26
|
+
proxy and rebuild commands (fields). Only the caveats were prose. So the facts move into the record:
|
|
27
|
+
an edition already carries `listed_from`, `read_on` and `accepted`; it gains `capped` (what was left
|
|
28
|
+
out and why, or null) and `proxy` (the stand-in for "strong accept" and how many papers it marks, or
|
|
29
|
+
null), and the record gains `rebuild` (the commands that regenerate it). All three are required:
|
|
30
|
+
"none" is written as `null` or `[]`, never left out, so a fact not recorded cannot pass for "nothing
|
|
31
|
+
capped" (decided by the author 2026-11-24; no `papers.json` existed yet to keep valid). Coverage is
|
|
32
|
+
never stored: it is counted from the rows. `MANIFEST.md` becomes optional and holds caveats only;
|
|
33
|
+
no rule reads it.
|
|
34
|
+
|
|
35
|
+
```json
|
|
36
|
+
{
|
|
37
|
+
"venue": "agent",
|
|
38
|
+
"editions": [
|
|
39
|
+
{
|
|
40
|
+
"edition": 2026,
|
|
41
|
+
"listed_from": "https://conf.researchr.org/home/icse-2026/agent-2026",
|
|
42
|
+
"read_on": "2026-11-03",
|
|
43
|
+
"accepted": 27,
|
|
44
|
+
"capped": null,
|
|
45
|
+
"proxy": null
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"papers": [
|
|
49
|
+
{
|
|
50
|
+
"key": "2026-01",
|
|
51
|
+
"edition": 2026,
|
|
52
|
+
"group": "accepted",
|
|
53
|
+
"title": "A Catalogue of Evaluation Metrics for LLM-Based Multi-Agent Frameworks in Software Engineering",
|
|
54
|
+
"authors": [
|
|
55
|
+
"Ingrid Lima",
|
|
56
|
+
"Vitor Linhares",
|
|
57
|
+
"Anderson Martins Gomes",
|
|
58
|
+
"Paulo Maia"
|
|
59
|
+
],
|
|
60
|
+
"abstract": "LLM-based Multi-Agent (LMA) frameworks have recently gained traction …",
|
|
61
|
+
"ids": { "doi": "10.1145/3786167.3788430" },
|
|
62
|
+
"copies": [
|
|
63
|
+
{
|
|
64
|
+
"version": "published",
|
|
65
|
+
"url": "https://doi.org/10.1145/3786167.3788430",
|
|
66
|
+
"licence": {
|
|
67
|
+
"id": "CC-BY-4.0",
|
|
68
|
+
"read_from": "https://api.crossref.org/works/10.1145/3786167.3788430",
|
|
69
|
+
"read_on": "2026-11-03"
|
|
70
|
+
},
|
|
71
|
+
"stored": []
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"rebuild": []
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
| field | values |
|
|
81
|
+
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
82
|
+
| `venue` | the corpus folder's name, which is the venue preset's series: the preset id without its year (`agent` for `paperlint:agent-2027`) |
|
|
83
|
+
| `editions[]` | each edition of THIS venue the corpus covers: the year, the page that lists what it accepted, the date read; `accepted` (the count) when the page gives one |
|
|
84
|
+
| `editions[].capped` | what was left out of the edition and why (`"the research track only, 100 of 312"`), or `null` |
|
|
85
|
+
| `editions[].proxy` | `{ "what", "papers" }`: the stand-in for "strong accept" and how many papers it marks, or `null` |
|
|
86
|
+
| `rebuild` | the commands that regenerate the corpus, in order; `[]` when none was kept |
|
|
87
|
+
| `papers[].key` | unique in the file; names the stored files and the measurement rows |
|
|
88
|
+
| `papers[].group` | `accepted`, `award`, or `sister` (corpus 2: papers of another venue) |
|
|
89
|
+
| `papers[].edition` | for `accepted` and `award`: one of `editions[].edition` |
|
|
90
|
+
| `papers[].venue`, `.year` | for `sister`: the other venue and its year; `listed_from` on the row says where it was found |
|
|
91
|
+
| `papers[].ids` | any of `doi`, `arxiv`, `dblp`, `s2`, `url` (the paper's page on the listing, when nothing else identifies it); at least one |
|
|
92
|
+
| `copies[].version` | `published`, `accepted`, `preprint` (OpenAlex's `publishedVersion` / `acceptedVersion` / `submittedVersion`), or `unknown` |
|
|
93
|
+
| `copies[].licence` | `id`, `read_from` (the page or API response it was read from, never inferred), `read_on` |
|
|
94
|
+
| `copies[].fetched_from` | required when `stored` is not empty: the URL the stored bytes were downloaded from |
|
|
95
|
+
| `copies[].stored` | what of this copy is in the corpus: `[]`, `["text"]`, `["pdf"]` or both; `"text"` covers every text variant of the paper |
|
|
96
|
+
|
|
97
|
+
The top level, the edition, the copy and the licence objects are strict, so a misspelt key is an error.
|
|
98
|
+
A paper row keeps any further fields as they are: the consumer's scripts read about forty of them
|
|
99
|
+
(award flags, page counts, where a PDF was found), and a strict row would force every corpus to drop
|
|
100
|
+
them to migrate.
|
|
101
|
+
|
|
102
|
+
2. **The licence belongs to a copy, not to a paper.** The same paper is often CC BY in the proceedings and
|
|
103
|
+
under arXiv's non-exclusive licence as a preprint (one real 27-paper list had nine combinations, a
|
|
104
|
+
16-paper one seven). A stored file is a copy of one version, so it is judged by that version's licence.
|
|
105
|
+
This follows OpenAlex, which records a licence per location ("Different locations of the same work can
|
|
106
|
+
carry different licenses"), and Crossref's per-work `license` array.
|
|
107
|
+
|
|
108
|
+
That a stored file **is** the copy it is attributed to is a recorded fact, not a construction: the
|
|
109
|
+
copy names `fetched_from`, and at most one copy of a paper may store each kind (two copies claiming
|
|
110
|
+
`pdf/<key>.pdf` is a finding). A file whose origin nobody recorded is stored under a copy with
|
|
111
|
+
`version: "unknown"`, which is allowed only with the licence `NOASSERTION`, and so permits nothing:
|
|
112
|
+
the record cannot be made to pass by attributing a file to whichever copy has the friendlier licence
|
|
113
|
+
without saying where the bytes came from.
|
|
114
|
+
|
|
115
|
+
3. **The licence table, in one module** (`src/domain/licence.ts`). Any SPDX id or `LicenseRef-…`
|
|
116
|
+
parses; the table decides what it permits, and an id the table does not list permits nothing and
|
|
117
|
+
gets a finding of its own that names it (so a `CC-BY-3.0` does not hide the rest of the record, and
|
|
118
|
+
a typo is still loud).
|
|
119
|
+
|
|
120
|
+
| id | may store text | may store the PDF | why |
|
|
121
|
+
| -------------------------------------- | ---------------------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
122
|
+
| `CC0-1.0`, `CC-BY-4.0`, `CC-BY-SA-4.0` | yes | yes | "anyone who has access to a copy of the material may continue to redistribute it" (CC FAQ) |
|
|
123
|
+
| `CC-BY-NC-4.0`, `CC-BY-NC-SA-4.0` | when the project is non-commercial | when the project is non-commercial | non-commercial reproduction is granted; whether a repository is non-commercial is the project's to declare, not paperlint's to assume |
|
|
124
|
+
| `CC-BY-ND-4.0`, `CC-BY-NC-ND-4.0` | no | yes (NC: as above) | "the ND licenses do allow you to reproduce the material in unmodified form"; whether an extracted text is an adaptation is unsettled, so no |
|
|
125
|
+
| `LicenseRef-arxiv-nonexclusive-1.0` | no | no | it grants arXiv alone the right to distribute: "We are thus unable to grant others the right to distribute arXiv articles" |
|
|
126
|
+
| `LicenseRef-publisher` | no | no | no grant to third parties |
|
|
127
|
+
| `NOASSERTION` | no | no | the licence was not read |
|
|
128
|
+
|
|
129
|
+
The project declares itself non-commercial with one setting; without it an NC copy that is stored is a
|
|
130
|
+
finding that names the setting. SPDX ids where SPDX has one; `LicenseRef-…` where it has none, as SPDX
|
|
131
|
+
and REUSE prescribe. A version of a CC licence other than 4.0 gets its row when a corpus meets it.
|
|
132
|
+
|
|
133
|
+
4. **Three rules, one family, `corpus/`.** The family is the folder they judge, as `paper/`, `repro/` and
|
|
134
|
+
`versions/` are; the names follow the ones those families already use (`paper/allowed-files-only`,
|
|
135
|
+
`cycle/record`). Structure and licence are separate rules because they are needed by different
|
|
136
|
+
projects: every corpus needs its structure held, and only a corpus that others can read needs its
|
|
137
|
+
licences judged.
|
|
138
|
+
|
|
139
|
+
| rule | reports | default |
|
|
140
|
+
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------- |
|
|
141
|
+
| `corpus/allowed-files-only` | a name in the corpus folder outside the fixed names (decision 5), any extension, plus names the settings add (#500's second rule, renamed from `venue/allowed-files-only`); a corpus with `pdf/` or `text/` and no `papers.json` | on |
|
|
142
|
+
| `corpus/record` | a field of `papers.json` that breaks the schema, at that field; a file in `pdf/` or `text/` that no copy's `stored` claims; a copy whose `stored` names a missing file; two copies of one paper storing one kind (a file that is not JSON is ESLint's parse error) | on |
|
|
143
|
+
| `corpus/licence` | a stored file whose copy has no licence recorded (`NOASSERTION`, decided by the author 2026-11-24), or whose licence does not permit that kind (decision 3), including an id outside the table and an NC licence in a project not declared non-commercial | off, in no set |
|
|
144
|
+
|
|
145
|
+
Each finding names its cure: record the licence and where it was read, or remove the file and keep
|
|
146
|
+
the ids.
|
|
147
|
+
|
|
148
|
+
**Why the two structure rules are on by default.** They hold for every corpus whatever the venue and
|
|
149
|
+
whoever reads the repository: a `papers.json` that does not parse breaks the skill that reads it, and
|
|
150
|
+
a stray file is a file no reader knows the meaning of. They are silent where no corpus exists.
|
|
151
|
+
|
|
152
|
+
**Why the licence rule is off and in no set.** The same stored files are illegal in a public
|
|
153
|
+
repository and legal in a private one, and the rule cannot tell which it is in; that is a finding a
|
|
154
|
+
careful author can dispute ("The Default Set Is What The Venue Decides"). A project whose corpus
|
|
155
|
+
others read turns it on; a private one leaves it off. It belongs to none of today's sets
|
|
156
|
+
(`paperlint:writing` is about prose); when #524 adds `recommended` and `strict`, it is a candidate
|
|
157
|
+
for one of them.
|
|
158
|
+
|
|
159
|
+
**Where they report, and how paperlint reaches a corpus.** Today nothing under `venues/` is linted
|
|
160
|
+
([`docs/venues.md`](../venues.md#what-checks-it)): rule blocks are scoped to paper files, and a rule
|
|
161
|
+
runs only for a file that exists. `papers.json` is that file: paperlint lints it with ESLint's own
|
|
162
|
+
JSON language (`@eslint/json`), so `corpus/record` reports at the field that is wrong, by line and
|
|
163
|
+
column, and a file that is not JSON fails as ESLint's parse error (spike 2026-11-24, `@eslint/json`
|
|
164
|
+
2.1.1 on ESLint 10.10.0: a planted `"licence": 7` reported at `4:45`; a clean record silent; a cut-off
|
|
165
|
+
file `1:1 Parsing error`). A corpus folder with `pdf/` or `text/` and no `papers.json` has no file to
|
|
166
|
+
anchor on; `corpus/allowed-files-only` reports it on the project's root `paperlint.json`, which
|
|
167
|
+
`@eslint/json` also reads. The corpus is kept out of the paper rules (#215, part 1): a `paper.tex`
|
|
168
|
+
saved in a corpus is an accepted paper's source, not one of the user's papers.
|
|
169
|
+
|
|
170
|
+
5. **The fixed file names**: `papers.json`, `MANIFEST.md` (optional, caveats only), `measurements.json`, `pdf/<key>.pdf`,
|
|
171
|
+
`text/<key>.txt` and `text/<key>.<variant>.txt` (one paper extracted twice, by `pdftotext` and by
|
|
172
|
+
`pdfminer`, or its first page alone), `deep-reads/<key>.md`, `sources/` (saved listing and call
|
|
173
|
+
pages, not judged). The author's own paper is never in a corpus: its text belongs in its paper folder.
|
|
174
|
+
|
|
175
|
+
6. **What is a copy, and what is not.** `pdf/` and `text/` hold copies; the rule judges only them.
|
|
176
|
+
Titles, abstracts, and short quotes inside codes or deep reads are metadata and quotation, not copies
|
|
177
|
+
(decided below).
|
|
178
|
+
|
|
179
|
+
7. **A behaviour change, said plainly.** `docs/venues.md` and `study-accepted-papers` today tell the
|
|
180
|
+
skill to extract a text for every paper. From PR 1a they tell it to read the copy's licence first and
|
|
181
|
+
extract only what the table permits, keeping ids for the rest; "the PDFs are not committed" becomes
|
|
182
|
+
"a PDF is kept when its copy's licence permits it" (#302's proposal). The rule then turns the old
|
|
183
|
+
instruction's output into findings on a corpus that opts in.
|
|
184
|
+
|
|
185
|
+
## Measured on a real consumer (2026-11-24)
|
|
186
|
+
|
|
187
|
+
Before writing the rule, a consumer's six corpora were inventoried, git-tracked files only:
|
|
188
|
+
|
|
189
|
+
| stored third-party copies | permitted by the recorded licence | non-commercial | ND, extracted text | not permitted | no licence recorded | source of the copy not recorded |
|
|
190
|
+
| ------------------------: | --------------------------------: | -------------: | -----------------: | ------------: | ------------------: | ------------------------------: |
|
|
191
|
+
| 217 | 19 | 3–4 | 5 | 12 | 179 | 18 |
|
|
192
|
+
|
|
193
|
+
The 12 not permitted are extracted texts of arXiv preprints under the non-exclusive licence, two of them in
|
|
194
|
+
a corpus that had already dropped the same papers' PDFs for that licence and kept the text. The 179 are
|
|
195
|
+
whole corpora built before a licence field existed; for most of them the licence is one request away (the
|
|
196
|
+
copy is an arXiv or ACL Anthology paper), which is what PR 2 automates. No corpus there has a `papers.json`
|
|
197
|
+
yet, so until it migrates the rule reports one finding per corpus that stores copies, not 12 + 179.
|
|
198
|
+
|
|
199
|
+
Identity is thinner than a DOI: 4 of 16, 23 of 49, 12 of 48 and 11 of 17 rows in four of its lists have
|
|
200
|
+
neither a DOI nor an arXiv id, only the conference page's id or URL. Hence `ids.url`.
|
|
201
|
+
|
|
202
|
+
## Migration
|
|
203
|
+
|
|
204
|
+
A corpus migrates by a script the consumer runs once, which writes `papers.json` from its old lists and
|
|
205
|
+
renames stored files to `pdf/<key>.pdf` and `text/<key>[.<variant>].txt`; old fields stay on the rows, and
|
|
206
|
+
a script that read a path from an old field reads the derived path instead. The author's own paper moves
|
|
207
|
+
to its paper folder. Licences that were never read stay `NOASSERTION` until PR 2's lister fills them in.
|
|
208
|
+
|
|
209
|
+
## The order of the pull requests
|
|
210
|
+
|
|
211
|
+
| PR | what | part of |
|
|
212
|
+
| ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
|
|
213
|
+
| 1a | the schema and its parser, the licence table, this note, `docs/venues.md` and `study-accepted-papers` rewritten to the record (decision 7) | #302 |
|
|
214
|
+
| 1b-i | `corpus/record` on `papers.json`, linted with `@eslint/json` and reporting at the field; the record gains `capped`, `proxy` and `rebuild`; `MANIFEST.md` optional; the corpus kept out of the paper rules; the rule's page under `docs/rules/corpus/`, linked from `docs/venues.md` | #302, #215 (1) |
|
|
215
|
+
| 1b-ii | `corpus/allowed-files-only` (#500's second rule, moved up from PR 4): the corpus's fixed names, and a corpus with `pdf/` or `text/` and no `papers.json`, reported on the root `paperlint.json`; merged right after 1b-i, so a consumer meets both in one evening | #500 (1 of 2) |
|
|
216
|
+
| 1b-iii | `corpus/licence` (off, in no set) with its page, linked from `docs/optional-rules.md`; a test that every rule id has the one-slash shape of "A Rule Id Names Its Subject" | #302 |
|
|
217
|
+
| 2 | the venue lister #568 asks for, as a shared tested script that `study-accepted-papers` calls (not a new CLI command), writing `papers.json` rows with ids and licences | #568 |
|
|
218
|
+
| 3 | the current cycle's venue has a corpus (matched by series, decision 1), the first of #356's three parts | #356 (1 of 3) |
|
|
219
|
+
|
|
220
|
+
PR 1a stands alone: a corpus written by hand, or by the skill, validates. Readers that compare a paper with
|
|
221
|
+
the corpus (#608 abstract rewrites, #465 the panel's demands, a title and scope comparison) come after PR 2.
|
|
222
|
+
The source order of PR 2 was measured on 2026-11-24, keyless, against three venues whose accepted
|
|
223
|
+
lists were known (27, 16 and 34 papers):
|
|
224
|
+
|
|
225
|
+
| field | first source | then | never |
|
|
226
|
+
| ----------------------------- | ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------- |
|
|
227
|
+
| the list | Crossref, filtered by the proceedings' full container title (ACM); the Anthology volume `.bib`/`.xml` (ACL) | OpenAlex by source id, as a cross-check; the programme page for papers without a DOI | |
|
|
228
|
+
| abstract | the programme's paper page | Semantic Scholar by DOI, OpenAlex, arXiv OAI-PMH | Crossref (none deposited) |
|
|
229
|
+
| arXiv id | Semantic Scholar and OpenAlex, their union | | Crossref `relation` (always empty) |
|
|
230
|
+
| licence of the published copy | Crossref `license[]`, every URL kept | | |
|
|
231
|
+
| licence of the arXiv copy | arXiv OAI-PMH `<license>` | | OpenAlex (null for the arXiv default, once wrong), Semantic Scholar (its licence is of whichever copy it picked) |
|
|
232
|
+
|
|
233
|
+
Three gaps stay open: IEEE deposits no Creative Commons licence (only text-and-data-mining policy URLs), the
|
|
234
|
+
ACL Anthology states one licence for the whole site and none per paper, and the licence printed inside a PDF
|
|
235
|
+
can belong to another copy (an arXiv PDF printing its published version's footer), so the PDF is not a
|
|
236
|
+
source. Semantic Scholar's venue search and the arXiv Atom API refused every request that day (HTTP 429),
|
|
237
|
+
so neither was measured.
|
|
238
|
+
|
|
239
|
+
## Decided by the author (2026-11-24)
|
|
240
|
+
|
|
241
|
+
- **A copy with no licence recorded is a finding**, like a licence that forbids it: a check that passes
|
|
242
|
+
what it cannot see looks the same as one that checked. On the consumer above that is 179 findings once
|
|
243
|
+
it migrates and opts in, until PR 2's lister fills the licences in.
|
|
244
|
+
- **Titles and abstracts are kept as metadata whatever the licence**, and `docs/venues.md` says so. Every
|
|
245
|
+
scholarly API (Crossref, Semantic Scholar, arXiv) serves them openly and every corpus examined keeps
|
|
246
|
+
them; no source settles that storing them is allowed.
|
|
247
|
+
|
|
248
|
+
## Rejected
|
|
249
|
+
|
|
250
|
+
- **One licence per paper.** It cannot say which copy a stored file is, and the same paper's two copies
|
|
251
|
+
routinely differ.
|
|
252
|
+
- **A dataset-level licence, as S2ORC or the ACL OCL corpus declare.** The corpus mixes publishers and
|
|
253
|
+
licences; one line cannot be true for all of it.
|
|
254
|
+
- **A licence sidecar only (one row per stored file), the old lists left as they are.** It catches the same
|
|
255
|
+
violations in one PR and cannot have two copies claim one file, but it gives no list a lister can write
|
|
256
|
+
and #356, #608 and #465 can read, and a hand-written path drifts. Its one strength is kept: each stored
|
|
257
|
+
file is a recorded fact (`fetched_from`, one storing copy per kind).
|
|
258
|
+
- **Rejecting an unlisted licence id at parse time.** One `CC-BY-3.0` would hide every other check and
|
|
259
|
+
break every later reader until a release; it gets a finding instead.
|
|
260
|
+
- **Paths to stored files written in the record.** A second fact that can drift from the folder; the path
|
|
261
|
+
is derived from `key`.
|
|
262
|
+
|
|
263
|
+
## What it does not check
|
|
264
|
+
|
|
265
|
+
- That a stored file is the copy it is attributed to: it checks that the attribution and its source were
|
|
266
|
+
recorded.
|
|
267
|
+
- Whether the recorded licence is the true one: it checks that a licence was read and from where.
|
|
268
|
+
- Whether the repository is public, or the project really non-commercial.
|
|
269
|
+
- The legal questions the sources leave open (extraction under ND, what counts as non-commercial); the
|
|
270
|
+
table takes the cautious reading for the first and asks the project for the second.
|
|
271
|
+
- Anything outside `pdf/` and `text/` until PR 4.
|
package/docs/layout.md
CHANGED
|
@@ -15,7 +15,7 @@ flowchart TB
|
|
|
15
15
|
N["<b>paperlint new</b><br/>creates the paper folder<br/>checked from here on:<br/>every lint · paper/allowed-files-only<br/>every new file · hook paper-folder-layout"]
|
|
16
16
|
S1["<b>1 · idea</b><br/>research-ideate · map-prior-work<br/>analyze-sibling-paper<br/>writes: siblings/<br/>checked by: sibling/frontmatter"]
|
|
17
17
|
S2["<b>2 · venue</b><br/>find-venue · plan-paper-timeline<br/>study-accepted-papers, mode A or B<br/>writes: paperlint.json, a report in reviews/<br/>checked by: review/frontmatter"]
|
|
18
|
-
V[("<b>#lt;papers-root#gt;/venues/#lt;venue#gt;/</b><br/>beside the papers, not in one:<br/>the venue's accepted papers,<br/>shared by every paper aimed at it<br/>checked by:
|
|
18
|
+
V[("<b>#lt;papers-root#gt;/venues/#lt;venue#gt;/</b><br/>beside the papers, not in one:<br/>the venue's accepted papers,<br/>shared by every paper aimed at it<br/>checked by: corpus/record")]
|
|
19
19
|
subgraph S3["3 · study: repro/#lt;id#gt;-#lt;slug#gt;/"]
|
|
20
20
|
direction TB
|
|
21
21
|
D["<b>design</b> · build-benchmark<br/>paperlint studies new<br/>writes: the study's folder, README.md,<br/>its row in repro/studies.json<br/>checked by: repro/allowed-files-only,<br/>repro/study-registered"]
|
|
@@ -103,7 +103,7 @@ Both are explained in [`venues.md`](venues.md).
|
|
|
103
103
|
|
|
104
104
|
| place | stage | written by | checked by |
|
|
105
105
|
| ------------------------------------ | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
106
|
-
| `<papers-root>/venues/<venue>/` | 2 venue | `study-accepted-papers`, its first run for that venue (mode A, usually) |
|
|
106
|
+
| `<papers-root>/venues/<venue>/` | 2 venue | `study-accepted-papers`, its first run for that venue (mode A, usually) | [`corpus/record`](rules/corpus/record.md) ([what it reads](venues.md#what-checks-it)) |
|
|
107
107
|
| the paper folder's root | before 1 | `paperlint new`: the three files, and an empty `.gitkeep` folder for `reviews/`, `research/`, `figures/`, `versions/`, `submission/`, `repro/tools/`, `repro/data/` (`repro/` gets a stub index) | [`paper/allowed-files-only`](rules/paper/allowed-files-only.md); the hook `paper-folder-layout` refuses a new stray entry |
|
|
108
108
|
| `PIPELINE-STATUS.md` | every stage | `paperlint new`, then `paper-pipeline`, `paper-status`; `study-accepted-papers` (the scorecard) | `paper/stages`, `paper/source`, [`cycle/submitted-frozen`](rules/cycle/submitted-frozen.md) ([rules](rules.md)) |
|
|
109
109
|
| `paperlint.json` | before 1, then 2 | `paperlint new`; `find-venue` names the venue | `paperlint lint` refuses an unknown key; [`cycle/record`](rules/cycle/record.md) |
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# corpus/record
|
|
2
|
+
|
|
3
|
+
**Level:** error, on by default · **Reads:** a venue corpus's `papers.json`, and the listing of its
|
|
4
|
+
`pdf/` and `text/` · **Reported on:** `papers.json`, at the line of the field each finding names
|
|
5
|
+
|
|
6
|
+
## What it catches
|
|
7
|
+
|
|
8
|
+
A venue corpus, `<papers-root>/venues/<venue>/` ([`venues.md`](../../venues.md#the-corpus-of-accepted-papers)),
|
|
9
|
+
keeps copies of accepted papers in `pdf/` and `text/`. Its record, `papers.json`, says for each
|
|
10
|
+
paper which copy every stored file is and under which licence, and how the corpus was collected.
|
|
11
|
+
`paperlint lint` lints `papers.json` with ESLint's JSON language, and the rule reports:
|
|
12
|
+
|
|
13
|
+
- a field that does not match the record's schema (`unparsed`), at that field: a misspelt key where
|
|
14
|
+
it stands, a wrong value at its key, a required field left out at the object that should hold it.
|
|
15
|
+
It is the parser the skill's script uses, so the two refuse the same record; the fields are in
|
|
16
|
+
`papers.schema.json`, shipped with `study-accepted-papers`;
|
|
17
|
+
- a file in `pdf/` or `text/` that no copy's `stored` claims (`unclaimed`), including a name that
|
|
18
|
+
is not `pdf/<key>.pdf`, `text/<key>.txt` or `text/<key>.<variant>.txt`: at the paper's `copies`
|
|
19
|
+
when the record lists the paper, otherwise on the first line;
|
|
20
|
+
- a copy whose `stored` names a kind whose file is not there (`missing`), at that `stored`;
|
|
21
|
+
- two copies of one paper that both store one kind (`twice`), at the second copy's `stored`: one
|
|
22
|
+
file is a copy of one version.
|
|
23
|
+
|
|
24
|
+
A `papers.json` that is not JSON is not this rule's finding: ESLint reports it as a parse error on
|
|
25
|
+
its first line. A `paper.tex` or `PIPELINE-STATUS.md` kept in a corpus (an accepted paper's source)
|
|
26
|
+
is not one of the project's papers: no paper rule judges it.
|
|
27
|
+
|
|
28
|
+
## Why
|
|
29
|
+
|
|
30
|
+
A real consumer kept six corpora with five names for the paper list and 217 stored copies, 179 of
|
|
31
|
+
them with no licence recorded and 18 whose source nobody wrote down
|
|
32
|
+
([the design note](../../design/venue-corpus.md#measured-on-a-real-consumer-2026-11-24)). A copy
|
|
33
|
+
the record does not name is a copy nobody can say may be kept. The rule holds that every stored
|
|
34
|
+
file is a recorded fact; whether its licence permits keeping it is a separate question, for a
|
|
35
|
+
separate rule.
|
|
36
|
+
|
|
37
|
+
It is on by default because it holds for every corpus whatever the venue: a `papers.json` that
|
|
38
|
+
does not parse breaks the skill that reads it, and a file the record does not name is one no reader
|
|
39
|
+
knows the meaning of. It is silent in a project with no `venues/`.
|
|
40
|
+
|
|
41
|
+
## Examples
|
|
42
|
+
|
|
43
|
+
Failing: a date written as a number.
|
|
44
|
+
|
|
45
|
+
```text
|
|
46
|
+
papers/venues/agent/papers.json
|
|
47
|
+
27:13 error `papers.0.copies.0.licence.read_on`: Invalid input: expected string, received number.
|
|
48
|
+
What to do: correct the field; the fields are in the JSON Schema `papers.schema.json`
|
|
49
|
+
that `study-accepted-papers` ships corpus/record
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Failing: a copy claims a PDF that is not there.
|
|
53
|
+
|
|
54
|
+
```text
|
|
55
|
+
papers/venues/agent/papers.json
|
|
56
|
+
30:11 error a copy of `2026-01` stores `pdf` in `papers.json`, and `pdf/2026-01.pdf` is not there.
|
|
57
|
+
What to do: put the file back, or remove `"pdf"` from that copy's `stored` corpus/record
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Passing: the PDF claimed by the copy it was downloaded from, and the file in `pdf/2026-01.pdf`.
|
|
61
|
+
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"key": "2026-01",
|
|
65
|
+
"copies": [
|
|
66
|
+
{
|
|
67
|
+
"version": "published",
|
|
68
|
+
"url": "https://doi.org/10.1145/3786167.3788430",
|
|
69
|
+
"licence": {
|
|
70
|
+
"id": "CC-BY-4.0",
|
|
71
|
+
"read_from": "https://api.crossref.org/works/10.1145/3786167.3788430",
|
|
72
|
+
"read_on": "2026-11-03"
|
|
73
|
+
},
|
|
74
|
+
"fetched_from": "https://dl.acm.org/doi/pdf/10.1145/3786167.3788430",
|
|
75
|
+
"stored": ["pdf"]
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Passing: a corpus that keeps only ids, with `pdf/` and `text/` absent or empty.
|
|
82
|
+
|
|
83
|
+
## Options / preset fields
|
|
84
|
+
|
|
85
|
+
No rule options. The rule is on for every corpus; a project turns it off in its root
|
|
86
|
+
`paperlint.json`:
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{ "rules": { "corpus/record": "off" } }
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
A paper's own `paperlint.json` does not reach a corpus: the corpus belongs to the venue, not to one
|
|
93
|
+
paper.
|
|
94
|
+
|
|
95
|
+
## What it does not check
|
|
96
|
+
|
|
97
|
+
- A corpus folder with no `papers.json`: there is no file to report on. The planned
|
|
98
|
+
`corpus/allowed-files-only` reports a corpus that stores files without one.
|
|
99
|
+
- Whether a stored copy's licence permits keeping it, or whether a licence was read at all: that is
|
|
100
|
+
the licence rule, planned and off by default.
|
|
101
|
+
- That a stored file is the copy it is attributed to; it checks that the attribution was recorded.
|
|
102
|
+
- Names in the corpus folder outside `pdf/` and `text/` (`deep-reads/`, `sources/`, a stray file),
|
|
103
|
+
and folders inside `pdf/` or `text/` beyond their names: the planned `corpus/allowed-files-only`.
|
|
104
|
+
- Hidden files in `pdf/` and `text/` (`.gitkeep`, `.DS_Store`): they are not copies.
|
|
105
|
+
- A corpus outside `<papers-root>/venues/`.
|
|
106
|
+
- `MANIFEST.md` (optional, caveats only) and `measurements.json`.
|
|
107
|
+
|
|
108
|
+
## How to fix
|
|
109
|
+
|
|
110
|
+
Each finding names its cure. In short:
|
|
111
|
+
|
|
112
|
+
- A field that breaks the schema: correct it. `capped`, `proxy` and `rebuild` are required; "none"
|
|
113
|
+
is `null` (`capped`, `proxy`) or `[]` (`rebuild`), never a field left out.
|
|
114
|
+
- A file nobody claims: add its kind to the `stored` of the copy it was fetched from, with
|
|
115
|
+
`fetched_from`, its licence and where the licence was read (`"version": "unknown"` with
|
|
116
|
+
`"licence": { "id": "NOASSERTION" }` where the licence was never read); or remove the file and
|
|
117
|
+
keep the paper's ids.
|
|
118
|
+
- A claimed file that is missing: put it back, or remove the kind from that copy's `stored`.
|
|
119
|
+
- Two copies storing one kind: keep the kind on the copy the file was fetched from.
|
package/docs/rules.md
CHANGED
|
@@ -9,6 +9,7 @@ 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
13
|
| [`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) |
|
|
13
14
|
| [`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) |
|
|
14
15
|
| [`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) |
|