Skip to content

docs(skills): stacked-PR merges, guard and fallback tests, MSYS free-text rewrites - #146

Merged
synthet merged 3 commits into
mainfrom
docs/lessons-stacked-prs-guard-tests
Nov 29, 2026
Merged

synthet merged 3 commits into
mainfrom
docs/lessons-stacked-prs-guard-tests

Conversation

@synthet

@synthet synthet commented Nov 29, 2026

Copy link
Copy Markdown
Owner

This PR adds lessons from a session that merged stacked PRs, added input guards and ran desktop tests. Every lesson cites what went wrong.

Skill Change Evidence
ship-pr, merge-pr Before merging, list open PRs whose base is this PR's head. Merge without --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. Merging lightroom-classic-mcp #6 with --delete-branch closed #7 instead of retargeting it. After the squash, #8 and #9 were DIRTY and needed the merge-base repair.
test-driven-development (step 3 and the checklist) Pair each guard or refusal test with the override and assert that it gets past the guard. Run the refusal tests once with the guard disabled. With fallbacks, assert which branch ran, or say which branches were never exercised. dxo-photolab-mcp dxomcp-xbkb3 was 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 to printWindow.
windows-agent-tooling MSYS also rewrites free text that starts with /, such as ticket text and commit messages. Use a body file, MSYS_NO_PATHCONV=1, or don't start the argument with /. A ticket's acceptance criterion stored /ws as C:/Program Files/Git/ws.

How it was made:

  • I edited the canonical .claude/skills files and regenerated the mirrors with scripts/sync_assistant_trees.py.
  • --check reports the trees in sync, and check_agent_frontmatter.py passes.
  • SKILL_INVENTORY.md has new Last reviewed dates.
  • The sync also rewrote 14 unrelated agent and rule mirrors with only line-ending changes. I restored them, so they aren't in the diff.
  • I checked the four files against the AST10 list: no new commands, hosts or credential paths. Each SKILL.md is under 500 lines.

🤖 Generated with Claude Code

synthet and others added 3 commits November 28, 2026 19:57
…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>
@synthet
synthet merged commit 954d598 into main Nov 29, 2026
1 check passed
@synthet
synthet deleted the docs/lessons-stacked-prs-guard-tests branch November 29, 2026 21:35
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.

1 participant