Skip to content

hack/hero-demo: wire Step 3 to the starter launcher contract - #643

Merged
aprajitaarora13 merged 1 commit into
mainfrom
aprajitaarora/hero-demo-step3-antigravity
Nov 19, 2026
Merged

aprajitaarora13 merged 1 commit into
mainfrom
aprajitaarora/hero-demo-step3-antigravity

Conversation

@aprajitaarora13

@aprajitaarora13 aprajitaarora13 commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Wires Step 3 of the hero demo (hack/hero-demo/) to the prebuilt image launcher contract landed in #619–#622:

  • hack/hero-demo/task-starter.yaml: Moves spec.config.prompt to spec.goal.text (consumed via $AX_GOAL_FILE) and sets spec.sessionId: hero-demo-session.
  • hack/hero-demo/run.sh (step3_starter_task_session):
    • Adds a STARTER_IMAGE environment override so Steps 3 and 5 can be tested with a digest-pinned starter image before the published GHCR digest is pinned directly in task-starter.yaml.
    • Waits for Turn 1 to finish (test -s /workspace/.ax/output && test -s /workspace/.ax/launcher-done), verifies /workspace/.ax/output survives ax suspend and ax resume, and keeps the second Session turn as STUB until a follow-up turn can run on the same task's workspace.
  • hack/hero-demo/README.md: Documents STARTER_IMAGE, notes that pure starter images require ax-server to be configured with a runner volume image (ax install --runner-volume-image or AX_RUNNER_VOLUME_IMAGE, empty by default), and reflects the updated Step 3 status.

Verified:

  • bash -n hack/hero-demo/run.sh and ./hack/hero-demo/run.sh --step 3 pass cleanly.
  • Verified Turn 1 (write_file editing /workspace/app/math_utils.py) → suspend/resume (0 extra model requests, launcher skipped via launcher-done, output preserved) end-to-end against mock-gemini with the mounted ax-task-runner (/opt/ax/ax-task-runner) and pure Antigravity 1.5.10 image.

Part of #493.

@mayawang

Copy link
Copy Markdown
Collaborator

@aprajitaarora13 build-and-test is red here, and it has no reviewer yet. @rakyll or @yongruilin could one of you take it? It's Step 3 for the dry run

@yongruilin
yongruilin self-requested a review November 18, 2026 22:04
@yongruilin yongruilin self-assigned this Nov 18, 2026
@yongruilin

Copy link
Copy Markdown
Collaborator

@aprajitaarora13 build-and-test is red here, and it has no reviewer yet. @rakyll or @yongruilin could one of you take it? It's Step 3 for the dry run

It's flaky. TestLockRenewsLeaseWhileHeld timeout.

Comment thread hack/hero-demo/run.sh Resolved
Comment thread hack/hero-demo/README.md Resolved
Update hack/hero-demo/task-starter.yaml, run.sh, and README.md (Step 3:
Starter Task, Session & Resume) to use the prebuilt image launcher
contract from #619–#622:

- Move `spec.config.prompt` to `spec.goal.text` and set
  `spec.sessionId: hero-demo-session` in `hack/hero-demo/task-starter.yaml`.
- Allow overriding the starter image digest via `STARTER_IMAGE` in
  `hack/hero-demo/run.sh` before the published GHCR digest is pinned in
  `task-starter.yaml`.
- In `step3_starter_task_session`, wait for Turn 1 to write
  `$AX_OUTPUT_FILE` (`/workspace/.ax/output`) and
  `/workspace/.ax/launcher-done`, verify the output is preserved across
  `ax suspend` and `ax resume`, and keep the second Session turn as
  STUB until a follow-up turn can run on the same task's workspace.
- Document in `hack/hero-demo/README.md` that pure starter images need
  `ax-server` configured with a runner volume image
  (`ax install --runner-volume-image` or `AX_RUNNER_VOLUME_IMAGE`).

Part of #493.
@aprajitaarora13 aprajitaarora13 changed the title hack/hero-demo: wire Step 3 to the starter launcher contract and session reuse hack/hero-demo: wire Step 3 to the starter launcher contract Nov 19, 2026
@aprajitaarora13
aprajitaarora13 force-pushed the aprajitaarora/hero-demo-step3-antigravity branch from 2725330 to 50f3b54 Compare November 19, 2026 16:03

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

LGTM, thanks Aprajita! Agree on keeping turn 2 as a stub for now. Could you open an issue for running a follow-up turn on the same workspace, labelled bug-bash, so we track it for v0.1?

@aprajitaarora13
aprajitaarora13 merged commit 49b47ed into main Nov 19, 2026
10 checks passed
@aprajitaarora13
aprajitaarora13 deleted the aprajitaarora/hero-demo-step3-antigravity branch November 19, 2026 18:37
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.

3 participants