Implementing State Validation Agents in Enterprise Systems