Moving authoritative state out of the chat transcript and into a validated host-side layer is one of the cleanest architectural patterns for long-horizon agents. Dropping prompt size from an average of 476,835 tokens to a flat 2,824 tokens per step—and holding exact state across all 1,500 operations whereas the full-chat baseline drifted permanently after turn 286—shows that prompt caching alone cannot fix attention degradation in massive histories.
Rebuilding a minimal state snapshot after each atomic host-validated commit keeps both time-to-first-token and correctness bounded no matter how long the workflow runs.
Thanks, Ahmet. The checkable details are on GEMINI_LONG_TEST.md: with the chat kept, the state (each reply applied as it came) was exact through turn 286, went wrong at turn 287 and stayed wrong; first token went from 2.23 s early to 9.13 s once the prompt passed 500,000 tokens, against a median of 2.27 s with AXI over all 1,500 steps. The flat 2,824 tokens a step follows from the design: the host rebuilds the prompt from the held state at each step, so its size does not depend on how many steps have run.
All figures recompute from the saved run files: gaurshalendra2412/axi-runtime(architecture by Rajnish Choubey; tests by me).
Your post on structured retrieval makes a similar point, that exact things need exact handling. Do you keep your agents' state in a structured store today, and what happens when the model proposes a bad edit?
Ahmet Özel
Moving authoritative state out of the chat transcript and into a validated host-side layer is one of the cleanest architectural patterns for long-horizon agents. Dropping prompt size from an average of 476,835 tokens to a flat 2,824 tokens per step—and holding exact state across all 1,500 operations whereas the full-chat baseline drifted permanently after turn 286—shows that prompt caching alone cannot fix attention degradation in massive histories.
Rebuilding a minimal state snapshot after each atomic host-validated commit keeps both time-to-first-token and correctness bounded no matter how long the workflow runs.