Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ rules, from SPEC.md §27.2; nothing else in the repository defines an
| R1 | `model/*.toml` is the single source of every repository conformance claim and public diagnostic code; generated claim/error documentation must match. | `cargo xtask validate-model` |
| R2 | Honesty levels are load-bearing: `some-true`, `build`, and `open` are never blurred. | the honesty meta-gate (`just bdd`) and the vocabulary checks in `validate-model` |
| R3 | A capability begins with a register row, then one scenario, then one failing named test, then implementation. | `just bdd` |
| R4 | Nothing is deferred: no deferral marker, stub, placeholder component, empty branch, or feature switch that disables a normative capability. | `audit-deferral`, inside `validate-model` |
| R4 | Nothing is deferred: no deferral marker, stub, placeholder component, empty branch, or unsanctioned feature switch that disables a normative capability; §8.4 names the one sanctioned feature and what a build without it must do. | `audit-deferral`, inside `validate-model` |
| R5 | Every public failure is registered and emitted through the closed error model; user input never panics. | `audit-errors`, inside `validate-model`, and the negative fixture suite |
| R6 | Shipped dependency boundaries, versions, licenses, and sources are explicit and audited. | `just deny` and `audit-shipped` |
| R7 | Every accepted LexLean source and canonical output satisfies complete lexical and symbolic closure. | the `lexical-closure` and `latex-pdf` conformance suites |
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@ workspace carried at those versions without a tag.

## Unreleased

- A check-only build of the crate, #495. The `lexlean` crate's
`production-data` feature, on by default, embeds
`language/preservation-1.2/library/`, the native preservation library that
only certificate generation reads (32.2 of the 36.4 MB of embedded data).
Built with `--no-default-features`, the crate leaves it out and reports the
language-1.2 compiler-semantics ID from `LANGUAGE_1_2_SEMANTICS_ID`, which
`RP-10` now requires to equal the ID recomputed from disk; a project's
`check`, `lock`, `fmt`, and `build` behave as in a default build, and
`production build` and the `verify` of a project with a production root are
refused with the new `LLC0205` before anything is published (`RP-19`).
Its version report adds the line `variant check-only`: it shares the
compiler-semantics IDs of a full build, not its executable identity.
SPEC.md §8.4 names this feature as the one exception to its rule that no
feature disables a normative capability. A default build is unchanged.
A landing that moves the language-1.2 ID now also updates the constant;
`RP-10` names the new value when it is stale.

- `RB-24`, the driver of a command root (#271). A `rust-std` root of the type of a
command's step gets `src/main.rs` beside `src/lib.rs`: a loop, printed from the
new language-1.2 module `RuntimeHost`, that calls the step and carries out each
Expand Down
1 change: 1 addition & 0 deletions CONFORMANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ the error registry does not sanction (R5, `ERRORS.md`).
| `RP-15` | `build` | Every match over a closed semantic enum (the IR, the production realization calculus, and its Rust AST) that names at least five of the enum's variants names all of them, with no wildcard or binding catch-all arm, so that a variant added to the enum is a compile error in each Lean, LaTeX, validation, charge, and calculus consumer and never a silent fallback; the audit rejects a catch-all planted in each consumer group and fails when a consumer it must read has no such match left. |
| `RP-16` | `build` | The development container installs, at image build, exactly the Rust toolchain that rust-toolchain.toml pins and exactly the Lean toolchain that lean-toolchain pins and selects no other default, so that nothing is fetched when a session starts, and a Dockerfile that names another version of either, installs a second toolchain, or selects an unpinned default is refused. |
| `RP-18` | `build` | The release workflow packages the lexlean crate twice to the same bytes, runs cargo publish --dry-run, and refuses a crate whose SHA-256 differs from the one release/checksums.txt lists for it or from the bytes cargo would upload, or whose archive lacks the metadata and size crates.io requires, and uploads to crates.io only when a CARGO_REGISTRY_TOKEN secret or trusted publishing authorises it; a commit of a release line release/vX.Y is published as the pre-release X.Y.0-dev.N, N being its number of first-parent commits, and a plant in each of these checks is refused. |
| `RP-19` | `build` | A build of the lexlean crate without its default production-data feature embeds no file of language/preservation-1.2/library/, reports the compiler-semantics IDs of a default build and its version report with a fifth line naming the check-only variant, gives check and lock the same exit code, diagnostics, and lock bytes as a default build, and refuses production build and the verify of a project with a production root with LLC0205 before any build, verification, or export is published. |

## runtime

Expand Down
6 changes: 6 additions & 0 deletions ERRORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ The source ID, semantic ID, or lock digest a production request pins differs fro

Class: `cli-configuration`. Exit code: 2.

## `LLC0205` --- Production data not embedded in this build

The compiler was built without the production data, which production export and the certification of a production root read.

Class: `cli-configuration`. Exit code: 2.

## `LLF5001` --- Invalid definition form, self head, or recursion

Invalid definition form, self head, or recursion.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ just vv # the complete normative acceptance gate (SPEC.md §9.2)
just release # vv, then the §30 release criterion; refused until 1.0.0
```

All 494 registered conformance IDs have their named tests; `just vv` checks them with the pinned toolchain installed.
All 495 registered conformance IDs have their named tests; `just vv` checks them with the pinned toolchain installed.

The differential against the independent generator `lean4-prod` (SPEC.md §17.19, `OR-01`..`OR-08`) acquires it at its pinned commit: from the checkout `LEXLEAN_ORACLE_DIR` names, or by fetching the commit with `git` into the Cargo target directory (`LEXLEAN_ORACLE_CACHE` overrides), and builds it with the pinned Lean and Rust toolchains. It is validation evidence only and no input to any identity. An oracle that cannot be acquired, is not the pinned files, or fails is unavailable: that fails the gate on Linux x86-64 and is printed as `NOT VALIDATED` elsewhere, and is never reported as agreement.

Expand All @@ -168,7 +168,7 @@ Every row is validated by `just vv`; the IDs link the claim to its register row,

| Capability | IDs | Level |
| --- | --- | --- |
| Exact repository identity, layout, generated documents, release gate, total classification of every closed enum by every consumer, and the devcontainer pinned to the toolchains | `RP-01`..`RP-18` | `build` |
| Exact repository identity, layout, generated documents, release gate, total classification of every closed enum by every consumer, the devcontainer pinned to the toolchains, and a check-only build without the production data | `RP-01`..`RP-19` | `build` |
| Closed project configuration, canonical lock file, and offline dependency policy | `CF-01`..`CF-18` | `build` |
| Total lexical closure: every accepted atom is covered by exactly one declared origin | `LX-01`..`LX-14` | `build` |
| Versioned lexicon packages with closed schemas, denotations, and renderer tokens | `GL-01`..`GL-18` | `build` |
Expand Down
Loading
Loading