r/LLMDevs • u/Automatic_Method4081 • 2d ago
Resource I built an open-source security runtime that controls what AI agents can actually do
Over the past few weeks, I've been building Charavyuha at Quaspar, a Python security runtime that enforces permissions outside the model itself.
It currently supports:
- Cryptographically signed agent requests
- Tool-level authorization
- Mission contracts that restrict agents to specific workflows
- Credential brokering
- Confidential data tracking
- Human approval for sensitive actions
- Replay protection and authenticated crash recovery
Routine authorized operations don't require human approval.
After several rounds of AI-assisted development and independent AI-assisted security testing, I finally released the public beta. In the final local acceptance tests, it passed 120 crash-recovery trials and 120 concurrent initialization trials without unrecoverable journals or stale-state errors.
It's free, Apache 2.0 licensed, and doesn't require a account.
Try it:
pip install quaspar-shield-core==0.11.0b1
https://pypi.org/project/quaspar-shield-core/0.11.0b1/
It's still a single-host beta, and protected process isolation currently requires Linux.
I'm curious how other developers are handling agent security. Are you relying primarily on prompt guardrails, sandboxing, or explicit authorization at the tool level?
I'd appreciate technical feedback, especially from anyone building agents that interact with sensitive systems.
Company : Quaspar.com/technologies
1
u/mickmateau 1d ago
Interesting project. I've been working through some similar security and robustness problems in a couple of AI research projects, and I think enforcing authority outside the model is definitely the right direction.
The discussion about crash recovery and idempotency is particularly important. One thing I'd be interested in exploring further is the distinction between recovering execution state, recovering authority, and recovering the actual consequences of execution. They aren't necessarily equivalent.
For example, when an agent resumes after an interruption, how do you establish that its original mission authority is still valid? Permissions may have been revoked, resources modified by another agent, or an external operation may have succeeded without its acknowledgement being recorded.
A few other areas I'd be interested in:
I also think the coverage of fault-injection testing is potentially more informative than the number of recovery trials. Have you considered modelling the execution and recovery lifecycle as an explicit state-transition system, then testing interruptions at each transition boundary, including interruptions during recovery itself?
Something I've found interesting is that the information needed to reconstruct an execution history isn't necessarily the same information needed to safely continue execution. The latter may require retaining unresolved dependencies, current authority, resource ownership and evidence of externally committed effects.
The challenge, I think, is achieving all of this without introducing so many approval layers that the agent loses its practical autonomy. Bounded authority with deterministic enforcement seems a much better direction than requiring human confirmation at every step.
I'd be interested to hear how you're approaching these distinctions, particularly as you move beyond single-host execution.
2
u/ianreboot 2d ago
Prompt guardrails are the only one of the three a model can talk its way past, and tool-level authorization is where I'd put the weight. Your crash-recovery number only means as much as where the kill lands though: the window that decides replay protection sits between the tool call succeeding and the journal recording it, so the test worth running injects the kill in that gap, restarts, then checks the operation wasn't replayed or silently dropped. If the side effect and the journal write can't be ordered atomically, write the intent before the call and treat an intent with no completion record as unknown rather than done.