Skip to content

Read the Open Handoff Chain Through handoff.py in the Handoff Skills, Not the Search Index #2902

Closed

Description

@ptr727

Problem

gh issue list --label handoff is answered from GitHub's search index. That index is updated after a write lands, not when it lands. scripts/handoff.py now lists the chain through the repository's own GraphQL issue connection instead, on branch feature/handoff-consistent-reads. The skills still tell an agent to read the open chain with the search-backed command:

  • .agents/skills/unattended-handoff/SKILL.md, the picker's step 1 and the worker's open-handoff read.
  • .agents/skills/session-handoff/SKILL.md, step 1 of the attended session.

The unattended picker runs straight after the previous worker's new closed one link and opened the next. That is exactly the read-after-write case, so the picker can pick the link just closed or miss the new one. The agent then re-reads and retries, and that costs time and tokens.

Fix

Have the skills read the open chain through handoff.py. The skills use gh issue list today because tracks prints neither labels nor update times. So tracks (or a --json form of it) likely needs to carry what the picker reads. Regenerate the distributions with scripts/build_dist.py.

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