<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: agent-tessera</title>
    <description>The latest articles on DEV Community by agent-tessera (@agenttessera_4c300951c14).</description>
    <link>https://dev.to/agenttessera_4c300951c14</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4267994%2F7edf12e7-4799-475b-9b00-6710bab7b667.png</url>
      <title>DEV Community: agent-tessera</title>
      <link>https://dev.to/agenttessera_4c300951c14</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/agenttessera_4c300951c14"/>
    <language>en</language>
    <item>
      <title>I built an open source permissions layer for AI agents. Here is what it does and what it can't do.</title>
      <dc:creator>agent-tessera</dc:creator>
      <pubDate>Fri, 27 Nov 2026 20:57:59 +0000</pubDate>
      <link>https://dev.to/agenttessera_4c300951c14/i-built-an-open-source-permissions-layer-for-ai-agents-here-is-what-it-does-and-what-it-cant-do-3iop</link>
      <guid>https://dev.to/agenttessera_4c300951c14/i-built-an-open-source-permissions-layer-for-ai-agents-here-is-what-it-does-and-what-it-cant-do-3iop</guid>
      <description>&lt;p&gt;AI agents call tools: they read files, send email, hit internal APIs, run&lt;br&gt;
code. In most codebases, what an agent is allowed to do is whatever its API&lt;br&gt;
keys allow, and the record of what it did is scattered application logs.&lt;/p&gt;

&lt;p&gt;Security teams are starting to ask the obvious questions. Which agents&lt;br&gt;
exist? What can each one call? Who approved the risky action? Can you prove&lt;br&gt;
what happened? Right now most teams can't answer.&lt;/p&gt;

&lt;p&gt;I built Agent Tessera to answer them without tying you to one LLM provider or&lt;br&gt;
agent framework. It is open source (Apache 2.0).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F65wa9ia47umzn6rp6hrx.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F65wa9ia47umzn6rp6hrx.gif" alt="A policy allows files.read only; the agent's shell.run call is blocked, and the audit log verifies" width="799" height="460"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  What it looks like
&lt;/h3&gt;

&lt;p&gt;You write what an agent may do in a short YAML file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;tessera/v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;AgentPolicy&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;demo&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;tools&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;allow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"files.read"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You mark your tools, or wrap your LLM client:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nd"&gt;@tessera&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;tool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"shell.run"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run_shell&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;command&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Anything the policy doesn't allow is denied before the function runs, and&lt;br&gt;
the decision lands in an audit log. Each event includes the hash of the&lt;br&gt;
previous one, so editing the log afterwards is detectable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;$ tessera audit verify .tessera/audit.jsonl
OK: 5 events
$ &lt;span class="c"&gt;# change one event...&lt;/span&gt;
$ tessera audit verify .tessera/audit.jsonl
FAILED at line 4: &lt;span class="nb"&gt;hash&lt;/span&gt; mismatch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Design choices
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Enforce locally, govern centrally.&lt;/strong&gt; The SDK evaluates the policy inside&lt;br&gt;
your process. There's no network call per decision, so it is fast and keeps&lt;br&gt;
working if the control plane is down. The optional server registers agents,&lt;br&gt;
issues short-lived credentials, signs policy bundles (the SDK rejects bundles&lt;br&gt;
with a bad signature), collects audit events, and has a kill switch and a&lt;br&gt;
web console.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Default deny, one decision order.&lt;/strong&gt; Suspension and kill switches come first,&lt;br&gt;
then explicit denies, delegation limits, the allow-rule check (no matching rule&lt;br&gt;
means deny), rate limits and quotas, and approvals last. There's one order,&lt;br&gt;
documented, and table-tested.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Plain YAML policies.&lt;/strong&gt; I deliberately did not adopt a general policy&lt;br&gt;
language. The people who review agent permissions are often not the people who&lt;br&gt;
write the agent, and a short YAML file is something they can actually read.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Provider neutral.&lt;/strong&gt; Adapters for OpenAI (and Azure), Anthropic, Bedrock,&lt;br&gt;
Gemini, and LiteLLM; integrations for LangChain/LangGraph, MCP, the OpenAI&lt;br&gt;
Agents SDK, and CrewAI. A registry lets you add your own client.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Minimal dependencies.&lt;/strong&gt; The core needs &lt;code&gt;httpx&lt;/code&gt;, &lt;code&gt;pydantic&lt;/code&gt;, &lt;code&gt;pyjwt&lt;/code&gt;, and&lt;br&gt;
&lt;code&gt;pyyaml&lt;/code&gt;. Provider SDKs are optional extras.&lt;/p&gt;

&lt;h3&gt;
  
  
  What it can't do
&lt;/h3&gt;

&lt;p&gt;This matters more than the feature list.&lt;/p&gt;

&lt;p&gt;It enforces policy inside the agent's process, on the calls you route through&lt;br&gt;
it. If code calls a provider's HTTP API directly, nothing checks that call.&lt;br&gt;
There is an opt-in &lt;code&gt;detect_bypass&lt;/code&gt; mode that records such calls for the main&lt;br&gt;
providers, but it only detects them. And a hostile process can disable the SDK&lt;br&gt;
outright. It's a guardrail for agents you trust to be mostly well-behaved, not a&lt;br&gt;
sandbox. For untrusted code, pair it with container isolation and egress rules.&lt;/p&gt;

&lt;p&gt;It also doesn't track data between agents (agent A can pass B something B&lt;br&gt;
couldn't read), and it doesn't detect prompt injection; it limits what an&lt;br&gt;
injected agent can do through governed calls.&lt;/p&gt;

&lt;p&gt;The full list is on the &lt;a href="https://agent-tessera.dev/threat-model/" rel="noopener noreferrer"&gt;threat model page&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where it's headed
&lt;/h3&gt;

&lt;p&gt;A stable 1.0 API, agent-to-agent identity with A2A Agent Cards, and sub-agent&lt;br&gt;
spawning with permission attenuation. Later: a gateway mode for agents you&lt;br&gt;
can't modify, and a TypeScript SDK. SAML, SCIM, Slack/Teams approvals, and SIEM&lt;br&gt;
connectors aren't built; contributions are welcome.&lt;/p&gt;

&lt;h3&gt;
  
  
  Try it
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install agent-tessera
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;a href="https://github.com/agent-tessera/agent-tessera#quickstart" rel="noopener noreferrer"&gt;README quickstart&lt;/a&gt;&lt;br&gt;
takes about two minutes and needs no API key. I'd like to hear what is missing,&lt;br&gt;
especially from people who have to answer "what can this agent do?" for a&lt;br&gt;
security review.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/agent-tessera/agent-tessera" rel="noopener noreferrer"&gt;https://github.com/agent-tessera/agent-tessera&lt;/a&gt;&lt;br&gt;
Docs: &lt;a href="https://agent-tessera.dev/" rel="noopener noreferrer"&gt;https://agent-tessera.dev/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>security</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
