Skip to main content

classify

Function classify 

Source
pub fn classify(state: GrammarState, sign: &SignTuple) -> RoboticsMotif
Expand description

Classify a sign tuple + grammar state into a named motif.

The Phase 2 classifier makes the minimal, obvious assignments:

  • GrammarState::AdmissibleRoboticsMotif::Unknown (nothing to classify).
  • GrammarState::Boundary(RecurrentBoundaryGrazing) with zero net drift → RoboticsMotif::BacklashRing (characteristic of gear backlash at velocity reversals).
  • GrammarState::Boundary(SustainedOutwardDrift) with positive slew → RoboticsMotif::BpfiGrowth (degradation trajectory).
  • Everything else → RoboticsMotif::Unknown.

The Unknown fallback is not a failure — it is a first-class output that tells the operator “DSFB observed structure but does not have a named motif for it,” which is precisely the augment-not-classify posture of the framework.