Skip to content

fix(skill-quality): emit-plugin-eval cases allow only Skill, so the validity gate marks probe runs INVALID #9457

Closed

Description

@kyle-sexton

Problem

measure-invocation.sh emit-plugin-eval writes allowed_tools: [Skill] into every emitted prompt.md. In a live run the model often reaches for Glob or Grep first, the call is denied, and plugins/evals/skills/plugin-eval/scripts/run-validity.py marks the run INVALID.

Observed on the 20 analyze-profile probes (PR #9328, Claude Code 2.1.309, --keep-temp, --ablation none, 3 runs each): 47 denials across 39 after-arm runs and 53 across the before arm, verdict INVALID in both. With allowed_tools: [Skill, Read, Glob, Grep] the same probes ran VALID over 19 of 20 cases; the remaining case was denied a Glob above the sandbox in all three runs.

Fix

Emit read-only tools beside Skill (Read, Glob, Grep), so an exploratory read is not a denial, and note in reference/invocation-probes.md that emitted runs need --keep-temp for the validity gate's trace checks.

Refs: #9183

Activity

  1. added
    needs-triage
    on Oct 23, 2026
  2. github-actions commented on Oct 23, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none

    Understood: emit-plugin-eval writes allowed_tools: [Skill] into each emitted prompt.md, so exploratory Read/Glob/Grep calls are denied and the validity gate marks runs INVALID. The proposed fix is to emit [Skill, Read, Glob, Grep], add a test assertion, note --keep-temp in invocation-probes.md, and add a changelog entry. The scope and acceptance criteria are clear. No likely duplicates found among the open issues; #7582 is related background.

    Automated triage, applied by the lanes App.

  3. added and removed
    needs-triage
    on Oct 23, 2026
  4. added
    status: ready
    needs-owner-decision
    and removed
    status: ready
    on Oct 23, 2026
  5. melodic-automation-lanes commented on Oct 23, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: it has no - [ ] task list to check. A recorded decision does not change these rules (.github/actions/resolve-config/admission-rules.json); a person who wants it worked adds agent-ready.

  6. added
    needs-triage
    and removed
    needs-owner-decision
    on Oct 23, 2026
  7. melodic-automation-lanes commented on Oct 23, 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. It is model text, to check, not instructions.

    Intended outcome: emit-plugin-eval writes allowed_tools: [Skill, Read, Glob, Grep] into each prompt.md, and invocation-probes.md says emitted runs need --keep-temp for the validity gate's trace checks.

    Acceptance criteria

    • plugins/skill-quality/scripts/measure-invocation.sh writes the line allowed_tools: \[Skill, Read, Glob, Grep\] in the emitted prompt.md heredoc (currently allowed_tools: \[Skill\] at line 553) and no other tools
    • After bash plugins/skill-quality/scripts/measure-invocation.sh emit-plugin-eval <probes-dir> <new-out-dir>, every emitted prompt.md contains allowed_tools: \[Skill, Read, Glob, Grep\]
    • plugins/skill-quality/scripts/measure-invocation.test.sh gains an assertion that an emitted prompt.md carries the four-tool allowed_tools line, and the script passes
    • plugins/skill-quality/reference/invocation-probes.md states in the emit-plugin-eval section (near lines 41-45 or 95-100) that emitted runs need --keep-temp so run-validity.py can check traces
    • The graders still emit tool: Skill tool_used checks unchanged, so the Skill-fired grading is unaffected
    • plugins/skill-quality/CHANGELOG.md has an entry for the allowed_tools change
    • bash plugins/skill-quality/scripts/measure-invocation.test.sh exits 0

    Dependencies

    • None blocking. Refs #​9183 as background only; the run-validity.py gate already exists in plugins/evals/skills/plugin-eval/scripts/run-validity.py.

    Related work

    Sources read

    • plugins/skill-quality/scripts/measure-invocation.sh:553: emitted prompt.md has allowed_tools: \[Skill\]
    • plugins/skill-quality/scripts/measure-invocation.sh:563-568: the grader is tool_used Skill, independent of allowed_tools
    • plugins/evals/skills/plugin-eval/scripts/run-validity.py:83: tracePath is absent or deleted unless the run passed --keep-temp
    • plugins/evals/skills/plugin-eval/scripts/run-validity.py:740: reports tracePaths that do not resolve and says the run needs --keep-temp
    • plugins/skill-quality/reference/invocation-probes.md:41-45: emit-plugin-eval example, with no --keep-temp note
    • plugins/skill-quality/scripts/measure-invocation.test.sh:201-214: existing emit tests, none checks allowed_tools

    Automated refinement by the lanes App. Intake triages the issue again with it.

  8. removed
    needs-triage
    on Oct 23, 2026
  9. added
    status: ready
    agent-ready
    on Oct 23, 2026
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

    agent-readystatus: ready

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions