Skip to content

test(corpus): add the selective control for test-local rival imports (#14016) - #14481

Merged
EffortlessSteven merged 19 commits into
mainfrom
fix/14016-test-local-rival-control
Nov 29, 2026
Merged

EffortlessSteven merged 19 commits into
mainfrom
fix/14016-test-local-rival-control

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Swarm / Source Boundary

  • repair or follow-up for a same-repo swarm PR

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_gripped with 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 the
    control Cargo subject the report was captured from.
  • fixtures/evidence-promotion-honesty-corpus/reports/ gains the captured report.
  • corpus.json lists the report in report_digest_required.
  • changelog.d/ gains one fragment.

Scope Classification

This PR is scoped by:

  • Docs/spec/test-only evidence package

Production delta:

  • None. No analyzer, matcher, or support-tier change.

Evidence/support delta:

  • One corpus control charter member with a captured report and a regenerable subject.

Single acceptance criterion:

  • cargo xtask check-evidence-promotion-honesty passes, a blanket guard
    (function forced true) flips this control to ungripped and names it, and
    disabling the rival-import guard flips the two non-promotion cases to
    activation_unknown while this control stays strongly_gripped.

Non-goals:

  • No new analyzer capability, no change to the rival-import matcher, no
    support-tier change, no golden re-bless, no duplicate of the bare/glob cases
    already on main.

Support-tier Impact

  • none

Claim/proof notes:

  • The corpus pins static evidence only; it makes no runtime mutation claim.

Policy Impact

  • none

Ledger or exception notes:

  • report_digest_required gains one capture; no exemption is added.

Proof

cargo xtask check-local-context
cargo xtask ci-policy
cargo xtask check-evidence-promotion-honesty
cargo xtask precommit

Result, failures, or skipped proof:

  • check-local-context: exit 0.
  • ci-policy: exit 0 (Windows host needs RIPR_USER_TEXT_SCRATCH outside the
    checkout and a pre-placed target/ripr/drivers/ripr.exe; without those it
    aborts on the driver-relocation path, not on policy).
  • check-evidence-promotion-honesty: exit 0; the gate regenerates the control
    subject and matches the judged fields.
  • precommit: exit 0.
  • Removal control, both directions on the final head:
    • Blanket guard (test_calls_only_through_local_rival_module forced true):
      this control flips to ungripped and the gate names
      rust_test_local_rival_import_control plus
      same_named_call_kinds_not_promoted; exit 1.
    • Disabled guard (forced false): only the two non-promotion cases flip to
      activation_unknown / reach: yes; this control stays strongly_gripped;
      exit 1. Guard restored, exit 0.
  • Independent review of the same head reproduced both experiments and the
    clean-copy judged fields (strongly_gripped, reach yes, related 1,
    real_owner_boundary at tests/control.rs:10, strong, direct_owner_call).
  • cargo nextest lane not run locally: not installed on this host.

Claim Boundary

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

  • May claim: the test-local rival import family has a positive control proving
    the guard is selective, not blanket.
  • Must not claim: runtime mutation outcomes, coverage, or a broader call-identity
    fix.

Rollback

How can this PR be reverted safely?

  • Revert the commit; the corpus returns to its prior case set. No production
    code or schema changes.

Spec-Test-Code Traceability

  • Spec: RIPR-SPEC-0108
  • Tests: cargo xtask check-evidence-promotion-honesty
  • Code: none (corpus data only)
  • 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

  • LEM impact: n/a
  • Workflows touched: none
  • Branch protection impact: none
  • Failure mode caught: a rival-import guard that withholds credit from every test
  • Cheaper signal considered: the existing corpus gate
  • Required lanes affected: none
  • Advisory lanes affected: none
  • On-demand/release lanes affected: none
  • Labels that alter behavior: none
  • Artifact families affected: none
  • Rollback path: revert the commit

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 xtask check-local-context
  • cargo xtask ci-policy
  • cargo xtask check-evidence-promotion-honesty
  • cargo xtask precommit

Changelog

  • changelog.d/14016-test-local-rival-control.md, section "Internal / CI", one
    bullet 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.178 while the analyzer is at 1.180 (bumped by #14326). Repaired as assigned:

  • Rebased fix/14016-test-local-rival-control onto current origin/main f5f65dd67e (no merge commit).
  • Recaptured only fixtures/evidence-promotion-honesty-corpus/reports/rust-test-local-rival-import-control.json with the documented producer command (ripr check --format repo-exposure-json) against the corpus subject, using a binary built at the rebased head 25920e5379. No hand edits, no schema pin.
  • The judged fields are unchanged: src/lib.rs::discounted_total is strongly_gripped, reach yes, one related test real_owner_boundary (tests/control.rs) with direct_owner_call and observed 100. Only the capture metadata moved: cache_schema_version 1.178 → 1.180, analyzer_version, content_sha256, generated_at, root, workspace_manifests_hash.
  • cargo xtask check-evidence-promotion-honesty exits 0 at b3fe075702.

Source review: REVIEW_READY b2aeee6


Generated by Claude Code

Merge of main and the recapture (2026-11-26)

main e719ca4169 is merged into the PR head b2aeee6866 with the PR head as the first parent. The one conflict, at the end of report_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 schema 1.184; main is at 1.206, which is why the honesty gate had removed the PR from the queue on 11-20.

The report is recaptured with a ripr built 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_at and content_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 whole evidence_record are identical.

The older proof log earlier in this description says a blanket guard makes the gate name rust_test_local_rival_import_control plus same_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 own cargo xtask ci-policy on Linux (45 gates) and the 45 policy gates on Windows; the pre-label composition check at generation 1.206.

@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 Nov 12, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 138 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

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: Essentials
  • Run ID: 513b8577-3c33-42eb-8f58-a07699db7982
Commits

Reviewing files that changed from the base of the PR and between b32e200 and 7f55f9c.

Files selected for processing: 7

  • changelog.d/14016-test-local-rival-control.md
  • fixtures/evidence-promotion-honesty-corpus/cases/rust_test_local_rival_import_control.json
  • fixtures/evidence-promotion-honesty-corpus/corpus.json
  • fixtures/evidence-promotion-honesty-corpus/repo-exposure-subjects/test-local-rival-import-control/Cargo.toml
  • fixtures/evidence-promotion-honesty-corpus/repo-exposure-subjects/test-local-rival-import-control/src/lib.rs
  • fixtures/evidence-promotion-honesty-corpus/repo-exposure-subjects/test-local-rival-import-control/tests/control.rs
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-test-local-rival-import-control.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven changed the title test(corpus): add the unshadowed control for test-local rival imports (#14016) test(corpus): add the selective control for test-local rival imports (#14016) Nov 12, 2026
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 12, 2026 06:50
@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!

@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: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@github-actions

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit 4615b5b31dd1 · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=b9f04dbe223ba6ea8e71561a3f84e2be8d91ea1d findings=0 gaps=0
done=no changed behavior found in scope; static advisory, not runtime proof
verify=refused|outcome=no_behavioral_candidates|findings=0|exposed=0|reason=no_behavior_in_scope

Took 1s.

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

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.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Source inspection record (PR #14481, head 4615b5b)

Review record — PR #14481 rival-import control

reviewed_head_sha: 4615b5b (PR head, Draft)
base: main c5d50a3
disposition: SOURCE_REVIEW_READY (candidate; hosted CI not run)

Blocking

None.

Non-blocking

  • PR title still says "the unshadowed control". The control now carries a
    same-named rival module and an explicit owner import, so "unshadowed" no
    longer describes it. Suggest "add the selective rival-import control".
  • The first committed head (4ed4391) really was a vacuous control: its
    subject had one definition of discounted_total, so same_name_count == 1
    and the guard was never entered. That finding is resolved on 4615b5b by
    df0e979, which adds mod local { fn discounted_total }.
  • One check-evidence-promotion-honesty invocation exited 1 with no recorded
    violation, then five consecutive runs passed. Not reproduced; treated as an
    instrument transient, not a candidate defect.

Refuted / corrected

  • My own first temp experiment reported the rival-present control as
    ungripped. That was contaminated by a copied target/ripr/cache. A clean
    copy (no target/) reports strongly_gripped, matching the gate.

Proof observed

  • cargo xtask check-evidence-promotion-honesty exit 0 on 4615b5b.
  • Blanket guard (test_calls_only_through_local_rival_module forced true):
    the control flips to ungripped, and the gate names
    rust_test_local_rival_import_control plus the existing
    same_named_call_kinds_not_promoted case; exit 1. The control is in-domain
    and discriminating.
  • Disabled guard (forced false): only the bare/glob non-promotion cases flip;
    the control stays green; exit 1.
  • Guard restored: tree clean, gate exit 0.
  • Clean-copy control: strongly_gripped, reach yes, related 1; cargo test
    passes with the owner result 90.
  • Report: content_sha256 verifies; root /tmp/sj-test-local-rival-import-control;
    no C:/ or C:\ token; related test real_owner_boundary in
    tests/control.rs:10, oracle strong, direct_owner_call.
  • report_digest_required lists the report; changelog section Internal / CI
    and wording match the observed behavior.
  • Diff from base: 7 files, no crates/ or xtask/ changes.

Linux lane (WSL Ubuntu, golden route) - added 2026-11-12T07:0x

Clean git archive 4615b5b31d copy, no target/ carried over, cargo 1.95.0,
kernel 6.18.33.2-microsoft-standard-WSL2.

  • cargo xtask check-evidence-promotion-honesty -> exit 0, pass: ... all controls retain exposed.
  • Removal control on Linux: guard forced off (test_calls_only_through_local_ rival_module call replaced by true in
    crates/ripr/src/analysis/test_grip_evidence/related_tests.rs) -> exit 1.
    The only named cases are rust_repo_exposure_test_local_rival_bare_use_not_ promoted and ..._glob_use_not_promoted, each flipping to
    activation_unknown with reach yes and a direct_owner_call related test.
    rust_test_local_rival_import_control is not named: it stays green.
  • Guard restored -> exit 0.
  • cargo xtask check-local-context -> exit 0 on Linux.

This is the same discrimination the Windows run showed, now on the platform the
goldens are blessed from, and from a cache-free copy.

Proof missing

  • Hosted CI: Draft, no merge-ready. The one hosted lane that ran,
    Windows Gate (run 43169218149, head 4615b5b), executed only
    windows-gate-detect; windows-gate-run was skipped, so hosted CI carries
    no gate evidence. Every other lane is SKIPPED.
  • cargo nextest lane: not installed locally.
  • cargo xtask ci-policy on Linux: not run. The review copy has synthetic
    history, so no origin/main merge base exists; the Windows run (coder's and
    mine) is the only ci-policy receipt.

Non-blocking (added)

  • The changelog commit 4615b5b fixed the changelog wording, but the PR
    title, the PR body Summary/acceptance delta, and the case vector
    (unshadowed_owner_call_stays_strongly_gripped in
    fixtures/evidence-promotion-honesty-corpus/cases/rust_test_local_rival_ import_control.json) still say "unshadowed". The subject now carries
    mod local { fn discounted_total }. vector is not read by the gate, so
    this is metadata only.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Queue ejection cause (orchestrator, heartbeat 01:21Z): not a source defect.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 13, 2026
EffortlessSteven and others added 5 commits November 13, 2026 01:24
…#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>
@EffortlessSteven
EffortlessSteven force-pushed the fix/14016-test-local-rival-control branch from 4615b5b to b3fe075 Compare November 13, 2026 06:41
@EffortlessSteven

Copy link
Copy Markdown
Member Author

Source inspection record — fix/14016-test-local-rival-control @ 1506f9a

disposition: SOURCE_REVIEW_READY (source scope only; final merge review remains separate)

Subject

Delta

git diff --name-status origin/main 1506f9a43e — 7 files:

  • changelog.d/14016-test-local-rival-control.md (added)
  • fixtures/evidence-promotion-honesty-corpus/cases/rust_test_local_rival_import_control.json (added)
  • fixtures/evidence-promotion-honesty-corpus/corpus.json (one report_digest_required entry)
  • fixtures/evidence-promotion-honesty-corpus/repo-exposure-subjects/test-local-rival-import-control/Cargo.toml (added)
  • .../src/lib.rs (added)
  • .../tests/control.rs (added)
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-test-local-rival-import-control.json (added)

No crates/, xtask/, Cargo.toml or Cargo.lock delta; no analyzer, matcher or support-tier change.

Head lineage: 1506f9a43e is one commit past b3fe075702. That commit changes only two report metadata lines (content_sha256, generated_at, root, analyzer_version, workspace_manifests_hash); judged seams, metrics and source_subject digests are identical. git diff b3fe075702 1506f9a43e over code paths is empty, so the capture's analyzer code matches the pushed head.

Capture validation

  • cache_schema_version 1.180 equals CACHE_SCHEMA_VERSION at 1506f9a43e (crates/ripr/src/analysis/seam_cache.rs:740).
  • Subject digests: src/lib.rs 858593f0ceccb8663eff702f2aba4cfe384a6692e7f4befc072a4fd301ba4c15; tests/control.rs 77a03531297d9b6e753ace6c76ca60d5e3a292973451d0f8f4d056273fe00a55; files_content_hash 5a11e3c4b6721e42.
  • 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: 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].
  • The report's temporary root/head metadata is provenance, consistent with the existing bare-use and glob-use reports; it is not staleness.

Gate

cargo xtask check-evidence-promotion-honesty at 1506f9a43e exits 0:

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

  • test_calls_only_through_local_rival_module forced true: control reads ungripped, reach no, related_tests_total 0, observed_values []. Gate exits 1, names rust_test_local_rival_import_control, and reports committed strongly_gripped against analyzer ungripped.
  • Same function forced false: control stays strongly_gripped, reach yes, related_tests_total 1, observed_values [100]. Only rust_repo_exposure_test_local_rival_bare_use_not_promoted and rust_repo_exposure_test_local_rival_glob_use_not_promoted read activation_unknown, reach yes, related_tests_total 1, oracle weak, relation direct_owner_call, observed_values [] (their assertion of 777 contradicts the owner fold of 90). Gate exits 1 naming exactly those two cases and not the control.
  • Guard restored: gate exit 0.

Integration

  • git merge-tree --write-tree origin/main 1506f9a43e = 89d8aa59ca8af95760a13916c89f72d9dada3515, exit 0.

Not checked

  • cargo nextest lane: not installed on this host.
  • Hosted CI on this head at review time.
  • Native-platform (non-Windows) goldens.

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

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_module forced true: this control reads ungripped, reach no, related_tests_total 0, observed_values []; the gate exits 1, names rust_test_local_rival_import_control, and reports the committed strongly_gripped against the analyzer's ungripped.
  • The same function forced false: this control stays strongly_gripped, reach yes, related_tests_total 1, observed_values [100]; only rust_repo_exposure_test_local_rival_bare_use_not_promoted and rust_repo_exposure_test_local_rival_glob_use_not_promoted read activation_unknown, reach yes, related_tests_total 1, oracle weak, relation direct_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)

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Convergence claim (2026-11-26 13:48 UTC, this session). This PR is 596 commits behind main and its committed capture records cache schema 1.184; main is at 1.206, which is the refusal that ejected it from the queue on 11-20.

In progress, locally and unpublished so far: main e719ca4169 merged into the PR head b2aeee6866 (the PR head stays the first parent), the one conflict resolved in report_digest_required by keeping both sides' entries, and the control's report recaptured with a ripr built from that merged tree against a portable copy of the subject. Field-by-field against the earlier capture, only five metadata fields moved (cache_schema_version, analyzer_version, workspace_manifests_hash, generated_at, content_sha256); every seam, grip class, evidence stage, related test and evidence record is identical, so the control reads the same on today's analyzer.

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 fix/14016-test-local-rival-control until then.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Review of the converged head 3f414e159b002277f3c26776eda4b662fbd9c9b8 (this session, 2026-11-26)

What this head is. 3f414e159b002277f3c26776eda4b662fbd9c9b8 is the published head b2aeee6866 plus two commits: a merge of main e719ca4169 (53a819de67, the PR head as its first parent) and one commit that recaptures the control's report. The PR's own change against that main is the same seven files as before and no Rust source: one corpus case, one Cargo subject (Cargo.toml, src/lib.rs, tests/control.rs), one captured report, one report_digest_required entry and one changelog fragment.

Why it was stalled. The branch was 596 commits behind and conflicting. Its capture recorded cache schema 1.184; the honesty gate refuses a capture whose generation differs from the analyzer's constant, which main had moved to 1.206. That is the refusal that removed the PR from the queue on 11-20.

The conflict. One hunk, at the end of report_digest_required: both sides had appended to the list. Both are kept, main's three entries then the control's. The merged list has 72 unique entries (main has 71) and the 790 case ids stay unique. Nothing else in corpus.json differs from main.

The recapture. ripr was built from the clean merged tree 53a819de67 on Linux; the subject was copied to /tmp/sj-test-local-rival-import-control, the convention of the sibling captures, and read with ripr check --mode draft --format repo-exposure-json --root. A field-by-field comparison with the earlier capture finds five metadata differences and no others: cache_schema_version (1.184 to 1.206), analyzer_version, workspace_manifests_hash, generated_at and content_sha256. The three seams (ids, kinds, lines, owners, expressions), the grip classes, every evidence stage and evidence path row, the related test (real_owner_boundary at tests/control.rs:10, strong on the predicate and the first return, weak on the second, direct_owner_call), the observed values, the missing discriminators and the whole evidence_record are identical. The report carries no path other than the portable root.

Review of the change on this head.

  • The subject is the bare-use sibling (test-local-rival-bare-use) with the one intended difference: the test file imports the real owner (use test_local_rival_import_control_subject::discounted_total;) instead of the local module (use local::discounted_total;). The test name, the expected value (90, the owner's, where the sibling expects the rival's 777), the file name and the formatting follow from that; src/lib.rs has the same logic.
  • The guard is entered for this test rather than bypassed, as the description says. The related-test reader in crates/ripr/src/analysis/test_grip_evidence/related_tests.rs reaches test_calls_only_through_local_rival_module only when no call identity exists, the owner is a free function and same_name_count > 1. All three hold: the rival in tests/control.rs raises the count to 2, and a rival in another crate class leaves no identity (call_identity.rs, OwnerCallIdentity::new_with). The finding-level reader in classify/related_tests.rs calls the guard in its own branch. The guard returns false on its own reading: the bare call is bound by the file's use to the real crate, not to the local module that defines the rival. The sibling resolves to local and is withheld.
  • The two assertions in the case (expected_repo_seam_grip, expected_repo_seam_related_test) match the report field for field. They are what the gate enforces. The case keys vector and control are corpus convention and are not read by any gate; the description does not claim otherwise.
  • An independent read-only reviewer (no build, no edit) went through the subject pair, the guard's callers, the case against the report, the recapture against the earlier capture, the corpus lists, the companions a new case might need (denominator floor, traceability, spec, fixture contracts, generated-path declarations) and the changelog fragment rules, and reported no blocking or should-fix finding. Its three notes are naming only: the report, case and subject names do not follow the siblings' rust-repo-exposure-* family (so the report's lines are counted in admission like any other file), and the subject's package name has its own prefix.
  • Nothing else in the tree must change for a new case: policy/fixture-denominator-floor.txt lists existing subjects and a new one simply counts; the commit that added the two siblings (cb13bf3aca) added no traceability fragment; RIPR-SPEC-0108 does not enumerate cases.

One stale sentence in the description's older proof log. It says a blanket guard makes the gate name rust_test_local_rival_import_control plus same_named_call_kinds_not_promoted. The second name is the sibling honesty case rust_repo_exposure_same_named_call_kinds_not_promoted. On today's analyzer the blanket guard turns this control only; the gate names no other case.

Proof on this head. Linux (WSL), the head as it stands (3f414e159b, which already contains main e719ca4169):

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)

…4016)

The tree is identical to 3f414e1. GitHub recomputes a pull request's
test merge only when its head changes, and the pre-label corpus check
requires the published composition to name the current base.
@EffortlessSteven

Copy link
Copy Markdown
Member Author

Head dd5d718b7fd4e9eb2f46162c02a070362e9a89d8 is 3f414e159b plus one empty commit; the tree is byte-identical (f2a0496dcc6e219612abb1c2a3a759d9fdff9634). GitHub recomputes a pull request's test merge only when its head changes, and main had moved to b906c30759 since the last push, so the pre-label corpus check kept refusing the published composition as stale. The empty commit refreshes it. The proof in the record above ran on this same tree. cargo xtask check-evidence-promotion-honesty --pre-label 14481 main now exits 0 on the composition of main b906c30759 and this head: 127 reports and 30 historical pins at generation 1.206.

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

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 -- --check and cargo xtask check-evidence-promotion-honesty exit 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 names rust_test_local_rival_import_control alone: all three of its seams read ungripped and 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, each ungripped to activation_unknown; the control is not named.
  • cargo xtask check-evidence-promotion-honesty --pre-label 14481 main on the published composition of main b906c30759 and 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.

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready is set, but this PR conflicts with main (head dd5d718b), so GitHub creates no test-merge ref and no qualification run can start. 1. Merge main into the branch and resolve the conflicts. 2. Remove and re-apply merge-ready to request admission and qualification only. 3. After qualification is green, enqueue the PR through the native queue route; re-applying the label does not enqueue it.

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

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 of report_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-json on an out-of-repo copy of the subject at the original capture path. A structural diff of old against new shows only analyzer_version, workspace_manifests_hash, content_sha256, generated_at and cache_schema_version changing. 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

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 28, 2026

Copy link
Copy Markdown
Member Author

The native Rust gate stopped on one specific custody mismatch: rust-test-local-rival-import-control.json records cache generation 1.228 while the built analyzer is 1.229 after #16504. Successor groups have rebuilt without this candidate. On a fresh composition with protected main, recapture this one report using the built analyzer and the identical fixture subject, rather than editing the envelope or pinning the old generation. Verify that the selective control’s intended witness/disposition is unchanged, then rerun the exact generation and evidence-promotion checks before fresh review and admission.

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

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.json recaptured with ripr check --mode draft --format repo-exposure-json on an out-of-repo copy of the subject, using the binary built from this merged tree. A structural diff of old against new shows only analyzer_version, workspace_manifests_hash, content_sha256, generated_at and cache_schema_version changing. 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

Copy link
Copy Markdown
Member Author

Correction to my review on 7f55f9c7de: when I posted it, the --pre-label run it reports as passing had not completed (the local build failed on a full disk and I did not check the exit status before posting). I have now run it for real: cargo xtask check-evidence-promotion-honesty --pre-label 14481 main passes on composition 8f01e263f5 (base b32e2004a4, head 7f55f9c7de), 129 reports and 12 historical pins checked at generation 1.229. The plain honesty gate result in that review was genuine.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 29, 2026
Merged via the queue into main with commit 10fd2b2 Nov 29, 2026
19 checks passed
@EffortlessSteven
EffortlessSteven deleted the fix/14016-test-local-rival-control branch November 29, 2026 02:47
EffortlessSteven added a commit that referenced this pull request Nov 29, 2026
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>
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.

2 participants