K13: Wait#
This page gives the skill K13 wait of the procedure tier, as built (section 6.2 of Farm Benchmark Suite: Design, work package WP9). The code is Fast/acres_batch/skills/wait.py. The framework is on the page Skills: Framework and Contract. The tests are in Tests/Fast/test_skill_wait.py. Each number on this page comes from Results/Benchmarks/skill_k13_validity.json.
1. The Skill#
The vehicle holds at a safe place until a condition is true or a time-out comes. The safe place is before a stop line on its route. In this build the condition is one of two:
free: a gate is free. No other vehicle holds the gate resource.wind: the wind of the weather series is below a limit for a dwell time (the wind rule of P3).
| Argument | Unit | Meaning |
|---|---|---|
route |
– | The route of the route table of the scene |
stop |
m | The stop line: the arc on the route that the front of the body must not pass while the condition is false |
cond |
– | The condition: 0 free, 1 wind |
res |
– | The resource of the condition free |
limit, dwell_s |
m/s, s | The wind limit and the dwell time of the condition wind |
timeout_s |
s | The time-out of the call |
2. Definition and Verifier#
Let \(s\) be the arc of the rear axle on the route and \(f\) the front of the body. The gap of the front to the line is \(g = \text{stop} - (s + f)\). The environment writes these monitors at each decision while the call runs:
- \(c(t)\), the condition. For
free, the resource has no holder, or the row itself holds it. Forwind, \(b(t) \ge\)dwell_s, with \(b\) the time of the wind below the limit until now. - \(t_c\), the first time with \(c\) true.
held: at a decision with \(c\) false, the row was at rest with \(-4\ \text{m} \le -g \le 0.3\ \text{m}\).intrude: at a decision with \(c\) false, the front was more than 0.3 m past the line.
A scene has an expected end. It is success when the condition comes before the time-out, else the time-out.
- For an expected success, the call succeeds when the controller reports success at \(t_1\) with \(t_c \le t_1 \le t_c + 1\ \text{s}\).
- For an expected time-out, the call succeeds when it ends at the time-out (failure, reason
timeout). - In both cases
heldmust be true,intrudefalse, with no contact and the corridor kept.
The start condition is a stop line ahead of the front of the body.
3. Scenes and Splits#
The vehicle (the Polaris or the Maxxum) starts at rest 12 m to 60 m before the stop line. The road is 120 m to 200 m long, straight or with one bend.
| Condition | Scene |
|---|---|
free |
A gate 3.5 m to 6 m wide starts 2 m past the line. A second vehicle stands in the gate and holds it at the start. It is an actor of the scene: the suite drives it with the skill K1. It sets off along the road after 55 s to 150 s. The gate is free when its body has left the region of the gate. |
wind |
A series of the weather record of the split's year (weather.py) in which the wind falls by 0.5 m/s or more at a step. The limit is between the two winds. The dwell is 0 s or 30 s to 300 s. |
A quarter of the scenes has its time-out before the condition. The time-out comes after the vehicle can hold. The scenes are procedural, and the split is by the seed. The weather of the train and validation splits is that of 2024, the weather of the test split that of 2025. The test bank of the check has 64 scenes:
| Condition | Expected Success | Expected Time-Out |
|---|---|---|
free |
19 | 11 |
wind |
26 | 8 |
4. Reference#
The reference is a state machine with the states approach and hold, and the terminal states:
approach: the reference drive follows the route. The route ends where the front is 2 m before the stop line.hold: at rest within 4 m of the line, the vehicle stands.- In each state, the reference reports success when the condition is true. The time-out is the environment's.
The reference reads the condition from the monitors of the decision before: the privileged state.
5. Results#
The test bank of 64 scenes, the privileged setting, an NVIDIA L40S shared with other work, 13 Nov 2026. The code that ran is commit dfd3194, with the defaults of the vehicle and the Maxxum fitted to ACRES Core (the default tractor). The tree had changes of the result files only.
| Controller | SR | Wilson 95 % | Ends | Logs That Repeat |
|---|---|---|---|---|
| Do-nothing | 0 / 64 | 0.00 to 0.06 | timeout 64 | 64 of 64 |
| Reference | 64 / 64 | 0.94 to 1.00 | success 45, timeout 19 | 64 of 64 |
With the defaults of 11 Nov 2026 (the follower, the gear logic and the holds of the vehicle, the body of each row: batch.md, Defaults of the Settings) the reference passes 64 of 64 (success 45, failure:timeout 19), against 64 of 64 with the old defaults on the same tree. The do-nothing controller passes 0 and every log repeats (Results/Benchmarks/defaults_switch/after/wait.json, defaults_switch.json). These runs are before the fixes of 12 Nov 2026.
The do-nothing controller never reaches the safe place, and it never reports the condition. The reference passes each group of the bank.
| Measure of the Reference | Value |
|---|---|
| Time from the condition to the report (largest) | 0.0 s |
| Gap of the front to the line at the end (smallest, largest) | 2.0 m, 3.0 m |
| Time of a call (median, 90th percentile) | 122.5 s, 288.9 s |
The run of each controller took 75.2 s to 77.3 s of wall time for the 64 scenes of two agent rows (1,020 to 1,450 agent-decisions/s). These speeds are indicative.
6. Findings#
- A dwell of 0 s needs the wind below the limit. The first form of the condition was \(b \ge\)
dwell_sonly. With a dwell of 0 s it was true at once in each wind scene. The condition is now \(w < \text{limit}\) and \(b \ge\)dwell_s. - The report has no delay. The monitors of a decision hold the condition after the physics. The controller reads them at the next decision, before the physics, at the same time on the clock. Thus a report at the first decision after the condition has a delay of 0 s.
- An actor of the scene is a row of the suite. The controller under test does not drive the vehicle in the gate. Thus a controller cannot make the gate free.
- The stop of the reference drive overshoots a route end by up to 1.5 m (a chunk is at least 1.5 m long). The reference thus ends its route 2 m before the line.