Repository navigation
fix(knowledge): run distill state checks as single calls and keep eval cases out of .claude - #13784
Conversation
… path Every eval run denies a write under the workspace's .claude/, so suites holding these cases read INVALID: - distill-book-planted-directive, distill-corpus-injected-finding, distill-progress-key-shape and distill-traversal-epub-aborts seed or name their target skill under skills/, as distill-polish-vague-file-looks-complete does. Graders that read the target path accept skills/ with or without the .claude/ prefix, with new pass and fail samples. - distill-target-name-slugified tests that a traversal target name stays under .claude/skills/, so its target cannot move. The prompt stops the run before its first skill-file write, and slug-skill-named (a reply regex) replaces slug-skill-written (a Write attempt). Refs: #13768 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #13768 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The without-arm read the .claude/ hint and named .claude/skills/outside-notes at 1.00; the prompt now blocks skill-file writes without naming where skills live. Refs: #13768 Co-Authored-By: Claude Opus 5.5 <[email protected]>
With the reply-based grader, the without-arm scored 1.00 in 6 of 6 runs (it names .claude/skills/outside-notes too), so the case could not separate. It goes back to main's version and is reported as unmeasured on #13768. Refs: #13768 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The eval sandbox denies a compound Bash call that lists the plugin data directory beside other commands. Run the progress-key script and the EPUB entry listing alone, and check plugin data state and the EPUB cache with Glob or Read. Refs: #13768 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
claude-security-review reviewed Security review: PR #13784 (incremental, 8eab201 → 5853447)I found no security issues in this push. This lane already reviewed an earlier head, so this review was blocking only: it reports only CRITICAL and IMPORTANT findings. What changed: one line in a changelog fragment, Why it carries no risk: the change is prose only. It touches no instruction surface, plugin manifest, workflow, token, trust control, merge hold or kill switch, and no file in the scope matches a trusted-path glob. The new text is accurate: the previous review saw the edit to Spend: none. critical-findings: 0 |
|
claude-review reviewed Code review: PR #13784 (incremental, blocking only)Scope. This was an incremental review of the changes since What changed. Line 5 of the test fragment now reads "the skill-text edit ships in its own Checked. I looked in the full diff to confirm the new sentence is accurate. The sibling fragment Findings. None. The earlier finding is fixed and is not raised again. Spend (not a finding). No paid resources are involved. The only spend is prepaid eval-run usage when the |
…nchanged Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #13768
Summary
Four
distillcases led runs to write under the workspace's.claude/skills/, which every eval run denies (#12096), so their suite read INVALID. Their target skill now sits underskills/. Part (a) of #13768, knowledgedistill. The PR also carries a skill-text fix: with-arm runs chained a plugin-data listing into compound Bash calls, which the eval sandbox denies.Fix
distill-book-planted-directive,distill-corpus-injected-finding,distill-progress-key-shape,distill-traversal-epub-aborts: the target skill is seeded or named underskills/, asdistill-polish-vague-file-looks-completedoes. Grader paths that read the target acceptskills/with or without the.claude/prefix, each with new pass and fail samples. The must-nots get stricter, andchapter-4-distilledfollows the target. What they test does not depend on where the target sits: untrusted book and page text, the progress-key path under the plugin data folder, and the archive listing before extraction.distill-book-planted-directiveanddistill-corpus-injected-findingalso tell the run that the plugin data folder is unreachable and to leave it alone. In r19, Bash compounds that listed it beside a relative path were counted denials.distill-target-name-slugifiedis unchanged. It tests that a traversal name stays under.claude/skills/(skills/distill/SKILL.md:12), so its target cannot move. A reply-based version scored the without-arm 1.00 in 6 of 6 runs, so it could not separate. It is reported as unmeasured on test(evals): re-author protected-path cases and run unmeasured cases left after #7296 #13768.skills/distill/SKILL.md: the progress-key script andunzip -leach run alone as their own Bash call, and plugin-data state and the EPUB cache are checked with Glob or Read, nevercd,ls,catorsedchained into one command (same rule as fix(event-storming): keep simulation's shell calls single and absolute #13809). Each edit stays inside its line, so the line numbers the cases cite are unchanged. Changelog fragment:patch.Verification
validate-cases.py plugins/knowledge: 0 FAIL.--runs 3 --scaffold --allow-tools Bash Write Edit). The head is this branch. The before side is main with this branch'splugins/knowledge/evals. Indistill, the two sides differ only in this PR'sSKILL.mdedit.distill-book-planted-directivedistill-corpus-injected-findingdistill-traversal-epub-abortsdistill-progress-key-shapedistill-progress-key-shape, head: the first run was INVALID on one counted denial. The re-run was VALID, and every denial in it was under the run's own plugin data folder. The before side was INVALID, and its with-arm runs show the compound class this fix removes:ls -la <plugin-data>; ls -la <config>, andmkdir -p <plugin-data> && ls; unzip -l …; unzip -Z1 … | grep. Every run in both arms failsprogress-file-writtenandstate-under-progress-key, because the eval sandbox denies writes under the plugin data folder. That case cannot separate the arms in the sandbox.Remaining on #13768
distill-target-name-slugifiedanddistill-progress-key-shapeto be recorded as unmeasured. The first cannot separate the arms. The second cannot write its state in the sandbox, though its suite is now VALID.Related
🤖 Generated with Claude Code