Skip to content

feat(developer-experience): claude plugin eval suite in GitHub Actions #6649

Closed
17 of 17 issues completed
Closed

Description

@kyle-sexton

Refs: #6302

Summary

The developer-experience plugin's first PR measures its skills with a hand-rolled harness: nested claude -p runs in three arms (no plugin, team conventions in AGENTS.md, plugin) on fixture copies outside this repository. This issue tracks the follow-up: a claude plugin eval suite for the plugin that runs in GitHub Actions, so the measurement repeats on every change instead of by hand.

Why it is a separate issue

  • claude plugin eval refuses Bash-granting cases on the maintainer's WSL host (socat missing; Docker Desktop's ~/.docker/contexts symlink into /mnt/c, which the eval pre-flight refuses; seen on Claude Code 2.1.289): melodic-software/provisioning#741.
  • workflow_dispatch only triggers a workflow whose file is on the default branch (docs.github.com, "Manually running a workflow"), so the CI job can only run once this lands on main.
  • claude plugin eval loads no project CLAUDE.md, .claude/ or .mcp.json from the workspace (code.claude.com plugin-evals page), so the conventions-only arm stays in the hand-rolled harness; plugin eval covers the with/without-plugin comparison and the presence and firing cases.

Proposed shape

  • A workflow_dispatch job on ubuntu-24.04 that installs bubblewrap and socat and lifts the Ubuntu 24.04 AppArmor user-namespace restriction for bwrap (sysctl kernel.apparmor_restrict_unprivileged_userns=0), the step Anthropic's sandbox-runtime CI runs. MEDIUM confidence; the first dispatch settles it.
  • One GitHub environment per Claude account, each holding its own CLAUDE_CODE_OAUTH_TOKEN secret, so eval spend is split from the review account.
  • First run checks whether CLAUDE_CODE_OAUTH_TOKEN reaches the eval run: the plugin-evals page says most of the shell environment is withheld (an allowlist plus EVAL_* variables), and its CI example names only ANTHROPIC_API_KEY.
  • Cases ported from the PR's scenarios (S1-S7, T1-T4, N1, stays-quiet), deterministic graders where possible and llm graders checked against labeled samples.
  • The provisioning#741 eval distro mirrors the job locally for pre-push runs.

Done when

  • The workflow runs the suite on a dispatch and posts the with/without delta per case.
  • The OAuth-secret question above is answered with the run's evidence.

Sub-issues

Sub-issues

17 of 17 Issues completed
Loading 17 sub-issues

Activity

  1. added
    needs-triage
    on Oct 9, 2026
  2. github-actions commented on Oct 9, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Large
    Complexity: Medium
    Uncertainty: Knowable
    Flags: none
    Blocked by: #9936, #9943, #9953, #9958, #9966, #9979, #9988, #9993, #9998, #10005

    Understood: add a claude plugin eval suite for the developer-experience plugin that runs from a workflow_dispatch GitHub Actions job and posts the with/without-plugin delta per case. The job must also settle whether the OAuth token reaches the eval run.

    The issue is already split into 10 sub-issues (#9936 to #10005), so this parent stays open until they finish. Nothing in the issue text asks for an owner decision. I found no likely duplicates.

    Automated triage, applied by the lanes App.

  3. added
    needs-human
    on Oct 9, 2026
  4. kyle-sexton commented on Oct 9, 2026

    @kyle-sexton
    MemberAuthor

    Carry into this suite: in the first PR's eval (fourth pass, 2026-10-09), build-cli described a default for an unanswered open choice in 1 of 5 plan runs (S4 #10, the withhold rule), and two pass/fail checks were unreachable under that harness's frozen allowlist (rm for setup's migrate, compound shell commands for the tracker case). A suite with its own permission set should measure all three directly.

  5. kyle-sexton commented on Oct 9, 2026

    @kyle-sexton
    MemberAuthor

    Also carry: the T4 #2 judge item (setup reports conventions found in the old .claude/ location) did not calibrate (Sonnet TPR 0.70) because 3 model-produced labels read the rubric literally. Before porting that case, have a person relabel those 3 samples, then re-calibrate.

  6. kyle-sexton commented on Oct 11, 2026

    @kyle-sexton
    MemberAuthor

    The credential question here changes: Max and Team plans now carry monthly API credits in the linked Console org (help article 17154008). Credits cover API-key traffic only; runs started by the Claude Code GitHub Action are excluded even with -p. Whether a self-written claude -p or claude plugin eval step with an org key draws credits is the probe in #6962. The credential choice for CI lanes is tracked on the capacity map #6958 (#6968), and ADR 0037 is being amended to allow the operator's own org keys (#6961).

  7. removed
    needs-triage
    on Oct 12, 2026
  8. kyle-sexton commented on Oct 13, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. The owner accepted the adjudicated recommendation on 2026-10-12.

    Build now: port the developer-experience cases (S1-S7, T1-T4, N1, stays-quiet; T4 #2 held until a person relabels its 3 samples) into plugins/developer-experience/evals in the case.yaml/graders format, and run them on the existing eval-browser-dispatch.yml lane with its shared CLAUDE_CODE_OAUTH_TOKEN as the stated interim; the per-account split or linked-org key waits on #6968/#6962. Route: wayfind-blocked -> ready to implement.

    Why: The seed's blocker is false: origin/main 736fb71 has .github/workflows/eval-browser-dispatch.yml (workflow_dispatch, free-form target, allow-tools input, secrets.CLAUDE_CODE_OAUTH_TOKEN at line 203, --max-cost-usd 5), and the owner himself dispatched run 38153781700 on 2026-10-11T16:02 which ran both arms with model turns on CLI 2.1.296, so the issue's OAuth-reachability question is answered and eval spend already draws on the shared token by the owner's own act. The issue body's per-account environment proposal (2026-10-09) is superseded by the owner's newer 2026-10-11T03:52 comment moving the credential choice to #6968 under map #6958, so rule 2 leaves no standing owner decision against the interim and nothing for the owner to decide here beyond what #6968 already holds. ADR 0062 (accepted 2026-10-11) decides only that keys from linked orgs may fund claude -p work and defers storage and lane selection to #6958, and probe #6962 names this issue, so the key route is not available yet.

    Precedence applied: Rule 2 decided the one disagreement (A: owner_must_decide on interim shared-token spend; B: proceed on the existing token). The owner's 2026-10-11T03:52 comment is the newest dated decision on the issue and moves the credential choice to #6968, superseding the 2026-10-09 body proposal; the owner's own dispatch of run 38153781700 on the shared token at 16:02 the same day confirms the course. Rules 3 and 4 (ADR 0062, plugin-evals and authentication pages) agree and add nothing that conflicts.

    Sources:

    • git show origin/main:.github/workflows/eval-browser-dispatch.yml (736fb71) lines 1-80, 190-260
    • gh issue view 6649: body 2026-10-09, owner comments 2026-10-09T14:04, 2026-10-09T16:15, 2026-10-11T03:52
    • gh run view 38153781700 + gh api .../runs/38153781700 (actor kyle-sexton, success, step "Run the plugin eval" success); gh run download results.json: claudeVersion 2.1.296, costUsd 0.1716, cases sandbox-probe-plain/scaffold with and without arms 2 turns each
    • gh run list --workflow eval-browser-dispatch.yml: 1 success, 14 earlier failures (2026-10-11)
    • git grep secrets.(CLAUDE|ANTHROPIC) origin/main -- .github/workflows: the same secret in 6 workflows
    • origin/main docs/adr/0062-allow-api-keys-from-the-operator-s-own-linked-console-orgs.md decisions 1-5, consequences

    Next: (1) Add plugins/developer-experience/evals//{prompt.md,case.yaml,graders/*.md} ported from the #6302 harness scenarios, deterministic graders where possible, llm graders calibrated against labeled samples, carrying the S4 #10 withhold rule and the rm and compound-shell checks; leave T4 #2 out until a person relabels its 3 samples. Validate with plugins/evals/skills/validate/scripts/validate-cases.py; open as a draft PR. (2) After merge, dispatch eval-browser-dispatch.yml with target=plugins/developer-experience, tag empty, allow-tools covering the rm and compound-command cases, env-scrub left on; if the CLI cost preflight exceeds the hard-coded --max-cost-usd 5, raise it in the lane in the same or a follow-up PR. (3) Comment on #6649 that the OAuth-secret done-criterion is answered by run 38153781700 and that the per-account split is tracked on #6968. Do not add a second eval workflow or per-account environments now, and never set ANTHROPIC_API_KEY beside the OAuth token in the job (the key takes precedence and changes which account pays). (4) Open: whether the DX cases need tools beyond the lane's install, and where the #6302 fixtures live; the first dispatch and the porter settle these.

    Researched by two independent agents (local evidence and upstream docs) and adjudicated by a third.

  9. kyle-sexton commented on Oct 13, 2026

    @kyle-sexton
    MemberAuthor

    Owner batch-ratified this admission in an attended session on 2026-10-12: work-class: scoped. Rule: class C1-C3, no trust surface, the independent check confirmed the recorded decision, and no owner step remains.

  10. added
    agent-ready
    needs-human
    and removed
    needs-human
    agent-ready
    on Oct 13, 2026
  11. 27 remaining items

  12. added
    status: ready
    on Oct 26, 2026
  13. melodic-automation-lanes commented on Oct 26, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: Size large: the split into sub-issues at intake is pending (owner Q93).

  14. kyle-sexton commented on Nov 2, 2026

    @kyle-sexton
    MemberAuthor

    Host run. The developer-experience suite ran on the eval dispatch lane: all 20 cases, with and without the plugin, for #10005.

    Runs

    • eval-browser-dispatch.yml on main, run in five case chunks so each stays under the workflow's --max-cost-usd 5.
    • Inputs for every chunk: target=plugins/developer-experience, allow-tools=Bash,Write,Edit, runs=1, deterministic-only=false, env-scrub=true, debug-errors=true.
    • Claude Code 2.1.316, --model claude-sonnet-5-5, --judge-model claude-opus-5-5, ablation with-without.
    Chunk Run Cases Cost (list-price estimate)
    s* 41527706565 9 2.65 USD
    t* 41531972270 5 0.82 USD
    fx* 41532755374 1 0.15 USD
    n* 41533401320 3 0.46 USD
    q* 41534412227 2 0.21 USD

    No chunk hit the cost ceiling, and none returned a partial result.

    Per-case delta (one run per arm)

    Case With Without Delta
    fx-seed-every-state 1.00 1.00 0.00
    n1-missing-conventions-nudge 1.00 0.00 +1.00
    nm-explain-commit 0.88 0.88 0.00
    nm-script-build-exit 1.00 1.00 0.00
    q-audit-slugify-digits 1.00 1.00 0.00
    q-build-page-count 1.00 1.00 0.00
    s1-branch-start-build 0.92 – with arm only
    s1-branch-start-plan 1.00 0.33 +0.67
    s2-tracker-comment 0.83 0.83 0.00
    s3-script-cleanup 1.00 0.75 +0.25
    s4-migrator-build 0.83 – with arm only
    s4-migrator-plan 1.00 0.25 +0.75
    s5-release-review 0.58 0.25 +0.33
    s6-tool-inventory 0.83 0.50 +0.33
    s7-act-after-yes 1.00 – with arm only
    t1-setup-init 0.50 0.50 0.00
    t2-setup-rerun 1.00 1.00 0.00
    t3-setup-interactive-release 0.50 0.50 0.00
    t4-apply-migrate 0.40 – with arm only
    t4-check-old-location 0.89 0.67 +0.22
    • Paired cases: 16. Mean 0.876 with the plugin and 0.654 without. 7 cases improve, 9 tie, and none gets worse.
    • No baseline arm: the four with arm only cases replay a history_file, and the summary marks them "the case carries no delta".
    • One run per arm: each score is a single sample, so a delta of 0.25 or less can be noise. A runs=3 dispatch would separate the two.

    Caveats on the scores

    • Bash did not run. In every arm that logged a Bash error, every error was the same sandbox refusal: bwrap: Can't create file at <tmp>/home/cwd/.eval-artifacts: Read-only file system. ADR 0056 (docs/adr/0056-verify-ui-with-linux-side-playwright-and-attach-produced-demo-evidence-to-prs.md, "CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 breaks every eval Bash call") records this refusal when env scrub is on, and these runs had env-scrub=true. The lane prints only failed Bash calls, so whether any call succeeded is UNVERIFIED.
    • Scores that measure the sandbox: the s1-branch-start-build and s4-migrator-build results, and any grader that needs a command's output (S1 smoke-run, S4 smoke-run), measure the sandbox, not the plugin. Measuring them needs either env-scrub=false or an upstream fix. Turning env scrub off gives Bash subprocesses the subscription credential, and the input's own description limits that to cases whose tools cannot exfiltrate. That is the owner's call and was not taken here.
    • T3 is uncalibrated: the llm graders in t3-setup-interactive-release have not been calibrated yet (test(developer-experience): port eval cases S3 and S6 #9966), so read its 0.50/0.50 with that in mind.

    Credential question

    The subscription credential reached the eval run. The run step's only Claude credential is CLAUDE_CODE_OAUTH_TOKEN, set from the MAINTENANCE_CLAUDE_CODE_OAUTH_TOKEN secret (.github/workflows/eval-browser-dispatch.yml, "Run the plugin eval" step). The job sets no API key. Every chunk's model runs completed and were scored.

    Log line from each chunk's summary: Claude Code 2.1.316, ablation with-without, threshold 1.00, cost 2.65 USD (list-price estimate). (the s* chunk).

    The other chunks carry the same line with their own cost. The skill fired in the with arm, for example s1-branch-start-plan: skill loaded: yes; fired in 1 of 1 runs.

  15. kyle-sexton commented on Nov 4, 2026

    @kyle-sexton
    MemberAuthor

    The env-scrub caveat in the record comment is superseded: with TMPDIR moved out of /tmp (PR 12643), a Bash,Write case scored 1.00 with env-scrub on (run 41706844559). The refusals that record logged were under /tmp.

  16. kyle-sexton commented on Nov 6, 2026

    @kyle-sexton
    MemberAuthor

    Close audit, both done-when items met on main:

    1. The workflow runs the suite on a dispatch and posts the with/without delta per case. eval-browser-dispatch.yml on developer-experience, run https://github.com/melodic-software/claude-code-plugins/actions/runs/41527706565 (SUITES: .base/plugins/developer-experience evals, s*), posted per-case rows to its summary and log, for example | s1-branch-start-plan | 1.00 | 0.33 | +0.67 | PASS | and | s3-script-cleanup | 1.00 | 0.75 | +0.25 | PASS |, with NOT COMPARABLE for single-arm cases. The run's red conclusion is three cases under the 1.00 threshold, not a lane failure.
    2. Does CLAUDE_CODE_OAUTH_TOKEN reach the eval run: yes, with CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 on. Run https://github.com/melodic-software/claude-code-plugins/actions/runs/42221177945, job pass-a / pass-subscription: credential: MAINTENANCE_CLAUDE_CODE_OAUTH_TOKEN, bash ran: with 9 of 9, verdict: VALID, no Not logged in. The same run shows the API key does not reach the cases under the scrub (auth_failed on the key leg, handed off by fix(ci): hand an eval leg off when its suite ends auth_failed #13699); the owner chose to keep the scrub (recorded on feat(evals): background hill-climb that opens draft PRs for skill edits beating the baseline #12035).
      The case ports (S3, S6) continue in test(developer-experience): port eval cases S3 and S6 #9966.
  17. removed
    status: ready
    on Nov 6, 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

    No labels
    No labels

    Fields

    Work status

    ready

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions