Rules / TAU-T002

Tier dependency direction

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

Why

Dependencies must point inward (edge -> core -> kernel); otherwise a pure crate can reach IO through its dependency.

Fix

Invert the dependency: move the shared code down a tier, or pass the capability in.

Seen in fixtures

rej-kernel-up/src/lib.rs kernel

#![no_std]//! Kernel depending outward on a core crate. /// Nothing.pub const fn nothing() {}

$ cargo tauten check

error[TAU-T002]: kernel crate `rej-kernel-up` depends on core crate `acc-core`  --> rej-kernel-up/Cargo.toml (kernel crate `rej-kernel-up`)  = rule: Tier dependency direction (decided by Tauten)  = fix: Invert the dependency: move the shared code down a tier, or pass the capability in.
Fixture rej-kernel-up (kernel) expects TAU-T002. Output captured at 0200db3.

In the terminal

cargo tauten explain TAU-T002

$ cargo tauten explain TAU-T002

TAU-T002: Tier dependency direction Why: Dependencies must point inward (edge -> core -> kernel); otherwise a pure crate can reach IO through its dependency. Fix: Invert the dependency: move the shared code down a tier, or pass the capability in. Decided by: TautenDecides: Normal dependencies between members point inward (edge to core to kernel).Sees: manifest; complete: yesDoes not see: Dev- and build-dependencies.Applies to tests: yesExceptions allowed: with #[expect(.., reason)]  kernel deny  core deny  edge deny