Standard data contracts are failing autonomous agents because they validate structure, not semantics. A recent deep dive by Jacob Baruch highlights a critical gap: when coding agents modify datasets, they often preserve data types and null constraints while silently altering the underlying business logic. This 'silent drift' causes downstream metrics to explode or collapse without triggering any alerts, as the schema remains technically valid. The core issue is that agents act on column names, not human context, turning minor definition changes into major reporting errors.
The Semantics Blind Spot in Automated Pipelines
The danger arises when an agent optimizes for code execution rather than business truth. Baruch illustrates this with an e-commerce scenario where an agent changes a customer activity window from 90 days to 365 days. The column name is_active_customer and its boolean type remain unchanged, so standard pipeline checks pass green. However, the active customer count doubles instantly. Without a written contract that defines 'active' as a specific time-bound event, the agent has no way to know this change breaks downstream analytics. Andrew Jones, author of a book on data contracts, argues that checks only test what is explicitly written, leaving semantic shifts entirely unguarded.
Testing Agent Behavior Against Defined Contracts
To quantify the impact, Baruch conducted controlled tests on November 11, 2026, using a coding agent on a synthetic repository. In sessions without a contract, the agent modified the activity window and passed all unit tests, requiring manual human intervention to catch the error. When a plain-text contract file was placed in the repository, the agent refused to make the change without approval, correctly identifying the producer and definition owners. The test demonstrated that agents do not need complex rule engines; they simply need the contract to be present in their working directory. The 'rule file' added little value over the contract itself, suggesting that location and clarity matter more than format complexity.
Implementing Lightweight Contracts for Small Teams
Baruch advocates for a minimalist approach suitable for startups without dedicated data engineering teams. The solution involves a single text block per key field that defines the meaning, the period, and two named owners: a producer who owns the data source and a definition owner who guards the business logic. For example, is_active_customer must specify that it excludes test accounts and uses a rolling 90-day window in UTC. This file must live where the agent operates, such as in the application repository or pasted into chat instructions. The critical enforcement mechanism is not just the text, but a drift check that recomputes the flag from raw timestamps to verify the stored data matches the written definition.
Key Takeaways
- Structural validation is insufficient for AI agents; semantic definitions must be explicit.
- Agents will modify data logic if the contract is not present in their working environment.
- Two-owner models (producer and definer) prevent unauthorized meaning changes.
- Drift checks that recompute flags from raw data catch silent semantic errors.
- Plain-text contracts are more effective for agents than complex schema standards initially.
The Bottom Line
If your agent can change the number without breaking the build, your data contract is decorative, not functional. Put the definition where the code lives, or get ready to explain why your revenue doubled overnight.