Expand description
RL project bundle download (LAB-2769)
mecha10 run rl --download-bundle-only (on the trainer host) downloads and unpacks a
robot-scoped RL project bundle - a tar.gz of a project’s configs/rl/ (job/task
definitions) and configs/simulation/{models,environments} (the assets those jobs
reference) - before training starts. See “RL: Vision and Phased Roadmap” doc.
This bundle is deliberately separate from mecha10 config push (mecha10_robot_config’s
per-key config sync): that one syncs configs/ file-by-file to the robot-config KV service
for the robot/launcher to consume at runtime, while this one is a purpose-built blob
(Minio-backed via LAB-2767, not the KV store) for exactly what a remote/Kestra-dispatched
training run needs.
Functions§
- download_
rl_ bundle - Download the RL project bundle previously uploaded for
robot_id- LAB-2769’s download side of LAB-2767’s endpoint, called bymecha10 run rl --download-bundle-onlyon the trainer host. Authenticated identically toupload_rl_bundle(Authorization: Bearer <api_key>+X-User-ID); returns the raw tar.gz bytes forunpack_rl_bundle_archiveto unpack. - unpack_
rl_ bundle_ archive - Unpack an RL project bundle archive (as built by [
build_rl_bundle_archive] and returned bydownload_rl_bundle) intodest_root- entries land atdest_root/configs/rl/...and/ordest_root/configs/simulation/{models,environments}/..., mirroring the project-relative layout the archive was built from. Overwrites files already present at the destination; does not delete anything at the destination that’s absent from the archive.