Rule reference
Rules
45 rules: 25 decided by Clippy, 3 by rustc, 17 by a tauten structural check. 19 admit no exception. Each rule has a stable ID; cargo tauten explain <ID> prints it in the terminal.
| ID | Rule | kernel | core | edge | Tests | Exceptions | Decided by |
|---|---|---|---|---|---|---|---|
| P · Panics | |||||||
| TAU-P001 | No unwrap/expect on fallible values | deny | deny | deny | no | #[expect] + reason | Clippy |
| TAU-P002 | No explicit panics | deny | deny | warn | no | #[expect] + reason | Clippy |
| TAU-P003 | No panicking index or slice | deny | deny | warn | no | #[expect] + reason | Clippy |
| TAU-P004 | No panics inside fallible functions | deny | deny | deny | no | #[expect] + reason | Clippy |
| TAU-P005 | No process exit or leaked values outside the edge | deny | deny | – | no | #[expect] + reason | Clippy |
| N · Numbers | |||||||
| TAU-N001 | Checked arithmetic | deny | deny | warn | no | #[expect] + reason | Clippy |
| TAU-N002 | No lossy as casts | deny | deny | warn | no | #[expect] + reason | Clippy |
| TAU-N003 | No floating point in the kernel | deny | – | – | no | #[expect] + reason | Clippy |
| TAU-N004 | No exact float comparison | deny | deny | deny | no | #[expect] + reason | Clippy |
| E · Errors | |||||||
| TAU-E001 | Never ignore a result | deny | deny | deny | yes | #[expect] + reason | Rustc |
| TAU-E003 | Explicit discards of results need a reason | deny | deny | deny | no | #[expect] + reason | Clippy |
| TAU-E002 | Typed errors outside the edge | deny | deny | – | no | #[expect] + reason | Clippy |
| M · Matching | |||||||
| TAU-M001 | No wildcard arms over enums you own | deny | deny | warn | no | #[expect] + reason | Clippy |
| S · Stubs | |||||||
| TAU-S001 | No stubs or debug leftovers | deny | deny | deny | yes | never | Clippy |
| TAU-S002 | Suspicious placeholder comments | warn | warn | warn | yes | never | Tauten |
| X · Exceptions | |||||||
| TAU-X001 | Lint exceptions must be #[expect] with a reason | deny | deny | deny | yes | #[expect] + reason | Clippy |
| TAU-X002 | No crate-wide exceptions to profile lints | deny | deny | deny | yes | never | Tauten |
| TAU-X003 | Manifest lint table loosens the profile | warn | warn | warn | yes | never | Tauten |
| TAU-X004 | No exceptions to this rule here | deny | deny | deny | yes | never | Tauten |
| U · Unsafe | |||||||
| TAU-U001 | No unsafe outside the edge | deny | deny | – | yes | never | Rustc |
| TAU-U002 | Documented, minimal unsafe blocks | – | – | deny | yes | #[expect] + reason | Clippy |
| A · Authority | |||||||
| TAU-A000 | Banned API in this tier | deny | deny | – | no | #[expect] + reason | Clippy |
| TAU-A001 | No ambient authority | deny | deny | – | no | #[expect] + reason | Clippy |
| TAU-A002 | Authority minted outside the edge | deny | deny | – | yes | #[expect] + reason | Clippy |
| F · Effects | |||||||
| TAU-F001 | Declared effects match the signature | warn | warn | warn | yes | never | Tauten |
| G · Globals | |||||||
| TAU-G001 | No hidden global state | deny | deny | – | no | #[expect] + reason | Clippy |
| C · Concurrency | |||||||
| TAU-C001 | Structured concurrency only | deny | deny | – | no | #[expect] + reason | Clippy |
| TAU-C002 | Async hazards | deny | deny | deny | yes | #[expect] + reason | Clippy |
| O · Output | |||||||
| TAU-O001 | No direct console output outside the edge | deny | deny | – | no | #[expect] + reason | Clippy |
| L · Loops | |||||||
| TAU-L001 | No unbounded loops outside the edge | deny | deny | – | no | #[expect] + reason | Clippy |
| H · Hardening | |||||||
| TAU-H001 | Release builds check integer overflow | deny | deny | deny | yes | never | Tauten |
| K · Kernel | |||||||
| TAU-K001 | Kernel determinism and purity | deny | – | – | no | #[expect] + reason | Clippy |
| TAU-K002 | Kernel uses core/alloc paths | deny | – | – | no | #[expect] + reason | Clippy |
| TAU-K003 | Kernel crate attributes | deny | – | – | yes | never | Tauten |
| TAU-K004 | Proved kernel code translates | deny | – | – | yes | never | Tauten |
| T · Tiers | |||||||
| TAU-T001 | Every workspace crate declares a tier | deny | deny | deny | yes | never | Tauten |
| TAU-T002 | Tier dependency direction | deny | deny | deny | yes | never | Tauten |
| TAU-T003 | Declared dependency lists are closed | deny | deny | deny | yes | never | Tauten |
| TAU-T004 | Declared layers point backwards | deny | deny | deny | yes | never | Tauten |
| D · Docs | |||||||
| TAU-D001 | Documented public API | warn | warn | – | no | #[expect] + reason | Rustc |
| R · Ratchet | |||||||
| TAU-R001 | Baseline must be tight | deny | deny | deny | yes | never | Tauten |
| TAU-R002 | Recorded proof claims are not weakened | deny | deny | deny | yes | never | Tauten |
| TAU-R003 | The proof record is stale | deny | deny | deny | yes | never | Tauten |
| TAU-R004 | The committed agent profile is the running CLI's | warn | warn | warn | yes | never | Tauten |
| TAU-R005 | A persisted shape changed without a recorded disposition | deny | deny | deny | yes | never | Tauten |
In kernel crates no profile rule admits exceptions (TAU-X004). "Tests: no" means the rule is not applied to test targets. A rule is *complete* when it misses no violation among the inputs it sees; each rule below states exactly what it decides, what it reads and what it does not see. An incomplete rule is a heuristic and never blocks, and an input a rule could not read is never reported clean (both proved: tauten_check_kernel::rule). Only complete rules are called enforced.