You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Guard the Attended Handoff Pick Against a Link a Live Session Holds #3679
session-handoff "The Attended Session" step 1 picks the open link with the newest updatedAt when the maintainer names none. It guards only auto-* links against a seat that may hold them now. The newest-updated link is also the one most likely to be held by a live attended session. A session that writes a round and then keeps working on a go-ahead given on the issue still holds that link.
What happened
A session resumed with a bare "handoff" picked a track whose round had been written minutes earlier. The maintainer's go-ahead comment had landed seconds before. The session that wrote that round was still live and acting on it. Both seats then drove the same promotion pull request:
Each posted an answer to the same reviewer headline, 49 seconds apart.
The second seat reached merge-and-release after the first had merged, released, and installed. It then spent several minutes re-verifying a gate on an already merged pull request.
The second seat only learned of the first when handoff.py new --dry-run named a round it had never read.
Expected
Step 1 treats a link updated within some short window as possibly held. It confirms with the maintainer before working it, as it already does for a named auto-* link. Alternatively, a live seat marks the link it holds, such as an in-progress label or a claim comment, and the pick skips a marked link unless it is named.
When the maintainer names no link, should the attended handoff pick treat a recently updated link as possibly held by a live session and confirm first, or should a live seat mark the link it holds so the pick skips it?
Options, recommended first:
(Recommended) Confirm on a recent update, window 60 minutes. Step 1 already reads each link's updatedAt from handoff.py tracks --json, so a default pick updated inside the window is put to the maintainer as a prompt before any work, as a named auto-* link is today. No new write, no new label, nothing to clear after an interrupted session, and it fails toward asking. It misses a seat holding a link longer than the window without touching the issue. The window value is the maintainer's call (60 minutes suggested, since the incident fell inside minutes).
Claim marker (an in-progress label or claim comment) set at pick and cleared at close, with the pick skipping a marked link unless named. Precise while every session closes cleanly. A session also ends by interruption, leaving a stale mark nobody clears, which needs an expiry and so brings the window back. It adds two outward writes per session, a handoff.py change, and for a label, a label-set change on every repository hosting a track.
Always confirm a default pick, no window. Simplest, and catches a link held longer than any window. It costs one reply on every bare "resume the handoff", which the section says should run without prompting.
Evidence:#3679 body (two seats on one promotion PR, 49 seconds apart); .agents/skills/session-handoff/SKILL.md:229-243 on develop 23c7d78 (step 1 picks newest updatedAt, guards only auto-* links); same file :246-250 and :321; scripts/handoff.py:1148-1175 (tracks --json prints updatedAt). No open PR touches these files.
Maintainer answer (2026-11-02, via decision triage): always confirm a default pick, no window.
When the maintainer names no link, the attended pick in session-handoff step 1 puts the chosen link to the maintainer as a blocking question before any work, whatever its updatedAt. No claim marker and no time window. This issue stays open as work.
No other group may edit these files while this claim stands. The orchestrator releases it at cleanup.
Park (2026-11-10): the change makes the handoff.py section of scripts/README.md describe the old round-mark rule. G1 holds that file. G4 drives its PR but does not merge until G1 merges and this claim is extended to that one sentence.
Claim extended (2026-11-10): G1 merged and released scripts/README.md, so this claim now also holds that file, limited to its handoff.py section. The park above is lifted.
Activity
ptr727 commentedon Nov 2, 2026
Decision triage: researched question
When the maintainer names no link, should the attended handoff pick treat a recently updated link as possibly held by a live session and confirm first, or should a live seat mark the link it holds so the pick skips it?
Options, recommended first:
updatedAtfromhandoff.py tracks --json, so a default pick updated inside the window is put to the maintainer as a prompt before any work, as a namedauto-*link is today. No new write, no new label, nothing to clear after an interrupted session, and it fails toward asking. It misses a seat holding a link longer than the window without touching the issue. The window value is the maintainer's call (60 minutes suggested, since the incident fell inside minutes).in-progresslabel or claim comment) set at pick and cleared at close, with the pick skipping a marked link unless named. Precise while every session closes cleanly. A session also ends by interruption, leaving a stale mark nobody clears, which needs an expiry and so brings the window back. It adds two outward writes per session, ahandoff.pychange, and for a label, a label-set change on every repository hosting a track.Evidence: #3679 body (two seats on one promotion PR, 49 seconds apart);
.agents/skills/session-handoff/SKILL.md:229-243on develop 23c7d78 (step 1 picks newestupdatedAt, guards onlyauto-*links); same file:246-250and:321;scripts/handoff.py:1148-1175(tracks --jsonprintsupdatedAt). No open PR touches these files.Blocks: none.
ptr727 commentedon Nov 2, 2026
Maintainer answer (2026-11-02, via decision triage): always confirm a default pick, no window.
When the maintainer names no link, the attended pick in
session-handoffstep 1 puts the chosen link to the maintainer as a blocking question before any work, whatever itsupdatedAt. No claim marker and no time window. This issue stays open as work.ptr727 commentedon Nov 10, 2026
Released (2026-11-10): PR #4034 merged into
developat becdb8c, and its branch and worktree are removed, so this claim holds no files.Backlog burndown claim (attended run 2026-11-10, round 1, group G4). Branch:
burndown/4013-session-handoff-fixes. Issues: #4013, #3679, #4018.Predicted file set:
.agents/skills/session-handoff/SKILL.md.github/skills/session-handoff/SKILL.md.claude-plugin/fleet-skills/skills/session-handoff/SKILL.md.claude-plugin/fleet-skills/.source-digests/session-handoffscripts/handoff.pytests/test_handoff.pyGOVERNANCE.md.agents/skills/agent-conduct/SKILL.md.github/skills/agent-conduct/SKILL.md.claude-plugin/fleet-skills/skills/agent-conduct/SKILL.md.claude-plugin/fleet-skills/.source-digests/agent-conductNo other group may edit these files while this claim stands. The orchestrator releases it at cleanup.
Park (2026-11-10): the change makes the
handoff.pysection ofscripts/README.mddescribe the old round-mark rule. G1 holds that file. G4 drives its PR but does not merge until G1 merges and this claim is extended to that one sentence.Claim extended (2026-11-10): G1 merged and released
scripts/README.md, so this claim now also holds that file, limited to itshandoff.pysection. The park above is lifted.Read a Handoff Round by Its Whole Shape, Confirm a Default Pick, and …