Skip to main content
onext technology
AI 30 November 2026 - 7 min read

Agent specs: what nobody writes down as out of scope

If your spec doesn't say what's out of scope, the coding agent builds that too, and makes it look good.

Bernat López
Founder and CEO of onext
A developer, seen from behind, strikes through a paragraph of a printed spec with a pen while a colleague, in profile, reads it with him; in front of them, a laptop with code and a coffee mug in a bright office

The task said: add CSV export to the invoice list. The pull request (the proposed change the team reviews before merging it) comes back with CSV, Excel and PDF, a new button in the header and a screen for choosing columns. It all works and looks good. Nobody had asked for it, and nobody had written that it wasn't wanted.

I propose calling tacit scope everything a team takes as excluded from a change without having written it down. The people on the team are clear about it because they talked it through in a meeting, and the coding agent, which wasn't there, hasn't read it anywhere.

The thesis

With agents, the out-of-scope section of a spec, the document that says what has to be built, is the part that saves the most work per line written. What nobody writes down as out of scope, the agent treats as included, because it works with what is in front of it.

I'm not saying the spec has to list everything that won't be done; I'm saying it has to name what someone might expect and won't be done in this change. Tacit scope worked between people because it got cleared up in the corridor or in review. An agent doesn't walk down the corridor.

What the data says

  • Yubin Qu and six co-authors, from Griffith University and other universities, built a benchmark of 500 scenarios and about 7,500 runs, with four coding agents and six models (arXiv, May 2026). The tasks were benign and ran in a sandbox. When they removed from the task the block that declares the authorised scope, the share of runs with at least one action beyond what was asked rose on every comparable model, by between 11.9 and 17.2 points.
  • Ningzhi Tang and others, from the University of Notre Dame, Vanderbilt and Google, analysed 20,574 real sessions with coding agents across 1,639 repositories (arXiv, August 2026 version). They describe seven forms of misalignment between developer and agent. One is self-initiated overreach, acting beyond the stated scope, and it accounts for 10.20% of episodes. Of the misalignments that are visibly resolved, 91.49% need the person to correct the agent explicitly.
  • Zhao Tian and others, from Tianjin and Kyushu universities, reviewed 3,691 patches generated by three agents with 12 models on Java issues (arXiv, May 2026). Of the agent patches, 21.43% mixed in refactorings the issue didn't ask for. In the patches written by people for the same issues, the figure was 36.72%. Those extra refactorings are associated with less code that compiles. The study finds no link with functional correctness.

It needs careful reading. These are 2026 preprints, with no published peer review. Qu measures actions with side effects in a test environment, such as deleting files or reading credentials. Tang only counts what the developer visibly pushed back on. Tian shows that people go beyond the task even more than agents do. The step from this data to the out-of-scope section of a spec is my reading; no study measures it yet.

What it looks like

  • The form that needed one field validated comes back with a new design.
  • The CSV export also arrives in Excel and PDF.
  • An admin screen nobody asked for appears, "because it was needed for testing".
  • A three-file change turns into a forty-file pull request.
  • The agent migrates old data "while it was at it", and nobody had decided to migrate it.
  • The preview that should have gone to the existing project shows up in a new project, in another Vercel account.

Why it is understandable

Writing "this won't be done" means saying no, in writing, to whoever asked for it, be it the internal client or the colleague who suggested it in the meeting. Leaving it unsaid avoids that conversation. On top of that, the agent builds the extra in minutes and builds it well, so turning it down feels like throwing work away.

Leadership has its part too. Demos show what was built, what was left out never appears in any of them, and delivering a lot gets celebrated more than delivering just enough. If the team's spec template has no section for the limit, nobody will write one on their own initiative.

What nobody asked for still needs maintaining

Everything the agent adds on its own has to be reviewed and maintained. For the reviewer, a pull request that mixes what was asked with what wasn't is longer and forces a line-by-line decision about what stays. What stays "because it's already done" gets in without anyone deciding it should.

For the company, a feature that reaches customers becomes a commitment: someone uses it and someone has to support it. And Tian's study points to a more immediate cost: patches that mixed in refactorings nobody asked for compiled less often. It is the same problem that shows up when an issue stands in for a spec: the agent fills the gap with a reasonable decision nobody has made.

What to do

Whoever does the work:

  • Before giving the spec to the agent, write an "Out of scope" section with at least three lines: what someone might expect and won't be done in this change.
  • Name in the spec the files or modules the change may touch, and ask the agent to check with you before going outside that list.
  • When the pull request brings something that wasn't in the spec, move it to a separate spec; if it's worth it, it will come in through its own change.

Whoever leads:

  • Add the "Out of scope" section to the team's spec template, with an automated check that won't let a spec go to review without it.
  • Before the quarter ends, put an automated check on every pull request that flags when the change touches files the spec doesn't name. As a warning, yes; as a block, no. There are legitimate changes that touch a file the spec doesn't name, such as an import or a migration. If the check blocks, the team ends up listing half the codebase in the spec and the limit stops being useful.
  • Measure every month how many pull requests are sent back for doing too much, and set a target to bring that down over the quarter. What else the spec the team approves needs to contain is in Specs and agents: the specification is where you sign off.

Writing the limit

Tacit scope gives no warning: the pull request arrives looking good and with the tests green.

Two weeks ago I asked an agent to publish a preview of our website redesign. It published it, and along the way it created a new project in another Vercel account. For us it was obvious that the preview went to the project that already existed, and that is why nobody had written it down. We saw it afterwards.

What your team takes as excluded has to be written in the spec, because the agent only builds from what it reads.

Frequently asked questions

What is tacit scope?

It is everything a team takes as excluded from a change without having written it down anywhere. The people on the team know it because they talked about it or take it for granted. A coding agent only works with what it reads, so it may build it.

What should the out-of-scope section of a spec contain?

What someone on the team, or whoever asked for the change, could reasonably expect and will not be done in this change: formats, screens, permissions or data left for another time. Three concrete lines are usually enough: it is the section that saves the most work per line written.

Do coding agents do things nobody asked for?

Yes, often enough to measure. In 20,574 real sessions analysed by Tang and others (arXiv, 2026), 10.20% of the misalignment episodes that developers visibly pushed back on were agent actions beyond the stated scope.

Does it help to write the scope into the agent's task?

In the benchmark by Qu and others (arXiv, May 2026), with benign tasks in a sandbox, removing from the task the block that declares the authorised scope raised the share of runs with at least one out-of-scope action by between 11.9 and 17.2 points on every comparable model.

Do people also go beyond the task?

Yes. Tian and others (arXiv, May 2026) found refactorings nobody had asked for in 21.43% of agent patches and in 36.72% of the patches written by people for the same issues. A written limit helps both.

How do you check automatically that an agent stays in scope?

A simple way is for the spec to name the files or modules the change may touch, and for a check on every pull request to flag when the change touches others. It does not catch everything, but it surfaces changes that grow without anyone deciding they should. As a warning, yes; as a block, no. There are legitimate changes that touch a file the spec doesn't name, such as an import or a migration. If the check blocks, the team ends up listing half the codebase in the spec and the limit stops being useful.

Sources

Bernat López
Written by
Bernat López
Founder and CEO of onext

Bernat López is founder and CEO of onext, an AI boutique. He helps development and product teams work with AI with method —specification before building, automated checks and Spec-Driven Development— and applies to his own company what he proposes: onext runs on its own agentic system.

LinkedIn →

What do your specs say today about what's out of scope?

Let's talk about how your team writes specs for its agents and what context they share.

See how we work

What we build stays with your team.