# How the sandbox checks a program

A language model can write a robot program from a sentence. It can't tell whether that program fits the cell in front of it: whether the arm reaches, whether the part is too heavy, whether something is about to be stacked on a fragile box. Kata's sandbox answers those questions before anyone else sees the program.

Here are three runs on Kata's demo cell, exactly as the sandbox reported them. The cell is a UR10e with 1300 mm of reach and an 11.1 kg payload, a conveyor of 4.5 kg boxes (one fragile, one flagged as damaged by the camera), two pallets with a 14 kg crate on pallet B, a reject bin, and a CNC machine with a table of billets.

## What the sandbox does

The model writes the program as steps in Kata's [step language](/docs/step-language): pick, place, move, palletize, loops, conditions and so on. The sandbox then:

1. checks every step against the cell: the ids exist, the station accepts the part, the slot has room, nothing is picked from under another part;
2. builds the full motion, move by move, and checks reach, joint limits, collisions of the whole arm, payload, fit, fragile parts and the cell's safeguarding speeds;
3. returns whether the program is clean, each problem with its step in plain words, the cycle time and notes for the operator.

The model reads the problems, fixes the steps and runs the sandbox again. Only a clean program can be sent to Seventh Axis for approval.

## Run 1: "Stack the red boxes on pallet A, three high."

Seven steps: three picks from the conveyor, three places on pallet A slot 1, layers 1 to 3, and home.

```
clean:          true
issues:         none
cycle time:     30.8 s
top speed:      1000 mm/s
placed:         3
```

Clean, so it can be sent for approval.

## Run 2: the crate first

A plan that starts by moving the crate from pallet B to pallet A.

```
clean:   false
issue:   Step 1: that weighs more than the arm's 11.1 kg payload.
         It needs a forklift or two people.
```

The crate is 14 kg. The model can't argue with the payload; it has to leave the crate out and say so, or the program stays unsendable.

## Run 3: a box on the fragile one

A plan that puts the fragile yellow box on pallet A, then a red box on top of it.

```
clean:   false
issue:   Step 4: I won't stack anything on a fragile box.
note:    The simulation slowed the arm to 250 mm/s while it carried
         the fragile box.
```

The slow-down is automatic: the model doesn't have to remember it. The stacking rule is enforced: the fix is to place the fragile box last, so it ends on top, or in another slot.

## What it doesn't do

The sandbox is only as true as the cell it's given. It doesn't see a person who walked in, a loose tool or a part that differs from its model, and it doesn't replace the cell's guarding or the controller's safety configuration. That's why we build the digital copy of each cell ourselves during onboarding, validate it again whenever it changes, and approve every program before it runs. More in [Safety](/docs/safety).

---

Published 2026-11-29 by Seventh Axis. https://seventh-axis.vercel.app/notes/how-the-sandbox-checks-a-program
