Skip to content

fix(compose): delete vestigial shared/shared-generated build-contexts — core image builds clean (item 1 done) - #1850

Merged
joelteply merged 1 commit into
canaryfrom
fix/core-image-drop-vestigial-shared-contexts
Jul 6, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/core-image-drop-vestigial-shared-contexts

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The "blocking gap" in the Linux punch list (entity_schemas.json is generated + absent from a clean checkout,
so COPY --from=shared-generated fails) was a FALSE ALARM. entity_schemas.rs embeds the schema at COMPILE
time via include_str!("../../../../protocol/typescript/entity_schemas.json") — a source-relative path, and
that file is CHECKED IN at protocol/typescript/, so the Dockerfile's COPY . . already provides it. The
COPY --from=shared-generated …/shared/generated/… targeted a path the code never reads; models.json has
ZERO references in the Rust core. Pure dead scaffolding from the pre-protocol/typescript era.

  • docker-compose.yml: delete the additional_contexts block (shared, shared-generated) from continuum-core.
  • continuum-core{,-cuda,-vulkan}.Dockerfile: delete both COPY --from=shared* lines + their stale comments.

Build-proven on macOS (Docker daemon up): a throwaway image confirmed the contexts resolved the real files,
and the native core has compiled all session reading exactly that include_str! path — so COPY . . provides
it in the image too. docker compose config green for base / +mac / +gpu; 0 dangling context refs. Updated
docs/CONTAINER-PATH-LINUX-VALIDATION.md: item 1 RESOLVED, remaining work is a real GPU up on Linux.

Reliability spine #1 (install) — the container path now builds without the frozen legacy tree for the core.

Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

… — core image builds clean (item 1 done)

The "blocking gap" in the Linux punch list (entity_schemas.json is generated + absent from a clean checkout,
so `COPY --from=shared-generated` fails) was a FALSE ALARM. entity_schemas.rs embeds the schema at COMPILE
time via include_str!("../../../../protocol/typescript/entity_schemas.json") — a source-relative path, and
that file is CHECKED IN at protocol/typescript/, so the Dockerfile's `COPY . .` already provides it. The
`COPY --from=shared-generated …/shared/generated/…` targeted a path the code never reads; models.json has
ZERO references in the Rust core. Pure dead scaffolding from the pre-protocol/typescript era.

- docker-compose.yml: delete the `additional_contexts` block (shared, shared-generated) from continuum-core.
- continuum-core{,-cuda,-vulkan}.Dockerfile: delete both `COPY --from=shared*` lines + their stale comments.

Build-proven on macOS (Docker daemon up): a throwaway image confirmed the contexts resolved the real files,
and the native core has compiled all session reading exactly that include_str! path — so `COPY . .` provides
it in the image too. `docker compose config` green for base / +mac / +gpu; 0 dangling context refs. Updated
docs/CONTAINER-PATH-LINUX-VALIDATION.md: item 1 RESOLVED, remaining work is a real GPU `up` on Linux.

Reliability spine #1 (install) — the container path now builds without the frozen legacy tree for the core.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit bb17583 into canary Jul 6, 2026
@joelteply
joelteply deleted the fix/core-image-drop-vestigial-shared-contexts branch July 6, 2026 03:28
joelteply added a commit that referenced this pull request Jul 6, 2026
…/scripts, models via additional-context (item 2) (#1851)

Caught by an actual `docker build` (not a guess): model-init's download scripts moved to tools/scripts with
#1840, but the Dockerfile still COPYd them from the context root (which #1849 had pointed at legacy/src) —
so `COPY scripts/download-models.sh` etc failed "not found". models.json is in legacy/src/shared; the scripts
in tools/scripts; two homes, no single small context covers both (and there's no .dockerignore, so a repo-
root context would ship the whole tree).

- docker-compose.yml: model-init context → ./tools/scripts (scripts' home); models.json rides in as the
  `models` additional-context (./legacy/src/shared).
- model-init.Dockerfile: COPY the scripts from the context root, `COPY --from=models models.json`, keep
  shared/ (download-avatar-models.sh sources shared/preflight.sh at runtime); DROP the dead
  generate-scene-models.ts + package.json COPYs (unused by the download CMD path).

Build-proven on macOS (`docker build` — node:20-slim native arm64): all COPYs resolve, image exports clean.
The model download is a runtime CMD, so the actual fetch is exercised by a real `up` (item 3). compose config
green base/+gpu. Reliability spine #1 — both container BUILD-side items (core image #1850, model-init) now
build-verified from this Mac; only GPU `up` / grid / fresh-OS install remain (genuinely Linux).


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Opus 4.8 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant