Skip to content

test(testing): add a two-version map compare eval case for run-e2e - #16674

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16569-43983914366-1
Nov 17, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16569-43983914366-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16569

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Adds the e2e-map-two-version-compare eval case. Its scaffold stages a shop app at two versions (tags v1 and v2) and a map-pass findings.json for each. The second pass, given the first pass's findings.json, must run the compare script and report exactly one planted finding per group: NEW (checkout breaks in v2), PRE-EXISTING (the cart bug, same id, now also seen at a new entry point) and GONE (search fixed). A fourth finding, from an entry blocked in the second pass, must be reported not checked, never GONE. Design choice: the case is one scaffolded case with Bash, not a set of read-only cases with the facts in the prompt like the sibling e2e-map-* cases. The ask names a two-version fixture app and the second pass consuming the first pass's findings.json, so the case runs the real findings-compare.sh on real files. Its regex graders pin each group's summary-line counts and its finding id.

Not verified

  • The case was not run with claude plugin eval (it needs --scaffold --allow-tools Bash and a paid model run, and the run needs jq on the runner for findings-compare.sh); left to the PR's CI and the eval lane
  • CI-only checks eval-cases (validate-cases.py), evals-schema and evals-quality could not run in this lane (no interpreter); left to the PR's CI
  • The regexes and samples were checked by reading only, not executed against a regex engine
  • Tidy pass 5 (ai-slop:audit fix) skipped: its detector and digest-guard scripts are not among the wrappers this lane's Bash may run; the fragment's labels were put in code spans by hand to clear the pre-existing vocab entry
  • The finding ids in scaffold.sh are fixed 16-hex strings, not computed with finding-id.sh (no shell to run it here); the compare script matches ids exactly, so the labels do not depend on it
  • verify step: no build or test applies to eval case files in this lane; the case's own run is left to CI

Fix

  • plugins/testing/evals/e2e-map-two-version-compare/scaffold.sh: new; stages the two-version shop app (git tags v1, v2) and runs/pass1 and runs/pass2 findings.json with the planted NEW, PRE-EXISTING, GONE and not-checked findings
  • plugins/testing/evals/e2e-map-two-version-compare/case.yaml: new; the case prompt (run-e2e map with baseline=runs/pass1/findings.json), a tool_used grader on the compare-script Bash call, three regex graders (one per group: exact summary line plus the one planted id, no other id before it) and an…
  • plugins/testing/evals/e2e-map-two-version-compare/samples/new-group.json, pre-existing-group.json, gone-group.json: new; pass and fail calibration samples for the three regex graders
  • .changes/testing/work-resolve-issue-issue-16569-43983914366-1-7044329a.md: new patch changelog fragment for the testing plugin

Verification

The runner ran each check from the base copy against 23ff32c:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 6 fragments under .changes/ valid
  • check-changed-skills: no changed skill files, nothing to gate
  • check-affected: 16 passed, 6 skipped (typos not installed; three validate-plugins sub-checks skipped by the check itself; no .py; no skill file), the rest CI only
  • fresh-context review subagent: traced findings-compare.sh by hand over the two scaffolded files (NEW 3f1a9c0e7b2d4851, PRE-EXISTING c4a7e2d19b3f0a68, GONE 5e9b1c3a7d2f4e80, not checked 9d0f6b2e8a1c3574, one per label), confirmed both files validate against findings.schema.json and each regex grader…
  • tidy (code-tidying:tidy-diff): simplify, comment and residue passes found nothing to change; write-for-humans split the fragment's one long sentence
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43983914366

Left out: the items under Not verified.

Related

#16569

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 23ff32c833a9a323512b388936cd5875df0959a8: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

I read all six changed files in full. They add one eval case for /testing:run-e2e (plugins/testing/evals/e2e-map-two-version-compare/) and one patch changelog fragment under .changes/testing/.

