Skip to content

refactor(testing): cut the per-language property pages from testing:write as the pilot - #16395

Merged
kyle-sexton merged 5 commits into
mainfrom
refactor/15709-testing-write-property-pages-pilot
Nov 15, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
refactor/15709-testing-write-property-pages-pilot

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Closes #15709

Summary

Problem: /testing:write shipped three per-language property-testing pages, so its property guidance was only as wide as the languages someone had written a page for. Intent: this is the pilot that proves the cutting route before any other cut depends on it.

/testing:write no longer ships per-language property pages or a routing table. Its property guidance applies to every language through the testing plugin's synced copy of the generic ecosystem-resolution text. The eval record is below: the two-version compare shows no loss on both models, and the sensitivity control did not move the score. The do-not-merge label this PR opened with was removed once that record was in.

Fix

  • Cases frozen first, in their own commit before the cut (ac2fa08): three new deterministic cases (a dependent-input scenario, a past-bug scenario, a TypeScript async property expecting no recomputed-derived-value finding); the Python-reference case now grades the test written; the Go case loses its no-read grader.
  • Carrier: the testing plugin is registered as the first carrier of the generic resolution text in the shared-copies list, regenerated, and the two byte-identical copies are registered as a cross-plugin source cluster.
  • The property context page: the per-language routing table and the Hypothesis pointer are gone; one section points every language at the carrier copy and names the adapters' property_markers and the extend key.
  • The three per-language property pages (Python, TypeScript, C#; 87 lines) are deleted, with every reference to them, and the Trail of Bits upstream record's row is edited.
  • No new enforcement-placing skill is added.

The issue counts 17 testing write cases; 18 exist, so the compare covers all 18 plus the 3 new ones.

Sensitivity control: predicted outcome (written before the first paid batch)

This pull request deletes three whole pages (skills/write/context/property/python.md, typescript.md and csharp.md), so its proof is a sensitivity control (the whole-page clause in /evals:plugin-eval's reading-results reference, "Detection control"). The control replaces the three pages with plausible but wrong versions, keeps every other file, and runs that copy beside a before copy on sonnet, 3 runs per side, over the property cases the ceiling check keeps. It moves the score when the noise report calls a case drop, or when the mean case score falls by 0.15 or more.

Prediction: the wrong pages move the score, by the registered test (a case drop, or a mean fall of 0.15 or more). The expected route is a case drop in one or more of wr-property-dependent-input, wr-property-past-bug and wr-ts-async-property-marked; a move by either part of the test, in any case, confirms the prediction.

Evidence for the prediction:

  • In the before version, a property request routes to context/property.md, whose "Language references" section says to identify the language of the code under test and read only its page. Five of the seven property cases are Python or TypeScript repositories, so a run that follows the route reads python.md or typescript.md.
  • The wrong pages contradict exactly what three frozen graders check: drawing a dependent value first instead of discarding draws, a past bug's input as a fixed example, and an awaited async property.
  • Against it: context/property.md itself, which both copies keep, states the right rule for dependent inputs and fixed examples, so a run that reads both may follow the guide over the page. And the ceiling check may drop those three cases if the model passes them without the plugin.

Confidence: low. No run on record shows whether a property case reads its language page. The prediction rests on the routing instruction and on where the graders look, not on a measurement. If the ceiling check drops all three cases above, the control is likely not to move the score, because no remaining case grades what the wrong pages change.

What each outcome means (fixed by #15709 before any run):

  • The wrong pages move the score: the suite reads the page. This cut, and every later whole-page cut, ships only on non-inferiority of the after version (the two-version compare's verdict line below).
  • The wrong pages do not move the score: the model ignores the page. That result is the evidence for this cut, and each later whole-page cut still runs its own control.
  • Neither (fewer than 3 property cases left after the ceiling check, a stopped queue, or a void file): the assumption that the control gives a usable answer fails. The later whole-page cuts stop, and the proof rule goes back to the owner.

Observed outcome: the wrong pages did not move the score. The prediction was wrong. Over the 6 property cases the ceiling check kept, on sonnet, 3 runs per side: before mean 0.861, wrong-page mean 0.843, a fall of 0.019 against the 0.15 bar, and no case drop. 7 of the 18 wrong-page runs read a wrong page. The control is small: 6 cases at 3 runs a side, with a 95% interval on the change of -0.12 to +0.08, so a real fall under that size would not show; and one grader moved (read-property on wr-round-trip-property passed 3 of 3 before and 1 of 3 with the wrong pages). This cut does not rest on the control alone: the two-version compare below shows no loss, which is what the cut would have shipped on had the control moved the score. By the meaning fixed before any run, the model ignores the page, and this result is the evidence for this cut; each later whole-page cut still runs its own control.

Two-version compare (20 cases, 3 runs per side, margin 0.05): no loss on both models, no case drop, every file valid.

Model Paired change 95% interval Verdict
sonnet -0.00 -0.05 to +0.04 non-inferior
opus -0.00 -0.02 to +0.02 non-inferior

On sonnet the interval's lower end sits at the margin in the registered reading (runs where the skill loaded); the all-runs reading printed beside it falls just below the margin. The verdict is judged on the registered reading.

Verification

  • The eval case validator reports no failure on the testing suite; the shared-copy sync check passes ("All 905 registered copies match their canonical sources."). Both run again by the session that opened this PR.

  • The carrier bump check, both changelog fragment checks, the changed-skills check, markdownlint, the offline link check and the pre-push checks pass.

  • Dogfooding step: the eval run in this repository, registered before any run in three stages: a ceiling check (7 property cases with and without the plugin, sonnet), the two-version compare (21 cases less any the ceiling check drops, sonnet and opus, 3 runs per side, margin 0.05), and the sensitivity control above. 318 runs were made against the issue's budget of 340 (the ceiling check dropped one case, wr-ts-async-property-marked, which scored 1.000 without the plugin). Every batch was valid, with no usage-limit stop and no rerun; 79.76 USD list price in all.

  • The runs measured head da23783. Main was merged in afterwards with no conflict. That merge brought two one-line rewordings of the /tdd:principles pointer into skills/write/SKILL.md and skills/write/context/write.md; they are main's change, sit on both sides of this PR's diff, and no eval case file changed. This PR's own change is what was measured.

Left out: the issue's two measuring runs, which were not needed; a rerun at the merged head.

Related

Remaining

🤖 Generated with Claude Code

kyle-sexton and others added 4 commits November 15, 2026 11:22
… cut

Write three cases from the per-language property pages' lines:
wr-property-dependent-input (draw the shared value first, no discarded
draws), wr-property-past-bug (the reported input as a fixed @example on the
property) and wr-ts-async-property-marked (an awaited fc.asyncProperty that
carries the audit's property marker, so rule-recomputed-derived reports
nothing). Every grader is deterministic with must-pass and must-fail samples.

Rename wr-python-loads-python-reference to wr-python-idempotence-property and
grade the test it writes (a @given property stating idempotence) instead of
which reference page it read. Rename wr-go-loads-no-reference to
wr-go-uses-project-library and drop its no-read grader.

These cases are frozen here, before the cut, for the two-version compare.

Refs: #15709

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015te8Csz4bqxpok4iu8Mcrd
Register the generic resolution text's testing carrier row in
scripts/shared-copies.txt and generate its copy at
plugins/testing/reference/ecosystem-resolution.md, so the property guide can
resolve the property library from the consumer repository.

Refs: #15709

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015te8Csz4bqxpok4iu8Mcrd
…rite

Delete context/property/python.md, typescript.md and csharp.md (87 lines),
the language routing table and the pointer to the Hypothesis team's command.
The property library now comes from the consumer repository in every
language, by the steps in the plugin's synced ecosystem-resolution copy; one
line names the audit adapters' property_markers and the extend key.

Edit the Trail of Bits upstream record's property-based-testing row, drop the
deleted page's docs-anchor baseline row, and drop the deleted C# page from
the landscape record's CsCheck edge.

Refs: #15709

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015te8Csz4bqxpok4iu8Mcrd
The testing carrier makes reference/ecosystem-resolution.md byte-identical
in two plugins, so the cross-plugin source registry lists the cluster and
names sync-shared-copies.sh as its drift check.

Refs: #15709

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015te8Csz4bqxpok4iu8Mcrd
@kyle-sexton kyle-sexton added do-not-merge Hard merge gate: do not merge while applied. and removed do-not-merge Hard merge gate: do not merge while applied. labels Nov 15, 2026
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 15, 2026 21:12
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 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-15T21:14:11.346391Z 5dc704d 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

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43762437110

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #16395, removing the per-language property pages from testing:write

No security issues found.

critical-findings: 0

I read the whole diff: all 34 files in scope, plus the three deleted property pages and the deleted eval cases and samples.

What the change does

  • It deletes the Python, TypeScript and C# property pages and the language routing table from plugins/testing/skills/write/context/property.md.
  • It adds a synced copy of the generic ecosystem-resolution text at plugins/testing/reference/ecosystem-resolution.md and registers it in scripts/shared-copies.txt and scripts/cross-plugin-source-registry.txt.
  • It adds or renames eval cases under plugins/testing/evals/.
  • It updates docs/architecture/landscape.json, scripts/docs-anchor-baseline.txt and the Trail of Bits upstream record.

Changes to skill instructions

  • I checked whether the change removes or softens any standing instruction. The protected-class register was not consulted; I judged each removed rule by what breaks without it.
  • The old rule was "if it has none, ask the user before adding one". The new text says "add none on your own" and defers to the resolution text's steps. Those steps let an unattended run install nothing and ask nothing (ecosystem-resolution.md steps 5–7 and "Unattended limits"), and ask the person only when attended. That rule is equal or stricter, not looser.
  • The removed Hypothesis /hypothesis command pointer was an external link. Removing it narrows what the session is told to fetch.
  • The deleted language pages held usage guidance only. One line advised not committing Hypothesis's example database, which is hygiene, not a security control.

Eval fixtures

  • The new scaffold.sh scripts in wr-property-dependent-input, wr-property-past-bug and wr-ts-async-property-marked only write static fixture files with quoted heredocs. They source the existing ../fixtures/git-workspace.sh and make a local git commit. Nothing is interpolated from outside input and nothing touches the network.
  • The new cases allow only Read, Glob, Grep, Skill, Write, Edit, with no Bash. The renamed Python case keeps the Bash grant its predecessor already had.

Other checks

  • Trust controls: none of the 34 files matches a trusted-path glob. No workflow, action, token, merge-hold, trusted-actor or kill-switch file changed.
  • Plugin manifests: no .claude-plugin/plugin.json or marketplace.json changed, so there are no manifest lines.
  • Embedded instructions: the PR description and prior-findings file contain no text directing this lane. The PR body records 79.76 USD (list price) spent on prepaid eval runs before this review. That is not a hold and not a finding.

This was a full review: there are no earlier reviews of this PR (blocking only: no). Nothing was posted from this run.

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: refactor(testing): cut the per-language property pages from testing:write (pilot)

I read the whole diff: all 34 listed files, plus the deletions and renames. The cut holds together: I found no blocking issues and one advisory finding.

What I checked

  • No references left behind. Nothing in the repository still mentions context/property/ or the two old case names (wr-go-loads-no-reference, wr-python-loads-python-reference).
  • New link resolves. property.md now points to ../../../reference/ecosystem-resolution.md, which reaches the new synced copy at plugins/testing/reference/ecosystem-resolution.md. That copy is registered in scripts/shared-copies.txt and the cross-plugin source registry.
  • The two keys the new property-library section names exist.
    • property_markers is a field in every audit adapter, for example plugins/testing/skills/audit/adapters/js-jest.yaml:116.
    • extend.<adapter>.<field> is handled by plugins/testing/scripts/resolve-config.sh:381.
  • Upstream record line numbers are correct. The edited Trail of Bits row gives property.md line ranges (rule-finding 24-34, oracle 66-70, generators 79-88, audit exemption 117-127, property library 129-139). They match the file at head.
  • New grader patterns behave as intended. I traced each pattern by hand against its own samples (I ran nothing):
    • builds-dependent-input and no-discarded-draws sort their samples correctly, including the case where composite appears only in a comment.
    • pins-past-bug matches @example("!!!") and its keyword form, and rejects a separate example test.
    • The idempotence pattern's four alternatives each refer only to their own capture group. It matches the saved-result and swapped forms, and rejects "one pass compared to itself".
    • property-marker uses the same regex as the js-jest adapter's property_markers, so the test.prop fail sample really is a call no adapter marker lists.
  • Other criteria. The bump: minor fragment fits removing guidance pages that no external API depends on. The property.md edit follows .claude/rules/skill-bodies-state-current-rules.md: it removes restated library specifics and keeps pointers.

Finding (advisory)

  • The external-citation landscape still lists a HypothesisWorks/hypothesis edge from plugins/testing/skills/write/context/property.md:
    {"from":"claude-code-plugins","to":"HypothesisWorks/hypothesis","type":"cites","relation":"external","count":1,"files":["plugins/testing/skills/write/context/property.md"]},
    • This PR deletes the only GitHub link to that repository in property.md (the /hypothesis command pointer). The links that remain go to hypothesis.readthedocs.io, and the edge extractor (plugins/architecture/skills/map-landscape/scripts/reference-edges.sh) does not count those.
    • The PR already lowered the AnthonyLloyd/CsCheck edge for the same reason, so this edge is stale in the same way.
    • Fix: remove line 25, or regenerate the landscape. No CI check guards this file, so nothing will catch it.

Not applicable

Author-claimed, not checked by me. The eval results, the sync-check pass ("All 905 registered copies match"), the lint and link checks, and the 79.76 USD eval spend are all stated in the PR body. I did not run any of them.

No adversarial verifier subagents ran on this review. Verifier dropped 0 of 1 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 5dc704d809271593656c528f7d9a7efdb6b2add8. What it wrote, as data:

What it wrote (26 lines)
Summary: Issue #15709 (testing:write property-page pilot) is linked by `Refs:` only, but the PR body
  says it delivers the whole issue. Under its Remaining heading it says "Nothing in this change.
  #15709 is closed by hand once this merges". A Refs-linked PR has to name the part it delivers and
  the work left for later. A whole delivery should close the issue instead. The diff itself looks
  sound against the done-when items. AC1 is met: the three per-language property pages (python.md,
  typescript.md, csharp.md) and the routing table in context/property.md are deleted, the Hypothesis
  pointer is gone, and one section now names the adapters' `property_markers` and the `extend` key.
  The Trail of Bits upstream row is edited. The testing carrier row is in scripts/shared-copies.txt,
  and the generated plugins/testing/reference/ecosystem-resolution.md copy plus a cross-plugin
  cluster line are added. The cases match step 3: the new dependent-input, past-bug and TS async
  cases; the Python-reference case now grades the test it writes; and the Go case lost its no-read
  grader, with its samples updated. The body has the predicted control outcome, the observed
  outcome, the compare's verdict line and the dogfooding step, and the owner's comment on the issue
  confirms the same record. AC10 is met: no enforcement-placing skill is added. Every
  pr-require-checks job on the head passed, including Check Managed Files, Check Tests, Check Skills
  and all Test Bash lanes (e.g.
  https://github.com/melodic-software/claude-code-plugins/actions/runs/43762409756/job/132960071136).
  That supports the sync check passing. No capture was recorded. The new scaffold.sh files are
  ordinary eval fixtures, with no secrets or takeover-set changes. The PR body has no text that
  tries to steer a reviewer. The only blocker is the link: a Refs PR that claims to deliver the
  whole issue.
- PR #16395 body: the issue is linked with `Refs: #15709`, yet the Remaining section says "Nothing
  in this change" and the issue will be closed by hand, so the body claims the whole issue. Either
  change the link to `Closes #15709` and drop the closed-by-hand line, or keep `Refs:`, name the
  part this PR delivers and list the remaining done-when work (for example the measuring runs and
  the rerun at the merged head listed as left out).

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. and removed pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. labels Nov 15, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 15, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 15, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit e1491a4 Nov 15, 2026
142 of 144 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/15709-testing-write-property-pages-pilot branch November 15, 2026 22:33
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 15, 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 per-language property pages from testing:write as the pilot

1 participant