# Journey A: Substation-to-Site Feasibility — GlobalGrid2050 Explore Code (text shard) Attribution: Ventus Ltd — GlobalGrid2050. Cut 2026-12-06T03:07:51+00:00. Generated deterministically from the public Ventusltd repositories by tools/explore/build.py (rules explore-agent-rules-v1); every statement is evidence-keyed and links to the exact commit and lines. Fields per file: Source (GitHub commit URL with line range), Page (Explore Code section), Synopsis, What it achieves (provenance), the four-part block, Signatures, VEDIC, domain_stage, commercial_user, canonical_status, data_contracts, Edges. Rules: https://code.globalgrid2050.com/explore-code/llms.txt (Agent Navigation Protocol) and GRAPH-CONTRACT.md. Journey page: https://code.globalgrid2050.com/explore-code/journeys/a.html. Steps (named in Ventus Ltd's brief): 1. PipelineNews: pipelinenews (found by repository name: pipelinenews); globalgrid2050/uk_renewables_pipeline/202611221850 (found by homepage launch link: "Open Pipeline News" -> https://globalgrid2050.com/uk_renewables_pipeline/202611221850/ (the page itself is not among the code files)) 2. GridAtlas: gridatlas (found by repository name: gridatlas; homepage link "Open GridAtlas" -> https://ventusltd.github.io/gridatlas/atlas/) 3. See Through: kuiper-belt/see-through (found by homepage launch link: "Open See Through" -> https://ventusltd.github.io/kuiper-belt/see-through/; folder name kuiper-belt/see-through) 4. LiDAR: lidar (found by repository name: lidar) Links between steps: - 11 resolved references between PipelineNews and GridAtlas, e.g. pipelinenews/releases/202608312018-pipelinenews/assets/202608312018-atlas-pointer-deep-link.mjs -> gridatlas/atlas/index.html (estate-url); pipelinenews/tools/intelligence/cartridges/atlas-live-handoff/assets/{GEN}-atlas-pointer-deep-link.mjs -> gridatlas/atlas/index.html (estate-url); pipelinenews/tools/intelligence/cartridges/atlas-live-handoff/proof.mjs -> gridatlas/atlas/index.html (estate-url). - 1 resolved reference between GridAtlas and See Through, e.g. kuiper-belt/see-through/202611020012/descent.js -> gridatlas/atlas/index.html (estate-url). - No direct code link found between See Through and LiDAR. ## Step 1: PipelineNews ### PipelineNews — PipelineNews Page - File: pipelinenews/archive/202608261547-pipelinenews/202608251651-PipelineNews/index.html (HTML, 55 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/archive/202608261547-pipelinenews/202608251651-PipelineNews/index.html#L1-L55 - Page: https://code.globalgrid2050.com/explore-code/s/0980.html#f3 - Published at: https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/202608251651-PipelineNews/ - Synopsis: A web page covering the Renewable Energy Planning Database (REPD) register, using SHA-256. Published at https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/202608251651-PipelineNews/. - What it achieves (comment): Pipeline News official-first monitoring across the complete REPD project spine. - What it does: It draws the REPD register. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file 202608251651-PipelineNews.json. Out: web page. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/202608251651-PipelineNews/. - domain_stage: experimental · commercial_user: none · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file 202608251651-PipelineNews.json]; out [web page]; crs []; voltages [] - Edges: uses 4 estate files (link 2, stylesheet 1, script-src 1); used by 0; mentioned by 0 ### PipelineNews — News v7 Page - File: pipelinenews/archive/202608261547-pipelinenews/newsv7/index.html (HTML, 195 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/archive/202608261547-pipelinenews/newsv7/index.html#L1-L195 - Page: https://code.globalgrid2050.com/explore-code/s/0988.html#f10 - Published at: https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/newsv7/ - Synopsis: A web page that reads inputs for news, county and sort projects (units: MW), covering the Renewable Energy Planning Database (REPD) register, solar and battery storage (BESS). Published at https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/newsv7/. - What it achieves (comment): UK Renewables News V7. Its code works with 1 MW. - What it does: It draws the REPD register, solar and battery storage (BESS). Uses libraries styles/v7.css?v=newsv7. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: the REPD register, solar, battery storage (BESS). - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 2 files: PipelineNews — PipelineNews Page (pipelinenews, https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/202608251651-PipelineNews/); Check News v7 (pipelinenews). It is itself an entry point, published at https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/newsv7/. - 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 26 estate files (link 17, stylesheet 7, script-src 2); used by 2; mentioned by 0 ### PipelineNews — News v1 Page - File: pipelinenews/archive/202608261547-pipelinenews/newsv1/index.html (HTML, 170 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/archive/202608261547-pipelinenews/newsv1/index.html#L1-L170 - Page: https://code.globalgrid2050.com/explore-code/s/0983.html#f10 - Published at: https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/newsv1/ - Synopsis: A web page that reads inputs for news, county and sort projects (units: MW), covering the Renewable Energy Planning Database (REPD) register, solar and battery storage (BESS). Published at https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/newsv1/. - What it achieves (comment): UK Renewables News V1. Its code works with 1 MW. - What it does: It draws the REPD register, solar and battery storage (BESS). Uses libraries styles/v7.css?v=newsv1. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: the REPD register, solar, battery storage (BESS). - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 3 files: PipelineNews — PipelineNews Page (pipelinenews, https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/202608251651-PipelineNews/); Check News v1 (pipelinenews); PipelineNews — News v7 Page (pipelinenews, https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/newsv7/). It is itself an entry point, published at https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/newsv1/. - 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 24 estate files (link 16, stylesheet 6, script-src 2); used by 3; mentioned by 0 ### Releases — PipelineNews Page - File: pipelinenews/releases/202611132345-pipelinenews/index.html (HTML, 406 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/releases/202611132345-pipelinenews/index.html#L1-L406 - Page: https://code.globalgrid2050.com/explore-code/s/1028.html#f1 - Published at: https://ventusltd.github.io/pipelinenews/releases/202611132345-pipelinenews/ - Synopsis: A web page covering the Renewable Energy Planning Database (REPD) register, solar, postcodes and battery storage (BESS), and uses data from the GridAtlas, ventus-grid-engine and data-federation-map-for-GlobalGrid2050-all-repos repositories. Published at https://ventusltd.github.io/pipelinenews/releases/202611132345-pipelinenews/. - What it achieves (comment): Current verified Atlas V9 deep-link successor. Its code works with 1 MW. - What it does: It draws the REPD register, solar, postcodes and battery storage (BESS). Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'pipelinenews'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, postcodes, battery storage (BESS). - Inputs & outputs: In: DuckDB queries; form fields (user input). Out: web page. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/pipelinenews/releases/202611132345-pipelinenews/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [DuckDB queries; form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 19 estate files (link 16, stylesheet 2, script-src 1); used by 0; mentioned by 0 ### V8 Candidate - File: pipelinenews/releases/202608262141-v8-candidate.html (HTML, 164 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/releases/202608262141-v8-candidate.html#L1-L164 - Page: https://code.globalgrid2050.com/explore-code/s/1023.html#f1 - Published at: https://ventusltd.github.io/pipelinenews/releases/202608262141-v8-candidate.html - Synopsis: A web page in PipelineNews that reads inputs for news, county and sort projects, covering the Renewable Energy Planning Database (REPD) register, solar and battery storage (BESS). Published at https://ventusltd.github.io/pipelinenews/releases/202608262141-v8-candidate.html. - What it achieves (comment): UK Renewables Pipeline V8 FOUNDATION CANDIDATE. Its code works with 1 MW. - What it does: It draws the REPD register, solar and battery storage (BESS). Uses libraries styles/202608261927-v7-foundation.css, styles/202608262141-v8-foundation.css, vendor/202608261927-chart-umd.min.js. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'pipelinenews'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, battery storage (BESS). - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/pipelinenews/releases/202608262141-v8-candidate.html. - 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 21 estate files (link 14, stylesheet 5, script-src 2); used by 0; mentioned by 0 ### PipelineNews — Releases Page - File: pipelinenews/releases/202609010836-index.html (HTML, 164 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/releases/202609010836-index.html#L1-L164 - Page: https://code.globalgrid2050.com/explore-code/s/1024.html#f4 - Published at: https://ventusltd.github.io/pipelinenews/releases/202609010836-index.html - Synopsis: A web page covering the Renewable Energy Planning Database (REPD) register, solar and battery storage (BESS), and uses data from the GridAtlas repository. Published at https://ventusltd.github.io/pipelinenews/releases/202609010836-index.html. - What it achieves (comment): UK Renewables Pipeline V9.6.2. Its code works with 1 MW. - What it does: It draws the REPD register, solar and battery storage (BESS). Uses libraries styles/202609010836-v7-foundation.css, vendor/202609010836-chart-umd.min.js. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'pipelinenews'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, battery storage (BESS). - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: Used directly by 1 file: Performance Audit (pipelinenews). Reached from 1 other entry point, including PipelineNews Performance Audit Workflow (pipelinenews). It is itself an entry point, published at https://ventusltd.github.io/pipelinenews/releases/202609010836-index.html. - 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 20 estate files (link 13, stylesheet 5, script-src 2); used by 1; mentioned by 0 ### PipelineNews — PipelineNews Page - File: pipelinenews/archive/202608261547-pipelinenews/202608260159-pipelinenews/index.html (HTML, 164 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/archive/202608261547-pipelinenews/202608260159-pipelinenews/index.html#L1-L164 - Page: https://code.globalgrid2050.com/explore-code/s/0980.html#f4 - Published at: https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/202608260159-pipelinenews/ - Synopsis: A web page that reads inputs for news, county and sort projects (units: MW), covering the Renewable Energy Planning Database (REPD) register, solar and battery storage (BESS). Published at https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/202608260159-pipelinenews/. - What it achieves (name): Its code works with 1 MW. - What it does: It draws the REPD register, solar and battery storage (BESS). Uses libraries styles/v7.css?v=9.6.2, vendor/chart.umd.min.js. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: the REPD register, solar, battery storage (BESS). - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/pipelinenews/archive/202608261547-pipelinenews/202608260159-pipelinenews/. - 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 22 estate files (link 15, stylesheet 5, script-src 2); used by 0; mentioned by 0 ### V8 Fast Candidate - File: pipelinenews/releases/202609010719-v8-fast-candidate.html (HTML, 191 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/releases/202609010719-v8-fast-candidate.html#L1-L191 - Page: https://code.globalgrid2050.com/explore-code/s/1024.html#f3 - Published at: https://ventusltd.github.io/pipelinenews/releases/202609010719-v8-fast-candidate.html - Synopsis: A web page in PipelineNews that reads inputs for news, county and sort projects, covering the Renewable Energy Planning Database (REPD) register, solar and battery storage (BESS). Published at https://ventusltd.github.io/pipelinenews/releases/202609010719-v8-fast-candidate.html. - What it achieves (comment): PipelineNews five-topic sector intelligence candidate. Its code works with 1 MW. - What it does: It draws the REPD register, solar and battery storage (BESS). Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'pipelinenews'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, battery storage (BESS). - Inputs & outputs: In: DuckDB queries; form fields (user input). Out: web page. - Downstream impact: Used directly by 40 files: Resolve GridAtlas Pointer (pipelinenews); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage Versions — GlobalGrid2050 Page (globalgrid2050, https://globalgrid2050.com/homepage_versions/202608291526-globalgrid2050/); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html); and 36 more. Reached from 85 other entry points, including GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://ventusltd.github.io/pipelinenews/releases/202609010719-v8-fast-candidate.html. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [DuckDB queries; form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 17 estate files (link 14, stylesheet 2, script-src 1); used by 40; mentioned by 0 ### Build Pages - File: pipelinenews/atman/202608262014-build-pages.py (Python, 1960 lines) · role ingest · stage ingest · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/atman/202608262014-build-pages.py#L1-L1960 - Page: https://code.globalgrid2050.com/explore-code/s/0997.html#f1 - Synopsis: A Python command-line tool in the atman folder of PipelineNews that reads atlas link and atlas current, using SHA-256 from the GridAtlas repository. - What it achieves (comment): It reads JSON (`read_json`), verifies record (`verify_record`) and verifies record commit (`verify_record_at_commit`). Validate and stage the immutable modular PipelineNews Pages release. It accepts `--root`, `--generation` and `--stage`. - What it does: It loads atlas link and atlas current. Defines 42 functions or classes, including RuntimeAssets, __init__, handle_starttag, require, sha256. Uses libraries __future__, argparse, datetime, hashlib, html.parser. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'pipelinenews'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: gridatlas data; JSON file -release-manifest.json; JSON file 202608261737-release-v9-5-1.json; JSON file atlas-link-manifest.json; JSON file build-manifest.json; JSON file release-manifest.json; JSON file live-set.json; JSON file current-v4.json. - Downstream impact: Used directly by 7 files: Audit Atlas V8 Deep Link Quarantine (pipelinenews); Extend Pages Atlas Link V2 (pipelinenews); Repair Pages Historical Source Attestation (pipelinenews); Test Pages Promotion Tooling (pipelinenews); and 3 more. Reached from 1 other entry point, including PipelineNews Pages Workflow (pipelinenews). - Signatures: `class RuntimeAssets`; `__init__(self)`; `handle_starttag(self, tag: str, attrs: list[tuple[str, str | None]])`; `require(condition: bool, message: str)`; `sha256(path: Path)`; `read_json(path: Path)`; `repository_path(root: Path, relative: str)`; `web_path(document: str, reference: str)`; `verify_record(root: Path, record: dict, label: str)`; `verify_record_at_commit(root: Path, commit: str, record: dict, label: str)`; `select_release(root: Path, requested: str)`; `run_compiler(root: Path, manifest: dict, generation: str)`; `data_generation(manifest: dict)`; `validate_html_and_modules(root: Path, manifest: dict, generation: str)`; `validate_data(root: Path, manifest: dict, generation: str)`; `validate_release(root: Path, requested: str, *, replay_sources: bool = True)`; `_atlas_link_v2_outputs(root: Path, folder_relative: str)`; `_promotion_receiver_record(receiver: dict, key: str, prefix: str)`; `validate_pages_promotion_wrapper_v1(root: Path, release_id: str, generation: str, folder_relative: str, folder: Path, release_manifest_relative: str, rel...)`; `validate_current_atlas_link_v2(root: Path, release_id: str, generation: str, folder_relative: str, folder: Path, release_manifest_relative: str, rel...)`; `validate_pages_promotion_source_pointer(pointer: dict, timestamp_folder: dict)`; `validate_pages_promotion_pointer(root: Path, timestamp_folder: dict)`; `validate_current_or_predecessor_pointer(root: Path, timestamp_folder: dict)`; `validate_timestamp_folder_release(root: Path, release_id: str)`; `validate_live_pointer(root: Path, timestamp_folder: dict | None)` (and 15 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; JSON file -release-manifest.json; JSON file 202608261737-release-v9-5-1.json; JSON file atlas-link-manifest.json; JSON file build-manifest.json; JSON file release-manifest.json; JSON file live-set.json; JSON file current-v4.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 7; mentioned by 0 ### Release Builder - File: pipelinenews/tools/intelligence/release_builder.py (Python, 1084 lines) · role automation · stage output · entry point - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/tools/intelligence/release_builder.py#L1-L1084 - Page: https://code.globalgrid2050.com/explore-code/s/1050.html#f1 - Synopsis: A Python command-line tool in the intelligence folder of PipelineNews that reads cartridge and the Renewable Energy Planning Database (REPD) register, using SHA-256. - What it achieves (comment): It normalises lf (`normalise_to_lf`), refreshes sha256 sidecars (`refresh_sha256_sidecars`) and refreshes build manifest (`refresh_build_manifest`). PipelineNews release builder — one timestamp, one discovery cartridge. It accepts `--list`, `--from` and `--cartridge`. - What it does: It loads cartridge and the REPD register. Defines 27 functions or classes, including utc_stamp, sha256_file, sha256_published, published_bytes, published_size. Uses libraries argparse, atexit, contextlib, datetime, hashlib. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'pipelinenews'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register. - Inputs & outputs: In: JSON file 202608291447-registry.json; JSON file build-manifest.json; JSON file cartridge.json; JSON file release-manifest.json; command-line arguments. - Downstream impact: Used directly by 6 files: Shift (pipelinenews); Build 30x Ledger (pipelinenews); Run Pages Candidate Gate (pipelinenews); PipelineNews Build Intelligence Release Workflow (pipelinenews); and 2 more. Reached from 1 other entry point, including PipelineNews Pages Routing Candidate Workflow (pipelinenews). - Signatures: `utc_stamp()`; `sha256_file(path)`; `sha256_published(path)`; `published_bytes(path)`; `published_size(path)`; `read(p)`; `write(p, t)`; `walk(root)`; `normalise_to_lf(root)`; `refresh_sha256_sidecars(target)`; `refresh_build_manifest(target, release_id)`; `visit(node)`; `apply_once(text, old, new, label, expect=1)`; `releases()`; `cmd_list()`; `cartridge_keys(release_id)`; `cmd_applicable(parent_id)`; `_canonical_sha(value)`; `_inside(target, rel)`; `_spine_totals(projects)`; `apply_registry_core(target, reg, core, sub)`; `check_registry_core(target, reg)`; `cmd_build(parent_id, cartridge_name, gen, atlas_target)`; `_discard_partial()`; `sub(text)` (and 2 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 202608291447-registry.json; JSON file build-manifest.json; JSON file cartridge.json; JSON file release-manifest.json; command-line arguments]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 6; mentioned by 0 ### Sources - File: pipelinenews/news/bbc/sources.py (Python, 17 lines) · role transform · stage transform - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/news/bbc/sources.py#L1-L17 - Page: https://code.globalgrid2050.com/explore-code/s/1022.html#f6 - Synopsis: A Python module in the bbc folder of PipelineNews that works with feed urls (`feed_urls`). - What it achieves (comment): BBC feed inventory and request limits. - What it does: It calculates its inputs. Defines feed_urls. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'pipelinenews'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. README: "`bbc/sources.py` defines the feed sections and input limits." - Downstream impact: Used directly by 5 files: BBC RSS (pipelinenews); Articles (pipelinenews); Collector (pipelinenews); Test BBC RSS (pipelinenews); and 1 more. Reached from 2 other entry points, including PipelineNews BBC RSS Discovery Workflow (pipelinenews); PipelineNews Coverage Contract Workflow (pipelinenews). - Signatures: `feed_urls()` - 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 ### JavaScript State - File: pipelinenews/releases/javascript/202608261927-state.js (JavaScript, 23 lines) · role other · stage unknown - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/releases/javascript/202608261927-state.js#L1-L23 - Page: https://code.globalgrid2050.com/explore-code/s/1028.html#f2 - Synopsis: A JavaScript module in PipelineNews covering major project news, solar and battery storage (BESS). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'pipelinenews'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar, battery storage (BESS). - Inputs & outputs: In: JSON file 202608261927-major-project-news-v9-5-1.json. - Downstream impact: Used directly by 5 files: JavaScript Projects V8 Windowed (pipelinenews); JavaScript Projects V8 Foundation (pipelinenews); JavaScript Newspaper V9 5 1 (pipelinenews); JavaScript Newspaper V9 6 2 (pipelinenews); and 1 more. Reached from 6 other entry points, including PipelineNews — Releases Page (pipelinenews, https://ventusltd.github.io/pipelinenews/releases/202609010836-index.html); V8 Candidate (pipelinenews, https://ventusltd.github.io/pipelinenews/releases/202608262141-v8-candidate.html); PipelineNews Performance Audit Workflow (pipelinenews). - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file 202608261927-major-project-news-v9-5-1.json]; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 5; mentioned by 0 ### Attribution Ledger - File: pipelinenews/archive/202608261547-pipelinenews/attributionv1/modules/attribution-ledger.mjs (JavaScript, 90 lines) · role transform · stage transform · not reached (candidate for review) - Source: https://github.com/Ventusltd/pipelinenews/blob/45c944c8640a9d7ae65edb51d66032ba204f3f46/archive/202608261547-pipelinenews/attributionv1/modules/attribution-ledger.mjs#L1-L90 - Page: https://code.globalgrid2050.com/explore-code/s/0981.html#f9 - Synopsis: A JavaScript module in PipelineNews that appends attributions (`appendAttributions`) and builds charge fixture proof (`buildChargeFixtureProof`), using SHA-256. It normalises attribution (`normaliseAttribution`), appends attributions (`appendAttributions`) and builds charge fixture proof (`buildChargeFixtureProof`). - What it achieves (name): Defines `sha256`, `assertNoPersonKeys`, `normaliseAttribution` and 3 more. - What it does: It calculates its inputs. Defines 6 functions or classes, including sha256, assertNoPersonKeys, normaliseAttribution, appendAttributions, attributionsFromRegisteredCharge. Uses libraries node:crypto. - Why it exists in the grid workflow: Domain stage experimental (path word 'archive'): 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: Discrepancy View (pipelinenews); Register Ingest (pipelinenews); Build Charge Fixture Proof (pipelinenews); Check Batch5 Attribution (pipelinenews). - Signatures: `export normaliseAttribution(input)`; `export appendAttributions(existing, incoming)`; `export attributionsFromRegisteredCharge(project, charge)`; `export buildChargeFixtureProof(fixture)`; `sha256(value)`; `assertNoPersonKeys(value, path = "row")` - 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 4; mentioned by 0 ## Step 2: GridAtlas ### GridAtlas — Atlas Page - File: gridatlas/atlas/index.html (HTML, 124 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/index.html#L1-L124 - Page: https://code.globalgrid2050.com/explore-code/s/0519.html#f6 - Published at: https://gridatlas.globalgrid2050.com/atlas/ - Synopsis: A web page that works with escape attribute (`escapeAttribute`) and sha256 hex (`sha256Hex`), using SHA-256. Published at https://gridatlas.globalgrid2050.com/atlas/. - What it achieves (readme): It is built from the invariant step (`invariant`), the escape attribute helper (`escapeAttribute`) and the sha256 hex helper (`sha256Hex`). The README says: `atlas/index.html` is the stable composer. It reads `./current.json`. - What it does: It draws its content. Defines invariant, escapeAttribute, sha256Hex, fail. Uses libraries ${escapeAttribute(blobUrl)}. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. README: "`atlas/index.html` is the stable composer." - Inputs & outputs: In: JSON file current.json. Out: web page. - Downstream impact: Used directly by 242 files: Pilot (globalgrid2050, https://globalgrid2050.com/testcode/wafer-development-environment/202609190330-cable-cross-sections/); Links (globalgrid2050); Build N1 Deep Link Candidates (code-generator); Single-Line Diagram (SLD) Mobile Arrival Card Browser (gridatlas); and 238 more. Reached from 317 other entry points, including Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); Pilot (cosmic, https://ventusltd.github.io/cosmic/tools/explore/theme/pilot.html); Iterations — 32 Spider and Galaxy Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/32-spider-and-galaxy/). It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/. - Signatures: `invariant(condition, message)`; `escapeAttribute(value)`; `sha256Hex(bytes)`; `fail(error)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out [web page]; crs []; voltages [] - Edges: uses 0 estate files; used by 242; mentioned by 1 ### Releases — Atlas V9 Page - File: gridatlas/atlas/releases/202608292311-atlas-v9/index.html (HTML, 271 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/releases/202608292311-atlas-v9/index.html#L1-L271 - Page: https://code.globalgrid2050.com/explore-code/s/0607.html#f2 - Published at: https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/ - Synopsis: A web page in GridAtlas that draws grid 400kV, grid 275kV, grid 220kV and grid 132kV. Published at https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/. - What it achieves (comment): UK Region v8 (Experimental). Its code works with 100 kW, 11 kV and 132 kV. - What it does: It draws grid 400kV, grid 275kV, grid 220kV and grid 132kV. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. README: "`atlas/index.html` is the stable composer." - Inputs & outputs: In: GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. Out: web page. Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV. - Downstream impact: Used directly by 8 files: GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage V030 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v030.html); Homepage V031 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v031.html); Homepage V032 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v032.html); and 4 more. Reached from 87 other entry points, including GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson]; out [web page]; crs []; voltages [400kV, 275kV, 220kV, 132kV, 66kV, 11kV] - Edges: uses 5 estate files (script-src 4, stylesheet 1); used by 8; mentioned by 0 ### Labs — Lightning Grid Page - File: gridatlas/atlas/labs/lightning-grid/index.html (HTML, 116 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/labs/lightning-grid/index.html#L1-L116 - Page: https://code.globalgrid2050.com/explore-code/s/0520.html#f3 - Published at: https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/ - Synopsis: A web page in the atlas folder of GridAtlas that reads inputs for flash, radius and kV, covering solar and substations. Published at https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/. - What it achieves (comment): Lightning → Grid Scenario Lab. Its code works with 132 kV, 275 kV and 400 kV. - What it does: It draws solar, substations and the REPD register. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar, substations, the REPD register, 400kV, 275kV, 132kV. README: "`atlas/index.html` is the stable composer." - Inputs & outputs: In: form fields (user input). Out: web page. Voltage levels named: 400kV, 275kV, 132kV. - Downstream impact: It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [400kV, 275kV, 132kV] - Edges: uses 2 estate files (link 1, script-src 1); used by 0; mentioned by 0 ### Atlas — Codex Page - File: gridatlas/atlas/codex/202609020010/index.html (HTML, 31 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/codex/202609020010/index.html#L1-L31 - Page: https://code.globalgrid2050.com/explore-code/s/0519.html#f4 - Published at: https://gridatlas.globalgrid2050.com/atlas/codex/202609020010/ - Synopsis: A web page in GridAtlas that reads inputs for lon, lat and Renewable Energy Planning Database (REPD) ref. Published at https://gridatlas.globalgrid2050.com/atlas/codex/202609020010/. - What it achieves (comment): Codex computation lab. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage agent_infra (path word 'codex'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). README: "`atlas/index.html` is the stable composer." - Inputs & outputs: In: form fields (user input). Out: web page. - Downstream impact: It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/codex/202609020010/. - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [form fields (user input)]; out [web page]; crs []; voltages [] - Edges: uses 2 estate files (stylesheet 1, script-src 1); used by 0; mentioned by 0 ### Labs — Lightning Grid - File: gridatlas/atlas/labs/lightning-grid/app.mjs (JavaScript, 277 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/labs/lightning-grid/app.mjs#L1-L277 - Page: https://code.globalgrid2050.com/explore-code/s/0520.html#f1 - Published at: https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/ - Synopsis: A JavaScript module in the atlas folder of GridAtlas that draws UK lightning and uses data from the lightning and PipelineNews repositories. Served with the page at https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/. - What it achieves (comment): It maps status (`mapStatus`), downloads JSON (`downloadJSON`) and gets assets (`getAssets`). Standalone Lightning → existing MAP/nearest Grid Engine integration LAB. It responds to change and click events. - What it does: It draws UK lightning, grid substations and solar. Defines 18 functions or classes, including el, pretty, date, mapStatus, node. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar. - Inputs & outputs: In: data source: lightning data; data source: pipelinenews data; GeoJSON file uk_lightning.geojson; GeoJSON file grid_substations.geojson. - Downstream impact: Used directly by 1 file: Labs — Lightning Grid Page (gridatlas, https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/). It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/labs/lightning-grid/. - Signatures: `el(id)`; `pretty(n)`; `date(t)`; `mapStatus(msg)`; `node(tag,value,cls='')`; `clear(id)`; `line(target,what)`; `status(msg)`; `fail(message)`; `downloadJSON(url)`; `features(data)`; `getAssets()`; `currentFlash()`; `setObservation(f)`; `display(ctx,assets)`; `scenario()`; `inspect()`; `start()` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: lightning data; data source: pipelinenews data; GeoJSON file uk_lightning.geojson; GeoJSON file grid_substations.geojson]; out []; crs []; voltages [] - Edges: uses 2 estate files (import 2); used by 1; mentioned by 0 ### MapLibre Worker Bridge - File: gridatlas/atlas/releases/202608292311-atlas-v9/202608292311-maplibre-worker-bridge.js (JavaScript, 223 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/releases/202608292311-atlas-v9/202608292311-maplibre-worker-bridge.js#L1-L223 - Page: https://code.globalgrid2050.com/explore-code/s/0607.html#f1 - Published at: https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/ - Synopsis: A JavaScript file in the atlas folder of GridAtlas that reads grid 400kV, grid 275kV and grid 220kV, using SHA-256 from the data-GridAtlas repository. Served with the page at https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/. - What it achieves (name): It maps ready key (`mapReadyKey`), gets manifest (`getManifest`) and gets runtime (`getRuntime`). Defines `invariant`, `requestPath`, `mapReadyKey` and 8 more. - What it does: It loads grid 400kV, grid 275kV, grid 220kV and grid 132kV. Defines 11 functions or classes, including invariant, requestPath, mapReadyKey, legacyStem, sha256Hex. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: data source: data-gridatlas data; GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. - Downstream impact: Used directly by 1 file: Releases — Atlas V9 Page (gridatlas, https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/). Reached from 95 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V030 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v030.html). It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/releases/202608292311-atlas-v9/. - Signatures: `invariant(condition, message)`; `requestPath(input)`; `mapReadyKey(pathname)`; `legacyStem(pathname)`; `sha256Hex(bytes)`; `getManifest()`; `getRuntime()`; `resolvePartition(pathname)`; `artifact(manifest.artifacts || [])`; `rowObject(row)`; `queryOnDemand(pathname)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [data source: data-gridatlas data; GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson]; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 1; mentioned by 0 ### GridAtlas — Index Page - File: gridatlas/index.html (HTML, 2 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/index.html#L1-L2 - Page: https://code.globalgrid2050.com/explore-code/s/0619.html#f3 - Published at: https://gridatlas.globalgrid2050.com/ - Synopsis: A web page. Published at https://gridatlas.globalgrid2050.com/. - What it does: It draws its content. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: Out: web page. - Downstream impact: Used directly by 32 files: Build N1 Deep Link Candidates (code-generator); Single-Line Diagram (SLD) Mobile Arrival Card Browser (gridatlas); GlobalGrid2050 — Atlas V9 Page (globalgrid2050, https://globalgrid2050.com/202608300453-atlas-v9/); Prove Federated Deep Links (gridatlas); and 28 more. Reached from 27 other entry points, including Code Generator — Substation Finder Page (code-generator, https://ventusltd.github.io/code-generator/apps/substation-finder/); Pilot (cosmic, https://ventusltd.github.io/cosmic/tools/explore/theme/pilot.html); GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/). It is itself an entry point, published at https://gridatlas.globalgrid2050.com/. - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 1 estate file (link 1); used by 32; mentioned by 1 ### Preview — Lightning Page - File: gridatlas/atlas/preview/lightning/index.html (HTML, 115 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/atlas/preview/lightning/index.html#L1-L115 - Page: https://code.globalgrid2050.com/explore-code/s/0603.html#f2 - Published at: https://gridatlas.globalgrid2050.com/atlas/preview/lightning/ - Synopsis: A web page in the atlas folder of GridAtlas that works with escape attribute (`escapeAttribute`) and sha256 hex (`sha256Hex`), using SHA-256. Published at https://gridatlas.globalgrid2050.com/atlas/preview/lightning/. - What it achieves (readme): It is built from the invariant step (`invariant`), the escape attribute helper (`escapeAttribute`) and the sha256 hex helper (`sha256Hex`). The README says: `atlas/index.html` is the stable composer. It reads `./current.json`. - What it does: It draws its content. Defines invariant, escapeAttribute, sha256Hex, fail. Uses libraries ${escapeAttribute(blobUrl)}, ' + escapeAttribute(weatherBlob) + '. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. README: "`atlas/index.html` is the stable composer." - Inputs & outputs: In: JSON file current.json. Out: web page. - Downstream impact: It is itself an entry point, published at https://gridatlas.globalgrid2050.com/atlas/preview/lightning/. - Signatures: `invariant(condition, message)`; `escapeAttribute(value)`; `sha256Hex(bytes)`; `fail(error)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out [web page]; crs []; voltages [] - Edges: uses 0 estate files; used by 0; mentioned by 0 ### GridAtlas — Release - File: gridatlas/tools/release/lib.mjs (JavaScript, 213 lines) · role automation · stage ingest - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/release/lib.mjs#L1-L213 - Page: https://code.globalgrid2050.com/explore-code/s/0667.html#f2 - Synopsis: A JavaScript module in the tools folder that derives current (`deriveCurrent`), cleans tree (`cleanTree`) and runs gates (`runGates`), using SHA-256. - What it achieves (comment): It parses args (`parseArgs`), reads text (`readText`) and derives current (`deriveCurrent`). Shared helpers for `tools/release/release-generation.mjs` and `tools/release/rollback-generation.mjs`. - What it does: It loads data. Defines 23 functions or classes, including registeredLoaderOf, pointerSlots, die, parseArgs, run. Uses libraries node:fs, node:path, node:child_process, node:crypto, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: JSON file current.json. - Downstream impact: Used directly by 18 files: Build (gridatlas); Acceptance (gridatlas); Check Live (gridatlas); Check Served (gridatlas); and 14 more. Reached from 15 other entry points, including GridAtlas Cartridge Proof Workflow (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas); GridAtlas Verify Live Workflow (gridatlas). - Signatures: `export registeredLoaderOf(buffer)`; `export pointerSlots(pointer)`; `export die(tool, message)`; `export parseArgs(argv, spec)`; `export run(cmd, args, { cwd = ROOT, allowFail = false, input } = {})`; `export git(...args)`; `export gitOk(...args)`; `export gitBlob(rev, relative)`; `export sha256(buffer)`; `export sha256File(relative)`; `export readText(relative)`; `export exists(relative)`; `export deriveCurrent(manifestText)`; `export rerootForPreview(currentText)`; `export cleanTree()`; `export changedPaths()`; `export isTracked(relative)`; `export parityFailRows()`; `export runGates({ expectGeneration, proofs = [], parityBaseline = [], rollbackTo = null })`; `export printGates(rows)`; `export commitWithMessage(message)`; `export trailerBlock(trailers)`; `record(gate, ok, detail, out)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [JSON file current.json]; out []; crs []; voltages [] - Edges: uses 6 estate files (script-call 6); used by 18; mentioned by 0 ### GridAtlas — Scope - File: gridatlas/tools/scope/lib.mjs (JavaScript, 308 lines) · role storage · stage output - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/scope/lib.mjs#L1-L308 - Page: https://code.globalgrid2050.com/explore-code/s/0689.html#f3 - Synopsis: A JavaScript module in the tools folder that normalises newlines (`normaliseNewlines`) and parses scalar (`parseScalar`) and front matter (`parseFrontMatterText`), using SHA-256. - What it achieves (name): It normalises newlines (`normaliseNewlines`), parses scalar (`parseScalar`) and serialises scalar (`serialiseScalar`). Defines `registeredLoader`, `slotsUsed`, `invariant` and 25 more. - What it does: It loads data. Defines 28 functions or classes, including registeredLoader, slotsUsed, invariant, normaliseNewlines, parseScalar. Uses libraries node:fs, node:path, node:crypto. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Downstream impact: Used directly by 11 files: CI PR Gate (gridatlas); Lightning Cartridge (gridatlas); Loader Equivalence Proof (gridatlas); Offtakers Cartridge (gridatlas); and 7 more. Reached from 28 other entry points, including GridAtlas Cartridge Proof Workflow (gridatlas); GridAtlas Next Version Builders Workflow (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export registeredLoader(filePath)`; `export slotsUsed(current)`; `export invariant(condition, message)`; `export normaliseNewlines(value)`; `export parseFrontMatterText(text, file = '')`; `export readFrontMatter(filePath)`; `export writeFrontMatter(filePath, patch)`; `export writeText(filePath, content)`; `export writeJson(filePath, value)`; `export readJson(filePath)`; `export listScopeDocuments()`; `export masterDocument(documents = listScopeDocuments())`; `export numberedScopes(documents = listScopeDocuments())`; `export activeScope(documents = listScopeDocuments())`; `export sha256Buffer(bytes)`; `export sha256File(filePath)`; `export sha256PublishedFile(filePath)`; `export londonGeneration(date = new Date())`; `export nextGeneration(previous)`; `export scopeFileName(generation, scope, slug)`; `export scopeMarkdown({ generation, scope, parent, title, body })`; `export githubOutput(values)`; `export relativePosix(filePath)`; `parseScalar(raw)`; `serialiseScalar(value)` (and 3 more) - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 11; mentioned by 0 ### Serve - File: gridatlas/tools/journey/serve.mjs (JavaScript, 20 lines) · role ingest · stage ingest - Source: https://github.com/Ventusltd/gridatlas/blob/98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5/tools/journey/serve.mjs#L1-L20 - Page: https://code.globalgrid2050.com/explore-code/s/0631.html#f9 - Synopsis: A JavaScript module in the journey folder of GridAtlas. It creates preview server (`createPreviewServer`). - What it achieves (comment): Read-only local preview server, serving the same LF text bytes as GitHub Pages. - What it does: It loads data. Defines createPreviewServer. Uses libraries node:fs, node:path, node:http, node:url. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. - Inputs & outputs: In: command-line arguments. - Downstream impact: Used directly by 10 files: UKPN Paired Browser (gridatlas); UKPN Secondary Browser (gridatlas); Browser Test (gridatlas); Vicinity Entry Browser (gridatlas); and 6 more. Reached from 2 other entry points, including GridAtlas Cartridge Proof Workflow (gridatlas); GridAtlas PR File Size Guard Workflow (gridatlas). - Signatures: `export createPreviewServer(port=0)` - domain_stage: upstream_foresight · commercial_user: IPP_developer, ICP_grid_engineer · canonical_status: production_core · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs []; voltages [] - Edges: uses 1 estate file (import 1); used by 10; mentioned by 0 ## Step 3: See Through ### Kuiper Belt — See Through Page - File: kuiper-belt/see-through/index.html (HTML, 14 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/kuiper-belt/blob/26fba12ab1b5bab8e71934ab86c58273e5f32682/see-through/index.html#L1-L14 - Page: https://code.globalgrid2050.com/explore-code/s/1545.html#f3 - Published at: https://ventusltd.github.io/kuiper-belt/see-through/ - Synopsis: A web page. Published at https://ventusltd.github.io/kuiper-belt/see-through/. - What it achieves (readme): The README says: Download the newest dated folder and open `index.html` in a web browser. - What it does: It draws its content. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet). - Why it exists in the grid workflow: Domain stage agent_infra (repository name word 'kuiper'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). README: "Download the newest dated folder and open `index.html` in a web browser." - Inputs & outputs: Out: browser storage (setItem); web page. - Downstream impact: Used directly by 11 files: SatNav — Scope Page (satnav, https://ventusltd.github.io/satnav/scope/); Apps Registry (kuiper-belt); Repokuiper Galaxy (cosmic); Test Agentdocs (cosmic); and 7 more. Reached from 12 other entry points, including Build Homepage Release Candidate Workflow (globalgrid2050-homepage); PR Checks Workflow (globalgrid2050-homepage); Pages Workflow (globalgrid2050-homepage). It is itself an entry point, published at https://ventusltd.github.io/kuiper-belt/see-through/. - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out [browser storage (setItem); web page]; crs []; voltages [] - Edges: uses 0 estate files; used by 11; mentioned by 1 ### Kuiper Belt — See Through Page - File: kuiper-belt/see-through/202610050513/index.html (HTML, 24 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/kuiper-belt/blob/26fba12ab1b5bab8e71934ab86c58273e5f32682/see-through/202610050513/index.html#L1-L24 - Page: https://code.globalgrid2050.com/explore-code/s/1543.html#f2 - Published at: https://ventusltd.github.io/kuiper-belt/see-through/202610050513/ - Synopsis: A web page. Published at https://ventusltd.github.io/kuiper-belt/see-through/202610050513/. - What it achieves (readme): The README says: Download the newest dated folder and open `index.html` in a web browser. It responds to error events. - What it does: It draws its content. Uses libraries vendor/maplibre-gl.css, grid-data.js, vendor/maplibre-gl.js. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage agent_infra (repository name word 'kuiper'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). README: "Download the newest dated folder and open `index.html` in a web browser." - Inputs & outputs: Out: web page. - Downstream impact: It is itself an entry point, published at https://ventusltd.github.io/kuiper-belt/see-through/202610050513/. - Signatures: `m(window.KGModules||[])` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out [web page]; crs []; voltages [] - Edges: uses 6 estate files (script-src 5, stylesheet 1); used by 0; mentioned by 0 ### Descent - File: kuiper-belt/see-through/202611020012/descent.js (JavaScript, 1231 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/kuiper-belt/blob/26fba12ab1b5bab8e71934ab86c58273e5f32682/see-through/202611020012/descent.js#L1-L1231 - Page: https://code.globalgrid2050.com/explore-code/s/1544.html#f1 - Synopsis: A JavaScript file in the see through folder of Kuiper Belt that maps wafer meta and sat s, using Web Mercator and haversine, and uses data from the GridAtlas repository. - What it achieves (comment): It loads script (`loadScript`), decodes lines (`decodeLines`) and places ui (`placeUI`). `descent.js` SEE THROUGH, a LEARN THE KUIPER module (id 'descent'). Its code works with 400 kV and 132 kV. It reads `../../cosmos/wafer-meta.json`. It responds to pointerdown, pointerenter and pointerleave events. - What it does: It maps wafer meta, sat s and l sat. Defines 84 functions or classes, including loadScript, ensureGridData, merc, unmercLat, decode. 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 agent_infra (repository name word 'kuiper'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). Domain terms in the code: 400kV, 132kV, 76kV, 27kV, 22kV, 8kV. - Inputs & outputs: In: data source: gridatlas data; JSON file style.json; GeoJSON file kv.geojson; JSON file wafer-meta.json; browser storage (getItem). Out: interactive map; canvas drawing. Coordinate systems named: Web Mercator / EPSG:3857. Voltage levels named: 400kV, 132kV, 76kV, 27kV, 22kV, 8kV. - Downstream impact: Used directly by 1 file: Kuiper Belt — See Through Page (kuiper-belt, https://ventusltd.github.io/kuiper-belt/see-through/202610050513/). - Signatures: `SCRIPT_SRC(document.currentScript && document.currentScript.src)`; `loadScript(src, cb)`; `ensureGridData(cb)`; `merc(lon, lat, out, i)`; `unmercLat(y)`; `decode()`; `arr(s)`; `decodeLines()`; `voltText(i)`; `opText(i)`; `nameOf(i)`; `keyOfSub(i)`; `bearingOf(p)`; `fmt(x)`; `km(i, j)`; `audio()`; `ping(semi, gain)`; `fallTone(speed)`; `el(tag, css, text, parent)`; `clamp(x, a, b)`; `smooth(x)`; `ease(v)`; `on(t, ev, fn, opt)`; `layout()`; `placeUI()` (and 15 more) - VEDIC: SWITCH (GG2050-VEDIC-000033): See Through / Kuiper · Computer science / Interactive visualisation. view, user_flag -> selected_view - VEDIC: RISE (GG2050-VEDIC-000034): See Through / Kuiper · Computer science / Interactive visualisation. site, map_state, scene_module -> scene_or_refusal - VEDIC: SEARCH (GG2050-VEDIC-000030): See Through / Kuiper · Computer science / Interactive visualisation. query, substation_names -> match_count_and_indices - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; JSON file style.json; GeoJSON file kv.geojson; JSON file wafer-meta.json; browser storage (getItem)]; out [interactive map; canvas drawing]; crs [Web Mercator / EPSG:3857]; voltages [400kV, 132kV, 76kV, 27kV, 22kV, 8kV] - Edges: uses 2 estate files (estate-url 2); used by 1; mentioned by 0 ### Model - File: kuiper-belt/see-through/202610050356/model.js (JavaScript, 490 lines) · role electrical · stage transform · entry point - Source: https://github.com/Ventusltd/kuiper-belt/blob/26fba12ab1b5bab8e71934ab86c58273e5f32682/see-through/202610050356/model.js#L1-L490 - Page: https://code.globalgrid2050.com/explore-code/s/1542.html#f1 - Synopsis: A JavaScript module in the see through folder of Kuiper Belt that works with substations and transformers. - What it achieves (comment): It is built from the kV col helper (`kvCol`), the plant step (`plant`) and the kV list helper (`kvList`). SeeModel.substation(record, data) -> model. No site-specific code: the same function runs for all 5,800 rows (`tools/run-all.mjs`) and in the page (`see3d.js`). Its code works with 220 kV, 275 kV and 33 kV. - What it does: It calculates substations and transformers. Defines 31 functions or classes, including kvCol, plant, EST_HALF, kvList, classOf. - Why it exists in the grid workflow: Domain stage agent_infra (repository name word 'kuiper'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). Domain terms in the code: substations, transformers, 275kV, 220kV, 66kV, 33kV. - Inputs & outputs: Voltage levels named: 275kV, 220kV, 66kV, 33kV. - Downstream impact: Used directly by 1 file: Kuiper Belt — See Through Page (kuiper-belt, https://ventusltd.github.io/kuiper-belt/see-through/202610050513/). - Signatures: `PF(typeof module !== 'undefined' && module.exports)`; `kvCol(kv)`; `plant(kv)`; `EST_HALF(kv)`; `kvList(v)`; `classOf(kv)`; `Builder()`; `close(ring)`; `frameOf(ring)`; `inRing(x, y, R)`; `nearestOnSeg(px, py, ax, ay, bx, by)`; `ringDist(x, y, R)`; `ringNearest(x, y, R)`; `segCross(a, b, c, d)`; `t((c[0] - a[0]) * s1 - (c[1] - a[1]) * s0)`; `fence(B, ring, dashed, G)`; `s0(run + len * k / n)`; `column(B, x, y, ux, uy, w, z0, z1, G)`; `truss(B, a, b, z, d, G)`; `box(B, cx, cy, ux, uy, hl, hw, z0, h)`; `sagLine(B, A, Bp, sag, n, s0, s1, GA, GB)`; `lattice(g)`; `half(z)`; `sq(z)`; `attach(g)` (and 11 more) - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [275kV, 220kV, 66kV, 33kV] - Edges: uses 1 estate file (require 1); used by 1; mentioned by 0 ### Kuiper Law - File: kuiper-belt/see-through/202611020012/kuiper-law.js (JavaScript, 123 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/kuiper-belt/blob/26fba12ab1b5bab8e71934ab86c58273e5f32682/see-through/202611020012/kuiper-law.js#L1-L123 - Page: https://code.globalgrid2050.com/explore-code/s/1545.html#f2 - Synopsis: A JavaScript module in the see through folder of Kuiper Belt that places many (`placeMany`) and converts to screen (`toScreen`). - What it achieves (comment): It places many (`placeMany`) and is built from the key place helper (`keyPlace`) and the place step (`place`). `kuiper-law.js` THE ONE LAW OF THE REAL KUIPER, lifted VERBATIM from the live page. - What it does: It draws its content. Defines 6 functions or classes, including keyPlace, place, placeMany, shader, toScreen. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage agent_infra (path word 'kuiper'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). README: "kuiper-law.js holds the frozen value (63,340,120,796) used when that file cannot be read." - Downstream impact: Used directly by 1 file: Kuiper Belt — See Through Page (kuiper-belt, https://ventusltd.github.io/kuiper-belt/see-through/202610050513/). - Signatures: `keyPlace(k)`; `place(key)`; `placeMany(k0, n, out)`; `shader(k0, d)`; `u_k0lo(k0 % 4294967296)`; `toScreen(x, y, cam, W, H)`; `homeZoom(boxW, boxH, space)` - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: duplicate_candidate (duplicate of kuiper-belt/learn-the-kuiper/202610042225/kuiper-law.js) · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (estate-url 1); used by 1; mentioned by 0 ### Pf - File: kuiper-belt/see-through/202610050356/pf.js (JavaScript, 219 lines) · role geodesy · stage output · entry point - Source: https://github.com/Ventusltd/kuiper-belt/blob/26fba12ab1b5bab8e71934ab86c58273e5f32682/see-through/202610050356/pf.js#L1-L219 - Page: https://code.globalgrid2050.com/explore-code/s/1543.html#f1 - Synopsis: A JavaScript module in the see through folder of Kuiper Belt that steps lon, converts to local and mercator and calculates great-circle distances and planar distances, using OSTN15 and Helmert. - What it achieves (comment): It places key (`placeKey`), wires map (`wireToMap`) and maps wire (`mapToWire`). Classic-script copy of the simulator's `place-frame.mjs` (GlobalGrid2050 origin/main, `energy-transition-simulator/202609282123/place-frame.mjs`), made by tools: every line below the wrapper is the original with only the word 'export' removed. - What it does: Defines 31 functions or classes, including ecef, geodetic, axes, dot, frame. Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage agent_infra (repository name word 'kuiper'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326, ETRS89 / EPSG:4258. - Downstream impact: Used directly by 2 files: Model (kuiper-belt); Kuiper Belt — See Through Page (kuiper-belt, https://ventusltd.github.io/kuiper-belt/see-through/202610050513/). - Signatures: `ecef(lat, lon, h = 0)`; `geodetic(X, Y, Z)`; `axes(lat, lon)`; `dot(a, b)`; `frame(anchor)`; `stepLon(latRow)`; `anchorFromKey(key)`; `placeKey(lat, lon)`; `w((lon + 180) % 360 + 360)`; `enu(anchor, lat, lon, h = 0)`; `fromEnu(anchor, x, y, z = 0)`; `toLocal(anchor, lat, lon, h = 0)`; `fromLocal(anchor, x, y, z = 0)`; `mercatorX(lng)`; `mercatorY(lat)`; `lngFromMercatorX(x)`; `latFromMercatorY(y)`; `circumferenceAtLatitude(lat)`; `mercatorZ(alt, lat)`; `mercatorScale(lat)`; `meterInMercator(lat)`; `toMercator(lat, lon, alt = 0)`; `fromMercator(x, y, z = 0)`; `wireToMap(anchor, x, y, z = 0)`; `mapToWire(anchor, mx, my, mz = 0)` (and 7 more) - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: duplicate_candidate (duplicate of energy-transition-simulator/prototype/place-frame.mjs) · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid); WGS84 / EPSG:4326; ETRS89 / EPSG:4258]; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### Plain - File: kuiper-belt/see-through/202610050609/plain.css (CSS, 44 lines) · role render · stage output · entry point - Source: https://github.com/Ventusltd/kuiper-belt/blob/26fba12ab1b5bab8e71934ab86c58273e5f32682/see-through/202610050609/plain.css#L1-L44 - Page: https://code.globalgrid2050.com/explore-code/s/1543.html#f3 - Synopsis: A style sheet in the see through folder of Kuiper Belt. - What it achieves (comment): ST1: presentation only. Keep drawing colours, input handlers and audio. - What it does: Side effects: changes the web page (DOM). - Why it exists in the grid workflow: Domain stage agent_infra (repository name word 'kuiper'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Downstream impact: Used directly by 1 file: Kuiper Belt — See Through Page (kuiper-belt, https://ventusltd.github.io/kuiper-belt/see-through/202610050513/). - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### See3d - File: kuiper-belt/see-through/202610050609/see3d.js (JavaScript, 389 lines) · role interaction · stage output · entry point - Source: https://github.com/Ventusltd/kuiper-belt/blob/26fba12ab1b5bab8e71934ab86c58273e5f32682/see-through/202610050609/see3d.js#L1-L389 - Page: https://code.globalgrid2050.com/explore-code/s/1543.html#f4 - Synopsis: A JavaScript file in the see through folder of Kuiper Belt that maps substations footprints odbl and see DEM, and uses data from OpenStreetMap (Overpass) and the GridAtlas repository. - What it achieves (comment): It gets JSON (`getJSON`), fits zoom (`fitZoom`) and reads grounds (`readGrounds`). HOW IT IS DRAWN (the simulator overlay's method, reused): - The map is the porthole's MapLibre GL JS 4.7.1 map (`descent.js`). It responds to pointerdown, pointermove and pointerup events. - What it does: It maps substations footprints odbl and see DEM. Defines 27 functions or classes, including getJSON, footprints, lines, osmDetail, others. Side effects: changes the web page (DOM); makes network requests. - Why it exists in the grid workflow: Domain stage agent_infra (repository name word 'kuiper'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). - Inputs & outputs: In: data source: gridatlas data; data source: OpenStreetMap (Overpass); JSON file substations-footprints.odbl.json; GeoJSON file kv.geojson; JSON file index.json. Out: interactive map. - Downstream impact: Used directly by 1 file: Kuiper Belt — See Through Page (kuiper-belt, https://ventusltd.github.io/kuiper-belt/see-through/202610050513/). - Signatures: `SCRIPT(document.currentScript && document.currentScript.src)`; `getJSON(u, ms)`; `footprints()`; `lines()`; `osmDetail(rec, ring)`; `others(all, lat, lon, km)`; `program(gl)`; `sh(t, s)`; `ease(x)`; `pack(m)`; `groundArray(m, H)`; `mm(args && args.defaultProjectionData && args.defaultProjectionData.mainMatrix)`; `x(t - G.t0)`; `gl2(G.kind === 'busbar' ? 1 + 0.9 * X.flash : 1)`; `fadeNow()`; `enter(o)`; `fitZoom(lat, metres)`; `tipTo(lon, lat, pitch, zoom, ms, bearing)`; `build(data, how)`; `elevation(lon, lat)`; `readGrounds(now)`; `tick(now)`; `move(dt)`; `f(K.w || K.arrowup ? 1 : 0)`; `r(K.d ? 1 : 0)` (and 12 more) - domain_stage: agent_infra · commercial_user: ai_agent · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [data source: gridatlas data; data source: OpenStreetMap (Overpass); JSON file substations-footprints.odbl.json; GeoJSON file kv.geojson; JSON file index.json]; out [interactive map]; crs []; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0 ## Step 4: LiDAR ### LiDAR Build Site - File: lidar/src/build_site.py (Python, 84 lines) · role transform · stage transform · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/src/build_site.py#L1-L84 - Page: https://code.globalgrid2050.com/explore-code/s/0699.html#f1 - Synopsis: A Python command-line tool that works with LiDAR terrain. It is built from the snapped box helper (`snapped_box`) and the build step (`build`). - What it achieves (comment): Build a .ght tile set for one site from the EA LiDAR Composite DTM 1m. It accepts `--name`, `--e` and `--n`. - What it does: It calculates LiDAR terrain. Defines snapped_box, build, main. Uses libraries argparse, math, os, sys, time. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: command-line arguments. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: It is itself an entry point (Python CLI); no other file was found loading it. - Signatures: `snapped_box(e, n, size)`; `build(name, e, n, size, out_dir=None, cache_dir=None, log=print)`; `main(argv=None)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [command-line arguments]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 3 estate files (import 3); used by 0; mentioned by 0 ### Test Earthworks - File: lidar/tests/test_earthworks.py (Python, 111 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/tests/test_earthworks.py#L1-L111 - Page: https://code.globalgrid2050.com/explore-code/s/0701.html#f2 - Synopsis: A test in the tests folder of LiDAR that checks LiDAR Earthworks Pair. It is built from the plane step (`plane`), the close step (`close`) and the one step (`one`). - What it achieves (comment): Tests for `src/earthworks_pair.py` on synthetic planes with known volumes. It writes `source.json`. - What it does: It tests its inputs. Defines 9 functions or classes, including plane, close, one, test_flat_straight, test_sloped_along_and_across. Uses libraries inspect, json, math, os, pathlib. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: Out: JSON file source.json. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `plane(xp, a=100.0, gx=0.0, gy=0.0, n=301)`; `close(v, want, rel=2e-3)`; `one(G, *a)`; `test_flat_straight()`; `test_sloped_along_and_across()`; `test_bent_flat_and_pappus()`; `test_platform_on_plane()`; `test_sweep_receipt(tmp_path)`; `test_bounded_by_seconds(tmp_path)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out [JSON file source.json]; crs []; voltages [] - Edges: uses 1 estate file (sys-path 1); used by 0; mentioned by 0 ### Test Roundtrip - File: lidar/tests/test_roundtrip.py (Python, 104 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/tests/test_roundtrip.py#L1-L104 - Page: https://code.globalgrid2050.com/explore-code/s/0701.html#f4 - Synopsis: A test in the tests folder of LiDAR that checks LiDAR Cut Tiles and LiDAR Geotiff Read, using EPSG:27700. It is built from the synthetic step (`synthetic`). - What it achieves (comment): Synthetic grid -> .ght tiles -> decode -> heights within 5 mm. - What it does: It tests its inputs. Defines synthetic, test_header_layout, test_row_order_south_to_north, test_roundtrip_within_5mm, test_shared_edges_match. Uses libraries json, os, struct, sys, tempfile. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: In: JSON file tiles.json. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `synthetic(size=512, seed=7)`; `test_header_layout()`; `test_row_order_south_to_north()`; `test_roundtrip_within_5mm()`; `test_shared_edges_match()` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file tiles.json]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 2 estate files (sys-path 2); used by 0; mentioned by 0 ### LiDAR Earthworks Pair - File: lidar/src/earthworks_pair.py (Python, 350 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/src/earthworks_pair.py#L1-L350 - Page: https://code.globalgrid2050.com/explore-code/s/0699.html#f3 - Synopsis: A Python command-line tool that reads earthworks receipt, using SHA-256. It is built from the ground class (`Ground`), the ground from helper (`ground_from`) and the routes step (`routes`). - What it achieves (comment): How much spoil does a trench (or a platform) make, counted two ways? It accepts `--tiles`, `--seed` and `--trenches`. - What it does: It loads earthworks receipt. Defines 16 functions or classes, including Ground, __init__, h, ground_from, routes. Uses libraries argparse, hashlib, json, math, os. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. README: "Derive slope and aspect tiles (`src/slope_tiles.py`) and earthworks volumes for trenches and platforms (`src/earthworks_pair.py`), each checked the same way." - Inputs & outputs: In: JSON file earthworks_receipt.json; command-line arguments. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: Test Earthworks (lidar). - Signatures: `class Ground`; `__init__(self, grid, oe, on, sp, xp)`; `h(self, x, y)`; `ground_from(tiles_dir, xp)`; `routes(e0, n0, heading, L1, theta, R, L2, w, d, oe=0.0, on=0.0)`; `centre(P, k, s, xp, piece=None)`; `positron(P, G, ks)`; `candidates(P, ks)`; `claim(P, k, X, Y, xp)`; `electron(P, G, ks)`; `trench_pair(P, G)`; `inside_poly(X, Y, vx, vy, xp)`; `platform_pair(poly_bng, level, G)`; `draw(rng, n, G, margin=5.0)`; `sweep(tiles_dir, seed=SEED, trenches=4000, seconds=20.0, batch=250, use_gpu=True, witness=3)`; `main(argv=None)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file earthworks_receipt.json; command-line arguments]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 1 estate file (import 1); used by 1; mentioned by 0 ### Test Cable Sweep - File: lidar/tests/test_cable_sweep.py (Python, 174 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/tests/test_cable_sweep.py#L1-L174 - Page: https://code.globalgrid2050.com/explore-code/s/0035.html#f2 - Synopsis: A test in the tests folder of LiDAR that checks LiDAR Cable Sweep. It is built from the ground step (`ground`), the grid step (`grid`) and the routes step (`routes`). - What it achieves (comment): Tests for `src/cable_sweep.py` on synthetic ground with known lengths. Its code works with 132 kV and 33 kV. It writes `source.json`. - What it does: It tests cables. Defines 12 functions or classes, including ground, grid, routes, close, test_min_radius_rule. Uses libraries inspect, json, math, os, pathlib. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 132kV, 33kV. - Inputs & outputs: Out: JSON file source.json. Voltage levels named: 132kV, 33kV. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `ground(xp, z)`; `grid(n=401)`; `routes(rows, R=3.0, depth=1.0)`; `close(v, want, rel=1e-6)`; `test_min_radius_rule()`; `test_flat_plan_lengths()`; `test_plane_straight_and_arc()`; `test_ridge_kink_on_grid_line()`; `test_short_legs_shrink_fillet()`; `hilly(tmp_path, n=601, seed=5)`; `test_sweep_hilly(tmp_path)`; `test_bounded_by_seconds(tmp_path)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out [JSON file source.json]; crs []; voltages [132kV, 33kV] - Edges: uses 1 estate file (sys-path 1); used by 0; mentioned by 0 ### Test Pair - File: lidar/tests/test_pair.py (Python, 167 lines) · role test · stage output · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/tests/test_pair.py#L1-L167 - Page: https://code.globalgrid2050.com/explore-code/s/0701.html#f3 - Synopsis: A test in the tests folder of LiDAR that checks LiDAR Pair GPU, using SHA-256. It makes tiles (`make_tiles`) and checks clean (`check_clean`). - What it achieves (comment): Tests for `src/pair_gpu.py` against a synthetic hilly grid. - What it does: It tests its inputs. Defines 16 functions or classes, including make_tiles, run, poke, test_header_layout, test_clean_tiles_annihilate. Uses libraries hashlib, inspect, json, os, pathlib. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: In: JSON file tiles.json. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `make_tiles(tmp_path)`; `run(d, gpu=False, **kw)`; `poke(path, row, col, delta_q=0, header=None)`; `test_header_layout(tiles)`; `test_clean_tiles_annihilate(tiles)`; `check_clean(r)`; `test_gpu_and_cpu_agree(tiles)`; `test_seeded_repeatable(tiles)`; `test_check_points_retest(tiles)`; `test_bad_sample_is_a_photon(tiles)`; `test_edge_mismatch_is_a_photon(tiles)`; `test_header_lie_is_a_photon(tiles)`; `test_nodata_counted_not_hidden(tiles)`; `test_receipt_and_tiles_json(tiles)`; `test_bounded_by_seconds(tiles)`; `test_main_synth(tmp_path)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file tiles.json]; out []; crs []; voltages [] - Edges: uses 1 estate file (sys-path 1); used by 0; mentioned by 0 ### Test Slope - File: lidar/tests/test_slope.py (Python, 119 lines) · role test · stage ingest · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/tests/test_slope.py#L1-L119 - Page: https://code.globalgrid2050.com/explore-code/s/0702.html#f1 - Synopsis: A test in the tests folder of LiDAR that checks LiDAR Slope Tiles, using SHA-256. It is built from the plane step (`plane`). - What it achieves (comment): Tests for `src/slope_tiles.py` on synthetic ground. - What it does: It tests its inputs. Defines 8 functions or classes, including plane, test_plane_has_no_photons_and_right_slope, test_class_edges, test_aspect_octants_point_downslope, test_crease_makes_photons_beside_the_crease_only. Uses libraries hashlib, inspect, json, os, pathlib. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Downstream impact: It is itself an entry point (test); no other file was found loading it. - Signatures: `plane(pe, pn, n=65)`; `test_plane_has_no_photons_and_right_slope()`; `test_class_edges()`; `test_aspect_octants_point_downslope()`; `test_crease_makes_photons_beside_the_crease_only()`; `test_nan_marks_neighbours_nodata()`; `test_tiles_roundtrip_and_index(tmp)`; `test_decode_refuses_damage()` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs []; voltages [] - Edges: uses 1 estate file (sys-path 1); used by 0; mentioned by 0 ### LiDAR Cable Sweep - File: lidar/src/cable_sweep.py (Python, 454 lines) · role electrical · stage output · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/src/cable_sweep.py#L1-L454 - Page: https://code.globalgrid2050.com/explore-code/s/0034.html#f2 - Synopsis: A Python command-line tool that reads cable sweep receipt, cables and 132kV, using SHA-256. It loads cables (`load_cables`), routes meta (`route_meta`) and writes receipt (`write_receipt`). - What it achieves (comment): How long is a buried cable over real ground, counted two ways? Its code works with 132 kV and 33 kV. It accepts `--tiles`, `--seed` and `--routes`. - What it does: It loads cable sweep receipt, cables and 132kV. Defines 21 functions or classes, including to_host, Ground, __init__, h, ground_from. Uses libraries argparse, hashlib, json, math, os. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage sub33kv_design (path word 'cable'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 132kV, 33kV. - Inputs & outputs: In: JSON file cable_sweep_receipt.json; JSON file cables.json; JSON file source.json; command-line arguments. Voltage levels named: 132kV, 33kV. - Downstream impact: Used directly by 1 file: Test Cable Sweep (lidar). - Signatures: `to_host(a)`; `class Ground`; `__init__(self, grid, oe, on, sp, xp)`; `h(self, x, y)`; `ground_from(tiles_dir, xp)`; `min_radius(cables, kv, csa=CSA, when="installation")`; `plan(x0, y0, h0, legs, turns, R)`; `arc_point(x, y, h, kap, u, xp)`; `ragged(xp, counts)`; `electron(P, depth, G, ds=DS_E)`; `_F(u, xp)`; `crossings(P, G)`; `_stable_argsort_int(a, xp)`; `positron(P, G)`; `draw(rng, n, G, rule, margin=3.0, leg=(3.0, 300.0))`; `pair(D, G)`; `load_cables(path)`; `sweep(tiles_dir, seed=SEED, routes=40000, seconds=60.0, batch=2000, use_gpu=True, witness=32, cables=None, cables_path=CABLES)`; `route_meta(D, R, i, G)`; `write_receipt(tiles_dir, r)`; `main(argv=None)` - domain_stage: sub33kv_design · commercial_user: EPC_contractor, ICP_grid_engineer · canonical_status: unknown · essay_status: readme_derived - data_contracts: in [JSON file cable_sweep_receipt.json; JSON file cables.json; JSON file source.json; command-line arguments]; out []; crs []; voltages [132kV, 33kV] - Edges: uses 0 estate files; used by 1; mentioned by 0 ### LiDAR Cut Tiles - File: lidar/src/cut_tiles.py (Python, 154 lines) · role storage · stage output - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/src/cut_tiles.py#L1-L154 - Page: https://code.globalgrid2050.com/explore-code/s/0699.html#f2 - Synopsis: A Python module that works with cut grid (`cut_grid`), using EPSG:27700 and SHA-256. It encodes tile (`encode_tile`), decodes tile (`decode_tile`) and loads tiles (`load_tiles`). - What it achieves (comment): Cut a south-up 1 m height grid into .ght tiles, and decode them again. - What it does: It loads data. Defines encode_tile, decode_tile, cut_grid, load_tiles. Uses libraries hashlib, json, os, struct, datetime. Side effects: reads or writes files. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: In: JSON file tiles.json. Out: JSON file. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 2 files: LiDAR Build Site (lidar); Test Roundtrip (lidar). - Signatures: `encode_tile(heights, origin_e, origin_n)`; `decode_tile(blob)`; `cut_grid(grid, origin_e, origin_n, out_dir, site_name, source="")`; `load_tiles(out_dir)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file tiles.json]; out [JSON file]; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### LiDAR Geotiff Read - File: lidar/src/geotiff_read.py (Python, 119 lines) · role ingest · stage transform - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/src/geotiff_read.py#L1-L119 - Page: https://code.globalgrid2050.com/explore-code/s/0700.html#f1 - Synopsis: A Python module that masks nodata (`mask_nodata`), using EPSG:27700. It reads geotiff (`read_geotiff`) and is built from the mosaic step (`mosaic`). - What it achieves (comment): Read EA DTM GeoTIFF chunks with tifffile and mosaic them into one grid. - What it does: Defines _geokeys, _raw_nodata, read_geotiff, mask_nodata, mosaic. Uses libraries logging, numpy, tifffile. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. - Inputs & outputs: Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 2 files: LiDAR Build Site (lidar); Test Roundtrip (lidar). - Signatures: `_geokeys(tags)`; `_raw_nodata(tags)`; `read_geotiff(path)`; `mask_nodata(z, nodata=None)`; `mosaic(paths, e0, n0, width, height)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: unknown · essay_status: readme_derived - data_contracts: in []; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### LiDAR Pair GPU - File: lidar/src/pair_gpu.py (Python, 371 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/src/pair_gpu.py#L1-L371 - Page: https://code.globalgrid2050.com/explore-code/s/0700.html#f2 - Synopsis: A Python command-line tool that reads pair receipt and tiles, using SHA-256. It reads ght (`read_ght`), writes ght (`write_ght`) and loads source (`load_source`). - What it achieves (comment): Height tile pair: do the .ght tiles say what the float64 source said? It accepts `--tiles`, `--source` and `--seed`. - What it does: It loads pair receipt and tiles. Defines 16 functions or classes, including read_ght, write_ght, synth, load_source, bilinear. Uses libraries argparse, glob, hashlib, json, math. Side effects: reads or writes files; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. README: "Check on the GPU with two independent formulations and CPU witnesses (`src/pair_gpu.py`): every stored height against the source, heights between samples two ways, and shared tile edges." - Inputs & outputs: In: JSON file pair_receipt.json; JSON file source.json; JSON file tiles.json; command-line arguments. Out: JSON file tiles.json. - Downstream impact: Used directly by 2 files: LiDAR Earthworks Pair (lidar); Test Pair (lidar). Reached from 1 other entry point, including Test Earthworks (lidar). - Signatures: `read_ght(path)`; `write_ght(path, h, oe, on, spacing_mm)`; `synth(out, tiles_e=2, tiles_n=2, spacing_m=1.0, oe=400000, on=300000, seed=SEED)`; `load_source(npy)`; `bilinear(xp, g, gx, gy)`; `corners(H, t, u, v, xp)`; `two_lerps(h00, h10, h01, h11, fx, fy)`; `polynomial(h00, h10, h01, h11, fx, fy)`; `weights(h00, h10, h01, h11, fx, fy)`; `worst(xp, err, info, k=KEEP)`; `merge(kept, new)`; `to_host(a)`; `run(tiles_dir, source_npy, seed=SEED, points=1 << 22, seconds=20.0, batch=1 << 20, use_gpu=True)`; `check_points(tiles, Hh, oe, on, sp, rng)`; `write_receipt(tiles_dir, receipt)`; `main(argv=None)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [JSON file pair_receipt.json; JSON file source.json; JSON file tiles.json; command-line arguments]; out [JSON file tiles.json]; crs []; voltages [] - Edges: uses 0 estate files; used by 2; mentioned by 0 ### LiDAR Fetch Wcs - File: lidar/src/fetch_wcs.py (Python, 88 lines) · role storage · stage output · entry point - Source: https://github.com/Ventusltd/lidar/blob/2ddf7257e4847e5f387e03aaecbc1cc425c4e387/src/fetch_wcs.py#L1-L88 - Page: https://code.globalgrid2050.com/explore-code/s/0699.html#f4 - Synopsis: A Python command-line tool that fetches LiDAR terrain, using EPSG:27700 from Environment Agency. It fetches one (`fetch_one`) and fetches box (`fetch_box`). - What it achieves (comment): Fetch Environment Agency LiDAR Composite DTM 1m GeoTIFFs over WCS 2.0.1. - What it does: It fetches LiDAR terrain. Defines coverage_url, chunk_ranges, fetch_one, fetch_box. Uses libraries os, sys, time, urllib.request. Side effects: reads or writes files; makes network requests; starts processes. - Why it exists in the grid workflow: Domain stage site_feasibility (repository name word 'lidar'): substation-to-site feasibility (terrain, LiDAR and connection evidence before design), a journey named in Ventus Ltd's brief. Domain terms in the code: LiDAR terrain. - Inputs & outputs: In: data source: Environment Agency; command-line arguments. Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid). - Downstream impact: Used directly by 1 file: LiDAR Build Site (lidar). - Signatures: `coverage_url(e0, e1, n0, n1)`; `chunk_ranges(lo, hi, step=CHUNK_M)`; `fetch_one(e0, e1, n0, n1, cache_dir, retries=3)`; `fetch_box(e0, e1, n0, n1, cache_dir, log=print)` - domain_stage: site_feasibility · commercial_user: IPP_developer, landowner_planner · canonical_status: supporting_data · essay_status: readme_derived - data_contracts: in [data source: Environment Agency; command-line arguments]; out []; crs [OSGB36 / EPSG:27700 (British National Grid)]; voltages [] - Edges: uses 0 estate files; used by 1; mentioned by 0