Inference Distance

Probabilistic effort of accurately generating arguments across token span.

You need to enter a 16-digit gift card code at checkout. The card is in the kitchen. You read four digits, walk to the laptop, type them, and walk back for the next four. Somewhere in the second trip you swap a 6 and an 8. A clickable link carries the same information with far less chance of error.

In 1954, Paul Fitts showed that the time to hit a target with a pointer grows with the distance to it and shrinks with its size. Fitts's Law is why buttons in the corner of a screen are easy to hit. Agents don't move a mouse, but they face a similar problem every time they write an argument. The value they need sits somewhere earlier in the context window, and they have to reproduce it exactly, one token at a time. The Guide calls that effort inference distance. It grows with how far back the value appeared and with how long and arbitrary it is.

In practice

An agent listed rows from a spreadsheet tool forty turns ago and now needs to update one:

update_row(id="8f14e45f-ceea-467f-a0e6-2b1c9d7e3a51", ...)   long, random, far back
update_row(row="r4", ...)                                    short, local, easy to hit

The UUID is 36 characters with no pattern to anchor on, and it has to be copied from a turn that is now buried under thousands of tokens. One wrong character and the call either fails or, worse, matches a different row. The handle r4 is a big target close by. It is short, it was likely shown recently, and a wrong guess (r5) is easy for the tool to catch.

Line numbers are sneakier. They are short, but one edit near the top of a file shifts every number below it. The target is small and drifting.

Why it matters

Long inference distances produce the hardest failures to spot: plausible-looking arguments that are slightly wrong. A mistyped ID that happens to be valid writes to the wrong record. Even when the tool rejects the bad value, the agent pays a turn to look the value up again. How well an agent copies across a long distance varies by model, so test it again when you switch to a smaller, cheaper one.

What to do about it

H-07 Local Handles & Progressive Disclosure is the direct fix: hand the agent short, session-local references and keep them stable, so every target is big and nearby. H-10 Poka-Yoke Boundaries backs it up by validating handles at the call and rejecting stale or unknown ones with the current list, so a near-miss never becomes an action.

esc

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