Skip to content

Let Pickup continue work handed back after a Claim - #756

Merged
JacobStephens2 merged 2 commits into
mainfrom
issue-617
Oct 17, 2026
Merged

JacobStephens2 merged 2 commits into
mainfrom
issue-617

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Summary

Pickup can continue started work after a deliberate Day shift hand-back. Complete label history must establish the last Claim and the later ready label; never-Claimed work remains passed over. All other Ready issue gates still apply.

in-progress applied → in-progress removed → ready-for-agent applied
  → settling window → existing Run / Spec run dispatcher
    → preserve Issue branch and open PR per ADR 0002

Closes #617

Evidence

  • Before: cargo test --test pickup_run a_handed_back_branch_is_continued_without_losing_interrupted_work -- --exact failed: Pickup skipped the preserved branch and no PR was created.
    After: the same test passes and verifies the interrupted commit remains in the branch history.
  • cargo test --bin thirdshift ready::tests: 17 passed.
  • cargo test --test pickup_run: 65 passed, including open-PR/base preservation, same-second ordering, repeated Claims, missing/out-of-order hand-backs, multi-page history, and recent relabel settling.
  • cargo test: 1831 passed, 0 failed, 2 ignored across 43 test binaries.
  • cargo check --all-targets, cargo clippy --all-targets -- -D warnings, and cargo fmt --check passed.
  • The exact candidate GraphQL query also succeeded against GitHub in a read-only check.

Test seams

  • Ready issue search (Search::first_ready) with in-memory GitHub/origin reads: started hand-backs, other readiness gates and settling.
  • thirdshift pickup command with real git and fake GitHub/Harness: paginated label chronology and preserved branch/open-PR Continuation outcomes.

Review coverage

Independent Standards and Spec reviews found 0 findings on each axis and each read all 8 changed files. No changed file was left unread on either axis. The reviews used git diff main...HEAD, with main pinned to 7af795dc141b3bb64dea032c162bddc5adf5045a. Each axis's report and final files-read list are saved in .thirdshift-review-NyxGdX/standards.md and .thirdshift-review-NyxGdX/spec.md in the implementation worktree.

Unaddressed findings

  • Standards: none.
  • Spec: none.
  • Security: none. Guidance-mode review of git diff 7af795dc141b3bb64dea032c162bddc5adf5045a...HEAD and supporting code found no introduced Security findings. Reviewed label-history ordering and pagination, readiness gates, CLI argument handling, and Continuation branch/base selection against the relevant attack-class guidance and repository ADRs. The existing readiness tests (17) and hand-back-related integration tests (6) passed in a network-isolated, resource-limited sandbox.

Security review outcome

No unaddressed introduced findings.

Merge Danger

Door: two-way

Reverting restores the previous eligibility rule; no migration or branch deletion.

Blast Radius: Pickup

The shared Ready issue search also controls when Architect and Security runs yield to shaped work. Claim coordination and Security fix exclusions stay in force.

Built with codex · gpt-6.1-sol · high

@JacobStephens2
JacobStephens2 merged commit 7c43d8b into main Oct 17, 2026
18 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-617 branch October 17, 2026 11:49
@JacobStephens2 JacobStephens2 mentioned this pull request Oct 17, 2026
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.

Pickup runs continue a ready-for-agent issue the Day shift handed back after a failed Run

1 participant