Repository navigation
fix(git): resolve push remote names before literal URLs - #4666
Open
rudycelekli wants to merge 1 commit into
Open
rudycelekli wants to merge 1 commit into
rudycelekli wants to merge 1 commit into
Conversation
worktrunk-bot
approved these changes
Nov 2, 2026
Owner
|
Thanks — the bug is real. The fix can be smaller: if
|
max-sixty
added a commit
to max-sixty/tend
that referenced
this pull request
Nov 21, 2026
Tend's review approved any PR with no defect. Submit said "If there are no issues, approve with an empty body — silence means correct", and a `code-review` finding needs a file, line and failure scenario, so a correct change that wasn't worth its cost got an `APPROVE` unless another check, such as the duplication check, turned its cost into a finding. A repository overlay asking for a `COMMENT` on such changes didn't override that default: worktrunk's reviews opened its proportionality rule and approved anyway (max-sixty/worktrunk#4664, max-sixty/worktrunk#4665, max-sixty/worktrunk#4666, max-sixty/worktrunk#4670, max-sixty/worktrunk#4689, max-sixty/worktrunk#4694). Submit now says an `APPROVE` tells the maintainer the whole PR is worth merging. Before one, including after a trivial increment, the session says who loses what if the PR never merges and how they come to need it, what it adds that later changes must keep working, and the cheapest other way to get the benefit. It approves when the benefit pays for what the PR adds and nothing materially cheaper exists; otherwise it posts a `COMMENT` naming the cost or the cheaper way. On a self-authored PR, where the review stays silent instead of approving, the same weighing runs before that silence, so a correct bot PR that isn't worth merging is raised as a concern, which Review's "carry its weight" bullet used to ask for. That bullet goes, since Submit now owns the judgment. A `COMMENT` that holds the verdict names its reason once, as a merge-readiness hold already did, so a later push doesn't restate it, and a re-targeted review that empties takes its verdict from Submit instead of approving. ## Evidence Eleven trajectory cases (`evals/cases/review-worth-*`) replay real worktrunk PRs at their reviewed heads. On 20 Nov, with main (including #1646 and #1712) merged in, this PR's review skill ran against main's, three attempts per case per arm. On the four PRs that independent reviewers judged not worth merging as written (max-sixty/worktrunk#4664, max-sixty/worktrunk#4665, max-sixty/worktrunk#4666, max-sixty/worktrunk#4694), these attempts held the verdict and named the cost or a cheaper route: | Executor | main | This PR | | --- | --- | --- | | Codex gpt-6.1-sol | 6 of 10 (2 attempts failed on model capacity) | 10 of 12 | | Claude Opus 5.5 | 2 of 12 | 7 of 12 | - Main's six Codex holds are on max-sixty/worktrunk#4666 and max-sixty/worktrunk#4694, which the old text approved in all three attempts on the 5 Nov base. Each review of max-sixty/worktrunk#4666 names the second cache as a copy of the existing cached `git remote get-url` lookup, the kind of copy #1646 widened the duplication check to flag; the reviews of max-sixty/worktrunk#4694 name the hand-written URL parsing as more than the IPv6 fix needs. This PR also holds max-sixty/worktrunk#4665 and max-sixty/worktrunk#4664 (2 of 3 each), which main's text approved in every attempt that completed. - On the PRs that should be approved (max-sixty/worktrunk#4334, max-sixty/worktrunk#4469, max-sixty/worktrunk#4668, max-sixty/worktrunk#4669, max-sixty/worktrunk#4680), Codex approved in all 15 attempts on each arm. Claude, run on this PR's text only, held max-sixty/worktrunk#4668 in 3 of 3, citing a `git rev-parse` per noted directory on every pane refresh and a narrower fix, and held max-sixty/worktrunk#4669 (2 of 3) and max-sixty/worktrunk#4680 (1 of 3) over defects. - On the 5 Nov base, not re-run: a standing hold that should survive a test-only push stayed silent 6/6, a hold on a per-render cost stayed held 6/6, and `review-landing-continuation` passed 3/3 on Codex. ## Costs A trivial follow-up push now gets a whole-PR read. > _This was written by Claude Code on behalf of max-sixty_
This was referenced Nov 23, 2026
max-sixty
pushed a commit
that referenced
this pull request
Nov 23, 2026
…mote (#4900) `primary_remote()`'s fallback scanned `remote.<name>.url` keys itself and accepted the first one even when its only value was empty. With `remote.blank.url = ""` listed before `origin`, it chose `blank`, and `primary_remote_url()` then returned `None` because `remote_url()` filters empty values. The fallback still stops at the first matching config entry and still propagates an `all_config()` read error, but it now uses `remote_url_entry()`, the non-empty URL predicate it shares with `all_remote_urls()`. The new test `test_primary_remote_skips_remote_with_empty_url` returned `blank` before the change and returns `origin` after it. This is the smaller gap from #4899. The main question there, whether to read the first `url` of a multi-URL remote and migrate `project_identifier`, still needs a maintainer decision, and this PR leaves it alone. The change is in a different hunk of `remotes.rs` from #4666. Refs #4899 — automated triage --------- Co-authored-by: worktrunk-bot <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
branch.<name>.pushRemoteaccepts both remote names and literal destinations. The prefix heuristic treats a configured remote namedgit@mirroras a URL, but treats an SCP URL with a different SSH user as a remote name. CI lookup can consequently use the wrong repository or fall back to the primary remote.Ask Git to resolve a named remote in the repository's discovery context before preserving an unresolved literal. Use the structured missing-remote exit status; other Git failures remain unresolved. Cache these results separately from fetch lookups so a cached missing named remote cannot erase a literal destination. This retains the existing logical forge URL behavior, including demos that redirect push transport with
pushInsteadOf.Validation: Rust 1.98.0 integration tests for the complete
default_branchmodule: 46 passed. Coverage includes custom SSH users,git@mirrorand slash-named remotes, file/local paths, linked-worktree-only remote configuration, cached fetch misses and successful fetch-cache reuse, malformed Git configuration, and the existing logical forge URL with local push transport. Four of the six remote/literal cases fail against the original implementation.cargo fmt --allandgit diff --checkpass.The full project pre-merge hook did not pass locally:
pre-commitandcargo-instaare unavailable. The macOS SDK14.4 build also emits a nonfatalrust-objcopypackaging warning about its bundledlibLLVM.dylib. Hosted validation is pending. No full-platform or live forge acceptance is claimed.