docs(rules): git-hazards #8 — vanished staged file means a coworker committed it - #338
Merged
Merged
Conversation
…ommitted it Session-distilled (2026-07): a staged file disappearing from a shared checkout, with git status flapping A→M across consecutive calls, was nearly misdiagnosed as pre-commit stash loss. The real cause was a coworker Claude session committing the file to main mid-flight. Codify the discriminator (git log -1 -- <path> before any recovery), the blind-restore downgrade risk, and status-flapping as the coworker tell. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LpXfWJDmEAgZ29o7Kkj9Ff
Contributor
|
| Status | Count |
|---|---|
| 🔍 Total | 170 |
| ✅ Successful | 160 |
| ⏳ Timeouts | 0 |
| 🔀 Redirected | 0 |
| 👻 Excluded | 9 |
| ❓ Unknown | 0 |
| 🚫 Errors | 1 |
Errors per input
Errors in exact_dot_claude/docs/prds/daily-catchup.PRD.md
- [404] https://docs.anthropic.com/claude-code/commands | Failed: Network error: Not Found
Full Github Actions output
Please fix the broken links before merging.
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.
What
Adds hazard #8 to
git-hazards.md(and bumps the header to "Eight traps"): in a shared checkout, a staged file that vanishes — withgit statusflappingA→Macross consecutive calls — usually means a coworker session committed it mid-flight, not that pre-commit's stash dance lost it.Codifies:
git log --oneline -3(did HEAD move?) +git log -1 -- <path>HEAD:<path>firstWhy
Distilled from a live incident this session: the wrong theory was minutes from being acted on, and the restored copy would have downgraded the committed version (it lacked frontmatter the coworker had added).
🤖 Generated with Claude Code
https://claude.ai/code/session_01LpXfWJDmEAgZ29o7Kkj9Ff