Implement solve(world) in policy.py to dispatch lift-equipped pallet robots efficiently.
All competitors receive the same starter, protected reservation planner, and cases.
This is a NEW synthetic mixed-flow application derived from a published warehouse layout,
not the previous LLM submissions and not an unchanged official benchmark.

Business objective: complete ALL inbound replenishment AND outbound deliveries, using
as few robots as possible within 3600 simulated seconds. At the same fleet size,
lower all-jobs completion time is better. Every job must be delivered exactly once;
an outbound pallet cannot be collected before its inbound delivery completes.
Planning CPU cost is measured separately, with a hard 60-second process limit per case.
Never mutate the case, world state, robots, tasks, scoring, or recorded paths directly.
Use world.schedule to make assignments. Read public attributes and methods only.

Geometry and motion: 35x21 public warehouse grid, extended with 64 private parking bays.
One cell=4 metres, one tick=4 seconds, forward movement=1 cell/tick, quarter turn=1 tick.
The vehicle plus load is ASSUMED to fit a 3m x 1.5m envelope, with a 4m safety square.
In-place rotation is an idealization of a pallet AMR, not validated forklift steering.
Pickup and drop each occupy 5 ticks (20 seconds). One pallet per robot at a time.
The protected planner reserves both endpoint cells for the whole motion interval.
Only a robot may use its own private bay; all other bays cannot be used for transit.
This study omits battery charging and detailed truck-bed loading geometry.

API:
 world.tasks: list of dicts indexed by id, each with id, direction (inbound/outbound),
  pallet, pickup [x,y], drop [x,y], release (tick), dependency (inbound task id or None).
 world.remaining: set of unscheduled task ids; do not mutate.
 world.robots: list of dicts: id, home (x,y), free (next available tick), heading.
 world.finished: mapping of scheduled task id -> future delivery completion tick.
  These are scheduled times, not a statement that simulation time has passed.
 world.ready_tasks(): sorted ids without an unscheduled inbound dependency.
 world.distance(a,b): cached shortest grid distance (no turns or reservations included).
 world.schedule(robot_id, task_ids, not_before=0): commits a batch of sequential jobs,
  including both service operations per job, then returns that robot to its own bay.
  Its next batch starts after this return. Each job carries exactly one pallet.
  A batch can contain any number of jobs. An inbound followed by its outbound in the
  same batch is allowed. No cancellation or reassignment of committed work is available.
  Outbound dependencies must already be scheduled or earlier in the same batch.
  Release and inventory times are enforced by the common planner. not_before delays
  departure from the private bay. Return: last_drop_tick, free_tick, tasks.
  If a partial route cannot safely leave a service point, the planner retries later
  departures, then falls back to departure after all committed reservations finish.
  These delays count against completion time; route retries are recorded.
 world.case: read-only input dictionary, including shelves, docks, homes, assumptions.

The program plans a finite batch OFFLINE with knowledge of all job release times;
it is not an online controller discovering orders only on arrival. Three quarters of
outbound pallets depend on inbound replenishment. Arrival/release times span 0-300s.
The final study has 256 inbound and 256 outbound jobs and fleet sizes from 4 to 64.
Each fleet uses the same job list and a spatially spread prefix of private home bays.
Development uses 128 jobs; a separate larger 512-job case is revealed for repair.
Final grading uses three NEW random job/dock/release sequences with the same rules.

Tools allow reading starter and common source, editing policy.py, evaluating, submitting.
Phase 1: up to 1800 seconds and 6 evaluations (development case, fleets 8 and 16).
Then the first submission is frozen and measured on the repair case (fleets 16 and 32).
Its results/errors are returned to YOU, not to the other competitors.
Phase 2: up to another 1800 seconds and 6 evaluations (same development + repair cases).
You receive the same phase 2 budget even if phase 1 passed. Submit any evaluated version;
failures are recorded, not silently discarded. If time expires, the latest evaluated
version is used; if none exists the common starter is retained, with this status disclosed.
Do not ask for human algorithm hints; other model solutions are never shown.
Use only standard library imports permitted by the common source validator.
Return deterministic results; use a fixed random seed if randomness is necessary.
The tool runner is custom, not Codex CLI. Model context limit is 272000 tokens.
