Repository navigation
Recover retained Review fixes and skip unchanged local conflicts - #1787
Merged
Merged
Conversation
Retained recovery and conflict inspection run git status, diff, and reset in the pull request checkout. A stale index made status execute the checkout's post-index-change hook. Those commands now set core.hooksPath=/dev/null and core.fsmonitor=false.
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
Closes #1780
Test seams:
SkillWorktree::on_pull_requestacquisition and thethirdshift reviewCLI, using real Git and fake GitHub/Harness/Resend adapters.Evidence
Execution evidence
cargo test --bin thirdshift retained_pull_request_repairs_are_recovered_at_the_same_checkoutfailed:the local branch feature differs from origin/feature(0 passed; 1 failed).After: the same command passed (
1 passed; 0 failed), recovering the original checkout and preserving its repair commit.cargo test --test review_pass author_pass_skips_local_conflicts_and_notifies_once_per_statefailed with exit statusSome(1)whereSome(0)was required, stopping at the first conflict.After: the same command passed (
1 passed; 0 failed), reaching the next PR and verifying notification suppression and changed-state/explicit-target notifications.cargo test --test review_spec_regression process_check_does_not_remove_a_running_review_checkout -- --exact --nocapturefailed:process check removed active checkout; the live Review then failed withNo such file or directory.After: the same command passed (
1 passed; 0 failed). Process inspection now uses separate detached scratch.cargo test --bin thirdshift worktree::review_recovery_tests: 13 passed. Dirty/staged work, invalid tokens/directory identities, rewritten history, locks, unfinished operations and changed captured heads remain preserved; pre-existing local branches keep their ownership.cargo test --test review_pass: 14 passed, 1 fixture entry point ignored.cargo test --test review_run retry_delivers_commits_retained_after_delivery_validation_failed: passed; both Review and Security repairs reach origin on retry.scripts/affected-tests mainpassed on3d9477f3: all 62 site checks and all 3,747 Rust tests passed (83 intentional skips), using Nextest 0.9.151 with eight test threads. Rust validation took 1,764.79s, including 25.57s compilation; total selector wall time was 1,828.89s. The earlier Cargo fallback was stopped to switch runners and validate the final reviewed commit.cargo clippy --all-targets -- -D warningspassed. CI also passed on the exact pushed head: CI run.Visual evidence
Home: expanded Skills and Processes
1440×900, same expanded section and scroll state:
390×844, same expanded section and scroll state:
How it works: expanded scheduled work
1440×900, same expanded section and scroll state:
390×844, same expanded section and scroll state:
Architecture: Review workflow
1440×900, same expanded section and scroll state:
390×844, same expanded section and scroll state:
Manual: Review runs
1440×900, same expanded section and scroll state:
390×844, same expanded section and scroll state:
Unaddressed findings
Standards
None. The review's one locality/duplication judgement was addressed by moving fingerprint observation into ownership recovery and sharing its operation-marker catalogue.
Spec
None. The review's one behavioral finding was reproduced with its exact command, fixed and retained as a regression test.
Security
None. Retained Review recovery was executing the checkout's post-index-change hook while git status refreshed a stale index.
cargo test --bin thirdshift retained_conflict_inspection_does_not_run_repository_hooks -- --nocapturefailed before the guard (exit 101,inspection executed a repository hook (adopted: true)) and passed after it. Recovery status, conflict diff, recommend-only reset, and the recovered-checkout status now pass-c core.hooksPath=/dev/nulland-c core.fsmonitor=false.Security review outcome
No unaddressed introduced findings.
Review coverage
Standards: 1 finding addressed. Spec: 1 finding addressed. Both axes read every changed file, including generated manual output. Unread changed files: none. Generated output exclusions: none.
Merge Danger
Door: two-way
Blast Radius: Review
Changes retained Review-worktree acquisition and author-pass conflict admission.
Built with codex codex-cli 0.164.0 · gpt-6.1-sol · xhigh