Skip to content

feat(corpus): ratchet a per-language missed-credit ceiling in verdict-corpus check - #9628

Merged
EffortlessSteven merged 10 commits into
mainfrom
claude/project-thread-9o1b80
Oct 24, 2026
Merged

EffortlessSteven merged 10 commits into
mainfrom
claude/project-thread-9o1b80

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

Source-of-truth Links

Spec: RIPR-SPEC-0219 (paragraph added)
Governing issue or accepted claim: #9619
Acceptance delta (one sentence): Missed credit on abstained rows cannot rise unnoticed in any language.

Proof

  • Merged origin/main (d30ade2); the only conflict was the Python spec-coverage.toml (kept both the ceiling and main's new [grid] block). The TypeScript ceiling was moved above [grid] so it stays a top-level key.
  • cargo xtask verdict-corpus check --language <rust|typescript|python|perl> pass with ceilings Rust 135, TypeScript 23, Python 33, Perl 21 (each equal to the current missed count).
  • cargo test -p xtask committed_ceilings_equal_the_blessed_missed_credit missed_credit pass (3 tests)
  • cargo xtask precommit pass
  • Note: Rust, Python and Perl counts are higher than the earlier baseline (120, 31, 15), because main added corpus cases since; only TypeScript fell (24 to 23).

🤖 Generated with Claude Code

https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU

…-corpus check (#9619)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 158 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: f1ab0387-aa89-44c0-b875-f8d643e28463
Commits

Reviewing files that changed from the base of the PR and between d30ade2 and bbc07ff.

Files selected for processing: 8
  • changelog.d/missed-credit-ceiling.md
  • docs/specs/RIPR-SPEC-0219-labeled-rust-verdict-corpus.md
  • fixtures/perl-verdict-corpus/spec-coverage.toml
  • fixtures/python-verdict-corpus/spec-coverage.toml
  • fixtures/rust-verdict-corpus/spec-coverage.toml
  • fixtures/typescript-verdict-corpus/spec-coverage.toml
  • xtask/src/reports/verdict_corpus_coverage.rs
  • xtask/src/reports/verdict_corpus_known_false.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

…failing

Concurrent fix PRs would all edit the same ceiling and deadlock main.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU

Copy link
Copy Markdown
Member Author

Decision (reversible): the ceiling fails check only when missed credit rises. When it falls, check passes and prints a note to lower the ceiling. A falling-count failure would make every in-flight fix and coverage PR edit the same number and deadlock main, as the known_false ledger did in #9588. Spec 0219, the ledger comments and the changelog fragment now say so; pushed as the second commit.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Review of record, head 097cf24

Angles: (1) correctness and tests, (2) spec/contract and CI cost, both by independent reviewers on c47bdb2. Later commits touch only a test and wording.

  • Correctness: missed_credit counts exactly abstained + discriminated rows; a rise fails, a fall or equal passes (fall prints a note); no key means no gate; --case subsets and ledger-less corpora skip it. Ceilings 112/23/31/15 recounted against the blessed rows. No blockers.
  • Tests (nit, resolved): the count test only restated its filter. Replaced by committed_ceilings_equal_the_blessed_missed_credit, which pins each language's ceiling to its blessed count. 12 known_false tests pass locally.
  • Spec/contract (nits, resolved): the Ledger doc comment said "must lower"; reworded to match note-on-fall. Spec 0219 now says abstained and the paragraph is rewrapped. check-spec-format, check-doc-artifacts, check-output-contracts, check-doc-index pass; verdict-corpus check-all exits 0.
  • Not established locally: check-traceability and check-file-policy timed out in the reviewer's run; left to hosted CI.
  • Unaddressed nits: no wiring-level test of the printed note (it is println!), and no test for a ledger-less corpus. Non-blocking.

Generated by Claude Code

@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.

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • No memory-lifetime, ownership, aliasing, or unsafe-contract seam is touched. Both changed Rust files are pure deserialization, filtering, and string formatting; TOML literals are inert integers. Residual risk is zero for this lane; defer to tests-oracle and source-route.

Verification questions

  • Confirm all four configured corpus fixtures are pinned to their blessed missed-credit counts by one shared test loop.

Refuted

  • The new active-view logic may rely on a stale or resizable backing-store length.; refuted because: No resizable backing store is introduced: missed_credit iterates the supplied &[CaseRow], while the gate remains subject to the existing subset skip. The optional usize is a copied serde value, not a borrowed length or buffer view.
  • The changed code may expose memory-lifetime or handoff hazards at worker, async, GC, detach, or transfer boundaries.; refuted because: No JavaScript runtime, asynchronous task, worker ownership transfer, detach operation, GC-managed object, raw pointer, slice conversion, or unsafe block appears in the changed source. The added gate synchronously traverses borrowed rows and stores only an integer count.
  • missed_credit() could double-count or mis-classify by reading the wrong field, and the new test would silently agree with a tautology.; refuted because: The test recomputes missed_credit(rows) from scratch and compares to the committed ceiling; if the implementation used the wrong filter, the test would still pass only if the ceiling was set to match the wrong count, which is the blessed state — the test is an invariant pin, not a tautology, because it ties the gate threshold to the canonical row set.
  • The PR requires a broad crypto/compression/runtime sibling-path audit.; refuted because: The changed code is deterministic report-layer counting over already-loaded rows; no unsafe/native helper or allocation path is introduced.
  • Optional serde compatibility requires more invasive ledger or schema changes.; refuted because: missed_credit_ceiling is Option with #[serde(default)], so existing ledgers deserialize as ungated while configured fixtures opt in.
  • The new gate's failure message format!('verdict-corpus: {missed} ...') could leak sensitive corpus data such as internal case IDs or secrets via ledger_label.; refuted because: ledger_label is the corpus directory path (e.g. fixtures/rust-verdict-corpus); missed is a non-secret count of abstained+discriminated rows. No secret material is interpolated; no case IDs in the message. Not an info-disclosure surface.
  • Missed-credit ceiling will deadlock main on concurrent fix PRs because fall is a failure (mirror of #9588 known_false collapse).; refuted because: missed_credit_gate returns Ok(Some(note)) on fall and apply_known_false_gate prints it via println! without entering failures. Spec 0219, Ledger doc comment, and the four ledger TOML comments all encode the asymmetric rule. A falling-count failure would only fire if a developer also lowered the ceiling past the still-pending count, which is the intended reviewed edit.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

EffortlessSteven commented Oct 22, 2026 •

Copy link
Copy Markdown
Member Author

Dependency reconciliation for #9637's bounded byte-length leaf is now published as Draft #9715 (current head 09be29ebd3a4c4cbb2880709098413da85b87f9e, base 27949d7a5f54244a6200c50bbf74d87c8ebb26dd).

The original baseline correction is acknowledged: this PR's current observed head e336ce58d73d2bbde02eed6cf61cd318f467a8d5 proposes Rust ceiling120. Our immutable selected base has590blessed Rust rows and120discriminated/abstained rows; no producer/key is on the fetched main yet. Keep the producer's baseline tied to its own actual blessed rows, not our unmerged improvement.

Our bounded source baf91d96c9811d537c56fc2877d7623ff8415efd has fresh whole-Rust native evidence: exactly tokens-fits-binding-predicate moves limited/infection_unknown/abstained -> credited/exposed/ideal; all589otherrowsmatch, missed120->119, existing16false verdicts and0/737contradictions unchanged. Native bless/check0, goldens0/524paths and independent realCLI23controls are recorded on #9715 with source-object/carried-proof boundaries. Later test-only corrections do not change the production implementation; corrected focused library execution/root gates are still pending, not passes.

#9715 does not duplicate this producer, add an inert replacement key or claim acceptance from metadata. After this existing producer lands, the same leaf PR must verify the actual composed count and lower that real ceiling before qualification/integration. This is an actual acceptance prerequisite, not an added coordinator approval gate. No duplicate required CI was started; #9715 remains Draft and includes the current #9560 Schema-sweep requirement.

Copy link
Copy Markdown
Member Author

Head e336ce5 merges main (27949d7) into the reviewed head 097cf24. The only reviewed-surface change is the Rust baseline: committed rows now count 120 abstained+discriminated rows (was 112), so the Rust ceiling is 120; TS 23, Python 31 and Perl 15 are unchanged. The one conflict (perl spec-coverage.toml, the new [grid] table beside the ceiling) kept both sides. cargo test -p xtask known_false passes (12), including the test that pins every ceiling to its blessed count. The earlier two-angle review stands for the unchanged logic. The PR body now states the fail-only-on-rise rule.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Merged main again (the per-file known-false/ ledger from #9700 merged with no conflict). Recounted the baselines from the committed rows: Rust 120, TypeScript 24 (was 23; a new abstaining row landed on main), Python 31, Perl 15. TypeScript's ceiling is now 24, and cargo test -p xtask known_false passes (14, including the ceiling-equals-blessed-count test). Baselines keep moving with main, which is why a fall only prints a note.


Generated by Claude Code

@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.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm typeScript fixture missed_credit_ceiling=24 but the changelog fragment and PR summary say 23; either the ceiling is one too high (would still pass, only note) or the changelog is stale.
  • Confirm no repository-wide sibling-consumer scan was evidenced, so it cannot be proven that no other check route loads Ledger while bypassing apply_known_false_gate.
  • Confirm rIPR failed with exit code 2, so the planned Rust oracle sensor did not provide a successful receipt. The change is source-visible and focused unit coverage exists, but independent native/oracle confirmation remains pending.

Refuted

  • missed_credit_ceiling being a new optional field could be backed by a borrowed &[u8] slice or async-streamed config that crosses a worker boundary and is invalidated when the source is dropped; refuted because: Field is Option produced by serde from a synchronous toml read into an owned Ledger; no borrow, no async, no FFI, no JS interop path exists in the changed code.
  • The new gate could accidentally run for every corpus or for --case subsets, defeating the documented opt-in behavior.; refuted because: The new condition is inside apply_known_false_gate's existing ledger route, while the spec and seeded review state preserve subset skips and no-key skips; the option is explicitly optional.
  • The threshold may require parallel traversal through unrelated corpus, native-runtime, or unsafe helper paths.; refuted because: Rejected for this diff: the implementation uses one bounded row filter and an owned optional ledger field; no pointer, buffer, concurrency, crypto, compression, or unsafe boundary is introduced.
  • A separate apply_missed_credit_gate helper would be cleaner than composing inside apply_known_false_gate, which now carries two unrelated ratchets.; refuted because: Both ratchets share the same Result<Option, String> contract, the same ledger_label source, and the same join-into-existing-message pattern. Extracting would only relocate the composition without reducing coupling; the file already hosts known_false and missed_credit as siblings under one concern (gates driven by the scored CaseRow set).
  • Falling below a ceiling should fail to force immediate ratchet tightening.; refuted because: The implementation intentionally returns a successful note rather than an error, and the test pins that reversible concurrent-PR behavior.

Parked follow-ups

  • Other corpus ledgers without missed_credit_ceiling deliberately remain ungated and are outside this PR's four configured baselines; adding them would broaden scope and require independently blessed counts.
  • The changelog advertises stale Rust and TypeScript ceilings.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

…ounts that move with main

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU

@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.

Confirmed findings

  • The implementation appears coherent, but source-route completeness is not established: sibling consumers of Ledger/check routes were not broadly scanned.

Verification questions

  • Confirm repository-wide sibling entry points bypassing apply_known_false_gate cannot be confirmed from the supplied patch and receipts.
  • Confirm no repository-wide sibling scan evidenced that no other check route loads Ledger while bypassing apply_known_false_gate; that claim from the prior review remains open.
  • Confirm the key CLI contract that a --case subset is never gated is not proven by the changed tests, which call missed_credit_gate directly and bypass the subset-selection route.

Refuted

  • The new missed-credit computation could expose lifetime or unsafe-contract risk.; refuted because: The computation iterates borrowed CaseRow data and copies only an Option count; no raw pointer, unsafe block, async transfer, worker handoff, or resizable backing-store view is introduced.
  • The new gate may require mutable or borrowed runtime state that can be resized or detached before use.; refuted because: The gate receives usize, &Ledger, and &str labels, and reads only Copy-owned values. apply_known_false_gate retains an ordinary owned Vec and returns owned Result content; no backing store is resized, detached, or transferred.
  • The 'fall passes with note' path lets a contributor raise a ceiling by simply editing a TOML integer, since nothing blocks upward edits at parse time and the gate only fails on rise above the new value; refuted because: Refuted: a rise above the current ceiling still fails; raising the ceiling is a reviewed TOML edit visible in PR diff, and the test loop pins it to the blessed count, so any upward bump is caught at test time before merge.
  • The new gate may depend on stale or resizable backing-store length or aliased data.; refuted because: The implementation receives &[CaseRow] and Option through synchronous calls, counts before returning, and stores no reference or buffer view.
  • missed_credit_ceiling could be backed by a borrowed &[u8] or async-streamed config that crosses a worker boundary and is invalidated on drop; refuted because: Field is Option from synchronous serde on an owned Ledger; no borrow, async, FFI, or JS interop path is introduced in the diff.

Evidence gaps

  • The hosted cargo-test receipt is still scheduled, so the PR's cited 14-test success is not yet represented by a completed packet receipt.
  • The planned ripr oracle failed with exit code 2, so independent native verdict-oracle evidence is unavailable for this gate.
  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Updated onto main d30ade2 (head bbc07ff). One conflict (Python spec-coverage.toml, kept both the ceiling and main's new [grid] block); the auto-merge also put the TypeScript ceiling after [grid], where it parsed as a grid field, so it now sits above [grid].

The ceilings are set to the observed blessed missed-credit counts, as the equality test requires:

Language Original ceiling Now
Rust 120 135
TypeScript 24 23
Python 31 33
Perl 15 21

Rust, Python and Perl are higher than when this PR was first written. The likely cause is new cases on main (Rust corpus 504 to 617 cases, Python 194 to 224), not a regression, but I have not diffed the individual rows, so treat that as an inference. Because the ratchet only fails on a rise, this loosens it to the new baseline for those three; it does not hide a rise after this point. Proof on this head, reported by the author: verdict-corpus check exits 0 for all four languages, the ceiling tests pass, and cargo xtask precommit exits 0.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 24, 2026 21:58
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Member Author

Review of record update, head bbc07ff. The gate logic and tests (fail on a rise, note on a fall, no key means no gate, --case never gated, committed ceilings equal blessed counts) are unchanged from the earlier multi-angle review. Since then: a merge of main d30ade2, the four ceiling values re-set to the observed counts (table in the comment above), and the TypeScript key moved above [grid] after the auto-merge placed it inside the grid table. I read the diff against main: 8 files, the Rust change confined to verdict_corpus_coverage.rs and verdict_corpus_known_false.rs, and no expected rows touched. Reported on this head: verdict-corpus check exits 0 for all four languages, the ceiling tests pass, cargo xtask precommit exits 0. Known limit: three ceilings rose with main's new cases (inferred, not row-diffed), so this PR records the new baseline rather than lowering it. Marked Ready and requesting merge-ready.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit 49b1aa9 into main Oct 24, 2026
47 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-9o1b80 branch October 24, 2026 22:51
EffortlessSteven added a commit that referenced this pull request Oct 25, 2026
…follow-up) (#10152)

#10117 blessed RIPR-SPEC-0164/0165 measurement rows in the rust, python
and perl verdict corpora but left their missed_credit_ceiling values at
the pre-measurement numbers. The #9628 equality pin
(committed_ceilings_equal_the_blessed_missed_credit) then failed
deterministically on main: rust 135 vs blessed 143, python 33 vs 30,
perl 21 vs 23 (typescript was already consistent at 23).

Set each ceiling to its blessed count. The rust and perl raises are the
reviewed-edit-with-a-reason path: the additional missed credit is the
honestly-measured #10117 rows (literal match-arm transfer and bounded
recursive helper evaluation), not a verdict regression. The python
lowering is the ratchet's improvement direction: three rows earned
credit.

verified: cargo test -p xtask --bin xtask -- reports::verdict_corpus::known_false::tests::committed_ceilings (was FAILED on exact main tree, now ok)
EffortlessSteven added a commit that referenced this pull request Oct 25, 2026
…nd substring rejects regex (#9496) (#10156)

* fix(typescript): recognise chai class throws, anchored assert.match, substring rejects regex and counted removed calls (#9496)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* style(typescript): cargo fmt (#9496)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix(typescript): fail closed on chai class subclass/alias, rule 17 other throw paths, phantom spies (#9496)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* style(typescript): clippy manual_contains (#9496)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix(typescript): delete known-false ledger files for fixed rows (#9496)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* test(typescript): cite spec 0243 examples 36-39 from their corpus cases (#9496)

The xtask coverage test counted 35 in-scope RIPR-SPEC-0243 examples and the
five fixed cases cited none of the four new ones. Cite them, raise the
ledger floor 121 -> 125 and the expected in-scope count 35 -> 39.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix(typescript): split spy-binding names on char boundaries (#9496)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix(typescript): single-throw class reads, generic unknown calls, renumber rules 19-20 (#9496)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix(typescript): tie removed-call credit to the owner's receiver, harden sole-throw check (#9496)

- credit a removed call only when the spied local is what the test passes for the owner's receiver parameter, or the receiver is imported from the owner's module and not redeclared
- sole throw site must be the changed line; parameter callbacks are unknown calls outside try/catch; new of a non-built-in is an unknown call
- left word boundaries for mock.method( and const/let
- JavaScript string escaping for anchored-regex expected values

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* Re-measure missed_credit_ceiling on main (perl 23, python 30, rust 134)

Perl case PRs landed after #9628 measured 21, so verdict-corpus check
--language perl fails on main. Python and Rust fell; ceilings must equal
the blessed count.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU

* Point the node-mock-method-call-removed ledger entry at #10157

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AnfxntsP9VxYNTBs5FukBi

---------

Co-authored-by: Claude <noreply@anthropic.com>
EffortlessSteven added a commit that referenced this pull request Oct 25, 2026
… pins (#9496) (#10145)

* fix(typescript): skipped describe registrations are not a partial extraction

A registration inside describe.skip/todo or a describe with a skip option never
runs and is not a dropped one; stop disclosing it as language_scope_unsupported.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix(typescript): credit done-settled callbacks and old-value boundary pins

Rule 5 collects assertions of a callback that must call done() for a mocha test
to pass. Rule 6 keeps the boundary witness when the expectation pins the
unchanged value (fails against the changed code). Flips mocha-done-callback-value
and mocha-nested-describe-boundary.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* chore(typescript): drop known_false entries for fixed rows and stale entries

Removes mocha-done-callback-value and mocha-nested-describe-boundary (fixed here)
and the six rows #9591 also removes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* docs: name changelog fragment for PR 9627

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix(typescript): require done named once; skip only literal skip/todo suites

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix(typescript): todo suites stay active; a later spread or computed key voids skip:true

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* chore(typescript): delete known-false rows for the two fixed cases

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* docs: cite the issue and PR in the changelog fragment

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix(typescript): a skipped suite bound to a variable is not walked for dropped registrations

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* docs: rule 7 in test comment

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix: restore closing brace after merge

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* chore: raise the spec-example floor to 134

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix(repo-ops): close the RIPR-SPEC-0288 traceability entry main merged unterminated

#8990 landed the 0288 entry without its outputs closing bracket and
metrics list, so .ripr/traceability.toml fails to parse and
check-traceability fails on every open merge ref (main heads 5950c91,
ad1e3bb and 280e020 all ran red). Close the array and add the standard
unit_test_pass_rate metrics list. cargo xtask check-traceability passes
with this.

* Re-measure missed_credit_ceiling on main (perl 23, python 30, rust 134)

Perl case PRs landed after #9628 measured 21, so verdict-corpus check
--language perl fails on main. Python and Rust fell; ceilings must equal
the blessed count.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU

* Raise TypeScript spec-example floor to 154

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AnfxntsP9VxYNTBs5FukBi

---------

Co-authored-by: Claude <noreply@anthropic.com>
EffortlessSteven added a commit that referenced this pull request Oct 31, 2026
…10224)

* fix(typescript): skipped describe registrations are not a partial extraction

A registration inside describe.skip/todo or a describe with a skip option never
runs and is not a dropped one; stop disclosing it as language_scope_unsupported.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix(typescript): credit done-settled callbacks and old-value boundary pins

Rule 5 collects assertions of a callback that must call done() for a mocha test
to pass. Rule 6 keeps the boundary witness when the expectation pins the
unchanged value (fails against the changed code). Flips mocha-done-callback-value
and mocha-nested-describe-boundary.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* chore(typescript): drop known_false entries for fixed rows and stale entries

Removes mocha-done-callback-value and mocha-nested-describe-boundary (fixed here)
and the six rows #9591 also removes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* docs: name changelog fragment for PR 9627

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix(typescript): require done named once; skip only literal skip/todo suites

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix(typescript): todo suites stay active; a later spread or computed key voids skip:true

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* chore(typescript): delete known-false rows for the two fixed cases

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* docs: cite the issue and PR in the changelog fragment

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix(typescript): a skipped suite bound to a variable is not walked for dropped registrations

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* docs: rule 7 in test comment

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix: restore closing brace after merge

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* chore: raise the spec-example floor to 134

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DYoh4Y4M2kQ1KXCn8TtBqE

* fix(repo-ops): close the RIPR-SPEC-0288 traceability entry main merged unterminated

#8990 landed the 0288 entry without its outputs closing bracket and
metrics list, so .ripr/traceability.toml fails to parse and
check-traceability fails on every open merge ref (main heads 5950c91,
ad1e3bb and 280e020 all ran red). Close the array and add the standard
unit_test_pass_rate metrics list. cargo xtask check-traceability passes
with this.

* Re-measure missed_credit_ceiling on main (perl 23, python 30, rust 134)

Perl case PRs landed after #9628 measured 21, so verdict-corpus check
--language perl fails on main. Python and Rust fell; ceilings must equal
the blessed count.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU

* Raise TypeScript spec-example floor to 154

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AnfxntsP9VxYNTBs5FukBi

* test(typescript): discriminate skipped suite binding identity

* fix(typescript): resolve skipped suite declaration bindings

* fix(typescript): retain notices across uncertain mutation and evaluation

* fix(typescript): preserve hoisted aliases and evaluated callees

* fix(typescript): retain default carriers and wrapper evaluation

* fix(typescript): memoize possible runner mutation by binding

* docs(typescript): use static policy vocabulary for runner imports

* test(typescript): expose escaped runners and evaluated constructors

* fix(typescript): retain escaped-runner and evaluated invocation notices

* fix(typescript): preserve block rebindings in evaluated invocations

* fix(typescript): keep nested lexical rebindings inside their scope

* fix(typescript): scope loop catch and switch registration bindings

* test(typescript): discriminate for-in binding scope entry

* fix(typescript): preserve evaluation mode through control flow

* fix(typescript): scope global-object writes and arrow returns precisely

Review of the published head identified two dormancy defects:

1. A bare ambient global-object write (globalThis.fetch = mock) pushed
   the global alias into member_writes, where root_value resolves it to
   GlobalObject and mutated_runner stripped dormancy from every skipped
   suite in the file. An unshadowed global-object write now withdraws
   only the written property name via global_writes; a shadowed local of
   the same name remains a whole-file mutation risk.

2. An expression-bodied arrow (const get = () => describe) returned the
   runner without recording an escape, so get().skip = custom stayed
   invisible and a genuinely mutated runner kept its dormant verdict.
   Arrow expression bodies now record their operand as an escape.

New grouped discriminator skipped_suite_bindings_treat_ambient_global_
writes_precisely covers both directions; traceability and the
RIPR-SPEC-0243 escape list follow.

* fix(typescript): reject qualified reads of globally written runners

A global-object write withdraws the written runner name, but resolve only consulted global_writes for the bare root name, so globalThis.describe.skip (or window.describe.skip) after globalThis.describe = custom still resolved to a dormant skipped root and dropped the nested registration notice. GlobalObject members now reject names in global_writes; Namespace members are unchanged.

Controls: qualified dormant/retained reads in skipped_suite_bindings_treat_ambient_global_writes_precisely, and new skipped_suite_bindings_treat_x_spelled_suites_as_dormant pinning xdescribe/xcontext/xsuite dormancy named in RIPR-SPEC-0243.

* style: rustfmt the merged TypeScript tests

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVdGzSiDdMNjK7Lxr7u3ZT

* fix(typescript): bind only runtime function parameters in declaration bindings

Type-only parameter lists (TSFunctionType, TSMethodSignature, declare
functions, overload signatures) share the FormalParameters AST node, so
visiting FormalParameters bound their identifiers into the enclosing
runtime scope. A top-level 'type Fn = (test: T) => void' shadowed the
runner for the whole file and dormant skipped suites produced spurious
partial-extraction notices. Bind parameters from the Function (bodied
only) and ArrowFunctionExpression arms instead.

Regression test: detect_partial_none_when_type_only_parameters_name_the_runner.

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Steven Zimmerman <steven@perllsp.org>
Co-authored-by: Steven Zimmerman, CPA <steven@effortlessmetrics.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants