Skip to content

ci(evals): let a compare run use the maintenance subscription token on our own PRs #18480

Description

@kyle-sexton

Goal

A compare run of pr-run-plugin-evals.yml can run on the maintenance subscription token (MAINTENANCE_CLAUDE_CODE_OAUTH_TOKEN) while the org API key stays off (CLAUDE_API_KEYS_DISABLED=true since 2026-11-19), so eval-held PRs such as #18356 and #18188 can land.

Owner decision

docs/owner-decisions.md#L364, "Eval runs on a subscription token, case pruning, and how #18356 lands", 2026-11-23 (melodic-software/architecture#200), amending Q53 and Q14. Owner, before the questions, verbatim: "I think we should probably allow these to run on subscription tokens, but I want to make sure that it's not going to, again, kill the subscription token." Then, on question (1) "Should eval runs use subscription tokens?", verbatim: "Go with recommendations."

Loosened checks (named for the review lane, docs/conventions/review.yaml:5)

  • The key-only eval credential rule: docs/review/evals.md "Every run uses the maintenance API key ... No eval run uses a subscription token (Q14, Q53)" and the .github/scripts/plugin-eval/credential-legs.test.mjs truth table that asserts compare passes run on the key alone.
  • The compare jobs' secrets: compare-before and compare-after may also receive MAINTENANCE_CLAUDE_CODE_OAUTH_TOKEN.

Bounds (all required)

Done when

  • A compare dispatch with credential: subscription on a trusted-author PR runs both passes on the subscription token; on any other author it fails in compare-prepare.
  • credential: api-key behaves exactly as today.
  • Tests cover both credentials and the author refusal; docs/review/evals.md states the new rule with this decision.

🤖 Generated with Claude Code

Activity

  1. added
    needs-triage
    on Nov 23, 2026
  2. github-actions commented on Nov 23, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: pr-run-plugin-evals.yml (the compare-prepare, compare-before and compare-after jobs), credential-legs.test.mjs, and docs/review/evals.md. Maintainers and the eval and review lanes read or run these.
    Reversible: yes; revert the workflow, test and doc edits. Dispatches that use api-key are unaffected.
    Open questions: none

    I read this as a request to let a manual compare dispatch run on the maintenance subscription token. The dispatch would opt in through a credential input, default api-key. It would be accepted only for PRs by a trusted author, which compare-prepare checks before any pass starts. There is no fallback, and the existing cost ceiling and CLAUDE_EVALS_DISABLED switch stay as they are. The issue names its design and a done-when for each part, so I'm treating it as ordinary workflow work. The review lane will judge the credential and trust-boundary change in the diff. The issue treats eval-held PRs such as #18356 and #18188 as blocked, hence high priority.

    I found no open duplicate and did not check the merged-PR list.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 23, 2026
  4. melodic-automation-lanes commented on Nov 23, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"39b2bb0e39df16c72caa7675297881e2b0b78ed074a737705e30e9e5c3e15165","body_sha256":"09f5fec7e79de817fb47cf716d47283e01b9edd179d8070ee96f01641eb68de6"}

  5. github-actions commented on Nov 23, 2026

    @github-actions
    Contributor
    No description provided.
  6. melodic-automation-lanes commented on Nov 23, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane stopped partway through this issue and needs a person.

    Reason: security

    Matched security word: credential. A match holds the stop whether or not the text names a risk, so read the word in context below.

    Why, in the run's own words:

    patch-protected-path: .github/workflows/pr-run-plugin-evals.yml. The issue's core change lives in this workflow, which the lane cannot patch (/.github/workflows/**). The change adds a workflow_dispatch credential input (api-key default, or subscription), a trusted-author refusal in the compare-prepare job, and MAINTENANCE_CLAUDE_CODE_OAUTH_TOKEN for the compare-before and compare-after jobs.

    What the run says it did not do:

    • Add the credential dispatch input, the trusted-author gate in compare-prepare, and the subscription token secret for compare-before/compare-after in .github/workflows/pr-run-plugin-evals.yml: protected path, needs a person or a lane with workflow write
    • Update the credential-legs.test.mjs truth table and the docs/review/evals.md rule: not done, because they depend on the workflow change
    • Tidy skipped: no change to tidy

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/45203885086

    To retry, set Work status to agent-ready again (clearing the needs-human hold).

  7. added
    session-owned
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    session-owned

    Type

    Fields

    Work status

    needs-human

    Priority

    high

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions