GLOBALGRID2050 / EXPLORE CODE

Part of: Explore Code / Electricity markets and data pipelines / globalgrid2050 / uk_renewables_pipeline/202609081016/tests

Check V9 11 and 6 more files

A JavaScript module in the tests folder of GlobalGrid2050 that tests interconnectors, the Renewable Energy Planning Database (REPD) register and cables, using SHA-256.

682 lines of JavaScript and Shell and CSS from globalgrid2050, in 7 files. Topic: Electricity markets and data pipelines. Section 934 of 2044.

Cut 2026-12-06T03:07:51+00:00. A copy for reading; the repository at the stated commit is the source.

In the State lines below, domain stage, users and canonical status are rule-based first approximations from code and path evidence (rules explore-agent-rules-v1), not observed facts: the rules.

In this section

  1. Check V9 9 test · globalgrid2050 / uk_renewables_pipeline/202609081016/tests/check_v9_9.mjs lines 1–142
  2. Run V9 9 test · globalgrid2050 / uk_renewables_pipeline/202609081016/tests/run_v9_9.sh lines 1–59
  3. V9 10 render · globalgrid2050 / uk_renewables_pipeline/202609082224/styles/v9-10.css lines 1–42
  4. Check V9 10 test · globalgrid2050 / uk_renewables_pipeline/202609082224/tests/check_v9_10.mjs lines 1–143
  5. Run V9 10 test · globalgrid2050 / uk_renewables_pipeline/202609082224/tests/run_v9_10.sh lines 1–68
  6. Check V9 11 test · globalgrid2050 / uk_renewables_pipeline/202610290230/tests/check_v9_11.mjs lines 1–156
  7. Run V9 11 test · globalgrid2050 / uk_renewables_pipeline/202610290230/tests/run_v9_11.sh lines 1–72

Check V9 9

A JavaScript module in the tests folder of GlobalGrid2050 that tests interconnectors, the Renewable Energy Planning Database (REPD) register and cables, using SHA-256.

testglobalgrid2050 / uk_renewables_pipeline/202609081016/tests/check_v9_9.mjs · lines 1–142 of 142 · version 2026-09-08 10:16

What it does
It tests interconnectors, the REPD register and cables. Defines text, json, sha256. Uses libraries node:assert/strict, node:crypto, node:fs/promises, node:url, node:path. Side effects: reads or writes files.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors, the REPD register, cables.
Inputs & outputs
In: JSON file interconnectors.v9.8.json; JSON file interconnectors_manifest.json; JSON file build_manifest.json.
Downstream impact
Used directly by 1 file: Run V9 9 (globalgrid2050).
What it achieves
It is built from the text step (`text`), the JSON step (`json`) and the sha256 step (`sha256`). The interconnector tab, proven from the bytes, and the v9.9 release identity.
Why it matters
Checked by Run V9 9.
Application
globalgrid2050 · uk_renewables_pipeline/202609081016/tests · JavaScript module
Uses
Atlas Interconnector Link V9 8 (new URL import.meta.url), Atlas Receiver V9 7 (new URL import.meta.url), node:assert/strict, node:crypto, node:fs/promises, node:url, node:path
Used by
run by Run V9 9 (script call)
Produces
text, json, sha256
Defines here
text, json, sha256
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/202609081016/tests/check_v9_9.mjs:1-142 · blob 6de9c365151ef64bd71780677f8a048508774fe2 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: filesystem · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
/* check_v9_9.mjs - the interconnector tab, proven from the bytes, and the
 * v9.9 release identity. Derived from check_v9_8.mjs, which is inherited
 * byte-identical; only the identity assertions at the end move.
 *
 * Three things, each of which was a way this could have shipped wrong:
 *   1. The data product is what the pinned fixtures build - rebuilt here in
 *      memory and compared byte for byte, so a hand edit to data/v9.8 fails.
 *   2. Every row's MAP link is built with the page's own function, carries the
 *      link's identity and technology, puts a coordinate in only when the
 *      record holds one, and targets the canonical receiver and nothing else.
 *   3. The REPD spine is untouched: 7,680 records, the same partitions and
 *      hashes as the parent, and no interconnector inside it.
 *
 * Run: node tests/check_v9_9.mjs
 */
import assert from "node:assert/strict";
import { createHash } from "node:crypto";
import { readFile } from "node:fs/promises";
import { fileURLToPath } from "node:url";
import { dirname, join } from "node:path";

const HERE = dirname(fileURLToPath(import.meta.url));
const RELEASE = join(HERE, "..");
const PARENT = join(RELEASE, "..", "202609071221");
const text = (p) => readFile(p, "utf8");
const json = async (p) => JSON.parse(await text(p));
const sha256 = (s) => createHash("sha256").update(s).digest("hex");

const builder = await import(new URL("../scripts/build/interconnectors-v9-8.mjs", import.meta.url).href);
const link = await import(new URL("../scripts/core/atlas-interconnector-link-v9-8.js", import.meta.url).href);
const receiver = await import(new URL("../scripts/core/atlas-receiver-v9-7.js", import.meta.url).href);

const contract = await json(join(RELEASE, "contracts", "interconnectors.v9.8.json"));
const manifest = await json(join(RELEASE, "data", "v9.8", "interconnectors_manifest.json"));
const partitionText = await text(join(RELEASE, manifest.partition.path));
const partition = JSON.parse(partitionText);

// 1. the product is the build of the pinned fixtures
assert.equal(manifest.schema, builder.MANIFEST_SCHEMA);
assert.equal(partition.schema, builder.SCHEMA);
assert.equal(sha256(partitionText), manifest.partition.sha256, "partition sha256 must match its manifest");
for (const [key, source] of Object.entries(builder.SOURCES)) {
  const bytes = await readFile(join(RELEASE, source.path));
  assert.equal(sha256(bytes), source.sha256, `${key}: fixture bytes are not the pinned blob`);
}
const cables = builder.parseCsv(await text(join(RELEASE, builder.SOURCES.cables_csv.path)));
const endpoints = await json(join(RELEASE, builder.SOURCES.endpoints.path));
const geojson = await json(join(RELEASE, builder.SOURCES.geojson.path));
const rebuilt = builder.buildRecords({ cables, endpoints, geojson });
assert.deepEqual(partition.records, rebuilt, "data/v9.8/interconnectors.json is not what the fixtures build");

// the contract's expected figures
assert.equal(partition.records.length, contract.expected.record_count);
assert.equal(manifest.record_count, contract.expected.record_count);
assert.equal(manifest.capacity_mw, contract.expected.capacity_mw);
assert.equal(manifest.largest_mw, contract.expected.largest_mw);
for (const key of ["operational", "future", "geometry_valid", "geometry_gb_end_only", "geometry_missing"]) {
  assert.equal(manifest[key], contract.expected[key], `manifest ${key}`);
}
const refs = new Set(partition.records.map((r) => r.repd_ref));
assert.equal(refs.size, partition.records.length, "refs unique");
for (const record of partition.records) {
  assert.equal(record.technology, "interconnector");
  assert.match(record.repd_ref, /^IC-[A-Z0-9-]+$/);
  assert.equal(record.gg_project_id, `GG2050-${record.repd_ref}`);
  if (record.geometry_status === "valid") {
    assert.equal(record.anchor_kind, "MIDPOINT_LABEL_ANCHOR");
    assert.ok(record.span && record.span.straight_line_km > 0);
    assert.ok(record.gb_end && record.far_end);
  } else if (record.geometry_status === "gb_end_only") {
    assert.equal(record.anchor_kind, "GB_CONVERTER");
    assert.equal(record.longitude, record.gb_end.longitude);
    assert.equal(record.latitude, record.gb_end.latitude);
  } else {
    assert.equal(record.geometry_status, "missing");
    assert.equal(record.longitude, null);
    assert.equal(record.latitude, null);
  }
}
// the named spans, as measured
const britned = partition.records.find((r) => r.bmrs_code === "INTNED");
assert.equal(britned.span.straight_line_km, 234.9);
assert.equal(britned.geometry_status, "valid");
const eleclink = partition.records.find((r) => r.bmrs_code === "INTELEC");
assert.equal(eleclink.span.straight_line_km, 59.93);

// 2. every MAP link, with the page's own builder
const route = receiver.atlasReceiverV9_7();
assert.equal(route, contract.canonical_receiver, "the canonical receiver is the compiled contract's");
let linked = 0;
let unlinked = 0;
for (const record of partition.records) {
  const href = link.buildAtlasInterconnectorLinkV9_8(record);
  if (record.geometry_status === "missing") {
    assert.equal(href, "", `${record.name}: no coordinate held, so no link`);
    assert.match(link.interconnectorMapUnavailableReasonV9_8(record), /no converter coordinates/);
    unlinked += 1;
    continue;
  }
  linked += 1;
  const url = new URL(href);
  assert.equal(`${url.origin}${url.pathname}`, route.replace(/\/+$/u, "") + "/", `${record.name}: receiver`);
  assert.equal(url.searchParams.get("interconnector"), record.bmrs_code, `${record.name}: identity is the BMRS code`);
  assert.equal(url.searchParams.get("technology"), "interconnector");
  assert.equal(url.searchParams.get("project"), record.name);
  assert.equal(Number(url.searchParams.get("capacity_mw")), record.capacity_mw);
  assert.equal(Number(url.searchParams.get("latitude")), record.latitude, `${record.name}: THIS record's latitude`);
  assert.equal(Number(url.searchParams.get("longitude")), record.longitude);
  assert.equal(url.searchParams.get("anchor"), record.geometry_status === "valid" ? "midpoint" : "gb_converter");
  assert.equal(url.searchParams.get("zoom"), record.geometry_status === "valid" ? "7" : "10");
  assert.equal(url.searchParams.has("repd_ref"), false, `${record.name}: an interconnector must never claim a REPD reference`);
  assert.ok(link.interconnectorMapNoteV9_8(record).length > 20);
}
assert.equal(linked, contract.expected.geometry_valid + contract.expected.geometry_gb_end_only);
assert.equal(unlinked, contract.expected.geometry_missing);

// 3. the REPD spine is untouched
const spine = await json(join(RELEASE, "data", "v9.1", "build_manifest.json"));
const parentSpine = await json(join(PARENT, "data", "v9.1", "build_manifest.json"));
assert.deepEqual(spine, parentSpine, "the v9.1 spine manifest must be byte-identical to the parent's");
assert.equal(spine.project_count, 7680);
let spineRows = 0;
for (const part of spine.project_partitions) {
  const doc = JSON.parse(await text(join(RELEASE, part.path)));
  assert.equal(sha256(await text(join(RELEASE, part.path))), part.sha256, `${part.path} hash`);
  for (const project of doc.projects) {
    assert.notEqual(project.technology, "interconnector", `${project.repd_ref}: an interconnector inside the REPD spine`);
    assert.doesNotMatch(String(project.repd_ref), /^IC-/);
  }
  spineRows += doc.projects.length;
}
assert.equal(spineRows, 7680);

// the page itself carries the tab and loads the v9.8 app
const html = await text(join(RELEASE, "index.html"));
assert.match(html, /data-technology="interconnector"[^>]*>INTERCONNECTORS</);
assert.match(html, /scripts\/app-v9-9\.js/);
assert.match(html, /UK RENEWABLES PIPELINE 202609081016/);
assert.doesNotMatch(html, /202609071221\/index|app-v9-8\.js|app-v9-7\.js/);

console.log(`check_v9_9: ${partition.records.length} interconnectors (${manifest.operational} operational, ${manifest.future} future), `
  + `${linked} MAP links built, ${unlinked} honest NO MAP; REPD spine 7,680 untouched`);

Run V9 9

A shell script in the tests folder of GlobalGrid2050 that tests interconnectors. It is built from the is changed helper (`is_changed`).

testglobalgrid2050 / uk_renewables_pipeline/202609081016/tests/run_v9_9.sh · lines 1–59 of 59 · version 2026-09-08 10:16 · Entry point · pattern is_changed (shared by 3 files)

What it does
It tests interconnectors. Defines is_changed. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors. README: "its REPD spine, the v9.8 interconnector product, its fixtures and every inherited module are carried byte-for-byte and proven so by `tests/run_v9_9.sh`."
Downstream impact
It is itself an entry point (shell script); no other file was found loading it.
What it achieves
The README says: Its Renewable Energy Planning Database (REPD) spine, the v9.8 interconnector product, its fixtures and every inherited module are carried byte-for-byte and proven so by `tests/run_v9_9.sh`.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · uk_renewables_pipeline/202609081016/tests · shell script
Uses
Check V9 9 (script call)
Used by
none found
Produces
is_changed
Defines here
is_changed
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/202609081016/tests/run_v9_9.sh:1-59 · blob 3a205a6bbf26706893a338c3c4e5cb2da3b95eb5 · GitHub at these lines
State
achieves: readme · context: readme_derived · stage: unknown · effects: process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
#!/usr/bin/env bash
set -euo pipefail

HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
V99="$(cd "$HERE/.." && pwd)"
V98="$(cd "$V99/../202609071221" && pwd)"
ROOT="$(cd "$V99/../.." && pwd)"

# The frozen parent, by tree. If 202609071221 changes under this release, this
# release's claims about what it inherited are void.
test "$(git -C "$ROOT" rev-parse 'HEAD:uk_renewables_pipeline/202609071221')" = "36e30da95537e29938df59b9a68724c78f1d4593"

# WHAT V9.9 CHANGES FROM ITS FROZEN PARENT, NAMED ONE FILE AT A TIME.
# Every file below must differ from the parent or be new; a stale entry fails.
CHANGED_FROM_PARENT=(
  index.html
  scripts/app-v9-9.js
  scripts/plugins/projects-v9-9.js
  tests/run_v9_9.sh
  tests/check_v9_9.mjs
  CHANGES.md
  README.md
)
is_changed() {
  local needle="$1"
  for entry in "${CHANGED_FROM_PARENT[@]}"; do
    [[ "$entry" == "$needle" ]] && return 0
  done
  return 1
}

# Everything the parent has, this release has byte for byte, unless named above.
# projects-v9-8.js and app-v9-8.js are on this list on purpose: v9.9 derives its
# plugin and entry from them and leaves the originals untouched, so the parent's
# app would still run from these bytes.
while IFS= read -r file; do
  relative="${file#$V98/}"
  is_changed "$relative" || diff -q "$V98/$relative" "$V99/$relative"
done < <(find "$V98" -type f -not -path '*/__pycache__/*' -not -name '*.pyc' -not -path '*/node_modules/*' | sort)

for relative in "${CHANGED_FROM_PARENT[@]}"; do
  test -f "$V99/$relative"
  if [[ -f "$V98/$relative" ]]; then
    ! diff -q "$V98/$relative" "$V99/$relative" >/dev/null
  fi
done

# The interconnector product is rebuilt from its pinned fixtures and must not move.
node "$V99/scripts/build/interconnectors-v9-8.mjs"
git -C "$ROOT" diff --exit-code -- "uk_renewables_pipeline/$(basename "$V99")/data/v9.8"
node "$HERE/check_v9_9.mjs"
# Every REPD MAP button, not a sample: 7,680 hrefs with the page's own function.
node "$HERE/check_map_contract_all_rows.mjs"

while IFS= read -r source; do
  node --check "$source"
done < <(find "$V99/scripts" -type f \( -name '*.js' -o -name '*.mjs' \) -print | sort)

echo "V9.9 validation suite: PASS ($ROOT)"

V9 10

A style sheet in the styles folder of GlobalGrid2050 covering the Renewable Energy Planning Database (REPD) register.

renderglobalgrid2050 / uk_renewables_pipeline/202609082224/styles/v9-10.css · lines 1–42 of 42 · version 2026-09-08 22:24 · Entry point

What it does
Side effects: changes the web page (DOM).
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register.
Downstream impact
Used directly by 1 file: GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/). Reached from 4 other entry points, including GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050); V923 Public Readback Workflow (neural-link-between-agents); A4 Legal Model (globalgrid2050).
What it achieves
Reported on a phone at 23:23 on 8 September: the ACTIONS column was taking most of the width of the table, pushing every other column off-screen.
Why it matters
Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
Application
globalgrid2050 · uk_renewables_pipeline/202609082224/styles · style sheet
Uses
none found
Used by
loaded by GlobalGrid2050 — UK Renewables Pipeline Page (stylesheet)
Produces
none declared
Defines here
none
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/202609082224/styles/v9-10.css:1-42 · blob fadf3938a5c3746fac113c1ff458de9f0a2b9eed · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
/* v9-10.css - THE ACTIONS COLUMN FITS ITS BUTTONS, NOT ITS SENTENCES.

   Reported on a phone at 23:23 on 8 September: the ACTIONS column was taking
   most of the width of the table, pushing every other column off-screen.

   The cause is that a table cell is sized by its widest content and the notes
   under MAP are sentences. `.project-actions .map-note` is `flex: 1 0 100%`,
   which makes it fill the flex row it is in - but nothing bounds that row, so
   the row grows to whatever the sentence wants and the column grows with it.
   The v9.9 offshore note made this obvious by putting a long sentence on every
   offshore row; it was not the only one. "REPD published no coordinate for this
   record. The Atlas resolves it from REPD 13429 and centres on its own
   geometry." is inherited, appears on 28 rows, and widened the column exactly
   the same way.

   So the cell is bounded and the sentence wraps inside it. The buttons keep the
   44 px touch target v9.6.1 gave them - the cap is above the width of MAP, NEWS
   and COPY ID side by side, so nothing that must be tappable is squeezed - and
   the notes now set their own height instead of the table's width. */

.project-actions {
  max-width: 190px;
}

td:has(> .project-actions) {
  max-width: 190px;
  width: 190px;
}

.project-actions .map-note {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* On a phone the tray is a column and the buttons stack, so it needs less. */
@media (max-width: 760px) {
  .project-actions,
  td:has(> .project-actions) {
    max-width: 124px;
    width: 124px;
  }
}

Check V9 10

A JavaScript module in the tests folder of GlobalGrid2050 that tests interconnectors, the Renewable Energy Planning Database (REPD) register and cables, using SHA-256.

testglobalgrid2050 / uk_renewables_pipeline/202609082224/tests/check_v9_10.mjs · lines 1–143 of 143 · version 2026-09-08 22:24

What it does
It tests interconnectors, the REPD register and cables. Defines text, json, sha256. Uses libraries node:assert/strict, node:crypto, node:fs/promises, node:url, node:path. Side effects: reads or writes files.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors, the REPD register, cables.
Inputs & outputs
In: JSON file interconnectors.v9.8.json; JSON file interconnectors_manifest.json; JSON file build_manifest.json.
Downstream impact
Used directly by 1 file: Run V9 10 (globalgrid2050).
What it achieves
It is built from the text step (`text`), the JSON step (`json`) and the sha256 step (`sha256`). The interconnector tab, proven from the bytes, and the v9.10 release identity.
Why it matters
Checked by Run V9 10.
Application
globalgrid2050 · uk_renewables_pipeline/202609082224/tests · JavaScript module
Uses
Atlas Interconnector Link V9 8 (new URL import.meta.url), Atlas Receiver V9 7 (new URL import.meta.url), node:assert/strict, node:crypto, node:fs/promises, node:url, node:path
Used by
run by Run V9 10 (script call)
Produces
text, json, sha256
Defines here
text, json, sha256
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/202609082224/tests/check_v9_10.mjs:1-143 · blob c3055039dab62948d0a77e7f8ce2034d94f3c7de · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: filesystem · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
/* check_v9_10.mjs - the interconnector tab, proven from the bytes, and the
 * v9.10 release identity. Derived from check_v9_9.mjs; the interconnector
 * proofs are unchanged and only the identity assertions at the end move.
 *
 * Three things, each of which was a way this could have shipped wrong:
 *   1. The data product is what the pinned fixtures build - rebuilt here in
 *      memory and compared byte for byte, so a hand edit to data/v9.8 fails.
 *   2. Every row's MAP link is built with the page's own function, carries the
 *      link's identity and technology, puts a coordinate in only when the
 *      record holds one, and targets the canonical receiver and nothing else.
 *   3. The REPD spine is untouched: 7,680 records, the same partitions and
 *      hashes as the parent, and no interconnector inside it.
 *
 * Run: node tests/check_v9_10.mjs
 */
import assert from "node:assert/strict";
import { createHash } from "node:crypto";
import { readFile } from "node:fs/promises";
import { fileURLToPath } from "node:url";
import { dirname, join } from "node:path";

const HERE = dirname(fileURLToPath(import.meta.url));
const RELEASE = join(HERE, "..");
const PARENT = join(RELEASE, "..", "202609081016");
const text = (p) => readFile(p, "utf8");
const json = async (p) => JSON.parse(await text(p));
const sha256 = (s) => createHash("sha256").update(s).digest("hex");

const builder = await import(new URL("../scripts/build/interconnectors-v9-8.mjs", import.meta.url).href);
const link = await import(new URL("../scripts/core/atlas-interconnector-link-v9-8.js", import.meta.url).href);
const receiver = await import(new URL("../scripts/core/atlas-receiver-v9-7.js", import.meta.url).href);

const contract = await json(join(RELEASE, "contracts", "interconnectors.v9.8.json"));
const manifest = await json(join(RELEASE, "data", "v9.8", "interconnectors_manifest.json"));
const partitionText = await text(join(RELEASE, manifest.partition.path));
const partition = JSON.parse(partitionText);

// 1. the product is the build of the pinned fixtures
assert.equal(manifest.schema, builder.MANIFEST_SCHEMA);
assert.equal(partition.schema, builder.SCHEMA);
assert.equal(sha256(partitionText), manifest.partition.sha256, "partition sha256 must match its manifest");
for (const [key, source] of Object.entries(builder.SOURCES)) {
  const bytes = await readFile(join(RELEASE, source.path));
  assert.equal(sha256(bytes), source.sha256, `${key}: fixture bytes are not the pinned blob`);
}
const cables = builder.parseCsv(await text(join(RELEASE, builder.SOURCES.cables_csv.path)));
const endpoints = await json(join(RELEASE, builder.SOURCES.endpoints.path));
const geojson = await json(join(RELEASE, builder.SOURCES.geojson.path));
const rebuilt = builder.buildRecords({ cables, endpoints, geojson });
assert.deepEqual(partition.records, rebuilt, "data/v9.8/interconnectors.json is not what the fixtures build");

// the contract's expected figures
assert.equal(partition.records.length, contract.expected.record_count);
assert.equal(manifest.record_count, contract.expected.record_count);
assert.equal(manifest.capacity_mw, contract.expected.capacity_mw);
assert.equal(manifest.largest_mw, contract.expected.largest_mw);
for (const key of ["operational", "future", "geometry_valid", "geometry_gb_end_only", "geometry_missing"]) {
  assert.equal(manifest[key], contract.expected[key], `manifest ${key}`);
}
const refs = new Set(partition.records.map((r) => r.repd_ref));
assert.equal(refs.size, partition.records.length, "refs unique");
for (const record of partition.records) {
  assert.equal(record.technology, "interconnector");
  assert.match(record.repd_ref, /^IC-[A-Z0-9-]+$/);
  assert.equal(record.gg_project_id, `GG2050-${record.repd_ref}`);
  if (record.geometry_status === "valid") {
    assert.equal(record.anchor_kind, "MIDPOINT_LABEL_ANCHOR");
    assert.ok(record.span && record.span.straight_line_km > 0);
    assert.ok(record.gb_end && record.far_end);
  } else if (record.geometry_status === "gb_end_only") {
    assert.equal(record.anchor_kind, "GB_CONVERTER");
    assert.equal(record.longitude, record.gb_end.longitude);
    assert.equal(record.latitude, record.gb_end.latitude);
  } else {
    assert.equal(record.geometry_status, "missing");
    assert.equal(record.longitude, null);
    assert.equal(record.latitude, null);
  }
}
// the named spans, as measured
const britned = partition.records.find((r) => r.bmrs_code === "INTNED");
assert.equal(britned.span.straight_line_km, 234.9);
assert.equal(britned.geometry_status, "valid");
const eleclink = partition.records.find((r) => r.bmrs_code === "INTELEC");
assert.equal(eleclink.span.straight_line_km, 59.93);

// 2. every MAP link, with the page's own builder
const route = receiver.atlasReceiverV9_7();
assert.equal(route, contract.canonical_receiver, "the canonical receiver is the compiled contract's");
let linked = 0;
let unlinked = 0;
for (const record of partition.records) {
  const href = link.buildAtlasInterconnectorLinkV9_8(record);
  if (record.geometry_status === "missing") {
    assert.equal(href, "", `${record.name}: no coordinate held, so no link`);
    assert.match(link.interconnectorMapUnavailableReasonV9_8(record), /no converter coordinates/);
    unlinked += 1;
    continue;
  }
  linked += 1;
  const url = new URL(href);
  assert.equal(`${url.origin}${url.pathname}`, route.replace(/\/+$/u, "") + "/", `${record.name}: receiver`);
  assert.equal(url.searchParams.get("interconnector"), record.bmrs_code, `${record.name}: identity is the BMRS code`);
  assert.equal(url.searchParams.get("technology"), "interconnector");
  assert.equal(url.searchParams.get("project"), record.name);
  assert.equal(Number(url.searchParams.get("capacity_mw")), record.capacity_mw);
  assert.equal(Number(url.searchParams.get("latitude")), record.latitude, `${record.name}: THIS record's latitude`);
  assert.equal(Number(url.searchParams.get("longitude")), record.longitude);
  assert.equal(url.searchParams.get("anchor"), record.geometry_status === "valid" ? "midpoint" : "gb_converter");
  assert.equal(url.searchParams.get("zoom"), record.geometry_status === "valid" ? "7" : "10");
  assert.equal(url.searchParams.has("repd_ref"), false, `${record.name}: an interconnector must never claim a REPD reference`);
  assert.ok(link.interconnectorMapNoteV9_8(record).length > 20);
}
assert.equal(linked, contract.expected.geometry_valid + contract.expected.geometry_gb_end_only);
assert.equal(unlinked, contract.expected.geometry_missing);

// 3. the REPD spine is untouched
const spine = await json(join(RELEASE, "data", "v9.1", "build_manifest.json"));
const parentSpine = await json(join(PARENT, "data", "v9.1", "build_manifest.json"));
assert.deepEqual(spine, parentSpine, "the v9.1 spine manifest must be byte-identical to the parent's");
assert.equal(spine.project_count, 7680);
let spineRows = 0;
for (const part of spine.project_partitions) {
  const doc = JSON.parse(await text(join(RELEASE, part.path)));
  assert.equal(sha256(await text(join(RELEASE, part.path))), part.sha256, `${part.path} hash`);
  for (const project of doc.projects) {
    assert.notEqual(project.technology, "interconnector", `${project.repd_ref}: an interconnector inside the REPD spine`);
    assert.doesNotMatch(String(project.repd_ref), /^IC-/);
  }
  spineRows += doc.projects.length;
}
assert.equal(spineRows, 7680);

// the page itself carries the tab and loads the v9.8 app
const html = await text(join(RELEASE, "index.html"));
assert.match(html, /data-technology="interconnector"[^>]*>INTERCONNECTORS</);
assert.match(html, /scripts\/app-v9-8\.js/);
assert.match(html, /styles\/v9-10\.css/);
assert.match(html, /UK RENEWABLES PIPELINE 202609082224/);
assert.doesNotMatch(html, /202609081016\/index|app-v9-9\.js|app-v9-7\.js/);

console.log(`check_v9_10: ${partition.records.length} interconnectors (${manifest.operational} operational, ${manifest.future} future), `
  + `${linked} MAP links built, ${unlinked} honest NO MAP; REPD spine 7,680 untouched`);

Run V9 10

A shell script in the tests folder of GlobalGrid2050 that tests interconnectors. It is built from the is listed helper (`is_listed`).

testglobalgrid2050 / uk_renewables_pipeline/202609082224/tests/run_v9_10.sh · lines 1–68 of 68 · version 2026-09-08 22:24 · Entry point · pattern is_listed (shared by 38 files)

What it does
It tests interconnectors. Defines is_listed. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors. README: "its REPD spine, the v9.8 interconnector product, its fixtures and every inherited module are carried byte-for-byte and proven so by `tests/run_v9_10.sh`."
Downstream impact
It is itself an entry point (shell script); no other file was found loading it.
What it achieves
The README says: Its Renewable Energy Planning Database (REPD) spine, the v9.8 interconnector product, its fixtures and every inherited module are carried byte-for-byte and proven so by `tests/run_v9_10.sh`.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · uk_renewables_pipeline/202609082224/tests · shell script
Uses
Check V9 10 (script call)
Used by
none found
Produces
is_listed
Defines here
is_listed
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/202609082224/tests/run_v9_10.sh:1-68 · blob b6991e37fbf6dfcf13906d7cfa1beca129710f40 · GitHub at these lines
State
achieves: readme · context: readme_derived · stage: unknown · effects: process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
#!/usr/bin/env bash
set -euo pipefail

HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
V910="$(cd "$HERE/.." && pwd)"
V99="$(cd "$V910/../202609081016" && pwd)"
ROOT="$(cd "$V910/../.." && pwd)"

# The frozen parent, by tree. If 202609081016 changes under this release, this
# release's claims about what it inherited are void.
test "$(git -C "$ROOT" rev-parse 'HEAD:uk_renewables_pipeline/202609081016')" = "f9fd82e0dd9f05807a2a544e4600ebf3ced55439"

# WHAT V9.10 CHANGES FROM ITS FROZEN PARENT, NAMED ONE FILE AT A TIME.
CHANGED_FROM_PARENT=(
  index.html
  styles/v9-10.css
  tests/run_v9_10.sh
  tests/check_v9_10.mjs
  CHANGES.md
  README.md
)
# And what it deletes. v9.9's app and plugin existed only to print the offshore
# sentence this release removes, so they go rather than linger as dead files.
REMOVED_FROM_PARENT=(
  scripts/app-v9-9.js
  scripts/plugins/projects-v9-9.js
  tests/run_v9_9.sh
  tests/check_v9_9.mjs
)
is_listed() {
  local needle="$1"; shift
  for entry in "$@"; do [[ "$entry" == "$needle" ]] && return 0; done
  return 1
}

# Everything the parent has, this release has byte for byte, unless named above.
while IFS= read -r file; do
  relative="${file#$V99/}"
  is_listed "$relative" "${CHANGED_FROM_PARENT[@]}" && continue
  if is_listed "$relative" "${REMOVED_FROM_PARENT[@]}"; then
    test ! -e "$V910/$relative"
    continue
  fi
  diff -q "$V99/$relative" "$V910/$relative"
done < <(find "$V99" -type f -not -path '*/__pycache__/*' -not -name '*.pyc' -not -path '*/node_modules/*' | sort)

for relative in "${CHANGED_FROM_PARENT[@]}"; do
  test -f "$V910/$relative"
  if [[ -f "$V99/$relative" ]]; then
    ! diff -q "$V99/$relative" "$V910/$relative" >/dev/null
  fi
done

# The offshore sentence is gone from every file this release ships.
! grep -rq "Opens on the offshore cable engine" "$V910"

# The interconnector product is rebuilt from its pinned fixtures and must not move.
node "$V910/scripts/build/interconnectors-v9-8.mjs"
git -C "$ROOT" diff --exit-code -- "uk_renewables_pipeline/$(basename "$V910")/data/v9.8"
node "$HERE/check_v9_10.mjs"
# Every REPD MAP button, not a sample: 7,680 hrefs with the page's own function.
node "$HERE/check_map_contract_all_rows.mjs"

while IFS= read -r source; do
  node --check "$source"
done < <(find "$V910/scripts" -type f \( -name '*.js' -o -name '*.mjs' \) -print | sort)

echo "V9.10 validation suite: PASS ($ROOT)"

Check V9 11

A JavaScript module in the tests folder of GlobalGrid2050 that tests interconnectors, the Renewable Energy Planning Database (REPD) register and cables, using SHA-256.

testglobalgrid2050 / uk_renewables_pipeline/202610290230/tests/check_v9_11.mjs · lines 1–156 of 156 · version 2026-10-29 02:30

What it does
It tests interconnectors, the REPD register and cables. Defines text, json, sha256. Uses libraries node:assert/strict, node:crypto, node:fs/promises, node:url, node:path. Side effects: reads or writes files.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors, the REPD register, cables.
Inputs & outputs
In: JSON file interconnectors.v9.8.json; JSON file interconnectors_manifest.json; JSON file build_manifest.json.
Downstream impact
Used directly by 1 file: Run V9 11 (globalgrid2050).
What it achieves
It is built from the text step (`text`), the JSON step (`json`) and the sha256 step (`sha256`). The V9.10 proofs, unchanged, plus the V9.11 change: the chart library is one exact file checked by Subresource Integrity.
Why it matters
Checked by Run V9 11.
Application
globalgrid2050 · uk_renewables_pipeline/202610290230/tests · JavaScript module
Uses
Atlas Interconnector Link V9 8 (new URL import.meta.url), Atlas Receiver V9 7 (new URL import.meta.url), node:assert/strict, node:crypto, node:fs/promises, node:url, node:path
Used by
run by Run V9 11 (script call)
Produces
text, json, sha256
Defines here
text, json, sha256
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/202610290230/tests/check_v9_11.mjs:1-156 · blob abbfd0e9bfd3af402dcbcca9e9d3848681fc0a1f · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: filesystem · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
/* check_v9_11.mjs - the V9.10 proofs, unchanged, plus the V9.11 change: the
 * chart library is one exact file checked by Subresource Integrity.
 * Derived from check_v9_10.mjs; the interconnector and REPD-spine proofs are
 * that file's, the parent is now 202609082224, and the identity assertions at
 * the end move to V9.11.
 *
 * Run: node tests/check_v9_11.mjs
 */
import assert from "node:assert/strict";
import { createHash } from "node:crypto";
import { readFile } from "node:fs/promises";
import { fileURLToPath } from "node:url";
import { dirname, join } from "node:path";

const HERE = dirname(fileURLToPath(import.meta.url));
const RELEASE = join(HERE, "..");
const PARENT = join(RELEASE, "..", "202609082224");
const text = (p) => readFile(p, "utf8");
const json = async (p) => JSON.parse(await text(p));
const sha256 = (s) => createHash("sha256").update(s).digest("hex");

const builder = await import(new URL("../scripts/build/interconnectors-v9-8.mjs", import.meta.url).href);
const link = await import(new URL("../scripts/core/atlas-interconnector-link-v9-8.js", import.meta.url).href);
const receiver = await import(new URL("../scripts/core/atlas-receiver-v9-7.js", import.meta.url).href);

const contract = await json(join(RELEASE, "contracts", "interconnectors.v9.8.json"));
const manifest = await json(join(RELEASE, "data", "v9.8", "interconnectors_manifest.json"));
const partitionText = await text(join(RELEASE, manifest.partition.path));
const partition = JSON.parse(partitionText);

// 1. the product is the build of the pinned fixtures
assert.equal(manifest.schema, builder.MANIFEST_SCHEMA);
assert.equal(partition.schema, builder.SCHEMA);
assert.equal(sha256(partitionText), manifest.partition.sha256, "partition sha256 must match its manifest");
for (const [key, source] of Object.entries(builder.SOURCES)) {
  const bytes = await readFile(join(RELEASE, source.path));
  assert.equal(sha256(bytes), source.sha256, `${key}: fixture bytes are not the pinned blob`);
}
const cables = builder.parseCsv(await text(join(RELEASE, builder.SOURCES.cables_csv.path)));
const endpoints = await json(join(RELEASE, builder.SOURCES.endpoints.path));
const geojson = await json(join(RELEASE, builder.SOURCES.geojson.path));
const rebuilt = builder.buildRecords({ cables, endpoints, geojson });
assert.deepEqual(partition.records, rebuilt, "data/v9.8/interconnectors.json is not what the fixtures build");

// the contract's expected figures
assert.equal(partition.records.length, contract.expected.record_count);
assert.equal(manifest.record_count, contract.expected.record_count);
assert.equal(manifest.capacity_mw, contract.expected.capacity_mw);
assert.equal(manifest.largest_mw, contract.expected.largest_mw);
for (const key of ["operational", "future", "geometry_valid", "geometry_gb_end_only", "geometry_missing"]) {
  assert.equal(manifest[key], contract.expected[key], `manifest ${key}`);
}
const refs = new Set(partition.records.map((r) => r.repd_ref));
assert.equal(refs.size, partition.records.length, "refs unique");
for (const record of partition.records) {
  assert.equal(record.technology, "interconnector");
  assert.match(record.repd_ref, /^IC-[A-Z0-9-]+$/);
  assert.equal(record.gg_project_id, `GG2050-${record.repd_ref}`);
  if (record.geometry_status === "valid") {
    assert.equal(record.anchor_kind, "MIDPOINT_LABEL_ANCHOR");
    assert.ok(record.span && record.span.straight_line_km > 0);
    assert.ok(record.gb_end && record.far_end);
  } else if (record.geometry_status === "gb_end_only") {
    assert.equal(record.anchor_kind, "GB_CONVERTER");
    assert.equal(record.longitude, record.gb_end.longitude);
    assert.equal(record.latitude, record.gb_end.latitude);
  } else {
    assert.equal(record.geometry_status, "missing");
    assert.equal(record.longitude, null);
    assert.equal(record.latitude, null);
  }
}
// the named spans, as measured
const britned = partition.records.find((r) => r.bmrs_code === "INTNED");
assert.equal(britned.span.straight_line_km, 234.9);
assert.equal(britned.geometry_status, "valid");
const eleclink = partition.records.find((r) => r.bmrs_code === "INTELEC");
assert.equal(eleclink.span.straight_line_km, 59.93);

// 2. every MAP link, with the page's own builder
const route = receiver.atlasReceiverV9_7();
assert.equal(route, contract.canonical_receiver, "the canonical receiver is the compiled contract's");
let linked = 0;
let unlinked = 0;
for (const record of partition.records) {
  const href = link.buildAtlasInterconnectorLinkV9_8(record);
  if (record.geometry_status === "missing") {
    assert.equal(href, "", `${record.name}: no coordinate held, so no link`);
    assert.match(link.interconnectorMapUnavailableReasonV9_8(record), /no converter coordinates/);
    unlinked += 1;
    continue;
  }
  linked += 1;
  const url = new URL(href);
  assert.equal(`${url.origin}${url.pathname}`, route.replace(/\/+$/u, "") + "/", `${record.name}: receiver`);
  assert.equal(url.searchParams.get("interconnector"), record.bmrs_code, `${record.name}: identity is the BMRS code`);
  assert.equal(url.searchParams.get("technology"), "interconnector");
  assert.equal(url.searchParams.get("project"), record.name);
  assert.equal(Number(url.searchParams.get("capacity_mw")), record.capacity_mw);
  assert.equal(Number(url.searchParams.get("latitude")), record.latitude, `${record.name}: THIS record's latitude`);
  assert.equal(Number(url.searchParams.get("longitude")), record.longitude);
  assert.equal(url.searchParams.get("anchor"), record.geometry_status === "valid" ? "midpoint" : "gb_converter");
  assert.equal(url.searchParams.get("zoom"), record.geometry_status === "valid" ? "7" : "10");
  assert.equal(url.searchParams.has("repd_ref"), false, `${record.name}: an interconnector must never claim a REPD reference`);
  assert.ok(link.interconnectorMapNoteV9_8(record).length > 20);
}
assert.equal(linked, contract.expected.geometry_valid + contract.expected.geometry_gb_end_only);
assert.equal(unlinked, contract.expected.geometry_missing);

// 3. the REPD spine is untouched
const spine = await json(join(RELEASE, "data", "v9.1", "build_manifest.json"));
const parentSpine = await json(join(PARENT, "data", "v9.1", "build_manifest.json"));
assert.deepEqual(spine, parentSpine, "the v9.1 spine manifest must be byte-identical to the parent's");
assert.equal(spine.project_count, 7680);
let spineRows = 0;
for (const part of spine.project_partitions) {
  const doc = JSON.parse(await text(join(RELEASE, part.path)));
  assert.equal(sha256(await text(join(RELEASE, part.path))), part.sha256, `${part.path} hash`);
  for (const project of doc.projects) {
    assert.notEqual(project.technology, "interconnector", `${project.repd_ref}: an interconnector inside the REPD spine`);
    assert.doesNotMatch(String(project.repd_ref), /^IC-/);
  }
  spineRows += doc.projects.length;
}
assert.equal(spineRows, 7680);

// the page itself carries the tab and loads the v9.8 app
const html = await text(join(RELEASE, "index.html"));
assert.match(html, /data-technology="interconnector"[^>]*>INTERCONNECTORS</);
assert.match(html, /scripts\/app-v9-8\.js/);
assert.match(html, /styles\/v9-10\.css/);
assert.match(html, /UK RENEWABLES PIPELINE 202610290230/);
assert.match(html, /V9\.11 CANDIDATE/);
assert.doesNotMatch(html, /UK RENEWABLES PIPELINE 202609082224|app-v9-9\.js|app-v9-7\.js/);

// 4. V9.11: every external script is pinned to an exact version and carries SRI
const CHART_URL = "https://cdn.jsdelivr.net/npm/chart.js@4.5.1/dist/chart.umd.min.js";
const CHART_SRI = "sha384-jb8JQMbMoBUzgWatfe6COACi2ljcDdZQ2OxczGA3bGNeWe+6DChMTBJemed7ZnvJ";
const scripts = [...html.matchAll(/<script\b[^>]*\bsrc="([^"]+)"[^>]*>/g)];
const external = scripts.filter((m) => /^(https?:)?\/\//.test(m[1]));
assert.equal(external.length, 1, "exactly one external script (Chart.js)");
const [tag, src] = external[0];
assert.equal(src, CHART_URL, "Chart.js is the exact pinned file");
assert.match(tag, new RegExp(`integrity="${CHART_SRI.replace(/[+/]/g, "\\$&")}"`), "Chart.js carries the pinned SRI hash");
assert.match(tag, /crossorigin="anonymous"/, "SRI on a cross-origin script needs CORS mode");
// Optional: prove the hash from the npm bytes. CHARTJS_PKG_DIR is the
// "package" directory of the extracted tarball (npm pack chart.js@4.5.1).
if (process.env.CHARTJS_PKG_DIR) {
  const bytes = await readFile(join(process.env.CHARTJS_PKG_DIR, "dist", "chart.umd.min.js"));
  const digest = "sha384-" + createHash("sha384").update(bytes).digest("base64");
  assert.equal(digest, CHART_SRI, "SRI hash is the SHA-384 of the npm file");
  console.log("check_v9_11: Chart.js SRI recomputed from the npm bytes");
}

console.log(`check_v9_11: ${partition.records.length} interconnectors (${manifest.operational} operational, ${manifest.future} future), `
  + `${linked} MAP links built, ${unlinked} honest NO MAP; REPD spine 7,680 untouched; Chart.js pinned with SRI`);

Run V9 11

A shell script in the tests folder of GlobalGrid2050 that tests interconnectors. It is built from the is listed helper (`is_listed`).

testglobalgrid2050 / uk_renewables_pipeline/202610290230/tests/run_v9_11.sh · lines 1–72 of 72 · version 2026-10-29 02:30 · Entry point · pattern is_listed (shared by 38 files)

What it does
It tests interconnectors. Defines is_listed. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: interconnectors. README: "Every file except those named in `CHANGES.md` is carried byte for byte, and `tests/run_v9_11.sh` proves it."
Downstream impact
It is itself an entry point (shell script); no other file was found loading it.
What it achieves
The README says: Every file except those named in `CHANGES.md` is carried byte for byte, and `tests/run_v9_11.sh` proves it.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · uk_renewables_pipeline/202610290230/tests · shell script
Uses
Check V9 11 (script call)
Used by
none found
Produces
is_listed
Defines here
is_listed
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/202610290230/tests/run_v9_11.sh:1-72 · blob 531a7b7b551149b8132e4c348d9055295a553d3d · GitHub at these lines
State
achieves: readme · context: readme_derived · stage: unknown · effects: process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
#!/usr/bin/env bash
set -euo pipefail

HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
V911="$(cd "$HERE/.." && pwd)"
V910="$(cd "$V911/../202609082224" && pwd)"
ROOT="$(cd "$V911/../.." && pwd)"

# The frozen parent, by tree. If 202609082224 changes under this release, this
# release's claims about what it inherited are void.
test "$(git -C "$ROOT" rev-parse 'HEAD:uk_renewables_pipeline/202609082224')" = "6247a0c3c00e8e88324d9ea55b22d67dbbb1be90"

# WHAT V9.11 CHANGES FROM ITS FROZEN PARENT, NAMED ONE FILE AT A TIME.
CHANGED_FROM_PARENT=(
  index.html
  tests/run_v9_11.sh
  tests/check_v9_11.mjs
  CHANGES.md
  README.md
)
# And what it deletes: the V9.10 runner and check assert V9.10's own identity
# and parent, so inside this folder they could only fail.
REMOVED_FROM_PARENT=(
  tests/run_v9_10.sh
  tests/check_v9_10.mjs
)
is_listed() {
  local needle="$1"; shift
  for entry in "$@"; do [[ "$entry" == "$needle" ]] && return 0; done
  return 1
}

# Everything the parent has, this release has byte for byte, unless named above.
while IFS= read -r file; do
  relative="${file#$V910/}"
  is_listed "$relative" "${CHANGED_FROM_PARENT[@]}" && continue
  if is_listed "$relative" "${REMOVED_FROM_PARENT[@]}"; then
    test ! -e "$V911/$relative"
    continue
  fi
  diff -q "$V910/$relative" "$V911/$relative"
done < <(find "$V910" -type f -not -path '*/__pycache__/*' -not -name '*.pyc' -not -path '*/node_modules/*' | sort)

# Nothing new arrives unnamed.
while IFS= read -r file; do
  relative="${file#$V911/}"
  [[ -e "$V910/$relative" ]] && continue
  is_listed "$relative" "${CHANGED_FROM_PARENT[@]}"
done < <(find "$V911" -type f -not -path '*/__pycache__/*' -not -name '*.pyc' -not -path '*/node_modules/*' | sort)

for relative in "${CHANGED_FROM_PARENT[@]}"; do
  test -f "$V911/$relative"
  if [[ -f "$V910/$relative" ]]; then
    ! diff -q "$V910/$relative" "$V911/$relative" >/dev/null
  fi
done

# The only change to the page outside its identity lines is the Chart.js tag.
! grep -q 'src="https://cdn.jsdelivr.net/npm/chart.js"' "$V911/index.html"

# The interconnector product is rebuilt from its pinned fixtures and must not move.
node "$V911/scripts/build/interconnectors-v9-8.mjs"
git -C "$ROOT" diff --exit-code -- "uk_renewables_pipeline/$(basename "$V911")/data/v9.8"
node "$HERE/check_v9_11.mjs"
# Every REPD MAP button, not a sample: 7,680 hrefs with the page's own function.
node "$HERE/check_map_contract_all_rows.mjs"

while IFS= read -r source; do
  node --check "$source"
done < <(find "$V911/scripts" -type f \( -name '*.js' -o -name '*.mjs' \) -print | sort)

echo "V9.11 validation suite: PASS ($ROOT)"