<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/compare-against-the-schema-they-shipped-not-the-one-you-expected-soyixexay" -->

---
title: Compare Against the Schema They Shipped, Not the One You...
description: A test harness flagged an AI model for sending exec arguments that didn't match a frozen expectation, but the real bug was in the harness's own expectation,...
canonical: https://daily.dev/posts/compare-against-the-schema-they-shipped-not-the-one-you-expected-soyixexay
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Compare Against the Schema They Shipped, Not the One You Expected | daily.dev
og:description: A test harness flagged an AI model for sending exec arguments that didn't match a frozen expectation, but the real bug was in the harness's own expectation,...
og:url: https://daily.dev/posts/compare-against-the-schema-they-shipped-not-the-one-you-expected-soyixexay
og:image: https://api.daily.dev/og/posts/SoYiXEXAY.png
og:image:alt: Compare Against the Schema They Shipped, Not the One You Expected
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Compare Against the Schema They Shipped, Not the One You Expected

**[DEV](https://daily.dev/sources/devto)** · 7 min read · 3 upvotes · 2 comments

## Summary

A test harness flagged an AI model for sending exec arguments that didn't match a frozen expectation, but the real bug was in the harness's own expectation, which was missing a required field the provider's schema demanded. The writeup walks through debugging a comparator mismatch where two authorities (the provider's tool schema and the harness's frozen instruction) disagreed, and argues that the fix must correct the expectation without weakening the comparison itself, since loosening a comparator to make a false failure disappear destroys the control that made it meaningful. Includes commit references, the exact schema and receipt diffs, and a checklist for auditing similar harness comparisons.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/kenielzep97/compare-against-the-schema-they-shipped-not-the-one-you-expected-3mb8>

## Questions this post answers

### Why would an AI agent's tool call get flagged as a mismatch even though it followed the tool's schema correctly?

A harness's frozen expected argument object can encode the author's assumptions rather than the provider's actual schema, so a model that correctly satisfies the provider's required fields still fails a byte-for-byte comparison against a stricter or incomplete harness expectation. In one case, a harness expected only a single 'command' key while the provider's Zod schema required both 'intent' and 'command', causing a false EXEC_ARGUMENTS_MISMATCH failure.

_Anyone debugging flaky agent test harnesses can track patterns like this through daily.dev's coverage of AI tool-calling pitfalls._

### Should I fix a failing comparison in my test harness by loosening what fields it checks?

No, loosening a comparator to make a failing check pass removes the control that made the check meaningful, since it lets an agent send extra or unreviewed arguments and still pass. The correct fix is to correct the expected object to match the provider's actual required schema while keeping the comparison itself strict, and to separate schema compliance checks from harness-specific policy checks.

_Teams hardening agent evaluation pipelines follow write-ups like this on daily.dev before touching a failing comparator._

## Community discussion

Top comments from developers on daily.dev.

**@leonidbugaev** · 0 upvotes

> RUN_004's EXEC_ARGUMENTS_MISMATCH is the one I'd keep. The frozen object only had command, TrueForge required intent, and the model followed the schema. I'd have been tempted to ignore extra keys instead of adding a harness-authored intent.

**@bob72** · 0 upvotes

> One more picture that does not make sense. I do not trust engineering that can accept such rubbish. Likely,  AI assisted writing was not reviewed, no point to spend time looking for errors there, rather then getting some useful knowledge.

## Similar posts on daily.dev

- [My Harness Used One Label for Three Different Failures.](https://daily.dev/posts/my-harness-used-one-label-for-three-different-failures--5bfydrbzw) · DEV · 1 upvotes · 0 comments
- [The Data Was Public. The Agent Path Wasn't. So His Mock Became My Documentation.](https://daily.dev/posts/the-data-was-public-the-agent-path-wasn-t-so-his-mock-became-my-documentation--wwlxiskvo) · DEV · 0 upvotes · 0 comments

---

Tags: [#ai](https://daily.dev/tags/ai), [#ai-agents](https://daily.dev/tags/ai-agents), [#open-source](https://daily.dev/tags/open-source), [#security](https://daily.dev/tags/security), [#testing](https://daily.dev/tags/testing), [#typescript](https://daily.dev/tags/typescript)

[View this post on daily.dev](https://daily.dev/posts/compare-against-the-schema-they-shipped-not-the-one-you-expected-soyixexay)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Compare Against the Schema They Shipped, Not the One You Expected","url":"https://daily.dev/posts/compare-against-the-schema-they-shipped-not-the-one-you-expected-soyixexay","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/compare-against-the-schema-they-shipped-not-the-one-you-expected-soyixexay"},"datePublished":"2026-09-07T23:57:19.992Z","dateModified":"2026-11-05T02:14:48.261Z","description":"A test harness flagged an AI model for sending exec arguments that didn't match a frozen expectation, but the real bug was in the harness's own expectation,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a7b6d3dfe237f7e941b5184a8aca6618?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a7b6d3dfe237f7e941b5184a8aca6618?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"DEV","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"DEV","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/devto","url":"https://daily.dev/sources/devto"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/compare-against-the-schema-they-shipped-not-the-one-you-expected-soyixexay","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"ai,ai-agents,open-source,security,testing,typescript","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DEV","item":"https://daily.dev/sources/devto"},{"@type":"ListItem","position":3,"name":"Compare Against the Schema They Shipped, Not the One You Expected"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/compare-against-the-schema-they-shipped-not-the-one-you-expected-soyixexay","comment":[{"@type":"Comment","text":"RUN_004’s EXEC_ARGUMENTS_MISMATCH is the one I’d keep. The frozen object only had command, TrueForge required intent, and the model followed the schema. I’d have been tempted to ignore extra keys instead of adding a harness-authored intent.","datePublished":"2026-09-08T10:59:11.902Z","url":"https://daily.dev/posts/SoYiXEXAY#c-xM87B1cvT","author":{"@type":"Person","name":"Leonid Bugaev","url":"https://daily.dev/leonidbugaev","image":"https://lh3.googleusercontent.com/a/ACg8ocLhMgurwTmJElWaH9A8Ju8cHvZxgMCDt009jEYkmFCyUGAoaGSw=s96-c"}},{"@type":"Comment","text":"One more picture that does not make sense. I do not trust engineering that can accept such rubbish. Likely,  AI assisted writing was not reviewed, no point to spend time looking for errors there, rather then getting some useful knowledge.","datePublished":"2026-09-08T23:54:13.373Z","url":"https://daily.dev/posts/SoYiXEXAY#c-jbcSY6x9K","author":{"@type":"Person","name":"Bob","url":"https://daily.dev/bob72","image":"https://avatars.githubusercontent.com/u/193962566?v=4"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/compare-against-the-schema-they-shipped-not-the-one-you-expected-soyixexay#faq","mainEntity":[{"@type":"Question","name":"Why would an AI agent's tool call get flagged as a mismatch even though it followed the tool's schema correctly?","acceptedAnswer":{"@type":"Answer","text":"A harness's frozen expected argument object can encode the author's assumptions rather than the provider's actual schema, so a model that correctly satisfies the provider's required fields still fails a byte-for-byte comparison against a stricter or incomplete harness expectation. In one case, a harness expected only a single 'command' key while the provider's Zod schema required both 'intent' and 'command', causing a false EXEC_ARGUMENTS_MISMATCH failure. Anyone debugging flaky agent test harnesses can track patterns like this through daily.dev's coverage of AI tool-calling pitfalls."}},{"@type":"Question","name":"Should I fix a failing comparison in my test harness by loosening what fields it checks?","acceptedAnswer":{"@type":"Answer","text":"No, loosening a comparator to make a failing check pass removes the control that made the check meaningful, since it lets an agent send extra or unreviewed arguments and still pass. The correct fix is to correct the expected object to match the provider's actual required schema while keeping the comparison itself strict, and to separate schema compliance checks from harness-specific policy checks. Teams hardening agent evaluation pipelines follow write-ups like this on daily.dev before touching a failing comparator."}}]}
```

