#9 Agent Failure Series · GitHub · by Harel Asaf #8 BlastRadius #7 GhostExec #6 DoubleShot
⚠ Agent Failure Series · Failure Mode #9

WorldLag

The agent read the world at T=0. The world changed at T=3. The agent acted confidently at T=10 — on a reality that no longer exists.

Stale world model · Belief-reality divergence · Operational hallucination

Drift Level
SYNCED
Select a scenario and press Play to begin the simulation.
🧠 Agent's Belief State CURRENT
Awaiting simulation...
🌍 Current Reality LIVE
Awaiting simulation...
Timeline
Speed:
Agent Log
💥 WorldLag Failure Triggered
✓ How to Fix WorldLag
1. Freshness Check Before Action
async act(belief) {
  const fresh = await
    revalidate(belief);
  if (!fresh.matches(belief))
    throw StaleStateError;
  return execute(fresh);
}
2. TTL on Every Read
const state = {
  value: read(),
  ts: Date.now(),
  ttl: 30_000, // 30s
};
if (Date.now() - state.ts
    > state.ttl) refresh();
3. Conditional Writes
await db.update(row, {
  set: newValue,
  where: {
    id: row.id,
    version: knownVersion,
  },
}); // fails if changed