Skip to content

Recover retained Review fixes and skip unchanged local conflicts - #1787

Merged
JacobStephens2 merged 5 commits into
mainfrom
issue-1780
Nov 5, 2026
Merged

JacobStephens2 merged 5 commits into
mainfrom
issue-1780

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

Review retry
  owned, clean descendant → recover checkout → review → deliver preserved fixes
  other local conflict → author pass notifies once per state → try next PR
                       → explicit PR fails with preservation advice

Closes #1780

Test seams: SkillWorktree::on_pull_request acquisition and the thirdshift review CLI, using real Git and fake GitHub/Harness/Resend adapters.

Evidence

Execution evidence

  • Before: cargo test --bin thirdshift retained_pull_request_repairs_are_recovered_at_the_same_checkout failed: 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.
  • Before: cargo test --test review_pass author_pass_skips_local_conflicts_and_notifies_once_per_state failed with exit status Some(1) where Some(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.
  • Before: the Spec review's cargo test --test review_spec_regression process_check_does_not_remove_a_running_review_checkout -- --exact --nocapture failed: process check removed active checkout; the live Review then failed with No 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.
  • Final scripts/affected-tests main passed on 3d9477f3: 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.
  • Final cargo clippy --all-targets -- -D warnings passed. 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:

Before
After

390×844, same expanded section and scroll state:

Before
After

How it works: expanded scheduled work

1440×900, same expanded section and scroll state:

Before
After

390×844, same expanded section and scroll state:

Before
After

Architecture: Review workflow

1440×900, same expanded section and scroll state:

Before
After

390×844, same expanded section and scroll state:

Before
After

Manual: Review runs

1440×900, same expanded section and scroll state:

Before
After

390×844, same expanded section and scroll state:

Before
After

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 -- --nocapture failed 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/null and -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

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.
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.

Review run: retained worktree with unpushed commits fails and emails on every scheduled pass

1 participant