Repository navigation
fix(ci): hand an eval leg off when its suite ends auth_failed - #13699
Conversation
A `claude plugin eval` suite whose credential is refused writes `partial: true, partialReason: "auth_failed"` and exits 2, and its runs can hold no trace the classifier reads as an auth stop. eval-handoff.mjs judged only traces, so such a key leg printed `outcome=success`, the subscription and fallback legs were skipped, and the run went green. The leg now reads each results file too. An auth_failed suite counts as a refused credential, the same rule a 401 follows: the key leg hands off, the subscription leg hands off when a fallback leg follows, and the fallback leg reports `lane-class=auth outcome=failure`. A stream that already handed off keeps its verdict; cost_ceiling and interrupted partials are not the credential's stop and are left alone. Refs: #12035 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
PR body contract — issue linkage This PR body does not yet satisfy the issue-linkage contract:
Edit the body and this comment updates itself on the next run. |
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
claude-security-review reviewed Security review: PR #13699 (head 02df44f)No security issues found. I read every hunk of both changed files ( What changed. The new function
Paths I checked:
What it spends: an PR context: I found no embedded instructions in the PR description or the closing issues. critical-findings: 0 |
|
claude-review reviewed Code review: no findingsI read every part of the change in both files: What changed. A new function,
The other partial reasons, Correctness checks (I read these myself; I ran nothing):
Closing issue. The PR body only says Rules and paved paths. None of the Author-claimed and not checked by me: the Usage (not a finding): a key leg whose suite ends |
Refs: #12035
Refs: #13586
Summary
#12035's re-run (https://github.com/melodic-software/claude-code-plugins/actions/runs/42172606678) ended
partial (auth_failed)on the key leg, but the handoff classifier printedoutcome=success, so the subscription leg never ran and the run went green with no result. The traces held no credential error, so the classifier had nothing to read.Fix
eval-handoff.mjsalso reads each suite'sresults.json. A suite withpartial: trueandpartialReason: "auth_failed"counts as a refused credential, as a 401 already does: the key leg hands off, the subscription leg hands off when a fallback leg follows, and the fallback leg printslane-class=auth outcome=failure. A stream that already handed off keeps its verdict.auth_failedas "your credential was rejected before or at the first run"; of the documented partial reasons (cost_ceiling,interrupted,auth_failed) only it is about the credential, and a test pins that the other two still printoutcome=success.Cause of the auth failure (not changed here)
Both failing sessions logged
exit 1: Not logged in · Please run /login, a missing credential rather than a rejected one. https://code.claude.com/docs/en/env-vars saysCLAUDE_CODE_SUBPROCESS_ENV_SCRUBremovesANTHROPIC_API_KEYfrom "the subprocesses Claude Code starts" while "The Claude Code process keeps the credentials for its own API calls"; https://code.claude.com/docs/en/plugin-evals runs each case "as aclaude -pchild process". The probe step in the same job authenticated with the same key under the scrub five seconds earlier, so a revoked key is ruled out. Turning the scrub off on the eval step is a credential-control decision and is not made here; until then the key leg hands off and the subscription leg runs the eval. UNVERIFIED: local reproduction (the CLI refused: too many linked worktrees on this host's checkout).Verification
node --testin.github/scripts/plugin-eval: 108 pass, 0 fail;.github/actions/resolve-config: 929 pass, 0 fail;scripts/check-affected.sh: 9 passed. Disabling the new check makes the two new tests fail.Follow-ups
outcome=failurereachesreport-lane-outcome(ci-workflows), which annotates withcore.errorbut callssetFailedonly on a wiring error, so the job may still end green (UNVERIFIED on a live fallback failure).🤖 Generated with Claude Code