Repository navigation
api,runner: remove the WorkspaceRef goal field and the agent bootstrap - #519
Merged
Merged
Conversation
The goal field on Task.spec.workspace handed a plain-language environment description to an Antigravity agent on the sandbox's first boot. Drop the field, without reserving its number, and everything that existed to serve it: - The runBootstrap path in internal/workspace, with its GEMINI_API_KEY and AX_BOOTSTRAP_TIMEOUT handling. SetupWorkspace no longer takes a goal and SetupResult loses BootstrapRan. - cmd/ax-task-runner/antigravity_bootstrap.py, its COPY in Dockerfile.task-runner, and the google-antigravity pip install. - The goal-based environment planner in internal/workspace, which had no callers outside its own test. - The goal= suffix in `ax describe task` output. The model client's offline fallback text was written for the planner's prompt; reword it to be neutral. Docs and the README quickstart no longer describe goal-driven setup, and the roadmap item that depended on it is gone.
mayawang
approved these changes
Oct 27, 2026
mayawang
left a comment
Collaborator
There was a problem hiding this comment.
Thanks @rakyll, nice simplification, tests pass on main and on top of #515. Approving. One follow-up this unlocks: with the bootstrap gone, nothing in AX reads GEMINI_API_KEY inside the sandbox, but the reconciler still copies the key into every task's env (the exposure in #476/#477). That copy can now just be removed. #341 can probably close too once this lands.
The reconciler looked up the Gemini API key, first from the gemini-api-secret secret in the task's atespace and then from the server's own environment, and copied it into every task's environment. The in-sandbox bootstrap was the only thing that read it. With the bootstrap gone, nothing inside the sandbox uses the key, so the copy only exposed it to anyone who could create a Task. Remove the copy along with the code that only existed to support it: lookupGeminiKey, the SecretResolver type and field, and their constants. The server still resolves the key for the Model client. Tasks with no environment changes get a new per-task ActorTemplate on their next reconcile, because the template name includes a digest of the container environment. Drop the GEMINI_API_KEY row from the runner contract in docs/runner.md and the matching caveat from SECURITY.md. Fixes #476 Fixes #477
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.
The goal field on Task.spec.workspace handed a plain-language environment description to an Antigravity agent on the sandbox's first boot. Drop the field, without reserving its number, and everything that existed to serve it:
ax describe taskoutput.The model client's offline fallback text was written for the planner's prompt; reword it to be neutral. Docs and the README quickstart no longer describe goal-driven setup, and the roadmap item that depended on it is gone.