<?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: Laziz Kironov</title>
    <description>The latest articles on DEV Community by Laziz Kironov (@lazizkironov).</description>
    <link>https://dev.to/lazizkironov</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%2F4100400%2F53260ef3-575a-4160-b5b8-66c957fba558.png</url>
      <title>DEV Community: Laziz Kironov</title>
      <link>https://dev.to/lazizkironov</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lazizkironov"/>
    <language>en</language>
    <item>
      <title>How to Stop an AI Agent From Deleting Your Production Database (Prompt Rules Won't)</title>
      <dc:creator>Laziz Kironov</dc:creator>
      <pubDate>Tue, 24 Nov 2026 08:47:54 +0000</pubDate>
      <link>https://dev.to/lazizkironov/how-to-stop-an-ai-agent-from-deleting-your-production-database-prompt-rules-wont-39md</link>
      <guid>https://dev.to/lazizkironov/how-to-stop-an-ai-agent-from-deleting-your-production-database-prompt-rules-wont-39md</guid>
      <description>&lt;p&gt;This was not the first time In July 2025 a Replit agent deleted the production database of Jason Lemkin's SaaStr project more than 1,200 executive records, during an explicit code freeze. It had been told not to change anything without permission. It also said the data could not be restored which turned out to be false.&lt;br&gt;
Both agents had rules. Both broke them. This post is about controls that do not depend on the agent following rules.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Disclosure: I build &lt;a href="https://github.com/kironovlaziz-del/provenza" rel="noopener noreferrer"&gt;Provenza&lt;/a&gt;, an open-source, self-hosted control plane for AI agents. The examples below use it. The ideas behind them work with any tool, and the last section says honestly where Provenza does not help.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
  
  
  Why prompt rules fail
&lt;/h2&gt;

&lt;p&gt;A rule in a system prompt, an &lt;code&gt;AGENTS.md&lt;/code&gt; or a &lt;code&gt;.cursorrules&lt;/code&gt; file is text the model reads. It shapes behavior most of the time But:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the model decides when a rule applies, and under pressure ("the task is blocked, fix it") it can decide it doesn't;&lt;/li&gt;
&lt;li&gt;a long session pushes rules out of focus;&lt;/li&gt;
&lt;li&gt;a confession after the fact proves the agent knew the rule. Knowing a rule doesn't enforce it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A database you can't afford to lose needs a control the model can't talk its way past: one that runs outside the model, before the call and that the agent cannot edit.&lt;br&gt;
Most write-ups after PocketOS give good hygiene advice: don't keep production tokens where an agent can read them,scope tokens, keep backups off the volume they protect Do all of that Below are three layers that still hold when the hygiene fails.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Layer 1: the agent may call only approved tools, with approved arguments&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The first layer decides what an agent may call, and with what. You can build a basic version yourself: give the agent a wrapper tool instead of a raw database connection, and have the wrapper refuse or queue anything destructive. In Provenza, an agent reaches tools through an MCP gateway. It sees only the tools an administrator approved, and every call is checked against a policy before it runs.&lt;br&gt;
A policy is plain YAML. Here is one that lets an agent use a database tool but stops anything destructive until a person approves it:&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;version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&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;"db.*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"kb.*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="na"&gt;deny&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"shell.*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="na"&gt;require_approval&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"db.migrate"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="na"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# any SQL with DROP, DELETE or TRUNCATE waits for a person
&lt;/span&gt;    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;tool:&lt;/span&gt; &lt;span class="s2"&gt;"db.query"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;arg:&lt;/span&gt; &lt;span class="s"&gt;sql&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;op:&lt;/span&gt; &lt;span class="s"&gt;not_matches&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'(?i)\b(drop|delete|truncate)\b'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;effect: require_approval}&lt;/span&gt;
    &lt;span class="c1"&gt;# file tools stay inside the sandbox ("/sandbox/../etc" counts as "/etc")
