Skip to content

fix(engine): a checkout looks up whatever its directory is called - #283

Merged
sweepies merged 1 commit into
mainfrom
fix/local-lookup-name
Nov 12, 2026
Merged

sweepies merged 1 commit into
mainfrom
fix/local-lookup-name

Conversation

@sweepies

@sweepies sweepies commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

patchula lookup in a checkout whose directory name is not a valid repository name (such as count-patchula@t3-05262923) failed with "invalid repository identity": local_name used the directory name as the identity, and discover validates it like a GitHub name.

  • local_name keeps local/<directory name> whenever the name is a valid repository name, byte-identical to before. Otherwise it is local/<SHA-256 of the name>, which always validates and is the same on every run.
  • That identity is only a cache key (lookup hints, the checkout scan cache, catalog controls, last-run), an override file name and report text; a local run is dry-run only and never builds an API path from it.
  • validate_repo's owner/name rule moved into repo_part, unchanged.

Test: a_directory_named_anything_is_looked_up looks up count patchula@t3-üñïcode (an @, a space and unicode) and count-patchula, pinning both report identities. Docs: guide/how-it-works.mdx, "Working tree or GitHub".

Found while measuring for the performance work; no report or request bytes change for a validly named checkout.

View guided diff Turn on auto-fix

local_name fed the directory name to validate_repo, so a checkout in a
directory like count-patchula@t3-05262923 failed discovery with
"invalid repository identity". The local identity now reports
local/<name> when the name is a valid repository name — unchanged, so
report JSON and cache keys for existing checkouts are byte-identical —
and local/<sha256 of the name> otherwise, which validates and stays
stable on every run.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
count-patchula 4beae2e Commit Preview URL

Branch Preview URL
Nov 12 2026, 07:55 PM

@sweepies
sweepies merged commit ddcea69 into main Nov 12, 2026
13 checks passed
@sweepies
sweepies deleted the fix/local-lookup-name branch November 12, 2026 20:03
@sweepies-ops sweepies-ops Bot mentioned this pull request Nov 12, 2026
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.

1 participant