Repository navigation
State That a Worktree Does Not Use the Shared Git Stash - #2899
Conversation
The stash is one list per repository, shared by every worktree, so a stash pop in one worktree can pop another task's entry. The repo-worktree Skill's mandate now says a task commits work in progress on its own branch, or copies a file to its own scratch directory, instead.
…orization A task without commit authorization now reads a remedy it can follow, and the stash sentence drops a clause that repeated itself.
|
A recorded local strict-review pass covers head |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved review issues were identified.
0 open findings
What changed in this PR
Updates worktree guidance to prohibit shared git stash usage and document safer alternatives.
Changes:
- Adds stash-isolation guidance to the authored skill.
- Regenerates GitHub and Claude skill copies.
- Updates the source digest.
| File | Description |
|---|---|
.github/skills/repo-worktree/SKILL.md |
Generated GitHub skill copy |
.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md |
Generated Claude skill copy |
.claude-plugin/fleet-skills/.source-digests/repo-worktree |
Updated source digest |
.agents/skills/repo-worktree/SKILL.md |
Authored stash-isolation guidance |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2899 +/- ##
========================================
Coverage 59.63% 59.63%
========================================
Files 16 16
Lines 8684 8684
========================================
Hits 5179 5179
Misses 3505 3505
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…in (#2908) - #2899 states in the `repo-worktree` skill that a worktree does not use the shared git stash - #2905 accepts a folded dispatch guard in D4.1 and extends the 5B N/A rule to a schedule that never publishes - #2901 allows a comment to name the contract section holding its why, without restating it - #2906 reads the handoff chain from the issue connection rather than the search index Closes #2896 Closes #2889 Closes #2888 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
git stashkeeps one stash list per repository,refs/stash, and every worktree of that repository shares it, so agit stash popin one worktree can pop another task's entry. Therepo-worktreeSkill's "The Mandate" section now states that a task in a worktree does not usegit stash. It copies work in progress to a scratch directory of its own instead, or, where it is authorized to commit, commits it on its own branch.The scope is the Skill only. Whether
GOVERNANCE.md"Repository Boundaries and Write Safety" and the host-wide agent-safety block should also name the stash is a separate maintainer decision, filed as a follow-up.Changes
.agents/skills/repo-worktree/SKILL.md: one new bullet in "The Mandate". The section has no include region, so the text is source-authored..github/skills/and.claude-plugin/fleet-skills/: regenerated withpython3 scripts/build_dist.py, and--checkpasses.Verification
python3 scripts/prose_lint.py --diff <merge-base>passes, with and without--check sentence-length.python3 scripts/repo_gate.py --check eoland--check eol-coveragepass.python3 spec/validate.pypasses.python3 scripts/build_dist.py --checkpasses.scripts/docker_lint.py --linter markdownlint --linter editorconfig-checkerpasses.git-commit-conventions. The second pass raised none.Closes #2896
🤖 Generated with Claude Code