Stop-hook goal evaluator keeps rejecting with identical feedback when the remaining work is gated on the user (no "blocked on user" state)
Similar to #91601, which was closed as completed, but still reproducing on 2.1.296–2.1.302 (WSL2).
Once the in-scope work is proven done and what remains depends on the user, the goal evaluator refuses every Stop with essentially the same text: 7+ times in one session, 10+ in another, and 6+ in a third. The remaining work depended on one of these:
- a human approval token;
- tasks owned by other agents;
- a decision about something visible on the user's screen;
- dates in the future.
The assistant had already asked the user to decide, so every new turn could only restate the status, and the evaluator rejected it again.
Repro:
- Set a goal whose condition includes work that needs user approval or a future date.
- Finish everything else and state the blocker.
- Every Stop is refused with the same reason.
Expected:
- an "awaiting user / blocked by owner" outcome that ends the turn without clearing the goal;
- or a cap on identical consecutive refusals.
Observed on 2026-10-12, 10-14 and 10-18.
Still reproducing on 2.1.322 (Linux, WSL2).
Repro
- Start the built-in
/goalwith a generic condition, e.g./goal implement docs/plan.md end to end. - Let the session finish all work it can do on its own until the only remaining step needs a user decision. The assistant asks the user and says it is waiting.
- After every assistant turn the goal evaluator re-prompts with a message like
[<goal>]: Not satisfied ... The condition is blocked on user input, not impossible. - The assistant replies with a short "waiting for your decision" line, and the evaluator re-prompts again.
Actual
- The evaluator itself says the goal is blocked on user input, yet returns "not met" instead of letting the turn end.
- It looped ~8 times in one session and ~150 times in an earlier one, burning tokens until
/goal clear. - The "several turns with no tool calls" guard did not stop it, presumably because some tool calls happened in between.
CLAUDE_CODE_GOAL_CHECKIN_MINUTES=0turns off check-ins but not the per-turn evaluation. The docs describe no user-wait state, pause command, iteration cap or configurable judge prompt.
Expected
When the evaluator concludes the goal is blocked on user input, it should stop re-prompting and wait for the next user message (or end the turn on AskUserQuestion). Alternatively, a /goal pause or a cap on identical consecutive "not met" verdicts.
Workarounds
/goal clear- Add an exit clause to the condition, e.g. "... or treat as impossible if a user decision is required".
Another reproduction, plus a proposal for the fix.
Setup: an interactive session with an open-ended native /goal that has no completion condition, for example "proactively ask the human for decisions; maintain and improve host X". The session did real work for a while, then reached a point where the only remaining items were waiting on the user or on a future date.
Trigger: the user rejected a tool call. The rejection text says "STOP what you are doing and wait for the user to tell you how to proceed." The model correctly stopped acting and replied "Waiting for you."
What happened: the goal Stop hook blocked every stop attempt, about 40 in a row. Each block re-fed the evaluator's feedback, which was nearly identical each time ("the /steps half is not met… the last message is 'Waiting for you.'… no operator release recorded"). Each block cost a full turn on a large context, and the only output was "Waiting for you." The evaluator also counted the user's rejected question prompts as unmet work. The loop ended only when the user typed /goal clear.
Side effect: other Stop hooks that need a tool call to comply (here, a hook requiring a freshly minted per-post ID) could not be satisfied, because the model was correctly not running tools. They fired again on every looped turn.
Proposal:
- Hard cap. After N consecutive Stop-hook blocks, allow the stop and show a one-line notice: "goal not met; evaluator blocked N times;
/goal clearor add a completion condition". N could be 2–3, configurable. Count blocks regardless of tool use. A loop that does a tiny real action each turn evades an "idle turns only" guard and can run for hours. A sister project (pi-goal) hit the same class of bug and is adding exactly this kind of ceiling. - Operator stop = pause. A user rejection or interrupt in the last turn should put the goal into a paused state that is actually persisted, not merely announced. The evaluator should not re-block until the user speaks again.
- Open-ended goals. When
/goaltext has no evaluable completion condition, say so when the goal is set, or offer a "standing / event-driven" mode in which waiting on a named person or date is a valid stop.
Related: #99656 (escape mechanism), #100010, #98066.
One addition on the "event-driven mode" idea above: it matters which side owns the wake.
A timer that wakes the model only for the model to discover nothing has changed is the expensive pattern. Each wake is a full turn on the whole context. The pattern that has worked for us is the reverse: a cheap external script decides first, and the model runs only when there is new work.
For the goal Stop hook, the cheapest version would be a hook point that lets an external command veto the block. For example, a goal option like --idle-check <command>: if the command exits 0 ("nothing changed since the last evaluation"), the stop is allowed without calling the evaluator model at all. The evaluator would run only when the check reports a change, or when there is no check. That gives event-driven goals for free, and it also bounds evaluator cost on long sessions.