Skip to content

docs(testing): cut model-read ecosystem specifics from write, test-value, check-visual-parity and cleanup - #17766

Merged
kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-17754-44853118653-1
Nov 21, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-17754-44853118653-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Closes #17754

Summary

Opened by the work-resolve-issue lane; the hub session took it over after pr-verify failed head 90a1820 and pushed the fix below.

Part 5 of 5 of #16755: removes single-tool and .NET-only text from rules that apply to every ecosystem in two testing skills (write, cleanup). Rows in this part: 6, all R11, none R8 (so no row is pending a targeted case). Four rows are cut. F0433, F0434 and F0450 are not cut because a script reads their file (see Script readers).

Rows (6)

Row Rule Outcome
F0427 R11 Cut. write/context/property.md: the Hypothesis example / fast-check examples parenthetical, the Hypothesis/QuickCheck basis parenthetical (a tool-neutral 'treat this as guidance' hedge stays), the 'Mechanics live in each tool's docs' link paragraph, and the Hypothesis example(...).xfail() parenthetical under 'Show the property can fail'.
F0432 R11 Cut. write/context/characterization.md Sources: the Scientist, Verify scrubbers, Jest snapshot and ApprovalTests links. The Feathers and Seemann citations (R9) stay.
F0433 R11 Not cut: script reader (test-value/SKILL.md).
F0434 R11 Not cut: script reader (test-value/SKILL.md).
F0450 R11 Not cut: script reader (check-visual-parity, which #17754 names as a script-read file).
F0452 R11 Cut. cleanup/SKILL.md: the C# using example (the neutral 'Read the calls, not the imports.' stays) and the '.NET suite, 3 of 42' anecdote.

No row was GONE: every cited text was still present on main at 2a79a85.

Script readers

Search, the same for every row: Grep SKILL\.md|property\.md|characterization\.md over plugins/testing/**/*.{sh,mjs,js,ts,py,ps1,cjs}. It returned:

  • plugins/testing/hooks/judge-lib.sh:711: judge::section1() reads skills/test-value/SKILL.md to build the judge prompt;
  • plugins/testing/skills/audit/evals/judge-calibration/metrics.sh:89 (SKILL=plugins/testing/skills/test-value/SKILL.md) and metrics.test.sh:233;
  • two run-e2e eval scaffolds that write their own SKILL.md, unrelated.

#17754's rule is file-level: "a row whose file a script reads (check-visual-parity has scripts/visual-compare.sh) is not cut". So:

  • F0433 and F0434 (test-value/SKILL.md, read by judge-lib.sh and metrics.sh): not cut. test-value/SKILL.md is unchanged on this branch.
  • F0450 (check-visual-parity/SKILL.md): not cut, because the issue names check-visual-parity's scripts/visual-compare.sh as a script of that skill. A grep of plugins/testing/skills/check-visual-parity/scripts/ for SKILL, playwright and baseline-routes finds no read of SKILL.md, but the rule as written keeps the row. check-visual-parity/SKILL.md is unchanged on this branch.
  • F0427, F0432, F0452: no script reads property.md, characterization.md or cleanup/SKILL.md.

Eval cases that read the cut text

  • write (property.md): wr-round-trip-property, wr-fuzz-follows-property, wr-go-uses-project-library (each case.yaml names property.md and has a read-property sample).
  • write (characterization.md): none. No case under plugins/testing/evals names characterization.md.
  • cleanup (cleanup/SKILL.md): cl-cannot-fail-only-accepted and cl-cannot-fail-only-skeptic run the cleanup skill (their scaffolds use fixtures/cleanup-dotnet.sh); no case greps for the cut lines themselves.
  • test-value, check-visual-parity: not changed on this branch, so no case is needed.

Whole page or part

Every cut is partial; no page is deleted:

  • write/context/property.md: part (+5 -12).
  • write/context/characterization.md: part (+1 -6).
  • cleanup/SKILL.md: part (+2 -4).
  • scripts/docs-anchor-baseline.txt: one row removed (characterization.md has no anchorless docs link left).
  • .changes/testing fragment: new file.

Not verified

  • Tidy not run: the change touches scripts/ (a listed shared path) and spans 2 areas.
  • No build or test run: markdown-only change. The targeted before-and-after eval cases are the host session's job, on the current head.
  • characterization.md's intentional-differences ledger and isolated-sink rules no longer cite a source, since the row cut the Scientist README.

Fix

  • plugins/testing/skills/write/context/property.md: F0427.
  • plugins/testing/skills/write/context/characterization.md: F0432.
  • plugins/testing/skills/cleanup/SKILL.md: F0452.
  • scripts/docs-anchor-baseline.txt: removed the characterization.md row.
  • .changes/testing/work-resolve-issue-issue-17754-44853118653-1-32464762.md: patch changelog fragment for write and cleanup.
  • Hub takeover commit 6b4a8ba: restored test-value/SKILL.md (F0433) and check-visual-parity/SKILL.md (F0450) to main; main merged in (9d1a0c5) to clear the stale-base overlap on docs-anchor-baseline.txt.

Verification

Related

#17754

🤖 Generated with Claude Code

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes melodic-automation-lanes Bot added the do-not-merge Hard merge gate: do not merge while applied. label Nov 21, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Held for the before-and-after eval that cut item #17754 needs. The pr-merge release step lifts this hold when an eval-pair record exists for the current head.

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

This was a blocking-only review: this lane already reviewed head 90a18205. Only CRITICAL and IMPORTANT findings would be reported, and there are none.

I read all 5 changed files in full. The change is markdown plus one docs baseline row:

  • a new changelog fragment;
  • cuts of tool-specific and .NET-only examples and links in testing cleanup/SKILL.md, write/context/characterization.md and write/context/property.md;
  • one row removed from scripts/docs-anchor-baseline.txt.

None of these files matches a trusted-path glob. The diff touches no workflow, action, script, hook, permission, token, trust control or plugin manifest. Since the last review, the hub takeover put test-value/SKILL.md and check-visual-parity/SKILL.md back to their state on main, so neither is in this diff.

Removed instructions. The diff narrows skill text, so I checked each removed piece by its consequence against the protected classes: irreversible-action, secret-handling, data-integrity, external-publication, legal-compliance and agent-authority. I did not open the register file in this run. None of the removed pieces matches a class:

  • cleanup: removes the C# using example and the ".NET suite, 3 of 42" anecdote. The rules they explained are still there: "Read the calls, not the imports", the gate-blind check that needs the user's yes, and the note that a test with no assertion still fails when its setup throws. What the skill forbids is unchanged.
  • write property context: removes the Hypothesis and fast-check parentheticals and the paragraph of links to their docs. The pin-the-counterexample, fix-then-keep and show-it-can-fail rules are unchanged.
  • write characterization context: removes four source links, the Scientist README among them. No rule text changes.

Embedded text. I found no directives in the PR context or the settled threads aimed at this lane.

Spend. None.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: no blocking findings. This lane already reviewed an earlier head (90a18205), so this pass reported blocking findings only.

At this head the change removes text from the docs of two testing skills and nothing else:

  • write: in context/property.md and context/characterization.md.
  • cleanup: in SKILL.md.
  • Anchor baseline: the characterization.md row is removed from scripts/docs-anchor-baseline.txt.
  • Changelog: a patch fragment is added.

The hub takeover put test-value/SKILL.md and check-visual-parity/SKILL.md back to their state on main, so neither is in this diff. The two settled threads on those files are marked lines changed since resolution: no, so I have not raised them again. No changed file matches a trusted-path glob, and no hold class applies.

Checked against closing issue #17754:

  • F0427 (property.md): the Hypothesis and fast-check parentheticals, the tool-docs link paragraph and the .xfail() mention are gone. The neutral rules remain: pin the shrunk counterexample as an explicit example, a seed is only a replay handle (with a hedge that names no library), and an expected-fail example under "Show the property can fail". The section at property.md#L127-L137 already sends the reader to the project's own property library docs, so no routing is lost.
  • F0432 (characterization.md Sources): only the Feathers and Seemann citations remain, which the issue requires. Both remaining links are blog posts, not docs pages, so dropping the file's baseline row matches the Done-when item "scripts/docs-anchor-baseline.txt:127-128 match the remaining anchors". The PR body says this leaves the ledger and isolated-sink rules with no cited source.
  • F0452 (cleanup/SKILL.md): the C# using note and the .NET anecdote are gone. "Read the calls, not the imports." and the gotcha that setup can throw both remain.
  • F0433, F0434, F0450: these rows are not cut because a script reads their files, and the PR body lists them under a Script readers heading as the Done-when requires. The PR body also names an eval case for each changed skill (or says none exists), says for each file whether the cut is whole-page or partial, and lists all 6 rows with their outcome.

The PR body's verification commands and check results are claimed by the author. I did not run them.

Loosened checks: none found. The diff removes only documentation text and changes no check, threshold or gate. The prompt has no loosened_check_verdict:, loosened_check_patterns: or loosened_check_decision_record: line, so I used fail with no consumer entries and did not check the decision-record citation. Loosened checks would be marked: fail (default); patterns: 0.

No plugin manifest changed. The fragment's bump: patch fits a docs-only change.

Verifier dropped 0 of 0 candidates.

kyle-sexton and others added 2 commits November 20, 2026 23:28
Issue #17754's script-reader rule is file-level: a row whose file a
script reads is not cut, and it names check-visual-parity as such a
file. Restore test-value/SKILL.md (F0433, read by judge-lib.sh and
metrics.sh) and check-visual-parity/SKILL.md (F0450) to main, and drop
both from the changelog fragment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton

Copy link
Copy Markdown
Member

Targeted eval result: PASS

One targeted case per changed skill, run on the old text (before) and the new text (after), on sonnet at 3 runs a side, Claude Code 2.1.330 (Claude Code).

What this gate checks: that the new text does no worse than the old on these cases. By the owner's decision of 2026-11-17 the gate is this no-loss compare alone. There is no wrong-text side, so this case set has not been shown to detect wrong text: a PASS says the cases did not get worse, not that they would have noticed a bad edit.

Scope: pure cut at head 9d1a0c5 (the hub's 6b4a8ba restored F0433 and F0450, so test-value and check-visual-parity are unchanged against BEFORE and are not side files). Rows still cut: F0427 (property.md Hypothesis and fast-check mechanics and links), F0432 (characterization.md tool links), F0452 (cleanup SKILL.md C# using note and .NET anecdote); F0434 per the PR. Measured by p17766-wr-property-counterexample (write; the prompt names the property and characterization pages): pin-explicit-example, seed-not-durable, keep-after-fix, show-can-fail (F0427), characterization-first, sabotage-pin (F0432). Measured by p17766-cl-gate-rules (cleanup SKILL.md, loaded): production-from-calls (the kept 'read the calls, not the imports' beside the cut C# note), no-assert-can-fail (the kept gotcha beside the cut anecdote), gate-blind-listed, no-production-edit (kept rules).

  • Re-registered before any run at the hub's head 9d1a0c5 (BEFORE = its merge-base 6cdecc1): F0433 and F0450 are no longer cut, so the check-visual-parity case was dropped and test-value needs none; cases cover write and cleanup only.

  • New case p17766-wr-property-counterexample: a confirmed shrunk counterexample, a new property and a legacy rewrite; six regex graders, no Skill grader (slash prompt, R105); the prompt names the property and characterization pages (R121).

  • New case p17766-cl-gate-rules: the cl-* cases scaffold a suite and run the mutation gate; a rules-only cleanup question was written instead: production files from calls, an assertion-free test that can still fail, an unattended gate-blind rewrite, production edits; four regex graders, no Skill grader.

  • Loss-capable graders: pin-explicit-example, show-can-fail (F0427 mechanics cut), production-from-calls (F0452 C# note cut), no-assert-can-fail (F0452 anecdote cut). The rest read kept text.

  • Control result (the issue's acceptance item): not run: the owner's decision of 2026-11-17 gates cut pull requests on the no-loss compare alone.

  • Before: 6cdecc1457832b4a3afc13da87833837e63b8fc1 (merge base with main)

  • After: 9d1a0c5c4cc1390ce26169b58707c975bb713f1d (pull request head; live head when this was written: 9d1a0c5c4cc1390ce26169b58707c975bb713f1d)

  • Loss: the mean case score falls by 0.15 or more, or any one grader passes in 2 or more fewer after runs than before runs.

Passing runs per grader, per side:

Case Grader Before After
p17766-wr-property-counterexample pin-explicit-example 3/3 3/3
p17766-wr-property-counterexample seed-not-durable 3/3 3/3
p17766-wr-property-counterexample keep-after-fix 3/3 3/3
p17766-wr-property-counterexample show-can-fail 3/3 3/3
p17766-wr-property-counterexample characterization-first 3/3 3/3
p17766-wr-property-counterexample sabotage-pin 3/3 3/3
p17766-wr-property-counterexample mean case score 1.000 1.000
p17766-cl-gate-rules production-from-calls 3/3 3/3
p17766-cl-gate-rules no-assert-can-fail 3/3 3/3
p17766-cl-gate-rules gate-blind-listed 3/3 3/3
p17766-cl-gate-rules no-production-edit 3/3 3/3
p17766-cl-gate-rules mean case score 1.000 1.000

Graders that cannot show a loss, because they failed on the old text in every run:

  • none: every grader passed in at least one run on the old text

Changed files the compare runs opened, per case and side:

  • p17766-wr-property-counterexample before: opened skills/write/context/characterization.md in 3 of 3 runs; opened skills/write/context/property.md in 3 of 3 runs
  • p17766-wr-property-counterexample after: opened skills/write/context/characterization.md in 3 of 3 runs; opened skills/write/context/property.md in 3 of 3 runs
  • p17766-cl-gate-rules before: opened no changed file in 3 runs
  • p17766-cl-gate-rules after: opened no changed file in 3 runs

Rows these runs measured (the row's file opened in at least 2 of 3 runs on each side, or loaded with the skill or agent):

  • F0427 (skills/write/context/property.md, case p17766-wr-property-counterexample): opened in 3 of 3 before, 3 of 3 after runs
  • F0432 (skills/write/context/characterization.md, case p17766-wr-property-counterexample): opened in 3 of 3 before, 3 of 3 after runs
  • F0452 (skills/cleanup/SKILL.md, case p17766-cl-gate-rules): measured; the file is loaded with the skill or agent, never opened, so no open count applies

Rows these runs did not measure:

  • none

Verdicts:

  • verdict p17766-wr-property-counterexample (write): PASS (no loss: after 1.000, before 1.000)
  • verdict p17766-cl-gate-rules (cleanup): PASS (no loss: after 1.000, before 1.000)

Cost: 1.61 USD (smoke and compare, the runs' costUsd).

The cases live outside the repository; their full text:

The 2 cases: prompt.md and case.yaml

p17766-wr-property-counterexample

prompt.md:

---
description: "Written for PR 17766 (rows F0427 and F0432, R11 cuts of Hypothesis and fast-check mechanics and tool links in testing:write's property and characterization pages). Asked, before writing, what to do with a shrunk counterexample from a property test and how to show a new property can fail, plus how to pin legacy behavior before a rewrite, the reply pins the counterexample as an explicit example, calls the seed a replay handle only, keeps the example after the fix, shows the property can fail with a mutant or an expected-fail bad input, and pins with characterization tests checked by breaking the code on purpose"
tags: [write, property, routine]
max_turns: 20
timeout_seconds: 600
allowed_tools: [Skill, Read, Glob, Grep]
expected_outcome: "Nothing is written or run. The reply pins the shrunk input as an explicit example on the property before fixing, says the seed or example database is a replay handle and not the durable regression, keeps the example after the fix, shows a new property can fail by a killed mutant or a known-bad input marked expected-fail, and pins the legacy parser with characterization tests proved by sabotaging the code. It ends with the six fixed lines."
---

/testing:write

Plan this with me before you write anything. In our Python `ledger` service a property test on `parse_amount` (round trip: `format_amount(parse_amount(s)) == s` for valid amount strings) just failed, and the runner shrank it to `"0.10"` and printed a seed. We've confirmed it's a real bug.

1. How do we keep this as a regression, and is saving the printed seed or the tool's example database enough?
2. After the fix, do we keep that counterexample?
3. We're also adding a new property for `split_payment`. How do we show it can fail at all before relying on it?
4. Separately, we'll rewrite the legacy `parse_legacy_statement` next sprint. What tests come first, and how do we know they can fail?

Check your answers against the write skill's property and characterization pages. Don't write, run, install or research anything online yet.

End with exactly these six lines:

PIN_COUNTEREXAMPLE: <how>
SEED_IS_DURABLE: <yes or no>
KEEP_AFTER_FIX: <yes or no>
SHOW_PROPERTY_CAN_FAIL: <how>
BEFORE_REWRITE: <test kind>
PROVE_PIN_CAN_FAIL: <how>

case.yaml:

schema_version: "1.1"
name: p17766-wr-property-counterexample
plugins: ["../.."]
graders:
  - name: 'pin-explicit-example'
    type: 'regex'
    pattern: '^[\W_]*PIN_COUNTEREXAMPLE[*_]*:[^\n]*example'
    flags: 'im'
    target: 'last_message'
  - name: 'seed-not-durable'
    type: 'regex'
    pattern: '^[\W_]*SEED_IS_DURABLE[*_]*:[\s*`]*no\b'
    flags: 'im'
    target: 'last_message'
  - name: 'keep-after-fix'
    type: 'regex'
    pattern: '^[\W_]*KEEP_AFTER_FIX[*_]*:[\s*`]*yes\b'
    flags: 'im'
    target: 'last_message'
  - name: 'show-can-fail'
    type: 'regex'
    pattern: '^[\W_]*SHOW_PROPERTY_CAN_FAIL[*_]*:[^\n]*(?:mutant|mutation|known[- ]bad|expected[- ]fail|xfail|bad input)'
    flags: 'im'
    target: 'last_message'
  - name: 'characterization-first'
    type: 'regex'
    pattern: '^[\W_]*BEFORE_REWRITE[*_]*:[^\n]*(?:characteri[sz]ation|approval|golden|pin|differential|snapshot)'
    flags: 'im'
    target: 'last_message'
  - name: 'sabotage-pin'
    type: 'regex'
    pattern: '^[\W_]*PROVE_PIN_CAN_FAIL[*_]*:[^\n]*(?:break|sabotag|mutat|inject|deliberately|on purpose)'
    flags: 'im'
    target: 'last_message'

p17766-cl-gate-rules

prompt.md:

---
description: "Written for PR 17766 (row F0452, R11 cut of the C# using note and the .NET 3-of-42 anecdote in testing:cleanup). Asked, before anything runs, how cleanup finds a test's production files, whether an assertion-free test can still fail, what an unattended run does with a gate-blind rewrite, and whether it edits production code, the reply reads the calls, not the imports, says setup that throws still fails the test, leaves gate-blind items listed and unapplied, and never edits production code"
tags: [cleanup, routine]
max_turns: 20
timeout_seconds: 600
allowed_tools: [Skill, Read, Glob, Grep]
expected_outcome: "Nothing is run or edited. The reply finds production files from the calls the test makes, not its imports; says an assertion-free test still fails when its constructor, injection or fixture throws; leaves the gate-blind rewrite listed and unapplied on an unattended run; and says cleanup never edits production code. It ends with the four fixed lines."
---

/testing:cleanup tests/billing

Before you start, explain how this would go. Our `tests/billing/test_invoices.py` imports `billing.models`, `billing.tax` and `billing.pdf`, but its tests only call `InvoiceService.total()` from `billing/service.py`.

1. Which files count as that test file's production files for the mutation gate: the imports, or something else?
2. In cannot-fail-only mode, could `test_service_builds()`, which has no assertion and only constructs `InvoiceService` with a real database fixture, still fail?
3. On an unattended run, a proposed rewrite turns out gate-blind. What happens to it?
4. Would cleanup ever edit `billing/service.py`?

Don't run, edit or research anything online yet.

End with exactly these four lines:

PRODUCTION_FILES_FROM: <imports or calls>
NO_ASSERT_CAN_FAIL: <yes or no>
UNATTENDED_GATE_BLIND: <applied, or listed and unapplied>
EDIT_PRODUCTION: <yes or no>

case.yaml:

schema_version: "1.1"
name: p17766-cl-gate-rules
plugins: ["../.."]
graders:
  - name: 'production-from-calls'
    type: 'regex'
    pattern: '^[\W_]*PRODUCTION_FILES_FROM[*_]*:[\s*`]*calls'
    flags: 'im'
    target: 'last_message'
  - name: 'no-assert-can-fail'
    type: 'regex'
    pattern: '^[\W_]*NO_ASSERT_CAN_FAIL[*_]*:[\s*`]*yes\b'
    flags: 'im'
    target: 'last_message'
  - name: 'gate-blind-listed'
    type: 'regex'
    pattern: '^[\W_]*UNATTENDED_GATE_BLIND[*_]*:[\s*`]*(?:listed|unapplied|left|not applied)'
    flags: 'im'
    target: 'last_message'
  - name: 'no-production-edit'
    type: 'regex'
    pattern: '^[\W_]*EDIT_PRODUCTION[*_]*:[\s*`]*no\b'
    flags: 'im'
    target: 'last_message'

Posted by an agent session.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The do-not-merge hold waited only on eval evidence (reason=eval), and a listed human posted a VALID no-loss eval-pair record for 9d1a0c5c4cc1390ce26169b58707c975bb713f1d: #17766 (comment). pr-merge removed do-not-merge. To hold again, add the label back with a new pr-hold reason line.

@melodic-automation-lanes melodic-automation-lanes Bot removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 21, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 84ee20e Nov 21, 2026
111 of 115 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-17754-44853118653-1 branch November 21, 2026 07:17
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 21, 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.

Cut the model-read ecosystem specifics from testing: test-value, property, characterization, visual parity and cleanup

1 participant