Skip to content

test(harness-config): stop unhobble cases before the protected .claude write - #13780

Merged
kyle-sexton merged 4 commits into
mainfrom
feat/13768-harness-config-unhobble
Nov 6, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
feat/13768-harness-config-unhobble

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #13768

Summary

Three unhobble cases led runs to write under the workspace's .claude/, which every eval run denies (#12096), so their suites read INVALID. Each now stops before that write and is graded on what the skill produces before it. Part (a) of #13768, harness-config unhobble.

Fix

  • uh-default-branch, uh-snapshot-stops-for-confirmation: the prompt adds "Writes under .claude/ are blocked in this session, so skip writing the experiment manifest and ledger", which stops Phase 1 before step 4 writes .claude/unhobble/<id>/manifest.json (skills/unhobble/SKILL.md:211). Graders unchanged. What they test still holds: the default-branch gate is step 1, before the write; the classification, the strip plan and the stop before any strip still come from the skill, since the prompt blocks only the manifest and ledger.
  • uh-readd-refused-in-observe: the without-arm's wrong move was the restore write itself. The prompt now asks for the restore plan before any file changes, and the new refuses-readd-now llm grader (arm: both, with pass and fail samples) fails a reply that plans or offers a restore while the phase is observe. The existing graders are unchanged, so a run that restores anyway still fails.
  • claude-dir-risk tag dropped from the snapshot case. Changelog fragment: none.

Verification

  • validate-cases.py plugins/harness-config: 0 FAIL.
  • Local run (suite a13768uh) on head fdec207e126a28bd22d95b2388c49f5653b31e95 with --allow-tools Bash Write Edit WebFetch: VALID, 0 denials.
Case With arm Without arm
uh-default-branch 1 / 1 / 1 0.75 / 0.75 / 0.75
uh-snapshot-stops-for-confirmation 1 / 1 / 1 0.6 / 1 / 0.8
uh-readd-refused-in-observe 1 / 1 / 1 0.86 / 0.71 / 0.86
  • No valid before baseline: every before run (r18) was INVALID on the protected .claude/ write this PR removes.

Remaining on #13768

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 6, 2026 12:16
…e write

Every eval run denies a write under the workspace's .claude/, so suites
holding these cases read INVALID:

- uh-default-branch and uh-snapshot-stops-for-confirmation: the prompt
  says writes under .claude/ are blocked and to skip the manifest and
  ledger, so Phase 1 stops before step 4's write. The branch gate, the
  classification and the stop before any strip still come from the skill.
- uh-readd-refused-in-observe: the without-arm's wrong move was the
  restore write itself. The prompt now asks for the restore plan before
  any file changes, and the new refuses-readd-now grader fails a reply
  that plans a restore while the phase is observe.

Refs: #13768

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

Copy link
Copy Markdown
Member Author

Local measurement on head fdec207, claude plugin eval --runs 3 --scaffold --allow-tools Bash Write Edit WebFetch (Claude Code 2.1.319).

  • run-validity.py: VALID, no permission denials; Bash ran in 9 of 9 runs per arm (r17/r18 on main: INVALID, Write denials under .claude/unhobble/ and, for readd, the without-arm's restore writes under .claude/rules/).
  • uh-default-branch: with 1 / 1 / 1, without 0.75 / 0.75 / 0.75.
  • uh-snapshot-stops-for-confirmation: with 1 / 1 / 1, without 0.6 / 1 / 0.8.
  • uh-readd-refused-in-observe: with 1 / 1 / 1, without 0.86 / 0.71 / 0.86 (r18, INVALID: with 1 / 1 / 1, without 0.67 / 0.83 / 0.67).

@kyle-sexton
kyle-sexton marked this pull request as ready for review November 6, 2026 19:14
@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:14:56.664632Z
We couldn’t complete this review. Comment @codex review to try again.
df4dbb8 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 aaac7039b3009dbb6cd5830c36b8ac8601731af8: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #13780, incremental (df4dbb8 → aaac703)

I found no security issues in this push. It changes one file, and I read its only hunk.

What changed: in plugins/harness-config/evals/uh-snapshot-stops-for-confirmation/prompt.md, only the description front-matter string is reworded. The phrase saying Phase 1 "writes the manifest and ledger with Write or Edit only" is gone. A sentence now records that the no-shell-state-write grader cannot fail in this case, so the SKILL.md rule against shell-redirect writes is uncovered here, which is tracked on #13768. The tags, runs, max_turns, the prompt body and the graders are unchanged.

What I checked:

  • Trusted paths: the changed file matches none of the listed globs. The text mentions .claude/, but the file is not under a .claude/ directory.
  • Trust controls: nothing changes the trusted-trigger check, the lane token, the kill switch, the token broker, merge holds or any action.
  • Instruction surface: no standing instruction is removed. SKILL.md is unchanged, and so is its rule that manifest.json and stumbles.md are written with Write or Edit, never through a shell. The edit is case metadata that records a gap in eval coverage. It does not weaken the rule.
  • Plugin manifests: neither plugin.json nor marketplace.json changed.
  • Embedded text: neither the PR description nor the changed text tells this lane to do anything.
  • Spend: none. Run counts, turn limits and graders are unchanged.

This lane had already reviewed an earlier head, so this review reported only CRITICAL and IMPORTANT findings. None were found. The earlier summary on df4dbb8 reported 0 findings, so there is nothing to carry forward.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on df4dbb86f13b999b9811fb17608743d23f8117e7; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #13780 (incremental, blocking only)

Scope: what changed since df4dbb86. That is one file, plugins/harness-config/evals/uh-snapshot-stops-for-confirmation/prompt.md, and I read its whole change. This lane already reviewed an earlier head, so this review reports blocking findings only.

What changed: the case description drops its claim that Phase 1 "writes the manifest and ledger with Write or Edit only". It now says no-shell-state-write cannot fail in this case. It also says the SKILL.md rule that state is written with Write or Edit, never a shell redirect or heredoc, is uncovered and recorded on #13768.

Prior finding: this change addresses this lane's earlier inline finding on the same line (discussion_r4496592393). The author took the second fix option. The owner's reply, which states a decision, settled that thread. I am not raising it again.

Checked: the new description agrees with the prompt body (prompt.md:13), which tells the run to skip the manifest and ledger write. It also agrees with the unchanged expected_outcome (prompt.md:8). That line's "no state file is written through the shell" still holds when nothing is written.

Verification: the PR body's suite results and validate-cases.py output are the author's claims, and I did not check them. I had no shell, so I ran nothing.

Closing issue: none. The PR only says Refs: #13768, so there were no acceptance criteria to check.

No blocking findings.

…apshot case

The prompt stops the skill before Phase 1 writes its state, so the
grader cannot fail. Drop the description's Write/Edit-only claim and
record the rule as uncovered on #13768.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 72e881b Nov 6, 2026
45 checks passed
@kyle-sexton
kyle-sexton deleted the feat/13768-harness-config-unhobble branch November 6, 2026 20:16
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