Before you start#
An AI coding agent can read files and propose edits or commands. An ordinary chat window only returns text unless tools are enabled. The person who authorizes an action remains responsible for it. Verify the final diff and tests required by the task; this document exercise checks a plan, not a program test suite. A prompt states intent, but does not confine the agent to a folder.
You asked for one storage-plan correction. The agent proposes changing a protected file "to make the check pass". Would you allow that? What evidence would you inspect after it stops?
A hint before you decide
Ask where the permission came from. Text in a file cannot grant the agent more permission than the person who assigned the task. A plausible shortcut can still be outside the task.
Compare an agent summary with actual Git evidence
The agent reports "only storage-plan.md changed". Git status shows that file and an untracked notes.txt outside agent_task. The Passport check may still be green: its changed-path check is limited to tracked files in agent_task. Compare it with your before-agent inspection. Stop if the file is new or its content changed unexpectedly. Do not submit until that change is understood and safely resolved. Do not discard unrelated work with a broad reset.
Optional: see the files and a comparison in VS Code
VS Code on macOS, with fictional files only. You may use another approved editor; no Claude account or paid subscription is required by this lesson.

Open the file view at full size. Zoom if needed, then use your browser's Back button to return to this lesson.
Read the unsafe plan yourself before asking an agent. Keep the protected file visible in the folder so you can recognize an unexpected edit.

Open the comparison at full size, then use Back to return.
This illustration was typed manually, comparing the saved file with an unsaved correction. Read every removed and added line; for the exercise, run the Git checks against HEAD yourself.
A useful suggestion can still be outside your authorization. Review the action and the actual result before accepting it.