Skip to content

fix(analysis): retract unused SeamKind ↔ ProbeFamily crosswalk (#3039) - #3130

Merged
EffortlessSteven merged 2 commits into
mainfrom
fix/3039-seamkind-probefamily-crosswalk
Aug 11, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
fix/3039-seamkind-probefamily-crosswalk

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

Chosen outcome: B (retract). Removes the SeamKind ↔ ProbeFamily crosswalk added in #3016 and documents SeamKind as 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:

  1. No consumer needs it. SeamKind is produced only by the Rust seam-inventory walker (analysis/seam_inventory.rs, over discover_rust_files + rust_index) and consumed only by RepoSeam-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) consumes ProbeFamily directly or its own per-language vocabulary — never SeamKind. The Rust side builds SeamKind directly from probe shape strings (seam_inventory::seam_kind_from_probe_shape), so it doesn't need the crosswalk either.
  2. The vocabularies diverge by design. Preview languages deliberately render ProbeFamily into per-language behavior-kind strings that do not match SeamKind::as_str: Python maps ErrorPath → "exception_path", FieldConstruction → "field_value", SideEffect|CallDeletion → "call_or_output_effect" (python_behavior_kind, analysis/language/python.rs:3536); Perl uses its own BehaviorHint (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 Rust SeamKind vocabulary would be a semantic downgrade of identity strings already pinned in goldens — not a unification.
  3. The bridge returns None for what preview languages produce most. StaticUnknown (the TS parse fallback and Perl default) and CallDeletion both map to None. A bridge that fails for the common cases is not a bridge.
  4. The headline mapping is wrong by naming similarity — the token-coincidence family AGENTS.md warns about, applied to taxonomy design.

Semantic audit (per mapping pair)

Pair Verdict Source-backed reason
Predicate ↔ PredicateBoundary semantically aligned, but unused TS/Python both classify if/while/for lines as Predicate; Python gap IDs already render it "predicate_boundary" — via Python's own function, not the crosswalk.
ReturnValue ↔ ReturnValue semantically aligned, but unused return lines in all three preview producers map to ReturnValue.
ErrorPath ↔ ErrorVariant rejected as canonical Python deliberately renders ErrorPath as "exception_path" (exceptions, not Rust error variants); TS renders "thrown or rejected error". The names diverge by design.
FieldConstruction ↔ FieldConstruction rejected as canonical Python renders it "field_value"; the Rust name is not the preview identity.
SideEffect ↔ SideEffect rejected as canonical Python folds SideEffect and CallDeletion into one "call_or_output_effect" bucket; TS projection folds both into AddBoundaryAssertion.
MatchArm ↔ MatchArm Rust-specific TS has no match-arm production; switch/case classify as Predicate.
CallPresence → CallDeletion rejected — semantically wrong CallPresence is a present call site in Rust production code a test could observe via mock/spy (analysis/seams.rs); CallDeletion is 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 → None correct as a non-mapping But it covers the most common preview outcome, gutting the bridge's usefulness.

Canonical gap-ID identity: preview gap IDs embed per-language behavior-kind strings (Python) or hashes (TS); none embed SeamKind strings, 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 validator validate_agent_gap_record_packet remains the only authority for the repair_packet_ready flip. No production site requests a SeamKind from 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-first Predicate/ErrorPath/FieldConstruction/ReturnValue/SideEffect, StaticUnknown fallback on parse failure. Python (python.rs:3430+): same families, Predicate default. Perl (perl/mod.rs:552): BehaviorHint → Predicate/ReturnValue/ErrorPath, else StaticUnknown.

Changes

  • crates/ripr/src/analysis/seams.rs: removed seam_kind_from_probe_family, probe_family_from_seam_kind, and crosswalk_tests (all #[cfg(test)]-gated, called only from their own tests); documented SeamKind as 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

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Proof

All commands run in worktree /tmp/work-3039 with RUSTC_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 0
  • cargo clippy -p ripr --all-targets -- -D warnings — exit 0
  • cargo fmt -p ripr — clean
  • cargo xtask check-static-language — exit 0
  • cargo xtask check-doc-index — exit 0

Non-goals

Candidate head: 917d3e01160866e118fee1354ce871d81a047d9d

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.
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@EffortlessSteven, you've reached your PR review limit, so we couldn't start this review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 38c612f1-e9ab-41b4-b769-256133a1a911

📥 Commits

Reviewing files that changed from the base of the PR and between c8e3e18 and 6fa306d.

📒 Files selected for processing (3)
  • crates/ripr/src/analysis/seams.rs
  • docs/ARCHITECTURE_STATE.md
  • docs/LEARNINGS.md

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread docs/LEARNINGS.md Resolved
@EffortlessSteven

Copy link
Copy Markdown
Member Author

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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

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 (14ba3a45c633a5dba19c4b3e4acd4add98ff80a8). It must remain out until the history-preserving J/K sync and back-sync complete. Closing this PR only; its branch is retained for reopening/restacking after K.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

@EffortlessSteven
EffortlessSteven merged commit b8e9d55 into main Aug 11, 2026
44 checks passed
@EffortlessSteven
EffortlessSteven deleted the fix/3039-seamkind-probefamily-crosswalk branch August 11, 2026 05:39
EffortlessSteven added a commit that referenced this pull request Aug 11, 2026
* 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)"
EffortlessSteven pushed a commit that referenced this pull request Nov 21, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant