Repository navigation
Add ASPIRE: the aspire template and Evolver, with a Robosuite example - #74
Conversation
…he library From the first review of Infini-AI-Lab#74. The actor's rules are now held three ways and described as such: the workspace (the allowed docs with worked-program lines dropped, task-exploration.md as a doc, no keys or ASPIRE_ROOT in the session's environment), bin/sim (assigned seeds, one unseen check, a verifier's two programs, the templates' cap-harness flags accepted), and an audit in collect that voids a session whose commands reached the repository, another workspace or the engine past bin/sim, or that ran an unassigned seed. A verifier scores only with its own verdict `verified`. Stage 2 runs beside the workspace and only its pass count reaches the coordinator, which is told not to use held-out results or run training tasks. The template caps the library at 100,000 bytes (the configs raise Codex's AGENTS.md cap to fit) and checks only ```python snippets, in code. Docs and README state the protocol and the reruns' reuse of the held-out seeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the second review of Infini-AI-Lab#74. The audit no longer flags a command for naming paths that ASPIRE's own text makes actors type (relative .claude/skills, .venv-robosuite, a file called *_fix_code.py), which voided clean sessions. It looks for evidence instead, heredoc bodies included: the ASPIRE checkout's absolute path, another workspace's name, a worked solution by name; runs on unassigned seeds, of programs from outside the workspace (the run's provenance), or of a worked solution's code (by hash); a verifier's third program; a missing session log. bin/sim counts a verifier's programs by content, single first-seed runs free. collect no longer fails when the sandbox refuses the scored program. bin/sim keeps the provider URLs the session's core environment drops. Docs state what the audit cannot see. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he library From the first review of Infini-AI-Lab#74. The actor's rules are now held three ways and described as such: the workspace (the allowed docs with worked-program lines dropped, task-exploration.md as a doc, no keys or ASPIRE_ROOT in the session's environment), bin/sim (assigned seeds, one unseen check, a verifier's two programs, the templates' cap-harness flags accepted), and an audit in collect that voids a session whose commands reached the repository, another workspace or the engine past bin/sim, or that ran an unassigned seed. A verifier scores only with its own verdict `verified`. Stage 2 runs beside the workspace and only its pass count reaches the coordinator, which is told not to use held-out results or run training tasks. The template caps the library at 100,000 bytes (the configs raise Codex's AGENTS.md cap to fit) and checks only ```python snippets, in code. Docs and README state the protocol and the reruns' reuse of the held-out seeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the second review of Infini-AI-Lab#74. The audit no longer flags a command for naming paths that ASPIRE's own text makes actors type (relative .claude/skills, .venv-robosuite, a file called *_fix_code.py), which voided clean sessions. It looks for evidence instead, heredoc bodies included: the ASPIRE checkout's absolute path, another workspace's name, a worked solution by name; runs on unassigned seeds, of programs from outside the workspace (the run's provenance), or of a worked solution's code (by hash); a verifier's third program; a missing session log. bin/sim counts a verifier's programs by content, single first-seed runs free. collect no longer fails when the sandbox refuses the scored program. bin/sim keeps the provider URLs the session's core environment drops. Docs state what the audit cannot see. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
91aa875 to
e30490c
Compare
haizhongzheng
left a comment
There was a problem hiding this comment.
This PR was opened before #78 (one sandbox design) and #85 (the sandbox checklist) landed. I checked it against main (b941d8e) without changing the branch.
State on main. Only CHANGELOG.md conflicts. On a local merge with main, tests/methods/aspire passes (18 tests), and hermit check --no-probe accepts all four configs. The codex settings (isolation, codex_sandbox, shell_env, project_doc_max_bytes) mean the same on main. The main problem is that every config sets sandbox.enabled: false. That removes every framework boundary, not only the actor's: the verifier, the coordinator, check_spec, and the template check also run unconfined. Main's docs and hermit check say this setting is not for reported results.
Requested changes
-
Answer the sandbox checklist (
.agents/skills/prepare-pr/references/sandbox-checklist.md). For each process the run starts (actor, verifier, coordinator,bin/simand the engine,collect, the services, the judge), say where it runs. For any process outside the framework's sandbox, say why and how it is confined instead. Link asandbox/<role>-<n>.jsonfrom a run. -
Narrow the opt-out at least to the acting pipeline. Use
sandbox.enabled: truewithenvironment.runner: host. The actor and verifier still run on the host, and the judge stayshost. The coordinator then runs in the evolver sandbox, which shows it only/w(the material, with copied trajectories under relative paths, the adapter, its state and scratch). It can no longer reach the per-seed held-out runs beside the workspaces, which the description lists as a gap held only by the prompt.run_agent'sadapterargument under/w/scratchis mapped back to the host path.hermit check --no-probepasses with this change on main. It has not run end to end, so it needs a smoke. -
Consider putting the actor in the task sandbox. The simulator itself needs no CUDA:
launch.shgives itCUDA_VISIBLE_DEVICES="". Its GPU use is EGL offscreen rendering. cuRobo and segmentation are HTTP services outside the actor's process. WithMUJOCO_GL=osmesa(CPU rendering), the actor andbin/simcould run in main's task sandbox with no core change. That needs:- Service URLs in the environment. The sandbox forwards a loopback port only when a
127.0.0.1URL appears in an environment variable it passes. A URL insim.json, in a command line or a client default does not open a port (hermit/sandbox.py,forwarded_ports). Today onlyCAP_HARNESS_SAM3_URLandCAP_HARNESS_CUROBO_URLare passed (utils/task.py:95), and PyRoki relies on its default port 8116. Give all three as URL variables and list them inenvironment.env. - Narrow read grants. The actor's runtime files need
environment.read(orpackages).../utilsas a whole is refused because it holdstasks.jsonl, the splits andjudge.py, so the runtime files need to be separated from the data and the judge. Only the parts of the ASPIRE checkout the actor may read (its venv, Robosuite, the allowed docs) should be granted, not the checkout with.claude/. - Solution fingerprints computed outside.
collecthashes ASPIRE's worked solutions (utils/task.py:278). Inside the task sandbox, that would require granting those files to the actor's sandbox. Compute the hashes before the run and pass only the hashes.
OSMesa is slower than EGL, and its rendering may differ slightly, which could change the perception results. One task on a few seeds, timed and scored under both renderers, would show whether this is practical.
- Service URLs in the environment. The sandbox forwards a loopback port only when a
-
Wording. The description says the verifier never sees the proposer's program, and the actor's header says the repository root is unavailable. With these configs, the files are only left out of the workspace; the verifier runs on the host and can read them. Say "not provided in the workspace" until a filesystem boundary holds it.
-
Remove
hide: nullfromhermit/agent/evolver/methods/aspire/evolver.yaml. Main removedevolver.params.hide. A null default is tolerated, but a non-null value fails the step, and the key in a run config is refused. Main's built-in agent Evolvers no longer carry it. -
CHANGELOG. When rebasing, keep main's wording (the Harbor paragraph and the test workflow entry) and add the ASPIRE entry. Don't bring back the old
sandbox.profilesadvice.
Points 1, 2, 4, 5 and 6 are small. Point 3 is a suggestion for the actor's boundary; it can come after this PR if 2 lands with the PR.
…he library From the first review of Infini-AI-Lab#74. The actor's rules are now held three ways and described as such: the workspace (the allowed docs with worked-program lines dropped, task-exploration.md as a doc, no keys or ASPIRE_ROOT in the session's environment), bin/sim (assigned seeds, one unseen check, a verifier's two programs, the templates' cap-harness flags accepted), and an audit in collect that voids a session whose commands reached the repository, another workspace or the engine past bin/sim, or that ran an unassigned seed. A verifier scores only with its own verdict `verified`. Stage 2 runs beside the workspace and only its pass count reaches the coordinator, which is told not to use held-out results or run training tasks. The template caps the library at 100,000 bytes (the configs raise Codex's AGENTS.md cap to fit) and checks only ```python snippets, in code. Docs and README state the protocol and the reruns' reuse of the held-out seeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the second review of Infini-AI-Lab#74. The audit no longer flags a command for naming paths that ASPIRE's own text makes actors type (relative .claude/skills, .venv-robosuite, a file called *_fix_code.py), which voided clean sessions. It looks for evidence instead, heredoc bodies included: the ASPIRE checkout's absolute path, another workspace's name, a worked solution by name; runs on unassigned seeds, of programs from outside the workspace (the run's provenance), or of a worked solution's code (by hash); a verifier's third program; a missing session log. bin/sim counts a verifier's programs by content, single first-seed runs free. collect no longer fails when the sandbox refuses the scored program. bin/sim keeps the provider URLs the session's core environment drops. Docs state what the audit cannot see. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e30490c to
1a375c1
Compare
…he library From the first review of Infini-AI-Lab#74. The actor's rules are now held three ways and described as such: the workspace (the allowed docs with worked-program lines dropped, task-exploration.md as a doc, no keys or ASPIRE_ROOT in the session's environment), bin/sim (assigned seeds, one unseen check, a verifier's two programs, the templates' cap-harness flags accepted), and an audit in collect that voids a session whose commands reached the repository, another workspace or the engine past bin/sim, or that ran an unassigned seed. A verifier scores only with its own verdict `verified`. Stage 2 runs beside the workspace and only its pass count reaches the coordinator, which is told not to use held-out results or run training tasks. The template caps the library at 100,000 bytes (the configs raise Codex's AGENTS.md cap to fit) and checks only ```python snippets, in code. Docs and README state the protocol and the reruns' reuse of the held-out seeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the second review of Infini-AI-Lab#74. The audit no longer flags a command for naming paths that ASPIRE's own text makes actors type (relative .claude/skills, .venv-robosuite, a file called *_fix_code.py), which voided clean sessions. It looks for evidence instead, heredoc bodies included: the ASPIRE checkout's absolute path, another workspace's name, a worked solution by name; runs on unassigned seeds, of programs from outside the workspace (the run's provenance), or of a worked solution's code (by hash); a verifier's third program; a missing session log. bin/sim counts a verifier's programs by content, single first-seed runs free. collect no longer fails when the sandbox refuses the scored program. bin/sim keeps the provider URLs the session's core environment drops. Docs state what the audit cannot see. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7756b29 to
774044d
Compare
|
@haizhongzheng The P1 you found (a session could register its own subdirectory with the held-out seeds) is fixed in 774044d. The simulator service now reads the task rows on the host and takes each session's seeds, role and budget from its row; a registration names only its workspace and task, and each rollout directory (created by the framework outside the sandbox) can register one session of its own task. Tests cover your repro. A sandboxed smoke passed after the fix, and the branch is rebased on main with no conflicts. Could you take another look and approve if it looks good? Thanks! |
ASPIRE (arXiv:2607.00272, NVlabs/ASPIRE) as a method, its three roles as coding-agent sessions given ASPIRE's own prompts. The aspire template is the skill library (Markdown entries rendered whole as the actor's context, every snippet checked under the CaP program rules, no privileged access). The aspire Evolver is the coordinator: an agent Evolver with ASPIRE's guide (sections 6, 7 and Curriculum, verbatim) that repairs graded entries, verifies proposals with run_agent on the task's verifier row, and chooses the next task through StepResult.next_tasks. The example runs the fix-loop subagent, its evolutionary search and the verifier as the Codex acting agent in a workspace that reaches ASPIRE's robot execution engine only through bin/sim, on the Robosuite tasks of ASPIRE's harness; a structured direct-chat actor stays as a comparison. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he library From the first review of Infini-AI-Lab#74. The actor's rules are now held three ways and described as such: the workspace (the allowed docs with worked-program lines dropped, task-exploration.md as a doc, no keys or ASPIRE_ROOT in the session's environment), bin/sim (assigned seeds, one unseen check, a verifier's two programs, the templates' cap-harness flags accepted), and an audit in collect that voids a session whose commands reached the repository, another workspace or the engine past bin/sim, or that ran an unassigned seed. A verifier scores only with its own verdict `verified`. Stage 2 runs beside the workspace and only its pass count reaches the coordinator, which is told not to use held-out results or run training tasks. The template caps the library at 100,000 bytes (the configs raise Codex's AGENTS.md cap to fit) and checks only ```python snippets, in code. Docs and README state the protocol and the reruns' reuse of the held-out seeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the second review of Infini-AI-Lab#74. The audit no longer flags a command for naming paths that ASPIRE's own text makes actors type (relative .claude/skills, .venv-robosuite, a file called *_fix_code.py), which voided clean sessions. It looks for evidence instead, heredoc bodies included: the ASPIRE checkout's absolute path, another workspace's name, a worked solution by name; runs on unassigned seeds, of programs from outside the workspace (the run's provenance), or of a worked solution's code (by hash); a verifier's third program; a missing session log. bin/sim counts a verifier's programs by content, single first-seed runs free. collect no longer fails when the sandbox refuses the scored program. bin/sim keeps the provider URLs the session's core environment drops. Docs state what the audit cannot see. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r the runs A campaign's actor sessions run the simulator thousands of times; their images filled a shared disk. collect now deletes every run's media/ once the session is audited and scored (agent.params.prune_media), and launch.sh puts the runs and workspaces under ASPIRE_OUT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s it Found running the audit on the evaluation's sessions: one read src/cap_harness/runtime.py to see the program validator, which ASPIRE's actor, working in the repository, may do. The audit now looks, inside the checkout, only at the shipped library and worked solutions (.claude/), the examples and outputs, and cap-harness run past bin/sim. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tests/methods/aspire/ with the method's paths in tests/selection.py, as upstream's grouped tests ask. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The task sandbox (Infini-AI-Lab#78) has no GPU, so the Codex actor reaches ASPIRE's engine through a simulator service on the host (utils/agent/sim_service.py) on a forwarded port. The service holds the seed rules (development and unseen-check seeds only, the unseen check once, a verifier's two programs) and the paths (program and output inside the session's workspace). Stage 2 moves from collect to the host judge. The after-the-fact audit is removed: the sandbox's read allowlist now enforces ASPIRE's reading rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… session per rollout The service trusted the registration's seeds and budget, and a session could register a directory of its own with the held-out seeds. It now reads the task rows on the host (--tasks) and takes a registration's seeds, role and budget from the row; a registration names only its workspace and task, and a rollout directory (made by the framework outside the sandbox) registers one session, of the task its name carries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er and the direct actor The simulator service and the evaluation boundary: - cap-harness writes into the service's own directory and the run is moved into the workspace without following links (every directory opened with O_NOFOLLOW below the rollout, each file replacing the entry of its name), its paths rewritten to the workspace's: a link the session put in its output root redirected the host's writes. - The program is read once without following links, hashed, validated and run as the service's own copy: it could be swapped after its digest was taken, or be a link to a host file. - A retry's prepare (the same workspace, made afresh) finds its registration as it was, what it spent still spent; it was refused, so a retried session failed. - Runs take the registration's max_steps, not the request's; a run is stopped at --run-timeout (4 h) with its process group, and the runs go with the service; the ledger is written whole (tmp + replace); the simulator's environment has no secrets (KEY/TOKEN/SECRET/PASSWORD/CREDENTIAL/AUTH names); /health returns the launcher's nonce. The judge: a Codex verifier is scored only for one of the programs its attempt budget ran (the service's ledger); Stage 2 takes the session's max_steps; a relative ASPIRE_OUT is resolved. The direct comparison actor, which runs its own versions, is not checked against the ledger. The launcher: its own service by the nonce (another run's on the port was taken); ASPIRE_ROOT, ASPIRE_OUT and a relative HERMIT_PYTHON made absolute before it changes directory; smoke seeds chosen by the config's file name. prepare.py refuses held-out seeds that overlap the development, unseen-check or verifier seeds. Also: the template check reads snippets before a file's entries and in ADAPTER.md and the index; next_tasks reads output/next_tasks.json as a regular file only (no link, no pipe); bin/sim quotes its interpreter. The direct actor keeps a model spec's timeout, request fields and effort, counts an unpriced call as an unknown cost, keeps what a failed task spent (session_failed) and lets a lost sign-in stop the run. Docs: ASPIRE_EVAL_SEEDS for the held-out seeds, the parameters each actor reads, the example's task.py path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
774044d to
9cf7bbe
Compare
haizhongzheng
left a comment
There was a problem hiding this comment.
Thanks for the fix in 774044d. The self-registration hole is closed: seeds now come from the host's task rows, and each rollout gets one session.
We reviewed the rest of the PR in eight rounds, with two independent reviewers per round. We verified each finding against the code, and reproduced it where we could. Then we fixed the ones we could fix ourselves. The branch is now rebased on main (2d0d82e, no conflicts), with our fixes in one commit on top, 9cf7bbe.
What changed in 9cf7bbe
Simulator service: the evaluation boundary
- Links in the output root. cap-harness ran on the host and wrote directly into the session's output root. A link the session planted there, at a name cap-harness writes (
run.json,results.jsonl,logs/, a run directory), redirected those writes outside the sandbox. Now cap-harness writes into the service's own directory (--state/runs). The run is then moved into the workspace without following links: every directory below the rollout is opened withO_NOFOLLOW, and each file replaces the entry of its name. Paths in the run's text files are rewritten to the workspace's. - Program swap. The program was hashed by path and then run by path. A session could swap it after the hash, or make it a link to a host file. Now it is read once without following links, and that exact copy is hashed, validated and run.
- Retries. A retry's
prepare(workspace._runre-deploys into the same workspace) was refused as a second registration, so a retried session failed. Now the same workspace finds its registration as it was, and what it spent stays spent. max_steps. A request'smax_stepsoverrode the registered limit. Runs now take the registration's value.- Runaway runs. cap-harness had no timeout, and stopping the service left its runs going. Each run now has its own process group and a
--run-timeout(4 h). The service stops its runs on SIGTERM, and a run cannot start while the service is stopping. - Ledger writes. The ledger is now written to a temporary file and moved into place. Before, a full disk could leave invalid JSON, and the service could not restart.
- Secrets. The simulator's environment drops secret-looking variables (names containing KEY, TOKEN, SECRET, PASSWORD, CREDENTIAL or AUTH). This applies to the service and to
sim.Engine; see the open item below for why it is only a mitigation.
Judge
- Verifier budget. A verifier's
fix_codewas scored even when it was a third program, never run within the two-program budget. Now a Codex verifier is scored only when the program's digest is in its ledger entry. The direct comparison actor runs its own versions (max_versions), so it is not checked against the ledger. max_stepsin Stage 2. Stage 2 used ASPIRE's default horizon. It now uses the session'smax_steps, whichcollectpasses in the facts.- Relative
ASPIRE_OUT. It is now resolved. Before, the engine (run withcwd=ASPIRE_ROOT) could not find the program, and the score was 0.
launch.sh and prepare.py
- Another run's service. If another run's service already held the port, its
/healthanswer passed the startup check. The launcher now passes a nonce, and/healthmust return it. - Relative paths.
ASPIRE_ROOT,ASPIRE_OUTand a relativeHERMIT_PYTHONare made absolute before the launcher changes directory. A relativeASPIRE_ROOTresolved differently inside the sandboxed worker. - Smoke seeds. The smoke seeds are chosen by the config's file name, so
ASPIRE_CONFIG=./smoke.yamlno longer gets the full seed sets. - Overlapping seeds.
prepare.pyrefuses held-out seeds that overlap the development, unseen-check or verifier seeds.ASPIRE_EVAL_SEEDS=1-200would have scored development seeds as held-out.
Other changes
- Template check. It now also checks snippets before a file's first entry, and in
ADAPTER.mdandskills/README.md. The actor reads all of these. next_tasks. It readsoutput/next_tasks.jsonwithhermit.sandbox.read_regular. Before, a link was followed, and a FIFO blocked the Evolver.bin/sim. The wrapper now quotes its interpreter.- Direct comparison actor.
- A dict model spec keeps its
timeout, its request fields and its ownreasoning_effort. - An unpriced call makes the cost unknown, instead of $0.
- A failed task keeps what it spent (
session_failed). - A lost sign-in stops the run.
- Its facts carry
max_steps.
- A dict model spec keeps its
- Docs.
- The README's evaluation command:
agent.params.eval_seeds=1-50had no effect. It is nowASPIRE_EVAL_SEEDS=1-50 ./launch.sh. docs/methods/aspire.mdlists which parameters each actor reads.- The
utils/agent/task.pypath inexamples/README.mdis fixed.
- The README's evaluation command:
Verification
- Tests.
tests/methods/aspirepasses (24 tests), as dotests/core/test_spec.py,test_selection.pyandtest_packaging.py(50 tests in all). The new tests use a stand-incap-harnessthat writes ASPIRE's run files. Each new test fails without its fix. - End-to-end smoke in the real bubblewrap sandbox, with a stand-in ASPIRE checkout (templates, docs, a
cap-harnesswith no physics) and stub providers:- Training.
./launch.shwithsmoke.yaml, real Codex/GLM sessions: both tasks scored 1.0 on held-out seeds 1–3, with exit 0. The ledger shows the rows' seeds and one unseen check per session. The deliveredresults.jsonlnames workspace paths, with no links, and the service's copies are gone. The service stopped with the run. - Verifiers. The seven verifier rows ran through
eval: allverified, all 1.0. Everyfix_code.pydigest is in its ledger entry, and none ran more than two programs. The same judge, given a program outside the ledger, scores 0. - Cost. Under $0.10 in all.
- Training.
- Not covered. These checks used no real ASPIRE physics or scores.
Still open
- Generated programs run on the host (P1). They run inside cap-harness, and
_ProgramValidatorcan be bypassed: attribute traversal inside a format string reaches__globals__. Scrubbing the environment only hides environment secrets. A program can still read and write host files, including other sessions' workspaces and$ASPIRE_OUT/stage2, and it could import cap-harness to run held-out seeds itself. Closing this needs cap-harness confined at the OS level: bubblewrap with the GPU and EGL devices bound in. hermit's sandbox mounts only a minimal/dev, so this is a framework change, and it has to be tested on a GPU host with ASPIRE. - Free first-seed runs for verifiers (a design question). A verifier's single runs on its first development seed are still free and unlimited, as you designed them for probes. With the judge's ledger check, those runs can no longer earn a score. Whether to also limit them to the scene snapshot is your call.
- The full evaluation still has to be rerun in the sandbox, as the PR description says.
Noted, no change
- Retry after spending. A retry gets a fresh workspace, but its spent unseen check and verifier programs stay spent. Resetting them needs a channel the sandbox cannot forge.
- Two launches at once. Two launches from one checkout within seconds of each other can load each other's
tasks.jsonl. Both the service and the Trainer read it only at start. - Provider URLs. URLs set only in
ASPIRE_SIM_ENVare not the oneslaunch.shchecks. This fails loudly at start. launch.sh evaloverrides. They must come before--adapter, because argparse takes no positional after an option.- Smaller points.
- A killed actor session's run continues until the timeout.
- The direct actor retries a response marked
x-should-retry: false. - Rewriting
provenance.jsonleaves ASPIRE's manifest hash stale. - A program named
outcollides with the service's output directory. - The test docstring still says "no network".
🤖 Generated with Claude Code
origin/main adds mini-swe-agent as a CLI Base Agent (Infini-AI-Lab#49), ASPIRE (Infini-AI-Lab#74), the macOS process stop (Infini-AI-Lab#88) and the wire meter stop (Infini-AI-Lab#87). Every conflict was both sides adding a fifth CLI to the same lists and docs: both are kept (mini-swe-agent, then opencode). The "takes no login" checks read one list, login.NO_LOGIN = ("pi", "mini-swe-agent", "opencode"), where main had ("pi", "mini-swe-agent") inline. The docs lists that name the CLI agents and deployment hosts now name both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…h branch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change
Adds ASPIRE (Agentic Skills Discovery for Robotics, arXiv:2607.00272, NVlabs/ASPIRE, pinned at
fa00f0ef) as a method. ASPIRE learns robot skills as text, and its three roles keep ASPIRE's own prompts:In ASPIRE every role is a Claude Code session. Here every role is a Codex (or Claude Code) session. The framework learns only the library.
Adapter template (new:
aspire). It holds ASPIRE's library layout:skills/README.md(the index) and topic filesskills/<topic>.md;## <title>, each with Failure signature., When to apply., a repair (prose plus at most one snippet) and Provenance.;ADAPTER.md(learnable).The acting agent gets
ADAPTER.mdand, below it, the whole library through the template's context toollibrary: files as context, since the paper has no retrieval ranking.The template's check:
skills/proposed.md.Fixed files:
exports.yaml,interface.py,README.md.No existing template fits:
prompt-onlyis one file;continual-harnesscarries a policy, sub-agents and memory that ASPIRE does not have;reharnessretrieves per instance from an embedded bank.Evolver (new:
aspire). It is the coordinator: anAgentEvolversubclass that setschooses_tasks = True(#67). Its prompt ishermit/agent/evolver/methods/aspire/COORDINATOR.md: a page mapping ASPIRE's guide onto the harness, then the guide's sections 6 (Update skills), 7 (Dispatch a verifier) and Curriculum, verbatim. Its tools arecheck_specandrun_agent. One step is one finished task:flowchart TD A[actor: Codex in the task sandbox with ASPIRE's fix-loop prompt; Part 2 its evolutionary search below 90%] --> S2[judge, on the host: the selected program once on the held-out seeds] S2 --> R[the step's record: findings, skill report, fix_code.py, Stage 2, unseen check] R --> C[coordinator: Codex with ASPIRE's guide 6, 7, Curriculum] L[the library] --> C C -->|repairs on graded entries| L2[the library in the adapter] C -->|proposals in a copy's skills/proposed.md| V[verifier: run_agent on verify-task] V -->|score >= 0.8| P[promote into the topic files] --> L2 C -->|output/next_tasks.json| N[StepResult.next_tasks: the next step's task] L2 --> K{template check} -->|fails| F[the Trainer repairs]The final adapter is the library after the last task. ASPIRE's Phase 3 (a rerun with the final library) is the evaluation on the test split's
rerun-<task>rows.Example
examples/aspire_robosuite/, the seven Robosuite tasks of ASPIRE's harness. The application-side code is all underexamples/:utils/agent/task.pyholds the Codex actor's task functions, which run inside the task sandbox:prepare: registers the session with the simulator service, then builds the workspace:bin/sim, ASPIRE's API, artifact, Robosuite and evosearch docs (the lines that name worked programs dropped),task-exploration.md, and the snapshot program.prompt: a mapping page, the assignment, and ASPIRE'ssubagent-prompt.mdverbatim. For actors, it adds Part 2, ASPIRE'sevosearch/subagent-prompt.mdverbatim.collect: the report, the skill report, the verdict and the selected program into the record; the run images pruned.utils/agent/sim_service.py: ASPIRE'scap-harnessas a service on the host, started bylaunch.sh. The task sandbox has no GPU, so the actor reaches it throughbin/sim(utils/agent/sim_cli.py) on a forwarded 127.0.0.1 port (ASPIRE_SIM_URLinenvironment.env). It reads the task rows on the host and takes each session's seeds, role and budget from its row, never from the request; a registration names only its workspace and task, and a rollout directory (made by the framework outside the sandbox, which can write only inside it) registers one session, of the task its name carries. It holds the rules in a ledger outside every sandbox: only the row's development and unseen-check seeds, the unseen check once, a verifier's two programs (by content), program and output inside the session's workspace.utils/prepare.py: the task, verifier and rerun rows, with their seeds.utils/judge.py: Stage 2, on the host (mode: host): the selected program once on the row's held-out seeds (a verifier: its own seeds, only with its verdictverified), and the success rate.utils/seg_service/(optional): a SAM3-wire-compatible segmentation service built from ungated Grounding-DINO and SAM, because SAM3's weights are gated.utils/agent/agent.py: the structured direct-chat actor ofrun_direct.yaml, kept as a comparison and not part of the method.The README keeps host notes for Blackwell B300 (NVRTC and sm_103, the EGL ICD and device order) in a section separate from the pipeline.
Core changes: none. The framework hook this method needs (#67, the Evolver choosing the next tasks) landed separately.
Upstream fidelity and adaptations. The full table is in
docs/methods/aspire.md. The main points:next_tasks) and the Trainer dispatches, one task at a timerun_validation.pyvoidnever promotedverifiedlint_skills.py<file>-changelog.mdstate/changelog.mdLearning information and evaluation boundaries:
sandbox: {enabled: true, enforce: required}). Its read allowlist is the example'sutils/agentand ten named ASPIRE files (the three docs, the fix-loop, verifier and evosearch prompts,task-exploration.md,evosearch-iteration.md, the snapshot program); the shipped skill library, the worked examples, other workspaces and the checkout itself are not in it. The only env var passed isASPIRE_SIM_URL; the network is isolated apart from that forwarded port. ASPIRE's reading rules are therefore enforced, not detected: the after-the-fact audit of the earlier revision is removed.$ASPIRE_OUT/stage2, outside the evolver sandbox's/w). Its prompt tells it to callrun_agentonly onverify-*rows; its sessions so far did.Agent layers:
codexacting agent (hermit/agent/acting/workspace.py, Layer 3, in the task sandbox) → thecodexBase Agent (Layer 2) →fireworks/.../glm-5p3-flashvia the backend binding (Layer 1), with the framework's timeout, retries and usage accounting.AspireEvolver(AgentEvolver)→ thecodexBase Agent with the Trainer's tools over MCP. Its sessions, cancellation and budget are the framework's.agent.py) calls thedirectBase Agent.Validation
python -m pytest tests/methods/aspire tests/core(rebased on upstreammaind5f0a64): 594 passed, 60 skipped, 7 failed. The same 7 fail on upstreammainon this host (a login node without user namespaces or a direct network):test_backends(a missing dialect check), the 2 Harbor runner tests, 3test_sandboxproxy tests, andtest_session_sandbox.tests/methods/aspire/test_aspire.py(16 tests, theaspiregroup intests/selection.py) covers:next_tasks;preparewith its registration;verifiedscored 0), and the pruning.check_specpasses on the template root.hermit check --no-probepasses on the four configs on a worker (the login node has no user namespaces for bubblewrap).Smoke, in the sandbox (
smoke.yaml, this revision774044d: 2 tasks, 3 development seeds, 1 unseen, 3 held-out; Codex with GLM 5.3 Flash in every role; B300 worker; about $0.25 and 35 min):sandbox/rollout-*.json:enforced: true,network: isolated, the read allowlist above) and ran the engine only through the host service; its ledger shows each session registered with its row's seeds, each actor's unseen check used once, and no verifier past two programs;verified;cube_stackthroughnext_tasks.3aa9a0f) gave the same shape: both 3/3, verifier 5/5.Smoke reruns (the earlier revision, without the sandbox; same seeds):
n = 3 seeds per task: this shows the pipeline works, not the method's effect.
First evaluation (
run.yamlwithagent.params.eval_seeds=1-50):e2c5fe4), without the sandbox: not a reported result under the sandbox rule. A rerun in the sandbox is to be done.--adapter root) was not run. So the rerun gains (lifting +17, restack +29, stack −4 of 50) cannot yet be separated from rerun-to-rerun variance.432e296now prunes them after scoring.Not verified: LIBERO-Pro, BEHAVIOR-1K, and SAM3 itself (its weights are gated); the runs use the stand-in. The full evaluation has not been rerun in the sandbox.
Review
enforce: required; the run'ssandbox/rollout-*.jsonrecords showenforced: true(on the cluster). The direct comparison actor runs on the host (runner: host), as a direct agent does.fix_code.pyis scored 0 with the reason;bin/sim, which exits non-zero with the reason;preparebefore the session starts;next_tasks.jsonis ignored, and the Trainer refuses invalid requests.hermit trainandhermit evalend to end on the real engine. The unit tests use a fake ASPIRE tree only for prompt and workspace assembly.docs/methods/aspire.md, plus rows indocs/methods/index.mdandexamples/README.md;examples/aspire_robosuite/README.md;CHANGELOG.md.tests/methods/aspire/, the method's paths are intests/selection.py, andtests/README.mdnames the group. Each test is named as the behaviour it holds. The stand-ins are a fake ASPIRE tree and recorded-format session streams. They write only totmp_pathor~/.cache/hermit-tests, and use no network, sign-in or agent CLI. Runtime is about 3 s.e2c5fe4) found one P1: the evaluation boundary was claimed as enforced but rested on the prompts, withbin/simbypassable and no detection. It also found five P2s:voidand attempt budget were unused;task-exploration.mdwas missing;9a95718, as described above, and the P3s with them: the task-info schema, the test docstring,bin/simaccepting the templates' flags, andfix_codebeing the scored program.9a95718) found one P1: the round-1 audit over-matched. It flagged commands that only repeat paths ASPIRE's own text makes actors type, and would have voided two clean sessions, including the evaluation's step 1. It also found five P2s:collectcrashed on a refused program;shell_env: coredropped the provider URLs frombin/sim;1e441fa: an evidence-based audit, content-hashed budget,stage2directory created, provider URLs passed throughsim.json, and the wording, with the P3s (the docs'shell_env, the check's wording, tests for each).3aa9a0f, the sandbox adoption; also found by Haizhong) found one P1:/registertook the seeds and budget from the request and is reachable from inside the sandbox, so a session could register a subdirectory of its own with the held-out seeds (or reset its unseen check and a verifier's budget). Fixed in774044d: the service takes the seeds, role and budget from the task rows it reads on the host, and a rollout directory registers one session of its own task; tests for each forgery. It also found one P2 (the tests did not try a forged registration; fixed with it) and two P3s:environment.readshows the service's source (kept: the rules no longer rest on its being unseen) and a verifier's single run on the first development seed is not counted against its budget (as designed; the judge re-scores the verdict on all five seeds).