Skip to content

coordinate: no lane liveness check, no worktree cleanup, peer sessions not in state #84

Closed

Description

@lx-0

Experience

  • No liveness check: in a 4-day coordinator run, lanes finished and nobody took them over, so a phase had no worker from one evening to the next morning. The human had to ask whether agents were stuck.
  • No cleanup: 97 worktrees piled up, and the human had to ask for a cleanup.
  • Wrong peer session: after a compaction, the coordinator sent a prod request to the wrong session of another repository. It had written to the right one more than 200 times that day.

Why

  • ytstack-upkeep flags only lanes held for more than 24 h.
  • No check covers running rows whose worker already reported or went silent, or ready rows that wait without a holder.
  • No command lists worktrees and branches with their PR state.
  • Sessions in other repositories that a coordinator works with are not part of its state, so a compaction drops them.

Proposals

  1. ytstack-frontier check:
    • flags running rows whose worker reported, or whose branch had no commit for N minutes;
    • flags ready rows without a holder for more than N minutes.
  2. ytstack-upkeep --worktrees lists worktrees and branches with PR state and age and prints the git worktree remove / git branch -D commands, without running them.
  3. A ## Peers section in LANES.md (role, repository, address, last contact UTC), written by ytstack-frontier peer set and printed by the coordinate preamble and the Rotation block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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