&lt;/span&gt;    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;tool:&lt;/span&gt; &lt;span class="s2"&gt;"file.*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;arg:&lt;/span&gt; &lt;span class="s"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;op:&lt;/span&gt; &lt;span class="s"&gt;starts_with&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;value:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"/sandbox/"&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;When the agent tries &lt;code&gt;DROP TABLE customers&lt;/code&gt;, the call does not run. It waits for a person, and the approval is signed with that person's passkey. A refusal names the rule that refused it, for example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Blocked by policy 'organization policy': argument 'amount' must satisfy max 100
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few details matter here, because a gate that can be bypassed is worse than none:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rules fail closed. If a rule names an argument and the call leaves it out, the rule counts as broken. Otherwise the agent could skip the check by leaving out the field.&lt;/li&gt;
&lt;li&gt;Every level applies. Organization, team and agent policies all apply A team cannot loosen what the organization set.&lt;/li&gt;
&lt;li&gt;Probing gets the agent quarantined. An agent that keeps hitting boundaries (three refusals in ten minutes by default) is quarantined automatically, without waiting for someone to read an alert.
One honest note: a keyword regex is a tripwire, not a SQL parser. For a tool that can destroy data, the stronger setting is to put the whole tool under &lt;code&gt;require_approval&lt;/code&gt; and accept a click per call&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Layer 2: a stolen token is useless if the network is closed&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;PocketOS was not lost through an approved tool. The agent found a token and called the infrastructure API directly. A tool gateway never sees that call. Every control in Layer 1 is cooperative: it works only when the agent goes through it.&lt;br&gt;
So the second layer is the network. The agent's host gets one way out, and everything else is refused by the kernel. Without any special tool, that is a firewall allow list (nftables, a security group) plus a forward proxy that holds the real credentials. Provenza does this in two ways.&lt;br&gt;
An egress proxy that holds the credentials. The agent calls &lt;code&gt;http://proxy:8443/&amp;lt;route&amp;gt;/...&lt;/code&gt;, not the API itself. The proxy checks the call with Provenza, adds the credential and records the result. The agent never holds the real token, so there is nothing for it to find in a file. Its own &lt;code&gt;Authorization&lt;/code&gt; header is not passed on. Routes limit methods and path prefixes, and you can require a person's approval for a whole route:&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;tools&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;require_approval&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"proxy.railway"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;   &lt;span class="c1"&gt;# every infrastructure call waits for a person
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Railway's API is GraphQL on one endpoint, so a path rule can't tell a read from a delete. That's why the example gates the whole route.)&lt;br&gt;
An eBPF sensor that learns, then enforces. Since the latest release, every new agent gets its own network workload in observe mode. On a Linux host with the sensor, you attach the agent to its systemd service or container with one click. You don't change anything on the host or restart the agent. The agent's page then lists every host it connected to, by name. When the list looks right, "Allow the checked and enforce" turns it into an allow list. From then on, the kernel refuses every other connection.&lt;br&gt;
Observe first, enforce when a person decides. A new agent is never blocked by a list nobody wrote, and an agent you have reviewed cannot reach an API it was never meant to touch, even with a valid token in hand.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Layer 3: an audit log you can check without trusting the server&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After an incident, two questions matter: what happened, and who allowed it? If the agent, or whoever runs the server, can edit the log, the answer is worth little.&lt;br&gt;
The general idea: write every agent action to storage the agent and the operator cannot rewrite, such as an S3 bucket with Object Lock, and keep a copy of the log's hash somewhere else. Provenza's audit log is append-only and hash-chained. It is sealed under checkpoints signed with Ed25519 and ML-DSA-65, and those checkpoints are published to Sigstore Rekor, a public transparency log. Any action comes with a receipt that a standalone tool checks offline, without the Provenza server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python3 provenza_audit.py receipt receipt-2.json --fingerprint SHA256:…
# VERIFIED  action 2 (…, denied) of agent 1: refused and witnessed by the Provenza mcp_gateway
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change one character of the file and it says &lt;code&gt;NOT VERIFIED&lt;/code&gt;.&lt;br&gt;
Proof of Authority goes one step further. For a single agent action, one file shows the whole chain behind it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the policy release in force, signed by administrators' passkeys;&lt;/li&gt;
&lt;li&gt;the task a person gave the agent, signed with that person's passkey;&lt;/li&gt;
&lt;li&gt;the human approval, if one let the call run;&lt;/li&gt;
&lt;li&gt;the agent's own signature on the request.
"The agent decided on its own" turns into a question you can answer with evidence.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What this does not solve&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Honest limits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A laptop agent is not network-contained. The sensor runs on Linux hosts. Cursor or Claude Code on a developer's Mac or Windows laptop is governed only for the calls it makes through Provenza (MCP tools, the LLM gateway). A token sitting on that laptop can still be used directly. For that case, the hygiene advice above is your main defense: no production credentials in places the agent can read.&lt;/li&gt;
&lt;li&gt;Gates add friction. &lt;code&gt;require_approval&lt;/code&gt; on destructive tools means a person clicks more often. That is the point, but tune it.
None of this replaces backups that live outside the thing they back up.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Try it&lt;/strong&gt;&lt;br&gt;
Provenza is open source (Apache-2.0) and self-hosted. The &lt;a href="https://github.com/kironovlaziz-del/provenza/blob/main/docs/quickstart.md" rel="noopener noreferrer"&gt;quickstart&lt;/a&gt; goes from install to a refused tool call and a receipt verified offline. The policy and network examples above come from its &lt;a href="https://github.com/kironovlaziz-del/provenza/blob/main/docs/policies.md" rel="noopener noreferrer"&gt;policies&lt;/a&gt; and &lt;a href="https://github.com/kironovlaziz-del/provenza/blob/main/docs/egress-lockdown.md" rel="noopener noreferrer"&gt;egress lockdown docs&lt;/a&gt; .&lt;/p&gt;

&lt;p&gt;How do you keep agents away from production today: scoped tokens, separate accounts, approvals, or something else? I'd like to hear what works in practice.&lt;/p&gt;




