Every Tool Call Needs a Gatekeeper: Lessons from Semantic Kernel's Policy Boundary
Mahmoud_Zalt · x · 2026-11-27
AI architect Mahmoud Zalt's new article dissects Microsoft Semantic Kernel's kernel.py as a case study in governing AI tool calls.
Key points:
- The Kernel is a facade unifying function lookup, service lookup, filters, and reliability — its real value is being the single place where consistent decisions happen before model output reaches application capabilities.
- A tool call crosses from probabilistic output into deterministic authority: plugin code, service clients, mutable state, external side effects. Models can produce plausible function names and arguments without authority over either.
- The gatekeeper's first job is separating what the model proposes from what the system permits: resolve and validate, run the filter stack, invoke, convert results, append to history.
- Central lesson: treat every tool call as untrusted input and enforce policy at one observable gate, not scattered checks.
More from coding & agent
- Replicating Cloudflare's Agent Search: semantic chunking via yes/no decision model — dejanseo · 2026-11-27
- 12,000-trial study: AI agent database damage depends on what engines let you undo — libredb · 2026-11-27
- Prompt tip: prefix requests with "Should we" to let AI agents evaluate your idea first — tristanbob · 2026-11-27
- Chrome Live for Antigravity: zero-dependency MV3 bridge cuts tokens 83.9% — Impossible-Bar-1670 · 2026-11-27
- Claude Duet Proxy Lets You Spend Duet's Free Credits Inside Claude Code — AccountAntique9327 · 2026-11-27
- Engineer goes from zero to CAD-to-simulation with LLMs in 3 weeks — deepakns · 2026-11-27