Bug Description
In orchestrator mode, the model can call attempt_completion even when:
- No todo list exists (no plan was created)
- Todo items remain incomplete (pending or in_progress)
The existing preventCompletionWithOpenTodos setting defaults to false, making it opt-in. Orchestrator mode relies on structured delegation through todo lists, so completion without verifying the plan is structurally premature.
After context condensation, the model may lose visibility of outstanding work and attempt completion early. While a separate PR (#11434) addresses the visibility side by including the todo list in the system prompt, completion enforcement is still needed.
Expected Behavior
In orchestrator mode:
- Completion should be blocked if no todo list exists
- Completion should be blocked if any todo items are not completed
- This should apply regardless of the global
preventCompletionWithOpenTodos setting
Impact
Orchestrator mode is designed for multi-step coordination. Premature completion means delegated subtasks may be abandoned or their results never synthesized.
Bug Description
In orchestrator mode, the model can call
attempt_completioneven when:The existing
preventCompletionWithOpenTodossetting defaults tofalse, making it opt-in. Orchestrator mode relies on structured delegation through todo lists, so completion without verifying the plan is structurally premature.After context condensation, the model may lose visibility of outstanding work and attempt completion early. While a separate PR (#11434) addresses the visibility side by including the todo list in the system prompt, completion enforcement is still needed.
Expected Behavior
In orchestrator mode:
preventCompletionWithOpenTodossettingImpact
Orchestrator mode is designed for multi-step coordination. Premature completion means delegated subtasks may be abandoned or their results never synthesized.