Skip to content

ci(evals): run compare passes on one arm and add an org eval master switch - #18234

Merged
kyle-sexton merged 3 commits into
mainfrom
ci/eval-compare-subscription-opt-in
Nov 22, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
ci/eval-compare-subscription-opt-in

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

No related issue: owner decisions Q52 and Q53 of the eval-run-policy interview (2026-11-22, this session: "Yes, go with recommendations.").

Summary

Two eval CI controls. First, compare runs spent half their agent runs on a no-plugin arm that compare-verdict.mjs never reads. Second, nothing stopped an agent session, which acts under the owner's login and passes the listed-human check, from labeling or dispatching an eval run that spends the automation accounts' usage.

Fix

  • Compare passes run the with-plugin arm only (--ablation none). compare-verdict.mjs reads only arms.with, so the verdict is unchanged and the agent runs halve. maintenance-measure-skill-edit-pass.yml gains an ablation input (empty or none); hill-climb passes keep both arms.
  • New org variable CLAUDE_EVALS_DISABLED as the master switch. The entry job of every eval path runs only while the variable reads exactly false: check-key-credit and compare-prepare in pr-run-plugin-evals.yml, check-inputs in the hill-climb, and the shared pass's check-key-credit. An unset or mistyped value keeps evals off, the same as the lanes kill switch. The variable is set to true now.
  • Compare mode stays on the API key alone, per owner decision Q136 (#17854), which the owner kept as Q53. An earlier commit on this branch added a subscription opt-in; it is reverted.

Verification

  • node --test on .github/scripts/plugin-eval/{workflow,hill-climb-workflow,credential-legs}.test.mjs: 29 of 29 pass. That includes a new test pinning vars.CLAUDE_EVALS_DISABLED == 'false' on all four entry jobs, and the ablation: none lines.
  • gh variable list -o melodic-software shows CLAUDE_EVALS_DISABLED=true.
  • No eval was run.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01RAoAtTQ8rMTZethQ3AV5ZP

kyle-sexton and others added 2 commits November 22, 2026 15:39
…one arm

Compare mode passed only MAINTENANCE_CLAUDE_API_KEY, so with the org's API
keys disabled a compare run (45062297747) ran nothing. A new
subscription-opt-in input hands the passes MAINTENANCE_CLAUDE_CODE_OAUTH_TOKEN
only when the dispatcher sets it; the fallback token is never passed. The
passes also run the with-plugin arm only (--ablation none), since
compare-verdict.mjs reads only that arm: half the agent runs for the same
verdict.

The pass workflow gains an ablation input (empty or none) so hill-climb passes
keep both arms.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RAoAtTQ8rMTZethQ3AV5ZP
A compare run on the subscription token spends plan usage, and no documented
read of that account's remaining weekly usage exists for CI yet. Refuse an
opted-in dispatch whose cost-cap-usd is above 5, so one such run stays near
25 agent runs per pass; split larger case sets across dispatches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RAoAtTQ8rMTZethQ3AV5ZP
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 22, 2026 20:43
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T20:45:04.664520Z eb8f722 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 7a35339cb30bb6063b5e3d41bfeca37f1ba18344: read 5 of 5 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, blocking only): no security issues found

This review covers only the changes since eb8f722, in 5 files: pr-run-plugin-evals.yml, maintenance-measure-skill-edit.yml, maintenance-measure-skill-edit-pass.yml, and the two test files in .github/scripts/plugin-eval/. I read every hunk of each. Because an earlier head was already reviewed, only CRITICAL and IMPORTANT findings would be reported.

Subscription opt-in removed: this narrows secret exposure.

  • The subscription-opt-in input is gone. So are its cost-cap guard and the MAINTENANCE_CLAUDE_CODE_OAUTH_TOKEN secret mapping on compare-before and compare-after.
  • Both compare passes now receive only MAINTENANCE_CLAUDE_API_KEY (L2358-L2360, L2383-L2385).
  • The test now asserts that no OAUTH_TOKEN appears in compare mode.
  • This sets compare mode back to the API-key-only policy the PR cites. No token scope grows, no trusted-actor check changes, and no new untrusted text reaches a lane.

New eval master switch: it fails closed.

  • Every eval entry job now requires vars.CLAUDE_EVALS_DISABLED == 'false'. The four jobs are:
    • check-key-credit in pr-run-plugin-evals.yml (L186-L194)
    • compare-prepare in the same file (L2158-L2163)
    • the hill-climb's check-inputs
    • the shared pass's check-key-credit
  • An unset variable reads as '', so a missing or mistyped value keeps evals off.
  • The parentheses added around the old || expression keep the switch applied to both the dispatch branch and the workflow_run branch. The fork check (head_repository.full_name == github.repository) is still there.
  • I checked the jobs downstream of check-key-credit to see whether any could still run when it is skipped:
    • run-eval needs it.
    • run-eval-subscription requires needs.check-key-credit.result == 'success' (L1001-L1003).
    • run-eval-fallback requires a next-leg output from that job (L1586).
    • The compare jobs all need compare-prepare with no always() at job level.
  • So none of them runs while the switch is off.

