479ffd00ed0be9467952da95f20b59268526a32b
Every junction-crosswalk-inset handle advertised max 8. Sweeping the real response across eight groups, the ceiling ran 1.0 to 4.5 and varied per approach, so 44-88% of the declared range moved nothing and returned no diagnostic. Two approaches had a ceiling at or below the 1.5 default, meaning dragging outward there did nothing at all — which is what made direct editing look broken rather than limited. crossingJunctionInset() stops responding once the inset reaches the cutback, and sooner still when the crossing sits beyond the 4m cap, giving cutback - max(0, junctionDistance - 4). Predicted ceilings matched all eight measurements within the 0.5m sweep step, and the published max now matches them 8/8 where it used to be a flat 8. The distance needs to know which crossing an approach serves, which lived only inside compileControlMarkings(). crossing-approach.js now holds that rule at road level, which is model-only and so usable from the solver. Behaviour is unchanged: every lane of a road shares its junction distance, so the compiler's (road, lane) ordering already grouped by road — fixtures confirm the geometry is byte-identical. Both directional roads of a segment can meet at one junction serving different crossings; taking the first match published one road's ceiling on the other's handle. The road that ends at this node wins, which is the same rule the client uses to find the handle and the same one crossingJunctionInset() applies. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Road Compiler
Compiles a native-road-package/v1 RoadCompilerInput JSON file into native-road GeoJSON, diagnostics, traffic-signal runtime assets, and a deterministic completion marker.
npx road-compiler --input /absolute/path/road-compiler.input.json
The compiler does not read host area configuration. The caller owns configuration normalization and creates the input JSON. Successful compilation writes exactly one NATIVE_ROAD_COMPILE_DONE JSON marker to stdout.
Run npm test after npm ci to validate the package and its two self-contained area fixtures without the host repository. The migrated baselines remain upgrade corpus; the host repository owns the strict path-normalized parity gate.
Languages
JavaScript
47.8%
Python
25.3%
TypeScript
25%
CSS
1.3%
HTML
0.6%