# 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(/[\s\S]*?<\/tr>/) || [''])` - 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 homepage-owner.json; JSON file homepage.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 2 estate files (script-call 2); used by 2; mentioned by 0 ### Cut Grid Explorer - File: gridatlas/tools/release/cut-grid-explorer.mjs (JavaScript, 106 lines) · role automation · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/cut-grid-explorer.mjs#L1-L106 - Page: https://code.globalgrid2050.com/explore-code/s/0666.html#f2 - Synopsis: A JavaScript module in the tools folder of GridAtlas that reads composition, generations, mobile arrival card edits and substations, using SHA-256. - What it achieves (comment): It is built from the read step (`read`), the hash step (`hash`) and the JSON step (`json`). Cut additive source-built explorer candidates. Never moves the live pointer. - What it does: It loads composition, generations, mobile arrival card edits and substations. Defines read, hash, json, write, arg. Uses libraries node:fs, node:path, node:assert/strict, 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. Domain terms in the code: substations. - Inputs & outputs: In: JSON file current.json; JSON file -composition.json; JSON file generations.json; JSON file mobile-arrival-card-edits.json; command-line arguments. - Signatures: `read(p)`; `hash(b)`; `json(p)`; `write(p, body)`; `arg(k)` - 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; JSON file generations.json; JSON file mobile-arrival-card-edits.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 7 estate files (script-call 7); used by 0; mentioned by 0 ### Flow Lib - File: gridatlas/tools/release/flow-lib.mjs (JavaScript, 246 lines) · role automation · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/flow-lib.mjs#L1-L246 - Page: https://code.globalgrid2050.com/explore-code/s/0666.html#f3 - Synopsis: A JavaScript module in the tools folder of GridAtlas that classifies pr (`classifyPr`), parses verdict (`parseVerdict`) and reads acceptance (`readAcceptance`). - What it achieves (comment): It classifies pr (`classifyPr`), parses verdict (`parseVerdict`) and reads acceptance (`readAcceptance`). Shared helpers for the delivery-flow scripts in `tools/release/` (cut, preview, acceptance, release, live bytes, homepage label, served check, status). - What it does: It loads data. Defines 24 functions or classes, including generationFiles, PROGRESS_DOC, runningAsAgent, GhError, gh. Uses libraries node:fs, 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. - Downstream impact: Used directly by 8 files: Acceptance (gridatlas); Check Live (gridatlas); Check Served (gridatlas); Flow Test (gridatlas); and 4 more. Reached from 1 other entry point, including GridAtlas Verify Live Workflow (gridatlas). - Signatures: `export OWNER_LOGINS(process.env.GRIDATLAS_OWNER_LOGINS || 'Ventusltd')`; `export generationFiles(G)`; `export PROGRESS_DOC(G, name)`; `export runningAsAgent()`; `export class GhError`; `export gh(endpoint, { method = 'GET', fields = {}, raw = false, input } = {})`; `export ghAll(endpoint, { perPage = 100, maxPages = 30 } = {})`; `export ghFile(repo, ref, relative)`; `export ghHeadSha(repo, branch = 'main')`; `export prsNaming(G, { pulls } = {})`; `export prFiles(number)`; `export classifyPr(pr, files, G)`; `export acceptLabel(G)`; `export parseVerdict(body, G)`; `export trustedActor(user, app, body = '')`; `export decideAcceptance(G, { comments = [], events = [] })`; `export readAcceptance(G, { since, pulls } = {})`; `export cutAtUtc(G)`; `export workflowRuns(repo, workflow, { branch, headSha, event, perPage = 20 } = {})`; `export checkRunsFor(repo, sha)`; `export dispatchWorkflow(repo, workflow, ref, inputs = {})`; `export openDraftPr({ repo = GRIDATLAS, head, base = 'main', title, body })`; `export writeJson(file, data)`; `export readCommittedJson(rev, relative, cwd = ROOT)`; `export pad(rows)` - 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 (script-call 1, estate-url 1); used by 8; mentioned by 0 ### Flow Test - File: gridatlas/tools/release/flow.test.mjs (JavaScript, 91 lines) · role test · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/flow.test.mjs#L1-L91 - Page: https://code.globalgrid2050.com/explore-code/s/0666.html#f4 - Synopsis: A test in the tools folder of GridAtlas that checks Flow Lib and GridAtlas — Release. It is built from the comment step (`comment`). - What it achieves (comment): Offline tests of the delivery-flow rules in `flow-lib.mjs` (run by `tools/ci/pr-gate.mjs`, check release-tools). - What it does: It tests its inputs. Defines comment, ev, pr, f. Uses libraries node:test, 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. - Inputs & outputs: In: JSON file current.json. - Signatures: `comment(body, at, extra = {})`; `ev(event, at, actor = owner, app = null)`; `pr(ref)`; `f(...names)` - 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 2); used by 0; mentioned by 0 ### Grid Explorer Proof - File: gridatlas/tools/release/grid-explorer-proof.mjs (JavaScript, 53 lines) · role automation · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/grid-explorer-proof.mjs#L1-L53 - Page: https://code.globalgrid2050.com/explore-code/s/0666.html#f5 - Synopsis: A JavaScript module in the tools folder of GridAtlas that reads station, using SHA-256. It proves explorer generation (`proveExplorerGeneration`). - What it achieves (name): Defines `read`, `hash` and `proveExplorerGeneration`. It reads `tools/train/station-source.json`. - What it does: It loads station. Defines read, hash, proveExplorerGeneration. Uses libraries node:fs, node:path, node:assert/strict, node:url, 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 station-source.json. - Downstream impact: Used directly by 4 files: Grid Journey Preview Proof (gridatlas); Grid Vicinity Proof (gridatlas); UK Gazetteer Flyto Proof (gridatlas); Cut Grid Explorer (gridatlas). - Signatures: `export proveExplorerGeneration(G, id)`; `read(p)`; `hash(b)` - 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 station-source.json]; out []; crs []; voltages [] - Edges: uses 6 estate files (script-call 6); used by 4; mentioned by 0 ### Homepage Bump - File: gridatlas/tools/release/homepage-bump.mjs (JavaScript, 247 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/homepage-bump.mjs#L1-L247 - Page: https://code.globalgrid2050.com/explore-code/s/0667.html#f1 - Synopsis: A JavaScript module in the tools folder of GridAtlas that reads homepage owner, using SHA-256. - What it achieves (comment): It cleans origin main (`cleanAtOriginMain`) and is built from the die step (`die`) and the git in helper (`gitIn`). Step 6 of the delivery flow: put the released GridAtlas on www.globalgrid2050.com. - What it does: It loads homepage owner. Defines 9 functions or classes, including die, ok, sh, gitIn, sha256. Uses libraries node:fs, 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.json; JSON file homepage-owner.json; command-line arguments. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `die(m)`; `ok(m)`; `sh(cmd, argv, cwd, opts = {})`; `gitIn(dir, ...a)`; `sha256(b)`; `cleanAtOriginMain(dir, name)`; `pointerCommit()`; `liveBytesPassed(sha)`; `job(gh(`repos/${GRIDATLAS}/actions/runs/${run.id}/jobs?per_page=50`).jobs || [])`; `homepageGridatlas(text)` - 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 homepage.json; JSON file homepage-owner.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 2 estate files (script-call 2); used by 0; mentioned by 0 ### GridAtlas — Release - File: gridatlas/tools/release/lib.mjs (JavaScript, 213 lines) · role automation · stage ingest - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/lib.mjs#L1-L213 - Page: https://code.globalgrid2050.com/explore-code/s/0667.html#f2 - Synopsis: A JavaScript module in the tools folder that derives current (`deriveCurrent`), cleans tree (`cleanTree`) and runs gates (`runGates`), using SHA-256. - What it achieves (comment): It parses args (`parseArgs`), reads text (`readText`) and derives current (`deriveCurrent`). Shared helpers for `tools/release/release-generation.mjs` and `tools/release/rollback-generation.mjs`. - What it does: It loads data. Defines 23 functions or classes, including registeredLoaderOf, pointerSlots, die, parseArgs, run. 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. - Downstream impact: Used directly by 18 files: Build (gridatlas); Acceptance (gridatlas); Check Live (gridatlas); Check Served (gridatlas); and 14 more. Reached from 15 other entry points, including GridAtlas Cartridge Proof Workflow (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas); GridAtlas Verify Live Workflow (gridatlas). - Signatures: `export registeredLoaderOf(buffer)`; `export pointerSlots(pointer)`; `export die(tool, message)`; `export parseArgs(argv, spec)`; `export run(cmd, args, { cwd = ROOT, allowFail = false, input } = {})`; `export git(...args)`; `export gitOk(...args)`; `export gitBlob(rev, relative)`; `export sha256(buffer)`; `export sha256File(relative)`; `export readText(relative)`; `export exists(relative)`; `export deriveCurrent(manifestText)`; `export rerootForPreview(currentText)`; `export cleanTree()`; `export changedPaths()`; `export isTracked(relative)`; `export parityFailRows()`; `export runGates({ expectGeneration, proofs = [], parityBaseline = [], rollbackTo = null })`; `export printGates(rows)`; `export commitWithMessage(message)`; `export trailerBlock(trailers)`; `record(gate, ok, detail, out)` - 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 6 estate files (script-call 6); used by 18; mentioned by 0 ### Loader Swap - File: gridatlas/tools/release/loader-swap.mjs (JavaScript, 153 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/loader-swap.mjs#L1-L153 - Page: https://code.globalgrid2050.com/explore-code/s/0667.html#f3 - Synopsis: A JavaScript module in the tools folder of GridAtlas that works with cli check (`cliCheck`) and cli release (`cliRelease`), using SHA-256. - What it achieves (comment): It is built from the die step (`die`), the cli check helper (`cliCheck`) and the cli release helper (`cliRelease`). The live loader on its own: step 1 (and its rollback) of a two-step release of a generation whose own loader differs from the live one (`docs/RELEASE.md` "Loader first, then the pointer"; `docs/LIGHTNING-CARTRIDGE.md` "Cache window"). - What it does: It loads data. Defines 7 functions or classes, including proveLoaderSwap, die, ok, cliCheck, cliRelease. 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 current.json; command-line arguments. - Downstream impact: Used directly by 3 files: CI PR Gate (gridatlas); Loader Swap Test (gridatlas); Rollback Generation (gridatlas). Reached from 2 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Map Promotion Rehearsal (gridatlas). - Signatures: `export proveLoaderSwap({ fromLoader, toLoader, pointerText })`; `die(m)`; `ok(m)`; `cliCheck(argv)`; `cliRelease(argv)`; `finish(code)`; `abort()` - 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 (import 3); used by 3; mentioned by 0 ### Loader Swap Test - File: gridatlas/tools/release/loader-swap.test.mjs (JavaScript, 158 lines) · role test · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/loader-swap.test.mjs#L1-L158 - Page: https://code.globalgrid2050.com/explore-code/s/0668.html#f1 - Synopsis: A test in the tools folder of GridAtlas that checks GridAtlas — Scope and GridAtlas — Release, using SHA-256. - What it achieves (comment): It is built from the sandbox step (`sandbox`), the commit step (`commit`) and the node step (`node`). Offline tests of the loader-only step (`tools/release/loader-swap.mjs`), the pr-gate rule that calls it, and the guarded loader rollback in `rollback-generation.mjs`. - What it does: It tests its inputs. Defines sandbox, g, commit, node, cleanup. Uses libraries node:test, node:assert/strict, node:fs, node:os, 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. - Inputs & outputs: Out: JSON file current.json. - Signatures: `sandbox()`; `g(args, cwd = wt)`; `commit(msg)`; `node(args)`; `cleanup()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [JSON file current.json]; crs []; voltages [] - Edges: uses 5 estate files (script-call 5); used by 0; mentioned by 0 ### Map Promotion Rehearsal - File: gridatlas/tools/release/map-promotion-rehearsal.mjs (JavaScript, 85 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/map-promotion-rehearsal.mjs#L1-L85 - Page: https://code.globalgrid2050.com/explore-code/s/0668.html#f2 - Synopsis: A JavaScript module in the tools folder of GridAtlas that reads before, after and rollback. - What it achieves (comment): It is built from the run step (`run`), the git step (`git`) and the JSON step (`json`). Full local-only release and route-C rollback; never push or read acceptance. - What it does: It loads before, after and rollback. Defines run, git, json, invoke. Uses libraries node:fs, node:path, node:assert/strict, 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 before.json; JSON file after.json; JSON file rollback.json. Out: JSON file map-promotion-rehearsal.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `run(cwd,command,args,{allowFailure=false}={})`; `output(r.stdout||'')`; `git(cwd,...args)`; `json(name)`; `invoke(script,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 before.json; JSON file after.json; JSON file rollback.json]; out [JSON file map-promotion-rehearsal.json]; crs []; voltages [] - Edges: uses 3 estate files (script-call 3); used by 1; mentioned by 0 ### Publish Preview - File: gridatlas/tools/release/publish-preview.mjs (JavaScript, 188 lines) · role automation · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/publish-preview.mjs#L1-L188 - Page: https://code.globalgrid2050.com/explore-code/s/0668.html#f3 - Synopsis: A JavaScript module in the tools folder of GridAtlas that works with change set (`changeSet`). - What it achieves (comment): It is built from the die step (`die`), the show step (`show`) and the check step (`check`). Step 2 of the delivery flow: publish one or more generations cut by `tools/lightning/make-generation.mjs` (step 1) as a preview PR. - What it does: It loads data. Defines 6 functions or classes, including die, ok, show, check, changeSet. Uses libraries node:fs, 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. - 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)`; `ok(m)`; `show(rev, rel)`; `check(name, pass, detail = '')`; `changeSet()`; `version(G)`; `scopeTail(meta[G].acceptance?.scope || '')` - 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 2 estate files (import 2); used by 0; mentioned by 0 ### Release Accepted - File: gridatlas/tools/release/release-accepted.mjs (JavaScript, 106 lines) · role automation · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/release-accepted.mjs#L1-L106 - Page: https://code.globalgrid2050.com/explore-code/s/0668.html#f4 - Synopsis: A JavaScript module in the tools folder of GridAtlas. It is built from the die step (`die`). - What it achieves (comment): Step 4 of the delivery flow: release an ACCEPTED preview generation. - What it does: It loads data. Defines die, ok. Uses libraries node:fs, 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; command-line arguments. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `die(m)`; `ok(m)` - 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 ### Release Generation - File: gridatlas/tools/release/release-generation.mjs (JavaScript, 367 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/release-generation.mjs#L1-L367 - Page: https://code.globalgrid2050.com/explore-code/s/0669.html#f1 - Synopsis: A JavaScript module in the tools folder of GridAtlas that checks prep (`checkPrep`), using SHA-256. - What it achieves (comment): It checks prep (`checkPrep`) and is built from the die step (`die`) and the step step (`step`). Release a published preview generation G to the live route. - What it does: It lists and searches its content. Defines 6 functions or classes, including die, step, ok, finish, checkPrep. Uses libraries node:fs, node:path. 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; command-line arguments. Out: JSON file current.json. - Downstream impact: Used directly by 3 files: Loader Swap Test (gridatlas); Map Promotion Rehearsal (gridatlas); Release Accepted (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `die(m)`; `step(m)`; `ok(m)`; `finish(code)`; `checkPrep(label)`; `restore()` - 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 current.json]; crs []; voltages [] - Edges: uses 2 estate files (import 1, estate-url 1); used by 3; mentioned by 0 ### Release Status - File: gridatlas/tools/release/release-status.mjs (JavaScript, 147 lines) · role automation · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/release-status.mjs#L1-L147 - Page: https://code.globalgrid2050.com/explore-code/s/0669.html#f2 - Synopsis: A JavaScript module in the tools folder of GridAtlas that reads homepage owner. - What it achieves (comment): It is built from the is line helper (`isLine`), the live bytes helper (`liveBytes`) and the pr state helper (`prState`). Where every candidate is in the delivery flow (`docs/RELEASE.md`). - What it does: It loads homepage owner. Defines isLine, liveBytes, ci, prState. Uses libraries node:fs, 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 homepage.json; JSON file homepage-owner.json; command-line arguments. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `pinnedOnMain(gh(`repos/${GRIDATLAS}/contents/atlas/v?ref=${mainSha}`) || [])`; `isLine(g)`; `job(gh(`repos/${GRIDATLAS}/actions/runs/${run.id}/jobs?per_page=50`).jobs || [])`; `ci(sha)`; `prState(p)` - 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 homepage.json; JSON file homepage-owner.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 3 estate files (script-call 3); used by 0; mentioned by 0 ### Rollback Generation - File: gridatlas/tools/release/rollback-generation.mjs (JavaScript, 204 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/rollback-generation.mjs#L1-L204 - Page: https://code.globalgrid2050.com/explore-code/s/0670.html#f1 - Synopsis: A JavaScript module in the tools folder of GridAtlas that works with rollback loader only (`rollbackLoaderOnly`), using SHA-256. - What it achieves (comment): It is built from the die step (`die`), the step step (`step`) and the finish step (`finish`). Roll a release back by reverting its release commit (route C of `RELEASE-COMMANDS.md`) and prove the pointer is restored byte for byte. - What it does: It lists and searches its content. Defines 7 functions or classes, including die, step, ok, finish, abort. Uses libraries node:fs, node:path. 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; command-line arguments. - Downstream impact: Used directly by 2 files: Loader Swap Test (gridatlas); Map Promotion Rehearsal (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `die(m)`; `step(m)`; `ok(m)`; `finish(code)`; `abort()`; `rollbackLoaderOnly(R)` - 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 2 estate files (import 2); used by 2; mentioned by 0 ### Split Lightning Cartridge - File: gridatlas/tools/release/split-lightning-cartridge.mjs (JavaScript, 136 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/split-lightning-cartridge.mjs#L1-L136 - Page: https://code.globalgrid2050.com/explore-code/s/0670.html#f2 - Synopsis: A JavaScript module in the tools folder of GridAtlas that reads substations, using SHA-256. - What it achieves (comment): It reads JSON (`readJson`) and is built from the die step (`die`) and the rel step (`rel`). Cut a MODULAR lightning generation G from a monolithic one R: the same composition, with the UK lightning overlay as its own cartridge ('UK-lightning-overlay', slot after-cartridge, after single-line diagram (SLD)-sandbox) and SLD-sandbox back to the original cartridge (435,218 bytes). It reads `atlas/current.json`. - What it does: It loads substations. Defines die, rel, abs, readJson. Uses libraries 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. Domain terms in the code: substations. - 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)`; `rel(...p)`; `abs(p)`; `readJson(p)`; `lightningSources(refSld.data_sources || [])` - 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 1 estate file (import 1); used by 0; mentioned by 0 ### GridAtlas Rollback - File: gridatlas/tools/rollback.mjs (JavaScript, 251 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/rollback.mjs#L1-L251 - Page: https://code.globalgrid2050.com/explore-code/s/0670.html#f3 - Synopsis: A JavaScript module in the tools folder that works with committed bytes (`committedBytes`), using SHA-256. It reads JSON (`readJson`) and writes JSON (`writeJson`). - What it achieves (comment): Roll the live composition back to a generation that has already shipped. - What it does: It loads data. Defines argv, die, readJson, writeJson, committedBytes. 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; command-line arguments. - Downstream impact: Used directly by 2 files: GridAtlas — Release (gridatlas); GridAtlas Rollback Composition Workflow (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: `argv(flag)`; `die(message)`; `readJson(file)`; `writeJson(file, value)`; `committedBytes(relative)` - 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; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (script-call 1); used by 2; mentioned by 0 ### SatNav Browser - File: gridatlas/tools/satnav/browser.py (Python, 405 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/browser.py#L1-L405 - Page: https://code.globalgrid2050.com/explore-code/s/0671.html#f1 - Synopsis: A Python module in the tools folder of GridAtlas covering postcodes, the Renewable Energy Planning Database (REPD) register and substations, and uses data from postcodes.io and the SatNav repository. - What it achieves (name): It checks launcher during search reflow (`check_launcher_during_search_reflow`) and is built from the ready step (`ready`) and the choose compass helper (`choose_compass`). Defines `load_map`, `click_launcher`, `open_satnav` and 10 more. - What it does: It draws postcodes, the REPD register and substations. Defines 13 functions or classes, including load_map, click_launcher, open_satnav, check_launcher_during_search_reflow, ready. Uses libraries json, math, os, urllib.parse, playwright.sync_api. 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: postcodes, the REPD register, substations. - Signatures: `load_map(page, url)`; `click_launcher(page)`; `open_satnav(page)`; `check_launcher_during_search_reflow(page)`; `ready(page, url)`; `choose_compass(page, name, point)`; `open_native_card(page)`; `open_card(page)`; `click_uncovered_map(page)`; `pick_search_result(page, query, result_selector)`; `stale_project_refused(page, action)`; `postcode_handoff(page, use_live_provider)`; `selected(page, kind)` - 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 Build Line Preview - File: gridatlas/tools/satnav/build-line-preview.mjs (JavaScript, 35 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/build-line-preview.mjs#L1-L35 - Page: https://code.globalgrid2050.com/explore-code/s/0671.html#f2 - Synopsis: A JavaScript module in the tools folder of GridAtlas that uses SHA-256. - What it achieves (name): Defines `read`, `write` and `hash`. It reads `current.json` and writes `index.html`. - What it does: It loads data. Defines read, write, hash. Uses libraries node:assert/strict, node:crypto, node:fs. Side effects: reads or writes files. - 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: JSON file current.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `read(path)`; `write(path, text)`; `hash(text)` - 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]; out []; crs []; voltages [] - Edges: uses 1 estate file (url-import-meta 1); used by 1; mentioned by 0 ### SatNav Build Unified Agent1 CI - File: gridatlas/tools/satnav/build-unified-agent1-ci.mjs (JavaScript, 73 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/build-unified-agent1-ci.mjs#L1-L73 - Page: https://code.globalgrid2050.com/explore-code/s/0671.html#f3 - Synopsis: A JavaScript module in the tools folder of GridAtlas that reads composition, using SHA-256. It is built from the read step (`read`) and the sha step (`sha`). - What it achieves (comment): Build an isolated, disposable CI composition; never change production or a released generation. - What it does: It loads composition. Defines read, sha. Uses libraries node:assert/strict, node:crypto, node:fs, node:url, node:path. Side effects: reads or writes files. - 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: JSON file current.json; JSON file -composition.json; command-line arguments. Out: JSON file current.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `read(p)`; `sha(b)` - 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; JSON file -composition.json; command-line arguments]; out [JSON file current.json]; crs []; voltages [] - Edges: uses 1 estate file (url-import-meta 1); used by 1; mentioned by 0 ### SatNav Build - File: gridatlas/tools/satnav/build.mjs (JavaScript, 60 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/build.mjs#L1-L60 - Page: https://code.globalgrid2050.com/explore-code/s/0671.html#f4 - Synopsis: A JavaScript module in the tools folder of GridAtlas that reads the Renewable Energy Planning Database (REPD) register, using SHA-256. - What it achieves (name): Defines `read`, `hash` and `write`. It reads `atlas/current.json` and writes `index.html`. - What it does: It loads the REPD register. Defines read, hash, write. Uses libraries node:fs, node:path, node:crypto, node:url. Side effects: reads or writes files. - 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. - Inputs & outputs: In: JSON file current.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `read(p)`; `hash(s)`; `write(p,s)` - 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]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### SatNav Compact Browser - File: gridatlas/tools/satnav/compact-browser.py (Python, 170 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/compact-browser.py#L1-L170 - Page: https://code.globalgrid2050.com/explore-code/s/0672.html#f1 - Synopsis: A Python command-line tool in the tools folder of GridAtlas using data from the SatNav repository. It maps canvas tap (`map_canvas_tap`) and checks browser (`check_browser`). - What it achieves (comment): Compact SatNav acceptance against the real GridAtlas composer. - What it does: Defines surface_distance, leg_point, map_canvas_tap, overlay_roles, check_browser. Uses libraries math, os, re, urllib.parse, playwright.sync_api. 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. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `surface_distance(first, second)`; `leg_point(start, end, fraction, offset)`; `map_canvas_tap(page, excluded=None)`; `overlay_roles(page, required, absent=())`; `check_browser(browser, label, width, height)` - 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 0; mentioned by 0 ### SatNav Compass Browser - File: gridatlas/tools/satnav/compass-browser.py (Python, 206 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/compass-browser.py#L1-L206 - Page: https://code.globalgrid2050.com/explore-code/s/0672.html#f2 - Synopsis: A Python command-line tool in the tools folder of GridAtlas that checks notice (`check_notice`) and heading (`check_heading`), checks viewport (`check_viewport`) and calculates angles. - What it achieves (comment): It is built from the initial bearing helper (`initial_bearing`), the expect true bearing helper (`expect_true_bearing`) and the sample step (`sample`). Touch-test the real GridAtlas compass page, using simulated heading and GPS samples. - What it does: It draws its content. Defines 6 functions or classes, including initial_bearing, expect_true_bearing, check_notice, sample, check_heading. Uses libraries importlib.util, math, os, pathlib, re. Side effects: changes the web page (DOM); reads or writes files. - 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. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `initial_bearing(from_point, to_point)`; `expect_true_bearing(reading, origin_label, start, end)`; `check_notice(page)`; `sample(page, event_type, **properties)`; `check_heading(page)`; `check_viewport(browser, label, width, height)` - 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 0; mentioned by 0 ### SatNav Convergence Browser - File: gridatlas/tools/satnav/convergence-browser.py (Python, 219 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/convergence-browser.py#L1-L219 - Page: https://code.globalgrid2050.com/explore-code/s/0672.html#f3 - Synopsis: A Python command-line tool in the tools folder of GridAtlas that checks asset actions (`check_asset_actions`) and opens walk panel (`open_walk_panel`) (units: kV), covering 11kV and substations. - What it achieves (comment): It is built from the walk diagnostic helper (`walk_diagnostic`) and the check step (`check`). Combined regional/SatNav browser acceptance; uses the existing GPS boundary spy. - What it does: It lists and searches 11kV and substations. Defines check_asset_actions, walk_diagnostic, open_walk_panel, check. Uses libraries os, json, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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: 11kV, substations. - Inputs & outputs: Voltage levels named: 11kV. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `check_asset_actions(page)`; `walk_diagnostic(page, engine, viewport)`; `open_walk_panel(page)`; `check(browser, engine, viewport)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [11kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Offline Plan - File: gridatlas/tools/satnav/field-reliability/offline-plan.mjs (JavaScript, 179 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/field-reliability/offline-plan.mjs#L1-L179 - Page: https://code.globalgrid2050.com/explore-code/s/0673.html#f1 - Synopsis: A JavaScript module in the field reliability folder of GridAtlas that formats distance (`formatDistance`), shows pin (`showPin`) and draws SVG graphics. It formats distance (`formatDistance`) and shows pin (`showPin`). - What it achieves (comment): Saves the planned pins on this device only, after the user presses Save. It responds to statechange events. - What it does: It draws its content. Defines 11 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 '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: Out: SVG drawing. - Signatures: `export offlinePlanDocument(pins, maths)`; `export mountOfflinePlan({container, getPins, maths})`; `fieldPlan(pins, maths)`; `displayPlan()`; `byId(id)`; `formatDistance(m)`; `scaleX(maxX - minX)`; `showPin()`; `activateWorker(scope)`; `finish()`; `cleanup()`; `change(action)` - 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: 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 ### State - File: gridatlas/tools/satnav/field-reliability/state.mjs (JavaScript, 17 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/field-reliability/state.mjs#L1-L17 - Page: https://code.globalgrid2050.com/explore-code/s/0673.html#f2 - Synopsis: A JavaScript module in the field reliability folder of GridAtlas. It is built from the assess field state helper (`assessFieldState`). - What it achieves (comment): Pure field-state adapter: no watch, cache, DOM, or permission side effects. - What it does: It calculates its inputs. Defines assessFieldState. - 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. - Downstream impact: Used directly by 1 file: State Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export assessFieldState({tracking=false,hidden=false,resumedAt=null,fix=null,now=Date.now(),networkOnline=null,verifiedOfflineResources=false...)` - 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 1; mentioned by 0 ### State Test - File: gridatlas/tools/satnav/field-reliability/state.test.mjs (JavaScript, 33 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/field-reliability/state.test.mjs#L1-L33 - Page: https://code.globalgrid2050.com/explore-code/s/0673.html#f3 - Synopsis: A test in the field reliability folder of GridAtlas that checks State. It runs tests (`runTests`). - What it achieves (name): Defines `runTests`. - What it does: It tests its inputs. Defines runTests. Uses libraries node:url, node:path. - 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: command-line arguments. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `runTests(assess,quality)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · 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 1; mentioned by 0 ### SatNav G203 04 Saved Plan Test - File: gridatlas/tools/satnav/g203-04-saved-plan.test.mjs (JavaScript, 55 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/g203-04-saved-plan.test.mjs#L1-L55 - Page: https://code.globalgrid2050.com/explore-code/s/0673.html#f4 - Synopsis: A test in the tools folder of GridAtlas that checks G203 04 SatNav Walk Saved Plan. It is built from the fixture step (`fixture`). - What it achieves (comment): G203-04: actual cartridge source executed in a small mocked browser; real browser acceptance separate. - What it does: It tests its inputs. Defines 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 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: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `fixture(path, secure = true)`; `createElement(tag)` - 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 ### SatNav G203 Dock Browser - File: gridatlas/tools/satnav/g203-dock-browser.py (Python, 156 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/g203-dock-browser.py#L1-L156 - Page: https://code.globalgrid2050.com/explore-code/s/0673.html#f5 - Synopsis: A Python command-line tool in the tools folder of GridAtlas that opens map (`open_map`). - What it achieves (comment): It is built from the diagnostic step (`diagnostic`), the historical step (`historical`) and the row ok helper (`row_ok`). G203-01 real-map dock comparison; injected layout is not a published release. - What it does: It lists and searches its content. Defines open_map, diagnostic, historical, row_ok, run. Uses libraries os, json, re, pathlib, runpy. Side effects: changes the web page (DOM); reads or writes files. - 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: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `open_map(page,route,require_dock=True)`; `diagnostic(page)`; `historical(browser,name,w,h,generation)`; `row_ok(rects,w,h)`; `run(browser,name,w,h)` - 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 1; mentioned by 0 ### SatNav G203 Soak - File: gridatlas/tools/satnav/g203-soak.py (Python, 48 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/g203-soak.py#L1-L48 - Page: https://code.globalgrid2050.com/explore-code/s/0673.html#f6 - Synopsis: A Python module in the tools folder of GridAtlas. - What it achieves (comment): Matched 30-minute candidate soak; simulated GPS, actual application, no auto-reload. - What it does: Uses libraries os, time, json, pathlib, runpy. Side effects: changes the web page (DOM); reads or writes files. - 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: 11kV. - Inputs & outputs: Voltage levels named: 11kV. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [11kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### SatNav G203 Swarm 05 Offline Browser - File: gridatlas/tools/satnav/g203-swarm-05-offline-browser.py (Python, 119 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/g203-swarm-05-offline-browser.py#L1-L119 - Page: https://code.globalgrid2050.com/explore-code/s/0673.html#f7 - Synopsis: A Python command-line tool in the tools folder of GridAtlas that works with no gps (`no_gps`). - What it achieves (comment): It is built from the live step (`live`), the pins step (`pins`) and the put step (`put`). G203-SWARM-05: exact composed route, real service worker and CacheStorage. - What it does: It loads data. Defines 7 functions or classes, including live, pins, put, no_gps, key_present. Uses libraries os, pathlib, runpy, playwright.sync_api. 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 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: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `live(page)`; `pins(page)`; `put(page, points)`; `no_gps(page)`; `key_present(page)`; `save(area)`; `run(browser, name)` - 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 1; mentioned by 0 ### SatNav G203 Verify Composition - File: gridatlas/tools/satnav/g203-verify-composition.mjs (JavaScript, 12 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/g203-verify-composition.mjs#L1-L12 - Page: https://code.globalgrid2050.com/explore-code/s/0673.html#f8 - Synopsis: A JavaScript module in the tools folder of GridAtlas that uses SHA-256. - What it achieves (name): It reads `atlas/current.json`. - What it does: It loads data. Uses libraries node:fs, node:crypto, node:path, node:assert/strict. Side effects: reads or writes files. - 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: JSON file current.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - 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]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### SatNav G203 Viewport Browser - File: gridatlas/tools/satnav/g203-viewport-browser.py (Python, 32 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/g203-viewport-browser.py#L1-L32 - Page: https://code.globalgrid2050.com/explore-code/s/0673.html#f9 - Synopsis: A Python command-line tool in the tools folder of GridAtlas. It is built from the run step (`run`). - What it achieves (comment): G203: real pinned UK Power Networks (UKPN) viewport, no duplicate download, source eviction and neon regression. - What it does: Defines run. Uses libraries os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `run(browser,name)` - 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 0; mentioned by 0 ### Convergence 2km - File: gridatlas/tools/satnav/guidance/convergence-2km.mjs (JavaScript, 72 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/guidance/convergence-2km.mjs#L1-L72 - Page: https://code.globalgrid2050.com/explore-code/s/0674.html#f1 - Synopsis: A JavaScript module in the guidance folder of GridAtlas that classifies direct leg (`classifyDirectLeg`), reconciles navigation layers (`reconcileNavigationLayers`) and prepares asset destination (`prepareAssetDestination`) (units: kV). - What it achieves (comment): It classifies direct leg (`classifyDirectLeg`), prepares asset destination (`prepareAssetDestination`) and ranks higher voltage (`rankHigherVoltage`). Direct navigation is not a pedestrian route or evidence of access. - What it does: It calculates its inputs. Defines 7 functions or classes, including classifyDirectLeg, directLegGeometry, reconcileNavigationLayers, prepareAssetDestination, valid. - 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 3 files: Convergence 2km Test (gridatlas); Ordered Convergence 2km (gridatlas); Direct Convergence 2km (gridatlas). Reached from 3 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); CI PR Gate (gridatlas); Map Promotion Rehearsal (gridatlas). - Signatures: `export classifyDirectLeg(maths, from, to)`; `export directLegGeometry(maths, from, to)`; `export reconcileNavigationLayers(map, ids)`; `export prepareAssetDestination(maths, fix, at, tracking, quality)`; `export rankHigherVoltage(nodes, origin, distanceKm, minimumKv = 33, limit = 5)`; `valid(p)` - 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 3; mentioned by 1 ### Convergence 2km Test - File: gridatlas/tools/satnav/guidance/convergence-2km.test.mjs (JavaScript, 153 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/guidance/convergence-2km.test.mjs#L1-L153 - Page: https://code.globalgrid2050.com/explore-code/s/0674.html#f2 - Synopsis: A test in the guidance folder of GridAtlas that checks Convergence 2km and Ordered Convergence 2km. - What it achieves (name): Defines `fix`. - What it does: It tests 11kV. Defines to, fix. Uses libraries node:test, node:assert/strict, node:vm. Side effects: reads or writes files. - 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: 11kV. - Inputs & outputs: Voltage levels named: 11kV. - Downstream impact: Used directly by 2 files: CI PR Gate (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). Reached from 1 other entry point, including Map Promotion Rehearsal (gridatlas). - Signatures: `to(metres)`; `fix(at,timestampMs)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [11kV] - Edges: uses 4 estate files (import 4); used by 2; mentioned by 0 ### Convergence Preview - File: gridatlas/tools/satnav/guidance/convergence-preview.mjs (JavaScript, 83 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/guidance/convergence-preview.mjs#L1-L83 - Page: https://code.globalgrid2050.com/explore-code/s/0674.html#f3 - Synopsis: A JavaScript module in the guidance folder of GridAtlas that reads manifest (`readManifest`), using SHA-256. - What it achieves (comment): It reads manifest (`readManifest`) and is built from the sha step (`sha`) and the pin step (`pin`). Run `regional-preview.mjs` first in a checkout containing both PRs. It reads `atlas/current.json` and writes `/current.json`. - What it does: It loads data. Defines sha, readManifest, pin, verify. Uses libraries node:fs, node:path, node:assert/strict, node:crypto. Side effects: reads or writes files. - 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: JSON file current.json. Out: JSON file current.json. - Downstream impact: Used directly by 2 files: CI PR Gate (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). Reached from 1 other entry point, including Map Promotion Rehearsal (gridatlas). - Signatures: `sha(bytes)`; `readManifest(dir)`; `pin(entry,filename,bytes)`; `verify(dir,entry)` - 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]; out [JSON file current.json]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Convergence Unlimited - File: gridatlas/tools/satnav/guidance/convergence-unlimited.mjs (JavaScript, 69 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/guidance/convergence-unlimited.mjs#L1-L69 - Page: https://code.globalgrid2050.com/explore-code/s/0674.html#f4 - Synopsis: A JavaScript module in the guidance folder of GridAtlas that classifies direct leg (`classifyDirectLeg`), reconciles navigation layers (`reconcileNavigationLayers`) and prepares asset destination (`prepareAssetDestination`) (units: kV). - What it achieves (comment): It classifies direct leg (`classifyDirectLeg`), prepares asset destination (`prepareAssetDestination`) and ranks higher voltage (`rankHigherVoltage`). Direct navigation is not a pedestrian route or evidence of access. - What it does: It calculates its inputs. Defines 7 functions or classes, including classifyDirectLeg, directLegGeometry, reconcileNavigationLayers, prepareAssetDestination, valid. - 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 5 files: Distance Dock Proof (gridatlas); Ordered Convergence Unlimited (gridatlas); Orient17a Continuity Ordered (gridatlas); Orient17a Ordered (gridatlas); and 1 more. - Signatures: `export classifyDirectLeg(maths, from, to)`; `export directLegGeometry(maths, from, to)`; `export reconcileNavigationLayers(map, ids)`; `export prepareAssetDestination(maths, fix, at, tracking, quality)`; `export rankHigherVoltage(nodes, origin, distanceKm, minimumKv = 33, limit = 5)`; `valid(p)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/tools/satnav/guidance/convergence-2km.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 5; mentioned by 0 ### Ordered Convergence 2km - File: gridatlas/tools/satnav/guidance/ordered-convergence-2km.mjs (JavaScript, 125 lines) · role render · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/guidance/ordered-convergence-2km.mjs#L1-L125 - Page: https://code.globalgrid2050.com/explore-code/s/0674.html#f5 - Synopsis: A JavaScript module in the guidance folder of GridAtlas that creates waypoint guidance (`createWaypointGuidance`), selects leg (`selectLeg`) and sets route (`setRoute`). - What it achieves (code): It copies pin (`copyPin`), creates waypoint guidance (`createWaypointGuidance`) and selects leg (`selectLeg`). Its `createWaypointGuidance` function gives guidance state with next target, distance, bearing, remaining distance and bounded deviation information from Geographical maths and compass modules, uniquely identified WGS84 pins, timestamped GPS fixes (VEDIC: follow waypoints). - What it does: Defines 9 functions or classes, including copyPin, createWaypointGuidance, selectLeg, setRoute, snapshot. - 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: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 2 files: Convergence 2km Test (gridatlas); Direct Convergence 2km (gridatlas). Reached from 3 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); CI PR Gate (gridatlas); Map Promotion Rehearsal (gridatlas). - Signatures: `export createWaypointGuidance(maths, compass)`; `copyPin(pin, ids)`; `selectLeg()`; `setRoute(pins)`; `snapshot(status, quality)`; `locate(fix, now = Date.now())`; `bearingToNext()`; `unsupported()`; `limitReceipt()` - VEDIC: FOLLOW WAYPOINTS (GG2050-VEDIC-000097): SatNav · Location and navigation data. Geographical maths and compass modules, uniquely identified WGS84 pins, timestamped GPS fixes -> Guidance state with next target, distance, bearing, remaining distance and bounded deviation information. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 1 ### Ordered Convergence Unlimited - File: gridatlas/tools/satnav/guidance/ordered-convergence-unlimited.mjs (JavaScript, 115 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/guidance/ordered-convergence-unlimited.mjs#L1-L115 - Page: https://code.globalgrid2050.com/explore-code/s/0674.html#f6 - Synopsis: A JavaScript module in the guidance folder of GridAtlas that creates waypoint guidance (`createWaypointGuidance`), selects leg (`selectLeg`) and sets route (`setRoute`). - What it achieves (code): It copies pin (`copyPin`), creates waypoint guidance (`createWaypointGuidance`) and selects leg (`selectLeg`). Its `createWaypointGuidance` function gives guidance state with next target, distance, bearing, remaining distance and bounded deviation information from Geographical maths and compass modules, uniquely identified WGS84 pins, timestamped GPS fixes (VEDIC: follow waypoints). - What it does: Defines 7 functions or classes, including copyPin, createWaypointGuidance, selectLeg, setRoute, snapshot. - 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: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 2 files: Distance Dock Proof (gridatlas); Direct Convergence Unlimited (gridatlas). - Signatures: `export createWaypointGuidance(maths, compass)`; `copyPin(pin, ids)`; `selectLeg()`; `setRoute(pins)`; `snapshot(status, quality)`; `locate(fix, now = Date.now())`; `bearingToNext()` - VEDIC: FOLLOW WAYPOINTS (GG2050-VEDIC-000097): SatNav · Location and navigation data. Geographical maths and compass modules, uniquely identified WGS84 pins, timestamped GPS fixes -> Guidance state with next target, distance, bearing, remaining distance and bounded deviation information. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/tools/satnav/guidance/ordered.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 0 ### Ordered - File: gridatlas/tools/satnav/guidance/ordered.mjs (JavaScript, 116 lines) · role render · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/guidance/ordered.mjs#L1-L116 - Page: https://code.globalgrid2050.com/explore-code/s/0675.html#f1 - Synopsis: A JavaScript module in the guidance folder of GridAtlas that creates waypoint guidance (`createWaypointGuidance`), selects leg (`selectLeg`) and sets route (`setRoute`). - What it achieves (code): It copies pin (`copyPin`), creates waypoint guidance (`createWaypointGuidance`) and selects leg (`selectLeg`). Its `createWaypointGuidance` function gives guidance state with next target, distance, bearing, remaining distance and bounded deviation information from Geographical maths and compass modules, uniquely identified WGS84 pins, timestamped GPS fixes (VEDIC: follow waypoints). - What it does: Defines 7 functions or classes, including copyPin, createWaypointGuidance, selectLeg, setRoute, snapshot. - 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: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 2 files: Ordered Test (gridatlas); Direct (gridatlas). Reached from 2 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Direct Test (gridatlas). - Signatures: `export createWaypointGuidance(maths, compass)`; `copyPin(pin, ids)`; `selectLeg()`; `setRoute(pins)`; `snapshot(status, quality)`; `locate(fix, now = Date.now())`; `bearingToNext()` - VEDIC: FOLLOW WAYPOINTS (GG2050-VEDIC-000097): SatNav · Location and navigation data. Geographical maths and compass modules, uniquely identified WGS84 pins, timestamped GPS fixes -> Guidance state with next target, distance, bearing, remaining distance and bounded deviation information. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · 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 ### Ordered Test - File: gridatlas/tools/satnav/guidance/ordered.test.mjs (JavaScript, 185 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/guidance/ordered.test.mjs#L1-L185 - Page: https://code.globalgrid2050.com/explore-code/s/0675.html#f2 - Synopsis: A test in the guidance folder of GridAtlas that checks Ordered. It is built from the close step (`close`). - What it achieves (name): Defines `fix`, `pin`, `route` and 1 more. - What it does: It tests its inputs. Defines fix, pin, route, close. Uses libraries node:test, node:assert/strict, node:path, node:url. - 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: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `fix(at, timestampMs = now, accuracyM = 3)`; `pin(id, coordinate)`; `route(points = pins)`; `close(actual, expected, tolerance = 0.01)` - 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 (import 1); used by 1; mentioned by 0 ### Orient17a Continuity Ordered - File: gridatlas/tools/satnav/guidance/orient17a-continuity-ordered.mjs (JavaScript, 129 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/guidance/orient17a-continuity-ordered.mjs#L1-L129 - Page: https://code.globalgrid2050.com/explore-code/s/0675.html#f3 - Synopsis: A JavaScript module in the guidance folder of GridAtlas that creates waypoint guidance (`createWaypointGuidance`), selects leg (`selectLeg`) and resets evidence (`resetEvidence`). - What it achieves (code): It copies pin (`copyPin`), creates waypoint guidance (`createWaypointGuidance`) and selects leg (`selectLeg`). Its `createWaypointGuidance` function gives guidance state with next target, distance, bearing, remaining distance and bounded deviation information from Geographical maths and compass modules, uniquely identified WGS84 pins, timestamped GPS fixes (VEDIC: follow waypoints). - What it does: Defines 9 functions or classes, including copyPin, createWaypointGuidance, selectLeg, resetEvidence, suspend. - 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: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 1 file: Orient17a Continuity Direct (gridatlas). - Signatures: `export createWaypointGuidance(maths, compass)`; `copyPin(pin, ids)`; `selectLeg()`; `resetEvidence()`; `suspend(now = Date.now())`; `setRoute(pins)`; `snapshot(status, quality)`; `locate(fix, now = Date.now())`; `bearingToNext()` - VEDIC: FOLLOW WAYPOINTS (GG2050-VEDIC-000097): SatNav · Location and navigation data. Geographical maths and compass modules, uniquely identified WGS84 pins, timestamped GPS fixes -> Guidance state with next target, distance, bearing, remaining distance and bounded deviation information. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 0 ### Orient17a Ordered - File: gridatlas/tools/satnav/guidance/orient17a-ordered.mjs (JavaScript, 122 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/guidance/orient17a-ordered.mjs#L1-L122 - Page: https://code.globalgrid2050.com/explore-code/s/0675.html#f4 - Synopsis: A JavaScript module in the guidance folder of GridAtlas that creates waypoint guidance (`createWaypointGuidance`), selects leg (`selectLeg`) and sets route (`setRoute`). - What it achieves (code): It copies pin (`copyPin`), creates waypoint guidance (`createWaypointGuidance`) and selects leg (`selectLeg`). Its `createWaypointGuidance` function gives guidance state with next target, distance, bearing, remaining distance and bounded deviation information from Geographical maths and compass modules, uniquely identified WGS84 pins, timestamped GPS fixes (VEDIC: follow waypoints). - What it does: Defines 7 functions or classes, including copyPin, createWaypointGuidance, selectLeg, setRoute, snapshot. - 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: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 1 file: Orient17a Direct (gridatlas). - Signatures: `export createWaypointGuidance(maths, compass)`; `copyPin(pin, ids)`; `selectLeg()`; `setRoute(pins)`; `snapshot(status, quality)`; `locate(fix, now = Date.now())`; `bearingToNext()` - VEDIC: FOLLOW WAYPOINTS (GG2050-VEDIC-000097): SatNav · Location and navigation data. Geographical maths and compass modules, uniquely identified WGS84 pins, timestamped GPS fixes -> Guidance state with next target, distance, bearing, remaining distance and bounded deviation information. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/tools/satnav/guidance/ordered.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 0 ### Orient17a V9212 Ordered - File: gridatlas/tools/satnav/guidance/orient17a-v9212-ordered.mjs (JavaScript, 129 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/guidance/orient17a-v9212-ordered.mjs#L1-L129 - Page: https://code.globalgrid2050.com/explore-code/s/0675.html#f5 - Synopsis: A JavaScript module in the guidance folder of GridAtlas that creates waypoint guidance (`createWaypointGuidance`), selects leg (`selectLeg`) and resets evidence (`resetEvidence`). - What it achieves (code): It copies pin (`copyPin`), creates waypoint guidance (`createWaypointGuidance`) and selects leg (`selectLeg`). Its `createWaypointGuidance` function gives guidance state with next target, distance, bearing, remaining distance and bounded deviation information from Geographical maths and compass modules, uniquely identified WGS84 pins, timestamped GPS fixes (VEDIC: follow waypoints). - What it does: Defines 9 functions or classes, including copyPin, createWaypointGuidance, selectLeg, resetEvidence, suspend. - 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: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 1 file: Orient17a V9212 Direct (gridatlas). - Signatures: `export createWaypointGuidance(maths, compass)`; `copyPin(pin, ids)`; `selectLeg()`; `resetEvidence()`; `suspend(now = Date.now())`; `setRoute(pins,now=Date.now())`; `snapshot(status, quality)`; `locate(fix, now = Date.now())`; `bearingToNext()` - VEDIC: FOLLOW WAYPOINTS (GG2050-VEDIC-000097): SatNav · Location and navigation data. Geographical maths and compass modules, uniquely identified WGS84 pins, timestamped GPS fixes -> Guidance state with next target, distance, bearing, remaining distance and bounded deviation information. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/tools/satnav/guidance/orient17a-continuity-ordered.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 0 ### Secondary Vicinity - File: gridatlas/tools/satnav/guidance/secondary-vicinity.mjs (JavaScript, 92 lines) · role ingest · stage ingest - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/guidance/secondary-vicinity.mjs#L1-L92 - Page: https://code.globalgrid2050.com/explore-code/s/0676.html#f1 - Synopsis: A JavaScript module in the guidance folder of GridAtlas that reads the Renewable Energy Planning Database (REPD) register, substations and transformers, using SHA-256. - What it achieves (comment): It is built from the patch step (`patch`). Only transformation of the two immutable V9.197 Vicinity modules. - What it does: It loads the REPD register, substations and transformers. Defines patch, buildSecondaryVicinity. Uses libraries node:fs, node:crypto, node:vm. Side effects: reads or writes files. - 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, transformers. - Downstream impact: Used directly by 3 files: Convergence 2km Test (gridatlas); Convergence Preview (gridatlas); Owner Test Proof (gridatlas). Reached from 4 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); CI PR Gate (gridatlas); Map Promotion Rehearsal (gridatlas). - Signatures: `export buildSecondaryVicinity(root=new URL('../../../',import.meta.url))`; `patch(source,edits)` - 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 3; mentioned by 0 ### GeoJSON Interchange - File: gridatlas/tools/satnav/interchange/geojson-interchange.mjs (JavaScript, 65 lines) · role geodesy · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/interchange/geojson-interchange.mjs#L1-L65 - Page: https://code.globalgrid2050.com/explore-code/s/0676.html#f2 - Synopsis: A JavaScript module in the SatNav folder of GridAtlas that imports GIS route snapshot (`importGisRouteSnapshot`). It exports geo JSON (`exportGeoJSON`), imports geo JSON (`importGeoJSON`) and imports GIS route snapshot (`importGisRouteSnapshot`). - What it achieves (comment): SV07: pure, explicit local interchange; no GPS, network or financial mutation. - What it does: It calculates its inputs. Defines 12 functions or classes, including fail, point, points, same, ring. - 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: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 3 files: GeoJSON Interchange Test (gridatlas); Layout Import (gridatlas); Layout Import Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export exportGeoJSON({pins=[],plannedRoute=null,perimeter=null,walkedTrack=[]}={})`; `export importGeoJSON(doc)`; `export importGisRouteSnapshot(snapshot)`; `fail(msg)`; `point(p)`; `points(a, min=0)`; `same(a,b)`; `ring(a)`; `fix(f)`; `track(a)`; `feature(role,type,coordinates,props={})`; `ordered(a)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### GeoJSON Interchange Test - File: gridatlas/tools/satnav/interchange/geojson-interchange.test.mjs (JavaScript, 17 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/interchange/geojson-interchange.test.mjs#L1-L17 - Page: https://code.globalgrid2050.com/explore-code/s/0676.html#f3 - Synopsis: A test in the SatNav folder of GridAtlas that checks GeoJSON Interchange. - What it achieves (name): Defines `raw`. - What it does: It tests its inputs. Defines raw. Uses libraries node:test, node:assert/strict. - 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: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `raw(type,coordinates,properties={})` - 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 (import 1); used by 1; mentioned by 0 ### GeoJSON - File: gridatlas/tools/satnav/interchange/geojson.mjs (JavaScript, 72 lines) · role geodesy · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/interchange/geojson.mjs#L1-L72 - Page: https://code.globalgrid2050.com/explore-code/s/0676.html#f4 - Synopsis: A JavaScript module in the interchange folder of GridAtlas. It normalises geo JSON (`normaliseGeoJSON`) and exports geo JSON (`exportGeoJSON`). - What it achieves (comment): Local 2D WGS84 interchange only; no network, legal access, engineering accuracy or route calculation. - What it does: It calculates its inputs. Defines 7 functions or classes, including normaliseGeoJSON, fail, point, line, feature. - 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: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 3 files: GeoJSON Test (gridatlas); Interchange (gridatlas); Model (gridatlas). Reached from 4 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Interchange Test (gridatlas); Layout Import Test (gridatlas). - Signatures: `export normaliseGeoJSON(input)`; `export fromGisSnapshot(snapshot)`; `export exportGeoJSON(input)`; `fail(message)`; `point(p)`; `line(p,min)`; `feature(f)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### GeoJSON Test - File: gridatlas/tools/satnav/interchange/geojson.test.mjs (JavaScript, 38 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/interchange/geojson.test.mjs#L1-L38 - Page: https://code.globalgrid2050.com/explore-code/s/0676.html#f5 - Synopsis: A test in the interchange folder of GridAtlas that checks GeoJSON. It runs tests (`runTests`). - What it achieves (name): Defines `runTests` and `reject`. - What it does: It tests its inputs. Defines runTests, eq, reject, f. - 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: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `runTests(normaliseGeoJSON,fromGisSnapshot,exportGeoJSON)`; `eq(a,b)`; `reject(fn,msg)`; `f(type,coordinates,properties={})` - 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 (import 1); used by 1; mentioned by 0 ### Layout Browser - File: gridatlas/tools/satnav/interchange/layout-browser.py (Python, 128 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/interchange/layout-browser.py#L1-L128 - Page: https://code.globalgrid2050.com/explore-code/s/0676.html#f6 - Synopsis: A Python command-line tool in the interchange folder of GridAtlas that reads field, native GIS single-line diagram (SLD), cables and 33kV, using EPSG:27700. - What it achieves (comment): It checks browser (`check_browser`) and is built from the feature step (`feature`) and the local file helper (`local_file`). Exercise local layout import, edit, export and failure recovery on the V4 map. Its code works with 33 kV. - What it does: It loads field, native GIS SLD, cables and 33kV. Defines feature, local_file, check_browser. Uses libraries json, os, runpy, pathlib, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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: cables, 33kV. - Inputs & outputs: In: user-supplied file (file picker). Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). Voltage levels named: 33kV. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `feature(kind, coords, **properties)`; `local_file(input_element, data)`; `check_browser(browser, name, width, height)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [user-supplied file (file picker)]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Layout Import - File: gridatlas/tools/satnav/interchange/layout-import.mjs (JavaScript, 129 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/interchange/layout-import.mjs#L1-L129 - Page: https://code.globalgrid2050.com/explore-code/s/0676.html#f7 - Synopsis: A JavaScript module in the interchange folder of GridAtlas that checks reference system (`checkReferenceSystem`) and reads features (`readFeatures`), covering cables, using EPSG:4326. - What it achieves (code): It checks reference system (`checkReferenceSystem`), reads features (`readFeatures`) and reads layout (`readLayout`). Its `readLayout` function gives validated survey layout features with geometry and role metadata from GeoJSON object or JSON text, supported layout schema and WGS84 coordinates (VEDIC: import engineering layout). - What it does: Defines 6 functions or classes, including checkReferenceSystem, sourceFeature, readFeatures, readLayout, layoutChoices. - 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: cables. - Inputs & outputs: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 1 file: Layout Import Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export readLayout(input)`; `export layoutChoices(layout)`; `export walkLayoutChoice(survey, layout, choice)`; `checkReferenceSystem(value)`; `sourceFeature(feature, nativeLayout = false)`; `readFeatures(doc)` - VEDIC: IMPORT ENGINEERING LAYOUT (GG2050-VEDIC-000101): SatNav · Location and navigation data. GeoJSON object or JSON text, supported layout schema and WGS84 coordinates -> Validated survey layout features with geometry and role metadata. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Layout Import Test - File: gridatlas/tools/satnav/interchange/layout-import.test.mjs (JavaScript, 170 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/interchange/layout-import.test.mjs#L1-L170 - Page: https://code.globalgrid2050.com/explore-code/s/0677.html#f1 - Synopsis: A test in the interchange folder of GridAtlas that checks Layout Import and GeoJSON Interchange, using EPSG:27700. - What it achieves (name): Defines `feature`, `collection` and `fix`. Its code works with 33 kV. It reads `./fixtures/native-gis-sld.geojson`. - What it does: It tests cables and 33kV. Defines feature, collection, fix. Uses libraries node:test, node:assert/strict, node:fs. Side effects: reads or writes files. - 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: cables, 33kV. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `feature(type, coordinates, properties = {})`; `collection(...features)`; `fix(coords, timestampMs)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [33kV] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### SatNav Line Browser - File: gridatlas/tools/satnav/line-browser.py (Python, 216 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/line-browser.py#L1-L216 - Page: https://code.globalgrid2050.com/explore-code/s/0677.html#f2 - Synopsis: A Python command-line tool in the tools folder of GridAtlas using data from the SatNav repository. It maps canvas tap (`map_canvas_tap`), checks basemap (`check_basemap`) and checks browser (`check_browser`). - What it achieves (comment): Detached browser checks for the GridAtlas line-tracking practice preview. - What it does: It lists and searches its content. Defines 7 functions or classes, including surface_distance, leg_point, map_canvas_tap, overlay_roles, check_basemap. Uses libraries math, os, re, urllib.parse, playwright.sync_api. 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. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `surface_distance(first, second)`; `leg_point(start, end, fraction, offset)`; `map_canvas_tap(page, excluded=None)`; `overlay_roles(page, required, absent=())`; `check_basemap(page, selector, visibility, geometry)`; `check_browser(browser, label)`; `run()` - 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 0; mentioned by 0 ### Orient15 Recovery - File: gridatlas/tools/satnav/line/orient15-recovery.mjs (JavaScript, 113 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/line/orient15-recovery.mjs#L1-L113 - Page: https://code.globalgrid2050.com/explore-code/s/0677.html#f3 - Synopsis: A JavaScript module in the line folder of GridAtlas that sets journey (`setJourney`). It creates recovery (`createRecovery`) and sets journey (`setJourney`). - What it achieves (name): Defines `point`, `finite`, `createRecovery` and 19 more. - What it does: It calculates its inputs. Defines 22 functions or classes, including point, finite, createRecovery, now, policy. - 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: Orient15 Recovery Test (gridatlas). - Signatures: `export createRecovery({maths,provider=null,clock=Date.now,timeoutMs=8000,cooldownMs=10000})`; `point(p)`; `finite(n)`; `now()`; `policy()`; `usable(f,t)`; `clearOutput()`; `cancel()`; `clearRoute()`; `invalidate(next)`; `snapshot()`; `setJourney({mode:m,target:t,objective:o='shortest'})`; `start()`; `stop()`; `pause()`; `resume()`; `network(value)`; `requestRoute(t)`; `current()`; `evaluate(f,t)`; `dt(f.timestampMs-progress.time)`; `tick()`; `ingest(f)` - 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 1; mentioned by 0 ### Orient15 Recovery Test - File: gridatlas/tools/satnav/line/orient15-recovery.test.mjs (JavaScript, 63 lines) · role test · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/line/orient15-recovery.test.mjs#L1-L63 - Page: https://code.globalgrid2050.com/explore-code/s/0677.html#f4 - Synopsis: A test in the line folder of GridAtlas that checks Orient15 Recovery. It is built from the sample step (`sample`). - What it achieves (name): Defines `settle`, `harness`, `provider` and 1 more. - What it does: It tests its inputs. Defines xy, settle, harness, provider, sample. Uses libraries node:assert/strict. - 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: `xy(x,y)`; `settle()`; `harness(opts={})`; `provider(req)`; `sample(x,y,a=4,advance=1000)`; `journey(mode='walking',target=xy(200,0),objective='shortest')`; `resolve(i,coords=[xy(0,0),xy(200,0)],over={})` - 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 ### Orient16 Recovery Safe - File: gridatlas/tools/satnav/line/orient16-recovery-safe.mjs (JavaScript, 120 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/line/orient16-recovery-safe.mjs#L1-L120 - Page: https://code.globalgrid2050.com/explore-code/s/0677.html#f5 - Synopsis: A JavaScript module in the line folder of GridAtlas that sets journey (`setJourney`). It creates recovery (`createRecovery`) and sets journey (`setJourney`). - What it achieves (name): Defines `point`, `finite`, `createRecovery` and 20 more. - What it does: It calculates its inputs. Defines 23 functions or classes, including point, finite, createRecovery, now, policy. - 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 2 files: Orient16 Recovery Safe Test (gridatlas); Valhalla Provider Test (gridatlas). - Signatures: `export createRecovery({maths,provider=null,clock=Date.now,timeoutMs=8000,cooldownMs=10000,maxAttempts=3})`; `point(p)`; `finite(n)`; `now()`; `policy()`; `usable(f,t)`; `clearOutput()`; `cancel()`; `clearRoute()`; `invalidate(next)`; `snapshot()`; `setJourney({mode:m,target:t,objective:o='shortest'})`; `start()`; `stop()`; `pause()`; `resume()`; `network(value)`; `requestRoute(t)`; `current()`; `close(a,b)`; `evaluate(f,t)`; `dt(f.timestampMs-progress.time)`; `tick()`; `ingest(f)` - 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 2; mentioned by 0 ### Orient16 Recovery Safe Test - File: gridatlas/tools/satnav/line/orient16-recovery-safe.test.mjs (JavaScript, 19 lines) · role test · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/line/orient16-recovery-safe.test.mjs#L1-L19 - Page: https://code.globalgrid2050.com/explore-code/s/0678.html#f1 - Synopsis: A test in the line folder of GridAtlas that checks Orient16 Recovery Safe. - What it does: It tests its inputs. Uses libraries node:assert/strict. - 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 ### Orient16 Recovery - File: gridatlas/tools/satnav/line/orient16-recovery.mjs (JavaScript, 120 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/line/orient16-recovery.mjs#L1-L120 - Page: https://code.globalgrid2050.com/explore-code/s/0678.html#f2 - Synopsis: A JavaScript module in the line folder of GridAtlas that sets journey (`setJourney`). It creates recovery (`createRecovery`) and sets journey (`setJourney`). - What it achieves (name): Defines `point`, `finite`, `createRecovery` and 20 more. - What it does: It calculates its inputs. Defines 23 functions or classes, including point, finite, createRecovery, now, policy. - 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: Orient16 Recovery Test (gridatlas). - Signatures: `export createRecovery({maths,provider=null,clock=Date.now,timeoutMs=8000,cooldownMs=10000,maxAttempts=3})`; `point(p)`; `finite(n)`; `now()`; `policy()`; `usable(f,t)`; `clearOutput()`; `cancel()`; `clearRoute()`; `invalidate(next)`; `snapshot()`; `setJourney({mode:m,target:t,objective:o='shortest'})`; `start()`; `stop()`; `pause()`; `resume()`; `network(value)`; `requestRoute(t)`; `current()`; `close(a,b)`; `evaluate(f,t)`; `dt(f.timestampMs-progress.time)`; `tick()`; `ingest(f)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/tools/satnav/line/orient16-recovery-safe.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Orient16 Recovery Test - File: gridatlas/tools/satnav/line/orient16-recovery.test.mjs (JavaScript, 14 lines) · role test · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/line/orient16-recovery.test.mjs#L1-L14 - Page: https://code.globalgrid2050.com/explore-code/s/0678.html#f3 - Synopsis: A test in the line folder of GridAtlas that checks Orient16 Recovery. - What it does: It tests its inputs. Uses libraries node:assert/strict. - 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 Offline Plan Browser - File: gridatlas/tools/satnav/offline-plan-browser.py (Python, 212 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/offline-plan-browser.py#L1-L212 - Page: https://code.globalgrid2050.com/explore-code/s/0678.html#f4 - Synopsis: A Python command-line tool in the tools folder of GridAtlas that sets pins (`set_pins`). - What it achieves (comment): It is built from the handler class (`Handler`), the log message helper (`log_message`) and the end headers helper (`end_headers`). Exercise the offline plan module and worker in a real browser against a local origin. It accepts `--executable` and `--geodesy`. - What it does: It fetches data. Defines 10 functions or classes, including test_site, Handler, log_message, end_headers, do_GET. Uses libraries argparse, json, socket, contextlib, functools. 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 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: command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `test_site(geodesy)`; `class Handler`; `log_message(self, *args)`; `end_headers(self)`; `do_GET(self)`; `scopes_and_keys(page)`; `set_pins(page, points)`; `save(page, pins)`; `expect_plan(page, url, expected)`; `exercise(browser, origin, unavailable)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · 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 ### SatNav Orient14 Browser - File: gridatlas/tools/satnav/orient14-browser.py (Python, 58 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orient14-browser.py#L1-L58 - Page: https://code.globalgrid2050.com/explore-code/s/0678.html#f5 - Synopsis: A Python module in the tools folder of GridAtlas. - What it achieves (comment): ORIENT-14: real numbered GridAtlas composition; only the GPS boundary is simulated. - What it does: Uses libraries os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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 0 estate files; used by 0; mentioned by 0 ### SatNav Orient16 Browser - File: gridatlas/tools/satnav/orient16-browser.py (Python, 63 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orient16-browser.py#L1-L63 - Page: https://code.globalgrid2050.com/explore-code/s/0678.html#f6 - Synopsis: A Python module in the tools folder of GridAtlas. - What it achieves (comment): ORIENT-14: real numbered GridAtlas composition; only the GPS boundary is simulated. - What it does: Uses libraries os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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 0 estate files; used by 0; mentioned by 0 ### SatNav Orient16 Recovery Browser - File: gridatlas/tools/satnav/orient16-recovery-browser.py (Python, 171 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orient16-recovery-browser.py#L1-L171 - Page: https://code.globalgrid2050.com/explore-code/s/0678.html#f7 - Synopsis: A Python module in the tools folder of GridAtlas. - What it achieves (comment): ORIENT-14: real numbered GridAtlas composition; only the GPS boundary is simulated. - What it does: Uses libraries os, json, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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 0 estate files; used by 0; mentioned by 0 ### SatNav Orient16 Responsive Browser - File: gridatlas/tools/satnav/orient16-responsive-browser.py (Python, 185 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orient16-responsive-browser.py#L1-L185 - Page: https://code.globalgrid2050.com/explore-code/s/0679.html#f1 - Synopsis: A Python module in the tools folder of GridAtlas. - What it achieves (comment): ORIENT-14: real numbered GridAtlas composition; only the GPS boundary is simulated. - What it does: Uses libraries os, json, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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 0 estate files; used by 0; mentioned by 0 ### SatNav Orient17 Regional Browser - File: gridatlas/tools/satnav/orient17-regional-browser.py (Python, 72 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orient17-regional-browser.py#L1-L72 - Page: https://code.globalgrid2050.com/explore-code/s/0679.html#f2 - Synopsis: A Python module in the tools folder of GridAtlas that routes fixture (`route_fixture`). It is built from the encode step (`encode`). - What it achieves (comment): ORIENT-17.2 composed browser fixture, explicitly synthetic transport, not actual routing. - What it does: Defines encode, route_fixture. Uses libraries os, json, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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: `encode(points)`; `route_fixture(route)` - 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 Orient17a Browser - File: gridatlas/tools/satnav/orient17a-browser.py (Python, 57 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orient17a-browser.py#L1-L57 - Page: https://code.globalgrid2050.com/explore-code/s/0679.html#f3 - Synopsis: A Python module in the tools folder of GridAtlas. - What it achieves (comment): ORIENT17A partial composed checkpoint. WMM missing: must fail closed, not fake true heading. - What it does: Uses libraries os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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 0 estate files; used by 0; mentioned by 0 ### SatNav Orient17a V9211 Browser - File: gridatlas/tools/satnav/orient17a-v9211-browser.py (Python, 99 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orient17a-v9211-browser.py#L1-L99 - Page: https://code.globalgrid2050.com/explore-code/s/0679.html#f4 - Synopsis: A Python module in the tools folder of GridAtlas that emits heading (`emit_heading`). - What it achieves (comment): V9.211 composed application acceptance: simulated acquisition, not device evidence. - What it does: Defines emit_heading. Uses libraries os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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: `emit_heading(heading, accuracy=3, beta=0)` - 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 Orient17a V9212 Browser - File: gridatlas/tools/satnav/orient17a-v9212-browser.py (Python, 99 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orient17a-v9212-browser.py#L1-L99 - Page: https://code.globalgrid2050.com/explore-code/s/0679.html#f5 - Synopsis: A Python module in the tools folder of GridAtlas that emits heading (`emit_heading`). - What it achieves (comment): V9.212 composed application acceptance: simulated acquisition, not device evidence. - What it does: Defines emit_heading. Uses libraries os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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: `emit_heading(heading, accuracy=3, beta=0)` - 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 Orient17a V9214 Browser - File: gridatlas/tools/satnav/orient17a-v9214-browser.py (Python, 101 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orient17a-v9214-browser.py#L1-L101 - Page: https://code.globalgrid2050.com/explore-code/s/0679.html#f6 - Synopsis: A Python module in the tools folder of GridAtlas that emits heading (`emit_heading`). - What it achieves (comment): V9.214 composed application acceptance: simulated acquisition, not device evidence. - What it does: Defines emit_heading. Uses libraries os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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: `emit_heading(heading, accuracy=3, beta=0)` - 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 Orient17a V9215 Browser - File: gridatlas/tools/satnav/orient17a-v9215-browser.py (Python, 112 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orient17a-v9215-browser.py#L1-L112 - Page: https://code.globalgrid2050.com/explore-code/s/0680.html#f1 - Synopsis: A Python module in the tools folder of GridAtlas that emits heading (`emit_heading`). - What it achieves (comment): V9.215 composed application acceptance: simulated acquisition, not device evidence. - What it does: Defines emit_heading. Uses libraries os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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: `emit_heading(heading, accuracy=3, beta=0)` - 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 Orient17a V9216 Browser - File: gridatlas/tools/satnav/orient17a-v9216-browser.py (Python, 138 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orient17a-v9216-browser.py#L1-L138 - Page: https://code.globalgrid2050.com/explore-code/s/0680.html#f2 - Synopsis: A Python module in the tools folder of GridAtlas that emits heading (`emit_heading`). - What it achieves (comment): V9.216 composed application acceptance: simulated acquisition, not device evidence. - What it does: Defines emit_heading. Uses libraries os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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: `emit_heading(heading, accuracy=3, beta=0)` - 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 ### Orient17a Heading Filter - File: gridatlas/tools/satnav/orientation/orient17a-heading-filter.mjs (JavaScript, 39 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orientation/orient17a-heading-filter.mjs#L1-L39 - Page: https://code.globalgrid2050.com/explore-code/s/0680.html#f3 - Synopsis: A JavaScript module in the orientation folder of GridAtlas. It creates heading filter (`createHeadingFilter`) and is built from the norm step (`norm`) and the delta step (`delta`). - What it achieves (comment): Heading filter with persistence-confirmed jumps and decaying accuracy inflation. - What it does: It calculates its inputs. Defines 6 functions or classes, including norm, delta, createHeadingFilter, reset, inflate. - 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: Orient17a V9214 Compass Test (gridatlas). - Signatures: `export createHeadingFilter({tauMs=300,jumpDeg=60,confirmMs=250,confirmDeg=25}={})`; `norm(d)`; `delta(a,b)`; `reset()`; `inflate(o,t)`; `push(o)` - 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 1; mentioned by 0 ### Orient17a Navigation - File: gridatlas/tools/satnav/orientation/orient17a-navigation.mjs (JavaScript, 47 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orientation/orient17a-navigation.mjs#L1-L47 - Page: https://code.globalgrid2050.com/explore-code/s/0680.html#f4 - Synopsis: A JavaScript module in the orientation folder of GridAtlas that creates arrival (`createArrival`) and calculates planar distances and angles. - What it achieves (comment): It creates arrival (`createArrival`) and is built from the geometry step (`geometry`) and the point step (`point`). ORIENT-17A safe spherical geometry (GridAtlas radius), proximity and reference boundary. - What it does: It calculates its inputs. Defines 7 functions or classes, including geometry, point, vector, createArrival, reset. - 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 6 files: Orient17a Continuity Ordered (gridatlas); Orient17a Ordered (gridatlas); Orient17a Navigation Test (gridatlas); Wmm2025 Test (gridatlas); and 2 more. - Signatures: `export geometry(fix,target,now=Date.now())`; `export createArrival({radiusM=15,maxGapMs=2500,minSpanMs=2000}={})`; `export relativeGuidance(metrics,heading,now=Date.now())`; `point(p)`; `vector([x,y])`; `reset()`; `observe({fix,metrics,key,now=Date.now(),eligible=true})`; `r((metrics.bearingDeg-heading.degrees+540)%360)` - 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 6; mentioned by 1 ### Orient17a Navigation Test - File: gridatlas/tools/satnav/orientation/orient17a-navigation.test.mjs (JavaScript, 13 lines) · role test · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orientation/orient17a-navigation.test.mjs#L1-L13 - Page: https://code.globalgrid2050.com/explore-code/s/0680.html#f5 - Synopsis: A test in the orientation folder of GridAtlas that checks Orient17a Navigation. - What it achieves (name): Defines `tests`. - What it does: It tests its inputs. Defines tests. - 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. - Signatures: `tests(geometry,createArrival,relativeGuidance)` - 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 ### Orient17a Reference Wmm - File: gridatlas/tools/satnav/orientation/orient17a-reference-wmm.mjs (JavaScript, 31 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orientation/orient17a-reference-wmm.mjs#L1-L31 - Page: https://code.globalgrid2050.com/explore-code/s/0680.html#f6 - Synopsis: A JavaScript module in the orientation folder of GridAtlas. It is built from the true heading from observation helper (`trueHeadingFromObservation`). - What it achieves (comment): ORIENT-17A integration boundary: magnetic observation -> true heading. - What it does: It calculates its inputs. Defines trueHeadingFromObservation. - 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: Wmm2025 Test (gridatlas). - Signatures: `export trueHeadingFromObservation(observation, fix, now = Date.now())` - 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 1; mentioned by 0 ### Orient17a Reference - File: gridatlas/tools/satnav/orientation/orient17a-reference.mjs (JavaScript, 5 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orientation/orient17a-reference.mjs#L1-L5 - Page: https://code.globalgrid2050.com/explore-code/s/0680.html#f7 - Synopsis: A JavaScript module in the orientation folder of GridAtlas. It is built from the true heading from observation helper (`trueHeadingFromObservation`). - What it achieves (comment): ORIENT-17A integration boundary. Pending independently validated WMM2025 evaluator. - What it does: It calculates its inputs. Defines trueHeadingFromObservation. - 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: `export trueHeadingFromObservation(observation,fix,now=Date.now())` - 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 ### Orient17a V9211 Heading - File: gridatlas/tools/satnav/orientation/orient17a-v9211-heading.mjs (JavaScript, 61 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orientation/orient17a-v9211-heading.mjs#L1-L61 - Page: https://code.globalgrid2050.com/explore-code/s/0680.html#f8 - Synopsis: A JavaScript module in the orientation folder of GridAtlas that creates heading filter (`createHeadingFilter`) and reference (`createReference`). It creates heading filter (`createHeadingFilter`) and creates reference (`createReference`). - What it achieves (comment): Strict V9.211 acquisition boundary. No GPS-course substitution. - What it does: It calculates its inputs. Defines 10 functions or classes, including norm, delta, eligibleObservation, createHeadingFilter, reset. - 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: Orient17a V9211 Heading Test (gridatlas). - Signatures: `export eligibleObservation(event,frame,t)`; `export createHeadingFilter()`; `export createReference()`; `export stableLabel(g,previous)`; `norm(d)`; `delta(a,b)`; `reset()`; `push(o)`; `resolve(o,f,now=Date.now())` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/tools/satnav/orientation/orient17a-v9212-heading.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 1 ### Orient17a V9211 Heading Test - File: gridatlas/tools/satnav/orientation/orient17a-v9211-heading.test.mjs (JavaScript, 16 lines) · role test · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orientation/orient17a-v9211-heading.test.mjs#L1-L16 - Page: https://code.globalgrid2050.com/explore-code/s/0680.html#f9 - Synopsis: A test in the orientation folder of GridAtlas that checks Orient17a V9211 Heading. - What it achieves (name): Defines `obs`. - What it does: It tests its inputs. Defines obs. Uses libraries node:test, node:assert/strict. - 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: `obs(degrees,t=now)` - 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 ### Orient17a V9212 Heading - File: gridatlas/tools/satnav/orientation/orient17a-v9212-heading.mjs (JavaScript, 62 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orientation/orient17a-v9212-heading.mjs#L1-L62 - Page: https://code.globalgrid2050.com/explore-code/s/0680.html#f10 - Synopsis: A JavaScript module in the orientation folder of GridAtlas that creates heading filter (`createHeadingFilter`) and reference (`createReference`). It creates heading filter (`createHeadingFilter`) and creates reference (`createReference`). - What it achieves (comment): Strict V9.211 acquisition boundary. No GPS-course substitution. - What it does: It calculates its inputs. Defines 10 functions or classes, including norm, delta, eligibleObservation, createHeadingFilter, reset. - 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: Orient17a V9212 Test (gridatlas). - Signatures: `export eligibleObservation(event,frame,t)`; `export createHeadingFilter()`; `export createReference()`; `export stableLabel(g,previous)`; `norm(d)`; `delta(a,b)`; `reset()`; `push(o)`; `resolve(o,f,now=Date.now())` - 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 2 estate files (import 2); used by 1; mentioned by 0 ### Orient17a V9212 Navigation - File: gridatlas/tools/satnav/orientation/orient17a-v9212-navigation.mjs (JavaScript, 50 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orientation/orient17a-v9212-navigation.mjs#L1-L50 - Page: https://code.globalgrid2050.com/explore-code/s/0680.html#f11 - Synopsis: A JavaScript module in the orientation folder of GridAtlas that creates arrival (`createArrival`) and calculates planar distances and angles. - What it achieves (comment): It creates arrival (`createArrival`) and is built from the geometry step (`geometry`) and the point step (`point`). ORIENT-17A safe spherical geometry (GridAtlas radius), proximity and reference boundary. - What it does: It calculates its inputs. Defines 7 functions or classes, including geometry, point, vector, createArrival, reset. - 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 3 files: Orient17a V9212 Ordered (gridatlas); Orient17a V9212 Test (gridatlas); Orient17a V9212 Direct (gridatlas). - Signatures: `export geometry(fix,target,now=Date.now())`; `export createArrival({radiusM=15,maxGapMs=2500,minSpanMs=2000}={})`; `export relativeGuidance(metrics,heading,now=Date.now())`; `point(p)`; `vector([x,y])`; `reset()`; `observe({fix,metrics,key,now=Date.now(),eligible=true})`; `r((metrics.bearingDeg-heading.degrees+540)%360)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/tools/satnav/orientation/orient17a-navigation.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Orient17a V9212 Test - File: gridatlas/tools/satnav/orientation/orient17a-v9212.test.mjs (JavaScript, 20 lines) · role test · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orientation/orient17a-v9212.test.mjs#L1-L20 - Page: https://code.globalgrid2050.com/explore-code/s/0680.html#f12 - Synopsis: A test in the orientation folder of GridAtlas that checks Orient17a V9212 Navigation and Orient17a V9212 Heading. - What it does: It tests its inputs. Uses libraries node:test, node:assert/strict. - 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 2 estate files (import 2); used by 0; mentioned by 0 ### Orient17a V9214 Compass Test - File: gridatlas/tools/satnav/orientation/orient17a-v9214-compass.test.mjs (JavaScript, 20 lines) · role test · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orientation/orient17a-v9214-compass.test.mjs#L1-L20 - Page: https://code.globalgrid2050.com/explore-code/s/0680.html#f13 - Synopsis: A test in the orientation folder of GridAtlas that checks Orient17a V9214 Event Clock and Orient17a Heading Filter. - What it achieves (name): Defines `obs`. - What it does: It tests its inputs. Defines obs. Uses libraries node:assert/strict. - 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: `obs(degrees,timestampMs)` - 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 2 estate files (import 2); used by 0; mentioned by 0 ### Orient17a V9214 Event Clock - File: gridatlas/tools/satnav/orientation/orient17a-v9214-event-clock.mjs (JavaScript, 16 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orientation/orient17a-v9214-event-clock.mjs#L1-L16 - Page: https://code.globalgrid2050.com/explore-code/s/0680.html#f14 - Synopsis: A JavaScript module in the orientation folder of GridAtlas that normalises event epoch to the integer wall-clock domain used by the GPS/reference gates. It creates event clock (`createEventClock`). - What it achieves (name): Defines `createEventClock`, `reset` and `stamp`. - What it does: It calculates its inputs. Defines createEventClock, reset, stamp. - 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: Orient17a V9214 Compass Test (gridatlas). - Signatures: `export createEventClock({now=Date.now,origin=()=>performance.timeOrigin}={})`; `reset()`; `stamp(event)` - 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 1; mentioned by 0 ### Wmm2025 - File: gridatlas/tools/satnav/orientation/wmm2025.mjs (JavaScript, 222 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orientation/wmm2025.mjs#L1-L222 - Page: https://code.globalgrid2050.com/explore-code/s/0681.html#f1 - Synopsis: A JavaScript module in the orientation folder of GridAtlas that works with decimal year (`decimalYear`) and evaluate field (`evaluateField`) and calculates great-circle distances and planar distances, using SHA-256. - What it achieves (comment): It is built from the index step (`index`), the decimal year helper (`decimalYear`) and the check step (`check`). ORIENT-17A support: World Magnetic Model 2025 (WMM2025) declination evaluator. - What it does: It calculates its inputs. Defines 9 functions or classes, including index, decimalYear, check, evaluateField, declinationSigmaDeg. - 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: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 4 files: Orient17a Reference Wmm (gridatlas); Orient17a V9211 Heading (gridatlas); Orient17a V9212 Heading (gridatlas); Wmm2025 Test (gridatlas). - Signatures: `export decimalYear(date)`; `export evaluateField({ latitude, longitude, altitudeKm = 0, year })`; `export declinationSigmaDeg(hNt)`; `export declination({ latitude, longitude, altitudeKm = 0, when = Date.now() })`; `export magneticToTrue(heading, position, { when = heading?.timestampMs ?? Date.now(), sigmaMultiplier = 2, sensorIsMagnetic = false } = {})`; `index(n, m)`; `check({ latitude, longitude, altitudeKm, year })`; `p(rc + altitudeKm)`; `z(rc * (1 - E2) + altitudeKm)`; `k1(2 * n - 1)`; `Hd(X * Xd + Y * Yd)`; `Fd(X * Xd + Y * Yd + Z * Zd)`; `Dd(X * Yd - Y * Xd)`; `Id(Hh * Zd - Z * Hd)`; `normalise(d)`; `fail(reason, d = null)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Wmm2025 Test - File: gridatlas/tools/satnav/orientation/wmm2025.test.mjs (JavaScript, 157 lines) · role test · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/orientation/wmm2025.test.mjs#L1-L157 - Page: https://code.globalgrid2050.com/explore-code/s/0681.html#f2 - Synopsis: A test in the orientation folder of GridAtlas that checks Wmm2025 and Orient17a Reference Wmm, using SHA-256. - What it achieves (name): Defines `here` and `wrap`. It reads `./wmm2025-fixtures/WMM2025_TEST_VALUES.txt`. - What it does: It tests its inputs. Defines here, wrap. Uses libraries node:test, node:assert/strict, node:crypto, node:fs, node:url. 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 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: browser IndexedDB. - Signatures: `here(p)`; `wrap(d)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [browser IndexedDB]; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 0 ### Bristol Browser - File: gridatlas/tools/satnav/pedestrian-pilot/bristol-browser.py (Python, 104 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/pedestrian-pilot/bristol-browser.py#L1-L104 - Page: https://code.globalgrid2050.com/explore-code/s/0681.html#f3 - Synopsis: A Python command-line tool in the pedestrian pilot folder of GridAtlas that works with tap endpoint (`tap_endpoint`), covering bristol footpaths. - What it achieves (comment): It checks browser (`check_browser`) and is built from the features step (`features`). Touch acceptance against the combined V4 GridAtlas map and Bristol footpath data. - What it does: Defines features, tap_endpoint, check_browser. Uses libraries os, playwright.sync_api. 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: GeoJSON file bristol-footpaths.geojson. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `features(page, count)`; `tap_endpoint(page, field, coordinates)`; `check_browser(browser, label, width, height)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file bristol-footpaths.geojson]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Bristol - File: gridatlas/tools/satnav/pedestrian-pilot/bristol.mjs (JavaScript, 165 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/pedestrian-pilot/bristol.mjs#L1-L165 - Page: https://code.globalgrid2050.com/explore-code/s/0681.html#f4 - Synopsis: A JavaScript module in the pedestrian pilot folder of GridAtlas that maps bristol footpaths. - What it achieves (name): It shows result (`showResult`) and is built from the install bristol footpaths helper (`installBristolFootpaths`) and the refresh step (`refresh`). Defines `installBristolFootpaths`, `paint`, `showResult` and 5 more. It responds to toggle events. - What it does: It maps bristol footpaths. Defines 8 functions or classes, including installBristolFootpaths, paint, showResult, refresh, load. Side effects: changes the web page (DOM); 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. - Inputs & outputs: In: GeoJSON file bristol-footpaths.geojson. - Signatures: `export installBristolFootpaths({map, container, maths, getEndpoints})`; `paint()`; `showResult(result)`; `refresh()`; `load()`; `points(code)`; `select(next)`; `hide()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoJSON file bristol-footpaths.geojson]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Mapped Footpaths - File: gridatlas/tools/satnav/pedestrian/mapped-footpaths.mjs (JavaScript, 155 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/pedestrian/mapped-footpaths.mjs#L1-L155 - Page: https://code.globalgrid2050.com/explore-code/s/0682.html#f1 - Synopsis: A JavaScript module in the pedestrian folder of GridAtlas that reads sections (`readSections`) and creates bristol footpath router (`createBristolFootpathRouter`). It reads sections (`readSections`) and creates bristol footpath router (`createBristolFootpathRouter`). - What it achieves (comment): The Bristol extract has section IDs and shapes but no cross-path junction IDs. - What it does: It lists and searches its content. Defines 8 functions or classes, including same, valid, unavailable, readSections, consecutive. - 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 2 files: Bristol (gridatlas); Mapped Footpaths Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export createBristolFootpathRouter(collection, maths)`; `same(a, b)`; `valid(p)`; `unavailable(reason)`; `readSections(collection)`; `consecutive(a, b)`; `chainsFor(routes, maths)`; `locate(point, chains, maths)` - 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 1 ### Mapped Footpaths Test - File: gridatlas/tools/satnav/pedestrian/mapped-footpaths.test.mjs (JavaScript, 107 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/pedestrian/mapped-footpaths.test.mjs#L1-L107 - Page: https://code.globalgrid2050.com/explore-code/s/0682.html#f2 - Synopsis: A test in the pedestrian folder of GridAtlas that checks Mapped Footpaths using data from the grid-distance-maths repository. - What it achieves (name): It is built from the synthetic step (`synthetic`) and the interp step (`interp`). Defines `source`, `endpoints`, `section` and 2 more. It reads `bristol-footpaths.geojson`. - What it does: It tests its inputs. Defines source, endpoints, section, synthetic, interp. Uses libraries node:assert/strict, node:crypto, node:fs/promises, node:test. Side effects: reads or writes files; 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. - Inputs & outputs: In: data source: grid-distance-maths data. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `source(code)`; `endpoints(first, last)`; `section(code, coords, status = 'FP')`; `synthetic(features)`; `interp(t)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: grid-distance-maths data]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Perimeter - File: gridatlas/tools/satnav/perimeter/perimeter.mjs (JavaScript, 50 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/perimeter/perimeter.mjs#L1-L50 - Page: https://code.globalgrid2050.com/explore-code/s/0682.html#f3 - Synopsis: A JavaScript module in the SatNav folder of GridAtlas. It is built from the fail step (`fail`), the valid step (`valid`) and the same step (`same`). - What it achieves (comment): SV05: Pure local field-perimeter adapter; no GPS, routing or access authority. blob . - What it does: It calculates its inputs. Defines 8 functions or classes, including buildPerimeter, fail, valid, same, cross. - 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 2 files: Perimeter Test (gridatlas); Model (gridatlas). Reached from 2 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Model Test (gridatlas). - Signatures: `export buildPerimeter(vertices, maths)`; `fail(code)`; `valid(p)`; `same(a,b)`; `cross(a,b,c)`; `on(a,b,c)`; `hit(a,b,c,d)`; `closed()` - 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 ### Perimeter Test - File: gridatlas/tools/satnav/perimeter/perimeter.test.mjs (JavaScript, 30 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/perimeter/perimeter.test.mjs#L1-L30 - Page: https://code.globalgrid2050.com/explore-code/s/0682.html#f4 - Synopsis: A test in the SatNav folder of GridAtlas that checks Perimeter. It runs tests (`runTests`). - What it achieves (name): Defines `runTests`, `check` and `rejects`. - What it does: It tests its inputs. Defines runTests, check, rejects. - 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: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `runTests(build)`; `check(v,m)`; `rejects(v,code)` - 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 (import 1); used by 1; mentioned by 0 ### SatNav Place - File: gridatlas/tools/satnav/place.mjs (JavaScript, 27 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/place.mjs#L1-L27 - Page: https://code.globalgrid2050.com/explore-code/s/0682.html#f5 - Synopsis: A JavaScript module in the tools folder of GridAtlas that parses destination (`parseDestination`) and builds destination (`buildDestination`). It parses destination (`parseDestination`) and builds destination (`buildDestination`). - What it achieves (comment): Coordinate contract: GeoJSON order [longitude, latitude], WGS84. - What it does: Defines coordinate, parseDestination, buildDestination. - 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: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 1 file: Preview — Nav (satnav). - Signatures: `export parseDestination(search)`; `export buildDestination({coordinates,mode='compass',name='',asset=null})`; `coordinate(value,max)` - VEDIC: READ DESTINATION LINK (GG2050-VEDIC-000064): SatNav · Location and navigation data. url_query_string -> destination_record_or_null - VEDIC: BUILD DESTINATION LINK (GG2050-VEDIC-000065): SatNav · Location and navigation data. longitude_latitude_degrees, mode_optional, name_optional, asset_source_and_id_optional -> navigation_query_string - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · 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 1 ### Regional Benchmark - File: gridatlas/tools/satnav/regional/regional-benchmark.py (Python, 48 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/regional/regional-benchmark.py#L1-L48 - Page: https://code.globalgrid2050.com/explore-code/s/0682.html#f6 - Synopsis: A Python module in the SatNav folder of GridAtlas that fetches benchmark rows and benchmark summary. It is built from the dist step (`dist`). - What it achieves (comment): ORIENT-17.2: public fixture measurements, not an independent access oracle. - What it does: It fetches benchmark rows and benchmark summary. Defines dist. Uses libraries json, math, pathlib, sys, time. Side effects: reads or writes files; makes network requests; starts processes. - 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: command-line arguments. Out: JSON file benchmark-rows.json; JSON file benchmark-summary.json. - Downstream impact: It is itself an entry point (Python module); no other file was found loading it. - Signatures: `dist(a,b)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out [JSON file benchmark-rows.json; JSON file benchmark-summary.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Regional Config - File: gridatlas/tools/satnav/regional/regional-config.mjs (JavaScript, 3 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/regional/regional-config.mjs#L1-L3 - Page: https://code.globalgrid2050.com/explore-code/s/0682.html#f7 - Synopsis: A JavaScript module in the SatNav folder of GridAtlas. - What it achieves (comment): Deployment-owned immutable configuration. Disabled until a controlled same-origin service and verified graph exist. - 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 3 files: Orient17 Regional Proof (gridatlas); Orient17b Proof (gridatlas); Orient17a Proof (gridatlas). - 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 3; mentioned by 0 ### Regional Gateway - File: gridatlas/tools/satnav/regional/regional-gateway.mjs (JavaScript, 34 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/regional/regional-gateway.mjs#L1-L34 - Page: https://code.globalgrid2050.com/explore-code/s/0682.html#f8 - Synopsis: A JavaScript module in the SatNav folder of GridAtlas. It is built from the send step (`send`). - What it achieves (comment): Loopback-only private upstream gateway. Deploy behind a controlled same-origin HTTPS reverse proxy. - What it does: It fetches data. Defines send. Uses libraries node:http. 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: `send(res,status,body)` - 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 Pilot - File: gridatlas/tools/satnav/regional/regional-pilot.sh (Shell, 79 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/regional/regional-pilot.sh#L1-L79 - Page: https://code.globalgrid2050.com/explore-code/s/0682.html#f9 - Synopsis: A shell script in the SatNav folder of GridAtlas that uses SHA-256. - What it does: It fetches data. Side effects: reads or writes files; makes network requests; starts processes. - 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: JSON file status.json; command-line arguments. Out: JSON file source-manifest.json. - Downstream impact: It is itself an entry point (shell script); no other file was found loading it. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file status.json; command-line arguments]; out [JSON file source-manifest.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Valhalla Provider - File: gridatlas/tools/satnav/regional/valhalla-provider.mjs (JavaScript, 41 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/regional/valhalla-provider.mjs#L1-L41 - Page: https://code.globalgrid2050.com/explore-code/s/0682.html#f10 - Synopsis: A JavaScript module in the regional folder of GridAtlas that decodes shape (`decodeShape`) and creates regional provider (`createRegionalProvider`). It decodes shape (`decodeShape`) and creates regional provider (`createRegionalProvider`). - What it achieves (comment): Controlled Valhalla adapter. No discovery, public demo endpoint, GPS watch or camera ownership. - What it does: It lists and searches its content. Defines point, decodeShape, delta, createRegionalProvider, metres. - 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: Valhalla Provider Test (gridatlas). - Signatures: `export decodeShape(s)`; `export createRegionalProvider({endpoint,graphRevision,maths,fetcher=globalThis.fetch,origin=globalThis.location?.origin}={})`; `point(p)`; `delta()`; `metres(a,b)`; `maneuvers(trip.legs[0].maneuvers??[])` - 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 1; mentioned by 0 ### Valhalla Provider Test - File: gridatlas/tools/satnav/regional/valhalla-provider.test.mjs (JavaScript, 32 lines) · role test · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/regional/valhalla-provider.test.mjs#L1-L32 - Page: https://code.globalgrid2050.com/explore-code/s/0682.html#f11 - Synopsis: A test in the regional folder of GridAtlas that checks Valhalla Provider and Orient16 Recovery Safe. - What it achieves (name): Defines `encode` and `response`. - What it does: It tests its inputs. Defines encode, response. Uses libraries node:assert/strict. - 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: `encode(points)`; `response(points=[from,target],hash=graphRevision,status=200)` - 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 2 estate files (import 2); used by 0; mentioned by 0 ### VEDIC Snapshot Provider V9214 Test - File: gridatlas/tools/satnav/regional/vedic-snapshot-provider-v9214.test.mjs (JavaScript, 21 lines) · role test · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/regional/vedic-snapshot-provider-v9214.test.mjs#L1-L21 - Page: https://code.globalgrid2050.com/explore-code/s/0682.html#f12 - Synopsis: A test in the regional folder of GridAtlas that checks VEDIC Snapshot Provider and VEDIC Snapshot Routing, using SHA-256. - What it achieves (name): Defines `make`. - What it does: It tests its inputs. Defines 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 agent_infra (path word 'vedic'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: command-line arguments. - Signatures: `make(mode,origin,target,objective='shortest')` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 0 ### VEDIC Snapshot Provider - File: gridatlas/tools/satnav/regional/vedic-snapshot-provider.mjs (JavaScript, 50 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/regional/vedic-snapshot-provider.mjs#L1-L50 - Page: https://code.globalgrid2050.com/explore-code/s/0682.html#f13 - Synopsis: A JavaScript module in the regional folder of GridAtlas covering topology, using SHA-256 and uses data from the neural-link-between-agents repository. It selects node (`selectNode`) and creates snapshot provider (`createSnapshotProvider`). - What it achieves (comment): Explicit, bounded OSM pilot only. No GPS data leaves the browser. - What it does: It calculates topology. Defines inside, point, selectNode, createSnapshotProvider, fail. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'vedic'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: JSON file topology.json. - Downstream impact: Used directly by 2 files: VEDIC Snapshot Provider V9214 Test (gridatlas); VEDIC Snapshot Provider Test (gridatlas). - Signatures: `export selectNode(graph,at,maths)`; `export createSnapshotProvider({maths,fetcher=globalThis.fetch,subtle=globalThis.crypto?.subtle}={})`; `inside(p)`; `point(n)`; `fail(reason)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file topology.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 0 ### VEDIC Snapshot Provider Test - File: gridatlas/tools/satnav/regional/vedic-snapshot-provider.test.mjs (JavaScript, 20 lines) · role test · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/regional/vedic-snapshot-provider.test.mjs#L1-L20 - Page: https://code.globalgrid2050.com/explore-code/s/0682.html#f14 - Synopsis: A test in the regional folder of GridAtlas that checks VEDIC Snapshot Provider and VEDIC Snapshot Routing, using SHA-256. - What it achieves (name): Defines `make`. - What it does: It tests its inputs. Defines 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 agent_infra (path word 'vedic'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: command-line arguments. - Signatures: `make(mode,origin,target,objective='shortest')` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · 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 ### SatNav Serve - File: gridatlas/tools/satnav/serve.mjs (JavaScript, 3 lines) · role other · stage unknown · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/serve.mjs#L1-L3 - Page: https://code.globalgrid2050.com/explore-code/s/0682.html#f15 - Synopsis: A JavaScript module in the tools 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. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · 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 1; mentioned by 0 ### Browser - File: gridatlas/tools/satnav/survey/browser.py (Python, 103 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/survey/browser.py#L1-L103 - Page: https://code.globalgrid2050.com/explore-code/s/0683.html#f1 - Synopsis: A Python command-line tool in the survey folder of GridAtlas. It is built from the check step (`check`). - What it achieves (comment): Test the actual survey controls and local download using simulated device fixes. - What it does: It loads data. Defines check. Uses libraries json, os, runpy, pathlib, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `check(browser, label, width, height)` - 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 0; mentioned by 0 ### Interchange - File: gridatlas/tools/satnav/survey/interchange.mjs (JavaScript, 183 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/survey/interchange.mjs#L1-L183 - Page: https://code.globalgrid2050.com/explore-code/s/0683.html#f2 - Synopsis: A JavaScript module in the survey folder of GridAtlas that counts coordinates, normalises feature and validates point order, covering 33kV, cables, substations and battery storage (BESS), using EPSG:4326. - What it achieves (comment): It counts coordinates (`countCoordinates`), normalises feature (`normaliseFeature`) and validates point order (`validatePointOrder`). Bridge the two Ventus GeoJSON encodings without promoting measured fixes to design. Its code works with 33 kV. - What it does: It lists and searches 33kV, cables, substations and battery storage (BESS). Defines 8 functions or classes, including featuresOf, sampleProperty, countCoordinates, normaliseFeature, validatePointOrder. - 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: 33kV, cables, substations, battery storage (BESS). - Inputs & outputs: Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 33kV. - Downstream impact: Used directly by 2 files: Layout Import (gridatlas); Interchange Test (gridatlas). Reached from 2 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Layout Import Test (gridatlas). - Signatures: `export readSurveyLayout(input)`; `export editableCoordinates(feature)`; `featuresOf(data)`; `sampleProperty(properties, key, legacyKey)`; `countCoordinates(feature)`; `normaliseFeature(feature)`; `validatePointOrder(features, role)`; `validateMeasuredOrder(features)`; `count(counts.get(group) ?? 0)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [33kV] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Interchange Test - File: gridatlas/tools/satnav/survey/interchange.test.mjs (JavaScript, 103 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/survey/interchange.test.mjs#L1-L103 - Page: https://code.globalgrid2050.com/explore-code/s/0683.html#f3 - Synopsis: A test in the survey folder of GridAtlas that checks Interchange, using EPSG:27700. It is built from the legacy fix helper (`legacyFix`). - What it achieves (name): Defines `feature`, `collection` and `legacyFix`. - What it does: It tests its inputs. Defines feature, collection, legacyFix. 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. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `feature(type, coordinates, properties = {})`; `collection(...features)`; `legacyFix(point, order, timestamp)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Model - File: gridatlas/tools/satnav/survey/model.mjs (JavaScript, 131 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/survey/model.mjs#L1-L131 - Page: https://code.globalgrid2050.com/explore-code/s/0683.html#f4 - Synopsis: A JavaScript module in the survey folder of GridAtlas that tracks feature (`trackFeature`) and creates field survey (`createFieldSurvey`). It tracks feature (`trackFeature`) and creates field survey (`createFieldSurvey`). - What it achieves (code): Its `createFieldSurvey` function gives survey session with recorded distance, track features, perimeter and role-labelled GeoJSON export from Fix-quality classifier, distance function, timestamped GPS fixes and planned WGS84 pins (VEDIC: conduct field survey). - What it does: It calculates its inputs. Defines 14 functions or classes, including feature, trackFeature, coordinate, createFieldSurvey, start. - 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: Model Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export createFieldSurvey({ fixQuality, distanceKm })`; `feature(id, role, geometry, properties = {})`; `trackFeature(segment, index)`; `coordinate(fix)`; `start()`; `pause()`; `resume()`; `stop()`; `ingest(fix, now = Date.now())`; `close(pins)`; `reopen()`; `measuredFeatures()`; `mapData()`; `exportData(pins)` - VEDIC: CONDUCT FIELD SURVEY (GG2050-VEDIC-000099): SatNav · Location and navigation data. Fix-quality classifier, distance function, timestamped GPS fixes and planned WGS84 pins -> Survey session with recorded distance, track features, perimeter and role-labelled GeoJSON export. - 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 3 estate files (import 3); used by 1; mentioned by 0 ### Model Test - File: gridatlas/tools/satnav/survey/model.test.mjs (JavaScript, 87 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/survey/model.test.mjs#L1-L87 - Page: https://code.globalgrid2050.com/explore-code/s/0683.html#f5 - Synopsis: A test in the survey folder of GridAtlas that checks Model. - What it achieves (name): Defines `create`, `fix` and `get`. - What it does: It tests its inputs. Defines create, fix, get. 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: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `create()`; `fix(longitude, timestampMs, accuracyM = 4)`; `get(data, role)` - 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 (import 1); used by 1; mentioned by 0 ### Recorder - File: gridatlas/tools/satnav/track/recorder.mjs (JavaScript, 26 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/track/recorder.mjs#L1-L26 - Page: https://code.globalgrid2050.com/explore-code/s/0683.html#f6 - Synopsis: A JavaScript module in the track folder of GridAtlas. It creates track recorder (`createTrackRecorder`) and is built from the snapshot step (`snapshot`) and the start step (`start`). - What it achieves (comment): Session-only measured GPS recorder; inject pinned compass.fixQuality. - What it does: It calculates its inputs. Defines 7 functions or classes, including createTrackRecorder, snapshot, start, pause, resume. - 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 2 files: Model (gridatlas); Recorder Test (gridatlas). Reached from 2 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Model Test (gridatlas). - Signatures: `export createTrackRecorder({fixQuality,maxGapMs=10000,maxPoints=20000}={})`; `snapshot()`; `start()`; `pause()`; `resume()`; `stop()`; `ingest(fix,now=Date.now())` - VEDIC: RECORD GPS TRACK (GG2050-VEDIC-000096): SatNav · Location and navigation data. Fix-quality classifier, timestamped WGS84 fixes with accuracy in metres, optional gap and point limits -> Session recorder with lifecycle controls, accepted or rejected fixes and segmented snapshots. - 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 ### Recorder Test - File: gridatlas/tools/satnav/track/recorder.test.mjs (JavaScript, 21 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/track/recorder.test.mjs#L1-L21 - Page: https://code.globalgrid2050.com/explore-code/s/0683.html#f7 - Synopsis: A test in the track folder of GridAtlas that checks Recorder. It runs tests (`runTests`) and is built from the fix quality helper (`fixQuality`) and the fix step (`fix`). - What it achieves (code): Its `fixQuality` function gives location fix quality from longitude latitude accuracy timestamp fix and optional reference time ms (VEDIC: check location fix). - What it does: It tests its inputs. Defines runTests, fixQuality, fix. Uses libraries node:assert/strict. - 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: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `runTests(createTrackRecorder,assert)`; `fixQuality(f,n)`; `fix(t,accuracyM=5,longitude=-0.3)` - VEDIC: CHECK LOCATION FIX (GG2050-VEDIC-000062): SatNav · Location and navigation data. longitude_latitude_accuracy_timestamp_fix, reference_time_ms_optional -> location_fix_quality - 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 (import 1); used by 1; mentioned by 0 ### SatNav Unified Agent1 Browser - File: gridatlas/tools/satnav/unified-agent1-browser.py (Python, 109 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/unified-agent1-browser.py#L1-L109 - Page: https://code.globalgrid2050.com/explore-code/s/0684.html#f1 - Synopsis: A Python command-line tool in the tools folder of GridAtlas covering postcodes and uses data from postcodes.io. It is built from the check step (`check`). - What it achieves (comment): Real unified composition: native search, independent panel and GPS state. Its code works with 11 kV. - What it does: It draws postcodes. Defines check. Uses libraries os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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: postcodes, 11kV. - Inputs & outputs: In: data source: postcodes.io. Voltage levels named: 11kV. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `check(browser, name, width, height)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: postcodes.io]; out []; crs []; voltages [11kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### SatNav Unified Gps Movement Browser - File: gridatlas/tools/satnav/unified-gps-movement-browser.py (Python, 90 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/unified-gps-movement-browser.py#L1-L90 - Page: https://code.globalgrid2050.com/explore-code/s/0684.html#f2 - Synopsis: A Python command-line tool in the tools folder of GridAtlas. It is built from the check step (`check`). - What it achieves (comment): Exact-composition GPS movement regression; only the GPS sensor is simulated. - What it does: Defines check. Uses libraries os, pathlib, runpy, playwright.sync_api. 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: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `check(browser, engine, width, height)` - 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 0; mentioned by 0 ### SatNav V9202 Neon Dock Browser - File: gridatlas/tools/satnav/v9202-neon-dock-browser.py (Python, 45 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/v9202-neon-dock-browser.py#L1-L45 - Page: https://code.globalgrid2050.com/explore-code/s/0684.html#f3 - Synopsis: A Python command-line tool in the tools folder of GridAtlas. - What it achieves (name): Defines `check`. - What it does: Defines check. Uses libraries os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `check(browser,name,width,height)` - 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 1; mentioned by 0 ### SatNav Verify Unified Release - File: gridatlas/tools/satnav/verify-unified-release.mjs (JavaScript, 106 lines) · role automation · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/verify-unified-release.mjs#L1-L106 - Page: https://code.globalgrid2050.com/explore-code/s/0684.html#f4 - Synopsis: A JavaScript module in the tools folder of GridAtlas that verifies manifest (`verifyManifest`), using SHA-256. - What it achieves (comment): It verifies manifest (`verifyManifest`) and is built from the need step (`need`) and the check step (`check`). G201-07: additive independent release verification; no writes or network. - What it does: It loads data. Defines 8 functions or classes, including verifyManifest, need, check, digest, git. Uses libraries node:crypto, 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 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: JSON file current.json; command-line arguments. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `verifyManifest(m, read, expected)`; `need(ok,msg)`; `check(entry,kind)`; `digest(b)`; `git(...args)`; `blob(rev,path)`; `same(a,b,label)`; `local(base,path)` - 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 1 estate file (url-import-meta 1); used by 1; mentioned by 0 ### Council Router - File: gridatlas/tools/satnav/walk/council/council-router.mjs (JavaScript, 82 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/council/council-router.mjs#L1-L82 - Page: https://code.globalgrid2050.com/explore-code/s/0684.html#f5 - Synopsis: A JavaScript module in the walk folder of GridAtlas that fetches bristol footpaths and mickleham footpaths, using SHA-256. - What it achieves (comment): It reads mickleham sections (`readMicklehamSections`), creates pedestrian router (`createPedestrianRouter`) and loads pedestrian router (`loadPedestrianRouter`). Local, fixed council extracts. No endpoint or GPS fix is sent to a provider. - What it does: It fetches bristol footpaths and mickleham footpaths. Defines readMicklehamSections, createPedestrianRouter, loadPedestrianRouter. 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. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Plan Test (gridatlas). - Signatures: `export createPedestrianRouter({ bristol, mickleham }, maths)`; `export loadPedestrianRouter(maths)`; `readMicklehamSections(pack)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Mapped Footpaths - File: gridatlas/tools/satnav/walk/council/mapped-footpaths.mjs (JavaScript, 161 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/council/mapped-footpaths.mjs#L1-L161 - Page: https://code.globalgrid2050.com/explore-code/s/0684.html#f6 - Synopsis: A JavaScript module in the council folder of GridAtlas that reads sections (`readSections`) and creates bristol footpath router (`createBristolFootpathRouter`) and mapped footpath router (`createMappedFootpathRouter`). - What it achieves (comment): It reads sections (`readSections`), creates bristol footpath router (`createBristolFootpathRouter`) and creates mapped footpath router (`createMappedFootpathRouter`). The Bristol extract has section IDs and shapes but no cross-path junction IDs. - What it does: It lists and searches its content. Defines 9 functions or classes, including same, valid, unavailable, readSections, consecutive. - 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: Council Router (gridatlas). - Signatures: `export createBristolFootpathRouter(collection, maths)`; `export createMappedFootpathRouter(sections, maths, source)`; `same(a, b)`; `valid(p)`; `unavailable(reason)`; `readSections(collection)`; `consecutive(a, b)`; `chainsFor(routes, maths)`; `locate(point, chains, maths)` - 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 1; mentioned by 0 ### Public Map Browser - File: gridatlas/tools/satnav/walk/council/public-map-browser.py (Python, 71 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/council/public-map-browser.py#L1-L71 - Page: https://code.globalgrid2050.com/explore-code/s/0684.html#f7 - Synopsis: A Python command-line tool in the council folder of GridAtlas covering bristol footpaths. It is built from the check step (`check`). - What it achieves (comment): Check the normal phone map and its automatic Bristol routing in both engines. - What it does: Defines check. Uses libraries functools, json, os, threading, http.server. Side effects: changes the web page (DOM); reads or writes files. - 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: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `check(browser, url, width, height)` - 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 0; mentioned by 0 ### Direct Convergence 2km - File: gridatlas/tools/satnav/walk/direct-convergence-2km.mjs (JavaScript, 53 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/direct-convergence-2km.mjs#L1-L53 - Page: https://code.globalgrid2050.com/explore-code/s/0685.html#f1 - Synopsis: A JavaScript module in the walk folder of GridAtlas that creates direct walk (`createDirectWalk`) and sets targets (`setTargets`). It creates direct walk (`createDirectWalk`) and sets targets (`setTargets`). - What it achieves (code): Its `createDirectWalk` function gives direct guidance session reporting choose, waiting, guiding or complete, with distance and bearing where available from Maths and compass modules, ordered targets and timestamped GPS fixes with accuracy (VEDIC: detect destination arrival). - What it does: It calculates its inputs. Defines 6 functions or classes, including samePin, walkTargets, createDirectWalk, setTargets, restart. - 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: Convergence 2km Test (gridatlas). Reached from 3 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); CI PR Gate (gridatlas); Map Promotion Rehearsal (gridatlas). - Signatures: `export walkTargets(pins, from, loop)`; `export createDirectWalk(maths, compass)`; `samePin(a, b)`; `setTargets(next)`; `restart()`; `locate(fix, now = Date.now())` - VEDIC: DETECT DESTINATION ARRIVAL (GG2050-VEDIC-000102): SatNav · Location and navigation data. Maths and compass modules, ordered targets and timestamped GPS fixes with accuracy -> Direct guidance session reporting choose, waiting, guiding or complete, with distance and bearing where available. - 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 2 estate files (import 2); used by 1; mentioned by 1 ### Direct Convergence Unlimited - File: gridatlas/tools/satnav/walk/direct-convergence-unlimited.mjs (JavaScript, 45 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/direct-convergence-unlimited.mjs#L1-L45 - Page: https://code.globalgrid2050.com/explore-code/s/0685.html#f2 - Synopsis: A JavaScript module in the walk folder of GridAtlas that creates direct walk (`createDirectWalk`) and sets targets (`setTargets`). It creates direct walk (`createDirectWalk`) and sets targets (`setTargets`). - What it achieves (code): Its `createDirectWalk` function gives direct guidance session reporting choose, waiting, guiding or complete, with distance and bearing where available from Maths and compass modules, ordered targets and timestamped GPS fixes with accuracy (VEDIC: detect destination arrival). - What it does: It calculates its inputs. Defines 6 functions or classes, including samePin, walkTargets, createDirectWalk, setTargets, restart. - 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: Distance Dock Proof (gridatlas). - Signatures: `export walkTargets(pins, from, loop)`; `export createDirectWalk(maths, compass)`; `samePin(a, b)`; `setTargets(next)`; `restart()`; `locate(fix, now = Date.now())` - VEDIC: DETECT DESTINATION ARRIVAL (GG2050-VEDIC-000102): SatNav · Location and navigation data. Maths and compass modules, ordered targets and timestamped GPS fixes with accuracy -> Direct guidance session reporting choose, waiting, guiding or complete, with distance and bearing where available. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/tools/satnav/walk/direct.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Direct - File: gridatlas/tools/satnav/walk/direct.mjs (JavaScript, 43 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/direct.mjs#L1-L43 - Page: https://code.globalgrid2050.com/explore-code/s/0685.html#f3 - Synopsis: A JavaScript module in the walk folder of GridAtlas that sets targets (`setTargets`). It creates direct walk (`createDirectWalk`) and sets targets (`setTargets`). - What it achieves (code): Its `createDirectWalk` function gives direct guidance session reporting choose, waiting, guiding or complete, with distance and bearing where available from Maths and compass modules, ordered targets and timestamped GPS fixes with accuracy (VEDIC: detect destination arrival). - What it does: It calculates its inputs. Defines 6 functions or classes, including samePin, walkTargets, createDirectWalk, setTargets, restart. - 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 2 files: Direct Test (gridatlas); Handoff (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export walkTargets(pins, from, loop)`; `export createDirectWalk(maths, compass)`; `samePin(a, b)`; `setTargets(next)`; `restart()`; `locate(fix, now = Date.now())` - VEDIC: DETECT DESTINATION ARRIVAL (GG2050-VEDIC-000102): SatNav · Location and navigation data. Maths and compass modules, ordered targets and timestamped GPS fixes with accuracy -> Direct guidance session reporting choose, waiting, guiding or complete, with distance and bearing where available. - 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 (import 1); used by 2; mentioned by 0 ### Direct Test - File: gridatlas/tools/satnav/walk/direct.test.mjs (JavaScript, 52 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/direct.test.mjs#L1-L52 - Page: https://code.globalgrid2050.com/explore-code/s/0685.html#f4 - Synopsis: A test in the walk folder of GridAtlas that checks Direct. - What it achieves (name): Defines `north` and `fix`. - What it does: It tests its inputs. Defines north, fix. Uses libraries node:test, node:assert/strict. - 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: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `north(metres)`; `fix(coordinate, timestampMs, accuracyM = 4)` - 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 (import 1); used by 1; mentioned by 0 ### Browser - File: gridatlas/tools/satnav/walk/gate/browser.py (Python, 206 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/gate/browser.py#L1-L206 - Page: https://code.globalgrid2050.com/explore-code/s/0685.html#f5 - Synopsis: A Python command-line tool in the gate folder of GridAtlas that checks baseline (`check_baseline`), covering road. - What it achieves (comment): It is built from the quiet handler class (`QuietHandler`), the log message helper (`log_message`) and the point step (`point`). Gate acceptance through the isolated GridAtlas phone map with synthetic GPS. - What it does: Defines 7 functions or classes, including QuietHandler, log_message, point, emit, network. Uses libraries functools, math, os, threading, http.server. Side effects: changes the web page (DOM); reads or writes files. - 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 road.json; JSON file style.json. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `class QuietHandler`; `log_message(self, *_)`; `point(east, north)`; `emit(page, east, north, accuracy=4)`; `network(route, host, broken_road)`; `check_baseline(browser, engine, base)`; `check(browser, engine, width, height, url, broken_road=False)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file road.json; JSON file style.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Controls - File: gridatlas/tools/satnav/walk/gate/controls.mjs (JavaScript, 142 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/gate/controls.mjs#L1-L142 - Page: https://code.globalgrid2050.com/explore-code/s/0685.html#f6 - Synopsis: A JavaScript module in the gate folder of GridAtlas that maps road. It attaches map (`attachMap`) and loads road (`loadRoad`). - What it achieves (name): Defines `metres`, `mountGateControls`, `selected` and 7 more. - What it does: It maps road. Defines 10 functions or classes, including metres, mountGateControls, selected, framePlan, draw. Side effects: changes the web page (DOM); makes network requests. - 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 road.json. - Signatures: `export mountGateControls({api, compass, message, start, mode, render})`; `metres(value)`; `selected()`; `framePlan()`; `draw()`; `attachMap()`; `loadRoad(epoch)`; `select()`; `matchesPlan()`; `describe(active, stopped)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file road.json]; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 0 ### Handoff - File: gridatlas/tools/satnav/walk/gate/handoff.mjs (JavaScript, 122 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/gate/handoff.mjs#L1-L122 - Page: https://code.globalgrid2050.com/explore-code/s/0685.html#f7 - Synopsis: A JavaScript module in the gate folder of GridAtlas that sets road (`setRoad`). It creates gate handoff (`createGateHandoff`) and sets road (`setRoad`). - What it achieves (code): Its `createGateHandoff` function gives road or field leg, crossing or manual entry state, quality and available guidance metrics from Agreed gate plan with geometry and width, saved road route (VEDIC: detect gate crossing). - What it does: It calculates its inputs. Defines 9 functions or classes, including validPoint, createGateHandoff, metres, position, setRoad. - 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). - Downstream impact: Used directly by 5 files: Controls (gridatlas); Handoff Test (gridatlas); Controls (gridatlas); Plan (gridatlas); and 1 more. - Signatures: `export createGateHandoff(plan, maths, compass)`; `validPoint(p)`; `metres(a, b)`; `position(at)`; `angle(maths.initialBearingDeg(...gate.centre, ...at) - axis)`; `setRoad(saved)`; `enterField(reason)`; `restart()`; `observe(at, fix)`; `locate(fix, now = Date.now())` - VEDIC: DETECT GATE CROSSING (GG2050-VEDIC-000098): SatNav · Location and navigation data. Agreed gate plan with geometry and width, saved road route, maths and compass modules, timestamped GPS fixes -> Road or field leg, crossing or manual entry state, quality and available guidance metrics. - domain_stage: agent_infra · commercial_user: landowner_planner, ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 5; mentioned by 0 ### Handoff Test - File: gridatlas/tools/satnav/walk/gate/handoff.test.mjs (JavaScript, 148 lines) · role test · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/gate/handoff.test.mjs#L1-L148 - Page: https://code.globalgrid2050.com/explore-code/s/0686.html#f1 - Synopsis: A test in the gate folder of GridAtlas that checks Handoff and Plan. It is built from the step step (`step`). - What it achieves (name): Defines `point`, `fix`, `session` and 1 more. It reads `./pilot/road.json`. - What it does: It tests its inputs. Defines point, fix, session, step. Uses libraries node:assert/strict, node:fs, node:test. Side effects: reads or writes files. - 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). - Inputs & outputs: In: JSON file road.json. - Signatures: `point(east, north)`; `fix(east, north, accuracyM, timestampMs)`; `session(plan = pilot, saved = road)`; `step(east, north, accuracy = 4)` - domain_stage: agent_infra · commercial_user: landowner_planner, ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file road.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Browser - File: gridatlas/tools/satnav/walk/gate/jobs/browser.py (Python, 187 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/gate/jobs/browser.py#L1-L187 - Page: https://code.globalgrid2050.com/explore-code/s/0686.html#f2 - Synopsis: A Python command-line tool in the jobs folder of GridAtlas that draws south meadow fictional and local entrance. - What it achieves (comment): It is built from the load step (`load`), the position step (`position`) and the check step (`check`). Load two jobs through the phone UI and replay a visit to the second entrance. - What it does: It draws south meadow fictional and local entrance. Defines load, position, check, emit. Uses libraries functools, json, math, os, threading. Side effects: changes the web page (DOM); reads or writes files. - 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 south-meadow-fictional.json; JSON file local-entrance.json. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `load(page, doc)`; `position(x, y)`; `check(browser, width, height, url)`; `emit(x, y, accuracy=3, age=0)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file south-meadow-fictional.json; JSON file local-entrance.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Controls - File: gridatlas/tools/satnav/walk/gate/jobs/controls.mjs (JavaScript, 221 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/gate/jobs/controls.mjs#L1-L221 - Page: https://code.globalgrid2050.com/explore-code/s/0686.html#f3 - Synopsis: A JavaScript module in the jobs folder of GridAtlas that maps road. It attaches map (`attachMap`) and loads road (`loadRoad`). - What it achieves (name): Defines `metres`, `mountGateControls`, `isJob` and 11 more. It responds to visibilitychange and click events. - What it does: It maps road. Defines 14 functions or classes, including metres, mountGateControls, isJob, selected, framePlan. Side effects: changes the web page (DOM); makes network requests. - 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 road.json. - Signatures: `export mountGateControls({api, compass, message, start, mode, render, isActive})`; `metres(value)`; `isJob()`; `selected()`; `framePlan()`; `draw()`; `attachMap()`; `loadRoad(epoch)`; `begin(action = 'start-walk')`; `select()`; `useJob(job)`; `matchesPlan()`; `describe(active, stopped)`; `end(reason)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file road.json]; out []; crs []; voltages [] - Edges: uses 4 estate files (import 4); used by 0; mentioned by 0 ### Observations - File: gridatlas/tools/satnav/walk/gate/jobs/observations.mjs (JavaScript, 64 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/gate/jobs/observations.mjs#L1-L64 - Page: https://code.globalgrid2050.com/explore-code/s/0686.html#f4 - Synopsis: A JavaScript module in the jobs folder of GridAtlas that creates gate log (`createGateLog`). - What it achieves (comment): It creates gate log (`createGateLog`) and is built from the append step (`append`) and the start step (`start`). Observations are held only for this page and included in an explicit survey export. - What it does: It calculates its inputs. Defines 6 functions or classes, including createGateLog, append, start, observe, stop. - 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. - Downstream impact: Used directly by 1 file: Controls (gridatlas). - Signatures: `export createGateLog(generation, userAgent, platform)`; `append(event, data = {})`; `start(plan, road, action)`; `observe(fix, result, assetName)`; `stop(reason)`; `snapshot(device, safariVersion)` - 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 1; mentioned by 0 ### Plan - File: gridatlas/tools/satnav/walk/gate/jobs/plan.mjs (JavaScript, 68 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/gate/jobs/plan.mjs#L1-L68 - Page: https://code.globalgrid2050.com/explore-code/s/0686.html#f5 - Synopsis: A JavaScript module in the jobs folder of GridAtlas that prepares gate job (`prepareGateJob`). It prepares gate job (`prepareGateJob`). - What it achieves (name): Defines `label`, `point` and `prepareGateJob`. - What it does: It calculates its inputs. Defines label, point, prepareGateJob. - 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: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 1 file: Plan Test (gridatlas). - Signatures: `export prepareGateJob(doc, maths, compass)`; `label(value, field)`; `point(value, field)`; `angle(roadsideBearing - bearing)` - domain_stage: field_execution · commercial_user: 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 ### Plan Test - File: gridatlas/tools/satnav/walk/gate/jobs/plan.test.mjs (JavaScript, 91 lines) · role test · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/gate/jobs/plan.test.mjs#L1-L91 - Page: https://code.globalgrid2050.com/explore-code/s/0687.html#f1 - Synopsis: A test in the jobs folder of GridAtlas that checks Council Router and Plan. It is built from the coords step (`coords`). - What it achieves (name): Defines `read`, `open`, `step` and 1 more. It reads `./south-meadow-fictional.json`. - What it does: It tests its inputs. Defines read, open, step, coords. Uses libraries node:assert/strict, node:fs, node:test. Side effects: reads or writes files. - 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 south-meadow-fictional.json; JSON file road.json; GeoJSON file bristol-footpaths.geojson. - Signatures: `read(path)`; `open(doc = job)`; `step(coordinates, accuracyM = 3)`; `coords(code)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file south-meadow-fictional.json; JSON file road.json; GeoJSON file bristol-footpaths.geojson]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Plan - File: gridatlas/tools/satnav/walk/gate/pilot/plan.mjs (JavaScript, 46 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/gate/pilot/plan.mjs#L1-L46 - Page: https://code.globalgrid2050.com/explore-code/s/0687.html#f2 - Synopsis: A JavaScript module in the pilot folder of GridAtlas. - What it achieves (comment): Illustrative coordinates and opening, designed for replay. - 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. - Downstream impact: Used directly by 4 files: Controls (gridatlas); Handoff Test (gridatlas); Controls (gridatlas); Replay (gridatlas). - 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 4; mentioned by 0 ### Replay - File: gridatlas/tools/satnav/walk/gate/pilot/replay.mjs (JavaScript, 23 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/gate/pilot/replay.mjs#L1-L23 - Page: https://code.globalgrid2050.com/explore-code/s/0687.html#f3 - Synopsis: A JavaScript module in the pilot folder of GridAtlas. It replays gate checks (`replayGateChecks`). - What it achieves (comment): Off-site phone replay. Its fixes stay inside separate model instances. - What it does: It calculates its inputs. Defines replayGateChecks. - 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. - Downstream impact: Used directly by 2 files: Controls (gridatlas); Controls (gridatlas). - Signatures: `export replayGateChecks(saved, maths, compass)` - 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 2 estate files (import 2); used by 2; mentioned by 0 ### Layers Browser - File: gridatlas/tools/satnav/walk/layers-browser.py (Python, 79 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/layers-browser.py#L1-L79 - Page: https://code.globalgrid2050.com/explore-code/s/0687.html#f4 - Synopsis: A Python command-line tool in the walk folder of GridAtlas. It is built from the check step (`check`). - What it achieves (comment): Exercise the actual field-map Layers control while direct guidance is active. Its code works with 400 kV. - What it does: Defines check. Uses libraries os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files. - 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: 400kV. - Inputs & outputs: Voltage levels named: 400kV. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `check(browser, engine, width, height)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Local Distance Browser - File: gridatlas/tools/satnav/walk/local-distance-browser.py (Python, 102 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/local-distance-browser.py#L1-L102 - Page: https://code.globalgrid2050.com/explore-code/s/0687.html#f5 - Synopsis: A Python command-line tool in the walk folder of GridAtlas. It is built from the check step (`check`). - What it achieves (comment): Exercise the switch from the fictional entrance to a personal walk with synthetic GPS. - What it does: Defines check. Uses libraries functools, os, re, threading, http.server. Side effects: changes the web page (DOM); reads or writes files. - 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: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `check(browser, size, url)` - 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 0; mentioned by 0 ### Orient17a Continuity Direct - File: gridatlas/tools/satnav/walk/orient17a-continuity-direct.mjs (JavaScript, 53 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/orient17a-continuity-direct.mjs#L1-L53 - Page: https://code.globalgrid2050.com/explore-code/s/0687.html#f6 - Synopsis: A JavaScript module in the walk folder of GridAtlas that creates direct walk (`createDirectWalk`) and sets targets (`setTargets`). It creates direct walk (`createDirectWalk`) and sets targets (`setTargets`). - What it achieves (code): Its `createDirectWalk` function gives direct guidance session reporting choose, waiting, guiding or complete, with distance and bearing where available from Maths and compass modules, ordered targets and timestamped GPS fixes with accuracy (VEDIC: detect destination arrival). - What it does: It calculates its inputs. Defines 7 functions or classes, including samePin, walkTargets, createDirectWalk, setTargets, restart. - 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: Orient17a Continuity Test (gridatlas). - Signatures: `export walkTargets(pins, from, loop)`; `export createDirectWalk(maths, compass)`; `samePin(a, b)`; `setTargets(next)`; `restart()`; `suspend(now = Date.now())`; `locate(fix, now = Date.now())` - VEDIC: DETECT DESTINATION ARRIVAL (GG2050-VEDIC-000102): SatNav · Location and navigation data. Maths and compass modules, ordered targets and timestamped GPS fixes with accuracy -> Direct guidance session reporting choose, waiting, guiding or complete, with distance and bearing where available. - 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 2 estate files (import 2); used by 1; mentioned by 0 ### Orient17a Continuity Test - File: gridatlas/tools/satnav/walk/orient17a-continuity.test.mjs (JavaScript, 34 lines) · role test · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/orient17a-continuity.test.mjs#L1-L34 - Page: https://code.globalgrid2050.com/explore-code/s/0687.html#f7 - Synopsis: A test in the walk folder of GridAtlas that checks Orient17a Continuity Direct. - What it achieves (name): Defines `observe`. - What it does: It tests its inputs. Defines observe, eq. Uses libraries node:assert/strict. - 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: `observe(t,p=0,a=3,now=t)`; `eq(actual,expected,label)` - 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 ### Orient17a Direct - File: gridatlas/tools/satnav/walk/orient17a-direct.mjs (JavaScript, 48 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/orient17a-direct.mjs#L1-L48 - Page: https://code.globalgrid2050.com/explore-code/s/0687.html#f8 - Synopsis: A JavaScript module in the walk folder of GridAtlas that creates direct walk (`createDirectWalk`) and sets targets (`setTargets`). It creates direct walk (`createDirectWalk`) and sets targets (`setTargets`). - What it achieves (code): Its `createDirectWalk` function gives direct guidance session reporting choose, waiting, guiding or complete, with distance and bearing where available from Maths and compass modules, ordered targets and timestamped GPS fixes with accuracy (VEDIC: detect destination arrival). - What it does: It calculates its inputs. Defines 6 functions or classes, including samePin, walkTargets, createDirectWalk, setTargets, restart. - 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: `export walkTargets(pins, from, loop)`; `export createDirectWalk(maths, compass)`; `samePin(a, b)`; `setTargets(next)`; `restart()`; `locate(fix, now = Date.now())` - VEDIC: DETECT DESTINATION ARRIVAL (GG2050-VEDIC-000102): SatNav · Location and navigation data. Maths and compass modules, ordered targets and timestamped GPS fixes with accuracy -> Direct guidance session reporting choose, waiting, guiding or complete, with distance and bearing where available. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/tools/satnav/walk/direct.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Orient17a V9212 Direct - File: gridatlas/tools/satnav/walk/orient17a-v9212-direct.mjs (JavaScript, 53 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/orient17a-v9212-direct.mjs#L1-L53 - Page: https://code.globalgrid2050.com/explore-code/s/0687.html#f9 - Synopsis: A JavaScript module in the walk folder of GridAtlas that creates direct walk (`createDirectWalk`) and sets targets (`setTargets`). It creates direct walk (`createDirectWalk`) and sets targets (`setTargets`). - What it achieves (code): Its `createDirectWalk` function gives direct guidance session reporting choose, waiting, guiding or complete, with distance and bearing where available from Maths and compass modules, ordered targets and timestamped GPS fixes with accuracy (VEDIC: detect destination arrival). - What it does: It calculates its inputs. Defines 7 functions or classes, including samePin, walkTargets, createDirectWalk, setTargets, restart. - 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: `export walkTargets(pins, from, loop)`; `export createDirectWalk(maths, compass)`; `samePin(a, b)`; `setTargets(next,now=Date.now())`; `restart(now=Date.now())`; `suspend(now = Date.now())`; `locate(fix, now = Date.now())` - VEDIC: DETECT DESTINATION ARRIVAL (GG2050-VEDIC-000102): SatNav · Location and navigation data. Maths and compass modules, ordered targets and timestamped GPS fixes with accuracy -> Direct guidance session reporting choose, waiting, guiding or complete, with distance and bearing where available. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of gridatlas/tools/satnav/walk/orient17a-continuity-direct.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Saved Plan Browser - File: gridatlas/tools/satnav/walk/saved-plan-browser.py (Python, 144 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/walk/saved-plan-browser.py#L1-L144 - Page: https://code.globalgrid2050.com/explore-code/s/0687.html#f10 - Synopsis: A Python command-line tool in the walk folder of GridAtlas that opens map (`open_map`), covering walk. - What it achieves (comment): It checks browser (`check_browser`) and is built from the disclosure step (`disclosure`) and the direct step (`direct`). Start the same walk from map taps, the device's saved plan and a native file import. - What it does: It lists and searches walk. Defines open_map, disclosure, direct, feature, check_browser. Uses libraries json, math, os, re, pathlib. Side effects: changes the web page (DOM); reads or writes files. - 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: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `open_map(page)`; `disclosure(page, name)`; `direct(page, metres, bearing)`; `feature(kind, coordinates, role, **properties)`; `check_browser(engine, name, width, height)` - 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 0; mentioned by 0 ### SatNav Waypoint Browser - File: gridatlas/tools/satnav/waypoint-browser.py (Python, 256 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/waypoint-browser.py#L1-L256 - Page: https://code.globalgrid2050.com/explore-code/s/0688.html#f1 - Synopsis: A Python command-line tool in the tools folder of GridAtlas that emits fix (`emit_fix`), checks bearing (`check_bearing`) and map gestures (`check_map_gestures`) and calculates planar distances and angles. - What it achieves (comment): It is built from the pins step (`pins`), the clear map pixel helper (`clear_map_pixel`) and the place step (`place`). Touch and GPS regression for the composed GridAtlas waypoint map. - What it does: It lists and searches its content. Defines 8 functions or classes, including pins, clear_map_pixel, place, emit_fix, measured. Uses libraries math, os, re, pathlib, runpy. Side effects: changes the web page (DOM); reads or writes files. - 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: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `pins(page, count=None, previous=None)`; `clear_map_pixel(page, cell, used=())`; `place(page, control, cell, used=None)`; `emit_fix(page, at, accuracy=5, age=0)`; `measured(page, at)`; `check_bearing(page, planned, at)`; `check_map_gestures(page, expected)`; `check_browser(browser, name, width, height)` - 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 0; mentioned by 0 ### State Test - File: gridatlas/tools/satnav/waypoints/state.test.mjs (JavaScript, 21 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/satnav/waypoints/state.test.mjs#L1-L21 - Page: https://code.globalgrid2050.com/explore-code/s/0688.html#f2 - Synopsis: A test in the waypoints folder of GridAtlas. It runs tests (`runTests`). - What it achieves (name): Defines `runTests`, `reject` and `test`. - What it does: It tests its inputs. Defines runTests, eq, reject, 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: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `runTests(createWaypointState)`; `eq(a,b)`; `reject(fn)`; `test(name,fn)` - 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 1; mentioned by 0 ### Advance - File: gridatlas/tools/scope/advance.mjs (JavaScript, 432 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/scope/advance.mjs#L1-L432 - Page: https://code.globalgrid2050.com/explore-code/s/0688.html#f3 - Synopsis: A JavaScript module in the scope folder of GridAtlas that fetches grid 400kV and CVAA ratchets, using SHA-256 from postcodes.io. - What it achieves (name): It removes path (`removePath`), runs node check (`runNodeCheck`) and replaces exactly once (`replaceExactlyOnce`). Defines `moveDirectory`, `removePath`, `runNodeCheck` and 15 more. It reads `./current.json`. - What it does: It fetches grid 400kV and CVAA ratchets. Defines 18 functions or classes, including moveDirectory, removePath, runNodeCheck, finishScope, finishFinal. Uses libraries node:fs, node:path, node:child_process. 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. - Inputs & outputs: In: data source: postcodes.io; JSON file current-v5.json; JSON file live-set.json; JSON file current.json; GeoJSON file grid_400kv.geojson; JSON file modules.json; JSON file cvaa-ratchets.json; DuckDB queries. - Downstream impact: Used directly by 1 file: GridAtlas Scope Loop Workflow (gridatlas). - Signatures: `moveDirectory(from, to)`; `removePath(target)`; `runNodeCheck(filePath)`; `finishScope(document, nextScope, slug, title, body)`; `finishFinal(document)`; `temporaryAtlasRouter()`; `rootRouter()`; `rewriteLivePointers(routerGeneration)`; `scope1(document)`; `scope2(document)`; `scope3(document)`; `replaceExactlyOnce(source, search, replacement, label)`; `buildLocationSearchCartridge(source)`; `scope4(document)`; `updateCompositionPointers(current, manifestPath)`; `scope5(document)`; `retireScopeLoopWorkflow()`; `scope6(document)` - 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 current-v5.json; JSON file live-set.json; JSON file current.json; GeoJSON file grid_400kv.geojson; JSON file modules.json; JSON file cvaa-ratchets.json; DuckDB queries]; out []; crs []; voltages [] - Edges: uses 4 estate files (script-call 3, estate-url 1); used by 1; mentioned by 0 ### Bootstrap - File: gridatlas/tools/scope/bootstrap.mjs (JavaScript, 75 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/scope/bootstrap.mjs#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0689.html#f2 - Synopsis: A JavaScript module in the scope folder of GridAtlas that reads scope bootstrap, using SHA-256. It writes output (`writeOutput`). - What it achieves (name): Defines `writeOutput` and `sha256`. - What it does: It loads scope bootstrap. Defines writeOutput, sha256. Uses libraries node:fs, node:path, node:zlib, 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 scope-bootstrap.json. - Downstream impact: Used directly by 1 file: GridAtlas Scope Loop Workflow (gridatlas). - Signatures: `writeOutput(values)`; `sha256(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 scope-bootstrap.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GridAtlas — Scope - File: gridatlas/tools/scope/lib.mjs (JavaScript, 308 lines) · role storage · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/scope/lib.mjs#L1-L308 - Page: https://code.globalgrid2050.com/explore-code/s/0689.html#f3 - Synopsis: A JavaScript module in the tools folder that normalises newlines (`normaliseNewlines`) and parses scalar (`parseScalar`) and front matter (`parseFrontMatterText`), using SHA-256. - What it achieves (name): It normalises newlines (`normaliseNewlines`), parses scalar (`parseScalar`) and serialises scalar (`serialiseScalar`). Defines `registeredLoader`, `slotsUsed`, `invariant` and 25 more. - What it does: It loads data. Defines 28 functions or classes, including registeredLoader, slotsUsed, invariant, normaliseNewlines, parseScalar. 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. - Downstream impact: Used directly by 11 files: CI PR Gate (gridatlas); Lightning Cartridge (gridatlas); Loader Equivalence Proof (gridatlas); Offtakers Cartridge (gridatlas); and 7 more. Reached from 28 other entry points, including GridAtlas Cartridge Proof Workflow (gridatlas); GridAtlas Next Version Builders Workflow (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export registeredLoader(filePath)`; `export slotsUsed(current)`; `export invariant(condition, message)`; `export normaliseNewlines(value)`; `export parseFrontMatterText(text, file = '')`; `export readFrontMatter(filePath)`; `export writeFrontMatter(filePath, patch)`; `export writeText(filePath, content)`; `export writeJson(filePath, value)`; `export readJson(filePath)`; `export listScopeDocuments()`; `export masterDocument(documents = listScopeDocuments())`; `export numberedScopes(documents = listScopeDocuments())`; `export activeScope(documents = listScopeDocuments())`; `export sha256Buffer(bytes)`; `export sha256File(filePath)`; `export sha256PublishedFile(filePath)`; `export londonGeneration(date = new Date())`; `export nextGeneration(previous)`; `export scopeFileName(generation, scope, slug)`; `export scopeMarkdown({ generation, scope, parent, title, body })`; `export githubOutput(values)`; `export relativePosix(filePath)`; `parseScalar(raw)`; `serialiseScalar(value)` (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 11; mentioned by 0 ### Loop - File: gridatlas/tools/scope/loop.mjs (JavaScript, 307 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/scope/loop.mjs#L1-L307 - Page: https://code.globalgrid2050.com/explore-code/s/0689.html#f4 - Synopsis: A JavaScript module in the scope folder of GridAtlas that reads grid 400kV and substations, using SHA-256. - What it achieves (name): It verifies release checksums (`verifyReleaseChecksums`), validates scope ledger (`validateScopeLedger`) and validates workflow budget (`validateWorkflowBudget`). Defines `existingDirectories`, `existingFiles`, `verifyReleaseChecksums` and 6 more. Its code works with 400 kV. - What it does: It loads grid 400kV and substations. Defines 9 functions or classes, including existingDirectories, existingFiles, verifyReleaseChecksums, validateScopeLedger, validateWorkflowBudget. Uses libraries 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. Domain terms in the code: substations, 400kV. - Inputs & outputs: In: GeoJSON file grid_400kv.geojson; JSON file current.json; JSON file current-v5.json; JSON file live-set.json; command-line arguments. Voltage levels named: 400kV. - Downstream impact: Used directly by 8 files: Local CI (gridatlas); CI PR Gate (gridatlas); GridAtlas — Release (gridatlas); Advance (gridatlas); and 4 more. Reached from 25 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); GridAtlas Verify Live Workflow (gridatlas); Acceptance (gridatlas). - Signatures: `existingDirectories(directory)`; `existingFiles(directory, pattern = null)`; `verifyReleaseChecksums(releaseDirectory)`; `validateScopeLedger()`; `validateWorkflowBudget(master)`; `validateAtlasLayout(scopeState)`; `lint({ quiet = false } = {})`; `renderState(scopeState, { toStdout = false } = {})`; `next(scopeState)` - 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 current.json; JSON file current-v5.json; JSON file live-set.json; command-line arguments]; out []; crs []; voltages [400kV] - Edges: uses 2 estate files (import 1, estate-url 1); used by 8; mentioned by 0 ### Verify Compose - File: gridatlas/tools/scope/verify-compose.mjs (JavaScript, 111 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/scope/verify-compose.mjs#L1-L111 - Page: https://code.globalgrid2050.com/explore-code/s/0690.html#f1 - Synopsis: A JavaScript module in the scope folder of GridAtlas that reads grid 400kV and postcodes, using SHA-256 from postcodes.io. It is built from the release directories helper (`releaseDirectories`). - What it achieves (name): Its name says it verifies compose. Defines `releaseDirectories`. Its code works with 400 kV. - What it does: It loads grid 400kV and postcodes. Defines releaseDirectories. Uses libraries 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. Domain terms in the code: postcodes, 400kV. - Inputs & outputs: In: data source: postcodes.io; JSON file current.json; GeoJSON file grid_400kv.geojson. Voltage levels named: 400kV. - Downstream impact: Used directly by 8 files: Local CI (gridatlas); CI PR Gate (gridatlas); GridAtlas — Release (gridatlas); Advance (gridatlas); and 4 more. Reached from 24 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Acceptance (gridatlas); Browser Test (gridatlas). - Signatures: `releaseDirectories(directory)` - 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 current.json; GeoJSON file grid_400kv.geojson]; out []; crs []; voltages [400kV] - Edges: uses 1 estate file (import 1); used by 8; mentioned by 0 ### Verify Live Bytes - File: gridatlas/tools/scope/verify-live-bytes.mjs (JavaScript, 195 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/scope/verify-live-bytes.mjs#L1-L195 - Page: https://code.globalgrid2050.com/explore-code/s/0690.html#f2 - Synopsis: A JavaScript module in the scope folder of GridAtlas that resolves atlas reference (`resolveAtlasReference`) and collects targets (`collectTargets`), using SHA-256. - What it achieves (comment): It resolves atlas reference (`resolveAtlasReference`), collects targets (`collectTargets`) and fetches live (`fetchLive`). Byte-for-byte check that the public GitHub Pages site serves exactly what a commit declares. - What it does: It fetches data. Defines 12 functions or classes, including argument, sha256, committedBytes, committedFiles, walk. Uses libraries node:fs, node:path, node:crypto, node:child_process, 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: JSON file current.json; command-line arguments. - Downstream impact: Used directly by 2 files: Check Live (gridatlas); GridAtlas Verify Live Workflow (gridatlas). - Signatures: `argument(name, fallback)`; `sha256(bytes)`; `committedBytes(relative)`; `committedFiles(prefix)`; `isCommittedFile(relative)`; `resolveAtlasReference(value)`; `collectTargets()`; `add(relative, why)`; `walk(value, where)`; `fetchLive(relative, attempt)`; `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 current.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 2; mentioned by 0 ### Verify Live - File: gridatlas/tools/scope/verify-live.mjs (JavaScript, 195 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/scope/verify-live.mjs#L1-L195 - Page: https://code.globalgrid2050.com/explore-code/s/0690.html#f3 - Synopsis: A JavaScript module in the scope folder of GridAtlas covering the Renewable Energy Planning Database (REPD) register and postcodes, and uses data from postcodes.io. - What it achieves (name): It writes report (`writeReport`) and is built from the state snapshot helper (`stateSnapshot`) and the wait for deployed current helper (`waitForDeployedCurrent`). Its name says it verifies live. Defines `invariant`, `clone`, `stateSnapshot` and 4 more. - What it does: It draws the REPD register and postcodes. Defines 7 functions or classes, including invariant, clone, stateSnapshot, waitForDeployedCurrent, record. Uses libraries node:fs, 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. Domain terms in the code: the REPD register, postcodes. - Inputs & outputs: In: data source: postcodes.io; JSON file current.json. - Signatures: `invariant(condition, message)`; `clone(value)`; `stateSnapshot()`; `waitForDeployedCurrent()`; `record(name, action)`; `run()`; `writeReport()` - 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; JSON file current.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### Build - File: gridatlas/tools/secondary/build.mjs (JavaScript, 7 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/secondary/build.mjs#L1-L7 - Page: https://code.globalgrid2050.com/explore-code/s/0690.html#f4 - Synopsis: A JavaScript module in the secondary folder of GridAtlas. - What it does: It loads data. Uses libraries node:fs, 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: 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 1 estate file (url-import-meta 1); used by 0; mentioned by 0 ### G203 Swarm 06 Viewport Lifecycle Test - File: gridatlas/tools/secondary/g203-swarm-06-viewport-lifecycle.test.mjs (JavaScript, 20 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/secondary/g203-swarm-06-viewport-lifecycle.test.mjs#L1-L20 - Page: https://code.globalgrid2050.com/explore-code/s/0690.html#f5 - Synopsis: A test in the secondary folder of GridAtlas that checks G203 Regional Native Viewport. It is built from the flush step (`flush`) and the check step (`check`). - What it achieves (comment): Execute the actual candidate lifecycle with controlled asynchronous query outcomes. - What it does: It tests its inputs. Defines flush, check. 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. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `flush()`; `check(name,condition)` - 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 (url-import-meta 1); used by 1; mentioned by 0 ### Owner Test Proof - File: gridatlas/tools/secondary/owner-test-proof.mjs (JavaScript, 23 lines) · role test · stage ingest - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/secondary/owner-test-proof.mjs#L1-L23 - Page: https://code.globalgrid2050.com/explore-code/s/0690.html#f6 - Synopsis: A JavaScript module in the secondary folder of GridAtlas that tests composition and substations, using SHA-256. It is built from the sha step (`sha`) and the prove step (`prove`). - What it achieves (comment): Rebuild and verify each cut cartridge and its preview manifest. It reads `-composition.json`. - What it does: It tests composition and substations. Defines sha, prove. Uses libraries node:fs, node:assert/strict, 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. Domain terms in the code: substations. - Inputs & outputs: In: JSON file -composition.json; JSON file current.json. - Downstream impact: Used directly by 7 files: Substation Intelligence Proof (gridatlas); UKPN Secondary Card Proof (gridatlas); UKPN Secondary Substations Proof (gridatlas); SatNav Start Walk Proof (gridatlas); and 3 more. Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export prove(g,id)`; `sha(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 -composition.json; JSON file current.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 7; mentioned by 0 ### Regional Interface - File: gridatlas/tools/secondary/regional-interface.mjs (JavaScript, 108 lines) · role render · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/secondary/regional-interface.mjs#L1-L108 - Page: https://code.globalgrid2050.com/explore-code/s/0690.html#f7 - Synopsis: A JavaScript module in the secondary folder of GridAtlas that reads composition, substations and 11kV, using SHA-256. It replaces once (`replaceOnce`), patches native engine (`patchNativeEngine`) and splits secondary adapter (`splitSecondaryAdapter`). - What it achieves (comment): Generate replacement native engine plus separate data/card modules. Its code works with 11 kV. It reads `manifests/202612010912-composition.json`. - What it does: It loads composition, substations and 11kV. Defines 11 functions or classes, including replaceOnce, patchNativeEngine, regionalEligible, handleLayerToggle, splitSecondaryAdapter. Uses libraries node:fs, node:crypto, node:vm, node:path, 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. Domain terms in the code: substations, 11kV. - Inputs & outputs: In: JSON file 202612010912-composition.json; command-line arguments. Voltage levels named: 11kV. - Downstream impact: Used directly by 3 files: Owner Test Proof (gridatlas); Regional Interface Test (gridatlas); Regional Preview (gridatlas). Reached from 4 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); CI PR Gate (gridatlas); Map Promotion Rehearsal (gridatlas). - Signatures: `export patchNativeEngine(s)`; `export splitSecondaryAdapter(s)`; `export assertDataBoundary(source)`; `export readPinnedEngine()`; `export buildRegional()`; `replaceOnce(s, a, b)`; `regionalEligible(layerId)`; `handleLayerToggle(layerId, isVisible)`; `visible()`; `attach()`; `read(p)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file 202612010912-composition.json; command-line arguments]; out []; crs []; voltages [11kV] - Edges: uses 1 estate file (url-import-meta 1); used by 3; mentioned by 0 ### Regional Interface Test - File: gridatlas/tools/secondary/regional-interface.test.mjs (JavaScript, 136 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/secondary/regional-interface.test.mjs#L1-L136 - Page: https://code.globalgrid2050.com/explore-code/s/0691.html#f1 - Synopsis: A test in the secondary folder of GridAtlas that checks Regional Interface and UK Power Networks (UKPN) Secondary Substations. It makes element (`makeElement`), makes popup (`makePopup`) and gets card (`getCard`). - What it achieves (name): Defines `harness`, `makeElement`, `site` and 5 more. Its code works with 11 kV and 400 kV. - What it does: It tests 11kV, transformers, solar and substations. Defines 8 functions or classes, including harness, makeElement, site, makePopup, click. Uses libraries node:test, node:assert/strict, node:fs, node:vm. 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: 11kV, transformers, solar, substations, 400kV. - Inputs & outputs: Voltage levels named: 400kV, 11kV. - Downstream impact: Used directly by 2 files: CI PR Gate (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). Reached from 1 other entry point, including Map Promotion Rehearsal (gridatlas). - Signatures: `harness()`; `makeElement()`; `appendChild(child)`; `replaceChildren()`; `setAttribute()`; `site(id)`; `makePopup(id)`; `click()`; `changeZoom(value)`; `getCard()`; `flatten(node)` - 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, 11kV] - Edges: uses 2 estate files (import 1, url-import-meta 1); used by 2; mentioned by 0 ### Regional Preview - File: gridatlas/tools/secondary/regional-preview.mjs (JavaScript, 45 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/secondary/regional-preview.mjs#L1-L45 - Page: https://code.globalgrid2050.com/explore-code/s/0691.html#f2 - Synopsis: A JavaScript module in the secondary folder of GridAtlas that reads substations, using SHA-256. It is built from the sha step (`sha`) and the pin step (`pin`). - What it achieves (comment): Build a disposable, hashed browser candidate using the existing immutable v2 loader. It reads `/current.json` and writes `/current.json`. - What it does: It loads substations. Defines sha, pin. Uses libraries node:fs, node:path, node:assert/strict, 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. Domain terms in the code: substations. - Inputs & outputs: In: JSON file current.json. Out: JSON file current.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `sha(bytes)`; `pin(entry,filename,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 current.json]; out [JSON file current.json]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Viewport Query - File: gridatlas/tools/secondary/viewport-query.mjs (JavaScript, 30 lines) · role storage · stage ingest - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/secondary/viewport-query.mjs#L1-L30 - Page: https://code.globalgrid2050.com/explore-code/s/0691.html#f3 - Synopsis: A JavaScript module in the secondary folder of GridAtlas that reads grid UK Power Networks (UKPN) secondary. - What it achieves (comment): It is built from the viewport bounds helper (`viewportBounds`), the outward step (`outward`) and the viewport SQL helper (`viewportSQL`). G203-05: bounded query candidate for the existing pinned map Parquet. It reads `grid_ukpn_secondary.parquet`. - What it does: It loads grid UKPN secondary. Defines viewportBounds, outward, viewportSQL, includesPoint. Side effects: 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 grid_ukpn_secondary.parquet. - Downstream impact: Used directly by 1 file: Viewport Query Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export viewportBounds(west,south,east,north,padding=0.15)`; `export viewportSQL(west,south,east,north,padding=0.15)`; `export includesPoint(b,lon,lat)`; `latitudePad(north-south)`; `outward(a,z)` - 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]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Viewport Query Test - File: gridatlas/tools/secondary/viewport-query.test.mjs (JavaScript, 8 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/secondary/viewport-query.test.mjs#L1-L8 - Page: https://code.globalgrid2050.com/explore-code/s/0691.html#f4 - Synopsis: A test in the secondary folder of GridAtlas that checks Viewport Query. - What it does: It tests its inputs. Uses libraries node:assert/strict. Side effects: 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 grid_ukpn_secondary.parquet. - 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 [Parquet file grid_ukpn_secondary.parquet]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Browser Test - File: gridatlas/tools/train/browser.test.mjs (JavaScript, 99 lines) · role test · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/train/browser.test.mjs#L1-L99 - Page: https://code.globalgrid2050.com/explore-code/s/0691.html#f5 - Synopsis: A test in the train folder of GridAtlas covering substations and postcodes, using SHA-256. - What it achieves (comment): It runs train ui acceptance (`runTrainUiAcceptance`) and is built from the sample rendered train cursor helper (`sampleRenderedTrainCursor`) and the state step (`state`). Native new-UI acceptance helper. No route graph/provider interception or scripted selection. - What it does: It tests substations and postcodes. Defines 9 functions or classes, including sampleRenderedTrainCursor, waitForPaintedCursorProgress, runTrainUiAcceptance, state, clear. Uses libraries node:assert/strict. 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, postcodes. - Downstream impact: Used directly by 2 files: Painted Observation Test (gridatlas); Browser Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export sampleRenderedTrainCursor()`; `export waitForPaintedCursorProgress({page,diagnostics,timeoutMs=15000,intervalMs=100,minimumPixels=2,now=Date.now})`; `export runTrainUiAcceptance({page,panel,snapshot,visibleTap,output,pageErrors=[],diagnostics={}})`; `rendered(m.getLayer(id)?m.queryRenderedFeatures(undefined,{layers:[id]}):[])`; `state()`; `clear()`; `find(id)`; `choose(id,position)`; `cursor()`; `visitsBeforeClose(await state())`; `ownedCounts()` - 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 ### Build - File: gridatlas/tools/train/gazetteer/build.mjs (JavaScript, 10 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/train/gazetteer/build.mjs#L1-L10 - Page: https://code.globalgrid2050.com/explore-code/s/0691.html#f6 - Synopsis: A JavaScript module in the gazetteer folder of GridAtlas that reads generations, using SHA-256. It builds gazetteer (`buildGazetteer`). - What it achieves (comment): Successor-only public seam, derived from the exact currently composed gazetteer. - What it does: It loads generations. Defines buildGazetteer. 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. - Inputs & outputs: In: JSON file generations.json; command-line arguments. - Downstream impact: Used directly by 2 files: Cut Grid Explorer (gridatlas); Grid Explorer Proof (gridatlas). - Signatures: `export buildGazetteer(generation,root=ROOT)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file generations.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Painted Observation Test - File: gridatlas/tools/train/painted-observation.test.mjs (JavaScript, 8 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/train/painted-observation.test.mjs#L1-L8 - Page: https://code.globalgrid2050.com/explore-code/s/0691.html#f7 - Synopsis: A test in the train folder of GridAtlas that checks Browser Test. - What it achieves (name): Defines `sample` and `fake`. - What it does: It tests its inputs. Defines sample, fake. - 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). - Signatures: `sample(x,fraction=.1,playing=true)`; `fake(samples)` - 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 ### Route Plan Test - File: gridatlas/tools/train/route-plan.test.mjs (JavaScript, 159 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/train/route-plan.test.mjs#L1-L159 - Page: https://code.globalgrid2050.com/explore-code/s/0691.html#f8 - Synopsis: A test in the train folder of GridAtlas that checks Route Plan and Learning Networks. It is built from the bus network helper (`busNetwork`). - What it achieves (name): Defines `stop`, `network` and `busNetwork`. - What it does: It tests transformers and the REPD register. Defines stop, network, busNetwork. 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. Domain terms in the code: transformers, the REPD register. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `stop(id,kv=400)`; `network(removeTransformer=false)`; `busNetwork(nodes,edges)` - 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 5 estate files (import 4, url-import-meta 1); used by 1; mentioned by 0 ### Itinerary - File: gridatlas/tools/train/src/itinerary.mjs (JavaScript, 54 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/train/src/itinerary.mjs#L1-L54 - Page: https://code.globalgrid2050.com/explore-code/s/0691.html#f9 - Synopsis: A JavaScript module in the train folder of GridAtlas that sets law (`setLaw`) and normalises journey law (`normaliseJourneyLaw`). It copies station (`copyStation`), sets law (`setLaw`) and normalises journey law (`normaliseJourneyLaw`). - What it achieves (comment): Selected stops, including endpoints. Intermediate traversal nodes are not stored here. - What it does: It calculates its inputs. Defines 9 functions or classes, including createItinerary, copyStation, selectedStation, snapshot, setLaw. - 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: Route Plan Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export createItinerary({mode = 'journey', stationIndex, scenarioStore = null, law: initialLaw = {}} = {})`; `export normaliseJourneyLaw(value = {})`; `copyStation(row)`; `selectedStation(stop)`; `snapshot()`; `setLaw(value)`; `position(value)`; `insert(stop,index=stops.length)`; `replace(value,stop)` - 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 ### Place Bridge - File: gridatlas/tools/train/src/place-bridge.mjs (JavaScript, 33 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/train/src/place-bridge.mjs#L1-L33 - Page: https://code.globalgrid2050.com/explore-code/s/0691.html#f10 - Synopsis: A JavaScript module in the train folder of GridAtlas. It is built from the invalidate step (`invalidate`). - What it achieves (comment): Adapter to the existing gazetteer result shape. - What it does: It calculates its inputs. Defines createPlaceBridge, invalidate. - 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 createPlaceBridge({resolve,index,geodesy}={})`; `invalidate()`; `lookup(label,{radiusKm=10,limit}={})`; `bind(token,stationId)` - 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 ### Route Plan - File: gridatlas/tools/train/src/route-plan.mjs (JavaScript, 165 lines) · role render · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/train/src/route-plan.mjs#L1-L165 - Page: https://code.globalgrid2050.com/explore-code/s/0692.html#f1 - Synopsis: A JavaScript module in the train folder of GridAtlas that creates eligible train index (`createEligibleTrainIndex`) (units: kV), covering cables. - What it achieves (comment): It creates eligible train index (`createEligibleTrainIndex`) and is built from the train voltage allowed helper (`trainVoltageAllowed`) and the plan train buses helper (`planTrainBuses`). Ordered user itinerary; proximity never establishes electrical connectivity. - What it does: It lists and searches cables. Defines 12 functions or classes, including buildRoutePlan, trainVoltageAllowed, planTrainBuses, binding, voltages. - 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 Plan Test (gridatlas); Train Motion Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export buildRoutePlan({stops, stationIndex = null, scenarioStore = null, planEpoch = null, synthetic = false, geodesy, allowSimulated = fal...)`; `export createEligibleTrainIndex(index, {allowedVoltages, allowOtherVoltage=false, allowTransformers}, isReviewedEdge)`; `kv(Array.isArray(trusted.kv) ? trusted.kv : [trusted.kv])`; `trainVoltageAllowed(kv, allowed,other=false)`; `planTrainBuses(stops, eligible, network, allowed, simulate,other)`; `binding(stop)`; `voltages(stop)`; `statesAt(stop)`; `order(a,b)`; `trainExactBusPath(eligible, network, from, to)`; `permitted(node)`; `same(a, b)`; `validLine(line)` - 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 ### Scenario Stations - File: gridatlas/tools/train/src/scenario-stations.mjs (JavaScript, 9 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/train/src/scenario-stations.mjs#L1-L9 - Page: https://code.globalgrid2050.com/explore-code/s/0692.html#f2 - Synopsis: A JavaScript module in the train folder of GridAtlas that creates scenario station store (`createScenarioStationStore`) (units: kV). - What it achieves (comment): It creates scenario station store (`createScenarioStationStore`) and is built from the clone step (`clone`). Session-owned drawing input. Never an official station, inventory or connection. - What it does: It calculates its inputs. Defines createScenarioStationStore, clone. - 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: Route Plan Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export createScenarioStationStore({sessionId=globalThis.crypto?.randomUUID?.()}={})`; `clone(row)`; `record(id,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 1 estate file (import 1); used by 1; mentioned by 0 ### Station Index - File: gridatlas/tools/train/src/station-index.mjs (JavaScript, 57 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/train/src/station-index.mjs#L1-L57 - Page: https://code.globalgrid2050.com/explore-code/s/0692.html#f3 - Synopsis: A JavaScript module in the train folder of GridAtlas that works with substations. - What it achieves (comment): It normalises train stop (`normaliseTrainStop`) and is built from the train coordinate helper (`trainCoordinate`) and the copy step (`copy`). Full source inventory. Display limits never change inventory or itinerary limits. - What it does: It calculates substations. Defines 6 functions or classes, including trainCoordinate, normaliseTrainStop, buildStationIndex, copy, limitValue. - 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. README: "`station-index.mjs` reads the original loaded `src-subs` FeatureCollection." - Downstream impact: Used directly by 3 files: Itinerary (gridatlas); Place Bridge (gridatlas); Scenario Stations (gridatlas). Reached from 2 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Route Plan Test (gridatlas). - Signatures: `export trainCoordinate(at)`; `export normaliseTrainStop(stop)`; `export buildStationIndex(features, {geodesy, datasetPin = null} = {})`; `copy(row)`; `limitValue(limit)`; `result(matches, limit, query = null)`; `search(query, {limit} = {})`; `near(at, {radiusKm, limit} = {})`; `get(stationId)`; `snapshot()` - 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 ### Train Motion - File: gridatlas/tools/train/src/train-motion.mjs (JavaScript, 181 lines) · role render · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/train/src/train-motion.mjs#L1-L181 - Page: https://code.globalgrid2050.com/explore-code/s/0692.html#f4 - Synopsis: A JavaScript module in the tools folder of GridAtlas that maps substations. It creates train ride (`createTrainRide`), paints cursor (`paintCursor`) and sets plan (`setPlan`). - What it achieves (comment): Native MapLibre learning cursor. Travel direction is never electrical flow. - What it does: It maps substations. Defines 25 functions or classes, including createTrainRide, state, notify, collection, point. - 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: Train Motion Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `state()`; `notify()`; `collection(features)`; `point(at, properties = {})`; `cancel()`; `schedule()`; `pause()`; `cancelRetry()`; `waitForStyle()`; `ensure()`; `add(spec)`; `position()`; `paint()`; `paintCursor()`; `tick(time)`; `setPlan(next)`; `play(options = {})`; `seekStop(index)`; `step()`; `stopData(stops)`; `clearPlan({stops=[]}={})`; `styleReload()`; `removed()`; `destroy()` - 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 ### Train Motion Test - File: gridatlas/tools/train/train-motion.test.mjs (JavaScript, 122 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/train/train-motion.test.mjs#L1-L122 - Page: https://code.globalgrid2050.com/explore-code/s/0692.html#f5 - Synopsis: A test in the tools folder of GridAtlas that checks Route Plan and Train Motion. It makes plan (`makePlan`) and is built from the run step (`run`). - What it achieves (name): Defines `makePlan`, `fixture`, `access` and 1 more. - What it does: It tests its inputs. Defines makePlan, fixture, access, run. Uses libraries node:test, 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. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `makePlan()`; `fixture(reducedMotion=false,extras={},busyAfterSetData=false)`; `access()`; `getSource(id)`; `addSource(id,s)`; `removeSource(id)`; `setPaintProperty(id,k,v)`; `run(time)`; `remove()` - 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 2); used by 1; mentioned by 0 ### UI - File: gridatlas/tools/train/ui.js (JavaScript, 100 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/train/ui.js#L1-L100 - Page: https://code.globalgrid2050.com/explore-code/s/0692.html#f6 - Synopsis: A JavaScript file in the train folder of GridAtlas that maps substations, transformers and postcodes. It creates great grid journey (`createGreatGridJourney`), sets mode (`setMode`) and renders stops (`renderStops`). - What it achieves (comment): Shared native journey UI; all network evidence stays in the route planner. Its code works with 11 kV and 33 kV. - What it does: It maps substations, transformers and postcodes. Defines 15 functions or classes, including createGreatGridJourney, el, on, say, invalidate. 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, transformers, postcodes, 33kV, 11kV. - Inputs & outputs: Out: interactive map. Voltage levels named: 33kV, 11kV. - Signatures: `createGreatGridJourney({map, registry, geodesy, parent, readFeatures,onProposedPick=()=>{},onMapView=()=>{},onRideState=()=>{},onStatus=()=>{}})`; `el(tag,text,host,attrs={})`; `on(node,type,fn)`; `say(message)`; `fullIndex()`; `invalidate()`; `setMode(mode)`; `add(row)`; `renderStops()`; `showChoices(result,binding)`; `searchStations()`; `searchPlaces()`; `law()`; `applyLawChange()`; `cancelProposedPick()`; `paintProposed()`; `clearProposedOverlay()`; `renderProposed()`; `proposedClick(event)`; `proposedRemoved()`; `drawPlan()`; `planIsCurrent()`; `loadDemo(kind)` - 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 [33kV, 11kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Keys - File: gridatlas/tools/twin/keys.mjs (JavaScript, 237 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/twin/keys.mjs#L1-L237 - Page: https://code.globalgrid2050.com/explore-code/s/0693.html#f1 - Synopsis: A JavaScript module in the twin folder of GridAtlas that reads sources, grid substations and the Renewable Energy Planning Database (REPD) register, using SHA-256. - What it achieves (comment): It is built from the claim step (`claim`), the grab step (`grab`) and the nearest step (`nearest`). The register of keys of a generation, in the Kuiper manner (Ventusltd/kuiper-belt `README.md`, "The first law: no claim without a key": a statement with a key is a fact anyone can recompute; a statement without one is a candidate). - What it does: It loads sources, grid substations and the REPD register. Defines 6 functions or classes, including claim, n, grab, nearest, get. Uses libraries node:fs, node:path, node:vm. 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: the REPD register. - Inputs & outputs: In: JSON file current.json; JSON file sources.json; GeoJSON file grid_substations.geojson. - Downstream impact: Used directly by 2 files: CI PR Gate (gridatlas); GridAtlas Verify Live Workflow (gridatlas). Reached from 2 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Map Promotion Rehearsal (gridatlas). - Signatures: `claim(id, text, holds, keys, measured = {})`; `n(v)`; `grab(name)`; `nearest(lon, lat)`; `get(rel)`; `keyText(k)` - 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 sources.json; GeoJSON file grid_substations.geojson]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 2; mentioned by 0 ### GridAtlas — Twin - File: gridatlas/tools/twin/lib.mjs (JavaScript, 71 lines) · role ingest · stage ingest - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/twin/lib.mjs#L1-L71 - Page: https://code.globalgrid2050.com/explore-code/s/0693.html#f2 - Synopsis: A JavaScript module in the tools folder that reads sources, using SHA-256. It reads JSON (`readJson`) and is built from the abs step (`abs`) and the exists step (`exists`). - What it achieves (comment): Shared by the three twin tools. It reads `tools/twin/sources.json`. - What it does: It loads sources. Defines 15 functions or classes, including abs, exists, sha256, sha256Of, readJson. Uses libraries node:fs, node:os, node:path, node:crypto, 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 sources.json; JSON file current.json; command-line arguments. - Downstream impact: Used directly by 3 files: Keys (gridatlas); Preserve (gridatlas); Replicate Generation (gridatlas). Reached from 4 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); GridAtlas Verify Live Workflow (gridatlas); CI PR Gate (gridatlas). - Signatures: `export abs(rel)`; `export exists(rel)`; `export sha256(bytes)`; `export sha256Of(file)`; `export readJson(rel)`; `export sources()`; `export liveGeneration()`; `export tmpDir(tag)`; `export arg(flag, fallback = null)`; `export has(flag)`; `export run(argv, opts = {})`; `export keyOf(rel, needle)`; `export composition(gen)`; `export reporter(title)`; `cartridges(pointer.cartridge_order || [])`; `say(state, name, detail = '')`; `finish(extra = '')` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file sources.json; JSON file current.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Preserve - File: gridatlas/tools/twin/preserve.mjs (JavaScript, 172 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/twin/preserve.mjs#L1-L172 - Page: https://code.globalgrid2050.com/explore-code/s/0693.html#f3 - Synopsis: A JavaScript module in the twin folder of GridAtlas that reads parts and composition, using SHA-256. - What it achieves (comment): Preservation: every published generation stays a version. It reads `atlas/current.json`. - What it does: It loads parts and composition. Uses libraries node:fs, 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. - Inputs & outputs: In: JSON file current.json; JSON file -parts.json; JSON file -composition.json. - Downstream impact: Used directly by 2 files: CI PR Gate (gridatlas); GridAtlas Verify Live Workflow (gridatlas). Reached from 2 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Map Promotion Rehearsal (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; JSON file -parts.json; JSON file -composition.json]; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 2; mentioned by 0 ### Replicate Generation - File: gridatlas/tools/twin/replicate-generation.mjs (JavaScript, 379 lines) · role energy-data · stage ingest · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/twin/replicate-generation.mjs#L1-L379 - Page: https://code.globalgrid2050.com/explore-code/s/0694.html#f1 - Synopsis: A JavaScript module in the twin folder of GridAtlas that reads generations and substations, using SHA-256. - What it achieves (comment): It fetches pinned (`fetchPinned`) and is built from the done step (`done`) and the same step (`same`). The twin of a generation: rebuild it from its pinned source in a clean temporary directory, with the repository's own compiler and cut tools, and compare every rebuilt file with the committed one byte for byte. It reads `tools/train/gazetteer/generations.json`. - What it does: It loads generations and substations. Defines done, same, constant, fetchPinned. Uses libraries node:fs, node:path. 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: substations. - Inputs & outputs: In: JSON file current.json; JSON file generations.json; DuckDB queries; command-line arguments. - Downstream impact: Used directly by 3 files: CI PR Gate (gridatlas); GridAtlas Verify Live Workflow (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). Reached from 1 other entry point, including Map Promotion Rehearsal (gridatlas). - Signatures: `done(code)`; `same(name, rebuilt, committedRel)`; `constant(name)`; `fetchPinned(what, to)` - 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 generations.json; DuckDB queries; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 3; mentioned by 0 ### Build Streaming Bridge - File: gridatlas/tools/v9_5/build_streaming_bridge.py (Python, 297 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/v9_5/build_streaming_bridge.py#L1-L297 - Page: https://code.globalgrid2050.com/explore-code/s/0694.html#f2 - Synopsis: A Python command-line tool in the tools folder of GridAtlas that reads streaming road fix, streaming road build and 400kV, using SHA-256. - What it achieves (comment): It loads JSON (`load_json`), dumps JSON (`dump_json`) and compiles bridge (`compile_bridge`). Compile a streaming-response bridge cartridge over the immutable GridAtlas shell. Its code works with 400 kV. It accepts `--generation`, `--request` and `--report`. - What it does: It loads streaming road fix, streaming road build and 400kV. Defines load_json, dump_json, sha256_bytes, compile_bridge, main. Uses libraries __future__, argparse, copy, hashlib, json. 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: 400kV. - Inputs & outputs: In: JSON file current.json; JSON file streaming-road-fix.json; JSON file streaming-road-build.json; DuckDB queries; command-line arguments. Voltage levels named: 400kV. - Downstream impact: Used directly by 1 file: GridAtlas Verify Live Workflow (gridatlas). - Signatures: `load_json(path: Path)`; `dump_json(path: Path, value: Any)`; `sha256_bytes(value: bytes)`; `compile_bridge(source: str, generation: 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 current.json; JSON file streaming-road-fix.json; JSON file streaming-road-build.json; DuckDB queries; command-line arguments]; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Build V9 5 - File: gridatlas/tools/v9_5/build_v9_5.py (Python, 200 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/v9_5/build_v9_5.py#L1-L200 - Page: https://code.globalgrid2050.com/explore-code/s/0695.html#f1 - Synopsis: A Python command-line tool in the tools folder of GridAtlas that reads request, postcodes and the Renewable Energy Planning Database (REPD) register, using SHA-256. - What it achieves (comment): Build GridAtlas v9.5 as one immutable-shell search cartridge. It accepts `--request` and `--report`. - What it does: It loads request, postcodes and the REPD register. Defines main. Uses libraries __future__, argparse, copy, json, re. 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: postcodes, the REPD register. - Inputs & outputs: In: JSON file current.json; JSON file v9-5-request.json; JSON file v9-5-build.json; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - 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 current.json; JSON file v9-5-request.json; JSON file v9-5-build.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Compiler - File: gridatlas/tools/v9_5/compiler.py (Python, 276 lines) · role render · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/v9_5/compiler.py#L1-L276 - Page: https://code.globalgrid2050.com/explore-code/s/0695.html#f2 - Synopsis: A Python module in the tools folder of GridAtlas covering postcodes and the Renewable Energy Planning Database (REPD) register, using SHA-256, and uses data from postcodes.io and OpenStreetMap Nominatim. - What it achieves (comment): It replaces once (`replace_once`), loads JSON (`load_json`) and dumps JSON (`dump_json`). Deterministic source transformations for GridAtlas v9.5. - What it does: It draws postcodes and the REPD register. Defines 6 functions or classes, including sha256_bytes, replace_once, regex_replace_once, load_json, dump_json. Uses libraries __future__, hashlib, json, re, pathlib. 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: postcodes, the REPD register. - Inputs & outputs: In: data source: postcodes.io; data source: OpenStreetMap Nominatim. - Downstream impact: Used directly by 1 file: Build V9 5 (gridatlas). - Signatures: `sha256_bytes(data: bytes)`; `replace_once(text: str, old: str, new: str, label: str)`; `regex_replace_once(text: str, pattern: str, replacement: str, label: str)`; `load_json(path: Path)`; `dump_json(path: Path, value: Any)`; `compile_cartridge(source: str, generation: str)` - 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]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Release Stream Payload Cache - File: gridatlas/tools/v9_5/release_stream_payload_cache.py (Python, 108 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/v9_5/release_stream_payload_cache.py#L1-L108 - Page: https://code.globalgrid2050.com/explore-code/s/0695.html#f3 - Synopsis: A Python command-line tool in the tools folder of GridAtlas that reads streaming road build, using SHA-256. - What it achieves (comment): It patches registry (`patch_registry`) and is built from the load step (`load`) and the dump step (`dump`). Release the bridge's reconstructed payload after serialisation and re-pin the cartridge. It accepts `--generation` and `--report`. - What it does: It loads streaming road build. Defines load, dump, main, patch_registry. Uses libraries __future__, argparse, hashlib, json, pathlib. 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 streaming-road-build.json; JSON file current.json; command-line arguments. - Downstream impact: Used directly by 1 file: GridAtlas Verify Live Workflow (gridatlas). - Signatures: `load(path: Path)`; `dump(path: Path, value)`; `main()`; `patch_registry(document: dict)` - 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-build.json; JSON file current.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### VEDIC OSM Pilot - File: gridatlas/tools/vedic/osm-pilot.py (Python, 44 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vedic/osm-pilot.py#L1-L44 - Page: https://code.globalgrid2050.com/explore-code/s/0695.html#f4 - Synopsis: A Python module in the tools folder of GridAtlas that fetches topology, using SHA-256. It is built from the attrs step (`attrs`). - What it achieves (comment): Bounded one-shot OSM source acquisition. Do not run from movement or a browser. - What it does: It fetches topology. Defines attrs. Uses libraries hashlib, json, pathlib, sys, urllib.request. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'vedic'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: command-line arguments. Out: JSON file topology.json; JSON file receipt.json. - Signatures: `attrs(e)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out [JSON file topology.json; JSON file receipt.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### VEDIC Regional Core - File: gridatlas/tools/vedic/regional-core.mjs (JavaScript, 95 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vedic/regional-core.mjs#L1-L95 - Page: https://code.globalgrid2050.com/explore-code/s/0696.html#f1 - Synopsis: A JavaScript module in the tools folder of GridAtlas that tiles cover (`tileCover`) and identity (`tileIdentity`) and creates regional pool (`createRegionalPool`). It creates regional pool (`createRegionalPool`) and sets desired (`setDesired`). - What it achieves (comment): VEDIC exact tile cover v1; independent, network-free projected-metre capability. - What it does: It calculates its inputs. Defines 20 functions or classes, including tileCover, mm, orient, on, opposite. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'vedic'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Downstream impact: Used directly by 2 files: VEDIC Regional Core Test (gridatlas); VEDIC Regional Io (gridatlas). - Signatures: `export tileCover(points,{pitch=2048,origin=[0,0],radius=0,metric="euclidean",maxCandidates=100000,maxTiles=20000}={})`; `export regionalWindow(center,{pitch=2048,origin=[0,0],width=10000,halo=0,maxTiles=256}={})`; `export tileIdentity({dataset,revision,crs,pitch,origin=[0,0],i,j,representation})`; `export createRegionalPool({maxBytes,maxConcurrent=2,maxEntries=64}={})`; `mm(x)`; `orient(a,b,c)`; `on(a,b,c)`; `opposite(a,b)`; `cross(a,b,c,d)`; `near(a,b,c,R)`; `hit(a,b,x,y)`; `inside(q)`; `boxDist(q)`; `snapshot()`; `evict(key)`; `oldest()`; `setDesired(entries)`; `admit()`; `settle(token,{bytes=0,ok=false}={})`; `clear()` - domain_stage: agent_infra · commercial_user: ai_agent · 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 ### VEDIC Regional Core Test - File: gridatlas/tools/vedic/regional-core.test.mjs (JavaScript, 48 lines) · role test · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vedic/regional-core.test.mjs#L1-L48 - Page: https://code.globalgrid2050.com/explore-code/s/0696.html#f2 - Synopsis: A test in the tools folder of GridAtlas that checks VEDIC Regional Core, using EPSG:27700. - What it achieves (name): It runs tests (`runTests`) and is built from the oracle step (`oracle`) and the clip step (`clip`). Defines `runTests`, `ids`, `key` and 3 more. - What it does: It tests its inputs. Defines 6 functions or classes, including runTests, ids, key, oracle, clip. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'vedic'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `runTests()`; `ids(a)`; `key(i,j)`; `oracle(a,b,x,y,p,r,metric)`; `clip(L,D,H,U)`; `dist(q,c,e)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### VEDIC Regional Io - File: gridatlas/tools/vedic/regional-io.mjs (JavaScript, 95 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vedic/regional-io.mjs#L1-L95 - Page: https://code.globalgrid2050.com/explore-code/s/0696.html#f3 - Synopsis: A JavaScript module in the tools folder of GridAtlas that reads verified shard (`readVerifiedShard`), creates shard session (`createShardSession`) and syncs desired (`syncDesired`), using SHA-256. - What it achieves (comment): It reads verified shard (`readVerifiedShard`), creates shard session (`createShardSession`) and syncs desired (`syncDesired`). Regional shard transport. No map, DOM, routing provider, or national fallback. - What it does: It lists and searches its content. Defines 10 functions or classes, including readVerifiedShard, createShardSession, drop, syncDesired, pump. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'vedic'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Downstream impact: Used directly by 3 files: VEDIC Snapshot Provider V9214 Test (gridatlas); VEDIC Snapshot Provider (gridatlas); VEDIC Regional Stream Test (gridatlas). - Signatures: `export readVerifiedShard(entry,{signal,fetcher=globalThis.fetch,subtle=globalThis.crypto?.subtle}={})`; `export createShardSession({maxBytes,maxEntries=64,maxConcurrent=2,fetcher,subtle}={})`; `drop(key)`; `syncDesired()`; `pump()`; `setDesired(entries)`; `borrow(key,fn)`; `idle()`; `snapshot()`; `close()` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 3; mentioned by 0 ### VEDIC Regional Stream Test - File: gridatlas/tools/vedic/regional-stream.test.mjs (JavaScript, 70 lines) · role test · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vedic/regional-stream.test.mjs#L1-L70 - Page: https://code.globalgrid2050.com/explore-code/s/0696.html#f4 - Synopsis: A test in the tools folder of GridAtlas that checks VEDIC Regional Io and VEDIC Road Topology, using SHA-256. - What it achieves (name): It is built from the good step (`good`), the fetcher step (`fetcher`) and the rel step (`rel`). Defines `check`, `equal`, `rejects` and 3 more. - What it does: It tests its inputs. Defines 9 functions or classes, including check, equal, rejects, e, good. Uses libraries node:assert/strict, node:crypto, node:fs. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'vedic'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: command-line arguments. - Signatures: `check(value,message)`; `equal(a,b)`; `rejects(fn,pattern)`; `e(key)`; `good()`; `fetcher(url,{signal})`; `n(id,lat,lon)`; `w(id,nodes,tags={})`; `rel(id,from,via,to,rule)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · 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 ### VEDIC Snapshot Routing - File: gridatlas/tools/vedic/snapshot-routing.mjs (JavaScript, 39 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vedic/snapshot-routing.mjs#L1-L39 - Page: https://code.globalgrid2050.com/explore-code/s/0696.html#f5 - Synopsis: A JavaScript module in the tools folder of GridAtlas that builds routing graph (`buildRoutingGraph`) and routes candidate (`routeCandidate`). It builds routing graph (`buildRoutingGraph`) and routes candidate (`routeCandidate`). - What it achieves (comment): VEDIC E03: bounded snapshot pilot, not a live navigation provider. - What it does: It calculates its inputs. Defines 7 functions or classes, including buildRoutingGraph, conditional, nodeAllowed, distance, speed. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'vedic'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Downstream impact: Used directly by 4 files: VEDIC Snapshot Provider V9214 Test (gridatlas); VEDIC Snapshot Provider (gridatlas); VEDIC Snapshot Provider Test (gridatlas); VEDIC Snapshot Routing Test (gridatlas). - Signatures: `export buildRoutingGraph(source,mode,compiler=compileTopology)`; `export routeCandidate(g,start,end,objective="shortest",{maxStates=100000}={})`; `export weakComponents(g)`; `conditional(t)`; `nodeAllowed(n)`; `distance(a,b)`; `speed(t)`; `fail(reason)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 4; mentioned by 0 ### VEDIC Snapshot Routing Test - File: gridatlas/tools/vedic/snapshot-routing.test.mjs (JavaScript, 38 lines) · role test · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vedic/snapshot-routing.test.mjs#L1-L38 - Page: https://code.globalgrid2050.com/explore-code/s/0696.html#f6 - Synopsis: A test in the tools folder of GridAtlas that checks VEDIC Snapshot Routing, using SHA-256. - What it achieves (name): Defines `digest`. It reads `/topology.json`. - What it does: It tests its inputs. Defines digest, w. Uses libraries node:assert/strict, node:fs, node:crypto. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'vedic'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: JSON file topology.json; command-line arguments. - Signatures: `digest(p)`; `w(e)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file topology.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Build - File: gridatlas/tools/vicinity-controls/build.mjs (JavaScript, 24 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vicinity-controls/build.mjs#L1-L24 - Page: https://code.globalgrid2050.com/explore-code/s/0696.html#f7 - Synopsis: A JavaScript module in the vicinity controls folder of GridAtlas that uses SHA-256. It is built from the flag step (`flag`). - What it achieves (comment): `V9.196/V9.197` independently reproducible vicinity control cartridges. - What it does: It loads data. Defines flag. 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: command-line arguments. - Signatures: `flag(x)` - 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 ### Build - File: gridatlas/tools/vicinity-focus/build.mjs (JavaScript, 23 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vicinity-focus/build.mjs#L1-L23 - Page: https://code.globalgrid2050.com/explore-code/s/0696.html#f8 - Synopsis: A JavaScript module in the vicinity focus folder of GridAtlas that uses SHA-256. It is built from the flag step (`flag`). - What it achieves (comment): V9.195 immutable vicinity-focus cartridge source build. - What it does: It loads data. Defines flag. 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: command-line arguments. - Signatures: `flag(x)` - 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 ### Asset Context Test - File: gridatlas/tools/vicinity/asset-context.test.mjs (JavaScript, 14 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vicinity/asset-context.test.mjs#L1-L14 - Page: https://code.globalgrid2050.com/explore-code/s/0696.html#f9 - Synopsis: A test in the vicinity folder of GridAtlas that checks Geodesy. - What it achieves (name): Defines `feature`, `map` and `collect`. - What it does: It tests battery storage (BESS), solar and the REPD register. Defines feature, map, collect. Uses libraries node:test. 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: battery storage (BESS), solar, the REPD register. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `feature(id,tech,capacity,at=[-0.401,51.5],extra={})`; `map(features)`; `collect(extra={})` - 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 (url-import-meta 1); used by 1; mentioned by 0 ### Browser Test - File: gridatlas/tools/vicinity/browser.test.mjs (JavaScript, 165 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vicinity/browser.test.mjs#L1-L165 - Page: https://code.globalgrid2050.com/explore-code/s/0696.html#f10 - Synopsis: A test in the vicinity folder of GridAtlas that checks Build and Model, using SHA-256. - What it achieves (comment): It is built from the intent step (`intent`), the snapshot step (`snapshot`) and the visible tap helper (`visibleTap`). Independent native Android QA. Injection mode never counts as publication acceptance. Its code works with 11 kV, 132 kV and 275 kV. - What it does: It tests the REPD register. Defines 7 functions or classes, including intent, snapshot, visibleTap, open, ownData. Uses libraries node:fs, node:path, node:os, node:assert/strict, node:crypto. 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: the REPD register, 400kV, 275kV, 132kV, 66kV, 33kV. - Inputs & outputs: In: JSON file receipt.json. Out: JSON file receipt.json; JSON file failure.json. Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `intent(origin,radius=10)`; `snapshot()`; `visibleTap(locator)`; `open(origin,radius=10)`; `ownData()`; `assertOwnPoints(radius)`; `sourceFingerprint()`; `assetsBefore(await snapshot())`; `assetContext(await snapshot())`; `contextBound(await snapshot())`; `station(await ownData())` - 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]; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV, 11kV] - Edges: uses 4 estate files (script-call 4); used by 1; mentioned by 0 ### Build - File: gridatlas/tools/vicinity/build.mjs (JavaScript, 27 lines) · role storage · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vicinity/build.mjs#L1-L27 - Page: https://code.globalgrid2050.com/explore-code/s/0696.html#f11 - Synopsis: A JavaScript module in the vicinity folder of GridAtlas that reads station, using SHA-256. - What it achieves (readme): It is built from the assemble step (`assemble`), the read step (`read`) and the train read helper (`trainRead`). The README says: `build.mjs` deterministically assembles `src/model.mjs`, `src/bootstrap.js` and `src/vicinity.css` into one bounded module. - What it does: It loads station. Defines assemble, read, trainRead. Uses libraries node:fs, node:path, node:url, 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. README: "`build.mjs` deterministically assembles `src/model.mjs`, `src/bootstrap.js` and `src/vicinity.css` into one bounded module." - Inputs & outputs: In: JSON file station-source.json; command-line arguments. - Downstream impact: Used directly by 4 files: Cut Grid Explorer (gridatlas); Grid Explorer Proof (gridatlas); Browser Test (gridatlas); Model Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export assemble({root = ROOT, generation = 'UNRELEASED'} = {})`; `read(p)`; `trainRead(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 station-source.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Document Context Test - File: gridatlas/tools/vicinity/document-context.test.mjs (JavaScript, 103 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vicinity/document-context.test.mjs#L1-L103 - Page: https://code.globalgrid2050.com/explore-code/s/0697.html#f1 - Synopsis: A test in the vicinity folder of GridAtlas that checks Document Context and Declared Connections, using SHA-256. - What it does: It tests the REPD register and substations. Uses libraries node:test, node:assert/strict, node:fs, 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, substations. - 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 2 estate files (import 1, url-import-meta 1); used by 1; mentioned by 0 ### Model Test - File: gridatlas/tools/vicinity/model.test.mjs (JavaScript, 88 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vicinity/model.test.mjs#L1-L88 - Page: https://code.globalgrid2050.com/explore-code/s/0697.html#f2 - Synopsis: A test in the vicinity folder of GridAtlas that checks Model and Build, using SHA-256. - What it achieves (name): Defines `feature`. - What it does: It tests the REPD register and wind. Defines feature. 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, wind. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `feature(id, at, voltage, extra = {})` - 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 3 estate files (import 2, url-import-meta 1); used by 1; mentioned by 0 ### Asset Context - File: gridatlas/tools/vicinity/src/asset-context.mjs (JavaScript, 54 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vicinity/src/asset-context.mjs#L1-L54 - Page: https://code.globalgrid2050.com/explore-code/s/0697.html#f3 - Synopsis: A JavaScript module in the vicinity folder of GridAtlas that works with the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): It is built from the asset coordinate helper (`assetCoordinate`), the stated MW helper (`statedMw`) and the asset id helper (`assetId`). Read-only context from existing Atlas source owners. - What it does: It calculates the REPD register. Defines 6 functions or classes, including assetCoordinate, statedMw, assetId, collectAssetContext, get. - 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: `export collectAssetContext({map,registry={},origin,radiusKm,geodesy,limit=200}={})`; `assetCoordinate(at)`; `statedMw(value)`; `assetId(value)`; `assetPrecision(p)`; `get(id)`; `add(category,row)` - 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 ### Bootstrap - File: gridatlas/tools/vicinity/src/bootstrap.js (JavaScript, 347 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vicinity/src/bootstrap.js#L1-L347 - Page: https://code.globalgrid2050.com/explore-code/s/0697.html#f4 - Synopsis: A JavaScript file in the vicinity folder of GridAtlas that maps substations and the Renewable Energy Planning Database (REPD) register. - What it achieves (readme): It creates controller (`createController`), renders asset context (`renderAssetContext`) and renders document context (`renderDocumentContext`). The README says: `build.mjs` deterministically assembles `src/model.mjs`, `src/bootstrap.js` and `src/vicinity.css` into one bounded module. Its code works with 33 kV. It responds to click events. - What it does: It maps substations and the REPD register. Defines 31 functions or classes, including createController, el, listen, sourceAnchor, rowOrigin. 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, 33kV. README: "`build.mjs` deterministically assembles `src/model.mjs`, `src/bootstrap.js` and `src/vicinity.css` into one bounded module." - Inputs & outputs: Voltage levels named: 33kV. - Signatures: `createController(map)`; `el(tag, text, parent, attrs = {})`; `listen(target, type, fn)`; `sourceAnchor(parent, title, href)`; `rowOrigin(row)`; `text(node, value)`; `renderAssetContext()`; `renderDocumentContext()`; `readRecords()`; `draw()`; `removeMap(mapRemoved = false)`; `foreignDependency(map.getStyle()?.layers || [])`; `showError(message)`; `clearNews()`; `clearSelectedContext()`; `addStation(row)`; `refresh()`; `setOrigin(next)`; `mapCentre()`; `fitRadius()`; `installControls()`; `open(options = {}, invoker = null)`; `shut()`; `clicked(event)`; `sourced(event)` (and 7 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 [33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Document Context - File: gridatlas/tools/vicinity/src/document-context.mjs (JavaScript, 94 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vicinity/src/document-context.mjs#L1-L94 - Page: https://code.globalgrid2050.com/explore-code/s/0697.html#f5 - Synopsis: A JavaScript module in the vicinity folder of GridAtlas that works with notice, the Renewable Energy Planning Database (REPD) register and substations, using SHA-256. - What it achieves (comment): It is built from the freeze document context helper (`freezeDocumentContext`), the document origin helper (`documentOrigin`) and the document context for helper (`documentContextFor`). Existing documentary context only. No fetch, name matching or spatial joins. - What it does: It calculates notice, the REPD register and substations. Defines freezeDocumentContext, documentOrigin, documentContextFor. - 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: JSON file notice.json. - Downstream impact: Used directly by 1 file: Document Context Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export documentContextFor(origin, {declaredConnections} = {})`; `freezeDocumentContext(value)`; `documentOrigin(origin)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file notice.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 1; mentioned by 0 ### Model - File: gridatlas/tools/vicinity/src/model.mjs (JavaScript, 140 lines) · role geodesy · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vicinity/src/model.mjs#L1-L140 - Page: https://code.globalgrid2050.com/explore-code/s/0698.html#f1 - Synopsis: A JavaScript module in the vicinity folder of GridAtlas that works with substations and the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): It normalises origin (`normaliseOrigin`), parses vicinity intent (`parseVicinityIntent`) and validates news context base (`validateNewsContextBase`). Spatial exploration only. Canonical Atlas geodesy is injected, never forked. Its code works with 11 kV, 132 kV and 275 kV. - What it does: It calculates substations and the REPD register. Defines 12 functions or classes, including validCoordinate, radiusKm, normaliseOrigin, parseVicinityIntent, numberText. - 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, 400kV, 275kV, 132kV, 66kV. README: "`build.mjs` deterministically assembles `src/model.mjs`, `src/bootstrap.js` and `src/vicinity.css` into one bounded module." - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Downstream impact: Used directly by 2 files: Browser Test (gridatlas); Model Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export validCoordinate(at)`; `export radiusKm(value)`; `export normaliseOrigin(origin, {requireIdentity = false} = {})`; `export parseVicinityIntent(search)`; `export validateNewsContextBase(value)`; `export normaliseNewsTopic(value, origin)`; `export newsContextHref(base, origin, topic)`; `export voltageBands(kv)`; `export stationRecords(features, geodesy)`; `export exploreVicinity({origin, radius, records, bands, geodesy, limit = 200})`; `export vicinityGeoJSON(result, geodesy)`; `numberText(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, 275kV, 132kV, 66kV, 33kV, 11kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### UK Gazetteer Flyto - File: gridatlas/ui/cartridges/202608301136-uk-gazetteer-flyto.mjs (JavaScript, 10 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/ui/cartridges/202608301136-uk-gazetteer-flyto.mjs#L1-L10 - Page: https://code.globalgrid2050.com/explore-code/s/0698.html#f2 - Synopsis: A JavaScript module in the cartridges 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 0 estate files; used by 0; mentioned by 0 ### Global Gazetteer Flyto V9 5 - File: gridatlas/ui/cartridges/202609011141-global-gazetteer-flyto-v9-5.mjs (JavaScript, 16 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/ui/cartridges/202609011141-global-gazetteer-flyto-v9-5.mjs#L1-L16 - Page: https://code.globalgrid2050.com/explore-code/s/0698.html#f3 - Synopsis: A JavaScript module in the cartridges 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 0 estate files; used by 0; mentioned by 0 ### Global Gazetteer Flyto V9 106 - File: gridatlas/ui/cartridges/202609040337-global-gazetteer-flyto-v9-106.mjs (JavaScript, 17 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/ui/cartridges/202609040337-global-gazetteer-flyto-v9-106.mjs#L1-L17 - Page: https://code.globalgrid2050.com/explore-code/s/0698.html#f4 - Synopsis: A JavaScript module in the cartridges 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 0 estate files; used by 0; mentioned by 0 ### Streaming Parquet Bridge V9 5 - File: gridatlas/ui/cartridges/202609241251-streaming-parquet-bridge-v9-5.mjs (JavaScript, 12 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/ui/cartridges/202609241251-streaming-parquet-bridge-v9-5.mjs#L1-L12 - Page: https://code.globalgrid2050.com/explore-code/s/0698.html#f5 - Synopsis: A JavaScript module in the cartridges 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 terms in the code: 400kV. - Inputs & outputs: 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 []; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### UI Atlas V9 - File: gridatlas/ui/site/atlas-v9.mjs (JavaScript, 183 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/ui/site/atlas-v9.mjs#L1-L183 - Page: https://code.globalgrid2050.com/explore-code/s/0698.html#f6 - Published at: https://gridatlas.globalgrid2050.com/ui/site/ - Synopsis: A JavaScript module in GridAtlas that maps Renewable Energy Planning Database (REPD) clusters and REPD cluster count, and uses data from OpenStreetMap tiles. Served with the page at https://gridatlas.globalgrid2050.com/ui/site/. - What it achieves (name): It sets selected URL (`setSelectedUrl`), marks map unavailable (`markMapUnavailable`) and adds project layers (`addProjectLayers`). Defines `popupNode`, `setSelectedUrl`, `select` and 4 more. - What it does: It maps REPD clusters, REPD cluster count, REPD points and REPD selected. Defines 7 functions or classes, including popupNode, setSelectedUrl, select, markMapUnavailable, addProjectLayers. 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: data source: OpenStreetMap tiles. Out: interactive map. - Signatures: `popupNode(record)`; `setSelectedUrl(record)`; `select(record)`; `flyTo(options)`; `markMapUnavailable(error)`; `addProjectLayers(records)`; `initialiseMap(records)`; `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]; out [interactive map]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### GridAtlas — UI Page - File: gridatlas/ui/site/index.html (HTML, 40 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/ui/site/index.html#L1-L40 - Page: https://code.globalgrid2050.com/explore-code/s/0698.html#f7 - Published at: https://gridatlas.globalgrid2050.com/ui/site/ - Synopsis: A web page that reads inputs for atlas query, covering the Renewable Energy Planning Database (REPD) register and postcodes. Published at https://gridatlas.globalgrid2050.com/ui/site/. - What it achieves (comment): Grid Atlas V9 — official REPD address and postcode search with deterministic project fly-to. - What it does: It draws the REPD register and postcodes. Uses libraries assets/atlas-v9.css, assets/atlas-v9.mjs. 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, postcodes. - Inputs & outputs: In: JSON file repd_v9_manifest_202608290716.json; DuckDB queries; form fields (user input). Out: web page. - Downstream impact: It is itself an entry point, published at https://gridatlas.globalgrid2050.com/ui/site/. - 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_v9_manifest_202608290716.json; DuckDB queries; form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GridAtlas Webkit Arrival Probe - File: gridatlas/webkit-arrival-probe.mjs (JavaScript, 48 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/webkit-arrival-probe.mjs#L1-L48 - Page: https://code.globalgrid2050.com/explore-code/s/0698.html#f8 - Published at: https://gridatlas.globalgrid2050.com/ - Synopsis: A JavaScript module covering solar. Served with the page at https://gridatlas.globalgrid2050.com/. - What it achieves (name): Defines `run`. - What it does: Defines run. Uses libraries 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. Domain terms in the code: solar. - Signatures: `run(engine, name)` - 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 ### GridAtlas Webkit Register Probe - File: gridatlas/webkit-register-probe.mjs (JavaScript, 35 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/webkit-register-probe.mjs#L1-L35 - Page: https://code.globalgrid2050.com/explore-code/s/0698.html#f9 - Published at: https://gridatlas.globalgrid2050.com/ - Synopsis: A JavaScript module covering solar. Served with the page at https://gridatlas.globalgrid2050.com/. - What it does: Uses libraries 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. Domain terms in the code: solar. - Signatures: `dl(P&&P.deep_link)` - 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 ### Geodesy Check - File: gridmachine1/reports/20260907T180500Z-maths-and-linkage-study/geodesy-check.mjs (JavaScript, 75 lines) · role geodesy · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridmachine1/blob/16cd3db49d03e6faa0e4e24f06f08184422049be/reports/20260907T180500Z-maths-and-linkage-study/geodesy-check.mjs#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0698.html#f10 - Synopsis: A JavaScript module in the reports folder of Gridmachine1 that reads interconnector endpoints, using Vincenty and haversine. - What it achieves (comment): It is built from the rad step (`rad`), the haversine step (`haversine`) and the vincenty step (`vincenty`). Measure the radius question instead of arguing it. - What it does: It loads interconnector endpoints. Defines rad, haversine, vincenty, radii, pick. Uses libraries node:fs. 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 interconnector-endpoints.json. Coordinate systems named: WGS84 / EPSG:4326. - Signatures: `rad(d)`; `haversine(a, b, R)`; `vincenty(p1, p2)`; `u2(cos2Alpha * (a * a - b * b))`; `B(u2 / 1024)`; `radii(latDeg)`; `pick(re)`; `midLat(c.a.lat + c.b.lat)`; `best(v / (haversine(c.a, c.b, 1)))` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unreached_review · essay_status: auto - data_contracts: in [JSON file interconnector-endpoints.json]; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GridAtlas Browser - File: legislation/apps/gridatlas/browser.cjs (JavaScript, 51 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/legislation/blob/960afbd0f5393e818b400a7f1a523acd6814e217/apps/gridatlas/browser.cjs#L1-L51 - Page: https://code.globalgrid2050.com/explore-code/s/0698.html#f11 - Synopsis: A JavaScript module in Legislation that draws adapter pin, exercise, catalogue and regulatory references, using SHA-256. - What it achieves (name): It responds to click events. - What it does: It draws adapter pin, exercise, catalogue and regulatory references. Uses libraries playwright, 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 (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 adapter-pin.json; JSON file exercise.json; JSON file catalogue.json; JSON file regulatory-references.json; JSON file ia6.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 adapter-pin.json; JSON file exercise.json; JSON file catalogue.json; JSON file regulatory-references.json; JSON file ia6.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GridAtlas Test - File: legislation/apps/gridatlas/test.cjs (JavaScript, 49 lines) · role test · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/legislation/blob/960afbd0f5393e818b400a7f1a523acd6814e217/apps/gridatlas/test.cjs#L1-L49 - Page: https://code.globalgrid2050.com/explore-code/s/0698.html#f12 - Synopsis: A JavaScript module in Legislation that tests adapter pin, exercise, the Renewable Energy Planning Database (REPD) register and substations, using SHA-256. - What it does: It tests adapter pin, exercise, the REPD register and substations. Uses libraries node:test, node:assert/strict, node:fs, 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 (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, substations. - Inputs & outputs: In: JSON file adapter-pin.json; JSON file exercise.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 adapter-pin.json; JSON file exercise.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### LiDAR Build Site - File: lidar/src/build_site.py (Python, 84 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/src/build_site.py#L1-L84 - Page: https://code.globalgrid2050.com/explore-code/s/0699.html#f1 - Synopsis: A Python command-line tool that works with LiDAR terrain. It is built from the snapped box helper (`snapped_box`) and the build step (`build`). - What it achieves (comment): Build a .ght tile set for one site from the EA LiDAR Composite DTM 1m. It accepts `--name`, `--e` and `--n`. - What it does: It calculates LiDAR terrain. Defines snapped_box, build, main. Uses libraries argparse, math, os, sys, time. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name 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. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `snapped_box(e, n, size)`; `build(name, e, n, size, out_dir=None, cache_dir=None, log=print)`; `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 []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 0 ### LiDAR Cut Tiles - File: lidar/src/cut_tiles.py (Python, 154 lines) · role storage · stage output - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/src/cut_tiles.py#L1-L154 - Page: https://code.globalgrid2050.com/explore-code/s/0699.html#f2 - Synopsis: A Python module that works with cut grid (`cut_grid`), using EPSG:27700 and SHA-256. It encodes tile (`encode_tile`), decodes tile (`decode_tile`) and loads tiles (`load_tiles`). - What it achieves (comment): Cut a south-up 1 m height grid into .ght tiles, and decode them again. - What it does: It loads data. Defines encode_tile, decode_tile, cut_grid, load_tiles. Uses libraries hashlib, json, os, struct, datetime. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: In: JSON file tiles.json. Out: JSON file. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 2 files: LiDAR Build Site (lidar); Test Roundtrip (lidar). - Signatures: `encode_tile(heights, origin_e, origin_n)`; `decode_tile(blob)`; `cut_grid(grid, origin_e, origin_n, out_dir, site_name, source="")`; `load_tiles(out_dir)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file tiles.json]; out [JSON file]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### LiDAR Earthworks Pair - File: lidar/src/earthworks_pair.py (Python, 350 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/src/earthworks_pair.py#L1-L350 - Page: https://code.globalgrid2050.com/explore-code/s/0699.html#f3 - Synopsis: A Python command-line tool that reads earthworks receipt, using SHA-256. It is built from the ground class (`Ground`), the ground from helper (`ground_from`) and the routes step (`routes`). - What it achieves (comment): How much spoil does a trench (or a platform) make, counted two ways? It accepts `--tiles`, `--seed` and `--trenches`. - What it does: It loads earthworks receipt. Defines 16 functions or classes, including Ground, __init__, h, ground_from, routes. Uses libraries argparse, hashlib, json, math, os. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. README: "Derive slope and aspect tiles (`src/slope_tiles.py`) and earthworks volumes for trenches and platforms (`src/earthworks_pair.py`), each checked the same way." - Inputs & outputs: In: JSON file earthworks_receipt.json; command-line arguments. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Test Earthworks (lidar). - Signatures: `class Ground`; `__init__(self, grid, oe, on, sp, xp)`; `h(self, x, y)`; `ground_from(tiles_dir, xp)`; `routes(e0, n0, heading, L1, theta, R, L2, w, d, oe=0.0, on=0.0)`; `centre(P, k, s, xp, piece=None)`; `positron(P, G, ks)`; `candidates(P, ks)`; `claim(P, k, X, Y, xp)`; `electron(P, G, ks)`; `trench_pair(P, G)`; `inside_poly(X, Y, vx, vy, xp)`; `platform_pair(poly_bng, level, G)`; `draw(rng, n, G, margin=5.0)`; `sweep(tiles_dir, seed=SEED, trenches=4000, seconds=20.0, batch=250, use_gpu=True, witness=3)`; `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 earthworks_receipt.json; command-line arguments]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### LiDAR Fetch Wcs - File: lidar/src/fetch_wcs.py (Python, 88 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/src/fetch_wcs.py#L1-L88 - Page: https://code.globalgrid2050.com/explore-code/s/0699.html#f4 - Synopsis: A Python command-line tool that fetches LiDAR terrain, using EPSG:27700 from Environment Agency. It fetches one (`fetch_one`) and fetches box (`fetch_box`). - What it achieves (comment): Fetch Environment Agency LiDAR Composite DTM 1m GeoTIFFs over WCS 2.0.1. - What it does: It fetches LiDAR terrain. Defines coverage_url, chunk_ranges, fetch_one, fetch_box. Uses libraries os, sys, time, urllib.request. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name 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: data source: Environment Agency; command-line arguments. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: LiDAR Build Site (lidar). - Signatures: `coverage_url(e0, e1, n0, n1)`; `chunk_ranges(lo, hi, step=CHUNK_M)`; `fetch_one(e0, e1, n0, n1, cache_dir, retries=3)`; `fetch_box(e0, e1, n0, n1, cache_dir, log=print)` - 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; command-line arguments]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### LiDAR Geotiff Read - File: lidar/src/geotiff_read.py (Python, 119 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/src/geotiff_read.py#L1-L119 - Page: https://code.globalgrid2050.com/explore-code/s/0700.html#f1 - Synopsis: A Python module that masks nodata (`mask_nodata`), using EPSG:27700. It reads geotiff (`read_geotiff`) and is built from the mosaic step (`mosaic`). - What it achieves (comment): Read EA DTM GeoTIFF chunks with tifffile and mosaic them into one grid. - What it does: Defines _geokeys, _raw_nodata, read_geotiff, mask_nodata, mosaic. Uses libraries logging, numpy, tifffile. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 2 files: LiDAR Build Site (lidar); Test Roundtrip (lidar). - Signatures: `_geokeys(tags)`; `_raw_nodata(tags)`; `read_geotiff(path)`; `mask_nodata(z, nodata=None)`; `mosaic(paths, e0, n0, width, height)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### LiDAR Pair GPU - File: lidar/src/pair_gpu.py (Python, 371 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/src/pair_gpu.py#L1-L371 - Page: https://code.globalgrid2050.com/explore-code/s/0700.html#f2 - Synopsis: A Python command-line tool that reads pair receipt and tiles, using SHA-256. It reads ght (`read_ght`), writes ght (`write_ght`) and loads source (`load_source`). - What it achieves (comment): Height tile pair: do the .ght tiles say what the float64 source said? It accepts `--tiles`, `--source` and `--seed`. - What it does: It loads pair receipt and tiles. Defines 16 functions or classes, including read_ght, write_ght, synth, load_source, bilinear. Uses libraries argparse, glob, hashlib, json, math. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. README: "Check on the GPU with two independent formulations and CPU witnesses (`src/pair_gpu.py`): every stored height against the source, heights between samples two ways, and shared tile edges." - Inputs & outputs: In: JSON file pair_receipt.json; JSON file source.json; JSON file tiles.json; command-line arguments. Out: JSON file tiles.json. - Downstream impact: Used directly by 2 files: LiDAR Earthworks Pair (lidar); Test Pair (lidar). Reached from 1 other entry point, including Test Earthworks (lidar). - Signatures: `read_ght(path)`; `write_ght(path, h, oe, on, spacing_mm)`; `synth(out, tiles_e=2, tiles_n=2, spacing_m=1.0, oe=400000, on=300000, seed=SEED)`; `load_source(npy)`; `bilinear(xp, g, gx, gy)`; `corners(H, t, u, v, xp)`; `two_lerps(h00, h10, h01, h11, fx, fy)`; `polynomial(h00, h10, h01, h11, fx, fy)`; `weights(h00, h10, h01, h11, fx, fy)`; `worst(xp, err, info, k=KEEP)`; `merge(kept, new)`; `to_host(a)`; `run(tiles_dir, source_npy, seed=SEED, points=1 << 22, seconds=20.0, batch=1 << 20, use_gpu=True)`; `check_points(tiles, Hh, oe, on, sp, rng)`; `write_receipt(tiles_dir, receipt)`; `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 pair_receipt.json; JSON file source.json; JSON file tiles.json; command-line arguments]; out [JSON file tiles.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### LiDAR Slope Tiles - File: lidar/src/slope_tiles.py (Python, 280 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/src/slope_tiles.py#L1-L280 - Page: https://code.globalgrid2050.com/explore-code/s/0701.html#f1 - Synopsis: A Python command-line tool that reads slope receipt, using EPSG:27700 and SHA-256. It writes tiles (`write_tiles`) and is built from the neighbours step (`neighbours`) and the horn step (`horn`). - What it achieves (comment): Slope and aspect tiles from a south-up 1 m height grid, computed as a pair on the GPU. It accepts `--site`, `--out` and `--cpu`. - What it does: It loads slope receipt. Defines 15 functions or classes, including neighbours, horn, zevenbergen_thorne, pad, slope_pct. Uses libraries argparse, hashlib, json, os, struct. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. README: "Derive slope and aspect tiles (`src/slope_tiles.py`) and earthworks volumes for trenches and platforms (`src/earthworks_pair.py`), each checked the same way." - Inputs & outputs: In: JSON file slope-tiles.json; JSON file slope_receipt.json; JSON file source.json; command-line arguments. Out: JSON file. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Test Slope (lidar). - Signatures: `neighbours(xp, z)`; `horn(xp, z, sp)`; `zevenbergen_thorne(xp, z, sp)`; `pad(xp, core)`; `slope_pct(xp, p, q)`; `classify(xp, s)`; `octant(xp, p, q, s)`; `laplacian(xp, z, sp)`; `witness(z, sp)`; `encode(cls, asp, e0, n0, spacing_mm=1000)`; `decode(blob)`; `write_tiles(out_dir, cls, asp, oe, on, site_name, spacing_mm=1000)`; `to_host(a)`; `run(grid, oe=0, on=0, sp=1.0, use_gpu=True, witness_on=True)`; `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 slope-tiles.json; JSON file slope_receipt.json; JSON file source.json; command-line arguments]; out [JSON file]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Earthworks - File: lidar/tests/test_earthworks.py (Python, 111 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/tests/test_earthworks.py#L1-L111 - Page: https://code.globalgrid2050.com/explore-code/s/0701.html#f2 - Synopsis: A test in the tests folder of LiDAR that checks LiDAR Earthworks Pair. It is built from the plane step (`plane`), the close step (`close`) and the one step (`one`). - What it achieves (comment): Tests for `src/earthworks_pair.py` on synthetic planes with known volumes. It writes `source.json`. - What it does: It tests its inputs. Defines 9 functions or classes, including plane, close, one, test_flat_straight, test_sloped_along_and_across. Uses libraries inspect, json, math, os, pathlib. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: Out: JSON file source.json. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `plane(xp, a=100.0, gx=0.0, gy=0.0, n=301)`; `close(v, want, rel=2e-3)`; `one(G, *a)`; `test_flat_straight()`; `test_sloped_along_and_across()`; `test_bent_flat_and_pappus()`; `test_platform_on_plane()`; `test_sweep_receipt(tmp_path)`; `test_bounded_by_seconds(tmp_path)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out [JSON file source.json]; crs []; voltages [] - Edges: uses 1 estate file (sys-path 1); used by 0; mentioned by 0 ### Test Pair - File: lidar/tests/test_pair.py (Python, 167 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/tests/test_pair.py#L1-L167 - Page: https://code.globalgrid2050.com/explore-code/s/0701.html#f3 - Synopsis: A test in the tests folder of LiDAR that checks LiDAR Pair GPU, using SHA-256. It makes tiles (`make_tiles`) and checks clean (`check_clean`). - What it achieves (comment): Tests for `src/pair_gpu.py` against a synthetic hilly grid. - What it does: It tests its inputs. Defines 16 functions or classes, including make_tiles, run, poke, test_header_layout, test_clean_tiles_annihilate. Uses libraries hashlib, inspect, json, os, pathlib. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: In: JSON file tiles.json. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `make_tiles(tmp_path)`; `run(d, gpu=False, **kw)`; `poke(path, row, col, delta_q=0, header=None)`; `test_header_layout(tiles)`; `test_clean_tiles_annihilate(tiles)`; `check_clean(r)`; `test_gpu_and_cpu_agree(tiles)`; `test_seeded_repeatable(tiles)`; `test_check_points_retest(tiles)`; `test_bad_sample_is_a_photon(tiles)`; `test_edge_mismatch_is_a_photon(tiles)`; `test_header_lie_is_a_photon(tiles)`; `test_nodata_counted_not_hidden(tiles)`; `test_receipt_and_tiles_json(tiles)`; `test_bounded_by_seconds(tiles)`; `test_main_synth(tmp_path)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file tiles.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (sys-path 1); used by 0; mentioned by 0 ### Test Roundtrip - File: lidar/tests/test_roundtrip.py (Python, 104 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/tests/test_roundtrip.py#L1-L104 - Page: https://code.globalgrid2050.com/explore-code/s/0701.html#f4 - Synopsis: A test in the tests folder of LiDAR that checks LiDAR Cut Tiles and LiDAR Geotiff Read, using EPSG:27700. It is built from the synthetic step (`synthetic`). - What it achieves (comment): Synthetic grid -> .ght tiles -> decode -> heights within 5 mm. - What it does: It tests its inputs. Defines synthetic, test_header_layout, test_row_order_south_to_north, test_roundtrip_within_5mm, test_shared_edges_match. Uses libraries json, os, struct, sys, tempfile. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: In: JSON file tiles.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `synthetic(size=512, seed=7)`; `test_header_layout()`; `test_row_order_south_to_north()`; `test_roundtrip_within_5mm()`; `test_shared_edges_match()` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file tiles.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 2 estate files (sys-path 2); used by 0; mentioned by 0 ### Test Slope - File: lidar/tests/test_slope.py (Python, 119 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/tests/test_slope.py#L1-L119 - Page: https://code.globalgrid2050.com/explore-code/s/0702.html#f1 - Synopsis: A test in the tests folder of LiDAR that checks LiDAR Slope Tiles, using SHA-256. It is built from the plane step (`plane`). - What it achieves (comment): Tests for `src/slope_tiles.py` on synthetic ground. - What it does: It tests its inputs. Defines 8 functions or classes, including plane, test_plane_has_no_photons_and_right_slope, test_class_edges, test_aspect_octants_point_downslope, test_crease_makes_photons_beside_the_crease_only. Uses libraries hashlib, inspect, json, os, pathlib. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `plane(pe, pn, n=65)`; `test_plane_has_no_photons_and_right_slope()`; `test_class_edges()`; `test_aspect_octants_point_downslope()`; `test_crease_makes_photons_beside_the_crease_only()`; `test_nan_marks_neighbours_nodata()`; `test_tiles_roundtrip_and_index(tmp)`; `test_decode_refuses_damage()` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (sys-path 1); used by 0; mentioned by 0 ### Measure GridAtlas - File: neural-link-between-agents/FIXES/NL-010/tools/evidence/nl010/team-1/measure-gridatlas.cjs (JavaScript, 123 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/FIXES/NL-010/tools/evidence/nl010/team-1/measure-gridatlas.cjs#L1-L123 - Page: https://code.globalgrid2050.com/explore-code/s/0702.html#f2 - Synopsis: A JavaScript module in the evidence folder of Neural Link Between Agents. - What it achieves (name): Its name says it measures GridAtlas. Defines `wire` and `measure`. - What it does: It draws its content. Defines wire, measure, r, cs. Uses libraries playwright, fs. 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 '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 style.json. - Signatures: `wire(page, tag)`; `measure(page, tag)`; `r(el)`; `cs(el, props)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer, ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in [JSON file style.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Build Kuiper Map - File: neural-link-between-agents/FIXES/NL-011/build_kuiper_map.py (Python, 342 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/FIXES/NL-011/build_kuiper_map.py#L1-L342 - Page: https://code.globalgrid2050.com/explore-code/s/0702.html#f3 - Synopsis: A Python command-line tool in Neural Link Between Agents that selects lines (`select_lines`), loads comments (`load_comments`) and parses comment (`parse_comment`) (units: kV). - What it achieves (comment): It is built from the utc step (`utc`), the overnight type helper (`overnight_type`) and the overnight who helper (`overnight_who`). Build `FIXES/NL-011/KUIPER-MAP.md`: the neural link keyed the way the Kuiper keys lines. It accepts `--comments-dir` and `--out`. - What it does: It loads data. Defines 16 functions or classes, including sh, utc, overnight_type, overnight_who, decisions_row. Uses libraries argparse, glob, json, os, re. Side effects: reads or writes files; starts processes. - 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: command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `sh(*cmd, text=True)`; `utc(ts)`; `overnight_type(t)`; `overnight_who(t)`; `decisions_row(t)`; `blame(path)`; `line_at(sha, path, n)`; `select_lines(lines, selector)`; `file_rows()`; `load_comments(cdir)`; `parse_comment(r)`; `comment_rows(raw)`; `model_of(label)`; `norm_label(label)`; `esc(s)`; `main()` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: supporting_data · essay_status: auto - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GridAtlas A3 Map Links - File: neural-link-between-agents/FIXES/NL-016/gridatlas/tools/a3_map_links.py (Python, 101 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/FIXES/NL-016/gridatlas/tools/a3_map_links.py#L1-L101 - Page: https://code.globalgrid2050.com/explore-code/s/0702.html#f4 - Synopsis: A Python command-line tool in the tools folder of Neural Link Between Agents that reads offshore coordinates. - What it achieves (comment): It is built from the safe step (`safe`) and the rows of helper (`rows_of`). A3: what GridAtlas returns for each MAP link of the operative Pipeline News page (`uk_renewables_pipeline`/), live (records Parquet, Q2) versus the October preview . - What it does: It loads offshore coordinates. Defines safe, km, rows_of, main. Uses libraries glob, json, math, sys, collections. 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 '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 offshore-coordinates.json; DuckDB queries; command-line arguments. Out: JSON file. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `safe(lon, lat)`; `km(a, b)`; `rows_of(rel)`; `main(rel, work, prev, outp)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer, ai_agent · canonical_status: supporting_data · essay_status: auto - data_contracts: in [JSON file offshore-coordinates.json; DuckDB queries; command-line arguments]; out [JSON file]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GridAtlas Clockshift - File: neural-link-between-agents/FIXES/NL-016/gridatlas/tools/clockshift.mjs (JavaScript, 5 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/FIXES/NL-016/gridatlas/tools/clockshift.mjs#L1-L5 - Page: https://code.globalgrid2050.com/explore-code/s/0702.html#f5 - Synopsis: A JavaScript module in the tools folder of Neural Link Between Agents. - What it achieves (comment): Preload: shift the JS clock to `FAKE_NOW` (ISO) while letting it tick. - What it does: It calculates its inputs. Defines FD. - 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. - Signatures: `class FD` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer, ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GridAtlas M5 Precision Evidence - File: neural-link-between-agents/FIXES/NL-016/gridatlas/tools/m5_precision_evidence.py (Python, 133 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/FIXES/NL-016/gridatlas/tools/m5_precision_evidence.py#L1-L133 - Page: https://code.globalgrid2050.com/explore-code/s/0703.html#f1 - Synopsis: A Python command-line tool in the tools folder of Neural Link Between Agents that reads the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): It is built from the rpz step (`rpz`), the load step (`load`) and the cands at helper (`cands_at`). Evidence for the capacity-precision question of the M5 REPD record join (offline replica of `tools/lightning/src/11b-repd-records.js` `RpQ/RpZ/RpJ`, same rules as `/auto/gridatlas/scripts/m5_join_rate.py`). Its code works with 100 MW and 50 MW. - What it does: It loads the REPD register. Defines 7 functions or classes, including rpz, n, load, cands_at, join. Uses libraries csv, json, re, sys, unicodedata. 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 '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: DuckDB queries; command-line arguments. Out: JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `rpz(s)`; `n(v)`; `load(parquet)`; `cands_at(grid, x, y)`; `join(grid, f)`; `decimals(v)`; `main(reg, q2p, octp, staged, out, csvp)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer, ai_agent · canonical_status: supporting_data · essay_status: auto - data_contracts: in [DuckDB queries; command-line arguments]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 03 Test - File: neural-link-between-agents/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/03-test.mjs (JavaScript, 50 lines) · role test · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/03-test.mjs#L1-L50 - Page: https://code.globalgrid2050.com/explore-code/s/0703.html#f2 - Synopsis: A JavaScript module in Neural Link Between Agents that formats degrees (`formatDegrees`) and calculates planar distances and angles. - What it achieves (comment): It formats degrees (`formatDegrees`) and is built from the normalise step (`normalise`) and the device heading helper (`deviceHeading`). Frozen source extract from blob. - What it does: It tests its inputs. Defines normalise, formatDegrees, deviceHeading. Uses libraries node:assert/strict. - 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: `normalise(degrees)`; `formatDegrees(degrees)`; `deviceHeading(event, screenAngle = 0)`; `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, ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 04 Replay - File: neural-link-between-agents/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/04-replay.mjs (JavaScript, 79 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/04-replay.mjs#L1-L79 - Page: https://code.globalgrid2050.com/explore-code/s/0703.html#f3 - Synopsis: A JavaScript module in Neural Link Between Agents. It is built from the run step (`run`), the fix step (`fix`) and the tick step (`tick`). - What it achieves (name): Defines `replay`, `norm`, `angle` and 3 more. - What it does: It calculates its inputs. Defines 7 functions or classes, including replay, norm, angle, run, fix. - 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: `replay(events)`; `norm(x)`; `angle(x)`; `run()`; `fix(at=0,extras={})`; `h(deg,at=0,extras={})`; `tick(at)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner, ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 05 Estimator - File: neural-link-between-agents/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/05-estimator.mjs (JavaScript, 54 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/05-estimator.mjs#L1-L54 - Page: https://code.globalgrid2050.com/explore-code/s/0703.html#f4 - Synopsis: A JavaScript module in Neural Link Between Agents that calculates planar distances and angles. - What it achieves (name): It is built from the estimator step (`estimator`), the label step (`label`) and the metrics step (`metrics`). Defines `benchmark`, `norm`, `trace` and 3 more. - What it does: It calculates its inputs. Defines 6 functions or classes, including benchmark, norm, trace, estimator, label. - Why it exists in the grid workflow: Domain stage hv_procurement (path word 'estimator'): HV materials procurement, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `benchmark()`; `norm(x)`; `trace(name,truth,observed,step=null)`; `estimator(kind)`; `label(h,previous,hyst)`; `metrics(kind,tr)` - domain_stage: hv_procurement · commercial_user: EPC_contractor, procurement_buyer, ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 06 Reference - File: neural-link-between-agents/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/06-reference.mjs (JavaScript, 46 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/06-reference.mjs#L1-L46 - Page: https://code.globalgrid2050.com/explore-code/s/0703.html#f5 - Synopsis: A JavaScript module in Neural Link Between Agents that calculates planar distances. It is built from the valid step (`valid`), the sigma step (`sigma`) and the convert step (`convert`). - What it achieves (name): Defines `benchmark`, `norm`, `delta` and 4 more. - What it does: It calculates its inputs. Defines 7 functions or classes, including benchmark, norm, delta, valid, sigma. - 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: `benchmark()`; `norm(x)`; `delta(a,b)`; `valid(x)`; `sigma(h)`; `convert(s,m)`; `fail(reason)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner, ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 07 Lifecycle - File: neural-link-between-agents/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/07-lifecycle.mjs (JavaScript, 34 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/07-lifecycle.mjs#L1-L34 - Page: https://code.globalgrid2050.com/explore-code/s/0703.html#f6 - Synopsis: A JavaScript module in Neural Link Between Agents that works with lifecycle benchmark (`lifecycleBenchmark`). - What it achieves (name): It is built from the lifecycle benchmark helper (`lifecycleBenchmark`), the stop step (`stop`) and the start step (`start`). Defines `lifecycleBenchmark`, `model`, `create` and 9 more. - What it does: Defines 13 functions or classes, including lifecycleBenchmark, eq, model, create, stop. - 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: `lifecycleBenchmark()`; `eq(a,b,label)`; `model()`; `create()`; `stop(x,reason="stopped",phase="unavailable")`; `start(x,gesture,available=true)`; `resolve(x,token,result)`; `sample(x,token,t,value,quality=true)`; `read(x)`; `hide()`; `show()`; `leave()`; `restore()`; `scenario(fn)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner, ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 08 Relative - File: neural-link-between-agents/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/08-relative.mjs (JavaScript, 30 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/08-relative.mjs#L1-L30 - Page: https://code.globalgrid2050.com/explore-code/s/0703.html#f7 - Synopsis: A JavaScript module in Neural Link Between Agents that works with valid angle (`validAngle`) and calculates angles. - What it achieves (name): It is built from the stable step (`stable`), the valid angle helper (`validAngle`) and the model step (`model`). Defines `benchmark`, `norm`, `nominal` and 4 more. - What it does: It calculates its inputs. Defines 7 functions or classes, including benchmark, norm, nominal, stable, validAngle. - 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: `benchmark()`; `norm(x)`; `nominal(d)`; `stable(d,prev)`; `validAngle(x)`; `model()`; `fail(reason)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner, ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 09 Arrow - File: neural-link-between-agents/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/09-arrow.html (HTML, 11 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/09-arrow.html#L1-L11 - Page: https://code.globalgrid2050.com/explore-code/s/0703.html#f8 - Synopsis: A web page in Neural Link Between Agents that draws SVG graphics. - What it achieves (comment): ORIENT-09 neutral study. - What it does: It draws its content. Defines $. 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: Out: web page; SVG drawing. - Downstream impact: It is itself an entry point (page); no other file was found loading it. - Signatures: `$(id)`; `render(s)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner, ai_agent · canonical_status: unknown · essay_status: auto - data_contracts: in []; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 09 Browser - File: neural-link-between-agents/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/09-browser.py (Python, 55 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/09-browser.py#L1-L55 - Page: https://code.globalgrid2050.com/explore-code/s/0703.html#f9 - Synopsis: A Python module in Neural Link Between Agents. - What it achieves (name): Defines `check` and `lum`. - What it does: It loads data. Defines check, lum. Uses libraries pathlib, playwright.sync_api, json, math. Side effects: changes the web page (DOM); reads or writes files. - 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: `check(group, ok)`; `lum(rgb)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner, ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 10 Camera - File: neural-link-between-agents/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/10-camera.mjs (JavaScript, 73 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/10-camera.mjs#L1-L73 - Page: https://code.globalgrid2050.com/explore-code/s/0703.html#f10 - Synopsis: A JavaScript module in Neural Link Between Agents that creates controller (`createController`). It creates controller (`createController`) and is built from the camera study helper (`cameraStudy`) and the finite step (`finite`). - What it achieves (name): Defines `cameraStudy`, `norm`, `delta` and 10 more. - What it does: It calculates its inputs. Defines 15 functions or classes, including cameraStudy, norm, delta, finite, createController. - 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: `cameraStudy()`; `norm(a)`; `delta(a,b)`; `finite(n)`; `createController(map)`; `fresh(s,age)`; `goodHeading(s)`; `goodFix(s)`; `tick(t)`; `check(v,m)`; `fixture()`; `write(p,owner)`; `h(deg,t=0,extra={})`; `f(at,t=0,extra={})`; `invariant()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner, ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 11 Modes Arrival - File: neural-link-between-agents/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/11-modes-arrival.mjs (JavaScript, 97 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/11-modes-arrival.mjs#L1-L97 - Page: https://code.globalgrid2050.com/explore-code/s/0703.html#f11 - Synopsis: A JavaScript module in Neural Link Between Agents. It is built from the invalidate step (`invalidate`), the identity step (`identity`) and the same step (`same`). - What it achieves (name): Defines `study`, `norm`, `controller` and 12 more. - What it does: It calculates its inputs. Defines 15 functions or classes, including study, norm, controller, invalidate, identity. - 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: `study()`; `norm(x)`; `controller()`; `invalidate()`; `identity()`; `same(k)`; `quality(f)`; `hGood()`; `eligible(f,m)`; `view()`; `check(x,m)`; `setup(mode="walking",verified=true)`; `route(c,extra={})`; `sample(c,t,extra={},mextra={})`; `compass(c,t,extra={})` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner, ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 12 Pedestrian - File: neural-link-between-agents/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/12-pedestrian.mjs (JavaScript, 53 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/12-pedestrian.mjs#L1-L53 - Page: https://code.globalgrid2050.com/explore-code/s/0704.html#f1 - Synopsis: A JavaScript module in Neural Link Between Agents that calculates planar distances, using Dijkstra. - What it achieves (name): It is built from the key step (`key`), the bound step (`bound`) and the solve step (`solve`). Defines `study`, `check`, `permitted` and 7 more. - What it does: It calculates its inputs. Defines 10 functions or classes, including study, check, permitted, key, bound. - 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: `study()`; `check(x,msg)`; `permitted(e,stepFree)`; `key(v,last)`; `bound(a,b)`; `solve(g,s,t,stepFree=false)`; `oracle(g,s,t,stepFree)`; `compare(g,s,t,stepFree=false,expected=undefined)`; `edge(id,a,b,m,o={})`; `named(name,h,s,t,expected,stepFree=false)`; `endpoint(candidates,accuracy)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner, ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 13 Driving - File: neural-link-between-agents/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/13-driving.mjs (JavaScript, 64 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/13-driving.mjs#L1-L64 - Page: https://code.globalgrid2050.com/explore-code/s/0704.html#f2 - Synopsis: A JavaScript module in Neural Link Between Agents. It is built from the key step (`key`), the solve step (`solve`) and the fail step (`fail`). - What it achieves (name): Defines `study`, `check`, `legal` and 8 more. - What it does: It lists and searches its content. Defines 14 functions or classes, including study, check, e, legal, key. - 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: `study()`; `check(x,m)`; `e(id,a,b,m,sec,extra={})`; `legal(x,v)`; `key(v,last)`; `solve(g,s,t,objective,v=vehicle)`; `fail(reason)`; `oracle(g,s,t,obj,v)`; `ok(x)`; `w(x)`; `compare(g,s,t,obj,v=vehicle,expected)`; `named(name,h,s,t,obj,expected,v=vehicle)`; `next(route,index,matched)`; `transition(state,ev)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner, ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 14 Integration Test - File: neural-link-between-agents/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/14-integration-test.mjs (JavaScript, 28 lines) · role test · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/2026-12-02-SATNAV-ORIENT-20/FINDINGS/14-integration-test.mjs#L1-L28 - Page: https://code.globalgrid2050.com/explore-code/s/0704.html#f3 - Synopsis: A JavaScript module in Neural Link Between Agents that calculates planar distances. - What it achieves (name): Defines `exercise`, `load` and `msg`. - What it does: It tests its inputs. Defines exercise, load, msg. 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 '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: `exercise(source)`; `class E`; `load(u)`; `msg()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner, ai_agent · canonical_status: duplicate_candidate (duplicate of gridatlas/tools/proofs/202612030153-orient14.proof.mjs) · essay_status: auto - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (url-import-meta 1); used by 0; mentioned by 0 ### Handoff - File: neural-link-between-agents/SESSIONS/2026-12-04-SATNAV-KUIPER-20/handoff.mjs (JavaScript, 54 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/2026-12-04-SATNAV-KUIPER-20/handoff.mjs#L1-L54 - Page: https://code.globalgrid2050.com/explore-code/s/0704.html#f4 - Synopsis: A JavaScript module in Neural Link Between Agents that works with immutable write (`immutableWrite`). It is built from the immutable write helper (`immutableWrite`). - What it achieves (name): Defines `handoff`, `endpoint` and `immutableWrite`. - What it does: It loads data. Defines handoff, gh, endpoint, immutableWrite, main. Uses libraries node:fs, node:child_process, node:url. Side effects: reads or writes files; starts processes. - 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). - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 1 file: Handoff Test (neural-link-between-agents). - Signatures: `export handoff(input)`; `gh(args, body)`; `endpoint(repo,path)`; `immutableWrite(path,record)`; `main()` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unknown · essay_status: auto - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Handoff Test - File: neural-link-between-agents/SESSIONS/2026-12-04-SATNAV-KUIPER-20/handoff.test.mjs (JavaScript, 17 lines) · role test · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/2026-12-04-SATNAV-KUIPER-20/handoff.test.mjs#L1-L17 - Page: https://code.globalgrid2050.com/explore-code/s/0704.html#f5 - Synopsis: A test in Neural Link Between Agents that checks Handoff. - What it does: It tests its inputs. Uses libraries node:assert/strict. - 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). - Inputs & outputs: In: JSON file AGENT-A-INVENTORY.json. - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in [JSON file AGENT-A-INVENTORY.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Audit Resolution - File: neural-link-between-agents/SESSIONS/SATNAV-02/audit_resolution.py (Python, 84 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/SATNAV-02/audit_resolution.py#L1-L84 - Page: https://code.globalgrid2050.com/explore-code/s/0704.html#f6 - Synopsis: A Python command-line tool in Neural Link Between Agents that reads dictionary and command execution bindings, using SHA-256. - What it achieves (comment): It is built from the audit step (`audit`), the digest step (`digest`) and the save step (`save`). Read-only exhaustive command/sense audit; no package execution. It accepts `--out` and `--projection`. - What it does: It loads dictionary and command execution bindings. Defines audit, digest, save. Uses libraries argparse, hashlib, importlib.util, json, pathlib. Side effects: reads or writes files. - 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: JSON file dictionary.json; JSON file command-execution-bindings.json; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `audit(root, output, projection=False)`; `digest(path)`; `save()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner, ai_agent · canonical_status: supporting_data · essay_status: auto - data_contracts: in [JSON file dictionary.json; JSON file command-execution-bindings.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### 2026 11 28 Privacy Lifecycle Test - File: neural-link-between-agents/SESSIONS/SATNAV-05/2026-11-28-privacy-lifecycle.test.mjs (JavaScript, 32 lines) · role test · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/SATNAV-05/2026-11-28-privacy-lifecycle.test.mjs#L1-L32 - Page: https://code.globalgrid2050.com/explore-code/s/0704.html#f7 - Synopsis: A test in Neural Link Between Agents. - What it achieves (comment): SatNav-05 independent test receipt. Node 22; no dependencies. - What it does: It tests its inputs. Defines el. Uses libraries node:assert/strict. 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: `el(id)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner, ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Privacy Runner - File: neural-link-between-agents/SESSIONS/SATNAV-05/privacy_runner.py (Python, 79 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/SESSIONS/SATNAV-05/privacy_runner.py#L1-L79 - Page: https://code.globalgrid2050.com/explore-code/s/0704.html#f8 - Synopsis: A Python command-line tool in Neural Link Between Agents that uses SHA-256. It is built from the blob step (`blob`), the run step (`run`) and the save step (`save`). - What it achieves (comment): SatNav-05: replay existing mock lifecycle test on pinned inputs. - What it does: Defines blob, run, save, stage. Uses libraries hashlib, json, pathlib, re, subprocess. Side effects: reads or writes files; starts processes. - 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: command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `blob(data)`; `run(app, test, output)`; `save()`; `stage(name, **details)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner, ai_agent · canonical_status: supporting_data · essay_status: auto - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Audit Atlas V8 Deep Link Quarantine - File: pipelinenews/atman/202608271329-audit-atlas-v8-deep-link-quarantine.py (Python, 163 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/atman/202608271329-audit-atlas-v8-deep-link-quarantine.py#L1-L163 - Page: https://code.globalgrid2050.com/explore-code/s/0704.html#f9 - Synopsis: A Python command-line tool in the atman folder of PipelineNews that loads pages gate (`load_pages_gate`) and parses arguments (`parse_arguments`). - What it achieves (comment): It is built from the require step (`require`), the git text helper (`git_text`) and the governed release helper (`governed_release`). Audit the committed Atlas V8 successor against the production Pages gate. It accepts `--root`, `--generation` and `--output-commit`. - What it does: It loads data. Defines 6 functions or classes, including require, git_text, load_pages_gate, governed_release, parse_arguments. 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 '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 current.json; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `require(condition: bool, message: str)`; `git_text(root: Path, *arguments: str)`; `load_pages_gate(root: Path)`; `governed_release(module, root: Path)`; `parse_arguments()`; `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 current.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (script-call 1); used by 0; mentioned by 0 ### Compare Atlas V8 Deep Links - File: pipelinenews/atman/202608271329-compare-atlas-v8-deep-links.mjs (JavaScript, 169 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/atman/202608271329-compare-atlas-v8-deep-links.mjs#L1-L169 - Page: https://code.globalgrid2050.com/explore-code/s/0705.html#f1 - Synopsis: A JavaScript module in the atman folder of PipelineNews that reads the Renewable Energy Planning Database (REPD) register, using SHA-256. - What it achieves (name): It parses adapter argument (`parseAdapterArgument`) and is built from the project decoder helper (`projectDecoder`) and the parameter order helper (`parameterOrder`). Defines `sha256`, `projectDecoder`, `parseAdapterArgument` and 2 more. - What it does: It loads the REPD register. Defines 6 functions or classes, including sha256, projectDecoder, parseAdapterArgument, parameterOrder, atlasParameters. 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 '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 202608270055-8ab1807551bc-v8-fast-projects.json; command-line arguments. - Signatures: `sha256(bytes)`; `projectDecoder(payload)`; `parseAdapterArgument(argv)`; `parameterOrder(url)`; `atlasParameters(source, functionName)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Resolve GridAtlas Pointer - File: pipelinenews/atman/202608291504-resolve-gridatlas-pointer.mjs (JavaScript, 184 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/atman/202608291504-resolve-gridatlas-pointer.mjs#L1-L184 - Page: https://code.globalgrid2050.com/explore-code/s/0705.html#f2 - Synopsis: A JavaScript module in the atman folder of PipelineNews that fetches fast site, using SHA-256 from GitHub API. It parses args (`parseArgs`), reads bundle (`readBundle`) and validates pointer bundle (`validatePointerBundle`). - What it achieves (name): Defines `parseArgs`, `sha256`, `record` and 4 more. - What it does: It fetches fast site. Defines 8 functions or classes, including parseArgs, sha256, record, githubJson, githubFile. Uses libraries node:assert/strict, node:crypto, node:child_process, node:fs/promises, node:path. 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; JSON file current-v3.json; JSON file live-set.json; JSON file 202608271524-v8-fast-site-manifest.json; JSON file release-manifest.json; command-line arguments. - Downstream impact: Used directly by 1 file: Atlas Pointer Deep Link Successor (pipelinenews). - Signatures: `export validatePointerBundle(bundle, expectations = {})`; `export main(argv = process.argv.slice(2))`; `parseArgs(argv)`; `sha256(raw)`; `record(relative, raw)`; `githubJson(url, token)`; `githubFile(repository, commit, relative, token)`; `readBundle(args)` - 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-v3.json; JSON file live-set.json; JSON file 202608271524-v8-fast-site-manifest.json; JSON file release-manifest.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 1; mentioned by 0 ### Verify Current Atlas V9 Deep Link - File: pipelinenews/atman/202608300309-verify-current-atlas-v9-deep-link.mjs (JavaScript, 328 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/atman/202608300309-verify-current-atlas-v9-deep-link.mjs#L1-L328 - Page: https://code.globalgrid2050.com/explore-code/s/0705.html#f3 - Synopsis: A JavaScript module in the atman folder of PipelineNews that fetches diagnostic and the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): It writes JSON (`writeJson`) and is built from the page diagnostics helper (`pageDiagnostics`) and the dictionary step (`dictionary`). Activated for verified GridAtlas. - What it does: It fetches diagnostic and the REPD register. Defines writeJson, pageDiagnostics, dictionary, isKnownLegacyDuplicateEngineError. Uses libraries node:fs/promises, 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 (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 -diagnostic.json; JSON file 202608291447-registry.json. - Downstream impact: Used directly by 2 files: PipelineNews Current GridAtlas V9 Deep Link Successor Workflow (pipelinenews); PipelineNews Resume Exact Atlas Pages Promotion Workflow (pipelinenews). - Signatures: `writeJson(path, value)`; `pageDiagnostics(page)`; `dictionary(name, index)`; `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 -diagnostic.json; JSON file 202608291447-registry.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Extend Pages Atlas Link V2 - File: pipelinenews/automation/202608301200-extend-pages-atlas-link-v2.py (Python, 363 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/automation/202608301200-extend-pages-atlas-link-v2.py#L1-L363 - Page: https://code.globalgrid2050.com/explore-code/s/0706.html#f1 - Synopsis: A Python command-line tool in the automation folder of PipelineNews that reads atlas link contract and atlas current, using SHA-256 from the GridAtlas repository. - What it achieves (comment): It replaces once (`replace_once`), validates current atlas link v2 (`validate_current_atlas_link_v2`) and validates current predecessor pointer (`validate_current_or_predecessor_pointer`). Extend the PipelineNews Pages gate for the current Atlas-link v2 release. - What it does: It loads atlas link contract and atlas current. Defines replace_once, main, _atlas_link_v2_outputs, validate_current_atlas_link_v2, validate_current_or_predecessor_pointer. Uses libraries pathlib. Side effects: reads or writes files; starts processes. - 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: gridatlas data; JSON file atlas-link-manifest.json; JSON file build-manifest.json; JSON file release-manifest.json; JSON file live-set.json; JSON file current-v4.json; JSON file current-v3.json; JSON file atlas-v9-current.json. - Downstream impact: Used directly by 1 file: Repair Pages Historical Source Attestation V2 (pipelinenews). - Signatures: `replace_once(text: str, before: str, after: str, label: str)`; `main()`; `_atlas_link_v2_outputs(root: Path, folder_relative: str)`; `validate_current_atlas_link_v2(root: Path, release_id: str, generation: str, folder_relative: str, folder: Path, release_manifest_relative: str, rel...)`; `validate_current_or_predecessor_pointer(root: Path, timestamp_folder: dict)` - 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 atlas-link-manifest.json; JSON file build-manifest.json; JSON file release-manifest.json; JSON file live-set.json; JSON file current-v4.json; JSON file current-v3.json; JSON file atlas-v9-current.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (script-call 1); used by 1; mentioned by 0 ### Compile V8 Atlas Deep Link - File: pipelinenews/index/202608271329-compile-v8-atlas-deep-link.mjs (JavaScript, 386 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/index/202608271329-compile-v8-atlas-deep-link.mjs#L1-L386 - Page: https://code.globalgrid2050.com/explore-code/s/0707.html#f1 - Synopsis: A JavaScript module in the index folder of PipelineNews that reads fast site and fast registry, using SHA-256 from the GridAtlas repository. - What it achieves (name): It replaces exactly (`replaceExactly`), reads pinned (`readPinned`) and decodes project (`decodeProject`). Its name says it compiles atlas deep link. Defines `absolute`, `sha256`, `jsonBytes` and 8 more. - What it does: It loads fast site and fast registry. Defines 12 functions or classes, including absolute, sha256, jsonBytes, replaceExactly, readPinned. 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 '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: gridatlas data; JSON file 202608270844-v8-fast-site-manifest.json; JSON file 202608270844-v8-fast-registry.json; JSON file 202608270844-9ab451f4bf19-v8-fast-news.json; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file 202608270055-8ab1807551bc-v8-fast-search.json; command-line arguments. - Signatures: `absolute(relativePath)`; `sha256(bytes)`; `jsonBytes(value)`; `replaceExactly(source, from, to, expectedCount = 1)`; `readPinned(relativePath)`; `decodeProject(payload, row)`; `dictionary(name)`; `rewriteRuntime(parentSource, cacheIdentity)`; `rewriteHtml(parentSource)`; `build()`; `argument(argv, name)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; JSON file 202608270844-v8-fast-site-manifest.json; JSON file 202608270844-v8-fast-registry.json; JSON file 202608270844-9ab451f4bf19-v8-fast-news.json; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file 202608270055-8ab1807551bc-v8-fast-search.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Compile Atlas V9 Deep Link - File: pipelinenews/index/202608291310-compile-atlas-v9-deep-link.mjs (JavaScript, 450 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/index/202608291310-compile-atlas-v9-deep-link.mjs#L1-L450 - Page: https://code.globalgrid2050.com/explore-code/s/0708.html#f1 - Synopsis: A JavaScript module in the index folder of PipelineNews that reads sector intelligence, audit, ledger receipt and part, using SHA-256 from the GridAtlas repository. - What it achieves (name): It parses args (`parseArgs`), reads pinned (`readPinned`) and replaces exactly (`replaceExactly`). Its name says it compiles atlas deep link. Defines `parseArgs`, `sha256`, `jsonBytes` and 9 more. - What it does: It loads sector intelligence, audit, ledger receipt and part. Defines 13 functions or classes, including parseArgs, sha256, jsonBytes, record, safePath. 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 (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: gridatlas data; JSON file 202608272130-sector-intelligence.json; JSON file 202608272130-parquet-audit.json; JSON file 202608272130-source-ledger-receipt.json; Parquet file 202608272130-part-000.parquet; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file 202608270055-8ab1807551bc-v8-fast-search.json; JSON file 202608271524-fd2212a8c76d-v8-fast-news.json. - Downstream impact: Used directly by 1 file: Atlas V9 Deep Link Successor (pipelinenews). - Signatures: `parseArgs(argv)`; `sha256(raw)`; `jsonBytes(value)`; `record(relative, raw)`; `safePath(root, relative)`; `readPinned(root, pin, label)`; `replaceExactly(source, needle, replacement, count = 1)`; `compileHtml(parentBytes)`; `compileRegistry(parent, sourceCommit, compilerRaw, cartridgeRaw, dependencies)`; `compileRuntime(parentBytes, cacheIdentity)`; `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; JSON file 202608272130-sector-intelligence.json; JSON file 202608272130-parquet-audit.json; JSON file 202608272130-source-ledger-receipt.json; Parquet file 202608272130-part-000.parquet; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file 202608270055-8ab1807551bc-v8-fast-search.json; JSON file 202608271524-fd2212a8c76d-v8-fast-news.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Compile Atlas Pointer Deep Link - File: pipelinenews/index/202608291504-compile-atlas-pointer-deep-link.mjs (JavaScript, 505 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/index/202608291504-compile-atlas-pointer-deep-link.mjs#L1-L505 - Page: https://code.globalgrid2050.com/explore-code/s/0709.html#f1 - Synopsis: A JavaScript module in the index folder of PipelineNews that reads sector intelligence, audit, ledger receipt and part, using SHA-256 from the GridAtlas repository. - What it achieves (name): It parses args (`parseArgs`), reads pinned (`readPinned`) and replaces exactly (`replaceExactly`). Its name says it compiles atlas pointer deep link. Defines `parseArgs`, `sha256`, `jsonBytes` and 9 more. - What it does: It loads sector intelligence, audit, ledger receipt and part. Defines 13 functions or classes, including parseArgs, sha256, jsonBytes, record, safePath. 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 (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: gridatlas data; JSON file 202608272130-sector-intelligence.json; JSON file 202608272130-parquet-audit.json; JSON file 202608272130-source-ledger-receipt.json; Parquet file 202608272130-part-000.parquet; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file 202608270055-8ab1807551bc-v8-fast-search.json; JSON file 202608271524-fd2212a8c76d-v8-fast-news.json. - Downstream impact: Used directly by 1 file: Atlas Pointer Deep Link Successor (pipelinenews). - Signatures: `parseArgs(argv)`; `sha256(raw)`; `jsonBytes(value)`; `record(relative, raw)`; `safePath(root, relative)`; `readPinned(root, pin, label)`; `replaceExactly(source, needle, replacement, count = 1)`; `compileHtml(parentBytes)`; `compileRegistry(parent, sourceCommit, compilerRaw, cartridgeRaw, dependencies, receiver)`; `compileRuntime(parentBytes, cacheIdentity)`; `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; JSON file 202608272130-sector-intelligence.json; JSON file 202608272130-parquet-audit.json; JSON file 202608272130-source-ledger-receipt.json; Parquet file 202608272130-part-000.parquet; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file 202608270055-8ab1807551bc-v8-fast-search.json; JSON file 202608271524-fd2212a8c76d-v8-fast-news.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Build Current Atlas Link Successor - File: pipelinenews/orchestration/202608300309-build-current-atlas-link-successor.py (Python, 303 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/orchestration/202608300309-build-current-atlas-link-successor.py#L1-L303 - Page: https://code.globalgrid2050.com/explore-code/s/0710.html#f1 - Synopsis: A Python command-line tool in the orchestration folder of PipelineNews that reads the Renewable Energy Planning Database (REPD) register, using SHA-256 from the GridAtlas repository. - What it achieves (comment): It loads JSON (`load_json`), validates atlas (`validate_atlas`) and verifies unchanged (`verify_unchanged`). Build a timestamped PipelineNews successor changing only the verified Atlas receiver. It accepts `--source`, `--output` and `--release-id`. - What it does: It loads the REPD register. Defines 8 functions or classes, including require, sha256, load_json, validate_atlas, pointer_module. 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: data source: gridatlas data; JSON file atlas-link-manifest.json; JSON file build-manifest.json; JSON file release-manifest.json; command-line arguments. Out: JSON file atlas-link-manifest.json; JSON file build-manifest.json; JSON file release-manifest.json. - Downstream impact: Used directly by 1 file: PipelineNews Current GridAtlas V9 Deep Link Successor Workflow (pipelinenews). - Signatures: `require(condition: bool, message: str)`; `sha256(path: Path)`; `load_json(path: Path)`; `validate_atlas(state: dict[str, Any], minimum_generation: str)`; `pointer_module(generation: str, atlas: dict[str, str], golden_repd_ref: str, state_url: str)`; `verify_unchanged(source: Path, target: Path)`; `write_manifests(target: Path, source_release_id: str, release_id: str, generation: str, source_commit: str, atlas: dict[str, str], go...)`; `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; JSON file atlas-link-manifest.json; JSON file build-manifest.json; JSON file release-manifest.json; command-line arguments]; out [JSON file atlas-link-manifest.json; JSON file build-manifest.json; JSON file release-manifest.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Promote Current Atlas Link - File: pipelinenews/orchestration/202608300309-promote-current-atlas-link.py (Python, 223 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/orchestration/202608300309-promote-current-atlas-link.py#L1-L223 - Page: https://code.globalgrid2050.com/explore-code/s/0710.html#f2 - Synopsis: A Python command-line tool in the orchestration folder of PipelineNews that reads the Renewable Energy Planning Database (REPD) register, using SHA-256 from the GridAtlas repository. - What it achieves (comment): It validates atlas (`validate_atlas`) and is built from the require step (`require`) and the load step (`load`). Promote a publicly proven PipelineNews release bound to a verified Atlas V9 receiver. It accepts `--release-dir`, `--release-id` and `--generation`. - What it does: It loads the REPD register. Defines 6 functions or classes, including require, load, sha256, file_record, validate_atlas. 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: data source: gridatlas data; JSON file release-manifest.json; JSON file build-manifest.json; JSON file atlas-link-manifest.json; command-line arguments. - Downstream impact: Used directly by 2 files: PipelineNews Current GridAtlas V9 Deep Link Successor Workflow (pipelinenews); PipelineNews Resume Exact Atlas Pages Promotion Workflow (pipelinenews). - Signatures: `require(condition: bool, message: str)`; `load(path: Path)`; `sha256(path: Path)`; `file_record(path: Path, repository_path: str)`; `validate_atlas(state: dict[str, Any], minimum_generation: 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: gridatlas data; JSON file release-manifest.json; JSON file build-manifest.json; JSON file atlas-link-manifest.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Repair Exact Renewable Energy Planning Database (REPD) Route - File: pipelinenews/orchestration/202608300358-repair-exact-repd-route.py (Python, 188 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/orchestration/202608300358-repair-exact-repd-route.py#L1-L188 - Page: https://code.globalgrid2050.com/explore-code/s/0711.html#f1 - Synopsis: A Python command-line tool in the orchestration folder of PipelineNews that reads atlas link and the REPD register, using SHA-256. - What it achieves (comment): It loads JSON (`load_json`), writes JSON (`write_json`) and replaces exactly once (`replace_exactly_once`). Repair PipelineNews exact-REPD routing without changing data, news, or project bytes. It accepts `--release-dir` and `--golden-repd-ref`. - What it does: It loads atlas link and the REPD register. Defines 8 functions or classes, including require, load_json, sha256, write_json, replace_exactly_once. Uses libraries __future__, argparse, hashlib, json, re. Side effects: 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. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file build-manifest.json; JSON file release-manifest.json; JSON file atlas-link-manifest.json; command-line arguments. - Downstream impact: Used directly by 1 file: PipelineNews Current GridAtlas V9 Deep Link Successor Workflow (pipelinenews). - Signatures: `require(condition: bool, message: str)`; `load_json(path: Path)`; `sha256(path: Path)`; `write_json(path: Path, value: dict[str, Any])`; `replace_exactly_once(source: str, before: str, after: str, label: str)`; `refresh_file_inventory(root: Path, build: dict[str, Any])`; `write_sha256sums(root: Path)`; `main()` - domain_stage: field_execution · commercial_user: IPP_developer, EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file build-manifest.json; JSON file release-manifest.json; JSON file atlas-link-manifest.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### PipelineNews Atlas Pointer Deep Link - File: pipelinenews/releases/202608312018-pipelinenews/assets/202608312018-atlas-pointer-deep-link.mjs (JavaScript, 249 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/releases/202608312018-pipelinenews/assets/202608312018-atlas-pointer-deep-link.mjs#L1-L249 - Page: https://code.globalgrid2050.com/explore-code/s/0711.html#f2 - Synopsis: A JavaScript module in the assets folder that works with solar and uses data from the GridAtlas repository. - What it achieves (comment): It builds atlas v9 deep link (`buildAtlasV9DeepLink`) and is built from the invariant step (`invariant`) and the finite in range helper (`finiteInRange`). PipelineNews -> GridAtlas deep-link cartridge. - What it does: It calculates solar. Defines invariant, finiteInRange, buildAtlasV9DeepLink, selfTest, add. - 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: JSON file live-set.json. - Downstream impact: Used directly by 3 files: Releases — PipelineNews (pipelinenews); 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 Releases — PipelineNews Page (pipelinenews, https://ventusltd.github.io/pipelinenews/releases/202611132345-pipelinenews/); Genome Workflow (ventus-grid-engine). - Signatures: `export buildAtlasV9DeepLink(project)`; `export selfTest()`; `invariant(condition, message)`; `finiteInRange(value, limit)`; `add(name, ok, 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 live-set.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (estate-url 2); used by 3; mentioned by 0 ### PipelineNews Codex Atlas Lab Proof - File: pipelinenews/releases/202609020010-pipelinenews/202609020010-codex-atlas-lab.proof.mjs (JavaScript, 123 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/releases/202609020010-pipelinenews/202609020010-codex-atlas-lab.proof.mjs#L1-L123 - Page: https://code.globalgrid2050.com/explore-code/s/0711.html#f3 - Synopsis: A JavaScript module that reads the Renewable Energy Planning Database (REPD) register from the GridAtlas repository. - What it achieves (comment): It is built from the check step (`check`), the text step (`text`) and the JSON step (`json`). Executable acceptance proof for the isolated Codex MAP journey. - What it does: It loads the REPD register. Defines check, text, json, decode. Uses libraries node:fs/promises, node:path, node:url. Side effects: reads or writes files; starts processes. - 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). Domain terms in the code: the REPD register. - Inputs & outputs: In: data source: gridatlas data; JSON file release-manifest.json; JSON file 202608291447-registry.json; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file current.json. - Signatures: `check(name, condition, detail = '')`; `text(relative)`; `json(relative)`; `decode(row)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: duplicate_candidate (duplicate of pipelinenews/tools/intelligence/cartridges/atlas-live-handoff/proof.mjs) · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; JSON file release-manifest.json; JSON file 202608291447-registry.json; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file current.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### PipelineNews Codex Atlas Lab Deep Link - File: pipelinenews/releases/202609020010-pipelinenews/assets/202609020010-codex-atlas-lab-deep-link.mjs (JavaScript, 96 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/releases/202609020010-pipelinenews/assets/202609020010-codex-atlas-lab-deep-link.mjs#L1-L96 - Page: https://code.globalgrid2050.com/explore-code/s/0711.html#f4 - Synopsis: A JavaScript module in the assets folder that works with solar and uses data from the GridAtlas repository. - What it achieves (comment): It builds atlas v9 deep link (`buildAtlasV9DeepLink`) and is built from the invariant step (`invariant`) and the finite in range helper (`finiteInRange`). Pipeline News -> immutable Codex GridAtlas laboratory generation. - What it does: It calculates solar. Defines invariant, finiteInRange, buildAtlasV9DeepLink, selfTest. - 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). Domain terms in the code: solar. - Inputs & outputs: In: JSON file current.json. - Signatures: `export buildAtlasV9DeepLink(project)`; `export selfTest()`; `invariant(condition, message)`; `finiteInRange(value, limit)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · 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 ### JavaScript Atlas V8 Deep Link Cartridge - File: pipelinenews/releases/javascript/202608271329-atlas-v8-deep-link-cartridge.js (JavaScript, 79 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/releases/javascript/202608271329-atlas-v8-deep-link-cartridge.js#L1-L79 - Page: https://code.globalgrid2050.com/explore-code/s/0712.html#f1 - Synopsis: A JavaScript module in PipelineNews that works with solar. It builds atlas v8 deep link (`buildAtlasV8DeepLink`). - What it achieves (name): Defines `buildAtlasV8DeepLink`. - What it does: It calculates solar. Defines buildAtlasV8DeepLink. - 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. - Downstream impact: Used directly by 1 file: JavaScript V8 Fast Runtime (pipelinenews). Reached from 126 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 V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). - Signatures: `export buildAtlasV8DeepLink(project)` - 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 (estate-url 1); used by 1; mentioned by 0 ### PipelineNews Sync Atlas V9 Deep Links - File: pipelinenews/scripts/202608300232-sync-atlas-v9-deep-links.py (Python, 234 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/scripts/202608300232-sync-atlas-v9-deep-links.py#L1-L234 - Page: https://code.globalgrid2050.com/explore-code/s/0712.html#f2 - Synopsis: A Python command-line tool in the scripts folder that reads GridAtlas current, atlas deep link audit, solar and battery storage (BESS). - What it achieves (comment): It normalises base (`normalise_base`), builds URL (`build_url`) and validates URL (`validate_url`). Synchronise PipelineNews mutable sources to the promoted Atlas V9 deep-link contract. It accepts `--gridatlas`, `--globalgrid` and `--repo-root`. - What it does: It loads GridAtlas current, atlas deep link audit, solar and battery storage (BESS). Defines 9 functions or classes, including require, load, normalise_base, mutable_files, rewrite_source. Uses libraries __future__, argparse, json, re, sys. 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: solar, battery storage (BESS). - 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; command-line arguments. - Downstream impact: Used directly by 2 files: PipelineNews Sync Atlas V9 Deep Links Workflow (pipelinenews); PipelineNews Bootstrap Five Hour Atlas Integration Workflow (pipelinenews). - Signatures: `require(condition: bool, message: str)`; `load(path: Path)`; `normalise_base(value: str, release_id: str)`; `mutable_files(root: Path)`; `rewrite_source(text: str, base_url: str)`; `build_url(base_url: str, repd_ref: str, technology: str, **optional: object)`; `validate_url(url: str, expected_ref: str, expected_technology: str)`; `javascript_module(release_id: str, base_url: 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 live-set.json; JSON file gridatlas-v9-current.json; JSON file atlas-v9-current.json; JSON file atlas-v9-deep-link-audit.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 2; mentioned by 0 ### Verify Atlas Deep Link Contract - File: pipelinenews/tools/intelligence/202609012300-verify-atlas-deep-link-contract.mjs (JavaScript, 157 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/tools/intelligence/202609012300-verify-atlas-deep-link-contract.mjs#L1-L157 - Page: https://code.globalgrid2050.com/explore-code/s/0712.html#f3 - Synopsis: A JavaScript module in the intelligence folder of PipelineNews that reads cartridge. It is built from the check step (`check`) and the exists step (`exists`). - What it achieves (comment): The deep link is a contract, and this is the side of it Pipeline News owns. - What it does: It loads cartridge. Defines check, exists. Uses libraries node:fs/promises, 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 (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 cartridge.json; JSON file current.json; command-line arguments. - Downstream impact: Used directly by 1 file: Shift (pipelinenews). - Signatures: `check(name, condition, detail = '')`; `exists(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 cartridge.json; JSON file current.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Atlas Pointer Deep Link - File: pipelinenews/tools/intelligence/cartridges/atlas-live-handoff/assets/{GEN}-atlas-pointer-deep-link.mjs (JavaScript, 252 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/tools/intelligence/cartridges/atlas-live-handoff/assets/%7BGEN%7D-atlas-pointer-deep-link.mjs#L1-L252 - Page: https://code.globalgrid2050.com/explore-code/s/0713.html#f1 - Synopsis: A JavaScript module in the assets folder of PipelineNews that works with solar and uses data from the GridAtlas repository. - What it achieves (comment): It builds atlas v9 deep link (`buildAtlasV9DeepLink`) and is built from the invariant step (`invariant`) and the finite in range helper (`finiteInRange`). PipelineNews -> GridAtlas deep-link cartridge. Its code works with 132 kV. - What it does: It calculates solar. Defines invariant, finiteInRange, buildAtlasV9DeepLink, selfTest, add. - 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: solar, 132kV. - Inputs & outputs: In: JSON file live-set.json. Voltage levels named: 132kV. - Signatures: `export buildAtlasV9DeepLink(project)`; `export selfTest()`; `invariant(condition, message)`; `finiteInRange(value, limit)`; `add(name, ok, detail)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: duplicate_candidate (duplicate of pipelinenews/releases/202608312018-pipelinenews/assets/202608312018-atlas-pointer-deep-link.mjs) · essay_status: readme_derived - data_contracts: in [JSON file live-set.json]; out []; crs []; voltages [132kV] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### Proof - File: pipelinenews/tools/intelligence/cartridges/atlas-live-handoff/proof.mjs (JavaScript, 160 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/tools/intelligence/cartridges/atlas-live-handoff/proof.mjs#L1-L160 - Page: https://code.globalgrid2050.com/explore-code/s/0713.html#f2 - Synopsis: A JavaScript module in the atlas live handoff folder of PipelineNews that reads the Renewable Energy Planning Database (REPD) register from the GridAtlas repository. - What it achieves (comment): It is built from the check step (`check`), the text step (`text`) and the JSON step (`json`). Independent proof for the Pipeline News -> composed GridAtlas handoff. Its code works with 840 MW. - What it does: It loads the REPD register. Defines check, text, json, decode. Uses libraries node:fs/promises, node:fs, node:path, node:url. Side effects: reads or writes files; starts processes. - 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: the REPD register. - Inputs & outputs: In: data source: gridatlas data; JSON file release-manifest.json; JSON file 202608291447-registry.json; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; command-line arguments. - Downstream impact: Used directly by 1 file: Shift (pipelinenews). - Signatures: `check(name, condition, detail = '')`; `text(relative)`; `json(relative)`; `decode(row)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; JSON file release-manifest.json; JSON file 202608291447-registry.json; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 1; mentioned by 0 ### Atlas Pointer Deep Link - File: pipelinenews/tools/intelligence/cartridges/map-corpus-contract/assets/{GEN}-atlas-pointer-deep-link.mjs (JavaScript, 128 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/tools/intelligence/cartridges/map-corpus-contract/assets/%7BGEN%7D-atlas-pointer-deep-link.mjs#L1-L128 - Page: https://code.globalgrid2050.com/explore-code/s/0713.html#f3 - Synopsis: A JavaScript module in the assets folder of PipelineNews 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 1 file: Wider Fleet (pipelinenews). - 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: duplicate_candidate (duplicate of globalgrid2050/pipelinenews_intelligence/202609040144/assets/202609040044-atlas-pointer-deep-link.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 1; mentioned by 0 ### Wider Fleet - File: pipelinenews/tools/intelligence/cartridges/map-corpus-contract/assets/{GEN}-wider-fleet.mjs (JavaScript, 532 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/tools/intelligence/cartridges/map-corpus-contract/assets/%7BGEN%7D-wider-fleet.mjs#L1-L532 - Page: https://code.globalgrid2050.com/explore-code/s/0714.html#f1 - Synopsis: A JavaScript module in the assets folder of PipelineNews that writes deep link (`writeDeepLink`) and selects technology (`selectTechnology`), covering the Renewable Energy Planning Database (REPD) register, solar, postcodes and wind. - What it achieves (comment): It maps links row (`mapLinksForRow`), maps actions (`mapActions`) and renders wider (`renderWider`). The REPD technology types the spine does not carry, behind ONE labelled control in the product's own technology row. It responds to change and click events. - What it does: It draws the REPD register, solar, postcodes and wind. Defines 15 functions or classes, including esc, repdRecords, mapLinksForRow, mapActions, displayRefs. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'pipelinenews'): upstream engineering foresight 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, postcodes, wind. - Inputs & outputs: In: form fields (user input). Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Signatures: `export mapLinksForRow(row)`; `export mountWiderFleet({ host, payloadAsset, presentSummary })`; `esc(value)`; `repdRecords(row)`; `mapActions(row)`; `displayRefs(row)`; `displayStatuses(row)`; `num(value)`; `carried(value)`; `declineExport(request, technology, shown)`; `visible()`; `clearWider()`; `renderWider()`; `writeDeepLink(type)`; `selectTechnology(type)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/testcode/202609060340/pipeline/assets/202609040044-wider-fleet.mjs) · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Prepare - File: pipelinenews/tools/intelligence/cartridges/map-corpus-contract/prepare.mjs (JavaScript, 155 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/tools/intelligence/cartridges/map-corpus-contract/prepare.mjs#L1-L155 - Page: https://code.globalgrid2050.com/explore-code/s/0714.html#f2 - Synopsis: A JavaScript module in the map corpus contract folder of PipelineNews that reads wider fleet and the Renewable Energy Planning Database (REPD) register from the GridAtlas repository. - What it achieves (comment): It maps links row (`mapLinksForRow`) and maps actions (`mapActions`). Deterministically derive the deduplicated wider payload and its UI module. - What it does: It loads wider fleet and the REPD register. Defines 9 functions or classes, including identity, esc, atlasLink, esc, repdRecords. Uses libraries node:fs/promises, node:path, node:url. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'pipelinenews'): upstream engineering foresight 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 202609030009-wider-fleet.json. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `export mapLinksForRow(row)`; `identity(row)`; `esc(value)`; `atlasLink(row)`; `repdRecords(row)`; `mapActions(row)`; `displayRefs(row)`; `displayStatuses(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 202609030009-wider-fleet.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### Proof - File: pipelinenews/tools/intelligence/cartridges/map-corpus-contract/proof.mjs (JavaScript, 244 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/tools/intelligence/cartridges/map-corpus-contract/proof.mjs#L1-L244 - Page: https://code.globalgrid2050.com/explore-code/s/0715.html#f1 - Synopsis: A JavaScript module in the map corpus contract folder of PipelineNews that reads wider fleet, using SHA-256. - What it achieves (comment): It is built from the check step (`check`), the text step (`text`) and the JSON step (`json`). Prove every coordinate-bearing source row and the exact Grid receiver API. Its code works with 47.30 MW. - What it does: It loads wider fleet. Defines 7 functions or classes, including check, text, json, sha256, decode. Uses libraries node:child_process, node:crypto, node:fs, node:fs/promises, node:path. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'pipelinenews'): upstream engineering foresight 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 202608291447-registry.json; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file 202609030009-wider-fleet.json; command-line arguments. - Downstream impact: Used directly by 1 file: PipelineNews Map Corpus Contract Workflow (pipelinenews). - Signatures: `check(name, condition, detail = "")`; `text(relative)`; `json(relative)`; `sha256(bytes)`; `decode(row)`; `canonicalName(value)`; `identity(row)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file 202608291447-registry.json; JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file 202609030009-wider-fleet.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 1 ### Workflow Proof - File: pipelinenews/tools/intelligence/cartridges/map-corpus-contract/workflow-proof.mjs (JavaScript, 34 lines) · role automation · stage ingest · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/tools/intelligence/cartridges/map-corpus-contract/workflow-proof.mjs#L1-L34 - Page: https://code.globalgrid2050.com/explore-code/s/0715.html#f2 - Synopsis: A JavaScript module in the map corpus contract folder of PipelineNews. - What it does: It loads data. Uses libraries node:fs/promises, 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 'pipelinenews'): upstream engineering foresight 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: 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 []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### UI Atlas V9 Deep Links - File: pipelinenews/ui/atlas-v9-deep-links.js (JavaScript, 21 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/ui/atlas-v9-deep-links.js#L1-L21 - Page: https://code.globalgrid2050.com/explore-code/s/0715.html#f3 - Synopsis: A JavaScript file in PipelineNews using data from the GridAtlas repository. It builds atlas v9 URL (`buildAtlasV9Url`). - What it achieves (name): Defines `buildAtlasV9Url`. - What it does: Defines buildAtlasV9Url. 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: PipelineNews Sync Atlas V9 Deep Links Workflow (pipelinenews). - Signatures: `buildAtlasV9Url(project)` - 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 ### Atlas V8 Deep Link - File: pipelinenews/ui/cartridges/202608271329-atlas-v8-deep-link.mjs (JavaScript, 79 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/ui/cartridges/202608271329-atlas-v8-deep-link.mjs#L1-L79 - Page: https://code.globalgrid2050.com/explore-code/s/0715.html#f4 - Synopsis: A JavaScript module in the cartridges folder of PipelineNews that works with solar and uses data from the GridAtlas repository. - What it achieves (name): Defines `buildAtlasV8DeepLink`. - What it does: It calculates solar. Defines buildAtlasV8DeepLink. - 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. - Downstream impact: Used directly by 1 file: Compare Atlas V8 Deep Links (pipelinenews). - Signatures: `export buildAtlasV8DeepLink(project)` - 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 ### Atlas V9 Deep Link - File: pipelinenews/ui/cartridges/202608291310-atlas-v9-deep-link.mjs (JavaScript, 66 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/ui/cartridges/202608291310-atlas-v9-deep-link.mjs#L1-L66 - Page: https://code.globalgrid2050.com/explore-code/s/0715.html#f5 - Synopsis: A JavaScript module in the cartridges folder of PipelineNews that works with the Renewable Energy Planning Database (REPD) register and uses data from the GridAtlas repository. - What it achieves (name): Defines `buildAtlasV9DeepLink`. - What it does: It calculates the REPD register. Defines buildAtlasV9DeepLink. - 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: `export buildAtlasV9DeepLink(project)` - 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 ### Atlas Pointer Deep Link - File: pipelinenews/ui/cartridges/202608291504-atlas-pointer-deep-link.mjs (JavaScript, 92 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/ui/cartridges/202608291504-atlas-pointer-deep-link.mjs#L1-L92 - Page: https://code.globalgrid2050.com/explore-code/s/0715.html#f6 - Synopsis: A JavaScript module in the cartridges folder of PipelineNews that uses SHA-256. It builds atlas v9 deep link (`buildAtlasV9DeepLink`). - What it achieves (name): Defines `invariant` and `buildAtlasV9DeepLink`. - What it does: It calculates its inputs. Defines invariant, buildAtlasV9DeepLink. - 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 buildAtlasV9DeepLink(project)`; `invariant(condition, message)` - 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 ### Preview — Nav - File: satnav/preview/9698781539e549deaa6ecaa4a2b34610c1f9fd29/nav/app.mjs (JavaScript, 63 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/satnav/blob/ea69138ca5d5a9632233220e5cbe1cd3f1c83432/preview/9698781539e549deaa6ecaa4a2b34610c1f9fd29/nav/app.mjs#L1-L63 - Page: https://code.globalgrid2050.com/explore-code/s/0715.html#f7 - Synopsis: A JavaScript module in SatNav that sets target (`setTarget`). It sets target (`setTarget`) and is built from the stop step (`stop`). - What it achieves (name): Defines `setTarget`, `render`, `acquire` and 1 more. It responds to submit, release and visibilitychange events. - What it does: Defines el, setTarget, render, acquire, stop. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage field_execution (path word 'nav'): 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: `el(id)`; `setTarget(t)`; `render()`; `acquire()`; `stop(message='Location stopped')` - 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 2 estate files (import 2); used by 0; mentioned by 0 ### Compass - File: satnav/preview/9698781539e549deaa6ecaa4a2b34610c1f9fd29/nav/compass.mjs (JavaScript, 18 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/satnav/blob/ea69138ca5d5a9632233220e5cbe1cd3f1c83432/preview/9698781539e549deaa6ecaa4a2b34610c1f9fd29/nav/compass.mjs#L1-L18 - Page: https://code.globalgrid2050.com/explore-code/s/0715.html#f8 - Synopsis: A JavaScript module in the nav folder of SatNav that works with fix quality (`fixQuality`). It is built from the fix quality helper (`fixQuality`) and the guide step (`guide`). - What it achieves (code): Its `fixQuality` function gives location fix quality from longitude latitude accuracy timestamp fix and optional reference time ms (VEDIC: check location fix). - What it does: It calculates its inputs. Defines fixQuality, guide. - 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. - Downstream impact: Used directly by 1 file: Preview — Nav (satnav). - Signatures: `export fixQuality(fix,now=Date.now())`; `export guide(fix,target,now=Date.now())` - VEDIC: CHECK LOCATION FIX (GG2050-VEDIC-000062): SatNav · Location and navigation data. longitude_latitude_accuracy_timestamp_fix, reference_time_ms_optional -> location_fix_quality - 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 1; mentioned by 0 ### SatNav — Scope Page - File: satnav/scope/index.html (HTML, 63 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/satnav/blob/ea69138ca5d5a9632233220e5cbe1cd3f1c83432/scope/index.html#L1-L63 - Page: https://code.globalgrid2050.com/explore-code/s/0715.html#f9 - Published at: https://ventusltd.github.io/satnav/scope/ - Synopsis: A web page that draws pipeline headlines snapshot, solar, battery storage (BESS) and LiDAR terrain, and uses data from the GridAtlas, kuiper-belt and ventus-grid-engine repositories. Published at https://ventusltd.github.io/satnav/scope/. - What it achieves (comment): It sets reading (`setReading`) and is built from the safe link helper (`safeLink`) and the valid step (`valid`). UK electricity infrastructure navigation in development, with a GPS field compass test preview. It responds to click, focusin and pointerdown events. - What it does: It draws pipeline headlines snapshot, solar, battery storage (BESS) and LiDAR terrain. Defines safeLink, valid, render, setReading, load. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage field_execution (repository name 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: solar, battery storage (BESS), LiDAR terrain. - Inputs & outputs: In: data source: gridatlas data; data source: kuiper-belt data; data source: ventus-grid-engine data; data source: globalgrid2050 data; JSON file pipeline_headlines.json; JSON file pipeline_headlines.snapshot.json. Out: web page. - Downstream impact: Used directly by 3 files: Build (cosmic); SatNav Public Scope Served Workflow (satnav); SatNav Public Scope Workflow (satnav). Reached from 4 other entry points, including Cadastre 27 (cosmic); Ship (cosmic); Test Build (cosmic). It is itself an entry point, published at https://ventusltd.github.io/satnav/scope/. - Signatures: `safeLink(value)`; `valid(doc)`; `render(doc,saved)`; `setReading(on)`; `load(url)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; data source: kuiper-belt data; data source: ventus-grid-engine data; data source: globalgrid2050 data; JSON file pipeline_headlines.json; JSON file pipeline_headlines.snapshot.json]; out [web page]; crs []; voltages [] - Edges: uses 3 estate files (link 3); used by 3; mentioned by 0 ### GPU Check - File: soil/gpu_check.py (Python, 49 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/soil/blob/d26288ed03df533507739b9f218358fc7aa36a01/gpu_check.py#L1-L49 - Page: https://code.globalgrid2050.com/explore-code/s/0716.html#f1 - Synopsis: A Python module in Soil that reads sssi and provenance, using SHA-256. It is built from the classify step (`classify`) and the polygon step (`polygon`). - What it achieves (comment): Bounded double-precision GPU screening of imported conservation polygons. - What it does: It loads sssi and provenance. Defines classify, polygon. Uses libraries json, hashlib, time, pathlib, numpy. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'soil'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. README: "`gpu_check.py`: CuPy polygon membership checked against an independent CPU winding-angle calculation, plus labelled thermal-unit fixtures." - Inputs & outputs: In: GeoJSON file sssi.geojson; JSON file provenance.json. Out: JSON file checks.json. - Signatures: `classify(points,ring)`; `polygon(points,rings)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoJSON file sssi.geojson; JSON file provenance.json]; out [JSON file checks.json]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Import Environment - File: soil/import_environment.py (Python, 112 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/soil/blob/d26288ed03df533507739b9f218358fc7aa36a01/import_environment.py#L1-L112 - Page: https://code.globalgrid2050.com/explore-code/s/0716.html#f2 - Synopsis: A Python command-line tool in Soil that fetches environment sources, service, count and sssi, using EPSG:4326 and SHA-256 from arcgis.com. It is built from the fetch step (`fetch`). - What it achieves (comment): Download a bounded, provenance-preserving Natural England SSSI polygon sample. It accepts `--bbox` and `--output`. - What it does: It fetches environment sources, service, count and sssi. Defines main, fetch. Uses libraries argparse, hashlib, json, math, datetime. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'soil'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. README: "`import_environment.py`: bounded Natural England SSSI polygon import for conservation context." - Inputs & outputs: In: data source: arcgis.com; JSON file environment_sources.json; JSON file service.json; JSON file item.json; JSON file layer.json; JSON file count.json; GeoJSON file sssi.geojson; command-line arguments. Out: JSON file provenance.json. Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `main()`; `fetch(url, filename, params=None)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: arcgis.com; JSON file environment_sources.json; JSON file service.json; JSON file item.json; JSON file layer.json; JSON file count.json; GeoJSON file sssi.geojson; command-line arguments]; out [JSON file provenance.json]; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Import Soil - File: soil/import_soil.py (Python, 42 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/soil/blob/d26288ed03df533507739b9f218358fc7aa36a01/import_soil.py#L1-L42 - Page: https://code.globalgrid2050.com/explore-code/s/0716.html#f3 - Synopsis: A Python command-line tool that fetches soil sources, catalogue and provenance, using SHA-256. - What it achieves (comment): Bounded UKCEH metadata import; measurements remain explicitly pending. It accepts `--output` and `--offline`. - What it does: It fetches soil sources, catalogue and provenance. Defines main. Uses libraries argparse, datetime, hashlib, json, pathlib. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'soil'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. README: "`import_soil.py`: bounded UKCEH metadata import." - Inputs & outputs: In: JSON file soil_sources.json; command-line arguments. Out: JSON file catalogue.json; JSON file provenance.json. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file soil_sources.json; command-line arguments]; out [JSON file catalogue.json; JSON file provenance.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Test Thermal - File: soil/test_thermal.py (Python, 43 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/soil/blob/d26288ed03df533507739b9f218358fc7aa36a01/test_thermal.py#L1-L43 - Page: https://code.globalgrid2050.com/explore-code/s/0716.html#f4 - Synopsis: A test in Soil that checks Thermal. It is built from the thermal tests class (`ThermalTests`). - What it achieves (comment): Unit and provenance checks; fixture values are arithmetic scenarios, not soils. - What it does: It tests its inputs. Defines ThermalTests, test_reciprocal_units_and_round_trip, test_reject_invalid_and_overflow, test_record_preserves_evidence_and_conditioning, test_reject_wrong_quantity_and_missing_provenance. Uses libraries math, unittest. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'soil'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `class ThermalTests`; `test_reciprocal_units_and_round_trip(self)`; `test_reject_invalid_and_overflow(self)`; `test_record_preserves_evidence_and_conditioning(self)`; `test_reject_wrong_quantity_and_missing_provenance(self)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, 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 0; mentioned by 0 ### Thermal - File: soil/thermal.py (Python, 70 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/soil/blob/d26288ed03df533507739b9f218358fc7aa36a01/thermal.py#L1-L70 - Page: https://code.globalgrid2050.com/explore-code/s/0716.html#f5 - Synopsis: A Python module in Soil that works with cables. It converts record (`convert_record`) and is built from the conductivity to resistivity helper (`conductivity_to_resistivity`). - What it achieves (comment): Scalar/isotropic soil thermal-property conversion; no cable ampacity model. - What it does: It calculates cables. Defines _positive_finite, conductivity_to_resistivity, convert_record. Uses libraries copy, math, numbers. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'soil'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 2 files: GPU Check (soil); Test Thermal (soil). - Signatures: `_positive_finite(value, name)`; `conductivity_to_resistivity(values)`; `convert_record(record)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Estate Survey - File: spiders/tools/estate-survey.mjs (JavaScript, 503 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/spiders/blob/78fc0f90bd5ca73f3d5d7c0e0b7b5712cfe781e5/tools/estate-survey.mjs#L1-L503 - Page: https://code.globalgrid2050.com/explore-code/s/0716.html#f6 - Synopsis: A JavaScript module in the tools folder of Spiders that uses SHA-256 using data from GitHub API. It parses JSON (`parseJson`), validates registry (`validateRegistry`) and fetches JSON (`fetchJson`). - What it achieves (name): Defines `valueAfter`, `portable`, `sha256` and 13 more. - What it does: It fetches data. Defines 17 functions or classes, including valueAfter, portable, sha256, byteCompare, shardFor. Uses libraries node:crypto, node:fs, node:path. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage agent_infra (repository name word 'spiders'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: data source: GitHub API; command-line arguments. - Downstream impact: Used directly by 1 file: Estate Survey Workflow (spiders). - Signatures: `valueAfter(flag)`; `portable(path)`; `sha256(bytes)`; `byteCompare(left, right)`; `shardFor(owner, name, count)`; `stableWrite(path, value)`; `parseJson(path, label)`; `validateRegistry(path)`; `localReceipt(path)`; `fetchJson(url, token)`; `fixtureReader(path)`; `liveReader(owner, token, repository)`; `normaliseObservation(repository, raw)`; `surveyShard(registryPath, shardIndex, fixturePath)`; `findingRows(observation)`; `aggregate(registryPath, localPath, shardPaths)`; `main()`; `shards(valueAfter('--shards') || '')` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: GitHub API; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Estate Survey - File: spiders/tools/test-estate-survey.mjs (JavaScript, 150 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/spiders/blob/78fc0f90bd5ca73f3d5d7c0e0b7b5712cfe781e5/tools/test-estate-survey.mjs#L1-L150 - Page: https://code.globalgrid2050.com/explore-code/s/0717.html#f2 - Synopsis: A JavaScript module in the tools folder of Spiders that tests estate survey registry, fixture incomplete, local repeated and aggregate failed. - What it achieves (name): Defines `assert`, `run` and `read`. - What it does: It tests estate survey registry, fixture incomplete, local repeated and aggregate failed. Defines assert, run, read. Uses libraries 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 agent_infra (repository name word 'spiders'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: JSON file 20260904-estate-survey-registry.json; JSON file fixture.json; JSON file local.json; JSON file local-repeated.json; JSON file aggregate.json; JSON file shard-0-repeated.json; JSON file fixture-incomplete.json; JSON file shard-failed.json. - Downstream impact: Used directly by 1 file: Estate Survey Workflow (spiders). - Signatures: `assert(condition, message)`; `run(arguments_)`; `read(path)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file 20260904-estate-survey-registry.json; JSON file fixture.json; JSON file local.json; JSON file local-repeated.json; JSON file aggregate.json; JSON file shard-0-repeated.json; JSON file fixture-incomplete.json; JSON file shard-failed.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GridAtlas Build Part - File: teleprinter/drivers/gridatlas/build-part.mjs (JavaScript, 197 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/teleprinter/blob/e45bfe38c3040b0f36f7df94ce262b63db8d0b60/drivers/gridatlas/build-part.mjs#L1-L197 - Page: https://code.globalgrid2050.com/explore-code/s/0717.html#f3 - Synopsis: A JavaScript module in the drivers folder of Teleprinter that uses SHA-256. It is built from the flatten step (`flatten`) and the normalise step (`normalise`). - What it achieves (comment): Vendor the GridAtlas Teleprinter drivers into one GridAtlas cartridge part. --------------------------------------------------------------------------- GridAtlas ships an immutable shell plus hashed cartridges, and a cartridge is ONE classic script assembled from a list of parts. - What it does: It loads data. Defines flatten, normalise. Uses libraries node:fs/promises, node:crypto, node:path, 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 (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 current.json; command-line arguments. - Signatures: `flatten(name, text)`; `normalise(text)` - 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 []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GridAtlas CI - File: teleprinter/drivers/gridatlas/ci.mjs (JavaScript, 236 lines) · role automation · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/teleprinter/blob/e45bfe38c3040b0f36f7df94ce262b63db8d0b60/drivers/gridatlas/ci.mjs#L1-L236 - Page: https://code.globalgrid2050.com/explore-code/s/0718.html#f1 - Synopsis: A JavaScript module in the drivers folder of Teleprinter that uses SHA-256 using data from the npm repository. - What it achieves (comment): It is built from the record step (`record`), the parses step (`parses`) and the git step (`git`). One command, a JSON verdict, and an exit code — so the same check runs on this laptop, in a hook, or in a workflow, and gives the same answer. - What it does: It loads data. Defines record, parses, git. Uses libraries node:fs/promises, node:child_process, node:crypto, 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 (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: npm data; JSON file current.json; command-line arguments. - Signatures: `record(name, ok, detail)`; `parses(file)`; `git(args)`; `text((out.stdout || '') + (out.stderr || ''))`; `said((out.stdout || '') + (out.stderr || ''))`; `pass(text.match(/^)`; `fail(text.match(/^)`; `firstError(text.match(/(ReferenceError|TypeError|AssertionError)[^\n]*/) || [])` - 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; JSON file current.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GridAtlas Wiring - File: teleprinter/drivers/gridatlas/gridatlas-wiring.js (JavaScript, 177 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/teleprinter/blob/e45bfe38c3040b0f36f7df94ce262b63db8d0b60/drivers/gridatlas/gridatlas-wiring.js#L1-L177 - Page: https://code.globalgrid2050.com/explore-code/s/0718.html#f2 - Synopsis: A JavaScript file in the drivers folder of Teleprinter that works with status line (`statusLine`) and begin preparing (`beginPreparing`). - What it achieves (comment): It is built from the status line helper (`statusLine`), the say step (`say`) and the begin preparing helper (`beginPreparing`). WIRING: put the two functions in the File menu, and nowhere else. -------------------------------------------------------------------------- The reader already knows where printing lives -- they found it once and printed a sheet from it. It responds to click events. - What it does: It draws its content. Defines statusLine, say, beginPreparing, button, install. 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. - Signatures: `statusLine(anchor)`; `say(text)`; `beginPreparing()`; `button(label, id, onClick)`; `install()` - 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 Print PDF - File: teleprinter/drivers/gridatlas/print-pdf.js (JavaScript, 191 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/teleprinter/blob/e45bfe38c3040b0f36f7df94ce262b63db8d0b60/drivers/gridatlas/print-pdf.js#L1-L191 - Page: https://code.globalgrid2050.com/explore-code/s/0718.html#f3 - Synopsis: A JavaScript module in the drivers folder of Teleprinter that works with screen PDF (`screenPdf`). - What it achieves (comment): It is built from the bytes step (`bytes`), the join step (`join`) and the PDF string helper (`pdfString`). PRINT PDF -- one PDF unit per captured pixel, and a strip that says where it came from. --------------------------------------------------------------------------- This is the FIRST of the two Teleprinter functions and it is entirely separate from the second. Its code works with 400 kV. - What it does: It draws its content. Defines 6 functions or classes, including bytes, join, pdfString, deflate, screenPdf. 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. Domain terms in the code: 400kV. - Inputs & outputs: Voltage levels named: 400kV. - Downstream impact: Used directly by 1 file: GridAtlas Smoke Test (teleprinter). - Signatures: `export screenPdf(frame, note = {})`; `export printPdf({ capture, note = {}, filename } = {})`; `bytes(text)`; `join(parts)`; `pdfString(text)`; `deflate(data)` - 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 1 estate file (import 1); used by 1; mentioned by 0 ### GridAtlas Print Source Code - File: teleprinter/drivers/gridatlas/print-source-code.js (JavaScript, 549 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/teleprinter/blob/e45bfe38c3040b0f36f7df94ce262b63db8d0b60/drivers/gridatlas/print-source-code.js#L1-L549 - Page: https://code.globalgrid2050.com/explore-code/s/0719.html#f1 - Synopsis: A JavaScript module in the drivers folder of Teleprinter covering the Renewable Energy Planning Database (REPD) register and uses data from the npm repository. - What it achieves (comment): It reads text (`readText`), collects source code (`collectSourceCode`) and downloads text (`downloadText`). PRINT SOURCE CODE -- the entire source and its dependencies, as the browser actually has them, in one plain text file an AI can read. --------------------------------------------------------------------------- This is the SECOND Teleprinter function and it shares nothing with the first. It responds to click events. - What it does: It draws the REPD register. Defines 12 functions or classes, including textual, readText, screenState, discover, add. 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. README: "Its controls say Print, Print source code, Copy source code, and, where supported, Share source code." - Inputs & outputs: In: data source: npm data. - Downstream impact: Used directly by 1 file: GridAtlas Smoke Test (teleprinter). - Signatures: `export collectSourceCode({ appName = 'GridAtlas', inlineDom = true } = {})`; `export prepareSourceCode(options = {})`; `export deliverSourceCode(collected, { prefer, panel = true } = {})`; `export printSourceCode(options = {})`; `textual(url, type)`; `readText(url)`; `screenState()`; `text((label && label.textContent) || node.name || node.id || '')`; `discover()`; `add(url, how)`; `missing(targets.overflow || [])`; `downloadText(text, filename)`; `showTeleprintPanel(text, filename, parts)`; `button(label)` - 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 []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GridAtlas Screen Frame - File: teleprinter/drivers/gridatlas/screen-frame.js (JavaScript, 290 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/teleprinter/blob/e45bfe38c3040b0f36f7df94ce262b63db8d0b60/drivers/gridatlas/screen-frame.js#L1-L290 - Page: https://code.globalgrid2050.com/explore-code/s/0720.html#f1 - Synopsis: A JavaScript module in the drivers folder of Teleprinter that stops tracks (`stopTracks`) and draws on a canvas. - What it achieves (comment): It stops tracks (`stopTracks`) and is built from the pixels from source helper (`pixelsFromSource`) and the from display helper (`fromDisplay`). One job, and one refusal. - What it does: It draws its content. Defines stopTracks, pixelsFromSource, fromDisplay, screenFrame. 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: Out: canvas drawing; SVG drawing. - Downstream impact: Used directly by 1 file: GridAtlas Print PDF (teleprinter). - Signatures: `export screenFrame({ capture } = {})`; `stopTracks(stream)`; `pixelsFromSource(source, width, height)`; `fromDisplay()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [canvas drawing; SVG drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GridAtlas Smoke Test - File: teleprinter/drivers/gridatlas/smoke.test.mjs (JavaScript, 130 lines) · role test · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/teleprinter/blob/e45bfe38c3040b0f36f7df94ce262b63db8d0b60/drivers/gridatlas/smoke.test.mjs#L1-L130 - Page: https://code.globalgrid2050.com/explore-code/s/0720.html#f2 - Synopsis: A test in the drivers folder of Teleprinter that checks GridAtlas Print Source Code and GridAtlas Print PDF. - What it achieves (comment): It is built from the install browser helper (`installBrowser`) and the node step (`node`). On `print-source-code.js` referenced three identifiers that were never defined -- `headerLines`, `fileBlocks` and `splitIntoVolumes`, each appearing exactly ONCE in the file. - What it does: It tests its inputs. Defines installBrowser, node. Uses libraries node:test, node:assert/strict. 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. - Signatures: `installBrowser({ resources = [] } = {})`; `node(tag)`; `setAttribute()`; `appendChild(child)`; `removeChild(child)`; `focus()`; `getBoundingClientRect()` - 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 2 estate files (dynamic-import 2); used by 0; mentioned by 0 ### GridAtlas Lightning Immutable Test - File: testcode/drivers/gridatlas-lightning-immutable.test.mjs (JavaScript, 100 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/testcode/blob/a8a215982b13d6e2f6019b40bf0bef5755719773/drivers/gridatlas-lightning-immutable.test.mjs#L1-L100 - Page: https://code.globalgrid2050.com/explore-code/s/0720.html#f3 - Synopsis: A test in the drivers folder of Testcode that uses SHA-256. It is built from the file step (`file`), the JSON step (`json`) and the hash step (`hash`). - What it achieves (comment): Independent GridAtlas Lightning candidate preservation audit. - What it does: It tests its inputs. Defines file, json, hash, get. Uses libraries node:test, node:assert/strict, node:fs, node:path, node:crypto. 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 current.json; JSON file -composition.json. - Downstream impact: Used directly by 1 file: GridAtlas Lightning Independent Workflow (testcode). - Signatures: `file(p)`; `json(p)`; `hash(b)`; `get(j,id)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · 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 ### Menu Map - File: testcode/drivers/menu-map.mjs (JavaScript, 192 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/testcode/blob/a8a215982b13d6e2f6019b40bf0bef5755719773/drivers/menu-map.mjs#L1-L192 - Page: https://code.globalgrid2050.com/explore-code/s/0721.html#f1 - Synopsis: A JavaScript module in the drivers folder of Testcode that reads engines. It is built from the check step (`check`). - What it achieves (comment): Map every menu on every surface, offline. - What it does: It loads engines. Defines check. 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 experimental (repository name 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: "`drivers/menu-map.mjs` maps every menu on every surface from the composed bytes in the local clones — never the network, never a part that might not have been composed — and emits `menu-map.json`." - Inputs & outputs: In: JSON file current.json; JSON file engines.json. Out: JSON file menu-map.json. - Downstream impact: Used directly by 1 file: Testcode Workflow (testcode). - Signatures: `check(name, ok, detail = '')`; `entry(current.cartridges || [])`; `menus(composed.match(/var MENUS = \[([^\]]+)\]/)`; `expected(registry.surfaces || [])`; `gaps(registry.surfaces || [])` - domain_stage: experimental · commercial_user: none · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file current.json; JSON file engines.json]; out [JSON file menu-map.json]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Menu Bar - File: testcode/sandbox/202609052028/atlas/source/menu-bar.js (JavaScript, 1478 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/testcode/blob/a8a215982b13d6e2f6019b40bf0bef5755719773/sandbox/202609052028/atlas/source/menu-bar.js#L1-L1478 - Page: https://code.globalgrid2050.com/explore-code/s/0721.html#f2 - Synopsis: A JavaScript file in the source folder of Testcode 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 '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: 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: 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 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 ### Sandbox — Atlas Page - File: testcode/sandbox/202609060459/atlas/index.html (HTML, 108 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/testcode/blob/a8a215982b13d6e2f6019b40bf0bef5755719773/sandbox/202609060459/atlas/index.html#L1-L108 - Page: https://code.globalgrid2050.com/explore-code/s/0723.html#f2 - Synopsis: A web page in Testcode that works with escape attribute (`escapeAttribute`) and sha256 hex (`sha256Hex`), using SHA-256. - What it achieves (comment): It is built from the invariant step (`invariant`), the escape attribute helper (`escapeAttribute`) and the sha256 hex helper (`sha256Hex`). Test Code Atlas. It reads `./current.json`. - What it does: It draws its content. Defines invariant, escapeAttribute, sha256Hex, fail. 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 '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. README: "The publication checkout is sparse: `index.html` and the complete `uk_renewables_pipeline/` tree." - Inputs & outputs: In: JSON file current.json. Out: web page. - Downstream impact: It is itself an entry point (page); no other file was found loading it. - Signatures: `invariant(condition, message)`; `escapeAttribute(value)`; `sha256Hex(bytes)`; `fail(error)` - domain_stage: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/index.html) · 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 1 ### Teleprinter Bootstrap - File: testcode/sandbox/202609060503/atlas/teleprinter-bootstrap.js (JavaScript, 21 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/testcode/blob/a8a215982b13d6e2f6019b40bf0bef5755719773/sandbox/202609060503/atlas/teleprinter-bootstrap.js#L1-L21 - Page: https://code.globalgrid2050.com/explore-code/s/0723.html#f3 - Synopsis: A JavaScript module in the atlas folder of Testcode 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 '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, 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 1 estate file (import 1); used by 0; mentioned by 0 ### Atlas Composition Contract - File: testcode/sandbox/capsules/atlas-composition-contract.mjs (JavaScript, 12 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/testcode/blob/a8a215982b13d6e2f6019b40bf0bef5755719773/sandbox/capsules/atlas-composition-contract.mjs#L1-L12 - Page: https://code.globalgrid2050.com/explore-code/s/0723.html#f4 - Synopsis: A JavaScript module in the capsules folder of Testcode. It validates atlas composition (`validateAtlasComposition`). - What it achieves (comment): A composition must name every core cartridge exactly once before loading the shell. - What it does: It calculates its inputs. Defines validateAtlasComposition. - 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: Build Composition Guard (testcode). - Signatures: `export validateAtlasComposition(current)` - 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 1; mentioned by 0 ### Offshore Route Browser - File: testcode/sandbox/tools/offshore-route.browser.cjs (JavaScript, 71 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/testcode/blob/a8a215982b13d6e2f6019b40bf0bef5755719773/sandbox/tools/offshore-route.browser.cjs#L1-L71 - Page: https://code.globalgrid2050.com/explore-code/s/0723.html#f5 - Synopsis: A JavaScript module in the tools folder of Testcode. - What it achieves (name): Defines `save`. - What it does: It loads data. Defines save. Uses libraries node:fs, node:path, node:http, node:child_process, C:/Users/vikra/OneDrive/Documents/GitHub/gridatlas-main-202609050200/node_modules/playwright. 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 '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: JSON file results.json. - Downstream impact: Used directly by 1 file: Offshore Route Workflow (testcode). - Signatures: `save()` - domain_stage: experimental · commercial_user: none · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out [JSON file results.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### VEDIC Verify Reuse Routes - File: vedic-/tools/verify_reuse_routes.py (Python, 38 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/vedic-/blob/1c95ee78c2dd3f1f72c0fd5a5f6e247aaf1624e0/tools/verify_reuse_routes.py#L1-L38 - Page: https://code.globalgrid2050.com/explore-code/s/0723.html#f6 - Synopsis: A Python command-line tool in the tools folder using data from the stars and kuiper-belt repositories. It is built from the pinned step (`pinned`) and the public step (`public`). - What it achieves (comment): Read-only CI checks of the existing Modular Star and Kuiper reuse routes. - What it does: It fetches data. Defines pinned, public, main. Uses libraries hashlib, urllib.request. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage field_execution (path word 'routes'): 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: data source: stars data; data source: kuiper-belt data. - Downstream impact: Used directly by 1 file: VEDIC Anatomy Workflow (vedic-). - Signatures: `pinned(record)`; `public(url)`; `main()` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner, ai_agent · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: stars data; data source: kuiper-belt data]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 1, estate-url 1); used by 1; mentioned by 0 ### Geo Area - File: ventus-grid-engine/engine/geo-area.js (JavaScript, 100 lines) · role geodesy · stage transform · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/geo-area.js#L1-L100 - Page: https://code.globalgrid2050.com/explore-code/s/0723.html#f7 - Synopsis: A JavaScript module in Ventus Grid Engine that works with polygon area km2 (`polygonAreaKm2`) and polyline perimeter km (`polylinePerimeterKm`), using haversine. - What it achieves (comment): It is built from the conversions step (`conversions`), the polygon area km2 helper (`polygonAreaKm2`) and the polyline perimeter km helper (`polylinePerimeterKm`). Polygon area, perimeter, and spherical-cap area. - What it does: It calculates its inputs. Defines conversions, polygonAreaKm2, polylinePerimeterKm, circleCapAreaKm2. - 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 5 files: Grid Engine — Solar Farm Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060318-solar-farm/); Geodesy Proof (ventus-grid-engine); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Grid Engine — Site Geometry Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060238-site-geometry/); and 1 more. Reached from 4 other entry points, including 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). - Signatures: `export polygonAreaKm2(pts, radiusKm = EARTH_RADIUS_KM)`; `export polylinePerimeterKm(pts, closed = false, radiusKm = EARTH_RADIUS_KM)`; `export circleCapAreaKm2(km, radiusKm = EARTH_RADIUS_KM)`; `conversions(areaKm2, perimKm)`; `j(i + 1)` - VEDIC: AREA (GG2050-VEDIC-000017): Ventus Grid Engine / Geometry · Mathematics / Spherical geometry. ordered_points, radius_km -> area_record - VEDIC: LENGTH (GG2050-VEDIC-000018): Ventus Grid Engine / Geometry · Mathematics / Spherical geometry. ordered_points, closed, radius_km -> length_km - VEDIC: AREA (GG2050-VEDIC-000019): Ventus Grid Engine / Geometry · Mathematics / Spherical geometry. geodesic_radius_km, earth_radius_km -> area_record - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 5; mentioned by 0 ### Geo Core - File: ventus-grid-engine/engine/geo-core.js (JavaScript, 95 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/geo-core.js#L1-L95 - Page: https://code.globalgrid2050.com/explore-code/s/0724.html#f1 - Synopsis: A JavaScript module in Ventus Grid Engine that works with haversine UK (`haversineUK`) and calculates great-circle distances and angles. - What it achieves (comment): It is built from the haversine step (`haversine`) and the haversine UK helper (`haversineUK`). The one distance primitive, and the earth model it stands on. - What it does: It calculates its inputs. Defines haversine, haversineUK. - 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: Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 6 files: Geo Area (ventus-grid-engine); Geo Shapes (ventus-grid-engine); Geodesy Proof (ventus-grid-engine); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); and 2 more. Reached from 7 other entry points, including Grid Engine — Site Geometry Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060238-site-geometry/); Grid Engine — Solar Farm Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060318-solar-farm/); Homepage V090 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v090.html). - Signatures: `export haversine(lon1, lat1, lon2, lat2, radiusKm = EARTH_RADIUS_KM)`; `export haversineUK(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 6; mentioned by 0 ### Geo GeoJSON - File: ventus-grid-engine/engine/geo-geojson.js (JavaScript, 27 lines) · role geodesy · stage transform · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/geo-geojson.js#L1-L27 - Page: https://code.globalgrid2050.com/explore-code/s/0724.html#f2 - Synopsis: A JavaScript module in Ventus Grid Engine that works with circle feature collection (`circleFeatureCollection`). It is built from the circle feature collection helper (`circleFeatureCollection`). - What it achieves (comment): GeoJSON shaping, kept out of the maths modules. - What it does: It calculates its inputs. Defines circleFeatureCollection. - 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 3 files: Geodesy Proof (ventus-grid-engine); 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: `export circleFeatureCollection(lon, lat, radiusKm)` - VEDIC: DRAW GEODESIC CIRCLE (GG2050-VEDIC-000075): Ventus Grid Engine · Geospatial and terrain intelligence. lon, lat, radiusKm -> GeoJSON FeatureCollection containing one polygon. - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 3; mentioned by 0 ### Geo Shapes - File: ventus-grid-engine/engine/geo-shapes.js (JavaScript, 46 lines) · role geodesy · stage transform · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/geo-shapes.js#L1-L46 - Page: https://code.globalgrid2050.com/explore-code/s/0724.html#f3 - Synopsis: A JavaScript module in Ventus Grid Engine that works with destination circle points (`destinationCirclePoints`) and circle vertex count (`circleVertexCount`) and calculates great-circle distances and angles. - What it achieves (comment): It is built from the destination circle points helper (`destinationCirclePoints`) and the circle vertex count helper (`circleVertexCount`). Walking a circle of points around a centre on the sphere. - What it does: It calculates its inputs. Defines destinationCirclePoints, circleVertexCount. - 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: Geo GeoJSON (ventus-grid-engine); Geodesy Proof (ventus-grid-engine); 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: `export destinationCirclePoints(lon, lat, radiusKm, n, earthRadiusKm = EARTH_RADIUS_KM)`; `export circleVertexCount(radiusKm)`; `b(i / n)` - VEDIC: TRACE GEODESIC CIRCLE (GG2050-VEDIC-000103): Ventus Grid Engine / Geometry · Mathematics / Spherical geometry. lon, lat, radiusKm, n, earthRadiusKm -> Open ring of n [lon, lat] degree pairs evenly spaced in bearing around the centre. - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 4; mentioned by 0 ### Route Obstacles - File: ventus-grid-engine/engine/route-obstacles.js (JavaScript, 262 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/route-obstacles.js#L1-L262 - Page: https://code.globalgrid2050.com/explore-code/s/0724.html#f4 - Synopsis: A JavaScript module in Ventus Grid Engine that works with motorways, cables and A roads, using haversine. - What it achieves (comment): It routes estimate (`routeEstimate`) and is built from the positive step (`positive`) and the crossing length m helper (`crossingLengthM`). What actually gets in the way of a cable route, and what each obstacle costs in length and in method. - What it does: It calculates motorways, cables and A roads. Defines positive, crossingLengthM, crossingSchedule, routeEstimate. - 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, cables, A roads. - Downstream impact: Used directly by 3 files: Grid Engine — Route Obstacles Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060213-route-obstacles/); Route Obstacles Proof (ventus-grid-engine); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/). Reached from 4 other entry points, including 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). - Signatures: `export crossingLengthM({ widthM, setbackM, depthM = 0 })`; `export crossingSchedule({ crossings })`; `export routeEstimate({ straightLineKm, crossings = [], corridorFactor })`; `positive(name, v)` - 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 3; mentioned by 0 ### V9 Geodesy - File: ventus-grid-engine/engine/v9-geodesy.js (JavaScript, 141 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/v9-geodesy.js#L1-L141 - Page: https://code.globalgrid2050.com/explore-code/s/0724.html#f5 - Synopsis: A JavaScript module in Ventus Grid Engine 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`). Extracted verbatim (formula and constant unchanged) from `gridatlas/atlas/modules/202609011950-geodesy.js`. 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 (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: substations, 750kV. README: "`v9-geodesy.distanceKm` and the V8 `haversine` are bit-identical on every reference leg, and the proof asserts that exactly rather than to a tolerance." - Inputs & outputs: Voltage levels named: 750kV. - Downstream impact: Used directly by 7 files: Grid Engine — Solar Farm Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060318-solar-farm/); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Browser Observer Proof (ventus-grid-engine); V9 Engine Proof (ventus-grid-engine); and 3 more. Reached from 4 other entry points, including 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). - Signatures: `export distanceKm(lon1, lat1, lon2, lat2)`; `export representativePoint(geometry)`; `export voltagesKv(properties)`; `export destinationPoint(lon, lat, km, bearingDeg)`; `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: 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 7; mentioned by 0 ### Geodesy Proof - File: ventus-grid-engine/proofs/geodesy.proof.mjs (JavaScript, 201 lines) · role geodesy · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/geodesy.proof.mjs#L1-L201 - Page: https://code.globalgrid2050.com/explore-code/s/0725.html#f1 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine that uses haversine. It is built from the check step (`check`) and the near step (`near`). - What it achieves (comment): The maths this repo isolated must keep answering the same numbers, and must keep disagreeing where it is right to disagree. - What it does: Defines check, near. Side effects: 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. - Signatures: `check(name, condition)`; `near(a, b, tol)` - 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 4 estate files (import 4); used by 0; mentioned by 0 ### Route Obstacles Proof - File: ventus-grid-engine/proofs/route-obstacles.proof.mjs (JavaScript, 178 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/route-obstacles.proof.mjs#L1-L178 - Page: https://code.globalgrid2050.com/explore-code/s/0725.html#f2 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine that calculates planar distances, covering motorways. - What it achieves (comment): It is built from the check step (`check`), the near step (`near`) and the throws step (`throws`). The check a scalar corridor function could not make. - What it does: It lists and searches motorways. Defines check, near, throws. Side effects: starts processes. - 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. - Signatures: `check(n, c)`; `near(a, b, tol)`; `throws(fn, p)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: duplicate_candidate (duplicate of ventus-grid-engine/proofs/electrification-model.proof.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Atlas Pointer Deep Link - File: ventus-grid-engine/sources/deeplink-extracts/emitter/atlas-pointer-deep-link.mjs (JavaScript, 261 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/emitter/atlas-pointer-deep-link.mjs#L1-L261 - Page: https://code.globalgrid2050.com/explore-code/s/0725.html#f3 - Synopsis: A JavaScript module in the emitter folder of Ventus Grid Engine that works with solar and uses data from the GridAtlas repository. - What it achieves (comment): It builds atlas v9 deep link (`buildAtlasV9DeepLink`) and is built from the invariant step (`invariant`) and the finite in range helper (`finiteInRange`). `head_sha` (PipelineNews): lines: 1-249 (whole file) NOTE: this is the file `app.mjs` actually imports (import line 1 of `app.mjs`). - What it does: It calculates solar. Defines invariant, finiteInRange, buildAtlasV9DeepLink, selfTest, add. - 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: JSON file live-set.json. - Signatures: `export buildAtlasV9DeepLink(project)`; `export selfTest()`; `invariant(condition, message)`; `finiteInRange(value, limit)`; `add(name, ok, detail)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of pipelinenews/releases/202608312018-pipelinenews/assets/202608312018-atlas-pointer-deep-link.mjs) · essay_status: readme_derived - data_contracts: in [JSON file live-set.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (estate-url 2); used by 0; mentioned by 1 ### Atlas Lattice - File: worlds-/src/atlas_lattice.py (Python, 237 lines) · role other · stage unknown · entry point - Source: https://github.com/Ventusltd/worlds-/blob/83817c34790800d4af5057629121d83d0d67a332/src/atlas_lattice.py#L1-L237 - Page: https://code.globalgrid2050.com/explore-code/s/0726.html#f1 - Synopsis: A Python command-line tool in Worlds that builds axes (`build_axes`) (units: kV, kVA). - What it achieves (comment): It is built from the stations step (`stations`), the kernel src helper (`kernel_src`) and the reference step (`reference`). The lattice over the atlas that is already there. It accepts `--run` and `--cap`. - What it does: It lists and searches its content. Defines stations, build_axes, kernel_src, reference, main. Uses libraries argparse, io, json, os, re. Side effects: starts processes. - 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 atlas-lattice.json; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `stations()`; `build_axes(n_stations)`; `kernel_src(rad)`; `reference(idx, rad)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file atlas-lattice.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Atlas V8 Fixes - File: youengineer-code-review/civilisation-atlas-v8/atlas-v8-fixes.css (CSS, 138 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/youengineer-code-review/blob/929a6d4a955524122e4fd18bd3c85ceaf1a86c56/civilisation-atlas-v8/atlas-v8-fixes.css#L1-L138 - Page: https://code.globalgrid2050.com/explore-code/s/0726.html#f2 - Published at: https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/ - Synopsis: A style sheet in Youengineer Code Review. Served with the page at https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/. - 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: Youengineer Code Review — Civilisation Atlas V8 Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/). Reached from 2 other entry points, including Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html); Youengineer Code Review — Index Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/. - 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 0 estate files; used by 1; mentioned by 0 ### Atlas V8 Polish - File: youengineer-code-review/civilisation-atlas-v8/atlas-v8-polish.js (JavaScript, 186 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/youengineer-code-review/blob/929a6d4a955524122e4fd18bd3c85ceaf1a86c56/civilisation-atlas-v8/atlas-v8-polish.js#L1-L186 - Page: https://code.globalgrid2050.com/explore-code/s/0726.html#f3 - Published at: https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/ - Synopsis: A JavaScript file in Youengineer Code Review that sets changed (`setTextIfChanged`), gets popup field (`getPopupField`) and builds knowledge query (`buildKnowledgeQuery`). Served with the page at https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/. - What it achieves (name): It sets text if changed (`setTextIfChanged`), gets popup field (`getPopupField`) and builds knowledge query (`buildKnowledgeQuery`). Defines `setTextIfChanged`, `polishViewLabel`, `isSatelliteActive` and 9 more. It responds to change, click and DOMContentLoaded events. - What it does: It draws its content. Defines 12 functions or classes, including setTextIfChanged, polishViewLabel, isSatelliteActive, polishSatelliteButton, polishLayerStatuses. 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: Youengineer Code Review — Civilisation Atlas V8 Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/). Reached from 2 other entry points, including Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html); Youengineer Code Review — Index Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/. - Signatures: `setTextIfChanged(element, value)`; `polishViewLabel()`; `isSatelliteActive()`; `polishSatelliteButton()`; `polishLayerStatuses()`; `getPopupField(content, fieldName)`; `buildKnowledgeQuery(content)`; `addKnowledgeButtonsToPopup(content)`; `polishPopups()`; `addBasemapControls(containerId)`; `syncBasemapRadios()`; `startAtlasPolish()` - 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 0 estate files; used by 1; mentioned by 0 ### Youengineer Code Review — Civilisation Atlas V8 Page - File: youengineer-code-review/civilisation-atlas-v8/index.html (HTML, 47 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/youengineer-code-review/blob/929a6d4a955524122e4fd18bd3c85ceaf1a86c56/civilisation-atlas-v8/index.html#L1-L47 - Page: https://code.globalgrid2050.com/explore-code/s/0726.html#f4 - Published at: https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/ - Synopsis: A web page that draws ancient greek sites, roman world, ancient egypt and mesopotamia persia. Published at https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/. - What it achieves (readme): The README says: Download or clone the repo, then open `index.html` or `civilisation-atlas-v8/index.html` in a browser. - What it does: It draws ancient greek sites, roman world, ancient egypt and mesopotamia persia. 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. README: "Download or clone the repo, then open `index.html` or `civilisation-atlas-v8/index.html` in a browser." - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 1 file: Youengineer Code Review — Index Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/). Reached from 1 other entry point, including Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 4 estate files (stylesheet 2, script-src 2); used by 1; mentioned by 0 ### Ventus Corev8engine - File: youengineer-code-review/civilisation-atlas-v8/ventus-corev8engine.js (JavaScript, 392 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/youengineer-code-review/blob/929a6d4a955524122e4fd18bd3c85ceaf1a86c56/civilisation-atlas-v8/ventus-corev8engine.js#L1-L392 - Page: https://code.globalgrid2050.com/explore-code/s/0727.html#f1 - Published at: https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/ - Synopsis: A JavaScript file in Youengineer Code Review that maps civilisation atlas visible layers and satellite. Served with the page at https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/. - What it achieves (name): It gets name (`getName`), gets summary (`getSummary`) and updates clock (`updateClock`). Defines `escapeHTML`, `getName`, `getSummary` and 19 more. It responds to change, click and keydown events. - What it does: It maps civilisation atlas visible layers and satellite. Defines 22 functions or classes, including escapeHTML, getName, getSummary, updateClock, sourceId. 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: JSON file style.json. Out: CSV file civilisation_atlas_visible_layers.csv; downloaded file civilisation_atlas_visible_layers.csv; interactive map. - Downstream impact: Used directly by 1 file: Youengineer Code Review — Civilisation Atlas V8 Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/). Reached from 2 other entry points, including Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html); Youengineer Code Review — Index Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/. - Signatures: `escapeHTML(value)`; `getName(properties)`; `getSummary(properties)`; `updateClock()`; `sourceId(layerId)`; `layerId(layerId)`; `addSatelliteLayer()`; `setSatelliteMode(active)`; `toggleSatelliteMode()`; `buildPointPaint(layer)`; `addLayerToMap(layer, data)`; `ensureLayerLoaded(layer)`; `setLayerVisibility(layerIdValue, visible)`; `updateLayerStatus(layerIdValue, text)`; `renderLayerControls(containerId)`; `getVisibleFeatures()`; `popupCoordinates(feature)`; `openFeaturePopup(feature, layer)`; `runSearch()`; `exportVisibleCSV()`; `clearLayers()`; `resetView()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file style.json]; out [CSV file civilisation_atlas_visible_layers.csv; downloaded file civilisation_atlas_visible_layers.csv; interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Ventus v8 - File: youengineer-code-review/civilisation-atlas-v8/ventusv8.css (CSS, 67 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/youengineer-code-review/blob/929a6d4a955524122e4fd18bd3c85ceaf1a86c56/civilisation-atlas-v8/ventusv8.css#L1-L67 - Page: https://code.globalgrid2050.com/explore-code/s/0727.html#f2 - Published at: https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/ - Synopsis: A style sheet in Youengineer Code Review. Served with the page at https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/. - 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: Youengineer Code Review — Civilisation Atlas V8 Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/). Reached from 2 other entry points, including Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html); Youengineer Code Review — Index Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/civilisation-atlas-v8/. - 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 0 estate files; used by 1; mentioned by 0 ### Atlas Helpers - File: youengineer-code-review/civilisation-atlas/atlas-helpers.js (JavaScript, 38 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/youengineer-code-review/blob/929a6d4a955524122e4fd18bd3c85ceaf1a86c56/civilisation-atlas/atlas-helpers.js#L1-L38 - Page: https://code.globalgrid2050.com/explore-code/s/0727.html#f3 - Synopsis: A JavaScript file in the civilisation atlas folder of Youengineer Code Review that formats coordinates (`formatCoordinates`), makes SVG element (`makeSvgElement`) and draws SVG graphics. - What it achieves (name): It formats coordinates (`formatCoordinates`) and makes SVG element (`makeSvgElement`). Defines `normalise`, `uniqueSorted`, `lonLatToPoint` and 3 more. - What it does: It lists and searches its content. Defines 7 functions or classes, including $, normalise, uniqueSorted, lonLatToPoint, formatCoordinates. 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: SVG drawing. - Signatures: `$(id)`; `normalise(value)`; `uniqueSorted(values)`; `lonLatToPoint(coordinates)`; `x((lon + 180) / 360)`; `y((90 - lat) / 180)`; `formatCoordinates(coordinates)`; `featureText(feature)`; `makeSvgElement(tagName, attributes = {})` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · 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 ### Atlas Map - File: youengineer-code-review/civilisation-atlas/atlas-map.js (JavaScript, 164 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/youengineer-code-review/blob/929a6d4a955524122e4fd18bd3c85ceaf1a86c56/civilisation-atlas/atlas-map.js#L1-L164 - Page: https://code.globalgrid2050.com/explore-code/s/0727.html#f4 - Synopsis: A JavaScript file in the civilisation atlas folder of Youengineer Code Review that draws graticule (`drawGraticule`) and land hints (`drawLandHints`) and draws routes (`drawRoutes`). - What it achieves (name): It draws graticule (`drawGraticule`), draws land hints (`drawLandHints`) and draws routes (`drawRoutes`). Defines `drawGraticule`, `drawLandHints`, `drawRoutes` and 5 more. It responds to click and keydown events. - What it does: It draws its content. Defines 8 functions or classes, including drawGraticule, drawLandHints, drawRoutes, getMarkerClass, drawSites. 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: `drawGraticule()`; `drawLandHints()`; `drawRoutes()`; `getMarkerClass(feature)`; `drawSites()`; `drawLegend()`; `renderMap()`; `initialiseMap()` - 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 ### Atlas State - File: youengineer-code-review/civilisation-atlas/atlas-state.js (JavaScript, 15 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/youengineer-code-review/blob/929a6d4a955524122e4fd18bd3c85ceaf1a86c56/civilisation-atlas/atlas-state.js#L1-L15 - Page: https://code.globalgrid2050.com/explore-code/s/0727.html#f5 - Synopsis: A JavaScript file in the civilisation atlas folder of Youengineer Code Review. - 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. - 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 ### Atlas UI - File: youengineer-code-review/civilisation-atlas/atlas-ui.js (JavaScript, 176 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/youengineer-code-review/blob/929a6d4a955524122e4fd18bd3c85ceaf1a86c56/civilisation-atlas/atlas-ui.js#L1-L176 - Page: https://code.globalgrid2050.com/explore-code/s/0728.html#f1 - Synopsis: A JavaScript file in the civilisation atlas folder of Youengineer Code Review that gets features (`getAllFeatures`), applies filters (`applyFilters`) and updates count (`updateCount`). - What it achieves (name): It gets features (`getAllFeatures`), applies filters (`applyFilters`) and updates count (`updateCount`). Defines `getAllFeatures`, `populateSelect`, `populateFilters` and 10 more. It responds to input, change and click events. - What it does: It draws its content. Defines 13 functions or classes, including getAllFeatures, populateSelect, populateFilters, featurePassesLayerFilter, applyFilters. 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: `getAllFeatures()`; `populateSelect(selectElement, values, allLabel)`; `populateFilters()`; `featurePassesLayerFilter(feature)`; `applyFilters()`; `updateCount()`; `renderSelectedFeature()`; `refreshAtlas()`; `selectFeature(featureId)`; `selectRandomFeature()`; `resetFilters()`; `wireControls()`; `bootAtlas()` - 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 ### Civilisation Map Data - File: youengineer-code-review/civilisation-map-data.js (JavaScript, 103 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/youengineer-code-review/blob/929a6d4a955524122e4fd18bd3c85ceaf1a86c56/civilisation-map-data.js#L1-L103 - Page: https://code.globalgrid2050.com/explore-code/s/0728.html#f2 - Published at: https://ventusltd.github.io/youengineer-code-review/ - Synopsis: A JavaScript file in Youengineer Code Review that builds civilisation feature (`buildCivilisationFeature`). Served with the page at https://ventusltd.github.io/youengineer-code-review/. It builds civilisation feature (`buildCivilisationFeature`). - What it achieves (name): Defines `buildCivilisationFeature`. - What it does: Defines buildCivilisationFeature. 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 1 file: Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/. - Signatures: `buildCivilisationFeature(site)` - domain_stage: site_feasibility · commercial_user: IPP_developer, 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 ### Civilisation Map - File: youengineer-code-review/civilisation-map.css (CSS, 458 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/youengineer-code-review/blob/929a6d4a955524122e4fd18bd3c85ceaf1a86c56/civilisation-map.css#L1-L458 - Page: https://code.globalgrid2050.com/explore-code/s/0728.html#f3 - Published at: https://ventusltd.github.io/youengineer-code-review/ - Synopsis: A style sheet in Youengineer Code Review. Served with the page at https://ventusltd.github.io/youengineer-code-review/. - 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 1 file: Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/. - domain_stage: site_feasibility · commercial_user: IPP_developer, 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 ### Civilisation Map - File: youengineer-code-review/civilisation-map.html (HTML, 107 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/youengineer-code-review/blob/929a6d4a955524122e4fd18bd3c85ceaf1a86c56/civilisation-map.html#L1-L107 - Page: https://code.globalgrid2050.com/explore-code/s/0729.html#f2 - Published at: https://ventusltd.github.io/youengineer-code-review/civilisation-map.html - Synopsis: A web page in Youengineer Code Review that draws SVG graphics and reads inputs for site and unesco only. Published at https://ventusltd.github.io/youengineer-code-review/civilisation-map.html. - What it does: It draws its content. 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. - Inputs & outputs: In: form fields (user input). Out: web page; SVG drawing. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/civilisation-map.html. - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 4 estate files (script-src 2, stylesheet 1, link 1); used by 0; mentioned by 0 ### Civilisation Map - File: youengineer-code-review/civilisation-map.js (JavaScript, 392 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/youengineer-code-review/blob/929a6d4a955524122e4fd18bd3c85ceaf1a86c56/civilisation-map.js#L1-L392 - Page: https://code.globalgrid2050.com/explore-code/s/0729.html#f3 - Published at: https://ventusltd.github.io/youengineer-code-review/ - Synopsis: A JavaScript file in Youengineer Code Review that projects lon lat, creates SVG element, gets layer config and calculates great-circle distances and angles. Served with the page at https://ventusltd.github.io/youengineer-code-review/. - What it achieves (name): It creates SVG element (`createSvgElement`), gets layer config (`getLayerConfig`) and gets feature text (`getFeatureText`). Defines `escapeHTML`, `projectLonLat`, `haversineKm` and 19 more. It responds to change, click and keydown events. - What it does: It draws its content. Defines 22 functions or classes, including escapeHTML, projectLonLat, haversineKm, createSvgElement, getLayerConfig. 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 1 file: Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/. - Signatures: `escapeHTML(value)`; `projectLonLat(lon, lat)`; `x((lon + 180) / 360)`; `y((90 - lat) / 180)`; `haversineKm(a, b)`; `createSvgElement(tag, attributes = {})`; `getLayerConfig(layerId)`; `getFeatureText(feature)`; `getVisibleFeatures()`; `drawGraticule()`; `drawSimpleContinents()`; `buildLayerControls()`; `renderMarkers(features)`; `renderSiteList(features)`; `renderInfoPanel(features)`; `getNearestFeature(selected)`; `selectFeature(id, zoomToFeature = false)`; `setViewForFeatures(features, padding = 55)`; `setRegion(region)`; `updateStats(features)`; `renderAtlas()`; `chooseRandomSite()`; `resetMap()`; `initAtlas()` - domain_stage: site_feasibility · commercial_user: IPP_developer, 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