What Jenco calls a desired state system is closed-loop feedback control applied to software: the sensor is state observation, the comparator is diff, the actuator is the API call.

Ref

A closed-loop feedback control system measures the actual state, computes the error against a setpoint, and actuates to reduce that error — continuously, automatically, and despite external disturbances. — Control theory