Repository navigation
fix(check): lead a missing --base with a spelling check when no remote exists - #8519
Conversation
…e exists Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018e1icNGoyApXPrHyi95UVv
|
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 49 minutes. View limit details
Comment |
|
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 one verification check before upstream.
Verification questions
- Confirm author's claim 'the smoke/hostile tests match old substrings' is asserted but only one in-repo test (no_remote_paths) is visible in the diff; smoke/hostile hosts are not part of this PR. Verify in CI those older substring checks still pass to avoid silent regression.
Refuted
- Spelling hint leads
--base <bad-ref>in a no-remote repo away fromgit remote add; add-remote wording is preserved as a conditional fallback. - Allocation-failure / native UB concern for the new format! call.; refuted because: This is a pure string format! with two
&str/owned-ref pieces on the no-remote branch; no native/unsafe path touched and allocation failure is not raised by the diff, seeded thread, or any candidate. - The new spelling hint could send users to git branch --list even when the ref is expected to live on a remote (typo of an existing remote branch).; refuted because: The reworded message places the spelling sentence first but preserves the add-remote/fetch instruction in the same paragraph, so the remote path is still suggested.
- The spelling hint duplicates logic that should live in a shared helper used across missing_ref_repair arms.; refuted because: Only the Some([]) arm needs the spelling hint; single-remote and multi-remote arms give concrete fetch/add commands that already disambiguate the ref. Extracting a helper would have a single caller and would not reduce duplication.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- PR body says lib test compile was OOM-killed locally; hosted CI is the proof for the new assertion.
CI Step 26 Golden Contract Diagnostic: Inherited Golden Drift on \main\In run 39054938926, all code checks, strict Clippy, and 17,038 unit/integration tests passed. Step 26 \Golden output contracts\ failed on 3 fixtures: \\ ext Root Cause: This failure is pre-existing on \main\ and unrelated to the spelling check changes in this PR. A small golden re-bless PR on \main\ will clear this gate. |
CI Diagnosis (Run 39054938926)
|
|
Convergence pass: bouncing this PR to rerun the required gate on a repaired merge ref. Why: The failing Evidence from the previous run (already on record):
Closing and reopening, then Draft -> Ready, per the stale-merge-ref refresh route. |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
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 reviewer attention before upstream: findings remain.
Confirmed findings
- Author reported local lib test compile OOM-killed; convergence run 39054938926 reports all 17,038 tests passing including the modified assertion. No local repro path on this lane.
Verification questions
- Confirm old substrings used by smoke/hostile tests (
No git remote is configured,git remote add) remain present in the new string. - Confirm only one in-repo test (no_remote_paths) is touched; PR claims smoke/hostile hosts also match old substrings but neither is in this diff.
- Confirm modified assertion adds two substring checks plus the old
git remote addcheck, all positive. No negative assertion that the spelling hint is absent when a remote exists. - Confirm author's local OOM claim is closed by hosted CI passing run 39054938926 (17,038 tests PASS including the modified
missing_ref_repair_names_the_add_remote_step_when_no_remote_exists); however the smoke/hostile substring claim remains unverified in this PR's diff scope and should be re-confirmed in CI output.
Refuted
- The new spell-check message is a pure string format! with a single owned-ref insert; no native/unsafe surface.
- Spelling hint sends users to git branch --list even when ref is expected to live on a remote (typo of an existing remote branch).; refuted because: The reworded paragraph places the spelling sentence first but keeps the conditional 'if it lives on a remote, add that remote ... then fetch it' sentence; remote-path guidance still appears in the same output.
- spelling hint and add-remote step should be split into two messages or extracted into a shared helper; refuted because: the no-remote branch is the single consumer and the conditional add-remote instruction must remain co-located with the spelling nudge so the remote path is still surfaced; extraction would be over-engineering for one call site.
- Allocation-failure / native UB concern for the new format! call; refuted because: the change is a single format! expansion of two
&strpieces on the no-remote branch; no unsafe, no allocation-failure path introduced, and the seeded thread plus prior review summary already refuted this on identical grounds.
Parked follow-ups
- Opposition parked follow-up: PR body claims 'the smoke/hostile tests match old substrings are kept' but no smoke/hostile fixture lives in this PR's diff. If a downstream hostile harness expects the literal 'No git remote is configured: add the remote hosting' prefix, the punctuation change at line 1338 silently mutates the matched substring.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Requested by Steven · project thread
Before:
ripr check --base bad-refin a repo with no remote said only "No git remote is configured: add the remote hostingbad-ref... then fetch it", sending a typo straight togit remote add.After: the same error first says to check the spelling of
bad-ref(and points atgit branch --list), then keeps the add-remote step for refs that live on a remote.How: one message change in
missing_ref_repair(crates/ripr/src/analysis/diff/load.rs); the existing no-remote unit test now also asserts the spelling hint. The old substrings the smoke/hostile tests match are kept. Found by a new-user walkthrough ofcheck/doctor.Verified:
cargo xtask precommitpolicy checks pass. Not verified locally: the lib test compile was OOM-killed on the shared box, so hosted CI is the proof formissing_ref_repair.Governing issue or accepted claim: #7653 — partial: this lands the no-remote advice arm only (spelling-first message with add-remote fallback kept); the with-remote beyond-history ancestor arm stays open on that issue.
Acceptance delta (one sentence): In a repository with no remote, the
ripr check --base <unresolvable-ref>error now leads with a spelling check naming the ref and still gives the add-remote step, asserted by the extendedmissing_ref_repair_names_the_add_remote_step_when_no_remote_existsunit test.Generated by Claude Code