Repository navigation
feat(agenttemplate): mount toolchain images read-only into the runtime - #3192
Open
QuentinBisson wants to merge 3 commits into
Open
QuentinBisson wants to merge 3 commits into
QuentinBisson wants to merge 3 commits into
Conversation
QuentinBisson
force-pushed
the
feat/harness-tool-images
branch
from
October 13, 2026 22:37
e86d376 to
7c8e5d9
Compare
QuentinBisson
force-pushed
the
feat/harness-tool-images
branch
from
October 13, 2026 22:48
7c8e5d9 to
5c3df66
Compare
QuentinBisson
marked this pull request as ready for review
October 13, 2026 23:14
QuentinBisson
requested review from
a team,
Charlesthebird and
supreme-gg-gg
as code owners
October 13, 2026 23:14
1 task done
QuentinBisson
force-pushed
the
feat/harness-tool-images
branch
from
October 18, 2026 12:34
5c3df66 to
1f3346a
Compare
Contributor
Author
QuentinBisson
force-pushed
the
feat/harness-tool-images
branch
from
October 22, 2026 13:18
1f3346a to
8940241
Compare
This was referenced Oct 22, 2026
Closed
Closed
QuentinBisson
force-pushed
the
feat/harness-tool-images
branch
3 times, most recently
from
November 2, 2026 09:40
bb1730b to
1c1f5cd
Compare
QuentinBisson
commented
Nov 2, 2026
| return nil, fmt.Errorf("runtime environment %q conflicts with gateway trust", variable.Name) | ||
| } | ||
| if variable.Name == toolpath.EnvName { | ||
| return nil, fmt.Errorf("runtime environment %q is reserved for tool images", variable.Name) |
Contributor
Author
There was a problem hiding this comment.
I did some digging and the reserved env names are enforced in the controller and compilers today, not the CRD as they differ per runtime (gateway trust names, Claude- and Codex-owned variables), and the BYO LangGraph samples set KAGENT_CHECKPOINT_DB through env, so a CRD prefix rule would break that.
In this PR, KAGENT_TOOL_PATHS follows the trust-name check.
Should this be opened in a follow up?
QuentinBisson
force-pushed
the
feat/harness-tool-images
branch
from
November 7, 2026 01:50
1c1f5cd to
5d16938
Compare
QuentinBisson
force-pushed
the
feat/harness-tool-images
branch
from
November 19, 2026 09:15
f8207eb to
c1fde43
Compare
Harness.spec.workload.toolImages lists digest-pinned OCI images. The controller adds one Substrate image volume per entry to the ActorTemplate, mounted read-only at /opt/kagent/tools/<name> for every runtime, and sets KAGENT_TOOL_PATHS to the colon-joined bin directories. Each managed runtime appends them to its own PATH after the image's binaries; the variable is reserved in Harness.spec.env. The Harness edit form keeps the field it does not author. Closes kagent-dev#3190 Signed-off-by: QuentinBisson <quentin@giantswarm.io>
Signed-off-by: QuentinBisson <quentin@giantswarm.io>
Toolchains move from the Harness workload to AgentTemplateSpec, so they are declared next to the skills and prompts that need them and reach Agents with an inline template as well. An Agent mounts the toolchains of its template and of every Shared subagent: the same name and image is mounted once, the same name with two images is a validation error. Signed-off-by: QuentinBisson <quentin@giantswarm.io>
QuentinBisson
force-pushed
the
feat/harness-tool-images
branch
from
November 22, 2026 01:20
c1fde43 to
1d07fcf
Compare
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.
Problem
Agents need CLIs their harness image does not ship (
go,kubectl,gh). Today that means an image builtFROMthe harness image, rebuilt for every release, or skills and plugins, which are capped at 100 MiB, never reachPATH, and land in every snapshot. #3190 has the full motivation and the placement discussion.Change
AgentTemplateSpec.toolchains[]lists digest-pinned OCI images. The controller mounts each one read-only at/opt/kagent/tools/<name>as a Substrate image volume, for every runtime, and setsKAGENT_TOOL_PATHSto theirbin/directories; each runtime appends that to its ownPATH, so the image's binaries always win. An Agent gets the toolchains of its template (inline or referenced) and of its Shared subagents: the same name and image is mounted once, the same name with two images is rejected. The list is part of revision identity, and sandbox guests do not see the mounts.Closes #3190