Repository navigation
fix(setup): fresh-machine hardening — install airc + correct Docker resource/AI config - #1630
Merged
Merged
Conversation
continuum now rides airc as its event bus, identity mesh, and cross-grid transport, but setup.sh (the README macOS entry point) never installed it — a fresh user running ./setup.sh got continuum WITHOUT airc, which is broken. setup.sh now ensures airc by delegating to airc's own installer (single source of truth — no copy of airc's prereq/auth logic here). Uses download-then-run rather than `curl | bash` so stdin stays attached to the terminal and airc's interactive steps (Homebrew, gh auth login) still fire when driven from setup.sh. AIRC_CHANNEL overrides the branch (default main). Co-Authored-By: Claude Opus 4.8 <[email protected]>
…hold) The Docker VM auto-config was a silent no-op on a fresh Mac: - WRONG KEY CASE: wrote camelCase memoryMiB/cpus into Docker Desktop's settings-store.json, but the real keys are PascalCase MemoryMiB/Cpus (confirmed: a GUI memory change wrote "MemoryMiB": 32768). Docker ignored the camelCase keys, so the memory/cpu bump never applied. - THRESHOLD: only bumped when current < 8GB; Docker's default IS 8 and 8 -lt 8 is false, so a 64GB host stayed at 8GB forever. Now bumps when below target (half system RAM), 2GB tolerance to avoid churn. - AI keys: the inference toggle's real key is EnableInference (+ EnableDockerAI), which was MISSING from the list. Added it (kept the GPUVariant/TCP keys: harmless if phantom, safe if valid). - Env-overridable: CONTINUUM_DOCKER_MEM_GB / CONTINUUM_DOCKER_CPUS — scripts set sane defaults, user can still change in Docker Desktop or via env. Found on a fresh 64GB Mac: Docker stuck at 8GB despite setup.sh "configuring" it. Resource-saver-off (C5) follows once the Docker Desktop key is confirmed. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Resource Saver (default ON, 5min) pauses the Docker VM when idle — fatal for a persistent grid/inference node: DMR + personas sleep after 5min idle. setup.sh now sets UseResourceSaver=false (confirmed PascalCase key from settings-store.json after a GUI toggle). Env opt-out: CONTINUUM_DOCKER_KEEP_RESOURCE_SAVER=1. Non-clobbering (skips if already false). Co-Authored-By: Claude Opus 4.8 <[email protected]>
…/C3) A fresh dev following the README (npm install && npm start) hit cargo build failures: vendored llama.cpp/whisper.cpp submodules empty (no CMakeLists.txt) and cmake absent. Neither npm start nor bootstrap.sh handled them. - setup-rust.sh now ensures cmake (preflight_pkg_install) and runs `git submodule update --init --recursive` before the Rust build. - README dev-from-source path runs `npm run setup:rust` and documents cmake + vendored submodules as native build prereqs. Co-Authored-By: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jun 15, 2026
…oke (C8) (#1632) The committed ts-rs bindings moved to protocol/typescript (637 files), but generate-rust-bindings.ts still checked GENERATED_DIR=shared/generated (0 committed files) for its "Linux uses committed bindings, skip cargo" guard. On a fresh Linux clone that dir reads empty -> guard false -> Linux fell through to `cargo test`, which crashes there (LiveKit protobuf descriptor conflict) and times out on a cold continuum-core + llama.cpp compile -> install.sh's `npm run build` died "Some bindings failed to generate" = the carl-install-smoke failure (C8). That smoke is path-triggered on any setup/install change, so C8 blocked #1630 (and would block #1612). Gate the skip on the PLATFORM (process.platform === 'darwin') instead of a dir that moved: only macOS regenerates + commits bindings; Linux/WSL/CI use the committed protocol/typescript bindings and never run cargo. macOS dev path unchanged (--force still regenerates). Validated by carl-install-smoke on this PR (the failing check itself — the Linux container can't be reproduced locally on macOS). Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Oct 31, 2026
… its own PR instead of each later build rewriting it (Cormac; airc's --locked CI caught the same on #1630). Run commands only; no step name changes, so required check names are untouched. No CI step resolves dependencies on purpose Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Oct 31, 2026
… its own PR instead of each later build rewriting it (Cormac; airc's --locked CI caught the same on #1630). Run commands only; no step name changes, so required check names are untouched. No CI step resolves dependencies on purpose (#5624) Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5.5 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Oct 31, 2026
Card 2a0d34cf: land the identity custody fix in base. 762adeb2 is the airc canary head + the read-never-mints identity custody fix (fix/read-never-mints-identity, card 4b2dbdf3): a READ of the work board on a named home no longer silently mints and overwrites a citizen's identity.key; init --as mints explicitly. Bumps every workspace pin in Cargo.toml [workspace.dependencies] (airc-core, airc-blobs, airc-protocol, airc-ipc, airc-bus, airc-lib, airc-wire, airc-trust, airc-work) and re-resolves Cargo.lock to the new rev (15 lock entries). This rev already carries #1623 (sealed progress / terminal reply lifecycle, which satisfied the c7083d04 BLOCKED note) plus #1618, #1624, #1630, #1633, #1635 on top. Suite status: airc suite green at 762adeb2 (identity_commands 10/10, airc-identity unit+doc). continuum suite re-run follows against this pin.
This was referenced Oct 31, 2026
joelteply
added a commit
that referenced
this pull request
Nov 3, 2026
…y grant clears through Three airc commits: #1630 adds `cambrian-flex` (ONE-BUDGET slice 1; its first continuum user, the turn's allocation, follows), #1618 hook catch-up from an ORM index, #1624 one daemon initializer before store access. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Nov 3, 2026
…y grant clears through (#5728) * airc pin d26713b -> 38a22ab: adopt cambrian-flex, the one solver every grant clears through Three airc commits: #1630 adds `cambrian-flex` (ONE-BUDGET slice 1; its first continuum user, the turn's allocation, follows), #1618 hook catch-up from an ORM index, #1624 one daemon initializer before store access. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Cargo.lock: only the airc packages move (d26713b -> 38a22ab) plus their new fs2 edge; canary's windows-sys/windows-core edges kept (Cormac on #5728) cargo update -p <airc crates> re-pointed eleven unrelated crates' windows-sys edges (0.61.2 -> 0.59/0.60) and iana-time-zone's windows-core (0.58 -> 0.57) even with the MSRV fallback off. The lock is canary's with only the airc-sourced [[package]] blocks replaced, in place; cargo metadata --locked accepts it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Fresh-machine
setup.shfixes, all found by running it on a clean 64GB Apple Silicon Mac.C1 — setup.sh now installs airc (the mesh backbone)
continuum rides airc; setup.sh had zero airc references. Now ensures airc by delegating to airc's own installer (download-then-run, keeps stdin a TTY so airc's prompts fire;
AIRC_CHANNELoverridable). Closes #1629.C4 — Docker memory/CPU config was a silent no-op
memoryMiB/cpus; Docker Desktop's real keys are PascalCaseMemoryMiB/Cpus(confirmed: a GUI change wrote"MemoryMiB": 32768). Docker ignored the camelCase keys → memory/cpu never applied.< 8GB; Docker's default is 8 and8 -lt 8is false → a 64GB host stayed at 8GB forever. Now bumps when below target (½ system RAM), 2GB tolerance.CONTINUUM_DOCKER_MEM_GB/CONTINUUM_DOCKER_CPUS.C5 — disable Resource Saver for persistent grid nodes
Resource Saver (default ON, 5min) pauses the Docker VM when idle → DMR + personas sleep. Now sets
UseResourceSaver=false(confirmed key). Env opt-outCONTINUUM_DOCKER_KEEP_RESOURCE_SAVER=1; non-clobbering.C6 — AI key
EnableInferencewas missingThe inference toggle's real key is
EnableInference(+EnableDockerAI); setup.sh's list omitted it. Added (kept GPUVariant/TCP keys — harmless if phantom, safe if valid).Design: scripts set GPU-first defaults; the user can still change everything in Docker Desktop or via env vars (flexible + non-clobbering), mirroring the Windows install.ps1 approach.