Extrapolation is the whole reason you use an agent, and the whole risk of using one, because they are the same mechanism. So the question is never how to stop it — it is where it should be wide and where it must be narrow.
The thing I wanted for years and could not afford to build, what it sounds like when a terminal is navigable by heading, and why I still did not start by asking an agent to write it.
We were always the engineer and the bricklayer, because in software putting the walls up is itself an ultra-qualified job. Something else can lay the bricks now — which does not make you less of an engineer, it makes you only an engineer.