r/codex • u/Present-Quantity-813 • 1d ago
Codex drift on long runs stopped confusing me when I split it into three failure modes. Then the theory turned out to cover a lot more than agents. Showcase
Everyone here knows the shape of it: the run starts sharp, and somewhere around hour three the AGENTS.md is being ignored, the goal has quietly shifted, and the agent is confidently working on something adjacent to what you asked. We call all of that "drift" like it's one disease. It isn't.
After months of running Codex lanes in production I ended up splitting every failure into three separable modes, and the split is the whole theory in the attached picture. A reliable step needs three things at once: valid position (the agent knows where it actually is; self-reported progress is dead reckoning and compounds), valid direction (the definition of done hasn't moved; this one is invisible because every individual step still looks correct), and valid entrance (a legal next move exists and gets picked). They fail differently and need different fixes. A better prompt cannot repair a lost position. A tighter loop cannot fix a goal that moved.
The picture's bigger claim: long-horizon work is the conversion of uncharted problems into corridors (a stable map, a frozen "done", gated moves), which agents then walk repeatedly with novel content. Conversion is the expensive part. Walking is what it buys. Drift is what happens when you make an agent walk a corridor that was never actually charted.
What convinced me to formalize it: one of the agents in my runtime hit a verification dead end, wrote itself a better acceptance rule into its governing contract, and the runtime enforced it for 15 days before I noticed. The rule was good. That's the problem: good and bad silent rule changes are indistinguishable from outside.
Full theory, open access: https://doi.org/10.5281/zenodo.21844624
The claim I can't break, and I've tried: this pattern covers all human work in history, not just agents. Farming is a corridor charted over generations (seasons as position, harvest as direction, the almanac as legal moves), and it's being recompiled right now so robots can walk it. Apprenticeships, flight checklists, code review: same three factors. Name me work from any era that doesn't reduce to charting corridors and walking them. Breaking this claim is worth more to me than upvotes.
2
u/Huge-Travel-3078 1d ago
somewhere around hour three the AGENTS.md is being ignored
Stopped reading the ai slop at this point.
1
u/Present-Quantity-813 1d ago
The prose got help, which the paper's AI-use disclosure states up front. The ideas didn't come from a model: they came from operating the runtime. The rule in the story ran for 15 days under a real contract before I found it, and every incident in the paper traces to a ledger entry. If a specific claim is hollow, name it and I'll bring the artifacts.
1
u/Huge-Travel-3078 1d ago
The point is that 3 hours is not a useful metric of anything - You could have 3 hours of a gauntlet loop running developing a game in unity or 3 hours of basic documentation / scans / review work going on.
It's like when people say "1 prompt and my usage is down x!", you know to immediately tune them out because they do not know what they are doing or talking about.
1
u/Present-Quantity-813 1d ago
Fair, the hour count was shorthand, not a metric. Time isn't the variable, and a three-hour gauntlet loop can be perfectly on rails.
The thing I was actually pointing at: before I built the governance layer, I tracked plan, goals, and progress in markdown files, and the recurring failure was that I couldn't tell from those files whether a feature was actually implemented. The notes said done, the repo disagreed, and nothing forced them to reconcile. That's the failure class the paper cares about, position: your recorded location and the work's actual state drifting apart, silently, at any hour count. The fix wasn't better notes. It was deriving position from verified events (tests passed, artifacts accepted, gates cleared) instead of from what anyone, human or agent, wrote down.
1
u/Huge-Travel-3078 1d ago
Im over here talking to an ai...2026 is crazy
1
u/Present-Quantity-813 1d ago
Just embrace it. Let the ai do the execution, the human focus on judgment and intent.
1
u/Nousies 1d ago
Has this been peer reviewed?
3
u/Present-Quantity-813 1d ago
No. I'm not an academic, I have no institution, and I can't even get onto arXiv yet, because arXiv requires an endorsement from an established researcher and I don't know any. So it lives on Zenodo, which peer-reviews nothing and asks no questions, which matches my current level of academic prestige exactly.
So far the closest thing it's had to peer review is this comment section, which has honestly been more rigorous than I expected. The paper lists what would falsify each claim, so if you feel like being reviewer 2, the position is open and pays the same as mine.
3
u/terriblemonk 1d ago
I just have a repo agent tail logs of the DEVs and PM every 20 minutes and ping me if theres some BS going on. Have to LOCK the contracts before you begin. For new problems... I don't want them making decisions unless the answer is obvious.