&lt;p&gt;Sources: &lt;a href="https://www.tomshardware.com/tech-industry/artificial-intelligence/claude-powered-ai-coding-agent-deletes-entire-company-database-in-9-seconds-backups-zapped-after-cursor-tool-powered-by-anthropics-claude-goes-rogue" rel="noopener noreferrer"&gt;Tom's Hardware&lt;/a&gt;,&lt;br&gt;
&lt;a href="https://www.computing.co.uk/news/2026/ai/ai-coding-agent-goes-rogue" rel="noopener noreferrer"&gt;Computing&lt;/a&gt;, &lt;a href="https://www.fastcompany.com/91533544" rel="noopener noreferrer"&gt;Fast Company&lt;/a&gt;,&lt;a href="https://www.theregister.com/2025/07/21/replit_saastr_vibe_coding_incident" rel="noopener noreferrer"&gt;The Register on Replit&lt;/a&gt;,&lt;a href="https://games.slashdot.org/story/444622" rel="noopener noreferrer"&gt;Slashdot / The Register summary&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>devops</category>
      <category>mcp</category>
    </item>
    <item>
      <title>Hybrid signatures have a trap: one valid half is not enough</title>
      <dc:creator>Laziz Kironov</dc:creator>
      <pubDate>Tue, 10 Nov 2026 00:10:14 +0000</pubDate>
      <link>https://dev.to/lazizkironov/hybrid-signatures-have-a-trap-one-valid-half-is-not-enough-2ndb</link>
      <guid>https://dev.to/lazizkironov/hybrid-signatures-have-a-trap-one-valid-half-is-not-enough-2ndb</guid>
      <description>&lt;h2&gt;
  
  
  Strip one signer from a COSE_Sign envelope and the other still verifies. How a post-quantum hybrid (Ed25519 + ML-DSA-65) quietly becomes a single signature, and the two checks that stop it.
&lt;/h2&gt;

&lt;p&gt;Post-quantum migration usually gets sold as "sign with both an old and a new algorithm, so you are safe if either one breaks." That sentence hides a requirement: the verifier has to demand both. Otherwise the hybrid is only as strong as its weakest half, and an attacker gets to pick which half that is.&lt;br&gt;
I ran into this while building Provenza, an open-source, self-hosted governance server for AI agents. It signs its audit checkpoints and its Agent Manifests with Ed25519 and ML-DSA-65 together. This is what I learned about verifying them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The trap&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A COSE_Sign envelope carries a payload and a list of signatures. Each signature covers the payload, not the other signatures. So nothing in the envelope says "there were two signers." Remove the ML-DSA signature and what is left is a perfectly valid envelope with one valid Ed25519 signature.&lt;br&gt;
Here is a verifier that most of us would write on a first pass:&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="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;naive_verify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# "every signature that is present is valid"&lt;/span&gt;
    &lt;span class="n"&gt;sigs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"signatures"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kt"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sigs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="nb"&gt;all&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;valid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"alg"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"sig"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"payload"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;sigs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It does not check what is missing. The fix is to state what must be present:&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="no"&gt;REQUIRED&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"ed25519"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"ml-dsa-65"&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;strict_verify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"alg"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"signatures"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;valid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"alg"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"sig"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"payload"&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="k"&gt;return&lt;/span&gt; &lt;span class="no"&gt;REQUIRED&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;ok&lt;/span&gt;  &lt;span class="c1"&gt;# BOTH families must verify, not "something"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Running both against an envelope as issued and the same envelope with the ML-DSA signer removed (real keys from Python's cryptography package):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;as issued:      naive = True  strict = True
ML-DSA removed: naive = True  strict = False
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The naive verifier accepts the downgraded envelope. If Ed25519 is later broken by a quantum computer, the attacker forges Ed25519, drops the ML-DSA part, and the naive verifier accepts the forgery. The whole point of the hybrid is gone, and no test that only checks "a good envelope passes" will notice.&lt;br&gt;
The reverse also holds: keeping only the ML-DSA signer must fail too. Test both directions. In my verifier the tests are parametrized over "only Ed25519 left" and "only ML-DSA left."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second line of defense: the signed statement names its own algorithm&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A strict verifier protects the people who run it. It does not help a verifier that is someone else's code. So the signed statement itself should say how it was signed.&lt;br&gt;
In Provenza, an audit checkpoint's signed statement binds the algorithm (ed25519+ml-dsa-65) and a key fingerprint, SHA-256(ed25519_public_key || ml_dsa_public_key). If an attacker strips the ML-DSA part, they cannot also change the statement, because the statement is under the signature. A verifier then sees a statement that claims two algorithms, an envelope that carries one, and refuses on the contradiction. The fingerprint also ties the signature to one specific pair of keys, so a swapped key fails too.&lt;br&gt;
Two checks, two different failure modes: the verifier requires both families, and the signed data says both were used.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where this is used: Agent Manifests&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Provenza issues an Agent Manifest (AgenTrust specification v0.2) for every agent it governs: a signed record binding the agent's approved MCP tool catalog and the root of the organization's audit log. It is a hybrid COSE_Sign with an Ed25519 signer and an ML-DSA-65 signer.&lt;br&gt;
The issuer is now listed in AgenTrust's integrations repository, together with a verifier script that checks a manifest offline and refuses an envelope with either signer missing, naming the absent family. You can reproduce it in a minute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install agent-manifest==0.15.0 pytest
python src/verify_provenza_manifest.py tests/agent-1-manifest.cose --keys tests/trusted_keys.json
python -m pytest tests -q
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The manifest is deliberately honest about its limits. It is composition-only: Provenza does not observe the system prompt, the model identity or the RAG corpus, so those are declared as unbound, and the SDK's verdict is INCOMPLETE, never VALID. The keys are software keys held by the Provenza server, not hardware-attested. A manifest that claimed more than it could prove would be the same mistake as the naive verifier, one level up.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A hybrid signature is a conjunction. Write the verifier as "required set is a subset of verified set," not "all present signatures verify."&lt;/li&gt;
&lt;li&gt;Test the downgrade. Remove each signer in turn and assert the envelope is refused.&lt;/li&gt;
&lt;li&gt;Make the signed statement name its algorithms and keys, so a downgrade is a visible contradiction, not a silent success.&lt;/li&gt;
&lt;li&gt;Say what you do not prove. An INCOMPLETE verdict that is honest beats a VALID that is not.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The code is Apache-2.0 at github.com/kironovlaziz-del/provenza, with a live read-only demo at stickstock.lol. If you verify hybrid signatures somewhere and have never tried removing one signer, now is a good time.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cryptography</category>
      <category>opensource</category>
      <category>ai</category>
    </item>
    <item>
      <title>AI Agent Governance: Vulnerabilities and Architectural Approaches</title>
      <dc:creator>Laziz Kironov</dc:creator>
      <pubDate>Wed, 21 Oct 2026 04:28:17 +0000</pubDate>
      <link>https://dev.to/lazizkironov/ai-agent-governance-vulnerabilities-and-architectural-approaches-5bi4</link>
      <guid>https://dev.to/lazizkironov/ai-agent-governance-vulnerabilities-and-architectural-approaches-5bi4</guid>
      <description>&lt;p&gt;&lt;strong&gt;When we talk about governing AI agents, the discussion often focuses on observability. But observability ≠ accountability. Here are several vulnerabilities worth considering when designing a governance layer:&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1️⃣ Delegation forgery
&lt;/h2&gt;

&lt;p&gt;Without cryptographic proof, it's impossible to verify that an agent acted on behalf of a specific user. Delegation signatures must be verifiable offline.&lt;/p&gt;

&lt;h2&gt;
  
  
  2️⃣ Audit logs you can't trust
&lt;/h2&gt;

&lt;p&gt;Logs that can be altered or deleted are not evidence. You need append-only journals with hash chaining and checkpoints (e.g., Merkle + RFC 3161).&lt;/p&gt;

&lt;h2&gt;
  
  
  3️⃣ Fail-open behavior
&lt;/h2&gt;

&lt;p&gt;If the governance server is unavailable, an agent may continue executing tools "by inertia." Fail-closed should be an explicit, configurable principle.&lt;/p&gt;

&lt;h2&gt;
  
  
  4️⃣ Shadow agents
&lt;/h2&gt;

&lt;p&gt;Unaccounted AI tools on endpoints create blind spots. Inventory and behavior-based discovery help close this gap.&lt;/p&gt;

&lt;h2&gt;
  
  
  5️⃣ No verifiable chain of actions
&lt;/h2&gt;

&lt;p&gt;Even with logs, it's important that every action can be independently verified without trusting the system itself.&lt;br&gt;
In the open-source project Provenza, these approaches are implemented at the architectural level:&lt;/p&gt;

&lt;p&gt;· delegation based on Ed25519 and a hybrid post-quantum scheme (ML-DSA-65);&lt;br&gt;
· append-only audit with hash chaining, Merkle checkpoints, and timestamps;&lt;br&gt;
· fail-closed SDK (explicit fail_open=True to disable);&lt;br&gt;
· egress proxy and eBPF sensor for network isolation;&lt;br&gt;
· discovery of shadow agents on endpoints.&lt;br&gt;
The project is young but architecturally consistent. The key shift is from "observability" to verifiable accountability. That's exactly what the EU AI Act demands.&lt;br&gt;
I'd be curious to hear what approaches to agent governance you're using.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/kironovlaziz-del" rel="noopener noreferrer"&gt;
        kironovlaziz-del
      &lt;/a&gt; / &lt;a href="https://github.com/kironovlaziz-del/provenza" rel="noopener noreferrer"&gt;
        provenza
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Self-hosted governance for AI agents: MCP &amp;amp; LLM gateway, signed policy enforced by an egress proxy and an eBPF sensor, agent-held Ed25519 + ML-DSA-65 keys and an offline-verifiable audit log. Even the server can't forge what an agent did.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;p&gt;
  &lt;a rel="noopener noreferrer" href="https://github.com/kironovlaziz-del/provenza/provenza-logo-full.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fkironovlaziz-del%2Fprovenza%2FHEAD%2Fprovenza-logo-full.png" width="300" alt="Provenza"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
  &lt;b&gt;Provenance for every AI action.&lt;/b&gt;&lt;br&gt;
  Find the AI in your company, decide what each agent may do,&lt;br&gt;
  and prove what it did - to anyone, offline
