Type Checker

Structural Maximum oracle

A Rust compiler saying expected Option<Foo>, found Foo is vastly more useful to an agent than “please reconsider whether this is correct.” This is the first and strongest form of computational feedback in Böckeler’s guides & sensors framing. The implementation doesn’t get to argue with it.

Sensors of syntactic validity

The type checker is the strongest member of the cheapest family of sensors — those that answer: “Is this thing even a valid inhabitant of the language/system?”

compiler         → "does it parse and compile?"
type checker     → "are types consistent?"
schema validator → "is this a valid instance of the schema?"
import resolver  → "do all imports resolve?"
dependency resolver → "are all dependencies available?"

These are extremely strong sensors because the implementation doesn’t get to argue with them. A type error is not a suggestion — it is a fact about the artifact. This makes them the baseline of the confidence stack.

A guiding sensor tells the agent what to do next. expected Option<Foo>, found Foo doesn’t just say “bad” — it says “you have an Option where you need a bare Foo, probably unwrap it or change the return type.” That’s actionability.

Sensor properties

Property Value
Oracle strength Maximum — a type error is a fact, not an opinion
Independence Maximum — the implementation cannot game the compiler
Scope Module-level
Feedback latency Milliseconds
Actionability Guiding — tells you exactly what’s wrong and where
Type Predictive — catches errors before runtime

What it cannot detect

Types measure a particular class of structural inconsistency. They cannot detect logical errors — a function that type-checks perfectly but returns the wrong answer. They cannot detect runtime behavior. They cannot tell you whether the system produces the intended result for users.

Related sensors

Categories: Structural Syntactic Validity Guiding Sensors Maximum Oracle