Repository navigation
Pin baseline fallback identity as a host-independent stored-string contract (#9666) - #9790
Conversation
…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
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
Comment |
There was a problem hiding this comment.
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.
…9666) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ukjh8o9wyxm7PSKcCNNX6Q
|
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 |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
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.
Summary
path:line:static_class) stays a separate, documented stored-string contract rather than migrating tooutput::path::path_identity_key. The decision half of Baseline keys: decide path-identity compatibility with output::path::path_identity_key #9666 is met by this PR; this PR does not close it (no closing keyword). The remaining ad hoc\rewrites are tracked in Decide and migrate or document ad hoc backslash-to-slash path rewrites outside the LSP scope #9791.output::baseline::normalize_fallback_path, used byfallback_identity(create/delta/update, previously three copies) and by the gate'sfallback_identity_for(which keeps itsunknownstatic-class behavior); the stale comment is fixed.Swarm / Source Boundary
ripr-swarmSource-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
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.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.normalize_scope_path/normalize_root_for_comparisonrewrites; tracked in Decide and migrate or document ad hoc backslash-to-slash path rewrites outside the LSP scope #9791.Scope Classification
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
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