8000 Add RAX: the rax template and Evolver, with a LIBERO example by iamziyuzhao · Pull Request #134 · Infini-AI-Lab/hermit · GitHub
[go: up one dir, main page]

Skip to content

Add RAX: the rax template and Evolver, with a LIBERO example - #134

Draft
iamziyuzhao wants to merge 7 commits into
mainfrom
ziyu/rax
Draft

iamziyuzhao wants to merge 7 commits into
mainfrom
ziyu/rax

Conversation

@iamziyuzhao
@iamziyuzhao iamziyuzhao commented Nov 29, 2026 •
Copy link
Copy Markdown
Collaborator

Change

RAX ("Scaling Online Exploration for Robot Agents", project, code) lets a coding agent learn a robot task by exploring it. In one session, Claude Code drives the robot through RAX's tools (actions, cameras, depth, a vision-language model). It solves the task by hand, writes a controller, rehearses the controller unattended and submits it. The submitted controller is then evaluated alone, without the agent, on held-out scenes. Across sessions RAX keeps a skill library (§3.4). The library is a git repository of executable skills with their evidence. A session merges into it only through a harness tool that checks each skill's format and evidence.

Hermit could not run it. This PR adds RAX as a method. RAX's own code runs every session, unchanged, at the pinned commits:

  • libero-pro/native 1767412 for LIBERO: the operator script, workspace, frontend, supervisor, simulators and formal batch, from RAX's checkout.
  • real/rainbow 36c926c for the skill library, which libero-pro/native lacks: services/skill_library.py and the continual-learning agent skill, vendored with RAX's license and notice.

The acting agent is RAX's session on Hermit's Claude Code agent. The adapter is RAX's skill library, and the Evolver is RAX's merge. No learner model is involved: the agents write the library, and RAX's code checks and merges it.

What it adds

