In normal operation the _dispatchInFlight gate (handleInput) guarantees no pump movement is in flight when a new dispatch starts, so the per-machine abort call is a no-op. The previous unconditional WARN flooded the log with one line per pump per tick (~3/s) for what was actually a normal-path no-op. Now the WARN fires ONLY when a pump's state is accelerating or decelerating — i.e. the gate has been bypassed and we're force- aborting an in-flight ramp. The wording reflects that: Force-aborting in-flight movement on pump_a (state=accelerating) due to: new demand received — _dispatchInFlight gate bypassed. If you ever see this in production logs, the gate has a hole and needs investigating. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
79 KiB
79 KiB