Changelog

What each release changed, from CHANGELOG.md at 0200db3.

0.8.0

· Release v0.8.0 · docs.rs

Added
  • An adopter route for a project that keeps its own proof gate (#118): docs/ADOPTING.md, "An existing proof gate", lists the result lines that check-time subsumption needs, the ones only ship-level reuse needs, and what is lost without [gate] try and [gate] extract. Fixture fixtures/own-gate (a hand-written proofs/gate.sh) and its tests show the gate's record crediting every arithmetic and indexing site of a proved function, owing them to TAU-R003 once the source moves, and passing --check-record --require-level full.
Fixed
  • cargo tauten check --structure-only no longer reports TAU-R001 for every Clippy entry in the baseline, and cargo tauten baseline --structure-only no longer drops them. A structural run judges only the entries whose findings come from tauten's structural pass, so structural and full runs can share one tauten-baseline.json (#120, reported by Gripsack).

0.7.0

· Release v0.7.0

RFC 2026-12-04-closed-dependency-lists-and-declared-bans: closed dependency lists (#115), ureq in the network list (#119) and declared bans (#114).

Added
  • [[workspace.metadata.tauten.ban]] (#114). A workspace declares extra banned paths for kernel and core (path, tiers, reason, kind), reported as TAU-A000 with its reason as why and the JSON key "ban": "project". Add only. A declaration tauten cannot use (unknown key, kind or tier, edge, an empty field, a duplicate, a path the profile already bans in that tier) stops the run with exit 2. A declared path that does not resolve in a crate that can see its crate is a TAU-A000 error at the workspace manifest. explain TAU-A000 lists the workspace's bans; explain --markdown never does. The declarations key the cached Clippy build.
Changed
  • ureq in TAU-A001's network list (#119). kernel and core crates that call ureq's entry points (2.x and 3.x: ureq::get, post, put, patch, delete, head, options, connect, trace, request, request_url, run, agent, builder, Agent::new, AgentBuilder::new, Agent::new_with_defaults, Agent::new_with_config, Config::new_agent) get new TAU-A001 errors. A crate that must not do HTTP at all is better served by leaving ureq out of its allowed-deps.
  • TAU-T003 closes a declared dependency list in any tier (#115). A crate may declare allowed-deps = [..] under [package.metadata.tauten]; any other normal or build dependency outside the workspace (target-specific tables included, matched by real package name) is an error in every tier. A crate outside the kernel with no list is unchanged. A kernel crate may keep kernel-deps. The rule is now titled "Declared dependency lists are closed".
  • Noticeable from 0.6.0: build-dependencies of a kernel crate are counted; a workspace member is recognised by its path, so a registry package that shares a member's name is third-party; a dependency list that is not a list of strings, both keys in one manifest, or kernel-deps outside the kernel is a TAU-T003 error at the manifest (0.6.0 skipped values that were not strings, and ignored the other two).
  • Kernel: layout::t003 takes a DepList (absent, declared, unparsed), and layout::t003_declared decides the list itself. Proved in proofs/Tauten/Layout.lean (t003_iff, declared_list_closed_in_every_tier, absent_list_open_outside_kernel, kernel_absent_is_empty_list, unparsed_list_never_clean, t003_declared_iff) with six mutants.

0.6.0

· Release v0.6.0

RFC 2026-11-30-record-provenance-and-ship-bindings, steps 1 to 5 (#85,

91, #94, #92).

Added
  • tauten_check_kernel::provenance (#85): meets(required, recorded, sources) decides whether a proof record meets a level. Full needs a full-level record whose every mutant result was observed by it; ship needs a record of either level with no result of unknown origin; a record whose level is unknown, such as one written before version 3, meets nothing. Proved in proofs/Tauten/Provenance.lean (meets_full_iff, meets_ship_iff, unknown_level_never_meets, carried_never_full, full_implies_ship, meets_examples) with five mutants.
  • Record format version 3 (#85). proofs/claims.json records the cargo-tauten that wrote it (tool: name, version, and the revision when built from a checkout), the level of the run (full or ship) and, for every mutant result, its source (observed by this run, or carried from an earlier one) and observed_at, the commit of the run that observed it (absent when not known). A result resumed from an interrupted run is carried. Provenance is not an input: adding it stales nothing. Versions 1 and 2 are still read (their level and sources are unknown); an older cargo-tauten refuses a version 3 record by name. proofs export still writes version 1.
  • cargo tauten proofs --check-record [--require-level full|ship] (#85): is the committed record present, conserved (TAU-R002), fresh (TAU-R003), proved and, when asked, of the required level? Read-only: no gate, no Docker, the record is untouched. Exit 0 when every control passes, 1 when one does not, 2 when tauten could not run. The controls are decided by the proved control::admit, the level by provenance::meets.
  • Gate code is bound at ship level (#91). Every file under proofs/ that is neither Lean, Markdown, claims.toml, claims.json nor mutants.py (scripts, Compose files, configuration), and every file under a new [gate] code = [...] entry (files or directories outside proofs/, such as a Compose file), is an input of every claim. Changing the image pin in a script re-calibrates every claim.
  • Tool identity is bound at ship level (#91). A gate may print {"tool": "<name>", "identity": "<id>"} lines before its tools stage; they are recorded as tool:<name> inputs of every claim. A ship (or resumed) run whose gate reports other tools than the recorded ones stops the gate, exits 1 and leaves the record untouched; the message names the tool and both identities and says to run cargo tauten proofs (full). A record with no tool identity is never reused across at ship level (unbound:tools, one line says what to print). The stock template and tauten's own gate print the image ID and the versions of Lean, Charon and Aeneas; proofs/run.sh resolves the image ID and passes it through Compose as TAUTEN_PROOFS_IMAGE_ID.

  • The audit says what each proof uses (#94). The stock template's Audit.lean and tauten's own print USES <theorem>: [...]: the extracted declarations in the transitive closure of the constants of the theorem's checked proof term (followed through definitions and theorems of the extracted and proof libraries). Auxiliary declarations (f._proof_1, f.match_1), which Lean shares between identical definitions, are followed but not reported. On tauten's own 75 claims the control reports no miss. A gate may report them as {"theorem": "...", "uses": [...]} lines (the stock gate.py and proofs/report.py do). On every recording run cargo tauten proofs checks them against the claim's bound lean: inputs, with the proved registry::conserves; a declaration the scanner did not bind is a warning (a defect of the scanner: please report it), is recorded as unbound:uses:<declaration>, and the claim is re-calibrated on every ship run until the binding is fixed. A gate that prints no uses line has no such control, as before.

  • A mutant result may say which translation files it changed (#92): "changed": ["Extracted/Core/Plan.lean"] on a mutant line, recorded with the result. The stock template gate reports it. A gate may also report "rebuilt": [...] (the Lean files its build rebuilt under the mutant); it is a control, not recorded: a rebuilt file that holds more than imports and is outside the mutant's import cone makes the mutant unbound (a warning; it is re-run on every ship run).
  • [gate] mutant_roots = ["Proofs.lean"] (#92): the Lean files the gate's mutant stage builds (paths relative to proofs/). The stock template sets it (it builds lake build Proofs). Without the key the mutant stage is taken to build every Lean file.
  • [gate] mutants = [...] (#92): files or directories holding the definitions of mutants that neither [[mutant]] nor proofs/mutants.py defines; such a mutant is bound to the bytes of every file under them (before: unbound, never reused). Without the key nothing changes.
  • cargo tauten proofs --level ship prints, for each exact-set mutant bound to an import cone, how many Lean files it is bound to and the files it changed.
Changed
  • A proof file's mention binding is narrower (#94). A bare name binds a longer declaration (f for ns.f) only when the namespace dropped from it is in scope in that file (an open of it, or a namespace block); a name written after a . whose first part is not a namespace of the translation (x.f, (e).f, |>.f) is field notation and binds every declaration it is a suffix of, which today's scanner missed for x.method; comments and plain strings bind nothing. A file that exports names, renames on open, declares notation, macros or syntax (except an attr syntax), interpolates strings, leaves a comment or string open, continues an open on the next line, or imports a proof file that does any of these, keeps the broad rule of 0.2.1. Every claim's lean: inputs may change: one recalibration (the same as the one above).
  • Exact-set mutants are bound to an import cone (#92). A mutant whose kill requires that nothing else fails (an exact direct set, or a custom gate's) and whose result reports changed is bound to the paths and bytes of the files that import a changed file (and are built by the mutant stage, and hold more than imports), the changed files, and everything these import, instead of every Lean file. It falls back to every Lean file when the gate reported no changed, a listed file is gone, or an import resolves to neither a project file nor a package of lake-manifest.json or lakefile.toml. Conditions it rests on, named in proofs/TRUST.md: LEAN.module-isolation and EXTRACT.item-local. check's freshness reads the committed record's changed the same way.
  • The ship-versus-full trial (#112) generates the shapes the narrowing depends on (translation files importing each other, proof files importing a subset of them and each other, bare, qualified, field and decoy mentions, an audit file importing everything, an unrelated file imported or not by the build) and plants two wrong narrowings beside the historical defects: the mention rule without field notation, and an import cone without downward imports. Both are found.
  • One recalibration for every adopter. The first ship run after upgrading finds no recorded tool identity and runs the full gate; the record it writes is version 3. A gate that prints no tool line keeps working at full level and is not reused across at ship level until it does. check does not judge the level (the record's freshness is unchanged by this release); use proofs --check-record.
  • CI timeouts. The hosted gate job (CI and release) allows 120 minutes, up from 60 (the scanner mutation gate now tests 285 mutants), and the proofs job 300, up from 150 (a full run took over two and a half hours on a slow runner). A timeout is still a failure: publish needs both jobs.

0.5.0

· Release v0.5.0

Added
  • tauten_check_kernel::campaign (experimental; #103; RFC 2026-11-27-executable-property-playground): what a campaign of generated cases showed. seen folds the cases into the control::Seen a control is judged by (an empty or all-rejected campaign never passes; a timeout, a missing tool or a broken case decides neither a pass nor a named failure), keep decides whether a shrink candidate replaces the reproducer (only a failure of the same property does; infrastructure aborts) and calibrated says whether the required set has a negative control. Seven theorems in proofs/Tauten/Campaign.lean and seven mutants; the module may be removed in a later 0.x release if the experiment ends.
  • playground/scenarios (unpublished, outside the workspace, own lockfile, tier edge): a Proptest-based runner for executable properties, with a queue example (a planted FIFO defect, a no-op control and an independent list model). Each case runs in a fresh directory with empty HOME, XDG and TMP, argv arrays, a deadline, an output limit and a process-group kill. Every verdict is the kernel's (campaign, control, binding, badge); the result is Tested. Its tests run in the gate.
  • Ship-planner trial (#112; playground/scenarios, tested evidence only, no new claim or badge): for a generated project (extracted-file layout, cross-file callees, claims, defined and undefined mutants, a kill table read by a stand-in gate) and a generated sequence of edits, cargo tauten proofs --level ship from the previous record must equal --level full on the same tree (claims, outcomes, badges, assumptions, each mutant's status, broken theorems and exact direct witnesses). The pre-0.2.1 behaviours of #79 (per-file closure of lean: inputs) and #80 (empty fingerprint for an unknown mutant definition) are planted in a patched copy of the sources, never in the shipped crates, and both are found and reduced to a replayable project and edit; an edit that changes no byte is a rejected case; without those controls the campaign reports uncalibrated. It runs in the gate.

0.4.0

· Release v0.4.0

Breaking
  • A stamp is bound to its subject, its incarnation and its revision (#96; RFC 2026-11-30-subject-bound-stamps). tauten::origin::Versioned is replaced by Marked, whose mark() returns a Mark { subject, incarnation, revision }; Stale is replaced by the enum Refused (OtherSubject, OtherIncarnation, Stale), which Stamped::verify and the revalidate that #[derive(Bindings)] generates (as Refused::Stale) return; Stamped::version() is replaced by Stamped::mark(). A subject that implements only Versioned no longer compiles; there is no shim. Before, a stamp minted for one instance was accepted by another instance at the same version.

Migration:

rust // before impl Versioned for Queue { fn version(&self) -> u64 { self.version } } // after: an identity, an incarnation, and a revision that never wraps impl Marked for Queue { fn mark(&self) -> Mark { Mark { subject: self.id, incarnation: self.epoch, revision: self.revision } } } // and on a change: self.revision = advance(self.revision).expect("..."); // (None means start a new incarnation); match Err(Refused::Stale) where // you matched Err(Stale).

The producer contract is stated on Marked: distinct subjects get distinct subject values; a subject recreated, restored or cloned into a diverging copy takes a new incarnation; revision changes with every relevant change and never returns within an incarnation.

Added
  • A lock on the shape of persisted types, with recorded dispositions (#113; RFC 2026-11-30-persisted-shape-lock; the lock half of #25). A project declares the items written to a store that outlives one run ([[workspace.metadata.tauten.persisted]]: name, items as path.rs::Item or a whole file, codec packages). tauten fingerprints each item as written (attributes except doc comments, generics, fields and variants in order with their attributes, names and types; not visibility, comments or formatting) and each codec package's version in Cargo.lock, and commits them in tauten-persisted.lock. A declared shape that no longer matches is TAU-R005 (deny in every tier, workspace scope, so --package lists it as not run) until cargo tauten persisted --accept <name> --disposition <identical|rewritten|migrated> --reason "..." records what happens to the bytes already written (--disposition retired for a removed declaration; --record locks new entries and is refused while one changed; cargo tauten persisted alone prints the status and exits 1 unless current). A project that declares nothing sees no change. No new kernel function: "the lock is current" is binding::fresh, "the last step is the shape the lock holds" is binding::same_bytes, "the lock may be rewritten" is registry::conserves with the disposition as the amendment (registry::kept refuses one for an entry that did not change), an entry tauten could not read is never clean (rule::clean) and the lock's format version is version::admit. The scanner is tested, not proved, and is the named condition SHAPE.source-determines-bytes (proofs/TRUST.md); it does not see the definition of a field's type unless declared, macro output, hand-written Serialize impls unless their file is declared, or active cfg branches. The agent profile gains a paragraph, so TAU-R004 asks for cargo tauten init --refresh-profile.
  • Subsumption under the allocation bound (#89, RFC 2026-11-30-subsumption-under-allocation-bound). A function that grows a Vec can never have an unconditional total theorem (the Aeneas model of Vec::push fails at usize::MAX elements). A total theorem whose only hypotheses are instances of tauten's one admitted assumption, ALLOC.object-size (Tauten.Alloc.SliceFits / VecFits, with a numeral element size, over the function's own input collections, from the vendored Proofs/TautenAlloc.lean), now credits the findings inside the function as subsumed under that assumption: a warning, counted apart (subsumed_under in JSON, N subsumed under named assumptions in the summary, proved under named assumptions in obligations), never called proved. A theorem with any other hypothesis grants no credit; an unconditional total theorem is credited exactly as before; a project that declares no assumption sees the same output. The decisions are the proved kernel's: outcome::total_ok (nine theorems of the RFC's table, total_ok_spec, unnamed_hypothesis_never_total, under_needs_admitted, total_ok_undeclared_and_total), subsume::ground and subsume::credit (ground_spec, unconditional_iff, assumed_iff, unadmitted_never_grounds, credit_spec, credit_agrees_with_standing, assumed_never_plain, none_never_credits, credit_examples), with mutants. A claim opts in with assumes = ["ALLOC.object-size"], the witness Tauten.Alloc.satisfiable and total naming the theorem; it gets no credit when it declares any other assumption or when its TautenAlloc.lean is not byte-identical to the running CLI's. The element size literal is reviewed text (the file says how to make the compiler decide it). init --proofs writes Proofs/TautenAlloc.lean; the template Audit.lean prints TOTAL-UNDER <theorem> <f> [IDs] and the gate passes it on as the total event with an under key.

  • Kernel stamp module (tauten-check-kernel): verify(minted, now) names the first differing field in field order, and advance(revision) is the next revision, None when exhausted, never wrapping. Nine theorems (verify_spec, current_iff, other_subject_refused, other_incarnation_refused, stale_refused, verify_refl, advance_strict, advance_none_iff, advanced_is_stale) and six kernel mutants. tauten now depends on tauten-check-kernel also without the fs feature; tauten::origin re-exports Mark and advance. The example Counter of tauten-proof-instances gains an identity and an incarnation, its claims gain other_subject_refused, other_incarnation_refused, check_mark and exhausted_unchanged, and the mutants subject-not-minted (macro), subject-ignored and incarnation-ignored (runtime).

Changed
  • TAU-H001 explanation documents the package override [profile.release.package.<crate>] overflow-checks = true as an adopter-side option tauten does not check, with its measured limit (#88): generic and #[inline] code takes the instantiating crate's setting, so the proposed kernel-scoped rule TAU-H002 was not built (RFC 2026-11-30-kernel-overflow-checks, decision log).
  • Human output: a workspace-scope finding (TAU-R003 on the proof record, TAU-R004 on the agent profile, TAU-R005 on the persisted lock) is located as (workspace) instead of (untiered crate ``).

0.3.0

· Release v0.3.0

Added
  • cargo tauten proofs --level ship --plan (#93): print what a ship run would re-run and why (per claim fresh or stale with the first input that moved, per mutant run or reuse, unbound inputs, and the refusals a real run would hit before the gate). It uses the planner a real run uses, starts no gate and writes nothing. Exit 0 plan computed, 1 a real run would be refused, 2 tauten could not run.
  • The agent profile (AGENTS.tauten.md) starts with a line naming the cargo-tauten version that wrote it (#86). cargo tauten init --refresh-profile rewrites that file and nothing else; init --write still leaves an existing file alone and says how to refresh it.
  • TAU-R004 (warning in every tier): check warns when AGENTS.tauten.md exists and is not the running CLI's profile (byte comparison with the proved binding::same_bytes); no finding when the file is absent.
  • cargo tauten check --package <crate> (repeatable; also obligations and baseline) checks the named crates only (#87): the structural scan visits them and Clippy runs with -p, under the workspace's own lint tables and profiles. A tier is needed only for the named crates. Rules that need the whole workspace (TAU-T001, TAU-T002, TAU-H001) are reported as not run (not run (package selection): ...; <n> other crate(s), and a closing JSON line with --format json), never as clean; which rules do not run is decided by the new proved rule::ran (rule scope joins the rule facts; ran_spec, workspace_rule_not_run_under_selection, unselected_crate_not_run, whole_workspace_runs_all, three mutants). A baseline is matched only for the named crates, and baseline --package writes only their entries. docs/ADOPTING.md gains the route "one kernel crate". Without the flag nothing changes.
  • Check-time freshness per claim, and a stale proof record as its own finding (#101, #99, #100; RFC 2026-11-28-check-time-freshness). cargo tauten check decides whether a recorded claim still discharges a finding from named inputs per claim (its own entry in claims.toml, the gate, the Rust source of its crate and of the workspace crates it depends on, their manifests, the translation and proofs it reaches, and the non-Lean, non-Markdown files under proofs/) with the proved binding::fresh, instead of one fingerprint per crate. An edit to a file under tests/, benches/ or examples/, a comment, another claim's entry or a retired [[amend]] no longer withdraws a subsumption. New proved kernel functions subsume::standing (a site is Subsumed, Owed to a stale record, or Open) and subsume::any_stale.
  • TAU-R003, one finding when some claim's record is stale, with the claim and first moved input; a site that is an error only for that reason is marked owed_to: "TAU-R003" in JSON and (owed to TAU-R003) in the human output, and counted in the summary. It stays an error: the exit code is unchanged. cargo tauten baseline refuses to record owed sites.
Changed
  • proofs/claims.json format version 2 carries check_inputs per claim; cargo tauten proofs writes it. 0.3.0 reads versions 1 and 2; a version 1 record (no check_inputs) is decided by the crate-level fingerprint as before, so nothing is recalibrated at upgrade. An older cargo-tauten refuses a version 2 record by name. Version 2 is also the version of a pending merge record; the two shapes are told apart by the state key (a pending record has it and no claims). Ship-level reuse ignores check_inputs. cargo tauten proofs export still writes version 1 without them, so a shipped record is read by older consumers.

0.2.2

· Release v0.2.2

Added
  • A checksummed prebuilt binary per release (#102). The release workflow builds a static cargo-tauten for x86_64-unknown-linux-musl in the pinned tools image from the commit both gates passed on, and attaches it with SHA256SUMS to the tag's GitHub release, whose notes name the Rust toolchain the Clippy profile was qualified with. A rehearsal keeps the same files as a workflow artifact. --version of such a binary prints the version, commit and toolchain.
  • cargo tauten check prints a note when the active clippy-driver is from another Rust release than the one tauten was qualified with (informational; not a finding, no verdict changes).
Changed
  • An interrupted proof gate run keeps its finished mutant calibrations (#98). Each mutant result is saved to target/tauten-proofs-partial.json as the gate reports it; the next run reuses it only under the bindings ship reuse uses (same commit and claim, claim-wide and mutant inputs unchanged, decided by binding::fresh) and runs the rest through [gate] try. The side file is never promoted into proofs/claims.json (whose format is unchanged) and is deleted when a run records.

  • The total-shape audit is a reusable module (#90). totalOver and subjectOf move out of the proofs template's Audit.lean into Proofs/TautenTotal.lean (Tauten.Total, imports Lean and Aeneas only), with the audited library as a parameter and Tauten.Total.report printing TOTAL/SPEC per function. init --proofs writes it; the template audit uses it and prints the same lines as before. ADOPTING lists it with its checksum.

Fixed
  • cargo tauten generated no longer leaves a Docker network behind on each run. A generator ran from a scratch copy named per process, so Compose created a new project and network every time until the daemon ran out of address pools ("all predefined address pools have been fully subnetted"). It now uses one project name, tauten-generated, unless COMPOSE_PROJECT_NAME is set, as the proof gate already did. Leftover tauten-generated-<pid>_default networks can be removed with docker network rm.

0.2.1

· Release v0.2.1

Milestone 0.2.1: when proof results may be reused (#79, #80, #83) and early refusals (#77, #81).

Changed
  • Ship-level reuse is bound to the whole translation and to complete definitions (#79, #80). A claim's inputs follow its function across every file under proofs/Extracted/, and also bind the extracted instances, every extracted declaration its proof files mention, and Lean module-system imports. A proofs/mutants.py mutant is bound to its whole entry plus the rest of the file. A mutant whose kill requires that nothing else fails is bound to every Lean file. Incomplete binding (unknown mutant, unresolved function, nested namespaces) is never reused. Staleness of a mutant's own inputs is decided per mutant. The first ship run after upgrading re-runs every mutant once; recorded translation and proof fingerprints are unchanged.
  • Refused before the gate starts (#77, #81): an unexcused weakening (TAU-R002), a pending merge record the run may not replace, and a [[mutant]] whose site does not occur exactly once. The record is left byte-identical and no gate process starts. A gate can refuse the same way by reporting a preflight stage; the template gate.py does, and gate.py --preflight runs only that check.
  • Ship prints which mutants it ran and which it reused.
  • The proof gate is bounded (#82; RFC 2026-11-28-bounded-build-resources). The proofs container gets a CPU, memory (no swap) and task limit, by default 8 CPUs and 12 GiB (TAUTEN_PROOFS_CPUS, TAUTEN_PROOFS_MEMORY), and the gate keeps mutant jobs × Lean threads within the CPUs it was given rather than the host's count. A timeout kills the whole process group, and a build cut short (exit status other than 1, or Lean exited with code N, N ≠ 1) is reported as a failure, never as a kill. The init --proofs template gets the same limits.
Fixed
  • An inert [workspace.package].version bump is pinned to keep every kill and subsumption (#75; regression test, no behaviour change).
Documentation
  • What a ship-level run binds and what it does not, and when it re-runs everything once (#78).

0.2.0

· Release v0.2.0

Milestone 0.2: #65, #64 and #60 (release issue #70). #61, #62, #66 and #68 carry forward; adopter trials never gate a release.

Breaking
  • ReadDir reads take a byte limit (#64, RFC 2026-11-21-bounded-capability-reads). ReadDir::read and ReadDir::read_to_string now require a Limit<Bytes> and return Result<_, ReadError>. The unbounded 0.1 calls no longer compile, so a ReadDir bounds how much a call can return as well as where it can read.

rust // 0.1 let text = dir.read_to_string("app.toml")?; // 0.2 use tauten::cap::{Bytes, Limit}; let text = dir.read_to_string("app.toml", Limit::<Bytes>::new(64 * 1024))?;

A file of exactly the limit fits (a zero limit admits an empty file). One byte more is ReadError::TooLarge { limit }, found by reading at most one byte past the limit, and no prefix is returned. ReadError is #[non_exhaustive] and converts into std::io::Error (too large becomes InvalidData), so ? still works in io::Result functions. Invalid UTF-8 within the limit is still InvalidData. Each chunk is charged through the proved tauten_check_kernel::budget::charge. The IO adapter itself is tested, not proved. The fs feature now depends on tauten-check-kernel.

Added
  • rsys_inv_of_step in Tauten.Machine (and the shipped Proofs/TautenMachine.lean template) (#60, RFC 2026-11-21-result-world-induction): invariant induction for an extracted step that may fail, run against a world, with no total model. proofs/Tauten/MachineWorld.lean is a worked miniature. It shows a success that changes state and world, a refused input, and a corrupting adversary that breaks the invariant. All of these are in the axiom audit.
  • Env::only(names) narrows an environment snapshot to the listed variables without reading the process environment again. A removed name cannot come back (#64).
  • The CI gate builds the API docs of every crate with rustdoc warnings denied; the five existing warnings are fixed (#65).

0.1.0

· Release v0.1.0

Milestone 0.1.0: #54, #55, #58, #14 and #38. The publish driver (#13), the shared proof gate (#35) and bounded capability reads (#64) moved to 0.2.

  • Shared proved helpers for other kernels (A10, #14), in tauten-check-kernel (no new crate): binding::contains_bytes (contains_bytes_spec), budget::charge and budget::charge_repeated over checked arithmetic (charge_spec, charges_never_exceed_initial, charge_repeated_no_overflow), and version::admit (version_admit_total, version_admit_spec, never_admits_newer, absent_is_invalid). Five new mutants. A consumer kernel cites them with inherit = "tauten-check-kernel@<version>:<function>", against the claims.json that tauten-check-kernel now ships. tauten reads proofs/claims.toml, claims.json (recorded, shipped or pending) and the baseline through version::admit (new module tauten_check::format): a file from a newer tauten is refused with "upgrade cargo-tauten" instead of being read as the current format, and a missing version is an error. ClaimsError::Version now carries the message, and Record::parse is new. The bounded ReadDir reads and Env::only moved to 0.2 (#64).

  • Publishing to an absent target, proved (#58, RFC 2026-11-21-publish-absent-target). Companion theorems in proofs/Tauten/Durable.lean for a publish started with the target durably absent (init0Absent). publish_absent_or_new: in every reachable configuration and after any crash, a reader sees nothing or the new content. It needs only FS.sync-file, because a non-atomic rename can only leave a fresh name missing. publish_absent_durable_on_done: once Done, every crash leaves the new content (all three FS assumptions). Non-vacuity: posix_absent_done_reachable. Necessity: absent_or_new_needs_sync_file, absent_durable_needs_sync_dir (a crash loses the new name) and absent_durable_needs_rename_atomic. The theorems join the existing step and durable claims (one claim per function); no published theorem, name or assumption changes. New mutant skip-dir-sync.

  • cargo tauten init --write keeps valid manifests valid (#54). An existing [package.metadata.tauten] table gets the proposed tier in whatever form it has (explicit header, dotted keys, inline table), instead of a second, duplicate header that Cargo refuses. Comments and other keys are kept, a second run changes nothing, and a tier that is present but not a string is refused before anything is written. TAU-H001's overflow-checks is likewise added to an existing [profile.release] table. Manifests are edited with toml_edit, and every edit is re-parsed before it is written.

  • Library and binary roots come from Cargo's declared targets (#55). A library at a non-default path or file name ([lib] path = "code/kernel.rs") now gets the same structural findings (TAU-K003 and the other source rules) and the same init tier proposal as src/lib.rs. Before, such a crate was checked as if it had no library and was proposed as edge. Files outside src/, tests/, benches/ and examples/ are collected from each declared target's directory. Library targets of any crate type (cdylib, staticlib, ...) count as crate roots. tauten_check::SourceFile gains is_lib_root.

0.0.6

· Release v0.0.6

  • TAU-X001 advice for modules shared by several targets (#59): an inner #![expect] in a module compiled into several targets (helpers under tests/ declared with mod support; by several test files) is unfulfilled wherever the lint does not fire, so the old advice could not work. In a module file the finding now names the form that does: a reasoned #[expect] on the mod declaration in each target where the lint fires. The rule's repair text also names the structural repairs (one integration-test target, or a dev-dependency support crate). New fixtures acc-shared-test-module and rej-shared-test-allow.
  • TAU-X001 accepts a reasoned file-level #![allow(dead_code, reason = "...")] in a module under tests/ or benches/ that is not the root of a Cargo target (#59, RFC 2026-11-21-shared-test-module-allow). An unreasoned one, another lint or group, cfg_attr, a target root, or any file in src/, examples/ or the build script is still reported. Target roots come from cargo metadata. tauten_check::SourceFile gains is_target_root, and scan::LintException gains reasoned.

  • TAU-N002 no longer promises a proof discharge (#57): its repair text said a recorded never-fails proof discharges a lossy cast, but only TAU-N001 and TAU-P003 are subsumable (a cast never fails, it changes the value). The text now points to a lossless or checked conversion, cargo tauten obligations --list labels TAU-N002 entries as not dischargeable by a proof, and a test ties every repair text that promises a discharge to the subsumable rules. No verdict changes.

  • cargo tauten proofs reconcile (#50): in a two-parent merge whose human-authored conflicts are resolved, checks the resolved claims.toml against both parents' recorded claims (TAU-R002 twice, decided together by the proved control::admit), regenerates the declared translation, and writes a pending-merge record (version: 2, parents, registry; no results). A pending record is never evidence: it subsumes nothing, proofs export refuses it, the ship level reuses nothing, and a v1 reader refuses it. It stays the TAU-R002 baseline until a gate on a snapshot of the merge commit (its parents checked against the record) proves every claim.

  • A missing proof tool no longer overwrites the record (#52): when the gate cannot start, prints nothing, or reports only tools missing, cargo tauten proofs still prints a tool-missing outcome per claim and exits 1, but leaves proofs/claims.json byte-identical (or absent), so the same command can be retried from the clean checkout. A gate that started and then failed (drift, build, audit, mutants) is recorded as before.

  • Draft claim entries (#49, RFC 2026-11-21-draft-claim-entries): cargo tauten proofs draft [--crate <package>] [--inventory <file>] prints a unified diff to proofs/claims.toml for new or changed functions, ready for git apply after review; empty stdout and exit 0 when there is nothing to draft. It runs [gate] try with no mutant selected (tools, extract, drift, build, audit), joins each theorem to the fully qualified extracted declaration the audit names as its subject (never a short name; a loop's theorems join its function only through the translation's loop header), and locates each [[mutant]] no claim lists by its unique site. total and subsumes are suggested only for a premise-free total theorem about the function itself, and subsumes only on an unconditional claim. Existing claims are only extended in place; comments, other entries and [[amend]] are kept byte for byte, and a second draft is empty. Unknown packages, missing tools, a stale translation, ambiguous or contradictory associations and layouts it cannot edit refuse with no patch (exit 1). It writes no file, runs no mutant and grants no proof credit; exit 0 is never a gate result. The template's Audit.lean prints SUBJECT <theorem> <function> and gate.py emits it as {"theorem", "subject"} (read only by the draft; projects set up earlier copy both from cargo tauten init --proofs or use --inventory, a version-1 JSON of functions, theorems and mutants checked against the translation and the audit). Fixture fixtures/proofs-draft.

  • Publishing waits for the full proofs gate on the tag commit (#53): release.yml calls proofs.yml (extract, drift, Lean build and audit, every mutant) in the same run as the CI gate, and publish needs both, so a failed, cancelled, timed-out or skipped proofs job blocks it. A workflow_dispatch of release.yml rehearses the same path without publishing. The hosted proofs timeout is 150 minutes (a full run takes about an hour; 60 minutes cancelled runs that would have passed).

  • An empty proof inventory never passes (#51): cargo tauten proofs (any --level) and cargo tauten verify over a proofs/claims.toml with no [[claim]] exit 1, say that no theorem was checked, and write no record; a previous record still triggers TAU-R002. The run's verdict is now decided by the proved control::admit (one Pass control per claim), which refuses an empty required set. Projects without proofs/claims.toml are unaffected.

0.0.5

· Release v0.0.5

  • cargo-tauten packages: the cargo tauten new templates' manifests are Cargo.toml.in (cargo leaves any subdirectory with a Cargo.toml out of a package, so the first v0.0.5 publish failed its verification and uploaded nothing). The CI gate runs cargo package over every published crate.

  • Inherit a dependency's claim (A7b, #48): inherit = "crate@version:function" in proofs/claims.toml reuses a claim the dependency ships in the claims.json next to its Cargo.toml (cargo tauten proofs export --crate <name> writes it; tauten ships its publish claims). The badge is the proved badge::inherit (inherited_badge_le: never stronger than the inherited one; inherit_needs_version_and_record): a version other than the locked one or a missing record establishes nothing. The record carries the dependency's theorems and assumptions. Mutants inherit-ignores-version, inherit-strengthens. Fixture fixtures/inherit.

  • Cadence levels and incremental proofs (D2, #36). Each claim records its named inputs (inputs in proofs/claims.json): the declarations of the translation its function reaches, the Lean files stating and proving its theorems (with their local imports), its mutants' definitions and the toolchain pins. cargo tauten proofs --level ship runs every stage (extract, drift, build, audit) but re-runs only the mutants of claims whose inputs the proved binding::fresh finds changed (or that were not proved), and reuses the other kills from the record; an edit to code the translation does not reach re-runs no mutant. cargo tauten ship is check then the gate at ship level; cargo tauten verify --level fast|ship|full runs a cadence level. Needs [gate] try.

  • Mutant verdicts report what broke directly (#39, with #40 and #47): the template gate emits, per mutant, the declarations whose own proof failed (direct) apart from those that failed only through them (dependent). A [[mutant]] may declare direct = [...], the exact set of declarations (helpers included) that must fail directly; that kill is decided by the proved control::admit: for expected {L}, {L} calibrates, {H} and {L, H} do not, nothing observed or an infrastructure failure never does. Without direct, the claim-level policy is unchanged.

  • The gate runs as the owner of the checkout, not root (#42): docker/entry.sh (the tools services' entry point) hands the cache volumes to that uid once and drops privileges with setpriv; root is an explicit opt-in (TAUTEN_GATE_ROOT=1). The gate prints the uid it ran as. tests/host.rs overwrites a 0444 file and expects PermissionDenied, so a root-run gate fails it exactly as a host would.

  • The fast extract stage builds the translation in Lean (#46): cargo tauten proofs extract and check --extract now also compile the fresh Lean (without the proofs), so a name Lean reserves (a parameter given) or a generated-name clash (a parameter named like its module) fails at extract speed, located at the Rust line, instead of one full gate round later. Lean decides; there is no keyword list. About 10-15 s more per crate. Fixtures rej-lean-keyword, rej-name-clash.

  • Declared layers inside a tier (B6, #21): [workspace.metadata.tauten] layers = [...] orders a workspace's crates; each member names its layer and may depend only on the same or an earlier one. New rule TAU-T004, decided by the proved layer::finding (layer_finding_iff, unknown_layer_is_finding) over an order proved reflexive, transitive, antisymmetric and total; mutants layer-strict, layer-inverted, unknown-layer-clean. A missing, unknown or malformed declaration is a finding. Fixture workspace fixtures/layers.

  • Scanner mutation gate and a rewritten proofs/TRUST.md (T7, #34). The CI gate runs cargo-mutants over the fact extraction (scan.rs, effects.rs, manifest.rs) and requires zero survivors: 147 mutants, 125 caught, 22 unviable. New unit tests cover every type form the effect classifier reads, crate type expansion, where clauses, walked modules and impls, and cfg_attr exceptions; two branches that no input could reach were removed, one equivalent mutant is excluded with its reason. scripts/mutants now builds each parallel job in its own target directory (they used to share the image's, and tested each other's binaries). TRUST.md lists what is proved, compiler-enforced and tested, and what each scanner does not see.

  • Evidence that cannot go stale (A5, #9). #[evidence(subject = T, exclusive)] adds mint_exclusive, returning a Permit that holds the only &mut T: check and act are one chained call (Permit::act); mutation between them, minting outside the module and cloning do not compile (three new compile-fail tests). #[evidence(subject = T, stamped)] with T: Versioned adds mint_stamped, returning a Stamped fact that crosses an await or a queue without borrowing; Stamped::verify returns Stale once the version moved. #[derive(Bindings)] generates diff (every differing field, new fields included) and revalidate into Evidence<'_, Fresh<T>>. Proved for an example kernel action (tauten_proof_instances::stamped::bump): stale_refused (a stale stamp returns Stale and leaves the state unchanged) and fresh_accepted; mutants stamp-ignored, stale-accepted. tauten::origin documents each carrier's label and the three hand-written token shapes it replaces.

  • Atomic publish, proved (A7, #11). proofs/Tauten/Durable.lean runs the publish machine against a filesystem model with crashes; each filesystem guarantee is a switchable flag and a named assumption (proofs/assumptions.toml): FS.rename-atomic, FS.sync-file, FS.sync-dir, FS.exclusive-create. Proved over the extracted steps: publish_old_or_new (a reader, and a reader after any crash, sees the old or the new content; under rename-atomic and sync-file), publish_durable_on_done (adding sync-dir, tauten::publish::durable phases survive any crash with the new content), create_new_never_replaces (under exclusive-create, for the new tauten::publish::create_step, which moves with RenameNoReplace), publish_stops_on_failure and publish_frame (no assumption), profile_mono and crash_characterisation. One profile satisfies every assumption (posix_satisfies) and reaches Done; three necessity theorems show each property failing with its guarantee switched off. Mutants skip-sync, failure-ignored, durable-too-early, replace-under-create-new, with rename-before-sync from A6. tauten's own proof gate now derives each theorem's assumptions (PREMISES, ESTABLISHES), as the template's does; the machine library gains RSysReachable and rsys_of_model for extracted steps.

  • The agent profile (AGENTS.tauten.md) opens with the architecture on one page (A12, #16): decisions are total kernel functions with claims, protocols are machines, the world is reached only through capabilities in the effect row, a check travels as evidence or a binding, a result is shown with the badge its controls admit, registries are never weakened. Each line names the rule or type that enforces it and labels it proved, compiler-enforced, lint, tested or not checked.

  • cargo tauten new <path> [--tauten-path DIR] (A12, #16) writes a fresh workspace: a kernel crate with one total function (affordable) and its claim, theorem and two mutants (through the init --proofs template), a core crate with a Clock capability, #[effects] (effects = "required") and one tauten::origin::Evidence check (to be replaced by the A5 permit), and a thin edge binary calling run(caps, args). It passes cargo tauten check with no findings (tested); after sh proofs/refresh.sh, cargo tauten proofs records the claim proved with both mutants killed (run once locally, 102 s). Acceptance trial: 3 of 3 fresh Claude Sonnet 5.5 sessions given only the profile added a feature to the template and passed check and the proof gate (docs/dry-runs/a12-profile-2026-11-20.md; one request, $0.39).

  • cargo tauten obligations [--list] (D3, #37): in kernel crates, arithmetic and indexing findings (TAU-N001, TAU-N002, TAU-P003) are listed as proof obligations: proved (subsumed by a recorded proof that the function never fails), open and baselined, or open. The counts are the ones check decides (proved = subsumed, open and baselined = accepted by the baseline); it fails when an obligation is open. The rules' fix texts say so.

  • cargo tauten generated [--only NAME…]: the generated-file stage (A11, #15). Each [[workspace.metadata.tauten.generated]] entry names a command and either the committed file its standard output must equal (stdout) or the files it writes (outputs, run in a scratch copy so the checkout is never written). Files are compared with the proved same_bytes and the stage is decided by the proved control::admit: one byte is drift, and an output the command did not produce or a failing command is failed, never ok. tauten declares rules (docs/RULES.md, now checked this way by the CI gate) and translation (proofs/Extracted, needs Docker).

  • Which compiler messages become findings, whether a rule applies to a target (test targets included) and whether check passes are decided by the proved kernel (compiler::kept, applies, passes; T5, #32): kept_iff, applies_spec, check_passes_iff, warnings_never_fail. The pinned toolchain's real compiler output on fixtures/cases is recorded in crates/cargo-tauten/tests/golden/ and replayed by a test; scripts/record-golden re-records it for a new toolchain (TAUTEN_RECORD_COMPILER_JSON keeps the raw messages).

  • TAU-T001, TAU-T003 and TAU-K003 are decided by the proved kernel (layout::t001, t003, k003; T6, #33). no_std is no longer found by substring: only #![no_std] or #![cfg_attr(not(test), no_std)] satisfies TAU-K003; no_std under any other condition (a feature, nesting) and a library root that does not parse are findings. New fixtures rej-conditional-no-std and acc-kernel-not-test.

  • Lint exceptions are decided by the proved kernel in more places (T4, #31). exception::decide takes how the attribute is written and every rule it may cover: an exception inside cfg_attr is never accepted in a kernel crate (conditional_never_allowed_in_kernel), and an exception for a lint group (warnings, clippy::all, unused, …) is decided as the worst over every profile rule the group may contain (group_never_weaker). TAU-X003 is exception::loosens (x003_iff) and now also sees groups in [lints]. The scanner reads exceptions inside cfg_attr (reported under TAU-X001 when they allow) and in tests/, benches/, examples/ and the build script; in test targets a rule that does not apply to tests covers nothing. New reject fixtures: rej-cfg-attr-allow, rej-group-allow, rej-test-exception.

0.0.4

· Release v0.0.4

  • cargo tauten proofs try --theorems T… | --mutants M…: the developer loop. Runs extract, drift, build and audit, then only the mutants of the claims stating those theorems (or the named mutants), in parallel; prints each affected claim as PARTIAL, never writes proofs/claims.json, and says it is not a gate result. Needs [gate] try (the template writes it). On tauten itself, one theorem's two mutants take 78 s against about 25 minutes for the full gate.

  • cargo tauten proofs gates a snapshot of the committed HEAD (git archive into a private directory) instead of the live working tree, so the checkout may be edited while a long gate runs; uncommitted changes in the workspace are refused, and proofs/claims.json records the commit it is about. --live keeps the old behaviour (any edit during the run is drift). Outside Git, the live tree is gated as before.

  • tauten::machine: a protocol as a pure step function (Machine), with run and replay (compare a recorded tape of events and commands). The Lean library Tauten.Machine (shipped in the proofs template as Proofs/TautenMachine.lean) proves the induction once: inv_of_step, inv_run, rinv_of_step for extracted steps that return a Result, sys_inv_of_step against a world that interprets commands and takes adversary steps, and discharged_of_inv. Worked instance: tauten::publish (write, sync, rename, sync the directory; remove the temporary file on failure), proved over its translation to leave no temporary file behind in any reachable terminal phase, with no filesystem assumption.

  • Every rule states its family (safety, obligation, style), exactly what it decides (invariant), what it reads (sees), what it does not see (dominion), whether it is complete, and its reject fixtures (docs/RULES.md, cargo tauten explain). Proved laws: an incomplete rule never blocks (only TAU-S002 is incomplete), an input a rule could not read is never clean (a source file syn cannot parse is now reported under each source-scanning rule instead of being skipped), and a complete rule that blocks must name a reject fixture or the rule table is invalid. Nine new reject fixtures cover the rules that had none.

  • cargo tauten proofs extract [--crate <dir>] and cargo tauten check --extract (TAU-K004): translate the proved kernel crates without building the proofs and report the first error with its location; code that translates only through opaque library functions (axioms) is refused too. Without the toolchain the result is tool-missing, never clean. Needs [gate] extract in proofs/claims.toml (the template writes it). The agent profile's kernel section is generated from shapes.toml, whose every entry is a fixture re-checked against the pinned toolchain (scripts/extract-fixtures): integer casts and derived PartialEq do translate at this pin; trait objects, floats, slices of borrowing structs, early returns across two loops, match on get in a loop and iterator chains do not. The planned syntax lint (old TAU-K004 plan) and #[kernel] macro are dropped.

  • TAU-H001: release builds must check integer overflow (overflow-checks = true under [profile.release] in the workspace Cargo.toml, with no per-package or .cargo/config.toml override turning it off). A value tauten cannot read is never clean. Decided by the proved tauten_check_kernel::manifest::hardening; cargo tauten init --write adds the setting.

  • Named assumptions are derived, not just declared. Tag a Lean proposition @[tauten_assumption "ID"] (template file Proofs/TautenAssumption.lean); the audit derives which assumptions each theorem's hypotheses use, and a claim's assumes must be exactly that list. A claim with assumptions names a witness theorem showing they can hold together; optional necessity theorems must pass like theorems. Decided by the proved tauten_check_kernel::assumption::assumptions_ok. Existing proofs directories: copy the template's Audit.lean, gate.py and Proofs/TautenAssumption.lean.

  • TAU-R002: a recorded proof claim may not be weakened. proofs/claims.toml may not drop a theorem or mutant recorded in the committed proofs/claims.json, nor add an assumption, unless an [[amend]] entry (file, function, kind, name, reason) names the change; cargo tauten proofs refuses to re-record otherwise. Decided by the proved tauten_check_kernel::registry::conserves.

0.0.3

· Release v0.0.3

  • cargo tauten proofs: runs a project's proof gate (proofs/claims.toml) and prints one JSON outcome per claim (proved, drift, build-failed, audit-failed, mutant-survived, tool-missing); records them in proofs/claims.json.
  • cargo tauten init --proofs <crate> writes the Charon/Aeneas/Lean proof template for a kernel crate.
  • In kernel crates, TAU-N001/TAU-P003 findings inside a function with a current, total, proved claim are reported as subsumed by the proof (JSON field subsumed_by, severity warning), not as errors.
  • Rule-table validation and proof subsumption are decided by tauten-check-kernel and proved in Lean (docs/proofs/README.md).
  • Breaking: #[refined] accepts only an inner type that is tauten::refine::Frozen (primitives, String, and Box, Option, Vec, arrays, slices, tuples and &'static references of those). A Cell could be changed through get(), and a user-written Clone could break the predicate, after try_new checked it. Every refined type implements tauten::refine::Refined. Reported by an external review.
  • Proof fingerprints include the workspace Cargo.toml (without version lines) and the toolchain pin.

0.0.2

· Release v0.0.2

  • #[refined] rejects derives and attributes that could construct a value without checking the predicate (Default, Deserialize, ...). Allowed: Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash.
  • TAU-A002: Authority::acquire is banned outside the edge by resolved path, so aliases and function pointers are caught; cap-std's ambient constructors are banned under TAU-A001.
  • TAU-A001's repair hint no longer names a type that does not exist.
  • #[ensures] violation messages show old(..) as written.
  • The ratchet's TAU-R001 names the crate's real tier.
  • Rule tables missing a rule the checker emits are rejected.
  • Releases use crates.io trusted publishing.

0.0.1

· Release v0.0.1

First release.

Reproduced from CHANGELOG.md at 0200db3. 1 clause naming an adopting project is left out.