Skip to content

test(cli): pin member-crate qualifier refusal and crate:: layout-class guard (#10948) - #10974

Merged
EffortlessSteven merged 7 commits into
mainfrom
wt/t_2daf58be
Oct 30, 2026
Merged

EffortlessSteven merged 7 commits into
mainfrom
wt/t_2daf58be

Conversation

@effortlesshermes

@effortlesshermes effortlesshermes Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Swarm / Source Boundary

This PR targets EffortlessMetrics/ripr-swarm, the normal development trunk for
trusted same-repo ripr work. Confirm the change belongs here:

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge,
    dependency, or repo-ops development for ripr-swarm
  • repair or follow-up for a same-repo swarm PR
  • swarm-only CI, runner, routing, source-of-truth, or agent-operating
    surface
  • other swarm-scoped work:

If this PR moves crates.io publishing, VS Marketplace publishing, Open VSX
publishing, GitHub Release assets, signing, release environments, or release
secrets, close or retarget it. Those surfaces belong in EffortlessMetrics/ripr
unless a dedicated release-boundary change has already been approved.

Source-of-truth Links

Proposal: none
Spec: none
ADR: none
Plan item: none
Governing issue or accepted claim: #10948 item 6
Acceptance delta (one sentence): CLI-level tests pin the member-crate qualifier non-exposure and pin the observed crate:: rival-shape behavior while the discriminating 6(b) seam stays open on #10948.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): wt/t_2daf58be
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): none
Accepted winner and losing candidate disposition (when decided): none

Name a stack or proposed replacement explicitly. A proposed replacement does
not make its predecessor superseded. Shared files or a shared parent issue
alone do not establish duplication. If the relationship is unknown, record it
as needing reconciliation before disposing of either PR.

Scope

  • New crates/ripr/tests/cli_smoke/qualified_owner_observation.rs with two CLI tests run against the real ripr check binary on scratch single-package fixtures; registers the module in crates/ripr/tests/cli_smoke.rs.

Scope Classification

This PR is scoped by:

  • One production behavior
  • One public contract
  • One architectural seam
  • Docs/spec/test-only evidence package
  • Other:

Production delta:

  • none

Evidence/support delta:

  • an_unbound_member_crate_qualifier_never_exposes: own-crate-name control pins and exposes (exposed, direct_owner_call, strong oracle, no observation miss); pricing::score(..) qualified spelling and use pricing::score; + bare call in a single-package fixture stay related (gap open, oracles visible) but never expose (discriminator weak); the import route additionally pins miss == observation_unconfirmed. Hosted shard 1 on 905f2e3 established the qualified-call shape (related, strong oracle, weakly_exposed); exact-head hosted run 40937870804 on 69b3591: Rust gates success, shards 1-4 success plus shards-verify success, exercising both tests on the exact head.
  • crate_qualified_method_cli_stays_weakly_exposed_on_these_shapes: documented-behavior pins, NOT a discrimination proof. Rival-free baseline, same-Self-type rival-paired, and binary-only phases each assert weakly_exposed + discriminator weak + every related test miss == observation_unconfirmed (paired names both unit and bin, each oracle-visible). Values were exercised against the matching-unchanged-production-source binary (built offline from 9b3adb8; production sources identical at this head) on matching scratch fixtures (each phase ripr check exit 0 — recast asserts only hosted-evidenced + binary-exercised values). The discriminating CLI positive/negative seam for 6(b) stays open on Harden return-value repair-start gates left loose by #10859 #10948; this test must not be read as proving the layout.class guard.

Single acceptance criterion:

Non-goals:

Support-tier Impact

  • none
  • updates docs/status/SUPPORT_TIERS.md
  • changes a README, release, docs, CLI, JSON, editor, CI, or package claim

Claim/proof notes:

  • No user-facing change; test-only.

Policy Impact

  • none
  • doc artifacts
  • CI lane
  • package boundary
  • lint / Clippy
  • no-panic
  • file policy
  • generated artifact
  • dependency
  • process/network

Ledger or exception notes:

  • none

Proof

# commands run
rustfmt --check crates/ripr/tests/cli_smoke/qualified_owner_observation.rs
git push -u origin wt/t_2daf58be

