Skip to content

fix(evals): stop programs started failing on an interpreter the case's skill never names - #17359

Merged
melodic-automation-lanes[bot] merged 6 commits into
mainfrom
work-resolve-issue/issue-17351-44447282473-1
Nov 19, 2026
Merged

melodic-automation-lanes[bot] merged 6 commits into
mainfrom
work-resolve-issue/issue-17351-44447282473-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Closes #17351

Summary

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

run-validity.py's programs started check now treats command not found for an interpreter as fatal only when the case's skill names that program in its files or the case's allowed_tools (prompt.md frontmatter or case.yaml). Otherwise it is a warning, so a run that typed python, found only python3 and went on no longer voids the batch. Mise shim errors still always fail. Design choice, based on the existing skill_graders/grader_input_match helpers: the case's skill is each <suite root>/skills dir its Skill-requiring graders accept (every one for a grader with no input_match). A program counts as named when it appears as a whole word (python3 does not name python, x.py does not name py). When the skill cannot be resolved (no skills dir, no Skill-requiring grader, a bad input_match regex), every interpreter counts as named, which keeps the old fail-closed behavior. The detail line now lists every program that failed to start in a run, each with its first call, not only the first one. The issue's 'launcher or shim error' is read as the mise shim error, the only launcher failure text the script detects.

After review: an unnamed interpreter is excused only when the run's own shell (bash or zsh, bare or under /bin or /usr/bin) printed the not-found line. A line printed under a script path, such as a plugin-root helper the skill ran, still fails, because the skill's code could not run.

Not verified

  • test_run_validity.py (run-validity.test.sh) was not executed: this lane can run no interpreter or test runner, so the suite is left to the PR's CI
  • Tidy pass 5 (ai-slop:audit fix) ran only as a manual rubric read: detect.sh, digest-guard.sh and the verification reader cannot run in this lane, so tidy is recorded skipped. Passes 1-4 ran: three simplifications in run-validity.py and one sentence cut in reading-results.md
  • Tidy proposal (not applied): skill_named_text skips a skill file it cannot open (except OSError: continue), so an unreadable file could hide a name; failing closed on it would change behavior
  • Review note (not applied): skill_named_text reads every file under the case's skill dirs, including any vendored node_modules or .venv, which can be slow
  • Build/lint of the touched Python could not run here (no interpreter or linter wrapper); left to the PR's CI

Fix

  • plugins/evals/skills/plugin-eval/scripts/run-validity.py: new case_skill_dirs, declared_tools and skill_named_text helpers and an ALLOWED_TOOLS_KEY pattern; check_programs takes the suite root, excuses unnamed interpreters as warnings only when the run's own shell printed the line (NOT_FOUND captures the prefix; new RUN_SHELLS set; start_failures carries a typed flag) and lists every program per run; module docstring updated
  • plugins/evals/skills/plugin-eval/scripts/test_run_validity.py: with_skill helper plus tests for an unnamed interpreter warning (listing two programs, deduplicated), an interpreter named in SKILL.md or in case.yaml allowed_tools still failing, an unnamed interpreter a script-path helper needed still failing, and a shim error failing when the skill does not name the program
  • plugins/evals/skills/plugin-eval/reference/reading-results.md: programs started bullet describes the named-by-skill rule, the run's-own-shell condition, the unresolved fallback and the every-program detail
  • .changes/evals/work-resolve-issue-issue-17351-44447282473-1-60c9b5a1.md: patch changelog fragment for evals

Verification

The runner ran each check from the base copy against 77e48db:

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

The run reports:

  • check-changelog-fragments: all 5 fragments valid (run before and after tidy)
  • check-changed-skills: plugin-eval PASS, 0 errors, 4 pre-existing size/description warnings (run before and after tidy)
  • check-affected: 15 passed, 8 skipped (typos not installed, comment-hygiene fetch blocked, size-check script missing, validate-plugins parts and changed-skills that run checked-tree code), rest CI-only (run before and after tidy)
  • fresh-context review subagent over the change: no confirmed problems; traced the new and existing programs-started tests by hand against the code and found them consistent
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44447282473

Left out: the items under Not verified.

Related

#17351

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

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 2b8d150f68424a7fede32b272d3532a110d06774: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17359 (blocking only)

No security issues found. I read every hunk of all 4 changed files in the full diff. This lane already reviewed an earlier head, so this review was blocking only: it reports only CRITICAL and IMPORTANT findings.

What the change does: run-validity.py's programs started check grades plugin-eval traces. It now treats command not found for an interpreter as fatal only when two things are true:

  • the case's skill names the program, in its files or in the case's allowed_tools;
  • the run's own shell printed the line (bash, zsh, or zsh's (eval)).

Otherwise it is a warning. Shim errors and not-found lines printed by a script still fail. When the skill cannot be resolved, every interpreter counts as named, so the check still fails closed there.

