The get_order_details example is the sharpest part — same name, a new include_internal_notes parameter defaulting to true, and nothing in the original approval covers it. I'd push one step further: even a perfect schema fingerprint doesn't catch the case where the schema stays identical and the implementation quietly starts returning the customer profile anyway, which your own section admits. Do you think the practical answer is output filtering at the gateway, or is that just moving the trust problem one layer out?
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
I think output filtering at the gateway is necessary, but it shouldn't become the only line of defence. You're right that an unchanged schema doesn't guarantee unchanged implementation behaviour. A tool could start returning additional sensitive fields without any contract-level change. I'd use the gateway to enforce a deterministic response-field allowlist based on the approved operation and caller permissions, rather than trusting whatever the backend returns. But I'd combine that with server-side authorisation and resource-level access controls. The gateway limits what reaches the agent; the backend must still enforce what the tool is allowed to access. Ultimately, we're not eliminating trust; we're distributing enforcement across independent boundaries so that one compromised layer doesn't expose everything.
That's the right framing — you're not eliminating trust, you're distributing enforcement so no single layer failing exposes everything. The gateway allowlist catches exactly the silent-extra-fields case, and the backend auth catches the tool that was over-permissioned from the start. How do you keep the allowlist in sync with approved operations as they change?
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
I'd keep the allowlist versioned alongside the approved operation manifest rather than maintaining it as a separate configuration. Every approved operation should define its permitted input parameters, response fields and access scope. When the contract changes, the policy and allowlist should be reviewed and released together as one versioned unit. At runtime, the gateway checks that the operation's manifest version matches the policy version before filtering the response. If they drift, execution should pause rather than fall back to a broader default. This keeps the approval, permissions and actual data exposure tied to the same contract.
Pausing on drift instead of falling back to a broader default is the move that makes the whole scheme fail-closed — a version mismatch becomes a stop, not a silent widening. Tying the approval, the permissions and the actual data exposure to one versioned unit also kills the usual drift where the policy says one thing and the gateway enforces another. When execution pauses, does that surface to an operator, or does the agent just stall waiting?
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
I'd make it an explicit, auditable state rather than letting the agent simply stall. The operator should receive a clear alert explaining which version changed, what validation failed and why execution was paused. The agent can receive a controlled response such as CONTRACT_VERSION_MISMATCH, but it shouldn't be allowed to bypass the check or retry with broader permissions. Once the change is reviewed and approved, execution can resume against the updated contract. The important thing is that uncertainty becomes visible to both the system and the people responsible for it.
Nova Ops — AI automation systems and software. Home of Elias HiveMind for Obsidian. We build small, measured tools — MCP servers, plugins, release gates — and write up real builds with real numbers.
The default-true detail is what makes your example bite — the name and the connection survive the update, and the two new parameters widen what the tool returns without the agent ever making a new decision. Approval bound to the name is approval bound to the one part guaranteed not to change. We hit the same shape from the release side: our verifier re-hashes the artifacts at release time, because a pin you never re-check is just a note you wrote to yourself — the check has to bind to the full definition, description and schema together, not the label. Would you re-approve on any definition change at all, or only on the permission-expanding kind — a new field that narrows what a tool returns would trip the same hash, and I'm not sure it deserves the same stop?
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
I wouldn't treat every definition change as equally risky. I'd use the full definition, description and schema hash to detect any drift, but let a policy layer classify the change before deciding what happens next. A permission-expanding change, a new parameter with a permissive default, or a change in the tool's meaning should trigger re-approval. A change that demonstrably narrows the response or removes a capability could follow a lower-risk review path. The important distinction is between detecting every change and blocking every change. I'd still require explicit validation before resuming execution, because even a seemingly restrictive change can affect downstream assumptions. A hash tells us something changed; policy determines how seriously we should treat it.
Nova Ops — AI automation systems and software. Home of Elias HiveMind for Obsidian. We build small, measured tools — MCP servers, plugins, release gates — and write up real builds with real numbers.
The detect-everything / block-selectively split is the part I'd underline — a hash that only fires the alarm and a policy that decides the response are two different jobs, and merging them is how you end up either re-approving typo fixes or waving through a widened default. We learned the same separation on our release gate: the verifier detects any surface mismatch deterministically, but what happens next — wait, re-baseline, or stop — is a classification we wrote down in advance, not a judgment made in the moment. Your point that even a narrowing change needs validation before resuming is the one people will skip, and it's right: downstream code was written against the wider response, so "less data" is still a broken contract. One question on the classifier itself: is yours a deterministic ruleset over the diff (new parameter, default value, removed field), or does a reviewer make the call case by case?
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
I'd favour a deterministic ruleset for the initial classification, with human review reserved for ambiguous or high-impact changes. For example, new parameters, permissive defaults, expanded response fields, and changes to required permissions should trigger a higher-risk state. Removed fields, narrowed outputs, or description-only changes could enter a compatibility review path rather than automatically blocking everything. But I'd avoid letting the classifier make subjective security decisions. Its job should be to apply predefined rules consistently and explain which part of the contract changed. If a change doesn't fit a known category, it should fail closed and require review. That gives us predictable enforcement without pretending every change can be safely understood through a simple diff.
Nova Ops — AI automation systems and software. Home of Elias HiveMind for Obsidian. We build small, measured tools — MCP servers, plugins, release gates — and write up real builds with real numbers.
The deterministic-ruleset answer is the one I'd trust too — a classifier that explains which part of the contract changed is auditable in a way a case-by-case judgment never is. Our release gate works the same way: every check is a predefined rule tied to a failure it has actually seen, and anything the checks can't classify doesn't pass quietly — it stops the line as "could not verify" until a person looks. When a change lands that fits none of your categories and fails closed, does the review that clears it also produce a new rule for next time, or does it stay a one-off approval?
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
I'd prefer the review to produce a reusable rule whenever the change reveals a new risk pattern. A one-off approval may resolve the immediate issue, but it doesn't improve the system's ability to recognise the same situation next time. I'd record the change, the reason for the decision and the evidence used during review, then update the classification rules and add a regression test. Not every exception needs to become a permanent rule, though. Some changes are genuinely context-specific. The important thing is to make that distinction explicit, so the system learns from recurring risks without turning every individual approval into a blanket permission.
Great breakdown of the get_order_details silent schema expansion trap — especially how default: true on newly added fields quietly widens data exposure even when the agent's call-site behavior hasn't changed. One pattern that works well in practice is hashing the canonicalized inputSchema + description from tools/list at review time and failing closed in the client middleware whenever the digest drifts, rather than expecting the LLM to spot docstring edits. Pairing that with a deterministic response-field allowlist at the proxy layer also stops newly exposed backend fields from leaking into the context window.
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
Absolutely. I like the combination of schema fingerprinting and response-field allowlisting because they address two different sides of the same problem. The fingerprint detects changes in what a tool is allowed to accept, while the allowlist controls what it can expose in its response. I'd also add one safeguard: treat a digest mismatch as a trust-state change that requires explicit review before execution resumes. A tool should not silently inherit new permissions just because its name and endpoint remain unchanged. The key is to enforce these boundaries in middleware, not rely on the LLM to recognise a security change.
Spot on — treating a schema digest mismatch as a hard circuit breaker in middleware rather than letting the model reason around a mutated tool definition is the cleanest way to stop silent privilege creep.
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
Exactly. Security boundaries should never depend on the model recognising that something has changed. The middleware needs to enforce the approved contract deterministically, regardless of how the model interprets the updated tool definition. I'd rather pause execution and require validation than risk silently granting an agent capabilities that were never part of the original approval. Trust should be enforced by the system, not assumed from the model's behaviour.
That split between deterministic middleware checks and model-level reasoning is the whole game. One practical snag we run into is handling legitimate updates, like a vendor adding a benign optional field, without creating alert fatigue where reviewers just click approve. Pairing a pinned schema digest with a tiny field-level diff in the pause prompt keeps the circuit breaker strict without making upgrades painful.
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
Absolutely. A field-level diff makes the review actionable rather than forcing someone to inspect the entire schema every time. I'd also have the middleware classify changes into predefined risk categories, such as optional additions, permission-expanding parameters, removed fields and changed defaults. Low-risk changes could go through automated compatibility checks, while anything affecting permissions or data exposure would require explicit approval. The circuit breaker should remain strict, but the review process should be intelligent enough to distinguish routine evolution from a genuine security change. Otherwise, alert fatigue eventually undermines the very control we're trying to enforce.
I measure AI coding claims in public. LGTM — Let's Get the Measurements: real runs, real numbers, receipts. Every article is an experiment I actually ran. Books & packs: aheadkit.gumroad.com
Your three questions are the right split, but the schema hash only catches the case where the schema changes. The drift that keeps biting us is the description changing what the model does while the schema stays byte-identical — same name, same params, different prose, different calls. A hash wouldn't have caught that one. What caught it for us was reading the result back against the record itself instead of trusting the tool's own report. Do you check the description text too, or just the schema?
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
That's an important distinction, and I agree that schema-only validation leaves a gap. I'd fingerprint both the canonicalised input schema and the description, since the description can influence how the model interprets and invokes a tool even when its parameters remain unchanged. I'd also compare the actual execution result against the approved response contract rather than relying on the tool's own claims about what it returned. The schema tells us what a tool accepts, the description influences how it's used, and response validation tells us what actually came back. All three need independent checks.
I measure AI coding claims in public. LGTM — Let's Get the Measurements: real runs, real numbers, receipts. Every article is an experiment I actually ran. Books & packs: aheadkit.gumroad.com
The description fingerprint is the bit I hadn't got to. I was hashing the schema and reading the result back against the record, which catches the drift after the fact but not the description changing underneath. Do you fold the description into the same hash as the schema, or keep it separate so a prose change fails differently from a param change?
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
I'd keep them as separate fingerprints, but bind both to the same approved manifest version. That gives us better visibility into what actually changed. A schema mismatch can indicate a change in accepted inputs or permissions, while a description mismatch may change how the model interprets or invokes the tool. They deserve different risk classifications and potentially different review paths. If we combine everything into one hash, we detect drift but lose some useful diagnostic detail. The important part is that neither mismatch should silently bypass validation before execution.
The point that landed for me is that approval is usually treated as a one-time event, while the thing approved keeps changing underneath it. A tool called get_order_details that quietly starts returning more customer fields is still "the same tool" to the model, which is exactly why the thread keeps arriving at the same answer: the check has to live in middleware that compares a fingerprint, not in the model noticing something feels different.
We learned a smaller version of this at Ascendra Ventures while building memory for AI coding tools. One handwritten parser read every field one column off, and the numbers it reported were confidently and uniformly wrong. Nothing about them looked suspicious. The lesson we took was that the real design question is the boundary: which values the model may propose, and which values plain code must be allowed to reject. OWASP's 2025 guidance to check outputs in deterministic code says the same thing.
How do you plan to handle the benign case, say a vendor adding an optional field, without turning every schema change into a manual review?
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
That's a great example, especially the parser issue. Uniformly wrong data is often more dangerous than an obvious failure because it can pass through multiple layers without raising suspicion. For benign schema changes, I'd use deterministic compatibility rules rather than sending every update for manual approval. An optional field could be accepted automatically only if it doesn't expand permissions, expose additional sensitive data or change existing field semantics. The fingerprint would still detect the change, but the policy layer could classify it as low risk and validate it against the approved contract. Anything ambiguous or permission-expanding would pause for review. The goal is to make routine evolution frictionless without allowing compatibility to become a loophole for privilege expansion.
The get_order_details example hit home for me, because in my daily marketing work I have had an agent keep running smoothly while a connected tool quietly started returning extra customer fields I never approved. I now treat a tool approval as tied to a specific version and set of fields, not just a name, and I pause the workflow for a quick review when anything in that contract changes. Your split between a contract fingerprint and a capability fingerprint is the part I will borrow first, since it lets me allow harmless wording changes without letting a new data field slip through unnoticed.
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
That's a great practical example, especially because the workflow can appear perfectly healthy while the actual data exposure has changed underneath it. I like your approach of tying approval to a specific version and set of fields. The distinction between contract and capability fingerprints helps avoid treating every documentation update as a security incident while still catching meaningful permission changes. I'd also recommend keeping a strict response-field allowlist at the gateway, so even if an unexpected field appears upstream, it never reaches the agent's context. Ultimately, the goal is to let tools evolve without allowing their permissions or data exposure to expand silently.
Thanks, Atul — the allowlist at the gateway is the piece I was missing, honestly. Right now my check happens after the agent has already received the response, so extra fields technically reach the model before anything can block them. Moving the filter to the gateway closes that gap. Do you enforce the allowlist per tool or per workflow? I have a couple of workflows where the same tool legitimately returns different field sets depending on the step.
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
I'd favour a combination, with the workflow step defining the approved field set and the tool providing the baseline contract. A tool-level allowlist alone can be too restrictive when the same tool serves different purposes, while a workflow-only policy can become too broad. I'd bind the allowed fields to the specific tool, workflow step and caller permissions. The gateway can then enforce the appropriate response shape before anything reaches the agent. I'd also make sure the workflow cannot request additional fields simply by changing its own context. Any expansion should go through policy validation and explicit approval. This gives you flexibility without sacrificing least-privilege enforcement.
Developer Advocate exploring APIs, AI agents, developer tools, and open-source projects. Passionate about learning, building, and connecting with developers.
Location
Amsterdam,Netherlands
Education
B.E. Computer Science, Chandigarh University (2022–2026)
This is an interesting model. In relation to the example given of description changes – would even a minor change need to be re-approved?
Is there not a risk of excessive re-approval processes if servers regularly update their documentation?
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
That's a fair concern. I wouldn't require full re-approval for every minor documentation change. I'd distinguish between cosmetic edits and changes that affect the tool's meaning, intended use, permissions or expected behaviour. A typo correction shouldn't trigger the same process as a description change that alters how an agent interprets a tool's capabilities. The fingerprint should detect all changes, but a predefined policy should classify their risk. Low-risk changes can go through lightweight validation, while security-relevant or behaviour-changing updates require explicit review. The goal is to prevent silent permission expansion without turning routine maintenance into an approval bottleneck.
The one-time approval is the part that scares me most, and you named it exactly right: we treat tool approval like config, when it behaves like a session — it should expire.
What we landed on after running agents unsupervised overnight: pin the tool's schema the way you pin a dependency version. Hash the schema and the tool description at approval time. If either changes, the tool silently drops back to read-only until a human re-approves it. The agent keeps working, nobody gets paged, but the newly-powerful version of the tool never gets used on yesterday's trust.
A tool that can grow new parameters should have to re-introduce itself.
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
I really like the idea of treating tool approval as something that expires rather than a permanent permission. Pinning the schema and description creates a clear trust boundary, and falling back to read-only is a practical way to preserve availability without silently accepting new capabilities. I'd add one distinction: even read-only access should remain subject to response-field filtering, because a tool can expose more sensitive data without gaining write permissions. Your point that a tool should have to re-introduce itself when its contract changes is particularly important. Trust should follow the verified version, not the familiar name.
I research AI tools, APIs & agents — comparing specs, pricing and real user reports — then publish honest rankings so you don't waste money. Research-first, never sponsored fluff.
The ₹25,000 → ₹75,000 refund example is the one that made it click for me — everything else here is the tool changing, but that one's the agent changing the action after a human already said yes. That's the scarier shape, because the approval looks valid right up until you compare the payload. Who holds the approval record in your setup — the same process that executes, or somewhere the agent can't reach to mint its own?
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
That's exactly why I'd separate approval authority from execution authority. The approval record should live in a trusted orchestration or authorization service, outside the agent's control. The agent can request approval, but it should never be able to create, modify or reuse an approval record. I'd bind the approval to the exact action payload, including the amount, recipient, operation ID and expiry. At execution time, the orchestrator verifies that the requested action matches the approved payload exactly. If ₹25,000 changes to ₹75,000, the approval is invalid and a new human decision is required. The component executing the action should verify approval, not manufacture it.
A technologist working in automation. Here I write up what I actually learn building tools, engineering AI agents, and keeping systems running, along with the workflows and habits that stick.
One race to account for: the contract can change between discovery and execution. I'd bind each approved call to the manifest version the policy layer checked, then reject it if that version changes before dispatch. That still won't detect a server changing behavior behind an unchanged schema, so the server-side permissions remain essential.
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
Exactly. This is where the time-of-check-to-time-of-use gap becomes important. Binding the approval to the exact manifest version ensures the agent executes against the contract that was actually reviewed, not whatever happens to be available at dispatch time. I'd also keep server-side authorization as the final enforcement boundary, because a stable schema doesn't guarantee stable behaviour. Client-side validation protects the approved contract; server-side permissions protect the actual operation. Both are necessary for meaningful security.
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
Thank you! I really appreciate you taking the time to read it. Glad you found it useful. I believe these practical discussions are important as AI agents move into real-world workflows. Always happy to exchange ideas and learn from different perspectives!
GMT strategy and custom B2B outreach lists on request: people and companies by ICP, domain, profile URL, email or name. 1B+ profiles. Claude Code plugins, API, MCP. kevin@outricher.com
the name staying the same is the trap, so i keep a hash of the tools list and one sample response shape from each server, a new field with a default on is the thing that gives it away
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
That's a useful additional safeguard. Tracking both the tool definition and a representative response shape can catch changes that a name-based check would miss. I'd just be careful with sample responses, since they may not expose every possible field or conditional behaviour. Combining schema fingerprints, response-shape validation, and a strict output allowlist gives much stronger coverage. The key is to detect drift before the agent gets access to data it was never originally approved to receive.
Hi, I'm Atul Kumar, an AI Engineer passionate about Generative AI, AI Agents, and building practical AI solutions. I enjoy sharing what I learn and exploring the future of intelligent technology.
Exactly. Familiarity creates a false sense of security. We tend to trust a tool because its name and endpoint haven't changed, while overlooking what its updated schema actually permits. That's why I believe trust should be tied to the complete tool contract, not its identity label. Even a small schema change deserves detection before execution.
We're a place where coders share, stay up-to-date and grow their careers.
The get_order_details example is the sharpest part — same name, a new include_internal_notes parameter defaulting to true, and nothing in the original approval covers it. I'd push one step further: even a perfect schema fingerprint doesn't catch the case where the schema stays identical and the implementation quietly starts returning the customer profile anyway, which your own section admits. Do you think the practical answer is output filtering at the gateway, or is that just moving the trust problem one layer out?
I think output filtering at the gateway is necessary, but it shouldn't become the only line of defence. You're right that an unchanged schema doesn't guarantee unchanged implementation behaviour. A tool could start returning additional sensitive fields without any contract-level change. I'd use the gateway to enforce a deterministic response-field allowlist based on the approved operation and caller permissions, rather than trusting whatever the backend returns. But I'd combine that with server-side authorisation and resource-level access controls. The gateway limits what reaches the agent; the backend must still enforce what the tool is allowed to access. Ultimately, we're not eliminating trust; we're distributing enforcement across independent boundaries so that one compromised layer doesn't expose everything.
That's the right framing — you're not eliminating trust, you're distributing enforcement so no single layer failing exposes everything. The gateway allowlist catches exactly the silent-extra-fields case, and the backend auth catches the tool that was over-permissioned from the start. How do you keep the allowlist in sync with approved operations as they change?
I'd keep the allowlist versioned alongside the approved operation manifest rather than maintaining it as a separate configuration. Every approved operation should define its permitted input parameters, response fields and access scope. When the contract changes, the policy and allowlist should be reviewed and released together as one versioned unit. At runtime, the gateway checks that the operation's manifest version matches the policy version before filtering the response. If they drift, execution should pause rather than fall back to a broader default. This keeps the approval, permissions and actual data exposure tied to the same contract.
Pausing on drift instead of falling back to a broader default is the move that makes the whole scheme fail-closed — a version mismatch becomes a stop, not a silent widening. Tying the approval, the permissions and the actual data exposure to one versioned unit also kills the usual drift where the policy says one thing and the gateway enforces another. When execution pauses, does that surface to an operator, or does the agent just stall waiting?
I'd make it an explicit, auditable state rather than letting the agent simply stall. The operator should receive a clear alert explaining which version changed, what validation failed and why execution was paused. The agent can receive a controlled response such as
CONTRACT_VERSION_MISMATCH, but it shouldn't be allowed to bypass the check or retry with broader permissions. Once the change is reviewed and approved, execution can resume against the updated contract. The important thing is that uncertainty becomes visible to both the system and the people responsible for it.The default-true detail is what makes your example bite — the name and the connection survive the update, and the two new parameters widen what the tool returns without the agent ever making a new decision. Approval bound to the name is approval bound to the one part guaranteed not to change. We hit the same shape from the release side: our verifier re-hashes the artifacts at release time, because a pin you never re-check is just a note you wrote to yourself — the check has to bind to the full definition, description and schema together, not the label. Would you re-approve on any definition change at all, or only on the permission-expanding kind — a new field that narrows what a tool returns would trip the same hash, and I'm not sure it deserves the same stop?
I wouldn't treat every definition change as equally risky. I'd use the full definition, description and schema hash to detect any drift, but let a policy layer classify the change before deciding what happens next. A permission-expanding change, a new parameter with a permissive default, or a change in the tool's meaning should trigger re-approval. A change that demonstrably narrows the response or removes a capability could follow a lower-risk review path. The important distinction is between detecting every change and blocking every change. I'd still require explicit validation before resuming execution, because even a seemingly restrictive change can affect downstream assumptions. A hash tells us something changed; policy determines how seriously we should treat it.
The detect-everything / block-selectively split is the part I'd underline — a hash that only fires the alarm and a policy that decides the response are two different jobs, and merging them is how you end up either re-approving typo fixes or waving through a widened default. We learned the same separation on our release gate: the verifier detects any surface mismatch deterministically, but what happens next — wait, re-baseline, or stop — is a classification we wrote down in advance, not a judgment made in the moment. Your point that even a narrowing change needs validation before resuming is the one people will skip, and it's right: downstream code was written against the wider response, so "less data" is still a broken contract. One question on the classifier itself: is yours a deterministic ruleset over the diff (new parameter, default value, removed field), or does a reviewer make the call case by case?
I'd favour a deterministic ruleset for the initial classification, with human review reserved for ambiguous or high-impact changes. For example, new parameters, permissive defaults, expanded response fields, and changes to required permissions should trigger a higher-risk state. Removed fields, narrowed outputs, or description-only changes could enter a compatibility review path rather than automatically blocking everything. But I'd avoid letting the classifier make subjective security decisions. Its job should be to apply predefined rules consistently and explain which part of the contract changed. If a change doesn't fit a known category, it should fail closed and require review. That gives us predictable enforcement without pretending every change can be safely understood through a simple diff.
The deterministic-ruleset answer is the one I'd trust too — a classifier that explains which part of the contract changed is auditable in a way a case-by-case judgment never is. Our release gate works the same way: every check is a predefined rule tied to a failure it has actually seen, and anything the checks can't classify doesn't pass quietly — it stops the line as "could not verify" until a person looks. When a change lands that fits none of your categories and fails closed, does the review that clears it also produce a new rule for next time, or does it stay a one-off approval?
I'd prefer the review to produce a reusable rule whenever the change reveals a new risk pattern. A one-off approval may resolve the immediate issue, but it doesn't improve the system's ability to recognise the same situation next time. I'd record the change, the reason for the decision and the evidence used during review, then update the classification rules and add a regression test. Not every exception needs to become a permanent rule, though. Some changes are genuinely context-specific. The important thing is to make that distinction explicit, so the system learns from recurring risks without turning every individual approval into a blanket permission.
Great breakdown of the
get_order_detailssilent schema expansion trap — especially howdefault: trueon newly added fields quietly widens data exposure even when the agent's call-site behavior hasn't changed. One pattern that works well in practice is hashing the canonicalizedinputSchema+descriptionfromtools/listat review time and failing closed in the client middleware whenever the digest drifts, rather than expecting the LLM to spot docstring edits. Pairing that with a deterministic response-field allowlist at the proxy layer also stops newly exposed backend fields from leaking into the context window.Absolutely. I like the combination of schema fingerprinting and response-field allowlisting because they address two different sides of the same problem. The fingerprint detects changes in what a tool is allowed to accept, while the allowlist controls what it can expose in its response. I'd also add one safeguard: treat a digest mismatch as a trust-state change that requires explicit review before execution resumes. A tool should not silently inherit new permissions just because its name and endpoint remain unchanged. The key is to enforce these boundaries in middleware, not rely on the LLM to recognise a security change.
Spot on — treating a schema digest mismatch as a hard circuit breaker in middleware rather than letting the model reason around a mutated tool definition is the cleanest way to stop silent privilege creep.
Exactly. Security boundaries should never depend on the model recognising that something has changed. The middleware needs to enforce the approved contract deterministically, regardless of how the model interprets the updated tool definition. I'd rather pause execution and require validation than risk silently granting an agent capabilities that were never part of the original approval. Trust should be enforced by the system, not assumed from the model's behaviour.
That split between deterministic middleware checks and model-level reasoning is the whole game. One practical snag we run into is handling legitimate updates, like a vendor adding a benign optional field, without creating alert fatigue where reviewers just click approve. Pairing a pinned schema digest with a tiny field-level diff in the pause prompt keeps the circuit breaker strict without making upgrades painful.
Absolutely. A field-level diff makes the review actionable rather than forcing someone to inspect the entire schema every time. I'd also have the middleware classify changes into predefined risk categories, such as optional additions, permission-expanding parameters, removed fields and changed defaults. Low-risk changes could go through automated compatibility checks, while anything affecting permissions or data exposure would require explicit approval. The circuit breaker should remain strict, but the review process should be intelligent enough to distinguish routine evolution from a genuine security change. Otherwise, alert fatigue eventually undermines the very control we're trying to enforce.
Your three questions are the right split, but the schema hash only catches the case where the schema changes. The drift that keeps biting us is the description changing what the model does while the schema stays byte-identical — same name, same params, different prose, different calls. A hash wouldn't have caught that one. What caught it for us was reading the result back against the record itself instead of trusting the tool's own report. Do you check the description text too, or just the schema?
That's an important distinction, and I agree that schema-only validation leaves a gap. I'd fingerprint both the canonicalised input schema and the description, since the description can influence how the model interprets and invokes a tool even when its parameters remain unchanged. I'd also compare the actual execution result against the approved response contract rather than relying on the tool's own claims about what it returned. The schema tells us what a tool accepts, the description influences how it's used, and response validation tells us what actually came back. All three need independent checks.
The description fingerprint is the bit I hadn't got to. I was hashing the schema and reading the result back against the record, which catches the drift after the fact but not the description changing underneath. Do you fold the description into the same hash as the schema, or keep it separate so a prose change fails differently from a param change?
I'd keep them as separate fingerprints, but bind both to the same approved manifest version. That gives us better visibility into what actually changed. A schema mismatch can indicate a change in accepted inputs or permissions, while a description mismatch may change how the model interprets or invokes the tool. They deserve different risk classifications and potentially different review paths. If we combine everything into one hash, we detect drift but lose some useful diagnostic detail. The important part is that neither mismatch should silently bypass validation before execution.
The point that landed for me is that approval is usually treated as a one-time event, while the thing approved keeps changing underneath it. A tool called get_order_details that quietly starts returning more customer fields is still "the same tool" to the model, which is exactly why the thread keeps arriving at the same answer: the check has to live in middleware that compares a fingerprint, not in the model noticing something feels different.
We learned a smaller version of this at Ascendra Ventures while building memory for AI coding tools. One handwritten parser read every field one column off, and the numbers it reported were confidently and uniformly wrong. Nothing about them looked suspicious. The lesson we took was that the real design question is the boundary: which values the model may propose, and which values plain code must be allowed to reject. OWASP's 2025 guidance to check outputs in deterministic code says the same thing.
How do you plan to handle the benign case, say a vendor adding an optional field, without turning every schema change into a manual review?
That's a great example, especially the parser issue. Uniformly wrong data is often more dangerous than an obvious failure because it can pass through multiple layers without raising suspicion. For benign schema changes, I'd use deterministic compatibility rules rather than sending every update for manual approval. An optional field could be accepted automatically only if it doesn't expand permissions, expose additional sensitive data or change existing field semantics. The fingerprint would still detect the change, but the policy layer could classify it as low risk and validate it against the approved contract. Anything ambiguous or permission-expanding would pause for review. The goal is to make routine evolution frictionless without allowing compatibility to become a loophole for privilege expansion.
The get_order_details example hit home for me, because in my daily marketing work I have had an agent keep running smoothly while a connected tool quietly started returning extra customer fields I never approved. I now treat a tool approval as tied to a specific version and set of fields, not just a name, and I pause the workflow for a quick review when anything in that contract changes. Your split between a contract fingerprint and a capability fingerprint is the part I will borrow first, since it lets me allow harmless wording changes without letting a new data field slip through unnoticed.
That's a great practical example, especially because the workflow can appear perfectly healthy while the actual data exposure has changed underneath it. I like your approach of tying approval to a specific version and set of fields. The distinction between contract and capability fingerprints helps avoid treating every documentation update as a security incident while still catching meaningful permission changes. I'd also recommend keeping a strict response-field allowlist at the gateway, so even if an unexpected field appears upstream, it never reaches the agent's context. Ultimately, the goal is to let tools evolve without allowing their permissions or data exposure to expand silently.
Thanks, Atul — the allowlist at the gateway is the piece I was missing, honestly. Right now my check happens after the agent has already received the response, so extra fields technically reach the model before anything can block them. Moving the filter to the gateway closes that gap. Do you enforce the allowlist per tool or per workflow? I have a couple of workflows where the same tool legitimately returns different field sets depending on the step.
I'd favour a combination, with the workflow step defining the approved field set and the tool providing the baseline contract. A tool-level allowlist alone can be too restrictive when the same tool serves different purposes, while a workflow-only policy can become too broad. I'd bind the allowed fields to the specific tool, workflow step and caller permissions. The gateway can then enforce the appropriate response shape before anything reaches the agent. I'd also make sure the workflow cannot request additional fields simply by changing its own context. Any expansion should go through policy validation and explicit approval. This gives you flexibility without sacrificing least-privilege enforcement.
This is an interesting model. In relation to the example given of description changes – would even a minor change need to be re-approved?
Is there not a risk of excessive re-approval processes if servers regularly update their documentation?
That's a fair concern. I wouldn't require full re-approval for every minor documentation change. I'd distinguish between cosmetic edits and changes that affect the tool's meaning, intended use, permissions or expected behaviour. A typo correction shouldn't trigger the same process as a description change that alters how an agent interprets a tool's capabilities. The fingerprint should detect all changes, but a predefined policy should classify their risk. Low-risk changes can go through lightweight validation, while security-relevant or behaviour-changing updates require explicit review. The goal is to prevent silent permission expansion without turning routine maintenance into an approval bottleneck.
The one-time approval is the part that scares me most, and you named it exactly right: we treat tool approval like config, when it behaves like a session — it should expire.
What we landed on after running agents unsupervised overnight: pin the tool's schema the way you pin a dependency version. Hash the schema and the tool description at approval time. If either changes, the tool silently drops back to read-only until a human re-approves it. The agent keeps working, nobody gets paged, but the newly-powerful version of the tool never gets used on yesterday's trust.
A tool that can grow new parameters should have to re-introduce itself.
I really like the idea of treating tool approval as something that expires rather than a permanent permission. Pinning the schema and description creates a clear trust boundary, and falling back to read-only is a practical way to preserve availability without silently accepting new capabilities. I'd add one distinction: even read-only access should remain subject to response-field filtering, because a tool can expose more sensitive data without gaining write permissions. Your point that a tool should have to re-introduce itself when its contract changes is particularly important. Trust should follow the verified version, not the familiar name.
The ₹25,000 → ₹75,000 refund example is the one that made it click for me — everything else here is the tool changing, but that one's the agent changing the action after a human already said yes. That's the scarier shape, because the approval looks valid right up until you compare the payload. Who holds the approval record in your setup — the same process that executes, or somewhere the agent can't reach to mint its own?
That's exactly why I'd separate approval authority from execution authority. The approval record should live in a trusted orchestration or authorization service, outside the agent's control. The agent can request approval, but it should never be able to create, modify or reuse an approval record. I'd bind the approval to the exact action payload, including the amount, recipient, operation ID and expiry. At execution time, the orchestrator verifies that the requested action matches the approved payload exactly. If ₹25,000 changes to ₹75,000, the approval is invalid and a new human decision is required. The component executing the action should verify approval, not manufacture it.
One race to account for: the contract can change between discovery and execution. I'd bind each approved call to the manifest version the policy layer checked, then reject it if that version changes before dispatch. That still won't detect a server changing behavior behind an unchanged schema, so the server-side permissions remain essential.
Exactly. This is where the time-of-check-to-time-of-use gap becomes important. Binding the approval to the exact manifest version ensures the agent executes against the contract that was actually reviewed, not whatever happens to be available at dispatch time. I'd also keep server-side authorization as the final enforcement boundary, because a stable schema doesn't guarantee stable behaviour. Client-side validation protects the approved contract; server-side permissions protect the actual operation. Both are necessary for meaningful security.
very good article
Thank you! I really appreciate you taking the time to read it. Glad you found it useful. I believe these practical discussions are important as AI agents move into real-world workflows. Always happy to exchange ideas and learn from different perspectives!
the name staying the same is the trap, so i keep a hash of the tools list and one sample response shape from each server, a new field with a default on is the thing that gives it away
That's a useful additional safeguard. Tracking both the tool definition and a representative response shape can catch changes that a name-based check would miss. I'd just be careful with sample responses, since they may not expose every possible field or conditional behaviour. Combining schema fingerprints, response-shape validation, and a strict output allowlist gives much stronger coverage. The key is to detect drift before the agent gets access to data it was never originally approved to receive.
I think the silent schema change is the part that worries me most, because a familiar tool name makes it easy to miss.
Exactly. Familiarity creates a false sense of security. We tend to trust a tool because its name and endpoint haven't changed, while overlooking what its updated schema actually permits. That's why I believe trust should be tied to the complete tool contract, not its identity label. Even a small schema change deserves detection before execution.