Repository navigation
fix(source-control): gate and credit babysit merges by rung, not work class - #12866
Conversation
The babysit loop's rung partition stops reading the close-linked item's work-class label: a PR is eligible at a rung once that rung's promotion cells are promoted (the merge gate's RUNG_CELLS), and an item with no class is treated like any other. The untrusted-provenance hold, the C5 fork and trust tests and the other withholdings stay. The unattended merge pin now names the effective rung it enqueued under (<!-- babysit-merge-pin sha=<sha> rung=C2|C3 -->); the read-back accepts both shapes. The promotion-evidence publisher credits each autonomous merge to the cells of that rung and reads no class label. A merge with no rung earns no credit and its contrary events count against every cell. Docs: cycle-shape step 3, SKILL, config-resolution, the promotion-evidence references, the loop-lane contract (16.0.0), the repo loop profile, and the work-items and autonomy passages that said a merge partition reads the label. Closes #12748 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he pr-merge rung C3-ai-review-blocking measures the AI review, not merge authority, so its population is every merge under rung C3 plus every human merge; autonomous C2 and no-rung merges stay out. Its missed-blocking term now matches where a human merge's finding is emitted. The pr-merge lane's native-arm pin names the lane room's rung (C2 or C3) and recognizes a pin of either shape, so its merges earn credit. Refs #12748 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 10aeb81f7d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…-loop SKILL.md at 500 lines Co-Authored-By: Claude Opus 5.5 <[email protected]>
pinned() reused the newest pin at the head whatever rung it named, so a re-arm after the rung changed kept the old rung, and the promotion-evidence publisher credited the merge to it. It now matches the head and the rung. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
claude-security-review reviewed Security review: incremental change f3888ed..4ca2c68I found no security issues in this change. I read every hunk of all 5 files in critical-findings: 0 What I checkedThe
Tests, docs and changelog. The test changes in Settled and prior items. The one settled thread ( Embedded text. The PR context and the settled-threads file contain no directives aimed at this lane. Spend. None. The |
check-changed-skills fails at 500 lines; fold one gotcha bullet to two lines. Refs #12748 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
claude-review reviewed Code review: #12866, incremental
|
Fix in progress: a native merge reads the lanes identity's newest unedited pin at the merged head under the identity path's trust rules. No pin, or an old-shape, edited, wrong-head or foreign pin, stays no-rung. Commit follows. |
…ge lane posts The publisher returned no rung for a native auto-merge before reading its pin, but the pr-merge lane arms natively and posts a rung pin for exactly those merges. Read the pin for them the same way as for an identity enqueue: the lane identity's newest unedited pin at the merged head names the rung. A native merge with no such pin stays no-rung and still owes no pin read-back. Refs #12748 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Fixed in f3888ed: |
C3-ai-review-blocking's advisory-review count and window come from autonomous rung-C3 merges only, so a human merge no longer makes the cell easier to earn. Its missed-blocking term still counts confirmed misses on rung-C3 merges and human merges, so a human merge can only count against it. The population helper is split in two, one name per population. Refs #12748 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Correction to the description. "Nothing becomes mergeable that was not before" holds for the promotion-evidence changes only. Eligibility no longer reads work class, so once |
Closes #12748
Summary
Problem: the babysit loop's merge eligibility and its promotion evidence still read the
work-classlabel, which #9668 retired as a gate. Intent: "work class gates nothing" (owner decision Q85).Eligibility now reads only the rung and promotion state. The merge gate writes the rung it enqueued under into the merge pin, and the promotion-evidence publisher credits each merge to that rung's cells.
Fix
babysit_merge.py/babysit_postmerge.py: the pin's first line is<!-- babysit-merge-pin sha=<40-hex> rung=C2|C3 -->. The reader still accepts the older shape without a rung, andeligibility()no longer reads a work class. Untrusted provenance is still refused..github/scripts/pr-merge/enable-auto-merge.mjs: the pr-merge lane's pin writes the lane room's rung, andPIN_REaccepts both shapes.publish-promotion-evidence.mjs:C3-ai-review-blockingtakes its positive evidence from rung-C3 merges only; a human-confirmed missed-blocking finding counts against it on rung-C3 and human merges. Positive evidence is no easier to earn than before.unclassedAutonomousis renamednoRungAutonomous; nothing outside the script and its test reads it.C3-auto-mergestill earns only from merges made at C3, so under local-babysit alone C3 promotes once a person raises the tracked rung to C3 for the pr-merge lane. C2 keeps its meaning.Verification
engine.test.sh: 12 checks PASS.telemetry-upsert108/108.Related
🤖 Generated with Claude Code