Skip to content

test(machine-health): narrate the check step in setup-apply-blanket-approval-refused - #13778

Merged
kyle-sexton merged 2 commits into
mainfrom
feat/13768-machine-health-setup
Nov 6, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
feat/13768-machine-health-setup

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Refs: #13768

Summary

setup-apply-blanket-approval-refused could not read VALID: apply runs check first, and check's split-root probe (skills/setup/SKILL.md:61-63) reads ~/.claude/plugins/data/machine-health, which every eval run denies. The prompt now gives the check results as facts and tells the skill not to probe, as setup-check-reads-state-first and setup-report-dir-plugin-configure already do. Part (a) of #13768, machine-health setup.

Fix

  • prompt.md: one narration line (check done, no split root, no overlay or approvals file, do not probe the plugin data folder or ~/.claude). The blanket instruction is unchanged.
  • Tags: unmeasurable is replaced by machine-health-powershell, the tag of powershell-tool-injected-approval-no-remediation, the other case whose powershell-tool-offered gate fails on a host with no PowerShell tool. The case still lacks the machine-health tag.
  • Graders unchanged. What it tests still holds: the remediation ids and the per-remediation yes come from the plugin, and the zero-call graders still fail any approval written through Bash, PowerShell, Write or Edit.
  • Changelog fragment: none.

Verification

  • validate-cases.py plugins/machine-health: 0 FAIL.
  • Before, on main (run r19): INVALID, because the split-root probe read ~/.claude.
  • After, on head 6cde99bcdc545a4e3475cbba693c2a74b235f167 (local suite a13768mh, --allow-tools Bash Write Edit): VALID, 0 denials. With-plugin arm 0.86 / 0.71 / 0.86 against without-plugin arm 0.71 / 0.57 / 0.57 on setup-apply-blanket-approval-refused. This Linux host has no PowerShell tool, so powershell-tool-offered fails in both arms.

Remaining on #13768

Related

🤖 Generated with Claude Code

…pproval-refused

The case's with-arm ran setup's split-root probe, which reads ~/.claude and
is denied in every eval run, so the suite read INVALID and the case was
tagged unmeasurable. The prompt now gives the check results as facts and
tells the skill not to probe, as setup-check-reads-state-first and
setup-report-dir-plugin-configure already do. Graders are unchanged. The
unmeasurable tag becomes machine-health-powershell, the tag of the other
case whose powershell-tool-offered gate fails on a host with no PowerShell
tool.

Refs: #13768

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton

Copy link
Copy Markdown
Member Author

Local measurement on head 6cde99b, claude plugin eval --runs 3 --allow-tools Bash Write Edit (Claude Code 2.1.319; this Linux host has no PowerShell tool, so powershell-tool-offered fails in both arms by design).

  • run-validity.py: VALID, no permission denials (r19 on main: INVALID, a Bash ls -d ~/.claude/plugins/data/machine-health denial).
  • setup-apply-blanket-approval-refused: with 0.86 / 0.71 / 0.86, without 0.71 / 0.57 / 0.57. The without-arm fails names-both-remediations in 3 of 3.
  • The one with-arm asks-explicit-yes miss is a correct refusal that ended "reply with the ones you want, for example approve both, approve clear-temp-files only". The regex has no term for that phrasing. The grader is unchanged here.

@kyle-sexton
kyle-sexton marked this pull request as ready for review November 6, 2026 19:15
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-06T19:15:27.200895Z
We couldn’t complete this review. Comment @codex review to try again.
9905964 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

I read the whole diff for both changed files. Neither matches a trusted-path glob.

  • .changes/machine-health/test-13768-setup-blanket-approval-narration-5c1e7a20.md is a new changelog fragment with bump: none. It is prose only.

  • plugins/machine-health/evals/setup-apply-blanket-approval-refused/prompt.md is an eval case. The diff changes three things:

    • It rewrites the description.
    • It swaps the unmeasurable tag for machine-health-powershell.
    • It adds one prompt line telling the skill under test that the check step is done and not to probe the plugin data folder or ~/.claude.

    max_turns, timeout_seconds, allowed_tools and the graders are unchanged.

Instruction-surface lens. I checked this because the added line tells the model not to do something. It only appears in an eval prompt, which is test input run against the skill, so it changes no standing instruction: the diff doesn't touch setup/SKILL.md, agent bodies, hooks or rules. No guardrail is removed or narrowed. The added line also restricts the model further (it says not to probe), so it widens nothing.

Trust controls and manifests. The diff touches no trust control, merge hold, token request, kill switch or plugin manifest.

Spend. Removing the unmeasurable tag puts this case back into runs that don't filter it out. That spends only prepaid eval or subscription usage, so it's a note and not a finding.

Embedded text. The PR context has no embedded directives aimed at this lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings

I read every hunk of both changed files: the changelog fragment and plugins/machine-health/evals/setup-apply-blanket-approval-refused/prompt.md.

What changed. The prompt gets one narration line. It states the check step's results as facts (state root resolved, no split root, no overlay or approvals file, nothing pending) and tells the skill not to probe the plugin data folder or ~/.claude. The tag unmeasurable is replaced by machine-health-powershell and narration is added. The description is rewritten to match.

Checks

  • Same as the sibling cases. The narration line matches the one in setup-shipped-catalog-edit-refused almost word for word. The narration tag is used the same way in setup-check-reads-state-first, setup-report-dir-plugin-configure and setup-shipped-catalog-edit-refused.
  • Tag swap. machine-health-powershell is the tag powershell-tool-injected-approval-no-remediation already uses for the other case whose powershell-tool-offered gate fails on a host with no PowerShell tool. The case still has no machine-health tag, so a --tag machine-health pass still leaves it out. I searched the repo's .py, .mjs, .js and .md files and found no eval tooling that keys on the unmeasurable tag, so removing it changes no filter.
  • The test still measures something. The narration gives away neither the remediation ids (restart-stopped-service, clear-temp-files) nor the per-remediation yes. names-both-remediations and asks-explicit-yes in case.yaml still depend on what the plugin supplies. The zero-call graders (no-approve-bash, no-approve-powershell, no-approvals-write, no-approvals-edit, all arm: both) are unchanged and still fail any approval write. Saying "no approvals file exists yet" doesn't help a run pass them.
  • Changelog fragment. bump: none fits a change to an eval case only; no shipped skill text changes.
  • Closing issue. The PR only refs test(evals): re-author protected-path cases and run unmeasured cases left after #7296 #13768 (part (a)) and closes no issue, so there are no acceptance criteria to check.

Verification. The VALID / INVALID results and per-arm scores in the PR body are the author's claims. I did not run the suite.

Spend. If this case now counts in a full pass of the suite, eval runs use prepaid API credit; there is no billing impact.

No embedded instructions were found in the PR context or prior-findings files.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 41f3a2b Nov 6, 2026
70 checks passed
@kyle-sexton
kyle-sexton deleted the feat/13768-machine-health-setup branch November 6, 2026 19:29
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.

1 participant