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

@@ -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.