Skip to content

Add tests and docs for worktree reattach prune fix (#4394)#4403

Merged
rysweet merged 2 commits into
mainfrom
feat/issue-4394-drive-pr-4394-in-rysweetamplihack-through-merge-re
Apr 23, 2026
Merged

Add tests and docs for worktree reattach prune fix (#4394)#4403
rysweet merged 2 commits into
mainfrom
feat/issue-4394-drive-pr-4394-in-rysweetamplihack-through-merge-re

Conversation

@rysweet

@rysweet rysweet commented Apr 18, 2026

Copy link
Copy Markdown
Owner

Follow-up to #4394 (merged). Adds:

  • 13 regression tests in tests/recipes/test_worktree_reattach_prune_4394.py
    • 5 static YAML analysis tests verifying prune placement after rm -rf
    • 8 live git tests confirming the bug/fix behavior
  • Retcon doc docs/recipes/step-04-worktree-reattach-prune.md — problem statement, solution, 3-state diagram, reproduction steps
  • README update — cross-reference in worktrees/README.md

All pre-commit hooks pass (ruff, pyright, prettier, secrets).

- tests/recipes/test_worktree_reattach_prune_4394.py: 13 tests (5 YAML static + 8 live git)
- docs/recipes/step-04-worktree-reattach-prune.md: full retcon doc
- worktrees/README.md: cross-reference to prune doc

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@rysweet rysweet force-pushed the feat/issue-4394-drive-pr-4394-in-rysweetamplihack-through-merge-re branch from 1cb80a1 to c5074e3 Compare April 18, 2026 21:43
Automatic checkpoint to preserve work in progress.
Tests and implementation saved before refactoring phase.
@rysweet rysweet force-pushed the feat/issue-4394-drive-pr-4394-in-rysweetamplihack-through-merge-re branch from c5074e3 to d4f4fe4 Compare April 18, 2026 21:44
@github-actions

Copy link
Copy Markdown
Contributor

Repo Guardian - Passed

All changed files in this PR are durable repository artifacts. No ephemeral content detected.

File Assessment
docs/recipes/step-04-worktree-reattach-prune.md ✅ Durable recipe documentation for step-04-setup-worktree behavior
tests/recipes/test_worktree_reattach_prune_4394.py ✅ Regression test suite (issue number in filename is standard practice)
worktrees/README.md ✅ Durable documentation update

Generated by Repo Guardian for issue #4403 ·

@github-actions

Copy link
Copy Markdown
Contributor

PR Triage Report

PR #4403 — Add tests and docs for worktree reattach prune fix (#4394)


Classification

Field Value
Type Tests + Documentation (follow-up to merged #4394)
Risk 🟢 Low
Author rysweet (repo owner)
Has Tests Yes (13 regression tests)
Recommendation Needs review before merge

Files Changed

File Status Lines
docs/recipes/step-04-worktree-reattach-prune.md Added +138
tests/recipes/test_worktree_reattach_prune_4394.py Added +342
worktrees/README.md Modified +9

No production code changes. All changes are tests and documentation.


CI Status

  • ✅ 28 of 30 checks pass (Validate Code, GitGuardian, Root Hygiene, Docs validation, etc.)
  • Check skill/agent drift — likely a false positive; no skill/agent files were added or modified
  • Atlas PR Impact Check — likely a false positive; atlas staleness check triggered by new test file referencing the recipe, but atlas itself was not changed

Recommend verifying these two failures are pre-existing or unrelated infrastructure noise before merging.


Test Coverage

  • 5 static YAML analysis tests (verifying prune-after-rm-rf pattern in both State 2 and State 3)
  • 8 live git tests (confirming bug/fix behavior with real git repos)
  • Edge cases covered: no stale refs, healthy worktrees unaffected, double rm-rf, full YAML sequence simulation

Suggested Labels

triage:low-risk · triage:has-tests · triage:needs-review · triage:complete


Other Open PRs — Staleness Notice

The following PRs have been open for 16–18 days and are still awaiting review:

PR Title Age Risk
#4216 feat: safe Anthropic disablement via ANTHROPIC_DISABLED flag 16d Medium
#4199 fix(recipe-runner): auto-update rust runner binary on version mismatch 16d Low
#4198 fix(knowledge_builder): guard --dangerously-skip-permissions against copilot binary 16d Low
#4186 docs(multitask): add TIMEOUT_LIFECYCLE.md and update reference docs 16d Low
#4112 docs: clarify required vs optional API keys in .env setup 18d Low (external contributor)

PR #4396 (automated docs draft) expires today (April 19, 2026) and is labeled triage:auto-merge-candidate.

Generated by PR Triage Agent ·

@rysweet rysweet merged commit d5b8065 into main Apr 23, 2026
28 of 30 checks passed
@rysweet rysweet deleted the feat/issue-4394-drive-pr-4394-in-rysweetamplihack-through-merge-re branch April 23, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant