Repository navigation
test(corpus): add the selective control for test-local rival imports (#14016) - #14481
Conversation
|
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 reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 32 minutes. View limit details
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
ripr static exposure checkCommit Took 1s. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Source review of 4615b5b (base main c5d50a3), PR #14481.
Scope: the selective control for test-local rival imports. The diff is 7 files with no crates/ or xtask/ changes.
Inspected surfaces:
- fixtures/evidence-promotion-honesty-corpus/cases/rust_test_local_rival_import_control.json
- fixtures/evidence-promotion-honesty-corpus/repo-exposure-subjects/test-local-rival-import-control/{Cargo.toml,src/lib.rs,tests/control.rs}
- fixtures/evidence-promotion-honesty-corpus/reports/rust-test-local-rival-import-control.json
- fixtures/evidence-promotion-honesty-corpus/corpus.json (report_digest_required entry)
- changelog.d/14016-test-local-rival-control.md
Evidence observed:
- cargo xtask check-evidence-promotion-honesty exits 0 on this head.
- Selectivity, blanket direction: with test_calls_only_through_local_rival_module forced true, the control flips to ungripped and the gate names rust_test_local_rival_import_control; exit 1.
- Selectivity, disabled direction: with the guard forced false, only the two bare/glob non-promotion cases flip and the control stays strongly_gripped; exit 1. Restored, the gate exits 0.
- Clean copy of the subject without target/ cache: strongly_gripped, reach yes, related 1; cargo test passes with the owner result 90.
- Report content_sha256 verifies; root is /tmp/sj-test-local-rival-import-control; no C:/ or C:\ token; related test real_owner_boundary at tests/control.rs:10, oracle strong, relation direct_owner_call.
- report_digest_required lists the report; changelog section Internal / CI and wording match the observed behavior.
Residual: hosted CI has not run; cargo nextest is not installed locally. The full inspection record is in the follow-up Conversation comment.
Source inspection record (PR #14481, head 4615b5b)Review record — PR #14481 rival-import controlreviewed_head_sha: 4615b5b (PR head, Draft) BlockingNone. Non-blocking
Refuted / corrected
Proof observed
Linux lane (WSL Ubuntu, golden route) - added 2026-11-12T07:0xClean
This is the same discrimination the Windows run showed, now on the platform the Proof missing
Non-blocking (added)
|
|
Queue ejection cause (orchestrator, heartbeat 01:21Z): not a source defect.
|
…#14016) Add the control case beside the bare/glob rival cases already on main: a test that calls the real owner from tests/control.rs stays strongly_gripped with reach yes and one direct_owner_call related test, proving the guard is selective rather than blanket. The report is the verified capture from 8d89ee9b80 with a commit-bearing analyzer version and a neutral /tmp root. Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
The control subject now defines a test-local `discounted_total` rival beside the real-owner import, so `same_name_count > 1` and the #10855 guard branch is entered. The test still calls the real owner, so it must stay credited; that is the selectivity proof. The report is recaptured in the next commit. Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
#14016) Recapture the control report from /tmp/sj-test-local-rival-import-control with the Linux binary built at df0e979. The subject now has two discounted_total definitions, so the #10855 guard branch runs; the real-owner call stays strongly_gripped with one direct_owner_call related test. Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
The control keeps a same-named rival present but imports the real owner, so name the selectivity claim without implying the subject has no rival. Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
4615b5b to
b3fe075
Compare
Source inspection record — fix/14016-test-local-rival-control @ 1506f9adisposition: SOURCE_REVIEW_READY (source scope only; final merge review remains separate) Subject
Delta
No Head lineage: Capture validation
Gate
Removal control, both directions
Integration
Not checked
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Source review of fix/14016-test-local-rival-control at 1506f9a43e7e4645dcdca507ba1b63f217306b18, base origin/main f5f65dd67ec01d5c48ad000cdbc9369c4fe7e137.
Scope is the corpus-only evidence package for the test-local rival import family: one control case, its Cargo subject (Cargo.toml, src/lib.rs, tests/control.rs), one captured report, corpus.json report_digest_required, and one changelog fragment. git diff --name-status origin/main 1506f9a43e touches no crates/, xtask/, Cargo.toml or Cargo.lock path.
Head lineage: 1506f9a43e is one commit past b3fe075702, and that commit edits only the report's artifact and analysis_inputs metadata lines (content_sha256, generated_at, root, analyzer_version, workspace_manifests_hash). The judged seams, metrics and source_subject digests are identical. git diff b3fe075702 1506f9a43e over crates/ xtask/ Cargo.toml Cargo.lock is empty, so the analyzer code is the same.
Subject identity: src/lib.rs sha256 858593f0ceccb8663eff702f2aba4cfe384a6692e7f4befc072a4fd301ba4c15, tests/control.rs sha256 77a03531297d9b6e753ace6c76ca60d5e3a292973451d0f8f4d056273fe00a55, files_content_hash 5a11e3c4b6721e42.
Capture: an independent fresh capture with a rebuilt 0.11.0+b3fe075702 on the corpus subject reproduces the committed report's metrics and seams byte-for-byte. The judged seam is src/lib.rs::discounted_total, strongly_gripped, reach yes, related_tests_total 1, real_owner_boundary at tests/control.rs:10, oracle strong, relation direct_owner_call, observed_values [100]. CACHE_SCHEMA_VERSION at this head is 1.180 (crates/ripr/src/analysis/seam_cache.rs:740), equal to the report's cache_schema_version.
Gate: cargo xtask check-evidence-promotion-honesty exits 0 at 1506f9a43e with "pass: corpus tiers valid; all charter members at expected class; no clean-guard case lost its findings; scope-guard cases kept report scope headers; no promoted case carries exposed; all controls retain exposed".
Removal control, both directions, on this head:
test_calls_only_through_local_rival_moduleforcedtrue: this control readsungripped, reachno,related_tests_total0,observed_values[]; the gate exits 1, namesrust_test_local_rival_import_control, and reports the committedstrongly_grippedagainst the analyzer'sungripped.- The same function forced
false: this control staysstrongly_gripped, reachyes,related_tests_total1,observed_values[100]; onlyrust_repo_exposure_test_local_rival_bare_use_not_promotedandrust_repo_exposure_test_local_rival_glob_use_not_promotedreadactivation_unknown, reachyes,related_tests_total1, oracleweak, relationdirect_owner_call,observed_values[]; the gate exits 1 naming exactly those two cases. - Guard restored: gate exit 0.
Integration: git merge-tree --write-tree origin/main 1506f9a43e = 89d8aa59ca8af95760a13916c89f72d9dada3515, exit 0.
Full inspection record: #14481 (comment)
|
Convergence claim (2026-11-26 13:48 UTC, this session). This PR is 596 commits behind In progress, locally and unpublished so far: Now running: the honesty gate on the merged tree, both removal directions of the rival-module guard judged by that gate, the policy gates on Linux and Windows, and an independent read-only review. The inspection record follows here before the push. Please keep hands off |
Review of the converged head
|
| Step | Result |
|---|---|
cargo fmt --all -- --check |
exit 0 |
cargo xtask check-evidence-promotion-honesty |
exit 0 |
| Removal control, guard forced to withhold every cross-file call (` | |
| Removal control, guard forced to withhold nothing (` | |
cargo xtask check-evidence-promotion-honesty again after both restorations |
exit 0; tree clean |
So this control is the one corpus member that distinguishes a blanket guard from the selective one, and the two siblings distinguish a disabled guard; each direction is one changed line, verified as a real edit before the run and restored from git afterwards.
Still running when this record was posted, with their results due in the attestation before the label: xtask's whole unit suite, the integration test that walks corpus.json (owner_pin_execution), the hosted policy lane's own cargo xtask ci-policy on Linux, and the 45 policy gates on Windows. The workspace clippy build is not repeated for this tree: it changes no Rust source.
Not claimed. Hosted qualification on this head has not run. A capture is only current while the analyzer's cache generation is; if main moves that generation before this PR's queue run, the report has to be recaptured again from the then-current tree, as happened on 11-20.
reviewed_head_sha: 3f414e159b002277f3c26776eda4b662fbd9c9b8
integration_basis: published head b2aeee6866 plus merge 53a819de67 of main e719ca4169 (PR head first parent) plus the recapture commit
claim_boundary: #14016 residual, the selective control for the test-local rival import family; corpus data only, no analyzer change
changed_surfaces_and_semantic_owners_inspected: the corpus case, subject and report; corpus.json report_digest_required; changelog.d fragment; the guard's callers and reading in call_identity.rs and related_tests.rs; the honesty gate's regeneration, schema and list checks in xtask
blocking_findings: none on this head
non_blocking_suggestions: none; the reviewer's naming notes are left as the author wrote them
refuted_or_stale_findings: the description's older proof log names a second case the gate no longer names under a blanket guard (recorded above)
proof_or_review_missing: hosted qualification on this head; the four local suites listed as still running above
affected_currentness_dimensions: candidate head identity; corpus data against the analyzer at cache schema 1.206
residual_assumptions_and_non_claims: the control is selective for this shape (a file-level plain import of the real owner); grouped or renamed imports and a rival at the file root keep the readings the guard's documentation already lists
disposition: REVIEW_INCOMPLETE (source review complete on this head; hosted qualification and the enqueue judgment are separate)
|
Head |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Reviewed head dd5d718: the published head b2aeee6866 plus one merge of main e719ca4169, with the PR head as the first parent, one commit that recaptures the control's report at the analyzer's current cache generation, and one empty commit whose tree is identical to 3f414e159b. Every proof step below ran on that identical tree. The PR's change is the same seven files as before: one corpus case, one Cargo subject, one captured report, one report_digest_required entry and one changelog fragment. No Rust source changes.
The recapture. ripr was built from the clean merged tree on Linux and read a portable copy of the subject. Against the earlier capture only five metadata fields moved; every seam, grip class, evidence stage, related test and evidence record is identical.
Proof on this head.
- Linux:
cargo fmt --all -- --checkandcargo xtask check-evidence-promotion-honestyexit 0, and the gate again after both removal controls below exit 0 on the restored tree.cargo xtask ci-policy, the hosted policy lane's own command, exit 0 with all 45 gates. - Windows: the 45 policy gates exit 0. The workspace clippy build was not repeated, because this tree changes no Rust source.
- Both removal directions of the rival-module guard, each a single changed line at its one call site in
call_identity.rs, verified as a real edit before the run and judged by the honesty gate. With the guard forced to withhold every cross-file call the gate stops and namesrust_test_local_rival_import_controlalone: all three of its seams readungrippedand its related test is gone, and no other corpus case is named. With the guard forced to withhold nothing the gate stops and names only the two sibling cases, eachungrippedtoactivation_unknown; the control is not named. cargo xtask check-evidence-promotion-honesty --pre-label 14481 mainon the published composition ofmainb906c30759and this head: exit 0, 127 reports and 30 historical pins at generation 1.206.- An independent read-only review of the unpublished head reported no blocking or should-fix defect, and confirmed by reading the callers that the guard is entered for this test and keeps the relation only through the file's plain import of the real owner.
Host limits, recorded. xtask's whole unit suite and owner_pin_execution stop on 40 tests on this Linux host, and the identical 40 stop on main 77f37e5e0f run in the same lane with the same filters: the host's git 2.34.1 has no merge-tree --write-tree, the portable-consumer stub reports an unavailable environment there, and the pinned compiler crashes while it renders a diagnostic for three fixtures that are meant to compile with an error. Hosted main is green on each of them.
Not claimed. Hosted qualification on this head has not run. A capture is current only while the analyzer's cache generation is; if main moves that generation before this PR's queue run, the report is recaptured from the then-current tree.
The structured inspection record is in the PR conversation.
|
|
…rival-control Conflict: fixtures/evidence-promotion-honesty-corpus/corpus.json, where this branch and main both appended to the end of report_digest_required. Took main's file and re-added this branch's entry next to the other test-local rival reports instead of at the shared tail. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqMGU56WxifR9EyY3K
…ma 1.228 (#14016) Main's analyzer cache schema moved from 1.206 to 1.228. Recaptured with `ripr check --mode draft --format repo-exposure-json` on an out-of-repo copy of the subject at the original capture path. Only analyzer_version, workspace_manifests_hash, content_sha256, generated_at and cache_schema_version change; every seam and grip is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqMGU56WxifR9EyY3K
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Scope of this review: the merge of main 5a04905803 into head dd5d718b7f, giving head 5ad6c05ea4b4218253d0f17ca49b190084bbb126. The PR's own change was reviewed on the earlier heads (see the 2026-11-26 review); this pass covers the merge delta only.
Conflict
fixtures/evidence-promotion-honesty-corpus/corpus.json: this branch and main both appended to the end ofreport_digest_required. Took main's file and re-added this branch's one entry next to the other test-local rival reports instead of at the shared tail, which is where the next PR will also append. The list is a set to the gate; position carries no meaning.
Composition with newer main
- Main's analyzer cache schema moved from 1.206 to 1.228, so the gate refused this branch's report as stale. Recaptured it with
ripr check --mode draft --format repo-exposure-jsonon an out-of-repo copy of the subject at the original capture path. A structural diff of old against new shows onlyanalyzer_version,workspace_manifests_hash,content_sha256,generated_atandcache_schema_versionchanging. Every seam and grip is unchanged. No pin was added.
Local proof on this head (Linux)
cargo xtask check-evidence-promotion-honesty: pass, three consecutive runs.cargo xtask check-evidence-promotion-honesty --pre-label 14481 main: pass.cargo fmt --check: clean.
One observation to retain: the first honesty run on the merged tree, before the recapture and straight after a cold build, also reported rust_repo_exposure_lib_test_false_skipped as stale (a discriminate / unknown / missing_discriminator_evidence limitation missing from the current output). This PR does not touch that case or the analyzer. It did not recur in four later runs on the same tree, and the same main passed the gate on #15725. I am treating it as a non-deterministic result on main, not a finding against this PR, and it is not explained.
Not run locally: the workspace test suite (the ripr lib test binary is OOM-killed on this machine), goldens, clippy and cargo xtask precommit. Hosted qualification carries those.
Generated by Claude Code
|
The native Rust gate stopped on one specific custody mismatch: |
…ma 1.229 (#14016) The merge queue refused the previous head: main moved the analyzer cache schema from 1.228 to 1.229 (#16031) while this PR was queued. Merged main and recaptured with `ripr check --mode draft --format repo-exposure-json` on an out-of-repo copy of the subject. Only analyzer_version, workspace_manifests_hash, content_sha256, generated_at and cache_schema_version change; every seam and grip is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqMGU56WxifR9EyY3K
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Scope of this review: head 7f55f9c7de669d0a7460da7f38f3c72989cab7df, which is the head reviewed earlier (5ad6c05ea4) plus a merge of main b32e2004a4 and one recapture commit. The earlier review still stands for everything before this.
Why this head exists
5ad6c05ea4 passed PR qualification and was enqueued. Merge-queue run 46200405315 then failed check-evidence-promotion-honesty: main had moved the analyzer cache schema from 1.228 to 1.229 (#16031) after this PR's report was recaptured at 1.228. The queue composition was correct to refuse it.
What changed
- Merge of main
b32e2004a4: no conflicts. reports/rust-test-local-rival-import-control.jsonrecaptured withripr check --mode draft --format repo-exposure-jsonon an out-of-repo copy of the subject, using the binary built from this merged tree. A structural diff of old against new shows onlyanalyzer_version,workspace_manifests_hash,content_sha256,generated_atandcache_schema_versionchanging. Every seam and grip is unchanged. No pin was added.
Local proof on this head (Linux)
cargo xtask check-evidence-promotion-honesty: pass.cargo xtask check-evidence-promotion-honesty --pre-label 14481 main: pass.
Residual exposure: any PR that bumps the cache schema and lands ahead of this one will invalidate the capture again. I will enqueue as soon as qualification is green to keep that window short.
Not run locally: the workspace test suite, goldens and precommit on this head. The delta since the fully qualified head is a clean merge of main plus one regenerated report.
Generated by Claude Code
|
Correction to my review on Generated by Claude Code |
The merge queue built this branch's group one minute after #14481 landed the rival-import control capture at 1.229, while this branch's analyzer is at 1.230, so the honesty gate refused the combined tree. Recapture the report from its committed subject with the producer command on an out-of-repo copy at the original capture path. Only analyzer_version, workspace_manifests_hash, content_sha256, generated_at and cache_schema_version change; every seam, grip class, evidence stage and related test is unchanged. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Summary
evidence-promotion honesty corpus (analysis(rust): graduate the test-local rival import false promotions into the honesty corpus #14016).
reached by bare
use local::discounted_total;or globuse local::*;staysungrippedwith no related test. This control pins that the guard isselective: a same-named rival module is present, the test still imports and
calls the real owner, and it stays
strongly_grippedwith a direct ownercall. The rival makes
same_name_count > 1, so the guard branch is actuallyentered rather than bypassed.
Swarm / Source Boundary
Source-of-truth Links
Proposal: none
Spec: docs/specs/RIPR-SPEC-0108-evidence-promotion-honesty-meta-gate.md
ADR: none
Plan item: none
Governing issue or accepted claim: #14016 (follow-up to #14065, #13999, #10855)
Acceptance delta (one sentence): The test-local rival import family carries a selective control (rival module present, real owner imported and called) that must stay
strongly_grippedwith a direct owner call, so a blanket guard that withholds every test cannot pass the corpus.Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): fix/14016-test-local-rival-control
Stack parent or prerequisite PR (if any): none; #14065 already landed
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): #14065 was adopted as the candidate of record for the two non-promotion cases; this PR carries only the control residual from the earlier local branch.
Scope
fixtures/evidence-promotion-honesty-corpus/cases/gains one control case.fixtures/evidence-promotion-honesty-corpus/repo-exposure-subjects/gains thecontrol Cargo subject the report was captured from.
fixtures/evidence-promotion-honesty-corpus/reports/gains the captured report.corpus.jsonlists the report inreport_digest_required.changelog.d/gains one fragment.Scope Classification
This PR is scoped by:
Production delta:
Evidence/support delta:
Single acceptance criterion:
cargo xtask check-evidence-promotion-honestypasses, a blanket guard(function forced true) flips this control to
ungrippedand names it, anddisabling the rival-import guard flips the two non-promotion cases to
activation_unknownwhile this control staysstrongly_gripped.Non-goals:
support-tier change, no golden re-bless, no duplicate of the bare/glob cases
already on main.
Support-tier Impact
Claim/proof notes:
Policy Impact
Ledger or exception notes:
report_digest_requiredgains one capture; no exemption is added.Proof
Result, failures, or skipped proof:
check-local-context: exit 0.ci-policy: exit 0 (Windows host needsRIPR_USER_TEXT_SCRATCHoutside thecheckout and a pre-placed
target/ripr/drivers/ripr.exe; without those itaborts on the driver-relocation path, not on policy).
check-evidence-promotion-honesty: exit 0; the gate regenerates the controlsubject and matches the judged fields.
precommit: exit 0.test_calls_only_through_local_rival_moduleforcedtrue):this control flips to
ungrippedand the gate namesrust_test_local_rival_import_controlplussame_named_call_kinds_not_promoted; exit 1.false): only the two non-promotion cases flip toactivation_unknown/reach: yes; this control staysstrongly_gripped;exit 1. Guard restored, exit 0.
clean-copy judged fields (
strongly_gripped, reach yes, related 1,real_owner_boundaryattests/control.rs:10, strong,direct_owner_call).cargo nextestlane not run locally: not installed on this host.Claim Boundary
What may be claimed after this PR? What must not be claimed yet?
the guard is selective, not blanket.
fix.
Rollback
How can this PR be reverted safely?
code or schema changes.
Spec-Test-Code Traceability
cargo xtask check-evidence-promotion-honestyStatic Language Check
killed,survived,untested,proven, andadequate.CI Economics
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
cargo xtask check-local-contextcargo xtask ci-policycargo xtask check-evidence-promotion-honestycargo xtask precommitChangelog
changelog.d/14016-test-local-rival-control.md, section "Internal / CI", onebullet with the trailing
(#14016)reference.Recapture (head b3fe075)
The queue ejection at 01:11Z was a stale capture, not a source defect: the report recorded cache schema
1.178while the analyzer is at1.180(bumped by #14326). Repaired as assigned:fix/14016-test-local-rival-controlonto currentorigin/mainf5f65dd67e(no merge commit).fixtures/evidence-promotion-honesty-corpus/reports/rust-test-local-rival-import-control.jsonwith the documented producer command (ripr check --format repo-exposure-json) against the corpus subject, using a binary built at the rebased head25920e5379. No hand edits, no schema pin.src/lib.rs::discounted_totalisstrongly_gripped, reachyes, one related testreal_owner_boundary(tests/control.rs) withdirect_owner_calland observed100. Only the capture metadata moved:cache_schema_version1.178→1.180,analyzer_version,content_sha256,generated_at,root,workspace_manifests_hash.cargo xtask check-evidence-promotion-honestyexits 0 atb3fe075702.Source review: REVIEW_READY b2aeee6
Generated by Claude Code
Merge of
mainand the recapture (2026-11-26)maine719ca4169is merged into the PR headb2aeee6866with the PR head as the first parent. The one conflict, at the end ofreport_digest_required, is resolved by keeping both sides:main's three entries, then the control's. The branch was 596 commits behind and its capture recorded cache schema1.184;mainis at1.206, which is why the honesty gate had removed the PR from the queue on 11-20.The report is recaptured with a
riprbuilt from the clean merged tree on Linux against a portable copy of the subject (/tmp/sj-test-local-rival-import-control, the convention of the sibling captures). Against the earlier capture only five metadata fields differ:cache_schema_version,analyzer_version,workspace_manifests_hash,generated_atandcontent_sha256. The three seams, the grip classes, every evidence stage and evidence path row, the related test, the observed values, the missing discriminators and the wholeevidence_recordare identical.The older proof log earlier in this description says a blanket guard makes the gate name
rust_test_local_rival_import_controlplussame_named_call_kinds_not_promoted. On today's analyzer the blanket guard turns this control only; the gate names no other corpus case. The two non-promotion siblings are what distinguish a guard that withholds nothing.Current proof on head
3f414e159b, with the inspection record in the conversation: the honesty gate and the format check on Linux; both removal directions of the rival-module guard, each one changed line at its single call site; the hosted policy lane's owncargo xtask ci-policyon Linux (45 gates) and the 45 policy gates on Windows; the pre-label composition check at generation 1.206.