r/artificial • u/docybo • Mar 16 '26
Discussion We’re building a deterministic authorization layer for AI agents before they touch tools, APIs, or money
Most discussions about AI agents focus on planning, memory, or tool use.
But many failures actually happen one step later: when the agent executes real actions.
Typical problems we've seen:
runaway API usage
repeated side effects from retries
recursive tool loops
unbounded concurrency
overspending on usage-based services
actions that are technically valid but operationally unacceptable
So we started building something we call OxDeAI.
The idea is simple: put a deterministic authorization boundary between the agent runtime and the external world.
Flow looks like this:
the agent proposes an action as a structured intent
a policy engine evaluates it against a deterministic state snapshot
if allowed, it emits a signed authorization
only then can the tool/API/payment/infra action execute
The goal is not to make the model smarter.
The goal is to make external side effects bounded before execution.
Design principles so far:
deterministic evaluation
fail-closed behavior
replay resistance
bounded budgets
bounded concurrency
auditable authorization decisions
Curious how others here approach this.
Do you rely more on:
sandboxing
monitoring
policy engines
something else?
If you're curious about the implementation, the repo is here:
2
u/DragonHatNerfGun Mar 17 '26
The authorization gap is one of the most underrated problems in agent design right now. Everyone is focused on reasoning quality and tool selection, but the failure modes you are describing happen after the agent already decided correctly. Runaway retries, recursive loops, unbounded spend are all execution problems, not planning problems. A hard boundary between the agent runtime and the external world is the right abstraction. Curious how you are handling the latency tradeoff when every action goes through the authorization layer, especially for time-sensitive tool chains.
2
u/[deleted] Mar 17 '26
this makes a lot of sense honestly most of the scary agent stuff happens at execution not planning. i lean toward combining strict policy layers with sandboxing sincee monitoring alone always feels too reactive once something already went wrong
2
u/Hexys Mar 17 '26
This is exactly the problem we're working on at nornr.com agents request a mandate before spending, policy engine decides approved/queued/blocked, every decision gets a signed receipt. No blockchain, works with existing payment rails. Would be interested to compare approaches. What does your policy layer look like under the hood?
2
u/ultrathink-art PhD Mar 17 '26
Policy engines handle the obvious cases well - spend limits, API call budgets, rate caps. The real challenge is encoding the implicit stuff: when a retry is safe vs when it triggers a cascade, which side effects are idempotent vs stateful. Most of those rules live in engineers' heads and no auth layer can enforce what hasn't been written down first.
2
u/Hexys Mar 17 '26
This is the exact problem we built NORNR to solve. Agents request a mandate before any spend action, policy evaluates it deterministically, and every decision gets a signed receipt. No credit cards handed to agents, no hardcoded keys. Works on existing payment rails. Free tier at nornr.com if you want to compare approaches.
1
u/Miss_Flower_White Mar 19 '26
the authorization problem is underrated. most ai agent discussions skip straight to capability and ignore the trust and permission layer entirely…
1
u/Immediate_Diver_6492 Mar 19 '26
Deterministic authorization is definitely the right direction for safety, but the real challenge will be maintaining agent flexibility without making the policy engine too rigid to be useful. If the 'operationally acceptable' parameters are too tight, you might end up breaking the very autonomy that makes agents valuable in the first place, so finding that balance in the policy engine is key. I’ve traditionally relied on heavy human-in-the-loop for any action involving payments, but an automated layer like this could significantly reduce the friction of manual approvals for standard API calls. It’s a solid engineering effort to treat AI actions as high-risk transactions that require a signed 'check' before execution, and I'm curious to see how you handle context-dependent policies where the validity of an action changes based on previous steps in the chain.
1
u/EbbCommon9300 Mar 30 '26
Hi you will be my competitor lol I made assury.ai and have a patent on the session state risk escalation. Space is picking up quickly.
2
u/[deleted] Mar 17 '26
[removed] — view removed comment