# Grid network and substations — GlobalGrid2050 Explore Code (text shard) Attribution: Ventus Ltd — GlobalGrid2050. Cut 2026-12-06T03:07:51+00:00. Generated deterministically from the public Ventusltd repositories by tools/explore/build.py (rules explore-agent-rules-v1); every statement is evidence-keyed and links to the exact commit and lines. Fields per file: Source (GitHub commit URL with line range), Page (Explore Code section), Synopsis, What it achieves (provenance), the four-part block, Signatures, VEDIC, domain_stage, commercial_user, canonical_status, data_contracts, Edges. Rules: https://code.globalgrid2050.com/explore-code/llms.txt (Agent Navigation Protocol) and GRAPH-CONTRACT.md. Topic page: https://code.globalgrid2050.com/explore-code/topics/grid-network.html. Substations, network topology, single-line diagrams and connections. 202 files. ### Build Substation Subset - File: claude/sessions/202609031559-skin-architecture/prototype/build-substation-subset.py (Python, 92 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/claude/blob/df9da02425fdf0c65d11a84f32cd9b3ef927b309/sessions/202609031559-skin-architecture/prototype/build-substation-subset.py#L1-L92 - Page: https://code.globalgrid2050.com/explore-code/s/0263.html#f1 - Synopsis: A Python module in the prototype folder of Claude that reads grid substations and 400kV. - What it achieves (name): Its name says it builds substation subset. Defines `rep`. Its code works with 400 kV. - What it does: It loads grid substations and 400kV. Defines dk, rep. Uses libraries json, math, sys, os. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: 400kV. - Inputs & outputs: In: GeoJSON file grid_substations.geojson. Out: JSON file. Voltage levels named: 400kV. - Signatures: `dk(a, b, c, d)`; `rep(g)` - domain_stage: experimental · commercial_user: ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_substations.geojson]; out [JSON file]; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Verify Renewable Energy Planning Database (REPD) Routing Release - File: code-generator/apps/substation-finder/Dt/202608291410-verify-repd-routing-release.py (Python, 119 lines) · role automation · stage ingest · entry point - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Dt/202608291410-verify-repd-routing-release.py#L1-L119 - Page: https://code.globalgrid2050.com/explore-code/s/0263.html#f2 - Synopsis: A Python command-line tool in the substation finder folder of Code Generator that reads projects and the REPD register, using SHA-256. - What it achieves (comment): It sets hash (`set_hash`) and is built from the sha256 step (`sha256`) and the require step (`require`). Fail-closed verification for the immutable REPD routing folder. It accepts `--contract`, `--release` and `--source-commit`. - What it does: It loads projects and the REPD register. Defines sha256, require, set_hash, canonical_json, main. Uses libraries __future__, argparse, hashlib, json, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage field_execution (path word 'routing'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file projects.json; JSON file release.json; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `sha256(raw: bytes)`; `require(condition: bool, message: str)`; `set_hash(values: list[str])`; `canonical_json(value: object)`; `main()` - domain_stage: field_execution · commercial_user: IPP_developer, EPC_contractor, ICP_grid_engineer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file projects.json; JSON file release.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Build Atlas V9 Company Renewable Energy Planning Database (REPD) Links - File: code-generator/apps/substation-finder/Dt/202608300232-build-atlas-v9-company-repd-links.py (Python, 375 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Dt/202608300232-build-atlas-v9-company-repd-links.py#L1-L375 - Page: https://code.globalgrid2050.com/explore-code/s/0263.html#f3 - Synopsis: A Python command-line tool in the substation finder folder of Code Generator that reads atlas company REPD links, GridAtlas current, the REPD register and solar, using SHA-256. - What it achieves (comment): It normalises company number (`normalise_company_number`), normalises ref (`normalise_ref`) and normalises technology (`normalise_technology`). Build compact deterministic Companies ↔ REPD ↔ Atlas V9 deep-link relations. It accepts `--gridatlas`, `--globalgrid` and `--repo-root`. - What it does: It loads atlas company REPD links, GridAtlas current, the REPD register and solar. Defines 18 functions or classes, including require, load, sha256_file, stable_id, quote_identifier. Uses libraries __future__, argparse, csv, hashlib, json. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar. - Inputs & outputs: In: Parquet file atlas_v9_company_repd_links.parquet; JSON file live-set.json; JSON file gridatlas-v9-current.json; JSON file atlas-v9-current.json; JSON file atlas-v9-company-repd-links-manifest.json; DuckDB queries; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `require(condition: bool, message: str)`; `load(path: Path)`; `sha256_file(path: Path)`; `stable_id(*parts: str)`; `quote_identifier(value: str)`; `sql_path(path: Path)`; `first_column(columns: dict[str, str], candidates: tuple[str, ...])`; `normalise_company_number(value: object)`; `normalise_ref(value: object)`; `normalise_technology(value: object)`; `normalise_base(value: str)`; `build_url(base: str, repd_ref: str, technology: str)`; `candidate_parquets(root: Path)`; `mutable_text_files(root: Path)`; `rewrite_sources(root: Path, base_url: str)`; `extract_rows(connection: duckdb.DuckDBPyConnection, root: Path, path: Path)`; `write_parquet(connection: duckdb.DuckDBPyConnection, rows: list[dict[str, str]], output: Path)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [Parquet file atlas_v9_company_repd_links.parquet; JSON file live-set.json; JSON file gridatlas-v9-current.json; JSON file atlas-v9-current.json; JSON file atlas-v9-company-repd-links-manifest.json; DuckDB queries; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 0; mentioned by 0 ### Build N1 Deep Link Candidates - File: code-generator/apps/substation-finder/Dt/202608310050-build-n1-deep-link-candidates.py (Python, 174 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Dt/202608310050-build-n1-deep-link-candidates.py#L1-L174 - Page: https://code.globalgrid2050.com/explore-code/s/0264.html#f1 - Synopsis: A Python command-line tool in the substation finder folder of Code Generator that reads atlas link contract and atlas current, using SHA-256 from the GridAtlas repository. - What it achieves (comment): It writes text (`write_text`), writes JSON (`write_json`) and replaces strings (`replace_strings`). Build isolated N1 candidate files. Never writes into producer repositories. It writes `atlas-v9-current.json`. It accepts `--output`, `--generation` and `--pipelinenews`. - What it does: It loads atlas link contract and atlas current. Defines sha256, write_text, write_json, replace_strings, main. Uses libraries __future__, argparse, datetime, difflib, hashlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: gridatlas data; JSON file live-set.json; JSON file atlas-v9-link-contract.json; JSON file atlas-v9-current.json; JSON file n1-manifest.json; command-line arguments. - Downstream impact: Used directly by 1 file: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/). - Signatures: `sha256(path: Path)`; `write_text(path: Path, text: str)`; `write_json(path: Path, value: Any)`; `replace_strings(value: Any)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; JSON file live-set.json; JSON file atlas-v9-link-contract.json; JSON file atlas-v9-current.json; JSON file n1-manifest.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 2 estate files (estate-url 2); used by 1; mentioned by 0 ### Build Renewable Energy Planning Database (REPD) Ref Index - File: code-generator/apps/substation-finder/Dt/202608310050-build-repd-ref-index.py (Python, 201 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Dt/202608310050-build-repd-ref-index.py#L1-L201 - Page: https://code.globalgrid2050.com/explore-code/s/0264.html#f2 - Synopsis: A Python command-line tool in the substation finder folder of Code Generator that reads REPD projects, cartridge installation readiness and the REPD register, using SHA-256. - What it achieves (comment): It writes text (`write_text`) and writes JSON (`write_json`). Build the N2 static exact-REPD reference index as an isolated test artefact. It writes `manifest.json`. It accepts `--parquet`, `--output` and `--generation`. - What it does: It loads REPD projects, cartridge installation readiness and the REPD register. Defines sha256, write_text, write_json, normal, main. Uses libraries __future__, argparse, gzip, hashlib, json. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: Parquet file repd_projects_202608290716.parquet; JSON file cartridge-installation-readiness.json; DuckDB queries; command-line arguments. - Downstream impact: Used directly by 1 file: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/). - Signatures: `sha256(path: Path)`; `write_text(path: Path, text: str)`; `write_json(path: Path, value: Any, *, compact: bool = False)`; `normal(value: Any)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [Parquet file repd_projects_202608290716.parquet; JSON file cartridge-installation-readiness.json; DuckDB queries; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Calibrate Design Freeze - File: code-generator/apps/substation-finder/Dt/202608310050-calibrate-design-freeze.py (Python, 227 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Dt/202608310050-calibrate-design-freeze.py#L1-L227 - Page: https://code.globalgrid2050.com/explore-code/s/0264.html#f3 - Synopsis: A Python command-line tool in the substation finder folder of Code Generator that reads calibration, using SHA-256. It writes text (`write_text`), writes JSON (`write_json`) and parses date (`parse_date`). - What it achieves (comment): N4: deterministic design-freeze calibration over the frozen PipelineNews project spine. It writes `calibration.json`. It accepts `--pipelinenews`, `--output` and `--generation`. - What it does: It loads calibration. Defines 7 functions or classes, including write_text, write_json, parse_date, capacity_band, records_from_file. Uses libraries __future__, argparse, datetime, hashlib, json. Side effects: reads or writes files; starts processes. - 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: In: JSON file calibration.json; command-line arguments. - Downstream impact: Used directly by 1 file: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/). - Signatures: `write_text(path: Path, text: str)`; `write_json(path: Path, value: Any)`; `parse_date(value: Any)`; `capacity_band(capacity: float)`; `records_from_file(path: Path)`; `sha256_paths(paths: list[Path])`; `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 calibration.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Stamp Data Spine Doctrine - File: code-generator/apps/substation-finder/Dt/stamp_data_spine_doctrine.py (Python, 166 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Dt/stamp_data_spine_doctrine.py#L1-L166 - Page: https://code.globalgrid2050.com/explore-code/s/0265.html#f1 - Synopsis: A Python command-line tool in the substation finder folder of Code Generator that reads spine stamp and solar. - What it achieves (comment): It reads text (`read_text`), writes text (`write_text`) and inserts after first block (`insert_after_first_block`). GlobalGrid2050 data spine doctrine stamper. It accepts `--apply`. - What it does: It loads spine stamp and solar. Defines 9 functions or classes, including utc_now, stamp, read_text, write_text, insert_after_first_block. Uses libraries __future__, argparse, json, datetime, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar. - Inputs & outputs: In: JSON file DATA_SPINE_STAMP_LATEST.json; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `utc_now()`; `stamp()`; `read_text(path: Path)`; `write_text(path: Path, text: str)`; `insert_after_first_block(text: str)`; `update_target(rel: str, apply: bool)`; `update_changelog(apply: bool)`; `render_report(payload: dict)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file DATA_SPINE_STAMP_LATEST.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Verify V9 6 2 Equivalence - File: code-generator/apps/substation-finder/Ps/202608282348-verify-v9-6-2-equivalence.mjs (JavaScript, 273 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Ps/202608282348-verify-v9-6-2-equivalence.mjs#L1-L273 - Page: https://code.globalgrid2050.com/explore-code/s/0265.html#f2 - Synopsis: A JavaScript module in the substation finder folder of Code Generator covering solar. It is built from the first number helper (`firstNumber`). - What it achieves (name): Its name says it verifies equivalence. Defines `gate`, `firstNumber` and `observe`. - What it does: It draws solar. Defines gate, firstNumber, observe. Uses libraries playwright, node:fs/promises. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar. - Inputs & outputs: In: command-line arguments. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `gate(id, pass, evidence)`; `firstNumber(text)`; `observe(browser, label, url, viewport)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Transit Layer Availability Browser - File: code-generator/apps/substation-finder/Ps/202609040219-transit-layer-availability.browser.mjs (JavaScript, 257 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Ps/202609040219-transit-layer-availability.browser.mjs#L1-L257 - Page: https://code.globalgrid2050.com/explore-code/s/0265.html#f3 - Synopsis: A JavaScript module in the substation finder folder of Code Generator that draws UK metros trams root. It is built from the proof map class (`ProofMap`). - What it achieves (name): Defines `capture` and `ProofMap`. It responds to click events. - What it does: It draws UK metros trams root. Defines capture, ProofMap. Uses libraries node:assert/strict, node:http, node:fs/promises, node:path, node:module. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: Parquet file uk_metros_trams_root.parquet. - Downstream impact: Used directly by 1 file: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/). - Signatures: `capture(value)`; `ProofMap(...args)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of gridatlas/tools/proofs/202609040229-arrival-identity.browser.mjs) · essay_status: readme_derived - data_contracts: in [Parquet file uk_metros_trams_root.parquet]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Arrival Identity Corpus Proof - File: code-generator/apps/substation-finder/Ps/202609040229-arrival-identity-corpus.proof.mjs (JavaScript, 402 lines) · role storage · stage ingest · entry point - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Ps/202609040229-arrival-identity-corpus.proof.mjs#L1-L402 - Page: https://code.globalgrid2050.com/explore-code/s/0266.html#f1 - Synopsis: A JavaScript module in the substation finder folder of Code Generator that reads wider fleet, Renewable Energy Planning Database (REPD) projects and battery storage (BESS), using SHA-256. - What it achieves (name): It runs python (`runPython`) and is built from the receiver scenario helper (`receiverScenario`) and the proof custom event class (`ProofCustomEvent`). Defines `sha256`, `runPython`, `receiverScenario` and 1 more. - What it does: It loads wider fleet, REPD projects and battery storage (BESS). Defines sha256, runPython, receiverScenario, ProofCustomEvent. Uses libraries node:assert/strict, node:crypto, node:fs/promises, node:fs, node:child_process. Side effects: reads or writes files; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: battery storage (BESS). - Inputs & outputs: In: JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file 202609040044-wider-fleet.json; Parquet file repd_projects_202608290716.parquet; JSON file current.json; DuckDB queries; command-line arguments. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `sha256(bytes)`; `runPython(executable)`; `receiverScenario(search, { rows = [], queryError = null, retryRows = null, interruptReason = null, claimAgain = false } = {})`; `class ProofCustomEvent`; `constructor(type, options = {})`; `addEventListener(type, listener)`; `dispatchEvent(event)`; `invariant(ok, message)`; `queryOfficialRepd(_query, _serial, stillOwned)`; `resetOfficialRuntime()`; `renderResults()`; `waitForCapturedMap()`; `selectResult(result, options = {})`; `hasSafeMapPoint(result)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file 202608270055-8ab1807551bc-v8-fast-projects.json; JSON file 202609040044-wider-fleet.json; Parquet file repd_projects_202608290716.parquet; JSON file current.json; DuckDB queries; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Arrival Identity Browser - File: code-generator/apps/substation-finder/Ps/202609040229-arrival-identity.browser.mjs (JavaScript, 302 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Ps/202609040229-arrival-identity.browser.mjs#L1-L302 - Page: https://code.globalgrid2050.com/explore-code/s/0267.html#f1 - Synopsis: A JavaScript module in the substation finder folder of Code Generator that reads Renewable Energy Planning Database (REPD) and solar from the GridAtlas repository. - What it achieves (name): It is built from the proof map class (`ProofMap`). Defines `capture` and `ProofMap`. - What it does: It loads REPD and solar. Defines capture, ProofMap. Uses libraries node:assert/strict, node:http, node:fs/promises, node:path, node:module. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar. - Inputs & outputs: In: data source: gridatlas data; JSON file current.json; JSON file repd_v9_manifest_202608290716.json. - Signatures: `capture(candidate)`; `ProofMap(...args)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of gridatlas/tools/proofs/202609040229-arrival-identity.browser.mjs) · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; JSON file current.json; JSON file repd_v9_manifest_202608290716.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Place Global Search Arrival Identity - File: code-generator/apps/substation-finder/Ps/202609040229-place-global-search-arrival-identity.js (JavaScript, 787 lines) · role render · stage output - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Ps/202609040229-place-global-search-arrival-identity.js#L1-L787 - Page: https://code.globalgrid2050.com/explore-code/s/0267.html#f2 - Synopsis: A JavaScript file in the substation finder folder of Code Generator that maps Renewable Energy Planning Database (REPD) projects, using SHA-256 and uses data from the GridAtlas repository. - What it achieves (code): It marks deep link cancelled (`markDeepLinkCancelled`), normalises compact (`normaliseCompact`) and parses groups (`parseGroups`). Its `buildWhere` function gives SQL predicate from query text (VEDIC: query). It responds to gridatlas, click and input events. - What it does: It maps REPD projects, postcodes and the REPD register. Defines 39 functions or classes, including invariant, arrivalCoordinator, markDeepLinkCancelled, invalidatePendingDeepLink, escapeHtml. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: postcodes, the REPD register. - Inputs & outputs: In: data source: gridatlas data; data source: postcodes.io; data source: OpenStreetMap Nominatim; Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; DuckDB queries. Out: interactive map. - Downstream impact: Used directly by 3 files: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Ventus Grid Engine — Genome Page (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/). Reached from 1 other entry point, including Genome Workflow (ventus-grid-engine). - Signatures: `invariant(condition, message)`; `arrivalCoordinator()`; `markDeepLinkCancelled(reason, epoch = null)`; `invalidatePendingDeepLink(reason)`; `escapeHtml(value)`; `sqlString(value)`; `normaliseCompact(value)`; `parseGroups(query)`; `sha256Hex(bytes)`; `verifyManifest()`; `sharedDuckDBRuntime(moduleUrl)`; `runtime()`; `resetOfficialRuntime()`; `installMapCapture()`; `construct(target, args, newTarget)`; `buildWhere(query)`; `buildScore(query)`; `rowObject(row)`; `queryOfficialRepd(query, serial = null, stillOwned = null)`; `hasSafeMapPoint(result)`; `setDeepLink(result)`; `selectResult(result, options = {})`; `geocoderGet(path, query)`; `joinParts(...parts)`; `queryUkGazetteer(query)` (and 14 more) - VEDIC: QUERY (GG2050-VEDIC-000046): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_predicate - VEDIC: SCORE (GG2050-VEDIC-000047): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_sort_expression - VEDIC: UK GEOCODE (GG2050-VEDIC-000048): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> uk_location_candidates - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; data source: postcodes.io; data source: OpenStreetMap Nominatim; Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; DuckDB queries]; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Place Global Search V9 5 - File: code-generator/apps/substation-finder/Ps/202609071213-place-global-search-v9-5.js (JavaScript, 923 lines) · role geodesy · stage output - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Ps/202609071213-place-global-search-v9-5.js#L1-L923 - Page: https://code.globalgrid2050.com/explore-code/s/0269.html#f1 - Synopsis: A JavaScript file in the substation finder folder of Code Generator that maps Renewable Energy Planning Database (REPD) projects, using SHA-256 and uses data from the GridAtlas repository. - What it achieves (comment): It marks deep link cancelled (`markDeepLinkCancelled`), normalises compact (`normaliseCompact`) and parses groups (`parseGroups`). ASSEMBLED by `tools/build-cartridge.mjs` from the parts below. It responds to gridatlas, click and input events. - What it does: It maps REPD projects, offshore coordinates, postcodes and the REPD register. Defines 41 functions or classes, including invariant, arrivalCoordinator, markDeepLinkCancelled, invalidatePendingDeepLink, escapeHtml. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: postcodes, the REPD register. - Inputs & outputs: In: data source: gridatlas data; data source: postcodes.io; data source: OpenStreetMap Nominatim; Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; JSON file offshore-coordinates.json; DuckDB queries. Out: interactive map. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/). - Signatures: `invariant(condition, message)`; `arrivalCoordinator()`; `markDeepLinkCancelled(reason, epoch = null)`; `invalidatePendingDeepLink(reason)`; `escapeHtml(value)`; `sqlString(value)`; `normaliseCompact(value)`; `parseGroups(query)`; `sha256Hex(bytes)`; `verifyManifest()`; `sharedDuckDBRuntime(moduleUrl)`; `runtime()`; `resetOfficialRuntime()`; `installMapCapture()`; `construct(target, args, newTarget)`; `buildWhere(query)`; `buildScore(query)`; `rowObject(row)`; `queryOfficialRepd(query, serial = null, stillOwned = null)`; `hasSafeMapPoint(result)`; `loadDerivedCoordinates()`; `derivedCoordinateFor(repdRef)`; `setDeepLink(result)`; `selectResult(result, options = {})`; `geocoderGet(path, query)` (and 15 more) - VEDIC: QUERY (GG2050-VEDIC-000046): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_predicate - VEDIC: SCORE (GG2050-VEDIC-000047): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_sort_expression - VEDIC: UK GEOCODE (GG2050-VEDIC-000048): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> uk_location_candidates - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/cartridges/202611180026-place-global-search-v9-5.js) · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; data source: postcodes.io; data source: OpenStreetMap Nominatim; Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; JSON file offshore-coordinates.json; DuckDB queries]; out [interactive map]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 1 ### Menu Bar - File: code-generator/apps/substation-finder/Si/202609031958-menu-bar.js (JavaScript, 1805 lines) · role render · stage output - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Si/202609031958-menu-bar.js#L1-L1805 - Page: https://code.globalgrid2050.com/explore-code/s/0270.html#f2 - Published at: https://ventusltd.github.io/code-generator/apps/substation-finder/Si/ - Synopsis: A JavaScript file in the substation finder folder of Code Generator that draws engine graph and uses data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/code-generator/apps/substation-finder/Si/. - What it achieves (comment): It cleans text (`cleanText`), syncs attrib clearance (`syncAttribClearance`) and syncs layer (`syncLayer`). V9.94 proved that the conventional menu is the right shape and the wrong implementation can still strand the product. It responds to click, keydown and afterprint events. - What it does: It draws engine graph and substations. Defines 57 functions or classes, including array, cleanText, layerKey, layerLabel, layerGroup. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations. - Inputs & outputs: In: data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; JSON file engine-graph.json; form fields (user input). Out: downloaded file gridatlas-; downloaded file globalgrid2050-grid-atlas-; canvas drawing. - Downstream impact: Used directly by 1 file: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/). - Signatures: `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `array(value)`; `cleanText(value)`; `layerKey(input)`; `layerLabel(input)`; `layerGroup(input)`; `inventory(doc)`; `required(doc)`; `installStyle(doc)`; `syncAttribClearance(doc)`; `closeAll(focusTitle)`; `syncLayer(key)`; `syncAll()`; `clampPanel(doc, menu, panel)`; `vw(view && view.innerWidth)`; `openMenu(menu, title, panel)`; `buildBar(doc)`; `appendGroup(panel, text)`; `appendEngineModules(panel)`; `nodes(graph && graph.nodes)`; `kindLabels(graph && graph.kind_labels)`; `done(ok)`; `appendStudies(panel)`; `exportStamp()`; `attributionText(doc)` (and 15 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; JSON file engine-graph.json; form fields (user input)]; out [downloaded file gridatlas-; downloaded file globalgrid2050-grid-atlas-; canvas drawing]; crs []; voltages [] - Edges: uses 2 estate files (estate-url 2); used by 1; mentioned by 0 ### Ventus Corev8engine Deep Link Receiver - File: code-generator/apps/substation-finder/Si/202609040045-ventus-corev8engine-deep-link-receiver.js (JavaScript, 1460 lines) · role geodesy · stage output - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Si/202609040045-ventus-corev8engine-deep-link-receiver.js#L1-L1460 - Page: https://code.globalgrid2050.com/explore-code/s/0273.html#f1 - Published at: https://ventusltd.github.io/code-generator/apps/substation-finder/Si/ - Synopsis: A JavaScript file in the substation finder folder of Code Generator that maps elizabeth line, london underground, UK metros trams and HS2, using haversine. Served with the page at https://ventusltd.github.io/code-generator/apps/substation-finder/Si/. - What it achieves (code): It normalizes status (`normalizeStatus`), toggles zone draw mode (`toggleZoneDrawMode`) and opens popup (`openPopup`). Its `snapLines` function gives line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged from line features and substation point features (VEDIC: snap line ends to substations). It reads `/uk_renewables_pipeline/v9/data/v9.1/build_manifest.json`. It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 58 functions or classes, including deepFreeze, escapeHTML, normalizeStatus, fmt, haversine. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; JSON file build_manifest.json; GeoJSON file grid_400kv.geojson; form fields (user input). Out: interactive map. - Downstream impact: Used directly by 1 file: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/). - Signatures: `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()`; `_zoneDrawCirclePoints(lon, lat, radiusKm, n)`; `b(i / n)`; `_zoneDrawCalcArea(pts)`; `j(i + 1)`; `_zoneDrawUpdateLayers(dragOnly)`; `_zoneDrawShowPopup()`; `_zoneDrawShowPopupDebounced()`; `_zoneDrawClear()`; `zoneDrawUndo()`; `toggleZoneDrawMode()`; `_zoneDrawNearVertex(px)`; `_zoneDrawNearEdgeDot(px)`; `_zoneDrawOnClick(e)`; `mpp(km * 2000)`; `_zoneDrawOnMouseDown(e)`; `_zoneDrawOnMouseMove(e)`; `_zoneDrawOnMouseUp()`; `openPopup(lngLat, html, maxWidth)` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/releases/202608292311-atlas-v9/ventus-corev8engine.js) · essay_status: readme_derived - data_contracts: in [GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; JSON file build_manifest.json; GeoJSON file grid_400kv.geojson; form fields (user input)]; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Substation Intelligence - File: code-generator/apps/substation-finder/Si/202609060537-substation-intelligence.js (JavaScript, 5427 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Si/202609060537-substation-intelligence.js#L1-L5427 - Page: https://code.globalgrid2050.com/explore-code/s/0275.html#f2 - Published at: https://ventusltd.github.io/code-generator/apps/substation-finder/Si/ - Synopsis: A JavaScript file in the substation finder folder of Code Generator that maps elizabeth line and uses data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/code-generator/apps/substation-finder/Si/. - What it achieves (code): It restores layers (`restoreLayers`), saves outline (`saveOutline`) and reads outline (`readOutline`). Its `snapLines` function gives line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged from line features and substation point features (VEDIC: snap line ends to substations). Its code works with 400 kV and 100 MVA. It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 232 functions or classes, including close, open, dockLayers, restoreLayers, show. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Inputs & outputs: In: data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json. Out: CSV file gridatlas-polygon-vertices.csv; downloaded file gridatlas-polygon-; downloaded file gridatlas-polygon-vertices.csv; downloaded file gridatlas-; downloaded file globalgrid2050-map-; browser storage (setItem); interactive map; canvas drawing. Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Signatures: `close()`; `open(map, controlId)`; `dockLayers()`; `restoreLayers()`; `show(html)`; `clearValues()`; `validOutline(points)`; `saveOutline(points)`; `readOutline()`; `clearOutline()`; `analyzeOutline(points)`; `fail(code,message)`; `orient(a,b,c)`; `on(a,b,p)`; `exportOutline(points, measurements)`; `importOutline(text)`; `createHistory(limit=80)`; `copy(points)`; `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json]; out [CSV file gridatlas-polygon-vertices.csv; downloaded file gridatlas-polygon-; downloaded file gridatlas-polygon-vertices.csv; downloaded file gridatlas-; downloaded file globalgrid2050-map-; browser storage (setItem); interactive map; canvas drawing]; crs [WGS84 / EPSG:4326]; voltages [400kV, 275kV, 132kV, 66kV, 33kV, 11kV] - Edges: uses 2 estate files (estate-url 2); used by 0; mentioned by 0 ### Substation Intelligence V9 63 - File: code-generator/apps/substation-finder/Si/202609062358-substation-intelligence-v9-63.js (JavaScript, 8590 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Si/202609062358-substation-intelligence-v9-63.js#L1-L8590 - Page: https://code.globalgrid2050.com/explore-code/s/0283.html#f1 - Published at: https://ventusltd.github.io/code-generator/apps/substation-finder/Si/ - Synopsis: A JavaScript file in the substation finder folder of Code Generator that maps elizabeth line and uses data from the ventus-grid-engine repository. Served with the page at https://ventusltd.github.io/code-generator/apps/substation-finder/Si/. - What it achieves (comment): It normalizes status (`normalizeStatus`), toggles zone draw mode (`toggleZoneDrawMode`) and opens popup (`openPopup`). ASSEMBLED by `tools/build-cartridge.mjs` from the parts below. Its code works with 400 kV, 100 MVA and 132 kV. It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 238 functions or classes, including deepFreeze, escapeHTML, normalizeStatus, fmt, haversine. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 750kV, 400kV, 275kV, 132kV, 66kV, 33kV. - Inputs & outputs: In: data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; data source: npm data; GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson. Out: downloaded file gridatlas-; downloaded file globalgrid2050-grid-atlas-; interactive map; canvas drawing; SVG drawing. Voltage levels named: 750kV, 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Signatures: `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()`; `_zoneDrawCirclePoints(lon, lat, radiusKm, n)`; `b(i / n)`; `_zoneDrawCalcArea(pts)`; `j(i + 1)`; `_zoneDrawUpdateLayers(dragOnly)`; `_zoneDrawShowPopup()`; `_zoneDrawShowPopupDebounced()`; `_zoneDrawClear()`; `zoneDrawUndo()`; `toggleZoneDrawMode()`; `_zoneDrawNearVertex(px)`; `_zoneDrawEdgeDots(i)`; `_zoneDrawNearEdgeDot(px)`; `_zoneDrawOnClick(e)`; `mpp(km * 2000)`; `_zoneDrawOnMouseDown(e)`; `_zoneDrawOnMouseMove(e)`; `_zoneDrawOnMouseUp()` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/cartridges/202611180026-substation-intelligence-v9-63.js) · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; data source: npm data; GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson]; out [downloaded file gridatlas-; downloaded file globalgrid2050-grid-atlas-; interactive map; canvas drawing; SVG drawing]; crs []; voltages [750kV, 400kV, 275kV, 132kV, 66kV, 33kV, 11kV] - Edges: uses 2 estate files (estate-url 2); used by 0; mentioned by 0 ### Substation Finder — Si Page - File: code-generator/apps/substation-finder/Si/index.html (HTML, 5013 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Si/index.html#L1-L5013 - Page: https://code.globalgrid2050.com/explore-code/s/0295.html#f2 - Published at: https://ventusltd.github.io/code-generator/apps/substation-finder/Si/ - Synopsis: A map page in Code Generator that maps grid 400kV, grid 275kV, grid 220kV and grid 132kV, using haversine. Published at https://ventusltd.github.io/code-generator/apps/substation-finder/Si/. - What it achieves (code): It normalizes status (`normalizeStatus`), toggles curtain (`toggleCurtain`) and gets radius (`getRadiusValue`). Its `snapLines` function gives line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged from line features and substation point features (VEDIC: snap line ends to substations). Its code works with 132 kV, 220 kV and 275 kV. It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps grid 400kV, grid 275kV, grid 220kV and grid 132kV. Defines 104 functions or classes, including deepFreeze, escapeHTML, normalizeStatus, enterFullscreen, exitFullscreen. Side effects: changes the web page (DOM); reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Inputs & outputs: In: GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. Out: JSON file manifest_v4.json; web page; interactive map. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/code-generator/apps/substation-finder/Si/. - Signatures: `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `enterFullscreen()`; `exitFullscreen()`; `toggleCurtain()`; `getRadiusValue()`; `validateRadiusInput()`; `fmt(n, decimals)`; `updateMeasureDisplay()`; `j(i + 1)`; `updateMeasureLayers()`; `clearMeasure()`; `toggleMeasureMode()`; `updateUIState(id, state, stats)`; `class FetchQueue`; `constructor(concurrency)`; `add(task)`; `fetchWithTimeout(url, ms = 15000)`; `fetchAndParseGeoJSON(url)`; `snapLines(features, subs)`; `snapCoordinate(coord)`; `dx(coord[0] - sc[0])`; `dy(coord[1] - sc[1])`; `d(dx * dx)` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson]; out [JSON file manifest_v4.json; web page; interactive map]; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [400kV, 275kV, 220kV, 132kV, 66kV, 11kV] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Ventus Core - File: code-generator/apps/substation-finder/Si/ventus-core.js (JavaScript, 1315 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Si/ventus-core.js#L1-L1315 - Page: https://code.globalgrid2050.com/explore-code/s/0302.html#f2 - Published at: https://ventusltd.github.io/code-generator/apps/substation-finder/Si/ - Synopsis: A JavaScript file in the substation finder folder of Code Generator that maps elizabeth line, london underground, UK metros trams and HS2, using haversine. Served with the page at https://ventusltd.github.io/code-generator/apps/substation-finder/Si/. - What it achieves (code): It normalizes status (`normalizeStatus`), toggles zone draw mode (`toggleZoneDrawMode`) and opens popup (`openPopup`). Its `snapLines` function gives line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged from line features and substation point features (VEDIC: snap line ends to substations). It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 56 functions or classes, including deepFreeze, escapeHTML, normalizeStatus, fmt, haversine. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; form fields (user input). Out: interactive map. Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 1 file: GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v5 Page (globalgrid2050, https://globalgrid2050.com/repd_grid_atlasv5/). Reached from 95 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V030 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v030.html). It is itself an entry point, published at https://ventusltd.github.io/code-generator/apps/substation-finder/Si/. - Signatures: `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()`; `_zoneDrawCirclePoints(lon, lat, radiusKm, n)`; `b(i / n)`; `_zoneDrawCalcArea(pts)`; `j(i + 1)`; `_zoneDrawUpdateLayers(dragOnly)`; `_zoneDrawShowPopup()`; `_zoneDrawShowPopupDebounced()`; `_zoneDrawClear()`; `zoneDrawUndo()`; `toggleZoneDrawMode()`; `_zoneDrawNearVertex(px)`; `_zoneDrawNearEdgeDot(px)`; `_zoneDrawOnClick(e)`; `mpp(km * 2000)`; `_zoneDrawOnMouseDown(e)`; `_zoneDrawOnMouseMove(e)`; `_zoneDrawOnMouseUp()`; `openPopup(lngLat, html, maxWidth)` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of code-generator/apps/substation-finder/Si/ventus-corev6engine.js) · essay_status: readme_derived - data_contracts: in [GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; form fields (user input)]; out [interactive map]; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Ventus Corev6engine - File: code-generator/apps/substation-finder/Si/ventus-corev6engine.js (JavaScript, 1341 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Si/ventus-corev6engine.js#L1-L1341 - Page: https://code.globalgrid2050.com/explore-code/s/0304.html#f2 - Published at: https://ventusltd.github.io/code-generator/apps/substation-finder/Si/ - Synopsis: A JavaScript file in the substation finder folder of Code Generator that maps elizabeth line, london underground, UK metros trams and HS2, using haversine. Served with the page at https://ventusltd.github.io/code-generator/apps/substation-finder/Si/. - What it achieves (code): It normalizes status (`normalizeStatus`), toggles zone draw mode (`toggleZoneDrawMode`) and opens popup (`openPopup`). Its `snapLines` function gives line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged from line features and substation point features (VEDIC: snap line ends to substations). It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 56 functions or classes, including deepFreeze, escapeHTML, normalizeStatus, fmt, haversine. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; form fields (user input). Out: interactive map. Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: Used directly by 1 file: GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v6 Page (globalgrid2050, https://globalgrid2050.com/repd_grid_atlasv6/). Reached from 95 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V030 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v030.html). It is itself an entry point, published at https://ventusltd.github.io/code-generator/apps/substation-finder/Si/. - Signatures: `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()`; `_zoneDrawCirclePoints(lon, lat, radiusKm, n)`; `b(i / n)`; `_zoneDrawCalcArea(pts)`; `j(i + 1)`; `_zoneDrawUpdateLayers(dragOnly)`; `_zoneDrawShowPopup()`; `_zoneDrawShowPopupDebounced()`; `_zoneDrawClear()`; `zoneDrawUndo()`; `toggleZoneDrawMode()`; `_zoneDrawNearVertex(px)`; `_zoneDrawNearEdgeDot(px)`; `_zoneDrawOnClick(e)`; `mpp(km * 2000)`; `_zoneDrawOnMouseDown(e)`; `_zoneDrawOnMouseMove(e)`; `_zoneDrawOnMouseUp()`; `openPopup(lngLat, html, maxWidth)` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; form fields (user input)]; out [interactive map]; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Ventus Corev7engine - File: code-generator/apps/substation-finder/Si/ventus-corev7engine.js (JavaScript, 1360 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Si/ventus-corev7engine.js#L1-L1360 - Page: https://code.globalgrid2050.com/explore-code/s/0306.html#f2 - Published at: https://ventusltd.github.io/code-generator/apps/substation-finder/Si/ - Synopsis: A JavaScript file in the substation finder folder of Code Generator that maps elizabeth line, london underground, UK metros trams and HS2, using haversine. Served with the page at https://ventusltd.github.io/code-generator/apps/substation-finder/Si/. - What it achieves (code): It normalizes status (`normalizeStatus`), toggles zone draw mode (`toggleZoneDrawMode`) and opens popup (`openPopup`). Its `snapLines` function gives line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged from line features and substation point features (VEDIC: snap line ends to substations). It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 57 functions or classes, including deepFreeze, escapeHTML, normalizeStatus, fmt, haversine. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; form fields (user input). Out: interactive map. - Downstream impact: Used directly by 2 files: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v7 Page (globalgrid2050, https://globalgrid2050.com/repd_grid_atlasv7/). Reached from 95 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V030 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v030.html). It is itself an entry point, published at https://ventusltd.github.io/code-generator/apps/substation-finder/Si/. - Signatures: `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()`; `_zoneDrawCirclePoints(lon, lat, radiusKm, n)`; `b(i / n)`; `_zoneDrawCalcArea(pts)`; `j(i + 1)`; `_zoneDrawUpdateLayers(dragOnly)`; `_zoneDrawShowPopup()`; `_zoneDrawShowPopupDebounced()`; `_zoneDrawClear()`; `zoneDrawUndo()`; `toggleZoneDrawMode()`; `_zoneDrawNearVertex(px)`; `_zoneDrawNearEdgeDot(px)`; `_zoneDrawOnClick(e)`; `mpp(km * 2000)`; `_zoneDrawOnMouseDown(e)`; `_zoneDrawOnMouseMove(e)`; `_zoneDrawOnMouseUp()`; `openPopup(lngLat, html, maxWidth)` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; form fields (user input)]; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Ventus Corev8engine - File: code-generator/apps/substation-finder/Si/ventus-corev8engine.js (JavaScript, 1427 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Si/ventus-corev8engine.js#L1-L1427 - Page: https://code.globalgrid2050.com/explore-code/s/0308.html#f2 - Published at: https://ventusltd.github.io/code-generator/apps/substation-finder/Si/ - Synopsis: A JavaScript file in the substation finder folder of Code Generator that maps elizabeth line, london underground, UK metros trams and HS2, using haversine. Served with the page at https://ventusltd.github.io/code-generator/apps/substation-finder/Si/. - What it achieves (code): It normalizes status (`normalizeStatus`), toggles zone draw mode (`toggleZoneDrawMode`) and opens popup (`openPopup`). Its `snapLines` function gives line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged from line features and substation point features (VEDIC: snap line ends to substations). It reads `/uk_renewables_pipeline/v9/data/v9.1/build_manifest.json`. It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 58 functions or classes, including deepFreeze, escapeHTML, normalizeStatus, fmt, haversine. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; JSON file build_manifest.json; form fields (user input). Out: interactive map. - Downstream impact: Used directly by 3 files: GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v8 Page (globalgrid2050, https://globalgrid2050.com/repd_grid_atlasv8/); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Ventus Grid Engine — Genome Page (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/). Reached from 501 other entry points, including Code Generator — Index Page (code-generator, https://ventusltd.github.io/code-generator/); Generate (code-generator, https://ventusltd.github.io/code-generator/); Pilot (cosmic, https://ventusltd.github.io/cosmic/tools/explore/theme/pilot.html). It is itself an entry point, published at https://ventusltd.github.io/code-generator/apps/substation-finder/Si/. - Signatures: `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()`; `_zoneDrawCirclePoints(lon, lat, radiusKm, n)`; `b(i / n)`; `_zoneDrawCalcArea(pts)`; `j(i + 1)`; `_zoneDrawUpdateLayers(dragOnly)`; `_zoneDrawShowPopup()`; `_zoneDrawShowPopupDebounced()`; `_zoneDrawClear()`; `zoneDrawUndo()`; `toggleZoneDrawMode()`; `_zoneDrawNearVertex(px)`; `_zoneDrawNearEdgeDot(px)`; `_zoneDrawOnClick(e)`; `mpp(km * 2000)`; `_zoneDrawOnMouseDown(e)`; `_zoneDrawOnMouseMove(e)`; `_zoneDrawOnMouseUp()`; `openPopup(lngLat, html, maxWidth)` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/releases/202608292311-atlas-v9/ventus-corev8engine.js) · essay_status: readme_derived - data_contracts: in [GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json; JSON file build_manifest.json; form fields (user input)]; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Place Postcode Search - File: code-generator/apps/substation-finder/Ug/202608301136-place-postcode-search.js (JavaScript, 506 lines) · role render · stage output - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Ug/202608301136-place-postcode-search.js#L1-L506 - Page: https://code.globalgrid2050.com/explore-code/s/0310.html#f2 - Synopsis: A JavaScript file in the substation finder folder of Code Generator that maps Renewable Energy Planning Database (REPD) projects, using SHA-256 and uses data from postcodes.io and the GridAtlas repository. - What it achieves (code): It normalises compact (`normaliseCompact`), parses groups (`parseGroups`) and verifies manifest (`verifyManifest`). Its `buildWhere` function gives SQL predicate from query text (VEDIC: query). It responds to click, input and keydown events. - What it does: It maps REPD projects, postcodes and the REPD register. Defines 25 functions or classes, including invariant, escapeHtml, sqlString, normaliseCompact, parseGroups. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: postcodes, the REPD register. - Inputs & outputs: In: data source: gridatlas data; data source: postcodes.io; Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; DuckDB queries. Out: interactive map. - Downstream impact: Used directly by 1 file: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/). - Signatures: `invariant(condition, message)`; `escapeHtml(value)`; `sqlString(value)`; `normaliseCompact(value)`; `parseGroups(query)`; `sha256Hex(bytes)`; `verifyManifest()`; `runtime()`; `installMapCapture()`; `construct(target, args, newTarget)`; `buildWhere(query)`; `buildScore(query)`; `rowObject(row)`; `queryOfficialRepd(query, serial = null)`; `hasSafeMapPoint(result)`; `setDeepLink(result)`; `selectResult(result)`; `geocoderGet(path, query)`; `joinParts(...parts)`; `queryUkGazetteer(query)`; `selectLocation(result)`; `renderResults(repdResults, resultsEl, locationResults = [])`; `executeSearch(input, resultsEl)`; `waitForCapturedMap(timeoutMs = 60000)`; `receiveExactRepdDeepLink(input, resultsEl)` (and 1 more) - VEDIC: QUERY (GG2050-VEDIC-000046): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_predicate - VEDIC: SCORE (GG2050-VEDIC-000047): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_sort_expression - VEDIC: UK GEOCODE (GG2050-VEDIC-000048): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> uk_location_candidates - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; data source: postcodes.io; Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; DuckDB queries]; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### UK Gazetteer Flyto - File: code-generator/apps/substation-finder/Ug/202609051623-uk-gazetteer-flyto.js (JavaScript, 817 lines) · role energy-data · stage output - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Ug/202609051623-uk-gazetteer-flyto.js#L1-L817 - Page: https://code.globalgrid2050.com/explore-code/s/0311.html#f1 - Synopsis: A JavaScript file in the substation finder folder of Code Generator that maps Renewable Energy Planning Database (REPD) projects, using SHA-256 and uses data from the GridAtlas repository. - What it achieves (comment): It marks deep link cancelled (`markDeepLinkCancelled`), normalises compact (`normaliseCompact`) and parses groups (`parseGroups`). Place-global-search-v9-5. It responds to gridatlas, click and input events. - What it does: It maps REPD projects, postcodes and the REPD register. Defines 40 functions or classes, including invariant, arrivalCoordinator, markDeepLinkCancelled, invalidatePendingDeepLink, escapeHtml. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: postcodes, the REPD register. - Inputs & outputs: In: data source: gridatlas data; data source: postcodes.io; data source: OpenStreetMap Nominatim; Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; DuckDB queries. Out: interactive map. - Downstream impact: Used directly by 1 file: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/). - Signatures: `invariant(condition, message)`; `arrivalCoordinator()`; `markDeepLinkCancelled(reason, epoch = null)`; `invalidatePendingDeepLink(reason)`; `escapeHtml(value)`; `sqlString(value)`; `normaliseCompact(value)`; `parseGroups(query)`; `sha256Hex(bytes)`; `verifyManifest()`; `sharedDuckDBRuntime(moduleUrl)`; `runtime()`; `resetOfficialRuntime()`; `installMapCapture()`; `construct(target, args, newTarget)`; `buildWhere(query)`; `buildScore(query)`; `rowObject(row)`; `queryOfficialRepd(query, serial = null, stillOwned = null)`; `hasSafeMapPoint(result)`; `setDeepLink(result)`; `selectResult(result, options = {})`; `geocoderGet(path, query)`; `joinParts(...parts)`; `queryUkGazetteer(query)` (and 15 more) - VEDIC: QUERY (GG2050-VEDIC-000046): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_predicate - VEDIC: SCORE (GG2050-VEDIC-000047): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> sql_sort_expression - VEDIC: UK GEOCODE (GG2050-VEDIC-000048): GridAtlas / Search and Vicinity · Geographic information / Infrastructure screening. query_text -> uk_location_candidates - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; data source: postcodes.io; data source: OpenStreetMap Nominatim; Parquet file repd_projects_202608290716.parquet; JSON file repd_v9_manifest_202608290716.json; DuckDB queries]; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### V9 Parquet Fetch Bridge - File: code-generator/apps/substation-finder/Ug/v9-parquet-fetch-bridge.js (JavaScript, 164 lines) · role render · stage output - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Ug/v9-parquet-fetch-bridge.js#L1-L164 - Page: https://code.globalgrid2050.com/explore-code/s/0312.html#f2 - Synopsis: A JavaScript file in the substation finder folder of Code Generator that reads Renewable Energy Planning Database (REPD) master and heavy emitters UK, using SHA-256 from the data-GridAtlas repository. - What it achieves (name): It gets manifest (`getManifest`), gets runtime (`getRuntime`) and resolves partition (`resolvePartition`). Defines `invariant`, `sha256Hex`, `getManifest` and 8 more. - What it does: It loads REPD master and heavy emitters UK. Defines 11 functions or classes, including invariant, sha256Hex, getManifest, getRuntime, requestPath. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: data-gridatlas data; JSON file repd_master.json; JSON file heavy_emitters_uk.json; DuckDB queries. - Downstream impact: Used directly by 1 file: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/). - Signatures: `invariant(condition, message)`; `sha256Hex(bytes)`; `getManifest()`; `getRuntime()`; `requestPath(input)`; `legacyStem(pathname)`; `shouldIntercept(pathname)`; `resolvePartition(pathname)`; `artifact(manifest.artifacts || [])`; `rowObject(row)`; `querySource(pathname)`; `task()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: data-gridatlas data; JSON file repd_master.json; JSON file heavy_emitters_uk.json; DuckDB queries]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 1; mentioned by 0 ### Nearest Search - File: code-generator/apps/substation-finder/Vn/nearest-search.mjs (JavaScript, 90 lines) · role render · stage output - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Vn/nearest-search.mjs#L1-L90 - Page: https://code.globalgrid2050.com/explore-code/s/0312.html#f3 - Synopsis: A JavaScript module in the substation finder folder of Code Generator covering substations. It is built from the normalise step (`normalise`) and the index step (`index`). - What it achieves (comment): Module: nearest-search (substation-lookup). - What it does: It lists and searches substations. Defines normalise, index. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, 400kV, 275kV, 132kV, 66kV, 33kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Downstream impact: Used directly by 1 file: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/). - Signatures: `export normalise(name)`; `export index(points)`; `minimumKv(options && options.minimumKv)`; `limit(options && options.limit)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV, 11kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### V9 Nearest Search - File: code-generator/apps/substation-finder/Vn/v9-nearest-search.js (JavaScript, 90 lines) · role render · stage output - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/Vn/v9-nearest-search.js#L1-L90 - Page: https://code.globalgrid2050.com/explore-code/s/0312.html#f4 - Synopsis: A JavaScript module in the substation finder folder of Code Generator covering substations. It is built from the normalise step (`normalise`) and the index step (`index`). - What it achieves (comment): Module: nearest-search (substation-lookup). - What it does: It lists and searches substations. Defines normalise, index. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, 400kV, 275kV, 132kV, 66kV, 33kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Downstream impact: Used directly by 5 files: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Compute Observer Proof (ventus-grid-engine); V9 Engine Proof (ventus-grid-engine); and 1 more. Reached from 1 other entry point, including Genome Workflow (ventus-grid-engine). - Signatures: `export normalise(name)`; `export index(points)`; `minimumKv(options && options.minimumKv)`; `limit(options && options.limit)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV, 11kV] - Edges: uses 0 estate files; used by 5; mentioned by 0 ### Code Generator — Substation Finder Page - File: code-generator/apps/substation-finder/index.html (HTML, 112 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/code-generator/blob/3897d83efcd0259d21dce87704b0c33118fe2c2e/apps/substation-finder/index.html#L1-L112 - Page: https://code.globalgrid2050.com/explore-code/s/0312.html#f5 - Published at: https://ventusltd.github.io/code-generator/apps/substation-finder/ - Synopsis: A web page that draws parts, substations, postcodes and the Renewable Energy Planning Database (REPD) register. Published at https://ventusltd.github.io/code-generator/apps/substation-finder/. It applies inputs (`applyInputs`), loads one (`loadOne`) and loads lib (`loadLib`). - What it achieves (comment): Substation finder on a map. It responds to error and unhandledrejection events. - What it does: It draws parts, substations, postcodes and the REPD register. Defines $, note, applyInputs, loadOne, loadLib. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, postcodes, the REPD register. - Inputs & outputs: In: JSON file parts.json; JSON file substation-finder-1.json; form fields (user input). Out: web page. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/code-generator/apps/substation-finder/. - Signatures: `$(s)`; `note(file, cls, text)`; `applyInputs()`; `loadOne(f)`; `loadLib(url)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file parts.json; JSON file substation-finder-1.json; form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 21 estate files (link 21); used by 0; mentioned by 0 ### Feeder 47 - File: cosmic/tools/explore/bigbang/rules/FEEDER-47.py (Python, 656 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/cosmic/blob/51bebf892d63a617408bc5e25b270b9f893e9c03/tools/explore/bigbang/rules/FEEDER-47.py#L1-L656 - Page: https://code.globalgrid2050.com/explore-code/s/0313.html#f1 - Synopsis: A Python module in the rules folder of Cosmic that works with cables, battery storage (BESS) and transformers, using IEC 60287 and IEC 60853. - What it achieves (comment): It is built from the translate step (`translate`). Big Bang player: ENGINEERING DOMAIN rules (owner: FEEDER-47, rule-set player). Its code works with 400 kV, 1 kV and 1.1 kV. - What it does: It calculates cables, battery storage (BESS), transformers and the REPD register. Defines 23 functions or classes, including _words, _in_src, _main_functions, _code_only, _gloss_generic. Uses libraries json, os, re, sys. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: cables, battery storage (BESS), transformers, the REPD register, 525kV, 400kV. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326, Web Mercator / EPSG:3857, ETRS89 / EPSG:4258. Voltage levels named: 525kV, 400kV, 320kV, 275kV, 220kV, 132kV, 110kV, 66kV. - Signatures: `_words(name)`; `_in_src(term, src_l_nospace)`; `_main_functions(rec, src, n=6)`; `_code_only(src)`; `_gloss_generic(name)`; `_gloss_engineering(name, hits)`; `_detect(src, defines)`; `_voltages(src)`; `kv(x)`; `_units(src)`; `_term(v, src_ns)`; `_without_missing_term(phrase, v, src_ns)`; `_join(xs)`; `_folder_words(rec)`; `_repo_name(rec)`; `_evidence(rec, src)`; `_bad(text, evidence)`; `_cap(s)`; `_dedupe(s)`; `_clean_sentence(c, evidence)`; `_readme_sentence(rec, evidence)`; `_header_sentence(rec, evidence)`; `translate(rec, src)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326; Web Mercator / EPSG:3857; ETRS89 / EPSG:4258]; voltages [525kV, 400kV, 320kV, 275kV, 220kV, 132kV, 110kV, 66kV] - Edges: uses 1 estate file (sys-path 1); used by 0; mentioned by 0 ### Test Feeder 47 - File: cosmic/tools/explore/bigbang/rules/test_FEEDER-47.py (Python, 41 lines) · role test · stage transform · entry point - Source: https://github.com/Ventusltd/cosmic/blob/51bebf892d63a617408bc5e25b270b9f893e9c03/tools/explore/bigbang/rules/test_FEEDER-47.py#L1-L41 - Page: https://code.globalgrid2050.com/explore-code/s/0313.html#f2 - Synopsis: A test in the rules folder of Cosmic covering 33kV and cables, using IEC 60287 and haversine. - What it achieves (comment): Tests for the FEEDER-47 engineering-domain player. Its code works with 33 kV. - What it does: It tests 33kV and cables. Defines _rec, test_iec60287_and_voltage, test_haversine_structure_without_word, test_no_invented_source_or_banned_words. Uses libraries importlib.util, os. - Why it exists in the grid workflow: Domain stage sub33kv_design (voltage levels 33kV (all 33kV or below)): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 33kV, cables. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `_rec(**kw)`; `test_iec60287_and_voltage()`; `test_haversine_structure_without_word()`; `test_no_invented_source_or_banned_words()` - 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 0; mentioned by 0 ### Pilot UKPN - File: cosmic/tools/explore/theme/pilot-ukpn.css (CSS, 30 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/cosmic/blob/51bebf892d63a617408bc5e25b270b9f893e9c03/tools/explore/theme/pilot-ukpn.css#L1-L30 - Page: https://code.globalgrid2050.com/explore-code/s/0314.html#f1 - Synopsis: A style sheet in the theme folder of Cosmic. - What it achieves (comment): Pilot module W04 (TAPCHANGER-58): UKPN secondary substations panel + card. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'ukpn'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Pilot (cosmic, https://ventusltd.github.io/cosmic/tools/explore/theme/pilot.html). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Pilot UKPN - File: cosmic/tools/explore/theme/pilot-ukpn.js (JavaScript, 543 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/cosmic/blob/51bebf892d63a617408bc5e25b270b9f893e9c03/tools/explore/theme/pilot-ukpn.js#L1-L543 - Page: https://code.globalgrid2050.com/explore-code/s/0314.html#f2 - Synopsis: A JavaScript file in the theme folder of Cosmic that maps transformers and substations, using SHA-256, and uses data from UK Power Networks open data and the data-grid-GB repository. - What it achieves (comment): It loads main (`loadMain`), shows card (`showCard`) and refreshes near (`refreshNear`). Pilot module W04 (TAPCHANGER-58): UK Power Networks secondary substations + instant jump list. It responds to click, input and submit events. - What it does: It maps transformers and substations. Defines 44 functions or classes, including kernel, hex, scalar, normalize, unpack. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'ukpn'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers, substations. - Inputs & outputs: In: data source: UK Power Networks open data; data source: data-grid-gb data; DuckDB queries. - Downstream impact: Used directly by 1 file: Pilot (cosmic, https://ventusltd.github.io/cosmic/tools/explore/theme/pilot.html). - Signatures: `kernel(G)`; `hex(buf)`; `scalar(v)`; `normalize(raw)`; `unpack(bytes)`; `verify(bytes, sha)`; `acquire(url, sha)`; `index(lat, lon, n, cell)`; `pack(r, cell)`; `workerSource()`; `adopt(o)`; `byId(id)`; `loadMain()`; `load()`; `details(id)`; `hav(a1, o1, a2, o2)`; `brg(a1, o1, a2, o2)`; `near(lat, lon, n, maxM, filter)`; `cells(b, maxCells)`; `search(q, dnoFilter, limit)`; `fmtN(n)`; `fmtD(m)`; `compass(b)`; `site(i)`; `creditHTML()` (and 15 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: UK Power Networks open data; data source: data-grid-gb data; DuckDB queries]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Distribution Network Operator (DNO) Ecr - File: data-grid-gb/datacentres/fetchers/dno_ecr.py (Python, 20 lines) · role energy-data · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/data-grid-gb/blob/4a9cef6c7c791f76d416c8b2fbafac8265f7a263/datacentres/fetchers/dno_ecr.py#L1-L20 - Page: https://code.globalgrid2050.com/explore-code/s/0314.html#f3 - Synopsis: A Python module in the fetchers folder of Data Grid GB. It is built from the raw requests helper (`raw_requests`) and the normalise step (`normalise`). - What it achieves (comment): DNO embedded capacity registers (demand >= 1MW where published). Its code works with 1 MW. - What it does: It calculates its inputs. Defines raw_requests, normalise. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'datacentres'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Signatures: `raw_requests()`; `normalise(raw)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Distribution Network Operator (DNO) Fetch - File: data-grid-gb/datacentres/lanes/dc-a5-dno/dno_fetch.py (Python, 416 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/data-grid-gb/blob/4a9cef6c7c791f76d416c8b2fbafac8265f7a263/datacentres/lanes/dc-a5-dno/dno_fetch.py#L1-L416 - Page: https://code.globalgrid2050.com/explore-code/s/0315.html#f1 - Synopsis: A Python command-line tool in the lanes folder of Data Grid GB that fetches SSEN ecr part 1MW august, using SHA-256 and Helmert from SSEN. - What it achieves (comment): It parses CSV bytes (`parse_csv_bytes`) and is built from the dc hits helper (`dc_hits`) and the OSGB to WGS84 helper (`osgb_to_wgs84`). DC-A5: DNO open-data fetcher for demand / data-centre evidence (standard library only). Its code works with 50 kW. It accepts `--out`, `--verify` and `--include-gated`. - What it does: It fetches SSEN ecr part 1MW august, SSEN ecr part 50kW august, embedded capacity register attributes and cdpdata nged connections reform register. Defines 13 functions or classes, including dc_hits, osgb_to_wgs84, _num, _pick, row_point. Uses libraries argparse, csv, hashlib, io, json. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'dc'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: data source: SSEN; data source: UK Power Networks open data; CSV file ssen_ecr_part_1_1mw_august_2026_csv.csv; CSV file ssen_ecr_part_1_50kw_august_2026_csv.csv; CSV file embedded-capacity-register-attributes.csv; CSV file 251212_cdpdata_nged-connections-reform-register.csv; CSV file clearviewconnect_connection_pipeline_data_2025_05.csv; GeoJSON file dno_ecr_dc_candidates.geojson. Out: JSON file. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `dc_hits(row)`; `osgb_to_wgs84(E, N)`; `_num(v)`; `_pick(row, *needles)`; `row_point(row)`; `http_get(url, headers=None, timeout=90)`; `resolve(src)`; `safe_name(s)`; `parse_csv_bytes(b)`; `process(src, files, outdir)`; `run(args)`; `selftest()`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: SSEN; data source: UK Power Networks open data; CSV file ssen_ecr_part_1_1mw_august_2026_csv.csv; CSV file ssen_ecr_part_1_50kw_august_2026_csv.csv; CSV file embedded-capacity-register-attributes.csv; CSV file 251212_cdpdata_nged-connections-reform-register.csv; CSV file clearviewconnect_connection_pipeline_data_2025_05.csv; GeoJSON file dno_ecr_dc_candidates.geojson]; out [JSON file]; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Build Network Model - File: data-grid-gb/pipelines/build_network_model.py (Python, 375 lines) · role other · stage ingest · entry point - Source: https://github.com/Ventusltd/data-grid-gb/blob/4a9cef6c7c791f76d416c8b2fbafac8265f7a263/pipelines/build_network_model.py#L1-L375 - Page: https://code.globalgrid2050.com/explore-code/s/0316.html#f1 - Synopsis: A Python command-line tool in the pipelines folder of Data Grid GB that works with rows after header (`rows_after_header`) and branch rows (`branch_rows`) (units: kV, MVA, MVAr). - What it achieves (comment): It is built from the cells step (`cells`), the is header helper (`is_header`) and the number step (`number`). Parse Electricity Ten Year Statement (ETYS) Appendix B and D into one clean network model. Its code works with 100 MVA, 132 kV and 275 kV. - What it does: It lists and searches GB transmission network, transformers and interconnectors. Defines 7 functions or classes, including cells, is_header, rows_after_header, number, text. Uses libraries io, json, os, re, collections. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (voltage levels 400kV, 275kV, 132kV (all 132kV or above)): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers, interconnectors, 400kV, 275kV, 132kV. - Inputs & outputs: In: JSON file gb-transmission-network.v1.json. Voltage levels named: 400kV, 275kV, 132kV. - Downstream impact: Used directly by 1 file: Refresh Network Products Workflow (data-grid-gb). - Signatures: `cells(worksheet, min_row=1)`; `is_header(row)`; `rows_after_header(worksheet)`; `number(value)`; `text(value)`; `main()`; `branch_rows(sheet, kind, with_year=False, lead_labels=0)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file gb-transmission-network.v1.json]; out []; crs []; voltages [400kV, 275kV, 132kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Fetch - File: data-grid-gb/ssen-substations/fetch.py (Python, 167 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/data-grid-gb/blob/4a9cef6c7c791f76d416c8b2fbafac8265f7a263/ssen-substations/fetch.py#L1-L167 - Page: https://code.globalgrid2050.com/explore-code/s/0316.html#f2 - Synopsis: A Python command-line tool in the SSEN substations folder of Data Grid GB that fetches SSEN substations, using SHA-256 from SSEN. - What it achieves (comment): It is built from the request step (`request`), the metadata step (`metadata`) and the sha step (`sha`). Retrieve official SSEN CKAN resource without authentication; fail closed. It accepts `--output`. - What it does: It fetches SSEN substations. Defines request, metadata, sha, main. Uses libraries argparse, csv, datetime, hashlib, json. Side effects: reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'ssen'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: SSEN; Parquet file ssen_substations.parquet; DuckDB queries; command-line arguments. Out: Parquet file. - Downstream impact: Used directly by 1 file: SSEN Substations Workflow (data-grid-gb). - Signatures: `request(action, **params)`; `metadata()`; `sha(path)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: SSEN; Parquet file ssen_substations.parquet; DuckDB queries; command-line arguments]; out [Parquet file]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Build Interconnectors - File: data-interconnectors/pipelines/build_interconnectors.py (Python, 609 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/data-interconnectors/blob/2bd00d9610f24d02ba00e341216cab162b3e821b/pipelines/build_interconnectors.py#L1-L609 - Page: https://code.globalgrid2050.com/explore-code/s/0317.html#f1 - Synopsis: A Python command-line tool in the pipelines folder of Data Interconnectors that fetches monthly by link direction and annual by link direction from Elexon Balancing Mechanism Reporting Service (BMRS). - What it achieves (name): It parses time (`parse_time`) and parses float (`parse_float`). Its name says it builds interconnectors. Defines `utcnow`, `parse_month`, `month_start` and 22 more. It reads `monthly_by_link_direction.parquet`. It accepts `--start`, `--end` and `--timeout`. - What it does: It fetches monthly by link direction, annual by link direction, interconnector build and interconnectors. Defines 26 functions or classes, including utcnow, parse_month, month_start, next_month, month_iter. Uses libraries __future__, argparse, datetime, json, math. Side effects: reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'interconnectors'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors. - Inputs & outputs: In: data source: Elexon BMRS; Parquet file data_0.parquet; Parquet file monthly_by_link_direction.parquet; Parquet file annual_by_link_direction.parquet; DuckDB queries; command-line arguments. Out: Parquet file monthly_by_link_direction.parquet; Parquet file annual_by_link_direction.parquet; JSON file INTERCONNECTOR_BUILD_LATEST.json. - Downstream impact: Used directly by 2 files: Monthly Update Interconnectors (data-interconnectors); Gridbot UK Interconnector Build Workflow (data-interconnectors). - Signatures: `utcnow()`; `parse_month(value: str)`; `month_start(year: int, month: int)`; `next_month(year: int, month: int)`; `month_iter(start: str, end: str)`; `latest_complete_month()`; `iso_z(value: dt.datetime)`; `api_rows(payload: Any)`; `pick(row: dict[str, Any], keys: list[str])`; `parse_time(value: Any)`; `parse_float(value: Any)`; `fetch_month(year: int, month: int, timeout: int)`; `infer_interval(items: list[dict[str, Any]], index: int)`; `normalise_month(year: int, month: int, raw_rows: list[dict[str, Any]])`; `write_month(rows: list[dict[str, Any]], year: int, month: int)`; `parquet_path()`; `build_rollups()`; `verify_output(latest_month: str)`; `number(value: Any)`; `extract_year_month(row: dict[str, Any])`; `monolith_monthly_map(monolith_dir: Path)`; `fresh_monthly_map()`; `reconcile(monolith_dir: Path)`; `write_reports(report: dict[str, Any])`; `update_changelog(report: dict[str, Any])` (and 1 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: Elexon BMRS; Parquet file data_0.parquet; Parquet file monthly_by_link_direction.parquet; Parquet file annual_by_link_direction.parquet; DuckDB queries; command-line arguments]; out [Parquet file monthly_by_link_direction.parquet; Parquet file annual_by_link_direction.parquet; JSON file INTERCONNECTOR_BUILD_LATEST.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Monthly Update Interconnectors - File: data-interconnectors/pipelines/monthly_update_interconnectors.py (Python, 129 lines) · role energy-data · stage ingest · entry point - Source: https://github.com/Ventusltd/data-interconnectors/blob/2bd00d9610f24d02ba00e341216cab162b3e821b/pipelines/monthly_update_interconnectors.py#L1-L129 - Page: https://code.globalgrid2050.com/explore-code/s/0318.html#f1 - Synopsis: A Python command-line tool in the pipelines folder of Data Interconnectors that reads interconnectors. It resolves month range (`resolve_month_range`). - What it achieves (name): Defines `month_text`, `shift_month`, `existing_flow_files` and 1 more. It accepts `--start`, `--end` and `--refetch-months`. - What it does: It loads interconnectors. Defines month_text, shift_month, existing_flow_files, resolve_month_range, main. Uses libraries __future__, argparse, json, pathlib. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'interconnectors'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 1 file: Gridbot UK Interconnector Build Workflow (data-interconnectors). - Signatures: `month_text(year: int, month: int)`; `shift_month(year: int, month: int, offset: int)`; `existing_flow_files()`; `resolve_month_range(start: str, end: str, refetch_months: int, bootstrap_start: str)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Data UK Distribution Network Operator (DNO) and Transmission System Operator (TSO) — Index Page - File: data_uk_dno_and_tso/index.html (HTML, 320 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/data_uk_dno_and_tso/blob/0f012179c2271a7d3bbb06a91af915d23bd9396b/index.html#L1-L320 - Page: https://code.globalgrid2050.com/explore-code/s/0318.html#f2 - Synopsis: A web page in Data UK DNO And TSO that draws MPAN distributor, sources, operators schema and transmission ownership. - What it achieves (comment): Canonical public-data spine for UK and Ireland electricity network operators, DNO licence areas, transmission owners, National Energy System Operator (NESO), regulators and government public energy datasets. - What it does: It draws mpan distributor, sources, operators schema and transmission ownership. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'dno'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: CSV file mpan_distributor.csv; JSON file sources.json; CSV file operators.csv; CSV file transmission_ownership.csv; CSV file department_lineage.csv; JSON file operators.schema.json; DuckDB queries. Out: web page. - Downstream impact: It is itself an entry point (page); no other file was found loading it. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [CSV file mpan_distributor.csv; JSON file sources.json; CSV file operators.csv; CSV file transmission_ownership.csv; CSV file department_lineage.csv; JSON file operators.schema.json; DuckDB queries]; out [web page]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Build Declared - File: data_uk_dno_and_tso/scripts/build_declared.py (Python, 38 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/data_uk_dno_and_tso/blob/0f012179c2271a7d3bbb06a91af915d23bd9396b/scripts/build_declared.py#L1-L38 - Page: https://code.globalgrid2050.com/explore-code/s/0318.html#f3 - Synopsis: A Python command-line tool in the scripts folder of Data UK DNO And TSO that reads CSV (`read_csv`). - What it achieves (name): Its name says it builds declared. Defines `read_csv` and `write_json`. - What it does: It loads data. Defines read_csv, write_json, main. Uses libraries __future__, csv, json, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'dno'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Audit Workflow (data_uk_dno_and_tso). - Signatures: `read_csv(path: Path)`; `write_json(name: str, rows: list[dict[str, str]])`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Fetch CKAN Catalogue - File: data_uk_dno_and_tso/scripts/fetch_ckan_catalogue.py (Python, 71 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/data_uk_dno_and_tso/blob/0f012179c2271a7d3bbb06a91af915d23bd9396b/scripts/fetch_ckan_catalogue.py#L1-L71 - Page: https://code.globalgrid2050.com/explore-code/s/0318.html#f4 - Synopsis: A Python command-line tool in the scripts folder of Data UK DNO And TSO that reads sources, using SHA-256. - What it achieves (name): Its name says it fetches CKAN catalogue. Defines `load_sources` and `portal_base_from_action_url`. - What it does: It loads sources. Defines load_sources, portal_base_from_action_url, main. Uses libraries __future__, argparse, json, pathlib, urllib.parse. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'dno'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file sources.json; JSON file catalogue.json; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `load_sources()`; `portal_base_from_action_url(url: str)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file sources.json; JSON file catalogue.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 0 ### Fetch NESO Distribution Network Operator (DNO) Boundaries - File: data_uk_dno_and_tso/scripts/fetch_neso_dno_boundaries.py (Python, 14 lines) · role energy-data · stage transform · entry point - Source: https://github.com/Ventusltd/data_uk_dno_and_tso/blob/0f012179c2271a7d3bbb06a91af915d23bd9396b/scripts/fetch_neso_dno_boundaries.py#L1-L14 - Page: https://code.globalgrid2050.com/explore-code/s/0318.html#f5 - Synopsis: A Python command-line tool in the scripts folder of Data UK DNO And TSO that uses EPSG:27700 and EPSG:4326. - What it achieves (name): Its name says it fetches NESO DNO boundaries. - What it does: It calculates its inputs. Defines main. Uses libraries __future__. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'dno'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fetch Ods Catalogue - File: data_uk_dno_and_tso/scripts/fetch_ods_catalogue.py (Python, 69 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/data_uk_dno_and_tso/blob/0f012179c2271a7d3bbb06a91af915d23bd9396b/scripts/fetch_ods_catalogue.py#L1-L69 - Page: https://code.globalgrid2050.com/explore-code/s/0318.html#f6 - Synopsis: A Python command-line tool in the scripts folder of Data UK DNO And TSO that reads sources, using SHA-256. - What it achieves (name): Its name says it fetches ods catalogue. Defines `load_sources` and `portal_base_from_catalogue_url`. It accepts `--limit`. - What it does: It loads sources. Defines load_sources, portal_base_from_catalogue_url, main. Uses libraries __future__, argparse, json, pathlib, urllib.parse. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'dno'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file sources.json; JSON file catalogue.json; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `load_sources()`; `portal_base_from_catalogue_url(url: str)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file sources.json; JSON file catalogue.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 0 ### Audit - File: data_uk_dno_and_tso/scripts/lib/audit.py (Python, 26 lines) · role storage · stage output - Source: https://github.com/Ventusltd/data_uk_dno_and_tso/blob/0f012179c2271a7d3bbb06a91af915d23bd9396b/scripts/lib/audit.py#L1-L26 - Page: https://code.globalgrid2050.com/explore-code/s/0318.html#f7 - Synopsis: A Python module in the scripts folder of Data UK DNO And TSO that writes receipts (`write_receipts`). - What it achieves (name): Defines `utc_now` and `write_receipts`. - What it does: Defines utc_now, write_receipts. Uses libraries __future__, json, datetime, pathlib, typing. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'dno'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 3 files: Build Declared (data_uk_dno_and_tso); Fetch CKAN Catalogue (data_uk_dno_and_tso); Fetch Ods Catalogue (data_uk_dno_and_tso). Reached from 1 other entry point, including Audit Workflow (data_uk_dno_and_tso). - Signatures: `utc_now()`; `write_receipts(run_name: str, payload: dict[str, Any])` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### CKAN - File: data_uk_dno_and_tso/scripts/lib/ckan.py (Python, 43 lines) · role ingest · stage ingest - Source: https://github.com/Ventusltd/data_uk_dno_and_tso/blob/0f012179c2271a7d3bbb06a91af915d23bd9396b/scripts/lib/ckan.py#L1-L43 - Page: https://code.globalgrid2050.com/explore-code/s/0319.html#f1 - Synopsis: A Python module in the scripts folder of Data UK DNO And TSO that gets action (`get_action`). It is built from the CKAN portal class (`CKANPortal`). - What it achieves (name): Defines `CKANPortal`, `action_base`, `action_url` and 1 more. - What it does: It fetches data. Defines CKANPortal, action_base, _headers, action_url, get_action. Uses libraries __future__, json, os, time, urllib.parse. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'dno'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Fetch CKAN Catalogue (data_uk_dno_and_tso). - Signatures: `class CKANPortal`; `action_base(self)`; `_headers(api_key_env: str | None)`; `action_url(portal: CKANPortal, action: str, **params: str)`; `get_action(portal: CKANPortal, action: str, **params: str)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Hashing - File: data_uk_dno_and_tso/scripts/lib/hashing.py (Python, 13 lines) · role other · stage ingest - Source: https://github.com/Ventusltd/data_uk_dno_and_tso/blob/0f012179c2271a7d3bbb06a91af915d23bd9396b/scripts/lib/hashing.py#L1-L13 - Page: https://code.globalgrid2050.com/explore-code/s/0319.html#f2 - Synopsis: A Python module in the scripts folder of Data UK DNO And TSO that works with sha256 file (`sha256_file`), using SHA-256. - What it achieves (name): Defines `sha256_file`. - What it does: Defines sha256_file. Uses libraries __future__, hashlib, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'dno'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 3 files: Build Declared (data_uk_dno_and_tso); Fetch CKAN Catalogue (data_uk_dno_and_tso); Fetch Ods Catalogue (data_uk_dno_and_tso). Reached from 1 other entry point, including Audit Workflow (data_uk_dno_and_tso). - Signatures: `sha256_file(path: str | Path)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Opendatasoft - File: data_uk_dno_and_tso/scripts/lib/opendatasoft.py (Python, 56 lines) · role ingest · stage ingest - Source: https://github.com/Ventusltd/data_uk_dno_and_tso/blob/0f012179c2271a7d3bbb06a91af915d23bd9396b/scripts/lib/opendatasoft.py#L1-L56 - Page: https://code.globalgrid2050.com/explore-code/s/0319.html#f3 - Synopsis: A Python module in the scripts folder of Data UK DNO And TSO that lists datasets (`list_datasets`) and exports URL (`export_url`). - What it achieves (name): It is built from the ods portal class (`ODSPortal`) and the records URL helper (`records_url`). Defines `ODSPortal`, `api_base`, `get_json` and 3 more. - What it does: It fetches data. Defines 7 functions or classes, including ODSPortal, api_base, _headers, get_json, list_datasets. Uses libraries __future__, json, os, urllib.parse, urllib.request. Side effects: makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'dno'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Fetch Ods Catalogue (data_uk_dno_and_tso). - Signatures: `class ODSPortal`; `api_base(self)`; `_headers(api_key_env: str | None)`; `get_json(url: str, headers: dict[str, str])`; `list_datasets(portal: ODSPortal, limit: int = 100)`; `records_url(portal: ODSPortal, dataset_id: str, *, limit: int = 10, offset: int = 0)`; `export_url(portal: ODSPortal, dataset_id: str, fmt: str = "json")` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Validate Declared - File: data_uk_dno_and_tso/scripts/validate_declared.py (Python, 39 lines) · role other · stage ingest · entry point - Source: https://github.com/Ventusltd/data_uk_dno_and_tso/blob/0f012179c2271a7d3bbb06a91af915d23bd9396b/scripts/validate_declared.py#L1-L39 - Page: https://code.globalgrid2050.com/explore-code/s/0319.html#f4 - Synopsis: A Python command-line tool in the scripts folder of Data UK DNO And TSO that validates CSV (`validate_csv`). - What it achieves (name): Its name says it validates declared. Defines `validate_csv`. - What it does: Defines validate_csv, main. Uses libraries __future__, csv, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'dno'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Audit Workflow (data_uk_dno_and_tso). - Signatures: `validate_csv(path: Path)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Validate Schema Drift - File: data_uk_dno_and_tso/scripts/validate_schema_drift.py (Python, 41 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/data_uk_dno_and_tso/blob/0f012179c2271a7d3bbb06a91af915d23bd9396b/scripts/validate_schema_drift.py#L1-L41 - Page: https://code.globalgrid2050.com/explore-code/s/0319.html#f5 - Synopsis: A Python command-line tool in the scripts folder of Data UK DNO And TSO that works with required columns (`required_columns`) and header columns (`header_columns`). - What it achieves (name): Its name says it validates schema drift. Defines `required_columns` and `header_columns`. - What it does: It loads data. Defines required_columns, header_columns, main. Uses libraries __future__, argparse, csv, json, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'dno'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 1 file: Audit Workflow (data_uk_dno_and_tso). - Signatures: `required_columns(schema_path: Path)`; `header_columns(csv_path: Path)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### MV Network - File: energy-transition-simulator/prototype/mod/engine/mv-network.mjs (JavaScript, 127 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/engine/mv-network.mjs#L1-L127 - Page: https://code.globalgrid2050.com/explore-code/s/0319.html#f6 - Synopsis: A JavaScript module in the engine folder of Energy Transition Simulator that reads routes (`readRoutes`) (units: kV, MVA), covering cables and transformers. It reads routes (`readRoutes`) and places network (`placeNetwork`). - What it achieves (comment): The medium-voltage network from the stations to the grid, as equipment outlines with solids and cable routes, placed on the ground by the user. - What it does: Defines 9 functions or classes, including equipmentSolids, box, solidLines, readRoutes, pt. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: cables, transformers. - Downstream impact: Used directly by 1 file: Block Build (energy-transition-simulator). - Signatures: `export equipmentSolids(kind, at = [0, 0, 0], heading = 0, id = kind)`; `export solidLines(solids)`; `export readRoutes(json)`; `export drawingToGround({ at = [0, 0], metresPerUnit = 1, heading = 0, yDown = false } = {})`; `export placeNetwork(diagram, { routes = null, at = [0, 0], heading = 0, metresPerUnit = 1, spacing = 40, groundAt = () => 0 } = {})`; `export cableLines(cables, kind = null)`; `box(part, min, max)`; `pt(p)`; `links(json.links || [])`; `kindOf(n)` - domain_stage: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/mv-network.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 1 ### Plant Feeders - File: energy-transition-simulator/prototype/mod/engine/plant-feeders.mjs (JavaScript, 142 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/engine/plant-feeders.mjs#L1-L142 - Page: https://code.globalgrid2050.com/explore-code/s/0319.html#f7 - Synopsis: A JavaScript module in the engine folder of Energy Transition Simulator that works with cables, 33kV and A roads, using IEC 60287. - What it achieves (comment): It routes feeders (`routeFeeders`) and is built from the to spine helper (`toSpine`) and the road path helper (`roadPath`). The 33kV feeders of a laid-out plant, routed along its roads, with their trenches and cables. Its code works with 33 kV. - What it does: It calculates cables, 33kV and A roads. Defines 11 functions or classes, including toSpine, roadPath, side, coverage, trenchFor. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: cables, 33kV, A roads. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 3 files: Block MV (energy-transition-simulator); Cmd Model (energy-transition-simulator); Plant Layout (energy-transition-simulator). - Signatures: `export roadPath(A, B, net)`; `export coverage(intervals)`; `export trenchFor(c, L, into)`; `export routeFeeders(tpl, net, p)`; `export trenchRows(e, fmt = v => v.toFixed(2))`; `toSpine(pt, net)`; `side(pt)`; `onRoad(s)`; `add(key, a, b)`; `dropOf(hops)`; `k(m)` - domain_stage: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271740-site-world/world/plant-feeders.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 2 estate files (import 2); used by 3; mentioned by 1 ### Single-Line Diagram (SLD) Connect - File: energy-transition-simulator/prototype/mod/engine/sld-connect.mjs (JavaScript, 57 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/engine/sld-connect.mjs#L1-L57 - Page: https://code.globalgrid2050.com/explore-code/s/0319.html#f8 - Synopsis: A JavaScript module in the engine folder of Energy Transition Simulator that works with cables, substations, overhead lines (OHL) and 132kV. - What it achieves (comment): It is built from the nearest step (`nearest`), the kV for MW helper (`kvForMW`) and the choose connection helper (`chooseConnection`). Which grid connection a plant gets, from its size and what is near it. Its code works with 132 kV, 400 kV and 275 kV. - What it does: It calculates cables, substations, overhead lines (OHL) and 132kV. Defines nearest, km, kvForMW, chooseConnection. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: cables, substations, overhead lines (OHL), 132kV, 400kV, 275kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 33kV. - Downstream impact: Used directly by 2 files: Cmd Trench (energy-transition-simulator); Connect Here (energy-transition-simulator). - Signatures: `export kvForMW(mw, { minKv = 0, rules = {} } = {})`; `export chooseConnection({ mw, at, subs = [], towers = [], kv: fixed = null, minKv = 0, rules = {} })`; `nearest(list, at, ok)`; `km(m)` - domain_stage: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271552-site-world/world/sld-connect.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 33kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Single-Line Diagram (SLD) Rules - File: energy-transition-simulator/prototype/mod/engine/sld-rules.mjs (JavaScript, 95 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/engine/sld-rules.mjs#L1-L95 - Page: https://code.globalgrid2050.com/explore-code/s/0319.html#f9 - Synopsis: A JavaScript module in the engine folder of Energy Transition Simulator that works with cables, transformers and battery storage (BESS), 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 and battery storage (BESS). Defines groupFactor, economicSize, cost, isolationChecks, zOf. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: cables, transformers, battery storage (BESS), 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Block MV (energy-transition-simulator). - 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: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271853-site-world/world/sld-rules.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 0 ### Substations - File: energy-transition-simulator/prototype/mod/substations.js (JavaScript, 198 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/energy-transition-simulator/blob/a165ce6d56cb22271828874d68d570e8fa5e428a/prototype/mod/substations.js#L1-L198 - Page: https://code.globalgrid2050.com/explore-code/s/0320.html#f1 - Synopsis: A JavaScript file in the prototype folder of Energy Transition Simulator that draws grid substations and substations footprints odbl, and uses data from the GridAtlas repository. - What it achieves (comment): It labels block (`labelBlock`) and syncs btn (`syncBtn`). Substations as 3D wireframe compounds, in real coordinates (plain script; attaches to window.SIM). It responds to keydown and keyup events. - What it does: It draws grid substations and substations footprints odbl. Defines 25 functions or classes, including ecef, PFm, localFn, kvList, load. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage experimental (path word 'prototype'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: data source: gridatlas data; GeoJSON file grid_substations.geojson; JSON file substations-footprints.odbl.json. Coordinate systems named: WGS84 / EPSG:4326. - Signatures: `here(document.currentScript && document.currentScript.src)`; `ecef(lat, lon)`; `PFm()`; `localFn(lat0, lon0)`; `kvList(v)`; `load()`; `seg(L, a, b, za, zb)`; `box(L, cx, cy, ux, uy, hw, hd, h)`; `fence(L, ring, dashed)`; `frameOf(ring)`; `place(b)`; `EST_HALF(kv)`; `label(L, text, cx, cy, z0, size, bearing)`; `kvText(kv)`; `compound(s)`; `labelBlock(s, c, bearing)`; `dist(a, b)`; `nearby(c, r, want)`; `refresh(force)`; `go(kv)`; `command(text)`; `syncBtn()`; `ui()`; `toggle()`; `check()` (and 1 more) - domain_stage: experimental · commercial_user: ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; GeoJSON file grid_substations.geojson; JSON file substations-footprints.odbl.json]; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Cells - File: faraday/apparatus/cells.mjs (JavaScript, 125 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/apparatus/cells.mjs#L1-L125 - Page: https://code.globalgrid2050.com/explore-code/s/0320.html#f2 - Synopsis: A JavaScript module in the apparatus folder of Faraday that works with half adder (`halfAdder`). - What it achieves (comment): It resets keys (`resetKeys`) and is built from the place step (`place`) and the input on helper (`inputOn`). The apparatus for experiments 16 to 19: can the dots compute? - What it does: Defines 16 functions or classes, including place, inputOn, compile, state, read. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 3 files: Cells Test (faraday); E099 (faraday); Faraday — Experiments (faraday). - Signatures: `export place(key)`; `export compile(program)`; `export state(rules, schedule, key, t, cache)`; `export read(rules, schedule, keys, t, useCache = true)`; `export settles(rules, schedule, keys, limit = 200, hold = 8)`; `export resetKeys(from = 0)`; `export halfAdder()`; `export adder4()`; `export latch()`; `inputOn(schedule, name, t)`; `out(a && b)`; `fresh()`; `nand(p, a, b)`; `not(p, a)`; `and(p, a, b)`; `or(p, a, b)`; `xor(p, a, b)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 1 ### Cells Test - File: faraday/apparatus/cells.test.mjs (JavaScript, 121 lines) · role test · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/apparatus/cells.test.mjs#L1-L121 - Page: https://code.globalgrid2050.com/explore-code/s/0320.html#f3 - Synopsis: A test in the apparatus folder of Faraday that checks Cells. It is built from the check step (`check`) and the count step (`count`). - What it achieves (comment): Every check READS THE CELLS (their lit or dark state at a tick). - What it does: It tests its inputs. Defines check, q, count. Uses libraries node:fs, node:url, node:path. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: Out: JSON file cells.result.json. - Signatures: `check(name, pass, detail)`; `q(t)`; `count(key, t)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [JSON file cells.result.json]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Grid Finder - File: faraday/apparatus/grid_finder.py (Python, 253 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/apparatus/grid_finder.py#L1-L253 - Page: https://code.globalgrid2050.com/explore-code/s/0320.html#f4 - Synopsis: A Python command-line tool in the apparatus folder of Faraday that reads connection points, GB transmission network and transformers, using SHA-256. - What it achieves (comment): It compares published path ratings (`compare_published_path_ratings`) and is built from the distance km helper (`distance_km`) and the grid finder class (`GridFinder`). Offline, evidence-bound candidate search. No headroom inferred from a map. It accepts `--build-data`, `--lat` and `--lon`. - What it does: It loads connection points, GB transmission network and transformers. Defines 8 functions or classes, including distance_km, _number, compare_published_path_ratings, GridFinder, __init__. Uses libraries argparse, collections, hashlib, json, math. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers. - Inputs & outputs: In: JSON file grid-finder-data.json; JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; command-line arguments. - Downstream impact: Used directly by 2 files: Test Grid Finder (faraday); Faraday — Index Page (faraday). Reached from 116 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); GlobalGrid2050 — Compute Page (globalgrid2050, https://globalgrid2050.com/compute/). - Signatures: `distance_km(lon1, lat1, lon2, lat2)`; `_number(name, value, minimum=None, maximum=None)`; `compare_published_path_ratings(path, mw, power_factor, season='winter')`; `class GridFinder`; `__init__(self, data_path=DATA_PATH, data=None)`; `path_to_voltage(self, site_code, voltage_kv, target_kv=400, max_hops=12)`; `query(self, latitude, longitude, mw, voltage_kv=None, target_kv=400, headroom_mw_by_site=None, limit=12, max_hops=12, radiu...)`; `build_data(source_root)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file grid-finder-data.json; JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Test Grid Finder - File: faraday/apparatus/test_grid_finder.py (Python, 127 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/apparatus/test_grid_finder.py#L1-L127 - Page: https://code.globalgrid2050.com/explore-code/s/0321.html#f1 - Synopsis: A test in the apparatus folder of Faraday that checks Grid Finder, using SHA-256. It is built from the grid finder tests class (`GridFinderTests`). - What it achieves (comment): Behavioral fixtures, actual source parity and independent reverse-distance audit. Its code works with 400 kV. - What it does: It tests transformers. Defines 10 functions or classes, including GridFinderTests, test_source_counts_and_hashes, test_actual_js_distance_source_parity, test_distance_degenerate_and_antipodal, test_all_site_paths_against_reverse_multi_target_distances. Uses libraries collections, hashlib, json, math, pathlib. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (voltage levels 400kV (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: transformers, 400kV. - Inputs & outputs: In: JSON file grid-finder-fixtures.json. Out: JSON file grid-finder-example-result.json; JSON file grid-finder-test-results.json. Voltage levels named: 400kV. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `class GridFinderTests`; `test_source_counts_and_hashes(self)`; `test_actual_js_distance_source_parity(self)`; `test_distance_degenerate_and_antipodal(self)`; `test_all_site_paths_against_reverse_multi_target_distances(self)`; `test_unknown_capacity_and_user_entered_scenario(self)`; `test_published_nameplate_is_not_spare_capacity(self)`; `test_no_assumed_voltage(self)`; `test_input_refusals(self)`; `test_unknown_voltage_and_no_invented_same_site_ties(self)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file grid-finder-fixtures.json]; out [JSON file grid-finder-example-result.json; JSON file grid-finder-test-results.json]; crs []; voltages [400kV] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Backup - File: faraday/bench/backup.py (Python, 73 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/backup.py#L1-L73 - Page: https://code.globalgrid2050.com/explore-code/s/0321.html#f2 - Synopsis: A Python command-line tool in the bench folder of Faraday that reads summary and top. It is built from the merge step (`merge`). - What it achieves (comment): Run by hand, or every N minutes by `nightshift.py`. - What it does: It loads summary and top. Defines merge, main. Uses libraries glob, heapq, json, os, sys. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file top.json; JSON file SUMMARY.json; command-line arguments. Out: JSON file SUMMARY.json. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `merge(run, src)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file top.json; JSON file SUMMARY.json; command-line arguments]; out [JSON file SUMMARY.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Commands Build - File: faraday/bench/commands_build.py (Python, 227 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/commands_build.py#L1-L227 - Page: https://code.globalgrid2050.com/explore-code/s/0321.html#f3 - Synopsis: A Python command-line tool in the bench folder of Faraday that reads top, solar and transformers, using SHA-256. - What it achieves (comment): It builds network commands (`build_network_commands`) and is built from the when step (`when`) and the sentence step (`sentence`). The page's "choose an example sentence" list is not written into the page: the page fetches it. - What it does: It loads top, solar and transformers. Defines 10 functions or classes, including when, kw, sentence, command, build_network_commands. Uses libraries hashlib, io, json, os, sys. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar, transformers. - Inputs & outputs: In: JSON file top.json; JSON file commands.json; JSON file current.json; command-line arguments. Out: JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `when(case)`; `kw(x)`; `sentence(kind, net, case, p_kw, vmax, vmin, tx)`; `command(seed, case)`; `build_network_commands()`; `curate(cmds)`; `site_pulse_commands()`; `sha256_of(path)`; `check()`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file top.json; JSON file commands.json; JSON file current.json; command-line arguments]; out [JSON file]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Commands Check - File: faraday/bench/commands_check.mjs (JavaScript, 74 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/commands_check.mjs#L1-L74 - Page: https://code.globalgrid2050.com/explore-code/s/0321.html#f4 - Synopsis: A JavaScript module in the bench folder of Faraday that reads transformers, using SHA-256. It is built from the stop step (`stop`) and the near step (`near`). - What it achieves (comment): Reads the pointer the way a browser will, re-hashes the file it names, and then FIRES EVERY COMMAND in the list through FIRE - the same code a visitor's browser runs. Its code works with 0.1 kW. - What it does: It loads transformers. Defines stop, near. Uses libraries node:module, node:fs, node:crypto, node:path, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers. - Inputs & outputs: In: JSON file current.json; command-line arguments. - Signatures: `stop(why)`; `near(got, want, tol)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 3 estate files (require 3); used by 0; mentioned by 0 ### Energy Cases - File: faraday/bench/energy_cases.py (Python, 64 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/energy_cases.py#L1-L64 - Page: https://code.globalgrid2050.com/explore-code/s/0321.html#f5 - Synopsis: A Python module in the bench folder of Faraday that works with solar. - What it achieves (comment): It is built from the year step (`year`), the t energy helper (`t_energy`) and the t known helper (`t_known`). SITE ENERGY: a very large private network (the scale of a major airport) hour by hour for a year. Its code works with 62 MW, 100 MW and 271 GWh. - What it does: It calculates solar. Defines year, t_energy, t_known, registry. Uses libraries json, math, random. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar. - Downstream impact: Used directly by 1 file: Tests (faraday). Reached from 1 other entry point, including One (faraday). - Signatures: `year(annual_gwh=271.0, peak_mw=100.0, pv_mwp=150.0, pv_gwh_per_150=135.0, batt_mwh=600.0, batt_mw=100.0, eff=0.90, seed=1)`; `t_energy(pv_mwp, batt_mwh)`; `t_known()`; `registry()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Fire - File: faraday/bench/fire.js (JavaScript, 63 lines) · role ingest · stage transform · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/fire.js#L1-L63 - Page: https://code.globalgrid2050.com/explore-code/s/0321.html#f6 - Synopsis: A JavaScript module in the bench folder of Faraday that calculates three-phase power (units: mm², kV, kW), covering cables, solar and transformers. - What it achieves (comment): It is built from the rate step (`rate`), the need step (`need`) and the parse step (`parse`). The pop commands that RUN IN THE VISITOR'S BROWSER. Its code works with 604 GWh. - What it does: Defines 6 functions or classes, including rate, r, need, parse, fire. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: cables, solar, transformers. - Downstream impact: Used directly by 6 files: Commands Check (faraday); Fire Site (faraday); Fire Topo (faraday); Million Check (faraday); and 2 more. - Signatures: `rate(m, s)`; `r(x, d)`; `need(o, keys)`; `parse(text)`; `fire(text)`; `register(name, family, run)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 6; mentioned by 1 ### Fire Check - File: faraday/bench/fire_check.mjs (JavaScript, 24 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/fire_check.mjs#L1-L24 - Page: https://code.globalgrid2050.com/explore-code/s/0321.html#f7 - Synopsis: A JavaScript module in the bench folder of Faraday. It is built from the same step (`same`). - What it achieves (comment): The browser's commands against the saved records: same inputs, same numbers, or the port is wrong. - What it does: It loads data. Defines same. Uses libraries node:fs, node:module, node:url, node:path. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Signatures: `same(a, b)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Fire Site - File: faraday/bench/fire_site.js (JavaScript, 101 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/fire_site.js#L1-L101 - Page: https://code.globalgrid2050.com/explore-code/s/0322.html#f1 - Synopsis: A JavaScript module in the bench folder of Faraday that works with solar, substations and transformers. - What it achieves (comment): It is built from the standard site helper (`standardSite`), the add step (`add`) and the mul step (`mul`). SITE PULSE in the visitor's browser: a port of `solve` and `record` in `bench/site_cases.py`. - What it does: It calculates solar, substations and transformers. Defines 9 functions or classes, including standardSite, add, mul, div, conj. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar, substations, transformers. - Downstream impact: Used directly by 3 files: Commands Check (faraday); Million Check (faraday); Bench — Results Page (faraday). - Signatures: `standardSite()`; `add(a, b)`; `mul(a, b)`; `div(a, b)`; `conj(a)`; `rnd(x, d)`; `solve(site, pvShare, genOn, off, loadShare, c, tol)`; `zsMag(c.kv ** 2)`; `kw(off.includes('pvload') && s.n === site.pv_on)`; `sitePulse(i)`; `signed(x)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (require 1); used by 3; mentioned by 1 ### Fire Topo - File: faraday/bench/fire_topo.js (JavaScript, 91 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/fire_topo.js#L1-L91 - Page: https://code.globalgrid2050.com/explore-code/s/0322.html#f2 - Synopsis: A JavaScript module in the bench folder of Faraday that works with solar, cables, transformers and substations. - What it achieves (comment): It is built from the mulberry32 step (`mulberry32`), the network step (`network`) and the add step (`add`). NETWORKS FROM A SEED, in the visitor's browser: the same generator and the same two pulse sweep as `bench/topo.py`, draw for draw and sum for sum. - What it does: It calculates solar, cables, transformers and substations. Defines 9 functions or classes, including mulberry32, network, add, mul, div. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar, cables, transformers, substations. - Downstream impact: Used directly by 2 files: Commands Check (faraday); Topo Check (faraday). - Signatures: `mulberry32(a)`; `network(seed, variant)`; `add(a, b)`; `mul(a, b)`; `div(a, b)`; `conj(a)`; `solve(net, pvShare, genOn, loadShare, tol)`; `zs(c.kv ** 2)`; `rnd(x, d)`; `run(i)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (require 1); used by 2; mentioned by 0 ### Million - File: faraday/bench/million.py (Python, 119 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/million.py#L1-L119 - Page: https://code.globalgrid2050.com/explore-code/s/0322.html#f3 - Synopsis: A Python command-line tool in the bench folder of Faraday that works with generic site (`generic_site`) (units: kW, kVA). - What it achieves (comment): It is built from the mulberry32 step (`mulberry32`), the nxt step (`nxt`) and the one case helper (`one_case`). One seed = one generic site (no real one) x 8 scenarios x 3 load shares = 24 cases. It accepts `--seeds`, `--workers` and `--selftest`. - What it does: It loads data. Defines 7 functions or classes, including mulberry32, nxt, generic_site, one_case, shard. Uses libraries argparse, json, math, os, subprocess. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. Out: JSON file. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `mulberry32(a)`; `nxt()`; `generic_site(seed)`; `one_case(site, scen, ls)`; `shard(i)`; `status(done, total_shards, t0, note='')`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [command-line arguments]; out [JSON file]; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Million Check - File: faraday/bench/million_check.mjs (JavaScript, 41 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/million_check.mjs#L1-L41 - Page: https://code.globalgrid2050.com/explore-code/s/0322.html#f4 - Synopsis: A JavaScript module in the bench folder of Faraday that works with generic site (`genericSite`) (units: kW, kVA). - What it achieves (comment): It is built from the mulberry32 step (`mulberry32`), the generic site helper (`genericSite`) and the close step (`close`). THE SECOND OPINION. Takes one shard written by `million.py`, rebuilds every site from its seed with the same stated generator, solves every case again with `fire_site.js` (the code the Kuiper runs in a visitor's browser). - What it does: It loads data. Defines mulberry32, genericSite, close. Uses libraries node:module, node:fs. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Signatures: `export genericSite(seed)`; `mulberry32(a)`; `km(5 + pick(76))`; `close(a, b)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 2 estate files (require 2); used by 0; mentioned by 0 ### National Cases - File: faraday/bench/national_cases.py (Python, 36 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/national_cases.py#L1-L36 - Page: https://code.globalgrid2050.com/explore-code/s/0322.html#f5 - Synopsis: A Python module in the bench folder of Faraday. It is built from the day step (`day`), the t storage helper (`t_storage`) and the t known helper (`t_known`). - What it achieves (comment): NATIONAL DAY: one spring day of a whole country's electricity, and how much storage it would take. Its code works with 604 GWh, 30.5 GW and 44.4 GW. - What it does: It calculates its inputs. Defines day, t_storage, t_known, registry. Uses libraries json, math. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Tests (faraday). Reached from 1 other entry point, including One (faraday). - Signatures: `day()`; `t_storage(firm_gw, eff)`; `t_known()`; `registry()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### One - File: faraday/bench/one.py (Python, 21 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/one.py#L1-L21 - Page: https://code.globalgrid2050.com/explore-code/s/0322.html#f6 - Synopsis: A Python command-line tool in the bench folder of Faraday. - What it achieves (comment): `bench/one.py` N - run test N in a process of its own and print its record as one line of JSON. - What it does: It calculates its inputs. Defines main. Uses libraries json, os, sys, time. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Page - File: faraday/bench/page.py (Python, 89 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/page.py#L1-L89 - Page: https://code.globalgrid2050.com/explore-code/s/0322.html#f7 - Synopsis: A Python module in the bench folder of Faraday that draws records and commands. It builds files (`build_files`). - What it achieves (comment): The bench as cells, with a command bar. It reads `records.json`. - What it does: It draws records and commands. Defines build_files. Uses libraries json, time. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file records.json; JSON file commands.json; form fields (user input). Out: canvas drawing. - Downstream impact: It is itself an entry point (Python module); no other file was found loading it. - Signatures: `build_files(rows)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file records.json; JSON file commands.json; form fields (user input)]; out [canvas drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Bench — Results Page - File: faraday/bench/results/index.html (HTML, 50 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/results/index.html#L1-L50 - Page: https://code.globalgrid2050.com/explore-code/s/0322.html#f8 - Synopsis: A web page in Faraday that draws records and commands. It is built from the draw step (`draw`), the esc step (`esc`) and the nums step (`nums`). - What it achieves (name): Defines `fit`, `pos`, `col` and 5 more. It reads `records.json`. It responds to click, keydown and resize events. - What it does: It draws records and commands. Defines 8 functions or classes, including fit, pos, col, draw, esc. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file records.json; JSON file commands.json; form fields (user input). Out: web page; canvas drawing. - Downstream impact: It is itself an entry point (page); no other file was found loading it. - Signatures: `fit()`; `pos(j)`; `col(r)`; `draw(now)`; `esc(s)`; `nums(n)`; `card(title,tag,colour,body)`; `show(j)`; `fire()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file records.json; JSON file commands.json; form fields (user input)]; out [web page; canvas drawing]; crs []; voltages [] - Edges: uses 2 estate files (script-src 2); used by 0; mentioned by 0 ### Site Cases - File: faraday/bench/site_cases.py (Python, 142 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/site_cases.py#L1-L142 - Page: https://code.globalgrid2050.com/explore-code/s/0322.html#f9 - Synopsis: A Python module in the bench folder of Faraday that works with solar, transformers, 11kV and substations. - What it achieves (comment): It is built from the standard site helper (`standard_site`), the solve step (`solve`) and the record step (`record`). SITE PULSE: a generic industrial site behind its meter, as cells and two pulses. Its code works with 11 kV. - What it does: It calculates solar, transformers, 11kV and substations. Defines 9 functions or classes, including standard_site, solve, record, t_scenario, t_threshold. Uses libraries json, math, random. - Why it exists in the grid workflow: Domain stage sub33kv_design (voltage levels 11kV (all 33kV or below)): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, transformers, 11kV, substations. - Inputs & outputs: Voltage levels named: 11kV. - Downstream impact: Used directly by 2 files: Million (faraday); Tests (faraday). Reached from 1 other entry point, including One (faraday). - Signatures: `standard_site()`; `solve(site, pv_share, gen_on, off=(), load_share=1.0, c=CANDIDATE, tol=1e-9)`; `record(site, scen, load_share, note='')`; `t_scenario(scen, load_share)`; `t_threshold(kind)`; `bad(pv)`; `random_site(seed)`; `t_survey(seed)`; `registry()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [11kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Tests - File: faraday/bench/tests.py (Python, 333 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/tests.py#L1-L333 - Page: https://code.globalgrid2050.com/explore-code/s/0323.html#f1 - Synopsis: A Python module in the bench folder of Faraday that tests grid 11kV UK Power Networks (UKPN), substations and cables, using SHA-256. - What it achieves (comment): It is built from the points step (`points`), the shape step (`shape`) and the nearest gap helper (`nearest_gap`). Each test is a pure function of its id: same id, same answer, on any machine. Its code works with 11 kV. - What it does: It tests grid 11kV UKPN, substations and cables. Defines 23 functions or classes, including points, km, shape, nearest_gap, t_arrangement. Uses libraries cmath, glob, hashlib, json, math. Side effects: uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage sub33kv_design (voltage levels 11kV (all 33kV or below)): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations, cables, 11kV. - Inputs & outputs: In: Parquet file grid_11kv_ukpn.parquet. Voltage levels named: 11kV. - Downstream impact: Used directly by 1 file: One (faraday). - Signatures: `points()`; `km(a, b)`; `shape(name, n)`; `nearest_gap(P)`; `t_arrangement(name, n=2000, body_px=150)`; `t_gate(kind)`; `t_pulse(origin_name, speed_km_per_tick, second=None)`; `class Cells`; `__init__(self)`; `inp(self, name)`; `nand(self, a, b)`; `NOT(self, a)`; `AND(self, a, b)`; `OR(self, a, b)`; `XOR(self, a, b)`; `run(self, inputs, outs, ticks=400)`; `adder(bits)`; `t_logic(kind)`; `feeder(seed, size=40)`; `sweep(root, parent, length, homes, ev_share, c=CANDIDATE, tol=1e-9)`; `t_feeder(seed, ev_share)`; `registry()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [Parquet file grid_11kv_ukpn.parquet]; out []; crs []; voltages [11kV] - Edges: uses 5 estate files (import 5); used by 1; mentioned by 0 ### Topo - File: faraday/bench/topo.py (Python, 200 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/topo.py#L1-L200 - Page: https://code.globalgrid2050.com/explore-code/s/0323.html#f2 - Synopsis: A Python command-line tool in the bench folder of Faraday that reads cables, solar, transformers and substations. - What it achieves (comment): It is built from the mulberry32 step (`mulberry32`), the nxt step (`nxt`) and the network step (`network`). NETWORKS BY THE BILLION: different TOPOLOGIES, not one site with different numbers. It accepts `--seeds`, `--workers` and `--selftest`. - What it does: It loads cables, solar, transformers and substations. Defines 9 functions or classes, including mulberry32, nxt, network, solve, telling. Uses libraries argparse, heapq, json, math, os. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: cables, solar, transformers, substations. - Inputs & outputs: In: command-line arguments. Out: JSON file. - Downstream impact: Used directly by 2 files: Commands Build (faraday); Nightshift Workflow (faraday). - Signatures: `mulberry32(a)`; `nxt()`; `network(seed, variant=None)`; `solve(net, pv_share, gen_on, load_share, tol=1e-9)`; `telling(net, case, r)`; `shard(i)`; `status(tot, n_done, n_all, t0, note)`; `add(tot, d, this_run)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [command-line arguments]; out [JSON file]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Topo Check - File: faraday/bench/topo_check.mjs (JavaScript, 22 lines) · role ingest · stage ingest · not reached (candidate for review) - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/topo_check.mjs#L1-L22 - Page: https://code.globalgrid2050.com/explore-code/s/0323.html#f3 - Synopsis: A JavaScript module in the bench folder of Faraday. - What it achieves (comment): One shard in; every network rebuilt from its seed by `fire_topo.js` (the code the Kuiper runs), every case solved again, every number compared. - What it does: It loads data. Uses libraries node:module, node:fs. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 2 estate files (require 2); used by 0; mentioned by 0 ### Traction Cases - File: faraday/bench/traction_cases.py (Python, 45 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/bench/traction_cases.py#L1-L45 - Page: https://code.globalgrid2050.com/explore-code/s/0323.html#f4 - Synopsis: A Python module in the bench folder of Faraday that works with solar, transformers and substations. - What it achieves (comment): It is built from the t chain helper (`t_chain`), the t scale helper (`t_scale`) and the t known helper (`t_known`). DC TRACTION: solar fed straight into a metro's direct current traction system, as sums that can fail. Its code works with 80 GWh, 64 MW and 100 GWh. - What it does: It calculates solar, transformers and substations. Defines t_chain, t_scale, t_known, registry. Uses libraries json. - Why it exists in the grid workflow: Domain stage sub33kv_design (voltage levels 22kV (all 33kV or below)): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, transformers, substations, 22kV. - Inputs & outputs: Voltage levels named: 22kV. - Downstream impact: Used directly by 1 file: Tests (faraday). Reached from 1 other entry point, including One (faraday). - Signatures: `t_chain(inverter, transformer, rectifier, dcdc)`; `t_scale(solar_gwh, saving_share)`; `t_known()`; `registry()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [22kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### E036 - File: faraday/experiments/e036.mjs (JavaScript, 29 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/experiments/e036.mjs#L1-L29 - Page: https://code.globalgrid2050.com/explore-code/s/0323.html#f5 - Synopsis: A JavaScript module in the experiments folder of Faraday. - What it achieves (comment): 36: a ring of 3, 5, 7 NOT cells. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### E037 - File: faraday/experiments/e037.mjs (JavaScript, 22 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/experiments/e037.mjs#L1-L22 - Page: https://code.globalgrid2050.com/explore-code/s/0323.html#f6 - Synopsis: A JavaScript module in the experiments folder of Faraday. - What it achieves (comment): 37: a two to one selector. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### E038 - File: faraday/experiments/e038.mjs (JavaScript, 31 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/experiments/e038.mjs#L1-L31 - Page: https://code.globalgrid2050.com/explore-code/s/0323.html#f7 - Synopsis: A JavaScript module in the experiments folder of Faraday. - What it achieves (comment): 38: a four bit comparator. Is "A greater than B" right for all 256 pairs? - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### E095 - File: faraday/experiments/e095.mjs (JavaScript, 37 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/experiments/e095.mjs#L1-L37 - Page: https://code.globalgrid2050.com/explore-code/s/0324.html#f1 - Synopsis: A JavaScript module in the experiments folder of Faraday that works with exact angle (`exactAngle`) and calculates planar distances. - What it achieves (comment): It is built from the exact angle helper (`exactAngle`), the exact step (`exact`) and the page step (`page`). 95: is the sunflower law (r = sqrt(key), angle = key x golden angle) exact at key 38 billion in the page's number type? - What it does: It calculates its inputs. Defines exactAngle, exact, page, dist. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Signatures: `exactAngle(k)`; `exact(k)`; `page(k)`; `dist(p, q)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### E099 - File: faraday/experiments/e099.mjs (JavaScript, 28 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/experiments/e099.mjs#L1-L28 - Page: https://code.globalgrid2050.com/explore-code/s/0324.html#f2 - Synopsis: A JavaScript module in the experiments folder of Faraday. - What it achieves (comment): 99: the same rule run two ways, backwards (ask one cell at one tick) and forwards (sweep every cell, tick by tick). - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 0; mentioned by 0 ### Faraday — Experiments - File: faraday/experiments/lib.mjs (JavaScript, 41 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/experiments/lib.mjs#L1-L41 - Page: https://code.globalgrid2050.com/explore-code/s/0324.html#f3 - Synopsis: A JavaScript module. It is built from the builder step (`builder`), the fresh step (`fresh`) and the input step (`input`). - What it achieves (comment): Circuit builders for the experiments, on the one rule of `apparatus/cells.mjs` and nothing else. - What it does: It calculates its inputs. Defines 10 functions or classes, including builder, fresh, input, nand, not. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Downstream impact: Used directly by 4 files: E036 (faraday); E037 (faraday); E038 (faraday); E099 (faraday). - Signatures: `export builder(from = 20000)`; `export sweep(program, schedule, ticks, inputOn)`; `export inputOn(schedule, name, t)`; `fresh()`; `input(name)`; `nand(a, b)`; `not(a)`; `and(a, b)`; `or(a, b)`; `xor(a, b)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 4; mentioned by 0 ### Faraday — Experiments - File: faraday/experiments/run.mjs (JavaScript, 39 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/experiments/run.mjs#L1-L39 - Page: https://code.globalgrid2050.com/explore-code/s/0324.html#f4 - Synopsis: A JavaScript module that runs experiments by number. - What it achieves (comment): The question, apparatus and what would refute it come from INDEX.tsv. - What it does: It loads data. Uses libraries node:fs, node:url, node:path. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiments'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: command-line arguments. - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Faraday — Index Page - File: faraday/index.html (HTML, 448 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/index.html#L1-L448 - Page: https://code.globalgrid2050.com/explore-code/s/0324.html#f5 - Synopsis: A web page that draws grid finder results, experiments, transformers and 132kV. - What it achieves (name): Its code works with 132 kV, 100 MW and 105.26315789473685 MVA. - What it does: It draws grid finder results, experiments, transformers and 132kV. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (voltage levels 400kV, 132kV (all 132kV or above)): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers, 132kV, 400kV. - Inputs & outputs: In: JSON file grid-finder-test-results.json; JSON file experiments.json. Out: web page. Voltage levels named: 400kV, 132kV. - Downstream impact: Used directly by 51 files: Kuiper Programs (globalgrid2050, https://globalgrid2050.com/kuiper-grid/drawing/); Kuiper Programs (globalgrid2050); Kuiper Programs (globalgrid2050); Kuiper Programs (globalgrid2050); and 47 more. Reached from 113 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); GlobalGrid2050 — Compute Page (globalgrid2050, https://globalgrid2050.com/compute/). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file grid-finder-test-results.json; JSON file experiments.json]; out [web page]; crs []; voltages [400kV, 132kV] - Edges: uses 2 estate files (link 2); used by 51; mentioned by 0 ### Build - File: faraday/tools/build.py (Python, 145 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/faraday/blob/e439b450f37a8c124fa4a0cb38159ae0dc337062/tools/build.py#L1-L145 - Page: https://code.globalgrid2050.com/explore-code/s/0325.html#f1 - Synopsis: A Python command-line tool in the tools folder of Faraday that reads experiments. - What it achieves (comment): Render `index.html` from `experiments.json`, and refuse if a log entry is not whole. - What it does: It loads experiments. Defines main. Uses libraries io, json, sys. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. README: "`tools/build.py` refuses to publish an entry that is missing any part, a reused number, or a gap." - Inputs & outputs: In: JSON file experiments.json. - Downstream impact: Used directly by 1 file: Faraday — Index Page (faraday). Reached from 116 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); GlobalGrid2050 — Compute Page (globalgrid2050, https://globalgrid2050.com/compute/). - Signatures: `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file experiments.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Feeder - File: galaxies-wafers/iterations/25-one-feeder/feeder.css (CSS, 41 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/25-one-feeder/feeder.css#L1-L41 - Page: https://code.globalgrid2050.com/explore-code/s/0325.html#f2 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/25-one-feeder/ - Synopsis: A style sheet in the iterations folder of Galaxies Wafers. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/25-one-feeder/. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Iterations — 25 One Feeder Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/25-one-feeder/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/25-one-feeder/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Feeder - File: galaxies-wafers/iterations/25-one-feeder/feeder.mjs (JavaScript, 434 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/25-one-feeder/feeder.mjs#L1-L434 - Page: https://code.globalgrid2050.com/explore-code/s/0325.html#f3 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/25-one-feeder/ - Synopsis: A JavaScript module in the iterations folder of Galaxies Wafers that paints mods, builds inputs, paints refusals and draws on a canvas, covering substations. Served with the page at https://ventusltd.github.io/galaxies-wafers/iterations/25-one-feeder/. - What it achieves (comment): It paints mods (`paintMods`), builds inputs (`buildInputs`) and paints results (`paintResults`). One Feeder — the physics of one radial line, drawn from three engine modules. Its code works with 11 kV, 132 kV and 220 kV. It responds to click, input and resize events. - What it does: It draws substations. Defines 28 functions or classes, including $, nf, paintMods, logMap, round3. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, 400kV, 275kV, 220kV, 132kV, 66kV. - Inputs & outputs: In: form fields (user input). Out: canvas drawing. Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Downstream impact: Used directly by 1 file: Iterations — 25 One Feeder Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/25-one-feeder/). It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/25-one-feeder/. - Signatures: `$(id)`; `nf(v, sig = 4)`; `paintMods()`; `logMap(lo, hi)`; `round3(v)`; `buildInputs()`; `seg(label, opts, isOn, onPick, colorOf)`; `mk(s)`; `show()`; `attempt(file, fn, args)`; `waits(what, on)`; `compute()`; `dropArgs(L)`; `summarise(r)`; `paintResults()`; `paintRefusals()`; `fit(cv)`; `lines(g, text, maxW, maxLines)`; `refusalBox(g, text, x, y, w, maxLines = 6)`; `mix(hex, t)`; `m(c)`; `font(px, wgt = '')`; `ampsPerPixel(amps, lenPx)`; `drawSld(tms)`; `off((tms / 1000) * 36)` (and 4 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [canvas drawing]; crs []; voltages [400kV, 275kV, 220kV, 132kV, 66kV, 11kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Iterations — 25 One Feeder Page - File: galaxies-wafers/iterations/25-one-feeder/index.html (HTML, 49 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/galaxies-wafers/blob/5814793812add74605660fa821e6a39b8de80588/iterations/25-one-feeder/index.html#L1-L49 - Page: https://code.globalgrid2050.com/explore-code/s/0325.html#f4 - Published at: https://ventusltd.github.io/galaxies-wafers/iterations/25-one-feeder/ - Synopsis: A web page in Galaxies Wafers. Published at https://ventusltd.github.io/galaxies-wafers/iterations/25-one-feeder/. - What it achieves (comment): One Feeder — the physics of one radial line, charted. Its code works with 100 kW, 11 kV and 132 kV. - 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 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. README: "The page (`index.html`, `app.mjs`, `lib.mjs`) is inherited unchanged from testcode/202609151339." - Inputs & outputs: Out: web page. Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/galaxies-wafers/iterations/25-one-feeder/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [400kV, 275kV, 220kV, 132kV, 66kV, 11kV] - Edges: uses 3 estate files (stylesheet 1, link 1, script-src 1); used by 0; mentioned by 0 ### MV Network - File: globalgrid2050/energy-transition-simulator/202609280014/mod/engine/mv-network.mjs (JavaScript, 127 lines) · role ingest · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/mod/engine/mv-network.mjs#L1-L127 - Page: https://code.globalgrid2050.com/explore-code/s/0326.html#f1 - Synopsis: A JavaScript module in the engine folder of GlobalGrid2050 that reads routes (`readRoutes`) (units: kV, MVA), covering cables and transformers. It reads routes (`readRoutes`) and places network (`placeNetwork`). - What it achieves (comment): The medium-voltage network from the stations to the grid, as equipment outlines with solids and cable routes, placed on the ground by the user. - What it does: Defines 9 functions or classes, including equipmentSolids, box, solidLines, readRoutes, pt. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: cables, transformers. - Downstream impact: Used directly by 1 file: Block Build (globalgrid2050). - Signatures: `export equipmentSolids(kind, at = [0, 0, 0], heading = 0, id = kind)`; `export solidLines(solids)`; `export readRoutes(json)`; `export drawingToGround({ at = [0, 0], metresPerUnit = 1, heading = 0, yDown = false } = {})`; `export placeNetwork(diagram, { routes = null, at = [0, 0], heading = 0, metresPerUnit = 1, spacing = 40, groundAt = () => 0 } = {})`; `export cableLines(cables, kind = null)`; `box(part, min, max)`; `pt(p)`; `links(json.links || [])`; `kindOf(n)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609270220-site-world-v3/world/mv-network.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### Plant Feeders - File: globalgrid2050/energy-transition-simulator/202609280014/mod/engine/plant-feeders.mjs (JavaScript, 142 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/mod/engine/plant-feeders.mjs#L1-L142 - Page: https://code.globalgrid2050.com/explore-code/s/0326.html#f2 - Synopsis: A JavaScript module in the engine folder of GlobalGrid2050 that works with cables, 33kV and A roads, using IEC 60287. - What it achieves (comment): It routes feeders (`routeFeeders`) and is built from the to spine helper (`toSpine`) and the road path helper (`roadPath`). The 33kV feeders of a laid-out plant, routed along its roads, with their trenches and cables. Its code works with 33 kV. - What it does: It calculates cables, 33kV and A roads. Defines 11 functions or classes, including toSpine, roadPath, side, coverage, trenchFor. - Why it exists in the grid workflow: Domain stage sub33kv_design (voltage levels 33kV (all 33kV or below)): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, A roads. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 3 files: Block MV (globalgrid2050); Cmd Model (globalgrid2050); Plant Layout (globalgrid2050). - Signatures: `export roadPath(A, B, net)`; `export coverage(intervals)`; `export trenchFor(c, L, into)`; `export routeFeeders(tpl, net, p)`; `export trenchRows(e, fmt = v => v.toFixed(2))`; `toSpine(pt, net)`; `side(pt)`; `onRoad(s)`; `add(key, a, b)`; `dropOf(hops)`; `k(m)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271740-site-world/world/plant-feeders.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 2 estate files (import 2); used by 3; mentioned by 0 ### Single-Line Diagram (SLD) Connect - File: globalgrid2050/energy-transition-simulator/202609280014/mod/engine/sld-connect.mjs (JavaScript, 57 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/mod/engine/sld-connect.mjs#L1-L57 - Page: https://code.globalgrid2050.com/explore-code/s/0326.html#f3 - Synopsis: A JavaScript module in the engine folder of GlobalGrid2050 that works with cables, substations, overhead lines (OHL) and 132kV. - What it achieves (comment): It is built from the nearest step (`nearest`), the kV for MW helper (`kvForMW`) and the choose connection helper (`chooseConnection`). Which grid connection a plant gets, from its size and what is near it. Its code works with 132 kV, 400 kV and 275 kV. - What it does: It calculates cables, substations, overhead lines (OHL) and 132kV. Defines nearest, km, kvForMW, chooseConnection. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): 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, overhead lines (OHL), 132kV, 400kV, 275kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 33kV. - Downstream impact: Used directly by 2 files: Cmd Trench (globalgrid2050); Connect Here (globalgrid2050). - Signatures: `export kvForMW(mw, { minKv = 0, rules = {} } = {})`; `export chooseConnection({ mw, at, subs = [], towers = [], kv: fixed = null, minKv = 0, rules = {} })`; `nearest(list, at, ok)`; `km(m)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271552-site-world/world/sld-connect.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 33kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Single-Line Diagram (SLD) Rules - File: globalgrid2050/energy-transition-simulator/202609280014/mod/engine/sld-rules.mjs (JavaScript, 95 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/mod/engine/sld-rules.mjs#L1-L95 - Page: https://code.globalgrid2050.com/explore-code/s/0326.html#f4 - Synopsis: A JavaScript module in the engine folder of GlobalGrid2050 that works with cables, transformers and battery storage (BESS), 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 and battery storage (BESS). Defines groupFactor, economicSize, cost, isolationChecks, zOf. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): 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), 33kV. - Inputs & outputs: Voltage levels named: 33kV. - Downstream impact: Used directly by 1 file: Block MV (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: duplicate_candidate (duplicate of globalgrid2050/solar-design-studio/202609271853-site-world/world/sld-rules.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [33kV] - Edges: uses 3 estate files (import 3); used by 1; mentioned by 0 ### Substations - File: globalgrid2050/energy-transition-simulator/202609280014/mod/substations.js (JavaScript, 189 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/energy-transition-simulator/202609280014/mod/substations.js#L1-L189 - Page: https://code.globalgrid2050.com/explore-code/s/0326.html#f5 - Synopsis: A JavaScript file in GlobalGrid2050 that draws grid substations and substations footprints odbl, and uses data from the GridAtlas repository. It labels block (`labelBlock`) and syncs btn (`syncBtn`). - What it achieves (comment): Substations as 3D wireframe compounds, in real coordinates (plain script; attaches to window.SIM). It responds to keydown and keyup events. - What it does: It draws grid substations and substations footprints odbl. Defines 24 functions or classes, including ecef, PFm, localFn, kvList, load. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substations'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: gridatlas data; GeoJSON file grid_substations.geojson; JSON file substations-footprints.odbl.json. Coordinate systems named: WGS84 / EPSG:4326. - Signatures: `here(document.currentScript && document.currentScript.src)`; `ecef(lat, lon)`; `PFm()`; `localFn(lat0, lon0)`; `kvList(v)`; `load()`; `seg(L, a, b, za, zb)`; `box(L, cx, cy, ux, uy, hw, hd, h)`; `fence(L, ring, dashed)`; `frameOf(ring)`; `place(b)`; `EST_HALF(kv)`; `label(L, text, cx, cy, z0, size, bearing)`; `kvText(kv)`; `compound(s)`; `labelBlock(s, c, bearing)`; `dist(a, b)`; `nearby(c, r, want)`; `refresh(force)`; `go(kv)`; `command(text)`; `syncBtn()`; `ui()`; `toggle()`; `start()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; GeoJSON file grid_substations.geojson; JSON file substations-footprints.odbl.json]; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Manifest - File: globalgrid2050/feature_requests/005_extract_v2_substation_data/manifest.yml (YAML, 42 lines) · role docs-config · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/feature_requests/005_extract_v2_substation_data/manifest.yml#L1-L42 - Page: https://code.globalgrid2050.com/explore-code/s/0326.html#f6 - Synopsis: A configuration file in the feature requests folder of GlobalGrid2050 covering substations, solar and battery storage (BESS). - What it achieves (comment): Moves substation normalisation and loading into `gis-sld-v2-substations.js` without changing map, finance, topology or export logic. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, solar, battery storage (BESS). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Grid Engine — Substation Growth Page - File: globalgrid2050/grid_engine/202609060218-substation-growth/index.html (HTML, 271 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/grid_engine/202609060218-substation-growth/index.html#L1-L271 - Page: https://code.globalgrid2050.com/explore-code/s/0327.html#f1 - Published at: https://globalgrid2050.com/grid_engine/202609060218-substation-growth/ - Synopsis: A web page in GlobalGrid2050 covering substations and transformers, and uses data from the ventus-grid-engine repository. Published at https://globalgrid2050.com/grid_engine/202609060218-substation-growth/. - What it achieves (comment): It parses units (`parseUnits`) and is built from the num step (`num`) and the fig step (`fig`). Substation Growth Workbench — Ventus Grid Engine. Its code works with 0.00 MVA. It responds to input events. - What it does: It draws substations and transformers. Defines 7 functions or classes, including el, num, fig, refuse, bind. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, transformers. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 3 files: Homepage V090 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v090.html); Homepage V091 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v091.html); Homepage V093 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v093.html). It is itself an entry point, published at https://globalgrid2050.com/grid_engine/202609060218-substation-growth/. - Signatures: `el(id)`; `num(id)`; `fig(target, r, decimals = 1, over = false)`; `refuse(target, message)`; `bind()`; `parseUnits(raw)`; `render()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 4 estate files (link 4); used by 3; mentioned by 0 ### Grid Engine — Interconnectors Page - File: globalgrid2050/grid_engine/202609060305-interconnectors/index.html (HTML, 317 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/grid_engine/202609060305-interconnectors/index.html#L1-L317 - Page: https://code.globalgrid2050.com/explore-code/s/0327.html#f2 - Published at: https://globalgrid2050.com/grid_engine/202609060305-interconnectors/ - Synopsis: A web page in GlobalGrid2050 covering interconnectors and cables, and uses data from the ventus-grid-engine repository. Published at https://globalgrid2050.com/grid_engine/202609060305-interconnectors/. - What it achieves (comment): It is built from the num step (`num`), the fig step (`fig`) and the refuse step (`refuse`). Interconnector Workbench — Ventus Grid Engine. Its code works with 34.2 GW. It responds to input events. - What it does: It draws interconnectors and cables. Defines 6 functions or classes, including el, num, fig, refuse, bind. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'interconnectors'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors, cables. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 3 files: Homepage V090 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v090.html); Homepage V091 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v091.html); Homepage V093 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v093.html). It is itself an entry point, published at https://globalgrid2050.com/grid_engine/202609060305-interconnectors/. - Signatures: `el(id)`; `num(id)`; `fig(target, r, decimals = 1, over = false)`; `refuse(target, message)`; `bind()`; `render()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 3 estate files (link 3); used by 3; mentioned by 0 ### Grid Engine — Voltage Drop Page - File: globalgrid2050/grid_engine/202609060313-voltage-drop/index.html (HTML, 299 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/grid_engine/202609060313-voltage-drop/index.html#L1-L299 - Page: https://code.globalgrid2050.com/explore-code/s/0328.html#f1 - Published at: https://globalgrid2050.com/grid_engine/202609060313-voltage-drop/ - Synopsis: A web page in GlobalGrid2050 covering cables and uses data from the ventus-grid-engine repository. Published at https://globalgrid2050.com/grid_engine/202609060313-voltage-drop/. - What it achieves (comment): It is built from the num step (`num`), the fig step (`fig`) and the refuse step (`refuse`). Voltage Drop Workbench — Ventus Grid Engine. It responds to input events. - What it does: It draws cables. Defines 6 functions or classes, including el, num, fig, refuse, bind. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: cables. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 3 files: Homepage V090 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v090.html); Homepage V091 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v091.html); Homepage V093 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v093.html). It is itself an entry point, published at https://globalgrid2050.com/grid_engine/202609060313-voltage-drop/. - Signatures: `el(id)`; `num(id)`; `fig(target, r, decimals = 1, over = false)`; `refuse(target, message)`; `bind()`; `render()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 3 estate files (link 3); used by 3; mentioned by 0 ### Fetch Substations v6 - File: globalgrid2050/repd_grid_atlasv6/scripts/fetch_substationsv6.py (Python, 76 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/repd_grid_atlasv6/scripts/fetch_substationsv6.py#L1-L76 - Page: https://code.globalgrid2050.com/explore-code/s/0328.html#f2 - Synopsis: A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches grid substations from OpenStreetMap (Overpass). - What it achieves (name): Its name says it fetches substations. Defines `fetch_substations`. Its code works with 33 kV and 400 kV. - What it does: It fetches grid substations. Defines fetch_substations. Uses libraries requests, json, time. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 33kV. - Inputs & outputs: In: data source: OpenStreetMap (Overpass); GeoJSON file grid_substations.geojson. Out: JSON file. Voltage levels named: 400kV, 33kV. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `fetch_substations(filename="grid_substations.geojson")` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass); GeoJSON file grid_substations.geojson]; out [JSON file]; crs []; voltages [400kV, 33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GlobalGrid2050 Add V6 V7 GIS Single-Line Diagram (SLD) Operating Asset Layers - File: globalgrid2050/scripts/add_v6_v7_gis_sld_operating_asset_layers.py (Python, 433 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/add_v6_v7_gis_sld_operating_asset_layers.py#L1-L433 - Page: https://code.globalgrid2050.com/explore-code/s/0329.html#f1 - Synopsis: A Python command-line tool in the scripts folder that maps Renewable Energy Planning Database (REPD) master, topology, atlas REPD operating assets and atlas asset solar operational. - What it achieves (comment): It patches once (`patch_once`) and patches folder (`patch_folder`). Add operating renewable and storage asset layers to V6 and V7 GIS SLD. Its code works with 400 kV, 132 kV and 275 kV. - What it does: It maps REPD master, topology, atlas REPD operating assets and atlas asset solar operational. Defines read, write, patch_once, patch_folder, main. Uses libraries __future__, datetime, pathlib. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 400kV, 275kV, 132kV, 66kV. - Inputs & outputs: In: JSON file repd_master.json. Voltage levels named: 400kV, 275kV, 132kV, 66kV. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Add V6 V7 GIS Single-Line Diagram (SLD) Operating Asset Layers Workflow (globalgrid2050). - Signatures: `read(path: Path)`; `write(path: Path, text: str)`; `patch_once(text: str, marker: str, replacement: str, label: str)`; `patch_folder(folder: Path)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file repd_master.json]; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Add V6 V7 GIS Single-Line Diagram (SLD) Print Formatting - File: globalgrid2050/scripts/add_v6_v7_gis_sld_print_formatting.py (Python, 302 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/add_v6_v7_gis_sld_print_formatting.py#L1-L302 - Page: https://code.globalgrid2050.com/explore-code/s/0330.html#f1 - Synopsis: A Python command-line tool in the scripts folder that reads solar and battery storage (BESS). - What it achieves (comment): It updates target (`update_target`) and is built from the read step (`read`) and the write step (`write`). Add print formatting to V6 and V7 GIS SLD Financial Sandbox. - What it does: It loads solar and battery storage (BESS). Defines read, write, update_target, main. Uses libraries __future__, datetime, pathlib. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS). - Downstream impact: Used directly by 1 file: GlobalGrid2050 Add V6 V7 GIS Single-Line Diagram (SLD) Print Formatting Workflow (globalgrid2050). - Signatures: `read(path: Path)`; `write(path: Path, text: str)`; `update_target(version: str, folder: Path)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Add V6 V7 GIS Single-Line Diagram (SLD) Print Map Pack - File: globalgrid2050/scripts/add_v6_v7_gis_sld_print_map_pack.py (Python, 452 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/add_v6_v7_gis_sld_print_map_pack.py#L1-L452 - Page: https://code.globalgrid2050.com/explore-code/s/0330.html#f2 - Synopsis: A Python command-line tool in the scripts folder that patches folder (`patch_folder`) (units: kV), covering overhead lines (OHL), 66kV, 132kV and 275kV. - What it achieves (comment): It is built from the read step (`read`) and the write step (`write`). Make overhead line and public substation layers default OFF for a cleaner working map. - Replace the print button with a print preparation routine. - Add 3 print map pages after the normal report: 1. - What it does: It draws overhead lines (OHL), 66kV, 132kV and 275kV. Defines read, write, patch_folder, main. Uses libraries __future__, datetime, pathlib. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): 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), 66kV, 132kV, 275kV, 400kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Add V6 V7 GIS Single-Line Diagram (SLD) Print Map Pack Workflow (globalgrid2050). - Signatures: `read(path: Path)`; `write(path: Path, text: str)`; `patch_folder(folder: Path)`; `main()` - 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 [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Add V7 GIS Single-Line Diagram (SLD) Large Asset Markers and Search - File: globalgrid2050/scripts/add_v7_gis_sld_large_asset_markers_and_search.py (Python, 497 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/add_v7_gis_sld_large_asset_markers_and_search.py#L1-L497 - Page: https://code.globalgrid2050.com/explore-code/s/0331.html#f2 - Synopsis: A Python command-line tool in the scripts folder covering Renewable Energy Planning Database (REPD) master, substations, solar and battery storage (BESS). - What it achieves (comment): It is built from the read step (`read`) and the write step (`write`). Add V7 GIS SLD large operating asset marker visibility and map search. Its code works with 30 MW. It reads `/dist/repd_master.json`. - What it does: It draws REPD master, substations, solar and battery storage (BESS). Defines read, write, main. Uses libraries __future__, datetime, pathlib. 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 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations, solar, battery storage (BESS). - Inputs & outputs: In: JSON file repd_master.json; form fields (user input). - Downstream impact: Used directly by 1 file: GlobalGrid2050 Add V7 GIS Single-Line Diagram (SLD) Large Asset Markers and Search Workflow (globalgrid2050). - Signatures: `read(path: Path)`; `write(path: Path, text: str)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file repd_master.json; form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Fix V6 V7 GIS Single-Line Diagram (SLD) Print Simple Safe - File: globalgrid2050/scripts/fix_v6_v7_gis_sld_print_simple_safe.py (Python, 214 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/fix_v6_v7_gis_sld_print_simple_safe.py#L1-L214 - Page: https://code.globalgrid2050.com/explore-code/s/0332.html#f1 - Synopsis: A Python command-line tool in the scripts folder that reads substations, overhead lines (OHL), 66kV and 132kV. - What it achieves (comment): It patches folder (`patch_folder`) and is built from the read step (`read`) and the write step (`write`). Fix V6 and V7 GIS SLD printing by removing the hanging print preparation routine. - What it does: It loads substations, overhead lines (OHL), 66kV and 132kV. Defines read, write, patch_folder, main. Uses libraries __future__, datetime, pathlib. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations, overhead lines (OHL), 66kV, 132kV, 400kV, 275kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Fix V6 V7 GIS Single-Line Diagram (SLD) Print Simple Safe Workflow (globalgrid2050). - Signatures: `read(path: Path)`; `write(path: Path, text: str)`; `patch_folder(folder: Path)`; `main()` - 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 [400kV, 275kV, 132kV, 66kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Fix V7 GIS Single-Line Diagram (SLD) Mobile Mwp Sizing Visibility - File: globalgrid2050/scripts/fix_v7_gis_sld_mobile_mwp_sizing_visibility.py (Python, 149 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/fix_v7_gis_sld_mobile_mwp_sizing_visibility.py#L1-L149 - Page: https://code.globalgrid2050.com/explore-code/s/0332.html#f2 - Synopsis: A Python command-line tool in the scripts folder. - What it achieves (comment): Fix V7 GIS SLD mobile MWp DC sizing control visibility. - What it does: It loads data. Defines main. Uses libraries __future__, datetime, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Fix V7 GIS Single-Line Diagram (SLD) Mobile Mwp Sizing Visibility Workflow (globalgrid2050). - Signatures: `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Fix V7 GIS Single-Line Diagram (SLD) Mobile Tool Overlay Spacing - File: globalgrid2050/scripts/fix_v7_gis_sld_mobile_tool_overlay_spacing.py (Python, 94 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/fix_v7_gis_sld_mobile_tool_overlay_spacing.py#L1-L94 - Page: https://code.globalgrid2050.com/explore-code/s/0332.html#f3 - Synopsis: A Python command-line tool in the scripts folder that reads solar, battery storage (BESS) and wind. - What it achieves (comment): Lower the V7 GIS SLD mobile map tools overlay so it no longer overlaps solar, wind, BESS and voltage layer toggles. - What it does: It loads solar, battery storage (BESS) and wind. Defines main. Uses libraries __future__, datetime, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS), wind. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Fix V7 GIS Single-Line Diagram (SLD) Mobile Tool Overlay Spacing Workflow (globalgrid2050). - Signatures: `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Fix V7 GIS Single-Line Diagram (SLD) Mobile Tools Energy Layer Clearance - File: globalgrid2050/scripts/fix_v7_gis_sld_mobile_tools_energy_layer_clearance.py (Python, 151 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/fix_v7_gis_sld_mobile_tools_energy_layer_clearance.py#L1-L151 - Page: https://code.globalgrid2050.com/explore-code/s/0332.html#f4 - Synopsis: A Python command-line tool in the scripts folder that reads wind, solar and battery storage (BESS). - What it achieves (comment): On mobile, TOOLS ON/OFF and MWp sizing controls overlap the operating asset row. - This blocks SOLAR OP, ONSHORE WIND, OFFSHORE WIND and BESS OP toggles. - What it does: It loads wind, solar and battery storage (BESS). Defines main. Uses libraries __future__, datetime, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: wind, solar, battery storage (BESS). - Downstream impact: Used directly by 1 file: GlobalGrid2050 Fix V7 GIS Single-Line Diagram (SLD) Mobile Tools Energy Layer Clearance Workflow (globalgrid2050). - Signatures: `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Generate GIS Single-Line Diagram (SLD) Full Code Reports - File: globalgrid2050/scripts/generate_gis_sld_full_code_reports.py (Python, 229 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/generate_gis_sld_full_code_reports.py#L1-L229 - Page: https://code.globalgrid2050.com/explore-code/s/0333.html#f1 - Synopsis: A Python command-line tool in the scripts folder that reads battery storage (BESS) and solar. It sorts key (`sort_key`), reads text (`read_text`) and makes tree (`make_tree`). - What it achieves (comment): Generate full code reports for V7 and V8 GIS SLD apps. - What it does: It loads battery storage (BESS) and solar. Defines 8 functions or classes, including should_include, sort_key, iter_source_files, read_text, fence_lang. Uses libraries __future__, datetime, pathlib, typing. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), solar. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Generate GIS Single-Line Diagram (SLD) Full Code Reports Workflow (globalgrid2050). - Signatures: `should_include(path: Path)`; `sort_key(path: Path)`; `iter_source_files(folder: Path)`; `read_text(path: Path)`; `fence_lang(path: Path)`; `make_tree(folder: Path, files: Iterable[Path])`; `make_report(app: dict[str, object])`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Gridbot Generation Interconnector Split - File: globalgrid2050/scripts/gridbot_generation_interconnector_split.py (Python, 781 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_generation_interconnector_split.py#L1-L781 - Page: https://code.globalgrid2050.com/explore-code/s/0333.html#f2 - Synopsis: A Python command-line tool in the scripts folder that parses time (`parse_time`) and float (`parse_float`) and scans signed repo rows (`scan_signed_repo_rows`) (units: MWh, MW), using SHA-256. - What it achieves (comment): It is built from the utcnow step (`utcnow`), the rel step (`rel`) and the read step (`read`). `/uk_energy_tracking_v6/generation_history/`. It accepts `--start-year`, `--end-year` and `--apply`. - What it does: It draws generation annual mwh by technology, generation monthly mwh by technology, generation seasonal mwh by technology and generation day night mwh by technology. Defines 28 functions or classes, including utcnow, rel, read, write, sha. Uses libraries __future__, argparse, csv, datetime, hashlib. Side effects: changes the web page (DOM); reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'generation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file generation_annual_mwh_by_technology.json; JSON file generation_monthly_mwh_by_technology.json; JSON file generation_seasonal_mwh_by_technology.json; JSON file generation_day_night_mwh_by_technology.json; JSON file generation_interconnector_index.json; JSON file generation_interconnector_total_electricity_summary.json; JSON file GENERATION_INTERCONNECTOR_SPLIT_LATEST.json; JSON file _imports.json. - Downstream impact: Used directly by 2 files: GlobalGrid2050 Gridbot Generation Interconnector Split Workflow (globalgrid2050); GlobalGrid2050 Gridbot Generation Interconnector Split V2 Workflow (globalgrid2050). - Signatures: `utcnow()`; `rel(p: Path)`; `read(p: Path)`; `write(p: Path, txt: str)`; `sha(p: Path)`; `git(args: list[str])`; `existing_rows(p: Path)`; `source_files()`; `parse_time(v: str)`; `parse_float(v: Any)`; `infer_interval_hours(points: list[tuple[dt.datetime, float]], idx: int)`; `scan_signed_repo_rows(start_year: int, end_year: int)`; `build_flows(start_year: int, end_year: int)`; `flow_file_payload(code: str, direction: str, monthly_buckets: dict[Any, Any], annual_buckets: dict[Any, Any], start_year: int, end_year...)`; `planned_data_files(start_year: int, end_year: int)`; `generation_shown_by_year()`; `total_summary_rows(index_rows: list[dict[str, Any]])`; `add_total_file(files: dict[Path, str], index_rows: list[dict[str, Any]])`; `insert_warning(txt: str)`; `insert_css(txt: str)`; `patch_index(txt: str)`; `node_check(source: str, label: str)`; `planned_files(start_year: int, end_year: int)`; `changed_paths(planned: dict[Path, str])`; `collect_checks(planned: dict[Path, str], index_rows: list[dict[str, Any]], total_rows: list[dict[str, Any]], source_meta: dict[str, ...)` (and 3 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file generation_annual_mwh_by_technology.json; JSON file generation_monthly_mwh_by_technology.json; JSON file generation_seasonal_mwh_by_technology.json; JSON file generation_day_night_mwh_by_technology.json; JSON file generation_interconnector_index.json; JSON file generation_interconnector_total_electricity_summary.json; JSON file GENERATION_INTERCONNECTOR_SPLIT_LATEST.json; JSON file _imports.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### GlobalGrid2050 Gridbot Generation MWh Interconnector Split V6 - File: globalgrid2050/scripts/gridbot_generation_mwh_interconnector_split_v6.py (Python, 242 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_generation_mwh_interconnector_split_v6.py#L1-L242 - Page: https://code.globalgrid2050.com/explore-code/s/0334.html#f2 - Synopsis: A Python command-line tool in the scripts folder that parses time, builds rows and patches index, covering generation annual mwh by technology and generation monthly mwh by technology. - What it achieves (name): It parses time (`parse_time`), builds rows (`build_rows`) and patches index (`patch_index`). Defines `now`, `read`, `write` and 12 more. It reads `generation_annual_mwh_by_technology.json`. It accepts `--apply` and `--max-output-mb`. - What it does: It draws generation annual mwh by technology, generation monthly mwh by technology, generation seasonal mwh by technology and generation day night mwh by technology. Defines 16 functions or classes, including now, read, write, rel, parse_time. Uses libraries __future__, argparse, csv, datetime, json. Side effects: changes the web page (DOM); reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'generation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file generation_interconnector_annual_mwh_by_link_direction.json; JSON file GENERATION_MWH_INTERCONNECTOR_SPLIT_V6_LATEST.json; JSON file generation_annual_mwh_by_technology.json; JSON file generation_monthly_mwh_by_technology.json; JSON file generation_seasonal_mwh_by_technology.json; JSON file generation_day_night_mwh_by_technology.json; command-line arguments. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Gridbot Generation MWh Interconnector Split V6 Workflow (globalgrid2050). - Signatures: `now()`; `read(path: Path)`; `write(path: Path, text: str)`; `rel(path: Path)`; `parse_time(v)`; `fnum(v)`; `source_files()`; `interval_hours(items, i)`; `build_rows()`; `payload(rows,audit)`; `patch_index(text)`; `planned(rows,audit)`; `changed_files(planned_map)`; `latest_legacy()`; `make_report(data)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file generation_interconnector_annual_mwh_by_link_direction.json; JSON file GENERATION_MWH_INTERCONNECTOR_SPLIT_V6_LATEST.json; JSON file generation_annual_mwh_by_technology.json; JSON file generation_monthly_mwh_by_technology.json; JSON file generation_seasonal_mwh_by_technology.json; JSON file generation_day_night_mwh_by_technology.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Gridbot Generation MWh Interconnector UI Guard - File: globalgrid2050/scripts/gridbot_generation_mwh_interconnector_ui_guard.py (Python, 379 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_generation_mwh_interconnector_ui_guard.py#L1-L379 - Page: https://code.globalgrid2050.com/explore-code/s/0335.html#f1 - Synopsis: A Python command-line tool in the scripts folder that loads rows, replaces warning and patches index, covering generation annual mwh by technology and generation monthly mwh by technology, using SHA-256. - What it achieves (comment): It loads rows (`load_rows`), replaces warning (`replace_warning`) and patches index (`patch_index`). GridBot guard: Generation Output in MWh — interconnector bucket UI removal (V6_2). It accepts `--apply`. - What it does: It draws generation annual mwh by technology, generation monthly mwh by technology, generation seasonal mwh by technology and generation day night mwh by technology. Defines 15 functions or classes, including now, read, write, sha256, load_rows. Uses libraries __future__, argparse, datetime, hashlib, json. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'generation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file generation_annual_mwh_by_technology.json; JSON file generation_monthly_mwh_by_technology.json; JSON file generation_seasonal_mwh_by_technology.json; JSON file generation_day_night_mwh_by_technology.json; JSON file GENERATION_MWH_INTERCONNECTOR_UI_GUARD_LATEST.json; command-line arguments. - Downstream impact: Used directly by 2 files: GlobalGrid2050 Gridbot Generation MWh Active V6 Source Audit (globalgrid2050); GlobalGrid2050 Gridbot Generation MWh Interconnector UI Guard Workflow (globalgrid2050). Reached from 1 other entry point, including GlobalGrid2050 Gridbot Generation MWh Active V6 Source Audit Workflow (globalgrid2050). - Signatures: `now()`; `read(path: Path)`; `write(path: Path, content: str)`; `sha256(path: Path)`; `load_rows(path: Path)`; `replace_warning(index_text: str)`; `bump_cache(index_text: str)`; `patch_index(index_text: str)`; `node_check_text(source: str, label: str)`; `annual_totals(rows: list[dict[str, Any]])`; `planned_files()`; `changed_paths_for(planned: dict[Path, str])`; `collect_state(mode: str, planned: dict[Path, str], before_json_hashes: dict[str, str])`; `render_report(payload: dict[str, Any])`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file generation_annual_mwh_by_technology.json; JSON file generation_monthly_mwh_by_technology.json; JSON file generation_seasonal_mwh_by_technology.json; JSON file generation_day_night_mwh_by_technology.json; JSON file GENERATION_MWH_INTERCONNECTOR_UI_GUARD_LATEST.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (script-call 1); used by 2; mentioned by 0 ### GlobalGrid2050 Gridbot Interconnector Bar UI Final - File: globalgrid2050/scripts/gridbot_interconnector_bar_ui_final.py (Python, 140 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_interconnector_bar_ui_final.py#L1-L140 - Page: https://code.globalgrid2050.com/explore-code/s/0335.html#f2 - Synopsis: A Python command-line tool in the scripts folder that patches index (`patch_index`) and writes report (`write_report`) (units: MWh), covering interconnectors, solar and wind. - What it achieves (comment): It is built from the now step (`now`), the rel step (`rel`) and the read step (`read`). `/uk_energy_tracking_v6/generation_history/`. It accepts `--apply`. - What it does: It draws interconnectors, solar and wind. Defines 9 functions or classes, including now, rel, read, write, patch_index. Uses libraries __future__, argparse, datetime, json, re. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'interconnector'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors, solar, wind. - Inputs & outputs: In: JSON file INTERCONNECTOR_BAR_UI_FINAL_LATEST.json; command-line arguments. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Gridbot Interconnector Bar UI Match Workflow (globalgrid2050). - Signatures: `now()`; `rel(p: Path)`; `read(p: Path)`; `write(p: Path, t: str)`; `patch_index(text: str)`; `node_check(src: str, label: str)`; `checks(index_text: str)`; `write_report(report)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file INTERCONNECTOR_BAR_UI_FINAL_LATEST.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Gridbot Interconnector Bar UI Match - File: globalgrid2050/scripts/gridbot_interconnector_bar_ui_match.py (Python, 185 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_interconnector_bar_ui_match.py#L1-L185 - Page: https://code.globalgrid2050.com/explore-code/s/0336.html#f1 - Synopsis: A Python command-line tool in the scripts folder that writes report (`write_report`) (units: MWh), covering interconnectors, solar and wind. - What it achieves (comment): It is built from the now step (`now`), the rel step (`rel`) and the read step (`read`). `/uk_energy_tracking_v6/generation_history/`. It accepts `--apply`. - What it does: It draws interconnectors, solar and wind. Defines 8 functions or classes, including now, rel, read, write, node_check. Uses libraries __future__, argparse, datetime, json, subprocess. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'interconnector'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors, solar, wind. - Inputs & outputs: In: JSON file INTERCONNECTOR_BAR_UI_MATCH_LATEST.json; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `now()`; `rel(p: Path)`; `read(p: Path)`; `write(p: Path, t: str)`; `node_check(src: str, label: str)`; `checks()`; `write_report(report)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file INTERCONNECTOR_BAR_UI_MATCH_LATEST.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GlobalGrid2050 Gridbot Interconnector Mobile UI Repair - File: globalgrid2050/scripts/gridbot_interconnector_mobile_ui_repair.py (Python, 175 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/gridbot_interconnector_mobile_ui_repair.py#L1-L175 - Page: https://code.globalgrid2050.com/explore-code/s/0336.html#f2 - Synopsis: A Python command-line tool in the scripts folder that writes report (`write_report`) (units: MWh), covering interconnectors, solar and wind. - What it achieves (comment): It is built from the now step (`now`), the rel step (`rel`) and the read step (`read`). `/uk_energy_tracking_v6/generation_history/`. It accepts `--apply`. - What it does: It draws interconnectors, solar and wind. Defines 8 functions or classes, including now, rel, read, write, node_check. Uses libraries __future__, argparse, datetime, json, re. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'interconnector'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors, solar, wind. - Inputs & outputs: In: JSON file INTERCONNECTOR_MOBILE_UI_REPAIR_LATEST.json; command-line arguments. - Downstream impact: Used directly by 1 file: GlobalGrid2050 Gridbot Interconnector Mobile UI Repair Workflow (globalgrid2050). - Signatures: `now()`; `rel(p: Path)`; `read(p: Path)`; `write(p: Path, t: str)`; `node_check(src: str, label: str)`; `checks()`; `write_report(report)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file INTERCONNECTOR_MOBILE_UI_REPAIR_LATEST.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Remove Benchmark Block from V6 V7 GIS Single-Line Diagram (SLD) - File: globalgrid2050/scripts/remove_benchmark_block_from_v6_v7_gis_sld.py (Python, 116 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/remove_benchmark_block_from_v6_v7_gis_sld.py#L1-L116 - Page: https://code.globalgrid2050.com/explore-code/s/0336.html#f3 - Synopsis: A Python command-line tool in the scripts folder that reads solar and battery storage (BESS). - What it achieves (comment): It removes block (`remove_block`) and is built from the read step (`read`) and the write step (`write`). Remove the entire optional/reference benchmark block from V6 and V7 GIS SLD. - What it does: It loads solar and battery storage (BESS). Defines read, write, remove_block, main. Uses libraries __future__, datetime, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS). - Downstream impact: Used directly by 1 file: GlobalGrid2050 Remove Benchmark Block from V6 V7 GIS Single-Line Diagram (SLD) Workflow (globalgrid2050). - Signatures: `read(path: Path)`; `write(path: Path, text: str)`; `remove_block(text: str)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Remove Project X from V6 V7 GIS Single-Line Diagram (SLD) - File: globalgrid2050/scripts/remove_project_x_from_v6_v7_gis_sld.py (Python, 95 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/remove_project_x_from_v6_v7_gis_sld.py#L1-L95 - Page: https://code.globalgrid2050.com/explore-code/s/0336.html#f4 - Synopsis: A Python command-line tool in the scripts folder that reads solar and battery storage (BESS). It is built from the read step (`read`) and the write step (`write`). - What it achieves (comment): Remove placeholder Project X wording from V6 and V7 GIS SLD benchmark block. - What it does: It loads solar and battery storage (BESS). Defines read, write, main. Uses libraries __future__, datetime, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS). - Inputs & outputs: In: form fields (user input). - Downstream impact: Used directly by 1 file: GlobalGrid2050 Remove Project X from V6 V7 GIS Single-Line Diagram (SLD) Workflow (globalgrid2050). - Signatures: `read(path: Path)`; `write(path: Path, text: str)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Replace V7 GIS Single-Line Diagram (SLD) Asset Buttons with Pipeline Dropdown - File: globalgrid2050/scripts/replace_v7_gis_sld_asset_buttons_with_pipeline_dropdown.py (Python, 412 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/replace_v7_gis_sld_asset_buttons_with_pipeline_dropdown.py#L1-L412 - Page: https://code.globalgrid2050.com/explore-code/s/0337.html#f1 - Synopsis: A Python command-line tool in the scripts folder that reads wind, solar, battery storage (BESS) and the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): It replaces between (`replace_between`) and is built from the read step (`read`) and the write step (`write`). Replace V7 GIS SLD asset buttons with a pipeline dropdown and capacity range filter. Its code works with 30 MW. - What it does: It loads wind, solar, battery storage (BESS) and the REPD register. Defines read, write, replace_between, main. Uses libraries __future__, datetime, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: wind, solar, battery storage (BESS), the REPD register. - Inputs & outputs: In: form fields (user input). - Downstream impact: Used directly by 1 file: GlobalGrid2050 Replace V7 GIS Single-Line Diagram (SLD) Asset Buttons with Pipeline Dropdown Workflow (globalgrid2050). - Signatures: `read(path: Path)`; `write(path: Path, text: str)`; `replace_between(text: str, start: str, end: str, replacement: str)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### GlobalGrid2050 Replace V7 GIS Single-Line Diagram (SLD) Asset Buttons with Pipeline Dropdown Status - File: globalgrid2050/scripts/replace_v7_gis_sld_asset_buttons_with_pipeline_dropdown_status.py (Python, 454 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/replace_v7_gis_sld_asset_buttons_with_pipeline_dropdown_status.py#L1-L454 - Page: https://code.globalgrid2050.com/explore-code/s/0338.html#f1 - Synopsis: A Python command-line tool in the scripts folder that reads wind, solar, battery storage (BESS) and the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): It replaces asset row (`replace_asset_row`) and replaces asset functions (`replace_asset_functions`). Replace V7 GIS SLD asset buttons with a pipeline dropdown, status dropdown and MW range filter. Its code works with 30 MW. - What it does: It loads wind, solar, battery storage (BESS) and the REPD register. Defines read, write, replace_asset_row, replace_asset_functions, main. Uses libraries __future__, datetime, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: wind, solar, battery storage (BESS), the REPD register. - Inputs & outputs: In: form fields (user input). - Downstream impact: Used directly by 1 file: GlobalGrid2050 Replace V7 GIS Single-Line Diagram (SLD) Asset Buttons with Pipeline Dropdown Status Workflow (globalgrid2050). - Signatures: `read(path: Path)`; `write(path: Path, text: str)`; `replace_asset_row(text: str)`; `replace_asset_functions(text: str)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out []; crs []; voltages [] - Edges: uses 1 estate file (script-call 1); used by 1; mentioned by 0 ### GlobalGrid2050 Test Generate GIS Single-Line Diagram (SLD) Full Code Reports - File: globalgrid2050/scripts/test_generate_gis_sld_full_code_reports.py (Python, 52 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/test_generate_gis_sld_full_code_reports.py#L1-L52 - Page: https://code.globalgrid2050.com/explore-code/s/0338.html#f2 - Synopsis: A test in the scripts folder covering battery storage (BESS) and solar. - What it does: It tests battery storage (BESS) and solar. Uses libraries pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), solar. - Downstream impact: Used directly by 2 files: GlobalGrid2050 Generate GIS Single-Line Diagram (SLD) Full Code Reports Workflow (globalgrid2050); GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050). - 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 2; mentioned by 0 ### GlobalGrid2050 Test V7 GIS Single-Line Diagram (SLD) Asset Pipeline Dropdown Status - File: globalgrid2050/scripts/test_v7_gis_sld_asset_pipeline_dropdown_status.py (Python, 23 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/test_v7_gis_sld_asset_pipeline_dropdown_status.py#L1-L23 - Page: https://code.globalgrid2050.com/explore-code/s/0338.html#f3 - Synopsis: A test in the scripts folder. - What it achieves (comment): Static checks for V7 GIS SLD asset pipeline dropdown with status filter. - What it does: It tests its inputs. Uses libraries pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Downstream impact: Used directly by 3 files: GlobalGrid2050 Replace V7 GIS Single-Line Diagram (SLD) Asset Buttons with Pipeline Dropdown Status (globalgrid2050); GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050); GlobalGrid2050 Replace V7 GIS Single-Line Diagram (SLD) Asset Buttons with Pipeline Dropdown Status Workflow (globalgrid2050). - 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 3; mentioned by 0 ### GlobalGrid2050 Test V7 GIS Single-Line Diagram (SLD) Large Asset Markers and Search - File: globalgrid2050/scripts/test_v7_gis_sld_large_asset_markers_and_search.py (Python, 22 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/scripts/test_v7_gis_sld_large_asset_markers_and_search.py#L1-L22 - Page: https://code.globalgrid2050.com/explore-code/s/0338.html#f4 - Synopsis: A test in the scripts folder covering solar. - What it achieves (comment): Static checks for V7 GIS SLD large asset markers and search. - What it does: It tests solar. Uses libraries pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar. - Downstream impact: Used directly by 2 files: GlobalGrid2050 Add V7 GIS Single-Line Diagram (SLD) Large Asset Markers and Search Workflow (globalgrid2050); GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050). - 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 2; mentioned by 0 ### Single-Line Diagram (SLD) Sandbox V9 8 - File: globalgrid2050/testcode/202609051152/atlas/cartridges/202609050354-sld-sandbox-v9-8.js (JavaScript, 7382 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609051152/atlas/cartridges/202609050354-sld-sandbox-v9-8.js#L1-L7382 - Page: https://code.globalgrid2050.com/explore-code/s/0339.html#f1 - Synopsis: A JavaScript file in the cartridges folder of GlobalGrid2050 that maps connection points, GB transmission network, price decade rollup and grid substations, using haversine. - What it achieves (comment): It builds stats (`buildStats`), applies development stage defaults (`applyDevelopmentStageDefaults`) and applies mounting bifacial (`applyMountingBifacial`). ASSEMBLED by `tools/build-cartridge.mjs` from the parts below. Its code works with 400 kV, 132 kV and 33 kV. It responds to click, keydown and touchstart events. - What it does: It maps connection points, GB transmission network, price decade rollup and grid substations. Defines 217 functions or classes, including classOf, scope, survey, ready, worksAt. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage 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: 750kV, 415kV, 400kV, 275kV, 220kV, 132kV. - Inputs & outputs: In: JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; JSON file price-decade-rollup.json; GeoJSON file grid_substations.geojson; browser storage (getItem); DuckDB queries; form fields (user input). Out: browser storage (setItem); interactive map. Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 110kV, 66kV. - Signatures: `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `classOf(kv)`; `scope(origin, substations, options)`; `bandsKm(options && options.bandsKm)`; `minimumKv(options && options.minimumKv)`; `nearestCount(options && options.nearestCount)`; `voltages(Array.isArray(substation.kv) ? substation.kv : [])`; `survey(scope)`; `ready(id, scope)`; `worksAt(name)`; `provisional(repdRef)`; `resolve(repdRef, origin, subs)`; `match(Array.isArray(subs) ? subs : [])`; `nearestTransmission(origin, subs)`; `physicalInputs(inputs)`; `buildStats(inputs, o)`; `dcMwp(o.module_count * p.mod_wp)`; `consistency(inputs, stats)`; `stringStats(inputs)`; `inverterAcMaxMva(i.y_invs * i.string_inv_kva)`; `centralStats(inputs)`; `strDcKwp(i.x_mods_c * i.mod_wp_c)`; `financeNumber(value)`; `applyDevelopmentStageDefaults(financeInputs, stageValue)`; `applyMountingBifacial(financeByMode, mode, gcrValue)` (and 15 more) - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: VOLTAGE (GG2050-VEDIC-000003): GridAtlas / Geodesy · Computer science / Data normalisation. voltage_properties -> kilovolt_list - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; JSON file price-decade-rollup.json; GeoJSON file grid_substations.geojson; browser storage (getItem); DuckDB queries; form fields (user input)]; out [browser storage (setItem); interactive map]; crs [WGS84 / EPSG:4326]; voltages [750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 110kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Single-Line Diagram (SLD) Sandbox - File: globalgrid2050/testcode/202609060300/atlas/cartridges/202609060300-sld-sandbox.js (JavaScript, 7736 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609060300/atlas/cartridges/202609060300-sld-sandbox.js#L1-L7736 - Page: https://code.globalgrid2050.com/explore-code/s/0350.html#f1 - Synopsis: A JavaScript file in the cartridges folder of GlobalGrid2050 that maps grid substations, connection points, GB transmission network and price decade rollup, using haversine. - What it achieves (code): It creates compute observer (`createComputeObserver`), builds stats (`buildStats`) and applies development stage defaults (`applyDevelopmentStageDefaults`). Its `distanceKm` function gives distance km from two coordinate pairs (VEDIC: measure). Its code works with 400 kV, 132 kV and 33 kV. It responds to click, keydown and touchstart events. - What it does: It maps grid substations, connection points, GB transmission network and price decade rollup. Defines 233 functions or classes, including distanceKm, representativePoint, voltagesKv, destinationPoint, initialBearingDeg. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage 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: 750kV, 415kV, 400kV, 275kV, 220kV, 132kV. - Inputs & outputs: In: GeoJSON file grid_substations.geojson; JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; JSON file price-decade-rollup.json; browser storage (getItem); DuckDB queries; form fields (user input). Out: browser storage (setItem); interactive map. Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 110kV, 66kV. - Signatures: `distanceKm(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `dLon(lon2 - lon1)`; `representativePoint(geometry)`; `voltagesKv(properties)`; `destinationPoint(lon, lat, km, bearingDeg)`; `initialBearingDeg(lon1, lat1, lon2, lat2)`; `dl(lon2 - lon1)`; `copy(value)`; `finite(value)`; `located(point)`; `sameLocation(a, b)`; `sameEntity(a, b)`; `createComputeObserver({ onEvent = () => {}, now = () => Date.now() } = {})`; `publish(attempt, status, extra = {})`; `get(id)`; `request({ entity, location = null, operation = 'nearest-grid', dataset = null })`; `unsupported(id, reason)`; `run(id, compute)`; `snapshot(id = latest)`; `assess(id, expected)`; `show(record)`; `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `classOf(kv)`; `scope(origin, substations, options)` (and 15 more) - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - VEDIC: VOLTAGE (GG2050-VEDIC-000003): GridAtlas / Geodesy · Computer science / Data normalisation. voltage_properties -> kilovolt_list - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_substations.geojson; JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; JSON file price-decade-rollup.json; browser storage (getItem); DuckDB queries; form fields (user input)]; out [browser storage (setItem); interactive map]; crs [WGS84 / EPSG:4326]; voltages [750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 110kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Substation Intelligence - File: globalgrid2050/testcode/202609060528/atlas/cartridges/202609060528-substation-intelligence.js (JavaScript, 5420 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/202609060528/atlas/cartridges/202609060528-substation-intelligence.js#L1-L5420 - Page: https://code.globalgrid2050.com/explore-code/s/0361.html#f2 - Synopsis: A JavaScript file in the cartridges folder of GlobalGrid2050 that maps elizabeth line and london underground, using haversine and SHA-256, and uses data from the ventus-grid-engine, data-federation-map-for-GlobalGrid2050-all-repos and spiders repositories. - What it achieves (code): It restores layers (`restoreLayers`), saves outline (`saveOutline`) and reads outline (`readOutline`). Its `snapLines` function gives line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged from line features and substation point features (VEDIC: snap line ends to substations). Its code works with 400 kV and 100 MVA. It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 232 functions or classes, including close, open, dockLayers, restoreLayers, show. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Inputs & outputs: In: data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json. Out: CSV file gridatlas-polygon-vertices.csv; downloaded file gridatlas-polygon-; downloaded file gridatlas-polygon-vertices.csv; downloaded file gridatlas-; downloaded file globalgrid2050-map-; browser storage (setItem); interactive map; canvas drawing. Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Signatures: `close()`; `open(map, controlId)`; `dockLayers()`; `restoreLayers()`; `show(html)`; `clearValues()`; `validOutline(points)`; `saveOutline(points)`; `readOutline()`; `clearOutline()`; `analyzeOutline(points)`; `fail(code,message)`; `orient(a,b,c)`; `on(a,b,p)`; `exportOutline(points, measurements)`; `importOutline(text)`; `createHistory(limit=80)`; `copy(points)`; `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - domain_stage: experimental · commercial_user: ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of code-generator/apps/substation-finder/Si/202609060537-substation-intelligence.js) · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json]; out [CSV file gridatlas-polygon-vertices.csv; downloaded file gridatlas-polygon-; downloaded file gridatlas-polygon-vertices.csv; downloaded file gridatlas-; downloaded file globalgrid2050-map-; browser storage (setItem); interactive map; canvas drawing]; crs [WGS84 / EPSG:4326]; voltages [400kV, 275kV, 132kV, 66kV, 33kV, 11kV] - Edges: uses 2 estate files (estate-url 2); used by 0; mentioned by 1 ### Particles — 12 Substations Line Page - File: globalgrid2050/testcode/particles/12-substations-line-142743/index.html (HTML, 33 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/particles/12-substations-line-142743/index.html#L1-L33 - Page: https://code.globalgrid2050.com/explore-code/s/0368.html#f2 - Published at: https://globalgrid2050.com/testcode/particles/12-substations-line-142743/ - Synopsis: A web page in the testcode folder of GlobalGrid2050 covering substations. Published at https://globalgrid2050.com/testcode/particles/12-substations-line-142743/. - What it achieves (name): Its code works with 100 kW. - What it does: It draws substations. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: substations. - Inputs & outputs: Out: web page. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/testcode/particles/12-substations-line-142743/. - domain_stage: experimental · commercial_user: ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (iframe 1); used by 0; mentioned by 0 ### Particles — 21 Substations Line Page - File: globalgrid2050/testcode/particles/21-substations-line-335499/index.html (HTML, 33 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/particles/21-substations-line-335499/index.html#L1-L33 - Page: https://code.globalgrid2050.com/explore-code/s/0368.html#f3 - Published at: https://globalgrid2050.com/testcode/particles/21-substations-line-335499/ - Synopsis: A web page in the testcode folder of GlobalGrid2050 covering substations. Published at https://globalgrid2050.com/testcode/particles/21-substations-line-335499/. - What it achieves (name): Its code works with 100 kW. - What it does: It draws substations. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: substations. - Inputs & outputs: Out: web page. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/testcode/particles/21-substations-line-335499/. - domain_stage: experimental · commercial_user: ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (iframe 1); used by 0; mentioned by 0 ### Particles — 30 Substations Line Page - File: globalgrid2050/testcode/particles/30-substations-line-185459/index.html (HTML, 33 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/particles/30-substations-line-185459/index.html#L1-L33 - Page: https://code.globalgrid2050.com/explore-code/s/0368.html#f4 - Published at: https://globalgrid2050.com/testcode/particles/30-substations-line-185459/ - Synopsis: A web page in the testcode folder of GlobalGrid2050 covering substations. Published at https://globalgrid2050.com/testcode/particles/30-substations-line-185459/. - What it achieves (name): Its code works with 100 kW. - What it does: It draws substations. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: substations. - Inputs & outputs: Out: web page. - Downstream impact: It is itself an entry point, published at https://globalgrid2050.com/testcode/particles/30-substations-line-185459/. - domain_stage: experimental · commercial_user: ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (iframe 1); used by 0; mentioned by 0 ### Wafer Development Environment — Voltage Drop Page - File: globalgrid2050/testcode/wafer-development-environment/202609170042-voltage-drop/index.html (HTML, 44 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/testcode/wafer-development-environment/202609170042-voltage-drop/index.html#L1-L44 - Page: https://code.globalgrid2050.com/explore-code/s/0368.html#f5 - Published at: https://globalgrid2050.com/testcode/wafer-development-environment/202609170042-voltage-drop/ - Synopsis: A web page in the testcode folder of GlobalGrid2050. Published at https://globalgrid2050.com/testcode/wafer-development-environment/202609170042-voltage-drop/. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 6 files: Testcode — Wafer Development Environment Page (globalgrid2050, https://globalgrid2050.com/testcode/wafer-development-environment/); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage Versions — Before Refresh Page (globalgrid2050, https://globalgrid2050.com/homepage_versions/20260922-before-refresh/); Homepage V123 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v123.html); and 2 more. Reached from 115 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://globalgrid2050.com/testcode/wafer-development-environment/202609170042-voltage-drop/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 4 estate files (script-src 3, stylesheet 1); used by 6; mentioned by 0 ### Atlas Interconnector Link V9 8 - File: globalgrid2050/uk_renewables_pipeline/202609071221/scripts/core/atlas-interconnector-link-v9-8.js (JavaScript, 75 lines) · role energy-data · stage transform - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_renewables_pipeline/202609071221/scripts/core/atlas-interconnector-link-v9-8.js#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0369.html#f1 - Synopsis: A JavaScript module in the core folder of GlobalGrid2050 that works with interconnectors and the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): It builds atlas interconnector link v9 (`buildAtlasInterconnectorLinkV9_8`) and is built from the interconnector identity v9 8 helper (`interconnectorIdentityV9_8`). A REPD row's MAP link carries `repd_ref`, and the Atlas resolves the project from the register. - What it does: It calculates interconnectors and the REPD register. Defines interconnectorIdentityV9_8, buildAtlasInterconnectorLinkV9_8, interconnectorMapNoteV9_8, interconnectorMapUnavailableReasonV9_8. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors, the REPD register. README: "Their MAP link carries the link's own identity - `interconnector=INTNED`, `technology=interconnector` - against the same canonical Atlas receiver as every REPD row, and never a `repd_ref`." - Downstream impact: Used directly by 8 files: Check V9 8 (globalgrid2050); Projects V9 9 (globalgrid2050); Check V9 9 (globalgrid2050); Check V9 10 (globalgrid2050); and 4 more. Reached from 15 other entry points, including GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/); GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050); GlobalGrid2050 Pn V973 Capacity Reports Workflow (globalgrid2050). - Signatures: `export interconnectorIdentityV9_8(record)`; `export buildAtlasInterconnectorLinkV9_8(record)`; `export interconnectorMapNoteV9_8(record)`; `export interconnectorMapUnavailableReasonV9_8(record)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 8; mentioned by 0 ### Interconnectors V9 8 - File: globalgrid2050/uk_renewables_pipeline/202609071221/scripts/data/interconnectors-v9-8.js (JavaScript, 52 lines) · role energy-data · stage output - Source: https://github.com/Ventusltd/globalgrid2050/blob/0aca5121f0795e469b6cf4fc3d3b628edba8d883/uk_renewables_pipeline/202609071221/scripts/data/interconnectors-v9-8.js#L1-L52 - Page: https://code.globalgrid2050.com/explore-code/s/0369.html#f2 - Synopsis: A JavaScript module in the data folder of GlobalGrid2050 that fetches interconnectors, using SHA-256. It fetches text (`fetchText`) and loads interconnectors v9 (`loadInterconnectorsV9_8`). - What it achieves (comment): Loads the interconnector data product, and refuses anything but the pinned one. - What it does: It fetches interconnectors. Defines invariant, fetchText, sha256Hex, loadInterconnectorsV9_8. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'interconnectors'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors. - Inputs & outputs: In: JSON file interconnectors_manifest.json. - Downstream impact: Used directly by 2 files: Projects V9 9 (globalgrid2050); Projects V9 8 (globalgrid2050). Reached from 12 other entry points, including GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/); GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050); GlobalGrid2050 Pn V973 Capacity Reports Workflow (globalgrid2050). - Signatures: `export loadInterconnectorsV9_8()`; `invariant(condition, message)`; `fetchText(path)`; `sha256Hex(text)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file interconnectors_manifest.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Substation Picker - File: graphics-engines-open-source/web/substation-picker.mjs (JavaScript, 45 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/graphics-engines-open-source/blob/79e0bd8ee33844835e553fc84d552b6aa1521152/web/substation-picker.mjs#L1-L45 - Page: https://code.globalgrid2050.com/explore-code/s/0369.html#f3 - Published at: https://ventusltd.github.io/graphics-engines-open-source/web/ - Synopsis: A JavaScript module in Graphics Engines Open Source covering substations and cables, using SHA-256. Served with the page at https://ventusltd.github.io/graphics-engines-open-source/web/. - What it achieves (name): Defines `make` and `refresh`. It responds to input and click events. - What it does: It draws substations and cables. Defines make, refresh. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution 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, cables. - Downstream impact: Used directly by 1 file: Graphics Engines Open Source — Index Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/). Reached from 1 other entry point, including Graphics Engines Open Source — Versions Page (graphics-engines-open-source, https://ventusltd.github.io/graphics-engines-open-source/web/versions/). It is itself an entry point, published at https://ventusltd.github.io/graphics-engines-open-source/web/. - Signatures: `make(tag, text)`; `refresh()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Neon Substation Links V9 6 - File: gridatlas/atlas/cartridges/202608311910-neon-substation-links-v9-6.js (JavaScript, 707 lines) · role geodesy · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/cartridges/202608311910-neon-substation-links-v9-6.js#L1-L707 - Page: https://code.globalgrid2050.com/explore-code/s/0369.html#f4 - Synopsis: A JavaScript file in the cartridges folder of GridAtlas that maps grid substations, 33kV, solar and wind, using haversine. - What it achieves (comment): It loads substations (`loadSubstations`), removes card block (`removeCardBlock`) and stops animation (`stopAnimation`). Slot: replace-script for… Its code works with 33 kV and 11 kV. It responds to keydown and visibilitychange events. - What it does: It maps grid substations, 33kV, solar and wind. Defines 24 functions or classes, including distanceKm, voltagesKv, representativePoint, loadSubstations, nearestSubstations. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 33kV, solar, wind, 11kV. - Inputs & outputs: In: GeoJSON file grid_substations.geojson. Out: interactive map. Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 33kV, 11kV. - Downstream impact: Used directly by 2 files: Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Ventus Grid Engine — Genome Page (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/). Reached from 1 other entry point, including Genome Workflow (ventus-grid-engine). - Signatures: `distanceKm(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `dLon(lon2 - lon1)`; `voltagesKv(properties)`; `representativePoint(geometry)`; `loadSubstations()`; `nearestSubstations(lon, lat, subs)`; `nearestProjects(map, lon, lat)`; `installStyles()`; `escapeHtml(value)`; `caveatHtml()`; `cardBlockHtml(links, direction)`; `injectIntoCard(links, direction)`; `removeCardBlock()`; `emptyCollection()`; `ensureLayers(map)`; `stopAnimation()`; `startAnimation(map)`; `step()`; `clearLinks()`; `drawLinks(map, origin, name, tech, links, direction)`; `interactiveLayerIds(map)`; `install(map)`; `attach(map)`; `boot()` (and 1 more) - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: VOLTAGE (GG2050-VEDIC-000003): GridAtlas / Geodesy · Computer science / Data normalisation. voltage_properties -> kilovolt_list - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_substations.geojson]; out [interactive map]; crs [WGS84 / EPSG:4326]; voltages [33kV, 11kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Single-Line Diagram (SLD) Sandbox V9 8 - File: gridatlas/atlas/cartridges/202611180026-sld-sandbox-v9-8.js (JavaScript, 9047 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/cartridges/202611180026-sld-sandbox-v9-8.js#L1-L9047 - Page: https://code.globalgrid2050.com/explore-code/s/0370.html#f2 - Synopsis: A JavaScript file in the cartridges folder of GridAtlas that maps connection points, GB transmission network, price decade rollup and grid substations, using haversine. - What it achieves (comment): It creates compute observer (`createComputeObserver`), describes compute receipt (`describeComputeReceipt`) and builds stats (`buildStats`). Receipt and distance owner: Ventusltd/ventus-grid-engine. Its code works with 400 kV, 132 kV and 33 kV. It responds to click, keydown and touchstart events. - What it does: It maps connection points, GB transmission network, price decade rollup and grid substations. Defines 276 functions or classes, including distanceKm, distanceKm, representativePoint, voltagesKv, destinationPoint. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage 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: 750kV, 415kV, 400kV, 275kV, 220kV, 132kV. - Inputs & outputs: In: JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; JSON file price-decade-rollup.json; GeoJSON file grid_substations.geojson; JSON file neso-connection-sites.lean.json; GeoJSON file interconnectors.geojson; browser storage (getItem); DuckDB queries. Out: browser storage (setItem); interactive map. Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 110kV, 66kV. - Signatures: `distanceKm(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `dLon(lon2 - lon1)`; `representativePoint(geometry)`; `voltagesKv(properties)`; `destinationPoint(lon, lat, km, bearingDeg)`; `initialBearingDeg(lon1, lat1, lon2, lat2)`; `dl(lon2 - lon1)`; `copy(value)`; `finite(value)`; `located(point)`; `sameLocation(a, b)`; `sameEntity(a, b)`; `createComputeObserver({ onEvent = () => {}, now = () => Date.now() } = {})`; `publish(attempt, status, extra = {})`; `get(id)`; `request({ entity, location = null, operation = 'nearest-grid', dataset = null })`; `unsupported(id, reason)`; `run(id, compute)`; `snapshot(id = latest)`; `assess(id, expected)`; `describeComputeReceipt(receipt)`; `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `classOf(kv)`; `scope(origin, substations, options)` (and 15 more) - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - VEDIC: VOLTAGE (GG2050-VEDIC-000003): GridAtlas / Geodesy · Computer science / Data normalisation. voltage_properties -> kilovolt_list - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; JSON file price-decade-rollup.json; GeoJSON file grid_substations.geojson; JSON file neso-connection-sites.lean.json; GeoJSON file interconnectors.geojson; browser storage (getItem); DuckDB queries]; out [browser storage (setItem); interactive map]; crs [WGS84 / EPSG:4326]; voltages [750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 110kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 1 ### Substation Intelligence V9 63 - File: gridatlas/atlas/cartridges/202611180026-substation-intelligence-v9-63.js (JavaScript, 8609 lines) · role geodesy · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/cartridges/202611180026-substation-intelligence-v9-63.js#L1-L8609 - Page: https://code.globalgrid2050.com/explore-code/s/0383.html#f2 - Synopsis: A JavaScript file in the cartridges folder of GridAtlas that maps elizabeth line, using haversine and SHA-256 and uses data from the Ventus Grid Engine, data-federation-map-for-GlobalGrid2050-all-repos and spiders repositories. - What it achieves (comment): It normalizes status (`normalizeStatus`), toggles zone draw mode (`toggleZoneDrawMode`) and opens popup (`openPopup`). ASSEMBLED by `tools/build-cartridge.mjs` from the parts below. Its code works with 400 kV, 100 MVA and 132 kV. It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 238 functions or classes, including deepFreeze, escapeHTML, normalizeStatus, fmt, haversine. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 750kV, 400kV, 275kV, 132kV, 66kV, 33kV. - Inputs & outputs: In: data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; data source: npm data; GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson. Out: downloaded file gridatlas-; downloaded file globalgrid2050-grid-atlas-; interactive map; canvas drawing; SVG drawing. Voltage levels named: 750kV, 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Downstream impact: Used directly by 4 files: Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); Map Removal Test (gridatlas); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Ventus Grid Engine — Genome Page (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/). Reached from 2 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); Genome Workflow (ventus-grid-engine). - Signatures: `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()`; `_zoneDrawCirclePoints(lon, lat, radiusKm, n)`; `b(i / n)`; `_zoneDrawCalcArea(pts)`; `j(i + 1)`; `_zoneDrawUpdateLayers(dragOnly)`; `_zoneDrawShowPopup()`; `_zoneDrawShowPopupDebounced()`; `_zoneDrawClear()`; `zoneDrawUndo()`; `toggleZoneDrawMode()`; `_zoneDrawNearVertex(px)`; `_zoneDrawEdgeDots(i)`; `_zoneDrawNearEdgeDot(px)`; `_zoneDrawOnClick(e)`; `mpp(km * 2000)`; `_zoneDrawOnMouseDown(e)`; `_zoneDrawOnMouseMove(e)`; `_zoneDrawOnMouseUp()` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; data source: npm data; GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson]; out [downloaded file gridatlas-; downloaded file globalgrid2050-grid-atlas-; interactive map; canvas drawing; SVG drawing]; crs []; voltages [750kV, 400kV, 275kV, 132kV, 66kV, 33kV, 11kV] - Edges: uses 2 estate files (estate-url 2); used by 4; mentioned by 1 ### Substation Lookup - File: gridatlas/atlas/modules/202609011950-substation-lookup.js (JavaScript, 82 lines) · role electrical · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609011950-substation-lookup.js#L1-L82 - Page: https://code.globalgrid2050.com/explore-code/s/0395.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas covering substations. It is built from the normalise step (`normalise`) and the index step (`index`). - What it achieves (comment): Finding a substation by the name someone wrote, and by position. - What it does: It lists and searches substations. Defines normalise, index. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations, 400kV, 275kV, 132kV, 66kV, 33kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Downstream impact: Used directly by 2 files: Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Ventus Grid Engine — Genome Page (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/). Reached from 1 other entry point, including Genome Workflow (ventus-grid-engine). - Signatures: `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `normalise(name)`; `index(points)`; `minimumKv(options && options.minimumKv)`; `limit(options && options.limit)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV, 11kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Map Click Network - File: gridatlas/atlas/modules/202609012230-map-click-network.js (JavaScript, 57 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609012230-map-click-network.js#L1-L57 - Page: https://code.globalgrid2050.com/explore-code/s/0395.html#f3 - Synopsis: A JavaScript file in the atlas folder of GridAtlas covering transformers and interconnectors. It is built from the index step (`index`) and the select step (`select`). - What it achieves (comment): Reads data-grid-GB's precomputed, provenance-bound one-hop projection. - What it does: It lists and searches transformers and interconnectors. Defines index, at, select. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers, interconnectors. - Signatures: `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `index(product)`; `at(siteCode, { connectionKv } = {})`; `select(rows)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Network Topology - File: gridatlas/atlas/modules/202609012245-network-topology.js (JavaScript, 384 lines) · role render · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609012245-network-topology.js#L1-L384 - Page: https://code.globalgrid2050.com/explore-code/s/0396.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that works with physical units (`physicalUnits`) (units: kV, MVA), covering transformers, 132kV and 400kV. - What it achieves (comment): It is built from the voltage of helper (`voltageOf`), the band key helper (`bandKey`) and the ratings of helper (`ratingsOf`). What the network operator publishes about ONE site: its nodes, the circuits that land on them, the transformers between them, the changes it has published for future years, and which other sites those circuits reach. Its code works with 100 MVA, 132 kV and 400 kV. - What it does: It lists and searches transformers, 132kV and 400kV. Defines 11 functions or classes, including voltageOf, bandKey, ratingsOf, physicalUnits, parametersOf. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'topology'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, 132kV, 400kV. - Inputs & outputs: Voltage levels named: 400kV, 132kV. - Downstream impact: Used directly by 2 files: Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Ventus Grid Engine — Genome Page (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/). Reached from 1 other entry point, including Genome Workflow (ventus-grid-engine). - Signatures: `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `voltageOf(node)`; `bandKey(kv)`; `ratingsOf(row)`; `physicalUnits(records)`; `parametersOf(row)`; `index(product)`; `land(nodeName, entry)`; `siteOf(nodeName)`; `graph()`; `resolve(key)`; `at(key, options)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 132kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Single-Line Diagram (SLD) Styles - File: gridatlas/atlas/modules/202609040400-sld-styles.js (JavaScript, 301 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202609040400-sld-styles.js#L1-L301 - Page: https://code.globalgrid2050.com/explore-code/s/0396.html#f2 - Synopsis: A JavaScript file in the atlas folder of GridAtlas. - What it achieves (comment): SLD runtime styles, mechanically lifted from the v9.106 sandbox body. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Signatures: `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `neonBlock(BLOCK_CLASS)`; `bootStatus(STATUS_ID)`; `versionLedger(LEDGER_ID)`; `mobileTray(TRAY_ID)`; `gbConditions(GB_ID)`; `sldPanel(PANEL_ID)`; `fullscreenLayers()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Without Layout - File: gridatlas/atlas/modules/202611222130-sld-without-layout.js (JavaScript, 8986 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202611222130-sld-without-layout.js#L1-L8986 - Page: https://code.globalgrid2050.com/explore-code/s/0397.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas that maps connection points, GB transmission network, price decade rollup and grid substations, using haversine. - What it achieves (comment): It creates compute observer (`createComputeObserver`), describes compute receipt (`describeComputeReceipt`) and builds stats (`buildStats`). Receipt and distance owner: Ventusltd/ventus-grid-engine. Its code works with 400 kV, 132 kV and 33 kV. It responds to click, keydown and touchstart events. - What it does: It maps connection points, GB transmission network, price decade rollup and grid substations. Defines 273 functions or classes, including distanceKm, distanceKm, representativePoint, voltagesKv, destinationPoint. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'layout'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 750kV, 415kV, 400kV, 275kV, 220kV, 132kV. - Inputs & outputs: In: JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; JSON file price-decade-rollup.json; GeoJSON file grid_substations.geojson; JSON file neso-connection-sites.lean.json; GeoJSON file interconnectors.geojson; browser storage (getItem); DuckDB queries. Out: browser storage (setItem); interactive map. Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 110kV, 66kV. - Signatures: `distanceKm(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `dLon(lon2 - lon1)`; `representativePoint(geometry)`; `voltagesKv(properties)`; `destinationPoint(lon, lat, km, bearingDeg)`; `initialBearingDeg(lon1, lat1, lon2, lat2)`; `dl(lon2 - lon1)`; `copy(value)`; `finite(value)`; `located(point)`; `sameLocation(a, b)`; `sameEntity(a, b)`; `createComputeObserver({ onEvent = () => {}, now = () => Date.now() } = {})`; `publish(attempt, status, extra = {})`; `get(id)`; `request({ entity, location = null, operation = 'nearest-grid', dataset = null })`; `unsupported(id, reason)`; `run(id, compute)`; `snapshot(id = latest)`; `assess(id, expected)`; `describeComputeReceipt(receipt)`; `NS(window.__GRIDATLAS_MODULES__ = window.__GRIDATLAS_MODULES__ || {})`; `classOf(kv)`; `scope(origin, substations, options)` (and 15 more) - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - VEDIC: VOLTAGE (GG2050-VEDIC-000003): GridAtlas / Geodesy · Computer science / Data normalisation. voltage_properties -> kilovolt_list - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file connection-points.v3.json; JSON file gb-transmission-network.v1.json; JSON file price-decade-rollup.json; GeoJSON file grid_substations.geojson; JSON file neso-connection-sites.lean.json; GeoJSON file interconnectors.geojson; browser storage (getItem); DuckDB queries]; out [browser storage (setItem); interactive map]; crs [WGS84 / EPSG:4326]; voltages [750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 110kV, 66kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### UKPN Secondary Substations - File: gridatlas/atlas/modules/202612010912-ukpn-secondary-substations.js (JavaScript, 282 lines) · role energy-data · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/modules/202612010912-ukpn-secondary-substations.js#L1-L282 - Page: https://code.globalgrid2050.com/explore-code/s/0410.html#f1 - Synopsis: A JavaScript file in the atlas folder of GridAtlas covering grid UKPN secondary, using SHA-256 and uses data from UK Power Networks open data and the data-grid-GB repository. - What it achieves (comment): It registers pinned (`registerPinned`) and binds map (`bindMap`). Native `ukConfig` extension, pinned UKPN transformer archive. Its code works with 11 kV and 400 kV. It responds to change events. - What it does: It draws grid UKPN secondary, UKPN transformers, 11kV and substations. Defines 21 functions or classes, including sharedDatabase, registerPinned, detailsFor, scalar, normalize. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 11kV, substations, 400kV. - Inputs & outputs: In: data source: data-grid-gb data; data source: UK Power Networks open data; Parquet file grid_ukpn_secondary.parquet; Parquet file ukpn_transformers.parquet; DuckDB queries. Voltage levels named: 400kV, 11kV. - Downstream impact: Used directly by 2 files: Build (gridatlas); Regional Interface Test (gridatlas). Reached from 3 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); CI PR Gate (gridatlas); Map Promotion Rehearsal (gridatlas). - Signatures: `sharedDatabase()`; `registerPinned(database,name)`; `detailsFor(site)`; `scalar(v)`; `normalize(raw)`; `unpack(bytes)`; `extend(options)`; `installZoomGate()`; `controls(id)`; `main()`; `eligible()`; `note(input,message)`; `sync()`; `augmentPopup()`; `line(label,value)`; `current()`; `add(label,value)`; `bindMap()`; `attach()`; `load()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: data-grid-gb data; data source: UK Power Networks open data; Parquet file grid_ukpn_secondary.parquet; Parquet file ukpn_transformers.parquet; DuckDB queries]; out []; crs []; voltages [400kV, 11kV] - Edges: uses 0 estate files; used by 2; mentioned by 1 ### Single-Line Diagram (SLD) Sandbox Body - File: gridatlas/atlas/parts/202609012045-sld-sandbox-body.js (JavaScript, 5782 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/parts/202609012045-sld-sandbox-body.js#L1-L5782 - Page: https://code.globalgrid2050.com/explore-code/s/0410.html#f2 - Synopsis: A JavaScript file in the parts folder of GridAtlas that maps grid substations, solar, transformers and 400kV, using haversine. - What it achieves (comment): It resolves declared connection (`resolveDeclaredConnection`), opens corridor sheet (`openCorridorSheet`) and runs grid point (`runGridAtPoint`). GridAtlas cartridge — neon substation links and the SLD layout sandbox. Its code works with 400 kV, 33 kV and 132 kV. It responds to click, keydown and touchstart events. - What it does: It maps grid substations, solar, transformers and 400kV. Defines 183 functions or classes, including coverage, isProjectTech, provisionalDeclaredConnection, resolveDeclaredConnection, nearestTransmission. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage 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, transformers, 400kV, 750kV, 415kV, 275kV. - Inputs & outputs: In: GeoJSON file grid_substations.geojson; browser storage (getItem); DuckDB queries; form fields (user input). Out: browser storage (setItem); interactive map. Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 66kV, 33kV. - Signatures: `GEODESY(window.__GRIDATLAS_MODULES__ || {})`; `isProjectTech(tech)`; `DECLARED(window.__GRIDATLAS_MODULES__ || {})`; `provisionalDeclaredConnection(repdRef)`; `resolveDeclaredConnection(repdRef, origin, subs)`; `nearestTransmission(origin, subs)`; `corridorBeside(km)`; `module(() => { try { return window.__GRIDATLAS_MODULES__?.corridorEstimate || null; } catch (_) { return null; } })`; `corridorTargets()`; `corridorAction()`; `installCorridorSheet()`; `close()`; `openCorridorSheet(sheet)`; `armCorridorGestures(map)`; `canvas(() => { try { return map.getCanvas ? map.getCanvas() : null; } catch (_) { return null; } })`; `cancel()`; `nearestScope(n)`; `network(() => { try { return window.__GRIDATLAS_NETWORK__?.coverage?.(400) || null; } catch (_) { return null; } })`; `declaredBlockHtml(toSubstations)`; `published(() => { try { return window.__GRIDATLAS_NETWORK__?.summarise?.( networkName, { connectionKv, units: publishedUnits })...)`; `PINS(window.__GRIDATLAS_MODULES__ || {})`; `reflect()`; `reflectFullscreen()`; `topologyModule()`; `ensureTopology()` (and 15 more) - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: VOLTAGE (GG2050-VEDIC-000003): GridAtlas / Geodesy · Computer science / Data normalisation. voltage_properties -> kilovolt_list - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_substations.geojson; browser storage (getItem); DuckDB queries; form fields (user input)]; out [browser storage (setItem); interactive map]; crs [WGS84 / EPSG:4326]; voltages [750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Substation Intelligence Body - File: gridatlas/atlas/parts/202609012350-substation-intelligence-body.js (JavaScript, 314 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/parts/202609012350-substation-intelligence-body.js#L1-L314 - Page: https://code.globalgrid2050.com/explore-code/s/0419.html#f1 - Synopsis: A JavaScript file in the parts folder of GridAtlas that fetches transformers, substations, 400kV and 132kV, using haversine. - What it achieves (comment): It is built from the normalise step (`normalise`), the ready step (`ready`) and the eligible step (`eligible`). PART 2 - the network, as its operator publishes it. Its code works with 400 kV and 132 kV. - What it does: It fetches transformers, substations, 400kV and 132kV. Defines normalise, ready, eligible, unitCount. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: transformers, substations, 400kV, 132kV, 275kV, 66kV. - Inputs & outputs: Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Signatures: `PINS(window.__GRIDATLAS_MODULES__ || {})`; `GEODESY(window.__GRIDATLAS_MODULES__ || {})`; `normalise(name)`; `eligible(point)`; `units(options && options.units)`; `unitCount(field)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 275kV, 132kV, 66kV, 33kV, 11kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Sandbox Arrival Identity - File: gridatlas/atlas/parts/202609040229-sld-sandbox-arrival-identity.js (JavaScript, 5948 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/parts/202609040229-sld-sandbox-arrival-identity.js#L1-L5948 - Page: https://code.globalgrid2050.com/explore-code/s/0419.html#f2 - Synopsis: A JavaScript file in the parts folder of GridAtlas that maps grid substations, solar, transformers and 400kV, using haversine. - What it achieves (comment): It resolves declared connection (`resolveDeclaredConnection`), opens corridor sheet (`openCorridorSheet`) and runs grid point (`runGridAtPoint`). GridAtlas cartridge — neon substation links and the SLD layout sandbox. Its code works with 400 kV, 33 kV and 132 kV. It responds to click, keydown and touchstart events. - What it does: It maps grid substations, solar, transformers and 400kV. Defines 187 functions or classes, including coverage, isProjectTech, provisionalDeclaredConnection, resolveDeclaredConnection, nearestTransmission. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage 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, transformers, 400kV, 750kV, 415kV, 275kV. - Inputs & outputs: In: GeoJSON file grid_substations.geojson; browser storage (getItem); DuckDB queries; form fields (user input). Out: browser storage (setItem); interactive map. Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 66kV, 33kV. - Signatures: `GEODESY(window.__GRIDATLAS_MODULES__ || {})`; `isProjectTech(tech)`; `DECLARED(window.__GRIDATLAS_MODULES__ || {})`; `provisionalDeclaredConnection(repdRef)`; `resolveDeclaredConnection(repdRef, origin, subs)`; `nearestTransmission(origin, subs)`; `corridorBeside(km)`; `module(() => { try { return window.__GRIDATLAS_MODULES__?.corridorEstimate || null; } catch (_) { return null; } })`; `corridorTargets()`; `corridorAction()`; `installCorridorSheet()`; `close()`; `openCorridorSheet(sheet)`; `armCorridorGestures(map)`; `canvas(() => { try { return map.getCanvas ? map.getCanvas() : null; } catch (_) { return null; } })`; `cancel()`; `nearestScope(n)`; `network(() => { try { return window.__GRIDATLAS_NETWORK__?.coverage?.(400) || null; } catch (_) { return null; } })`; `declaredBlockHtml(toSubstations)`; `published(() => { try { return window.__GRIDATLAS_NETWORK__?.summarise?.( networkName, { connectionKv, units: publishedUnits })...)`; `PINS(window.__GRIDATLAS_MODULES__ || {})`; `reflect()`; `reflectFullscreen()`; `topologyModule()`; `ensureTopology()` (and 15 more) - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: VOLTAGE (GG2050-VEDIC-000003): GridAtlas / Geodesy · Computer science / Data normalisation. voltage_properties -> kilovolt_list - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - domain_stage: experimental · commercial_user: none · canonical_status: duplicate_candidate (duplicate of gridatlas/atlas/parts/202609040400-sld-sandbox-style-hoist.js) · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_substations.geojson; browser storage (getItem); DuckDB queries; form fields (user input)]; out [browser storage (setItem); interactive map]; crs [WGS84 / EPSG:4326]; voltages [750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Sandbox Style Hoist - File: gridatlas/atlas/parts/202609040400-sld-sandbox-style-hoist.js (JavaScript, 5692 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/parts/202609040400-sld-sandbox-style-hoist.js#L1-L5692 - Page: https://code.globalgrid2050.com/explore-code/s/0428.html#f1 - Synopsis: A JavaScript file in the parts folder of GridAtlas that maps grid substations, solar, transformers and 400kV, using haversine. - What it achieves (comment): It resolves declared connection (`resolveDeclaredConnection`), opens corridor sheet (`openCorridorSheet`) and runs grid point (`runGridAtPoint`). GridAtlas cartridge — neon substation links and the SLD layout sandbox. Its code works with 400 kV, 33 kV and 132 kV. It responds to click, keydown and touchstart events. - What it does: It maps grid substations, solar, transformers and 400kV. Defines 187 functions or classes, including coverage, isProjectTech, provisionalDeclaredConnection, resolveDeclaredConnection, nearestTransmission. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage 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, transformers, 400kV, 750kV, 415kV, 275kV. - Inputs & outputs: In: GeoJSON file grid_substations.geojson; browser storage (getItem); DuckDB queries; form fields (user input). Out: browser storage (setItem); interactive map. Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 66kV, 33kV. - Signatures: `SLD_STYLES(window.__GRIDATLAS_MODULES__ || {})`; `GEODESY(window.__GRIDATLAS_MODULES__ || {})`; `isProjectTech(tech)`; `DECLARED(window.__GRIDATLAS_MODULES__ || {})`; `provisionalDeclaredConnection(repdRef)`; `resolveDeclaredConnection(repdRef, origin, subs)`; `nearestTransmission(origin, subs)`; `corridorBeside(km)`; `module(() => { try { return window.__GRIDATLAS_MODULES__?.corridorEstimate || null; } catch (_) { return null; } })`; `corridorTargets()`; `corridorAction()`; `installCorridorSheet()`; `close()`; `openCorridorSheet(sheet)`; `armCorridorGestures(map)`; `canvas(() => { try { return map.getCanvas ? map.getCanvas() : null; } catch (_) { return null; } })`; `cancel()`; `nearestScope(n)`; `network(() => { try { return window.__GRIDATLAS_NETWORK__?.coverage?.(400) || null; } catch (_) { return null; } })`; `declaredBlockHtml(toSubstations)`; `published(() => { try { return window.__GRIDATLAS_NETWORK__?.summarise?.( networkName, { connectionKv, units: publishedUnits })...)`; `PINS(window.__GRIDATLAS_MODULES__ || {})`; `reflect()`; `reflectFullscreen()`; `topologyModule()` (and 15 more) - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: VOLTAGE (GG2050-VEDIC-000003): GridAtlas / Geodesy · Computer science / Data normalisation. voltage_properties -> kilovolt_list - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_substations.geojson; browser storage (getItem); DuckDB queries; form fields (user input)]; out [browser storage (setItem); interactive map]; crs [WGS84 / EPSG:4326]; voltages [750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Sandbox Technology Buckets - File: gridatlas/atlas/parts/202609041234-sld-sandbox-technology-buckets.js (JavaScript, 5885 lines) · role geodesy · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/parts/202609041234-sld-sandbox-technology-buckets.js#L1-L5885 - Page: https://code.globalgrid2050.com/explore-code/s/0436.html#f2 - Synopsis: A JavaScript file in the parts folder of GridAtlas that maps grid substations, solar, wind and transformers, using haversine. - What it achieves (comment): It resolves declared connection (`resolveDeclaredConnection`), opens corridor sheet (`openCorridorSheet`) and runs grid point (`runGridAtPoint`). GridAtlas cartridge — neon substation links and the SLD layout sandbox. Its code works with 400 kV, 33 kV and 132 kV. It responds to click, keydown and touchstart events. - What it does: It maps grid substations, solar, wind and transformers. Defines 191 functions or classes, including coverage, isProjectTech, layerIdForBucket, provisionalDeclaredConnection, resolveDeclaredConnection. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage 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, wind, transformers, 750kV, 415kV, 400kV. - Inputs & outputs: In: GeoJSON file grid_substations.geojson; browser storage (getItem); DuckDB queries; form fields (user input). Out: browser storage (setItem); interactive map. Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 66kV, 33kV. - Downstream impact: Used directly by 2 files: Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Ventus Grid Engine — Genome Page (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/). Reached from 1 other entry point, including Genome Workflow (ventus-grid-engine). - Signatures: `SLD_STYLES(window.__GRIDATLAS_MODULES__ || {})`; `GEODESY(window.__GRIDATLAS_MODULES__ || {})`; `isProjectTech(tech)`; `layerIdForBucket(tech)`; `DECLARED(window.__GRIDATLAS_MODULES__ || {})`; `provisionalDeclaredConnection(repdRef)`; `resolveDeclaredConnection(repdRef, origin, subs)`; `nearestTransmission(origin, subs)`; `corridorBeside(km)`; `module(() => { try { return window.__GRIDATLAS_MODULES__?.corridorEstimate || null; } catch (_) { return null; } })`; `corridorTargets()`; `corridorAction()`; `installCorridorSheet()`; `close()`; `openCorridorSheet(sheet)`; `armCorridorGestures(map)`; `canvas(() => { try { return map.getCanvas ? map.getCanvas() : null; } catch (_) { return null; } })`; `cancel()`; `nearestScope(n)`; `network(() => { try { return window.__GRIDATLAS_NETWORK__?.coverage?.(400) || null; } catch (_) { return null; } })`; `declaredBlockHtml(toSubstations)`; `published(() => { try { return window.__GRIDATLAS_NETWORK__?.summarise?.( networkName, { connectionKv, units: publishedUnits })...)`; `PINS(window.__GRIDATLAS_MODULES__ || {})`; `coarse(() => { try { return !!(window.matchMedia && window.matchMedia('(pointer: coarse)').matches); } catch (_) { return fa...)`; `reflect()` (and 15 more) - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: VOLTAGE (GG2050-VEDIC-000003): GridAtlas / Geodesy · Computer science / Data normalisation. voltage_properties -> kilovolt_list - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_substations.geojson; browser storage (getItem); DuckDB queries; form fields (user input)]; out [browser storage (setItem); interactive map]; crs [WGS84 / EPSG:4326]; voltages [750kV, 415kV, 400kV, 275kV, 220kV, 132kV, 66kV, 33kV] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Fetch Far End Converters - File: gridatlas/tools/interconnectors/fetch_far_end_converters.py (Python, 377 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/interconnectors/fetch_far_end_converters.py#L1-L377 - Page: https://code.globalgrid2050.com/explore-code/s/0445.html#f1 - Synopsis: A Python command-line tool in the interconnectors folder of GridAtlas that fetches generation interconnector, grid substations, interconnector endpoints and overpass converters, using EPSG:4326 from OpenStreetMap (Overpass). - What it achieves (comment): It fetches converters (`fetch_converters`), loads GB substations (`load_gb_substations`) and loads flows (`load_flows`). Find the far-end converter station for each GB interconnector. It accepts `--root`, `--out` and `--cache`. - What it does: It fetches generation interconnector, grid substations, interconnector endpoints and overpass converters. Defines haversine_km, fetch_converters, load_gb_substations, load_flows, main. Uses libraries __future__, argparse, datetime, json, math. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'interconnectors'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: OpenStreetMap (Overpass); JSON file generation_interconnector_index.json; GeoJSON file grid_substations.geojson; JSON file interconnector-endpoints.json; JSON file .overpass-converters.json; GeoJSON file interconnectors.geojson; command-line arguments. Coordinate systems named: WGS84 / EPSG:4326. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `haversine_km(lon1: float, lat1: float, lon2: float, lat2: float)`; `fetch_converters(cache: Path, offline: bool)`; `load_gb_substations(root: Path)`; `load_flows(root: Path)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: OpenStreetMap (Overpass); JSON file generation_interconnector_index.json; GeoJSON file grid_substations.geojson; JSON file interconnector-endpoints.json; JSON file .overpass-converters.json; GeoJSON file interconnectors.geojson; command-line arguments]; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Interconnector Module - File: gridatlas/tools/interconnectors/interconnector-module.js (JavaScript, 180 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/interconnectors/interconnector-module.js#L1-L180 - Page: https://code.globalgrid2050.com/explore-code/s/0445.html#f2 - Synopsis: A JavaScript file in the interconnectors folder of GridAtlas that maps interconnectors and substations. It searches km (`searchKm`) and measures end (`measureEnd`). - What it achieves (comment): An interconnector is not a generator and it does not arrive anywhere. - What it does: It maps interconnectors and substations. Defines 8 functions or classes, including rad, haversineKm, searchKm, label, measureEnd. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'interconnector'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors, substations. - Inputs & outputs: In: GeoJSON file interconnectors.geojson. - Signatures: `rad(d)`; `haversineKm(lon1, lat1, lon2, lat2)`; `searchKm()`; `label(link, km)`; `measureEnd(role, lon, lat, km, subs)`; `paint(map, geojson)`; `boot(map)`; `subs(window.__GRIDATLAS_NEON_LINKS__ || {})`; `ready(map)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoJSON file interconnectors.geojson]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Neon Substation Links Proof - File: gridatlas/tools/proofs/202608311910-neon-substation-links.proof.mjs (JavaScript, 361 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202608311910-neon-substation-links.proof.mjs#L1-L361 - Page: https://code.globalgrid2050.com/explore-code/s/0446.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that maps substations, 33kV, transformers and wind. It makes element (`makeElement`), maps stub (`MapStub`) and runs adapter (`runAdapter`). - What it achieves (comment): The repository carries Playwright and no DOM library, so rather than add one this stubs the small surface the cartridge actually touches and runs the real file against it. Its code works with 33 kV. - What it does: It maps substations, 33kV, transformers and wind. Defines 6 functions or classes, including check, makeElement, MutationObserverStub, MapStub, runAdapter. Uses libraries node:fs/promises, node:url, node:path, node:vm. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution 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, 33kV, transformers, wind. - Inputs & outputs: Out: interactive map. Voltage levels named: 33kV. - Signatures: `check(label, ok, detail = '')`; `makeElement(tag = 'div')`; `appendChild(child)`; `remove()`; `setAttribute()`; `addEventListener()`; `querySelector()`; `querySelectorAll()`; `getElementById(id)`; `createElement(tag)`; `class MutationObserverStub`; `class MapStub`; `constructor(options)`; `isStyleLoaded()`; `once()`; `getSource()`; `getStyle()`; `getLayoutProperty()`; `setPaintProperty()`; `queryRenderedFeatures()`; `runAdapter(source, initSpy)`; `CARD(() => { const probe = { ...sandbox }; return null; })` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out [interactive map]; crs []; voltages [33kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Original Single-Line Diagram (SLD) Finance Fixture - File: gridatlas/tools/proofs/202609010002-original-sld-finance-fixture.mjs (JavaScript, 351 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202609010002-original-sld-finance-fixture.mjs#L1-L351 - Page: https://code.globalgrid2050.com/explore-code/s/0447.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that makes element (`makeElement`), parses elements (`parseElements`) and makes harness (`makeHarness`) (units: MW, MVA, MWh), using SHA-256. - What it achieves (comment): It makes element (`makeElement`), parses elements (`parseElements`) and makes harness (`makeHarness`). Execute the original GlobalGrid2050 GIS SLD electrical and finance engines against a deliberately small DOM, then emit a deterministic JSON oracle. - What it does: It loads data. Defines 9 functions or classes, including valueAfter, sha256, attributes, makeElement, parseElements. Uses libraries node:assert/strict, node:crypto, node:fs, node:path, node:vm. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: form fields (user input); command-line arguments. - Downstream impact: It is itself an entry point (JavaScript module); no other file was found loading it. - Signatures: `valueAfter(flag)`; `sha256(text)`; `attributes(markup)`; `makeElement(id, attrs = {})`; `closest()`; `addEventListener()`; `dispatchEvent()`; `parseElements(html)`; `makeHarness()`; `getElementById(id)`; `applyOverrides(elements, overrides)`; `prefixed(prefix, values)`; `runCase(spec)`; `excessAnnualOpex(result.stats.ac_mw - correctedAcMw)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input); command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Styles Proof - File: gridatlas/tools/proofs/202609040400-sld-styles.proof.mjs (JavaScript, 309 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202609040400-sld-styles.proof.mjs#L1-L309 - Page: https://code.globalgrid2050.com/explore-code/s/0447.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads substations, using SHA-256. - What it achieves (comment): It is built from the raw step (`raw`), the JSON step (`json`) and the digest step (`digest`). V9.107 stylesheet-hoist proof. - What it does: It loads substations. Defines 7 functions or classes, including lf, raw, json, digest, rawDigest. Uses libraries node:assert/strict, node:crypto, node:fs, node:path, node:vm. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations. - Inputs & outputs: In: JSON file current.json. - Signatures: `lf(relative)`; `raw(relative)`; `json(relative)`; `digest(text)`; `rawDigest(bytes)`; `assertManifestBytes(entry, relative, label)`; `trailingWhitespaceLines(source)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Sandbox Proof - File: gridatlas/tools/proofs/202611222130-sld-sandbox.proof.mjs (JavaScript, 42 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202611222130-sld-sandbox.proof.mjs#L1-L42 - Page: https://code.globalgrid2050.com/explore-code/s/0448.html#f1 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads composition, using SHA-256. - What it achieves (name): Defines `read`. It reads `atlas/manifests/202611222130-composition.json`. - What it does: It loads composition. Defines read. Uses libraries node:fs, node:path, node:assert/strict, node:crypto, node:vm. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: JSON file 202611222130-composition.json; JSON file current.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `read(x)` - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file 202611222130-composition.json; JSON file current.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### UKPN Paired Browser - File: gridatlas/tools/proofs/202612010912-ukpn-paired.browser.mjs (JavaScript, 82 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612010912-ukpn-paired.browser.mjs#L1-L82 - Page: https://code.globalgrid2050.com/explore-code/s/0448.html#f2 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads grid UKPN secondary and UKPN transformers. It is built from the memory step (`memory`). - What it achieves (comment): Identical harness copied into the pinned ZIP worktree and run on the same runner as Parquet. - What it does: It loads grid UKPN secondary and UKPN transformers. Defines memory. Uses libraries node:assert/strict, node:fs, playwright. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'ukpn'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: Parquet file grid_ukpn_secondary.parquet; Parquet file ukpn_transformers.parquet. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `memory()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [Parquet file grid_ukpn_secondary.parquet; Parquet file ukpn_transformers.parquet]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### UKPN Secondary Browser - File: gridatlas/tools/proofs/202612010912-ukpn-secondary.browser.mjs (JavaScript, 119 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612010912-ukpn-secondary.browser.mjs#L1-L119 - Page: https://code.globalgrid2050.com/explore-code/s/0448.html#f3 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads grid UKPN secondary, UKPN transformers and 11kV. It is built from the zoom to helper (`zoomTo`). - What it achieves (name): Defines `memory` and `zoomTo`. It writes `/receipt.json`. - What it does: It loads grid UKPN secondary, UKPN transformers and 11kV. Defines memory, zoomTo. Uses libraries node:assert/strict, node:fs, playwright. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'ukpn'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 11kV. - Inputs & outputs: In: Parquet file grid_ukpn_secondary.parquet; Parquet file ukpn_transformers.parquet. Out: JSON file receipt.json. Voltage levels named: 11kV. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `memory()`; `zoomTo(zoom)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [Parquet file grid_ukpn_secondary.parquet; Parquet file ukpn_transformers.parquet]; out [JSON file receipt.json]; crs []; voltages [11kV] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Substation Intelligence Proof - File: gridatlas/tools/proofs/202612012117-substation-intelligence.proof.mjs (JavaScript, 2 lines) · role electrical · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612012117-substation-intelligence.proof.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0448.html#f4 - Synopsis: A JavaScript module in the proofs folder of GridAtlas covering substations. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution 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. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### UKPN Secondary Card Proof - File: gridatlas/tools/proofs/202612012117-ukpn-secondary-card.proof.mjs (JavaScript, 2 lines) · role energy-data · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612012117-ukpn-secondary-card.proof.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0448.html#f5 - Synopsis: A JavaScript module in the proofs folder of GridAtlas. - What it achieves (readme): The README says: Added real rendered UKPN card selection, ranked Grid Engine transfer, poor-fix rejection, exact endpoint and GPS-watch preservation, and secondary Vicinity identity assertions to the existing combined browser gate. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'ukpn'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. README: "Added real rendered UKPN card selection, ranked Grid Engine transfer, poor-fix rejection, exact endpoint and GPS-watch preservation, and secondary Vicinity identity assertions to the existing combined browser gate." - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### UKPN Secondary Substations Proof - File: gridatlas/tools/proofs/202612012117-ukpn-secondary-substations.proof.mjs (JavaScript, 2 lines) · role energy-data · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/202612012117-ukpn-secondary-substations.proof.mjs#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0448.html#f6 - Synopsis: A JavaScript module in the proofs folder of GridAtlas covering substations. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substations'): upstream engineering foresight over GB transmission and distribution 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. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Network Topology Proof - File: gridatlas/tools/proofs/modules/202609012145-network-topology.proof.mjs (JavaScript, 269 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/modules/202609012145-network-topology.proof.mjs#L1-L269 - Page: https://code.globalgrid2050.com/explore-code/s/0448.html#f7 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that reads GB transmission network, transformers, 400kV and 132kV, using haversine. It is built from the check step (`check`). - What it achieves (comment): Run against the REAL product, not a fixture. Its code works with 400 kV, 132 kV and 100 MVA. - What it does: It loads GB transmission network, transformers, 400kV and 132kV. Defines check. Uses libraries node:fs/promises, node:fs, node:path, node:url, node:vm. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'topology'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, 400kV, 132kV. - Inputs & outputs: In: JSON file gb-transmission-network.v1.json. Voltage levels named: 400kV, 132kV. - Downstream impact: Used directly by 1 file: Local CI (gridatlas). - Signatures: `check(label, condition, detail)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file gb-transmission-network.v1.json]; out []; crs []; voltages [400kV, 132kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Map Click Network Proof - File: gridatlas/tools/proofs/modules/202609012230-map-click-network.proof.mjs (JavaScript, 81 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/proofs/modules/202609012230-map-click-network.proof.mjs#L1-L81 - Page: https://code.globalgrid2050.com/explore-code/s/0448.html#f8 - Synopsis: A JavaScript module in the proofs folder of GridAtlas that uses haversine. - What it achieves (name): Defines `check`. Its code works with 400 kV. - What it does: It loads data. Defines check. Uses libraries node:fs/promises, node:path, node:url, node:vm. Side effects: changes the web page (DOM); reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV. - Inputs & outputs: Voltage levels named: 400kV. - Downstream impact: Used directly by 1 file: Local CI (gridatlas). - Signatures: `check(label, condition)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Audit UKPN - File: gridatlas/tools/secondary/audit_ukpn.py (Python, 84 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/secondary/audit_ukpn.py#L1-L84 - Page: https://code.globalgrid2050.com/explore-code/s/0448.html#f9 - Synopsis: A Python command-line tool in the secondary folder of GridAtlas that fetches grid 11kV UKPN, historical, UKPN transformers and UKPN sites, using SHA-256 from the data-grid-GB and data-GridAtlas repositories. - What it achieves (comment): It is built from the acquire step (`acquire`). Real-source network twin: two builds, independent SQL and legacy comparison. It accepts `--work`. - What it does: It fetches grid 11kV UKPN, historical, UKPN transformers and UKPN sites. Defines acquire, main. Uses libraries argparse, hashlib, json, subprocess, sys. Side effects: reads or writes files; makes network requests; starts processes; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'ukpn'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: data-grid-gb data; data source: data-gridatlas data; Parquet file grid_11kv_ukpn.parquet; Parquet file historical.parquet; Parquet file ukpn_transformers.parquet; Parquet file ukpn_sites.parquet; DuckDB queries; command-line arguments. Out: JSON file audit.json. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `acquire(url, dest, size, sha)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: data-grid-gb data; data source: data-gridatlas data; Parquet file grid_11kv_ukpn.parquet; Parquet file historical.parquet; Parquet file ukpn_transformers.parquet; Parquet file ukpn_sites.parquet; DuckDB queries; command-line arguments]; out [JSON file audit.json]; crs []; voltages [] - Edges: uses 1 estate file (script-call 1); used by 0; mentioned by 0 ### Import UKPN - File: gridatlas/tools/secondary/import_ukpn.py (Python, 130 lines) · role energy-data · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/secondary/import_ukpn.py#L1-L130 - Page: https://code.globalgrid2050.com/explore-code/s/0449.html#f1 - Synopsis: A Python command-line tool in the secondary folder of GridAtlas that reads UKPN secondary site transformers, grid UKPN secondary and UKPN transformers, using SHA-256 from UK Power Networks open data. - What it achieves (comment): It reads source (`read_source`) and compiles sites (`compile_sites`). Compile the pinned UKPN source into the existing GridAtlas Parquet contract. It reads `ukpn-secondary-site-transformers.geojson`. It accepts `--output`. - What it does: It loads UKPN secondary site transformers, grid UKPN secondary, UKPN transformers and UKPN sites. Defines read_source, compile_sites, main, export. Uses libraries argparse, hashlib, json, math, zipfile. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'ukpn'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: UK Power Networks open data; GeoJSON file ukpn-secondary-site-transformers.geojson; GeoJSON file grid_ukpn_secondary.geojson; Parquet file grid_ukpn_secondary.parquet; Parquet file ukpn_transformers.parquet; Parquet file ukpn_sites.parquet; DuckDB queries; command-line arguments. Out: Parquet file. - Downstream impact: Used directly by 2 files: Audit UKPN (gridatlas); UKPN Secondary Columnar Workflow (data-grid-gb). - Signatures: `read_source(path)`; `compile_sites(rows)`; `main()`; `export(query, name)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: UK Power Networks open data; GeoJSON file ukpn-secondary-site-transformers.geojson; GeoJSON file grid_ukpn_secondary.geojson; Parquet file grid_ukpn_secondary.parquet; Parquet file ukpn_transformers.parquet; Parquet file ukpn_sites.parquet; DuckDB queries; command-line arguments]; out [Parquet file]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Single-Line Diagram (SLD) Build - File: gridatlas/tools/sld/build.mjs (JavaScript, 42 lines) · role electrical · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/sld/build.mjs#L1-L42 - Page: https://code.globalgrid2050.com/explore-code/s/0449.html#f2 - Synopsis: A JavaScript module in the tools folder of GridAtlas that reads generations, using SHA-256. - What it achieves (comment): It builds SLD (`buildSld`) and is built from the digest step (`digest`) and the pinned step (`pinned`). Rebuild the MAP receiver from a pinned immutable baseline and explicit source edits. - What it does: It loads generations. Defines digest, buildSld, pinned, arg. Uses libraries node:fs, node:path, node:assert/strict, node:crypto, node:url. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. README: "`build.mjs` restores source reproducibility for the accepted V9.190 and V9.191 SLD cartridges." - Inputs & outputs: In: JSON file generations.json; command-line arguments. - Downstream impact: Used directly by 5 files: Single-Line Diagram (SLD) Build Test (gridatlas); Single-Line Diagram (SLD) Map Removal Cleanup Test (gridatlas); Single-Line Diagram (SLD) Mobile Arrival Card Test (gridatlas); Cut Grid Explorer (gridatlas); and 1 more. Reached from 3 other entry points, including GridAtlas PR File Size Guard Workflow (gridatlas); CI PR Gate (gridatlas); Map Promotion Rehearsal (gridatlas). - Signatures: `export buildSld(generation,root=ROOT)`; `digest(b)`; `pinned(input)`; `arg(name)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file generations.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 5; mentioned by 0 ### Single-Line Diagram (SLD) Build Test - File: gridatlas/tools/sld/build.test.mjs (JavaScript, 36 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/sld/build.test.mjs#L1-L36 - Page: https://code.globalgrid2050.com/explore-code/s/0449.html#f3 - Synopsis: A test in the tools folder of GridAtlas that checks Single-Line Diagram (SLD) Build. - What it does: It tests its inputs. Uses libraries node:test, node:assert/strict, node:fs, node:os, node:path. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file generations.json. - Downstream impact: Used directly by 2 files: CI PR Gate (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). Reached from 1 other entry point, including Map Promotion Rehearsal (gridatlas). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file generations.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Single-Line Diagram (SLD) Map Removal Cleanup Test - File: gridatlas/tools/sld/map-removal-cleanup.test.mjs (JavaScript, 20 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/sld/map-removal-cleanup.test.mjs#L1-L20 - Page: https://code.globalgrid2050.com/explore-code/s/0449.html#f4 - Synopsis: A test in the tools folder of GridAtlas that checks Single-Line Diagram (SLD) Build. It is built from the extract step (`extract`) and the fixture step (`fixture`). - What it achieves (comment): Regression over the real rebuilt SLD functions, including its inherited failure. It reads `./src/map-removal-cleanup-edits.json`. - What it does: It tests its inputs. Defines extract, fixture. Uses libraries node:test, node:assert/strict, node:fs, node:vm. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file map-removal-cleanup-edits.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `extract(source,name,indent=2)`; `fixture({removed=false,other=false}={})` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file map-removal-cleanup-edits.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Single-Line Diagram (SLD) Mobile Arrival Card Browser - File: gridatlas/tools/sld/mobile-arrival-card.browser.py (Python, 95 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/sld/mobile-arrival-card.browser.py#L1-L95 - Page: https://code.globalgrid2050.com/explore-code/s/0449.html#f5 - Synopsis: A Python module in the tools folder of GridAtlas that reads mobile arrival card edits, using SHA-256. It is built from the candidate step (`candidate`). - What it achieves (comment): Only real-browser proof; intercepts pointer/hash and one cartridge. - What it does: It loads mobile arrival card edits. Defines main, candidate. Uses libraries asyncio, hashlib, json, os, pathlib. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file mobile-arrival-card-edits.json; JSON file current.json. Out: JSON file receipt.json. - Signatures: `main()`; `candidate(route)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file mobile-arrival-card-edits.json; JSON file current.json]; out [JSON file receipt.json]; crs []; voltages [] - Edges: uses 2 estate files (estate-url 2); used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Mobile Arrival Card Test - File: gridatlas/tools/sld/mobile-arrival-card.test.mjs (JavaScript, 55 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/sld/mobile-arrival-card.test.mjs#L1-L55 - Page: https://code.globalgrid2050.com/explore-code/s/0449.html#f6 - Synopsis: A test in the tools folder of GridAtlas that checks Single-Line Diagram (SLD) Build. - What it achieves (name): Defines `fixture`. It reads `./src/mobile-arrival-card-edits.json`. - What it does: It tests substations. Defines fixture. Uses libraries node:test, node:assert/strict, node:fs, node:vm. Side effects: changes the web page (DOM); reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations. - Inputs & outputs: In: JSON file mobile-arrival-card-edits.json. - Downstream impact: Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `fixture(minimised = true)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file mobile-arrival-card-edits.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Single-Line Diagram (SLD) Retire GridAtlas Layout - File: gridatlas/tools/sld/retire-gridatlas-layout.mjs (JavaScript, 53 lines) · role storage · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/sld/retire-gridatlas-layout.mjs#L1-L53 - Page: https://code.globalgrid2050.com/explore-code/s/0449.html#f7 - Synopsis: A JavaScript module in the tools folder that reads substations. It is built from the retire layout helper (`retireLayout`) and the exact step (`exact`). - What it achieves (comment): Surgical no-layout derivative from immutable V9.191 SLD carrier. - What it does: It loads substations. Defines retireLayout, exact. Uses libraries node:fs, node:path, node:url. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'layout'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: substations. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 1 file: Single-Line Diagram (SLD) Sandbox Proof (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export retireLayout(source)`; `exact(a,b,description)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Learning Networks - File: gridatlas/tools/train/fixtures/learning-networks.mjs (JavaScript, 15 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/train/fixtures/learning-networks.mjs#L1-L15 - Page: https://code.globalgrid2050.com/explore-code/s/0449.html#f8 - Synopsis: A JavaScript module in the fixtures folder of GridAtlas that works with train learning fixture (`trainLearningFixture`). It is built from the train learning fixture helper (`trainLearningFixture`). - What it achieves (comment): Original fictional teaching networks; no railway geography, names or artwork. - What it does: It calculates its inputs. Defines trainLearningFixture. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 1 file: Route Plan Test (gridatlas). Reached from 1 other entry point, including GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export trainLearningFixture(kind = 'local')` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### VEDIC Road Topology - File: gridatlas/tools/vedic/road-topology.mjs (JavaScript, 78 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/vedic/road-topology.mjs#L1-L78 - Page: https://code.globalgrid2050.com/explore-code/s/0449.html#f9 - Synopsis: A JavaScript module in the tools folder of GridAtlas that works with motorways. It compiles topology (`compileTopology`) and turns allowed (`turnAllowed`). - What it achieves (comment): Conservative, source-ID-preserving topology pilot; not a legal-route certification. - What it does: It calculates motorways. Defines 7 functions or classes, including id, tags, direction, eligible, compileTopology. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'vedic'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). Domain terms in the code: motorways. - Downstream impact: Used directly by 2 files: VEDIC Regional Stream Test (gridatlas); VEDIC Snapshot Routing (gridatlas). - Signatures: `export compileTopology(source,mode,{maxNodes=50000,maxWays=10000,maxRelations=10000,maxEdges=100000,maxWayRefs=500000}={})`; `id(x)`; `tags(x)`; `direction(t,mode)`; `eligible(t,mode)`; `add(w,k,a,b,d)`; `turnAllowed(inId,outId)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Verify Interconnector Arrival - File: gridmachine1/202609071322-linux-handover/rig-kit/verify-interconnector-arrival.mjs (JavaScript, 118 lines) · role energy-data · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/gridmachine1/blob/16cd3db49d03e6faa0e4e24f06f08184422049be/202609071322-linux-handover/rig-kit/verify-interconnector-arrival.mjs#L1-L118 - Page: https://code.globalgrid2050.com/explore-code/s/0449.html#f10 - Synopsis: A JavaScript module in the rig kit folder of Gridmachine1 that fetches interconnectors and the Renewable Energy Planning Database (REPD) register. - What it achieves (comment): Does an interconnector MAP link fire the span model at both ends? - What it does: It fetches interconnectors and the REPD register. Uses libraries node:fs, node:path, node:http, file:///C:/Users/vikra/LocalCI/PipelineNews-GridAtlas/v004/node_modules/playwright/index.mjs. Side effects: changes the web page (DOM); reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'interconnector'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors, the REPD register. - Inputs & outputs: In: data source: 127.0.0.1:${PORT}; command-line arguments. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: 127.0.0.1:${PORT}; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### GridAtlas Nearest Substation Check - File: neural-link-between-agents/FIXES/NL-016/gridatlas/tools/nearest_substation_check.mjs (JavaScript, 66 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/neural-link-between-agents/blob/598eff3f59afe11738d64cb14cb8befe5e37cdc2/FIXES/NL-016/gridatlas/tools/nearest_substation_check.mjs#L1-L66 - Page: https://code.globalgrid2050.com/explore-code/s/0450.html#f1 - Synopsis: A JavaScript module in the tools folder of Neural Link Between Agents that reads grid substations. It is built from the grab step (`grab`) and the nearest step (`nearest`). - What it achieves (comment): Nearest-substation QA for the October preview records, using GridAtlas's own shipped code, not a re-implementation: - `distanceKm`: `atlas/modules/202609011950-geodesy.js`, run in node:vm with a window stub; - `voltagesKv`, `representativePoint`, `MIN_KV/LINK_COUNT/MAX_LINK_KM`: extracted verbatim from the live single-line diagram (SLD)-sandbox cartridge `atlas/cartridges/202609241334-sld-sandbox-v9-8.js` and evaluated. - What it does: It loads grid substations. Defines grab, nearest. Uses libraries node:fs, node:vm. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: GeoJSON file grid_substations.geojson; command-line arguments. - Signatures: `grab(name)`; `nearest(lon, lat)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer, ai_agent · canonical_status: unreached_review · essay_status: auto - data_contracts: in [GeoJSON file grid_substations.geojson; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Networks - File: particle-physics-drawing-engine/tools/networks.py (Python, 122 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/particle-physics-drawing-engine/blob/d3d28cc760761dab210dc3850577ee73c23fe8c5/tools/networks.py#L1-L122 - Page: https://code.globalgrid2050.com/explore-code/s/0450.html#f2 - Synopsis: A Python command-line tool in the tools folder of Particle Physics Drawing Engine that reads grid 400kV, grid 132kV, grid substations and ne 10m coastline, using Douglas-Peucker. - What it achieves (comment): It is built from the normalise step (`normalise`), the from lines helper (`from_lines`) and the write step (`write`). Real systems as network files the wafer draws with its own dust. Its code works with 132 kV and 400 kV. It accepts `--gg`, `--ne` and `--shotwick`. - What it does: It loads grid 400kV, grid 132kV, grid substations and ne 10m coastline. Defines dp, normalise, from_lines, write, main. Uses libraries argparse, json, math, os, sys. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (voltage levels 400kV, 132kV (all 132kV or above)): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 132kV. README: "`tools/networks.py` turns any GridAtlas layer into a draw on the one wafer." - Inputs & outputs: In: GeoJSON file grid_400kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file ne_10m_coastline.geojson; GeoJSON file ne_110m_coastline.geojson; command-line arguments. Out: JSON file. Voltage levels named: 400kV, 132kV. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `dp(points, tol)`; `normalise(pts)`; `from_lines(features, tol, name_key="name", bbox=None, min_pts=2)`; `write(out, name, source, attribution, law, nodes, edges)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_400kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file ne_10m_coastline.geojson; GeoJSON file ne_110m_coastline.geojson; command-line arguments]; out [JSON file]; crs []; voltages [400kV, 132kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Single-Line Diagram (SLD) — App - File: sld/assets/app.js (JavaScript, 64 lines) · role interaction · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/sld/blob/1205aa0d1f80d8e05a2cbb19f363939174b50002/assets/app.js#L1-L64 - Page: https://code.globalgrid2050.com/explore-code/s/0450.html#f3 - Synopsis: A JavaScript file in the assets folder that draws SLD educational draft. It renders cards (`renderCards`), adds part (`addPart`) and renders canvas (`renderCanvas`). - What it achieves (comment): Educational drawing state is deliberately separate from electrical topology. It reads `data/library.json`. It responds to click, keydown and input events. - What it does: It draws SLD educational draft. Defines 16 functions or classes, including $, text, svg, say, label. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file sld-educational-draft.json; JSON file library.json. - Signatures: `$(id)`; `text(tag, value, cls)`; `svg(tag, attrs={})`; `say(value)`; `label(c)`; `key(c)`; `preview(c)`; `renderCards()`; `addPart(c)`; `choose(id)`; `renderCanvas()`; `move(dx,dy)`; `remove()`; `validateDraft(value)`; `download(data,name,type)`; `exportSVG()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file sld-educational-draft.json; JSON file library.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Components - File: sld/data/upstream/powsybl/components.css (CSS, 58 lines) · role render · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/sld/blob/1205aa0d1f80d8e05a2cbb19f363939174b50002/data/upstream/powsybl/components.css#L1-L58 - Page: https://code.globalgrid2050.com/explore-code/s/0450.html#f4 - Synopsis: A style sheet in the powsybl folder of Single-Line Diagram (SLD). - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Build Catalogue - File: sld/scripts/build_catalogue.py (Python, 56 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/sld/blob/1205aa0d1f80d8e05a2cbb19f363939174b50002/scripts/build_catalogue.py#L1-L56 - Page: https://code.globalgrid2050.com/explore-code/s/0450.html#f5 - Synopsis: A Python command-line tool in the scripts folder that reads components. It is built from the build step (`build`). - What it achieves (comment): Build a deterministic research catalogue from hash-verified local sources. It accepts `--data` and `--config`. - What it does: It loads components. Defines build, main. Uses libraries argparse, copy, json, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file components.json; JSON file library.json; command-line arguments. - Downstream impact: Used directly by 2 files: Test Sources (sld); Single-Line Diagram (SLD) Pages Workflow (sld). - Signatures: `build(config, data_dir)`; `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 components.json; JSON file library.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Single-Line Diagram (SLD) Build Site - File: sld/scripts/build_site.py (Python, 113 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/sld/blob/1205aa0d1f80d8e05a2cbb19f363939174b50002/scripts/build_site.py#L1-L113 - Page: https://code.globalgrid2050.com/explore-code/s/0450.html#f6 - Synopsis: A Python command-line tool in the scripts folder that works with local file (`local_file`). It is built from the safe SVG helper (`safe_svg`) and the build step (`build`). - What it achieves (comment): Build safe, local educational previews from the pinned component catalogue. It accepts `--out`. - What it does: It loads data. Defines local_file, safe_svg, build. Uses libraries pathlib, argparse, copy, json, re. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file library.json; command-line arguments. - Downstream impact: Used directly by 1 file: Single-Line Diagram (SLD) Pages Workflow (sld). - Signatures: `local_file(relative)`; `safe_svg(path)`; `build()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file library.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Single-Line Diagram (SLD) Fetch Sources - File: sld/scripts/fetch_sources.py (Python, 270 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/sld/blob/1205aa0d1f80d8e05a2cbb19f363939174b50002/scripts/fetch_sources.py#L1-L270 - Page: https://code.globalgrid2050.com/explore-code/s/0451.html#f1 - Synopsis: A Python command-line tool in the scripts folder that draws components and metadata, using SHA-256. It extracts text zip (`extract_text_zip`), verifies lock (`verify_lock`) and checks offline (`check_offline`). - What it achieves (comment): Bounded, pinned acquisition; never executes remote content. It accepts `--output`, `--config` and `--accept-first-fetch`. - What it does: It draws components and metadata. Defines 15 functions or classes, including EvidencePage, __init__, handle_starttag, handle_endtag, handle_data. Uses libraries argparse, hashlib, io, json, html.parser. 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 (repository name word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file source-lock.json; JSON file components.json; JSON file metadata.json; command-line arguments. Out: SVG drawing. - Downstream impact: Used directly by 4 files: Single-Line Diagram (SLD) Build Catalogue (sld); Single-Line Diagram (SLD) Verify Furnace (sld); Test Sources (sld); Single-Line Diagram (SLD) Pages Workflow (sld). Reached from 1 other entry point, including Test Furnace Gate (sld). - Signatures: `class EvidencePage`; `__init__(self)`; `handle_starttag(self, tag, attrs)`; `handle_endtag(self, tag)`; `handle_data(self, data)`; `decc_licence_evidence(data, source)`; `digest(data)`; `safe_name(name)`; `download(url, limit)`; `extract_text_zip(data, allowed, limit=1000000)`; `verify_lock(records, previous)`; `check_offline(config, output)`; `acquire(config, output, accept_first=False)`; `add(source, name, url, data, origin=None)`; `main()` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file source-lock.json; JSON file components.json; JSON file metadata.json; command-line arguments]; out [SVG drawing]; crs []; voltages [] - Edges: uses 0 estate files; used by 4; mentioned by 0 ### Single-Line Diagram (SLD) Furnace - File: sld/scripts/furnace.py (Python, 146 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/sld/blob/1205aa0d1f80d8e05a2cbb19f363939174b50002/scripts/furnace.py#L1-L146 - Page: https://code.globalgrid2050.com/explore-code/s/0451.html#f2 - Synopsis: A Python command-line tool in the scripts folder that reads photon library and photon evidence, using SHA-256. - What it achieves (comment): It is built from the digest step (`digest`), the reference step (`reference`) and the electron step (`electron`). Bounded GPU layout furnace: independent CUDA and CuPy rectangle tests. It accepts `--library`, `--out` and `--grid`. - What it does: It loads photon library and photon evidence. Defines digest, reference, main, electron. Uses libraries argparse, hashlib, json, math, os. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file library.json; JSON file photon-evidence.json; JSON file photon-library.json; JSON file source-lock.json; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `digest(path)`; `reference(xp, ids, w, h, n, grid, gap)`; `main()`; `electron(start, count, gap)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file library.json; JSON file photon-evidence.json; JSON file photon-library.json; JSON file source-lock.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Refresh Local - File: sld/scripts/refresh_local.ps1 (PowerShell, 67 lines) · role automation · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/sld/blob/1205aa0d1f80d8e05a2cbb19f363939174b50002/scripts/refresh_local.ps1#L1-L67 - Page: https://code.globalgrid2050.com/explore-code/s/0451.html#f3 - Synopsis: A PowerShell script in the scripts folder covering photon library and photon evidence. - What it achieves (comment): Trusted main only. Schedule this controller with the existing logged-on user. - What it does: Side effects: starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file photon-library.json; JSON file photon-evidence.json; JSON file library.json; JSON file source-lock.json. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file photon-library.json; JSON file photon-evidence.json; JSON file library.json; JSON file source-lock.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Verify Furnace - File: sld/scripts/verify_furnace.py (Python, 75 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/sld/blob/1205aa0d1f80d8e05a2cbb19f363939174b50002/scripts/verify_furnace.py#L1-L75 - Page: https://code.globalgrid2050.com/explore-code/s/0451.html#f4 - Synopsis: A Python command-line tool in the scripts folder that reads photon evidence and photon library, using SHA-256. - What it achieves (comment): It is built from the digest step (`digest`), the require step (`require`) and the verify step (`verify`). Fail closed when a furnace receipt does not bind the exact published inputs. It accepts `--root` and `--evidence-dir`. - What it does: It loads photon evidence and photon library. Defines digest, require, verify. Uses libraries argparse, hashlib, json, math, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file photon-evidence.json; JSON file photon-library.json; JSON file library.json; JSON file source-lock.json; command-line arguments. - Downstream impact: Used directly by 2 files: Test Furnace Gate (sld); Single-Line Diagram (SLD) Pages Workflow (sld). - Signatures: `digest(path)`; `require(condition, message)`; `verify(root, evidence_dir=None)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file photon-evidence.json; JSON file photon-library.json; JSON file library.json; JSON file source-lock.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 2; mentioned by 0 ### Single-Line Diagram (SLD) Sources - File: sld/sources.yaml (YAML, 60 lines) · role docs-config · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/sld/blob/1205aa0d1f80d8e05a2cbb19f363939174b50002/sources.yaml#L1-L60 - Page: https://code.globalgrid2050.com/explore-code/s/0451.html#f5 - Synopsis: A configuration file covering components, metadata, buscoords and licence evidence, and uses data from UK Power Networks open data. - What it achieves (readme): The README says: Edit `sources.yaml` (JSON-compatible YAML), preserving immutable revisions and explicit licence evidence. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. README: "Edit `sources.yaml` (JSON-compatible YAML), preserving immutable revisions and explicit licence evidence." - Inputs & outputs: In: JSON file components.json; JSON file metadata.json; CSV file buscoords.csv; JSON file licence-evidence.json. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file components.json; JSON file metadata.json; CSV file buscoords.csv; JSON file licence-evidence.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Browser - File: sld/tests/browser.cjs (JavaScript, 47 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/sld/blob/1205aa0d1f80d8e05a2cbb19f363939174b50002/tests/browser.cjs#L1-L47 - Page: https://code.globalgrid2050.com/explore-code/s/0451.html#f6 - Synopsis: A JavaScript module in the tests folder of Single-Line Diagram (SLD) that tests draft, bad and extra. - What it achieves (comment): Run in Linux CI against the packaged site. - What it does: It tests draft, bad and extra. Uses libraries playwright, node:assert/strict, node:fs/promises, node:path. 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 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file draft.json; JSON file bad.json; JSON file extra.json. - Downstream impact: Used directly by 1 file: Single-Line Diagram (SLD) Pages Workflow (sld). - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file draft.json; JSON file bad.json; JSON file extra.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### Test Furnace Gate - File: sld/tests/test_furnace_gate.py (Python, 67 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/sld/blob/1205aa0d1f80d8e05a2cbb19f363939174b50002/tests/test_furnace_gate.py#L1-L67 - Page: https://code.globalgrid2050.com/explore-code/s/0452.html#f1 - Synopsis: A test in the tests folder of Single-Line Diagram (SLD) that checks Single-Line Diagram (SLD) Verify Furnace. - What it achieves (name): It sets up (`setUp`) and is built from the furnace gate tests class (`FurnaceGateTests`). Defines `FurnaceGateTests`, `setUp`, `write` and 4 more. It writes `data/library.json`. - What it does: It tests its inputs. Defines 7 functions or classes, including FurnaceGateTests, setUp, write, test_valid_fixture, test_bound_file_mutation_rejected. Uses libraries copy, json, pathlib, sys, tempfile. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage field_execution (path word 'gate'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. - Inputs & outputs: In: JSON file library.json; JSON file source-lock.json; JSON file photon-library.json; JSON file photon-evidence.json. - Downstream impact: Used directly by 1 file: Single-Line Diagram (SLD) Pages Workflow (sld). - Signatures: `class FurnaceGateTests`; `setUp(self)`; `write(self, name, value)`; `test_valid_fixture(self)`; `test_bound_file_mutation_rejected(self)`; `test_invalid_receipts(self)`; `test_duplicate_domains_and_corrupt_counts(self)` - domain_stage: field_execution · commercial_user: EPC_contractor, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file library.json; JSON file source-lock.json; JSON file photon-library.json; JSON file photon-evidence.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (sys-path 1); used by 1; mentioned by 0 ### Test Sources - File: sld/tests/test_sources.py (Python, 109 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/sld/blob/1205aa0d1f80d8e05a2cbb19f363939174b50002/tests/test_sources.py#L1-L109 - Page: https://code.globalgrid2050.com/explore-code/s/0452.html#f2 - Synopsis: A test in the tests folder of Single-Line Diagram (SLD) that checks Single-Line Diagram (SLD) Fetch Sources and Single-Line Diagram (SLD) Build Catalogue, using SHA-256. - What it achieves (name): It is built from the acquisition tests class (`AcquisitionTests`) and the catalogue tests class (`CatalogueTests`). Defines `archive`, `AcquisitionTests`, `test_decc_evidence_stable_despite_nonce_changes` and 9 more. - What it does: It tests its inputs. Defines 12 functions or classes, including archive, AcquisitionTests, test_decc_evidence_stable_despite_nonce_changes, test_offline_detects_local_tampering, test_zip_rejects_traversal_and_executables. Uses libraries io, json, pathlib, sys, tempfile. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage sub33kv_design (repository name word 'sld'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. - Inputs & outputs: In: JSON file source-lock.json; JSON file components.json. Out: JSON file source-lock.json. - Downstream impact: Used directly by 1 file: Single-Line Diagram (SLD) Pages Workflow (sld). - Signatures: `archive(files)`; `class AcquisitionTests`; `test_decc_evidence_stable_despite_nonce_changes(self)`; `test_offline_detects_local_tampering(self)`; `test_zip_rejects_traversal_and_executables(self)`; `test_zip_rejects_binary_missing_and_oversize(self)`; `test_zip_preserves_text_without_execution(self)`; `test_lock_rejects_changed_hash_url_and_file_set(self)`; `test_filename_rejects_paths(self)`; `test_download_rejects_oversize_body(self)`; `class CatalogueTests`; `test_full_library_preserves_geometry_and_is_deterministic(self)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file source-lock.json; JSON file components.json]; out [JSON file source-lock.json]; crs []; voltages [] - Edges: uses 2 estate files (sys-path 2); used by 1; mentioned by 0 ### Import Network - File: soil/import_network.py (Python, 33 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/soil/blob/d26288ed03df533507739b9f218358fc7aa36a01/import_network.py#L1-L33 - Page: https://code.globalgrid2050.com/explore-code/s/0452.html#f3 - Synopsis: A Python module in Soil that fetches network sources, passages and summary, using SHA-256. - What it achieves (comment): Bounded local cache of published network thermal-design evidence. - What it does: It fetches network sources, passages and summary. Uses libraries hashlib, json, time, urllib.request, pathlib. 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_network.py`: local study cache of publicly available network thermal-design documents." - Inputs & outputs: In: JSON file network_sources.json. Out: JSON file .passages.json; JSON file summary.json. - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file network_sources.json]; out [JSON file .passages.json; JSON file summary.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Build Topology - File: spiders/spider_printer_v1/tools/build_topology.py (Python, 472 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/spiders/blob/78fc0f90bd5ca73f3d5d7c0e0b7b5712cfe781e5/spider_printer_v1/tools/build_topology.py#L1-L472 - Page: https://code.globalgrid2050.com/explore-code/s/0452.html#f4 - Synopsis: A Python command-line tool in the tools folder of Spiders that fetches cables from GitHub API. It scans local (`scan_local`), lists repos API (`list_repos_api`) and scans API (`scan_api`). - What it achieves (comment): Build `spider_printer_v1/data/topology.json` from the estate as it actually is. It accepts `--local`, `--api` and `--out`. - What it does: It fetches cables. Defines 12 functions or classes, including classify, repo_reference_pattern, scan_local, api_json, list_repos_api. Uses libraries __future__, argparse, json, os, re. Side effects: changes the web page (DOM); reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'spider'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). Domain terms in the code: cables. - Inputs & outputs: In: data source: GitHub API; JSON file topology.json; command-line arguments. - Downstream impact: Used directly by 2 files: Test Build Topology (spiders); Elements Topology Workflow (spiders). - Signatures: `classify(name: str)`; `repo_reference_pattern(names: list[str])`; `scan_local(root: Path, names: list[str], clone_dirs: dict[str, str] | None = None)`; `api_json(url: str, token: str | None)`; `list_repos_api(token: str | None)`; `scan_api(repos: list[dict], names: list[str], token: str | None)`; `mapped(node: dict)`; `layout(nodes: list[dict])`; `outside_map(nodes: list[dict])`; `overlapping(nodes: list[dict])`; `build(found: dict[str, dict[str, int]], repo_meta: dict[str, dict], source: str)`; `main()` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: GitHub API; JSON file topology.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Test Build Topology - File: spiders/spider_printer_v1/tools/test_build_topology.py (Python, 191 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/spiders/blob/78fc0f90bd5ca73f3d5d7c0e0b7b5712cfe781e5/spider_printer_v1/tools/test_build_topology.py#L1-L191 - Page: https://code.globalgrid2050.com/explore-code/s/0453.html#f1 - Synopsis: A test in the tools folder of Spiders that checks Build Topology and GridAtlas — Atlas Page using data from the GridAtlas repository. - What it achieves (comment): It is built from the check step (`check`), the node step (`node`) and the viewer map pos helper (`viewer_map_pos`). Negative controls for `build_topology.py`. - What it does: It tests its inputs. Defines check, node, viewer_map_pos. Uses libraries __future__, json, sys, pathlib. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage agent_infra (path word 'spider'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: data source: gridatlas data; JSON file topology.json. - Downstream impact: Used directly by 1 file: Elements Topology Workflow (spiders). - Signatures: `check(name: str, condition: bool)`; `node(x: int, y: int, layer: str = "data")`; `viewer_map_pos(n: dict)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; JSON file topology.json]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 1, estate-url 1); used by 1; mentioned by 0 ### Voltage - File: star-maker/machinery/bench/voltage.mjs (JavaScript, 80 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/star-maker/blob/2c477b0cc673304c5b288cee9d0e0ae42d273b2e/machinery/bench/voltage.mjs#L1-L80 - Page: https://code.globalgrid2050.com/explore-code/s/0453.html#f2 - Synopsis: A JavaScript module in the bench folder of Star Maker that fetches connection points, voltages, 11kV and 400kV from National Energy System Operator (NESO) data portal. - What it achieves (comment): It is built from the walk step (`walk`). THE VOLTAGE STAR — reads everything the code does about 400 / 275 / 220 / 132 / 66 / 33 / 11kV, joins each voltage to the data we actually hold, and. Its code works with 11 kV, 132 kV and 220 kV. - What it does: It fetches connection points, voltages, 11kV and 400kV. Defines walk. Uses libraries node:fs/promises, node:path. Side effects: reads or writes files; makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 11kV, 400kV, 275kV, 220kV, 132kV. - Inputs & outputs: In: data source: NESO data portal; JSON file connection-points.v3.json. Out: JSON file voltages.json; JSON file graph.json. Voltage levels named: 400kV, 275kV, 220kV, 132kV, 11kV. - Signatures: `walk(dir)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: NESO data portal; JSON file connection-points.v3.json]; out [JSON file voltages.json; JSON file graph.json]; crs []; voltages [400kV, 275kV, 220kV, 132kV, 11kV] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Substation Intelligence - File: testcode/sandbox/202609060459/atlas/cartridges/202609060459-substation-intelligence.js (JavaScript, 5400 lines) · role geodesy · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/testcode/blob/a8a215982b13d6e2f6019b40bf0bef5755719773/sandbox/202609060459/atlas/cartridges/202609060459-substation-intelligence.js#L1-L5400 - Page: https://code.globalgrid2050.com/explore-code/s/0453.html#f3 - Synopsis: A JavaScript file in the cartridges folder of Testcode that maps elizabeth line and london underground, using haversine and SHA-256, and uses data from the ventus-grid-engine, data-federation-map-for-GlobalGrid2050-all-repos and spiders repositories. - What it achieves (code): It saves outline (`saveOutline`), reads outline (`readOutline`) and exports outline (`exportOutline`). Its `snapLines` function gives line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged from line features and substation point features (VEDIC: snap line ends to substations). Its code works with 400 kV and 100 MVA. It responds to fullscreenchange, webkitfullscreenchange and click events. - What it does: It maps elizabeth line, london underground, UK metros trams and hs2. Defines 230 functions or classes, including close, open, show, clearValues, validOutline. Side effects: changes the web page (DOM); reads or writes files; makes network requests; uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage 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: 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Inputs & outputs: In: data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json. Out: CSV file gridatlas-polygon-vertices.csv; downloaded file gridatlas-polygon-; downloaded file gridatlas-polygon-vertices.csv; downloaded file gridatlas-; downloaded file globalgrid2050-map-; browser storage (setItem); interactive map; canvas drawing. Coordinate systems named: WGS84 / EPSG:4326. Voltage levels named: 400kV, 275kV, 132kV, 66kV, 33kV, 11kV. - Signatures: `close()`; `open(map, controlId)`; `show(html)`; `clearValues()`; `validOutline(points)`; `saveOutline(points)`; `readOutline()`; `clearOutline()`; `analyzeOutline(points)`; `fail(code,message)`; `orient(a,b,c)`; `on(a,b,p)`; `exportOutline(points, measurements)`; `importOutline(text)`; `createHistory(limit=80)`; `copy(points)`; `deepFreeze(obj)`; `escapeHTML(value)`; `normalizeStatus(status)`; `fmt(n, decimals)`; `haversine(lon1, lat1, lon2, lat2)`; `dLat(lat2 - lat1)`; `_zoneDrawGetRadius()`; `_zoneDrawCirclePoints(lon, lat, radiusKm, n)`; `b(i / n)` (and 15 more) - VEDIC: SNAP LINE ENDS TO SUBSTATIONS (GG2050-VEDIC-000106): GridAtlas / Substations · Geospatial data processing. line_features, substation_point_features -> Line features whose first and last vertices are moved onto the nearest substation point within tolerance; other geometry unchanged. - VEDIC: MEASURE (GG2050-VEDIC-000001): GridAtlas / Geodesy · Mathematics / Spherical geometry. coordinate_pair, coordinate_pair -> distance_km - VEDIC: REPRESENT (GG2050-VEDIC-000002): GridAtlas / Geodesy · Computer science / Geometry processing. geojson_geometry -> coordinate_pair_or_null - domain_stage: experimental · commercial_user: ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [data source: ventus-grid-engine data; data source: data-federation-map-for-globalgrid2050-all-repos data; data source: spiders data; GeoJSON file elizabeth_line.geojson; GeoJSON file london_underground.geojson; GeoJSON file uk_metros_trams.geojson; GeoJSON file hs2.geojson; JSON file style.json]; out [CSV file gridatlas-polygon-vertices.csv; downloaded file gridatlas-polygon-; downloaded file gridatlas-polygon-vertices.csv; downloaded file gridatlas-; downloaded file globalgrid2050-map-; browser storage (setItem); interactive map; canvas drawing]; crs [WGS84 / EPSG:4326]; voltages [400kV, 275kV, 132kV, 66kV, 33kV, 11kV] - Edges: uses 2 estate files (estate-url 2); used by 0; mentioned by 1 ### VEDIC Faraday Orient Experiment - File: vedic-/tools/faraday_orient_experiment.mjs (JavaScript, 82 lines) · role storage · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/vedic-/blob/1c95ee78c2dd3f1f72c0fd5a5f6e247aaf1624e0/tools/faraday_orient_experiment.mjs#L1-L82 - Page: https://code.globalgrid2050.com/explore-code/s/0461.html#f2 - Synopsis: A JavaScript module in the tools folder. It is built from the point step (`point`), the run step (`run`) and the experiment step (`experiment`). - What it achieves (comment): Candidate apparatus for Faraday's existing numbered runner. - What it does: Defines point, run, experiment, input, confirm. Uses libraries node:assert/strict, node:child_process, node:fs, node:os, node:path. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage experimental (path word 'experiment'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Inputs & outputs: In: JSON file coords.json. Coordinate systems named: WGS84 / EPSG:4326. - Signatures: `export experiment()`; `point(longitude, latitude)`; `run(phrase, values, file)`; `input(a, b, unit = 'degrees')`; `confirm(name, actual, predicate)` - domain_stage: experimental · commercial_user: ai_agent · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [JSON file coords.json]; out []; crs [WGS84 / EPSG:4326]; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### VEDIC Replay Faraday Orient - File: vedic-/tools/replay_faraday_orient.py (Python, 57 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/vedic-/blob/1c95ee78c2dd3f1f72c0fd5a5f6e247aaf1624e0/tools/replay_faraday_orient.py#L1-L57 - Page: https://code.globalgrid2050.com/explore-code/s/0461.html#f3 - Synopsis: A Python command-line tool in the tools folder covering build receipt. - What it achieves (comment): Run the VEDIC ORIENT apparatus using the existing Faraday experiment runner. - What it does: Defines main. Uses libraries argparse, os, pathlib, subprocess, sys. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage agent_infra (repository name word 'vedic'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: JSON file build-receipt.json; command-line arguments. - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `main()` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file build-receipt.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Interconnector Economics - File: ventus-grid-engine/engine/interconnector-economics.js (JavaScript, 226 lines) · role energy-data · stage transform - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/interconnector-economics.js#L1-L226 - Page: https://code.globalgrid2050.com/explore-code/s/0461.html#f4 - Synopsis: A JavaScript module in Ventus Grid Engine that works with interconnectors and cables. It is built from the finite step (`finite`), the positive step (`positive`) and the ratio step (`ratio`). - What it achieves (comment): What an interconnector does, and what a price difference across it is worth — in text, deliberately never as a drawing. Its code works with 2 GW. - What it does: It calculates interconnectors and cables. Defines 8 functions or classes, including finite, positive, ratio, flowDirection, energyTransferredGwh. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'interconnector'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors, cables. - Downstream impact: Used directly by 3 files: Grid Engine — Interconnectors Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060305-interconnectors/); Interconnector Economics Proof (ventus-grid-engine); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/). Reached from 4 other entry points, including Homepage V090 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v090.html); Homepage V091 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v091.html); Homepage V093 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v093.html). - Signatures: `export flowDirection({ gbPriceGbpPerMwh, neighbourPriceGbpPerMwh })`; `export energyTransferredGwh({ capacityGw, hours, utilisation })`; `export congestionRentGbp({ capacityGw, hours, utilisation, spreadGbpPerMwh })`; `export fleetCapacity({ links })`; `export shareOfDemand({ transferGw, gbDemandGw })`; `finite(name, v)`; `positive(name, v)`; `ratio(name, v)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 3; mentioned by 0 ### Network Topology - File: ventus-grid-engine/engine/network-topology.js (JavaScript, 319 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/network-topology.js#L1-L319 - Page: https://code.globalgrid2050.com/explore-code/s/0462.html#f1 - Synopsis: A JavaScript module in Ventus Grid Engine that works with physical units (`physicalUnits`) (units: kV, MVA), covering transformers. - What it achieves (comment): It is built from the voltage of helper (`voltageOf`), the band key helper (`bandKey`) and the ratings of helper (`ratingsOf`). PROMOTED from `sources/v9-extracts/network-topology.mjs` (itself extracted verbatim from the LATER of two committed GridAtlas versions, `atlas/modules/202609012245-network-topology.js`, 384 lines — a strict superset of -network-topology.js, 279 lines. Its code works with 100 MVA. - What it does: It lists and searches transformers. Defines 11 functions or classes, including voltageOf, bandKey, ratingsOf, physicalUnits, parametersOf. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'topology'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers. - Downstream impact: Used directly by 5 files: Network Topology Proof (ventus-grid-engine); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); Electrical Distance Proof (ventus-grid-engine); Rating Envelope Proof (ventus-grid-engine); and 1 more. Reached from 1 other entry point, including Genome Workflow (ventus-grid-engine). - Signatures: `export ratingsOf(row)`; `export physicalUnits(records)`; `export parametersOf(row)`; `export index(product)`; `voltageOf(node)`; `bandKey(kv)`; `land(nodeName, entry)`; `siteOf(nodeName)`; `graph()`; `resolve(key)`; `at(key, options)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 5; mentioned by 1 ### Voltage Drop - File: ventus-grid-engine/engine/voltage-drop.js (JavaScript, 217 lines) · role electrical · stage transform - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/engine/voltage-drop.js#L1-L217 - Page: https://code.globalgrid2050.com/explore-code/s/0462.html#f2 - Synopsis: A JavaScript module in Ventus Grid Engine that works with cables. It is built from the positive step (`positive`), the non negative helper (`nonNegative`) and the ratio step (`ratio`). - What it achieves (comment): What a cable run costs in volts and in watts. - What it does: It calculates cables. Defines 8 functions or classes, including positive, nonNegative, ratio, phasesOf, voltageDropVolts. - Why it exists in the grid workflow: Domain stage upstream_foresight (topic 'grid-network'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: cables. - Downstream impact: Used directly by 5 files: Grid Engine — Solar Farm Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060318-solar-farm/); Grid Engine — Voltage Drop Page (globalgrid2050, https://globalgrid2050.com/grid_engine/202609060313-voltage-drop/); Voltage Drop Proof (ventus-grid-engine); Build Graph (ventus-grid-engine, https://ventusltd.github.io/ventus-grid-engine/genome/); and 1 more. Reached from 4 other entry points, including Homepage V090 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v090.html); Homepage V091 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v091.html); Homepage V093 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v093.html). - Signatures: `export voltageDropVolts({ currentA, lengthM, resistanceOhmPerKm, reactanceOhmPerKm = 0, powerFactor, phases = 'three' })`; `export dropPercent({ dropVolts, nominalVolts })`; `export lossesWatts({ currentA, lengthM, resistanceOhmPerKm, phases = 'three' })`; `export annualLossKwh({ peakLossWatts, lossLoadFactor, hours = 8760 })`; `positive(name, v)`; `nonNegative(name, v)`; `ratio(name, v)`; `phasesOf(phases)` - VEDIC: DROP (GG2050-VEDIC-000024): Ventus Grid Engine / voltage-drop · Electrical engineering / Applied mathematics. current_a, length_m, resistance_ohm_per_km, reactance_ohm_per_km, power_factor, phases -> voltage_drop_record - VEDIC: PERCENT (GG2050-VEDIC-000025): Ventus Grid Engine / voltage-drop · Electrical engineering / Applied mathematics. drop_volts, nominal_volts -> drop_percent - VEDIC: LOSS (GG2050-VEDIC-000026): Ventus Grid Engine / voltage-drop · Electrical engineering / Applied mathematics. current_a, length_m, resistance_ohm_per_km, phases -> losses_watts - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 5; mentioned by 0 ### Interconnector Economics Proof - File: ventus-grid-engine/proofs/interconnector-economics.proof.mjs (JavaScript, 166 lines) · role energy-data · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/interconnector-economics.proof.mjs#L1-L166 - Page: https://code.globalgrid2050.com/explore-code/s/0463.html#f1 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine covering interconnectors. It is built from the check step (`check`), the near step (`near`) and the throws step (`throws`). - What it achieves (comment): An edge between two systems, priced. Its code works with 10.3 GW, 1 GW and 7.65 GW. - What it does: It lists and searches interconnectors. Defines check, near, throws. Side effects: starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'interconnector'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors. - Signatures: `check(n, c)`; `near(a, b, tol)`; `throws(fn, p)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of ventus-grid-engine/proofs/electrification-model.proof.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Network Topology Proof - File: ventus-grid-engine/proofs/network-topology.proof.mjs (JavaScript, 234 lines) · role other · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/network-topology.proof.mjs#L1-L234 - Page: https://code.globalgrid2050.com/explore-code/s/0463.html#f2 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine covering transformers, overhead lines (OHL), 400kV and 132kV. It is built from the check step (`check`). - What it achieves (comment): What the network operator publishes about one site, read as a graph, with the one property that made this module worth promoting on its own. Its code works with 400 kV, 132 kV and 9999 MVA. - What it does: Defines check. Side effects: starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'topology'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: transformers, overhead lines (OHL), 400kV, 132kV. - Inputs & outputs: Voltage levels named: 400kV, 132kV. - Signatures: `check(name, condition)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400kV, 132kV] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Voltage Drop Proof - File: ventus-grid-engine/proofs/voltage-drop.proof.mjs (JavaScript, 161 lines) · role electrical · stage unknown · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/proofs/voltage-drop.proof.mjs#L1-L161 - Page: https://code.globalgrid2050.com/explore-code/s/0463.html#f3 - Synopsis: A JavaScript module in the proofs folder of Ventus Grid Engine covering cables. It is built from the check step (`check`), the near step (`near`) and the throws step (`throws`). - What it achieves (comment): Volts and watts along a run. Its code works with 3 kW. - What it does: It lists and searches cables. Defines check, near, throws. Side effects: starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (voltage levels 400V (all 33kV or below)): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 400V. - Inputs & outputs: Voltage levels named: 400V. - Signatures: `check(n, c)`; `near(a, b, tol)`; `throws(fn, p)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [400V] - Edges: uses 1 estate file (import 1); used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Sandbox Boot Trigger Excerpt - File: ventus-grid-engine/sources/deeplink-extracts/receiver/sld-sandbox-boot-trigger.excerpt.js (JavaScript, 43 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/receiver/sld-sandbox-boot-trigger.excerpt.js#L1-L43 - Page: https://code.globalgrid2050.com/explore-code/s/0463.html#f4 - Synopsis: A JavaScript file in the receiver folder of Ventus Grid Engine that works with attempt arrival (`attemptArrival`). - What it achieves (comment): It is built from the arrival has visible outcome helper (`arrivalHasVisibleOutcome`) and the attempt arrival helper (`attemptArrival`). `head_sha` (GridAtlas). - What it does: Defines arrivalHasVisibleOutcome, attemptArrival. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Signatures: `arrivalHasVisibleOutcome()`; `attemptArrival()` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Sandbox Deep Link Plan Excerpt - File: ventus-grid-engine/sources/deeplink-extracts/receiver/sld-sandbox-deep-link-plan.excerpt.js (JavaScript, 37 lines) · role electrical · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/receiver/sld-sandbox-deep-link-plan.excerpt.js#L1-L37 - Page: https://code.globalgrid2050.com/explore-code/s/0463.html#f5 - Synopsis: A JavaScript file in the receiver folder of Ventus Grid Engine. It is built from the deep link plan helper (`deepLinkPlan`). - What it achieves (comment): `head_sha` (GridAtlas). - What it does: It calculates its inputs. Defines deepLinkPlan. - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Signatures: `deepLinkPlan(rawLon, rawLat, rawRepdRef)` - VEDIC: PLAN PROJECT MAP ARRIVAL (GG2050-VEDIC-000104): GridAtlas / Map integration · Map integration. raw_longitude, raw_latitude, raw_repd_ref -> Frozen record of parsed longitude, latitude, trimmed repd_ref, coordinates_usable and route MEASURE_LINK_FIRST, WAIT_FOR_REGISTER or NO_USABLE_POINT. - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Sandbox Layer Control Excerpt - File: ventus-grid-engine/sources/deeplink-extracts/receiver/sld-sandbox-layer-control.excerpt.js (JavaScript, 164 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/receiver/sld-sandbox-layer-control.excerpt.js#L1-L164 - Page: https://code.globalgrid2050.com/explore-code/s/0464.html#f1 - Synopsis: A JavaScript file in the receiver folder of Ventus Grid Engine that works with enable technology layer (`enableTechnologyLayer`). - What it achieves (comment): It is built from the watch for layer controls helper (`watchForLayerControls`), the wait for layer controls helper (`waitForLayerControls`) and the enable technology layer helper (`enableTechnologyLayer`). `head_sha` (GridAtlas). - What it does: Defines watchForLayerControls, waitForLayerControls, enableTechnologyLayer. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. - Signatures: `watchForLayerControls(onReady)`; `waitForLayerControls(budgetMs)`; `enableTechnologyLayer(tech)`; `text(input.closest('label') || input.parentElement)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Sandbox Run Deep Link Excerpt - File: ventus-grid-engine/sources/deeplink-extracts/receiver/sld-sandbox-run-deep-link.excerpt.js (JavaScript, 463 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/receiver/sld-sandbox-run-deep-link.excerpt.js#L1-L463 - Page: https://code.globalgrid2050.com/explore-code/s/0464.html#f2 - Synopsis: A JavaScript file in the receiver folder of Ventus Grid Engine that runs arrival selection (`runArrivalSelection`) (units: MW), covering substations. It runs deep link (`runDeepLink`) and runs arrival selection (`runArrivalSelection`). - What it achieves (comment): `head_sha` (GridAtlas). - What it does: Defines 8 functions or classes, including runDeepLink, framed, honourRequestedZoom, apply, coordsUsable. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: substations. - Signatures: `runDeepLink(expectedArrivalEpoch = null)`; `framed()`; `honourRequestedZoom(map)`; `apply()`; `coordsUsable()`; `enableBoth()`; `arrive()`; `runArrivalSelection(arrival, waitForOwnerCard = false, expectedArrivalEpoch = epoch)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Single-Line Diagram (SLD) Sandbox Technology Vocabulary Excerpt - File: ventus-grid-engine/sources/deeplink-extracts/receiver/sld-sandbox-technology-vocabulary.excerpt.js (JavaScript, 166 lines) · role electrical · stage output · not reached (candidate for review) - Source: https://github.com/Ventusltd/ventus-grid-engine/blob/ad566356a44e006682e956483d569f31ddbb9630/sources/deeplink-extracts/receiver/sld-sandbox-technology-vocabulary.excerpt.js#L1-L166 - Page: https://code.globalgrid2050.com/explore-code/s/0465.html#f1 - Synopsis: A JavaScript file in the receiver folder of Ventus Grid Engine covering grid substations, wind, solar and battery storage (BESS). - What it achieves (comment): It is built from the coverage step (`coverage`), the is project tech helper (`isProjectTech`) and the layer id for bucket helper (`layerIdForBucket`). `head_sha` (GridAtlas). - What it does: Defines coverage, isProjectTech, layerIdForBucket. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: wind, solar, battery storage (BESS). - Inputs & outputs: In: GeoJSON file grid_substations.geojson. - Signatures: `isProjectTech(tech)`; `layerIdForBucket(tech)` - domain_stage: experimental · commercial_user: none · canonical_status: unreached_review · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_substations.geojson]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### Substation - File: worlds-/src/substation.py (Python, 283 lines) · role electrical · stage ingest · entry point - Source: https://github.com/Ventusltd/worlds-/blob/83817c34790800d4af5057629121d83d0d67a332/src/substation.py#L1-L283 - Page: https://code.globalgrid2050.com/explore-code/s/0465.html#f2 - Synopsis: A Python command-line tool in Worlds that reads substations and 33kV. It is built from the bins step (`bins`) and the reference step (`reference`). - What it achieves (comment): 500MW down to one substation, every loop enumerated. Its code works with 500 MW, 33 kV and 0.8 kV. It accepts `--run`. - What it does: It loads substations and 33kV. Defines bins, g, reference, main. Uses libraries argparse, io, json, math, os. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'substation'): upstream engineering foresight over GB transmission and distribution 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, 33kV, 400kV, 1500V, 0.8kV. - Inputs & outputs: In: JSON file substation.json; command-line arguments. Voltage levels named: 400kV, 33kV, 1500V, 0.8kV. - Downstream impact: Used directly by 1 file: Watch Ulp (worlds-). - Signatures: `bins()`; `g(k)`; `reference(idx)`; `main()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: duplicate_candidate (duplicate of worlds-/src/furnace.py) · essay_status: readme_derived - data_contracts: in [JSON file substation.json; command-line arguments]; out []; crs []; voltages [400kV, 33kV, 1500V, 0.8kV] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0