Skip to content

docs: tighten commit organization rules in electron-chromium-upgrade skill - #52681

Merged
MarshallOfSound merged 1 commit into
mainfrom
docs/chromium-upgrade-skill-commit-organization
Aug 7, 2026
Merged

MarshallOfSound merged 1 commit into
mainfrom
docs/chromium-upgrade-skill-commit-organization

Conversation

@claude

@claude claude Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Requested by Samuel Attard · Slack thread

Description of Change

Addresses David Sanders' review feedback on the #52567 Chromium roll by closing the gaps in this skill's commit guidelines that caused it. The rules live in the skill (rather than the roll workflow's prompt) so every consumer gets them: the CI roll, local e auto-roll / interactive sessions, and — once backported — release-branch rolls. The CI side keeps only an informational duplicate-CL warning (companion change: electron/agent-workflows#32).

Before / After (what a roll reviewer sees)

Before:

After:

  • Each upstream CL maps to exactly one non-fixup commit across both phases. Later discoveries for an already-committed CL fold into the existing commit via git commit --fixup + autosquash rebase; if the rebase conflicts, the lint-legal fixup! commit stays, keeping the pairing visible.
  • When one patch file carries hunks from multiple unrelated CLs, they are staged per CL with git add -p; multiple Ref: lines are reserved for genuinely inseparable adaptations.
  • A final self-check before wrap-up verifies the one-commit-per-CL invariant.
How
  • references/phase-two-commit-guidelines.md: before creating any {CL-Number}: {title} commit, check git log --oneline --grep={CL-Number} for an existing commit for that CL (it may exist from Phase One, an earlier build-fix iteration, or from before a context compaction) and fold instead of duplicating; narrowed the "You may include multiple Ref links if required" allowance to genuinely related changes.
  • references/phase-one-commit-guidelines.md: "Atomic Commits" now states one commit per upstream CL and requires per-CL hunk staging (git add -p) when a single patch file carries changes from unrelated CLs.
  • SKILL.md: new final Phase Two step — scan full commit messages with git log --format='%h %B' (full bodies, since Ref: lines don't appear in titles) and verify each CL is referenced by exactly one non-fixup commit.
Evidence

From the Actions run transcripts of the rolls behind the feedback (electron/agent-workflows runs; private repo):

Duplicate commit — run 30632784160 (the #52567 roll): Phase One committed patch-context fixes as 8131017: Delete V8 extensions registration infrastructure. In Phase Two, after the build broke on shell/renderer files, the agent read references/phase-two-commit-guidelines.md (transcript event 497), said "Committing the two Phase Two fixes now." and ran git add shell/renderer/... && git commit -m "8131017: Delete V8 extensions registration infrastructure ..." — a second commit for the same CL, exactly as the guidelines prescribed: they call for a fresh {CL-Number}: {title} commit and never say to check for an existing one.

Same bug recurring — run 30911796144 (2026-08-04 roll): CL 8140059 committed twice, both in Phase Two, the second after a context compaction ("This session is being continued from a previous conversation that ran out of context.") — the compaction case the new git log --grep check covers.

Grouped commit — run 30632784160: add_didinstallconditionalfeatures.patch and chore_expose_isolate_parameter_in_script_lifecycle_observers.patch each carried hunks from two unrelated CLs (8171126 brace reformat + 8131017 API removal). The agent staged both whole files into one commit with two Ref: lines ("chore: update script lifecycle observer patches for upstream changes") — file-level git add cannot separate them, and the old multi-Ref allowance permitted it.

Blast radius (per the team's ground rules, diffed against past rolls): under these rules, run 30632784160's 6 proposed commits become 5 single-CL commits; run 30911796144's 10 become 9 (second 8140059 folds cleanly — disjoint files); runs 31008231164 and 31103944271 produce identical output.

Checklist

Release Notes

Notes: none


Generated by Claude Code

…skill

Review feedback on #52567 flagged two commit-organization problems in
agent-driven Chromium rolls, both traceable to gaps in this skill's
commit guidelines:

- Two commits for the same upstream CL (8131017): Phase One committed
  the patch-context fixes, then Phase Two hit build fallout from the
  same CL and the phase-two guidelines prescribed a fresh
  `{CL-Number}: {title}` commit without ever saying to check for an
  existing one. Fixed by requiring a `git log --grep` check before any
  CL-titled commit and folding into the existing commit with
  `git commit --fixup` + autosquash (keeping the lint-legal `fixup!`
  commit if the rebase conflicts).

- Unrelated CLs (8171126 + 8131017) grouped into one commit because
  they dirtied the same .patch files and the guidelines' multi-Ref
  allowance had no "genuinely related" qualifier. Fixed by requiring
  per-CL staging with `git add -p` and narrowing when multiple Ref
  lines are appropriate.

Also adds a final self-check step to the Phase Two workflow: scan full
commit messages (`git log --format='%h %B'` — Ref lines live in
bodies) and verify each CL maps to exactly one non-fixup commit.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Fbjy87RXmaLqHXr8nhofJU
@electron-cation electron-cation Bot added documentation 📓 semver/patch backwards-compatible bug fixes new-pr 🌱 PR opened recently labels Aug 6, 2026
@claude claude Bot added semver/none and removed documentation 📓 semver/patch backwards-compatible bug fixes new-pr 🌱 PR opened recently labels Aug 6, 2026
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Aug 6, 2026
@MarshallOfSound
MarshallOfSound marked this pull request as ready for review August 6, 2026 22:37
@MarshallOfSound
MarshallOfSound requested a review from a team as a code owner August 6, 2026 22:37
@MarshallOfSound MarshallOfSound added target/42-x-y PR should also be added to the "42-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. labels Aug 6, 2026
@MarshallOfSound
MarshallOfSound merged commit 8b74fbd into main Aug 7, 2026
67 checks passed
@release-clerk

release-clerk Bot commented Aug 7, 2026

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "44-x-y", please check out #52690

@trop

trop Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "42-x-y", please check out #52691

@trop trop Bot added the in-flight/44-x-y label Aug 7, 2026
@trop

trop Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "43-x-y", please check out #52692

@trop trop Bot added in-flight/42-x-y and removed target/44-x-y PR should also be added to the "44-x-y" branch. labels Aug 7, 2026
@trop trop Bot added in-flight/43-x-y merged/43-x-y PR was merged to the "43-x-y" branch. merged/42-x-y PR was merged to the "42-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. and removed target/42-x-y PR should also be added to the "42-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. in-flight/43-x-y in-flight/42-x-y in-flight/44-x-y labels Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y merged/42-x-y PR was merged to the "42-x-y" branch. merged/43-x-y PR was merged to the "43-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. new-pr 🌱 PR opened recently semver/none

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants