Repository navigation
docs(skills): stacked-PR merges, guard and fallback tests, MSYS free-text rewrites - #146
Merged
Merged
Conversation
…text rewrites Lessons from a session that merged stacked PRs and added input guards: - ship-pr, merge-pr: before merging, look for open PRs based on this head. Deleting their base branch closes them instead of retargeting, and a squash merge leaves each child conflicting. Merge without --delete-branch, retarget, then delete. After a squash, merge the base into the child, check the tree against the reviewed head, and gate again. - test-driven-development: refusal tests pass just as well on an argument error. Pair each refusal with the override, and run them once with the guard disabled. With fallbacks, a pass proves only the branch that ran. - windows-agent-tooling: MSYS also rewrites free text that starts with / (ticket text, commit messages). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflict in .agent/SKILL_INVENTORY.md: kept this branch's 2026-11-29 review dates. merge-pr: main added a one-line stacked-PR retarget note; folded it into this branch's Stacked PRs block, which now sits before "Use the merge method" instead of between that line and its code block. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e4f4fc0 was meant to merge origin/main but was committed without MERGE_HEAD, so it has one parent. This commit records origin/main (ed9fa7d) as the second parent with an unchanged tree (identical to e4f4fc0), so the PR diff shows only this branch's changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
This PR adds lessons from a session that merged stacked PRs, added input guards and ran desktop tests. Every lesson cites what went wrong.
ship-pr,merge-pr--delete-branch, retarget the children, then delete the branch. After a squash merge, merge the base into each child, check that its tree equals the reviewed head, and gate again. Prefer merge commits for a stack.--delete-branchclosed #7 instead of retargeting it. After the squash, #8 and #9 wereDIRTYand needed the merge-base repair.test-driven-development(step 3 and the checklist)dxomcp-xbkb3was rejected because its refusal tests passed on argument errors. A screenshot test passed while WGC never ran on the machine: every capture had fallen back toprintWindow.windows-agent-tooling/, such as ticket text and commit messages. Use a body file,MSYS_NO_PATHCONV=1, or don't start the argument with/./wsasC:/Program Files/Git/ws.How it was made:
.claude/skillsfiles and regenerated the mirrors withscripts/sync_assistant_trees.py.--checkreports the trees in sync, andcheck_agent_frontmatter.pypasses.SKILL_INVENTORY.mdhas new Last reviewed dates.SKILL.mdis under 500 lines.🤖 Generated with Claude Code