Skip to content

Read the Open Handoff Chain Through handoff.py tracks --json in Both Skills - #2910

Merged
ptr727 merged 2 commits into
developfrom
feature/handoff-skills-read
Oct 12, 2026
Merged

ptr727 merged 2 commits into
developfrom
feature/handoff-skills-read

Conversation

@ptr727

@ptr727 ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Closes on promotion: #2902

Both handoff skills read the open chain with gh issue list --label handoff, which GitHub answers from its lagging search index. They now run handoff.py tracks --json, which reads the repository's issue connection.

  • tracks --json prints number, title, track (null where the block is absent or unreadable), labels, and updatedAt. Exit codes are unchanged.
  • session-handoff step 1 and unattended-handoff's picker step 1 and worker blocked-promotion read use it. Picking order is unchanged.
  • Tests cover the JSON shape, the empty and fork cases, the filled-window refusal, and no search call. Each fails with the handler change reverted.

Local review: 7 findings. Fixed: strict labels read, label page size, step references, walk wording, $handoff path, null-track wording. Declined: the closed-side read fetching labels it does not use, since a shared query is simpler than two.

🤖 Generated with Claude Code

Copilot AI lite review requested due to automatic review settings October 12, 2026 20:34
@coderabbitai

coderabbitai Bot commented Oct 12, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 65a315d9-c847-4770-9e18-e540cc3aa6d4

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The reviewed implementation, tests, and distributed instructions have no unresolved findings.

0 open findings

What changed in this PR

This PR makes handoff selection read the repository's issue connection instead of GitHub's lagging search index, so recently opened or closed links are reflected in the handoff workflow.

Changes:

  • Adds tracks --json with the fields needed to select and rank open handoffs.
  • Updates both handoff skills to use that output and adds focused tests.
File Description
tests/​test_handoff.py Covers JSON output, edge cases, and connection-based reads.
scripts/​README.md Shows the new command option.
scripts/​handoff.py Implements tracks --json and label retrieval.
.github/​skills/​unattended-handoff/​SKILL.md Updates the distributed unattended workflow.
.github/​skills/​session-handoff/​SKILL.md Updates the distributed attended workflow.
.claude-plugin/​fleet-skills/​skills/​unattended-handoff/​SKILL.md Updates the plugin's unattended workflow.
.claude-plugin/​fleet-skills/​skills/​session-handoff/​SKILL.md Updates the plugin's attended workflow.
.claude-plugin/​fleet-skills/​.source-digests/​unattended-handoff Refreshes the generated source digest.
.claude-plugin/​fleet-skills/​.source-digests/​session-handoff Refreshes the generated source digest.
.agents/​skills/​unattended-handoff/​SKILL.md Changes the canonical unattended workflow.
.agents/​skills/​session-handoff/​SKILL.md Changes the canonical attended workflow.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Oct 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.77%. Comparing base (9b93724) to head (90b3eec).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2910      +/-   ##
===========================================
+ Coverage    59.75%   59.77%   +0.01%     
===========================================
  Files           16       16              
  Lines         8709     8713       +4     
===========================================
+ Hits          5204     5208       +4     
  Misses        3505     3505              
Flag Coverage Δ
python-3.13 59.77% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727
ptr727 merged commit 26b8da7 into develop Oct 12, 2026
14 checks passed
@ptr727
ptr727 deleted the feature/handoff-skills-read branch October 12, 2026 20:41
ptr727 added a commit that referenced this pull request Oct 12, 2026
…t Citation Fixes to Main (#2919)

- #2910 reads the open handoff chain through `handoff.py tracks --json`
in the `session-handoff` and `unattended-handoff` skills, not the search
index
- #2913 names the shared stash in the GOVERNANCE.md write-safety law and
the host-wide agent-safety block
- #2914 shares one GraphQL transport and cursor walker between
`pr_review.py` and `handoff.py`
- #2911 states the no-`push` condition in D4.1 and drops the `!=
'schedule'` form from the audit
- #2918 lets a comment cite a contract section without echoing it, and
cites the Concurrency exceptions by number

Closes #2902
Closes #2900
Closes #2903
Closes #2904
Closes #2907

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants