Repository navigation
Skip Review Repairs for unchanged Foreign commit trees - #758
Merged
Merged
Conversation
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
Skip Review Repairs when reconciled Foreign commits leave the reviewed tree unchanged. Preserve history, upstream-move accounting, and review of changed trees.
Review Repairs commit only file changes, prohibit empty commits, and preserve the PR body when there is no new review information. Actual declined findings still get recorded.
Closes #722
Evidence
cargo test --test merge_run a_tree_identical_foreign_commit_is_merged_without_a_review_repair -- --exactfailed: 2 sessions instead of 1.After: passes; the Foreign commit lands with only the implement session.
cargo test --bin thirdshift prompt::tests::a_review_without_file_changes_commits_nothing_and_preserves_review_information -- --exactfailed on the unconditional commit instruction.After: passes with conditional commits, no empty commits, and preserved declined-finding instructions.
cargo testpasses: 1846 passed, 2 existing ignored tests.cargo check --all-targets,cargo clippy --all-targets -- -D warnings, andcargo fmt --checkpass.Test seams
take_to_goaland its scriptedOutside: Review Repair decisions, baselines, merge completion, error propagation and separate budgets.prompt::review_repair: conditional commits and preservation of declined findings and PR information; generated prompt golden files.Unaddressed findings
Standards
None. The independent review of the combined branch reported no findings.
Spec
None. The independent review of the combined branch reported no findings.
Review coverage: Standards and Spec each read all 12 changed files, including generated output. No changed file was left unread.
Security
None. A single-session guidance review of
git diff 68c8efecd407d7a02992773b8f4cc6d33a0deef6...HEAD, including supporting code, confirmed no introduced security findings. Checked tree comparison and failure handling, checkout ownership, pinned Foreign commit observations, merge completion, Repair/upstream-move budgets, CI head binding, and the revised prompt.Focused local validation passed: 45 Repair-loop tests, 35 Worktree synchronization tests, 1 prompt test, and 32 merge integration tests. Execution used a network-isolated sandbox with read-only source/toolchain, an allowlisted environment, disposable scratch storage, and resource limits. One notification fixture passed on retry after exposing the system CA certificate bundle read-only to the sandbox.
Merge Danger
Door: two-way
Revert restores the prior Repair and prompt behavior; no data migration.
Blast Radius: Delivery
Merge runs skip only proven tree-identical reviews. Changed trees retain review, and comparison failures stop delivery.
6d03a63head, including all four macOS shards,test-macos, Linux checks, and site tests.Built with codex · gpt-6.1-sol · high