PROCITY/web/js/citygen
m3ultra 4dc80c2146 Lane A round 18: town-cache schema v2 (roads[]) — published FIRST (v4.0-alpha REAL ROADS)
The half-day handshake so E's build_towns.py can fetch road geometry (ledger #1). Optional roads[]
on the town cache carries real OSM way geometry; plan_osm's graph lift (consuming it) follows in the
next commit. v1 caches (roads absent) stay valid — the marched fallback — so nothing shipped regresses.

- validateTownCache accepts schema procity-town-cache/1 AND /2; when roads[] is present each road must be
  { kind:string, pts:[[lat,lon],…] } with >=2 finite points (else rejected); <2 pts dropped, unmapped
  highway kind → 'side' (warnings). ROAD_KIND maps OSM highway=* → CityPlan edge kind (main/side/lane/arcade).
- Full v2 contract in web/assets/towns/README.md (the doc E builds to): shape, road validity, the kind map,
  the fidelity knob (charter risk #4), and the bbox-bound-the-roads rule.
- E's 5 existing v1 caches re-validate clean; selfcheck ALL GREEN.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-16 15:54:19 +10:00
..
gigs.js Lane A round 16: v3.1 corner-poster clearance bias (#6) + no-spine osm fixture (#7) 2026-07-16 12:35:30 +10:00
index.js Lane F R17 (v3.2): real towns boot in the engine + the town-matrix scout gate (ledger #7) 2026-07-16 15:23:15 +10:00
names.js Lane A round 13: v3.0-beta the district (?gigs=1) — 2–4 venues, week schedule, town-wide posters, verge fix 2026-07-15 22:35:05 +10:00
osm_fixture.js Lane A round 16: v3.1 corner-poster clearance bias (#6) + no-spine osm fixture (#7) 2026-07-16 12:35:30 +10:00
plan_osm.js Lane A round 18: town-cache schema v2 (roads[]) — published FIRST (v4.0-alpha REAL ROADS) 2026-07-16 15:54:19 +10:00
plan.js Lane A round 12: v3.0-alpha gig layer (?gigs=1) — venue, plan.gigs, band names, closing-time debt 2026-07-15 18:33:53 +10:00
selfcheck.js Lane A round 17: v3.2 the town-cache contract (published first) + plan_osm hardened for real data 2026-07-16 14:32:14 +10:00
wordlists.js Lane A round 12: v3.0-alpha gig layer (?gigs=1) — venue, plan.gigs, band names, closing-time debt 2026-07-15 18:33:53 +10:00