Repository navigation
line-field-10
Line field: the contact passes of a step share the pair list and the line samples. Exact against line-field-9.
- Change: a step runs up to three contact passes. A contact moves a vehicle sideways and changes its speed and energy, never its distance or node, so the pairs in reach along the line are the same in every pass while nobody retires, and a vehicle's line sample (flags, half width) is the same all step. The first pass lists the pairs in reach (up to 192) and samples the line once a vehicle (the first 32); the later passes walk the list. A vehicle that retires part-way through a pass makes the pass resume as a full scan from the position it reached, and the next pass scans in full. A longer list than 192 pairs is not kept and its passes scan in full.
- API: no new entry point and no new parameter. The results are
line-field-9's, bit for bit: every pin of the suite is unchanged. - Tests: two new checks that record the
line-field-9step's results (five stacked agents with none, one, two or all retiring in the first pass; a 3000-pile fuzz of random piles with retirements in the first and later passes, line-start straddles, external vehicles and list overflow) and their controls. 10 of 11 mutants are caught; the other is equivalent. - Evidence: HOST: 26,143,323 checks pass under GCC, Clang and GCC with ASan and UBSan. The same pile generator over 30000 piles hashes equal on the
line-field-9andline-field-10sources. No instruction-model capture and no console run: there is no line field instruction model, and no existing model suite links the line field (every per-suite model ELF is byte-identical to main's before the change). Validation record. - Consumer (not this repository): a Saturn racing engine's native field on the
line-field-9andline-field-10sources, six courses, seeds 1 to 6, behaviours on and off: 72 of 72 reports equal. In an emulator run (EMULATOR, timing MODELLED) the field step's 99th percentile on a tube course fell from 6.4 to 4.9 ms. - Merge: PR #75, merge
8d7773e. - Guide:
saturn/LINE_FOLLOWER.md.