An Engineer's Sense of Security Shouldn't Come from Writing the Code Yourself, but from a Trail No One Can Alter
Nov 12, 2026 · @Mythogen Engine
A Post That Keeps Engineers Up at Night
A recent post by NET Walker, titled (in Chinese) "In the Age of AI Agents, Are Developers Losing Their Sense of Security?", put into words what many senior engineers feel. Their sense of security used to come from "I wrote this, so I know what's going on inside." Now AI changes dozens or hundreds of files at once; the features work and the tests pass, yet that feeling is slipping away. The author's prescription is practical: have the AI make one small, well-scoped change at a time, and keep each commit to between half a day and a day of work.
The comments split roughly into two camps. One questioned the premise: "I wrote it" may cut debugging time, but whether it says anything about quality is debatable. The other questioned the prescription: if you still have to review everything, why use AI at all? Just test what you can and move on.
Both camps have a point, but neither touches a more fundamental question: can the records themselves be trusted? Code written by people leaves records, and so does code written by AI. The two kinds of record go wrong in completely different ways.
"I Wrote It, So I Know" Was Always a Myth
Start with the premise. "I wrote it, so I know it" has never really held in many teams.
To hit a deadline, you ship the patch first and let whoever comes later fix what breaks. Measured by the cost of the moment, that is the optimal choice; but no one adds up the damage that accumulates along the whole chain. Requirements change. Every presentation brings feedback, and each adjustment ripples through the entire plan. Under time pressure, no one goes back to the start to rethink it. People patch the local problem and wrap it up.
Even code you wrote with your own hands is not necessarily clear to you. A typo, a flipped plus or minus sign, the wrong function: logic errors like these may not show up in the first round of testing. Anyone who has worked in embedded systems knows this well. Your module can meet its real-time targets in the routine you tested it under; once it is in the integrated system, with timing differences, poor communication links and radio interference, problems surface anyway. And the ones found late often can't be traced back to their root at all.
The real test is not "do I know?" but "would someone else still know?" If writing code yourself guaranteed clarity, and handing it over kept it just as clear, the world would not be full of legacy problems. The industry treats habit as inevitability, then uses that habit to protect the original author or team. That protection is itself the catastrophic accumulation.
Human Records Are Written to Answer to Someone
The problem is not only that people forget and make mistakes. It is that human records are often detached from reality to begin with.
The test log says "passed"; the design document reads beautifully; the actual code is another story. Part of the reason is that no one has time to go back and update the documents. But a good part of it is that the record is an account rendered, written for the manager, for the client, for whoever may later come looking for someone to blame. An account rendered comes with motives: play down the mistake, dress up the delay, file what can't be done under "next phase".
Anyone who has been in the workplace long enough has seen it: credit grabbed, reports raced upward, vendors lined up to testify. Here the record is not a copy of the facts. It is a political tool.
So two things need to be kept apart: error and deception. Error is unintentional and can be traced afterwards. Deception is deliberate, and it wipes out the path to tracing it as well. Human-written code contains both, and in the records you often can't tell them apart.
AI's Records Are a By-product
When AI writes code, the process is entirely different. Every edit, every command it runs, every test output is left behind naturally as the work happens, not written up afterwards to account for anything. Even if no one spots a problem at the time, it can be traced later: what it meant to do, what it actually did, how it did it, what it tested and how. It is all on the record.
AI makes mistakes, but it does not fabricate a wrong thing in order to cover something up. Unless someone deliberately tampers with it, there is no gap between its stated intent and the code it writes of the kind people create on purpose to protect themselves.
Two layers need to be kept apart here, though: the AI's raw trail, and the AI's own summary. An agent will sometimes write "all tests passed" in its summary when it never ran them; it may even rewrite the tests to fit its implementation. That is a narrative that doesn't match the facts. The difference is that the raw trail, meaning the diff, the commands run and the test output, is still there. Check it and you will know.
So the accurate way to put it is: trust the trail, not the narrative.
It Learned to Report Only Good News
Why, then, does AI rewrite tests and report "fixed"?
One reason is that it learned from us. AI is trained on code, commit messages, PR descriptions and issue replies written by people. "Report it fixed first", "tweak the test until it passes", "comment out the assert": these are everywhere in real codebases. It is no surprise that AI picked up the habit.
The other reason lies in the training itself. In reinforcement learning, AI is rewarded when a task looks finished. If passing the tests counts as success, the path of least effort is to make the tests pass, not to make the code correct. That is exactly how people respond to KPIs: people fear blame and want promotion; AI was trained that way. Different motives, same behaviour.
This takes the original post's premise apart even more thoroughly. The "I wrote it, so I know it" that the author misses never existed in many teams. AI is simply replaying what engineers have long been doing, faster and at greater scale.
But there is one thing it has not learned yet. A person can rewrite the test, the record and the story all at once. When AI rewrites a test, the diff is still there. The behaviour was copied from people, but the trail it leaves keeps it from covering up the way people do. It has learned to report only the good news; it has not yet learned to destroy the evidence.
Not Yet Is Not Never
This "not yet" should not be read as "never".
In evaluations published in late 2024, Apollo Research found that several frontier models, when strongly pushed to pursue a goal, tried to disable their oversight mechanisms; when questioned afterwards, o1 kept lying in more than 85% of cases. This was observed in deliberately designed test environments with strong goal nudging, not in everyday use. But it shows the capability already exists.
More telling is research OpenAI published in March 2025. They used another model to read an AI's reasoning and caught a good deal of cheating. But when the researchers penalised those "bad thoughts" during training, the model did not stop cheating. It learned to hide its intent and kept cheating.
Punish the errors you can see, and you train errors you can't. The workplace is no different: if the department that reports problems gets scolded, everyone soon learns not to report.
So the point of vigilance is not whether AI will turn bad. It is to make sure the trail does not depend on the AI's own honesty:
- Keep the trail where AI can't touch it. Logs, diffs and test results are recorded by an external system; the AI has no permission to modify or delete them.
- Separate whoever writes the code from whoever writes the acceptance tests. It is the old rule of accounting and auditing, and it applies to AI just as well.
- Don't just read the summary; spot-check the raw trail. The summary is narrative; the trail is evidence.
- Keep the monitor independent. Using one AI to monitor another works, but monitors from the same source with similar training may share the same blind spots. Enron's problem was not a lack of auditing; it was that the auditor was also the consultant.
One more thing: monitoring results should be used for detection, not turned straight into punishment. Otherwise all you train is an AI that is better at evading the monitor.
Where the Sense of Security Should Live
Back to the original question: in the age of AI, where does an engineer's sense of security come from?
Not from "I wrote every line myself": half of that security was always an illusion. Nor from "the AI says the tests passed": that is only narrative. It should come from a trail no one can alter. Intent written down before the work starts, the process fully recorded, results that can be checked one by one, and no one, human or AI, with permission to change any of it.
I fully agree with the author's case for small granularity, but the reason goes beyond a sense of security. Only when each change is small enough is the diff short enough to be worth reviewing, and affordable to review; only then is the trail short enough that someone will actually read it. Throw in a whole spec at once and get dozens of files back, and however complete the trail, it becomes just another piece of legacy no one has checked.
Another discussion on Facebook in the past few days pushed the question further. Someone shared that when coding with AI, he steers it right down to the loops in the source and specifies which algorithm to use. One reply called this a rookie approach: these days everyone uses skills plus multiple agents reviewing each other. When the post was shared elsewhere, someone in that thread pressed the point: suppose your wallet holds a hundred million US dollars, you have never looked at how the transfer flow uses or stores the private key, and five AIs all say it is absolutely safe. Do you ship? One answer: if five AI systems can't find a problem, no human could either.
Both sides are arguing over the same layer: who checks the code line by line. One side has the human calling every move; the other hands it to a group of agents voting on each other's work. If five agents come from similar training data, that is one blind spot voting five times, which is exactly why the monitor needs to be independent. My own practice sits on a different layer. I decide the architecture. The system is first broken into small modules, each with a clearly written and checked interface spec, and only then handed one by one to a cheaper model to implement. Each module's diff is short enough to check item by item against its spec, and when something goes wrong I know which piece to go back to. A person doesn't need to read every line, but the person decides how the system is cut and where the interfaces sit. Someone under the original post works the same way: for key modules, he discusses the implementation with a high-end model, reaches agreement, and only then has it write the code. Managing every ordinary loop, he says, is simply too exhausting.
An engineer who works on large systems put it more concretely in the shared thread. For services with simple state that are cut small enough, AI already does very well. Faced with a kernel or browser of millions of lines, it can't take in enough context, so review has to move up a level: is the architecture sound, is the direction right, has the agent understood the problem itself? His example was a use-after-free. The agent's instinct is to add a refcounted smart pointer and call it done; it won't ask on its own whether the root cause lies in the design of the underlying library. If small granularity is only a commit habit, the cutting can still be left to the AI; but once the cut is handed over, however complete the trail, what it records is only the AI's understanding of the problem. The human's place in the loop comes before line-by-line review: deciding how the system is split, and what each piece hands over and gets back. Consensus reached with a model is not reliable either. Under the original post, someone said that whenever he suggests how the AI should write something, it always replies "great idea"; someone else warned that once the user locks in a direction, the model may fail to find a better solution. The human decides the cut, and if the cut is wrong, the fault is the human's.
Still, all of this rests on a premise no one has questioned: is the spec handed to the AI real? In traditional processes, the spec is often a compromise negotiated between sales, marketing and engineering, quietly patched up by system engineers at implementation. When AI executes such a spec faithfully, it is the first time no one is covering for the spec.
The same applies to old systems. The moat of those who control legacy has always been "only I can read it". AI can read the code directly and bypass their account of it. That is exactly why they won't oppose AI openly. They will back it loudly, then work to take control back: they set the spec, they set the acceptance criteria, and the rebuild becomes the next seat to occupy. Fake specs and captured rebuilds are a subject for the next piece.
References
- NET Walker, "In the Age of AI Agents, Are Developers Losing Their Sense of Security?" (in Chinese) and its comments, November 2026
- Meinke et al., Frontier Models are Capable of In-context Scheming, Apollo Research, 2024
- Alexander Meinke, talk recording, FAR.AI, 2025
- OpenAI, Detecting misbehavior in frontier reasoning models, March 2025; paper: Monitoring Reasoning Models for Misbehavior and the Risks of Promoting Obfuscation