Operators should replace prompt-only action rules with a run-time-enforced finite-state protocol: Concordat is a Python library that models an agent as an object whose interface is a finite-state protocol, in the spirit of typestate and session types, and enforces that protocol on the model at run time.