Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

Merge origin/main into codex/fix-overpass-cache-singleflight

Said Turkseverbdf5899dda29
diff --cc docs/CURRENT-STATE.md
index 8dbd83409,b8af5c646..94f57b9fb
--- a/docs/CURRENT-STATE.md
+++ b/docs/CURRENT-STATE.md
@@@ -9,11 -9,10 +9,18 @@@ broader suffix variants. Follow-ups ret
lookups preserve the previous analyst cohort and boundary source. Navigation
search keeps a successful geocode, with no search or view-based region recovery.
- Overpass reserves each normalized query before its disk-cache lookup. The same
- reservation covers upstream quota admission, concurrency, fetch and cache
- publication; duplicate callers join the complete transaction and share stale
- fallback on failure. Settled and rejected reservations are removed only while
- they still own their map entry.
++Overpass reserves each normalized query before its disk-cache lookup. The
++initial disk lookup, upstream quota admission, fetching and memory publication
++are coalesced under that reservation. A caller that joined a reservation
++rejected by another client's quota retries admission with its own quota.
++Stale fallback runs per response after the reservation is released, and disk
++writes finish asynchronously. Settled and rejected reservations are removed
++only while they still own their map entry.
++
+ Terrain height requests accept at most 64 points, matching the browser service's
+ existing batch size and one bounded upstream chunk. Larger requests return HTTP
+ 413 before disk-cache loading or upstream work; malformed coordinates remain 400.
+ The browser continues to split larger workloads into sequential 64-point requests.
Shared distance checks use `src/geoDistance.js` with `{ lat, lon }` points and
the IUGG mean spherical Earth radius, 6371.0088 km. `greatCircleKm` is