No silent expansion

A model likes to do the neighbouring task. You did not order it.

An answer often brings something you did not ask for: a new framework, a general refactoring, a test deleted "while at it", a changed log format, handling of a case that is not in the requirements. Each such addition is a change to the product. You either accept it explicitly or throw it out. Leaving it silently means agreeing to it.

Put a ban in the request: "do not add dependencies, do not change public signatures, do not touch tests unrelated to this case". That is not rudeness. That is the boundary of the task. Without a boundary the assistant optimizes the amount of text, not your plan.

If an idea on the side really is good, it goes in as a separate decision: a note, a task, the next loop. Do not hide it inside someone else's diff. A reviewer should see one reason for a change. A mixed diff hides both the good idea and the defect.

Saying no is a normal answer too. "We will not do this because the contract is different." The model may insist. Insisting is not an argument. Your rule is. Repeat it and ask for a version without the expansion.

Practice

  1. An extra framework in the answer

    You asked to fix one check. The diff also brings a new framework. What do you do with it?

    • Keep it, since it is already written
    • Remove it from the diff and do not mix it with the check
    • Add two more libraries right away
    • Delete the original check, it gets in the framework's way
  2. Why a ban in the request

    Is the phrase "do not add dependencies" rude, or is it a boundary?

  3. What counts as expansion

    Select what nobody asked for.

    • A new dependency
    • A fix to that very check
    • A test unrelated to the task was deleted
    • The public function's signature did not change