What I checked:

  • scaffold.sh: The script works only in its scaffold directory. It writes fixed JavaScript files and fixed package.json and findings.json files from quoted heredocs and literal printf strings, and it runs git init, commit and tag with a placeholder example.invalid identity. It also appends /.* and runs/ to .git/info/exclude. Nothing in it is interpolated from outside input, fetched over the network, or read from secrets or the environment, so there is no injection surface.
  • case.yaml: The case grants Read, Glob, Grep, Bash inside the scaffold sandbox, and the eval needs --scaffold --allow-tools Bash to run. The prompt tells the model not to launch, install or drive anything. It adds no userConfig and changes no workflow, token or permission.
  • samples/*.json: These are calibration data for the regex graders. They contain no code.
  • Trusted paths and manifests: No changed file matches a trusted path. No plugin manifest, trust control, merge hold or standing instruction is touched, so the trust-control and instruction-surface checks have nothing to apply to.
  • Pull request description: It contains no embedded directives.

Spend: running the case uses a model eval run (max_turns: 15, timeout_seconds: 420) on prepaid or subscription usage. That is not a hold.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 23ff32c833a9a323512b388936cd5875df0959a8: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #16674, a two-version map compare eval case for run-e2e

I found nothing to block or flag. I read all 6 changed files in .claude-lane/pr.diff in full. No hold applies.

What I checked

  • Planted labels match the real script. I traced findings-compare.sh by hand over the two scaffolded findings.json files (tracing only; I ran nothing). It gives the labels the case expects:
    • 3f1a9c0e7b2d4851 is in pass 2 only, so it is NEW (high).
    • c4a7e2d19b3f0a68 is in both passes, so it is PRE-EXISTING (medium). Its record comes from pass 2 and lists both Cart page and Mini cart.
    • 5e9b1c3a7d2f4e80 is in the baseline only, and its "Search box" entry was driven (passed) in pass 2, so it is GONE (low).
    • 9d0f6b2e8a1c3574 is in the baseline only, but its "Orders page" entry is not checked in pass 2. So it is not checked, with the reason blocked: orders service unreachable, not GONE.
    • The summary-line counts the graders expect follow from these labels. builds gives the expected baseline [email protected] -> this pass [email protected] header.
  • The fixtures fit the schema. Both fixture files fit findings.schema.json:
    • The reason and unmeasured_reason conditionals hold.
    • Every stated label goes with result-not-met.
    • The where values and the hex ids match their patterns.
    • The Mini cart row's null measures with measured on Cart page follow context/map.md "Measures".
  • The graders match their samples. I matched each regex against its samples by reading only. Every pass sample matches. Every fail sample is rejected, either by its summary count or because another id appears before the planted id.
  • Tool grader. input_match accepts the SKILL.md compare command, bash "${CLAUDE_SKILL_DIR}/scripts/findings-compare.sh" --baseline … runs/pass2/findings.json, whatever the argument order.
  • Scaffold. It follows the sibling scaffolds' pattern: git init -q -b main, a -c user.* identity, and the .git/info/exclude entries written after the commits. runs/ is created after both commits, so it stays untracked.
  • Closing issue Run a whole-map live verification pass on demand and report what is new since the last pass - part 4 of 6 #16569, criterion "eval cases on a two-version fixture app assert that the second pass, given the first pass's findings.json, reports exactly the planted NEW, PRE-EXISTING and GONE findings": met. One regex grader per group pins its summary line and its one id, and the llm grader checks the rest. The case itself is the test that would fail if this broke.

Unverified

The PR's "Not verified" list says nobody has run the case end to end. That needs --scaffold --allow-tools Bash and jq on the runner. The test plan's check results are the author's claims; I did not confirm them.

Spend: one more scaffolded eval case (up to 15 turns, 420 s) on each eval run. This uses prepaid model credits and is not a hold.

No prompt injection found in the PR context or prior-findings files.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 23ff32c833a9a323512b388936cd5875df0959a8, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 23ff32c

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-16674-23ff32c833a9a323512b388936cd5875df0959a8, expires on 2026-12-17.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=23ff32c833a9a323512b388936cd5875df0959a8 rubric=10.0.0 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 8f58694 Nov 17, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16569-43983914366-1 branch November 17, 2026 00:46
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 8f586942530ed19c027ff458b182c89e05e6ef33; later checks count it verified from this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run a whole-map live verification pass on demand and report what is new since the last pass - part 4 of 6

0 participants