Changelog
What each release changed, from CHANGELOG.md at 0200db3.
0.8.0
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] tryand[gate] extract. Fixturefixtures/own-gate(a hand-writtenproofs/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-onlyno longer reports TAU-R001 for every Clippy entry in the baseline, andcargo tauten baseline --structure-onlyno 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 onetauten-baseline.json(#120, reported by Gripsack).
0.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 forkernelandcore(path,tiers,reason,kind), reported asTAU-A000with its reason aswhyand 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 aTAU-A000error at the workspace manifest.explain TAU-A000lists the workspace's bans;explain --markdownnever does. The declarations key the cached Clippy build.
Changed
ureqinTAU-A001's network list (#119).kernelandcorecrates that callureq'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 newTAU-A001errors. A crate that must not do HTTP at all is better served by leavingureqout of itsallowed-deps.TAU-T003closes a declared dependency list in any tier (#115). A crate may declareallowed-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 keepkernel-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-depsoutside the kernel is aTAU-T003error at the manifest (0.6.0 skipped values that were not strings, and ignored the other two). - Kernel:
layout::t003takes aDepList(absent, declared, unparsed), andlayout::t003_declareddecides the list itself. Proved inproofs/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
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 inproofs/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.jsonrecords thecargo-tautenthat wrote it (tool: name, version, and the revision when built from a checkout), thelevelof the run (fullorship) and, for every mutant result, itssource(observedby this run, orcarriedfrom an earlier one) andobserved_at, the commit of the run that observed it (absent when not known). A result resumed from an interrupted run iscarried. Provenance is not an input: adding it stales nothing. Versions 1 and 2 are still read (their level and sources are unknown); an oldercargo-tautenrefuses a version 3 record by name.proofs exportstill 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 provedcontrol::admit, the level byprovenance::meets.- Gate code is bound at ship level (#91). Every file under
proofs/that is neither Lean, Markdown,claims.toml,claims.jsonnormutants.py(scripts, Compose files, configuration), and every file under a new[gate] code = [...]entry (files or directories outsideproofs/, 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 itstoolsstage; they are recorded astool:<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 runcargo 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.shresolves the image ID and passes it through Compose asTAUTEN_PROOFS_IMAGE_ID. -
The audit says what each proof uses (#94). The stock template's
Audit.leanand tauten's own printUSES <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 stockgate.pyandproofs/report.pydo). On every recording runcargo tauten proofschecks them against the claim's boundlean:inputs, with the provedregistry::conserves; a declaration the scanner did not bind is a warning (a defect of the scanner: please report it), is recorded asunbound:uses:<declaration>, and the claim is re-calibrated on every ship run until the binding is fixed. A gate that prints nousesline 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 mutantunbound(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 toproofs/). The stock template sets it (it buildslake 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]]norproofs/mutants.pydefines; 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 shipprints, 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 (
fforns.f) only when the namespace dropped from it is in scope in that file (anopenof it, or anamespaceblock); 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 forx.method; comments and plain strings bind nothing. A file that exports names, renames onopen, declares notation, macros or syntax (except anattrsyntax), interpolates strings, leaves a comment or string open, continues anopenon the next line, or imports a proof file that does any of these, keeps the broad rule of 0.2.1. Every claim'slean: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
directset, or a custom gate's) and whose result reportschangedis 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 nochanged, a listed file is gone, or an import resolves to neither a project file nor a package oflake-manifest.jsonorlakefile.toml. Conditions it rests on, named inproofs/TRUST.md:LEAN.module-isolationandEXTRACT.item-local.check's freshness reads the committed record'schangedthe 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
toolline keeps working at full level and is not reused across at ship level until it does.checkdoes not judge the level (the record's freshness is unchanged by this release); useproofs --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:
publishneeds both jobs.
0.5.0
Added
tauten_check_kernel::campaign(experimental; #103; RFC2026-11-27-executable-property-playground): what a campaign of generated cases showed.seenfolds the cases into thecontrol::Seena 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),keepdecides whether a shrink candidate replaces the reproducer (only a failure of the same property does; infrastructure aborts) andcalibratedsays whether the required set has a negative control. Seven theorems inproofs/Tauten/Campaign.leanand 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, tieredge): 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 isTested. 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 shipfrom the previous record must equal--level fullon 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 oflean: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 reportsuncalibrated. It runs in the gate.
0.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::Versionedis replaced byMarked, whosemark()returns aMark { subject, incarnation, revision };Staleis replaced by the enumRefused(OtherSubject,OtherIncarnation,Stale), whichStamped::verifyand therevalidatethat#[derive(Bindings)]generates (asRefused::Stale) return;Stamped::version()is replaced byStamped::mark(). A subject that implements onlyVersionedno 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,itemsaspath.rs::Itemor a whole file,codecpackages). 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 inCargo.lock, and commits them intauten-persisted.lock. A declared shape that no longer matches is TAU-R005 (deny in every tier, workspace scope, so--packagelists it as not run) untilcargo tauten persisted --accept <name> --disposition <identical|rewritten|migrated> --reason "..."records what happens to the bytes already written (--disposition retiredfor a removed declaration;--recordlocks new entries and is refused while one changed;cargo tauten persistedalone prints the status and exits 1 unless current). A project that declares nothing sees no change. No new kernel function: "the lock is current" isbinding::fresh, "the last step is the shape the lock holds" isbinding::same_bytes, "the lock may be rewritten" isregistry::conserveswith the disposition as the amendment (registry::keptrefuses 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 isversion::admit. The scanner is tested, not proved, and is the named conditionSHAPE.source-determines-bytes(proofs/TRUST.md); it does not see the definition of a field's type unless declared, macro output, hand-writtenSerializeimpls unless their file is declared, or activecfgbranches. The agent profile gains a paragraph, so TAU-R004 asks forcargo tauten init --refresh-profile. -
Subsumption under the allocation bound (#89, RFC 2026-11-30-subsumption-under-allocation-bound). A function that grows a
Veccan never have an unconditionaltotaltheorem (the Aeneas model ofVec::pushfails atusize::MAXelements). Atotaltheorem 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 vendoredProofs/TautenAlloc.lean), now credits the findings inside the function as subsumed under that assumption: a warning, counted apart (subsumed_underin JSON,N subsumed under named assumptionsin the summary,proved under named assumptionsinobligations), 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::groundandsubsume::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 withassumes = ["ALLOC.object-size"], the witnessTauten.Alloc.satisfiableandtotalnaming the theorem; it gets no credit when it declares any other assumption or when itsTautenAlloc.leanis 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 --proofswritesProofs/TautenAlloc.lean; the templateAudit.leanprintsTOTAL-UNDER <theorem> <f> [IDs]and the gate passes it on as thetotalevent with anunderkey. -
Kernel
stampmodule (tauten-check-kernel):verify(minted, now)names the first differing field in field order, andadvance(revision)is the next revision,Nonewhen 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.tautennow depends ontauten-check-kernelalso without thefsfeature;tauten::originre-exportsMarkandadvance. The exampleCounteroftauten-proof-instancesgains an identity and an incarnation, its claims gainother_subject_refused,other_incarnation_refused,check_markandexhausted_unchanged, and the mutantssubject-not-minted(macro),subject-ignoredandincarnation-ignored(runtime).
Changed
- TAU-H001 explanation documents the package override
[profile.release.package.<crate>] overflow-checks = trueas 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 (RFC2026-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
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-profilerewrites that file and nothing else;init --writestill leaves an existing file alone and says how to refresh it. - TAU-R004 (warning in every tier):
checkwarns whenAGENTS.tauten.mdexists and is not the running CLI's profile (byte comparison with the provedbinding::same_bytes); no finding when the file is absent. cargo tauten check --package <crate>(repeatable; alsoobligationsandbaseline) 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 provedrule::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, andbaseline --packagewrites only their entries.docs/ADOPTING.mdgains 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 checkdecides whether a recorded claim still discharges a finding from named inputs per claim (its own entry inclaims.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 underproofs/) with the provedbinding::fresh, instead of one fingerprint per crate. An edit to a file undertests/,benches/orexamples/, a comment, another claim's entry or a retired[[amend]]no longer withdraws a subsumption. New proved kernel functionssubsume::standing(a site isSubsumed,Owedto a stale record, orOpen) andsubsume::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 baselinerefuses to record owed sites.
Changed
proofs/claims.jsonformat version 2 carriescheck_inputsper claim;cargo tauten proofswrites it. 0.3.0 reads versions 1 and 2; a version 1 record (nocheck_inputs) is decided by the crate-level fingerprint as before, so nothing is recalibrated at upgrade. An oldercargo-tautenrefuses a version 2 record by name. Version 2 is also the version of a pending merge record; the two shapes are told apart by thestatekey (a pending record has it and noclaims). Ship-level reuse ignorescheck_inputs.cargo tauten proofs exportstill writes version 1 without them, so a shipped record is read by older consumers.
0.2.2
Added
- A checksummed prebuilt binary per release (#102). The release workflow
builds a static
cargo-tautenforx86_64-unknown-linux-muslin the pinned tools image from the commit both gates passed on, and attaches it withSHA256SUMSto 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.--versionof such a binary prints the version, commit and toolchain. cargo tauten checkprints a note when the activeclippy-driveris 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.jsonas 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 bybinding::fresh) and runs the rest through[gate] try. The side file is never promoted intoproofs/claims.json(whose format is unchanged) and is deleted when a run records. -
The total-shape audit is a reusable module (#90).
totalOverandsubjectOfmove out of the proofs template'sAudit.leanintoProofs/TautenTotal.lean(Tauten.Total, importsLeanandAeneasonly), with the audited library as a parameter andTauten.Total.reportprintingTOTAL/SPECper function.init --proofswrites it; the template audit uses it and prints the same lines as before. ADOPTING lists it with its checksum.
Fixed
cargo tauten generatedno 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, unlessCOMPOSE_PROJECT_NAMEis set, as the proof gate already did. Leftovertauten-generated-<pid>_defaultnetworks can be removed withdocker network rm.
0.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. Aproofs/mutants.pymutant 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 apreflightstage; the templategate.pydoes, andgate.py --preflightruns 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, orLean exited with code N, N ≠ 1) is reported as a failure, never as a kill. Theinit --proofstemplate gets the same limits.
Fixed
- An inert
[workspace.package].versionbump 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
Milestone 0.2: #65, #64 and #60 (release issue #70). #61, #62, #66 and #68 carry forward; adopter trials never gate a release.
Breaking
ReadDirreads take a byte limit (#64, RFC2026-11-21-bounded-capability-reads).ReadDir::readandReadDir::read_to_stringnow require aLimit<Bytes>and returnResult<_, ReadError>. The unbounded 0.1 calls no longer compile, so aReadDirbounds 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_stepinTauten.Machine(and the shippedProofs/TautenMachine.leantemplate) (#60, RFC2026-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.leanis 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
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::chargeandbudget::charge_repeatedover checked arithmetic (charge_spec,charges_never_exceed_initial,charge_repeated_no_overflow), andversion::admit(version_admit_total,version_admit_spec,never_admits_newer,absent_is_invalid). Five new mutants. A consumer kernel cites them withinherit = "tauten-check-kernel@<version>:<function>", against theclaims.jsonthattauten-check-kernelnow ships. tauten readsproofs/claims.toml,claims.json(recorded, shipped or pending) and the baseline throughversion::admit(new moduletauten_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::Versionnow carries the message, andRecord::parseis new. The boundedReadDirreads andEnv::onlymoved to 0.2 (#64). -
Publishing to an absent target, proved (#58, RFC
2026-11-21-publish-absent-target). Companion theorems inproofs/Tauten/Durable.leanfor 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 onlyFS.sync-file, because a non-atomic rename can only leave a fresh name missing.publish_absent_durable_on_done: onceDone, 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) andabsent_durable_needs_rename_atomic. The theorems join the existingstepanddurableclaims (one claim per function); no published theorem, name or assumption changes. New mutantskip-dir-sync. -
cargo tauten init --writekeeps valid manifests valid (#54). An existing[package.metadata.tauten]table gets the proposedtierin 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 atierthat is present but not a string is refused before anything is written. TAU-H001'soverflow-checksis likewise added to an existing[profile.release]table. Manifests are edited withtoml_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 sameinittier proposal assrc/lib.rs. Before, such a crate was checked as if it had no library and was proposed asedge. Files outsidesrc/,tests/,benches/andexamples/are collected from each declared target's directory. Library targets of any crate type (cdylib,staticlib, ...) count as crate roots.tauten_check::SourceFilegainsis_lib_root.
0.0.6
- TAU-X001 advice for modules shared by several targets (#59): an inner
#![expect]in a module compiled into several targets (helpers undertests/declared withmod 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 themoddeclaration 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 fixturesacc-shared-test-moduleandrej-shared-test-allow. -
TAU-X001 accepts a reasoned file-level
#![allow(dead_code, reason = "...")]in a module undertests/orbenches/that is not the root of a Cargo target (#59, RFC2026-11-21-shared-test-module-allow). An unreasoned one, another lint or group,cfg_attr, a target root, or any file insrc/,examples/or the build script is still reported. Target roots come fromcargo metadata.tauten_check::SourceFilegainsis_target_root, andscan::LintExceptiongainsreasoned. -
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 --listlabels 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 resolvedclaims.tomlagainst both parents' recorded claims (TAU-R002 twice, decided together by the provedcontrol::admit), regenerates the declared translation, and writes apending-mergerecord (version: 2,parents,registry; no results). A pending record is never evidence: it subsumes nothing,proofs exportrefuses 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
toolsmissing,cargo tauten proofsstill prints atool-missingoutcome per claim and exits 1, but leavesproofs/claims.jsonbyte-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 toproofs/claims.tomlfor new or changed functions, ready forgit applyafter review; empty stdout and exit 0 when there is nothing to draft. It runs[gate] trywith 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'sloopheader), and locates each[[mutant]]no claim lists by its unique site.totalandsubsumesare suggested only for a premise-free total theorem about the function itself, andsubsumesonly 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'sAudit.leanprintsSUBJECT <theorem> <function>andgate.pyemits it as{"theorem", "subject"}(read only by the draft; projects set up earlier copy both fromcargo tauten init --proofsor use--inventory, a version-1 JSON of functions, theorems and mutants checked against the translation and the audit). Fixturefixtures/proofs-draft. -
Publishing waits for the full proofs gate on the tag commit (#53):
release.ymlcallsproofs.yml(extract, drift, Lean build and audit, every mutant) in the same run as the CI gate, andpublishneeds both, so a failed, cancelled, timed-out or skipped proofs job blocks it. Aworkflow_dispatchofrelease.ymlrehearses 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) andcargo tauten verifyover aproofs/claims.tomlwith 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 provedcontrol::admit(onePasscontrol per claim), which refuses an empty required set. Projects withoutproofs/claims.tomlare unaffected.
0.0.5
-
cargo-tautenpackages: thecargo tauten newtemplates' manifests areCargo.toml.in(cargo leaves any subdirectory with aCargo.tomlout of a package, so the first v0.0.5 publish failed its verification and uploaded nothing). The CI gate runscargo packageover every published crate. -
Inherit a dependency's claim (A7b, #48):
inherit = "crate@version:function"inproofs/claims.tomlreuses a claim the dependency ships in theclaims.jsonnext to itsCargo.toml(cargo tauten proofs export --crate <name>writes it;tautenships its publish claims). The badge is the provedbadge::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. Mutantsinherit-ignores-version,inherit-strengthens. Fixturefixtures/inherit. -
Cadence levels and incremental proofs (D2, #36). Each claim records its named inputs (
inputsinproofs/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 shipruns every stage (extract, drift, build, audit) but re-runs only the mutants of claims whose inputs the provedbinding::freshfinds 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 shipischeckthen the gate at ship level;cargo tauten verify --level fast|ship|fullruns 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 declaredirect = [...], the exact set of declarations (helpers included) that must fail directly; that kill is decided by the provedcontrol::admit: for expected{L},{L}calibrates,{H}and{L, H}do not, nothing observed or an infrastructure failure never does. Withoutdirect, 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 withsetpriv; root is an explicit opt-in (TAUTEN_GATE_ROOT=1). The gate prints the uid it ran as.tests/host.rsoverwrites a 0444 file and expectsPermissionDenied, 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 extractandcheck --extractnow also compile the fresh Lean (without the proofs), so a name Lean reserves (a parametergiven) 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. Fixturesrej-lean-keyword,rej-name-clash. -
Declared layers inside a tier (B6, #21):
[workspace.metadata.tauten] layers = [...]orders a workspace's crates; each member names itslayerand may depend only on the same or an earlier one. New rule TAU-T004, decided by the provedlayer::finding(layer_finding_iff,unknown_layer_is_finding) over an order proved reflexive, transitive, antisymmetric and total; mutantslayer-strict,layer-inverted,unknown-layer-clean. A missing, unknown or malformed declaration is a finding. Fixture workspacefixtures/layers. -
Scanner mutation gate and a rewritten
proofs/TRUST.md(T7, #34). The CI gate runscargo-mutantsover 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, andcfg_attrexceptions; two branches that no input could reach were removed, one equivalent mutant is excluded with its reason.scripts/mutantsnow builds each parallel job in its own target directory (they used to share the image's, and tested each other's binaries).TRUST.mdlists 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)]addsmint_exclusive, returning aPermitthat 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)]withT: Versionedaddsmint_stamped, returning aStampedfact that crosses anawaitor a queue without borrowing;Stamped::verifyreturnsStaleonce the version moved.#[derive(Bindings)]generatesdiff(every differing field, new fields included) andrevalidateintoEvidence<'_, Fresh<T>>. Proved for an example kernel action (tauten_proof_instances::stamped::bump):stale_refused(a stale stamp returnsStaleand leaves the state unchanged) andfresh_accepted; mutantsstamp-ignored,stale-accepted.tauten::origindocuments each carrier's label and the three hand-written token shapes it replaces. -
Atomic publish, proved (A7, #11).
proofs/Tauten/Durable.leanruns 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::durablephases survive any crash with the new content),create_new_never_replaces(under exclusive-create, for the newtauten::publish::create_step, which moves withRenameNoReplace),publish_stops_on_failureandpublish_frame(no assumption),profile_monoandcrash_characterisation. One profile satisfies every assumption (posix_satisfies) and reachesDone; three necessity theorems show each property failing with its guarantee switched off. Mutantsskip-sync,failure-ignored,durable-too-early,replace-under-create-new, withrename-before-syncfrom A6. tauten's own proof gate now derives each theorem's assumptions (PREMISES,ESTABLISHES), as the template's does; the machine library gainsRSysReachableandrsys_of_modelfor 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 theinit --proofstemplate), a core crate with aClockcapability,#[effects](effects = "required") and onetauten::origin::Evidencecheck (to be replaced by the A5 permit), and a thin edge binary callingrun(caps, args). It passescargo tauten checkwith no findings (tested); aftersh proofs/refresh.sh,cargo tauten proofsrecords the claimprovedwith 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 passedcheckand 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 onescheckdecides (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 provedsame_bytesand the stage is decided by the provedcontrol::admit: one byte isdrift, and an output the command did not produce or a failing command isfailed, neverok. tauten declaresrules(docs/RULES.md, now checked this way by the CI gate) andtranslation(proofs/Extracted, needs Docker). -
Which compiler messages become findings, whether a rule applies to a target (test targets included) and whether
checkpasses 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 onfixtures/casesis recorded incrates/cargo-tauten/tests/golden/and replayed by a test;scripts/record-goldenre-records it for a new toolchain (TAUTEN_RECORD_COMPILER_JSONkeeps the raw messages). -
TAU-T001, TAU-T003 and TAU-K003 are decided by the proved kernel (
layout::t001,t003,k003; T6, #33).no_stdis no longer found by substring: only#![no_std]or#![cfg_attr(not(test), no_std)]satisfies TAU-K003;no_stdunder any other condition (a feature, nesting) and a library root that does not parse are findings. New fixturesrej-conditional-no-stdandacc-kernel-not-test. -
Lint exceptions are decided by the proved kernel in more places (T4, #31).
exception::decidetakes how the attribute is written and every rule it may cover: an exception insidecfg_attris 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 isexception::loosens(x003_iff) and now also sees groups in[lints]. The scanner reads exceptions insidecfg_attr(reported under TAU-X001 when theyallow) and intests/,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
-
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 asPARTIAL, never writesproofs/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 proofsgates a snapshot of the committedHEAD(git archiveinto 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, andproofs/claims.jsonrecords thecommitit is about.--livekeeps 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), withrunandreplay(compare a recorded tape of events and commands). The Lean libraryTauten.Machine(shipped in the proofs template asProofs/TautenMachine.lean) proves the induction once:inv_of_step,inv_run,rinv_of_stepfor extracted steps that return aResult,sys_inv_of_stepagainst a world that interprets commands and takes adversary steps, anddischarged_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 iscomplete, and its rejectfixtures(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 filesyncannot 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>]andcargo 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] extractinproofs/claims.toml(the template writes it). The agent profile's kernel section is generated fromshapes.toml, whose every entry is a fixture re-checked against the pinned toolchain (scripts/extract-fixtures): integer casts and derivedPartialEqdo translate at this pin; trait objects, floats, slices of borrowing structs, early returns across two loops,matchongetin 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 = trueunder[profile.release]in the workspace Cargo.toml, with no per-package or.cargo/config.tomloverride turning it off). A value tauten cannot read is never clean. Decided by the provedtauten_check_kernel::manifest::hardening;cargo tauten init --writeadds the setting. -
Named assumptions are derived, not just declared. Tag a Lean proposition
@[tauten_assumption "ID"](template fileProofs/TautenAssumption.lean); the audit derives which assumptions each theorem's hypotheses use, and a claim'sassumesmust be exactly that list. A claim with assumptions names awitnesstheorem showing they can hold together; optionalnecessitytheorems must pass like theorems. Decided by the provedtauten_check_kernel::assumption::assumptions_ok. Existing proofs directories: copy the template'sAudit.lean,gate.pyandProofs/TautenAssumption.lean. -
TAU-R002: a recorded proof claim may not be weakened.
proofs/claims.tomlmay not drop a theorem or mutant recorded in the committedproofs/claims.json, nor add an assumption, unless an[[amend]]entry (file,function,kind,name,reason) names the change;cargo tauten proofsrefuses to re-record otherwise. Decided by the provedtauten_check_kernel::registry::conserves.
0.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 inproofs/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, severitywarning), not as errors. - Rule-table validation and proof subsumption are decided by
tauten-check-kerneland proved in Lean (docs/proofs/README.md). - Breaking:
#[refined]accepts only an inner type that istauten::refine::Frozen(primitives,String, andBox,Option,Vec, arrays, slices, tuples and&'staticreferences of those). ACellcould be changed throughget(), and a user-writtenClonecould break the predicate, aftertry_newchecked it. Every refined type implementstauten::refine::Refined. Reported by an external review. - Proof fingerprints include the workspace
Cargo.toml(withoutversionlines) and the toolchain pin.
0.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::acquireis 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 showold(..)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
First release.
Reproduced from CHANGELOG.md at 0200db3. 1 clause naming an adopting project is left out.