31. Outbound to Northgate
Warehouse · Intelligence Studio
Ship every Northgate pallet to the store — leave other stores' pallets in the yard and dispatch the truck when a load is ready.
Scenario
Six pallets for Northgate Market and two for Harbor Depot staged in the yard, one forklift, and a truck that carries four pallets per trip.
Problem statement
Riverside Hub has an order to fill for Northgate Market. Six pallets for it are staged across the yard, mixed in with two pallets tagged for Harbor Depot that belong on a different truck.
You run the whole outbound operation from one policy. Forklift FL-01 carries one pallet at a time to the loading bay, where truck TRK-2051 holds four pallets per trip. When you dispatch the truck it drives to Northgate, unloads and comes back on its own — about 23 ticks — while the forklift keeps working. The order is complete when every Northgate pallet has reached the store and the truck is back in the bay.
The catch is the tags: a Harbor Depot pallet loaded onto this truck is a mis-ship, and a mis-ship fails the order.
The scaffold already runs the yard: it targets the nearest pallet, drives to it, lifts it, carries it to the dock and loads it. Two dispatch rules sit at the top, so the truck leaves as soon as it is full (dispatch-full) and also leaves with a partial load once nothing for this store is left to load (dispatch-last). The truck never sits loaded in the bay.
One decision is missing: the scaffold never checks a pallet’s tag, so it loads Harbor Depot pallets — the very first pallet it targets is one. Add a rule that leaves a targeted pallet in the yard when it is not for this store, and move it to the very top with the ↑ arrows so it is checked before lift.
Rules are checked top to bottom; the first one whose condition holds and whose action is possible fires. When no rule matches, the yard waits for a tick — for example, the forklift waits with its next pallet while the truck is on the road.
The forklift’s battery is only spent driving, so waiting for the truck is free. If the yard sits completely still for 12 ticks with the truck in the bay, the run stops as stalled and the view tells you which decision was missing.
What this teaches
Run a multi-stage operation from one ordered rule list: screen work before doing it (check the tag), then do the work (lift, carry, load) and hand off each batch (dispatch).
Active controller
Apply & Run executes only the selected controller.
How a rule works
A rule has two parts:
WHEN <something is true> → DO <this action>
- WHEN is a question about what is happening right now. For example: "Is it raining?" or "Is there a wall ahead?"
- DO is what happens when the answer is yes.
- The simulation runs one step at a time.
- On each step, the rules are checked from top to bottom.
- The first rule that is true wins. The rules below it are skipped for that step.
- To change which rule wins, move it up or down the list.
- If no rule is true, nothing happens on that step.
- Some actions have more than one step, like "turn right, then move". You build these in the Functions tab.
- Once a multi-step action starts, it finishes all its steps before the rules are checked again. It only stops early if the next step is not safe.
See an example
Two rules for deciding about an umbrella:
1 WHEN isRaining → take an umbrella 2 WHEN always → leave the umbrella at home
- It is raining. Rule 1 is true, so you take an umbrella. Rule 2 is skipped.
- It is sunny. Rule 1 is false, so rule 2 is checked next. Rule 2 is always true, so you leave the umbrella at home.
- Order matters. If rule 2 were on top, it would be true every day, and you would never take an umbrella.
Rule folders
Categorise cards without changing their global execution order.
Task progress & pass contractThe exact requirements used to judge this visible run⌄
- Deliver every Northgate pallet, truck back in the baynot run
reached && allDelivered - No mis-shipped palletsnot run
reached && misShips == 0 - Finish in two truck tripsbonusnot run
reached && misShips == 0 && truckTrips <= 2
Press Apply & Run to load your brain and start the simulation.