> Markdown version of [/videos/100661-what-did-the-human-actually-approve-binding-approval-to-ai-agent-actions?t=354](https://www.wearedevelopers.com/videos/100661-what-did-the-human-actually-approve-binding-approval-to-ai-agent-actions?t=354). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # What Did the Human Actually Approve? Binding Approval to AI Agent Actions What happens if an AI agent alters its action parameters right after you click approve? Learn how to prevent loopjacking by cryptographically binding human approvals to exact execution inputs. - **Speakers:** [Chilarai M](https://www.wearedevelopers.com/@chilarai-m) - **Event:** Conference India 2026 - **Published:** November 26, 2026 - **Duration:** 24:23 - **URL:** https://www.wearedevelopers.com/videos/100661-what-did-the-human-actually-approve-binding-approval-to-ai-agent-actions - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/1564a805732530e05bf85fa8acd8154f/thumbnails/thumbnail.jpg?time=30000ms ## Summary Standard human-in-the-loop (HITL) implementations often treat approval as a simple pause-and-resume boolean. Chilarai M (CTO, Swytchcode Technologies Inc) explains how this introduces "loopjacking"—a vulnerability where an AI agent pauses for approval, encounters an API delay or retry, and consults the LLM again, regenerating altered tool parameters that execute under the original approval. Real-world incidents like Cursor's MCP server exploit and Replit's accidental production database deletion highlight the dangers of unchecked agent execution and missing policy boundaries. To prevent loopjacking, engineering teams must "separate the decision from the check." Instead of storing a simple affirmative status, systems should bind approvals to specific operations by hashing input parameters alongside the approver's identity, policy version, and an expiration timestamp. At execution time, the runtime must recalculate and compare hashes, classifying any parameter diffs into three tiers: harmless changes (like timestamps or idempotency keys) that can proceed, critical changes (such as payment amounts or recipients) that require re-approval, and policy breaches (like exceeding hard limits) that must be blocked entirely. Securing autonomous workflows also requires validating full shell commands—including flags and arguments—within sandboxes rather than just allowlisting base binaries. For browser-based agents susceptible to prompt injection and UI spoofing, developers should enforce verifiable action cards, backend-driven browser pop-ups, and clear visual diffs so human reviewers see exactly what changed before authorizing execution. **Keywords:** human-in-the-loop, AI agent security, loopjacking, binding approval to actions, execution-time validation, MCP server security, input parameter hashing, agent policy enforcement, workflow retry handling, tool call regeneration, browser agent prompt injection, command argument validation, approval expiry, change detection, autonomous workflow guardrails ## Chapters 1. **Understanding loop jacking in AI agent payment workflows** (01:03) — When an AI agent retries a failed API call by consulting the model again, it can regenerate different parameters and execute unapproved actions under an existing human approval. 1. **Case studies of Cursor MCP and Replit agent failures** (05:54) — Validating only server names in Cursor MCP configurations or lacking hard policy boundaries in Replit agents allows malicious command execution and accidental production database deletion. 1. **Binding approvals with parameter hashing and classifying changes** (10:31) — Separating human decisions from execution checks requires hashing input parameters, setting approval expirations, and classifying payload modifications into harmless changes, critical changes, or policy breaches. 1. **Validating shell command arguments and securing browser approvals** (15:18) — Securing agent execution requires validating CLI flags inside sandboxes, using verifiable action cards to prevent browser prompt injection, and displaying parameter diffs during re-approval. 1. **Preventing unauthorized agent actions with runtime checks** (20:35) — Applying hash verification, strict policy boundaries, and change classification at execution time intercepts modified retry payloads and enforces human intent across autonomous workflows. ## Related Moments - [Balancing automated actions with human-in-the-loop approvals](https://www.wearedevelopers.com/videos/100395-responsible-ai-architecture-with-zero-trust-agents) (from "Responsible AI Architecture with Zero Trust Agents") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/130d47c8aacb75d8711cbfb6ab95a878/thumbnails/thumbnail.jpg?time=49093ms - [Implementing risk-based human approvals in agent workflows](https://www.wearedevelopers.com/videos/2093-from-shadow-ai-to-secure-intelligence-safe-ai-usage-in-the-enterprise) (from "From Shadow AI to Secure Intelligence: Safe AI Usage in the Enterprise") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/d8ec1307b787c33efa86b61c9d7f2ac2/thumbnails/thumbnail.jpg?time=120300ms - [Managing asynchronous human-in-the-loop workflows for AI](https://www.wearedevelopers.com/videos/1637-delay-the-ai-overlords-how-oauth-and-openfga-can-keep-your-ai-agents-from-going-rogue) (from "Delay the AI Overlords: How OAuth and OpenFGA Can Keep Your AI Agents from Going Rogue") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/3036d9bbcdfe68d466cc9533f8a36d5e/thumbnails/thumbnail.jpg?time=122605ms - [Reviewing AI outputs and adapting to compliance constraints](https://www.wearedevelopers.com/videos/100263-the-ai-native-software-team-how-agents-are-rewriting-the-sdlc) (from "The AI-Native Software Team: How Agents Are Rewriting the SDLC") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/1834486beb0d0076ad997c739fa76e42/thumbnails/thumbnail.jpg?time=103920ms - [Integrating human-in-the-loop approvals for semi-autonomous workflow processes](https://www.wearedevelopers.com/videos/1537-building-blocks-for-agentic-solutions-in-your-enterprise) (from "Building Blocks for Agentic Solutions in your Enterprise") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/e4fd4f4b76557614f7b94f560be3377e/thumbnails/thumbnail.jpg?time=133745ms - [Managing critical versus non-critical AI agent workloads](https://www.wearedevelopers.com/videos/100714-engineering-ai-strategy-beyond-the-hype) (from "Engineering AI Strategy: Beyond the Hype") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/127456c6f595f6159051c9e7b9317b5b/thumbnails/thumbnail.jpg?time=30000ms ## Related Articles - [Do You Trust Your Agents? Five Quick Ways to Contain Them](https://www.wearedevelopers.com/magazine/787-do-you-trust-your-agents-five-quick-ways-to-contain-them) - [ I Gave a Video Editor More Autonomy Than a Trading Bot. On Purpose.](https://www.wearedevelopers.com/magazine/773-i-gave-a-video-editor-more-autonomy-than-a-trading-bot-on-purpose) - [Building an Agentic Software Factory](https://www.wearedevelopers.com/magazine/796-building-an-agentic-software-factory) - [Infer Once, Run Everywhere: Zero-Token Architecture](https://www.wearedevelopers.com/magazine/783-infer-once-run-everywhere-zero-token-architecture) ## Related Jobs - [Staff Software Engineer, Copilot Code Review](https://www.wearedevelopers.com/jobs/ext/4743636-staff-software-engineer-copilot-code-review) at **GitHub** - [Staff Software Engineer, GitHub Intelligence (Copilot Agents)](https://www.wearedevelopers.com/jobs/ext/4850314-staff-software-engineer-github-intelligence-copilot-agents) at **GitHub** - [Principal Software Engineer, Copilot Code Review](https://www.wearedevelopers.com/jobs/ext/4667602-principal-software-engineer-copilot-code-review) at **GitHub** - [Senior Web Software Architect, AI Experiences](https://www.wearedevelopers.com/jobs/ext/4523834-senior-web-software-architect-ai-experiences) at **TeamViewer Germany GmbH** - [AI Governance Senior Manager](https://www.wearedevelopers.com/jobs/ext/4918096-ai-governance-senior-manager) at **PwC** - [AI Full Stack Engineer](https://www.wearedevelopers.com/jobs/ext/4809244-ai-full-stack-engineer) at **Almedia**