Skip to content

Orchestrator can complete tasks prematurely without verifying todo completion #11435

@0xMink

Description

@0xMink

Bug Description

In orchestrator mode, the model can call attempt_completion even when:

  1. No todo list exists (no plan was created)
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions