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
package/docs/venues.md
CHANGED
|
@@ -137,7 +137,8 @@ merged 2026-10-27 09:35 UTC, the wait for review included), AIDC with the IEEE f
|
|
|
137
137
|
|
|
138
138
|
`<papers-root>` is the papers directory: `papersDir` in the project's `paperlint.json`, default
|
|
139
139
|
`papers/`. The corpus lives there, beside the paper folders and not inside any of them, because it
|
|
140
|
-
belongs to the venue: every paper aimed at that venue reads the same one.
|
|
140
|
+
belongs to the venue: every paper aimed at that venue reads the same one. The corpus folder is named
|
|
141
|
+
after the venue preset's series, the preset id without its year: `agent` for `paperlint:agent-2027`.
|
|
141
142
|
|
|
142
143
|
```text
|
|
143
144
|
<papers-root>/
|
|
@@ -151,12 +152,12 @@ belongs to the venue: every paper aimed at that venue reads the same one.
|
|
|
151
152
|
The skill `study-accepted-papers` makes it, the first time it runs for that venue. It always asks
|
|
152
153
|
which mode to run, and suggests one from what exists:
|
|
153
154
|
|
|
154
|
-
| mode | when | stage | what it adds to the corpus
|
|
155
|
-
| -------- | ---------------------------------------------- | -------- |
|
|
156
|
-
| A idea | a target venue and an idea; no `paper.tex` yet | 2 venue | the
|
|
157
|
-
| B design | a planned claim and measurements; no text yet | 2 venue | the same, if not there yet
|
|
158
|
-
| C draft | the paper's text exists | 5 review | the deep reads (L2), one file per paper
|
|
159
|
-
| D final | near-final text, the deadline close | 5 review | nothing new; it compares wording against the closest papers
|
|
155
|
+
| mode | when | stage | what it adds to the corpus |
|
|
156
|
+
| -------- | ---------------------------------------------- | -------- | --------------------------------------------------------------------------- |
|
|
157
|
+
| A idea | a target venue and an idea; no `paper.tex` yet | 2 venue | the rows of the award winners and the ordinary papers, their codes (L0, L1) |
|
|
158
|
+
| B design | a planned claim and measurements; no text yet | 2 venue | the same, if not there yet |
|
|
159
|
+
| C draft | the paper's text exists | 5 review | the deep reads (L2), one file per paper |
|
|
160
|
+
| D final | near-final text, the deadline close | 5 review | nothing new; it compares wording against the closest papers |
|
|
160
161
|
|
|
161
162
|
So the corpus usually appears at stage 2, right after `find-venue` and before the study is
|
|
162
163
|
designed, when what the venue rewards can still shape the study. A paper that first runs the skill
|
|
@@ -167,21 +168,141 @@ what is missing.
|
|
|
167
168
|
|
|
168
169
|
```text
|
|
169
170
|
<papers-root>/venues/<venue>/
|
|
170
|
-
├──
|
|
171
|
-
├── the
|
|
172
|
-
├── measurements.json
|
|
173
|
-
├──
|
|
174
|
-
├──
|
|
175
|
-
├── the
|
|
176
|
-
|
|
171
|
+
├── papers.json ← the record: every paper and every copy of it with its licence; the sources, years, what was capped, the stand-in for "strong accept", the commands that rebuild it
|
|
172
|
+
├── MANIFEST.md ← optional: caveats only, the prose no field holds
|
|
173
|
+
├── measurements.json ← the codes of L0 and L1, one row per paper, keyed by its key
|
|
174
|
+
├── pdf/<key>.pdf ← a paper's PDF, only when a copy's licence permits keeping it
|
|
175
|
+
├── text/<key>.txt ← its extracted text, on the same condition
|
|
176
|
+
├── text/<key>.<variant>.txt ← a second extraction of the same paper (another extractor, the first page alone)
|
|
177
|
+
├── deep-reads/<key>.md ← one file per paper read in full (L2), usable by any paper
|
|
178
|
+
└── sources/ ← the listing and call pages as they were read
|
|
177
179
|
```
|
|
178
180
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
181
|
+
These are all the names a corpus holds. The award winners and the ordinary accepted papers are rows
|
|
182
|
+
of `papers.json` (`group` `award` and `accepted`), and so are the papers of other venues, corpus 2
|
|
183
|
+
(`group` `sister`): one record, the corpora told apart by a field. How the corpus was collected is
|
|
184
|
+
in the record too: each edition's `capped` (what was left out and why, `null` when nothing was) and
|
|
185
|
+
`proxy` (the stand-in for "strong accept" and how many papers it marks, `null` when there is none),
|
|
186
|
+
and `rebuild`, the commands that fetched and measured (the scripts are not kept in the corpus).
|
|
187
|
+
Coverage is never written down: it is counted from the rows. `MANIFEST.md` is optional and holds
|
|
188
|
+
caveats only, such as a mechanism the venue adds to the generic ten (M1–M10, kept beside the skill)
|
|
189
|
+
or one that does not hold there; no rule reads it. The author's own paper is never in a corpus: its
|
|
190
|
+
text belongs in its paper folder.
|
|
191
|
+
|
|
192
|
+
### The record, `papers.json`
|
|
193
|
+
|
|
194
|
+
One row per paper, and in it every copy of the paper we know of with that copy's licence. A real
|
|
195
|
+
row, from a workshop's 2026 list:
|
|
196
|
+
|
|
197
|
+
```json
|
|
198
|
+
{
|
|
199
|
+
"venue": "agent",
|
|
200
|
+
"editions": [
|
|
201
|
+
{
|
|
202
|
+
"edition": 2026,
|
|
203
|
+
"listed_from": "https://conf.researchr.org/home/icse-2026/agent-2026",
|
|
204
|
+
"read_on": "2026-11-03",
|
|
205
|
+
"accepted": 27,
|
|
206
|
+
"capped": null,
|
|
207
|
+
"proxy": null
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"papers": [
|
|
211
|
+
{
|
|
212
|
+
"key": "2026-01",
|
|
213
|
+
"edition": 2026,
|
|
214
|
+
"group": "accepted",
|
|
215
|
+
"title": "A Catalogue of Evaluation Metrics for LLM-Based Multi-Agent Frameworks in Software Engineering",
|
|
216
|
+
"authors": [
|
|
217
|
+
"Ingrid Lima",
|
|
218
|
+
"Vitor Linhares",
|
|
219
|
+
"Anderson Martins Gomes",
|
|
220
|
+
"Paulo Maia"
|
|
221
|
+
],
|
|
222
|
+
"abstract": "LLM-based Multi-Agent (LMA) frameworks have recently gained traction …",
|
|
223
|
+
"ids": { "doi": "10.1145/3786167.3788430" },
|
|
224
|
+
"copies": [
|
|
225
|
+
{
|
|
226
|
+
"version": "published",
|
|
227
|
+
"url": "https://doi.org/10.1145/3786167.3788430",
|
|
228
|
+
"licence": {
|
|
229
|
+
"id": "CC-BY-4.0",
|
|
230
|
+
"read_from": "https://api.crossref.org/works/10.1145/3786167.3788430",
|
|
231
|
+
"read_on": "2026-11-03"
|
|
232
|
+
},
|
|
233
|
+
"stored": []
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"rebuild": []
|
|
239
|
+
}
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
The fields, their values and which are required are the JSON Schema
|
|
243
|
+
[`skills/study-accepted-papers/papers.schema.json`](../skills/study-accepted-papers/papers.schema.json),
|
|
244
|
+
generated from the parser (`src/adapters/venue-corpus/index.ts`; `npm run schema:venue-corpus`
|
|
245
|
+
rewrites it, and a test fails when it is stale). A schema cannot say that a key is unique, that a
|
|
246
|
+
paper's edition is one of `editions[].edition`, or that a copy that stores a file names where it was
|
|
247
|
+
fetched from; the parser checks those and the skill's script reports each with its path.
|
|
248
|
+
|
|
249
|
+
Every web address is `http` or `https`. The top level, an edition, a copy, a licence and `ids` are
|
|
250
|
+
strict, so a misspelt key is an error; a paper row keeps any further field as it is, for a project's
|
|
251
|
+
own scripts. A copy whose origin nobody recorded is `unknown`, and its licence can only be
|
|
252
|
+
`NOASSERTION`. The paths of stored files are not written in the record: they follow from `key`.
|
|
253
|
+
|
|
254
|
+
### Licences: what a corpus may keep
|
|
255
|
+
|
|
256
|
+
A licence belongs to a **copy**, not to a paper. The same paper is often CC BY in the proceedings and
|
|
257
|
+
under arXiv's non-exclusive licence as a preprint, and a stored file is a copy of one version, so it
|
|
258
|
+
is judged by that version's licence.
|
|
259
|
+
|
|
260
|
+
Before it downloads a PDF or extracts a text, `study-accepted-papers` reads each copy's licence,
|
|
261
|
+
writes it in `papers.json`, and keeps a PDF or a text only when a copy's licence permits that kind;
|
|
262
|
+
for the other papers it keeps the ids. What each licence permits is one table, in paperlint's
|
|
263
|
+
`src/domain/licence.ts`, with its reasons in [the design note](design/venue-corpus.md#what-is-decided)
|
|
264
|
+
(decision 3). In short: CC0 1.0, CC BY 4.0 and CC BY-SA 4.0 permit both; an ND licence permits the
|
|
265
|
+
PDF and not an extracted text; an NC licence permits only in a project declared non-commercial; arXiv's
|
|
266
|
+
non-exclusive licence, a publisher's own and a licence not read (`NOASSERTION`) permit neither; and an
|
|
267
|
+
id the table does not list, another CC version included, permits nothing. The
|
|
268
|
+
setting by which a project declares itself non-commercial is not shipped yet: until it is, an NC
|
|
269
|
+
copy is treated as not permitted.
|
|
270
|
+
|
|
271
|
+
The skill's script prints, for each paper and each kind, the copy to keep or each copy's reason:
|
|
272
|
+
|
|
273
|
+
```text
|
|
274
|
+
node <skills>/study-accepted-papers/scripts/corpus-licences.js agent
|
|
275
|
+
2026-01 text: keep the published copy (CC-BY-4.0), https://doi.org/10.1145/3786167.3788430
|
|
276
|
+
2026-01 pdf: keep the published copy (CC-BY-4.0), https://doi.org/10.1145/3786167.3788430
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
It takes the venue, and finds `<papers-root>/venues/<venue>/papers.json` itself: the project is the git
|
|
280
|
+
top level of the folder it runs in, and the papers roots are `papersDir` in the project's
|
|
281
|
+
`paperlint.json`. Exactly one root may hold the venue; none or several is exit 1, naming the folders.
|
|
282
|
+
It parses `papers.json` first, and a record that does not parse is reported with the path of each
|
|
283
|
+
problem, exit 1.
|
|
284
|
+
|
|
285
|
+
**Titles and abstracts are kept as metadata whatever the licence.** Every scholarly API (Crossref,
|
|
286
|
+
Semantic Scholar, arXiv) serves them openly; they are not copies. Neither are the short quotes inside
|
|
287
|
+
the codes or a deep read.
|
|
182
288
|
|
|
183
|
-
|
|
184
|
-
|
|
289
|
+
### Where a copy's licence is read from
|
|
290
|
+
|
|
291
|
+
Measured on 2026-11-24, without API keys, on three venues whose accepted lists were known (27, 16 and
|
|
292
|
+
34 papers). `read_from` names the page or the API response the licence was read from:
|
|
293
|
+
|
|
294
|
+
| what | read it from | then | never |
|
|
295
|
+
| ----------------------------- | ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------- |
|
|
296
|
+
| 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 | |
|
|
297
|
+
| abstract | the programme's paper page | Semantic Scholar by DOI, OpenAlex, arXiv OAI-PMH | Crossref (none deposited) |
|
|
298
|
+
| arXiv id | Semantic Scholar and OpenAlex, their union | | Crossref `relation` (always empty) |
|
|
299
|
+
| licence of the published copy | Crossref `license[]`, every URL kept | | |
|
|
300
|
+
| 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) |
|
|
301
|
+
|
|
302
|
+
**The licence line printed inside a PDF is not a source**: it can belong to another copy (an arXiv
|
|
303
|
+
PDF printing its published version's footer). Two gaps stay open: IEEE deposits no Creative Commons
|
|
304
|
+
licence (only text-and-data-mining policy URLs), and the ACL Anthology states one licence for the
|
|
305
|
+
whole site and none per paper. Where no source gives a copy's licence, it stays `NOASSERTION`.
|
|
185
306
|
|
|
186
307
|
### Who reads it
|
|
187
308
|
|
|
@@ -194,12 +315,25 @@ hold there, is written in `MANIFEST.md`.
|
|
|
194
315
|
|
|
195
316
|
### What checks it
|
|
196
317
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
318
|
+
[`corpus/record`](rules/corpus/record.md), on by default, reads every corpus's `papers.json` under
|
|
319
|
+
`<papers-root>/venues/`: `paperlint lint` lints the file as JSON and reports, at the line of the field,
|
|
320
|
+
a field that breaks the record's schema, a stored file no copy claims, a claimed file that is
|
|
321
|
+
missing, and two copies of one paper storing one kind. A `papers.json` that is not JSON fails as a
|
|
322
|
+
parse error on its first line. A corpus folder without `papers.json` is not this rule's: the planned
|
|
323
|
+
`corpus/allowed-files-only` will report it. A project turns the rule off with
|
|
324
|
+
`{ "rules": { "corpus/record": "off" } }` in its root `paperlint.json`.
|
|
325
|
+
|
|
326
|
+
Nothing in a corpus is a paper: a `paper.tex` kept there is an accepted paper's source, and no
|
|
327
|
+
paper rule judges it. The hook that refuses misplaced files acts only inside a paper folder.
|
|
328
|
+
|
|
329
|
+
Two more rules of the family are planned for later releases, **not shipped yet**:
|
|
330
|
+
|
|
331
|
+
| rule | will report |
|
|
332
|
+
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
333
|
+
| `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 |
|
|
334
|
+
| `corpus/allowed-files-only` | a name in the corpus folder outside the names above, and a corpus that stores files with no `papers.json` |
|
|
201
335
|
|
|
202
|
-
|
|
336
|
+
Also checked: a corpus started **inside** a paper folder. A `venues/` or
|
|
203
337
|
`venue-corpus/` folder at a paper's root is reported, with this place as where it goes
|
|
204
338
|
([the paper folder's layout](rules/paper/allowed-files-only.md)), and the hook refuses to create one.
|
|
205
339
|
|
package/eslint-rules/CLAUDE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- vigiles:sha256:
|
|
1
|
+
<!-- vigiles:sha256:35cb814eec608ef3 compiled from eslint-rules/CLAUDE.md.spec.ts -->
|
|
2
2
|
|
|
3
3
|
# CLAUDE.md
|
|
4
4
|
|
|
@@ -40,6 +40,10 @@ the checks push every paper toward a blog post.
|
|
|
40
40
|
|
|
41
41
|
## Rules
|
|
42
42
|
|
|
43
|
+
### A Rule Id Names Its Subject
|
|
44
|
+
|
|
45
|
+
**Guidance only** — A rule id is `<family>/<rule>`: one slash, kebab-case, as ESLint's `plugin/rule`. The family is the folder or record the rule judges (`paper/`, `repro/`, `cycle/`, `corpus/`), never the kind of check and never a venue; a new family only when no existing one judges that subject. The same check keeps the same name in every family: `allowed-files-only` for a folder's whitelist of names, `record` for a record file read against its schema, `layout` for a folder's shape. So related rules sort together and a reader who knows one family can guess another's rule. The rule's page is `docs/rules/<family>/<rule>.md`, held by `src/rule-docs.test.ts`. The author asked for this on 2026-11-24.
|
|
46
|
+
|
|
43
47
|
### Lint Rule Over Script
|
|
44
48
|
|
|
45
49
|
**Guidance only** — A check over a syntax tree is a lint rule, not a script. It fires in the editor on save, gets the AST for free, and has a suppression syntax people already know. A script is for corpus-wide questions — index connectivity, ratios across many files. When the work has to run a program, a script may do the work and write facts to a JSON file, and a rule judges that file: the verdict still lands in the engine.
|
|
@@ -37,6 +37,9 @@ the checks push every paper toward a blog post.
|
|
|
37
37
|
tic, plus a check that no claim was softened or strengthened.`,
|
|
38
38
|
},
|
|
39
39
|
rules: {
|
|
40
|
+
"a-rule-id-names-its-subject": guidance(
|
|
41
|
+
"A rule id is `<family>/<rule>`: one slash, kebab-case, as ESLint's `plugin/rule`. The family is the folder or record the rule judges (`paper/`, `repro/`, `cycle/`, `corpus/`), never the kind of check and never a venue; a new family only when no existing one judges that subject. The same check keeps the same name in every family: `allowed-files-only` for a folder's whitelist of names, `record` for a record file read against its schema, `layout` for a folder's shape. So related rules sort together and a reader who knows one family can guess another's rule. The rule's page is `docs/rules/<family>/<rule>.md`, held by `src/rule-docs.test.ts`. The author asked for this on 2026-11-24.",
|
|
42
|
+
),
|
|
40
43
|
"lint-rule-over-script": guidance(
|
|
41
44
|
"A check over a syntax tree is a lint rule, not a script. It fires in the editor on save, gets the AST for free, and has a suppression syntax people already know. A script is for corpus-wide questions — index connectivity, ratios across many files. When the work has to run a program, a script may do the work and write facts to a JSON file, and a rule judges that file: the verdict still lands in the engine.",
|
|
42
45
|
),
|
package/eslint.config.mjs
CHANGED
|
@@ -267,6 +267,7 @@ export const IO_MODULES = [
|
|
|
267
267
|
*/
|
|
268
268
|
export const TOOL_PACKAGES = [
|
|
269
269
|
"@clack/prompts", // the terminal questions of `paperlint init`
|
|
270
|
+
"@eslint/json", // ESLint's JSON language
|
|
270
271
|
"@eslint/markdown", // ESLint's Markdown language
|
|
271
272
|
"@eslint/plugin-kit",
|
|
272
273
|
"@retorquere/bibtex-parser", // BibTeX
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paperlint",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.3.0",
|
|
4
4
|
"description": "A linter for scientific papers written in LaTeX: catches mistakes before you submit to a conference or journal.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"check": "node scripts/check.ts",
|
|
21
21
|
"pipeline": "node scripts/pipeline.ts",
|
|
22
22
|
"refresh-deadlines": "node --conditions=paperlint-source scripts/refresh-deadlines/main.ts",
|
|
23
|
+
"schema:venue-corpus": "node --conditions=paperlint-source scripts/venue-corpus-schema.ts skills/study-accepted-papers/papers.schema.json",
|
|
23
24
|
"sync:skills": "node scripts/sync-skills.ts",
|
|
24
25
|
"fmt": "prettier --write .",
|
|
25
26
|
"fmt:check": "prettier --check . && npm run sync:skills -- --check",
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
30
|
"@clack/prompts": "1.9.0",
|
|
31
|
+
"@eslint/json": "^2.1.1",
|
|
30
32
|
"@eslint/markdown": "^8.0.3",
|
|
31
33
|
"@eslint/plugin-kit": "^0.7.2",
|
|
32
34
|
"@retorquere/bibtex-parser": "^10.0.1",
|
package/scripts/bundle-skills.ts
CHANGED
|
@@ -49,6 +49,7 @@ export const SKILL_ENTRIES: readonly string[] = [
|
|
|
49
49
|
"skills/paper-pipeline/scripts/extract-ref-facts.mjs",
|
|
50
50
|
"skills/pc-panel-review/scripts/prior-reviews.ts",
|
|
51
51
|
"skills/run-agent-grid/scripts/grid-guard.ts",
|
|
52
|
+
"skills/study-accepted-papers/scripts/corpus-licences.ts",
|
|
52
53
|
"skills/verify-citations/scripts/bib-authors.mjs",
|
|
53
54
|
"skills/verify-citations/scripts/verify-cites.mjs",
|
|
54
55
|
];
|
|
@@ -12,7 +12,7 @@ const legacyCeilings = {
|
|
|
12
12
|
"eslint-rules/prereg-coverage.test.ts": 407,
|
|
13
13
|
"eslint-rules/prereg-coverage.ts": 320,
|
|
14
14
|
"eslint-rules/tex-build.test.mjs": 557,
|
|
15
|
-
"eslint.config.mjs":
|
|
15
|
+
"eslint.config.mjs": 636,
|
|
16
16
|
"scripts/coverage-config.test.ts": 376,
|
|
17
17
|
"scripts/pipeline.ts": 380,
|
|
18
18
|
"src/adapters/git/history.test.ts": 327,
|
|
@@ -65,7 +65,7 @@ const legacyCeilings = {
|
|
|
65
65
|
"src/lint-edited-hook.test.ts": 542,
|
|
66
66
|
"src/new-paper.test.ts": 783,
|
|
67
67
|
"src/outputs-before-decision-rule.test.ts": 406,
|
|
68
|
-
"src/paper-files.test.ts":
|
|
68
|
+
"src/paper-files.test.ts": 443,
|
|
69
69
|
"src/paper-includes.test.ts": 321,
|
|
70
70
|
"src/paper-settings-commands.test.ts": 318,
|
|
71
71
|
"src/paper-settings.test.ts": 519,
|
|
@@ -75,7 +75,7 @@ const legacyCeilings = {
|
|
|
75
75
|
"src/readability.test.ts": 331,
|
|
76
76
|
"src/references.test.ts": 715,
|
|
77
77
|
"src/register-bands.test.ts": 353,
|
|
78
|
-
"src/rule-cases.test.ts":
|
|
78
|
+
"src/rule-cases.test.ts": 1902,
|
|
79
79
|
"src/studies.test.ts": 354,
|
|
80
80
|
"src/study-gate.test.ts": 420,
|
|
81
81
|
"src/study-registry-rule.test.ts": 712,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `npm run schema:venue-corpus`: the script writes the schema the parser generates, where it is told.
|
|
3
|
+
*/
|
|
4
|
+
import { readFileSync } from "node:fs";
|
|
5
|
+
import { dirname, join } from "node:path";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
7
|
+
import { describe, expect, it } from "vitest";
|
|
8
|
+
import { venueCorpusSchemaText } from "../src/adapters/venue-corpus/index.ts";
|
|
9
|
+
import { runNode, useTempDir } from "../test/support.ts";
|
|
10
|
+
|
|
11
|
+
const SCRIPT = join(
|
|
12
|
+
dirname(fileURLToPath(import.meta.url)),
|
|
13
|
+
"venue-corpus-schema.ts",
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
describe("venue-corpus-schema.ts", () => {
|
|
17
|
+
const dir = useTempDir();
|
|
18
|
+
|
|
19
|
+
it("🔴 writes the generated schema to the file it is given", () => {
|
|
20
|
+
const out = join(dir, "papers.schema.json");
|
|
21
|
+
expect(
|
|
22
|
+
runNode(SCRIPT, [out], { nodeArgs: ["--conditions=paperlint-source"] }),
|
|
23
|
+
).toEqual({ status: 0, stdout: "", stderr: "" });
|
|
24
|
+
expect(readFileSync(out, "utf8")).toBe(venueCorpusSchemaText());
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it("no output file, or more than one: the usage, exit 2, nothing written", () => {
|
|
28
|
+
const usage = {
|
|
29
|
+
status: 2,
|
|
30
|
+
stdout: "",
|
|
31
|
+
stderr: "usage: node venue-corpus-schema.ts <output-file>\n",
|
|
32
|
+
};
|
|
33
|
+
const opts = { nodeArgs: ["--conditions=paperlint-source"] };
|
|
34
|
+
expect(runNode(SCRIPT, [], opts)).toEqual(usage);
|
|
35
|
+
expect(runNode(SCRIPT, [join(dir, "a"), join(dir, "b")], opts)).toEqual(
|
|
36
|
+
usage,
|
|
37
|
+
);
|
|
38
|
+
});
|
|
39
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Regenerates the JSON Schema of a venue corpus's papers.json from the record's parser
|
|
4
|
+
* (`src/adapters/venue-corpus`) into the file it is given. `npm run schema:venue-corpus` writes the
|
|
5
|
+
* shipped one (`SCHEMA_FILE`); a test fails until the committed file is the one this writes.
|
|
6
|
+
*
|
|
7
|
+
* Usage: node venue-corpus-schema.ts <output-file>
|
|
8
|
+
*/
|
|
9
|
+
import { writeFileSync } from "node:fs";
|
|
10
|
+
import { resolve } from "node:path";
|
|
11
|
+
import { venueCorpusSchemaText } from "#src/adapters/venue-corpus/index";
|
|
12
|
+
|
|
13
|
+
const [out, ...rest] = process.argv.slice(2);
|
|
14
|
+
if (out === undefined || rest.length > 0) {
|
|
15
|
+
process.stderr.write("usage: node venue-corpus-schema.ts <output-file>\n");
|
|
16
|
+
process.exitCode = 2;
|
|
17
|
+
} else writeFileSync(resolve(out), venueCorpusSchemaText());
|
|
@@ -8,15 +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-CXAGKT44.js";
|
|
12
12
|
import {
|
|
13
|
-
callerPath,
|
|
14
13
|
decoded,
|
|
15
|
-
nodeFiles,
|
|
16
14
|
readPaper,
|
|
17
15
|
runText
|
|
18
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
16
|
+
} from "../../../dist/skill-chunks/chunk-J5XYPERO.js";
|
|
19
17
|
import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
|
|
18
|
+
import {
|
|
19
|
+
callerPath,
|
|
20
|
+
nodeFiles
|
|
21
|
+
} from "../../../dist/skill-chunks/chunk-5KCU4WTN.js";
|
|
20
22
|
import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
|
|
21
23
|
import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
|
|
22
24
|
|
|
@@ -10,17 +10,19 @@ import {
|
|
|
10
10
|
parseLatex,
|
|
11
11
|
sourcesCodec,
|
|
12
12
|
visit
|
|
13
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
13
|
+
} from "../../../dist/skill-chunks/chunk-CXAGKT44.js";
|
|
14
14
|
import {
|
|
15
|
-
messageOf,
|
|
16
|
-
nodeFiles,
|
|
17
15
|
paperRecord,
|
|
18
16
|
readPaper
|
|
19
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
17
|
+
} from "../../../dist/skill-chunks/chunk-J5XYPERO.js";
|
|
20
18
|
import {
|
|
21
19
|
chunk,
|
|
22
20
|
last
|
|
23
21
|
} from "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
|
|
22
|
+
import {
|
|
23
|
+
messageOf,
|
|
24
|
+
nodeFiles
|
|
25
|
+
} from "../../../dist/skill-chunks/chunk-5KCU4WTN.js";
|
|
24
26
|
import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
|
|
25
27
|
import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
|
|
26
28
|
|
|
@@ -10,17 +10,18 @@ import {
|
|
|
10
10
|
bibliographyAt,
|
|
11
11
|
bibliographyUnreadWhy,
|
|
12
12
|
isMain
|
|
13
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
13
|
+
} from "../../../dist/skill-chunks/chunk-6YEM4VDI.js";
|
|
14
14
|
import {
|
|
15
15
|
latexReader,
|
|
16
16
|
sourcesCodec
|
|
17
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
18
|
-
import "../../../dist/skill-chunks/chunk-
|
|
17
|
+
} from "../../../dist/skill-chunks/chunk-CXAGKT44.js";
|
|
18
|
+
import "../../../dist/skill-chunks/chunk-J5XYPERO.js";
|
|
19
|
+
import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
|
|
20
|
+
import "../../../dist/skill-chunks/chunk-Z5YMDZYW.js";
|
|
19
21
|
import {
|
|
20
22
|
absolutePath,
|
|
21
23
|
nodeFiles
|
|
22
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
23
|
-
import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
|
|
24
|
+
} from "../../../dist/skill-chunks/chunk-5KCU4WTN.js";
|
|
24
25
|
import "../../../dist/skill-chunks/chunk-4MHEJ6FR.js";
|
|
25
26
|
import "../../../dist/skill-chunks/chunk-PJ4KNV4J.js";
|
|
26
27
|
|
|
@@ -5,22 +5,24 @@ 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
|
+
fieldOf,
|
|
10
|
+
isRecord
|
|
11
|
+
} from "../../../dist/skill-chunks/chunk-J5XYPERO.js";
|
|
12
|
+
import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
|
|
8
13
|
import {
|
|
9
14
|
CONFIG_FILE,
|
|
10
15
|
ROOT_ONLY_KEYS,
|
|
11
16
|
SETTINGS_KEYS,
|
|
12
17
|
findProjectRoot
|
|
13
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
18
|
+
} from "../../../dist/skill-chunks/chunk-Z5YMDZYW.js";
|
|
14
19
|
import {
|
|
15
20
|
callerPath,
|
|
16
21
|
err,
|
|
17
|
-
fieldOf,
|
|
18
|
-
isRecord,
|
|
19
22
|
messageOf,
|
|
20
23
|
nodeFiles,
|
|
21
24
|
ok
|
|
22
|
-
} from "../../../dist/skill-chunks/chunk-
|
|
23
|
-
import "../../../dist/skill-chunks/chunk-C2G5EK7S.js";
|
|
25
|
+
} from "../../../dist/skill-chunks/chunk-5KCU4WTN.js";
|
|
24
26
|
import {
|
|
25
27
|
external_exports
|
|
26
28
|
} 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:b702377cc26e54a2 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
|
|
|
@@ -108,7 +108,7 @@ as judgement, against the base rates of `references/base-rates.md`; simulated pa
|
|
|
108
108
|
|
|
109
109
|
| what | where | why there |
|
|
110
110
|
|---|---|---|
|
|
111
|
-
| **the venue corpus** | `<papers-root>/venues/<venue>/` (the papers directory from the project's `paperlint.json
|
|
111
|
+
| **the venue corpus** | `<papers-root>/venues/<venue>/` (the papers directory from the project's `paperlint.json`; the folder is the preset's series) | **shared by every paper that targets the venue**, collected once and reused by every later mode. `papers.json` (one row per paper: winners `award`, ordinary `accepted`, corpus 2 `sister`; every copy with its licence; how the corpus was collected, in fields: each edition's `listed_from`, `read_on`, `capped` and `proxy`, and `rebuild`, the commands run), `MANIFEST.md` (optional: caveats only, the prose no field holds), `measurements.json` (L0/L1 codes keyed by the row's `key`), `pdf/<key>.pdf` and `text/<key>.txt` only as the licence step below permits, `deep-reads/<key>.md`, `sources/` (saved listing and call pages). No other name. |
|
|
112
112
|
| **the scorecard** | the section **"Strong-accept scorecard (M1–M10)"** of the paper's `PIPELINE-STATUS.md` | a row per mechanism: status (pass / partial / fail), evidence (`file:line`), owner, plan or "accept ceiling". **The only place the verdicts live**; update it there. |
|
|
113
113
|
| **the reasoning** | `<paper>/reviews/<YYYY-MM-DD>-study-accepted-<venue>-<mode>.md` | a dated report per run, with frontmatter (below). It keeps the reasoning, the selection and the per-mechanism argument, and **points to the scorecard section; it never copies the table**. |
|
|
114
114
|
| **the stage** | the SETUP row with id `venuebar` in `PIPELINE-STATUS.md` (the id is kept for existing scorecards) | status, date, the mode and depth run, and a link to the report. One row, updated by every mode. |
|
|
@@ -138,6 +138,38 @@ scorecard: PIPELINE-STATUS.md#strong-accept-scorecard-m1m10
|
|
|
138
138
|
---
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
+
## The record before any PDF or text
|
|
142
|
+
|
|
143
|
+
The corpus keeps third-party papers, so what it may store is decided per copy, before anything is
|
|
144
|
+
downloaded or extracted. The record's fields are in `${CLAUDE_SKILL_DIR}/papers.schema.json`; the
|
|
145
|
+
script below refuses a record that breaks them, with the path of the field, and checks what a schema
|
|
146
|
+
cannot (unique keys, a paper's edition among the listed ones, a stored copy's `fetched_from`).
|
|
147
|
+
|
|
148
|
+
1. **The collection facts** in `papers.json`, never in `MANIFEST.md`: per edition `capped` (what
|
|
149
|
+
was left out and why, `null` when nothing was) and `proxy` (`{ "what", "papers" }`, the stand-in
|
|
150
|
+
for "strong accept" and how many papers it marks, `null` when there is none); for the record
|
|
151
|
+
`rebuild`, the commands that regenerate it (`[]` when none). All three are required; coverage is
|
|
152
|
+
counted from the rows, never written.
|
|
153
|
+
2. **A row per paper** in `papers.json`, with its ids, title, authors and abstract: metadata, kept
|
|
154
|
+
whatever the licence.
|
|
155
|
+
3. **A copy per version you find** (the published one, the arXiv preprint), each with the licence read
|
|
156
|
+
from the source `docs/venues.md` names for that kind of copy ("Where a copy's licence is read
|
|
157
|
+
from"): `read_from` is the page or API response, `read_on` the date. Never the licence line
|
|
158
|
+
printed inside a PDF: it can belong to another copy. No source gives it → `{ "id": "NOASSERTION" }`.
|
|
159
|
+
4. **Run** `node ${CLAUDE_SKILL_DIR}/scripts/corpus-licences.js <venue>`.
|
|
160
|
+
Exit 1: the record does not parse, or there is not exactly one; fix what it names and run it again. Exit 0: one line per paper
|
|
161
|
+
and kind (`text`, `pdf`).
|
|
162
|
+
5. **Store only on a `keep` line**: download from that copy to `pdf/<key>.pdf`, or extract to
|
|
163
|
+
`text/<key>.txt`, then add the kind to that copy's `stored` and set `fetched_from` to the URL the
|
|
164
|
+
bytes came from. On a `none` line store nothing of that kind: read the copy where it is, in a
|
|
165
|
+
scratch folder outside the repository, and keep only codes, short quotes and ids. A copy refused
|
|
166
|
+
only as "permits it only in a project declared non-commercial" may be stored when the author says
|
|
167
|
+
the project is non-commercial.
|
|
168
|
+
|
|
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.
|
|
172
|
+
|
|
141
173
|
## Before any level: pin the venue's stated bar
|
|
142
174
|
|
|
143
175
|
`WebFetch` the current call for papers and, if separate, the reviewer guidelines. Capture in the
|
|
@@ -133,7 +133,7 @@ as judgement, against the base rates of \`references/base-rates.md\`; simulated
|
|
|
133
133
|
|
|
134
134
|
| what | where | why there |
|
|
135
135
|
|---|---|---|
|
|
136
|
-
| **the venue corpus** | \`<papers-root>/venues/<venue>/\` (the papers directory from the project's \`paperlint.json
|
|
136
|
+
| **the venue corpus** | \`<papers-root>/venues/<venue>/\` (the papers directory from the project's \`paperlint.json\`; the folder is the preset's series) | **shared by every paper that targets the venue**, collected once and reused by every later mode. \`papers.json\` (one row per paper: winners \`award\`, ordinary \`accepted\`, corpus 2 \`sister\`; every copy with its licence; how the corpus was collected, in fields: each edition's \`listed_from\`, \`read_on\`, \`capped\` and \`proxy\`, and \`rebuild\`, the commands run), \`MANIFEST.md\` (optional: caveats only, the prose no field holds), \`measurements.json\` (L0/L1 codes keyed by the row's \`key\`), \`pdf/<key>.pdf\` and \`text/<key>.txt\` only as the licence step below permits, \`deep-reads/<key>.md\`, \`sources/\` (saved listing and call pages). No other name. |
|
|
137
137
|
| **the scorecard** | the section **"Strong-accept scorecard (M1–M10)"** of the paper's \`PIPELINE-STATUS.md\` | a row per mechanism: status (pass / partial / fail), evidence (\`file:line\`), owner, plan or "accept ceiling". **The only place the verdicts live**; update it there. |
|
|
138
138
|
| **the reasoning** | \`<paper>/reviews/<YYYY-MM-DD>-study-accepted-<venue>-<mode>.md\` | a dated report per run, with frontmatter (below). It keeps the reasoning, the selection and the per-mechanism argument, and **points to the scorecard section; it never copies the table**. |
|
|
139
139
|
| **the stage** | the SETUP row with id \`venuebar\` in \`PIPELINE-STATUS.md\` (the id is kept for existing scorecards) | status, date, the mode and depth run, and a link to the report. One row, updated by every mode. |
|
|
@@ -163,6 +163,38 @@ scorecard: PIPELINE-STATUS.md#strong-accept-scorecard-m1m10
|
|
|
163
163
|
---
|
|
164
164
|
\`\`\`
|
|
165
165
|
|
|
166
|
+
## The record before any PDF or text
|
|
167
|
+
|
|
168
|
+
The corpus keeps third-party papers, so what it may store is decided per copy, before anything is
|
|
169
|
+
downloaded or extracted. The record's fields are in \`\${CLAUDE_SKILL_DIR}/papers.schema.json\`; the
|
|
170
|
+
script below refuses a record that breaks them, with the path of the field, and checks what a schema
|
|
171
|
+
cannot (unique keys, a paper's edition among the listed ones, a stored copy's \`fetched_from\`).
|
|
172
|
+
|
|
173
|
+
1. **The collection facts** in \`papers.json\`, never in \`MANIFEST.md\`: per edition \`capped\` (what
|
|
174
|
+
was left out and why, \`null\` when nothing was) and \`proxy\` (\`{ "what", "papers" }\`, the stand-in
|
|
175
|
+
for "strong accept" and how many papers it marks, \`null\` when there is none); for the record
|
|
176
|
+
\`rebuild\`, the commands that regenerate it (\`[]\` when none). All three are required; coverage is
|
|
177
|
+
counted from the rows, never written.
|
|
178
|
+
2. **A row per paper** in \`papers.json\`, with its ids, title, authors and abstract: metadata, kept
|
|
179
|
+
whatever the licence.
|
|
180
|
+
3. **A copy per version you find** (the published one, the arXiv preprint), each with the licence read
|
|
181
|
+
from the source \`docs/venues.md\` names for that kind of copy ("Where a copy's licence is read
|
|
182
|
+
from"): \`read_from\` is the page or API response, \`read_on\` the date. Never the licence line
|
|
183
|
+
printed inside a PDF: it can belong to another copy. No source gives it → \`{ "id": "NOASSERTION" }\`.
|
|
184
|
+
4. **Run** \`node \${CLAUDE_SKILL_DIR}/scripts/corpus-licences.js <venue>\`.
|
|
185
|
+
Exit 1: the record does not parse, or there is not exactly one; fix what it names and run it again. Exit 0: one line per paper
|
|
186
|
+
and kind (\`text\`, \`pdf\`).
|
|
187
|
+
5. **Store only on a \`keep\` line**: download from that copy to \`pdf/<key>.pdf\`, or extract to
|
|
188
|
+
\`text/<key>.txt\`, then add the kind to that copy's \`stored\` and set \`fetched_from\` to the URL the
|
|
189
|
+
bytes came from. On a \`none\` line store nothing of that kind: read the copy where it is, in a
|
|
190
|
+
scratch folder outside the repository, and keep only codes, short quotes and ids. A copy refused
|
|
191
|
+
only as "permits it only in a project declared non-commercial" may be stored when the author says
|
|
192
|
+
the project is non-commercial.
|
|
193
|
+
|
|
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.
|
|
197
|
+
|
|
166
198
|
## Before any level: pin the venue's stated bar
|
|
167
199
|
|
|
168
200
|
\`WebFetch\` the current call for papers and, if separate, the reviewer guidelines. Capture in the
|