Most agent demos look fine right up until the tool call is valid and the action is still wrong. Duplicate refunds. Wrong entity. A status that shouldn't exist. The schema passed. The domain didn't. That gap is what Frank Coyle's 27-minute talk at the AI Engineer Code Summit is about. He keeps the LLM probabilistic inside the loop and puts explicit logical constraints outside it. An ontology, typed entities and relationships, allowed states, rules that have to hold, sits next to the agent and gets consulted before and after tool execution. Not another prompt layer. Not hoping the model knows the rules. The check is inspectable. You can open it, version it, reason over it, and hand it to the next person or agent without the model rewriting your domain every run. That's the same bet we've been making with folders and plain text. Deterministic checks around a probabilistic engine. Own the stack. The talk worth the time: 🔹 Why loops plus tool use make agents Turing complete, and why that's the real risk, not intelligence. 🔹 Where the checks go. Claude Code hooks, pre and post tool events. 🔹 The difference between type safety (Pydantic) and domain correctness (ontology, RDFS, OWL, SHACL, SPARQL). 🔹 Reusing existing ontologies instead of inventing new ones (Schema.org and friends). 🔹 Defining terms before the agent starts acting, not after it's already drifting. The line that stuck with me: "Probabilistic reasoning on the inside, logical constraints on the outside." =================================== Frank Coyle is a lecturer at UC Berkeley's School of Information, teaching Generative AI and LLMs. Before that, he taught CS at SMU for thirty-two years. His path started in psychology and neuroscience, so he brings a brain-to-bits lens instead of pure software engineering hype. He also teaches in executive programs, including at Bologna. The educator's voice, not the hype man's. Watch the talk. Then ask where your domain rules actually live. If they're only in the prompt or in the model's weights, the next valid tool call can still do the wrong thing.