after hitting many "legal but wrong" failures, I built a deterministic enforcement layer for the tool boundary
Summary
The author describes building Sponsio, an open-source deterministic enforcement layer for LLM agents that prevents 'legal but wrong' actions by evaluating tool calls against YAML contracts with temporal logic, addressing a gap in prompt engineering.
Similar Articles
Sponsio: Deterministic Contract Layer for LLM Agents [P]
Sponsio is an open-source deterministic contract layer that enforces tool-call boundaries and rules for LLM agents, addressing production reliability issues that prompt engineering and post-hoc auditing cannot fully solve.
From Prompts to Contracts: Harness Engineering for Auditable Enterprise LLM Agents
Introduces a harness engineering approach for building auditable enterprise LLM agents by moving deterministic behavior into code, schemas, and validation artifacts, demonstrated on Korean corporate data with fault-injection and model-substitution tests.
Building an open-source enforcement layer for AI agent tool calls
Introduces Faramesh, an open-source runtime enforcement layer for AI agent tool calls that checks policies before actions run, offering a solution beyond observability or LLM-as-judge.
Contract2Tool: Learning Preconditions and Effects for Reliable Tool-Augmented LLM Agents
This paper introduces Contract2Tool, a framework for automatically inferring lightweight tool contracts (preconditions, effects, risk) from tool metadata, documentation, and execution traces, enabling reliable causal tool filtering for LLM agents. Experiments show learned contracts achieve near-gold contract performance in downstream multi-step agent tasks, significantly reducing token usage.
OxDeAI: I built a deterministic pre-execution authorization boundary for AI agents (fail-closed, signed artifacts, adapters for LangGraph/CrewAI/AutoGen, etc...), looking for feedback.
OxDeAI is an open-source protocol for deterministic pre-execution authorization of AI agent actions, providing signed artifacts and guards to enforce policy outside the agent loop. It supports popular agent frameworks like LangGraph, CrewAI, and AutoGen, and is seeking critical feedback.