Skip to content

evals: no rule for a run with a refused self-check or refused plugin-file read #17019

Description

@kyle-sexton

Problem

Eval registrations exclude a run that had a denied tool call. That also drops runs where the session re-checked its own output with a compound shell call the sandbox refuses, so the runs that are counted may not be typical. Two things are undecided: whether such a run is excluded at all, and whether the case prompts or the harness should stop the refusal at its source.

A second shape of the same thing: in the architecture case eb-export-map-already-enforces, with-plugin runs read the plugin's own reference files through compound shell commands the sandbox refuses, then read them with Read; the validity gate rated four passes INVALID. That case works around it with one fixture line (its scaffold's AGENTS.md tells the run to use Read for files outside the repository). The rule decided here says whether that line stays, spreads, or is replaced by a harness fix.

Done when

  • The eval methodology (plugins/evals/) states one rule for a run with a refused self-check (excluded, counted, or reported in a second reading), with its reason.
  • Either the case prompts or the sandbox allow-list stop the refusal, shown by a run with no such exclusion.

Source: workshop 03 (planning) close-out audit.

Activity

  1. added
    needs-triage
    on Nov 18, 2026
  2. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: the evals methodology text under plugins/evals/ and one scaffold line in the eb-export-map-already-enforces case; eval authors and runners read them.
    Reversible: yes; revert the doc edit and restore the scaffold line.
    Open questions: none
    The recorded decision settles the open questions, so none are asked again. It reads:

    Decision recorded. Owner, 2026-11-20, typed in the owning session (verbatim): "I want to make sure that the recommendations are grounded in facts, data, metrics, and research from the latest consensus-based research from official, authoritative, and trusted sources, and just go with the recommendations there." The recommendation was checked against the code at origin/main and current official sources before this record; the decision below is the grounded one.
    Q123 (CHANGED C)
    Option C. Make no sandbox change and add no per-case fixture lines. [quote truncated; the full decision is at the link]

    #17019 (comment)

    The later amendment comment in the thread keeps option C. It sets the rule as: a denied tool call that no grader's pattern reads is counted, not excluded, and each such call is listed in the run's record. It also removes the "use Read" line from the case scaffold, and it lists the done-when checkboxes. The real eval run without the workaround line is a host step, so it is not triaged here.

    Automated triage. A maintainer reviews it.

  3. added
    needs-owner-decision
    on Nov 18, 2026
  4. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: the issue is at status: ready.

  5. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: The evals methodology states one rule for runs with a refused self-check, most likely a headline number counting every run plus a second reading that excludes refused ones, and a harness or allow-list fix replaces the per-case workaround.

    Related work

    Open questions

    1. Is a run with a refused self-check excluded, counted, or reported in a second reading?
      RECOMMENDED: Report in a second reading: the headline counts every run, and a second number excludes runs with a refused self-check. State the reason in the methodology. Basis: judgment
    2. Should the refusal be stopped by the case prompts or by a harness/sandbox allow-list change?
      RECOMMENDED: A harness or allow-list change. Keep the one-line AGENTS.md fixture line in eb-export-map-already-enforces only until it lands, and do not spread it to other cases. Basis: judgment
    3. Which allow-list change is acceptable? Allowing compound shell reads of plugin reference files widens the sandbox, so the owner must say whether it is permitted.
      RECOMMENDED: Allow read-only compound pipelines (cat, head, wc, grep, sed -n) whose paths are all under the plugin copy, the same shape run-validity.py already sets aside. Basis: plugins/evals/CHANGELOG.md:298
    4. What counts as the 'run with no such exclusion' that shows the fix works?
      RECOMMENDED: One eval run of eb-export-map-already-enforces with the AGENTS.md line removed, where the validity gate rates every with-plugin pass VALID with zero permission denials. Basis: judgment

    Sources read

    • plugins/evals/CHANGELOG.md:298: run-validity.py's permission-denials check already reads a denied plain read pipeline (cat, head, wc, grep, sed -n) by its absolute file operands.
    • plugins/evals/CHANGELOG.md:389: a with-arm denied compound Bash call is a warning when a later call ran its plugin part alone and was allowed.
    • plugins/evals/CHANGELOG.md:314: earlier guidance said a reference read can be denied and that a run reads a plugin copy by absolute path.
    • Searched the checkout for the case eb-export-map-already-enforces and found no match, so its fixture line could not be cited.

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  6. kyle-sexton commented on Nov 19, 2026

    @kyle-sexton
    MemberAuthor

    A second sign, from the eval for #17216 (course-digest), 2026-11-18:

    • The skill's "Emit checklist" step copies templates/checklist.md from the plugin into the course's work folder. Runs did that with a shell command naming the plugin copy's folder (cp, or sed ... >), and the eval sandbox blocked it: "cp to '…/templates/checklist.md' was blocked by a deny rule".
    • A grader in the case reads Bash (no-extraction, a pattern on extraction script names that the blocked command does not match), so the gate read the batch INVALID. Three smoke runs stopped this way across two registrations before any compare ran (about 1 USD of plan usage and 50 minutes).
    • Owner decision, 2026-11-18, typed in the agent session: a blocked Bash call is counted when no grader's pattern matches it, and each blocked call is listed in the record. The local eval kit applies it per registration; the gate script itself is unchanged.
    • In the registration that did complete, no Bash call was blocked; one run's Read of a checklist template path inside the plugin copy was denied and counted.
  7. kyle-sexton commented on Nov 21, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. Owner, 2026-11-20, typed in the owning session (verbatim): "I want to make sure that the recommendations are grounded in facts, data, metrics, and research from the latest consensus-based research from official, authoritative, and trusted sources, and just go with the recommendations there." The recommendation was checked against the code at origin/main and current official sources before this record; the decision below is the grounded one.

    Q123 (CHANGED C)

    Option C. Make no sandbox change and add no per-case fixture lines. The rule the owner already decided (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) is the whole fix. Remove the AGENTS.md "use Read" workaround line from eb-export-map-already-enforces. Amend done-when item 2 to read: "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". Why not A: the eval sandbox is generated by the upstream claude plugin eval CLI, not by this repository, and its only widening lever is --allow-tools, which "applies to every case in the run". Claude Code's docs call Bash rules that constrain arguments "fragile". A path-scoped Read(//<plugin>/skills/**) grant has already failed to lift plugin-copy denials here (records.md:132-133). So "allow pipelines only when every path is under the plugin copy" has no proven mechanism, and it would loosen a sandbox control. run-validity.py's "sets aside" (CHANGELOG :346, :477) is a scoring classifier, not an allow-list, so it is no precedent for widening the sandbox. If the owner still wants the refusal gone at its source, the narrow path is a one-case probe: a Read(//<copy>/**) grant, which the docs say also covers cat/head/sed in Bash. Run it before any methodology or sandbox text changes.

    Basis

    • https://code.claude.com/docs/en/plugin-evals#grant-tools (read 2026-11-20): "A run allows only the read-only tools the case lists in allowed_tools ... plus whatever you grant with --allow-tools. That grant applies to every case in the run."
    • https://code.claude.com/docs/en/permissions (read 2026-11-20): "Every subcommand must be allowed for a compound command to run without a prompt, for example because the subcommand matches an allow rule or is a read-only command"; the read-only set includes cat, head, tail, grep, wc; "Bash permission patterns that try to constrain command arguments are fragile"; Read/Edit rules also apply to "file commands it recognizes, such as cat, head, tail, sed, and tee"
    • plugins/evals/skills/plugin-eval/reference/records.md:132-133 (a path-scoped Read grant still left with-arm spoke Reads denied, 2026-10-02) and :145 (the sandbox listed the plugin root under denyRead); plugins/evals/CHANGELOG.md:346, :437, :477 and run-validity.py own_copy_denial (:2367) and recovered_denial (:2647), all classifier set-asides, read at origin/main this session

    Dissent considered

    C does not literally meet done-when item 2 ("Either the case prompts or the sandbox allow-list stop the refusal"), hence the amendment. With-plugin runs still spend a denied call and a Read fallback, so their turn counts stay slightly atypical. A grader that reads Bash still turns such a run INVALID under D110, and those cases would need A or a fixture line. The refinement's :298 cite has moved to :346 (as the question already notes).

  8. removed
    needs-owner-decision
    on Nov 21, 2026
  9. removed
    needs-triage
    on Nov 21, 2026
  10. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  11. kyle-sexton commented on Nov 21, 2026

    @kyle-sexton
    MemberAuthor

    Amendment to the decision above, from the research re-check (owner direction of 2026-11-20 recorded there).

    Amendment

    Q123 stays option C: no sandbox change, no per-case fixture lines. The fix is the owner's counted-denial rule, D110: a denied tool call that no grader's pattern reads is counted, not excluded, and each denied call is listed in the run's record. The "use Read" workaround line goes from the case scaffold (plugins/architecture/evals/eb-export-map-already-enforces/scaffold.sh:122 at origin/main). Two parts of the decision's basis change.

    1. The Bash file-command sentence is about deny rules. The decision quoted it as "Read/Edit rules also apply to file commands it recognizes". The research's claim P3: "The permissions page states that Read and Edit deny rules apply, in a Bash command Claude Code can analyze, to redirection targets and to recognized file commands such as cat, head, tail, sed and tee" (permissions). Its qualifiers: deny rules do not reach a command that reads files without naming them (grep -r from a parent directory, or a script that opens files itself). The same page does check Read allow rules in two Bash cases: an input redirect target (< file), and the Read rule saved when a cd outside the working directories is approved.

    2. The fallback probe is withdrawn. The decision offered a one-case Read(//<copy>/**) grant probe, on the grounds that "the docs say" it covers cat/head/sed. That grant route is not documented, and an earlier run showed it did not lift the denials. The record is plugins/evals/skills/plugin-eval/reference/records.md:132-133 at origin/main: with a path-scoped --allow-tools "Read(//<plugin>/skills/**)" grant on one case, both with-plugin runs still had a spoke Read denied, and the run's settings held no deny rule. Two sandboxing-page claims fit that result:

      • S1: "The sandboxing page lists sandbox.filesystem.allowRead as the setting that re-allows reading paths within a denyRead region, and lists Edit allow rules but no Read allow rule as granting sandbox filesystem access" (sandboxing). Qualifier: the page does not separately say a Read allow rule has no sandbox effect. It says paths from permission rules are merged into the final sandbox configuration, and it does not say whether a Read allow path merges in as a read allowance.
      • E3: "The plugin-evals page states that when Bash is granted in any form, each command runs under the OS-level sandbox with writes confined to the run's workspace and the home directory and Claude Code configuration unreadable" (plugin-evals). Qualifier: the page does not say where the loaded plugin copy sits relative to those unreadable paths.

      So the permissions, sandboxing and plugin-evals pages, the three the research read, document no route from a Read allow grant to a sandbox read of the plugin copy. Whether some other route exists stays open.

    These claims back the rest of the decision:

    • P1, the compound-command split: "The permissions page states that Claude Code splits a compound Bash command on the separators &&, ||, ;, |, |&, & and newlines, that each subcommand must be allowed (by an allow rule or as a read-only command) for it to run without a prompt, and that deny and ask rules apply when any subcommand matches" (permissions).
    • P2, the fragile argument patterns: "The permissions page warns that Bash permission patterns that try to constrain command arguments are fragile, and points to deny rules plus WebFetch domain rules, PreToolUse hooks, or the sandbox for a restriction that must hold" (permissions). Qualifier: the page's example is a URL argument. Applying the warning to a file path argument is the reader's step, not a sentence on the page.
    • E1, the grant scope: "The plugin-evals page states that a run allows the read-only tools a case lists in allowed_tools plus whatever is granted with --allow-tools, and that this grant applies to every case in the run" (plugin-evals).
    • E2, no repository-side widening: "The plugin-evals page states that a case's allowed_tools and a skill's allowed-tools frontmatter can't widen the --allow-tools, --scaffold or real-MCP-server opt-ins, and that no project-level configuration (.claude/, CLAUDE.md, .mcp.json) loads in a run" (plugin-evals).

    Item 2 of the issue's done-when, as the decision amended it, asks for a real eval run of the case without the workaround line. That run is a host step and is not in the list below.

    The research's verifier failed its wording row (row 12): some restatements carried no claim IDs, and some were wider than their claims. The rows that check the sources passed: every quoted source was confirmed live, with its date.

    Done when

    • The evals methodology under plugins/evals/ states the counted-denial rule: a run with a denied tool call that no grader's pattern reads is counted, not excluded, and each such call is listed in the run's record. The rule's reason is stated beside it.
    • The line "Read a file outside this repository with the Read tool, never with a shell command." is gone from plugins/architecture/evals/eb-export-map-already-enforces/scaffold.sh, and no other case scaffold under plugins/ gains a line like it.
    • No text the change adds under plugins/evals/ says that a Read allow grant lets Bash file commands read the plugin copy.
    • The change adds no sandbox setting and no --allow-tools value to any case file.
  12. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"6eb82a814d9781ce8ad52d65dc9a10a4d3a13f3b9f4073d0d3f01c02ae3c6ea9","body_sha256":"bfd01f52b6243b6cb804b37f1f056d6e29669b534a5709de9e207dd98309345d"}

  13. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"6eb82a814d9781ce8ad52d65dc9a10a4d3a13f3b9f4073d0d3f01c02ae3c6ea9","body_sha256":"bfd01f52b6243b6cb804b37f1f056d6e29669b534a5709de9e207dd98309345d"}

  14. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor
    No description provided.
  15. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor
    No description provided.
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

    Type

    Fields

    Work status

    needs-triage

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions