Skip to content

CLAUDE.md: how to prepare a change for upstream - #171

Merged
cldellow merged 1 commit into
masterfrom
claude-md-upstream-commits
Nov 23, 2026
Merged

cldellow merged 1 commit into
masterfrom
claude-md-upstream-commits

Conversation

@cldellow

Copy link
Copy Markdown
Owner

Change

Adds a Proposing a change upstream section to CLAUDE.md, between "Issues and PRs" and "Testing changes". Before giving the compare link for a change upstream may merge, an agent prepares the branch:

  • One commit, rebased onto upstream/master, with iterations squashed. The commit is rebuilt with git cherry-pick or the merge-base diff (git diff upstream/master...BRANCH), never the two-dot diff, which also reverts whatever upstream merged since the branch's base.
  • Authorship: Claude <noreply@anthropic.com> as author, and the maintainer of this fork as the only Co-Authored-By trailer. No session link and no Claude co-author line.
  • Message: a subject that says what the change does; a body with the cause, the fix naming the functions it touches, and one or two measurements with full query text, dataset, cache state and machine, using the same numbers as the PR description. Correctness and memory claims are left to the PR description.
  • Upstream PR description: no fork-relative #N references and no fork-only tools.
  • Review: the agent shows the draft message before rewriting the commit.

Why

These are the conventions settled while preparing #68 and #8 for upstream:

Documentation only. No code or benchmark impact.


Generated by Claude Code

One squashed commit on upstream/master, rebuilt from the merge-base diff;
Claude as author with Colin Dellow as the only co-author; a subject that
says what the change does; measurements matching the PR description; no
fork-relative references or fork-only tools in the upstream description.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01736kJTiuJPoCWZs7RtFYjm
@cldellow cldellow added the docs Documentation only, e.g. CLAUDE.md label Nov 23, 2026 — with Claude
@cldellow
cldellow merged commit 7604972 into master Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation only, e.g. CLAUDE.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants