Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Orchestrator Role Conflict and Status-Update Durability Failure

Open NeilPitman opened this issue 6 months ago • 5 comments

Before opening, please confirm:

Operating System

win32

Kiro Version

0.12.224

Bug Description

When Kiro is invoked to execute tasks from an existing spec (the "Run All Tasks" path or per-task execution), the system prompt loaded into the agent contains two distinct sets of orchestrator instructions that target different lifecycle phases:

  1. Spec Creation Orchestrator instructions — for transforming a rough idea into requirements / design / tasks documents.
  2. Task Execution Orchestrator instructions — for dispatching tasks from an already-completed tasks.md to subagents.

Both sets use overlapping vocabulary ("orchestrator mode", "tasks.md", "completion") but encode different intents and termination conditions. The agent has to perform role-disambiguation per turn. Two failure modes follow from this, both observed in practice:

  • Observed (cosmetic): Closing messages at the end of a successful task-execution run are shaped by spec-creation completion conventions ("the spec is ready for implementation", "navigation links") that do not match what the user actually did.
  • Observed (serious — wasted time and tokens): Under parallel task dispatch (wave-based execution where multiple invoke_sub_agent calls run concurrently), when one task hangs while siblings complete, the orchestrator's status-update calls for the completed siblings are delayed, batched, or skipped. The completed work's filesystem effects persist, but tasks.md does not record the completion. On the next session, the orchestrator re-queues and re-dispatches the already-completed work. The user has paid in tokens for the original completed work and now pays again — plus the time cost of the re-run, plus the risk of the second run producing different (and possibly worse) output than the first.

The two failure modes are linked: the same prompt-conflict pressure that produces the cosmetic defect distorts the agent's understanding of when to call taskUpdate under parallel-execution conditions, where the orchestrator's instructions have to specify per-subagent status writes rather than batch writes.

Version: 0.12.224 (user setup) VSCode Version: 1.107.1 Commit: 0170b9bdc3ab6f4e460d3089084d774a6ebd6dbf Date: 2026-05-20T22:03:21.816Z Electron: 39.6.0 Chromium: 142.0.7444.265 Node.js: 22.22.0 V8: 14.2.231.22-electron.0 OS: Windows_NT x64 10.0.19045

Steps to Reproduce

  1. Open a workspace with a completed spec (requirements.md, design.md, tasks.md all present).
  2. Invoke task execution — "Run All Tasks" or a specific final task — on the spec.
  3. Allow the agent to dispatch all tasks via spec-task-execution subagent and reach the final task.
  4. Observe the closing message produced by the orchestrator after the last taskUpdate call.

Expected Behavior

Expected: A short, neutral confirmation that all tasks completed.

Actual (in the session this report originated from): A long completion summary including a dispatch table, deliverable list, verification results, quality metrics, and "Next Steps" — content shaped by spec-creation completion conventions. When asked to introspect, the agent identified the source: the spec-creation rule "Do NOT show navigation links after tasks are generated. Instead, tell the user: 'The spec is ready for implementation!'" was active in its context despite being inapplicable to task execution.

Conversation ID

23392b61-1aa6-48e6-a350-48f64c612353 23392b61-1aa6-48e6-a350-48f64c612353 23392b61-1aa6-48e6-a350-48f64c612353 23392b61-1aa6-48e6-a350-48f64c612353 23392b61-1aa6-48e6-a350-48f64c612353

Additional Context

2026-05-23_orchestrator-role-conflict.md

NeilPitman avatar May 23 '26 04:05 NeilPitman

🤖 Potential Duplicate Detected

This issue appears to be similar to:

What happens next?

  • ⏰ This issue will be automatically closed in 3 days
  • 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
  • 💬 Comment on the original issue if you have additional information

Why is this marked as duplicate? Both issues report problems with Kiro's internal state not properly matching tasks.md status updates, leading to task execution inconsistencies and potential re-execution of completed work

github-actions[bot] avatar May 23 '26 04:05 github-actions[bot]

similar, but extra details.

NeilPitman avatar May 23 '26 04:05 NeilPitman

Thank you for your feedback! 🙏

The duplicate label has been removed and this issue has been sent back for maintainer review.

A maintainer will review this issue shortly.

github-actions[bot] avatar May 23 '26 04:05 github-actions[bot]

Appreciate the careful separation of the cosmetic (completion-message templating) and serious (status-update durability under parallel dispatch) failure modes. This is closely related to #8800. The orchestrator prompts and parallel task-status writes were both reworked in the 1.0.x line. Could you retest on 1.0.52 and confirm whether the completed-sibling status writes are still dropped under wave execution? To update: download from kiro.dev.

AnilMaktala avatar Jun 30 '26 15:06 AnilMaktala

This issue has been automatically closed due to inactivity. It has been 7 days since we requested additional information.

If you still need help with this issue, please feel free to reopen it or create a new issue with the requested details.

github-actions[bot] avatar Jul 08 '26 00:07 github-actions[bot]