Rules / TAU-R003

The proof record is stale

decided by Tauten kernel deny core deny edge deny
Applies to tests: yes Exceptions: never

Why

A claim in proofs/claims.json was recorded for named inputs: its entry in claims.toml, the gate, the Rust source of its crate and of the workspace crates it depends on, their manifests, the toolchain, the translation and proof files it reaches, and the non-Lean files of proofs/. When one of them has changed since, the record no longer says anything about the code, so the findings it would have subsumed (TAU-N001, TAU-P003) are errors again. This rule says so once, instead of leaving the reader to find a record that is seven commits old behind hundreds of errors; each such site is marked owed_to: TAU-R003 and stays an error. Edits to files under tests/, benches/ and examples/, comments and other claims' entries in claims.toml, and [[amend]] entries are not inputs and stale nothing. Which claims are stale is decided by the proved binding::fresh and the standing of each site by the proved subsume::standing (tauten_check_kernel::subsume); the list of inputs is produced by a tested scanner, trusted not to omit a file the translation and proofs are produced from (proofs/TRUST.md).

Fix

Run cargo tauten proofs (or cargo tauten ship) on a clean commit and commit the new proofs/claims.json.

In the terminal

cargo tauten explain TAU-R003

$ cargo tauten explain TAU-R003

TAU-R003: The proof record is stale Why: A claim in proofs/claims.json was recorded for named inputs: its entry in claims.toml, the gate, the Rust source of its crate and of the workspace crates it depends on, their manifests, the toolchain, the translation and proof files it reaches, and the non-Lean files of proofs/. When one of them has changed since, the record no longer says anything about the code, so the findings it would have subsumed (TAU-N001, TAU-P003) are errors again. This rule says so once, instead of leaving the reader to find a record that is seven commits old behind hundreds of errors; each such site is marked `owed_to: TAU-R003` and stays an error. Edits to files under tests/, benches/ and examples/, comments and other claims' entries in claims.toml, and `[[amend]]` entries are not inputs and stale nothing. Which claims are stale is decided by the proved binding::fresh and the standing of each site by the proved subsume::standing (tauten_check_kernel::subsume); the list of inputs is produced by a tested scanner, trusted not to omit a file the translation and proofs are produced from (proofs/TRUST.md). Fix: Run `cargo tauten proofs` (or `cargo tauten ship`) on a clean commit and commit the new proofs/claims.json. Decided by: TautenDecides: Every claim of the committed proof record is about the current source and proofs, or the finding says which are not.Sees: record; complete: yesDoes not see: Rust files that no bound input names (reached through a mechanism other than a path the scanner recognises), and whether the translation reaches a file; the committed proofs/claims.json itself (its diff is reviewed).Applies to tests: yesExceptions allowed: with #[expect(.., reason)]  kernel deny  core deny  edge deny