Repository navigation
feat(corpus): ratchet a per-language missed-credit ceiling in verdict-corpus check - #9628
Conversation
…-corpus check (#9619) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
Comment |
…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
|
Decision (reversible): the ceiling fails Generated by Claude Code |
… count Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU
|
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.
Generated by Claude Code |
There was a problem hiding this comment.
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.
|
Dependency reconciliation for #9637's bounded byte-length leaf is now published as Draft #9715 (current head The original baseline correction is acknowledged: this PR's current observed head Our bounded source #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. |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU
|
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 Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU
|
Merged main again (the per-file Generated by Claude Code |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU
|
Updated onto main d30ade2 (head bbc07ff). One conflict (Python The ceilings are set to the observed blessed missed-credit counts, as the equality test requires:
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: Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Review of record update, head bbc07ff. The gate logic and tests (fail on a rise, note on a fall, no key means no gate, Generated by Claude Code |
…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)
…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>
… 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>
…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>
Requested by Steven · project thread
Summary
missed_credit_ceilingto each language'sspec-coverage.toml: the count of abstained rows whose truth isdiscriminated(tests catch the change, ripr says unknown). Current baseline after merging main (d30ade2, which includes fix(python,typescript): credit a same-file assertion helper called with literals (#9636) #9702 and fix(infection): credit boundary operands computed from literal inputs (#9637) #9731): Rust 135, TypeScript 23, Python 33, Perl 21.verdict-corpus checkfails only when the count rises above the ceiling. When it falls,checkpasses and prints a note to lower the ceiling, so concurrent fix PRs do not deadlock on one number (the chore(corpus): reconcile all known_false drift on main (#9430) #9588 failure mode). No key means no gate; a--casesubset is never gated.checkalready loads, so no added CI cost. A unit test pins each committed ceiling to its blessed count.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
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_creditpass (3 tests)cargo xtask precommitpass🤖 Generated with Claude Code
https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU