In this section
- Run V9 22 test · globalgrid2050 / uk_renewables_pipeline/202611151300/tests/run_v9_22.sh lines 1–99
- V9 23 render · globalgrid2050 / uk_renewables_pipeline/202611160020/styles/v9-23.css lines 1–22
- Check V9 23 test · globalgrid2050 / uk_renewables_pipeline/202611160020/tests/check_v9_23.mjs lines 1–112
- Run V9 23 test · globalgrid2050 / uk_renewables_pipeline/202611160020/tests/run_v9_23.sh lines 1–99
- V9 24 render · globalgrid2050 / uk_renewables_pipeline/202611161244/styles/v9-24.css lines 1–12
- Check V9 24 test · globalgrid2050 / uk_renewables_pipeline/202611161244/tests/check_v9_24.mjs lines 1–112
- Run V9 24 test · globalgrid2050 / uk_renewables_pipeline/202611161244/tests/run_v9_24.sh lines 1–99
- Test Model test · globalgrid2050 / uk_renewables_pipeline/202611161630/global-datacentres/test-model.cjs lines 1–40
- Evidence V925 render · globalgrid2050 / uk_renewables_pipeline/202611161630/scripts/plugins/evidence-v925.js lines 1–103
Run V9 22
A shell script in the tests folder of GlobalGrid2050 that tests interconnectors.
Set aside from the main view: A comment at the top of the file says a tool wrote it. (noise-generated, proposed by noise.py). All set-aside files, with reasons. Nothing was deleted.
Evidence
- line 4 comment: # Written by automation/pipeline_release/new_version.py by the pattern of run_v9_13.sh.
testglobalgrid2050 / uk_renewables_pipeline/202611151300/tests/run_v9_22.sh · lines 1–99 of 99 · version 2026-11-15 13:00 · Entry point · pattern is_listed (shared by 38 files)
- What it does
- It tests interconnectors. Defines is_listed, walk. 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.
- Inputs & outputs
- In: JSON file release.v9.1.json.
- Downstream impact
- Used directly by 1 file: GlobalGrid2050 Agent7 V922 CI Workflow (globalgrid2050).
- What it achieves
- Defines `is_listed` and `walk`.
- Why it matters
- Run by GlobalGrid2050 Agent7 V922 CI Workflow.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611151300/tests · shell script
- Uses
- Check V9 22 (script call), Live News Regression V9 22 (script call)
- Used by
- run by GlobalGrid2050 Agent7 V922 CI Workflow (workflow run)
- Produces
- is_listed, walk
- Defines here
- is_listed, walk
- 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/202611151300/tests/run_v9_22.sh:1-99 · blob 3c2ce36ded5804aa8c7c110f7d70369f71b2159e · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: unknown · effects: process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
#!/usr/bin/env bash
# run_v9_22.sh - Pipeline News V9.22: one visible step on its parent, same REPD
# October 2026 (Q3 2026) register. Offline, in a git checkout or a plain copy.
# Written by automation/pipeline_release/new_version.py by the pattern of run_v9_13.sh.
set -euo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
RELEASE="$(cd "$HERE/.." && pwd)"
ID="$(basename "$RELEASE")"
PARENT_ID="202611141017"
FIXTURE_OWNER="202611132345"
PARENT="$(cd "$RELEASE/../$PARENT_ID" && pwd)"
ROOT="$(cd "$RELEASE/../.." && pwd)"
# The parent by git tree of the bytes ON DISK.
PARENT_TREE="0c56d3a81d7e3abaec164ab689b0f4c8a38e7129"
SCRATCH="$(mktemp -d)"
trap 'rm -rf "$SCRATCH"' EXIT
git init -q --bare "$SCRATCH/objects.git"
(cd "$ROOT" && find "uk_renewables_pipeline/$PARENT_ID" -type f -not -path '*/__pycache__/*' -not -name '*.pyc' -not -path '*/node_modules/*' | sort) \
| GIT_DIR="$SCRATCH/objects.git" GIT_WORK_TREE="$ROOT" GIT_INDEX_FILE="$SCRATCH/index" \
git -C "$ROOT" -c core.autocrlf=false update-index --add --stdin
actual_tree="$(GIT_DIR="$SCRATCH/objects.git" GIT_INDEX_FILE="$SCRATCH/index" git write-tree --prefix="uk_renewables_pipeline/$PARENT_ID/")"
test "$actual_tree" = "$PARENT_TREE" || { echo "parent $PARENT_ID tree is $actual_tree, expected $PARENT_TREE" >&2; exit 1; }
# WHAT THIS VERSION CHANGES FROM ITS PARENT, NAMED ONE FILE AT A TIME.
CHANGED_FROM_PARENT=(
CHANGES.md
README.md
index.html
scripts/plugins/live-news.js
styles/v9-22.css
tests/browser_stage_agent7.mjs
tests/browser_real_map_to_engine_agent7.mjs
tests/check_v9_22.mjs
tests/live_news_regression_v9_22.mjs
tests/run_v9_22.sh
)
REMOVED_FROM_PARENT=(
tests/check_v9_21.mjs
tests/run_v9_21.sh
)
is_listed() {
local needle="$1"; shift
for entry in "$@"; do [[ "$entry" == "$needle" ]] && return 0; done
return 1
}
walk() { find "$1" -type f -not -path '*/__pycache__/*' -not -name '*.pyc' -not -path '*/node_modules/*' | sort; }
while IFS= read -r file; do
relative="${file#$PARENT/}"
is_listed "$relative" "${CHANGED_FROM_PARENT[@]}" && continue
if is_listed "$relative" "${REMOVED_FROM_PARENT[@]}"; then
test ! -e "$RELEASE/$relative" || { echo "should not be copied: $relative" >&2; exit 1; }
continue
fi
cmp -s "$file" "$RELEASE/$relative" || { echo "inherited file differs from parent: $relative" >&2; exit 1; }
done < <(walk "$PARENT")
while IFS= read -r file; do
relative="${file#$RELEASE/}"
is_listed "$relative" "${CHANGED_FROM_PARENT[@]}" && continue
test -e "$PARENT/$relative" || { echo "unlisted new file: $relative" >&2; exit 1; }
done < <(walk "$RELEASE")
for relative in "${CHANGED_FROM_PARENT[@]}"; do
test -f "$RELEASE/$relative" || { echo "listed but missing: $relative" >&2; exit 1; }
if [[ -f "$PARENT/$relative" ]] && cmp -s "$PARENT/$relative" "$RELEASE/$relative"; then
echo "listed as changed but identical to parent: $relative" >&2; exit 1
fi
done
# The register is the parent's: contract, spine and interconnector product byte for byte.
cmp -s "$PARENT/contracts/release.v9.1.json" "$RELEASE/contracts/release.v9.1.json"
grep -q "\"identity_fixture\": \"uk_renewables_pipeline/$FIXTURE_OWNER/fixtures/2026q3/project_identity_2026q3.json\"" "$RELEASE/contracts/release.v9.1.json"
diff -r "$PARENT/data/v9.1" "$RELEASE/data/v9.1"
diff -r "$PARENT/data/v9.8" "$RELEASE/data/v9.8"
# Spine and interconnector product rebuilt in a scratch root that holds this version
# and, at the fixture owner's path, only the two fixtures the contract binds. They
# must reproduce the committed bytes.
SROOT="$SCRATCH/root"
COPY="$SROOT/uk_renewables_pipeline/$ID"
mkdir -p "$SROOT/uk_renewables_pipeline/$FIXTURE_OWNER/fixtures"
cp -a "$ROOT/uk_renewables_pipeline/$FIXTURE_OWNER/fixtures/2026q3" "$SROOT/uk_renewables_pipeline/$FIXTURE_OWNER/fixtures/"
cp -a "$RELEASE" "$COPY"
rm -rf "$COPY/data/v9.1"
PYTHONDONTWRITEBYTECODE=1 python3 "$COPY/scripts/data/build_v9_1_spine.py"
diff -r "$RELEASE/data/v9.1" "$COPY/data/v9.1"
node "$COPY/scripts/build/interconnectors-v9-8.mjs" >/dev/null
diff -r "$RELEASE/data/v9.8" "$COPY/data/v9.8"
node "$HERE/check_v9_22.mjs"
node --test "$HERE/live_news_regression_v9_22.mjs"
node "$HERE/check_map_contract_all_rows.mjs"
while IFS= read -r source; do
node --check "$source"
done < <(find "$RELEASE/scripts" -type f \( -name '*.js' -o -name '*.mjs' \) -print | sort)
echo "V9.22 ($ID) validation suite: PASS ($ROOT)"V9 23
A style sheet in the styles folder of GlobalGrid2050.
renderglobalgrid2050 / uk_renewables_pipeline/202611160020/styles/v9-23.css · lines 1–22 of 22 · version 2026-11-16 00:20 · 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.
- 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
- V9.23 nonlive briefing; full text is present before any animation.
- Why it matters
- Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611160020/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/202611160020/styles/v9-23.css:1-22 · blob 7c1892c1a549b696f709c9d9c9c9a26569b35c68 · 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.23 nonlive briefing; full text is present before any animation. */
.machine-note-cell{min-width:118px}.machine-note-button,.machine-note-close{min-width:88px;min-height:44px;padding:8px 10px;border:1px solid #c4ab72;background:#28251d;color:#fff0ca;font:600 12px ui-monospace,monospace;cursor:pointer}.machine-note-button:focus-visible,.machine-note-close:focus-visible{outline:3px solid #cda84e;outline-offset:3px}
.machine-note-dialog{box-sizing:border-box;width:min(700px,calc(100vw - 12px));max-height:94dvh;background:#f3ecdc;color:#262116;padding:clamp(12px,3vw,30px);border:2px solid #66553c;font:14px/1.6 ui-monospace,monospace;overflow-y:auto}
.machine-note-dialog::backdrop{background:rgba(0,0,0,.8)}.machine-note-dialog h2{font:700 22px/1.3 ui-monospace,monospace;margin:14px 0}.machine-note-dialog a{overflow-wrap:anywhere;color:#164a78}.machine-note-dialog .machine-note-stamp{font-weight:700;border-block:2px solid #62573f;padding:8px 0}.machine-note-source{border-top:1px solid #aa9b7a;padding:12px 0}.machine-note-close{float:right;margi … [line shortened here: 415 characters; full line on GitHub]
@media(max-width:600px){.machine-note-dialog h2{font-size:18px;clear:both}.machine-note-button{min-width:86px}.machine-note-cell{min-width:100px}}
@media(prefers-reduced-motion:reduce){.machine-note-dialog *{animation:none!important;transition:none!important}}
@media print{.machine-note-dialog{position:static;max-height:none;overflow:visible;border:0;width:auto}.machine-note-close{display:none}}
/* Phone: note action in site cell, independent of horizontal table scroll. */
.mobile-machine-note{display:none!important}
@media(max-width:768px){.mobile-machine-note{display:inline-flex!important;align-items:center;margin-top:8px;font-size:11px;min-width:112px}.tablewrap th:nth-last-child(2),.tablewrap td.machine-note-cell{display:none}}
/* Candidate headline summary remains visible in the REPD row before the reader opens the brief. */
.machine-note-button{white-space:normal;text-align:left;line-height:1.35;overflow-wrap:anywhere;max-width:220px}
.machine-note-cell{min-width:180px;max-width:230px}
.machine-note-button[data-note-candidate="possible"]{border-color:#b28436;background:#373022;color:#fff1c8}
@media(max-width:768px){.mobile-machine-note{max-width:min(100%,280px);white-space:normal;text-align:left}}
/* Two compact lines: event/date plus the source's headline fragment (max ten words). */
.machine-note-kind,.machine-note-headline{display:block;max-width:100%;white-space:normal}
.machine-note-kind{font:700 11px/1.35 ui-monospace,monospace;letter-spacing:.01em}
.machine-note-headline{font:400 12px/1.4 system-ui,sans-serif;margin-top:3px;overflow-wrap:anywhere}Check V9 23
A JavaScript module in the tests folder of GlobalGrid2050 that tests major project news, interconnectors and the Renewable Energy Planning Database (REPD) register, using SHA-256.
Set aside from the main view: 90% of its lines are the same as uk_renewables_pipeline/202611161244/tests/check_v9_24.mjs (globalgrid2050), which stays. (near-copy-of, proposed by families.py). 90% of lines shared with Check V9 24; read that one first. All set-aside files, with reasons. Nothing was deleted.
Evidence
- line-jaccard 0.901 to globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/202611161244/tests/check_v9_24.mjs:1-112 700efbfe31ebe902d25f320adfb69b6f150fb1bc
- sha256 e240f4e5ad7314608f0e399c894fc6173b92603307954a7dc2bed74e6f5f1be9
- target sha256 1c81f345cfcdbe865764ea9bd72cbf5e60f60637c126a7cf0734ec65ccbd164a
- group of 4 (identity.json near-copy edges >= 0.9)
- canonical rule: reachable, newest stamp, core repo, most lines
testglobalgrid2050 / uk_renewables_pipeline/202611160020/tests/check_v9_23.mjs · lines 1–112 of 112 · version 2026-11-16 00:20
- What it does
- It tests major project news, interconnectors and the REPD register. Defines text, json, sha256, fmt. 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.
- Inputs & outputs
- In: JSON file release.v9.1.json; JSON file release.v9.5.1.json; JSON file build_manifest.json; JSON file major_project_news_v9_5_1.json; JSON file interconnectors.v9.8.json; JSON file interconnectors.json; JSON file interconnectors_manifest.json.
- Downstream impact
- Used directly by 1 file: Run V9 23 (globalgrid2050). Reached from 1 other entry point, including GlobalGrid2050 V923 Six Hour Python Repair Workflow (globalgrid2050).
- What it achieves
- It is built from the text step (`text`), the JSON step (`json`) and the sha256 step (`sha256`). Pipeline News V9.23, proven from the bytes and through the page's OWN loaders (the pattern of `check_v9_13.mjs`).
- Why it matters
- Checked by Run V9 23.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611160020/tests · JavaScript module
- Uses
- Canonical Projects V9 5 1 (new URL import.meta.url), node:assert/strict, node:crypto, node:fs/promises, node:url, node:path
- Used by
- run by Run V9 23 (script call)
- Produces
- text, json, sha256, fmt
- Defines here
- text, json, sha256, fmt
- 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/202611160020/tests/check_v9_23.mjs:1-112 · blob d5306674501d962f079556be656d8109b65277e7 · 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_23.mjs - Pipeline News V9.23, proven from the bytes and through the
* page's OWN loaders (the pattern of check_v9_13.mjs).
*
* 1. The contracts bind the fixtures held by 202611132345 by path and sha256.
* 2. The page's own loader chain is imported unmodified and executed against the
* files in this folder; every invariant the browser asserts is asserted here.
* 3. The spine partitions are what the manifest says (sha256 and counts).
* 4. The UK newspaper feed is unchanged and Beacon Fen still resolves.
* 5. The interconnector product and contract are the parent's, byte for byte.
* 6. The page states its own identity and version label.
*
* Run: node tests/check_v9_23.mjs
*/
import assert from "node:assert/strict";
import { createHash } from "node:crypto";
import { readFile } from "node:fs/promises";
import { fileURLToPath } from "node:url";
import { basename, dirname, join } from "node:path";
const HERE = dirname(fileURLToPath(import.meta.url));
const RELEASE = join(HERE, "..");
const ID = basename(RELEASE);
const ROOT = join(RELEASE, "..", "..");
const VERSION = "9.23";
const STATE = "BUILD";
const PARENT_ID = "202611151300";
const FIXTURE_OWNER = "202611132345";
const PARENT = join(RELEASE, "..", PARENT_ID);
const text = (p) => readFile(p, "utf8");
const json = async (p) => JSON.parse(await text(p));
const sha256 = (b) => createHash("sha256").update(b).digest("hex");
const NEWS_FEED_SHA256 = "cea104c3e9cfc07971680afdf5f64073e1d4825b63bfaf4e969266df8386ebbd";
// 1. contracts bind fixtures
const c91 = await json(join(RELEASE, "contracts", "release.v9.1.json"));
const c951 = await json(join(RELEASE, "contracts", "release.v9.5.1.json"));
assert.equal(c91.source.dataset, "DESNZ Renewable Energy Planning Database Q3 2026");
for (const [pathKey, shaKey] of [["identity_fixture", "identity_fixture_sha256"], ["coordinate_fixture", "coordinate_fixture_sha256"]]) {
const rel = c91.source[pathKey];
assert.ok(rel.startsWith(`uk_renewables_pipeline/${FIXTURE_OWNER}/fixtures/`), `${pathKey} must be the fixture owner's: ${rel}`);
assert.equal(sha256(await readFile(join(ROOT, rel))), c91.source[shaKey], `${pathKey} bytes`);
}
const coords = await json(join(ROOT, c91.source.coordinate_fixture));
assert.equal(coords.source_workbook_sha256, c91.source.workbook_sha256, "coordinate fixture names the contract workbook");
const identity = await json(join(ROOT, c91.source.identity_fixture));
assert.equal(identity.schema, "globalgrid2050.project-identity.v6");
assert.equal(identity.records.length, identity.raw_record_count);
assert.equal(coords.source_records, identity.raw_record_count, "workbook and identity hold the same refs");
// 2. the page's own loader, unmodified, against these bytes
const ORIGIN = "http://release.invalid";
const BASE = `${ORIGIN}/uk_renewables_pipeline/${ID}/`;
globalThis.window = { location: { origin: ORIGIN, href: BASE } };
globalThis.fetch = async (path) => {
const url = new URL(path, BASE);
assert.ok(url.pathname.startsWith(`/uk_renewables_pipeline/${ID}/`), `loader fetched outside the release: ${url}`);
const file = join(RELEASE, decodeURIComponent(url.pathname.slice(`/uk_renewables_pipeline/${ID}/`.length)));
const body = await text(file);
return { ok: true, status: 200, url: url.href, json: async () => JSON.parse(body) };
};
const loader = await import(new URL("../scripts/data/canonical-projects-v9-5-1.js", import.meta.url).href);
const model = await loader.loadCanonicalProjectsV9_5_1();
assert.equal(model.projects.length, c951.expected.project_count);
assert.equal(Math.round(model.metadata.capacity_mw), c951.expected.displayed_capacity_mw);
// 3. partitions are the manifest's bytes
const manifest = await json(join(RELEASE, "data", "v9.1", "build_manifest.json"));
for (const part of [...manifest.project_partitions, ...manifest.atlas_partitions]) {
assert.equal(sha256(await readFile(join(RELEASE, part.path))), part.sha256, `${part.path} hash`);
}
const atlasFeatures = manifest.atlas_partitions.reduce((n, p) => n + p.feature_count, 0);
assert.equal(atlasFeatures, manifest.geometry_count, "atlas features = valid geometries");
for (const key of Object.keys(c91.expected)) assert.equal(manifest[key], c91.expected[key], `manifest ${key}`);
assert.equal(manifest.source_dataset, c91.source.dataset);
assert.equal(manifest.source_record_count, identity.raw_record_count);
// 4. the newspaper: unchanged Q2 feed, every bound ref still resolves
const feedBytes = await readFile(join(ROOT, "dist", "major_project_news_v9_5_1.json"));
assert.equal(sha256(feedBytes), NEWS_FEED_SHA256, "dist/major_project_news_v9_5_1.json must not be rebuilt by this release");
const feed = JSON.parse(feedBytes);
const byRef = new Map(model.projects.map((p) => [p.repd_ref, p]));
const boundRefs = new Set(feed.canonical_items.map((item) => String(item.repd_ref)));
const unresolved = [...boundRefs].filter((ref) => !byRef.has(ref));
const beacon = byRef.get(feed.beacon_fen_contract.repd_ref);
assert.ok(beacon, "Beacon Fen must be in the spine");
assert.equal(beacon.capacity_mw, feed.beacon_fen_contract.official_capacity_mw, "Beacon Fen official capacity");
// 5. interconnectors are the parent's
for (const rel of ["contracts/interconnectors.v9.8.json", "data/v9.8/interconnectors.json", "data/v9.8/interconnectors_manifest.json"]) {
assert.equal(sha256(await readFile(join(RELEASE, rel))), sha256(await readFile(join(PARENT, rel))), `${rel} is the parent's`);
}
// 6. page identity
const fmt = (n) => n.toLocaleString("en-GB");
const html = await text(join(RELEASE, "index.html"));
assert.ok(html.includes(`UK RENEWABLES PIPELINE ${ID}`), "index.html h1 names this release");
assert.ok(new RegExp(`Canonical DESNZ REPD Q3 2026[^<]*${fmt(manifest.project_count)} solar, BESS and wind records`).test(html), "index.html states the Q3 register count");
assert.ok(!html.includes("REPD Q2 2026: 7,680"), "index.html must not claim the Q2 register");
assert.ok(html.includes("scripts/app-v9-8.js"), "index.html loads the v9.8 app");
const label = html.slice(html.indexOf("<body>"), html.indexOf('<section class="newspaper">'));
assert.ok(!/CANDIDATE/.test(label.replaceAll("RELEASE CANDIDATE", "")), "brand, nav, h1 and meta carry no candidate label other than this version's own state");
assert.ok(label.includes(`<small>UK RENEWABLES PIPELINE · V${VERSION}</small>`), "brand names the version");
assert.ok(label.includes(`<a class="active" href="#">V${VERSION} ${STATE} · REPD Q3 2026</a>`), "nav names the version");
assert.ok(label.includes(`<a href="../${PARENT_ID}/">`), "nav links back to the parent");
assert.ok(label.includes('<a href="../versions.html">'), "nav links to the list of all versions");
assert.ok(new RegExp(`<strong>V${VERSION.replace(".", "\\.")} · REPD OCTOBER 2026 \\(Q3\\) · [^<]+ · ${STATE} · \\d+ November 2026</strong>`).test(label), "meta line names the version and its date");
assert.ok(html.includes(`<title>GlobalGrid2050 | UK Renewables Pipeline ${ID}</title>`), "title names this release");
console.log(`check_v9_23: ${ID} loader PASS - ${fmt(model.projects.length)} records, ${model.metadata.capacity_mw.toLocaleString("en-GB", { minimumFractionDigits: 2 })} MW, `
+ `${manifest.geometry_count} with geometry / ${manifest.missing_geometry_count} without; news feed unchanged, `
+ `${boundRefs.size - unresolved.length}/${boundRefs.size} bound refs resolve${unresolved.length ? ` (unresolved: ${unresolved.join(", ")})` : ""}`);Run V9 23
A shell script in the tests folder of GlobalGrid2050 that tests interconnectors.
Set aside from the main view: A comment at the top of the file says a tool wrote it. (noise-generated, proposed by noise.py). All set-aside files, with reasons. Nothing was deleted.
Evidence
- line 4 comment: # Written by automation/pipeline_release/new_version.py by the pattern of run_v9_13.sh.
testglobalgrid2050 / uk_renewables_pipeline/202611160020/tests/run_v9_23.sh · lines 1–99 of 99 · version 2026-11-16 00:20 · Entry point · pattern is_listed (shared by 38 files)
- What it does
- It tests interconnectors. Defines is_listed, walk. 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.
- Inputs & outputs
- In: JSON file release.v9.1.json.
- Downstream impact
- Used directly by 1 file: GlobalGrid2050 V923 Six Hour Python Repair Workflow (globalgrid2050).
- What it achieves
- Defines `is_listed` and `walk`.
- Why it matters
- Run by GlobalGrid2050 V923 Six Hour Python Repair Workflow.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611160020/tests · shell script
- Uses
- Check V9 23 (script call)
- Used by
- run by GlobalGrid2050 V923 Six Hour Python Repair Workflow (workflow run)
- Produces
- is_listed, walk
- Defines here
- is_listed, walk
- 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/202611160020/tests/run_v9_23.sh:1-99 · blob f59419a155de43f1fb8823bfa9f4e0e8c19b13ab · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: unknown · effects: process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
#!/usr/bin/env bash
# run_v9_23.sh - Pipeline News V9.23: one visible step on its parent, same REPD
# October 2026 (Q3 2026) register. Offline, in a git checkout or a plain copy.
# Written by automation/pipeline_release/new_version.py by the pattern of run_v9_13.sh.
set -euo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
RELEASE="$(cd "$HERE/.." && pwd)"
ID="$(basename "$RELEASE")"
PARENT_ID="202611151300"
FIXTURE_OWNER="202611132345"
PARENT="$(cd "$RELEASE/../$PARENT_ID" && pwd)"
ROOT="$(cd "$RELEASE/../.." && pwd)"
# The parent by git tree of the bytes ON DISK.
PARENT_TREE="301e163ccacf274bbb780688e12258b0aed3dbdd"
SCRATCH="$(mktemp -d)"
trap 'rm -rf "$SCRATCH"' EXIT
git init -q --bare "$SCRATCH/objects.git"
(cd "$ROOT" && find "uk_renewables_pipeline/$PARENT_ID" -type f -not -path '*/__pycache__/*' -not -name '*.pyc' -not -path '*/node_modules/*' | sort) \
| GIT_DIR="$SCRATCH/objects.git" GIT_WORK_TREE="$ROOT" GIT_INDEX_FILE="$SCRATCH/index" \
git -C "$ROOT" -c core.autocrlf=false update-index --add --stdin
actual_tree="$(GIT_DIR="$SCRATCH/objects.git" GIT_INDEX_FILE="$SCRATCH/index" git write-tree --prefix="uk_renewables_pipeline/$PARENT_ID/")"
test "$actual_tree" = "$PARENT_TREE" || { echo "parent $PARENT_ID tree is $actual_tree, expected $PARENT_TREE" >&2; exit 1; }
# WHAT THIS VERSION CHANGES FROM ITS PARENT, NAMED ONE FILE AT A TIME.
CHANGED_FROM_PARENT=(
CHANGES.md
README.md
docs/V923-AUDIT.md
index.html
scripts/plugins/live-news.js
scripts/plugins/machine-notes-v923.js
scripts/plugins/projects-v9-8.js
styles/v9-23.css
tests/browser_real_map_to_engine_agent7.mjs
tests/check_v9_23.mjs
tests/run_v9_23.sh
)
REMOVED_FROM_PARENT=(
tests/check_v9_22.mjs
tests/run_v9_22.sh
)
is_listed() {
local needle="$1"; shift
for entry in "$@"; do [[ "$entry" == "$needle" ]] && return 0; done
return 1
}
walk() { find "$1" -type f -not -path '*/__pycache__/*' -not -name '*.pyc' -not -path '*/node_modules/*' | sort; }
while IFS= read -r file; do
relative="${file#$PARENT/}"
is_listed "$relative" "${CHANGED_FROM_PARENT[@]}" && continue
if is_listed "$relative" "${REMOVED_FROM_PARENT[@]}"; then
test ! -e "$RELEASE/$relative" || { echo "should not be copied: $relative" >&2; exit 1; }
continue
fi
cmp -s "$file" "$RELEASE/$relative" || { echo "inherited file differs from parent: $relative" >&2; exit 1; }
done < <(walk "$PARENT")
while IFS= read -r file; do
relative="${file#$RELEASE/}"
is_listed "$relative" "${CHANGED_FROM_PARENT[@]}" && continue
test -e "$PARENT/$relative" || { echo "unlisted new file: $relative" >&2; exit 1; }
done < <(walk "$RELEASE")
for relative in "${CHANGED_FROM_PARENT[@]}"; do
test -f "$RELEASE/$relative" || { echo "listed but missing: $relative" >&2; exit 1; }
if [[ -f "$PARENT/$relative" ]] && cmp -s "$PARENT/$relative" "$RELEASE/$relative"; then
echo "listed as changed but identical to parent: $relative" >&2; exit 1
fi
done
# The register is the parent's: contract, spine and interconnector product byte for byte.
cmp -s "$PARENT/contracts/release.v9.1.json" "$RELEASE/contracts/release.v9.1.json"
grep -q "\"identity_fixture\": \"uk_renewables_pipeline/$FIXTURE_OWNER/fixtures/2026q3/project_identity_2026q3.json\"" "$RELEASE/contracts/release.v9.1.json"
diff -r "$PARENT/data/v9.1" "$RELEASE/data/v9.1"
diff -r "$PARENT/data/v9.8" "$RELEASE/data/v9.8"
# Spine and interconnector product rebuilt in a scratch root that holds this version
# and, at the fixture owner's path, only the two fixtures the contract binds. They
# must reproduce the committed bytes.
SROOT="$SCRATCH/root"
COPY="$SROOT/uk_renewables_pipeline/$ID"
mkdir -p "$SROOT/uk_renewables_pipeline/$FIXTURE_OWNER/fixtures"
cp -a "$ROOT/uk_renewables_pipeline/$FIXTURE_OWNER/fixtures/2026q3" "$SROOT/uk_renewables_pipeline/$FIXTURE_OWNER/fixtures/"
cp -a "$RELEASE" "$COPY"
rm -rf "$COPY/data/v9.1"
PYTHONDONTWRITEBYTECODE=1 python3 "$COPY/scripts/data/build_v9_1_spine.py"
diff -r "$RELEASE/data/v9.1" "$COPY/data/v9.1"
node "$COPY/scripts/build/interconnectors-v9-8.mjs" >/dev/null
diff -r "$RELEASE/data/v9.8" "$COPY/data/v9.8"
node "$HERE/check_v9_23.mjs"
node "$HERE/check_map_contract_all_rows.mjs"
while IFS= read -r source; do
node --check "$source"
done < <(find "$RELEASE/scripts" -type f \( -name '*.js' -o -name '*.mjs' \) -print | sort)
echo "V9.23 ($ID) validation suite: PASS ($ROOT)"V9 24
A style sheet in the styles folder of GlobalGrid2050.
renderglobalgrid2050 / uk_renewables_pipeline/202611161244/styles/v9-24.css · lines 1–12 of 12 · version 2026-11-16 12:44 · 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.
- 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
- No statement of purpose was found in the file, a README line naming it, or its name. Described from its file name only (a candidate, not yet checked against the code).
- Why it matters
- Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611161244/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/202611161244/styles/v9-24.css:1-12 · blob 34751365de5cdc154003493496cc035bab33eba9 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
.v924-pilot{margin:14px 0 22px;border:1px solid #344052;background:#0c1119;padding:16px;color:#e6e9ef;border-radius:8px}
.v924-pilot h2{font-size:19px;margin:0 0 8px}.v924-pilot p{color:#b5c2d0;font-size:13px;margin:5px 0 10px}
.v924-pilot [data-pilot-count]{font-size:13px;font-weight:700;color:#c9f0fb}
.v924-pilot input{width:100%;box-sizing:border-box;border:1px solid #536579;background:#0b1017;color:#fff;padding:12px;font-size:16px;border-radius:5px}
.v924-row{display:grid;grid-template-columns:1.1fr 1fr 1.5fr auto;gap:12px;padding:11px 0;border-top:1px solid #263241;align-items:start;font-size:13px}
.v924-row-name strong,.v924-row-name span,.v924-row-detail span,.v924-row-note span{display:block}.v924-row-name span,.v924-row-note span{color:#9daec0;font-size:12px}
.v924-row-note strong{display:block;color:#f1c770;font-size:11px;letter-spacing:.025em}.v924-row-note a,.v924-map{color:#70d7f4}
.v924-pagination{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;margin-top:12px}
.v924-pagination button{background:#213245;color:#fff;border:1px solid #587186;border-radius:4px;padding:10px 16px;min-height:44px}
.v924-pagination button:disabled{opacity:.4}
@media(max-width:850px){.v924-row{grid-template-columns:1fr 1fr}.v924-row-note{grid-column:1/-1}.v924-map{align-self:center}}
@media(max-width:520px){.v924-row{grid-template-columns:1fr;gap:6px}.v924-row-note{grid-column:1}.v924-pilot{padding:12px}.v924-row-name{font-size:15px}.v924-row-detail{display:flex;gap:12px;flex-wrap:wrap}}Check V9 24
A JavaScript module in the tests folder of GlobalGrid2050 that tests major project news, interconnectors and the Renewable Energy Planning Database (REPD) register, using SHA-256.
testglobalgrid2050 / uk_renewables_pipeline/202611161244/tests/check_v9_24.mjs · lines 1–112 of 112 · version 2026-11-16 12:44
- What it does
- It tests major project news, interconnectors and the REPD register. Defines text, json, sha256, fmt. 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.
- Inputs & outputs
- In: JSON file release.v9.1.json; JSON file release.v9.5.1.json; JSON file build_manifest.json; JSON file major_project_news_v9_5_1.json; JSON file interconnectors.v9.8.json; JSON file interconnectors.json; JSON file interconnectors_manifest.json.
- Downstream impact
- Used directly by 1 file: Run V9 24 (globalgrid2050).
- What it achieves
- It is built from the text step (`text`), the JSON step (`json`) and the sha256 step (`sha256`). Pipeline News V9.24, proven from the bytes and through the page's OWN loaders (the pattern of `check_v9_13.mjs`).
- Why it matters
- Checked by Run V9 24.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611161244/tests · JavaScript module
- Uses
- Canonical Projects V9 5 1 (new URL import.meta.url), node:assert/strict, node:crypto, node:fs/promises, node:url, node:path
- Used by
- run by Run V9 24 (script call)
- Produces
- text, json, sha256, fmt
- Defines here
- text, json, sha256, fmt
- 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/202611161244/tests/check_v9_24.mjs:1-112 · blob 700efbfe31ebe902d25f320adfb69b6f150fb1bc · 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_24.mjs - Pipeline News V9.24, proven from the bytes and through the
* page's OWN loaders (the pattern of check_v9_13.mjs).
*
* 1. The contracts bind the fixtures held by 202611132345 by path and sha256.
* 2. The page's own loader chain is imported unmodified and executed against the
* files in this folder; every invariant the browser asserts is asserted here.
* 3. The spine partitions are what the manifest says (sha256 and counts).
* 4. The UK newspaper feed is unchanged and Beacon Fen still resolves.
* 5. The interconnector product and contract are the parent's, byte for byte.
* 6. The page states its own identity and version label.
*
* Run: node tests/check_v9_24.mjs
*/
import assert from "node:assert/strict";
import { createHash } from "node:crypto";
import { readFile } from "node:fs/promises";
import { fileURLToPath } from "node:url";
import { basename, dirname, join } from "node:path";
const HERE = dirname(fileURLToPath(import.meta.url));
const RELEASE = join(HERE, "..");
const ID = basename(RELEASE);
const ROOT = join(RELEASE, "..", "..");
const VERSION = "9.24";
const STATE = "BUILD";
const PARENT_ID = "202611160020";
const FIXTURE_OWNER = "202611132345";
const PARENT = join(RELEASE, "..", PARENT_ID);
const text = (p) => readFile(p, "utf8");
const json = async (p) => JSON.parse(await text(p));
const sha256 = (b) => createHash("sha256").update(b).digest("hex");
const NEWS_FEED_SHA256 = "cea104c3e9cfc07971680afdf5f64073e1d4825b63bfaf4e969266df8386ebbd";
// 1. contracts bind fixtures
const c91 = await json(join(RELEASE, "contracts", "release.v9.1.json"));
const c951 = await json(join(RELEASE, "contracts", "release.v9.5.1.json"));
assert.equal(c91.source.dataset, "DESNZ Renewable Energy Planning Database Q3 2026");
for (const [pathKey, shaKey] of [["identity_fixture", "identity_fixture_sha256"], ["coordinate_fixture", "coordinate_fixture_sha256"]]) {
const rel = c91.source[pathKey];
assert.ok(rel.startsWith(`uk_renewables_pipeline/${FIXTURE_OWNER}/fixtures/`), `${pathKey} must be the fixture owner's: ${rel}`);
assert.equal(sha256(await readFile(join(ROOT, rel))), c91.source[shaKey], `${pathKey} bytes`);
}
const coords = await json(join(ROOT, c91.source.coordinate_fixture));
assert.equal(coords.source_workbook_sha256, c91.source.workbook_sha256, "coordinate fixture names the contract workbook");
const identity = await json(join(ROOT, c91.source.identity_fixture));
assert.equal(identity.schema, "globalgrid2050.project-identity.v6");
assert.equal(identity.records.length, identity.raw_record_count);
assert.equal(coords.source_records, identity.raw_record_count, "workbook and identity hold the same refs");
// 2. the page's own loader, unmodified, against these bytes
const ORIGIN = "http://release.invalid";
const BASE = `${ORIGIN}/uk_renewables_pipeline/${ID}/`;
globalThis.window = { location: { origin: ORIGIN, href: BASE } };
globalThis.fetch = async (path) => {
const url = new URL(path, BASE);
assert.ok(url.pathname.startsWith(`/uk_renewables_pipeline/${ID}/`), `loader fetched outside the release: ${url}`);
const file = join(RELEASE, decodeURIComponent(url.pathname.slice(`/uk_renewables_pipeline/${ID}/`.length)));
const body = await text(file);
return { ok: true, status: 200, url: url.href, json: async () => JSON.parse(body) };
};
const loader = await import(new URL("../scripts/data/canonical-projects-v9-5-1.js", import.meta.url).href);
const model = await loader.loadCanonicalProjectsV9_5_1();
assert.equal(model.projects.length, c951.expected.project_count);
assert.equal(Math.round(model.metadata.capacity_mw), c951.expected.displayed_capacity_mw);
// 3. partitions are the manifest's bytes
const manifest = await json(join(RELEASE, "data", "v9.1", "build_manifest.json"));
for (const part of [...manifest.project_partitions, ...manifest.atlas_partitions]) {
assert.equal(sha256(await readFile(join(RELEASE, part.path))), part.sha256, `${part.path} hash`);
}
const atlasFeatures = manifest.atlas_partitions.reduce((n, p) => n + p.feature_count, 0);
assert.equal(atlasFeatures, manifest.geometry_count, "atlas features = valid geometries");
for (const key of Object.keys(c91.expected)) assert.equal(manifest[key], c91.expected[key], `manifest ${key}`);
assert.equal(manifest.source_dataset, c91.source.dataset);
assert.equal(manifest.source_record_count, identity.raw_record_count);
// 4. the newspaper: unchanged Q2 feed, every bound ref still resolves
const feedBytes = await readFile(join(ROOT, "dist", "major_project_news_v9_5_1.json"));
assert.equal(sha256(feedBytes), NEWS_FEED_SHA256, "dist/major_project_news_v9_5_1.json must not be rebuilt by this release");
const feed = JSON.parse(feedBytes);
const byRef = new Map(model.projects.map((p) => [p.repd_ref, p]));
const boundRefs = new Set(feed.canonical_items.map((item) => String(item.repd_ref)));
const unresolved = [...boundRefs].filter((ref) => !byRef.has(ref));
const beacon = byRef.get(feed.beacon_fen_contract.repd_ref);
assert.ok(beacon, "Beacon Fen must be in the spine");
assert.equal(beacon.capacity_mw, feed.beacon_fen_contract.official_capacity_mw, "Beacon Fen official capacity");
// 5. interconnectors are the parent's
for (const rel of ["contracts/interconnectors.v9.8.json", "data/v9.8/interconnectors.json", "data/v9.8/interconnectors_manifest.json"]) {
assert.equal(sha256(await readFile(join(RELEASE, rel))), sha256(await readFile(join(PARENT, rel))), `${rel} is the parent's`);
}
// 6. page identity
const fmt = (n) => n.toLocaleString("en-GB");
const html = await text(join(RELEASE, "index.html"));
assert.ok(html.includes(`UK RENEWABLES PIPELINE ${ID}`), "index.html h1 names this release");
assert.ok(new RegExp(`Canonical DESNZ REPD Q3 2026[^<]*${fmt(manifest.project_count)} solar, BESS and wind records`).test(html), "index.html states the Q3 register count");
assert.ok(!html.includes("REPD Q2 2026: 7,680"), "index.html must not claim the Q2 register");
assert.ok(html.includes("scripts/app-v9-8.js"), "index.html loads the v9.8 app");
const label = html.slice(html.indexOf("<body>"), html.indexOf('<section class="newspaper">'));
assert.ok(!/CANDIDATE/.test(label.replaceAll("RELEASE CANDIDATE", "")), "brand, nav, h1 and meta carry no candidate label other than this version's own state");
assert.ok(label.includes(`<small>UK RENEWABLES PIPELINE · V${VERSION}</small>`), "brand names the version");
assert.ok(label.includes(`<a class="active" href="#">V${VERSION} ${STATE} · REPD Q3 2026</a>`), "nav names the version");
assert.ok(label.includes(`<a href="../${PARENT_ID}/">`), "nav links back to the parent");
assert.ok(label.includes('<a href="../versions.html">'), "nav links to the list of all versions");
assert.ok(new RegExp(`<strong>V${VERSION.replace(".", "\\.")} · REPD OCTOBER 2026 \\(Q3\\) · [^<]+ · ${STATE} · \\d+ November 2026</strong>`).test(label), "meta line names the version and its date");
assert.ok(html.includes(`<title>GlobalGrid2050 | UK Renewables Pipeline ${ID}</title>`), "title names this release");
console.log(`check_v9_24: ${ID} loader PASS - ${fmt(model.projects.length)} records, ${model.metadata.capacity_mw.toLocaleString("en-GB", { minimumFractionDigits: 2 })} MW, `
+ `${manifest.geometry_count} with geometry / ${manifest.missing_geometry_count} without; news feed unchanged, `
+ `${boundRefs.size - unresolved.length}/${boundRefs.size} bound refs resolve${unresolved.length ? ` (unresolved: ${unresolved.join(", ")})` : ""}`);Run V9 24
A shell script in the tests folder of GlobalGrid2050 that tests interconnectors.
Set aside from the main view: A comment at the top of the file says a tool wrote it. (noise-generated, proposed by noise.py). All set-aside files, with reasons. Nothing was deleted.
Evidence
- line 4 comment: # Written by automation/pipeline_release/new_version.py by the pattern of run_v9_13.sh.
testglobalgrid2050 / uk_renewables_pipeline/202611161244/tests/run_v9_24.sh · lines 1–99 of 99 · version 2026-11-16 12:44 · Entry point · pattern is_listed (shared by 38 files)
- What it does
- It tests interconnectors. Defines is_listed, walk. 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.
- Inputs & outputs
- In: JSON file release.v9.1.json.
- Downstream impact
- It is itself an entry point (shell script); no other file was found loading it.
- What it achieves
- Defines `is_listed` and `walk`.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611161244/tests · shell script
- Uses
- Check V9 24 (script call)
- Used by
- none found
- Produces
- is_listed, walk
- Defines here
- is_listed, walk
- 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/202611161244/tests/run_v9_24.sh:1-99 · blob 069f6600daf450102b31220d2d0c650894447d31 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: unknown · effects: process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
#!/usr/bin/env bash
# run_v9_24.sh - Pipeline News V9.24: one visible step on its parent, same REPD
# October 2026 (Q3 2026) register. Offline, in a git checkout or a plain copy.
# Written by automation/pipeline_release/new_version.py by the pattern of run_v9_13.sh.
set -euo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
RELEASE="$(cd "$HERE/.." && pwd)"
ID="$(basename "$RELEASE")"
PARENT_ID="202611160020"
FIXTURE_OWNER="202611132345"
PARENT="$(cd "$RELEASE/../$PARENT_ID" && pwd)"
ROOT="$(cd "$RELEASE/../.." && pwd)"
# The parent by git tree of the bytes ON DISK.
PARENT_TREE="32893c1e49a884c56dd7495be205367bbd8177ae"
SCRATCH="$(mktemp -d)"
trap 'rm -rf "$SCRATCH"' EXIT
git init -q --bare "$SCRATCH/objects.git"
(cd "$ROOT" && find "uk_renewables_pipeline/$PARENT_ID" -type f -not -path '*/__pycache__/*' -not -name '*.pyc' -not -path '*/node_modules/*' | sort) \
| GIT_DIR="$SCRATCH/objects.git" GIT_WORK_TREE="$ROOT" GIT_INDEX_FILE="$SCRATCH/index" \
git -C "$ROOT" -c core.autocrlf=false update-index --add --stdin
actual_tree="$(GIT_DIR="$SCRATCH/objects.git" GIT_INDEX_FILE="$SCRATCH/index" git write-tree --prefix="uk_renewables_pipeline/$PARENT_ID/")"
test "$actual_tree" = "$PARENT_TREE" || { echo "parent $PARENT_ID tree is $actual_tree, expected $PARENT_TREE" >&2; exit 1; }
# WHAT THIS VERSION CHANGES FROM ITS PARENT, NAMED ONE FILE AT A TIME.
CHANGED_FROM_PARENT=(
CHANGES.md
README.md
index.html
scripts/plugins/solar1000-v924.js
solar1000/candidates.json
solar1000/manifest.json
styles/v9-24.css
tests/check_solar1000_v924.mjs
tests/check_v9_24.mjs
tests/run_v9_24.sh
)
REMOVED_FROM_PARENT=(
tests/check_v9_23.mjs
tests/run_v9_23.sh
)
is_listed() {
local needle="$1"; shift
for entry in "$@"; do [[ "$entry" == "$needle" ]] && return 0; done
return 1
}
walk() { find "$1" -type f -not -path '*/__pycache__/*' -not -name '*.pyc' -not -path '*/node_modules/*' | sort; }
while IFS= read -r file; do
relative="${file#$PARENT/}"
is_listed "$relative" "${CHANGED_FROM_PARENT[@]}" && continue
if is_listed "$relative" "${REMOVED_FROM_PARENT[@]}"; then
test ! -e "$RELEASE/$relative" || { echo "should not be copied: $relative" >&2; exit 1; }
continue
fi
cmp -s "$file" "$RELEASE/$relative" || { echo "inherited file differs from parent: $relative" >&2; exit 1; }
done < <(walk "$PARENT")
while IFS= read -r file; do
relative="${file#$RELEASE/}"
is_listed "$relative" "${CHANGED_FROM_PARENT[@]}" && continue
test -e "$PARENT/$relative" || { echo "unlisted new file: $relative" >&2; exit 1; }
done < <(walk "$RELEASE")
for relative in "${CHANGED_FROM_PARENT[@]}"; do
test -f "$RELEASE/$relative" || { echo "listed but missing: $relative" >&2; exit 1; }
if [[ -f "$PARENT/$relative" ]] && cmp -s "$PARENT/$relative" "$RELEASE/$relative"; then
echo "listed as changed but identical to parent: $relative" >&2; exit 1
fi
done
# The register is the parent's: contract, spine and interconnector product byte for byte.
cmp -s "$PARENT/contracts/release.v9.1.json" "$RELEASE/contracts/release.v9.1.json"
grep -q "\"identity_fixture\": \"uk_renewables_pipeline/$FIXTURE_OWNER/fixtures/2026q3/project_identity_2026q3.json\"" "$RELEASE/contracts/release.v9.1.json"
diff -r "$PARENT/data/v9.1" "$RELEASE/data/v9.1"
diff -r "$PARENT/data/v9.8" "$RELEASE/data/v9.8"
# Spine and interconnector product rebuilt in a scratch root that holds this version
# and, at the fixture owner's path, only the two fixtures the contract binds. They
# must reproduce the committed bytes.
SROOT="$SCRATCH/root"
COPY="$SROOT/uk_renewables_pipeline/$ID"
mkdir -p "$SROOT/uk_renewables_pipeline/$FIXTURE_OWNER/fixtures"
cp -a "$ROOT/uk_renewables_pipeline/$FIXTURE_OWNER/fixtures/2026q3" "$SROOT/uk_renewables_pipeline/$FIXTURE_OWNER/fixtures/"
cp -a "$RELEASE" "$COPY"
rm -rf "$COPY/data/v9.1"
PYTHONDONTWRITEBYTECODE=1 python3 "$COPY/scripts/data/build_v9_1_spine.py"
diff -r "$RELEASE/data/v9.1" "$COPY/data/v9.1"
node "$COPY/scripts/build/interconnectors-v9-8.mjs" >/dev/null
diff -r "$RELEASE/data/v9.8" "$COPY/data/v9.8"
node "$HERE/check_solar1000_v924.mjs"
node "$HERE/check_v9_24.mjs"
node "$HERE/check_map_contract_all_rows.mjs"
while IFS= read -r source; do
node --check "$source"
done < <(find "$RELEASE/scripts" -type f \( -name '*.js' -o -name '*.mjs' \) -print | sort)
echo "V9.24 ($ID) validation suite: PASS ($ROOT)"Test Model
A JavaScript module in the global datacentres folder of GlobalGrid2050 that tests projects.
testglobalgrid2050 / uk_renewables_pipeline/202611161630/global-datacentres/test-model.cjs · lines 1–40 of 40 · version 2026-11-16 16:30 · Not reached from any entry point (candidate for review)
- What it does
- It tests projects. Uses libraries node:assert/strict, node:fs, node:path, node:vm. Side effects: reads or writes files.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'datacentres'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Inputs & outputs
- In: JSON file projects.json.
- What it achieves
- Offline checks of the production sample and its defensive browser model. Its code works with 10 MW, 15 MW and 20 MW.
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611161630/global-datacentres · JavaScript module
- Uses
- node:assert/strict, node:fs, node:path, node:vm
- Used by
- none found
- 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/202611161630/global-datacentres/test-model.cjs:1-40 · blob e7e9b7b07d05a9f4878bca44053c0d439b5a6986 · 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: unreached_review
/* Offline checks of the production sample and its defensive browser model. */
const assert = require('node:assert/strict');
const fs = require('node:fs');
const path = require('node:path');
require('node:vm').runInThisContext(fs.readFileSync(path.join(__dirname, '../scripts/plugins/global-datacentres-v925.js'), 'utf8'));
const api = globalThis.GlobalDatacentres;
const data = JSON.parse(fs.readFileSync(path.join(__dirname, 'projects.json'), 'utf8'));
assert.equal(api.validate(data), data);
assert.equal(data.record_count, 12);
assert.equal(data.country_count, 10);
assert.equal(api.filter(data.records, 'utah', '').length, 1);
assert.equal(api.filter(data.records, '', 'Q30').length, 3);
assert.equal(api.filter(data.records, 'utah', 'Q17').length, 0);
assert.equal(api.filter(data.records, 'DC-WD-Q11236058', '')[0].name, 'NTT Telepark Dojima');
assert.equal(api.filter(data.records, 'there is no such record', '').length, 0);
const utah = data.records.find(p => p.id === 'DC-WD-Q12857142');
assert.ok(api.mapUrl(utah).startsWith('https://www.openstreetmap.org/?mlat=40.43153&mlon=-111.933092'));
const yotta = data.records.find(p => p.id === 'DC-WD-Q142068471');
assert.equal(api.mapUrl(yotta), null);
assert.deepEqual(api.capacityLabels(yotta), ['IT load: not reported', 'Site demand: not reported', 'Grid connection: not reported']);
const coarse = data.records.find(p => p.id === 'DC-WD-Q520438');
assert.ok(api.mapUrl(coarse).includes('#map=8/'));
[
d => { d.records[0].id = '1018'; },
d => { d.records[0].location = {latitude: 200, longitude: 0, precision_degrees: 1}; },
d => { d.records[0].source.revision_url = 'javascript:alert(1)'; },
d => { d.records[0].source.licence = 'UNKNOWN'; },
d => { d.records[0].verification_status = 'VERIFIED'; },
d => { d.records[0].capacity.it_load_mw = 100; },
d => { d.country_count = 11; },
d => { d.records[1].id = d.records[0].id; },
].forEach(mutate => { const bad = structuredClone(data); mutate(bad); assert.throws(() => api.validate(bad)); });
const separated = structuredClone(data);
separated.records[0].capacity.it_load_mw = 10;
separated.records[0].capacity.site_demand_mw = 15;
separated.records[0].capacity.grid_connection_mw = 20;
Object.keys(separated.records[0].capacity_sources).forEach(k => { separated.records[0].capacity_sources[k] = 'https://fixtures.example/capacity-test'; });
api.validate(separated);
assert.deepEqual(api.capacityLabels(separated.records[0]), ['IT load: 10 MW', 'Site demand: 15 MW', 'Grid connection: 20 MW']);
console.log('Global data-centre model: PASS (production source records plus synthetic negative cases)');Evidence V925
A JavaScript module in the plugins folder of GlobalGrid2050 that uses SHA-256. It loads evidence (`loadEvidence`) and renders evidence (`renderEvidence`).
renderglobalgrid2050 / uk_renewables_pipeline/202611161630/scripts/plugins/evidence-v925.js · lines 1–103 of 103 · version 2026-11-16 16:30 · pattern nonempty (shared by 2 files)
- What it does
- It draws its content. Defines 8 functions or classes, including require, moment, nonempty, add, safeArticleURL. Side effects: changes the web page (DOM); makes network requests.
- 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.
- Inputs & outputs
- In: JSON file latest.json; JSON file evidence.json.
- Downstream impact
- Used directly by 1 file: Solar1000 V924 (globalgrid2050). Reached from 5 other entry points, including GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/); GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050); V923 Public Readback Workflow (neural-link-between-agents).
- What it achieves
- Weekly machine matches are leads for review, never verified project events.
- Why it matters
- Imported by Solar1000 V924.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611161630/scripts/plugins · JavaScript module
- Uses
- none found
- Used by
- imported by Solar1000 V924 (import)
- Produces
- loadEvidence, renderEvidence
- Defines here
- require, moment, nonempty, add, safeArticleURL, get, loadEvidence, renderEvidence
- 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/202611161630/scripts/plugins/evidence-v925.js:1-103 · blob e770a9c642ce35dc056b58d2bbc7e6de3fb2c5fb · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom, network · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
// Weekly machine matches are leads for review, never verified project events.
const SCHEMA = 'globalgrid2050.solar-evidence.provisional.v1';
const RESEARCH_SCOPE = 'Completed bounded feed scan using strict name/REPD-ID matching; not independent project-first research. No match is not proof no evidence exists.';
const WEEK_MS = 7 * 24 * 60 * 60 * 1000;
function require(condition, message) { if (!condition) throw Error(message); }
function moment(value) {
require(typeof value === 'string' && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/.test(value), 'UTC timestamp required');
const time = Date.parse(value);
require(Number.isFinite(time) && new Date(time).toISOString().replace('.000Z', 'Z') === value, 'Invalid UTC timestamp');
return time;
}
function nonempty(value) { return typeof value === 'string' && value.trim().length > 0; }
function add(parent, tag, value) {
const node = document.createElement(tag);
if (value !== undefined) node.textContent = String(value);
parent.appendChild(node);
return node;
}
function safeArticleURL(value) {
const url = new URL(value);
require(url.protocol === 'https:' && !url.username && !url.password && !url.port, 'Unsafe HTTPS link');
return url.href;
}
async function get(url) {
const response = await fetch(url, {cache: 'no-store', signal: AbortSignal.timeout(10000)});
require(response.ok && response.url === url.href, 'Evidence snapshot unavailable');
return response;
}
export async function loadEvidence(pointerPath, ids) {
const pointerURL = new URL(pointerPath, window.location.href);
require(pointerURL.origin === window.location.origin || pointerURL.href === 'https://raw.githubusercontent.com/Ventusltd/globalgrid2050/pipeline-evidence-data/dist/news/evidence/latest.json', 'Unapproved evidence pointer');
const pointer = await (await get(pointerURL)).json();
require(pointer.schema === SCHEMA && pointer.project_count === 1000 && pointer.review_required === true, 'Evidence pointer failed validation');
require(/^snapshot_\d{8}T\d{6}Z$/.test(pointer.snapshot) && pointer.json === pointer.snapshot + '/evidence.json', 'Invalid evidence path');
require(/^[a-f0-9]{64}$/.test(pointer.sha256?.['evidence.json']), 'Missing evidence digest');
const bytes = await (await get(new URL(pointer.json, pointerURL))).arrayBuffer();
const digest = Array.from(new Uint8Array(await crypto.subtle.digest('SHA-256', bytes)), n => n.toString(16).padStart(2, '0')).join('');
require(digest === pointer.sha256['evidence.json'], 'Evidence digest mismatch');
const data = JSON.parse(new TextDecoder().decode(bytes));
require(data.schema === SCHEMA && data.seed_release === '202611161244' && data.project_count === 1000 && data.verified_count === 0 && data.review_required === true, 'Evidence schema failed validation');
require(data.generated_at === pointer.generated_at && data.evidence_count === pointer.evidence_count, 'Evidence pointer disagrees with snapshot');
const generated = moment(data.generated_at), acquired = moment(data.source_run_at);
require(acquired <= generated, 'Snapshot predates acquisition');
require(data.research_scope === RESEARCH_SCOPE, 'Invalid research scope');
require(Array.isArray(data.sources) && data.sources.length > 0, 'Successful source receipts required');
const sources = new Map();
for (const source of data.sources) {
require(source && nonempty(source.id) && !sources.has(source.id), 'Duplicate or invalid source ID');
require(source.status === 'ok' && source.eligible_for_publication === true && source.probe_only === false && source.rights_status === 'accepted', 'Source not eligible for publication');
require([200,304].includes(source.http_status) && /^[a-f0-9]{64}$/.test(source.response_sha256), 'Invalid successful HTTP receipt');
safeArticleURL(source.url);
safeArticleURL(source.rights_review_url);
require(moment(source.fetched_at) <= acquired, 'Source receipt is later than acquisition');
sources.set(source.id, source);
}
require(Array.isArray(data.projects) && data.projects.length === ids.length, 'Evidence membership mismatch');
const expected = new Set(ids), projects = new Map();
let count = 0;
for (const project of data.projects) {
require(expected.has(project.project_id) && !projects.has(project.project_id), 'Evidence membership mismatch');
require(Array.isArray(project.evidence) && project.evidence_count === project.evidence.length && project.provisional_count === project.evidence.length && project.verified_count === 0 && project.last_event === null, 'Invalid evidence counts');
require(project.status === (project.evidence.length ? 'PROVISIONAL' : 'RESEARCH_ATTEMPTED_NO_EVIDENCE'), 'Invalid evidence status');
require(moment(project.last_researched_at) <= acquired, 'Project research is later than acquisition');
const articleURLs = new Set();
for (const article of project.evidence) {
require(article.status === 'PROVISIONAL' && nonempty(article.id) && nonempty(article.title) && nonempty(article.publisher) && ['repd_id','exact_name'].includes(article.match_method), 'Invalid provisional article');
require(sources.has(article.source_id), 'Article has no successful source receipt');
safeArticleURL(article.url);
moment(article.pub_date);
require(moment(article.first_seen) <= moment(article.last_seen) && moment(article.last_seen) <= acquired, 'Invalid evidence acquisition dates');
require(!articleURLs.has(article.url), 'Duplicate project article');
articleURLs.add(article.url);
}
count += project.evidence.length;
projects.set(project.project_id, project);
}
require(count === data.evidence_count, 'Invalid total evidence count');
const overdue = Date.now() - acquired > WEEK_MS;
const freshnessLabel = 'Last successful collection: ' + data.source_run_at + (overdue ? ' · Overdue: more than 7 days since collection' : ' · Within weekly collection interval');
return {projects, generatedAt: data.generated_at, sourceRunAt: data.source_run_at, overdue, freshnessLabel, count};
}
export function renderEvidence(parent, project, state) {
const panel = add(parent, 'details');
panel.className = 'v925-evidence';
panel.dataset.evidenceProject = project.repd_ref;
const row = state.data?.projects.get(String(project.repd_ref));
add(panel, 'summary', 'Evidence · ' + (row ? 'Provisional: ' + row.provisional_count : state.loading ? 'Loading' : 'Unavailable'));
if (!row) {
add(panel, 'p', state.loading ? 'Loading weekly evidence…' : 'Evidence unavailable. No research or verification claim is made.');
return;
}
add(panel, 'p', 'Machine-found matches require manual review. No verified events are asserted.');
add(panel, 'p', state.data.freshnessLabel);
if (!row.evidence.length) add(panel, 'p', 'No evidence matched in the fetched feed. Other sources have not been searched.');
for (const article of row.evidence) {
const entry = add(panel, 'p');
const link = add(entry, 'a', article.title);
link.href = safeArticleURL(article.url);
link.target = '_blank';
link.rel = 'noopener noreferrer';
add(entry, 'small', article.publisher + ' · ' + article.pub_date.slice(0, 10) + ' · PROVISIONAL');
}
}