Formal Model of a Controllable LLM Agent Based on a Cognitive Architecture | Synapse