Skip to content

feat(environments): consolidate canonical templates and operational demos - #731

Closed
shfunc wants to merge 10 commits into
lukass/featured-robotics-envfrom
ilya/hud-3155-featured-templates
Closed

shfunc wants to merge 10 commits into
lukass/featured-robotics-envfrom
ilya/hud-3155-featured-templates

Conversation

@shfunc

@shfunc shfunc commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Featured examples had duplicate sources and task definitions that diverged from the platform demos. This keeps one flat environments/<name>/ source per example and binds portable task rows through native templates, including after hud init renames a project.

  • Five starter choices: coding, cua, operational-data, browser-use, blank. Keep argument-hints/file-analysis and liveweb as aliases. Libbet remains an advanced source example outside the picker.
  • Operational-data serves the five existing synthetic cases through one runtime: exported Slack/Jira/calendar tools plus attached documents, supplier reconciliation, and dispatch planning. Bundle the learner inputs so the examples need no account-specific file IDs. Preserve the approved prompts, rubrics, and source files.
  • Browser-use combines visual browser work and the three LiveWeb examples in the same Chromium desktop, with CDP, RFB, SSH and screenshot tools. Preserve the four task slugs.
  • Coding starts with the generic profile-crash bugfix; advanced Flask cases remain available.
  • Example builds use SDK main, or exactly one supplied .hud-sdk/hud-*.whl. Update the existing manual pre-release checks to use those sources directly.
  • Operational judging requests 16,384 output tokens; workbook checks remain deterministic. The shared SDK judge implementation, tests, and API docs are extracted into fix(graders): validate judge verdicts and honor token budgets #738.

Stacked on Lucas’s updated LIBERO PR #726. Merge #726 and the shared grader fix #738 before this PR. Then update this branch from main and retarget it to main. Robotics keeps its own flat environment and manual simulator setup. The combined source resolves Git’s ambiguous config/lockfile renames: the SDK/template sources are preserved and no environments/featured/ duplicates remain.

Review fixes preserve full-precision rubric scoring, retain the final screenshot, bound expanded Slack ZIP inputs before reading, and clear Jira resolution metadata on reopen. Embedded JSON judgments preserve both MET and UNMET instead of falling through to a conflicting text verdict. Startup retries malformed or incomplete CDP/RFB probes until the readiness deadline. The cleanup removes unused helpers and workflow options, duplicate error handling, stale comments, and redundant test parameters.

Validation: all 24 hud init tests pass after the scope reduction. The latest browser suite passes all 32 tests; both Jira reopening regressions were rerun successfully. After extracting the shared grader fix, the operational suite still passes all 97 tests and the combined starter/browser suite passes all 56. Grader regression coverage is now in #738. Earlier checks also passed: naming 1, coding 13, Libbet 10, and all 11 robot tests against the combined source; 14 coding tests require Linux isolation and are skipped on this Mac. Repository-wide Ruff/format (390 files) and focused core type checks pass. All five source starter choices and three aliases scaffold and load with renamed task bindings. Five uv projects retain the exact supplied SDK wheel after resolution. All six non-robot example deployment archives include their runtime files and wheel, with external upload/build calls mocked. Workflow YAML parses.

Not verified in this pass: actual Docker builds/startup (Docker is stopped), new hosted/model runs, or empirical judging at the increased 16K budget. Installed SDK wheels gain the new starter paths with the next release; source checkouts work immediately. SDK credential protection (#732) and Claude computer-tool migration (#733) stay separate.


Note

Medium Risk
Large reshuffle of starter environments, Docker builds, and hosted pre-release evals; browser-use and operational-data add new grading and runtime paths that affect CI and deployments.

Overview
Consolidates example environments into flat environments/<name>/ trees, drops environments/featured/ duplicates, and retires the standalone argument-hints scaffold in favor of operational-data and expanded browser-use / coding templates.

hud init and docs now advertise five starters (coding, cua, operational-data, browser-use, blank) with aliases (argument-hints, file-analysis → operational-data; liveweb → browser-use). Templates default to SDK main and accept an optional .hud-sdk/hud-*.whl at image build time.

operational-data (per README in tree) bundles Slack/Jira/calendar MCP tools, document review, and five portable tasks via shared tasks.json + tasks.py binding.

browser-use grows into a full desktop stack (Xvfb, Chromium CDP, RFB, Supervisor): keeps the rental visual task, adds web-research with LiveWeb-style rubric/regex/visual grading (grader.py), canonical tasks.json for four slugs, and a slimmer hashed requirements.txt without pinning HUD in the lock.

coding moves task definitions to tasks.json (adds sentry-fix, keeps Flask SWE-bench cases), renames repository.bundle, and aligns Docker/ignore paths with wheel injection.

CI (pre-release.yml): matrix uses operational-data instead of argument-hints, drops Dockerfile sed hacks and HUD_CI_DATA_FILE_ID, simplifies example_lifecycle.py prepare, and bumps eval to claude-sonnet-5-5. .gitignore un-ignore rules follow environments/* instead of environments/featured/**.

Reviewed by Cursor Bugbot for commit 701fe07. Bugbot is set up for automated code reviews on this repo. Configure here.

@shfunc shfunc changed the title feat(environments): unify featured templates and add operational tasks feat(environments): consolidate canonical templates and operational demos Oct 21, 2026
@shfunc
shfunc changed the base branch from main to lukass/featured-robotics-env October 21, 2026 13:02
@shfunc
shfunc marked this pull request as ready for review October 21, 2026 21:38
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T21:44:51.703584Z 45c9c68 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread environments/browser-use/env.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 45c9c68e48

ℹ️ 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".

Comment thread environments/browser-use/grader.py Resolved
Comment thread environments/browser-use/grader.py Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

There are 3 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c927d7c. Configure here.

Comment thread environments/browser-use/grader.py Resolved
Comment thread environments/browser-use/env.py Resolved
Move the shared judge implementation, regression tests and API docs to #738. The operational-data template retains its configured judge budget and depends on that fix before release.
@jdchawla29

Copy link
Copy Markdown
Collaborator

Closing in favor of a narrower consolidation on current main; this conflicts with #700's template tests and CI.

@jdchawla29 jdchawla29 closed this Oct 27, 2026
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