# Global Oil and Gas Globe — Data Contract

Updated: 2026-10-30  
Status: implemented for the initial working globe; current acceptance contract

## Rendering rule

The globe is a projection of governed data files. It never becomes the
owner of a route, state, volume or claim. Generated HTML must not contain unique
research facts that are absent from the source ledger.

The initial implementation is now generated at
`outputs/Global Oil and Gas Globe.html`. The rule continues to apply to every
refresh and extension.

## Required object families

### Node

Fields, gathering points, pipelines, terminals, ports, storage, refineries,
chokepoints, STS zones, import hubs and government storage sites.

Required fields:

```text
node_uid
node_type
name
country_or_waters
latitude
longitude
coordinate_precision
operator_or_authority
valid_from
valid_to
source_url
```

Coordinates describe the named node at the stated precision. A port centroid
is not a berth, a field label is not a well, and an STS zone is not an event.

### Structural edge

A persistent pipeline, sea corridor, overland route or ordinary trading lane.
It may exist without a current movement.

### Movement event

A dated cargo, loading, discharge, pipeline flow or modeled aggregate. Required
fields include commodity, direction, quantity/unit if available, state,
evidence class, source period and source URL.

### Deal target

A future offtake, capacity or destination described by an agreement or plan.
It is always dashed and never contributes to observed-flow totals.

### Permission/risk overlay

Sanctions, licenses, maritime advisories, port restrictions, insurance/class
state or customs authority. It modifies what may happen; it is not a movement.

## Time model

The interface must show three independent dates when present:

- `event_or_effective_date` — when the movement or legal state applies;
- `observation_period` — when the underlying data were measured;
- `source_published_at` — when the source appeared.

The current map date filters event/effective state. It does not rewrite an
older observation as current merely because the source was published later.

## Visual grammar

- solid line: established structural route;
- moving pulse: observed or officially reported movement;
- translucent band: modeled aggregate with uncertainty;
- dashed line: announced/deal target or forecast;
- dotted line: allegation or unresolved inferred route;
- node ring: active permission, disruption or risk state;
- color: commodity family, never evidence strength;
- opacity/edge treatment: evidence class and confidence;
- tooltip: exact state, quantity/unit, clock, source and claim limit.

No animation should imply speed, volume or continuity unless those variables
are genuinely encoded.

## Filters

1. Theatre: Middle East, Russia, Venezuela/Americas, global balancers.
2. Commodity: crude, condensate, LPG/NGL, gasoline, diesel/gasoil, jet, fuel
   oil, petrochemical feedstock, pipeline gas, LNG, diluent.
3. Layer: structure, observed/reported movement, estimate, deal target,
   permission, maritime risk.
4. State and evidence class.
5. Date/observation period.

## Acceptance tests before build

- Every visible edge has a source-owned `edge_uid`.
- Deal targets cannot enter observed totals.
- Missing volume renders as unknown, never zero.
- Every quantity includes unit and period.
- One cargo may have multiple observations without being double-counted.
- AIS gaps and spoofing warnings remain visible for affected regions.
- Oil and LNG controls do not share units or silently aggregate.
- A user can reach the owning research source from every tooltip.
- The factual map contains no astrology data, controls or interpretations.

## October 30 ownership and history extension

The complete `oil_gas_route_records.json` master is the single factual owner. All 118 rescued mapped rows matched the found CSV, and the additional 35 CSV rows were recovered. `build_energy_globe.py` reads the master and writes `ROUTE_EDGE_STARTER.csv` as a compatibility projection. The validator compares every CSV field and build-input hash; it no longer accepts a stale build merely because its output hash matches an old receipt.

`source_published_at`, `evidence_checked_at`, `record_status`, `supersedes_edge_uid` and `superseded_by` live in the master when established. CSV readers retain the original 16-field contract. Superseded observations remain available through the history control. The known-by-date control uses publication dates where recorded; it is not a complete historical replay for older rows without publication dates.

Every master row appears in the text reference and selector. A table-only aggregate is selectable without assigning false map geometry. The complete reference, national totals, PADD components and LNG regional/point-of-exit totals must never be summed as distinct cargoes. Empty or unreported source cells remain missing, not zero.
