Skip to content

test(developer-experience): leave the T4 old-file removal unmeasured - #13177

Merged
kyle-sexton merged 1 commit into
mainfrom
host-run/7296-r10-t4-removal-unmeasured
Nov 4, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
host-run/7296-r10-t4-removal-unmeasured

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #7296

Summary

Eval case t4-apply-migrate (developer-experience setup, scenario T4 turn 2) passed its old-file-removed grader on a Bash rm .claude/developer-experience.md that the eval sandbox denied in all 3 runs of round 5: a tool_used grader matches the call, not its result. .claude/ is a protected path, so that write is denied under dontAsk and no allow rule can pre-approve it, and run-validity.py keeps such a denial a FAIL (#12096). Per the decision record, the case changes and the gate does not.

Fix

  • prompt.md: the user confirms every change except removing .claude/developer-experience.md, which stays in place. The description and expected_outcome say the removal is unmeasured and why (plugins/evals/skills/plugin-eval/reference/case-authoring.md, the .claude/ checklist item).
  • case.yaml: drop the old-file-removed grader; drop its sample samples/old-file-removed.json.
  • Changelog fragment under .changes/developer-experience/.

Verification

  • validate-cases.py plugins/developer-experience/evals: no FAIL; the t4 warnings are the allowed_tools grant notes every case in the suite carries.
  • scripts/check-affected.sh --tests on 21fc8f0c35: 14 passed, 3 skipped.
  • scripts/check-changelog-fragments.sh --check-required origin/main and --check: pass.
  • Host rerun of the case on this head (3 runs, --scaffold, gated with run-validity.py): reported on Run the eval suites deferred by the upstream-pointer sweep PRs #7296 in the round 10 host-run record.

Remaining on #7296

  • te-root-declared-substitution stays INVALID under main's validity script: the chained list-workspaces.sh plus plugin-data read recurred in round 10.
  • knowledge distill and session-flow running-retro do not reach VALID under the eval sandbox.
  • planning plan and session-flow handoff need skill-text changes first.
  • The skills with no plugin eval case.
  • The babysit-prs cloud-session leg, unmet until rewritten for a local session.

Related

🤖 Generated with Claude Code

The eval sandbox denies removing .claude/developer-experience.md, since
.claude/ is a protected path, and run-validity.py keeps that denial a
FAIL. The prompt now keeps the old file, the old-file-removed grader and
its sample are dropped, and the description says the removal is
unmeasured.

Refs: #7296

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T09:16:28.642896Z 21fc8f0 PR opened
ℹ️ 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.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #13177 (head 21fc8f0c)

No security issues found.

I read every hunk of the 3 listed files. I also read the deletion of plugins/developer-experience/evals/t4-apply-migrate/samples/old-file-removed.json, which the diff removes whole and so is on no list.

What changed: all of it is eval test data for the developer-experience plugin's t4-apply-migrate case.

  • case.yaml: the old-file-removed tool_used grader is dropped.
  • prompt.md: the eval's user prompt now asks that .claude/developer-experience.md be left in place, and the frontmatter description and expected_outcome are updated to match.
  • The grader's labeled sample file is deleted.
  • A changelog fragment is added.

What I checked:

  • Trusted paths: no changed file matches a TRUSTED PATHS glob. The .claude/developer-experience.md path appears only as text inside the eval prompt and grader. No file under a .claude/ directory changes.
  • Trust controls: the diff touches no trust control (trusted-trigger, lane token, kill switch, token broker/resolve-config, merge holds or other .github/actions/).
  • Instruction-surface lens: the changed prompt.md is a scenario prompt for a test case. It is not a standing instruction (CLAUDE.md, AGENTS.md, a rules file, a skill or agent body, or a hook list). The removed grader only scored eval runs and enforced nothing at runtime. No guardrail is removed.
  • Plugin manifests: none changed.
  • Workflows and permissions: none changed.
  • The eval sandbox: the change does not weaken the .claude/ protected-path denial or the run-validity.py gate the PR description mentions. Neither file is in the diff. The eval now expects the protected-path write not to happen.
  • Embedded text: the PR context holds no text telling the lane to pass the PR, skip a check, drop a finding or post somewhere else.

Spend: none. This change opens no new spend path. The host reruns of the eval case named in the PR description spend only prepaid model usage.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed 21fc8f0c35ae071ad7b33dd5c4c4bca4c1238fbb: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

I read every hunk of all 3 listed files. I also read the deleted sample samples/old-file-removed.json in the diff.

What changed: eval case t4-apply-migrate no longer grades whether .claude/developer-experience.md gets removed.

  • The old-file-removed tool_used grader is gone from case.yaml, and its sample file is deleted.
  • The prompt now has the user keep the old file.
  • The prompt's description and expected_outcome say the removal is unmeasured and why.
  • A bump: patch changelog fragment is added.

Checks:

  • Matches the repo's rule for .claude/ writes: the change follows the checklist item at case-authoring.md#L73. A write under .claude/ must either not be graded or be recorded as unmeasured, and this case now records it as unmeasured.
  • The fix is sound: a tool_used grader matches the Bash call, not its result, so the old grader passed on a removal the sandbox denied. Dropping the grader and having the prompt keep the file means no run tries the denied write. Without that write, the validity gate has nothing to fail the run on.
  • Nothing left pointing at the removed grader: no other file names old-file-removed. Each of the 4 graders still in case.yaml has a matching sample file. The description's new "items 6-7 and the creation half of item 5" fits what is still graded.
  • Changelog: a test-only eval change fits bump: patch. The PR changes no plugin manifest, so the manifest checks don't apply.
  • Closing issue: the PR says Refs: #7296 and closes no issue, so there are no acceptance criteria to check.

The PR's verification steps (validate-cases.py, check-affected.sh, the changelog-fragment checks, the host rerun) are what the author says they ran. I did not run them.

Spend, not a hold: the rerun of this eval case on this head uses prepaid model credit only.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit da158d9 Nov 4, 2026
40 checks passed
@kyle-sexton
kyle-sexton deleted the host-run/7296-r10-t4-removal-unmeasured branch November 4, 2026 09:30
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