1052af5fa6
- Extracted yield logic into a configurable YieldGate class to avoid process-global state. - Injected time and sleep dependencies to support deterministic testing. - Handled potential negative time progression by forcing a re-anchor instead of gating indefinitely. - Maintained existing behavior for the public yieldIfDue export via a shared instance.