Repository navigation
fix(analysis): retract unused SeamKind ↔ ProbeFamily crosswalk (#3039) - #3130
Conversation
PR #3016 added a test-gated SeamKind <-> ProbeFamily crosswalk for #1937, but no production consumer exists and the semantic audit shows none can: preview languages keep deliberate per-language behavior-kind vocabularies (Python exception_path / field_value / call_or_output_effect, Perl BehaviorHint, hashed TypeScript gap IDs), the families preview adapters produce most (StaticUnknown, CallDeletion) map to None, and the headline CallPresence -> CallDeletion mapping is wrong by naming similarity (presence of a call site vs diff-level removed-call detection). Retract the crosswalk (Outcome B), document SeamKind as Rust-only, and record the decision in ARCHITECTURE_STATE.md and LEARNINGS.md. Preview repair routes already fail closed through the shared gap-record validator; no preview finding can become repair-ready via shape mapping.
|
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 reached
Next review available in: 4 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
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. Comment |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Exact-head review record (review-pr) — held for the release freeze, not a merge signal:
reviewed_head_sha: 917d3e0
integration_basis: origin/main c8e3e18
claim_boundary: Outcome B retraction per #3039 — remove the unused SeamKind↔ProbeFamily crosswalk, document SeamKind as Rust-only; no behavior change
changed_surfaces_and_semantic_owners_inspected: crates/ripr/src/analysis/seams.rs (crosswalk removal + Rust-only doc), docs/ARCHITECTURE_STATE.md, docs/LEARNINGS.md
blocking_findings: none
non_blocking_suggestions: pre-existing adjacent nit not introduced here — ARCHITECTURE_STATE.md "Perl has its own OracleKind/OracleStrength (12/5 vs domain 9/6)" undercounts Perl kinds (13 as of main); left untouched to keep this diff minimal
refuted_or_stale_findings: none
proof_and_ci_observed: reviewer-verified at the exact head — the removed functions were #[cfg(test)]-gated (dead_code lint forced the gate), so no production consumer could exist; the audited CallPresence→CallDeletion→None lossy leg is present in the removed code exactly as described; cargo test -p ripr --lib analysis::seams 10/10 and cargo xtask goldens check exit 0 at 917d3e0; builder full suite 4154/4154, fixtures exit 0, clippy/fmt/check-static-language/check-doc-index clean
proof_or_review_missing: required CI lane pending on this head; merge waits for the freeze lift regardless
affected_currentness_dimensions: none since push
residual_assumptions_and_non_claims: no new typed-limitation code was needed (no site requests SeamKind from a preview finding; preview repair routes already fail closed through the shared packet validator); #1937 closes only when its outcome branch is reconciled after merge
disposition: REVIEW_READY (merge held by the 0.11 release transaction freeze)
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 917d3e0116
ℹ️ 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".
|
CI update: required check Ripr Rust Small Result is SUCCESS on the reviewed head 917d3e0 (all lanes green or intentionally skipped). The PR is review-complete and CI-green; merge remains held only by the 0.11 release transaction freeze. |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm sibling-path calibration: lane confirmed production SeamKind sites (repair_route.rs, test_grip_evidence.rs, evidence_record.rs, agent_seam_packets.rs) plus seam_inventory.rs producer; preview sites consume ProbeFamily directly or per-language vocab.
- Confirm claim that preview languages do not consume SeamKind is testable by grep for SeamKind references in non-seam_inventory paths.
- Confirm source-route truth of 'no production consumer' claim depends on a complete grep over the workspace for SeamKind and ProbeFamily references; PR body audit is plausible but not a witnessed receipt.
Refuted
- Retraction might break preview-language repair routes that secretly depended on the crosswalk; refuted because: PR body audits every preview projection (typescript_packet_projection.rs, perl_gap_record_projection.rs) and confirms they consume ProbeFamily or per-language vocab, never SeamKind; gap IDs are per-language hashed or per-language behavior-kind strings with no SeamKind segment.
- Removing the crosswalk breaks a latent but legitimate future consumer wiring SeamKind into preview repair routes; refuted because: No production site requests SeamKind from a preview finding; preview repair routes already fail closed on typed preconditions via validate_agent_gap_record_packet; retraction is correct per #3039 audit. Gap identity strings (Python exception_path, TS hashes) are pinned in goldens and unaffected.
Parked follow-ups
- Non-blocking nit from prior reviewer: ARCHITECTURE_STATE.md 'Perl has its own OracleKind/OracleStrength (12/5 vs domain 9/6)' undercounts Perl kinds (13 as of main) - not introduced by this diff, intentionally untouched.
- artifact-verifier failed with exit code 2; for a pure-dead-code-removal diff this likely reflects an unrelated verifier quirk (not a PR-introduced regression), but the receipt is missing for full trust. Parked, not blocking.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- artifact-verifier failed with exit 2 — non-blocking but evidence gap; lane defers to compiler to assess impact on review packet.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Multi-angle review: the patch is semantically coherent and the hosted proof is green. Scope review: it removes only cfg(test)-only crosswalk code and updates the two architecture records; no production identity, projection, or repair-route consumer changes. Taxonomy review: the prior CallPresence→CallDeletion mapping was substantively wrong, and the retained documentation correctly records the vocabularies as intentionally divergent rather than implying a false canonical bridge. Regression review: the remaining risk is future code assuming a crosswalk exists; the updated SeamKind and architecture documentation make that boundary explicit, while existing golden/fixture/clippy checks pass. No change requested.
|
Release hold disposition (2026-08-11): this PR is outside the selected 0.11.0 transaction. It is not one of the required W4 proof-oracle repairs or the post-W3 recovery lane, and it was not included in rejected W3 ( |
|
Correction to the prior hold comment: this PR remains open. It is still outside the pinned 0.11.0 candidate and must not merge during the release hold, but its branch is intentionally preserved in its current PR for post-K/back-sync reopening or restacking. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Exact-head review — REVIEW_READY
reviewed_head_sha: 6fa306db9f0b56a675294418c884af17427b314b
integration_basis: main (mergeable: MERGEABLE)
claim_boundary: retract the test-only, unused SeamKind ↔ ProbeFamily crosswalk (#3039);
document SeamKind as Rust-only. No production behavior change.
changed_surfaces_and_semantic_owners_inspected:
- crates/ripr/src/analysis/seams.rs (SeamKind owner): removes seam_kind_from_probe_family,
probe_family_from_seam_kind, and crosswalk_tests; adds Rust-only-by-decision doc comment.
- docs/ARCHITECTURE_STATE.md: divergence note and #1937 item rewritten to the retract decision.
- docs/LEARNINGS.md: new 2026-08-10 entry superseding the 2026-07-19 "canonical crosswalk"
suggestion (append-only convention preserved; historical entry intentionally untouched).
blocking_findings: none
non_blocking_suggestions: none
refuted_or_stale_findings: none current (prior review finding already corrected; 0 unresolved threads)
proof_and_ci_observed:
- Exact-head checks terminal: Ripr Rust Small (GitHub Hosted, 13m), rust-tests-junit,
rust-coverage, ub-review, cargo-deny, dependency-review, source-of-truth, pr-plan,
codecov/patch — all pass; unrouted lanes (windows-advisory, vscode, future-clippy, msrv)
skipped by routing, which is expected for this surface.
- Consumer audit: workspace-wide grep for both crosswalk functions on main finds only the
definitions and their own tests inside seams.rs — no production or test consumer elsewhere.
- Removed code was #[cfg(test)]-gated, so no production output, golden, or schema surface can
drift; full workspace test lanes on the exact head are the discriminating proof.
proof_or_review_missing: none for this claim boundary
affected_currentness_dimensions: production implementation (subtractive, test-only), public claim
(docs updated in the same diff); other dimensions unchanged.
residual_assumptions_and_non_claims:
- #1937 remains open as vocabulary-divergence tracking; this PR closes only the crosswalk
mechanism, documented in ARCHITECTURE_STATE.md item 7.
- Preview-language per-language vocabularies remain intentionally divergent.
disposition: REVIEW_READY
Mutation challenge: the only exercisers of the removed functions were the removed tests; a wrong reintroduction would fail dead_code (test-gated, no consumer), and the vocabulary-divergence claim was verified against the Python (exception_path) and TS (hashed gap IDs) producers named in the PR body. This PR is outside the pinned W4 candidate; merging to rolling main does not retarget 0.11.0 (#2379).
* Revert "test(perl): consume one production Perl→domain oracle mapping authority (#3034) (#3126)" This reverts commit c8e3e18. * Revert "docs(agent): align pair-currentness claims with the enforced gates (#3061) (#3121)" This reverts commit f844469. * Revert "test(doctor): retry the transient probe class in the selected-root test (#3073) (#3122)" This reverts commit c425119. * Revert "test(lsp): retain listActionableItems branch/capability mutation receipt (#3032) (#3133)" This reverts commit d9d4630. * Revert "fix(analysis): retract unused SeamKind ↔ ProbeFamily crosswalk (#3039) (#3130)" This reverts commit b8e9d55. * Revert "test(perl): consume one production Perl→domain oracle authority (#3126)" * Revert "docs(agent): align pair-currentness claims with the enforced gates (#3121)" * Revert "test(doctor): retry the transient probe class in the selected-root test (#3122)"
…ntenance; drop a reverted bullet (#12862) The Unreleased bullet for the SeamKind/ProbeFamily crosswalk retraction (PR #3130) described work that PR #3140 undid; the crosswalk is in the tree. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmpSWhdmDkdR31V2a2o
Summary
Chosen outcome: B (retract). Removes the
SeamKind↔ProbeFamilycrosswalk added in #3016 and documentsSeamKindas Rust-only.Why retract rather than integrate
The crosswalk was added as a "canonical bridge" for #1937 but shipped
#[cfg(test)]-gated with no production consumer — and the audit found that no coherent consumer can exist:SeamKindis produced only by the Rust seam-inventory walker (analysis/seam_inventory.rs, overdiscover_rust_files+rust_index) and consumed only byRepoSeam-keyed Rust surfaces (analysis/repair_route.rs,analysis/test_grip_evidence.rs,output/evidence_record.rs,output/agent_seam_packets.rs). Every preview-language consumer (TypeScript classifier + packet projection, Python repair card + canonical gap IDs, Perl gap-record projection) consumesProbeFamilydirectly or its own per-language vocabulary — neverSeamKind. The Rust side buildsSeamKinddirectly from probe shape strings (seam_inventory::seam_kind_from_probe_shape), so it doesn't need the crosswalk either.ProbeFamilyinto per-language behavior-kind strings that do not matchSeamKind::as_str: Python mapsErrorPath → "exception_path",FieldConstruction → "field_value",SideEffect|CallDeletion → "call_or_output_effect"(python_behavior_kind,analysis/language/python.rs:3536); Perl uses its ownBehaviorHint(analysis/language/perl/mod.rs:1940); TypeScript canonical gap IDs are hashed (gap:typescript:typescript_preview:<hash>) with no behavior-kind segment at all. Routing preview findings through the RustSeamKindvocabulary would be a semantic downgrade of identity strings already pinned in goldens — not a unification.Nonefor what preview languages produce most.StaticUnknown(the TS parse fallback and Perl default) andCallDeletionboth map toNone. A bridge that fails for the common cases is not a bridge.Semantic audit (per mapping pair)
Predicate ↔ PredicateBoundaryif/while/forlines asPredicate; Python gap IDs already render it"predicate_boundary"— via Python's own function, not the crosswalk.ReturnValue ↔ ReturnValuereturnlines in all three preview producers map toReturnValue.ErrorPath ↔ ErrorVariantErrorPathas"exception_path"(exceptions, not Rust error variants); TS renders "thrown or rejected error". The names diverge by design.FieldConstruction ↔ FieldConstruction"field_value"; the Rust name is not the preview identity.SideEffect ↔ SideEffectSideEffectandCallDeletioninto one"call_or_output_effect"bucket; TS projection folds both intoAddBoundaryAssertion.MatchArm ↔ MatchArmswitch/caseclassify asPredicate.CallPresence → CallDeletionCallPresenceis a present call site in Rust production code a test could observe via mock/spy (analysis/seams.rs);CallDeletionis diff-level detection of a removed call (analysis/probes/lexical.rs:19). Presence ≠ deletion; the crosswalk itself documented the round trip as lossy (CallDeletion → None).StaticUnknown → NoneCanonical gap-ID identity: preview gap IDs embed per-language behavior-kind strings (Python) or hashes (TS); none embed
SeamKindstrings, so retraction changes no identity.Actionability / repair-route gates: preview-language repair routes (
output/typescript_packet_projection.rs,output/perl_gap_record_projection.rs) already fail closed on typed preconditions, and the shared validatorvalidate_agent_gap_record_packetremains the only authority for therepair_packet_readyflip. No production site requests aSeamKindfrom a preview finding, so no new typed-limitation code is needed; the existing fail-closed projections are the limitation mechanism, and no preview finding can become repair-ready through shape mapping because none was ever wired to one.Producer meanings: TypeScript (
probe_shape.rs): syntax-firstPredicate/ErrorPath/FieldConstruction/ReturnValue/SideEffect,StaticUnknownfallback on parse failure. Python (python.rs:3430+): same families,Predicatedefault. Perl (perl/mod.rs:552):BehaviorHint→Predicate/ReturnValue/ErrorPath, elseStaticUnknown.Changes
crates/ripr/src/analysis/seams.rs: removedseam_kind_from_probe_family,probe_family_from_seam_kind, andcrosswalk_tests(all#[cfg(test)]-gated, called only from their own tests); documentedSeamKindas Rust-only by decision (fix(analysis): integrate or retract the unused SeamKind and ProbeFamily crosswalk after #3016 #3039) on the enum.docs/ARCHITECTURE_STATE.md: recorded the decision in the divergence bullet and priority item 7.docs/LEARNINGS.md: dated entry recording why the crosswalk was retracted (token-coincidence applied to taxonomy design; divergent vocabularies are deliberate).Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Proof
All commands run in worktree
/tmp/work-3039withRUSTC_WRAPPER="":cargo xtask goldens check— exit 0 before and after (zero drift; removed code was#[cfg(test)]-only)cargo xtask fixtures— exit 0 before and after (zero drift)cargo test -p ripr --lib— exit 0cargo clippy -p ripr --all-targets -- -D warnings— exit 0cargo fmt -p ripr— cleancargo xtask check-static-language— exit 0cargo xtask check-doc-index— exit 0Non-goals
ProbeFamily, the per-language behavior-kind vocabularies, or any preview-language classifier, projection, or golden output.SeamKindfrom a preview finding; preview repair routes already fail closed.OracleKind/OracleStrengthreconciliation (consistency(analysis): Perl defines its own OracleKind/OracleStrength — separate from the domain enum #1938 follow-ups) and run-status dedup (fix(lsp): workspace_status_run_status and snapshot_run_status duplicated with drift — gap_artifacts check missing from one #1939) are out of scope.Candidate head:
917d3e01160866e118fee1354ce871d81a047d9d