Repository navigation
refactor!: remove everything deprecated for hud v0.7.0 - #895
Conversation
…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.
Codex Review Summary: ✅ CompletedThis 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. |
ea82eda to
456df71
Compare
There was a problem hiding this comment.
💡 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".
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ 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.
…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.
456df71 to
a453b2c
Compare

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.deprecationgoes with its last caller.The provider tool agents are removed. The
claude,openaiandopenai_compatibleagent types now run Claude Code, Codex and Pi.geministays as a name that refuses until there is a Gemini CLI agent.Changes
One commit per area.
hud.traincomes first so every commit imports and lints on its own.Removed
hud.train(TrainingClientand its types),hud.TrainingClient, thetrainextrafireworks-rl-trainingcookbook doesHUD_RL_URL(settings.hud_rl_url)TrainingClienthud models fork,hud models checkpoints,hud models headhud models liststayshud,hud.eval,hud.eval.runtimehud.runtimehud.Connection,hud.environment.Capabilityhud.capabilitieshud.connecthud.clients.connecthud.SyncPlan,hud.eval.SyncPlan, everything inhud.eval.synchud.cli.tasksetshud.instrumenthud.telemetry.instrumentbelowhud.eval.Grade,Job,Run,Task,Taskset,Tracehudhud.eval.rollouthud.eval.run.rollouthud.environment.Peerhud.environment.egress.Peerhud.environment.DEFAULT_SYSTEM_MOUNTS,MountKindhud.environment.workspacehud.types.EvaluationResult,hud.types.SubScorehud.graders.SubScore(EvaluationResultis removed, see below)hud.environment.arguments(PromptArg,DataFileArg,DataFilesArg,GradingArg,DataFileRef)Field(json_schema_extra={"x-hud-hint": ...})on the argument; your ownfile_id/pathmodelhud.telemetry.instrumentrun.record(step))EvaluationResulthud.Grade(is_error=in place ofisError=)combine_any,combine_allSubScore(name=..., value=max(...)/min(...), weight=..., children=subscores)Grade.evaluation,Trace.evaluationgrade.to_summary()Trace.is_truncatedtrace.stop_reasonlen(trace)len(trace.steps)Step.emithud.eval.run.export_step(trace_id, step)Job.startJob(name=...)passed asjob=AgentConfig.checkpoint_namemodelClaudeCLIConfig.max_steps(Claude Code's--max-turns)timeout_secondsHUDRuntime(runtime_url=...)HUD_RUNTIME_URLCapability.cdp(...)Capability(name="browser", protocol="cdp/1.3", url=...)Workspace(host_key_path=...),Workspace(authorized_client_keys=...)(also throughenv.workspace)credentials_dirhud eval --remote--runtime hostedhud eval --full--allhud eval --group-size--group.hud_eval.tomlhud evalflags and--config key=<json>hud init --preset/-p--template/-thud jobs <job-id>hud jobs get <job-id>hud trace <trace-id>hud trace get <trace-id>hud jobs,hud qa,hud syncwithout a subcommandhud jobs list,hud qa list,hud sync tasks; the bare group prints its helphud project create -C <dir>,hud project use -C <dir>hud project -C <dir> create,hud project -C <dir> usehud --versionhud versionhud cancel(hidden, deprecated without a version)hud jobs cancelClaudeAgent/ClaudeConfig(agent typeclaude)ClaudeCLIAgent/ClaudeCLIConfig;claudenow runs itOpenAIAgent/OpenAIConfig(agent typeopenai)CodexCLIAgent/CodexCLIConfig;openainow runs itOpenAIChatAgent/OpenAIChatConfig(agent typeopenai_compatible)PiAgent/PiConfig, withOPENAI_BASE_URL/OPENAI_API_KEYfor a custom endpoint;openai_compatiblenow runs itGeminiAgent/GeminiConfig(agent typegemini)geminiraises, naming that there is no Gemini agentToolAgent,ToolAgentConfig,hud.agents.tools, the auto-respond helperAgentwithrun.record(step)for a custom loophud eval --max-steps--config timeout_seconds=...hud eval --auto-respondbuild_model_client;build_gateway_client(provider)build_gateway_client(), the judge's OpenAI clientanthropicandgoogle-genaidependencies, thebedrockextra,GEMINI_API_KEY,AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_REGIONWarnings that become errors
ValidationErrornaming the key. Unknown keys nested in the provider SDK types a config holds are refused the same way. This replacesOpenAIConfig's own declared-keys check.Gradewhose subscores'value x weightsum differs from its reward by more than 0.01ValidationError; the task's grade is a grading errorcombinewith positive weights not summing to 1.0 (within 0.01)ValueError; a grading errorLLMJudgeGraderwith a negative criterion weightValueErrorbefore any judge call; a grading errortasks.gradeframe with a booleanscoreor a mistypeddone,isError,content,infoorsubscoresHudProtocolErrornaming each fieldJob.rewardwith no graded trace (returned 0.0)ValueErrornaming the error count.hud/config.jsonin the hud 0.6.17 format (camelCase ids, noscope)Smaller consequences:
AgentType.ofnames an agentclaude_cli,codex_cliorpi, soHostedRuntimesends a name that resolves to the same agent on every platform release.create_agentno longer has its ownapi_key/base_urlcheck; 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 aspositive, as non-negative criteria already were.--max-turns, so itserror_max_turnsresult mapping is gone.Workspace.ssh_client_key_pathis always set, because the workspace always generates the client key.--version. A flags-only invocation is recorded ashelp.uv.lockdropstorchand its dependencies.Temporary
No built-in agent runs an environment without an
sshworkspace now. That includes theblankandcuatemplates, whose READMEs say so. Until the follow-up lands, which is agent-ready templates and an agent box for environments without a workspace:hud evalrollout runs only in the live and hosted lanes, and only forargument-hintsandcoding. It is skipped forblankandcua, 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.argument-hintsandcodingtemplates 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 .anduv run ty checkpass. Each commit lints and importshud,hud.agents,hud.cli.__main__,hud.environment,hud.eval.run,hud.runtimeandhud.graderson its own.combinewith weights summing to 1.1 is a grading error.PiAgentwith an unknown key raises, naming it..hud/config.jsonis refused and left unchanged..hud_eval.tomland--remote/--group-sizeintests/cli/test_eval.py,hud trace <id>, and unscoped link files intests/cli/test_sync.pyandtests/cli/test_commands.py.hud jobs,hud qaandhud syncprint help.hud --versionandhud cancelare usage errors. Each was run through the real CLI.hud evaltests run Pi against a stand-inpiexecutable in a workspace. The stand-in sends its model request as Pi does, from themodels.jsonit 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. Thehud trace, hosted and span tests run Pi or a scripted agent in place ofOpenAIChatAgent. The hosted test checks thatclaude,openaiandopenai_compatibleagents are submitted asclaude_cli,codex_cliandpi.hud eval ... geminiis refused with the no-agent message and never starts a CLI.claude --versionprints 2.1.326) for linux/amd64 and linux/arm64. The per-PR template lane ran init, checks and the temporary skip forblank,argument-hintsandcua.tests/agents,tests/cli,tests/runtime,tests/telemetry,tests/graders,tests/eval,tests/environmentandtests/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, andrelease/0.6keeps those warnings. The exceptions go with the provider agents that used them: theanthropicandgoogle-genaidependencies, thebedrockextra,GEMINI_API_KEYand the AWS settings, andbuild_model_client.hud cancelwas hidden and marked deprecated without a version.Three changes reach stored data or deployed environments:
agent_configmerges into the hosted agent config. An unknown key in it, such asmax_stepson a CLI agent, now fails validation instead of being dropped. The task reference example no longer showsmax_steps..hud/config.jsonfiles from hud 0.6.17 and earlier must be relinked.🤖 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
ToolAgentstack (ClaudeAgent,OpenAIAgent,GeminiAgent,OpenAIChatAgentand their tool modules). Built-in routing now only exposes CLI harnesses:claude/claude_cli→ClaudeCLIAgent,openai/codex_cli→CodexCLIAgent,openai_compatible/pi→PiAgent;geminiis an error until a Gemini CLI exists.ClaudeCLIAgentno longer passes--max-turns/ mapserror_max_turns.Rollouts & grading: Deprecation re-exports from
hudandhud.evalare gone.EvaluationResult→hud.Grade(is_error=).combinerequires positive weights to sum to 1.0;LLMJudgeGraderrejects negative criterion weights. Grade frames get stricter protocol/validation (subscores must explain reward;Job.rewardraises when nothing graded).CLI & config: Docs and references drop
.hud_eval.toml,--auto-respond, and provider-agent migration guides. Daytona/cookbook code usesClaudeCLIAgent,Job(name=...), and plaincreate_agent(model).CI / images (temporary): Sandbox CI and
Dockerfile.hudforcoding,argument-hints, and Daytona pin-install Claude Code 2.1.326 sohud eval ... claudeworks in sandboxes until runtimes supply the CLI. Blank/CUA READMEs note no built-in agent without ansshworkspace.Reviewed by Cursor Bugbot for commit a453b2c. Bugbot is set up for automated code reviews on this repo. Configure here.