Repository navigation
ci(evals): run evals on the API key alone, never subscription tokens - #18268
Conversation
Delete the subscription and fallback legs from pr-run-plugin-evals.yml and maintenance-measure-skill-edit-pass.yml, and from generate-edit in maintenance-measure-skill-edit.yml (owner decision Q14). A key that is off, empty, skipped by the credit gate or stopped mid-run now ends the run at a "Stop at the key's stop" step: a warning for a suite or label run, a failure for a measuring pass or the proposer, so no caller reads an artifact that was never uploaded. The pass takes only MAINTENANCE_CLAUDE_API_KEY from its callers, and lane-funding.json lists the eval lanes key-only. callers.test.mjs gives them a permanent key-only exemption citing docs/review/evals.md instead of a #13586 "not yet" entry. The two credential-legs truth tables are rewritten for the key-only chain. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
PR body contract — issue linkage This PR body conforms to the issue-linkage contract. Nothing to do. |
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. |
|
claude-security-review reviewed Security review: PR #18268, incremental (cad3e64 → 087c596)No security issues found. This review covered only the new push and reported blocking findings only, since this lane already reviewed an earlier head of the pull request. I read 1 of 1 changed files in full. What changed: the push edits one line in Controls checked: the push touches no merge hold, trusted-actor list, lane-token scope, kill switch or plugin manifest. Declaring that the test reads resolve-config's PR context: the description matches the pull request, and nothing in it is addressed to the review lane. Spend: this push changes no spend. critical-findings: 0 |
|
claude-review reviewed Code review (incremental, blocking only): PR #18268,
|
The stop step fired whenever the credential step's present output was not 'true', which also held when an earlier step (the kill switch, a trust check) failed and skipped the credential step, so it logged a false "API key stopped" next to the real reason. It now requires the credential step to have succeeded, and the truth table covers a skipped credential step. model-job-permissions.test.mjs's floor drops from 40 to 36 model jobs: the four deleted subscription and fallback legs are the difference. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ge.json Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The pr-verify verifier failed head What it wrote (30 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
Closes #18272. Owner decisions Q14 (https://github.com/melodic-software/architecture/blob/82e424b1e753943442cd6359f3a6896a5f661f2b/docs/owner-decisions.md#L341) and Q53 (https://github.com/melodic-software/architecture/blob/82e424b1e753943442cd6359f3a6896a5f661f2b/docs/owner-decisions.md#L340); #18272 quotes the owner's words and names each loosened check. Merges after #18269, which adds
docs/review/evals.md.Summary
The suite and label legs of
pr-run-plugin-evals.yml, the measuring passes ofmaintenance-measure-skill-edit-pass.ymland thegenerate-editproposer fell back from the maintenance API key to the subscription and central fallback tokens on their own. FlippingCLAUDE_EVALS_DISABLEDtofalsewould have let any eval run spend plan usage unasked. Compare mode was already key-only (Q136, #18234).Fix
pr-run-plugin-evals.ymlandmaintenance-measure-skill-edit-pass.yml, along withgenerate-edit's subscription and fallback steps. The pass takes onlyMAINTENANCE_CLAUDE_API_KEYfrom its callers.Stop at the key's stopstep. It warns on a suite or label run, and fails a measuring pass or the proposer, so no caller reads an artifact that was never uploaded.lane-funding.jsonlists the eval lanes key-only.callers.test.mjsgives them a permanent key-only exemption that citesdocs/review/evals.md, replacing the ci(lanes): run every model lane on the same key, subscription and fallback chain #13586 "not yet" entry, and it now covers compare mode too.Scope
docs/review/evals.md(docs(review): codify when evals run, which cases, and on what #18269);generate-edit's non-eval siblings; any other lane's legs.Tradeoffs
Deleting the legs instead of gating them behind a variable removes about 1,900 lines nothing would run, and avoids a second switch beside
CLAUDE_EVALS_DISABLED. Bringing the subscription path back means reverting this PR.Risk
Low: evals are switched off org-wide (
CLAUDE_EVALS_DISABLED=true), and the change only removes credentials.select-model-credentialat the pinned commit still prints its own notice ("the subscription job runs") when the credit gate skips the key; the stop step that follows says what actually happens.Verification
node --test --test-concurrency=4):callers.test.mjs,check-kill-switch,check-upstream-status,plugin-eval/*,maintenance-measure-skill-edit/*,release-eval-hold,label-unblocked.credential-legs.test.mjstruth tables are rewritten. The old ones held the deleted three-leg chain to its pre-action expressions; the new ones drive every key state (set or empty, switched off, gate-skipped) and every launcher outcome from the pinnedrun-claude-clicontract through each workflow's own conditions.actionlintandzizmor --offlineare clean on the three workflows.git grep -cE "secrets\.[A-Z_]*CLAUDE_CODE_OAUTH_TOKEN"on both eval workflows finds nothing.Related
CLAUDE_EVALS_DISABLED(Q52, Q53).docs/review/evals.md, and the validate stale-reference checks (feat(evals): fail dangling skill, agent, path and tag references in validate #18267).After merge
Mark issue 18235 (the subscription headroom pre-step) moot by hand, since no subscription eval path is left, and tell the AI Hero session (#18188, #18222) that the switch may be set to
falsefor a decided, costed run once the org API key returns.🤖 Generated with Claude Code