# Ventus Grid Engine (ventus-grid-engine) — core production engine — 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. Repository page: https://code.globalgrid2050.com/explore-code/repos/ventus-grid-engine.html. Licence: Apache-2.0. Commit ad566356a44e006682e956483d569f31ddbb9630. 82 files. Summary (draft awaiting owner approval): Ventus Grid Engine is the calculation library for GlobalGrid2050's grid tools, taken out of GridAtlas and Pipeline News, which had each grown their own copies. It holds the distance, area and nearest-substation mathematics and the deep-link contract between the two applications, once each and checked by proofs. Its home page is published at https://ventusltd.github.io/ventus-grid-engine/. Live pages: Build Graph https://ventusltd.github.io/ventus-grid-engine/genome/; Spider Sandbox https://ventusltd.github.io/ventus-grid-engine/spider-sandbox.html; Ventus Grid Engine — Genome Page https://ventusltd.github.io/ventus-grid-engine/genome/; Index Composer https://ventusltd.github.io/ventus-grid-engine/sources/deeplink-extracts/receiver/index-composer.html Order below: live entry pages, other entry points, most-used files; tests and CI last. ### Build Graph - File: ventus-grid-engine/genome/build-graph.mjs (JavaScript, 405 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/genome/build-graph.mjs#L1-L405 - Page: https://code.globalgrid2050.com/explore-code/s/1871.html#f1 - Published at: https://ventusltd.github.io/ventus-grid-engine/genome/ - Synopsis: A JavaScript module in the genome folder of Ventus Grid Engine covering maths provenance, engine graph and battery storage (BESS), using haversine and SHA-256. Served with the page at https://ventusltd.github.io/ventus-grid-engine/genome/. - What it achieves (comment): Generates `genome/engine-graph.json` from a named node/edge list, so edges are written by name (not by hand-counted array index) and a transcription error becomes a ReferenceError instead of a wrong edge. Its code works with 10.3 GW, 14 GW and 156 kVA. - What it does: Uses libraries node:fs, node:url, node:path. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain terms in the code: battery storage (BESS), substations. - Inputs & outputs: In: JSON file v9-maths-provenance.json. Out: JSON file engine-graph.json. - Downstream impact: Used directly by 1 file: Genome Workflow (ventus-grid-engine). It is itself an entry point, published at https://ventusltd.github.io/ventus-grid-engine/genome/. - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file v9-maths-provenance.json]; out [JSON file engine-graph.json]; crs []; voltages [] - Edges: uses 40 estate files (estate-url 40); used by 1; mentioned by 0 ### Spider Sandbox - File: ventus-grid-engine/spider-sandbox.html (HTML, 296 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/spider-sandbox.html#L1-L296 - Page: https://code.globalgrid2050.com/explore-code/s/1682.html#f1 - Published at: https://ventusltd.github.io/ventus-grid-engine/spider-sandbox.html - Synopsis: A web page in Ventus Grid Engine that draws engine graph and uses data from Elexon Balancing Mechanism Reporting Service (BMRS) and the spiders and data-federation-map-for-GlobalGrid2050-all-repos repositories. Published at https://ventusltd.github.io/ventus-grid-engine/spider-sandbox.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 engine graph and solar. Defines 19 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: spiders data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: Elexon BMRS; JSON file nodes.json; JSON file edges.json; JSON file engine-graph.json; DuckDB queries; form fields (user input). Out: web page; SVG drawing. - Downstream impact: Used directly by 1 file: Dashboard (ventus-grid-engine). It is itself an entry point, published at https://ventusltd.github.io/ventus-grid-engine/spider-sandbox.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()`; `placeholderScope(title,path)`; `resolveRef(ids,r)` (and 4 more) - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: spiders data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: Elexon BMRS; JSON file nodes.json; JSON file edges.json; JSON file engine-graph.json; DuckDB queries; form fields (user input)]; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 3 estate files (stylesheet 1, script-src 1, estate-url 1); used by 1; mentioned by 0 ### Ventus Grid Engine — Genome Page - File: ventus-grid-engine/genome/index.html (HTML, 412 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/genome/index.html#L1-L412 - Page: https://code.globalgrid2050.com/explore-code/s/2020.html#f3 - Published at: https://ventusltd.github.io/ventus-grid-engine/genome/ - Synopsis: A web page that draws maths provenance, engine graph, battery storage (BESS) and solar, using haversine and SHA-256. Published at https://ventusltd.github.io/ventus-grid-engine/genome/. - What it achieves (name): It rebuilds select (`rebuildSelect`), opens URL (`openUrl`) and sets hint (`setHint`). Defines `rebuildSelect`, `actionable`, `openUrl` and 17 more. Its code works with 211.2 MW and 52.8 MW. It reads `./engine-graph.json`. It responds to change and click events. - What it does: It draws maths provenance, engine graph, battery storage (BESS) and solar. Defines 20 functions or classes, including rebuildSelect, actionable, openUrl, handleTap, neighbours. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain terms in the code: battery storage (BESS), solar. - Inputs & outputs: In: JSON file engine-graph.json; form fields (user input). Out: web page; SVG drawing. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/ventus-grid-engine/genome/. - Signatures: `rebuildSelect()`; `actionable(n)`; `openUrl(u)`; `handleTap(i)`; `neighbours(idx)`; `evidenceHTML(evidence)`; `cardInner(node, opts)`; `goLabel(n)`; `setHint()`; `setCrumbs()`; `draw()`; `drawColumn(focus, out, inc)`; `section(title, items, dir)`; `marker(defs, type)`; `distribute(items, side, cx, cy, gap, xGap)`; `stagger(n > 5 && k % 2 ? 90 : 0)`; `drawSpider(focus, out, inc)`; `enableDragPan(el)`; `buildFixedLegend()`; `loadEmbedded()`; `loadLive()` - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file engine-graph.json; form fields (user input)]; out [web page; SVG drawing]; crs []; voltages [] - Edges: uses 31 estate files (estate-url 31); used by 0; mentioned by 0 ### Index Composer - File: ventus-grid-engine/sources/deeplink-extracts/receiver/index-composer.html (HTML, 119 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/receiver/index-composer.html#L1-L119 - Page: https://code.globalgrid2050.com/explore-code/s/2021.html#f4 - Published at: https://ventusltd.github.io/ventus-grid-engine/sources/deeplink-extracts/receiver/index-composer.html - Synopsis: A web page in the receiver folder of Ventus Grid Engine that uses SHA-256 using data from the GridAtlas repository. Published at https://ventusltd.github.io/ventus-grid-engine/sources/deeplink-extracts/receiver/index-composer.html. - What it achieves (comment): It is built from the invariant step (`invariant`), the escape attribute helper (`escapeAttribute`) and the sha256 hex helper (`sha256Hex`). `head_sha` (GridAtlas): lines: 1-104 (whole file). 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. - Inputs & outputs: In: data source: gridatlas data; JSON file current.json. Out: web page. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/ventus-grid-engine/sources/deeplink-extracts/receiver/index-composer.html. - Signatures: `invariant(condition, message)`; `escapeAttribute(value)`; `sha256Hex(bytes)`; `fail(error)` - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; JSON file current.json]; out [web page]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; 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 ### 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 ### Contract - File: ventus-grid-engine/deeplink/contract.js (JavaScript, 249 lines) · role ingest · stage transform · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/deeplink/contract.js#L1-L249 - Page: https://code.globalgrid2050.com/explore-code/s/2015.html#f8 - Synopsis: A JavaScript module in the deeplink folder of Ventus Grid Engine covering the Renewable Energy Planning Database (REPD) register, wind and solar, and uses data from the GridAtlas repository. - What it achieves (comment): It audits project rows (`auditProjectRows`), builds deep link (`buildDeepLink`) and parses deep link (`parseDeepLink`). The MAP-button deep link, as one testable thing. - What it does: It lists and searches the REPD register, wind, solar and battery storage (BESS). Defines 9 functions or classes, including layerIdForBucket, bucketHasLayer, isRetiredReceiver, strip, auditProjectRows. - Why it exists in the grid workflow: Domain terms in the code: the REPD register, wind, solar, battery storage (BESS). - Downstream impact: Used directly by 5 files: Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Deeplink Receiver Proof (ventus-grid-engine); Deeplink Proof (ventus-grid-engine); Audit Receivers (ventus-grid-engine); and 1 more. Reached from 2 other entry points, including Deeplink Receiver Audit Workflow (ventus-grid-engine); Genome Workflow (ventus-grid-engine). - Signatures: `export layerIdForBucket(tech)`; `export bucketHasLayer(tech)`; `export isRetiredReceiver(base)`; `export auditProjectRows(rows, options)`; `export buildDeepLink(base, project)`; `export parseDeepLink(href)`; `strip(value)`; `get(k)`; `num(k)` - VEDIC: AUDIT PROJECT MAP LINKS (GG2050-VEDIC-000088): Ventus Grid Engine · Map integration. rows, options -> Per-row link evidence and aggregate counts. - VEDIC: BUILD PROJECT MAP LINK (GG2050-VEDIC-000086): Ventus Grid Engine · Map integration. base, project -> URL string with supported project query parameters. - VEDIC: PARSE PROJECT MAP LINK (GG2050-VEDIC-000087): Ventus Grid Engine · Map integration. href -> Parsed project and layer fields. - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (estate-url 2); used by 5; mentioned by 0 ### Corridor Estimate - File: ventus-grid-engine/engine/corridor-estimate.js (JavaScript, 84 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/corridor-estimate.js#L1-L84 - Page: https://code.globalgrid2050.com/explore-code/s/2016.html#f4 - Synopsis: A JavaScript module in Ventus Grid Engine covering cables and overhead lines (OHL), using haversine. It is built from the for cable helper (`forCable`). - What it achieves (comment): PROMOTED from `sources/v9-extracts/corridor-estimate.mjs` (itself extracted verbatim from `gridatlas/atlas/modules/202609030205-corridor-estimate.js`). - 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 5 files: Route Obstacles Proof (ventus-grid-engine); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Corridor Estimate Proof (ventus-grid-engine); Grid Engine — Corridor Estimate Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060237-corridor-estimate/); 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 forCable(km)` - 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 5; 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 ### Network Topology - File: ventus-grid-engine/engine/network-topology.js (JavaScript, 319 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/network-topology.js#L1-L319 - Page: https://code.globalgrid2050.com/explore-code/s/0462.html#f1 - Synopsis: A JavaScript module in Ventus Grid Engine that works with physical units (`physicalUnits`) (units: kV, MVA), covering transformers. - What it achieves (comment): It is built from the voltage of helper (`voltageOf`), the band key helper (`bandKey`) and the ratings of helper (`ratingsOf`). PROMOTED from `sources/v9-extracts/network-topology.mjs` (itself extracted verbatim from the LATER of two committed GridAtlas versions, `atlas/modules/202609012245-network-topology.js`, 384 lines — a strict superset of -network-topology.js, 279 lines. Its code works with 100 MVA. - What it does: It lists and searches transformers. Defines 11 functions or classes, including voltageOf, bandKey, ratingsOf, physicalUnits, parametersOf. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'topology'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers. - Downstream impact: Used directly by 5 files: Network Topology Proof (ventus-grid-engine); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Electrical Distance Proof (ventus-grid-engine); Rating Envelope Proof (ventus-grid-engine); and 1 more. Reached from 1 other entry point, including Genome Workflow (ventus-grid-engine). - Signatures: `export ratingsOf(row)`; `export physicalUnits(records)`; `export parametersOf(row)`; `export index(product)`; `voltageOf(node)`; `bandKey(kv)`; `land(nodeName, entry)`; `siteOf(nodeName)`; `graph()`; `resolve(key)`; `at(key, options)` - 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 5; mentioned by 1 ### Verify - File: ventus-grid-engine/verify.mjs (JavaScript, 64 lines) · role other · stage ingest · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/verify.mjs#L1-L64 - Page: https://code.globalgrid2050.com/explore-code/s/2023.html#f2 - Synopsis: A JavaScript module in Ventus Grid Engine. - What it achieves (comment): The fail-closed gate. - What it does: It lists and searches its content. Uses libraries node:fs, node:url, node:path, node:child_process. Side effects: reads or writes files; starts processes. - Downstream impact: Used directly by 5 files: Dashboard Review Workflow (ventus-grid-engine); Deeplink Receiver Audit Workflow (ventus-grid-engine); Genome Workflow (ventus-grid-engine); Spider Features Workflow (ventus-grid-engine); and 1 more. - Signatures: `out(run.stdout || '')` - domain_stage: unknown · commercial_user: none · 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 ### 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 ### Published Fault Level - File: ventus-grid-engine/engine/published-fault-level.js (JavaScript, 250 lines) · role electrical · stage transform · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/published-fault-level.js#L1-L250 - Page: https://code.globalgrid2050.com/explore-code/s/2019.html#f3 - Synopsis: A JavaScript module in Ventus Grid Engine that works with substations, using SHA-256. It formats number (`formatNumber`) and is built from the refuse step (`refuse`) and the record step (`record`). - What it achieves (comment): This module is the estate's contract for carrying a fault-level figure on an open map. - What it does: It calculates substations. Defines refuse, record, quote, formatNumber. - Why it exists in the grid workflow: Domain terms in the code: substations. - Downstream impact: Used directly by 4 files: Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Published Fault Level Proof (ventus-grid-engine); Grid Engine — Published Fault Level Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060236-published-fault-level/); Papers — Published Fault Level Page (globalgrid2050, https://globalgrid2050.com/papers/202609060045-published-fault-level/). Reached from 48 other entry points, including Grid Engine — Compute Against Charging Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060324-compute-against-charging/); Grid Engine — Connection Cap Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060212-connection-cap/); Grid Engine — Corridor Estimate Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060237-corridor-estimate/). - Signatures: `export record(input)`; `export quote(rec, metricName)`; `refuse(reason)`; `formatNumber(n)` - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Electrical Distance - File: ventus-grid-engine/engine/electrical-distance.js (JavaScript, 315 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/electrical-distance.js#L1-L315 - Page: https://code.globalgrid2050.com/explore-code/s/2017.html#f2 - Synopsis: A JavaScript module in Ventus Grid Engine that starts nodes (`startNodes`) (units: kV, MVA), covering transformers. - What it achieves (comment): It starts nodes (`startNodes`) and is built from the crossing step (`crossing`) and the describe step (`describe`). PROMOTED from `sources/v9-extracts/electrical-distance.mjs` (itself extracted verbatim from `gridatlas/atlas/modules/202609012245-electrical-distance.js`). Its code works with 100 MVA. - What it does: It lists and searches transformers. 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 terms in the code: transformers. - Downstream impact: Used directly by 3 files: Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Electrical Distance Proof (ventus-grid-engine); 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 between(index, fromKey, toKey, options)`; `export within(index, key, options)`; `crossing(graph, nearNode, farNode)`; `describe(graph, entry, nearNode)`; `legality(kind, cross)`; `startNodes(graph, site, voltageKv)` - domain_stage: unknown · commercial_user: none · 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 ### 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 ### Rating Envelope - File: ventus-grid-engine/engine/rating-envelope.js (JavaScript, 175 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/rating-envelope.js#L1-L175 - Page: https://code.globalgrid2050.com/explore-code/s/2020.html#f1 - Synopsis: A JavaScript module in Ventus Grid Engine. It is built from the seasons of helper (`seasonsOf`) and the flags for helper (`flagsFor`). - What it achieves (comment): PROMOTED from `sources/v9-extracts/rating-envelope.mjs` (itself extracted verbatim from `gridatlas/atlas/modules/202609012250-rating-envelope.js`). - What it does: It lists and searches its content. Defines seasonsOf, flagsFor, at. Side effects: changes the web page (DOM). - Downstream impact: Used directly by 3 files: Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Rating Envelope Proof (ventus-grid-engine); 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 at(index, key, options)`; `seasonsOf(row)`; `flagsFor(published)` - domain_stage: unknown · commercial_user: none · 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 ### Compute Observer - File: ventus-grid-engine/engine/compute-observer.js (JavaScript, 103 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/compute-observer.js#L1-L103 - Page: https://code.globalgrid2050.com/explore-code/s/2016.html#f1 - Synopsis: A JavaScript module in Ventus Grid Engine that works with same location (`sameLocation`) and same entity (`sameEntity`). - What it achieves (comment): It is built from the copy step (`copy`), the finite step (`finite`) and the located step (`located`). Actual-computation receipts, shared by Node and browsers. - What it does: It calculates its inputs. Defines 8 functions or classes, including copy, finite, located, sameLocation, sameEntity. - Why it exists in the grid workflow: README: "`engine/compute-observer.js` provides browser-neutral computation receipts for the Test Code detector." - Downstream impact: Used directly by 1 file: Compute Observer Proof (ventus-grid-engine). - Signatures: `export createComputeObserver({ onEvent = () => {}, now = () => Date.now() } = {})`; `copy(value)`; `finite(value)`; `located(point)`; `sameLocation(a, b)`; `sameEntity(a, b)`; `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)` - domain_stage: unknown · commercial_user: none · 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 ### Compute Presentation - File: ventus-grid-engine/engine/compute-presentation.js (JavaScript, 18 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/compute-presentation.js#L1-L18 - Page: https://code.globalgrid2050.com/explore-code/s/2016.html#f2 - Synopsis: A JavaScript module in Ventus Grid Engine that works with substations. It describes compute receipt (`describeComputeReceipt`). - What it achieves (comment): Honest UI projection of computation receipts. - What it does: It calculates substations. Defines describeComputeReceipt. - Why it exists in the grid workflow: Domain terms in the code: substations. - Downstream impact: Used directly by 1 file: Browser Observer Proof (ventus-grid-engine). - Signatures: `export describeComputeReceipt(receipt)` - domain_stage: unknown · commercial_user: none · 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 ### Site Tile - File: ventus-grid-engine/engine/site-tile.js (JavaScript, 166 lines) · role geodesy · stage transform · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/site-tile.js#L1-L166 - Page: https://code.globalgrid2050.com/explore-code/s/2020.html#f2 - Synopsis: A JavaScript module in Ventus Grid Engine that works with floor to (`floorTo`) and cell centre (`cellCentre`) and calculates planar distances, using EPSG:27700 and SHA-256. - What it achieves (comment): It is built from the floor to helper (`floorTo`), the tile of helper (`tileOf`) and the tiles for box helper (`tilesForBox`). NEW, not extracted. The code form of wireframe rule R5, "the site tile": stream the measured ground where you arrive; never download in bulk. - What it does: It calculates its inputs. Defines 12 functions or classes, including floorTo, tileOf, tilesForBox, tilesForRoute, add. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Site Tile Proof (ventus-grid-engine). - Signatures: `export tileOf(e, n)`; `export tilesForBox(e0, n0, e1, n1)`; `export tilesForRoute(points, halfWidth = 0)`; `export cellCentre(tile, col, row)`; `export tileKey(product, tile)`; `export missingReceiptFields(receipt)`; `export schedule(tiles, { products = PRODUCTS, have = new Set(), usedToday = 0, startS = 0 } = {})`; `export backoff(refusals)`; `export groundUse({ surveyYear = null, buildYear = null } = {})`; `export noMeasuredGround({ http = 200, outsideEnvelope = false, allZeroUntagged = false, zeroRun = false } = {})`; `floorTo(x, m)`; `add(e, n)` - VEDIC: ENUMERATE BOX TILES (GG2050-VEDIC-000077): Ventus Grid Engine · Geospatial and terrain intelligence. e0, n0, e1, n1 -> Array of tile corners and sizes. - VEDIC: ENUMERATE ROUTE TILES (GG2050-VEDIC-000078): Ventus Grid Engine · Geospatial and terrain intelligence. points, halfWidth -> Sorted unique terrain tiles. - VEDIC: LOCATE CELL CENTRE (GG2050-VEDIC-000079): Ventus Grid Engine · Geospatial and terrain intelligence. tile, col, row -> Projected easting and northing pair. - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Deeplink Receiver Proof - File: ventus-grid-engine/proofs/deeplink-receiver.proof.mjs (JavaScript, 151 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/deeplink-receiver.proof.mjs#L1-L151 - Page: https://code.globalgrid2050.com/explore-code/s/1872.html#f3 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine that fetches receivers, the Renewable Energy Planning Database (REPD) register, substations and solar from the GridAtlas repository. - What it achieves (comment): It is built from the check step (`check`). A deep link is built against a receiver that carries the engine, and the query that finds every row needing one. - What it does: It fetches receivers, the REPD register, substations and solar. Defines check. Uses libraries node:fs, node:path, node:url. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain terms in the code: the REPD register, substations, solar. - Inputs & outputs: In: data source: gridatlas data; JSON file receivers.json. - Downstream impact: Used directly by 1 file: Deeplink Receiver Audit Workflow (ventus-grid-engine). - Signatures: `check(name, ok, detail = '')` - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; JSON file receivers.json]; out []; crs []; voltages [] - Edges: uses 3 estate files (estate-url 2, import 1); used by 1; mentioned by 0 ### Manifest Proof - File: ventus-grid-engine/spider/manifest.proof.mjs (JavaScript, 119 lines) · role docs-config · stage ingest · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/spider/manifest.proof.mjs#L1-L119 - Page: https://code.globalgrid2050.com/explore-code/s/1682.html#f2 - Synopsis: A JavaScript module in the spider folder of Ventus Grid Engine that strips bom (`stripBom`). - What it achieves (comment): It is built from the arg step (`arg`), the load step (`load`) and the strip bom helper (`stripBom`). Every graph `spider/manifest.json` lists is fetched, and every count the manifest states is compared with what that path serves. - What it does: It fetches data. Defines 6 functions or classes, including arg, load, stripBom, count, statedCounts. Uses libraries node:fs, node:url, node:path. Side effects: reads or writes files; makes network requests; starts processes. - 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). - Inputs & outputs: In: JSON file manifest.negative.json; command-line arguments. - Downstream impact: Used directly by 1 file: Spider Features Workflow (ventus-grid-engine). - Signatures: `arg(name)`; `load(path)`; `stripBom(text)`; `count(raw)`; `statedCounts(entry)`; `check(manifest)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file manifest.negative.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Overview - File: ventus-grid-engine/spider/overview.py (Python, 78 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/spider/overview.py#L1-L78 - Page: https://code.globalgrid2050.com/explore-code/s/1682.html#f3 - Synopsis: A Python module in the spider folder of Ventus Grid Engine that writes the front door: one graph whose cards are every graph the manifest lists. - What it achieves (name): Defines `repo_of`. - What it does: It loads data. Defines repo_of. Uses libraries datetime, json, pathlib, re. Side effects: reads or writes files. - 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). - Inputs & outputs: In: JSON file overview.json. - Downstream impact: Used directly by 1 file: Spider Features Workflow (ventus-grid-engine). - Signatures: `repo_of(entry)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file overview.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Update Manifest - File: ventus-grid-engine/spider/update_manifest.py (Python, 144 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/spider/update_manifest.py#L1-L144 - Page: https://code.globalgrid2050.com/explore-code/s/1683.html#f3 - Synopsis: A Python module in the spider folder of Ventus Grid Engine that reads graph (`read_graph`). - What it achieves (comment): It is built from the fetch step (`fetch`), the count step (`count`) and the measure step (`measure`). Add newly published graphs to the Spider dashboard's manifest, once they are proven reachable. - What it does: It fetches data. Defines fetch, count, read_graph, measure. Uses libraries datetime, json, os, pathlib, sys. Side effects: reads or writes files; makes network requests; starts processes. - 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: Spider Features Workflow (ventus-grid-engine). - Signatures: `fetch(url, timeout=25)`; `count(raw)`; `read_graph(path)`; `measure(entry)` - 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 ### Audit Receivers - File: ventus-grid-engine/tools/audit-receivers.mjs (JavaScript, 94 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/tools/audit-receivers.mjs#L1-L94 - Page: https://code.globalgrid2050.com/explore-code/s/1875.html#f4 - Synopsis: A JavaScript module in the tools folder of Ventus Grid Engine that reads PipelineNews rows, projects and receiver audit. It is built from the arg step (`arg`). - What it achieves (comment): Run the query over real project rows and report. - What it does: It loads PipelineNews rows, projects and receiver audit. Defines arg. Uses libraries node:fs, node:path, node:url. Side effects: reads or writes files. - Inputs & outputs: In: JSON file pipelinenews-rows.json; JSON file projects.json; command-line arguments. Out: JSON file receiver-audit.json. - Downstream impact: Used directly by 1 file: Deeplink Receiver Audit Workflow (ventus-grid-engine). - Signatures: `arg(flag)` - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file pipelinenews-rows.json; JSON file projects.json; command-line arguments]; out [JSON file receiver-audit.json]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Build Dashboard - File: ventus-grid-engine/tools/build-dashboard.py (Python, 21 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/tools/build-dashboard.py#L1-L21 - Page: https://code.globalgrid2050.com/explore-code/s/1070.html#f4 - Synopsis: A Python module in the tools folder of Ventus Grid Engine that reads solar. - What it achieves (comment): Render the static dashboard from its small, reviewed live-route catalogue. - What it does: It loads solar. Uses libraries pathlib, html, json, urllib.parse. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'markets-data'): upstream engineering foresight over GB transmission and distribution 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 dashboard.json; form fields (user input). - Downstream impact: Used directly by 1 file: Dashboard Review Workflow (ventus-grid-engine). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file dashboard.json; form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Firm Capacity - File: ventus-grid-engine/engine/firm-capacity.js (JavaScript, 209 lines) · role energy-data · stage transform - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/firm-capacity.js#L1-L209 - Page: https://code.globalgrid2050.com/explore-code/s/2019.html#f1 - Synopsis: A JavaScript module in Ventus Grid Engine that works with transformers and substations, using IEC 60076-7. - What it achieves (comment): It is built from the require positive helper (`requirePositive`), the require ratio helper (`requireRatio`) and the require units helper (`requireUnits`). What a substation can carry when one unit is out. Its code works with 30 MVA, 100 MW and 105.3 MVA. - What it does: It calculates transformers and substations. Defines 7 functions or classes, including requirePositive, requireRatio, requireUnits, apparentPowerMva, firmCapacityMva. - Why it exists in the grid workflow: Domain terms in the code: transformers, substations. - Downstream impact: Used directly by 8 files: Grid Engine — Substation Growth Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060218-substation-growth/); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Firm Capacity Proof (ventus-grid-engine); Grid Engine — Firm Capacity Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060205-firm-capacity/); and 4 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 apparentPowerMva({ mw, powerFactor })`; `export firmCapacityMva({ units })`; `export utilisationAgainstRating({ demandMva, ratingMva })`; `export assessAgainstFirm({ units, demandMva })`; `requirePositive(name, value)`; `requireRatio(name, value)`; `requireUnits(units)` - VEDIC: CHECK FIRM CAPACITY (GG2050-VEDIC-000070): Ventus Grid Engine · Energy and power calculation. transformer_ratings_mva, stated_demand_mva -> Firm and installed MVA, demand shortfall in MVA, and whether demand fits each capacity. - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 8; mentioned by 0 ### Diversified Demand - File: ventus-grid-engine/engine/diversified-demand.js (JavaScript, 187 lines) · role energy-data · stage output - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/diversified-demand.js#L1-L187 - Page: https://code.globalgrid2050.com/explore-code/s/2017.html#f1 - Synopsis: A JavaScript module in Ventus Grid Engine that averages over window GW (`averageOverWindowGw`) (units: kW, kWh), covering transformers. - What it achieves (comment): It is built from the positive step (`positive`), the ratio step (`ratio`) and the count step (`count`). What a group of loads actually draws together, which is never the sum of what each could draw alone. Its code works with 2.85 GW, 7 kW and 700 kW. - What it does: Defines 7 functions or classes, including positive, ratio, count, diversifiedDemandKw, impliedCoincidence. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain terms in the code: transformers. - Downstream impact: Used directly by 7 files: Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Diversified Demand Proof (ventus-grid-engine); Grid Engine — Diversity Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060211-diversity/); Grid Engine — Data Centre Connection Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060316-data-centre-connection/); 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 diversifiedDemandKw({ unitCount, perUnitKw, coincidenceFactor })`; `export impliedCoincidence({ unitCount, perUnitKw, measuredGroupPeakKw })`; `export averageOverWindowGw({ annualTwh, windowHoursPerDay })`; `export populationEnergyTwh({ unitCount, perUnitKwhPerYear })`; `positive(name, v)`; `ratio(name, v)`; `count(name, v)` - VEDIC: DIVERSIFY (GG2050-VEDIC-000028): Ventus Grid Engine / diversified-demand · Electrical engineering / Applied mathematics. unit_count, per_unit_kw, coincidence_factor -> diversified_demand_kw - VEDIC: COINCIDE (GG2050-VEDIC-000029): Ventus Grid Engine / diversified-demand · Electrical engineering / Applied mathematics. unit_count, per_unit_kw, measured_group_peak_kw -> coincidence_factor - VEDIC: TOTAL ANNUAL ENERGY (GG2050-VEDIC-000058): Ventus Grid Engine · Energy and power calculation. unit_count, annual_energy_per_unit_kwh -> annual_population_energy_twh_result - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 7; mentioned by 0 ### Connection Capacity - File: ventus-grid-engine/engine/connection-capacity.js (JavaScript, 278 lines) · role energy-data · stage transform - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/connection-capacity.js#L1-L278 - Page: https://code.globalgrid2050.com/explore-code/s/2016.html#f3 - Synopsis: A JavaScript module in Ventus Grid Engine that works with clipped energy (`clippedEnergy`) (units: kW, kWh, MW). - What it achieves (comment): It is built from the positive step (`positive`), the ratio step (`ratio`) and the profile of helper (`profileOf`). APPLIED ENGINEERING for the people who actually have to build something: a developer, an EPC, or a heavy energy user with an agreed capacity at a connection and a load or generation profile that does not fit inside it. Its code works with 12 MW and 30 MVA. - What it does: It calculates its inputs. Defines 7 functions or classes, including positive, ratio, profileOf, exceedance, batteryForPeakShaving. - Downstream impact: Used directly by 6 files: Grid Engine — Solar Battery Energy Storage System (BESS) Export Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060217-solar-bess-export/); 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/); Connection Capacity Proof (ventus-grid-engine); and 2 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 exceedance({ profileKw, capKw, intervalHours })`; `export batteryForPeakShaving({ profileKw, capKw, intervalHours, roundTripEfficiency, depthOfDischarge })`; `export clippedEnergy({ generationKw, exportCapKw, intervalHours })`; `export netAtConnection({ loadKw, generationKw, importCapKw, exportCapKw, intervalHours })`; `positive(name, v)`; `ratio(name, v)`; `profileOf(name, p)` - VEDIC: SIZE PEAK SHAVING BATTERY (GG2050-VEDIC-000071): Ventus Grid Engine · Energy and power calculation. profileKw, capKw, intervalHours, roundTripEfficiency, depthOfDischarge -> Power, usable and installed energy, duration and charge energy. - VEDIC: MEASURE EXPORT CLIPPING (GG2050-VEDIC-000052): Ventus Grid Engine · Energy and power calculation. generation_samples_kw, export_cap_kw, hours_per_sample -> potential_delivered_and_clipped_energy_kwh_summary - VEDIC: BALANCE GRID EXCHANGE (GG2050-VEDIC-000053): Ventus Grid Engine · Energy and power calculation. load_samples_kw, generation_samples_kw, import_cap_kw, export_cap_kw, hours_per_sample -> import_export_peak_kw_energy_kwh_and_breach_summary - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 6; mentioned by 1 ### Electrification Demand - File: ventus-grid-engine/engine/electrification-demand.js (JavaScript, 247 lines) · role energy-data · stage transform - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/electrification-demand.js#L1-L247 - Page: https://code.globalgrid2050.com/explore-code/s/2018.html#f1 - Synopsis: A JavaScript module in Ventus Grid Engine that averages power GW (`averagePowerGw`) and loads factor peak (`loadFactorFromPeak`). - What it achieves (comment): It loads factor peak (`loadFactorFromPeak`) and is built from the require ratio helper (`requireRatio`) and the require positive helper (`requirePositive`). Every function here is arithmetic a grid engineer would do on paper, made exact, named, and given a unit. - What it does: It calculates its inputs. Defines 8 functions or classes, including requireRatio, requirePositive, describe, averagePowerGw, peakFromLoadFactorGw. - Downstream impact: Used directly by 6 files: Grid Engine — Substation Growth Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060218-substation-growth/); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Electrification Demand Proof (ventus-grid-engine); Grid Engine — Electrification Workbench Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060148-electrification-workbench/); and 2 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 averagePowerGw({ annualTwh })`; `export peakFromLoadFactorGw({ averageGw, loadFactor })`; `export loadFactorFromPeak({ averageGw, peakGw })`; `export nameplateFromCapacityFactorGw({ annualTwh, capacityFactor })`; `export electricityForDisplacedFuelTwh({ fuelTwh, oldEfficiency, newPerformance })`; `requireRatio(name, value, { allowAboveOne = false } = {})`; `requirePositive(name, value)`; `describe(value)` - VEDIC: CALCULATE AVERAGE POWER (GG2050-VEDIC-000054): Ventus Grid Engine · Energy and power calculation. annual_energy_twh -> average_power_gw_result - VEDIC: ESTIMATE PEAK DEMAND (GG2050-VEDIC-000055): Ventus Grid Engine · Energy and power calculation. average_demand_gw, load_factor_fraction -> estimated_peak_demand_gw_result - VEDIC: CALCULATE LOAD FACTOR (GG2050-VEDIC-000056): Ventus Grid Engine · Energy and power calculation. average_demand_gw, peak_demand_gw -> dimensionless_load_factor_result - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 6; mentioned by 0 ### Voltage Drop - File: ventus-grid-engine/engine/voltage-drop.js (JavaScript, 217 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/voltage-drop.js#L1-L217 - Page: https://code.globalgrid2050.com/explore-code/s/0462.html#f2 - Synopsis: A JavaScript module in Ventus Grid Engine that works with cables. It is built from the positive step (`positive`), the non negative helper (`nonNegative`) and the ratio step (`ratio`). - What it achieves (comment): What a cable run costs in volts and in watts. - What it does: It calculates cables. Defines 8 functions or classes, including positive, nonNegative, ratio, phasesOf, voltageDropVolts. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution 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 5 files: Grid Engine — Solar Farm Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060318-solar-farm/); Grid Engine — Voltage Drop Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060313-voltage-drop/); Voltage Drop Proof (ventus-grid-engine); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); 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 voltageDropVolts({ currentA, lengthM, resistanceOhmPerKm, reactanceOhmPerKm = 0, powerFactor, phases = 'three' })`; `export dropPercent({ dropVolts, nominalVolts })`; `export lossesWatts({ currentA, lengthM, resistanceOhmPerKm, phases = 'three' })`; `export annualLossKwh({ peakLossWatts, lossLoadFactor, hours = 8760 })`; `positive(name, v)`; `nonNegative(name, v)`; `ratio(name, v)`; `phasesOf(phases)` - VEDIC: DROP (GG2050-VEDIC-000024): Ventus Grid Engine / voltage-drop · Electrical engineering / Applied mathematics. current_a, length_m, resistance_ohm_per_km, reactance_ohm_per_km, power_factor, phases -> voltage_drop_record - VEDIC: PERCENT (GG2050-VEDIC-000025): Ventus Grid Engine / voltage-drop · Electrical engineering / Applied mathematics. drop_volts, nominal_volts -> drop_percent - VEDIC: LOSS (GG2050-VEDIC-000026): Ventus Grid Engine / voltage-drop · Electrical engineering / Applied mathematics. current_a, length_m, resistance_ohm_per_km, phases -> losses_watts - 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 ### Interconnector Economics - File: ventus-grid-engine/engine/interconnector-economics.js (JavaScript, 226 lines) · role energy-data · stage transform - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/interconnector-economics.js#L1-L226 - Page: https://code.globalgrid2050.com/explore-code/s/0461.html#f4 - Synopsis: A JavaScript module in Ventus Grid Engine that works with interconnectors and cables. It is built from the finite step (`finite`), the positive step (`positive`) and the ratio step (`ratio`). - What it achieves (comment): What an interconnector does, and what a price difference across it is worth — in text, deliberately never as a drawing. Its code works with 2 GW. - What it does: It calculates interconnectors and cables. Defines 8 functions or classes, including finite, positive, ratio, flowDirection, energyTransferredGwh. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'interconnector'): upstream engineering foresight over GB transmission and distribution 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, cables. - Downstream impact: Used directly by 3 files: Grid Engine — Interconnectors Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060305-interconnectors/); Interconnector Economics 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 flowDirection({ gbPriceGbpPerMwh, neighbourPriceGbpPerMwh })`; `export energyTransferredGwh({ capacityGw, hours, utilisation })`; `export congestionRentGbp({ capacityGw, hours, utilisation, spreadGbpPerMwh })`; `export fleetCapacity({ links })`; `export shareOfDemand({ transferGw, gbDemandGw })`; `finite(name, v)`; `positive(name, v)`; `ratio(name, v)` - 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 ### Power Factor - File: ventus-grid-engine/engine/power-factor.js (JavaScript, 191 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/power-factor.js#L1-L191 - Page: https://code.globalgrid2050.com/explore-code/s/2019.html#f2 - Synopsis: A JavaScript module in Ventus Grid Engine that works with transformers and cables. - What it achieves (comment): It is built from the positive step (`positive`), the power factor helper (`powerFactor`) and the tan phi helper (`tanPhi`). How much reactive power a load draws, what it costs in capacity, and how much of that capacity correction gives back. Its code works with 156 kVA. - What it does: It calculates transformers and cables. Defines 7 functions or classes, including positive, powerFactor, tanPhi, reactivePowerKvar, apparentPowerKva. - Why it exists in the grid workflow: Domain terms in the code: transformers, cables. - Downstream impact: Used directly by 3 files: Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Power Factor Proof (ventus-grid-engine); Grid Engine — Power Factor Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060309-power-factor/). 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 reactivePowerKvar({ kw, powerFactor: pf })`; `export apparentPowerKva({ kw, powerFactor: pf })`; `export correctionKvar({ kw, fromPowerFactor, toPowerFactor })`; `export againstAgreedCapacity({ kw, powerFactor: pf, agreedKva })`; `positive(name, v)`; `powerFactor(name, v)`; `tanPhi(pf)` - VEDIC: REACTIVE (GG2050-VEDIC-000020): Ventus Grid Engine / power-factor · Electrical engineering / Applied mathematics. real_power_kw, power_factor -> reactive_power_kvar - VEDIC: APPARENT (GG2050-VEDIC-000021): Ventus Grid Engine / power-factor · Electrical engineering / Applied mathematics. real_power_kw, power_factor -> apparent_power_kva - VEDIC: CORRECT (GG2050-VEDIC-000022): Ventus Grid Engine / power-factor · Electrical engineering / Applied mathematics. real_power_kw, initial_pf, target_pf -> correction_and_capacity_record - domain_stage: unknown · commercial_user: none · 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 ### 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 ### Sizing Arithmetic - File: ventus-grid-engine/sources/v9-extracts/sizing-arithmetic.mjs (JavaScript, 435 lines) · role render · stage output - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/v9-extracts/sizing-arithmetic.mjs#L1-L435 - Page: https://code.globalgrid2050.com/explore-code/s/2023.html#f1 - Synopsis: A JavaScript module in the sources folder of Ventus Grid Engine 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`). Extracted verbatim from `gridatlas/atlas/modules/202609012205-sizing-arithmetic.js`. Its code works with 211.2 MW, 44.8 MW and 50 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 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: `export physicalInputs(inputs)`; `export buildStats(inputs, o)`; `export consistency(inputs, stats)`; `export stringStats(inputs)`; `export centralStats(inputs)`; `export financeNumber(value)`; `export applyDevelopmentStageDefaults(financeInputs, stageValue)`; `export applyMountingBifacial(financeByMode, mode, gcrValue)`; `export screeningFinance(financeInputs, stats, context)`; `export computeStats(inputs, financeByMode, defaults)`; `export fitToStatedCapacity(sld, computeSldStats)`; `dcMwp(o.module_count * p.mod_wp)`; `inverterAcMaxMva(i.y_invs * i.string_inv_kva)`; `strDcKwp(i.x_mods_c * i.mod_wp_c)`; `values(financeByMode || {})`; `centralInverterAc(stats?.mode || (context && context.fallbackMode))`; `oneMore(() => { sld.inputs[outerKey] = best.outer + 1; const s = computeSldStats(); sld.inputs[outerKey] = best.outer; const ...)` - domain_stage: unknown · commercial_user: none · 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 ### Current from Power - File: ventus-grid-engine/engine/current-from-power.js (JavaScript, 144 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/current-from-power.js#L1-L144 - Page: https://code.globalgrid2050.com/explore-code/s/2016.html#f5 - Synopsis: A JavaScript module in Ventus Grid Engine that works with cables. It is built from the positive step (`positive`), the phases of helper (`phasesOf`) and the current a helper (`currentA`). - What it achieves (comment): The amps implied by a power and a voltage. Its code works with 132 kV and 400 kV. - What it does: It calculates cables. Defines positive, phasesOf, currentA, currentFromMvaAtKv. - Why it exists in the grid workflow: Domain stage upstream_foresight (voltage levels 400kV, 132kV (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: cables, 400kV, 132kV. - Inputs & outputs: Voltage levels named: 400kV, 132kV. - Downstream impact: Used directly by 1 file: Current from Power Proof (ventus-grid-engine). - Signatures: `export currentA({ apparentPowerVa, voltageV, phases = 'three' })`; `export currentFromMvaAtKv({ mva, kv, phases = 'three' })`; `positive(name, v)`; `phasesOf(phases)` - VEDIC: CONVERT APPARENT POWER TO CURRENT (GG2050-VEDIC-000069): Ventus Grid Engine · Energy and power calculation. apparent_power_va, voltage_v, single_or_three_phase_optional -> current_in_amperes_result - 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 1 ### Electrification Model - File: ventus-grid-engine/engine/electrification-model.js (JavaScript, 345 lines) · role energy-data · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/electrification-model.js#L1-L345 - Page: https://code.globalgrid2050.com/explore-code/s/2018.html#f2 - Synopsis: A JavaScript module in Ventus Grid Engine that works with non negative count (`nonNegativeCount`) and fleet demand (`fleetDemand`). - What it achieves (comment): It is built from the positive step (`positive`), the non negative count helper (`nonNegativeCount`) and the meaning of helper (`meaningOf`). What electrifying a fleet of end uses does to energy demand, and what it does to peak load. Its code works with 3.5 kW, 98 GW and 1.7 kW. - What it does: It calculates its inputs. Defines 9 functions or classes, including positive, nonNegativeCount, meaningOf, quantity, electricalInputFromHeat. - Downstream impact: Used directly by 1 file: Electrification Model Proof (ventus-grid-engine). - Signatures: `export quantity(value, unit, meaning)`; `export electricalInputFromHeat({ thermal, scop })`; `export heatFromElectricalInput({ electrical, scop })`; `export fleetDemand({ units, perUnitNameplate, perUnitAfterDiversity = null })`; `export combinedPeak({ fleets })`; `export primaryEnergyForWork({ usefulWork, incumbentEfficiency, electrifiedEfficiency })`; `positive(name, v)`; `nonNegativeCount(name, v)`; `meaningOf(name, m, allowed)` - VEDIC: ESTIMATE HEATING ELECTRICITY (GG2050-VEDIC-000067): Ventus Grid Engine · Energy and power calculation. typed_delivered_heat, seasonal_performance_factor -> typed_electrical_input_in_same_unit - VEDIC: ESTIMATE DELIVERED HEAT (GG2050-VEDIC-000068): Ventus Grid Engine · Energy and power calculation. typed_electrical_input, seasonal_performance_factor -> typed_delivered_heat_in_same_unit - VEDIC: ESTIMATE FLEET DEMAND (GG2050-VEDIC-000072): Ventus Grid Engine · Energy and power calculation. units, perUnitNameplate, perUnitAfterDiversity -> Labelled simultaneous and diversified quantities. - domain_stage: unknown · 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 ### Published Fault Level Proof - File: ventus-grid-engine/proofs/published-fault-level.proof.mjs (JavaScript, 209 lines) · role electrical · stage unknown - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/published-fault-level.proof.mjs#L1-L209 - Page: https://code.globalgrid2050.com/explore-code/s/1874.html#f2 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine covering 132kV, using SHA-256 and uses data from National Energy System Operator (NESO) data portal. - What it achieves (comment): It is built from the check step (`check`) and the clone step (`clone`). A fault-level figure on an open map is allowed to be exactly one thing: what a publisher said, on a date, under a stated basis, by exact metric name. Its code works with 132 kV and 14.52 kA. - What it does: It lists and searches 132kV. Defines check, clone. Side effects: starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (voltage levels 132kV (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: 132kV. - Inputs & outputs: Voltage levels named: 132kV. - Downstream impact: Used directly by 1 file: Papers — Published Fault Level Page (globalgrid2050, https://globalgrid2050.com/papers/202609060045-published-fault-level/). Reached from 48 other entry points, including Grid Engine — Compute Against Charging Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060324-compute-against-charging/); Grid Engine — Connection Cap Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060212-connection-cap/); Grid Engine — Corridor Estimate Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060237-corridor-estimate/). - Signatures: `check(name, condition)`; `clone()` - 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 [132kV] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Build Browser Observer - File: ventus-grid-engine/tools/build-browser-observer.mjs (JavaScript, 19 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/tools/build-browser-observer.mjs#L1-L19 - Page: https://code.globalgrid2050.com/explore-code/s/1875.html#f5 - Synopsis: A JavaScript module in the tools folder of Ventus Grid Engine. It builds browser observer (`buildBrowserObserver`) and is built from the read step (`read`). - What it achieves (comment): Deterministic browser bundle of the owned receipt and presentation code. - What it does: It loads data. Defines buildBrowserObserver, read. Uses libraries node:fs, node:path, node:url. Side effects: reads or writes files. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 1 file: Browser Observer Proof (ventus-grid-engine). - Signatures: `export buildBrowserObserver()`; `read(name)` - domain_stage: unknown · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Dashboard - File: ventus-grid-engine/assets/dashboard.js (JavaScript, 5 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/assets/dashboard.js#L1-L5 - Page: https://code.globalgrid2050.com/explore-code/s/1070.html#f2 - Synopsis: A JavaScript file in the assets folder of Ventus Grid Engine that keeps existing engine-map bookmarks working after introducing the dashboard. - What it achieves (name): It responds to input events. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'markets-data'): upstream engineering foresight over 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 (link 1); used by 0; mentioned by 0 ### Browser Observer Proof - File: ventus-grid-engine/proofs/browser-observer.proof.mjs (JavaScript, 25 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/browser-observer.proof.mjs#L1-L25 - Page: https://code.globalgrid2050.com/explore-code/s/1871.html#f2 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine. - What it does: Uses libraries node:assert/strict, node:vm. - domain_stage: unknown · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 0 ### Compute Observer Proof - File: ventus-grid-engine/proofs/compute-observer.proof.mjs (JavaScript, 92 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/compute-observer.proof.mjs#L1-L92 - Page: https://code.globalgrid2050.com/explore-code/s/1871.html#f3 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine that works with the Renewable Energy Planning Database (REPD) register. - What it achieves (readme): It is built from the check step (`check`) and the compute step (`compute`). The README says: `engine/compute-observer.js` provides browser-neutral computation receipts for the Test Code detector. - What it does: It calculates the REPD register. Defines check, compute. Uses libraries node:assert/strict. - Why it exists in the grid workflow: Domain terms in the code: the REPD register. README: "`engine/compute-observer.js` provides browser-neutral computation receipts for the Test Code detector." - Signatures: `check(name, fn)`; `compute(request)` - domain_stage: unknown · commercial_user: none · 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 ### Connection Capacity Proof - File: ventus-grid-engine/proofs/connection-capacity.proof.mjs (JavaScript, 154 lines) · role energy-data · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/connection-capacity.proof.mjs#L1-L154 - Page: https://code.globalgrid2050.com/explore-code/s/1871.html#f4 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine. It is built from the check step (`check`), the near step (`near`) and the throws step (`throws`). - What it achieves (comment): Sizing an asset against a stated cap. Its code works with 30 MW and 20 MW. - What it does: It lists and searches its content. Defines check, near, throws. Side effects: starts processes. - Signatures: `check(n, c)`; `near(a, b, tol)`; `throws(fn, p)` - domain_stage: unknown · commercial_user: none · 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 ### Corridor Estimate Proof - File: ventus-grid-engine/proofs/corridor-estimate.proof.mjs (JavaScript, 103 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/corridor-estimate.proof.mjs#L1-L103 - Page: https://code.globalgrid2050.com/explore-code/s/1872.html#f1 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine covering cables. It is built from the check step (`check`) and the near step (`near`). - What it achieves (comment): A straight line is not a route, and this module's whole job is to say so honestly: a calibrated multiplier where one is defensible, and a refusal everywhere it is not. - What it does: Defines check, near. Side effects: starts processes. - 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. - Signatures: `check(name, condition)`; `near(a, b, tol)` - domain_stage: hv_procurement · commercial_user: EPC_contractor, procurement_buyer · 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 ### Current from Power Proof - File: ventus-grid-engine/proofs/current-from-power.proof.mjs (JavaScript, 162 lines) · role electrical · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/current-from-power.proof.mjs#L1-L162 - Page: https://code.globalgrid2050.com/explore-code/s/1872.html#f2 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine covering 400kV, 132kV and cables. - What it achieves (comment): It is built from the check step (`check`), the near step (`near`) and the throws step (`throws`). The step that was missing between a published rating and a cable calculation. Its code works with 132 kV, 400 kV and 50 kVA. - What it does: Defines check, near, throws. Side effects: starts processes. - Why it exists in the grid workflow: Domain terms in the code: 400kV, 132kV, cables, 400V. - Inputs & outputs: Voltage levels named: 400kV, 132kV, 400V. - Signatures: `check(name, condition)`; `near(a, b, tol)`; `throws(fn, Kind)` - domain_stage: unknown · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 132kV, 400V] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Deeplink Proof - File: ventus-grid-engine/proofs/deeplink.proof.mjs (JavaScript, 128 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/deeplink.proof.mjs#L1-L128 - Page: https://code.globalgrid2050.com/explore-code/s/1872.html#f4 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine covering solar and wind, and uses data from the GridAtlas repository. It is built from the check step (`check`). - What it achieves (comment): The contract that broke a third of the register, held to itself so it cannot break the same way twice. - What it does: It lists and searches solar and wind. Defines check. Side effects: starts processes. - Why it exists in the grid workflow: Domain terms in the code: solar, wind. - Signatures: `check(name, condition)` - domain_stage: unknown · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 1, estate-url 1); used by 0; mentioned by 0 ### Diversified Demand Proof - File: ventus-grid-engine/proofs/diversified-demand.proof.mjs (JavaScript, 127 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/diversified-demand.proof.mjs#L1-L127 - Page: https://code.globalgrid2050.com/explore-code/s/1872.html#f5 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine. It is built from the check step (`check`), the near step (`near`) and the throws step (`throws`). - What it achieves (comment): The peak of the sum is not the sum of the peaks, and the average across a window is not the peak inside it. Its code works with 14 GW, 7 kW and 210 kW. - What it does: It lists and searches its content. Defines check, near, throws. Side effects: changes the web page (DOM); starts processes. - Signatures: `check(n, c)`; `near(a, b, tol)`; `throws(fn, p)` - domain_stage: unknown · commercial_user: none · 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 ### Electrical Distance Proof - File: ventus-grid-engine/proofs/electrical-distance.proof.mjs (JavaScript, 148 lines) · role geodesy · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/electrical-distance.proof.mjs#L1-L148 - Page: https://code.globalgrid2050.com/explore-code/s/1873.html#f1 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine covering overhead lines (OHL) and transformers. It is built from the check step (`check`). - What it achieves (comment): How far a substation is in the network operator's own published circuits, not in kilometres. Its code works with 132 kV and 400 kV. - What it does: Defines check. Side effects: starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (voltage levels 400kV, 132kV (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: overhead lines (OHL), transformers, 400kV, 132kV. - Inputs & outputs: Voltage levels named: 400kV, 132kV. - 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 []; out []; crs []; voltages [400kV, 132kV] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Electrification Demand Proof - File: ventus-grid-engine/proofs/electrification-demand.proof.mjs (JavaScript, 189 lines) · role energy-data · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/electrification-demand.proof.mjs#L1-L189 - Page: https://code.globalgrid2050.com/explore-code/s/1873.html#f2 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine. It is built from the check step (`check`), the near step (`near`) and the throws step (`throws`). - What it achieves (comment): The arithmetic of electrification, checked against the worked examples in the paper it implements, against the definitions it claims to be exact, and against the errors it exists to make impossible. Its code works with 1 GW, 109.6 GW and 120 GW. - What it does: It lists and searches its content. Defines check, near, throws. Side effects: starts processes. - Signatures: `check(name, condition)`; `near(a, b, tol)`; `throws(fn, pattern)` - domain_stage: unknown · commercial_user: none · 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 1 estate file (import 1); used by 0; mentioned by 1 ### Electrification Model Proof - File: ventus-grid-engine/proofs/electrification-model.proof.mjs (JavaScript, 219 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/electrification-model.proof.mjs#L1-L219 - Page: https://code.globalgrid2050.com/explore-code/s/1873.html#f3 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine. It is built from the check step (`check`), the near step (`near`) and the throws step (`throws`). - What it achieves (comment): The module exists because a published report had to be corrected for conflating a heat pump's thermal output with its electrical input, and both were written in kilowatts. Its code works with 3.5 kW, 1.7 kW and 100 GW. - What it does: Defines check, near, throws. Side effects: starts processes. - Signatures: `check(name, condition)`; `near(a, b, tol)`; `throws(fn, Kind)` - domain_stage: unknown · commercial_user: none · 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 ### Firm Capacity Proof - File: ventus-grid-engine/proofs/firm-capacity.proof.mjs (JavaScript, 139 lines) · role energy-data · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/firm-capacity.proof.mjs#L1-L139 - Page: https://code.globalgrid2050.com/explore-code/s/1873.html#f4 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine covering transformers and substations. - What it achieves (comment): It is built from the check step (`check`), the near step (`near`) and the throws step (`throws`). The N-1 arithmetic, and the boundary between what it may say and what it may not. Its code works with 30 MVA, 42 MVA and 100 MW. - What it does: It lists and searches transformers and substations. Defines check, near, throws. Side effects: starts processes. - Why it exists in the grid workflow: Domain terms in the code: transformers, substations. - Signatures: `check(name, condition)`; `near(a, b, tol)`; `throws(fn, pattern)` - domain_stage: unknown · commercial_user: none · 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 ### 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 ### Interconnector Economics Proof - File: ventus-grid-engine/proofs/interconnector-economics.proof.mjs (JavaScript, 166 lines) · role energy-data · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/interconnector-economics.proof.mjs#L1-L166 - Page: https://code.globalgrid2050.com/explore-code/s/0463.html#f1 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine covering interconnectors. It is built from the check step (`check`), the near step (`near`) and the throws step (`throws`). - What it achieves (comment): An edge between two systems, priced. Its code works with 10.3 GW, 1 GW and 7.65 GW. - What it does: It lists and searches interconnectors. Defines check, near, throws. Side effects: starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'interconnector'): upstream engineering foresight over GB transmission and distribution 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. - Signatures: `check(n, c)`; `near(a, b, tol)`; `throws(fn, p)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · 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 1 estate file (import 1); used by 0; mentioned by 0 ### Network Topology Proof - File: ventus-grid-engine/proofs/network-topology.proof.mjs (JavaScript, 234 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/network-topology.proof.mjs#L1-L234 - Page: https://code.globalgrid2050.com/explore-code/s/0463.html#f2 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine covering transformers, overhead lines (OHL), 400kV and 132kV. It is built from the check step (`check`). - What it achieves (comment): What the network operator publishes about one site, read as a graph, with the one property that made this module worth promoting on its own. Its code works with 400 kV, 132 kV and 9999 MVA. - What it does: Defines check. Side effects: starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'topology'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, overhead lines (OHL), 400kV, 132kV. - Inputs & outputs: Voltage levels named: 400kV, 132kV. - Signatures: `check(name, condition)` - 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 [400kV, 132kV] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Power Factor Proof - File: ventus-grid-engine/proofs/power-factor.proof.mjs (JavaScript, 143 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/power-factor.proof.mjs#L1-L143 - Page: https://code.globalgrid2050.com/explore-code/s/1874.html#f1 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine. It is built from the check step (`check`), the near step (`near`) and the throws step (`throws`). - What it achieves (comment): The cheapest capacity anybody ever buys, checked. Its code works with 156.1 kVA. - What it does: It lists and searches its content. Defines check, near, throws. Side effects: starts processes. - Signatures: `check(n, c)`; `near(a, b, tol)`; `throws(fn, p)` - domain_stage: unknown · commercial_user: none · 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 ### Rating Envelope Proof - File: ventus-grid-engine/proofs/rating-envelope.proof.mjs (JavaScript, 156 lines) · role electrical · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/rating-envelope.proof.mjs#L1-L156 - Page: https://code.globalgrid2050.com/explore-code/s/1874.html#f3 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine covering overhead lines (OHL) and transformers. It is built from the check step (`check`). - What it achieves (comment): What a circuit is published to carry, season by season, and a structural refusal to add those numbers up. Its code works with 132 kV and 400 kV. - What it does: Defines check. Side effects: starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (voltage levels 400kV, 132kV (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: overhead lines (OHL), transformers, 400kV, 132kV. - Inputs & outputs: Voltage levels named: 400kV, 132kV. - 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 []; out []; crs []; voltages [400kV, 132kV] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Receiver Focus Param Proof - File: ventus-grid-engine/proofs/receiver-focus-param.proof.mjs (JavaScript, 83 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/receiver-focus-param.proof.mjs#L1-L83 - Page: https://code.globalgrid2050.com/explore-code/s/1874.html#f4 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine that reads engine graph. It is built from the check step (`check`). - What it achieves (comment): ?focus= centres the graph on one module. - What it does: It loads engine graph. Defines check. Uses libraries node:fs, node:path, node:url. Side effects: reads or writes files; starts processes. - Inputs & outputs: In: JSON file engine-graph.json. - Signatures: `check(name, ok, detail = '')`; `canonical(graph.nodes || [])` - domain_stage: unknown · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file engine-graph.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; 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 ### Site Tile Proof - File: ventus-grid-engine/proofs/site-tile.proof.mjs (JavaScript, 130 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/site-tile.proof.mjs#L1-L130 - Page: https://code.globalgrid2050.com/explore-code/s/1875.html#f1 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine. It is built from the check step (`check`). - What it achieves (comment): Wireframe rule R5, the site tile: stream the measured ground where you arrive, never download in bulk. - What it does: Defines check. Side effects: starts processes. - Signatures: `check(name, condition)` - domain_stage: unknown · commercial_user: none · 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 ### V9 Engine Proof - File: ventus-grid-engine/proofs/v9-engine.proof.mjs (JavaScript, 188 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/v9-engine.proof.mjs#L1-L188 - Page: https://code.globalgrid2050.com/explore-code/s/1875.html#f2 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine covering substations, 33kV and 400kV, using haversine. - What it achieves (comment): It is built from the check step (`check`) and the near step (`near`). The V9 geodesy and nearest-search, held to the two. Its code works with 33 kV and 400 kV. - What it does: Defines check, near, EARTH_RADIUS_KM_FROM_V8. Side effects: starts processes. - Why it exists in the grid workflow: Domain terms in the code: substations, 33kV, 400kV. - Inputs & outputs: Voltage levels named: 400kV, 33kV. - Signatures: `check(name, condition)`; `near(a, b, tol)`; `EARTH_RADIUS_KM_FROM_V8()` - domain_stage: unknown · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 33kV] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 0 ### Voltage Drop Proof - File: ventus-grid-engine/proofs/voltage-drop.proof.mjs (JavaScript, 161 lines) · role electrical · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/voltage-drop.proof.mjs#L1-L161 - Page: https://code.globalgrid2050.com/explore-code/s/0463.html#f3 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine covering cables. It is built from the check step (`check`), the near step (`near`) and the throws step (`throws`). - What it achieves (comment): Volts and watts along a run. Its code works with 3 kW. - What it does: It lists and searches cables. Defines check, near, throws. Side effects: starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (voltage levels 400V (all 33kV or below)): 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, 400V. - Inputs & outputs: Voltage levels named: 400V. - Signatures: `check(n, c)`; `near(a, b, tol)`; `throws(fn, 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 [400V] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### App Technology Vocabulary Excerpt - File: ventus-grid-engine/sources/deeplink-extracts/emitter/app-technology-vocabulary.excerpt.mjs (JavaScript, 61 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/emitter/app-technology-vocabulary.excerpt.mjs#L1-L61 - Page: https://code.globalgrid2050.com/explore-code/s/2021.html#f2 - Synopsis: A JavaScript module in the emitter folder of Ventus Grid Engine that works with solar, battery storage (BESS) and wind. - What it achieves (comment): It is built from the dictionary step (`dictionary`), the project step (`project`) and the atlas URL helper (`atlasUrl`). PROVENANCE (excerpt, not the whole file) `head_sha` (PipelineNews): . - What it does: It calculates solar, battery storage (BESS) and wind. Defines dictionary, project, atlasUrl. - Why it exists in the grid workflow: Domain terms in the code: solar, battery storage (BESS), wind. - Signatures: `dictionary(name, index)`; `project(index)`; `atlasUrl(item)` - domain_stage: unknown · 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 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 ### Wider Fleet Build Payload Excerpt - File: ventus-grid-engine/sources/deeplink-extracts/emitter/wider-fleet-build_payload.excerpt.py (Python, 25 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/emitter/wider-fleet-build_payload.excerpt.py#L1-L25 - Page: https://code.globalgrid2050.com/explore-code/s/1875.html#f3 - Synopsis: A Python module in the emitter folder of Ventus Grid Engine. - What it achieves (comment): `head_sha` (PipelineNews): lines: 155-172 (the 'row["t"]' technology-bucket field the wider-fleet emitter above reads as its 'technology' query parameter). - domain_stage: unknown · 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 ### Wider Fleet Deep Link Excerpt - File: ventus-grid-engine/sources/deeplink-extracts/emitter/wider-fleet-deep-link.excerpt.mjs (JavaScript, 95 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/emitter/wider-fleet-deep-link.excerpt.mjs#L1-L95 - Page: https://code.globalgrid2050.com/explore-code/s/2021.html#f3 - Synopsis: A JavaScript module in the emitter folder of Ventus Grid Engine covering the Renewable Energy Planning Database (REPD) register, solar and wind, and uses data from the GridAtlas repository. - What it achieves (comment): It is built from the esc step (`esc`), the atlas link helper (`atlasLink`) and the num step (`num`). `head_sha` (PipelineNews): lines: 1-80 of the file (`atlasLink` and its immediate context); full file is ~300 lines of DOM mounting code not part of the deep-link contract. - What it does: Defines esc, atlasLink, num, mountWiderFleet. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain terms in the code: the REPD register, solar, wind, battery storage (BESS). - Signatures: `export mountWiderFleet({ host, payloadAsset })`; `esc(value)`; `atlasLink(row)`; `num(value)` - domain_stage: unknown · commercial_user: none · 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 ### Place Global Search Arrival Identity Excerpt - File: ventus-grid-engine/sources/deeplink-extracts/receiver/place-global-search-arrival-identity.excerpt.js (JavaScript, 207 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/receiver/place-global-search-arrival-identity.excerpt.js#L1-L207 - Page: https://code.globalgrid2050.com/explore-code/s/2021.html#f5 - Synopsis: A JavaScript file in the receiver folder of Ventus Grid Engine that works with supplied arrival fields and still owned, covering the Renewable Energy Planning Database (REPD) register and postcodes. - What it achieves (comment): It binds search (`bindSearch`) and is built from the supplied arrival fields helper (`suppliedArrivalFields`) and the number or null helper (`numberOrNull`). `head_sha` (GridAtlas): (this file's last commit; repo HEAD is, file unchanged since). It responds to input, keydown and click events. - What it does: Defines 7 functions or classes, including suppliedArrivalFields, numberOrNull, textOrNull, receiveExactRepdDeepLink, stillOwned. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain terms in the code: the REPD register, postcodes. - Signatures: `suppliedArrivalFields(params, repdRef)`; `numberOrNull(name)`; `textOrNull(name)`; `receiveExactRepdDeepLink(input, resultsEl, expectedOwnerEpoch = null)`; `stillOwned()`; `retryExactRepdDeepLink(input, resultsEl, ownerEpoch)`; `bindSearch()` - domain_stage: unknown · 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 ### Single-Line Diagram (SLD) Sandbox Boot Trigger Excerpt - File: ventus-grid-engine/sources/deeplink-extracts/receiver/sld-sandbox-boot-trigger.excerpt.js (JavaScript, 43 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/receiver/sld-sandbox-boot-trigger.excerpt.js#L1-L43 - Page: https://code.globalgrid2050.com/explore-code/s/0463.html#f4 - Synopsis: A JavaScript file in the receiver folder of Ventus Grid Engine that works with attempt arrival (`attemptArrival`). - What it achieves (comment): It is built from the arrival has visible outcome helper (`arrivalHasVisibleOutcome`) and the attempt arrival helper (`attemptArrival`). `head_sha` (GridAtlas). - What it does: Defines arrivalHasVisibleOutcome, attemptArrival. 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. - Signatures: `arrivalHasVisibleOutcome()`; `attemptArrival()` - 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 ### Single-Line Diagram (SLD) Sandbox Deep Link Plan Excerpt - File: ventus-grid-engine/sources/deeplink-extracts/receiver/sld-sandbox-deep-link-plan.excerpt.js (JavaScript, 37 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/receiver/sld-sandbox-deep-link-plan.excerpt.js#L1-L37 - Page: https://code.globalgrid2050.com/explore-code/s/0463.html#f5 - Synopsis: A JavaScript file in the receiver folder of Ventus Grid Engine. It is built from the deep link plan helper (`deepLinkPlan`). - What it achieves (comment): `head_sha` (GridAtlas). - What it does: It calculates its inputs. Defines deepLinkPlan. - 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. - Signatures: `deepLinkPlan(rawLon, rawLat, rawRepdRef)` - VEDIC: PLAN PROJECT MAP ARRIVAL (GG2050-VEDIC-000104): GridAtlas / Map integration · Map integration. raw_longitude, raw_latitude, raw_repd_ref -> Frozen record of parsed longitude, latitude, trimmed repd_ref, coordinates_usable and route MEASURE_LINK_FIRST, WAIT_FOR_REGISTER or NO_USABLE_POINT. - 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 ### Single-Line Diagram (SLD) Sandbox Layer Control Excerpt - File: ventus-grid-engine/sources/deeplink-extracts/receiver/sld-sandbox-layer-control.excerpt.js (JavaScript, 164 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/receiver/sld-sandbox-layer-control.excerpt.js#L1-L164 - Page: https://code.globalgrid2050.com/explore-code/s/0464.html#f1 - Synopsis: A JavaScript file in the receiver folder of Ventus Grid Engine that works with enable technology layer (`enableTechnologyLayer`). - What it achieves (comment): It is built from the watch for layer controls helper (`watchForLayerControls`), the wait for layer controls helper (`waitForLayerControls`) and the enable technology layer helper (`enableTechnologyLayer`). `head_sha` (GridAtlas). - What it does: Defines watchForLayerControls, waitForLayerControls, enableTechnologyLayer. 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. - Signatures: `watchForLayerControls(onReady)`; `waitForLayerControls(budgetMs)`; `enableTechnologyLayer(tech)`; `text(input.closest('label') || input.parentElement)` - 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 ### Single-Line Diagram (SLD) Sandbox Run Deep Link Excerpt - File: ventus-grid-engine/sources/deeplink-extracts/receiver/sld-sandbox-run-deep-link.excerpt.js (JavaScript, 463 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/receiver/sld-sandbox-run-deep-link.excerpt.js#L1-L463 - Page: https://code.globalgrid2050.com/explore-code/s/0464.html#f2 - Synopsis: A JavaScript file in the receiver folder of Ventus Grid Engine that runs arrival selection (`runArrivalSelection`) (units: MW), covering substations. It runs deep link (`runDeepLink`) and runs arrival selection (`runArrivalSelection`). - What it achieves (comment): `head_sha` (GridAtlas). - What it does: Defines 8 functions or classes, including runDeepLink, framed, honourRequestedZoom, apply, coordsUsable. 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. Domain terms in the code: substations. - Signatures: `runDeepLink(expectedArrivalEpoch = null)`; `framed()`; `honourRequestedZoom(map)`; `apply()`; `coordsUsable()`; `enableBoth()`; `arrive()`; `runArrivalSelection(arrival, waitForOwnerCard = false, expectedArrivalEpoch = epoch)` - 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 ### Single-Line Diagram (SLD) Sandbox Technology Vocabulary Excerpt - File: ventus-grid-engine/sources/deeplink-extracts/receiver/sld-sandbox-technology-vocabulary.excerpt.js (JavaScript, 166 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/receiver/sld-sandbox-technology-vocabulary.excerpt.js#L1-L166 - Page: https://code.globalgrid2050.com/explore-code/s/0465.html#f1 - Synopsis: A JavaScript file in the receiver folder of Ventus Grid Engine covering grid substations, wind, solar and battery storage (BESS). - What it achieves (comment): It is built from the coverage step (`coverage`), the is project tech helper (`isProjectTech`) and the layer id for bucket helper (`layerIdForBucket`). `head_sha` (GridAtlas). - What it does: Defines coverage, isProjectTech, layerIdForBucket. 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. Domain terms in the code: wind, solar, battery storage (BESS). - Inputs & outputs: In: GeoJSON file grid_substations.geojson. - Signatures: `isProjectTech(tech)`; `layerIdForBucket(tech)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_substations.geojson]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Ventus Corev8engine Exact Renewable Energy Planning Database (REPD) Delegation Excerpt - File: ventus-grid-engine/sources/deeplink-extracts/receiver/ventus-corev8engine-exact-repd-delegation.excerpt.js (JavaScript, 102 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/receiver/ventus-corev8engine-exact-repd-delegation.excerpt.js#L1-L102 - Page: https://code.globalgrid2050.com/explore-code/s/1070.html#f3 - Synopsis: A JavaScript file in the receiver folder of Ventus Grid Engine covering elizabeth line, london underground, UK metros trams and HS2. - What it achieves (comment): `head_sha` (GridAtlas): (repo HEAD, file unchanged since) lines: 61-90 and 796-840 (two ranges from the same file, concatenated). - What it does: Defines focusCanonicalProjectDeepLink. 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. - Inputs & outputs: In: GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson. - Signatures: `focusCanonicalProjectDeepLink()` - 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]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Corridor Estimate - File: ventus-grid-engine/sources/v9-extracts/corridor-estimate.mjs (JavaScript, 82 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/v9-extracts/corridor-estimate.mjs#L1-L82 - Page: https://code.globalgrid2050.com/explore-code/s/2021.html#f6 - Synopsis: A JavaScript module in the sources folder of Ventus Grid Engine covering cables and overhead lines (OHL). It is built from the for cable helper (`forCable`). - What it achieves (comment): Extracted verbatim from `gridatlas/atlas/modules/202609030205-corridor-estimate.js`. - 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). - Signatures: `export forCable(km)` - domain_stage: hv_procurement · commercial_user: EPC_contractor, procurement_buyer · 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 ### Electrical Distance - File: ventus-grid-engine/sources/v9-extracts/electrical-distance.mjs (JavaScript, 313 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/v9-extracts/electrical-distance.mjs#L1-L313 - Page: https://code.globalgrid2050.com/explore-code/s/2022.html#f1 - Synopsis: A JavaScript module in the sources folder of Ventus Grid Engine that starts nodes (`startNodes`) (units: kV, MVA), covering transformers. - What it achieves (comment): It starts nodes (`startNodes`) and is built from the crossing step (`crossing`) and the describe step (`describe`). Extracted verbatim from `gridatlas/atlas/modules/202609012245-electrical-distance.js`. Its code works with 100 MVA. - What it does: It lists and searches transformers. 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 terms in the code: transformers. - Signatures: `export between(index, fromKey, toKey, options)`; `export within(index, key, options)`; `crossing(graph, nearNode, farNode)`; `describe(graph, entry, nearNode)`; `legality(kind, cross)`; `startNodes(graph, site, voltageKv)` - domain_stage: unknown · commercial_user: none · canonical_status: duplicate_candidate (duplicate of ventus-grid-engine/engine/electrical-distance.js) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Rating Envelope - File: ventus-grid-engine/sources/v9-extracts/rating-envelope.mjs (JavaScript, 173 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/v9-extracts/rating-envelope.mjs#L1-L173 - Page: https://code.globalgrid2050.com/explore-code/s/2022.html#f2 - Synopsis: A JavaScript module in the sources folder of Ventus Grid Engine. It is built from the seasons of helper (`seasonsOf`) and the flags for helper (`flagsFor`). - What it achieves (comment): Extracted verbatim from `gridatlas/atlas/modules/202609012250-rating-envelope.js`. - What it does: It lists and searches its content. Defines seasonsOf, flagsFor, at. Side effects: changes the web page (DOM). - Signatures: `export at(index, key, options)`; `seasonsOf(row)`; `flagsFor(published)` - domain_stage: unknown · commercial_user: none · canonical_status: duplicate_candidate (duplicate of ventus-grid-engine/engine/rating-envelope.js) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Receiver Proof - File: ventus-grid-engine/spider/receiver.proof.mjs (JavaScript, 296 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/spider/receiver.proof.mjs#L1-L296 - Page: https://code.globalgrid2050.com/explore-code/s/1683.html#f1 - Synopsis: A JavaScript module in the spider folder of Ventus Grid Engine that runs suite (`runSuite`). - What it achieves (comment): It runs suite (`runSuite`) and is built from the check step (`check`) and the with page helper (`withPage`). The Spider Sandbox receiver held to the same format as the reference it copies: `spider_full_po_test.html` in `data-federation-map-for-globalgrid2050-all-repos/dashboard/sandbox/`. - What it does: It fetches data. Defines check, withPage, runSuite, c. Uses libraries node:url, node:path, playwright. Side effects: changes the web page (DOM); makes network requests; starts processes. - 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). - Signatures: `check(name, condition)`; `withPage(browser, viewport, fn)`; `runSuite(label, browserType)`; `c(name, condition)` - 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 0; mentioned by 0 ### Sources - File: ventus-grid-engine/spider/sources.yml (YAML, 16 lines) · role docs-config · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/spider/sources.yml#L1-L16 - Page: https://code.globalgrid2050.com/explore-code/s/1683.html#f2 - Synopsis: A configuration file in the spider folder of Ventus Grid Engine using data from the stars and code-generator repositories. - What it achieves (comment): Where the Spider dashboard learns about new graphs. - 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). - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (estate-url 2); used by 0; mentioned by 0 ### Compute Receipts Workflow - File: ventus-grid-engine/.github/workflows/compute-receipts.yml (YAML, 25 lines) · role automation · stage unknown · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/.github/workflows/compute-receipts.yml#L1-L25 - Page: https://code.globalgrid2050.com/explore-code/s/1870.html#f3 - Synopsis: A GitHub Actions workflow in Ventus Grid Engine. Runs on pull requests and by hand. - What it achieves (comment): Named “Compute receipt owner verification”. - What it does: It runs automated jobs on GitHub Actions. Side effects: starts processes. - Downstream impact: It is itself an entry point (workflow); no other file was found loading it. - domain_stage: unknown · commercial_user: none · 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 ### Dashboard Review Workflow - File: ventus-grid-engine/.github/workflows/dashboard-review.yml (YAML, 35 lines) · role automation · stage unknown · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/.github/workflows/dashboard-review.yml#L1-L35 - Page: https://code.globalgrid2050.com/explore-code/s/1870.html#f4 - Synopsis: A GitHub Actions workflow in Ventus Grid Engine. Runs on push and by hand. - What it achieves (comment): Runs Verify (`verify.mjs`), Build Dashboard (`tools/build-dashboard.py`) and `tests/dashboard-browser.cjs`. - What it does: It runs automated jobs on GitHub Actions. Side effects: starts processes. - Downstream impact: It is itself an entry point (workflow); no other file was found loading it. - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (workflow-run 2); used by 0; mentioned by 0 ### Deeplink Receiver Audit Workflow - File: ventus-grid-engine/.github/workflows/deeplink-receiver-audit.yml (YAML, 75 lines) · role automation · stage unknown · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/.github/workflows/deeplink-receiver-audit.yml#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/1870.html#f5 - Synopsis: A GitHub Actions workflow in Ventus Grid Engine that builds and publishes the site. Runs on push, on a schedule and by hand. - What it achieves (comment): Runs Verify (`verify.mjs`), Deeplink Receiver Proof (`proofs/deeplink-receiver.proof.mjs`) and Audit Receivers (`tools/audit-receivers.mjs`). - What it does: It builds and publishes its content. Side effects: starts processes. - Downstream impact: It is itself an entry point (workflow); no other file was found loading it. - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 3 estate files (workflow-run 3); used by 0; mentioned by 0 ### Genome Workflow - File: ventus-grid-engine/.github/workflows/genome.yml (YAML, 97 lines) · role automation · stage ingest · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/.github/workflows/genome.yml#L1-L97 - Page: https://code.globalgrid2050.com/explore-code/s/1870.html#f6 - Synopsis: A GitHub Actions workflow in Ventus Grid Engine. Runs on push and by hand. - What it achieves (comment): The genome graph, kept honest and re-derivable. - What it does: It runs automated jobs on GitHub Actions. Side effects: reads or writes files; starts processes. - Inputs & outputs: In: JSON file engine-graph.json. Out: commits pushed to the repository. - Downstream impact: It is itself an entry point (workflow); no other file was found loading it. - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file engine-graph.json]; out [commits pushed to the repository]; crs []; voltages [] - Edges: uses 2 estate files (workflow-run 2); used by 0; mentioned by 0 ### Spider Features Workflow - File: ventus-grid-engine/.github/workflows/spider-features.yml (YAML, 81 lines) · role automation · stage unknown · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/.github/workflows/spider-features.yml#L1-L81 - Page: https://code.globalgrid2050.com/explore-code/s/1870.html#f7 - Synopsis: A GitHub Actions workflow in Ventus Grid Engine that builds and publishes the site. Runs on push, on a schedule and by hand. - What it achieves (comment): Runs Verify (`verify.mjs`), Update Manifest (`spider/update_manifest.py`) and Overview (`spider/overview.py`). - What it does: It builds and publishes its content. Side effects: starts processes. - 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). - Inputs & outputs: Out: commits pushed to the repository. - Downstream impact: It is itself an entry point (workflow); no other file was found loading it. - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [commits pushed to the repository]; crs []; voltages [] - Edges: uses 4 estate files (workflow-run 4); used by 0; mentioned by 0 ### Verify Workflow - File: ventus-grid-engine/.github/workflows/verify.yml (YAML, 28 lines) · role automation · stage unknown · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/.github/workflows/verify.yml#L1-L28 - Page: https://code.globalgrid2050.com/explore-code/s/1870.html#f8 - Synopsis: A GitHub Actions workflow in Ventus Grid Engine that builds and publishes the site. Runs on push, on pull requests and by hand. - What it achieves (comment): Runs Verify (`verify.mjs`). - What it does: It builds and publishes its content. Side effects: starts processes. - Downstream impact: It is itself an entry point (workflow); no other file was found loading it. - domain_stage: unknown · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (workflow-run 1); used by 0; mentioned by 0