Design proposals
A proposal is a short written design, agreed before the code, for a change that other people’s files, scripts or trust depend on. It is how an outside contributor can change lean-pkg’s formats and commands, and how the maintainer’s reasoning stays on record.
Proposals differ from decisions: a decision records a choice about the project (governance, licensing, history); a proposal designs a change to the tool and ends in code.
When a proposal is required
- Any schema change: a new version of an on-disk format (registry, event log, claims, coverage, receipts, estimates, index entries, the signoff sidecar) or a change to what an existing version accepts.
- Removing or renaming a command, flag or
--jsonkey, or changing its meaning. Adding one does not need a proposal. - A trust-model change: what a receipt proves, what
gate,promote,publishorindex checkaccept or refuse, how a trust level is computed, or what the private-boundary and public-safety checks forbid.
Anything else (a new command or flag, a fix, docs) goes straight to a pull request. When unsure, open a Proposal issue and ask.
Lifecycle
| Status | Meaning |
|---|---|
draft |
Open for discussion in a pull request that adds NNNN-short-title.md. |
accepted |
The maintainer approved it; the PR merges with the status set and the date. Implementation PRs may start. |
implemented |
The change is released; the status line names the release. |
declined / withdrawn |
Merged anyway, with the reason, so the idea is not re-proposed blind. |
superseded by NNNN |
A later proposal replaced it. |
- Copy 0000-template.md to
NNNN-short-title.md, the next free number, and open a pull request with only that file and a row in the table below. Link a Proposal issue if there was one. - Discussion happens on the pull request. Anyone may comment; the author revises the file.
- The maintainer decides (below). Accepting does not merge any code.
- Implementation pull requests name the proposal. The last one sets
implementedand the release.
An accepted proposal is not edited afterwards except for its status line; a change of design is a new proposal that supersedes it.
Who decides
The maintainer of record (Le Chen, see MAINTAINERS.md) accepts or declines, with the reasoning written into the proposal. When a second maintainer is added, a proposal needs the agreement of one maintainer who is not its author; a disagreement between maintainers is settled by the maintainer of record and recorded. The AI operations agent may draft a proposal when asked but never accepts one (GOVERNANCE.md).
Proposals
| # | Title | Status |
|---|---|---|
| 0000 | Template | n/a |
| 0001 | The paper’s statement in coverage.yaml | implemented in 0.11.0 (accepted 2026-10-17 by Le Chen), by #211 |
| 0002 | A committed docs-only opt-in, read at the bound commit | implemented in 0.22.0 (accepted 2026-10-26 by Le Chen, as written), by #349, #356 and #360 (stages G1 to G3, #319); the registry route is deprecated, its removal (G4) scheduled in #372 |
| 0003 | Conditional claims and discharge (with a core-Lean prototype in 0003/prototype) | implemented in 0.22.0 (accepted 2026-10-26 by Le Chen, as written), in stages H0 (#346), H1 (#350), H2 (#354), H3 (#359), H4 (#366) and H5 (#368), with the statements-module declaration (#371), #320 |
| 0004 | A math LTS stack: a tested Lean + Mathlib + lean-pkg combination, supported for a stated window | accepted 2026-10-17 by Le Chen (open question 6 still open); stage 0: lts-2026.10; stage 1 (new --stack, the stack: key, the doctor NAME and verify check, the page line) by the pull request that adds new --stack; doctor --stack-from/--stack-to to follow |
| 0005 | Per-claim axioms read from the built environment (claim_axioms receipt key) |
implemented in 0.14.0 (accepted 2026-10-18 by Le Chen), by #262, refined by #299 in 0.21.0 |
| 0006 | An explicit claim-to-comparator mapping (judged_as in claims.yaml) |
implemented in 0.14.0 (accepted 2026-10-18 by Le Chen; open questions 1 and 2 stay open), by #261 |
| 0007 | Credits for the libraries an index entry builds on (built_on in index-entry/2) |
implemented in 0.15.0 (accepted 2026-10-18 by Le Chen, after its implementation had merged), by #267 and #269 |
| 0008 | A compute receipt from a CI runner, GitHub Actions first (gha-<run>-<attempt>, the ci block, three corroboration levels) |
implemented in 0.22.0 (accepted 2026-10-26 by Le Chen, with the recommended answers to its open questions), by #338, #348, #355, #363 and #358 (stages S1 to S5, #318) and #364, #374, #375, #379, #382; validated by a live run (levels 1 to 3) |
| 0009 | Declaration-level extraction with a rename map and an extraction ledger (lean-pkg-extract ledger, decls, recheck; lean-pkg-extract-ledger/1) |
implemented in 0.22.0 (accepted 2026-10-26 by Le Chen, as written, with the recommended answers to its open questions), by #361, #367, #373, #377 and #380 (stages S1 to S5, #329) |
| 0010 | The strength of a row’s conclusion in coverage.yaml (conclusion and conclusion_scope on paper rows; the page never says the bare “Verified.” for a weaker or special-case result) |
implemented in 0.26.0 (accepted 2026-11-05 by Le Chen), by #419 (reviewed as #420) |
| 0011 | Non-vacuity witnesses on coverage rows (0003’s claim-level witness on any claim with a hypothesis; a row witness key; the page shows that the result’s hypotheses can be met, and whether the probe checked it) |
implemented in 0.28.0 (accepted 2026-11-07 by Le Chen), by #437 |
| 0012 | A package site standard (lean-pkg site check, render, init for Jekyll, MkDocs and static sites; generated counts; noindex while private; a publish item) |
accepted 2026-11-09 by Le Chen; implementation in three phases |
| 0013 | Which lean-pkg wrote each registry event (an additive producer key {lean_pkg, install, commit, dirty} on every event-log line, event-line version 1) |
accepted 2026-11-09 by Le Chen, as written |
| 0014 | Declared controls in the sealed verify log (lean-pkg-controls.yaml, controls/1: must-fail, refutes and compiles controls run by the verify script, re-judged by gate) |
accepted 2026-11-09 by Le Chen, as written |
| 0015 | Extension keys in coverage.yaml (x- keys at the top level and on rows, shape-checked and otherwise ignored by lean-pkg) |
accepted 2026-11-11 by Le Chen, as written |
| 0016 | A summary README page block that links the full page (page: {readme: summary, full_page: ...} in coverage.yaml; a shared page digest; R1 accepts a current summary) |
draft |
| 1.0 command tree | The 1.0 command tree and format freeze (written before this process; kept at its path) | accepted 2026-10-17 by Le Chen; implementation in stages (stage 1: aliases, noun moves, real subparsers, newcomer page) |