K5: Cover Field#
This page gives the skill K5 cover_field of the procedure tier, as built (section 6.2 of Farm Benchmark Suite: Design, work package WP9). The code is Fast/acres_batch/skills/cover_field.py. The work of the implements in the environment is Fast/acres_batch/skills/work.py. The framework is on the page Skills: Framework and Contract. The tests are in Tests/Fast/test_skill_cover_field.py. Each number on this page comes from Results/Benchmarks/skill_k5_validity.json.
1. The Skill#
The Maxxum works the passes of a field with an implement on. The call ends when the work covers each target cell, or when the tank or the bale chamber needs service. The skill has two works:
- Baler. The round baler takes the windrows with its pickup. As the chamber fills, the baler wraps a bale at rest and drops it behind it (P1).
- Sprayer. The mounted sprayer (12 m, 24 sections) sprays the field with section control. It must not spray in the no-spray zones or above the wind limit (P3).
| Argument | Unit | Meaning |
|---|---|---|
route |
– | The route of the route table of the scene: the plan of the field |
w_min |
– | The share of the target that success needs (P3: 0.97) |
low_l |
L | The service level of the sprayer: at this level or less the tank needs service (0 for a baler) |
limit |
m/s | The wind limit of spraying (P3: 4.5 m/s). 0 is no limit. |
limit_s |
s | The time limit of the call |
A controller gives the live sections of the implement in the sections stream of each decision. Bit s is section s of the sprayer. Bit 0 is the pickup of the baler.
A variant of this skill with a third tool, the mower-conditioner, is the skill K17 (K17: Mow). It has its own bank and its own route. The bank and the results of K5 do not change with it.
2. The Environment#
work.py adds the work of the implements to the skill environment. At each decision, the live sections are those of the command, for a running call of a sprayer row with liquid in its tank. At each physics step:
- The sections stamp the coverage grid of
fields.py(cells of 0.5 m, the cell rule of WP5), and the tank drains by the dose of the stamped cells. - The rear tyres of each sprayer row stamp a second grid, the cells under a tyre.
- The pickup of the baler takes the windrow segments that it passes over (
items.pickup). The baler fills, wraps at rest for 20 s and drops the bale (items.form). - Each tyre of each row loses the windrow under it (
items.run_over).
The stamps of the sprayer run only when a scene of the batch has a sprayer. The baler's part only when one has a baler (host flags at the construction, the results do not change). A windrow segment has the field of its moisture (the column laid of fld_windrow is 1 + the field). The moisture of each field is in the state (work.moist): the field's moisture, or the optional key fld_moist of a scene (P1). A task can change it in an episode (P1: the drying and the rain, P1). The bank has one field and no fld_moist.
The no-spray cells are those of the wind of the decision. A no-spray zone grows by the drift buffer \(b = b_0 + c\,u\), with \(u\) the wind and \(c\) = 1 m for each m/s (an assumed value: no measurement, benchmarks.md 7.4). The scene holds the no-spray cells of 10 wind classes of 0.5 m/s. Each class uses the wind at the top of its class. The weather series of a scene starts on a multiple of the decision time, so the wind is constant within a decision.
The round baler has no trailer geometry. The game and Core have no round baler, and vehicle.TRAILERS has only the square baler. A baler row thus tows the body of the square baler. Its pickup is 1.0 m ahead of the axle, 1.96 m wide. Its bale lands 4.2 m behind the axle, clear of the end of the chute (2.6 m behind the axle). These values are engineering estimates.
The tractor is an engineering estimate. The parameters of the Maxxum (vehicle.maxxum) come from tractor.json with an assumed speed loop. The Maxxum has no field measurement and no fit. The tyre boxes (the track 1.9 m, the rear tyres 0.65 m wide) are estimates too.
3. Definition and Verifier#
The environment writes these monitors at each decision while the call runs:
| Monitor | Sprayer | Baler |
|---|---|---|
work |
\(W = A_{ok} / A_{target}\), with \(A_{ok}\) the target cells sprayed exactly once | The hay that the pickup took over the hay of the windrows |
overlap |
\(A_{ov} / A_{target}\), with \(A_{ov}\) the target cells sprayed two or more times | 0 |
a_ns |
The area sprayed on no-spray cells (m²) | 0 |
a_wind |
The area sprayed in a decision with the wind at or above limit (m²) |
0 |
use |
The product sprayed (L) | The bales formed |
level |
The liquid in the tank (L) | The hay in the chamber (kg) |
crop |
\(C\), the crop crushed off the tramlines (m²) | The run-over share: the hay under a wheel before the pickup took it, over the hay of the windrows |
t_wind |
The first time with the wind at or above limit |
–1 |
The target cells are those of the field less the no-spray zones grown by the drift buffer at the wind limit. Thus no target cell is a no-spray cell while the wind permits spraying. The skip share is \(1 - W - A_{ov}/A_{target}\).
The verdict of a call is that of the end that the controller reports:
| Reported End | Condition |
|---|---|
| Success | \(W \ge\) w_min at the decision of the report |
Failure service |
The sprayer's level \(\le\) low_l at the report |
Failure wind |
\(t_{wind} \ge 0\) and \(t_{wind} \le t_1 \le t_{wind} + 1\ \text{s}\) |
In each case these conditions must also be true:
- \(A_{ns} = 0\) and no area sprayed above the wind limit.
- For the sprayer, the product is within 5 % of the dose times \(A_{ok}\) (P3).
- No contact occurs, and the vehicle keeps its corridor.
- The report comes before the time limit.
Any other end fails. The start condition is a row with the work of the field of the scene, with the wind below the limit.
The costs in the grade are the time against a lower bound, \(C\), the skip share and the overlap. The lower bound of P3 is \(T_{LB} = A_{target} / (w\,v_{design})\), and that of P1 is the windrow length over \(v_{bale}\).
4. Scenes and Splits#
Each field is a rectangle at a random heading with a grass verge round it. The corridor is the field and its verge: lanes 16 m wide along the passes and across both ends. The working speed is 2.2 m/s. Half of the bank has each work.
| Work | Field | Other Values |
|---|---|---|
| Sprayer | 80 m to 130 m across, 120 m to 190 m along, a verge of 7 m | A dose of 200 L/ha to 300 L/ha. No-spray zones (b0 of 5 m to 10 m): a ditch along a side (60 %), a neighbouring field along another side (30 %), a beehive (40 %). The weather of the split's year, with the wind below 4.5 m/s at the start. |
| Baler | 6 to 10 windrows 7 m to 9 m apart and 90 m to 150 m long. Headlands of 15 m to 18 m and a verge of 4 m. | 2.5 kg/m to 5 kg/m of hay with 20 % of variation along each windrow. The chamber holds 0 kg to 360 kg at the start. |
A quarter of the sprayer scenes has a tank that cannot finish the field. A quarter of the other sprayer scenes has the wind pass the limit while the work goes on. The tramlines are the wheel lines (1.9 m apart) of the planned passes and of the headland loop.
The scenes are procedural. The split is by the seed (bank.SPLIT_SEED). The weather of the train and validation splits is that of 2024, the weather of the test split that of 2025.
5. Reference#
The reference is the classical skill of P3. It has passes in the driving direction that minimises the turns, headland passes, and section control by geometry against the coverage grid. The route of the scene is the plan:
- The passes are along the long side of the field. For a rectangle, this is the direction that minimises the turns.
- Two passes in a row are at least 17.2 m apart (two radii of 8.6 m). A turn of the reference drive cannot bend more than
chunk.K_MAX(8.1 m radius), and a trailer cannot reverse. A depth-first search gives the order of the passes, the nearest allowed pass first. - Each turn is in the headland: a half circle, or two quarter circles of 9 m with a straight between them.
- The sprayer first sprays the headland on a loop round the field. The loop is 5.85 m inside the boundary, and its corners have a radius of 9 m. Then it sprays the inner passes, 11.7 m apart (0.3 m of overlap that the sections remove).
The reference is a state machine with the states work and wrap, and the terminal states:
work: the reference drive follows the route.- Sprayer: a section is on when no cell of its strip is a no-spray cell, over the next decision's travel and 0.75 m more. Also, the sprayer has not yet sprayed at least half of the target cells of its strip over the decision's travel. The reference reads the grid: the privileged state. The no-spray cells that it reads are those of the wind of the last decision (the default). With the setting
SkillEnv.spray_wind = "now"(12 Nov 2026, P3 uses it) they are those of the wind of the decision that the sections are for. With the default, the wind can rise to the next class between two decisions. Then the buffer grows after the reference sets the sections. In P3 this sprayed one cell (0.25 m²) of a no-spray zone (P3, section 5). - Baler: the pickup is on. When the hay ahead on the windrow fills the chamber within 5 m, the reference drives at 0.6 m/s or less.
- Baler, after a headland turn: in the lead-in the route behind turned by more than 20 degrees, and the route 4 m ahead is straight. There the reference drives at 1.2 m/s or less (
TURN_MPS), if the checker accepts the slower chunk. Else it takes the chunk of the reference drive.
- Sprayer: a section is on when no cell of its strip is a no-spray cell, over the next decision's travel and 0.75 m more. Also, the sprayer has not yet sprayed at least half of the target cells of its strip over the decision's travel. The reference reads the grid: the privileged state. The no-spray cells that it reads are those of the wind of the last decision (the default). With the setting
wrap: the chamber of the baler is full or wraps. The reference stands until the baler fills again.- Success: at rest at the end of the route.
- Failure
service: the tank is at the service level between two passes (no section on, the boom in the headland), or the tank is empty. - Failure
wind: the wind of now is at or above the limit. The reference reports at once, so no section is on in that decision.
6. 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. The bank has 27 sprayer scenes (12 to cover, 7 with a short tank, 8 with the wind) and 37 baler scenes.
| 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 49, service 7, wind 8 | 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 63 of 64 (success 49, failure:wind 8, failure:service 7), against 63 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/cover_field.json, defaults_switch.json). These runs are before the fixes of 12 Nov 2026.
The solvable bank has 64 scenes. The reference passes 37 of 37 baler scenes and 27 of 27 sprayer scenes. No reference run sprayed on a no-spray cell or above the wind limit.
| Measure of the Reference | Value |
|---|---|
| Sprayer, a covered field: \(W\) (smallest, median, largest) | 0.971, 0.984, 0.991 |
| Sprayer, a covered field: overlap share (median, largest) | 0.008, 0.010 |
| Sprayer, a covered field: skip share (median, largest) | 0.009, 0.019 |
| Sprayer: product over the dose times \(A_{ok}\) (smallest, largest) | 1.005, 1.027 |
| Sprayer, a covered field: crop crushed off the tramlines, median | 250 m² (159 m²/ha) |
| Sprayer, a covered field: time over \(T_{LB}\) (median, largest) | 1.47, 1.83 |
| Sprayer, a service end: the tank at the report (smallest, largest) | 9.0 L, 29.2 L |
| Baler: hay taken \(W\) (smallest, median) | 0.997, 0.999 |
| Baler: run-over share (largest) | 0.000 |
| Baler: bales of a field (smallest, median, largest) | 3, 6, 11 |
| Baler: time over \(T_{LB}\) (median, largest) | 2.12, 2.63 |
| Time of a call (median, 90th percentile) | 649 s, 926 s |
No scene fails. Scene 57, a sprayer field of 1.2 ha, failed on the runs before: its \(W\) at the report was 0.9699, below 0.97. Now its \(W\) is 0.9711. The checker refused one chunk of the reference in the whole bank.
For the 64 scenes, the do-nothing controller took 298.5 s of wall time for 2,800 decisions and the reference 310.5 s for 2,140. This is 440 to 600 agent-decisions/s. These speeds are indicative.
7. Findings#
- A headland loop leaves the corners. A forward turn of 9 m radius with a boom of 12 m does not cover the corner of the field. The outer end of the boom turns on a circle of about 15 m radius, and the corner of the field outside it stays dry. Thus the skip share is largest on the small fields, and the one failure is a field of 1.2 ha. A loop corner (out of the field and back) needs more verge than the scenes have.
- Two passes in a row cannot be neighbours. The tightest turn of the reference drive has a radius of 8.1 m (
chunk.K_MAX). The sprayer's passes are 11.7 m apart and the windrows 7 m to 9 m apart. The order of the passes thus skips one or two passes, and the turns are forward only, as the trailer cannot reverse. - The bale of
items.formlands inside the body of the stand-in trailer. The chute ofitems.pyis 1.6 m behind the axle. The body of the square baler reaches 2.6 m behind it. A bale there is an obstacle under the trailer's boxes for the checker. The skill drops the bale 4.2 m behind the axle (chute_posewithbehind_m). - The test bank with the slower lead-in (12 Nov 2026,
tractor_default.json): 63 of 64 with the assumed Maxxum (scene 57, a sprayer, ends at W 0.969 as before) and 64 of 64 with the fitted one (63 before, scene 25 was the baler that ran over the windrow). - The fitted Maxxum runs over the windrow after a turn (12 Nov 2026). The Maxxum fitted to ACRES Core has a steering lag of 0.57 s (assumed: 0.30 s). With it, the tractor came out of a headland turn at 2.2 m/s at 15 degrees to the windrow and 0.8 m past its line. A rear wheel then ran over 5 m to 6 m of the windrow at two windrow ends (val split, scene 44: W 0.966, the limit is 0.97). The reference thus drives the lead-in at 1.2 m/s. At this speed the fitted Maxxum drives as far during its steering lag as the assumed one did at 2.2 m/s (2.2 x 0.30 / 0.57 = 1.16 m/s). An operator also slows down after a turn. In one scene the reference made a chunk slower after the check of the reference drive. That chunk stood before a bale that the baler had dropped at the turn (val split, scene 49). The reference thus sends the slower chunk only when the checker accepts it. On the val split, 64 of 64 pass with each tractor (before: 63 with the fitted one) (
Results/Benchmarks/tractor_default.json). - A full chamber stops the pickup. The pickup takes nothing while the chamber is full. A baler that drives on leaves windrow on the ground. The reference crawls at 0.6 m/s over the last 5 m before a full chamber and stands at once when it is full. The hay that the reference left on the ground was 0.32 % or less of a field.
- The progress on the route runs ahead of the vehicle. The reference drive stops at the end of the route by the progress, which can be 2 m ahead of the true arc. The route thus goes on 6 m past the last pass, so that the boom or the pickup reaches the end of the field.
- The field's corridor is lanes, not the route's chain. The route crosses each lane many times. A chain of the route beside the lanes puts too many capsules in a window of 64. The scene thus has no chain of the route (
bank.scene(..., route_chains=False)). - The turns crush crop. The headland has crop, and the turns cross it off the tramlines. The crop crushed is 139 m²/ha (median). It is a cost, not a condition of success (P3).
- The wind is constant within a decision. A weather series starts on a multiple of the decision time. Thus a controller reads at a decision the wind of its physics. The reference reports the wind end before it sprays.