Skip to content

docs(evals): count runs whose only failure is a denied call no grader reads - #17807

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-17019-44866381147-1
Nov 21, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17019

Summary

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

Following the recorded decision (option C) and its amendment, the plugin-eval methodology now states the counted-denial rule. When a result's only failing check is permission denials and no grader of the case reads any denied call, its runs stay in the score and each such call is listed in the record. The rule's reason sits beside it: leaving those runs out keeps only runs that never made the refused call, and an --allow-tools grant cannot be scoped to one case. The Read-tool workaround line is gone from the eb-export-map-already-enforces scaffold. The change adds no sandbox setting, no --allow-tools value and no claim about Read allow grants. Choices made here, with their basis: the rule overrides the gate's plugin-directory FAIL for an unread call, because the decision's own example is a with-plugin read of plugin files. Sandbox network denials are left under their existing rule, because the decision covers permission-denied calls. The record lists targets as the gate prints them (redacted), because run-validity.py redacts and truncates targets.

Not verified

  • Done-when item 2 as the decision amended it: a real eval run of eb-export-map-already-enforces without the workaround line, whose denied compound reads are counted and listed. That is a host run this lane cannot make; the amendment comment marks it a host step outside its done-when list
  • Tidy skipped: the change spans 2 areas (plugins/evals and plugins/architecture with their .changes dirs), over the 1-area tidy cutoff
  • verify step skipped: docs and a scaffold heredoc only, so nothing to build or test here; the eval-cases validator and evals-quality run only in the PR's CI
  • check-affected sub-checks skipped here (typos not installed; comment-hygiene could not fetch its action; size-check script missing); left to the PR's CI
  • The run-validity.py gate script is unchanged, as the owner decided: it still prints verdict: INVALID for these runs, and the methodology says how a report reads that verdict

Fix

  • plugins/evals/skills/plugin-eval/reference/reading-results.md: new 'Counted denials' section (when it applies, which graders read a call, what the record lists, why) plus a Contents entry; Read order step 1 now points to that exception
  • plugins/evals/skills/plugin-eval/SKILL.md: Reading the delta step 1 allows a score from an INVALID result whose only failure is denied calls no grader reads, links the new section, and applies the later steps to a VALID or counted run (still 499/500 lines)
  • plugins/evals/skills/plugin-eval/reference/iterating.md: a gain claim needs a VALID run or one the counted-denial rule allows
  • plugins/architecture/evals/eb-export-map-already-enforces/scaffold.sh: removed the AGENTS.md line 'Read a file outside this repository with the Read tool, never with a shell command.' and the blank line before it
  • .changes/evals/work-resolve-issue-issue-17019-44866381147-1-a36323c1.md: minor fragment for the counted-denial rule
  • .changes/architecture/work-resolve-issue-issue-17019-44866381147-1-f57d0a1f.md: bump none fragment for the eval-case scaffold change

Verification

The runner ran each check from the base copy against bf32223:

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

The run reports:

  • read https: //code.claude.com/docs/en/plugin-evals: Grant tools says an --allow-tools grant 'applies to every case in the run'; What a grader can look at says regex target and llm focus default to last_message and that 'trace' holds the session JSON; Grader types gives tool_used (tool,…
  • check-changelog-fragments: all 7 fragments valid
  • check-changed-skills: plugin-eval PASS, 0 errors (the first run failed the 500-line hard cap at 500 lines; I folded the sentence into existing lines, which brought it to 499); 4 warnings, already present before this change (description length, body size, token count, SKILL.md:251 fresh-context hint)
  • check-affected: 15 passed, 8 skipped (typos not installed, comment-hygiene fetch blocked, size-check script missing, checks that run checked-tree code), over 6 changed files
  • Grep: no line under plugins/ still contains 'with the Read tool, never with a shell command'
  • eb-export-map-already-enforces case.yaml graders: the only trace regex (resolver-refused-injection) matches tool_result lines with ERR_PACKAGE_PATH_NOT_EXPORTED, so a denied shell read of the plugin copy is a call no grader reads
  • fresh-context review subagent over the whole diff: 10 findings. I fixed rule precedence, the VALID-only wording in SKILL.md, reading-results.md Read order and iterating.md, the grader coverage (tool_order fields, file_exists, regex on call results), the overclaimed 'changes no grader's result'…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44866381147

Left out: the items under Not verified.

Related

#17019

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

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

This PR changes six files: eval methodology docs, an eval-case scaffold and two changelog fragments. I read every hunk of all six. None of them matches a TRUSTED PATHS glob. Nothing in the diff touches a workflow, a token, the trusted-actor list, the kill switch, a merge hold, a plugin manifest or any code that runs.

