· via dev.to (home feed)
Agent Tessera brings default-deny policies and tamper-evident audit logs to AI agents
Agent Tessera, a new Apache 2.0 project, enforces default-deny YAML policies on AI agent tool calls and keeps a hash-chained audit log — while being candid about what it cannot stop.

An independent developer has released Agent Tessera, an Apache 2.0 licensed permissions layer that applies default-deny policies to the tool calls AI agents make — file access, email, internal APIs, code execution — and logs every decision in a tamper-evident trail. The announcement came in a post on dev.to by the project's author, who frames it as an answer to questions security teams are starting to ask: which agents exist, what each one can call, who signed off on a sensitive action, and whether there is provable evidence of what occurred.
What it does
According to the dev.to post, the typical setup today grants an agent whatever its API keys allow, while the record of what it actually did ends up scattered across application logs. Agent Tessera replaces that with compact YAML policy files declaring what an agent may do, plus a decorator or wrapped LLM client that tags the tools an agent can reach. Anything the policy does not explicitly permit is denied before the underlying function runs.
Each decision is written to an audit log in which every entry embeds the hash of the entry before it, so later edits are detectable. The post demonstrates this with a verify command that flags a hash mismatch after a single event is altered.
Enforcement runs locally: the SDK evaluates the policy inside the agent's process, meaning no network round trip per decision and checks that keep functioning if the control plane goes down. An optional server handles the governance side — agent registration, short-lived credentials, signing of policy bundles (the SDK rejects bundles with a bad signature), audit collection, a kill switch and a web console.
Design choices
Decisions follow one documented sequence: suspension and kill switches first, then explicit denies, delegation limits, the allow-rule check (absence of a matching rule results in denial), rate limits and quotas, and approvals last.
Policies are deliberately plain YAML rather than a general policy language. The author's reasoning is that reviewers of agent permissions are often not the people who built the agent, and a compact policy file stays legible to them.
The project is provider-neutral, with adapters for OpenAI and Azure OpenAI, Anthropic, Bedrock, Gemini and LiteLLM, integrations for LangChain/LangGraph, MCP, the OpenAI Agents SDK and CrewAI, and a registry for adding custom clients. Core dependencies are limited to httpx, pydantic, pyjwt and pyyaml, with provider SDKs as optional extras.
What it can't do
The author devotes a section of the post to limitations, arguably the most useful part of the announcement. Enforcement covers only calls routed through the SDK; if code talks to a provider's HTTP API directly, nothing checks that call. An opt-in detect_bypass mode records such calls for the main providers, but it only detects them. A hostile process can also disable the SDK outright — the author positions the tool as a control for agents you broadly trust, not a sandbox, and recommends container isolation and egress rules for untrusted code.
It also does not track data flowing between agents, so one agent can hand another data the recipient would not have been permitted to read itself. And it does not detect prompt injection, though it constrains what an injected agent can do through the calls it does govern.
Roadmap
Planned work includes a stable 1.0 API, agent-to-agent identity using A2A Agent Cards, and sub-agent spawning with permission attenuation. Further out are a gateway mode for agents that cannot be modified and a TypeScript SDK. Enterprise features — SAML, SCIM, Slack or Teams approvals, and SIEM connectors — are not built yet, and the author invites contributions. The Python package installs as agent-tessera, and the quickstart is said to work without an API key.
Why it matters
Agents are being handed real access — to files, mailboxes and internal APIs — faster than most organisations can account for it. The default posture the post describes, where an agent's permission set is whatever its keys allow and the evidence trail is application logs, is precisely what fails a security review. Default-deny policies, signed bundles and hash-chained audit logs are established ideas from conventional access control; the contribution here is applying them to agent tool calls without tying users to one model provider or agent framework. Just as notable is the candour about scope: it is not a sandbox, it is blind to calls that bypass it, and it does not catch prompt injection. That honesty helps teams judge how much to rely on it — and what else, from isolation to egress controls, still has to sit alongside it.
- #ai-agents
- #open-source
- #security
- #python
- #access-control