Repository navigation
Add RHO: the rho template and Evolver, with a LIBERO example - #135
Draft
iamziyuzhao wants to merge 4 commits into
Draft
iamziyuzhao wants to merge 4 commits into
iamziyuzhao wants to merge 4 commits into
Conversation
RHO (arXiv:2606.16458) evolves a robot policy as a multi-file repository with HELIX's reflective evolution. The rho Evolver runs HELIX's own code (helix-evo 0.4.0, pinned in the rho dependency group) at its seams, one generation per training step: the instance-level Pareto frontier, parent selection, the stratified minibatch sampler, the acceptance criteria and the mutation prompt, on one shared random state. The mutator is a Codex or Claude Code session through the Base Agent in the evolver sandbox, launched as HELIX launches it, in a fresh agent home, with a simulator workspace per training task on its training seeds only (REaaS, through the cap-harness engine's service). A child is gated on the parent's minibatch, then on the staged validation, then scored on the rest of the validation split; finalize takes the frontier's best mean validation score. - template rho: solver/ (the policy repository, bundled by .hermit/bundle.py into the one program the harness runs) and its check - acting function rho.policy:run: the deployed policy (S4), no model - examples/libero/rho: the paper's two lanes (run.yaml, run_warm.yaml), a Luna variant and a smoke; tasks.sh writes the splits by seed: train 51-93 (1,290 instances), val 94-100 (210), test LIBERO-Pro 60 tasks x seeds 1-50 (3,000), test_base 30 tasks x 1-50 (1,500), REaaS rows on 51-93; its own task info, since the benchmark's describes LIBERO-Pro's perturbations, the test here; the paper's objective (A.1.4) - cap-harness judge: each seed's outcome and call trace as side_info for a row with diagnostics: true (RHO's training rows) - docs/methods/rho.md, the methods index, the CHANGELOG, the CI group Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A run that failed (the Trainer's status error or judge_error, scored 0.0) is no score of the program any more. In the seed's validation it fails the bootstrap, and the first step stops the run; in the parent's minibatch it skips the proposal; in the child's minibatch or validation it rejects the child, as HELIX rejects a child whose evaluation raised. A run_agent call that raised rejects the child too, and the search goes on from HELIX's next draw instead of trying the generation again on an unstratified minibatch. A step the Trainer stops, or whose child's evaluation reaches the run's budget, keeps the session's usage and Training State as it was at the step's start. The state directory is emptied after each session and Training State written back alone, so no note passes between generations' sessions and no leftover stops a later step. A folder a session closed is opened before removal, and a restore that fails fails the step with the session's usage. The README's in-distribution evaluation goes by the final adapter's tag, so it no longer replaces the test split's records and its row on the card, and lane 1 is evaluated only after lane 2 has started (lane 2's mutator can read lane 1's card). The method page's fidelity table adds the paper's diagnostics judge, the policy program's language, the unchanged child, the staged validation's order, the benchmark's name, failed runs, Hermes's turn cap and lane 2's card. Tests: the failure paths, the state directory, a failed restore, a failed bootstrap on the Trainer, the README's evaluation folders, and the REaaS from inside the evolver sandbox (the stand-in claude takes a `run` entry for it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
run.yaml's header gave the in-distribution evaluation as `--adapter final`, which replaces the test split's records in eval/final/ and its row on the card; it goes by the final adapter's tag now, as the README's does, and the config test reads every config's header as well as the README. A child that changed only notes has its parent's program: with ties admitted it would join the frontier as a second copy of its parent, so it is rejected unscored, as an unchanged child is. setup refuses to start without the simulator service (ASPIRE_SIM_URL and its /health) before the bootstrap's validation runs, and workspaces the service cannot make in a later step fail that mutation (HELIX's failed mutation) instead of raising out of every step. The template's bundler counts as a definition only a function, an import or a name assigned with `=`: changing a shared object (`REGISTRY[key] = ...`), a `+=`, or a loop variable two modules share is no longer refused; a loop variable that reuses a name another module defines still is. The configs shuffle the Trainer's own order, which it takes only after a failed step, so a generation run again takes two instances at random rather than two seeds of one task; the method page says how a stopped step is run again. The README and run.yaml's header evaluate lane 1 only after lane 2 has finished (one launch at a time per checkout). The fidelity table adds the final selection's tie-break (HELIX's first-added, the paper's coverage) and the run-artifact page's examples, which name a test task. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The evolver sandbox shows the mutator the learning material, every step's records of its two training instances, which HELIX's mutator never gets: the method page and the fidelity table say so now, and RHO's task info names the records where the sandbox shows them (/w/material). The template's bundler also counts a name bound by `:=` or by a `match` pattern as a top-level definition, and a `match` case body as top-level code; an `except ... as` name, bound and then deleted, is refused as a loop variable is when it reuses another module's name. Its walk over a module's scope is a loop, as ast.walk is, so that a deep expression the harness compiles does not stop it. The docs now say everywhere that lane 1 is evaluated after lane 2 has finished; the flowchart's check names the notes-only rejection; the staged pages' examples are described as they are (`libero_object_swap` task 0 on seed 1, in the saved-state mode); and the method page says what a simulator service lost for good costs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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 sugges
2EF4
tion 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.
Change
RHO (RHO: Your Coding Agent is Secretly a Roboticist, arXiv:2606.16458;
project; code: HELIX) learns a robot policy as a
multi-file Python repository. In training, a coding-agent mutator reads a parent repository's per-instance
diagnostics, runs programs in the robot environment and edits the repository; HELIX, RHO's optimizer, keeps a child
that beats its parent on the paired training minibatch and on a staged validation, on an instance-level Pareto
frontier. At deployment the frozen repository runs once per episode with no model in the loop (the paper's S4
surface).
This PR adds RHO as a method. The
rhoEvolver runs HELIX's own code (helix-evo 0.4.0, pinned to417ef2ein a newrhodependencygroup) at its seams, through Hermit's existing interfaces (
AgentEvolver,chooses_tasksandnext_tasks,run_agent,check_spec, Training State). A LIBERO example gives the training, validation and test configs, with thesplits kept apart by seed. The method page is docs/methods/rho.md, and the example's
README gives the splits and commands.
What it adds
rhoAgentEvolver, one HELIX generation per training step. It calls HELIX'sParetoFrontier,select_candidate,StratifiedBatchSampler(orEpochShuffledBatchSampler), the acceptance criteria withjudge_acceptance, andbuild_mutation_prompt, all on onerandom.Random(rng_seed)kept in Training State (state/rho.json) between steps. It declareschooses_tasks: each step's two instances are HELIX's minibatch.rhosolver/, the policy repository (main.pywithrun(task), its modules and notes); the fixed contractREADME.md,exports.yaml, and.hermit/withbundle.py(the repository as one ASPIRE program, standard library only) andcheck.py.hermit.agent.evolver.methods.rho.policy:runbundles the adapter with the template's own bundler (never the adapter's copy) and hands the program to the cap-harness judge asfix_code. It uses no model (supports = ()).<suite>-t<task>__s<seed>(HELIX's<task_family>__<trial_id>), the test rows, and the REaaS rows. It refuses seed sets that meet.run.yaml(lane 1),run_warm.yaml(lane 2),run_luna.yaml,smoke.yaml,objective.md,background.md, RHO's owntask-info/,launch.sh, and a README with the splits.diagnostics: true(RHO's training rows), the cap-harness judge returnsside_info: the feedback, whether the task was completed, and each seed's outcome and per-primitive trace (sim.digest). The score is unchanged.Core changes. None to framework behaviour, and none to the agent layers, the Trainer, the sandbox or the
environments. The shared files change by registration lines only:
pyproject.toml: therhogroup, included inall;hermit/agent/evolver/dependencies.py: the group's install hint;.github/workflows/tests.yml:--group rho;tests/selection.py: therhogroup's paths;tests/core/test_selection.py: LIBERO's and the engine's shared files now also selectrho, as they selectaspire.The template
The template is new: no existing one fits.
prompt-onlyis one instruction file;aspireis a skill library an actormodel reads while it writes programs;
continual-harnessandmeta-harness-adapterare read by a model in the loop.RHO's deployed policy has no model: the repository is the program.
solver/**only.solver/main.pyholdsrun(task), the entry point, called onceper episode with
get_task_context(). The other*.pyfiles are modules, bundled beforemain.pyinto onenamespace.
*.mdfiles are notes, kept and never run.README.md(the contract the mutator reads),exports.yaml(nothing is exported) and.hermit/.check_specrefuses a change to them, and more than 64 files or a file over 200,000 bytes undersolver/(adapter.yaml). Through.hermit/check.pyitalso refuses what bundle.py's
problemsrefuses:math, a class,with,global,nonlocal,del,async, afromimport, or a name or attribute that starts with_;=,:=or amatchpattern; setting an item of a shared object, or a
+=, defines nothing), a top-level loop's variable orexcept ... asname that reuses another module's name, or arunthat cannot take the task context alone;fix_code), which the engine's judge runs on therow's seeds.
solver/) follows the paper's Skeleton seed (A.1.5): a keyword router on theinstruction, stub routines for articulated objects, switches and pick-and-place, and shared helpers. It moves
nothing, so it scores 0.
One step
flowchart TD B[bootstrap: the seed g0-s0 on the whole validation split, the first candidate of the frontier] --> N B -->|a run failed| E[the bootstrap fails: the first step stops the run] N[plan a generation: HELIX's select_candidate on the frontier, its stratified sampler, one rng, the candidate id, and the parent written into the adapter] -->|StepResult.next_tasks| R[the Trainer runs the parent on the minibatch: each instance's score and side_info] R --> K{a run of the parent's failed, or the parent at 1.0 on every instance?} K -->|yes: skipped| N K -->|no| M[mutator: one Codex session on the parent's repository, HELIX's mutation prompt, a simulator workspace per training task] M --> C{the program changed and the repository passes the template's check?} C -->|no| X[rejected unscored] C -->|yes| G[run_agent: the child on the same minibatch, then judge_acceptance against the parent] G -->|fails, or a run failed| X G -->|passes| S[run_agent: the child on the first val_stage_size validation ids, against the parent's scores there] S -->|fails, or a run failed| X S -->|passes| V[run_agent: the rest of the validation split] V -->|a run failed| X V --> F[the child joins the instance-level Pareto frontier] F --> N X --> N N -->|after max_generations, or a validation mean at stop_at_score| D[stop, then finalize: the frontier's best mean validation score in the adapter]side_info), Training State, theobjectiveandbackgroundfiles, and the validation ids (access/validation)to pass to
run_agent.AgentEvolver.step, in the evolver sandbox;check_specon the child;run_agent: the seed on the validation split (bootstrap), then the child on the minibatch, the validation stageand the rest of the validation split;
prepare, for the REaaS workspaces.state/rho.json(after a session, thestate directory holds it alone),
output/mutation_prompt.md,output/child/andoutput/report.md.finalizewritesParetoFrontier.best(), the highest mean validation score, a tie goingto the candidate admitted first (the paper breaks ties by validation coverage: a row in the table).
The authors' implementation against this one
helix/evolution.py: per generation, select a parent, draw a minibatch, mutate, gate, validate, add to the frontiersolver/: a keyword router on the instruction (articulated, switch, pick and place) to stub routines, and shared helpers; it moves nothing, so it scores 0main.py,common.py,robotics.py,tasks/) that imports the standard library and numpy and has_-named helpers (the deployed artifact, A.1)import math; no class,with,global,nonlocal,del,asyncorfromimport; no name or attribute starting with_; the modules share one namespacemath) and no classes or private helpers, which the template's README tells the mutatorrandom.Random(rng_seed)for the frontier, the selection and the samplersampledandadjusted); on LIBERO's 30 tasks with two per minibatch the two epochs are the sameParetoFrontier.best(): the highest mean over every candidate admitted (its storage is append-only), a tie going to the one admitted firstval_stage_sizevalidation ids in the dataset's own order (a JSONL file's lines, or a folder's file names sorted: HELIX's robotics example names them<task>__<trial>, so task by task), against the parent's frontier resultdata.val's order, whichrows.pylists seed by seed so that the first 45 cover all 30 tasksbuild_mutation_prompt; the backend launched with one line naming the prompt fileobjective.mdis the paper's objective, with task success for the shaped reward andsolver/main.py run(task)forsolver.main.run(ctx);background.mdhas those parts for this harness (its API reference and the benchmark's page in the simulator workspaces)libero-pro, its name for LIBERO and LIBERO-Pro) and LIBERO's suite names, and each simulator workspace's benchmark page (ASPIRE'sdocs/libero-pro.md, cut by the engine before its worked solutions) is titled LIBERO-Pro; its recorded-run example and the run-artifact page's command examples name perturbed suites, test tasks among them (libero_object_swaptask 0 on seed 1, a test seed, in the saved-state mode rather than the test's seeded scenes;libero_goal_swaptask 0), with no instruction or resulttask_completed, adiagnostic_focus, the top-K accepted ancestors' history and the visual-difference narration; the judge's channels never enter acceptancetask_completed, the seed's outcome (success, whether the program ran, how the episode ended, its steps, its error), the trace of every primitive call, the program's result and stdout; no model reads the run, and no top-K history or visual-difference narration is built (the learning material holds every earlier step's records of its training instances: the Isolation row)xhigh, 150 turns--max-turns, its limit a partial success, as HELIX takes it) and for Hermes (itsagent.max_turns: a session it cuts off fails and its edits are discarded, since Hermes's record does not tell its limit from a model that stopped answering)bin/simin a workspace per training task: whole episodes of a program on that task's training seeds, with the trace and keyframes of each; a probe program (one call, printed) stands in forcallandobserve; no visual-difference moduleomit_from_agentin HELIX's robotics example)/w/material: every step's records of its two training instances, the program that ran included, and each step's minibatch mean); the validation rows (ids, tasks, seeds: there are no labels) shown to the mutator, their scores not: out of the session's view and out of the commit messages, whose generation outcomes name the gate that rejected a child, never a score; the test split never given to the Evolver. A warm restart's starting adapter (lane 2's: lane 1's checkout) carries lane 1's card, which names lane 1's best and seed validation means, and its test mean once lane 1 is evaluated: the README evaluates lane 1 only after lane 2 has finishedstart_fromadapter is taken whole, its card included. The mutator can read every earlier generation's parent on its minibatch, which HELIX's mutator never gets, all of it on training instancessolver/changes, under the harness's program rules; a child that changed nothing, or only its notes (the same bundled program), is rejected unscoredMutationFailedProposal); a child's minibatch evaluation rejects the child (ChildEvalFailedProposal); a child's validation is not caught, and the run endserrororjudge_error, scored 0.0), or arun_agentcall that raised: the seed's fails the bootstrap and the first step stops the run; a parent's skips the proposal; a child's, on its minibatch or its validation, rejects the childtrainer.call_timeout_minmust hold a session and the child's validationrun.yaml, thenrun_warm.yamlfrom lane 1's final adapter, which is lane 1's best validation candidate (the paper's lane 2 started from g31-s31, which it does not say was the best)xhighrun.yaml), or on GPT-5.6-Luna at medium (run_luna.yaml)The protocol
Train, validation and test, with the final adapter evaluated frozen on the test split, as in the paper (§4, A.2.7).
Every instance is one task on one seed, a scene of its own (
--init-mode seeded).tasks.shwrites the splits andrecords them in
splits/rho.json.rows.pyrefuses seed sets thatmeet.
splits/train.txtlibero_object,libero_goal,libero_spatial) × 43 = 1,290splits/val.txtrun_agentsplits/test.txtlibero_{object,goal,spatial}_{swap,task}) × 50 = 3,000 episodeslaunch.sh eval --adapter final, the adapter frozen:eval/final/and the cardlibero_object_swaptask 0 on seed 1 (a test task on a test seed, in the saved-state mode), and the run-artifact page nameslibero_goal_swaptask 0 too (see the learning-boundary item)splits/test_base.txtlaunch.sh eval data.test=splits/test_base.txt --adapter rho-libero-warm/final, the same adapter by its tag:eval/rho-libero-warm_final/, never the cardsplits/reaas.jsonlThe splits are disjoint by seed, not by scene. As the benchmark's README notes, a seeded scene is not guaranteed
distinct: where a task's placement leaves little room, two seeds can give the same layout. The test split's tasks are
not training tasks;
test_base's are.The first evaluation's settings
Not run yet. This PR stays a draft until the first evaluation's row is here (the guide's rule). The planned row:
fireworks/accounts/fireworks/models/glm-5p3-flash) at effort medium, through Codex (run.yaml,run_warm.yaml); or GPT-5.6-Luna at medium on the ChatGPT login (run_luna.yaml)fa00f0e(.venv-libero), the simulator on the host with--init-mode seeded; the mutator's REaaS through the engine's simulator servicerun.yaml): strict improvement, no staged validation, stratified sampling of 2 tasks × 1 instance, 31 generations. Lane 2 (run_warm.yaml): starts from lane 1's final adapter,improvement_or_equal, staged validation on 45, 2 groups × 1, 32 generations. Both: 150 turns,rng_seed0.splits/test.txt: 3,000 episodes, one pass, success rate;test_base(1,500) in distribution, by the final adapter's tag so that its records and the card stay the test split'slaunch.sh eval --adapter root). ASPIRE's and prompt-only'srun_pro.yamlscore the same 60 tasks among their 80, on the same seeds with the same judge, but after training on those tasks themselves.trainer.budget: {usd: 1500, hours: 600}per lane,call_timeout_min: 720How this differs from the paper's row:
(NVlabs/ASPIRE#31);
xhigh.The result will record the framework commit, the configs, the model ids and effort, the Codex version, the ASPIRE
commit, the concurrency, spending and time, and the uncertainty. At 3,000 episodes, a pass rate near 0.5 has a
standard error of 0.9 points, a 95% interval of about ±1.8 points, if episodes were independent, and wider once they
are clustered by task.
Application-side changes
side_infofordiagnostics: truerows, and the engine README's judge row.examples/libero: the README's folder table and run line,.gitignore(rho/tasks/,rho/splits/), and theutils/launch.shheader.--group rho,tests/selection.py,tests/README.md, andtests/claude_stand.py: the stand-inclaudetakes arunentry (a shell command its session runs from its working directory, its exit code andoutput recorded), for the sandboxed REaaS test.
What is left out
Goal and Spatial).
xhigh): the configs use the framework's first-evaluation models.Validation
Everything below ran on this machine (Linux, bubblewrap, Python 3.12), in a venv with the
rhogroup (HELIX417ef2e).python -m pytest tests/methods/rho tests/core/test_selection.py --durations=4: 42 passed (the 32 RHO tests andthe 10 of
test_selection.py) in about 42 s on a loaded machine. The slowest are the two sandboxed stand-in runs(11.7 s and 6.5 s) and the Trainer run (4.9 s).
The whole suite at this head, in five groups side by side (below, the two method groups are one row): 1,845
passed, 174 skipped, 8 failed.
Seven of the failures are the earlier rounds', test for test, and they fail the same way on
main899597b in thisvenv (run with
hermitimported from a clean worktree), andmain's CI passes them. They come from this venv:test_harbor_environment.py::test_rrsi_sees_a_harbor_rollouts_failure_and_a_cli_model_is_refused_for_harborandthe two
test_harness2_on_pi.py::test_what_a_pi_session_spent_is_kept_when_it_times_out_or_is_stoppedcases:no
rrsiorharness2package here.examples/clbench_database/utils/tests/test_parity_golden.pytests: nomwmpackage here.test_sandbox.py::test_a_linked_venv_runs_by_its_own_name_with_its_own_packages: this venv's path contains.venv, which the test's"env" in acheck matches.The eighth,
test_harbor_environment.py::test_a_commands_process_group_is_killed_from_its_pid_file_and_checked_gone[bash],timed out: its script scans every
/proc/*/stat(3,300 processes on this machine) and ran past its 30 s limit onthe loaded machine. Run again alone it passed (both cases, in 32 s), and this PR does not touch Harbor.
CI on this head: passed.
--changedselected every group (the workflow file changed): 2,031 passed, 132skipped, none failed, all 32 RHO tests among them, the bubblewrap ones included. On
4861c3b: the same counts; on6874f9a: 2,029 passed and 132 skipped; on the first head (e7dfde1): 2,023 passed and 132 skipped.Mutation checks, in a worktree at this head with its own
hermit(PYTHONPATH). Each guard was removed inturn and its test run. A guard counts as caught only when its test failed (not when pytest errored), and each test
passed unmutated first. All 47 were caught:
matchcase body is top-level code;:=and amatchpattern's captures define names; anexcept ... asname may not reuse another module's; a function's body is not module scope;run.yaml's header evaluatestest_baseby the tag; the configs shuffle the Trainer's ownorder; a notes-only child is rejected unscored;
setupneedsASPIRE_SIM_URLand asks the service's/health;workspaces not made fail the mutation; a subscript or attribute target, a
+=and a loop define nothing; a loopmay not reuse another module's name; a loop's
resultis warned of;failed run skips the proposal; a child whose evaluation failed is rejected and the search goes on; a stopped call
fails the step; a budget reached is
out_of_budget; no state stops the run; nothing the session leaves instate/is kept; a closed folder is opened before removal, and in the child before it is read; a failed restorefails the step; the simulator's URL in the sandboxed session, and
bin/bundlenaming the adapter as the sandboxshows it; the README's evaluations keep their own records;
perfect-parent skip, and the unchanged child rejected unscored;
within's own-task pass; the staged-validation gate, the minibatch gate andthe child's template check; the fresh agent home, and Claude's turn limit as a partial success; no validation
score in the summary, and the writable simulator workspaces; disjoint seed sets, and REaaS rows on the training
seeds; UTF-8 notes, and the judge's per-seed evidence; each config's own task info, and learner-visible texts
that name nothing of the test split.
hermit check --no-probeonsmoke.yaml,run.yaml,run_warm.yamlandrun_luna.yaml: all pass, with only thestandard validation warning.
ASPIRE_ROOTandASPIRE_DOCSpointed nowhere,FIREWORKS_API_KEY=dummy, andrun_warm.yaml'sstart_fromwas a copy of the template.The acting function in the real task sandbox (
agent_pipeline(confi 8000 g, "check")onsmoke.yaml, the firsttraining instance), at this head: it bundles the seed (7 modules, 3,496 bytes), and its launch record shows
probe.passed: trueandnetwork: isolated.ASPIRE's pages that the simulator workspaces stage and the docs describe (
api-reference.md,run-artifacts.md,libero-pro.md) were compared byte for byte with a clone atfa00f0e: the same.Docs:
HERMIT_DOCS_INCLUDE_DRAFTS=0 python -m sphinx -b html -W --keep-going docs <out>passes.pyflakeson the new code reports only the template's shared-namespace names (the bundle's one namespace,intended), the
noqa'd availability import and thenoqa'dstandfixture import.Not verified here:
fa00f0e)is not bootstrapped for LIBERO (no
.venv-libero,.venv-graspnetor.libero), and its providers are notserved. So no real episode, real mutator session or real simulator-service run was made.
inside the Trainer's evolver sandbox through the stand-in
claude's session.AgentEvolver.stepand, in the evolver sandbox, against the stand-inclaude, which replays recorded streams.To reproduce the smoke:
fa00f0ewithscripts/bootstrap_libero.shandscripts/bootstrap_graspnet.sh, and serve itsproviders (SAM3, Contact-GraspNet).
ASPIRE_SIM_GPU), bubblewrap, andFIREWORKS_API_KEY(or the ChatGPT login forrun_luna.yaml).pip install -e . --group rho, then inexamples/libero/rho:ASPIRE_SIM_GPU=0 ASPIRE_CONFIG=smoke.yaml ./launch.sh.Review
are
docs/methods/rho.md, the example's README, the methods index, the engine README's judge row and theCHANGELOG.
evolver.name: rho,template: rho,--group rho.The README's commands are
launch.sh's, with overrides before--adapter.evolver.yamltakes RHO's reportedsettings where the paper gives them and HELIX's defaults elsewhere, each commented.
session (Layer 2) run by
AgentEvolver.step(Layer 3), its model fromevolver.model(Layer 1). No model iscalled elsewhere, and no agent class is added. The acting function uses no model.
FIREWORKS_API_KEYfromthe environment, and no run records are committed.
General checklist
Core changes. See "Core changes" under Change: registration lines only.
Agent layers. As above. The Evolver declares
needs: [validation_data], and the acting function declaresrun.supports = ().Implementation correctness and failures. Traced:
error_max_turnsis a partial success, as HELIX takes it; a Hermes session itsagent.max_turnscuts off fails(Hermes's record does not tell its limit from a model that stopped answering).
notes, whose program is its parent's (HELIX would score it: a difference, in the table).
errororjudge_error, scored 0.0) is no score of the program:and so does a
run_agentcall that raised (a missing result). The generation is spent and the search goes onfrom HELIX's next draw.
failed, and one whose child's evaluation reaches the run'sbudget returns
out_of_budget. Either way it has the session's usage, and Training State stays at the step'sstart. A cancel between stages returns
failedwith the usage too. After a failed step the Trainer takes none ofits next tasks, so the next step runs the generation again (its parent and candidate id, a new session) on the
two instances the Trainer takes next from its own order, which the configs shuffle (
data.shuffle: true).reaasdoes not start without the simulator service:setupchecksASPIRE_SIM_URLand theservice's
/healthbefore the bootstrap's validation. Workspaces the service cannot make in a later step, or ina resumed run (
setupruns only at a run's start), fail that mutation, HELIX's failed mutation; a service lostfor good fails every later one, and the search ends at
max_generationswith what it had found.directory is emptied of what the session left there (notes, folders, a folder it closed) and holds Training State
alone. When the adapter cannot be restored, the step fails with the session's usage, and the Trainer commits
nothing of it.
max_generationsandstop_at_scoreend the search withstop, which needstrainer.allow_early_stop.Real execution paths and tests. Covered:
train()with a scripted mutator, and with a judge that fails the seed's validation;prepareand its fake service, and from inside the evolver sandbox: the stand-insession bundles the repository with
bin/bundle, runs the training seeds throughbin/sim(the service's URLkept, its port forwarded) and is refused seed 1;
hermit checkon the configs.The simulator and a real model are not exercised (Validation).
Documentation. New:
docs/methods/rho.md,examples/libero/rho/README.md,examples/libero/rho/task-info/README.md. Changed:docs/methods/index.md(two rows),docs/index.md(toctree),examples/libero/README.md,examples/cap_harness/README.md(judge row),tests/README.md,CHANGELOG.md.This description. Read end to end against the code at
1190d05.Independent review (post-PR audit). One audit per update, by an independent agent (Opus 5.5 at max effort)
against the general, method-reproduction, test and sandbox checklists.
e7dfde1: no P1, 5 P2 and 7 P3, all fixed in6874f9a:errororjudge_error, scored 0.0) fed the gates and the frontier as ascore. Now it is no score of the program (the table's "A run that failed" row).
an integrity warning, the top-K history), and the paper's program imports numpy and has
_-named helpers. Nowthe Diagnostics row says so, and a new "The policy program" row.
test_basewith--adapter final) replaced the test split's records ineval/final/and its row on the card. Now it goes by the final adapter's tag, and the config test holds thateach evaluation keeps its own folder.
state/rho.jsonwas kept from the session. A note the session left instate/reached every latergeneration's session, and a folder at
rho.json.tmpstopped every later step. Now the state directory isemptied after the session, and Training State written back alone.
child is rejected and the search goes on, as in HELIX.
folders are opened before removal, and a restore that fails fails the step with the usage.
does not tell its limit from a model that stopped answering. This is in the table and
evolver.yamlnow.main's own, not changed here: the engine'ssim.pyrecords a seed with no result astask_success: Falsewith status ok, so a simulator crash there reads as a failed episode rather than a failed run.
6874f9a: no P1, 1 P2 and 7 P3, all fixed in4861c3b. Of round 1's ten fixes, eight held and twowere incomplete (the first two below).
run.yaml's header still gave thetest_baseevaluation as--adapter final(the README's was fixed).Now it goes by the final adapter's tag, and the config test reads every config's header as well as the
README's commands.
next two instances in
train.txt's order, two seeds of one task, with a second session. Now the configsshuffle that order (
data.shuffle: true), so the rerun takes two instances at random, and the method pagesays how the generation runs again.
join the frontier. Now it is rejected unscored, as an unchanged child is. The table gives the effect on each
lane.
reaasand no simulator service, the bootstrap ran its 210 validation episodes, and then every stepraised while the run went on. Now
setupchecks the service first, and workspaces the service cannot makelater fail that mutation.
REGISTRY[key] = fn,COUNT += 1and a loop variable two modules share, none ofwhich defines a name. Now they pass. A loop variable that reuses another module's name is still refused.
rewrites
tasks/andsplits/under it. Now the README andrun.yaml's header say after lane 2 hasfinished.
HELIX's
best()breaks a tie by the candidate admitted first, where the paper says validation coverage.uncertainty, and recorded CI on the first head only. All three are corrected.
4861c3b: no P1, 1 P2 and 4 P3, all fixed in1190d05, and one question answered. All of round 2'sfixes held, one incomplete (the second below).
/w/material): every step's records of itstwo training instances, the earlier steps' included, with the program that ran and
index.jsonl's per-stepmeans. The docs listed only the current minibatch's diagnostics and said there was no history, and RHO's task
info gave the records' path as the host has it. Now the Isolation and Diagnostics rows and "What the learner
sees" say what the mutator can read and how that differs from HELIX's (all of it training data), and the task
info names
/w/material.show the notes-only rejection. Both are fixed.
libero_object_swaptask 0 on seed 1, a testtask on a test seed (in the saved-state mode, not the test's seeded scenes). The docs and the table say so now.
match(in a case body or as a capture), by:=, orby
except ... as(which also deletes it), so each could replace another module's function unrefused. Nowthe first two count as definitions, and an
except ... asname is refused, as a loop variable is, when itreuses another module's name. The auditor's four cases are refused, and its three allowed ones still run.
The walk over a module's scope is a loop, as
ast.walkis, so a deep expression (a 3,000-term sum, which theharness compiles) does not stop it.
run spends its remaining generations. Answer: kept, as HELIX's failed mutation. The Trainer ends a run
unfinished only on a failed sign-in, and a
stopfinalizes it (a finished run cannot be resumed) with thesame best candidate; a stop on one
/healththat timed out would end the whole run. The method page nowsays what a lost service costs.
description (its protocol table's test row), now fixed with the train row's. Left open, all P3, none triggered by
a shipped config:
:=in a parameter or return annotation, atypestatement (Python3.12), or
math = ...in one module beside another'simport math: each passes the check and fails at runtime, on the training runs;
by hand before a resume) fails every later step, after its two rollouts, until the epoch ends; returning
stopthere would end the run instead;evolver.paramsaccepts settings HELIX's config refuses (num_sampled_groupswithoutnum_examples_per_group, either of them withepoch_shuffled,candidate_selection_epsilonoutside [0, 1]),and does not check the sampler's minibatch against
data.step_size;call_timeout_minis 720 in the configs (smoke.yamlhas 240), and "What thelearner sees" leaves out
/w/methodand/w/root, which hold nothing sensitive.StrictImprovementAcceptancecompare sums only, as the port does. With two 0/1 instances, strict improvementalready rules out a regression; with ties admitted (lane 2), a swap from [1, 0] to [0, 1] passes.
Method reproduction checklist
Adapter template. The new
rhotemplate: see "The template".Evolver. The new
rhoEvolver: see the chart, and what it reads, calls and writes.Upstream fidelity and adaptations. See the table: each difference with its reason and its effect.
Learning information and evaluation boundaries.
objective.mdis the paper's objective, verbatim from A.1.4, with task success for its shaped rewardand the template's entry point; like the paper's, it names no benchmark.
background.mdhas the parts the paperlists for its background: the API pointer, the primitives, a closed-loop preference, integrity rules and
observable verification gates.
prompts/workspace.mdsays where the repository is and lists the simulatorworkspaces. The task info is RHO's own (
examples/libero/rho/task-info: what an instance is and what its recordholds), not the benchmark's shared one, which describes LIBERO-Pro's perturbations, the test split here. None of
these texts names a test task, a test seed, an answer or a solution, and the seed is the Skeleton (stubs).
material in its sandbox (
/w/material) holds every step's records of its two training instances, the earliersteps' included: more history than HELIX's mutator has, all of it training data (the table's Isolation row).
Validation reaches the Evolver's gates through
run_agent, never the session as a score. The test split is notgiven to the Evolver.
solver/(never the adapter's bundler). Theengine's judge runs it on the host, inside the engine's own bubblewrap sandbox.
test mean once lane 1 is evaluated: the README and
run.yaml's header evaluate lane 1 only after lane 2 hasfinished (one launch at a time per checkout);
libero-pro) is in the rows, and the engine's own pages in the simulatorworkspaces (
docs/, as every method on the engine has them) include the benchmark's page, cut before itsworked solutions, which is titled LIBERO-Pro, and the run-artifact page; their command examples name
perturbed suites, test tasks among them: both run
libero_object_swaptask 0 on seed 1, a test task on atest seed, though in the saved-state mode (the test's scenes are seeded), and the run-artifact page names
libero_goal_swaptask 0 too; neither shows an instruction or a result (the table's "The benchmark's name"row);
/w/material) shows the mutator every step's records of its training instances, theearlier steps' included (the table's Isolation row).
passes from one generation's session to another's but through the repository.
Sandbox control. No reported run yet.
sandbox: {enabled: true, enforce: required}, andevolver.codex.web_search: false.probe.passed: true,network: isolatedandallow: [api.anthropic.com], the model's host only.Experiments. Not run: see "The first evaluation's settings".
Agent three-layer abstraction. For the mutator:
evolver.model(Fireworks, or the login).evolver.base:codex, orclaude,pi,opencode,dsh,hermes.RHOEvolver, throughAgentEvolver.stepandmake(backend, settings).run(...). The session,configuration, login plan, timeout, cancellation and usage are the Base Agent's. RHO sets the session's prompt
(HELIX's launch line, in a file), adds
home,writableandenvthroughsettings(), and adds Claude's--max-turnsthroughargs.The acting side has no model, and the judge is the engine's. No method-specific code calls a model.
Test checklist
tests/methods/rho/is therhogroup (tests/selection.py), andpytest --changedruns it for the method's, the template's and
examples/*/rho/paths.tests/README.mdlists the group.test_what_the_session_writes_beside_the_repository_is_undone.statuses, records, files and the prompt. An error's text is matched only where it is the contract.
stand-in
claudereplays streams the real CLI printed (tests/claude_stand.py). The engine's fake service is itsown (
examples/cap_harness/utils/tests/cap_fakes.py).tmp_path; the bubblewrap tests usecap_fakes'tmp_pathunder~/.cache/hermit-tests, removed after. They use no network, login or installed CLI, and they skip withoutbubblewrap or without HELIX.
test.
# noqa: F401is thestandfixture, with its reason. The processesand files a test starts are gone when it ends.
Sandbox checklist
probe.passed: trueand
network: isolated; the stand-in run'srollout-*.jsonrecords passed their probes too.own sandbox (
sim.py,confine).bin/bundleandbin/simrun inside the evolver sandbox (the sandboxed REaaS test).confinerecord from this PR.