Repository navigation
feat(typescript): scope the partial-extraction disclosure to test files that can reach the diff - #10474
Conversation
…es that can reach the diff (#10436) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ERrUtJSfh2ieZiae8ZVwTB
|
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 7 minutes. View limit details
Comment |
… imports (#10436) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ERrUtJSfh2ieZiae8ZVwTB
|
Review of record for head Angles inspected and what I found:
Findings blocking: none. Applying 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! |
… spec and traceability Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ERrUtJSfh2ieZiae8ZVwTB
|
Review of record, head 5af247c Angles: correctness (fail-closed reachability), tests, spec/traceability, perf/security.
No blockers. Governing issue: #10436. Acceptance delta: a real mid-size TS repo no longer reports partial extraction for gaps its diff cannot reach. Generated by Claude Code |
There was a problem hiding this comment.
Verification questions
- Confirm package export maps may hide a related gap: a bare package subpath is followed as external unless the root package name is recognized, even if package.json exports maps it to changed workspace code.
- Confirm the e2e oracle does not verify that only the relevant gap file is disclosed when multiple unrelated and related gaps coexist.
- Confirm the sibling-path scan is not broad enough to prove absence across JavaScript package resolution variants: only package.json name and selected config markers are checked in the available diff.
- Confirm the e2e test is discriminating for unrelated, reachable, and computed-import cases, but it does not assert the changed-owner-name fallback.
- Confirm the scanner treats non-string primary expressions in import() and require() as opaque, but only computes calls named import and require; other common loader forms are not conservatively classified.
- Confirm the end-to-end test's helper imports the barrel, while the barrel imports the changed pricing module; it does not exercise a helper that imports the changed file directly.
Refuted
- A bare package import can hide a changed-code gap through package.json exports/imports or a workspace package subpath export.; refuted because: The current diff does not show package export-map resolution, but the available evidence is insufficient to prove this path is reachable in the affected workspace; retain as a verification request rather than a confirmed defect.
- The tested positive case does not match its claimed helper-and-barrel shape.; refuted because: The helper imports the barrel and the barrel reaches pricing, so the test still follows a valid two-edge helper-to-barrel-to-changed-file closure; this is a coverage precision issue rather than a false oracle.
Evidence gaps
- Central validation evidence remains incomplete despite the claim that focused TypeScript tests and precommit pass.
- The central ripr sensor failed with exit code 2 while cargo-test evidence is only scheduled late, so this lane cannot treat the new Rust logic as independently test-proven.
- Model proof intent was rejected by deterministic validation.
- The late cargo-test witness is still pending in the supplied packet.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ERrUtJSfh2ieZiae8ZVwTB
|
Review of record, head 79cf872 (supersedes the 5af247c record; only Angles: correctness, tests, spec/traceability, perf/security.
No blockers. All 7 review threads replied to and resolved. Generated by Claude Code |
|
Independent native follow-through confirmed the package-base extends disclosure residual and filed it as #10522 for this existing owner. TypeScript5.9.3 resolves the inherited package paths to the changed owner, but the exact landed-head CLI incorrectly says complete and omits that reaching extraction gap. Five paired controls establish literal/relative-extends disclosure, unrelated-index omission and successful concatenation refusal; all six findings arrays remain exactly identical. Please carry the conservative inherited-config disclosure repair in the existing lane, preserving classification/alias-credit boundaries. No rollback or competing writer is requested. An immutable six-case proof handoff follows. |
Summary
typescript_test_extraction_partialwas workspace-wide: one registration the extractor drops (a loop over non-literal data, a wrapper-passedit) anywhere in a repo made every analysis of it partial, however unrelated the diff. Real repos always contain some, so zod, ky, h3 and execa never completed (#10436).A dropped registration now counts only when a test in that file could be related to code the diff changed. New
gap_reach.rsanswers that from the file's local import closure and fails closed:./x.js→x.tsfollowed), or names an owner of a changed file → keptimport()/require(),import.meta.glob,require.context,createRequire→ kept~/#/$///@/prefixes → keptalias/moduleNameMapper, or a Rust change related through the Bun bridge → scoping offOnly the disclosure's scope changes. Findings and classification are untouched. The conditional-credit and owner-extraction disclosures are unchanged.
Measured on real repos (draft mode, one commit each)
import(), one namesheaders)with-performance.ts)#privategap remains, #10440)complete_with_findings, no limitationslib/io/contents.js, which holds the changedhandleMaxBuffer(correct)query.test.tsimports the whole library and its loop has a computed title (correct)So a mid-size TypeScript repo (ky, 98 files) now completes for diffs that do not touch an unextractable owner shape, and a diff that really reaches a dropped registration is still disclosed.
Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Governing issue or accepted claim: #10436 (part of #10338 / #9278)
Acceptance delta (one sentence): The TypeScript partial-extraction disclosure is limited to test files whose import closure can reach the diff, failing closed on anything the scan cannot follow.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-stp16t
Validation
gap_reachunit tests (8) andanalyze_diff_scopes_extraction_partial_to_test_files_that_reach_the_diff(unrelated file, barrel+helper reach, computed import)analysis::language::typescriptlib tests pass (1734 before the e2e test; 23/23analyze_diff*)cargo xtask precommitpassesGenerated by Claude Code