You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust, python, typescript: a test in another package that reaches the changed function transitively reads no_static_path (ws-test-other-crate) #12955
app/app.py: from wscore.core import discount and def checkout(price): return discount(price)
app/tests/test_t.py: assert checkout(100) == 90
No test under wscore/. Committed edit: price > 100 -> price >= 100 in wscore/core.py.
ripr check --base HEAD~1 --format json
Rust control: the equivalent two-crate workspace (library crate changed, the only test in a dependent crate calling it through a wrapper).
Observed vs expected
Rust: no_static_path 0.48. Python: no_static_path 0.4. TypeScript: no_static_path 0.4. Truth: the dependent package's test calls checkout(100), which pins the boundary, so the change is reached and exposed.
Expected: reach resolved across the package boundary (workspace members / import edges), result exposed (or at worst static_unknown that says the cross-package edge was not resolved). no_static_path here falsely says "no test reaches this".
The same-package variant (workspace case) reads exposed in Python/TS, so only the cross-package reach is missing.
Why it matters
In monorepos with a core library tested from consumer packages, every change in the core reads "no test path", which sends users to add tests that exist. A missed or false-negative gap signal, not a false exposed, but all three languages share it.
Acceptance
Reach follows direct import/dependency edges from a test's package into the changed package within the configured workspace.
Fail-closed: an unresolved cross-package edge yields static_unknown/reach unknown, never no_static_path; the class is corrected only when the edge is resolved.
No loosening of validate_agent_gap_record_packet.
Negative control: a package that does not import the changed one still reads no_static_path.
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
Create Plan
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
Claim (TypeScript part only): the "Support TypeScript monorepos" thread is taking the TS cross-package transitive-reach case (ws-test-other-crate). It starts after #11204's slice in the same thread. Rust and Python parts are not claimed. The closed #12570 looked at the Rust side.
TypeScript part: delivered on main by #13669 (45c1544, "continue the bounded caller chain across imported modules"). I'm releasing my claim and not opening a duplicate PR.
How I verified it on current main (with the unrelated MissedTxt compile break patched locally): I ran the ws-test-other-crate shape through the production analyze_diff path. The shape is wscore/src/index.ts owner, app/src/index.ts wrapper importing '../../wscore/src/index', and app/test/t.test.ts calling checkout(100).
Result: static_unknown, with checkout at boundary related through the cross-module caller. The missing line says: "Related tests reach discount only through cross-module callers (checkout) ...". It never reads exposed, and the actionability is non-actionable unknown.
Negative controls stay no_static_path:
a wrapper that no test imports;
a wrapper importing a same-named discount from another module;
a wrapper importing only another name from the owner module;
Claim (Python part): the "Support TypeScript monorepos" thread is taking the Python ws-test-other-crate case. The target is the same fail-closed shape #13669 gave TypeScript: a test in another package that reaches the changed function through an imported wrapper reads static_unknown with the wrapper named, never no_static_path. Negative controls stay no_static_path.
Rust part: I'm not claiming it, because #13059 (open, merge-ready) already delivers the Rust fail-closed reading (static_unknown under rust_dependent_crate_reach_unresolved when dependent crates host tests). I'll check the Rust repro against #13059 once it lands rather than build a parallel mechanism.
Reconciled against main cb95c5b0: partly delivered. Label moved from status/needs-work to status/partial.
Landed
TypeScript, fail-closed reading: PR fix(typescript): continue the bounded caller chain across imported modules (#13592 B1) #13669, squash 45c15446. Read on main now: crates/ripr/src/analysis/language/typescript/tests/cross_module_entry_tests.rs asserts the "only through cross-module callers" line. As the 2026-11-08 comment records, the result is static_unknown naming the wrapper, not exposed; a namespace-import wrapper (core.discount(...)) still reads no_static_path.
Rust: not on main, and no longer owned. The 2026-11-08 claim comment left Rust to PR fix(analysis): withhold no_static_path when dependent crates host tests (Advances #5395) #13059. That PR was closed unmerged on 2026-11-09T04:44Z (branch claude/project-thread-diccvm, head 0dd0dfadd1a17f3fa3599b5674d0c6813cc61188). No file under crates/ on main contains rust_dependent_crate_reach_unresolved, and I found no open PR or main commit that replaces it.
Reach resolved to exposed across the package boundary (the first acceptance line) is not delivered in any language. What exists or is in flight is the fail-closed static_unknown reading only.
Claim
The Python claim of 2026-11-08T19:19Z is more than two days old and its PR has been idle since 2026-11-09T11:08Z, so PR #13890 is eligible to be joined and finished at the head above. The Rust part is free to take. Preserved Rust work: closed PR #13059 at the head above (join or revive it rather than restart).
Python: delivered by fix(python): read reach through an importing module's caller as static_unknown (#12955) #13890. A function of another module that binds the changed top-level helper exactly (from <owner module> import <name>, aliased or not) and bare-calls it is a reach-only first hop (cross_module_caller_call). A test reached only that way reads static_unknown under missing_import_graph and names the caller and its file, never no_static_path. Namespace-import attribute calls, star imports and non-exact bindings make no edge. More than 32 cross-module callers are not followed, and the helper then reads static_unknown. The spec is RIPR-SPEC-0028 (Cross-Module Caller Amendment), with 11 tests in cross_module_caller_tests.rs.
Activity
coderabbitai commentedon Nov 4, 2026
🔗 Related PRs
#12570 - fix(analysis): withhold no_static_path when dependent crates host tests (Advances
#5395) [open]📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
EffortlessSteven commentedon Nov 8, 2026
Claim (TypeScript part only): the "Support TypeScript monorepos" thread is taking the TS cross-package transitive-reach case (
ws-test-other-crate). It starts after #11204's slice in the same thread. Rust and Python parts are not claimed. The closed #12570 looked at the Rust side.Generated by Claude Code
EffortlessSteven commentedon Nov 8, 2026
TypeScript part: delivered on main by #13669 (45c1544, "continue the bounded caller chain across imported modules"). I'm releasing my claim and not opening a duplicate PR.
How I verified it on current main (with the unrelated
MissedTxtcompile break patched locally): I ran thews-test-other-crateshape through the productionanalyze_diffpath. The shape iswscore/src/index.tsowner,app/src/index.tswrapper importing'../../wscore/src/index', andapp/test/t.test.tscallingcheckout(100).static_unknown, withcheckout at boundaryrelated through the cross-module caller. The missing line says: "Related tests reachdiscountonly through cross-module callers (checkout) ...". It never readsexposed, and the actionability is non-actionableunknown.no_static_path:discountfrom another module;static_unknowntoo.core.discount(...)) still readsno_static_pathon main, because fix(typescript): continue the bounded caller chain across imported modules (#13592 B1) #13669 follows bare calls only. I had a fail-closed importer-edge variant that covered that case. I'm not landing it as a second mechanism next to fix(typescript): continue the bounded caller chain across imported modules (#13592 B1) #13669; it can be revisited as a narrow follow-up if namespace-call wrappers show up in practice.The Rust and Python parts of this issue are not claimed by this thread and remain open.
Generated by Claude Code
EffortlessSteven commentedon Nov 8, 2026
Claim (Python part): the "Support TypeScript monorepos" thread is taking the Python
ws-test-other-cratecase. The target is the same fail-closed shape #13669 gave TypeScript: a test in another package that reaches the changed function through an imported wrapper readsstatic_unknownwith the wrapper named, neverno_static_path. Negative controls stayno_static_path.Rust part: I'm not claiming it, because #13059 (open, merge-ready) already delivers the Rust fail-closed reading (
static_unknownunderrust_dependent_crate_reach_unresolvedwhen dependent crates host tests). I'll check the Rust repro against #13059 once it lands rather than build a parallel mechanism.Generated by Claude Code
fix(python): follow only top-level functions past a module boundary (#…
test(python): pin the crossed-hop method guard and clarify try/if bin…
EffortlessSteven commentedon Nov 11, 2026
Reconciled against main
cb95c5b0: partly delivered. Label moved fromstatus/needs-worktostatus/partial.Landed
45c15446. Read on main now:crates/ripr/src/analysis/language/typescript/tests/cross_module_entry_tests.rsasserts the "only through cross-module callers" line. As the 2026-11-08 comment records, the result isstatic_unknownnaming the wrapper, notexposed; a namespace-import wrapper (core.discount(...)) still readsno_static_path.Residual
merge-ready, head1f4dd2e238b549f229ffe7a687586422637f65ed, last commit 2026-11-09T01:02Z, last updated 2026-11-09T11:08Z.claude/project-thread-diccvm, head0dd0dfadd1a17f3fa3599b5674d0c6813cc61188). No file undercrates/on main containsrust_dependent_crate_reach_unresolved, and I found no open PR or main commit that replaces it.exposedacross the package boundary (the first acceptance line) is not delivered in any language. What exists or is in flight is the fail-closedstatic_unknownreading only.Claim
The Python claim of 2026-11-08T19:19Z is more than two days old and its PR has been idle since 2026-11-09T11:08Z, so PR #13890 is eligible to be joined and finished at the head above. The Rust part is free to take. Preserved Rust work: closed PR #13059 at the head above (join or revive it rather than restart).
Generated by Claude Code
EffortlessSteven commentedon Nov 17, 2026
Reconciliation after #13890 landed as bef2d25:
static_unknownand names that caller.from <owner module> import <name>, aliased or not) and bare-calls it is a reach-only first hop (cross_module_caller_call). A test reached only that way readsstatic_unknownundermissing_import_graphand names the caller and its file, neverno_static_path. Namespace-import attribute calls, star imports and non-exact bindings make no edge. More than 32 cross-module callers are not followed, and the helper then readsstatic_unknown. The spec is RIPR-SPEC-0028 (Cross-Module Caller Amendment), with 11 tests incross_module_caller_tests.rs.This issue stays open for the Rust part, which follows #13974.
Generated by Claude Code