Attention Geometry

Positional layout of information across primacy, middle and recency zones.

Think of the last long contract you signed. You remember the opening: who the parties are and what is being sold. You remember the signature page and whatever was in bold just above it. The termination clause on page 14 is a blur, even though you technically read it.

Language models show a similar shape. Where a fact sits in the context changes how reliably the model uses it. Material near the start, such as the system prompt and the first instructions, tends to get used. So does material near the end: the latest tool result, the most recent message. Material buried in the middle of a long context is more likely to be passed over, even when it holds the answer. The paper "Lost in the Middle" (Liu et al., 2023) documented this: models answered questions more accurately when the relevant passage sat at the beginning or end of the input than when it sat in the middle.

The Guide calls this layout attention geometry. The context is a space with zones: primacy at the start, recency at the end, and a weaker middle between them. How strong the effect is varies by model and task, so treat it as a tendency to design around. The practical meaning is simple: position is a design choice.

In practice

Picture a travel-booking agent at turn 30. The traveler's constraint, "no flights landing after 9 p.m.," arrived at turn 4. Since then, 26 turns of flight searches have piled up after it, and the constraint now sits deep in the middle, under thousands of tokens of fares and layovers.

The agent books a 10:40 p.m. arrival. It never decided to break the rule. The rule was far from both edges, and the fresh search results at the end were loud.

The fix moves the constraint instead of repeating it in capital letters. A short state block, re-rendered at the end of every tool result, keeps the rules in the recency zone:

[state] turn 30 · budget 42% used
constraints: arrive_by=21:00 local · max_stops=1 · seat=aisle

Why it matters

Many long-session failures that look like "the agent forgot" are geometry problems. The information was present. It was in the wrong place. That makes some reliability available almost for free: decide where things go, instead of appending everything in the order it arrived.

What to do about it

H-01 Continuous State Anchoring keeps live state and standing constraints at the end of the window by re-rendering them each turn, so they never sink into the middle. H-14 Memory Metabolism shrinks the middle itself by clearing out finished work.

The 1D temporal ribbonLexicon · 081D Temporal RibbonThe linear token stream through which an agent perceives reality. is why geometry exists at all: the context is one long line, so every item has a position. Context loadLexicon · 13Context LoadTotal tokens competing for attention inside the context window. sets how wide the middle gets, since more tokens leave more room to get lost. Token gravityLexicon · 16Token GravityBulky or salient tokens warping subsequent next-token probabilities toward themselves. is the other half of salience: geometry is about where a block sits, gravity about how heavy it is.

esc

Try “tokens”, “errors”, “stale”, “handoff” or “blast radius”.