Skip to content

fix(output): word an ungraded classified oracle as "<kind> oracle, not graded against this probe" (#8388) - #8947

Merged
EffortlessSteven merged 2 commits into
mainfrom
claude/project-thread-spfvi9-c
Oct 20, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
claude/project-thread-spfvi9-c

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Governing issue or accepted claim: #8388
Acceptance delta (one sentence): A related test row with a classified oracle kind but unknown strength reads "uses oracle, not graded against this probe" instead of "uses unknown oracle".

Before: related test ... uses unknown exact value oracle, which reads as an absolute grade of the assertion.

After: related test ... uses exact value oracle, not graded against this probe. JSON oracle_strength/oracle_kind fields are unchanged; only the prose line (human, human-full, JSON evidence_path) changes.

How: one new arm in oracle_projection (step 2 of 3 after #8936; step 3 is none unknown -> no oracle, #8747), 30 fixtures blessed, and the xtask evidence-promotion oracle matcher accepts the wording (unit test added). Split by phrase because the whole change exceeds the admission gate.

Local: cargo xtask precommit passes; goldens check clean except the offline owner_return_pin_fallible_literal gap; oracle_projection and xtask matcher unit tests pass.


Generated by Claude Code

…t graded against this probe' (#8388)

Bless 30 fixtures; the evidence-promotion oracle matcher accepts the wording.

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!

@EffortlessSteven EffortlessSteven self-assigned this Oct 20, 2026
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 4b023adf-81ae-47ed-9c68-d61a4b3f32a3
📥 Commits

Reviewing files that changed from the base of the PR and between 2f1d1b2 and 8287cf3.

📒 Files selected for processing: 86
  • changelog.d/8388-oracle-kind-not-graded-wording.md
  • crates/ripr/src/output/related_test_miss.rs
  • docs/specs/RIPR-SPEC-0224-examined-test-miss-evidence.md
  • fixtures/assertion_form_parity_assert_msg/expected/CHANGELOG.md
  • fixtures/assertion_form_parity_assert_msg/expected/check.json
  • fixtures/assertion_form_parity_err_guard/expected/CHANGELOG.md
  • fixtures/assertion_form_parity_err_guard/expected/check.json
  • fixtures/constant_declaration_probe_reconciliation/expected/CHANGELOG.md
  • fixtures/constant_declaration_probe_reconciliation/expected/check.json
  • fixtures/constant_declaration_probe_reconciliation/expected/human-full.txt
  • fixtures/error_path_diagnostic_absent/expected/CHANGELOG.md
  • fixtures/error_path_diagnostic_absent/expected/check.json
  • fixtures/error_path_diagnostic_absent/expected/human-full.txt
  • fixtures/error_path_diagnostic_error/expected/CHANGELOG.md
  • fixtures/error_path_diagnostic_error/expected/check.json
  • fixtures/error_path_diagnostic_error/expected/human-full.txt
  • fixtures/error_path_diagnostic_escaped/expected/CHANGELOG.md
  • fixtures/error_path_diagnostic_escaped/expected/check.json
  • fixtures/error_path_diagnostic_escaped/expected/human-full.txt
  • fixtures/error_path_diagnostic_format/expected/CHANGELOG.md
  • fixtures/error_path_diagnostic_format/expected/check.json
  • fixtures/error_path_diagnostic_format/expected/human-full.txt
  • fixtures/error_path_diagnostic_neutral/expected/CHANGELOG.md
  • fixtures/error_path_diagnostic_neutral/expected/check.json
  • fixtures/error_path_diagnostic_neutral/expected/human-full.txt
  • fixtures/error_path_diagnostic_raw/expected/CHANGELOG.md
  • fixtures/error_path_diagnostic_raw/expected/check.json
  • fixtures/error_path_diagnostic_raw/expected/human-full.txt
  • fixtures/error_path_diagnostic_typed_argument/expected/CHANGELOG.md
  • fixtures/error_path_diagnostic_typed_argument/expected/check.json
  • fixtures/error_path_diagnostic_typed_argument/expected/human-full.txt
  • fixtures/error_path_diagnostic_typed_message/expected/CHANGELOG.md
  • fixtures/error_path_diagnostic_typed_message/expected/check.json
  • fixtures/error_path_diagnostic_typed_message/expected/human-full.txt
  • fixtures/error_path_operand_error_lexeme/expected/CHANGELOG.md
  • fixtures/error_path_operand_error_lexeme/expected/check.json
  • fixtures/error_path_operand_error_lexeme/expected/human-full.txt
  • fixtures/error_path_oracle_execution_called/expected/CHANGELOG.md
  • fixtures/error_path_oracle_execution_called/expected/check.json
  • fixtures/error_path_oracle_execution_called/expected/human-full.txt
  • fixtures/error_path_oracle_execution_direct/expected/CHANGELOG.md
  • fixtures/error_path_oracle_execution_direct/expected/check.json
  • fixtures/error_path_oracle_execution_direct/expected/human-full.txt
  • fixtures/error_path_oracle_execution_false_branch/expected/CHANGELOG.md
  • fixtures/error_path_oracle_execution_false_branch/expected/check.json
  • fixtures/error_path_oracle_execution_false_branch/expected/human-full.txt
  • fixtures/error_path_oracle_execution_reached_uncalled/expected/CHANGELOG.md
  • fixtures/error_path_oracle_execution_reached_uncalled/expected/check.json
  • 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/check.json
  • 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/check.json
  • fixtures/error_path_oracle_execution_uncalled/expected/human-full.txt
  • fixtures/helper_chain_multi_hop/expected/CHANGELOG.md
  • fixtures/helper_chain_multi_hop/expected/check.json
  • fixtures/infect_value_returned/expected/CHANGELOG.md
  • fixtures/infect_value_returned/expected/check.json
  • fixtures/infect_wildcard_discard/expected/CHANGELOG.md
  • fixtures/infect_wildcard_discard/expected/check.json
  • fixtures/lsp_agent_protocol/expected/CHANGELOG.md
  • fixtures/lsp_agent_protocol/expected/check.json
  • fixtures/observation_verified_return_value/expected/CHANGELOG.md
  • fixtures/observation_verified_return_value/expected/check.json
  • fixtures/owner_pin_written_expected_not_a_pin/expected/CHANGELOG.md
  • fixtures/owner_pin_written_expected_not_a_pin/expected/check.json
  • fixtures/owner_return_pin_identity_traps/expected/CHANGELOG.md
  • fixtures/owner_return_pin_identity_traps/expected/check.json
  • fixtures/propagated_error_closing_early_path/expected/CHANGELOG.md
  • fixtures/propagated_error_closing_early_path/expected/check.json
  • fixtures/propagated_error_closing_early_path/expected/human-full.txt
  • fixtures/rust_committed_golden_expected_file/expected/CHANGELOG.md
  • fixtures/rust_committed_golden_expected_file/expected/check.json
  • fixtures/rust_committed_golden_expected_file/expected/human-full.txt
  • fixtures/rust_returned_type_drop_local_guard/expected/CHANGELOG.md
  • fixtures/rust_returned_type_drop_local_guard/expected/check.json
  • fixtures/rust_returned_type_drop_local_guard/expected/human-full.txt
  • fixtures/rust_where_bound_declarations/expected/CHANGELOG.md
  • fixtures/rust_where_bound_declarations/expected/check.json
  • fixtures/rust_where_bound_declarations/expected/human-full.txt
  • fixtures/whole_value_string_from_shadow/expected/CHANGELOG.md
  • fixtures/whole_value_string_from_shadow/expected/check.json
  • fixtures/whole_value_string_from_shadow/expected/human-full.txt
  • xtask/src/evidence_promotion.rs
  • xtask/src/tests.rs

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.

Summary by CodeRabbit

  • Bug Fixes

    • Updated related-test diagnostics to clearly identify oracle kinds that are not graded against the current probe.
    • Distinguished ungraded assertions from missing assertions, which are now reported separately.
    • Preserved explicit wording for graded and unclassified oracles.
  • Documentation

    • Added the oracle-display rules to the specification.
    • Updated changelog entries and expected diagnostic examples across supported scenarios.
  • Tests

    • Added coverage confirming correct matching for graded, ungraded, and absent oracle messages.

Walkthrough

The change updates related-test evidence to identify known oracle kinds as not graded against the probe when oracle strength is unknown. It also updates human-output matching rules, documentation, fixture expectations, and tests.

Changes

Related-test oracle wording

Layer / File(s) Summary
Projection and expected-output updates
crates/ripr/src/output/related_test_miss.rs, docs/specs/RIPR-SPEC-0224-examined-test-miss-evidence.md, changelog.d/8388-oracle-kind-not-graded-wording.md, fixtures/*/expected/*
Unknown-strength rows with a known oracle kind now use wording that says the oracle is not graded against the probe. The specification describes graded, ungraded, unclassified, and absent-oracle cases. Fixture expectations and changelogs reflect the revised output.
Human-output oracle matching
xtask/src/evidence_promotion.rs, xtask/src/tests.rs
Matching now checks the expected oracle kind for ungraded rows. Tests cover matching kind-only wording and reject mismatched kinds, strengths, and stale wording.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 8287c

This change rewords how related-test oracles are described when the oracle kind is known but its strength is unknown. The JSON strength and kind fields are unchanged. No merge-blocking risk was identified.

Pre-merge checks: Passed 3 · Failed 1 · Inconclusive 1

Failed Failed checks: 1 warning · 1 inconclusive

Check name Status Explanation Resolution
Description check Warning The description explains the change, governing issue, acceptance delta, implementation approach, tests, and known proof limitation. However, it omits most required template sections, including source … Complete the required template sections. At minimum, document the swarm boundary, source-of-truth links, candidate relationships, scope and non-goals, support-tier and policy impact, claim boundary, rollback plan, spec-test-code traceabilit…
Docstring Coverage Inconclusive Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (84 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: revised wording for ungraded classified oracles.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the change, governing issue, acceptance delta, implementation approach, tests, and known proof limitation. However, it omits most required template sections, including source boundary, source-of-truth links, candidate relationships, scope classification, impact sections, claim boundary, rollback, traceability, static-language checks, engineering checks, and gates.

Resolution

Complete the required template sections. At minimum, document the swarm boundary, source-of-truth links, candidate relationships, scope and non-goals, support-tier and policy impact, claim boundary, rollback plan, spec-test-code traceability, static-language status, CI economics as n/a if applicable, engineering checks, and each required gate with its result or an explicit skip reason.

Full details: Docstring Coverage

Explanation

Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (84 skipped: 83 unsupported, 1 too large.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit reads the oracle line,
“Not graded here,” says, “That is fine!”
Exact-value clues now show their kind,
While stale old labels fall behind.
I thump and cheer the clearer sign!

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

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 20, 2026 03:33
@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 3 potential issues.

Devin Review

Comment thread xtask/src/evidence_promotion.rs Resolved

@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

  • PR body frames this as 'step 2 of 3' of a sequenced oracle-wording refactor and states step 3 is 'none unknown -> no oracle, #8747'. The PR does not advance step 3 and does not link/track #8747; future readers of #8388 may be surprised by an unfinished sequence. Architecture-side concern only: consider noting in the PR description that step 3 remains in #8747 and is intentionally out of scope here.

Verification questions

  • Confirm xtask evidence_promotion_human_oracle_line_matches now accepts both wording variants and rejects mismatched strength/kind; new xtask test evidence_promotion_human_oracle_line_accepts_kind_ungraded_wording locks behavior.
  • Confirm reviewer claim that 'unknown exact value oracle' wording still passes promotion is correct: the evidence_promotion matcher accepts both 'unknown oracle' (via projection.starts_with) and the new ' oracle, not graded' phrasing when expected_strength==unknown. This is by design for backward compatibility but allows stale goldens.
  • Confirm ripr sensor failed (exit 2) and cargo-test receipt is scheduled-late and absent, so this lane cannot witness that cargo xtask goldens check actually passes against the regenerated renderer; goldens and unit tests are internally consistent but not live-witnessed. Re-check after broker returns cargo-test receipt or rerun cargo test --locked --package ripr --lib related_test_miss::tests and cargo run --locked --package xtask -- goldens check.

Refuted

  • Ungraded oracle wording change has no corresponding RIPR-SPEC-0224 update and so the spec/output map is incomplete (#devin comment).; refuted because: Lane charter is tests-red-green proof; spec coverage is a source-route/architecture lane concern. CHANGELOG fixtures and changelog.d/8388-oracle-kind-not-graded-wording.md visibly cite RIPR-SPEC-0224 in the reason line, so at minimum the prose rationale declares the spec gate; defer spec-text update to source-route lane as a parked follow-up rather than a test-proof blocker.

Parked follow-ups

  • xtask matcher reconstructs the ungraded phrase via expected_kind.replace('',' '), duplicating the renderer-side kind.as_str().replace('',' ') transform; acceptable as a thin mirror but introduces two sites for the snake_case-to-spaced formatting rule.
  • No update to RIPR-SPEC-0224-examined-test-miss-evidence.md included in diff; the prose owner for related-test oracle rows now diverges from its governing spec.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

…document oracle phrases in SPEC-0224

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.

Refuted

  • The renderer and promotion matcher duplicate divergent oracle wording rules.; refuted because: Both encode the same strength/kind projection contract; the promotion helper mirrors output formatting rather than introducing a second behavioral definition.
  • The wording change could accidentally alter typed oracle classifications or graded oracle output.; refuted because: Refuted by the narrow match arm, retained generic graded branch, unchanged fixture oracle fields, and fixture diffs that only replace the rendered evidence-path phrase.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • Repository-wide proof is not fully visible in this packet: cargo-test is scheduled-late while ripr failed.

@EffortlessSteven
EffortlessSteven merged commit ce09664 into main Oct 20, 2026
53 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-spfvi9-c branch October 20, 2026 05:01
EffortlessSteven pushed a commit that referenced this pull request Oct 20, 2026
… ungraded-oracle wording (#8944)

Merged main carries #8947, which rewords an ungraded classified oracle in
evidence_path ('exact value oracle, not graded against this probe'). The
fixture's check.json golden predated it; classification is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
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