Skip to content

docs(workflow): stop pinning a model name in the commit-trailer rule - #291

Merged
sydevs-bot merged 1 commit into
mainfrom
claude/docs-workflow-commit-trailer
Oct 13, 2026
Merged

sydevs-bot merged 1 commit into
mainfrom
claude/docs-workflow-commit-trailer

Conversation

@sydevs-bot

Copy link
Copy Markdown
Contributor

Summary

  • AGENTS.md's commit-trailer rule named one model and omitted the Claude-Session: line every recent commit carries, so following it literally produced the wrong attribution.

Change outline

Contract — the commit-trailer rule, paraphrased from AGENTS.md ("Overall instructions")

-End every commit with `Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>`
+End every commit with two trailers: `Co-Authored-By:` naming the model that wrote it, then
+`Claude-Session:` linking the session
+Take both from the session's own attribution; this file pins neither, because a fixed
+model name goes stale at the next release

Preview

No deployed surface — the diff is one AGENTS.md bullet.

Test results

  • Lean gate: ✓ lint + typecheck + test:run (139 files, 1701 tests)
  • Targeted specs: none apply — no spec reads this file's prose
  • Build: N/A

Notes for reviewer

Found while writing this session's own commits on #285, where the file and the practice disagreed with nothing to say which was current. On origin/main's last eight squashed commits the bodies carry Co-Authored-By: Claude Opus 5 39 times against the documented name's 13, and Claude-Session: on every one.

Open questions

Pinning the exact trailer is the alternative, and it is defensible: a literal string is checkable, and claude-workflow could sweep it the way it syncs the comment rules across the five repos. This PR takes the other side — the model name is a property of the run, not of the repo — because nothing checks the line today and the version that was pinned had already drifted. Say which you want and I will land it the other way.

Closes nothing — filed as an incidental finding from #285, with no ticket.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

The rule named `Claude Opus 4.8 (1M context)`, and the trailer is whichever model
wrote the commit — the last eight squashed commits carry `Opus 5` 39 times against
that name's 13. It also omitted the `Claude-Session:` line every recent commit has,
so an agent following the rule literally wrote one trailer too few and the wrong
name in the other.

Found while writing this repo's own commits: the file and the practice disagreed,
with nothing to say which was current.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Fykc2h9oeU3kcq72LoWcuL
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying sahajatlas with  Cloudflare Pages  Cloudflare Pages

Latest commit: 926cd41
Status: ✅  Deploy successful!
Preview URL: https://fdb8b8ee.sahajatlas.pages.dev
Branch Preview URL: https://claude-docs-workflow-commit.sahajatlas.pages.dev

View logs

@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Adversarial review skipped: 1 file(s), 7 changed line(s), under review.skipWhen. Say @sydevs-bot review to force one.

🤖 sydevs dispatcher

@sydevs-bot
sydevs-bot added this pull request to the merge queue Oct 13, 2026
Merged via the queue into main with commit 89cb6b0 Oct 13, 2026
23 checks passed
@sydevs-bot
sydevs-bot deleted the claude/docs-workflow-commit-trailer branch October 13, 2026 05:06
@sydevs-bot sydevs-bot moved this from Revising to Done in SYDevelopers Technical Roadmap Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants