Skip to content

Pin baseline fallback identity as a host-independent stored-string contract (#9666) - #9790

Merged
EffortlessSteven merged 2 commits into
mainfrom
claude/9666-baseline-keys
Oct 22, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
claude/9666-baseline-keys

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

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: n/a
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #9666 (follow-up to #9504 / #9622); follow-up #9791
Acceptance delta (one sentence): The baseline fallback key's compatibility decision is made, documented at a single path-normalization owner shared with the gate, and pinned by tests, with stored strings unchanged.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/9666-baseline-keys
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): n/a
Accepted winner and losing candidate disposition (when decided): n/a

Scope

  • No stored-string behavior change.
  • Why not path_identity_key: it is host-dependent (\ rewritten only on Windows; ASCII case folded on Windows/macOS). A committed baseline must key identically on every host; migrating would stop Windows-authored baselines matching on Linux. Any future change needs a versioned key plus compat read.
  • Tests: fallback_identity_is_a_host_independent_stored_string (baseline.rs): the backslash assertion is the Linux discriminator (the host key leaves \ alone there); the case assertion guards Windows/macOS. gate_and_baseline_fallback_identities_normalize_paths_identically (gate/tests.rs): cross-owner parity for \ and ./ spellings.
  • Not done: config/model.rs, python.rs, typescript.rs, app/test_stub.rs, edit_cage, normalize_scope_path/normalize_root_for_comparison rewrites; tracked in Decide and migrate or document ad hoc backslash-to-slash path rewrites outside the LSP scope #9791.

Scope Classification

  • One architectural seam
  • Other:

Production delta: one shared helper; two call sites route through it; no output change.

Evidence/support delta: two tests above.

Single acceptance criterion: baseline and gate fallback identities normalize paths identically and the contract is documented.

Non-goals: migrating stored keys; the ad hoc rewrites in #9791.

Proof

cargo xtask precommit   # exit 0
cargo test -p ripr --lib fallback_identit   # 5 passed

CI Economics

No new required-gate step; no added CI time (two small unit tests).

https://claude.ai/code/session_01Ukjh8o9wyxm7PSKcCNNX6Q


Generated by Claude Code

…ntract (#9666)

Consolidate three duplicated path:line:static_class builders into one
documented owner and record why it is not path_identity_key.

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

Copy link
Copy Markdown

Warning

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

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

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

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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

Next included review available in 3 minutes.

Check out review usage here.

View limit details

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

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 09e496d9-a1ba-42fc-85d5-a692a791d71a
📥 Commits

Reviewing files that changed from the base of the PR and between dcf08f9 and 6b96c66.

📒 Files selected for processing: 6
  • changelog.d/9666-baseline-key-contract.md
  • crates/ripr/src/output/baseline.rs
  • crates/ripr/src/output/baseline_delta.rs
  • crates/ripr/src/output/baseline_update.rs
  • crates/ripr/src/output/gate.rs
  • crates/ripr/src/output/gate/tests.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the new test proves the normalization/case contract for the canonical owner but not delegation parity for delta and update.
  • Confirm the new test does not prove the three migrated output paths retain their previous fallback behavior.

Refuted

  • Deduplicating the builders could alter baseline matching semantics.; refuted because: The central function is exactly the common implementation previously duplicated in baseline_delta.rs and baseline_update.rs; the existing baseline.rs builder was likewise moved without semantic changes.
  • Missing evidence implies this lane lacked all usable proof.; refuted because: The changed code and new assertions permit a bounded oracle review, although the scheduled cargo-test receipt remains unavailable for execution confirmation.
  • The PR summary overstates a behavior change by claiming host independence is newly implemented.; refuted because: The patch preserves existing stored-string behavior while documenting and testing it; it deliberately avoids replacing it with host-dependent path_identity_key.
  • Moving callers to the helper changes generated baseline identities.; refuted because: The retained implementation still requires path, line, and static_class and applies the same replace('\', "/") plus trim_start_matches("./") formatting in the same order; no fallback construction path changed.
  • Host-dependent path_identity_key was accidentally substituted and could change case or separator behavior.; refuted because: The owner retains replace('\', "/"), trim_start_matches("./"), no case folding, and does not call path_identity_key; this matches both removed implementations.

Evidence gaps

  • The always-on cargo-test receipt was still pending in the supplied packet, while ripr failed with exit code 2.
  • PR proof is asserted but no completed cargo-test receipt is present in the supplied evidence.
  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Review of record, head 6b96c66

Angles: (1) behavior and contract of the dedup against #9666, (2) delta review of the repair by me.

Findings and resolutions:

Not reviewed: CodeRabbit and Gemini hit their quotas, so those providers are missing, not clean. The github-actions bot review asked for delegation parity, which the new gate-versus-baseline test now provides. Required gate cost: no new step.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 22, 2026 21:21
@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!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the new tests directly exercise the canonical stored-string helper and compare gate parity, but do not invoke the create, delta, and update output routes end to end.
  • Confirm path parity tests cover slash, backslash, and leading ./ spellings, but do not directly assert stored fixtures or delta/update output behavior.

Refuted

  • The gate should use the same complete fallback builder, including baseline's rejection of a missing static class.; refuted because: This would alter established gate behavior. The patch correctly shares only path normalization and retains fallback_identity_for's gate-only "unknown" static class.
  • Host-independence assertions could pass on every host because path_identity_key might always behave this way.; refuted because: The test directly invokes fallback_identity, not path_identity_key, and asserts canonical output independent of the test host; case preservation and backslash inputs are explicit.
  • Centralizing the fallback builders could alter stored baseline matching semantics.; refuted because: The retained helper uses the same replacement and trimming operations as the removed implementations, and the new parity test exercises representative path spellings.
  • The principal stored-key behavior lacks direct routing tests for delta and update.; refuted because: For these two changed paths, delegation is explicit in production code rather than reconstructed only through indirect tests; the removed local functions were exact duplicates. The seeded review also confirms this repair.

Parked follow-ups

  • Repository-wide sibling-path completeness remains explicitly out of scope; remaining ad hoc backslash rewrites are tracked separately.

Evidence gaps

  • The scheduled cargo-test receipt is execution evidence for the changed Rust surface; ripr exited 2, so the lane did not obtain an independent successful test result.
  • Model proof intent was rejected by deterministic validation.

@EffortlessSteven
EffortlessSteven merged commit 36605a9 into main Oct 22, 2026
49 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/9666-baseline-keys branch October 22, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants