Skip to content

api,runner: remove the WorkspaceRef goal field and the agent bootstrap - #519

Merged
rakyll merged 2 commits into
mainfrom
no-goal-ws
Oct 27, 2026
Merged

rakyll merged 2 commits into
mainfrom
no-goal-ws

Conversation

@rakyll

@rakyll rakyll commented Oct 27, 2026

Copy link
Copy Markdown
Member

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.

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.
@rakyll
rakyll requested a review from mayawang October 27, 2026 00:33
@rakyll rakyll added the cleanup label Oct 27, 2026

@mayawang mayawang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
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.

2 participants