Install the codex CLI into codex task images (M3.4: the codex base variant) - #388
Merged
Conversation
…riant) `build_base(agent_cli="codex")` built the same claude-only Dockerfile and merely re-tagged it `panopticon-base-codex`, so no codex task container had a `codex` binary and every codex task failed at launch. This wires the missing base tier (ADR 0014 §4). - Parameterize the bundled Dockerfile with an `AGENT_CLI` build arg (`claude` default, or `codex`): only the selected CLI is installed, so one Dockerfile yields two genuinely different `panopticon-base-<cli>` images. - Install codex as the statically-linked musl binary from GitHub releases (no node/npm), pinned via a `CODEX_VERSION` arg (0.144.4), with an arch switch for x86_64/aarch64, to `/usr/local/bin/codex` (0755, world-executable). - `images.py` passes `--build-arg AGENT_CLI=<cli>` from the resolved CLI in both `build_base` and `build_base_if_missing` (factored into one helper). - `make build` grows a per-CLI loop (`AGENT_CLIS`), building both bases by default. - Fix the codex `primary` model tier: `gpt-5.6-sol` (verified against the pinned release), not the earlier unverified `gpt-5.6-codex` guess. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Why
build_base(agent_cli="codex")built the same claude-only Dockerfile and merely re-tagged itpanopticon-base-codex, so no codex task container had acodexbinary — every codex task failed at launch. This wires the missing per-CLI base tier that ADR 0014 §4 committed to, closing the dropped M3.4 slice.What
AGENT_CLIbuild arg (claudedefault, orcodex). Each CLI's install is gated on the arg, so one Dockerfile yields two genuinely differentpanopticon-base-<cli>images that carry exactly their own runtime.CODEX_VERSIONarg (0.144.4— the release the codex adapter's behavior is verified against), with an arch switch forx86_64/aarch64, landing at/usr/local/bin/codex(0755, world-executable so the droppedpanopticonuser can exec it).images.pypasses--build-arg AGENT_CLI=<cli>from the resolved CLI in bothbuild_baseandbuild_base_if_missing(factored into one_build_basehelper).CODEX_VERSIONstays host-side in the Dockerfile, honoring the rule that the runner never imports the container package.make buildgrows a per-CLI loop (AGENT_CLIS ?= claude codex), building both bases by default.primarymodel tier togpt-5.6-sol(verified against the pinned release), replacing the earlier unverifiedgpt-5.6-codexguess.Design choice: this follows ADR 0014 §4's committed base-variant approach (
panopticon-base-<cli>), not the reference repo's CLI-image-tier — the base infrastructure (base_image(cli), per-CLI tag/mount) already exists here, and the tier approach would need an ADR amendment.