P4: Delivery Rounds with Time Windows#
This page gives the benchmark task P4 as it is built, and the control-tier task T4 from the same code. The design is in Farm Benchmark Suite: Design, sections 4 (T4), 6 (P4) and 7.6 (work package WP3). The simulator parts are in Fast/acres_batch/. The task parts are in Benchmark/acres_bench/p4/ and Benchmark/acres_bench/t4/, and the tests are in Tests/Fast/test_rounds.py. Each number on this page comes from a JSON file in Results/Benchmarks/. The table of each section names the file.
1. The Task#
One, two or three Polaris serve delivery requests on the lanes of a farm during a working day. Each request goes from the yard to the delivery spot of a field. The vehicle loads at the yard, drives the way there, serves at the spot and drives the way back. Each request has:
- a release time, when the request becomes known (half of the requests at the start, the others during the round),
- a time window \([a_i, b_i]\) for the start of the service. The service cannot start before \(a_i\),
- a service time of 60 s to 180 s.
The vehicles share the lanes. On a single-track stretch two vehicles cannot pass. The episode ends when all requests are served and all vehicles are at the yard. It also ends at the time limit, at a safety event or at a deadlock failure.
An episode is a success if all of these conditions are true:
- All requests are served.
- The lateness of each request is 5 min or less.
- No contact, no exit from the corridor and no overlap of two vehicles occurs.
- No deadlock failure occurs (a cycle of waits that holds 120 s).
T4 from the same code. T4 is skill K2 (meet and yield) alone. Two vehicles start from rest 120 m before a single-track zone of a delivery path. One is on the way there and one is on the way back. Each must get to 80 m past the zone before the time limit (1.5 times the free time of the longer leg, plus 120 s), with no contact, no corridor exit and no deadlock failure.
T4 with a truck. This variant is the meeting that a farm road has. One controlled vehicle drives the leg of the way there. One vehicle of the traffic model of the physics kernel comes the other way along the same road. (It is a car, a pickup, a truck, a semi or a tractor of the mix of scenarios_traffic. It has its own speed and meeting behaviour.) Its time is set to meet the controlled vehicle near the zone. Its road is the route of the controlled vehicle backwards, and its verge is the corridor beyond the road.
The traffic model reacts to vehicle 0 only, so the variant has one controlled vehicle. Success: the controlled vehicle at the end of its leg before the time limit, no contact and no corridor exit.
2. Status#
| Part | File | Status |
|---|---|---|
| Scene generator, splits, single-track zones, T4 scenes | Fast/acres_batch/scenarios_rounds.py |
Built |
| Environment: rounds of 1 to 3 vehicles, the round and the request as state machines | Fast/acres_batch/env_rounds.py |
Built |
| Meeting rule (reservation of the single-track zones) | Fast/acres_batch/meeting.py |
Built |
| Verifier | Fast/acres_batch/verify_rounds.py, Benchmark/acres_bench/t4/run.py |
Built, run |
| Event log and re-simulation (Event Log and Verifier) | Fast/acres_batch/eventlog.py, Benchmark/acres_bench/p4/run.py |
Built, run |
| Reference drive (low level of the classical baseline) and the drive interface | Fast/acres_batch/baselines/drive.py |
Built, run |
| VRPTW solver, solved again for each new request | Fast/acres_batch/baselines/vrptw.py |
Built, run |
| Checks, solvable bank, re-simulation, speed | Benchmark/acres_bench/p4/run.py, Benchmark/acres_bench/t4/run.py |
Built, run on the test banks |
| Trips with several requests: the ways between the spots, the loads, the capacity, the VRPTW with reloads | scenarios_rounds.py (links, trips_scene), env_rounds.py, baselines/vrptw.py (solve_trips) |
Built, run |
| T4 with a truck of the traffic model | scenarios_rounds.py (truck_scene), env_rounds.py (_traffic, traffic_closed), Benchmark/acres_bench/t4/run.py --truck |
Built, run |
| Merge zones, the zones of a route that passes twice, the gap and the back-off of the P4 drive | scenarios_rounds.py (merges, zones), meeting.py, baselines/drive.py |
Built, run |
| Fuel of each vehicle | env_rounds.py (_fuel, the ground tables of WP6) |
Built, run |
| Learning baselines: the high level of P4, the meeting policy of T4, the adapter of the drive model | Benchmark/acres_bench/p4/learn.py, Benchmark/acres_bench/t4/learn.py, Benchmark/acres_bench/drive/adapter.py |
Built, smoke tests only (section 10). The training waits for the fused kernels. |
The results: the checks of P4 on the test banks of the real farm pass for 1, 2 and 3 vehicles (the do-nothing controller fails each scene, every log repeats). The reference solution passes 64, 64 and 62 of 64 scenes (64, 54 and 46 before the fixes of section 9), with no deadlock failure and no contact. With trips of several requests it passes 63, 64 and 61. T4: the reference passes 64 of 64, the drive without the meeting rule 48. T4 with a truck: 63 of 64 (its one failure is a time-out, no contact). These are the counts of the evaluation of the branch gaps (19 Nov 2026: the traffic law and the back-off at angled junctions of that branch, the map of stage 3).
The build does not include these parts:
- the standard and realtime settings (they need the gateway of section 9.5 of the design),
- a trained learning baseline (the code and its smoke tests only, section 10),
- the farm traffic of the design on the lanes of P4 (the traffic model reacts to vehicle 0 only, T4 with a truck has it with one vehicle), the gates and the wet field entrances (none on the delivery paths),
- the ruts (no wheel on field soil),
- a junction zone for a turn across the road of an oncoming route (section 7, contacts),
- the abstract mode of WP10.
A limit of the results: the count of the reference with 3 vehicles moved by 1 to 3 scenes between runs of the same task (62, 63 and 61 of 64). The results of the fast simulator still change with the layout of the GPU memory. This is a known open defect (stage 2). A difference of 1 to 3 scenes between two runs is thus not a change of the controller.
3. Scenes and Splits#
A scene is the yard of a map, 2 to 8 delivery spots and 3 to 8 requests. The routes are the delivery paths of scenarios_delivery.paths. The way there is the mission "goto" of the run-time library from the yard to the spot of a field. The way back is the mission "home".
A path keeps the corridor of the checker of the vehicle on it. A spot is used only if its way there and back is 2.6 km or less. The body must also fit the corridor of the vehicle on the whole of both ways (43 spots of the real farm).
| Split | Maps |
|---|---|
| Train | acre-merged, acre-split, acre-detour, acre-deadend, acre-mixed |
| Validation | acre-sparse, acre-maze |
| Test | the default map (the surveyed farm) |
| Vehicles | Requests in a Scene |
|---|---|
| 1 | 3 to 4 |
| 2 | 4 to 6 |
| 3 | 6 to 8 |
Time windows. The generator makes a random plan. It takes the requests in order of release and gives each to the vehicle that is free first, at the free drive time times 1.3. The window of a request opens up to 15 min before the arrival of this plan and closes 2 to 15 min after it. Thus a plan with no lateness exists. The order of this plan is random, so a solver must find a good order.
Single-track zones. Where two routes of a scene go along one road in opposite directions and the corridor is narrower than 5.2 m, two vehicles cannot pass. A zone is such a stretch.
Stretches less than 41.8 m apart are one zone (ZONE_GAP_M). A vehicle keeps a zone until its rear is 20.9 m past it. It waits for the next zone 15 m before it. A shorter gap has no room for it to wait out of the first.
A route can turn onto the road of a route that comes the other way. Such a junction is also a single-track stretch, whatever the width of the road (zones(..., junctions=True), P4 only). On the turning route it goes from 10 m before the joining point to 15 m after it. On the other route it goes from 15 m before the point to 10 m after it. Each route that goes along a zone has the arcs of the zone and its direction.
The direction is measured against the points of the zone, turned to agree along the zone, so that it holds through a bend. A route that passes a zone twice (it goes up a road and later comes down the same road) has an entry for each pass. The zone is then one zone for each pass.
Merge zones. Where a route joins the road of another route in the same direction (a junction, the exit of a spot, the approach to the yard), one vehicle at a time can pass. A merge zone goes from 10 m before the joining point to 15 m after it (scenarios_rounds.merges). It is on each route that passes the point in that direction. Joining points nearer than 20 m are one zone, but joins of opposite directions are two zones.
Trips with several requests (the kind "trips"). A scene of this kind has 3 spots. It has the ways there and back of each spot, and the way from each spot to each other spot (6 ways). Each way between spots is the mission "goto" of the run-time library from the spot, in the heading of the arrival, with the vehicle's corridor (scenarios_rounds.links). The way has the forward stretch after the last reverse, as the way back has. Each request has a load of 20 kg to 200 kg.
The capacity of the Polaris is 454 kg.
Both values are assumed (section 9). The windows come from the same random plan of one request a trip, so a plan with no lateness exists. The requests and the vehicles are as in the table above. The old form (one request a trip, the kind "rounds") stays as it is, because the results of section 7 use it. The trips are a second set of banks.
Corridor. Each route has its own chain of capsules: the corridor of its own mission. A merge of the chains of several paths on one road does not give a corridor for the checker (section 9).
4. Interface#
The environment env_rounds.RoundsEnv takes E scenes and A rows for each scene (the agent rows of WP1). Each decision (0.5 s) it takes two actions:
| Action | Shape | Meaning |
|---|---|---|
choice |
[B] | The next request of a vehicle that is parked at the yard, or -1 (wait). Only the rows of parked vehicles read it. With trips, a vehicle that loads also reads it. The request joins its trip when its load fits the capacity (15 s more of loading for each request after the first, assumed). |
drive |
[B, 5] | The chunk of chunk.py for each vehicle that drives. The checker and the shield of env.Env apply. |
Each decision the environment gives each row the window of its route (WP2, lanes.window): 64 capsules and 256 route points. With the meeting rule, the route of a vehicle that waits for a zone ends before the zone. Thus any drive stops there.
A drive is a function of the environment to the actions [B, 5]:
baselines/drive.ReferenceDrive: the reference drive (section 6).baselines/drive.PolicyDrive(fn):fn(obs)withobs = env.observe(), the observation ofenv.Env(458 numbers). A learned drive model of another repository plugs in here.baselines/drive.STAND: the do-nothing drive.
The round of a vehicle is a state machine (ROUND_STATES): parked, loading (30 s), out, waiting (for the window), serving, leaving (the turn at the spot, 30 s), back, failed. The life of a request is a state machine (REQ_STATES): hidden, open, taken, service, served. One transition function changes each, and the state is in env.state. With trips, the requests on board are in jobs in the order of loading, with the load in load. At the end of a service the next request of the same spot goes to waiting (the event arrive).
A request of another spot gives the turn and then the way between the two spots (leaving to out, the event onward). With no request left, the vehicle goes back.
The vehicles at the yard and at the spot are off the lanes. They are not peers of the other vehicles. A vehicle leaves the yard or the spot when these two conditions are true. No vehicle on the lanes is within 15 m of the start of its route, and no zone near the start is held against it.
5. Metrics, Verifier and Checks#
The verifier (verify_rounds.grade) reads only the episode log (RoundsEnv.episode_log). The log has the times and the vehicle of each request, the counters of each vehicle and a trace of the poses each 1 s. It checks these rules:
- The times of a request are in order: release, take, arrival, start, end.
- The service starts at \(a_i\) or later and lasts its service time.
- A vehicle serves one request at a time. With one request a trip, the trips of a vehicle (take to end) do not overlap. With trips, the services of a vehicle do not overlap, and the load on board at each take is within the capacity.
- No two bodies overlap at a pose of the trace.
The metrics are those of section 6.4 of the design:
- the served share \(W\) and the on-time share,
- the total lateness \(L\) and the makespan \(T_{ms}\),
- the distance, the fuel \(F\), the idle share \(\iota\) and the blocked time,
- the deadlocks \(D\) and the safety events \(R_{safe}\),
- the procedure score \(Q = W\, T_{LB} / \max(T_{ms}, T_{LB})\).
\(T_{LB}\) is a lower bound on the free drive times (section 9). With trips it is the latest of the earliest service ends, and the least work shared over the vehicles. This work has these parts:
- The services: one load for each trip that the loads need (the total load over the capacity, and at least one for each vehicle that works).
- The handling of the other requests.
- The shortest way into each spot that has a request (from the yard or from another spot).
Fuel. The fuel of each vehicle on the lanes comes from the ground tables of WP6 (ground.py: the steady state of Core's Polaris) on gravel. It uses the mean speed of each decision, the pull of its acceleration and the load on board. It is the model of Core, not a measurement. At the yard and at a spot the engine is off (assumed). A vehicle that stands on the lanes counts at the slowest speed of the tables (0.5 m/s).
The checks of section 9.3 of the design:
- The do-nothing controller (no request taken, every vehicle stands) must fail every scene.
- The reference solution must pass. The scenes that it passes and that the do-nothing controller fails are the solvable bank.
- Re-simulation: the same scenes, seed and logged actions must give the same event log record, bit for bit (Event Log and Verifier). The verifier grades the final summary of its own run.
6. Baselines#
Classical baseline (the reference solution). The high level is a VRPTW solver (OR-Tools routing, guided local search, 100 solutions for each solve, about 0.2 s, with trips 25 solutions of the larger model, also about 0.2 s). The limit is a count of solutions, not a time. A run repeats (before 12 Nov 2026 it was 0.2 s of the wall clock. The plans changed with the load of the CPU). The model has the open requests as nodes, each vehicle from its free time at the yard, and tours of trips yard - spot - yard. The service start has a hard lower bound at \(a_i\) and a soft upper bound at \(b_i\).
The solver runs again when a request is released (the controller polls each 10 s). With trips the model is a VRPTW with reloads (the multi-trip VRP of the OR-Tools example "cvrp_reload"): after each request the tour can visit the yard, which empties the load. A capacity dimension holds the load of a trip. The transit between two requests of one trip is the service, the handling at the yard, and (to another spot) the turn and the way between the spots. The plan of a vehicle is a queue with the number of the trip of each request.
A loading vehicle takes the next request of its trip. The low level is the reference drive with the meeting rule:
- The reference drive makes 18 candidate chunks along the route and checks them with the checker. It takes the first accepted chunk in an order of preference. Where an own vehicle comes the other way, it keeps right by the room that the corridor gives (up to 2.2 m) and slows to 2.5 m/s.
- The meeting rule reserves each single-track zone for one direction at a time, and each merge zone for one vehicle. A vehicle that waits stops 15 m before the zone. A vehicle keeps a single-track zone until its rear is 20.9 m past it (
meeting.PAST_M: past the place where a vehicle of the other direction waits for it). A merge zone until its rear is 3 m past it. - The back-off (skill K2): when two vehicles of the controlled fleet stand face to face for 5 s, one backs 20 m along its route.
- The gap: the drive plans to stop 15 m behind an own vehicle ahead that goes its way (60 m ahead, 3 m across, or within 3 m of its route in the next 60 m: the arc along the route). A vehicle that stands 10 s on corridor refusals backs 10 m. It tries four reverse chunks: the curvature of the pursuit, straight, half and opposite. The drive of the other tasks keeps its defaults (no gap, 3 m, one reverse chunk).
Operator rule. A parked vehicle takes the open request that is due first (earliest due date). The same low level. With trips, a loading vehicle adds the open request that is due first when it fits the capacity and its window opens within 5 min.
The solver with the waits (vrptw_pace). The reference with the drive times of the solver's model times the pace of the reference drive (p4_pace.json). The pace comes from the validation bank, for each number of vehicles. The free pace has no waits at the single tracks, the merges and the yard.
Learning baseline. p4/learn.py learns the high level with the reference drive below it (level L2). T4: t4/learn.py learns the meeting. Section 10 gives both. No training ran.
T4. The reference: the reference drive and the meeting rule. A second row: the reference drive without the meeting rule.
7. Results#
All runs: the test banks of the real farm (64 scenes each), the privileged setting, 13 Nov 2026 (the speeds are indicative). SR has the Wilson 95 % interval. The code that ran is commit dfd3194, with the defaults of the vehicle's behaviour. The tree had changes of the result files only. The checks, the solver, the pace, the contacts and the drive without the meeting rule ran on an NVIDIA L40S shared with other work. The operator rule (p4_eval_edd_*.json) ran on the second machine (an NVIDIA GeForce RTX 5060 Ti).
The checks of P4 (p4_validity_a1.json, p4_validity_a2.json, p4_validity_a3.json):
| Vehicles | Requests | Do-Nothing: SR | Reference: SR | Solvable Bank | Logs That Repeat (Do-Nothing, Reference) |
|---|---|---|---|---|---|
| 1 | 3 to 4 | 0 / 64 | 64 / 64 (1.00, 0.94 to 1.00) | 64 | 64, 64 |
| 2 | 4 to 6 | 0 / 64 | 64 / 64 (1.00, 0.94 to 1.00) | 64 | 64, 64 |
| 3 | 6 to 8 | 0 / 64 | 61 / 64 (0.95, 0.87 to 0.98) | 61 | 64, 64 |
Before the fixes of section 9 (commit 5a65aec) the reference passed 64, 54 and 46. Its failures then: with 2 vehicles 9 at the time limit and 1 deadlock failure. With 3 vehicles 11 at the time limit, 6 deadlock failures and 1 overlap of two vehicles. Now no deadlock failure and no contact occurs. The log of scene 10 with 3 vehicles counts 2 deadlocks that the back-off parted, and the scene passes (\(D\) 3.1 per 100).
The three failures with 3 vehicles (scenes 0, 37 and 53) end at the time limit, with 4 of 6, 5 of 7 and 6 of 8 requests served. Scene 37 failed in the same way on 12 Nov 2026 (a bend at the limit of the steering, the fixes of 12 Nov below). The cause of the failures of scenes 0 and 53 in this run is not analysed (both failed at the time limit or late on 11 Nov 2026 too).
The failures on the map of stage 3 (the result files of 19 Nov 2026, commit 97d3caf). The banks were made again on the new map, so scene numbers before 17 Nov 2026 are other scenes. With 3 vehicles the reference fails scenes 0 and 53 at the time limit and scene 54 with a request more than 5 min late (all requests served). Each scene alone gives the same end (a run of 19 Nov 2026 on oats5).
- Scene 0: vehicle 1 (on its way out) and vehicle 2 (on its way back) stop 8 m apart at about (-61, -207) at 802 s to 822 s, and stand to the time limit. There the routes leave the single-track zone near the yard (zone 0 of the routes: arcs 0 m to 84 m of the way there). Vehicle 1 has left the zone (17 m past its end) and vehicle 2 waits 17 m before it, in the middle of the road (the controlled vehicles do not keep right when they wait, section 9). The corridor is 7.9 m wide, but vehicle 1 turned 40 degrees off its route to pass and the checker holds it. Vehicle 0 waits for a zone from 1,116 s. The deadlock detector does not see the cycle: a vehicle that the checker holds does not wait for a zone. Trips with 2 vehicles, scene 28, stop at the same place in the same way (843 s and 854 s).
- Scene 53: vehicles 0 and 1 stop 5.6 m apart at a junction near (-69, 34) at 1,012 s, their headings about 97 degrees apart. The corridor is 4.9 m to 5.9 m wide. Vehicle 2 waits for a zone that they hold from 1,318 s.
Thus both are stand-offs at junctions that no single-track zone covers. The width of the lanes of the new map (5.25 m, against the meeting width of 5.2 m) is not the cause at these places. A fix needs zones at junctions where two routes meet at an angle, or a deadlock detector that counts the holds of the checker (not built).
Since 19 November 2026 the back-off also starts for an own vehicle that stands across the way. It must be within 15 m and more than 60 degrees off the heading. A vehicle whose back-off the checker refused does not yield again for 30 s while another stuck vehicle can (baselines/drive.py, CROSS_DEG, BACK_RETRY_S). Scene 0 then passes. Scene 53 still fails: the two vehicles stop inside each other's point margin, so the checker refuses each plan of both, forwards and backwards. Only a junction zone that keeps the second vehicle out can prevent it.
The baselines of P4 (the reference from the check files, the others from p4_eval_edd_a*.json and p4_eval_no_meet_a*.json):
| Controller | Vehicles | SR | \(Q\) | \(W\) | Lateness \(L\) (s, Mean) | \(T_{ms}\) / \(T_{LB}\) (s, Mean) | \(\iota\) | Fuel \(F\) (L, Mean) | \(D\) per 100 | \(R_{safe}\) per 100 |
|---|---|---|---|---|---|---|---|---|---|---|
| Reference (VRPTW) | 1 | 1.00 | 0.93 | 1.00 | 0 | 1795 / 1678 | 0.04 | 0.55 | 0 | 0 |
| Reference (VRPTW) | 2 | 1.00 | 0.83 | 1.00 | 5 | 1333 / 1112 | 0.08 | 0.76 | 0 | 0 |
| Reference (VRPTW) | 3 | 0.95 | 0.81 | 0.99 | 167 | 1522 / 1210 | 0.13 | 1.18 | 3.1 | 0 |
| Operator rule (EDD) | 1 | 1.00 | 0.93 | 1.00 | 4 | 1800 / 1678 | 0.04 | 0.55 | 0 | 0 |
| Operator rule (EDD) | 2 | 1.00 | 0.84 | 1.00 | 0 | 1323 / 1112 | 0.07 | 0.76 | 0 | 0 |
| Operator rule (EDD) | 3 | 0.94 | 0.81 | 0.98 | 95 | 1485 / 1210 | 0.12 | 1.17 | 1.6 | 0 |
| Reference without the meeting rule | 2 | 0.72 | 0.62 | 0.87 | 627 | 1612 / 1112 | 0.22 | 0.74 | 7.8 | 3.1 |
| Reference without the meeting rule | 3 | 0.39 | 0.41 | 0.72 | 1067 | 1667 / 1210 | 0.30 | 1.02 | 35.9 | 0 |
The operator rule with 3 vehicles fails 4 scenes: 3 at the time limit (scenes 21, 51 and 54) and 1 deadlock failure (scene 36). No overlap of two vehicles occurs. The cause of these failures is not analysed. The drive without the meeting rule fails 18 scenes with 2 vehicles (12 at the time limit, 4 deadlock failures, 1 safety end, 1 with a request more than 5 min late. The safety end is a contact or the corridor left, scene 45.) and 39 with 3 vehicles (17 at the time limit, 22 deadlock failures).
Contacts between the controlled vehicles (p4_contacts.json). The reference ran 12 times with the event log, 576 episodes in all. It used 2 and 3 vehicles, the test bank (64) and the validation bank (32), and the seeds 0, 1 and 2. No episode has a contact or an overlap of two bodies in the trace: 0 per 100 episodes, at most 0.66 per 100 (Wilson 95 %). Its success over the seeds:
- With 2 vehicles: 64, 64 and 64 of 64 (test), and 32 of 32 (validation) with each seed.
- With 3 vehicles: 61, 60 and 58 of 64 (test: 3, 4 and 5 at the time limit, and 1 deadlock failure with seed 2). On the validation bank, 30 of 32 with each seed (1 at the time limit and 1 deadlock failure).
The one contact of the earlier check (3 vehicles, scene 26) was two vehicles that came home on two roads and merged at a junction. The merge zones of section 9 remove it. The contact of the earlier run "did not repeat" because the solver's time limit is a time of the wall clock. The plans. So the episodes, depend on the load of the CPU. The logs repeat (the replay uses the logged actions), but a second run of the controller is not the same episode.
Before 12 Nov 2026 the operator rule had a contact the reference has not shown (3 of 192 episodes with 3 vehicles: 2 in the rounds, 1 in the trips). The 2 of the rounds (scenes 16 and 63, run again with a record of each decision) are at one junction of the real farm. There the road from the north at x = 28 m meets the east-west road at y = 36 m. The one of the trips is not analysed. A vehicle that comes home turns west onto the east-west road while a vehicle on its way out comes east on it at 5.3 m/s. The turning vehicle's heading is about 60 degrees off the opposite direction.
The drive does not take it for an oncoming vehicle (no keep-right, no slower pass). That stretch has no single-track zone on the route of the vehicle that comes east. The merge zones are for one direction only. This was a defect of the meeting rule. Since 12 Nov 2026 such a junction is a single-track stretch (section 9, third pass). In the runs of 13 Nov 2026 the operator rule has no contact and no overlap (\(R_{safe}\) 0 in each p4_eval_edd_*.json).
The VRPTW solver does no better than the operator rule (p4_solver_a2.json, p4_solver_a3.json). The cause is the size of the instances. The requests come during the round, and a parked vehicle takes the first request of its plan at once. Thus a solve sees 1.5 open requests on average with 2 vehicles (median 1, at most 4). With 3 vehicles it sees 1.9 (median 2, at most 5). With so few open requests the order that the solver finds is nearly always the order of the due times.
The model also lacks the waits at the single tracks, the merges and the yard. The planned start of a service is earlier than the real one by 13 s (median, 61 s at the 90th percentile) with 2 vehicles and by 24 s (111 s) with 3. The solver with the measured pace cuts this error to 9 s and 0.5 s (median). (The pace of vrptw_pace is 1.02 and 1.11 times the free time with 2 and 3 vehicles, p4_pace.json.) But it gives nearly the same result: SR 64 and 61 of 64, \(Q\) 0.84 and 0.82 (the reference: 0.83 and 0.81). With 3 vehicles it ends 3 scenes at the time limit, as the reference.
A solver can do better than the operator rule only with requests known ahead (a larger instance). It can also do better with a vehicle that can wait at the yard for a better request. Neither is in the task.
| Controller | Vehicles | SR | \(Q\) | Lateness \(L\) (s, Mean) | Open Requests a Solve (Mean, Max) | Planned Start Early by (s, Median, p90) |
|---|---|---|---|---|---|---|
| Reference (VRPTW, free pace) | 2 | 64 / 64 | 0.83 | 5 | 1.5, 4 | 13, 61 |
| VRPTW with the measured pace | 2 | 64 / 64 | 0.84 | 4 | 1.5, 4 | 9, 56 |
| Reference (VRPTW, free pace) | 3 | 61 / 64 | 0.81 | 167 | 1.9, 5 | 24, 111 |
| VRPTW with the measured pace | 3 | 61 / 64 | 0.82 | 156 | 2.1, 5 | 0.5, 91 |
Trips with several requests (p4_validity_trips_a*.json, p4_eval_edd_trips_a*.json, banks of the kind "trips", 3 spots, the capacity 454 kg):
| Controller | Vehicles | SR | \(Q\) | Lateness \(L\) (s, Mean) | \(T_{ms}\) / \(T_{LB}\) (s, Mean) | \(\iota\) | Distance (m, Mean) | Fuel \(F\) (L, Mean) | \(R_{safe}\) per 100 |
|---|---|---|---|---|---|---|---|---|---|
| Do-nothing | 1, 2, 3 | 0, 0, 0 / 64 | 0 | 0 | 0 | 0 | |||
| Reference (VRPTW with reloads) | 1 | 63 / 64 (0.98, 0.92 to 1.00) | 0.90 | 19 | 1745 / 1589 | 0.18 | 3259 | 0.44 | 0 |
| Reference (VRPTW with reloads) | 2 | 63 / 64 (0.98, 0.92 to 1.00) | 0.85 | 14 | 1452 / 1232 | 0.28 | 4494 | 0.61 | 0 |
| Reference (VRPTW with reloads) | 3 | 61 / 64 (0.95, 0.87 to 0.98) | 0.78 | 56 | 1384 / 1130 | 0.34 | 5383 | 0.74 | 0 |
| Operator rule (EDD, adds what fits) | 1 | 63 / 64 (0.98, 0.92 to 1.00) | 0.88 | 41 | 1793 / 1589 | 0.08 | 3997 | 0.53 | 0 |
| Operator rule (EDD, adds what fits) | 2 | 64 / 64 (1.00, 0.94 to 1.00) | 0.84 | 6 | 1451 / 1232 | 0.24 | 4988 | 0.67 | 0 |
| Operator rule (EDD, adds what fits) | 3 | 55 / 64 (0.86, 0.75 to 0.92) | 0.72 | 554 | 1614 / 1130 | 0.35 | 5993 | 0.88 | 0 |
Every log of the checks repeats (64 of 64 for each). With trips the solver has a choice that the operator rule lacks: which requests share a trip. It drives 10 % to 18 % less and uses 8 % to 18 % less fuel than the operator rule, at the same or a better \(Q\).
The reference fails scene 26 (1 vehicle) and scene 28 (2 vehicles) at the time limit. With 3 vehicles it fails scene 18 at the time limit and scenes 19 and 42 as deadlock failures. The operator rule fails scene 4 with 1 vehicle (the time limit). With 3 vehicles it fails 9 scenes: 8 at the time limit and 1 with a request more than 5 min late (scene 60).
On the map of stage 3 (19 Nov 2026) the reference fails trips scenes 26 (1 vehicle) and 28 (2 vehicles) at the time limit. With 3 vehicles it fails scenes 8, 18 and 49.
- Scene 26: the one vehicle stops at 1,340 s, 22 m after the start of a route at (-204, 40). It is in a bend of 0.117 1/m, 95 % of the drive's largest curvature (0.123 1/m). It is 1.7 m off the middle of a corridor 4.3 m to 5.5 m wide. This is a bend at the limit of the steering, as scene 37 of 12 Nov 2026.
- Scene 28: the stand-off of scene 0 with 3 vehicles (above).
- With 3 vehicles each scene alone gives the same end. In scene 18 vehicle 0 stops at 184 s on its way out, in a bend of 0.120 1/m (98 % of the limit). The two others wait for its zone from 357 s and 784 s.
- In scene 8 vehicles 0 and 2 never leave the yard. Both stay at its start pose, and vehicle 2 is in the state
loadingto the end. Vehicle 1 waits for a zone from 463 s. - In scene 49 vehicle 0 stops 23 m behind vehicle 2 on the same road in the same direction (the drive keeps its gap). Vehicles 1 and 2 wait for zones. This is a cycle of a gap and two zones that the deadlock detector does not see.
Thus the failures of P4 on the new map are of three kinds. The first is a bend at the limit of the steering. The second is a stand-off where a waiting vehicle is in the way of another. The third is a cycle that mixes the zones with the holds of the checker or the gap. The back-off of 19 November 2026 fixes some stand-offs (above).
The cause of the failures before 17 Nov 2026 is not analysed. The banks of trips have another mean \(T_{LB}\) than before 13 Nov 2026 (1589 s, 1232 s and 1130 s for 1, 2 and 3 vehicles, before 1597 s, 1226 s and 1146 s), so their scenes are not those of the earlier runs. The cause of the change is not analysed. The banks of trips have 3 spots, the banks of section 7 above 2 to 8. The two sets of numbers are not of the same scenes.
The pace of the reference drive (p4_pace.json, the validation banks). The drive time over the free time of scenarios_delivery.drive_time is 0.98 at the median with 1 vehicle (108 ways, 0.87 to 1.27 from the 10th to the 90th percentile), 1.02 with 2 (152 ways, 0.90 to 1.36) and 1.11 with 3 (222 ways, 0.95 to 1.57). The reference uses the free times (vrptw.PACE = 1.0).
With the fused kernel of several vehicles and the sync-free step (fast.enable(agents=True) by ACRES_BATCH_FUSED_AGENTS=1, Env.sync_free by ACRES_SYNC_FREE=1. The same banks, seed and controllers. The files in Results/Benchmarks/fused/ have check in place of validity in their names). The random draws change, so the episodes are not bit-equal to those above. Every log repeats in both settings. These runs are of commit c0c7bbc (before the switch of the defaults and the fixes of 12 Nov 2026). The column "Default" is of the check files of that commit, not of the files of 13 Nov 2026 above.
| Check | Default: Reference SR | Fused and Sync-Free: Reference SR | Default: \(Q\) | Fused: \(Q\) | Default: Wall (s) | Fused: Wall (s) |
|---|---|---|---|---|---|---|
| P4, 1 vehicle | 64 / 64 | 64 / 64 | 0.93 | 0.93 | 270 | 266 |
| P4, 2 vehicles | 64 / 64 | 64 / 64 | 0.83 | 0.83 | 696 | 321 |
| P4, 3 vehicles | 63 / 64 | 63 / 64 | 0.84 | 0.85 | 659 | 300 |
| T4 | 59 / 64 | 60 / 64 | – | – | ||
| T4 with a truck (one vehicle: the same kernel) | 54 / 64 | 54 / 64 | – | – | ||
| T5 (the reference, the two classical rows) | 64 / 64 (64, 64) | 64 / 64 (64, 64) | – | – |
With the vehicle-side settings, the coming defaults (Results/Benchmarks/vehicle/, commit e11cd09, after the merge of the robustness pass). The settings are the follower, the gearbox and the holds of the vehicle, and the bodies of the rows. They also have the sync-free step and the fused kernel of several vehicles: ACRES_FOLLOWER=vehicle ACRES_GEARBOX=vehicle ACRES_HOLDS=vehicle ACRES_BODIES=rows ACRES_SYNC_FREE=1 ACRES_BATCH_FUSED_AGENTS=1. The reference of each task in the three settings (the column "Today's Defaults" is of the defaults before 11 Nov 2026, commit c0c7bbc):
| Task | Today's Defaults | Fused and Sync-Free | Vehicle-Side Settings (All On) |
|---|---|---|---|
| P4, 1 vehicle | 64 / 64 | 64 / 64 | 64 / 64 |
| P4, 2 vehicles | 64 / 64 | 64 / 64 | 64 / 64 |
| P4, 3 vehicles | 63 / 64 | 63 / 64 | 60 / 64 (2 at the time limit, 1 overlap, 1 late) |
| T4 | 59 / 64 | 60 / 64 | 57 / 64 |
| T4 with a truck | 54 / 64 (2 contacts) | 54 / 64 (2 contacts) | 55 / 64 (2 contacts) |
| T5 (the reference, the two classical rows) | 64 (64, 64) | 64 (64, 64) | 64 (64, 64) |
The do-nothing controller fails every scene and every log repeats in each setting. With the vehicle-side settings the reference loses 3 scenes of P4 with 3 vehicles and 2 of T4. Two of the P4 failures ran again with a record of each decision.
Scene 36 (the overlap): two vehicles came home on one road from two directions. Both held one single-track zone (the same class). They stood face to face 20 m apart, and then moved off into each other. Why the zone gave both one class under these settings is not found (the zone of a route that passes twice is one suspect).
Scene 14 (the time limit): a vehicle stood on corridor refusals in a turn, with the vehicle's follower, and the one behind it waited. These are defects of the reference under the vehicle-side settings that this build does not fix. Check the reference again when the settings become the defaults (gaps.md).
The switch of the defaults (11 Nov 2026). The vehicle-side settings are the defaults now (batch.md, Defaults of the Settings). The checks ran again on the full test banks, on one tree (commits d5c9b96 and 2d4c689, the same code but for skills/dock.py), with the old defaults (their environment variables, defaults.OLD_ENVIRONMENT) and with the new ones (Results/Benchmarks/defaults_switch.json, the records in Results/Benchmarks/defaults_switch/). The reference passes P4 64 and 64 (1 vehicle), 64 and 64 (2), 63 and 60 (3). T4 59 and 57. T4 with a truck 54 and 55 (2 contacts with the truck in each).
The do-nothing controller fails every scene and every log repeats in both. The losses, not fixed:
- P4 with 3 vehicles, scene 36. An overlap of two vehicles that come home to one junction near (-65, 35) from the east and from the west. Both hold zone 3 of the meeting rule in one class. A run again of the same bank does not repeat it (the routing solver's wall-clock limit changes the plans), and in that run vehicle 1 backs off and both pass.
- P4 with 3 vehicles, scenes 0 and 14 at the time limit, and scene 53 with a request more than 5 min late. Scene 14: a vehicle stands on corridor refusals in a turn with the follower of the vehicle, and the one behind it waits (section above).
- T4, scenes 26 and 54 (both at field F15). The two vehicles hold the two zones of one stretch, one each. They meet face to face in the gap between them, about 8 m apart. The checker refuses each forward chunk (rule point). The back-off does not part them before the time limit. A run again ends both as deadlock failures.
The fixes of 12 Nov 2026 (section 9, the third pass, Results/Benchmarks/rounds_fixes.json, the records in Results/Benchmarks/rounds_fixes/, against the records of the switch). The checks ran again on the full test banks with the new defaults:
| Check | 11 Nov: Reference | 12 Nov: Reference | Do-Nothing | Logs That Repeat | The Failures of 12 Nov |
|---|---|---|---|---|---|
| P4, 1 vehicle | 64 / 64 | 64 / 64 | 0 / 64 | 64, 64 | |
| P4, 2 vehicles | 64 / 64 | 64 / 64 | 0 / 64 | 64, 64 | |
| P4, 3 vehicles | 60 / 64 (2 time, 1 overlap, 1 late) | 62 / 64 (1 time, 1 deadlock) | 0 / 64 | 64, 64 | scenes 37, 54 |
| T4 | 57 / 64 | 63 / 64 (1 time) | 0 / 64 | 64, 64 | scene 22 |
| T4 with a truck | 55 / 64 (2 contacts, 7 time) | 62 / 64 (1 contact, 1 time) | 0 / 64 | 64, 64 | scenes 55, 61 |
The zones of T4 and of T4 with a truck changed (the gap of 41.8 m between zones, the zones of two routes that pass twice), and so did the draw of the scenes of those banks (the zone of the meeting of a scene is drawn among its zones). The T4 numbers of 11 and 12 Nov are not of the same scenes. The banks of P4 have the same scenes (the requests and the routes are drawn before the zones). No contact or overlap of two controlled vehicles occurs in the 192 episodes of P4 and the 64 of T4. With 3 vehicles \(Q\) is 0.815 (0.818 before), the lateness 90 s (176 s), the makespan 1477 s (1455 s). With 2 vehicles \(Q\) 0.833 (0.832).
A second run of the P4 check with 3 vehicles (rounds_fixes/p4a3_again.json) gives the same event log digest for each of the 64 scenes of both controllers. Thus, with the count limit of the routing solver, a run of the controller repeats, not only the replay of its log. The operator rule with 3 vehicles (rounds_fixes/edd_a3.json) passes 61 of 64 (2 at the time limit, 1 deadlock failure) with no overlap of two vehicles (2 overlaps in 64 scenes before the junction zones).
The remaining failures, each run again alone with a record of each decision:
- P4 with 3 vehicles, scene 37. A vehicle on its way out came slowly into a bend of 8.3 m radius (curvature 0.12 1/m) at the field F38 road. The vehicle steers at most about 0.13 1/m. Its heading fell 20 degrees behind the bend, and it drifted to the outer edge. Every forward chunk and the four reverse chunks of the back-off broke the corridor rule. It stood there for good, and a vehicle behind it waited for its zone. The reference has no manoeuvre for a bend at the limit of the steering (not fixed).
- P4 with 3 vehicles, scene 54: a deadlock failure in the batch of 64. The scene alone passes (the drive's draws of its sensing depend on the batch). Its cause is not found.
- T4, scene 22: the time limit in the batch. The scene alone passes (as scene 54).
- T4 with a truck, scene 55: the controlled vehicle stood at the place where it waited for the zone. The truck came on and slowed from 9.6 m/s to 2.5 m/s 16 m before it. It then went on at 4 m/s to 5.3 m/s and drove into it (contact at the speed 0 of the controlled vehicle). The truck's model does not stop for a standing vehicle on its line: the fault of the truck's model, not of the reference.
- T4 with a truck, scene 61: the truck came out of the zone towards the waiting controlled vehicle and stopped 17.9 m before it (it yields). The zone rule keeps the zone closed while the truck's body is in it. Each waited for the other to the time limit. The rule "we always yield" has no way out when the truck yields too (not fixed: a vehicle that backs off for a truck that stands is one option).
The payload of the trips (rounds_fixes/payload_trips_a*.json, rounds_fixes/no_payload_trips_a*.json: the reference, the test banks of the kind "trips"). The load on board is the payload of the vehicle step since 12 Nov 2026. The acceleration and the deceleration limits are those of the empty vehicle times 1233 / (1233 + load), 0.73 at the capacity of 454 kg. The climb does not change (the vehicle step has no grade). The effect on the outcomes is small and within the noise of the drive:
| Vehicles | Payload: SR | Payload: \(Q\) | Payload: Lateness (s) | Payload: Fuel (L) | Empty: SR | Empty: \(Q\) | Empty: Lateness (s) | Empty: Fuel (L) |
|---|---|---|---|---|---|---|---|---|
| 1 | 63 / 64 (1 time) | 0.904 | 19 | 0.438 | 64 / 64 | 0.917 | 0 | 0.436 |
| 2 | 64 / 64 | 0.856 | 0 | 0.613 | 63 / 64 (1 time) | 0.845 | 14 | 0.612 |
| 3 | 61 / 64 (1 time, 2 deadlock) | 0.781 | 56 | 0.744 | 60 / 64 (2 time, 2 deadlock) | 0.771 | 122 | 0.737 |
No contact in either. With 3 vehicles the trips lose 3 and 4 scenes, more than the rounds (2). The trips banks were not run again before the fixes of 12 Nov under the new defaults, and their failures are not analysed.
The wall times of the P4 checks are of a GPU and a CPU shared with other work. The fused runs had less load. The fused P4 check of 3 vehicles ran while the tree had a change of speed() of p4/run.py only (its file says "tree changed").
The checks of T4 (t4_validity.json):
| Controller | SR | Ends | Contacts per 100 | Deadlocks per 100 | Least Gap (m, Min / Median) | \(T / T_{free}\) (Median, p90) |
|---|---|---|---|---|---|---|
| Do-nothing | 0 / 64 | time 64 | 0 | 0 | 188 / 246 | – |
| Reference (drive, meeting rule) | 63 / 64 (0.98, 0.92 to 1.00) | passed 63, time 1 | 0 | 0 | 0.58 / 0.90 | 1.77, 2.44 |
| The drive without the meeting rule | 48 / 64 (0.75, 0.63 to 0.84) | passed 48, time 14, deadlock 2 | 0 | 3.1 | 0.60 / 1.10 | 1.41, 2.46 |
Before the fixes of section 9 (commit 5a65aec) the reference passed 55 and the drive without the rule 44. At commit c0c7bbc 59 and 54. The fixes that change T4 are the directions of the zones and the gap and back-off of the drive. The one failure of the reference is scene 22 (field F33) at the time limit, as on 12 Nov 2026 (section 7, the fixes of 12 Nov). This run was not analysed again.
The drive without the meeting rule fails 14 scenes at the time limit and 2 as deadlock failures (scenes 28 and 36, both at field F15). Its count fell from 54 to 48 since commit c0c7bbc. The zones and the draw of the scenes changed on 12 Nov 2026 (section 7). The cause of each failure is not analysed.
T4 with a truck (t4_truck_validity.json, the gate's run of 19 Nov 2026 on zuzu, an NVIDIA GeForce RTX 5060 Ti, commit 97d3caf). It uses the map of stage 3 with its 4 m gravel roads, and the noise is keyed by the scene. The bank has 64 scenes of the real farm. The oncoming vehicles are 15 semis, 14 trucks, 14 pickups, 10 cars, 7 tractors with an implement and 4 tractors with a cart. 35 of these vehicles keep their line, and 29 yield.
| Controller | SR | Ends | Contacts per 100 | Keeps Its Line: Passed | Yields: Passed | \(T / T_{free}\) (Median, p90) |
|---|---|---|---|---|---|---|
| Do-nothing | 0 / 64 | time 62, contact 2 | 3.1 | 0 / 35 | 0 / 29 | – |
| Reference (drive, meeting rule with the traffic) | 60 / 64 (0.94, 0.85 to 0.98) | passed 60, contact 3, time 1 | 4.7 | 32 / 35 | 28 / 29 | 1.84, 2.94 |
| The drive without the meeting rule | 54 / 64 (0.84, 0.74 to 0.91) | passed 54, contact 4, time 6 | 6.3 | 30 / 35 | 24 / 29 | 1.35, 1.86 |
Every log repeats (64 of 64 for each controller). The failures of the reference: scenes 14 (a semi that keeps its line, contact), 27 (a car that keeps its line, contact), 63 (a pickup that keeps its line, contact) and 61 (a semi that yields, the time limit). In scenes 63 and 22 the pickup also drives into the do-nothing controller's standing vehicle. The traffic model does not stop for a standing vehicle on its line, as in scene 55 of 12 Nov 2026. In scene 61 the semi and the controlled vehicle each wait for the other, as in scene 61 of 12 Nov 2026 ("we always yield" has no way out when the other yields too).
The owner's decision (17 Nov 2026, option C): the result is accepted for now.
The single-track zones are made for two vehicles of the farm's own fleet. The map of stage 3 has 4 m gravel roads. There a semi, a truck, a pickup or a tractor with an implement meets the controlled vehicle on stretches that are not a zone. Zones made from the width of the oncoming vehicle gave 55 of 64 (a test of 17 Nov 2026). The options that are left: the controlled vehicle pulls fully onto the verge for a wide vehicle, or the map gets passing places.
On 17 Nov 2026 (commit 431ab72) the reference passed 59 of 64. The noise keyed by the scene (19 Nov 2026) gives 60. The traffic is not in the trace, so the verifier takes the contact from the counter of the environment. \(T_{free}\) is the leg with the oncoming vehicle absent.
The zones of the T4 bank are 10 m to 114 m long, those of the bank with a truck 10 m to 225 m. The logs of all 64 scenes repeat for both checks. \(T_{free}\) is the same leg with the other vehicle absent, under the same controller.
The learning baselines: smoke tests only (section 10). No result of a smoke test is a baseline number.
Speed (p4_speed.json, commit dfd3194, 13 Nov 2026, an NVIDIA L40S that ran nothing else). The run has 200 decisions after 20 on the scenes of the train bank, with the operator rule over the reference drive. It uses the defaults of the simulator (the kernel of several vehicles, the step with no host sync).
| Scenes | Vehicles in a Scene | env.step (ms) |
Agent-Decisions/s of env.step |
Whole Decision (ms) | Agent-Decisions/s of the Decision | Peak Memory (GB) | Host Syncs in env.step |
|---|---|---|---|---|---|---|---|
| 1,024 | 1 | 8.8 | 116,206 | 18.1 | 56,516 | 0.9 | 0 |
| 2,048 | 1 | 8.8 | 233,111 | 18.7 | 109,667 | 1.8 | 0 |
| 1,024 | 2 | 9.3 | 219,771 | 19.4 | 105,527 | 1.1 | 0 |
| 2,048 | 2 | 9.3 | 442,780 | 24.2 | 169,579 | 2.2 | 0 |
| 1,024 | 3 | 9.3 | 331,167 | 21.2 | 144,947 | 1.3 | 0 |
| 2,048 | 3 | 9.9 | 622,339 | 33.2 | 184,921 | 2.5 | 0 |
The design (section 7.5) sets two targets at 2,048 scenes of 2 vehicles. A learner (one candidate a vehicle) needs at least 50,000 agent-decisions/s. A search planner (32 candidates) needs at least 5,000. The step of the env (the part of a learner's decision that is not its policy) gives 442,780. The whole decision with the 18 candidates of the reference drive gives 169,579. Both are over the targets.
The policy of a learner is not in the measure. The files of before (11 Nov, p4_speed.json and fused/p4_speed.json, a machine with a load average of 30 to 110 from other work) gave 136,657 and 60,936 at 2,048 scenes of 2 vehicles (147,939 and 67,434 with the kernel of several vehicles, which is the default now). Those numbers were of a shared GPU. The sync count is from the sync debug mode of PyTorch, which does not find all syncs. The VRPTW solver is not in this measure: it runs on the CPU, about 0.2 s for each solve of a scene.
8. How the Two-Vehicle Meeting Was Solved#
WP1 found that with the drive chunks the reference driver stops about 60 m short of a passing place. The cause is that the point rule takes the oncoming agent for a still obstacle. This build does not change the checker. It solves the meeting with three parts:
- Reservation of the single-track zones. The zones come from the route table when the builder makes the scene. A zone is given to one direction at a time. The route of the vehicle that waits ends 15 m before the zone. Thus the vehicle stops in the wide road where the other can pass.
- Keep right. On a road that is wide enough, both vehicles slow down. They move to their right by the room of the corridor. The point rule then accepts the chunks that go past the other vehicle.
- Back-off. Where the room at the waiting place is too small, the vehicle that waits backs along its route.
The effect on the test banks is as follows (with the fixes of section 9). Without the meeting rule, the reference passes 46 and 25 of 64 rounds of 2 and 3 vehicles (with it 64 and 61). With 3 vehicles most failures are deadlocks. The drive alone passes 48 of 64 T4 meetings (with the rule 63). No contact occurs in T4 with or without the rule: the checker stops the vehicles, and without the rule they then stand face to face.
9. Findings and Changes to the Task#
Findings of the build:
- One corridor chain for each route. The delivery paths of a map share their roads, and each path has its own chain of capsules. The checker reads the 4 capsules with the most room at a point. Two chains on one road are not a corridor for this rule. A merge of the chains (a capsule is left out where the other chains give its room) failed the body on the route at hundreds of poses of each scene, also with no capsule left out. Thus the window of a route reads only its own chain (
lanes.pack(..., own_chain=True)). This is also the corridor that the checker of the vehicle has for its own mission. - Single-track zones must be merged along each route. The arcs of a zone come from the conflict points of all the routes. Two zones can thus be nearer on one route than the gap of 25 m. Two vehicles then stopped face to face between them. The build merges the zones that are nearer than the gap on any route.
- The waiting place needs room. The test values were a stop 8 m before the zone and a keep-right of at most 1.4 m. With them, two vehicles stopped 2.0 m apart beside the waiting place. The build uses 15 m and 2.2 m, and the back-off of section 8.
- Leave only with the zones. A vehicle left the yard with a wait 22 m ahead. It stopped on the single track of the yard and blocked the vehicle that came home on it. A vehicle now leaves only when each zone that it needs near the start is its own.
The causes of the failures of the reference (second pass, 11 Nov 2026). The failures of the reference with 2 and 3 vehicles came from five defects. Each was found in the state of the vehicles at the decision where they stopped for good (the round, the route arc, the zone states, the drive's offset, back-off and gap).
| Defect | What happened | Fix |
|---|---|---|
| Zone directions | The direction class of a route on a zone came from one point of the zone. On a zone of merged parts it came from the part of the lowest index. Two vehicles of one direction got opposite classes: one held the zone and stood behind the other, which waited for the zone. | The class is from the zone's own points, turned to agree along the zone (scenarios_rounds._orient). The routes that pass two parts of a merged zone relate those parts (zones). |
| A route that passes a zone twice | A way back that goes up a road and later comes down the same road had one class for both passes. On its first pass it shared the zone with the vehicles that came the other way, and two met face to face. | Each pass of a route is its own entry. A zone with such a route becomes one zone for each pass (zones). |
| Merges | Two vehicles that came home from two directions met side by side at the junction before the yard. A vehicle that left a spot met the side of one that came along the road. The single contact of the earlier check (3 vehicles, scene 26) was of this kind. | Merge zones: where a route joins the road of another in the same direction, one vehicle at a time (scenarios_rounds.merges, meeting.MERGE). |
| The follower too near | A vehicle that left the yard behind another stood 5 m behind it at the tight turn of the yard's exit. The one ahead stood on corridor refusals and was not able to back off. | The P4 drive plans to stop 15 m behind an own vehicle ahead that goes its way (ReferenceDrive(follow_gap_m=...)). |
| The yard's exit | A vehicle came slowly into the tight turn at the yard's exit of the real farm, after it met another vehicle there. It crept at full lock into a pose where each chunk failed the corridor rule, also the reverse chunk of its back-off. It stood for good. Alone, the vehicle takes the turn at 1.8 m/s to 2.2 m/s and passes. Why the slow entry gives the pose is not found. | The P4 drive backs 10 m (not 3 m) and tries four reverse chunks (the curvature of the pursuit, straight, half, opposite). It then comes into the turn again with speed. |
The defects under the vehicle's behaviour (third pass, 12 Nov 2026). Each was found in a record of each decision of the reference on the scene alone (the zone states, the route arcs, the drive's refusals, back-off and gap).
| Defect | What happened | Fix |
|---|---|---|
| The merge of the opposite direction | Two vehicles came home from the east and from the west to a crossroads near (-65, 35) and turned south onto one road. The southbound join was dropped because a northbound join of a way out was 8 m from it (joins nearer than 20 m were one merge zone, whatever their direction). Both held the single-track zone in one class and met head on (P4 with 3 vehicles, scene 36). | Joins of opposite directions are two merge zones (merges). |
| A turn onto the road of an oncoming route | A vehicle that came home turned onto a road 6.5 m wide while a vehicle on its way out came along it. The road was wide enough, so it had no zone, and the turning vehicle was not taken for an oncoming one (the operator rule: 2 overlaps in 64 scenes of 3 vehicles). | Such a junction is a single-track stretch of 25 m on both routes (zones(..., junctions=True)). |
| The zone given back too soon | The zone went to the waiting vehicle when the vehicle that came out of it was 3 m past it. That vehicle was still in front of the waiting one. The waiting one drove off into it. The two stood face to face between two zones of one stretch (T4 at field F15, scenes 26 and 54). | A vehicle keeps a single-track zone until its rear is past the waiting place of the other direction (meeting.PAST_M, 20.9 m). |
| No room to wait between two zones | With the longer hold, a vehicle that waited 15 m before a zone was still within 20.9 m of the zone before it. Three vehicles held one zone each and waited for another's, for good (P4 with 3 vehicles, scene 36, after the first fixes). | Zones nearer than 41.8 m are one (ZONE_GAP_M from PAST_M, HOLD_GAP_M and the body). |
| Two routes that pass a stretch twice | The zone of each pass paired the first pass of each route and the second pass of each. The first pass of one way back and the second pass of another were face to face on one road and in no zone together (P4 with 2 vehicles, scene 35). | One zone for each choice of a pass of each route that passes more than once (zones). |
| The gap behind a vehicle in a bend | In a bend the vehicle ahead was more than 3 m across the frame of the one behind. The one behind came up to 6 m behind it. The one ahead stood on corridor refusals and was not able to back off (P4 with 3 vehicles, scene 14). | The gap is also measured along the route: an own vehicle within 3 m of the route in the next 60 m (ReferenceDrive, FOLLOW_STEP_M). |
| The routing solver's limit | The solver stopped after 0.2 s of the wall clock. The plans. The episodes, changed with the load of the CPU (scene 36 did not repeat). | A limit of 100 solutions (25 with reloads), about 0.2 s (vrptw.SOLUTION_LIMIT). |
| The truck and the waiting vehicle | A vehicle that waited for a zone stood on the middle of the road. The truck of the traffic model, which does not follow the zones, was not able to pass it. | In T4 with a truck the waiting vehicle keeps right (ReferenceDrive(wait_keep=True)). This is not so with the controlled vehicles. At low speed near the stop, the lateral move turned the waiting vehicle 25 to 38 degrees across its lane. The other was then not able to pass it (T4 at field F38, 3 scenes). |
Changes to the task of the design (section 6, P4, and section 4, T4), and why:
| Design | As Built | Why |
|---|---|---|
| Requests with any order of spots | Two forms. "rounds": each trip carries one request (yard, spot, yard), 2 to 8 spots. "trips": a trip carries the requests that fit the capacity, in any order of 3 spots, with the ways between the spots | The route table has 16 routes. Each spot needs 2 ways, and the ways between the spots need S (S - 1): 3 spots use 12 routes. |
| A vehicle of a capacity | The Polaris carries 454 kg (assumed: the cargo box rating of the full-size Polaris Ranger in the maker's data, 1,000 lb. The model year and the trim of the farm's vehicle are not confirmed.). A request has 20 kg to 200 kg (assumed, uniform). The handling of each request after the first of a trip is 15 s (assumed). Since 12 Nov 2026 the load is the payload of the vehicle step (section 7). | No record of real requests or of the farm's vehicle's rating exists. The checker's stop rule still assumes the deceleration of the empty vehicle. |
| The vehicle turns at the spot and at the yard | The turn at the spot is a fixed time of 30 s (skill K14). The vehicle is placed at the start of the way back. The vehicles at the yard and at the spot are off the lanes. | The delivery paths keep only the forward stretch after the last reverse. The way back starts within about 1 m of the spot, but in another heading. A vehicle that serves on the lane blocked the others. |
| Farm traffic (trucks, tractors) on the lanes of P4 | Not in P4 | Until 18 Nov 2026 the traffic model of the physics kernel reacted to vehicle 0 only. Now each vehicle of the traffic reacts to the controlled vehicle nearest to it (agents.ego_agents). The rounds env keeps one controlled vehicle with traffic (T4 with a truck): a variant with more vehicles needs its bank and its checks. |
| Gates (skill K3), wet field entrances, skill K15 (ask) | Not in the scenes | The delivery paths of the scouting map have no gate between the yard and the spots. The vehicles drive no entrance (the service is off the lanes). A gate on the lanes is an assumption with no place on the farm. The task refuses no request. |
| T4: an oncoming truck or tractor at 13 m/s to 22 m/s | Two forms. T4: the meeting of two vehicles of the controlled fleet (skill K2 of P4). T4 with a truck: one controlled vehicle and a vehicle of the traffic model (section 7) | The traffic model reacts to vehicle 0 only, so the variant with the traffic has one controlled vehicle. |
| \(T_{LB}\) from the VRPTW solution on the free times | \(T_{LB}\) is a relaxation: the latest earliest end of one request, and the work shared over the vehicles less one way back for each vehicle | The solution of a heuristic solver is not a lower bound. |
| Fuel \(F\) | The fuel of the ground tables of WP6 on gravel (section 5) | The model of Core, not a measurement. |
| Length on field soil, \(V_r\) | Not measured (0 by construction) | The vehicles drive on the gravel lanes only. The service at the spot is off the lanes. |
| The drive judge on each leg | The verifier of this page: the request rules, the overlap of the bodies from the trace, the contact and the corridor counters of the environment | P4 was built before the drive judge came into this repository (15 Nov 2026). |
| Prioritised SIPP with reservations on the single-track segments | A reservation of each zone for one direction at a time, and of each merge zone for one vehicle, given to the nearest waiting vehicle | No time intervals: a zone is free or held. |
| Time windows from real requests | Time windows from a random feasible plan | No record of real requests exists. |
10. Learning Baseline#
Status. The code of the learning baselines of P4 and T4 is complete and passes its smoke tests. No training ran. The owner ordered this: the training starts only when the physics of every task runs in Triton kernels with no host sync (section 11). The parts shared with T1 are in Benchmark/acres_bench/rl.py.
P4: the high level (level L2 of section 6.5 of the design). The low level is the reference drive with the meeting rule. A parked vehicle with an open request decides each 1 s. It takes one of the open requests, or it waits.
- Observation. For each request: the observation of
RoundsEnv.round_obs, and two more numbers. These are the slack to the due time (after the load and the free drive) and the rank of the due time among the open requests. For the vehicle: its own numbers and the number of vehicles of its scene. - Network. A small network scores each request. A second network scores "wait" from the numbers of the vehicle and the pooled scores. A softmax over the open requests and "wait" gives the choice.
- Shared policy. One network for all vehicles of all scenes of 1, 2 and 3 vehicles.
- What is centralised. The observation: each vehicle reads the request board of its scene, and the share of the vehicles that are parked. It does not read the position, the request or the plan of another vehicle. The reward: one return for each scene, which its vehicles share. The update: the decisions of all vehicles train the one network.
- What is decentralised. The execution: each vehicle draws its own choice from its own observation.
- Learning. PPO with the clipped objective. Each training scene runs 4 times in one rollout. The advantage of a run is its return less the mean return of its group. The return is \(s + Q - 0.25 \min(L / 3600\ \text{s}, 4)\).
T4: the learned meeting policy. The policy replaces the meeting rule. The low level is the reference drive without the rule. Each decision, each vehicle selects "go" (the chunk of the reference drive) or "yield" (a stop at once).
- Observation (20 numbers). The speed and the metres to the end of the leg. The metres from the front to the next single-track zone, in the zone or not, and the length of the zone. The same numbers for the other vehicle. The distance and the heading between the two vehicles. The time that each has stood, the share of the time limit, and the last choice of each.
- What is centralised. The observation includes the state of the other vehicle. The meeting rule reads the same state. The two vehicles share the reward: the mean progress of the two vehicles, a time cost, and \(\pm 1\) at the end of the scene. One network serves both vehicles.
- Learning. PPO with a value head and generalised advantage estimation (\(\gamma = 0.995\), \(\lambda = 0.95\)). The rollout storage is a set of fixed tensors
[K, B]on the GPU.
The drive model (drive/adapter.py). The design names the drive model of the drive task as the low level of P4 and as the learning baseline of T4. The adapter loads Data/Drive/runs/drive/drive_mix6_v11.pt. The file is not in git. Without the file, the evaluation leaves out its row.
The adapter ranks the actions by the model, checks the 32 best with the checker and takes the best accepted one. The adapter has these limits:
- The model reads observation version 5 (676 numbers). The rounds environment gives the first 458 numbers. The other numbers are those of no track, no junction, no pull-in spot and a blank memory.
- The chunk limits of the model (96 samples, 6.9 m/s) are not those of the rounds environment (64 samples, 5.5 m/s).
A result of the drive model here is thus a transfer result, not the number of the drive task.
Splits. The training uses the train split. The model selection uses the validation split. Only the evaluation uses the test bank (the real farm). rl.check_splits asserts this at the start of each training.
Evaluation. learn.py evaluate runs each policy file greedy on the test bank with the event log. The verifier runs each log again and grades its own run. The same command runs the comparison controllers on the same scenes with the same seed. P4: do-nothing, the operator rule and the reference. T4: do-nothing, the reference, the drive without the rule and the FARMS drive.
The evaluation gives the success with the Wilson interval and the metrics of section 5. It also gives a paired count against each controller and the spread over the training seeds.
Weights. The policy files go to ACRES_WEIGHTS (default ../acres-bench-weights from the repository root). The results file gives the path and the sha256 of each file.
Smoke tests (zuzu, RTX 5060 Ti, 300 decisions of each rollout). No number of a smoke test is a baseline number. The files show that each part runs.
| File | What Ran |
|---|---|
p4_learn_smoke.json |
P4 training: 2 iterations of 4 train scenes of 2 vehicles, 2 runs each, the validation on 32 scenes |
p4_learn_eval_smoke.json |
P4 evaluation on the first 8 scenes of the test bank (2 vehicles): the comparison controllers, the logs and their re-simulation |
t4_learn_smoke.json |
T4 training: 2 iterations of 8 train scenes, the validation on 64 scenes |
t4_learn_eval_smoke.json |
T4 evaluation on the first 8 scenes of the test bank, with the drive model |
Plan of the training (when the kernels are ready). For each task, 3 seeds of about 100 min each on zuzu. P4: 64 train scenes in each rollout, 4 runs each (256 scenes), 1, 2 and 3 vehicles. T4: 256 train scenes in each rollout. At the speeds of section 11, a P4 rollout of 7,000 decisions takes about 110 s. A T4 rollout of 600 decisions takes about 9 s.
11. Readiness for GPU Training#
The measurement is not a training. It times the decision of the training loop and its parts at the batch size of the training (256 scenes), and it counts the host syncs. File: Results/Benchmarks/rl_readiness.json (zuzu, RTX 5060 Ti, PyTorch 2.8, Triton 3.4, driver 595.112). The times are those of decisions 20 to 220 of an episode.
| Task, Vehicles, Low Level | Decision (ms) | Agent-Decisions/s | Host Syncs per Decision | GPU Use (Mean) | Peak Memory (GB) |
|---|---|---|---|---|---|
| P4, 1, reference drive | 10.4 | 24,647 | 0 | 54 % | 0.23 |
| P4, 2, reference drive | 15.1 | 33,971 | 0 | 60 % | 0.28 |
| P4, 3, reference drive | 15.2 | 50,683 | 0 | 77 % | 0.32 |
| T4, 2, learned policy over the reference drive | 15.0 | 34,183 | 0 | 65 % | 0.25 |
| T4, 2, drive model | 14.6 | 34,962 | 0 | 92 % | 0.41 |
The parts of a decision (ms, share of the wall time):
| Part | P4, 1 | P4, 2 | P4, 3 | T4, Learned |
|---|---|---|---|---|
Checks of the 18 candidates of the reference drive (drive.checked) |
2.88 (28 %) | 4.33 (29 %) | 5.92 (39 %) | 3.78 (25 %) |
Candidates of the reference drive in torch (ReferenceDrive._act, _offset, _back_off) |
2.78 (27 %) | 2.84 (19 %) | 2.84 (19 %) | 2.87 (19 %) |
Physics (RouteEnv._physics of env_routes.py) and the peers between its launches (agents.peers) |
0.81 (8 %) | 4.82 (32 %) | 3.29 (22 %) | 4.97 (33 %) |
| Task logic of the step (the take, the zones, the leave, the rounds, the deadlocks, the counters, the end) | 1.73 (17 %) | 1.34 (9 %) | 1.38 (9 %) | 1.23 (8 %) |
Check of the chosen chunk (Env.take) |
1.38 (13 %) | 0.92 (6 %) | 0.92 (6 %) | 1.40 (9 %) |
| Policy (with its observation) | 0.27 | 0.27 | 0.27 | 0.14 |
The step is launch-bound: the decision takes the same time with 2 and 3 vehicles. The sync debug mode of PyTorch finds no host sync in a decision. Two syncs are outside the decision. The runner tests the end of all scenes once each 20 decisions (p4/run.py, episode). The update reads its records by a mask after the rollout.
What is not in a kernel, in the order of its cost:
- The candidates of the reference drive and their checks: 18 chunks for each row, built in torch. Together with their checks, 44 % to 58 %.
- The physics with several vehicles (
RouteEnv._physics,env_routes.py). One launch for each of the 10 physics steps, withagents.peersbetween the launches. This takes 22 % to 33 % with 2 or 3 vehicles. With one vehicle, one launch takes 8 %.fast.advance_fusedalso packs the state into the layout of the kernel and back at each launch. - The task logic of
env_rounds.pyand the deadlock detector ofagents.py: many small torch operations, 8 % to 17 %. - The check of the chosen chunk in
Env.take(world.scanin torch), 6 % to 13 %.
State machines (the rule: named states, one transition function, the state in one place):
| State Machine | File | Finding |
|---|---|---|
Round of a vehicle (ROUND_STATES) |
Fast/acres_batch/env_rounds.py |
Named states. The transitions are in four functions: reset (the legs of T4), _take, _leave and _round. The flag present repeats a part of the state. Not changed. |
Life of a request (REQ_STATES) |
Fast/acres_batch/env_rounds.py |
Named states. The transitions are in _take and _round. Not changed. |
| End of the episode of a scene | Fast/acres_batch/env_rounds.py |
No named states: the flags done and dl_fail in _end and _deadlock. The verifier gives the end later. Not changed. |
Reservation of a single track (ZONE_STATES) |
Fast/acres_batch/meeting.py |
Correct: claim_step and zone_step, the state in zone |
Deadlock detector (DEADLOCK_STATES) |
Fast/acres_batch/agents.py |
Correct: deadlock_step. RoundsEnv._deadlock changes agent_live and finished for the call and puts them back. |
| Door, worker, item, slot, baler, windrow | Fast/acres_batch/items.py |
Correct: named states, one step function each |
| Back-off of the reference drive | Fast/acres_batch/baselines/drive.py |
No named states: the counters back_left, stall and still of the drive. Not changed. |
| Tracker of the T1 reference | Benchmark/acres_bench/t1/reference.py |
Fixed: Reference._drive_next is the one transition function of Drive by the events Event (T1, section 11) |
12. How to Run Each Part#
export ACRES_RUNTIME_BUILD=<ACRES>/Vehicle/Runtime/Build # the delivery paths need the run-time library once
python -m acres_batch.scenarios_rounds --split test --agents 2 --n 64 # make (and keep) a bank
python -m acres_bench.p4.run validity --agents 2 --n 64 # the checks: p4_validity_a2.json
python -m acres_bench.p4.run eval --agents 2 --n 64 --controller edd # another controller
python -m acres_bench.p4.run validity --trips --agents 2 --n 64 # trips: p4_validity_trips_a2.json
python -m acres_bench.p4.run pace # p4_pace.json (1, 2, 3 vehicles)
python -m acres_bench.p4.run solver --agents 3 --n 64 # p4_solver_a3.json (reads p4_pace.json)
python -m acres_bench.p4.run contacts # p4_contacts.json (12 runs)
python -m acres_bench.p4.run speed --E 1024 2048 # p4_speed.json
ACRES_BATCH_FUSED_AGENTS=1 ACRES_SYNC_FREE=1 python -m acres_bench.p4.run validity --agents 3 --n 64 \
--out Results/Benchmarks/fused/p4_check_a3.json # the fused kernel, the sync-free step
python -m acres_bench.t4.run --n 64 # T4: t4_validity.json
python -m acres_bench.t4.run --n 64 --truck # T4 with a truck: t4_truck_validity.json
python -m acres_bench.p4.learn train --agents 2 --minutes 100 --seed 0 # the high level (weights: ACRES_WEIGHTS)
python -m acres_bench.p4.learn evaluate --agents 2 --weights W0.pt W1.pt W2.pt
python -m acres_bench.t4.learn train --minutes 100 --seed 0 # the meeting policy of T4
python -m acres_bench.t4.learn evaluate --weights W0.pt W1.pt W2.pt # with the drive model (drive/adapter.py)
python -m acres_bench.readiness --E 256 # rl_readiness.json
python -m pytest Tests/Fast/test_rounds.py Tests/Fast/test_bench_rl.py -q -m "unit or integration"