What I checked:

  • No new execution, output or network path. case_skill_dirs, declared_tools and skill_named_text only list directories and read files under the suite root that is already being evaluated (os.walk plus open(..., errors="replace")). Each program name is passed through re.escape before it goes into the whole-word search. The input_match patterns come from the existing grader_input_match helper, and a bad regex returns None, which fails closed. Nothing runs, posts anything, or touches a token or secret.
  • Not a trust control. None of the changed files matches a trusted-path glob. The change touches no workflow, permissions: block, trusted-actor list, kill switch, merge hold, token request, plugin manifest or standing instruction. This checker is an eval-validity grader, not a merge gate. Loosening it can only change whether an eval batch counts as valid, which opens no path to a leak, a compromise or a charge.
  • The earlier loosening concern is fixed at this head. A not-found printed under a script path stays fatal (RUN_SHELLS, and the typed flag in start_failures). The (eval) prefix is covered, and a fatal failure of a (program, failure) pair is no longer hidden by an earlier harmless one. Those threads are settled, and nothing under them has changed since they were resolved.

PR context: It contains no embedded instructions aimed at this review.

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 77e48db705e83ccb53c4f865d0d6e7c0a91668ff; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 2b8d150f68424a7fede32b272d3532a110d06774: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #17359 at 2b8d150f (blocking only)

This lane has already reviewed three earlier heads of this pull request, so this review reports blocking findings only. The last head it reviewed was fe09483b. The current head is a merge from main.

I read the full diff: all 4 files and every hunk. I also read the helpers the changed code calls: grader_input_match, skill_graders, targets_own_skills and read_text, at run-validity.py:618-725. The check_programs code at the head (run-validity.py:2783-2823) is the same as the code this lane reviewed earlier, and the owner settled each earlier thread.

No new blocking findings.

Closing issue #17351, Done when:

  • A program the case's skill does not name warns; one it names, and any shim error, still fail. Met. The tests cover:
    • an unnamed program that the run's own shell reported, from bash: line 1: or zsh's (eval):1:;
    • a program named in SKILL.md or in the case's allowed_tools;
    • a shim error;
    • a program a script-path helper needed, both on its own and after an earlier typed miss.
  • The detail line lists every program per run. Met. test_an_interpreter_the_skill_does_not_name_warns_and_lists_every_program checks for two programs, with the repeated one listed once.
  • The tests cover both directions. Met.

Loosened-check verdict: fail (default; the prompt has no loosened_check_verdict: or loosened_check_patterns: lines); patterns: 0.

  • The change loosens the programs started check: it is kind 9, "a check's own code changed so it accepts more".
  • The closing issue's spec text names this loosening and says why: a run that recovers from a program the skill never asked for should not void the batch. So it passes.
  • The change stays inside what the spec allows. It still fails closed when the skill cannot be resolved, when a script path printed the not-found line, and on any shim error.
  • The prompt has no loosened_check_decision_record: line, so I did not check whether the spec cites an owner decision.

Tests: I ran nothing, because this lane has no shell. The test passes in the owner's replies (183 and then 184 OK) are the author's claim, and I have not verified them.

Spend: nothing beyond normal CI.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

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

pr-merge's gate refuses its verifier verdict (verify:earlier-fail)

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

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

Failed GitHub API calls

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

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM65T-4f
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed a9fab1d
Run 44457783456

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 a9fab1d.

@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 44457783456

Failed GitHub API calls

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

@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 a9fab1d117bad6a35980078789dece82f65c765c; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

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

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-feedback-patch
Model rung 0
Leg base
Run job failure
Activity step skipped
Commits pushed none recorded
Run 44459249016

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

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

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

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

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

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

Failed GitHub API calls

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

@kyle-sexton

Copy link
Copy Markdown
Member

A session is reworking this PR: it set the do-not-merge label while it fixes the comment-lint failure and the open claude-review thread, and will remove the label when done.

@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 skipped
Commits pushed none recorded
Run 44461532985

Failed GitHub API calls

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

zsh prints "(eval):1: command not found: <name>" for a missing name in an
eval'd command line (zsh 5.9, `zsh -c 'eval x'`), the form a Bash tool
that evals its command prints there, so an unnamed interpreter on a zsh
host could still void the batch. Add (eval) to
RUN_SHELLS, test that form, and link the comment so the comment lint
passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added do-not-merge Hard merge gate: do not merge while applied. and removed do-not-merge Hard merge gate: do not merge while applied. labels Nov 19, 2026
check_programs kept only the first failure of each program, so a run that
typed an unnamed interpreter (a warning) and later ran a helper script
that needed it (a failure) was graded a warning. Keep the first call for
the detail, OR the fatal flag across every failure of the pair, and keep
"not named by the case's skill" only when every failure was unnamed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

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

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 2 of max 4 on fe09483.

@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 44468405056

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 19, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the merge gate refuses this head verify:earlier-fail, and the lane found every note of that earlier pr-verify FAIL already addressed by the diff, so it pushed nothing; only a session can move the head for the verifier to judge again. 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=17359 -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 44468405056

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=fe09483b93f8231673e32d688fae4cb6bc4ada9f rubric=10.4.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 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@melodic-automation-lanes melodic-automation-lanes Bot removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

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

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 3 of max 4 on 2b8d150.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=2b8d150f68424a7fede32b272d3532a110d06774 rubric=10.4.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 19, 2026
Merged via the queue into main with commit f0ca4e0 Nov 19, 2026
47 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17351-44447282473-1 branch November 19, 2026 18:36
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit f0ca4e038767d12d949421d70be9d976e6ce0f70; 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.

evals: programs started voids a batch on a missing program the skill never asked for

1 participant