Skip to content

fix(architecture): let the deepening eval cases read the skill's own files - #16180

Merged
kyle-sexton merged 3 commits into
mainfrom
fix/architecture-deepening-eval-prompts
Nov 14, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
fix/architecture-deepening-eval-prompts

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: found by the verification-level eval sweep run locally, not filed as an issue.

Summary

Two architecture eval cases failed on main: deepening-light-labels-unverified (writes-skip-token 0 of 3) and deepening-standard-reproduces-strong (phase-counts failed 2 of 3). The cases were wrong, not the skill. actions/deepening.md is consistent. Line 76 says that under light the artifact's last-but-one line is phase-1.5: verification: skipped (<level>). Line 121 says the file ends with phase-1.5: downgraded=<n> dropped=<n> corrected=<n> when the gate runs. Both prompts asked the model to state that line, but also said "do not scan or open files", which barred it from reading actions/deepening.md. The kept replies said so ("I didn't open actions/deepening.md ... so the exact wording"), so the model guessed the line.

Fix

  • Both prompts now read "do not scan the repository or open its files, though you may read this skill's own files". The graders still read the reply, which now quotes the line from the action file.
  • deepening-standard-reproduces-strong no-skip-token: once the model knows the token, a correct standard-level reply names it only to deny it (for example, "the line won't read verification: skipped (standard)"). The old not_contains regex failed all three such replies in the first verification pass. The grader stays a regex but now matches only a line that starts with the skip line (^[ \t>*-]*phase-1.5...: verification: skipped, flags im`). Its samples add the real denial phrasings as must-pass and three asserted forms (fenced block, bullet, bold quote) as must-fail. Checked offline against the kept replies: it matches none of the three correct standard replies and all three light replies that assert the skip line.
  • Every other grader is unchanged. The changelog fragment is bump: none, since only eval cases change.

Verification

Each pass ran claude plugin eval with --case 'deepening-*' --ablation none --runs 3 --judge-model opus --threshold 0.8 --keep-temp, on Claude Code 2.1.325, tested model claude-opus-5-5.

Case Before (sweep REPORT, main) Pass 1 (prompt fix only) Pass 2 (final tree)
deepening-light-labels-unverified .67 .67 .67 = 0.67 (writes-skip-token x3) 1 1 1 = 1.00 1 1 1 = 1.00
deepening-standard-reproduces-strong .67 .67 1 = 0.78 (phase-counts x2) .67 x3 = 0.67 (no-skip-token failed correct denials) 1 1 1 = 1.00
  • Validity (run-validity.py): pass 1 VALID, pass 2 VALID. Both carry one warning, "skill fired: 0 with-arm runs": the slash command expands the skill inline, so no Skill tool call is recorded. The original sweep showed the same.
  • Cost (list-price estimate, judge included): pass 1 1.59 USD, pass 2 1.49 USD, 3.08 USD total.
  • Spot-read of pass 2: all six runs read actions/deepening.md. The light replies give phase-1.5: verification: skipped (light). The standard replies give phase-1.5: downgraded=<n> dropped=<n> corrected=<n>, and one of them also denies the skip form inline.
  • validate-cases.py reports no findings for either case, with the node RegExp sample check run.
  • Residual gap: a wrong reply that asserts the skip line mid-sentence, not at a line start, would get past no-skip-token. phase-counts and the reproduces-both judge still cover that case.

Related

  • Sweep that found the failures: commits d85c72f and f124c30 added the verification-level cases.

session: AI Hero

🤖 Generated with Claude Code

kyle-sexton and others added 3 commits November 14, 2026 02:28
…files

Both deepening-* case prompts said "do not scan or open files", which also
barred the model from reading actions/deepening.md. Without it the model
guessed the artifact's phase-1.5 line and missed the skip token (light) and
the downgraded/dropped/corrected counts (standard). The skill text is
consistent; the prompts now forbid only the repository scan.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Once the model can read actions/deepening.md, a correct standard-level reply
names the skip token to deny it ("the line won't read verification: skipped").
The not_contains regex failed those replies. It now matches only a line that
starts with the phase-1.5 skip line, and the samples carry the real denial
phrasings as must-pass and three asserted forms as must-fail.

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

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T15:20:31.301916Z f7adc41 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

Copy link
Copy Markdown
Contributor

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

Security review: PR #16180

No security issues found. I read all four changed files in full.

What changed:

  • .changes/architecture/fix-architecture-deepening-eval-prompts-042a19d3.md adds a bump: none changelog fragment.
  • Two architecture eval cases (deepening-light-labels-unverified, deepening-standard-reproduces-strong) change only their prompt text. The model may now read the skill's own files, but it still may not scan the repository or open its files.
  • One regex grader (no-skip-token) is narrowed, and its pass and fail samples are expanded.

Checks made:

  • Tools and limits: allowed_tools: [Read, Glob, Grep, Skill], max_turns: 10 and timeout_seconds: 300 are unchanged in both cases. The prompt edit adds no tool and no write or network ability. It only changes the instructions the model under test reads inside an eval sandbox.
  • Instruction-surface lens: the prompt now allows something it used to forbid ("do not scan or open files" becomes "do not scan the repository or open its files, though you may read this skill's own files"). This is test-fixture input for one eval run, not a standing guardrail in CLAUDE.md, AGENTS.md, a rules file, a skill or agent body, or a hook. It removes no protected-class rule.
  • Grader regex: ^[ \t>*\-]phase-1.5[`\]:[` \t\]verification[`\]:[` \t\]*skippedwith flagsim` has no nested quantifiers, so it carries no meaningful ReDoS risk. It only grades eval output.
  • Trust controls, manifests, workflows: none of the changed files matches a listed trusted path. No plugin manifest, workflow, token request, kill switch or merge hold is touched.
  • Embedded instructions: the PR description contains none aimed at this lane.

Spend: none in CI from this diff. The case files only change what a later eval run would spend on prepaid model usage.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #16180 (eval-only fix to two architecture deepening cases)

No findings. I read every hunk of all 4 changed files in the full diff.

What changed

  • In both case prompts, "do not scan or open files" becomes "do not scan the repository or open its files, though you may read this skill's own files". The model can now read actions/deepening.md, the file that defines the phase-1.5 line, so it no longer has to guess that line. This matches the skill: deepening.md#L76 gives the skip line and #L121 gives the counts line.
  • The no-skip-token grader now matches only at the start of a line (^[ \t>*\-]*phase-1.5…: verification…: skipped, flags im`). I checked the pattern by hand against all 4 must-pass and 4 must-fail samples, without running it:
    • It matches none of the pass samples. Each denial starts its line with prose, or names the skip token without the phase-1.5: prefix.
    • It matches all 4 fail samples: the bare line, the fenced block, the - ` bullet, and the > **phase-1.5:** bold quote. In the bold quote, [*_\\]matches nothing before the:, and [_` \t\]*then takes** `.
    • The YAML single-quoted escapes (\t, \., \\) reach the regex engine as intended.
  • The changelog fragment's bump: none fits. Only eval cases change, and no plugin manifest is touched, so no manifest lines apply.

Limits I did not raise as findings

  • The PR states the main one itself: a wrong reply that asserts the skip line mid-sentence still passes no-skip-token. A numbered-list item (1. phase-1.5: …) or a heading (## phase-1.5: …) also gets past it, because digits, . and # are not in the leading character class.
  • phase-counts (a regex for downgraded) and the reproduces-both judge partly cover these gaps. The author's choice of a narrower negative grader, so that correct denials stop failing, is a reasonable trade.

Rules and context

  • .claude/rules/eval-case-transcripts.md covers these paths. The new samples are short model-style answers to a synthetic prompt and contain no paths or identifying details, so the rule is met.
  • The PR closes no issue, so there are no acceptance criteria to check.
  • I found no embedded instructions in the PR context.
  • The eval pass rates, run-validity.py/validate-cases.py results and cost figures in the PR description are the author's claims. I did not run any of them.

Spend: these cases use eval run credits when the suite runs (the author estimates about 1.5 USD per 3-run pass with an opus judge). That is prepaid usage, not a hold.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit b959b84 Nov 14, 2026
77 checks passed
@kyle-sexton
kyle-sexton deleted the fix/architecture-deepening-eval-prompts branch November 14, 2026 15:31
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant