Skip to content

fix(lsp): withhold gap artifacts computed for other source contents (#4544) - #4709

Merged
EffortlessSteven merged 8 commits into
mainfrom
claude/project-thread-2rk3d2-ledger-subject
Sep 29, 2026
Merged

EffortlessSteven merged 8 commits into
mainfrom
claude/project-thread-2rk3d2-ledger-subject

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

Before: ripr lsp projected gap diagnostics, hovers and repair packets from gap-decision-ledger.json and actionable-gaps.json without checking that they were computed for the current source. After a checkout, an edit or a branch switch, the editor showed gaps and line positions from other source contents as current. The ledger writers also could not say which source they were derived from.

After:

  • Producers stamp. ripr check JSON and repo-exposure JSON carry a top-level source_subject: the sha256 of each file a derived ledger or packet names, read when the output is rendered.
  • Writers copy. The ledger writers (reports gap-ledger, first-pr) and the actionable-gaps writer copy those digests from their input and never hash the workspace. With no usable input stamp they write source_subject_unavailable: input_source_subject_{missing|malformed|unsupported_digest|incomplete}.
  • The LSP checks. It re-hashes the named files. A mismatch is stale_subject and a missing or unusable stamp is unverifiable_subject. Either one withholds the gap projection and says why, rather than showing it as current.

Fixes #4544.

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Proposal: n/a
Spec: RIPR-SPEC-0046, RIPR-SPEC-0047 (check JSON goldens gain the field)
ADR: n/a
Plan item: 0.11 shared-state hunt
Governing issue or accepted claim: #4544
Acceptance delta (one sentence): the LSP never presents a gap artifact computed for other source contents as current.

Candidate Relationships

Candidate branch: claude/project-thread-2rk3d2-ledger-subject
Stack parent or prerequisite PR: none

Scope

  • output/gap_source_subject.rs and gap_source_subject/shared.rs define the subject contract. There is one packet-path extractor, actionable_packet_named_paths, covering source_file, target_test, target_file, primary_anchor.file, and related_test_or_observer as a string, an object or a nested array. xtask compiles shared.rs through #[path].
  • output/render.rs (check JSON) and output/repo_exposure.rs (computed before the two-pass writer, so content_sha256 covers it) are the producers.
  • output/gap_decision_ledger.rs, output/first_pr.rs, cli/commands.rs and xtask/src/{evidence_audit,evidence_quality}.rs are the copying writers. Paths are rebased from the input root onto --root, and absolute paths are resolved against the absolutized or canonical root.
  • lsp/{gap_artifacts,diagnostics,backend}.rs do the validation and withholding.
  • schemas/ripr/check.schema.json and docs/OUTPUT_SCHEMA.md document the fields.
  • 145 check.json goldens are blessed (the only change is the added source_subject line). The unchanged-after-attempt snapshots and their digests are regenerated from production output.

Scope Classification

  • One production behavior (stale gap artifacts are withheld in the LSP)

Non-goals:

  • An edit saved between the analysis read and the render cannot be seen. OUTPUT_SCHEMA states this window.
  • Artifacts written by older builds are unverifiable, not upgraded.

Support-tier Impact

  • none

Policy Impact

  • none

Proof

cargo test -p ripr --lib -- subject gap_decision_ledger gap_artifacts         # 208 passed
cargo test -p ripr --test cli_smoke -- first_useful_action unchanged assistant # 10 passed
cargo xtask goldens check                                                      # pass
cargo xtask precommit                                                          # exit 0
cargo clippy -p ripr --all-targets -- -D warnings                              # exit 0
cargo clippy -p xtask --all-targets -- -D warnings                             # exit 0

Negative checks (logic reverted, then restored):

  • Ledger hashes the workspace again. reports_gap_ledger_after_an_edit_keeps_the_analysis_time_stamp, ..._copies_the_input_stamp_... and ..._without_an_input_stamp_... fail.
  • Hash when the input stamp is absent (round-1 behavior). reports_gap_ledger_without_an_input_stamp_is_unavailable_and_stays_so fails.
  • Narrowed packet extractor. source_subject_covers_every_packet_related_test_shape, the extractor unit test, and the xtask all-shapes test fail.
  • Raw strip_prefix(root). absolute_paths_resolve_against_a_relative_root and the CLI relative-root test fail.

The Rust-only feature lane test now uses a Rust-context ledger fixture: 12 source_subject tests pass under --no-default-features --features lang-rust.

Local cargo test -p xtask has 8 failures, all from this environment:

  • 7 python_judged_panel_replay tests expect <worktree>/target/debug/ripr, but the build used a shared CARGO_TARGET_DIR.
  • 1 unreadable-subtree test, because the run is root.

Claim Boundary

  • Claimable: the LSP withholds gap artifacts whose named files no longer match their analysis-time digests, or whose provenance is unknown.
  • Not claimable: detection of edits made during a single analysis run.

Rollback

Revert the squash commit. Artifacts carrying source_subject stay readable by older builds, which ignore the field. The check schema's additionalProperties: false means older schema validators reject new check JSON.

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • Public JSON/schema changes are documented.

Gates

  • cargo fmt --check
  • cargo xtask precommit
  • cargo xtask goldens check

Review

Round-1 findings (Codex P1/P2, Devin ×4) are addressed, answered and resolved. CodeRabbit skipped (312 files over its limit), Gemini is out of quota, and droid-review is queued. Those reviews are missing, not clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_014WDSj54AyARNwy6oUuYXnx

…4544)

`ripr lsp` projected gap diagnostics from gap-decision-ledger.json (and
read actionable-gaps.json) without knowing which source state they were
computed from, so after a branch switch, edit, or commit it placed the old
gaps at their old lines on the new files and presented them as current.

Producers now stamp a top-level `source_subject` (sha256 content digest of
every file the records name: ledger anchor, repair-route target and related
test; packet source, primary anchor and related test). `ripr reports
gap-ledger` and `ripr first-pr --check-output` stamp the ledger from the
selected root (a re-rendered ledger keeps its original stamp); `cargo xtask
lane1-evidence-audit` stamps actionable-gaps.json.

The shared validator `lsp::gap_artifacts::validate_gap_artifact` recomputes
the digests and rejects the whole artifact as `stale_subject` (changed,
deleted, or newly created file) or `unverifiable_subject` (missing,
malformed, incomplete, or unreadable stamp, including artifacts from older
builds). Rejections flow through the existing routes: run status
stale/cache_limited, typed cache and gap_ledger component outcomes naming
the regeneration command, workspace-status repair rows, and typed
sentinels from the repair-packet and gap-context commands.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014WDSj54AyARNwy6oUuYXnx
…-2rk3d2-ledger-subject

# Conflicts:
#	CHANGELOG.md
#	crates/ripr/src/lsp/backend.rs
@gemini-code-assist

Copy link
Copy Markdown

Warning

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

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review September 29, 2026 03:01
@gemini-code-assist

Copy link
Copy Markdown

Warning

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

@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 312 files, which is 212 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: 0cb0b8ec-a1a4-49d1-8ec7-0bd709fb7aa4

📥 Commits

Reviewing files that changed from the base of the PR and between 3911480 and 7e9e9b4.

📒 Files selected for processing (312)
  • CHANGELOG.md
  • crates/ripr/src/cli/commands.rs
  • crates/ripr/src/lsp/backend.rs
  • crates/ripr/src/lsp/diagnostics.rs
  • crates/ripr/src/lsp/gap_artifacts.rs
  • crates/ripr/src/lsp/tests.rs
  • crates/ripr/src/output/first_pr.rs
  • crates/ripr/src/output/gap_decision_ledger.rs
  • crates/ripr/src/output/gap_source_subject.rs
  • crates/ripr/src/output/gap_source_subject/shared.rs
  • crates/ripr/src/output/mod.rs
  • crates/ripr/src/output/render.rs
  • crates/ripr/src/output/repo_exposure.rs
  • docs/OUTPUT_SCHEMA.md
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/after.repo-exposure.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-receipt.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-verify.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/before.repo-exposure.json
  • fixtures/mixed_rust_typescript_preview/expected/CHANGELOG.md
  • fixtures/mixed_rust_typescript_preview/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_named_constant_boundary_repair_gap/expected/CHANGELOG.md
  • fixtures/python_named_constant_boundary_repair_gap/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_rebound_constant_boundary_limit/expected/CHANGELOG.md
  • fixtures/python_rebound_constant_boundary_limit/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_sibling_owner_not_related/expected/CHANGELOG.md
  • fixtures/python_same_stem_sibling_owner_not_related/expected/check.json
  • fixtures/python_same_stem_test/expected/CHANGELOG.md
  • fixtures/python_same_stem_test/expected/check.json
  • fixtures/python_src_layout_package_import/expected/CHANGELOG.md
  • fixtures/python_src_layout_package_import/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/ts_already_observed/expected/CHANGELOG.md
  • fixtures/ts_already_observed/expected/check.json
  • fixtures/ts_boundary_named_constant_test/expected/CHANGELOG.md
  • fixtures/ts_boundary_named_constant_test/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_domock_relation_gate/expected/CHANGELOG.md
  • fixtures/ts_domock_relation_gate/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_mock_forms_owner_module/expected/CHANGELOG.md
  • fixtures/ts_mock_forms_owner_module/expected/check.json
  • fixtures/ts_no_verify_command/expected/CHANGELOG.md
  • fixtures/ts_no_verify_command/expected/check.json
  • fixtures/ts_parse_depth_budget/expected/CHANGELOG.md
  • fixtures/ts_parse_depth_budget/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_predicate_boundary_const_result_local/expected/CHANGELOG.md
  • fixtures/ts_predicate_boundary_const_result_local/expected/check.json
  • fixtures/ts_predicate_boundary_optional_chaining/expected/CHANGELOG.md
  • fixtures/ts_predicate_boundary_optional_chaining/expected/check.json
  • fixtures/ts_predicate_boundary_overcredit/expected/CHANGELOG.md
  • fixtures/ts_predicate_boundary_overcredit/expected/check.json
  • fixtures/ts_repair_packet_boundary_constant_first/expected/CHANGELOG.md
  • fixtures/ts_repair_packet_boundary_constant_first/expected/check.json
  • fixtures/ts_repair_packet_boundary_constant_resolved/expected/CHANGELOG.md
  • fixtures/ts_repair_packet_boundary_constant_resolved/expected/check.json
  • fixtures/ts_repair_packet_boundary_constant_unresolved/expected/CHANGELOG.md
  • fixtures/ts_repair_packet_boundary_constant_unresolved/expected/check.json
  • fixtures/ts_repair_packet_boundary_literal_derived/expected/CHANGELOG.md
  • fixtures/ts_repair_packet_boundary_literal_derived/expected/check.json
  • fixtures/ts_repair_packet_boundary_literal_guarded/expected/CHANGELOG.md
  • fixtures/ts_repair_packet_boundary_literal_guarded/expected/check.json
  • fixtures/ts_repair_packet_boundary_unreachable/expected/CHANGELOG.md
  • fixtures/ts_repair_packet_boundary_unreachable/expected/check.json
  • fixtures/ts_repair_packet_complete/expected/CHANGELOG.md
  • fixtures/ts_repair_packet_complete/expected/check.json
  • fixtures/ts_repair_packet_wrong_family_oracle/expected/CHANGELOG.md
  • fixtures/ts_repair_packet_wrong_family_oracle/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/typescript_adversarial_hoc_wrapped_owner/expected/CHANGELOG.md
  • fixtures/typescript_adversarial_hoc_wrapped_owner/expected/check.json
  • fixtures/typescript_adversarial_mocked_barrel/expected/CHANGELOG.md
  • fixtures/typescript_adversarial_mocked_barrel/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_probe_facts/expected/CHANGELOG.md
  • fixtures/typescript_probe_facts/expected/check.json
  • fixtures/typescript_reexport_barrel_other_name/expected/CHANGELOG.md
  • fixtures/typescript_reexport_barrel_other_name/expected/check.json
  • fixtures/typescript_reexport_directory_star_barrel/expected/CHANGELOG.md
  • fixtures/typescript_reexport_directory_star_barrel/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/typescript_witness_dead_argument/expected/CHANGELOG.md
  • fixtures/typescript_witness_dead_argument/expected/check.json
  • fixtures/typescript_witness_dead_expected/expected/CHANGELOG.md
  • fixtures/typescript_witness_dead_expected/expected/check.json
  • fixtures/typescript_witness_local_shadow/expected/CHANGELOG.md
  • fixtures/typescript_witness_local_shadow/expected/check.json
  • fixtures/typescript_witness_nested_expression/expected/CHANGELOG.md
  • fixtures/typescript_witness_nested_expression/expected/check.json
  • fixtures/typescript_witness_receiver_qualified/expected/CHANGELOG.md
  • fixtures/typescript_witness_receiver_qualified/expected/check.json
  • schemas/ripr/check.schema.json
  • xtask/src/evidence_audit.rs
  • xtask/src/evidence_quality.rs
  • 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T03:05:31.139985Z f027d8c Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 4 potential issues.

Devin Review

Comment thread xtask/src/evidence_audit.rs Resolved
Comment thread xtask/src/evidence_audit.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f027d8c4b0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/ripr/src/cli/commands.rs Resolved

Copy link
Copy Markdown
Member Author

The "Rust-only feature lane" failure is this PR's. source_subject_gates_ledger_and_actionable_gaps_validation builds a Python-language fixture, and with lang-python off the validator rejects it as UnavailableLanguage("python") before the subject check runs. The next push makes the test feature-independent. That push also carries the fixes for the Codex P1/P2 and Devin findings.


Generated by Claude Code

Address review on #4709:

- ripr check JSON and repo-exposure JSON stamp the files they name in the
  analysis run; the gap ledger and xtask actionable-gaps writers copy those
  digests via derive_source_subject and never hash the workspace. Without a
  usable input stamp they write source_subject_unavailable, which the LSP
  reports as unverifiable_subject. Re-rendering an unstamped ledger through
  --records stays unstamped.
- One definition of the files a packet names (source_file, target_test,
  target_file, primary_anchor.file, related_test_or_observer as string,
  object or array), shared with xtask through a #[path] module so the
  writer and the LSP validator cannot drift.
- Absolute record paths resolve against an absolutized root.
- The limited scorecard fallback also carries the stamp disclosure.
- The LSP source_subject test uses a Rust fixture so it holds in the
  lang-rust-only lane.
- check.schema.json gains source_subject; 145 check.json goldens blessed;
  unchanged-after-attempt repo-exposure snapshots and their dependent
  verify/receipt digests refreshed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014WDSj54AyARNwy6oUuYXnx
…-2rk3d2-ledger-subject

# Conflicts:
#	CHANGELOG.md
#	fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/after.repo-exposure.json
#	fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-receipt.json
#	fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-verify.json
#	fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/before.repo-exposure.json
#	fixtures/mixed_rust_typescript_preview/expected/CHANGELOG.md
#	fixtures/python_adversarial_changed_sink_non_delta_operand/expected/CHANGELOG.md
#	fixtures/python_dynamic_route_registration_limit/expected/CHANGELOG.md
#	fixtures/python_local_callable_binding/expected/CHANGELOG.md
#	fixtures/python_mixed_language_no_cross_route/expected/CHANGELOG.md
#	fixtures/python_ranking_noise_control/expected/CHANGELOG.md
#	fixtures/python_same_stem_sibling_owner_not_related/expected/CHANGELOG.md
#	fixtures/python_src_layout_package_import/expected/CHANGELOG.md
#	fixtures/python_test_placement_verify/expected/CHANGELOG.md
#	fixtures/python_unittest_basic/expected/CHANGELOG.md
#	fixtures/python_unittest_oracle_shapes/expected/CHANGELOG.md
#	fixtures/python_unrelated_test_mention/expected/CHANGELOG.md
#	fixtures/ts_boundary_named_constant_test/expected/CHANGELOG.md
#	fixtures/ts_cross_language_bridge_limit/expected/CHANGELOG.md
#	fixtures/ts_cross_package_test/expected/CHANGELOG.md
#	fixtures/ts_domock_relation_gate/expected/CHANGELOG.md
#	fixtures/ts_dynamic_oracle/expected/CHANGELOG.md
#	fixtures/ts_heuristic_relation/expected/CHANGELOG.md
#	fixtures/ts_mock_forms_owner_module/expected/CHANGELOG.md
#	fixtures/ts_no_verify_command/expected/CHANGELOG.md
#	fixtures/ts_parse_depth_budget/expected/CHANGELOG.md
#	fixtures/ts_pkg_discovery_no_package/expected/CHANGELOG.md
#	fixtures/ts_predicate_boundary_optional_chaining/expected/CHANGELOG.md
#	fixtures/ts_predicate_boundary_overcredit/expected/CHANGELOG.md
#	fixtures/ts_repair_packet_boundary_constant_first/expected/CHANGELOG.md
#	fixtures/ts_repair_packet_boundary_constant_resolved/expected/CHANGELOG.md
#	fixtures/ts_repair_packet_boundary_constant_unresolved/expected/CHANGELOG.md
#	fixtures/ts_repair_packet_boundary_literal_derived/expected/CHANGELOG.md
#	fixtures/ts_repair_packet_boundary_literal_guarded/expected/CHANGELOG.md
#	fixtures/ts_repair_packet_boundary_unreachable/expected/CHANGELOG.md
#	fixtures/ts_repair_packet_complete/expected/CHANGELOG.md
#	fixtures/ts_repair_packet_wrong_family_oracle/expected/CHANGELOG.md
#	fixtures/typescript_adversarial_hoc_wrapped_owner/expected/CHANGELOG.md
#	fixtures/typescript_adversarial_mocked_barrel/expected/CHANGELOG.md
#	fixtures/typescript_adversarial_owner_identity_after_insertion/expected/CHANGELOG.md
#	fixtures/typescript_adversarial_owner_module_mock/expected/CHANGELOG.md
#	fixtures/typescript_adversarial_render_unobserved_sink/expected/CHANGELOG.md
#	fixtures/typescript_adversarial_same_method_other_class/expected/CHANGELOG.md
#	fixtures/typescript_adversarial_token_substring/expected/CHANGELOG.md
#	fixtures/typescript_awaited_promise_reject/expected/CHANGELOG.md
#	fixtures/typescript_boundary_gap/expected/CHANGELOG.md
#	fixtures/typescript_broad_tothrow/expected/CHANGELOG.md
#	fixtures/typescript_commonjs_require/expected/CHANGELOG.md
#	fixtures/typescript_dynamic_assertion_unresolved/expected/CHANGELOG.md
#	fixtures/typescript_effect_probe_shapes/expected/CHANGELOG.md
#	fixtures/typescript_jest_vitest_assertion_facts/expected/CHANGELOG.md
#	fixtures/typescript_limitation_custom_matcher/expected/CHANGELOG.md
#	fixtures/typescript_mocked_module_limit/expected/CHANGELOG.md
#	fixtures/typescript_monorepo_package_local/expected/CHANGELOG.md
#	fixtures/typescript_negated_t_oracle/expected/CHANGELOG.md
#	fixtures/typescript_oracle_helper_gated/expected/CHANGELOG.md
#	fixtures/typescript_owner_file_match/expected/CHANGELOG.md
#	fixtures/typescript_owner_kinds/expected/CHANGELOG.md
#	fixtures/typescript_probe_facts/expected/CHANGELOG.md
#	fixtures/typescript_reexport_barrel_other_name/expected/CHANGELOG.md
#	fixtures/typescript_reexport_no_false_credit/expected/CHANGELOG.md
#	fixtures/typescript_related_test_name_proximity/expected/CHANGELOG.md
#	fixtures/typescript_return_value_shape/expected/CHANGELOG.md
#	fixtures/typescript_static_limit_taxonomy/expected/CHANGELOG.md
#	fixtures/typescript_strict_actionability/expected/CHANGELOG.md
#	fixtures/typescript_strong_oracle/expected/CHANGELOG.md
#	fixtures/typescript_t_truthy_oracle/expected/CHANGELOG.md
#	fixtures/typescript_t_unknown_method_no_oracle/expected/CHANGELOG.md
#	fixtures/typescript_t_wrong_receiver_no_oracle/expected/CHANGELOG.md
#	fixtures/typescript_tothrow_exact_oracle/expected/CHANGELOG.md
#	fixtures/typescript_tsx_preview/expected/CHANGELOG.md
#	fixtures/typescript_witness_dead_argument/expected/CHANGELOG.md
#	fixtures/typescript_witness_dead_expected/expected/CHANGELOG.md
#	fixtures/typescript_witness_local_shadow/expected/CHANGELOG.md
#	fixtures/typescript_witness_nested_expression/expected/CHANGELOG.md
#	fixtures/typescript_witness_receiver_qualified/expected/CHANGELOG.md
… main

Main reworded the related-test recommendation (#4520) and this branch adds
source_subject to repo-exposure JSON, so the portable snapshots, their
content_sha256, and the file digests agent-verify and agent-receipt pin
are recomputed from production output.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014WDSj54AyARNwy6oUuYXnx
…-2rk3d2-ledger-subject

# Conflicts:
#	CHANGELOG.md
…-2rk3d2-ledger-subject

# Conflicts:
#	CHANGELOG.md
#	fixtures/python_adversarial_changed_sink_non_delta_operand/expected/CHANGELOG.md
#	fixtures/ts_cross_language_bridge_limit/expected/CHANGELOG.md
#	fixtures/ts_cross_package_test/expected/CHANGELOG.md
#	fixtures/ts_domock_relation_gate/expected/CHANGELOG.md
#	fixtures/ts_dynamic_oracle/expected/CHANGELOG.md
#	fixtures/ts_mock_forms_owner_module/expected/CHANGELOG.md
#	fixtures/ts_no_verify_command/expected/CHANGELOG.md
#	fixtures/ts_predicate_boundary_overcredit/expected/CHANGELOG.md
#	fixtures/ts_repair_packet_boundary_constant_resolved/expected/CHANGELOG.md
#	fixtures/ts_repair_packet_boundary_constant_unresolved/expected/CHANGELOG.md
#	fixtures/ts_repair_packet_boundary_literal_derived/expected/CHANGELOG.md
#	fixtures/ts_repair_packet_boundary_literal_guarded/expected/CHANGELOG.md
#	fixtures/ts_repair_packet_boundary_unreachable/expected/CHANGELOG.md
#	fixtures/ts_repair_packet_complete/expected/CHANGELOG.md
#	fixtures/typescript_adversarial_hoc_wrapped_owner/expected/CHANGELOG.md
#	fixtures/typescript_adversarial_mocked_barrel/expected/CHANGELOG.md
#	fixtures/typescript_adversarial_owner_module_mock/expected/CHANGELOG.md
#	fixtures/typescript_adversarial_render_unobserved_sink/expected/CHANGELOG.md
#	fixtures/typescript_adversarial_same_method_other_class/expected/CHANGELOG.md
#	fixtures/typescript_adversarial_token_substring/expected/CHANGELOG.md
#	fixtures/typescript_boundary_gap/expected/CHANGELOG.md
#	fixtures/typescript_broad_tothrow/expected/CHANGELOG.md
#	fixtures/typescript_commonjs_require/expected/CHANGELOG.md
#	fixtures/typescript_dynamic_assertion_unresolved/expected/CHANGELOG.md
#	fixtures/typescript_limitation_custom_matcher/expected/CHANGELOG.md
#	fixtures/typescript_mocked_module_limit/expected/CHANGELOG.md
#	fixtures/typescript_monorepo_package_local/expected/CHANGELOG.md
#	fixtures/typescript_negated_t_oracle/expected/CHANGELOG.md
#	fixtures/typescript_oracle_helper_gated/expected/CHANGELOG.md
#	fixtures/typescript_owner_file_match/expected/CHANGELOG.md
#	fixtures/typescript_reexport_barrel_other_name/expected/CHANGELOG.md
#	fixtures/typescript_reexport_no_false_credit/expected/CHANGELOG.md
#	fixtures/typescript_related_test_name_proximity/expected/CHANGELOG.md
#	fixtures/typescript_return_value_shape/expected/CHANGELOG.md
#	fixtures/typescript_strong_oracle/expected/CHANGELOG.md
#	fixtures/typescript_t_truthy_oracle/expected/CHANGELOG.md
#	fixtures/typescript_t_unknown_method_no_oracle/expected/CHANGELOG.md
#	fixtures/typescript_t_wrong_receiver_no_oracle/expected/CHANGELOG.md
#	fixtures/typescript_tothrow_exact_oracle/expected/CHANGELOG.md
#	fixtures/typescript_tsx_preview/expected/CHANGELOG.md
#	fixtures/typescript_witness_dead_argument/expected/CHANGELOG.md
#	fixtures/typescript_witness_dead_expected/expected/CHANGELOG.md
#	fixtures/typescript_witness_local_shadow/expected/CHANGELOG.md
#	fixtures/typescript_witness_nested_expression/expected/CHANGELOG.md
#	fixtures/typescript_witness_receiver_qualified/expected/CHANGELOG.md
… the stale-subject test)

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

@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 self-review of 7e9e9b4. No blocking findings.

Design (round 2).

  • Producers (ripr check JSON and repo-exposure JSON) stamp source_subject when they render. Repo-exposure computes it before the two-pass writer, so content_sha256 covers it.
  • The ledger, first-pr and xtask actionable-gaps writers copy the input stamp and never hash the workspace. A missing, malformed, unsupported or incomplete stamp becomes a typed source_subject_unavailable.
  • The LSP re-hashes the named files. A mismatch withholds the gap as stale_subject, and a stamp it cannot use withholds it as unverifiable_subject. Both come with the regeneration command.
  • One path extractor (actionable_packet_named_paths) is shared with xtask through #[path], so the two cannot drift.

Oracle grip. Negative experiments are recorded in the PR body: re-hashing the workspace, hashing when the stamp is absent, a narrowed extractor and a raw strip_prefix each fail named tests.

Latest delta. It is a main merge. It resolves a lsp/tests.rs conflict by keeping both #4588's never_substitutes_another_gaps_packet test and this PR's discloses_stale_actionable_gaps_subject test. Local runs on the merged tree:

  • lsp:: + subject + ledger: 921 passed;
  • cli_smoke first_useful_action/unchanged/assistant: 10 passed;
  • goldens check: exit 0;
  • clippy -p ripr -p xtask --all-targets -D warnings: clean.

Hosted CI on this head. Rust gates, the Rust-only feature lane, ub-review, cargo-deny and dependency-review all passed.

Missing reviews, not clean. CodeRabbit skipped the PR (312 files, over its limit), Gemini is out of quota and droid-review is queued.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit c4fe01f into main Sep 29, 2026
22 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-2rk3d2-ledger-subject branch September 29, 2026 07:21
EffortlessSteven pushed a commit that referenced this pull request Sep 29, 2026
#4709 made ripr lsp withhold a gap ledger whose source_subject is missing
or stale. The smoke wrote an unstamped ledger and then edited pricing.ts,
so the preview diagnostic never appeared. Write the ledger after the save,
stamped with the digests of the files its record names.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014WDSj54AyARNwy6oUuYXnx
EffortlessSteven added a commit that referenced this pull request Sep 29, 2026
… (#4903)

* test(vscode): stamp the preview gap smoke ledger after the save (#4902)

#4709 made ripr lsp withhold a gap ledger whose source_subject is missing
or stale. The smoke wrote an unstamped ledger and then edited pricing.ts,
so the preview diagnostic never appeared. Write the ledger after the save,
stamped with the digests of the files its record names.

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

* test(vscode): derive the smoke ledger stamp from the records it names (#4902 review)

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
EffortlessSteven added a commit that referenced this pull request Oct 1, 2026
…ch changes (#4896) (#4904)

* fix(lsp): refresh diagnostics when the gap ledger or checked-out branch changes (#4896)

Watch the root gap decision ledger and root .git/HEAD (root-anchored RelativePattern
when the client supports it) and schedule one watched_input refresh that bypasses
input-identity dedup, without reloading config or invalidating the workspace graph.

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

* fix(lsp): re-anchor diagnostics-input watchers on root transitions (#4896)

Register the root gap ledger and root .git/HEAD watchers under their own
registration and resync it after every workspace-root transition, so a
root switch unregisters the old-root watchers and anchors new ones.
Without relativePatternSupport, register absolute string globs instead of
bare relative strings, skipping roots with glob metacharacters. Disclose
watched_files_relative_pattern_support in the client-feature status
projection and trace the new tests under RIPR-SPEC-0143.

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

* test(vscode): stamp the preview gap smoke ledger after the save (#4902)

#4709 made ripr lsp withhold a gap ledger whose source_subject is missing
or stale. The smoke wrote an unstamped ledger and then edited pricing.ts,
so the preview diagnostic never appeared. Write the ledger after the save,
stamped with the digests of the files its record names.

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

* test(vscode): derive the smoke ledger stamp from the records it names (#4902 review)

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

---------

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.

fix(lsp): gap-ledger diagnostics carry no subject identity, so a branch switch republishes the old branch's gaps

2 participants