Repository navigation
fix(eliza-harness): resolve shared alpha cache dirs via XDG_CACHE_HOME - #2405
Open
NubsCarson wants to merge 1 commit into
Open
NubsCarson wants to merge 1 commit into
NubsCarson wants to merge 1 commit into
Conversation
Resolve shared eliza checkout, pack, and QA cache paths via trimmed absolute XDG_CACHE_HOME with fallback to ~/.cache when unset, blank, or relative, while keeping explicit ALPHA_ELIZA_DIR, ALPHA_ELIZA_PACK_DIR, and ALPHA_QA_STATE overrides highest priority. Also add XDG_CACHE_HOME to turbo.json globalPassThroughEnv so Turbo tasks on remote Boat sandboxes see the persistent depot cache home instead of falling back to ephemeral ~/.cache, and add unit tests covering override and fallback behavior.
NubsCarson
requested a deployment
to
turbo-cache-read
December 4, 2026 20:43 — with
GitHub Actions
Queued
NubsCarson
requested a deployment
to
turbo-cache-read
December 4, 2026 20:43 — with
GitHub Actions
In progress
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
NubsCarson
requested a deployment
to
turbo-cache-read
December 4, 2026 21:00 — with
GitHub Actions
Pending
NubsCarson
requested a deployment
to
turbo-cache-read
December 4, 2026 21:00 — with
GitHub Actions
Pending
NubsCarson
requested a deployment
to
turbo-cache-read
December 4, 2026 21:00 — with
GitHub Actions
Pending
NubsCarson
requested a deployment
to
turbo-cache-read
December 4, 2026 21:00 — with
GitHub Actions
Pending
This branch is pending to be 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.
Summary
Makes
@repo/eliza-harnessresolve sharedelizacheckout, pack, and QA state directories under$XDG_CACHE_HOME/alpha(falling back cleanly to~/.cache/alphawhenXDG_CACHE_HOMEis unset, blank, or relative), and addsXDG_CACHE_HOMEtoturbo.json'sglobalPassThroughEnv:vibestack-remote(vibestack/remote/depot.ts) setsXDG_CACHE_HOME=<depot>/cacheon remote Boat sandboxes specifically because Boat drops files added under~/.cachewhen a box stops or is snapshotted. Previously,packages/eliza-harness/src/{checkout,pack,qa}.tshardcodedpath.join(os.homedir(), ".cache/alpha/..."), causing every Boat box to buildelizainto ephemeral$HOME/.cache/...instead of the persistent depot cache, andturbo.jsonstrippedXDG_CACHE_HOMEinside Turbo tasks.5files):packages/eliza-harness/src/checkout.ts: addalphaCacheDir(overrideEnv, ...segments)(honors non-blank explicit override env var first, then absolute trimmedXDG_CACHE_HOME, else~/.cache), and wirecheckout()through it.packages/eliza-harness/src/pack.tsandpackages/eliza-harness/src/qa.ts: routepackRoot()andqaState()throughalphaCacheDir()so shared checkouts, packs, and QA state stay colocated under$XDG_CACHE_HOME/alpha(preservingeliza-pin --prunesiblingeliza-packdiscovery and macOS default~/.cache/alphabehavior).turbo.json: add"XDG_CACHE_HOME"toglobalPassThroughEnvalongside"ALPHA_ELIZA_DIR"and"QUINT_HOME"so Turbo tasks (test,build,typecheck, etc.) receive the depotXDG_CACHE_HOMEwithout altering cache keys.packages/eliza-harness/test/harness.test.ts: add unit test verifying default~/.cachefallback, trimmed absoluteXDG_CACHE_HOME, blank/whitespace/relativeXDG_CACHE_HOMEfallback, blank explicit override fallback, and explicitALPHA_ELIZA_DIR/ALPHA_ELIZA_PACK_DIR/ALPHA_QA_STATEprecedence.package.json/vibestack.jsonhash churn in this PR): adding a committedremoteconfig (provisionrunningpnpm elizakeyed onprovisionInputs: ["**/vibestack/src/doctor.ts", "eliza.lock.json"]) plus optional upstreamlalalune/vibestackremote.cacheDirsfingerprinting and depot GC will bake prebuilt.elizacheckouts into shared Boat templates automatically.Verification
vibestack-remote) end-to-endpnpm eliza: cloned and built pinnedeliza@8dc9b2db6defdirectly into$XDG_CACHE_HOME/alpha/eliza-vibestack/8dc9b2db6def(inside the Boat depot cache) and linked.elizato it.pnpm --filter @repo/eliza-harness typecheckandbuild: PASSpnpm --filter @repo/eliza-harness test(direct):3/3files,24/24tests PASSpnpm exec turbo run test --filter=@repo/eliza-harness --force(through Turbo withXDG_CACHE_HOMEpassthrough):3/3files,24/24tests PASSeslint --max-warnings 0(4.tsfiles),jscpd --threshold 0(0clones),madge --circular(0cycles),knip --workspace packages/eliza-harness,pnpm no-bun, andgit diff --check: ALL PASS