Skip to content

fix(output): human output words a test with no assertion "uses no oracle" (#8747) - #8964

Merged
EffortlessSteven merged 9 commits into
mainfrom
claude/project-thread-spfvi9-f
Oct 21, 2026
Merged

EffortlessSteven merged 9 commits into
mainfrom
claude/project-thread-spfvi9-f

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Governing issue or accepted claim: #8747
Acceptance delta (one sentence): The human related-test line for a row whose oracle strength is none reads "uses no oracle" instead of "uses none unknown oracle".

Before: related test ... uses none unknown oracle; misses: has no assertion.

After: related test ... uses no oracle; misses: has no assertion in human and human-full output. The JSON evidence_path text keeps the legacy phrase in this step, and JSON oracle_strength/oracle_kind fields are unchanged.

How: one (None, _) arm in oracle_projection plus a unit case; the JSON caller keeps the old spelling for none for now (marked TRANSITIONAL). 40 human-full goldens re-blessed, the 8 discarded-matcher corpus reports' human-full.txt and the cli_smoke expectation updated. This is step 1 of 2: the first cut put human and JSON together and, with the corpus reports, exceeded the 160-file admission cap, so the JSON evidence path (check.json goldens, #8949) follows. It pairs with the matcher change in #8962.

Local: cargo xtask precommit passes except the offline owner_return_pin_fallible_literal fixture-prepare gap; goldens check has 0 drift; the cli_smoke discarded_matches test and the oracle_projection unit test pass.


Generated by Claude Code

…cle' (#8747)

JSON evidence_path keeps the legacy phrase in this step; the next PR moves it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YFmWzyi2hqh4D77XfiPRiq
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

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

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 40 minutes.

Check out review usage here.

View limit details

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

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 0e665e79-b671-4f3b-aa92-c62a9164035e
📥 Commits

Reviewing files that changed from the base of the PR and between 188aaef and 1f3ee91.

📒 Files selected for processing: 92
  • changelog.d/8747-no-oracle-wording.md
  • crates/ripr/src/output/json/report.rs
  • crates/ripr/src/output/related_test_miss.rs
  • crates/ripr/tests/cli_smoke/discarded_matches.rs
  • docs/how-to/triage-a-finding.md
  • docs/specs/RIPR-SPEC-0224-examined-test-miss-evidence.md
  • fixtures/error_path_oracle_execution_false_branch/expected/CHANGELOG.md
  • fixtures/error_path_oracle_execution_false_branch/expected/human-full.txt
  • fixtures/error_path_oracle_execution_no_assertion/expected/CHANGELOG.md
  • fixtures/error_path_oracle_execution_no_assertion/expected/human-full.txt
  • fixtures/error_path_oracle_execution_reached_uncalled/expected/CHANGELOG.md
  • fixtures/error_path_oracle_execution_reached_uncalled/expected/human-full.txt
  • fixtures/error_path_oracle_execution_shadowed/expected/CHANGELOG.md
  • fixtures/error_path_oracle_execution_shadowed/expected/human-full.txt
  • fixtures/error_path_oracle_execution_uncalled/expected/CHANGELOG.md
  • fixtures/error_path_oracle_execution_uncalled/expected/human-full.txt
  • fixtures/error_variant_boxed_wrapper_downcast_witness/expected/CHANGELOG.md
  • fixtures/error_variant_boxed_wrapper_downcast_witness/expected/human-full.txt
  • fixtures/evidence-promotion-honesty-corpus/discarded-matcher-reports/bare-exact-original/human-full.txt
  • fixtures/evidence-promotion-honesty-corpus/discarded-matcher-reports/bare-exact-wrong/human-full.txt
  • fixtures/evidence-promotion-honesty-corpus/discarded-matcher-reports/bare-guarded-original/human-full.txt
  • fixtures/evidence-promotion-honesty-corpus/discarded-matcher-reports/bare-guarded-wrong/human-full.txt
  • fixtures/evidence-promotion-honesty-corpus/discarded-matcher-reports/bare-wildcard-original/human-full.txt
  • fixtures/evidence-promotion-honesty-corpus/discarded-matcher-reports/bare-wildcard-wrong/human-full.txt
  • fixtures/evidence-promotion-honesty-corpus/discarded-matcher-reports/bound-exact-original/human-full.txt
  • fixtures/evidence-promotion-honesty-corpus/discarded-matcher-reports/bound-exact-wrong/human-full.txt
  • fixtures/field_match_macro_option_shadow/expected/human-full.txt
  • fixtures/field_match_unexecuted_assertion/expected/human-full.txt
  • fixtures/guarded_result_match_fail_closed/expected/CHANGELOG.md
  • fixtures/guarded_result_match_fail_closed/expected/human-full.txt
  • fixtures/guarded_result_match_swallowed/expected/CHANGELOG.md
  • fixtures/guarded_result_match_swallowed/expected/human-full.txt
  • fixtures/match_arm_shadowed_assert/expected/CHANGELOG.md
  • fixtures/match_arm_shadowed_assert/expected/human-full.txt
  • fixtures/oracle_confirmation_mixed/expected/CHANGELOG.md
  • fixtures/oracle_confirmation_mixed/expected/human-full.txt
  • fixtures/owner_return_pin_cfg_attr_module/expected/CHANGELOG.md
  • fixtures/owner_return_pin_cfg_attr_module/expected/human-full.txt
  • fixtures/owner_return_pin_cfg_false_file/expected/CHANGELOG.md
  • fixtures/owner_return_pin_cfg_false_file/expected/human-full.txt
  • fixtures/owner_return_pin_cfg_false_module/expected/CHANGELOG.md
  • fixtures/owner_return_pin_cfg_false_module/expected/human-full.txt
  • fixtures/owner_return_pin_deferred_closure_binding/expected/CHANGELOG.md
  • fixtures/owner_return_pin_deferred_closure_binding/expected/human-full.txt
  • fixtures/owner_return_pin_expired_closure_binding/expected/CHANGELOG.md
  • fixtures/owner_return_pin_expired_closure_binding/expected/human-full.txt
  • fixtures/owner_return_pin_if_false/expected/CHANGELOG.md
  • fixtures/owner_return_pin_if_false/expected/human-full.txt
  • fixtures/owner_return_pin_macro_operand_return/expected/CHANGELOG.md
  • fixtures/owner_return_pin_macro_operand_return/expected/human-full.txt
  • fixtures/owner_return_pin_macro_return/expected/CHANGELOG.md
  • fixtures/owner_return_pin_macro_return/expected/human-full.txt
  • fixtures/owner_return_pin_nested_test/expected/CHANGELOG.md
  • fixtures/owner_return_pin_nested_test/expected/human-full.txt
  • fixtures/owner_return_pin_no_assertion/expected/CHANGELOG.md
  • fixtures/owner_return_pin_no_assertion/expected/human-full.txt
  • fixtures/owner_return_pin_out_of_line_cfg/expected/CHANGELOG.md
  • fixtures/owner_return_pin_out_of_line_cfg/expected/human-full.txt
  • fixtures/owner_return_pin_rebound_test_attribute/expected/CHANGELOG.md
  • fixtures/owner_return_pin_rebound_test_attribute/expected/human-full.txt
  • fixtures/owner_return_pin_shadowed_assertion/expected/CHANGELOG.md
  • fixtures/owner_return_pin_shadowed_assertion/expected/human-full.txt
  • fixtures/owner_return_pin_token_overlap/expected/CHANGELOG.md
  • fixtures/owner_return_pin_token_overlap/expected/human-full.txt
  • fixtures/owner_return_pin_uncalled_closure/expected/CHANGELOG.md
  • fixtures/owner_return_pin_uncalled_closure/expected/human-full.txt
  • fixtures/owner_return_pin_unknown_singleton/expected/CHANGELOG.md
  • fixtures/owner_return_pin_unknown_singleton/expected/human-full.txt
  • fixtures/owner_return_pin_unpolled_async/expected/CHANGELOG.md
  • fixtures/owner_return_pin_unpolled_async/expected/human-full.txt
  • fixtures/predicate_boundary_oracle_refused/expected/CHANGELOG.md
  • fixtures/predicate_boundary_oracle_refused/expected/human-full.txt
  • fixtures/predicate_oracle_execution_false_branch/expected/CHANGELOG.md
  • fixtures/predicate_oracle_execution_false_branch/expected/human-full.txt
  • fixtures/predicate_oracle_execution_no_assertion/expected/CHANGELOG.md
  • fixtures/predicate_oracle_execution_no_assertion/expected/human-full.txt
  • fixtures/predicate_oracle_execution_reached_uncalled/expected/CHANGELOG.md
  • fixtures/predicate_oracle_execution_reached_uncalled/expected/human-full.txt
  • fixtures/predicate_oracle_execution_shadowed/expected/CHANGELOG.md
  • fixtures/predicate_oracle_execution_shadowed/expected/human-full.txt
  • fixtures/predicate_oracle_execution_uncalled/expected/CHANGELOG.md
  • fixtures/predicate_oracle_execution_uncalled/expected/human-full.txt
  • fixtures/rust_macro_wrapped_assertion_limitation/expected/CHANGELOG.md
  • fixtures/rust_macro_wrapped_assertion_limitation/expected/human-full.txt
  • fixtures/rust_slice_table_boundary/expected/CHANGELOG.md
  • fixtures/rust_slice_table_boundary/expected/human-full.txt
  • fixtures/rust_slice_table_call_exit/expected/CHANGELOG.md
  • fixtures/rust_slice_table_call_exit/expected/human-full.txt
  • fixtures/rust_slice_table_try_exit/expected/CHANGELOG.md
  • fixtures/rust_slice_table_try_exit/expected/human-full.txt
  • fixtures/rust_slice_table_zero_elements/expected/CHANGELOG.md
  • fixtures/rust_slice_table_zero_elements/expected/human-full.txt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 20, 2026 05:51
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • expected/CHANGELOG.md in 40 fixtures gained 'Pending' entries that claim check.json + human.txt were updated; only human-full.txt is part of this PR diff. Pending block looks orphaned/duplicated until step 2 (JSON goldens) lands — needs cleanup so the CHANGELOG log line matches actual file changes.
  • Helper oracle_projection is the single owner for human wording; the JSON path's TRANSITIONAL inline formatting is the only caller that bypasses it, so the smallest fix is to fold the legacy spelling back into the helper rather than carry duplicate state in report.rs.

Verification questions

  • Confirm phantom 'Pending' CHANGELOG sections appended to expected/CHANGELOG.md in every re-blessed fixture list expected/check.json and expected/human.txt as updated, but those files are not in this diff.
  • Confirm oracle_projection unit test asserts (None, ExactValue, false) but not (None, ); helper accepts any kind for None. Fine semantically, but spec/docs only mention 'no oracle' for the unknown/unknown branch.
  • Confirm heavy witnesses (cargo-test, cargo-check, clippy) were skipped under the gh-runner profile; ripr sensor failed (exit 2). The textual change is mechanical, but lack of a passing ripr receipt leaves the JSON carve-out's byte-exact equivalence to the prior "none unknown oracle" string unverified by this packet.

Parked follow-ups

  • JSON evidence_path_values keeps the legacy "none unknown oracle" via a parallel format branch; not unified through oracle_projection. Behavioral equivalence to old JSON is preserved.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • The central executable test receipt is unavailable: ripr failed with exit 2 and cargo-test has not yet supplied a receipt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N5f9YVQsrqQiS5EYjYVNm7

Copy link
Copy Markdown
Member Author

Head c38478a merges origin/main (merge commit, no force-push). Conflicts were only in 5 fixtures' expected/CHANGELOG.md and one human-full.txt (error_path_oracle_execution_*); those were re-blessed with cargo xtask goldens bless. cargo xtask precommit passes (includes goldens check: pass).

Response to the github-actions review findings (each verified against the head):

  • "Orphaned Pending CHANGELOG entries": refuted. All 40 fixtures with a #8747 Pending entry have a changed human-full.txt vs main, none are duplicated, and the 8 corpus reports have no CHANGELOG. The Updated: file list (check.json, human.txt, human-full.txt) is the fixed template that goldens bless writes for every entry in this repo, not a claim about this diff; hand-editing it would diverge from the tool.
  • "Fold the legacy JSON spelling into oracle_projection": parked, as the review itself notes. The JSON evidence_path text keeps the legacy phrase on purpose in this step (TRANSITIONAL) so check.json goldens stay out of this PR under the 160-file admission cap; the JSON step follows as its own small PR once this lands.
  • Unit test coverage of other kinds for (None, _): the arm is kind-agnostic by design; the test asserts it with a non-unknown kind (ExactValue).
  • Missing hosted ripr/cargo-test receipts: hosted CI on the new head is still to run.

Draft #8949 (same claim, 160 files incl. the JSON step) is superseded by this PR and is being closed; its JSON step will be re-cut from main after this lands.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs one verification check before upstream.

Verification questions

  • Confirm jSON evidence_path diverges from human wording via TRANSITIONAL inline branch in evidence_path_values; only OracleStrength::None is special-cased and oracle_kind is rendered with underscore-to-space replacement.

Refuted

  • Pending CHANGELOG entries are orphaned/duplicated because they list check.json and human.txt as updated while only human-full.txt changed.; refuted because: The Updated: list is a fixed template emitted by cargo xtask goldens bless for every entry; hand-editing it would diverge from the tool, and the JSON step 2 PR (#8949) is explicitly scoped to re-bless check.json. The 8 corpus reports intentionally have no CHANGELOG.

Parked follow-ups

  • 40 fixtures each got a "Pending" CHANGELOG section claiming check.json+human.txt+human-full.txt were updated, but only human-full.txt is in this diff; 8 corpus reports gained no CHANGELOG.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Both red checks on head c38478a (Rust-only feature lane and the Rust tests step of Ripr Rust Small on GitHub Hosted / Rust gates) fail on one test: cli_smoke selector_recovery_scope::selector_recovery_replays_committed_worktree_and_supplied_diff_scopes. It is not this PR's. This PR changes no navigation or selector code. The regression came in with #9015/#9034 on main (the dirty-tree default makes the committed explain recovery analyze the worktree finding), and #9064's notes document the identical failure on current main. The fix is the draft #9069 (fix(cli): retain committed scope through finding drill-ins). I ran cargo test -p ripr --test cli_smoke on this exact head locally: 599 passed. The CI lane was re-run once and failed the same way.

I am not porting #9069 into this golden-wording PR (nine files by another lane, still a draft). Once it lands on main I will merge main in here, re-apply merge-ready last, and merge after the required check is green.


Generated by Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N5f9YVQsrqQiS5EYjYVNm7

Copy link
Copy Markdown
Member Author

Head 37a94ba (main merged in, so the selector_recovery_scope failure is gone) now fails the Rust-only lane on a different, also unrelated test: owner_pin_execution::literal_json_constructor_matches_real_callback_and_runtime_controls, which builds the owner_return_pin_json_real_literal fixture. This PR touches no fixture inputs or dependency pins. #9069 (open, merge-ready) describes exactly this gap as locked fixture dependency preparation for the required Rust gates, so I'm treating it as that PR's to fix. I'll wait for #9069 to land, then merge main here, re-apply merge-ready, and merge once the required check is green.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • The JSON evidence_path's oracle_kind.as_str().replace('_', " ") reproduces the kind verbatim and is fine for the current None branches, but if a future OracleKind variant is added with non-underscore internals the TRANSITIONAL block silently diverges from the helper. Step 2 should delete this branch entirely rather than generalise it.

Verification questions

  • Confirm jSON evidence_path keeps legacy 'none unknown oracle' via TRANSITIONAL inline branch in report.rs while human/human-full use 'no oracle' — divergence between formats for the same OracleStrength::None row.
  • Confirm ripr sensor failed (exit 2) for this head, so the only proof that the re-blessed 40 fixtures + 8 corpus human-full.txt actually match the new projection is the locally reported cargo xtask precommit/goldens check: pass; cargo-test is scheduled-late and not yet in receipts. Trust in the change rests on the author's local run and the upstream goldens check: pass text rather than an in-CI witness.

Refuted

  • 40 fixtures gained Pending CHANGELOG entries listing check.json+human.txt that are not in this diff.
  • Pending CHANGELOG entries in 40 fixtures are orphaned because they list check.json+human.txt not in diff; refuted because: Updated: list is fixed template emitted by cargo xtask goldens bless for every entry; hand-editing would diverge from tool. 8 corpus reports intentionally have no CHANGELOG.
  • A human-render sibling bypasses oracle_projection and still emits 'none unknown oracle', making the helper change incomplete.; refuted because: grep -rn 'none unknown oracle' crates/ripr/src returns no hits; human.rs, human_full.rs, explain.rs, and tracker.rs all consume the helper. The 40 re-blessed goldens plus cli_smoke discarded_matches prove the human route goes through the new arm.
  • The added (None, _) arm may mislabel unrelated oracle kinds.; refuted because: None is the domain representation that no oracle strength was established, and the wildcard arm deliberately projects the same human phrase while miss details remain separately rendered.

Parked follow-ups

  • JSON evidence_path text retains legacy "none unknown oracle" for OracleStrength::None, diverging from human wording.
  • 40 fixture CHANGELOG 'Pending' entries list check.json + human.txt as updated but only human-full.txt is in this PR diff; 8 discarded-matcher corpus fixtures gained no CHANGELOG.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Also state the strength-none projection in RIPR-SPEC-0224.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YFmWzyi2hqh4D77XfiPRiq
# Conflicts:
#	crates/ripr/src/output/related_test_miss.rs
#	fixtures/field_match_macro_option_shadow/expected/CHANGELOG.md
#	fixtures/field_match_unexecuted_assertion/expected/CHANGELOG.md
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YFmWzyi2hqh4D77XfiPRiq

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • Helper unit test only covers (None, ExactValue, false); the wildcard kind branch is exercised by other arms, so this is sufficient given TRANSITIONAL in JSON. Worth a (None, Unknown) case in step 2 only if JSON is folded in.

Verification questions

  • Confirm the only sibling path bypassing the helper is JSON evidence_path_values for OracleStrength::None (TRANSITIONAL, marked #8747). Human/human-full go through oracle_projection. help.rs, json/report.rs json-evidence row shapes, and explain/seed paths do not re-render the OracleStrength/OracleKind tuple.
  • Confirm oracle_projection's new (None, _) arm matches every OracleKind but only (None, ExactValue, false) is unit-tested; kind-agnostic behavior on the human wording path is accepted by spec but the helper's wildcard is an over-broad match surface.

Refuted

  • The new output wording is insufficiently proven because the RIPR sensor failed.; refuted because: The failure is a real trust gap rather than a correctness defect; focused Rust/cargo-test proof is still required before merge.
  • The JSON output should have been migrated together with human output.; refuted because: The seeded PR body and specification explicitly scope JSON migration to a follow-up, and report.rs contains a documented transitional branch; this is parked scope, not a missing test for the current claim.
  • The JSON TRANSITIONAL inline branch duplicates oracle_projection state and should be folded into the helper now to keep a single source of truth.; refuted because: Same refutation as the reviewer note and SPEC-0224 prose: doing it now would force re-blessing check.json goldens and breach the 160-file admission cap; step 2 (#8949) owns the delete.
  • The (OracleStrength::None, _) arm rewords the old '(Unknown,Unknown) !has_assertion' row and silently falsifies fixtures that should say 'an unclassified oracle, not graded against this probe'.; refuted because: Prior arm gates on (Unknown, Unknown) AND !has_assertion; new wildcard matches only strength==None. Pre-diff human-full goldens explicitly contain 'uses none unknown oracle', proving the prior code emitted that phrase only when the analyzed OracleStrength was None (paired with kind==Unknown). The phrase change tracks the wording fix, not a coverage regression.

Parked follow-ups

  • The transitional JSON branch duplicates formatting outside oracle_projection and can drift when OracleKind variants change.
  • JSON TRANSITIONAL branch in evidence_path_values is intentionally duplicated state; smallest complete fix is to delete it in step 2 (#8949) rather than fold it into the helper now (would breach 160-file admission cap for check.json goldens).

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • Automated proof of the 92-file golden change is incomplete in this packet: ripr failed and cargo-test is only scheduled-late.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants