Second Nature

The training groundfor robot judgment.

We build RL environments that train frontier AI models to control robots by writing code. Each one is a simulated robot task, a code API, a hidden check that reads the true simulator state, and a reference program that passes.

second-nature.world

Scroll to descend

Thesis

Coding agents that control robots will matter whichever robot architecture wins. Robot foundation models are still brittle outside their training data, and improving them takes robot data collected on hardware. Coding agents turn robot control into a coding problem: write a program, simulate, revise, with no robot data. They are still weak at it, and they can be trained. We build the environments that train them.

above 90% 0% LIBERO After perturbation

Robot models are brittle outside their training data

Models scoring above 90% on the LIBERO benchmark dropped to 0% when objects, positions and instructions were perturbed.

LIBERO-PRO

34% 456 core tasks Solved by the best of eight coding agents

Coding agents are still weak at this

On the Embodied First Exam, the best of eight coding agents solved 34% of 456 core tasks.

Embodied First Exam, Nov 2026

Before RL, average of three tasks 20% After RL in simulation 72% Its programs on a real arm 84% 76%

And they can be trained

RL in simulation took a 7B model from 20% to 72% average success on three tasks. Its programs then reached 84% and 76% on a real arm with no further training.

CaP-X, Table 4

Gemini Robotics ER 2 plans multi-step tasks calls it as a tool VLA motor execution

Google already splits planning from motion

Gemini Robotics ER 2 plans multi-step tasks and hands motor execution to a VLA that it calls as a tool.

Google, Gemini Robotics ER 2

12.8% 53.3% Before A frontier model orchestrating a frozen VLA

The headroom is in the layer above

A frontier model orchestrating a frozen VLA raised success on LIBERO-PRO from 12.8% to 53.3%, with no new training. The skills stayed fixed; the gain came from the layer above.

Galanti, Shah, Dao, Jul 2026

Agent-written programs generate Demonstrations train A trained policy completes A real-robot task

Agent-written programs can train robot policies

In EmbodiedSWE, a policy trained only on demonstrations generated from agent-written programs completed a real-robot task.

EmbodiedSWE

Two layers, one API

Judgment

A program decides what to do, in what order, whether it worked and how to recover.

# Sample a grasp pose for the green cube and pick it up
pick_pos, pick_quat = sample_grasp_pose("green cube")
goto_pose(pick_pos, pick_quat, z_approach=0.1)
close_gripper()
# Lift the green cube after grasping
post_pick_pos = pick_pos.copy()
post_pick_pos[0] -= 0.15

The skill API

  • get_object_pose()
  • sample_grasp_pose()
  • goto_pose()
  • open_gripper()
  • close_gripper()

Skills

The arm skills the API already has: read an object’s pose, sample a grasp, move the gripper, open and close it.

The checker grades the outcome, not the policy.

From instruction to reward

  1. 1Task

    A simulated robot arm, a table, objects and an instruction. The API’s skills include get_object_pose, sample_grasp_pose, goto_pose, open_gripper and close_gripper.

    “Gently place the red cube on top of the green cube and then open the gripper. Nothing should be dropped from a height.”

    The instruction for cube restack.

  2. 2Program

    The model writes a Python program against that API and gets one try. The program, not the model, drives the arm in simulation.

    import numpy as np
     
    # 1) Perceive both cubes first, while the arm is still clear of the scene.
    #    Positions are treated as bounding-box centers. Extents are full side lengths in the
    #    world frame, so the z-extent is each cube's height whatever its yaw.
    red_pos, _, red_extent = get_object_pose("red cube", return_bbox_extent=True)
    green_pos, _, green_extent = get_object_pose("green cube", return_bbox_extent=True)
    red_pos = np.asarray(red_pos, dtype=float)
    red_extent = np.asarray(red_extent, dtype=float)
    green_pos = np.asarray(green_pos, dtype=float)
    green_extent = np.asarray(green_extent, dtype=float)
     
    # 2) Grasp the red cube. The sampled grasp quaternion is reused for every later move.
    grasp_pos, grasp_quat = sample_grasp_pose("red cube")
    grasp_pos = np.asarray(grasp_pos, dtype=float)
    grasp_quat = np.asarray(grasp_quat, dtype=float)
     
    open_gripper()
    goto_pose(grasp_pos, grasp_quat, z_approach=0.1)  # 10 cm above the grasp, then straight down
    close_gripper()
     
    # 3) Exact gripper pose that rests the red cube on the green cube.
    #    grasp_offset is where the gripper holds the cube: gripper position relative to the red
    #    cube's center at grasp time. The orientation never changes, so this offset stays fixed
    #    in the world frame and can be added back onto the cube's target center.
    grasp_offset = grasp_pos - red_pos
     
    green_top_z = green_pos[2] + green_extent[2] / 2.0  # top face of the green cube
    red_stacked_z = green_top_z + red_extent[2] / 2.0   # red cube center with its bottom face on that top face
    release_gap = 0.002                                 # 2 mm: set the cube down without pressing it into the green cube
     
    place_pos = np.array([
        green_pos[0] + grasp_offset[0],                 # red cube centered on the green cube in x
        green_pos[1] + grasp_offset[1],                 # and in y
        red_stacked_z + grasp_offset[2] + release_gap,
    ])
    print(f"green top z: {green_top_z:.4f}, red center target z: {red_stacked_z:.4f}, gripper place position: {np.round(place_pos, 4)}")
     
    # 4) Carry the cube across at a height where its bottom clears the green cube's top by ~10 cm.
    transit_z = max(grasp_pos[2], place_pos[2]) + 0.10
    goto_pose(np.array([grasp_pos[0], grasp_pos[1], transit_z]), grasp_quat)  # lift straight up off the table
    goto_pose(np.array([place_pos[0], place_pos[1], transit_z]), grasp_quat)  # move to directly above the green cube
     
    # 5) Lower onto the green cube (pause 2 cm above, then a short final descent) and release.
    goto_pose(place_pos, grasp_quat, z_approach=0.02)
    open_gripper()
    

    Fable 5.2, seed 100.

  3. 3Episode

    A hidden check reads the true simulator state. It grades the final world state and the whole episode’s history: contacts, drops, what touched what.

    The run that program produced.

  4. 4Reward

    Pass or fail becomes the reward a lab needs to post-train a model for robotics, and the check’s reasons say why a run failed.

    • red not grasped Met
    • red centre above 4 cm Not met
    • red touching green Not met
    • not both cubes high Met
    • Verdict Fail

    The check for this task, part by part.

