Skip to content

teammate-idle hook loops and counts a milestone outside the lane's brief #98

Closed

Description

@lx-0

What happens

In ytstack 0.12.0 the teammate-idle hook fires again and again for a subagent lane that has already finished its brief and confirmed the idle with its lead. Each time it sends the same text: "13 task(s) still open in milestone M034 … confirm with the lead before going idle". One lane got it six times in a row.

Why it is wrong

  • It counts the open tasks of a milestone (M034) that is not the lane's milestone and that the lane's brief does not cover. The lane was dispatched for one task of M046.
  • It does not notice that the lead already confirmed the idle, so it loops. Every repetition costs a model turn for the lane and the lead.

Expected

  • The hook counts only the open tasks of the lane's own brief, or of the task or slice it claimed in the frontier, never those of an unrelated milestone.
  • Once the lead has confirmed the idle, or the lane has sent its final report, the hook stays quiet.

Seen

2026-11-16: a coordinator with several Agent-tool lanes. Every lane that finished (reviewers and implementers) reported the same M034 count.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions