Skip to content

fix(app): default CheckInput base to None so consumers resolve the repo default (#3952) - #4002

Merged
EffortlessSteven merged 4 commits into
mainfrom
fix/3952-check-input-default-base
Sep 24, 2026
Merged

EffortlessSteven merged 4 commits into
mainfrom
fix/3952-check-input-default-base

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Closes #3952.

Summary

CheckInput::default() hardcoded base: Some("origin/main"), contradicting RIPR-SPEC-0084: every consumer built from the default (explain, context, pilot, LSP refresh, library embeddings, the doc one-liner) analyzed origin/main even where that ref does not exist. The default is now None, so every consumer rides default-branch resolution; analysis loaders are untouched.

Production delta

  • crates/ripr/src/app.rs: Default for CheckInput sets base: None with a SPEC-0084 comment; field docs state None resolves the repo default.
  • crates/ripr/src/analysis/diff/load.rs: load_diff_with_effective_base rejects non-directory roots up front. Without this, default-base resolution turns a typo'd --root into the misleading "could not resolve a default base" message. Invalid roots stay fail-closed with an accurate message.
  • xtask/src/evidence_promotion.rs: must_disclose_scope excuses base for diff-sourced reports only (their scope is tool/mode/root plus the harness-pinned diff.patch; CheckOutput.base is documented "when applicable"). Live reports must still carry base. Both enforcement points (typed + legacy) share one helper.

Evidence delta

  • Discriminator default_check_input_resolves_the_repo_default_branch (app/check.rs): master-only fixture (no origin/*), default-built input analyzes and records master. Fails pre-fix (Some("origin/main")).
  • Invalid-root tests (context, explain) pin the accurate missing-root message.
  • Navigation/LSP/workspace-status tests pin the baseless default instead of the stale origin/main.
  • Guard unit test pins base-required-for-live vs excused-for-diff-sourced.
  • 235 --diff fixture goldens re-blessed (each: top-level base line removed, base_revision null; findings, counts, input_identity byte-identical; verified per-pair 235/235 explained, 0 unexplained).

Output-shape change

--diff envelopes no longer carry the unused base line (it was never consumed for diff runs) and record base_revision: null in the outcome identity. Schema already allows absent/nullable base; live-run envelopes are unchanged (resolved base recorded). must_disclose_scope charter fixtures keep passing under the evolved diff-sourced rule; the honesty gate is green.

Blessing reason (RIPR-SPEC-0084): CheckInput default base is now None (was origin/main); --diff fixture envelopes honestly omit the inapplicable top-level base and record base_revision null. Only base/base_revision changed; findings, counts, and input_identity byte-identical.

Acceptance

  • Exact-head cargo xtask check-pr exit 0 (5281 lib tests, clippy -D warnings, doc, all check-* gates), zero failure markers.
  • goldens check, check-evidence-promotion-honesty ("scope-guard cases kept report scope headers"), fixtures, dogfood, test-oracle-report green.

Non-goals

  • ripr diff command keeps its documented used-as-given origin/main default (separate options struct, separate contract).
  • pr-evidence / first-pr keep their own DEFAULT_BASE command defaults (separate structs, out of this claim).
  • Explicit --base behavior unchanged (used as-is, errors name the ref).
  • No new envelope fields; no diff-source identity added.

…po default (#3952)

CheckInput::default() hardcoded origin/main, contradicting RIPR-SPEC-0084: explain/context/pilot/LSP/library consumers analyzed origin/main even where it does not exist. The default is now None so every consumer rides default-branch resolution; analysis loaders are unchanged. The discriminator pins resolution on a master-only fixture. must_disclose_scope now excuses base for diff-sourced reports (their scope is tool/mode/root plus the pinned diff.patch); live reports must still carry base. Unit pins for both.
…ine (#3952)

RIPR-SPEC-0084: CheckInput default base is now None (was origin/main); --diff fixture envelopes honestly omit the inapplicable top-level base and record base_revision null. Only base/base_revision changed; findings, counts, and input_identity byte-identical. Verified per-pair: 235/235 drifts fully explained, 0 unexplained.
…ns (#3952)

load_diff_with_effective_base rejects non-directory roots up front so a typoed root no longer resolves into a misleading could-not-resolve-base error. Invalid-root tests pin the accurate message; navigation/LSP/workspace-status tests pin the baseless default instead of the stale origin/main.
@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 478 files, which is 378 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: Advanced

Run ID: 92755879-b1d5-4992-a733-e7577b1805ea

📥 Commits

Reviewing files that changed from the base of the PR and between eabe96d and f94dd8c.

📒 Files selected for processing (478)
  • crates/ripr/src/analysis/diff/load.rs
  • crates/ripr/src/app.rs
  • crates/ripr/src/app/check.rs
  • crates/ripr/src/app/context.rs
  • crates/ripr/src/app/explain.rs
  • crates/ripr/src/app/navigation.rs
  • crates/ripr/src/lsp/tests.rs
  • fixtures/all_no_path_disclosure/expected/CHANGELOG.md
  • fixtures/all_no_path_disclosure/expected/check.json
  • 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/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_cfg_test/expected/CHANGELOG.md
  • fixtures/assertion_shaped_oracle_cfg_test/expected/check.json
  • fixtures/assertion_shaped_oracle_test_file/expected/CHANGELOG.md
  • fixtures/assertion_shaped_oracle_test_file/expected/check.json
  • fixtures/assurance_vocabulary/expected/CHANGELOG.md
  • fixtures/assurance_vocabulary/expected/check.json
  • fixtures/benches_harness_evidence/expected/CHANGELOG.md
  • fixtures/benches_harness_evidence/expected/check.json
  • fixtures/binding_predicate_equality_boundary/expected/CHANGELOG.md
  • fixtures/binding_predicate_equality_boundary/expected/check.json
  • fixtures/binding_predicate_positions/expected/CHANGELOG.md
  • fixtures/binding_predicate_positions/expected/check.json
  • fixtures/binding_predicate_scope_controls/expected/CHANGELOG.md
  • fixtures/binding_predicate_scope_controls/expected/check.json
  • fixtures/binding_predicate_two_uses/expected/CHANGELOG.md
  • fixtures/binding_predicate_two_uses/expected/check.json
  • fixtures/binding_value_fail_closed/expected/CHANGELOG.md
  • fixtures/binding_value_fail_closed/expected/check.json
  • fixtures/binding_value_family_matrix/expected/CHANGELOG.md
  • fixtures/binding_value_family_matrix/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/comment_only_diff/expected/CHANGELOG.md
  • fixtures/comment_only_diff/expected/check.json
  • fixtures/constant_declaration_probe_reconciliation/expected/CHANGELOG.md
  • fixtures/constant_declaration_probe_reconciliation/expected/check.json
  • fixtures/currentness_matrix_move/expected/CHANGELOG.md
  • fixtures/currentness_matrix_move/expected/check.json
  • fixtures/currentness_matrix_reuse/expected/CHANGELOG.md
  • fixtures/currentness_matrix_reuse/expected/check.json
  • fixtures/currentness_matrix_tail/expected/CHANGELOG.md
  • fixtures/currentness_matrix_tail/expected/check.json
  • fixtures/currentness_matrix_whole_delete/expected/CHANGELOG.md
  • fixtures/currentness_matrix_whole_delete/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/error_variant_boxed_wrapper_downcast_witness/expected/CHANGELOG.md
  • fixtures/error_variant_boxed_wrapper_downcast_witness/expected/check.json
  • fixtures/error_variant_boxed_wrapper_fail_closed/expected/CHANGELOG.md
  • fixtures/error_variant_boxed_wrapper_fail_closed/expected/check.json
  • fixtures/error_variant_wrapper_callee_only_pin/expected/CHANGELOG.md
  • fixtures/error_variant_wrapper_callee_only_pin/expected/check.json
  • fixtures/error_variant_wrapper_foreign_pin/expected/CHANGELOG.md
  • fixtures/error_variant_wrapper_foreign_pin/expected/check.json
  • fixtures/error_variant_wrapper_wrong_receiver_pin/expected/CHANGELOG.md
  • fixtures/error_variant_wrapper_wrong_receiver_pin/expected/check.json
  • fixtures/format_only_diff/expected/CHANGELOG.md
  • fixtures/format_only_diff/expected/check.json
  • fixtures/gate_baseline_fallback_disclosure/expected/CHANGELOG.md
  • fixtures/gate_baseline_fallback_disclosure/expected/check.json
  • fixtures/guarded_result_match_conditional_failure/expected/CHANGELOG.md
  • fixtures/guarded_result_match_conditional_failure/expected/check.json
  • fixtures/guarded_result_match_fail_closed/expected/CHANGELOG.md
  • fixtures/guarded_result_match_fail_closed/expected/check.json
  • fixtures/guarded_result_match_owner_observation/expected/CHANGELOG.md
  • fixtures/guarded_result_match_owner_observation/expected/check.json
  • fixtures/guarded_result_match_positive/expected/CHANGELOG.md
  • fixtures/guarded_result_match_positive/expected/check.json
  • fixtures/guarded_result_match_sibling_variant/expected/CHANGELOG.md
  • fixtures/guarded_result_match_sibling_variant/expected/check.json
  • fixtures/guarded_result_match_swallowed/expected/CHANGELOG.md
  • fixtures/guarded_result_match_swallowed/expected/check.json
  • fixtures/harness_dead_construction_no_exposed_credit/expected/CHANGELOG.md
  • fixtures/harness_dead_construction_no_exposed_credit/expected/check.json
  • fixtures/helper_chain_controls/expected/CHANGELOG.md
  • fixtures/helper_chain_controls/expected/check.json
  • fixtures/helper_chain_multi_hop/expected/CHANGELOG.md
  • fixtures/helper_chain_multi_hop/expected/check.json
  • fixtures/helper_chain_one_hop/expected/CHANGELOG.md
  • fixtures/helper_chain_one_hop/expected/check.json
  • fixtures/import_only_diff/expected/CHANGELOG.md
  • fixtures/import_only_diff/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/inline_test_fixture_text_no_probe/expected/CHANGELOG.md
  • fixtures/inline_test_fixture_text_no_probe/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_comment_literal_no_promotion/expected/CHANGELOG.md
  • fixtures/match_arm_comment_literal_no_promotion/expected/check.json
  • fixtures/match_arm_controls/expected/CHANGELOG.md
  • fixtures/match_arm_controls/expected/check.json
  • fixtures/match_arm_diagnostic_literal_no_promotion/expected/CHANGELOG.md
  • fixtures/match_arm_diagnostic_literal_no_promotion/expected/check.json
  • fixtures/match_arm_observer/expected/CHANGELOG.md
  • fixtures/match_arm_observer/expected/check.json
  • fixtures/match_arm_positive/expected/CHANGELOG.md
  • fixtures/match_arm_positive/expected/check.json
  • fixtures/match_arm_shared_result_no_promotion/expected/CHANGELOG.md
  • fixtures/match_arm_shared_result_no_promotion/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/perl_cpan_alpha/expected/CHANGELOG.md
  • fixtures/perl_cpan_alpha/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_disabled/expected/CHANGELOG.md
  • fixtures/python_disabled/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_generated_file_excluded/expected/CHANGELOG.md
  • fixtures/python_generated_file_excluded/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_noop_annotation_only_change/expected/CHANGELOG.md
  • fixtures/python_noop_annotation_only_change/expected/check.json
  • fixtures/python_noop_bare_var_annotation/expected/CHANGELOG.md
  • fixtures/python_noop_bare_var_annotation/expected/check.json
  • fixtures/python_noop_docstring_change/expected/CHANGELOG.md
  • fixtures/python_noop_docstring_change/expected/check.json
  • fixtures/python_noop_multiline_docstring_interior/expected/CHANGELOG.md
  • fixtures/python_noop_multiline_docstring_interior/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/recursive_controls/expected/CHANGELOG.md
  • fixtures/recursive_controls/expected/check.json
  • fixtures/recursive_positive/expected/CHANGELOG.md
  • fixtures/recursive_positive/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_dep_edge_cross_crate_ambiguity/expected/CHANGELOG.md
  • fixtures/rust_dep_edge_cross_crate_ambiguity/expected/check.json
  • fixtures/rust_dep_edge_cross_crate_positive/expected/CHANGELOG.md
  • fixtures/rust_dep_edge_cross_crate_positive/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/scanner_controls/expected/CHANGELOG.md
  • fixtures/scanner_controls/expected/check.json
  • fixtures/scanner_positive/expected/CHANGELOG.md
  • fixtures/scanner_positive/expected/check.json
  • fixtures/snapshot_oracle/expected/CHANGELOG.md
  • fixtures/snapshot_oracle/expected/check.json
  • fixtures/source_role_harness_suppression/expected/CHANGELOG.md
  • fixtures/source_role_harness_suppression/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_full_repo_guidance/expected/CHANGELOG.md
  • fixtures/ts_full_repo_guidance/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_disabled/expected/CHANGELOG.md
  • fixtures/typescript_disabled/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/unsafe_boundary_probe/expected/CHANGELOG.md
  • fixtures/unsafe_boundary_probe/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
  • fixtures/wrapper_seam_callee_call_attribution/expected/CHANGELOG.md
  • fixtures/wrapper_seam_callee_call_attribution/expected/check.json
  • xtask/src/evidence_promotion.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.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request ensures that a missing repository root fails explicitly with a directory error rather than an unresolvable base error. Additionally, it updates the default git base revision in CheckInput to None (previously origin/main) to trigger dynamic default-branch resolution, updating numerous tests and golden fixtures accordingly. Feedback on the changes suggests using .get() instead of direct subscripting on serde_json::Value in the LSP tests to prevent potential panics.

Comment thread crates/ripr/src/lsp/tests.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.

Confirmed findings

  • crates/ripr/src/lsp/tests.rs:13136 — Direct current_input["requested_base"] indexing remains a panic risk if upstream JSON shape drifts. Suggested fix: current_input.get("requested_base").copied().unwrap_or(serde_json::Value::Null) to match the pattern already used at the same site for session_options_identity/resolved_base.

Verification questions

  • Confirm cargo-test receipt is scheduled-late in this packet, so the new tests have not yet been witnessed by the deterministic broker in this run. Static reading shows coverage is present; the live green is awaiting the late phase.
  • Confirm evidence_promotion now treats diff-sourced goldens (fixtures with a sibling diff.patch) as scope-exempt from the base field while keeping all other reports strictly required to carry base.
  • Confirm only base/base_revision changed in the 235 fixture envelopes; findings, counts, input_identity stay byte-identical per the PR body. Spot-checks across boundary_gap, helper_chain_, recursive_, and adversarial fixtures confirm the JSON delta is uniform (no straggling fields).
  • Confirm the discriminator test default_check_input_resolves_the_repo_default_branch uses a temp git repo with a master-only branch and asserts output.base=='master'. It exercises the default-branch resolution path end-to-end and would fail pre-fix; it does not, however, assert the converse (that an origin/main default fails) nor that an explicit base is honored — those contracts are presumably covered elsewhere but worth confirming.
  • Confirm diff_sourced detection in evidence_promotion uses Path::new(fixture).join("diff.patch").exists() — fragile to fixtures whose golden was blessed via a non-default flow but still legitimately diff-sourced; would flag a missing diff.patch as live and then demand a base it can never carry.
  • Confirm check.rs adds a master-only git fixture proving default-built CheckInput now resolves the repo's real default branch (master) instead of the stale origin/main.

Refuted

  • Default-base None lets a caller accidentally analyze a private/wrong-default branch when no --base is given, leaking findings into the wrong reviewer.; refuted because: CheckInput.base is library-internal; callers that need a specific branch must pass --base explicitly (unchanged contract per PR body Non-goals). The new behavior merely resolves the repository's real default branch instead of a hardcoded origin/main. Explicit --base still errors with the ref named, and diff-file runs ignore base entirely. No silent cross-branch leak path is introduced.
  • Direct serde_json::Value indexing (current_input["requested_base"]) in crates/ripr/src/lsp/tests.rs could panic on missing key, leaving an unsafe memory access pattern (e.g., unwrap-tainted reference) at test runtime.; refuted because: LSP test asserts against a value the code under test just produced in the same function; the field is built locally and is present by construction. The concern is a panic-on-bad-shape risk, not a lifetime/ownership risk, and gemini-code-assist already raised the .get() preference separately. Out of scope for ub-memory-lifetime.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Parked follow-ups

  • evidence_promotion_case_is_diff_sourced intentionally narrows must_disclose_scope to /diff.patch presence; sibling re-blessing paths that build report scope without a fixture source (e.g. synthetic xtask runs) regress to demanding base. Park rather than broaden.
  • LSP tests still index serde_json::Value directly at requested_base; gemini-code-assist already flagged this in PR thread as low-priority but it is unchanged by this diff.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Exact-head release review — REVIEW_READY

Reviewed head f94dd8c9397bb0db8590ca434fa52e0acbd52a2f against #3952 and the 0.11 selected-claim boundary.

Accepted production contract

  • CheckInput::default().base = None makes library/LSP/app consumers use the governed default-base resolver rather than hardcoded origin/main.
  • Explicit --base, the standalone ripr diff contract, and separate PR-evidence/first-pr defaults remain outside this claim.
  • Missing roots now fail as missing roots before base resolution, so the new default does not misdirect a root typo into a --base repair.
  • Diff-file inputs continue to carry no applicable base; the evidence-promotion guard exempts base only when the fixture is actually backed by its governed diff.patch.

Evidence inspected

  • Real-Git master-only discriminator runs the CheckInput::default() consumer path and records master; this would fail under the previous hardcoded default.
  • Current-head required Rust check is successful.
  • CodeRabbit and Devin review statuses are successful.
  • The sole inline finding was repaired on this exact head and its thread is resolved.
  • The 235 diff-sourced golden changes are scoped to removal/nulling of the inapplicable base identity per the retained PR packet; live-run base recording remains required.

Remaining non-claims

This does not close generated-command root binding, doctor/docs first-use composition, standalone ripr diff, PR-evidence defaults, candidate qualification, or source integration. The broad fixture re-bless remains accepted only for the stated base/base_revision envelope migration.

Disposition: REVIEW_READY for protected squash merge.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Substantive exact-head review (author self-review COMMENT, not approval).

reviewed_head_sha: f94dd8c
integration_basis: main (MERGEABLE, behind-only needs no restack)
claim_boundary: #3952 -- CheckInput::default() must not hardcode origin/main (RIPR-SPEC-0084). Non-goals: ripr-diff command default, pr-evidence/first-pr own DEFAULT_BASE constants, explicit---base behavior, new envelope fields.
changed_surfaces_and_semantic_owners_inspected:

  • app.rs Default base None + field docs (library contract).
  • analysis/diff/load.rs: root-dir guard up front (missing root fails as missing root, not misdirected base-resolution error); spawn-wrap comment corrected.
  • app/check.rs discriminator (master-only fixture, default-built input records master; fails pre-fix), passthrough comment accuracy.
  • app/context.rs + explain.rs invalid-root tests pin the accurate message.
  • app/navigation.rs mode test names its base explicitly.
  • lsp/config + tests + workspace-status snapshot pin the baseless default (LSP refresh now resolves the workspace default instead of origin/main).
  • xtask evidence_promotion.rs: must_disclose_scope excuses base for diff-sourced reports only (scope = tool/mode/root + pinned diff.patch); live reports still require base. Both enforcement points share one helper + unit pin.
  • 235 --diff goldens re-blessed: each minus the inapplicable base line plus base_revision null; per-pair audit 235/235 explained, 0 unexplained; findings/counts/input_identity byte-identical.
    blocking_findings: none. The single bot thread (safe Value access in my snapshot asserts) adopted and resolved; 0 unresolved.
    non_blocking_suggestions: none.
    refuted_or_stale_findings: none.
    proof_and_ci_observed: exact-head cargo xtask check-pr exit 0 on this head (5281 lib tests, clippy -D warnings, doc, all check-* gates; zero failure markers). Hosted Rust gates SUCCESS on this head; mergeStateStatus CLEAN. goldens check, honesty (scope-guard headers kept), fixtures, dogfood, test-oracle-report green. Two infra events during qualification (300s git stall in one integration test under a 94-min loaded run; sccache 10054) both proven unrelated (isolated re-run 1s green; production identical to the prior green run; server restart) and left out of scope.
    affected_currentness_dimensions: refreshed Default contract, root-error precedence, guard rule, goldens (output-shape change declared in PR body with blessing reason), head identity.
    residual_assumptions_and_non_claims: --diff envelopes carry no base by construction (struct docs: when applicable); pr_summary falls back to origin/main for rendered follow-ups exactly as before.
    disposition: REVIEW_READY

@EffortlessSteven
EffortlessSteven merged commit fd572c8 into main Sep 24, 2026
26 checks passed
@EffortlessSteven
EffortlessSteven deleted the fix/3952-check-input-default-base branch September 24, 2026 02:25
claude Bot pushed a commit that referenced this pull request Sep 24, 2026
…heckInput default

#3952/#4002 made CheckInput::default().base None, so the comment's reason
(input.base holds a default verify would reject) is false on main. The
explicit None stays: pilot's printed after-snapshot command passes no
--base or --diff, so both snapshots carry no base under RIPR-SPEC-0084.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
claude Bot pushed a commit that referenced this pull request Sep 24, 2026
…lt-base change

#4002 made CheckInput::default().base None and reblessed every --diff
fixture on its base. #3944 (python_src_layout_package_import) and #3985
(tail_comparison_boundary) were blessed on bases without #4002, so each
merged with "base": "origin/main" and base_revision "origin/main", and
`cargo xtask goldens check` on main reports both as drift. Reblessed with
a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta
#4002 applied to the other fixtures. goldens check: 0 drift entries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
claude Bot pushed a commit that referenced this pull request Sep 24, 2026
…lt-base change

#4002 made CheckInput::default().base None and reblessed every --diff
fixture on its base. #3944 (python_src_layout_package_import) and #3985
(tail_comparison_boundary) were blessed on bases without #4002, so each
merged with "base": "origin/main" and base_revision "origin/main", and
`cargo xtask goldens check` on main reports both as drift. Reblessed with
a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta
#4002 applied to the other fixtures. goldens check: 0 drift entries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
(cherry picked from commit 7930fef)
claude Bot pushed a commit that referenced this pull request Sep 24, 2026
…lt-base change

#4002 made CheckInput::default().base None and reblessed every --diff
fixture on its base. #3944 (python_src_layout_package_import) and #3985
(tail_comparison_boundary) were blessed on bases without #4002, so each
merged with "base": "origin/main" and base_revision "origin/main", and
`cargo xtask goldens check` on main reports both as drift. Reblessed with
a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta
#4002 applied to the other fixtures. goldens check: 0 drift entries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
(cherry picked from commit 7930fef)
claude Bot pushed a commit that referenced this pull request Sep 24, 2026
…lt-base change

#4002 made CheckInput::default().base None and reblessed every --diff
fixture on its base. #3944 (python_src_layout_package_import) and #3985
(tail_comparison_boundary) were blessed on bases without #4002, so each
merged with "base": "origin/main" and base_revision "origin/main", and
`cargo xtask goldens check` on main reports both as drift. Reblessed with
a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta
#4002 applied to the other fixtures. goldens check: 0 drift entries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
(cherry picked from commit 7930fef)
claude Bot pushed a commit that referenced this pull request Sep 24, 2026
…lt-base change

fixture on its base. #3944 (python_src_layout_package_import) and #3985
(tail_comparison_boundary) were blessed on bases without #4002, so each
merged with "base": "origin/main" and base_revision "origin/main", and
`cargo xtask goldens check` on main reports both as drift. Reblessed with
a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
(cherry picked from commit 7930fef)
EffortlessSteven pushed a commit that referenced this pull request Sep 24, 2026
…lt-base change

#4002 made CheckInput::default().base None and reblessed every --diff
fixture on its base. #3944 (python_src_layout_package_import) and #3985
(tail_comparison_boundary) were blessed on bases without #4002, so each
merged with "base": "origin/main" and base_revision "origin/main", and
`cargo xtask goldens check` on main reports both as drift. Reblessed with
a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta
#4002 applied to the other fixtures. goldens check: 0 drift entries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
(cherry picked from commit 7930fef)
EffortlessSteven pushed a commit that referenced this pull request Sep 24, 2026
…lt-base change

RIPR-SPEC-0084: CheckInput default base is now None (#4002); these goldens
were blessed on a base before that change, so --diff envelopes now omit
the inapplicable top-level base and record base_revision null. Only
base/base_revision changed; probes, findings, and classifications are
identical.
EffortlessSteven pushed a commit that referenced this pull request Sep 24, 2026
…lt-base change (#4022)

RIPR-SPEC-0084: CheckInput default base is now None (#4002); these goldens
were blessed on a base before that change, so --diff envelopes now omit
the inapplicable top-level base and record base_revision null. Only
base/base_revision changed; probes, findings, and classifications are
identical.

Co-authored-by: Steven Zimmerman <szim9@users.noreply.github.com>
EffortlessSteven added a commit that referenced this pull request Sep 24, 2026
…or the no-default-base envelope

The new fixture was blessed against this PR's base before #4002 (fd572c8)
landed on main. cargo xtask goldens check on the merged tree showed exactly
one drift: this fixture's check.json still carried the pre-#4002 envelope
("base": "origin/main", base_revision "origin/main"). input_identity and all
findings were byte-identical. Re-blessed with the same RIPR-SPEC-0084 reason
main used for the identical rebless in #4022's series.

Proof on the merged tree (b2812a4 + this):
- cargo xtask goldens check: exit 0, zero drift
- cargo test -p ripr --lib python: 390 passed, 0 failed
- cargo fmt --check: pass
EffortlessSteven added a commit that referenced this pull request Sep 24, 2026
Forward-only merge of main a4db66c (GREEN). Resolutions:
- fixtures/python_*/expected/CHANGELOG.md (5 files): both appended
  Pending bless sections kept; PR RIPR-SPEC-0028 entry stays (3),
  main's later RIPR-SPEC-0084 entry (#4002) appended as (4), keeping
  headings unique per the accumulated-bless-log design (goldens check
  does not compare CHANGELOG.md bytes).
- expected/check.json auto-merge verified: main's base/base_revision
  None change (#3952) combined with this PR's evidence additions;
  input_identity unchanged per fixture.
- No product-code conflicts; main's flow.rs tail-comparison (#3985) is
  Rust-only and semantically consistent; main's related_tests.rs
  src-layout matching (#3944) only widens the strong-call set this
  PR's boundary rule consumes.
EffortlessSteven added a commit that referenced this pull request Sep 24, 2026
…it (#3980)

* fix(python): relate a test to an owner only when the test references it

A same-stem test file, a test name, or a fixture name no longer relates a
Python test to an owner it never references. In a flat layout (`pricing.py`
at the root, `tests/test_pricing.py`) the new, unreferenced `loyalty_price`
read `weakly_exposed` with "2 heuristic Python test link(s)" that only call
the sibling `discounted_total`; it now reads `no_static_path` with
`No Python test references \`loyalty_price(\``, matching the package layout.

The heuristics still rank a test that references the owner without a
recognized call shape: the bare name outside comments, strings, docstrings,
keyword-argument and assignment targets (unless a local shadows it); a
renamed import local from the owner module; or a member through an import of
the owner module (`pricing.loyalty_price`, `p.loyalty_price`). Method owners
need a `.name` attribute reference, dunder methods also accept a reference to
their class, and module owners need a local imported from the owner module.
Arbitrary object-member uses stay unrelated for free-function owners.

`python_same_stem_test`, `python_related_test_name_similarity` and
`python_fixture_name_relation` now reference their owner so they keep pinning
the heuristic families. The same-stem tests in
`python_dynamic_route_registration_limit` and
`python_adversarial_changed_sink_non_delta_operand` never reference their
owners, so reach moves from weak to no and both stay `static_unknown`. The new
`python_same_stem_sibling_owner_not_related` fixture pins the flat-layout
case. All are re-blessed under RIPR-SPEC-0028.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018QP9k41E538Xgytw8QCSfM

* fix(python): walrus, loop and as targets shadow the owner name

A same-stem test that binds a local named after the owner with `:=`,
`for ... in` or `as` no longer counts a bare use of that local as an
owner reference.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018QP9k41E538Xgytw8QCSfM

* test(fixtures): re-bless python_same_stem_sibling_owner_not_related for the no-default-base envelope

The new fixture was blessed against this PR's base before #4002 (fd572c8)
landed on main. cargo xtask goldens check on the merged tree showed exactly
one drift: this fixture's check.json still carried the pre-#4002 envelope
("base": "origin/main", base_revision "origin/main"). input_identity and all
findings were byte-identical. Re-blessed with the same RIPR-SPEC-0084 reason
main used for the identical rebless in #4022's series.

Proof on the merged tree (b2812a4 + this):
- cargo xtask goldens check: exit 0, zero drift
- cargo test -p ripr --lib python: 390 passed, 0 failed
- cargo fmt --check: pass

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Steven Zimmerman, CPA <15812269+EffortlessSteven@users.noreply.github.com>
EffortlessSteven added a commit that referenced this pull request Sep 24, 2026
…-0084 base contract

The wrong-family fixture golden was blessed before main landed #4002
(RIPR-SPEC-0084): the tool now omits the inapplicable top-level base and
records base_revision null for --diff envelopes. Verified before blessing:
findings, counts and input_identity byte-identical; only base/base_revision
changed (formatting_only drift class). Reblessed with the same spec reason
main used for the other TS fixtures.
EffortlessSteven added a commit that referenced this pull request Sep 24, 2026
…nvelope

The fixture was blessed before RIPR-SPEC-0084 (#4002) reached main; drop
the inapplicable top-level base and record base_revision null.
EffortlessSteven added a commit that referenced this pull request Sep 24, 2026
…an close them (#3984)

* fix(classify): resolve named-constant boundaries so a boundary test can close them

Rebased onto current main; conflict-free. A same-file immutable integer
const/static boundary resolves to its literal value for activation,
infection, and test-grip evidence; fails closed on computed initializers
or imported/duplicated constants (reported infection_unknown /
static_limited, never as a repair target). Cache generations bumped
(1.14 / 0.20 / 0.21) so a warm cache cannot hide the change.

* test(fixtures): rebless boundary_named_constant for no-default-base envelope

The fixture was blessed before RIPR-SPEC-0084 (#4002) reached main; drop
the inapplicable top-level base and record base_revision null.

---------

Co-authored-by: Steven Zimmerman <szim9@users.noreply.github.com>
Co-authored-by: Steven Zimmerman, CPA <15812269+EffortlessSteven@users.noreply.github.com>
EffortlessSteven added a commit that referenced this pull request Sep 24, 2026
…ot see the change (#3942)

* fix(typescript): stop repair packets borrowing an assertion that cannot see the change

A TypeScript error-path change (a new `throw`) whose only related test pinned
a success value (`expect(parseLimit('10')).toBe(10)`) flipped to
`repair_packet_ready: true`, and its repair action told the user to "add or
strengthen" that existing assertion, which cannot detect the throw.

- Oracle metadata evidence is only borrowed from assertions whose kind can
  observe the changed probe family (the RIPR-SPEC-0104 mapping the classifier
  already uses), so G-C fails closed for wrong-family oracles.
- The projected assertion shape keeps the borrowed call but uses an
  `expected` placeholder instead of re-using a weaker matcher's literal under
  `toBe` (it rendered `toBeGreaterThan(50)` as `toBe(50)`).
- The repair action leads with the missing discriminator.

New negative fixture ts_repair_packet_wrong_family_oracle; goldens for
ts_repair_packet_complete, typescript_broad_tothrow and
typescript_tothrow_exact_oracle reblessed (wording and metadata only; class,
category and readiness unchanged).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018QP9k41E538Xgytw8QCSfM

* fix(goldens): rebless wrong-family fixture envelope for the RIPR-SPEC-0084 base contract

The wrong-family fixture golden was blessed before main landed #4002
(RIPR-SPEC-0084): the tool now omits the inapplicable top-level base and
records base_revision null for --diff envelopes. Verified before blessing:
findings, counts and input_identity byte-identical; only base/base_revision
changed (formatting_only drift class). Reblessed with the same spec reason
main used for the other TS fixtures.

* fix(goldens): rebless wrong-family fixture for merged RIPR-SPEC-0027 boundary rules

Merge-interaction rebless after union with #3953: a guard without a
comparison is weakly_exposed with no invented discriminator (line 3
predicate exposed -> weakly_exposed) and brace-only changed lines carry
no behavior (line 5 probe removed). The fixture's error-path finding is
unchanged: weakly_exposed, no wrong-family oracle borrow, repair packet
stays not ready. Pinned by spec_0027_guard_without_comparison_is_not_
exposed and spec_0027_ambiguous_fallback_is_never_exposed_and_punctua
tion_is_ignored on the merged tree.

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Steven Zimmerman, CPA <15812269+EffortlessSteven@users.noreply.github.com>
EffortlessSteven pushed a commit that referenced this pull request Sep 24, 2026
…d repair (#3960)

* feat(output): carry the agent repair start on repair cards and gate routes

Where a review card, gate repair route, or inline PR comment already
names a seam that passes the repair-packet flip, lead with
`ripr agent repair --root . --seam-id <id> --phase before` instead of
the snapshot verify command. The command is computed once in
evidence_record::canonical_repair_command_for, gated on
repair_packet_eligibility(entry).eligible(), and carried (never
derived) by review_comments, the gate repair route, and the inline
comment publisher. Non-actionable routes and gap-record routes emit
nothing and keep the existing verify guidance.

Refs #3906 (outcome 3, gate and repair-card surfaces).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* test(output): rebind fixtures to the carried repair start and bind the flip

The repo-exposure evidence record, the dogfood gate-adoption receipts, and
the gate-decision verification fixture now carry repair_command. The
first-useful-action unchanged-after-attempt snapshots are regenerated
through the corpus test's own normalizer, and the verify and receipt
artifacts are rebound to the new snapshot bytes; their movement is
unchanged. The evidence-record test now calls the builder with an
actionable state directly, so removing the eligibility check fails it.

Refs #3906.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* fix(output): withhold the repair start for inline-test seams and lead CI comments with it

agent repair refuses an edit target outside a test surface, so a seam
whose recommended test lives in an inline #[cfg(test)] module was
offered a repair start it could not use. repair_start_command_for now
also requires the recommended test file to be a test surface, and
canonical_repair_command_for goes through it.

The generated CI's compact inline comment headline read only the Verify
line, so a card carrying "Start the repair:" still led with Verify. The
jq now captures the repair start and leads with it when present.

Refs #3906

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* feat(output): start first-pr and pr-summary from a carried review-card repair

Generated CI builds the gap ledger from repo-exposure, whose records are all
repo-scoped, so `ripr first-pr` always fell to no_action for Rust even when
the review-comments file held a card that passed the repair-packet flip. The
review-comments input was only checked for existence.

first-pr: when the ledger yields no top gap, read the review-comments input
and select the first actionable card in comments[] then summary_only[] that
carries a non-empty llm_guidance.repair_command. The command is carried
byte-for-byte; first-pr never builds `agent repair` from a seam, gap, or
probe id. Every selected field comes from that same card (source_artifact is
the review-comments path, repair.route is AgentRepairTransaction, verify and
receipt are the card's), never mixed with a ledger record. The card is used
only when the report is tool=ripr, status=advisory, and names this
invocation's root, base, and head; otherwise it fails closed to no_action.
The selection keeps state top_gap so the editor projection and pr-summary
consume it unchanged. receipt_path and agent_packet_command are null for a
card selection: the card is not a ledger gap and first-pr does not parse
commands for paths. selected.repair_command is present only when carried, so
ledger-selected packets are byte-identical to before.

The repair start is not added to `commands`: the VS Code first-pr projection
fails the whole packet closed (unsafeCommand) on any `commands` value outside
its allowlist, and `ripr agent repair` is not on it.

CLI and Markdown render a "Start repair" line before Verify. A no_action
reason now says why no card supplied a start and, when the cards are missing
or were rendered from the gap ledger, names the seam-level
`ripr review-comments --root --base --head --out` route.

pr-summary: carry start-here selected.repair_command into TopRepair (never
read review comments directly, which could mis-pair a card with start-here's
top gap), render a "start repair" line before verify in both Markdown
surfaces, and make it the first local reproduction command when present.

Docs: OUTPUT_SCHEMA start-here and pr-evidence-summary contracts,
FIRST_PR_WORKFLOW, RIPR-SPEC-0075 field tables.

Refs #3906

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* test(first-pr): cover the head-mismatch refusal for review-card repair starts

The fail-closed test covered base, status, root, scope and a missing
report but not a report generated for another head. Removing the head
check from review_comments_currentness_problem now fails it.

Refs #3906

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* fix(test): pass the changed-line flag in the gate repair-start test

`cargo test -p ripr --lib` does not compile on main since 64f3b92.
#3936 added `repair_route_leads_with_the_repair_start_when_carried`,
which calls `push_repair_route(out, route)`. #3968, branched before
#3936 landed, added a third `changed_line_anchored: bool` parameter.
Each PR was green on its own base; the combined tree fails with E0061
at output/gate/presentation.rs:630 and :642.

The test now passes `true`. The start-repair line it pins does not
depend on the flag.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
(cherry picked from commit 9884f9b)

* test(fixtures): regenerate the packet-index Markdown goldens for the single Start here block

#4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render
the corpus instead of comparing two goldens, and #3973 removed the second
"Start here:" block from the rendered index. Each merged green against a
main without the other, so main now fails that required xtask test on its
first case. Regenerated all seven cases with the corpus canonical_command.
Six index.md files lose the duplicate block; every index.json is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
(cherry picked from commit 3a0d679)

* test(fixtures): rebless two check goldens blessed before the no-default-base change

#4002 made CheckInput::default().base None and reblessed every --diff
fixture on its base. #3944 (python_src_layout_package_import) and #3985
(tail_comparison_boundary) were blessed on bases without #4002, so each
merged with "base": "origin/main" and base_revision "origin/main", and
`cargo xtask goldens check` on main reports both as drift. Reblessed with
a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta
#4002 applied to the other fixtures. goldens check: 0 drift entries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
(cherry picked from commit 7930fef)

---------

Co-authored-by: Claude <noreply@anthropic.com>
EffortlessSteven added a commit that referenced this pull request Sep 24, 2026
…el and the evidence ledger (#3962)

* feat(output): carry the agent repair start on repair cards and gate routes

Where a review card, gate repair route, or inline PR comment already
names a seam that passes the repair-packet flip, lead with
`ripr agent repair --root . --seam-id <id> --phase before` instead of
the snapshot verify command. The command is computed once in
evidence_record::canonical_repair_command_for, gated on
repair_packet_eligibility(entry).eligible(), and carried (never
derived) by review_comments, the gate repair route, and the inline
comment publisher. Non-actionable routes and gap-record routes emit
nothing and keep the existing verify guidance.

Refs #3906 (outcome 3, gate and repair-card surfaces).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* test(output): rebind fixtures to the carried repair start and bind the flip

The repo-exposure evidence record, the dogfood gate-adoption receipts, and
the gate-decision verification fixture now carry repair_command. The
first-useful-action unchanged-after-attempt snapshots are regenerated
through the corpus test's own normalizer, and the verify and receipt
artifacts are rebound to the new snapshot bytes; their movement is
unchanged. The evidence-record test now calls the builder with an
actionable state directly, so removing the eligibility check fails it.

Refs #3906.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* feat(output): lead PR-review surfaces with the carried repair start

First-useful-action, the PR-review front panel, the PR evidence ledger,
and RIPR Zero status now lead with `ripr agent repair --root . --seam-id
<id> --phase before` exactly when an input artifact already carries it,
and never synthesize a repair-loop command from a bare seam id. The
fail-closed decision stays with repair_packet_eligibility(..).eligible()
upstream; these surfaces carry the string and do not re-run eligibility.

First-useful-action: a new route ahead of the missing-assistant-proof
route. When no assistant proof exists yet and the first review card
(comments, then summary_only) carries a non-empty
llm_guidance.repair_command, the report is `actionable` /
`write_focused_test` with `commands.repair` set to that string and every
`selected`/`target` field, verify, and receipt command taken from that
same card. A fresh PR no longer asks for post-repair assistant proof
before any repair exists. The same card without the command keeps the
missing_required_artifact route; post-proof routing is unchanged.
`commands.repair` is skipped when absent, so existing goldens are stable.
Markdown adds a `Start Repair` section and a one-screen `Repair start`
line. Generated CI's first-action summary and at-a-glance block print
`.commands.repair` (template, test, and docs/CI.md mirror).

Front panel: `top_issue.repair_command` is carried from first-action
`commands.repair`, a card's `llm_guidance.repair_command`, or an
acknowledged gate route's `repair_route.repair_command`. `agent_command`
is that command, else a carried read-only inspection command
(`commands.context_packet`, `llm_guidance.command`, or the gate route's
`inspection_command`), else null. The three `agent start --seam-id`
syntheses are gone. Markdown shows `Repair start` in the top issue and
the Repair block. The invalid-improved assertion now pins the exact
carried handoff instead of `is_some()`.

Evidence ledger: `top_repair_route.repair_command` is carried from the
card, gate route, or RIPR Zero route; the gap and baseline arms name no
repair start and drop their synthesized `agent start` (verify kept).
Also fixes the card receipt command, which cards put at the root, not
under llm_guidance (kept as fallback), so it was always null.

RIPR Zero status (item 4 decision): the gap-record arm synthesized
`agent start --seam-id <canonical_gap_id>`, a gap id rather than a seam
id; it now names none. The baseline arm carries
`evidence_record.canonical_item.repair_command` when present, else null.

Left in place: test_oracle_assistant_proof handoff. The proof is a
post-attempt artifact (it needs before/after/receipt) and its handoff
records the workflow that produced its --agent-packet input.
assistant_loop_health derives every repair-queue command root from that
field (command_root), so nulling it would regress those roots to `.`.
It needs its own root carrier first; tracked as follow-up.

Goldens: new first-useful-action/repair-start and
pr-review-front-panel/repair-start cases (exact-line card carrying the
command), regenerated through the production renderers. Front-panel
actionable/blocked now show the carried context-packet command,
acknowledged/summary-only show null, and the mixed ledger shows null;
the mixed ripr-zero-status input is rebound to the producer contract.
No hash-bound artifact changed.

Refs #3906.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* fix(output): withhold the repair start for inline-test seams and lead CI comments with it

agent repair refuses an edit target outside a test surface, so a seam
whose recommended test lives in an inline #[cfg(test)] module was
offered a repair start it could not use. repair_start_command_for now
also requires the recommended test file to be a test surface, and
canonical_repair_command_for goes through it.

The generated CI's compact inline comment headline read only the Verify
line, so a card carrying "Start the repair:" still led with Verify. The
jq now captures the repair start and leads with it when present.

Refs #3906

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* feat(output): start first-pr and pr-summary from a carried review-card repair

Generated CI builds the gap ledger from repo-exposure, whose records are all
repo-scoped, so `ripr first-pr` always fell to no_action for Rust even when
the review-comments file held a card that passed the repair-packet flip. The
review-comments input was only checked for existence.

first-pr: when the ledger yields no top gap, read the review-comments input
and select the first actionable card in comments[] then summary_only[] that
carries a non-empty llm_guidance.repair_command. The command is carried
byte-for-byte; first-pr never builds `agent repair` from a seam, gap, or
probe id. Every selected field comes from that same card (source_artifact is
the review-comments path, repair.route is AgentRepairTransaction, verify and
receipt are the card's), never mixed with a ledger record. The card is used
only when the report is tool=ripr, status=advisory, and names this
invocation's root, base, and head; otherwise it fails closed to no_action.
The selection keeps state top_gap so the editor projection and pr-summary
consume it unchanged. receipt_path and agent_packet_command are null for a
card selection: the card is not a ledger gap and first-pr does not parse
commands for paths. selected.repair_command is present only when carried, so
ledger-selected packets are byte-identical to before.

The repair start is not added to `commands`: the VS Code first-pr projection
fails the whole packet closed (unsafeCommand) on any `commands` value outside
its allowlist, and `ripr agent repair` is not on it.

CLI and Markdown render a "Start repair" line before Verify. A no_action
reason now says why no card supplied a start and, when the cards are missing
or were rendered from the gap ledger, names the seam-level
`ripr review-comments --root --base --head --out` route.

pr-summary: carry start-here selected.repair_command into TopRepair (never
read review comments directly, which could mis-pair a card with start-here's
top gap), render a "start repair" line before verify in both Markdown
surfaces, and make it the first local reproduction command when present.

Docs: OUTPUT_SCHEMA start-here and pr-evidence-summary contracts,
FIRST_PR_WORKFLOW, RIPR-SPEC-0075 field tables.

Refs #3906

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* test(first-pr): cover the head-mismatch refusal for review-card repair starts

The fail-closed test covered base, status, root, scope and a missing
report but not a report generated for another head. Removing the head
check from review_comments_currentness_problem now fails it.

Refs #3906

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* docs(schema): keep the front-panel vocabulary sentences in their own bullet

The #3906 repair_command bullet was spliced mid-sentence into the typed
one-screen vocabulary contract: the mirror/evidence-strength sentences
described top_issue.current_evidence_strength and friends, not the new
carried-command fields. Restore them to the vocabulary bullet so the
repair_command bullet ends at the never-synthesize rule.

Reviewed as part of #3962.

* fix(test): pass the changed-line flag in the gate repair-start test

`cargo test -p ripr --lib` does not compile on main since 64f3b92.
#3936 added `repair_route_leads_with_the_repair_start_when_carried`,
which calls `push_repair_route(out, route)`. #3968, branched before
#3936 landed, added a third `changed_line_anchored: bool` parameter.
Each PR was green on its own base; the combined tree fails with E0061
at output/gate/presentation.rs:630 and :642.

The test now passes `true`. The start-repair line it pins does not
depend on the flag.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
(cherry picked from commit 9884f9b)

* test(fixtures): regenerate the packet-index Markdown goldens for the single Start here block

#4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render
the corpus instead of comparing two goldens, and #3973 removed the second
"Start here:" block from the rendered index. Each merged green against a
main without the other, so main now fails that required xtask test on its
first case. Regenerated all seven cases with the corpus canonical_command.
Six index.md files lose the duplicate block; every index.json is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
(cherry picked from commit 3a0d679)

* test(fixtures): rebless two check goldens blessed before the no-default-base change

#4002 made CheckInput::default().base None and reblessed every --diff
fixture on its base. #3944 (python_src_layout_package_import) and #3985
(tail_comparison_boundary) were blessed on bases without #4002, so each
merged with "base": "origin/main" and base_revision "origin/main", and
`cargo xtask goldens check` on main reports both as drift. Reblessed with
a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta
#4002 applied to the other fixtures. goldens check: 0 drift entries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
(cherry picked from commit 7930fef)

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Steven Zimmerman, CPA <15812269+EffortlessSteven@users.noreply.github.com>
EffortlessSteven pushed a commit that referenced this pull request Sep 25, 2026
…gap (#4019)

* feat(output): carry the agent repair start on repair cards and gate routes

Where a review card, gate repair route, or inline PR comment already
names a seam that passes the repair-packet flip, lead with
`ripr agent repair --root . --seam-id <id> --phase before` instead of
the snapshot verify command. The command is computed once in
evidence_record::canonical_repair_command_for, gated on
repair_packet_eligibility(entry).eligible(), and carried (never
derived) by review_comments, the gate repair route, and the inline
comment publisher. Non-actionable routes and gap-record routes emit
nothing and keep the existing verify guidance.

Refs #3906 (outcome 3, gate and repair-card surfaces).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* test(output): rebind fixtures to the carried repair start and bind the flip

The repo-exposure evidence record, the dogfood gate-adoption receipts, and
the gate-decision verification fixture now carry repair_command. The
first-useful-action unchanged-after-attempt snapshots are regenerated
through the corpus test's own normalizer, and the verify and receipt
artifacts are rebound to the new snapshot bytes; their movement is
unchanged. The evidence-record test now calls the builder with an
actionable state directly, so removing the eligibility check fails it.

Refs #3906.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* fix(output): withhold the repair start for inline-test seams and lead CI comments with it

agent repair refuses an edit target outside a test surface, so a seam
whose recommended test lives in an inline #[cfg(test)] module was
offered a repair start it could not use. repair_start_command_for now
also requires the recommended test file to be a test surface, and
canonical_repair_command_for goes through it.

The generated CI's compact inline comment headline read only the Verify
line, so a card carrying "Start the repair:" still led with Verify. The
jq now captures the repair start and leads with it when present.

Refs #3906

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* feat(output): start first-pr and pr-summary from a carried review-card repair

Generated CI builds the gap ledger from repo-exposure, whose records are all
repo-scoped, so `ripr first-pr` always fell to no_action for Rust even when
the review-comments file held a card that passed the repair-packet flip. The
review-comments input was only checked for existence.

first-pr: when the ledger yields no top gap, read the review-comments input
and select the first actionable card in comments[] then summary_only[] that
carries a non-empty llm_guidance.repair_command. The command is carried
byte-for-byte; first-pr never builds `agent repair` from a seam, gap, or
probe id. Every selected field comes from that same card (source_artifact is
the review-comments path, repair.route is AgentRepairTransaction, verify and
receipt are the card's), never mixed with a ledger record. The card is used
only when the report is tool=ripr, status=advisory, and names this
invocation's root, base, and head; otherwise it fails closed to no_action.
The selection keeps state top_gap so the editor projection and pr-summary
consume it unchanged. receipt_path and agent_packet_command are null for a
card selection: the card is not a ledger gap and first-pr does not parse
commands for paths. selected.repair_command is present only when carried, so
ledger-selected packets are byte-identical to before.

The repair start is not added to `commands`: the VS Code first-pr projection
fails the whole packet closed (unsafeCommand) on any `commands` value outside
its allowlist, and `ripr agent repair` is not on it.

CLI and Markdown render a "Start repair" line before Verify. A no_action
reason now says why no card supplied a start and, when the cards are missing
or were rendered from the gap ledger, names the seam-level
`ripr review-comments --root --base --head --out` route.

pr-summary: carry start-here selected.repair_command into TopRepair (never
read review comments directly, which could mis-pair a card with start-here's
top gap), render a "start repair" line before verify in both Markdown
surfaces, and make it the first local reproduction command when present.

Docs: OUTPUT_SCHEMA start-here and pr-evidence-summary contracts,
FIRST_PR_WORKFLOW, RIPR-SPEC-0075 field tables.

Refs #3906

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* test(first-pr): cover the head-mismatch refusal for review-card repair starts

The fail-closed test covered base, status, root, scope and a missing
report but not a report generated for another head. Removing the head
check from review_comments_currentness_problem now fails it.

Refs #3906

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* fix(first-pr): stop on unusable review cards instead of reporting no gap

Re-walk F60-10. On a fresh Rust checkout, following first-pr's own next
commands (repo exposure, then gap ledger) ended in `State: no actionable
gap` with no next command, while the PR had a repair-ready seam. The
repo-exposure ledger holds only repo-scoped records, so first-pr's second
source, the review cards, decides; with the cards missing, first-pr gave
a no-action verdict on evidence it never read.

Now a Rust root stops on the cards instead:
- missing: `missing_artifact` for `PR repair cards`, next command the
  seam-level `ripr review-comments --root . --base <base> --head <head>
  --out target/ripr/review/comments.json`;
- not a RIPR report, or no status/root/base/head: `malformed_artifact`;
- status not advisory: `blocked_artifact`;
- another root: `wrong_root`; another base or head: `stale_artifact`.
Current cards with no repair start, and cards rendered from the gap
ledger, still end in no-action with the reason naming the route.

The `artifacts[]` entry for the cards on a Rust root now names the same
seam-level command. It named the `--gap-ledger` form, whose cards cannot
carry a repair start. Preview-language roots keep the gap-ledger form.

Fresh-checkout re-walk on the pricing repo: repo exposure, gap ledger,
review cards, then `top_gap` with `Start repair: ripr agent repair ...
--phase before`.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

* fix(test): pass the changed-line flag in the gate repair-start test

`cargo test -p ripr --lib` does not compile on main since 64f3b92.
#3936 added `repair_route_leads_with_the_repair_start_when_carried`,
which calls `push_repair_route(out, route)`. #3968, branched before
#3936 landed, added a third `changed_line_anchored: bool` parameter.
Each PR was green on its own base; the combined tree fails with E0061
at output/gate/presentation.rs:630 and :642.

The test now passes `true`. The start-repair line it pins does not
depend on the flag.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
(cherry picked from commit 9884f9b)

* test(fixtures): regenerate the packet-index Markdown goldens for the single Start here block

#4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render
the corpus instead of comparing two goldens, and #3973 removed the second
"Start here:" block from the rendered index. Each merged green against a
main without the other, so main now fails that required xtask test on its
first case. Regenerated all seven cases with the corpus canonical_command.
Six index.md files lose the duplicate block; every index.json is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
(cherry picked from commit 3a0d679)

* test(fixtures): rebless two check goldens blessed before the no-default-base change

#4002 made CheckInput::default().base None and reblessed every --diff
fixture on its base. #3944 (python_src_layout_package_import) and #3985
(tail_comparison_boundary) were blessed on bases without #4002, so each
merged with "base": "origin/main" and base_revision "origin/main", and
`cargo xtask goldens check` on main reports both as drift. Reblessed with
a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta
#4002 applied to the other fixtures. goldens check: 0 drift entries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
(cherry picked from commit 7930fef)

* test(first-pr): cover the malformed review-card branches in the fail-closed loop

Another tool's report, and reports that do not record their status, root or
head, each stop first-pr as malformed_artifact with the seam-level
regeneration command. Only the stale, blocked, wrong-root and missing cases
were exercised before. Disabling the tool check fails the test.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK

---------

Co-authored-by: Claude <noreply@anthropic.com>
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.

CheckInput::default() hardcodes base: Some("origin/main"), so every consumer except check contradicts RIPR-SPEC-0084

1 participant