Repository navigation
test(rust): add live effect-assertion control fixtures and honesty rows (#8927) - #9118
Conversation
Share the existing SPEC-0197 admission and refusal across side-effect and call-deletion assert_eq!/assert! oracles, preserving reachable observers. Pin strong, medium, dead and mixed controls; invalidate classified caches. Analyzer/Cargo qualification and honesty corpus enrollment remain pending the bounded worker's admitted build resources; retain this candidate Draft.
Keep exact refusal-note assertions on the strong contexts that #8924 retains for admission. Medium dead oracles may be dropped at extraction; they still retain no observation or discriminator.
Normalize whitespace before checking the same ordered guidance phrase. Preserve JSON, effect-class, provenance and missing-oracle assertions.
Render a cloned analyzer report with its next steps removed and require the same whitespace-normalized guidance check to reject that output.
Bump classified cache generations to 1.86/0.92 over main's 1.85/0.91 (#8600). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
…on (#8927) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
…generation 1.86 fixtures (#8927) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
…on unit test (#8927) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
…ared admission (#8927) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
Move classified-seam cache generations to full 1.87 / sharded 0.93 / compact 0.93 after #8986 took 1.86 / 0.92 (#8948). Recompute the unchanged-after-attempt content and receipt hashes, pins in docs/OUTPUT_SCHEMA.md and corpus-currentness tests. Disclose the review's residual fail-open contexts in RIPR-SPEC-0197. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
…admission The #[should_panic] test's assert_eq! on a side-effect push is no longer credited as a weak oracle now that effect-family assertions pass the shared SPEC-0197 admission, so the static class moves weakly_exposed -> reachable_unrevealed. The verdict stays gap, outcome ideal, truth unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
…, compact twins) (#8927) Review of #8934 reproduced two candidate-introduced regressions against current main: an unconditional std::/core::-qualified assert! and the first of identical same-line assertions (`A; return; A;`) lost effect credit even though the assertion runs. - Qualified `assert!` is a candidate assertion and a standard-qualified macro like qualified `assert_eq!`: it needs the same unrebound-root proof and eager-path admission, so dead contexts stay refused. - Identical spellings on one line carry DuplicateSpellingOneRuns when some invocation provably runs; only SideEffect/CallDeletion admission uses it, the return family still refuses (owner_pin_refuses_ambiguous_oracle_coordinates). - Sweep/effect tests use an aligned standalone `notifier.send(order_id);` stimulus (@@ -16,5, call at line 18) and assert exactly one call_deletion and one side_effect finding at line 18; std/core assert and compact mixed controls are required to credit, compact dead twins to refuse. - The three dead fixtures move to the aligned stimulus; new fixtures effect_assertion_runs_compact_mixed and effect_assertion_std_qualified_live with four honesty-corpus controls replace the shifted-hunk CallDeletion row. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
#8927) Splits the std-qualified and compact-twin live controls with their honesty-corpus rows out of this PR to keep qualification scope under the admission limit. The execution tests still cover the live contexts. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
…ws (#8927) Follow-up split from #8934: std-qualified and compact-twin live controls with their honesty-corpus rows. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
|
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 2 minutes. View limit details
Comment |
There was a problem hiding this comment.
Refuted
- The two new fixtures duplicate the effect_assertion_after_return scaffold and should be merged into a single parametric fixture (e.g., effect_assertion_live_matrix) to avoid maintenance burden and fixture-count bloat.; refuted because: Rejected: the PR is explicitly a controlled experiment with one variable per fixture (compact/dead-twin vs. std::qualified) and each carries its own goldens, SPEC, and corpus row. A matrix fixture would couple oracle-strength outcomes (exposed vs weakly_exposed) and defeat the vector isolation that the corpus relies on for honesty-row assertions. Maintenance cost is low: only the assertion line and expected/check.json differ. PR body also notes these were split out of #8934 to keep file count under an admission limit, so further consolidation would re-trigger that concern.
- This fixture-only PR changes production behavior or creates material performance/security risk.; refuted because: Changed executable behavior is confined to isolated fixture crates; manifests have no dependencies and the production tree is unchanged.
Parked follow-ups
- Duplication risk between compact_mixed and after_return: both end with an
assert_eq! ... return;pattern. This is intentional experimental design (proving dead-twin does not strip credit) rather than a copy/paste defect. Mitigation lives in the SPEC.md 'Must Not' clause, which states the dead controls must stay reachable_unrevealed — coupling the two fixtures' expected classifications prevents silent divergence.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- Ripr sensor failed (exit 2) and cargo-test evidence is scheduled-late; no executable red/green witness captured in this pass to prove the live-vs-dead classification in the goldens actually fires.
- The PR's proof narrative claims cargo xtask fixtures passes, but this lane has only a failing ripr receipt and no cargo-test receipt.
…ate (#8927) outer_macro_path stripped all whitespace before the first '!', fusing a leading prefix token into a plain-looking path (if matches!(..) -> ifmatches), so a one-line if <macro-cond> { assert_eq!(..); } skipped the effect-family gate and was credited. The macro path must now start the oracle text; any other whitespace or a leading keyword makes the oracle compound. Adds one-line forms to the dead-context sweep, a unit case, SPEC-0197 text, and corrects the live-control follow-up reference to #9118. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
|
Heads-up from the merge queue: this branch has been CONFLICTING with main for ~2h (last push 18:29 UTC). The conflict is semantic, not mechanical — main bumped |
|
PR_MERGED — #9118 landed at 2026-10-23 09:38:50 UTC through the normal protected, expected-head squash. Qualified head: 1fbc02c. Landed commit: d9475e8. Actual tree: 6b2c178268ad72945ac8ab6782ced67e15a5a07f. Parent: 2b560c2. GitHub merged state, main ref and fetched Git object agree; the tree exactly matches the inspected current-main composition. The canonical owner’s unpushed overlap was explicitly discarded before the guarded branch adoption; no competing PR or writer was created. Preservation: exactly 21 fixture/corpus/SPEC/traceability paths, no production delta. All 407 parent corpus rows remain identical plus four additions = 411 unique IDs. All five effect-control directories and the entire corpus are byte-identical to the reviewed head. #8934’s landed assertion-admission implementation remains intact, including the sibling-effect refusal semantics. Evidence: final exact-head REVIEW_READY record, supported by independent source/oracle/currentness review. The sole provenance thread was answered, confirmed and resolved. Required qualification39927551567 attempt1 finished successfully: 19,962 tests passed, five skipped; doctests, goldens, fixtures, four verdict corpora, PR evidence and schema passed. Actual hosted checkout7af9ab73a316edc304880514a4c51994e541acbd had parents67f48e6ef567302ab7e104a2dfa83db5f8cd422c + qualified head, tree7aac7ea65826be0680d3add69adacc14cc199a7b. Event inputs were base b6be7b0, qualified head and merge-ready. Admission counted 13 files/259 lines after the existing generated-golden exemption; full review covered all 21 files/933 changed lines. Separate current-main debug composition49261d39b7de6830ed3c6233499e33165786d309 passed build, full goldens, fixtures and honesty. Later main applicability was independently reviewed. No duplicate qualification was requested. Evidence limits remain explicit: advisory sensor exit2, cargo-test timeout and the invalid nonexistent-package/test invocation are instrument failures, not advisory passes. Classic protection visibility was unavailable; no retry or bypass was used, and normal server enforcement accepted the merge. Issue-state correction: #8927 was already closed at 08:50:04 UTC, before this merge. Event34034153486 records account EffortlessSteven with no closing commit. This lane performed no issue-state write. The squash message’s statement that it remained open was stale; this readback corrects that statement. Ownership/authorization of the earlier closure is left for parent reconciliation. No reopen/close action was taken here, and unrelated pending approvals remain untouched. No remaining #9118 source, review, dependency or required-check blocker. Parent issue acceptance is not inferred from this leaf landing. |
|
Findings from a local (unpushed) merge of origin/main (b777448) into 0fd4c05, for whoever continues this branch:
Generated by Claude Code |
Retain only the live fixture/corpus follow-up to landed #8934. Preserve all 407 mainline corpus rows, add four live controls, and reconcile the Human repair-readiness hint under RIPR-SPEC-0197.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Candidate inspection: source and focused proof complete; final disposition REVIEW_INCOMPLETE pending current composed-tree execution and required hosted qualification.
reviewed_head_sha: 1fbc02c
integration_basis: committed basis b6be7b0; actual current GitHub composition7af9ab73a316edc304880514a4c51994e541acbd, tree7aac7ea65826be0680d3add69adacc14cc199a7b, parents67f48e6ef567302ab7e104a2dfa83db5f8cd422c + reviewed head.
claim_boundary: exactly21 fixture/corpus/SPEC/traceability paths; no production behavior delta. Compact equality keeps exact_value/strong exposed credit alongside a dead twin; standard-qualified assertion keeps mock_expectation/medium weak credit; all three landed dead contexts refuse credit.
changed_surfaces_and_semantic_owners_inspected: complete21-path diff, fixture inputs and actual rendered JSON/Human, four honesty rows and checker consumer, SPEC0197/mapping, landed assertion execution admission and provenance projection. Independent exact-object reviewer inspected source/oracle and main applicability separately.
blocking_findings: none in source or focused proof.
proof_and_ci_observed: exact-head producer SHA2566897439d4856931619436c5e898e3a6623ffeb088889d361558ba27a2612ecdf; all six serial local gates native0 (check-fast14 gates/21-path selector,2 disclosed skips; precommit with real goldens; honesty; fixtures; traceability; SPEC format). All407 existing corpus rows identical plus4,411 unique IDs. Real honesty checker rejected demoted and empty live golden mutations, then passed after exact restoration. Earlier native correct/wrong-payload test witnesses remain applicable to unchanged five-fixture source.
refuted_or_stale_findings: Devin provenance note is informational; reply4357657458 confirms retained dead-source provenance does not supply execution admission. Reply was read back before resolution; resolution returnedtrue. Historical stacked full-tree equality is not successor evidence. Historical ub-review wrapper success hid sensor exit2 and final cargo-test101; it supplies no current qualification.
proof_or_review_missing: current composed checkout execution is running; no hosted qualification requested yet. Provider quota/skips supply no clean review. Classic protection read remains unavailable; no bypass is authorized, and normal server enforcement remains required.
affected_currentness_dimensions: conflict resolution, golden hint inherited into new fixture, exact candidate identity and current-main integration. Production/test stimulus unchanged where prior runtime witnesses are reused.
residual_assumptions_and_non_claims: static exposure is not runtime mutation proof; source-value provenance is not execution evidence; current published head and all conversations/checks must be refreshed before final merge. #8927 closure is separate.
disposition: REVIEW_INCOMPLETE; candidate source/focused-proof inspection supports continued Draft integration and one qualification request after composed-tree proof.
There was a problem hiding this comment.
Decision
- Needs focused proof failure resolved before upstream.
Refuted
- These fixture-only changes alter production behavior or create material performance/security risk.; refuted because: Executable Rust changes are isolated dependency-free test fixtures; the production analyzer tree is unchanged, so this packet presents no production route or runtime impact.
- Compact
A; return; A;looks like a dead-after-return duplicate of effect_assertion_after_return and should refuse credit, downgrading to reachable_unrevealed; refuted because: Pre-return A runs, oracle exact_value/strong is detected at line 30, classification exposed with confidence 1.00; dead twin after return only contributes a source-value provenance entry, no admission. Real honesty checker rejects demoted/empty mutations and passes after exact restoration (per seeded review). Dead-context controls remain reachable_unrevealed. - This fixture-only patch may alter public production routes or performance behavior.; refuted because: The executable additions are isolated Cargo fixtures under fixtures/*/input; the PR changes no production source and introduces no dependency, public API, or production caller route.
- The two live fixtures should be consolidated to avoid materially coupled or contradictory expected behavior.; refuted because: They intentionally isolate distinct semantics: compact assertion syntax yields exposed strong credit, while standard-qualified assert! remains weakly exposed; separate corpus rows encode that distinction.
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked --package ripr-swarm --test evidence-promotion-honesty-corpus. This is a current failure, not a red/green witness.
Evidence gaps
- Current-tree executable qualification is not present in this lane packet, although cargo-test is scheduled late and is not reported missing.
- Model proof intent was rejected by deterministic validation.
- The trust signal is currently weaker than the PR's execution claim because the late cargo-test receipt is absent from this packet.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Disposition of current advisory review5626056920: its focused command failure is an invalid invocation, not an observed candidate assertion failure. Reproduced on the actual GitHub composition7af9ab73a316edc304880514a4c51994e541acbd: cargo test --locked --package ripr-swarm --test evidence-promotion-honesty-corpus exits101 with package ID specification ripr-swarm did not match any packages. Locked workspace metadata names only ripr, xtask and repo-policy, and contains no evidence-promotion-honesty-corpus test target. This invocation executed no test and is not a red/green witness.
The actual supported commands xtask goldens check, xtask fixtures, and xtask check-evidence-promotion-honesty already passed on fresh exact candidate1fbc02cf and on fresh debug composition7af9ab73; deliberately demoted/empty live golden controls were rejected by the real honesty checker before exact restoration. Source/oracle review remains valid and found no actionable defect. The advisory's compact/dead-twin concern was also evidence-refuted in its own review.
Terminal run39925412355/job120320461357 is wrapper-success only: its final reporter says ripr sensor failed exit2 and cargo-test timed out900s. This supersedes its model review's earlier scheduled-late wording. Those remain missing advisory execution evidence; no rerun is requested and no advisory failure is relabeled as a pass. The existing required Rust Small run39927551567 is still running. Final merge disposition remains REVIEW_INCOMPLETE until its actual checkout, complete terminal required proof, current conversations and integration are inspected.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Disposition: REVIEW_READY for published head 1fbc02c. Independent exact-head source/oracle review and final currentness review found no blocking source, test or integration finding. This author-account COMMENT records that disposition; it is not a GitHub approval event.
Scope and preservation: complete 21-path fixture/corpus/SPEC/traceability delta against b6be7b0; no production delta. All 407 existing honesty rows remain identical plus four additions = 411 unique IDs. Landed #8934 b777448 admission behavior and sibling-effect refusal remain intact. Actual controls each have exactly side_effect/call_deletion at line 18 and one related test: compact exposed/exact_value/strong; standard-qualified weakly_exposed/mock_expectation/medium; three dead contexts reachable_unrevealed/unknown/none with no observe/discriminate credit. Real checker rejects demoted and empty live controls, then passes after exact restoration; unchanged fixture source retains the earlier native wrong-payload discrimination witnesses.
Required hosted proof: one merge-ready request, run39927551567 attempt1, terminal success at09:33:45 UTC. Rust job120327851012 and required result120344769595 succeeded. Actual job checkout is 7af9ab7, tree7aac7ea65826be0680d3add69adacc14cc199a7b, parents67f48e6ef567302ab7e104a2dfa83db5f8cd422c + reviewed head. Terminal native summary: 19,962 tests passed, 11 slow, five skipped; doctests, honesty, goldens, fixtures, four verdict corpora, PR evidence and schema sweep succeeded. Event inputs were base b6be7b0, head1fbc02cf, labelmerge-ready. Admission counted 13 files/259 lines after the existing base .gitattributes policy exempted eight generated golden files/674 lines from the complete 21 files/933 changed lines; those golden files were included in source review and actual output gates.
Current integration: separately executed composition49261d39b7de6830ed3c6233499e33165786d309 (tree7205322852028c4620671075b03bef15c1e3e859, parents dff1e38 + reviewed head) passed fresh debug build, full goldens, fixtures and honesty. All five control directories and corpus are byte-identical to the reviewed head. Later main2b560c282e74c53a8d1b685e7f467c207dc7820a composes cleanly, tree6b2c178268ad72945ac8ab6782ced67e15a5a07f. Independent applicability inspection found its module-root ambiguity guards unreachable in these single-file/no-include fixtures; MCP changes affect test budgets. Unaffected proof is retained without branch churn or another campaign.
Conversation and limits: current reviews and ordinary comments were inspected, sole provenance thread answered4357657458/read back before resolution and remains resolved. Stale cache-conflict warning does not apply to this production-free delta. Current advisory review5626056920 is addressed by5626104840: nonexistent Cargo package/test invocation exits101 before any test. Its sensor exit2 and cargo-test timeout remain missing advisory evidence, not clean passes. They do not negate the separate supported-command and required hosted results. Provider quotas/skips are not review. All44 current-head check runs and22 workflow runs are terminal, success/skipped; no active campaign or source finding remains. Raw GitHub reports mergeable=true/clean, no auto-merge. Active main ruleset requires thread resolution and is satisfied; classic protection remains unreadable, so ordinary server enforcement governs, with no bypass.
Final action may be the normal expected-head protected squash. #8927 acceptance/closure and every unrelated pending approval remain separate.
Adds two live assertion controls beside the dead-context controls landed in #8934. The compact assertion retains
exposedcredit despite its dead twin; thestd::assert!control remainsweakly_exposed. This is a fixture/corpus evidence package with no production code change.Proposal: none; follow-up acceptance is governed by #8927.
Spec: RIPR-SPEC-0197.
ADR: none; no architecture change.
Plan item: live-control fixture and honesty-corpus follow-up to #8934 under #8927.
Governing issue or accepted claim: #8927.
Acceptance delta (one sentence): Preserve the landed dead-context refusal while proving compact live equality remains exposed and a live standard-qualified assertion retains only its existing weak credit.
Candidate branch (GitHub PR head is authoritative after publication):
codex/8927-live-effect-controls, head1fbc02cfbcf41ffcea7432efca0ba28fbe72c3f2.Stack parent or prerequisite PR (if any): #8934, landed as
b777448e4812ec64be2980aadbd0607a84fd9ad2; this PR now targets main.Proposed replacement of PR (if any; not yet accepted): none.
Acceptance retained from a replaced candidate (if any): none; this continues the existing canonical #9118.
Accepted winner and losing candidate disposition (when decided): none; the author's overlapping unpublished merge attempt was discarded, as recorded in comment6360276569.
The history-preserving successor has parents original head
0fd4c055c877aa46b3f71d576e989718f1bc0172and mainb6be7b0aeaef3312b47130917848b2cfc7c5b1ff, tree381d07d2b631d4e566df315e1ce2eb62e56595a4. Its delta against that main is exactly21 fixture, corpus, SPEC and traceability paths. All407 base corpus rows remain identical; four additions give411 unique IDs. Main's sibling-effectreachable_unrevealedexpectation and other corpus additions remain intact. The carried compact Human hint now names missing observable sink localization; its JSON classification and oracle are unchanged.Fresh native producer on the successor:
ripr 0.11.0 (1fbc02cfbcf41ffcea7432efca0ba28fbe72c3f2), SHA2566897439d4856931619436c5e898e3a6623ffeb088889d361558ba27a2612ecdf. Terminal local checks:xtask check-fast(14 gates,21 selected paths,2 disclosed skips, including strict workspace all-target Clippy),precommit(actual goldens ran),check-evidence-promotion-honesty,fixtures,check-traceability, andcheck-spec-format, all exit0. The real honesty checker also rejected deliberately demoted and empty live golden mutations, then passed after byte-exact restoration. Prior correct/wrong-payload runtime witnesses remain applicable to unchanged fixture source: both live wrong-payload tests fail, while all three dead-context wrong-payload tests pass.Independent exact-head source/oracle review found no actionable defect. Current-main composition and final hosted evidence are tracked in the continuation receipt. Historical wrapper-green ub-review is not qualification: its ripr sensor failed and cargo-test ended101. Historical bot quota/skip output is missing review. No clean final-merge disposition is claimed until the current published head and actual composed checkout are inspected.
No support-tier, cache-version, dependency, workflow, policy or public schema change. The production changelog for assertion execution admission landed in #8934; this evidence-only follow-up records its sole Human golden refresh in the fixture's expected/CHANGELOG.md. Rollback is limited to these21 fixture/corpus/mapping paths and must preserve #8934's landed production behavior. #8927 acceptance/closure is a separate action.