Repository navigation
fix(rust): retain snapshot-helper limitations across nested macros and capped rows - #9697
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 35 minutes. View limit details
|
There was a problem hiding this comment.
Decision
- Needs focused proof failure resolved before upstream.
Refuted
- The new limitation can rely on an incomplete retained related-test window.; refuted because: The scope qualifier is computed from complete admitted reveal rows before capping; display rows remain the sole source for witness selection.
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked --package ripr --test agent_command_journey. This is a current failure, not a red/green witness.
Evidence gaps
- Current executable proof of the changed Rust behavior is not yet available in the packet.
- Model proof intent was rejected by deterministic validation.
- Current executable proof for the changed public API route was not present in the lane packet.
- Current cargo-test execution is pending in the evidence packet, while the PR body reports only base or earlier-head passes as authoritative.
|
Prerequisite landing handoff to the existing owner: #9701 is the accepted main-build repair, merged13:34:28 UTC as7ed8a4af6df05a45dea9a19da36c65ca8b457af6 and independently verified on main. Required39781755670 passed on reviewed headc318250d, with19113tests and full downstream gates including Schema producer sweep. #9699 and #9709 are closed as superseded; incident#9703 is completed with receipt6342126723. Resume the already-owned integration/repair, not the old broken-head run. Verify this repair is present in the actual composed candidate and reconcile your own remaining findings, intended file set and affected review/proof before the applicable qualification transition. This landing clears only the unbound-subject prerequisite, not this PR's independent failures or holds. Preserve existing author custody and current main expectations; no duplicate writer, background qualification or CI dispatch was started by this handoff. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Disposition: REVIEW_INCOMPLETE for exact published head2549b42854ca6d19acd3d9586c2e151811eb1335 (treeef7cef46ac7511854ccb8ce69b274056159f71d2). This author COMMENT records substantive independent review, not approval.
Inspected semantic owners/consumers: Rust macro-input masking and bare owner-call attribution; complete admitted reveal rows before display cap; private reveal-to-classifier boolean after helper-uniqueness withholding; free-owner/final-class/retained-witness gates; shared macro limitation guidance; public controls, cache generation/mirrors/fixture commitment bindings, SPEC0120 and traceability. Independent composition review of actual remote mergef8af78365f291784b6331e5601b7e4a778d86c12/treee0c0ce5d1f79b1a0b076e4886c90716befdd4480 (parents7ed8a4af6df05a45dea9a19da36c65ca8b457af6 +2549) found no blocking interaction with main's implicit-observer admission or repaired artifact subject binding.
No remaining source/test-oracle findings. Complete pre-cap analysis retains direct-oracle, refused-direct and unknown-relation oracle vetoes. Hidden rows supply neither macro witnesses nor repair targets; an unqualified retained capped window still refuses the limit. The scanner skips opaque nested inputs, not all arguments containing one, with a source-ordered cursor. It does not expand macros or promote exposure. Current source guard is an equivalent Option::is_none_or form repairing the observed candidate-owned Clippy lint, not suppressing it.
Fresh current proof: public local_snapshot_helper_limit5/5, agent_command_journey17/17, product build and named macro golden all native0. Independent reviewer verified the frozen product's actual Cargo artifact, full2549 version, size133431632 and SHA256db2cd7657b09a6f8f007863181064c6dde8d7d68eb6f75bb50fc9d9388a51d6d before/after. Twelve fresh CLI executions (10JSON,2HumanFull), all native0, establish actual mined1WeaklyExposed/11total8retained/namedlimit/no gap/actionunsupported_or_limited/neutral guidance; no-op, shadowed helper and mismatched expected never expose; wrong-owner/nested-only and their capped controls retain no limit; capped positive13/8 limits. Independent source/runtime inspection is carried separately; no reviewer Cargo/runtime-test reruns. Current receipts retained under /workspace/evidence/9644/independent-review/final-2549/receipt.json and composition-e0c0.json.
Prior observations addressed: initial quadratic scanning/setup/doc ambiguity repaired; stale actionable recommendation repaired in shared output and all three golden projections; actual original11-to8 row repaired through complete producer evidence. The automated complete-scope objection is source-refuted by the pre-cap fact plus retained witness. Its old focused agent_command_journey failure cause remains NOT_ESTABLISHED: artifact12426049919 delivery was denied proxy CONNECT403Forbidden before bytes and all same-data acquisition routes stay held. Already-read reporter compileE0425 logs are distinct from that hidden focused stderr. The fresh current17/17 test is independent current product proof, not a claim about the old artifact.
Missing: running current check-fast/precommit/honesty/Rust-corpus/dogfood terminal results, refreshed live conversation/workflow inventory, actual required combined-tree qualification including executed #9560 Schema producer sweep, and final exact-head integration review. No merge-ready request or merge yet. Gemini/CodeRabbit quota output is missing review, never clean. Known protection/settings and native CLI GraphQL acquisition holds remain unchanged; no affected GraphQL request was issued here.
Boundaries: helper name and exact expected text provide no analyzer exposure authority. Original helper's trim_end comparison distinguishes negativezero/zero/empty in retained runtime proof but does not establish exact-byte whole-document recall. Corpus-owner #9669, #6642 and distinct #9643 lane remain separate. No workflow/dependency/process/security setting/release/production-producer changes. Root retains normal integration responsibility after this review turn.
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm no live cargo-test receipt for the new local_snapshot_helper_limit.rs target in the seeded packet; only the file addition + positive unit in reveal.rs is sourced. Compilation correctness is a precondition for red/green claim.
Refuted
- The earlier focused agent_command_journey failure is current proof of a regression.; refuted because: The seeded thread identifies it as an incomplete/current packet concern, while the available cargo-test receipt is still scheduled and the ripr sensor failed rather than providing a product result.
Evidence gaps
- Current executable proof for the changed Rust route remains unavailable, so the new behavior is not fully qualification-ready.
- Current executable validation of the changed route is not present in the packet; the prior summary reports successful historical runs, but the scheduled cargo-test receipt has not landed.
- Model proof intent was rejected by deterministic validation.
- Current-head proof is incomplete despite adequate source-level controls.
|
Integration continuation for the existing #9644 delivery owner, bound to published head 2549b42 and actual merge f8af783 (tree e0c0ce5d1f79b1a0b076e4886c90716befdd4480; parents 7ed8a4a + 2549b42). The current independent source/composition review remains applicable; no source delta or new source blocker was observed. The old denied artifact acquisition and protection/native GraphQL holds remain unchanged. New hosted evidence: wheel run 39790158411 completed successfully. Its jobs actually passed package source validation, wheel construction, metadata/RECORD/payload negative controls, and clean pip and uv installation/useful Python journey/reinstall/uninstall. The pinned MCP advisory job was skipped and is not counted as passed execution. This is package evidence, not the required combined-tree qualification. Next executable owner transition: consume the retained current native check-fast/precommit/honesty/Rust-corpus/dogfood driver rather than launch another build. Publish terminal exits, executed/filtered/skipped denominators, candidate/source identity and retained receipt locations as each result is available. If the driver was interrupted or is no longer active, recover its native terminal status and logs in its owning execution context before choosing continuation; do not infer failure or success from an unchanged PR body. The last durable record still marks that sequence running. After the current native proof and body-shape check are satisfied, complete the normal Draft-to-Ready handoff and apply merge-ready last, once, after reconciling existing request/run state. Required qualification must bind the actual combined tree and execute the Schema producer sweep. Keep owner custody, current main expectations and existing proof holds; no duplicate writer, native build or CI request was started here. Final exact-head integration review and normal protected expected-head squash remain the delivery endpoint, not another coordinator approval gate. |
|
New executed combined-tree finding: current ub-review artifact12432012844 (SHA256874a1b077c53ea42a7ce91f0f3058cb264f5283937bd6b411dbe0c23875048f4) binds clean integration f8af783 =7ed8+2549. Its cargo test --workspace --all-targets --locked sensor exits101: cli_smoke::first_useful_action_corpus_pins_routing_cases fails at cli_smoke.rs7528 on receipt provenance.630 sibling CLI tests pass; later targets are not complete-suite proof. Separate agent_command_journey genuinely passes17/17; that does not dispose of this failure or prove local_snapshot_helper_limit. Independent reviewer /root/advance_postrepair_integration reproduced the exact raw-hash assertions from pinned repository bytes: main7ed8 matches all3 provenance commitments; head2549 and mergef8af mismatch all3. Under fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/, before.repo-exposure.json and after.repo-exposure.json now hash7905d9d5831a7819974bf1f3059f02438c7e32f5eb8e8dbc663b17473544d61e, while unchanged agent-receipt.json storesc81e8c55f54ffa40b5d107b4df00904deb04dd0993bf44c28b69af9a1e0d8e62. agent-verify.json now hashes0b6a50164d6cd8376af424d36d079ce9ba79d2ed1af8de2322849e91071d7afc, but receipt stores621f955ff53c498c7bc6c6417b5df74f528f783e91ad53ca608982f73a43adee. The receipt blobccdebf876f9b928b25b9c8a9914c9cec31df9f2e is unchanged from main. Existing writer: regenerate the portable receipt from the actual current verify/snapshot producer outputs and close the complete provenance chain, not blind hash substitution or weakened assertions. Refresh the focused cli_smoke contract and applicable cached-fixture gates, then affected exact-head review and remaining native proof. This is candidate-owned fixture closure, not the resolved main compiler prerequisite. No second writer/build/CI was started by this investigation; keep Draft until the owned repair/proof is complete. |
|
Updated integration handoff to the existing #9644 writer. This supersedes the historical three-hash repair instruction in6343080806 for the next composition; the old2549/f8af failure remains valid historical evidence. At16:42, this PR remains Draft2549b42854ca6d19acd3d9586c2e151811eb1335; GitHub reports mergeable=false, dirty and no merge SHA. Current main8bed38f5fa669caf29d72011eee9deb0bc3a7053 includes #9682/8fbe8bd1598e0b11752c6c989aa54198a0510a2f, which already uses cache1.93/0.100/0.100 for Display semantics and repaired unchanged-after-attempt receipt provenance. Its snapshots/verify equal the candidate's changed blobs; receipt ec3fbb1c7881e0335a2c0c31c67a56c270744f87 correctly binds them. Preserve that accepted closure, not blind historical hash substitutions. Current main still lacks this PR's nested-input scanner and complete-admission qualifier, so the analyzer claim remains distinct. Existing writer: reconcile actual conflicts in this same candidate, preserve both semantic changes, and establish a fresh cache generation against the actual integration basis. Refresh coupled mirrors and regenerate the complete normalized producer/verify/receipt chain. Prove first_useful_action_corpus_pins_routing_cases, affected helper/cache controls and remaining native gates; publish exact terminal receipts before Ready. Historical local/combined-tree results retain their original identities. Then refresh affected exact-published-head review and the normal qualification handoff, verifying current combined-tree checkout and executed Schema producer sweep before protected expected-head squash. No second writer, driver or CI request has been started by this review. |
|
Independent continuation for the existing #9644 writer; custody remains with that saved-cloud lane. This extends the integration basis in 6346105192, whose composition instruction still controls. Observed current state: Draft head New basis to preserve: main also contains #9694, #9750 ( Executed independent evidence, not product qualification:
Live check inventory has 9 successful and 16 skipped check runs; the required CI workflow remains skipped, not a combined-tree pass. Three COMMENT reviews and zero inline threads were read; no APPROVED review is present. The old packet concerns remain distinguishable from fresh runtime proof. No hosted run was requested, retried or cancelled. Next executable owner transition: recover the original native driver/session and terminal receipts in its owning context; then compose the actual seven conflicts in this same candidate, choose a fresh generation beyond the actual basis, refresh coupled mirrors, and regenerate the normalized snapshot → canonical verify → receipt chain from real producers. Prove The native |
|
Refreshed technical conflict proposal for the existing #9644 writer, continuing 6355567765. No source custody transfer, canonical push, replacement driver or qualification is claimed. Current pinned objects: Draft head Historical versus current: the previously prepared Two new integration judgments:
let complete_proximity_oracles_only = only_proximity_oracles(&analysis.related);
let owner_calls = owner_call_demoted_rows(probe, related_tests);
let (related, related_tests_total) =
finalize_related_tests_with_owner_calls(analysis.related, diff_touched, &owner_calls);The exact marker-blob resolution patch is SHA256 Four-file cache/mirror proposal: choosing only main's conflict hunks in these four files yields their exact current main blobs. Preserve the candidate's other auto-merged source/spec/tests/traceability/guidance changes. This patch is SHA256 Exact static proposal against 97df16c--- a/crates/ripr/src/analysis/seam_cache.rs
+++ b/crates/ripr/src/analysis/seam_cache.rs
@@ -499,7 +499,10 @@
/// (#9440). Old entries keep it weakly exposed.
/// `1.97`: effect-family assertions share execution admission (#8927). Old
/// entries credit an assertion that provably never runs.
-pub(crate) const CACHE_SCHEMA_VERSION: &str = "1.97";
+/// `1.98`: retain the opaque assertion-macro limit beside nested expected
+/// inputs and across a capped display window when complete admitted reveal
+/// rows qualify it (#9644). Old entries keep the weak gap.
+pub(crate) const CACHE_SCHEMA_VERSION: &str = "1.98";
/// `0.2` → `0.3`: same semantic transition as the outer cache (#3273 /
/// #3286) — sharded entries derive from the same facts and cannot bypass
/// the outer generation bump.
@@ -643,7 +646,8 @@
/// `0.102`: same local-macro wrapper limit as full `1.95`.
/// `0.103`: same pinned-shape limit as full `1.96` (#9440).
/// `0.104`: same effect-assertion execution admission as full `1.97` (#8927).
-const SHARDED_CLASSIFIED_SEAM_CACHE_SCHEMA_VERSION: &str = "0.104";
+/// `0.105`: same nested-input and complete-scope macro limit as full `1.98`.
+const SHARDED_CLASSIFIED_SEAM_CACHE_SCHEMA_VERSION: &str = "0.105";
/// Compact-classified seam cache schema. This cache stores the same
/// `ClassifiedSeam` envelope shape as the full repo exposure cache, but
@@ -789,7 +793,8 @@
/// `0.102`: same local-macro wrapper limit as full `1.95`.
/// `0.103`: same pinned-shape limit as full `1.96` (#9440).
/// `0.104`: same effect-assertion execution admission as full `1.97` (#8927).
-pub(crate) const COMPACT_CLASSIFIED_SEAM_CACHE_SCHEMA_VERSION: &str = "0.104";
+/// `0.105`: same nested-input and complete-scope macro limit as full `1.98`.
+pub(crate) const COMPACT_CLASSIFIED_SEAM_CACHE_SCHEMA_VERSION: &str = "0.105";
/// Compact class-count cache used by repo badge rendering. It keys off
/// the same workspace state as the full fact cache, but stores only
@@ -4761,7 +4766,8 @@
// 1.94 -> 1.95: local macro wrapper beside a proximity oracle (RIPR-SPEC-0120, #7089).
// 1.95 -> 1.96: pinned-shape limit (RIPR-SPEC-0240, #9440).
// 1.96 -> 1.97: effect assertions require execution admission (#8927).
- assert_eq!(CACHE_SCHEMA_VERSION, "1.97");
+ // 1.97 -> 1.98: nested-input and complete-scope macro limit (#9644).
+ assert_eq!(CACHE_SCHEMA_VERSION, "1.98");
// 0.12 -> 0.13 through 0.14 / 0.15 / 0.16 / 0.17 / 0.18: same
// #3731 semantic transition as the outer classified-seam cache,
// for the sharded and compact envelopes.
@@ -4847,8 +4853,9 @@
// 0.101 -> 0.102: same local-macro wrapper limit as full 1.95.
// 0.102 -> 0.103: same pinned-shape limit as full 1.96.
// 0.103 -> 0.104: same effect assertion admission as full 1.97 (#8927).
- assert_eq!(SHARDED_CLASSIFIED_SEAM_CACHE_SCHEMA_VERSION, "0.104");
- assert_eq!(COMPACT_CLASSIFIED_SEAM_CACHE_SCHEMA_VERSION, "0.104");
+ // 0.104 -> 0.105: same nested-input and complete-scope macro limit as full 1.97.
+ assert_eq!(SHARDED_CLASSIFIED_SEAM_CACHE_SCHEMA_VERSION, "0.105");
+ assert_eq!(COMPACT_CLASSIFIED_SEAM_CACHE_SCHEMA_VERSION, "0.105");
}
#[test]
--- a/crates/ripr/tests/lsp_lifecycle/gap_corpus_currentness.rs
+++ b/crates/ripr/tests/lsp_lifecycle/gap_corpus_currentness.rs
@@ -13,7 +13,7 @@
mod fixture_git;
const GAP: &str = "gap:54c07ec8eeadf203";
-const CURRENT_CORPUS_CACHE_SCHEMA_VERSION: &str = "1.97";
+const CURRENT_CORPUS_CACHE_SCHEMA_VERSION: &str = "1.98";
const SEAM: &str = "67f9714ba37b3967";
const SOURCE: &str = "pub fn discounted_total(amount: i32, threshold: i32) -> i32 {\n if amount >= threshold {\n amount - 10\n } else {\n amount\n }\n}\n";
const PRICING: &str = "use ordinary_shop::discounted_total;\n#[test]\nfn below_threshold_has_no_discount() {\n assert_eq!(discounted_total(50, 100), 50);\n}\n#[test]\nfn above_threshold_discounts() {\n assert_eq!(discounted_total(1_000, 100), 990);\n}\n";
--- a/docs/OUTPUT_SCHEMA.md
+++ b/docs/OUTPUT_SCHEMA.md
@@ -18474,7 +18474,7 @@
- `digest_algorithm`: always `"sha256"`.
- `corpus` (additive, full Rust inventory only): the analysis-owned
- `{ "scope": "rust_workspace", "cache_schema_version": "1.97",
+ `{ "scope": "rust_workspace", "cache_schema_version": "1.98",
"files_content_hash": "<16 lowercase hex digits>" }` from the actual
classified inventory cache key, including both production and test Rust
files after the existing generated-file exclusions. This is the existing
@@ -19242,7 +19242,7 @@
"recomputation_reasons": ["selected_test_scope_recomputed"],
"invalidation_status": "not_available",
"input_fingerprint": {
- "schema_version": "1.97",
+ "schema_version": "1.98",
"analyzer_version": "0.11.0+0123456789abcdef0123456789abcdef01234567",
"workspace_root_hash": "…",
"files_content_hash": "…",
--- a/xtask/src/tests/rust_corpus_projection.rs
+++ b/xtask/src/tests/rust_corpus_projection.rs
@@ -16,7 +16,7 @@
mod fixture_git;
const GAP: &str = "gap:54c07ec8eeadf203";
-const CURRENT_CORPUS_CACHE_SCHEMA_VERSION: &str = "1.97";
+const CURRENT_CORPUS_CACHE_SCHEMA_VERSION: &str = "1.98";
const SEAM: &str = "67f9714ba37b3967";
const SOURCE: &str = "pub fn discounted_total(amount: i32, threshold: i32) -> i32 {\n if amount >= threshold {\n amount - 10\n } else {\n amount\n }\n}\n";
const PRICING: &str = "use ordinary_shop::discounted_total;\n#[test]\nfn below_threshold_has_no_discount() {\n assert_eq!(discounted_total(50, 100), 50);\n}\n#[test]\nfn above_threshold_discounts() {\n assert_eq!(discounted_total(1_000, 100), 990);\n}\n";New executed evidence is textual/byte-level only: Producer-dependent closure remains four files: regenerate both first-action snapshots from the actual composed-head product using the existing portable producer normalization; retain actual evidence/input identity/corpus hash and recommit exact bytes. Then emit canonical Smallest owner acceptance checkpoint: one actual reply/native task receipt from the existing saved-cloud #9644 writer binding (1) same candidate plus actual checkout HEAD/unpublished work and owned target, (2) original driver/session and logs with either live owning handle or native terminal result, and (3) acceptance of these two current patch hashes and real producer-chain closure on this basis or a verified successor. If running, reattach/wait without changing consuming source; if terminal, read its result before joining the repair in the same candidate. An absent reply is not permission for a second writer. Next owner proof must cover #9225's opaque reaching allowance, #9903 retention, complete-row direct/refused/unknown vetoes, public helper controls and the real first-action producer/receipt path, then remaining affected native gates and exact-head review. Required CI, executed Schema producer sweep, GitHub approvals and final protected expected-head merge remain pending. Existing artifact-acquisition/equivalent-data, protection/settings and native GitHub CLI GraphQL holds remain unchanged. Portable proposals/receipts are retained in |
|
Independent current-main integration evidence for the existing #9644 writer, extending 6368931471. Canonical writer custody is unchanged. Existing exact-head product/API/12-CLI evidence is reused, not repeated; the original native driver's terminal status remains unknown. Frozen reviewed identities (2026-10-25 UTC): published head New integration seams:
New executed source-consumer control: extracted the actual current-main Next sole-writer action: recover the original driver identity and terminal logs in its owning context, then integrate in this same candidate. Preserve role-based eligibility and complete pre-cap direct/refused/unknown-oracle vetoes. The legacy predicate also reads Disposition remains REPAIR_REQUIRED / REVIEW_INCOMPLETE. Current composed-product actionability and complete qualification are unverified. No conservative helper non-goal is promoted to a defect; no branch edit, rival writer, duplicate product build, toolchain installation, hosted dispatch, Ready or merge occurred. Existing artifact/equivalent-data, protection/settings and native CLI GraphQL holds remain intact. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Disposition: REPAIR_REQUIRED / REVIEW_INCOMPLETE for 2549b42854ca6d19acd3d9586c2e151811eb1335. Independent source review against main aeeeddacd1e24f3b04e713572717e7b172966431.
P1 — Bind a capped-path macro witness to the retained test's start line. The new apply_complete_proximity_macro_limit calls find_unresolved_assertion_macro_witness, which scans all indexed tests but joins them to retained rows using only name and file (lines 515–518). Parser extraction stores the bare function name and a separate start line. Thus two #[test] fn same() functions in different inline modules can share name/file. A retained direct row without a macro can authorize the other, hidden test's assert_data_eq!(owner(), snap_str![["x"]]) as a witness. The incomplete identity join is inherited; the newly enabled capped route makes the explicit “hidden rows never supply a witness” claim false.
Repair the join with related.line == test.start_line. Add a regression with a retained direct test lacking the macro, a hidden same-name/same-file test containing it, a proximity oracle and a genuinely capped window; assert that the hidden test cannot supply the limitation. Keep a positive control where the exact retained test contains the macro. This is a high-confidence source-traced counterexample, not an executed analyzer reproduction. Existing public controls do not distinguish these identities.
Current integration remains unqualified. Actual git merge-tree --write-tree for the named main/head exited 1 with nine conflicted files; inspection tree 282acbccb3f4d95c6b5e5a3c8b5b2cb2892aa414 is unresolved, not a build subject. Preserve main's owner-call retention and build_finding_with_origins(..., value_origins) while joining the pre-cap scope fact. The new only_proximity_oracles still calls retired is_unmatched(); use current role authority and retain the direct/refused/unknown-oracle veto from genuine producer information rather than extending explanation-only miss as admission authority. Main's cache generations are now 1.110 / 0.117 / 0.117; previously proposed numbers are historical. Regenerate the real snapshot → verify → receipt chain after composition.
Inspected: nested opaque-input masking, direct-owner/free-function/final-class gates, complete pre-cap scope, retained witness selection, public test controls, neutral output guidance, current classifier/role interfaces and composition. The scanner's bounded exclusions remain conservative. Neither helper spelling nor expected text establishes exposure credit. The complete-scope boolean does not make the retained window complete or turn hidden rows into repair targets.
Observed: no unresolved inline threads; all 13 head-associated workflow runs are terminal, and the 25 check runs contain no Ripr Rust Small Result. The advertised merge ref remains historical f8af78365f291784b6331e5601b7e4a778d86c12. Earlier behavioral receipts retain their original scope; no product tests or qualification were repeated in this inspection. Exact composed-head execution, required checks with complete subject verification, executed Schema producer sweep and final independent review remain outstanding. Shared #10586 repair stays with its existing owner.
Next source transition remains one joined repair on this existing candidate. Exact snapshot credit, general macro expansion, feature-gated collection and the separate #9669 corpus work remain outside this repair.
|
Executable continuation of review 5648078741, bound to published head The public-API reproduction confirms namesake borrowing: the retained With identical test assertions, unchanged published production produced 4 passes / 1 intended failure, exit 101. An isolated experiment adding only Scope correction: this head deduplicates related tests by name/file before capping. The same-name case has 9 total / 8 retained rows; the renamed case has 10 / 8. Execution establishes an unretained indexed witness influencing the capped path. It does not establish that display truncation itself removed the namesake, or that the retained window is complete. Disposition remains REPAIR_REQUIRED / REVIEW_INCOMPLETE. The existing #9644 writer should join the identity repair and regression with the outstanding integration work on this candidate. Source-custody request: please record continued integration ownership, or explicitly hand off this existing branch after accounting for unpublished source changes and required evidence. Include the committed source identity and next responsible writer so continuation preserves unique work. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Review of record (exact-head sweep, head 2549b42854ca6d19acd3d9586c2e151811eb1335)
Independent read-only sweep of the full 22-file REST diff and the head-tree source (git show/git grep at the head SHA). No substantive review of this head exists within 48h - the latest (review 5648078741, 2026-10-26) is four days old - so this fresh review posts. It independently re-verifies that review's open P1 and adds two new P2 findings.
Verified
- Diff matches the body's claimed scope: bounded analyzer repair (reveal oracle-scope boolean, capped-route macro limit, nested-macro-input-aware scanner), new public-API test file, SPEC-0120 + traceability + slice + changelog fragment, cache generations, three golden guidance edits. The body carries
Governing issue or accepted claim:(#9644) andAcceptance deltafields. - The shared
only_proximity_oracles(reveal.rs:4476) is behavior-preserving against the retired oracles.rs body: same!is_unmatched()filter asoracle_related_tests(), same!is_proximity_only(reason) && reason != OwnerNamedTestdirect classification, same refused-assertion veto; theWeaklyExposed+ complete-window gates stay at oracles.rs:457-466. - Pre-cap evaluation is fail-closed: the boolean is computed on complete admitted rows before
finalize_related_testscaps; retained rows are a subset, so vetoes computed pre-cap can only suppress the limit, never fabricate it. - Capped and uncapped routes are mutually exclusive (
total > lenvs its negation) and single-application; running afterwithhold_helper_uniqueness_as_unknownis safe (that pass only rewritesNoStaticPathtoStaticUnknown, blocked by theWeaklyExposedgate). Language gating is structural - the classifier entry takes&RustIndex. macro_input_rangescursor logic checked on nested, sibling, and disjoint inputs,bulk!(1)(2),other.bulk(1), path-qualified calls, and unbalanced input (returnsNone-> no witness -> gap stays). Masking replaces strings/comments with spaces (mask_rust_comments_and_strings, probes.rs:334-341), so a!inside a string cannot fabricate a nested input; the'refusal precedes the walk.- The new tests discriminate: the positive fails on the pre-diff scanner (any nested invocation in the args refused every witness); the capped test first asserts
related_tests_total() > related_tests.len()(rows are per (name, oracle) with render cap 8, so 12 oracle rows + 1 really truncate); negative controls pin binding / nested-only / wrong-owner / no-op helper / shadowed helper / shadowedassert_eq!/ mismatched expected as should-stay-weakly_exposed. - The three golden edits are semantically justified, not a wrong-result re-bless: an unresolved custom-macro witness must not prescribe "Add a meaningful assertion", matching the SPEC-0120 paragraph this PR adds.
- Cache generations advanced consistently (1.93 / 0.100 / 0.100) across
docs/OUTPUT_SCHEMA.mdexamples, bothCURRENT_CORPUS_CACHE_SCHEMA_VERSIONconsts, and the boundary_gap digests; grep at the head found no remaining1.92/0.99mirror in crates/docs/fixtures/xtask/editors.
Findings
[P1] Capped-path macro witness is authorized by name+file identity only - a same-name, same-file hidden test can supply it
Failure mode: apply_complete_proximity_macro_limit (oracles.rs:355-372) delegates to find_unresolved_assertion_macro_witness, whose join of indexed tests to retained rows compares only related.name == test.name && related.file == test.file (oracles.rs:515-519), never related.line. The parser records every #[test] fn descendant with its bare name and the shared file path (ra.rs TestFact push over ast::Fn::descendants), so two #[test] fn snapshot() blocks in different inline modules of one file are indistinguishable. A retained direct row whose body contains no unresolved macro can then authorize the other test's assert_data_eq!(owner(), snap_str![["x"]]) as the witness; the evidence line "A related Rust test uses an assertion-like macro..." (oracles.rs:384-387) names a test that was never related, and on the truncated-window route this falsifies this PR's own claim that hidden rows never become witnesses (body acceptance; SPEC-0120 "hidden rows never supply a witness").
Why here: AGENTS.md entity-identity invariant ("align entity identity, not token coincidence... audit related matching sites when changing one"). The loose join is inherited from the #7089 uncapped route, but this diff adds a new call site of it and strengthens the claim it violates, so the matching site is in scope. The class stays weakly_exposed, so there is no exposure promotion - the defect is evidence identity and a false non-claim, which is why this is P1 and not P0.
Fix direction: add related.line == test.start_line to the join (RelatedTest.line is the test start line - domain/probe.rs; finalize_related_tests treats it as span start). Add a capped-window regression: retained direct row without the macro, hidden same-name/same-file test containing it, proximity oracle, truncated window -> assert no limit; keep the positive control where the retained test itself holds the macro.
Validation: cargo test -p ripr --features lang-rust local_snapshot_helper_limit plus the new regression; re-run the existing oracles macro-limit units. Confidence: High - source-traced, not executed (same standing as review 5648078741's original finding, here independently confirmed at the head tree).
[P2] Three changed goldens lack the fixture's expected/CHANGELOG.md blessing entry
Failure mode: fixtures/rust_macro_wrapped_assertion_limitation/expected/ changes check.json, human.txt and human-full.txt without any change to that fixture's expected/CHANGELOG.md, which records all 23 prior golden changes. The repo's own golden_changes_without_blessing (xtask/src/main.rs:20589-20606) flags exactly this shape as advisory warn golden_changed_without_blessing_reason.
Why here: golden policy - output-shape changes need all affected goldens plus a recorded independent justification; the fixture's pending log is that record.
Fix direction: append the pending entry (reason: RIPR-SPEC-0120/#9644 - next-step guidance for unresolved custom assertion macros now always names inspect-and-run), via the bless flow or by hand in the established format.
Validation: cargo xtask critic no longer lists golden_changed_without_blessing_reason; cargo xtask goldens check rust_macro_wrapped_assertion_limitation. Confidence: High.
[P2] RelatedTest.miss doc claims no classification decision reads the field while the new shared veto reads it
Failure mode: domain/probe.rs:469-471 documents miss as "Evidence only: no classification decision reads this field," but only_proximity_oracles (reveal.rs:4485) reads miss == Some(AssertionNotCredited) to decide limit eligibility, and the new capped route extends that decision to truncated windows. The contradiction is inherited from the #7089 gate, but this diff copies the read into the classify module and widens its reach, so the doc now overclaims at two sites.
Why here: "a gate or field must not claim more than it enforces" (AGENTS.md evidence-promotion invariants).
Fix direction: smallest repair - correct the doc to name the refused-assertion exception and bind it to RIPR-SPEC-0120; better - move the refusal to a producer-owned admission field so the doc claim becomes true again.
Validation: cargo doc --workspace --no-deps; no output-contract change. Confidence: High.
What holds (checked, no finding)
Oracle-scope boolean propagation (reveal -> evidence -> classifier), free-owner/final-class/no-existing-limit gates, neutral inspection guidance in JSON/HumanFull/compact Human, per-assertion row cap mechanics, masking and scanner edge cases, cache mirror completeness, changelog fragment, slice file, and traceability entries incl. the new reveal unit test all check out against the head tree as detailed above.
Validation signal
- Observed: full REST diff (pulls/9697/files, 22 files, paginated); head-tree source read via
git show/git grepat2549b42854ca6d19acd3d9586c2e151811eb1335(oracles.rs, classifier.rs, reveal.rs, rust/mod.rs, probes.rs, ra.rs, domain/probe.rs, xtask/src/main.rs, fixtures, OUTPUT_SCHEMA.md); review history enumerated via REST. - Reported: PR-body claims of native public-suite 5/5, agent_command_journey 17/17, named-golden pass, frozen-artifact SHA256, and a still-running check-fast/precommit/honesty/corpus/dogfood sequence - none rerun in this review.
- Not verified: no cargo test/check/clippy/goldens commands were executed in this read-only lane; composition against current main (review 5648078741 records nine merge-tree conflicts and main cache generations now 1.110/0.117) is treated as recorded context, not re-verified.
Disposition: REVIEW_INCOMPLETE (draft) - findings above are pre-landing feedback. The P1 should be repaired on this candidate before merge convergence; the two P2s are cheap and keep the advisory critic and the field-level doc claim clean.
2549b42 to
0f63cca
Compare
Refs #9644. Preserve the existing opaque assertion limitation when the owner call is outside a sibling nested macro input; never infer exact helper semantics or exposure from names.
Address independent review: avoid quadratic range membership scans, bind transformed negative-control setup, and scope the documented gap refusal to the proximity-oracle branch.
0f63cca to
277a536
Compare
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent review (fresh-context reviewer, head 277a536): REPAIR_REQUIRED
Inspected:
- Delta from the previously reviewed head
2549b428to277a536b. I re-read the load-bearing files at this head through the contents API rather than trusting a diff summary: this branch has absorbed a large amount ofmain, and the compare range's file list is truncated at 300 files, so a file-level diff summary was not a reliable source here (it reported the PR's spec-system slice as changed when the file is byte-identical at both heads — 41 lines, same content). The candidate's own source surface is unchanged across this range. crates/ripr/src/analysis/language/rust/oracles.rsat this head. The join that the open [P1] is about is unchanged::624reads.any(|related| related.name == test.name && related.file == test.file)and:656-657readsrelated.name == test.name && related.file == test.file. There is no line comparison anywhere in that join. (The prior review citedoracles.rs:355-372and:515-519;mainhas since moved the same code to:624and:656-657.)crates/ripr/src/analysis/classify/reveal.rsat this head —only_proximity_oraclesat:5045, and itsmissread at:5054:|| related.miss == Some(RelatedTestMiss::AssertionNotCredited).crates/ripr/src/domain/probe.rsat this head —RelatedTestat:465withname(:466),file(:467) andline(:468); themissfield at:485with its doc at:479-483; the separatemiss_supportfield at:501with the "Evidence only: no decision reads it" doc at:494-499.fixtures/rust_macro_wrapped_assertion_limitation/expected/CHANGELOG.mdat this head — its latest two pending entries are(30)for RIPR-SPEC-0122 / #9244 and(31)for RIPR-SPEC-0122 / #10691 ("plain-language wording for the default and human-full check views"). Neither records RIPR-SPEC-0120 or #9644..allow/spec-system/slices/ripr.slice.nested-snapshot-helper-limit.v1.tomlat this head —source_issue = "issue:9644",design_reference = "RIPR-SPEC-0120",change_class = "behavior_change", and the claim boundary: "A sibling test's proximity oracle cannot turn that ungraded local snapshot helper into an actionable gap. This is a limitation witness, never assertion authority or an exact snapshot pin. The reveal producer retains only a complete oracle-scope boolean across the display cap; hidden rows do not become witnesses or repair targets." The slice's own[evidence] stateis"outstanding".- Hosted check-runs at
277a536b: every Rust lane isskipped—Rust-only feature lane,future-clippy,rust-coverage,msrv, and theRust gates/Ripr Rust Small Result/ shard lanes are absent. The lanes that ran are green (ub-review,spec-maintenance-digest,source-of-truth,workflow policy and wheel applicability, the two Python journey lanes, the Linux wheel build,GitGuardian,Graphite;CodeRabbitneutral). - PR state at this head:
isDraft = false. The PR is no longer a draft, which supersedes the prior review's "REVIEW_INCOMPLETE (draft)" framing.
Blocking:
- The open [P1] — "Capped-path macro witness is authorized by name+file identity only" — is CORROBORATED at this head, not repaired.
oracles.rs:624and:656-657still join indexed tests to retained rows onnameandfilealone. The parser records every#[test]fn descendant with its bare name and the shared file path, so two#[test] fn snapshot()blocks in different inline modules of one file are indistinguishable to that join. A retained direct row whose body contains no unresolved macro can therefore authorize another test'sassert_data_eq!(owner(), snap_str![["x"]])as the witness, and the evidence line "A related Rust test uses an assertion-like macro..." names a test that was never related. On the truncated-window route this falsifies the claim this PR's own slice states — "hidden rows do not become witnesses or repair targets" and "A sibling test's proximity oracle cannot turn that ungraded local snapshot helper into an actionable gap" — and, per the prior review, the corresponding RIPR-SPEC-0120 clause. The class staysweakly_exposed, so this is an evidence-identity and false-non-claim defect rather than an exposure promotion, which is why it is P1 and not P0. The fix direction from the prior review remains available and unimplemented: addrelated.line == test.lineto the join —RelatedTest.lineexists atdomain/probe.rs:468and is the test start line — together with a capped-window regression in which a retained direct row lacks the macro, a hidden same-name/same-file test holds it, a proximity oracle is present and the window is truncated, asserting that no limit is applied; keep the positive control where the retained test itself holds the macro. The candidate's own slice already records[evidence] state = "outstanding", which is consistent with this defect still being open. - Because the source is unchanged, the two open [P2]s are also unrepaired and are restated below. Neither is a merge blocker on its own.
Non-blocking:
- [P2] "Three changed goldens lack the fixture's
expected/CHANGELOG.mdblessing entry" — still open. The PR changesfixtures/rust_macro_wrapped_assertion_limitation/expected/check.json,human.txtandhuman-full.txt, and the fixture'sexpected/CHANGELOG.mdat this head contains no entry whose reason names RIPR-SPEC-0120 or #9644; the two most recent entries are for #9244 and #10691. The repo's owngolden_changes_without_blessingadvisory (xtask/src/main.rs:20589-20606) flags exactly this shape asgolden_changed_without_blessing_reason. Fix direction unchanged: append the pending entry in the established format with the reason tied to RIPR-SPEC-0120 / #9644. - [P2] "
RelatedTest.missdoc claims no classification decision reads the field while the shared veto reads it" — still open, with the doc now worded as "Explanation only: no decision helper reads this field" atdomain/probe.rs:479-483(the separatemiss_supportfield at:494-501carries the older "Evidence only: no decision reads it" wording, so the overclaim moved rather than went away).reveal.rs:5054still readsrelated.miss == Some(RelatedTestMiss::AssertionNotCredited)to decide limit eligibility, and this PR is what carries that read into the classify module and extends it to truncated windows.domain/probe.rsis not this PR's file, so the doc itself ismain's; the contradiction is inherited, but the PR widens the read's reach, which is what puts the matching site in scope. Smallest repair: correct themissdoc to name the refused-assertion exception and bind it to RIPR-SPEC-0120; better, move the refusal to a producer-owned admission field so the doc claim becomes true again. - The prior review's "What holds" section is not re-argued: the shared
only_proximity_oraclesbehaviour-preservation argument, the fail-closed pre-cap evaluation, the mutually exclusive capped/uncapped routes, themacro_input_rangescursor edge cases (nested, sibling, disjoint,bulk!(1)(2),other.bulk(1), path-qualified, unbalanced), the comment/string masking, the discriminating test set, the semantically justified golden edits, and the cache-generation mirror completeness were all checked against the head tree at2549b428. The candidate's own surface is unchanged at this head, so those conclusions carry over, subject to the caveat thatmainhas moved underneath them and I did not re-derive them against the new base. - The PR has left draft and now declares its own evidence outstanding. The hosted qualification that would settle the [P1] regression is not requested on this head — every Rust lane is
skipped— so themerge-readyrequest that would exercise the capped-window path is what turns this review'sREPAIR_REQUIREDinto either a clean pass or a confirmed defect.
Not run:
- No local build, test, clippy or fmt: this host has no Rust toolchain (
rustc,cargo,rustupare absent from PATH), socargo xtask precommit,cargo xtask check-pr,cargo xtask critic,cargo xtask goldens check rust_macro_wrapped_assertion_limitation,cargo test -p ripr --features lang-rust local_snapshot_helper_limitandcargo nextest run --workspacewere not executed. - No Rust lane ran at this head, so the capped-window regression was not executed in hosted CI either.
- The proposed
related.line == test.lineregression was not written or run; it is stated as the repair direction carried over from the prior review, withRelatedTest.lineconfirmed present atdomain/probe.rs:468. - The composition of this candidate against current
mainwas not re-derived: the branch has absorbed a large amount ofmainsince2549b428, and I did not re-run the merge-tree comparison the prior review recorded as context.
Conclusion: the candidate's own surface has not moved since the previously reviewed head, so the open [P1] is CORROBORATED rather than repaired and still falsifies the claim this PR's own spec-system slice makes. The disposition is REPAIR_REQUIRED. Separately, and independently of that defect, this head has no hosted Rust proof at all — every Rust lane is skipped — so even a repaired candidate would need a merge-ready request on the new head before its qualification could be judged.
Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head 277a536ba1132274e49cb736615b03449ea91fae. Not an approval.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzSiDdMNjK7Lxr7u3ZT
…document the AssertionNotCredited read; record golden reason Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzSiDdMNjK7Lxr7u3ZT
There was a problem hiding this comment.
Evidence gaps
- Current executable proof for the changed route is absent from the packet.
- Current executable qualification for the changed Rust behavior is not established by this packet.
- Model proof intent was rejected by deterministic validation.
- Current executable proof for the changed public analyzer route is unavailable in this packet; the ripr sensor failed and cargo-test evidence is pending.
- The changed Rust behavior has no current executable receipt in the supplied packet; the ripr sensor failed and cargo-test is only scheduled-late.
- Current executable qualification remains unavailable in the review packet.
There was a problem hiding this comment.
Refuted
- The new language-module helper creates an avoidable cross-layer dependency or duplicated oracle policy.; refuted because: The shared complete-scope predicate is placed in classify/reveal and reused by the Rust oracle route; the language module exposes only the narrow finding mutation operation, while cache generations and docs mirror the behavior consistently.
Evidence gaps
- The seeded thread reports that the new public integration test passes 5/5, but this review packet contains no current cargo-test receipt and the ripr sensor failed.
- The capped-window path is exercised, but its product proof depends on a scheduled cargo-test receipt rather than evidence contained in this packet.
- Current executable proof for the changed public analyzer route is unavailable because the ripr sensor failed and cargo-test evidence remains absent or scheduled.
- Current executable qualification for the changed Rust route is absent from this packet, and the ripr sensor itself failed.
- Current executable proof for the changed analyzer route is unavailable in this packet.
- Model proof intent was rejected by deterministic validation.
|
Current inspected head 3c51e61 has an observed top-level contradiction: actual uncapped CLI exits 0 with rust_macro_wrapped_assertion_unresolved and unsupported_or_limited next action at the finding, but top-level analysis_complete=true, complete_with_findings and limitations=[]. Resolve the completeness projection contract rather than calling the output fully complete. Five integration tests and one library control passed; those assertions did not reject this mismatch. Capped CLI reproduction and a dedicated same-name regression remain unverified. Tree 7b4056f9a77cbb67a3a1da48fcb124953eb5d377; owner/head were rechecked, no extra hosted campaign. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Exact-head review of 3c51e61 (static; no cargo run).
Blocking:
- fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/{before,after}.repo-exposure.json (line 418). Only
cache_schema_versionwas bumped from 1.123 to 1.124.artifact.content_sha256(line 23) is stillsha256:41b1e419…8f52, but production now yieldssha256:6de31c3a…42b9. The hosted "Rust-only feature lane" failscli_smoke.rs::first_useful_action_corpus_pins_routing_casesat cli_smoke.rs:7839 ("before snapshot must be the portable normalization of production output"). Regenerate both fixtures, re-deriving the hashes and any dependent digests, not just the version string.
Also failing, not caused by this diff: the Rust gates job fails the user-text ceiling check (discriminator 3278 vs 3274, seam 596 vs 595). The PR changes no policy or such text, and the same counts appear on #10470 and #10532. Re-run on current main.
Consistency checks (schema bump):
- seam_cache.rs: CACHE 1.124, sharded and compact 0.131, with matching test assertions.
lsp_lifecycle/gap_corpus_currentness.rsandxtask rust_corpus_projection.rsuse 1.124.- OUTPUT_SCHEMA.md has both 1.124 occurrences.
- No stale 1.123 or 0.130 remains outside Cargo/oxc.
Semantics:
only_proximity_oraclesis moved to reveal.rs and run over the complete admitted rows before the display cap.complete_proximity_oracles_onlyis plumbed to the classifier.apply_complete_proximity_macro_limitis gated on a free-function owner,WeaklyExposed, no existing limit, andmatched_total > shown. Hidden rows are never used as witnesses, so it is fail-closed.related.line == test.start_linetightens the witness match.macro_input_rangesexcludes owner calls inside nested macro inputs and refuses unbalanced delimiters. Tests cover both.- The macro next step now always reads "Inspect the custom assertion macro…". The fixture goldens and the CHANGELOG blessing entry are updated to match. No other fixture pins the old text.
- 3 threads resolved.
Disposition: not clean until the two fixtures are regenerated.
Generated by Claude Code
|
Isolated proposed completeness repair on3c51e61783ddb02c9e1a360fae5a82cf69651c7a, base9509b2d4455cabd6e7f43bce7067cf4fc3e0d287, source tree7b4056f9a77cbb67a3a1da48fcb124953eb5d377, modifiedtree04c2b836960ccb28c548fd15d94941e42d57c0a5. Projects rust_macro_wrapped_assertion_unresolved into partial analysis with correct human label.
diff --git a/.ripr/traceability.toml b/.ripr/traceability.toml
index b804c7005..ab3ed1d99 100644
--- a/.ripr/traceability.toml
+++ b/.ripr/traceability.toml
@@ -10378,6 +10378,7 @@ tests = [
"crates/ripr/tests/local_snapshot_helper_limit.rs::only_owner_calls_outside_nested_macro_inputs_supply_the_limit",
"crates/ripr/tests/local_snapshot_helper_limit.rs::a_literal_expected_operand_retains_its_existing_limit",
"crates/ripr/tests/local_snapshot_helper_limit.rs::complete_proximity_evidence_survives_the_display_cap",
+ "crates/ripr/tests/local_snapshot_helper_limit.rs::capped_cli_and_verify_refuse_an_incomplete_after_snapshot",
"crates/ripr/src/analysis/classify/reveal.rs::tests::complete_proximity_scope_rejects_a_hidden_direct_or_refused_oracle",
"crates/ripr/src/analysis/language/rust/oracles.rs::tests::macro_wrapped_assertion_limit_names_reachable_unobserved_assertion_macro",
"crates/ripr/tests/local_macro_assertion_limit.rs::a_local_wrapper_beside_a_proximity_oracle_reads_as_the_macro_limit",
diff --git a/crates/ripr/src/analysis/pipeline.rs b/crates/ripr/src/analysis/pipeline.rs
index b27dbc461..ae39d147b 100644
--- a/crates/ripr/src/analysis/pipeline.rs
+++ b/crates/ripr/src/analysis/pipeline.rs
@@ -2144,6 +2144,34 @@ fn run_pipeline_for_diff_text_with_language_config(
}
}
+ // A finding whose assertion semantics could not be resolved is not a
+ // complete analysis of that finding, even though classification finished.
+ // Count before any output budget can omit findings from the document.
+ let macro_limited_findings = findings
+ .iter()
+ .filter(|finding| {
+ finding.static_limit_kind
+ == Some(crate::domain::StaticLimitKind::RustMacroWrappedAssertionUnresolved)
+ })
+ .count();
+ if macro_limited_findings > 0 {
+ limitations.push(
+ AnalysisLimitation::new(
+ AnalysisLimitationKind::LanguageScopeUnsupported,
+ AnalysisStage::FindingClassification,
+ AnalysisRecovery::new(
+ AnalysisRecoveryKind::InspectFailure,
+ "Inspect the custom assertion macro definition and run the existing test.",
+ )?,
+ )
+ .with_affected_items(macro_limited_findings as u64)?
+ .with_detail(format!(
+ "{} assertion semantics could not be resolved for one or more findings.",
+ crate::analysis_outcome::RUST_MACRO_LIMITATION_DETAIL_PREFIX
+ ))?,
+ );
+ }
+
limitations.extend(limitations_from_language_runs(&language_runs)?);
if let Some(scope) = &partial_scope {
limitations.push(partial_scope_limitation(scope)?);
diff --git a/crates/ripr/src/analysis_outcome.rs b/crates/ripr/src/analysis_outcome.rs
index 4839278b0..ca2d8a868 100644
--- a/crates/ripr/src/analysis_outcome.rs
+++ b/crates/ripr/src/analysis_outcome.rs
@@ -321,7 +321,28 @@ pub(crate) struct AnalysisLimitation {
pub(crate) recovery: AnalysisRecovery,
}
+pub(crate) const RUST_MACRO_LIMITATION_DETAIL_PREFIX: &str =
+ "rust_macro_wrapped_assertion_unresolved:";
+
impl AnalysisLimitation {
+ /// Render a named limitation in words without implying that source files
+ /// were skipped when the unresolved evidence belongs to a finding.
+ pub(crate) fn plain_label(&self) -> &'static str {
+ if self.is_unresolved_rust_macro() {
+ "assertion semantics could not be resolved for some findings"
+ } else {
+ self.kind.plain_label()
+ }
+ }
+
+ pub(crate) fn is_unresolved_rust_macro(&self) -> bool {
+ self.kind == AnalysisLimitationKind::LanguageScopeUnsupported
+ && self
+ .bounded_detail
+ .as_deref()
+ .is_some_and(|detail| detail.starts_with(RUST_MACRO_LIMITATION_DETAIL_PREFIX))
+ }
+
pub(crate) fn new(
kind: AnalysisLimitationKind,
producer_stage: AnalysisStage,
diff --git a/crates/ripr/src/app/task_first.rs b/crates/ripr/src/app/task_first.rs
index bba36dbd3..6b750c0b9 100644
--- a/crates/ripr/src/app/task_first.rs
+++ b/crates/ripr/src/app/task_first.rs
@@ -1545,7 +1545,7 @@ fn incomplete_limitation_summary(output: &super::CheckOutput) -> String {
else {
return "the run disclosed no analysis outcome".to_string();
};
- let mut summary = limitation.kind.plain_label().to_string();
+ let mut summary = limitation.plain_label().to_string();
if let Some(path) = &limitation.path {
summary.push_str(&format!(" (in `{path}`)"));
}
diff --git a/crates/ripr/src/output/human.rs b/crates/ripr/src/output/human.rs
index 0b7aa4d03..4861f2a04 100644
--- a/crates/ripr/src/output/human.rs
+++ b/crates/ripr/src/output/human.rs
@@ -651,7 +651,15 @@ fn render_analysis_outcome_disclosure(out: &mut String, output: &CheckOutput, pl
limitation.kind != crate::analysis_outcome::AnalysisLimitationKind::EolOnlyChurn
});
if scoped_down {
- if output.findings.is_empty() {
+ let finding_only = outcome.limitations.iter().all(|limitation| {
+ limitation.kind == crate::analysis_outcome::AnalysisLimitationKind::EolOnlyChurn
+ || limitation.is_unresolved_rust_macro()
+ });
+ if finding_only && !output.findings.is_empty() {
+ out.push_str(
+ " Some findings depend on assertion semantics that could not be resolved.\n",
+ );
+ } else if output.findings.is_empty() {
out.push_str(
" Zero findings is not a clean result because the analyzed scope is incomplete.\n",
);
@@ -686,13 +694,13 @@ fn render_analysis_outcome_disclosure(out: &mut String, output: &CheckOutput, pl
if plain {
out.push_str(&format!(
" Limitation: {} during {}",
- limitation.kind.plain_label(),
+ limitation.plain_label(),
limitation.producer_stage.plain_label(),
));
} else {
out.push_str(&format!(
" Limitation: {} during {} ({} at {})",
- limitation.kind.plain_label(),
+ limitation.plain_label(),
limitation.producer_stage.plain_label(),
limitation.kind.as_str(),
limitation.producer_stage.as_str()
diff --git a/crates/ripr/src/output/pilot/render/complete.rs b/crates/ripr/src/output/pilot/render/complete.rs
index 583c3ed08..128f3b3f9 100644
--- a/crates/ripr/src/output/pilot/render/complete.rs
+++ b/crates/ripr/src/output/pilot/render/complete.rs
@@ -1324,7 +1324,7 @@ fn push_changed_file_limitations(
out.push_str(&terminal_safe(format!(
"{prefix}: {}: {path}; {}. {}\n",
limitation.kind.as_str(),
- limitation.kind.plain_label(),
+ limitation.plain_label(),
limitation.recovery.detail
)));
}
diff --git a/crates/ripr/tests/local_snapshot_helper_limit.rs b/crates/ripr/tests/local_snapshot_helper_limit.rs
index 0869bdea3..28b54ecbe 100644
--- a/crates/ripr/tests/local_snapshot_helper_limit.rs
+++ b/crates/ripr/tests/local_snapshot_helper_limit.rs
@@ -140,6 +140,20 @@ fn limited(source: &str) -> Result<(), String> {
let json: serde_json::Value =
serde_json::from_str(&render_check(&output, &OutputFormat::Json)?)
.map_err(|error| error.to_string())?;
+ assert_eq!(json["analysis_outcome"]["analysis_complete"], false);
+ assert_eq!(
+ json["analysis_outcome"]["outcome"]["kind"],
+ "partial_with_limitations"
+ );
+ assert!(
+ json["analysis_outcome"]["outcome"]["limitations"]
+ .as_array()
+ .ok_or("outcome limitations must be an array")?
+ .iter()
+ .any(|item| item["bounded_detail"]
+ .as_str()
+ .is_some_and(|detail| detail.contains("rust_macro_wrapped_assertion_unresolved")))
+ );
assert_eq!(json["findings"][0]["recommended_next_step"], next_step);
assert_eq!(json["findings"][0]["suggested_next_action"], next_step);
assert_eq!(
@@ -149,6 +163,12 @@ fn limited(source: &str) -> Result<(), String> {
assert!(json["findings"][0]["canonical_gap"].is_null());
let human = render_check(&output, &OutputFormat::HumanFull)?;
assert!(human.contains(next_step.trim_end_matches('.')));
+ assert!(human.contains("assertion semantics could not be resolved for some findings"));
+ assert!(!human.contains("some changed files were not analyzed"));
+ assert!(
+ human.contains("Some findings depend on assertion semantics that could not be resolved")
+ );
+ assert!(!human.contains("behavior outside it has no finding"));
assert!(!human.contains("Replace broad assertions"));
Ok(())
}
@@ -159,8 +179,12 @@ fn keeps_gap(body: &str) -> Result<(), String> {
"assert_data_eq!(render_float(-0.0), snap_str![[\"-0.0\"]]);",
body,
);
- let finding = Fixture::new(&source)?.finding()?;
- assert_eq!(finding.static_limit_kind, None);
+ let output = Fixture::new(&source)?.checked_output()?;
+ assert_eq!(output.findings[0].static_limit_kind, None);
+ let json: serde_json::Value =
+ serde_json::from_str(&render_check(&output, &OutputFormat::Json)?)
+ .map_err(|error| error.to_string())?;
+ assert_eq!(json["analysis_outcome"]["analysis_complete"], true);
Ok(())
}
@@ -240,3 +264,148 @@ fn complete_proximity_evidence_survives_the_display_cap() -> Result<(), String>
}
Ok(())
}
+
+#[test]
+fn capped_cli_and_verify_refuse_an_incomplete_after_snapshot() -> Result<(), String> {
+ use std::process::{Command, Output};
+
+ fn run(root: &std::path::Path, program: &str, args: &[&str]) -> Result<Output, String> {
+ Command::new(program)
+ .current_dir(root)
+ .args(args)
+ .output()
+ .map_err(|e| e.to_string())
+ }
+ fn success(output: Output) -> Result<Output, String> {
+ if output.status.success() {
+ Ok(output)
+ } else {
+ Err(format!(
+ "command failed: {}",
+ String::from_utf8_lossy(&output.stderr)
+ ))
+ }
+ }
+ fn commit(root: &std::path::Path, message: &str) -> Result<(), String> {
+ success(run(
+ root,
+ "git",
+ &["add", "Cargo.toml", "src/lib.rs", "diff.patch"],
+ )?)?;
+ success(run(
+ root,
+ "git",
+ &[
+ "-c",
+ "user.name=RIPR test",
+ "-c",
+ "user.email=ripr@example.invalid",
+ "commit",
+ "--allow-empty",
+ "-qm",
+ message,
+ ],
+ )?)?;
+ Ok(())
+ }
+ let assertions = (0..12)
+ .map(|n| format!("assert_eq!(separate_owner(), 7, \"oracle {n}\");"))
+ .collect::<Vec<_>>()
+ .join("\n");
+ let limited = replace_once(SOURCE, "assert_eq!(separate_owner(), 7);", &assertions);
+ let control = replace_once(
+ &limited,
+ "assert_data_eq!(render_float(-0.0), snap_str![[\"-0.0\"]]);",
+ "let _ = render_float(-0.0); assert_data_eq!(separate_float(-0.0), snap_str![[\"-0.0\"]]);",
+ );
+ let fixture = Fixture::new(&control)?;
+ let root = &fixture.0;
+ success(run(root, "git", &["init", "-q"])?)?;
+ commit(root, "control before")?;
+ let check = |format| {
+ run(
+ root,
+ env!("CARGO_BIN_EXE_ripr"),
+ &[
+ "check",
+ "--root",
+ ".",
+ "--diff",
+ "diff.patch",
+ "--mode",
+ "ready",
+ "--format",
+ format,
+ "--quiet",
+ ],
+ )
+ };
+ let before = success(check("check-findings-json")?)?;
+ let before_json: serde_json::Value =
+ serde_json::from_slice(&before.stdout).map_err(|e| e.to_string())?;
+ assert_eq!(before_json["analysis_outcome"]["analysis_complete"], true);
+ assert!(
+ before_json["findings"][0]["canonical_gap_id"]
+ .as_str()
+ .is_some()
+ );
+ std::fs::create_dir_all(root.join("target/ripr")).map_err(|e| e.to_string())?;
+ std::fs::write(root.join("target/ripr/before.json"), before.stdout)
+ .map_err(|e| e.to_string())?;
+ std::fs::write(root.join("src/lib.rs"), &limited).map_err(|e| e.to_string())?;
+ commit(root, "limited after")?;
+ let json: serde_json::Value =
+ serde_json::from_slice(&success(check("json")?)?.stdout).map_err(|e| e.to_string())?;
+ assert_eq!(json["analysis_outcome"]["analysis_complete"], false);
+ assert_eq!(
+ json["analysis_outcome"]["outcome"]["kind"],
+ "partial_with_limitations"
+ );
+ assert_eq!(
+ json["findings"][0]["static_limitation"]["kind"],
+ "rust_macro_wrapped_assertion_unresolved"
+ );
+ let finding = &json["findings"][0];
+ assert!(
+ finding["related_tests_total"]
+ .as_u64()
+ .ok_or("missing related total")?
+ > finding["related_tests"]
+ .as_array()
+ .ok_or("missing related rows")?
+ .len() as u64
+ );
+ let after = success(check("check-findings-json")?)?;
+ std::fs::write(root.join("target/ripr/after.json"), after.stdout).map_err(|e| e.to_string())?;
+ let verify = |after| {
+ run(
+ root,
+ env!("CARGO_BIN_EXE_ripr"),
+ &[
+ "agent",
+ "verify",
+ "--root",
+ ".",
+ "--before",
+ "target/ripr/before.json",
+ "--after",
+ after,
+ "--json",
+ ],
+ )
+ };
+ let refused = verify("target/ripr/after.json")?;
+ assert_eq!(refused.status.code(), Some(2));
+ assert!(refused.stdout.is_empty());
+ assert!(String::from_utf8_lossy(&refused.stderr).contains("after artifact is incomplete"));
+ std::fs::write(root.join("src/lib.rs"), &control).map_err(|e| e.to_string())?;
+ commit(root, "control after")?;
+ let control_after = success(check("check-findings-json")?)?;
+ std::fs::write(
+ root.join("target/ripr/control-after.json"),
+ control_after.stdout,
+ )
+ .map_err(|e| e.to_string())?;
+ success(verify("target/ripr/control-after.json")?)?;
+ Ok(())
+}
diff --git a/docs/OUTPUT_SCHEMA.md b/docs/OUTPUT_SCHEMA.md
index 291b1ad5d..d492acb81 100644
--- a/docs/OUTPUT_SCHEMA.md
+++ b/docs/OUTPUT_SCHEMA.md
@@ -996,6 +996,12 @@ this kind still marks the outcome incomplete — consumers gating on
`analysis_complete` see these runs as partial; letting it ride a complete
outcome is a separate, consumer-visible design decision (#8714 review).
+A finding with `rust_macro_wrapped_assertion_unresolved` also makes the
+outcome partial. Its `language_scope_unsupported` limitation names the finding
+limitation in `bounded_detail` and counts affected findings before output
+budgeting; it does not claim that changed files were skipped. Inspect the macro
+and run the existing test before treating an absent canonical gap as resolved.
+
When an *unchanged* Rust test file is indexed by lexical fallback after the
reference parser refuses it, and a classified owner consults that file for
related-test evidence (a related test came from it, or the file source calls
diff --git a/docs/specs/RIPR-SPEC-0120-rust-macro-wrapped-assertion-limitation.md b/docs/specs/RIPR-SPEC-0120-rust-macro-wrapped-assertion-limitation.md
index 269e13346..2034a9b18 100644
--- a/docs/specs/RIPR-SPEC-0120-rust-macro-wrapped-assertion-limitation.md
+++ b/docs/specs/RIPR-SPEC-0120-rust-macro-wrapped-assertion-limitation.md
@@ -197,6 +197,7 @@ arguments (`!x`, `a != b`) do not change this grade.
| `static_limit_kind` | `rust_macro_wrapped_assertion_unresolved` |
| `related_tests` | preserved from direct reach classification |
| `static_limitation.analyzer_route` | `analysis/rust-macro-assertion-oracle` |
+| `analysis_outcome` | `partial_with_limitations`, with a `language_scope_unsupported` finding-classification limitation naming `rust_macro_wrapped_assertion_unresolved` in bounded detail and counting affected findings |
## Acceptance Examples
@@ -289,6 +290,7 @@ arguments (`!x`, `a != b`) do not change this grade.
- `cargo test -p ripr macro_wrapped_assertion_limit`
- `cargo test -p ripr static_limit_kind`
- `cargo test -p ripr validation_accepts_rust_macro_wrapped_assertion_static_limit_kind`
+- `cargo test -p ripr --test local_snapshot_helper_limit`
- `cargo xtask fixtures rust_macro_wrapped_assertion_limitation`
- `cargo xtask check-evidence-promotion-honesty`
- `cargo xtask goldens check`
diff --git a/fixtures/rust_macro_wrapped_assertion_limitation/expected/CHANGELOG.md b/fixtures/rust_macro_wrapped_assertion_limitation/expected/CHANGELOG.md
index 9fc50f9df..5cd5fca2b 100644
--- a/fixtures/rust_macro_wrapped_assertion_limitation/expected/CHANGELOG.md
+++ b/fixtures/rust_macro_wrapped_assertion_limitation/expected/CHANGELOG.md
@@ -602,3 +602,16 @@ Updated:
- `expected/check.json`
- `expected/human.txt`
- `expected/human-full.txt`
+
+## Pending — rust_macro_wrapped_assertion_limitation (33)
+
+Reason:
+RIPR-SPEC-0120: disclose unresolved assertion semantics as an incomplete analysis and explain the limitation in human output.
+
+Command:
+`cargo xtask goldens bless rust_macro_wrapped_assertion_limitation --reason "..."`
+
+Updated:
+- `expected/check.json`
+- `expected/human.txt`
+- `expected/human-full.txt`
diff --git a/fixtures/rust_macro_wrapped_assertion_limitation/expected/check.json b/fixtures/rust_macro_wrapped_assertion_limitation/expected/check.json
index 9c6aec0ac..a098482d4 100644
--- a/fixtures/rust_macro_wrapped_assertion_limitation/expected/check.json
+++ b/fixtures/rust_macro_wrapped_assertion_limitation/expected/check.json
@@ -5,8 +5,8 @@
"root": "fixtures/rust_macro_wrapped_assertion_limitation/input",
"summary": {"changed_rust_files":1,"probes":1,"findings":1,"exposed":0,"weakly_exposed":0,"reachable_unrevealed":1,"no_static_path":0,"infection_unknown":0,"propagation_unknown":0,"static_unknown":0,"changed_files_by_language":[{"language":"rust","files":1}]},
"analysis_outcome": {
- "analysis_complete": true,
- "outcome": {"schema_version":"0.1","kind":"complete_with_findings","identity":{"repository_identity":null,"root_identity":null,"config_identity":null,"base_revision":null,"input_identity":"sha256:e6b07f9c23f81b00229a85da986cb10dc30ce24e0a35b1b804c97230c01a6e91","snapshot_identity":null,"git_candidate_subject":null},"counts":{"changed_file_count":1,"changed_line_count":2,"candidate_line_count":1,"probe_count":1,"finding_count":1},"limitations":[],"claim_boundary":"Static analysis outcome only; no correctness, test-adequacy, runtime-execution, or merge-readiness claim."}
+ "analysis_complete": false,
+ "outcome": {"schema_version":"0.1","kind":"partial_with_limitations","identity":{"repository_identity":null,"root_identity":null,"config_identity":null,"base_revision":null,"input_identity":"sha256:e6b07f9c23f81b00229a85da986cb10dc30ce24e0a35b1b804c97230c01a6e91","snapshot_identity":null,"git_candidate_subject":null},"counts":{"changed_file_count":1,"changed_line_count":2,"candidate_line_count":1,"probe_count":1,"finding_count":1},"limitations":[{"kind":"language_scope_unsupported","producer_stage":"finding_classification","path":null,"affected_items":1,"bounded_detail":"rust_macro_wrapped_assertion_unresolved: assertion semantics could not be resolved for one or more findings.","recovery":{"kind":"inspect_failure","detail":"Inspect the custom assertion macro definition and run the existing test."}}],"claim_boundary":"Static analysis outcome only; no correctness, test-adequacy, runtime-execution, or merge-readiness claim."}
},
"findings": [
{
diff --git a/fixtures/rust_macro_wrapped_assertion_limitation/expected/human-full.txt b/fixtures/rust_macro_wrapped_assertion_limitation/expected/human-full.txt
index 0d69edd25..0acb4b490 100644
--- a/fixtures/rust_macro_wrapped_assertion_limitation/expected/human-full.txt
+++ b/fixtures/rust_macro_wrapped_assertion_limitation/expected/human-full.txt
@@ -9,8 +9,9 @@ Terms: exposed = tests appear to notice the change; weakly_exposed = tests reach
could not tell from the code (analysis limited, not a verdict); finding = one reported gap;
unsuppressed = not hidden by your suppression policy
-Analysis outcome: findings below (analysis complete; complete_with_findings)
- Counts: 1 changed file(s), 2 changed line(s), 1 candidate line(s), 1 changed behavior(s) checked, 1 finding(s)
+Analysis outcome: limitations below (analysis incomplete; partial_with_limitations)
+ Some findings depend on assertion semantics that could not be resolved.
+ Limitation: assertion semantics could not be resolved for some findings during finding classification (language_scope_unsupported at finding_classification); affected items: 1; recovery: inspect the failure (inspect_failure) — Inspect the custom assertion macro definition and run the existing test.
WARNING ./src/internal.rs:2
id: probe:src_internal.rs:predicate:114f2322
diff --git a/fixtures/rust_macro_wrapped_assertion_limitation/expected/human.txt b/fixtures/rust_macro_wrapped_assertion_limitation/expected/human.txt
index 1e8247962..e49e3874e 100644
--- a/fixtures/rust_macro_wrapped_assertion_limitation/expected/human.txt
+++ b/fixtures/rust_macro_wrapped_assertion_limitation/expected/human.txt
@@ -4,8 +4,9 @@ root: fixtures/rust_macro_wrapped_assertion_limitation/input
Summary: 1 changed behavior checked: 0 appear noticed by tests, 0 partly noticed, 1 reached but not noticed, 0 no test path. 1 found, 0 suppressed by your settings
-Analysis outcome: findings below (analysis complete)
- Counts: 1 changed file(s), 2 changed line(s), 1 candidate line(s), 1 changed behavior(s) checked, 1 finding(s)
+Analysis outcome: limitations below (analysis incomplete)
+ Some findings depend on assertion semantics that could not be resolved.
+ Limitation: assertion semantics could not be resolved for some findings during finding classification; affected items: 1; recovery: inspect the failure — Inspect the custom assertion macro definition and run the existing test.
Start here:
State: ripr cannot tell from reading the code whether tests would notice this
|
|
Independent source review of proposal6539888525 found an additional presentation gap: GitHub renderer still implies skipped scope ('findings cover only analyzed scope'/outside behavior has no finding) for finding-only macro incompleteness, although no changed files were skipped. Human wording specialcase alone is insufficient. The isolated proposal is being corrected with GitHub finding-only/mixed-scope regressions before clearance. Reviewer has not yet established fullpatch tree/application or independent runtime proof; existing author results retain their bounded scope. |
|
Revised isolated proposal supersedes6539888525, addressing independent GitHub-renderer finding6539931446. Finding-only macro incompleteness now names unresolved assertion semantics; mixed missing-file cases retain scope warning. Same source3c51e61783ddb02c9e1a360fae5a82cf69651c7a; resultingtree8b04d5c843f809e2c7223db8d327ebd40ba131f4. Seven integration tests pass including both GitHub warning cases and cappedCLI/verify. Existing traceability checker passed; prior fixture proof not rerun afterrendererchange. Separate library build memory-killed beforetests; no pass inferred. Parentverifiedfullpatch26079bytes SHA2562652d6b444183e4cd775a309c86d4b18a55e8a32381757acbcf288da67e13c67. Independent revised review ongoing; no canonicaladoption/hostedclearance. diff --git a/.ripr/traceability.toml b/.ripr/traceability.toml
index b804c7005..63c124d38 100644
--- a/.ripr/traceability.toml
+++ b/.ripr/traceability.toml
@@ -10378,6 +10378,8 @@ tests = [
"crates/ripr/tests/local_snapshot_helper_limit.rs::only_owner_calls_outside_nested_macro_inputs_supply_the_limit",
"crates/ripr/tests/local_snapshot_helper_limit.rs::a_literal_expected_operand_retains_its_existing_limit",
"crates/ripr/tests/local_snapshot_helper_limit.rs::complete_proximity_evidence_survives_the_display_cap",
+ "crates/ripr/tests/local_snapshot_helper_limit.rs::capped_cli_and_verify_refuse_an_incomplete_after_snapshot",
+ "crates/ripr/tests/local_snapshot_helper_limit.rs::github_keeps_scope_warning_when_macro_limit_is_mixed_with_missing_file",
"crates/ripr/src/analysis/classify/reveal.rs::tests::complete_proximity_scope_rejects_a_hidden_direct_or_refused_oracle",
"crates/ripr/src/analysis/language/rust/oracles.rs::tests::macro_wrapped_assertion_limit_names_reachable_unobserved_assertion_macro",
"crates/ripr/tests/local_macro_assertion_limit.rs::a_local_wrapper_beside_a_proximity_oracle_reads_as_the_macro_limit",
diff --git a/crates/ripr/src/analysis/pipeline.rs b/crates/ripr/src/analysis/pipeline.rs
index b27dbc461..ae39d147b 100644
--- a/crates/ripr/src/analysis/pipeline.rs
+++ b/crates/ripr/src/analysis/pipeline.rs
@@ -2144,6 +2144,34 @@ fn run_pipeline_for_diff_text_with_language_config(
}
}
+ // A finding whose assertion semantics could not be resolved is not a
+ // complete analysis of that finding, even though classification finished.
+ // Count before any output budget can omit findings from the document.
+ let macro_limited_findings = findings
+ .iter()
+ .filter(|finding| {
+ finding.static_limit_kind
+ == Some(crate::domain::StaticLimitKind::RustMacroWrappedAssertionUnresolved)
+ })
+ .count();
+ if macro_limited_findings > 0 {
+ limitations.push(
+ AnalysisLimitation::new(
+ AnalysisLimitationKind::LanguageScopeUnsupported,
+ AnalysisStage::FindingClassification,
+ AnalysisRecovery::new(
+ AnalysisRecoveryKind::InspectFailure,
+ "Inspect the custom assertion macro definition and run the existing test.",
+ )?,
+ )
+ .with_affected_items(macro_limited_findings as u64)?
+ .with_detail(format!(
+ "{} assertion semantics could not be resolved for one or more findings.",
+ crate::analysis_outcome::RUST_MACRO_LIMITATION_DETAIL_PREFIX
+ ))?,
+ );
+ }
+
limitations.extend(limitations_from_language_runs(&language_runs)?);
if let Some(scope) = &partial_scope {
limitations.push(partial_scope_limitation(scope)?);
diff --git a/crates/ripr/src/analysis_outcome.rs b/crates/ripr/src/analysis_outcome.rs
index 4839278b0..ca2d8a868 100644
--- a/crates/ripr/src/analysis_outcome.rs
+++ b/crates/ripr/src/analysis_outcome.rs
@@ -321,7 +321,28 @@ pub(crate) struct AnalysisLimitation {
pub(crate) recovery: AnalysisRecovery,
}
+pub(crate) const RUST_MACRO_LIMITATION_DETAIL_PREFIX: &str =
+ "rust_macro_wrapped_assertion_unresolved:";
+
impl AnalysisLimitation {
+ /// Render a named limitation in words without implying that source files
+ /// were skipped when the unresolved evidence belongs to a finding.
+ pub(crate) fn plain_label(&self) -> &'static str {
+ if self.is_unresolved_rust_macro() {
+ "assertion semantics could not be resolved for some findings"
+ } else {
+ self.kind.plain_label()
+ }
+ }
+
+ pub(crate) fn is_unresolved_rust_macro(&self) -> bool {
+ self.kind == AnalysisLimitationKind::LanguageScopeUnsupported
+ && self
+ .bounded_detail
+ .as_deref()
+ .is_some_and(|detail| detail.starts_with(RUST_MACRO_LIMITATION_DETAIL_PREFIX))
+ }
+
pub(crate) fn new(
kind: AnalysisLimitationKind,
producer_stage: AnalysisStage,
diff --git a/crates/ripr/src/app/task_first.rs b/crates/ripr/src/app/task_first.rs
index bba36dbd3..6b750c0b9 100644
--- a/crates/ripr/src/app/task_first.rs
+++ b/crates/ripr/src/app/task_first.rs
@@ -1545,7 +1545,7 @@ fn incomplete_limitation_summary(output: &super::CheckOutput) -> String {
else {
return "the run disclosed no analysis outcome".to_string();
};
- let mut summary = limitation.kind.plain_label().to_string();
+ let mut summary = limitation.plain_label().to_string();
if let Some(path) = &limitation.path {
summary.push_str(&format!(" (in `{path}`)"));
}
diff --git a/crates/ripr/src/output/github.rs b/crates/ripr/src/output/github.rs
index 5ce080bd5..5f3731cf6 100644
--- a/crates/ripr/src/output/github.rs
+++ b/crates/ripr/src/output/github.rs
@@ -322,8 +322,17 @@ fn incomplete_outcome_warning(
outcome: &crate::analysis_outcome::AnalysisOutcome,
no_findings: bool,
) -> String {
+ let finding_only = outcome.limitations.iter().all(|limitation| {
+ limitation.kind == crate::analysis_outcome::AnalysisLimitationKind::EolOnlyChurn
+ || limitation.is_unresolved_rust_macro()
+ }) && outcome
+ .limitations
+ .iter()
+ .any(|limitation| limitation.is_unresolved_rust_macro());
let scope = if no_findings {
"Zero findings is not a clean result because the analyzed scope is incomplete."
+ } else if finding_only {
+ "Some findings depend on assertion semantics that could not be resolved."
} else {
"The findings cover only the analyzed scope; behavior outside it has no finding."
};
diff --git a/crates/ripr/src/output/human.rs b/crates/ripr/src/output/human.rs
index 0b7aa4d03..0c7fc273c 100644
--- a/crates/ripr/src/output/human.rs
+++ b/crates/ripr/src/output/human.rs
@@ -651,7 +651,18 @@ fn render_analysis_outcome_disclosure(out: &mut String, output: &CheckOutput, pl
limitation.kind != crate::analysis_outcome::AnalysisLimitationKind::EolOnlyChurn
});
if scoped_down {
- if output.findings.is_empty() {
+ let finding_only = outcome.limitations.iter().all(|limitation| {
+ limitation.kind == crate::analysis_outcome::AnalysisLimitationKind::EolOnlyChurn
+ || limitation.is_unresolved_rust_macro()
+ }) && outcome
+ .limitations
+ .iter()
+ .any(|limitation| limitation.is_unresolved_rust_macro());
+ if finding_only && !output.findings.is_empty() {
+ out.push_str(
+ " Some findings depend on assertion semantics that could not be resolved.\n",
+ );
+ } else if output.findings.is_empty() {
out.push_str(
" Zero findings is not a clean result because the analyzed scope is incomplete.\n",
);
@@ -686,13 +697,13 @@ fn render_analysis_outcome_disclosure(out: &mut String, output: &CheckOutput, pl
if plain {
out.push_str(&format!(
" Limitation: {} during {}",
- limitation.kind.plain_label(),
+ limitation.plain_label(),
limitation.producer_stage.plain_label(),
));
} else {
out.push_str(&format!(
" Limitation: {} during {} ({} at {})",
- limitation.kind.plain_label(),
+ limitation.plain_label(),
limitation.producer_stage.plain_label(),
limitation.kind.as_str(),
limitation.producer_stage.as_str()
diff --git a/crates/ripr/src/output/pilot/render/complete.rs b/crates/ripr/src/output/pilot/render/complete.rs
index 583c3ed08..128f3b3f9 100644
--- a/crates/ripr/src/output/pilot/render/complete.rs
+++ b/crates/ripr/src/output/pilot/render/complete.rs
@@ -1324,7 +1324,7 @@ fn push_changed_file_limitations(
out.push_str(&terminal_safe(format!(
"{prefix}: {}: {path}; {}. {}\n",
limitation.kind.as_str(),
- limitation.kind.plain_label(),
+ limitation.plain_label(),
limitation.recovery.detail
)));
}
diff --git a/crates/ripr/tests/local_snapshot_helper_limit.rs b/crates/ripr/tests/local_snapshot_helper_limit.rs
index 0869bdea3..0b99af748 100644
--- a/crates/ripr/tests/local_snapshot_helper_limit.rs
+++ b/crates/ripr/tests/local_snapshot_helper_limit.rs
@@ -140,6 +140,20 @@ fn limited(source: &str) -> Result<(), String> {
let json: serde_json::Value =
serde_json::from_str(&render_check(&output, &OutputFormat::Json)?)
.map_err(|error| error.to_string())?;
+ assert_eq!(json["analysis_outcome"]["analysis_complete"], false);
+ assert_eq!(
+ json["analysis_outcome"]["outcome"]["kind"],
+ "partial_with_limitations"
+ );
+ assert!(
+ json["analysis_outcome"]["outcome"]["limitations"]
+ .as_array()
+ .ok_or("outcome limitations must be an array")?
+ .iter()
+ .any(|item| item["bounded_detail"]
+ .as_str()
+ .is_some_and(|detail| detail.contains("rust_macro_wrapped_assertion_unresolved")))
+ );
assert_eq!(json["findings"][0]["recommended_next_step"], next_step);
assert_eq!(json["findings"][0]["suggested_next_action"], next_step);
assert_eq!(
@@ -149,6 +163,17 @@ fn limited(source: &str) -> Result<(), String> {
assert!(json["findings"][0]["canonical_gap"].is_null());
let human = render_check(&output, &OutputFormat::HumanFull)?;
assert!(human.contains(next_step.trim_end_matches('.')));
+ assert!(human.contains("assertion semantics could not be resolved for some findings"));
+ assert!(!human.contains("some changed files were not analyzed"));
+ assert!(
+ human.contains("Some findings depend on assertion semantics that could not be resolved")
+ );
+ assert!(!human.contains("behavior outside it has no finding"));
+ let github = render_check(&output, &OutputFormat::Github)?;
+ assert!(
+ github.contains("Some findings depend on assertion semantics that could not be resolved.")
+ );
+ assert!(!github.contains("behavior outside it has no finding"));
assert!(!human.contains("Replace broad assertions"));
Ok(())
}
@@ -159,8 +184,12 @@ fn keeps_gap(body: &str) -> Result<(), String> {
"assert_data_eq!(render_float(-0.0), snap_str![[\"-0.0\"]]);",
body,
);
- let finding = Fixture::new(&source)?.finding()?;
- assert_eq!(finding.static_limit_kind, None);
+ let output = Fixture::new(&source)?.checked_output()?;
+ assert_eq!(output.findings[0].static_limit_kind, None);
+ let json: serde_json::Value =
+ serde_json::from_str(&render_check(&output, &OutputFormat::Json)?)
+ .map_err(|error| error.to_string())?;
+ assert_eq!(json["analysis_outcome"]["analysis_complete"], true);
Ok(())
}
@@ -240,3 +269,192 @@ fn complete_proximity_evidence_survives_the_display_cap() -> Result<(), String>
}
Ok(())
}
+
+#[test]
+fn capped_cli_and_verify_refuse_an_incomplete_after_snapshot() -> Result<(), String> {
+ use std::process::{Command, Output};
+
+ fn run(root: &std::path::Path, program: &str, args: &[&str]) -> Result<Output, String> {
+ Command::new(program)
+ .current_dir(root)
+ .args(args)
+ .output()
+ .map_err(|e| e.to_string())
+ }
+ fn success(output: Output) -> Result<Output, String> {
+ if output.status.success() {
+ Ok(output)
+ } else {
+ Err(format!(
+ "command failed: {}",
+ String::from_utf8_lossy(&output.stderr)
+ ))
+ }
+ }
+ fn commit(root: &std::path::Path, message: &str) -> Result<(), String> {
+ success(run(
+ root,
+ "git",
+ &["add", "Cargo.toml", "src/lib.rs", "diff.patch"],
+ )?)?;
+ success(run(
+ root,
+ "git",
+ &[
+ "-c",
+ "user.name=RIPR test",
+ "-c",
+ "user.email=ripr@example.invalid",
+ "commit",
+ "--allow-empty",
+ "-qm",
+ message,
+ ],
+ )?)?;
+ Ok(())
+ }
+ let assertions = (0..12)
+ .map(|n| format!("assert_eq!(separate_owner(), 7, \"oracle {n}\");"))
+ .collect::<Vec<_>>()
+ .join("\n");
+ let limited = replace_once(SOURCE, "assert_eq!(separate_owner(), 7);", &assertions);
+ let control = replace_once(
+ &limited,
+ "assert_data_eq!(render_float(-0.0), snap_str![[\"-0.0\"]]);",
+ "let _ = render_float(-0.0); assert_data_eq!(separate_float(-0.0), snap_str![[\"-0.0\"]]);",
+ );
+ let fixture = Fixture::new(&control)?;
+ let root = &fixture.0;
+ success(run(root, "git", &["init", "-q"])?)?;
+ commit(root, "control before")?;
+ let check = |format| {
+ run(
+ root,
+ env!("CARGO_BIN_EXE_ripr"),
+ &[
+ "check",
+ "--root",
+ ".",
+ "--diff",
+ "diff.patch",
+ "--mode",
+ "ready",
+ "--format",
+ format,
+ "--quiet",
+ ],
+ )
+ };
+ let before = success(check("check-findings-json")?)?;
+ let before_json: serde_json::Value =
+ serde_json::from_slice(&before.stdout).map_err(|e| e.to_string())?;
+ assert_eq!(before_json["analysis_outcome"]["analysis_complete"], true);
+ assert!(
+ before_json["findings"][0]["canonical_gap_id"]
+ .as_str()
+ .is_some()
+ );
+ std::fs::create_dir_all(root.join("target/ripr")).map_err(|e| e.to_string())?;
+ std::fs::write(root.join("target/ripr/before.json"), before.stdout)
+ .map_err(|e| e.to_string())?;
+ std::fs::write(root.join("src/lib.rs"), &limited).map_err(|e| e.to_string())?;
+ commit(root, "limited after")?;
+ let json: serde_json::Value =
+ serde_json::from_slice(&success(check("json")?)?.stdout).map_err(|e| e.to_string())?;
+ assert_eq!(json["analysis_outcome"]["analysis_complete"], false);
+ assert_eq!(
+ json["analysis_outcome"]["outcome"]["kind"],
+ "partial_with_limitations"
+ );
+ assert_eq!(
+ json["findings"][0]["static_limitation"]["kind"],
+ "rust_macro_wrapped_assertion_unresolved"
+ );
+ let finding = &json["findings"][0];
+ assert!(
+ finding["related_tests_total"]
+ .as_u64()
+ .ok_or("missing related total")?
+ > finding["related_tests"]
+ .as_array()
+ .ok_or("missing related rows")?
+ .len() as u64
+ );
+ let after = success(check("check-findings-json")?)?;
+ std::fs::write(root.join("target/ripr/after.json"), after.stdout).map_err(|e| e.to_string())?;
+ let verify = |after| {
+ run(
+ root,
+ env!("CARGO_BIN_EXE_ripr"),
+ &[
+ "agent",
+ "verify",
+ "--root",
+ ".",
+ "--before",
+ "target/ripr/before.json",
+ "--after",
+ after,
+ "--json",
+ ],
+ )
+ };
+ let refused = verify("target/ripr/after.json")?;
+ assert_eq!(refused.status.code(), Some(2));
+ assert!(refused.stdout.is_empty());
+ assert!(String::from_utf8_lossy(&refused.stderr).contains("after artifact is incomplete"));
+ std::fs::write(root.join("src/lib.rs"), &control).map_err(|e| e.to_string())?;
+ commit(root, "control after")?;
+ let control_after = success(check("check-findings-json")?)?;
+ std::fs::write(
+ root.join("target/ripr/control-after.json"),
+ control_after.stdout,
+ )
+ .map_err(|e| e.to_string())?;
+ success(verify("target/ripr/control-after.json")?)?;
+ Ok(())
+}
+
+#[test]
+fn github_keeps_scope_warning_when_macro_limit_is_mixed_with_missing_file() -> Result<(), String> {
+ let fixture = Fixture::new(SOURCE)?;
+ let diff_path = fixture.0.join("diff.patch");
+ let mut diff = std::fs::read_to_string(&diff_path).map_err(|e| e.to_string())?;
+ diff.push_str("diff --git a/src/missing.rs b/src/missing.rs\n--- a/src/missing.rs\n+++ b/src/missing.rs\n@@ -1 +1 @@\n-old\n+new\n");
+ std::fs::write(&diff_path, diff).map_err(|e| e.to_string())?;
+ let output = fixture.checked_output()?;
+ assert_eq!(
+ output.findings[0]
+ .static_limit_kind
+ .map(|kind| kind.as_str()),
+ Some("rust_macro_wrapped_assertion_unresolved")
+ );
+ let json: serde_json::Value =
+ serde_json::from_str(&render_check(&output, &OutputFormat::Json)?)
+ .map_err(|e| e.to_string())?;
+ let limitations = json["analysis_outcome"]["outcome"]["limitations"]
+ .as_array()
+ .ok_or("missing limitations")?;
+ assert!(
+ limitations
+ .iter()
+ .any(|item| item["kind"] == "changed_file_absent_from_worktree")
+ );
+ assert!(limitations.iter().any(|item| {
+ item["bounded_detail"]
+ .as_str()
+ .is_some_and(|s| s.contains("rust_macro_wrapped_assertion_unresolved"))
+ }));
+ let github = render_check(&output, &OutputFormat::Github)?;
+ assert!(
+ github.contains(
+ "The findings cover only the analyzed scope; behavior outside it has no finding."
+ ),
+ "{github}"
+ );
+ assert!(
+ !github.contains("Some findings depend on assertion semantics"),
+ "{github}"
+ );
+ Ok(())
+}
diff --git a/docs/OUTPUT_SCHEMA.md b/docs/OUTPUT_SCHEMA.md
index 291b1ad5d..d492acb81 100644
--- a/docs/OUTPUT_SCHEMA.md
+++ b/docs/OUTPUT_SCHEMA.md
@@ -996,6 +996,12 @@ this kind still marks the outcome incomplete — consumers gating on
`analysis_complete` see these runs as partial; letting it ride a complete
outcome is a separate, consumer-visible design decision (#8714 review).
+A finding with `rust_macro_wrapped_assertion_unresolved` also makes the
+outcome partial. Its `language_scope_unsupported` limitation names the finding
+limitation in `bounded_detail` and counts affected findings before output
+budgeting; it does not claim that changed files were skipped. Inspect the macro
+and run the existing test before treating an absent canonical gap as resolved.
+
When an *unchanged* Rust test file is indexed by lexical fallback after the
reference parser refuses it, and a classified owner consults that file for
related-test evidence (a related test came from it, or the file source calls
diff --git a/docs/specs/RIPR-SPEC-0120-rust-macro-wrapped-assertion-limitation.md b/docs/specs/RIPR-SPEC-0120-rust-macro-wrapped-assertion-limitation.md
index 269e13346..2034a9b18 100644
--- a/docs/specs/RIPR-SPEC-0120-rust-macro-wrapped-assertion-limitation.md
+++ b/docs/specs/RIPR-SPEC-0120-rust-macro-wrapped-assertion-limitation.md
@@ -197,6 +197,7 @@ arguments (`!x`, `a != b`) do not change this grade.
| `static_limit_kind` | `rust_macro_wrapped_assertion_unresolved` |
| `related_tests` | preserved from direct reach classification |
| `static_limitation.analyzer_route` | `analysis/rust-macro-assertion-oracle` |
+| `analysis_outcome` | `partial_with_limitations`, with a `language_scope_unsupported` finding-classification limitation naming `rust_macro_wrapped_assertion_unresolved` in bounded detail and counting affected findings |
## Acceptance Examples
@@ -289,6 +290,7 @@ arguments (`!x`, `a != b`) do not change this grade.
- `cargo test -p ripr macro_wrapped_assertion_limit`
- `cargo test -p ripr static_limit_kind`
- `cargo test -p ripr validation_accepts_rust_macro_wrapped_assertion_static_limit_kind`
+- `cargo test -p ripr --test local_snapshot_helper_limit`
- `cargo xtask fixtures rust_macro_wrapped_assertion_limitation`
- `cargo xtask check-evidence-promotion-honesty`
- `cargo xtask goldens check`
diff --git a/fixtures/rust_macro_wrapped_assertion_limitation/expected/CHANGELOG.md b/fixtures/rust_macro_wrapped_assertion_limitation/expected/CHANGELOG.md
index 9fc50f9df..5cd5fca2b 100644
--- a/fixtures/rust_macro_wrapped_assertion_limitation/expected/CHANGELOG.md
+++ b/fixtures/rust_macro_wrapped_assertion_limitation/expected/CHANGELOG.md
@@ -602,3 +602,16 @@ Updated:
- `expected/check.json`
- `expected/human.txt`
- `expected/human-full.txt`
+
+## Pending — rust_macro_wrapped_assertion_limitation (33)
+
+Reason:
+RIPR-SPEC-0120: disclose unresolved assertion semantics as an incomplete analysis and explain the limitation in human output.
+
+Command:
+`cargo xtask goldens bless rust_macro_wrapped_assertion_limitation --reason "..."`
+
+Updated:
+- `expected/check.json`
+- `expected/human.txt`
+- `expected/human-full.txt`
diff --git a/fixtures/rust_macro_wrapped_assertion_limitation/expected/check.json b/fixtures/rust_macro_wrapped_assertion_limitation/expected/check.json
index 9c6aec0ac..a098482d4 100644
--- a/fixtures/rust_macro_wrapped_assertion_limitation/expected/check.json
+++ b/fixtures/rust_macro_wrapped_assertion_limitation/expected/check.json
@@ -5,8 +5,8 @@
"root": "fixtures/rust_macro_wrapped_assertion_limitation/input",
"summary": {"changed_rust_files":1,"probes":1,"findings":1,"exposed":0,"weakly_exposed":0,"reachable_unrevealed":1,"no_static_path":0,"infection_unknown":0,"propagation_unknown":0,"static_unknown":0,"changed_files_by_language":[{"language":"rust","files":1}]},
"analysis_outcome": {
- "analysis_complete": true,
- "outcome": {"schema_version":"0.1","kind":"complete_with_findings","identity":{"repository_identity":null,"root_identity":null,"config_identity":null,"base_revision":null,"input_identity":"sha256:e6b07f9c23f81b00229a85da986cb10dc30ce24e0a35b1b804c97230c01a6e91","snapshot_identity":null,"git_candidate_subject":null},"counts":{"changed_file_count":1,"changed_line_count":2,"candidate_line_count":1,"probe_count":1,"finding_count":1},"limitations":[],"claim_boundary":"Static analysis outcome only; no correctness, test-adequacy, runtime-execution, or merge-readiness claim."}
+ "analysis_complete": false,
+ "outcome": {"schema_version":"0.1","kind":"partial_with_limitations","identity":{"repository_identity":null,"root_identity":null,"config_identity":null,"base_revision":null,"input_identity":"sha256:e6b07f9c23f81b00229a85da986cb10dc30ce24e0a35b1b804c97230c01a6e91","snapshot_identity":null,"git_candidate_subject":null},"counts":{"changed_file_count":1,"changed_line_count":2,"candidate_line_count":1,"probe_count":1,"finding_count":1},"limitations":[{"kind":"language_scope_unsupported","producer_stage":"finding_classification","path":null,"affected_items":1,"bounded_detail":"rust_macro_wrapped_assertion_unresolved: assertion semantics could not be resolved for one or more findings.","recovery":{"kind":"inspect_failure","detail":"Inspect the custom assertion macro definition and run the existing test."}}],"claim_boundary":"Static analysis outcome only; no correctness, test-adequacy, runtime-execution, or merge-readiness claim."}
},
"findings": [
{
diff --git a/fixtures/rust_macro_wrapped_assertion_limitation/expected/human-full.txt b/fixtures/rust_macro_wrapped_assertion_limitation/expected/human-full.txt
index 0d69edd25..0acb4b490 100644
--- a/fixtures/rust_macro_wrapped_assertion_limitation/expected/human-full.txt
+++ b/fixtures/rust_macro_wrapped_assertion_limitation/expected/human-full.txt
@@ -9,8 +9,9 @@ Terms: exposed = tests appear to notice the change; weakly_exposed = tests reach
could not tell from the code (analysis limited, not a verdict); finding = one reported gap;
unsuppressed = not hidden by your suppression policy
-Analysis outcome: findings below (analysis complete; complete_with_findings)
- Counts: 1 changed file(s), 2 changed line(s), 1 candidate line(s), 1 changed behavior(s) checked, 1 finding(s)
+Analysis outcome: limitations below (analysis incomplete; partial_with_limitations)
+ Some findings depend on assertion semantics that could not be resolved.
+ Limitation: assertion semantics could not be resolved for some findings during finding classification (language_scope_unsupported at finding_classification); affected items: 1; recovery: inspect the failure (inspect_failure) — Inspect the custom assertion macro definition and run the existing test.
WARNING ./src/internal.rs:2
id: probe:src_internal.rs:predicate:114f2322
diff --git a/fixtures/rust_macro_wrapped_assertion_limitation/expected/human.txt b/fixtures/rust_macro_wrapped_assertion_limitation/expected/human.txt
index 1e8247962..e49e3874e 100644
--- a/fixtures/rust_macro_wrapped_assertion_limitation/expected/human.txt
+++ b/fixtures/rust_macro_wrapped_assertion_limitation/expected/human.txt
@@ -4,8 +4,9 @@ root: fixtures/rust_macro_wrapped_assertion_limitation/input
Summary: 1 changed behavior checked: 0 appear noticed by tests, 0 partly noticed, 1 reached but not noticed, 0 no test path. 1 found, 0 suppressed by your settings
-Analysis outcome: findings below (analysis complete)
- Counts: 1 changed file(s), 2 changed line(s), 1 candidate line(s), 1 changed behavior(s) checked, 1 finding(s)
+Analysis outcome: limitations below (analysis incomplete)
+ Some findings depend on assertion semantics that could not be resolved.
+ Limitation: assertion semantics could not be resolved for some findings during finding classification; affected items: 1; recovery: inspect the failure — Inspect the custom assertion macro definition and run the existing test.
Start here:
State: ripr cannot tell from reading the code whether tests would notice this
|
|
Independent revised source review verifies complete patch SHA2562652d6b444183e4cd775a309c86d4b18a55e8a32381757acbcf288da67e13c67 applies cleanly to3c51e61783ddb02c9e1a360fae5a82cf69651c7a and produces fulltree8b04d5c843f809e2c7223db8d327ebd40ba131f4. Prior GitHub renderer finding is resolved: finding-only semantics and mixed missing-file scope warnings are distinct and tested. No further issue found in bounded outcome propagation/rendering review. Seven integration and traceability passes are author evidence, not independently rerun. Revised named-fixture run remains unestablished; historical gap-bound old-consumer failure remains inferred. Generic verify completeness precedes optional gap closure. This is source clearance of isolated proposal6539988684 within stated bounds, not formal approval, canonical adoption or hosted qualification. |
… content hash Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzSiDdMNjK7Lxr7u3ZT
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm the capped-window route's truth still depends on a current focused test establishing complete pre-cap scope, retained witness selection, and neutral output.
Evidence gaps
- Current executable qualification for the changed route is not established by this review packet.
- Model proof intent was rejected by deterministic validation.
- Current executable red/green proof for the changed analyzer route is unavailable in this packet.
- Current executable proof for the changed public analyzer route is not established by this packet.
- The packet lacks a current executable receipt for the changed Rust route.
Conflicts were additive in the classifier evidence plumbing: kept both complete_proximity_oracles_only (this branch) and direct_rows (main), and compute main's pre_cap_syntax_only before this branch's macro limit. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmoz3yvGnngtDNnPKxG
…ained, not a false gap (#9644) The change moves mined-snapshot-helper-negative-zero from a false actionable gap to a named macro limitation (limited/abstained). Retire its known-false entry, update the expected row, and record the accepted missed credit with its reason; the row still does not credit. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmoz3yvGnngtDNnPKxG
|
Burn-down lane: head Generated by Claude Code |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the new nested-macro scanner's malformed-delimiter branch is not directly exercised, so an unbalanced nested token tree could make owner-call detection conservative or permissive beyond the documented controls.
- Confirm the new capped-window path lacks a dedicated same-name cross-module regression despite the corrected line-sensitive join.
Refuted
- The changed tests merely restate implementation details and cannot distinguish old from new analyzer behavior.; refuted because: Public-API fixtures assert the newly named static limitation, neutral next step, absent canonical gap, and preservation/removal of the limitation under positive and negative source variants.
- The shared complete-scope helper duplicates Rust-specific oracle policy or creates an improper cross-layer dependency.; refuted because: The predicate is shared at the reveal/classifier boundary, while the language module exposes only finding mutation; the seeded independent review found no blocking interaction.
Evidence gaps
- Current executable proof for the changed analyzer route is not present in the review packet; the ripr sensor failed and cargo-test remains scheduled-late.
- Model proof intent was rejected by deterministic validation.
- Current executable proof for the changed Rust route is absent from the packet; the ripr sensor failed and cargo-test remains scheduled.
- Current executable qualification is absent from this review packet despite substantial source and fixture evidence.
- The current packet lacks executable proof for the changed analyzer route despite extensive historical evidence.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-head source review at 30f8eff. Disposition: no blocking findings in source/oracle. Hosted proof was incomplete when read (Rust test shards verify had no conclusion; 4 shards and other jobs green), so this is not a final REVIEW_READY.
Inspected: the full diff, only_proximity_oracles moved into reveal.rs, the pre-cap complete_proximity_oracles_only flag and its consumer apply_complete_proximity_macro_limit, macro_input_ranges, the cache bumps, the fixtures and corpus ledgers.
- Semantics preserved. The moved
only_proximity_oraclesis equivalent to the old Finding-side loop.is_contributing()matchesoracle_related_tests(), and the direct test matchesis_direct_relation. Running it on admitted rows before the display cap also catches a hidden direct or refused oracle.complete_proximity_scope_rejects_a_hidden_direct_or_refused_oraclecovers hidden direct, refused (AssertionNotCredited) and unknown-relation rows. - The limit is fail-closed. It applies only to a
WeaklyExposedfinding with no existing limit, and only for a truncated window (matched_total > related_tests.len()) with a free-function owner. It names a limitation and grants no oracle credit. The owner call must sit outside nested macro input ranges.macro_input_rangesreturnsNoneon unbalanced delimiters, which refuses.macro_arguments_calltests cover positive and negative cases, including qualified or method callee names and a mismatched delimiter. - The witness join now also requires
related.line == test.start_line. This is stricter and only removes witnesses. The reveal producer builds rows withline: test.start_line(reveal.rs 2378, 2759, 2865, 2895), so the join stays coherent. A producer using a different line would fail closed to no limit, not to credit. - Cache schema bumps (1.124, sharded and compact 0.131) match the changed classification, and the
xtaskconstant is in step. In the first-useful-action fixtures,agent-receipt.jsonafter_artifact/before_artifact/verify_artifactsha256 values equal the sha256 of the committedafter.repo-exposure.jsonandagent-verify.jsonbytes. The internalcontent_sha256values are consistent betweenagent-verify.jsonand the artifact. I did not recompute the placeholder-canonical digest, so I rely on the hostedfixturesgate for that. - Corpus.
mined-snapshot-helper-negative-zerohas acceptable_verdictscredited/limited/silent, solimitedis allowed. The expected row moved tolimited/abstainedwithchanged_since_labeling: true. The ratchet fits: the known-false entry is deleted because the row is no longerfalse_actionable, and amissed-credit.tomlentry is added with an honest reason (discriminated at runtime, abstained on purpose because the helper macro is not evaluated, delete when it credits). Therust_macro_wrapped_assertion_limitationgoldens and CHANGELOG match the new "inspect the macro definition" next step, and spec RIPR-SPEC-0120 says the same. - All 3 review threads are resolved.
Non-blocking notes: (1) wait for the Rust test shards verify result before the final-merge pass. (2) RelatedTest.miss docs now carry one named exception, the refused-assertion read in the limit. Keep that exception tracked if more readers appear.
Generated by Claude Code
|
Review of record, exact head Angles:
Threads: 3 review threads (witness identity join, miss-field doc, blessing entry) all resolved with repairs in Findings: none blocking. Merging with expected head SHA. Generated by Claude Code |
Summary
The local snapshot helper in #9644 already compares rendered negative zero with the expected text, but the analyzer reports an actionable weak gap. An unrelated test supplies the recognized oracle; a nested expected-value macro blocks the existing owner-scoped limitation. The original subject also has 11 matched rows capped to 8, so the retained-window completeness check cannot establish the complete oracle scope.
The repair locates bare owner calls outside opaque nested inputs and carries one internal oracle-scope boolean from complete admitted reveal rows across the display cap. A retained direct macro witness still supplies the limitation. The class and oracle grades stay unchanged, and no helper name or expected text supplies exposure credit. Limited findings now advise inspecting the macro and running its existing test.
Swarm / Source Boundary
EffortlessMetrics/ripr-swarmSource-of-truth Links
Proposal: none; bounded repair of the confirmed #9644 mechanism
Spec: RIPR-SPEC-0120, Rust macro-wrapped assertion limitation
ADR: none; reuse the existing reveal and adapter limitation owners
Plan item: #9644 under #9619
Governing issue or accepted claim: #9644; native ownership comment 6339782676
Acceptance delta (one sentence): preserve a named unresolved-macro limitation and inspection guidance when complete admitted evidence establishes proximity-only oracles and a retained direct owner call sits outside nested macro inputs.
Candidate branch (GitHub PR head is authoritative after publication): fix/9644-trusted-snapshot-helper; published head2549b42854ca6d19acd3d9586c2e151811eb1335
Stack parent or prerequisite PR (if any): not stacked; main compile prerequisite landed through #9701 (supersedes #9699); implementation base52cfcabdd615a597edf7710a2a92de0282a8751f contains #9560; separate corpus-owner PR #9669 supplies original-row provenance
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; one claimed analyzer candidate
Acceptance and Boundaries
Exact helper credit, whole-document recall, #6642 insta/expect-test and #9643 feature-gated collection remain separate. No workflow, dependency, process-launch, policy or support-tier changes.
Proof
Exact implementation base
52cfcabdd615a597edf7710a2a92de0282a8751f: native worktree doctor, check-fast andcargo check --locked -p ripr --all-targetsexited 0. The base selector independently resolved zero paths because HEAD equaled that base; 6 gates ran and 7 skipped.The first public regression ran against base production and failed at the missing limitation after successful setup/compilation (native 101). A retained base-linked public API executable also reproduced the actual mined row as one
weakly_exposedreturn-value finding without a limit.Original source provenance: corpus-owner PR #9669 head
4f7b115a5c53e48fc476c8103f0addd115bf0aca; both retained subject hashes verified.$crate::snap::checkuses built-in equality aftertrim_end()andsnap_str!returns its literal. Fresh isolatedcargo test --offlineruns executed four default-feature tests each: original and behavior-preserving rewrite passed 4/4;"0.0"and empty-string mutants each exited 101 with 3 passed/1 failed, specificallynegative_zero_snapshotat that comparison. Initial copied-package/shared-target trials reused a stale executable; those logs are retained as instrument evidence and excluded from product proof.Historical head
7c3a6146passed the reduced four-test public suite and check-fast (15 gates ran, 1 skipped). Independent review then found stale actionable guidance; the actual original row additionally exposed the 11-to-8 completeness prerequisite. Those observations are repaired in this successor. Its precommit was interrupted (native 130) after the repair need was known; honesty and dogfood did not run in that superseded sequence. No superseded result is claimed as a successor rerun.Published head
ea36be7e698d2f02d82d22e3f09239863cdffb7c, treef53a795221be289b962698f8f76b5f40dc17882c: the initial a55 compile exposed a private-module access error (native101), fixed by a selective internal re-export in this head; the public suite passed 5/5 (native0). The complete-row predicate unit passed 1/1 and existing macro units passed 23/23 (all native0; filtered library tests were not executed). The executable build passed and independently applied to the full original row: exactly one WeaklyExposed finding, total11 retained8, named macro limitation, no canonical gap, root next action unsupported_or_limited, and neutral JSON/HumanFull guidance. The named fixture found one omitted compact-Human guidance expectation (JSON/HumanFull already matched). Successor59cc4d400fa6ea0b27c9022bd8b19d0715c34b97/tree2e52259f20221435669df0ba62f01c7b96c5228b joined that expectation and formatter layout. Its native named golden passed; actual full-row and independent12 CLI checks passed on its frozen artifact. Its check-fast failed only the new guard clippy::nonminimal_bool (outer1/Clippy101); later precommit/honesty/corpus/dogfood did not execute. Local successor2549b42854ca6d19acd3d9586c2e151811eb1335/treeef7cef46ac7511854ccb8ce69b274056159f71d2 replaces the guard with the equivalent is_none_or(total<=len), with no lint allowance. Fresh current public tests passed5/5, agent_command_journey passed17/17, product build and named macro golden passed (all native0). Frozen artifact133431632bytes SHA256db2cd7657b09a6f8f007863181064c6dde8d7d68eb6f75bb50fc9d9388a51d6d reports the full2549 head. Independent reviewer verified identity before/after and executed12 current CLI checks, all native0. The full mined row remains WeaklyExposed,total11/retained8,limited/no gap; all negative-control boundaries and neutral output guidance passed. Native check-fast/precommit/honesty/Rust-corpus/dogfood sequence is still running. Earlier executed-test counts remain carried-forward, not current reruns. Independent source and current executable review found no remaining findings. A separate composition inspection of the actual merged tree preserves the complete-admission/direct-refusal vetoes beside upstream implicit-dispatch changes; current combined-tree execution and final qualification remain pending. Native successor check-fast/precommit/honesty/dogfood and hosted qualification are pending.Twelve earlier native executions of the unchanged reduced runtime fixture (two tests each) establish its helper controls: original passes; zero/empty mutants fail; no-op/shadowed-helper/shadowed-assertion/wrong-owner originals and mutants pass; mismatched expected fails. This source-input proof is carried forward, not rerun for the successor. Standalone scanner edge/stress checks on the earlier scanner source are historical; hosted/native current proof remains authoritative.
Changelog, Traceability and Rollback
changelog.d/9644-nested-snapshot-helper-limit.mdfollows the canonical Fixed marker, bullet and trailing issue reference. SPEC-0120 and traceability bind the public controls and full-row veto test. The classified cache generations advance together to 1.93/0.100/0.100, with their existing docs/LSP/xtask mirrors and fixture digest bindings. One existing macro-limitation golden changes only next-step guidance in JSON, HumanFull and compact Human.Rollback reverts the bounded limiter, internal reveal summary, coupled cache generation and evidence. No protection or workflow change is needed.
CI Economics and Continuation
No active hosted CI is duplicated. Draft publication obtains remote evidence; the existing merge-ready label is applied once only after the native Ready handoff. Actual current qualification must execute #9560's Schema producer sweep with current checkout and doctor/PR artifacts; an older green workflow is insufficient.
Owner / governing claim: saved-cloud #9644 delivery lane retains integration responsibility.
Candidate: published2549b42854ca6d19acd3d9586c2e151811eb1335/treeef7cef46ac7511854ccb8ce69b274056159f71d2; implementation base52cfcabdd615a597edf7710a2a92de0282a8751f. Actual fetched remote mergef8af78365f291784b6331e5601b7e4a778d86c12/treee0c0ce5d1f79b1a0b076e4886c90716befdd4480 has ordered parents7ed8a4af6df05a45dea9a19da36c65ca8b457af6 +2549b42854ca6d19acd3d9586c2e151811eb1335; #9701 subject binding verified in that tree. The fetch transferred the object/FETCH_HEAD but rejected updating the historical non-fast-forward local receipt ref; that old ref is preserved, and unique local merge-2549 ref records the new remote object. Workflow contains Schema producer sweep; actual qualification execution pending.
Review: independent current2549 source/artifact review found no remaining source/behavior findings;12 fresh native CLI checks passed, receipt /workspace/evidence/9644/independent-review/final-2549/receipt.json retained. Composition source reviewe0c0 also found no blocker. The fresh current agent_command_journey17/17 is independent proof, not recovery of the denied old artifact stderr. Hosted/current integration still REVIEW_INCOMPLETE. Gemini/CodeRabbit reviews unavailable byquota; green CodeRabbit context is not substantive review. UB-review COMMENT5614504052 requests focused proof: its old agent_command_journey stderr is unestablished because saved-cloud artifact12426049919 delivery was denied by proxy CONNECT403Forbidden. Acquisition and equivalent-data alternate routes are stopped. Already-read joblogs independently show checkoutb32 and reporter compileE0425; those are not asserted to be the hidden focused-test stderr.
Validation: actual and carried-forward evidence separated above; no current hosted pass or merge claim.
Dependency: exact-main a620 named-fixture route previously failed before comparison (Cargo101/E0425 artifact.rs719, outer1, zero tests/comparisons). Canonical prerequisite #9701 merged7ed8a4af6df05a45dea9a19da36c65ca8b457af6; #9699 and #9709 closed unmerged as superseded. Fetched current main equals7ed8; the actual remote merge subject above contains the restored local subject binding. No artifact-source repair was copied into this candidate. #9669 owns the seven-case corpus branch; expected-row / known-false / missed-credit reconciliation stays with that owner. No cases or feature lane are copied into this repair.
Next: finish available current native proof, read back current head/reviews/threads/workflows and refresh exact-head review. Then Ready and request native qualification last. Verify actual checkout/tree and executed Schema producer sweep, followed by current complete review and normal protected expected-head squash; no extra coordinator approval gate.
All permanent protected scopes and the temporary native CLI GraphQL hold remain intact. This lane issued no affected native GraphQL request and observed no GitHub rate/permission denial. Known denied protection/settings reads remain held. No credentials, release/deployment, replacement production producer or held termination probe is involved.
Refs #9644, #9619. Corpus coordination: #9669 (comment)
Corpus row note:
mined-snapshot-helper-negative-zeromoved gap -> limited (outcome false_actionable -> abstained) because this fix now reports the nested snapshot-helper macro limitation instead of a false gap; its known-false entry was retired and the row recorded inmissed-credit.toml(expected-row diff is that single row;verdict-corpus checkandgoldens checkpassed locally on the same content).Generated by Claude Code