Result, failures, or skipped proof:

  • rustfmt clean on the current head.
  • Exact-head hosted run 40925292507 on 9b3adb8 refuted the prior 6(b) positive predictions (shard 2: rival-free baseline actual weakly_exposed/discriminate-weak/observation_unconfirmed, not exposed; rust-only lane same failure, 597 passed / 1 failed, exit 101) and exact-executable scratch controls on matching fixtures confirmed all three phases weakly_exposed (each ripr check exit 0); the recast pins exactly that observed behavior and leaves the discriminating seam open on Harden return-value repair-start gates left loose by #10859 #10948. Exact-head hosted run 40937870804 on 69b3591 (gh run view exit 0): status completed, conclusion failure, headSha matches. Route/Admit/Docs-Only success, Rust gates success, shards 1-4 success, shards-verify success, CX lanes skipped, Docs Gate skipped; Ripr Rust Small Result failed solely at the final live-eligibility recheck because the two Devin review threads were unresolved at 20:01 UTC. Both threads are now substantively replied (comments 4417314373, 4417315504) and resolved (GraphQL readback isResolved: true for both; head still 69b3591, label merge-ready present, non-Draft). No code change; substantive shard evidence on this head stands green. Next: fresh merge-ready qualification run 40947795510 on the unchanged head 69b3591 (label re-applied after thread dispositions; gh run view exit 0, headSha matches, in_progress).
  • Full local RIPR compilation/test deliberately not run (4 GiB scope / 8 GiB pool constraint per card); heavy proof via repository-hosted qualification on the exact head after publication.
  • No changelog fragment: test-only evidence package, matching the item-7 precedent (test(cli): mask the moved repair start only for the single-start/single-value-gap shape (#10948) #10971, test-only single-file change with no fragment).

Claim Boundary

What may be claimed after this PR? What must not be claimed yet?

  • May claim: the member-crate qualifier guard has a CLI-level regression test; the crate:: rival shapes have documented-behavior pins (observed weakly_exposed, explicitly not a discrimination proof).
  • Must not claim: item 6(b) proven or complete — the discriminating CLI positive/negative seam stays open on Harden return-value repair-start gates left loose by #10859 #10948; reviewed, qualified, or merged; analyzer behavior is unchanged by construction (test-side only) but that is established by review + hosted CI, not by this body.

Rollback

How can this PR be reverted safely?

  • Revert the commits on this branch; only test files are touched.

Spec-Test-Code Traceability

  • Spec: Harden return-value repair-start gates left loose by #10859 #10948 item 6
  • Tests: crates/ripr/tests/cli_smoke/qualified_owner_observation.rs (an_unbound_member_crate_qualifier_never_exposes, crate_qualified_method_cli_stays_weakly_exposed_on_these_shapes)
  • Code: none (test-side only; guards live in crates/ripr/src/analysis/classify/call_identity.rs: own_crate_names_of/MemberCrates::import_names, anchored_rest + CrateLayout::class; pin competition in crates/ripr/src/analysis/classify/owner_pin.rs: other_definition_competes)
  • Golden outputs: none
  • Metrics: none
  • ADR/learning: none

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

Complete this section when the PR changes workflows, policy gates, branch
protection expectations, CI artifacts, report uploads, release checks, or the
cost/posture of existing lanes. Use n/a for ordinary PRs that do not affect
CI behavior.

  • n/a (test-only; no workflow, policy, or lane changes)

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • New non-Rust programming files are allowlisted with owner, surface, and reason.
  • New generated, dependency, process-spawn, or network surfaces are allowlisted with owner and reason.
  • Errors are reported with actionable context.
  • Public JSON/schema changes are documented.

Gates

  • cargo fmt --check
  • cargo check --workspace --all-targets
  • cargo test --workspace
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo doc --workspace --no-deps
  • cargo package -p ripr --list
  • cargo publish -p ripr --dry-run
  • cargo xtask check-static-language
  • cargo xtask check-doc-artifacts
  • cargo xtask check-support-tiers
  • cargo xtask check-no-panic-family
  • cargo xtask check-allow-attributes
  • cargo xtask check-local-context
  • cargo xtask check-file-policy
  • cargo xtask check-covered-by
  • cargo xtask check-generated
  • cargo xtask check-badge-diff-policy
  • cargo xtask check-generated-clean
  • cargo xtask check-dependencies
  • cargo xtask check-process-policy
  • cargo xtask check-network-policy

Extension changes: n/a (no extension changes)

…s guard (#10948)

Single-package CLI coverage for item 6: an unbound member-crate
qualifier (qualified-call and use-import spellings) observes nothing,
and crate::W::dbl observes only from the owner's own crate target with
a same-Self-type rival forcing the layout.class check. Test-side only.
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: ed229036-1e64-4bca-8c09-534beaf88d22

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@effortlesshermes

Copy link
Copy Markdown
Contributor Author

PR-native continuation record (candidate review)

Owner / governing claim: @default / #10948 item 6 (CLI coverage for member-crate qualifier + crate:: layout.class guards; test-side only).
Candidate: PR #10974 / exact head 905f2e3 / basis origin/main 61e9b82 (merge-base equals base; behind-only needs no restack) / squash-merge subject when ready.
Review: substantive exact-head inspection done on 905f2e3 (semantic owners read: own_crate_names_of/MemberCrates::import_names, anchored_rest crate branch + CrateLayout::class, cli_smoke harness; oracle-grip and mutation challenges recorded on the card). No blocking findings from reading. Hosted qualification + reviewer approval still missing.
Validation: rustfmt clean locally; full local RIPR build/test deliberately not run (4 GiB scope / 8 GiB pool constraint on this host); heavy proof via hosted qualification on this exact head (checks running: run 40900168874 etc.).
Dependency: none.
Next: wait for required hosted checks on 905f2e3, then reviewer approval + merge-ready/merge convergence; on failure, repair through the same candidate.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 29, 2026 16:07

@devin-ai-integration devin-ai-integration 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.

Devin Review found 2 potential issues.

Devin Review

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 29, 2026 16:50
…ut overclaim (#10948)

Shard evidence on 905f2e3 showed the unbound pricing:: spelling
relates via the coarse fallback (observe yes, strong oracle) while the
owner-return pin refuses it (discriminator weak, weakly_exposed), and
the crate:: paired phase with the same-Self-type rival is
weakly_exposed rather than exposed. Rework the item-6 CLI tests to pin
that guarded shape: own-crate-name control exposes, unbound spellings
and rival-paired/binary-only phases never expose, with the rival-free
baseline exposing.
@effortlesshermes

Copy link
Copy Markdown
Contributor Author

Rework for hosted merge-ready run 40908543080 (head 905f2e3): both item-6 CLI tests failed on overclaim, not on production behavior.

Shard 1 (an_unbound_member_crate_qualifier_observes_nothing): the unbound pricing::score spelling relates via the coarse related-test fallback (observe=yes, strong oracle, direct_owner_call) while the owner-return pin refuses the unbound qualifier (discriminator weak, weakly_exposed). Source: resolve_qualified leaves a segment bound by nothing ripr reads unsettled (Matches::Any, call_identity.rs); path_reaches_owner admits only own-crate names from MemberCrates::import_names (owner_pin.rs library_root_names_owner), so the pin refuses and the gap only stays open.

Shard 2 (crate_qualified_method_cli_guards_the_layout_class): the paired phase is weakly_exposed with both tests related, not exposed — the same-Self-type rival in main.rs competes for the pin (other_definition_competes, method branch), withholding it while the fallback still relates.

Revision (test-only, this push): the tests now pin the guarded shape instead — own-crate-name control exposes; the unbound spelling and the rival-paired / binary-only phases never expose (discriminator weak); a new rival-free baseline asserts the library's own crate:: test exposes alone. No production change; negative controls kept as non-exposure rather than non-observation.

Directed review of e7682f8: keep both unbound spellings (qualified
call and use-import), require the related set to stay nonempty with
visible oracles, and pin the import route's observation_unconfirmed
miss plus the control's miss-free credit. Paired crate:: phase now
requires both tests related with the rival unconfirmed. No production
change.
@effortlesshermes

Copy link
Copy Markdown
Contributor Author

Follow-up to the rework note (now head 8366c29): directed review of e7682f8 observed that it dropped the foreign-use-import spelling, the paired binary oracle check, and the observe/oracle assertions, risking a weak-classification pin that masks false observation or oracle credit. Addressed in 8366c29 (test-only): both unbound spellings restored, each required to stay related with a visible oracle; the import route additionally pins miss == observation_unconfirmed; the own-crate control pins miss-free credit; the paired crate:: phase requires both unit and bin related with bin unconfirmed. The miss values used are taken from the failed-run finding JSON on 905f2e3 (shard 1/2 logs), not invented. Remaining honest gaps: the new baseline/binary-only/import-miss assertions are predictions from source reading (other_definition_competes, library_root_names_owner, owner_return_pin_holds) awaiting hosted shard evidence on this head.

…10948)

The DBL_MAIN rival returned x while asserting 3, so the binary
spelling fails its own assertion on a discriminating run. Keep the
unit-test shape (same Self type under another crate target) with the
library's x + 1 arithmetic, so layout is the only difference between
the targets. Test-only.
@effortlesshermes

Copy link
Copy Markdown
Contributor Author

Binary-fixture finding disposed with evidence: the Devin line-188 observation was correct — DBL_MAIN returned x while asserting 3, so the binary spelling fails its own assertion on a discriminating run. Fixed in 69558b9 (test-only): the rival keeps the library's x + 1 arithmetic, preserving the unit-test shape (same Self type under another crate target) with layout as the only inter-target difference. rip's CLI analysis never executes the fixture, so no finding changes; the fixture is now additionally runnable as Cargo evidence.

@effortlesshermes
effortlesshermes Bot marked this pull request as ready for review October 29, 2026 17:26

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

Refuted

  • The tests merely assert a smoke-level absence of full exposure and therefore cannot distinguish the intended guards from setup or relation failures.; refuted because: The control requires exposed, observe=yes, direct-owner relation, strong oracle, and no miss; negative phases require weak, retained relation, visible oracle, and explicit miss states.

Evidence gaps

  • Current-head red/green execution is not represented by a completed receipt: ripr failed with exit code 2 and cargo-test is scheduled late, so the revised source-derived expectations remain unverified.
  • Model proof intent was rejected by deterministic validation.
  • Current-head execution of the revised assertions is still trust-relevant because hosted failures supplied the new expected states but not current-head receipt evidence.
  • Exact-head hosted cargo-test evidence is needed to validate the strengthened baseline, binary-only, and import-miss assertions.

Strict workspace Clippy (-D clippy::unused-result-ok) rejects
remove_file(..).ok() on hosted run 40922452185. The baseline fixture
starts from a fresh workspace where src/main.rs never exists, so drop
the removal instead of silencing it. Test-only.
@effortlesshermes

Copy link
Copy Markdown
Contributor Author

Clippy fix (test-only, head 9b3adb8): hosted merge-ready run 40922452185 failed strict workspace Clippy at qualified_owner_observation.rs:245 (remove_file(..).ok(), exit 101, required tests never ran). The removal was unnecessary — the baseline phase runs in a fresh workspace where src/main.rs never exists — so it is dropped rather than silenced; no discriminator assertion changed. rustfmt clean locally; full local build unavailable per the 4 GiB worker constraint, so Clippy re-verification rides the fresh exact-head hosted qualification.

@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 the paired phase checks that the binary rival is indexed and unconfirmed, but does not assert that the binary related test has a visible oracle or weak oracle strength.
  • Confirm the binary-only phase requires observe == no but never requires the binary test to remain in related_tests.
  • Confirm the layout-guard test requires the binary rival to remain indexed, addressing the earlier vacuous-pass concern.

Refuted

  • The binary fixture and binary-test discovery remain defective.; refuted because: The seeded thread records both concerns as repaired: the rival arithmetic is now x + 1, and the paired assertion requires the 'bin' test to remain indexed.

Evidence gaps

  • Current-head red/green execution is still unproven in the available packet.
  • Model proof intent was rejected by deterministic validation.
  • Exact-head execution of the revised expectations is not represented by a completed receipt: ripr failed with exit code 2 and cargo-test is only scheduled late.
  • The revised assertions have not yet been demonstrated to pass on the current exact head.

Copy link
Copy Markdown
Member

Current-head qualification supplies a concrete correction for the existing owner. At 9b3adb8, required shard 2 job123645071429 fails crate_qualified_method_cli_guards_the_layout_class in the rival-free baseline: expected exposed, actual weakly_exposed with observe=yes/discriminator=weak and observation_unconfirmed. The paired and binary-only phases therefore were not reached. Shard 1 job123645070912 passes an_unbound_member_crate_qualifier_never_exposes. Actual checkout72ccc3b005d782c684ae3f14a35ae841f1c6682f contains the exact candidate test blob65f4049bee1665914347101c243e5f632f774285. This is an executed assertion mismatch, not a missing tool or setup failure. Please reconcile the positive baseline contract/fixture in the existing owner lane, preserving the observation-versus-discrimination distinction and treating this as test-only unless a separately justified production defect is established. Then obtain review and required qualification of the repaired head; unchanged reruns cannot correct this assertion. Aggregate40925292507 was still running at18:41 with shard2 already failed. No new writer or campaign has been started by this reconciliation. Evidence: https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/40925292507/job/123645071429

@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 the layout test checks classification, discriminator, related-test membership, oracle visibility, and miss state, but cannot demonstrate the claimed layout-class discrimination.
  • Confirm trust in the revised exact expected states depends on a completed current-head test receipt; prior hosted evidence proves those states must change, not that the revised test passes.

Refuted

  • The layout-class test pins observed weakly_exposed behavior but does not prove the layout.class guard or item 6(b).

Evidence gaps

  • The revised expected states lack a completed exact-head test receipt.
  • Current-head red/green proof for the revised assertions is not yet represented by a completed receipt.
  • The revised CLI expectations require exact-head execution; earlier hosted failures supplied values but do not prove the current revision passes.
  • Model proof intent was rejected by deterministic validation.
  • Trust in the revised source-derived expectations depends on an exact-head cargo-test receipt.

Copy link
Copy Markdown
Member

Successor qualification reconciliation at69b3591f6d11b7e9b3b89855f9bdd7176e13d95a: both named tests now execute and pass in required shards123688173021/123688173024. Actual checkoutec49e9ecbae51770ccfb613d7fd68430d4cf1cc6 merges this candidate into387f96eb; executed qualifier blob5a83fda18517508506dcd33e47fdf9a7ab5ff564 matches. Rust gates, all4shards and coverage verifier passed. However required40937870804 is terminal FAILURE at current_eligibility (result job123698853120): live eligibility no longer established. Two outdated Devin threads remain unresolved, violating one required predicate; logs do not isolate that as the sole cause. Existing owner/reviewer should reconcile the repaired concerns against this exact head, appropriately resolve only substantiated repairs, and restore eligibility through the supported repository process. No bypass or blind unchanged full rerun requested. The narrower source claim matters:6(a) retains a real positive control;6(b) now pins documented weak behavior and does not establish layout-guard discrimination. Keep that residual on10948. Latest review5703864185 missing-execution concern can now use these hosted receipts, but current review/eligibility clearance remains unfinished. Evidence: https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/40937870804/job/123698853120

Copy link
Copy Markdown
Member

Final qualification readback: existing-owner run40947795510 is now SUCCESS at unchanged69b3591f6d11b7e9b3b89855f9bdd7176e13d95a. Result job123732374355 explicitly binds expected head/request40947795510-1 and reports ADMISSION_STATUS=admitted, GITHUB_TESTS_RESULT=success, ELIGIBILITY_RESULT=success. Gates, four shards and coverage verifier passed. Both earlier threads now have substantive owner dispositions4417314373/4417315504 and are resolved; prior eligibility failure is historical. Retain earlier exact-head test receipts and the narrowed scope:6(b) layout discrimination remains open, not established by weak-behavior pins. Existing owner can reconcile remaining review/protection/merge prerequisites; no further unchanged qualification campaign is requested. This is technical evidence, not formal PR approval or a merge action. https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/40947795510/job/123732374355

@EffortlessSteven
EffortlessSteven merged commit da0423a into main Oct 30, 2026
84 of 85 checks passed
@EffortlessSteven
EffortlessSteven deleted the wt/t_2daf58be branch October 30, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant