Skip to content

refactor!: remove everything deprecated for hud v0.7.0 - #895

Merged
jdchawla29 merged 8 commits into
mainfrom
ws/v7-removals
Nov 28, 2026
Merged

jdchawla29 merged 8 commits into
mainfrom
ws/v7-removals

Conversation

@jdchawla29

@jdchawla29 jdchawla29 commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Removes what released 0.6.x versions warn that hud v0.7.0 removes or changes. Each deprecated form goes completely: its code path, its warning, its tests and its doc mentions. Where a form had a replacement, only the replacement remains. Where the warning said that v0.7.0 raises, it now raises. hud.utils.deprecation goes with its last caller.

The provider tool agents are removed. The claude, openai and openai_compatible agent types now run Claude Code, Codex and Pi. gemini stays as a name that refuses until there is a Gemini CLI agent.

Changes

One commit per area. hud.train comes first so every commit imports and lints on its own.

Removed

Removed Use instead
hud.train (TrainingClient and its types), hud.TrainingClient, the train extra Your own trainer on HUD rollouts, as the fireworks-rl-training cookbook does
HUD_RL_URL (settings.hud_rl_url) Nothing; its only reader was TrainingClient
hud models fork, hud models checkpoints, hud models head Nothing in the SDK; hud models list stays
Names served from retired paths: runtime names from hud, hud.eval, hud.eval.runtime hud.runtime
hud.Connection, hud.environment.Capability hud.capabilities
hud.connect hud.clients.connect
hud.SyncPlan, hud.eval.SyncPlan, everything in hud.eval.sync hud.cli.tasksets
hud.instrument Nothing; see hud.telemetry.instrument below
hud.eval.Grade, Job, Run, Task, Taskset, Trace hud
hud.eval.rollout hud.eval.run.rollout
hud.environment.Peer hud.environment.egress.Peer
hud.environment.DEFAULT_SYSTEM_MOUNTS, MountKind hud.environment.workspace
hud.types.EvaluationResult, hud.types.SubScore hud.graders.SubScore (EvaluationResult is removed, see below)
hud.environment.arguments (PromptArg, DataFileArg, DataFilesArg, GradingArg, DataFileRef) Field(json_schema_extra={"x-hud-hint": ...}) on the argument; your own file_id/path model
hud.telemetry.instrument Steps recorded through the run (run.record(step))
EvaluationResult Yield a hud.Grade (is_error= in place of isError=)
combine_any, combine_all SubScore(name=..., value=max(...)/min(...), weight=..., children=subscores)
Grade.evaluation, Trace.evaluation grade.to_summary()
Trace.is_truncated trace.stop_reason
len(trace) len(trace.steps)
Step.emit hud.eval.run.export_step(trace_id, step)
Job.start Job(name=...) passed as job=
AgentConfig.checkpoint_name model
ClaudeCLIConfig.max_steps (Claude Code's --max-turns) timeout_seconds
HUDRuntime(runtime_url=...) HUD_RUNTIME_URL
Capability.cdp(...) Capability(name="browser", protocol="cdp/1.3", url=...)
Workspace(host_key_path=...), Workspace(authorized_client_keys=...) (also through env.workspace) Nothing; the workspace generates its keys in credentials_dir
hud eval --remote --runtime hosted
hud eval --full --all
hud eval --group-size --group
.hud_eval.toml hud eval flags and --config key=<json>
hud init --preset / -p --template / -t
hud jobs <job-id> hud jobs get <job-id>
hud trace <trace-id> hud trace get <trace-id>
hud jobs, hud qa, hud sync without a subcommand hud jobs list, hud qa list, hud sync tasks; the bare group prints its help
hud project create -C <dir>, hud project use -C <dir> hud project -C <dir> create, hud project -C <dir> use
hud --version hud version
hud cancel (hidden, deprecated without a version) hud jobs cancel
ClaudeAgent / ClaudeConfig (agent type claude) ClaudeCLIAgent / ClaudeCLIConfig; claude now runs it
OpenAIAgent / OpenAIConfig (agent type openai) CodexCLIAgent / CodexCLIConfig; openai now runs it
OpenAIChatAgent / OpenAIChatConfig (agent type openai_compatible) PiAgent / PiConfig, with OPENAI_BASE_URL / OPENAI_API_KEY for a custom endpoint; openai_compatible now runs it
GeminiAgent / GeminiConfig (agent type gemini) None yet; gemini raises, naming that there is no Gemini agent
ToolAgent, ToolAgentConfig, hud.agents.tools, the auto-respond helper Agent with run.record(step) for a custom loop
hud eval --max-steps --config timeout_seconds=...
hud eval --auto-respond Nothing; the CLI agents run their own loop
build_model_client; build_gateway_client(provider) build_gateway_client(), the judge's OpenAI client
The anthropic and google-genai dependencies, the bedrock extra, GEMINI_API_KEY, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION Nothing; only the provider agents used them

Warnings that become errors

Was a warning Now
An agent config key the config does not define (ignored) ValidationError naming the key. Unknown keys nested in the provider SDK types a config holds are refused the same way. This replaces OpenAIConfig's own declared-keys check.
A Grade whose subscores' value x weight sum differs from its reward by more than 0.01 ValidationError; the task's grade is a grading error
combine with positive weights not summing to 1.0 (within 0.01) ValueError; a grading error
LLMJudgeGrader with a negative criterion weight ValueError before any judge call; a grading error
A tasks.grade frame with a boolean score or a mistyped done, isError, content, info or subscores HudProtocolError naming each field
Job.reward with no graded trace (returned 0.0) ValueError naming the error count
A .hud/config.json in the hud 0.6.17 format (camelCase ids, no scope) Refused; the error says to delete it and link the directory again

Smaller consequences:

  • AgentType.of names an agent claude_cli, codex_cli or pi, so HostedRuntime sends a name that resolves to the same agent on every platform release.
  • create_agent no longer has its own api_key/base_url check; the config refuses them as unknown keys.
  • LLMJudgeGrader's rubric value is met weight over total weight, since no weight is negative. Every criterion is sent to the judge as positive, as non-negative criteria already were.
  • The Claude CLI agent no longer passes --max-turns, so its error_max_turns result mapping is gone.
  • Workspace.ssh_client_key_path is always set, because the workspace always generates the client key.
  • CLI analytics no longer special-cases --version. A flags-only invocation is recorded as help.
  • uv.lock drops torch and its dependencies.

Temporary

No built-in agent runs an environment without an ssh workspace now. That includes the blank and cua templates, whose READMEs say so. Until the follow-up lands, which is agent-ready templates and an agent box for environments without a workspace:

  • The template e2e lanes still run init, task list and each template's own checks for every template. The hud eval rollout runs only in the live and hosted lanes, and only for argument-hints and coding. It is skipped for blank and cua, and in the per-PR lane, which has no stand-in CLI inside a generated template's workspace. Each skip reason says it is temporary.
  • The daytona cookbook's scripted local run is skipped, with a temporary reason.
  • The argument-hints and coding templates and the daytona cookbook install Claude Code 2.1.326 (checksum-pinned, amd64 and arm64) in their images, under a comment marking it temporary.

Verification

  • uv run ruff format --check ., uv run ruff check . and uv run ty check pass. Each commit lints and imports hud, hud.agents, hud.cli.__main__, hud.environment, hud.eval.run, hud.runtime and hud.graders on its own.
  • New or rewritten tests, each failing with its change reverted:
    • combine with weights summing to 1.1 is a grading error.
    • A negative judge criterion is a grading error and makes no judge request.
    • Loading PiAgent with an unknown key raises, naming it.
    • A 0.6.17-format .hud/config.json is refused and left unchanged.
  • Tests that used removed forms now use the kept ones: .hud_eval.toml and --remote/--group-size in tests/cli/test_eval.py, hud trace <id>, and unscoped link files in tests/cli/test_sync.py and tests/cli/test_commands.py.
  • Bare hud jobs, hud qa and hud sync print help. hud --version and hud cancel are usage errors. Each was run through the real CLI.
  • hud eval tests run Pi against a stand-in pi executable in a workspace. The stand-in sends its model request as Pi does, from the models.json it was given, and the routing test checks the request the scripted model service received: its model, key, host and sampling parameters. Breaking the key or the sampling parameters Pi is given fails it. The hud trace, hosted and span tests run Pi or a scripted agent in place of OpenAIChatAgent. The hosted test checks that claude, openai and openai_compatible agents are submitted as claude_cli, codex_cli and pi.
  • A new CLI test checks that hud eval ... gemini is refused with the no-agent message and never starts a CLI.
  • The Claude Code install step was built and run (claude --version prints 2.1.326) for linux/amd64 and linux/arm64. The per-PR template lane ran init, checks and the temporary skip for blank, argument-hints and cua.
  • Not run here: the live and hosted template lanes with Claude Code in the deployed images.
  • tests/agents, tests/cli, tests/runtime, tests/telemetry, tests/graders, tests/eval, tests/environment and tests/capabilities (-m "not e2e and not live"): 422 passed on the final tree. The cookbook import checks pass.

Compatibility

Breaking, for hud v0.7.0 on main. Every removed form warned in released 0.6.x that v0.7.0 removes or changes it, and release/0.6 keeps those warnings. The exceptions go with the provider agents that used them: the anthropic and google-genai dependencies, the bedrock extra, GEMINI_API_KEY and the AWS settings, and build_model_client. hud cancel was hidden and marked deprecated without a version.

Three changes reach stored data or deployed environments:

  • A task's agent_config merges into the hosted agent config. An unknown key in it, such as max_steps on a CLI agent, now fails validation instead of being dropped. The task reference example no longer shows max_steps.
  • .hud/config.json files from hud 0.6.17 and earlier must be relinked.
  • A hosted trace whose recorded grade frame comes from an older image with a mistyped field now reads as an error, not as a loosely parsed grade.

🤖 Generated with Claude Code


Note

High Risk
Removes core agent implementations and many public APIs (training, eval config file, deprecation imports); changes default agent behavior and tightens validation on grades, jobs, and hosted configs.

Overview
This is a breaking v0.7.0 cleanup that deletes deprecated APIs warned in 0.6.x rather than keeping compatibility shims.

Agents: The SDK removes the provider ToolAgent stack (ClaudeAgent, OpenAIAgent, GeminiAgent, OpenAIChatAgent and their tool modules). Built-in routing now only exposes CLI harnesses: claude/claude_cli → ClaudeCLIAgent, openai/codex_cli → CodexCLIAgent, openai_compatible/pi → PiAgent; gemini is an error until a Gemini CLI exists. ClaudeCLIAgent no longer passes --max-turns / maps error_max_turns.

Rollouts & grading: Deprecation re-exports from hud and hud.eval are gone. EvaluationResult → hud.Grade (is_error=). combine requires positive weights to sum to 1.0; LLMJudgeGrader rejects negative criterion weights. Grade frames get stricter protocol/validation (subscores must explain reward; Job.reward raises when nothing graded).

CLI & config: Docs and references drop .hud_eval.toml, --auto-respond, and provider-agent migration guides. Daytona/cookbook code uses ClaudeCLIAgent, Job(name=...), and plain create_agent(model).

CI / images (temporary): Sandbox CI and Dockerfile.hud for coding, argument-hints, and Daytona pin-install Claude Code 2.1.326 so hud eval ... claude works in sandboxes until runtimes supply the CLI. Blank/CUA READMEs note no built-in agent without an ssh workspace.

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

…ud models fork/checkpoints/head

The training client leaves the SDK. Train on HUD rollouts with your own
trainer, as the fireworks-rl-training cookbook does. hud models list stays.
hud, hud.eval, hud.environment and hud.types no longer serve names that moved,
and hud.eval.runtime, hud.eval.sync and hud.environment.arguments are gone.
Import each name from its current module: hud.runtime, hud.capabilities,
hud.clients, hud.cli.tasksets, hud.graders, hud.eval.run or hud.environment.egress
and hud.environment.workspace. An argument's console editor is an x-hud-hint in
its JSON Schema.
Steps a harness records through the run (run.record) are the trace's record;
the debug-span decorator is gone.
…ules raise

Removed: EvaluationResult (yield a hud.Grade), combine_any and combine_all
(build the SubScore directly), Grade.evaluation and Trace.evaluation
(to_summary()), Trace.is_truncated (trace.stop_reason), len(trace)
(len(trace.steps)), Step.emit (hud.eval.run.export_step) and Job.start
(construct Job(name=...) and pass it as job=).

What warned that hud v0.7.0 raises now raises:
- a Grade whose subscores' value x weight does not sum to its reward;
- combine with positive weights that don't sum to 1.0;
- LLMJudgeGrader with a negative criterion weight, before any judge call;
- a tasks.grade frame with a boolean score or a mistyped done, isError,
  content, info or subscores;
- Job.reward with no graded trace.
…nt_name and ClaudeCLIConfig.max_steps

An agent config refuses a key it does not define instead of ignoring it, and
that holds for keys nested in the provider SDK types it holds. checkpoint_name
is no longer read as model. ClaudeCLIConfig.max_steps is gone: Claude Code runs
its own loop and timeout_seconds bounds the run.
…rkspace key arguments

HUD_RUNTIME_URL sets the runtime endpoint. A browser is published with the
Capability constructor, Capability(name="browser", protocol="cdp/1.3", url=...).
Workspace and env.workspace no longer take host_key_path or
authorized_client_keys; the workspace generates its host and client keys in
credentials_dir, so ssh_client_key_path is always set.
Removed, with the kept form:
- hud eval --remote: --runtime hosted
- hud eval --full: --all
- hud eval --group-size: --group
- .hud_eval.toml: hud eval flags and --config key=<json>
- hud init --preset/-p: --template/-t
- hud jobs <job-id>, hud trace <trace-id>: hud jobs get, hud trace get
- hud jobs, hud qa and hud sync without a subcommand: hud jobs list,
  hud qa list, hud sync tasks; each group now prints its help
- hud project create|use -C <dir>: hud project -C <dir> create|use
- hud --version: hud version
- hud cancel: hud jobs cancel

A .hud/config.json in the hud 0.6.17 format (camelCase ids, no scope) is
refused with the fix: delete it and link the directory again.
@jdchawla29
jdchawla29 marked this pull request as ready for review November 28, 2026 23:27
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T23:40:03.071037Z a453b2c New commits
ℹ️ 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.

@jdchawla29
jdchawla29 force-pushed the ws/v7-removals branch 2 times, most recently from ea82eda to 456df71 Compare November 28, 2026 23:30

@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: 456df71ce8

ℹ️ 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 tests/cli/test_eval.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 1 potential issue.

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 456df71. Configure here.

Comment thread hud/graders/base.py Resolved
…he CLI agents

ClaudeAgent, OpenAIAgent, GeminiAgent, OpenAIChatAgent, ToolAgent, their configs
(ClaudeConfig, OpenAIConfig, GeminiConfig, OpenAIChatConfig, ToolAgentConfig),
hud.agents.tools and the auto-respond helper are removed, along with
hud eval --max-steps and --auto-respond.

Agent types resolve to the CLI agents: claude and claude_cli run Claude Code,
openai and codex_cli run Codex, openai_compatible and pi run Pi. gemini has no
agent yet; naming it raises. AgentType.of names an agent claude_cli, codex_cli
or pi, so HostedRuntime sends a name every release resolves the same way.

Only the CLI agents and the LLM judge call models now. build_model_client is
removed, build_gateway_client returns the judge's OpenAI client, and the
anthropic and google-genai dependencies, the bedrock extra, and the
GEMINI_API_KEY and AWS settings go.

The CLI agents run in an ssh workspace, so no built-in agent runs an
environment without one, such as the blank and cua templates; their READMEs
say so. hud eval tests run Pi against a stand-in pi executable in a workspace,
which sends its model request to the scripted model service as Pi does.

Temporarily, the template and cookbook e2e lanes run the hud eval rollout only
where Claude Code can run: the live and hosted lanes, for templates with a
workspace. The argument-hints and coding templates and the daytona cookbook
install a pinned Claude Code in their images; every skip names its reason.
The Sandbox lane installs the same Claude Code under /usr, which a sandboxed
workspace sees, for the coding template's live rollout.
@jdchawla29
jdchawla29 merged commit 6e35196 into main Nov 28, 2026
11 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.

1 participant