Skip to content

pr-pipeline: run cut PRs' before/after evals in CI with a base-vs-head compare mode #17854

Description

@kyle-sexton

Problem

Every cut PR holds for a no-loss compare of its base against its head (owner decision Q53). .github/workflows/pr-run-plugin-evals.yml runs a dispatch only on the default branch (:206-212), and its pull-request path runs the head's suite as a with-and-without-plugin ablation, not base against head. So each compare runs on one desk machine, one at a time under the heavy-run lock, at 20-35 minutes each. On 2026-11-21 the ten held cut PRs kept the issue lane at its held cap of 10 for about 5 hours, and each wave of cut PRs repeats it.

Decision

Decision recorded. Owner, 2026-11-21, typed in the backlog-drive session (verbatim): "Go with recommendations." This answers Q136, option A, which was shown to him as a trust-boundary change: PR-head plugin text runs next to the eval credential. Row: docs/owner-decisions.md:292 in melodic-software/architecture (Q136, GitHub Work numbering).

Add a compare mode to pr-run-plugin-evals.yml: the harness runs from the default branch; it checks out the PR's base and head as data only (the plugin text under test, no PR scripts or workflow files run), runs the same registered cases on both arms in parallel on the API key under the registration's cost cap, and posts the eval kit's own record line on the PR. No subscription token reaches PR-running code.

Done when

  • pr-run-plugin-evals.yml has a compare mode that takes a PR number and a registration, checks out the base and head commits as data only, and runs the registered cases on both arms from the default branch's harness.
  • No step in compare mode executes a script, hook, workflow or package manifest from the PR's base or head checkout; a test or workflow lint asserts the PR checkouts are used only as plugin input paths.
  • Compare mode authenticates only with the eval API key, never a subscription token, and stops before any run when the registration's cost cap is missing or the key has no credit.
  • Both arms run in parallel jobs, and the result posts the eval kit's record line for the PR head it measured, so the existing eval-hold release reads it.
  • A compare run on a PR whose head moved after dispatch posts no record.
  • The workflow's tests pass under node --test --test-concurrency=4 for the changed scripts.

🤖 Generated with Claude Code

Activity

  1. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  2. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Knowable
    Flags: none
    Blocked by: none
    Blast radius: pr-run-plugin-evals.yml and its scripts and tests; it runs on every cut PR's eval hold and is read by the eval-hold release.
    Reversible: yes; revert the workflow change. Eval records already posted on PRs stay.
    Open questions: none
    Understood: add a compare mode to the eval workflow. The harness runs from the default branch, the PR base and head are checked out as data only, both arms run in parallel on the eval API key, and the record line is posted for the head that was measured. The design and the done-when list are exact, so no owner question remains. The decision quote sits in the issue body, not in a comment, so I treated the issue's own design as the chosen one. The compare run spends prepaid API credit, which is not a new charge. The change moves PR-head plugin text next to the eval credential, so the security review should look closely at the data-only checkout. No duplicate or merged fix found.

    Automated triage. A maintainer reviews it.

  3. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: its title or stated work names a charge (a spend guard), which needs an owner decision. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

    Reason: cost

  4. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: admission moved the issue to needs-owner-decision; its comment says why.

  5. added 6 commits that reference this issue on Nov 21, 2026
    a713e2c
    5256375
    fa9b0c3
    5458faf
    d69353f
    c2ce7b8
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

    No labels
    No labels

    Fields

    Work status

    needs-owner-decision

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions