paperlint 16.8.0 → 17.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/CLAUDE.md +10 -2
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +17 -14
  4. package/dist/adapters/latex/abstract.d.ts +7 -1
  5. package/dist/adapters/latex/abstract.d.ts.map +1 -1
  6. package/dist/adapters/latex/abstract.js +19 -4
  7. package/dist/adapters/latex/abstract.js.map +1 -1
  8. package/dist/adapters/latex/captions.d.ts +6 -5
  9. package/dist/adapters/latex/captions.d.ts.map +1 -1
  10. package/dist/adapters/latex/captions.js +14 -30
  11. package/dist/adapters/latex/captions.js.map +1 -1
  12. package/dist/adapters/latex/index.d.ts +1 -1
  13. package/dist/adapters/latex/index.d.ts.map +1 -1
  14. package/dist/adapters/latex/index.js +5 -2
  15. package/dist/adapters/latex/index.js.map +1 -1
  16. package/dist/adapters/latex/prose.d.ts +6 -0
  17. package/dist/adapters/latex/prose.d.ts.map +1 -1
  18. package/dist/adapters/latex/prose.js +18 -12
  19. package/dist/adapters/latex/prose.js.map +1 -1
  20. package/dist/cli.d.ts +6 -1
  21. package/dist/cli.d.ts.map +1 -1
  22. package/dist/cli.js +16 -8
  23. package/dist/cli.js.map +1 -1
  24. package/dist/domain/register.d.ts +23 -1
  25. package/dist/domain/register.d.ts.map +1 -1
  26. package/dist/domain/register.js +37 -14
  27. package/dist/domain/register.js.map +1 -1
  28. package/dist/domain/term-definitions.d.ts +48 -0
  29. package/dist/domain/term-definitions.d.ts.map +1 -0
  30. package/dist/domain/term-definitions.js +228 -0
  31. package/dist/domain/term-definitions.js.map +1 -0
  32. package/dist/domain/tex-document.d.ts +11 -0
  33. package/dist/domain/tex-document.d.ts.map +1 -1
  34. package/dist/domain/tex-document.js.map +1 -1
  35. package/dist/eslint-rules/review-frontmatter.js +5 -5
  36. package/dist/eslint-rules/review-frontmatter.schema.json +15 -8
  37. package/dist/eslint-rules/sibling-frontmatter.d.ts.map +1 -1
  38. package/dist/folder-venue-rule.d.ts +1 -1
  39. package/dist/folder-venue-rule.d.ts.map +1 -1
  40. package/dist/folder-venue-rule.js +4 -2
  41. package/dist/folder-venue-rule.js.map +1 -1
  42. package/dist/hooks-notice.d.ts +3 -3
  43. package/dist/hooks-notice.d.ts.map +1 -1
  44. package/dist/hooks-notice.js +41 -8
  45. package/dist/hooks-notice.js.map +1 -1
  46. package/dist/link-skills.d.ts +5 -0
  47. package/dist/link-skills.d.ts.map +1 -1
  48. package/dist/link-skills.js +7 -0
  49. package/dist/link-skills.js.map +1 -1
  50. package/dist/ports/latex.d.ts +11 -1
  51. package/dist/ports/latex.d.ts.map +1 -1
  52. package/dist/presets.d.ts +21 -2
  53. package/dist/presets.d.ts.map +1 -1
  54. package/dist/presets.js +66 -17
  55. package/dist/presets.js.map +1 -1
  56. package/dist/readability.d.ts +12 -2
  57. package/dist/readability.d.ts.map +1 -1
  58. package/dist/readability.js +76 -3
  59. package/dist/readability.js.map +1 -1
  60. package/dist/register-bands.d.ts +16 -5
  61. package/dist/register-bands.d.ts.map +1 -1
  62. package/dist/register-bands.js +56 -17
  63. package/dist/register-bands.js.map +1 -1
  64. package/dist/skills/argument-arc/scripts/headings-core.d.ts +12 -0
  65. package/dist/skills/argument-arc/scripts/headings.d.ts +2 -0
  66. package/dist/skills/cold-read-diff/scripts/cold-read-core.d.ts +12 -0
  67. package/dist/skills/cold-read-diff/scripts/readers.d.ts +2 -1
  68. package/dist/term-definition-rules.d.ts +26 -0
  69. package/dist/term-definition-rules.d.ts.map +1 -0
  70. package/dist/term-definition-rules.js +137 -0
  71. package/dist/term-definition-rules.js.map +1 -0
  72. package/dist/tex-paper.d.ts +6 -0
  73. package/dist/tex-paper.d.ts.map +1 -1
  74. package/dist/tex-paper.js +10 -0
  75. package/dist/tex-paper.js.map +1 -1
  76. package/dist/tex-requirements.d.ts +2 -0
  77. package/dist/tex-requirements.d.ts.map +1 -1
  78. package/dist/tex-requirements.js +9 -0
  79. package/dist/tex-requirements.js.map +1 -1
  80. package/dist/tex-venue-rules.d.ts +3 -2
  81. package/dist/tex-venue-rules.d.ts.map +1 -1
  82. package/dist/tex-venue-rules.js +3 -2
  83. package/dist/tex-venue-rules.js.map +1 -1
  84. package/docs/configuration.md +2 -2
  85. package/{skills/paper-pipeline/references → docs/design}/acceptance-gate.md +50 -53
  86. package/docs/design/paper-pipeline-history.md +217 -0
  87. package/docs/design/skill-provenance.md +132 -0
  88. package/docs/design/study-modes.md +1 -1
  89. package/docs/design/verify-citations-history.md +135 -0
  90. package/docs/design/writing-exemplars.md +19 -0
  91. package/docs/install.md +7 -4
  92. package/docs/layout.md +5 -4
  93. package/docs/optional-rules.md +4 -0
  94. package/docs/osf-artifact.md +54 -0
  95. package/docs/pipeline.md +171 -0
  96. package/docs/render.md +82 -0
  97. package/docs/rules/paper/folder-venue-leftover.md +10 -7
  98. package/docs/rules/tex/contrast-frames.md +1 -2
  99. package/docs/rules/tex/max-caption-words.md +82 -0
  100. package/docs/rules/tex/max-paragraph-words.md +2 -2
  101. package/docs/rules/tex/negated-sentences.md +96 -0
  102. package/docs/rules/tex/term-before-definition.md +103 -0
  103. package/docs/rules/tex/term-defined-twice.md +62 -0
  104. package/docs/rules/tex/venue-leftover.md +13 -1
  105. package/docs/rules.md +23 -18
  106. package/docs/skills.md +16 -21
  107. package/docs/submission.md +14 -0
  108. package/docs/texlive-install-decision.md +1 -1
  109. package/docs/toolchain.md +11 -11
  110. package/eslint-rules/review-frontmatter.schema.json +15 -8
  111. package/eslint-rules/review-frontmatter.test.mjs +8 -5
  112. package/eslint-rules/review-frontmatter.ts +5 -5
  113. package/eslint.config.mjs +1 -5
  114. package/hooks/paper-status-gates.sh +21 -4
  115. package/hooks/paper-status-gates.test.ts +51 -0
  116. package/lib/skill-checks.test.mjs +2 -6
  117. package/lib/skill-trigger-cases.mjs +12 -97
  118. package/lib/skill-trigger-cases.test.ts +0 -6
  119. package/package.json +3 -1
  120. package/presets/acm-sigconf.md +1 -1
  121. package/presets/agenticdev.jsonc +5 -2
  122. package/presets/agenticdev.md +4 -2
  123. package/presets/aidc.jsonc +14 -1
  124. package/presets/aidc.md +3 -2
  125. package/presets/aisec.jsonc +9 -3
  126. package/presets/aisec.md +4 -1
  127. package/presets/ase.jsonc +145 -0
  128. package/presets/ase.md +178 -0
  129. package/presets/ccs.jsonc +87 -0
  130. package/presets/ccs.md +184 -0
  131. package/presets/icse.jsonc +100 -0
  132. package/presets/icse.md +126 -0
  133. package/presets/ieee-conference.md +1 -1
  134. package/presets/sp.jsonc +152 -0
  135. package/presets/sp.md +160 -0
  136. package/presets/venue-profile.schema.json +22 -3
  137. package/scripts/harness-api.frozen.json +0 -4
  138. package/scripts/pipeline.ts +481 -0
  139. package/skills/CLAUDE.md +2 -2
  140. package/skills/CLAUDE.md.spec.ts +26 -1
  141. package/skills/analyze-sibling-paper/SKILL.md +2 -20
  142. package/skills/analyze-sibling-paper/SKILL.md.spec.ts +9 -19
  143. package/skills/argument-arc/SKILL.md +32 -18
  144. package/skills/argument-arc/SKILL.md.spec.ts +43 -17
  145. package/skills/argument-arc/scripts/headings-core.js +46 -0
  146. package/skills/argument-arc/scripts/headings-core.ts +65 -0
  147. package/skills/argument-arc/scripts/headings.js +15 -0
  148. package/skills/argument-arc/scripts/headings.test.ts +105 -0
  149. package/skills/argument-arc/scripts/headings.ts +20 -0
  150. package/skills/build-benchmark/SKILL.md +1 -12
  151. package/skills/build-benchmark/SKILL.md.spec.ts +15 -11
  152. package/skills/build-label-page/SKILL.md.spec.ts +11 -0
  153. package/skills/camera-ready/SKILL.md +1 -8
  154. package/skills/camera-ready/SKILL.md.spec.ts +8 -7
  155. package/skills/cold-read-diff/SKILL.md +36 -25
  156. package/skills/cold-read-diff/SKILL.md.spec.ts +44 -24
  157. package/skills/cold-read-diff/scripts/cold-read-core.js +63 -6
  158. package/skills/cold-read-diff/scripts/cold-read-core.ts +81 -6
  159. package/skills/cold-read-diff/scripts/cold-read.js +1 -1
  160. package/skills/cold-read-diff/scripts/cold-read.test.ts +66 -0
  161. package/skills/cold-read-diff/scripts/cold-read.ts +1 -1
  162. package/skills/cold-read-diff/scripts/readers.js +2 -1
  163. package/skills/cold-read-diff/scripts/readers.ts +2 -1
  164. package/skills/draft-paper/SKILL.md +16 -29
  165. package/skills/draft-paper/SKILL.md.spec.ts +27 -28
  166. package/skills/extend-paper/SKILL.md +7 -16
  167. package/skills/extend-paper/SKILL.md.spec.ts +18 -15
  168. package/skills/find-venue/SKILL.md +11 -24
  169. package/skills/find-venue/SKILL.md.spec.ts +19 -23
  170. package/skills/harden-paper/SKILL.md +62 -290
  171. package/skills/harden-paper/SKILL.md.spec.ts +82 -304
  172. package/skills/harden-paper/harden-paper.harness.mjs +1 -2
  173. package/skills/jobs.ts +25 -0
  174. package/skills/label-agent-runs/SKILL.md.spec.ts +10 -0
  175. package/skills/map-prior-work/SKILL.md +5 -4
  176. package/skills/map-prior-work/SKILL.md.spec.ts +13 -3
  177. package/skills/paper-pipeline/SKILL.md +80 -278
  178. package/skills/paper-pipeline/SKILL.md.spec.ts +130 -276
  179. package/skills/paper-pipeline/description-language.eval.mjs +0 -22
  180. package/skills/paper-pipeline/framing-vs-vocabulary.eval.mjs +0 -29
  181. package/skills/paper-pipeline/paper-pipeline.harness.mjs +0 -16
  182. package/skills/paper-pipeline/pipeline-firing.eval.mjs +7 -29
  183. package/skills/paper-pipeline/pipeline-language.eval.mjs +0 -52
  184. package/skills/paper-pipeline/references/artifact-checklist.md +6 -1
  185. package/skills/paper-pipeline/references/body-vs-appendix.md +3 -4
  186. package/skills/paper-pipeline/references/pipeline-status-template.md +8 -10
  187. package/skills/paper-pipeline/references/review-ratchet.md +4 -7
  188. package/skills/paper-pipeline/references/venue-bar.md +1 -2
  189. package/skills/paper-pipeline/references/writing-craft.md +21 -281
  190. package/skills/paper-status/SKILL.md +17 -20
  191. package/skills/paper-status/SKILL.md.spec.ts +23 -19
  192. package/skills/pc-panel-review/SKILL.md +66 -93
  193. package/skills/pc-panel-review/SKILL.md.spec.ts +75 -92
  194. package/skills/plan-paper-timeline/SKILL.md +7 -29
  195. package/skills/plan-paper-timeline/SKILL.md.spec.ts +16 -28
  196. package/skills/plan-paper-timeline/plan-paper-timeline.effects.harness.mjs +2 -2
  197. package/skills/render-paper/check-render.sh +2 -2
  198. package/skills/render-paper/render-paper.harness.mjs +4 -20
  199. package/skills/research-ideate/SKILL.md +15 -32
  200. package/skills/research-ideate/SKILL.md.spec.ts +25 -31
  201. package/skills/rewrite-unclear/SKILL.md +15 -14
  202. package/skills/rewrite-unclear/SKILL.md.spec.ts +24 -15
  203. package/skills/rewrite-unclear/rewrite-unclear.eval.ts +2 -3
  204. package/skills/run-agent-grid/SKILL.md +3 -3
  205. package/skills/run-agent-grid/SKILL.md.spec.ts +10 -2
  206. package/skills/study-accepted-papers/SKILL.md +5 -5
  207. package/skills/study-accepted-papers/SKILL.md.spec.ts +27 -4
  208. package/skills/submit-paper/SKILL.md +37 -31
  209. package/skills/submit-paper/SKILL.md.spec.ts +46 -30
  210. package/skills/submit-paper/check-deanon.sh +1 -1
  211. package/skills/tighten-paper/SKILL.md +43 -68
  212. package/skills/tighten-paper/SKILL.md.spec.ts +51 -67
  213. package/skills/verify-citations/SKILL.md +18 -112
  214. package/skills/verify-citations/SKILL.md.spec.ts +27 -114
  215. package/src/adapters/latex/abstract.test.ts +42 -0
  216. package/src/adapters/latex/abstract.ts +23 -6
  217. package/src/adapters/latex/captions.test.ts +36 -38
  218. package/src/adapters/latex/captions.ts +16 -33
  219. package/src/adapters/latex/index.test.ts +11 -0
  220. package/src/adapters/latex/index.ts +5 -2
  221. package/src/adapters/latex/prose.ts +23 -11
  222. package/src/cli.ts +26 -5
  223. package/src/domain/register.test.ts +65 -0
  224. package/src/domain/register.ts +72 -16
  225. package/src/domain/term-definitions.test.ts +240 -0
  226. package/src/domain/term-definitions.ts +329 -0
  227. package/src/domain/tex-document.ts +12 -0
  228. package/src/domain/venue-name.test.ts +4 -4
  229. package/src/folder-venue-rule.test.ts +23 -2
  230. package/src/folder-venue-rule.ts +8 -8
  231. package/src/hooks-notice.test.ts +127 -0
  232. package/src/hooks-notice.ts +50 -10
  233. package/src/link-skills.ts +9 -0
  234. package/src/new-paper.test.ts +2 -2
  235. package/src/paper-settings-commands.test.ts +1 -1
  236. package/src/ports/latex.ts +11 -0
  237. package/src/preset-card-rule.test.ts +4 -0
  238. package/src/presets.test.ts +141 -4
  239. package/src/presets.ts +113 -22
  240. package/src/readability.test.ts +92 -0
  241. package/src/readability.ts +113 -5
  242. package/src/register-bands.test.ts +81 -1
  243. package/src/register-bands.ts +88 -23
  244. package/src/rule-cases.test.ts +122 -2
  245. package/src/term-definition-rules.test.ts +150 -0
  246. package/src/term-definition-rules.ts +189 -0
  247. package/src/tex-paper.test.ts +18 -1
  248. package/src/tex-paper.ts +11 -0
  249. package/src/tex-requirements.ts +15 -0
  250. package/src/tex-venue-rules.test.ts +45 -1
  251. package/src/tex-venue-rules.ts +8 -3
  252. package/src/venue-rules.test.ts +2 -2
  253. package/templates/paper/PIPELINE-STATUS.md +19 -19
  254. package/dist/paper-prose.d.ts +0 -17
  255. package/dist/paper-prose.d.ts.map +0 -1
  256. package/dist/paper-prose.js +0 -46
  257. package/dist/paper-prose.js.map +0 -1
  258. package/skills/grade-paper-writing/SKILL.md +0 -494
  259. package/skills/grade-paper-writing/SKILL.md.spec.ts +0 -501
  260. package/skills/grade-paper-writing/__snapshots__/prose-lint.test.ts.snap +0 -84
  261. package/skills/grade-paper-writing/fixtures/control_gopen.txt +0 -1
  262. package/skills/grade-paper-writing/fixtures/control_human_paper.txt +0 -1
  263. package/skills/grade-paper-writing/fixtures/rewrite.txt +0 -1
  264. package/skills/grade-paper-writing/fixtures/specimen.txt +0 -1
  265. package/skills/grade-paper-writing/fixtures/structure-checks.md +0 -22
  266. package/skills/grade-paper-writing/grade-paper-writing.eval.mjs +0 -19
  267. package/skills/grade-paper-writing/grade-paper-writing.harness.mjs +0 -23
  268. package/skills/grade-paper-writing/prose-lint.mjs +0 -602
  269. package/skills/grade-paper-writing/prose-lint.test.ts +0 -413
  270. package/skills/osf-artifact-upload/SKILL.md +0 -58
  271. package/skills/osf-artifact-upload/SKILL.md.spec.ts +0 -65
  272. package/skills/osf-artifact-upload/osf-artifact-upload.eval.mjs +0 -22
  273. package/skills/osf-artifact-upload/osf-artifact-upload.harness.ts +0 -102
  274. package/skills/paper-adversarial-review/SKILL.md +0 -100
  275. package/skills/paper-adversarial-review/SKILL.md.spec.ts +0 -107
  276. package/skills/paper-adversarial-review/paper-adversarial-review.eval.mjs +0 -19
  277. package/skills/paper-adversarial-review/paper-adversarial-review.harness.mjs +0 -24
  278. package/skills/paper-pipeline/grade-paper-writing-ablation.eval.mjs +0 -1274
  279. package/skills/paper-pipeline/references/credit-criteria.md +0 -69
  280. package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/README.md +0 -35
  281. package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/run_retext.mjs +0 -24
  282. package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/sentences.txt +0 -11
  283. package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/test_sentences.py +0 -25
  284. package/skills/paper-pipeline/references/occupancy-2026-08-06-prose-checkers.md +0 -538
  285. package/skills/paper-pipeline/references/occupancy-2026-08-06-reproducible-tooling.md +0 -431
  286. package/skills/paper-pipeline/references/occupancy-2026-08-06-staleness-and-orchestration.md +0 -592
  287. package/skills/paper-pipeline/repro/2026-08-08-parent-replication.mjs +0 -92
  288. package/skills/render-paper/SKILL.md +0 -123
  289. package/skills/render-paper/SKILL.md.spec.ts +0 -130
  290. package/skills/render-paper/render-paper.eval.mjs +0 -19
  291. package/skills/submission-portal/SKILL.md +0 -129
  292. package/skills/submission-portal/SKILL.md.spec.ts +0 -134
  293. package/skills/submission-portal/submission-portal.eval.mjs +0 -15
  294. package/skills/submission-portal/submission-portal.test.ts +0 -12
  295. package/skills/sweep-design-space/SKILL.md +0 -232
  296. package/skills/sweep-design-space/SKILL.md.spec.ts +0 -248
  297. package/skills/sweep-design-space/sweep-design-space.eval.mjs +0 -19
  298. package/skills/sweep-design-space/sweep-design-space.harness.mjs +0 -23
  299. package/src/paper-prose.test.ts +0 -78
  300. package/src/paper-prose.ts +0 -67
@@ -5,11 +5,33 @@
5
5
  // `SkillSpec` in vigiles branch `claude/skill-disallowed-tools` and is not in a release
6
6
  // this repo installs, so writing one here would not compile.
7
7
  import { experimental_skill } from "vigiles/spec";
8
+ import type { Flow } from "../../scripts/pipeline.ts";
9
+ import analyzeSiblingPaper from "../analyze-sibling-paper/SKILL.md.spec.ts";
10
+ import argumentArc from "../argument-arc/SKILL.md.spec.ts";
11
+ import buildBenchmark from "../build-benchmark/SKILL.md.spec.ts";
12
+ import buildLabelPage from "../build-label-page/SKILL.md.spec.ts";
13
+ import coldReadDiff from "../cold-read-diff/SKILL.md.spec.ts";
14
+ import cameraReady from "../camera-ready/SKILL.md.spec.ts";
15
+ import draftPaper from "../draft-paper/SKILL.md.spec.ts";
16
+ import extendPaper from "../extend-paper/SKILL.md.spec.ts";
17
+ import findVenue from "../find-venue/SKILL.md.spec.ts";
18
+ import hardenPaper from "../harden-paper/SKILL.md.spec.ts";
19
+ import labelAgentRuns from "../label-agent-runs/SKILL.md.spec.ts";
20
+ import mapPriorWork from "../map-prior-work/SKILL.md.spec.ts";
21
+ import pcPanelReview from "../pc-panel-review/SKILL.md.spec.ts";
22
+ import planPaperTimeline from "../plan-paper-timeline/SKILL.md.spec.ts";
23
+ import researchIdeate from "../research-ideate/SKILL.md.spec.ts";
24
+ import rewriteUnclear from "../rewrite-unclear/SKILL.md.spec.ts";
25
+ import runAgentGrid from "../run-agent-grid/SKILL.md.spec.ts";
26
+ import studyAcceptedPapers from "../study-accepted-papers/SKILL.md.spec.ts";
27
+ import submitPaper from "../submit-paper/SKILL.md.spec.ts";
28
+ import tightenPaper from "../tighten-paper/SKILL.md.spec.ts";
29
+ import verifyCitations from "../verify-citations/SKILL.md.spec.ts";
8
30
 
9
31
  export default experimental_skill({
10
32
  name: "paper-pipeline",
11
33
  description:
12
- "The orchestrator for writing a research paper end-to-end, from idea to accepted-and-extended, with every stage graded for the credit it earns a body of work. START HERE when writing/hardening a paper (AgenticDev, AISec, and future ones) and want the whole lifecycle driven, not one step. Routes to the stage skills — research-ideate, find-venue, plan-paper-timeline, build-benchmark, draft-paper, render-paper, verify-citations, the review skills, submit-paper (+ venue cards), camera-ready, extend-paper — and owns the shared references.",
34
+ "The orchestrator for writing a research paper end-to-end, from idea to accepted-and-extended. START HERE when writing/hardening a paper (AgenticDev, AISec, and future ones) and want the whole lifecycle driven, not one step. Routes to the stage skills — research-ideate, find-venue, plan-paper-timeline, build-benchmark, draft-paper, verify-citations, the review skills, submit-paper (+ venue cards), camera-ready, extend-paper — and owns the shared references.",
13
35
  tools: [
14
36
  "Read",
15
37
  "Write",
@@ -28,20 +50,15 @@ export default experimental_skill({
28
50
  Editing the paper's text after an approved copy exists (\`paperlint versions approve\`): declare each change in \`versions/<cycle>/changes.yaml\`, \`paperlint versions diff\` shows what was lost (EXPERIMENTAL; \`docs/rules/cycle/changes-since-approved.md\`). With an approved copy, \`submission … --save\` refuses while the source differs from it; approve it first (the author does, never the agent).
29
51
 
30
52
  This is the entry point. Each lifecycle stage is its own skill; this routes through them in order and
31
- owns the shared reference docs the others cite. **These papers are written to COUNT as credentials** —
32
- every stage is graded against \`references/credit-criteria.md\`, not abstract "impact." The personal half
33
- of that — who is filing what, and when — stays in the author's own private notes, never in a public repo.
53
+ owns the shared reference docs the others cite.
34
54
 
35
55
  ## Shared references (single source of truth — all skills cite these)
36
- - \`references/credit-criteria.md\` — which criteria a paper feeds; where venue quality bites; the
37
- decisions credit value forces on the pipeline.
38
56
  - \`references/artifact-checklist.md\` — the self-checking reproduction artifact.
39
57
  - \`references/anonymization.md\` — the double-blind deny-list + hygiene (and its reverse at camera-ready).
40
- - \`references/writing-craft.md\` — how well-written papers read (craft rules + exemplar lessons + the
41
- gradeable 10-dim writing rubric); cited by \`draft-paper\`, \`grade-paper-writing\`, and \`harden-paper\`.
42
- - \`references/review-ratchet.md\` — how to fix a caught overclaim (tighten → cut → Threats → hedge)
43
- and why every review round must be paid back with a \`tighten-paper\` pass; cited by
44
- \`paper-adversarial-review\`, \`pc-panel-review\`, \`harden-paper\`.
58
+ - \`references/writing-craft.md\` — how well-written papers read (craft rules);
59
+ cited by \`draft-paper\`, \`rewrite-unclear\` and \`tighten-paper\`.
60
+ - \`references/review-ratchet.md\` — how to fix a caught overclaim (tighten → cut → Threats → hedge);
61
+ cited by \`pc-panel-review\` and \`harden-paper\`.
45
62
  - \`references/pipeline-status-template.md\` — the per-paper **readiness scorecard** (which stages ran,
46
63
  grades, open findings, submit-ready verdict). Copied into \`<paper-dir>/PIPELINE-STATUS.md\`.
47
64
  - \`references/acl-venue-rules.md\` — what holds at **every** ACL-family venue and workshop: the
@@ -63,92 +80,9 @@ their grade/result, what's open,* and a one-line **submit-ready verdict**. Rules
63
80
  reconstruct from chat.
64
81
  - Distinct from \`SUBMIT-CHECKLIST.md\` (venue-format compliance); both must be green before upload.
65
82
 
66
- ## 🗺️ Where every check actually runs — and where it can be walked around
83
+ ## Four kinds of work, four shapes
67
84
 
68
- \`\`\`
69
- YOU EDIT YOU COMMIT YOU BUILD YOU PUSH
70
- │ │ │ │
71
- ▼ ▼ ▼ ▼
72
- ┌──────────────┐ ┌────────────────┐ ┌────────────────┐ ┌────────────────┐
73
- │ PostToolUse │ │ .githooks/ │ │ build- │ │ GitHub Actions │
74
- │ paper-lint │ BLOCKS │ pre-commit │REFUSES│ submission.sh │ │ paper-gates │
75
- │ pre >55 wds │ │ │ │ │ │ │
76
- │ paper-lint │ nudges │ numbers gate │ │ numbers gate │REFUSES numbers+self│
77
- │ post │ │ │ │ │ │ │
78
- │ prose-lint │ │ prose-lint │ nudge │ page count │ │ prose-lint │
79
- │ SHAVE │ │ self-test if │ │ overfull │ │ check-anon │
80
- │ numbers │ │ you touched │ │ unresolved │ │ verify-cites │
81
- │ paper-edit- │ BLOCKS │ a gate │ │ refs │ │ provenance │
82
- │ guard │ bash │ harness if │ │ dropped glyphs│ │ scorecard │
83
- └──────────────┘ │ you touched │ │ anon grep │ │ harness │
84
- │ │ a hook │ └────────────────┘ │ LaTeX build │
85
- │ │ RAW DNA │REFUSES │ └────────────────┘
86
- │ └────────────────┘ │ │
87
- │ │ │ │
88
- watches EVENTS watches STATE watches OUTPUT watches EVERYTHING
89
- (Edit/Write fired) (what is staged) (the actual PDF) (after the fact)
90
- │ │
91
- │ │
92
- 🕳 BYPASSABLE: 🛡 NOT bypassable by that route: it does not care
93
- write from Bash and HOW the bytes got there. However you wrote the
94
- no event fires, so file, you still have to commit it.
95
- every PostToolUse
96
- check silently
97
- does not run.
98
- \`\`\`
99
-
100
- **Read the bottom row, it is the whole point.** Each column watches a different KIND of thing, and
101
- that is why they are not three copies of one check:
102
-
103
- - **Editor hooks watch events.** Fast, and the only layer that can stop a bad edit *before* it lands.
104
- Bypassable by construction — an event that never fires cannot be checked, and writing the file from
105
- Bash produces no event. Documented in \`papers/CLAUDE.md\`, open since 2026-08-04.
106
- - **The git hook watches state.** Immune to that whole class, because it reads what is staged and has
107
- no opinion about how it got staged. This is the layer that was missing, and the one to reach for
108
- when an editor check turns out to be walkable-around.
109
- - **The build watches output.** Only it can see page count, overfull boxes, and glyphs pdflatex
110
- silently dropped — none of which exist until the PDF does.
111
- - **CI watches everything, but after the fact.** Its real job is the slow checks nobody will wait for
112
- locally (the anonymity self-test copies a 24 MB bundle per leak category) and the self-tests, which
113
- are what catch a gate that has quietly stopped catching things.
114
-
115
- 🔴 **A fifth kind, and none of the four columns can see it: does the MODEL call these skills at all?**
116
- Every column above watches something the repository produced — an event, staged bytes, a PDF, a commit.
117
- None watches *selection*: whether a real model, reading 37 competing descriptions, picks \`tighten-paper\`
118
- over \`grade-paper-writing\` when the draft is bloated. A harness test proves a skill works once invoked;
119
- it cannot prove it gets invoked. That needs the real CLI and it costs money, so it is a measurement, not
120
- a gate — \`.claude/skills/paper-pipeline/pipeline-firing.eval.mjs\`, run manually or by the weekly
121
- \`skill-firing\` job (\`workflow_dispatch\` + \`schedule\`, deliberately NOT on push). It installs every skill
122
- in this repo natively so selection is *competitive*, feeds each skill 4 prompts it should fire on plus 4
123
- its colliding sibling owns, and reports recall / false-positive / precision per skill against a committed
124
- baseline. **What it measures drifts without a commit here** — a model update can change routing while
125
- every file stays byte-identical, which is exactly the regression no check in the diagram can see.
126
- Prior art is named in the file header (\`adewale/skill-eval-harness\` does this too); the idea is not ours.
127
-
128
- 🔴 **Still manual, and no mechanism has been found for it:** the **cold read** — a reader with no
129
- context restating each sentence — is the only check that catches a sentence that is short, true,
130
- threshold-passing and meaningless. It needs a fresh subagent, so no hook can run it.
131
-
132
- Install the git hook once per clone: \`git config core.hooksPath .githooks\`.
133
-
134
- ## 🔴 There is no stage 7. Four kinds of work, four shapes.
135
-
136
- **This section replaced a single numbered list running 0 → 12, on 2026-08-03.** That list had a
137
- paragraph on top explaining that the numbers were dependencies rather than turns — and underneath it,
138
- a table numbered straight through, which every reader (including this pipeline's own author) read as a
139
- waterfall. The paragraph was the tell: a document that needs a disclaimer explaining how not to read
140
- it is mis-shaped, and the fix is to change the shape, not to add a second disclaimer. That is the
141
- argument \`compile-rules-2026\` makes about instruction files, applied here.
142
-
143
- Three concrete errors the numbering produced, all real:
144
-
145
- - **\`verify-citations\` sat at 7**, looking like a one-shot step, while the project rule is that it runs
146
- every cycle — an edit on the last day adds a \`\\cite\` that "we checked last cycle" does not cover.
147
- - **\`render-paper\` sat at 6**, as a stage. It is a command you run twenty times a day.
148
- - **\`map-prior-work\` sat at 1.5** and its own description told you to re-run it as a cheap delta before
149
- submit — so it was simultaneously a stage and a continuous check, and the table could only show one.
150
-
151
- Work is now grouped by **how it runs**, and only the groups that are genuinely ordered carry an order.
85
+ Work is grouped by **how it runs**, and only the groups that are genuinely ordered carry an order.
152
86
 
153
87
  | kind | shape | how to read it |
154
88
  |---|---|---|
@@ -166,9 +100,9 @@ Ordered, because each really does gate the next. Two pairs run in parallel; that
166
100
  | Step | Skill | What it settles |
167
101
  |---|---|---|
168
102
  | **Orient** | — | Read \`<papers-root>/HANDOFF.md\` + \`<papers-root>/research/README.md\`. Never restart from scratch. |
169
- | **Validate the idea** | **\`research-ideate\`** | Is it a reusable method (survives review) in your lane, and does it feed the credit criteria? Go/no-go + the MVP finding. |
103
+ | **Validate the idea** | **\`research-ideate\`** | Is it a reusable method (survives review) in your lane? Go/no-go + the MVP finding. |
170
104
  | **Map the competition** ‖ | **\`map-prior-work\`** | 🔴 **Who already did this?** Multi-angle sweep; date each hit against your submission (5 months = prior, not concurrent); triage by which layer of your claim it threatens; deep-read the dangerous ones. Output: **what you can still claim** + a related-work skeleton. *Added 2026-07-27 after a five-month-older paper surfaced at T−10 days on a finished draft.* |
171
- | **Pick the venue** ‖ | **\`find-venue\`** | Rank by credit-weight (peer-reviewed + indexed) × fit × accept-odds × deadline × remote. |
105
+ | **Pick the venue** ‖ | **\`find-venue\`** | Rank by archival weight (peer-reviewed + indexed) × fit × accept-odds × deadline × remote. |
172
106
  | **Learn what the venue rewards** | **\`study-accepted-papers\`** (mode A idea, B design) | 🔴 **What does this venue REWARD, before the study is designed?** The venue's award winners against its ordinary accepted papers over 5–7 years (plus award papers on the topic at other venues, labelled apart), coded for substance as well as form, written as **requirements for the study**: what the oracle under the headline is, which belief stated on record the claim targets, which factor is a column. The corpus goes to \`<papers-root>/venues/<venue>/\`, shared by every paper for that venue; the stage is row \`venuebar\`. **The same skill comes back once text exists** (mode C draft: the strong-accept scorecard, M1–M10, in \`PIPELINE-STATUS.md\`; mode D final: the abstract and introduction). The skill always asks which mode. Venue format facts go in its preset (\`presets/<venue>.jsonc\` in the package, or the project's own) and the venue card beside it (\`presets/<venue>.md\`); confirm family rules (\`references/acl-venue-rules.md\`). *Promoted to its own step 2026-08-03: every judgement of a paper's quality had come from instruments this pipeline itself generated, with no external grounding. Moved to modes on 2026-10-12 (#207): run only on a draft, its main findings arrived after they could change the design.* |
173
107
  | 🔴 **Can you physically submit?** | **\`plan-paper-timeline\`** | **The step that owns the question no stage used to own.** Create the portal account NOW; drive the profile to **ACTIVE**, not "pending moderation"; confirm the form's fields and the artifact-hosting requirement. OpenReview moderation runs **up to two weeks**, and an author with no institutional email has no expedite route. Scorecard row \`access\`. *Added 2026-08-03, when this was the sole critical-path item on a finished paper at T−4 days: the science was done and there was nowhere to put it.* |
174
108
  | **Schedule it** | **\`plan-paper-timeline\`** | Deadlines → calendar with buffers, in the author's own zone (AoE − 12h ≠ your clock). Space papers apart. |
@@ -219,7 +153,7 @@ These have no position, because a position is what made them look finished. Each
219
153
  | any \`\\cite\` added or moved | **\`verify-citations\`** | An edit on the last day adds a citation the last run never saw. "We checked last cycle" does not count — the project rule, and it was numbered as a one-shot anyway. |
220
154
  | a genuine sibling surfaces | **\`analyze-sibling-paper\`** | Deep-read, scoop/delta, saved in \`<paper-dir>/siblings/\`. |
221
155
  | the contribution's framing moves | **\`map-prior-work\`** (delta mode) | A cheap re-sweep. ⚠️ If a rival first surfaces during citation checking, the SETUP sweep was skipped and you are reshaping the contribution under deadline. |
222
- | any \`.tex\` edit | **\`render-paper\`** + page count | **Not a stage — a command.** Render, then eyeball pages 1–2 before believing anything about the paper. 🔴 **Rendering is continuous; ACTING on the page count is not** — see the rule below. |
156
+ | any \`.tex\` edit | \`npx paperlint build\` + the render gate (\`docs/render.md\` in the package), page count | **Not a stage — a command.** Build, then look at every page with a figure for what the log cannot flag (label collisions inside a figure, legibility, misaligned sub-figures) before believing anything about the paper; send the page images to the author with what changed since the last build. 🔴 **Rendering is continuous; ACTING on the page count is not** — see the rule below. |
223
157
  | the deadline approaches | the \`access\` row | Re-check that the profile is still ACTIVE and the portal still opens. External state rots without telling you. |
224
158
 
225
159
  ## GATES — late, expensive, each blocked on a named input
@@ -228,11 +162,9 @@ Ordered, and the order is real: every one refuses to run without the output of t
228
162
 
229
163
  | Gate | Skill | Requires (hard) |
230
164
  |---|---|---|
231
- | **Structure** | **\`tighten-paper\`** | A rendered PDF and a page count. Produces the cut plan + structural verdict. *Before 2026-07-30 this appeared only INSIDE the harden stage — i.e. after the gate that requires it — so a literal reading sent you into a hard-blocked gate.* |
232
- | **Writing craft** | **\`grade-paper-writing\`** | The current draft. Produces the **persona stall inventory**, which the panel cannot run without. The stalls are rewritten by **\`rewrite-unclear\`**, the one skill that rewrites for clarity. |
233
- | **Review decision** | **\`pc-panel-review\`** | 🔴 **Both of the above.** N independent lenses (incl. an artifact-runner that executes the artifact) + a chair meta-review — predicts the PC's accept/reject. Its venue-fit mode is the one-reviewer CFP-fit spot-check. |
234
- | **Claim preservation** | Fable diff (\`claims\`) | The pre-pass baseline. Run after **every** aggressive rewrite, before committing. |
235
- | **Harden** | **\`harden-paper\`** | The panel's verdict. Closes the desk-reject axes a reviewer-sim misses: threat-model, ethics/dual-use, page-fit, citability, double-blind hygiene, artifact-runs-clean. Its structure and writing axes are the **re-run/confirm** pass, not the first invocation. |
165
+ | **Final review** | **\`tighten-paper\`** → **\`cold-read-diff\`** \`--whole\` → **\`pc-panel-review\`** | A rendered PDF and a page count. Once, in that order, then closed: the next section. Sentences the readers flag are rewritten by **\`rewrite-unclear\`**. |
166
+ | **Claim preservation** | \`rewrite-unclear\` step 4 (\`claims\`) | The pre-pass baseline. Run on each rewrite, before committing; it writes the \`claims\` row. |
167
+ | **Harden** | **\`harden-paper\`** | The closed final review. The submit checklist: \`npx paperlint lint\`, then the items no rule decides (threat model and ethics, the artifact and its numbers, the headline table). It takes the final review's reports and does not run them again. |
236
168
  | **Submit** | **\`submit-paper\`** (+ the venue card) | 🔴 **The \`access\` row green.** Portal mechanics, PDF-only, artifact hosted anonymously, "ready for review" marked. |
237
169
 
238
170
  ## AFTER — only reachable by acceptance
@@ -240,55 +172,72 @@ Ordered, and the order is real: every one refuses to run without the output of t
240
172
  **\`camera-ready\`** — de-anonymize; public repo + archival DOI; complete disclosure. Then
241
173
  **\`extend-paper\`** — extend (≥30% new) to a higher-prestige venue, the "second, stronger publication."
242
174
 
243
- **Which review skill?** \`paper-adversarial-review\` = one hostile reviewer, fast defect hunt;
244
- \`pc-panel-review\` = the full panel + meta-review that makes the accept/reject **decision** (its
245
- **venue-fit mode** is the one-reviewer CFP-fit spot-check — formerly the standalone \`venue-review-sim\`).
246
- Use an atom for a quick spot-check; **run the panel for the decision.**
175
+ **Which review skill?** \`pc-panel-review\`: the full panel + meta-review predicts the accept/reject
176
+ **decision**; before the final review, a red-team request runs its **hostile seat** alone, without
177
+ the readability inputs, and in the final review that seat sits on the panel; the **venue-fit seat**
178
+ alone is a spot-check for a CFP-fit score.
247
179
 
248
180
  **Four grading axes — don't confuse them.** A draft is judged on four independent axes, each its own
249
181
  skill: 🔴 **argument architecture** — does the whole thing carry the reader to one conclusion
250
182
  (\`argument-arc\`, in the LOOP; the axis that failed on \`compile-rules-2026\` precisely because it was
251
183
  nobody's) · **content strength** — does the contribution clear *this venue's* bar (\`study-accepted-papers\`,
252
184
  from the venue's own award winners: in SETUP as requirements for the study, and again on the draft as the strong-accept scorecard, M1–M10) ·
253
- **scientific defects** — what a hostile reviewer attacks (\`paper-adversarial-review\` / \`pc-panel-review\`)
254
- · **writing craft** — does it read like a human wrote it (\`grade-paper-writing\`, the 10-dim rubric in
255
- \`references/writing-craft.md\`; called by \`harden-paper\`). A paper can ace one and fail another — grade all four.
185
+ **scientific defects** — what a hostile reviewer attacks (\`pc-panel-review\`)
186
+ · **clarity** — can a reader with no context say what each sentence claims (\`cold-read-diff\`, in the
187
+ final review). A paper can ace one and fail another — check all four.
256
188
  **The arc axis comes first**, because tightening length and polishing sentences inside a broken arc is
257
189
  how a day disappears and the same paper ships.
258
190
 
259
- **Panel vs harden — not rival gates, they're sequential.** \`pc-panel-review\` is the review DECISION
260
- gate: it predicts what the PC does. \`harden-paper\` is the pre-submit ORCHESTRATOR: it *calls* the review
261
- skills and then closes the desk-reject axes a reviewer-sim doesn't systematically hit (threat-model,
262
- ethics/dual-use, page-fit, citability, double-blind hygiene). Order is **review (decide) → harden (close
263
- every other axis) → submit** — neither is "the one final gate" alone.
264
-
265
- ## The review round (a cycle inside GATES)
266
- Review → **apply the consensus fixes → re-run the panel to confirm**. The artifact-runner re-executes
267
- the artifact each round. Stop when the panel converges to accept and the artifact reproduces clean —
268
- **don't loop past one confirming round**, and don't chase the last notch into the deadline. A defensible
269
- **Accept shipped on time beats a risky Strong that misses it**.
191
+ **Panel vs harden — not rival gates, they're sequential.** \`pc-panel-review\` predicts what the PC does.
192
+ \`harden-paper\` is the submit checklist: the lint run, the final review's reports, and the few items no rule
193
+ decides. Order is
194
+ **final review → harden → submit**.
195
+
196
+ ## The final review — once, in this order, then closed
197
+
198
+ The one place this order is written; every other skill points here.
199
+
200
+ 1. **\`tighten-paper\`** — the structural verdict and the proposed cuts. It applies nothing.
201
+ 2. **\`cold-read-diff\`** \`--whole\` — the whole paper in chunks of at most 15 paragraphs, two blind readers
202
+ per chunk; no reader sees more than its chunk.
203
+ 3. **\`pc-panel-review\`** — one panel, with the reports of steps 1–2 as its inputs.
204
+
205
+ - **Each pass runs once.** "No findings" from any of them is a valid result and ends that pass.
206
+ - **The author decides each finding once**, and the pass's report frontmatter records it
207
+ (\`review/frontmatter\`): \`fixed\`, or \`wontfix\` with a \`note\` giving his reason; until then it is
208
+ \`open\`. He decides the findings of steps 1–2 before step 3, and the panel
209
+ receives only those still open; he decides the panel's after step 3. The write happens once, after
210
+ step 3: every accepted fix in one pass, a sentence through \`rewrite-unclear\`, a cut on his yes. A
211
+ decided finding is not raised again in this review.
212
+ - **Blockers** are a closed list, frozen when the review closes: the panel's consensus must-fixes and
213
+ the cold read's \`CANNOT PARSE\` rows. Each stops submission until \`fixed\` or \`wontfix\` with
214
+ \`note: "waived by the author: <reason>"\`.
215
+ - **At most one confirmation, and only when the author asks for it:** he names the pass, and it runs once
216
+ on what changed. No pass schedules another, and none reruns because a score is low.
217
+ - **Then the review is closed,** whatever the scores; a blocker still \`open\` stays open into the checklist.
218
+ Mark the \`panel\` row of
219
+ \`PIPELINE-STATUS.md\` \`☑ closed <date>\`. Ordinary edits, a re-approval (\`versions approve\`) and a
220
+ gate older than the text do not reopen it; only the author does, by asking for a new final review.
221
+ What is left goes to \`harden-paper\`, then \`submit-paper\`.
222
+ - **After close, a cold read of an edit runs only when the author asks.** No skill schedules one.
270
223
 
271
224
  ## 📝 Text pass vs evidence pass — two independent axes, ask which one you want
272
225
 
273
- The author, 2026-08-05 (translated from Russian): *"can we just run the gate on the text? we just
274
- checked the numbers, and now I want to grade the text — assume the numbers are fine."* He is right that these are separable, and
275
- running both when only one is wanted burns an hour for nothing.
276
-
277
- Every gate belongs to exactly one axis. **Sort by what invalidates it**, not by what it reads:
226
+ Every gate but one belongs to one axis. **Sort by what invalidates it**, not by what it reads:
278
227
 
279
228
  | axis | invalidated by | gates |
280
229
  |---|---|---|
281
- | **TEXT** — does the argument land? | a change to the **prose**: any edit, cut, reorder | \`structure\` tighten-paper · \`writing\` grade-paper-writing · \`arc\` argument-arc · the prose lenses of \`panel\` pc-panel-review |
282
- | **EVIDENCE** — is it true? | a change to the **data, code, or artifact** | \`claims\` claim-preservation · \`cites\` verify-citations · \`artifact\` the artifact-runner lens · the numeric half of \`harden\` harden-paper |
230
+ | **TEXT** — does the argument land? | a change to the **prose**: any edit, cut, reorder (until the final review is closed) | \`structure\` tighten-paper · \`coldread\` cold-read-diff · \`arc\` argument-arc · the prose lenses of \`panel\` pc-panel-review |
231
+ | **EVIDENCE** — is it true? | a change to the **data, code, or artifact** | \`cites\` verify-citations · \`artifact\` the artifact-runner lens · the numeric half of \`harden\` harden-paper |
232
+ | **BOTH** — did a rewrite change a claim? | a **prose rewrite after its recorded result**, or a data change | \`claims\` claim-preservation |
283
233
 
284
234
  **Why this matters more than it looks.** The two axes expire on completely different clocks. Rewriting
285
- a paragraph invalidates every TEXT gate and no EVIDENCE gate. Re-running an experiment does the exact
286
- reverse. Conflating them produces both classic wastes: re-verifying numbers nobody touched, and — worse
235
+ a paragraph invalidates every TEXT gate and \`claims\`, and no EVIDENCE gate. Re-running an experiment
236
+ invalidates the EVIDENCE gates and \`claims\`. Conflating them produces both classic wastes: re-verifying numbers nobody touched, and — worse
287
237
  — trusting a readability verdict on prose that has since been rewritten.
288
238
 
289
- **Text-only pass** (the common request, and the right default after a cut, a reorder, or a rewrite where
290
- the numbers did not move): run \`structure\` and \`writing\` in parallel, then \`panel\` with its artifact lens **explicitly
291
- disabled**, and hand each agent the sentence *"assume every number is correct and already verified — do
239
+ **Text-only final review** (the numbers did not move since they were checked): run it with the panel's
240
+ artifact lens **explicitly disabled**, and hand each agent the sentence *"assume every number is correct and already verified — do
292
241
  not re-derive anything; judge the writing, the structure and the argument."* Roughly halves the wall
293
242
  clock and removes the single most expensive stage.
294
243
 
@@ -299,98 +248,16 @@ and the artifact-runner; skip readability entirely.
299
248
  which axis it covered will be read as covering both — which is how a paper ends up believed to be
300
249
  checked on a dimension nobody looked at.
301
250
 
302
- ### 🔢 The one defect neither axis can see: a number correct on both axes and wrong anyway
303
-
304
- **Observed 2026-08-05, on page 1, 29 hours before a deadline.** The abstract read *"147 real rules
305
- files exactly as their projects committed them, 22 fail admission"*. The data has two arms over the
306
- same 147 files: **strict** (files byte-for-byte as committed — nothing fails) and **annotated** (the
307
- same files with the tool's proposed pointers written in — 22 fail). The 22 was from the annotated arm
308
- and was described in the strict arm's words. Five more numbers had the same defect; a sixth was found
309
- later in an appendix by machine, after two people had searched by hand.
251
+ ### 🔢 The one defect neither axis can see
310
252
 
311
- **Every gate passed, and each for a good reason.** \`cites\` checks the reference is real. \`claims\` checks the
312
- claim did not grow — and it did not, 22 was always 22. The artifact-runner recomputes the number from
313
- the data and it reconciles, *because the number is correct*. The reading panel takes "unmodified" as a
314
- fact about the world, which is what a reader does. **The defect lives only in the join between a
315
- sentence and a field path, and nothing was holding both.** It is not a TEXT defect and not an EVIDENCE
316
- defect; it is a defect of the edge between them, so no pass on either axis can be made to see it.
317
-
318
- **The construction, not another pass.** A registered quantity is not written as digits at all:
319
-
320
- \`\`\`
321
- Over {{corpus.n}} real rules files, with the extractor's proposed mapping
322
- taken as if an author had written it, {{annotated.failedContradicted}} fail admission.
323
- \`\`\`
324
-
325
- \`<paper>/repro/data/numbers.tsv\` gives each name its value, the JSON path or **formula** that recomputes
326
- it, and two guards. The build refuses a PDF unless: the name resolves · the value still matches the
327
- data · the **paragraph** names the arm (\`requires\`) · the **sentence** does not claim a different one
328
- (\`forbids\`). Requires and forbids are separate on purpose — the pairing is auditing's, where a control
329
- is tested once for *design* and once for *operating effectiveness*.
330
-
331
- **Why paragraph for one and sentence for the other.** *"Every figure in this paragraph is the
332
- counterfactual arm"* is good writing, and a sentence-scoped \`requires\` would forbid it. But *"exactly
333
- as committed"* nine words from the number is the defect itself, so \`forbids\` has to be tight.
334
-
335
- **Coverage without a migration.** \`numbers-grandfathered.txt\` lists every quantity that predates the
336
- gate; adding a new raw one fails the build. This is \`ADD CONSTRAINT ... NOT VALID\` — the constraint
337
- binds every row from now on, and the existing rows are *enumerated rather than exempted*, so the file
338
- says out loud how many figures still have no machine-checked path to data. On the paper that has it:
339
- 7 guarded, 248 grandfathered. That ratio is a finding, not a score.
340
-
341
- **Adopting it in another paper:** copy \`repro/tools/paper_numbers.py\`, \`repro/tools/paper_numbers.selftest.py\`
342
- and the build step that calls \`expand()\` on \`paper.tex\` before \`pdflatex\`; generate the
343
- grandfather list from the current draft; register the numbers a reviewer will actually check first.
344
-
345
- 🔴 **Do not write the substitution half — it is \`jinja2\`, and \`{{name}}\` is already its syntax.**
346
- Eleven candidates were installed and run on a real ACL paper on 2026-08-05. The result is not a
347
- matter of taste:
348
-
349
- | candidate | verdict, from an actual run |
350
- |---|---|
351
- | **jinja2** | **adopt.** Our \`{{annotated.failRate}}\` was already valid Jinja2; dotted names are attribute access. Zero characters changed in the paper, byte-identical \`.tex\`. This is Manubot's mechanism, taken without Manubot. Use \`StrictUndefined\`, and move the block/comment delimiters off \`{%\`/\`{#\` if the paper might ever quote a config file |
352
- | **knitr** | equally proven, also byte-identical. Rejected only for putting an R runtime into an artifact that otherwise needs \`python3\` + \`pdflatex\` |
353
- | \`\\newcommand\` + \`numbers.tex\` | works; the folk convention, ~12 GitHub hits, all hand-rolled. No package exists |
354
- | **cog.py** | ❌ line-oriented; cannot substitute mid-sentence |
355
- | **pythontex** | ❌ not in Ubuntu TeX Live at any level, not on PyPI; CTAN zip + \`.ins\` build |
356
- | **showyourwork** | ❌ it manages *figures*, not in-text numbers |
357
- | DVC · datalad · papermill | orthogonal and **worth adding**: they pin the data file to the pipeline that made it, a layer below anything here |
358
-
359
- **🔴 Computing the value DISSOLVES the freshness problem — do not build a checker for it.** With no
360
- recorded value there is nothing that can go stale, so there is nothing to verify. Adopting jinja2
361
- deleted 137 lines of ours outright: a hand-rolled expression language with an \`eval()\` sandbox, a
362
- renderer guessing which of six formattings the paper meant, a JSON-path walker and the comparison.
363
- Recording-plus-verifying is the trap; computing is the wheel.
364
-
365
- **Binding a number to its CONDITION is genuinely unoccupied**, and the reason is structural rather
366
- than an accident of packaging: **every literate-programming tool models the paper as a program that
367
- prints text**, so the prose is opaque *output*, not an input to a check. None of them has a hook
368
- where you could say "and the sentence around this must say *counterfactual* and must not say *as
369
- committed*". The near-misses read the manuscript but never the data — \`statcheck\` recomputes
370
- p-values from statistics printed in the same sentence; \`RegCheck\` compares a paper to a study
371
- registration with an LLM and reports to a human instead of failing a build. Searched and empty:
372
- GitHub repo search (0 results), the Actions marketplace, the pre-commit hook ecosystem, PyPI, and
373
- the Claude skill marketplaces.
374
-
375
- 🔴 **And it is not a number-keyed table**: the first version keyed rules on the digits, and a paper
376
- printing two unrelated 22s broke it the same hour. Key on the occurrence.
377
-
378
- 🔴 **Hand the gate to a red team the same day you build it.** This one was, and seven holes came
379
- back, the worst being that the original defect could simply be **retyped as digits** — its value was
380
- grandfathered, so the guard applied to the macro and not to the claim. Every hole is now a case in
381
- \`repro/tools/paper_numbers.selftest.py\` (18/18, including three that must stay **quiet** — a gate that
382
- fires on ordinary writing gets muted, and then its silence reads as coverage).
253
+ A number can be correct on both axes and still be described in the wrong arm's words (the 22 of the
254
+ annotated arm reported as "exactly as committed"). No pass on either axis sees it. Write a registered
255
+ quantity as a name (\`{{corpus.n}}\`, rendered with jinja2), not as digits, with a guard that the
256
+ paragraph names its arm and the sentence does not claim another. The construction, the tools tried
257
+ and the red-team holes: \`docs/design/paper-pipeline-history.md\` in the package.
383
258
 
384
259
  ## 🔴 The page limit is a SUBMISSION gate, not an EDIT gate
385
260
 
386
- **Observed failure, \`compile-rules-2026\`, 2026-08-02/03.** The body oscillated 8 ↔ 9 pages for roughly
387
- fifty iterations. Each time content went in, the page count read 9, and prose came out to get back to
388
- 8 — sixty characters at a time. Every individual cut looked harmless. Their sum is the unanimous 2/5
389
- for clarity: the first compression took real repetition, the second had none left and took
390
- transitions, antecedents and the conclusion's honest half. The structural pass named the arithmetic —
391
- 780 words of genuine repetition removed, then 880 words in and 480 out, leaving the paper 51 words
392
- *heavier* than before the pass that cut 780.
393
-
394
261
  **The rule.** Content work runs OVER the limit on purpose. Compression is **one pass, at the end**,
395
262
  when the content has settled — with a whole-draft view, so it can move a section instead of shaving a
396
263
  clause. Going over during drafting is not a problem to fix; it is the normal state of a paper that is
@@ -398,66 +265,31 @@ still growing.
398
265
 
399
266
  **The trigger to catch yourself:** you just added something, ran the page count, saw it over, and
400
267
  started looking for words to remove **in the section you were just editing**. That is the failure, in
401
- progress. The page count is information for the end of the work, not an alarm during it. (The author's
402
- own words on catching it, translated from Russian: *"you're cutting the text right away — dunno if that really needs doing immediately."*)
268
+ progress. The page count is information for the end of the work, not an alarm during it.
403
269
 
404
270
  **What is still continuous:** rendering, and looking at pages 1–2. Seeing the number is fine. Acting
405
271
  on it is what waits.
406
272
 
407
- 🔴 **Every round adds text; pay it back — in ONE pass.** Review is a ratchet — fixes are additive, so a
408
- paper that survives three rounds is longer and denser than the one that entered them. On \`compile-rules-2026\` the
409
- body oscillated 8 ↔ 9 pages for ~50 iterations, and the squeezing is what produced the unanimous 2/5 on
410
- clarity: the first compression took real repetition, the second had none left and took transitions,
411
- antecedents and the conclusion's honest half. After each round's fixes, run \`tighten-paper\` — and if the
412
- page limit is binding, **move** rather than delete (Limitations and Ethics do not count toward ACL page
273
+ 🔴 **Length is paid in ONE pass: the final review's \`tighten-paper\` step.** If the page limit is
274
+ binding, **move** rather than delete (Limitations and Ethics do not count toward ACL page
413
275
  limits). The trap in that move is real and named in \`references/acl-venue-rules.md\`: relocating a caveat
414
276
  while its flattering number stays in the body is exactly the asymmetry reviewers punish.
415
277
 
416
- **Anti-churn ≠ skipping unrun gates.** "Don't loop past one confirming round" forbids *re-polishing prose
417
- that already passed a gate* — it does NOT license *skipping a gate that never ran*. A \`☐\` row in
418
- \`PIPELINE-STATUS.md\` for **study-accepted-papers, pc-panel-review, or full harden-paper** is an unrun
419
- quality gate, not churn: **if capacity exists, run it before calling the paper done.** (This session
420
- skipped those three under an "anti-churn" rationalization on a submitted paper; when the user forced them,
421
- the pc-panel caught real must-fixes — a release overclaim and an unsupported number — that the skip would
422
- have shipped.) Churn is re-touching FINE prose; a never-run gate is a hole. If a real
278
+ **A gate that never ran is a hole, not churn.** A \`☐\` \`panel\` or \`harden\` row means the final review
279
+ or the checklist has not run on this paper; it runs once. If a real
423
280
  objection is out of scope, name it in Threats to Validity (adversarial reviewers read Threats first; an
424
281
  honest limitation reads as strength).
425
282
 
426
283
  **A \`☐\` in GATES is a hole. A \`☐\` in CONTINUOUS is worse** — it means the check exists, ran once, and
427
284
  has been silently stale ever since. That is the shape of every failure this pipeline has actually had.
428
285
 
429
- ## ⏱️ What each stage actually costs — MEASURED, not estimated
430
-
431
- The author, 2026-08-05, watching a run he could not size (translated from Russian): *"is it worth
432
- writing the timing problem into the pipeline skill?"*. Yes — because the project already forbids guessing here. The rule in the papers tree's own \`CLAUDE.md\`
433
- says an estimate must be decomposed into labour / calendar / result-risk / access and **spiked
434
- rather than guessed**, and the same session it was written I still launched an experiment with no
435
- upper bound and had to cut it four hours later.
436
-
437
- Every number below is subagent **wall clock, measured on 2026-08-04/05** while finishing
438
- \`compile-rules-2026\`. They are one machine, one paper, one day — treat them as an order of
439
- magnitude, not a promise. Re-measure rather than inherit.
440
-
441
- | stage | measured | note |
442
- |---|--:|---|
443
- | \`verify-citations\`, one reference | **3 min** | sonnet; a fetch and a comparison |
444
- | \`verify-citations\`, eight references | **3 min** | the fetches parallelise; count barely matters |
445
- | a single reconciliation ("do these two numbers agree?") | **4 min** | sonnet, over committed data |
446
- | a second-rater pass over ~20 rows | **8 min** | opens every cited file |
447
- | a process/mechanism research pass (docs + source + issue tracker) | **10 min** | |
448
- | \`pc-panel-review\`, full panel + chair | **17 min** | unchanged for the confirming round |
449
- | \`grade-paper-writing\` incl. the persona cold read | **20 min** | |
450
- | bundling an experiment into the artifact + gate + re-zip | **24–39 min** | scales with directories, not bytes |
451
- | a design/measurement **spike** (feasibility, a handful of cells) | **27 min** | |
452
- | \`tighten-paper\` applied, with a loss letter | **34 min** | includes several build round-trips |
453
- | \`harden-paper\` | **36 min** | the widest gate; it runs the artifact |
454
- | **an experiment with real checkouts and installed dependencies** | **≈4 h for 143 cells** | median cell **76 s**; the outlier by an order of magnitude |
286
+ ## ⏱️ What each stage costs
287
+
288
+ Measured wall clock per stage (one machine, one paper; re-measure rather than inherit): \`docs/design/paper-pipeline-history.md\` in the package.
455
289
 
456
290
  **What the shape tells you, which matters more than the rows.**
457
291
 
458
- - **A full gate cycle — \`tighten\` → \`grade\` → \`panel\` — is about 1.2 hours.** That is cheap enough
459
- to run after any substantial edit, and there is no excuse for a stale gate on a paper you are
460
- still touching.
292
+ - **The final review is measured in tens of minutes** (\`tighten-paper\` 34 min, \`pc-panel-review\` 17 min). It runs once, not after each edit.
461
293
  - **Reading, checking and reviewing are all minutes.** Anything whose cost is dominated by fetching,
462
294
  parsing or judging text lands in the 3–40 minute band regardless of how important it feels.
463
295
  - 🔴 **Anything that installs dependencies and runs an agent inside a real checkout is hours, and
@@ -471,15 +303,14 @@ magnitude, not a promise. Re-measure rather than inherit.
471
303
  ## Model policy (which model runs which stage)
472
304
  Single home for the whole suite — stage skills point here instead of each re-deciding. Default:
473
305
  - **Adversarial / red-team / verify a claim** → **Fable** (a separate model; never the author grading
474
- itself): \`paper-adversarial-review\`, \`pc-panel-review\` reviewers, \`harden-paper\` threat-model +
475
- citability red-team, disputed \`verify-citations\` verdicts.
306
+ itself): \`pc-panel-review\` reviewers, disputed \`verify-citations\` verdicts.
476
307
  - **Heavy generation / synthesis** → the session's main model (**Opus**): \`draft-paper\`,
477
308
  \`build-benchmark\` design, \`extend-paper\`, \`research-ideate\`.
478
309
  - **Cheap bulk fetch / extraction** → **Haiku** (or Sonnet): \`study-accepted-papers\` corpus pull,
479
310
  \`plan-paper-timeline\`.
480
311
  - **No model at all (mechanical)** → \`verify-citations\`'s \`../verify-citations/scripts/verify-cites.mjs\` reducer,
481
- \`harden-paper\`'s \`check-*.sh\` linters, \`render-paper\` toolchain.
482
- - **Judge panels use DIVERSE models, not N copies of one** → \`grade-paper-writing\`, \`pc-panel-review\`:
312
+ \`harden-paper\`'s \`check-*.sh\` linters, \`paperlint build\`.
313
+ - **Judge panels use DIVERSE models, not N copies of one** → \`pc-panel-review\`:
483
314
  mix Opus + Fable + Sonnet so independent lenses catch what redundancy can't.
484
315
 
485
316
  Override per call when a stage clearly needs otherwise; this is the default, not a straitjacket.
@@ -489,11 +320,34 @@ Override per call when a stage clearly needs otherwise; this is the default, not
489
320
  - **Never fabricate** a citation, number, or result. Mark \`% VERIFY\` and check (\`verify-citations\`).
490
321
  - **Commit + push after each stage**, keep the tree clean (resume-safe across \`/compact\`); update
491
322
  \`<papers-root>/research/README.md\` in the same commit as any new research file (its CLAUDE.md enforces this).
492
- - **Two roles, never double-counted:** authoring = the *authorship* criterion; reviewing others at the
493
- venue (the organizer review-offer email) = the *judging* criterion — a separate credential.
494
323
 
495
- ## Provenance
496
- Two real papers this session ran this pipeline end-to-end: **AgenticDev 2026 @ ASE** ("Measuring the
497
- Wrong Number," ~90%, submitted #20) and **AISec 2026 @ ACM CCS** ("Safety Theater," Weak-Accept→~87–88%
498
- after a panel round + confirm). The stage skills and shared refs are distilled from exactly those runs.`,
324
+ `,
499
325
  });
326
+
327
+ export const flow = {
328
+ stage: "across",
329
+ handsTo: () => [],
330
+ calls: () => [
331
+ researchIdeate,
332
+ mapPriorWork,
333
+ findVenue,
334
+ studyAcceptedPapers,
335
+ planPaperTimeline,
336
+ argumentArc,
337
+ buildBenchmark,
338
+ runAgentGrid,
339
+ labelAgentRuns,
340
+ buildLabelPage,
341
+ draftPaper,
342
+ verifyCitations,
343
+ analyzeSiblingPaper,
344
+ tightenPaper,
345
+ coldReadDiff,
346
+ rewriteUnclear,
347
+ pcPanelReview,
348
+ hardenPaper,
349
+ submitPaper,
350
+ cameraReady,
351
+ extendPaper,
352
+ ],
353
+ } satisfies Flow;
@@ -176,28 +176,6 @@ const FIXTURE = {
176
176
  // there. English counterparts are carried so the same run reports whether the intervention costs
177
177
  // the English arm anything.
178
178
  const CASES = [
179
- {
180
- skill: "grade-paper-writing",
181
- gapPp: -42,
182
- prompts: [
183
- {
184
- ru: "у меня ощущение, что вступление написано тяжело, но я не понимаю чем именно",
185
- en: "the introduction feels heavy to me and I cannot tell what exactly makes it so",
186
- },
187
- {
188
- ru: "рецензент назвал текст многословным — согласен ли ты и где конкретно",
189
- en: "a reviewer called the text wordy — do you agree, and where exactly",
190
- },
191
- {
192
- ru: "нужен разбор по пунктам: заголовок, первый абзац, подача выводов",
193
- en: "I want a point-by-point breakdown: the title, the opening paragraph, how findings are delivered",
194
- },
195
- {
196
- ru: "сравни как это написано с тем, как пишут сильные статьи в этой области",
197
- en: "compare how this is written against how strong papers in this field are written",
198
- },
199
- ],
200
- },
201
179
  {
202
180
  skill: "argument-arc",
203
181
  gapPp: -33,
@@ -369,35 +369,6 @@ const CASES = [
369
369
  ],
370
370
  },
371
371
  },
372
- {
373
- skill: "grade-paper-writing",
374
- cells: {
375
- AH: [
376
- "grade the writing craft in this draft and name the offending sentence in each dimension",
377
- "run the blind multi-grader panel over the prose clarity and jargon discipline",
378
- "score the title, the abstract and the intro architecture one to five",
379
- "grade how well this reads, hedge stacking included, and give me the fix for each",
380
- ],
381
- AL: [
382
- "mark this manuscript out of five on how it is put together at the sentence level",
383
- "give me a scored report card on the language, with the worst example under each heading",
384
- "rate how professional the phrasing sounds against papers people actually finish",
385
- "assign a number to the quality of the English here and point at the ugliest example",
386
- ],
387
- SH: [
388
- "the abstract reads like a wall of jargon",
389
- "the intro architecture is fine but the prose clarity is not",
390
- "there is hedge stacking everywhere and the point never lands",
391
- "the writing does not read well even though the draft is finished",
392
- ],
393
- SL: [
394
- "something about the way this is worded makes me wince and I cannot name it",
395
- "my supervisor said the English gets in the way of the science",
396
- "the sentences are correct but they feel like wet cardboard",
397
- "I went through my own opening twice and still had to start over",
398
- ],
399
- },
400
- },
401
372
  {
402
373
  skill: "argument-arc",
403
374
  cells: {