Skip to content

hack: add the v0.1 hero demo harness - #590

Merged
mayawang merged 3 commits into
google:mainfrom
mayawang:feat/v0.1-hero-demo-harness
Nov 14, 2026
Merged

mayawang merged 3 commits into
google:mainfrom
mayawang:feat/v0.1-hero-demo-harness

Conversation

@mayawang

@mayawang mayawang commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Adds hack/hero-demo/, a development harness for the five-step AX v0.1 developer demo. One script on main runs the steps in order and prints a scoreboard, so progress is tracked in one place while the pieces land, without a separate demo branch.

What's in it

  • run.sh runs the five steps and prints a scoreboard (🟢 PASS / 🟡 STUB / 🔴 FAIL). By default it makes no cluster calls, so it always runs cleanly. With RUN_LIVE_STEPS=1 it runs what already works on main against the AX server of the current kube context:

    • Step 1: ax get workspaces, to check ax-server is reachable.
    • Step 2: ax apply -f workspace.yaml.
    • Step 3: ax apply -f task-starter.yaml, then resume, suspend, resume.
    • Step 5 (with --remote-context): applies both manifests unchanged to that cluster.

    Everything else is a 🟡 STUB with a TODO: local mode and the Studio check, the warm snapshot check, the second Session turn, the custom image task (needs automatic ax-task-runner injection), and promotion in one command.

  • workspace.yaml, task-starter.yaml and task-custom.yaml use the v1alpha1 schema on main today. When the Task schema update (task: update v1alpha1 Task and ObjectMeta schema and update codebase #587) lands, the starter's prompt moves from spec.config.prompt to spec.goal, and the tasks switch to spec.profile and spec.commands.

  • The starter image is a <starter-image>@sha256:<digest> placeholder until the Claude Code image from agentexecutor/images is published and pinned by digest. The workspace uses the server's default task image.

It lives in hack/ rather than examples/, because it stays mostly stubs until its pieces land. A clean walkthrough can go in examples/ once the flow runs end to end.

Verification

./hack/hero-demo/run.sh          # prints the 5-step scoreboard, exit 0
./hack/hero-demo/run.sh --step 2
RUN_LIVE_STEPS=1 AX_BIN=<ax> ./hack/hero-demo/run.sh --remote-context <kube-context>
  • The default run, --step, --help and a bad --step all behave as expected.
  • Live mode was checked against stub ax binaries that always succeed or always fail. It reports PASS/STUB, or FAIL with the error shown, and still prints the scoreboard and exits 0. I didn't run it against a real cluster.
  • All three manifests decode with the strict v1alpha1 YAML decoder and pass ValidateWorkspace / ValidateTask.
  • The workspace setup commands produce a test that python3 -m unittest discover finds and passes.

Add examples/hero-demo/, one script and three manifests for the 5-step
v0.1 hero demo, so each step's DRI wires their piece into run.sh on main
instead of keeping a separate demo branch.

- run.sh runs the five steps in order and prints a scoreboard
  (PASS / STUB / FAIL). By default it makes no cluster calls. With
  RUN_LIVE_STEPS=1 it runs what works on main today: ax get workspaces,
  ax apply of both manifests, and resume/suspend/resume of the starter
  task; with --remote-context it applies the manifests to that cluster.
  Everything else is a STUB with a TODO(@owner).
- workspace.yaml, task-starter.yaml and task-custom.yaml use the
  v1alpha1 schema on main (metadata.atespace, spec.profile and
  spec.setup on Workspace, spec.image/command/resources/workspace on
  Task; the starter goal goes in spec.config.prompt until google#587).
- The setup test is a unittest.TestCase, so the custom task's
  python3 -m unittest discover finds it without pytest.

Verification:
  ./examples/hero-demo/run.sh                        # prints the scoreboard, exit 0
  ./examples/hero-demo/run.sh --step 3
  RUN_LIVE_STEPS=1 AX_BIN=<ax> ./examples/hero-demo/run.sh --remote-context <ctx>
The manifests decode with the strict v1alpha1 YAML decoder and pass
ValidateWorkspace/ValidateTask. Live mode was exercised against stub ax
binaries, not a real cluster.
@mayawang

Copy link
Copy Markdown
Collaborator Author

@siyuanfoundation @MushuEE could one of you approve? Siyuan since the manifests track #587, Grant since Kind E2E will run this. @YoyinZyc @itssimrank FYI since your steps live in run.sh

Comment thread examples/hero-demo/README.md Resolved
examples/ is where developers learn AX, and this is a development
harness that stays mostly stubs until its pieces land, so it moves to
hack/hero-demo/ next to the other dev and CI scripts.

- The README now just says what the harness does and how to run it.
- TODOs name GitHub handles; Step 2 (warm snapshots) is YoyinZyc.
- The starter image is a registry.example.com placeholder, and the
  workspace uses the server's default task image, instead of
  unpublished image names.

Verification:
  ./hack/hero-demo/run.sh                        # prints the scoreboard, exit 0
  ./hack/hero-demo/run.sh --step 2
  RUN_LIVE_STEPS=1 AX_BIN=<ax> ./hack/hero-demo/run.sh --remote-context <ctx>
The manifests still decode with the strict v1alpha1 YAML decoder and pass
ValidateWorkspace/ValidateTask. Live mode was exercised against stub ax
binaries, not a real cluster.
@mayawang mayawang changed the title examples: add the v0.1 hero demo harness hack: add the v0.1 hero demo harness Nov 14, 2026
…eholder

TODOs now name aprajitaarora13 for the Session turn and Raji14 for the
Studio health check. The starter image is <starter-image>@sha256:<digest>,
pointing at github.com/agentexecutor/images, until the first digest is
published.

Verification:
  ./hack/hero-demo/run.sh   # prints the scoreboard, exit 0
The manifests still decode with the strict v1alpha1 YAML decoder and pass
ValidateWorkspace/ValidateTask.
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