Skip to content

test(planning): grant Bash to the EARS convention case so it covers the resolver - #11598

Merged
kyle-sexton merged 2 commits into
mainfrom
test/11147-ears-case-bash
Oct 31, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
test/11147-ears-case-bash

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #11147

Summary

The interview-ears-convention-tags eval case granted only Read, Glob, Grep and Skill. Its runs read AGENTS.md and the convention README by hand instead of running resolve-convention-home.sh, which the EARS resolution ladder requires, so the case never covered the resolver path.

Fix

  • The case's allowed_tools now include Bash.
  • A new with-only tool_used grader, resolver-ran, requires a Bash call to resolve-convention-home.sh. Its samples pass a resolver call and fail a hand-read of AGENTS.md, a grep of the pointer line, and no call.
  • A planning patch changelog fragment.

Verification

  • validate-cases.py plugins/planning/evals: exit 0. The new samples sort correctly. The only remaining WARN is the expected one: Bash must come from --allow-tools.
  • Paid run of this case on this branch: claude plugin eval <out-of-repo copy> --case interview-ears-convention-tags --runs 3 --scaffold --allow-tools Bash --judge-model opus. run-validity.py: VALID (warning: skill fired). The skill text is the same as main's, because this PR changes only case files, so this one run covers both.
  • Left out: the skill fix itself, which is fix(planning): make the interview run the convention-home resolver before tagging EARS criteria #11597.

Related

🤖 Generated with Claude Code

…he resolver

The case granted only Read, Glob, Grep and Skill, so runs hand-read
AGENTS.md instead of running resolve-convention-home.sh, the step the
EARS ladder requires. Grant Bash and add a with-only tool_used grader
that requires the resolver call, with pass and fail samples.

Closes #11147

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 31, 2026 15:37
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 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-10-31T15:38:56.432114Z 9547cc7 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.

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 6d30f71e1bd0e2107d6de3e29c0092f049e31850: 0 finding(s), 0 as inline comments.

No security issues found in the incremental change since 9547cc7.

I read the incremental diff only. It touches two eval fixtures under plugins/planning/evals/interview-ears-convention-tags/:

  • case.yaml: the resolver-ran grader's input_match regex was rewritten.
  • samples/resolver-ran.json: one passing sample and three failing samples were added.

Neither file is on a trusted path. The change has no security-relevant surface: no workflow, token, trust control, hold path, plugin manifest or standing instruction is touched. It only decides whether a recorded Bash tool call counts as having run resolve-convention-home.sh in an eval run.

I did check the regex for catastrophic backtracking. The lazy prefix group (?:[^"\\]|\\.)*? has disjoint alternatives, so backtracking stays linear. The input it matches is also a recorded eval transcript, not attacker-supplied input to a credentialed lane.

critical-findings: 0

Spend: none beyond the existing eval runs.

@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 9547cc72b201b83c09ecce2a077c702dc9318a74; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 6d30f71e1bd0e2107d6de3e29c0092f049e31850: 0 finding(s), 0 as inline comments.

Incremental review of 6d30f71, covering case.yaml and samples/resolver-ran.json. I found nothing to flag. I read the files but did not run validate-cases.py or the eval, so the sample outcomes below come from tracing the regex by hand.

The change replaces the loose resolver-ran matcher ("command":"…resolve-convention-home\.sh) with one that requires the script to be in command position. I traced the new regex against every sample:

  • Pass samples. bash "…/resolve-convention-home.sh" matches through the bash and quote branches. cd … && bash …/resolve-convention-home.sh matches through the && separator branch. RESOLVE_ROOT=… sh …/resolve-convention-home.sh matches through the env-assignment and sh branch.
  • Fail samples. cat …, grep -n resolve-convention-home.sh … and ls … have no separator before the script name. The path token [^\s"'\\]* cannot cross the space after the command word, so none of them match. The hand-read AGENTS.md sample, the grep 'convention-home' AGENTS.md sample and the empty call list also fail, as expected.
  • Fixed gap. The new fail samples cover the read, grep and list cases that the old loose matcher would have counted as the resolver running. The samples now exercise the sh/env-assignment form.

Two residual edges are contrived and not worth blocking on. bash -n resolve-convention-home.sh (a syntax check) would count as a run. A separator inside a quoted grep argument (grep "a; resolve-convention-home.sh" f) would also match. source/. resolve-convention-home.sh is not recognised, but the skill text prescribes bash "<plugin-root>/lib/…", so the eval does not need to accept it.

No closing-issue criterion is affected by this increment. The changed grader still serves #11147's "runs show a Bash call to resolve-convention-home.sh", and the added fail samples are what make that grader able to fail. This change spends no billed resources.

Review on #11598: the grader passed any Bash command naming
resolve-convention-home.sh, so a cat, ls or grep of it passed. Anchor
the script to the command position (start, or after a separator, an
assignment, or bash/sh), and add those three as fail samples. The two
real resolver calls from the branch's eval run still match.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 2cd0899 Oct 31, 2026
55 of 56 checks passed
@kyle-sexton
kyle-sexton deleted the test/11147-ears-case-bash branch October 31, 2026 16:09
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.

test(planning): grant Bash to the EARS convention eval case so it covers the resolver path

1 participant