Repository navigation
feat(pr-pipeline): run cut PRs' before-and-after evals in CI with a base-vs-head compare mode - #17930
Conversation
…d back from its run A github-actions[bot] comment that carries one eval-pair record line and one eval-pair-run line counts only when the release reads the cited run back: a completed, successful workflow_dispatch run of pr-run-plugin-evals.yml on the default branch whose run name names this pull request and the record's head. The author alone counts for nothing. A listed human's record counts as before. pr-merge passes the job's own token for the run reads, since the lane token holds no actions read. Refs: #17854 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…vals.yml A listed human dispatches compare mode on the default branch with a pull request, its head SHA, a plugin, an optional case or tag filter and a required cost cap. compare-arms.sh builds the before and after patches against the default branch from git objects only, for the plugin's changed skills, agents and evals paths that select-plugins.mjs lets through; nothing from the pull request runs. Each arm is a maintenance-measure-skill-edit-pass.yml pass on the maintenance API key alone. compare-verdict.mjs applies the desk kit's no-loss rules and fails the run on LOSS or VOID. On a PASS the record job, the only one that writes, re-checks the head and posts the eval-pair record with its run id. The pass workflow gains max-cost-usd and lane inputs and applies an edit whenever one is given. pr-merge's release step names the job token's API budget bucket. Closes #17854 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ove the changelog to a fragment A re-run of failed jobs skips compare-prepare's dispatcher check and re-samples an arm, so release-eval-hold.mjs counts only a run's first attempt and the record job posts nothing on a later one. Compare mode now needs a case or tag filter, so it runs the registered cases and never the whole suite twice. compare-head.sh gets its own test, the new scripts are executable, compare-arms.sh drops GNU readlink -f, and the pr-pipeline entry moves to a changelog fragment. Refs: #17854 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis 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: 5256375ffa
ℹ️ 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".
Lane run report
Run 44903368050, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
Lane-Activity: pr-refine/fix-docs
Lane run report
Run 44903368050, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
|
claude-security-review reviewed Security review: PR #17930 at
|
…udget checks The compare arms become catalog lanes in lane-funding.json, gated same-repo, and exempt from the subscription and fallback legs because compare mode runs on the API key alone (Q136). compare-prepare and compare-record are classified as switch gates, log their API budget at the end and wrap their gh calls. Each arm patch gets its own credential scan ahead of its upload, under one eval-compare-* retention family, and the compare-arms test isolates git from the host config. Refs: #17854 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
claude-review reviewed Code review: compare mode for cut PRs' before-and-after evals (#17930), head 2eaddb1Blocking only. Incremental. This lane already reviewed earlier heads, so this review reports only blocking findings. It covers only what changed since 84a6fae: the 8 files listed in No findings. This push closes a gap: a run whose jobs all skipped could still vouch for a record.
Settled and prior: This push touches neither settled thread's file ( Not verified: I had no shell and ran nothing. That the tests and CI pass is the author's claim. Loosened checks would be marked: fail. That is the default, because the wrapper gave no Verifier dropped 0 of 0 candidates. |
… || condition gh is the API budget's wrapper function there, so calling it under || switched off set -e inside it (SC2310); the read's status is now taken explicitly. Refs: #17854 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…al-compare-mode-17854
|
The pr-verify verifier failed head What it wrote (35 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
…asured plugin paths and void duplicate case names
release-eval-hold.mjs now also reads compare/{run head}...{default
branch} and counts a compare record only when the run's commit is on
the default branch: head_branch is a ref name a tag can share, and a
tag runs its own copy of the workflow. compare-arms.sh refuses a pull
request that changes plugin paths the arms do not carry (anything but
skills, agents, evals and tests), so a record never vouches for text no
run read. compare-verdict.mjs reads two cases with one name as VOID, so
a lost case cannot hide behind its namesake.
Refs: #17854
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…branch tip's SHA A bare branch name in the compare endpoint resolves to a tag of the same name first, so a tag named main could answer identical for its own commit. The release now reads refs/heads/<default> to a SHA and compares the run's commit against that; a tip that does not read keeps the hold. Refs: #17854 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lane run report
Run 44912850512, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
Lane run report
Run 44912850512, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
|
The pr-unblock lane stopped
When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean. To run it again on this head now, dispatch the gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=17930 -f activity=resolve-conflicts |
Lane run report
Run 44912850512, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
…54-20261121T1430Z # Conflicts: # docs/contracts/loop-lane/CHANGELOG.md
…st-scope line The suite reads every .github/workflows/*.yml (readdirSync at :559 and :594), and Test Selection failed because a change to one of those files did not select it (scripts/affected-tests.sh R8). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Session GitHub Work holds this pull request with the do-not-merge label while it fixes two open items: the Test Selection test-scope line for |
…Record job succeeded A compare dispatch on a tag named like the default branch skips every job (compare-prepare's ref gate) and still concludes success, so the run read back vouched for a record no eval produced. release-eval-hold now also reads the run's jobs and counts the record only when one job named Compare Record completed with success, from one complete page. callers.test.mjs declares its read of resolve-config/package.json in a test-scope line, as the Test Selection trace asked. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… RECORD_JOB A rename of the Compare Record job would make every CI record stop counting with no failing check; this assert ties the workflow's job name to the constant release-eval-hold.mjs requires. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The owner decided Q138 on 2026-11-21: option (a), resolve the claude-security-review threads on #17813 and #17930 that are fixed in code, and merge each once pr-verify and both review lanes are green at its head. Both lanes show 0 findings at 🤖 Generated with Claude Code |
Closes #17854
Summary
Cut pull requests' before-and-after evals can now run in CI instead of queuing on the desk. A listed human dispatches
pr-run-plugin-evals.ymlin a new compare mode, and a PASS posts the eval-pair record that releases the PR's eval hold.Trust change (owner decision Q136, option A; recorded in main's D183):
MAINTENANCE_CLAUDE_API_KEY. It arrives only as a patch built from git objects. It covers only the plugin's changedskills/,agents/andevals/paths, and only afterselect-plugins.mjslets every one of them through. No script, hook, workflow or manifest from the PR runs.github-actions[bot]comment can too, but only whenrelease-eval-hold.mjsreads the run the comment cites. That run must be the completed, successful first attempt of aworkflow_dispatchofpr-run-plugin-evals.ymlon the default branch. A re-run of failed jobs would skip the dispatcher check and re-sample an arm, so a later attempt never counts. The run's commit must also be on the default branch: the release readsrefs/heads/<default>to a SHA and checks with the compare API that the commit is that tip or behind it. A tag namedmaintherefore cannot stand in for the branch. Its run name, which the workflow sets from its own inputs, must beeval-compare pr=<this PR> head=<the record's head>. The run's jobs list, read whole from one page, must show itsCompare Recordjob completed with success: a run whose jobs all skipped (a dispatch on a tag, whichcompare-prepare's ref gate skips) still concludes success, and it vouches for nothing. The comment's author alone counts for nothing, since any workflow can post asgithub-actions[bot].issues: write. It checks out only the default branch, and it posts only after both arms and the verdict passed and the head check passes again.Fix
pr-run-plugin-evals.yml: newmode,pr,head-shaandcost-cap-usddispatch inputs, and arun-namethat only compare mode sets. Compare mode skips the suite jobs (thecheck-key-creditgate) and runs these jobs:compare-prepare(read only) checks the dispatcher, the kill switch, the inputs and the PR's live head, stopping before any run when the cost cap is missing or outside 1 to 12, or when no case or tag filter is set. It then builds and scans the two arm patches.compare-beforeandcompare-afterrun asmaintenance-measure-skill-edit-pass.ymlpasses and receive onlyMAINTENANCE_CLAUDE_API_KEY.compare-verdictchecks both arms' manifests and runscompare-verdict.mjs. It fails on LOSS or VOID, so a run whose jobs ran concludes success only on PASS.compare-recordrefuses a re-run attempt, re-checks the head and posts the record. The release requires this job, by its nameCompare Record, to have succeeded.compare-arms.sh: refuses a PR that changes plugin paths the arms would not carry (anything butskills/,agents/,evals/andtests/), and otherwise builds both patches against the default branch tip:compare-verdict.mjs: the desk kit's no-loss rules, ported fromresult.py. A case loses when its mean score drops by 0.15, or when any grader passes in 2 fewer after runs. Both arms must read VALID. Two cases that share a name make the run VOID. The comment holds counts and SHAs only, never model output, and any case name that is not a plain identifier is shown ascase N.compare-head.sh: one head check, run by both prepare and record, so a head that moved after dispatch gets no record.maintenance-measure-skill-edit-pass.yml: newmax-cost-usd(default 5) andlaneinputs. The patch now applies whenever an edit artifact is given; the measure workflow's a, a2 and b passes behave as before.release-eval-hold.mjs: addscitedRun,runVouchesandrecordJobRan, and reads at most 3 cited runs per PR, each with its jobs list.pr-merge.ymlpasses the job's own token asRUNS_TOKEN, because the lane token holds noactions: read.callers.test.mjsdeclares its read of.github/actions/resolve-config/package.jsonin atest-scopeline, as the Test Selection trace asked.eval-compare-*.Verification
lane-funding.jsonlanes, a key-only leg exemption,switchkill-switch gates, budget logging, and a credential scan per arm patch.node --test --test-concurrency=4passes onrelease-eval-hold.test.mjs(39 tests) andcompare-verdict.test.mjs(9), along withcallers.test.mjs(297),api-budget-coverage.test.mjsandcheck-kill-switch.test.mjs. The release tests also refuse a run whose commit is off the default branch, and a branch tip that does not read. The release tests refuse a forged run id, a wrong workflow path, a non-default branch, a non-dispatch, a failed or running run, a re-run attempt, another repository, a head mismatch, another PR's valid run, and a non-github-actions[bot]author. They keep the hold when the run's jobs all skipped, when it has noCompare Recordjob or that job failed, when its jobs list runs past one page, and when the jobs answer does not read. They accept a valid run, and a human record still releases.compare-arms.test.mjs(4) runs against git fixtures. Both patches apply to main. A refused script, cases-only changes, and changes outside the plugin's text all build nothing.compare-head.test.mjs(2) runs the head check against a stubgh. It refuses a moved head, a closed PR, a fork, another base and a failed read.workflow.test.mjs(12) asserts the done-when items:inherit;issues: write, after a fresh head check;RECORD_JOB.hill-climb-workflow.test.mjsandcredential-legs.test.mjspass.actionlintis clean on the three workflows, andscripts/check-affected.shis green (16 passed, 4 skipped).Related
docs/owner-decisions.md.Known limits
run-validity.pyreads that arm, so dropping it (--ablation none) is left to a follow-up that checks the validity verdict without it.holdDecisionand the release count only records posted after the newest hold label. A compare record posted before the scheduled step adds the eval hold is ignored, and the PR needs a fresh dispatch.🤖 Generated with Claude Code