Module levers

Module levers 

Source
Expand description

2026-09-25: DFlash drafter levers, resolved from the environment once per head and carried on it.

Owner: model-arch (DFlash drafter). Invariants:

  • DFlashLevers::from_env is called only while a head is built (from_weights.rs), so a head’s levers are fixed for its lifetime.
  • Each field reads one METRALE_* variable, except any_diagnostic_armed, which reads every name in GRAPH_SUPPRESSING_DIAGNOSTICS.

The levers live on the head rather than in a process-wide OnceLock, so a second model built in the same process resolves the environment again.

Structs§

DFlashLevers
2026-09-25: Diagnostic and A/B levers for one loaded DFlash drafter.