Skip to content

hack: bind a Gateway to the hero demo's Antigravity starter task - #608

Merged
yongruilin merged 2 commits into
google:mainfrom
yongruilin:hero-demo-gateway
Nov 16, 2026
Merged

yongruilin merged 2 commits into
google:mainfrom
yongruilin:hero-demo-gateway

Conversation

@yongruilin

@yongruilin yongruilin commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Wire a Gateway into hack/hero-demo/ and switch its starter from Claude Code to Antigravity.

  • gateway.yaml (hero-demo-gw) allows generativelanguage.googleapis.com and adds the Gemini API key from a labeled Secret in ax-system, so the starter task holds only GEMINI_API_KEY=placeholder.
  • run.sh applies the Gateway before the starter task, both locally and when promoting to a remote cluster.
  • A live run against main no longer reports a failure for the starter image, which is still a placeholder.

Follow-up: allow the hosts the Antigravity image installs agy from once it is published; that image also needs ax-task-runner injection.

The starter is now Antigravity, and its Gateway adds the Gemini API key
outside the sandbox. Live mode reports a stub instead of a failure for what
main cannot run yet: the workspace's spec.profile and the placeholder image.
@yongruilin
yongruilin requested a review from mayawang November 16, 2026 20:01

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

Nice, good to have real egress in the demo. Two small things: #607 just dropped spec.profile from workspace.yaml (Yuchen will add it back with prewarm), so the "spec.profile is not supported yet" case in apply_workspace and the README line about it can go. And the gateway.yaml setup comment should also mention granting the default atespace the ax-system namespace in Substrate's k8s-credential-provider-namespace-policy, otherwise injection 403s. LGTM otherwise

… grant

workspace.yaml no longer sets spec.profile (google#607), so run.sh stops handling
its rejection. gateway.yaml now says the cluster must grant atespace default
the ax-system namespace.
@yongruilin

Copy link
Copy Markdown
Collaborator Author

Nice, good to have real egress in the demo. Two small things: #607 just dropped spec.profile from workspace.yaml (Yuchen will add it back with prewarm), so the "spec.profile is not supported yet" case in apply_workspace and the README line about it can go. And the gateway.yaml setup comment should also mention granting the default atespace the ax-system namespace in Substrate's k8s-credential-provider-namespace-policy, otherwise injection 403s. LGTM otherwise

Updated. I dropped the spec.profile case and its README line, and gateway.yaml mentions the namespace grant.

@yongruilin
yongruilin merged commit 90f76e0 into google:main Nov 16, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants