Open-sourced guardrail-middleware puts deterministic policy checkpoints between agents and their tools

MidnightHeavy3064 · reddit · 2026-11-18

The author open-sourced guardrail-middleware (pip install guardrail-middleware) to address the core agent risk: the agent is authorized but the instruction is not — a poisoned email or tool output can trigger payments, deletes, or sends with nothing checking who approved it. Every proposed tool call passes a policy checkpoint with four verdicts: approve, approve with conditions, escalate to human, block. All checks are deterministic, no LLM judge:

Decisions go to a SHA-256 hash-chained JSONL audit log (tamper-evident). Honest limits: regex-class detection misses novel phrasings, the checkpoint judges permission not wisdom, and sequence attacks (many small transfers under limits) need plan-level validation, coming next along with a 42-scenario adversarial benchmark.

Original post →

More from coding & agent

coding & agent channel →