Exercise example task lifecycles after merge - #652
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bbafa7f61e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a73180bb2c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3817daf258
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Run the four example environments after pushes to main, using the existing approval-gated pre-release environment.
This PR also fixes the workspace hosts bind source being unreadable after the shell UID drop without relaxing SSH credential permissions. CUA and argument-hints use the container's runtime HUD_API_KEY for storage and grading instead of mutating global settings from task arguments. Concurrent-session regression tests cover that boundary.
Validation: 91 focused CLI tests, 45 rollout tests, and 41 example tests passed locally. All four projects generated successfully; checkout-wheel installation and task export were exercised. Trace assertions accepted real local blank rollouts with both zero and full scores. Ruff, focused type checking, YAML parsing, and diff checks passed.
Live hosted deployment, inference, storage, and trace ingestion have not yet been exercised by the new job. That run requires this workflow on main and approval through pre-release. No release or environment-protection changes are included.
Note
Medium Risk
CI now depends on live deploy, inference, and trace ingestion with secrets; workspace bwrap and grading path changes affect sandboxed agent environments on Linux.
Overview
CI now validates the four example environments on main (and via
workflow_dispatch) using the approval-gatedpre-releaseenvironment instead of building and probing local Docker images. Thetemplatesjob installs each init template with a wheel from the checkout, runs unit checks,hud deploy --no-env, then a cappedhud eval(gateway, HUD runtime, 15m timeout).scripts/example_lifecycle.pyprepares.hud/ci-tasks.json(including a real data file for argument-hints), asserts trace/setup/grade health, and verifieshud trace --jsonagainst the platform without local telemetry fallback; traces are uploaded as artifacts.Runtime credential model: argument-hints and CUA stop using the task
hud_api_keyargument for API calls; staging, judging, and file fetch use the containerHUD_API_KEYfrom settings. Docs and regression tests cover concurrent sessions and staging auth.Coding grading replaces
JUnitGrader/BashGraderwithgrade_tests, which runs hidden tests throughWorkspace.runat environment scope (including after session termination), with Linux/bubblewrap integration tests.Workspace isolation fix: bubblewrap now creates the parent directory of the guest bind path so dropped shell users can read/write paths like
/workspaceand/tmp/hud-coding/.../workspace.CLI:
hud traceis a top-level command (not a Typer sub-app) with flexible--jsonflag ordering.Reviewed by Cursor Bugbot for commit d999a9f. Bugbot is set up for automated code reviews on this repo. Configure here.