paperlint 20.1.1 → 20.2.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/.github/workflows/ci.yml +7 -0
- package/CLAUDE.md +6 -2
- package/CONTRIBUTING.md +2 -2
- package/{action.harness.mjs → action.test.mjs} +147 -138
- package/dist/adapters/venue-corpus/index.d.ts +345 -0
- package/dist/adapters/venue-corpus/index.d.ts.map +1 -0
- package/dist/adapters/venue-corpus/index.js +205 -0
- package/dist/adapters/venue-corpus/index.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 +120 -0
- package/dist/domain/venue-corpus.d.ts.map +1 -0
- package/dist/domain/venue-corpus.js +13 -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/eslint-rules/papers.js +1 -1
- package/dist/latex-log.d.ts +1 -1
- package/dist/latex-log.js +1 -1
- package/dist/latex-loop.d.ts +1 -1
- package/dist/latex-loop.js +1 -1
- package/dist/lib/paper-config.d.ts +3 -3
- package/dist/lib/paper-config.js +3 -3
- 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 +250 -0
- package/docs/e2e.md +9 -9
- package/docs/testing.md +3 -4
- package/docs/venues.md +144 -21
- package/eslint-rules/CLAUDE.md +5 -1
- package/eslint-rules/CLAUDE.md.spec.ts +3 -0
- package/eslint-rules/{install-path-literals.harness.mjs → install-path-literals.test.mjs} +14 -13
- package/eslint-rules/{latex-language.harness.mjs → latex-language-rules.test.mjs} +61 -51
- package/eslint-rules/{paper-stages.harness.mjs → paper-stages-rule.test.mjs} +66 -69
- package/eslint-rules/{papers.harness.mjs → papers.test.mjs} +41 -30
- package/eslint-rules/papers.ts +1 -1
- package/eslint-rules/{pdf-last-page-balance.harness.mjs → pdf-last-page-balance.test.mjs} +27 -15
- package/eslint-rules/{temp-root-realpath.harness.mjs → temp-root-realpath.test.mjs} +24 -24
- package/eslint-rules/{tex-build.harness.mjs → tex-build.test.mjs} +292 -271
- package/eslint.config.mjs +15 -2
- package/fixtures/pdf-facts/README.md +1 -1
- package/fixtures/render-paper/build-clean.sh +1 -1
- package/fixtures/toolchain-mirror/install-tl +1 -1
- package/lib/{agent-cli-version.harness.mjs → agent-cli-version.test.mjs} +17 -18
- package/lib/{paper-config.harness.mjs → paper-config.test.mjs} +21 -20
- package/lib/paper-config.ts +3 -3
- package/lib/{skill-trigger-cases.harness.mjs → skill-trigger-cases-carrier.test.mjs} +78 -115
- package/package.json +4 -3
- package/presets/acm-acmsmall.jsonc +1 -1
- package/scripts/bundle-skills.ts +1 -0
- package/scripts/check-workflow.test.ts +368 -0
- package/scripts/check.ts +2 -2
- package/scripts/eslint-file-length.mjs +9 -9
- package/scripts/eslint-report-guard.mjs +1 -1
- package/scripts/eslint-report-guard.test.mjs +1 -1
- package/scripts/harness-api.test.ts +7 -46
- package/scripts/{rules-see-files.harness.mjs → rules-see-files-rule.test.mjs} +10 -6
- package/scripts/rules-see-files.mjs +1 -1
- 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/{paper-pipeline.harness.mjs → paper-pipeline.test.mjs} +45 -46
- package/skills/paper-pipeline/scripts/{consumer.harness.mjs → consumer-paths.test.mjs} +66 -59
- package/skills/paper-pipeline/scripts/consumer.mjs +3 -3
- package/skills/paper-pipeline/scripts/{extract-ref-facts.harness.mjs → extract-ref-facts-cli.test.mjs} +29 -31
- package/skills/paper-pipeline/scripts/extract-ref-facts.js +6 -5
- package/skills/paper-pipeline/scripts/fixtures/real-bib/refs.bib +1 -1
- package/skills/paper-pipeline/scripts/{generated-code.harness.mjs → generated-code-fixtures.test.mjs} +39 -46
- package/skills/pc-panel-review/scripts/prior-reviews.js +7 -5
- package/skills/render-paper/{extract-pdf-facts.harness.ts → extract-pdf-facts.test.ts} +20 -13
- package/skills/render-paper/{render-paper.harness.mjs → render-paper.test.mjs} +41 -40
- package/skills/study-accepted-papers/SKILL.md +28 -2
- package/skills/study-accepted-papers/SKILL.md.spec.ts +27 -1
- package/skills/study-accepted-papers/papers.schema.json +427 -0
- package/skills/study-accepted-papers/scripts/corpus-licences-core.js +180 -0
- package/skills/study-accepted-papers/scripts/corpus-licences-core.ts +302 -0
- package/skills/study-accepted-papers/scripts/corpus-licences.js +383 -0
- package/skills/study-accepted-papers/scripts/corpus-licences.test.ts +485 -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/pdfjs/fill.test.ts +1 -1
- package/src/adapters/venue-corpus/index.test.ts +279 -0
- package/src/adapters/venue-corpus/index.ts +286 -0
- package/src/{build-engine.harness.mjs → build-engine-prepare.test.mjs} +98 -81
- package/src/{build.harness.mjs → build-fake-tex.test.mjs} +61 -28
- package/src/{cli.harness.mjs → cli-e2e.test.mjs} +108 -102
- package/src/cli.test.ts +1 -1
- package/src/{doctor.harness.mjs → doctor-install.test.mjs} +28 -29
- package/src/domain/licence.test.ts +122 -0
- package/src/domain/licence.ts +95 -0
- package/src/domain/venue-corpus.ts +130 -0
- package/src/{engine.harness.mjs → engine.test.mjs} +120 -106
- package/src/facts-file.test.ts +1 -1
- package/src/{hooks-settings.harness.ts → hooks-settings.test.ts} +161 -146
- package/src/latex-log.test.ts +395 -0
- package/src/latex-log.ts +1 -1
- package/src/latex-loop.test.ts +553 -0
- package/src/latex-loop.ts +1 -1
- package/src/{link-skills.harness.ts → link-skills-fs.test.ts} +26 -26
- package/src/{new-paper.harness.mjs → new-paper-scaffold.test.mjs} +31 -19
- package/src/{pdf-facts.harness.ts → pdf-facts-tables.test.ts} +28 -22
- package/src/{pdf-geometry.harness.ts → pdf-geometry.test.ts} +93 -75
- package/src/ports/venue-corpus-codec.ts +11 -0
- package/src/{rules-config.harness.ts → rules-config.test.ts} +41 -31
- package/src/{structure.harness.ts → structure.test.ts} +12 -10
- package/src/{tex-requirements.harness.ts → tex-requirements-tables.test.ts} +106 -85
- package/src/{toolchain.harness.mjs → toolchain-mirror.test.mjs} +204 -186
- package/scripts/check.harness.ts +0 -343
- package/scripts/harness-api.frozen.json +0 -41
- package/src/latex-log.harness.ts +0 -382
- package/src/latex-loop.harness.ts +0 -515
|
@@ -4,59 +4,9 @@ import { dirname as __plDirname } from "node:path";
|
|
|
4
4
|
const require = __plCreateRequire(import.meta.url);
|
|
5
5
|
const __filename = __plFileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __plDirname(__filename);
|
|
7
|
-
|
|
8
|
-
// src/domain/text.ts
|
|
9
|
-
var messageOf = (e) => e instanceof Error ? e.message : String(e);
|
|
10
|
-
var codeOf = (e) => typeof e === "object" && e !== null && "code" in e && typeof e.code === "string" ? e.code : void 0;
|
|
11
|
-
|
|
12
|
-
// src/adapters/node/files.io.ts
|
|
13
7
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
renameSync,
|
|
17
|
-
rmSync,
|
|
18
|
-
statSync,
|
|
19
|
-
writeFileSync
|
|
20
|
-
} from "node:fs";
|
|
21
|
-
import { dirname } from "node:path";
|
|
22
|
-
var errorCode = (e) => codeOf(e);
|
|
23
|
-
var nodeFiles = {
|
|
24
|
-
isFile(p) {
|
|
25
|
-
return statSync(p, { throwIfNoEntry: false })?.isFile() ?? false;
|
|
26
|
-
},
|
|
27
|
-
readBytes(p) {
|
|
28
|
-
try {
|
|
29
|
-
return readFileSync(p);
|
|
30
|
-
} catch (e) {
|
|
31
|
-
if (errorCode(e) === "ENOENT") return null;
|
|
32
|
-
throw e;
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
writeAtomic(p, bytes) {
|
|
36
|
-
const part = `${p}.part`;
|
|
37
|
-
mkdirSync(dirname(p), { recursive: true });
|
|
38
|
-
try {
|
|
39
|
-
writeFileSync(part, bytes);
|
|
40
|
-
renameSync(part, p);
|
|
41
|
-
} finally {
|
|
42
|
-
rmSync(part, { force: true });
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
// src/domain/paths.ts
|
|
48
|
-
import { isAbsolute, join, posix } from "node:path";
|
|
49
|
-
|
|
50
|
-
// src/domain/result.ts
|
|
51
|
-
var ok = (value) => ({ ok: true, value });
|
|
52
|
-
var err = (error) => ({ ok: false, error });
|
|
53
|
-
|
|
54
|
-
// src/domain/paths.ts
|
|
55
|
-
var isAbsolutePath = (p) => isAbsolute(p);
|
|
56
|
-
function absolutePath(p) {
|
|
57
|
-
if (!isAbsolutePath(p)) throw new Error(`not an absolute path: ${p}`);
|
|
58
|
-
return p;
|
|
59
|
-
}
|
|
8
|
+
callerPath
|
|
9
|
+
} from "./chunk-5KCU4WTN.js";
|
|
60
10
|
|
|
61
11
|
// src/domain/tex-document.ts
|
|
62
12
|
var collapse = (s) => s.split(/\s+/u).filter(Boolean).join(" ");
|
|
@@ -100,12 +50,8 @@ function spelledIn(names, name) {
|
|
|
100
50
|
return only !== void 0 && more.length === 0 ? only : null;
|
|
101
51
|
}
|
|
102
52
|
|
|
103
|
-
// src/caller-path.ts
|
|
104
|
-
import { resolve } from "node:path";
|
|
105
|
-
var callerPath = (p) => absolutePath(resolve(p));
|
|
106
|
-
|
|
107
53
|
// src/paper-record.ts
|
|
108
|
-
import { resolve as
|
|
54
|
+
import { resolve as resolve2 } from "node:path";
|
|
109
55
|
|
|
110
56
|
// src/domain/sha256.ts
|
|
111
57
|
import { createHash } from "node:crypto";
|
|
@@ -119,12 +65,12 @@ function parseSha256(s) {
|
|
|
119
65
|
var sha256Hex = (bytes) => parseSha256(createHash("sha256").update(bytes).digest("hex"));
|
|
120
66
|
|
|
121
67
|
// src/sources-record.ts
|
|
122
|
-
import { join
|
|
123
|
-
var sourcesPath = (paperDir) =>
|
|
68
|
+
import { join, posix, resolve } from "node:path";
|
|
69
|
+
var sourcesPath = (paperDir) => join(paperDir, SOURCES_DIR, SOURCES_FILE);
|
|
124
70
|
|
|
125
71
|
// src/paper-record.ts
|
|
126
72
|
var digestOf = (dir, files) => (path) => {
|
|
127
|
-
const b = files.readBytes(callerPath(
|
|
73
|
+
const b = files.readBytes(callerPath(resolve2(dir, path)));
|
|
128
74
|
return b === null ? null : sha256Hex(b);
|
|
129
75
|
};
|
|
130
76
|
function paperRecord(dir, deps) {
|
|
@@ -137,13 +83,13 @@ function paperRecord(dir, deps) {
|
|
|
137
83
|
}
|
|
138
84
|
|
|
139
85
|
// src/tex-paper.ts
|
|
140
|
-
import { basename, dirname
|
|
86
|
+
import { basename, dirname, join as join2 } from "node:path";
|
|
141
87
|
|
|
142
88
|
// src/domain/paper-source.ts
|
|
143
|
-
import { posix as
|
|
89
|
+
import { posix as posix2 } from "node:path";
|
|
144
90
|
var candidates = (target) => {
|
|
145
|
-
const t =
|
|
146
|
-
return
|
|
91
|
+
const t = posix2.normalize(target.trim());
|
|
92
|
+
return posix2.extname(t) === "" ? [`${t}.tex`, t] : [t];
|
|
147
93
|
};
|
|
148
94
|
function found(target, read) {
|
|
149
95
|
const hits = candidates(target).flatMap((path) => {
|
|
@@ -212,7 +158,7 @@ function assemblePaper(main, text, deps) {
|
|
|
212
158
|
// src/tex-paper.ts
|
|
213
159
|
var decoded = (b) => b === null ? null : new TextDecoder().decode(b);
|
|
214
160
|
function readPaper(filename, src, deps) {
|
|
215
|
-
const dir =
|
|
161
|
+
const dir = dirname(filename);
|
|
216
162
|
const record = paperRecord(dir, deps);
|
|
217
163
|
const listed = record.kind === "fresh" ? record.record.inputs.map((i) => i.path) : [];
|
|
218
164
|
return assemblePaper(basename(filename), src, {
|
|
@@ -221,7 +167,7 @@ function readPaper(filename, src, deps) {
|
|
|
221
167
|
documentBody: deps.latex.documentBody,
|
|
222
168
|
read: (rel) => {
|
|
223
169
|
const recorded = spelledIn(listed, rel);
|
|
224
|
-
return recorded === null ? null : decoded(deps.files.readBytes(callerPath(
|
|
170
|
+
return recorded === null ? null : decoded(deps.files.readBytes(callerPath(join2(dir, recorded))));
|
|
225
171
|
}
|
|
226
172
|
});
|
|
227
173
|
}
|
|
@@ -233,8 +179,6 @@ var fieldOf = (v, key) => isRecord(v) ? v[key] : void 0;
|
|
|
233
179
|
export {
|
|
234
180
|
isRecord,
|
|
235
181
|
fieldOf,
|
|
236
|
-
ok,
|
|
237
|
-
err,
|
|
238
182
|
collapse,
|
|
239
183
|
optionsInEffect,
|
|
240
184
|
readWhole,
|
|
@@ -243,15 +187,11 @@ export {
|
|
|
243
187
|
runText,
|
|
244
188
|
OPAQUE,
|
|
245
189
|
LINE_BREAK,
|
|
246
|
-
messageOf,
|
|
247
|
-
nodeFiles,
|
|
248
|
-
absolutePath,
|
|
249
190
|
SOURCES_SCHEMA,
|
|
250
191
|
SOURCES_FILE,
|
|
251
192
|
JOBNAME,
|
|
252
193
|
describeChanges,
|
|
253
194
|
spelledIn,
|
|
254
|
-
callerPath,
|
|
255
195
|
paperRecord,
|
|
256
196
|
decoded,
|
|
257
197
|
readPaper
|
|
@@ -37,6 +37,8 @@ function settingsOf(root) {
|
|
|
37
37
|
}
|
|
38
38
|
return isObject(v) ? v : void 0;
|
|
39
39
|
}
|
|
40
|
+
var DEFAULT_PAPERS_ROOT = "papers";
|
|
41
|
+
var PAPERS_DIR_FIELD = "papersDir";
|
|
40
42
|
var SETTINGS_KEYS = Object.freeze({
|
|
41
43
|
papersDir: `the papers directory, default "papers" \u2014 every command, the hooks`,
|
|
42
44
|
structure: "which files a paper directory must hold \u2014 paperlint lint",
|
|
@@ -79,6 +81,8 @@ export {
|
|
|
79
81
|
CONFIG_FILE,
|
|
80
82
|
findProjectRoot,
|
|
81
83
|
settingsOf,
|
|
84
|
+
DEFAULT_PAPERS_ROOT,
|
|
85
|
+
PAPERS_DIR_FIELD,
|
|
82
86
|
SETTINGS_KEYS,
|
|
83
87
|
ROOT_ONLY_KEYS
|
|
84
88
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type LicenceSettings, type Permission, type StoredKind } from "#src/domain/licence";
|
|
2
|
+
import { type Copy, type KnownVersion, type VenueCorpus } from "#src/domain/venue-corpus";
|
|
3
|
+
import type { Files } from "#src/ports/files";
|
|
4
|
+
import type { RunProcess } from "#src/ports/process";
|
|
5
|
+
import type { VenueCorpusCodec } from "#src/ports/venue-corpus-codec";
|
|
6
|
+
/** Why one copy may not be kept as one kind. */
|
|
7
|
+
export type Refused = Exclude<Permission, {
|
|
8
|
+
readonly kind: "permitted";
|
|
9
|
+
}>;
|
|
10
|
+
/** One copy's refusal: its version, its licence id, and why. */
|
|
11
|
+
export interface Refusal {
|
|
12
|
+
readonly version: Copy["version"];
|
|
13
|
+
readonly licence: string;
|
|
14
|
+
readonly permission: Refused;
|
|
15
|
+
}
|
|
16
|
+
/** For one paper and one kind: the copy to keep, or every copy's refusal (none when it has no copy). */
|
|
17
|
+
export type Verdict = {
|
|
18
|
+
readonly key: string;
|
|
19
|
+
readonly stored: StoredKind;
|
|
20
|
+
readonly outcome: "keep";
|
|
21
|
+
readonly version: KnownVersion;
|
|
22
|
+
readonly licence: string;
|
|
23
|
+
readonly url: string;
|
|
24
|
+
} | {
|
|
25
|
+
readonly key: string;
|
|
26
|
+
readonly stored: StoredKind;
|
|
27
|
+
readonly outcome: "none";
|
|
28
|
+
readonly refusals: readonly Refusal[];
|
|
29
|
+
};
|
|
30
|
+
/** Every paper's verdict for each kind, in the record's order. */
|
|
31
|
+
export declare const verdicts: (corpus: VenueCorpus, settings: Readonly<LicenceSettings>) => readonly Verdict[];
|
|
32
|
+
/** What the command prints for `all`. */
|
|
33
|
+
export declare const listing: (all: readonly Verdict[]) => string;
|
|
34
|
+
/** What the command reads with: the disk, the record's codec, and where the project is. */
|
|
35
|
+
export interface Deps {
|
|
36
|
+
readonly files: Files;
|
|
37
|
+
readonly codec: VenueCorpusCodec;
|
|
38
|
+
/** The top of the git working tree holding `cwd`, or null when `cwd` is in none. */
|
|
39
|
+
readonly projectRoot: (cwd: string) => string | null;
|
|
40
|
+
/** The folder the command was started in. */
|
|
41
|
+
readonly cwd: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* `git rev-parse --show-toplevel` in `cwd`: the project's root, or null outside a repository (or
|
|
45
|
+
* when git did not run). `path` is the caller's PATH, the only variable git is given.
|
|
46
|
+
*/
|
|
47
|
+
export declare function gitTopLevel(git: RunProcess, path: string | undefined, cwd: string): string | null;
|
|
48
|
+
/** Where the command writes: the listing, and what stops it. */
|
|
49
|
+
export interface Output {
|
|
50
|
+
readonly out: (s: string) => void;
|
|
51
|
+
readonly err: (s: string) => void;
|
|
52
|
+
}
|
|
53
|
+
/** Run the command on `argv`; the exit code. */
|
|
54
|
+
export declare function main(argv: readonly string[], deps: Deps, { out, err }: Output): number;
|
|
@@ -0,0 +1,250 @@
|
|
|
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**, beside `MANIFEST.md`. It is the list of papers and,
|
|
18
|
+
for each, every copy we know of with its licence. The schema (zod, in `src/adapters/venue-corpus/`)
|
|
19
|
+
is checked where the file is read; nothing after it re-validates (the study registry's pattern,
|
|
20
|
+
[`study-registry.md`](study-registry.md)). Codes and measurements stay in `measurements.json`, keyed by
|
|
21
|
+
the paper's `key`; prose (sources, caps, the strong-accept proxy) stays in `MANIFEST.md`.
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"venue": "agent",
|
|
26
|
+
"editions": [
|
|
27
|
+
{
|
|
28
|
+
"edition": 2026,
|
|
29
|
+
"listed_from": "https://conf.researchr.org/home/icse-2026/agent-2026",
|
|
30
|
+
"read_on": "2026-11-03",
|
|
31
|
+
"accepted": 27
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"papers": [
|
|
35
|
+
{
|
|
36
|
+
"key": "2026-01",
|
|
37
|
+
"edition": 2026,
|
|
38
|
+
"group": "accepted",
|
|
39
|
+
"title": "A Catalogue of Evaluation Metrics for LLM-Based Multi-Agent Frameworks in Software Engineering",
|
|
40
|
+
"authors": [
|
|
41
|
+
"Ingrid Lima",
|
|
42
|
+
"Vitor Linhares",
|
|
43
|
+
"Anderson Martins Gomes",
|
|
44
|
+
"Paulo Maia"
|
|
45
|
+
],
|
|
46
|
+
"abstract": "LLM-based Multi-Agent (LMA) frameworks have recently gained traction …",
|
|
47
|
+
"ids": { "doi": "10.1145/3786167.3788430" },
|
|
48
|
+
"copies": [
|
|
49
|
+
{
|
|
50
|
+
"version": "published",
|
|
51
|
+
"url": "https://doi.org/10.1145/3786167.3788430",
|
|
52
|
+
"licence": {
|
|
53
|
+
"id": "CC-BY-4.0",
|
|
54
|
+
"read_from": "https://api.crossref.org/works/10.1145/3786167.3788430",
|
|
55
|
+
"read_on": "2026-11-03"
|
|
56
|
+
},
|
|
57
|
+
"stored": []
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
| field | values |
|
|
66
|
+
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
67
|
+
| `venue` | the corpus folder's name, which is the venue preset's series: the preset id without its year (`agent` for `paperlint:agent-2027`) |
|
|
68
|
+
| `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 |
|
|
69
|
+
| `papers[].key` | unique in the file; names the stored files and the measurement rows |
|
|
70
|
+
| `papers[].group` | `accepted`, `award`, or `sister` (corpus 2: papers of another venue) |
|
|
71
|
+
| `papers[].edition` | for `accepted` and `award`: one of `editions[].edition` |
|
|
72
|
+
| `papers[].venue`, `.year` | for `sister`: the other venue and its year; `listed_from` on the row says where it was found |
|
|
73
|
+
| `papers[].ids` | any of `doi`, `arxiv`, `dblp`, `s2`, `url` (the paper's page on the listing, when nothing else identifies it); at least one |
|
|
74
|
+
| `copies[].version` | `published`, `accepted`, `preprint` (OpenAlex's `publishedVersion` / `acceptedVersion` / `submittedVersion`), or `unknown` |
|
|
75
|
+
| `copies[].licence` | `id`, `read_from` (the page or API response it was read from, never inferred), `read_on` |
|
|
76
|
+
| `copies[].fetched_from` | required when `stored` is not empty: the URL the stored bytes were downloaded from |
|
|
77
|
+
| `copies[].stored` | what of this copy is in the corpus: `[]`, `["text"]`, `["pdf"]` or both; `"text"` covers every text variant of the paper |
|
|
78
|
+
|
|
79
|
+
The top level, the edition, the copy and the licence objects are strict, so a misspelt key is an error.
|
|
80
|
+
A paper row keeps any further fields as they are: the consumer's scripts read about forty of them
|
|
81
|
+
(award flags, page counts, where a PDF was found), and a strict row would force every corpus to drop
|
|
82
|
+
them to migrate.
|
|
83
|
+
|
|
84
|
+
2. **The licence belongs to a copy, not to a paper.** The same paper is often CC BY in the proceedings and
|
|
85
|
+
under arXiv's non-exclusive licence as a preprint (one real 27-paper list had nine combinations, a
|
|
86
|
+
16-paper one seven). A stored file is a copy of one version, so it is judged by that version's licence.
|
|
87
|
+
This follows OpenAlex, which records a licence per location ("Different locations of the same work can
|
|
88
|
+
carry different licenses"), and Crossref's per-work `license` array.
|
|
89
|
+
|
|
90
|
+
That a stored file **is** the copy it is attributed to is a recorded fact, not a construction: the
|
|
91
|
+
copy names `fetched_from`, and at most one copy of a paper may store each kind (two copies claiming
|
|
92
|
+
`pdf/<key>.pdf` is a finding). A file whose origin nobody recorded is stored under a copy with
|
|
93
|
+
`version: "unknown"`, which is allowed only with the licence `NOASSERTION`, and so permits nothing:
|
|
94
|
+
the record cannot be made to pass by attributing a file to whichever copy has the friendlier licence
|
|
95
|
+
without saying where the bytes came from.
|
|
96
|
+
|
|
97
|
+
3. **The licence table, in one module** (`src/domain/licence.ts`). Any SPDX id or `LicenseRef-…`
|
|
98
|
+
parses; the table decides what it permits, and an id the table does not list permits nothing and
|
|
99
|
+
gets a finding of its own that names it (so a `CC-BY-3.0` does not hide the rest of the record, and
|
|
100
|
+
a typo is still loud).
|
|
101
|
+
|
|
102
|
+
| id | may store text | may store the PDF | why |
|
|
103
|
+
| -------------------------------------- | ---------------------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
104
|
+
| `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) |
|
|
105
|
+
| `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 |
|
|
106
|
+
| `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 |
|
|
107
|
+
| `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" |
|
|
108
|
+
| `LicenseRef-publisher` | no | no | no grant to third parties |
|
|
109
|
+
| `NOASSERTION` | no | no | the licence was not read |
|
|
110
|
+
|
|
111
|
+
The project declares itself non-commercial with one setting; without it an NC copy that is stored is a
|
|
112
|
+
finding that names the setting. SPDX ids where SPDX has one; `LicenseRef-…` where it has none, as SPDX
|
|
113
|
+
and REUSE prescribe. A version of a CC licence other than 4.0 gets its row when a corpus meets it.
|
|
114
|
+
|
|
115
|
+
4. **Three rules, one family, `corpus/`.** The family is the folder they judge, as `paper/`, `repro/` and
|
|
116
|
+
`versions/` are; the names follow the ones those families already use (`paper/allowed-files-only`,
|
|
117
|
+
`cycle/record`). Structure and licence are separate rules because they are needed by different
|
|
118
|
+
projects: every corpus needs its structure held, and only a corpus that others can read needs its
|
|
119
|
+
licences judged.
|
|
120
|
+
|
|
121
|
+
| rule | reports | default |
|
|
122
|
+
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
|
|
123
|
+
| `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`) | on |
|
|
124
|
+
| `corpus/record` | a corpus with `pdf/` or `text/` and no `papers.json`; a `papers.json` that does not parse, with the zod path of the first problem; 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 | on |
|
|
125
|
+
| `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 |
|
|
126
|
+
|
|
127
|
+
Each finding names its cure: record the licence and where it was read, or remove the file and keep
|
|
128
|
+
the ids.
|
|
129
|
+
|
|
130
|
+
**Why the two structure rules are on by default.** They hold for every corpus whatever the venue and
|
|
131
|
+
whoever reads the repository: a `papers.json` that does not parse breaks the skill that reads it, and
|
|
132
|
+
a stray file is a file no reader knows the meaning of. They are silent where no corpus exists.
|
|
133
|
+
|
|
134
|
+
**Why the licence rule is off and in no set.** The same stored files are illegal in a public
|
|
135
|
+
repository and legal in a private one, and the rule cannot tell which it is in; that is a finding a
|
|
136
|
+
careful author can dispute ("The Default Set Is What The Venue Decides"). A project whose corpus
|
|
137
|
+
others read turns it on; a private one leaves it off. It belongs to none of today's sets
|
|
138
|
+
(`paperlint:writing` is about prose); when #524 adds `recommended` and `strict`, it is a candidate
|
|
139
|
+
for one of them.
|
|
140
|
+
|
|
141
|
+
**Where they report, and how paperlint reaches a corpus.** Today nothing under `venues/` is linted
|
|
142
|
+
([`docs/venues.md`](../venues.md#what-checks-it)): rule blocks are scoped to paper files, and a rule
|
|
143
|
+
runs only for a file that exists. PR 1b adds a block for `<papers-root>/venues/*/`, anchored on the
|
|
144
|
+
corpus's `MANIFEST.md`; a corpus folder without `MANIFEST.md` (recognised by `papers.json`, `pdf/` or
|
|
145
|
+
`text/`) is reported by the same structural pass that reports stray files in a paper folder
|
|
146
|
+
(`src/folder-layout-rule.ts`), on a file ESLint does lint. The same PR keeps the corpus out of the
|
|
147
|
+
paper rules (#215, part 1): a `paper.tex` saved in a corpus is an accepted paper's source, not one of
|
|
148
|
+
the user's papers.
|
|
149
|
+
|
|
150
|
+
5. **The fixed file names**: `papers.json`, `MANIFEST.md`, `measurements.json`, `pdf/<key>.pdf`,
|
|
151
|
+
`text/<key>.txt` and `text/<key>.<variant>.txt` (one paper extracted twice, by `pdftotext` and by
|
|
152
|
+
`pdfminer`, or its first page alone), `deep-reads/<key>.md`, `sources/` (saved listing and call
|
|
153
|
+
pages, not judged). The author's own paper is never in a corpus: its text belongs in its paper folder.
|
|
154
|
+
|
|
155
|
+
6. **What is a copy, and what is not.** `pdf/` and `text/` hold copies; the rule judges only them.
|
|
156
|
+
Titles, abstracts, and short quotes inside codes or deep reads are metadata and quotation, not copies
|
|
157
|
+
(decided below).
|
|
158
|
+
|
|
159
|
+
7. **A behaviour change, said plainly.** `docs/venues.md` and `study-accepted-papers` today tell the
|
|
160
|
+
skill to extract a text for every paper. From PR 1a they tell it to read the copy's licence first and
|
|
161
|
+
extract only what the table permits, keeping ids for the rest; "the PDFs are not committed" becomes
|
|
162
|
+
"a PDF is kept when its copy's licence permits it" (#302's proposal). The rule then turns the old
|
|
163
|
+
instruction's output into findings on a corpus that opts in.
|
|
164
|
+
|
|
165
|
+
## Measured on a real consumer (2026-11-24)
|
|
166
|
+
|
|
167
|
+
Before writing the rule, a consumer's six corpora were inventoried, git-tracked files only:
|
|
168
|
+
|
|
169
|
+
| 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 |
|
|
170
|
+
| ------------------------: | --------------------------------: | -------------: | -----------------: | ------------: | ------------------: | ------------------------------: |
|
|
171
|
+
| 217 | 19 | 3–4 | 5 | 12 | 179 | 18 |
|
|
172
|
+
|
|
173
|
+
The 12 not permitted are extracted texts of arXiv preprints under the non-exclusive licence, two of them in
|
|
174
|
+
a corpus that had already dropped the same papers' PDFs for that licence and kept the text. The 179 are
|
|
175
|
+
whole corpora built before a licence field existed; for most of them the licence is one request away (the
|
|
176
|
+
copy is an arXiv or ACL Anthology paper), which is what PR 2 automates. No corpus there has a `papers.json`
|
|
177
|
+
yet, so until it migrates the rule reports one finding per corpus that stores copies, not 12 + 179.
|
|
178
|
+
|
|
179
|
+
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
|
|
180
|
+
neither a DOI nor an arXiv id, only the conference page's id or URL. Hence `ids.url`.
|
|
181
|
+
|
|
182
|
+
## Migration
|
|
183
|
+
|
|
184
|
+
A corpus migrates by a script the consumer runs once, which writes `papers.json` from its old lists and
|
|
185
|
+
renames stored files to `pdf/<key>.pdf` and `text/<key>[.<variant>].txt`; old fields stay on the rows, and
|
|
186
|
+
a script that read a path from an old field reads the derived path instead. The author's own paper moves
|
|
187
|
+
to its paper folder. Licences that were never read stay `NOASSERTION` until PR 2's lister fills them in.
|
|
188
|
+
|
|
189
|
+
## The order of the pull requests
|
|
190
|
+
|
|
191
|
+
| PR | what | part of |
|
|
192
|
+
| --- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
|
|
193
|
+
| 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 |
|
|
194
|
+
| 1b | `corpus/record` and `corpus/licence` with their pages under `docs/rules/corpus/`, linked from `docs/venues.md` and (the licence rule) `docs/optional-rules.md`; a test that every rule id has the one-slash shape of "A Rule Id Names Its Subject"; the lint block that reaches a corpus, the structural check for a corpus without `MANIFEST.md`, and the corpus kept out of the paper rules | #302, #215 (1) |
|
|
195
|
+
| 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 |
|
|
196
|
+
| 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) |
|
|
197
|
+
| 4 | `corpus/allowed-files-only` (#500's second rule) | #500 (1 of 2) |
|
|
198
|
+
|
|
199
|
+
PR 1a stands alone: a corpus written by hand, or by the skill, validates. Readers that compare a paper with
|
|
200
|
+
the corpus (#608 abstract rewrites, #465 the panel's demands, a title and scope comparison) come after PR 2.
|
|
201
|
+
The source order of PR 2 was measured on 2026-11-24, keyless, against three venues whose accepted
|
|
202
|
+
lists were known (27, 16 and 34 papers):
|
|
203
|
+
|
|
204
|
+
| field | first source | then | never |
|
|
205
|
+
| ----------------------------- | ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------- |
|
|
206
|
+
| 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 | |
|
|
207
|
+
| abstract | the programme's paper page | Semantic Scholar by DOI, OpenAlex, arXiv OAI-PMH | Crossref (none deposited) |
|
|
208
|
+
| arXiv id | Semantic Scholar and OpenAlex, their union | | Crossref `relation` (always empty) |
|
|
209
|
+
| licence of the published copy | Crossref `license[]`, every URL kept | | |
|
|
210
|
+
| 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) |
|
|
211
|
+
|
|
212
|
+
Three gaps stay open: IEEE deposits no Creative Commons licence (only text-and-data-mining policy URLs), the
|
|
213
|
+
ACL Anthology states one licence for the whole site and none per paper, and the licence printed inside a PDF
|
|
214
|
+
can belong to another copy (an arXiv PDF printing its published version's footer), so the PDF is not a
|
|
215
|
+
source. Semantic Scholar's venue search and the arXiv Atom API refused every request that day (HTTP 429),
|
|
216
|
+
so neither was measured.
|
|
217
|
+
|
|
218
|
+
## Decided by the author (2026-11-24)
|
|
219
|
+
|
|
220
|
+
- **A copy with no licence recorded is a finding**, like a licence that forbids it: a check that passes
|
|
221
|
+
what it cannot see looks the same as one that checked. On the consumer above that is 179 findings once
|
|
222
|
+
it migrates and opts in, until PR 2's lister fills the licences in.
|
|
223
|
+
- **Titles and abstracts are kept as metadata whatever the licence**, and `docs/venues.md` says so. Every
|
|
224
|
+
scholarly API (Crossref, Semantic Scholar, arXiv) serves them openly and every corpus examined keeps
|
|
225
|
+
them; no source settles that storing them is allowed.
|
|
226
|
+
|
|
227
|
+
## Rejected
|
|
228
|
+
|
|
229
|
+
- **One licence per paper.** It cannot say which copy a stored file is, and the same paper's two copies
|
|
230
|
+
routinely differ.
|
|
231
|
+
- **A dataset-level licence, as S2ORC or the ACL OCL corpus declare.** The corpus mixes publishers and
|
|
232
|
+
licences; one line cannot be true for all of it.
|
|
233
|
+
- **A licence sidecar only (one row per stored file), the old lists left as they are.** It catches the same
|
|
234
|
+
violations in one PR and cannot have two copies claim one file, but it gives no list a lister can write
|
|
235
|
+
and #356, #608 and #465 can read, and a hand-written path drifts. Its one strength is kept: each stored
|
|
236
|
+
file is a recorded fact (`fetched_from`, one storing copy per kind).
|
|
237
|
+
- **Rejecting an unlisted licence id at parse time.** One `CC-BY-3.0` would hide every other check and
|
|
238
|
+
break every later reader until a release; it gets a finding instead.
|
|
239
|
+
- **Paths to stored files written in the record.** A second fact that can drift from the folder; the path
|
|
240
|
+
is derived from `key`.
|
|
241
|
+
|
|
242
|
+
## What it does not check
|
|
243
|
+
|
|
244
|
+
- That a stored file is the copy it is attributed to: it checks that the attribution and its source were
|
|
245
|
+
recorded.
|
|
246
|
+
- Whether the recorded licence is the true one: it checks that a licence was read and from where.
|
|
247
|
+
- Whether the repository is public, or the project really non-commercial.
|
|
248
|
+
- The legal questions the sources leave open (extraction under ND, what counts as non-commercial); the
|
|
249
|
+
table takes the cautious reading for the first and asks the project for the second.
|
|
250
|
+
- Anything outside `pdf/` and `text/` until PR 4.
|
package/docs/e2e.md
CHANGED
|
@@ -32,14 +32,14 @@ import the modules directly. Every path resolves, every dependency is already in
|
|
|
32
32
|
file they read is the file in `git`. An end-to-end run exists because all three of those are
|
|
33
33
|
assumptions that stop holding the moment somebody else installs the package.
|
|
34
34
|
|
|
35
|
-
| question | answered by
|
|
36
|
-
| ------------------------------------------------------------------------------------ |
|
|
37
|
-
| does this rule find this defect, and stay quiet otherwise | unit, beside the rule
|
|
38
|
-
| does the rule run through ESLint, wired, on the file it is for | integration (`src/rule-cases.test.ts`)
|
|
39
|
-
| does the CLI pick the right script, with the right interpreter | integration (`src/build.
|
|
40
|
-
| does the tarball, installed into a tree that is not this one, contain what it claims | **e2e**
|
|
41
|
-
| do the paths written inside a skill resolve where the package actually lands | **e2e**
|
|
42
|
-
| did a PDF come out, and is it typeset in the fonts the venue requires | **e2e**
|
|
35
|
+
| question | answered by |
|
|
36
|
+
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------- |
|
|
37
|
+
| does this rule find this defect, and stay quiet otherwise | unit, beside the rule |
|
|
38
|
+
| does the rule run through ESLint, wired, on the file it is for | integration (`src/rule-cases.test.ts`) |
|
|
39
|
+
| does the CLI pick the right script, with the right interpreter | integration (`src/build-fake-tex.test.mjs` substitutes `spawnSync`) |
|
|
40
|
+
| does the tarball, installed into a tree that is not this one, contain what it claims | **e2e** |
|
|
41
|
+
| do the paths written inside a skill resolve where the package actually lands | **e2e** |
|
|
42
|
+
| did a PDF come out, and is it typeset in the fonts the venue requires | **e2e** |
|
|
43
43
|
|
|
44
44
|
The last three rows are the ones no other test can reach even in principle: the defect only exists
|
|
45
45
|
once the code is somewhere else, or once a real TeX has typeset it.
|
|
@@ -153,7 +153,7 @@ within seconds; `--check` must exit 0; then the `acmart` fixture is built with P
|
|
|
153
153
|
only, so no other TeX Live and no PDF tool can stand in, and the PDF must carry Libertine and Biolinum
|
|
154
154
|
and no Computer Modern face. Without `PAPERLINT_TEXLIVE_DIR` its tests are skipped: installing ~270 MB
|
|
155
155
|
into a home directory as a side effect of `npm run check` is the unasked install the root `CLAUDE.md` forbids.
|
|
156
|
-
`src/toolchain.
|
|
156
|
+
`src/toolchain-mirror.test.mjs` covers the installer's logic (mirror fallback, archive check, time
|
|
157
157
|
limit, verification, idempotence) against a fake mirror on disk, without the network.
|
|
158
158
|
|
|
159
159
|
## Skips are reported, never passed
|
package/docs/testing.md
CHANGED
|
@@ -51,13 +51,12 @@ When in doubt between unit and integration: if the function takes a port (`Files
|
|
|
51
51
|
- **Answers:** what does an agent see or cause? A hook's allow or deny on a given input, what a
|
|
52
52
|
skill's contract promises.
|
|
53
53
|
- **Lives:** `<surface>.harness.mjs` beside what it tests; it imports `runHook`, `runHarnessTest`
|
|
54
|
-
or `runEval` from vigiles.
|
|
55
|
-
|
|
56
|
-
#77). A new test of anything else is a unit or integration test.
|
|
54
|
+
or `runEval` from vigiles (`scripts/harness-api.test.ts` fails on a `*.harness.*` file that does
|
|
55
|
+
not). A test of anything else is a unit or integration test.
|
|
57
56
|
- **Asserts through** `lib/check.mjs`: `const check = createChecker();` then
|
|
58
57
|
`check(label, cond, detail)`. A failure prints the label and the detail, every call is counted.
|
|
59
58
|
Do not define a local `check`.
|
|
60
|
-
- **Example:** `
|
|
59
|
+
- **Example:** `skills/label-agent-runs/label-agent-runs.harness.ts` (`runHarnessTest` over a scripted mock model).
|
|
61
60
|
- **Skills are tested through vigiles**, not a bespoke runner: a home-grown runner here once printed
|
|
62
61
|
byte-identical "clean" verdicts for three skills that had never loaded.
|
|
63
62
|
|