· 6 min read
What I Do When Two Systems Disagree About the Truth
A practical playbook for resolving source of truth conflicts when you're running AI agents, local models, and cloud tools that all claim to know what happened.
The disagreement is not rare, it’s constant
If you run any meaningful amount of automation, you hit this problem weekly, sometimes daily. A scheduler says a job completed. The log file for that job says it never started. An agent tells you a file exists at a given path. The filesystem says otherwise. A local model gives you one answer to a question, a cloud model gives you a different one, and both sound equally confident.
None of this is exotic. It’s just what happens when you wire multiple systems together and each one keeps its own partial view of reality. The moment you have more than one source reporting on the same fact, you’ve created the possibility that they’ll disagree. And once you’re running agents that read from and write to several of these systems, disagreement stops being an edge case and becomes a routine part of the job.
This isn’t a post about picking the smartest model or the fanciest orchestration framework. It’s about what I actually do, in order, when two systems tell me contradictory things.
Step one: figure out which system is authoritative for that specific fact
The first mistake is treating “source of truth” as a property of a system rather than a property of a fact. A database can be authoritative for account balances and completely wrong about whether a background worker is still alive, because nothing in the database updates when the worker dies silently. A log file can be authoritative for what an agent attempted and useless for what actually landed on disk, because a write can be logged as successful and then fail downstream.
So before I trust either side of a disagreement, I ask: which of these two systems actually produces this fact, and which one is just reporting on it secondhand? A calendar or task queue is a plan. It records intent. The filesystem, the API response, the actual process table, those are the ground truth for what happened. Anything that’s a step removed from the event itself, no matter how recently it was updated, is a derived view and derived views go stale in ways that are easy to miss.
In practice this means I keep a mental (and sometimes literal) map of, for each category of fact I care about, which system is the primary record and which systems are caches, logs, or summaries of it. When two things disagree, the primary record wins by default, not the one that answered first or the one that sounds more confident.
Step two: distrust anything that hasn’t been re-verified
Agents and automated pipelines are very good at accumulating stale state and presenting it with total confidence. An agent’s context window might contain a fact from three steps ago that was true at the time and isn’t anymore. A cached API response might be perfectly correct for the moment it was fetched and simply outdated now. None of that is a hallucination in the strict sense. It’s just information that was true and stopped being true, carried forward as if nothing changed.
The fix isn’t smarter models, it’s cheaper verification. If a disagreement matters enough to resolve, I go back to the primary source and check it fresh, right now, rather than trusting whichever cached copy is more recent or more detailed. This is slower than trusting either answer outright, but it’s the only step that actually closes the gap instead of guessing which stale copy is less stale.
This is also why I’m wary of designs where an agent’s own memory of past actions gets treated as equivalent to checking the real system state. Memory is useful for continuity and for not repeating work. It’s not a substitute for asking the actual API, the actual filesystem, or the actual process whether something is true right now.
Step three: check whether they’re actually disagreeing, or just using different definitions
A surprising number of “conflicts” turn out to be two systems correctly answering two different questions. A job scheduler might say a task is “done” the moment it hands off to a worker, while a monitoring tool defines “done” as the output file actually existing. Neither is wrong. They’re using different definitions of the same word, and if you don’t notice that, you’ll spend time debugging a disagreement that isn’t real.
Local and cloud AI setups run into this constantly. A local model answering from a smaller context window and a cloud model answering with broader training data aren’t necessarily contradicting each other, they’re often working from different information and different assumptions about what you’re asking. Before I treat something as a genuine conflict, I check whether the two systems are even measuring the same thing. Half the time, clarifying the question resolves the disagreement without needing to trust either side over the other.
Step four: pick a tiebreaker rule before you need one
For the disagreements that are real, not just definitional, I try to decide the tiebreaker rule in advance rather than improvising it in the moment. A few rules that hold up well in practice:
The system closer to the event wins. A direct filesystem check beats a database record of what was supposed to be written. A live API call beats a cached response. This is really the same rule as step one, applied consistently.
Timestamps only settle things if both systems record time the same way. I’ve been burned by comparing a UTC timestamp from one system against a local timestamp from another and concluding there was a conflict where there wasn’t one. Before timestamp comparisons decide anything, I confirm both sides are using the same clock and the same timezone convention.
When neither system is clearly more authoritative, I don’t guess. I log the disagreement and flag it for a human decision rather than letting an agent silently pick one side. Automating around ambiguity by just choosing an answer and moving on is how small inconsistencies turn into larger ones that are much harder to trace later.
Step five: fix the thing that let them drift apart
Resolving a single disagreement is the least interesting part of this. The useful work is asking why the two systems were allowed to disagree in the first place. Usually it’s one of a few things: a write that isn’t acknowledged until it’s actually durable, a cache with no invalidation path, or two systems that were never designed to stay in sync and are only being compared because a new agent or automation started reading from both.
Sometimes the answer is to stop reading from the secondary system at all and only ever consult the primary. Sometimes it’s adding a verification step after a write, so the pipeline confirms the fact landed before it treats the fact as settled. Sometimes it’s just accepting that two systems will occasionally disagree for a few seconds because of normal propagation delay, and building the automation to tolerate that instead of treating every disagreement as an error.
None of this is glamorous. It’s closer to plumbing than to intelligence. But it’s the actual work of running AI agents and automation in a way that doesn’t quietly accumulate wrong answers you don’t notice until something breaks downstream.
The model isn’t the fix here
It’s tempting to think a better model or a smarter agent framework will make this problem go away. It won’t, because the problem isn’t a reasoning problem. It’s a data problem. An agent with perfect reasoning still can’t tell you the truth if the systems it’s reading from are giving it two different truths and it has no way to know which one is current. The fix is discipline about what counts as a primary source, a habit of re-checking instead of trusting cached state, and tiebreaker rules you set before you’re in the middle of a disagreement, not after.
If you’re building or running AI automation and want to see how this plays out in real pipelines, not just in theory, you can find more of what I work on at the xavierfok.com homepage.
Get new guides and videos first — join the Telegram channel.