test(strategy): add red tests for squash-inheritance edge cases

main

Commit

Soph1w ago

The squash half of the adversarial review of #2574 (split from 4a5df627d0; the redo half moves with the reset PR). Each test asserts the linkage a user would want.

Failing (2):

  • PostCommit condenses into an inherited checkpoint that is not in the local store: a declined -m squash of a teammate branch.
  • Squash with an edited file strips git's seeded trailer (regression from main).

Passing guard (1): user-copied trailer not duplicated.

Co-Authored-By: Claude Opus 5.5 (1M context) noreply@anthropic.com Entire-Checkpoint: 01M39Z82DNW59G3G4CW26CE1EQ

Checkpoints

Track Subagent Work Across Worktrees

Claude CodeOpus 5.5
View session
Checkpoint 1