Skip to content

fix(evals): fail run-validity when a run's interpreter could not start - #16882

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-16110-44127545527-1
Nov 17, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-16110-44127545527-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16110

Summary

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

run-validity.py has a new programs started check beside the permission-denial check. It reads every failed tool result and every non-denied Bash result in each trace for a mise shim error (<name> is not a valid shim) or command not found. A shim error in any run, or command not found for an interpreter, makes the check FAIL so the file reads INVALID. Any other command not found warns and the verdict stays VALID. Each detail names the run, the program and the first failing call. Choice of means, per the recorded decision (option A): 'the interpreter the skill under test runs' is a fixed INTERPRETERS list (node, nodejs, npx, npm, python, python3, py, uv, uvx, bun, bunx, deno, ruby, perl, pwsh, tsx). The result file records no interpreter, and a missing interpreter means the session could not run any script written for it, so a case that probes another missing command on purpose only warns. Both patterns match only where the text opens an output line, as bash, zsh or mise print it, so a grep that quotes the text does not fail the file. sandboxes.md is unchanged, as the decision keeps the PATH form out of scope.

Not verified

  • test_run_validity.py was not executed: this lane's Bash runs only the named wrappers, so no Python interpreter could run. The new tests were traced by hand, by this session and by the review subagent; the suite is left to the PR's CI (run-validity.test.sh via run-plugin-tests.sh)
  • tidy pass 5 (ai-slop:audit fix): detect.sh and digest-guard.sh could not run in this lane, so only a manual rubric read of the changed markdown lines was done (no findings)
  • check-affected skipped typos (not installed), shellcheck (no shell changed), validate-plugins sub-checks and changed-skills (they run code from the checked tree); the CI-only checks it lists are left to the PR's CI
  • sandboxes.md PATH or interpreter-launch guidance: out of scope by the recorded decision, and left unchanged as the acceptance criteria require
  • the interpreter list is fixed, not read from the skill under test: a missing python3 fails even in a node-only skill, and a versioned name such as python3.12 only warns

Fix

  • plugins/evals/skills/plugin-eval/scripts/run-validity.py: SHIM_ERROR, NOT_FOUND and INTERPRETERS constants beside DENIAL_TEXT; start_failures() and check_programs(), which reuse the existing result_text(); the programs started row added to main()'s checks ahead of permission denials; a…
  • plugins/evals/skills/plugin-eval/scripts/test_run_validity.py: bash_trace takes an optional command per call; new tests: a shim error gives INVALID, an interpreter's command not found gives INVALID (bash and zsh forms), another command's command not found warns and stays VALID, a grep quoting the…
  • plugins/evals/skills/plugin-eval/reference/reading-results.md: a bullet describing the programs started check
  • .changes/evals/work-resolve-issue-issue-16110-44127545527-1-c0502442.md: patch changelog fragment for the evals plugin

Verification

The runner ran each check from the base copy against 7245c7b:

  • 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: plugin-eval PASS, 0 errors; its 4 warnings (description length, body size, token count, SKILL.md:251 judgment language) were there before this change
  • check-affected: first run failed ruff F811 (result_text was already defined at run-validity.py:1932); fixed by reusing the existing helper; rerun 16 passed, 6 skipped, 0 failed
  • grep of plugins/evals for 'command not found' and 'valid shim' before the change: no matches, so no existing fixture trace trips the new check
  • fresh-context review subagent: hand-traced every new test against the code and found no bug; it flagged that a successful grep quoting the texts would fail a file; fixed by anchoring both patterns to line starts, and a test was added for it
  • tidy-diff: passes 1-4 made no edits; pass 5 ran only as a manual rubric read with no findings
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44127545527

Left out: the items under Not verified.

Related

#16110

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

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 118539b26c3b643bb194283f9bb37bbced3f6e9e: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Incremental security review of #16882 (5b67a45 → 118539b): no security issues found. This lane already reviewed an earlier head, so this review was blocking only.

Scope: I read the whole incremental diff for the one listed file, plugins/evals/skills/plugin-eval/scripts/run-validity.py.

What changed: only the comment above SHIM_ERROR.

  • It corrects the zsh message form to zsh:1: command not found: <name>.
  • It records where the two shell messages were observed: GNU bash 5.3.9 and zsh 5.9.
  • It moves the "As of" date to 2026-11-17.

The SHIM_ERROR and NOT_FOUND regexes, the INTERPRETERS list and the check logic are unchanged.

Trust boundary: the change doesn't touch any of these:

  • execution path
  • input handling
  • credentials or tokens
  • workflow
  • trust control
  • merge hold
  • plugin manifest
  • standing instruction

The file doesn't match any trusted-path glob.

Prior findings: the lane's one earlier post was a summary with no findings, so nothing carries forward.

Embedded text: the PR context contains no directives aimed at the review lane.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 7245c7b8b4e5cfaaa3fa732bbe4b4984cd3091e2; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 118539b26c3b643bb194283f9bb37bbced3f6e9e: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, blocking only): PR #16882, 5b67a453 → 118539b2

This round reviewed only what changed since the last review, in plugins/evals/skills/plugin-eval/scripts/run-validity.py. This lane has already reviewed an earlier head, so it reported blocking findings only. It found none.

What changed: only the comment above SHIM_ERROR and NOT_FOUND (run-validity.py:327-336). No code changed.

  • The zsh form now reads zsh:1: command not found: <name>, with the line number zsh actually prints.
  • The source record now says both shell texts were seen on GNU bash 5.3.9 and zsh 5.9, from a bash -c / zsh -c run of a missing name.
  • As of moved to 2026-11-17. The recheck trigger is unchanged.

I traced both documented forms through the unchanged NOT_FOUND regex at run-validity.py#L340-L344, and the corrected comment matches what the code does:

  • zsh: ^[^\s:]+ takes zsh, (?::\d+)? takes :1, then the command not found: <name> branch matches.
  • bash: bash is followed by : line 1: , then the <name>: command not found branch matches.

The shell versions and the 178-test pass are the author's claims. I did not run either.

Prior finding (discussion_r4603066218, now settled): it is fully fixed. The record now names bash and zsh versions, which closes the advisory gap the last round noted. It stays settled.

Closing issue #16110: this push changes no behaviour, so the acceptance-criteria results from the earlier reviews still stand. This review did not check whether CI passes.

Loosened checks: none. This push edits only a comment. The prompt carried no loosened_check_verdict: or loosened_check_patterns: lines, so the default applies.
Loosened-check verdict: fail (default, no wrapper value); patterns: 0

No plugin manifest changed and no paved-path entry applied. The PR context, settled threads and prior findings held no embedded instructions.

Spend: none beyond this review run.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44133782169

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 7245c7b.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44133782169

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 5b67a45368adce84666ed34528c9d92c987e9cf1. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

a pr-unblock lane stopped its head (pr-unblock/address-feedback is failure), which clears when the
  lane runs again

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44143092390

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 5b67a45
Run 44143092390

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 17, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the pull request has an unresolved review thread the lane does not take (a reviewer it does not act on, a review of an older head, or a thread it already answered), so no lane resolves it and a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=16882 -f activity=address-feedback

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44145539027

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

The comment above SHIM_ERROR and NOT_FOUND now says both shell texts
were observed on GNU bash 5.3.9 and zsh 5.9, dated 2026-11-17, and
gives zsh's real form (`zsh:1: command not found: <name>`), which
NOT_FOUND already matches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 17, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 118539b

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-16882-118539b26c3b643bb194283f9bb37bbced3f6e9e, 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=118539b26c3b643bb194283f9bb37bbced3f6e9e rubric=10.2.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 3739311 Nov 17, 2026
69 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16110-44127545527-1 branch November 17, 2026 20:43
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 37393118454b2fbe77957c90ee30ca1b85890bd4; 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-validity.py reports VALID when every run failed to start an interpreter

1 participant