Observed production failure
Mind's real SWE-bench ingest-only production path delegates repository preparation to Codefly PrepareRepositoryCheckout. With the default shared Codefly-owned cache, a valid Git checkout can exist without an origin remote. Codefly accepts it as a repository at rev-parse --git-dir, then fails permanently at:
prepare repository checkout capability: resolve repository origin:
git remote get-url origin: error: No such remote 'origin'
This currently makes Mind TestSWEBenchIngestOnlyPerformanceSmoke fail before checkout/ingestion for django__django-11099. It reproduces unchanged on Mind main efadc4e0 with Codefly CLI v0.1.80.
Generic behavior needed
PrepareRepositoryCheckout owns this named cache projection and already repairs interrupted non-repositories. It should also recover a structurally valid owned cache whose origin is absent, using the typed request's authoritative RepositoryURL, then continue the normal fetch/revision/clean flow.
It must still fail closed when an existing origin points somewhere different; do not silently retarget a mismatched source. Cache/worktree safety and cancellation preservation must remain intact.
Acceptance
- A real repository cache with no
origin is repaired through the production typed capability and resolves the requested revision.
- A cache with a mismatched existing
origin still fails.
- Retry remains idempotent and leaves a clean checkout.
- No workaround or Git command is added to Mind.
Observed production failure
Mind's real SWE-bench ingest-only production path delegates repository preparation to Codefly
PrepareRepositoryCheckout. With the default shared Codefly-owned cache, a valid Git checkout can exist without anoriginremote. Codefly accepts it as a repository atrev-parse --git-dir, then fails permanently at:This currently makes Mind
TestSWEBenchIngestOnlyPerformanceSmokefail before checkout/ingestion fordjango__django-11099. It reproduces unchanged on Mind mainefadc4e0with Codefly CLIv0.1.80.Generic behavior needed
PrepareRepositoryCheckoutowns this named cache projection and already repairs interrupted non-repositories. It should also recover a structurally valid owned cache whoseoriginis absent, using the typed request's authoritativeRepositoryURL, then continue the normal fetch/revision/clean flow.It must still fail closed when an existing
originpoints somewhere different; do not silently retarget a mismatched source. Cache/worktree safety and cancellation preservation must remain intact.Acceptance
originis repaired through the production typed capability and resolves the requested revision.originstill fails.