Repository navigation
docs: canonical-function discipline and toolchain-bump runbook - #1752
Merged
Merged
Conversation
Distills the 2026-07 duplication review (PRs #1731-#1743) into standing guidance: the one anti-pattern every found bug traced to, the ranked remedies (call the canonical / document divergence at both sites / drift-guard test), the current canonical inventory, the two supporting test-hygiene rules (#1729, #1742), and the lockstep toolchain-bump procedure learned from #1745/#1751. Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates contributor guidance in CLAUDE.md to capture lessons from the 2026-07 duplication review, focusing on avoiding logic drift via canonical functions, documenting deliberate divergence, and adding drift-guard tests; also documents a runbook for Rust toolchain bumps.
Changes:
- Adds a “Canonical-Function Discipline” section describing the duplication anti-pattern, preferred remedies, and a curated list of canonicals to reuse.
- Documents two testing standards: hermetic environment assumptions and “fail loudly” behavior for availability-gated tests.
- Adds a “Toolchain Bumps” runbook describing lockstep pinning and verification steps.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
Co-Authored-By: Claude Fable 5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Phase 3 of the duplication review: folds the review's distilled lessons into CLAUDE.md so contributors (human or agent) inherit them.
Docs only.
🤖 Generated with Claude Code