docs(CLAUDE.md): three lessons — pygments fix landed, LLM hallucination shapes, stash pop silent-skip#356
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
3 tasks
e18936a to
02a0e7d
Compare
…on shapes, stash pop silent-skip - Updated the mkdocs/pygments lesson to note the fix landed in PR #346: pymdown-extensions>=10.21,<11.0 in the docs extra. 10.21.0 is the upstream fix; CI was never broken, only stale local venvs locked to 10.20.x via uv.lock hit the crash. - New lesson: attune-author polish-pass hallucinations have six distinct shapes (CLI flag with inverted semantics, private-module imports, See-also cross-refs, numeric counts, route paths, missing security callouts). Three of six actively break readers. Root cause: LLM filling in surrounding scaffolding from priors rather than being constrained to source. Four-intervention ladder lives in attune-author#27 umbrella spec. - New lesson: 'git stash pop' silently skips overwriting tracked files when the destination branch tracks files the stash treated as untracked. No conflict marker, no warning. Hit this session during ops-dashboard regen — 3 of 11 regenerated files silently dropped onto a fresh branch. Diagnostic: 'git diff stash@{0} -- <path>' after pop catches the silent skip. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
02a0e7d to
3758d38
Compare
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.
Summary
Three lessons captured from this session's work:
Updated existing pygments / pymdown-extensions lesson — fix landed in #346 (bump
pymdown-extensions>=10.21,<11.0in docs extra). Companion finding: CI was never broken — only stale local venvs locked to 10.20.x via `uv.lock` hit the crash. Diagnostic note added for future troubleshooting.New: attune-author polish-pass hallucinations have six distinct shapes — empirical regression fixture from a single feature regen (ops-dashboard, 2026-05-14 via #351). Lists each shape with the concrete example, root-cause analysis (LLM filling surrounding scaffolding from priors rather than being constrained to source), and the four-intervention ladder (spec(docs): polish-fact-check — umbrella spec to reduce LLM polish-pass hallucinations attune-author#27 umbrella spec). Pattern generalizes beyond attune-author to any LLM content-generation pipeline.
New: `git stash pop` silently skips overwriting tracked files — when the destination branch tracks files the stash treated as untracked. No conflict marker, no warning. Hit this session during ops-dashboard regen — 3 of 11 regenerated files silently dropped. Includes diagnostic and mitigation.
Test plan
🤖 Generated with Claude Code