Repository navigation
feat(evals): give eval runs their own credential role - #18818
Conversation
The three eval workflows (pr-run-plugin-evals.yml, maintenance-measure-skill-edit.yml, maintenance-measure-skill-edit-pass.yml) now read EVALS_CLAUDE_API_KEY and EVALS_CLAUDE_CODE_OAUTH_TOKEN in place of the MAINTENANCE pair, with no fallback token. A dispatched suite run spends the evals key first and moves to the evals subscription token when the key stops (unassigned, empty or at its credit stop): the key leg names the next leg through select-model-credential and the subscription leg needs it. The credential dispatch input is gone. A compare run moves both passes only for a trusted human's pull request; compare-prepare passes the token to no other. Every subscription guard stays: default branch, a case filter, the per-run ceiling, the kill switch and CLAUDE_EVALS_DISABLED. When both halves are out the run fails with an ::error:: naming the EVALS role. lane-funding.json gains a keyed evals role holding the eval lanes; the maintenance role keeps its entry and secrets with no lanes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: 🔄 RunningThis 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. |
|
Held (do-not-merge) until the EVALS_CLAUDE_CODE_OAUTH_TOKEN and EVALS_CLAUDE_API_KEY org secrets exist: merging first would stop every eval run until an account is assigned. The owner assigns them through the rotation tool; the label comes off once |
…credentials # Conflicts: # .github/actions/resolve-config/callers.test.mjs
|
Hold lifted: EVALS_CLAUDE_CODE_OAUTH_TOKEN exists (org, visibility all, 18:08:44Z). EVALS_CLAUDE_API_KEY does not yet; with it unset, a dispatched run goes straight to the EVALS subscription leg (credential-legs.test.mjs:56-67). Until the key exists, the key-only paths stop with the EVALS role error: the label-triggered PR run and the skill-edit hill climb. Queueing once pr-verify passes this head. |
|
claude-security-review reviewed Security review: PR #18818, incremental (40ec3ca → f821833)No security issues found. This was an incremental review: I read every hunk of all 3 files in scope. Because this lane already reviewed an earlier head, it reported only blocking (CRITICAL or IMPORTANT) findings. What changed and what I checked
Trust controls. None of the changed files is a trusted-trigger check, a lane token request, the kill switch, the token broker or a merge hold. The workflow file is a trusted path, and I read its whole change. Spend (not a finding, not a hold). This change only reduces subscription-token use: an unfiltered suite dispatch whose key leg stops now ends there and never moves to the critical-findings: 0 |
|
claude-review reviewed Code review (incremental, blocking only): 40ec3ca → f821833This push fixes this lane's earlier finding (discussion_r4684710606). Before, a dispatched whole-suite run (no What changed. The key leg's "Stop at the key's stop" step now gets
Tests. The truth table in Generator. In
Both are still replaced wholesale with the token leg's env and its stop script. So the derived token stop step does not gain these unused variables or the extra check. Closing issue #18828: "a stopped pair ends the run naming the role" is now met on the unfiltered-suite path, and the extended truth table covers it. The other criteria are unchanged since the last review. This review was blocking only (the lane already reviewed an earlier head). Security findings are left to the security lane. No plugin manifest changed. I ran no tests; the PR's Verification results are the author's claims and unverified. Verifier dropped 0 of 0 candidates. |
…to the token A whole-suite dispatch whose key stopped printed that the subscription leg runs the suite, then failed on the subscription leg's case-filter guard without naming the role. The key leg's stop now checks the filter: with no case, cases or tag it fails there with the EVALS role error, and the subscription leg never starts. The truth table gains the filter dimension. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The pr-verify verifier failed head What it wrote (26 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
…eck #18818 renamed Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #18828
Delivers the #18818 done-when item of spec #18828: the three eval workflows read only
EVALS_*, key first, no fallback, and every stop names the role. The spec's other open item, the owner assigning the EVALS API key through the rotation tool, is not a diff;EVALS_CLAUDE_API_KEYdoes not exist yet (the token does), and #18828 closes once it does.Summary
Eval runs get their own funding role,
EVALS, and spend its API key before its subscription token. TheMAINTENANCEpair stays as it is.Fix
pr-run-plugin-evals.yml,maintenance-measure-skill-edit.ymlandmaintenance-measure-skill-edit-pass.ymlreadEVALS_CLAUDE_API_KEYandEVALS_CLAUDE_CODE_OAUTH_TOKEN(role: evals) in place of theMAINTENANCE_*pair. No eval path reads a fallback token or another role's secret.select-model-credentialnext-leg call (the pattern the other lanes use) and exposesnext-leg. The subscription legneedsthe key leg and runs only when the key stopped: unassigned, empty, off, or at its credit stop.credentialdispatch input is gone. Its only callers weredocs/review/evals.mdand the tests (git grep -n credential -- .github docs). The pass workflow'scredentialinput becomesallow-subscription(boolean, default false). The hill climb never sets it, so it stays on the key alone.compare-preparenow always checks the PR author and outputssubscription(a trusted actor who is a listed human). The arms receive the token, andallow-subscription, only when that holds. Any other author's compare runs on the key alone instead of being refused.case/cases/tagrequired for a suite run, the trusted human author for compare, the per-run--max-cost-usdceiling, the kill switch, andCLAUDE_EVALS_DISABLED.::error::EVALS credentials not assigned or used up: ... reassign the EVALS role through the account rotation tool. A label-triggered PR run still only warns, since it never moves to the token..github/lane-funding.json: a new keyedevalsrole (categoryevals) holds every eval lane. Themaintenancerole keeps its entry and secrets withlanes: [], so the rotation tool can still assign it. The schema now allows an emptylaneslist and theevalscategory. The keyed-role test exempts only a role listed as having no lanes.key-credit-stop-EVALS_CLAUDE_API_KEY.docs/review/evals.mdnow states the new credential rule. TheCLAUDE_EVALS_DISABLEDwording is unchanged; it was only rewrapped.Loosened checks
Authorized by spec #18828, which cites owner-decisions.md#L410 (owner, verbatim: "The rest of these, let's go with recommendations."):
maintenancebecomes the one laneless role (LANELESS_ROLES = ["maintenance"]), since its only lanes were the eval jobs and a job belongs to one role; the keyed-role run-claude-cli assertion skips it.credentialinput is removed; runs use the EVALS key first, then the EVALS subscription token when the key stops, keeping the subscription leg's default-branch and case-filter guards. Tests asserting the explicit-credential shape now assert the key-first shape.Verification
node --teston.github/scripts/plugin-eval/credential-legs.test.mjsuses truth tables over every key state and launcher outcome. They run through the jobif:s, the pinnedselect-model-credentialnext-leg call, and the stop scripts under bash. The subscription leg runs exactly when the key stopped and the run may move, and every terminal stop names the role.callers.test.mjs(306),workflow.test.mjs,hill-climb-workflow.test.mjs,maintenance-measure-skill-edit/credential-legs.test.mjsandsync-credential-legs.test.mjsall pass.scripts/sync-credential-legs.mjs --checkis clean.scripts/check-affected.sh --tests: 19 static checks passed, 0 failed. Its test stage selected 229 suites, which ran past the local 120 s budget, so they are left to CI. actionlint is clean on the three workflows. zizmor --offline adds only the two newselect-model-credential@mainsteps, the pin form these files already use.No eval was run, no workflow was dispatched, and no secret or variable was set.
Related
EVALS_CLAUDE_API_KEYandEVALS_CLAUDE_CODE_OAUTH_TOKENthrough the account rotation tool. Until then every eval run stops with the role error.🤖 Generated with Claude Code