Skip to content

devcloud: cache verified native Claude releases - #346

Merged
SSFSKIM merged 3 commits into
mainfrom
devcloud-claude-cached
Oct 22, 2026
Merged

SSFSKIM merged 3 commits into
mainfrom
devcloud-claude-cached

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

Implements board ticket 120; bumps devcloud to 0.9.2.

  • Fetch the architecture-specific native Claude release and verify its manifest SHA256 in a separate, script-keyed Docker layer. Unrelated changes under devcloud/ no longer re-fetch it.
  • Seed the verified version file, then run the native binary's own install VERSION as the dev user. The installer owns the launcher/configuration and its updater remains enabled. Docker enforces an entirely offline setup step with --network=none; VM bake and adopt share the same recipe.
  • Print successful BuildKit step durations alongside cache hits, so a slow build is diagnosable without first failing.

Installer question resolved

The current installer script downloads from https://downloads.claude.ai/claude-code-releases, checks platforms.<platform>.checksum in manifest.json, then invokes the binary's install command. It offers no local-file/offline flag. A prefetched binary running install 2.1.308 alone failed offline with EAI_AGAIN downloads.claude.ai. Seeding the verified file at the documented native versions path, then invoking install 2.1.308, succeeded offline and let the installer create its own configuration and launcher. No npm fallback or hand-written installer metadata.

Validation Evidence

Gate Cold release fetch Cold offline setup Cold image build total Warm outage fetch Warm offline setup Warm image build total
devcloud-image 5.9 s 5.4 s 39.2 s CACHED 6.8 s 9.9 s
devcloud-host 5.6 s 5.4 s 35.7 s CACHED 6.8 s 9.9 s
devcloud-systemd 13.3 s 6.6 s 41.6 s CACHED 6.8 s 10.1 s

Cold timings are from PR run 39754671318: the new Claude layer misses while the existing package layers come from the main-branch cache. Full gates, including integration, were 2m02s / 2m02s / 1m59s. Warm outage timings use the same runner's local cache; importing a remote cache on a fresh runner adds transfer/unpack time.

  • Live GCE, 2026-10-22: devcloud vm image build --account gce succeeded; up --account gce --label ccache --ttl 1h --project SSFSKIM/doperpowers@devcloud-claude-cached used that image and became ready in 3m33s. All 12 steps were ok, including projects. As the non-root dev user, claude --version printed 2.1.308, and claude doctor reported native install method and auto-updates enabled/latest. Launcher and version directories were writable by the dev user. down reported "departed and deleted"; the proof image was also deleted. GCE queries at 09:20Z confirmed neither the host, builder nor image remained.

Residue

None. Cold builds still require the release service, intentionally fail closed, and are not claimed to work during an outage. A warm CI cache must first be seeded after merge; no main-branch cache was modified for these proofs.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
@SSFSKIM
SSFSKIM merged commit 7acef18 into main Oct 22, 2026
10 checks passed
@SSFSKIM
SSFSKIM deleted the devcloud-claude-cached branch October 22, 2026 09:30
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