Skip to content

docs: canonical-function discipline and toolchain-bump runbook - #1752

Merged
robcohen merged 2 commits into
mainfrom
docs/duplication-patterns
Jul 10, 2026
Merged

robcohen merged 2 commits into
mainfrom
docs/duplication-patterns

Conversation

@robcohen

Copy link
Copy Markdown
Member

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

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]>
@robcohen
robcohen requested a review from a team as a code owner July 10, 2026 16:07
Copilot AI review requested due to automatic review settings July 10, 2026 16:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread CLAUDE.md Resolved
@github-actions

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 100%
BQL Compatibility 100%
Full AST Match 100%
Total Files 811
What's tested
  • Check: Exit codes and error counts match bean-check
  • BQL: Query results match bean-query
  • Files: ~800 test files downloaded from 10+ beancount repositories

Full results available in workflow artifacts

@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@robcohen
robcohen merged commit 2afd728 into main Jul 10, 2026
38 checks passed
@robcohen
robcohen deleted the docs/duplication-patterns branch July 10, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants