Mandate
Mandate: signed permissions for AI agents
Created on 12th October 2026
•
Mandate
Mandate: signed permissions for AI agents
The problem Mandate solves
AI agents can now spend money, use apps and give tasks to other agents. Today, the only thing stopping an agent from going too far is usually one sentence in its instructions, like "never spend more than $300, only pay AWS."
That isn't real protection. A trick message, a bug or a confused agent can get past it easily. And when something goes wrong, nobody can clearly answer: Was this agent allowed to do this? Who allowed it? Was that permission cancelled?
Mandate fixes this by giving agents real, signed permission slips.
What you can do with Mandate:
- Set limits an agent can't talk its way past. Give an agent "up to $1000, only to AWS." Before it pays, it has to ask Mandate. If someone tricks it into sending $900 to a stranger, Mandate says NO and the money never moves.
- Let agents share work safely. An agent can pass some of its permission to a helper agent, but only a smaller part. A helper can never get more power than the agent that gave it permission.
- Stop everything with one click. Cancel an agent's permission, and every helper that got permission through it stops at the same time.
- Get clear answers. Every check returns YES or NO with the reason, for example "amount too high" or "this recipient isn't allowed."
- Check the record without trusting us. Every permission and cancellation is saved on Arkiv by the wallet of the person who gave it. Nobody can delete a cancellation, not even us, and anyone can check the record with no key and no sign-up.
Why it's safer than how agents work today:
| Today | With Mandate |
|---|---|
| Limits sit in a prompt or a database someone can edit | Limits are signed by the person who gave them and checked every time |
| A cancellation can be quietly deleted or faked | A cancellation is locked forever and tied to the wallet of the person who made it |
| You have to trust the company running the agent | Anyone can check the public record on Arkiv themselves |
Easy to use: connect from any language over the web API, or use the Rust library, the command-line tool or the Docker image. It's free and open source (MIT).
Challenges I ran into
1. Big numbers were quietly breaking my signed data.
Each mandate has a very long number in it (like 1791852453273973432). JavaScript can't hold numbers that big exactly, so when the Arkiv SDK read the data, it rounded the number a little. That small change was enough to break the signature, and nothing showed an error. It took me a while to find out why valid mandates were failing.
How I fixed it: I stopped letting the code read and rewrite the data. Now it saves the exact text it receives and sends back the exact text it stored. I added a test so this can't happen again.
2. "Read-only" didn't mean "can't be deleted."
If someone can delete a cancellation, the cancelled agent comes back to life. That's a big problem. I marked cancellations as read-only on Arkiv, but then I found out the owner could still delete them.
How I fixed it: when a cancellation is saved, I hand its ownership to a "burn" address that nobody controls, in the same step. I tested it on Tiramisu: even the person who made the cancellation can't delete it anymore.
3. Anyone could fake a cancellation.
My first search for cancellations just looked for a matching mandate ID. That meant a stranger could publish a fake cancellation that looked like it came from Alice.
How I fixed it: I only accept records whose on-chain creator ($creator) is the real person who gave the permission. Arkiv sets this itself, so it can't be faked. I check it in two places, and I wrote a test that plants a fake and makes sure Mandate ignores it.
4. The server froze for 10 minutes and I thought it was my bug.
After a full day of testing, every request suddenly hung. Other calls still worked, so I was sure my code was broken. When I finally checked the raw response, the network was telling me "too many requests, try again in 10 minutes," and the library was quietly waiting instead of telling me.
How I fixed it: now the API fails fast with a clear "rate limited" message, supports an Arkiv API key, and makes far fewer requests.
5. A slow internet connection made tests fail.
Longer tests kept failing with fetch failed because my connection was timing out.
How I fixed it: I gave connections more time and added automatic retries.
6. Finding a free place to host the API.
My Railway trial ran out in the middle of the hackathon, and Hugging Face needed a paid plan for Docker. I moved the docs and demo to GitHub Pages, put the API on Render, and added a ping to keep it awake. I also published a public Docker image so anyone can run Mandate themselves.
I wrote down every Arkiv issue I hit, with versions, steps to reproduce and ideas for fixes, in arkiv/friction.md.
Link to a twitter post explaining your project (or post with the video)
Tracks Applied (2)
Open Source
Security
Technologies used
Cheer Project
Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.
