Repository navigation
fix(accuracy): relate Python dunders through their class; follow same-named Rust fns in the reach walk - #4533
Conversation
Replaying packaging and cachetools bug fixes against their own suites found three false signals on dunder owners: - `LowerBound.__init__` related to tests that define a helper class with `def __init__` or call `super().__init__`, and missed the tests that construct `LowerBound(None, True)` (packaging 55cbf1b; all four flagged mutants killed by test_ranges). - `Cache.__setitem__` and `TLRUCache.__setitem__` read `no_static_path` while `cache[key] = value` through a unittest mixin's `self.Cache` kills every mutant (cachetools 39b31bc, c0fdf6a). - `def name(` in a test body counted as a call of `name`. A dunder owner now relates only through a reference to its class. Constructing the class relates `__init__`/`__new__`/`__post_init__` as `constructor_call`; other dunders relate as uncertain `dunder_protocol`. A dunder owner with no related test, whose class or module the tests import, reads `static_unknown` with the `dynamic_dispatch` limit. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Np4sJkq1jfbMTLg3Uz7s5P
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Warning Review limit reachedNext included review available in 57 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (11)
Summary by CodeRabbit
WalkthroughThe PR updates Python analysis for dunder-method test relations, dynamic-dispatch limits, and multiline function headers. It also changes Rust transitive reach to inspect all production functions with a matching name. ChangesPython analysis
Rust transitive reach
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Merge Risk: 🔵 Low · up to Large Python diffs may analyze more slowly, and an edge-case annotation change could be missed by the analyzer. Both are narrow and easy to fix, so this is mergeable with follow-up. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to The changes improve several inaccurate analysis results, but two new Python analysis paths may respectively omit a behavior-changing edit or overstate test coverage. Neither is a verified security vulnerability, and no deployment or privilege change is shown. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 62.50% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 40 functions across 8 files. (3 skipped: 3 unsupported.) ✨ Finishing Touches 💡 2📝 Generate docstrings 💡
⚔️ Resolve merge conflicts 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit reviews each function in flight Comment |
The bounded walk that names a limitation on `no_static_path` findings indexed production functions by name with `or_insert`, so only the first function of each name was expanded. jiter a05dc81/9c3d0a5: the parser calls `decode` on a generic decoder; `StringDecoder::decode` calls the changed `decode_to_tape`, but the other `decode` was indexed first, so 23 findings read a silent `no_static_path`. The suite kills the flagged predicate's mutant. indexmap ddb0316 had 6 more. The walk now follows every function with the callee's name. Classification is unchanged (RIPR-SPEC-0114); the findings now carry the named limitation and a witness test. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Np4sJkq1jfbMTLg3Uz7s5P
cachetools c0fdf6a reflowed `TLRUCache.__setitem__`'s signature over several lines; diff mode probed `self,`, `key,`, `value,` and `):` as `predicate`, each reported `no_static_path`. Those lines have no behavior for a test to discriminate. Diff mode now skips a line inside a multi-line `def` header that only names a parameter (optionally with an inert annotation) or opens/closes the header, when the paired old line has the same shape. Parameter defaults, annotations with calls, trailing comments and `)` closing a call in a body keep their probe. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Np4sJkq1jfbMTLg3Uz7s5P
…ound-2-cmtps4 # Conflicts: # CHANGELOG.md
A dunder owner related to any bare `Cache(` in a test, so a same-named class imported from another module, or no import at all, read as a constructor call. The class must now be imported from the owner's module or a package above it, renamed from there, or reached as a member of such a module. The multi-line def header span now ends on the first line where brackets balance, ignores trailing comments, and yields no span when that line does not end in `:`, so it never reaches into the body. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Np4sJkq1jfbMTLg3Uz7s5P
…ound-2-cmtps4 # Conflicts: # CHANGELOG.md
The member-access branch matched any module whose last segment equals the owner file's stem, so `from other import cache; cache.Cache(3)` still read as a constructor call. The dunder path now checks the import's full dotted module against the owner's module paths (and their suffixes, for import roots other than the repository root or `src`), and never treats the bare `src` root as a package. A star import from the owner module binds the class by name. A test that names the class through an import the adapter does not read (inside `try:`) now yields the `dynamic_dispatch` limit rather than a `no_static_path` claim. The structural-header check reads the added line's own text first and the span walk no longer collects every source line (review feedback). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Np4sJkq1jfbMTLg3Uz7s5P
The diff walk looked up the added line with `lines().nth` and walked the source from the start for every structural-looking added line. It now checks the added line's own text and caches the owner's header span in a map built once per changed file (review feedback). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Np4sJkq1jfbMTLg3Uz7s5P
…ound-2-cmtps4 # Conflicts: # CHANGELOG.md
origin/main (7fb7353, #4635) leaves typescript/mod.rs unsorted, so `cargo fmt --check` fails, and calls the test-only `line_for_offset` from `tests_extract.rs`, so the lib build fails. Same change as #4673's combined-tree repair: sort `module_entries` and resolve the computed-title line through `SourceText`. No-op once main carries it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Np4sJkq1jfbMTLg3Uz7s5P
|
CI on cb89f9c failed in I ported the same repair #4673 carries into ed75094: Generated by Claude Code |
…ound-2-cmtps4 # Conflicts: # CHANGELOG.md
The previous commit also accepted trailing parts of the owner's module path, so `from collections import OrderedDict` (the standard library) related to a `src/mylib/collections.py` owner as `constructor_call`, and `util.Cache(` related to `src/pkg/util/cache.py`. Only the owner's own module paths and their packages count now. An owner under another import root (`lib/`) loses the relation and falls to the non-actionable `dynamic_dispatch` limit. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Np4sJkq1jfbMTLg3Uz7s5P
…ound-2-cmtps4 # Conflicts: # CHANGELOG.md
…ound-2-cmtps4 # Conflicts: # crates/ripr/src/analysis/language/python.rs
…ound-2-cmtps4 # Conflicts: # CHANGELOG.md
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
| if no_behavior.structural_def_header_line | ||
| && old_line_text.is_none_or(is_structural_def_header_text) | ||
| { | ||
| return None; |
There was a problem hiding this comment.
🔴 Changed function signatures disappear from analysis
When key, becomes value, in a multi-line signature, structural_def_header_line suppresses the change. Both lines pass is_structural_def_header_text, although callers using key= now fail without a probe.
Learn more
Diff mode classifies added lines after pairing each with an old line at the same new-side position. The structural guard tests each side independently, so two different parameter names both qualify as structural. A signature rename is executable behavior: keyword callers can fail even if the method body never changes. The same issue affects moving parameter names or changing def to async def in a multi-line header.
Example: Change def f(\n key,\n): to def f(\n value,\n):. An existing f(key=1) now raises TypeError, but the changed parameter line produces no probe.
Recommended fix: Compare a parsed old and new signature or their runtime-significant skeletons before suppressing paired header lines. Suppress only truly equivalent signature reflows; retain changes to parameter names, ordering, function names, async status and defaults. Add a diff-mode negative test for a changed keyword parameter.
Was this helpful? React with 👍 or 👎 to provide feedback.
| if matches!( | ||
| owner.name.as_str(), | ||
| "__init__" | "__new__" | "__post_init__" | ||
| ) { | ||
| PythonRelationKind::ConstructorCall | ||
| } else { |
There was a problem hiding this comment.
🔴 Constructor tests falsely expose unexercised defaults
When __init__ changes a default, ConstructorCall can credit exposed from tests passing that argument explicitly. changed_default_overridden_params skips methods, so those tests never exercise the changed default.
Learn more
Constructor relations now make Class(...) an oracle-eligible test of the class's __init__ method. The classifier credits a strong aligned oracle as exposed unless its changed-default check detects that every related call binds the changed parameter. That check exits immediately for methods, so the new constructor relation exposes a gap previously masked by the lack of a constructor link. It also cannot parse a standalone parameter line of a multi-line header as a complete signature.
Example: class C: def __init__(self, flag=False): self.flag = flag changes its default to True; the only test asserts C(flag=False).flag == False. The test passes after mutating the default back to False, yet the constructor relation can credit it as exposed.
Recommended fix: Extend the changed-default gate to constructor-bound __init__ calls and parse complete signatures across lines. Require a strong reaching test that omits the changed argument before crediting default changes. Exercise both one-line and multi-line signatures with an explicitly passed argument in regression tests.
Was this helpful? React with 👍 or 👎 to provide feedback.
| if contains_call_name(body, &owner.qualified_name) | ||
| || contains_any_attribute_call(body, &owner.name) | ||
| { | ||
| return Some(PythonRelationKind::SyntacticCall); |
There was a problem hiding this comment.
🟡 Unrelated dunder calls receive direct test credit
When a test references Cache but calls other.__eq__(...), contains_any_attribute_call marks Cache.__eq__ directly related. The receiver never binds to Cache, so unrelated assertions gain oracle credit.
Learn more
The dunder matcher first establishes that the test mentions an imported owner class, then accepts any attribute call sharing the changed method name. That import does not establish the receiver of a later attribute call. PythonRelationKind::SyntacticCall is oracle-eligible, so this path can promote an unrelated test instead of leaving it uncertain.
Example: A test imports Cache, stores it in a registry, then asserts a result from Other().__eq__(x). A change to Cache.__eq__ acquires that test as a syntactic caller even though the explicit call targets Other.
Recommended fix: Require a receiver statically bound to the imported class for direct dunder credit. Keep unresolved explicit attribute calls uncertain rather than promoting them to SyntacticCall; add a test that imports the owner but invokes the same dunder on a different class.
Was this helpful? React with 👍 or 👎 to provide feedback.
| fn imports_owner_class(import: &PythonImport, owner: &PythonOwner, class: &str) -> bool { | ||
| (import.imported == class || import.imported == "*") | ||
| && module_contains_owner(&import.source_module, owner) | ||
| } |
There was a problem hiding this comment.
🟡 Package exports can credit the wrong class
When pkg exports a different Cache, module_contains_owner still treats from pkg import Cache as pkg.cache.Cache. Tests constructing the exported class then credit the changed class's dunder methods.
Learn more
A class imported from an ancestor package need not originate in the owner's module. The new module-prefix check accepts every package above that file without inspecting its initializer. This makes an import of an unrelated same-named class look like a constructor of the changed class, and ConstructorCall is oracle-eligible.
Example: pkg/cache.py defines Cache, while pkg/__init__.py exports Cache from pkg/other.py. A test using from pkg import Cache; Cache() relates to pkg/cache.py::Cache.__init__, which it never calls.
Recommended fix: For ancestor-package imports, use the existing package re-export authority to verify the class binding and refuse ambiguous bindings. Keep a direct from pkg.cache import Cache match without that extra step; test a package exporting a sibling same-named class.
Was this helpful? React with 👍 or 👎 to provide feedback.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 50b285a642
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if no_behavior.structural_def_header_line | ||
| && old_line_text.is_none_or(is_structural_def_header_text) | ||
| { | ||
| return None; |
There was a problem hiding this comment.
Preserve probes for signature-changing parameter lines
Failure mode: when a multi-line signature adds a required parameter or changes key, to item,, the new line is structural and the old line is either absent or also structural, so this branch returns None even though the callable's runtime signature changed. Why here: this silently drops behavior that tests may need to discriminate, contrary to the evidence-promotion requirement to analyze changed behavior first. Fix direction: suppress only unchanged/reflowed signature components by comparing parsed old and new signatures; retain probes for added, removed, renamed, or reordered parameters. Validation: add diff-mode controls for an added parameter and key, → item,, then run cargo test -p ripr --lib analysis::language::python. Confidence: High.
AGENTS.md reference: AGENTS.md:L226-L230
Useful? React with 👍 / 👎.
| fn imports_owner_class(import: &PythonImport, owner: &PythonOwner, class: &str) -> bool { | ||
| (import.imported == class || import.imported == "*") | ||
| && module_contains_owner(&import.source_module, owner) |
There was a problem hiding this comment.
Resolve package re-exports before relating classes
Failure mode: for an owner in src/pkg/cache.py, this accepts from pkg import Cache merely because pkg prefixes the owner module, even when pkg/__init__.py does not re-export that class or binds an unrelated Cache; the resulting constructor_call is oracle-eligible and can falsely promote the method. Why here: the repository already has reexports.rs to verify package identity, and package-name coincidence is not owner identity. Fix direction: accept the defining module directly, but require the containing class's verified re-export metadata for package prefixes. Validation: add an end-to-end fixture where pkg/__init__.py defines another Cache and confirm the test remains unrelated. Confidence: High.
AGENTS.md reference: AGENTS.md:L231-L236
Useful? React with 👍 / 👎.
| if matches!( | ||
| owner.name.as_str(), | ||
| "__init__" | "__new__" | "__post_init__" | ||
| ) { | ||
| PythonRelationKind::ConstructorCall |
There was a problem hiding this comment.
Do not treat every post_init as a constructor call
Failure mode: ordinary Python construction automatically invokes __new__ and __init__, but __post_init__ is only called when generated behavior such as a dataclass initializer explicitly does so; a plain class can define __post_init__ without Class() ever reaching it. Marking every construction as ConstructorCall makes the relation oracle-eligible and can falsely credit a dormant method. Fix direction: require syntax-backed dataclass/generated-init evidence or an explicit call; otherwise keep the relation uncertain. Validation: add a plain-class fixture that constructs the class but never calls __post_init__, plus a dataclass control, and run the focused Python analyzer tests. Confidence: High.
AGENTS.md reference: AGENTS.md:L231-L236
Useful? React with 👍 / 👎.
| if contains_call_name(body, &owner.qualified_name) | ||
| || contains_any_attribute_call(body, &owner.name) | ||
| { | ||
| return Some(PythonRelationKind::SyntacticCall); |
There was a problem hiding this comment.
Bind explicit dunder calls to the owner receiver
Failure mode: once a test references the owner class anywhere, any call such as other.__eq__(...) satisfies contains_any_attribute_call and becomes a strong SyntacticCall for Owner.__eq__, even though the receiver is unrelated. This can silently supply another owner's oracle. Fix direction: reserve the strong relation for Owner.__eq__(...) or a receiver proven to be constructed/bound from Owner; otherwise retain an uncertain relation. Validation: add a mixed-receiver test that constructs the owner but explicitly calls the same dunder on another class, and assert it is not oracle-eligible. Confidence: High.
AGENTS.md reference: AGENTS.md:L231-L236
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- Lane ub-worker-handoff scope (JS-backed memory, async, GC, detach, transfer) does not intersect this PR. All changed surfaces are Rust analyzer code and markdown specs; no JS, no worker boundaries, no transferable objects, no postMessage/structured-clone, no WeakRef/FinalizationRegistry, no ArrayBuffer transfer. Reporting scope-out rather than a no-op approval.
- OwnerKind restriction in dunder_method_class (Method|ClassMethod only) silently routes free
def __init__(...)outside a class to the legacy body_calls_owner path; a free dunder is unusual but not impossible, and the new spec clause says 'dunder method owner' without qualifying. Not exercised by fixtures. Resolved-check: spec text 'dunder method owner' arguably implies a method, so behavior is defensible, but the spec could say so explicitly.
Verification questions
- Confirm diff_mode_emits_no_probe_for_structural_def_header_lines asserts None/old=key=None only; missing direct assert that old=key, paired with new=key: int, also suppresses (reflow symmetry).
Refuted
- A dunder owner's class might leak across worker/async boundaries via a captured reference, requiring a structured-clone or transfer-aware analysis.; refuted because: This diff is a static Rust analyzer for Python and Rust source files. There is no JS runtime, no worker postMessage, no transferable buffer, and no async JS boundary. The 'async' in the diff refers to Python's
async defkeyword, which is parsed as a header-prefix check, not JS event-loop ordering. - ReachSweep now retains multiple FunctionSummary references per name; a later push/pop could invalidate the returned slice and cause UAF or OOB reads on FunctionSummary fields.; refuted because: Vec<&'a FunctionSummary> only stores references borrowed from prod_fns, which the walk does not mutate. ReachSweep carries no &mut prod_fns path; the outer API passes prod_fns as &[&'a FunctionSummary] and the BFS reads through immutable refs. No interior mutability, no UnsafeCell, no drop-during-iteration risk.
- implicit_dunder_dispatch_limit fires for every dunder owner with no related test, inflating static_unknown across all workspaces.; refuted because: Limit is gated by dunder_method_class (dunder + Method|ClassMethod) AND by at least one test whose imports include the owner module/class or whose body names the class. Unrelated-tests control in unbound_dunder_owner_is_a_dynamic_dispatch_limit_not_no_static_path asserts NoStaticPath when no test imports or names the class.
Parked follow-ups
- PR body Claim Boundary records a known precision cost: attrs 862696a line 2513 default
alias_is_default=None,survives every mutation because every test passes the argument. This is the pre-existing one-line multi-default gap; the constructor relation exposes it on init. Parked, not broadened.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Requested by Steven · project thread
Summary
Before: on real OSS bug fixes, Python dunder owners produced wrong signals.
LowerBound.__init__(packaging 55cbf1b) was related to tests that define their own helper class withdef __init__or callsuper().__init__, so it readstatic_unknownfrom an unrelated test'smonkeypatch.Cache.__setitem__andTLRUCache.__setitem__(cachetools 39b31bc, c0fdf6a) readno_static_pathon 21 probes. The projects' own suites kill every mutant of those flagged lines.After: a dunder owner relates only through a reference to its class. Constructing the class relates
__init__,__new__and__post_init__asconstructor_call(oracle-eligible); other dunders relate asdunder_protocol(uncertain, so at mostweakly_exposed). A dunder owner with no related test, whose class or module the tests import, readsstatic_unknownwith thedynamic_dispatchlimit. Adef name(/class name(header in a test is no longer read as a call ofname.Rust (second commit): the bounded transitive-reach walk that names a limitation on
no_static_pathfindings expanded only the first function of each name. jiter's parser callsdecodeon a generic decoder and onlyStringDecoder::decodecalls the changeddecode_to_tape, so 23 jiter findings (a05dc81, 9c3d0a5) and 6 indexmap findings (ddb0316) read a silentno_static_path. The walk now follows every same-named function; classification is unchanged (RIPR-SPEC-0114), the findings now name the unresolved path and a witness test.Python (third commit): the reflowed lines of a multi-line
defheader (self,,key,,*,,):,) -> None:) carry no behavior and no longer get a probe. A parameter default or an annotation that calls code keeps its probe. cachetools c0fdf6a drops from 13 to 9 probes.Review fixes (fourth commit): the owner's class must be imported from the owner's module or a package above it (
from pkg import Cache,import pkg; pkg.Cache(), renamed from there, or reached as a module member. A same-named class from another module, or a bare unimportedCache, no longer relates. The header span ends on the first line where brackets balance, ignores trailing comments, and never reaches the body.Second review round (fifth commit): a module reached by member access must match the owner's module by its full dotted path (
from other import cache; cache.Cache(no longer relates), andsrcalone is not a package. A star import from the owner module binds the class. A test that names the class through an import the adapter does not read (try: from pkg import Cache) gives thedynamic_dispatchlimit instead ofno_static_path.Exact-head review (seventh commit): only the owner's own module paths count, never a trailing part of one, so the standard library's
collections.OrderedDictno longer relates to asrc/mylib/collections.pyowner. An owner under another import root (lib/pkg/cache.py) loses its relation and gets the non-actionable limit. Known precision cost: any test that names the class keeps a dunder owner atstatic_unknownrather thanno_static_path(fail-closed direction). The per-owner header span is cached once per file. CodeRabbit's performance finding is fixed (added-line text checked first, lazy span walk); its annotation finding is answered on the thread (#1289 rule).How:
related_test_relationroutes dunder method owners todunder_method_relation, which requirestest_references_owner_class(import provenance) before any call shape counts.multi_line_def_header_span, computed once per owner per changed file, gates the diff-mode probe throughPythonNoBehaviorContext.implicit_dunder_dispatch_limitis chained afterstatic_limit_for_changein both the diff (classify.rs) and repo (repo/evidence.rs) paths.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Spec: RIPR-SPEC-0028 (Python preview static facts), relation rules updated.
Governing issue or accepted claim: 0.11 accuracy replay round two (project thread above); round-one ledger
accuracy/2026-09-28-oss-replay-ledger.md.Acceptance delta (one sentence): Python dunder owners relate through their class, not through the shared dunder name, and the Rust reach walk no longer drops same-named functions.
Candidate Relationships
Candidate branch:
claude/oss-accuracy-round-2-cmtps4. No stack parent. Searched open PRs: #4499 (name-only related tests supplying the discriminator) touches relation strength generally, not dunder routing; no equivalent PR.Scope
classify/transitive_reach.rs), limitation only.Scope Classification
Production delta: dunder owner relation routing with import provenance; def/class headers are not calls; implicit-dunder
dynamic_dispatchlimit; no probe for structural multi-line header lines; Rust reach walk follows same-named functions.Single acceptance criterion: packaging 55cbf1b and cachetools 39b31bc/c0fdf6a no longer report
no_static_pathor an unrelated-test relation on lines their suites discriminate.Non-goals: descriptor dunders on private classes no test imports (
_DescriptorBase.__get__, cachetools 57d2e48) stayno_static_path; changed defaults inside multi-linedefheaders (see Claim Boundary); nested-class dunders (ledger P6).Support-tier Impact
Policy Impact
Proof
given_same_named_functions_then_the_walk_follows_each_of_themfails when the index keeps only the first function per name.dunder_owner_relates_by_owner_class_not_by_shared_dunder_name,a_def_or_class_header_is_not_a_call_of_that_name,unbound_dunder_owner_is_a_dynamic_dispatch_limit_not_no_static_path,dunder_owner_needs_its_class_imported_from_the_owner_package,structural_lines_of_a_multi_line_def_header_carry_no_behavior,diff_mode_emits_no_probe_for_structural_def_header_lines. Negative experiments: each fails with its production change reverted (the provenance and span tests fail on the third commit's code; the full-path,srcandtry:cases fail with the fifth commit's clauses removed; the stdlib-shadow and middle-segment cases fail with suffix matching restored).ripr check --base C^ --format json), each confirmed by mutating the flagged line and running the project's suite:_ranges.py:191-192,253-254static_unknown, related totest_glibc_version_string,test_warnweakly_exposed, related totest_lower_spellings_are_one_boundRequirement.__init__test_glibc_version_stringRequirementCache.__setitem__no_static_pathstatic_unknown(dynamic_dispatch)TLRUCache.__setitem__no_static_pathstatic_unknown(dynamic_dispatch); 4 structural header lines emit no probe (9 before main's #4767 dropped two more quiet lines)Attribute.__init__weakly_exposedexposedon the merged head (line 2551 now has no probe after main's #4767)string_decoder.rs:157-165no_static_path, no limitationno_static_path+rust_integration_public_api_path_unresolved, witnessinvalid_string_controlsdisjoint.rsrust_transitive_reach_unresolvedidx >= len→>survives (equivalent: unreachable guard)Claim Boundary
May claim: dunder owners no longer relate through the shared dunder name, and a class-importing workspace no longer gets
no_static_pathon its dunders.Must not claim: exact exposure for multi-line
defheaders. attrs 862696a line 2513 (alias_is_default=None,, a new parameter default inside a multi-line__init__header) now readsexposed, but mutating the default toTruesurvives because every test passes the argument. This is the pre-existing multi-line header gap (the changed-default guard only reads one-line headers, for any owner); the constructor relation exposes it on__init__. Recorded in the replay ledger as a follow-up.Merge note: ed75094 ported #4673's
typescript/rustfmt and lib-build repair while main was broken; after #4673 landed it is a no-op (typescript/equals main).Rollback
Revert the squash commit; no schema, output-contract or golden changes.
Spec-Test-Code Traceability
crates/ripr/src/analysis/language/python/tests.rs(six tests above),classify/transitive_reach.rspython/related_tests.rs,python/static_limits.rs,python/classify.rs,python/no_behavior.rs,python.rs,python/repo/evidence.rs,classify/transitive_reach.rsStatic Language Check
killed,survived,untested,proven, andadequate.CI Economics
n/a
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
cargo fmt --checkcargo xtask check-static-language(via precommit)🤖 Generated with Claude Code
https://claude.ai/code/session_01Np4sJkq1jfbMTLg3Uz7s5P