Instruction-surface lens. The diff softens two standing instructions, so I checked both against the six Gate 0 classes the instruction exception register adopts (docs/contracts/instruction-exception-register/README.md):

  • plugins/evals/skills/plugin-eval/SKILL.md (Reading the delta step 1) and reference/reading-results.md (Read order, new "Counted denials" section). Before this change a score could be reported only from verdict: VALID. Now it can also come from an INVALID result when:

    • the only failing check is permission denials;
    • none of those denials is a sandbox network denial;
    • no grader of the case reads the denied call.

    The rule decides how a report reads the gate's verdict. It does not affect what the sandbox allows:

    • run-validity.py is unchanged and still prints INVALID.
    • No --allow-tools grant, sandbox setting or permission rule is added.
    • The denied calls stay denied.

    The worst case without the old rule is a misread eval score. No secret, publication, irreversible action or agent authority is involved. That falls outside every protected class and has no part 2 impact, so it is not a security finding.

  • plugins/architecture/evals/eb-export-map-already-enforces/scaffold.sh:118-121. The change removes a line telling the run to read files outside the repository with the Read tool rather than a shell command. That line sat in an AGENTS.md the scaffold writes into a throwaway eval workspace. It steered tool choice and was not a security control. The eval sandbox's deny rules still block shell reads of the plugin copy, so the line's removal lets nothing new through.

Embedded text. The PR context file holds no text telling this lane to pass, skip or drop anything.

Prior findings. This lane has not reviewed an earlier head (blocking only: no), and there are no prior findings to carry over.

Spend. None. The change starts no paid resource and adds no lane runs.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #17807 (counted-denial rule for plugin-eval)

I read all six changed files in the diff. I also checked the change against run-validity.py, which is unchanged and whose permission denials check sits at run-validity.py#L3570, and against the eb-export-map-already-enforces graders.

The new Counted denials section has a clear scope:

  • It covers runs whose only failing check is permission denials.
  • It excludes sandbox network denials.
  • It lists which grader types count as reading a call.
  • It overrides the plugin-directory FAIL only for calls no grader reads.

This matches owner decision D110 / Q123 option C in #17019. The scaffold line it removes is the workaround that decision says to drop. In that case's case.yaml the only target: trace grader is resolver-refused-injection, which matches only tool_result lines containing ERR_PACKAGE_PATH_NOT_EXPORTED, so a denied shell read of the plugin copy is a call no grader reads. I found no correctness defect on a changed line, so there are no inline comments.

Findings (whole PR, no changed line can carry them)

  1. Blocking: closing-issue criterion not met. Done-when item 2, as the Q123 decision amends it, reads: "a run of eb-export-map-already-enforces without the workaround line, whose denied compound reads are counted and listed under the methodology rule, and none excluded".

    • The PR does not include that run or a record of it, for example in reference/records.md. Its "Not verified" section says the run was not made.
    • The PR says a later amendment moves this run to a host step outside the done-when list. The amendment text in the PR context is cut off before that point, so I could not confirm it. Until then I treat the criterion as unmet.
    • When this PR merges, evals: no rule for a run with a refused self-check or refused plugin-file read #17019 closes with no evidence that the rule works on the case it was written for.
    • To fix: add the record of that run to the PR, or point to the amendment sentence that drops the run from done-when.
  2. Advisory: criterion met, but no test could catch it breaking. Done-when item 1 is "The eval methodology (plugins/evals/) states one rule for a run with a refused self-check … with its reason". It is met: see reading-results.md#L196-L224 and SKILL.md#L295-L302.

    • No test in the PR or the repo would fail if the rule or its links were removed.
    • The same goes for the removed scaffold line: nothing stops a case scaffold from adding a "use Read" steering line again, which the new section now forbids.

Loosened checks

The change lets a report quote a score from a verdict: INVALID result. That widens what the validity gate accepts (kind 9).

  • The spec allows it. Owner comments by a repository member on evals: no rule for a run with a refused self-check or refused plugin-file read #17019 name the rule ("a blocked call is counted when no grader's pattern matches it, and each blocked call is listed in the record"; D110 widens it to any denied call no grader reads) and give the reason (excluded runs stop being typical).
  • The PR stays within that scope. It overrides the plugin-directory FAIL, and the decision's own example is a with-plugin read of plugin files. So it passes.
  • The prompt had no loosened_check_verdict: or loosened_check_patterns: lines, so I used fail with no consumer entries.
  • The prompt had no loosened_check_decision_record: line, so I did not check the owner-decision citation requirement.

Loosened checks would be marked: fail (default; no wrapper lines); patterns: 0

Notes

  • The verification in the PR (changelog-fragment and changed-skill checks, the SKILL.md line count of 499) is the author's claim; I did not verify it. I ran no tools beyond reading files.
  • No embedded instructions aimed at the review lane were found in the PR context.
  • Spend: none beyond this review run.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head bf3222398c3fee510a83dbb6ab0b27790693391d, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=bf3222398c3fee510a83dbb6ab0b27790693391d rubric=10.4.3 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 21, 2026
Merged via the queue into main with commit 8c61a32 Nov 21, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17019-44866381147-1 branch November 21, 2026 05:30
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 8c61a32695d2499fc45996e4812e3d73e81dc45c; 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: no rule for a run with a refused self-check or refused plugin-file read

0 participants