I want to step back from the back and forth and place this against where the industry is, because the gap I keep circling only shows up once you give the field credit for what it already got right.
Where the industry is today
Two things came together this past year.
On the building side, spec-driven development mostly won the argument that code is not the source of truth. You write the spec, and the code gets built from it. Microsoft, GitHub, AWS, and most of the coding-agent tools ship a version of this now.
On the running side, agent governance moved just as fast. An agent’s authority has to be granted and provable, not assumed: scoped permissions, a real identity, an audit trail of what it did. The identity vendors say it plainly, and the first national frameworks landed early this year.
https://www.entrust.com/blog/2026/05/ai-agent-authorization-delegation-zero-trust
The field already agrees on a lot of what this thread has been circling. Intent has to be written down. A plausible answer is a long way from a true or authorized one. Drift is real.
The gap I see
Each of these picked something to treat as the thing you can trust, and built everything on top of it. I am not aware of anyone checking whether the thing they picked can actually hold that weight.
Spec-driven development trusts the spec. But a spec is just something a person or a model wrote down, and writing something down does not make it true. The field’s own writers admit specs leave out the reasoning, and that a generated spec can read perfectly while describing a system that does not exist.
Governance trusts identity. But all an agent can ever prove is that it presented a credential. Nothing tells the system who was actually holding that credential at that moment, so “this is agent X” is a guess that falls apart the moment a key is stolen.
And there is a problem sitting above both of them. Most of these tools are trying to catch an agent that grabbed a familiar-looking solution from its training and ran with it before anyone pinned down what the actual problem was. A cleaner spec later cannot undo a wrong turn the agent took before the problem was even stated.
What I think about it
What is missing is a single trustworthy bottom layer that knowledge, authority, and structure can all stand on.
The only things a system can truly know are the things it directly witnessed: that it exists (otherwise it cannot create a record), that something connected to it (connection log record), that some input arrived (request/event log), that some condition was met (code run log).
Those are facts. Everything else should start out as a guess and earn the status of “known” by pointing back to one of those witnessed facts. Identity included: instead of being the foundation, it becomes one more guess resting on what was actually witnessed. Accountability gets easier too, because you can pin responsibility on what the system saw happen instead of on who it assumed was there.
The other half is that the same pattern repeats at every size. A small task is just a small problem; a whole system is just a big function with smaller ones inside it. So you can describe all of them the same way. You state a problem as the gap between how things are now and how you want them to be, and the solution is the set of steps that close that gap. That same move runs the whole way down, from the top-level problem through the architecture and the individual pieces into the actual code. The catch is that the reasons behind each step only survive the trip down if you write them down as you go. Lose them, and whoever arrives later, human or agent, fills the silence with a guess, and that guess is where things drift.
How I am approaching it right now
Two ends of that chain are working, and there is a piece in the middle I want help thinking through.
At the top, I am building a tool that makes the agent slow down before it writes anything. Before it can propose a solution, it has to state the problem, name the gap between where things are and where they should be, and work through the steps as hypotheses it has to defend, with a separate reasoner keeping it inside the logical rules. In practice it makes the agent think instead of autocomplete based on pattern matching (note me calling LLM as “grammar book” and using “think” here without quotes in the same time lol, if by thinking you mean reasoning using hard logic rules while operating on information; different from “find most plausible human-like thought chain to prove your current conclusion based on the pattern you’ve spotted”) This one is at working-prototype stage.
At the bottom, there is an architecture checker. It watches whether the code still matches the architecture you declared, keeps the reason for each piece written down next to that piece, and is honest about what it cannot check rather than pretending. It runs, and it has already caught real drift in testing that nobody was looking for. Like the other tool, it works but it is not ready to go public yet.
The middle: memory
Memory is the part I am least sure about, so it is where I most want other people’s thinking.
The usual approach keeps a big store of past context and tracks how fresh each piece is. That helps, but it still hands back whatever it retrieved as if pulling something up made it true.
I want memory held to the same rule as everything else. Something you recall is not automatically true. It comes back with a status attached, so it can be a guess, accepted, contradicted, stale, or replaced by something newer, the same way any other claim would. When the system briefs an agent, it says plainly what it actually believes, what is just background, where each piece came from, and whether it is recent enough to rely on for the work at hand. Ranking can suggest what to surface, but it does not get to decide what is true. And forgetting means something stops coming up first, not that it gets deleted, so nothing is ever actually lost.
What I am still “stuck” on is how fast to let material drop out of easy reach, and how to keep each recalled item’s status honest without making every lookup slow and expensive.
Closing
I am not aware of anyone else building one trustworthy bottom layer that the spec, the permissions, and the structure all sit on, with memory held to that same rule. If you have seen something like it, point me there, I would rather compare notes than guess.
And if any part of this lands, or sounds wrong, I want to hear it: the bottom layer, the repeating problem-to-code shape, the slow-down tool, the memory model. Tell me how you handle the same things in what you are building, what worked, and what broke. That is what I am here for.
P.S. links are just some samples, not the “final truth”