Repository navigation
Do not credit an exact Ok/Some assertion on the Err/None seam (#12757) - #12801
Conversation
… seam (#12757) An exact assertion that unwraps or compares only the success payload passes only when the call took the success exit, so it cannot notice the failure arm changing. It was published ExactValue/Strong on the owner's Err(..) seam; the mirror of the error-pin rule from #12722. The pin that names the failure arm keeps its grade. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqxFdsEBaQ96Ruf9oV
… case (#12757) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqxFdsEBaQ96Ruf9oV
|
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 49 minutes. View limit details
Pre-merge checks:
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_INCOMPLETE - gate-first triage only; no full review performed.
Gate (head a175620): ub-review is CANCELLED (not green); mergeStateStatus BLOCKED; reviewDecision empty with zero reviews; PR-local diff is 8 files +387/-0 over 469 patch lines, above the 400-line small-head bar; the author body itself marks the lane not-ready (cache version bump plus report recapture still open, second reviewer not requested). Review threads: 0 nodes, that dimension is clean. No merge-ready added; no merge attempted.
Light read of the claim core only (test_grip_evidence.rs): success_payload_assertion_can_see_return_arm is applied in both best_oracle and oracle_discriminates_seam, so publication and grade gates keep parity; pins_success_payload_only fails closed toward keeping the existing grade when failure-arm tokens or value-izing adapters (unwrap_or, ok(), map_err) appear. Withholding precision (mismatched-variant-only scope, genuine-pin retention, negative controls both sides) and fixture/golden contract parity are NOT verified - deferred to a green, author-declared-ready head.
Surfaces: oracle publication plus grade paths for ReturnValue/ErrorVariant seams; honesty corpus case plus spec Part E plus changelog fragment.
Risks: over/under-withholding boundary in the token lists; corpus pin vs real-oracle parity.
Invariants (unverified): mismatched-variant-only no-credit; genuine-pin retention; negative controls.
Validation observed: checks as listed above; the PR-body local proof claims (precommit, goldens, verdict-corpus, honesty, changelog, doc-artifacts) were not independently re-run from this read-only lane.
Residuals: green ub-review rerun or repair; author readiness items (cache bump plus recapture, second reviewer); then the full oracle-withhold review.
Disposition: REVIEW_INCOMPLETE - resume when the head is green, author-ready, and review-requested; re-verify head SHA before the full review.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmoskE51YYxb3aVb8Er
EffortlessSteven
left a comment
There was a problem hiding this comment.
Bounded source review — 2026-11-05 UTC
- reviewed_head_sha:
60a6c6975085001a26b6b64efa396fb1d413cf44. - integration_basis: current metadata base
7b866ce38d2b65486ba72bac11e8707a576d1742; authored merge-base diff and immutable candidate source inspected. No fresh composed integration execution. - claim_boundary: Do not credit an exact Ok/Some assertion on the Err/None seam (#12757)
- changed_surfaces_and_semantic_owners_inspected: Inspected failure-arm expression gate and masked success-only assertion reader; used in both oracle_discriminates_seam and best_oracle so stage/related-test publication agree. Err/None construction, Ok/Some payload, unwrap success and error-read/adaptor refusal enumerated. New honesty subject has success-only test and exact error positive control. Token-based implementation conservatively retains grade for unrecognized failure-bearing spelling; no new source finding established.
- blocking_findings: No additional inline finding from this pass. Existing predecessor, owner and deferred-work holds described above remain.
- non_blocking_suggestions: None added.
- refuted_or_stale_findings: Repairs/refutations described above retained; resolved historical findings were not automatically reopened.
- proof_and_ci_observed: Immutable source and authored diff; current PR metadata, complete connector conversation and review threads directly read. Source tests/oracles inspected; execution statements from authors/other reviewers are reported only.
- proof_or_review_missing: No code execution or independent test/removal experiment, rendered behavior run, hosted CI job/artifact validation or final merge qualification in this bounded review. Existing holds and unresolved threads preserved.
- affected_currentness_dimensions: Head/base/open state reread immediately before publication; prior evidence remains bound to its original subject. Source coverage is bounded to the inspected owners and controls.
- residual_assumptions_and_non_claims: This COMMENT review preserves existing Draft/owner holds and does not establish final qualification, merge readiness or rollout.
- disposition: REVIEW_INCOMPLETE.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_INCOMPLETE — repair required on head 60a6c69.
The success-only check searches the whole assertion text instead of binding the observed operand to the owner. For example, assert_eq!(parse_pinned(2), expected().unwrap()) can compare the owner's Err with the value returned by a separate helper, but pins_success_payload_only returns true and both consumers can discard it. Conversely, assert_eq!(parse_pinned(1), Ok(Err(Fault::Even))) is an outer Ok pin, but the inner Err causes the helper to return false. An extracted copy of the helper, with an identity mask for these comment-free and string-free examples, produced those results; full producer-path behavior remains to be executed.
Fix direction: preserve assertion and operand boundaries, establish which call supplies the observed value rather than borrowing tokens from a sibling value or assertion, and keep classification and related-test publication aligned. Test nested success payloads, failure-reading controls, same-line siblings and wrong owners. Preserve the sibling-variant grading in #12895 and reconcile with the distinct frozen 241c83 owner-custody producer before integration.
The PR's retained report says cache 1.149; this head declares 1.157 and current swarm main declares 1.164. It is not fresh-head proof. GitHub reports a conflict in the test file. A full-featured local lib-test build was stopped before tests after approaching the environment memory limit; a smaller Rust-only experiment is in progress. No new hosted CI or merge was requested.
|
Corpus follow-through on the local, unpublished candidate (base Two isolated Rust crates exercised the same failure-arm rewrite. Each baseline and rewrite passed its single test. Replacing the error variant or returning A Rust-only Local commit No cache generation, hosted CI request, branch push, or merge has been made. Preserve frozen source |
|
Taking this over. No push or comment since 2026-11-06, the base is far behind main, and the PR body lists the cache bump and corpus recapture as not done. I'll merge main in (no force-push), bump the cache version to the next free value, recapture the honesty reports on a clean copy, get an independent review of the exact head, and mark it ready. If someone is actively working this, say so here and I'll step back. Generated by Claude Code |
…y reports Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzTr5S4jfQDq1e81UWt
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Head 187a8b5. I read the full diff versus main: the success-payload rule in test_grip_evidence.rs with both call sites, its unit tests, the spec and changelog text, the new honesty subject, the recaptured reports and the seam cache bump to 1.179. A separate subagent reviewed the exact head and found no legitimate failure-arm oracle wrongly withheld. Its remaining notes only keep credit, so they are fail-open limits that predate this change; they are listed in the PR body and on issue 12757. Local proof: cargo xtask precommit, goldens check and check-evidence-promotion-honesty exit 0, and the two success_payload tests pass. Hosted proof on this head is the remaining evidence.
Generated by Claude Code
ripr static exposure checkCommit Took 239s. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzTr5S4jfQDq1e81UWt
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Head 1dd351e. Since the reviewed head 187a8b5, the only source change is one more gate in discriminate_evidence: a success-payload-only assertion no longer counts toward a failure seam's strength, so the stage agrees with the related-test record. A new unit test checks the Err seam stage is No and the Ok seam stays Yes; the rest of the delta is a merge of main with no conflicts. Local proof: the four success_payload and seam tests pass, check-evidence-promotion-honesty passes after the merge, and goldens check and cargo xtask precommit exit 0. Hosted proof on this head is the remaining evidence.
Generated by Claude Code
The hosted feature lane caught pins the first bump missed: the sharded and compact lane caches move to 0.181 with the full cache, the corpus consumers and OUTPUT_SCHEMA examples track 1.179, and the first-useful-action fixture digests follow the recaptured report bytes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzTr5S4jfQDq1e81UWt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzTr5S4jfQDq1e81UWt
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Head 2ee7895. The source and oracle review from the earlier head still holds for the stage gate in test_grip_evidence.rs. These two commits only carry the 1.179 bump to the consumers that the hosted feature lane showed were still pinned to 1.178:
- The sharded and compact lane caches move to 0.181 alongside the full cache.
- The corpus consumer constants and the two
OUTPUT_SCHEMA.mdexamples now say 1.179. - The first-useful-action unchanged-attempt fixtures have a recomputed content commitment, verify commitments and receipt byte hashes.
- A boundary_gap golden changelog entry records the recapture.
A fresh subagent review of the delta checked these points:
- No current-version pin of 1.178 or 0.180 remains.
- The
content_sha256value is the same across the before, after and verify fixtures. - The receipt hashes match
sha256sumof the referenced files.
Its one finding was the missing golden changelog entry, which is fixed in 2ee7895.
Local checks that passed:
schema_versions_pin,output::schemas::tests(12) and cli_smokefirst_useful_actiongoldens checkandfixturescargo xtask precommit
The cargo-deny red is the repo-wide RUSTSEC-2026-0486 advisory, which is also red on main and is tracked by #14239 / #14240. It is not caused by this PR.
Generated by Claude Code
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzTr5S4jfQDq1e81UWt
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
This review is of head dde782c.
The hosted Rust gates ran on the merge with current main and failed: main had added two honesty-corpus reports at 1.178 (test-local-rival-bare-use and test-local-rival-glob-use). This head merges main in and recaptures both reports with ripr check --mode draft --format repo-exposure-json at 1.179. cargo xtask check-evidence-promotion-honesty passes locally.
No other 1.178 or 0.180 current-version pin is left in the tree, apart from history comments. The source and oracle review from the earlier heads still holds, and the one review thread is resolved.
Generated by Claude Code
Main took 1.180 / 0.182 for #14326. Recompute the unchanged-attempt fixture commitments and recapture the cache-recording honesty reports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzTr5S4jfQDq1e81UWt
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY for head 8ff5e72
The previous queue entry was dropped by the known LSP test race #14514 (deleting_an_unopened_file_outside_the_editor_retracts_its_diagnostics). Main then took cache 1.180 / 0.182 for #14326. This head merges main and moves this change's generation to 1.181 / 0.183 in the constants, pins, both corpus-version copies and OUTPUT_SCHEMA.md. It recomputes the unchanged-attempt fixture commitments with a CHANGELOG entry and recaptures the honesty reports that record the cache version. The classifier source and tests are the same as the reviewed dde782c.
Local checks on this head: the schema pin test, lsp_lifecycle gap_corpus_currentness (21), the xtask rust_corpus_projection tests (5), the ok_assertion unit test, cli_smoke first_useful_action, check-evidence-promotion-honesty, verdict-corpus check-all and cargo xtask precommit all pass.
Generated by Claude Code
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
VERDICT: APPROVE 8ff5e72
Exact-head review, read-only. Head pinned at 8ff5e72; PR OPEN, not draft, MERGEABLE. The delta since dde782c is the cache/evidence refresh: CACHE_SCHEMA_VERSION is 1.181, SHARDED_CLASSIFIED_SEAM_CACHE_SCHEMA_VERSION and COMPACT_CLASSIFIED_SEAM_CACHE_SCHEMA_VERSION are 0.183, both CURRENT_CORPUS_CACHE_SCHEMA_VERSION pins are 1.181, OUTPUT_SCHEMA.md carries 1.181 in both places, the boundary_gap unchanged-attempt commitments are recomputed consistently (content_sha256 93c0…, artifact hashes 8311…/b54f…), and the honesty reports are recaptured at 1.181 with the new ok-assertion-failure-seam report and corpus case. The classifier source and tests are byte-identical to dde782c (blob 6784234d… and 50a1c6f0…), so behavior is unchanged. 0 unresolved threads. Static review only; hosted qualification is the next step.
Main took FILE_FACT 1.59 (#13887), so this change moves to 1.60. The unchanged-attempt snapshots take cache generation 1.181 (#12801), with their content commitment, verify commitments and receipt hashes recomputed over this branch's added seams. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzSKabm4amBSp3FtCH9
…14496) Main bumped CACHE_SCHEMA_VERSION 1.180 -> 1.181 (f05795a, #12801) after this branch's base. The 13 reports recaptured at 1.180 no longer match the merged analyzer, so the queue merge group failed check-evidence-promotion-honesty (43601406351). Recaptured each from ripr check --mode draft --format repo-exposure-json on its subject; seams unchanged, only schema, artifact commitment and analysis_inputs moved.
Governing issue or accepted claim: #12757
Acceptance delta (one sentence): An exact assertion that pins only the success payload (
.unwrap(),Ok(..),Some(..)) is no longer published as ExactValue/Strong on theErr(..)seam it cannot reach, pinned by a unit test and an honesty-corpus case.Source review: REVIEW_READY 8ff5e72
What changed
test_grip_evidence.rs: newsuccess_payload_assertion_can_see_return_arm, applied inbest_oracleandoracle_discriminates_seam, so a success-payload-only exact assertion is not an oracle on a failure-arm seam.None).ok-assertion-failure-seamwith report and corpus case.1.181; the two honesty reports that record the schema (this one andrust-repo-exposure-local-closure-named-like-owner-map) are recaptured withripr check --mode draft --format repo-exposure-json, and the new report is listed inreport_digest_required.Known limits (fail open, unchanged by this PR; tracked on #12757)
ExactValueandWholeObjectEqualityoracles are gated; relational checks, snapshots andmatches!(f(1), Ok(_))on the same seam keep their grade.let v = f(1).unwrap(); assert_eq!(v, 1);) has no success token in the assertion text and keeps its grade.Err::<T, E>(..)spelling is not read as a failure construction (harmless: no success token either).AllOk(.Proof (head 187a8b5)
Local,
CARGO_INCREMENTAL=0,-j1:cargo xtask precommit,cargo xtask goldens checkandcargo xtask check-evidence-promotion-honestyexit 0;cargo test -p ripr --lib success_payloadpasses (2 tests). An independent subagent review of the exact head found no wrongly withheld failure-arm oracle.Generated by Claude Code