&lt;/p&gt;

&lt;p&gt;
  &lt;a href="https://opensource.org/licenses/Apache-2.0" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/886bb00dbf781bf4a65d2444847455b013522eb2f40f6e9bf18b11b901620ae5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4170616368655f322e302d626c75652e737667" alt="License"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/kironovlaziz-del/provenza/actions/workflows/ci.yml" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/kironovlaziz-del/provenza/actions/workflows/ci.yml/badge.svg" alt="CI"&gt;&lt;/a&gt;
  &lt;a href="https://www.bestpractices.dev/projects/16963" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/e6c6d34d5ed863c95eb0a7f155114d62b967277ceb055ea3d15a9148bf8d2ce0/68747470733a2f2f7777772e626573747072616374696365732e6465762f70726f6a656374732f31363936332f6261646765" alt="OpenSSF Best Practices"&gt;&lt;/a&gt;
  &lt;a href="https://scorecard.dev/viewer/?uri=github.com/kironovlaziz-del/provenza" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/8e6649612aef273a2644e27f44a59b4cd1e534fad8482c1dbcdc8f96d3fb0528/68747470733a2f2f6170692e73636f7265636172642e6465762f70726f6a656374732f6769746875622e636f6d2f6b69726f6e6f766c617a697a2d64656c2f70726f76656e7a612f6261646765" alt="OpenSSF Scorecard"&gt;&lt;/a&gt;
  &lt;a href="https://pypi.org/project/provenza/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/1e7752b6d07717a57ddb269252aac32e834dc0df402bc035b555dfd8905a9fb1/68747470733a2f2f696d672e736869656c64732e696f2f707970692f762f70726f76656e7a613f6c6162656c3d5079504926636f6c6f723d626c7565" alt="PyPI"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
  &lt;a href="https://stickstock.lol" rel="nofollow noopener noreferrer"&gt;&lt;b&gt;Live demo&lt;/b&gt;&lt;/a&gt; &amp;nbsp;·&amp;nbsp;
  &lt;a href="https://github.com/kironovlaziz-del/provenza/docs/quickstart.md" rel="noopener noreferrer"&gt;&lt;b&gt;Quickstart&lt;/b&gt;&lt;/a&gt; &amp;nbsp;·&amp;nbsp;
  &lt;a href="https://youtu.be/me8UsPf4Ndw" rel="nofollow noopener noreferrer"&gt;&lt;b&gt;4-minute video&lt;/b&gt;&lt;/a&gt; &amp;nbsp;·&amp;nbsp;
  &lt;a href="https://github.com/kironovlaziz-del/provenza/docs/README.md" rel="noopener noreferrer"&gt;&lt;b&gt;Docs&lt;/b&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Provenza&lt;/strong&gt; is an open-source, self-hosted AI governance platform for AI agents
and shadow AI. No external SaaS: your data stays on your server.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;What it does&lt;/h2&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Finds shadow AI.&lt;/strong&gt; An endpoint agent (Linux, Windows, macOS), a browser
extension and your DNS or proxy logs show which AI tools people and machines
use. &lt;a href="https://github.com/kironovlaziz-del/provenza/docs/shadow-ai.md" rel="noopener noreferrer"&gt;Shadow AI&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Controls AI agents.&lt;/strong&gt; Every tool call goes through an MCP gateway or a
one-line wrapper (LangChain, LangGraph, OpenAI Agents SDK, CrewAI, AutoGen) and
is checked against your policy before it runs. Risky calls wait for a person
a kill switch stops one agent or all of them
&lt;a href="https://github.com/kironovlaziz-del/provenza/docs/policies.md" rel="noopener noreferrer"&gt;Policies&lt;/a&gt; · &lt;a href="https://github.com/kironovlaziz-del/provenza/docs/integrations.md" rel="noopener noreferrer"&gt;Frameworks&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Proves what happened.&lt;/strong&gt; A signed, tamper-evident audit log, published to
Sigstore…&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/kironovlaziz-del/provenza" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


</description>
      <category>opensource</category>
      <category>agents</category>
      <category>architecture</category>
      <category>ai</category>
    </item>
    <item>
      <title>The five blind spots in AI governance nobody instruments for</title>
      <dc:creator>Laziz Kironov</dc:creator>
      <pubDate>Thu, 24 Sep 2026 07:15:22 +0000</pubDate>
      <link>https://dev.to/lazizkironov/the-five-blind-spots-in-ai-governance-nobody-instruments-for-1ek4</link>
      <guid>https://dev.to/lazizkironov/the-five-blind-spots-in-ai-governance-nobody-instruments-for-1ek4</guid>
      <description>&lt;h2&gt;
  
  
  Most AI governance stops at the dashboard. But the gaps that actually bite in production are the ones between the layers — shadow AI, agent delegation, prompt-level leaks, expiry, and unprovable audit trails. A field guide
&lt;/h2&gt;

&lt;p&gt;Most "AI governance" I've seen — and I've been building in this space — converges on the same shape: a dashboard, a log, a policy page. That's necessary. It's also where the thinking usually stops, and the gaps that actually cause incidents live between those pieces, not inside them.&lt;br&gt;
This is a field guide to five blind spots I keep running into. None of them are exotic. They're the boring, structural gaps that don't show up until an agent does something nobody authorized and you're trying to reconstruct why. For each one I'll describe the problem, why the common approach misses it, and the shape of a fix. I'll mention what I've built where it's relevant, but the point here is the problem, not a product — most of these you can address with tools you already have.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Blind spot 1: Shadow AI is a network problem, not a policy problem&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every company has a policy about AI use. Almost none can tell you what AI is actually running. Someone spun up a local Ollama instance. A team wired an unsanctioned API into a cron job. A browser extension is quietly shipping prompts somewhere.&lt;br&gt;
Why the common approach misses it: policies govern sanctioned usage — the tools you already know about. Shadow AI is by definition the stuff you don't. You can't write a policy for a model you can't see.&lt;br&gt;
The shape of a fix: treat discovery as a detection problem, the way you'd treat rogue devices on a network. Endpoint signals (processes like ollama/vllm, listening ports, model-weight files on disk) plus passive network discovery surface what's actually running, independent of anyone declaring it. The key design rule: discovery must be read-only. Finding a service is not the same as connecting to it — nothing should auto-attach to a discovered endpoint without an explicit human decision, or your discovery tool becomes its own attack surface.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Blind spot 2: Prompt-level leaks happen before your logs ever see them&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You log the request. Good. But by the time it's in your log, the secret has already left — the API key, the customer PII, the internal hostname — pasted into a prompt and shipped to a third-party provider.&lt;br&gt;
Why the common approach misses it: observability is downstream. It records what happened; it doesn't intervene. Logging a leak is not preventing a leak.&lt;br&gt;
The shape of a fix: put a masking chokepoint before the prompt leaves. Scrub secrets (cards, keys, IDs, PII) at the gateway, so the provider never receives raw sensitive input in the first place. A subtle upside: gateway-level masking protects you from the provider itself, not just from your own traces. App-level redaction only protects your logs; the prompt still leaves your building intact. (This one bites hardest with LLM providers — the data's gone the moment the request fires.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Blind spot 3: Agent delegation has no subset guarantee&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Single agents were easy to reason about. Now an orchestrator calls a researcher, which calls a writer, which calls a tool. Each hop hands some authority to the next — and in most setups, nothing structurally prevents a sub-agent from using a capability it was never granted.&lt;/p&gt;

&lt;p&gt;Why the common approach misses it: prompt instructions ("you may only read, never write") get reasoned around. A capability boundary enforced in text is a suggestion. Under enough pressure — a retry, a clever completion, a tool that reframes "delete" as "cleanup" — it leaks.&lt;br&gt;
The shape of a fix: enforce capability subsetting at every hop, structurally. A sub-agent can never hold more than the agent that spawned it. If the parent can't deploy, nothing it spawns can deploy, regardless of how the chain grows. This turns a prompt rule into an invariant. And log every rejected escalation separately with the exact over-requested capability — the rejections are the signal, because the attacker or bug doesn't know which check failed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Blind spot 4: Delegations don't expire, so revocation is a fantasy&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Say you do scope a delegation correctly. A parent hands a sub-agent a credential for a three-minute task. Then the sub-agent spawns an async job, or retries against a queue, and the work outlives the authorization. Now that credential is either expired mid-flight, or scoped so wide in duration that "revoking" it means manually hunting it down.&lt;/p&gt;

&lt;p&gt;Why the common approach misses it: capability subsetting handles what, not for how long. Time is the dimension everyone forgets, and it behaves differently — capabilities only ever shrink down a chain, but time, once you introduce async work, doesn't stay neat.&lt;br&gt;
The shape of a fix: monotonic TTL — a delegation can't outlive the one that authorized it, the temporal twin of the subset check. Enforce it at delegation time (a longer TTL is a violation) and again at action time (an action under an expired delegation is denied). The async case is genuinely hard and I don't think it's fully solved — the cleanest direction I've found is treating a queued job as a new delegation request at execution time rather than reusing the original grant, but that just relocates the question to "who signs the re-delegation."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Blind spot 5: A log you control is not proof&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is the one that reframes all the others. When an auditor — or a regulator under something like the EU AI Act — asks "who authorized this agent to do that?", you point at your audit trail. But your audit trail is a claim. If your server wrote the log, your server could have written anything. Monitoring tells you what a system says happened. It doesn't let anyone verify it independently.&lt;br&gt;
Why the common approach misses it: the entire industry equates "observable" with "accountable." They're not the same. A dashboard is evidence to you. It is not evidence to someone who doesn't trust you.&lt;br&gt;
The shape of a fix: make the authorization itself cryptographically verifiable. Sign each delegation (Ed25519 is a good fit — small keys, fast verification, deterministic). Store the exact signed payload so nothing has to be reconstructed. Then anyone can verify the signature against the signer's public key in their own browser, without trusting the server — the server holds only the public key, so it can verify but never forge. "Trust me, here's my log" becomes "here's the math, check it yourself." Put the delegation's expiry inside the signed payload too, so a lifetime can't be extended after the fact.&lt;/p&gt;

&lt;h2&gt;
  
  
  The through-line
&lt;/h2&gt;

&lt;p&gt;Notice that four of the five aren't about any single system being wrong. They're about the seams — between sanctioned and shadow, between logging and intervening, between one agent and the next, between authorization and time. Governance tools tend to instrument the boxes and ignore the lines connecting them, which is exactly where autonomy leaks.&lt;br&gt;
I've been building an open-source, self-hosted platform (Provenza) that tries to close these seams — the name is from provenance, because the thread running through all five is making the origin of an AI action provable rather than merely observed. It's early and I'm figuring plenty out, especially the async-expiry case above. But you don't need my project to take the ideas: discovery as detection, masking before the prompt leaves, subset-at-every-hop, monotonic TTL, and signed authorizations are all things you can build into what you already run.&lt;br&gt;
If you're working on agent infrastructure, I'd genuinely like to hear which of these you've hit — and how you're handling the ones I clearly haven't fully solved. The comments on my last posts&lt;br&gt;
thought me more than the posts ded.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Thanks to &lt;a href="https://dev.to/pushpendraagrawal"&gt;Pushpendra Agrawal&lt;/a&gt; and &lt;a href="https://dev.to/reidmarlow"&gt;Reid Marlow&lt;/a&gt; — their comments on my earlier posts directly shaped blind spots #3 and #4 here. The rejected-escalation logging and the monotonic-TTL framing both came out of those conversations. This is the kind of feedback that turns a post into a feature.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/kironovlaziz-del/provenza" rel="noopener noreferrer"&gt;https://github.com/kironovlaziz-del/provenza&lt;/a&gt; &lt;br&gt;
git clone: &lt;a href="https://github.com/kironovlaziz-del/provenza.git" rel="noopener noreferrer"&gt;https://github.com/kironovlaziz-del/provenza.git&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>governance</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Why 'monitoring' isn't enough for AI agents — and how I made delegation cryptographically verifiable</title>
      <dc:creator>Laziz Kironov</dc:creator>
      <pubDate>Tue, 22 Sep 2026 01:24:51 +0000</pubDate>
      <link>https://dev.to/lazizkironov/why-monitoring-isnt-enough-for-ai-agents-and-how-i-made-delegation-cryptographically-verifiable-5bad</link>
      <guid>https://dev.to/lazizkironov/why-monitoring-isnt-enough-for-ai-agents-and-how-i-made-delegation-cryptographically-verifiable-5bad</guid>
      <description>&lt;h2&gt;
  
  
  The problem nobody talks about with AI agents
&lt;/h2&gt;

&lt;p&gt;We're rushing to give AI agents autonomy. An orchestrator agent calls a research agent, which calls a writer agent, which calls a tool. Each hop, one agent hands some of its authority to another.&lt;br&gt;
Every "AI governance" tool I looked at solves this the same way: it logs everything. You get a dashboard, a timeline, an audit trail. Which sounds great — until you ask one uncomfortable question:&lt;br&gt;
When an auditor asks "who authorized this agent to spend money / delete data / call that API?", is a log you control actually proof?&lt;br&gt;
It isn't. A log is a claim. If the server writes the log, the server can write anything. Monitoring tells you what a system says happened. It doesn't let anyone prove it independently.&lt;br&gt;
As agents get more autonomous — and as regulation like the EU AI Act starts demanding "verifiable accountability" — I think this gap becomes a real problem. So I tried to close it.&lt;/p&gt;
&lt;h2&gt;
  
  
  The idea: sign the delegation, not just log it
&lt;/h2&gt;

&lt;p&gt;Instead of recording that Agent A delegated to Agent B, what if the delegation itself were cryptographically signed by A? Then:&lt;br&gt;
Anyone can verify the signature against A's public key&lt;br&gt;
The server holds only public keys — it can verify a delegation, but it can never forge one&lt;br&gt;
An auditor can check the proof on their own machine, without trusting my server at all&lt;br&gt;
That last point is the whole game. "Trust me, here's my log" becomes "here's the math, check it yourself."&lt;br&gt;
I built this into an open-source platform (AI Control Tower), but the technique is general. Let me show the core of it. &lt;/p&gt;
&lt;h2&gt;
  
  
  Why Ed25519
&lt;/h2&gt;

&lt;p&gt;For signing delegations you want:&lt;br&gt;
Small keys and signatures (32-byte public keys, 64-byte signatures) — these get stored and passed around a lot&lt;br&gt;
Fast verification — you may verify a whole chain of hops&lt;br&gt;
Deterministic signatures — no per-signature randomness to get wrong&lt;br&gt;
Available everywhere — including natively in the browser via WebCrypto&lt;br&gt;
Ed25519 checks every box. It's modern, boring in the good way, and — crucially for the "verify in your browser" goal — supported by the WebCrypto API.&lt;/p&gt;
&lt;h2&gt;
  
  
  The tricky part: canonical bytes
&lt;/h2&gt;

&lt;p&gt;Here's the bug that will silently break everything if you're not careful.&lt;br&gt;
To verify a signature, the verifier must hash exactly the same bytes the signer signed. If your backend signs a JSON object and your frontend re-serializes it even slightly differently — different key order, extra whitespace, different number formatting — the bytes differ, and every verification fails, even though nothing was tampered with.&lt;br&gt;
The fix is a canonical serialization both sides agree on. In Python (signing side):&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="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;canonical_bytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;dict&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;bytes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# sort_keys + no whitespace = deterministic output&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;sort_keys&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;separators&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;","&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&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;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"utf-8"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the matching thing in JavaScript (verifying side) has to produce byte-for-byte the same output. JSON.stringify with manually sorted keys and no spaces gets you there for simple payloads — but test it against real data, because nested objects and unicode will bite you.&lt;br&gt;
Lesson learned: write a test that signs on the backend and verifies with the exact frontend serializer, using awkward payloads (unicode, nested objects, numbers). That one test caught more bugs than anything else.&lt;/p&gt;
&lt;h2&gt;
  
  
  Signing (backend, Python)
&lt;/h2&gt;

&lt;p&gt;Using the cryptography library (no exotic deps):&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="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;cryptography&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hazmat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;primitives&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;asymmetric&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ed25519&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="nc"&gt;Ed25519PrivateKey&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Ed25519PublicKey&lt;/span&gt;&lt;span class="p"&gt;,&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;generate_keypair&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="n"&gt;private_key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Ed25519PrivateKey&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;generate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;public_key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;private_key&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;public_key&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;private_key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;public_key&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;sign_payload&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;private_key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Ed25519PrivateKey&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;dict&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;bytes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;private_key&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sign&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;canonical_bytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payload&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;When Agent A delegates, you build a payload describing the delegation (who, to whom, what capabilities, when), sign it with A's private key, and store the payload + signature + A's public key.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verifying — in the browser, offline
&lt;/h2&gt;

&lt;p&gt;This is the part that makes it verifiable rather than trust-me. Using WebCrypto in the browser:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;verifyDelegation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;publicKeyRaw&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;signature&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;canonicalPayloadBytes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="c1"&gt;// import the raw 32-byte Ed25519 public key&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;crypto&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;subtle&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;importKey&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"raw"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;publicKeyRaw&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Ed25519"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"verify"&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;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;crypto&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;subtle&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;verify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Ed25519"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;signature&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;canonicalPayloadBytes&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;The browser fetches the delegation's payload, signature, and the signer's public key, rebuilds the canonical bytes, and verifies — locally. The server never gets a chance to lie, because the proof is checked on the client. If the math checks out, you see a green "verified" badge; if anything was altered by a single byte, it fails.&lt;br&gt;
(Note: browser Ed25519 support via WebCrypto is now widespread, but if you need to support older browsers, keep a graceful fallback that verifies server-side and clearly labels it as such — don't pretend a server-side check is the same guarantee.)&lt;/p&gt;

&lt;h2&gt;
  
  
  The other half: capabilities can only shrink
&lt;/h2&gt;

&lt;p&gt;Verifiable signatures answer "did A really authorize this?". But there's a second rule that matters for agent safety:&lt;br&gt;
An agent can never delegate more authority than it holds.&lt;br&gt;
If A can call read and search, it must not be able to hand B write or delete. So every delegation runs a subset check: the delegated capabilities must be a subset of the delegator's own effective capabilities. If B tries to escalate, the delegation is rejected and an incident is raised. Combine that with the signatures, and you get a chain where every hop is both authorized (subset) and provable (signed).&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters more every month
&lt;/h2&gt;

&lt;p&gt;Single-agent systems were easy to reason about. Multi-agent systems — where agents spawn and delegate to other agents — are not. As they spread into companies, "show me the log" stops being good enough. People will start asking "prove it." Verifiable delegation is one way to have an answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it / steal the idea
&lt;/h2&gt;

&lt;p&gt;The full implementation — signing service, capability validator, a live delegation graph where you click any edge and verify the signature in your browser — is open-source (Apache-2.0), self-hosted, and runs with one Docker command:&lt;/p&gt;

&lt;p&gt;git clone &lt;a href="https://github.com/kironovlaziz-del/provenza.git" rel="noopener noreferrer"&gt;https://github.com/kironovlaziz-del/provenza.git&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/kironovlaziz-del/provenza" rel="noopener noreferrer"&gt;https://github.com/kironovlaziz-del/provenza&lt;/a&gt;&lt;br&gt;
I'm a solo developer and this is an early, honest MVP — I'd genuinely love feedback, especially on the canonicalization approach and the capability model. If you're working on agent infrastructure, I'd like to hear how you're thinking about the accountability problem.&lt;br&gt;
Have you hit the "monitoring isn't proof" wall with agents yet? How are you handling it? Let me know in the comments.&lt;/p&gt;

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