# Journey B: Inside-the-Fence Sub-33kV Design & BoQ — 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. Journey page: https://code.globalgrid2050.com/explore-code/journeys/b.html. Steps (named in Ventus Ltd's brief): 1. Solar Design Studio: globalgrid2050/energy-transition-simulator/202609280014 (found by homepage launch link: "Open Solar Design Studio" -> https://globalgrid2050.com/energy-transition-simulator/202609282123/overlay.html); globalgrid2050/solar-design-studio (found by folder name: globalgrid2050/solar-design-studio) 2. Ventus Grid Engine: ventus-grid-engine (found by repository name: ventus-grid-engine) 3. Cable Trench or Drill: cable-trench-or-drill (found by repository name: cable-trench-or-drill) 4. Soil: soil (found by repository name: soil) 5. Metals & Cable Prices: not found in the public estate. The homepage links "Open Metals & Cable Prices" to https://globalgrid2050.com/copper_and_aluminium_prices_historic_trends/, but no code file in the public estate serves that address; globalgrid2050/copper_and_aluminium_prices_historic_trends.md holds it, which is not code. Links between steps: - No direct code link found between Solar Design Studio and Ventus Grid Engine. - No direct code link found between Ventus Grid Engine and Cable Trench or Drill. - No direct code link found between Cable Trench or Drill and Soil. - No direct code link found between Soil and Metals & Cable Prices. ## Step 1: Solar Design Studio ### Overlay - File: globalgrid2050/energy-transition-simulator/202609280014/overlay.html (HTML, 300 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/overlay.html#L1-L300 - Page: https://code.globalgrid2050.com/explore-code/s/0851.html#f3 - Published at: https://globalgrid2050.com/energy-transition-simulator/202609280014/overlay.html - Synopsis: A map page in GlobalGrid2050 that maps grid substations, DEM and solar, using OSTN15 and Helmert, and uses data from OpenStreetMap (Overpass) and the GridAtlas repository. Published at https://globalgrid2050.com/energy-transition-simulator/202609280014/overlay.html. - What it achieves (name): It adds grid (`addGrid`), sets mode (`setMode`) and loads rows (`loadRows`). Defines `placed`, `withAnchor`, `addGrid` and 17 more. It reads `mod/index.json`. It responds to keydown, keyup and pointerdown events. - What it does: It maps grid substations, DEM, solar and LiDAR terrain. Defines 24 functions or classes, including placed, withAnchor, addGrid, block, c. Side effects: changes the web page (DOM); makes network requests. - 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, LiDAR terrain. - Inputs & outputs: In: data source: OpenStreetMap (Overpass); data source: gridatlas data; JSON file style.json; GeoJSON file grid_substations.geojson; JSON file index.json. Out: web page; interactive map; canvas drawing. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. - Downstream impact: Used directly by 7 files: SatNav — Scope Page (satnav, https://ventusltd.github.io/satnav/scope/); GlobalGrid2050 — Energy Transition Simulator Page (globalgrid2050, https://globalgrid2050.com/energy-transition-simulator/202609280014/); GlobalGrid2050 — Energy Transition Simulator Page (globalgrid2050, https://globalgrid2050.com/energy-transition-simulator/); Energy Transition Simulator — Latest Page (globalgrid2050, https://globalgrid2050.com/energy-transition-simulator/latest/); and 3 more. Reached from 16 other entry points, including Kuiper Belt — See Through Page (kuiper-belt, https://ventusltd.github.io/kuiper-belt/see-through/202610050513/); Lesson (kuiper-belt, https://ventusltd.github.io/kuiper-belt/learn-the-kuiper/202610050609/lesson.html); Menu (kuiper-belt, https://ventusltd.github.io/kuiper-belt/learn-the-kuiper/202610050354/menu.html). It is itself an entry point, published at https://globalgrid2050.com/energy-transition-simulator/202609280014/overlay.html. - Signatures: `placed(lon, lat, lines, extra = {}, pre = false)`; `withAnchor(m, o)`; `addGrid()`; `block(lon, lat)`; `c(x, y, s, h)`; `onAdd(m, gl)`; `sh(t, s)`; `ground()`; `setMode(m)`; `joyAt(e)`; `tick(t)`; `f(keys.has('w') || keys.has('arrowup') ? 1 : 0)`; `r(keys.has('d') ? 1 : 0)`; `turn(keys.has('e') || keys.has('arrowright') ? 1 : 0)`; `tilt(keys.has('r') ? 1 : 0)`; `dn(f * Math.cos(b) - r * Math.sin(b))`; `loadRows()`; `h(y)`; `tower(h)`; `buildPylons()`; `readout()`; `pfLine(tag, lat, lon)`; `pfReadout()`; `render()`; `lonLatToTile(lon, lat, z)` (and 11 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass); data source: gridatlas data; JSON file style.json; GeoJSON file grid_substations.geojson; JSON file index.json]; out [web page; interactive map; canvas drawing]; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [] - Edges: uses 3 estate files (import 3); used by 7; mentioned by 0 ### Solar Design Studio — Site World Page - File: globalgrid2050/solar-design-studio/202609271853-site-world/index.html (HTML, 363 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/index.html#L1-L363 - Page: https://code.globalgrid2050.com/explore-code/s/0169.html#f2 - Published at: https://globalgrid2050.com/solar-design-studio/202609271853-site-world/ - Synopsis: A web page in GlobalGrid2050 that draws bill of quantities, cables, substations and postcodes. Published at https://globalgrid2050.com/solar-design-studio/202609271853-site-world/. - What it achieves (comment): Every module the first frame imports is fetched with the page, all at once, not one import level at a time; the manifest. - What it does: It draws bill of quantities, cables, substations and postcodes. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): 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, substations, postcodes. - Inputs & outputs: In: user-supplied file (file picker); form fields (user input). Out: CSV file bill-of-quantities.csv; downloaded file bill-of-quantities.csv; web page; SVG drawing. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/solar-design-studio/202609271853-site-world/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [user-supplied file (file picker); form fields (user input)]; out [CSV file bill-of-quantities.csv; downloaded file bill-of-quantities.csv; web page; SVG drawing]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 23 estate files (modulepreload 23); used by 0; mentioned by 0 ### Solar Design Studio — Site World V3 Page - File: globalgrid2050/solar-design-studio/202609270402-site-world-v3/index.html (HTML, 355 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270402-site-world-v3/index.html#L1-L355 - Page: https://code.globalgrid2050.com/explore-code/s/0149.html#f2 - Published at: https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/ - Synopsis: A web page in GlobalGrid2050 that draws bill of quantities, cables, substations and postcodes. Published at https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/. - What it achieves (comment): Every module the first frame imports is fetched with the page, all at once, not one import level at a time; the manifest. - What it does: It draws bill of quantities, cables, substations and postcodes. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): 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, substations, postcodes. - Inputs & outputs: In: user-supplied file (file picker); form fields (user input). Out: CSV file bill-of-quantities.csv; downloaded file bill-of-quantities.csv; web page; SVG drawing. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [user-supplied file (file picker); form fields (user input)]; out [CSV file bill-of-quantities.csv; downloaded file bill-of-quantities.csv; web page; SVG drawing]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 23 estate files (modulepreload 23); used by 0; mentioned by 0 ### GlobalGrid2050 — Energy Transition Simulator Page - File: globalgrid2050/energy-transition-simulator/202609280014/index.html (HTML, 1 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/index.html#L1-L1 - Page: https://code.globalgrid2050.com/explore-code/s/0842.html#f4 - Published at: https://globalgrid2050.com/energy-transition-simulator/202609280014/ - Synopsis: A web page. Published at https://globalgrid2050.com/energy-transition-simulator/202609280014/. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (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. - Inputs & outputs: Out: web page. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/energy-transition-simulator/202609280014/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (link 1); used by 0; mentioned by 0 ### Substrate - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/substrate.mjs (JavaScript, 398 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/substrate.mjs#L1-L398 - Page: https://code.globalgrid2050.com/explore-code/s/0194.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that sets origin (`setOrigin`), writes readout (`writeReadout`), opens panel (`openPanel`) and calculates planar distances (units: kV). - What it achieves (comment): It sets origin (`setOrigin`), writes readout (`writeReadout`) and opens panel (`openPanel`). The substrate: an empty world you can move around in. It reads `./world/data/attribution.json`. It responds to click, resize and close events. - What it does: It draws attribution, overhead lines (OHL), LiDAR terrain and substations. Defines 29 functions or classes, including $, fadeAt, tourPlaying, live, shown. Side effects: changes the web page (DOM); reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL), LiDAR terrain, substations. - Inputs & outputs: In: JSON file attribution.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/). - Signatures: `$(id)`; `fadeAt()`; `tourPlaying()`; `live()`; `shown()`; `guarded(l, fn, fallback)`; `baseHeight(x, y)`; `measuredAt(x, y)`; `known(x, y)`; `groundSource(x, y)`; `heightAt(x, y)`; `solids()`; `invalidate({ ground = true } = {})`; `gridAssets()`; `subs(model.substations || [])`; `towers(model.lines || [])`; `knownTowers()`; `setOrigin(e, n)`; `playing()`; `target()`; `moving()`; `flyTo(x, y, opts = {})`; `draw(now, intervalMs)`; `t(now - arrival.t0)`; `collect(pos)` (and 9 more) - VEDIC: HEIGHT (GG2050-VEDIC-000011): Solar Design Studio / LiDAR · Mathematics / Raster sampling. bng_easting_m, bng_northing_m -> height_receipt_or_null - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file attribution.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 23 estate files (import 17, dynamic-import 6); used by 1; mentioned by 0 ### Substrate - File: globalgrid2050/solar-design-studio/202609270402-site-world-v3/world/substrate.mjs (JavaScript, 387 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270402-site-world-v3/world/substrate.mjs#L1-L387 - Page: https://code.globalgrid2050.com/explore-code/s/0152.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that sets origin (`setOrigin`), writes readout (`writeReadout`), opens panel (`openPanel`) and calculates planar distances (units: kV). - What it achieves (comment): It sets origin (`setOrigin`), writes readout (`writeReadout`) and opens panel (`openPanel`). The substrate: an empty world you can move around in. It reads `./world/data/attribution.json`. It responds to click, resize and close events. - What it does: It draws attribution, overhead lines (OHL), LiDAR terrain and substations. Defines 28 functions or classes, including $, fadeAt, tourPlaying, live, shown. Side effects: changes the web page (DOM); reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: overhead lines (OHL), LiDAR terrain, substations. - Inputs & outputs: In: JSON file attribution.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/). - Signatures: `$(id)`; `fadeAt()`; `tourPlaying()`; `live()`; `shown()`; `guarded(l, fn, fallback)`; `baseHeight(x, y)`; `measuredAt(x, y)`; `known(x, y)`; `groundSource(x, y)`; `heightAt(x, y)`; `solids()`; `invalidate({ ground = true } = {})`; `gridAssets()`; `subs(model.substations || [])`; `towers(model.lines || [])`; `setOrigin(e, n)`; `playing()`; `target()`; `moving()`; `flyTo(x, y, opts = {})`; `draw(now, intervalMs)`; `t(now - arrival.t0)`; `collect(pos)`; `chooseView(v, { arrive: fly = true } = {})` (and 7 more) - VEDIC: HEIGHT (GG2050-VEDIC-000011): Solar Design Studio / LiDAR · Mathematics / Raster sampling. bng_easting_m, bng_northing_m -> height_receipt_or_null - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file attribution.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 18 estate files (import 17, dynamic-import 1); used by 1; mentioned by 0 ### Layers - File: globalgrid2050/solar-design-studio/202609270402-site-world-v3/world/layers.mjs (JavaScript, 224 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270402-site-world-v3/world/layers.mjs#L1-L224 - Page: https://code.globalgrid2050.com/explore-code/s/0150.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that loads base (`loadBase`) and lib (`loadLib`) and fetches checked (`fetchChecked`), using SHA-256. - What it achieves (comment): It loads base (`loadBase`), loads lib (`loadLib`) and imports text (`importText`). The manifest lists layers in order; each layer file is fetched, its SHA-256 compared with the manifest, and only then imported. - What it does: It fetches data. Defines 20 functions or classes, including loadBase, withBase, loadLib, no, libRefusal. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 7 files: Cable Checks UI (globalgrid2050); Buffers UI (globalgrid2050); Sun Mode (globalgrid2050); Layers UI (globalgrid2050); and 3 more. - Signatures: `export loadBase()`; `export loadLib(entry, base, { get = (u, o) => fetch(u, o), load = importText } = {})`; `export libRefusal(want, lib, why)`; `export loadLayers(manifestUrl, hooks = {})`; `export statusLine(item)`; `export startLayer(item, api)`; `export makeApi(base, { invalidate = () => {}, origin = () => ({ e: 0, n: 0, id: 0 }), fetchImpl, lib = LIB } = {})`; `export normalise(text)`; `export sha256(text)`; `export sha256Bytes(bytes)`; `withBase(o)`; `no(why)`; `earlyFetch(url)`; `importText(text)`; `fetchChecked(entry)`; `start(item, entry, got)`; `fetchOne(e)`; `off(e)`; `fetchVerified(path, sha)`; `fetchJSON(path, sha)` - 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 4 estate files (dynamic-import 3, import 1); used by 7; mentioned by 1 ### Layers - File: globalgrid2050/solar-design-studio/202609270439-site-world/world/layers.mjs (JavaScript, 226 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270439-site-world/world/layers.mjs#L1-L226 - Page: https://code.globalgrid2050.com/explore-code/s/0153.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that loads base (`loadBase`) and lib (`loadLib`) and fetches checked (`fetchChecked`), using SHA-256. - What it achieves (comment): It loads base (`loadBase`), loads lib (`loadLib`) and imports text (`importText`). The manifest lists layers in order; each layer file is fetched, its SHA-256 compared with the manifest, and only then imported. - What it does: It fetches data. Defines 20 functions or classes, including loadBase, withBase, loadLib, no, libRefusal. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 7 files: Layers UI (globalgrid2050); Buffers UI (globalgrid2050); Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Cmd Run (globalgrid2050); and 3 more. - Signatures: `export loadBase()`; `export loadLib(entry, base, { get = (u, o) => fetch(u, o), load = importText } = {})`; `export libRefusal(want, lib, why)`; `export loadLayers(manifestUrl, hooks = {})`; `export statusLine(item)`; `export startLayer(item, api)`; `export makeApi(base, { invalidate = () => {}, origin = () => ({ e: 0, n: 0, id: 0 }), fetchImpl, lib = LIB, towers = () => [] } = {})`; `export normalise(text)`; `export sha256(text)`; `export sha256Bytes(bytes)`; `withBase(o)`; `no(why)`; `earlyFetch(url)`; `importText(text)`; `fetchChecked(entry)`; `start(item, entry, got)`; `fetchOne(e)`; `off(e)`; `fetchVerified(path, sha)`; `fetchJSON(path, sha)` - 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 4 estate files (dynamic-import 3, import 1); used by 7; mentioned by 0 ### Origin - File: globalgrid2050/solar-design-studio/202609270005-site-world-v3/world/origin.mjs (JavaScript, 31 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270005-site-world-v3/world/origin.mjs#L1-L31 - Page: https://code.globalgrid2050.com/explore-code/s/0123.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that converts to local (`toLocal`) and bng (`toBng`). - What it achieves (comment): It is built from the to local helper (`toLocal`), the to bng helper (`toBng`) and the rebase if needed helper (`rebaseIfNeeded`). The world is drawn in local `east/north/up` metres around an origin held in float64 British National Grid metres ({ e, n, id }). - What it does: It calculates its inputs. Defines toLocal, toBng, rebaseIfNeeded. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 24 files: Links (globalgrid2050); Plan Wire (globalgrid2050); Tour (globalgrid2050); Design Earthworks (globalgrid2050); and 20 more. Reached from 2 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/). - Signatures: `export toLocal(origin, e, n)`; `export toBng(origin, x, y)`; `export rebaseIfNeeded(origin, pos, { limit = 600, tile = 1000 } = {})` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · 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 24; mentioned by 1 ### Single-Line Diagram (SLD) Rules - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/sld-rules.mjs (JavaScript, 93 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/sld-rules.mjs#L1-L93 - Page: https://code.globalgrid2050.com/explore-code/s/0194.html#f1 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables, transformers, battery storage (BESS) and solar, using IEC 60502-2 and BS 7671. - What it achieves (comment): It groups factor (`groupFactor`) and is built from the economic size helper (`economicSize`) and the cost step (`cost`). The generic electrical rules the single-line diagram generator shares (`sld-plant.mjs`, `block-mv.mjs`, `sld-graph.mjs`): group factors for circuits sharing a trench, an economic step on top of the technical cable size, the switching and protection devices of each functional way. Its code works with 33 kV. - What it does: It calculates cables, transformers, battery storage (BESS) and solar. Defines groupFactor, economicSize, cost, isolationChecks, zOf. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): 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, transformers, battery storage (BESS), solar, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 12 files: Block MV (globalgrid2050); Single-Line Diagram (SLD) Calc (globalgrid2050); Single-Line Diagram (SLD) Graph (globalgrid2050); Single-Line Diagram (SLD) Plant (globalgrid2050); and 8 more. Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export groupFactor(n)`; `export economicSize(area, mva, lengthM, opts = {})`; `export isolationChecks(at = INVERTER_ISOLATION)`; `export zOf(mag, xr)`; `pw(1 - (1 + e.rate) ** -e.years)`; `cost(a)` - 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 [33kV] - Edges: uses 3 estate files (import 3); used by 12; mentioned by 0 ### Station - File: globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/station.mjs (JavaScript, 260 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270220-site-world-v3/world/station.mjs#L1-L260 - Page: https://code.globalgrid2050.com/explore-code/s/0142.html#f3 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with transformers, cables and solar. - What it achieves (comment): It is built from the cfg step (`cfg`), the table shape helper (`tableShape`) and the table origin helper (`tableOrigin`). Solar station library: paired tables, pole inverters, DC home cables in ducts, AC trenches, 2 x 5MVA. Its code works with 5 MVA. - What it does: It calculates transformers, cables and solar. Defines 20 functions or classes, including cfg, tableShape, tableOrigin, stringsPerTable, tableStrings. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): 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, cables, solar. - Downstream impact: Used directly by 11 files: Cmd Trench (globalgrid2050); Block Trenches (globalgrid2050); Block Build (globalgrid2050); MV Network (globalgrid2050); and 7 more. Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export tableShape(params)`; `export tableOrigin(n, params)`; `export stringsPerTable(params)`; `export tableStrings(params, { corners = true } = {})`; `export dcOrder(n, wiring = 'sequential')`; `export seriesLinks(string, wiring = 'sequential')`; `export inverterSite(k, params)`; `export dcDucts(sites, params)`; `export dcHomeRoutes(strings, sites, params)`; `export acRoute(p, t, id, label, params)`; `export acTrenches(sites, transformers, params)`; `export compoundBox(transformers)`; `export stationSolids(params, sites, transformers)`; `export stationInventory(params, strings = tableStrings(params, { corners: false }))`; `export placer(at = [0, 0, 0], heading = 0)`; `export station(params, { at = [0, 0, 0], heading = 0, corners = true } = {})`; `cfg(p)`; `v(side === 1 ? s.rows - 1 - r : r)`; `p(dv, du)`; `offset((slot % 6) * 2 + end - 5.5)`; `point([x, y, z = 0])`; `box(b)` - 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 11; mentioned by 0 ### Measure Format - File: globalgrid2050/solar-design-studio/202609271740-site-world/world/measure-format.mjs (JavaScript, 112 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271740-site-world/world/measure-format.mjs#L1-L112 - Page: https://code.globalgrid2050.com/explore-code/s/0165.html#f4 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables. It formats number (`formatNumber`), formats length (`formatLength`) and formats area (`formatArea`). - What it achieves (comment): Plain British English lines from the numbers `measure.mjs` returns. - What it does: It calculates cables. Defines 16 functions or classes, including formatNumber, formatLength, formatArea, formatVolume, formatGradient. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 11 files: Design Earthworks (globalgrid2050); Block UI (globalgrid2050); Single-Line Diagram (SLD) Follow (globalgrid2050); Single-Line Diagram (SLD) Mount (globalgrid2050); and 7 more. Reached from 2 other entry points, including Solar Design Studio — Site World Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609271853-site-world/); Substrate (globalgrid2050). - Signatures: `export formatNumber(x, dp = 1)`; `export formatLength(m, dp = 1)`; `export formatArea(m2, dp = 1)`; `export formatVolume(m3, dp = 1)`; `export formatGradient(g, dp = 1)`; `export formatTrenchLine(ts, cs = null)`; `export formatCableLine(cs)`; `export formatPlatformLine(cf)`; `export formatProfileLine(p)`; `export fmtSig(x, sf = 3)`; `export fmtQ(v, unit = '', sf = 3)`; `export fmtPct(p)`; `export fmtLen(m)`; `export fmtVolt(v)`; `plural(n, one, many)`; `belowPhrase(cs)` - 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 11; mentioned by 0 ### Boq Assumptions - File: globalgrid2050/solar-design-studio/202609270056-site-world-v3/world/boq-assumptions.mjs (JavaScript, 68 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609270056-site-world-v3/world/boq-assumptions.mjs#L1-L68 - Page: https://code.globalgrid2050.com/explore-code/s/0127.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that works with cables. It is built from the road build up helper (`roadBuildUp`) and the from road helper (`fromRoad`). - What it achieves (comment): The default values the bill of quantities falls back on when a design item does not say. - What it does: It calculates cables. Defines roadBuildUp, fromRoad. - Why it exists in the grid workflow: Domain stage hv_procurement (path word 'boq'): HV materials procurement, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 10 files: Drums (globalgrid2050); Boq (globalgrid2050); Design Earthworks (globalgrid2050); Design Ground (globalgrid2050); and 6 more. - Signatures: `export roadBuildUp(layers)`; `fromRoad(surface)` - 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 10; mentioned by 1 ### Views - File: globalgrid2050/solar-design-studio/202609271853-site-world/world/views.mjs (JavaScript, 74 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/solar-design-studio/202609271853-site-world/world/views.mjs#L1-L74 - Page: https://code.globalgrid2050.com/explore-code/s/0195.html#f2 - Synopsis: A JavaScript module in the world folder of GlobalGrid2050 that calculates planar distances. - What it achieves (comment): It sets view (`setView`) and is built from the speed of helper (`speedOf`) and the fps of helper (`fpsOf`). Walk and drone, and one movement step. - What it does: It calculates its inputs. Defines 11 functions or classes, including speedOf, fpsOf, step, at, blocked. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'design'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 10 files: Xr Pose (globalgrid2050); Xr (globalgrid2050); Solar Design Studio — Site World V3 Page (globalgrid2050, https://globalgrid2050.com/solar-design-studio/202609270402-site-world-v3/); Substrate (globalgrid2050); and 6 more. Reached from 2 other entry points, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/); Versions — Site World Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/202609262227-site-world/). - Signatures: `export speedOf(view, slow)`; `export fpsOf(view, slow)`; `export step(state, input, dt, heightAt, solids = [])`; `export blocked([x, y, z], body, solids)`; `export standOn(next, view, solids)`; `export look(state, dYaw, dPitch)`; `export setView(state, view, heightAt)`; `export toggle(current, wanted)`; `at(x, y, z)`; `clamp(v, a, b)`; `wrap(a)` - 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 10; mentioned by 1 ## Step 2: Ventus Grid Engine ### 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 ### 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 ### 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 ### 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 ### 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 ### 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 ### 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 ### 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 ### 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 ### 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 ### 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 ### 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 ## Step 3: Cable Trench or Drill ### Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Page - File: cable-trench-or-drill/releases/202609052001/solar-bess-topology-v7/cable-geometry-visualiser/index.html (HTML, 280 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/releases/202609052001/solar-bess-topology-v7/cable-geometry-visualiser/index.html#L1-L280 - Page: https://code.globalgrid2050.com/explore-code/s/0005.html#f1 - Synopsis: A web page in Cable Trench or Drill covering cables, 132kV, 33kV and solar, using BS EN 50618 and BS 7671, and uses data from UK Power Networks open data. - What it achieves (name): Its code works with 1 kV, 132 kV and 33 kV. - What it does: It draws cables, 132kV, 33kV and solar. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): 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, 132kV, 33kV, solar, 110kV, 66kV. - Inputs & outputs: In: form fields (user input). Out: web page. Voltage levels named: 132kV, 110kV, 66kV, 33kV, 20kV, 15kV, 10kV, 6kV. - Downstream impact: Used directly by 4 files: GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V7 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/); Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/module-layout/); Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/); Spider Maya — V1 Page (spiders, https://ventusltd.github.io/spiders/spider_maya/v1/). Reached from 137 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [132kV, 110kV, 66kV, 33kV, 20kV, 15kV, 10kV, 6kV] - Edges: uses 7 estate files (script-src 6, stylesheet 1); used by 4; mentioned by 0 ### Verify Derived Workflow - File: cable-trench-or-drill/.github/workflows/verify-derived.yml (YAML, 42 lines) · role automation · stage unknown · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/.github/workflows/verify-derived.yml#L1-L42 - Page: https://code.globalgrid2050.com/explore-code/s/1684.html#f4 - Synopsis: A GitHub Actions workflow in Cable Trench or Drill. Runs on push, on pull requests and by hand. - What it achieves (comment): Named “Verify derived Cable cartridge provenance”; runs Test Verify Derived (`tools/test_verify_derived.py`) and Verify Derived (`tools/verify_derived.py`). - What it does: It runs cables. Side effects: starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'cable'): 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. - Inputs & outputs: In: JSON file derived-latest.json. - Downstream impact: It is itself an entry point (workflow); no other file was found loading it. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file derived-latest.json]; out []; crs []; voltages [] - Edges: uses 3 estate files (workflow-run 3); used by 0; mentioned by 0 ### Verify Original Workflow - File: cable-trench-or-drill/.github/workflows/verify-original.yml (YAML, 40 lines) · role automation · stage unknown · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/.github/workflows/verify-original.yml#L1-L40 - Page: https://code.globalgrid2050.com/explore-code/s/1684.html#f5 - Synopsis: A GitHub Actions workflow in Cable Trench or Drill. Runs on push, on pull requests and by hand. - What it achieves (comment): Named “Verify original Cable Geometry baseline”; runs Test Verify (`tools/test_verify.py`) and Verify (`tools/verify.py`). - What it does: It runs cables. Side effects: starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'cable'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: It is itself an entry point (workflow); no other file was found loading it. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (workflow-run 2); used by 0; mentioned by 0 ### Verify Route Constraints Workflow - File: cable-trench-or-drill/.github/workflows/verify-route-constraints.yml (YAML, 67 lines) · role automation · stage ingest · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/.github/workflows/verify-route-constraints.yml#L1-L67 - Page: https://code.globalgrid2050.com/explore-code/s/1684.html#f6 - Synopsis: A GitHub Actions workflow in Cable Trench or Drill. Runs on push, on pull requests and on a schedule. - What it achieves (comment): Named “Verify route-constraint cartridge and its engine pin”; runs Route Constraints Test (`tools/route-constraints.test.mjs`). - What it does: It runs automated jobs on GitHub Actions. Side effects: reads or writes files; makes network requests; 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. - Inputs & outputs: In: JSON file engine-pin.json. - Downstream impact: It is itself an entry point (workflow); no other file was found loading it. - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file engine-pin.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (workflow-run 1); used by 0; mentioned by 0 ### Test Verify Derived - File: cable-trench-or-drill/tools/test_verify_derived.py (Python, 101 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/tools/test_verify_derived.py#L1-L101 - Page: https://code.globalgrid2050.com/explore-code/s/0006.html#f3 - Synopsis: A test in the tools folder of Cable Trench or Drill that checks Verify Derived, using SHA-256. - What it achieves (name): It sets up (`setUp`) and is built from the derived release class (`DerivedRelease`) and the encode step (`encode`). Defines `DerivedRelease`, `setUp`, `git` and 16 more. It writes `latest.json`. - What it does: It tests its inputs. Defines 19 functions or classes, including DerivedRelease, setUp, git, encode, sha. Uses libraries copy, hashlib, json, subprocess, tempfile. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'cable'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file latest.json; JSON file derived-latest.json. - Downstream impact: Used directly by 1 file: Verify Derived Workflow (cable-trench-or-drill). - Signatures: `class DerivedRelease`; `setUp(self)`; `git(*args)`; `encode(value)`; `sha(raw)`; `write(self, path, raw)`; `record(self, path, raw)`; `pin(self)`; `replace(self, path, raw)`; `refused(self, text)`; `test_valid_release_passes_despite_dirty_unrelated_baseline_worktree(self)`; `test_formula_change_fails_even_with_rehashed_manifest(self)`; `test_extra_entry_change_fails_even_with_rehashed_manifest(self)`; `test_cartridge_must_match_maintained_source(self)`; `test_unknown_role_traversal_duplicate_and_missing_member_fail(self)`; `test_missing_or_unpinned_sibling_fails(self)`; `test_github_repository_url_is_supported_but_other_host_is_not(self)`; `test_baseline_and_pointer_hashes_are_checked(self)`; `test_syntax_is_checked_even_when_cartridge_matches_source(self)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file latest.json; JSON file derived-latest.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Render Readiness Test - File: cable-trench-or-drill/tools/render-readiness.test.mjs (JavaScript, 62 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/tools/render-readiness.test.mjs#L1-L62 - Page: https://code.globalgrid2050.com/explore-code/s/0005.html#f6 - Synopsis: A test in the tools folder of Cable Trench or Drill that checks Render Readiness. - What it achieves (readme): It is built from the settle step (`settle`), the fixture step (`fixture`) and the target class (`Target`). The README says: `src/cable-geometry/render-readiness.js` observes the original snapshot after the three geometry canvases are drawn. - What it does: It tests its inputs. Defines settle, fixture, Target, Observer, event. Uses libraries node:test, node:assert/strict, node:fs, node:vm. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'cable'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. README: "`src/cable-geometry/render-readiness.js` observes the original snapshot after the three geometry canvases are drawn." - Downstream impact: Used directly by 1 file: Verify Derived Workflow (cable-trench-or-drill). - Signatures: `settle()`; `fixture()`; `class Target`; `addEventListener(type,listener,options)`; `removeEventListener(type,listener,options)`; `class Observer`; `event(type,id)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (url-import-meta 1); used by 1; mentioned by 0 ### Route Constraints Test - File: cable-trench-or-drill/tools/route-constraints.test.mjs (JavaScript, 180 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/tools/route-constraints.test.mjs#L1-L180 - Page: https://code.globalgrid2050.com/explore-code/s/0006.html#f1 - Synopsis: A test in the tools folder of Cable Trench or Drill that checks Route Constraints, using SHA-256. - What it achieves (comment): It is built from the check step (`check`), the stub engine helper (`stubEngine`) and the fetch for helper (`fetchFor`). The second result must never become the first. - What it does: It tests its inputs. Defines check, stubEngine, fetchFor. Uses libraries node:fs, node:url, node:path, node:crypto. Side effects: reads or writes files; 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. - Inputs & outputs: In: JSON file engine-pin.json. - Downstream impact: Used directly by 1 file: Verify Route Constraints Workflow (cable-trench-or-drill). - Signatures: `check(n, c)`; `stubEngine({ blocked = false } = {})`; `routeEstimate({ straightLineKm, crossings, corridorFactor })`; `fetchFor({ source = STUB_SOURCE, sha = STUB_SHA, status = 200 } = {})` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file engine-pin.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Verify Derived - File: cable-trench-or-drill/tools/verify_derived.py (Python, 127 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/tools/verify_derived.py#L1-L127 - Page: https://code.globalgrid2050.com/explore-code/s/0006.html#f5 - Synopsis: A Python command-line tool in the tools folder of Cable Trench or Drill that works with git bytes (`git_bytes`), covering cables, using SHA-256. - What it achieves (comment): It is built from the digest step (`digest`), the safe step (`safe`) and the verify step (`verify`). Verify an explicit Cable derived release without weakening the original baseline gate. It accepts `--root` and `--out`. - What it does: Defines digest, safe, git_bytes, verify, require. Uses libraries argparse, hashlib, json, re, subprocess. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'cable'): 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. - Inputs & outputs: In: JSON file derived-latest.json; JSON file latest.json; command-line arguments. - Downstream impact: Used directly by 2 files: Test Verify Derived (cable-trench-or-drill); Verify Derived Workflow (cable-trench-or-drill). - Signatures: `digest(raw)`; `safe(root, name)`; `git_bytes(repo, commit, path)`; `verify(repo)`; `require(ok, text)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file derived-latest.json; JSON file latest.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Calculations - File: cable-trench-or-drill/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/calculations.js (JavaScript, 166 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/calculations.js#L1-L166 - Page: https://code.globalgrid2050.com/explore-code/s/0001.html#f1 - Synopsis: A JavaScript file in the cable geometry visualiser folder of Cable Trench or Drill that clamps integer (`clampInteger`), formats mm (`formatMm`) and gets burial depth computation (`getBurialDepthForComputation`), covering cables. - What it achieves (name): It clamps integer (`clampInteger`), formats mm (`formatMm`) and gets burial depth computation (`getBurialDepthForComputation`). Defines `byId`, `clampInteger`, `formatMm` and 8 more. Its code works with 33 kV. - What it does: Defines 11 functions or classes, including byId, clampInteger, formatMm, effectiveGap, getBurialDepthForComputation. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): 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, 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Page (cable-trench-or-drill); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/). Reached from 144 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). - Signatures: `byId(id)`; `clampInteger(value, fallback, minValue)`; `formatMm(v)`; `effectiveGap(basis, spacing, od)`; `getBurialDepthForComputation()`; `normaliseBurialDepthFieldOnBlur()`; `normaliseIntegerFields()`; `getInputs()`; `getGroupGeometry(inputs)`; `computeLayout(inputs)`; `formationWidth(maxRowCount * geom.width)`; `formationDepth(rows * geom.depth)`; `buildReview(inputs, layout)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser - File: cable-trench-or-drill/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/data.js (JavaScript, 428 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/data.js#L1-L428 - Page: https://code.globalgrid2050.com/explore-code/s/0001.html#f2 - Synopsis: A JavaScript file in Cable Trench or Drill that works with cables, 33kV, 66kV and 110kV, using IEC 60502-2 and BS EN 60502-1. It looks up od (`lookupOD`). - What it achieves (comment): Model coefficients (single core, fitted to Utility/Manufacturer data). Its code works with 1 kV, 33 kV and 66 kV. - What it does: It calculates cables, 33kV, 66kV and 110kV. Defines lookupOD. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): 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, 33kV, 66kV, 110kV, 132kV, 20kV. - Inputs & outputs: Voltage levels named: 132kV, 110kV, 66kV, 33kV, 20kV, 15kV, 10kV, 6kV. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Page (cable-trench-or-drill); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/). Reached from 144 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). - Signatures: `lookupOD(voltageKey, csaMm2, isThreeCore)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [132kV, 110kV, 66kV, 33kV, 20kV, 15kV, 10kV, 6kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Export - File: cable-trench-or-drill/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/export.js (JavaScript, 28 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/export.js#L1-L28 - Page: https://code.globalgrid2050.com/explore-code/s/0001.html#f3 - Synopsis: A JavaScript file in the cable geometry visualiser folder of Cable Trench or Drill that works with copy snapshot (`copySnapshot`). It exports JSON (`exportJson`) and copies snapshot (`copySnapshot`). - What it achieves (name): Defines `exportJson` and `copySnapshot`. - What it does: It draws its content. Defines exportJson, copySnapshot. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Page (cable-trench-or-drill); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/). Reached from 144 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). - Signatures: `exportJson()`; `base(byId("route_name").value.trim() || "geometry_capture")`; `copySnapshot()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Rendering - File: cable-trench-or-drill/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/rendering.js (JavaScript, 416 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/rendering.js#L1-L416 - Page: https://code.globalgrid2050.com/explore-code/s/0002.html#f1 - Synopsis: A JavaScript file in the cable geometry visualiser folder of Cable Trench or Drill that renders status (`renderStatus`) and issues (`renderIssues`) and renders stats (`renderStats`), covering cables. - What it achieves (name): It renders status (`renderStatus`), renders issues (`renderIssues`) and renders stats (`renderStats`). Defines `renderStatus`, `renderIssues`, `renderStats` and 7 more. - What it does: It draws cables. Defines 10 functions or classes, including renderStatus, renderIssues, renderStats, getServiceColours, drawGroup. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): 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. - Inputs & outputs: Out: canvas drawing. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Page (cable-trench-or-drill); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/). Reached from 144 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). - Signatures: `renderStatus(review)`; `renderIssues(review)`; `renderStats(layout, review, inputs)`; `getServiceColours(serviceType)`; `drawGroup(ctx, x, y, d, drawType, serviceType, scale)`; `circle(cx, cy, fill, stroke)`; `ang(2 * Math.PI * k / coreCount)`; `drawFormation(inputs, layout, review)`; `drawTrench(inputs, layout)`; `trenchX(W - trenchW)`; `drawBend(inputs, layout)`; `buildSnapshot(inputs, layout, review)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out [canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Style Sheet - File: cable-trench-or-drill/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/style.css (CSS, 830 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/cable-trench-or-drill/blob/bf00f9503ff7a662933775a022557c4ca9d9880a/releases/202609051921/solar-bess-topology-v7/cable-geometry-visualiser/style.css#L1-L830 - Page: https://code.globalgrid2050.com/explore-code/s/0003.html#f1 - Synopsis: A style sheet in Cable Trench or Drill. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 2 files: Solar Battery Energy Storage System (BESS) Topology V7 — Cable Geometry Visualiser Page (cable-trench-or-drill); Solar Battery Energy Storage System (BESS) Topology V6 — Cable Geometry Visualiser Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/cable-geometry-visualiser/). Reached from 144 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ## Step 4: Soil ### Test Thermal - File: soil/test_thermal.py (Python, 43 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/soil/blob/d26288ed03df533507739b9f218358fc7aa36a01/test_thermal.py#L1-L43 - Page: https://code.globalgrid2050.com/explore-code/s/0716.html#f4 - Synopsis: A test in Soil that checks Thermal. It is built from the thermal tests class (`ThermalTests`). - What it achieves (comment): Unit and provenance checks; fixture values are arithmetic scenarios, not soils. - What it does: It tests its inputs. Defines ThermalTests, test_reciprocal_units_and_round_trip, test_reject_invalid_and_overflow, test_record_preserves_evidence_and_conditioning, test_reject_wrong_quantity_and_missing_provenance. Uses libraries math, unittest. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'soil'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `class ThermalTests`; `test_reciprocal_units_and_round_trip(self)`; `test_reject_invalid_and_overflow(self)`; `test_record_preserves_evidence_and_conditioning(self)`; `test_reject_wrong_quantity_and_missing_provenance(self)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Import Environment - File: soil/import_environment.py (Python, 112 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/soil/blob/d26288ed03df533507739b9f218358fc7aa36a01/import_environment.py#L1-L112 - Page: https://code.globalgrid2050.com/explore-code/s/0716.html#f2 - Synopsis: A Python command-line tool in Soil that fetches environment sources, service, count and sssi, using EPSG:4326 and SHA-256 from arcgis.com. It is built from the fetch step (`fetch`). - What it achieves (comment): Download a bounded, provenance-preserving Natural England SSSI polygon sample. It accepts `--bbox` and `--output`. - What it does: It fetches environment sources, service, count and sssi. Defines main, fetch. Uses libraries argparse, hashlib, json, math, datetime. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'soil'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. README: "`import_environment.py`: bounded Natural England SSSI polygon import for conservation context." - Inputs & outputs: In: data source: arcgis.com; JSON file environment_sources.json; JSON file service.json; JSON file item.json; JSON file layer.json; JSON file count.json; GeoJSON file sssi.geojson; command-line arguments. Out: JSON file provenance.json. Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `main()`; `fetch(url, filename, params=None)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: arcgis.com; JSON file environment_sources.json; JSON file service.json; JSON file item.json; JSON file layer.json; JSON file count.json; GeoJSON file sssi.geojson; command-line arguments]; out [JSON file provenance.json]; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Import Soil - File: soil/import_soil.py (Python, 42 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/soil/blob/d26288ed03df533507739b9f218358fc7aa36a01/import_soil.py#L1-L42 - Page: https://code.globalgrid2050.com/explore-code/s/0716.html#f3 - Synopsis: A Python command-line tool that fetches soil sources, catalogue and provenance, using SHA-256. - What it achieves (comment): Bounded UKCEH metadata import; measurements remain explicitly pending. It accepts `--output` and `--offline`. - What it does: It fetches soil sources, catalogue and provenance. Defines main. Uses libraries argparse, datetime, hashlib, json, pathlib. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'soil'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. README: "`import_soil.py`: bounded UKCEH metadata import." - Inputs & outputs: In: JSON file soil_sources.json; command-line arguments. Out: JSON file catalogue.json; JSON file provenance.json. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file soil_sources.json; command-line arguments]; out [JSON file catalogue.json; JSON file provenance.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Thermal - File: soil/thermal.py (Python, 70 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/soil/blob/d26288ed03df533507739b9f218358fc7aa36a01/thermal.py#L1-L70 - Page: https://code.globalgrid2050.com/explore-code/s/0716.html#f5 - Synopsis: A Python module in Soil that works with cables. It converts record (`convert_record`) and is built from the conductivity to resistivity helper (`conductivity_to_resistivity`). - What it achieves (comment): Scalar/isotropic soil thermal-property conversion; no cable ampacity model. - What it does: It calculates cables. Defines _positive_finite, conductivity_to_resistivity, convert_record. Uses libraries copy, math, numbers. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'soil'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables. - Downstream impact: Used directly by 2 files: GPU Check (soil); Test Thermal (soil). - Signatures: `_positive_finite(value, name)`; `conductivity_to_resistivity(values)`; `convert_record(record)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ## Step 5: Metals & Cable Prices Not found in the public estate.