Repository navigation
Stop obsolete Delivery and Repair work on PR lifecycle changes - #760
Merged
Merged
Conversation
JacobStephens2
added a commit
that referenced
this pull request
Oct 17, 2026
2026-10-17T15:23:25Z, host thirdshift. Uncommitted work at the time of failure is included in this commit.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Session stop guidance and generated prompts use the same lifecycle contract. Real changes and reconciled history still reach origin. An external merge remains a stopped Delivery, never a factory Self-merge.
Closes #730
Evidence
cargo test --test pr_lifecycle lifecycle_changes_stop_pending_ci_without_recreating_a_deleted_branch -- --exact --nocapturefailed: CI kept polling to green, then failed-run preservation recreated the deleted branch.After: the lifecycle regression passes for merged, closed, and draft transitions. Opening-session and Repair cases retain unpublished work, avoid stale body edits, and preserve session failures.
cargo test --test ci a_ci_fix_repair_that_makes_no_commit_gets_one_check_re_run_and_green_is_success -- --exact --nocaptureobserved three pushes for an unchanged Repair.After: one necessary publication, no empty Repair commit, and the Check re-run still delivers the unchanged head.
cargo check;cargo fmt --check;cargo clippy --all-targets -- -D warnings; focused CI, merge, readiness, lifecycle and ownership tests; generated-prompt checks;cargo test(full suite); release-script unit tests; site browser tests (npm test, 4 passed). All passed.Test seams
Unaddressed findings
Standards
None.
Spec
None.
Standards: 0 findings. Spec: 1 finding reproduced, fixed, and retained as a regression test. Both reviewers read all 26 changed files; unread changed files: none.
Security
None. Guidance review covered all 26 changed files against pinned merge base
5ac7005f07cb2f20c9dc65879509d612169d67f1, plus supporting code for PR identity, lifecycle gates, conditional publication, checkout ownership, and prompt/action binding. No introduced Security finding was established; no source changes were made.Validation in an isolated, network-disabled sandbox: 73 tests passed across
cargo test --offline --locked --test pr_lifecycle --test spec_push_race,cargo test --offline --locked --bin thirdshift worktree::synchronization_tests, andcargo test --offline --locked --bin thirdshift pull_request::(each with-- --test-threads=2).Security review outcome
No unaddressed introduced findings.
Merge Danger
Door: two-way
Blast Radius: Delivery
Adds lifecycle reads during Delivery and CI polling. When the PR is terminal or preservation cannot establish its lifecycle, work stays in the acquired checkout for the Day shift instead of being pushed.
Built with codex · gpt-6.1-sol · high