Skip to content

feat(analysis): resolve every finding to a source-currentness disposition (#3280, C1 of #3212) - #3291

Merged
EffortlessSteven merged 5 commits into
mainfrom
analysis/3280-source-currentness
Aug 16, 2026
Merged

EffortlessSteven merged 5 commits into
mainfrom
analysis/3280-source-currentness

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Production delta

Closes #3280 — C1 of #3212, governed by RIPR-SPEC-0151 (new, proposed): every finding now carries a producer-owned source_currentness disposition naming which revision owns the actionable source.

  • domain/probe.rs — SourceCurrentness (candidate_current | base_deleted | moved_or_renamed | unresolved_subject), SOURCE_CURRENTNESS_VALUES, and a non-optional Finding.source_currentness with #[serde(default)] so pre-field artifacts read back as the explicit unknown, never a fabricated disposition.
  • analysis/probes/diff.rs — resolve_probe_source_currentness from the diff evidence that seeded the probe: after-carrying → candidate_current; removed-only → base_deleted, or moved_or_renamed when the same trimmed expression re-appears among the file's added lines; evidence-less → the explicit unknown.
  • analysis/language/rust.rs — diff loop resolves the disposition per probe; repo mode is candidate_current by construction. Preview producers (TS/Python/Perl) explicitly emit the unresolved unknown.
  • output/json/report.rs — the field is always emitted as the final finding field; the preceding trailing-comma chain simplified accordingly.
  • Registration — policy/output_contracts.txt (+ gate kind), docs/OUTPUT_SCHEMA.md, spec + README + doc-artifacts, .ripr/traceability.toml, 3 public-API baseline entries.

Recorded coordinate unchanged (review-hardened): an earlier revision of this PR recorded the base-side line on removed-only probes; adversarial review proved in the golden corpus that the base coordinate feeds the new-file flow/value classifiers (a propagate unknown→yes flip, a fabricated flow sink, a confidence change on the removed-line fixture) and contradicts the #1222 RANK-1 fixture contract. The disposition alone carries revision semantics in this slice; consumer re-coordination of deleted-side evidence (base identity, projections, edit-target suppression, SARIF/LSP/context-packet mirroring) is the #3212 projection slice (#3281).

Evidence delta

  • 4 new resolver tests (deleted-tail, moved-expression, added-seam, evidence-less, coordinate-stability, content-addressed-id guard) + 2 domain tests (wire vocabulary, pre-field artifact back-compat). Discriminating proof: resolver neutered → 3 tests fail; restored → green.
  • 176 golden fixtures re-blessed citing the spec; corpus diff vs main verified exactly additive — the only non-field lines are trailing commas ("language": "rust",).
  • Zero classification/stage/confidence/count drift: the spec's guard is "the golden corpus diff is exactly the additive field."
  • cargo xtask goldens check, fixtures, dogfood, precommit, check-output-contracts, check-traceability, check-spec-format/-numbering, check-doc-artifacts/-index, check-static-language, check-no-panic-family, check-public-api, check-architecture, and the rest of the battery pass; full lib suite 4280 green; --all-features compiles.

Acceptance matrix (#3280)

Acceptance Status
Deleted function tail yields base_deleted ✅ resolver test + corpus (12 base_deleted findings)
Added/modified seam yields candidate_current ✅ resolver test + corpus (76)
Reused line + different expression does not inherit base identity ✅ content-addressed-id test
Rename/move only with evidence; else moved/unresolved ✅ moved-rule test; explicit unknown pinned
Mixed diff: deleted-side evidence + separate candidate-current finding ✅ corpus fixtures
Existing findings retain classifications/identities ✅ corpus diff additive-only; ids unchanged (content-addressed)

Non-claims

Candidate head: caf744e4 (base origin/main @ 723414bb, includes the #3288/#3290 rebase).

…tion (#3280)

RIPR-SPEC-0151: every finding now carries a producer-owned
source_currentness (candidate_current, base_deleted, moved_or_renamed,
unresolved_subject) resolved from the diff evidence that seeded the
probe. Removed-only Rust probes record the base-side line coordinate
instead of a projected new-side target — the line-29-in-a-13-line-file
shape — and ids stay content-addressed without line numbers. Preview
producers and pre-field artifacts read as the explicit unresolved
unknown; no gate, count, or actionability policy changes in this slice.
176 golden fixtures re-blessed citing the spec; candidate-line count
now counts candidate-current anchors only.
Allowlist the three new public re-exports, sort the policy baselines, and
replace one prohibited static-language term in a comment.
…ss slice (#3280)

Review finding: recording the base-side line on removed-only probes fed
a base coordinate into the new-file flow/value classifiers — the golden
corpus caught a propagate unknown->yes flip, a fabricated flow sink, and
a confidence change on the removed-line fixture, and the fixture's own
SPEC.md (#1222 RANK-1) mandates the new-side coordinate. The disposition
alone carries revision semantics in this slice; consumer re-coordination
of deleted-side evidence moves to the #3212 projection slice, and the
spec now states that boundary. Corpus diff is exactly the additive
field.
@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!

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 399 files, which is 299 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

Usage-priced reviews support at most 300 files.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 8af3902d-b54c-40c2-a4e1-815776e610c9

📥 Commits

Reviewing files that changed from the base of the PR and between 723414b and ad0d5d2.

📒 Files selected for processing (399)
  • .ripr/traceability.toml
  • crates/ripr/proptest-regressions/output/json/mod.txt
  • crates/ripr/src/analysis/classifier/finding.rs
  • crates/ripr/src/analysis/language/perl/mod.rs
  • crates/ripr/src/analysis/language/python.rs
  • crates/ripr/src/analysis/language/rust.rs
  • crates/ripr/src/analysis/language/typescript/bun_bridge.rs
  • crates/ripr/src/analysis/language/typescript/classifier.rs
  • crates/ripr/src/analysis/language/typescript/parse.rs
  • crates/ripr/src/analysis/probes/diff.rs
  • crates/ripr/src/analysis/probes/mod.rs
  • crates/ripr/src/analysis/sort.rs
  • crates/ripr/src/analysis/summary.rs
  • crates/ripr/src/app/check_artifact/tests.rs
  • crates/ripr/src/app/tests/mod.rs
  • crates/ripr/src/domain/context_packet.rs
  • crates/ripr/src/domain/diagnostic_witness.rs
  • crates/ripr/src/domain/mod.rs
  • crates/ripr/src/domain/probe.rs
  • crates/ripr/src/lib.rs
  • crates/ripr/src/lsp/diagnostics.rs
  • crates/ripr/src/lsp/lens.rs
  • crates/ripr/src/lsp/tests.rs
  • crates/ripr/src/output/badge/tests.rs
  • crates/ripr/src/output/diff_report.rs
  • crates/ripr/src/output/github.rs
  • crates/ripr/src/output/human.rs
  • crates/ripr/src/output/json/context_packet.rs
  • crates/ripr/src/output/json/finding_alignment.rs
  • crates/ripr/src/output/json/mod.rs
  • crates/ripr/src/output/json/report.rs
  • crates/ripr/src/output/next_step.rs
  • crates/ripr/src/output/perl_gap_record_projection.rs
  • crates/ripr/src/output/perl_preview_card.rs
  • crates/ripr/src/output/preview_actionability.rs
  • crates/ripr/src/output/render.rs
  • crates/ripr/src/output/sarif.rs
  • crates/ripr/src/output/typescript_packet_projection.rs
  • crates/ripr/src/output/typescript_preview_card.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/README.md
  • docs/specs/RIPR-SPEC-0151-source-currentness.md
  • fixtures/all_no_path_disclosure/expected/CHANGELOG.md
  • fixtures/all_no_path_disclosure/expected/check.json
  • fixtures/assertion_shaped_control_production_caller/expected/CHANGELOG.md
  • fixtures/assertion_shaped_control_production_caller/expected/check.json
  • fixtures/assertion_shaped_control_production_owner/expected/CHANGELOG.md
  • fixtures/assertion_shaped_control_production_owner/expected/check.json
  • fixtures/assertion_shaped_oracle_test_file/expected/CHANGELOG.md
  • fixtures/assertion_shaped_oracle_test_file/expected/check.json
  • fixtures/boundary_gap/expected/CHANGELOG.md
  • fixtures/boundary_gap/expected/check.json
  • fixtures/boundary_gap_multiline_assert/expected/CHANGELOG.md
  • fixtures/boundary_gap_multiline_assert/expected/check.json
  • fixtures/boundary_gap_nested_tests/expected/CHANGELOG.md
  • fixtures/boundary_gap_nested_tests/expected/check.json
  • fixtures/boundary_gap_reordered_tests/expected/CHANGELOG.md
  • fixtures/boundary_gap_reordered_tests/expected/check.json
  • fixtures/decimal_field_observer_non_member_access/expected/CHANGELOG.md
  • fixtures/decimal_field_observer_non_member_access/expected/check.json
  • fixtures/editor_lsp_workflow/expected/CHANGELOG.md
  • fixtures/editor_lsp_workflow/expected/check.json
  • fixtures/error_path_sibling_oracle_fake_clean/expected/CHANGELOG.md
  • fixtures/error_path_sibling_oracle_fake_clean/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/javascript_js_preview/expected/CHANGELOG.md
  • fixtures/javascript_js_preview/expected/check.json
  • fixtures/javascript_jsx_preview/expected/CHANGELOG.md
  • fixtures/javascript_jsx_preview/expected/check.json
  • fixtures/lsp_agent_protocol/expected/CHANGELOG.md
  • fixtures/lsp_agent_protocol/expected/check.json
  • fixtures/match_arm_blind/expected/CHANGELOG.md
  • fixtures/match_arm_blind/expected/check.json
  • fixtures/match_arm_observer/expected/CHANGELOG.md
  • fixtures/match_arm_observer/expected/check.json
  • fixtures/match_arm_type_token_blind/expected/CHANGELOG.md
  • fixtures/match_arm_type_token_blind/expected/check.json
  • fixtures/mixed_rust_typescript_preview/expected/CHANGELOG.md
  • fixtures/mixed_rust_typescript_preview/expected/check.json
  • fixtures/multi_hunk_removed_line_wrong_target/expected/CHANGELOG.md
  • fixtures/multi_hunk_removed_line_wrong_target/expected/check.json
  • fixtures/observation_unverified_call_deletion/expected/CHANGELOG.md
  • fixtures/observation_unverified_call_deletion/expected/check.json
  • fixtures/observation_unverified_field_construction/expected/CHANGELOG.md
  • fixtures/observation_unverified_field_construction/expected/check.json
  • fixtures/observation_unverified_return_value/expected/CHANGELOG.md
  • fixtures/observation_unverified_return_value/expected/check.json
  • fixtures/observation_unverified_side_effect/expected/CHANGELOG.md
  • fixtures/observation_unverified_side_effect/expected/check.json
  • fixtures/observation_verified_call_deletion/expected/CHANGELOG.md
  • fixtures/observation_verified_call_deletion/expected/check.json
  • fixtures/observation_verified_field_construction/expected/CHANGELOG.md
  • fixtures/observation_verified_field_construction/expected/check.json
  • fixtures/observation_verified_return_value/expected/CHANGELOG.md
  • fixtures/observation_verified_return_value/expected/check.json
  • fixtures/observation_verified_side_effect/expected/CHANGELOG.md
  • fixtures/observation_verified_side_effect/expected/check.json
  • fixtures/opaque_fixture_builder/expected/CHANGELOG.md
  • fixtures/opaque_fixture_builder/expected/check.json
  • fixtures/plain_diff_multifile_boundary/expected/CHANGELOG.md
  • fixtures/plain_diff_multifile_boundary/expected/check.json
  • fixtures/propagate_log_message/expected/CHANGELOG.md
  • fixtures/propagate_log_message/expected/check.json
  • fixtures/propagate_stdout_macro/expected/CHANGELOG.md
  • fixtures/propagate_stdout_macro/expected/check.json
  • fixtures/propagate_swallowed_ok/expected/CHANGELOG.md
  • fixtures/propagate_swallowed_ok/expected/check.json
  • fixtures/propagate_value_returned/expected/CHANGELOG.md
  • fixtures/propagate_value_returned/expected/check.json
  • fixtures/python_adversarial_attribute_sink_other_receiver/expected/CHANGELOG.md
  • fixtures/python_adversarial_attribute_sink_other_receiver/expected/check.json
  • fixtures/python_adversarial_buffer_token/expected/CHANGELOG.md
  • fixtures/python_adversarial_buffer_token/expected/check.json
  • fixtures/python_adversarial_changed_sink_non_delta_operand/expected/CHANGELOG.md
  • fixtures/python_adversarial_changed_sink_non_delta_operand/expected/check.json
  • fixtures/python_adversarial_default_value_overridden/expected/CHANGELOG.md
  • fixtures/python_adversarial_default_value_overridden/expected/check.json
  • fixtures/python_adversarial_dict_field_sibling_key/expected/CHANGELOG.md
  • fixtures/python_adversarial_dict_field_sibling_key/expected/check.json
  • fixtures/python_adversarial_error_path_untaken_branch/expected/CHANGELOG.md
  • fixtures/python_adversarial_error_path_untaken_branch/expected/check.json
  • fixtures/python_adversarial_free_function_module_collision/expected/CHANGELOG.md
  • fixtures/python_adversarial_free_function_module_collision/expected/check.json
  • fixtures/python_adversarial_fstring_length_invariant_aggregate/expected/CHANGELOG.md
  • fixtures/python_adversarial_fstring_length_invariant_aggregate/expected/check.json
  • fixtures/python_adversarial_list_element_sibling_index/expected/CHANGELOG.md
  • fixtures/python_adversarial_list_element_sibling_index/expected/check.json
  • fixtures/python_adversarial_local_assignment_operator_input/expected/CHANGELOG.md
  • fixtures/python_adversarial_local_assignment_operator_input/expected/check.json
  • fixtures/python_adversarial_method_owner_imported_unbound_receiver/expected/CHANGELOG.md
  • fixtures/python_adversarial_method_owner_imported_unbound_receiver/expected/check.json
  • fixtures/python_adversarial_mock_call_not_value/expected/CHANGELOG.md
  • fixtures/python_adversarial_mock_call_not_value/expected/check.json
  • fixtures/python_adversarial_operator_delta_input_operand/expected/CHANGELOG.md
  • fixtures/python_adversarial_operator_delta_input_operand/expected/check.json
  • fixtures/python_adversarial_same_method_other_class/expected/CHANGELOG.md
  • fixtures/python_adversarial_same_method_other_class/expected/check.json
  • fixtures/python_api_json_field_repair_gap/expected/CHANGELOG.md
  • fixtures/python_api_json_field_repair_gap/expected/check.json
  • fixtures/python_api_route_decorator_repair_gap/expected/CHANGELOG.md
  • fixtures/python_api_route_decorator_repair_gap/expected/check.json
  • fixtures/python_argparse_output_repair_gap/expected/CHANGELOG.md
  • fixtures/python_argparse_output_repair_gap/expected/check.json
  • fixtures/python_async_owner/expected/CHANGELOG.md
  • fixtures/python_async_owner/expected/check.json
  • fixtures/python_boundary_gap/expected/CHANGELOG.md
  • fixtures/python_boundary_gap/expected/check.json
  • fixtures/python_broad_boolean_assertion/expected/CHANGELOG.md
  • fixtures/python_broad_boolean_assertion/expected/check.json
  • fixtures/python_call_argument_shape/expected/CHANGELOG.md
  • fixtures/python_call_argument_shape/expected/check.json
  • fixtures/python_class_method_owner/expected/CHANGELOG.md
  • fixtures/python_class_method_owner/expected/check.json
  • fixtures/python_cli_output_repair_gap/expected/CHANGELOG.md
  • fixtures/python_cli_output_repair_gap/expected/check.json
  • fixtures/python_cross_file_construct_call/expected/CHANGELOG.md
  • fixtures/python_cross_file_construct_call/expected/check.json
  • fixtures/python_cross_file_import_reference/expected/CHANGELOG.md
  • fixtures/python_cross_file_import_reference/expected/check.json
  • fixtures/python_decorator_indirection_limit/expected/CHANGELOG.md
  • fixtures/python_decorator_indirection_limit/expected/check.json
  • fixtures/python_dict_field_repair_gap/expected/CHANGELOG.md
  • fixtures/python_dict_field_repair_gap/expected/check.json
  • fixtures/python_dynamic_dispatch_limit/expected/CHANGELOG.md
  • fixtures/python_dynamic_dispatch_limit/expected/check.json
  • fixtures/python_dynamic_import_limit/expected/CHANGELOG.md
  • fixtures/python_dynamic_import_limit/expected/check.json
  • fixtures/python_dynamic_route_registration_limit/expected/CHANGELOG.md
  • fixtures/python_dynamic_route_registration_limit/expected/check.json
  • fixtures/python_error_path_shape/expected/CHANGELOG.md
  • fixtures/python_error_path_shape/expected/check.json
  • fixtures/python_field_assignment_shape/expected/CHANGELOG.md
  • fixtures/python_field_assignment_shape/expected/check.json
  • fixtures/python_fixture_name_relation/expected/CHANGELOG.md
  • fixtures/python_fixture_name_relation/expected/check.json
  • fixtures/python_local_callable_binding/expected/CHANGELOG.md
  • fixtures/python_local_callable_binding/expected/check.json
  • fixtures/python_metaclass_limit/expected/CHANGELOG.md
  • fixtures/python_metaclass_limit/expected/check.json
  • fixtures/python_metaprogramming_limit/expected/CHANGELOG.md
  • fixtures/python_metaprogramming_limit/expected/check.json
  • fixtures/python_method_owner/expected/CHANGELOG.md
  • fixtures/python_method_owner/expected/check.json
  • fixtures/python_missing_import_graph_limit/expected/CHANGELOG.md
  • fixtures/python_missing_import_graph_limit/expected/check.json
  • fixtures/python_mixed_language_no_cross_route/expected/CHANGELOG.md
  • fixtures/python_mixed_language_no_cross_route/expected/check.json
  • fixtures/python_mock_assert_called/expected/CHANGELOG.md
  • fixtures/python_mock_assert_called/expected/check.json
  • fixtures/python_mock_interaction_shape/expected/CHANGELOG.md
  • fixtures/python_mock_interaction_shape/expected/check.json
  • fixtures/python_mocked_module_limit/expected/CHANGELOG.md
  • fixtures/python_mocked_module_limit/expected/check.json
  • fixtures/python_model_field_repair_gap/expected/CHANGELOG.md
  • fixtures/python_model_field_repair_gap/expected/check.json
  • fixtures/python_monkeypatch_module_limit/expected/CHANGELOG.md
  • fixtures/python_monkeypatch_module_limit/expected/check.json
  • fixtures/python_no_config_repair_gap/expected/CHANGELOG.md
  • fixtures/python_no_config_repair_gap/expected/check.json
  • fixtures/python_no_projectable_owner/expected/CHANGELOG.md
  • fixtures/python_no_projectable_owner/expected/check.json
  • fixtures/python_opaque_custom_helper_limit/expected/CHANGELOG.md
  • fixtures/python_opaque_custom_helper_limit/expected/check.json
  • fixtures/python_owner_file_match/expected/CHANGELOG.md
  • fixtures/python_owner_file_match/expected/check.json
  • fixtures/python_parametrize_basic/expected/CHANGELOG.md
  • fixtures/python_parametrize_basic/expected/check.json
  • fixtures/python_parametrized_boundary_repair_gap/expected/CHANGELOG.md
  • fixtures/python_parametrized_boundary_repair_gap/expected/check.json
  • fixtures/python_property_based_limit/expected/CHANGELOG.md
  • fixtures/python_property_based_limit/expected/check.json
  • fixtures/python_pytest_oracle_shapes/expected/CHANGELOG.md
  • fixtures/python_pytest_oracle_shapes/expected/check.json
  • fixtures/python_pytest_raises/expected/CHANGELOG.md
  • fixtures/python_pytest_raises/expected/check.json
  • fixtures/python_ranking_noise_control/expected/CHANGELOG.md
  • fixtures/python_ranking_noise_control/expected/check.json
  • fixtures/python_related_test_name_similarity/expected/CHANGELOG.md
  • fixtures/python_related_test_name_similarity/expected/check.json
  • fixtures/python_return_value_shape/expected/CHANGELOG.md
  • fixtures/python_return_value_shape/expected/check.json
  • fixtures/python_same_line_duplicate_collapse/expected/CHANGELOG.md
  • fixtures/python_same_line_duplicate_collapse/expected/check.json
  • fixtures/python_same_stem_test/expected/CHANGELOG.md
  • fixtures/python_same_stem_test/expected/check.json
  • fixtures/python_src_layout_repair_gap/expected/CHANGELOG.md
  • fixtures/python_src_layout_repair_gap/expected/check.json
  • fixtures/python_strong_oracle/expected/CHANGELOG.md
  • fixtures/python_strong_oracle/expected/check.json
  • fixtures/python_substring_sink_alignment/expected/CHANGELOG.md
  • fixtures/python_substring_sink_alignment/expected/check.json
  • fixtures/python_test_placement_verify/expected/CHANGELOG.md
  • fixtures/python_test_placement_verify/expected/check.json
  • fixtures/python_unittest_assertions/expected/CHANGELOG.md
  • fixtures/python_unittest_assertions/expected/check.json
  • fixtures/python_unittest_basic/expected/CHANGELOG.md
  • fixtures/python_unittest_basic/expected/check.json
  • fixtures/python_unittest_oracle_shapes/expected/CHANGELOG.md
  • fixtures/python_unittest_oracle_shapes/expected/check.json
  • fixtures/python_unrelated_test_mention/expected/CHANGELOG.md
  • fixtures/python_unrelated_test_mention/expected/check.json
  • fixtures/python_unresolved_fixture_limit/expected/CHANGELOG.md
  • fixtures/python_unresolved_fixture_limit/expected/check.json
  • fixtures/python_unsupported_syntax_limit/expected/CHANGELOG.md
  • fixtures/python_unsupported_syntax_limit/expected/check.json
  • fixtures/rust_async_fn_owner/expected/CHANGELOG.md
  • fixtures/rust_async_fn_owner/expected/check.json
  • fixtures/rust_constructor_field_observation/expected/CHANGELOG.md
  • fixtures/rust_constructor_field_observation/expected/check.json
  • fixtures/rust_constructor_field_wrong_field_observer/expected/CHANGELOG.md
  • fixtures/rust_constructor_field_wrong_field_observer/expected/check.json
  • fixtures/rust_long_expression_display_bound/expected/CHANGELOG.md
  • fixtures/rust_long_expression_display_bound/expected/check.json
  • fixtures/rust_macro_reach_limitation/expected/CHANGELOG.md
  • fixtures/rust_macro_reach_limitation/expected/check.json
  • fixtures/rust_macro_wrapped_assertion_limitation/expected/CHANGELOG.md
  • fixtures/rust_macro_wrapped_assertion_limitation/expected/check.json
  • fixtures/rust_macro_wrapped_test_call_limitation/expected/CHANGELOG.md
  • fixtures/rust_macro_wrapped_test_call_limitation/expected/check.json
  • fixtures/rust_missing_discriminator_evidence/expected/CHANGELOG.md
  • fixtures/rust_missing_discriminator_evidence/expected/check.json
  • fixtures/rust_transitive_reach_negative/expected/CHANGELOG.md
  • fixtures/rust_transitive_reach_negative/expected/check.json
  • fixtures/rust_transitive_reach_positive/expected/CHANGELOG.md
  • fixtures/rust_transitive_reach_positive/expected/check.json
  • fixtures/rust_transitive_reach_test_helper_chain/expected/CHANGELOG.md
  • fixtures/rust_transitive_reach_test_helper_chain/expected/check.json
  • fixtures/snapshot_oracle/expected/CHANGELOG.md
  • fixtures/snapshot_oracle/expected/check.json
  • fixtures/strong_boundary_oracle/expected/CHANGELOG.md
  • fixtures/strong_boundary_oracle/expected/check.json
  • fixtures/strong_error_oracle/expected/CHANGELOG.md
  • fixtures/strong_error_oracle/expected/check.json
  • fixtures/ts_already_observed/expected/CHANGELOG.md
  • fixtures/ts_already_observed/expected/check.json
  • fixtures/ts_cross_language_bridge_limit/expected/CHANGELOG.md
  • fixtures/ts_cross_language_bridge_limit/expected/check.json
  • fixtures/ts_cross_package_test/expected/CHANGELOG.md
  • fixtures/ts_cross_package_test/expected/check.json
  • fixtures/ts_dynamic_oracle/expected/CHANGELOG.md
  • fixtures/ts_dynamic_oracle/expected/check.json
  • fixtures/ts_heuristic_relation/expected/CHANGELOG.md
  • fixtures/ts_heuristic_relation/expected/check.json
  • fixtures/ts_no_verify_command/expected/CHANGELOG.md
  • fixtures/ts_no_verify_command/expected/check.json
  • fixtures/ts_pkg_discovery_monorepo/expected/CHANGELOG.md
  • fixtures/ts_pkg_discovery_monorepo/expected/check.json
  • fixtures/ts_pkg_discovery_no_package/expected/CHANGELOG.md
  • fixtures/ts_pkg_discovery_no_package/expected/check.json
  • fixtures/ts_pkg_discovery_single_package/expected/CHANGELOG.md
  • fixtures/ts_pkg_discovery_single_package/expected/check.json
  • fixtures/ts_repair_packet_complete/expected/CHANGELOG.md
  • fixtures/ts_repair_packet_complete/expected/check.json
  • fixtures/ts_runner_detect_ava_devdep/expected/CHANGELOG.md
  • fixtures/ts_runner_detect_ava_devdep/expected/check.json
  • fixtures/ts_runner_detect_ava_script/expected/CHANGELOG.md
  • fixtures/ts_runner_detect_ava_script/expected/check.json
  • fixtures/ts_runner_detect_no_runner/expected/CHANGELOG.md
  • fixtures/ts_runner_detect_no_runner/expected/check.json
  • fixtures/ts_static_limit/expected/CHANGELOG.md
  • fixtures/ts_static_limit/expected/check.json
  • fixtures/typescript_adversarial_hoc_wrapped_owner/expected/CHANGELOG.md
  • fixtures/typescript_adversarial_hoc_wrapped_owner/expected/check.json
  • fixtures/typescript_adversarial_owner_identity_after_insertion/expected/CHANGELOG.md
  • fixtures/typescript_adversarial_owner_identity_after_insertion/expected/check.json
  • fixtures/typescript_adversarial_owner_module_mock/expected/CHANGELOG.md
  • fixtures/typescript_adversarial_owner_module_mock/expected/check.json
  • fixtures/typescript_adversarial_render_unobserved_sink/expected/CHANGELOG.md
  • fixtures/typescript_adversarial_render_unobserved_sink/expected/check.json
  • fixtures/typescript_adversarial_same_method_other_class/expected/CHANGELOG.md
  • fixtures/typescript_adversarial_same_method_other_class/expected/check.json
  • fixtures/typescript_adversarial_token_substring/expected/CHANGELOG.md
  • fixtures/typescript_adversarial_token_substring/expected/check.json
  • fixtures/typescript_awaited_promise_reject/expected/CHANGELOG.md
  • fixtures/typescript_awaited_promise_reject/expected/check.json
  • fixtures/typescript_boundary_gap/expected/CHANGELOG.md
  • fixtures/typescript_boundary_gap/expected/check.json
  • fixtures/typescript_broad_tothrow/expected/CHANGELOG.md
  • fixtures/typescript_broad_tothrow/expected/check.json
  • fixtures/typescript_commonjs_require/expected/CHANGELOG.md
  • fixtures/typescript_commonjs_require/expected/check.json
  • fixtures/typescript_dynamic_assertion_unresolved/expected/CHANGELOG.md
  • fixtures/typescript_dynamic_assertion_unresolved/expected/check.json
  • fixtures/typescript_effect_probe_shapes/expected/CHANGELOG.md
  • fixtures/typescript_effect_probe_shapes/expected/check.json
  • fixtures/typescript_jest_vitest_assertion_facts/expected/CHANGELOG.md
  • fixtures/typescript_jest_vitest_assertion_facts/expected/check.json
  • fixtures/typescript_limitation_custom_matcher/expected/CHANGELOG.md
  • fixtures/typescript_limitation_custom_matcher/expected/check.json
  • fixtures/typescript_mocked_module_limit/expected/CHANGELOG.md
  • fixtures/typescript_mocked_module_limit/expected/check.json
  • fixtures/typescript_monorepo_package_local/expected/CHANGELOG.md
  • fixtures/typescript_monorepo_package_local/expected/check.json
  • fixtures/typescript_negated_t_oracle/expected/CHANGELOG.md
  • fixtures/typescript_negated_t_oracle/expected/check.json
  • fixtures/typescript_oracle_helper_gated/expected/CHANGELOG.md
  • fixtures/typescript_oracle_helper_gated/expected/check.json
  • fixtures/typescript_owner_file_match/expected/CHANGELOG.md
  • fixtures/typescript_owner_file_match/expected/check.json
  • fixtures/typescript_owner_kinds/expected/CHANGELOG.md
  • fixtures/typescript_owner_kinds/expected/check.json
  • fixtures/typescript_parse_error_unsupported_syntax/expected/CHANGELOG.md
  • fixtures/typescript_parse_error_unsupported_syntax/expected/check.json
  • fixtures/typescript_probe_facts/expected/CHANGELOG.md
  • fixtures/typescript_probe_facts/expected/check.json
  • fixtures/typescript_reexport_no_false_credit/expected/CHANGELOG.md
  • fixtures/typescript_reexport_no_false_credit/expected/check.json
  • fixtures/typescript_reexport_single_hop/expected/CHANGELOG.md
  • fixtures/typescript_reexport_single_hop/expected/check.json
  • fixtures/typescript_reexport_two_hop_limit/expected/CHANGELOG.md
  • fixtures/typescript_reexport_two_hop_limit/expected/check.json
  • fixtures/typescript_related_test_matching/expected/CHANGELOG.md
  • fixtures/typescript_related_test_matching/expected/check.json
  • fixtures/typescript_related_test_name_proximity/expected/CHANGELOG.md
  • fixtures/typescript_related_test_name_proximity/expected/check.json
  • fixtures/typescript_return_value_shape/expected/CHANGELOG.md
  • fixtures/typescript_return_value_shape/expected/check.json
  • fixtures/typescript_same_method_owner_identity_positive/expected/CHANGELOG.md
  • fixtures/typescript_same_method_owner_identity_positive/expected/check.json
  • fixtures/typescript_static_limit_taxonomy/expected/CHANGELOG.md
  • fixtures/typescript_static_limit_taxonomy/expected/check.json
  • fixtures/typescript_strict_actionability/expected/CHANGELOG.md
  • fixtures/typescript_strict_actionability/expected/check.json
  • fixtures/typescript_strong_oracle/expected/CHANGELOG.md
  • fixtures/typescript_strong_oracle/expected/check.json
  • fixtures/typescript_t_truthy_oracle/expected/CHANGELOG.md
  • fixtures/typescript_t_truthy_oracle/expected/check.json
  • fixtures/typescript_t_unknown_method_no_oracle/expected/CHANGELOG.md
  • fixtures/typescript_t_unknown_method_no_oracle/expected/check.json
  • fixtures/typescript_t_wrong_receiver_no_oracle/expected/CHANGELOG.md
  • fixtures/typescript_t_wrong_receiver_no_oracle/expected/check.json
  • fixtures/typescript_tape_equal_oracle/expected/CHANGELOG.md
  • fixtures/typescript_tape_equal_oracle/expected/check.json
  • fixtures/typescript_tothrow_exact_oracle/expected/CHANGELOG.md
  • fixtures/typescript_tothrow_exact_oracle/expected/check.json
  • fixtures/typescript_tsx_preview/expected/CHANGELOG.md
  • fixtures/typescript_tsx_preview/expected/check.json
  • fixtures/unrelated_test_mentions_token/expected/CHANGELOG.md
  • fixtures/unrelated_test_mentions_token/expected/check.json
  • fixtures/unwrap_err_generic_is_err/expected/CHANGELOG.md
  • fixtures/unwrap_err_generic_is_err/expected/check.json
  • fixtures/unwrap_err_sibling_variant/expected/CHANGELOG.md
  • fixtures/unwrap_err_sibling_variant/expected/check.json
  • fixtures/unwrap_err_variant_positive/expected/CHANGELOG.md
  • fixtures/unwrap_err_variant_positive/expected/check.json
  • fixtures/unwrap_err_variant_single_line/expected/CHANGELOG.md
  • fixtures/unwrap_err_variant_single_line/expected/check.json
  • fixtures/weak_error_oracle/expected/CHANGELOG.md
  • fixtures/weak_error_oracle/expected/check.json
  • fixtures/weak_error_oracle_assert_matches/expected/CHANGELOG.md
  • fixtures/weak_error_oracle_assert_matches/expected/check.json
  • policy/doc-artifacts.toml
  • policy/output_contracts.txt
  • policy/public_api.txt
  • pr-tmp/pr-3280-body.md
  • xtask/src/main.rs

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@codecov

codecov Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.95918% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/ripr/src/analysis/probes/diff.rs 96.66% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

@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.

Confirmed findings

  • Public API baseline adds SourceCurrentness + SOURCE_CURRENTNESS_VALUES; lib.rs re-exports SourceCurrentness. Public surface expansion is intentional and documented in OUTPUT_SCHEMA.md + spec, so this is informational rather than blocker.
  • Two fixtures (boundary_gap, multi_hunk_removed_line_wrong_target) carry non-canonical or duplicated Pending CHANGELOG entries; the substantive producer slice is correct but xtask bless hygiene would benefit from a single canonical Pending block per fixture.

Verification questions

  • Confirm repo-mode probes bypass resolve_probe_source_currentness and are hard-coded to SourceCurrentness::CandidateCurrent; consistent with ‘repo seeds from current tree’ but loses per-probe evidence check that diff path provides.
  • Confirm boundary_gap/expected/CHANGELOG.md contains two identical 'Pending' RIPR-SPEC-0151 entries (no second reason variation).
  • Confirm boundary placement in output/json/report.rs makes source_currentness the unconditional trailing field; this forced the trailing-comma simplification in optional chains above and is the structural hook for future #3212 work.
  • Confirm discriminating proof: resolver neutered → 3 fail, restored → green per PR body.
  • Confirm multi_hunk_removed_line_wrong_target/CHANGELOG.md carries three Pending entries (additive field, candidate-line count, producer-slice restore) — the second and third are informational narration of prior iterations, not current reason.
  • Confirm test fixtures create Finding structs without setting source_currentness in any helper—no compile error indicates the struct is exhaustive.
  • Confirm artifact-verifier sensor failed (exit code 2) — goldens were re-blessed in this PR but verifier step did not complete; verify the 176 goldens actually re-validate via the proof broker rather than trusting the inline report.
  • Confirm sibling projections of Finding (sarif, github, human, render, lsp diagnostics/lens, context_packet, next_step, perl/ts preview cards, finding_alignment, ts packet projection) NOT patched for source_currentness; only json::report.rs adds the field. Sibling renderers inherit it via their serialisers but are unverified; pre-#3280 artifacts written by those renderers (or replayed by them) read back as UnresolvedSubject via serde default.

Refuted

  • Resolver neutering proof is unsubstantiated; refuted because: PR body asserts the discriminating proof was run; this is author-asserted not receipt-cited. Marking as verification-question, not blocker.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

…#3280)

The architecture gate caught serde_json use in domain; the wire pin and
the pre-field artifact back-compat test now live in app/check_artifact
where JSON is allowed, and the domain test pins the stable labels only.
@EffortlessSteven

Copy link
Copy Markdown
Member Author

Exact-head review record — REVIEW_READY (author self-review)

  • reviewed_head_sha: ad0d5d2c (base origin/main @ 723414bb)
  • claim_boundary: analysis(diff): resolve every finding to candidate, deleted, moved, or unresolved source #3280 C1 / RIPR-SPEC-0151 — producer-owned per-finding source_currentness; additive-only; no gate/count/policy/coordinate change
  • changed_surfaces_inspected: domain enum + serde default; probe resolver and its four call paths; rust.rs diff/repo wiring; JSON emission with the reworked trailing-comma chain (corpus-verified: all 176 strict-JSON, field always last); preview adapters + 30 helper literals; spec/README/doc-artifacts/output-contracts/traceability/public-api registrations; 176 re-blessed fixtures
  • wrong_behavior_challenge: resolver neutered → 3 tests fail; corpus-diff sweep confirms the only non-field lines are trailing commas; adversarial review's blocking finding (base coordinate feeding new-file classifiers — proven by a propagate flip and fabricated flow sink in the golden) repaired by reverting the coordinate change and re-scoping it to output(gate): project only candidate-current findings as actionable #3281, with the spec stating the boundary; CI's architecture gate caught serde-in-domain and the wire pin moved to the artifact layer
  • proof_and_ci_observed: required check pass at this head; rust-tests-junit, rust-coverage, ub-review, source-of-truth, codecov/patch, cargo-deny, dependency-review all pass; local: 4280 lib tests, goldens/fixtures/dogfood/precommit, full check battery
  • residual_assumptions: moved_or_renamed matching is text-level (family-match tightening deferred to C2 with the consumer work); preview producers unresolved until they resolve
  • disposition: REVIEW_READY

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

analysis(diff): resolve every finding to candidate, deleted, moved, or unresolved source

1 participant