# Maps, GIS and field navigation — GlobalGrid2050 Explore Code (text shard) Attribution: Ventus Ltd — GlobalGrid2050. Cut 2026-12-06T03:07:51+00:00. Generated deterministically from the public Ventusltd repositories by tools/explore/build.py (rules explore-agent-rules-v1); every statement is evidence-keyed and links to the exact commit and lines. Fields per file: Source (GitHub commit URL with line range), Page (Explore Code section), Synopsis, What it achieves (provenance), the four-part block, Signatures, VEDIC, domain_stage, commercial_user, canonical_status, data_contracts, Edges. Rules: https://code.globalgrid2050.com/explore-code/llms.txt (Agent Navigation Protocol) and GRAPH-CONTRACT.md. Topic page: https://code.globalgrid2050.com/explore-code/topics/maps-gis.html. Maps, geodesy, LiDAR, terrain and SatNav field journeys. 793 files. ### Claude Clean Clone Byte Survey - File: claude/scripts/clean_clone_byte_survey.py (Python, 330 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/claude/blob/df9da02425fdf0c65d11a84f32cd9b3ef927b309/scripts/clean_clone_byte_survey.py#L1-L330 - Page: https://code.globalgrid2050.com/explore-code/s/0466.html#f1 - Synopsis: A Python command-line tool in the scripts folder that works with sha256 published (`sha256_published`) and eol census (`eol_census`), using SHA-256. - What it achieves (comment): It is built from the git step (`git`), the attributes step (`attributes`) and the renormalise step (`renormalise`). What the bytes are, measured where the bytes are true. It accepts `--root`, `--repos` and `--out`. - What it does: It loads data. Defines 9 functions or classes, including git, sha256_published, eol_census, attributes, renormalise. Uses libraries argparse, hashlib, json, os, re. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage agent_infra (repository name word 'claude'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: JSON file current.json; JSON file byte-survey.json; command-line arguments. Out: JSON file. - Downstream impact: Used directly by 1 file: Claude Clean Clone Byte Survey Workflow (claude). - Signatures: `git(repo, *args, timeout=180)`; `sha256_published(path)`; `eol_census(repo)`; `attributes(repo)`; `renormalise(repo)`; `cartridges(repo)`; `survey_repo(root, name)`; `board(res)`; `main()` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file byte-survey.json; command-line arguments]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Routefactor - File: claude/sessions/202609021835-estate-and-corridor/scripts/routefactor.py (Python, 102 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/claude/blob/df9da02425fdf0c65d11a84f32cd9b3ef927b309/sessions/202609021835-estate-and-corridor/scripts/routefactor.py#L1-L102 - Page: https://code.globalgrid2050.com/explore-code/s/0466.html#f2 - Synopsis: A Python module in the scripts folder of Claude that reads GB transmission network and connection points. - What it achieves (comment): Measure the GB transmission route factor from published data. It writes `routefactor.json`. - What it does: It loads GB transmission network and connection points. Defines sh, gc, q. Uses libraries json, subprocess, math, statistics, collections. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage agent_infra (repository name word 'claude'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: JSON file gb-transmission-network.v1.json; JSON file connection-points.v3.json. Out: JSON file routefactor.json. - Signatures: `sh(*a)`; `gc(a, b)`; `q(p)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file gb-transmission-network.v1.json; JSON file connection-points.v3.json]; out [JSON file routefactor.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Router - File: claude/sessions/202609021835-estate-and-corridor/scripts/router.py (Python, 170 lines) · role ingest · stage ingest - Source: https://github.com/Ventusltd/claude/blob/df9da02425fdf0c65d11a84f32cd9b3ef927b309/sessions/202609021835-estate-and-corridor/scripts/router.py#L1-L170 - Page: https://code.globalgrid2050.com/explore-code/s/0466.html#f3 - Synopsis: A Python module in the scripts folder of Claude that reads meta, using haversine. - What it achieves (comment): It builds snap index (`build_snap_index`) and is built from the graph class (`Graph`) and the snap step (`snap`). Graph loading, spatial snapping and A* routing over the OSM road graph. - What it does: It loads meta. Defines 10 functions or classes, including _load, Graph, __init__, build_snap_index, snap. Uses libraries array, os, math, json, heapq. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage agent_infra (repository name word 'claude'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: JSON file .meta.json. - Downstream impact: Used directly by 5 files: Crossings (claude); Edge Rail (claude); Run Study (claude); Sanity (claude); and 1 more. - Signatures: `_load(pre, name, typecode)`; `class Graph`; `__init__(self, pre="roads")`; `build_snap_index(self, cell=0.02, giant_only=True)`; `snap(self, la, lo, max_rings=60)`; `astar(self, src, dst, extra_cost=None)`; `edge_between(self, u, v)`; `path_legs(self, path)`; `edge_geometry(self, eid)`; `path_geometry(self, path)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file .meta.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 5; mentioned by 0 ### Context - File: code-generator/apps/geodesy/context.mjs (JavaScript, 3 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/geodesy/context.mjs#L1-L3 - Page: https://code.globalgrid2050.com/explore-code/s/0466.html#f4 - Synopsis: A JavaScript module in the geodesy folder of Code Generator. - What it achieves (comment): Values the parts of Geodesy helpers need from their surroundings. - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Downstream impact: Used directly by 1 file: Geodesy (code-generator). - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Geodesy - File: code-generator/apps/geodesy/geodesy.mjs (JavaScript, 25 lines) · role geodesy · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/geodesy/geodesy.mjs#L1-L25 - Page: https://code.globalgrid2050.com/explore-code/s/0466.html#f5 - Synopsis: A JavaScript module in Code Generator that works with distance km (`distanceKm`) and initial bearing deg (`initialBearingDeg`) and calculates great-circle distances. - What it achieves (comment): It is built from the distance km helper (`distanceKm`) and the initial bearing deg helper (`initialBearingDeg`). Geodesy helpers — generated .649Z by Ventusltd/code-generator from the modular star. - What it does: It calculates its inputs. Defines distanceKm, initialBearingDeg. - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Signatures: `export distanceKm(lon1, lat1, lon2, lat2)`; `export initialBearingDeg(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `dLon(lon2 - lon1)`; `dl(lon2 - lon1)` - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: BEARING (GG2050-VEDIC-000005): GridAtlas / Geodesy · Mathematics / Trigonometry. coordinate_pair, coordinate_pair -> bearing_deg - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Position Overlay - File: compass/upstream/tools/satnav/line/position-overlay.mjs (JavaScript, 32 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/compass/blob/e200c888acbcc7af59d7cc38b29806e90b0a50db/upstream/tools/satnav/line/position-overlay.mjs#L1-L32 - Page: https://code.globalgrid2050.com/explore-code/s/0466.html#f6 - Synopsis: A JavaScript module in the line folder of Compass. - What it achieves (name): Defines `point` and `createPositionOverlay`. - What it does: It calculates its inputs. Defines point, createPositionOverlay. - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 1 file: Compass (compass). Reached from 2 other entry points, including Verify Workflow (compass); Compass Test (compass). - Signatures: `export point(role, coordinates)`; `export createPositionOverlay(coordinates, maths)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 1 ### Route Follower - File: compass/upstream/tools/satnav/line/route-follower.mjs (JavaScript, 21 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/compass/blob/e200c888acbcc7af59d7cc38b29806e90b0a50db/upstream/tools/satnav/line/route-follower.mjs#L1-L21 - Page: https://code.globalgrid2050.com/explore-code/s/0466.html#f7 - Synopsis: A JavaScript module in the line folder of Compass. It is built from the valid step (`valid`). - What it achieves (comment): Tracking only, not routing or authorisation. - What it does: It calculates its inputs. Defines createRouteFollower, valid. - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 12 files: Position Overlay (compass); Ordered Convergence 2km (gridatlas); Ordered Convergence Unlimited (gridatlas); Ordered (gridatlas); and 8 more. Reached from 8 other entry points, including Verify Workflow (compass); GridAtlas PR File Size Guard Workflow (gridatlas); Compass Test (compass). - Signatures: `export createRouteFollower(geometry,maths)`; `valid(p)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 12; mentioned by 1 ### Heading - File: compass/upstream/tools/satnav/orientation/heading.mjs (JavaScript, 57 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/compass/blob/e200c888acbcc7af59d7cc38b29806e90b0a50db/upstream/tools/satnav/orientation/heading.mjs#L1-L57 - Page: https://code.globalgrid2050.com/explore-code/s/0467.html#f1 - Synopsis: A JavaScript module in the orientation folder of Compass that formats degrees (`formatDegrees`) and calculates planar distances and angles. - What it achieves (name): It formats degrees (`formatDegrees`) and is built from the device heading helper (`deviceHeading`) and the compact target bearing helper (`compactTargetBearing`). Defines `normalise`, `formatDegrees`, `deviceHeading` and 1 more. - What it does: It calculates its inputs. Defines normalise, formatDegrees, deviceHeading, compactTargetBearing. - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 4 files: Heading Test (compass); Orient17a V9211 Heading (gridatlas); Orient17a V9212 Heading (gridatlas); Compass (compass). Reached from 2 other entry points, including Verify Workflow (compass); Compass Test (compass). - Signatures: `export formatDegrees(degrees)`; `export deviceHeading(event, screenAngle = 0)`; `export compactTargetBearing(features)`; `normalise(degrees)`; `beta(Number.isFinite(event.beta) ? event.beta : 0)`; `gamma(Number.isFinite(event.gamma) ? event.gamma : 0)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Heading Test - File: compass/upstream/tools/satnav/orientation/heading.test.mjs (JavaScript, 46 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/compass/blob/e200c888acbcc7af59d7cc38b29806e90b0a50db/upstream/tools/satnav/orientation/heading.test.mjs#L1-L46 - Page: https://code.globalgrid2050.com/explore-code/s/0467.html#f2 - Synopsis: A test in the orientation folder of Compass that checks Heading. - What it achieves (name): Defines `point` and `radius`. - What it does: It tests its inputs. Defines point, radius. Uses libraries node:assert/strict, node:test. - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 1 file: Verify Workflow (compass). - Signatures: `point(role, coordinates)`; `radius(metres)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Map - File: cosmic/tools/explore/periodic/map.py (Python, 651 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/cosmic/blob/51bebf892d63a617408bc5e25b270b9f893e9c03/tools/explore/periodic/map.py#L1-L651 - Page: https://code.globalgrid2050.com/explore-code/s/0467.html#f3 - Synopsis: A Python command-line tool in the periodic folder of Cosmic that reads build graph, identity, periodic and table, using SHA-256. It loads identity (`load_identity`) and adds numbered (`add_numbered`). - What it achieves (comment): Periodic table of the code estate: the MAPPER. - What it does: It loads build graph, identity, periodic and table. Defines 15 functions or classes, including zs, sha256, git_head, load, top. Uses libraries argparse, collections, hashlib, json, os. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: In: JSON file build_graph.json; JSON file identity.json; JSON file periodic.json; JSON file table.json; JSON file elements.json; JSON file functions.json; JSON file blocks.json; command-line arguments. Out: JSON file. - Downstream impact: Used directly by 2 files: Test Map (cosmic); Extras (cosmic). Reached from 3 other entry points, including Ship (cosmic); Test Extras (cosmic); Test Ship (cosmic). - Signatures: `zs(syms)`; `sha256(path)`; `git_head(repo)`; `load(path)`; `top(counter, order=None)`; `quantile_assign(items, pool)`; `propose_symbol(word, taken)`; `fam_sort(k)`; `evidence_key(idf)`; `load_identity(path, graph)`; `build(args)`; `add_numbered(key, number, sym, **kw)`; `assign_analogues(elements, roles)`; `give(rule, chosen, metric_name, metric)`; `main(argv=None)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file build_graph.json; JSON file identity.json; JSON file periodic.json; JSON file table.json; JSON file elements.json; JSON file functions.json; JSON file blocks.json; command-line arguments]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Test Map - File: cosmic/tools/explore/periodic/test_map.py (Python, 138 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/cosmic/blob/51bebf892d63a617408bc5e25b270b9f893e9c03/tools/explore/periodic/test_map.py#L1-L138 - Page: https://code.globalgrid2050.com/explore-code/s/0468.html#f2 - Synopsis: A test in the periodic folder of Cosmic that checks Map. It sets up class (`setUpClass`) and is built from the units class (`Units`) and the live class (`Live`). - What it achieves (comment): Tests for `map.py` (MAPPER). Builds the table twice from the live inputs (about 20 s). - What it does: It tests its inputs. Defines 14 functions or classes, including Units, test_quantile_spreads_over_pool, test_proposed_symbols_unique, test_family_sort, test_real_table. Uses libraries json, os, sys, tempfile, unittest. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: In: JSON file a.json; JSON file b.json; JSON file table.json; JSON file elements.json; JSON file blocks.json. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `class Units`; `test_quantile_spreads_over_pool(self)`; `test_proposed_symbols_unique(self)`; `test_family_sort(self)`; `test_real_table(self)`; `class Live`; `setUpClass(cls)`; `test_deterministic(self)`; `test_every_file_mapped(self)`; `test_every_family_mapped(self)`; `test_existing_numbers_unchanged(self)`; `test_candidates_never_numbered(self)`; `test_unsettled_keep_competing_values(self)`; `test_axes_and_analogue(self)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file a.json; JSON file b.json; JSON file table.json; JSON file elements.json; JSON file blocks.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Pilot LiDAR - File: cosmic/tools/explore/theme/pilot-lidar.js (JavaScript, 273 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/cosmic/blob/51bebf892d63a617408bc5e25b270b9f893e9c03/tools/explore/theme/pilot-lidar.js#L1-L273 - Page: https://code.globalgrid2050.com/explore-code/s/0468.html#f3 - Synopsis: A JavaScript file in the theme folder of Cosmic that tiles xy (`tileXY`) and metres (`tileMetres`), picks zoom (`pickZoom`) and draws on a canvas. - What it achieves (comment): It picks zoom (`pickZoom`), decodes blob (`decodeBlob`) and gets blob (`getBlob`). Pilot LiDAR reader (optional module; TRIGPOINT-62, LiDAR proof of concept for OS square TR06). - What it does: It draws LiDAR terrain. Defines 26 functions or classes, including tileXY, tileMetres, clamp, decode, pickZoom. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage site_feasibility (path word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file index.json. Out: canvas drawing. - Downstream impact: Used directly by 1 file: Pilot (cosmic, https://ventusltd.github.io/cosmic/tools/explore/theme/pilot.html). - Signatures: `tileXY(lat, lon, z)`; `tileMetres(lat, z)`; `clamp(v, a, b)`; `decode(px)`; `pickZoom(o)`; `bytes(o.avgBytes && o.avgBytes[z])`; `ringFor(lat, lon, hdg, z, has)`; `add(x, y)`; `sqFor(lat, lon)`; `sqHas(k)`; `urlFor(sq, k)`; `bps()`; `px(z, gx, gy)`; `sampleZ(lat, lon, z)`; `height(lat, lon)`; `blend(lat, lon, base)`; `decodeBlob(blob)`; `fromImg(img)`; `getBlob(url)`; `net()`; `dt(performance.now() - t0)`; `trimCache()`; `pump()`; `prune()`; `update()` (and 4 more) - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file index.json]; out [canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Pilot Geo - File: cosmic/tools/explore/theme/test_pilot_geo.py (Python, 103 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/cosmic/blob/51bebf892d63a617408bc5e25b270b9f893e9c03/tools/explore/theme/test_pilot_geo.py#L1-L103 - Page: https://code.globalgrid2050.com/explore-code/s/0468.html#f4 - Synopsis: A test in the theme folder of Cosmic that checks Pilot Estate, using SHA-256 and haversine. - What it achieves (comment): PILOT.estate / PILOT.geo (`theme/pilot-estate.js`): the shared geodesy and the engine's `voltagesKv` (W10 CAPSTAN-41). Its code works with 750 kV. - What it does: It tests its inputs. Defines 7 functions or classes, including _node, test_header_pins_sources_with_sha256, test_vendored_blocks_are_verbatim_and_file_is_current, test_upstream_suite_passes_against_our_copy, test_voltages_kv_engine_semantics. Uses libraries __future__, json, re, shutil, subprocess. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (voltage levels 750kV (all 132kV or above)): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 750kV. - Inputs & outputs: Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 750kV. - Downstream impact: Used directly by 1 file: CI Chess Workflow (cosmic). - Signatures: `_node(js: str)`; `test_header_pins_sources_with_sha256()`; `test_vendored_blocks_are_verbatim_and_file_is_current()`; `test_upstream_suite_passes_against_our_copy(tmp_path, suite)`; `test_voltages_kv_engine_semantics()`; `test_vicinity_uses_engine_voltages_for_osm_tags()`; `test_one_earth_radius_everywhere()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [750kV] - Edges: uses 1 estate file (script-call 1); used by 1; mentioned by 0 ### Test Pilot LiDAR - File: cosmic/tools/explore/theme/test_pilot_lidar.py (Python, 457 lines) · role test · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/cosmic/blob/51bebf892d63a617408bc5e25b270b9f893e9c03/tools/explore/theme/test_pilot_lidar.py#L1-L457 - Page: https://code.globalgrid2050.com/explore-code/s/0469.html#f1 - Synopsis: A test in the theme folder of Cosmic covering LiDAR terrain, using EPSG:27700 and OSTN15. - What it achieves (comment): It makes fixture (`make_fixture`) and is built from the served step (`served`) and the browser step (`browser`). Tests for the LiDAR proof of concept (TRIGPOINT-62): tools/LiDAR (fetch + tile builder), the workflow `.github/workflows/lidar-tr06.yml`, and the Pilot reader `theme/pilot-lidar.js`. - What it does: It tests LiDAR terrain. Defines 29 functions or classes, including _load, _report, test_os_square_to_easting_northing, test_os_square_rejects_bad_refs, test_sourcecoop_fallback_names_cover_the_four_5km_tiles. Uses libraries __future__, functools, http.server, importlib.util, io. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage site_feasibility (path word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: GeoTIFF file syn.tif; JSON file index.json; PMTiles file lidar-tr06.pmtiles. Out: JSON file index.json; JSON file play-index.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `_load(name, path)`; `_report(key, val)`; `test_os_square_to_easting_northing(ref, en)`; `test_os_square_rejects_bad_refs()`; `test_sourcecoop_fallback_names_cover_the_four_5km_tiles(monkeypatch)`; `test_terrarium_round_trip_and_nodata()`; `test_tile_grid_matches_web_mercator()`; `_gdal()`; `test_builder_end_to_end_on_synthetic_bng_dtm(tmp_path)`; `_wf()`; `test_workflow_dispatch_only_commits_nothing()`; `test_workflow_sources_are_free_and_named()`; `test_module_shape_and_credit()`; `_chromium()`; `_txy(lat, lon, z)`; `_plane(u, v, U0, V0)`; `make_fixture(root: Path)`; `ll(x, y, z)`; `served(tmp_path_factory)`; `browser()`; `_open(browser, url, throttle=None)`; `_wait_ring(pg, timeout=60.0, zoom=16)`; `_at(lat=SITE[0], lon=SITE[1], agl=150)`; `test_idle_by_default_and_offline(served, browser)`; `test_pick_zoom_and_ring_rules(served, browser)` (and 4 more) - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoTIFF file syn.tif; JSON file index.json; PMTiles file lidar-tr06.pmtiles]; out [JSON file index.json; JSON file play-index.json]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### LiDAR Build Tiles - File: cosmic/tools/lidar/build_tiles.py (Python, 275 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/cosmic/blob/51bebf892d63a617408bc5e25b270b9f893e9c03/tools/lidar/build_tiles.py#L1-L275 - Page: https://code.globalgrid2050.com/explore-code/s/0470.html#f1 - Synopsis: A Python command-line tool in the tools folder of Cosmic that reads probe and LiDAR terrain, using EPSG:27700 and EPSG:3857. It encodes image (`encode_image`) and writes PMTiles (`write_pmtiles`). - What it achieves (comment): EA 1 m DTM (EPSG:27700) -> Terrarium height tiles on the Web-Mercator `z/x/y` grid (TRIGPOINT-62, LiDAR PoC). It accepts `--src`, `--square` and `--bng`. - What it does: It loads probe and LiDAR terrain. Defines 14 functions or classes, including tile_res, lonlat_to_tile, tile_bounds_3857, tile_range, terrarium_encode. Uses libraries __future__, argparse, io, json, math. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (path word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: command-line arguments. Out: JSON file index.json; JSON file probe.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326, Web Mercator / EPSG:3857. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `tile_res(z: int)`; `lonlat_to_tile(lon: float, lat: float, z: int)`; `tile_bounds_3857(x: int, y: int, z: int)`; `tile_range(bbox_ll: tuple[float, float, float, float], z: int)`; `terrarium_encode(h: np.ndarray, vstep: float)`; `terrarium_decode(rgba: np.ndarray)`; `encode_image(rgba: np.ndarray, fmt: str)`; `_gdal()`; `square_bbox_ll(bng: tuple[int, int, int, int])`; `projection_used()`; `warp_zoom(src_paths: list[str], rng, z: int, resample: str)`; `stats(sizes: list[int])`; `write_pmtiles(path: Path, tiles: dict, zooms, bbox_ll, fmt: str, meta: dict)`; `main(argv=None)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [command-line arguments]; out [JSON file index.json; JSON file probe.json]; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326; Web Mercator / EPSG:3857]; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### LiDAR Fetch DTM - File: cosmic/tools/lidar/fetch_dtm.py (Python, 157 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/cosmic/blob/51bebf892d63a617408bc5e25b270b9f893e9c03/tools/lidar/fetch_dtm.py#L1-L157 - Page: https://code.globalgrid2050.com/explore-code/s/0470.html#f2 - Synopsis: A Python command-line tool in the tools folder of Cosmic that fetches ea LiDAR DTM 1m items, sources and LiDAR terrain, using EPSG:27700 and SHA-256 from Environment Agency. - What it achieves (comment): It fetches sourcecoop (`fetch_sourcecoop`) and fetches wcs (`fetch_wcs`). Download the Environment Agency 1 m LiDAR DTM for one OS 10 km square (TRIGPOINT-62, LiDAR PoC). It accepts `--square`, `--out` and `--source`. - What it does: It fetches ea LiDAR DTM 1m items, sources and LiDAR terrain. Defines 9 functions or classes, including os_ref_to_en, idx, _get, _download, _exists. Uses libraries __future__, argparse, hashlib, json, sys. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (path word 'dtm'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: data source: Environment Agency; JSON file ea-lidar-dtm-1m-items.json; command-line arguments. Out: JSON file sources.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: LiDAR Build Tiles (cosmic). - Signatures: `os_ref_to_en(ref: str)`; `idx(c)`; `_get(url: str, timeout: int = 120, method: str = 'GET')`; `_download(url: str, dst: Path, tries: int = 3)`; `_exists(url: str)`; `sourcecoop_hrefs(square: str)`; `fetch_sourcecoop(square: str, out: Path)`; `fetch_wcs(square: str, out: Path, pause: float = 40.0)`; `main(argv=None)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: Environment Agency; JSON file ea-lidar-dtm-1m-items.json; command-line arguments]; out [JSON file sources.json]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test OSM Data Centres - File: data-centres-gb/tests/test_202608281053_osm_data_centres.py (Python, 117 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/data-centres-gb/blob/12c24a653e9d4eb3507857fd6e6d169b2dd1ff63/tests/test_202608281053_osm_data_centres.py#L1-L117 - Page: https://code.globalgrid2050.com/explore-code/s/0470.html#f3 - Synopsis: A test in the tests folder of Data Centres GB. It sets up (`setUp`) and is built from the OSM data centres tests class (`OSMDataCentresTests`). - What it achieves (name): Defines `OSMDataCentresTests`, `setUp`, `test_doctor_and_query_rights_boundary` and 5 more. - What it does: It tests its inputs. Defines 8 functions or classes, including OSMDataCentresTests, setUp, test_doctor_and_query_rights_boundary, test_normalisation_preserves_source_identity_and_abstains, test_contributor_identity_is_not_in_published_schema_or_rows. Uses libraries __future__, copy, importlib.util, json, tempfile. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Downstream impact: Used directly by 1 file: CI Workflow (data-centres-gb). - Signatures: `class OSMDataCentresTests`; `setUp(self)`; `test_doctor_and_query_rights_boundary(self)`; `test_normalisation_preserves_source_identity_and_abstains(self)`; `test_contributor_identity_is_not_in_published_schema_or_rows(self)`; `test_build_verify_and_double_compile_are_deterministic(self)`; `test_rejects_empty_partial_wrong_endpoint_and_duplicate_payloads(self)`; `test_bbc_record_is_link_only_and_not_project_bound(self)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test OSM Overpass Retry - File: data-centres-gb/tests/test_202608281626_osm_overpass_retry.py (Python, 269 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/data-centres-gb/blob/12c24a653e9d4eb3507857fd6e6d169b2dd1ff63/tests/test_202608281626_osm_overpass_retry.py#L1-L269 - Page: https://code.globalgrid2050.com/explore-code/s/0471.html#f1 - Synopsis: A test in the tests folder of Data Centres GB. It sets up (`setUp`) and is built from the fake response class (`FakeResponse`) and the overpass retry tests class (`OverpassRetryTests`). - What it achieves (name): Defines `FakeResponse`, `json`, `raise_for_status` and 9 more. - What it does: It tests its inputs. Defines 13 functions or classes, including FakeResponse, __init__, json, raise_for_status, OverpassRetryTests. Uses libraries __future__, copy, importlib.util, json, subprocess. Side effects: reads or writes files; makes network requests; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: In: JSON file overpass-fetch.json; JSON file hostile.json; DuckDB queries. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `class FakeResponse`; `__init__(self, status: int, payload: object | None = None, raw: bytes | None = None)`; `json(self)`; `raise_for_status(self)`; `class OverpassRetryTests`; `setUp(self)`; `test_remarked_response_is_retried_then_valid_response_lands(self)`; `test_repeated_remarks_fail_closed_with_sanitised_receipt(self)`; `test_retryable_http_then_valid_response_lands(self)`; `test_network_exception_then_valid_response_lands(self)`; `test_private_and_unverified_party_strings_never_reach_outputs(self)`; `test_hostile_build_duckdb_and_geojson_readback_are_privacy_safe(self)`; `test_malformed_empty_and_missing_provenance_never_land(self)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file overpass-fetch.json; JSON file hostile.json; DuckDB queries]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Test OSM Overpass Indexed - File: data-centres-gb/tests/test_202608281702_osm_overpass_indexed.py (Python, 102 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/data-centres-gb/blob/12c24a653e9d4eb3507857fd6e6d169b2dd1ff63/tests/test_202608281702_osm_overpass_indexed.py#L1-L102 - Page: https://code.globalgrid2050.com/explore-code/s/0471.html#f2 - Synopsis: A test in the tests folder of Data Centres GB. It is built from the indexed overpass tests class (`IndexedOverpassTests`). - What it achieves (name): Defines `IndexedOverpassTests`, `test_doctor_and_exact_selector_closure` and `test_center_only_fixture_builds_and_verifies_through_successor`. - What it does: It tests its inputs. Defines IndexedOverpassTests, test_doctor_and_exact_selector_closure, test_center_only_fixture_builds_and_verifies_through_successor. Uses libraries __future__, importlib.util, json, subprocess, sys. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: In: JSON file center-only.json. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `class IndexedOverpassTests`; `test_doctor_and_exact_selector_closure(self)`; `test_center_only_fixture_builds_and_verifies_through_successor(self)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file center-only.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Federation Radial - File: data-federation-map-for-globalgrid2050-all-repos/dashboard/federation_radial.css (CSS, 94 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos/blob/fffd624e77d820ebc04ab25f9d97871b254be61c/dashboard/federation_radial.css#L1-L94 - Page: https://code.globalgrid2050.com/explore-code/s/0471.html#f3 - Synopsis: A style sheet in the dashboard folder of Data Federation Map for GlobalGrid2050 All Repos. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Downstream impact: Used directly by 4 files: Federation Radial (data-federation-map-for-globalgrid2050-all-repos, https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/federation_radial.html); Spider Full Po Test (data-federation-map-for-globalgrid2050-all-repos, https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/sandbox/spider_full_po_test.html); Spider Sandbox (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/spider-sandbox.html); Testcode — Grid Engine Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/grid-engine/). Reached from 284 other entry points, including Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/). - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Federation Radial - File: data-federation-map-for-globalgrid2050-all-repos/dashboard/federation_radial.html (HTML, 207 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos/blob/fffd624e77d820ebc04ab25f9d97871b254be61c/dashboard/federation_radial.html#L1-L207 - Page: https://code.globalgrid2050.com/explore-code/s/0471.html#f4 - Published at: https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/federation_radial.html - Synopsis: A web page in the dashboard folder of Data Federation Map for GlobalGrid2050 All Repos covering solar and uses data from Elexon Balancing Mechanism Reporting Service (BMRS). Published at https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/federation_radial.html. - What it achieves (comment): It applies root links (`applyRootLinks`), rebuilds select (`rebuildSelect`) and opens URL (`openUrl`). Ventus Global Grid 2050. It responds to change and click events. - What it does: It draws solar. Defines 13 functions or classes, including applyRootLinks, S, rebuildSelect, actionable, openUrl. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: solar. - Inputs & outputs: In: data source: Elexon BMRS; JSON file nodes.json; JSON file edges.json; DuckDB queries; form fields (user input). Out: web page; SVG drawing. - Downstream impact: Used directly by 1 file: Registry of All Content in Repos and Dependencies — Index Page (registry_of_all_content_in_repos_and_dependencies, https://ventusltd.github.io/registry_of_all_content_in_repos_and_dependencies/). Reached from 130 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html). It is itself an entry point, published at https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/federation_radial.html. - Signatures: `applyRootLinks(nodes)`; `S()`; `rebuildSelect()`; `actionable(n)`; `openUrl(u)`; `handleTap(i)`; `drillInto(childKey)`; `popTo(idx)`; `neighbours(idx)`; `cardInner(node,opts={})`; `setHint()`; `setCrumbs()`; `draw()`; `drawColumn(focus,out,inc)`; `marker(defs,type)`; `distribute(items,side,cx,cy,gap,xGap)`; `drawSpider(focus,out,inc)`; `enableDragPan(el)`; `reshapeNodes(fc)`; `loadJSON(path)`; `loadRoot()`; `loadContents()` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: Elexon BMRS; JSON file nodes.json; JSON file edges.json; DuckDB queries; form fields (user input)]; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 2 estate files (stylesheet 1, estate-url 1); used by 1; mentioned by 0 ### Federation Radial Uniform - File: data-federation-map-for-globalgrid2050-all-repos/dashboard/sandbox/federation_radial_uniform.html (HTML, 203 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos/blob/fffd624e77d820ebc04ab25f9d97871b254be61c/dashboard/sandbox/federation_radial_uniform.html#L1-L203 - Page: https://code.globalgrid2050.com/explore-code/s/0472.html#f1 - Published at: https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/sandbox/federation_radial_uniform.html - Synopsis: A web page in the sandbox folder of Data Federation Map for GlobalGrid2050 All Repos covering solar and uses data from Elexon Balancing Mechanism Reporting Service (BMRS). Published at https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/sandbox/federation_radial_uniform.html. - What it achieves (comment): It applies root links (`applyRootLinks`), rebuilds select (`rebuildSelect`) and opens URL (`openUrl`). Ventus Global Grid 2050. It responds to change and click events. - What it does: It draws solar. Defines 14 functions or classes, including applyRootLinks, S, rebuildSelect, actionable, openUrl. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: solar. - Inputs & outputs: In: data source: Elexon BMRS; JSON file nodes.json; JSON file edges.json; DuckDB queries; form fields (user input). Out: web page; SVG drawing. - Downstream impact: Used directly by 89 files: GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage Versions — GlobalGrid2050 Page (globalgrid2050, https://globalgrid2050.com/homepage_versions/202608291526-globalgrid2050/); Homepage V001 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v001.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html); and 85 more. Reached from 36 other entry points, including GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V091 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v091.html); Homepage V093 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v093.html). It is itself an entry point, published at https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/sandbox/federation_radial_uniform.html. - Signatures: `applyRootLinks(nodes)`; `S()`; `rebuildSelect()`; `actionable(n)`; `openUrl(u)`; `handleTap(i)`; `drillInto(childKey)`; `popTo(idx)`; `neighbours(idx)`; `cardInner(node,opts={})`; `goLabel(n)`; `setHint()`; `setCrumbs()`; `draw()`; `drawColumn(focus,out,inc)`; `marker(defs,type)`; `distribute(items,side,cx,cy,gap,xGap)`; `drawSpider(focus,out,inc)`; `enableDragPan(el)`; `reshapeNodes(fc)`; `loadJSON(path)`; `loadRoot()` - domain_stage: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of data-federation-map-for-globalgrid2050-all-repos/dashboard/sandbox/spider_full_po_test.html) · essay_status: readme_derived - data_contracts: in [data source: Elexon BMRS; JSON file nodes.json; JSON file edges.json; DuckDB queries; form fields (user input)]; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 89; mentioned by 0 ### Spider Full Po Test - File: data-federation-map-for-globalgrid2050-all-repos/dashboard/sandbox/spider_full_po_test.html (HTML, 208 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos/blob/fffd624e77d820ebc04ab25f9d97871b254be61c/dashboard/sandbox/spider_full_po_test.html#L1-L208 - Page: https://code.globalgrid2050.com/explore-code/s/0472.html#f2 - Published at: https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/sandbox/spider_full_po_test.html - Synopsis: A test that checks Federation Radial and Live Sandbox — Federation Control Ledger Page using data from Elexon Balancing Mechanism Reporting Service (BMRS). - What it achieves (comment): It applies root links (`applyRootLinks`), rebuilds select (`rebuildSelect`) and opens URL (`openUrl`). Ventus Global Grid 2050. - What it does: It tests solar. Defines 14 functions or classes, including applyRootLinks, S, rebuildSelect, actionable, openUrl. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: solar. - Inputs & outputs: In: data source: Elexon BMRS; JSON file nodes.json; JSON file edges.json; DuckDB queries; form fields (user input). Out: SVG drawing. - Downstream impact: Used directly by 109 files: Menu Bar (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/Si/); Substation Intelligence (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/Si/); Substation Intelligence V9 63 (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/Si/); Substation Intelligence (globalgrid2050); and 105 more. Reached from 187 other entry points, including Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/). It is itself an entry point, published at https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/sandbox/spider_full_po_test.html. - Signatures: `applyRootLinks(nodes)`; `S()`; `rebuildSelect()`; `actionable(n)`; `openUrl(u)`; `handleTap(i)`; `drillInto(childKey)`; `popTo(idx)`; `neighbours(idx)`; `cardInner(node,opts={})`; `goLabel(n)`; `setHint()`; `setCrumbs()`; `draw()`; `drawColumn(focus,out,inc)`; `marker(defs,type)`; `distribute(items,side,cx,cy,gap,xGap)`; `drawSpider(focus,out,inc)`; `enableDragPan(el)`; `reshapeNodes(fc)`; `loadJSON(path)`; `loadRoot()`; `loadContents()` - domain_stage: experimental · commercial_user: none · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: Elexon BMRS; JSON file nodes.json; JSON file edges.json; DuckDB queries; form fields (user input)]; out [SVG drawing]; crs []; voltages [] - Edges: uses 2 estate files (stylesheet 1, estate-url 1); used by 109; mentioned by 0 ### Federation - File: data-federation-map-for-globalgrid2050-all-repos/federation.yaml (YAML, 27 lines) · role docs-config · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos/blob/fffd624e77d820ebc04ab25f9d97871b254be61c/federation.yaml#L1-L27 - Page: https://code.globalgrid2050.com/explore-code/s/0472.html#f3 - Synopsis: A configuration file in Data Federation Map for GlobalGrid2050 All Repos. - What it achieves (comment): Authoritative backend metadata map for the GlobalGrid2050 repository federation. - What it does: It loads data. Side effects: uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Live Sandbox — Blank Canvas Page - File: data-federation-map-for-globalgrid2050-all-repos/live_sandbox/blank_canvas/index.html (HTML, 128 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos/blob/fffd624e77d820ebc04ab25f9d97871b254be61c/live_sandbox/blank_canvas/index.html#L1-L128 - Page: https://code.globalgrid2050.com/explore-code/s/0472.html#f4 - Published at: https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/blank_canvas/ - Synopsis: A web page covering the Renewable Energy Planning Database (REPD) register and uses data from Elexon Balancing Mechanism Reporting Service (BMRS). Published at https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/blank_canvas/. - What it achieves (comment): It is built from the escape HTML helper (`escapeHtml`), the detect step (`detect`) and the fallback step (`fallback`). Single Target Workspace. It responds to submit events. - What it does: It draws the REPD register. Defines 11 functions or classes, including escapeHtml, detect, fallback, link, tabsFor. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: the REPD register. - Inputs & outputs: In: data source: Elexon BMRS; browser storage (getItem); form fields (user input). Out: browser storage (setItem); web page. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/blank_canvas/. - Signatures: `escapeHtml(v)`; `detect(url)`; `fallback(url)`; `link(label,url)`; `tabsFor(target)`; `targetPanel(t)`; `oldPanel(t)`; `ownerPanel(t)`; `dataPanel(t)`; `newPanel(t)`; `portPanel(t)`; `render(url)`; `activate(id)`; `load(value)` - domain_stage: experimental · commercial_user: none · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: Elexon BMRS; browser storage (getItem); form fields (user input)]; out [browser storage (setItem); web page]; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### Live Sandbox — Federation Control Ledger - File: data-federation-map-for-globalgrid2050-all-repos/live_sandbox/federation_control_ledger/app.js (JavaScript, 189 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos/blob/fffd624e77d820ebc04ab25f9d97871b254be61c/live_sandbox/federation_control_ledger/app.js#L1-L189 - Page: https://code.globalgrid2050.com/explore-code/s/0473.html#f1 - Published at: https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/federation_control_ledger/ - Synopsis: A JavaScript file in Data Federation Map for GlobalGrid2050 All Repos that loads scope, shows edge popover, builds layer and calculates planar distances. Served with the page at https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/federation_control_ledger/. - What it achieves (name): It loads scope (`loadScope`), shows edge popover (`showEdgePopover`) and builds layer key (`buildLayerKey`). Defines `defaultScale`, `esc`, `repoUrl` and 26 more. It responds to click, wheel and touchstart events. - What it does: It draws its content. Defines 29 functions or classes, including defaultScale, esc, repoUrl, rootUrl, json. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Out: SVG drawing. - Downstream impact: Used directly by 1 file: Live Sandbox — Federation Control Ledger Page (data-federation-map-for-globalgrid2050-all-repos, https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/federation_control_ledger/). Reached from 290 other entry points, including Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); Federation Radial (data-federation-map-for-globalgrid2050-all-repos, https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/federation_radial.html); Federation Radial Uniform (data-federation-map-for-globalgrid2050-all-repos, https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/sandbox/federation_radial_uniform.html). It is itself an entry point, published at https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/federation_control_ledger/. - Signatures: `defaultScale()`; `esc(v)`; `repoUrl(id)`; `rootUrl(path, base=location.href)`; `json(path, base)`; `layerFor(n)`; `defaultVisible()`; `visibleNodes()`; `visibleEdgesRaw()`; `isWorkflowEdge(e)`; `edgeFilterMatch(e)`; `loadScope(manifestPath, push)`; `grouped()`; `cssVar(name, fallback)`; `geometry(groups)`; `render()`; `visibleEdges()`; `relatedIds(id)`; `edgeCoords(e)`; `connectors()`; `redrawOnly()`; `showEdgePopover(e,x,y)`; `card(n)`; `repoPreview(n)`; `buildLayerKey()` (and 5 more) - domain_stage: experimental · commercial_user: none · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in []; out [SVG drawing]; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 1; mentioned by 0 ### Focus Default - File: data-federation-map-for-globalgrid2050-all-repos/live_sandbox/federation_control_ledger/focus-default.js (JavaScript, 48 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos/blob/fffd624e77d820ebc04ab25f9d97871b254be61c/live_sandbox/federation_control_ledger/focus-default.js#L1-L48 - Page: https://code.globalgrid2050.com/explore-code/s/0473.html#f2 - Published at: https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/federation_control_ledger/ - Synopsis: A JavaScript file in the federation control ledger folder of Data Federation Map for GlobalGrid2050 All Repos that applies quiet default (`applyQuietDefault`). Served with the page at https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/federation_control_ledger/. - What it achieves (name): It applies quiet default (`applyQuietDefault`) and is built from the wait then apply helper (`waitThenApply`) and the watch layer nav helper (`watchLayerNav`). Defines `applyQuietDefault`, `waitThenApply` and `watchLayerNav`. It responds to load and click events. - What it does: Defines applyQuietDefault, waitThenApply, watchLayerNav. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 1 file: Live Sandbox — Federation Control Ledger Page (data-federation-map-for-globalgrid2050-all-repos, https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/federation_control_ledger/). Reached from 291 other entry points, including Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); Federation Radial (data-federation-map-for-globalgrid2050-all-repos, https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/federation_radial.html); Federation Radial Uniform (data-federation-map-for-globalgrid2050-all-repos, https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/sandbox/federation_radial_uniform.html). It is itself an entry point, published at https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/federation_control_ledger/. - Signatures: `applyQuietDefault()`; `waitThenApply()`; `watchLayerNav()` - domain_stage: experimental · commercial_user: none · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Live Sandbox — Federation Control Ledger Page - File: data-federation-map-for-globalgrid2050-all-repos/live_sandbox/federation_control_ledger/index.html (HTML, 49 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos/blob/fffd624e77d820ebc04ab25f9d97871b254be61c/live_sandbox/federation_control_ledger/index.html#L1-L49 - Page: https://code.globalgrid2050.com/explore-code/s/0473.html#f3 - Published at: https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/federation_control_ledger/ - Synopsis: A web page in Data Federation Map for GlobalGrid2050 All Repos. Published at https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/federation_control_ledger/. - What it achieves (comment): Ventus Global Grid 2050. - What it does: It draws its content. Uses libraries style.css?v=relation-board-4. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Out: web page. - Downstream impact: Used directly by 12 files: Federation Radial (data-federation-map-for-globalgrid2050-all-repos, https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/federation_radial.html); Federation Radial Uniform (data-federation-map-for-globalgrid2050-all-repos, https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/sandbox/federation_radial_uniform.html); Spider Full Po Test (data-federation-map-for-globalgrid2050-all-repos, https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/sandbox/spider_full_po_test.html); Live Sandbox — Federation Control Ledger (data-federation-map-for-globalgrid2050-all-repos, https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/federation_control_ledger/); and 8 more. Reached from 279 other entry points, including Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/). It is itself an entry point, published at https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/federation_control_ledger/. - domain_stage: experimental · commercial_user: none · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 2 estate files (script-src 2); used by 12; mentioned by 0 ### Live Sandbox — Football One Card Page - File: data-federation-map-for-globalgrid2050-all-repos/live_sandbox/football_one_card/index.html (HTML, 80 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos/blob/fffd624e77d820ebc04ab25f9d97871b254be61c/live_sandbox/football_one_card/index.html#L1-L80 - Page: https://code.globalgrid2050.com/explore-code/s/0473.html#f4 - Published at: https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/football_one_card/ - Synopsis: A web page in Data Federation Map for GlobalGrid2050 All Repos. Published at https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/football_one_card/. It is built from the save step (`save`) and the load step (`load`). - What it achieves (comment): Match Summary Canvas. It responds to input events. - What it does: It draws its content. Defines save, load. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: browser storage (getItem); DuckDB queries. Out: browser storage (setItem); web page. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/live_sandbox/football_one_card/. - Signatures: `save()`; `load(data)` - domain_stage: experimental · commercial_user: none · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [browser storage (getItem); DuckDB queries]; out [browser storage (setItem); web page]; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### Build Declared Cartridges - File: data-federation-map-for-globalgrid2050-all-repos/scripts/build_declared_cartridges.py (Python, 262 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos/blob/fffd624e77d820ebc04ab25f9d97871b254be61c/scripts/build_declared_cartridges.py#L1-L262 - Page: https://code.globalgrid2050.com/explore-code/s/0473.html#f5 - Synopsis: A Python command-line tool in the scripts folder of Data Federation Map for GlobalGrid2050 All Repos that reads federation cartridges and solar. It reads base (`read_base`) and builds once (`build_once`). - What it achieves (name): Its name says it builds declared cartridges. Defines `qpath`, `qlit`, `now` and 10 more. It accepts `--mode` and `--repository`. - What it does: It loads federation cartridges and solar. Defines 14 functions or classes, including qpath, qlit, now, md5, stable_write_json. Uses libraries __future__, argparse, datetime, hashlib, json. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: solar. - Inputs & outputs: In: JSON file FEDERATION_CARTRIDGES_LATEST.json; Parquet file edges.parquet; Parquet file nodes.parquet; DuckDB queries; command-line arguments. - Downstream impact: Used directly by 1 file: Gridbot Declared Cartridges Workflow (data-federation-map-for-globalgrid2050-all-repos). - Signatures: `qpath(p: Path)`; `qlit(s: str)`; `now()`; `md5(p: Path)`; `stable_write_json(path: Path, obj: dict[str, Any])`; `repo_part(node_id: str)`; `read_base(con: duckdb.DuckDBPyConnection, nodes: Path, edges: Path)`; `eligible(con: duckdb.DuckDBPyConnection, nodes: Path)`; `build_once(root: Path, con: duckdb.DuckDBPyConnection, nodes: Path, edges: Path, repos: list[str], base: dict[str, Any])`; `files_md5(root: Path)`; `union_table(con: duckdb.DuckDBPyConnection, carts: list[dict[str, Any]])`; `verify(con: duckdb.DuckDBPyConnection, nodes: Path, edges: Path, repos: list[str], excluded: list[str], carts: list[dict[str...)`; `report_write(report: dict[str, Any])`; `main()` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file FEDERATION_CARTRIDGES_LATEST.json; Parquet file edges.parquet; Parquet file nodes.parquet; DuckDB queries; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Build Federation Map - File: data-federation-map-for-globalgrid2050-all-repos/scripts/build_federation_map.py (Python, 469 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos/blob/fffd624e77d820ebc04ab25f9d97871b254be61c/scripts/build_federation_map.py#L1-L469 - Page: https://code.globalgrid2050.com/explore-code/s/0474.html#f1 - Synopsis: A Python command-line tool in the scripts folder of Data Federation Map for GlobalGrid2050 All Repos using data from GitHub API. - What it achieves (name): It lists owner repos (`list_owner_repos`), fetches text (`fetch_text`) and lists workflow paths (`list_workflow_paths`). Its name says it builds federation map. Defines `canonical_repo_ref`, `utcnow`, `week_parts` and 15 more. It accepts `--owner`, `--timeout` and `--request-delay-seconds`. - What it does: It fetches data. Defines 19 functions or classes, including canonical_repo_ref, utcnow, week_parts, headers, gh_get. Uses libraries __future__, argparse, csv, datetime, json. Side effects: reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: In: data source: GitHub API; CSV file nodes.csv; CSV file edges.csv; Parquet file nodes.parquet; Parquet file edges.parquet; DuckDB queries; command-line arguments. Out: JSON file FEDERATION_MAP_LATEST.json; Parquet file. - Downstream impact: Used directly by 1 file: Gridbot Federation Map Weekly Workflow (data-federation-map-for-globalgrid2050-all-repos). - Signatures: `canonical_repo_ref(ref: str)`; `utcnow()`; `week_parts(now: dt.datetime)`; `headers(token: str | None, raw: bool = False)`; `gh_get(url: str, token: str | None, timeout: int, raw: bool = False)`; `list_owner_repos(owner: str, token: str | None, timeout: int, delay: float)`; `fetch_text(repo_full_name: str, path: str, ref: str, token: str | None, timeout: int, max_bytes: int)`; `list_workflow_paths(repo_full_name: str, ref: str, token: str | None, timeout: int)`; `clean_excerpt(text: str, token: str)`; `infer_repo_type(name: str, text_blob: str)`; `edge_type_for(to_node: str, evidence_path: str, text: str)`; `build_rows(owner: str, token: str | None, timeout: int, delay: float, max_file_bytes: int)`; `write_csv(path: Path, rows: list[dict[str, Any]])`; `sql_path(path: Path)`; `write_parquet(staging: Path, target: Path)`; `write_outputs(nodes: list[dict[str, Any]], edges: list[dict[str, Any]])`; `verify_outputs()`; `write_reports(report: dict[str, Any])`; `main()` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: GitHub API; CSV file nodes.csv; CSV file edges.csv; Parquet file nodes.parquet; Parquet file edges.parquet; DuckDB queries; command-line arguments]; out [JSON file FEDERATION_MAP_LATEST.json; Parquet file]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Publish Federation JSON - File: data-federation-map-for-globalgrid2050-all-repos/scripts/publish_federation_json.py (Python, 818 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos/blob/fffd624e77d820ebc04ab25f9d97871b254be61c/scripts/publish_federation_json.py#L1-L818 - Page: https://code.globalgrid2050.com/explore-code/s/0475.html#f1 - Synopsis: A Python command-line tool in the scripts folder of Data Federation Map for GlobalGrid2050 All Repos that reads federation publish and federation map, using SHA-256. - What it achieves (name): It stops plan (`StopPlan`), reads JSON (`read_json`) and reads text if exists (`read_text_if_exists`). Its name says it publishes federation JSON. Defines `StopPlan`, `utcnow`, `rel` and 25 more. It accepts `--mode`, `--repository` and `--source-nodes`. - What it does: It loads federation publish and federation map. Defines 29 functions or classes, including StopPlan, utcnow, rel, sql_path, json_text. Uses libraries __future__, argparse, datetime, hashlib, json. Side effects: reads or writes files; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: In: Parquet file nodes.parquet; Parquet file edges.parquet; JSON file FEDERATION_PUBLISH_LATEST.json; JSON file FEDERATION_MAP_LATEST.json; JSON file nodes.json; JSON file edges.json; DuckDB queries; command-line arguments. - Downstream impact: Used directly by 1 file: Gridbot Federation Map Weekly Workflow (data-federation-map-for-globalgrid2050-all-repos). - Signatures: `class StopPlan`; `utcnow()`; `rel(path: Path)`; `sql_path(path: Path)`; `json_text(obj: Any)`; `canonical_text(obj: Any)`; `sha256_text(text: str)`; `read_json(path: Path)`; `read_text_if_exists(path: Path)`; `write_text(path: Path, text: str)`; `current_commit_sha()`; `empty_report(args: argparse.Namespace, generated_utc: str)`; `add_check(report: dict[str, Any], name: str, passed: bool, detail: str, numbers: dict[str, Any] | None = None)`; `all_checks_pass(report: dict[str, Any])`; `parquet_columns(con: duckdb.DuckDBPyConnection, path: Path)`; `load_source_rows(con: duckdb.DuckDBPyConnection, nodes_path: Path, edges_path: Path)`; `scanner_readback_status(scanner_report_path: Path, scanner_status: str)`; `current_node_shape(current_nodes: dict[str, Any])`; `current_edges_shape(current_edges: dict[str, Any])`; `build_nodes_json(source_nodes: list[dict[str, Any]], current_nodes_obj: dict[str, Any])`; `build_edges_json(source_edges: list[dict[str, Any]], node_index: dict[str, int], current_edges_obj: dict[str, Any])`; `projection_for_reconciliation(nodes_obj: dict[str, Any], edges_obj: dict[str, Any])`; `edge_indices_resolve(nodes_obj: dict[str, Any], edges_obj: dict[str, Any])`; `update_dependencies_text(existing: str | None)`; `write_markdown_report(report: dict[str, Any])` (and 4 more) - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [Parquet file nodes.parquet; Parquet file edges.parquet; JSON file FEDERATION_PUBLISH_LATEST.json; JSON file FEDERATION_MAP_LATEST.json; JSON file nodes.json; JSON file edges.json; DuckDB queries; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Render Internal Dashboard - File: data-federation-map-for-globalgrid2050-all-repos/scripts/render_internal_dashboard.py (Python, 194 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos/blob/fffd624e77d820ebc04ab25f9d97871b254be61c/scripts/render_internal_dashboard.py#L1-L194 - Page: https://code.globalgrid2050.com/explore-code/s/0476.html#f2 - Synopsis: A Python command-line tool in the scripts folder of Data Federation Map for GlobalGrid2050 All Repos that reads federation map and federation dashboard. - What it achieves (name): It builds payload (`build_payload`) and renders HTML (`render_html`). Its name says it renders internal dashboard. Defines `utcnow`, `sql_path`, `load_latest_report` and 3 more. - What it does: It loads federation map and federation dashboard. Defines 7 functions or classes, including utcnow, sql_path, load_latest_report, colour_for_repo, build_payload. Uses libraries __future__, datetime, html, json, pathlib. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: In: JSON file FEDERATION_MAP_LATEST.json; Parquet file nodes.parquet; Parquet file edges.parquet; DuckDB queries. Out: JSON file federation_dashboard.json. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `utcnow()`; `sql_path(path: Path)`; `load_latest_report()`; `colour_for_repo(repo_type: str, status: str, files: str)`; `build_payload()`; `render_html(payload: dict)`; `main()` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file FEDERATION_MAP_LATEST.json; Parquet file nodes.parquet; Parquet file edges.parquet; DuckDB queries]; out [JSON file federation_dashboard.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### OSM Power Plants - File: data-grid-gb/conventional/fetchers/osm_power_plants.py (Python, 20 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/data-grid-gb/blob/4a9cef6c7c791f76d416c8b2fbafac8265f7a263/conventional/fetchers/osm_power_plants.py#L1-L20 - Page: https://code.globalgrid2050.com/explore-code/s/0476.html#f3 - Synopsis: A Python module in the fetchers folder of Data Grid GB. It is built from the raw requests helper (`raw_requests`) and the normalise step (`normalise`). - What it achieves (comment): OpenStreetMap power=plant with a conventional plant:source. - What it does: It calculates its inputs. Defines raw_requests, normalise. - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Signatures: `raw_requests()`; `normalise(raw)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### OSM Datacentres - File: data-grid-gb/datacentres/fetchers/osm_datacentres.py (Python, 20 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/data-grid-gb/blob/4a9cef6c7c791f76d416c8b2fbafac8265f7a263/datacentres/fetchers/osm_datacentres.py#L1-L20 - Page: https://code.globalgrid2050.com/explore-code/s/0476.html#f4 - Synopsis: A Python module in the fetchers folder of Data Grid GB. It is built from the raw requests helper (`raw_requests`) and the normalise step (`normalise`). - What it achieves (comment): OpenStreetMap features tagged as data centres (telecom=`data_center`, building=`data_center` and related). - What it does: It calculates its inputs. Defines raw_requests, normalise. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'datacentres'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Signatures: `raw_requests()`; `normalise(raw)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### DC A4 - File: data-grid-gb/datacentres/lanes/dc-a4-osm-wikidata/dc_a4.py (Python, 502 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/data-grid-gb/blob/4a9cef6c7c791f76d416c8b2fbafac8265f7a263/datacentres/lanes/dc-a4-osm-wikidata/dc_a4.py#L1-L502 - Page: https://code.globalgrid2050.com/explore-code/s/0477.html#f1 - Synopsis: A Python command-line tool in the lanes folder of Data Grid GB that fetches fetch, OSM overpass, wikidata sparql and DC operational, using SHA-256 from OpenStreetMap (Overpass). - What it achieves (comment): It fetches OSM (`fetch_osm`), fetches wikidata (`fetch_wikidata`) and groups OSM (`group_osm`). Operational UK data centres from OpenStreetMap (ODbL) and Wikidata (CC0). Its code works with 40 MW. It accepts `--raw`, `--out` and `--legacy`. - What it does: It fetches fetch, OSM overpass, wikidata sparql and DC operational. Defines 26 functions or classes, including sha256_bytes, sha256_file, clean, norm, tokens. Uses libraries argparse, hashlib, json, math, os. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'dc'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: data source: OpenStreetMap (Overpass); GeoJSON file datacentres.geojson; JSON file .fetch.json; JSON file osm_overpass.json; GeoJSON file gg2050_datacentres.geojson; JSON file wikidata_sparql.json; JSON file dc_operational.json; GeoJSON file dc_operational.geojson. Out: JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `sha256_bytes(b)`; `sha256_file(p)`; `clean(s)`; `norm(s)`; `tokens(s)`; `hav_m(a, b)`; `in_uk(lon, lat)`; `dump(obj, path)`; `nation(lon, lat)`; `_http(req, out_dir, stem, meta)`; `fetch_osm(a)`; `fetch_wikidata(a)`; `osm_records(raw_path, retrieved)`; `legacy_records(path)`; `wd_records(raw_path, retrieved)`; `op_compatible(a, b)`; `site_compatible(members, incoming)`; `assert_single_operator(sites)`; `group_osm(recs)`; `match_wikidata(sites, wds)`; `source_entry(m)`; `build_site(s, idx)`; `reconcile(sites, offtakers_path, legacy_used)`; `build(a)`; `selftest(a)` (and 1 more) - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass); GeoJSON file datacentres.geojson; JSON file .fetch.json; JSON file osm_overpass.json; GeoJSON file gg2050_datacentres.geojson; JSON file wikidata_sparql.json; JSON file dc_operational.json; GeoJSON file dc_operational.geojson]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Data GridAtlas — Data GridAtlas Page - File: data-gridatlas/202608291237-data-gridatlas/index.html (HTML, 39 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/data-gridatlas/blob/203f9dc3764c05153c2b95f8ace88eb543f26c1e/202608291237-data-gridatlas/index.html#L1-L39 - Page: https://code.globalgrid2050.com/explore-code/s/0477.html#f2 - Published at: https://ventusltd.github.io/data-gridatlas/202608291237-data-gridatlas/ - Synopsis: A web page that uses SHA-256. Published at https://ventusltd.github.io/data-gridatlas/202608291237-data-gridatlas/. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file release.json; JSON file browser-layer-registry.json. Out: web page. - Downstream impact: Used directly by 9 files: V9 Parquet Fetch Bridge (code-generator); Streaming Parquet Bridge V9 5 (globalgrid2050); Streaming Parquet Bridge (globalgrid2050); Streaming Parquet Bridge V9 5 (gridatlas); and 5 more. Reached from 97 other entry points, including Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html). It is itself an entry point, published at https://ventusltd.github.io/data-gridatlas/202608291237-data-gridatlas/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file release.json; JSON file browser-layer-registry.json]; out [web page]; crs []; voltages [] - Edges: uses 0 estate files; used by 9; mentioned by 0 ### Verify Bootstrap - File: data-gridatlas/atman/202608290904-verify-bootstrap.py (Python, 304 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/data-gridatlas/blob/203f9dc3764c05153c2b95f8ace88eb543f26c1e/atman/202608290904-verify-bootstrap.py#L1-L304 - Page: https://code.globalgrid2050.com/explore-code/s/0478.html#f1 - Synopsis: A Python command-line tool in the atman folder of Data GridAtlas that reads GridAtlas bootstrap, GridAtlas consumer, dependency ledger and quarantine, using SHA-256. - What it achieves (comment): It verifies repository (`verify_repository`), parses oracle tree (`parse_oracle_tree`) and verifies oracle (`verify_oracle`). Independent verifier for the inventory-only data-GridAtlas bootstrap. It accepts `--repository`, `--oracle-tree` and `--catalog`. - What it does: It loads GridAtlas bootstrap, GridAtlas consumer, dependency ledger and quarantine. Defines 11 functions or classes, including reject_duplicate_keys, load, digest, require, safe_relative. Uses libraries argparse, hashlib, json, re, subprocess. Side effects: reads or writes files; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file 202608290904-data-gridatlas-bootstrap.json; JSON file 202608290904-gridatlas-consumer.json; JSON file 202608290904-v8-dependency-ledger.json; JSON file 202608290904-v8-file-ledger.json; JSON file 202608290904-v8-quarantine.json; Parquet file files.parquet; Parquet file layers.parquet; Parquet file quarantine.parquet. - Downstream impact: Used directly by 1 file: Bootstrap Verify Data GridAtlas Workflow (data-gridatlas). - Signatures: `reject_duplicate_keys(pairs)`; `load(path: Path)`; `digest(path: Path)`; `require(condition, message)`; `safe_relative(value)`; `inventory(repository: Path)`; `verify_repository(repository: Path, bootstrap)`; `parse_oracle_tree(path: Path)`; `verify_oracle(tree_path: Path, contracts)`; `verify_catalog(repository: Path, catalog: Path, contracts)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file 202608290904-data-gridatlas-bootstrap.json; JSON file 202608290904-gridatlas-consumer.json; JSON file 202608290904-v8-dependency-ledger.json; JSON file 202608290904-v8-file-ledger.json; JSON file 202608290904-v8-quarantine.json; Parquet file files.parquet; Parquet file layers.parquet; Parquet file quarantine.parquet]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Verify V8 Transplant - File: data-gridatlas/atman/202608291015-verify-v8-transplant.py (Python, 1134 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/data-gridatlas/blob/203f9dc3764c05153c2b95f8ace88eb543f26c1e/atman/202608291015-verify-v8-transplant.py#L1-L1134 - Page: https://code.globalgrid2050.com/explore-code/s/0478.html#f2 - Synopsis: A Python command-line tool in the atman folder of Data GridAtlas that reads transplant plan, runtime dependencies, repository boundary and dependency ledger, using SHA-256. - What it achieves (comment): It reads oracle source (`read_oracle_source`), collects coordinates (`collect_coordinates`) and snaps feature independently (`snap_feature_independently`). Independent verifier for the full V8 parity transplant candidate. Its code works with 11 kV. It accepts `--repository`, `--phase-output` and `--source-root`. - What it does: It loads transplant plan, runtime dependencies, repository boundary and dependency ledger. Defines 30 functions or classes, including canonical, reject_duplicate_keys, load, digest, digest_bytes. Uses libraries argparse, copy, hashlib, json, math. Side effects: reads or writes files; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 11kV. - Inputs & outputs: In: JSON file 202608291015-v8-transplant-plan.json; JSON file 202608291015-v8-layer-config.json; JSON file 202608291015-v8-runtime-dependencies.json; JSON file 202608291015-repository-boundary.json; JSON file 202608291015-v8-transplant-parquet.json; JSON file 202608290904-v8-dependency-ledger.json; JSON file 202608290904-v8-file-ledger.json; JSON file 202608290904-v8-quarantine.json. Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 11kV. - Downstream impact: Used directly by 2 files: Build V8 Transplant (data-gridatlas); Build V8 Transplant Candidate Workflow (data-gridatlas). - Signatures: `canonical(value)`; `reject_duplicate_keys(pairs)`; `load(path)`; `digest(path)`; `digest_bytes(payload)`; `git_blob_oid(payload)`; `expected_compute_identity(repository)`; `require(condition, message)`; `safe_relative(value)`; `sql_string(value)`; `loads_strict(value)`; `read_oracle_source(source, source_root)`; `collect_coordinates(node, output)`; `evaluate_filter(expression, properties)`; `snap_feature_independently(feature, substations)`; `snap(coordinate)`; `verify_rows_against_features(connection, path, source, features, retained_keys, original_features=None)`; `validate_contracts(repository)`; `validate_repository(repository, contracts)`; `parquet_compression(connection, path)`; `parquet_schema(connection, path)`; `validate_partition(connection, path, source, forbidden_keys, scan_privacy=True)`; `verify_projected_partition_internal(connection, path, source)`; `verify_artifact_list(root, manifest)`; `require_exact_artifact_contract(artifacts, expected)` (and 5 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file 202608291015-v8-transplant-plan.json; JSON file 202608291015-v8-layer-config.json; JSON file 202608291015-v8-runtime-dependencies.json; JSON file 202608291015-repository-boundary.json; JSON file 202608291015-v8-transplant-parquet.json; JSON file 202608290904-v8-dependency-ledger.json; JSON file 202608290904-v8-file-ledger.json; JSON file 202608290904-v8-quarantine.json]; out []; crs [WGS84 / EPSG:4326]; voltages [11kV] - Edges: uses 1 estate file (script-call 1); used by 2; mentioned by 0 ### Verify Live Data Release - File: data-gridatlas/atman/202608291237-verify-live-data-release.py (Python, 305 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/data-gridatlas/blob/203f9dc3764c05153c2b95f8ace88eb543f26c1e/atman/202608291237-verify-live-data-release.py#L1-L305 - Page: https://code.globalgrid2050.com/explore-code/s/0480.html#f2 - Synopsis: A Python command-line tool in the atman folder of Data GridAtlas that fetches live release, full candidate verification and membership, using SHA-256. It reads JSON (`read_json`) and finds placeholders (`find_placeholders`). - What it achieves (comment): Independently verify the immutable live data release. It reads `release.json`. It accepts `--repository`, `--contract` and `--release`. - What it does: It fetches live release, full candidate verification and membership. Defines 7 functions or classes, including reject_duplicate_keys, read_json, sha256, require, find_placeholders. Uses libraries __future__, argparse, hashlib, json, pathlib. Side effects: reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file release.json; JSON file full-candidate-verification.json; JSON file browser-layer-registry.json; Parquet file layer_membership.parquet; JSON file 202608291237-live-data-release.json; DuckDB queries; command-line arguments. - Downstream impact: Used directly by 2 files: Current Integrity (data-gridatlas); Publish Live Data GridAtlas Workflow (data-gridatlas). Reached from 3 other entry points, including Contract Guard Workflow (data-gridatlas); Current Integrity Workflow (data-gridatlas); Watchdog Router Workflow (data-gridatlas). - Signatures: `reject_duplicate_keys(pairs: list[tuple[str, object]])`; `read_json(path: Path)`; `sha256(path: Path)`; `require(condition: bool, message: str)`; `find_placeholders(value: object)`; `verify(args: argparse.Namespace)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file release.json; JSON file full-candidate-verification.json; JSON file browser-layer-registry.json; Parquet file layer_membership.parquet; JSON file 202608291237-live-data-release.json; DuckDB queries; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Verify Repository Boundary - File: data-gridatlas/atman/202608291410-verify-repository-boundary.py (Python, 144 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/data-gridatlas/blob/203f9dc3764c05153c2b95f8ace88eb543f26c1e/atman/202608291410-verify-repository-boundary.py#L1-L144 - Page: https://code.globalgrid2050.com/explore-code/s/0480.html#f3 - Synopsis: A Python command-line tool in the atman folder of Data GridAtlas that verifies release (`verify_release`), using SHA-256. - What it achieves (comment): It is built from the require step (`require`), the sha256 step (`sha256`) and the tracked files helper (`tracked_files`). Verify the complete repository after adding a second immutable release root. It accepts `--repository`, `--contract` and `--mode`. - What it does: It loads data. Defines require, sha256, tracked_files, verify_release, main. Uses libraries __future__, argparse, hashlib, json, pathlib. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 1 file: Publish Renewable Energy Planning Database (REPD) Routing Workflow (data-gridatlas). - Signatures: `require(condition: bool, message: str)`; `sha256(path: Path)`; `tracked_files(repository: Path)`; `verify_release(repository: Path, root_name: str, limits: dict, tracked: set[str])`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Current Integrity - File: data-gridatlas/atman/202608291507-current-integrity.py (Python, 1017 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/data-gridatlas/blob/203f9dc3764c05153c2b95f8ace88eb543f26c1e/atman/202608291507-current-integrity.py#L1-L1017 - Page: https://code.globalgrid2050.com/explore-code/s/0481.html#f1 - Synopsis: A Python command-line tool in the atman folder of Data GridAtlas that writes outputs (`write_outputs`), loads contract (`load_contract`) and assigns Parquet (`assign_parquet`), using SHA-256. - What it achieves (comment): It reads JSON (`read_json`) and writes JSON (`write_json`). Read-only resolver, sharded verifier and watchdog probes for live Data Grid Atlas. It reads `release.json`. It accepts `--repository`, `--contract` and `--expected-head`. - What it does: It fetches data. Defines 33 functions or classes, including reject_duplicate_keys, read_json, canonical, require, sha256. Uses libraries __future__, argparse, hashlib, json, os. Side effects: reads or writes files; makes network requests; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file 202608291507-automation.json; JSON file live-set.json; JSON file current.json; JSON file release.json; JSON file browser-layer-registry.json; JSON file projects.json; Parquet file uk_primary_roads.parquet; Parquet file repd_master_v8_oracle.parquet. - Downstream impact: Used directly by 3 files: Contract Guard Workflow (data-gridatlas); Current Integrity Workflow (data-gridatlas); Watchdog Router Workflow (data-gridatlas). - Signatures: `reject_duplicate_keys(pairs: list[tuple[str, object]])`; `read_json(path: Path)`; `canonical(value: object)`; `require(condition: bool, message: str)`; `sha256(path: Path)`; `bytes_sha256(value: bytes)`; `git(repository: Path, *args: str)`; `write_json(path: Path, value: object)`; `write_outputs(path: Path | None, values: dict[str, object])`; `load_contract(repository: Path, relative: str)`; `app_release_url(contract: dict, release_id: str)`; `assign_parquet(artifacts: list[dict], shards: int)`; `resolve_state(repository: Path, contract_relative: str, expected_head: str = "", expected_pointer: str = "")`; `fetch(url: str, *, byte_range: str | None = None, attempts: int = 4)`; `require_public_response(status: int, headers: dict[str, str], expected_status: int, url: str)`; `verify_public_parquet(state: dict, item: dict)`; `parquet_schema(connection, path: Path)`; `verify_local_parquet(connection, state: dict, item: dict, scan_privacy: bool)`; `verify_data_pointer(state: dict)`; `verify_data_release_sentinels(state: dict, include_ranges: bool = True)`; `verify_consumer(state: dict)`; `_verify_current_and_historical_consumer(state: dict)`; `run_full_release_verifier(state: dict, output: Path)`; `command_resolve(args: argparse.Namespace)`; `command_shard(args: argparse.Namespace)` (and 8 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file 202608291507-automation.json; JSON file live-set.json; JSON file current.json; JSON file release.json; JSON file browser-layer-registry.json; JSON file projects.json; Parquet file uk_primary_roads.parquet; Parquet file repd_master_v8_oracle.parquet]; out []; crs []; voltages [] - Edges: uses 1 estate file (script-call 1); used by 3; mentioned by 0 ### Build Dependency Catalog - File: data-gridatlas/compiler/202608290904-build-dependency-catalog.py (Python, 254 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/data-gridatlas/blob/203f9dc3764c05153c2b95f8ace88eb543f26c1e/compiler/202608290904-build-dependency-catalog.py#L1-L254 - Page: https://code.globalgrid2050.com/explore-code/s/0482.html#f2 - Synopsis: A Python command-line tool in the compiler folder of Data GridAtlas that reads GridAtlas bootstrap, dependency ledger, quarantine and GridAtlas consumer, using SHA-256. - What it achieves (comment): It inserts rows (`insert_rows`) and writes Parquet (`write_parquet`). Build the inventory-only Atlas V9 dependency catalogue. It accepts `--repository` and `--output`. - What it does: It loads GridAtlas bootstrap, dependency ledger, quarantine and GridAtlas consumer. Defines 8 functions or classes, including load, digest, contract_digest, insert_rows, write_parquet. Uses libraries argparse, hashlib, json, pathlib, duckdb. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file 202608290904-data-gridatlas-bootstrap.json; JSON file 202608290904-v8-file-ledger.json; JSON file 202608290904-v8-dependency-ledger.json; JSON file 202608290904-v8-quarantine.json; JSON file 202608290904-gridatlas-consumer.json; Parquet file files.parquet; Parquet file layers.parquet; Parquet file quarantine.parquet. - Downstream impact: Used directly by 1 file: Bootstrap Verify Data GridAtlas Workflow (data-gridatlas). - Signatures: `load(path: Path)`; `digest(path: Path)`; `contract_digest(path: Path)`; `insert_rows(connection, table, columns, rows)`; `write_parquet(connection, query, path: Path)`; `quarantine_rows(contract)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file 202608290904-data-gridatlas-bootstrap.json; JSON file 202608290904-v8-file-ledger.json; JSON file 202608290904-v8-dependency-ledger.json; JSON file 202608290904-v8-quarantine.json; JSON file 202608290904-gridatlas-consumer.json; Parquet file files.parquet; Parquet file layers.parquet; Parquet file quarantine.parquet]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Build V8 Transplant - File: data-gridatlas/compiler/202608291015-build-v8-transplant.py (Python, 628 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/data-gridatlas/blob/203f9dc3764c05153c2b95f8ace88eb543f26c1e/compiler/202608291015-build-v8-transplant.py#L1-L628 - Page: https://code.globalgrid2050.com/explore-code/s/0483.html#f1 - Synopsis: A Python command-line tool in the compiler folder of Data GridAtlas that fetches transplant plan, dependency ledger, runtime dependencies and repository boundary, using SHA-256. - What it achieves (comment): It computes identity (`compute_identity`), fetches phase sources (`fetch_phase_sources`) and verifies source bytes (`verify_source_bytes`). Build the full, evidence-only V8 dependency transplant candidate. It accepts `--repository`, `--source-root` and `--git-repository`. - What it does: It fetches transplant plan, dependency ledger, runtime dependencies and repository boundary. Defines 23 functions or classes, including canonical, digest_bytes, digest, git_blob_oid, load. Uses libraries argparse, copy, hashlib, json, math. Side effects: reads or writes files; makes network requests; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file 202608291015-v8-transplant-plan.json; JSON file 202608291015-v8-layer-config.json; JSON file 202608291015-v8-transplant-parquet.json; JSON file 202608290904-v8-dependency-ledger.json; JSON file 202608291015-v8-runtime-dependencies.json; JSON file 202608291015-repository-boundary.json; JSON file 202608290904-v8-file-ledger.json; JSON file 202608290904-v8-quarantine.json. Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 2 files: Verify V8 Transplant (data-gridatlas); Build V8 Transplant Candidate Workflow (data-gridatlas). - Signatures: `canonical(value)`; `digest_bytes(payload)`; `digest(path)`; `git_blob_oid(payload)`; `load(path)`; `require(condition, message)`; `sql_string(value)`; `artifact(path, root, schema, rows)`; `compute_identity(repository)`; `fetch_phase_sources(plan, phase, source_root)`; `verify_source_bytes(source, payload)`; `read_source(source, source_root, git_repository=None)`; `coordinate_tuples(node, output)`; `evaluate(expression, properties)`; `feature_row(source_id, feature_index, feature, retained_keys, original_feature=None)`; `write_feature_parquet(rows, target)`; `write_membership_parquet(rows, target)`; `snap_feature(feature, substations)`; `snap(coord)`; `build_phase(repository, plan, layer_config, ledger, phase, source_root, output, git_repository=None)`; `write_registry_parquet(rows, columns, ddl, order, target)`; `merge_candidate(repository, plan, layer_config, merge_input, output)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file 202608291015-v8-transplant-plan.json; JSON file 202608291015-v8-layer-config.json; JSON file 202608291015-v8-transplant-parquet.json; JSON file 202608290904-v8-dependency-ledger.json; JSON file 202608291015-v8-runtime-dependencies.json; JSON file 202608291015-repository-boundary.json; JSON file 202608290904-v8-file-ledger.json; JSON file 202608290904-v8-quarantine.json]; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 1 estate file (script-call 1); used by 2; mentioned by 0 ### Materialise Live Data Release - File: data-gridatlas/compiler/202608291237-materialise-live-data-release.py (Python, 300 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/data-gridatlas/blob/203f9dc3764c05153c2b95f8ace88eb543f26c1e/compiler/202608291237-materialise-live-data-release.py#L1-L300 - Page: https://code.globalgrid2050.com/explore-code/s/0484.html#f1 - Synopsis: A Python command-line tool in the compiler folder of Data GridAtlas that reads sources, membership and live release, using SHA-256. - What it achieves (comment): It reads JSON (`read_json`), finds placeholders (`find_placeholders`) and validates candidate (`validate_candidate`). Materialise the immutable Data Grid Atlas live release. It reads `browser-layer-registry.json`. It accepts `--repository`, `--contract` and `--candidate`. - What it does: It loads sources, membership and live release. Defines 13 functions or classes, including reject_duplicate_keys, read_json, canonical_json, sha256, require. Uses libraries __future__, argparse, copy, hashlib, html. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: Parquet file layers.parquet; Parquet file sources.parquet; Parquet file layer_membership.parquet; JSON file release.json; JSON file browser-layer-registry.json; JSON file full-candidate-verification.json; JSON file 202608291237-live-data-release.json; DuckDB queries. Out: JSON file browser-layer-registry.json; JSON file release.json. - Downstream impact: Used directly by 1 file: Publish Live Data GridAtlas Workflow (data-gridatlas). - Signatures: `reject_duplicate_keys(pairs: list[tuple[str, object]])`; `read_json(path: Path)`; `canonical_json(value: object)`; `sha256(path: Path)`; `require(condition: bool, message: str)`; `find_placeholders(value: object, path: str = "contract")`; `validate_candidate(candidate: Path, proof_path: Path, contract: dict)`; `copy_tree(source: Path, destination: Path)`; `make_live_browser_registry(candidate_registry: dict, contract: dict)`; `make_index(contract: dict, candidate_manifest: dict)`; `make_readme(contract: dict)`; `materialise(args: argparse.Namespace)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [Parquet file layers.parquet; Parquet file sources.parquet; Parquet file layer_membership.parquet; JSON file release.json; JSON file browser-layer-registry.json; JSON file full-candidate-verification.json; JSON file 202608291237-live-data-release.json; DuckDB queries]; out [JSON file browser-layer-registry.json; JSON file release.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Build Renewable Energy Planning Database (REPD) Routing Release - File: data-gridatlas/compiler/202608291410-build-repd-routing-release.py (Python, 113 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/data-gridatlas/blob/203f9dc3764c05153c2b95f8ace88eb543f26c1e/compiler/202608291410-build-repd-routing-release.py#L1-L113 - Page: https://code.globalgrid2050.com/explore-code/s/0484.html#f2 - Synopsis: A Python command-line tool in the compiler folder of Data GridAtlas that reads projects and the REPD register, using SHA-256. - What it achieves (comment): It is built from the canonical JSON helper (`canonical_json`), the sha256 step (`sha256`) and the record step (`record`). Compile the immutable PipelineNews/V8 deep-link routing dependency. It accepts `--contract`, `--source` and `--source-commit`. - What it does: It loads projects and the REPD register. Defines canonical_json, sha256, record, require, main. Uses libraries __future__, argparse, hashlib, html, json. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage field_execution (path word 'routing'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file projects.json; JSON file release.json; command-line arguments. Out: JSON file projects.json; JSON file release.json. - Downstream impact: Used directly by 1 file: Publish Renewable Energy Planning Database (REPD) Routing Workflow (data-gridatlas). - Signatures: `canonical_json(value: object)`; `sha256(raw: bytes)`; `record(name: str, raw: bytes)`; `require(condition: bool, message: str)`; `main()` - domain_stage: field_execution · commercial_user: IPP_developer, EPC_contractor, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file projects.json; JSON file release.json; command-line arguments]; out [JSON file projects.json; JSON file release.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Fidelity - File: data-gridatlas/tools/202608301930-fidelity.py (Python, 171 lines) · role storage · stage ingest · entry point - Source: https://github.com/Ventusltd/data-gridatlas/blob/203f9dc3764c05153c2b95f8ace88eb543f26c1e/tools/202608301930-fidelity.py#L1-L171 - Page: https://code.globalgrid2050.com/explore-code/s/0484.html#f3 - Synopsis: A Python command-line tool in the tools folder of Data GridAtlas that compares one V8 GeoJSON source with one V9 Parquet partition, using SHA-256. - What it achieves (name): Defines `canonical`, `sha256_text` and `parse_args`. It accepts `--duckdb-runtime-bytes` and `--network-mbit`. - What it does: It loads data. Defines canonical, sha256_text, parse_args, main. Uses libraries __future__, argparse, hashlib, json, os. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: DuckDB queries; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `canonical(value: Any)`; `sha256_text(value: str)`; `parse_args()`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [DuckDB queries; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### LiDAR Onsite - File: energy-transition-simulator/prototype/mod/lidar-onsite.js (JavaScript, 74 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/lidar-onsite.js#L1-L74 - Page: https://code.globalgrid2050.com/explore-code/s/0484.html#f4 - Synopsis: A JavaScript file in the prototype folder of Energy Transition Simulator that fetches LiDAR terrain, using OSTN15 and Helmert. - What it achieves (comment): It is built from the wait step (`wait`), the b64 step (`b64`) and the area step (`area`). Onsite LiDAR survey as the wireframe ground mesh, on real coordinates. It reads `mod/lidar-onsite/index.json`. - What it does: It fetches LiDAR terrain. Defines 8 functions or classes, including PF, wait, b64, area, dist. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file index.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. - Signatures: `PF()`; `wait(f)`; `b64(s)`; `area(E, N)`; `dist(p, E, N)`; `mesh(p)`; `ax(ex.x - o.x)`; `H(i, j)`; `d(p.e0 + i * s - aE.e)`; `refresh(force)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file index.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Bake - File: energy-transition-simulator/prototype/mod/lidar-onsite/bake.py (Python, 47 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/lidar-onsite/bake.py#L1-L47 - Page: https://code.globalgrid2050.com/explore-code/s/0485.html#f1 - Synopsis: A Python module in the LiDAR onsite folder of Energy Transition Simulator that reads LiDAR terrain. - What it achieves (comment): Bake cached EA LiDAR 1 m DTM around a point into a small file the LiDAR-onsite module draws. - What it does: It loads LiDAR terrain. Uses libraries sys, json, base64, os, numpy. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file index.json; command-line arguments. Out: JSON file. - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file index.json; command-line arguments]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### LiDAR Stream - File: energy-transition-simulator/prototype/mod/lidar-stream.js (JavaScript, 344 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/lidar-stream.js#L1-L344 - Page: https://code.globalgrid2050.com/explore-code/s/0485.html#f2 - Synopsis: A JavaScript file in the prototype folder of Energy Transition Simulator that maps LiDAR terrain, using EPSG:27700 and OSTN15. It saves day (`saveDay`), sets open (`setOpen`) and shows text (`showText`). - What it achieves (comment): Rule R5 (the site tile) in the browser. It responds to click, resize and keydown events. - What it does: It maps LiDAR terrain. Defines 29 functions or classes, including PF, wait, today, dayUsed, saveDay. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: browser storage (getItem). Out: browser storage (setItem). Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. - Signatures: `PF()`; `wait(f)`; `today()`; `dayUsed()`; `saveDay()`; `panel()`; `setOpen(v)`; `summary(t)`; `show()`; `showText()`; `frame(t)`; `ax(ex.x - o.x)`; `hAt(r, i, j)`; `exag()`; `elevNow()`; `terrainAt(lon, lat)`; `demAt(lon, lat)`; `heightAt(e, n)`; `probe(n = 200)`; `blk(t.blks || [])`; `walker()`; `draw(key)`; `X(a, b)`; `ghost(p, q)`; `satMode()` (and 11 more) - VEDIC: HEIGHT (GG2050-VEDIC-000011): Solar Design Studio / LiDAR · Mathematics / Raster sampling. bng_easting_m, bng_northing_m -> height_receipt_or_null - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [browser storage (getItem)]; out [browser storage (setItem)]; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### R5 - File: energy-transition-simulator/prototype/mod/lidar-stream/r5.mjs (JavaScript, 186 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/lidar-stream/r5.mjs#L1-L186 - Page: https://code.globalgrid2050.com/explore-code/s/0485.html#f3 - Synopsis: A JavaScript module in the LiDAR stream folder of Energy Transition Simulator covering LiDAR terrain, using EPSG:27700 and SHA-256 and uses data from Environment Agency. - What it achieves (comment): It creates pacer (`createPacer`), reads tags (`readTags`) and decodes geo tiff (`decodeGeoTiff`). R5 site tile, the pure part: lattice maths, the two EA WCS source cards, the GeoTIFF decoder, the coverage test and the receipt hash. - What it does: Defines 11 functions or classes, including tileOf, clip, wcsUrl, measuredMask, bad. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: LiDAR terrain. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export tileOf(e, n)`; `export clip(t, env)`; `export wcsUrl(src, b)`; `export measuredMask(geo)`; `export cellSha256(data, subtle)`; `export createPacer({ clock = () => Date.now(), used = 0 } = {})`; `export decodeGeoTiff(buffer)`; `export synthTiff(west, north, w, h, fn, nodata = '-3.4028234663852886E38')`; `bad(v)`; `take()`; `done(status)`; `readTags(dv, little)`; `bytes(TYPE_BYTES[type] || 1)`; `inflate(bytes)`; `bx(b % across)`; `need(tiled ? bh : rows)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Walk Fps - File: energy-transition-simulator/prototype/mod/walk-fps.js (JavaScript, 165 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/walk-fps.js#L1-L165 - Page: https://code.globalgrid2050.com/explore-code/s/0486.html#f1 - Synopsis: A JavaScript file in the prototype folder of Energy Transition Simulator that works with seg dist (`segDist`) and look up (`lookUp`) and calculates planar distances. - What it achieves (comment): It is built from the m per deg helper (`mPerDeg`), the start step (`start`) and the solid of helper (`solidOf`). First-person walk on the real terrain, inside the map's own camera. It responds to keydown, keyup and blur events. - What it does: It draws its content. Defines 14 functions or classes, including mPerDeg, start, solidOf, segDist, blocked. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Coordinate systems named: WGS84 / EPSG:4326. - Signatures: `mPerDeg(lat)`; `start(SIM)`; `solidOf(b)`; `segDist(px, py, l)`; `blocked(la, lo)`; `ground(lo, la)`; `place()`; `tick(t)`; `f(keys.has('w') || keys.has('arrowup') ? 1 : 0)`; `r(keys.has('d') || keys.has('arrowright') ? 1 : 0)`; `tx(f * Math.sin(b) + r * Math.cos(b))`; `hud(t)`; `enter()`; `leave()`; `joyAt(e)`; `up(e)`; `lookUp(e)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### LiDAR Stream - File: energy-transition-simulator/tests/lidar-stream.cjs (JavaScript, 314 lines) · role test · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/tests/lidar-stream.cjs#L1-L314 - Page: https://code.globalgrid2050.com/explore-code/s/0486.html#f2 - Synopsis: A JavaScript module in the tests folder of Energy Transition Simulator that tests LiDAR terrain, using SHA-256. - What it achieves (comment): It is built from the crc step (`crc`), the chunk step (`chunk`) and the png step (`png`). Check for `mod/lidar-stream.js` (rule R5 in the browser). - What it does: It tests LiDAR terrain. Defines 11 functions or classes, including DTM, BUILDING, crc, chunk, png. Uses libraries http, fs, path, url, crypto. Side effects: changes the web page (DOM); reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (path word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file index.json. Out: interactive map; WebGL/WebGPU drawing. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `DTM(e, n)`; `BUILDING(e, n)`; `crc(b)`; `chunk(ty, d)`; `png(px)`; `ll(z, x, y)`; `demTile(z, x, y)`; `proj(x, y, z)`; `litRate(k)`; `ld(s)`; `lit(px, py)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file index.json]; out [interactive map; WebGL/WebGPU drawing]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Galaxies Wafers — Atlas Page - File: galaxies-wafers/atlas/index.html (HTML, 169 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/atlas/index.html#L1-L169 - Page: https://code.globalgrid2050.com/explore-code/s/0486.html#f3 - Published at: https://ventusltd.github.io/galaxies-wafers/atlas/ - Synopsis: A map page that maps grid 400kV, grid 275kV, grid 220kV and grid 132kV, and uses data from the GridAtlas repository. Published at https://ventusltd.github.io/galaxies-wafers/atlas/. - What it achieves (comment): It sets state (`setState`), renders panel (`renderPanel`) and writes URL (`writeURL`). The Ground — Grid Atlas's own layers, lifted whole. Its code works with 100 kW, 400 kV and 132 kV. It responds to change and click events. - What it does: It maps grid 400kV, grid 275kV, grid 220kV and grid 132kV. Defines 9 functions or classes, including url, $, esc, setState, hydrate. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 275kV, 220kV, 132kV, 66kV. README: "The page (`index.html`, `app.mjs`, `lib.mjs`) is inherited unchanged from testcode/202609151339." - Inputs & outputs: In: data source: gridatlas data; GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. Out: web page; interactive map. Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV. - Downstream impact: Used directly by 1 file: Galaxies Wafers — Iterations Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/). Reached from 18 other entry points, including 404 (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/404.html); Iterations — 24 Electrification Model Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/24-electrification-model/); Iterations — 25 One Feeder Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/25-one-feeder/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/atlas/. - Signatures: `url(u)`; `$(id)`; `esc(s)`; `setState(id, status, extra)`; `hydrate(l)`; `toggle(l, on)`; `renderPanel()`; `writeURL()`; `readURL()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson]; out [web page; interactive map]; crs []; voltages [400kV, 275kV, 220kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Iterations — 01 Route Alpha - File: galaxies-wafers/iterations/01-route-alpha/app.mjs (JavaScript, 560 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/01-route-alpha/app.mjs#L1-L560 - Page: https://code.globalgrid2050.com/explore-code/s/0487.html#f1 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/ - Synopsis: A JavaScript module in Galaxies Wafers that draws lines meta and families, using SHA-256. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/. - What it achieves (comment): It indexes key (`indexOfKey`), builds gl (`buildGL`) and draws marks (`drawMarks`). The Line Wafer. It responds to pointerdown, pointermove and pointerup events. - What it does: It draws lines meta and families. Defines 31 functions or classes, including $, snapshot, indexOfKey, bin, tier1. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. README: "The page (`index.html`, `app.mjs`, `lib.mjs`) is inherited unchanged from testcode/202609151339." - Inputs & outputs: In: JSON file all-lines.meta.json; JSON file families.json. Out: WebGL/WebGPU drawing. - Downstream impact: Used directly by 5 files: Iterations — 01 Route Alpha Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/); Iterations — 02 Tunnels Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/02-tunnels/); Iterations — 05 Periodic Table Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/05-periodic-table/); Iterations — 07 Code Card Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/07-code-card/); and 1 more. Reached from 1 other entry point, including Iterations — 10 Ground Bridge Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/10-ground-bridge/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/. - Signatures: `$(id)`; `snapshot()`; `indexOfKey(key)`; `bin(name, Kind)`; `tier1()`; `tier2()`; `compile(g, type, src)`; `initGL()`; `fallback2d()`; `buildGL()`; `put(data, name, size, Kind, norm)`; `resize()`; `ensureOverlay()`; `drawMarks()`; `toScreen([x, y])`; `render()`; `x(U.pos[i * 2] - view.x)`; `draw()`; `home()`; `flyTo(key, zoom)`; `nearestKeyAt(cx, cy)`; `wx(cx - view.w / 2)`; `wy(view.h / 2 - cy)`; `famsOf(key)`; `paintPanel(key)` (and 7 more) - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file all-lines.meta.json; JSON file families.json]; out [WebGL/WebGPU drawing]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 5; mentioned by 0 ### Iterations — 01 Route Alpha Page - File: galaxies-wafers/iterations/01-route-alpha/index.html (HTML, 44 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/01-route-alpha/index.html#L1-L44 - Page: https://code.globalgrid2050.com/explore-code/s/0487.html#f2 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/ - Synopsis: A web page in Galaxies Wafers. Published at https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/. - What it achieves (comment): Route Alpha — The Line Wafer, dense modules translucent. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. README: "The page (`index.html`, `app.mjs`, `lib.mjs`) is inherited unchanged from testcode/202609151339." - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 6 estate files (script-src 3, stylesheet 2, link 1); used by 0; mentioned by 0 ### Questions - File: galaxies-wafers/iterations/01-route-alpha/questions.css (CSS, 11 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/01-route-alpha/questions.css#L1-L11 - Page: https://code.globalgrid2050.com/explore-code/s/0487.html#f3 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/ - Synopsis: A style sheet in the iterations folder of Galaxies Wafers. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/. - What it achieves (comment): The Questions panel, collapsed by default. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 7 files: Iterations — 01 Route Alpha Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/); Iterations — 02 Tunnels Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/02-tunnels/); Iterations — 03 Code Particle Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/03-code-particle/); Iterations — 05 Periodic Table Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/05-periodic-table/); and 3 more. It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 7; mentioned by 0 ### Questions - File: galaxies-wafers/iterations/01-route-alpha/questions.mjs (JavaScript, 122 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/01-route-alpha/questions.mjs#L1-L122 - Page: https://code.globalgrid2050.com/explore-code/s/0488.html#f1 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers that works with layer tags (`layerTags`) and single-line diagram (SLD) sentence (`sldSentence`), covering 400kV. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/. - What it achieves (comment): It reads JSON (`readJSON`) and is built from the fmt step (`fmt`) and the answer step (`answer`). Iteration 01, Route Alpha: the owner's three questions and the machine detail line. Its code works with 400 kV. It reads `../../layers/manifest.json`. It responds to resize and toggle events. - What it does: It draws 400kV. Defines 11 functions or classes, including $, fmt, answer, fill, readJSON. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: 400kV. - Inputs & outputs: Voltage levels named: 400kV. - Downstream impact: Used directly by 1 file: Iterations — 01 Route Alpha Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/01-route-alpha/. - Signatures: `$(id)`; `fmt(n)`; `answer(dl, q, parts)`; `fill(ps)`; `readJSON(url)`; `layerTags()`; `s(t.textContent.match(/[A-Z]+/) || ['?'])`; `sldSentence(m, file)`; `text(id)`; `mount(build, machine)`; `fit()`; `paint()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of galaxies-wafers/iterations/09-deeplink-receiver/questions.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Build Tiles - File: galaxies-wafers/iterations/22-fast-zoom/build_tiles.py (Python, 80 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/22-fast-zoom/build_tiles.py#L1-L80 - Page: https://code.globalgrid2050.com/explore-code/s/0488.html#f2 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/22-fast-zoom/ - Synopsis: A Python command-line tool in the iterations folder of Galaxies Wafers that uses SHA-256. It is built from the anchor step (`anchor`) and the tile step (`tile`). - What it achieves (comment): Iteration 22: tile every large layer by radius band, into this directory. - What it does: It loads data. Defines anchor, tile, main. Uses libraries __future__, hashlib, json, math, sys. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: In: JSON file index.json. Out: JSON file index.json. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/22-fast-zoom/. - Signatures: `anchor(f)`; `tile(entry)`; `main()` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file index.json]; out [JSON file index.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Atlas Join - File: galaxies-wafers/iterations/32-spider-and-galaxy/atlas-join.mjs (JavaScript, 109 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/32-spider-and-galaxy/atlas-join.mjs#L1-L109 - Page: https://code.globalgrid2050.com/explore-code/s/0488.html#f3 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/32-spider-and-galaxy/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers that works with atlas urls (`atlasUrls`) and atlas file (`atlasFile`). Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/32-spider-and-galaxy/. - What it achieves (comment): It is built from the node urls helper (`nodeUrls`), the atlas urls helper (`atlasUrls`) and the atlas file helper (`atlasFile`). The shared keys between a spider node and Grid Atlas, read from evidence only. - What it does: It calculates its inputs. Defines 8 functions or classes, including nodeUrls, atlasUrls, atlasFile, declaredLayerIds, add. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'spider'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Downstream impact: Used directly by 1 file: Iterations — 32 Spider and Galaxy (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/32-spider-and-galaxy/). Reached from 90 other entry points, including Iterations — 32 Spider and Galaxy Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/32-spider-and-galaxy/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html). - Signatures: `export nodeUrls(n)`; `export atlasUrls(n)`; `export atlasFile(url)`; `export declaredLayerIds(text, lines)`; `export configLayerIds(html)`; `export receiverLink(contract, receivers)`; `export bucketsForLayer(contract, id)`; `add(id, form)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 — Atlas V9 Page - File: globalgrid2050/202608300453-atlas-v9/index.html (HTML, 32 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/202608300453-atlas-v9/index.html#L1-L32 - Page: https://code.globalgrid2050.com/explore-code/s/0488.html#f4 - Published at: https://globalgrid2050.com/202608300453-atlas-v9/ - Synopsis: A web page using data from the GridAtlas repository. Published at https://globalgrid2050.com/202608300453-atlas-v9/. - What it achieves (comment): Grid Atlas V9 — canonical application. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: Out: web page. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/202608300453-atlas-v9/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (link 1); used by 0; mentioned by 0 ### Navigation Browser - File: globalgrid2050/automation/mobile_map_ui/20261118-v942/navigation.browser.mjs (JavaScript, 43 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/automation/mobile_map_ui/20261118-v942/navigation.browser.mjs#L1-L43 - Page: https://code.globalgrid2050.com/explore-code/s/0488.html#f5 - Synopsis: A JavaScript module in the mobile map ui folder of GlobalGrid2050 that reads inputs for county and sort projects. - What it does: It loads data. Uses libraries node:assert/strict, node:http, node:fs, node:module, node:path. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage field_execution (path word 'navigation'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: form fields (user input). - Downstream impact: Used directly by 1 file: GlobalGrid2050 V934 Preview Acceptance Workflow (globalgrid2050). - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 1 estate file (url-import-meta 1); used by 1; mentioned by 0 ### Navigation - File: globalgrid2050/automation/mobile_map_ui/20261118-v942/navigation.mjs (JavaScript, 54 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/automation/mobile_map_ui/20261118-v942/navigation.mjs#L1-L54 - Page: https://code.globalgrid2050.com/explore-code/s/0488.html#f6 - Synopsis: A JavaScript module in the mobile map ui folder of GlobalGrid2050. It is built from the decorate step (`decorate`), the remember step (`remember`) and the restore step (`restore`). - What it achieves (comment): Native touch navigation: do not open a background tab or wait on a fetch. It responds to click and change events. - What it does: Defines decorate, remember, restore. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'navigation'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 2 files: Navigation Browser (globalgrid2050); GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/). Reached from 5 other entry points, including GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050); GlobalGrid2050 V934 Preview Acceptance Workflow (globalgrid2050); V923 Public Readback Workflow (neural-link-between-agents). - Signatures: `decorate()`; `remember()`; `restore()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GridAtlas Resolve - File: globalgrid2050/automation/pipeline_release/gridatlas_resolve.py (Python, 114 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/automation/pipeline_release/gridatlas_resolve.py#L1-L114 - Page: https://code.globalgrid2050.com/explore-code/s/0488.html#f7 - Synopsis: A Python command-line tool in the pipeline release folder of GlobalGrid2050 that fetches the Renewable Energy Planning Database (REPD) register, using SHA-256. - What it achieves (comment): Which Pipeline News MAP links does a GridAtlas register resolve by REPD Ref ID? - What it does: It fetches the REPD register. Defines main. Uses libraries hashlib, json, sys, urllib.request, collections. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file build_manifest.json; command-line arguments. - Downstream impact: Used directly by 2 files: Verify (globalgrid2050); GlobalGrid2050 Verify Pipeline Versions Workflow (globalgrid2050). Reached from 4 other entry points, including GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050); GlobalGrid2050 Publish Pipeline V923 Ledger Workflow (globalgrid2050); GlobalGrid2050 V923 Six Hour Python Repair Workflow (globalgrid2050). - Signatures: `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file build_manifest.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Bake - File: globalgrid2050/energy-transition-simulator/202609280014/mod/lidar-onsite/bake.py (Python, 47 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/mod/lidar-onsite/bake.py#L1-L47 - Page: https://code.globalgrid2050.com/explore-code/s/0488.html#f8 - Synopsis: A Python module in the LiDAR onsite folder of GlobalGrid2050 that reads LiDAR terrain. - What it achieves (comment): Bake cached EA LiDAR 1 m DTM around a point into a small file the LiDAR-onsite module draws. - What it does: It loads LiDAR terrain. Uses libraries sys, json, base64, os, numpy. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage site_feasibility (path word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: JSON file index.json; command-line arguments. Out: JSON file. - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file index.json; command-line arguments]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### LiDAR Stream - File: globalgrid2050/energy-transition-simulator/202609280259/mod/lidar-stream.js (JavaScript, 310 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280259/mod/lidar-stream.js#L1-L310 - Page: https://code.globalgrid2050.com/explore-code/s/0489.html#f1 - Synopsis: A JavaScript file in GlobalGrid2050 that maps LiDAR terrain, using EPSG:27700 and OSTN15. It saves day (`saveDay`), sets open (`setOpen`) and shows text (`showText`). - What it achieves (comment): Rule R5 (the site tile) in the browser. It responds to click, resize and keydown events. - What it does: It maps LiDAR terrain. Defines 27 functions or classes, including PF, wait, today, dayUsed, saveDay. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage site_feasibility (path word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: browser storage (getItem). Out: browser storage (setItem). Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. - Signatures: `PF()`; `wait(f)`; `today()`; `dayUsed()`; `saveDay()`; `panel()`; `setOpen(v)`; `summary(t)`; `show()`; `showText()`; `frame(t)`; `ax(ex.x - o.x)`; `hAt(r, i, j)`; `exag()`; `elevNow()`; `terrainAt(lon, lat)`; `demAt(lon, lat)`; `heightAt(e, n)`; `probe(n = 200)`; `blk(t.blks || [])`; `draw(key)`; `X(a, b)`; `satMode()`; `onAdd(m, gl)`; `render(gl, args)` (and 9 more) - VEDIC: HEIGHT (GG2050-VEDIC-000011): Solar Design Studio / LiDAR · Mathematics / Raster sampling. bng_easting_m, bng_northing_m -> height_receipt_or_null - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [browser storage (getItem)]; out [browser storage (setItem)]; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Grid Engine — Route Obstacles Page - File: globalgrid2050/grid_engine/202609060213-route-obstacles/index.html (HTML, 254 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/grid_engine/202609060213-route-obstacles/index.html#L1-L254 - Page: https://code.globalgrid2050.com/explore-code/s/0489.html#f2 - Published at: https://globalgrid2050.com/grid_engine/202609060213-route-obstacles/ - Synopsis: A web page in GlobalGrid2050 covering motorways and A roads, and uses data from the ventus-grid-engine repository. Published at https://globalgrid2050.com/grid_engine/202609060213-route-obstacles/. - What it achieves (comment): It parses crossings (`parseCrossings`) and is built from the num step (`num`) and the fig step (`fig`). Route Obstacles Workbench — Ventus Grid Engine. It responds to input events. - What it does: It draws motorways and A roads. Defines 7 functions or classes, including el, num, fig, refuse, bind. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: motorways, A roads. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 3 files: Homepage V090 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v090.html); Homepage V091 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v091.html); Homepage V093 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v093.html). It is itself an entry point, published at https://globalgrid2050.com/grid_engine/202609060213-route-obstacles/. - Signatures: `el(id)`; `num(id)`; `fig(target, r, decimals = 1, over = false)`; `refuse(target, message)`; `bind()`; `parseCrossings(raw, widthM, setbackM, depthM)`; `render()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 3 estate files (link 3); used by 3; mentioned by 0 ### Whole Site Route View - File: globalgrid2050/kuiper-grid/drawing/whole-site-route-view.js (JavaScript, 48 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/kuiper-grid/drawing/whole-site-route-view.js#L1-L48 - Page: https://code.globalgrid2050.com/explore-code/s/0489.html#f3 - Published at: https://globalgrid2050.com/kuiper-grid/drawing/ - Synopsis: A JavaScript file in the drawing folder of GlobalGrid2050 that draws Kuiper proposed site routes. Served with the page at https://globalgrid2050.com/kuiper-grid/drawing/. - What it achieves (name): It syncs scope (`syncScope`) and is built from the native site helper (`nativeSite`) and the invalidate step (`invalidate`). Defines `syncScope`, `nativeSite`, `signature` and 5 more. It responds to input and click events. - What it does: It draws Kuiper proposed site routes. Defines 8 functions or classes, including syncScope, nativeSite, signature, invalidate, requireCurrent. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'kuiper'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: form fields (user input). Out: JSON file kuiper-proposed-site-routes.json; downloaded file kuiper-proposed-site-routes.json; canvas drawing. - Downstream impact: Used directly by 1 file: Kuiper Grid — Drawing Page (globalgrid2050, https://globalgrid2050.com/kuiper-grid/drawing/). Reached from 109 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); GlobalGrid2050 — Compute Page (globalgrid2050, https://globalgrid2050.com/compute/). It is itself an entry point, published at https://globalgrid2050.com/kuiper-grid/drawing/. - Signatures: `syncScope()`; `nativeSite()`; `signature()`; `invalidate(message='Proposal or spacing changed. Rebuild site routes.')`; `requireCurrent()`; `sceneData()`; `drawing()`; `show()`; `open(id)`; `attempt(fn)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [JSON file kuiper-proposed-site-routes.json; downloaded file kuiper-proposed-site-routes.json; canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Whole Site Routes - File: globalgrid2050/kuiper-grid/drawing/whole-site-routes.js (JavaScript, 57 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/kuiper-grid/drawing/whole-site-routes.js#L1-L57 - Page: https://code.globalgrid2050.com/explore-code/s/0489.html#f4 - Published at: https://globalgrid2050.com/kuiper-grid/drawing/ - Synopsis: A JavaScript module in the drawing folder of GlobalGrid2050 that works with cables. Served with the page at https://globalgrid2050.com/kuiper-grid/drawing/. - What it achieves (comment): It is built from the clone step (`clone`), the finite step (`finite`) and the length step (`length`). Generic whole-site collection geometry. No project boundary or MV circuit inference. - What it does: It calculates cables. Defines 6 functions or classes, including clone, finite, length, roadUnion, build. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'kuiper'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). Domain terms in the code: cables. README: "Whole-site route overview: build a power-block proposal, then open Whole-site roads & collection routes below the canvas." - Downstream impact: Used directly by 1 file: Kuiper Grid — Drawing Page (globalgrid2050, https://globalgrid2050.com/kuiper-grid/drawing/). Reached from 109 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); GlobalGrid2050 — Compute Page (globalgrid2050, https://globalgrid2050.com/compute/). It is itself an entry point, published at https://globalgrid2050.com/kuiper-grid/drawing/. - Signatures: `clone(x)`; `finite(v,name,min,max,integer=false)`; `length(points)`; `roadUnion(roads)`; `build(proposal,settings)`; `materializeStation(id)`; `locateInverter(id)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Atlas Pointer Deep Link - File: globalgrid2050/pipelinenews_intelligence/202609040144/assets/202609040044-atlas-pointer-deep-link.mjs (JavaScript, 128 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/pipelinenews_intelligence/202609040144/assets/202609040044-atlas-pointer-deep-link.mjs#L1-L128 - Page: https://code.globalgrid2050.com/explore-code/s/0490.html#f1 - Synopsis: A JavaScript module in the assets folder of GlobalGrid2050 that works with the Renewable Energy Planning Database (REPD) register and uses data from the GridAtlas repository. - What it achieves (comment): It builds atlas v9 deep link (`buildAtlasV9DeepLink`) and is built from the number in range helper (`numberInRange`) and the project fields helper (`projectFields`). One fail-closed Pipeline News -> GridAtlas transport contract. - What it does: It calculates the REPD register. Defines numberInRange, projectFields, buildAtlasV9DeepLink, selfTest, check. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 4 files: Wider Fleet (globalgrid2050); GlobalGrid2050 — PipelineNews Intelligence (globalgrid2050); Wider Fleet (globalgrid2050); Testcode — Pipeline (globalgrid2050). Reached from 56 other entry points, including GlobalGrid2050 — PipelineNews Intelligence Page (globalgrid2050, https://globalgrid2050.com/pipelinenews_intelligence/202609050309/); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). - Signatures: `export buildAtlasV9DeepLink(project)`; `export selfTest()`; `numberInRange(value, minimum, maximum)`; `projectFields(project)`; `check(name, ok)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 4; mentioned by 0 ### GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v3 Page - File: globalgrid2050/repd_grid_atlasv3/index.html (HTML, 1200 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv3/index.html#L1-L1200 - Page: https://code.globalgrid2050.com/explore-code/s/0490.html#f2 - Published at: https://globalgrid2050.com/repd_grid_atlasv3/ - Synopsis: A map page that maps grid 400kV, grid 275kV, grid 220kV and grid 132kV, using haversine. Published at https://globalgrid2050.com/repd_grid_atlasv3/. It normalizes status (`normalizeStatus`), toggles curtain (`toggleCurtain`) and gets radius (`getRadiusValue`). - What it achieves (code): Its `snapLines` function gives line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged from line features and substation point features (VEDIC: snap line ends to substations). Its code works with 100 kW, 11 kV and 132 kV. It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps grid 400kV, grid 275kV, grid 220kV and grid 132kV. Defines 37 functions or classes, including deepFreeze, escapeHTML, normalizeStatus, enterFullscreen, exitFullscreen. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Inputs & outputs: In: GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. Out: web page; interactive map. Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Downstream impact: Used directly by 8 files: GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage V030 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v030.html); Homepage V031 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v031.html); Homepage V032 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v032.html); and 4 more. Reached from 87 other entry points, including GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://globalgrid2050.com/repd_grid_atlasv3/. - Signatures: `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `enterFullscreen()`; `exitFullscreen()`; `toggleCurtain()`; `getRadiusValue()`; `validateRadiusInput()`; `fmt(n, decimals)`; `updateMeasureDisplay()`; `j(i + 1)`; `updateMeasureLayers()`; `clearMeasure()`; `toggleMeasureMode()`; `updateUIState(id, state, stats)`; `class FetchQueue`; `constructor(concurrency)`; `add(task)`; `fetchWithTimeout(url, ms = 15000)`; `fetchAndParseGeoJSON(url)`; `snapLines(features, subs)`; `snapCoordinate(coord)`; `dx(coord[0] - sc[0])`; `dy(coord[1] - sc[1])`; `d(dx * dx)` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson]; out [web page; interactive map]; crs []; voltages [400kV, 275kV, 220kV, 132kV, 66kV, 11kV] - Edges: uses 0 estate files; used by 8; mentioned by 0 ### GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v5 Page - File: globalgrid2050/repd_grid_atlasv5/index.html (HTML, 249 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv5/index.html#L1-L249 - Page: https://code.globalgrid2050.com/explore-code/s/0492.html#f1 - Published at: https://globalgrid2050.com/repd_grid_atlasv5/ - Synopsis: A web page that draws grid 400kV, grid 275kV, grid 220kV and grid 132kV. Published at https://globalgrid2050.com/repd_grid_atlasv5/. - What it achieves (name): Its code works with 100 kW, 11 kV and 132 kV. - What it does: It draws grid 400kV, grid 275kV, grid 220kV and grid 132kV. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Inputs & outputs: In: GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. Out: web page. Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Downstream impact: Used directly by 8 files: GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage V030 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v030.html); Homepage V031 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v031.html); Homepage V032 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v032.html); and 4 more. Reached from 87 other entry points, including GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://globalgrid2050.com/repd_grid_atlasv5/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson]; out [web page]; crs []; voltages [400kV, 275kV, 220kV, 132kV, 66kV, 11kV] - Edges: uses 2 estate files (stylesheet 1, script-src 1); used by 8; mentioned by 0 ### Fetch Elizabeth Line v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/fetch_elizabeth_linev6.yml (YAML, 47 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/fetch_elizabeth_linev6.yml#L1-L47 - Page: https://code.globalgrid2050.com/explore-code/s/0492.html#f2 - Synopsis: A configuration file in GlobalGrid2050. Runs on a schedule and by hand. - What it achieves (comment): Runs `scripts/fetch_elizabeth_line.py`. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Eurostar v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/fetch_eurostarv6.yml (YAML, 47 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/fetch_eurostarv6.yml#L1-L47 - Page: https://code.globalgrid2050.com/explore-code/s/0492.html#f3 - Synopsis: A configuration file in GlobalGrid2050. Runs on a schedule and by hand. - What it achieves (comment): Runs `scripts/fetch_eurostar.py`. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Global Ports v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/fetch_global_portsv6.yml (YAML, 50 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/fetch_global_portsv6.yml#L1-L50 - Page: https://code.globalgrid2050.com/explore-code/s/0492.html#f4 - Synopsis: A configuration file in GlobalGrid2050. Runs on a schedule and by hand. - What it achieves (comment): Runs `scripts/fetch_global_ports.py`. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Motorway Services v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/fetch_motorway_servicesv6.yml (YAML, 49 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/fetch_motorway_servicesv6.yml#L1-L49 - Page: https://code.globalgrid2050.com/explore-code/s/0492.html#f5 - Synopsis: A configuration file in GlobalGrid2050 covering motorways. Runs on a schedule and by hand. - What it achieves (comment): Runs `scripts/fetch_motorway_services.py`. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: motorways. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Stadiums v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/fetch_stadiumsv6.yml (YAML, 47 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/fetch_stadiumsv6.yml#L1-L47 - Page: https://code.globalgrid2050.com/explore-code/s/0492.html#f6 - Synopsis: A configuration file in GlobalGrid2050. Runs on a schedule and by hand. - What it achieves (comment): Runs `scripts/fetch_stadiums.py`. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Generate Deep Subsea v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/generate_deep_subseav6.yml (YAML, 20 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/generate_deep_subseav6.yml#L1-L20 - Page: https://code.globalgrid2050.com/explore-code/s/0492.html#f7 - Synopsis: A configuration file in GlobalGrid2050. Runs by hand. - What it achieves (comment): Runs `scripts/generate_deep_subsea.py`. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/.github/workflows/generate_deep_subsea.yml) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Generate Global Hydrocarbons v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/generate_global_hydrocarbonsv6.yml (YAML, 37 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/generate_global_hydrocarbonsv6.yml#L1-L37 - Page: https://code.globalgrid2050.com/explore-code/s/0492.html#f8 - Synopsis: A configuration file in GlobalGrid2050. Runs on a schedule and by hand. - What it achieves (comment): Runs `scripts/fetch_global_hydrocarbons.py`. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Generate Repo Structure v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/generate_repo_structurev6.yml (YAML, 37 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/generate_repo_structurev6.yml#L1-L37 - Page: https://code.globalgrid2050.com/explore-code/s/0492.html#f9 - Synopsis: A configuration file in GlobalGrid2050. Runs on push and by hand. - What it achieves (name): Its name says it generates repo structure. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Jekyll Gh Pages v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/jekyll-gh-pagesv6.yml (YAML, 51 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/jekyll-gh-pagesv6.yml#L1-L51 - Page: https://code.globalgrid2050.com/explore-code/s/0492.html#f10 - Synopsis: A configuration file in GlobalGrid2050. Runs on push and by hand. - What it achieves (comment): Sample workflow for building and deploying a Jekyll site to GitHub Pages. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Renewable Energy Planning Database (REPD) Sync v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/repd_syncv6.yml (YAML, 36 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/repd_syncv6.yml#L1-L36 - Page: https://code.globalgrid2050.com/explore-code/s/0492.html#f11 - Synopsis: A configuration file in GlobalGrid2050 covering the REPD register. Runs on a schedule and by hand. - What it achieves (comment): Named “Ventus REPD Master Sync”; runs GlobalGrid2050 Renewable Energy Planning Database (REPD) Updater (`scripts/repd_updater.py`). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Update Grid Data v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/update-grid-datav6.yml (YAML, 73 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/update-grid-datav6.yml#L1-L73 - Page: https://code.globalgrid2050.com/explore-code/s/0493.html#f1 - Synopsis: A configuration file in GlobalGrid2050. Runs by hand. - What it achieves (comment): Named “fetch-national-grid-data”; runs `scripts/fetch_grid_data.py`, `scripts/fetch_220kv_data.py` and `scripts/fetch_66kv_data.py`. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 220kV, 66kV. - Inputs & outputs: Voltage levels named: 220kV, 66kV. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/.github/workflows/update-grid-data.yml) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [220kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Update EV Chargers v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/update_ev_chargersv6.yml (YAML, 49 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/update_ev_chargersv6.yml#L1-L49 - Page: https://code.globalgrid2050.com/explore-code/s/0493.html#f2 - Synopsis: A configuration file in GlobalGrid2050. Runs on a schedule and by hand. - What it achieves (comment): Runs `scripts/fetch_ev_chargers.py`. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Update Metros Trams v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/update_metros_tramsv6.yml (YAML, 44 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/update_metros_tramsv6.yml#L1-L44 - Page: https://code.globalgrid2050.com/explore-code/s/0493.html#f3 - Synopsis: A configuration file in GlobalGrid2050. Runs on a schedule and by hand. - What it achieves (comment): Named “Fetch UK Metros and Trams”; runs `scripts/fetch_metros_trams.py`. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Update Prices v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/update_pricesv6.yml (YAML, 58 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/update_pricesv6.yml#L1-L58 - Page: https://code.globalgrid2050.com/explore-code/s/0493.html#f4 - Synopsis: A configuration file in GlobalGrid2050. Runs on a schedule and by hand. - What it achieves (comment): Runs `scripts/update_prices_lv.py`, `scripts/update_prices.py` and `scripts/update_metal_trends.py`. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 33kV. - Inputs & outputs: Voltage levels named: 33kV. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Update Supermarkets v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/update_supermarketsv6.yml (YAML, 46 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/update_supermarketsv6.yml#L1-L46 - Page: https://code.globalgrid2050.com/explore-code/s/0493.html#f5 - Synopsis: A configuration file in GlobalGrid2050. Runs on a schedule and by hand. - What it achieves (comment): Runs `scripts/fetch_supermarkets.py`. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Update Tube Stations v6 - File: globalgrid2050/repd_grid_atlasv6/.github/workflows/update_tube_stationsv6.yml (YAML, 44 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/.github/workflows/update_tube_stationsv6.yml#L1-L44 - Page: https://code.globalgrid2050.com/explore-code/s/0493.html#f6 - Synopsis: A configuration file in GlobalGrid2050. Runs on a schedule and by hand. - What it achieves (comment): Named “Fetch London Underground Stations”; runs `scripts/fetch_london_underground.py`. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v6 Page - File: globalgrid2050/repd_grid_atlasv6/index.html (HTML, 254 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/index.html#L1-L254 - Page: https://code.globalgrid2050.com/explore-code/s/0493.html#f7 - Published at: https://globalgrid2050.com/repd_grid_atlasv6/ - Synopsis: A web page that draws grid 400kV, grid 275kV, grid 220kV and grid 132kV. Published at https://globalgrid2050.com/repd_grid_atlasv6/. - What it achieves (comment): UK Region v6 (Experimental). Its code works with 100 kW, 11 kV and 132 kV. - What it does: It draws grid 400kV, grid 275kV, grid 220kV and grid 132kV. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Inputs & outputs: In: GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. Out: web page. Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Downstream impact: Used directly by 8 files: GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage V030 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v030.html); Homepage V031 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v031.html); Homepage V032 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v032.html); and 4 more. Reached from 87 other entry points, including GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://globalgrid2050.com/repd_grid_atlasv6/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson]; out [web page]; crs []; voltages [400kV, 275kV, 220kV, 132kV, 66kV, 11kV] - Edges: uses 2 estate files (stylesheet 1, script-src 1); used by 8; mentioned by 0 ### Fetch 220kV Data v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_220kv_datav6.py (Python, 59 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_220kv_datav6.py#L1-L59 - Page: https://code.globalgrid2050.com/explore-code/s/0493.html#f8 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches grid 220kV and cables from OpenStreetMap (Overpass). - What it achieves (name): Its name says it fetches 220kV data. Defines `fetch_220kv_data`. Its code works with 220 kV. - What it does: It fetches grid 220kV and cables. Defines fetch_220kv_data. Uses libraries requests, json, time. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: cables, 220kV. - Inputs & outputs: In: data source: OpenStreetMap (Overpass); GeoJSON file grid_220kv.geojson. Out: JSON file. Voltage levels named: 220kV. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `fetch_220kv_data(filename="grid_220kv.geojson")` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass); GeoJSON file grid_220kv.geojson]; out [JSON file]; crs []; voltages [220kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch 66kV Data v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_66kv_datav6.py (Python, 59 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_66kv_datav6.py#L1-L59 - Page: https://code.globalgrid2050.com/explore-code/s/0493.html#f9 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches grid 66kV and cables from OpenStreetMap (Overpass). - What it achieves (name): Its name says it fetches 66kV data. Defines `fetch_66kv_data`. Its code works with 66 kV. - What it does: It fetches grid 66kV and cables. Defines fetch_66kv_data. Uses libraries requests, json, time. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: cables, 66kV. - Inputs & outputs: In: data source: OpenStreetMap (Overpass); GeoJSON file grid_66kv.geojson. Out: JSON file. Voltage levels named: 66kV. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `fetch_66kv_data(filename="grid_66kv.geojson")` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass); GeoJSON file grid_66kv.geojson]; out [JSON file]; crs []; voltages [66kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Airports v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_airportsv6.py (Python, 71 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_airportsv6.py#L1-L71 - Page: https://code.globalgrid2050.com/explore-code/s/0494.html#f1 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 using data from OpenStreetMap (Overpass). - What it achieves (name): Its name says it fetches airports. Defines `fetch_airports`. It writes `airports.geojson`. - What it does: It fetches data. Defines fetch_airports. Uses libraries requests, json, time. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass). Out: GeoJSON file airports.geojson; JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `fetch_airports()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass)]; out [GeoJSON file airports.geojson; JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Datacentres v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_datacentresv6.py (Python, 75 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_datacentresv6.py#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0494.html#f2 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 using data from OpenStreetMap (Overpass). - What it achieves (name): Its name says it fetches datacentres. Defines `fetch_data_centres`. It writes `datacentres.geojson`. - What it does: It fetches data. Defines fetch_data_centres. Uses libraries requests, json, time. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass). Out: GeoJSON file datacentres.geojson; JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `fetch_data_centres()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass)]; out [GeoJSON file datacentres.geojson; JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Elizabeth Line v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_elizabeth_linev6.py (Python, 121 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_elizabeth_linev6.py#L1-L121 - Page: https://code.globalgrid2050.com/explore-code/s/0494.html#f3 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 using data from OpenStreetMap (Overpass). - What it achieves (comment): It builds query (`build_query`) and is built from the centroid step (`centroid`) and the way to ring helper (`way_to_ring`). Use the primary, fast Overpass API endpoint. It writes `elizabeth_line.geojson`. - What it does: It fetches data. Defines 6 functions or classes, including build_query, centroid, way_to_ring, process_data, handle_element. Uses libraries requests, json, math. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass). Out: GeoJSON file elizabeth_line.geojson; JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `build_query()`; `centroid(coords: list)`; `way_to_ring(way: dict, nodes: dict)`; `process_data(data: dict)`; `handle_element(el_id, tags, lon, lat)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass)]; out [GeoJSON file elizabeth_line.geojson; JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Eurostar v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_eurostarv6.py (Python, 170 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_eurostarv6.py#L1-L170 - Page: https://code.globalgrid2050.com/explore-code/s/0494.html#f4 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 using data from OpenStreetMap (Overpass). - What it achieves (comment): It builds query (`build_query`) and is built from the centroid step (`centroid`) and the way to ring helper (`way_to_ring`). Use the primary, fast Overpass API endpoint. It writes `eurostar.geojson`. - What it does: It fetches data. Defines 6 functions or classes, including build_query, centroid, way_to_ring, process_data, handle_station. Uses libraries requests, json. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass). Out: GeoJSON file eurostar.geojson; JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `build_query()`; `centroid(coords: list)`; `way_to_ring(way: dict, nodes: dict)`; `process_data(data: dict)`; `handle_station(el_id, tags, lon, lat)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass)]; out [GeoJSON file eurostar.geojson; JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch EV Chargers v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_ev_chargersv6.py (Python, 114 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_ev_chargersv6.py#L1-L114 - Page: https://code.globalgrid2050.com/explore-code/s/0494.html#f5 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050. - What it achieves (name): Its name says it fetches EV chargers. Defines `fetch_ev_chargers`. Its code works with 100 kW. - What it does: It fetches data. Defines fetch_ev_chargers. Uses libraries requests, json, time, os. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: GeoJSON file ev_chargers.geojson. Out: JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `fetch_ev_chargers()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file ev_chargers.geojson]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Global Hydrocarbons v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_global_hydrocarbonsv6.py (Python, 215 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_global_hydrocarbonsv6.py#L1-L215 - Page: https://code.globalgrid2050.com/explore-code/s/0495.html#f1 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches gem hydrocarbons master from OpenStreetMap (Overpass). It parses gem (`parse_gem_data`), fetches OSM (`fetch_osm_data`) and saves GeoJSON (`save_geojson`). - What it achieves (comment): Calculate the absolute path of the repository root. - What it does: It fetches gem hydrocarbons master. Defines haversine_distance, parse_gem_data, fetch_osm_data, deduplicate_and_merge, save_geojson. Uses libraries requests, json, math, os, sys. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass); CSV file gem_hydrocarbons_master.csv; GeoJSON file global_hydrocarbons.geojson. Out: JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `haversine_distance(lat1, lon1, lat2, lon2)`; `parse_gem_data()`; `fetch_osm_data()`; `deduplicate_and_merge(gem_features, osm_raw)`; `save_geojson(geojson_data, filename="global_hydrocarbons.geojson")` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass); CSV file gem_hydrocarbons_master.csv; GeoJSON file global_hydrocarbons.geojson]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Global Ports v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_global_portsv6.py (Python, 118 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_global_portsv6.py#L1-L118 - Page: https://code.globalgrid2050.com/explore-code/s/0495.html#f2 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 using data from OpenStreetMap (Overpass). It fetches ports (`fetch_ports`), converts GeoJSON (`convert_to_geojson`) and saves GeoJSON (`save_geojson`). - What it achieves (comment): Calculate the absolute path of the repository root. - What it does: It fetches data. Defines haversine_distance, fetch_ports, convert_to_geojson, save_geojson. Uses libraries requests, json, math, os, sys. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass); GeoJSON file global_ports.geojson. Out: JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `haversine_distance(lat1, lon1, lat2, lon2)`; `fetch_ports()`; `convert_to_geojson(osm_data)`; `save_geojson(geojson_data, filename="global_ports.geojson")` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass); GeoJSON file global_ports.geojson]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Grid Data v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_grid_datav6.py (Python, 79 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_grid_datav6.py#L1-L79 - Page: https://code.globalgrid2050.com/explore-code/s/0495.html#f3 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches grid 400kV, grid 275kV and grid 132kV from OpenStreetMap (Overpass). - What it achieves (name): Its name says it fetches grid data. Defines `fetch_and_convert`. Its code works with 132 kV, 275 kV and 400 kV. - What it does: It fetches grid 400kV, grid 275kV and grid 132kV. Defines fetch_and_convert. Uses libraries requests, json, os, time. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 275kV, 132kV. - Inputs & outputs: In: data source: OpenStreetMap (Overpass); GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_132kv.geojson. Out: JSON file. Voltage levels named: 400kV, 275kV, 132kV. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `fetch_and_convert(voltage, filename, timeout_secs=300)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass); GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_132kv.geojson]; out [JSON file]; crs []; voltages [400kV, 275kV, 132kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Hs2v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_hs2v6.py (Python, 69 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_hs2v6.py#L1-L69 - Page: https://code.globalgrid2050.com/explore-code/s/0495.html#f4 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 using data from OpenStreetMap (Overpass). - What it achieves (name): Defines `fetch_hs2`. It writes `hs2.geojson`. - What it does: It fetches data. Defines fetch_hs2. Uses libraries requests, json, time. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass). Out: GeoJSON file hs2.geojson; JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `fetch_hs2()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass)]; out [GeoJSON file hs2.geojson; JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Industrial Offtakers v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_industrial_offtakersv6.py (Python, 141 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_industrial_offtakersv6.py#L1-L141 - Page: https://code.globalgrid2050.com/explore-code/s/0495.html#f5 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 using data from OpenStreetMap (Overpass). - What it achieves (name): Its name says it fetches industrial offtakers. Defines `fetch_overpass_data`, `process_osm_data` and `fetch_heavy_industry`. It writes `industrial_offtakers.geojson`. - What it does: It fetches data. Defines fetch_overpass_data, process_osm_data, fetch_heavy_industry. Uses libraries requests, json, time. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass). Out: GeoJSON file industrial_offtakers.geojson; JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `fetch_overpass_data(query, name)`; `process_osm_data(osm_data, geojson_features, seen)`; `fetch_heavy_industry()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass)]; out [GeoJSON file industrial_offtakers.geojson; JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch London Underground v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_london_undergroundv6.py (Python, 58 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_london_undergroundv6.py#L1-L58 - Page: https://code.globalgrid2050.com/explore-code/s/0495.html#f6 - Synopsis: A Python module in the scripts folder of GlobalGrid2050 that uses ISO3166-1 using data from OpenStreetMap (Overpass). - What it achieves (comment): Overpass query to find London Underground stations. - What it does: It fetches data. Uses libraries requests, json. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass); GeoJSON file london_underground.geojson. Out: JSON file. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass); GeoJSON file london_underground.geojson]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Metros Trams v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_metros_tramsv6.py (Python, 70 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_metros_tramsv6.py#L1-L70 - Page: https://code.globalgrid2050.com/explore-code/s/0496.html#f1 - Synopsis: A Python module in the scripts folder of GlobalGrid2050 that fetches UK metros trams, using ISO3166-1 from OpenStreetMap (Overpass). - What it achieves (comment): Overpass query to find UK Metros, Trams, and Light Rail (excluding Glasgow Subway). - What it does: It fetches UK metros trams. Uses libraries requests, json. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass); GeoJSON file uk_metros_trams.geojson. Out: JSON file. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass); GeoJSON file uk_metros_trams.geojson]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Motorway Services v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_motorway_servicesv6.py (Python, 89 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_motorway_servicesv6.py#L1-L89 - Page: https://code.globalgrid2050.com/explore-code/s/0496.html#f2 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches motorways from OpenStreetMap (Overpass). - What it achieves (name): Its name says it fetches motorway services. Defines `build_query` and `process_data`. It writes `motorway_services.geojson`. - What it does: It fetches motorways. Defines build_query, process_data, main. Uses libraries requests, json. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: motorways. - Inputs & outputs: In: data source: OpenStreetMap (Overpass). Out: GeoJSON file motorway_services.geojson; JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `build_query()`; `process_data(data: dict)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass)]; out [GeoJSON file motorway_services.geojson; JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Power Plants v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_power_plantsv6.py (Python, 73 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_power_plantsv6.py#L1-L73 - Page: https://code.globalgrid2050.com/explore-code/s/0496.html#f3 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 using data from OpenStreetMap (Overpass). - What it achieves (name): Its name says it fetches power plants. Defines `fetch_power_plants`. It writes `power_plants.geojson`. - What it does: It fetches data. Defines fetch_power_plants. Uses libraries requests, json, time. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass). Out: GeoJSON file power_plants.geojson; JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `fetch_power_plants()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass)]; out [GeoJSON file power_plants.geojson; JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Railways v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_railwaysv6.py (Python, 70 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_railwaysv6.py#L1-L70 - Page: https://code.globalgrid2050.com/explore-code/s/0496.html#f4 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 using data from OpenStreetMap (Overpass). - What it achieves (name): Its name says it fetches railways. Defines `fetch_railways`. It writes `railways.geojson`. - What it does: It fetches data. Defines fetch_railways. Uses libraries requests, json, time. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass). Out: GeoJSON file railways.geojson; JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `fetch_railways()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass)]; out [GeoJSON file railways.geojson; JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Stadiums v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_stadiumsv6.py (Python, 161 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_stadiumsv6.py#L1-L161 - Page: https://code.globalgrid2050.com/explore-code/s/0496.html#f5 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 using data from OpenStreetMap (Overpass). - What it achieves (comment): It builds query (`build_query`) and is built from the is in UK ireland helper (`is_in_uk_ireland`) and the polygon area m2 helper (`polygon_area_m2`). Use the primary, fast Overpass API endpoint. It writes `stadiums.geojson`. - What it does: It fetches data. Defines 8 functions or classes, including build_query, is_in_uk_ireland, polygon_area_m2, centroid, way_to_ring. Uses libraries requests, json, math. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass). Out: GeoJSON file stadiums.geojson; JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `build_query()`; `is_in_uk_ireland(lon: float, lat: float)`; `polygon_area_m2(coords: list)`; `centroid(coords: list)`; `way_to_ring(way: dict, nodes: dict)`; `process_data(data: dict)`; `handle_element(el_id, tags, coords)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass)]; out [GeoJSON file stadiums.geojson; JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Supermarkets v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_supermarketsv6.py (Python, 203 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_supermarketsv6.py#L1-L203 - Page: https://code.globalgrid2050.com/explore-code/s/0496.html#f6 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches supermarkets tesco, supermarkets sainsburys, supermarkets asda and supermarkets morrisons from OpenStreetMap (Overpass). - What it achieves (comment): It builds bulk query (`build_bulk_query`), fetches overpass (`fetch_overpass`) and matches brand (`match_brand`). Use the primary, fast Overpass API endpoint. - What it does: It fetches supermarkets tesco, supermarkets sainsburys, supermarkets asda and supermarkets morrisons. Defines 11 functions or classes, including build_bulk_query, fetch_overpass, node_map, polygon_area_m2, centroid. Uses libraries requests, json, math, collections. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass); GeoJSON file supermarkets_tesco.geojson; GeoJSON file supermarkets_sainsburys.geojson; GeoJSON file supermarkets_asda.geojson; GeoJSON file supermarkets_morrisons.geojson; GeoJSON file supermarkets_aldi.geojson; GeoJSON file supermarkets_lidl.geojson; GeoJSON file supermarkets_waitrose.geojson. Out: JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `build_bulk_query()`; `fetch_overpass(query: str)`; `node_map(elements: list)`; `polygon_area_m2(coords: list)`; `centroid(coords: list)`; `way_to_ring(way: dict, nodes: dict)`; `match_brand(tags: dict)`; `process_bulk_data(data: dict)`; `_feature(lon, lat, tags, area, osm_id, osm_type, brand)`; `deduplicate(features: list, tol_m: float = 80.0)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass); GeoJSON file supermarkets_tesco.geojson; GeoJSON file supermarkets_sainsburys.geojson; GeoJSON file supermarkets_asda.geojson; GeoJSON file supermarkets_morrisons.geojson; GeoJSON file supermarkets_aldi.geojson; GeoJSON file supermarkets_lidl.geojson; GeoJSON file supermarkets_waitrose.geojson]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Generate Deep Subsea v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/generate_deep_subseav6.py (Python, 81 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/generate_deep_subseav6.py#L1-L81 - Page: https://code.globalgrid2050.com/explore-code/s/0497.html#f1 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that reads deep subsea illustrative. - What it achieves (name): Its name says it generates deep subsea. Defines `generate_deep_subsea_routes`. It writes `deep_subsea_illustrative.geojson`. - What it does: It loads deep subsea illustrative. Defines generate_deep_subsea_routes. Uses libraries json. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: Out: JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `generate_deep_subsea_routes()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Generate Unification Estimates v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/generate_unification_estimatesv6.py (Python, 44 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/generate_unification_estimatesv6.py#L1-L44 - Page: https://code.globalgrid2050.com/explore-code/s/0497.html#f2 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that reads unification deep subsea estimates. - What it achieves (name): Its name says it generates unification estimates. Defines `generate_unification_routes`. It writes `unification_deep_subsea_estimates.geojson`. - What it does: It loads unification deep subsea estimates. Defines generate_unification_routes. Uses libraries json. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: Out: JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `generate_unification_routes()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Renewable Energy Planning Database (REPD) Updater v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/repd_updaterv6.py (Python, 318 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/repd_updaterv6.py#L1-L318 - Page: https://code.globalgrid2050.com/explore-code/s/0497.html#f3 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches REPD master, the REPD register, solar and wind. - What it achieves (name): It classifies tech (`classify_tech`) and is built from the REPD updater class (`REPDUpdater`) and the already current helper (`already_current`). Defines `REPDUpdater`, `validate_schema`, `discover_latest_url` and 5 more. - What it does: It fetches REPD master, the REPD register, solar and wind. Defines 9 functions or classes, including REPDUpdater, __init__, validate_schema, discover_latest_url, already_current. Uses libraries pandas, json, yaml, os, requests. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, wind. - Inputs & outputs: In: JSON file manifest_v4.json; CSV file latest_repd.csv; JSON file repd_master.json. Out: JSON file manifest_v4.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `class REPDUpdater`; `__init__(self, registry_path="config/registry.yaml")`; `validate_schema(self, df)`; `discover_latest_url(self)`; `already_current(self, url)`; `fetch_data(self, url)`; `classify_tech(self, tech_raw, mounting)`; `refine_dataset(self, csv_path)`; `execute(self)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file manifest_v4.json; CSV file latest_repd.csv; JSON file repd_master.json]; out [JSON file manifest_v4.json]; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Update Metal Trends v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/update_metal_trendsv6.py (Python, 212 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/update_metal_trendsv6.py#L1-L212 - Page: https://code.globalgrid2050.com/explore-code/s/0497.html#f4 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 using data from open.er-api.com and query1.finance.yahoo.com. It gets market (`get_market_data`). - What it achieves (comment): From `/scripts/` up to Root, targeting the file directly. - What it does: It fetches data. Defines get_market_data, main. Uses libraries requests, os, pathlib, datetime. Side effects: changes the web page (DOM); reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage hv_procurement (path word 'metal'): HV materials procurement, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: data source: open.er-api.com; data source: query1.finance.yahoo.com. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `get_market_data()`; `main()` - domain_stage: hv_procurement · commercial_user: IPP_developer, EPC_contractor, procurement_buyer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: open.er-api.com; data source: query1.finance.yahoo.com]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Update Prices Lvv6 - File: globalgrid2050/repd_grid_atlasv6/scripts/update_prices_lvv6.py (Python, 155 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/update_prices_lvv6.py#L1-L155 - Page: https://code.globalgrid2050.com/explore-code/s/0498.html#f1 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches cables from open.er-api.com and query1.finance.yahoo.com. - What it achieves (name): Its name says it updates prices Lvv6. Defines `get_market_data`. - What it does: It fetches cables. Defines get_market_data, main. Uses libraries requests, os, pathlib, datetime. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage hv_procurement (path word 'prices'): HV materials procurement, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Inputs & outputs: In: data source: open.er-api.com; data source: query1.finance.yahoo.com. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `get_market_data()`; `main()` - domain_stage: hv_procurement · commercial_user: IPP_developer, EPC_contractor, procurement_buyer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: open.er-api.com; data source: query1.finance.yahoo.com]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Update Prices v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/update_pricesv6.py (Python, 161 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/update_pricesv6.py#L1-L161 - Page: https://code.globalgrid2050.com/explore-code/s/0498.html#f2 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches cables and 33kV, using BS 7870 from open.er-api.com and query1.finance.yahoo.com. It gets market (`get_market_data`). - What it achieves (comment): Define the target path (ensuring it targets the correct directory relative to the script). Its code works with 33 kV. - What it does: It fetches cables and 33kV. Defines get_market_data, main. Uses libraries requests, os, pathlib, datetime. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: cables, 33kV. - Inputs & outputs: In: data source: open.er-api.com; data source: query1.finance.yahoo.com. Voltage levels named: 33kV. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `get_market_data()`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: open.er-api.com; data source: query1.finance.yahoo.com]; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Ventus v6 - File: globalgrid2050/repd_grid_atlasv6/ventusv6.css (CSS, 157 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/ventusv6.css#L1-L157 - Page: https://code.globalgrid2050.com/explore-code/s/0498.html#f3 - Published at: https://globalgrid2050.com/repd_grid_atlasv6/ - Synopsis: A style sheet in GlobalGrid2050. Served with the page at https://globalgrid2050.com/repd_grid_atlasv6/. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 5 files: GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v5 Page (globalgrid2050, https://globalgrid2050.com/repd_grid_atlasv5/); GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v6 Page (globalgrid2050, https://globalgrid2050.com/repd_grid_atlasv6/); GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v7 Page (globalgrid2050, https://globalgrid2050.com/repd_grid_atlasv7/); GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v8 Page (globalgrid2050, https://globalgrid2050.com/repd_grid_atlasv8/); and 1 more. Reached from 503 other entry points, including Code Generator — Index Page (code-generator, https://ventusltd.github.io/code-generator/); Generate (code-generator, https://ventusltd.github.io/code-generator/); Pilot (cosmic, https://ventusltd.github.io/cosmic/tools/explore/theme/pilot.html). It is itself an entry point, published at https://globalgrid2050.com/repd_grid_atlasv6/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 5; mentioned by 0 ### GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v7 Page - File: globalgrid2050/repd_grid_atlasv7/index.html (HTML, 266 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv7/index.html#L1-L266 - Page: https://code.globalgrid2050.com/explore-code/s/0499.html#f1 - Published at: https://globalgrid2050.com/repd_grid_atlasv7/ - Synopsis: A web page that draws grid 400kV, grid 275kV, grid 220kV and grid 132kV. Published at https://globalgrid2050.com/repd_grid_atlasv7/. - What it achieves (comment): UK Region v7 (Experimental). Its code works with 100 kW, 11 kV and 132 kV. - What it does: It draws grid 400kV, grid 275kV, grid 220kV and grid 132kV. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Inputs & outputs: In: GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. Out: web page. Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Downstream impact: Used directly by 8 files: GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage V030 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v030.html); Homepage V031 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v031.html); Homepage V032 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v032.html); and 4 more. Reached from 87 other entry points, including GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://globalgrid2050.com/repd_grid_atlasv7/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson]; out [web page]; crs []; voltages [400kV, 275kV, 220kV, 132kV, 66kV, 11kV] - Edges: uses 2 estate files (stylesheet 1, script-src 1); used by 8; mentioned by 0 ### Fetch Heavy Emitters Ukv7 - File: globalgrid2050/repd_grid_atlasv7/scripts/fetch_heavy_emitters_ukv7.py (Python, 198 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv7/scripts/fetch_heavy_emitters_ukv7.py#L1-L198 - Page: https://code.globalgrid2050.com/explore-code/s/0499.html#f2 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches naeipoints sources and transformers. It downloads excel (`download_excel`), parses sheet (`parse_sheet`) and validates schema (`validate_schema`). - What it achieves (comment): Mission: Identify every major UK industrial emitter. - What it does: It fetches naeipoints sources and transformers. Defines 11 functions or classes, including HeavyEmittersUpdater, __init__, discover_latest_url, download_excel, parse_sheet. Uses libraries pandas, json, os, requests, datetime. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers. - Inputs & outputs: In: JSON file heavy_emitters_uk.json; JSON file manifest_heavy_emitters.json; Excel file NAEIPointsSources.xlsx; Excel file NAEIPointsSources_2023.xlsx. Out: JSON file. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Fetch Heavy Emitters UK Workflow (globalgrid2050). - Signatures: `class HeavyEmittersUpdater`; `__init__(self)`; `discover_latest_url(self)`; `download_excel(self, url)`; `parse_sheet(self)`; `validate_schema(self, df)`; `transform(self, df)`; `to_co2e(row)`; `build_geojson(self, df_flat)`; `write_outputs(self, geojson, source_url, latest_year)`; `run(self)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file heavy_emitters_uk.json; JSON file manifest_heavy_emitters.json; Excel file NAEIPointsSources.xlsx; Excel file NAEIPointsSources_2023.xlsx]; out [JSON file]; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Fetch NAEI Point Sources v7 - File: globalgrid2050/repd_grid_atlasv7/scripts/fetch_naei_point_sourcesv7.py (Python, 138 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv7/scripts/fetch_naei_point_sourcesv7.py#L1-L138 - Page: https://code.globalgrid2050.com/explore-code/s/0499.html#f3 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches naeipoints sources. It downloads excel (`download_excel`), parses sheet (`parse_sheet`) and cleans str (`clean_str`). - What it achieves (comment): Downloads the NAEI Point Sources Excel from energysecurity.gov.uk. - What it does: It fetches naeipoints sources. Defines 8 functions or classes, including download_excel, discover_sheets, parse_sheet, safe_float, clean_str. Uses libraries pandas, json, os, requests, datetime. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: Excel file NAEIPointsSources_2023.xlsx; JSON file naei_point_sources.json; Excel file NAEIPointsSources.xlsx. Out: JSON file. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Fetch NAEI Point Sources Workflow (globalgrid2050). - Signatures: `download_excel()`; `discover_sheets()`; `parse_sheet(sheet_name)`; `safe_float(val)`; `clean_str(val)`; `build_geojson(df, lat_col, lon_col, name_col, sector_col, pollutant_cols)`; `write_geojson(geojson)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [Excel file NAEIPointsSources_2023.xlsx; JSON file naei_point_sources.json; Excel file NAEIPointsSources.xlsx]; out [JSON file]; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v8 Page - File: globalgrid2050/repd_grid_atlasv8/index.html (HTML, 267 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv8/index.html#L1-L267 - Page: https://code.globalgrid2050.com/explore-code/s/0500.html#f1 - Published at: https://globalgrid2050.com/repd_grid_atlasv8/ - Synopsis: A web page that draws grid 400kV, grid 275kV, grid 220kV and grid 132kV. Published at https://globalgrid2050.com/repd_grid_atlasv8/. - What it achieves (comment): UK Region v8 (Experimental). Its code works with 100 kW, 11 kV and 132 kV. - What it does: It draws grid 400kV, grid 275kV, grid 220kV and grid 132kV. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Inputs & outputs: In: GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. Out: web page. Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Downstream impact: Used directly by 73 files: GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/); GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V7 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/); Links (globalgrid2050); Build Atlas V9 Company Renewable Energy Planning Database (REPD) Links (code-generator); and 69 more. Reached from 457 other entry points, including Code Generator — Index Page (code-generator, https://ventusltd.github.io/code-generator/); Generate (code-generator, https://ventusltd.github.io/code-generator/); Pilot (cosmic, https://ventusltd.github.io/cosmic/tools/explore/theme/pilot.html). It is itself an entry point, published at https://globalgrid2050.com/repd_grid_atlasv8/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson]; out [web page]; crs []; voltages [400kV, 275kV, 220kV, 132kV, 66kV, 11kV] - Edges: uses 2 estate files (stylesheet 1, script-src 1); used by 73; mentioned by 1 ### Fetch UK Railways - File: globalgrid2050/repd_grid_atlasv8/scripts/fetch_uk_railways.py (Python, 81 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv8/scripts/fetch_uk_railways.py#L1-L81 - Page: https://code.globalgrid2050.com/explore-code/s/0500.html#f2 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches UK mainline railways and UK metros trams from OpenStreetMap (Overpass). - What it achieves (name): Its name says it fetches UK railways. Defines `fetch_uk_railways`. - What it does: It fetches UK mainline railways and UK metros trams. Defines fetch_uk_railways. Uses libraries requests, json, time, sys. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass); GeoJSON file uk_mainline_railways.geojson; GeoJSON file uk_metros_trams.geojson. Out: JSON file. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Fetch UK Railways Workflow (globalgrid2050). - Signatures: `fetch_uk_railways(rail_types, filename, timeout_secs=900)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass); GeoJSON file uk_mainline_railways.geojson; GeoJSON file uk_metros_trams.geojson]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Fetch UK Roads - File: globalgrid2050/repd_grid_atlasv8/scripts/fetch_uk_roads.py (Python, 85 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv8/scripts/fetch_uk_roads.py#L1-L85 - Page: https://code.globalgrid2050.com/explore-code/s/0500.html#f3 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches UK motorways, UK trunk roads, UK primary roads and A roads from OpenStreetMap (Overpass). - What it achieves (name): Its name says it fetches UK roads. Defines `fetch_uk_roads`. - What it does: It fetches UK motorways, UK trunk roads, UK primary roads and A roads. Defines fetch_uk_roads. Uses libraries requests, json, time, sys. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: A roads. - Inputs & outputs: In: data source: OpenStreetMap (Overpass); GeoJSON file uk_motorways.geojson; GeoJSON file uk_trunk_roads.geojson; GeoJSON file uk_primary_roads.geojson. Out: JSON file. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Fetch UK Roads Workflow (globalgrid2050). - Signatures: `fetch_uk_roads(highway_types, filename, timeout_secs=900)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass); GeoJSON file uk_motorways.geojson; GeoJSON file uk_trunk_roads.geojson; GeoJSON file uk_primary_roads.geojson]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Sync Promoted GridAtlas V9 - File: globalgrid2050/scripts/202608300232-sync-promoted-gridatlas-v9.py (Python, 265 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/202608300232-sync-promoted-gridatlas-v9.py#L1-L265 - Page: https://code.globalgrid2050.com/explore-code/s/0500.html#f4 - Synopsis: A Python command-line tool in the scripts folder that reads GridAtlas current, using SHA-256. It verifies release (`verify_release`), copies verified tree (`copy_verified_tree`) and replaces visible text (`replace_visible_text`). - What it achieves (comment): Mirror a promoted GridAtlas V9 release and place it immediately after Atlas V8. Its code works with 400 kV. It accepts `--gridatlas`, `--site-root` and `--homepage`. - What it does: It loads GridAtlas current. Defines 10 functions or classes, including require, sha256, load, verify_release, copy_verified_tree. Uses libraries __future__, argparse, hashlib, json, re. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV. - Inputs & outputs: In: JSON file release-manifest.json; JSON file live-set.json; JSON file gridatlas-v9-current.json; command-line arguments. Voltage levels named: 400kV. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `require(condition: bool, message: str)`; `sha256(path: Path)`; `load(path: Path)`; `verify_release(release: Path)`; `copy_verified_tree(source: Path, destination: Path)`; `replace_visible_text(anchor: str)`; `build_v9_anchor(v8_anchor: str, release_id: str)`; `update_homepage(homepage: Path, release_id: str)`; `_semantic_v8_catalogue_update(homepage: Path, release_id: str)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file release-manifest.json; JSON file live-set.json; JSON file gridatlas-v9-current.json; command-line arguments]; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GlobalGrid2050 Catalogue GridAtlas V9 - File: globalgrid2050/scripts/catalogue_gridatlas_v9.py (Python, 826 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/catalogue_gridatlas_v9.py#L1-L826 - Page: https://code.globalgrid2050.com/explore-code/s/0501.html#f1 - Synopsis: A Python command-line tool in the scripts folder covering composition and the Renewable Energy Planning Database (REPD) register, using SHA-256, and uses data from the GridAtlas repository. - What it achieves (comment): It reads bytes (`read_bytes`), reads text (`read_text`) and reads JSON (`read_json`). Compile one verified Grid Atlas V9 pointer into the GlobalGrid catalogue. It reads `live-set.json`. It accepts `--root`, `--pointer-json` and `--release-manifest`. - What it does: Defines 28 functions or classes, including ContractError, require, read_bytes, read_text, read_json. Uses libraries __future__, argparse, datetime, hashlib, json. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: data source: gridatlas data; JSON file current-v3.json; JSON file live-set.json; JSON file release-manifest.json; JSON file -composition.json; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `class ContractError`; `require(condition: bool, message: str)`; `read_bytes(path: Path)`; `read_text(path: Path)`; `read_json(path: Path)`; `sha256_bytes(value: bytes)`; `sha256_text(value: str)`; `canonical_json(value: dict[str, Any])`; `validate_sha(value: str, label: str)`; `validate_catalogue_time(generation: str, incepted_at: str, created_at: str)`; `validate_upstream(pointer_path: Path, release_manifest_path: Path, gridatlas_commit: str)`; `atlas_entry(atlas: dict[str, Any])`; `marked_row_index(lines: list[str])`; `assert_v8_sentinel(html: str, stage: str)`; `compile_root(current_html: str, entry_line: str, live_url: str)`; `validate_composition(gridatlas_root: Path)`; `refresh_composition_row(current_html: str, composition: dict[str, str], notes_current: bool = False)`; `refresh_composition(args: argparse.Namespace)`; `snapshot_html(root_html: str, catalogue_generation: str)`; `existing_catalogue_manifests(homepage_versions: Path, atlas_release_id: str)`; `predecessor_record(homepage_versions: Path)`; `validate_existing_snapshot(root: Path, manifest_path: Path, expected_atlas: dict[str, Any], entry_line: str)`; `build_manifest(*, catalogue_generation: str, incepted_at: str, created_at: str, base_commit: str, parent_root_sha256: str, root_html...)`; `apply_catalogue(args: argparse.Namespace)`; `verify_catalogue(*, root: Path, catalogue_manifest: Path, pointer_json: Path, release_manifest: Path, gridatlas_commit: str)` (and 3 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; JSON file current-v3.json; JSON file live-set.json; JSON file release-manifest.json; JSON file -composition.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 2 estate files (estate-url 2); used by 0; mentioned by 0 ### GlobalGrid2050 Test Catalogue GridAtlas V9 - File: globalgrid2050/scripts/test_catalogue_gridatlas_v9.py (Python, 199 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/test_catalogue_gridatlas_v9.py#L1-L199 - Page: https://code.globalgrid2050.com/explore-code/s/0502.html#f2 - Synopsis: A test in the scripts folder that checks GridAtlas — Atlas Page using data from the GridAtlas repository. - What it achieves (comment): It is built from the composition step (`composition`), the note of helper (`note_of`) and the results class (`Results`). Pin the fail-closed contracts of the Grid Atlas catalogue compiler. - What it does: It tests transformers. Defines 7 functions or classes, including composition, note_of, Results, __init__, check. Uses libraries __future__, importlib.util, sys, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers. - Inputs & outputs: In: data source: gridatlas data. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050). - Signatures: `composition(generation: str, version: str)`; `note_of(html: str)`; `class Results`; `__init__(self)`; `check(self, label: str, ok: bool, detail: str = "")`; `refuses(self, label: str, html: str, expect_refusal: bool = True, comp: dict[str, str] | None = None, **kwargs: object)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: gridatlas data]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 1; mentioned by 0 ### GlobalGrid2050 V6 Add Atlas V8 Dashboard Link - File: globalgrid2050/scripts/v6_add_atlas_v8_dashboard_link.py (Python, 106 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/v6_add_atlas_v8_dashboard_link.py#L1-L106 - Page: https://code.globalgrid2050.com/explore-code/s/0502.html#f3 - Synopsis: A Python command-line tool in the scripts folder that reads cables, solar and battery storage (BESS). It is built from the read step (`read`) and the write step (`write`). - What it achieves (comment): This script does not move or copy the Atlas V8 app. - What it does: It loads cables, solar and battery storage (BESS). Defines read, write, main. Uses libraries __future__, datetime, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: cables, solar, battery storage (BESS). - Downstream impact: Used directly by 1 file: GlobalGrid2050 V6 Add Atlas V8 Dashboard Link Workflow (globalgrid2050). - Signatures: `read(path: Path)`; `write(path: Path, text: str)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 V7 Add Atlas V8 Dashboard Link - File: globalgrid2050/scripts/v7_add_atlas_v8_dashboard_link.py (Python, 106 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/v7_add_atlas_v8_dashboard_link.py#L1-L106 - Page: https://code.globalgrid2050.com/explore-code/s/0502.html#f4 - Synopsis: A Python command-line tool in the scripts folder that reads cables, solar and battery storage (BESS). It is built from the read step (`read`) and the write step (`write`). - What it achieves (comment): This script does not move or copy the Atlas V8 app. - What it does: It loads cables, solar and battery storage (BESS). Defines read, write, main. Uses libraries __future__, datetime, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: cables, solar, battery storage (BESS). - Downstream impact: Used directly by 1 file: GlobalGrid2050 V7 Add Atlas V8 Dashboard Link Workflow (globalgrid2050). - Signatures: `read(path: Path)`; `write(path: Path, text: str)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Streaming Parquet Bridge V9 5 - File: globalgrid2050/testcode/202609051152/atlas/cartridges/202609041945-streaming-parquet-bridge-v9-5.js (JavaScript, 328 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609051152/atlas/cartridges/202609041945-streaming-parquet-bridge-v9-5.js#L1-L328 - Page: https://code.globalgrid2050.com/explore-code/s/0503.html#f1 - Synopsis: A JavaScript file in the cartridges folder of GlobalGrid2050 that reads grid 400kV, grid 275kV, grid 220kV and grid 132kV, using SHA-256 from the data-GridAtlas repository. - What it achieves (name): It maps ready key (`mapReadyKey`), gets manifest (`getManifest`) and gets runtime (`getRuntime`). Defines `invariant`, `requestPath`, `mapReadyKey` and 13 more. It responds to abort events. - What it does: It loads grid 400kV, grid 275kV, grid 220kV and grid 132kV. Defines 16 functions or classes, including invariant, requestPath, mapReadyKey, legacyStem, sha256Hex. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: data source: data-gridatlas data; GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. - Signatures: `invariant(condition, message)`; `requestPath(input)`; `mapReadyKey(pathname)`; `legacyStem(pathname)`; `sha256Hex(bytes)`; `getManifest()`; `sharedDuckDBRuntime(moduleUrl)`; `getRuntime()`; `scheduleRuntimePrewarm()`; `start()`; `resolvePartition(pathname)`; `artifact(manifest.artifacts || [])`; `rowObject(row)`; `queryOnDemand(pathname)`; `abort()`; `cancel()` - domain_stage: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/cartridges/202610230100-streaming-parquet-bridge-v9-5.js) · essay_status: readme_derived - data_contracts: in [data source: data-gridatlas data; GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 1 ### Atlas Receiver V9 7 - File: globalgrid2050/testcode/202609051152/pipeline/scripts/core/atlas-receiver-v9-7.js (JavaScript, 313 lines) · role ingest · stage ingest - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609051152/pipeline/scripts/core/atlas-receiver-v9-7.js#L1-L313 - Page: https://code.globalgrid2050.com/explore-code/s/0503.html#f2 - Synopsis: A JavaScript module in the core folder of GlobalGrid2050 that fetches receivers and the Renewable Energy Planning Database (REPD) register from the ventus-grid-engine and GridAtlas repositories. - What it achieves (comment): It verifies atlas receiver v9 (`verifyAtlasReceiverV9_7`), loads atlas receiver v9 (`loadAtlasReceiverV9_7`) and builds atlas deep link v9 (`buildAtlasDeepLinkV9_7`). On the MAP button in this app was measured pointing at the V8 overlay the engine now publishes as retired. Its code works with 132 kV and 500 MW. - What it does: It fetches receivers and the REPD register. Defines 10 functions or classes, including stripTrailingSlash, isRetiredReceiverV9_7, atlasReceiverV9_7, atlasReceiverFailureV9_7, primeAtlasReceiverV9_7. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: the REPD register, 132kV. - Inputs & outputs: In: data source: ventus-grid-engine data; data source: gridatlas data; JSON file receivers.json. Voltage levels named: 132kV. - Downstream impact: Used directly by 7 files: Canonical Project Table (globalgrid2050); Projects V9 1 (globalgrid2050); Projects V9 2 (globalgrid2050); Projects V9 3 (globalgrid2050); and 3 more. Reached from 196 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); GlobalGrid2050 — PipelineNews Intelligence Page (globalgrid2050, https://globalgrid2050.com/pipelinenews_intelligence/202609050309/). - Signatures: `export isRetiredReceiverV9_7(route)`; `export atlasReceiverV9_7()`; `export atlasReceiverFailureV9_7()`; `export primeAtlasReceiverV9_7(document_)`; `export verifyAtlasReceiverV9_7()`; `export loadAtlasReceiverV9_7()`; `export atlasCentresOnRepdPointV9_7(project)`; `export buildAtlasDeepLinkV9_7(project)`; `export atlasUnavailableReasonV9_7(project)`; `stripTrailingSlash(route)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; data source: gridatlas data; JSON file receivers.json]; out []; crs []; voltages [132kV] - Edges: uses 2 estate files (estate-url 2); used by 7; mentioned by 1 ### UK Gazetteer Flyto - File: globalgrid2050/testcode/202609051214/atlas/cartridges/202609051214-uk-gazetteer-flyto.js (JavaScript, 816 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609051214/atlas/cartridges/202609051214-uk-gazetteer-flyto.js#L1-L816 - Page: https://code.globalgrid2050.com/explore-code/s/0504.html#f1 - Synopsis: A JavaScript file in the cartridges folder of GlobalGrid2050 that maps Renewable Energy Planning Database (REPD) projects, using SHA-256 and uses data from postcodes.io, OpenStreetMap Nominatim and the GridAtlas repository. - What it achieves (comment): It marks deep link cancelled (`markDeepLinkCancelled`), normalises compact (`normaliseCompact`) and parses groups (`parseGroups`). Place-global-search-v9-5. It responds to gridatlas, click and input events. - What it does: It maps REPD projects, postcodes and the REPD register. Defines 40 functions or classes, including invariant, arrivalCoordinator, markDeepLinkCancelled, invalidatePendingDeepLink, escapeHtml. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: postcodes, the REPD register. - Inputs & outputs: In: data source: gridatlas data; data source: postcodes.io; data source: OpenStreetMap Nominatim; Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; DuckDB queries. Out: interactive map. - Signatures: `invariant(condition, message)`; `arrivalCoordinator()`; `markDeepLinkCancelled(reason, epoch = null)`; `invalidatePendingDeepLink(reason)`; `escapeHtml(value)`; `sqlString(value)`; `normaliseCompact(value)`; `parseGroups(query)`; `sha256Hex(bytes)`; `verifyManifest()`; `sharedDuckDBRuntime(moduleUrl)`; `runtime()`; `resetOfficialRuntime()`; `installMapCapture()`; `construct(target, args, newTarget)`; `buildWhere(query)`; `buildScore(query)`; `rowObject(row)`; `queryOfficialRepd(query, serial = null, stillOwned = null)`; `hasSafeMapPoint(result)`; `setDeepLink(result)`; `selectResult(result, options = {})`; `geocoderGet(path, query)`; `joinParts(...parts)`; `queryUkGazetteer(query)` (and 15 more) - VEDIC: QUERY (GG2050-VEDIC-000046): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_predicate - VEDIC: SCORE (GG2050-VEDIC-000047): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_sort_expression - VEDIC: UK GEOCODE (GG2050-VEDIC-000048): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> uk_location_candidates - domain_stage: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of code-generator/apps/substation-finder/Ug/202609051623-uk-gazetteer-flyto.js) · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; data source: postcodes.io; data source: OpenStreetMap Nominatim; Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; DuckDB queries]; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Streaming Parquet Bridge - File: globalgrid2050/testcode/202609051344/atlas/cartridges/202609051344-streaming-parquet-bridge.js (JavaScript, 333 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609051344/atlas/cartridges/202609051344-streaming-parquet-bridge.js#L1-L333 - Page: https://code.globalgrid2050.com/explore-code/s/0505.html#f2 - Synopsis: A JavaScript file in the cartridges folder of GlobalGrid2050 that reads grid 400kV, grid 275kV, grid 220kV and grid 132kV, using SHA-256 from the data-GridAtlas repository. - What it achieves (name): It maps ready key (`mapReadyKey`), gets manifest (`getManifest`) and gets runtime (`getRuntime`). Defines `invariant`, `requestPath`, `mapReadyKey` and 13 more. It responds to abort events. - What it does: It loads grid 400kV, grid 275kV, grid 220kV and grid 132kV. Defines 16 functions or classes, including invariant, requestPath, mapReadyKey, legacyStem, sha256Hex. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: data source: data-gridatlas data; GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. - Signatures: `invariant(condition, message)`; `requestPath(input)`; `mapReadyKey(pathname)`; `legacyStem(pathname)`; `sha256Hex(bytes)`; `getManifest()`; `sharedDuckDBRuntime(moduleUrl)`; `getRuntime()`; `scheduleRuntimePrewarm()`; `start()`; `resolvePartition(pathname)`; `artifact(manifest.artifacts || [])`; `rowObject(row)`; `queryOnDemand(pathname)`; `abort()`; `cancel()` - domain_stage: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/cartridges/202610230100-streaming-parquet-bridge-v9-5.js) · essay_status: readme_derived - data_contracts: in [data source: data-gridatlas data; GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### Menu Bar - File: globalgrid2050/testcode/202609052023/atlas/source/menu-bar.js (JavaScript, 1478 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609052023/atlas/source/menu-bar.js#L1-L1478 - Page: https://code.globalgrid2050.com/explore-code/s/0506.html#f1 - Synopsis: A JavaScript file in the source folder of GlobalGrid2050 that draws engine graph and uses data from the ventus-grid-engine, data-federation-map-for-GlobalGrid2050-all-repos and spiders repositories. - What it achieves (comment): It cleans text (`cleanText`), syncs attrib clearance (`syncAttribClearance`) and syncs layer (`syncLayer`). V9.94 proved that the conventional menu is the right shape and the wrong implementation can still strand the product. It responds to click, keydown and afterprint events. - What it does: It draws engine graph. Defines 42 functions or classes, including array, cleanText, layerKey, layerLabel, layerGroup. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; JSON file engine-graph.json; form fields (user input). Out: downloaded file gridatlas-; canvas drawing. - Signatures: `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `array(value)`; `cleanText(value)`; `layerKey(input)`; `layerLabel(input)`; `layerGroup(input)`; `inventory(doc)`; `required(doc)`; `installStyle(doc)`; `syncAttribClearance(doc)`; `closeAll(focusTitle)`; `syncLayer(key)`; `syncAll()`; `clampPanel(doc, menu, panel)`; `vw(view && view.innerWidth)`; `openMenu(menu, title, panel)`; `buildBar(doc)`; `appendGroup(panel, text)`; `appendEngineModules(panel)`; `nodes(graph && graph.nodes)`; `kindLabels(graph && graph.kind_labels)`; `done(ok)`; `appendStudies(panel)`; `exportStamp()`; `attributionText(doc)` (and 15 more) - domain_stage: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of testcode/sandbox/202609052028/atlas/source/menu-bar.js) · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; JSON file engine-graph.json; form fields (user input)]; out [downloaded file gridatlas-; canvas drawing]; crs []; voltages [] - Edges: uses 2 estate files (estate-url 2); used by 0; mentioned by 0 ### Map Controls Layout - File: globalgrid2050/testcode/202609060228/atlas/map-controls-layout.js (JavaScript, 48 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609060228/atlas/map-controls-layout.js#L1-L48 - Page: https://code.globalgrid2050.com/explore-code/s/0508.html#f2 - Synopsis: A JavaScript module in the atlas folder of GlobalGrid2050. It is built from the mount map controls layout helper (`mountMapControlsLayout`) and the reflect step (`reflect`). - What it achieves (comment): Layout-only successor: preserve the existing tool, Layers and menu handlers. - What it does: It draws its content. Defines mountMapControlsLayout, reflect. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 2 files: Teleprinter Bootstrap (globalgrid2050); Teleprinter Bootstrap (testcode). - Signatures: `export mountMapControlsLayout(doc = document)`; `reflect()` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Project GeoJSON - File: globalgrid2050/testcode/202609060334/pipeline/assets/202609060334-project-geojson.mjs (JavaScript, 21 lines) · role geodesy · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609060334/pipeline/assets/202609060334-project-geojson.mjs#L1-L21 - Page: https://code.globalgrid2050.com/explore-code/s/0508.html#f3 - Synopsis: A JavaScript module in the assets folder of GlobalGrid2050 that works with the Renewable Energy Planning Database (REPD) register. It is built from the project geo JSON helper (`projectGeoJSON`). - What it achieves (name): Defines `projectGeoJSON`. - What it does: It calculates the REPD register. Defines projectGeoJSON. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: the REPD register. - Inputs & outputs: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 1 file: Testcode — Pipeline (globalgrid2050). Reached from 21 other entry points, including Homepage V073 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v073.html); Homepage V074 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v074.html); Homepage V075 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v075.html). - Signatures: `export projectGeoJSON(projects, metadata = {})` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Wider GeoJSON - File: globalgrid2050/testcode/202609060340/pipeline/assets/202609060340-wider-geojson.mjs (JavaScript, 18 lines) · role geodesy · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609060340/pipeline/assets/202609060340-wider-geojson.mjs#L1-L18 - Page: https://code.globalgrid2050.com/explore-code/s/0508.html#f4 - Synopsis: A JavaScript module in the assets folder of GlobalGrid2050. It is built from the wider geo JSON helper (`widerGeoJSON`). - What it achieves (name): Defines `widerGeoJSON` and `numeric`. - What it does: It calculates its inputs. Defines widerGeoJSON, numeric. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 1 file: Wider Fleet (globalgrid2050). - Signatures: `export widerGeoJSON(rows,metricLookup,metadata={})`; `numeric(value)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Teleprinter Bootstrap - File: globalgrid2050/testcode/202609060503/atlas/teleprinter-bootstrap.js (JavaScript, 21 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609060503/atlas/teleprinter-bootstrap.js#L1-L21 - Page: https://code.globalgrid2050.com/explore-code/s/0508.html#f5 - Synopsis: A JavaScript module in the atlas folder of GlobalGrid2050 that draws atlas pin, atlas code, solar and battery storage (BESS). - What it does: It draws atlas pin, atlas code, solar and battery storage (BESS). Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: solar, battery storage (BESS). - Inputs & outputs: In: JSON file atlas-source-pin.json; JSON file atlas-source-code.manifest.json. - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file atlas-source-pin.json; JSON file atlas-source-code.manifest.json]; out []; crs []; voltages [] - Edges: uses 6 estate files (import 6); used by 0; mentioned by 0 ### Testcode — Atlas Page - File: globalgrid2050/testcode/202609060537/atlas/index.html (HTML, 122 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609060537/atlas/index.html#L1-L122 - Page: https://code.globalgrid2050.com/explore-code/s/0508.html#f6 - Published at: https://globalgrid2050.com/testcode/202609060537/atlas/ - Synopsis: A web page in GlobalGrid2050 that validates atlas composition (`validateAtlasComposition`), using SHA-256. Published at https://globalgrid2050.com/testcode/202609060537/atlas/. - What it achieves (comment): It validates atlas composition (`validateAtlasComposition`) and is built from the invariant step (`invariant`) and the escape attribute helper (`escapeAttribute`). Test Code Atlas. It reads `./current.json`. - What it does: It draws its content. Defines invariant, escapeAttribute, sha256Hex, fail, validateAtlasComposition. Uses libraries ${escapeAttribute(blobUrl)}, ' + escapeAttribute(teleprinterUrl) + '. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: JSON file current.json. Out: web page. - Downstream impact: Used directly by 6 files: Homepage V088 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v088.html); Homepage V089 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v089.html); Homepage V090 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v090.html); Homepage V091 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v091.html); and 2 more. It is itself an entry point, published at https://globalgrid2050.com/testcode/202609060537/atlas/. - Signatures: `invariant(condition, message)`; `escapeAttribute(value)`; `sha256Hex(bytes)`; `fail(error)`; `validateAtlasComposition(current)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out [web page]; crs []; voltages [] - Edges: uses 0 estate files; used by 6; mentioned by 0 ### Testcode — Code Map - File: globalgrid2050/testcode/202609141754/code-map/core.js (JavaScript, 203 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609141754/code-map/core.js#L1-L203 - Page: https://code.globalgrid2050.com/explore-code/s/0508.html#f7 - Published at: https://globalgrid2050.com/testcode/202609141754/code-map/ - Synopsis: A JavaScript file in GlobalGrid2050 that draws blocks, families and names, and uses data from raw.githubusercontent.com and the stars repository. Served with the page at https://globalgrid2050.com/testcode/202609141754/code-map/. - What it achieves (comment): It gets JSON (`getJSON`), loads universe (`loadUniverse`) and sets address (`setAddress`). GlobalGrid2050 code map core, shared by the ten views (public copy of `testcode/202609141522/core.js`). It responds to click, popstate and input events. - What it does: It draws blocks, families and names. Defines 38 functions or classes, including CORP_BASE, say, sayType, pageLink, $. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. README: "Wording: every data-derived string passes through `../corporate.js` (via `say()`, `sayType()` and `pageLink()` in `core.js`)." - Inputs & outputs: In: data source: raw.githubusercontent.com; data source: stars data; JSON file blocks.json; JSON file families.json; JSON file index.json; JSON file names.json. - Downstream impact: Used directly by 10 files: Code Map — V01 Dependency Drill Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-map/v01-dependency-drill/); Code Map — V02 Radial Hierarchy Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-map/v02-radial-hierarchy/); Code Map — V03 Block Map Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-map/v03-block-map/); Code Map — V04 Block Register Links Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-map/v04-block-register-links/); and 6 more. Reached from 2 other entry points, including Testcode — Code Map Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-map/); Testcode — Code Navigation Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-navigation/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609141754/code-map/. - Signatures: `CORP(typeof window !== 'undefined' && window.Corporate)`; `CORP_BASE(() => { const s = [...document.scripts].find(x => /(^|\/)corporate\.js([?)`; `say(s, type)`; `sayType(t)`; `pageLink(url)`; `$(s, r = document)`; `esc(s)`; `el(tag, attrs = {}, ...kids)`; `getJSON(url)`; `fail(where, err)`; `loadUniverse()`; `catColour(id)`; `catTitle(id)`; `catName(c)`; `blockTitle(b)`; `blockDesc(b)`; `blockLabel(sym)`; `blockFamilies(sym)`; `blockDeps(sym)`; `blockUsers(sym)`; `blockPage(sym)`; `countsLine()`; `family(n)`; `familyLines(rec)`; `p(rec.places || [])` (and 15 more) - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: raw.githubusercontent.com; data source: stars data; JSON file blocks.json; JSON file families.json; JSON file index.json; JSON file names.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 10; mentioned by 0 ### Testcode — Code Map Page - File: globalgrid2050/testcode/202609141754/code-map/index.html (HTML, 24 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609141754/code-map/index.html#L1-L24 - Page: https://code.globalgrid2050.com/explore-code/s/0508.html#f8 - Published at: https://globalgrid2050.com/testcode/202609141754/code-map/ - Synopsis: A web page in GlobalGrid2050. Published at https://globalgrid2050.com/testcode/202609141754/code-map/. - What it achieves (comment): Code map, ten views. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Out: web page. - Downstream impact: Used directly by 1 file: Testcode — Code Navigation Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-navigation/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609141754/code-map/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 10 estate files (link 10); used by 1; mentioned by 0 ### Code Map — V02 Radial Hierarchy Page - File: globalgrid2050/testcode/202609141754/code-map/v02-radial-hierarchy/index.html (HTML, 75 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609141754/code-map/v02-radial-hierarchy/index.html#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0508.html#f9 - Published at: https://globalgrid2050.com/testcode/202609141754/code-map/v02-radial-hierarchy/ - Synopsis: A web page in the testcode folder of GlobalGrid2050 that shows cat (`showCat`) and block (`showBlock`), opens family (`openFamily`) and draws SVG graphics. Published at https://globalgrid2050.com/testcode/202609141754/code-map/v02-radial-hierarchy/. - What it achieves (name): It shows cat (`showCat`), shows block (`showBlock`) and opens family (`openFamily`). Defines `arc`, `ring`, `centre` and 3 more. It responds to click events. - What it does: It draws its content. Defines 8 functions or classes, including sv, arc, p, ring, centre. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Out: web page; SVG drawing. - Downstream impact: Used directly by 1 file: Testcode — Code Map Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-map/). Reached from 1 other entry point, including Testcode — Code Navigation Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-navigation/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609141754/code-map/v02-radial-hierarchy/. - Signatures: `sv(t, a)`; `arc(r0, r1, a0, a1)`; `p(r, a)`; `ring(items, r0, r1, onClick)`; `centre(title, sub, onClick)`; `showCat(id)`; `showBlock(sym)`; `openFamily(n)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 2 estate files (script-src 2); used by 1; mentioned by 0 ### Code Map — V03 Block Map Page - File: globalgrid2050/testcode/202609141754/code-map/v03-block-map/index.html (HTML, 77 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609141754/code-map/v03-block-map/index.html#L1-L77 - Page: https://code.globalgrid2050.com/explore-code/s/0508.html#f10 - Published at: https://globalgrid2050.com/testcode/202609141754/code-map/v03-block-map/ - Synopsis: A web page in the testcode folder of GlobalGrid2050 that selects star (`selectStar`), opens family (`openFamily`), calculates planar distances and draws on a canvas. Published at https://globalgrid2050.com/testcode/202609141754/code-map/v03-block-map/. - What it achieves (name): It selects star (`selectStar`) and opens family (`openFamily`). Defines `size`, `layout`, `scr` and 4 more. It responds to pointerdown, pointermove and pointerup events. - What it does: It draws its content. Defines 7 functions or classes, including size, layout, scr, draw, hit. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Out: web page; canvas drawing. - Downstream impact: Used directly by 1 file: Testcode — Code Map Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-map/). Reached from 1 other entry point, including Testcode — Code Navigation Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-navigation/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609141754/code-map/v03-block-map/. - Signatures: `size()`; `layout()`; `a0(ci / cats.length)`; `scr(s)`; `draw(now)`; `hit(x, y)`; `selectStar(sym)`; `openFamily(n)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; canvas drawing]; crs []; voltages [] - Edges: uses 2 estate files (script-src 2); used by 1; mentioned by 0 ### Code Map — V04 Block Register Links Page - File: globalgrid2050/testcode/202609141754/code-map/v04-block-register-links/index.html (HTML, 59 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609141754/code-map/v04-block-register-links/index.html#L1-L59 - Page: https://code.globalgrid2050.com/explore-code/s/0509.html#f1 - Published at: https://globalgrid2050.com/testcode/202609141754/code-map/v04-block-register-links/ - Synopsis: A web page in the testcode folder of GlobalGrid2050 that opens family (`openFamily`) and draws SVG graphics. Published at https://globalgrid2050.com/testcode/202609141754/code-map/v04-block-register-links/. - What it achieves (comment): It opens family (`openFamily`) and is built from the build step (`build`) and the arrows step (`arrows`). V04 block register with dependencies. It responds to resize events. - What it does: It draws its content. Defines build, arrows, line, pick, openFamily. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Out: web page; SVG drawing. - Downstream impact: Used directly by 1 file: Testcode — Code Map Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-map/). Reached from 1 other entry point, including Testcode — Code Navigation Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-navigation/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609141754/code-map/v04-block-register-links/. - Signatures: `build()`; `arrows(sym)`; `line(a, b, col)`; `pick(sym)`; `openFamily(n)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 2 estate files (script-src 2); used by 1; mentioned by 0 ### Code Map — V05 Chord Dependencies Page - File: globalgrid2050/testcode/202609141754/code-map/v05-chord-dependencies/index.html (HTML, 53 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609141754/code-map/v05-chord-dependencies/index.html#L1-L53 - Page: https://code.globalgrid2050.com/explore-code/s/0509.html#f2 - Published at: https://globalgrid2050.com/testcode/202609141754/code-map/v05-chord-dependencies/ - Synopsis: A web page in the testcode folder of GlobalGrid2050 that opens family (`openFamily`) and draws SVG graphics. Published at https://globalgrid2050.com/testcode/202609141754/code-map/v05-chord-dependencies/. It opens family (`openFamily`). - What it achieves (name): Defines `draw`, `pick` and `openFamily`. It responds to click events. - What it does: It draws its content. Defines 6 functions or classes, including sv, draw, p, xy, pick. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Out: web page; SVG drawing. - Downstream impact: Used directly by 1 file: Testcode — Code Map Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-map/). Reached from 1 other entry point, including Testcode — Code Navigation Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-navigation/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609141754/code-map/v05-chord-dependencies/. - Signatures: `sv(t, a)`; `draw()`; `p(r, a)`; `xy(a)`; `pick(sym)`; `openFamily(n)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 2 estate files (script-src 2); used by 1; mentioned by 0 ### Code Map — V06 Treemap Page - File: globalgrid2050/testcode/202609141754/code-map/v06-treemap/index.html (HTML, 60 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609141754/code-map/v06-treemap/index.html#L1-L60 - Page: https://code.globalgrid2050.com/explore-code/s/0509.html#f3 - Published at: https://globalgrid2050.com/testcode/202609141754/code-map/v06-treemap/ - Synopsis: A web page in the testcode folder of GlobalGrid2050 that shows cat (`showCat`) and block (`showBlock`) and opens family (`openFamily`). Published at https://globalgrid2050.com/testcode/202609141754/code-map/v06-treemap/. - What it achieves (name): It shows cat (`showCat`), shows block (`showBlock`) and opens family (`openFamily`). Defines `squarify`, `render`, `showCat` and 2 more. It responds to resize events. - What it does: It draws its content. Defines squarify, render, showCat, showBlock, openFamily. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Out: web page. - Downstream impact: Used directly by 1 file: Testcode — Code Map Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-map/). Reached from 1 other entry point, including Testcode — Code Navigation Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-navigation/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609141754/code-map/v06-treemap/. - Signatures: `squarify(items, x, y, w, h)`; `render(items, onClick)`; `showCat(id)`; `showBlock(sym)`; `openFamily(n)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 2 estate files (script-src 2); used by 1; mentioned by 0 ### Code Map — V07 Flow Page - File: globalgrid2050/testcode/202609141754/code-map/v07-flow/index.html (HTML, 60 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609141754/code-map/v07-flow/index.html#L1-L60 - Page: https://code.globalgrid2050.com/explore-code/s/0509.html#f4 - Published at: https://globalgrid2050.com/testcode/202609141754/code-map/v07-flow/ - Synopsis: A web page in the testcode folder of GlobalGrid2050 that shows block (`showBlock`), opens family (`openFamily`) and draws SVG graphics. Published at https://globalgrid2050.com/testcode/202609141754/code-map/v07-flow/. - What it achieves (name): It shows block (`showBlock`) and opens family (`openFamily`). Defines `draw`, `repoOf`, `place` and 4 more. It responds to click events. - What it does: It draws its content. Defines 8 functions or classes, including sv, draw, repoOf, place, band. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Out: web page; SVG drawing. - Downstream impact: Used directly by 1 file: Testcode — Code Map Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-map/). Reached from 1 other entry point, including Testcode — Code Navigation Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-navigation/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609141754/code-map/v07-flow/. - Signatures: `sv(t, a)`; `draw()`; `repoOf(b)`; `place(list, x, key)`; `band(a, b, w, col, tag)`; `label(m, anchor, dx, text, onClick, colour)`; `hot(tag)`; `showBlock(sym)`; `openFamily(n)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 2 estate files (script-src 2); used by 1; mentioned by 0 ### Code Map — V08 Ring Navigation Page - File: globalgrid2050/testcode/202609141754/code-map/v08-ring-navigation/index.html (HTML, 85 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609141754/code-map/v08-ring-navigation/index.html#L1-L85 - Page: https://code.globalgrid2050.com/explore-code/s/0509.html#f5 - Published at: https://globalgrid2050.com/testcode/202609141754/code-map/v08-ring-navigation/ - Synopsis: A web page in the testcode folder of GlobalGrid2050 that opens block (`openBlock`) and fam (`openFam`) and draws SVG graphics. Published at https://globalgrid2050.com/testcode/202609141754/code-map/v08-ring-navigation/. - What it achieves (name): It opens block (`openBlock`) and opens fam (`openFam`). Defines `blockAt`, `draw`, `openBlock` and 1 more. It responds to click events. - What it does: It draws its content. Defines 6 functions or classes, including sv, pt, blockAt, draw, openBlock. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Out: web page; SVG drawing. - Downstream impact: Used directly by 1 file: Testcode — Code Map Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-map/). Reached from 1 other entry point, including Testcode — Code Navigation Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-navigation/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609141754/code-map/v08-ring-navigation/. - Signatures: `sv(t, a)`; `pt(r, a)`; `blockAt(sym)`; `draw()`; `step(Math.PI * 2)`; `openBlock(sym)`; `openFam(n)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 2 estate files (script-src 2); used by 1; mentioned by 0 ### Code Map — V09 Line View Page - File: globalgrid2050/testcode/202609141754/code-map/v09-line-view/index.html (HTML, 62 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609141754/code-map/v09-line-view/index.html#L1-L62 - Page: https://code.globalgrid2050.com/explore-code/s/0509.html#f6 - Published at: https://globalgrid2050.com/testcode/202609141754/code-map/v09-line-view/ - Synopsis: A web page in the testcode folder of GlobalGrid2050 that shows block (`showBlock`) and opens family (`openFamily`). Published at https://globalgrid2050.com/testcode/202609141754/code-map/v09-line-view/. It shows block (`showBlock`) and opens family (`openFamily`). - What it achieves (name): Defines `showBlock`, `openFamily` and `list`. - What it does: It draws its content. Defines showBlock, openFamily, list. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Out: web page. - Downstream impact: Used directly by 1 file: Testcode — Code Map Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-map/). Reached from 1 other entry point, including Testcode — Code Navigation Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-navigation/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609141754/code-map/v09-line-view/. - Signatures: `showBlock(sym)`; `openFamily(n)`; `list(title, items, colour)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 2 estate files (script-src 2); used by 1; mentioned by 0 ### Code Map — V10 Code Browser Page - File: globalgrid2050/testcode/202609141754/code-map/v10-code-browser/index.html (HTML, 71 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609141754/code-map/v10-code-browser/index.html#L1-L71 - Page: https://code.globalgrid2050.com/explore-code/s/0509.html#f7 - Published at: https://globalgrid2050.com/testcode/202609141754/code-map/v10-code-browser/ - Synopsis: A web page in the testcode folder of GlobalGrid2050 that opens family (`openFamily`). Published at https://globalgrid2050.com/testcode/202609141754/code-map/v10-code-browser/. - What it achieves (comment): It opens family (`openFamily`) and is built from the nav build helper (`navBuild`) and the SLD step (`sld`). V10 read-only code browser. It responds to toggle and click events. - What it does: It draws its content. Defines sv, navBuild, sld, openFamily. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Out: web page. - Downstream impact: Used directly by 1 file: Testcode — Code Map Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-map/). Reached from 1 other entry point, including Testcode — Code Navigation Page (globalgrid2050, https://globalgrid2050.com/testcode/202609141754/code-navigation/). It is itself an entry point, published at https://globalgrid2050.com/testcode/202609141754/code-map/v10-code-browser/. - Signatures: `sv(t, a)`; `navBuild()`; `sld(sym, rec, n)`; `openFamily(n)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 2 estate files (script-src 2); used by 1; mentioned by 0 ### Coder Walk R2 Probe - File: globalgrid2050/testcode/202609142225/proof/coder-walk-r2-probe.mjs (JavaScript, 32 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609142225/proof/coder-walk-r2-probe.mjs#L1-L32 - Page: https://code.globalgrid2050.com/explore-code/s/0509.html#f8 - Synopsis: A JavaScript module in the proof folder of GlobalGrid2050. It is built from the sleep step (`sleep`). - What it achieves (comment): Round-2 side probe: is the lens bar really 1 px below the screen, and is the sheet's "✕ close" reachable under the sticky action row? It writes `coder-walk-r2-probe.json`. - What it does: Defines sleep. Uses libraries node:module, node:fs, C:/Users/vikra/Desktop/Claude-Sandbox-MSI/bench/node_modules/puppeteer-core. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: command-line arguments. Out: JSON file coder-walk-r2-probe.json. - Signatures: `sleep(ms)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out [JSON file coder-walk-r2-probe.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Coder Walk R2 Probe2 - File: globalgrid2050/testcode/202609142225/proof/coder-walk-r2-probe2.mjs (JavaScript, 23 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609142225/proof/coder-walk-r2-probe2.mjs#L1-L23 - Page: https://code.globalgrid2050.com/explore-code/s/0509.html#f9 - Synopsis: A JavaScript module in the proof folder of GlobalGrid2050. It is built from the sleep step (`sleep`). - What it achieves (comment): Round-2 side probe 2: how much of the tray's chips a person can see once two things are in the recipe, and whether the remove (×) of the second chip is reachable by touch. It writes `coder-walk-r2-probe2.json`. - What it does: Defines sleep. Uses libraries node:module, node:fs, C:/Users/vikra/Desktop/Claude-Sandbox-MSI/bench/node_modules/puppeteer-core. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: command-line arguments. Out: JSON file coder-walk-r2-probe2.json. - Signatures: `sleep(ms)`; `trayFacts()` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out [JSON file coder-walk-r2-probe2.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Coder Walk R2 - File: globalgrid2050/testcode/202609142225/proof/coder-walk-r2.mjs (JavaScript, 213 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609142225/proof/coder-walk-r2.mjs#L1-L213 - Page: https://code.globalgrid2050.com/explore-code/s/0510.html#f1 - Synopsis: A JavaScript module in the proof folder of GlobalGrid2050. It is built from the sleep step (`sleep`), the begin step (`begin`) and the note step (`note`). - What it achieves (comment): Mobile-coder critic, round 2: a person on a 430 px phone composes a small tool by touch alone, after the repair round. It writes `coder-walk-r2.json`. - What it does: It loads data. Defines 10 functions or classes, including sleep, begin, note, blocker, shot. Uses libraries node:module, node:fs, C:/Users/vikra/Desktop/Claude-Sandbox-MSI/bench/node_modules/puppeteer-core. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: command-line arguments. Out: JSON file coder-walk-r2.json. - Signatures: `sleep(ms)`; `begin(name)`; `note(s)`; `blocker(s)`; `shot(name)`; `probe(sel, text)`; `tapEl(sel, text, why)`; `drag(x0, y0, x1, y1, steps = 8, dt = 20)`; `facts()`; `r(id)`; `vdInfo()`; `fingerMap()`; `lineState()`; `head0(await facts())`; `hp(await browser.pages())` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out [JSON file coder-walk-r2.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Coder Walk - File: globalgrid2050/testcode/202609142225/proof/coder-walk.mjs (JavaScript, 225 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609142225/proof/coder-walk.mjs#L1-L225 - Page: https://code.globalgrid2050.com/explore-code/s/0510.html#f2 - Synopsis: A JavaScript module in the proof folder of GlobalGrid2050 that works with layout facts (`layoutFacts`). - What it achieves (comment): It is built from the sleep step (`sleep`), the begin step (`begin`) and the note step (`note`). Mobile-coder critic, round 1: a person on a 430 px phone composes a small tool by touch alone. It writes `coder-walk.json`. - What it does: It loads data. Defines 10 functions or classes, including sleep, begin, note, shot, probe. Uses libraries node:module, node:fs, C:/Users/vikra/Desktop/Claude-Sandbox-MSI/bench/node_modules/puppeteer-core. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: JSON file coder-walk.json; command-line arguments. Out: JSON file coder-walk.json. - Signatures: `sleep(ms)`; `begin(name)`; `note(s)`; `shot(name)`; `probe(sel, text)`; `tapEl(sel, text, why)`; `drag(x0, y0, x1, y1, steps = 8, dt = 20)`; `layoutFacts()`; `r(id)`; `ov(a, b)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file coder-walk.json; command-line arguments]; out [JSON file coder-walk.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Engine Route - File: globalgrid2050/testcode/202609162200-quantum-twin-flights/pipeline/engine-route.py (Python, 19 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609162200-quantum-twin-flights/pipeline/engine-route.py#L1-L19 - Page: https://code.globalgrid2050.com/explore-code/s/0510.html#f3 - Synopsis: A Python module in the pipeline folder of GlobalGrid2050. - What it achieves (comment): Step ENGINE-ROUTE: which wafer keys each ventus-grid-engine module carries (memberships). - What it does: It loads data. Uses libraries json, glob, os, sys, collections. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: Out: JSON file engine-route.json. - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [JSON file engine-route.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Route - File: globalgrid2050/testcode/202609162200-quantum-twin-flights/pipeline/route.py (Python, 36 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609162200-quantum-twin-flights/pipeline/route.py#L1-L36 - Page: https://code.globalgrid2050.com/explore-code/s/0510.html#f4 - Synopsis: A Python module in the pipeline folder of GlobalGrid2050 that reads route GridAtlas and substations. - What it achieves (comment): Step ROUTE: which wafer keys does GridAtlas carry (memberships)? - What it does: It loads route GridAtlas and substations. Uses libraries json, glob, collections, os, sys. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: substations. - Inputs & outputs: In: JSON file route-gridatlas.json. Out: JSON file. - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file route-gridatlas.json]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Wafer Development Environment — GridAtlas Page - File: globalgrid2050/testcode/wafer-development-environment/202609170041-gridatlas/index.html (HTML, 44 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/wafer-development-environment/202609170041-gridatlas/index.html#L1-L44 - Page: https://code.globalgrid2050.com/explore-code/s/0510.html#f5 - Published at: https://globalgrid2050.com/testcode/wafer-development-environment/202609170041-gridatlas/ - Synopsis: A web page in the testcode folder of GlobalGrid2050. Published at https://globalgrid2050.com/testcode/wafer-development-environment/202609170041-gridatlas/. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 6 files: Testcode — Wafer Development Environment Page (globalgrid2050, https://globalgrid2050.com/testcode/wafer-development-environment/); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage Versions — Before Refresh Page (globalgrid2050, https://globalgrid2050.com/homepage_versions/20260922-before-refresh/); Homepage V123 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v123.html); and 2 more. Reached from 115 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://globalgrid2050.com/testcode/wafer-development-environment/202609170041-gridatlas/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 4 estate files (script-src 3, stylesheet 1); used by 6; mentioned by 0 ### Wafer Development Environment — Land GridAtlas Page - File: globalgrid2050/testcode/wafer-development-environment/202609170045-land-gridatlas/index.html (HTML, 44 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/wafer-development-environment/202609170045-land-gridatlas/index.html#L1-L44 - Page: https://code.globalgrid2050.com/explore-code/s/0510.html#f6 - Published at: https://globalgrid2050.com/testcode/wafer-development-environment/202609170045-land-gridatlas/ - Synopsis: A web page in the testcode folder of GlobalGrid2050. Published at https://globalgrid2050.com/testcode/wafer-development-environment/202609170045-land-gridatlas/. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 6 files: Testcode — Wafer Development Environment Page (globalgrid2050, https://globalgrid2050.com/testcode/wafer-development-environment/); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage Versions — Before Refresh Page (globalgrid2050, https://globalgrid2050.com/homepage_versions/20260922-before-refresh/); Homepage V123 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v123.html); and 2 more. Reached from 115 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://globalgrid2050.com/testcode/wafer-development-environment/202609170045-land-gridatlas/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 4 estate files (script-src 3, stylesheet 1); used by 6; mentioned by 0 ### Browser Map Reachability V9 7 - File: globalgrid2050/uk_renewables_pipeline/202609061329/tests/browser_map_reachability_v9_7.mjs (JavaScript, 425 lines) · role test · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_renewables_pipeline/202609061329/tests/browser_map_reachability_v9_7.mjs#L1-L425 - Page: https://code.globalgrid2050.com/explore-code/s/0511.html#f1 - Synopsis: A JavaScript module in the tests folder of GlobalGrid2050 that tests the Renewable Energy Planning Database (REPD) register and uses data from the GridAtlas repository. - What it achieves (comment): It measures map anchor (`measureMapAnchor`) and is built from the record step (`record`). Can a thumb actually reach MAP? - What it does: It tests the REPD register. Defines record, measureMapAnchor. Uses libraries node:assert/strict, node:fs/promises, node:module, playwright. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: data source: gridatlas data. - Downstream impact: Used directly by 1 file: Run V9 7 (globalgrid2050). - Signatures: `record(name, ok, detail)`; `measureMapAnchor(page, scrollTarget = "row")`; `fetchCall(receiverModule.match(/fetch\(RECEIVERS_URL,\s*\{[\s\S]*?\}\)/) || [""])` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: gridatlas data]; out []; crs []; voltages [] - Edges: uses 3 estate files (url-import-meta 2, estate-url 1); used by 1; mentioned by 1 ### Check Map Contract All Rows - File: globalgrid2050/uk_renewables_pipeline/202609061329/tests/check_map_contract_all_rows.mjs (JavaScript, 90 lines) · role test · stage ingest - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_renewables_pipeline/202609061329/tests/check_map_contract_all_rows.mjs#L1-L90 - Page: https://code.globalgrid2050.com/explore-code/s/0511.html#f2 - Synopsis: A JavaScript module in the tests folder of GlobalGrid2050 that tests the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): Every MAP button, not a sample of them. - What it does: It tests the REPD register. Uses libraries node:fs/promises, node:url, node:path, node:assert/strict. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file build_manifest.json. - Downstream impact: Used directly by 1 file: Run V9 7 (globalgrid2050). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file build_manifest.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (url-import-meta 1); used by 1; mentioned by 0 ### Browser Real Map to Engine Agent7 - File: globalgrid2050/uk_renewables_pipeline/202611160020/tests/browser_real_map_to_engine_agent7.mjs (JavaScript, 260 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_renewables_pipeline/202611160020/tests/browser_real_map_to_engine_agent7.mjs#L1-L260 - Page: https://code.globalgrid2050.com/explore-code/s/0512.html#f1 - Synopsis: A JavaScript module in the tests folder of GlobalGrid2050 that tests substations and solar, and uses data from the GridAtlas repository. It is built from the located step (`located`). - What it achieves (comment): Live GridAtlas deep-link proof. Unlike URL-only tests, physically clicks a Pipeline News MAP anchor, opens its actual external page, and demands a composed receiver, a terminal no-error technology layer and visible nearest substation result. - What it does: It tests substations and solar. Defines located. Uses libraries node:assert/strict, node:fs/promises, node:path, node:url, node:module. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, solar. - Inputs & outputs: In: data source: gridatlas data; JSON file build_manifest.json. - Downstream impact: Used directly by 3 files: GlobalGrid2050 Agent7 V922 CI Workflow (globalgrid2050); GlobalGrid2050 Deploy Pages Workflow (globalgrid2050); GlobalGrid2050 V923 GridAtlas Real Map QA Workflow (globalgrid2050). - Signatures: `located(row)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; JSON file build_manifest.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 3; mentioned by 0 ### Atlas Receiver V9 7 - File: globalgrid2050/uk_renewables_pipeline/202611171507/scripts/core/atlas-receiver-v9-7.js (JavaScript, 265 lines) · role ingest · stage ingest - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_renewables_pipeline/202611171507/scripts/core/atlas-receiver-v9-7.js#L1-L265 - Page: https://code.globalgrid2050.com/explore-code/s/0512.html#f2 - Synopsis: A JavaScript module in the core folder of GlobalGrid2050 that fetches receivers and the Renewable Energy Planning Database (REPD) register from the ventus-grid-engine and GridAtlas repositories. - What it achieves (comment): It verifies atlas receiver v9 (`verifyAtlasReceiverV9_7`), loads atlas receiver v9 (`loadAtlasReceiverV9_7`) and builds atlas deep link v9 (`buildAtlasDeepLinkV9_7`). Receiver provenance and original diagnostics: immutable parent V9.35 `atlas-receiver-v9-7.js`. - What it does: It fetches receivers and the REPD register. Defines 10 functions or classes, including stripTrailingSlash, isRetiredReceiverV9_7, atlasReceiverV9_7, atlasReceiverFailureV9_7, primeAtlasReceiverV9_7. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: data source: ventus-grid-engine data; data source: gridatlas data; JSON file receivers.json. - Downstream impact: Used directly by 13 files: Atlas Interconnector Link V9 8 (globalgrid2050); Browser Map Reachability V9 7 (globalgrid2050); Check Map Contract All Rows (globalgrid2050); Check V9 0 (globalgrid2050); and 9 more. Reached from 17 other entry points, including GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/); GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050); GlobalGrid2050 Pn V973 Capacity Reports Workflow (globalgrid2050). - Signatures: `export isRetiredReceiverV9_7(route)`; `export atlasReceiverV9_7()`; `export atlasReceiverFailureV9_7()`; `export primeAtlasReceiverV9_7(document_)`; `export verifyAtlasReceiverV9_7()`; `export loadAtlasReceiverV9_7()`; `export atlasCentresOnRepdPointV9_7(project)`; `export buildAtlasDeepLinkV9_7(project)`; `export atlasUnavailableReasonV9_7(project)`; `stripTrailingSlash(route)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; data source: gridatlas data; JSON file receivers.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (estate-url 2); used by 13; mentioned by 0 ### GridAtlas State - File: globalgrid2050/uk_renewables_pipeline/202611171550/scripts/plugins/gridatlas-state.js (JavaScript, 68 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_renewables_pipeline/202611171550/scripts/plugins/gridatlas-state.js#L1-L68 - Page: https://code.globalgrid2050.com/explore-code/s/0512.html#f3 - Synopsis: A JavaScript file in the plugins folder of GlobalGrid2050 that draws map link state and the Renewable Energy Planning Database (REPD) register, and uses data from the GridAtlas repository. - What it achieves (name): It gets JSON (`getJson`) and is built from the start step (`start`). Defines `getJson`, `annotate`, `summary` and 1 more. It responds to DOMContentLoaded events. - What it does: It draws map link state and the REPD register. Defines getJson, annotate, summary, start. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: data source: gridatlas data; JSON file map_link_state.json; JSON file current.json. - Downstream impact: Used directly by 1 file: GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/). Reached from 4 other entry points, including GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050); V923 Public Readback Workflow (neural-link-between-agents); A4 Legal Model (globalgrid2050). - Signatures: `getJson(url)`; `annotate()`; `summary(state, checkedLive)`; `start()`; `search(composition.cartridges || [])` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; JSON file map_link_state.json; JSON file current.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Map Entry - File: globalgrid2050/uk_renewables_pipeline/202611181019/map-entry.mjs (JavaScript, 89 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_renewables_pipeline/202611181019/map-entry.mjs#L1-L89 - Page: https://code.globalgrid2050.com/explore-code/s/0512.html#f4 - Synopsis: A JavaScript module in the UK renewables pipeline folder of GlobalGrid2050 covering the Renewable Energy Planning Database (REPD) register and uses data from the GridAtlas repository. - What it achieves (name): It is built from the remember category helper (`rememberCategory`), the restore step (`restore`) and the dc restore helper (`dcRestore`). Defines `action`, `refresh`, `rememberCategory` and 2 more. It responds to click and pipeline events. - What it does: It draws the REPD register. Defines action, refresh, rememberCategory, restore, dcRestore. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Downstream impact: Used directly by 1 file: GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/). Reached from 4 other entry points, including GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050); V923 Public Readback Workflow (neural-link-between-agents); A4 Legal Model (globalgrid2050). - Signatures: `action(map,identity,parent)`; `refresh()`; `rememberCategory()`; `restore()`; `dcRestore()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 1, estate-url 1); used by 1; mentioned by 0 ### Map Navigation V970 - File: globalgrid2050/uk_renewables_pipeline/202611221930/tests/map-navigation-v970.mjs (JavaScript, 86 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_renewables_pipeline/202611221930/tests/map-navigation-v970.mjs#L1-L86 - Page: https://code.globalgrid2050.com/explore-code/s/0513.html#f1 - Synopsis: A JavaScript module in the tests folder of GlobalGrid2050 that tests the Renewable Energy Planning Database (REPD) register and uses data from the GridAtlas repository. - What it achieves (comment): V9.70 regression: prove real normal versus expanded MAP navigation, not click events. - What it does: It tests the REPD register. Uses libraries node:assert/strict, playwright. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'navigation'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: the REPD register. - Downstream impact: Used directly by 2 files: GlobalGrid2050 Pn V970 Map Parity Workflow (globalgrid2050); GlobalGrid2050 Pn V971 Retire Legacy Maximise Workflow (globalgrid2050). - domain_stage: field_execution · commercial_user: IPP_developer, EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 2; mentioned by 0 ### Atlas Receiver V9 7 - File: globalgrid2050/uk_renewables_pipeline/v9.7/scripts/core/atlas-receiver-v9-7.js (JavaScript, 168 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_renewables_pipeline/v9.7/scripts/core/atlas-receiver-v9-7.js#L1-L168 - Page: https://code.globalgrid2050.com/explore-code/s/0513.html#f2 - Synopsis: A JavaScript module in the core folder of GlobalGrid2050 that fetches receivers and the Renewable Energy Planning Database (REPD) register from the ventus-grid-engine repository. - What it achieves (comment): It loads atlas receiver v9 (`loadAtlasReceiverV9_7`) and builds atlas deep link v9 (`buildAtlasDeepLinkV9_7`). On the MAP button in this app was measured pointing at the V8 overlay the engine now publishes as retired. Its code works with 132 kV and 500 MW. - What it does: It fetches receivers and the REPD register. Defines 9 functions or classes, including stripTrailingSlash, isRetiredReceiverV9_7, atlasReceiverV9_7, atlasReceiverFailureV9_7, primeAtlasReceiverV9_7. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, 132kV. - Inputs & outputs: In: data source: ventus-grid-engine data; JSON file receivers.json. Voltage levels named: 132kV. - Downstream impact: Used directly by 2 files: Projects V9 5 1 (globalgrid2050); Check V9 5 1 (globalgrid2050). - Signatures: `export isRetiredReceiverV9_7(route)`; `export atlasReceiverV9_7()`; `export atlasReceiverFailureV9_7()`; `export primeAtlasReceiverV9_7(document_)`; `export loadAtlasReceiverV9_7()`; `export atlasCentresOnRepdPointV9_7(project)`; `export buildAtlasDeepLinkV9_7(project)`; `export atlasUnavailableReasonV9_7(project)`; `stripTrailingSlash(route)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; JSON file receivers.json]; out []; crs []; voltages [132kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Build Federation Systems Map - File: globalgrid2050-homepage/scripts/build_federation_systems_map.py (Python, 176 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050-homepage/blob/551a7625b02ddb7b3e6e0181cc643b8114c7fc06/scripts/build_federation_systems_map.py#L1-L176 - Page: https://code.globalgrid2050.com/explore-code/s/0513.html#f3 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 Homepage that reads repo registry and repo edges. It verifies outputs (`verify_outputs`) and writes reports (`write_reports`). - What it achieves (name): Its name says it builds federation systems map. Defines `utcnow`, `sql_path`, `build_map` and 2 more. It accepts `--registry` and `--edges`. - What it does: It loads repo registry and repo edges. Defines 6 functions or classes, including utcnow, sql_path, build_map, verify_outputs, write_reports. Uses libraries __future__, argparse, datetime, json, pathlib. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: In: CSV file repo_registry.csv; CSV file repo_edges.csv; Parquet file nodes.parquet; Parquet file edges.parquet; DuckDB queries; command-line arguments. Out: JSON file FEDERATION_SYSTEMS_MAP_LATEST.json. - Downstream impact: Used directly by 1 file: Gridbot Federation Systems Map Workflow (globalgrid2050-homepage). - Signatures: `utcnow()`; `sql_path(path: Path)`; `build_map(registry: Path, edges: Path)`; `verify_outputs()`; `write_reports(report: dict[str, object])`; `main()` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [CSV file repo_registry.csv; CSV file repo_edges.csv; Parquet file nodes.parquet; Parquet file edges.parquet; DuckDB queries; command-line arguments]; out [JSON file FEDERATION_SYSTEMS_MAP_LATEST.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Release GridAtlas - File: globalgrid2050-homepage/scripts/release_gridatlas.py (Python, 153 lines) · role automation · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050-homepage/blob/551a7625b02ddb7b3e6e0181cc643b8114c7fc06/scripts/release_gridatlas.py#L1-L153 - Page: https://code.globalgrid2050.com/explore-code/s/0513.html#f4 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 Homepage that fetches active pages, using SHA-256 from GitHub API and the GridAtlas repository. - What it achieves (comment): It builds release (`build_release`) and is built from the fetch step (`fetch`) and the exists step (`exists`). One-command GridAtlas homepage release, plus the domain pin for GlobalGrid2050. It accepts `--published-at`, `--description` and `--reason`. - What it does: It fetches active pages. Defines 8 functions or classes, including fetch, exists, label, build_release, apply. Uses libraries argparse, datetime, hashlib, json, pathlib. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: GitHub API; data source: gridatlas data; JSON file current.json; JSON file homepage.json; JSON file active-pages.json; JSON file presentation.json; JSON file entity-types.json; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `fetch(url, limit=5_000_000)`; `exists(url)`; `label(version, published_at)`; `build_release(generation, version, published_at, source_ref, archive)`; `apply(data, release, reason, description=None)`; `release_command(args)`; `pin_command(args)`; `main(argv=None)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: GitHub API; data source: gridatlas data; JSON file current.json; JSON file homepage.json; JSON file active-pages.json; JSON file presentation.json; JSON file entity-types.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 3 estate files (import 1, script-call 1, estate-url 1); used by 0; mentioned by 0 ### Test Release GridAtlas - File: globalgrid2050-homepage/tests/test_release_gridatlas.py (Python, 42 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050-homepage/blob/551a7625b02ddb7b3e6e0181cc643b8114c7fc06/tests/test_release_gridatlas.py#L1-L42 - Page: https://code.globalgrid2050.com/explore-code/s/0513.html#f5 - Synopsis: A test in the tests folder of GlobalGrid2050 Homepage using data from the GridAtlas repository. It sets up (`setUp`) and is built from the grid atlas release tests class (`GridAtlasReleaseTests`). - What it achieves (name): Defines `GridAtlasReleaseTests`, `setUp`, `test_label_format` and 2 more. - What it does: It tests its inputs. Defines GridAtlasReleaseTests, setUp, test_label_format, test_next_release_is_promoted_and_history_retained, test_duplicate_release_refused. Uses libraries copy, importlib.util, json, pathlib, sys. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: gridatlas data; JSON file homepage.json. - Downstream impact: Used directly by 3 files: Build Homepage Release Candidate Workflow (globalgrid2050-homepage); Pages Workflow (globalgrid2050-homepage); PR Checks Workflow (globalgrid2050-homepage). - Signatures: `class GridAtlasReleaseTests`; `setUp(self)`; `test_label_format(self)`; `test_next_release_is_promoted_and_history_retained(self)`; `test_duplicate_release_refused(self)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; JSON file homepage.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### GridAtlas GPU - File: graphics-engines-open-source/gridatlas_gpu.py (Python, 42 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/graphics-engines-open-source/blob/79e0bd8ee33844835e553fc84d552b6aa1521152/gridatlas_gpu.py#L1-L42 - Page: https://code.globalgrid2050.com/explore-code/s/0513.html#f6 - Synopsis: A Python module in Graphics Engines Open Source covering atlas GPU summary, atlas nearest, solar and substations, using SHA-256 and haversine. - What it achieves (comment): It is built from the load step (`load`), the valid step (`valid`) and the unit step (`unit`). All valid solar points against all valid substations in supplied Atlas snapshots. - What it does: Defines load, valid, unit. Uses libraries argparse, hashlib, json, time, math. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar, substations. README: "`gridatlas_gpu.py PROJECTS_JSON SUBSTATIONS_GEOJSON` compares every valid solar point against every valid substation in those supplied snapshots, in bounded GPU batches." - Inputs & outputs: In: command-line arguments. Out: JSON file atlas-gpu-summary.json; JSON file atlas-nearest.json. - Signatures: `load(path)`; `valid(lon,lat)`; `unit(r)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out [JSON file atlas-gpu-summary.json; JSON file atlas-nearest.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GridAtlas Test - File: graphics-engines-open-source/tests/gridatlas.test.mjs (JavaScript, 38 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/graphics-engines-open-source/blob/79e0bd8ee33844835e553fc84d552b6aa1521152/tests/gridatlas.test.mjs#L1-L38 - Page: https://code.globalgrid2050.com/explore-code/s/0514.html#f1 - Synopsis: A test in the tests folder of Graphics Engines Open Source that checks GridAtlas. - What it achieves (name): Defines `payload`. - What it does: It tests solar. Defines payload. Uses libraries node:test, node:assert/strict. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar. - Inputs & outputs: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 2 files: Geometry Check Workflow (graphics-engines-open-source); Pages Workflow (graphics-engines-open-source). - Signatures: `payload(rows)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Route File Test - File: graphics-engines-open-source/tests/route-file.test.mjs (JavaScript, 31 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/graphics-engines-open-source/blob/79e0bd8ee33844835e553fc84d552b6aa1521152/tests/route-file.test.mjs#L1-L31 - Page: https://code.globalgrid2050.com/explore-code/s/0514.html#f2 - Synopsis: A test in the tests folder of Graphics Engines Open Source that checks Route File and Explore. - What it achieves (name): Defines `envelope`. - What it does: It tests its inputs. Defines envelope. Uses libraries node:test, node:assert/strict, node:fs, node:vm. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 2 files: Geometry Check Workflow (graphics-engines-open-source); Pages Workflow (graphics-engines-open-source). - Signatures: `envelope()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 1, url-import-meta 1); used by 2; mentioned by 0 ### Atlas Picker - File: graphics-engines-open-source/web/atlas-picker.mjs (JavaScript, 66 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/graphics-engines-open-source/blob/79e0bd8ee33844835e553fc84d552b6aa1521152/web/atlas-picker.mjs#L1-L66 - Page: https://code.globalgrid2050.com/explore-code/s/0514.html#f3 - Published at: https://ventusltd.github.io/graphics-engines-open-source/web/ - Synopsis: A JavaScript module in Graphics Engines Open Source covering solar and the Renewable Energy Planning Database (REPD) register. Served with the page at https://ventusltd.github.io/graphics-engines-open-source/web/. - What it achieves (name): Defines `element` and `refresh`. It responds to input and click events. - What it does: It draws solar and the REPD register. Defines element, refresh. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar, the REPD register. - Downstream impact: Used directly by 2 files: Graphics Engines Open Source — Index Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/); Pages Workflow (graphics-engines-open-source). Reached from 1 other entry point, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/). It is itself an entry point, published at https://ventusltd.github.io/graphics-engines-open-source/web/. - Signatures: `element(tag, text, attributes = {})`; `refresh()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### GridAtlas - File: graphics-engines-open-source/web/gridatlas.mjs (JavaScript, 109 lines) · role ingest · stage ingest - Source: https://github.com/Ventusltd/graphics-engines-open-source/blob/79e0bd8ee33844835e553fc84d552b6aa1521152/web/gridatlas.mjs#L1-L109 - Page: https://code.globalgrid2050.com/explore-code/s/0514.html#f4 - Published at: https://ventusltd.github.io/graphics-engines-open-source/web/ - Synopsis: A JavaScript module in Graphics Engines Open Source that fetches projects and grid substations, using SHA-256 from the data-GridAtlas and GridAtlas repositories. Served with the page at https://ventusltd.github.io/graphics-engines-open-source/web/. - What it achieves (comment): It decodes grid atlas projects (`decodeGridAtlasProjects`), loads grid atlas projects (`loadGridAtlasProjects`) and searches projects (`searchProjects`). GridAtlas's public Renewable Energy Planning Database (REPD) routing index supplies points, not surveyed boundaries. - What it does: It fetches projects, grid substations and the REPD register. Defines 9 functions or classes, including coordinate, publishedCoordinate, decodeGridAtlasProjects, loadGridAtlasProjects, searchProjects. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: data source: data-gridatlas data; data source: gridatlas data; JSON file projects.json; GeoJSON file grid_substations.geojson. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. - Downstream impact: Used directly by 3 files: Substation Picker (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/); GridAtlas Test (graphics-engines-open-source); Atlas Picker (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/). Reached from 4 other entry points, including Graphics Engines Open Source — Index Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/); Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Geometry Check Workflow (graphics-engines-open-source). - Signatures: `export decodeGridAtlasProjects(data)`; `export loadGridAtlasProjects({ signal } = {})`; `export searchProjects(projects, query = '', { limit = 30, technology = 'solar' } = {})`; `export projectToLocalMetres(point, origin)`; `export gridAtlasProjectUrl(project)`; `export decodeGridAtlasSubstations(data)`; `export loadGridAtlasSubstations({ signal } = {})`; `coordinate(latitude, longitude)`; `publishedCoordinate(latitude, longitude)`; `deltaLongitude((point.longitude - origin.longitude + 540) % 360)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: data-gridatlas data; data source: gridatlas data; JSON file projects.json; GeoJSON file grid_substations.geojson]; out []; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 3; mentioned by 0 ### Route File - File: graphics-engines-open-source/web/route-file.mjs (JavaScript, 29 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/graphics-engines-open-source/blob/79e0bd8ee33844835e553fc84d552b6aa1521152/web/route-file.mjs#L1-L29 - Page: https://code.globalgrid2050.com/explore-code/s/0514.html#f5 - Published at: https://ventusltd.github.io/graphics-engines-open-source/web/ - Synopsis: A JavaScript module in Graphics Engines Open Source that calculates planar distances, covering cables. Served with the page at https://ventusltd.github.io/graphics-engines-open-source/web/. It is built from the serialize route file helper (`serializeRouteFile`). - What it achieves (comment): Portable local metric routes. No network requests or inferred site geometry. - What it does: Defines parseRouteFile, serializeRouteFile. - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: cables. - Downstream impact: Used directly by 2 files: Route File Test (graphics-engines-open-source); Route Files UI (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/). Reached from 4 other entry points, including Graphics Engines Open Source — Index Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/); Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Geometry Check Workflow (graphics-engines-open-source). - Signatures: `export parseRouteFile(text)`; `export serializeRouteFile(routes)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Route Files UI - File: graphics-engines-open-source/web/route-files-ui.mjs (JavaScript, 19 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/graphics-engines-open-source/blob/79e0bd8ee33844835e553fc84d552b6aa1521152/web/route-files-ui.mjs#L1-L19 - Page: https://code.globalgrid2050.com/explore-code/s/0514.html#f6 - Published at: https://ventusltd.github.io/graphics-engines-open-source/web/ - Synopsis: A JavaScript module in Graphics Engines Open Source that draws electrical routes and cables. Served with the page at https://ventusltd.github.io/graphics-engines-open-source/web/. - What it achieves (name): It responds to change and click events. - What it does: It draws electrical routes and cables. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: cables. - Inputs & outputs: Out: JSON file electrical-routes.json; downloaded file electrical-routes.json. - Downstream impact: Used directly by 2 files: Graphics Engines Open Source — Index Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/); Geometry Check Workflow (graphics-engines-open-source). Reached from 1 other entry point, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/). It is itself an entry point, published at https://ventusltd.github.io/graphics-engines-open-source/web/. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out [JSON file electrical-routes.json; downloaded file electrical-routes.json]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Route Tool - File: graphics-engines-open-source/web/versions/202609262227-site-world/world/route-tool.mjs (JavaScript, 93 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/graphics-engines-open-source/blob/79e0bd8ee33844835e553fc84d552b6aa1521152/web/versions/202609262227-site-world/world/route-tool.mjs#L1-L93 - Page: https://code.globalgrid2050.com/explore-code/s/0514.html#f7 - Synopsis: A JavaScript module in the world folder of Graphics Engines Open Source that describes controls (`describeControls`) and calculates planar distances. - What it achieves (comment): It describes controls (`describeControls`) and is built from the snapshot step (`snapshot`) and the changed step (`changed`). A small state machine for drawing a route on the ground, in Walk or Drone view. - What it does: It calculates its inputs. Defines createRouteTool, snapshot, changed, point, describeControls. - Why it exists in the grid workflow: Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 1 file: Design UI (graphics-engines-open-source). Reached from 3 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/); Substrate (graphics-engines-open-source). - Signatures: `export createRouteTool({ onChange = () => {} } = {})`; `export describeControls({ touch = false } = {})`; `snapshot()`; `changed()`; `addPoint(p)`; `movePoint(i, p)`; `removeLast()`; `finish()`; `clear()`; `point(p)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Geodesy - File: grid-distance-maths/src/geodesy.mjs (JavaScript, 410 lines) · role geodesy · stage transform - Source: https://github.com/Ventusltd/grid-distance-maths/blob/8e91b07d8312acca5bcaef43e839f06a3b1d642a/src/geodesy.mjs#L1-L410 - Page: https://code.globalgrid2050.com/explore-code/s/0515.html#f1 - Synopsis: A JavaScript module in Grid Distance Maths that works with cables and substations, using haversine and Vincenty. - What it achieves (comment): It is built from the curvature km helper (`curvatureKm`), the local scale km helper (`localScaleKm`) and the distance km helper (`distanceKm`). Every Ventus tool that measures a distance on the grid should call this, so that the same two points always produce the same number. - What it does: It calculates cables and substations. Defines 14 functions or classes, including curvatureKm, localScaleKm, distanceKm, distanceEllipsoidalKm, pathLengthKm. - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: cables, substations. - Inputs & outputs: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 5 files: Parity Driver (grid-distance-maths); Verify (grid-distance-maths); Verify Nearest (grid-distance-maths); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); and 1 more. Reached from 2 other entry points, including Genome Workflow (ventus-grid-engine); Verify Parity (grid-distance-maths). - Signatures: `export curvatureKm(latDeg)`; `export localScaleKm(latDeg)`; `export distanceKm(lon1, lat1, lon2, lat2, radius = R_ATLAS)`; `export distanceEllipsoidalKm(lon1, lat1, lon2, lat2)`; `export pathLengthKm(coords, radius = R_ATLAS)`; `export initialBearingDeg(lon1, lat1, lon2, lat2)`; `export destinationPoint(lon, lat, km, bearingDeg, radius = R_ATLAS)`; `export distanceToSegmentKm(lon, lat, aLon, aLat, bLon, bLat, radius = R_ATLAS)`; `export distanceToLineKm(lon, lat, coords, radius = R_ATLAS)`; `export geodesicCircle(lon, lat, radiusKm, vertices = 128, radius = R_ATLAS)`; `export circleApproximationError(vertices)`; `export polygonAreaKm2(coords, radius = R_ATLAS)`; `export areaUnits(areaKm2)`; `export class SpatialIndex`; `dLat(lat2 - lat1)`; `dLon(lon2 - lon1)`; `L(lon2 - lon1)`; `sinAlpha(cU1 * cU2 * sl)`; `C(f / 16)`; `u2(cos2Alpha * (a * a - b * b))`; `B(u2 / 1024)`; `dl(lon2 - lon1)`; `ax(aLon - lon)`; `bx(bLon - lon)`; `j(i + 1)` (and 12 more) - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: BEARING (GG2050-VEDIC-000005): GridAtlas / Geodesy · Mathematics / Trigonometry. coordinate_pair, coordinate_pair -> bearing_deg - VEDIC: DESTINATION (GG2050-VEDIC-000004): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, distance_km, bearing_deg -> coordinate_pair - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 5; mentioned by 1 ### Geodesy - File: grid-distance-maths/src/geodesy.py (Python, 408 lines) · role geodesy · stage transform - Source: https://github.com/Ventusltd/grid-distance-maths/blob/8e91b07d8312acca5bcaef43e839f06a3b1d642a/src/geodesy.py#L1-L408 - Page: https://code.globalgrid2050.com/explore-code/s/0516.html#f1 - Synopsis: A Python module in Grid Distance Maths that works with cables and substations, using haversine and Vincenty. - What it achieves (comment): It adds segment (`add_segment`) and is built from the curvature km helper (`curvature_km`) and the local scale km helper (`local_scale_km`). Canonical geodesy, Python twin of `src/geodesy.mjs`. - What it does: It calculates cables and substations. Defines 20 functions or classes, including curvature_km, local_scale_km, distance_km, distance_ellipsoidal_km, path_length_km. Uses libraries __future__, math, typing. - Why it exists in the grid workflow: Domain stage site_feasibility (topic 'maps-gis'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: cables, substations. - Inputs & outputs: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 1 file: Verify Parity (grid-distance-maths). - Signatures: `curvature_km(lat_deg: float)`; `local_scale_km(lat_deg: float)`; `distance_km(lon1: float, lat1: float, lon2: float, lat2: float, radius: float = R_ATLAS)`; `distance_ellipsoidal_km(lon1: float, lat1: float, lon2: float, lat2: float)`; `path_length_km(coords: Sequence[Sequence[float]], radius: float = R_ATLAS)`; `initial_bearing_deg(lon1: float, lat1: float, lon2: float, lat2: float)`; `destination_point(lon: float, lat: float, km: float, bearing_deg: float, radius: float = R_ATLAS)`; `distance_to_segment_km(lon: float, lat: float, a_lon: float, a_lat: float, b_lon: float, b_lat: float, radius: float = R_ATLAS)`; `distance_to_line_km(lon: float, lat: float, coords: Sequence[Sequence[float]], radius: float = R_ATLAS)`; `geodesic_circle(lon: float, lat: float, radius_km: float, vertices: int = 128, radius: float = R_ATLAS)`; `circle_approximation_error(vertices: int)`; `polygon_area_km2(coords: Sequence[Sequence[float]], radius: float = R_ATLAS)`; `area_units(area_km2: float)`; `class SpatialIndex`; `__init__(self, cell_degrees: float = 0.1)`; `cell_of(self, lon: float, lat: float)`; `add(self, ident, lon: float, lat: float)`; `add_segment(self, ident, a_lon, a_lat, b_lon, b_lat)`; `swept_clearance_km(self, lon: float, lat: float, ring: int)`; `nearest(self, lon: float, lat: float, measure: Callable[[object], float], max_rings: int = 90)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Build Readiness - File: gridatlas/202608310050-gridatlas-next-version-builders/tools/202608310050-build-readiness.mjs (JavaScript, 112 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/202608310050-gridatlas-next-version-builders/tools/202608310050-build-readiness.mjs#L1-L112 - Page: https://code.globalgrid2050.com/explore-code/s/0516.html#f2 - Synopsis: A JavaScript module in the tools folder of GridAtlas that reads handover and the Renewable Energy Planning Database (REPD) register, using SHA-256. It writes JSON (`writeJson`). - What it achieves (name): Its name says it builds readiness. Defines `sha256`, `writeJson` and `copy`. It writes `readiness.json`. - What it does: It loads handover and the REPD register. Defines sha256, writeJson, copy. Uses libraries node:crypto, node:fs, node:path. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file readiness.json; JSON file status.json; JSON file handover.json; command-line arguments. - Downstream impact: Used directly by 1 file: GridAtlas Next Version Builders Workflow (gridatlas). - Signatures: `sha256(file)`; `writeJson(name, value)`; `copy(relative, targetDirectory = 'source')` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file readiness.json; JSON file status.json; JSON file handover.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Finalise Stage - File: gridatlas/202608310050-gridatlas-next-version-builders/tools/202608310050-finalise-stage.mjs (JavaScript, 87 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/202608310050-gridatlas-next-version-builders/tools/202608310050-finalise-stage.mjs#L1-L87 - Page: https://code.globalgrid2050.com/explore-code/s/0516.html#f3 - Synopsis: A JavaScript module in the tools folder of GridAtlas that uses SHA-256. It is built from the sha256 step (`sha256`). - What it achieves (name): Defines `outcome`, `success`, `list` and 1 more. - What it does: It loads data. Defines outcome, success, list, sha256. Uses libraries node:crypto, node:fs, node:path. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file source-lock.json; command-line arguments. Out: JSON file status.json. - Downstream impact: Used directly by 1 file: GridAtlas Next Version Builders Workflow (gridatlas). - Signatures: `outcome(name)`; `success(name)`; `list(directory)`; `sha256(file)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file source-lock.json; command-line arguments]; out [JSON file status.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Prove Federated Deep Links - File: gridatlas/202608310050-gridatlas-next-version-builders/tools/202608310050-prove-federated-deep-links.mjs (JavaScript, 114 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/202608310050-gridatlas-next-version-builders/tools/202608310050-prove-federated-deep-links.mjs#L1-L114 - Page: https://code.globalgrid2050.com/explore-code/s/0517.html#f1 - Synopsis: A JavaScript module in the tools folder of GridAtlas. - What it does: Uses libraries node:fs, node:path, playwright. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 1 file: GridAtlas Next Version Builders Workflow (gridatlas). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 2 estate files (estate-url 2); used by 1; mentioned by 0 ### Select Build Plan - File: gridatlas/202608310050-gridatlas-next-version-builders/tools/202608310050-select-build-plan.mjs (JavaScript, 180 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/202608310050-gridatlas-next-version-builders/tools/202608310050-select-build-plan.mjs#L1-L180 - Page: https://code.globalgrid2050.com/explore-code/s/0517.html#f2 - Synopsis: A JavaScript module in the tools folder of GridAtlas that lists files (`listFiles`), using SHA-256. - What it achieves (name): It lists files (`listFiles`) and is built from the london generation helper (`londonGeneration`) and the output step (`output`). Defines `invariant`, `londonGeneration`, `pick` and 7 more. - What it does: It loads data. Defines 11 functions or classes, including invariant, londonGeneration, pick, output, listFiles. Uses libraries node:crypto, node:fs, node:os, node:path, node:child_process. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file status.json. Out: JSON file source-lock.json. - Downstream impact: Used directly by 1 file: GridAtlas Next Version Builders Workflow (gridatlas). - Signatures: `invariant(condition, message)`; `londonGeneration(date = new Date())`; `pick(type)`; `output(values)`; `listFiles(directory)`; `wordCount(text)`; `inspectBuildPlan(directory)`; `refs()`; `materialise(ref, destination)`; `completedStages()`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file status.json]; out [JSON file source-lock.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 1 ### Streaming Parquet Bridge V9 5 - File: gridatlas/atlas/cartridges/202610230100-streaming-parquet-bridge-v9-5.js (JavaScript, 336 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/cartridges/202610230100-streaming-parquet-bridge-v9-5.js#L1-L336 - Page: https://code.globalgrid2050.com/explore-code/s/0517.html#f3 - Synopsis: A JavaScript file in the cartridges folder of GridAtlas that reads grid 400kV, grid 275kV, grid 220kV and grid 132kV, using SHA-256 from the data-GridAtlas repository. - What it achieves (name): It maps ready key (`mapReadyKey`), gets manifest (`getManifest`) and gets runtime (`getRuntime`). Defines `invariant`, `requestPath`, `mapReadyKey` and 13 more. It responds to abort events. - What it does: It loads grid 400kV, grid 275kV, grid 220kV and grid 132kV. Defines 16 functions or classes, including invariant, requestPath, mapReadyKey, legacyStem, sha256Hex. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: data-gridatlas data; GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. - Signatures: `invariant(condition, message)`; `requestPath(input)`; `mapReadyKey(pathname)`; `legacyStem(pathname)`; `sha256Hex(bytes)`; `getManifest()`; `sharedDuckDBRuntime(moduleUrl)`; `getRuntime()`; `scheduleRuntimePrewarm()`; `start()`; `resolvePartition(pathname)`; `artifact(manifest.artifacts || [])`; `rowObject(row)`; `queryOnDemand(pathname)`; `abort()`; `cancel()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: data-gridatlas data; GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### Place Global Search V9 5 - File: gridatlas/atlas/cartridges/202611180026-place-global-search-v9-5.js (JavaScript, 931 lines) · role geodesy · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/cartridges/202611180026-place-global-search-v9-5.js#L1-L931 - Page: https://code.globalgrid2050.com/explore-code/s/0518.html#f1 - Synopsis: A JavaScript file in the cartridges folder of GridAtlas that maps Renewable Energy Planning Database (REPD) projects and offshore coordinates, using SHA-256, and uses data from postcodes.io and OpenStreetMap Nominatim. - What it achieves (comment): It marks deep link cancelled (`markDeepLinkCancelled`), normalises compact (`normaliseCompact`) and parses groups (`parseGroups`). ASSEMBLED by `tools/build-cartridge.mjs` from the parts below. It responds to gridatlas, click and input events. - What it does: It maps REPD projects, offshore coordinates, postcodes and the REPD register. Defines 41 functions or classes, including invariant, arrivalCoordinator, markDeepLinkCancelled, invalidatePendingDeepLink, escapeHtml. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: postcodes, the REPD register. - Inputs & outputs: In: data source: postcodes.io; data source: OpenStreetMap Nominatim; Parquet file repd_projects_202611132345.parquet; JSON file repd_v9_manifest_202611132345.json; JSON file offshore-coordinates.json; DuckDB queries. Out: interactive map. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/). - Signatures: `invariant(condition, message)`; `arrivalCoordinator()`; `markDeepLinkCancelled(reason, epoch = null)`; `invalidatePendingDeepLink(reason)`; `escapeHtml(value)`; `sqlString(value)`; `normaliseCompact(value)`; `parseGroups(query)`; `sha256Hex(bytes)`; `verifyManifest()`; `sharedDuckDBRuntime(moduleUrl)`; `runtime()`; `resetOfficialRuntime()`; `installMapCapture()`; `construct(target, args, newTarget)`; `buildWhere(query)`; `buildScore(query)`; `rowObject(row)`; `queryOfficialRepd(query, serial = null, stillOwned = null)`; `hasSafeMapPoint(result)`; `loadDerivedCoordinates()`; `derivedCoordinateFor(repdRef)`; `setDeepLink(result)`; `selectResult(result, options = {})`; `geocoderGet(path, query)` (and 15 more) - VEDIC: QUERY (GG2050-VEDIC-000046): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_predicate - VEDIC: SCORE (GG2050-VEDIC-000047): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_sort_expression - VEDIC: UK GEOCODE (GG2050-VEDIC-000048): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> uk_location_candidates - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: postcodes.io; data source: OpenStreetMap Nominatim; Parquet file repd_projects_202611132345.parquet; JSON file repd_v9_manifest_202611132345.json; JSON file offshore-coordinates.json; DuckDB queries]; out [interactive map]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Codex Lab - File: gridatlas/atlas/codex/202609020010/assets/lab.css (CSS, 12 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/codex/202609020010/assets/lab.css#L1-L12 - Page: https://code.globalgrid2050.com/explore-code/s/0519.html#f2 - Synopsis: A style sheet in the assets folder of GridAtlas. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage agent_infra (path word 'codex'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Downstream impact: Used directly by 1 file: Atlas — Codex Page (gridatlas, https://gridatlas.globalgrid2050.com/atlas/codex/202609020010/). - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Codex Lab - File: gridatlas/atlas/codex/202609020010/assets/lab.js (JavaScript, 36 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/codex/202609020010/assets/lab.js#L1-L36 - Page: https://code.globalgrid2050.com/explore-code/s/0519.html#f3 - Synopsis: A JavaScript file in the assets folder of GridAtlas. - What it achieves (name): Defines `envelope`. It responds to submit events. - What it does: Defines envelope. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage agent_infra (path word 'codex'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Downstream impact: Used directly by 1 file: Atlas — Codex Page (gridatlas, https://gridatlas.globalgrid2050.com/atlas/codex/202609020010/). - Signatures: `envelope(values)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Atlas — Codex Page - File: gridatlas/atlas/codex/202609020010/index.html (HTML, 31 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/codex/202609020010/index.html#L1-L31 - Page: https://code.globalgrid2050.com/explore-code/s/0519.html#f4 - Published at: https://gridatlas.globalgrid2050.com/atlas/codex/202609020010/ - Synopsis: A web page in GridAtlas that reads inputs for lon, lat and Renewable Energy Planning Database (REPD) ref. Published at https://gridatlas.globalgrid2050.com/atlas/codex/202609020010/. - What it achieves (comment): Codex computation lab. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage agent_infra (path word 'codex'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). README: "`atlas/index.html` is the stable composer." - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/codex/202609020010/. - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 2 estate files (stylesheet 1, script-src 1); used by 0; mentioned by 0 ### Codex Proof - File: gridatlas/atlas/codex/202609020010/proof.mjs (JavaScript, 112 lines) · role storage · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/codex/202609020010/proof.mjs#L1-L112 - Page: https://code.globalgrid2050.com/explore-code/s/0519.html#f5 - Published at: https://gridatlas.globalgrid2050.com/atlas/codex/202609020010/ - Synopsis: A JavaScript module in the atlas folder of GridAtlas that fetches route, using SHA-256. Served with the page at https://gridatlas.globalgrid2050.com/atlas/codex/202609020010/. - What it achieves (name): Defines `git`, `check` and `walk`. - What it does: It fetches route. Defines git, check, walk. Uses libraries node:crypto, node:child_process, node:fs/promises, node:path, node:url. Side effects: reads or writes files; makes network requests; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage agent_infra (path word 'codex'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: JSON file route-manifest.json; browser IndexedDB. - Signatures: `git(...args)`; `check(label, condition)`; `walk(dir)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file route-manifest.json; browser IndexedDB]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GridAtlas — Atlas Page - File: gridatlas/atlas/index.html (HTML, 124 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/index.html#L1-L124 - Page: https://code.globalgrid2050.com/explore-code/s/0519.html#f6 - Published at: https://gridatlas.globalgrid2050.com/atlas/ - Synopsis: A web page that works with escape attribute (`escapeAttribute`) and sha256 hex (`sha256Hex`), using SHA-256. Published at https://gridatlas.globalgrid2050.com/atlas/. - What it achieves (readme): It is built from the invariant step (`invariant`), the escape attribute helper (`escapeAttribute`) and the sha256 hex helper (`sha256Hex`). The README says: `atlas/index.html` is the stable composer. It reads `./current.json`. - What it does: It draws its content. Defines invariant, escapeAttribute, sha256Hex, fail. Uses libraries ${escapeAttribute(blobUrl)}. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. README: "`atlas/index.html` is the stable composer." - Inputs & outputs: In: JSON file current.json. Out: web page. - Downstream impact: Used directly by 242 files: Pilot (globalgrid2050, https://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/); Links (globalgrid2050); Build N1 Deep Link Candidates (code-generator); Single-Line Diagram (SLD) Mobile Arrival Card Browser (gridatlas); and 238 more. Reached from 317 other entry points, including Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); Pilot (cosmic, https://ventusltd.github.io/cosmic/tools/explore/theme/pilot.html); Iterations — 32 Spider and Galaxy Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/32-spider-and-galaxy/). It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/. - Signatures: `invariant(condition, message)`; `escapeAttribute(value)`; `sha256Hex(bytes)`; `fail(error)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out [web page]; crs []; voltages [] - Edges: uses 0 estate files; used by 242; mentioned by 1 ### Labs — Lightning Grid - File: gridatlas/atlas/labs/lightning-grid/app.mjs (JavaScript, 277 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/labs/lightning-grid/app.mjs#L1-L277 - Page: https://code.globalgrid2050.com/explore-code/s/0520.html#f1 - Published at: https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/ - Synopsis: A JavaScript module in the atlas folder of GridAtlas that draws UK lightning and uses data from the lightning and PipelineNews repositories. Served with the page at https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/. - What it achieves (comment): It maps status (`mapStatus`), downloads JSON (`downloadJSON`) and gets assets (`getAssets`). Standalone Lightning → existing MAP/nearest Grid Engine integration LAB. It responds to change and click events. - What it does: It draws UK lightning, grid substations and solar. Defines 18 functions or classes, including el, pretty, date, mapStatus, node. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar. - Inputs & outputs: In: data source: lightning data; data source: pipelinenews data; GeoJSON file uk_lightning.geojson; GeoJSON file grid_substations.geojson. - Downstream impact: Used directly by 1 file: Labs — Lightning Grid Page (gridatlas, https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/). It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/. - Signatures: `el(id)`; `pretty(n)`; `date(t)`; `mapStatus(msg)`; `node(tag,value,cls='')`; `clear(id)`; `line(target,what)`; `status(msg)`; `fail(message)`; `downloadJSON(url)`; `features(data)`; `getAssets()`; `currentFlash()`; `setObservation(f)`; `display(ctx,assets)`; `scenario()`; `inspect()`; `start()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: lightning data; data source: pipelinenews data; GeoJSON file uk_lightning.geojson; GeoJSON file grid_substations.geojson]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Feed Contract - File: gridatlas/atlas/labs/lightning-grid/feed-contract.mjs (JavaScript, 101 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/labs/lightning-grid/feed-contract.mjs#L1-L101 - Page: https://code.globalgrid2050.com/explore-code/s/0520.html#f2 - Published at: https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/ - Synopsis: A JavaScript module in the lightning grid folder of GridAtlas that parses optical feed (`parseOpticalFeed`) and describes optical feed evidence (`describeOpticalFeedEvidence`). Served with the page at https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/. - What it achieves (comment): It parses optical feed (`parseOpticalFeed`) and describes optical feed evidence (`describeOpticalFeedEvidence`). Read-only source-evidence contract for the standalone Lightning → Grid Lab. - What it does: Defines utc, finite, validCoordinates, parseOpticalFeed, describeOpticalFeedEvidence. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Labs — Lightning Grid (gridatlas, https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/). Reached from 1 other entry point, including Labs — Lightning Grid Page (gridatlas, https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/). - Signatures: `export parseOpticalFeed(data,{nowMs=Date.now(),staleAfterHours=6}={})`; `export describeOpticalFeedEvidence(e)`; `utc(t)`; `finite(n)`; `validCoordinates(p)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 1 ### Labs — Lightning Grid Page - File: gridatlas/atlas/labs/lightning-grid/index.html (HTML, 116 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/labs/lightning-grid/index.html#L1-L116 - Page: https://code.globalgrid2050.com/explore-code/s/0520.html#f3 - Published at: https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/ - Synopsis: A web page in the atlas folder of GridAtlas that reads inputs for flash, radius and kV, covering solar and substations. Published at https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/. - What it achieves (comment): Lightning → Grid Scenario Lab. Its code works with 132 kV, 275 kV and 400 kV. - What it does: It draws solar, substations and the REPD register. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar, substations, the REPD register, 400kV, 275kV, 132kV. README: "`atlas/index.html` is the stable composer." - Inputs & outputs: In: form fields (user input). Out: web page. Voltage levels named: 400kV, 275kV, 132kV. - Downstream impact: It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [400kV, 275kV, 132kV] - Edges: uses 2 estate files (link 1, script-src 1); used by 0; mentioned by 0 ### Map View - File: gridatlas/atlas/labs/lightning-grid/map-view.mjs (JavaScript, 215 lines) · role render · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/labs/lightning-grid/map-view.mjs#L1-L215 - Page: https://code.globalgrid2050.com/explore-code/s/0521.html#f1 - Published at: https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/ - Synopsis: A JavaScript module in the lightning grid folder of GridAtlas that maps optical observations, optical clusters, optical cluster tap and optical dots. Served with the page at https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/. - What it achieves (comment): It adds sources layers (`addSourcesAndLayers`), paints selection (`paintSelection`) and paints context (`paintContext`). Optical-flash map view for the standalone Lightning → Grid laboratory. - What it does: It maps optical observations, optical clusters, optical cluster tap and optical dots. Defines 10 functions or classes, including blank, ref, checkedFeature, number, initLightningMap. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Labs — Lightning Grid (gridatlas, https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/). Reached from 1 other entry point, including Labs — Lightning Grid Page (gridatlas, https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/). - Signatures: `export initLightningMap({onPick,onStatus=()=>{},onError=()=>{}}={})`; `blank()`; `ref(p)`; `checkedFeature(f)`; `number(n)`; `addSourcesAndLayers()`; `paint()`; `paintSelection()`; `paintContext()`; `fit(features,padding=40)`; `setObservations(rows)`; `selectFlash(f)`; `setContext(c)`; `clearContext()`; `fitFlashes()`; `fitSelection()`; `getBounds()`; `isReady()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Geodesy - File: gridatlas/atlas/modules/202609011950-geodesy.js (JavaScript, 145 lines) · role geodesy · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609011950-geodesy.js#L1-L145 - Page: https://code.globalgrid2050.com/explore-code/s/0521.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that works with distance km (`distanceKm`) and representative point (`representativePoint`) and calculates great-circle distances and angles (units: kV), using haversine. - What it achieves (comment): It is built from the distance km helper (`distanceKm`), the representative point helper (`representativePoint`) and the voltages kV helper (`voltagesKv`). One Earth radius for the whole estate, and the three operations every measurement here is built from. Its code works with 750 kV. - What it does: Defines distanceKm, representativePoint, voltagesKv, destinationPoint, initialBearingDeg. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, 750kV. - Inputs & outputs: Voltage levels named: 750kV. - Downstream impact: Used directly by 4 files: Asset Context Test (gridatlas); Model Test (gridatlas); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Ventus Grid Engine — Genome Page (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/). Reached from 2 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Genome Workflow (ventus-grid-engine). - Signatures: `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `distanceKm(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `dLon(lon2 - lon1)`; `representativePoint(geometry)`; `voltagesKv(properties)`; `destinationPoint(lon, lat, km, bearingDeg)`; `initialBearingDeg(lon1, lat1, lon2, lat2)`; `dl(lon2 - lon1)` - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - VEDIC: VOLTAGE (GG2050-VEDIC-000003): GridAtlas / Geodesy · Computer science / Data normalisation. voltage_properties -> kilovolt_list - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [750kV] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Grid Scope - File: gridatlas/atlas/modules/202609012040-grid-scope.js (JavaScript, 165 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609012040-grid-scope.js#L1-L165 - Page: https://code.globalgrid2050.com/explore-code/s/0521.html#f3 - Synopsis: A JavaScript file in the atlas folder of GridAtlas covering substations, using haversine. It is built from the class of helper (`classOf`) and the scope step (`scope`). - What it achieves (comment): "When you click on a blank space, the user should be able to see grid in the vicinity. Its code works with 110 kV, 132 kV and 50 kV. - What it does: It lists and searches substations. Defines classOf, scope. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, 750kV, 132kV, 110kV, 50kV. - Inputs & outputs: Voltage levels named: 750kV, 132kV, 110kV, 50kV. - Signatures: `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `classOf(kv)`; `scope(origin, substations, options)`; `bandsKm(options && options.bandsKm)`; `minimumKv(options && options.minimumKv)`; `nearestCount(options && options.nearestCount)`; `voltages(Array.isArray(substation.kv) ? substation.kv : [])` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [750kV, 132kV, 110kV, 50kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Declared Connections - File: gridatlas/atlas/modules/202609012128-declared-connections.js (JavaScript, 258 lines) · role render · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609012128-declared-connections.js#L1-L258 - Page: https://code.globalgrid2050.com/explore-code/s/0522.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that works with nearest transmission (`nearestTransmission`) (units: kV, MVA, MW), covering substations, 400kV, solar and 132kV. - What it achieves (comment): It is built from the works at helper (`worksAt`), the provisional step (`provisional`) and the resolve step (`resolve`). The 400kV public record: what each DCO-scale scheme has DECLARED as its point of connection, taken from Development Consent Orders, Planning Inspectorate documents and public project statements. Its code works with 400 kV, 132 kV and 33 kV. - What it does: It lists and searches substations, 400kV, solar and 132kV. Defines worksAt, provisional, resolve, nearestTransmission. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, 400kV, solar, 132kV, 33kV. - Inputs & outputs: Voltage levels named: 400kV, 132kV, 33kV. - Downstream impact: Used directly by 6 files: Grid Vicinity (gridatlas); Document Context Test (gridatlas); Document Context (gridatlas); Standalone (stars); and 2 more. Reached from 389 other entry points, including Code Generator — Index Page (code-generator, https://ventusltd.github.io/code-generator/); Generate (code-generator, https://ventusltd.github.io/code-generator/); 404 (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/404.html). - Signatures: `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `worksAt(name)`; `provisional(repdRef)`; `resolve(repdRef, origin, subs)`; `match(Array.isArray(subs) ? subs : [])`; `nearestTransmission(origin, subs)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 132kV, 33kV] - Edges: uses 0 estate files; used by 6; mentioned by 0 ### Sizing Arithmetic - File: gridatlas/atlas/modules/202609012205-sizing-arithmetic.js (JavaScript, 573 lines) · role render · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609012205-sizing-arithmetic.js#L1-L573 - Page: https://code.globalgrid2050.com/explore-code/s/0522.html#f2 - Synopsis: A JavaScript module in the atlas folder of GridAtlas that builds stats (`buildStats`) and applies development stage defaults (`applyDevelopmentStageDefaults`) and mounting bifacial (`applyMountingBifacial`) (units: MW, MVA, MWh). - What it achieves (comment): It builds stats (`buildStats`), applies development stage defaults (`applyDevelopmentStageDefaults`) and applies mounting bifacial (`applyMountingBifacial`). The screening arithmetic of the single-line diagram (SLD) sandbox: physical inputs to array statistics, the three named ratios (design, export, headroom), the string and central topologies with their corrected nameplates, the finance port of `gis-sld-v5-finance.js`. Its code works with 4.4 MVA, 352 kVA and 44.8 MW. - What it does: Defines 12 functions or classes, including physicalInputs, buildStats, consistency, stringStats, centralStats. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers, cables. - Downstream impact: Used directly by 2 files: Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Ventus Grid Engine — Genome Page (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/). Reached from 1 other entry point, including Genome Workflow (ventus-grid-engine). - Signatures: `physicalInputs(inputs)`; `buildStats(inputs, o)`; `dcMwp(o.module_count * p.mod_wp)`; `consistency(inputs, stats)`; `stringStats(inputs)`; `inverterAcMaxMva(i.y_invs * i.string_inv_kva)`; `centralStats(inputs)`; `strDcKwp(i.x_mods_c * i.mod_wp_c)`; `financeNumber(value)`; `applyDevelopmentStageDefaults(financeInputs, stageValue)`; `applyMountingBifacial(financeByMode, mode, gcrValue)`; `values(financeByMode || {})`; `screeningFinance(financeInputs, stats, context)`; `centralInverterAc(stats?.mode || (context && context.fallbackMode))`; `computeStats(inputs, financeByMode, defaults)`; `fitToStatedCapacity(sld, computeSldStats)`; `oneMore(() => { sld.inputs[outerKey] = best.outer + 1; const s = computeSldStats(); sld.inputs[outerKey] = best.outer; const ...)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Electrical Distance - File: gridatlas/atlas/modules/202609012245-electrical-distance.js (JavaScript, 365 lines) · role geodesy · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609012245-electrical-distance.js#L1-L365 - Page: https://code.globalgrid2050.com/explore-code/s/0523.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that starts nodes (`startNodes`) (units: kV, MVA), covering transformers and substations. - What it achieves (comment): It starts nodes (`startNodes`) and is built from the crossing step (`crossing`) and the describe step (`describe`). How far away a substation is, measured in the network operator's own published circuits rather than in kilometres. Its code works with 100 MVA. - What it does: It lists and searches transformers and substations. Defines 6 functions or classes, including crossing, describe, legality, startNodes, between. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers, substations. - Downstream impact: Used directly by 3 files: Route Plan Test (gridatlas); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Ventus Grid Engine — Genome Page (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/). Reached from 2 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Genome Workflow (ventus-grid-engine). - Signatures: `crossing(graph, nearNode, farNode)`; `describe(graph, entry, nearNode)`; `legality(kind, cross)`; `startNodes(graph, site, voltageKv)`; `between(index, fromKey, toKey, options)`; `within(index, key, options)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Source Registry - File: gridatlas/atlas/modules/202609012245-source-registry.js (JavaScript, 163 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609012245-source-registry.js#L1-L163 - Page: https://code.globalgrid2050.com/explore-code/s/0523.html#f3 - Synopsis: A JavaScript file in the atlas folder of GridAtlas covering substations and transformers. It is built from the survey step (`survey`) and the ready step (`ready`). - What it achieves (comment): "Click anywhere on a map and the neons that already work via Pipeline News look for cartridges and code." — Vikram, . - What it does: It lists and searches substations and transformers. Defines survey, ready. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, transformers. - Signatures: `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `survey(scope)`; `ready(id, scope)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Rating Envelope - File: gridatlas/atlas/modules/202609012250-rating-envelope.js (JavaScript, 213 lines) · role electrical · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609012250-rating-envelope.js#L1-L213 - Page: https://code.globalgrid2050.com/explore-code/s/0524.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas covering 400kV. It is built from the seasons of helper (`seasonsOf`) and the flags for helper (`flagsFor`). - What it achieves (comment): What the operator publishes a circuit can carry, season by season - and a structural refusal to add those numbers up. Its code works with 400 kV and 132 kV. - What it does: It lists and searches 400kV. Defines seasonsOf, flagsFor, at. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 132kV. - Inputs & outputs: Voltage levels named: 400kV, 132kV. - Downstream impact: Used directly by 2 files: Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Ventus Grid Engine — Genome Page (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/). Reached from 1 other entry point, including Genome Workflow (ventus-grid-engine). - Signatures: `seasonsOf(row)`; `flagsFor(published)`; `at(index, key, options)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 132kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Planned Change - File: gridatlas/atlas/modules/202609012345-planned-change.js (JavaScript, 323 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609012345-planned-change.js#L1-L323 - Page: https://code.globalgrid2050.com/explore-code/s/0524.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that works with status rank (`statusRank`) and year rank (`yearRank`) (units: kV, MVA), covering transformers. - What it achieves (comment): It is built from the as string helper (`asString`), the as number helper (`asNumber`) and the status rank helper (`statusRank`). What the network operator has PUBLISHED as planned for the circuits and transformers that touch one site: additions, changes and removals, by the year they are published against. Its code works with 100 MVA. - What it does: It lists and searches transformers. Defines 8 functions or classes, including asString, asNumber, statusRank, yearRank, publishedToday. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers. - Signatures: `asString(v)`; `asNumber(v)`; `statusRank(status)`; `yearRank(year)`; `publishedToday(graph, nearNode, farNode)`; `index(product)`; `describe(landing, nearNode)`; `at(key, options)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Owner Boundary - File: gridatlas/atlas/modules/202609012350-owner-boundary.js (JavaScript, 354 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609012350-owner-boundary.js#L1-L354 - Page: https://code.globalgrid2050.com/explore-code/s/0525.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas covering transformers. - What it achieves (comment): It is built from the as string helper (`asString`), the as number helper (`asNumber`) and the band key helper (`bandKey`). Which transmission owner the published assets at a site belong to, and which circuits cross from one owner's network into another's. - What it does: It lists and searches transformers. Defines 12 functions or classes, including asString, asNumber, bandKey, index, ownerOfNode. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers. - Signatures: `asString(v)`; `asNumber(v)`; `bandKey(kv)`; `index(product)`; `ownerOfNode(name)`; `relation(nearOwner, farOwner)`; `describe(entry, nearNode)`; `at(key, options)`; `band(kv)`; `count(b, owner, what)`; `byPair(list)`; `boundaries()`; `o(node && asString(node.transmission_owner))` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Injection Response - File: gridatlas/atlas/modules/202609020015-injection-response.js (JavaScript, 568 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609020015-injection-response.js#L1-L568 - Page: https://code.globalgrid2050.com/explore-code/s/0526.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that makes union find (`makeUnionFind`) (units: MW, MVA, kV), covering transformers and 400kV. - What it achieves (name): It makes union find (`makeUnionFind`) and is built from the bus of helper (`busOf`) and the component of helper (`componentOf`). Defines `makeUnionFind`, `find`, `assemble` and 7 more. Its code works with 400 kV, 190 MW and 100 MVA. - What it does: Defines 10 functions or classes, including makeUnionFind, find, assemble, busOf, componentOf. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers, 400kV. - Inputs & outputs: Voltage levels named: 400kV. - Signatures: `makeUnionFind()`; `find(x)`; `union(a, b)`; `assemble(graph, nodeNames, { voltageKv, includeTransformers })`; `busOf(name)`; `componentOf(bus)`; `multiply(model, x, slackIndex)`; `solve(model, injection, slackIndex, tolerance, maxIterations)`; `sinkFor(model, atNode)`; `respond(model, options)`; `flowPu(solved.theta[e.i] - solved.theta[e.j])`; `modelFor(index, options)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Pipeline News Layers - File: gridatlas/atlas/modules/202609030048-pipeline-news-layers.js (JavaScript, 479 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609030048-pipeline-news-layers.js#L1-L479 - Page: https://code.globalgrid2050.com/explore-code/s/0527.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps the Renewable Energy Planning Database (REPD) register, solar, wind and battery storage (BESS). - What it achieves (comment): It reads register source (`readRegisterSource`), loads register (`loadRegister`) and reads selection (`readSelection`). A PIPELINE NEWS (REPD) section in the layer dashboard, beside TOPOLOGY, ASSETS and TRANSIT, that summons the rest of the pipeline around whatever project is currently selected. It responds to change events. - What it does: It maps the REPD register, solar, wind and battery storage (BESS). Defines 17 functions or classes, including note, readRegisterSource, primeRegister, loadRegister, readSelection. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, wind, battery storage (BESS). - Inputs & outputs: Out: interactive map. - Signatures: `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `note(message)`; `readRegisterSource(map)`; `coordinates(feature.geometry || {})`; `primeRegister()`; `loadRegister(map)`; `readSelection(map)`; `name(features[0].properties || {})`; `near(rows, selection)`; `collection(rows)`; `setSourceData(map, id, data)`; `ensureLayers(map, control)`; `properties(event.features && event.features[0] || {})`; `escapeHtml(value)`; `setVisibility(map, control, visible)`; `labelFor(control, count, selection)`; `paintLabels(selection)`; `refresh(map, control)`; `buildGroup(container, isFullscreen)`; `bind(map, container)`; `install()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Pinned Products - File: gridatlas/atlas/modules/202609030137-pinned-products.js (JavaScript, 176 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609030137-pinned-products.js#L1-L176 - Page: https://code.globalgrid2050.com/explore-code/s/0527.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that works with digest bytes and digest hex, covering connection points, GB transmission network, price decade rollup and transformers, using SHA-256. - What it achieves (comment): It is built from the pin step (`pin`), the URL step (`url`) and the encode step (`encode`). Pinned-products - the runtime data this Atlas reads, by commit and by digest. - What it does: Defines 6 functions or classes, including pin, url, encode, digestBytes, digestHex. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers. - Inputs & outputs: In: JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; JSON file price-decade-rollup.json. - Signatures: `pin(id)`; `url(id)`; `encode(text)`; `digestBytes(bytes)`; `subtle(window.crypto || {})`; `digestHex(text)`; `verify(id, text)`; `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; JSON file price-decade-rollup.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Corridor Estimate - File: gridatlas/atlas/modules/202609030205-corridor-estimate.js (JavaScript, 114 lines) · role render · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609030205-corridor-estimate.js#L1-L114 - Page: https://code.globalgrid2050.com/explore-code/s/0528.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas covering cables and overhead lines (OHL). It is built from the for cable helper (`forCable`). - What it achieves (comment): Corridor-estimate - a straight line is not a route, and this says how far off. - What it does: Defines forCable. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage hv_procurement (path word 'estimate'): HV materials procurement, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, overhead lines (OHL). - Downstream impact: Used directly by 2 files: Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Ventus Grid Engine — Genome Page (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/). Reached from 1 other entry point, including Genome Workflow (ventus-grid-engine). - Signatures: `forCable(km)`; `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})` - domain_stage: hv_procurement · commercial_user: EPC_contractor, procurement_buyer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Technology Coverage - File: gridatlas/atlas/modules/202609031310-technology-coverage.js (JavaScript, 279 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609031310-technology-coverage.js#L1-L279 - Page: https://code.globalgrid2050.com/explore-code/s/0528.html#f2 - Synopsis: A JavaScript module in the atlas folder of GridAtlas that works with named offshore and wider fleet names, covering grid substations, the Renewable Energy Planning Database (REPD) register and wind. - What it achieves (name): It is built from the bucket of helper (`bucketOf`), the named offshore helper (`namedOffshore`) and the wider fleet names helper (`widerFleetNames`). Defines `bucketOf`, `policy`, `namedOffshore` and 3 more. Its code works with 220 kV, 33 kV and 132 kV. - What it does: It lists and searches grid substations, the REPD register, wind and cables. Defines 6 functions or classes, including bucketOf, policy, namedOffshore, widerFleetNames, widerFleetBuckets. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, wind, cables, 400kV, 275kV, 220kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 220kV, 132kV, 33kV. - Signatures: `bucketOf(tech)`; `policy(tech)`; `namedOffshore(name)`; `widerFleetNames()`; `widerFleetBuckets()`; `measuredCount()`; `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 220kV, 132kV, 33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Arrival Tidy - File: gridatlas/atlas/modules/202609032220-arrival-tidy.js (JavaScript, 94 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609032220-arrival-tidy.js#L1-L94 - Page: https://code.globalgrid2050.com/explore-code/s/0528.html#f3 - Synopsis: A JavaScript file in the atlas folder of GridAtlas. It is built from the tidy step (`tidy`), the retire step (`retire`) and the watch step (`watch`). - What it achieves (comment): The search machinery gets out of the way once it has answered. It responds to focus, input and DOMContentLoaded events. - What it does: Defines tidy, retire, watch. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Signatures: `tidy()`; `retire()`; `watch()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Teleprint Controls - File: gridatlas/atlas/modules/202609051624-teleprint-controls.js (JavaScript, 1238 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609051624-teleprint-controls.js#L1-L1238 - Page: https://code.globalgrid2050.com/explore-code/s/0529.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas covering the Renewable Energy Planning Database (REPD) register, using SHA-256 and uses data from the npm repository. - What it achieves (comment): It stops tracks (`stopTracks`), reads text (`readText`) and collects source code (`collectSourceCode`). Built by `teleprinter/drivers/gridatlas/build-part.mjs` from the drivers in that directory, which are where any change belongs. Its code works with 400 kV. It responds to click events. - What it does: It draws the REPD register. Defines 27 functions or classes, including stopTracks, pixelsFromSource, fromDisplay, screenFrame, bytes. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, 400kV. - Inputs & outputs: In: data source: npm data. Out: canvas drawing; SVG drawing. Voltage levels named: 400kV. - Signatures: `stopTracks(stream)`; `pixelsFromSource(source, width, height)`; `fromDisplay()`; `screenFrame({ capture } = {})`; `bytes(text)`; `join(parts)`; `pdfString(text)`; `deflate(data)`; `screenPdf(frame, note = {})`; `printPdf({ capture, note = {}, filename } = {})`; `textual(url, type)`; `readText(url)`; `screenState()`; `text((label && label.textContent) || node.name || node.id || '')`; `discover()`; `add(url, how)`; `collectSourceCode({ appName = 'GridAtlas', inlineDom = true } = {})`; `missing(targets.overflow || [])`; `downloadText(text, filename)`; `showTeleprintPanel(text, filename, parts)`; `prepareSourceCode(options = {})`; `deliverSourceCode(collected, { prefer, panel = true } = {})`; `printSourceCode(options = {})`; `statusLine(anchor)`; `say(text)` (and 3 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: npm data]; out [canvas drawing; SVG drawing]; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Popup Viewport - File: gridatlas/atlas/modules/202609241334-popup-viewport.js (JavaScript, 67 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609241334-popup-viewport.js#L1-L67 - Page: https://code.globalgrid2050.com/explore-code/s/0530.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that keeps ordinary feature cards clear of the fixed search/menu controls. - What it achieves (name): Defines `fit` and `schedule`. It responds to resize events. - What it does: Defines fit, schedule. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Signatures: `fit()`; `schedule()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### UK Lightning Overlay - File: gridatlas/atlas/modules/202610291043-uk-lightning-overlay.js (JavaScript, 401 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202610291043-uk-lightning-overlay.js#L1-L401 - Page: https://code.globalgrid2050.com/explore-code/s/0531.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps Renewable Energy Planning Database (REPD) projects and REPD master, using SHA-256, and uses data from the lightning repository. - What it achieves (comment): EUMETSAT MTG LI L2-LFL optical flashes, OFF by default, never persisted; NOT confirmed ground strikes; unsearched is unknown, never zero. Its code works with 0 MW. It responds to click, toggle and change events. - What it does: It maps REPD projects, REPD master, the REPD register and substations. Defines q. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, substations. - Inputs & outputs: In: data source: lightning data; GeoJSON file uk_lightning.geojson; JSON file index.json; Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; JSON file repd_master.json; DuckDB queries; form fields (user input). - Signatures: `sw(raw.scan_windows||[])`; `ub(r.rows||[])`; `T()`; `q(s)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: lightning data; GeoJSON file uk_lightning.geojson; JSON file index.json; Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; JSON file repd_master.json; DuckDB queries; form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Ventus Compute Observer - File: gridatlas/atlas/modules/202611161645-ventus-compute-observer.js (JavaScript, 272 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611161645-ventus-compute-observer.js#L1-L272 - Page: https://code.globalgrid2050.com/explore-code/s/0531.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that describes compute receipt (`describeComputeReceipt`) and calculates great-circle distances and angles (units: kV), covering substations, using haversine. - What it achieves (comment): It creates compute observer (`createComputeObserver`) and describes compute receipt (`describeComputeReceipt`). Ventus Grid Engine: generated receipt observer; not a substitute nearest engine. Its code works with 750 kV. - What it does: Defines 15 functions or classes, including distanceKm, distanceKm, representativePoint, voltagesKv, destinationPoint. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, 750kV. - Inputs & outputs: Voltage levels named: 750kV. - Signatures: `distanceKm(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `dLon(lon2 - lon1)`; `representativePoint(geometry)`; `voltagesKv(properties)`; `destinationPoint(lon, lat, km, bearingDeg)`; `initialBearingDeg(lon1, lat1, lon2, lat2)`; `dl(lon2 - lon1)`; `copy(value)`; `finite(value)`; `located(point)`; `sameLocation(a, b)`; `sameEntity(a, b)`; `createComputeObserver({ onEvent = () => {}, now = () => Date.now() } = {})`; `publish(attempt, status, extra = {})`; `get(id)`; `request({ entity, location = null, operation = 'nearest-grid', dataset = null })`; `unsupported(id, reason)`; `run(id, compute)`; `snapshot(id = latest)`; `assess(id, expected)`; `describeComputeReceipt(receipt)` - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - VEDIC: VOLTAGE (GG2050-VEDIC-000003): GridAtlas / Geodesy · Computer science / Data normalisation. voltage_properties -> kilovolt_list - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [750kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Grid Journey Preview - File: gridatlas/atlas/modules/202611172355-grid-journey-preview.js (JavaScript, 859 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611172355-grid-journey-preview.js#L1-L859 - Page: https://code.globalgrid2050.com/explore-code/s/0532.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps network, transformers and cables, using SHA-256. It validates product (`validateProduct`), validates ledger (`validateLedger`) and classifies edges (`classifyEdges`). - What it achieves (comment): Canonical engine Ventusltd/ventus-grid-engine. No live pointer writes. Its code works with 100 MVA. It responds to change events. - What it does: It maps network, transformers and cables. Defines 67 functions or classes, including JourneyTopology, voltageOf, bandKey, ratingsOf, physicalUnits. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers, cables. - Inputs & outputs: In: JSON file network.json. Coordinate systems named: WGS84 / EPSG:4326. - Signatures: `voltageOf(node)`; `bandKey(kv)`; `ratingsOf(row)`; `physicalUnits(records)`; `parametersOf(row)`; `index(product)`; `land(nodeName, entry)`; `siteOf(nodeName)`; `graph()`; `resolve(key)`; `at(key, options)`; `fail(message)`; `object(v)`; `text(v, label)`; `ordinal(a, b)`; `canonicalJson(value)`; `encode(v)`; `sha256(bytes)`; `url(v, label)`; `receipt(v, label)`; `source(v, label)`; `rights(v, label)`; `identity(v, label)`; `position(v, label)`; `edgeUid(bundleSha, kind, sourceIndex)` (and 15 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file network.json]; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Grid Vicinity - File: gridatlas/atlas/modules/202611180026-grid-vicinity.js (JavaScript, 1277 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611180026-grid-vicinity.js#L1-L1277 - Page: https://code.globalgrid2050.com/explore-code/s/0533.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps notice, grid substations, the Renewable Energy Planning Database (REPD) register and transformers, using SHA-256. - What it achieves (comment): It normalises origin (`normaliseOrigin`), parses vicinity intent (`parseVicinityIntent`) and validates news context base (`validateNewsContextBase`). GridAtlas vicinity : source-built spatial context, no inferred circuits. Its code works with 33 kV, 11 kV and 132 kV. It responds to click events. - What it does: It maps notice, grid substations, the REPD register and transformers. Defines 127 functions or classes, including validCoordinate, radiusKm, normaliseOrigin, parseVicinityIntent, numberText. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, transformers, 400kV, 275kV, 132kV, 66kV. - Inputs & outputs: In: JSON file notice.json; GeoJSON file grid_substations.geojson. Out: interactive map. Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Signatures: `validCoordinate(at)`; `radiusKm(value)`; `normaliseOrigin(origin, {requireIdentity = false} = {})`; `parseVicinityIntent(search)`; `numberText(value)`; `validateNewsContextBase(value)`; `normaliseNewsTopic(value, origin)`; `newsContextHref(base, origin, topic)`; `voltageBands(kv)`; `stationRecords(features, geodesy)`; `exploreVicinity({origin, radius, records, bands, geodesy, limit = 200})`; `vicinityGeoJSON(result, geodesy)`; `assetCoordinate(at)`; `statedMw(value)`; `assetId(value)`; `assetPrecision(p)`; `collectAssetContext({map,registry={},origin,radiusKm,geodesy,limit=200}={})`; `get(id)`; `add(category,row)`; `freezeDocumentContext(value)`; `documentOrigin(origin)`; `documentContextFor(origin, {declaredConnections} = {})`; `trainCoordinate(at)`; `normaliseTrainStop(stop)`; `buildStationIndex(features, {geodesy, datasetPin = null} = {})` (and 15 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file notice.json; GeoJSON file grid_substations.geojson]; out [interactive map]; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV, 11kV] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 1 ### UK Offtakers Overlay - File: gridatlas/atlas/modules/202611222000-uk-offtakers-overlay.js (JavaScript, 465 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611222000-uk-offtakers-overlay.js#L1-L465 - Page: https://code.globalgrid2050.com/explore-code/s/0535.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps offtakers filtered, UK datacentre pipeline, conventional power UK and Renewable Energy Planning Database (REPD) master, using SHA-256. - What it achieves (comment): It opens project vicinity (`openProjectVicinity`) and updates project swipe (`updateProjectSwipe`). Potential offtakers: sites listed in open registers (National Atmospheric Emissions Inventory (NAEI) 2023 point sources, GPPD) and OpenStreetMap, classified by the OT-filter rules (energy-intensive industry, power stations incl. closed and closing, data centres, large water works, other large users). Its code works with 33 kV, 275 kV and 66 kV. It responds to click, toggle and keydown events. - What it does: It maps offtakers filtered, UK datacentre pipeline, conventional power UK and REPD master. Defines 7 functions or classes, including D, q, openProjectVicinity, initProjectSwipe, b. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 275kV, 66kV, 33kV. - Inputs & outputs: In: GeoJSON file offtakers_filtered_202610292000.geojson; GeoJSON file uk_datacentre_pipeline_202610312133.geojson; GeoJSON file conventional_power_uk_202610292000.geojson; JSON file repd_master.json; Parquet file repd_projects_202611132345.parquet; JSON file repd_v9_manifest_202611132345.json; form fields (user input). Out: interactive map. Voltage levels named: 275kV, 66kV, 33kV. - Signatures: `D(v,q)`; `n(c.k||[])`; `ps(c.P||[])`; `q(s)`; `openProjectVicinity(input)`; `initProjectSwipe(map,card)`; `b(txt,aria)`; `updateProjectSwipe(card)`; `subs(card.k||[])`; `repd(card.P||[])`; `power(card.cv||[])`; `stepProjectSwipe(map,card,delta)` - VEDIC: OPEN VICINITY (GG2050-VEDIC-000050): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. project_reference, longitude_latitude, name_optional, technology_optional, capacity_MW_optional -> screening_card_opened_boolean - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoJSON file offtakers_filtered_202610292000.geojson; GeoJSON file uk_datacentre_pipeline_202610312133.geojson; GeoJSON file conventional_power_uk_202610292000.geojson; JSON file repd_master.json; Parquet file repd_projects_202611132345.parquet; JSON file repd_v9_manifest_202611132345.json; form fields (user input)]; out [interactive map]; crs []; voltages [275kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Vicinity Entry - File: gridatlas/atlas/modules/202611222000-vicinity-entry.js (JavaScript, 28 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611222000-vicinity-entry.js#L1-L28 - Page: https://code.globalgrid2050.com/explore-code/s/0535.html#f3 - Synopsis: A JavaScript file in the atlas folder of GridAtlas covering the Renewable Energy Planning Database (REPD) register. It is built from the mount step (`mount`). - What it achieves (comment): GridAtlas V9.194 additive PipelineNews MAP VICINITY button. It responds to click events. - What it does: It draws the REPD register. Defines mount. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Signatures: `position()`; `mount()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Vicinity Focus - File: gridatlas/atlas/modules/202611222130-vicinity-focus.js (JavaScript, 169 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611222130-vicinity-focus.js#L1-L169 - Page: https://code.globalgrid2050.com/explore-code/s/0535.html#f4 - Synopsis: A JavaScript file in the atlas folder of GridAtlas covering the Renewable Energy Planning Database (REPD) register and substations. - What it achieves (comment): It is built from the module step (`module`), the map step (`map`) and the fmt step (`fmt`). GridAtlas V9.195 candidate: asset-first VICINITY focus. It responds to click, touchstart and touchend events. - What it does: It draws the REPD register and substations. Defines 10 functions or classes, including module, map, fmt, safely, label. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, substations. - Signatures: `module()`; `map()`; `fmt(n)`; `safely(v)`; `label(p,txt,attr)`; `asset(card)`; `render(card)`; `navigate(card,type,rank)`; `install(card)`; `sync()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/modules/202612012118-secondary-vicinity-focus.js) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Vicinity Controls Rescue - File: gridatlas/atlas/modules/202611222343-vicinity-controls-rescue.js (JavaScript, 131 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611222343-vicinity-controls-rescue.js#L1-L131 - Page: https://code.globalgrid2050.com/explore-code/s/0536.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that works with float layers (`floatLayers`) and full mode (`fullMode`) (units: MW). - What it achieves (comment): It is built from the answered step (`answered`), the float layers helper (`floatLayers`) and the wake step (`wake`). The V9.194 launcher put this button INSIDE the map-controls stacking context. It responds to visibilitychange, pagehide and click events. - What it does: Defines 8 functions or classes, including answered, floatLayers, wake, fallback, tick. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Signatures: `tech(q.get('technology')||'')`; `answered()`; `floatLayers()`; `wake()`; `fallback()`; `tick()`; `later()`; `fullMode()`; `reflect()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/modules/g203-vicinity-controls-rescue.js) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Handoff - File: gridatlas/atlas/modules/202611242030-satnav-handoff.js (JavaScript, 351 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611242030-satnav-handoff.js#L1-L351 - Page: https://code.globalgrid2050.com/explore-code/s/0536.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps grid substations and postcodes, and uses data from the SatNav repository. - What it achieves (comment): It places search (`placeSearch`), searches input (`searchInput`) and closes panel (`closePanel`). Native GridAtlas M1 candidate; adapted from Agent33 . It responds to input, keydown and pagehide events. - What it does: It maps grid substations and postcodes. Defines 21 functions or classes, including button, field, disclosure, samePoint, satellite. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'handoff'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). Domain terms in the code: postcodes. - Inputs & outputs: In: data source: satnav data; GeoJSON file grid_substations.geojson. Out: interactive map. Coordinate systems named: WGS84 / EPSG:4326. - Signatures: `button(id, name, parent = actions)`; `field(label, id)`; `disclosure(id, title, content)`; `samePoint(a, b)`; `satellite()`; `projectRef()`; `placeSearch()`; `projectSelection()`; `searchInput()`; `closePanel()`; `currentCardPoint(kind)`; `reset(message)`; `render()`; `stage(kind, selection)`; `mapClick(event)`; `selectedProject()`; `selectedLocation()`; `stillCurrent()`; `destinationName(kind, value)`; `syncFullscreenHost()`; `refresh()` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: satnav data; GeoJSON file grid_substations.geojson]; out [interactive map]; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Origin Focus - File: gridatlas/atlas/modules/202611242030-satnav-origin-focus.js (JavaScript, 169 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611242030-satnav-origin-focus.js#L1-L169 - Page: https://code.globalgrid2050.com/explore-code/s/0536.html#f3 - Synopsis: A JavaScript file in the atlas folder of GridAtlas covering the Renewable Energy Planning Database (REPD) register and substations. - What it achieves (comment): It is built from the module step (`module`), the map step (`map`) and the fmt step (`fmt`). GridAtlas V9.195 candidate: asset-first VICINITY focus. It responds to click, touchstart and touchend events. - What it does: It draws the REPD register and substations. Defines 10 functions or classes, including module, map, fmt, safely, label. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: the REPD register, substations. - Signatures: `module()`; `map()`; `fmt(n)`; `safely(v)`; `label(p,txt,attr)`; `asset(card)`; `render(card)`; `navigate(card,type,rank)`; `install(card)`; `sync()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/modules/202612012118-secondary-vicinity-focus.js) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Point Vicinity - File: gridatlas/atlas/modules/202611242030-satnav-point-vicinity.js (JavaScript, 474 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611242030-satnav-point-vicinity.js#L1-L474 - Page: https://code.globalgrid2050.com/explore-code/s/0537.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps offtakers filtered, UK datacentre pipeline, conventional power UK and Renewable Energy Planning Database (REPD) master, using SHA-256. - What it achieves (comment): It opens point vicinity (`openPointVicinity`), opens project vicinity (`openProjectVicinity`) and updates project swipe (`updateProjectSwipe`). UK-offtakers-overlay. Potential offtakers: sites listed in open registers (National Atmospheric Emissions Inventory (NAEI) 2023 point sources, GPPD) and OpenStreetMap, classified by the OT-filter rules (energy-intensive industry, power stations incl. closed and closing, data centres, large water works, other large users). Its code works with 33 kV, 275 kV and 66 kV. It responds to click, toggle and keydown events. - What it does: It maps offtakers filtered, UK datacentre pipeline, conventional power UK and REPD master. Defines 8 functions or classes, including D, q, openPointVicinity, openProjectVicinity, initProjectSwipe. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: 275kV, 66kV, 33kV. - Inputs & outputs: In: GeoJSON file offtakers_filtered_202610292000.geojson; GeoJSON file uk_datacentre_pipeline_202610312133.geojson; GeoJSON file conventional_power_uk_202610292000.geojson; JSON file repd_master.json; Parquet file repd_projects_202611132345.parquet; JSON file repd_v9_manifest_202611132345.json; form fields (user input). Out: interactive map. Voltage levels named: 275kV, 66kV, 33kV. - Signatures: `D(v,q)`; `n(c.k||[])`; `ps(c.P||[])`; `q(s)`; `openPointVicinity(input)`; `openProjectVicinity(input)`; `initProjectSwipe(map,card)`; `b(txt,aria)`; `updateProjectSwipe(card)`; `subs(card.k||[])`; `repd(card.P||[])`; `power(card.cv||[])`; `stepProjectSwipe(map,card,delta)` - VEDIC: OPEN VICINITY (GG2050-VEDIC-000050): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. project_reference, longitude_latitude, name_optional, technology_optional, capacity_MW_optional -> screening_card_opened_boolean - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoJSON file offtakers_filtered_202610292000.geojson; GeoJSON file uk_datacentre_pipeline_202610312133.geojson; GeoJSON file conventional_power_uk_202610292000.geojson; JSON file repd_master.json; Parquet file repd_projects_202611132345.parquet; JSON file repd_v9_manifest_202611132345.json; form fields (user input)]; out [interactive map]; crs []; voltages [275kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Practice Line - File: gridatlas/atlas/modules/202611242248-satnav-practice-line.js (JavaScript, 280 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611242248-satnav-practice-line.js#L1-L280 - Page: https://code.globalgrid2050.com/explore-code/s/0538.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas using data from the SatNav repository. It formats metres (`formatMetres`), draws features (`drawFeatures`) and stops tracking (`stopTracking`). - What it achieves (comment): SatNav practice section preview. Positions and section coordinates are session-local. It responds to keydown, pagehide and pageshow events. - What it does: It maps its content. Defines 10 functions or classes, including button, readout, formatMetres, drawFeatures, render. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Signatures: `button(id, label, parent)`; `readout(id, label)`; `formatMetres(value)`; `drawFeatures(features)`; `render()`; `stopTracking(message)`; `clearSelection(message)`; `mapClick(event)`; `showPanel(show)`; `refresh()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Vicinity Legal Evidence - File: gridatlas/atlas/modules/202611280016-vicinity-legal-evidence.js (JavaScript, 75 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611280016-vicinity-legal-evidence.js#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0538.html#f2 - Synopsis: A JavaScript module in the atlas folder of GridAtlas covering the Renewable Energy Planning Database (REPD) register and uses data from the legislation repository. - What it achieves (comment): It is built from the evidence URL helper (`evidenceUrl`), the render step (`render`) and the sync step (`sync`). Read-only adapter for the selected origin in GridAtlas Vicinity. It responds to pagehide events. - What it does: It draws the REPD register. Defines evidenceUrl, render, sync. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Signatures: `evidenceUrl(arrival, selectedRef)`; `render(card, arrival)`; `sync()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### SatNav Compact Preview - File: gridatlas/atlas/modules/202611281237-satnav-compact-preview.js (JavaScript, 143 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611281237-satnav-compact-preview.js#L1-L143 - Page: https://code.globalgrid2050.com/explore-code/s/0538.html#f3 - Synopsis: A JavaScript file in the atlas folder of GridAtlas using data from the SatNav repository. It maps click (`mapClick`), stops tracking (`stopTracking`) and applies location (`applyLocation`). - What it achieves (comment): GridAtlas map, independent endpoints, session-only GPS. It responds to keydown, pagehide and pageshow events. - What it does: It maps its content. Defines 7 functions or classes, including features, render, arm, mapClick, stopTracking. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Signatures: `features()`; `render()`; `arm(which)`; `mapClick(event)`; `stopTracking(message)`; `applyLocation()`; `refresh()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Field Compass - File: gridatlas/atlas/modules/202611281255-satnav-field-compass.js (JavaScript, 147 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611281255-satnav-field-compass.js#L1-L147 - Page: https://code.globalgrid2050.com/explore-code/s/0538.html#f4 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that updates bearing (`updateBearing`) and attaches map (`attachMap`). It updates bearing (`updateBearing`) and attaches map (`attachMap`). - What it achieves (comment): Add-on for the versioned SatNav maps. It responds to click, deviceorientationabsolute and deviceorientation events. - What it does: It draws its content. Defines 6 functions or classes, including orientation, stop, updateBearing, sourceChanged, attachMap. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'compass'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Signatures: `orientation(event)`; `stop(message = '')`; `updateBearing()`; `sourceChanged(event)`; `attachMap()`; `resume()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Offline Plan - File: gridatlas/atlas/modules/202611281256-satnav-offline-plan.js (JavaScript, 29 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611281256-satnav-offline-plan.js#L1-L29 - Page: https://code.globalgrid2050.com/explore-code/s/0538.html#f5 - Synopsis: A JavaScript file in the atlas folder of GridAtlas. It is built from the attach step (`attach`). - What it achieves (comment): Optional cartridge for the versioned waypoint maps. It responds to satnav events. - What it does: It draws its content. Defines attach. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Signatures: `attach()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Start Walk - File: gridatlas/atlas/modules/202611281340-satnav-start-walk.js (JavaScript, 230 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611281340-satnav-start-walk.js#L1-L230 - Page: https://code.globalgrid2050.com/explore-code/s/0539.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that attaches map (`attachMap`), syncs plan (`syncPlan`) and reads inputs for SatNav walk mode. - What it achieves (comment): It attaches map (`attachMap`), syncs plan (`syncPlan`) and stops walk (`stopWalk`). Explicit walking on the existing field map. It responds to resize, fullscreenchange and webkitfullscreenchange events. - What it does: It maps its content. Defines 13 functions or classes, including mount, choose, distance, bearing, clearHeader. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: form fields (user input). - Signatures: `mount()`; `choose()`; `distance(m)`; `bearing(n)`; `clearHeader()`; `draw()`; `attachMap()`; `clearRoute(status)`; `calculate(points, revision)`; `syncPlan()`; `liveRoute(fix)`; `render()`; `stopWalk()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/modules/202611281800-satnav-gate-walk.js) · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Walk Saved Plan - File: gridatlas/atlas/modules/202611281340-satnav-walk-saved-plan.js (JavaScript, 69 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611281340-satnav-walk-saved-plan.js#L1-L69 - Page: https://code.globalgrid2050.com/explore-code/s/0539.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that restores this version's saved design pins to the same map used for a hand-placed walk. - What it achieves (name): Defines `mount`. It responds to satnav events. - What it does: It draws its content. Defines mount. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Signatures: `mount()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Layers - File: gridatlas/atlas/modules/202611281342-satnav-layers.js (JavaScript, 60 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611281342-satnav-layers.js#L1-L60 - Page: https://code.globalgrid2050.com/explore-code/s/0539.html#f3 - Synopsis: A JavaScript file in the atlas folder of GridAtlas. It is built from the mount step (`mount`) and the reflect step (`reflect`). - What it achieves (comment): The field map covers the ordinary dashboard. It responds to fullscreenchange, webkitfullscreenchange and keydown events. - What it does: It draws its content. Defines mount, reflect. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Signatures: `mount()`; `reflect()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Field Survey - File: gridatlas/atlas/modules/202611281725-satnav-field-survey.js (JavaScript, 171 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611281725-satnav-field-survey.js#L1-L171 - Page: https://code.globalgrid2050.com/explore-code/s/0539.html#f4 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that attaches map (`attachMap`), applies loop (`applyLoop`) and stops recording (`stopRecording`). - What it achieves (comment): It attaches map (`attachMap`), applies loop (`applyLoop`) and stops recording (`stopRecording`). Add a local field survey to the waypoint map's existing pins and GPS watch. It responds to satnav and toggle events. - What it does: It maps its content. Defines 8 functions or classes, including mount, length, draw, scheduleDraw, attachMap. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'field'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: form fields (user input). Out: downloaded file ventus-survey-. - Signatures: `mount()`; `length(metres)`; `draw()`; `scheduleDraw()`; `attachMap()`; `render()`; `applyLoop()`; `stopRecording()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [downloaded file ventus-survey-]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Layout Import - File: gridatlas/atlas/modules/202611281725-satnav-layout-import.js (JavaScript, 167 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611281725-satnav-layout-import.js#L1-L167 - Page: https://code.globalgrid2050.com/explore-code/s/0539.html#f5 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that lists choices (`listChoices`). It draws layout (`drawLayout`) and lists choices (`listChoices`). - What it achieves (comment): Local engineering layouts for the versioned SatNav survey map. It responds to cancel and satnav events. - What it does: It maps its content. Defines mount, drawLayout, listChoices. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: user-supplied file (file picker); form fields (user input). Out: GeoJSON file -layout.geojson. - Signatures: `mount()`; `drawLayout()`; `listChoices()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [user-supplied file (file picker); form fields (user input)]; out [GeoJSON file -layout.geojson]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Gate Walk - File: gridatlas/atlas/modules/202611281800-satnav-gate-walk.js (JavaScript, 287 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611281800-satnav-gate-walk.js#L1-L287 - Page: https://code.globalgrid2050.com/explore-code/s/0540.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that attaches map (`attachMap`), syncs plan (`syncPlan`) and reads inputs for SatNav walk mode. - What it achieves (comment): It attaches map (`attachMap`), syncs plan (`syncPlan`) and stops walk (`stopWalk`). Explicit walking on the existing field map. It responds to resize, fullscreenchange and webkitfullscreenchange events. - What it does: It maps its content. Defines 13 functions or classes, including mount, choose, distance, bearing, clearHeader. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'gate'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: form fields (user input). - Signatures: `mount()`; `choose()`; `distance(m)`; `bearing(n)`; `clearHeader()`; `draw()`; `attachMap()`; `clearRoute(status)`; `calculate(points, revision)`; `syncPlan()`; `liveRoute(fix)`; `render()`; `stopWalk(reason)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Waypoint Map - File: gridatlas/atlas/modules/202611281800-satnav-waypoint-map.js (JavaScript, 478 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611281800-satnav-waypoint-map.js#L1-L478 - Page: https://code.globalgrid2050.com/explore-code/s/0540.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that refreshes guidance (`refreshGuidance`), sets pin (`setPin`) and restores local plan (`restoreLocalPlan`). - What it achieves (comment): It updates text (`updateText`), refreshes guidance (`refreshGuidance`) and sets pin (`setPin`). Based on the immutable PR113 compact map and GPS lifecycle. It responds to visibilitychange, offline and online events. - What it does: It maps its content. Defines 25 functions or classes, including notify, updateText, distanceText, bearingText, collection. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Signatures: `notify(name, detail)`; `updateText(element, value)`; `distanceText(metres)`; `bearingText(degrees)`; `collection(features)`; `refreshGuidance()`; `changePlan()`; `edit(operation)`; `setPin(which, at, fromGps = false)`; `place(at, fromGps = false)`; `restoreLocalPlan()`; `leaveExample()`; `replacePlan(coordinates, {example = false} = {})`; `undo()`; `setFix(next)`; `fieldState(sample)`; `refreshSources()`; `guidanceText()`; `render()`; `arm(which)`; `mapClick(event)`; `selectedIndex()`; `stopTracking(message)`; `centreOnFix()`; `refresh()` (and 1 more) - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Regional Card - File: gridatlas/atlas/modules/202612012117-regional-card.js (JavaScript, 73 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612012117-regional-card.js#L1-L73 - Page: https://code.globalgrid2050.com/explore-code/s/0541.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas covering transformers and substations, and uses data from UK Power Networks open data. - What it achieves (comment): It is built from the visible step (`visible`), the augment popup helper (`augmentPopup`) and the line step (`line`). Interface-owned selected asset card. No menu mutation. - What it does: It draws transformers and substations. Defines 6 functions or classes, including visible, augmentPopup, line, current, add. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers, substations. - Signatures: `visible()`; `augmentPopup()`; `line(label,value)`; `current()`; `add(label,value)`; `attach()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Regional Data - File: gridatlas/atlas/modules/202612012117-regional-data.js (JavaScript, 164 lines) · role storage · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612012117-regional-data.js#L1-L164 - Page: https://code.globalgrid2050.com/explore-code/s/0541.html#f3 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that reads grid UK Power Networks (UKPN) secondary, UKPN transformers and 11kV, using SHA-256 from the data-grid-GB repository. - What it achieves (comment): It registers pinned (`registerPinned`) and is built from the shared database helper (`sharedDatabase`) and the details for helper (`detailsFor`). Native `ukConfig` extension, pinned UKPN transformer archive. Its code works with 11 kV and 400 kV. - What it does: It loads grid UKPN secondary, UKPN transformers and 11kV. Defines 9 functions or classes, including sharedDatabase, registerPinned, detailsFor, scalar, normalize. Side effects: uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 11kV, 400kV. - Inputs & outputs: In: data source: data-grid-gb data; Parquet file grid_ukpn_secondary.parquet; Parquet file ukpn_transformers.parquet; DuckDB queries. Voltage levels named: 400kV, 11kV. - Signatures: `sharedDatabase()`; `registerPinned(database,name)`; `detailsFor(site)`; `scalar(v)`; `normalize(raw)`; `unpack(bytes)`; `extend(options)`; `load()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: data-grid-gb data; Parquet file grid_ukpn_secondary.parquet; Parquet file ukpn_transformers.parquet; DuckDB queries]; out []; crs []; voltages [400kV, 11kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Regional Native - File: gridatlas/atlas/modules/202612012117-regional-native.js (JavaScript, 8607 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612012117-regional-native.js#L1-L8607 - Page: https://code.globalgrid2050.com/explore-code/s/0541.html#f4 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps elizabeth line and london underground, using haversine and SHA-256, and uses data from the ventus-grid-engine, data-federation-map-for-GlobalGrid2050-all-repos and spiders repositories. - What it achieves (comment): It normalizes status (`normalizeStatus`), toggles zone draw mode (`toggleZoneDrawMode`) and opens popup (`openPopup`). ASSEMBLED by `tools/build-cartridge.mjs` from the parts below. Its code works with 400 kV, 100 MVA and 132 kV. It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 239 functions or classes, including deepFreeze, escapeHTML, normalizeStatus, fmt, haversine. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 750kV, 400kV, 275kV, 132kV, 66kV, 33kV. - Inputs & outputs: In: data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; data source: npm data; GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson. Out: downloaded file gridatlas-; downloaded file globalgrid2050-grid-atlas-; interactive map; canvas drawing; SVG drawing. Voltage levels named: 750kV, 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Signatures: `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()`; `_zoneDrawCirclePoints(lon, lat, radiusKm, n)`; `b(i / n)`; `_zoneDrawCalcArea(pts)`; `j(i + 1)`; `_zoneDrawUpdateLayers(dragOnly)`; `_zoneDrawShowPopup()`; `_zoneDrawShowPopupDebounced()`; `_zoneDrawClear()`; `zoneDrawUndo()`; `toggleZoneDrawMode()`; `_zoneDrawNearVertex(px)`; `_zoneDrawEdgeDots(i)`; `_zoneDrawNearEdgeDot(px)`; `_zoneDrawOnClick(e)`; `mpp(km * 2000)`; `_zoneDrawOnMouseDown(e)`; `_zoneDrawOnMouseMove(e)`; `_zoneDrawOnMouseUp()` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; data source: npm data; GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson]; out [downloaded file gridatlas-; downloaded file globalgrid2050-grid-atlas-; interactive map; canvas drawing; SVG drawing]; crs []; voltages [750kV, 400kV, 275kV, 132kV, 66kV, 33kV, 11kV] - Edges: uses 2 estate files (estate-url 2); used by 0; mentioned by 0 ### Secondary Vicinity Engine - File: gridatlas/atlas/modules/202612012118-secondary-vicinity-engine.js (JavaScript, 478 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612012118-secondary-vicinity-engine.js#L1-L478 - Page: https://code.globalgrid2050.com/explore-code/s/0554.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps offtakers filtered, UK datacentre pipeline, conventional power UK and Renewable Energy Planning Database (REPD) master, using SHA-256. - What it achieves (comment): It opens project vicinity (`openProjectVicinity`), opens secondary vicinity (`openSecondaryVicinity`) and updates project swipe (`updateProjectSwipe`). UK-offtakers-overlay. Potential offtakers: sites listed in open registers (National Atmospheric Emissions Inventory (NAEI) 2023 point sources, GPPD) and OpenStreetMap, classified by the OT-filter rules (energy-intensive industry, power stations incl. closed and closing, data centres, large water works, other large users). Its code works with 33 kV, 275 kV and 66 kV. It responds to click, toggle and keydown events. - What it does: It maps offtakers filtered, UK datacentre pipeline, conventional power UK and REPD master. Defines 8 functions or classes, including D, q, openProjectVicinity, openSecondaryVicinity, initProjectSwipe. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 275kV, 66kV, 33kV. README: "Added real rendered UKPN card selection, ranked Grid Engine transfer, poor-fix rejection, exact endpoint and GPS-watch preservation, and secondary Vicinity identity assertions to the existing combined browser gate." - Inputs & outputs: In: GeoJSON file offtakers_filtered_202610292000.geojson; GeoJSON file uk_datacentre_pipeline_202610312133.geojson; GeoJSON file conventional_power_uk_202610292000.geojson; JSON file repd_master.json; Parquet file repd_projects_202611132345.parquet; JSON file repd_v9_manifest_202611132345.json; form fields (user input). Out: interactive map. Voltage levels named: 275kV, 66kV, 33kV. - Signatures: `D(v,q)`; `n(c.k||[])`; `ps(c.P||[])`; `q(s)`; `openProjectVicinity(input)`; `openSecondaryVicinity(input)`; `initProjectSwipe(map,card)`; `b(txt,aria)`; `updateProjectSwipe(card)`; `subs(card.k||[])`; `repd(card.P||[])`; `power(card.cv||[])`; `stepProjectSwipe(map,card,delta)` - VEDIC: OPEN VICINITY (GG2050-VEDIC-000050): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. project_reference, longitude_latitude, name_optional, technology_optional, capacity_MW_optional -> screening_card_opened_boolean - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoJSON file offtakers_filtered_202610292000.geojson; GeoJSON file uk_datacentre_pipeline_202610312133.geojson; GeoJSON file conventional_power_uk_202610292000.geojson; JSON file repd_master.json; Parquet file repd_projects_202611132345.parquet; JSON file repd_v9_manifest_202611132345.json; form fields (user input)]; out [interactive map]; crs []; voltages [275kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Secondary Vicinity Focus - File: gridatlas/atlas/modules/202612012118-secondary-vicinity-focus.js (JavaScript, 173 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612012118-secondary-vicinity-focus.js#L1-L173 - Page: https://code.globalgrid2050.com/explore-code/s/0554.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas covering the Renewable Energy Planning Database (REPD) register and substations. - What it achieves (comment): It is built from the module step (`module`), the map step (`map`) and the fmt step (`fmt`). GridAtlas V9.195 candidate: asset-first VICINITY focus. It responds to click, touchstart and touchend events. - What it does: It draws the REPD register and substations. Defines 10 functions or classes, including module, map, fmt, safely, label. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, substations. - Signatures: `module()`; `map()`; `fmt(n)`; `safely(v)`; `label(p,txt,attr)`; `asset(card)`; `render(card)`; `navigate(card,type,rank)`; `install(card)`; `sync()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### G203 04 SatNav Walk Saved Plan - File: gridatlas/atlas/modules/20261202-g203-04-satnav-walk-saved-plan.js (JavaScript, 253 lines) · role interaction · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/20261202-g203-04-satnav-walk-saved-plan.js#L1-L253 - Page: https://code.globalgrid2050.com/explore-code/s/0555.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that formats distance (`formatDistance`), shows pin (`showPin`), mounts offline plan (`mountOfflinePlan`) and draws SVG graphics. - What it achieves (comment): It formats distance (`formatDistance`) and shows pin (`showPin`). G203-04: immutable successor; original offline-plan helper inlined to pin all executable mount code. It responds to statechange and satnav events. - What it does: It draws its content. Defines 12 functions or classes, including fieldPlan, displayPlan, byId, formatDistance, showPin. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: Out: SVG drawing. - Downstream impact: Used directly by 1 file: SatNav G203 04 Saved Plan Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `fieldPlan(pins, maths)`; `displayPlan()`; `byId(id)`; `formatDistance(m)`; `scaleX(maxX - minX)`; `showPin()`; `offlinePlanDocument(pins, maths)`; `activateWorker(scope)`; `finish()`; `cleanup()`; `mountOfflinePlan({container, getPins, maths})`; `change(action)`; `mount()` - VEDIC: SAVE OFFLINE PLAN (GG2050-VEDIC-000100): SatNav · Location and navigation data. DOM container, selected pins callback, distance and bearing functions, secure browser with service worker and Cache Storage -> Offline plan controls and a locally cached standalone HTML plan after the user presses Save. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [SVG drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 1 ### Secondary Neon Engine - File: gridatlas/atlas/modules/202612020205-secondary-neon-engine.js (JavaScript, 9008 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612020205-secondary-neon-engine.js#L1-L9008 - Page: https://code.globalgrid2050.com/explore-code/s/0555.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps connection points, GB transmission network, price decade rollup and grid substations, using haversine. - What it achieves (comment): It creates compute observer (`createComputeObserver`), describes compute receipt (`describeComputeReceipt`) and builds stats (`buildStats`). Receipt and distance owner: Ventusltd/ventus-grid-engine. Its code works with 400 kV, 132 kV and 33 kV. It responds to click, keydown and touchstart events. - What it does: It maps connection points, GB transmission network, price decade rollup and grid substations. Defines 274 functions or classes, including distanceKm, distanceKm, representativePoint, voltagesKv, destinationPoint. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 750kV, 415kV, 400kV, 275kV, 220kV, 132kV. - Inputs & outputs: In: JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; JSON file price-decade-rollup.json; GeoJSON file grid_substations.geojson; JSON file neso-connection-sites.lean.json; GeoJSON file interconnectors.geojson; browser storage (getItem); DuckDB queries. Out: browser storage (setItem); interactive map. Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 110kV, 66kV. - Signatures: `distanceKm(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `dLon(lon2 - lon1)`; `representativePoint(geometry)`; `voltagesKv(properties)`; `destinationPoint(lon, lat, km, bearingDeg)`; `initialBearingDeg(lon1, lat1, lon2, lat2)`; `dl(lon2 - lon1)`; `copy(value)`; `finite(value)`; `located(point)`; `sameLocation(a, b)`; `sameEntity(a, b)`; `createComputeObserver({ onEvent = () => {}, now = () => Date.now() } = {})`; `publish(attempt, status, extra = {})`; `get(id)`; `request({ entity, location = null, operation = 'nearest-grid', dataset = null })`; `unsupported(id, reason)`; `run(id, compute)`; `snapshot(id = latest)`; `assess(id, expected)`; `describeComputeReceipt(receipt)`; `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `classOf(kv)`; `scope(origin, substations, options)` (and 15 more) - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - VEDIC: VOLTAGE (GG2050-VEDIC-000003): GridAtlas / Geodesy · Computer science / Data normalisation. voltage_properties -> kilovolt_list - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; JSON file price-decade-rollup.json; GeoJSON file grid_substations.geojson; JSON file neso-connection-sites.lean.json; GeoJSON file interconnectors.geojson; browser storage (getItem); DuckDB queries]; out [browser storage (setItem); interactive map]; crs [WGS84 / EPSG:4326]; voltages [750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 110kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Unified SatNav Dock - File: gridatlas/atlas/modules/202612020205-unified-satnav-dock.js (JavaScript, 696 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612020205-unified-satnav-dock.js#L1-L696 - Page: https://code.globalgrid2050.com/explore-code/s/0568.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps substations and 11kV. It sets panel open (`setPanelOpen`), updates text (`updateText`) and refreshes guidance (`refreshGuidance`). - What it achieves (comment): Derived from the immutable 2 km convergence cartridge; native shell geometry stays owned by GridAtlas. Its code works with 11 kV and 33 kV. It responds to click, visibilitychange and offline events. - What it does: It maps substations and 11kV. Defines 37 functions or classes, including setPanelOpen, notify, updateText, distanceText, bearingText. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: substations, 11kV, 33kV. - Inputs & outputs: Voltage levels named: 33kV, 11kV. - Signatures: `setPanelOpen(open)`; `notify(name, detail)`; `updateText(element, value)`; `distanceText(metres)`; `bearingText(degrees)`; `collection(features)`; `pauseFollow()`; `refreshGuidance()`; `changePlan()`; `edit(operation)`; `setPin(which, at, fromGps = false)`; `place(at, fromGps = false)`; `restoreLocalPlan()`; `leaveExample()`; `replacePlan(coordinates, {example = false} = {})`; `undo()`; `setFix(next)`; `fieldState(sample)`; `refreshSources()`; `guidanceText()`; `nativeLayer(id)`; `syncInfrastructureControls()`; `render()`; `arm(which)`; `mapClick(event)` (and 14 more) - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV, 11kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Orient14 Start Walk - File: gridatlas/atlas/modules/202612030153-orient14-start-walk.js (JavaScript, 299 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612030153-orient14-start-walk.js#L1-L299 - Page: https://code.globalgrid2050.com/explore-code/s/0569.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that attaches map (`attachMap`), syncs plan (`syncPlan`) and reads inputs for SatNav walk mode and SatNav route objective. - What it achieves (comment): It attaches map (`attachMap`), syncs plan (`syncPlan`) and stops walk (`stopWalk`). Location and camera remain owned by the waypoint cartridge. It responds to resize, fullscreenchange and webkitfullscreenchange events. - What it does: It maps its content. Defines 14 functions or classes, including mount, unsupported, choose, distance, bearing. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'walk'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: form fields (user input). - Downstream impact: Used directly by 1 file: 14 Integration Test (neural-link-between-agents). - Signatures: `mount()`; `unsupported()`; `choose()`; `distance(m)`; `bearing(n)`; `clearHeader()`; `draw()`; `attachMap()`; `clearRoute(status)`; `calculate(points, revision)`; `syncPlan()`; `liveRoute(fix)`; `render()`; `stopWalk(reason)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Orient16 Start Walk - File: gridatlas/atlas/modules/202612031130-orient16-start-walk.js (JavaScript, 315 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612031130-orient16-start-walk.js#L1-L315 - Page: https://code.globalgrid2050.com/explore-code/s/0570.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that resets recovery (`resetRecovery`), attaches map (`attachMap`), syncs plan (`syncPlan`) and reads inputs for SatNav walk mode and SatNav route objective. - What it achieves (comment): It resets recovery (`resetRecovery`), attaches map (`attachMap`) and syncs plan (`syncPlan`). Location and camera remain owned by the waypoint cartridge. It responds to resize, fullscreenchange and webkitfullscreenchange events. - What it does: It maps its content. Defines 16 functions or classes, including mount, unsupported, choose, resetRecovery, manualRecovery. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'walk'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: form fields (user input). - Signatures: `mount()`; `unsupported()`; `choose()`; `resetRecovery()`; `manualRecovery(sample)`; `distance(m)`; `bearing(n)`; `clearHeader()`; `draw()`; `attachMap()`; `clearRoute(status)`; `calculate(points, revision)`; `syncPlan()`; `liveRoute(fix)`; `render()`; `stopWalk(reason)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/modules/202612031235-orient16-recovery-walk.js) · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Orient16 Recovery Walk - File: gridatlas/atlas/modules/202612031235-orient16-recovery-walk.js (JavaScript, 317 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612031235-orient16-recovery-walk.js#L1-L317 - Page: https://code.globalgrid2050.com/explore-code/s/0570.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that attaches map (`attachMap`), syncs plan (`syncPlan`) and reads inputs for SatNav walk mode and SatNav route objective. - What it achieves (comment): It resets recovery (`resetRecovery`), attaches map (`attachMap`) and syncs plan (`syncPlan`). Location and camera remain owned by the waypoint cartridge. It responds to resize, fullscreenchange and webkitfullscreenchange events. - What it does: It maps its content. Defines 16 functions or classes, including mount, unsupported, choose, resetRecovery, manualRecovery. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'walk'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: form fields (user input). - Signatures: `mount()`; `unsupported()`; `choose()`; `resetRecovery()`; `manualRecovery(sample)`; `distance(m)`; `bearing(n)`; `clearHeader()`; `draw()`; `attachMap()`; `clearRoute(status)`; `calculate(points, revision)`; `syncPlan()`; `liveRoute(fix)`; `render()`; `stopWalk(reason)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Orient17 Regional Walk - File: gridatlas/atlas/modules/202612031704-orient17-regional-walk.js (JavaScript, 348 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612031704-orient17-regional-walk.js#L1-L348 - Page: https://code.globalgrid2050.com/explore-code/s/0571.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that resets recovery (`resetRecovery`), attaches map (`attachMap`), syncs plan (`syncPlan`) and reads inputs for SatNav walk mode and SatNav route objective. - What it achieves (comment): It resets recovery (`resetRecovery`), attaches map (`attachMap`) and syncs plan (`syncPlan`). Location and camera remain owned by the waypoint cartridge. It responds to resize, fullscreenchange and webkitfullscreenchange events. - What it does: It maps its content. Defines 19 functions or classes, including mount, routed, unsupported, choose, resetRecovery. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'walk'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: form fields (user input). - Signatures: `mount()`; `routed()`; `unsupported()`; `choose()`; `resetRecovery()`; `manualRecovery(sample)`; `distance(m)`; `bearing(n)`; `clearHeader()`; `draw()`; `attachMap()`; `clearRoute(status)`; `calculate(points, revision)`; `syncPlan()`; `liveRoute(fix)`; `renderRegional(sample)`; `show(snapshot)`; `render()`; `stopWalk(reason)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/modules/202612040110-orient17b-walk.js) · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Orient17a Camera - File: gridatlas/atlas/modules/202612040055-orient17a-camera.js (JavaScript, 731 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612040055-orient17a-camera.js#L1-L731 - Page: https://code.globalgrid2050.com/explore-code/s/0571.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps substations and 11kV. It sets panel open (`setPanelOpen`), updates text (`updateText`) and refreshes guidance (`refreshGuidance`). - What it achieves (comment): Unified GridAtlas/SatNav candidate. Derived from the immutable 2 km convergence cartridge; native shell geometry stays owned by GridAtlas. Its code works with 11 kV and 33 kV. It responds to click, visibilitychange and offline events. - What it does: It maps substations and 11kV. Defines 40 functions or classes, including setPanelOpen, notify, updateText, distanceText, bearingText. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, 11kV, 33kV. - Inputs & outputs: Voltage levels named: 33kV, 11kV. - Signatures: `setPanelOpen(open)`; `notify(name, detail)`; `updateText(element, value)`; `distanceText(metres)`; `bearingText(degrees)`; `collection(features)`; `cameraTarget(map,fix,streetZoom)`; `shouldAcceptCameraFix(fix,quality,requestedAt,hidden)`; `pauseFollow()`; `pauseGesture(event)`; `refreshGuidance()`; `changePlan()`; `edit(operation)`; `setPin(which, at, fromGps = false)`; `place(at, fromGps = false)`; `restoreLocalPlan()`; `leaveExample()`; `replacePlan(coordinates, {example = false} = {})`; `undo()`; `setFix(next)`; `fieldState(sample)`; `refreshSources()`; `guidanceText()`; `nativeLayer(id)`; `syncInfrastructureControls()` (and 15 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/modules/g203-03-gps-camera-candidate.js) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV, 11kV] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Orient17a Walk - File: gridatlas/atlas/modules/202612040055-orient17a-walk.js (JavaScript, 352 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612040055-orient17a-walk.js#L1-L352 - Page: https://code.globalgrid2050.com/explore-code/s/0573.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that resets recovery (`resetRecovery`), attaches map (`attachMap`), syncs plan (`syncPlan`) and reads inputs for SatNav walk mode and SatNav route objective. - What it achieves (comment): It resets recovery (`resetRecovery`), attaches map (`attachMap`) and syncs plan (`syncPlan`). Location and camera remain owned by the waypoint cartridge. It responds to resize, fullscreenchange and webkitfullscreenchange events. - What it does: It maps its content. Defines 19 functions or classes, including mount, routed, unsupported, choose, resetRecovery. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'walk'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: form fields (user input). - Signatures: `mount()`; `routed()`; `unsupported()`; `choose()`; `resetRecovery()`; `manualRecovery(sample)`; `distance(m)`; `bearing(n)`; `clearHeader()`; `draw()`; `attachMap()`; `clearRoute(status)`; `calculate(points, revision)`; `syncPlan()`; `liveRoute(fix)`; `renderRegional(sample)`; `show(snapshot)`; `render()`; `stopWalk(reason)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/modules/202612040110-orient17b-walk.js) · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Orient17b Walk - File: gridatlas/atlas/modules/202612040110-orient17b-walk.js (JavaScript, 354 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612040110-orient17b-walk.js#L1-L354 - Page: https://code.globalgrid2050.com/explore-code/s/0574.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that resets recovery (`resetRecovery`), attaches map (`attachMap`), syncs plan (`syncPlan`) and reads inputs for SatNav walk mode and SatNav route objective. - What it achieves (comment): It resets recovery (`resetRecovery`), attaches map (`attachMap`) and syncs plan (`syncPlan`). Location and camera remain owned by the waypoint cartridge. It responds to resize, fullscreenchange and webkitfullscreenchange events. - What it does: It maps its content. Defines 19 functions or classes, including mount, routed, unsupported, choose, resetRecovery. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'walk'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: form fields (user input). - Signatures: `mount()`; `routed()`; `unsupported()`; `choose()`; `resetRecovery()`; `manualRecovery(sample)`; `distance(m)`; `bearing(n)`; `clearHeader()`; `draw()`; `attachMap()`; `clearRoute(status)`; `calculate(points, revision)`; `syncPlan()`; `liveRoute(fix)`; `renderRegional(sample)`; `label(mode.value==='walking'?'Walking · mapped distance':objective.value==='fastest'?'Driving · estimated time':'Driving · ...)`; `show(snapshot)`; `render()`; `stopWalk(reason)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Orient17a Compass - File: gridatlas/atlas/modules/202612040126-orient17a-compass.js (JavaScript, 86 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612040126-orient17a-compass.js#L1-L86 - Page: https://code.globalgrid2050.com/explore-code/s/0574.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that resets heading (`resetHeading`) and draws SVG graphics. - What it achieves (comment): It resets heading (`resetHeading`) and is built from the mount step (`mount`) and the screen angle helper (`screenAngle`). ORIENT-17A: compact view of the existing survey GPS and manual controller. It responds to deviceorientation, deviceorientationabsolute and change events. - What it does: It draws its content. Defines 7 functions or classes, including mount, resetHeading, screenAngle, attach, render. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'compass'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: Out: SVG drawing. - Signatures: `mount()`; `resetHeading()`; `screenAngle()`; `attach()`; `render()`; `invalidate()`; `stop(status='stopped')` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [SVG drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### G203 03 Gps Camera Candidate - File: gridatlas/atlas/modules/g203-03-gps-camera-candidate.js (JavaScript, 735 lines) · role geodesy · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/g203-03-gps-camera-candidate.js#L1-L735 - Page: https://code.globalgrid2050.com/explore-code/s/0575.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps substations and 11kV. It sets panel open (`setPanelOpen`), updates text (`updateText`) and refreshes guidance (`refreshGuidance`). - What it achieves (comment): Unified GridAtlas/SatNav candidate. Derived from the immutable 2 km convergence cartridge; native shell geometry stays owned by GridAtlas. Its code works with 11 kV and 33 kV. It responds to click, visibilitychange and offline events. - What it does: It maps substations and 11kV. Defines 40 functions or classes, including setPanelOpen, notify, updateText, distanceText, bearingText. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'gps'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: substations, 11kV, 33kV. - Inputs & outputs: Voltage levels named: 33kV, 11kV. - Downstream impact: Used directly by 1 file: G203 03 Gps Camera Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `setPanelOpen(open)`; `notify(name, detail)`; `updateText(element, value)`; `distanceText(metres)`; `bearingText(degrees)`; `collection(features)`; `cameraTarget(map,fix,streetZoom)`; `shouldAcceptCameraFix(fix,quality,requestedAt,hidden)`; `pauseFollow()`; `pauseGesture(event)`; `refreshGuidance()`; `changePlan()`; `edit(operation)`; `setPin(which, at, fromGps = false)`; `place(at, fromGps = false)`; `restoreLocalPlan()`; `leaveExample()`; `replacePlan(coordinates, {example = false} = {})`; `undo()`; `setFix(next)`; `fieldState(sample)`; `refreshSources()`; `guidanceText()`; `nativeLayer(id)`; `syncInfrastructureControls()` (and 15 more) - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV, 11kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### G203 Compact Dock - File: gridatlas/atlas/modules/g203-compact-dock.js (JavaScript, 46 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/g203-compact-dock.js#L1-L46 - Page: https://code.globalgrid2050.com/explore-code/s/0576.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas. It is built from the mount step (`mount`) and the ready step (`ready`). - What it achieves (comment): G203-01: one native layout owner; original controls and listeners retained. It responds to satnav, pageshow and pagehide events. - What it does: It draws its content. Defines mount, ready. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `mount()`; `ready()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### G203 Regional Data Viewport - File: gridatlas/atlas/modules/g203-regional-data-viewport.js (JavaScript, 219 lines) · role storage · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/g203-regional-data-viewport.js#L1-L219 - Page: https://code.globalgrid2050.com/explore-code/s/0576.html#f3 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that reads grid UK Power Networks (UKPN) secondary, UKPN transformers and 11kV, using SHA-256 from the data-grid-GB repository. - What it achieves (comment): It registers pinned (`registerPinned`) and is built from the shared database helper (`sharedDatabase`) and the details for helper (`detailsFor`). Native `ukConfig` extension, pinned UKPN transformer archive. Its code works with 11 kV and 400 kV. It reads `grid_ukpn_secondary.parquet`. - What it does: It loads grid UKPN secondary, UKPN transformers and 11kV. Defines 14 functions or classes, including sharedDatabase, registerPinned, detailsFor, scalar, normalize. Side effects: uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 11kV, 400kV. - Inputs & outputs: In: data source: data-grid-gb data; Parquet file grid_ukpn_secondary.parquet; Parquet file ukpn_transformers.parquet; DuckDB queries. Voltage levels named: 400kV, 11kV. - Signatures: `sharedDatabase()`; `registerPinned(database,name)`; `detailsFor(site)`; `scalar(v)`; `normalize(raw)`; `unpack(bytes)`; `extend(options)`; `load()`; `viewportBounds(west,south,east,north,padding=0.15)`; `latitudePad(north-south)`; `outward(a,z)`; `viewportSQL(west,south,east,north,padding=0.15)`; `includesPoint(b,lon,lat)`; `viewportFeatures(west,south,east,north)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: data-grid-gb data; Parquet file grid_ukpn_secondary.parquet; Parquet file ukpn_transformers.parquet; DuckDB queries]; out []; crs []; voltages [400kV, 11kV] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### G203 Regional Native Viewport - File: gridatlas/atlas/modules/g203-regional-native-viewport.js (JavaScript, 8664 lines) · role geodesy · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/g203-regional-native-viewport.js#L1-L8664 - Page: https://code.globalgrid2050.com/explore-code/s/0576.html#f4 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps elizabeth line and london underground, using haversine, and uses data from the ventus-grid-engine, data-federation-map-for-GlobalGrid2050-all-repos and spiders repositories. - What it achieves (comment): It normalizes status (`normalizeStatus`), toggles zone draw mode (`toggleZoneDrawMode`) and opens popup (`openPopup`). ASSEMBLED by `tools/build-cartridge.mjs` from the parts below. Its code works with 400 kV, 100 MVA and 132 kV. It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 241 functions or classes, including deepFreeze, escapeHTML, normalizeStatus, fmt, haversine. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 750kV, 400kV, 275kV, 132kV, 66kV, 33kV. - Inputs & outputs: In: data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; data source: npm data; GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson. Out: downloaded file gridatlas-; downloaded file globalgrid2050-grid-atlas-; interactive map; canvas drawing; SVG drawing. Voltage levels named: 750kV, 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Downstream impact: Used directly by 1 file: G203 Swarm 06 Viewport Lifecycle Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()`; `_zoneDrawCirclePoints(lon, lat, radiusKm, n)`; `b(i / n)`; `_zoneDrawCalcArea(pts)`; `j(i + 1)`; `_zoneDrawUpdateLayers(dragOnly)`; `_zoneDrawShowPopup()`; `_zoneDrawShowPopupDebounced()`; `_zoneDrawClear()`; `zoneDrawUndo()`; `toggleZoneDrawMode()`; `_zoneDrawNearVertex(px)`; `_zoneDrawEdgeDots(i)`; `_zoneDrawNearEdgeDot(px)`; `_zoneDrawOnClick(e)`; `mpp(km * 2000)`; `_zoneDrawOnMouseDown(e)`; `_zoneDrawOnMouseMove(e)`; `_zoneDrawOnMouseUp()` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; data source: npm data; GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson]; out [downloaded file gridatlas-; downloaded file globalgrid2050-grid-atlas-; interactive map; canvas drawing; SVG drawing]; crs []; voltages [750kV, 400kV, 275kV, 132kV, 66kV, 33kV, 11kV] - Edges: uses 2 estate files (estate-url 2); used by 1; mentioned by 0 ### G203 Vicinity Controls Rescue - File: gridatlas/atlas/modules/g203-vicinity-controls-rescue.js (JavaScript, 132 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/g203-vicinity-controls-rescue.js#L1-L132 - Page: https://code.globalgrid2050.com/explore-code/s/0588.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that works with float layers (`floatLayers`) and full mode (`fullMode`) (units: MW). - What it achieves (comment): It is built from the answered step (`answered`), the float layers helper (`floatLayers`) and the wake step (`wake`). The V9.194 launcher put this button INSIDE the map-controls stacking context. It responds to visibilitychange, pagehide and click events. - What it does: Defines 8 functions or classes, including answered, floatLayers, wake, fallback, tick. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `tech(q.get('technology')||'')`; `answered()`; `floatLayers()`; `wake()`; `fallback()`; `tick()`; `later()`; `fullMode()`; `reflect()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### G204 Compact Dock - File: gridatlas/atlas/modules/g204-compact-dock.js (JavaScript, 50 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/g204-compact-dock.js#L1-L50 - Page: https://code.globalgrid2050.com/explore-code/s/0589.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas. It is built from the mount step (`mount`) and the ready step (`ready`). - What it achieves (comment): G203-01: one native layout owner; original controls and listeners retained. It responds to satnav, pageshow and pagehide events. - What it does: It draws its content. Defines mount, ready. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Signatures: `mount()`; `ready()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/modules/g203-compact-dock.js) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### G204 Gps Camera - File: gridatlas/atlas/modules/g204-gps-camera.js (JavaScript, 731 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/g204-gps-camera.js#L1-L731 - Page: https://code.globalgrid2050.com/explore-code/s/0589.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps substations and 11kV. It sets panel open (`setPanelOpen`), updates text (`updateText`) and refreshes guidance (`refreshGuidance`). - What it achieves (comment): Unified GridAtlas/SatNav candidate. Derived from the immutable 2 km convergence cartridge; native shell geometry stays owned by GridAtlas. Its code works with 11 kV and 33 kV. It responds to click, visibilitychange and offline events. - What it does: It maps substations and 11kV. Defines 40 functions or classes, including setPanelOpen, notify, updateText, distanceText, bearingText. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'gps'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: substations, 11kV, 33kV. - Inputs & outputs: Voltage levels named: 33kV, 11kV. - Signatures: `setPanelOpen(open)`; `notify(name, detail)`; `updateText(element, value)`; `distanceText(metres)`; `bearingText(degrees)`; `collection(features)`; `cameraTarget(map,fix,streetZoom)`; `shouldAcceptCameraFix(fix,quality,requestedAt,hidden)`; `pauseFollow()`; `pauseGesture(event)`; `refreshGuidance()`; `changePlan()`; `edit(operation)`; `setPin(which, at, fromGps = false)`; `place(at, fromGps = false)`; `restoreLocalPlan()`; `leaveExample()`; `replacePlan(coordinates, {example = false} = {})`; `undo()`; `setFix(next)`; `fieldState(sample)`; `refreshSources()`; `guidanceText()`; `nativeLayer(id)`; `syncInfrastructureControls()` (and 15 more) - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/modules/g203-03-gps-camera-candidate.js) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV, 11kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### G204 Start Walk - File: gridatlas/atlas/modules/g204-start-walk.js (JavaScript, 287 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/g204-start-walk.js#L1-L287 - Page: https://code.globalgrid2050.com/explore-code/s/0590.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that attaches map (`attachMap`), syncs plan (`syncPlan`) and reads inputs for SatNav walk mode. - What it achieves (comment): It attaches map (`attachMap`), syncs plan (`syncPlan`) and stops walk (`stopWalk`). Explicit walking on the existing field map. It responds to resize, fullscreenchange and webkitfullscreenchange events. - What it does: It maps its content. Defines 13 functions or classes, including mount, choose, distance, bearing, clearHeader. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'walk'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: form fields (user input). - Signatures: `mount()`; `choose()`; `distance(m)`; `bearing(n)`; `clearHeader()`; `draw()`; `attachMap()`; `clearRoute(status)`; `calculate(points, revision)`; `syncPlan()`; `liveRoute(fix)`; `render()`; `stopWalk(reason)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/modules/202611281800-satnav-gate-walk.js) · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Convergence 2km Gate Walk - File: gridatlas/atlas/modules/satnav-convergence-2km-gate-walk.js (JavaScript, 288 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/satnav-convergence-2km-gate-walk.js#L1-L288 - Page: https://code.globalgrid2050.com/explore-code/s/0590.html#f3 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that attaches map (`attachMap`), syncs plan (`syncPlan`) and reads inputs for SatNav walk mode. - What it achieves (comment): It attaches map (`attachMap`), syncs plan (`syncPlan`) and stops walk (`stopWalk`). Explicit walking on the existing field map. It responds to resize, fullscreenchange and webkitfullscreenchange events. - What it does: It maps its content. Defines 13 functions or classes, including mount, choose, distance, bearing, clearHeader. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'gate'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: form fields (user input). - Signatures: `mount()`; `choose()`; `distance(m)`; `bearing(n)`; `clearHeader()`; `draw()`; `attachMap()`; `clearRoute(status)`; `calculate(points, revision)`; `syncPlan()`; `liveRoute(fix)`; `render()`; `stopWalk(reason)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/modules/202611281800-satnav-gate-walk.js) · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Convergence 2km Waypoint Map - File: gridatlas/atlas/modules/satnav-convergence-2km-waypoint-map.js (JavaScript, 605 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/satnav-convergence-2km-waypoint-map.js#L1-L605 - Page: https://code.globalgrid2050.com/explore-code/s/0591.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps substations and 11kV. It updates text (`updateText`), refreshes guidance (`refreshGuidance`) and sets pin (`setPin`). - What it achieves (comment): Based on the immutable PR113 compact map and GPS lifecycle. Its code works with 11 kV and 33 kV. It responds to visibilitychange, offline and online events. - What it does: It maps substations and 11kV. Defines 33 functions or classes, including notify, updateText, distanceText, bearingText, collection. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: substations, 11kV, 33kV. - Inputs & outputs: Voltage levels named: 33kV, 11kV. - Signatures: `notify(name, detail)`; `updateText(element, value)`; `distanceText(metres)`; `bearingText(degrees)`; `collection(features)`; `refreshGuidance()`; `changePlan()`; `edit(operation)`; `setPin(which, at, fromGps = false)`; `place(at, fromGps = false)`; `restoreLocalPlan()`; `leaveExample()`; `replacePlan(coordinates, {example = false} = {})`; `undo()`; `setFix(next)`; `fieldState(sample)`; `refreshSources()`; `guidanceText()`; `nativeLayer(id)`; `syncInfrastructureControls()`; `render()`; `arm(which)`; `mapClick(event)`; `selectedIndex()`; `stopTracking(message)` (and 9 more) - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV, 11kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Unified Waypoint Map Agent1 - File: gridatlas/atlas/modules/satnav-unified-waypoint-map-agent1.js (JavaScript, 669 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/satnav-unified-waypoint-map-agent1.js#L1-L669 - Page: https://code.globalgrid2050.com/explore-code/s/0592.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps substations and 11kV. It sets panel open (`setPanelOpen`), updates text (`updateText`) and refreshes guidance (`refreshGuidance`). - What it achieves (comment): Derived from the immutable 2 km convergence cartridge; native shell geometry stays owned by GridAtlas. Its code works with 11 kV and 33 kV. It responds to click, visibilitychange and offline events. - What it does: It maps substations and 11kV. Defines 35 functions or classes, including setPanelOpen, notify, updateText, distanceText, bearingText. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: substations, 11kV, 33kV. - Inputs & outputs: Voltage levels named: 33kV, 11kV. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `setPanelOpen(open)`; `notify(name, detail)`; `updateText(element, value)`; `distanceText(metres)`; `bearingText(degrees)`; `collection(features)`; `pauseFollow()`; `refreshGuidance()`; `changePlan()`; `edit(operation)`; `setPin(which, at, fromGps = false)`; `place(at, fromGps = false)`; `restoreLocalPlan()`; `leaveExample()`; `replacePlan(coordinates, {example = false} = {})`; `undo()`; `setFix(next)`; `fieldState(sample)`; `refreshSources()`; `guidanceText()`; `nativeLayer(id)`; `syncInfrastructureControls()`; `render()`; `arm(which)`; `mapClick(event)` (and 12 more) - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV, 11kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Unified Destination Contract - File: gridatlas/atlas/modules/unified-destination-contract.mjs (JavaScript, 76 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/unified-destination-contract.mjs#L1-L76 - Page: https://code.globalgrid2050.com/explore-code/s/0593.html#f1 - Synopsis: A JavaScript module in the atlas folder of GridAtlas that creates destination gate (`createDestinationGate`) and validates destination leg (`validateDestinationLeg`). It creates destination gate (`createDestinationGate`) and validates destination leg (`validateDestinationLeg`). - What it achieves (comment): GridAtlas V9.201 — synchronous search ownership; no DOM, GPS or network side effects. - What it does: It calculates its inputs. Defines 8 functions or classes, including createDestinationGate, invalidate, onInput, beginRequest, publish. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Unified Destination Contract Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export createDestinationGate()`; `export validDestinationCoordinate(at)`; `export validateDestinationLeg(previous, destination, distanceKm)`; `invalidate()`; `onInput(query)`; `beginRequest(ticket)`; `publish(ticket, results)`; `transfer(handle, commit)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 1 ### Unified Destination Unlimited - File: gridatlas/atlas/modules/unified-destination-unlimited.mjs (JavaScript, 76 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/unified-destination-unlimited.mjs#L1-L76 - Page: https://code.globalgrid2050.com/explore-code/s/0593.html#f2 - Synopsis: A JavaScript module in the atlas folder of GridAtlas that creates destination gate (`createDestinationGate`) and validates destination leg (`validateDestinationLeg`). It creates destination gate (`createDestinationGate`) and validates destination leg (`validateDestinationLeg`). - What it achieves (comment): GridAtlas V9.201 — synchronous search ownership; no DOM, GPS or network side effects. - What it does: It calculates its inputs. Defines 8 functions or classes, including createDestinationGate, invalidate, onInput, beginRequest, publish. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Distance Dock Proof (gridatlas). - Signatures: `export createDestinationGate()`; `export validDestinationCoordinate(at)`; `export validateDestinationLeg(previous, destination, distanceKm)`; `invalidate()`; `onInput(query)`; `beginRequest(ticket)`; `publish(ticket, results)`; `transfer(handle, commit)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/modules/unified-destination-contract.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Unified Layer Catalogue - File: gridatlas/atlas/modules/unified-layer-catalogue.mjs (JavaScript, 91 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/unified-layer-catalogue.mjs#L1-L91 - Page: https://code.globalgrid2050.com/explore-code/s/0593.html#f3 - Synopsis: A JavaScript module in the atlas folder of GridAtlas that works with canonical voltage (`canonicalVoltage`) (units: kV). It normalizes layer text (`normalizeLayerText`) and creates layer catalogue (`createLayerCatalogue`). - What it achieves (comment): Metadata only: no DOM, network or map ownership. - What it does: It calculates its inputs. Defines 7 functions or classes, including canonicalVoltage, normalizeLayerText, createLayerCatalogue, cmp, register. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 3 files: Unified Layer Search UI (gridatlas); Unified Catalogue Independent Test (gridatlas); Unified Layer Catalogue Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export normalizeLayerText(value)`; `export createLayerCatalogue(initial = [])`; `canonicalVoltage(quantity, unit)`; `cmp(a,b)`; `register(entries)`; `remove(id)`; `search(query = '', {page=1,pageSize=100,selectedOnly=false,selectedIds=new Set()} = {})`; `skip(page-1)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Unified Layer Search UI - File: gridatlas/atlas/modules/unified-layer-search-ui.mjs (JavaScript, 105 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/unified-layer-search-ui.mjs#L1-L105 - Page: https://code.globalgrid2050.com/explore-code/s/0593.html#f4 - Synopsis: A JavaScript module in the atlas folder of GridAtlas that resets page (`resetPage`). - What it achieves (comment): It resets page (`resetPage`) and is built from the tidy step (`tidy`) and the install unified layer search helper (`installUnifiedLayerSearch`). G201-06: additive search projection over the existing native Grid menu. It responds to click, input and change events. - What it does: It draws its content. Defines 10 functions or classes, including tidy, installUnifiedLayerSearch, inventory, make, button. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Signatures: `export installUnifiedLayerSearch(doc = document)`; `tidy(text)`; `inventory()`; `make(tag,text)`; `button(text)`; `clearProjection()`; `render()`; `resetPage()`; `refresh()`; `onNativeChange()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Unified Native Gazetteer - File: gridatlas/atlas/modules/unified-native-gazetteer.js (JavaScript, 973 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/unified-native-gazetteer.js#L1-L973 - Page: https://code.globalgrid2050.com/explore-code/s/0593.html#f5 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps Renewable Energy Planning Database (REPD) projects and offshore coordinates, using SHA-256, and uses data from postcodes.io and OpenStreetMap Nominatim. - What it achieves (comment): It marks deep link cancelled (`markDeepLinkCancelled`), normalises compact (`normaliseCompact`) and parses groups (`parseGroups`). V9.201 candidate derivative; original native gazetteer remains byte-identical. It responds to gridatlas, click and input events. - What it does: It maps REPD projects, offshore coordinates, postcodes and the REPD register. Defines 44 functions or classes, including invalidateSearch, invariant, arrivalCoordinator, markDeepLinkCancelled, invalidatePendingDeepLink. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: postcodes, the REPD register. - Inputs & outputs: In: data source: postcodes.io; data source: OpenStreetMap Nominatim; Parquet file repd_projects_202611132345.parquet; JSON file repd_v9_manifest_202611132345.json; JSON file offshore-coordinates.json; DuckDB queries. Out: interactive map. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `invalidateSearch()`; `invariant(condition, message)`; `arrivalCoordinator()`; `markDeepLinkCancelled(reason, epoch = null)`; `invalidatePendingDeepLink(reason)`; `escapeHtml(value)`; `sqlString(value)`; `normaliseCompact(value)`; `parseGroups(query)`; `sha256Hex(bytes)`; `verifyManifest()`; `sharedDuckDBRuntime(moduleUrl)`; `runtime()`; `resetOfficialRuntime()`; `installMapCapture()`; `construct(target, args, newTarget)`; `buildWhere(query)`; `buildScore(query)`; `rowObject(row)`; `queryOfficialRepd(query, serial = null, stillOwned = null)`; `hasSafeMapPoint(result)`; `loadDerivedCoordinates()`; `derivedCoordinateFor(repdRef)`; `setDeepLink(result)`; `selectResult(result, options = {})` (and 15 more) - VEDIC: QUERY (GG2050-VEDIC-000046): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_predicate - VEDIC: SCORE (GG2050-VEDIC-000047): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_sort_expression - VEDIC: UK GEOCODE (GG2050-VEDIC-000048): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> uk_location_candidates - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: postcodes.io; data source: OpenStreetMap Nominatim; Parquet file repd_projects_202611132345.parquet; JSON file repd_v9_manifest_202611132345.json; JSON file offshore-coordinates.json; DuckDB queries]; out [interactive map]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Ventus Corev8engine Layer Availability - File: gridatlas/atlas/parts/202609040212-ventus-corev8engine-layer-availability.js (JavaScript, 1541 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/parts/202609040212-ventus-corev8engine-layer-availability.js#L1-L1541 - Page: https://code.globalgrid2050.com/explore-code/s/0595.html#f1 - Synopsis: A JavaScript file in the parts folder of GridAtlas that maps elizabeth line, london underground, UK metros trams and HS2, using haversine. - What it achieves (code): It normalizes status (`normalizeStatus`), toggles zone draw mode (`toggleZoneDrawMode`) and opens popup (`openPopup`). Its `snapLines` function gives line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged from line features and substation point features (VEDIC: snap line ends to substations). It reads `/uk_renewables_pipeline/v9/data/v9.1/build_manifest.json`. It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 64 functions or classes, including deepFreeze, escapeHTML, normalizeStatus, fmt, haversine. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; JSON file build_manifest.json; GeoJSON file grid_400kv.geojson; form fields (user input). Out: interactive map. - Signatures: `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()`; `_zoneDrawCirclePoints(lon, lat, radiusKm, n)`; `b(i / n)`; `_zoneDrawCalcArea(pts)`; `j(i + 1)`; `_zoneDrawUpdateLayers(dragOnly)`; `_zoneDrawShowPopup()`; `_zoneDrawShowPopupDebounced()`; `_zoneDrawClear()`; `zoneDrawUndo()`; `toggleZoneDrawMode()`; `_zoneDrawNearVertex(px)`; `_zoneDrawNearEdgeDot(px)`; `_zoneDrawOnClick(e)`; `mpp(km * 2000)`; `_zoneDrawOnMouseDown(e)`; `_zoneDrawOnMouseMove(e)`; `_zoneDrawOnMouseUp()`; `openPopup(lngLat, html, maxWidth)` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/parts/202609040229-ventus-corev8engine-exact-repd-delegation.js) · essay_status: readme_derived - data_contracts: in [GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; JSON file build_manifest.json; GeoJSON file grid_400kv.geojson; form fields (user input)]; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Ventus Corev8engine Exact Renewable Energy Planning Database (REPD) Delegation - File: gridatlas/atlas/parts/202609040229-ventus-corev8engine-exact-repd-delegation.js (JavaScript, 1497 lines) · role geodesy · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/parts/202609040229-ventus-corev8engine-exact-repd-delegation.js#L1-L1497 - Page: https://code.globalgrid2050.com/explore-code/s/0597.html#f2 - Synopsis: A JavaScript file in the parts folder of GridAtlas that maps elizabeth line, london underground, UK metros trams and HS2, using haversine. - What it achieves (code): It normalizes status (`normalizeStatus`), toggles zone draw mode (`toggleZoneDrawMode`) and opens popup (`openPopup`). Its `snapLines` function gives line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged from line features and substation point features (VEDIC: snap line ends to substations). It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 64 functions or classes, including deepFreeze, escapeHTML, normalizeStatus, fmt, haversine. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; GeoJSON file grid_400kv.geojson; form fields (user input). Out: interactive map. - Downstream impact: Used directly by 2 files: Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Ventus Grid Engine — Genome Page (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/). Reached from 1 other entry point, including Genome Workflow (ventus-grid-engine). - Signatures: `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()`; `_zoneDrawCirclePoints(lon, lat, radiusKm, n)`; `b(i / n)`; `_zoneDrawCalcArea(pts)`; `j(i + 1)`; `_zoneDrawUpdateLayers(dragOnly)`; `_zoneDrawShowPopup()`; `_zoneDrawShowPopupDebounced()`; `_zoneDrawClear()`; `zoneDrawUndo()`; `toggleZoneDrawMode()`; `_zoneDrawNearVertex(px)`; `_zoneDrawNearEdgeDot(px)`; `_zoneDrawOnClick(e)`; `mpp(km * 2000)`; `_zoneDrawOnMouseDown(e)`; `_zoneDrawOnMouseMove(e)`; `_zoneDrawOnMouseUp()`; `openPopup(lngLat, html, maxWidth)` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; GeoJSON file grid_400kv.geojson; form fields (user input)]; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Ventus Corev8engine Polyzone Grabbable - File: gridatlas/atlas/parts/202609060254-ventus-corev8engine-polyzone-grabbable.js (JavaScript, 1576 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/parts/202609060254-ventus-corev8engine-polyzone-grabbable.js#L1-L1576 - Page: https://code.globalgrid2050.com/explore-code/s/0599.html#f2 - Synopsis: A JavaScript file in the parts folder of GridAtlas that maps elizabeth line, london underground, UK metros trams and HS2, using haversine. - What it achieves (code): It normalizes status (`normalizeStatus`), toggles zone draw mode (`toggleZoneDrawMode`) and opens popup (`openPopup`). Its `snapLines` function gives line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged from line features and substation point features (VEDIC: snap line ends to substations). It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 67 functions or classes, including deepFreeze, escapeHTML, normalizeStatus, fmt, haversine. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; GeoJSON file grid_400kv.geojson; form fields (user input). Out: interactive map. - Signatures: `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()`; `_zoneDrawCirclePoints(lon, lat, radiusKm, n)`; `b(i / n)`; `_zoneDrawCalcArea(pts)`; `j(i + 1)`; `_zoneDrawUpdateLayers(dragOnly)`; `_zoneDrawShowPopup()`; `_zoneDrawShowPopupDebounced()`; `_zoneDrawClear()`; `zoneDrawUndo()`; `toggleZoneDrawMode()`; `_zoneDrawNearVertex(px)`; `_zoneDrawEdgeDots(i)`; `_zoneDrawNearEdgeDot(px)`; `_zoneDrawOnClick(e)`; `mpp(km * 2000)`; `_zoneDrawOnMouseDown(e)`; `_zoneDrawOnMouseMove(e)`; `_zoneDrawOnMouseUp()` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; GeoJSON file grid_400kv.geojson; form fields (user input)]; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Place Global Search Renewable Energy Planning Database (REPD) 2026q3 - File: gridatlas/atlas/parts/202611132345-place-global-search-repd-2026q3.js (JavaScript, 913 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/parts/202611132345-place-global-search-repd-2026q3.js#L1-L913 - Page: https://code.globalgrid2050.com/explore-code/s/0602.html#f1 - Synopsis: A JavaScript file in the parts folder of GridAtlas that maps REPD projects, offshore coordinates, postcodes and the REPD register, using SHA-256, and uses data from postcodes.io and OpenStreetMap Nominatim. - What it achieves (code): It marks deep link cancelled (`markDeepLinkCancelled`), normalises compact (`normaliseCompact`) and parses groups (`parseGroups`). Its `buildWhere` function gives SQL predicate from query text (VEDIC: query). It responds to gridatlas, click and input events. - What it does: It maps REPD projects, offshore coordinates, postcodes and the REPD register. Defines 41 functions or classes, including invariant, arrivalCoordinator, markDeepLinkCancelled, invalidatePendingDeepLink, escapeHtml. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: postcodes, the REPD register. - Inputs & outputs: In: data source: postcodes.io; data source: OpenStreetMap Nominatim; Parquet file repd_projects_202611132345.parquet; JSON file repd_v9_manifest_202611132345.json; JSON file offshore-coordinates.json; DuckDB queries. Out: interactive map. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `invariant(condition, message)`; `arrivalCoordinator()`; `markDeepLinkCancelled(reason, epoch = null)`; `invalidatePendingDeepLink(reason)`; `escapeHtml(value)`; `sqlString(value)`; `normaliseCompact(value)`; `parseGroups(query)`; `sha256Hex(bytes)`; `verifyManifest()`; `sharedDuckDBRuntime(moduleUrl)`; `runtime()`; `resetOfficialRuntime()`; `installMapCapture()`; `construct(target, args, newTarget)`; `buildWhere(query)`; `buildScore(query)`; `rowObject(row)`; `queryOfficialRepd(query, serial = null, stillOwned = null)`; `hasSafeMapPoint(result)`; `loadDerivedCoordinates()`; `derivedCoordinateFor(repdRef)`; `setDeepLink(result)`; `selectResult(result, options = {})`; `geocoderGet(path, query)` (and 15 more) - VEDIC: QUERY (GG2050-VEDIC-000046): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_predicate - VEDIC: SCORE (GG2050-VEDIC-000047): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_sort_expression - VEDIC: UK GEOCODE (GG2050-VEDIC-000048): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> uk_location_candidates - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/cartridges/202611180026-place-global-search-v9-5.js) · essay_status: readme_derived - data_contracts: in [data source: postcodes.io; data source: OpenStreetMap Nominatim; Parquet file repd_projects_202611132345.parquet; JSON file repd_v9_manifest_202611132345.json; JSON file offshore-coordinates.json; DuckDB queries]; out [interactive map]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Preview — Lightning Page - File: gridatlas/atlas/preview/lightning/index.html (HTML, 115 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/preview/lightning/index.html#L1-L115 - Page: https://code.globalgrid2050.com/explore-code/s/0603.html#f2 - Published at: https://gridatlas.globalgrid2050.com/atlas/preview/lightning/ - Synopsis: A web page in the atlas folder of GridAtlas that works with escape attribute (`escapeAttribute`) and sha256 hex (`sha256Hex`), using SHA-256. Published at https://gridatlas.globalgrid2050.com/atlas/preview/lightning/. - What it achieves (readme): It is built from the invariant step (`invariant`), the escape attribute helper (`escapeAttribute`) and the sha256 hex helper (`sha256Hex`). The README says: `atlas/index.html` is the stable composer. It reads `./current.json`. - What it does: It draws its content. Defines invariant, escapeAttribute, sha256Hex, fail. Uses libraries ${escapeAttribute(blobUrl)}, ' + escapeAttribute(weatherBlob) + '. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. README: "`atlas/index.html` is the stable composer." - Inputs & outputs: In: JSON file current.json. Out: web page. - Downstream impact: It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/preview/lightning/. - Signatures: `invariant(condition, message)`; `escapeAttribute(value)`; `sha256Hex(bytes)`; `fail(error)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out [web page]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Weather Module - File: gridatlas/atlas/preview/lightning/weather-module.js (JavaScript, 194 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/preview/lightning/weather-module.js#L1-L194 - Page: https://code.globalgrid2050.com/explore-code/s/0603.html#f3 - Published at: https://gridatlas.globalgrid2050.com/atlas/preview/lightning/ - Synopsis: A JavaScript file in the lightning folder of GridAtlas that maps UK lightning and uses data from the lightning repository. Served with the page at https://gridatlas.globalgrid2050.com/atlas/preview/lightning/. - What it achieves (comment): It appends layers (`appendToLayers`) and sets active (`setActive`). Public UK Lightning, isolated from the immutable 60+3 control contract. It responds to change events. - What it does: It maps UK lightning. Defines install, appendToLayers, status, hydrate, setActive. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. README: "It changes ONLY its isolated `streaming-parquet-bridge` to ignore cross-origin files, and injects `weather-module.js` verified by SHA-256." - Inputs & outputs: In: data source: lightning data; GeoJSON file uk_lightning.geojson. Out: interactive map. - Signatures: `install()`; `appendToLayers(hostId,kind)`; `status(word,details)`; `hydrate()`; `setActive(visible)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: lightning data; GeoJSON file uk_lightning.geojson]; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Renewable Energy Planning Database (REPD) Address Flyto - File: gridatlas/atlas/releases/202608291237-atlas-v9/cartridges/202608290716-repd-address-flyto.mjs (JavaScript, 113 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/releases/202608291237-atlas-v9/cartridges/202608290716-repd-address-flyto.mjs#L1-L113 - Page: https://code.globalgrid2050.com/explore-code/s/0603.html#f4 - Synopsis: A JavaScript module in the cartridges folder of GridAtlas that normalizes search (`normalizeSearchText`), parses atlas query (`parseAtlasQuery`) and scores record (`scoreRecord`) (units: MW), covering the REPD register and postcodes. - What it achieves (name): It normalizes search text (`normalizeSearchText`), parses atlas query (`parseAtlasQuery`) and scores record (`scoreRecord`). Defines `normalizeSearchText`, `parseAtlasQuery`, `searchable` and 5 more. It responds to click and keydown events. - What it does: It draws the REPD register and postcodes. Defines 8 functions or classes, including normalizeSearchText, parseAtlasQuery, searchable, scoreRecord, rankRepdProjects. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, postcodes. - Downstream impact: Used directly by 2 files: Atlas V9 (gridatlas); UI Atlas V9 (gridatlas, https://gridatlas.globalgrid2050.com/ui/site/). - Signatures: `export normalizeSearchText(value)`; `export parseAtlasQuery(raw)`; `export rankRepdProjects(records, rawQuery, limit = 20)`; `export mountRepdAddressFlyTo({ map, records, root, onSelected = () => {} })`; `searchable(record)`; `scoreRecord(record, parsed)`; `text(tag, value, className)`; `run()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Atlas V9 - File: gridatlas/atlas/releases/202608291430-atlas-v9/assets/atlas-v9.mjs (JavaScript, 501 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/releases/202608291430-atlas-v9/assets/atlas-v9.mjs#L1-L501 - Page: https://code.globalgrid2050.com/explore-code/s/0604.html#f1 - Synopsis: A JavaScript module in the assets folder of GridAtlas that maps UK primary roads, UK trunk roads, UK motorways and UK mainline railways, and uses data from OpenStreetMap tiles. - What it achieves (name): It sets selected URL (`setSelectedUrl`), marks map unavailable (`markMapUnavailable`) and adds project layers (`addProjectLayers`). Defines `popupNode`, `layerPopupNode`, `setSelectedUrl` and 20 more. It responds to change, click and pagehide events. - What it does: It maps UK primary roads, UK trunk roads, UK motorways and UK mainline railways. Defines 23 functions or classes, including popupNode, layerPopupNode, setSelectedUrl, hasMappableGeometry, select. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap tiles; Parquet file uk_primary_roads.parquet; Parquet file uk_trunk_roads.parquet; Parquet file uk_motorways.parquet; Parquet file uk_mainline_railways.parquet. Out: interactive map. - Signatures: `popupNode(record)`; `layerPopupNode(feature, layer)`; `setSelectedUrl(record)`; `hasMappableGeometry(record)`; `select(record)`; `flyTo(options)`; `markMapUnavailable(error)`; `addProjectLayers(records)`; `sourceId(layer)`; `renderLayerIds(layer)`; `minimumZoom(layer)`; `mapBounds()`; `createLayerManager(layers)`; `removeRendered(layer)`; `bindRendered(layer)`; `handler(event)`; `putRendered(layer, geojson)`; `refresh(layer, force = false)`; `activate(layer, checkbox)`; `renderControls()`; `loadDefaults()`; `initialiseMap(records, onReady)`; `resolveRequestedDeepLink(release)`; `boot()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap tiles; Parquet file uk_primary_roads.parquet; Parquet file uk_trunk_roads.parquet; Parquet file uk_motorways.parquet; Parquet file uk_mainline_railways.parquet]; out [interactive map]; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 1 ### Data GridAtlas Client - File: gridatlas/atlas/releases/202608291430-atlas-v9/assets/data-gridatlas-client.mjs (JavaScript, 300 lines) · role storage · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/releases/202608291430-atlas-v9/assets/data-gridatlas-client.mjs#L1-L300 - Page: https://code.globalgrid2050.com/explore-code/s/0605.html#f1 - Synopsis: A JavaScript module in the assets folder that fetches membership and the Renewable Energy Planning Database (REPD) register, using SHA-256. - What it achieves (name): It normalises base URL (`normaliseBaseUrl`), validates release manifest (`validateReleaseManifest`) and fetches verified JSON (`fetchVerifiedJson`). Defines `invariant`, `hasPlaceholder`, `normaliseBaseUrl` and 21 more. - What it does: It fetches membership and the REPD register. Defines 24 functions or classes, including invariant, hasPlaceholder, normaliseBaseUrl, validateReleaseManifest, sha256Hex. Side effects: makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file release.json; JSON file browser-layer-registry.json; Parquet file layer_membership.parquet; JSON file release-manifest.json; DuckDB queries. Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 2 files: Atlas V9 (gridatlas); Renewable Energy Planning Database (REPD) Routing Client (gridatlas). - Signatures: `export validateReleaseManifest(manifest, { sealed = true } = {})`; `export fetchVerifiedJson(url, expectedSha256, expectedBytes = null)`; `export validateDataClosure(release, dataRelease, registry)`; `export normaliseBounds(bounds)`; `export buildLayerQuery(release, layer, bounds)`; `export rowsToGeoJSON(rows, layer)`; `export loadReleaseContract(manifestUrl = "./release-manifest.json")`; `export loadDataCatalog(release)`; `export createGridAtlasDataClient(release, { onStatus = () => {} } = {})`; `invariant(condition, message)`; `hasPlaceholder(value)`; `normaliseBaseUrl(value)`; `sha256Hex(bytes)`; `dataUrl(release, path)`; `payloadUrl(release, path)`; `flattenLayers(registry)`; `sqlLiteral(value)`; `finiteBound(value, name)`; `plainArrowRow(row)`; `instantiateDuckDb(release, onStatus)`; `runtime()`; `queryLayer(layer, bounds)`; `task()`; `close()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file release.json; JSON file browser-layer-registry.json; Parquet file layer_membership.parquet; JSON file release-manifest.json; DuckDB queries]; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Renewable Energy Planning Database (REPD) Routing Client - File: gridatlas/atlas/releases/202608291430-atlas-v9/assets/repd-routing-client.mjs (JavaScript, 152 lines) · role energy-data · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/releases/202608291430-atlas-v9/assets/repd-routing-client.mjs#L1-L152 - Page: https://code.globalgrid2050.com/explore-code/s/0605.html#f2 - Synopsis: A JavaScript module in the assets folder of GridAtlas that works with the REPD register, using SHA-256. - What it achieves (name): It decodes routing projects (`decodeRoutingProjects`), resolves routing record (`resolveRoutingRecord`) and loads routing deep link fallback (`loadRoutingDeepLinkFallback`). Defines `invariant`, `dictionaryValue`, `immutableRoutingUrl` and 4 more. - What it does: It calculates the REPD register. Defines 7 functions or classes, including invariant, dictionaryValue, immutableRoutingUrl, decodeRoutingProjects, resolveRoutingRecord. - Why it exists in the grid workflow: Domain stage field_execution (path word 'routing'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: the REPD register. - Inputs & outputs: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 1 file: Atlas V9 (gridatlas). - Signatures: `export decodeRoutingProjects(payload)`; `export resolveRoutingRecord(decoded, repdRef)`; `export loadRoutingDeepLinkFallback(manifest, repdRef)`; `export clearRoutingCacheForTests()`; `invariant(condition, message)`; `dictionaryValue(dictionaries, name, index)`; `immutableRoutingUrl(manifest, relative)` - domain_stage: field_execution · commercial_user: IPP_developer, EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Place Postcode Search - File: gridatlas/atlas/releases/202608291818-atlas-v9/202608291818-place-postcode-search.js (JavaScript, 325 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/releases/202608291818-atlas-v9/202608291818-place-postcode-search.js#L1-L325 - Page: https://code.globalgrid2050.com/explore-code/s/0606.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps Renewable Energy Planning Database (REPD) projects, postcodes and the REPD register, using SHA-256. - What it achieves (code): It normalises compact (`normaliseCompact`), parses groups (`parseGroups`) and verifies manifest (`verifyManifest`). Its `buildWhere` function gives SQL predicate from query text (VEDIC: query). It responds to click, input and keydown events. - What it does: It maps REPD projects, postcodes and the REPD register. Defines 19 functions or classes, including invariant, escapeHtml, sqlString, normaliseCompact, parseGroups. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: postcodes, the REPD register. - Inputs & outputs: In: Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; DuckDB queries. Out: interactive map. - Downstream impact: Used directly by 2 files: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); Releases — Atlas V9 Page (gridatlas, https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/). Reached from 95 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V030 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v030.html). - Signatures: `invariant(condition, message)`; `escapeHtml(value)`; `sqlString(value)`; `normaliseCompact(value)`; `parseGroups(query)`; `sha256Hex(bytes)`; `verifyManifest()`; `runtime()`; `installMapCapture()`; `construct(target, args, newTarget)`; `buildWhere(query)`; `buildScore(query)`; `rowObject(row)`; `queryOfficialRepd(query)`; `hasSafeMapPoint(result)`; `setDeepLink(result)`; `selectResult(result)`; `renderResults(results, resultsEl)`; `executeSearch(input, resultsEl)`; `bindSearch()` - VEDIC: QUERY (GG2050-VEDIC-000046): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_predicate - VEDIC: SCORE (GG2050-VEDIC-000047): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_sort_expression - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; DuckDB queries]; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Map Ready Fetch Bridge - File: gridatlas/atlas/releases/202608292126-atlas-v9/202608292126-map-ready-fetch-bridge.js (JavaScript, 251 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/releases/202608292126-atlas-v9/202608292126-map-ready-fetch-bridge.js#L1-L251 - Page: https://code.globalgrid2050.com/explore-code/s/0606.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that reads grid 400kV, grid 275kV, grid 220kV and grid 132kV, using SHA-256 from the data-GridAtlas repository. - What it achieves (name): It maps ready key (`mapReadyKey`), gets manifest (`getManifest`) and gets runtime (`getRuntime`). Defines `invariant`, `requestPath`, `mapReadyKey` and 10 more. - What it does: It loads grid 400kV, grid 275kV, grid 220kV and grid 132kV. Defines 13 functions or classes, including invariant, requestPath, mapReadyKey, legacyStem, sha256Hex. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: data-gridatlas data; GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. - Signatures: `invariant(condition, message)`; `requestPath(input)`; `mapReadyKey(pathname)`; `legacyStem(pathname)`; `sha256Hex(bytes)`; `responseFromBytes(bytes, headers = {})`; `getManifest()`; `getRuntime()`; `resolvePartition(pathname)`; `artifact(manifest.artifacts || [])`; `rowObject(row)`; `queryOnDemand(pathname)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: data-gridatlas data; GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### Pre Snapped Config Adapter - File: gridatlas/atlas/releases/202608292126-atlas-v9/202608292126-pre-snapped-config-adapter.js (JavaScript, 50 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/releases/202608292126-atlas-v9/202608292126-pre-snapped-config-adapter.js#L1-L50 - Page: https://code.globalgrid2050.com/explore-code/s/0606.html#f3 - Synopsis: A JavaScript file in the atlas folder of GridAtlas. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Releases — Atlas V9 Page (gridatlas, https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/). Reached from 95 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V030 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v030.html). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### MapLibre Worker Bridge - File: gridatlas/atlas/releases/202608292311-atlas-v9/202608292311-maplibre-worker-bridge.js (JavaScript, 223 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/releases/202608292311-atlas-v9/202608292311-maplibre-worker-bridge.js#L1-L223 - Page: https://code.globalgrid2050.com/explore-code/s/0607.html#f1 - Published at: https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/ - Synopsis: A JavaScript file in the atlas folder of GridAtlas that reads grid 400kV, grid 275kV and grid 220kV, using SHA-256 from the data-GridAtlas repository. Served with the page at https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/. - What it achieves (name): It maps ready key (`mapReadyKey`), gets manifest (`getManifest`) and gets runtime (`getRuntime`). Defines `invariant`, `requestPath`, `mapReadyKey` and 8 more. - What it does: It loads grid 400kV, grid 275kV, grid 220kV and grid 132kV. Defines 11 functions or classes, including invariant, requestPath, mapReadyKey, legacyStem, sha256Hex. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: data-gridatlas data; GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. - Downstream impact: Used directly by 1 file: Releases — Atlas V9 Page (gridatlas, https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/). Reached from 95 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V030 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v030.html). It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/. - Signatures: `invariant(condition, message)`; `requestPath(input)`; `mapReadyKey(pathname)`; `legacyStem(pathname)`; `sha256Hex(bytes)`; `getManifest()`; `getRuntime()`; `resolvePartition(pathname)`; `artifact(manifest.artifacts || [])`; `rowObject(row)`; `queryOnDemand(pathname)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: data-gridatlas data; GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 1; mentioned by 0 ### Releases — Atlas V9 Page - File: gridatlas/atlas/releases/202608292311-atlas-v9/index.html (HTML, 271 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/releases/202608292311-atlas-v9/index.html#L1-L271 - Page: https://code.globalgrid2050.com/explore-code/s/0607.html#f2 - Published at: https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/ - Synopsis: A web page in GridAtlas that draws grid 400kV, grid 275kV, grid 220kV and grid 132kV. Published at https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/. - What it achieves (comment): UK Region v8 (Experimental). Its code works with 100 kW, 11 kV and 132 kV. - What it does: It draws grid 400kV, grid 275kV, grid 220kV and grid 132kV. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. README: "`atlas/index.html` is the stable composer." - Inputs & outputs: In: GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. Out: web page. Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Downstream impact: Used directly by 8 files: GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage V030 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v030.html); Homepage V031 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v031.html); Homepage V032 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v032.html); and 4 more. Reached from 87 other entry points, including GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson]; out [web page]; crs []; voltages [400kV, 275kV, 220kV, 132kV, 66kV, 11kV] - Edges: uses 5 estate files (script-src 4, stylesheet 1); used by 8; mentioned by 0 ### Ventus Corev8engine - File: gridatlas/atlas/releases/202608292311-atlas-v9/ventus-corev8engine.js (JavaScript, 1436 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/releases/202608292311-atlas-v9/ventus-corev8engine.js#L1-L1436 - Page: https://code.globalgrid2050.com/explore-code/s/0608.html#f1 - Published at: https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/ - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps elizabeth line, london underground, UK metros trams and HS2, using haversine. Served with the page at https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/. - What it achieves (code): It normalizes status (`normalizeStatus`), toggles zone draw mode (`toggleZoneDrawMode`) and opens popup (`openPopup`). Its `snapLines` function gives line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged from line features and substation point features (VEDIC: snap line ends to substations). It reads `/uk_renewables_pipeline/v9/data/v9.1/build_manifest.json`. It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 58 functions or classes, including deepFreeze, escapeHTML, normalizeStatus, fmt, haversine. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; JSON file build_manifest.json; GeoJSON file grid_400kv.geojson; form fields (user input). Out: interactive map. - Downstream impact: Used directly by 2 files: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); Releases — Atlas V9 Page (gridatlas, https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/). Reached from 95 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V030 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v030.html). It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/. - Signatures: `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()`; `_zoneDrawCirclePoints(lon, lat, radiusKm, n)`; `b(i / n)`; `_zoneDrawCalcArea(pts)`; `j(i + 1)`; `_zoneDrawUpdateLayers(dragOnly)`; `_zoneDrawShowPopup()`; `_zoneDrawShowPopupDebounced()`; `_zoneDrawClear()`; `zoneDrawUndo()`; `toggleZoneDrawMode()`; `_zoneDrawNearVertex(px)`; `_zoneDrawNearEdgeDot(px)`; `_zoneDrawOnClick(e)`; `mpp(km * 2000)`; `_zoneDrawOnMouseDown(e)`; `_zoneDrawOnMouseMove(e)`; `_zoneDrawOnMouseUp()`; `openPopup(lngLat, html, maxWidth)` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; JSON file build_manifest.json; GeoJSON file grid_400kv.geojson; form fields (user input)]; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Dock UI - File: gridatlas/atlas/testcode/202609110849/dock-ui.js (JavaScript, 149 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/testcode/202609110849/dock-ui.js#L1-L149 - Page: https://code.globalgrid2050.com/explore-code/s/0610.html#f2 - Synopsis: A JavaScript file in the testcode folder of GridAtlas that works with schedule position (`schedulePosition`) and native quick buttons (`nativeQuickButtons`) and reads inputs for sat policy and sat scene. - What it achieves (comment): It is built from the schedule position helper (`schedulePosition`), the scene options helper (`sceneOptions`) and the native quick buttons helper (`nativeQuickButtons`). This is the replacement UI tail of the satellite-only test cartridge. It responds to pointerdown, pointermove and pointerup events. - What it does: It draws its content. Defines 13 functions or classes, including schedulePosition, sceneOptions, nativeQuickButtons, shownRect, bounds. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. README: "`dock-ui.js` is the authored UI tail" - Inputs & outputs: In: browser storage (getItem); form fields (user input). Out: browser storage (setItem). - Signatures: `schedulePosition()`; `sceneOptions(selected)`; `nativeQuickButtons()`; `shownRect(e)`; `bounds()`; `overlap(a,b,gap=6)`; `position()`; `clampX(x)`; `clampY(y)`; `dragStart(e)`; `dragMove(e)`; `dragEnd(e)`; `install(m)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [browser storage (getItem); form fields (user input)]; out [browser storage (setItem)]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Browser Proof - File: gridatlas/atlas/testcode/202609111007/browser-proof.py (Python, 125 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/testcode/202609111007/browser-proof.py#L1-L125 - Page: https://code.globalgrid2050.com/explore-code/s/0610.html#f3 - Published at: https://gridatlas.globalgrid2050.com/atlas/testcode/202609111007/ - Synopsis: A Python module in the testcode folder of GridAtlas that draws survey boundary. It toggles quick (`toggle_quick`) and is built from the check step (`check`) and the handler step (`handler`). - What it achieves (comment): Bounded Chrome checks on a candidate or the published Satellite survey test. - What it does: It draws survey boundary. Defines 10 functions or classes, including check, handler, response, req, state. Uses libraries os, pathlib, json, re, shutil. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. README: "`browser-proof.py` runs bounded Chrome checks with live external imagery" - Inputs & outputs: In: GeoJSON file EN010101-boundary.geojson; GeoJSON file survey-test-boundary.geojson. Out: JSON file report.json. - Signatures: `check(name, ok, detail=None)`; `handler(route, request, *, data=data, mime=mime, name=name)`; `response(r)`; `req(r)`; `state()`; `snap(name)`; `grid(opened=True)`; `satellite(opened=True)`; `visible_quick()`; `toggle_quick(label,layer)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoJSON file EN010101-boundary.geojson; GeoJSON file survey-test-boundary.geojson]; out [JSON file report.json]; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### Build - File: gridatlas/atlas/testcode/202609111007/build.py (Python, 22 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/testcode/202609111007/build.py#L1-L22 - Page: https://code.globalgrid2050.com/explore-code/s/0610.html#f4 - Published at: https://gridatlas.globalgrid2050.com/atlas/testcode/202609111007/ - Synopsis: A Python module in the testcode folder of GridAtlas that builds an isolated Satellite survey test; production composition is unchanged, using SHA-256. - What it does: It loads data. Uses libraries hashlib, json, pathlib, re. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Atlas — Testcode Page - File: gridatlas/atlas/testcode/202609111007/index.html (HTML, 70 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/testcode/202609111007/index.html#L1-L70 - Page: https://code.globalgrid2050.com/explore-code/s/0610.html#f5 - Published at: https://gridatlas.globalgrid2050.com/atlas/testcode/202609111007/ - Synopsis: A web page in GridAtlas covering substations, using SHA-256. Published at https://gridatlas.globalgrid2050.com/atlas/testcode/202609111007/. It is built from the assert step (`assert`), the escape step (`escape`) and the hash step (`hash`). - What it achieves (comment): GridAtlas Satellite survey test. - What it does: It draws substations. Defines assert, escape, hash, script. Uses libraries '+escape(blob)+', '+escape(addon)+'. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: substations. README: "`atlas/index.html` is the stable composer." - Inputs & outputs: Out: web page. - Downstream impact: It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/testcode/202609111007/. - Signatures: `assert(ok, message)`; `escape(value)`; `hash(bytes)`; `script(url, expected)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Satellite - File: gridatlas/atlas/testcode/202609111007/satellite.js (JavaScript, 313 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/testcode/202609111007/satellite.js#L1-L313 - Page: https://code.globalgrid2050.com/explore-code/s/0611.html#f1 - Published at: https://gridatlas.globalgrid2050.com/atlas/testcode/202609111007/ - Synopsis: A JavaScript file in the testcode folder of GridAtlas that maps survey footprint line, survey boundary case and survey boundary line. Served with the page at https://gridatlas.globalgrid2050.com/atlas/testcode/202609111007/. - What it achieves (comment): It updates buttons (`updateButtons`), removes slot (`removeSlot`) and gets catalogue (`getCatalogue`). Satellite-only test cartridge. No project, grid, substation or branding edits. It responds to abort, click and change events. - What it does: It maps survey footprint line, survey boundary case and survey boundary line. Defines 36 functions or classes, including finite, visible, say, containsRing, covers. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: user-supplied file (file picker); form fields (user input). Coordinate systems named: WGS84 / EPSG:4326. - Signatures: `finite(n)`; `visible(id, on)`; `say(text)`; `containsRing(p, ring)`; `covers(item, p)`; `sceneText(item)`; `allowed(url)`; `json(url, signal)`; `orderImagery()`; `updateButtons()`; `cancel()`; `basic(next)`; `removeSlot(slot, owner)`; `awaitTiles(sourceId, signal)`; `done(error)`; `abort()`; `data(e)`; `errorEvent(e)`; `empty()`; `byId(id)`; `dateISO(d)`; `schedulePosition()`; `currentScope()`; `sceneOptions(selected)`; `getCatalogue(scope, signal, force)` (and 12 more) - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [user-supplied file (file picker); form fields (user input)]; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Survey UI - File: gridatlas/atlas/testcode/202609111007/survey-ui.js (JavaScript, 232 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/testcode/202609111007/survey-ui.js#L1-L232 - Page: https://code.globalgrid2050.com/explore-code/s/0611.html#f2 - Published at: https://gridatlas.globalgrid2050.com/atlas/testcode/202609111007/ - Synopsis: A JavaScript file in the testcode folder of GridAtlas that maps survey footprint line, survey boundary case and survey boundary line. Served with the page at https://gridatlas.globalgrid2050.com/atlas/testcode/202609111007/. - What it achieves (comment): It gets catalogue (`getCatalogue`), paints footprint (`paintFootprint`) and explains scene (`explainScene`). Survey UI and boundary/date selection. Original GRID/SUBS nodes are not moved. It responds to click and change events. - What it does: It maps survey footprint line, survey boundary case and survey boundary line. Defines 18 functions or classes, including empty, byId, dateISO, schedulePosition, currentScope. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: user-supplied file (file picker); form fields (user input). Coordinate systems named: WGS84 / EPSG:4326. - Signatures: `empty()`; `byId(id)`; `dateISO(d)`; `schedulePosition()`; `currentScope()`; `sceneOptions(selected)`; `getCatalogue(scope, signal, force)`; `rows(found.features || [])`; `paintFootprint(item)`; `explainScene()`; `showResult(result, token, signal)`; `task(work)`; `sentinel(preferredId = null, force = false)`; `validateBoundary(input)`; `setBoundary(input, name)`; `closeGrid()`; `fitBoundary()`; `compareLabels()`; `install(m)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [user-supplied file (file picker); form fields (user input)]; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Atlas — V Page - File: gridatlas/atlas/v/202609012141/index.html (HTML, 103 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/v/202609012141/index.html#L1-L103 - Page: https://code.globalgrid2050.com/explore-code/s/0611.html#f3 - Published at: https://gridatlas.globalgrid2050.com/atlas/v/202609012141/ - Synopsis: A web page in GridAtlas that works with escape attribute (`escapeAttribute`) and sha256 hex (`sha256Hex`), using SHA-256. Published at https://gridatlas.globalgrid2050.com/atlas/v/202609012141/. - What it achieves (readme): It is built from the invariant step (`invariant`), the escape attribute helper (`escapeAttribute`) and the sha256 hex helper (`sha256Hex`). The README says: `atlas/index.html` is the stable composer. It reads `./current.json`. - What it does: It draws its content. Defines invariant, escapeAttribute, sha256Hex, fail. Uses libraries ${escapeAttribute(blobUrl)}. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. README: "`atlas/index.html` is the stable composer." - Inputs & outputs: In: JSON file current.json. Out: web page. - Downstream impact: It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/v/202609012141/. - Signatures: `invariant(condition, message)`; `escapeAttribute(value)`; `sha256Hex(bytes)`; `fail(error)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out [web page]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav Offline Plan Worker - File: gridatlas/atlas/v/satnav-offline-plan-202611281315-worker.js (JavaScript, 33 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/v/satnav-offline-plan-202611281315-worker.js#L1-L33 - Page: https://code.globalgrid2050.com/explore-code/s/0611.html#f4 - Synopsis: A JavaScript file in the atlas folder of GridAtlas. It opens plan (`openPlan`). - What it achieves (comment): A version registers this worker for its own directory after an explicit save. It responds to install, activate and fetch events. - What it does: It fetches data. Defines openPlan. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Signatures: `openPlan(request)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Atlas — World Page - File: gridatlas/atlas/world/index.html (HTML, 325 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/world/index.html#L1-L325 - Page: https://code.globalgrid2050.com/explore-code/s/0612.html#f1 - Published at: https://gridatlas.globalgrid2050.com/atlas/world/ - Synopsis: A map page in GridAtlas that maps grid 400kV, grid line and scope pt. Published at https://gridatlas.globalgrid2050.com/atlas/world/. - What it achieves (readme): It is built from the close all helper (`closeAll`), the item step (`item`) and the toggle step (`toggle`). The README says: `atlas/index.html` is the stable composer. Its code works with 400 kV. It responds to click and change events. - What it does: It maps grid 400kV, grid line and scope pt. Defines 8 functions or classes, including closeAll, item, toggle, note, Flow. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV. README: "`atlas/index.html` is the stable composer." - Inputs & outputs: In: GeoJSON file grid_400kv.geojson. Out: web page; interactive map. Voltage levels named: 400kV. - Downstream impact: Used directly by 2 files: Runners (claude); Summon (claude). It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/world/. - Signatures: `closeAll()`; `item(menu, label, fn)`; `toggle(menu, label, colour, on, fn)`; `note(menu, text)`; `class Flow`; `constructor(segments)`; `onAdd(_, gl)`; `mk(t, s)`; `render(gl, matrix)`; `stat(id, v)`; `bounds(fc)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_400kv.geojson]; out [web page; interactive map]; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Compare Live vs Candidate - File: gridatlas/atman/202608290828-compare-live-vs-candidate.py (Python, 125 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atman/202608290828-compare-live-vs-candidate.py#L1-L125 - Page: https://code.globalgrid2050.com/explore-code/s/0612.html#f2 - Synopsis: A Python command-line tool in the atman folder of GridAtlas that reads postcodes and the Renewable Energy Planning Database (REPD) register, using SHA-256. - What it achieves (name): Defines `load_manifest` and `metrics`. It accepts `--incumbent-site`, `--candidate-site` and `--output`. - What it does: It loads postcodes and the REPD register. Defines load_manifest, metrics, main. Uses libraries argparse, hashlib, json, pathlib, duckdb. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: postcodes, the REPD register. - Inputs & outputs: In: DuckDB queries; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `load_manifest(site)`; `metrics(connection, relation)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [DuckDB queries; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Compare Incumbent Successor - File: gridatlas/atman/202608291239-compare-incumbent-successor.py (Python, 186 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atman/202608291239-compare-incumbent-successor.py#L1-L186 - Page: https://code.globalgrid2050.com/explore-code/s/0612.html#f3 - Synopsis: A Python command-line tool in the atman folder of GridAtlas that reads Renewable Energy Planning Database (REPD) browser registry, membership and the REPD register, using SHA-256. - What it achieves (comment): It reads JSON (`read_json`) and is built from the reject duplicate keys helper (`reject_duplicate_keys`) and the sha256 step (`sha256`). Classify every Atlas V9 live-successor promotion goal. It reads `release-manifest.json`. It accepts `--repository`, `--build-a` and `--build-b`. - What it does: It loads REPD browser registry, membership and the REPD register. Defines 7 functions or classes, including reject_duplicate_keys, read_json, sha256, tree, goal. Uses libraries __future__, argparse, hashlib, json, pathlib. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file release-manifest.json; JSON file browser-layer-registry.json; JSON file repd_browser_registry_202608290716.json; Parquet file layer_membership.parquet; DuckDB queries; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `reject_duplicate_keys(pairs: list[tuple[str, object]])`; `read_json(path: Path)`; `sha256(path: Path)`; `tree(directory: Path)`; `goal(status: str, evidence: object)`; `classified(condition: bool, evidence: object, *, expected_change: bool = False)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file release-manifest.json; JSON file browser-layer-registry.json; JSON file repd_browser_registry_202608290716.json; Parquet file layer_membership.parquet; DuckDB queries; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Compare Renewable Energy Planning Database (REPD) Coverage - File: gridatlas/atman/202608291430-compare-repd-coverage.mjs (JavaScript, 178 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atman/202608291430-compare-repd-coverage.mjs#L1-L178 - Page: https://code.globalgrid2050.com/explore-code/s/0613.html#f1 - Synopsis: A JavaScript module in the atman folder of GridAtlas that reads REPD browser registry and the REPD register, using SHA-256. It parses args (`parseArgs`) and sets hash (`setHash`). - What it achieves (name): Defines `parseArgs`, `sha256`, `tree` and 1 more. - What it does: It loads REPD browser registry and the REPD register. Defines parseArgs, sha256, tree, setHash. Uses libraries node:assert/strict, node:crypto, node:fs/promises, node:path, node:url. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file repd_browser_registry_202608290716.json; command-line arguments. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `parseArgs(argv)`; `sha256(value)`; `tree(root, prefix = "")`; `setHash(values)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file repd_browser_registry_202608290716.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Public Browser Readback - File: gridatlas/atman/202608291430-public-browser-readback.mjs (JavaScript, 215 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atman/202608291430-public-browser-readback.mjs#L1-L215 - Page: https://code.globalgrid2050.com/explore-code/s/0613.html#f2 - Synopsis: A JavaScript module in the atman folder of GridAtlas that draws grid 400kV snapped, membership and public browser claim, and uses data from the data-GridAtlas repository. - What it achieves (name): It proves sentinel (`proveSentinel`) and is built from the wait ready helper (`waitReady`). Defines `collect`, `waitReady` and `proveSentinel`. Its code works with 400 kV. - What it does: It draws grid 400kV snapped, membership, public browser claim and the REPD register. Defines collect, waitReady, proveSentinel. Uses libraries node:assert/strict, node:fs, node:path, playwright. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, 400kV. - Inputs & outputs: In: data source: data-gridatlas data; Parquet file grid_400kv_snapped.parquet; Parquet file layer_membership.parquet; DuckDB queries; command-line arguments. Out: JSON file 202608291430-public-browser-readback.json; JSON file 202608291430-public-browser-claim.json. Voltage levels named: 400kV. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `collect(page)`; `waitReady(page)`; `proveSentinel(browser, repdRef, expected)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: data-gridatlas data; Parquet file grid_400kv_snapped.parquet; Parquet file layer_membership.parquet; DuckDB queries; command-line arguments]; out [JSON file 202608291430-public-browser-readback.json; JSON file 202608291430-public-browser-claim.json]; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Rendered Browser Audit - File: gridatlas/atman/202608291430-rendered-browser-audit.mjs (JavaScript, 241 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atman/202608291430-rendered-browser-audit.mjs#L1-L241 - Page: https://code.globalgrid2050.com/explore-code/s/0613.html#f3 - Synopsis: A JavaScript module in the atman folder of GridAtlas that maps projects and Renewable Energy Planning Database (REPD) browser registry, using SHA-256, and uses data from the data-GridAtlas repository. - What it achieves (name): It maps stub (`MapStub`) and is built from the JSON bytes helper (`jsonBytes`) and the source class (`Source`). Defines `sha256`, `canonical`, `jsonBytes` and 6 more. - What it does: It maps projects, REPD browser registry and the REPD register. Defines 9 functions or classes, including sha256, canonical, jsonBytes, Source, MapStub. Uses libraries node:assert/strict, node:crypto, node:fs, node:http, node:path. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: data source: data-gridatlas data; JSON file projects.json; JSON file release-manifest.json; JSON file repd_browser_registry_202608290716.json; JSON file release.json; JSON file browser-layer-registry.json; command-line arguments. Out: JSON file 202608291430-browser-audit.json. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `sha256(body)`; `canonical(value)`; `jsonBytes(value)`; `class Source`; `class MapStub`; `constructor(options)`; `addControl()`; `addLayer(layer)`; `__push(key,value)`; `getSource(id)`; `removeLayer(id)`; `getZoom()`; `on(event, layerOrHandler, possibleHandler)`; `off(event, layerOrHandler, possibleHandler)`; `emit(event,payload)`; `flyTo(options)`; `class Popup`; `captureErrors(page)`; `configure(context, requests)`; `waitReady(page)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: data-gridatlas data; JSON file projects.json; JSON file release-manifest.json; JSON file repd_browser_registry_202608290716.json; JSON file release.json; JSON file browser-layer-registry.json; command-line arguments]; out [JSON file 202608291430-browser-audit.json]; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### Verify Live Release - File: gridatlas/atman/202608291430-verify-live-release.mjs (JavaScript, 213 lines) · role automation · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atman/202608291430-verify-live-release.mjs#L1-L213 - Page: https://code.globalgrid2050.com/explore-code/s/0614.html#f1 - Synopsis: A JavaScript module in the atman folder of GridAtlas that reads Renewable Energy Planning Database (REPD) browser registry, using SHA-256. It sets hash (`setHash`) and parses args (`parseArgs`). - What it achieves (name): Its name says it verifies live release. Defines `fail`, `invariant`, `digest` and 4 more. - What it does: It loads REPD browser registry. Defines 7 functions or classes, including fail, invariant, digest, setHash, sha256. Uses libraries node:assert/strict, node:crypto, node:fs/promises, node:path, node:url. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file build-manifest.json; JSON file release-manifest.json; JSON file live-set.json; JSON file current-v3.json; JSON file repd_browser_registry_202608290716.json; JSON file release.json; JSON file browser-layer-registry.json; Parquet file layer_membership.parquet. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `fail(message)`; `invariant(condition, message)`; `digest(bytes)`; `setHash(values)`; `sha256(file)`; `filesUnder(directory, prefix = "")`; `parseArgs(argv)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file build-manifest.json; JSON file release-manifest.json; JSON file live-set.json; JSON file current-v3.json; JSON file repd_browser_registry_202608290716.json; JSON file release.json; JSON file browser-layer-registry.json; Parquet file layer_membership.parquet]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### V8 Product Parity - File: gridatlas/atman/202608291758-v8-product-parity.mjs (JavaScript, 160 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atman/202608291758-v8-product-parity.mjs#L1-L160 - Page: https://code.globalgrid2050.com/explore-code/s/0614.html#f2 - Synopsis: A JavaScript module in the atman folder of GridAtlas that compares snapshots (`compareSnapshots`). - What it achieves (name): It compares snapshots (`compareSnapshots`) and is built from the require condition helper (`requireCondition`) and the clean step (`clean`). Defines `requireCondition`, `ready`, `snapshot` and 5 more. - What it does: It draws its content. Defines 8 functions or classes, including requireCondition, ready, snapshot, clean, compareSnapshots. Uses libraries node:fs/promises, playwright. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file 202608291758-v8-product-parity.json. - Downstream impact: Used directly by 1 file: Build V8 Product Mirror (gridatlas). - Signatures: `requireCondition(condition, message)`; `ready(page)`; `snapshot(page)`; `clean(value)`; `compareSnapshots(oracle, candidate, viewport)`; `sameJson(a, b)`; `testBridge(page)`; `toggle(id)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file 202608291758-v8-product-parity.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 1; mentioned by 1 ### Prove V8 Product Mirror - File: gridatlas/atman/202608291818-prove-v8-product-mirror.mjs (JavaScript, 218 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atman/202608291818-prove-v8-product-mirror.mjs#L1-L218 - Page: https://code.globalgrid2050.com/explore-code/s/0614.html#f3 - Synopsis: A JavaScript module in the atman folder of GridAtlas that draws mirror proof, using SHA-256. It normalises pixels (`normalisePixels`) and decodes png (`decodePng`). - What it achieves (name): Defines `requireCondition`, `blob`, `sha256` and 14 more. - What it does: It draws mirror proof. Defines 17 functions or classes, including requireCondition, blob, sha256, bytes, byteProof. Uses libraries node:crypto, node:fs/promises, pngjs, playwright. Side effects: changes the web page (DOM); reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file 202608291818-v8-mirror-proof.json. - Downstream impact: Used directly by 1 file: Prove V8 Product Mirror (gridatlas). - Signatures: `requireCondition(ok, message)`; `blob(bytes)`; `sha256(bytes)`; `bytes(url)`; `byteProof()`; `ready(page)`; `snapshot(page)`; `round(n)`; `compare(a,b,viewport)`; `normalisePixels(page)`; `shot(page, region)`; `decodePng(buffer)`; `pixelProof(aPage,bPage,viewport)`; `controlState(page,id)`; `display(s)`; `interactionProof(a,b)`; `bridgeProof(page)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file 202608291818-v8-mirror-proof.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 1 ### Verify Place Postcode Release - File: gridatlas/atman/202608291818-verify-place-postcode-release.mjs (JavaScript, 202 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atman/202608291818-verify-place-postcode-release.mjs#L1-L202 - Page: https://code.globalgrid2050.com/explore-code/s/0615.html#f1 - Synopsis: A JavaScript module in the atman folder of GridAtlas that runs search (`runSearch`), covering place postcode proof, postcodes and the Renewable Energy Planning Database (REPD) register. - What it achieves (name): It runs search (`runSearch`) and is built from the require condition helper (`requireCondition`) and the clean step (`clean`). Its name says it verifies place postcode release. Defines `requireCondition`, `ready`, `snapshot` and 5 more. - What it does: It draws place postcode proof, postcodes and the REPD register. Defines 8 functions or classes, including requireCondition, ready, snapshot, clean, assertStructuralParity. Uses libraries node:fs/promises, playwright. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: postcodes, the REPD register. - Inputs & outputs: In: JSON file 202608291818-place-postcode-proof.json; DuckDB queries. - Downstream impact: Used directly by 1 file: Build Place Postcode Search (gridatlas). - Signatures: `requireCondition(condition, message)`; `ready(page)`; `snapshot(page)`; `clean(value)`; `assertStructuralParity(oracle, candidate, viewport)`; `runSearch(page, query)`; `testSearch(page)`; `testV9DataBridge(page)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file 202608291818-place-postcode-proof.json; DuckDB queries]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Layer Performance Comparator - File: gridatlas/atman/202608292126-layer-performance-comparator.mjs (JavaScript, 236 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atman/202608292126-layer-performance-comparator.mjs#L1-L236 - Page: https://code.globalgrid2050.com/explore-code/s/0615.html#f2 - Synopsis: A JavaScript module in the atman folder of GridAtlas that replaces exactly (`replaceExactlyOnce`), covering 400kV, using SHA-256. - What it achieves (comment): It replaces exactly once (`replaceExactlyOnce`) and is built from the git blob sha1 helper (`gitBlobSha1`) and the ratio step (`ratio`). The full comparator remains immutably recorded at the exact source commit below. Its code works with 400 kV. - What it does: Defines gitBlobSha1, replaceExactlyOnce, ratio. Uses libraries node:crypto, node:fs/promises, node:child_process, node:url. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV. - Inputs & outputs: Voltage levels named: 400kV. - Downstream impact: Used directly by 2 files: Bootstrap Map Ready Source (gridatlas); Build Publish Map Ready V9 (gridatlas). - Signatures: `gitBlobSha1(bytes)`; `replaceExactlyOnce(source, before, after, label)`; `ratio(value)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Render Ready Comparator - File: gridatlas/atman/202608292311-render-ready-comparator.mjs (JavaScript, 99 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atman/202608292311-render-ready-comparator.mjs#L1-L99 - Page: https://code.globalgrid2050.com/explore-code/s/0615.html#f3 - Synopsis: A JavaScript module in the atman folder of GridAtlas that replaces exactly (`replaceExactlyOnce`). It replaces exactly once (`replaceExactlyOnce`) and is built from the git blob sha1 helper (`gitBlobSha1`). - What it achieves (comment): The complete render-ready comparator is pinned below. - What it does: Defines gitBlobSha1, replaceExactlyOnce. Uses libraries node:crypto, node:fs/promises, node:child_process, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 3 files: Build Verify Publish Render Ready V9 (gridatlas); Five Hour V8 V9 Watchdog (gridatlas); Build Verify Promote Exact Renewable Energy Planning Database (REPD) Deep Link (gridatlas). - Signatures: `gitBlobSha1(bytes)`; `replaceExactlyOnce(source, before, after, label)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Verify Exact Renewable Energy Planning Database (REPD) Deep Link - File: gridatlas/atman/202608300453-verify-exact-repd-deep-link.mjs (JavaScript, 146 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atman/202608300453-verify-exact-repd-deep-link.mjs#L1-L146 - Page: https://code.globalgrid2050.com/explore-code/s/0615.html#f4 - Synopsis: A JavaScript module in the atman folder of GridAtlas that reads the REPD register and postcodes. - What it achieves (name): Its name says it verifies exact REPD deep link. Defines `isKnownLegacyDuplicateEngineError`. - What it does: It loads the REPD register and postcodes. Defines isKnownLegacyDuplicateEngineError. Uses libraries node:fs/promises, playwright. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, postcodes. - Inputs & outputs: In: JSON file style.json; DuckDB queries. - Downstream impact: Used directly by 1 file: Build Verify Promote Exact Renewable Energy Planning Database (REPD) Deep Link (gridatlas). - Signatures: `isKnownLegacyDuplicateEngineError(message)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file style.json; DuckDB queries]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Verify V9 5 Search - File: gridatlas/atman/202608301624-verify-v9-5-search.mjs (JavaScript, 192 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atman/202608301624-verify-v9-5-search.mjs#L1-L192 - Page: https://code.globalgrid2050.com/explore-code/s/0616.html#f1 - Synopsis: A JavaScript module in the atman folder of GridAtlas that draws search proof, postcodes and the Renewable Energy Planning Database (REPD) register. - What it achieves (name): It cleans page (`cleanPage`) and is built from the wait ready helper (`waitReady`) and the query step (`query`). Its name says it verifies search. Defines `invariant`, `waitReady`, `record` and 2 more. - What it does: It draws search proof, postcodes and the REPD register. Defines invariant, waitReady, record, cleanPage, query. Uses libraries node:fs/promises, playwright. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: postcodes, the REPD register. - Inputs & outputs: In: JSON file 202608301624-v9-5-search-proof.json. - Downstream impact: Used directly by 1 file: GridAtlas Verify Live Workflow (gridatlas). - Signatures: `invariant(condition, message)`; `waitReady(page)`; `record(name, action)`; `cleanPage(page)`; `query(page, text, { sequential = false } = {})` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file 202608301624-v9-5-search-proof.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Verify Atlas V9 - File: gridatlas/atman/202611132345-verify-atlas-v9.py (Python, 79 lines) · role storage · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atman/202611132345-verify-atlas-v9.py#L1-L79 - Page: https://code.globalgrid2050.com/explore-code/s/0616.html#f2 - Synopsis: A Python command-line tool in the atman folder of GridAtlas that reads the Renewable Energy Planning Database (REPD) register, using SHA-256. - What it achieves (name): Its name says it verifies atlas. Defines `sha`. It accepts `--site`. - What it does: It loads the REPD register. Defines sha, main. Uses libraries argparse, hashlib, importlib.util, json, pathlib. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: DuckDB queries; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `sha(path)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [DuckDB queries; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Verify Streaming Roads - File: gridatlas/atman/verify_streaming_roads.mjs (JavaScript, 126 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atman/verify_streaming_roads.mjs#L1-L126 - Page: https://code.globalgrid2050.com/explore-code/s/0616.html#f3 - Synopsis: A JavaScript module in the atman folder of GridAtlas that reads streaming road proof, UK motorways, UK trunk roads and UK primary roads. - What it achieves (name): Its name says it verifies streaming roads. - What it does: It loads streaming road proof, UK motorways, UK trunk roads and UK primary roads. Uses libraries node:fs/promises, playwright. Side effects: changes the web page (DOM); reads or writes files; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file streaming-road-proof.json; GeoJSON file uk_motorways.geojson; GeoJSON file uk_trunk_roads.geojson; GeoJSON file uk_primary_roads.geojson; DuckDB queries. - Downstream impact: Used directly by 1 file: GridAtlas Verify Live Workflow (gridatlas). - Signatures: `seconds(performance.now() - started)`; `heapMb(await cdp.send('Runtime.getHeapUsage'))`; `bad(!state.label.includes('[OK]') || !state.loaded || state.rows !== target.rows || state.streamedResponses < 1 || state....)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file streaming-road-proof.json; GeoJSON file uk_motorways.geojson; GeoJSON file uk_trunk_roads.geojson; GeoJSON file uk_primary_roads.geojson; DuckDB queries]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Build Highway Transport Repair - File: gridatlas/bootstrap/highway-forensics/build_highway_transport_repair.py (Python, 243 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/bootstrap/highway-forensics/build_highway_transport_repair.py#L1-L243 - Page: https://code.globalgrid2050.com/explore-code/s/0616.html#f4 - Synopsis: A Python command-line tool in the highway forensics folder of GridAtlas that reads UK motorways, UK trunk roads and UK primary roads, using SHA-256 from the GlobalGrid2050 repository. - What it achieves (comment): It builds error (`BuildError`), reads JSON (`read_json`) and writes atomic (`write_atomic`). Build the GridAtlas v9.5 highway transport repair as one hashed cartridge. It accepts `--generation`, `--current` and `--shell-bridge`. - What it does: It loads UK motorways, UK trunk roads, UK primary roads and REPD master. Defines 9 functions or classes, including BuildError, require, read_json, canonical_json, sha256_bytes. Uses libraries __future__, argparse, hashlib, json, os. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: globalgrid2050 data; GeoJSON file uk_motorways.geojson; GeoJSON file uk_trunk_roads.geojson; GeoJSON file uk_primary_roads.geojson; JSON file repd_master.json; JSON file heavy_emitters_uk.json; JSON file current.json; DuckDB queries. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `class BuildError`; `require(condition: bool, message: str)`; `read_json(path: Path)`; `canonical_json(value: dict[str, Any])`; `sha256_bytes(value: bytes)`; `write_atomic(path: Path, content: str)`; `patch_bridge(source: str, generation: str)`; `make_contract(generation: str, cartridge_sha: str)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: globalgrid2050 data; GeoJSON file uk_motorways.geojson; GeoJSON file uk_trunk_roads.geojson; GeoJSON file uk_primary_roads.geojson; JSON file repd_master.json; JSON file heavy_emitters_uk.json; JSON file current.json; DuckDB queries]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Forensic Highways - File: gridatlas/bootstrap/highway-forensics/forensic_highways.mjs (JavaScript, 120 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/bootstrap/highway-forensics/forensic_highways.mjs#L1-L120 - Page: https://code.globalgrid2050.com/explore-code/s/0617.html#f1 - Synopsis: A JavaScript module in the highway forensics folder of GridAtlas that reads highway forensics, UK primary roads, UK trunk roads and UK motorways. - What it achieves (name): It cleans error (`cleanError`) and is built from the relevant URL helper (`relevantUrl`) and the cdp metrics helper (`cdpMetrics`). Defines `cleanError`, `relevantUrl`, `cdpMetrics` and 1 more. - What it does: It loads highway forensics, UK primary roads, UK trunk roads and UK motorways. Defines cleanError, relevantUrl, cdpMetrics, probe. Uses libraries playwright, node:fs/promises, node:path. Side effects: changes the web page (DOM); reads or writes files; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file highway-forensics.json; GeoJSON file uk_primary_roads.geojson; GeoJSON file uk_trunk_roads.geojson; GeoJSON file uk_motorways.geojson; DuckDB queries. - Signatures: `REPAIRED_BROWSERS(process.env.REPAIRED_BROWSERS || 'chromium')`; `cleanError(error)`; `relevantUrl(url)`; `cdpMetrics(context, page, browserName)`; `probe({ browserName, label, url, mobile = false, expect })` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file highway-forensics.json; GeoJSON file uk_primary_roads.geojson; GeoJSON file uk_trunk_roads.geojson; GeoJSON file uk_motorways.geojson; DuckDB queries]; out []; crs []; voltages [] - Edges: uses 2 estate files (estate-url 2); used by 0; mentioned by 0 ### Compile Atlas V9 Live - File: gridatlas/compiler/202608291430-compile-atlas-v9-live.py (Python, 322 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/compiler/202608291430-compile-atlas-v9-live.py#L1-L322 - Page: https://code.globalgrid2050.com/explore-code/s/0617.html#f2 - Synopsis: A Python command-line tool in the compiler folder of GridAtlas that reads atlas live release and the Renewable Energy Planning Database (REPD) register, using SHA-256. - What it achieves (comment): It reads JSON (`read_json`), replaces once (`replace_once`) and compiles release (`compile_release`). Deterministically compile the Atlas V9 coverage successor. It accepts `--repository`, `--output` and `--source-commit`. - What it does: It loads atlas live release and the REPD register. Defines 11 functions or classes, including reject_duplicate_keys, read_json, canonical_json, sha256, require. Uses libraries __future__, argparse, hashlib, json, re. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file 202608291430-atlas-v9-live-release.json; JSON file build-manifest.json; command-line arguments. Out: JSON file release-manifest.json; JSON file build-manifest.json. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `reject_duplicate_keys(pairs: list[tuple[str, object]])`; `read_json(path: Path)`; `canonical_json(value: object)`; `sha256(path: Path)`; `require(condition: bool, message: str)`; `replace_once(source: str, old: str, new: str, label: str)`; `unresolved_routing(value: object, location: str = "contract")`; `transform_data_client(source: str)`; `transform_atlas(source: str)`; `compile_release(args: argparse.Namespace)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file 202608291430-atlas-v9-live-release.json; JSON file build-manifest.json; command-line arguments]; out [JSON file release-manifest.json; JSON file build-manifest.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Build Map Ready V9 - File: gridatlas/compiler/202608292126-build-map-ready-v9.py (Python, 480 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/compiler/202608292126-build-map-ready-v9.py#L1-L480 - Page: https://code.globalgrid2050.com/explore-code/s/0618.html#f1 - Synopsis: A Python command-line tool in the compiler folder of GridAtlas that fetches postcodes, using SHA-256. It fetches bytes (`fetch_bytes`), writes bytes (`write_bytes`) and loads JSON bytes (`load_json_bytes`). - What it achieves (comment): Build a deterministic V8-surface successor with map-ready preload cartridges. Its code works with 400 kV. It accepts `--contract`, `--output` and `--oracle-output`. - What it does: It fetches postcodes. Defines 15 functions or classes, including canonical, require, sha256_bytes, sha256_file, git_blob_sha1. Uses libraries __future__, argparse, hashlib, json, shutil. Side effects: reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: postcodes, 400kV. - Inputs & outputs: In: JSON file map-ready-manifest.json; DuckDB queries; command-line arguments. Out: JSON file release-manifest.json; JSON file build-manifest.json. Voltage levels named: 400kV. - Downstream impact: Used directly by 2 files: Bootstrap Map Ready Source (gridatlas); Build Publish Map Ready V9 (gridatlas). - Signatures: `canonical(value: Any)`; `require(condition: bool, message: str)`; `sha256_bytes(payload: bytes)`; `sha256_file(path: Path)`; `git_blob_sha1(payload: bytes)`; `fetch_bytes(url: str, attempts: int = 5, timeout: int = 180)`; `raw_url(repository: str, commit: str, path: str)`; `write_bytes(path: Path, payload: bytes)`; `load_json_bytes(payload: bytes, label: str)`; `sql_path(path: Path)`; `parquet_to_geojson(parquet_path: Path, output_path: Path, expected_rows: int, expected_source_id: str)`; `deterministic_tree_manifest(root: Path)`; `write_sha256sums(root: Path)`; `copy_source(path: str, target: Path)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file map-ready-manifest.json; DuckDB queries; command-line arguments]; out [JSON file release-manifest.json; JSON file build-manifest.json]; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Build Render Ready V9 - File: gridatlas/compiler/202608292311-build-render-ready-v9.py (Python, 60 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/compiler/202608292311-build-render-ready-v9.py#L1-L60 - Page: https://code.globalgrid2050.com/explore-code/s/0618.html#f2 - Synopsis: A Python module in the compiler folder of GridAtlas that fetches grid 400kV, grid 275kV, grid 220kV and grid 132kV. - What it achieves (comment): It replaces exactly once (`replace_exactly_once`) and is built from the git blob sha1 helper (`git_blob_sha1`). Run the pinned render-ready compiler with a complete deterministic V8 oracle. Its code works with 400 kV. - What it does: It fetches grid 400kV, grid 275kV, grid 220kV and grid 132kV. Defines git_blob_sha1, replace_exactly_once. Uses libraries __future__, hashlib, runpy, subprocess, pathlib. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV. - Inputs & outputs: Voltage levels named: 400kV. - Downstream impact: Used directly by 1 file: Build Verify Publish Render Ready V9 (gridatlas). - Signatures: `git_blob_sha1(payload: bytes)`; `replace_exactly_once(source: str, before: str, after: str, label: str)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Build Exact Renewable Energy Planning Database (REPD) Deep Link Successor - File: gridatlas/compiler/202608300453-build-exact-repd-deep-link-successor.py (Python, 258 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/compiler/202608300453-build-exact-repd-deep-link-successor.py#L1-L258 - Page: https://code.globalgrid2050.com/explore-code/s/0619.html#f1 - Synopsis: A Python command-line tool in the compiler folder of GridAtlas that reads grid 400kV, map ready and deep link receiver, using SHA-256. It replaces once (`replace_once`) and writes JSON (`write_json`). - What it achieves (comment): Build an immutable GridAtlas successor that receives exact REPD deep links. Its code works with 400 kV. It writes `deep-link-receiver-manifest.json`. It accepts `--parent`, `--output` and `--release-id`. - What it does: It loads grid 400kV, map ready and deep link receiver. Defines replace_once, sha256, write_json, main. Uses libraries __future__, argparse, hashlib, json, shutil. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV. - Inputs & outputs: In: GeoJSON file grid_400kv.geojson; JSON file build-manifest.json; JSON file map-ready-manifest.json; JSON file release-manifest.json; JSON file deep-link-receiver-manifest.json; command-line arguments. Voltage levels named: 400kV. - Downstream impact: Used directly by 1 file: Build Verify Promote Exact Renewable Energy Planning Database (REPD) Deep Link (gridatlas). - Signatures: `replace_once(source: str, before: str, after: str, label: str)`; `sha256(path: Path)`; `write_json(path: Path, value: object)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_400kv.geojson; JSON file build-manifest.json; JSON file map-ready-manifest.json; JSON file release-manifest.json; JSON file deep-link-receiver-manifest.json; command-line arguments]; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Compile Atlas V9 - File: gridatlas/compiler/202611132345-compile-atlas-v9.py (Python, 250 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/compiler/202611132345-compile-atlas-v9.py#L1-L250 - Page: https://code.globalgrid2050.com/explore-code/s/0619.html#f2 - Synopsis: A Python command-line tool in the compiler folder of GridAtlas that reads Renewable Energy Planning Database (REPD) publication q3, REPD q3 cleaned and solar, using EPSG:27700 and EPSG:4326. - What it achieves (name): It classifies tech (`classify_tech`), compiles rows (`compile_rows`) and writes Parquet (`write_parquet`). Its name says it compiles atlas. Defines `digest`, `clean`, `norm` and 7 more. It accepts `--source`, `--v8` and `--output`. - What it does: It loads REPD publication q3, REPD q3 cleaned, solar and the REPD register. Defines 11 functions or classes, including digest, clean, norm, postcode, public_applicant. Uses libraries argparse, csv, hashlib, json, math. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar, the REPD register. - Inputs & outputs: In: CSV file REPD_Publication_Q3_2026.csv; CSV file REPD_2026Q3_cleaned.csv; DuckDB queries; command-line arguments. Out: Parquet file. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `digest(path)`; `clean(value)`; `norm(value)`; `postcode(raw)`; `public_applicant(raw)`; `classify_tech(raw, mounting)`; `row_hash(row)`; `compile_rows(source)`; `write_parquet(rows, target)`; `v8_parity(rows, v8_path)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [CSV file REPD_Publication_Q3_2026.csv; CSV file REPD_2026Q3_cleaned.csv; DuckDB queries; command-line arguments]; out [Parquet file]; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GridAtlas — Index Page - File: gridatlas/index.html (HTML, 2 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/index.html#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0619.html#f3 - Published at: https://gridatlas.globalgrid2050.com/ - Synopsis: A web page. Published at https://gridatlas.globalgrid2050.com/. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: Out: web page. - Downstream impact: Used directly by 32 files: Build N1 Deep Link Candidates (code-generator); Single-Line Diagram (SLD) Mobile Arrival Card Browser (gridatlas); GlobalGrid2050 — Atlas V9 Page (globalgrid2050, https://globalgrid2050.com/202608300453-atlas-v9/); Prove Federated Deep Links (gridatlas); and 28 more. Reached from 27 other entry points, including Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); Pilot (cosmic, https://ventusltd.github.io/cosmic/tools/explore/theme/pilot.html); GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/). It is itself an entry point, published at https://gridatlas.globalgrid2050.com/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (link 1); used by 32; mentioned by 1 ### GridAtlas Local Arrival Grid - File: gridatlas/local-arrival-grid.mjs (JavaScript, 202 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/local-arrival-grid.mjs#L1-L202 - Page: https://code.globalgrid2050.com/explore-code/s/0620.html#f1 - Published at: https://gridatlas.globalgrid2050.com/ - Synopsis: A JavaScript module that reads harvest cache, the Renewable Energy Planning Database (REPD) register and solar. Served with the page at https://gridatlas.globalgrid2050.com/. - What it achieves (comment): It is built from the arg step (`arg`), the harvest step (`harvest`) and the grab step (`grab`). The gap that let every defect found on ship: no CI job has ever loaded a deep link in a real browser at any viewport. - What it does: It loads harvest cache, the REPD register and solar. Defines 6 functions or classes, including arg, harvest, grab, probe, url. Uses libraries playwright, node:fs, node:os. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar. - Inputs & outputs: In: JSON file harvest-cache.json; command-line arguments. - Signatures: `arg(k, d)`; `harvest()`; `grab()`; `probe()`; `url(r)`; `worker(engine, engineName, vp, queue, stats)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file harvest-cache.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### Evaluate Cross Repo Atlas V9 - File: gridatlas/orchestration/202608300232-evaluate-cross-repo-atlas-v9.py (Python, 187 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/orchestration/202608300232-evaluate-cross-repo-atlas-v9.py#L1-L187 - Page: https://code.globalgrid2050.com/explore-code/s/0620.html#f2 - Synopsis: A Python command-line tool in the orchestration folder of GridAtlas that reads GridAtlas current, atlas deep link audit and atlas company Renewable Energy Planning Database (REPD) links, using SHA-256. - What it achieves (comment): It loads optional (`load_optional`) and is built from the sha step (`sha`) and the milestone step (`milestone`). Evaluate the governed Atlas V9 publication/deep-link chain across four repositories. It accepts `--gridatlas`, `--globalgrid` and `--pipelinenews`. - What it does: It loads GridAtlas current, atlas deep link audit, atlas company REPD links and atlas deep link contract. Defines load_optional, sha, milestone, main. Uses libraries __future__, argparse, hashlib, json, datetime. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file live-set.json; JSON file gridatlas-v9-current.json; JSON file atlas-v9-current.json; JSON file atlas-v9-deep-link-audit.json; JSON file atlas-v9-company-repd-links-manifest.json; JSON file atlas-v9-deep-link-contract.v1.json; command-line arguments. - Downstream impact: Used directly by 1 file: Evaluate Cross Repo Atlas V9 (gridatlas). - Signatures: `load_optional(path: Path)`; `sha(path: Path)`; `milestone(identifier: str, passed: bool, observed: Any, gate: Any)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file live-set.json; JSON file gridatlas-v9-current.json; JSON file atlas-v9-current.json; JSON file atlas-v9-deep-link-audit.json; JSON file atlas-v9-company-repd-links-manifest.json; JSON file atlas-v9-deep-link-contract.v1.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Assemble Study Build Controller - File: gridatlas/orchestration/202608310015-gridatlas-overnight-next-versions/202608310015-assemble-study-build-controller.mjs (JavaScript, 32 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/orchestration/202608310015-gridatlas-overnight-next-versions/202608310015-assemble-study-build-controller.mjs#L1-L32 - Page: https://code.globalgrid2050.com/explore-code/s/0620.html#f3 - Synopsis: A JavaScript module in the orchestration folder of GridAtlas that uses SHA-256. - What it achieves (name): Defines `sha256`. - What it does: It loads data. Defines sha256. Uses libraries node:crypto, node:fs/promises, node:path. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: GridAtlas Overnight Next Versions Workflow (gridatlas). - Signatures: `sha256(value)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Finalise Overnight Candidate - File: gridatlas/orchestration/202608310015-gridatlas-overnight-next-versions/202608310015-finalise-overnight-candidate.mjs (JavaScript, 155 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/orchestration/202608310015-gridatlas-overnight-next-versions/202608310015-finalise-overnight-candidate.mjs#L1-L155 - Page: https://code.globalgrid2050.com/explore-code/s/0620.html#f4 - Synopsis: A JavaScript module in the orchestration folder of GridAtlas that reads GridAtlas programme ledger, using SHA-256. It appends output (`appendOutput`), reads JSON (`readJson`) and writes JSON (`writeJson`). - What it achieves (name): Defines `appendOutput`, `sha256`, `htmlEscape` and 3 more. - What it does: It loads GridAtlas programme ledger. Defines 6 functions or classes, including appendOutput, sha256, htmlEscape, readJson, writeJson. Uses libraries node:crypto, node:fs/promises, node:path, node:fs. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file 202608310015-gridatlas-programme-ledger.json. - Downstream impact: Used directly by 1 file: GridAtlas Overnight Next Versions Workflow (gridatlas). - Signatures: `appendOutput(key, value)`; `sha256(buffer)`; `htmlEscape(value)`; `readJson(filePath)`; `writeJson(filePath, value)`; `listFilesRecursive(folder, relative = '')`; `ledgerCandidate(ledger.candidates || [])`; `rows(proof.tests || [])`; `files(await listFilesRecursive(candidateAbsolute))` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file 202608310015-gridatlas-programme-ledger.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Verify Overnight Candidate - File: gridatlas/orchestration/202608310015-gridatlas-overnight-next-versions/202608310015-verify-overnight-candidate.mjs (JavaScript, 301 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/orchestration/202608310015-gridatlas-overnight-next-versions/202608310015-verify-overnight-candidate.mjs#L1-L301 - Page: https://code.globalgrid2050.com/explore-code/s/0621.html#f1 - Synopsis: A JavaScript module in the orchestration folder of GridAtlas that draws GridAtlas overnight candidate proof, UK motorways, UK trunk roads and UK primary roads. - What it achieves (name): It opens candidate (`openCandidate`) and is built from the ensure parent helper (`ensureParent`) and the wait composition ready helper (`waitCompositionReady`). Its name says it verifies overnight candidate. Defines `invariant`, `record`, `ensureParent` and 3 more. Its code works with 400 kV. - What it does: It draws GridAtlas overnight candidate proof, UK motorways, UK trunk roads and UK primary roads. Defines 6 functions or classes, including invariant, record, ensureParent, waitCompositionReady, openCandidate. Uses libraries node:fs/promises, node:path, playwright. Side effects: changes the web page (DOM); reads or writes files; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV. - Inputs & outputs: In: JSON file 202608310015-gridatlas-overnight-candidate-proof.json; GeoJSON file uk_motorways.geojson; GeoJSON file uk_trunk_roads.geojson; GeoJSON file uk_primary_roads.geojson. Voltage levels named: 400kV. - Downstream impact: Used directly by 1 file: GridAtlas Overnight Next Versions Workflow (gridatlas). - Signatures: `invariant(condition, message)`; `record(name, severity, action)`; `ensureParent(filePath)`; `waitCompositionReady()`; `openCandidate(search = '')`; `submitQuery(text, { sequential = false } = {})`; `seconds(performance.now() - started)`; `heapMb(await cdp.send('Runtime.getHeapUsage'))` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file 202608310015-gridatlas-overnight-candidate-proof.json; GeoJSON file uk_motorways.geojson; GeoJSON file uk_trunk_roads.geojson; GeoJSON file uk_primary_roads.geojson]; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### G203 03 Gps Camera Test - File: gridatlas/tests/g203-03-gps-camera.test.mjs (JavaScript, 50 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tests/g203-03-gps-camera.test.mjs#L1-L50 - Page: https://code.globalgrid2050.com/explore-code/s/0621.html#f2 - Synopsis: A test in the tests folder of GridAtlas that checks G203 03 Gps Camera Candidate. It runs gps regression (`runGpsRegression`) and sets fix (`setFix`). - What it achieves (comment): G203-03: deterministic GPS callback/camera tests against the actual candidate source. - What it does: It tests its inputs. Defines runGpsRegression, cut, fieldState, setFix, make. Uses libraries node:fs. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage field_execution (path word 'gps'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `runGpsRegression(source)`; `cut(a,b)`; `fieldState(f)`; `setFix(f)`; `make()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (url-import-meta 1); used by 1; mentioned by 0 ### GridAtlas Build Cartridge - File: gridatlas/tools/build-cartridge.mjs (JavaScript, 182 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/build-cartridge.mjs#L1-L182 - Page: https://code.globalgrid2050.com/explore-code/s/0621.html#f3 - Synopsis: A JavaScript module in the tools folder that reads substations, using SHA-256. It reads lf (`readLf`) and is built from the argv step (`argv`) and the sha256 step (`sha256`). - What it achieves (comment): Assemble a cartridge from modules, and record what went into it. - What it does: It loads substations. Defines argv, sha256, readLf, exists. Uses libraries node:fs/promises, node:fs, node:crypto, node:path, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations. - Inputs & outputs: In: command-line arguments. - Signatures: `argv(flag, { many = false } = {})`; `sha256(text)`; `readLf(relativePath)`; `exists(path)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Audit - File: gridatlas/tools/cartridges/audit.mjs (JavaScript, 110 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/cartridges/audit.mjs#L1-L110 - Page: https://code.globalgrid2050.com/explore-code/s/0621.html#f4 - Synopsis: A JavaScript module in the cartridges folder of GridAtlas that reads shift log. - What it achieves (name): Defines `walk` and `classify`. - What it does: It loads shift log. Defines walk, classify, mb. Uses libraries node:fs, node:path, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file shift-log.json; JSON file current.json; command-line arguments. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `walk(dir, out)`; `classify(refs)`; `mb(bytes)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file shift-log.json; JSON file current.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Local CI - File: gridatlas/tools/ci/202609012200-local-ci.mjs (JavaScript, 565 lines) · role automation · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/ci/202609012200-local-ci.mjs#L1-L565 - Page: https://code.globalgrid2050.com/explore-code/s/0622.html#f1 - Synopsis: A JavaScript module in the tools folder of GridAtlas that strips comments (`stripComments`), using haversine. - What it achieves (comment): It is built from the argv step (`argv`), the git step (`git`) and the bar step (`bar`). Measure the change, coordinate the computation engine, find flaws. - What it does: It loads data. Defines 6 functions or classes, including argv, git, bar, computes, stripComments. Uses libraries node:child_process, node:fs, node:path, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 1 file: Shift (gridatlas). - Signatures: `argv(flag)`; `git(repo, args)`; `bar(n, max, width = 28)`; `computes(path)`; `stamp(subject || '')`; `version(subject || '')`; `stripComments(text)`; `stampMinutes(s)`; `m(subject || '')`; `clockRule(run.results || [])`; `offCount(clockRule?.findings || [])`; `orderCount(clockRule?.findings || [])`; `failing(run.results || [])` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 19 estate files (script-call 19); used by 1; mentioned by 0 ### CI Deep Scan - File: gridatlas/tools/ci/202609012230-deep-scan.mjs (JavaScript, 455 lines) · role automation · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/ci/202609012230-deep-scan.mjs#L1-L455 - Page: https://code.globalgrid2050.com/explore-code/s/0623.html#f1 - Synopsis: A JavaScript module in the tools folder of GridAtlas that uses haversine. It is built from the flag step (`flag`), the value step (`value`) and the trace step (`trace`). - What it achieves (comment): Deep scan: origin to today, both applications, one understanding. - What it does: It loads data. Defines 8 functions or classes, including flag, value, trace, git, isCode. Uses libraries node:child_process, node:fs, node:path, node:url. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file 202609012230-deep-scan.json; command-line arguments. - Downstream impact: Used directly by 1 file: CI Estate Deep Scan (gridatlas). - Signatures: `flag(name)`; `value(name)`; `trace(message)`; `git(repo, args, { max = 256 } = {})`; `isCode(path)`; `familyOf(path)`; `seamsIn(text)`; `banners(text.match(/^\s*\/\*[\s\S]{0,4}[─=—-]{6,}/gm) || [])`; `functions(text.match(/^\s{0,4}(async\s+)?function\s+\w+/gm) || [])`; `consts(text.match(/^\s{0,2}const\s+[A-Z_]{3,}\s*=/gm) || [])`; `surfaces(text.match(/window\.__\w+__\s*=/g) || [])`; `scanFor(repoName, patterns, options = {})` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file 202609012230-deep-scan.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### CI Estate Deep Scan - File: gridatlas/tools/ci/202609012240-estate-deep-scan.mjs (JavaScript, 266 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/ci/202609012240-estate-deep-scan.mjs#L1-L266 - Page: https://code.globalgrid2050.com/explore-code/s/0624.html#f1 - Synopsis: A JavaScript module in the tools folder of GridAtlas that queries contract (`queryContract`), using SHA-256. - What it achieves (comment): It queries contract (`queryContract`) and is built from the arg step (`arg`) and the trace step (`trace`). Independent estate scanner: evidence first, screening claims labelled. - What it does: It loads data. Defines 9 functions or classes, including arg, trace, git, code, sha. Uses libraries node:child_process, node:fs, node:crypto, node:path, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; JSON file 202609012240-estate-deep-scan.json; command-line arguments. - Downstream impact: Used directly by 1 file: Estate Deep Scan Proof (gridatlas). - Signatures: `arg(name, fallback)`; `trace(text)`; `git(repo, args, max = 256)`; `code(path)`; `sha(text)`; `lineOf(text, offset)`; `evidence(repo, path, text, index, claim)`; `finding(severity, confidence, title, detail, items = [])`; `queryContract(repo, mode, { gridAtlasOnly = false } = {})` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file 202609012240-estate-deep-scan.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (script-call 1); used by 1; mentioned by 0 ### Reference Module F - File: gridatlas/tools/ci/lightning/fixtures/reference-module-F.js (JavaScript, 176 lines) · role automation · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/ci/lightning/fixtures/reference-module-F.js#L1-L176 - Page: https://code.globalgrid2050.com/explore-code/s/0624.html#f2 - Synopsis: A JavaScript file in the fixtures folder of GridAtlas that maps UK lightning, using SHA-256 and uses data from the lightning repository. - What it achieves (comment): UK-lightning-overlay. EUMETSAT MTG LI (L2-LFL) optical flashes, OFF by default, appended last to the Layers panel and fullscreen curtain; nothing requested before switch-on; never persisted. It responds to click and change events. - What it does: It maps UK lightning. Defines q. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: lightning data; GeoJSON file uk_lightning.geojson; JSON file index.json; form fields (user input). - Downstream impact: Used directly by 1 file: Overlay Engine Test (gridatlas). - Signatures: `NS(window.__GRIDATLAS_MODULES__=window.__GRIDATLAS_MODULES__||{})`; `sw(raw.scan_windows||[])`; `q(s)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: lightning data; GeoJSON file uk_lightning.geojson; JSON file index.json; form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Minidom - File: gridatlas/tools/ci/lightning/minidom.mjs (JavaScript, 84 lines) · role automation · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/ci/lightning/minidom.mjs#L1-L84 - Page: https://code.globalgrid2050.com/explore-code/s/0624.html#f3 - Synopsis: A JavaScript module in the lightning folder of GridAtlas that makes document (`makeDocument`). It matches one (`matchOne`) and makes document (`makeDocument`). - What it achieves (comment): Just enough DOM for the lightning overlay under node:vm (harness: self-fixture, SYNTHETIC shell). - What it does: It lists and searches its content. Defines 8 functions or classes, including kebab, Text, El, matchOne, matches. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 2 files: Overlay Engine Test (gridatlas); Overlay Offtakers Test (gridatlas). - Signatures: `export class Text`; `export class El`; `export dispatch(target, type, errors)`; `export makeDocument()`; `kebab(k)`; `constructor(tag, doc)`; `setAttribute(a, v)`; `hasAttribute(a)`; `appendChild(n)`; `insertBefore(n, ref)`; `removeChild(n)`; `remove()`; `contains(n)`; `closest(sel)`; `querySelectorAll(sel)`; `querySelector(sel)`; `addEventListener(t, f)`; `getBoundingClientRect()`; `matchOne(e, s)`; `matches(e, sel)`; `parse(html, root, doc)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Overlay Engine Test - File: gridatlas/tools/ci/lightning/overlay-engine.test.mjs (JavaScript, 2505 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/ci/lightning/overlay-engine.test.mjs#L1-L2505 - Page: https://code.globalgrid2050.com/explore-code/s/0625.html#f1 - Synopsis: A test in the lightning folder of GridAtlas that checks Minidom and Reference Module F, using SHA-256 and haversine. - What it achieves (name): It adds event listener (`addEventListener`), wraps fetch (`wrapFetch`) and dumps card (`dumpCard`). Defines `track`, `TResponse`, `iso` and 109 more. Its code works with 10 MW, 33 kV and 0 MW. It reads `/index.json`. - What it does: It tests the REPD register and solar. Defines 118 functions or classes, including track, TResponse, iso, ymd, enc. Uses libraries node:test, node:assert/strict, node:vm, node:fs, node:zlib. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, 33kV. - Inputs & outputs: In: GeoJSON file f.geojson; JSON file index.json; JSON file x.json; JSON file 05.json; JSON file 00.json; GeoJSON file uk_lightning.geojson; JSON file g.json; JSON file repd_master.json. Out: interactive map. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). Voltage levels named: 33kV. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `track(p)`; `class TResponse`; `iso(t)`; `ymd(t)`; `enc(o)`; `flash(t, id, coords = [-1.5, 52])`; `feed(features, ageH = 1, extra = {})`; `dayFile(date, features)`; `mkIndex(over = {}, top = {}, nowT = null)`; `boot({ index = null, feedFn = () => feed([flash(Date.now() - 2 * H, 'f1')]), files = {}, noGrid = false, lazy = false, par...)`; `tapMap(pt, hitsByLayer = {})`; `class XHR`; `fetch(url)`; `addEventListener(t, f)`; `click(el)`; `toggle(on)`; `cap(k)`; `fire(t)`; `release()`; `drain()`; `sha(b)`; `fresh()`; `p(d)`; `attrsWith(root, re)`; `shard(date, n, t0)` (and 15 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file f.geojson; JSON file index.json; JSON file x.json; JSON file 05.json; JSON file 00.json; GeoJSON file uk_lightning.geojson; JSON file g.json; JSON file repd_master.json]; out [interactive map]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [33kV] - Edges: uses 2 estate files (import 1, url-import-meta 1); used by 0; mentioned by 0 ### Overlay Latest Test - File: gridatlas/tools/ci/lightning/overlay-latest.test.mjs (JavaScript, 148 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/ci/lightning/overlay-latest.test.mjs#L1-L148 - Page: https://code.globalgrid2050.com/explore-code/s/0628.html#f2 - Synopsis: A test in the lightning folder of GridAtlas that uses SHA-256. It is built from the hours ago helper (`hoursAgo`), the feed step (`feed`) and the boot step (`boot`). - What it achieves (name): Defines `hoursAgo`, `stamp`, `flash` and 4 more. - What it does: It tests its inputs. Defines 7 functions or classes, including hoursAgo, stamp, flash, feed, boot. Uses libraries node:test, node:assert/strict, node:vm, node:fs. Side effects: changes the web page (DOM); reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file 26.json. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `hoursAgo(h)`; `stamp(h)`; `flash(h,id,coords=[-1.5,52])`; `feed(features,age=1)`; `boot({getFeed=()=>feed([flash(2,'one')]),getJson=()=>({ok:false,status:404})}={})`; `setLayoutProperty(id,key,value)`; `class XHR`; `open(method,url)`; `send()`; `drain()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file 26.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### CI Live Bytes Issue - File: gridatlas/tools/ci/live-bytes-issue.mjs (JavaScript, 192 lines) · role automation · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/ci/live-bytes-issue.mjs#L1-L192 - Page: https://code.globalgrid2050.com/explore-code/s/0629.html#f1 - Synopsis: A JavaScript module in the tools folder of GridAtlas using data from GitHub API. It reads report (`readReport`) and syncs issue (`syncIssue`). - What it achieves (comment): Open, refresh or close the one GitHub issue labelled "live-bytes" from the result of the live-bytes job (-verify-live.yml). - What it does: It fetches data. Defines 9 functions or classes, including argument, readReport, issueText, syncIssue, githubApi. Uses libraries node:fs, node:assert/strict, node:url. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: GitHub API; JSON file current.json; JSON file live-bytes.json; command-line arguments. - Downstream impact: Used directly by 1 file: GridAtlas Verify Live Workflow (gridatlas). - Signatures: `export readReport(file)`; `export issueText(report, { runUrl = '', now = new Date() } = {})`; `export syncIssue(api, { outcome, report, runUrl = '', now = new Date() })`; `export githubApi(repo, token, base = 'https:)`; `argument(argv, name, fallback)`; `call(method, path, payload)`; `openIssues(label)`; `ensureLabel(name, color, description)`; `fakeApi(seed = [])`; `create(title, body, label)`; `update(number, fields)`; `comment(number, body)`; `selfTest()`; `main(argv)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: GitHub API; JSON file current.json; JSON file live-bytes.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Browser DC Smoke - File: gridatlas/tools/ci/offtakers/browser-dc-smoke.mjs (JavaScript, 132 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/ci/offtakers/browser-dc-smoke.mjs#L1-L132 - Page: https://code.globalgrid2050.com/explore-code/s/0629.html#f2 - Synopsis: A JavaScript module in the offtakers folder of GridAtlas. It is built from the run step (`run`). - What it achieves (comment): Issue #73 real-Chromium screening smoke test for a draft preview. - What it does: It tests its inputs. Defines run. Uses libraries node:assert/strict, node:fs, node:path, node:http, node:url. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'dc'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `run(width,height)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Overlay Offtakers Test - File: gridatlas/tools/ci/offtakers/overlay-offtakers.test.mjs (JavaScript, 530 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/ci/offtakers/overlay-offtakers.test.mjs#L1-L530 - Page: https://code.globalgrid2050.com/explore-code/s/0629.html#f3 - Synopsis: A test in the tools folder of GridAtlas that checks Minidom and GridAtlas — Index Page, using SHA-256 and haversine. - What it achieves (name): It opens tab (`openTab`) and is built from the orig nearest helper (`origNearest`) and the kV of helper (`kvOf`). Defines `sha`, `hav`, `GSSRC` and 33 more. Its code works with 100 MW, 72 MW and 0 MW. It reads `atlas/releases/202608300453-atlas-v9/data/grid_substations.geojson`. - What it does: It tests the REPD register, solar, wind and battery storage (BESS). Defines 41 functions or classes, including sha, hav, GSSRC, GEO, origNearest. Uses libraries node:test, node:assert/strict, node:vm, node:fs, node:zlib. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, wind, battery storage (BESS), 400kV, 275kV. - Inputs & outputs: In: GeoJSON file grid_substations.geojson; GeoJSON file x.geojson. Voltage levels named: 400kV, 275kV, 132kV, 33kV. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `sha(b)`; `DREL(SRC.match(/DATA='https:\/\/ventusltd\.github\.io\/gridatlas\/(data\/offtakers_filtered_\d{12}\.geojson)'/) || [])`; `DCREL(SRC.match(/DCF='https:\/\/ventusltd\.github\.io\/gridatlas\/(data\/[\w.-]+)'/) || [])`; `RGEN(SRC.match(/repd_projects_(\d{12})\.parquet/) || [])`; `hav(lo1, la1, lo2, la2)`; `GSSRC(() => { const b = SLD.indexOf('if (NS.gridScope) return;'), a = SLD.lastIndexOf('(() => {', b), e = SLD.indexOf('})()...)`; `GEO(() => { const w = {}; vm.runInNewContext(GEOSRC, { window: w, Math, Number, Array, Object, Error }); return w.__GRIDA...)`; `origNearest(lon, lat, subs)`; `kvOf(v)`; `tick()`; `drain(n = 60)`; `boot({ tamper = false, lightning = false, neon = true, register = REG.features, duck = true, offtakers = true, srcOverride...)`; `src(id, o)`; `qrf()`; `tapMap(pt, hits = {})`; `class XHR`; `fetch(u, o)`; `class CE`; `group()`; `toggle(on)`; `ltoggle(on)`; `card()`; `dot(pred)`; `tapDot(r)`; `text(e)` (and 15 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_substations.geojson; GeoJSON file x.geojson]; out []; crs []; voltages [400kV, 275kV, 132kV, 33kV] - Edges: uses 2 estate files (import 1, estate-url 1); used by 0; mentioned by 0 ### CI PR Gate - File: gridatlas/tools/ci/pr-gate.mjs (JavaScript, 489 lines) · role automation · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/ci/pr-gate.mjs#L1-L489 - Page: https://code.globalgrid2050.com/explore-code/s/0630.html#f2 - Synopsis: A JavaScript module in the tools folder of GridAtlas that runs async (`runAsync`), using SHA-256. - What it achieves (comment): It is built from the record step (`record`), the run step (`run`) and the tail step (`tail`). The pull-request gate: every check that was run by hand before a cut, run by the runner on every PR to main. - What it does: It loads data. Defines 13 functions or classes, including record, run, tail, group, step. Uses libraries node:fs, node:os, node:path, node:child_process, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage field_execution (path word 'gate'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: JSON file current.json; command-line arguments. - Downstream impact: Used directly by 2 files: Map Promotion Rehearsal (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `record(name, ok, detail = '')`; `run(argv, opts = {})`; `tail(text, lines = 6)`; `group(title, fn)`; `step(name, argv)`; `baseHas(file)`; `check(indexRel, currentRel)`; `runAsync(argv, opts = {})`; `suites(fs.existsSync(suiteDir) ? fs.readdirSync(suiteDir).filter(f => f.endsWith('.test.mjs')).sort() : [])`; `min(head.match(/@gate-min-generation\s+(\d{12})\b/) || [])`; `overlayFile(g)`; `overlayGenerationOf(pointer)`; `own(pointer.cartridges || [])`; `sldEntry(pointer.cartridges || [])`; `pinned(fs.existsSync(vDir) ? fs.readdirSync(vDir) : [])`; `counts(r.stdout.match(/^)`; `offFile(g)`; `modOf(p, id, re)`; `add(o, l, why)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 15 estate files (script-call 15); used by 2; mentioned by 0 ### CI Unified Preservation Gate - File: gridatlas/tools/ci/unified-preservation-gate.py (Python, 69 lines) · role automation · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/ci/unified-preservation-gate.py#L1-L69 - Page: https://code.globalgrid2050.com/explore-code/s/0631.html#f1 - Synopsis: A Python command-line tool in the tools folder of GridAtlas covering unified authorised changes, using SHA-256. - What it achieves (comment): It is built from the git step (`git`), the paths step (`paths`) and the check step (`check`). V9.201 additive change gate. Run from a full Git checkout of the exact candidate. - What it does: Defines git, paths, check, workflows, main. Uses libraries json, subprocess, pathlib. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage field_execution (path word 'gate'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: JSON file unified-authorised-changes.json; JSON file current.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `git(root, *args)`; `paths(root, rev)`; `check(root, base, head, register)`; `workflows(items)`; `main()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file unified-authorised-changes.json; JSON file current.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Scan GridAtlas Versions - File: gridatlas/tools/history/scan_gridatlas_versions.py (Python, 211 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/history/scan_gridatlas_versions.py#L1-L211 - Page: https://code.globalgrid2050.com/explore-code/s/0631.html#f2 - Synopsis: A Python command-line tool in the history folder that scans repo (`scan_repo`). It is built from the run step (`run`). - What it achieves (comment): Bounded Git-history scanner for GridAtlas release and workflow pattern recognition. It accepts `--repo`, `--reference-repo` and `--output`. - What it does: It lists and searches its content. Defines run, scan_repo, main. Uses libraries __future__, argparse, json, os, re. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `run(repo: Path, args: list[str], deadline: float, *, allow_fail: bool = False)`; `scan_repo(repo: Path, deadline: float, *, include_parent_duplicate_check: bool)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Browser Test - File: gridatlas/tools/journey/browser.test.mjs (JavaScript, 152 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/journey/browser.test.mjs#L1-L152 - Page: https://code.globalgrid2050.com/explore-code/s/0631.html#f3 - Synopsis: A test in the journey folder of GridAtlas that checks Build and Serve, using SHA-256. - What it achieves (comment): Real native GridAtlas composer acceptance; local HTTP serves Git-published LF text bytes. - What it does: It tests its inputs. Uses libraries node:fs, node:path, node:os, node:assert/strict, node:crypto. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. README: "browser.test.mjs uses the actual Atlas composer and native MapLibre, with the local fixture composition generated by build.mjs (not committed or published by this source change)." - Inputs & outputs: In: JSON file receipt.json. Out: JSON file receipt.json; JSON file failure.json; interactive map; WebGL/WebGPU drawing. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file receipt.json]; out [JSON file receipt.json; JSON file failure.json; interactive map; WebGL/WebGPU drawing]; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Build Module - File: gridatlas/tools/journey/build-module.mjs (JavaScript, 13 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/journey/build-module.mjs#L1-L13 - Page: https://code.globalgrid2050.com/explore-code/s/0631.html#f4 - Synopsis: A JavaScript module in the journey folder of GridAtlas that uses SHA-256. It is built from the option step (`option`). - What it achieves (comment): Assemble the reusable Journey cartridge only; never writes compositions or pointers. - What it does: Defines option. Uses libraries node:fs, node:path, node:crypto. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Signatures: `option(name)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Build - File: gridatlas/tools/journey/build.mjs (JavaScript, 39 lines) · role storage · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/journey/build.mjs#L1-L39 - Page: https://code.globalgrid2050.com/explore-code/s/0631.html#f5 - Synopsis: A JavaScript module in the journey folder of GridAtlas that reads synthetic branch, using SHA-256. - What it achieves (comment): It is built from the read step (`read`), the hash step (`hash`) and the assemble step (`assemble`). Deterministic, pinned-source preview assembly. Never modifies a live pointer. It reads `tools/journey/fixtures/synthetic-branch.v1.json`. - What it does: It loads synthetic branch. Defines read, hash, assemble, build. Uses libraries node:fs, node:path, node:url, node:crypto, node:assert/strict. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. README: "assembleModule({generation}) from build.mjs returns {body,pin,fixture}" - Inputs & outputs: In: JSON file synthetic-branch.v1.json; JSON file current.json; command-line arguments. - Downstream impact: Used directly by 4 files: Browser Test (gridatlas); Serve (gridatlas); Cut Grid Explorer (gridatlas); Grid Explorer Proof (gridatlas). Reached from 11 other entry points, including GridAtlas Cartridge Proof Workflow (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas); Browser Test (gridatlas). - Signatures: `export assemble()`; `export build(check = false)`; `read(p)`; `hash(b)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file synthetic-branch.v1.json; JSON file current.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 4; mentioned by 0 ### Contract Test - File: gridatlas/tools/journey/contract.test.mjs (JavaScript, 30 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/journey/contract.test.mjs#L1-L30 - Page: https://code.globalgrid2050.com/explore-code/s/0631.html#f6 - Synopsis: A test in the journey folder of GridAtlas that uses SHA-256. - What it achieves (name): Defines `read`, `clone` and `make`. It reads `./fixtures/synthetic-branch.v1.json`. - What it does: It tests its inputs. Defines read, clone, make. Uses libraries node:assert/strict, node:fs, node:crypto. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file synthetic-branch.v1.json; JSON file reviewed-pair.v1.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `read(p)`; `clone(x)`; `make(f, chosenNode)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file synthetic-branch.v1.json; JSON file reviewed-pair.v1.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Controller Test - File: gridatlas/tools/journey/controller.test.mjs (JavaScript, 75 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/journey/controller.test.mjs#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0631.html#f7 - Synopsis: A test in the journey folder of GridAtlas that checks Controller and Bootstrap. It is built from the clone step (`clone`), the target class (`Target`) and the harness step (`harness`). - What it achieves (comment): Lifecycle negatives use a small DOM/map stub. It reads `./fixtures/synthetic-branch.v1.json`. - What it does: It tests the REPD register. Defines 8 functions or classes, including clone, Target, harness, E, all. Uses libraries node:test, node:assert/strict, node:fs, node:vm. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file synthetic-branch.v1.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `clone(x)`; `class Target`; `addEventListener(t,f)`; `removeEventListener(t,f)`; `emit(t,e={})`; `listeners()`; `harness({planner=planJourney,input=fixture,reduced=false,ready=true,layerHosts=false,layerReady=true}={})`; `class E`; `constructor(tag)`; `setAttribute(k,v)`; `appendChild(e)`; `replaceChildren()`; `remove()`; `focus()`; `all(e=container)`; `button(s)`; `choose()`; `settled(h)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file synthetic-branch.v1.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 1, url-import-meta 1); used by 1; mentioned by 0 ### GridAtlas — Journey - File: gridatlas/tools/journey/module.mjs (JavaScript, 40 lines) · role ingest · stage ingest - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/journey/module.mjs#L1-L40 - Page: https://code.globalgrid2050.com/explore-code/s/0631.html#f8 - Synopsis: A JavaScript module in the tools folder that reads vendor pin, reviewed pair and synthetic branch, using SHA-256. - What it achieves (comment): It is built from the read step (`read`), the hash step (`hash`) and the assemble module helper (`assembleModule`). Deterministic, pinned-source preview assembly. Never modifies a live pointer. It reads `tools/journey/vendor-pin.json`. - What it does: It loads vendor pin, reviewed pair and synthetic branch. Defines read, hash, assembleModule. Uses libraries node:fs, node:path, node:url, node:crypto, node:assert/strict. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file vendor-pin.json; JSON file reviewed-pair.v1.json; JSON file synthetic-branch.v1.json. - Downstream impact: Used directly by 2 files: Build Module (gridatlas); Build (gridatlas). Reached from 12 other entry points, including GridAtlas Cartridge Proof Workflow (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas); Browser Test (gridatlas). - Signatures: `export assembleModule({generation = G} = {})`; `read(p)`; `hash(b)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file vendor-pin.json; JSON file reviewed-pair.v1.json; JSON file synthetic-branch.v1.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Serve - File: gridatlas/tools/journey/serve.mjs (JavaScript, 20 lines) · role ingest · stage ingest - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/journey/serve.mjs#L1-L20 - Page: https://code.globalgrid2050.com/explore-code/s/0631.html#f9 - Synopsis: A JavaScript module in the journey folder of GridAtlas. It creates preview server (`createPreviewServer`). - What it achieves (comment): Read-only local preview server, serving the same LF text bytes as GitHub Pages. - What it does: It loads data. Defines createPreviewServer. Uses libraries node:fs, node:path, node:http, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 10 files: UKPN Paired Browser (gridatlas); UKPN Secondary Browser (gridatlas); Browser Test (gridatlas); Vicinity Entry Browser (gridatlas); and 6 more. Reached from 2 other entry points, including GridAtlas Cartridge Proof Workflow (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export createPreviewServer(port=0)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 10; mentioned by 0 ### Bootstrap - File: gridatlas/tools/journey/src/bootstrap.js (JavaScript, 20 lines) · role render · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/journey/src/bootstrap.js#L1-L20 - Page: https://code.globalgrid2050.com/explore-code/s/0631.html#f10 - Synopsis: A JavaScript file in the journey folder of GridAtlas. It is built from the mount step (`mount`) and the attach step (`attach`). - What it achieves (comment): Bounded public-map attachment. No private card closures, new map or network fetch. - What it does: It loads data. Defines mount, attach. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Controller Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `mount(map = window.__GRIDATLAS_V9_MAP__)`; `attach()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Controller - File: gridatlas/tools/journey/src/controller.mjs (JavaScript, 202 lines) · role render · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/journey/src/controller.mjs#L1-L202 - Page: https://code.globalgrid2050.com/explore-code/s/0632.html#f1 - Synopsis: A JavaScript module in the journey folder of GridAtlas that maps cables, using SHA-256. It creates journey controller (`createJourneyController`), removes map (`removeMap`) and writes cursor (`writeCursor`). - What it achieves (comment): Native MapLibre presentation only. The pinned engine owns evidence and traversal. It responds to change events. - What it does: It maps cables. Defines 26 functions or classes, including createJourneyController, empty, el, listen, isReduced. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: cables. - Downstream impact: Used directly by 1 file: Controller Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export createJourneyController({map, document: D, window: W, planner, fixture, css, generation})`; `empty()`; `el(tag, text, parent, attrs = {})`; `listen(e, type, fn)`; `isReduced()`; `report(s)`; `pauseMotion()`; `controlsState()`; `removeMap()`; `installMap()`; `writeCursor(coordinates)`; `lineFor(s)`; `frameRoute()`; `showStep(index)`; `advance()`; `resetPlan()`; `animate()`; `frame(now)`; `choose()`; `installLayerControls()`; `setOrigin(origin)`; `shut()`; `open(options)`; `realSelection(clearContext = true)`; `styleLoad()` (and 3 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Build - File: gridatlas/tools/lightning/build.mjs (JavaScript, 160 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/build.mjs#L1-L160 - Page: https://code.globalgrid2050.com/explore-code/s/0632.html#f2 - Synopsis: A JavaScript module in the lightning folder of GridAtlas that reads generations, using SHA-256. - What it achieves (comment): It reads generations (`readGenerations`) and is built from the sha256 step (`sha256`) and the module path helper (`modulePath`). Build the UK lightning overlay module (`atlas/modules/` `-uk-lightning-overlay.js`) from its readable source in `tools/lightning/src/`. - What it does: It loads generations. Defines 7 functions or classes, including sha256, modulePath, readGenerations, sourceFiles, assemble. Uses libraries node:fs, node:path, node:crypto, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file generations.json; command-line arguments. - Downstream impact: Used directly by 3 files: CI PR Gate (gridatlas); Make Generation (gridatlas); Build (gridatlas). Reached from 2 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Map Promotion Rehearsal (gridatlas). - Signatures: `export modulePath(gen)`; `export readGenerations(file = GENERATIONS)`; `export sourceFiles(srcDir = SRC_DIR)`; `export assemble({ variant, gen, variants, srcDir = SRC_DIR })`; `export newestModule()`; `export check()`; `sha256(buf)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file generations.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Annotations - File: gridatlas/tools/lightning/lineage/annotations.mjs (JavaScript, 279 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/lineage/annotations.mjs#L1-L279 - Page: https://code.globalgrid2050.com/explore-code/s/0632.html#f3 - Synopsis: A JavaScript module in the lineage folder of GridAtlas that fetches the Renewable Energy Planning Database (REPD) register and substations, using SHA-256. - What it achieves (comment): The source-only layer of `tools/lightning/src`: file sections and `///` comments, anchored to text in the M4 module ('A', variant layers) or, with in:'B', the M4b module (variant dots). Its code works with 33 kV. It responds to change events. - What it does: It fetches the REPD register and substations. Defines N. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, substations, 33kV. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Reconstruct (gridatlas). - Signatures: `N(at, text, opt = {})` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [33kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Build M - File: gridatlas/tools/lightning/lineage/build-M.mjs (JavaScript, 86 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/lineage/build-M.mjs#L1-L86 - Page: https://code.globalgrid2050.com/explore-code/s/0633.html#f1 - Synopsis: A JavaScript module in the lineage folder of GridAtlas that maps Renewable Energy Planning Database (REPD) master, the REPD register, substations and solar. - What it achieves (name): It is built from the all step (`all`). Defines `KEEP`, `fin`, `once` and 1 more. It reads `/dist/repd_master.json`. - What it does: It maps REPD master, the REPD register, substations and solar. Defines KEEP, fin, once, all, b. Uses libraries node:fs. Side effects: changes the web page (DOM); reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, substations, solar. - Inputs & outputs: In: JSON file repd_master.json; command-line arguments. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `KEEP(t)`; `fin(t)`; `once(from, to, n = 1)`; `all(from, to)`; `b(x)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file repd_master.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Build M2 - File: gridatlas/tools/lightning/lineage/build-M2.mjs (JavaScript, 39 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/lineage/build-M2.mjs#L1-L39 - Page: https://code.globalgrid2050.com/explore-code/s/0633.html#f2 - Synopsis: A JavaScript module in the lineage folder of GridAtlas that reads the Renewable Energy Planning Database (REPD) register and substations. - What it achieves (comment): It is built from the once step (`once`) and the cut step (`cut`). Cartridge gate 500,000 B, module cap 64,781 B). It responds to click events. - What it does: It loads the REPD register and substations. Defines once, cut. Uses libraries node:fs. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, substations. - Inputs & outputs: In: command-line arguments. - Signatures: `once(id, a, b)`; `cut(id, from, to, b)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (url-import-meta 1); used by 0; mentioned by 0 ### Build M3 - File: gridatlas/tools/lightning/lineage/build-M3.mjs (JavaScript, 53 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/lineage/build-M3.mjs#L1-L53 - Page: https://code.globalgrid2050.com/explore-code/s/0633.html#f3 - Synopsis: A JavaScript module in the lineage folder of GridAtlas that reads the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): It is built from the once step (`once`) and the cut step (`cut`). Build M2 module (, as published on main) -> M3 module. It responds to toggle and change events. - What it does: It loads the REPD register. Defines once, cut. Uses libraries node:fs. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: command-line arguments. - Signatures: `once(id, a, b)`; `cut(id, from, to, b)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 2 estate files (url-import-meta 2); used by 0; mentioned by 0 ### Build M4 - File: gridatlas/tools/lightning/lineage/build-M4.mjs (JavaScript, 35 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/lineage/build-M4.mjs#L1-L35 - Page: https://code.globalgrid2050.com/explore-code/s/0633.html#f4 - Synopsis: A JavaScript module in the lineage folder of GridAtlas that reads the Renewable Energy Planning Database (REPD) register. It is built from the once step (`once`). - What it achieves (comment): Build M3 module (, as on main) -> M4 module. - What it does: It loads the REPD register. Defines once. Uses libraries node:fs. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: command-line arguments. - Signatures: `once(id, a, b)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (url-import-meta 1); used by 0; mentioned by 0 ### Build M4b - File: gridatlas/tools/lightning/lineage/build-M4b.mjs (JavaScript, 60 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/lineage/build-M4b.mjs#L1-L60 - Page: https://code.globalgrid2050.com/explore-code/s/0633.html#f5 - Synopsis: A JavaScript module in the lineage folder of GridAtlas that maps the Renewable Energy Planning Database (REPD) register, solar, wind and battery storage (BESS). - What it achieves (comment): It is built from the once step (`once`) and the cut step (`cut`). M4 module -> M4b module (owner option). It responds to change events. - What it does: It maps the REPD register, solar, wind and battery storage (BESS). Defines once, cut. Uses libraries node:fs. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, wind, battery storage (BESS). - Inputs & outputs: In: command-line arguments. - Signatures: `once(id, a, b)`; `cut(id, from, to, b)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Const2let - File: gridatlas/tools/lightning/lineage/const2let.mjs (JavaScript, 42 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/lineage/const2let.mjs#L1-L42 - Page: https://code.globalgrid2050.com/explore-code/s/0633.html#f6 - Synopsis: A JavaScript module in the lineage folder of GridAtlas. It is built from the const2let step (`const2let`). - What it achieves (comment): Rewrite `const` declarations as `let` (2 bytes each) after proving, with scope resolution, that no binding a declaration creates is ever the target of an assignment, update or for-in/of head. - What it does: It calculates its inputs. Defines const2let. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Build M (gridatlas). - Signatures: `export const2let(src, keep = () => false)`; `names(p, out)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Fixes M4 - File: gridatlas/tools/lightning/lineage/fixes-m4.mjs (JavaScript, 17 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/lineage/fixes-m4.mjs#L1-L17 - Page: https://code.globalgrid2050.com/explore-code/s/0633.html#f7 - Synopsis: A JavaScript module in the lineage folder of GridAtlas. It is built from the fixes step (`fixes`). - What it achieves (comment): Review fixes folded into M4 (called by `build-M4.mjs` with its exact-once `once`). - What it does: It calculates its inputs. Defines fixes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Build M4 (gridatlas). - Signatures: `export fixes(once)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Layers M3 Part - File: gridatlas/tools/lightning/lineage/layers-m3.part.js (JavaScript, 14 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/lineage/layers-m3.part.js#L1-L14 - Page: https://code.globalgrid2050.com/explore-code/s/0633.html#f8 - Synopsis: A JavaScript file in the lineage folder of GridAtlas covering the Renewable Energy Planning Database (REPD) register, solar, wind and battery storage (BESS). - What it achieves (comment): M3: the REPD map layers of the listed projects --------------------------------------------------------------- The owner (28 Oct 2026, 21:39 UTC): "auto activate the REPD layers of the targeted 10 nearest projects". - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, wind, battery storage (BESS). - Downstream impact: Used directly by 1 file: Build M3 (gridatlas). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Make Generation M4 - File: gridatlas/tools/lightning/lineage/make-generation-M4.mjs (JavaScript, 281 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/lineage/make-generation-M4.mjs#L1-L281 - Page: https://code.globalgrid2050.com/explore-code/s/0633.html#f9 - Synopsis: A JavaScript module in the lineage folder of GridAtlas that reads composition, Renewable Energy Planning Database (REPD) publication q1 and the REPD register, using SHA-256. - What it achieves (comment): It reads buf (`readBuf`), reads text (`readText`) and derives composition (`deriveComposition`). `make-generation.mjs` -- cut a NEW immutable candidate generation of the UK lightning implant (issue #32 §8 Step F, §12 E). Its code works with 0 MW. It reads `atlas/current.json`. - What it does: It loads composition, REPD publication q1 and the REPD register. Defines 12 functions or classes, including die, need, R, readBuf, readText. Uses libraries node:fs, node:path, node:crypto. Side effects: reads or writes files; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'generation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file current.json; JSON file -composition.json; JSON file current-v5.json; JSON file live-set.json; CSV file REPD_publication_Q1_2026.csv; command-line arguments. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `die(msg)`; `need(ok, msg)`; `R(p)`; `readBuf(p)`; `readText(p)`; `sha(buf)`; `shaLF(buf)`; `json(obj)`; `countOf(hay, needle)`; `versionNum(v)`; `deriveComposition(src, prefix, kind)`; `write(p, data)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file -composition.json; JSON file current-v5.json; JSON file live-set.json; CSV file REPD_publication_Q1_2026.csv; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Reconstruct - File: gridatlas/tools/lightning/lineage/reconstruct.mjs (JavaScript, 257 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/lineage/reconstruct.mjs#L1-L257 - Page: https://code.globalgrid2050.com/explore-code/s/0634.html#f1 - Synopsis: A JavaScript module in the lineage folder of GridAtlas that works with line diff (`lineDiff`) and line start (`lineStart`). - What it achieves (comment): It is built from the norm step (`norm`), the analyse step (`analyse`) and the depth step (`depth`). `reconstruct.mjs` (CD-source lane, 29 Oct 2026, one-off; kept as the provenance of `tools/lightning/src`): the committed M4 and M4b module bytes -> `tools/lightning/src/*.js` (readable layout, the comments of `annotations.mjs`, ///#if variant blocks from a token-level diff of the two modules). - What it does: It loads data. Defines 20 functions or classes, including rd, norm, analyse, depth, inTpl. Uses libraries node:fs, node:os, node:path, acorn. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Signatures: `rd(g)`; `norm(t, g)`; `analyse(T)`; `depth()`; `inTpl()`; `lineDiff(a, b)`; `off(ls)`; `segments()`; `P(I, s, e)`; `posA(i)`; `ws(c)`; `lineStart(T, p)`; `lineEnd(T, p)`; `pieces(I, s, e, extra)`; `lead(T.slice(ls).match(/^ */) || [''])`; `ind(q)`; `render()`; `place(units)`; `at(u, o, p)`; `find(needle, where)`; `firstDiff(x, y)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Renewable Energy Planning Database (REPD) M2 Part - File: gridatlas/tools/lightning/lineage/repd-m2.part.js (JavaScript, 82 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/lineage/repd-m2.part.js#L1-L82 - Page: https://code.globalgrid2050.com/explore-code/s/0634.html#f2 - Synopsis: A JavaScript file in the lineage folder of GridAtlas that maps REPD master, the REPD register, solar and wind. - What it achieves (comment): REPD projects near a tap (M2) ---------------------------------------------------------------------------------- The register the map already holds (the engine's src-REPD data when a REPD layer has loaded it, else the engine URL `/dist/repd_master.json` through the untouched bridge). Its code works with 0 MW. It responds to click events. - What it does: It maps REPD master, the REPD register, solar and wind. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, wind. - Inputs & outputs: In: JSON file repd_master.json; DuckDB queries. - Downstream impact: Used directly by 1 file: Build M2 (gridatlas). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file repd_master.json; DuckDB queries]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Renewable Energy Planning Database (REPD) M3 Part - File: gridatlas/tools/lightning/lineage/repd-m3.part.js (JavaScript, 100 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/lineage/repd-m3.part.js#L1-L100 - Page: https://code.globalgrid2050.com/explore-code/s/0634.html#f3 - Synopsis: A JavaScript file in the lineage folder of GridAtlas that maps REPD master, the REPD register, solar and wind. - What it achieves (comment): REPD projects near a tap (M2, M3) -------------------------------------------------------------------------------- The register the map already holds (the engine's src-REPD data when a REPD layer has loaded it, else the engine URL `/dist/repd_master.json` through the untouched bridge). Its code works with 0 MW. It responds to click events. - What it does: It maps REPD master, the REPD register, solar and wind. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, wind. - Inputs & outputs: In: JSON file repd_master.json; DuckDB queries. - Downstream impact: Used directly by 1 file: Build M3 (gridatlas). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file repd_master.json; DuckDB queries]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Verify Lineage - File: gridatlas/tools/lightning/lineage/verify-lineage.mjs (JavaScript, 37 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/lineage/verify-lineage.mjs#L1-L37 - Page: https://code.globalgrid2050.com/explore-code/s/0634.html#f4 - Synopsis: A JavaScript module in the lightning folder of GridAtlas that reads the Renewable Energy Planning Database (REPD) register. - What it achieves (name): Its name says it verifies lineage. Defines `mod`. - What it does: It loads the REPD register. Defines mod. Uses libraries node:fs, node:os, node:path, node:child_process, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `mod(g)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Make Generation - File: gridatlas/tools/lightning/make-generation.mjs (JavaScript, 202 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/make-generation.mjs#L1-L202 - Page: https://code.globalgrid2050.com/explore-code/s/0634.html#f5 - Synopsis: A JavaScript module in the lightning folder of GridAtlas that reads composition, using SHA-256. It reads buf (`readBuf`) and reads text (`readText`). - What it achieves (comment): Cut a NEW immutable candidate generation of the UK lightning overlay from `tools/lightning/src`. It reads `atlas/current.json`. - What it does: It loads composition. Defines 12 functions or classes, including die, need, R, readBuf, readText. Uses libraries node:fs, node:path, node:crypto, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'generation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; JSON file -composition.json; command-line arguments. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `die(msg)`; `need(ok, msg)`; `R(p)`; `readBuf(p)`; `readText(p)`; `sha(buf)`; `shaLF(buf)`; `json(obj)`; `countOf(hay, needle)`; `files(g)`; `derive(src, prefix, kind)`; `write(p, data)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file -composition.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### 00 Header - File: gridatlas/tools/lightning/src/00-header.js (JavaScript, 64 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/00-header.js#L1-L64 - Page: https://code.globalgrid2050.com/explore-code/s/0635.html#f1 - Synopsis: A JavaScript file in the lightning folder of GridAtlas covering UK lightning and the Renewable Energy Planning Database (REPD) register, and uses data from the lightning repository. - What it achieves (comment): UK-lightning-overlay, generation @@GEN@@ . EUMETSAT MTG LI L2-LFL optical flashes, OFF by default, never persisted; NOT confirmed ground strikes; unsearched is unknown, never zero. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 01 Helpers - File: gridatlas/tools/lightning/src/01-helpers.js (JavaScript, 63 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/01-helpers.js#L1-L63 - Page: https://code.globalgrid2050.com/explore-code/s/0635.html#f2 - Synopsis: A JavaScript file in the lightning folder of GridAtlas. - What it achieves (comment): Date and number formatting, GeoJSON guards, the device cap, month arithmetic and the published state S. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 02 Transport - File: gridatlas/tools/lightning/src/02-transport.js (JavaScript, 39 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/02-transport.js#L1-L39 - Page: https://code.globalgrid2050.com/explore-code/s/0635.html#f3 - Synopsis: A JavaScript file in the lightning folder of GridAtlas. - What it achieves (comment): Fetch for .JSON (no redirects, 15 s timeout that also covers the body), XMLHttpRequest for the live feed, and the LRU of day/grid promises. - What it does: It fetches data. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 03 Index - File: gridatlas/tools/lightning/src/03-index.js (JavaScript, 81 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/03-index.js#L1-L81 - Page: https://code.globalgrid2050.com/explore-code/s/0635.html#f4 - Synopsis: A JavaScript file in the lightning folder of GridAtlas. - What it achieves (comment): 03 archive index v2 (Ventusltd/lightning `data/history/index.json`): every row validated; coverage from `scan_windows`. - What it does: It lists and searches its content. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file index.json. - Signatures: `sw(raw.scan_windows||[])` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file index.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 04 Windows - File: gridatlas/tools/lightning/src/04-windows.js (JavaScript, 49 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/04-windows.js#L1-L49 - Page: https://code.globalgrid2050.com/explore-code/s/0635.html#f5 - Synopsis: A JavaScript file in the lightning folder of GridAtlas that uses SHA-256. - What it achieves (comment): 04 windows and day files: UTC, end-anchored [start,end) windows; hourly or daily shard targets; a 4-wide fan-out. - What it does: It lists and searches its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 05 Cells - File: gridatlas/tools/lightning/src/05-cells.js (JavaScript, 75 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/05-cells.js#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0635.html#f6 - Synopsis: A JavaScript file in the lightning folder of GridAtlas covering the Renewable Energy Planning Database (REPD) register, using SHA-256. - What it achieves (comment): 05 flashes and cells: feature validation and de-duplication, month grids, the REPD land mask, the cell layer data. - What it does: It lists and searches the REPD register. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 06 Load - File: gridatlas/tools/lightning/src/06-load.js (JavaScript, 61 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/06-load.js#L1-L61 - Page: https://code.globalgrid2050.com/explore-code/s/0635.html#f7 - Synopsis: A JavaScript file in the lightning folder of GridAtlas that uses SHA-256. - What it achieves (comment): 06 tiers: the live feed (7 days only), the archive overview (cells), the archive detail (points, budgeted). - What it does: It lists and searches its content. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 07 Captions - File: gridatlas/tools/lightning/src/07-captions.js (JavaScript, 84 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/07-captions.js#L1-L84 - Page: https://code.globalgrid2050.com/explore-code/s/0635.html#f8 - Synopsis: A JavaScript file in the lightning folder of GridAtlas covering the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): 07 state and captions: the state machine (cf) and the caption lines (cp). - What it does: It lists and searches the REPD register. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Signatures: `ub(r.rows||[])` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 08 Map - File: gridatlas/tools/lightning/src/08-map.js (JavaScript, 176 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/08-map.js#L1-L176 - Page: https://code.globalgrid2050.com/explore-code/s/0635.html#f9 - Synopsis: A JavaScript file in the lightning folder of GridAtlas that maps the Renewable Energy Planning Database (REPD) register and substations. - What it achieves (comment): The map handle, the card position, the cell layers, the point layers and the tap handler. - What it does: It maps the REPD register and substations. Defines go. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, substations. - Signatures: `go(z)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 09 Card - File: gridatlas/tools/lightning/src/09-card.js (JavaScript, 99 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/09-card.js#L1-L99 - Page: https://code.globalgrid2050.com/explore-code/s/0636.html#f1 - Synopsis: A JavaScript file in the lightning folder of GridAtlas that works with the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): The docked card (flash, cell or REPD project), the cell card and the short flash ID. It responds to click and toggle events. - What it does: It calculates the REPD register. Defines T. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: Coordinate systems named: WGS84 / EPSG:4326. - Signatures: `T()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 10 Neon - File: gridatlas/tools/lightning/src/10-neon.js (JavaScript, 177 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/10-neon.js#L1-L177 - Page: https://code.globalgrid2050.com/explore-code/s/0636.html#f2 - Synopsis: A JavaScript file in the lightning folder of GridAtlas that maps substations and the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): 10 nearest substations and the camera: the original's own measure drawn as its neon arrival in Lightning-owned layers, and the framing rules (M2R-layout F1-F3, M2R-camera fix C, M2R-taps T1). Its code works with 33 kV. - What it does: It maps substations and the REPD register. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, the REPD register, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 11 Renewable Energy Planning Database (REPD) Map - File: gridatlas/tools/lightning/src/11-repd-map.js (JavaScript, 61 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/11-repd-map.js#L1-L61 - Page: https://code.globalgrid2050.com/explore-code/s/0636.html#f3 - Synopsis: A JavaScript file in the lightning folder of GridAtlas that maps the REPD register, solar, wind and battery storage (BESS). - What it achieves (comment): M4b: the listed REPD sites, drawn in the original REPD style ---------------------------------------------------- One dot per listed project at its site, with the engine's own paint (`ventus-corev8engine.js`:1305-1337). - What it does: It maps the REPD register, solar, wind and battery storage (BESS). Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, wind, battery storage (BESS). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 11b Renewable Energy Planning Database (REPD) Records - File: gridatlas/tools/lightning/src/11b-repd-records.js (JavaScript, 73 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/11b-repd-records.js#L1-L73 - Page: https://code.globalgrid2050.com/explore-code/s/0636.html#f4 - Synopsis: A JavaScript file in the lightning folder of GridAtlas that reads REPD projects, the REPD register, postcodes and substations, using SHA-256. - What it achieves (comment): 11b M5: the full REPD record of a listed project (owner, 29 Oct 2026 02:21 UTC: "list all 10 sites, their names and distances and full addresses as per REPD following the pattern from the grid engine"). Its code works with 400 kV. It responds to click events. - What it does: It loads REPD projects, the REPD register, postcodes and substations. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, postcodes, substations, 400kV. - Inputs & outputs: In: Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; DuckDB queries. Voltage levels named: 400kV. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; DuckDB queries]; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 12 Renewable Energy Planning Database (REPD) - File: gridatlas/tools/lightning/src/12-repd.js (JavaScript, 209 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/12-repd.js#L1-L209 - Page: https://code.globalgrid2050.com/explore-code/s/0636.html#f5 - Synopsis: A JavaScript file in the lightning folder of GridAtlas that maps REPD master, the REPD register, solar and wind. - What it achieves (comment): REPD projects near a tap (M2, M3) -------------------------------------------------------------------------------- The register the map already holds (the engine's src-REPD data when a REPD layer has loaded it, else the engine URL `/dist/repd_master.json` through the untouched bridge). Its code works with 0 MW. It responds to click events. - What it does: It maps REPD master, the REPD register, solar and wind. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, wind. - Inputs & outputs: In: JSON file repd_master.json; DuckDB queries. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file repd_master.json; DuckDB queries]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 14 Actions - File: gridatlas/tools/lightning/src/14-actions.js (JavaScript, 124 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/14-actions.js#L1-L124 - Page: https://code.globalgrid2050.com/explore-code/s/0637.html#f1 - Synopsis: A JavaScript file in the lightning folder of GridAtlas. - What it achieves (comment): Period, navigation, load, the ON/OFF switch, the toggle binding and the HIDE LAYERS clearance. It responds to change events. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 15 Install - File: gridatlas/tools/lightning/src/15-install.js (JavaScript, 32 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/lightning/src/15-install.js#L1-L32 - Page: https://code.globalgrid2050.com/explore-code/s/0637.html#f2 - Synopsis: A JavaScript file in the lightning folder of GridAtlas. - What it achieves (comment): After the menu bar, Pipeline News and the map exist; the public NS.ukLightning surface. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch NESO Connection Sites - File: gridatlas/tools/offshore/fetch_neso_connection_sites.py (Python, 337 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/offshore/fetch_neso_connection_sites.py#L1-L337 - Page: https://code.globalgrid2050.com/explore-code/s/0637.html#f3 - Synopsis: A Python command-line tool in the offshore folder of GridAtlas that fetches Renewable Energy Planning Database (REPD) browser registry, grid substations and NESO connection sites lean from NESO data portal. - What it achieves (comment): It is built from the normalise step (`normalise`), the fetch step (`fetch`) and the substation names helper (`substation_names`). Bind every register project to the substation NESO says it connects at. Its code works with 182 MW, 183.6 MW and 480 MW. It accepts `--apply` and `--limit`. - What it does: It fetches REPD browser registry, grid substations, NESO connection sites lean and the REPD register. Defines normalise, fetch, substation_names, site_key, main. Uses libraries __future__, argparse, datetime, json, re. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'neso'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, 400kV. - Inputs & outputs: In: data source: NESO data portal; JSON file repd_browser_registry_202608290716.json; GeoJSON file grid_substations.geojson; JSON file neso-connection-sites.json; JSON file neso-connection-sites.lean.json; command-line arguments. Voltage levels named: 400kV. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `normalise(value: str)`; `fetch(resource_id: str, limit: int = 5000)`; `substation_names()`; `site_key(site: str)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: NESO data portal; JSON file repd_browser_registry_202608290716.json; GeoJSON file grid_substations.geojson; JSON file neso-connection-sites.json; JSON file neso-connection-sites.lean.json; command-line arguments]; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Reconcile Offshore Coordinates - File: gridatlas/tools/offshore/reconcile_offshore_coordinates.py (Python, 759 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/offshore/reconcile_offshore_coordinates.py#L1-L759 - Page: https://code.globalgrid2050.com/explore-code/s/0638.html#f1 - Synopsis: A Python command-line tool in the tools folder of GridAtlas that fetches Renewable Energy Planning Database (REPD) browser registry and crown estate wind sites, using EPSG:4326 and Helmert from postcodes.io. - What it achieves (comment): It fetches layer (`fetch_layer`) and loads registry (`load_registry`). Give every unlocated REPD row a coordinate, or say plainly why it has none. Its code works with 2907 MW, 1008 MW and 1000 MW. It accepts `--out`, `--offline` and `--check`. - What it does: It fetches REPD browser registry, crown estate wind sites, crown estate scotland wind sites and the REPD register. Defines 11 functions or classes, including point_on_surface, shoelace, osgb36_en_to_wgs84, haversine_km, fetch_layer. Uses libraries __future__, argparse, datetime, json, math. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. README: "Offshore coordinates are reconciled by `tools/offshore/reconcile_offshore_coordinates.py`, run annually and on demand by `.github/workflows/offshore-coordinate-reconcile.yml`, writing `atlas/data/offshore-coordinates.json`." - Inputs & outputs: In: data source: postcodes.io; JSON file repd_browser_registry_202608290716.json; JSON file offshore-coordinates.json; GeoJSON file crown-estate-wind-sites.geojson; GeoJSON file crown-estate-scotland-wind-sites.geojson; command-line arguments. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `point_on_surface(geometry: dict)`; `shoelace(ring: list)`; `osgb36_en_to_wgs84(easting: float, northing: float)`; `haversine_km(a: tuple[float, float], b: tuple[float, float])`; `fetch_layer(filename: str, spec: dict, offline: bool)`; `repair(text: str)`; `load_registry()`; `unlocated(records: list[dict])`; `build(offline: bool)`; `sanity(report: dict)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: postcodes.io; JSON file repd_browser_registry_202608290716.json; JSON file offshore-coordinates.json; GeoJSON file crown-estate-wind-sites.geojson; GeoJSON file crown-estate-scotland-wind-sites.geojson; command-line arguments]; out []; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Build - File: gridatlas/tools/offtakers/build.mjs (JavaScript, 77 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/offtakers/build.mjs#L1-L77 - Page: https://code.globalgrid2050.com/explore-code/s/0639.html#f2 - Synopsis: A JavaScript module in the offtakers folder of GridAtlas that reads generations and vicinity delta, using SHA-256. - What it achieves (comment): It is built from the sha256 step (`sha256`), the module path helper (`modulePath`) and the build step (`build`). Build the potential-offtakers overlay module (`atlas/modules/` `-uk-offtakers-overlay.js`) from its readable source in `tools/offtakers/src/`, with the same deterministic text transform as the lightning overlay (`tools/lightning/build.mjs` `assemble`: files concatenated in name order, `///` source-only lines dropped, `///` line continuations joined, `@@GEN@@` stamped). - What it does: It loads generations and vicinity delta. Defines sha256, modulePath, build, check. Uses libraries node:fs, node:path, node:crypto, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file generations.json; JSON file 202611222000-vicinity-delta.json; command-line arguments. - Downstream impact: Used directly by 2 files: CI PR Gate (gridatlas); Offtakers Cartridge (gridatlas). Reached from 2 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Map Promotion Rehearsal (gridatlas). - Signatures: `export modulePath(gen)`; `export build(gen)`; `export check()`; `sha256(b)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file generations.json; JSON file 202611222000-vicinity-delta.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Ot Filter - File: gridatlas/tools/offtakers/filter/ot_filter.py (Python, 693 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/offtakers/filter/ot_filter.py#L1-L693 - Page: https://code.globalgrid2050.com/explore-code/s/0639.html#f3 - Synopsis: A Python command-line tool in the offtakers folder of GridAtlas that reads heavy emitters UK, industrial offtakers, datacentres and power plants, using SHA-256 from the GlobalGrid2050 repository. - What it achieves (comment): It loads NAEI (`load_naei`), loads GeoJSON (`load_geojson`) and loads gppd (`load_gppd`). Potential-offtakers filter (lane OT-filter), 29 Oct 2026. It accepts `--data`, `--out` and `--dukes`. - What it does: It loads heavy emitters UK, industrial offtakers, datacentres and power plants. Defines 26 functions or classes, including sha256, hav_km, in_bbox, norm, tokens. Uses libraries argparse, csv, hashlib, json, math. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: globalgrid2050 data; JSON file heavy_emitters_uk.json; JSON file manifest_heavy_emitters.json; GeoJSON file industrial_offtakers.geojson; GeoJSON file datacentres.geojson; GeoJSON file power_plants.geojson; CSV file gppd.csv; CSV file status_curated.csv. Out: JSON file excluded_counts.json. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `sha256(path)`; `hav_km(a, b)`; `in_bbox(c)`; `norm(s)`; `tokens(s)`; `unknown(s)`; `band(t)`; `power_subclass(name, operator, t)`; `load_naei(path)`; `load_geojson(path, src)`; `load_gppd(path)`; `load_status(path)`; `load_dukes(path)`; `load_tec(path)`; `classify_naei(r)`; `btm_flag(cls, sub, s_lower, t, sources)`; `nation(country, lon, lat)`; `main()`; `L(*x)`; `status_of(name)`; `opkey(o)`; `sitetok(n)`; `merge_into_B(rec, src_label, dist_km=2.5)`; `size_metric(s)`; `licence_for(s)` (and 1 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: globalgrid2050 data; JSON file heavy_emitters_uk.json; JSON file manifest_heavy_emitters.json; GeoJSON file industrial_offtakers.geojson; GeoJSON file datacentres.geojson; GeoJSON file power_plants.geojson; CSV file gppd.csv; CSV file status_curated.csv]; out [JSON file excluded_counts.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 00 Header - File: gridatlas/tools/offtakers/src/00-header.js (JavaScript, 4 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/offtakers/src/00-header.js#L1-L4 - Page: https://code.globalgrid2050.com/explore-code/s/0640.html#f2 - Synopsis: A JavaScript file in the offtakers folder of GridAtlas covering the Renewable Energy Planning Database (REPD) register and substations. - What it achieves (comment): UK-offtakers-overlay, generation @@GEN@@ . Potential offtakers: sites listed in open registers (National Atmospheric Emissions Inventory (NAEI) 2023 point sources, GPPD) and OpenStreetMap, classified by the OT-filter rules (energy-intensive industry, power stations incl. closed and closing, data centres, large water works, other large users). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, substations. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 01 Data - File: gridatlas/tools/offtakers/src/01-data.js (JavaScript, 99 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/offtakers/src/01-data.js#L1-L99 - Page: https://code.globalgrid2050.com/explore-code/s/0640.html#f3 - Synopsis: A JavaScript file in the offtakers folder of GridAtlas that draws offtakers filtered, UK datacentre pipeline, conventional power UK and the Renewable Energy Planning Database (REPD) register, using SHA-256. - What it does: It draws offtakers filtered, UK datacentre pipeline, conventional power UK and the REPD register. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: GeoJSON file offtakers_filtered_202610292000.geojson; GeoJSON file uk_datacentre_pipeline_202610312133.geojson; GeoJSON file conventional_power_uk_202610292000.geojson. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoJSON file offtakers_filtered_202610292000.geojson; GeoJSON file uk_datacentre_pipeline_202610312133.geojson; GeoJSON file conventional_power_uk_202610292000.geojson]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 02 Map Neon - File: gridatlas/tools/offtakers/src/02-map-neon.js (JavaScript, 45 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/offtakers/src/02-map-neon.js#L1-L45 - Page: https://code.globalgrid2050.com/explore-code/s/0640.html#f4 - Synopsis: A JavaScript file in the offtakers folder of GridAtlas. - What it achieves (comment): Map layers (added on the first switch-on only) ---- the class chips and, for power stations, the status chips; a ring (closed, closing or converted) is hollow. - What it does: It maps its content. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 03 Renewable Energy Planning Database (REPD) Register - File: gridatlas/tools/offtakers/src/03-repd-register.js (JavaScript, 13 lines) · role energy-data · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/offtakers/src/03-repd-register.js#L1-L13 - Page: https://code.globalgrid2050.com/explore-code/s/0640.html#f5 - Synopsis: A JavaScript file in the offtakers folder of GridAtlas covering REPD master, solar, wind and battery storage (BESS). - What it achieves (comment): REPD register (the map's own, as M2+). - What it does: It lists and searches REPD master, solar, wind and battery storage (BESS). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar, wind, battery storage (BESS). - Inputs & outputs: In: JSON file repd_master.json. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file repd_master.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 04 Renewable Energy Planning Database (REPD) Record M5 - File: gridatlas/tools/offtakers/src/04-repd-record-m5.js (JavaScript, 29 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/offtakers/src/04-repd-record-m5.js#L1-L29 - Page: https://code.globalgrid2050.com/explore-code/s/0640.html#f6 - Synopsis: A JavaScript file in the offtakers folder of GridAtlas that reads REPD projects and the REPD register, using SHA-256. - What it achieves (comment): 04 the full REPD record of a listed project: M5-build's exact join (RU..RpB), copied byte for byte from the built M5 module (`evidence/M5-build/tools/build-M5.mjs`; `tests/offtakers.test`.mjs T8 compares it with M5_MODULE). - What it does: It loads REPD projects and the REPD register. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: Parquet file repd_projects_202611132345.parquet; JSON file repd_v9_manifest_202611132345.json. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [Parquet file repd_projects_202611132345.parquet; JSON file repd_v9_manifest_202611132345.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 05 Card Camera - File: gridatlas/tools/offtakers/src/05-card-camera.js (JavaScript, 27 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/offtakers/src/05-card-camera.js#L1-L27 - Page: https://code.globalgrid2050.com/explore-code/s/0640.html#f7 - Synopsis: A JavaScript file in the offtakers folder of GridAtlas covering the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): The card (lightning's dock, width, collapse; Escape closes). It responds to click, toggle and keydown events. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 06 Tap Card - File: gridatlas/tools/offtakers/src/06-tap-card.js (JavaScript, 88 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/offtakers/src/06-tap-card.js#L1-L88 - Page: https://code.globalgrid2050.com/explore-code/s/0640.html#f8 - Synopsis: A JavaScript file in the offtakers folder of GridAtlas that lists and searches the Renewable Energy Planning Database (REPD) register and substations. - What it achieves (comment): A tap on a site. It responds to click and keydown events. - What it does: It lists and searches the REPD register and substations. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, substations. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 06b DC Engine - File: gridatlas/tools/offtakers/src/06b-dc-engine.js (JavaScript, 167 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/offtakers/src/06b-dc-engine.js#L1-L167 - Page: https://code.globalgrid2050.com/explore-code/s/0640.html#f9 - Synopsis: A JavaScript file in the offtakers folder of GridAtlas that maps substations, the Renewable Energy Planning Database (REPD) register, 33kV and cables. - What it achieves (comment): The original is still called on every tap: its 5 must be the head of the scope's list (else noted in S.errors), and it names the nearest beyond 40 km when none is within. Its code works with 33 kV, 132 kV and 275 kV. It responds to click and keydown events. - What it does: It maps substations, the REPD register, 33kV and cables. Defines D. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'dc'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations, the REPD register, 33kV, cables, 275kV, 132kV. - Inputs & outputs: Voltage levels named: 275kV, 132kV, 66kV, 33kV. - Signatures: `D(v,q)`; `n(c.k||[])`; `ps(c.P||[])` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [275kV, 132kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Shift - File: gridatlas/tools/overnight/202609012200-shift.mjs (JavaScript, 329 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/overnight/202609012200-shift.mjs#L1-L329 - Page: https://code.globalgrid2050.com/explore-code/s/0641.html#f1 - Synopsis: A JavaScript module in the overnight folder of GridAtlas that fetches shift log, using SHA-256 from GitHub API. - What it achieves (comment): It is built from the flag step (`flag`), the opt step (`opt`) and the utc now helper (`utcNow`). The night shift: one queued step per invocation, cut on this laptop, proven here, pushed to GitHub, verified live. It reads `atlas/current.json`. - What it does: It fetches shift log. Defines 17 functions or classes, including flag, opt, utcNow, sha256, lf. Uses libraries node:fs, node:path, node:child_process, node:crypto, node:url. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: GitHub API; JSON file shift-log.json; JSON file current.json; command-line arguments. - Signatures: `flag(name)`; `opt(name)`; `utcNow()`; `sha256(buf)`; `lf(s)`; `slash(p)`; `run(cmd, args, { cwd = ROOT, allowFail = false, quiet = false } = {})`; `out(r.stdout || '')`; `git(...args)`; `status()`; `untracked()`; `record(entry)`; `step(await import(pathToFileURL(path.resolve(stepPath)).href))`; `stage(name, detail)`; `undo()`; `fail(reason, extra = {})`; `read(rel)`; `write(rel, text)`; `patch(rel, pairs)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: GitHub API; JSON file shift-log.json; JSON file current.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 7 estate files (script-call 6, estate-url 1); used by 0; mentioned by 0 ### Sizing Arithmetic - File: gridatlas/tools/overnight/steps/202609012205-sizing-arithmetic.mjs (JavaScript, 186 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/overnight/steps/202609012205-sizing-arithmetic.mjs#L1-L186 - Page: https://code.globalgrid2050.com/explore-code/s/0641.html#f2 - Synopsis: A JavaScript module in the steps folder of GridAtlas that applies development stage defaults (`applyDevelopmentStageDefaults`) and mounting bifacial (`applyMountingBifacial`) and computes screening finance (`computeScreeningFinance`). - What it achieves (comment): It applies development stage defaults (`applyDevelopmentStageDefaults`), applies mounting bifacial (`applyMountingBifacial`) and computes screening finance (`computeScreeningFinance`). The sizing arithmetic leaves the body for a module. - What it does: Defines 6 functions or classes, including activePhysicalInputs, applyDevelopmentStageDefaults, applyMountingBifacial, computeScreeningFinance, computeSldStats. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Signatures: `SIZING(window.__GRIDATLAS_MODULES__ || {})`; `activePhysicalInputs()`; `applyDevelopmentStageDefaults(financeInputs, stageValue)`; `applyMountingBifacial(mode, gcrValue)`; `computeScreeningFinance(financeInputs, stats)`; `computeSldStats()`; `fitToStatedCapacity()`; `apply({ read, write, patch, sandboxProof })` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Data Contract Parity - File: gridatlas/tools/overnight/steps/202609012217-data-contract-parity.mjs (JavaScript, 264 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/overnight/steps/202609012217-data-contract-parity.mjs#L1-L264 - Page: https://code.globalgrid2050.com/explore-code/s/0642.html#f1 - Synopsis: A JavaScript module in the steps folder of GridAtlas that draws connection points, GB transmission network, price decade rollup and substations. It is built from the once step (`once`). - What it achieves (comment): The manifest tells the truth about what the bytes fetch. - What it does: It draws connection points, GB transmission network, price decade rollup and substations. Defines once. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations. - Inputs & outputs: In: JSON file current.json; JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; JSON file price-decade-rollup.json; JSON file connection-points.v2.json. - Signatures: `apply({ read, write, patch, sandboxProof })`; `once(from, to)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; JSON file price-decade-rollup.json; JSON file connection-points.v2.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Electrical Distance - File: gridatlas/tools/overnight/steps/202609012245-electrical-distance.mjs (JavaScript, 172 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/overnight/steps/202609012245-electrical-distance.mjs#L1-L172 - Page: https://code.globalgrid2050.com/explore-code/s/0642.html#f2 - Synopsis: A JavaScript module in the steps folder of GridAtlas that works with distance module (`distanceModule`) (units: kV), covering transformers. - What it achieves (comment): It is built from the distance module helper (`distanceModule`) and the reach step (`reach`). The map learns to measure in circuits, not only in kilometres. - What it does: Defines distanceModule, reach. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers. - Signatures: `apply({ read, write, patch, sandboxProof })`; `distanceModule()`; `reach(() => { const mod = distanceModule(); if (!mod) return null; try { return mod.within(topology.index, point.site_code,...)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Rating Envelope - File: gridatlas/tools/overnight/steps/202609012250-rating-envelope.mjs (JavaScript, 157 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/overnight/steps/202609012250-rating-envelope.mjs#L1-L157 - Page: https://code.globalgrid2050.com/explore-code/s/0642.html#f3 - Synopsis: A JavaScript module in the steps folder of GridAtlas. It is built from the ratings step (`ratings`). - What it achieves (comment): The card reports summer as well as winter, and refuses to add up. - What it does: Defines ratings. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Signatures: `apply({ read, write, patch, sandboxProof })`; `ratings(() => { const mod = ratingModule(); if (!mod) return null; try { return mod.at(topology.index, point.site_code, kv !=...)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Injection Response - File: gridatlas/tools/overnight/steps/202609012320-injection-response.mjs (JavaScript, 242 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/overnight/steps/202609012320-injection-response.mjs#L1-L242 - Page: https://code.globalgrid2050.com/explore-code/s/0643.html#f1 - Synopsis: A JavaScript module in the steps folder of GridAtlas covering 400kV. It is built from the flow model for helper (`flowModelFor`) and the injection step (`injection`). - What it achieves (comment): The Atlas answers where a project's power would actually go. Its code works with 400 kV, 100 MVA and 100 MW. - What it does: It lists and searches 400kV. Defines flowModelFor, injection. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV. - Inputs & outputs: Voltage levels named: 400kV. - Signatures: `apply({ read, write, patch, sandboxProof })`; `flowModelFor(index)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Grid at Point - File: gridatlas/tools/overnight/steps/202609012330-grid-at-point.mjs (JavaScript, 371 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/overnight/steps/202609012330-grid-at-point.mjs#L1-L371 - Page: https://code.globalgrid2050.com/explore-code/s/0643.html#f2 - Synopsis: A JavaScript module in the steps folder of GridAtlas covering cables. It runs grid point (`runGridAtPoint`) and is built from the once step (`once`) and the show step (`show`). - What it achieves (comment): The grid computation stops needing a project. It responds to click events. - What it does: It draws cables. Defines once, runGridAtPoint, show, topologyBlockHtml, reflect. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: cables. - Inputs & outputs: In: browser storage (getItem). Out: browser storage (setItem). - Signatures: `apply({ read, write, sandboxProof })`; `once(from, to, label)`; `runGridAtPoint(map, lon, lat)`; `show(html)`; `topologyBlockHtml(queries)`; `reflect()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [browser storage (getItem)]; out [browser storage (setItem)]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Planned Change - File: gridatlas/tools/overnight/steps/202609012345-planned-change.mjs (JavaScript, 177 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/overnight/steps/202609012345-planned-change.mjs#L1-L177 - Page: https://code.globalgrid2050.com/explore-code/s/0644.html#f1 - Synopsis: A JavaScript module in the steps folder of GridAtlas that works with planned module (`plannedModule`) and flow module (`flowModule`) (units: kV), covering transformers. - What it achieves (comment): It is built from the once step (`once`), the planned module helper (`plannedModule`) and the flow module helper (`flowModule`). What the operator has PUBLISHED as planned, kept apart from what exists. - What it does: Defines once, plannedModule, flowModule, planned. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers. - Signatures: `apply({ read, write, sandboxProof })`; `once(from, to, label)`; `plannedModule()`; `flowModule()`; `years(planned.by_year || [])`; `parts(band.by_status || [])` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Owner Boundary - File: gridatlas/tools/overnight/steps/202609012350-owner-boundary.mjs (JavaScript, 700 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/overnight/steps/202609012350-owner-boundary.mjs#L1-L700 - Page: https://code.globalgrid2050.com/explore-code/s/0644.html#f2 - Synopsis: A JavaScript module in the steps folder of GridAtlas that reads substation intelligence seed parts and substations, using haversine. - What it achieves (comment): It is built from the once step (`once`), the owner module helper (`ownerModule`) and the ownership step (`ownership`). The computation leaves the sandbox, and ownership arrives. - What it does: It loads substation intelligence seed parts and substations. Defines lf, once, ownerModule, ownership. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations. - Inputs & outputs: In: JSON file current.json; JSON file 202609012350-substation-intelligence-seed-parts.json. - Signatures: `apply({ read, write, sandboxProof })`; `lf(s)`; `once(from, to, label)`; `ownerModule()`; `seams(ownership.boundary_circuits || [])`; `composedSource(await Promise.all( (CURRENT.cartridges || []).map(entry => readPublished(join(REPO, 'atlas', String(entry.path).repla...)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file 202609012350-substation-intelligence-seed-parts.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Powerflow Stopship - File: gridatlas/tools/overnight/steps/202609020015-powerflow-stopship.mjs (JavaScript, 210 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/overnight/steps/202609020015-powerflow-stopship.mjs#L1-L210 - Page: https://code.globalgrid2050.com/explore-code/s/0645.html#f2 - Synopsis: A JavaScript module in the steps folder of GridAtlas that works with 400kV. It is built from the once step (`once`). - What it achieves (comment): Codex's powerflow stop-ship, closed. Its code works with 400 kV and 100 MVA. - What it does: It calculates 400kV. Defines once. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV. - Inputs & outputs: Voltage levels named: 400kV. - Signatures: `apply({ read, write, sandboxProof })`; `once(from, to, label)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Build - File: gridatlas/tools/pipeline-lifecycle/build.mjs (JavaScript, 44 lines) · role storage · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/pipeline-lifecycle/build.mjs#L1-L44 - Page: https://code.globalgrid2050.com/explore-code/s/0645.html#f3 - Synopsis: A JavaScript module in the pipeline lifecycle folder of GridAtlas that reads generations, using SHA-256. It applies edits (`applyEdits`) and builds substation (`buildSubstation`). - What it achieves (comment): Successor-only recipe for the inherited Pipeline News map lifecycle. - What it does: It loads generations. Defines digest, applyEdits, buildSubstation, arg. Uses libraries node:fs, node:path, node:assert/strict, node:crypto, node:url. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file generations.json; command-line arguments. - Downstream impact: Used directly by 3 files: Map Removal Test (gridatlas); Cut Grid Explorer (gridatlas); Grid Explorer Proof (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export applyEdits(source, edits)`; `export buildSubstation(generation, root = ROOT)`; `digest(bytes)`; `arg(name)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file generations.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Map Removal Test - File: gridatlas/tools/pipeline-lifecycle/map-removal.test.mjs (JavaScript, 104 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/pipeline-lifecycle/map-removal.test.mjs#L1-L104 - Page: https://code.globalgrid2050.com/explore-code/s/0645.html#f4 - Synopsis: A test in the pipeline lifecycle folder of GridAtlas that checks Build and Substation Intelligence V9 63. It is built from the extract step (`extract`) and the fixture step (`fixture`). - What it achieves (comment): Exercises real inherited/patched functions; VM evaluates only pinned local test inputs. It reads `./src/map-removal-edits.json`. - What it does: It tests its inputs. Defines extract, fixture. Uses libraries node:test, node:assert/strict, node:fs, node:vm. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file map-removal-edits.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `extract(source, name)`; `fixture(source = patched, { waiting = false } = {})`; `addSource()`; `getLayer(id)`; `setLayoutProperty()`; `buildGroup()`; `readRegisterSource()`; `ensureLayers()`; `setSourceData()`; `setInterval(fn)`; `setTimeout(resolve)`; `remove()`; `clearSelection()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file map-removal-edits.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 1, url-import-meta 1); used by 1; mentioned by 0 ### Build - File: gridatlas/tools/pipeline-vicinity/build.mjs (JavaScript, 16 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/pipeline-vicinity/build.mjs#L1-L16 - Page: https://code.globalgrid2050.com/explore-code/s/0645.html#f5 - Synopsis: A JavaScript module in the pipeline vicinity folder of GridAtlas that uses SHA-256. - What it does: It loads data. Uses libraries node:fs, node:crypto. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Mobile Static Audit - File: gridatlas/tools/proofs/202609010030-mobile-static.audit.mjs (JavaScript, 189 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202609010030-mobile-static.audit.mjs#L1-L189 - Page: https://code.globalgrid2050.com/explore-code/s/0646.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that works with CSS block (`cssBlock`) and active rules (`activeRules`). - What it achieves (comment): It is built from the CSS block helper (`cssBlock`), the audit step (`audit`) and the active rules helper (`activeRules`). Static mobile gate for the composed GridAtlas shell and single-line diagram (SLD) cartridge. It responds to mousedown and pointerdown events. - What it does: It draws its content. Defines cssBlock, px, audit, activeRules. Uses libraries node:assert/strict, node:fs, node:path. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `cssBlock(source, selector)`; `px(declarations, property)`; `audit(cartridge, baseCss, shellHtml)`; `controlCount(shellHtml.match(/class="map-ctrl-btn"/g) || [])`; `activeRules(width, height)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Parts Integrity Proof - File: gridatlas/tools/proofs/202609012105-parts-integrity.proof.mjs (JavaScript, 124 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202609012105-parts-integrity.proof.mjs#L1-L124 - Page: https://code.globalgrid2050.com/explore-code/s/0646.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that uses SHA-256. It is built from the check step (`check`) and the sha256 step (`sha256`). - What it achieves (comment): Proof: an assembled cartridge still matches the parts it was built from. - What it does: It loads data. Defines check, sha256. Uses libraries node:fs/promises, node:fs, node:crypto, node:path, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file -parts.json; JSON file current.json. - Downstream impact: Used directly by 2 files: Local CI (gridatlas); Shift (gridatlas). - Signatures: `check(label, condition, detail)`; `sha256(text)`; `entries(await readdir(MANIFESTS))` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file -parts.json; JSON file current.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### All Versions Proof - File: gridatlas/tools/proofs/202609012150-all-versions.proof.mjs (JavaScript, 462 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202609012150-all-versions.proof.mjs#L1-L462 - Page: https://code.globalgrid2050.com/explore-code/s/0646.html#f3 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads composition, solar and 750kV, using haversine. - What it achieves (comment): It makes element (`makeElement`) and is built from the check step (`check`) and the sandbox step (`sandbox`). Built vs all previous versions. Its code works with 750 kV and 415 kV. - What it does: It loads composition, solar and 750kV. Defines 8 functions or classes, including check, sandbox, makeElement, MutationObserverStub, cartridgeContext. Uses libraries node:fs/promises, node:path, node:url, node:vm. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar, 750kV, 415kV, 415V. - Inputs & outputs: In: JSON file current.json; JSON file -composition.json. Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 750kV, 415kV, 415V. - Downstream impact: Used directly by 2 files: Local CI (gridatlas); Shift (gridatlas). - Signatures: `check(label, condition, detail)`; `sandbox()`; `makeElement(tag)`; `appendChild()`; `removeEventListener()`; `class MutationObserverStub`; `cartridgeContext()`; `addEventListener()`; `getStyle()`; `getContainer()`; `walk(directory)`; `withoutComments(text)`; `currentSandboxFile(() => { const entry = (CURRENT_COMPOSITION.cartridges || []).find(c => c.id === 'sld-sandbox'); return entry ? String...)`; `entry(CURRENT_COMPOSITION.cartridges || [])`; `SURFACES(await readdir(join(ATLAS, 'cartridges')))`; `compositions(await readdir(join(ATLAS, 'manifests')))` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file -composition.json]; out []; crs [WGS84 / EPSG:4326]; voltages [750kV, 415kV, 415V] - Edges: uses 1 estate file (estate-url 1); used by 2; mentioned by 0 ### Data Contract Parity Proof - File: gridatlas/tools/proofs/202609012214-data-contract-parity.proof.mjs (JavaScript, 145 lines) · role ingest · stage ingest - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202609012214-data-contract-parity.proof.mjs#L1-L145 - Page: https://code.globalgrid2050.com/explore-code/s/0647.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads connection points from the data-grid-GB repository. It reads JSON (`readJson`) and joins literals (`joinLiterals`). - What it achieves (comment): Data-contract parity: what a cartridge's bytes fetch is what its manifest entry declares, product for product and schema for schema. It reads `atlas/current.json`. - What it does: It loads connection points. Defines 7 functions or classes, including read, readJson, check, joinLiterals, productsNamedBy. Uses libraries node:fs, node:path, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: data-grid-gb data; JSON file connection-points.v3.json; JSON file current.json. - Downstream impact: Used directly by 3 files: Local CI (gridatlas); Shift (gridatlas); GridAtlas — Release (gridatlas). Reached from 27 other entry points, including GridAtlas Cartridge Proof Workflow (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas); GridAtlas Verify Live Workflow (gridatlas). - Signatures: `read(rel)`; `readJson(rel)`; `check(name, ok, detail)`; `joinLiterals(source)`; `productsNamedBy(source)`; `schemaFromModule(source, product)`; `declaredBy(entry)`; `compositionSource(current.cartridges || [])`; `twin(manifest.cartridges || [])` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: data-grid-gb data; JSON file connection-points.v3.json; JSON file current.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Estate Deep Scan Proof - File: gridatlas/tools/proofs/202609012240-estate-deep-scan.proof.mjs (JavaScript, 40 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202609012240-estate-deep-scan.proof.mjs#L1-L40 - Page: https://code.globalgrid2050.com/explore-code/s/0647.html#f3 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. - What it achieves (name): Defines `check`. - What it does: It loads data. Defines check. Uses libraries node:assert/strict, node:child_process, node:fs, node:path, node:os. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file 202609012240-estate-deep-scan.json. - Signatures: `check(name, condition)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file 202609012240-estate-deep-scan.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (script-call 1); used by 0; mentioned by 0 ### Quantumspawn Recovery Proof - File: gridatlas/tools/proofs/202609012305-quantumspawn-recovery.proof.mjs (JavaScript, 174 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202609012305-quantumspawn-recovery.proof.mjs#L1-L174 - Page: https://code.globalgrid2050.com/explore-code/s/0647.html#f4 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads shift log. It is built from the check step (`check`) and the git step (`git`). - What it achieves (comment): QuantumSpawn recovery: the capsule is checked against current Git. - What it does: It loads shift log. Defines check, git. Uses libraries node:fs, node:path, node:url, node:child_process. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; JSON file shift-log.json. - Signatures: `check(name, condition, detail = '')`; `git(...args)`; `sld(current.cartridges || [])` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file shift-log.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Transit Layer Availability Proof - File: gridatlas/tools/proofs/202609040212-transit-layer-availability.proof.mjs (JavaScript, 173 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202609040212-transit-layer-availability.proof.mjs#L1-L173 - Page: https://code.globalgrid2050.com/explore-code/s/0647.html#f5 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that fetches UK metros trams root, using SHA-256 from the data-GridAtlas repository. It is built from the public bytes helper (`publicBytes`). - What it achieves (name): Defines `sha256` and `publicBytes`. - What it does: It fetches UK metros trams root. Defines sha256, publicBytes. Uses libraries node:assert/strict, node:crypto, node:fs/promises, node:path, node:url. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: data-gridatlas data; Parquet file uk_metros_trams_root.parquet; JSON file release.json; JSON file browser-layer-registry.json. - Signatures: `sha256(bytes)`; `publicBytes(path)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: data-gridatlas data; Parquet file uk_metros_trams_root.parquet; JSON file release.json; JSON file browser-layer-registry.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Arrival Identity Browser - File: gridatlas/tools/proofs/202609040229-arrival-identity.browser.mjs (JavaScript, 309 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202609040229-arrival-identity.browser.mjs#L1-L309 - Page: https://code.globalgrid2050.com/explore-code/s/0648.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads Renewable Energy Planning Database (REPD) and solar. It is built from the proof map class (`ProofMap`). - What it achieves (name): Defines `capture` and `ProofMap`. - What it does: It loads REPD and solar. Defines capture, ProofMap. Uses libraries node:assert/strict, node:http, node:fs/promises, node:path, node:module. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar. - Inputs & outputs: In: JSON file current.json; JSON file repd_v9_manifest_202608290716.json. - Downstream impact: Used directly by 2 files: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); GridAtlas Cartridge Proof Workflow (gridatlas). - Signatures: `capture(candidate)`; `ProofMap(...args)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file repd_v9_manifest_202608290716.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### PDF Export Outcomes Browser - File: gridatlas/tools/proofs/202609051329-pdf-export-outcomes.browser.mjs (JavaScript, 179 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202609051329-pdf-export-outcomes.browser.mjs#L1-L179 - Page: https://code.globalgrid2050.com/explore-code/s/0648.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. It is built from the check step (`check`). - What it achieves (comment): DOES PRESSING "SAVE THIS VIEW AS A PDF" PUT A REAL PDF ON THE READER'S DISK? --------------------------------------------------------------------------- Not "does a function called `savePdf` exist", not "is /DCTDecode present in the source". - What it does: It loads data. Defines check. Uses libraries playwright, node:fs, node:os, node:path. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Signatures: `check(name, ok, detail)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Arrival Engine Sweep Browser - File: gridatlas/tools/proofs/202609072356-arrival-engine-sweep.browser.mjs (JavaScript, 311 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202609072356-arrival-engine-sweep.browser.mjs#L1-L311 - Page: https://code.globalgrid2050.com/explore-code/s/0649.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads Renewable Energy Planning Database (REPD) browser registry, interconnector endpoints, interconnectors and the REPD register. - What it achieves (comment): It is built from the arg step (`arg`) and the pad step (`pad`). Which engine answered? - What it does: It loads REPD browser registry, interconnector endpoints, interconnectors and the REPD register. Defines arg, pad, n. Uses libraries node:http, node:fs/promises, node:path, node:module, node:url. Side effects: changes the web page (DOM); reads or writes files; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors, the REPD register. - Inputs & outputs: In: JSON file repd_browser_registry_202608290716.json; JSON file current.json; JSON file interconnector-endpoints.json; DuckDB queries; command-line arguments. - Signatures: `arg(flag, fallback)`; `sld(current.cartridges || [])`; `rows(registry.records || [])`; `pad(s, n)`; `n(o)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file repd_browser_registry_202608290716.json; JSON file current.json; JSON file interconnector-endpoints.json; DuckDB queries; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Streaming Parquet Bridge Proof - File: gridatlas/tools/proofs/202609241251-streaming-parquet-bridge.proof.mjs (JavaScript, 266 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202609241251-streaming-parquet-bridge.proof.mjs#L1-L266 - Page: https://code.globalgrid2050.com/explore-code/s/0649.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that fetches grid 400kV, not grid and UK metros trams local unwired, using SHA-256 from example.test. - What it achieves (name): It is built from the native fetch helper (`nativeFetch`) and the native fetch2 helper (`nativeFetch2`). Defines `nativeFetch` and `nativeFetch2`. - What it does: It fetches grid 400kV, not grid, UK metros trams local unwired and REPD master. Defines nativeFetch, nativeFetch2. Uses libraries node:assert/strict, node:crypto, node:fs/promises, node:path, node:process. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV. - Inputs & outputs: In: data source: example.test; JSON file current.json; GeoJSON file grid_400kv.geojson; JSON file not-grid-data.json; GeoJSON file uk_metros_trams.geojson; Parquet file uk_metros_trams_local_unwired.parquet; JSON file repd_master.json; DuckDB queries. Voltage levels named: 400kV. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `nativeFetch(input, init)`; `queueMicrotask()`; `instantiate()`; `connect()`; `nativeFetch2(input)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: example.test; JSON file current.json; GeoJSON file grid_400kv.geojson; JSON file not-grid-data.json; GeoJSON file uk_metros_trams.geojson; Parquet file uk_metros_trams_local_unwired.parquet; JSON file repd_master.json; DuckDB queries]; out []; crs []; voltages [400kV] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### UK Lightning Overlay Proof - File: gridatlas/tools/proofs/202610312138-uk-lightning-overlay.proof.mjs (JavaScript, 3 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202610312138-uk-lightning-overlay.proof.mjs#L1-L3 - Page: https://code.globalgrid2050.com/explore-code/s/0649.html#f3 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Grid Journey Preview Proof - File: gridatlas/tools/proofs/202611172355-grid-journey-preview.proof.mjs (JavaScript, 2 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202611172355-grid-journey-preview.proof.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0649.html#f4 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Grid Vicinity Proof - File: gridatlas/tools/proofs/202611180026-grid-vicinity.proof.mjs (JavaScript, 2 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202611180026-grid-vicinity.proof.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0649.html#f5 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### UK Gazetteer Flyto Proof - File: gridatlas/tools/proofs/202611180026-uk-gazetteer-flyto.proof.mjs (JavaScript, 2 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202611180026-uk-gazetteer-flyto.proof.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0649.html#f6 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Pipeline Vicinity Button Proof - File: gridatlas/tools/proofs/202611222000-pipeline-vicinity-button.proof.mjs (JavaScript, 11 lines) · role energy-data · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202611222000-pipeline-vicinity-button.proof.mjs#L1-L11 - Page: https://code.globalgrid2050.com/explore-code/s/0649.html#f7 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that uses SHA-256. - What it does: It loads data. Uses libraries node:fs, node:assert/strict. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Vicinity Entry Browser - File: gridatlas/tools/proofs/202611222000-vicinity-entry.browser.mjs (JavaScript, 55 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202611222000-vicinity-entry.browser.mjs#L1-L55 - Page: https://code.globalgrid2050.com/explore-code/s/0649.html#f8 - Synopsis: A JavaScript module in the proofs folder of GridAtlas covering the Renewable Energy Planning Database (REPD) register and substations. - What it does: It lists and searches the REPD register and substations. Uses libraries node:assert/strict, node:fs, node:path, playwright. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, substations. - Inputs & outputs: Out: JSON file receipt.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [JSON file receipt.json]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Vicinity Entry Proof - File: gridatlas/tools/proofs/202611222000-vicinity-entry.proof.mjs (JavaScript, 46 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202611222000-vicinity-entry.proof.mjs#L1-L46 - Page: https://code.globalgrid2050.com/explore-code/s/0649.html#f9 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that uses SHA-256. - What it does: It loads data. Uses libraries node:fs, node:path, node:assert/strict, node:crypto, node:vm. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json. - Downstream impact: Used directly by 2 files: Pipeline Vicinity Button Proof (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Vicinity Focus Browser - File: gridatlas/tools/proofs/202611222130-vicinity-focus.browser.mjs (JavaScript, 99 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202611222130-vicinity-focus.browser.mjs#L1-L99 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas covering substations and the Renewable Energy Planning Database (REPD) register. - What it achieves (name): Its code works with 132 kV. - What it does: Uses libraries node:assert/strict, node:fs, node:path, playwright. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, the REPD register, 132kV. - Inputs & outputs: Out: JSON file receipt.json. Voltage levels named: 132kV. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [JSON file receipt.json]; crs []; voltages [132kV] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Vicinity A4 Browser - File: gridatlas/tools/proofs/202611222325-vicinity-a4.browser.mjs (JavaScript, 74 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202611222325-vicinity-a4.browser.mjs#L1-L74 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads the Renewable Energy Planning Database (REPD) register. - What it does: It loads the REPD register. Uses libraries node:assert/strict, node:fs, node:path, playwright. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: Out: JSON file receipt.json. - Downstream impact: Used directly by 2 files: GridAtlas Cartridge Proof Workflow (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `ref(await row.getAttribute('id'))`; `pdf(await fs.promises.readFile(await downloaded.path()))` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [JSON file receipt.json]; crs []; voltages [] - Edges: uses 2 estate files (import 1, estate-url 1); used by 2; mentioned by 0 ### Layers Visible Browser - File: gridatlas/tools/proofs/202611222343-layers-visible.browser.mjs (JavaScript, 109 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202611222343-layers-visible.browser.mjs#L1-L109 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f3 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that works with panel visible (`panelVisible`). It is built from the panel visible helper (`panelVisible`). - What it achieves (name): Defines `launch`, `fullscreen`, `state` and 1 more. - What it does: Defines launch, fullscreen, state, panelVisible. Uses libraries node:assert/strict, node:fs, node:path, playwright. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: Out: JSON file receipt.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `launch(generation,viewport)`; `fullscreen(page)`; `state(page)`; `panelVisible(s)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [JSON file receipt.json]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Vicinity Controls Rescue Proof - File: gridatlas/tools/proofs/202611222343-vicinity-controls-rescue.proof.mjs (JavaScript, 76 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202611222343-vicinity-controls-rescue.proof.mjs#L1-L76 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f4 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads composition and substations, using SHA-256. - What it achieves (name): Defines `click`. It reads `atlas/current.json`. - What it does: It loads composition and substations. Defines click. Uses libraries node:assert/strict, node:fs, node:crypto, node:vm, node:path. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations. - Inputs & outputs: In: JSON file current.json; JSON file 202611222343-composition.json. - Downstream impact: Used directly by 2 files: GridAtlas Cartridge Proof Workflow (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `setAttribute(name,value)`; `getElementById(k)`; `addEventListener()`; `click()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file 202611222343-composition.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Vicinity Legal Evidence Proof - File: gridatlas/tools/proofs/202611280016-vicinity-legal-evidence.proof.mjs (JavaScript, 39 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202611280016-vicinity-legal-evidence.proof.mjs#L1-L39 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f5 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads the Renewable Energy Planning Database (REPD) register, using SHA-256 from the legislation repository. - What it achieves (name): Defines `read` and `json`. - What it does: It loads the REPD register. Defines read, json. Uses libraries node:assert/strict, node:fs, node:path, node:vm, node:crypto. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: data source: legislation data; JSON file current.json. - Signatures: `read(p)`; `json(p)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: legislation data; JSON file current.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (estate-url 2); used by 0; mentioned by 0 ### SatNav Start Walk Proof - File: gridatlas/tools/proofs/202612012118-satnav-start-walk.proof.mjs (JavaScript, 2 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612012118-satnav-start-walk.proof.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f6 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### SatNav Waypoint Map Proof - File: gridatlas/tools/proofs/202612012118-satnav-waypoint-map.proof.mjs (JavaScript, 2 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612012118-satnav-waypoint-map.proof.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f7 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. - Why it exists in the grid workflow: Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### UK Offtakers Overlay Proof - File: gridatlas/tools/proofs/202612012118-uk-offtakers-overlay.proof.mjs (JavaScript, 2 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612012118-uk-offtakers-overlay.proof.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f8 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Vicinity Focus Proof - File: gridatlas/tools/proofs/202612012118-vicinity-focus.proof.mjs (JavaScript, 2 lines) · role other · stage unknown · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612012118-vicinity-focus.proof.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f9 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Unified Owner Test Proof - File: gridatlas/tools/proofs/202612020056-unified-owner-test.proof.mjs (JavaScript, 44 lines) · role test · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612020056-unified-owner-test.proof.mjs#L1-L44 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f10 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that tests composition, using SHA-256. It is built from the read step (`read`) and the digest step (`digest`). - What it achieves (comment): V9.201 proof for the inherited shallow-checkout cartridge gate. It reads `atlas/current.json`. - What it does: It tests composition. Defines read, digest. Uses libraries node:assert/strict, node:fs, node:crypto, node:path, node:child_process. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; JSON file -composition.json. - Signatures: `read(p)`; `digest(p,c)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file -composition.json]; out []; crs []; voltages [] - Edges: uses 3 estate files (script-call 3); used by 0; mentioned by 0 ### Owner Test Proof - File: gridatlas/tools/proofs/202612020205-owner-test.proof.mjs (JavaScript, 27 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612020205-owner-test.proof.mjs#L1-L27 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f11 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that tests composition, using SHA-256. - What it achieves (name): Defines `read` and `verify`. It reads `atlas/current.json`. - What it does: It tests composition. Defines read, verify. Uses libraries node:assert/strict, node:fs, node:crypto, node:path, node:vm. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; JSON file -composition.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `read(p)`; `verify(file,e)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file -composition.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Convergence Proof - File: gridatlas/tools/proofs/202612020930-convergence.proof.mjs (JavaScript, 46 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612020930-convergence.proof.mjs#L1-L46 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f12 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads composition and substations, using SHA-256. - What it achieves (name): It is built from the normalized step (`normalized`), the normalized shell helper (`normalizedShell`) and the normalized provenance helper (`normalizedProvenance`). Defines `read`, `hash`, `verify` and 3 more. It reads `atlas/current.json`. - What it does: It loads composition and substations. Defines 6 functions or classes, including read, hash, verify, normalized, normalizedShell. Uses libraries node:assert/strict, node:fs, node:crypto, node:path, node:vm. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations. - Inputs & outputs: In: JSON file current.json; JSON file -composition.json. - Signatures: `read(p)`; `hash(b)`; `verify(file,e)`; `normalized(x,base)`; `normalizedShell(x,base)`; `normalizedProvenance(x,base)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file -composition.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Distance Dock Proof - File: gridatlas/tools/proofs/202612021205-distance-dock.proof.mjs (JavaScript, 36 lines) · role geodesy · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612021205-distance-dock.proof.mjs#L1-L36 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f13 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads composition, using SHA-256. - What it achieves (name): Defines `hash` and `fix`. It reads `/current.json`. - What it does: It loads composition. Defines hash, fix. Uses libraries node:assert/strict, node:fs, node:crypto, node:path, node:vm. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; JSON file 202612021205-composition.json. - Signatures: `hash(b)`; `fix(at,timestampMs)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file 202612021205-composition.json]; out []; crs []; voltages [] - Edges: uses 4 estate files (import 4); used by 0; mentioned by 0 ### Orient14 Proof - File: gridatlas/tools/proofs/202612030153-orient14.proof.mjs (JavaScript, 36 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612030153-orient14.proof.mjs#L1-L36 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f14 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads composition, using SHA-256. - What it achieves (name): Defines `exercise`, `load` and `msg`. It reads `/current.json`. - What it does: It loads composition. Defines exercise, load, msg. Uses libraries node:assert/strict, node:fs, node:crypto, node:path. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; JSON file 202612030153-composition.json. - Signatures: `exercise(source)`; `class E`; `load(u)`; `msg()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file 202612030153-composition.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Orient16 Proof - File: gridatlas/tools/proofs/202612031130-orient16.proof.mjs (JavaScript, 6 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612031130-orient16.proof.mjs#L1-L6 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f15 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads composition, using SHA-256. - What it achieves (name): It reads `/current.json`. - What it does: It loads composition. Uses libraries node:assert/strict. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; JSON file 202612031130-composition.json. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file 202612031130-composition.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Orient16 Recovery Proof - File: gridatlas/tools/proofs/202612031235-orient16-recovery.proof.mjs (JavaScript, 6 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612031235-orient16-recovery.proof.mjs#L1-L6 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f16 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads composition, using SHA-256. - What it achieves (name): It reads `/current.json`. - What it does: It loads composition. Uses libraries node:assert/strict. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; JSON file 202612031235-composition.json. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file 202612031235-composition.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Orient16 Responsive Proof - File: gridatlas/tools/proofs/202612031346-orient16-responsive.proof.mjs (JavaScript, 6 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612031346-orient16-responsive.proof.mjs#L1-L6 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f17 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads composition, using SHA-256. - What it achieves (name): It reads `/current.json`. - What it does: It loads composition. Uses libraries node:assert/strict. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; JSON file 202612031346-composition.json. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file 202612031346-composition.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Orient17 Regional Proof - File: gridatlas/tools/proofs/202612031704-orient17-regional.proof.mjs (JavaScript, 12 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612031704-orient17-regional.proof.mjs#L1-L12 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f18 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads composition, using SHA-256. - What it achieves (name): It reads `/current.json`. - What it does: It loads composition. Uses libraries node:assert/strict, node:fs, node:crypto, node:path. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; JSON file -composition.json. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file -composition.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (dynamic-import 1); used by 0; mentioned by 0 ### Orient17b Proof - File: gridatlas/tools/proofs/202612040110-orient17b.proof.mjs (JavaScript, 13 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612040110-orient17b.proof.mjs#L1-L13 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f19 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads composition, using SHA-256. - What it achieves (name): It reads `/current.json`. - What it does: It loads composition. Uses libraries node:assert/strict, node:fs, node:crypto, node:path. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; JSON file -composition.json. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file -composition.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (dynamic-import 1); used by 0; mentioned by 0 ### Orient17a Proof - File: gridatlas/tools/proofs/202612040127-orient17a.proof.mjs (JavaScript, 23 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612040127-orient17a.proof.mjs#L1-L23 - Page: https://code.globalgrid2050.com/explore-code/s/0650.html#f20 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads composition, using SHA-256. - What it achieves (name): Defines `inspect`. It reads `/current.json`. - What it does: It loads composition. Defines inspect. Uses libraries node:assert/strict, node:fs, node:crypto, node:path. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; JSON file -composition.json. - Signatures: `inspect(path)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file -composition.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (dynamic-import 1); used by 0; mentioned by 0 ### About Estate and Attribution Proof - File: gridatlas/tools/proofs/about-estate-and-attribution.proof.mjs (JavaScript, 329 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/about-estate-and-attribution.proof.mjs#L1-L329 - Page: https://code.globalgrid2050.com/explore-code/s/0651.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads engine graph and substations from the ventus-grid-engine, data-federation-map-for-GlobalGrid2050-all-repos and spiders repositories. - What it achieves (comment): It is built from the check step (`check`), the run value helper (`runValue`) and the report step (`report`). The About panel carries the attribution and the estate's published method. It responds to afterprint events. - What it does: It loads engine graph and substations. Defines check, runValue, report. Uses libraries node:fs/promises, node:path, node:url. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations. - Inputs & outputs: In: data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; JSON file current.json; JSON file engine-graph.json. - Signatures: `check(name, ok, detail)`; `entry(current.cartridges || [])`; `runValue(() => { const at = composed.indexOf('var RUN_COMMAND ='); if (at < 0) return null; const end = composed.indexOf(';', ...)`; `report()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; JSON file current.json; JSON file engine-graph.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### All Controls Browser - File: gridatlas/tools/proofs/all-controls.browser.mjs (JavaScript, 119 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/all-controls.browser.mjs#L1-L119 - Page: https://code.globalgrid2050.com/explore-code/s/0651.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that works with pipeline frame (`pipelineFrame`) and settled frame (`settledFrame`), covering solar, using SHA-256. - What it achieves (name): It is built from the check step (`check`), the menu step (`menu`) and the pipeline frame helper (`pipelineFrame`). Defines `save`, `tap`, `snap` and 4 more. It responds to beforeprint events. - What it does: It draws solar. Defines 7 functions or classes, including save, tap, snap, check, menu. Uses libraries playwright, node:fs, node:path, node:http, node:assert/strict. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar. - Inputs & outputs: In: JSON file current.json; command-line arguments. Out: JSON file report.json. - Downstream impact: Used directly by 1 file: GridAtlas Cartridge Proof Workflow (gridatlas). - Signatures: `save()`; `tap(loc)`; `snap(name)`; `state()`; `check(name,fn)`; `menu(name)`; `pipelineFrame(id)`; `points(source?._data?.features||[])`; `settledFrame(id)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json; command-line arguments]; out [JSON file report.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### All Layer Clicks Browser - File: gridatlas/tools/proofs/all-layer-clicks.browser.mjs (JavaScript, 92 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/all-layer-clicks.browser.mjs#L1-L92 - Page: https://code.globalgrid2050.com/explore-code/s/0651.html#f3 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. It is built from the arg step (`arg`), the open step (`open`) and the point step (`point`). - What it achieves (comment): Drive every real Grid control and verify paint, feature picking and off-state. - What it does: It fetches data. Defines arg, open, point. Uses libraries playwright, node:fs, node:path, node:http. Side effects: changes the web page (DOM); reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. Out: JSON file results.json. - Downstream impact: Used directly by 1 file: GridAtlas Cartridge Proof Workflow (gridatlas). - Signatures: `arg(key,fallback)`; `open()`; `value(e,f)`; `eligible(data.features||[])`; `point(g)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out [JSON file results.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Arrival Visibility and One Runtime Proof - File: gridatlas/tools/proofs/arrival-visibility-and-one-runtime.proof.mjs (JavaScript, 163 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/arrival-visibility-and-one-runtime.proof.mjs#L1-L163 - Page: https://code.globalgrid2050.com/explore-code/s/0652.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. It is built from the composed step (`composed`) and the check step (`check`). - What it achieves (comment): What this generation has to keep true, asserted against the COMPOSED bytes named by `atlas/current.json` - not against the parts they were built from. - What it does: It loads data. Defines composed, check. Uses libraries node:fs/promises, node:path, node:url. Side effects: changes the web page (DOM); reads or writes files; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; DuckDB queries. - Signatures: `composed(id)`; `check(name, condition)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; DuckDB queries]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Deep Link Technology Buckets Browser - File: gridatlas/tools/proofs/deep-link-technology-buckets.browser.mjs (JavaScript, 258 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/deep-link-technology-buckets.browser.mjs#L1-L258 - Page: https://code.globalgrid2050.com/explore-code/s/0652.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads the Renewable Energy Planning Database (REPD) register and battery storage (BESS). It is built from the check step (`check`). - What it achieves (comment): Proof: every technology bucket Pipeline News' MAP link can send arrives with the project's own layer switched on -- or, for the one bucket that genuinely has no layer. - What it does: It loads the REPD register and battery storage (BESS). Defines check. Uses libraries node:assert/strict, node:http, node:fs/promises, node:path, node:vm. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, battery storage (BESS). - Inputs & outputs: In: JSON file current.json. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `check(label, condition, detail)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Deep Link Visibility Browser - File: gridatlas/tools/proofs/deep-link-visibility.browser.mjs (JavaScript, 224 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/deep-link-visibility.browser.mjs#L1-L224 - Page: https://code.globalgrid2050.com/explore-code/s/0652.html#f3 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads solar. It is built from the check step (`check`). - What it achieves (comment): Proof: a deep-link arrival opened in a HIDDEN tab does not run while hidden, does not burn its layer-control budget while hidden, and completes -- camera, card and links -- once the tab is actually shown. - What it does: It loads solar. Defines check. Uses libraries node:assert/strict, node:http, node:fs/promises, node:path, playwright. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar. - Inputs & outputs: In: JSON file current.json. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `check(label, condition, detail)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Export Print and Image Outcomes Browser - File: gridatlas/tools/proofs/export-print-and-image-outcomes.browser.mjs (JavaScript, 829 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/export-print-and-image-outcomes.browser.mjs#L1-L829 - Page: https://code.globalgrid2050.com/explore-code/s/0653.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that exports control (`exportControl`), opens export menu (`openExportMenu`), calculates planar distances and draws on a canvas, using SHA-256. - What it achieves (name): It exports control (`exportControl`) and opens export menu (`openExportMenu`). Its name says it exports print and image outcomes browser. Defines `argv`, `check`, `pdfFacts` and 10 more. It responds to click events. - What it does: It draws its content. Defines 13 functions or classes, including argv, check, pdfFacts, number, streamOf. Uses libraries node:http, node:fs/promises, node:os, node:path, node:zlib. Side effects: changes the web page (DOM); reads or writes files; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; command-line arguments. Out: canvas drawing. - Signatures: `argv(flag, fallback)`; `EXPORT_CARTRIDGE(CURRENT.cartridges || [])`; `check(name, ok, detail)`; `pdfFacts(base64)`; `number(dict, key)`; `streamOf(entry)`; `decoded(entry)`; `sample(buffer, width, height)`; `times(m, n)`; `exportControl(page, kind)`; `shape(value)`; `openExportMenu(label)`; `at((y * probe.width) + x)`; `coverageOf(image)`; `describe(row)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; command-line arguments]; out [canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Grid Subs Chips on Desktop Browser - File: gridatlas/tools/proofs/grid-subs-chips-on-desktop.browser.mjs (JavaScript, 79 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/grid-subs-chips-on-desktop.browser.mjs#L1-L79 - Page: https://code.globalgrid2050.com/explore-code/s/0654.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. - What it achieves (comment): ARE GRID AND SUBS UNDER THE CURSOR, NOT INSIDE A MENU? --------------------------------------------------------------------------- "in mobile view the Grid and subs buttons are nice show them on desktop TOO" -- the architect, . - What it does: It lists and searches its content. Uses libraries playwright. Side effects: changes the web page (DOM); starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Layer Census GPU - File: gridatlas/tools/proofs/layer-census-gpu.py (Python, 35 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/layer-census-gpu.py#L1-L35 - Page: https://code.globalgrid2050.com/explore-code/s/0654.html#f3 - Synopsis: A Python module in the proofs folder of GridAtlas that reads GPU receipt, using SHA-256. It is built from the gpu step (`gpu`). - What it achieves (comment): Bounded CuPy geometry and filter census, independently checked against scalar CPU masks. It accepts `--input`. - What it does: It loads GPU receipt. Defines gpu. Uses libraries argparse, hashlib, json, pathlib, time. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. Out: JSON file gpu-receipt.json. - Signatures: `gpu(e)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out [JSON file gpu-receipt.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Layer Census - File: gridatlas/tools/proofs/layer-census.py (Python, 61 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/layer-census.py#L1-L61 - Page: https://code.globalgrid2050.com/explore-code/s/0654.html#f4 - Synopsis: A Python module in the proofs folder of GridAtlas that prepares the real published layer corpus for CPU/GPU parity; never synthesize cases, using SHA-256. - What it achieves (name): Defines `value`, `coordinates` and `gather`. It accepts `--data-root`, `--config` and `--out`. - What it does: It loads data. Defines value, coordinates, gather. Uses libraries argparse, collections, hashlib, json, pathlib. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file layer-config.json; command-line arguments. - Signatures: `value(e,props)`; `coordinates(c)`; `gather(e)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file layer-config.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Lightning Cartridge - File: gridatlas/tools/proofs/lightning-cartridge.mjs (JavaScript, 152 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/lightning-cartridge.mjs#L1-L152 - Page: https://code.globalgrid2050.com/explore-code/s/0654.html#f5 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that uses SHA-256. It reads JSON (`readJson`) and is built from the sha step (`sha`) and the route of helper (`routeOf`). - What it achieves (comment): The proof of a modular lightning generation: the UK lightning overlay composed as its OWN cartridge ('UK-lightning-overlay', slot after-cartridge, after single-line diagram (SLD)-sandbox), with SLD-sandbox back to the original bytes. It reads `atlas/current.json`. - What it does: It loads data. Defines 6 functions or classes, including sha, readJson, routeOf, proveLightningCartridge, at. Uses libraries node:assert/strict, node:fs, node:path, node:vm, node:crypto. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json. - Downstream impact: Used directly by 1 file: UK Lightning Overlay Proof (gridatlas). - Signatures: `export routeOf(G)`; `export proveLightningCartridge(G)`; `sha(b)`; `readJson(rel)`; `at(p)`; `read(p)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 1, dynamic-import 1); used by 1; mentioned by 0 ### Loader Composition - File: gridatlas/tools/proofs/loader-composition.mjs (JavaScript, 86 lines) · role render · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/loader-composition.mjs#L1-L86 - Page: https://code.globalgrid2050.com/explore-code/s/0654.html#f6 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that works with loader script (`loaderScript`) and stub URL (`StubURL`). - What it achieves (comment): It is built from the response step (`response`), the loader script helper (`loaderScript`) and the compose step (`compose`). Run the GridAtlas composer (`atlas/index.html`) in Node, without a browser, and return exactly what it would hand to document.write: the composed HTML and, in document order, the source of every script tag it points at a verified cartridge blob. - What it does: It draws its content. Defines response, loaderScript, compose, StubURL, fetch. Uses libraries node:fs, node:path, node:vm, node:crypto, node:url. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json. - Downstream impact: Used directly by 6 files: Lightning Cartridge (gridatlas); Loader Equivalence Proof (gridatlas); Offtakers Cartridge (gridatlas); Loader Swap (gridatlas); and 2 more. Reached from 5 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); GridAtlas Verify Live Workflow (gridatlas); CI PR Gate (gridatlas). - Signatures: `export loaderScript(loaderHtml)`; `export compose({ loaderHtml, route = 'atlas/', files = {} })`; `response(file, virtual)`; `json()`; `text()`; `arrayBuffer()`; `class StubURL`; `open()`; `fetch(input)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 6; mentioned by 0 ### Loader Equivalence Proof - File: gridatlas/tools/proofs/loader-equivalence.proof.mjs (JavaScript, 121 lines) · role render · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/loader-equivalence.proof.mjs#L1-L121 - Page: https://code.globalgrid2050.com/explore-code/s/0654.html#f7 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that uses SHA-256. It is built from the sha step (`sha`), the read step (`read`) and the extra step (`extra`). - What it achieves (comment): Loader v2 (`tools/scope/payloads/atlas-loader-v2.html`) adds one slot type, 'after-cartridge': a verified cartridge as its own script tag straight after a cartridge composed before it. It reads `atlas/current.json`. - What it does: It loads data. Defines sha, read, up, extra, run. Uses libraries node:assert/strict, node:fs, node:path, node:crypto. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json. - Downstream impact: Used directly by 1 file: CI PR Gate (gridatlas). Reached from 2 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Map Promotion Rehearsal (gridatlas). - Signatures: `sha(b)`; `read(rel)`; `up(p)`; `extra(id, file, after, digest)`; `run(loaderHtml, cartridges, order)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 1, dynamic-import 1); used by 1; mentioned by 0 ### Map Receiver Restoration Browser - File: gridatlas/tools/proofs/map-receiver-restoration.browser.mjs (JavaScript, 51 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/map-receiver-restoration.browser.mjs#L1-L51 - Page: https://code.globalgrid2050.com/explore-code/s/0655.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that draws National Energy System Operator (NESO) connection sites lean, map receiver timeout and the Renewable Energy Planning Database (REPD) register. - What it achieves (name): It writes `work/map-receiver-timeout.json`. - What it does: It draws NESO connection sites lean, map receiver timeout and the REPD register. Uses libraries node:fs/promises, node:path, node:assert/strict. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file neso-connection-sites.lean.json; JSON file current.json. Out: JSON file map-receiver-timeout.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file neso-connection-sites.lean.json; JSON file current.json]; out [JSON file map-receiver-timeout.json]; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 1; mentioned by 0 ### Menu Bar Attrib Clearance Browser - File: gridatlas/tools/proofs/menu-bar-attrib-clearance.browser.mjs (JavaScript, 277 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/menu-bar-attrib-clearance.browser.mjs#L1-L277 - Page: https://code.globalgrid2050.com/explore-code/s/0655.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that works with attrib hit (`attribHit`) and installed hit (`installedHit`). - What it achieves (comment): It is built from the fixture HTML helper (`fixtureHtml`), the attrib hit helper (`attribHit`) and the installed hit helper (`installedHit`). Proof: the OpenStreetMap / CARTO / Open Charge Map credit (`.custom-map-attrib`, in the immutable shell) is never occluded by the v9.107 menu bar (`atlas/modules/202609031958-menu-bar.js`), at any width. - What it does: Defines fixtureHtml, attribHit, installedHit, check. Uses libraries node:assert/strict, node:path, node:url, playwright. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: form fields (user input). - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `fixtureHtml(bodyClass)`; `attribHit(page)`; `installedHit(page, { width, height, touch })`; `check(label, condition, detail)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Menu Bar Dom Proof - File: gridatlas/tools/proofs/menu-bar-dom.proof.mjs (JavaScript, 514 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/menu-bar-dom.proof.mjs#L1-L514 - Page: https://code.globalgrid2050.com/explore-code/s/0655.html#f3 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that works with selector parts (`selectorParts`) and fake element (`FakeElement`). - What it achieves (name): It proves menu bar (`proveMenuBar`) and is built from the selector parts helper (`selectorParts`) and the fake element class (`FakeElement`). Defines `classes`, `selectorParts`, `matches` and 10 more. It responds to click and change events. - What it does: It draws its content. Defines 13 functions or classes, including classes, selectorParts, matches, FakeElement, visit. Uses libraries node:fs/promises, node:vm. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Signatures: `export proveMenuBar(menuPath, servedSource = '')`; `classes(node)`; `selectorParts(selector)`; `matches(node, selector)`; `class FakeElement`; `constructor(tag, doc)`; `appendChild(child)`; `insertBefore(child, before)`; `setAttribute(name, value)`; `getAttribute(name)`; `hasAttribute(name)`; `removeAttribute(name)`; `addEventListener(type, fn)`; `dispatch(type, supplied = {})`; `stopPropagation()`; `preventDefault()`; `click()`; `focus()`; `contains(other)`; `closest(selector)`; `querySelectorAll(selector)`; `visit(node)`; `querySelector(selector)`; `class FakeDocument`; `createElement(tag)` (and 10 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Menu Bar Mobile Hit Browser - File: gridatlas/tools/proofs/menu-bar-mobile-hit.browser.mjs (JavaScript, 174 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/menu-bar-mobile-hit.browser.mjs#L1-L174 - Page: https://code.globalgrid2050.com/explore-code/s/0656.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. It is built from the bound card to map helper (`boundCardToMap`). - What it achieves (name): Defines `boundCardToMap`. It responds to click and change events. - What it does: It loads data. Defines boundCardToMap. Uses libraries node:assert/strict, node:fs/promises, node:path, node:url, playwright. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: form fields (user input). - Downstream impact: Used directly by 1 file: GridAtlas Cartridge Proof Workflow (gridatlas). - Signatures: `boundCardToMap()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Module Parity Proof - File: gridatlas/tools/proofs/modules/202609011950-module-parity.proof.mjs (JavaScript, 293 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/modules/202609011950-module-parity.proof.mjs#L1-L293 - Page: https://code.globalgrid2050.com/explore-code/s/0656.html#f3 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads substations, 400kV, transformers and solar. It loads modules (`loadModules`) and makes element (`makeElement`). - What it achieves (comment): Parity proof: the new modules against the 4,000-line incumbent. Its code works with 400 kV and 750 kV. - What it does: It loads substations, 400kV, transformers and solar. Defines check, loadModules, makeElement, MutationObserverStub, sandboxContext. Uses libraries node:fs/promises, node:url, node:path, node:vm. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, 400kV, transformers, solar, 750kV, 415V. - Inputs & outputs: In: JSON file current.json. Voltage levels named: 750kV, 400kV, 415V. - Downstream impact: Used directly by 1 file: Local CI (gridatlas). - Signatures: `check(label, condition, detail)`; `loadModules()`; `makeElement(tag)`; `add()`; `appendChild(child)`; `addEventListener()`; `remove()`; `class MutationObserverStub`; `sandboxContext()`; `getElementById()`; `getStyle()`; `getContainer()`; `same(a?.site_code ?? null)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out []; crs []; voltages [750kV, 400kV, 415V] - Edges: uses 1 estate file (estate-url 1); used by 1; mentioned by 0 ### Assembler Proof - File: gridatlas/tools/proofs/modules/202609012010-assembler.proof.mjs (JavaScript, 202 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/modules/202609012010-assembler.proof.mjs#L1-L202 - Page: https://code.globalgrid2050.com/explore-code/s/0657.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that uses SHA-256. It is built from the check step (`check`), the run step (`run`) and the sha256 step (`sha256`). - What it achieves (comment): Proof for `tools/build-cartridge.mjs`. - What it does: It loads data. Defines 7 functions or classes, including check, run, sha256, outputFor, manifestFor. Uses libraries node:fs/promises, node:fs, node:crypto, node:child_process, node:path. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Local CI (gridatlas). - Signatures: `check(label, condition, detail)`; `run(args, extraEnv = {})`; `sha256(text)`; `outputFor(generation)`; `manifestFor(generation)`; `existsForProof(path)`; `cleanup()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Grid Scope Proof - File: gridatlas/tools/proofs/modules/202609012040-grid-scope.proof.mjs (JavaScript, 194 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/modules/202609012040-grid-scope.proof.mjs#L1-L194 - Page: https://code.globalgrid2050.com/explore-code/s/0657.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads substations, 400kV, 750kV and 110kV, using haversine. - What it achieves (comment): It is built from the check step (`check`) and the list step (`list`). The arithmetic is easy; the discipline is the point. Its code works with 110 kV, 400 kV and 50 kV. - What it does: It loads substations, 400kV, 750kV and 110kV. Defines check, at, list. Uses libraries node:fs/promises, node:url, node:path, node:vm. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, 400kV, 750kV, 110kV, 132kV, 66kV. - Inputs & outputs: Voltage levels named: 750kV, 400kV, 132kV, 110kV, 66kV, 50kV, 33kV, 32kV. - Downstream impact: Used directly by 1 file: Local CI (gridatlas). - Signatures: `check(label, condition, detail)`; `at(dLat)`; `class list` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [750kV, 400kV, 132kV, 110kV, 66kV, 50kV, 33kV, 32kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Declared Connections Proof - File: gridatlas/tools/proofs/modules/202609012130-declared-connections.proof.mjs (JavaScript, 181 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/modules/202609012130-declared-connections.proof.mjs#L1-L181 - Page: https://code.globalgrid2050.com/explore-code/s/0657.html#f3 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads substations and 400kV. - What it achieves (comment): It is built from the plain step (`plain`), the same step (`same`) and the check step (`check`). The module was cut out of the single-line diagram (SLD)-sandbox body, so the question that matters most is PARITY: does the module hold exactly the records the served cartridge held. Its code works with 400 kV and 132 kV. - What it does: It loads substations and 400kV. Defines 6 functions or classes, including plain, same, check, fresh, inlineObject. Uses libraries node:fs/promises, node:path, node:url, node:vm, node:util. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, 400kV, 132kV. - Inputs & outputs: Voltage levels named: 400kV, 132kV. - Downstream impact: Used directly by 1 file: Local CI (gridatlas). - Signatures: `plain(value)`; `same(a, b)`; `check(label, condition, detail)`; `fresh()`; `inlineObject(text, name)`; `servedFunctions()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 132kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Sizing Arithmetic Proof - File: gridatlas/tools/proofs/modules/202609012205-sizing-arithmetic.proof.mjs (JavaScript, 222 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/modules/202609012205-sizing-arithmetic.proof.mjs#L1-L222 - Page: https://code.globalgrid2050.com/explore-code/s/0658.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that works with fresh finance inputs (`freshFinanceInputs`) (units: MW, kVA, MVA). - What it achieves (comment): It is built from the plain step (`plain`), the same step (`same`) and the check step (`check`). The module was lifted out of the single-line diagram (SLD)-sandbox body, so the question that matters is PARITY: on the same inputs, does the module return exactly what the inline arithmetic returned? - What it does: It fetches data. Defines 8 functions or classes, including plain, same, check, fresh, slice. Uses libraries node:fs/promises, node:path, node:url, node:vm, node:util. Side effects: changes the web page (DOM); reads or writes files; makes network requests; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Local CI (gridatlas). - Signatures: `plain(value)`; `same(a, b)`; `check(label, condition, detail)`; `fresh()`; `slice(text, from, to, label)`; `freshFinanceInputs()`; `pick(s)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Electrical Distance Proof - File: gridatlas/tools/proofs/modules/202609012245-electrical-distance.proof.mjs (JavaScript, 339 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/modules/202609012245-electrical-distance.proof.mjs#L1-L339 - Page: https://code.globalgrid2050.com/explore-code/s/0658.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that fetches GB transmission network, transformers, 400kV and 132kV. - What it achieves (comment): It is built from the check step (`check`) and the fake index helper (`fakeIndex`). Run against the REAL published payload, not a fixture. Its code works with 400 kV and 132 kV. - What it does: It fetches GB transmission network, transformers, 400kV and 132kV. Defines check, fakeIndex, N. Uses libraries node:fs, node:path, node:url. Side effects: changes the web page (DOM); reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers, 400kV, 132kV. - Inputs & outputs: In: JSON file gb-transmission-network.v1.json. Voltage levels named: 400kV, 132kV. - Downstream impact: Used directly by 1 file: Local CI (gridatlas). - Signatures: `check(name, condition, detail = '')`; `denials(codeOnly.match(/const NOT_A_[A-Z_]+\s*=[\s\S]*?;/g) || [])`; `fakeIndex(nodes, edges, sites)`; `N(node, site_code, voltage_kv, ok = true)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file gb-transmission-network.v1.json]; out []; crs []; voltages [400kV, 132kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Source Registry Proof - File: gridatlas/tools/proofs/modules/202609012245-source-registry.proof.mjs (JavaScript, 147 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/modules/202609012245-source-registry.proof.mjs#L1-L147 - Page: https://code.globalgrid2050.com/explore-code/s/0659.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads substations. It is built from the check step (`check`) and the state step (`state`). - What it achieves (comment): The registry's whole value is that it tells the truth about ABSENCE, so most of these checks build a window with a source deliberately missing, half-loaded or broken, and assert that the answer says so. - What it does: It loads substations. Defines check, state. Uses libraries node:fs/promises, node:path, node:url, node:vm. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations. - Downstream impact: Used directly by 1 file: Local CI (gridatlas). - Signatures: `check(label, condition, detail)`; `state(survey, id)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Rating Envelope Proof - File: gridatlas/tools/proofs/modules/202609012250-rating-envelope.proof.mjs (JavaScript, 258 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/modules/202609012250-rating-envelope.proof.mjs#L1-L258 - Page: https://code.globalgrid2050.com/explore-code/s/0659.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads GB transmission network, 400kV and overhead lines (OHL). - What it achieves (comment): It is built from the check step (`check`), the banned step (`banned`) and the fake index helper (`fakeIndex`). The load-bearing check in this file is a NEGATIVE one: that no code path anywhere in the module produces a sum of circuit ratings. Its code works with 400 kV, 9999 MVA and 130 MVA. - What it does: It loads GB transmission network, 400kV and overhead lines (OHL). Defines check, banned, fakeIndex, N. Uses libraries node:fs, node:path, node:url. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, overhead lines (OHL), 132kV. - Inputs & outputs: In: JSON file gb-transmission-network.v1.json. Voltage levels named: 400kV, 132kV. - Downstream impact: Used directly by 1 file: Local CI (gridatlas). - Signatures: `check(name, condition, detail = '')`; `banned(text)`; `fakeIndex(nodes, edges, sites)`; `N(node, site_code, voltage_kv, ok = true)`; `implausible(product.circuits || [])` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file gb-transmission-network.v1.json]; out []; crs []; voltages [400kV, 132kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Planned Change Proof - File: gridatlas/tools/proofs/modules/202609012345-planned-change.proof.mjs (JavaScript, 390 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/modules/202609012345-planned-change.proof.mjs#L1-L390 - Page: https://code.globalgrid2050.com/explore-code/s/0660.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that fetches GB transmission network, transformers, 400kV and overhead lines (OHL). - What it achieves (comment): It is built from the check step (`check`), the fake product helper (`fakeProduct`) and the pair step (`pair`). The load-bearing checks are the negative ones: that a planned row is never presented as a circuit that exists, never walked as a path, and never made into a capacity claim. Its code works with 400 kV and 275 kV. - What it does: It fetches GB transmission network, transformers, 400kV and overhead lines (OHL). Defines 7 functions or classes, including check, N, S, fakeProduct, pair. Uses libraries node:fs, node:path, node:url. Side effects: changes the web page (DOM); reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers, 400kV, overhead lines (OHL), 275kV, 220kV. - Inputs & outputs: In: JSON file gb-transmission-network.v1.json. Voltage levels named: 400kV, 275kV, 220kV. - Downstream impact: Used directly by 1 file: Local CI (gridatlas). - Signatures: `check(name, condition, detail = '')`; `denials(codeOnly.match(/const NOT_[A-Z_]+\s*=[\s\S]*?;/g) || [])`; `N(node, site_code, voltage_kv, ok = true, transmission_owner = 'NGET')`; `S(code, name, owner = 'NGET')`; `fakeProduct({ nodes = [], sites = [], circuits = [], transformers = [], planned_changes = [] })`; `pair(e)`; `tally(field)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file gb-transmission-network.v1.json]; out []; crs []; voltages [400kV, 275kV, 220kV] - Edges: uses 0 estate files; used by 1; mentioned by 1 ### Owner Boundary Proof - File: gridatlas/tools/proofs/modules/202609012350-owner-boundary.proof.mjs (JavaScript, 349 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/modules/202609012350-owner-boundary.proof.mjs#L1-L349 - Page: https://code.globalgrid2050.com/explore-code/s/0661.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that fetches GB transmission network, transformers, 400kV and 220kV. - What it achieves (comment): It is built from the check step (`check`), the fake product helper (`fakeProduct`) and the is boundary helper (`isBoundary`). Two things must hold and are asserted by construction on small products built by hand: an owner is never inferred (a null is unknown, a circuit with an unknown end is undetermined). Its code works with 400 kV and 132 kV. - What it does: It fetches GB transmission network, transformers, 400kV and 220kV. Defines check, N, S, fakeProduct, isBoundary. Uses libraries node:fs, node:path, node:url. Side effects: changes the web page (DOM); reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers, 400kV, 220kV, 132kV. - Inputs & outputs: In: JSON file gb-transmission-network.v1.json. Voltage levels named: 400kV, 220kV, 132kV. - Downstream impact: Used directly by 1 file: Local CI (gridatlas). - Signatures: `check(name, condition, detail = '')`; `denials(codeOnly.match(/const (?:NOT_[A-Z_]+|NEVER_INFERRED)\s*=[\s\S]*?;/g) || [])`; `N(node, site_code, voltage_kv, transmission_owner, ok = true)`; `S(code, name, transmission_owner)`; `fakeProduct({ nodes = [], sites = [], circuits = [], transformers = [], planned_changes = [] })`; `isBoundary(r)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file gb-transmission-network.v1.json]; out []; crs []; voltages [400kV, 220kV, 132kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Injection Response Proof - File: gridatlas/tools/proofs/modules/202609020015-injection-response.proof.mjs (JavaScript, 429 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/modules/202609020015-injection-response.proof.mjs#L1-L429 - Page: https://code.globalgrid2050.com/explore-code/s/0661.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads GB transmission network and 400kV. - What it achieves (comment): It is built from the check step (`check`), the close step (`close`) and the graph of helper (`graphOf`). Codex's standing condition on any load-flow work is validation against a trusted solver. Its code works with 400 kV, 100 MW and 17.97 MW. - What it does: It loads GB transmission network and 400kV. Defines 6 functions or classes, including check, close, graphOf, X, shareOn. Uses libraries node:fs, node:path, node:url. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV. - Inputs & outputs: In: JSON file gb-transmission-network.v1.json. Voltage levels named: 400kV. - Downstream impact: Used directly by 1 file: Local CI (gridatlas). - Signatures: `check(name, condition, detail = '')`; `close(a, b, tol = 1e-9)`; `graphOf(nodes, edges)`; `X(node_1, node_2, x, extra = {})`; `shareOn(result, a, b)`; `nodes400(product.nodes || [])`; `add(node, mw)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file gb-transmission-network.v1.json]; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Offtakers Cartridge - File: gridatlas/tools/proofs/offtakers-cartridge.mjs (JavaScript, 100 lines) · role storage · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/offtakers-cartridge.mjs#L1-L100 - Page: https://code.globalgrid2050.com/explore-code/s/0662.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that fetches generations and the Renewable Energy Planning Database (REPD) register, using SHA-256. - What it achieves (comment): It reads JSON (`readJson`) and is built from the sha step (`sha`). The proof of a generation that composes the potential-offtakers overlay as its OWN cartridge ('UK-offtakers-overlay', slot after-cartridge, after UK-lightning-overlay). It reads `atlas/current.json`. - What it does: It fetches generations and the REPD register. Defines sha, readJson, proveOfftakersCartridge. Uses libraries node:assert/strict, node:fs, node:path, node:vm, node:crypto. Side effects: reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file current.json; JSON file generations.json. - Signatures: `export proveOfftakersCartridge(G)`; `sha(b)`; `readJson(rel)`; `regM(JSON.parse(fs.readFileSync(path.join(ROOT, 'tools/offtakers/generations.json'), 'utf8')).generations || {})` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file generations.json]; out []; crs []; voltages [] - Edges: uses 4 estate files (dynamic-import 2, import 1, estate-url 1); used by 0; mentioned by 0 ### Prepare Layer Census - File: gridatlas/tools/proofs/prepare-layer-census.mjs (JavaScript, 12 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/prepare-layer-census.mjs#L1-L12 - Page: https://code.globalgrid2050.com/explore-code/s/0662.html#f3 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. - What it achieves (name): Its name says it prepares layer census. - What it does: It loads data. Uses libraries node:fs, node:vm, node:path. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json. Out: JSON file layer-config.json. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out [JSON file layer-config.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Regional Interface Browser - File: gridatlas/tools/proofs/regional-interface.browser.mjs (JavaScript, 269 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/regional-interface.browser.mjs#L1-L269 - Page: https://code.globalgrid2050.com/explore-code/s/0662.html#f4 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads grid UK Power Networks (UKPN) secondary, UKPN transformers, secondary click and 11kV. - What it achieves (name): It reads menu (`readMenu`) and verifies file menus (`verifyFileAndMenus`). Defines `capture`, `readMenu`, `verifyFileAndMenus` and 6 more. It writes `-secondary-click.json`. - What it does: It loads grid UKPN secondary, UKPN transformers, secondary click and 11kV. Defines 9 functions or classes, including capture, readMenu, verifyFileAndMenus, open, closed. Uses libraries node:assert/strict, node:fs, playwright. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 11kV. - Inputs & outputs: In: Parquet file grid_ukpn_secondary.parquet; Parquet file ukpn_transformers.parquet. Out: JSON file -secondary-click.json; JSON file receipt.json. Voltage levels named: 11kV. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `capture(label)`; `readMenu()`; `verifyFileAndMenus()`; `open(name)`; `closed(title,panel)`; `waitFileClosed()`; `deny()`; `memory()`; `zoomTo(zoom)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [Parquet file grid_ukpn_secondary.parquet; Parquet file ukpn_transformers.parquet]; out [JSON file -secondary-click.json; JSON file receipt.json]; crs []; voltages [11kV] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Renewable Energy Planning Database (REPD) Deep Link Sweep Browser - File: gridatlas/tools/proofs/repd-deep-link-sweep.browser.mjs (JavaScript, 140 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/repd-deep-link-sweep.browser.mjs#L1-L140 - Page: https://code.globalgrid2050.com/explore-code/s/0662.html#f5 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads REPD browser registry and the REPD register. It is built from the arg step (`arg`). - What it achieves (comment): Arrive on many REPD deep links, not five. - What it does: It loads REPD browser registry and the REPD register. Defines arg. Uses libraries node:http, node:fs/promises, node:path, node:module, node:url. Side effects: changes the web page (DOM); reads or writes files; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file current.json; JSON file repd_browser_registry_202608290716.json; command-line arguments. - Signatures: `arg(flag, fallback)`; `rows(registry.records || [])` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file repd_browser_registry_202608290716.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Run Current - File: gridatlas/tools/proofs/run-current.mjs (JavaScript, 62 lines) · role electrical · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/run-current.mjs#L1-L62 - Page: https://code.globalgrid2050.com/explore-code/s/0662.html#f6 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that runs the proof belonging to the cartridge that is actually composed. - What it does: It loads data. Uses libraries node:fs, node:path, node:url. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json. - Downstream impact: Used directly by 7 files: Local CI (gridatlas); CI PR Gate (gridatlas); Shift (gridatlas); GridAtlas — Release (gridatlas); and 3 more. Reached from 25 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); GridAtlas Verify Live Workflow (gridatlas); Acceptance (gridatlas). - Signatures: `cartridge(current.cartridges || [])` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 7; mentioned by 0 ### Screen Grab Print Outcomes Browser - File: gridatlas/tools/proofs/screen-grab-print-outcomes.browser.mjs (JavaScript, 251 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/screen-grab-print-outcomes.browser.mjs#L1-L251 - Page: https://code.globalgrid2050.com/explore-code/s/0663.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that works with any ancestor hidden (`anyAncestorHidden`). - What it achieves (comment): It is built from the check step (`check`), the box step (`box`) and the any ancestor hidden helper (`anyAncestorHidden`). DOES THE SHEET SHOW WHAT THE READER WAS LOOKING AT? --------------------------------------------------------------------------- Not "did a PDF come out" -- -pdf-export-outcomes.browser.mjs already establishes that bytes arrive and that they carry a map. - What it does: It lists and searches its content. Defines check, box, anyAncestorHidden. Uses libraries playwright. Side effects: changes the web page (DOM); starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Signatures: `check(view, name, ok, detail)`; `box(selector)`; `anyAncestorHidden(selector)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Teleprint Evidence Browser - File: gridatlas/tools/proofs/teleprint-evidence.browser.mjs (JavaScript, 357 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/teleprint-evidence.browser.mjs#L1-L357 - Page: https://code.globalgrid2050.com/explore-code/s/0663.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads teleprint evidence summary. - What it achieves (comment): It reads app status (`readAppStatus`) and is built from the scenario step (`scenario`) and the ensure dir helper (`ensureDir`). "You must record evidence via at least 50 chrome sessions 25 for print source code feature and 25 for print pdf feature via our app NOT CHROME or any other browser.". - What it does: It loads teleprint evidence summary. Defines scenario, ensureDir, readAppStatus, inspectPdf, inspectSource. Uses libraries playwright, node:fs/promises, node:path. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. Out: JSON file teleprint-evidence-summary.json. - Signatures: `scenario(index)`; `ensureDir(dir)`; `readAppStatus(page)`; `inspectPdf(buffer, expect)`; `inspectSource(text)`; `files(text.match(/^FILE: /gm) || [])`; `notRead(text.match(/^NOT READ -- (\d+)/m) || [])` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out [JSON file teleprint-evidence-summary.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### UK Lightning Preview Browser - File: gridatlas/tools/proofs/uk-lightning-preview.browser.mjs (JavaScript, 184 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/uk-lightning-preview.browser.mjs#L1-L184 - Page: https://code.globalgrid2050.com/explore-code/s/0664.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads comparison from the lightning repository. It opens profile (`openProfile`). - What it achieves (comment): Compare the restored live Atlas with isolated UK lightning V2. - What it does: It loads comparison. Defines openProfile. Uses libraries node:assert/strict, node:fs, node:path, node:http, playwright. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: lightning data; GeoJSON file uk_lightning.geojson. Out: JSON file comparison.json. - Signatures: `openProfile(width,mode)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: lightning data; GeoJSON file uk_lightning.geojson]; out [JSON file comparison.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Unified Catalogue Independent Test - File: gridatlas/tools/proofs/unified-catalogue-independent.test.mjs (JavaScript, 72 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/unified-catalogue-independent.test.mjs#L1-L72 - Page: https://code.globalgrid2050.com/explore-code/s/0664.html#f2 - Synopsis: A test in the proofs folder of GridAtlas that checks Unified Layer Catalogue. It is built from the check step (`check`), the ids step (`ids`) and the expect step (`expect`). - What it achieves (comment): G201-06: independent acceptance oracle; run with Node, no browser or network. Its code works with 11 kV, 0.11 kV and 33 kV. - What it does: It tests 211kV, 133kV and transformers. Defines check, ids, expect. Uses libraries node:assert/strict. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 211kV, 133kV, transformers, 400kV, 33kV, 11kV. - Inputs & outputs: Voltage levels named: 400kV, 211kV, 133kV, 33kV, 11kV, 4kV, 0.4kV, 400V. - Downstream impact: Used directly by 2 files: Unified Owner Test Proof (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `check(name, fn)`; `ids(q, options)`; `expect(q, expected)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 211kV, 133kV, 33kV, 11kV, 4kV, 0.4kV, 400V] - Edges: uses 1 estate file (dynamic-import 1); used by 2; mentioned by 0 ### Unified Destination Contract Test - File: gridatlas/tools/proofs/unified-destination-contract.test.mjs (JavaScript, 55 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/unified-destination-contract.test.mjs#L1-L55 - Page: https://code.globalgrid2050.com/explore-code/s/0664.html#f3 - Synopsis: A test in the proofs folder of GridAtlas that checks Unified Destination Contract. It runs tests (`runTests`). - What it achieves (name): Defines `runTests` and `commit`. - What it does: It tests the REPD register. Defines runTests, commit. Uses libraries node:assert/strict. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Downstream impact: Used directly by 2 files: Unified Owner Test Proof (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `runTests(check, throws)`; `commit()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Unified Layer Catalogue Test - File: gridatlas/tools/proofs/unified-layer-catalogue.test.mjs (JavaScript, 100 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/unified-layer-catalogue.test.mjs#L1-L100 - Page: https://code.globalgrid2050.com/explore-code/s/0664.html#f4 - Synopsis: A test in the proofs folder of GridAtlas that checks Unified Layer Catalogue. It runs catalogue checks (`runCatalogueChecks`) and is built from the sorted ids helper (`sortedIds`). - What it achieves (name): Defines `runCatalogueChecks`, `throws` and `sortedIds`. Its code works with 11 kV, 33 kV and 400 kV. - What it does: It tests 11kV, 400kV, solar and 33kV. Defines runCatalogueChecks, eq, throws, id, sortedIds. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 11kV, 400kV, solar, 33kV, 211kV, 133kV. - Inputs & outputs: Voltage levels named: 400kV, 211kV, 133kV, 33kV, 11kV, 4kV, 0.4kV, 400V. - Downstream impact: Used directly by 2 files: Unified Owner Test Proof (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `runCatalogueChecks(createLayerCatalogue,normalizeLayerText)`; `eq(actual,expected,message)`; `throws(fn,message)`; `id(r)`; `sortedIds(q)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 211kV, 133kV, 33kV, 11kV, 4kV, 0.4kV, 400V] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Verify Layers Local - File: gridatlas/tools/proofs/verify-layers-local.ps1 (PowerShell, 31 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/verify-layers-local.ps1#L1-L31 - Page: https://code.globalgrid2050.com/explore-code/s/0664.html#f5 - Synopsis: A PowerShell script in the proofs folder of GridAtlas. - What it achieves (name): Its name says it verifies layers local. - What it does: Side effects: starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GridAtlas Recompose - File: gridatlas/tools/recompose.mjs (JavaScript, 484 lines) · role storage · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/recompose.mjs#L1-L484 - Page: https://code.globalgrid2050.com/explore-code/s/0665.html#f1 - Synopsis: A JavaScript module in the tools folder that uses SHA-256. It reads JSON (`readJson`) and writes JSON (`writeJson`). - What it achieves (comment): Cut a new composition generation. - What it does: It loads data. Defines 9 functions or classes, including argv, utcNow, die, scoped, minute. Uses libraries node:fs, node:path, node:child_process, node:crypto, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; JSON file live-set.json; JSON file current-v5.json; command-line arguments. - Downstream impact: Used directly by 2 files: Shift (gridatlas); GridAtlas Rollback (gridatlas). Reached from 28 other entry points, including GridAtlas Cartridge Proof Workflow (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas); GridAtlas Rollback Composition Workflow (gridatlas). - Signatures: `argv(flag, { many = false } = {})`; `utcNow()`; `die(message)`; `scoped(flag)`; `minute(s)`; `sha256(text)`; `readJson(file)`; `writeJson(file, value)`; `cartridge(current.cartridges || [])`; `forThis(edit)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file live-set.json; JSON file current-v5.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Acceptance - File: gridatlas/tools/release/acceptance.mjs (JavaScript, 80 lines) · role automation · stage unknown · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/acceptance.mjs#L1-L80 - Page: https://code.globalgrid2050.com/explore-code/s/0665.html#f2 - Synopsis: A JavaScript module in the tools folder of GridAtlas that labels cmd (`labelCmd`). - What it achieves (comment): It labels cmd (`labelCmd`) and is built from the die step (`die`) and the comment cmd helper (`commentCmd`). Step 3 of the delivery flow: the owner's acceptance of a preview generation. - What it does: Defines die, commentCmd, labelCmd. Side effects: starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `die(m, code = 1)`; `commentCmd(pr)`; `labelCmd(pr)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Check Live - File: gridatlas/tools/release/check-live.mjs (JavaScript, 85 lines) · role automation · stage unknown · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/check-live.mjs#L1-L85 - Page: https://code.globalgrid2050.com/explore-code/s/0665.html#f3 - Synopsis: A JavaScript module in the tools folder of GridAtlas that works with live bytes job (`liveBytesJob`). - What it achieves (comment): It is built from the die step (`die`), the sleep step (`sleep`) and the live bytes job helper (`liveBytesJob`). Step 5 of the delivery flow: prove the public Pages site serves the committed bytes after a release (or a rollback) reached main. - What it does: Defines die, sleep, liveBytesJob. Uses libraries node:child_process. Side effects: starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; command-line arguments. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `die(m, code = 2)`; `sleep(s)`; `liveBytesJob(sha)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 3 estate files (script-call 3); used by 0; mentioned by 0 ### Check Served - File: gridatlas/tools/release/check-served.mjs (JavaScript, 107 lines) · role automation · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/check-served.mjs#L1-L107 - Page: https://code.globalgrid2050.com/explore-code/s/0666.html#f1 - Synopsis: A JavaScript module in the tools folder of GridAtlas that reads homepage owner, using SHA-256. - What it achieves (comment): It is built from the sha256 step (`sha256`), the sleep step (`sleep`) and the get step (`get`). Step 7 of the delivery flow: a served check of www.globalgrid2050.com. - What it does: It loads homepage owner. Defines sha256, sleep, get, finish. Uses libraries node:fs, node:os, node:path, node:child_process, node:crypto. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json; JSON file homepage-owner.json; JSON file homepage.json; command-line arguments. - Downstream impact: Used directly by 2 files: Release Status (gridatlas); GridAtlas Verify Live Workflow (gridatlas). - Signatures: `sha256(b)`; `sleep(s)`; `get(url)`; `finish(status, code)`; `row(html.match(/