Circuits with memory
A circuit with latches needs its previous state. Keep one uint256 in your contract, starting at 0, and pass it in each time.
(uint256 newState, RateLimiterPinout.Outputs memory o) =
RateLimiterPinout.stepCompiled(state, RateLimiterPinout.Inputs({call: true, newWindow: false}));
require(o.allow);
state = newState;The rate-limited vault is a complete example.