Skip to content

refactor(testing): concise skill bodies, measured no loss - #11735

Merged
kyle-sexton merged 1 commit into
mainfrom
feat/6558-testing-concise-skills
Oct 31, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
feat/6558-testing-concise-skills

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Closes #6558

Summary

Problem: the testing skill bodies carried prose the skill criteria do not need, and three behaviors were stated loosely enough that runs missed them. This PR tightens the 9 model-invoked skills (about 1.5% fewer words overall), states those three behaviors plainly, leaves every description and setup unchanged, and adds the outcome eval cases and frozen trigger probes the rollout runbook requires.

Skill Words before → after Measured cases With-plugin mean before → after Decision
audit 4731 → 4664 (-1.4%) 2 1.00 → 1.00 ship rewrite
check 199 → 189 (-5.0%) 1 0.89 → 1.00 ship rewrite
check-visual-parity 1585 → 1625 (+2.5%) 1 0.83 → 1.00 ship rewrite
cleanup 5025 → 4970 (-1.1%) 1 1.00 → 1.00 ship rewrite
diagnose 3393 → 3286 (-3.2%) 1 1.00 → 1.00 ship rewrite
plan 940 → 938 (-0.2%) 1 1.00 → 1.00 ship rewrite
run-e2e 14970 → 14708 (-1.8%) 11 1.00 → 1.00 ship rewrite
test-value 2176 → 2156 (-0.9%) 2 1.00 → 1.00 ship rewrite
write 8394 → 8235 (-1.9%) 8 0.89 → 0.95 ship rewrite
setup (user-invoked) unchanged not measured not measured unchanged

No case's score dropped. Descriptions are byte-identical, so the skill listing and triggering are unchanged.

Fix

  • write: refactor only after a green run, as its own step, never folded into the edit that made a test pass; each Refactor step ends with a plain Refactor checkpoint: line, repeated verbatim in the final summary.
  • check-visual-parity: a known mismatch kept under tolerance needs a pixel_tolerance entry (pixels and a reason) in docs/conventions/testing.yaml, which the reply names; the skill never raises the tolerance itself.
  • Skill bodies and spokes tightened; each cut rationale is covered by an eval case or carries no rule (history asides, duplicates).
  • 10 new outcome cases and frozen trigger probes; the one new llm grader calibrated at 100% agreement.
  • Smoke-pass case fixes: every git init scaffold now ignores root dotfiles the eval sandbox leaves behind (they made git status dirty); pl-branch-test-plan grants Bash and reads the parser from the trace; cl-no-mutation-gate accepts a paraphrase of the cannot-fail-only offer.

Verification

  • Measured passes, before vs after, with-plugin arm only, 3 runs, opus judge, Claude Code 2.1.316, split by tool grant: read-only (16 cases), Bash (5), Bash/Edit/Write (5 after exclusion), Bash groups under the plugin-eval Docker link swap. Every result run-validity VALID. Non-inferior at margin 0.05: read-only +0.01 [-0.01, +0.03], Bash +0.02 [-0.02, +0.07], Bash/Edit/Write +0.03 [-0.03, +0.10].
  • Excluded before measuring: browser-probe (the sandbox cannot reach its browser CLI) and every no-trigger case (they cannot detect a skill-text change).
  • Deviation, disclosed: k36-cart-total never fired its skill in either version (it measures whether the unchanged write description triggers without the skill being named), and the before run of k36-cart-total-named had one $TMPDIR Bash denial, so run-validity was INVALID for that group in both versions. Both k36 cases were excluded from both versions after the numbers were read; both scored higher after the rewrite (0.50 → 0.58, 0.75 → 1.00), so the exclusion cannot favor it.
  • Meaning diff (/docs-hygiene:compress compare, two labelers per skill): 9 of 9 PASS, no SEMANTIC LOSS or AMBIGUITY row.
  • /skill-quality:check on all 10 skills: PASS, every base-ref trigger phrase preserved.
  • Merging main resolved three conflicts in audit, cleanup and run-e2e by keeping the rewrite's wording plus main's additions (a model-alias pointer, and the --unattended rename).
  • GitGuardian flagged tok_demo_7Hq2LmX9vR4sT1 in dg-order-dependent-rate as a generic high-entropy secret: a false positive. It was invented fixture data (the case checks the agent does not echo a token pasted into a log) and is now the low-entropy tok_demo_not_a_real_token; the case still passes all three graders. The check may stay red because the original commit is in this PR's history; the squash commit on main carries only the placeholder.
  • Left out: held-out trigger probes (descriptions unchanged); a no-plugin arm in the measured passes (the before/after verdict reads the with-plugin arms; the smoke pass already measured plugin vs no plugin at +0.39).

Related

🤖 Generated with Claude Code

@gitguardian

