feat(runtime): RuntimeData on RuntimeConfig for platform data files - #661
Open
andrew-vogulkin wants to merge 2 commits into
Open
andrew-vogulkin wants to merge 2 commits into
andrew-vogulkin wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
RuntimeDatatoRuntimeConfigso a task can declare platform data files, by data-file id, that the hosted rollout box provides to the environment under a mount path. This is the SDK half of the rollout data layer; the control plane resolves ids to storage and the EC2 daemon mounts them (monorepo change follows).RuntimeDataFile(file_id, path)andRuntimeData(files, mount_path, mode)inhud/eval/runtime/core.py;RuntimeConfig.data, omitted from JSON when unset, replaced whole bywith_overrides.hud.eval.runtime,hud.evalandhud.docs/v6/reference/runtime.mdx.hud/eval/tests/test_runtime_data.py(defaults, serialization, malformed payloads, override semantics); export test updated.The block is declarative: which files and where they appear. No bucket or prefix is ever named by a task. Files are bound into the container writable (
overlay, the default, copy-on-write to local disk) or read-only (readonly). HUD-hosted EC2 rollouts only; other runtimes rejectdata.Test plan
pytest hud/eval/tests/test_runtime_data.py hud/tests/test_init_module.py hud/tests/test_init.py(12 passed)/data; each container saw exactly its own file🤖 Generated with Claude Code
Note
Low Risk
Additive, optional RuntimeConfig schema and exports with pydantic validation; mounting and enforcement live in the platform, not in SDK runtime providers in this PR.
Overview
Adds
RuntimeData/RuntimeDataFileand an optionalRuntimeConfig.datablock so tasks can declare HUD Data files by id and where they appear in the environment (default mount/data,overlayorreadonlymode). The SDK serializes the block like other nested runtime options (omitted when unset) andwith_overridesreplaces the wholedatablock rather than merging file lists.RuntimeDataandRuntimeDataFileare exported fromhud,hud.eval, andhud.eval.runtime. Reference docs gain a Data files section describing EC2 hosted-rollout behavior, contrast withDataFileArg, and unsupported local/cloud runtimes. New tests cover defaults, JSON shape, validation failures, and override semantics.Reviewed by Cursor Bugbot for commit 93dffa6. Bugbot is set up for automated code reviews on this repo. Configure here.