Protocol

Set an allowed-file envelope before the agent starts

Review anchoring makes unrelated edits easy to miss when the requested fix looks correct.

About 1 min read

Before you use it

Use when
  • A small task produces a surprisingly wide diff.

Keep this limit in mind

  • Some legitimate changes reveal new required files during work; the envelope is a review trigger, not a ban on discovery.

An idea to explore.

Try this idea.

Inspect the example, try the idea in your situation, then check your next move.

Keep reading

Why it matters

Before execution, name the files or directories expected to change and sensitive areas that should not change. Afterward, compare the actual file list with that envelope. Require an explanation and extra review for every unexpected file rather than normalizing 'the agent cleaned things up.'

Steps

  1. Every changed file is either expected or explicitly justified and reviewed.

An example

A UI copy task that also changes a lockfile and workflow fails the envelope check even if the copy itself is correct.

Check your result

Every changed file is either expected or explicitly justified and reviewed.

Save and practise this idea

My learning

Read. Recall. Repeat.

Save this idea and return to it on any device.

Use email
Keep exploring

Connected ideas

You are readingSet an allowed-file envelope before the agent starts

Evidence and sources
Supports

OWASP recommends reviewing every file in an agent-generated change and flagging out-of-scope edits, especially lockfiles, CI configuration, tests and other sensitive files.

Automation can flag suspicious diffs but does not determine intent or correctness.

Secure Coding with AI Cheat Sheet · Out-of-Scope Edits and Review Anchoring

All sources (1)
Edition and review

Version 0.1.0

No review details are supplied for this edition.

Read this idea as JSON · Release details