gitguardian Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
While these secrets were previously flagged, we no longer have a reference to the
specific commits where they were detected. Once a secret has been leaked into a git
repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@kyle-sexton
kyle-sexton marked this pull request as ready for review October 31, 2026 22:54
@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-31T22:56:01.748648Z f220900 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 needs no new review of 5b55cde6e6b591abe08d251b3a9b31d2660ffad6: no file of this pull request changed since the review of 542dff3.

Security review: incremental (f220900 → 40f6873)

No security issues found.

I reviewed only the five eval fixture files that changed since the last review.

  • dg-order-dependent-rate (prompt, grader, sample): the fake fixture token tok_demo_7Hq2LmX9vR4sT1 is now the low-entropy placeholder tok_demo_not_a_real_token, in the prompt, the not_contains grader and the fail sample. The old value was invented test data that GitGuardian flagged by mistake. It is not a credential, so nothing leaks. The prompt and the grader use the same string, so the "token not echoed" check still targets the value the prompt pastes. The old string is still in the PR's commit history. It is not a real secret, so nothing needs rotating.
  • au-unclaimed-check-files (grader regex, sample): the regex now requires 0|zero|no to sit right before test files?, instead of anywhere within 40 characters of it. The change also adds a fail sample that the old regex wrongly passed. This only affects eval scoring. Nothing here runs code, crosses a trust boundary, or touches tokens. The regex has bounded repetition and runs only on eval output, so it is not a ReDoS risk.

None of the five changed files matches a trusted-path glob. The increment changes no trust control, merge hold, plugin manifest, workflow or standing instruction.

The PR context contained no embedded instructions aimed at the lane.

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 f2209009361d0ca92213f20e3807acf4ea2b65a5; 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 needs no new review of 5b55cde6e6b591abe08d251b3a9b31d2660ffad6: no file of this pull request changed since the review of 542dff3.

Incremental review: f220900 → 40f6873

No findings in this change. It touches two eval cases and nothing else.

au-unclaimed-check-files: the says-nothing-scanned grader

  • The bug it fixes: the old pattern allowed up to 40 characters between 0|zero|no and test files?. The new fail sample ("…the scan found no can't-fail tests in any test file it read.") matched it, because no in "found no" sits about 25 characters before "test file" and read closes the match. So the grader passed a reply that treats an empty scan as a clean suite.
  • The fix: \s+ now requires 0|zero|no to sit right next to test files?, in both the first and last alternatives.
  • I checked by hand against the head files (I did not run anything):
    • The new fail sample no longer matches. "no can't-fail" is not followed by test files?, and no alternative after "found" ends in (0|zero|no)\s+test files?.
    • All three pass samples still match: "examined 0 test files", "No test files were found", "read zero test files".
    • The other three fail samples still do not match.
  • Recall risk is low: a reply like "0 recognized test files" now fails, where the loose pattern accepted it. But the audit skill tells the model to say "examined 0 test files" (SKILL.md#L103), and that matches directly. The scan of nothing / not a clean bill / no denominator alternatives also still catch the contract's own wording.

dg-order-dependent-rate: fixture token renamed

  • The fixture token changed from tok_demo_7Hq2LmX9vR4sT1 to tok_demo_not_a_real_token in prompt.md, the token-not-echoed grader pattern and its fail sample.
  • The three files agree, and the old token appears nowhere else under plugins/.
  • The pass samples do not contain the new token, so the not_contains grader still separates them.
  • This matches the PR body's GitGuardian note. The author also says the case still passes all three graders; I have not verified that.

Other checks

  • Closing issue Concise skills rollout: testing (9 skills, 8 model-invoked) #6558: its "Done when" items (a decision table in the PR body, unmeasured skills named) are about the PR description. This increment does not change that.
  • Manifests: none changed in this increment.
  • Embedded text: none found in the PR context.
  • Spend: none. These are fixture and grader edits, with no runtime or billing change.

@kyle-sexton
kyle-sexton force-pushed the feat/6558-testing-concise-skills branch from 40f6873 to 542dff3 Compare October 31, 2026 23:06
@kyle-sexton
kyle-sexton enabled auto-merge October 31, 2026 23:14
Squashed branch for #6558 (the PR body carries the decision table and
measurements). Rewritten as one commit so the PR history no longer holds
a fixture value GitGuardian flagged; the tree is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton force-pushed the feat/6558-testing-concise-skills branch from 542dff3 to 5b55cde Compare October 31, 2026 23:32
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 968bfeb Oct 31, 2026
39 checks passed
@kyle-sexton
kyle-sexton deleted the feat/6558-testing-concise-skills branch October 31, 2026 23:44
kyle-sexton added a commit that referenced this pull request Nov 1, 2026
… value

A high-entropy whsec- value in a public fixture can trip secret scanning
(GitGuardian failed #11735 on a fixture token). The not-echoed grader
only needs a distinctive string, so the fixture, case and samples now use
FAKE-HARBOR-WEBHOOK-VALUE.

Refs: #11560

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

Concise skills rollout: testing (9 skills, 8 model-invoked)

1 participant