Skip to main content

Module classifier

Module classifier 

Source
Expand description

Pure event → state classifier.

The classifier is deterministic: given the same event log and the same now, it produces identical output. That is the property that makes snapshot tests cheap, replay meaningful, and bugs reproducible.

§What the classifier does

  1. Ingest Events in timestamp order.
  2. Compute the StateVector fields from sliding-window reductions.
  3. Apply the label rules from Addendum A §2.3 and §10.2 to produce a Label.
  4. Hand both to a Snapshot.

§What the classifier deliberately does not do

  • It does not talk to the engine.
  • It does not read or write files.
  • It does not emit friction side effects. zero-commands applies the friction gate using crate::FrictionGate, not this type.
  • It does not decide what to render. zero-tui reads the Snapshot.

Separation keeps the classifier exhaustively testable and snapshot-safe.

Structs§

Classifier
Incremental classifier. Feed events in, snapshot out.