{"slug": "human-approval-is-not-enough-building-runtime-enforcement-for-autonomous-ai", "title": "Human Approval Is Not Enough: Building Runtime Enforcement for Autonomous AI Agents", "summary": "A developer built Enterprise Agent Safety Lab, an open-source Python research demonstrator that enforces runtime controls so an AI agent cannot execute a protected action merely because it proposed it or received an approval. Version 2 adds deterministic allowlists, canonical JSON action representation, SHA-256 action digests, a central execution gate, atomic execution claims for concurrent requests, terminal failure states without blind retry, and a hash-linked audit trail, backed by 18 automated tests. The developer cautions it is a synthetic demonstrator, not production-ready security software, and that an adversarial evaluation benchmark is planned but no comparative results exist yet.", "body_md": "AI agents are becoming increasingly capable of interacting with tools, APIs and enterprise systems.\n\nBut there is an important question we need to address:\n\n**When a human approves an action proposed by an AI agent, how do we ensure that the exact action approved is the action that actually gets executed?**\n\nA human approval button alone does not answer that question.\n\nAn agent might change its parameters after approval. An approval could be replayed. An execution request might arrive twice. A workflow might continue while approval is still pending.\n\nThese are not just interface problems. They are runtime control problems.\n\nI've started building an open-source research demonstrator to explore this problem: **Enterprise Agent Safety Lab**.\n\n**GitHub:** [https://github.com/shakarbisetty/enterprise-agent-safety-lab](https://github.com/shakarbisetty/enterprise-agent-safety-lab)\n\nEnterprise Agent Safety Lab is an independent, synthetic Python implementation for exploring:\n\nThe intention is to make these controls understandable, executable and testable rather than leaving them as architecture diagrams or design principles.\n\nThe local web interface brings together three stages:\n\n*The local synthetic demonstrator: agent proposal, human approval and approval-gated execution. Reviewer identity is simulated; no external enterprise systems are contacted.*\n\n**An agent should not be able to execute a protected action merely because it has proposed that action or received an approval status.**\n\nThe execution path must independently verify that the action is permitted and that it matches the action approved by the human reviewer.\n\nThe current Version 2 workflow follows this sequence:\n\nIf approval is pending or rejected, the action has been modified, or the policy check fails, execution is blocked.\n\nVersion 1 established the basic approval-gated workflow.\n\nVersion 2 strengthened the enforcement path:\n\n| Capability | Implementation | \n|---|---|\n| Target and operation policies | Deterministic allowlists | \n| Action representation | Canonical JSON | \n| Approval integrity | SHA-256 action digest | \n| Execution enforcement | Central runtime execution gate | \n| Concurrent requests | Process-local atomic execution claim | \n| Failure handling | Terminal failure state without blind automatic retry | \n| Audit evidence | Hash-linked in-memory event trail | \n\nThe project currently has **18 automated tests** covering approval gating, policy denials, action integrity, input mutation, concurrency, executor invocation, failure handling and audit-chain verification.\n\nThese are software verification checks, not an independent security certification or statistically validated benchmark.\n\nThe project uses Python's standard library and does not require third-party packages.\n\nClone the repository:\n\n```\ngit clone https://github.com/shakarbisetty/enterprise-agent-safety-lab.git\n\ncd enterprise-agent-safety-lab\n```\n\nRun the tests:\n\n```\npython -m unittest discover -s tests -v\n```\n\nStart the local demonstration:\n\n```\npython -m src.server\n```\n\nOpen:\n\n```\nhttp://127.0.0.1:8080\n```\n\nYou can submit a synthetic action, inspect its approval state, approve or reject it, and observe the execution and audit workflow.\n\nIt is important to be precise about the current implementation.\n\nThis is not production-ready enterprise security software.\n\nThe current demonstrator uses:\n\nIt does not provide enterprise SSO, distributed transaction guarantees, durable audit storage or exactly-once execution across real downstream systems.\n\nThose are important areas for future engineering and research.\n\nThe next stage is an adversarial evaluation benchmark.\n\nI want to investigate scenarios such as:\n\nThe objective is to compare progressively stronger control architectures and measure unsafe execution, policy enforcement, task completion, recovery behaviour and execution overhead.\n\nThese are proposed experiments. I have not yet established comparative benchmark results.\n\nMy professional background is in enterprise integration, architecture and automation. Through that work, I have become increasingly interested in the challenges of introducing autonomous agents into business processes where actions have real consequences.\n\nI have also worked on an enterprise multi-agent AI implementation involving human approval and actual enterprise integrations. That implementation is confidential and remains within the company environment. This public repository is an independent synthetic demonstrator, not a copy of that implementation.\n\nI want to explore how practical enterprise engineering experience can contribute to more reliable and controllable autonomous AI systems.\n\nIf you work on AI agents, AI safety, enterprise architecture, security engineering or runtime policy enforcement, I would be interested in your perspective.\n\nIn particular:\n\n**Explore the repository:**\n\nIf you find the project useful, please consider starring it, forking it to experiment, opening an issue or contributing a test case. Constructive criticism is just as welcome.\n\nThis is the beginning of an iterative open-source research effort. I plan to publish implementation and evaluation improvements as the project evolves.", "url": "https://wpnews.pro/news/human-approval-is-not-enough-building-runtime-enforcement-for-autonomous-ai", "canonical_source": "https://dev.to/thasha/human-approval-is-not-enough-building-runtime-enforcement-for-autonomous-ai-agents-3d5h", "published_at": "2026-12-02 02:27:32+00:00", "updated_at": "2026-12-02 02:43:04.969374+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-tools", "developer-tools"], "entities": ["Enterprise Agent Safety Lab", "GitHub", "Python"], "also_reported_by": [], "takeaway": "Gate agent execution behind a central runtime check that re-verifies policy allowlists and a SHA-256 digest of the approved action, plus an atomic execution claim, so modified, replayed or duplicate requests are blocked rather than trusted on approval status alone.", "recommendation": {"advice": "Re-verify the approved action's canonical hash and policy allowlist at execution time, and claim execution atomically, so post-approval mutation, replay or duplicate requests are blocked.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/human-approval-is-not-enough-building-runtime-enforcement-for-autonomous-ai", "markdown": "https://wpnews.pro/news/human-approval-is-not-enough-building-runtime-enforcement-for-autonomous-ai.md", "text": "https://wpnews.pro/news/human-approval-is-not-enough-building-runtime-enforcement-for-autonomous-ai.txt", "jsonld": "https://wpnews.pro/news/human-approval-is-not-enough-building-runtime-enforcement-for-autonomous-ai.jsonld"}}