What the simulator knew red cube green cube
025 cm

0 s12.3 s, the program ends

Height of each cube through the run above, in cm above where the red cube started, read from the simulator at every frame. The marker follows the video.

Where frontier models fail today

Each model wrote one program per seed, with no feedback and no retry. Run dates are UTC.

Two-arm lift

Two arms lift one pot together. All eight of GPT-6.2 Astra’s failures ran to the end with the pot not lifted.

GPT-6.2 Astra 2 of 10

Seeds 100 to 109, run 23 Nov 2026

Fable 5.2 1 of 10

Seeds 100 to 109, run 24 Nov 2026

Reference program 27 of 30 Seeds 100 to 129, run 23 Nov 2026

Cube restack

On every seed the green cube starts on top of the red one, and the instruction does not say so. Both models act on an assumed layout and do not check that one cube starts on the other.

GPT-6.2 Astra 0 of 10

Seeds 100 to 109, run 23 Nov 2026

Fable 5.2 0 of 10

Seeds 100 to 109, run 23 Nov 2026

Reference program 30 of 30 Seeds 100 to 129, run 23 Nov 2026

Two-arm handover

GPT-6.2 Astra 6 of 10

Seeds 100 to 109, run 23 Nov 2026

Fable 5.2 8 of 10

Seeds 100 to 109, run 24 Nov 2026

Reference program 29 of 30 Seeds 100 to 129, run 23 Nov 2026

Nut assembly

All eight of Fable 5.2’s failures ran to the end with the nut not on the peg.

GPT-6.2 Astra 7 of 10

Seeds 100 to 109, run 23 Nov 2026

Fable 5.2 2 of 10

Seeds 100 to 109, run 24 Nov 2026

Reference program 30 of 30 Seeds 100 to 129, run 23 Nov 2026

Spill wipe

GPT-6.2 Astra 8 of 10

Seeds 100 to 109, run 23 Nov 2026

Fable 5.2 10 of 10

Seeds 100 to 109, run 23 Nov 2026

Reference program 28 of 30 Seeds 100 to 129, run 23 Nov 2026

Environments, pipeline, platform

Making a task hard is easy, since a broken task is maximally hard. Making one that is hard for the right reason is the work.

Environments

What a lab gets

A simulated robot task, a code API, a hidden check and a reference program that passes. Labs run their own model inside it. Made for post-training teams at frontier labs, who already buy coding and computer-use environments.

  1. 1A simulated robot task
  2. 2A code API
  3. 3A hidden check
  4. 4A reference program that passes

Pipeline

Six checks on every environment

Every environment has to pass all six checks before we ship it.

  1. 1Valid

    The scene loads and replays from its seed. A do-nothing program and every known-bad program fail.

  2. 2Not easy

    Each model under test writes one program for each of 10 seeds. At least one model passes 5 or fewer.

  3. 3Solvable

    A solver’s frozen program passes 27 of 30 seeds it never saw.

  4. 4Fair

    The facts the solver had to discover go into the docs, and the 10 seeds rerun. The gap must remain.

  5. 5Ungameable

    A breaker gets 10 attempts to pass without doing the task. A founder rules on any hit.

  6. 6Confirmed

    100 seeds per model and 100 reference runs, on fresh seeds shared by all. The reference passes at least 90, and at least one model passes 50 or fewer.

Platform

For robotics engineers

Our platform makes it easier for robotic engineers to find where robots actually break. We put those failures into an environment for labs to train them away.

  1. An engineer finds where a robot breaks
  2. We put that failure into an environment
  3. A lab trains the failure away

Two forms

The environments come in two forms with one set of checks.

Simulated tasks are for training at volume: they run on the lab’s own machines, thousands at a time. Next to them we are building a robot lab for proof: the same tasks on real arms that reset and score themselves, which a lab can reach remotely to see whether results from simulation hold on hardware.