release: bump version to 0.84.0
ci / backend (push) Canceled after 0s
ci / frontend (push) Canceled after 0s
ci / delivery (push) Canceled after 0s

This commit is contained in:
linkong committed 2026-12-04 07:07:19 +08:00
1 parent 3b1b9ef68c
commit e1cc27f13d
241 files changed
+42779 -6027

No files matched your search

+1 -1
View File
@@ -97,7 +97,7 @@ AIS vessel collectors use a different persistence path from regular `CollectedDa
`vessel_current_state` only lets newer observations overwrite dynamic position fields; static fields such as name and vessel type are merged by non-empty value and source priority. Earth snapshots return only vessels inside the freshness window, keeping high-frequency AIS history out of the display path.
Earth boundaries are no longer data collectors. They are Earth static rendering assets: the Earth Assets settings panel owns source configuration, and `/api/v1/earth/boundaries/*` builds `frontend/public/earth/data/boundaries/earth-boundaries-china-pov-v1.pmtiles`. When no high-precision PMTiles artifact is available locally, the frontend uses the bundled low-precision GeoJSON fallback and does not write boundary records to `CollectedData`.
Earth boundaries and populated-place label catalogs are not data collectors. They are Earth static rendering assets: the Earth Content -> Boundary Precision panel (`PUT /api/v1/earth/boundaries/config`) owns source configuration, and `/api/v1/earth/boundaries/*` (`/status`, `/manifest`, `/build`, `/build/status`, plus `GET`/`HEAD` HTTP `Range` immutable `/files/{name}` isolated on `rate_limit_tier="tile"`) builds and serves `earth-boundaries.<assetVersion>.pmtiles`, `hover-index.<assetVersion>.json`, `hover-borders.<assetVersion>.json`, and `geo-labels.<assetVersion>.json` (`planet-earth-geo-labels/v1`, built from `earth_populated_places` under China POV rules). When no high-precision PMTiles artifact is built locally, the frontend uses the bundled `countries-admin0.china-pov-v1.geojson` fallback and does not write boundary records to `CollectedData`.
TOP500 and Epoch AI compute sources do not always provide usable coordinates. Epoch's official CSV `Location` may contain only a country or be empty even when a row has latitude/longitude; it is never treated as a precise site without the required source semantics. The unified Earth compute-center endpoint uses valid source-provided coordinates or `compute_center_locations` dimension-table coordinates during the main map startup path; records without renderable coordinates remain in the complete `unresolved` list instead of being rendered from a local registry, country centroid, or guessed headquarters. `precise`/`site` keep source coordinates; city-level and confirmation-required points may receive only a deterministic display offset keyed by `source` + `source_id`, with the original coordinate untouched. When users manually collect candidates, the backend queries ROR and Nominatim/OpenStreetMap from source fields; accepted candidates are saved into `compute_center_locations` and rendered from that table on the next layer refresh.
+29 -1
View File
@@ -295,7 +295,7 @@ The real satellite altitude preference is persisted by `controls.js`, while the
SGP4 propagation returns an inertial-frame position, so it must not be drawn directly as Earth-fixed longitude / latitude. `satellites.js` uses `gstime` to convert ECI/TEME positions to ECF, then maps that result into the same Three.js axes as `latLonToVector3()`. Satellite dots and short trails use Earth-fixed coordinates for each sample time, representing the object's current position relative to the globe surface. The locked predicted orbit uses the `gstime` from the lock moment for an open full-period prediction curve, projecting the inertial orbit plane onto the current globe pose. No first vertex or closing chord is appended; arc-length highlights travel toward increasing prediction time, and visual inclination stays aligned with the details card. Fallback predicted orbits must also use a real RAAN + inclination orbital-plane formula, not treat inclination as a constant latitude.
Boundary precision is stored separately by `country-boundaries.js` under `planet.earth.boundaries.highPrecisionEnabled`. When high precision is off, Earth keeps using the bundled low-precision `countries-admin0.min.geojson` fallback even if high-precision manifest/PMTiles files exist locally. When high precision is on but the artifact is missing, the Earth toolbar settings call `/api/v1/earth/boundaries/build` and poll progress. After success, `reloadCountryBoundaries()` hot-swaps the boundary layer without refreshing the page. Boundary hover is independent from interactable hover: a country polygon remains highlighted whenever the surface coordinate is inside it, while the tooltip can still prioritize a satellite, vessel, BGP marker, or other interactable.
Boundary precision is stored separately by `country-boundaries.js` under `planet.earth.boundaries.highPrecisionEnabled`. When high precision is off, Earth keeps using the bundled low-precision `countries-admin0.china-pov-v1.geojson` fallback even if high-precision manifest/PMTiles files exist locally. When high precision is on but the artifact is missing, the Earth toolbar settings call `/api/v1/earth/boundaries/build` and poll progress. After success, `reloadCountryBoundaries()` hot-swaps the boundary layer without refreshing the page. Boundary hover is independent from interactable hover: a country polygon remains highlighted whenever the surface coordinate is inside it, while the tooltip can still prioritize a satellite, vessel, BGP marker, or other interactable.
## Current Terrain Pipeline
@@ -620,3 +620,31 @@ When compute image configuration has no model/group rules, resolution uses a bou
- **Surface Influence Zones & Stage Directives** (`influence-zones.js` + `scene_directives.py`): renders geopolitical country/region presets and great-circle radius zones emitted by AI/stage directives via single-pass offscreen `scratchCanvas` soft-blur compositing and explicit `tier` / `z_index` stacking (`renderOrderBase = 0.965`, strictly between HD imagery `0.96` and borders `0.97`).
- **Rayleigh Scattering, Ribbons & GPU Iridium Projection**: `earth-surface-material.js` and `earth.js` pair with `earth_clouds_2048.png` for Rayleigh terminator shading, soft surface cloud shadows, and grazing water highlights; `surface-ribbon.js` unifies screen-space anti-aliased glowing ribbons for borders, BGP radar/stage arcs, cable pulses, vessel tracks, and selected satellite orbits; `iridium-footprint-adapter.js` moves Iridium footprint vertices onto GPU projection.
- **Prefer-One-Bend Callout Routing & Write Auth**: `callout-connector.js` (`applyPreferredOneBendAnchor`) shifts aligned perimeter anchors toward the card body/header when sufficient major-axis distance and edge span exist so connectors prefer one clean bend (never exceeding one bend, gracefully falling back to a 2-point line on compact capsules or short spans); `admin-write-auth.js` gates Earth-side compute location collection and saving behind admin token refresh and `/login` prompts.
### Real-Time Global IR Cloud Map Pipeline & Dual-Frame Shader
- **Data-First Multi-Satellite Clouds, Managed Tile Pyramids & NOAA GFS Wind Grid** (`earth_clouds.py` + `earth_clouds_fx.py` + `earth_tiles.py` + `earth_wind.py`):
- `global_cloud_map` (`id=34`, `product=weather`): defaults to **`4096x2048`** (`request_timeout_seconds = 45`), extending the 5-satellite Band13/10.8μm IR feathered composite (limb cutoff `delta > 74°`) with a band-pass warm-low-cloud daytime visible fusion gate (`fuse_daytime_visible_into_density`, recovering `-2°C..+16°C` stratocumulus while rejecting sub-`-8°C` winter plateau snow, hot deserts, and clipped `[255,255,255]` EUMETView artifacts), GeoColor RGB overlays (`frames/<ver>_vis.webp`), and `cv2.DISOpticalFlow_create` displacement fields (`flows/<ver>.webp`), exposed via `/api/v1/earth/clouds/{meta,frames/{ver},frames/{ver}/visual,flows/{ver}}`; local 8K basemaps and `earth_clouds_2048.png` remain as fallbacks.
- Managed Tile Pyramid (`cloud_hd_tiles` `id=35` in `weather`; `earth_imagery_sentinel2` `id=36` and `earth_imagery_viirs_daily` `id=37` in `geo`): `BaseCollector` warmup jobs pre-seed `z=0..warmup_max_zoom` while `/api/v1/earth/tiles/{source}/{z}/{x}/{y}.webp` enforces `DataSource.is_active` gating and per-source disk LRU eviction; defaults set `cloud_hd_tiles_enabled = false` and `lod_switch_altitude = 1.85` so the single seamlessly feathered 4K global map drives clouds across all zoom levels (when `cloud_hd_tiles` is manually enabled, HTTP responses cap browser `max-age=300` and apply the same warm-low-cloud band-pass filter).
- `global_wind_gfs` (`id=38`, `product=weather`): fetches NOAA NCEP GFS 10m `ugrd10m`/`vgrd10m` vectors from PacIOOS ERDDAP onto normalized `-180..180` grids under `data/earth-wind/`, backing `/api/v1/earth/wind/{meta,grid/{ver}}`, `/api/v1/data-products/wind/{summary,point}`, and AI Advisor `query_wind_posture_tool`.
- **Selectable Surface Color Grades, RGB Frequency-Separated Detail Transfer, Windy Streamlines & Linear Cloud Space** (`constants.js` + `cloud-map.js` + `earth-surface-material.js` + `spherical-tile-layer.js` + `wind-layer.js` + `controls.js` + `satellites.js` + `earth_clouds_fx.py`):
- **Three Selectable Surface Color Grades (`SURFACE_COLOR_GRADES`, default `classic-083`)**: Explicitly parameterizes `uLandGradeGain`, `uLandCoolBias`, `uDiffuseFloor`, `uToneMapMode`, and `iceFactor` to deliver `classic-083` (clean, cool, crisp `v0.83.0` filmic tone with indigo ocean, pure white snow peaks, and `opacity: 0.38` cloud veil without pre/post-load brightness jumps), `fresh-natural` (vibrant greens via chroma-preserving C1 curve), and `balanced-satellite`, selectable via Settings → Display → `Surface Tone` (`EARTH_SETTINGS_VERSION = 21`) alongside `uSurfaceBrightness` (`0.65..1.6`, default `1.0`).
- **RGB 3-Channel Frequency-Separated Detail Transfer** (`createEarthSurfaceTileMaterial`, cache key `earth-surface-tile-v5`): Uses `tileLowRgb` / `rgbRatio` / `transferRatio` to strip Sentinel-2's diagonal swath stripes while injecting full-color 10m terrain micro-features matched across all zoom levels (`50%..500%`) and color grades; both tile and wind groups use plain `THREE.Object3D` (`groupOrder = 0`), and `uLandMask` decodes uniformly via `#ifndef LEGACY_TEXTURE_ENCODING surfaceSRGB(mask)`.
- **Windy-Style Curved Global Wind Streamlines** (`wind-layer.js`): 3,600 advected particles with 8-segment curved history ribbons (`CONFIG.earthRadius + 1.6`, `renderOrder = 1.04`, `THREE.AdditiveBlending`) rendered in a cool frost-white/sky-cyan/aurora-ice palette below clouds and distinct from satellite markers/trails.
- **Linear Cloud Maps & Parallel 4K Decoding** (`cloud-map.js` + `earth_clouds.py` + `earth_clouds_fx.py`): Keeps `uCloudMap` and `uCloudVisualMap` in `THREE.NoColorSpace` to avoid linear-density darkening into gray smog, deduplicates visible image decoding via `decode_visual_payloads`, parallelizes IR+VIS WMS fetches, and filters EUMETView clipped `[255,255,255]` blocks; 6-digit NORAD IDs map to USSF Alpha-5 TLE identifiers and locked `predictedOrbitLine` ribbons rotate via `anchorSiderealTime - gstime(liveTime)`.
- **Unified Weather Layer Toggle, Display Weather Section & v22 Defaults** (`constants.js` + `index.html` + `controls.js` + `layer-startup-tasks.js`): Consolidates cloud and wind rows in the layer panel into one default-on `Weather` (`#toggle-weather`) switch and adds a dedicated `Weather` subsection in Settings → Display (`WEATHER_LAYER_DEFINITIONS` multi-select chips for `Clouds` and `Wind`, both on by default alongside live/timelapse cloud toggles, with bidirectional master-chip synchronization), while renaming the news subsection heading to `News`. `EARTH_SETTINGS_VERSION = 22` sets default sky brightness to `200%`, terrain opacity to `68%`, satellite close-up label zoom threshold to `330%`, default label limit to `16` (preserving the `5..36` slider range), and default altitude compression to `0%`.
### High-Precision PMTiles Vector Boundaries & 3D Tiered City Labels
- **High-Precision Boundary Pipeline & Multi-Layer Caching** (`country-boundaries.js` + `boundary-tile-worker.js` + `boundary-tile-decode.js` + `boundary-tile-cache.js` + `earth-preload.js` + Electron `protocol-core.ts`):
- **4 Zoom Tiers & Coastal Endpoint Alignment**: `tileZoomThresholds` divides `1x–5x` into `z2` (`0x`), `z4` (`1.3x`), `z6` (`2.3x`), and `z8` (`3.8x`); Natural Earth administrative borders (`boundary_admin0` / `boundary_disputed_internal` / `boundary_admin1`) saturate at `z6` and persist smoothly above `z6` while `z8` refines OSM `coastline` geometry. Build-time geometry prep (`earth_boundary_geometry.py`) extends/trims coastal border endpoints onto coastlines and bakes a `2px` antimeridian-wrapping `THREE.NoColorSpace` (`flipY=true`) land mask.
- **Flicker-Free Scheduling, Poison-Free Negative Caching & Batched Rendering**: Uses trailing-edge debouncing, monotonic `generation` cancellation, center-first queue ordering, and parent-tile persistence (`resolveDisplayTiles`) feeding `<= 3` GPU draw calls (`country-boundary-batch`, `country-admin1-batch`, `country-boundary-claim-batch`). `_emptyTileKeys` caches only verified zero-feature responses (never HTTP 429 or aborted requests), `ResilientPmtilesCache` evicts rejected directory/header promises, and layered persistence spans `earth-preload.js` + IndexedDB (`force-cache` Range fetches + `prewarmBoundaryTiles`) plus Electron `userData` disk caching for zero remote file requests on reload. Country hover merges `hover-borders.<assetVersion>.json` land borders with PMTiles coastlines for full-perimeter glowing strokes with no country fill mask.
- **3D Tiered City Labels** (`geo-labels.js` + `constants.js` + `hud.css` + `layer-startup-tasks.js` + `controls.js`):
- Loads `manifest.geoLabels` (`geo-labels.<assetVersion>.json`) via preload + IndexedDB after boundary startup, anchors dot markers at `earthSurfacePoint(..., CONFIG.earthRadius + 0.48)` (`translate(-3px,-50%)`), and culls far-side cities with `isSurfaceAnchorVisible` (`occlusionRadiusFactor = 0.999`).
- Smoothly fades three zoom tiers — Tier 1 (`1.7x..2.05x`, capitals / megacities), Tier 2 (`2.75x..3.15x`, major cities), Tier 3 (`3.75x..4.2x`, provincial/state admin-1 capitals) — capped at `28` desktop / `14` mobile labels per frame while avoiding HUD panels, `#earth-region-callouts`, `.map-cluster-badge` / `.map-cluster-child`, and `.satellite-map-label`, following `zh`/`en` locale changes and the `City Labels` (`[data-geo-labels-toggle]`, default on) switch in Settings → Display.
### Compute Ledger Version Replay, Lineage Drawer & Copilot View-Sync Guard
- **Published-revision selector and historical banner** (`compute-topic.js` + `compute-topic.css`): adds a `Published revision` selector backed by the redacted public endpoint `/api/v1/data-products/compute/revisions/public` alongside Period and Measure, forwarding `publish_id` / `as_of` on both `/series` and `/posture/compute`. Viewing a historical revision renders a top banner (`Viewing revision published {ts} (not current)`) with a one-click `Return to current` button, while pre-baseline timestamps surface an `Incomplete historical snapshot` notice.
- **Per-country provenance and Lineage Drawer** (`compute-topic.js` + `compute-topic-model.js`): adds an inline provenance button beside each hero metric using per-country `evidence_by_code` and fetches `/api/v1/data-products/compute/lineage` (attaching Bearer auth only when the stored session role is `admin` or `super_admin` so public/viewer traffic remains redacted without triggering 403), rendering current value, source title/locator/excerpt/SHA-256, object-level timestamps, and revision timeline inside `#compute-evidence`.
- **Copilot same-source binding and mismatch guard** (`situational-copilot.js` + `workbench-blocks.js` + `main.js`): forwards `publishId`, `asOf`, `mode`, and `focusYear` from Compute Cards into Copilot sessions/turns and listens to `earth:compute-view-changed` to compare each turn's `view_spec` `(publish_id, mode, focus_year)` against live card state. Any divergence displays a mismatch banner with a `Re-evaluate for current view` button in **both** the narrative text area and the chart/workbench area so charts and prose never silently disagree. `stage-narrative-player.js` labels `compute-revision-notice` as `Compute Data Revision` and syncs the updated `publishId`.
@@ -71,38 +71,49 @@ The land/ocean base is an Earth base-map asset and preloads at startup; the "Bor
| Name | Variable | Current Value | Location / Notes |
| --- | --- | --- | --- |
| Boundary tile manifest | `COUNTRY_BOUNDARY_CONFIG.tileManifestPath` | `"/earth/data/boundaries/v1/manifest.json"` | High-precision PMTiles manifest; missing manifest uses the low-precision fallback |
| Boundary tile provider | `COUNTRY_BOUNDARY_CONFIG.tileProvider` | `"auto"` | Prefer high-precision PMTiles/MVT, then fall back to legacy GeoJSON |
| PMTiles artifact path | `COUNTRY_BOUNDARY_CONFIG.pmtilesPath` | `"/earth/data/boundaries/earth-boundaries-china-pov-v1.pmtiles"` | Production single-file PMTiles/MVT artifact |
| Low-precision fallback | `COUNTRY_BOUNDARY_CONFIG.legacyFallbackPath` | `"/earth/data/countries-admin0.min.geojson"` | Default land/ocean base and hover data when no high-precision boundary asset has been built locally |
| MVT layer names | `COUNTRY_BOUNDARY_CONFIG.mvtLayerNames` | `boundary_admin0 / boundary_disputed_internal / coastline / claim_line` | Fixed layer names decoded by the PMTiles provider |
| Boundary tile base path | `COUNTRY_BOUNDARY_CONFIG.tileBasePath` | `"/earth/data/boundaries/v1/"` | PMTiles manifest base path |
| Boundary tile zoom thresholds | `COUNTRY_BOUNDARY_CONFIG.tileZoomThresholds` | `1.6 -> z5`, `2.8 -> z6`, `3.4 -> z7`, `4.0 -> z8`, `4.6 -> z9`, `5.2 -> z10` | Production PMTiles zoom selection |
| Boundary tile cache limit | `COUNTRY_BOUNDARY_CONFIG.tileCacheLimit` | `150` | Frontend LRU cache entries for loaded tile geometries |
| Boundary tile debounce | `COUNTRY_BOUNDARY_CONFIG.tileDebounceMs` | `180` | View-change debounce before requesting visible tiles |
| Boundary tile manifest | `COUNTRY_BOUNDARY_CONFIG.tileManifestPath` | `"/api/v1/earth/boundaries/manifest"` | High-precision PMTiles manifest; missing or disabled uses the bundled fallback |
| Boundary files endpoint | `COUNTRY_BOUNDARY_CONFIG.tileFilesPath` | `"/api/v1/earth/boundaries/files/"` | Serves PMTiles (`Range`), `hover-index`, `hover-borders`, and `geo-labels` JSON |
| Boundary tile provider | `COUNTRY_BOUNDARY_CONFIG.tileProvider` | `"auto"` | Prefer high-precision PMTiles/MVT, then fall back to policy GeoJSON |
| Low-precision fallback | `POLICY_FALLBACK_URL` (`country-boundaries.js`) | `countries-admin0.china-pov-v1.geojson` | Default land/ocean base and hover data when high-precision assets are disabled or unbuilt |
| MVT layer names | `COUNTRY_BOUNDARY_CONFIG.mvtLayerNames` | `boundary_admin0` / `boundary_disputed_internal` / `coastline` (boundary), `boundary_admin1` (admin1), `claim_line` (claim) | Fixed layer groups decoded by the PMTiles provider |
| Boundary tile zoom thresholds | `COUNTRY_BOUNDARY_CONFIG.tileZoomThresholds` | `0 -> z2`, `1.3 -> z4`, `2.3 -> z6`, `3.8 -> z8` | 4-tier PMTiles zoom schedule (`borderMaxZoom = 6`; `z8` refines OSM coastlines only) |
| Boundary tile cache limit | `COUNTRY_BOUNDARY_CONFIG.tileCacheLimit` | `640` | Frontend LRU cache entries for loaded tile geometries |
| Boundary tile debounce | `COUNTRY_BOUNDARY_CONFIG.tileDebounceMs` | `180` | Trailing-edge view-change debounce before queuing visible tiles |
| Admin-1 fade & style | `admin1MinViewZoom / FullViewZoom / Color / Opacity` | `2.0 / 2.8 / 0x9fd0ff / 0.26` | `country-admin1-batch` smoothly fades in as zoom increases |
| Ocean fill color | local `OCEAN_HEX` | `0x010609` | Land/ocean base canvas background |
| Land fill color | `COUNTRY_BOUNDARY_CONFIG.landColor` | `0x080f1b` | Land/ocean base canvas land |
| Land/ocean base opacity | `COUNTRY_BOUNDARY_CONFIG.landOpacity` | `1.0` | `MeshBasicMaterial.opacity` |
| Land/ocean base radius offset | `COUNTRY_BOUNDARY_CONFIG.landAltitudeOffset` | `0.32` | `country-land-ocean` radius; separated from the Earth base sphere to avoid snow / black block flicker at 50% zoom |
| Land/ocean base renderOrder | `COUNTRY_BOUNDARY_CONFIG.landRenderOrder` | `0.86` | `country-land-ocean.renderOrder` |
| Land/ocean mask size | `landMaskWidth / landMaskHeight` | `2048 / 1024` | Canvas / DataTexture size |
| Land/ocean mask size | `landMaskWidth / landMaskHeight` | `2048 / 1024` | `2px` antimeridian-wrapping `NoColorSpace` (`flipY=true`) DataTexture |
| Country tint color | `COUNTRY_BOUNDARY_CONFIG.tintColor` | `0x0b1830` | Tint when HD texture is off |
| Country tint radius offset | `COUNTRY_BOUNDARY_CONFIG.tintAltitudeOffset` | `0.32` | `country-tint` radius |
| Country tint renderOrder | `COUNTRY_BOUNDARY_CONFIG.tintRenderOrder` | `0.2` | `country-tint.renderOrder` |
| Border line color | `COUNTRY_BOUNDARY_CONFIG.lineColor` | `0x7fc7ff` | Normal border line |
| Border line opacity | `COUNTRY_BOUNDARY_CONFIG.lineOpacity` | `0.58` | Normal border line opacity |
| Border dimmed opacity on hover | `COUNTRY_BOUNDARY_CONFIG.dimmedLineOpacity` | `0.18` | Normal border opacity during hover |
| Border line radius offset | `COUNTRY_BOUNDARY_CONFIG.lineAltitudeOffset` | `0.115` | Normal border line radius; line layers rely on renderOrder and independent geometry, not whole-globe shell depth spacing |
| Border line renderOrder | `COUNTRY_BOUNDARY_CONFIG.lineRenderOrder` | `2.2` | Normal border line level |
| Border hover color | `COUNTRY_BOUNDARY_CONFIG.hoverLineColor` | `0xff3b1f` | Neon red-orange |
| Border dimmed opacity on hover | `COUNTRY_BOUNDARY_CONFIG.dimmedLineOpacity` | `0.18` | Normal border opacity during hover (applied to base batch only) |
| Border line radius offset | `COUNTRY_BOUNDARY_CONFIG.lineAltitudeOffset` | `0.48` (`EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET`) | Shares exact HD surface shell radius to eliminate rotation parallax |
| Border line renderOrder | `COUNTRY_BOUNDARY_CONFIG.lineRenderOrder` | `0.97` | Normal border line level |
| Border hover color | `COUNTRY_BOUNDARY_CONFIG.hoverLineColor` | `0xff3b1f` | Neon red-orange full-perimeter highlight (land borders + OSM coastlines, no fill mask) |
| Border hover opacity | `COUNTRY_BOUNDARY_CONFIG.hoverLineOpacity` | `1.0` | Hover line opacity |
| Border hover radius offset | `COUNTRY_BOUNDARY_CONFIG.hoverAltitudeOffset` | `0.115` | Hover line radius; matches the normal border geometry to avoid double-edge ghosting during highlight changes |
| Border hover renderOrder | `COUNTRY_BOUNDARY_CONFIG.hoverLineRenderOrder` | `2.3` | Hover line level |
| Border hover radius offset | `COUNTRY_BOUNDARY_CONFIG.hoverAltitudeOffset` | `0.48` (`EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET`) | Hover line radius; matches normal border and HD texture geometry |
| Border hover renderOrder | `COUNTRY_BOUNDARY_CONFIG.hoverLineRenderOrder` | `0.99` | Hover line level |
| Border hover glow opacity | `COUNTRY_BOUNDARY_CONFIG.hoverGlowOpacity` | `0.38` | Glow line opacity |
| Border hover glow line width | `COUNTRY_BOUNDARY_CONFIG.hoverGlowLineWidth` | `3` | Glow `LineBasicMaterial.linewidth` |
| Border hover glow level offset | `COUNTRY_BOUNDARY_CONFIG.hoverGlowRenderOrderOffset` | `0.01` | Glow renderOrder = `2.29` |
| Border hover glow line width | `COUNTRY_BOUNDARY_CONFIG.hoverGlowLineWidth` | `3` | Glow line width |
| Border hover glow level offset | `COUNTRY_BOUNDARY_CONFIG.hoverGlowRenderOrderOffset` | `0.01` | Glow order offset relative to hover line |
| Border hover glow radius offset | `COUNTRY_BOUNDARY_CONFIG.hoverGlowRadiusOffset` | `0` | Glow uses the same radius as the hover line to avoid coastline detail misalignment |
## 3D Tiered City Labels
Rendered in `.geo-labels` (`geo-labels.js` + `hud.css`, `z-index: 4`) using `earthSurfacePoint(..., R + 0.48)` dot anchoring and `isSurfaceAnchorVisible` back-hemisphere culling:
| Name | Variable | Current Value | Location / Notes |
| --- | --- | --- | --- |
| Default & screen cap | `defaultEnabled / maxVisibleDesktop / maxVisibleMobile` | `true / 28 / 14` | Controlled by Display → `City Labels`; capped per frame by viewport class |
| Scan interval & occlusion | `scanIntervalMs / occlusionRadiusFactor` | `160 / 0.999` | Collision/obstacle scan every 160ms; active labels update every frame |
| Tier zoom thresholds | `GEO_LABEL_CONFIG.tierFade` | `1: 1.7..2.05`, `2: 2.75..3.15`, `3: 3.75..4.2` | Smooth fade across Tier 1 (capitals/megacities), Tier 2 (major), and Tier 3 (admin-1) |
| Visual hierarchy | `data-kind` (`capital` / `megacity` / `major` / `admin1`) | Gold `11.5px` / White `11px` / Slate `10.5px` / Muted `10px` | Capitals show a `6px` warm-gold dot; demoted regional seats use `admin1` muted styling |
## Real Terrain
| Name | Variable | Current Value | Location / Notes |
@@ -27,9 +27,9 @@ Note: the layer control panel order and the registration / startup load order ar
| 1 | Submarine cables / landing points | `cables.js`, `cable-batches.js` | All cable segments share one `LineSegments`; all landing points use instanced billboards; render order remains `1`; cables and landing-point anchors share the HD surface offset `0.48` and the same triangle-surface coordinates | Original `Line` / `Sprite` objects retain per-item picking and selection state but no longer draw individually; landing-point sphere occlusion remains, with `depthTest: false` on the batch | Style textures and instance attributes preserve color, pulse, size, visibility, and click behavior. |
| 1.2 | Real terrain | `earth.js`, `terrain.js` | `TERRAIN_CONFIG.baseRadiusOffset` plus terrain displacement | Raycast disabled | Terrain overlays HD texture; temporarily hidden when HD texture is off, restores to prior state when re-enabled. |
| 2.05 | Grid lines | `earth.js` | `CONFIG.earthRadius + 0.14` | Raycast disabled | Low-opacity lines over HD texture. |
| 0.97–0.99 | Country borders | `country-boundaries.js` | `lineAltitudeOffset = EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48`; claim lines have no extra lift | Raycast disabled | Line geometry still has its own `renderOrder`, but it shares the exact same radius as the HD texture shell to avoid parallax while the globe rotates. |
| 0.98 | Country border hover glow | `country-boundaries.js` | Same surface mapping, no extra lift | `depthTest: true`, transparent render queue, raycast disabled | Additive glow to reinforce border edge and terrain hover visibility. |
| 0.99 | Country border hover line | `country-boundaries.js` | `hoverAltitudeOffset = EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48` | `depthTest: true`, transparent render queue, raycast disabled | Neon red-orange hover line; aligned with the normal borders and HD texture shell to avoid ghosting or floating; China and Taiwan share the same highlight group. |
| 0.97–0.99 | Country borders | `country-boundaries.js` | `lineAltitudeOffset = EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48`; PMTiles tiles share at most 3 batched draw calls (`country-boundary-batch`, `country-admin1-batch`, `country-boundary-claim-batch`); claim lines have no extra lift | Raycast disabled | Line geometry has its own `renderOrder` and parent-tile persistence to prevent LOD blank gaps, while sharing the exact HD texture shell radius to avoid parallax during globe rotation. |
| 0.98 | Country border hover glow | `country-boundaries.js` | Same surface mapping, no extra lift | `depthTest: true`, transparent render queue, raycast disabled | Additive glow reinforcing full-perimeter border edge and coastline visibility. |
| 0.99 | Country border hover line | `country-boundaries.js` | `hoverAltitudeOffset = EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48` | `depthTest: true`, transparent render queue, raycast disabled | Neon red-orange full-perimeter hover line (combining land borders and OSM coastlines with no country fill mask); aligned with normal borders and the HD shell; China and Taiwan share the same highlight group. |
| 3 | Satellite footprint fill / Iridium coverage ring | `satellites.js`, `iridium-footprint-adapter.js` | `GROUND_FOOTPRINT_RENDER_ORDER` | depth-tested; Iridium adapter fill / ring use the same renderOrder | Footprint above land / texture / terrain and country borders, below compute centers and satellites. |
| 3-4.5 | BGP collectors, event rings, and event markers | `bgp.js`, `interactable.js` | Collector markers use `BGP_COLLECTOR_RENDER_ORDER = 4.4`; event markers use `BGP_EVENT_RENDER_ORDER = 4.5`; overlays remain in BGP-owned groups | Screen-space Interactable picking; BGP collectors/events may use collision avoidance where appropriate | BGP collectors share the surface-facility band with vessels; BGP events share the compute-center band. |
| 4.3 | AIS vessel track lines | `vessels.js` | `VESSEL_RENDER_ORDER - 0.1`; `CONFIG.earthRadius + VESSEL_CONFIG.track.altitudeOffset` | Follows vessel selection, not independently picked | Recent track for the selected vessel, below vessel markers. |
@@ -111,3 +111,5 @@ Co-located markers share a compact projection stack across categories; screen co
Regional news and compute retain the `#earth-region-callouts` root (z-index 20) and share flank/corridor assignment with object details through `callout-stage-arbitrator.js`, which assigns symmetric left and right flanks to bilateral `CN` and `US` spotlight peers via `bilateralPeerKey`. Expanded cards inside the regional root use 50, drag foreground 55, hover expansion 60–65, ordinary capsules 30, and dimmed/shrunk rear capsules 8, whereas spotlight and hover-expanded cards stay 100% opaque on the rear hemisphere while switching their connector to a dashed `.is-rear` rim guide and exposing a header rotate-to-front button.
Compute hub drill-down overlays and stage logical AS route arcs follow strict shell separation and batching rules: China's eight National Compute Hubs render through a single GPU-instanced `createInteractableLayer` at `EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48` (`renderOrder = 4.58`); western green-hub `AdditiveBlending` pulse rings use `renderOrder = 4.42` (`depthWrite: false`); East-West synergy arcs, stage logical AS routes, country hover highlights, selected cable pulses, vessel tracks, and selected satellite orbits share the screen-space anti-aliased `surface-ribbon.js` pipeline (avoiding the Windows ANGLE 1px `THREE.Line` cap); and Iridium footprints run through GPU vertex projection in `iridium-footprint-adapter.js`, disposing geometry and materials immediately on hide or tour exit.
The projected 3D city-label DOM layer `.geo-labels` (`geo-labels.js` + `hud.css`) sits at `z-index: 4` (above the WebGL canvas and below `.map-clusters` at `5` and `.satellite-labels` at `6`). Labels anchor their left dot via `earthSurfacePoint(lat, lon, R + 0.48)` (`translate(-3px,-50%)`), cull back-hemisphere points via `isSurfaceAnchorVisible`, and run priority collision/obstacle avoidance against HUD panels, cluster badges, regional cards, and satellite close-up labels.
@@ -92,6 +92,14 @@ The Admin datasource page routes single-source trigger, table-selected trigger,
This queue is a user-perception layer. Backend task status remains the only source of truth for running, completion, failure, and skipped decisions.
## Collected Data Layer Ledger
`/data` ([DataList.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/DataList.tsx) and `pages/data-ledger/`) organizes review around Earth layer categories (synced with `?layer=`, defaulting to `compute`) backed by `/api/v1/data-ledger/*`:
- Left-pane [LayerNav.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/data-ledger/LayerNav.tsx) reuses backend `PRODUCT_DEFINITIONS` counts across Earth layers while preserving `Raw Collected Records` (`?layer=raw`) for legacy `/api/v1/collected` filtering, dimension toggle, and export.
- `layer=compute` mounts [ComputeLedger.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/data-ledger/ComputeLedger.tsx) with 5 facility-type filters, 4 location status buckets (`located`, `needs_confirmation`, `terminal`, `pending`), country/keyword search, 28px `TableActionButton` actions (`Relocate` with `force: true` and `Edit coordinates` dialog reusing `/api/v1/visualization/compute-centers/{source_id}/collect-location` and coordinate save endpoints), plus row details with sanitized reasoning and `/advisor/runs` links.
- Other layers (`satellites`, `cables`, `vessels`, `bgp`, `news`, `weather`, `geo`) render read-only paginated views via [LayerItemsLedger.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/data-ledger/LayerItemsLedger.tsx) inside the single-screen internal-scroll layout.
## Admin Theme Slider
The Admin sidebar theme switcher still reuses shared [SegmentedControl.tsx](/home/ray/dev/linkong/planet/frontend/src/components/SegmentedControl/SegmentedControl.tsx), while [styles.css](/home/ray/dev/linkong/planet/frontend/src/admin/styles.css) overrides the segment variables by `data-theme`:
@@ -465,6 +473,14 @@ The image library supports upload/URL entry, attribution, licensing, enabled sta
Under `/earth/card-images`, configuration GET/PUT, upload POST, targets GET and preview POST require administrators. Resolve and content-addressed files are public read-only routes. Configuration writes use revision checks and audit transactions.
## Multi-metric compute ledger and candidate review queue
## Multi-metric compute ledger, candidate review queue, and revision history
`ComputeComparisonSettings.tsx` powers `/earth-content?section=compute_comparison` within the Admin single-screen height chain (`height: 100%` + `min-height: 0`), keeping the header and six workspace tabs (Observations, AI structure, Innovation gap, Milestones & 8 Hubs, Sources, and Candidate queue) pinned while only the inner `Scrollbar` scrolls. Saves use optimistic revision locking and round-trip `structures`, `milestones`, and `national_hubs` intact; the Candidate queue connects to `/api/v1/situational-awareness/candidates` for excerpt extraction, manual approval/rejection, and one-click import into the draft.
`ComputeComparisonSettings.tsx` powers `/earth-content?section=compute_comparison` within the Admin single-screen height chain (`height: 100%` + `min-height: 0`), keeping the header, publish-note bar, and seven workspace tabs (Observations, AI structure, Innovation gap, Milestones & 8 Hubs, Sources, Candidate queue, and Revision history) pinned while only the inner `Scrollbar` scrolls. Saves use optimistic `publish_id` locking, preserve `structures`, `milestones`, `national_hubs`, and per-country `value_sources` (requiring a `publish_note` explaining same-denominator comparability whenever a share row mixes multiple sources), and append to the immutable revision ledger. The Candidate queue connects to `/api/v1/situational-awareness/candidates` with revision/new/period-conflict/duplicate badges, per-country old→new→delta comparison tables, mandatory matched reason codes and rationale on approve/reject, non-destructive per-country draft imports, and explicit confirmation dialogs on `period_label` conflicts; Revision history lists `/api/v1/data-products/compute/revisions` entries with diff summaries, actor metadata, publish notes, and presentation delivery status.
## Global Real-Time Cloud & High-Res Basemap Workbenches (`weather` / `geo`)
`EarthCloudMapSettings.tsx` mounts at `/earth-content?section=cloud_map` under the shared Admin single-screen (`height: 100%` + `min-height: 0`) shell and focuses strictly on live preview and Earth presentation controls: a 2:1 starry preview with SVG graticule and convective-cluster overlay, history frame scrubbing, global/regional KPIs, display toggles (live IR enablement, daytime GeoColor compositing, DIS optical-flow advection, cloud-top relief strength, timelapse playback, convective markers, opacity, reset), plus a read-only weather collector summary linking to `/datasources?product=weather` (`global_cloud_map`, `cloud_hd_tiles`, `global_wind_gfs`) and `/collection-management` (`采集器配置`). `EarthBasemapSettings.tsx` mounts at `/earth-content?section=basemap` to preview and configure the managed tile pyramid sources (`earth_imagery_sentinel2`, `earth_imagery_viirs_daily` under the new `geo` / `地理/底图` product domain, plus `cloud_hd_tiles`), disk LRU cache caps, per-source cache clearing, and viewport LOD switch altitude thresholds.
## Bundled Built-in Preview Assets for Admin-Only Builds
Production `planet_admin` images are built with `PLANET_FRONTEND_TARGET=admin` (`publicDir: false` in `frontend/vite.config.mts`, keeping `dist/earth/` strictly excluded), while backend default brand and static cloud configurations retain `/earth/assets/...` paths for the desktop offline Earth contract. To prevent Admin preview `<img>` tags from falling through Nginx SPA `index.html` fallback as broken images, `earthBuiltinAssetsPlugin` in `frontend/vite.config.mts` maps `@earth-builtin-asset/*` imports directly to hashed files under `/assets/*.png` (`brand/earth-logo.png`, `brand/title-zh.png`, `brand/title-en.png`, `brand/lim-logo.png`, `earth_clouds_2048.png`). `resolveEarthPreviewAssetUrl()` in `frontend/src/admin/lib/earthBuiltinAssets.ts` resolves those built-in paths only at preview render time in `EarthBrandPreview` and `EarthCloudMapSettings`, leaving persisted `/earth/assets/...` config values, form inputs, and user-uploaded `/earth-brand-assets/...` URLs untouched.
@@ -68,8 +68,7 @@ class LocationResolver(Protocol):
| `BuildsUponComputeCenterResolver` | `services/compute_center_locations.py` | Epoch `builds_upon` parent-cluster campus inheritance from verified coordinates |
| `lookup_wikidata_facility` | `resolvers/wikidata.py` | Async L1 Wikidata P625/P276 facility coordinate lookup |
| `lookup_peeringdb_facility` | `resolvers/peeringdb_facility.py` | Async L1 PeeringDB `/api/fac` commercial colocation street/lat-lon lookup |
| `run_controlled_location_agent` | `location/agent_resolver.py` | Controlled L2–L4 4-step Tool-Calling agent (`fetch_source_url`, `web_search`, `geocode_verify`, `submit_location_result`) with terminal status persistence |
| `LocationLLMFallback` | `location/llm_fallback.py` | Structured fact-check fallback for non-tool-calling models with lat/lon range, country verification, and city downgrade guardrails |
| `run_location_workflow` | `location/workflow_tools.py` | Unified 9-node `location.resolve_unknown` DAG workflow via `dag_executor.py` (context normalization, cross-source/knowledge lookup, web research, cascade `geocode_verify`, L3 `evaluate_location_geo_guardrail`, and L4 terminal persistence; replaces retired `agent_resolver.py` and `llm_fallback.py`) |
Nominatim is the geocoding service in the OpenStreetMap ecosystem. Given a place name, city, country, organization, or facility query, it returns possible coordinates, a display name, and structured address fields. It is useful for turning city/facility text into candidate coordinates, but it is not an authoritative fact registry and can match same-name places or broad administrative areas. Planet therefore treats Nominatim output as confirmation-required candidates and uses it with caching and rate limiting.
@@ -92,7 +91,7 @@ StoredComputeCenterLocationResolver()
The main map startup path is source coordinates first, then the database-backed current-location table. The table is `compute_center_locations`, keyed by `(source, source_id)`, and stores manually accepted locations or true coordinates migrated from source records. `init_db()` only migrates source records that already contain real coordinates; it does not import old hard-coded hints and does not run ROR, Nominatim, or LLM geocoding during startup.
Candidate collection is intentionally separate from rendering. `collect_location_candidates()` builds ROR and Nominatim/OpenStreetMap queries from source fields, but it does not emit the current `compute_center_locations` row as a candidate. If those regular candidates are empty, the API layer calls `LocationLLMFallback` through the current default AI Provider and only returns `source="llm_location_factcheck"` candidates with `needs_confirmation=true`. LLM candidates use a combined threshold made from the model self-score plus backend evidence scoring; when the LLM provides a credible city/country but no coordinates, the backend may fill city-level coordinates through Nominatim without increasing the evidence score. After a user accepts a candidate, the save endpoint upserts it into the dimension table; the next map refresh renders it through `StoredComputeCenterLocationResolver`.
Candidate collection is intentionally separate from rendering. `collect_location_candidates()` builds ROR and Nominatim/OpenStreetMap queries from source fields, but it does not emit the current `compute_center_locations` row as a candidate. When regular candidates are insufficient or deeper verification is requested, the API invokes `run_location_workflow()` (the unified 9-node `location.resolve_unknown` DAG) to combine cross-source hints, Wikidata/PeeringDB lookup, source/web evidence gathering, cascade Nominatim verification, and `evaluate_location_geo_guardrail` checks, returning evidence-backed confirmation-required candidates or terminal statuses (`undisclosed` / `multi_site` / `anonymous`). After a user accepts a candidate, the save endpoint upserts it into the dimension table; the next map refresh renders it through `StoredComputeCenterLocationResolver`.
`resolve_compute_center_location()`, `resolve_compute_center_location_full()`, and `collect_location_candidates()` remain the domain API. `visualization.py` consumes that API and no longer owns coordinate hints, country-centroid fallbacks, or Nominatim details.
+5 -5
View File
@@ -433,15 +433,15 @@ Docs supports: category navigation, Markdown rendering, tables and code blocks,
## Compute intelligence
Administrators maintain the multi-metric compute ledger in **Earth content → Compute comparison**, organized into six workspaces: **Observations**, **AI structure**, **Innovation gap**, **Milestones & 8 Hubs**, **Sources**, and **Candidate queue**. In addition to manual entry, administrators can extract candidate figures from report excerpts in the Candidate queue, review them manually, and import approved items into the draft; unreviewed candidates never go live. Global shares use the world denominator, absolute scale uses FP32 EFlop/s, and the China-US Relative Parity Index (`RPI = CN / US × 100`) plus bilateral shares are derived deterministically on the server.
Administrators maintain the multi-metric compute ledger in **Earth content → Compute comparison**, organized into seven workspaces: **Observations**, **AI structure**, **Innovation gap**, **Milestones & 8 Hubs**, **Sources**, **Candidate queue**, and **Revision history**. When extracting candidate figures from report excerpts, the queue compares each candidate against the live ledger to display old/new/delta values, change badges (Historical revision, New observation, Period conflict, or Duplicate), and denominator basis; approving or rejecting requires a matching reason category and rationale. Importing into a draft updates only revised countries while preserving original per-country sources for unchanged peers, and any share row mixing multiple sources requires a publish note documenting same-denominator comparability. Global shares use the world denominator, absolute scale uses FP32 EFlop/s, and the China-US Relative Parity Index (`RPI = CN / US × 100`) plus bilateral shares are derived deterministically on the server.
Innovation gap observations track the ISTIC Global AI Innovation Index score gap (US minus China, narrowing `22.02 → 19.96 → 17.95` across 2023–2025) alongside compute share divergence. Sources referenced by observations, structure rows, milestones, or national hubs cannot be deleted until dereferenced. Duplicate metric/year entries, structure shares not totaling 100%, or global shares exceeding 100% are rejected. Concurrent saves return `409 Conflict` while preserving the local draft; restoring bundled defaults requires confirmation and is audited.
Innovation gap observations track the ISTIC Global AI Innovation Index score gap (US minus China, narrowing `22.02 → 19.96 → 17.95` across 2023–2025) alongside compute share divergence. Sources referenced by observations, structure rows, milestones, or national hubs cannot be deleted until dereferenced. Duplicate metric/year entries, structure shares not totaling 100%, or global shares exceeding 100% are rejected. Concurrent saves return `409 Conflict` while preserving the local draft; restoring bundled defaults creates a fresh audited revision visible in **Revision history**.
Open the analysis panel beside Compute Centers to choose among five strategic lenses (CN-US Relative Parity RPI, Global total share, Global AI compute share, Frontier cluster power share, and Absolute FP32 scale) or launch the **4-Act Compute Posture Tour** and **5-Act BGP Route Incident Playback**. When region cards are enabled on desktop, China and the United States occupy symmetric left and right spotlight corridors. When an anchor rotates behind the globe, card typography stays 100% opaque while the connector switches to a dashed rim guide and the header exposes a **Rotate to front view** icon button instead of raw "Far side" text.
Open the analysis panel beside Compute Centers to choose among five strategic lenses (CN-US Relative Parity RPI, Global total share, Global AI compute share, Frontier cluster power share, and Absolute FP32 scale), switch the **Published revision**, or launch the **4-Act Compute Posture Tour** and **5-Act BGP Route Incident Playback**. Selecting a historical revision displays a top banner with a **Return to current** button while synchronizing both cards and Copilot to that revision's figures and conclusions. Clicking the provenance button beside any hero metric opens the **Lineage Drawer** showing source excerpts, page/locator, SHA-256 digest, observation/report/ingestion/publish timestamps, and revision history (public views redact reviewer names and raw internal notes, while signed-in administrators see full attribution). When region cards are enabled on desktop, China and the United States occupy symmetric left and right spotlight corridors. When an anchor rotates behind the globe, card typography stays 100% opaque while the connector switches to a dashed rim guide and the header exposes a **Rotate to front view** icon button instead of raw "Far side" text.
Each strategic compute card presents five narrative layers: hero metric with global denominator dilution attribution, the CN-US RPI duel bar, 5-mode pills plus domestic AI compute structure bar (e.g., China `81%` AI vs Global `85%`), side-by-side Divergence Corridor and Innovation Gap Convergence SVG charts with milestone flags, a sanitized posture brief (zero chain-of-thought leakage), and action controls. Clicking **8 National Hubs** overlays China's eight East-Data-West-Compute hubs, western green-power pulse rings, and East-West synergy arcs on the 3D globe.
Open the **Posture Workbench** directly from the Layer panel header, the **BGP Incident Forensics** button on the BGP layer row, or **Forensic Investigation** inside any BGP anomaly card. The workbench maintains multi-turn context across natural-language follow-ups, switches instantaneously among **Workbench**, **Chart**, **Table**, **Trend**, **Attribution**, and **One-Pager** presets, and enforces **Retrospective**, **As Known Then**, or **Live** knowledge boundaries. Pinning a result opens a side-by-side comparison slot on wide screens or docks into top Pinned Tabs on compact/mobile viewports; **Subscribe Watch** monitors future posture deltas, and **Export** downloads a Markdown brief locked to the exact frozen revision. Dragging or zooming the globe during a stage tour halts camera flight immediately, and new background posture updates wait in a queued badge while you explore manually.
Open the **Posture Workbench** directly from the Layer panel header, the **BGP Incident Forensics** button on the BGP layer row, or **Forensic Investigation** inside any BGP anomaly card. Launching Copilot from a compute card binds the session to the card's active published revision, metric mode, and focus year; if you later switch mode or revision on the card, Copilot surfaces a mismatch banner in both the narrative and chart areas with a **Re-evaluate for current view** action. The workbench maintains multi-turn context across natural-language follow-ups (including asking why a figure changed to inspect revision rationale under the same revision), switches instantaneously among **Workbench**, **Chart**, **Table**, **Trend**, **Attribution**, and **One-Pager** presets, and enforces **Retrospective**, **As Known Then**, or **Live** knowledge boundaries. Pinning a result opens a side-by-side comparison slot on wide screens or docks into top Pinned Tabs on compact/mobile viewports; **Subscribe Watch** monitors future posture deltas, and **Export** downloads a Markdown brief locked to the exact frozen revision. Dragging or zooming the globe during a stage tour halts camera flight immediately, and new compute revision notices or posture updates wait in a queued badge while you explore manually—auto-playing when idle with an explicit note that historical restatements do not represent current-period capacity jumps.
The bundled authoritative ledger covers verified 2020–2024 and 2025-H1 observations (e.g., 2024 global compute share US `44%` vs CN `23%` on a `~2210 EFlop/s` global denominator; AI compute share US `48%` vs CN `25%`). Selecting an unreleased year such as `2026` explicitly displays pending-release status alongside the latest verified period without fabricating backfilled numbers. National report metrics remain strictly separate from public facility counts.
@@ -460,7 +460,7 @@ Selecting a satellite shows an open predicted arc with highlights moving in the
Retriggering a datasource creates a new task while older failures remain in the failed group. Task Status uses a checklist icon, distinct from Refresh. CelesTrak can reuse valid recent download cache; each new collection attempt still gets its own task and updates collected data.
Display → Satellites → Close-up labels defaults on; turning it off hides satellite map names while retaining detail cards. The zoom-threshold slider below the switch ranges from 250% to 500% (default 400%); labels appear at or above the selected zoom and hide below it. The count slider sets a saved limit of 5–36 labels (default 36); occlusion or limited space may result in fewer visible labels. Sky brightness ranges from 0–200%, defaulting to 100%. Both choices persist. Expanded regional cards follow smoothly within assigned vertical space without decorative floating. Hover and a short interval after leaving pause automatic region-focus changes. Capsules temporarily expose complete content and actions while existing cards continue following geographic anchors. Compute legend category counts describe currently located markers.
Display → Satellites → Close-up labels defaults on; turning it off hides satellite map names while retaining detail cards. The zoom-threshold slider below the switch ranges from 250% to 500% (default 400%); labels appear at or above the selected zoom and hide below it. The count slider sets a saved limit of 5–36 labels (default 36); occlusion or limited space may result in fewer visible labels. Display → City Labels also defaults on: as you zoom into the globe, country capitals, major cities, and provincial/state seats fade in progressively in the current interface language while avoiding HUD panels and facility markers. Sky brightness ranges from 0–200%, defaulting to 100%. Both choices persist. Expanded regional cards follow smoothly within assigned vertical space without decorative floating. Hover and a short interval after leaving pause automatic region-focus changes. Capsules temporarily expose complete content and actions while existing cards continue following geographic anchors. Compute legend category counts describe currently located markers.
Surface aggregates appear as solid numbered circles. Click to expand members; only co-located or extremely close geographic markers form compact stacks at their location, with exposed clickable edges. Ordinary markers stay at their real projected positions. Selecting a rear icon brings it forward and opens its details; clearing focus restores its original position. Ordinary groups split above 250%; no aggregate badge remains at 500%, and co-located markers expand directly.
+3 -3
View File
@@ -469,9 +469,9 @@ uv run pytest backend/tests/test_otp_service.py
1. In the console, open `Operations and Configuration -> Earth Content -> Boundary Precision` to save boundary source configuration. The local config is written to `config/earth-boundary-sources.local.json`; do not commit it.
2. Click "Build high precision boundaries", or switch the Earth toolbar settings gear to High Precision for the first build. The backend downloads the three source packages to `data/earth-boundary-sources/`, writes the source manifest, and invokes the PMTiles build script.
3. The builder requires `tippecanoe` and `pmtiles` on PATH. Missing tools return a clear API error and do not write data-source collection records.
4. A successful production build outputs `frontend/public/earth/data/boundaries/earth-boundaries-china-pov-v1.pmtiles` and its manifest.
5. After deployment, open Earth, enable "Border Lines", and inspect China's southeast coast, Taiwan, Hainan, the South China Sea, Zangnan, Kosovo, and Gaza for hover behavior and boundary policy.
6. If no high-precision manifest/PMTiles exists locally, Earth uses the bundled `frontend/public/earth/data/countries-admin0.min.geojson` fallback. If high-precision assets exist but tile requests fail, troubleshoot PMTiles range requests, manifest provider, Nginx `.pmtiles` static serving, and sha256 consistency.
4. A successful build writes versioned artifacts into the backend boundary data volume (`backend/data/earth-boundaries/` by default) and serves `earth-boundaries.<assetVersion>.pmtiles`, `hover-index.<assetVersion>.json`, `hover-borders.<assetVersion>.json`, and `geo-labels.<assetVersion>.json` via `/api/v1/earth/boundaries/manifest` and `/api/v1/earth/boundaries/files/{name}` (`GET`/`HEAD`, HTTP `Range`, immutable caching).
5. After deployment, open Earth, enable "Border Lines", and inspect China's southeast coast, Taiwan, Hainan, the South China Sea, Zangnan, Kosovo, and Gaza for hover behavior, boundary policy, and tiered city labels.
6. If no high-precision manifest/PMTiles exists locally, Earth uses the bundled `frontend/public/earth/data/countries-admin0.china-pov-v1.geojson` fallback. If high-precision assets exist but tile requests fail, troubleshoot `/api/v1/earth/boundaries/files/{name}` `Range` requests, manifest provider, reverse-proxy forwarding, and `sha256` consistency.
## Publish locally and deploy production releases automatically
+11
View File
@@ -85,6 +85,17 @@ Compute centers represent supercomputers, AI GPU sites, model-platform facilitie
- **Delete semantics**: deleting TOP500 or similar sources refreshes `computeCenters`; changing the location table also refreshes the layer. The default is `reload`, because location updates do not always need an immediate clear.
- **Common failure**: collection finished but Earth count did not change. Check visualization cache, location rows, and adapter coverage.
### Compute Ledger Revisions, Dual Timelines, and Read-Time Lineage
Curated national/regional compute observations operate independently from facility samples on top of the immutable `compute_configuration_revisions` ledger (`system_settings` category `compute_comparison` acts only as a synchronized current-revision cache; resets insert a new UUID revision without deleting rows):
- **Dual-timeline semantics**:
- `cutoff_at` (`time_basis=as_known_then`) filters observations by report publication date; per-country `value_sources` drop only the post-cutoff country while retaining earlier-reported peers in the same year.
- `as_of` / `publish_id` replay the system publish timeline across `GET /data-products/compute/series`, `GET /situational-awareness/posture/compute`, and Copilot sessions/turns; timestamps earlier than the initial baseline return `snapshot_unavailable: true` instead of falling back to live configuration.
- **Candidate extraction, deduplication, and gated review**: `POST /situational-awareness/candidates/extract` deduplicates by `dedupe_fingerprint`, inserts immutable `EvidenceRecord` entries (`content_sha256`, `locator`, `excerpt`) without overwriting existing rows, and computes per-country `comparison` metadata (`historical_revision`, `period_conflict`, denominator); `POST /candidates/{id}/review` enforces decision-matched `reason_code` and rationale text, returning 409 once `published_publish_id` is recorded.
- **Revision-driven presentations and retry**: `PUT /data-products/compute/configuration` and `POST /configuration/reset` invoke `process_compute_revision_presentation` directly from the committed revision's `diff_summary` (decoupled from BGP's `classify_snapshot_delta`), emitting `compute-revision-notice` contracts for any non-zero observation delta (including small historical restatements and B→A resets) with monotonic `revision = revision_row.id` and `publish_id` deduplication; delivery errors mark `presentation_status=failed` for startup, 5-minute scheduled, and `POST /proactive/evaluate` retries.
- **Read-time lineage derivation and redaction**: `GET /data-products/compute/lineage` derives provenance at read time (no mirror/relation table) by walking up to 50 prior `compute_configuration_revisions` rows and joining `compute_evidence_candidates` and `evidence_records` for current value, source details/SHA-256, object-level timestamps (observation period, report publication date, candidate ingestion time, effective publish time), and revision history. Public and non-admin callers on `/lineage` and `/revisions/public` receive redacted responses (reviewer/publisher names replaced with `"已人工复核"`, raw `review_reason`/`publish_note` omitted, only localized reason categories retained).
## BGP
BGP data shows route collectors, anomalies, incidents, diffusion rings, and situation summaries. Earth does not render raw BGP rows directly; it renders projected observations, anomalies, and incidents. This is the most common path where deleting raw data can leave old objects visible.