Repository navigation
controller, substrate: mount the runner from a read-only image volume - #620
Merged
Merged
Conversation
This was referenced Nov 16, 2026
aprajitaarora13
force-pushed
the
aprajitaarora/prebuilt-2-mount-runner
branch
from
November 17, 2026 00:24
04c365c to
f19cddd
Compare
aprajitaarora13
marked this pull request as ready for review
November 17, 2026 00:32
mayawang
approved these changes
Nov 17, 2026
mayawang
left a comment
Collaborator
There was a problem hiding this comment.
LGTM, nice that the flag-unset path is untouched and the digest check is there. Non-blocking: with the flag on, every container's command becomes /opt/ax/ax-task-runner, so the current Claude Code image (claude-code-runner baked in, no ax-harness) stops running goals. Worth a note or a profile opt-out before we enable it where that image is used. Also: a user-supplied ate_actor_template gets no mount, and pure images still need git/sh for workspace setup.
aprajitaarora13
force-pushed
the
aprajitaarora/prebuilt-2-mount-runner
branch
from
November 17, 2026 02:13
f19cddd to
2ab2dc7
Compare
Base automatically changed from
aprajitaarora/prebuilt-1-runner-volume-image
to
main
November 17, 2026 02:18
Add an ax-server setting, --runner-volume-image (env: AX_RUNNER_VOLUME_IMAGE), for a digest-pinned runner volume image built from Dockerfile.runner-volume. When it is set, AX-managed templates mount it read-only at /opt/ax and run /opt/ax/ax-task-runner, so a task image no longer needs the runner baked in: any image works as is, including the pure agent images in agentexecutor/images. - substrate.MountRunnerVolume adds the image volume and mount and sets the container command. Per-task templates and Profile templates (ResolveProfileTemplate) both use it. - The runner digest is part of the per-task template name, as it already is of the Profile template name, so a new digest provisions new templates instead of restoring an old runner from a snapshot. - ax-server fails at startup on an image that is not pinned by digest, which Substrate requires of image volumes. deploy/ax-server.yaml, RenderServer and `make deploy` pass the setting through. - When the setting is unset, templates and their names are unchanged, so current images, including the Claude Code image whose runner is claude-code-runner, keep working during the switch. The mount path is /opt/ax rather than /ax because the runner writes its own state under /ax (for example the git-askpass link). This unblocks hero demo Step 4 (custom image task), which is stubbed on automatic ax-task-runner injection. Part of #493 (prebuilt agent images).
aprajitaarora13
force-pushed
the
aprajitaarora/prebuilt-2-mount-runner
branch
from
November 17, 2026 02:18
2ab2dc7 to
20ad26a
Compare
MushuEE
added a commit
that referenced
this pull request
Nov 17, 2026
main added Dockerfile.runner-volume (#619) and an AX_RUNNER_VOLUME_IMAGE placeholder to deploy/ax-server.yaml (#620), which failed the render step's leftover-placeholder check. Releases now also publish ghcr.io/google/ax/ax-runner-volume (multi-arch, binary checked per platform) and list its digest in the notes. The rendered manifest leaves AX_RUNNER_VOLUME_IMAGE empty, the same default as the Makefile, so tasks keep running the runner baked into their image until an operator opts in.
MushuEE
added a commit
that referenced
this pull request
Nov 17, 2026
The runner volume work (#619, #620) is not ready, so releases no longer build or publish ax-runner-volume. The rendered ax-server.yaml still fills the AX_RUNNER_VOLUME_IMAGE placeholder with an empty value, so tasks run the runner baked into their image and the render step's leftover-placeholder check passes.
This was referenced Nov 17, 2026
MushuEE
added a commit
that referenced
this pull request
Nov 17, 2026
* ci: build and publish a release when a vX.Y.Z tag is pushed Pushing a release tag now builds ax-server and ax-task-runner for linux/amd64 and linux/arm64 and pushes them to ghcr.io/google/ax, then publishes the GitHub release with the ax CLI (linux/darwin, amd64/arm64, with sha256 files), ax-server.yaml rendered with both images pinned by digest, and postgres.yaml. Pre-release tags publish pre-releases. Pull requests that touch the release run it as a dry run against a registry inside the job. ax version now prints the release version. * release: publish ghcr.io/google/ax image refs and installer-compatible archives Add internal/version (Version, ImageRepo, Image) so code that deploys AX, such as ax install in #603, can default to the images of its own release, or :latest for dev builds. The highest stable release now moves :latest. Ship the CLI as ax_<os>_<arch>.tar.gz with checksums.txt, and attach install.sh when the tag has one, matching what install.sh downloads. * release: align with the build and release epic (#609) Key concurrency by tag, dry-run on any Dockerfile.* change, fail the existence check on registry errors instead of rebuilding, refuse Dockerfiles that pin TARGETARCH, verify each platform image holds the right binary, and write digests to the job summary. Export task_image for stage 2 agent images and point the docs at #609 and #610. * release: drop the agent image hook; agent images are built in agentexecutor/images * release: address review of #616 - Never rebuild over a published tag on a registry error: the second inspect call fails closed, stderr is kept out of the manifest, and ghcr.io's DENIED for a never-pushed package is resolved through the packages API instead of failing the first release. - Rebuild only missing or incomplete images, and nothing at all once the release is published; read the release state fail-closed. - Refuse tags that are not on main or a release-* branch. - Publish a leftover draft with this run's assets and notes instead of leaving it stale; upload only known assets. - Refetch tags before moving :latest so an older release cannot take it back. - Dry runs cover go.mod, install.sh, cmd and internal/version changes, and rerun the image step to check that it reuses the same digests. - Reproducible CLI archives (fixed mtime, gzip -n); index annotations so GHCR links multi-arch packages; docs for older tags and prerequisites. * release: publish ax-runner-volume and render AX_RUNNER_VOLUME_IMAGE main added Dockerfile.runner-volume (#619) and an AX_RUNNER_VOLUME_IMAGE placeholder to deploy/ax-server.yaml (#620), which failed the render step's leftover-placeholder check. Releases now also publish ghcr.io/google/ax/ax-runner-volume (multi-arch, binary checked per platform) and list its digest in the notes. The rendered manifest leaves AX_RUNNER_VOLUME_IMAGE empty, the same default as the Makefile, so tasks keep running the runner baked into their image until an operator opts in. * release: don't publish ax-runner-volume yet The runner volume work (#619, #620) is not ready, so releases no longer build or publish ax-runner-volume. The rendered ax-server.yaml still fills the AX_RUNNER_VOLUME_IMAGE placeholder with an empty value, so tasks run the runner baked into their image and the render step's leftover-placeholder check passes.
YoyinZyc
added a commit
to YoyinZyc/ax
that referenced
this pull request
Nov 17, 2026
…d ax install ax-server takes AX_RUNNER_VOLUME_IMAGE (google#620), and deploy.RenderServer renders it, but the installer never set it, so an installed ax-server always ran the runner baked into each task image. Add --runner-volume-image (env: AX_RUNNER_VOLUME_IMAGE) to ax local start and ax install. Like the default task image it is optional and is pinned by digest before it is rendered. Left unset, the deployment is unchanged.
YoyinZyc
added a commit
that referenced
this pull request
Nov 17, 2026
…d ax install (#634) * feat(install): pass the runner volume image through ax local start and ax install ax-server takes AX_RUNNER_VOLUME_IMAGE (#620), and deploy.RenderServer renders it, but the installer never set it, so an installed ax-server always ran the runner baked into each task image. Add --runner-volume-image (env: AX_RUNNER_VOLUME_IMAGE) to ax local start and ax install. Like the default task image it is optional and is pinned by digest before it is rendered. Left unset, the deployment is unchanged. * docs(install): note the launcher prerequisite for a default runner volume image
aprajitaarora13
added a commit
that referenced
this pull request
Nov 18, 2026
Follow up on the non-blocking review comments from #620, #621 and #622: - Only record `<workspace>/.ax/launcher-done` when the launcher exits with status 0, so a failed launcher run is retried when the sandbox is resumed. - Fall back to `<os.TempDir>/ax-run` when `Config.RunDir` is empty and `/run/ax` cannot be created (for example when a container image sets a non-root `USER`). - Start the task command or launcher (or skip it via `launcher-done`) before marking `/readyz?check=workspace` ready, so callers waiting on `ax resume` never race the start of a launcher run. - Reuse `${REGISTRY_ADDR}/ax-task-runner:base` (with `/usr/local/bin/ax-task-runner` removed) for `ax-e2e-launcher:e2e` so `hack/setup-e2e-kind.sh` avoids an extra Docker Hub pull. - Document on `substrate.MountRunnerVolume` that enabling `--runner-volume-image` sets the container command on all AX-managed templates, leaves user-managed `ate_actor_template` references untouched, and still expects `/bin/sh` and `git` in pure images when workspace setup (`spec.setup`) runs. Part of #493.
ghchinoy
added a commit
to ghchinoy/ax
that referenced
this pull request
Nov 18, 2026
mayawang
added a commit
to mayawang/ax
that referenced
this pull request
Nov 21, 2026
Populate zero-flag release defaults for ax local/install and align
install.sh and quickstart docs around prebuilt release artifacts for
upcoming v0.4.0-rc.2 testing.
Changes:
- internal/install/axdeploy, cmd/ax: replace empty DefaultServerImage
const with DefaultServerImage() returning version.Image("ax-server")
for tagged release builds (version.IsRelease) so EnsureDigestPinned
resolves its multi-arch @sha256 digest automatically, while keeping
unversioned dev builds gated unless --server-image / $AX_SERVER_IMAGE
is set. Keep CLI flag defaults empty in imageFlags.register so
$AX_SERVER_IMAGE still overrides the release default when the flag is
omitted. Keep DefaultRunnerVolumeImage empty pending google#620/google#625.
- install.sh, cmd/ax/studio_cmd_test.go: set PINNED_STUDIO_VERSION to
v0.4.0-rc.1 with SHA-256 digests from agentexecutor/studio v0.4.0-rc.1
checksums.txt, update next-step hint to 'ax local start', and add
consistency tests alongside the unpinned skip test.
- README.md, docs/development.md, docs/local_installer.md,
docs/releasing.md: remove source image builds from README Quick start
into docs/development.md#build-and-push-images, update ax local start /
ax install quickstart snippets to zero-flag defaults, and document
dev-build overrides.
Verification:
- export GOTOOLCHAIN=auto && make verify (0 lint issues; no git diff)
- go build ./cmd/ax ./cmd/ax-server ./cmd/ax-runner
- go test -count=1 ./... (all unit packages passed; live Postgres and
Kind E2E tiers self-skip without AX_TEST_POSTGRES_URL / AX_E2E=true)
- sh -n install.sh
- go build -ldflags "-X github.com/google/ax/internal/version.Version=v0.4.0-rc.2" -o /tmp/ax-rc2-check ./cmd/ax && /tmp/ax-rc2-check local --help (prints default ghcr.io/google/ax/ax-server:v0.4.0-rc.2)
Part of google#661
mayawang
added a commit
to mayawang/ax
that referenced
this pull request
Nov 23, 2026
Populate zero-flag release defaults for ax local/install and align
install.sh and quickstart docs around prebuilt release artifacts for
upcoming v0.4.0-rc.2 testing.
Changes:
- internal/install/axdeploy, cmd/ax: replace empty DefaultServerImage
const with DefaultServerImage() returning version.Image("ax-server")
for tagged release builds (version.IsRelease) so EnsureDigestPinned
resolves its multi-arch @sha256 digest automatically, while keeping
unversioned dev builds gated unless --server-image / $AX_SERVER_IMAGE
is set. Keep CLI flag defaults empty in imageFlags.register so
$AX_SERVER_IMAGE still overrides the release default when the flag is
omitted. Keep DefaultRunnerVolumeImage empty pending google#620/google#625.
- install.sh, cmd/ax/studio_cmd_test.go: set PINNED_STUDIO_VERSION to
v0.4.0-rc.1 with SHA-256 digests from agentexecutor/studio v0.4.0-rc.1
checksums.txt, update next-step hint to 'ax local start', and add
consistency tests alongside the unpinned skip test.
- README.md, docs/development.md, docs/local_installer.md,
docs/releasing.md: remove source image builds from README Quick start
into docs/development.md#build-and-push-images, update ax local start /
ax install quickstart snippets to zero-flag defaults, and document
dev-build overrides.
Verification:
- export GOTOOLCHAIN=auto && make verify (0 lint issues; no git diff)
- go build ./cmd/ax ./cmd/ax-server ./cmd/ax-runner
- go test -count=1 ./... (all unit packages passed; live Postgres and
Kind E2E tiers self-skip without AX_TEST_POSTGRES_URL / AX_E2E=true)
- sh -n install.sh
- go build -ldflags "-X github.com/google/ax/internal/version.Version=v0.4.0-rc.2" -o /tmp/ax-rc2-check ./cmd/ax && /tmp/ax-rc2-check local --help (prints default ghcr.io/google/ax/ax-server:v0.4.0-rc.2)
Part of google#661
mayawang
added a commit
to mayawang/ax
that referenced
this pull request
Nov 23, 2026
Populate zero-flag release defaults for ax local/install and align
install.sh and quickstart docs around prebuilt release artifacts for
upcoming v0.4.0-rc.2 testing.
Changes:
- internal/install/axdeploy, cmd/ax: replace empty DefaultServerImage
const with DefaultServerImage() returning version.Image("ax-server")
for tagged release builds (version.IsRelease) so EnsureDigestPinned
resolves its multi-arch @sha256 digest automatically, while keeping
unversioned dev builds gated unless --server-image / $AX_SERVER_IMAGE
is set. Keep CLI flag defaults empty in imageFlags.register so
$AX_SERVER_IMAGE still overrides the release default when the flag is
omitted. Keep DefaultRunnerVolumeImage empty pending google#620/google#625.
- install.sh, cmd/ax/studio_cmd_test.go: set PINNED_STUDIO_VERSION to
v0.4.0-rc.1 with SHA-256 digests from agentexecutor/studio v0.4.0-rc.1
checksums.txt, update next-step hint to 'ax local start', and add
consistency tests alongside the unpinned skip test.
- README.md, docs/development.md, docs/local_installer.md,
docs/releasing.md: remove source image builds from README Quick start
into docs/development.md#build-and-push-images, update ax local start /
ax install quickstart snippets to zero-flag defaults, and document
dev-build overrides.
Verification:
- export GOTOOLCHAIN=auto && make verify (0 lint issues; no git diff)
- go build ./cmd/ax ./cmd/ax-server ./cmd/ax-runner
- go test -count=1 ./... (all unit packages passed; live Postgres and
Kind E2E tiers self-skip without AX_TEST_POSTGRES_URL / AX_E2E=true)
- sh -n install.sh
- go build -ldflags "-X github.com/google/ax/internal/version.Version=v0.4.0-rc.2" -o /tmp/ax-rc2-check ./cmd/ax && /tmp/ax-rc2-check local --help (prints default ghcr.io/google/ax/ax-server:v0.4.0-rc.2)
Part of google#661
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.
Adds an ax-server setting,
--runner-volume-image(env:AX_RUNNER_VOLUME_IMAGE), for a digest-pinned runner volume image (fromDockerfile.runner-volume). When it is set, AX-managed templates mount it read-only at/opt/axand run/opt/ax/ax-task-runner. A task image no longer needs the runner baked in, so any image works as is, including the pure agent images inagentexecutor/images.substrate.MountRunnerVolumeadds the image volume and mount and sets the container command. Per-task templates and Profile templates (ResolveProfileTemplate) both use it.ResolveProfileTemplatealready put the runner image in theax-<hash>name but didn't mount anything.deploy/ax-server.yaml,RenderServerandmake deploypass the setting through.claude-code-runner.The mount path is
/opt/axrather than/axbecause the runner writes its own state under/ax(for example thegit-askpasslink).This unblocks hero demo Step 4 (custom image task), which is stubbed on "automatic ax-task-runner injection".
Tests cover:
RenderServer.Part of #493.
Stack (review in order):