Repository navigation
fix(classify): bind uniqueness-stop entry to the hop function (#7268) - #7286
Conversation
A type-qualified sibling of the uniqueness-stop hop no longer rewrites the owner's no_static_path. Bare parse( and a call that targets the hop still enter; relation stays refused. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Summary by CodeRabbit
WalkthroughThe change updates uniqueness-stop helper-chain entry detection to distinguish a test call to the resolved hop from a call to a qualified sibling. Tests verify the classifier outcomes for sibling, bare, and hop calls. The specification, learning, and changelog record the distinction. ChangesUniqueness-stop hop entry
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to No merge-blocking issue is identified; the change is ready for normal validation. Pre-merge checks |
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
Author self-review (pre-publication)
GitHub cannot request changes from the author; this is a COMMENT disposition, not approval.
reviewed_head_sha: 725adc6d57acf7983f1389946e2e2881d0c453f4
integration_basis: origin/main 7aafeee19229d0b1243e7704ced8135d80d2c053
claim_boundary: a type-qualified sibling of the uniqueness-stop hop does not rewrite the owner's no_static_path. Must not claim runtime kill/survive, that static_unknown is adequate, that HelperOwnerCall is established, #7021, or #7272.
changed_surfaces_and_semantic_owners_inspected:
- analysis/classify/helper_transfer.rs::ambiguous_helper_entry_called_by_tests (authority)
- analysis/classifier.rs::withhold_helper_uniqueness_as_unknown (consumer; class rewrite only)
- RIPR-SPEC-0159, LEARNINGS #7080 entry, traceability, changelog fragment
blocking_findings: none on source/oracle for this head
non_blocking_suggestions: none in-claim
refuted_or_stale_findings: none
proof_and_ci_observed:
- intended red: B::parse credited Some("parse") / StaticUnknown before the bind
- cargo test -p ripr --lib -- uniqueness_stop given_helper_chain_refused: 25 passed (#7268 pins + #7080/#7270/extras/wrapper)
- cargo xtask precommit: pass (head 725adc6d57)
- precommit-v2: cargo clippy -p ripr --all-targets and -p xtask --all-targets: pass
proof_or_review_missing: hosted exact-head required checks and artifacts (not yet observed on this draft-to-ready cycle)
affected_currentness_dimensions: production implementation, test stimulus, test oracle, public claim (spec/learnings/changelog), generated relationships (traceability)
residual_assumptions_and_non_claims:
- Unknown hop impl_context still fail-opens TypePath via tests_call_function; the claim requires qualification that establishes a specific function (Impl { A } vs Impl { B }).
- Empty-hop uniqueness stop (owner name itself non-unique) still uses tests_call_name; out of #7268 acceptance.
- Relation stays refused (test_call_is_shadowed / not a free-function site). Not #7272 reach rewrite.
disposition: REVIEW_INCOMPLETE
Lanes
- Authority: stop-name bind lives in
helper_transfer; extras wrappers already usedtests_call_function. No parallel validator. Did not reusetest_call_is_shadowed. - Oracle: sibling pin fails on the old
tests_call_namepath; Free fallback is pinned by Impl-hop + bareparse(; hop callA::parsestaysstatic_unknown; unique wrapper / receiver /r#/ extras sibling retained. - Rendered behavior: classification class + missing text +
HelperOwnerCallabsence. No JSON/schema/output-contract change. - Contract parity: SPEC-0159 and LEARNINGS updated; no honesty corpus.json (fenced).
- Platform/package/security: not engaged.
- Exact-head CI: missing until Ready-triggered hosted jobs finish.
Merge convergence waits on published-head review after required checks.
|
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 725adc6d57
ℹ️ 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".
There was a problem hiding this comment.
Confirmed findings
- No native/unsafe seam introduced by this PR. All borrow lifetimes on uniqueness_stop_hop/tests_call_function are bounded to the boolean check and terminate before the Option<&'a str> return. Lane has no actionable memory-lifetime finding.
Verification questions
- Confirm sister branches in related_tests/activation/owner_pin/reveal unchanged; PR non-goals scope to a single seam. Adjacent systems not enumerated exhaustively.
Refuted
- Corpus.json gap (Codex P1): the confirmed false-promotion must be in fixtures/evidence-promotion-honesty-corpus/corpus.json, validated with cargo xtask check-evidence-promotion-honesty, per AGENTS.md L247-L250.; refuted because: PR body non-goals fence honesty corpus.json; AGENTS.md corpus rule targets golden-promotion surfaces (re-blessable exposure evidence), not a FunctionSummary-constructed index whose discriminator is uniqueness_qualified_hop_index / uniqueness_stop_does_not_credit_qualified_sibling_of_the_hop. Author reply on the seeded thread documents this; #7263 extras-wrapper sibling landed without a corpus row on the same fence. Not a test-oracle weakness.
- The hop bind silently over-credits B::parse by checking tests_call_function against the hop FunctionSummary.; refuted because: uniqueness_stop_hop returns the hop whose caller.name matches stop_name. With distinct Impl contexts (A vs B), tests_call_function for the hop only matches tests whose call resolves to A::parse. B::parse(...) does not resolve to the A-typed hop summary; pinned by uniqueness_qualified_hop_index test. Bare parse( falls through to tests_call_unresolved_name which only matches NamedEntryKind::Free; pinned.
- This Rust analyzer change could expose UB via a JS worker handoff, transferable detach, SharedArrayBuffer race, or postMessage structured-clone aliasing.; refuted because: Change is synchronous Rust inside ripr's analyzer; no JS runtime, no wasm-bindgen, no napi, no worker boundary, no transferable, no SharedArrayBuffer, no postMessage, no structuredClone, no Atomics. FunctionSummary -> ExposureClass flow has no spawn/detach lifecycle and no shared mutable state across threads.
- The hop bind could extend the lifetime of tests_call_function's borrow of RustIndex past the function return and dangle the returned &str from uniqueness_refusal_callee.; refuted because: tests_call_function / tests_call_unresolved_name / tests_call_matching take &RustIndex and return bool by value; the temporary borrow ends at end of expression. The returned Option<&'a str> is taken from chain.stop_name which is owned by chain (&'a HelperChain); no aliasing into index data is captured in the returned reference.
- Active-view / resize / detach / ArrayBuffer hazards do not apply to this Rust classifier diff; no JS active-view surface is touched.
- Binding the uniqueness-stop name to hop.caller via FunctionSummary lookups could enable a type-confusion / OOB if the hop list is built from untrusted input; refuted because: Input is the local RustIndex built by ripr's own parser from crate sources; uniqueness_stop_hop only compares String fields (hop.caller.name vs stop_name) and reuses existing equality-tested helpers. No indexing into raw slices, no unsafe, no allocations of attacker-controlled length.
- tests-only proof insufficient; hosted exact-head CI is missing on this published draft.; refuted because: PR body §Proof explicitly lists what the local 25-test command does and does not establish; hosted gate matrix is the required completeness claim and is a human/CI responsibility outside the lane boundary. Claim boundary already self-declares hosted CI is not yet run.
- FunctionSummary reference returned by uniqueness_stop_hop could outlive a re-built index (stale-snapshot analogue); refuted because: &'a FunctionSummary is borrowed from chain: &'a HelperChain; both lifetimes are tied to the same call scope of ambiguous_helper_entry_called_by_tests. tests_call_function/tests_call_unresolved_name/tests_call_name all take &RustIndex fresh; no clone of the FunctionSummary escapes the call. No active-view analogue materializes.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Parked follow-ups
- cargo-test receipt is scheduled-late; from a memory-lifetime angle nothing blocks safe reporting since no unsafe/native code is added.
Closes #7268.
Summary
The uniqueness-stop branch in
ambiguous_helper_entry_called_by_testsusedtests_call_name, a name-level check over every workspace function. WhenA::parsewas the resolved hop that calls uniqueopandB::parsemade the name non-unique, a test that called onlyB::parse(...)credited the hop and rewrote the owner'sno_static_pathtostatic_unknown.This binds that stop-name check to the hop's
FunctionSummarythe same way extras wrappers already usetests_call_function. Bare unresolvedparse(still enters. A call that targets the hop still enters. Relation stays refused.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Proposal: n/a (follow-up finding)
Spec: RIPR-SPEC-0159
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #7268 (depends on #7263 / #7080; builds on #7270 / #7279)
Acceptance delta: a type-qualified sibling of the uniqueness-stop hop does not rewrite the owner's
no_static_path.Candidate Relationships
Candidate branch:
cursor/helper-transfer-uniqueness-stop-7c3aStack parent or prerequisite PR: #7263 (landed), #7279 (landed)
Proposed replacement of PR: none
Acceptance retained from a replaced candidate: none
Scope
One classification honesty seam: uniqueness-stop entry identity for a resolved hop.
Scope Classification
Production delta:
ambiguous_helper_entry_called_by_testsbinds the uniqueness-stop name to the hopFunctionSummarywhen resolution recorded that hop, usingtests_call_functionplus a Free-only unresolved-name fallback.Evidence/support delta:
B::parse(stayno_static_path), bareparse((staystatic_unknown), andA::parse(staystatic_unknown).Single acceptance criterion:
A::parsehops to uniqueop, twinB::parseexists, tests call onlyB::parse(...)→ owner staysno_static_path.Non-goals:
fn r#name) escapes the owner-pin uniqueness gate on the bare call #7021.related_tests.rs,activation.rs,owner_pin.rs,reveal.rs, honestycorpus.json, dx-scoreboard, or feat(check): expose the canonical next action in JSON #7258 surfaces.Support-tier Impact
Policy Impact
Proof
cargo test -p ripr --lib -- uniqueness_stop given_helper_chain_refused -- --test-threads=1Result: 25 passed, including the new #7268 pins and the retained #7080 / #7270 controls.
What the proof establishes:
B::parsedoes not enter the uniqueness rewrite.parse(on an Impl-qualified hop still enters.A::parsestill enters;HelperOwnerCallstays absent.What the proof does not establish:
static_unknown.Claim Boundary
May claim: a type-qualified call to a sibling of the uniqueness-stop hop does not rewrite the owner's
no_static_path.Must not claim: runtime kill/survive; that
static_unknownis adequate; that the helper-chain relation is established; #7021; #7272.Rollback
Revert this commit. Classification of uniqueness-stop hops returns to name-level
tests_call_name.Spec-Test-Code Traceability
docs/specs/RIPR-SPEC-0159-bounded-helper-transfer.mduniqueness_stop_does_not_credit_qualified_sibling_of_the_hop; classify pins for sibling / bare / hopcrates/ripr/src/analysis/classify/helper_transfer.rsdocs/LEARNINGS.md(rust: a helper chain refused for a non-unique entry name reads no_static_path, not static_unknown #7080 entry, finding: uniqueness-stop tests_call_name can credit a qualified sibling of the hop #7268 sibling bind)Static Language Check
killed,survived,untested,proven, andadequate.CI Economics
n/a — ordinary analyzer honesty PR; no workflow or lane change.
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
Focused local proof above.
cargo xtask precommitto follow on this published draft. Hosted merge-gate matrix is the required completeness claim.