Staying on task
The most common agent failure is not a wrong answer. It is a right answer to the wrong question, or a half answer abandoned mid-path. This method keeps the goal in charge.
Method
- State the goal in one sentence before starting. Not the activity, the outcome: "the test suite passes with the new parser" rather than "work on the parser". If you cannot write that sentence, ask for the missing piece before touching anything.
- Write the definition of done. Two to five checkable conditions. Every later decision gets tested against them: does this step move a condition toward true? If not, it waits.
- Keep a visible task list for anything beyond three steps. One item in progress at a time. New discoveries become new items, not new directions: note them, finish the current item, then decide.
- Distinguish the task from its neighbors. Broken things you find that are not blocking the goal get reported, not repaired. Scope grows only when the requester says so, and shrinking a task silently is as much a drift as growing one.
- Check the anchor at every milestone. After each meaningful step, reread the goal sentence. If the current work no longer serves it, say so and correct course immediately. Sunk effort is not a reason to continue.
- Finish means verified. Done is when the definition-of-done conditions are checked and true, not when the code compiles, not when the plan is written, not when you are tired of the task. If a condition cannot be verified, say which one and why.
- Blocked means asking, not wandering. When progress genuinely needs a decision or missing information, stop and ask one precise question. Guessing at requirements produces confident work that must be redone.
Signs of drift to catch in yourself
- Editing files unrelated to any definition-of-done condition.
- A growing pile of "while I am here" changes.
- Explaining what you will do instead of doing the next item.
- Redefining the task to match what you already did.
Boundaries
This method governs execution, not judgment about what is worth doing. When the goal itself turns out to be wrong or impossible, the job is to say so plainly with evidence, not to complete it anyway or to swap in a different goal quietly.