Part Files
Template rax hermit/adapter/templates/rax/: RAX's empty library (README.md for this robot, INDEX.md; skills/ is learnable), ADAPTER.md (what a session reads of it), exports.yaml, .hermit/adapter.yaml, .hermit/check.py (RAX's validate_tree over every skill), .hermit/EVOLVER.md
Acting agent hermit/agent/evolver/methods/rax/actor.py (RAX's session as the CLI agent's task functions prompt, prepare, answer, collect), library.py (the library on both sides of a step), library_server.py (RAX's skill_library_merge as an MCP server), stop_hook.py (RAX's relaunch policy)
Evolver rax evolver.py (a CommandEvolver), merge.py (the program it runs in the evolver sandbox), evolver.yaml
Upstream upstream/skill_library.py, upstream/continual-learning.SKILL.md, upstream/LICENSE, upstream/NOTICE (unchanged; the tests pin their hashes; LICENSE and NOTICE are from RAX's main, since 36c926c has neither)
Example examples/libero/rax/: run.yaml, eval_val.yaml, eval_official.yaml, smoke.yaml, rows.py, service.py, judge.py, formal.py, launch.sh, cpu_render.sh, egl_device.py, task-info/, README
Docs docs/methods/rax.md; rows in docs/methods/index.md, docs/index.md and examples/libero/README.md; CHANGELOG
Tests tests/methods/rax/test_rax.py (44); the rax group in tests/selection.py and tests/README.md

No core change. Outside the method's three places, the PR changes only:

  • the indexes, the CHANGELOG and examples/libero/.gitignore;
  • the test-group entries;
  • two expected sets in tests/core/test_selection.py. A change to the robotics engine's or LIBERO's shared files now also selects the rax group, because rax has an example under examples/libero/.

RAX is a checkout beside Hermit, as ASPIRE's is, not a pyproject.toml dependency group. It needs its own environments: a host Python and LIBERO-PRO's Python 3.8 simulator environment. It also needs LIBERO-PRO's checkout and data, and a GPU. launch.sh names the pinned commit.

How Hermit runs a RAX session

  1. The host service (examples/libero/rax/service.py, on RAX's host Python) is RAX's trusted side. The task sandbox has no GPU and must not see RAX's session directories, so this side runs here. For each rollout:

    • RAX's operator script (scripts/configure_auto_research.py) makes the session's configuration from the task row.
    • RAX's prepare_workspace makes the session's workspace.
    • RAX's frontend serves the robot, episode, bundle and Gemini tools on a Unix socket in the rollout's directory. It runs in a mount namespace of its own (bubblewrap), where the session's published/ is the session's run tree: a directory of the service's (rax-service/run-trees/<random>). The task sandbox shows the trees read-only, in a directory it cannot list, so a session reads its own frames and traces and writes none of them, as RAX's Claude Code sandbox allows.

    The service trusts a session only with its workspace and task id:

    • It registers only the workspace the framework makes for a rollout. It registers that workspace again only while its session has spent nothing, at most three times in all. The service cannot tell Hermit's retry of a call (the configs run each call once, claude.retries: 1) from the session's own request, which can only replace the session with a fresh one of the same row: the same layouts, seeds and budget.
    • It answers the session's Stop hook whether exploration is closed (POST /explored), by RAX's launcher's own rule (exploration_closed) on the session's directory.
    • One service serves one state directory, which a lock holds. A restarted service first ends the sessions the last one left open.
  2. The session runs in the task sandbox (actor.py). prepare registers with the service, and removes nothing an earlier attempt left before the service has accepted it. It writes RAX's workspace beside the deployment, links runtime/autonomous_controller to the session's run tree, and links /tmp/rax (in the sandbox's own tmpfs) to the rollout's socket directory. It then wires Claude Code as RAX's Claude Code launcher does:

    • CLAUDE.md reads AGENTS.md, and .claude/skills is .agents/skills.
    • RAX's bridge is the MCP server auto_research (.rax-mcp.json, with --strict-mcp-config).
    • RAX's agent environment and deny rules apply, and RAX's relaunch policy runs as a Stop hook (stop_hook.py). The hook asks the service whether exploration is closed rather than RAX's frontend, which a long call can hold, and a service that does not answer counts as open. It is given the rollout's rax directory by its path: Claude Code runs a hook in the shell's current directory, which follows the agent's cd.

    With an adapter, prepare builds the session's library repository from the adapter's files and clones it with RAX's checkout. It also serves skill_library_merge, which is RAX's merge against that repository. The prompt is RAX's START_PROMPT.md in code mode.

    Last, prepare takes the session's lease (POST /lease): a connection to the service that the worker holds while the session runs. If the worker ends without collect (the CLI failed before its session, or the call was stopped), the connection closes with everything in the task sandbox, and the service ends the session as abandoned. It ends the workspace's session when the workspace's last open lease closes, so this also holds for a session the workspace registered since without a lease of its own. Without the lease, such a session kept RAX's frontend and its simulators until the launch ended.

    collect ends the session at the service and lets the lease go. It writes these into the log:

    • the session's library export, a git bundle of the repository's main past its first commit, made in a fresh repository from copied objects. There is none when those objects hold the value of a key the session was given: git keeps them compressed, out of reach of Hermit's redaction. A library that cannot be exported is recorded with the reason, and the session is still judged. Every git store in the run's directory and the log whose objects hold such a value loses its objects, since the run's directory is kept. That covers the session's library repository and clone, and any store the agent made in the run's directory. A store it makes elsewhere in the call's writable directory (its HOME, <call>/home, outside the run's <call>/workspaces/<run>) is not scanned (round 6, open);
    • the session's facts, which land in pipeline_extra.task;
    • the session's notes and code, without any git store's files (memory/ or code/ itself included).
  3. The judge (judge.py and formal.py) runs on the host. It runs RAX's formal batch of the submitted bundle (the supervisor's run_submission) on the row's formal layouts, with RAX's Python. The score is the share of successful episodes, by LIBERO's own check; errors count as failures. The feedback names only the count and the layouts.

The step

flowchart TD
    A[the adapter: the library] -->|deployed; prepare builds the session's repository and clone| S[RAX session in the task sandbox: Claude Code with RAX's frontend tools on the host]
    S -->|skill_library_merge: RAX's merge into its repository| R[the session's repository]
    S -->|submit| J[judge on the host: RAX's formal batch of the bundle on the row's held-out states]
    R -->|collect: a bundle of main past the base| M[the step's learning material: library.json and library.bundle in the run's log]
    M --> E[rax Evolver: a fresh repository of the adapter, the same base commit]
    E -->|RAX's merge of each session's bundle, every changed skill checked again| E2[merged main]
    E2 -->|INDEX.md and skills/ written back| L[the next adapter]
    L --> K{template check: RAX's validate_tree}
Loading

The Evolver reads each session's library.json and library.bundle from the step's learning material. It builds a repository of the adapter, whose first commit is the commit the session started from (fixed identity, date and file mode). It then fetches each bundle onto session/<name> and runs RAX's merge, which checks every changed skill again. The merged INDEX.md and skills/ become the next adapter.

The Evolver leaves a session out, and says why in the step's result, when any of these holds:

  • the session started from another library;
  • its export failed or held a key's value (its library.json says which);
  • its bundle is not what it recorded;
  • its changes conflict with an earlier session of the same step;
  • its merged library fails the template's check: INDEX.md gone, a link straight under skills/, a skill another one uses renamed, a skill's only image moved away. RAX's merge checks only the skills a branch changed, as git diff --name-only names them (a rename appears by its new path alone), and takes such a merge in; the Evolver checks every skill, undoes the merge with the problems, and goes on with the step's other sessions.

The final adapter is the library after the last session. The configs run one session a step (step_size: 1), as RAX does.

Data splits (examples/libero/rax/rows.py; task directories in Harbor's format; no row is in two splits)

Split Rows Exploration (collection 0: layout i is env.seed(1000 + i), then a reset) Scored on (the judge) Config
train train-<task>, 40 layouts 100-119 official LIBERO init states 0-42 run.yaml (hermit train)
val val-<task>, 40 layouts 200-219 official LIBERO init states 43-49 eval_val.yaml
test test-<task>, 40 layouts 0-19 (RAX's own) LIBERO-Pro swap init states 0-49 run.yaml (hermit eval)
official official-<task>, 40 layouts 0-19 (RAX's own) official LIBERO init states 0-49 (the paper's table) eval_official.yaml
smoke, smoke_test one each, libero_spatial_0 layouts 300-301; 302-303 official 0-1; swap 0-1 smoke.yaml (train; eval)

The tasks are LIBERO's Spatial, Object, Goal and Long suites, 40 in all. A row is one session in code mode with 20 exploration episodes, the paper's budget (Appendix C.7); the smoke rows have 2.

What the splits share:

  • The four large splits hold the same forty tasks. What is held out is layouts and states, not tasks:
    • Exploration never plays a stored init state of any collection.
    • Train, val, test and the smokes explore disjoint seeded layouts.
  • Training and validation are scored on disjoint official LIBERO states. Test is scored only on LIBERO-Pro's swap states, which no training or validation session plays or is scored on.
  • A session never sees its formal layouts or their scores. The Evolver 8000 reads only what each session merged.
  • official explores test's layouts and is scored on the states train and val are scored on. It is the paper's protocol for RAX as published (--adapter none), not a held-out estimate for a learned library.
  • RAX's TASK.md says, for every LIBERO-PRO session, that formal layouts may swap objects.

Protocol: train / test. The Evolver learns across the 40 training sessions, one a step, in LIBERO's order. A checkpoint is saved every 10 steps (ckpt-step-10, -20, -30), and eval_val.yaml compares them. The chosen or final library is evaluated frozen on test. The baselines are --adapter root (the empty library) and --adapter none (RAX as published).

In hermit eval, each session merges into its own repository only, and no Evolver step runs, so test sessions do not learn from each other. RAX has no validation step of its own, so the Evolver is given no validation split.

The authors' implementation against this one (the same table, with the reasons, is in docs/methods/rax.md)

Dimension RAX (robot-agent-exploration/rax) This port Forced by / decision; acceptable?
When learning happens in the session: a skill is merged once automated (draft), again when verified, and before the session ends; later sessions start from the merged library the same, into the session's own repository; the Evolver replays the session's merges into the adapter after it, one session a step framework (the adapter changes between rollouts); acceptable: the next session starts from the same library
What the learner sees no learner model; RAX's merge checks what the agents write the same; the Evolver reads only the sessions' merges (no scores, no evaluation frames, no judge feedback) —
Each component's carrier skills as SKILL.md, code and evidence in a git repository, one per robot the same files as the adapter's INDEX.md and skills/; each session's repository is built from the adapter framework (the session runs in the task sandbox); acceptable
The update RAX's merge: format and evidence checks, then a merge into main; a conflict goes back to the agent the same code in the session; the Evolver runs it again for each session; a session whose changes conflict with an earlier one of the same step is left out, with the reason decision; acceptable with step_size: 1, where no such conflict can occur
Selection none none: the library after the last session; checkpoints for validation —
Agent and model Claude Code with Claude Opus 5.5 at xhigh, its own servers only (--strict-mcp-config); acceptEdits with an allow list (its MCP server, reads of its readable paths); web tools denied; the subagent tools denied when the cap is 0; edits of .claude/ and .mcp.json denied; commands in Claude Code's own sandbox, allowed without asking (writes in the workspace and the socket's directory, no network) the same model, effort, MCP flags and deny rules (.rax-mcp.json is guarded too), on Hermit's Claude Code agent. Its bypassPermissions takes the place of RAX's acceptEdits, allow list and Claude Code sandbox: the CLI and all it runs are in the task sandbox (bubblewrap), which shows only declared paths, lets it write only its run's directory and its own /tmp, and reaches only the model provider's hosts and the service's port framework; acceptable: the task sandbox is the boundary. A command can still write .claude/, and what it writes runs in the same sandbox
Prompt and workspace START_PROMPT.md; prepare_workspace RAX's, byte for byte; with an adapter, also the clone, RAX's continual-learning skill and the two library paragraphs of real/rainbow's AGENTS.md (ADAPTER.md; the method page marks the adaptations), and Hermit's deployment: the adapter's copy hermit/rax/, and Hermit's managed block in CLAUDE.md after @AGENTS.md (its note that the adapter's paths are relative to hermit/rax/, which ADAPTER.md overrides for its own; ADAPTER.md under a ### heading) task: libero-pro/native has no library; acceptable
Robot tools RAX's frontend, through RAX's bridge on a socket the same, on the host; the run tree is the service's, read-only in the task sandbox (RAX's agent writes only its workspace and the socket's directory) framework (the sandbox shows declared paths only); acceptable
Relaunch the launcher reruns the CLI (--resume, CONTINUE_PROMPT) while exploration is open, at most 3 times; a run's prompt gets the launcher's note of the episodes that ended uncharged (report_refunds, each told once) a Stop hook continues the same CLI with the same prompt, without its clause about stopped background workers, with RAX's note (the service runs report_refunds when the hook relaunches); exploration is closed by the launcher's own rule (exploration_closed), which the service applies framework (one CLI per call); acceptable
Error relaunch after a provider error, the launcher resumes the same conversation after a pause (ERROR_PROMPT, up to 5 in a row); after the login's usage limit, it waits for the reset and resumes it (USAGE_PROMPT, up to 10 times) in part: a session the login's plan refuses (its usage window) runs again in the same workspace once the plan allows (Hermit's Claude Code agent, plan_rerun). That is a new conversation from RAX's start prompt, not RAX's resumed one: RAX's session, its budget and the agent's notes (memory/PROGRESS.md, which RAX's prompts send it back to) are as they were; the conversation's context is not. A session the CLI reports as failed (an error result, a crash) is scored 0 without its bundle judged, and its merges are taken in. One Hermit's clock ends is judged as any other. One the provider stops serving past Claude Code's own retries fails the call before collect: scored 0, its merges left out. Hermit's own second attempt of a call is off (claude.retries: 1): it would remove the session's workspace and log and start the session again, which RAX never does framework (hermit/trainer/rollout.py judges no failed session; one CLI per call, no resumed conversation); a recorded deviation. Judging a failed session that submitted would be a core change
Agent pause the agent's processes are stopped (SIGSTOP) while a bundle is copied and rehearsed not paused: the main turn waits on the call, background commands run on; the bundle copied is the registered snapshot framework (the task sandbox's pid namespace); a recorded deviation
Bundles run at the agent's workspace path, in a fresh sandbox and simulator per episode run at RAX's session workspace path, in the same sandbox, which shows none of the skill library: ADAPTER.md says to copy into the bundle what it uses of a library skill (RAX's skill, written for its real robots, lets a controller import them) RAX's supervisor names that path; the library is real/rainbow's, whose controllers run in the agent's workspace; acceptable
Exploration ≤ 20 episodes on fresh layouts, two environments, 600 s + 5 s per step the same; each split's layouts are its own decision (disjoint splits)
Evaluation each session's bundle on official init states 0-49 and on swap 0-49 one split per score (above); eval_official.yaml for the paper's table decision (held-out splits for a learned library)
Gemini Gemini 3.8 Flash via OpenRouter, $10 per session the same tool, on the host, when RAX_KEY_FILE is given; no cap at the pinned commit; each session's spend is recorded (gemini_usd) the pinned code; outside Hermit's model accounting (below)
Library on LIBERO the paper's LIBERO results come from independent sessions; the library is shown on the real RB-Y1 the library across LIBERO's forty tasks the reproduction's question; --adapter none is the paper's setting
Session clock none Hermit's cap: 48 h (claude.timeout_s) decision (a run must end)
Rendering NVIDIA's EGL on the simulators' GPU the same; with RAX_RENDER=cpu, Mesa's llvmpipe through RAX's own LIBERO_PRO_PYTHON (physics unchanged, images differ by renderer noise) host (other processes' CUDA can break NVIDIA's EGL); a run with it says so

Application-side changes (examples/libero/rax/, task-side code):

  • rows.py writes the rows and splits.
  • service.py is RAX's trusted side on the host (above).
  • judge.py and formal.py are the score: RAX's formal batch on the session's formal layouts.
  • launch.sh checks RAX's host Python and names a commit other than the pinned one. It refuses a bwrap that takes no --size: RAX's bundle sandbox passes --size, and RHEL 9's bubblewrap 0.6.3 does not take it, so every rehearsal and formal episode would fail at its start. RAX_BWRAP names a newer bwrap for RAX's processes only (the service and the judge's formal batch find it first on PATH); hermit's own sandboxes keep the system's. RAX_RENDER=cpu gives RAX's simulators a Python (LIBERO_PRO_PYTHON, which RAX reads) that renders with Mesa's llvmpipe: other processes' CUDA on a GPU can break NVIDIA's EGL, and the smoke's start_episode failed in LIBERO's depth check that way on this machine. The launcher then writes the rows, starts the service (which answers /health with this launch's nonce), runs hermit train or hermit eval, and stops the service.
  • cpu_render.sh writes that Python, for the launcher and for RAX's own setup scripts (the README's setup with RAX_RENDER=cpu).
  • task-info/ says what a row and its record are.

Left out:

  • RAX's error relaunch and its resumed conversations. After the plan's usage limit, the session runs again as a new conversation (the table above).
  • The adaptation stage (up to 5 episodes on swap layouts, collection 6).
  • The agent pause.
  • RAX's Codex launcher.
  • RAX's real robots.

First evaluation (reproduction guide §4): pending. RAX's agent is Claude Code, and the Evolver calls no model. The first evaluation therefore runs the smoke (smoke.yaml, Claude Haiku 5.5), then a reduced run of the protocol with the paper's agent settings. The reduced run evaluates the final library on test against --adapter root and --adapter none, with paired differences and standard errors.

Validation

All on Linux (RHEL 9, bubblewrap), Python 3.12:

  • python -m pytest tests/methods/rax at 32ccaaf: 44 passed (46 s; up to about 105 s on this shared machine under load), leaving no test directory behind.
    • The end-to-end test runs RAX's session through the CLI pipeline (hermit.agent.acting.workspace:run), the real Evolver step and the judge. It uses a scripted Claude Code (args, prompt, settings, a skill committed and merged through .rax-mcp.json) and the real service over HTTP, with RAX's configure, workspace and frontend calls replaced.
    • Two tests run the smoke config through the Trainer (Trainer.train, then hermit.evaluate.evaluate of the final library) in real bubblewrap. The training session runs in the task sandbox, the merge program in the evolver sandbox, and the judge on the host; every launch record must be enforced with its probe passed. In the task sandbox the session reads its run tree, its write there fails (EROFS), and listing the trees' directory fails (EACCES). The second test's CLI fails before its session, and its session is ended by the lease.
    • The Stop hook test runs the hook as prepare installs it, against the service, from the workspace, a subdirectory and a directory outside it: three relaunches while exploration is open, the first with RAX's note of an episode that ended uncharged, none once RAX's marker or a submission closes it. A robot socket that takes the call and never answers is not waited on, and a service that does not answer counts as open. A relaunch count it cannot write ends the turn rather than relaunching without a bound.
    • A second attempt on a session that started an episode is refused before prepare removes anything (test_a_call_run_again_on_a_session_that_spent_something_is_refused_and_removes_nothing).
    • The lease test was seen failing without the lease.
  • python -m pytest --changed (every group: a template's adapter.yaml is new), in a fresh venv with .[test,mini-swe-agent] and the CI's dependency groups, on the third commit's tree (before its last edit, which moved prepare's cleanup into its try; the rax tests pass after it): 2042 passed, 121 skipped, 5 failed (41 min). On the first commit's tree: 2034 passed, 121 skipped, the same 5 failed. The 5 fail identically on main 899597b in the same venv, so they are not this PR's:
    • 3 in examples/clbench_database/utils/tests/test_parity_golden.py;
    • tests/core/test_sandbox.py::test_a_linked_venv_runs_by_its_own_name_with_its_own_packages;
    • tests/core/test_sandbox.py::test_the_command_line_runs_a_command_with_a_socket_forwarded_and_a_path_hidden: AF_UNIX path too long under that run's long TMPDIR. It passes with TMPDIR=/tmp, here and on main.
  • The CI's --changed run on 32ccaaf (.github/workflows/tests.yml): passed (13 min). On 1db75f8: passed, 2040 passed and 133 skipped (14 min); on 7293cf7 and ccac84e: passed.
  • An earlier core run (tests/core, in another environment) failed 9 tests. Two were this change, both fixed: test_packaging.py (the template's skills/.gitkeep is not package data, so build now adds RAX's skills/.gitkeep) and test_selection.py (the two expected sets above). The other 7 fail identically on main 899597b in that environment.
  • The docs build with warnings as errors (sphinx -W) at 32ccaaf: passed.
  • hermit check --no-probe on all four configs at 32ccaaf, with RAX's real checkout, a state directory with the service's run-trees/ and a placeholder token: passed (sandbox — enabled=True, enforce=required, agent: the task sandbox (bubblewrap), network=no-network, judge=host). Without CLAUDE_CODE_OAUTH_TOKEN, the login item says to run claude setup-token.
  • RAX's own setup on this machine, as the example's README gives it, at the pinned commit: done in 11 minutes.
    • The steps were bootstrap_sources.sh, setup_host_env.sh, setup_libero_pro_env.sh, setup_libero_pro_data.py, and setup_libero_pro_demos.py for libero_spatial_0.
    • RAX's libero_pro_doctor.py then passed on libero_spatial_0: collections 0 and 1, and the simulator checks. It passed again with the simulators on Mesa's llvmpipe (RAX_RENDER=cpu's Python).

Smokes on the real RAX (smoke.yaml, Claude Haiku 5.5 on the machine's Claude login, one training session):

  1. GPU rendering, the system's bubblewrap 0.6.3: the whole pipeline ran in 276 s.
    • The task sandbox's launch record says enforced, network isolated with only api.anthropic.com allowed, the service's ports forwarded, and its probe passed.
    • Both MCP servers connected, and RAX's robot tools worked.
    • The agent registered a bundle, and its rehearsal failed with bwrap: Unknown option --size. That led to the launcher's bwrap check and RAX_BWRAP.
    • The judge scored 0/2 ("the session submitted no bundle"), and the Evolver merged nothing.
  2. On another GPU, start_episode failed in LIBERO's depth check. Other processes' CUDA shares every GPU of this machine, and NVIDIA's EGL breaks under it. That led to RAX_RENDER=cpu.
  3. CPU rendering, bubblewrap 0.9.0: the session explored one episode in 274 s. Steps, depth back-projection, evaluate and finish all worked. It then kept its last episode and ended without a bundle (the model's choice). The judge scored 0/2, and the Evolver made no change.
  4. Model-free, at d8ff7fe (RAX_RENDER=cpu, bubblewrap 0.9.0): a scripted CLI in the task sandbox drove RAX's frontend through RAX's own bridge (.rax-mcp.json), with a do-nothing controller.py. Everything else was real: the service, RAX's frontend, simulators, bundle sandbox and formal batch, the judge, the merge tool, the Evolver and hermit eval.
    • Training (smoke): register; rehearse ran clean in 9.5 s (reason: exit, returncode: 0, task_complete: false); skill_library_merge merged a skill; submit.
    • The judge's formal batch on official init states 0-1: completed, 2 episodes, 0 errors, 0 successes, so the score was 0.0.
    • The Evolver took in 1 of 1 sessions' merges, and the final library holds the skill.
    • Launch records: the rollout's is enforced, network isolated with only api.anthropic.com allowed, probe passed; the Evolver's is enforced, network isolated, probe passed.
    • hermit eval --adapter final (smoke_test): the session's clone held the trained skill, and it merged nothing. It rehearsed on its own layout 302 and submitted. Its formal batch on LIBERO-Pro swap states 0-1 completed with 2 episodes and 0 errors. mean_score 0.0, errors 0.
  5. The paper's agent (Claude Opus 5.5 at xhigh, agent.model.* overrides of smoke.yaml), at d8ff7fe with RAX_RENDER=cpu: 1,103 s, 7.6M tokens. The session used every lever:
    • It developed a controller phase by phase in its one exploration episode (layout 300), registered it, and rehearsed it on layout 301: clean, task_complete: true.
    • It merged a draft skill with skill_library_merge: pick-bowl-rim-place-on-plate, with its SKILL.md, code and evidence. Then it submitted.
    • The formal batch on official init states 0-1 succeeded on both: score 1.0. The Evolver took in the merge.
    • The CPU renders are LIBERO's: on layout 300's first observation, they differ from smoke 1's GPU renders by 1.3/255 per pixel on average (0.6% of the pixels by more than 20, at edges).
    • hermit eval --adapter final (smoke_test, the same agent): 1,675 s, 5.5M tokens. The session read skill-library/INDEX.md and the trained skill's SKILL.md, code and evidence, and reused the skill: it copied the skill's modules into its own controller and improved them (a multi-level surface detection, a fallback for the plate's height). It rehearsed on layout 303 (clean, task_complete: true) and submitted. It then merged the improved skill back (v3, with this session's evidence). The formal batch on LIBERO-Pro swap states 0-1: 2/2, mean_score 1.0.
  6. Model-free, at 4f3158f (as 4), to check the third commit in the real task sandbox:
    • The session's run tree, before and after the rehearsal: listed (episode_reviews, runs; the rehearsal's run with 8 frames after it); a write into it fails with EROFS; listing the trees' directory fails with EACCES.
    • The Stop hook, run as Claude Code runs it: it blocked with RAX's continue prompt while exploration was open, and let the turn end after the submission (RAX's exploration_closed through POST /explored).
    • The formal batch: 2 episodes, 0 errors; the facts name the run tree (run_tree). The Evolver took in 1 of 1 sessions' merges.
    • hermit eval --adapter final: the clone held the trained skill; the same run-tree and Stop hook results; the formal batch completed with 0 errors.
  7. Model-free, at ccac84e (as 6), with the scripted CLI running the Stop hook through the shell from code/noop, as Claude Code runs it after the agent's cd:
    • The hook blocked with RAX's continue prompt while exploration was open, and let the turn end after the submission.
    • The run tree: a write fails with EROFS, listing the trees' directory fails with EACCES. Once the service stopped, the trees' directory was listable again (mode 700).
    • The formal batch: 2 episodes, 0 errors. The export passed the key scan in the task sandbox and made its bundle, and the Evolver took in 1 of 1 sessions' merges.
    • hermit eval --adapter final: the clone held the trained skill; the same Stop hook and run-tree results; errors 0.
  8. Model-free, at 1db75f8 (as 7, training only): the Stop hook's relaunch asked the service with relaunch, which ran RAX's own report_refunds on the session's exploration (no episode had ended uncharged, so no note). The hook blocked from code/noop while exploration was open and not after the submission, with nothing on its stderr. The run tree: EROFS, EACCES; listable again after the service stopped. The formal batch: 2 episodes, 0 errors. The Evolver took in 1 of 1 sessions' merges.
  9. Model-free, at 32ccaaf (as 8): while exploration was open, the Stop hook asked the service twice (whether it was closed, then, with the relaunch counted, for RAX's note: none) and blocked from code/noop; after the submission it did not, with nothing on its stderr either time. collect scanned the run's two git stores in the real task sandbox: no key in them, nothing removed, no scan error. The ledger: the session finished, not abandoned. The run tree: EROFS, EACCE 8000 S; listable again after the service stopped. The formal batch: 2 episodes, 0 errors. The Evolver took in 1 of 1 sessions' merges.

Not verified yet:

  • the first evaluation;
  • the full protocol.

Review

  • Tests and documentation cover the affected behavior, where applicable. Tests: below. Docs: docs/methods/rax.md covers setup, the template, the session, the step, parameters (a literalinclude of evolver.yaml), the authors-vs-port table, boundaries and the example. examples/libero/rax/README.md covers RAX's setup, the splits, the commands and the outputs.
  • Commands, defaults, and public interfaces are consistent. The four configs differ only in their splits and run name (and the smoke in its model, clock and budget). test_the_configs_run_raxs_session_on_claude_code_in_the_task_sandbox_with_their_splits loads each with Config.load and checks its splits, agent, sandbox and judge. The README, method page and launch.sh name the same variables and commands.
  • Agents follow the agent layers. The acting agent is Hermit's Claude Code CLI agent (Layer 2 claude-code through agent.base: claude; Layer 3, the CLI agent with RAX's task functions). Its model calls are Claude Code's, on the Claude login with Hermit's plan, timeout and usage. The Evolver is a CommandEvolver running merge.py, with no model. RAX's Gemini calls are RAX's frontend's own, on the host: they are outside Hermit's model layer, and each session's cost is in its facts (gemini_usd).
  • Shared logs and examples contain no credentials or private data. RAX's OpenRouter key is a file the host service and the judge read (--key-file); the sandbox never sees it. The Claude token is the login's. The diff was scanned for keys and local paths.
  • Documentation-only: not applicable.

General checklist

  • Core changes. None (see Change).
  • Implementation correctness and failures. Traced and tested:
    • prepare refuses a backend other than Claude Code, and a /tmp/rax that is not this sandbox's link. If wiring fails after registration, the session is ended at once (test_prepare_refuses_another_agent_a_foreign_socket_directory_and_ends_a_session_it_cannot_wire).
    • If collect cannot reach the service, the facts keep finish_error, and the judge ends the session. A library it cannot export, or a session record it cannot read, is recorded in the facts and in library.json, and the session is still judged (test_collect_keeps_the_session_when_the_service_cannot_end_it).
    • The export holds back merges whose objects carry a key's value, naming the variable and never the value (test_the_export_holds_back_merges_that_carry_a_key_the_session_was_given). Every git store of the run whose objects hold one loses them: the clone, a repository of the agent's own, memory/ made a bare one, and one in the log. A session record that is not an object is recorded as unreadable (test_collect_*).
    • The service registers only a rollout's own workspace, and again only while nothing was spent, three times at most (test_a_workspace_registers_at_most_max_registrations_times). prepare removes nothing before the service accepts (test_a_call_run_again_*). The workspace's last open lease closing ends its session, also one registered since without a lease (test_a_session_whose_process_ends_without_collect_*). A second service on the same state is refused, and a restarted one stops the frontends the last left, all at once, and ends their sessions (test_the_service_*, test_a_service_started_again_*).
    • The Stop hook relaunches an open exploration at most three times, wherever the agent's shell is, and never waits on the frontend. It asks for RAX's refund note, which is told once, only after it has counted the relaunch (test_the_stop_hook_*).
    • The judge scores 0, with the reason, for a session without a ledger entry or a bundle. Errors count as failures (test_the_judge_*).
    • The Evolver leaves out, with the reason, a session that started from another library, whose bundle is not what it recorded, or whose merge conflicts. It undoes a merge whose library fails the template's check, including a rename RAX's merge does not see and a skill's only image moved away, and a git that times out is a reason too; the step goes on with its other sessions (test_the_evolver_undoes_*). The template check names no file for a skill's or the library's problem, so the Trainer's repair goes back to the parent's library and never trips over a skill's directory (test_the_check_runs_raxs_checks_on_every_skill_and_refuses_links runs repair). It reads no log outside the step (test_the_evolver_*).
  • Real execution paths and tests. The end-to-end test runs the CLI pipeline the configs name, the real Evolver step through the loader (loader.instantiate, StepContext) and the judge. The stand-ins sit at the edge: a scripted claude, RAX's configure/workspace/frontend calls and a stand-in robot socket. The configs load through Config.load. Real-RAX runs: above (smokes 1-9).
  • Documentation. See the first item.
  • This description. Read end to end against the code at the head.
  • Independent review (post-PR audit). Six rounds, each by an agent in a separate session; the last three found no P1 and no P2.
    • Round 1, on d8ff7fe: 1 P1, 3 P2 and 3 P3, all fixed in 4f3158f. P1: the session could write its run tree (now the service's, read-only). P2: Hermit's second attempt removed a served session's workspace and log, and the method page said Hermit retries only a session the model never served (now one attempt, and prepare removes nothing before the service accepts); the Stop hook asked a frontend that a long call can hold (now the service, by RAX's rule); RAX's skill lets a controller import library skills that a bundle cannot see (now said in ADAPTER.md). P3: the merge program's PYTHONPATH, Python caches in the library's file list, and the README's setup order.
    • Round 2, on 4f3158f: no P1, 1 P2 and 8 P3, all fixed in ccac84e. P2: the Stop hook found its files from the shell's current directory, so after the agent's cd it failed and the turn ended with exploration open (now given its directory by path). P3: the Evolver's merge program crashed on a merge RAX's merge accepts but that leaves no library (now undone, and the step goes on); collect raised when the library could not be exported (now recorded); a key's value in a session's merges was out of the redaction's reach (now not exported); the method page's permission model, "checked twice" and usage-limit claims; this description's stale lines; the method page's setup snippet; the run trees' directory left unremovable after the service (now listable once it stops). Nits: the merge tool's errors now have RAX's shape, and a config comment's unit.
    • Round 3, on ccac84e: no P1, 1 P2 and 3 P3, all fixed in 7293cf7. P2: a session that renames a skill another one uses, or moves a skill's only image away, passes RAX's merge (git diff --name-only names a rename by its new path alone), the next adapter then failed the template check, and the template check named a skill's directory, on which the Trainer's repair raised IsADirectoryError and stopped hermit train (now the Evolver runs the template's whole check after each merge and undoes a merge it refuses, and the template check names no file for a skill's problem). P3: collect raised on a session record that is valid JSON but not an object; a key's value committed in the session's repositories stayed in the kept run directory (now their .git is removed); the method page and this description left out Hermit's deployment (hermit/rax/, its managed CLAUDE.md block).
    • Round 4, on 7293cf7: no P1 and no P2; 4 P3 and 5 nits, all fixed in 1db75f8. P3: the session's notes kept a git repository's own directory (code/**/.git), whose compressed objects redaction cannot scrub (now no git store is kept); a test left its second service's run trees unlistable, so its directory stayed (now that service is stopped, and the test directories are removed whole, or the test fails); the relaunch prompt lacked RAX's note of the episodes that ended uncharged (now the service runs RAX's report_refunds when the hook relaunches); launch.sh waited 30 s for a service that first stops what a killed one left, up to 120 s a frontend (now it stops them all at once, and launch.sh waits 180 s). Nits: the merge tool's refusal of arguments that are not an object is RAX's; the eval configs carry no checkpoint setting; collect exports from where prepare made the repository; a Gemini call counts as spent; this description's test timings.
    • Round 5, on 1db75f8: no P1 and no P2; 2 P3 and 4 nits, all fixed in 32ccaaf. It found the round-4 fixes correct. P3: a key committed into a git store the agent made itself stayed in the kept run directory, and for memory/ made a bare repository it reached the learning material (now every git store of the run and the log is checked, and the notes keep nothing of a store). A session could make the service register its workspace again, any number of times while it had spent nothing, and the newest session was not covered by the worker's lease (now three registrations at most, the workspace's last lease ends whichever session it has, and the texts no longer say a workspace registers once). Nits: the Stop hook asked for RAX's refund note (told once) before it knew it could count the relaunch; a Gemini call in flight, or one whose bill RAX could not read, did not count as spent; a frontend that ended between the check and the signal stopped a restarted service; the method page did not say the working directory names the session's row.
    • Round 6, on 32ccaaf: no P1 and no P2; it found the round-5 fixes correct (the lease counting through one attempt, Hermit's retry, a worker killed while wiring or in the session, and the session's own registrations and leases; the registration cap; spent() against RAX's supervisor; the Stop hook's two requests). Open, offered to the maintainers rather than fixed:
      • P3: the git-store scan covers the run's directory and the log, not the rest of the call's writable directory: a store the agent makes in its HOME (<call>/home, outside the run's directory) or under a directory it left unlistable keeps a key's value in the kept actor-logs/ tree. The learning material is not affected. A fix: scan the call's directory, and open an unlistable directory as Hermit's redact_tree does.
      • P3: the scan reads each git object whole, and catches only OSError and git's errors. A multi-GB object in a session's store could raise MemoryError in collect, so the call fails, unjudged, and its merges are lost (plausible, not run). A fix: read objects in chunks as hermit/redact.py does, and record any error in git_scan_error.
      • Nits: a worker killed (SIGKILL) between /register and taking the lease leaves its session open until the service stops (one idle frontend; RAX starts its backend lazily), so "ended when the worker's lease closes" holds once the lease is taken; after a session registers itself again, hook.json names its first session, so the hook counts exploration as open for its three relaunches.

Method reproduction checklist

  • Adapter template. A new rax template, because no existing template holds a repository of skills that sessions merge into through a checked merge.
    • Learnable: INDEX.md and skills/**. Fixed: the rest.
    • What reaches the acting agent: ADAPTER.md in its context, and through the task functions the library's clone, RAX's continual-learning skill and the skill_library_merge tool.
  • Evolver. A new rax Evolver; the flow chart is above.
  • Upstream fidelity and adaptations. The table above. RAX's code is unchanged at the pinned commits. Its prompts are its own: START_PROMPT.md, prepare_workspace's files, the continual-learning skill and the merge tool's name, description and schema. ADAPTER.md is RAX's AGENTS.md paragraphs, with the adaptations marked on the method page.
  • Learning information and evaluation boundaries. See "What the splits share".
    • The judge runs on the host, and the score and feedback reach neither the session nor the Evolver.
    • The library is the only thing a session leaves the next. Every skill in it passed RAX's merge in the Evolver (over each skill a session changed) and the template's checks (over every skill: in the Evolver after each merge, and the Trainer's). The session's merge tool runs the same checks, but the session can also write its repository directly, so only these two hold.
    • Caveat: RAX's evidence is the agent's own record. The checks hold its format, not that the runs happened.
    • task-info/ is informational; with no learner model, nothing reads it to learn.
  • Sandbox control. The configs set sandbox: {enabled: true, enforce: required}, and web_search: false.
    • The task sandbox shows only RAX's agent Python, bridge and start prompt, and the service's run trees read-only (environment.read; the trees' directory cannot be listed). It forwards RAX_SERVICE_URL's loopback port and runs with network_mode: no-network.
    • hermit check reports agent: the task sandbox (bubblewrap), network=no-network, judge=host.
    • Keys and the learning material: the OpenRouter key is a host file, and the Claude token is the login's. Hermit's redaction scrubs key values out of every file a run keeps, as text; git's compressed objects are out of its reach. So a session's merges whose git objects hold the value of a key the session was given are not exported (holds_key), the notes keep nothing of a git store, and every git store of the run and the log whose objects hold one loses them (git_stores, scrub). A store elsewhere in the call's writable directory (the session's HOME) is not scanned (round 6, open), and, as for every method, a file the agent compresses itself is out of the redaction's reach too.
    • A real session's launch record (smoke 1) says enforced, network isolated with only api.anthropic.com allowed, the service's ports forwarded, and its probe passed. In smokes 6 to 9 the real task sandbox refused the session's write into its run tree (EROFS) and its listing of the trees (EACCES).
  • Experiments. Pending (the first evaluation, above).
  • Agent three-layer abstraction. See the agent-layers item above. RAX's launcher's settings are applied through Hermit's Claude Code agent's own parameters, without an override of its execution:
    • claude.args and claude.env;
    • the project's .claude/settings.json, written by prepare;
    • web_search: false.

Test checklist

  • Group and selection. The tests are in tests/methods/rax/. The rax group covers hermit/agent/evolver/methods/rax/*, hermit/adapter/templates/rax/*, examples/*/rax/* and docs/methods/rax.md, and the robotics engine's paths select it too. It is listed in tests/README.md.
  • Names. Each test name is a sentence (e.g. test_a_service_started_again_ends_what_the_last_one_left_open_and_two_never_share_a_state).
  • Docstrings. The file names the code under test and its stand-ins: the scripted Claude Code, the stand-in robot socket, and RAX's services.mcp_contract and configure/workspace/frontend calls.
  • What it asserts. Records, files, replies, statuses and raised errors. Two regressions were seen failing before their fixes: test_packaging.py in the core run above, on the template's .gitkeep, and the lease test without the lease. The other tests were written with the behavior they hold.
  • Real entry points and stand-ins. Config.load, the Trainer (Trainer.train, hermit.evaluate.evaluate), the CLI pipeline, the Evolver through the loader, the judge, the service over HTTP, launch.sh. Stand-ins sit only at the CLI, RAX's checkout and the robot.
  • Isolation. The tests write only under ~/.cache/hermit-tests/rax-*, each in a directory of its own that is removed after it, a run-trees directory without its read bit included; a test fails if its directory is left (KEEP_TEST_DIRS keeps it). The Trainer test's hermit.evaluate.evaluate leaves a /tmp/ha-eval-* directory, which is main's own (hermit/evaluate.py never removes it). They use no sign-in and no network beyond loopback.
  • Time and order. No fixed timestamps; waits are polled against deadlines. The restart test's stand-in frontends are sleep 120 processes, killed in its finally.
  • Cost. About 45 s in all, up to about 105 s on this shared machine under load; the slowest test, through the Trainer, takes 10 to 30 s.
  • Hygiene. No unused imports. The servers and processes the tests start are stopped.

Sandbox checklist

  • Reuse the framework's sandbox. The session runs in the task sandbox (bubblewrap, enforce: required). The Evolver's merge.py runs in the evolver sandbox. Two parts run on the host, by design:

    • RAX's service, its frontends and formal batches are RAX's trusted code, which needs the GPU and RAX's session directories. A frontend runs in a bubblewrap mount namespace of its own, where its session's published/ is the run tree in the service's directory, and each bundle episode runs in RAX's own fresh bubblewrap sandbox.
    • The judge (judge.mode: host) reads the ledger and runs RAX's formal batch.

    A real session's launch record is above (smoke 1).

  • Sandbox changes are core changes. None.

Benchmark checklist

  • Task directories. Written with hermit.task.directory.write_task and read back by rows.py:task_row (data.view). test_the_rows_are_written_as_task_directories_and_read_back_whole checks it.
  • Public and private halves. A row holds its task, split, exploration layouts and episodes, its formal collection and range, and a label. No answer exists: success is LIBERO's own check in RAX's formal batch. The agent learns which collection it is scored on only as RAX's TASK.md says (formal layouts may swap objects). The feedback states successes over episodes.
  • What a task asks. network_mode = "no-network", with the service's loopback port forwarded. No memory limit is declared. The effective timeouts are:
    • Hermit's session cap, claude.timeout_s (48 h; 3 h for the smoke);
    • RAX's own per-episode limits (600 s + 5 s per step);
    • the MCP tool timeout of RAX's launcher;
    • trainer.call_timeout_min, which bounds only the Evolver's merge.
  • Parity, for a moved benchmark. Not applicable (a new example folder).
  • A real run. On the real RAX (above): three model smokes of hermit train with Claude Haiku 5.5; the paper's agent through hermit train and hermit eval (1.0 on both smoke rows, the eval session reusing the trained skill); and two model-free runs of hermit train then hermit eval through a submission, its formal batch, a merge and the Evolver's step.
  • 8000

iamziyuzhao and others added 2 commits November 29, 2026 00:23
…IBERO sessions on Claude Code

- hermit/adapter/templates/rax: RAX's skill library (README.md, INDEX.md, skills/<slug>/), checked by
  RAX's own validate_tree.
- hermit/agent/evolver/methods/rax: RAX's exploration session as the acting agent's task functions
  (actor.py: RAX's start prompt and workspace, its MCP bridge to the frontend on the host, its Claude
  Code settings and relaunch policy, the library's clone and skill_library_merge), the rax Evolver (RAX's
  merge of each session's library merges into the adapter; no model), and RAX's library code vendored
  unchanged (real/rainbow 36c926c) with its license and notice.
- examples/libero/rax: LIBERO's forty tasks on RAX's LIBERO-PRO backend (libero-pro/native 1767412):
  the host service (RAX's operator script, workspace and frontend), the judge (RAX's formal batch),
  disjoint train, validation and test splits, a smoke and the paper's protocol.
- docs/methods/rax.md, the methods index, the LIBERO README, the changelog; tests/methods/rax.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…; CPU rendering; tests through the Trainer

- A session `prepare` registered and no `collect` ended (the CLI failed before its session, the call was stopped)
  kept RAX's frontend and simulators until the launch ended. `prepare` now takes a lease (POST /lease), a connection
  the worker holds; when it closes before /finish, the service ends the session as abandoned.
- RAX's bundle sandbox passes bwrap --size, which RHEL 9's bubblewrap 0.6.3 does not take: every rehearsal and
  formal episode failed at its start (found by the smoke). launch.sh refuses such a bwrap; RAX_BWRAP names a newer
  one for RAX's processes only (the service and the judge's formal batch find it first on PATH).
- RAX_RENDER=cpu: on a host whose GPUs run other processes' CUDA, NVIDIA's EGL broke under the simulators (the
  smoke's start_episode failed in LIBERO's depth check). The launcher gives RAX's simulators a Python
  (LIBERO_PRO_PYTHON, which RAX reads) that renders with Mesa's llvmpipe; egl_device.py finds Mesa's software device.
- Tests through the Trainer in real bubblewrap: the training session in the task sandbox, its merge taken in by the
  merge program in the evolver sandbox, the evaluation of the final library; a CLI that fails before its session;
  the launcher's bwrap check and CPU rendering; the EGL helper on the host's Mesa. An unused import removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
iamziyuzhao and others added 5 commits November 29, 2026 02:23
…empt a call

- The session's run tree (RAX's published/) is the service's now, <state>/run-trees/<random>: the frontend binds it
  onto the session's published/, and the task sandbox shows the trees read-only (environment.read) in a directory
  it cannot list, so a session reads its own frames and traces and writes none of them, as RAX's Claude Code
  sandbox allows. Beside the workspace, the agent could write it. The facts name it (run_tree).
- The Stop hook asks the service whether exploration is closed (POST /explored: RAX's launcher's
  exploration_closed on the session's directory) instead of calling status on the frontend, which a long call can
  hold; no answer counts as open; at most three relaunches as before.
- The configs run each call once (claude.retries: 1): Hermit's second attempt removes the session's workspace and
  log and calls prepare again, which the service refuses for a session that spent anything. prepare removes nothing
  an earlier attempt left before the service has accepted the call. The method page says what this loses: a
  session the provider stops serving is scored 0 (RAX relaunches it on the same conversation).
- ADAPTER.md says a bundle sees none of the library (RAX's bundle sandbox on LIBERO; RAX's skill, written for its
  real robots, lets a controller import library skills).
- The merge program runs on this hermit (PYTHONPATH); the library's files leave out Python's caches, as the
  deployment does; the README runs RAX's setup scripts in RAX's order; cpu_render.sh writes the CPU renderer for
  launch.sh and for RAX's setup scripts; launch.sh says hermit's overrides go before eval's --adapter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t out, not fatal

Round 2 of the post-PR audit (4f3158f): no P1, 1 P2, 8 P3.

- The Stop hook is given the run's RAX directory by its path. It found it
  from the current directory, which follows the agent's cd in Claude Code:
  after a cd the hook failed and the turn ended with exploration open. A
  relaunch count it cannot write now ends the turn, not the hook.
- The Evolver undoes a merge RAX's merge accepts that leaves no library
  (INDEX.md deleted, a link straight under skills/), says why, and goes on
  with the step's other sessions; a git that times out is a reason too.
- collect records a library it cannot export, or a session record it cannot
  read, and the session is still judged.
- The export holds back a session's merges whose git objects carry the value
  of a key the session was given: Hermit's redaction scrubs files, not git's
  compressed objects.
- The merge tool's errors have RAX's public_failure shape.
- The service makes the run trees' directory listable again when it stops,
  so a run can be removed; the README says what to do after a killed one.
- The tests pin RAX's LICENSE and NOTICE too (from its main: 36c926c has
  neither).
- Method page: the setup snippet has claude.retries and the run trees; the
  permission model (bypassPermissions in the task sandbox in place of RAX's
  acceptEdits, allow list and Claude Code sandbox); a session Hermit's clock
  ends is judged, RAX resumes its conversations after errors and usage
  limits; the library's guarantee is the Evolver's and the template's checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ession's git

Round 3 of the post-PR audit (ccac84e): no P1, 1 P2, 3 P3.

- The Evolver runs the template's whole check (RAX's validate_tree over
  every skill, library_files) after each merge and undoes a merge it
  refuses, with the problems. RAX's merge checks only the skills a branch
  changed as git diff --name-only names them, and git names a rename by
  its new path alone: a session that renamed a skill another one uses, or
  moved a skill's only image away, was merged, the next adapter failed the
  template check, and the Trainer's repair raised IsADirectoryError on the
  skill directory the check named, which stopped hermit train.
- The template check names no file for a skill's or the library's problem
  (path ""), so repair goes back to the parent's library; a test runs
  repair.
- collect treats a session record that is valid JSON but not an object as
  unreadable, instead of raising.
- collect removes the .git of a session repository (its library
  repository, its clone; found where prepare makes them) whose objects hold
  the value of a key the session was given, or cannot be read to tell: the
  run's directory is kept, and Hermit's redaction cannot reach git's
  compressed objects.
- Method page: Hermit's deployment in the workspace (hermit/rax/, its
  managed CLAUDE.md block), the rename gap and the Evolver's check, the
  repository scrub.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r restarts and tests

Round 4 of the post-PR audit (7293cf7): no P1, no P2; 4 P3 and 5 nits.

- The Stop hook's relaunch carries the note RAX's launcher adds to a run's
  prompt: the episodes that ended uncharged, each told once. The service
  runs RAX's own report_refunds (services/exploration/pool.py) when the
  hook would relaunch the session (POST /explored with relaunch).
- The session's notes keep no git repository's own directory (.git, or any
  directory with a HEAD and objects/): the learning material is scrubbed of
  key values as text, which git's compressed objects are not.
- A service started after a killed one stops the frontends that one left
  all at once, within STOP_SECONDS in all, and launch.sh waits 180 s for
  it instead of 30 s.
- Tests: the restart test stops its second service, and the test directory
  is removed whole (a run-trees directory without its read bit included),
  or the test fails.
- Nits: the merge tool refuses arguments that are not an object as RAX's
  frontend does (stage request); the eval configs carry no checkpoint
  setting; collect exports from where prepare made the repository; a
  Gemini call counts as spent, so it blocks a second registration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e lease still covers

Round 5 of the post-PR audit (1db75f8): no P1, no P2; 2 P3 and 4 nits.

- Every git store in the run's directory and the log (a .git, or any
  directory git takes for one: the session's library repository and
  clone, a repository of the agent's own, memory/ made a bare one) whose
  objects hold a key's value loses its objects/ (library.git_stores,
  library.scrub); collect reads the notes first, and the notes keep
  nothing of a store, memory/ or code/ itself included.
- A workspace whose session spent nothing registers again at most
  MAX_REGISTRATIONS (3) times in all: the service cannot tell Hermit's
  retry from the session's own request. The workspace's last open lease
  closing ends its session, also one the workspace registered since
  without a lease of its own, and a lease is let go even when its reply
  fails. The method page and the service no longer say a workspace
  registers once.
- Nits: the Stop hook counts the relaunch before it asks for RAX's
  refund note, which is told once; a Gemini call RAX counted or still
  holds a reservation for counts as spent (its usage's calls, as RAX's
  supervisor tells an old state's spend); a frontend that ends between
  the check and the signal no longer stops a restarted service; the
  method page says the working directory names the session's row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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

0