Spend. This change starts no new spend. The switch can only stop eval runs, and the compare passes stay on the API key.

The PR context file has no embedded instructions aimed at this lane. No plugin manifest changed, and no standing instruction was deleted.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on eb8f722426d0536b36811da50b89fdd6463c47b9; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 7a35339cb30bb6063b5e3d41bfeca37f1ba18344: read 5 of 5 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, blocking only): PR #18234, compare runs on the API key alone, and an org eval master switch

No blocking findings. This lane already reviewed an earlier head (blocking only: yes), so this review reports only blocking findings. I read every hunk of all 5 files in .claude-lane/incremental.diff. I also read the jobs downstream of each newly gated entry job.

Prior finding resolved. The earlier finding (discussion_r4659956046) said the compare-section guard had been loosened to FALLBACK_CLAUDE_CODE_OAUTH_TOKEN. That guard is now back to /OAUTH_TOKEN|secrets: inherit/ across the whole compare section, which is stricter than the original. The subscription opt-in it was protecting is removed: the input, the OPT_IN env var and its cost-cap guard, and both MAINTENANCE_CLAUDE_CODE_OAUTH_TOKEN secret lines. The test assertions for the opt-in were dropped along with the feature they tested.

Checked, no finding:

  • Master switch reaches every downstream job. The four entry jobs now require vars.CLAUDE_EVALS_DISABLED == 'false'. When an entry job is skipped, everything after it skips too:
    • In pr-run-plugin-evals.yml:
      • run-eval and run-eval-subscription need needs.check-key-credit.result == 'success'.
      • run-eval-fallback needs run-eval-subscription's next-leg output, which is empty when that job skips.
      • compare-before and compare-after need needs.compare-prepare.result == 'success'.
      • compare-verdict and compare-record use the default needs success rule.
    • In the hill-climb:
      • measure-baseline and measure-baseline-again need check-inputs.outputs.go == 'true'.
      • compare-passes uses always() && needs.check-inputs.outputs.go == 'true', so it skips when that output is empty.
    • In the pass workflow: run-eval and run-eval-subscription need check-key-credit success.
  • Parentheses. The rewritten check-key-credit condition in pr-run-plugin-evals.yml adds an outer ((…) || (…)) group, so the switch applies to both the workflow_dispatch and the workflow_run branches.
  • New test. It checks job-level if: lines at 4-space indent within 600 characters of each job header, so a step-level if: cannot satisfy it. A missing job header gives an empty slice, which fails the assertion instead of passing quietly.

Spend (not a hold, not counted): none added. This push only gates or removes eval runs. With the opt-in gone, compare mode no longer uses the maintenance subscription's plan usage.

No closing issue: the PR cites owner decisions Q52, Q53 and Q136 (#17854) and only references #18235, so there are no acceptance criteria to check. The PR body says 29 of 29 tests pass and that the variable is set to true. Both are the author's claims; I did not verify either.

Loosened checks would be marked: fail (default; the prompt has no loosened_check_verdict: line); patterns: 0 (the prompt has no loosened_check_patterns: line). The prompt has no loosened_check_decision_record: line, so I did not check whether a citation of the owner's decision was required. This push loosens no check.

Verifier dropped 0 of 0 candidates.

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 22, 2026
…r switch

The owner kept decision Q136 (2026-11-22, Q53): no subscription token reaches
compare mode, so the subscription opt-in and its 5 USD cap are removed. The
one-arm change stays.

New org variable CLAUDE_EVALS_DISABLED: each eval path's entry job runs only while it
reads exactly `false` (the suite and label legs, compare mode, the hill-climb,
and the shared pass workflow), so an unset or mistyped value keeps evals off,
as the lanes kill switch does (owner, Q52).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RAoAtTQ8rMTZethQ3AV5ZP
@kyle-sexton kyle-sexton changed the title ci(evals): let compare mode opt in to the subscription token and run one arm ci(evals): run compare passes on one arm and add an org eval master switch Nov 22, 2026
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 22, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit a07ce75 Nov 22, 2026
97 checks passed
@kyle-sexton
kyle-sexton deleted the ci/eval-compare-subscription-opt-in branch November 22, 2026 21:14
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant