In this section
- Check V9 32 test · globalgrid2050 / uk_renewables_pipeline/202611170324/tests/check_v9_32.mjs lines 1–123
- Run V9 32 test · globalgrid2050 / uk_renewables_pipeline/202611170324/tests/run_v9_32.sh lines 1–98
- Machine Notes V923 interaction · globalgrid2050 / uk_renewables_pipeline/202611170512/scripts/plugins/machine-notes-v923.js lines 1–170
- Primary Notes V932 interaction · globalgrid2050 / uk_renewables_pipeline/202611170512/scripts/plugins/primary-notes-v932.mjs lines 1–39
- Check V9 33 test · globalgrid2050 / uk_renewables_pipeline/202611170512/tests/check_v9_33.mjs lines 1–123
- Run V9 33 test · globalgrid2050 / uk_renewables_pipeline/202611170512/tests/run_v9_33.sh lines 1–98
Check V9 32
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: 91% of its lines are the same as uk_renewables_pipeline/202611180520/tests/check_v9_45.mjs (globalgrid2050), which stays. (near-copy-of, proposed by families.py). 90% of lines shared with Check V9 45; read that one first. All set-aside files, with reasons. Nothing was deleted.
Evidence
- line-jaccard 0.9099 to globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/202611180520/tests/check_v9_45.mjs:1-123 41fe9e5b51a076d6ffbe2ce5a8afe5a5265f4d56
- sha256 106ef607342f74c9796e99ca94deba8bfe84b74923996f670a3d8cc610a56a93
- target sha256 e8956eb33f4e20f2a38ba682b879bfbfb35a358854d686c40467140d601f9e5b
- group of 15 (identity.json near-copy edges >= 0.9)
- canonical rule: reachable, newest stamp, core repo, most lines
testglobalgrid2050 / uk_renewables_pipeline/202611170324/tests/check_v9_32.mjs · lines 1–123 of 123 · version 2026-11-17 03:24
- 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 32 (globalgrid2050). Reached from 1 other entry point, including GlobalGrid2050 V932 Preview Acceptance 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.32, 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 32.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611170324/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 32 (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/202611170324/tests/check_v9_32.mjs:1-123 · blob 6547dfed1aa66b7f07d64ff7d358eb61f82b8d8b · 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_32.mjs - Pipeline News V9.32, 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_32.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.32";
const STATE = "RELEASE CANDIDATE";
const PARENT_ID = "202611170243";
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"));
const compact = html.includes(`data-edition="${ID}"`);
assert.ok(compact || html.includes(`UK RENEWABLES PIPELINE ${ID}`), "visible page identity 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");
if (compact) {
assert.ok(label.includes(`<small>PIPELINE NEWS · V${VERSION}</small>`), "compact brand names the version");
assert.ok(label.includes(`>V${VERSION} · PIPELINE NEWS</a>`), "compact nav names the version");
assert.ok(label.includes(`V${VERSION} · `) && label.includes(' · REPD OCTOBER 2026 · '), "compact stamp names the version and source vintage");
assert.ok(html.includes(`<title>GlobalGrid2050 | Pipeline News V${VERSION} · ${ID}</title>`), "compact title names this release");
assert.equal((html.match(/<section\b/g)||[]).length,2,"exactly two principal blocks");
for (const tab of ['solarTab','bessTab','gridTab','datacentreTab']) assert.ok(html.includes(`id="${tab}" role="tab"`),`category ${tab}`);
assert.ok(!html.includes('<th>NEWS SIGNAL</th>')&&!html.includes('id="solar1000Pilot"'),"withdrawn panels/column do not return");
} else {
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(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");
}
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");
console.log(`check_v9_32: ${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 32
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/202611170324/tests/run_v9_32.sh · lines 1–98 of 98 · version 2026-11-17 03:24 · 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; command-line arguments.
- Downstream impact
- Used directly by 1 file: GlobalGrid2050 V932 Preview Acceptance Workflow (globalgrid2050).
- What it achieves
- Defines `is_listed` and `walk`.
- Why it matters
- Run by GlobalGrid2050 V932 Preview Acceptance Workflow.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611170324/tests · shell script
- Uses
- Check V9 32 (script call)
- Used by
- run by GlobalGrid2050 V932 Preview Acceptance 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/202611170324/tests/run_v9_32.sh:1-98 · blob 14052e138312951bf441ce7f5b4aa53e232a1ca0 · 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_32.sh - Pipeline News V9.32: 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="202611170243"
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="800b2a3ed1ffc3d7d3592a75e143ef151e5c50b4"
SCRATCH="$(mktemp -d)"
trap 'rm -rf "$SCRATCH"' EXIT
actual_tree="$(python - "$ROOT" "$PARENT_ID" <<'PYTREE'
import sys
sys.path.insert(0, sys.argv[1] + "/automation/pipeline_release")
from common import tree_hash
print(tree_hash(sys.argv[2]))
PYTREE
)"
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
contracts/primary-notes.v932.json
index.html
scripts/plugins/machine-notes-v923.js
scripts/plugins/primary-notes-v932.mjs
tests/check_v9_32.mjs
tests/run_v9_32.sh
)
REMOVED_FROM_PARENT=(
tests/check_v9_31.mjs
tests/run_v9_31.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 python "$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_32.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.32 ($ID) validation suite: PASS ($ROOT)"Machine Notes V923
A JavaScript file in the plugins folder of GlobalGrid2050 that updates visible notes (`updateVisibleNotes`) and sets primary notes (`setPrimaryNotes`), covering the Renewable Energy Planning Database (REPD) register.
interactionglobalgrid2050 / uk_renewables_pipeline/202611170512/scripts/plugins/machine-notes-v923.js · lines 1–170 of 170 · version 2026-11-17 05:12 · Entry point · pattern updateVisibleNotes (shared by 2 files)
- What it does
- It draws the REPD register. Defines 10 functions or classes, including el, originalLink, headlineSummaryV923, shortHeadlineV923, latestTime. Side effects: changes the web page (DOM); 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: the REPD register.
- Downstream impact
- Used directly by 2 files: GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/); GlobalGrid2050 V923 Six Hour Python Repair Workflow (globalgrid2050). 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
- It updates visible notes (`updateVisibleNotes`) and sets primary notes (`setPrimaryNotes`). No original article is republished. It responds to click and pipeline events.
- Why it matters
- Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/. Run by GlobalGrid2050 V923 Six Hour Python Repair Workflow.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611170512/scripts/plugins · script
- Uses
- none found
- Used by
- loaded by GlobalGrid2050 — UK Renewables Pipeline Page (script src), run by GlobalGrid2050 V923 Six Hour Python Repair Workflow (workflow run)
- Produces
- el, originalLink, headlineSummaryV923, shortHeadlineV923, latestTime, load, updateVisibleNotes, panel, setPrimaryNotes, open
- Defines here
- el, originalLink, headlineSummaryV923, shortHeadlineV923, latestTime, load, updateVisibleNotes, panel, setPrimaryNotes, open
- 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/202611170512/scripts/plugins/machine-notes-v923.js:1-170 · blob 833ee6d9f509c1bfc5fbbaa641b3cdf5ad6a2f1b · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom, filesystem · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
/* V9.23: candidate-only Machine Read Notes. No original article is republished. */
(function () {
'use strict';
var notes = new Map();
var dialog;
var primaryLayer = null;
function el(tag, cls, text) {
var n = document.createElement(tag);
if (cls) n.className = cls;
if (text != null) n.textContent = String(text);
return n;
}
function originalLink(raw) {
try { var u = new URL(String(raw)); return u.protocol === 'https:' ? u.href : null; }
catch (_) { return null; }
}
function headlineSummaryV923(item) {
var kind = {
refusal: 'REFUSAL REPORTED',
consent: 'CONSENT REPORTED',
planning_decision: 'PLANNING DECISION REPORTED',
construction: 'CONSTRUCTION REPORTED',
finance: 'FINANCING REPORTED',
grid: 'GRID UPDATE REPORTED',
energisation: 'ENERGISATION REPORTED',
dco: 'DCO UPDATE REPORTED',
datacentre: 'DATA CENTRE UPDATE REPORTED'
}[item.category] || 'PROJECT HEADLINE';
var d = new Date(item.published);
var date = Number.isNaN(d.getTime()) ? 'DATE UNKNOWN' :
d.toLocaleDateString('en-GB', { day: 'numeric', month: 'short', year: 'numeric', timeZone: 'UTC' }).toUpperCase();
return kind + ' · ' + date;
}
function shortHeadlineV923(item) {
// First ten source-title words only, never publisher article text.
var raw = String(item.title || '').replace(/\s+/g, ' ').trim();
if (!raw) return 'Headline details available at original source';
var words = raw.split(' ');
return words.slice(0, 10).join(' ') + (words.length > 10 ? '…' : '');
}
function latestTime(item) {
var t = Date.parse(item.published || item.observed || '');
return Number.isFinite(t) ? t : 0;
}
function load(doc) {
notes.clear();
if (doc && Array.isArray(doc.items)) doc.items.forEach(function (item) {
var match = item.possible_match;
if (!match || !/^\d+$/.test(String(match.repd_ref || ''))) return;
if (item.category === 'policy' || /\b(politics|political|election campaign)\b/i.test(String(item.title || ''))) return;
var uri = originalLink(item.link);
if (!uri) return;
var id = String(match.repd_ref);
if (!notes.has(id)) notes.set(id, []);
notes.get(id).push({
title: String(item.title || ''), publisher: String(item.source || 'Publisher not stated'),
url: uri, category: String(item.category || 'other'),
published: String(item.date || ''), observed: String(item.first_seen || '')
});
});
// The first line is useful before any click: short event and publisher date.
// Never turn an algorithmic name association into an official REPD decision.
notes.forEach(function (events) { events.sort(function (a, b) {
return latestTime(b) - latestTime(a) || a.title.localeCompare(b.title);
}); });
updateVisibleNotes();
window.dispatchEvent(new Event('machine-notes-updated'));
}
function updateVisibleNotes() {
document.querySelectorAll('.machine-note-button').forEach(function (b) {
var items = notes.get(String(b.dataset.noteRef)) || [];
delete b.dataset.notePrimary;
var primary = primaryLayer && primaryLayer.records.get(String(b.dataset.noteRef));
if (primary) {
primaryLayer.view.decoratePrimaryButton(b, primary.note);
b.dataset.noteCandidate = items.length ? 'possible' : 'none';
return;
}
if (items.length) {
b.replaceChildren(
el('span', 'machine-note-kind', 'POSSIBLE · ' + headlineSummaryV923(items[0])),
el('span', 'machine-note-headline', shortHeadlineV923(items[0]))
);
} else {
b.textContent = 'NO MATCHED HEADLINE';
}
b.setAttribute('aria-label', items.length
? 'Possible, unverified project headline: ' + headlineSummaryV923(items[0])
+ '. ' + shortHeadlineV923(items[0]) + '. Open evidence brief'
: 'No matched project headline. Open evidence state');
b.title = items.length ? 'POSSIBLE MATCH · ' + items[0].publisher + ' · verify at original source'
: 'No independently evidenced project headline';
b.dataset.noteCandidate = items.length ? 'possible' : 'none';
});
}
function panel() {
if (dialog) return dialog;
dialog = el('dialog', 'machine-note-dialog');
dialog.setAttribute('aria-labelledby', 'machineNoteTitle');
var close = el('button', 'machine-note-close', 'CLOSE');
close.type = 'button';
close.addEventListener('click', function () { if (dialog.close) dialog.close(); else dialog.removeAttribute('open'); });
var title = el('h2', null, 'Machine-originated Pipeline Intelligence Brief');
title.id = 'machineNoteTitle';
dialog.append(close, title);
var body = el('div', 'machine-note-body');
body.id = 'machineNoteBody';
dialog.appendChild(body);
document.body.appendChild(dialog);
return dialog;
}
// Rendering seam for the byte-pinned host; source/rights validation remains in its model.
function setPrimaryNotes(index, view, projectFor) {
if (!index || !Object.isFrozen(index) || index.schema !== 'globalgrid2050.primary-notes.v1' ||
index.verified_count !== 0 || index.solar1000_verified_delta !== 0 ||
!Number.isInteger(index.association_count) || index.association_count < 0 || index.association_count > 4 ||
!view || typeof view.decoratePrimaryButton !== 'function' || typeof view.appendPrimaryBrief !== 'function' ||
typeof projectFor !== 'function') throw new Error('Unsupported primary-note view');
var records = new Map();
Object.entries(index.by_repd_ref).forEach(function (entry) {
var ref = entry[0], values = entry[1], note = values && values[0], project = projectFor(ref);
if (!/^[1-9]\d*$/.test(ref) || !Object.isFrozen(values) || values.length !== 1 ||
!note || !Object.isFrozen(note) || note.association !== 'PROVISIONAL' ||
note.binding.repd_ref !== ref || note.binding.gg_project_id !== 'GG2050-REPD-' + ref ||
!project || project.gg_project_id !== note.binding.gg_project_id) throw new Error('Invalid primary-note binding');
records.set(ref, {note:note, project:project});
});
if (records.size !== index.association_count) throw new Error('Invalid primary-note count');
var layer = {records:records, view:view};primaryLayer = layer;updateVisibleNotes();
window.dispatchEvent(new Event('machine-notes-updated'));
return function () {if (primaryLayer === layer) {primaryLayer = null;updateVisibleNotes();}};
}
function open(button) {
var dlg = panel(), body = document.getElementById('machineNoteBody');
body.replaceChildren();
var ref = String(button.dataset.noteRef || '');
var events = notes.get(ref) || [];
var primary = primaryLayer && primaryLayer.records.get(ref);
body.appendChild(el('p', 'machine-note-stamp', primary ? 'PRIMARY GOVERNMENT SOURCE - PROVISIONAL PROJECT ASSOCIATION (CANDIDATE)' : events.length ?
'CANDIDATE — NOT INDEPENDENTLY VERIFIED' : 'INSUFFICIENT EVIDENCE'));
body.appendChild(el('p', null, 'REPD ' + ref + ' · ' + String(button.dataset.noteName || 'Project')));
body.appendChild(el('p', null, 'OFFICIAL SOURCE STATUS (FROZEN REPD) · ' + String(button.dataset.noteStatus || 'Unknown')));
if (primary) primaryLayer.view.appendPrimaryBrief(body, primary.note, primary.project);
if (!events.length && !primary) {
body.appendChild(el('p', null, 'No adequate matched headline evidence is currently available. The official source remains unchanged.'));
} else if (events.length) {
if (primary) body.appendChild(el('h3', null, 'Possible news associations'));
body.appendChild(el('p', null, 'Machine assessment: a headline may relate to this named project. This is an unverified screening lead, not a new official status or an independently accepted project decision. Check the source and exact REPD binding before relying on it.'));
events.slice(0, 5).forEach(function (event) {
var entry = el('section', 'machine-note-source');
entry.appendChild(el('p', null, event.publisher + ' · PUBLISHED ' + (event.published || 'not independently established') +
' · FIRST OBSERVED ' + (event.observed || 'unknown')));
var a = el('a', null, event.title || 'Publisher headline');
a.href = event.url; a.target = '_blank'; a.rel = 'noopener noreferrer';
entry.appendChild(a); body.appendChild(entry);
});
body.appendChild(el('p', null, 'Headline evidence receipts, publisher independence, rights and exact REPD associations remain NOT VERIFIED.'));
}
if (typeof dlg.showModal === 'function') dlg.showModal(); else dlg.setAttribute('open', '');
dlg.querySelector('.machine-note-close').focus();
}
window.pipelineMachineNotes = { has: function (ref) { return notes.has(String(ref)); }, setPrimaryNotes:setPrimaryNotes };
window.addEventListener('pipeline-feed-loaded', function (ev) { load(ev.detail); });
window.addEventListener('pipeline-projects-rendered', updateVisibleNotes);
document.addEventListener('click', function (ev) {
var b = ev.target && ev.target.closest ? ev.target.closest('.machine-note-button') : null;
if (b) open(b);
});
if (window.pipelineHeadlineDocument) load(window.pipelineHeadlineDocument);
})();Primary Notes V932
A JavaScript module in the plugins folder of GlobalGrid2050 that works with ensure primary notes (`ensurePrimaryNotes`), using SHA-256. It is built from the ensure primary notes helper (`ensurePrimaryNotes`).
interactionglobalgrid2050 / uk_renewables_pipeline/202611170512/scripts/plugins/primary-notes-v932.mjs · lines 1–39 of 39 · version 2026-11-17 05:12 · Entry point · pattern checked (shared by 8 files)
- What it does
- Defines ensurePrimaryNotes, checked. 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.
- Inputs & outputs
- In: JSON file primary-notes.v932.json; JSON file notes.json.
- 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
- Defines `ensurePrimaryNotes` and `checked`. It responds to pipeline events.
- Why it matters
- Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611170512/scripts/plugins · JavaScript module
- Uses
- State (import), Verified Inputs (import)
- Used by
- loaded by GlobalGrid2050 — UK Renewables Pipeline Page (script src)
- Produces
- ensurePrimaryNotes, checked
- Defines here
- ensurePrimaryNotes, checked
- 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/202611170512/scripts/plugins/primary-notes-v932.mjs:1-39 · blob b1e51910f86019bbe18cbb9fc771241475a3ee2c · 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
import {state} from '../core/state.js';
import {fetchPinned} from './verified-inputs.mjs';
const manifest = new URL('../../contracts/primary-notes.v932.json', import.meta.url);
const manifestHash = 'b260aa3cd59c72d50609083c906682347601ef414d3a3003cefba87fae9271ce';
let pending = null, attempted = false;
function ensurePrimaryNotes() {
const rows = state.canonicalModel?.projects;
if (!rows || pending || attempted) return pending;
attempted = true;
document.documentElement.dataset.primaryNotesState = 'loading';
pending = (async () => {
const raw = await fetchPinned(manifest, manifestHash, 12000);
const spec = JSON.parse(new TextDecoder('utf-8', {fatal:true}).decode(raw));
if (spec.schema !== 'globalgrid2050.primary-note-cartridge.v1' ||
!/^[a-f0-9]{40}$/.test(spec.producer.commit) ||
spec.producer.extends_commit !== 'b5eed3d2ae878c78e5153be06ef531c11fff2148' ||
spec.expected.canonical_population !== 7775 || spec.expected.associations !== 4 ||
JSON.stringify(Object.keys(spec.files).sort()) !== JSON.stringify(['catalogue.mjs','model.mjs','notes.json']) ||
spec.renderer.path !== 'automation/primary_note_ui/host-202611170512/brief.mjs') throw Error('Unsupported primary-note cartridge');
const base = new URL('../../../../automation/primary_note_ui/' + spec.producer.commit + '/', import.meta.url);
const checked = (url,pin) => {
if (!Number.isSafeInteger(pin.bytes) || pin.bytes < 1 || pin.bytes > 65536 || !/^[a-f0-9]{64}$/.test(pin.sha256)) throw Error('Invalid primary-note bound');
return fetchPinned(url,pin.sha256,pin.bytes,pin.bytes);
};
await Promise.all(Object.entries(spec.files).map(([name,pin]) => checked(new URL(name,base),pin)));
const ui = new URL('../../../../' + spec.renderer.path, import.meta.url);
await checked(ui,spec.renderer);
const {buildPrimaryNotes} = await import(new URL('model.mjs',base));
const index = buildPrimaryNotes(rows,{asOf:new Date().toISOString()});
if (index.association_count !== spec.expected.associations || index.verified_count !== 0 || index.solar1000_verified_delta !== 0) throw Error('Primary-note counts changed');
const view = await import(ui);
window.pipelineMachineNotes.setPrimaryNotes(index,view,ref => rows.find(row => row.repd_ref === ref));
document.documentElement.dataset.primaryNotesState = 'available';
})().catch(() => {document.documentElement.dataset.primaryNotesState = 'unavailable';})
.finally(() => {pending = null;});
return pending;
}
window.addEventListener('pipeline-projects-rendered', ensurePrimaryNotes);
void ensurePrimaryNotes();Check V9 33
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: 91% of its lines are the same as uk_renewables_pipeline/202611180520/tests/check_v9_45.mjs (globalgrid2050), which stays. (near-copy-of, proposed by families.py). 90% of lines shared with Check V9 45; read that one first. All set-aside files, with reasons. Nothing was deleted.
Evidence
- line-jaccard 0.9099 to globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/202611180520/tests/check_v9_45.mjs:1-123 41fe9e5b51a076d6ffbe2ce5a8afe5a5265f4d56
- sha256 dfbfe23ea65b1f2154f8514dad216b3c6ecadc33fc6899d03d5e245fd5046a51
- target sha256 e8956eb33f4e20f2a38ba682b879bfbfb35a358854d686c40467140d601f9e5b
- group of 15 (identity.json near-copy edges >= 0.9)
- canonical rule: reachable, newest stamp, core repo, most lines
testglobalgrid2050 / uk_renewables_pipeline/202611170512/tests/check_v9_33.mjs · lines 1–123 of 123 · version 2026-11-17 05:12
- 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 33 (globalgrid2050). Reached from 1 other entry point, including GlobalGrid2050 V933 Preview Acceptance 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.33, 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 33.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611170512/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 33 (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/202611170512/tests/check_v9_33.mjs:1-123 · blob 19bce967d14bd2e8d7276c11f7e9cb1fa2c9be94 · 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_33.mjs - Pipeline News V9.33, 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_33.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.33";
const STATE = "RELEASE CANDIDATE";
const PARENT_ID = "202611170324";
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"));
const compact = html.includes(`data-edition="${ID}"`);
assert.ok(compact || html.includes(`UK RENEWABLES PIPELINE ${ID}`), "visible page identity 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");
if (compact) {
assert.ok(label.includes(`<small>PIPELINE NEWS · V${VERSION}</small>`), "compact brand names the version");
assert.ok(label.includes(`>V${VERSION} · PIPELINE NEWS</a>`), "compact nav names the version");
assert.ok(label.includes(`V${VERSION} · `) && label.includes(' · REPD OCTOBER 2026 · '), "compact stamp names the version and source vintage");
assert.ok(html.includes(`<title>GlobalGrid2050 | Pipeline News V${VERSION} · ${ID}</title>`), "compact title names this release");
assert.equal((html.match(/<section\b/g)||[]).length,2,"exactly two principal blocks");
for (const tab of ['solarTab','bessTab','gridTab','datacentreTab']) assert.ok(html.includes(`id="${tab}" role="tab"`),`category ${tab}`);
assert.ok(!html.includes('<th>NEWS SIGNAL</th>')&&!html.includes('id="solar1000Pilot"'),"withdrawn panels/column do not return");
} else {
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(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");
}
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");
console.log(`check_v9_33: ${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 33
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/202611170512/tests/run_v9_33.sh · lines 1–98 of 98 · version 2026-11-17 05:12 · 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; command-line arguments.
- Downstream impact
- Used directly by 1 file: GlobalGrid2050 V933 Preview Acceptance Workflow (globalgrid2050).
- What it achieves
- Defines `is_listed` and `walk`.
- Why it matters
- Run by GlobalGrid2050 V933 Preview Acceptance Workflow.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611170512/tests · shell script
- Uses
- Check V9 33 (script call)
- Used by
- run by GlobalGrid2050 V933 Preview Acceptance 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/202611170512/tests/run_v9_33.sh:1-98 · blob 89bc487eaa76e459ea5e971ab1d6d6933fa786b8 · 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_33.sh - Pipeline News V9.33: 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="202611170324"
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="50ca9e4e936c1f02c7f0eb6e010bfb899eb80b20"
SCRATCH="$(mktemp -d)"
trap 'rm -rf "$SCRATCH"' EXIT
actual_tree="$(python - "$ROOT" "$PARENT_ID" <<'PYTREE'
import sys
sys.path.insert(0, sys.argv[1] + "/automation/pipeline_release")
from common import tree_hash
print(tree_hash(sys.argv[2]))
PYTREE
)"
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
contracts/primary-notes.v932.json
index.html
scripts/plugins/machine-notes-v923.js
scripts/plugins/primary-notes-v932.mjs
tests/check_v9_33.mjs
tests/run_v9_33.sh
)
REMOVED_FROM_PARENT=(
tests/check_v9_32.mjs
tests/run_v9_32.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 python "$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_33.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.33 ($ID) validation suite: PASS ($ROOT)"