Repository navigation
refactor(knowledge): drop the distill re-read-what-felt-rushed polish step - #13552
Conversation
… step Phase 5 of /knowledge:distill asked the model to re-read any file that felt rushed, a self-check with no new evidence source. Opus 5 guidance says such verification instructions cause over-verification. The link check, routing stress test and fresh-session corpus test stay. Adds an outcome eval case, distill-polish-expands-thin-file, with a generated two-page PDF fixture, so the cut is measured on both versions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
….claude With no shell the skill's visibility check cannot run, so the with-arm may hold its writes; the grader now reads the reply for the thin file and a Chapter 2 specific. The skill moves to skills/testing because writes under .claude/ are denied in a run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eck-lines-batch-3
Codex Review SummaryThis 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. |
|
claude-review reviewed Code review: PR #13552, drop the distill "Thin section audit" polish stepI read every hunk of all 7 changed files. I found no blocking or advisory findings. What changed
Checks I made by reading the code (nothing was run)
Verification claims. The validator runs, the test runs and the per-arm eval results (1.00 with the line and 1.00 without) are the author's claims, and I have not verified them. As the PR itself says, the without-plugin arm is at the ceiling and n=1 is "too small to call". So this case can only show that removing the line loses nothing on this one scenario. It cannot show that the line ever helped. Closing issue: none. The PR names an owner decision instead of an issue, so there were no acceptance criteria to check. No embedded directives were found in the PR context. Trusted paths: none of the changed files match a trusted-path glob. Spend (not a finding): the new eval case uses prepaid model credit each time it runs (3 runs per arm, up to 30 turns and 900 s each). The author reports about 1.4 USD per two-arm pass. |
|
claude-security-review reviewed Security review: PR #13552 (head
|
No related issue: owner decision in the poteto session, 2026-11-05 (no new issues while issues are driven to zero)
Summary
Batch 3 of the self-check sweep covers plugins
implementationthroughx. It removes one line, the/knowledge:distillPhase 5 "Thin section audit". That step had the model re-read its own files "that felt rushed", a re-check with no new evidence source. Every other candidate is kept, and the borderline ones are listed below with their class.Owner decision (2026-11-05, poteto session), verbatim: "Go w/ recomendations", on the option "Remove the lines that ask the model to re-read or double-check its own answer, from every skill and agent. Keep the steps that run real tests, builds or type-checks. Put the verifier-subagent steps behind the new verification setting."
Basis: https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-opus-5, "Claude Opus 5 verifies its own work without being told to. If your prompt contains explicit verification instructions ("include a final verification step for any non-trivial task," "use a subagent to verify"), remove them: instructions like these cause over-verification on Claude Opus 5, and removing them reduces wasted tokens with no loss in quality."
Fix
Removed (line numbers at origin/main
b489e435c7cc15ea6db127b2d826b970c1039dd7):plugins/knowledge/skills/distill/SKILL.md:229- **Thin section audit**. Re-read any file that felt rushed during distillation. Expand with specifics from the PDFThe rest of Phase 5 stays: the cross-reference check, the routing stress test and the fresh-session web corpus test. The removed bullet carried no other rule.
Added an outcome eval case,
plugins/knowledge/evals/distill-polish-expands-thin-file, which exercises the removed behaviour. It also adds a generated two-page text PDF fixture,plugins/knowledge/evals/fixtures/distill-make-pdf.py. In the scaffold, one reference file holds one line while its chapter states four specifics. The grader passes when the reply names that file and at least one of the missing specifics.Kept borderline lines (judged on their text; class in the second column):
plugins/review/skills/fanout/context/fix-pass-mode.md:150"After each fix, re-read the touched region to confirm the edit landed as intended."~/.dockerholds links.plugins/implementation/skills/implement/SKILL.md:176replan "answers yes to each check"plugins/implementation/skills/implement/SKILL.md:233"Self-review is the floor"plugins/implementation/skills/implement/SKILL.md:271Step 5 self-reviewgit diffplugins/knowledge/skills/distill/SKILL.md:230routing table stress testplugins/knowledge/skills/distill/SKILL.md:242"Re-read the core list to see if anything shifted"plugins/knowledge/skills/distill/context/templates.md:253"reread every quote ... against Source text safety"plugins/planning/skills/design/SKILL.md:278"Re-read all design artifacts."plugins/planning/skills/design/SKILL.md:301-304naming checksplugins/planning/skills/plan/SKILL.md:89,93phase-to-criterion walk, "This self-check"plugins/planning/skills/prd/SKILL.md:256-258plugins/planning/skills/wayfind/SKILL.md:244"Reread the open items ... against what was just decided"plugins/planning/skills/interview/context/assumption-sweep.md:154pre-round contradiction passplugins/playbooks/skills/fable-5/SKILL.md:55,100,context/verification.md:19-21,91-104plugins/songwriting/skills/co-write/SKILL.md:160"check each emitted line against it"plugins/source-control/skills/commit/SKILL.md:87subject pre-checkplugins/review/skills/quality-gate/context/code.md:69"Re-runselfmode"plugins/user-interface/skills/audit/reference/launch-scope.md:346-348cross-lane self-checkplugins/work-items/skills/decompose/SKILL.md:63four slice checksplugins/machine-health/skills/setup/SKILL.md:176,227,346re-read after writeplugins/plugin-quality/agents/auditor.md:81re-read after writingplugins/session-flow/skills/workflow/context/pre-pr.md:14,context/steps.md:183self-review the diffplugins/playbooks/skills/boris/vendor/**,plugins/playbooks/skills/skill-authoring/vendor/**,plugins/playwright/skills/playwright/vendor/**Hits judged: 552 unique file:line entries, judged by text:
SKILL.md,reference/,context/,actions/andagents/*.mdfile in the 46 plugins (767 files).The raw grep returned 965 hits. Of those, 526 were dated
Recheck when/Recheck on/Recheck:source markers, which are not directives, and were excluded mechanically.Verification
plugins/skill-quality/scripts/check-skill.sh plugins/knowledge/skills: 7 passed, 0 failed.plugins/knowledge/tests/docpage-digest-batch.test.shandverify-batch-page.test.sh: pass (43 Python tests OK)./evals:validate(validate-cases.py plugins/knowledge/evals): exit 0, no FAIL. The new case gets only the standard Write/Edit grant warnings.check-affected: pass.distill-polish-expands-thin-file,claude plugin eval --scaffold --keep-temp --judge-model opus --allow-tools Write Edit --threshold 0.8. Each run used a copy of the plugin outside the repository, holding the same case. The only difference between the copies is the removed line. Runs: 3 per arm, Claude Code 2.1.318, modelclaude-opus-5-5.compare verdictisn too small to call: one case, where 3 or more are needed.reference/idempotency.mdas missing almost all of Chapter 2, listing the Idempotency-Key header, the 24-hour retention, 409 and 422. With no shell, the visibility check could not run, so it held the write..claude/were denied. That led to moving the case's skill toskills/testingand grading the reply. Its result is not counted.Related
docs/review/skills-and-agents.md(eval evidence of no loss)🤖 Generated with Claude Code