In this section
- Global Datacentres V925 interaction · globalgrid2050 / uk_renewables_pipeline/202611161630/scripts/plugins/global-datacentres-v925.js lines 1–132
- Pipeline Tabs V925 energy-data · globalgrid2050 / uk_renewables_pipeline/202611161630/scripts/plugins/pipeline-tabs-v925.js lines 1–25
- V9 25 render · globalgrid2050 / uk_renewables_pipeline/202611161630/styles/v9-25.css lines 1–84
- Check V9 25 test · globalgrid2050 / uk_renewables_pipeline/202611161630/tests/check_v9_25.mjs lines 1–112
- Run V9 25 test · globalgrid2050 / uk_renewables_pipeline/202611161630/tests/run_v9_25.sh lines 1–112
- V9 26 render · globalgrid2050 / uk_renewables_pipeline/202611161734/styles/v9-26.css lines 1–5
- Check V9 26 test · globalgrid2050 / uk_renewables_pipeline/202611161734/tests/check_v9_26.mjs lines 1–112
- Run V9 26 test · globalgrid2050 / uk_renewables_pipeline/202611161734/tests/run_v9_26.sh lines 1–97
Global Datacentres V925
A JavaScript module in the plugins folder of GlobalGrid2050 that draws projects. It maps URL (`mapUrl`) and is built from the https step (`https`) and the valid point helper (`validPoint`).
interactionglobalgrid2050 / uk_renewables_pipeline/202611161630/scripts/plugins/global-datacentres-v925.js · lines 1–132 of 132 · version 2026-11-16 16:30 · Not reached from any entry point (candidate for review) · pattern mapUrl (shared by 3 files)
- What it does
- It draws projects. Defines 12 functions or classes, including https, validPoint, validate, filter, mapUrl. Side effects: changes the web page (DOM); makes network requests.
- 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
- Separate global data-centre sample. No Renewable Energy Planning Database (REPD) joins or inferred MW/status. It reads `global-datacentres/projects.json`. It responds to input, change and DOMContentLoaded events.
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611161630/scripts/plugins · JavaScript module
- Uses
- none found
- Used by
- none found
- Produces
- https, validPoint, validate, filter, mapUrl, capacityLabels, element, link, card, render, update, init
- Defines here
- https, validPoint, validate, filter, mapUrl, capacityLabels, element, link, card, render, update, init
- 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/global-datacentres-v925.js:1-132 · blob ef47a07bed57a8e8955194e7c711480304ab9324 · 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: unreached_review
/* Separate global data-centre sample. No REPD joins or inferred MW/status. */
(function (root) {
'use strict';
var SCHEMA = 'globalgrid2050.global-datacentres.projects.v1';
var METRICS = {it_load_mw: 'IT load', site_demand_mw: 'Site demand', grid_connection_mw: 'Grid connection'};
function https(value) {
try { var u = new URL(value); return u.protocol === 'https:' && !u.username && !u.password; }
catch (_) { return false; }
}
function validPoint(point) {
return point && Number.isFinite(point.latitude) && Number.isFinite(point.longitude) &&
Math.abs(point.latitude) <= 90 && Math.abs(point.longitude) <= 180 &&
Number.isFinite(point.precision_degrees) && point.precision_degrees > 0;
}
function validate(data) {
if (!data || data.schema !== SCHEMA || data.scope !== 'global' || !Array.isArray(data.records) ||
!data.records.length || data.records.length !== data.record_count || typeof data.coverage !== 'string') throw new Error('Invalid global data-centre schema');
var ids = new Set(), countries = new Set();
data.records.forEach(function (p) {
if (!p || !/^DC-WD-Q[1-9][0-9]*$/.test(p.id) || ids.has(p.id) || typeof p.name !== 'string' || !p.name.trim() ||
p.record_type !== 'data_centre' || p.verification_status !== 'SOURCE_INDEXED' || p.operating_status !== 'not_assessed' ||
!p.country || !/^Q[1-9][0-9]*$/.test(p.country.wikidata_id) || typeof p.country.name !== 'string' ||
!(p.operator === null || typeof p.operator === 'string') ||
!(p.location === null || validPoint(p.location)) || !p.source || p.source.licence !== 'CC0-1.0' ||
!https(p.source.url) || !https(p.source.revision_url) || !https(p.source.licence_url) ||
!Number.isInteger(p.source.revision) || !/^\d{4}-\d{2}-\d{2}T/.test(p.source.retrieved_at)) throw new Error('Invalid sourced data-centre record');
Object.keys(METRICS).forEach(function (key) {
if (!p.capacity || !p.capacity_sources || !Object.prototype.hasOwnProperty.call(p.capacity, key)) throw new Error('Missing capacity metric');
var value = p.capacity[key];
if (!(value === null || (typeof value === 'number' && Number.isFinite(value) && value >= 0 && https(p.capacity_sources[key])))) throw new Error('Unsourced or invalid capacity metric');
});
ids.add(p.id); countries.add(p.country.wikidata_id);
});
if (countries.size !== data.country_count) throw new Error('Country count differs');
return data;
}
function filter(records, query, country) {
var text = String(query || '').trim().toLocaleLowerCase();
return records.filter(function (p) {
return (!country || p.country.wikidata_id === country) &&
(!text || [p.name, p.id, p.operator || '', p.country.name].join(' ').toLocaleLowerCase().includes(text));
});
}
function mapUrl(record) {
if (!validPoint(record.location)) return null;
var p = record.location, zoom = p.precision_degrees > 0.01 ? 8 : 14;
return 'https://www.openstreetmap.org/?mlat=' + p.latitude + '&mlon=' + p.longitude + '#map=' + zoom + '/' + p.latitude + '/' + p.longitude;
}
function capacityLabels(record) {
return Object.keys(METRICS).map(function (key) {
return METRICS[key] + ': ' + (record.capacity[key] === null ? 'not reported' : record.capacity[key] + ' MW');
});
}
function element(tag, cls, text) {
var e = document.createElement(tag);
if (cls) e.className = cls;
if (text != null) e.textContent = text;
return e;
}
function link(label, url) {
var e = element('a', null, label);
e.href = url; e.target = '_blank'; e.rel = 'noopener noreferrer'; return e;
}
function card(record) {
var row = element('article', 'gdc-card'); row.dataset.dcId = record.id;
row.appendChild(element('h3', null, record.name));
row.appendChild(element('p', 'gdc-meta', record.country.name + ' · ' + record.id));
row.appendChild(element('p', 'gdc-meta', 'Operator: ' + (record.operator || 'not reported')));
row.appendChild(element('p', 'gdc-meta', 'Source-indexed · operating status not assessed'));
var capacity = element('ul', 'gdc-capacity');
capacityLabels(record).forEach(function (text) { capacity.appendChild(element('li', null, text)); });
row.appendChild(capacity);
var links = element('div', 'gdc-links');
links.appendChild(link('Wikidata source revision', record.source.revision_url));
var map = mapUrl(record);
if (map) {
links.appendChild(link(record.location.precision_degrees > 0.01 ? 'Map — approximate source point' : 'Map — sourced point', map));
row.appendChild(element('p', 'gdc-meta', 'Coordinate precision in source: ' + record.location.precision_degrees + '°; not a surveyed accuracy claim.'));
} else links.appendChild(element('span', 'gdc-meta', 'Map unavailable — coordinates not reported'));
row.appendChild(links);
row.appendChild(element('p', 'gdc-meta', 'Retrieved ' + record.source.retrieved_at.slice(0, 10) + ' · CC0 structured data'));
return row;
}
function render(host, data) {
host.replaceChildren();
host.appendChild(element('h2', null, 'GLOBAL DATA CENTRES'));
host.appendChild(element('p', 'gdc-summary', data.record_count + ' source-indexed sites in ' + data.country_count + ' countries. ' + data.coverage));
var attribution = element('p', 'gdc-meta', 'Structured facts from ');
attribution.appendChild(link('Wikidata · CC0', 'https://www.wikidata.org/wiki/Wikidata:Copyright'));
attribution.appendChild(document.createTextNode('. IT load, total site demand and grid connection capacity are separate quantities. Unknown values remain unreported.'));
host.appendChild(attribution);
var tools = element('div', 'gdc-toolbar');
var searchLabel = element('label', null, 'Search global data centres');
var search = element('input'); search.type = 'search'; search.id = 'globalDcSearch'; search.setAttribute('aria-label', 'Search global data centres');
searchLabel.appendChild(search); tools.appendChild(searchLabel);
var countryLabel = element('label', null, 'Country');
var country = element('select'); country.id = 'globalDcCountry'; country.setAttribute('aria-label', 'Country');
var all = element('option', null, 'All countries'); all.value = ''; country.appendChild(all);
var choices = new Map(data.records.map(function (p) { return [p.country.wikidata_id, p.country.name]; }));
Array.from(choices).sort(function (a,b) { return a[1].localeCompare(b[1]); }).forEach(function (c) {
var option = element('option', null, c[1]); option.value = c[0]; country.appendChild(option);
});
countryLabel.appendChild(country); tools.appendChild(countryLabel); host.appendChild(tools);
var status = element('p', 'gdc-summary'); status.id = 'globalDcCount'; status.setAttribute('role', 'status'); host.appendChild(status);
var list = element('div', 'gdc-list'); host.appendChild(list);
function update() {
var rows = filter(data.records, search.value, country.value); list.replaceChildren();
status.textContent = rows.length + ' of ' + data.record_count + ' sites shown';
if (!rows.length) list.appendChild(element('p', 'gdc-empty', 'No sites match these filters in this sample.'));
rows.forEach(function (p) { list.appendChild(card(p)); });
}
search.addEventListener('input', update); country.addEventListener('change', update); update();
}
function init(host) {
if (!host || host.dataset.globalDcStarted === 'true') return Promise.resolve();
host.dataset.globalDcStarted = 'true'; host.textContent = 'Loading global data-centre sample…';
var controller = new AbortController(), timer = setTimeout(function () { controller.abort(); }, 8000);
return fetch('global-datacentres/projects.json', {signal: controller.signal})
.then(function (response) { if (!response.ok) throw new Error('Source unavailable'); return response.json(); })
.then(validate).then(function (data) { render(host, data); })
.catch(function () { host.replaceChildren(element('p', 'gdc-error', 'Global data-centre sample unavailable. Try reloading this tab.')); })
.finally(function () { clearTimeout(timer); });
}
var api = {validate: validate, filter: filter, mapUrl: mapUrl, capacityLabels: capacityLabels, init: init};
root.GlobalDatacentres = api;
if (typeof module !== 'undefined' && module.exports) module.exports = api;
if (typeof document !== 'undefined') {
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', function () { init(document.getElementById('globalDatacentres')); });
else init(document.getElementById('globalDatacentres'));
}
})(typeof globalThis !== 'undefined' ? globalThis : this);Pipeline Tabs V925
A JavaScript file in the plugins folder of GlobalGrid2050. It is built from the select step (`select`).
energy-dataglobalgrid2050 / uk_renewables_pipeline/202611161630/scripts/plugins/pipeline-tabs-v925.js · lines 1–25 of 25 · version 2026-11-16 16:30 · Not reached from any entry point (candidate for review)
- What it does
- Defines select. 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.
- What it achieves
- Top-level datasets have separate identities, counts and controls. It responds to click, keydown and input events.
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611161630/scripts/plugins · script
- Uses
- none found
- Used by
- none found
- Produces
- select
- Defines here
- select
- 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/pipeline-tabs-v925.js:1-25 · blob 26330863a2f539f692aff953f75b33d4871db612 · 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: unreached_review
// Top-level datasets have separate identities, counts and controls.
(function(){
'use strict';
const tabs=[document.getElementById('ukProjectsTab'),document.getElementById('globalProjectsTab')];
if(tabs.some(tab=>!tab))return;
function select(index,focus=false){
tabs.forEach((tab,i)=>{
const active=i===index;
tab.setAttribute('aria-selected',String(active));tab.tabIndex=active?0:-1;
document.getElementById(tab.getAttribute('aria-controls')).hidden=!active;
});
if(focus)tabs[index].focus();
}
tabs.forEach((tab,index)=>{
tab.addEventListener('click',()=>select(index));
tab.addEventListener('keydown',event=>{
if(['ArrowLeft','ArrowRight','Home','End'].includes(event.key)){
event.preventDefault();select(event.key==='Home'?0:event.key==='End'?1:1-index,true);
}
});
});
// An inherited headline's project-search action must reveal the UK results.
document.getElementById('search')?.addEventListener('input',()=>select(0));
document.getElementById('export')?.addEventListener('click',()=>select(0));
})();V9 25
A style sheet in the styles folder of GlobalGrid2050.
renderglobalgrid2050 / uk_renewables_pipeline/202611161630/styles/v9-25.css · lines 1–84 of 84 · version 2026-11-16 16:30 · Not reached from any entry point (candidate for review)
- 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.
- 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
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611161630/styles · style sheet
- Uses
- none found
- 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/styles/v9-25.css:1-84 · blob c306f0ddd40e4aefc912aa86449b5c7c43c4457f · 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: unreached_review
.v925-evidence{grid-column:1/-1;border-left:3px solid #e3b764;padding:6px 10px;min-width:0}
.v925-evidence summary{cursor:pointer;color:#f1c770;font-weight:700;min-height:28px;overflow-wrap:anywhere}
.v925-evidence p{margin:8px 0}.v925-evidence small{display:block;color:#b5c2d0;margin-top:4px}
.v925-evidence a{color:#70d7f4;overflow-wrap:anywhere}
[data-evidence-status]{overflow-wrap:anywhere}
/* V9.25: UK-first dashboard hierarchy. Historic styles and data stay intact. */
:root{--bg:#090f17;--panel:#101923;--line:#30404e;--soft:#253340;--text:#edf3f6;--muted:#a7b6c3;--accent:#71dfc3;--ok:#71dfc3}
body,body *{font-family:Arial,Helvetica,sans-serif}
body{font-size:14px;line-height:1.5}
a,button,summary{touch-action:manipulation}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #8be7d2;outline-offset:4px}
.sidebar{width:220px;background:#0c141e;padding-top:26px;overflow-y:auto}
.brand{padding:0 18px 24px;margin-bottom:14px;text-align:left}
.brand b{font-size:16px;letter-spacing:1.4px}.brand small{font-size:9px;letter-spacing:.65px;line-height:1.6;color:#9aafbe}
.nav a{font-size:11px;line-height:1.6;padding:12px 18px;font-weight:600}
.nav .active,.nav a:hover{background:#132a2b;color:#98ead4;border-left-color:#71dfc3}
.v925-history{border-top:1px solid var(--soft);border-bottom:1px solid var(--soft);margin:8px 0;padding:8px 0}
.v925-history summary{cursor:pointer;padding:10px 18px;color:#b9c6d0;font-size:12px;min-height:44px}
.v925-history a{display:block;font-size:10px}
.main{padding:30px 32px;scroll-behavior:smooth}
.v925-hero{align-items:flex-start;border:0;margin:0;padding:0 0 26px}
.v925-eyebrow{font-size:10px!important;font-weight:700;letter-spacing:1.8px;color:#71dfc3!important;margin:0 0 10px!important}
.v925-hero h1{font-size:10px;font-weight:500;letter-spacing:1px;color:#8fa4b4;margin-bottom:18px}
.v925-hero h2{font-size:clamp(30px,3.3vw,46px);font-weight:600;letter-spacing:-1.6px;line-height:1.1;color:#f1f6f8}
.v925-intro{max-width:600px;font-size:14px;line-height:1.65;color:#afbdc9;margin-top:18px}
.v925-hero .status{font-size:9px;line-height:1.5;border:1px solid #30554b;background:#11251f;color:#abe1cb;border-radius:4px;white-space:normal;max-width:210px;flex-shrink:0}
.v925-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px}
.v925-pillars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px;border-top:1px solid #263b47;border-bottom:1px solid #263b47;padding:14px 0}
.v925-pillars a{display:flex;flex-direction:column;gap:4px;text-decoration:none;padding:4px 0;min-height:44px;color:#e1ede9}
.v925-pillars b{font-size:13px;font-weight:600}.v925-pillars span{font-size:10px;color:#99b0be;line-height:1.5}.v925-pillars a:hover b{color:#71dfc3}
.v925-stat{display:flex;flex-direction:column;min-width:0;text-decoration:none;padding:18px 16px;border:1px solid #2c3d49;background:#111d27;border-radius:7px;border-top:2px solid #71dfc3;transition:border-color .15s}
.v925-stat:hover{border-color:#71dfc3}.v925-stat span{font-size:9px;letter-spacing:1px;color:#abc4c6;font-weight:700}
.v925-stat strong{font-size:34px;line-height:1.3;letter-spacing:-1px;color:#edf7f4;margin:9px 0 3px;font-variant-numeric:tabular-nums}
.v925-stat small{font-size:11px;line-height:1.5;color:#a2b4c1}
.v925-stat.research{border-top-color:#e3b764}.v925-stat.research span{color:#dfc38d}
.v925-sections{display:flex;gap:24px;flex-wrap:wrap;padding:0 0 16px;border-bottom:1px solid #293b48;margin-bottom:18px}
.v925-sections a{display:flex;gap:8px;align-items:center;text-decoration:none;color:#75bba9;font-size:10px;font-weight:700;min-height:32px}
.v925-sections span{font-size:12px;color:#c7d4dc}.v925-sections a:hover span{color:#fff}
.meta{border-color:#253542;background:#0d1720;line-height:1.65;font-size:11px;padding:12px 14px;border-radius:5px;gap:6px 14px}
.meta strong{font-size:10px;color:#a6cbbf}.meta span{max-width:100%}
.v925-register-heading{scroll-margin-top:20px;margin:30px 0 20px}.v925-register-heading .section-title{font-size:20px;letter-spacing:-.3px;color:#edf3f6;margin:0 0 6px}
.v925-register-heading>p:last-child{font-size:12px;color:#a7b8c4}
.gauges{gap:12px;margin-bottom:20px}.card{border-color:#283b46;border-radius:6px;background:#101c26;padding:16px}.card h3{font-size:10px;letter-spacing:.7px;color:#b2c5ce}.value{font-variant-numeric:tabular-nums;color:#e7f5f0}
.chart canvas{display:block;max-width:100%;max-height:100%}
.filters{gap:8px;margin-bottom:12px}.btn,select,.asset-search{font-family:Arial,Helvetica,sans-serif;border-radius:4px;font-size:10px;line-height:1.5;min-height:40px;background:#101a24;color:#b3c3ce}.btn.active{background:#18352f;color:#a8efd7;border-color:#4e9e88}.btn:hover{color:#b8f3df}.asset-search{font-size:12px;text-transform:none}
.tablewrap{border-color:#293c49;border-radius:6px;margin-bottom:30px}th{background:#14212b;color:#bdd0d9;font-size:10px;letter-spacing:.3px}td{font-size:12px;border-color:#21303c}.site{color:#e9f0f4}.mw{color:#8cddc4}
.v924-pilot{scroll-margin-top:20px;margin:30px 0;border-color:#3c413e;background:#111b24;padding:22px;border-radius:7px}
.v924-pilot h2{font-size:20px;letter-spacing:-.4px;margin-bottom:12px}.v924-pilot p{font-size:12px;line-height:1.6}.v924-pilot .v925-eyebrow.research{color:#e3b764!important}
.v924-pilot [data-pilot-count]{font-size:12px;color:#d0e1e9;padding:10px 0;border-bottom:1px solid #2a3c48}
.v924-pilot [data-pilot-source],.v924-pilot [data-pilot-verification]{font-size:10px;color:#91a6b6}
.v924-pilot [data-evidence-status]{padding:10px 12px;background:#1c2429;border:1px solid #4b4634;border-radius:4px;color:#ddc797}
.v924-pilot label{display:block;margin:18px 0 7px;font-size:12px;color:#d7e1e8}.v924-pilot input{background:#0c151d;border-color:#3a5263;padding:12px;margin-bottom:16px}
.v924-row{padding:16px 0;border-color:#2b3d49;gap:12px}.v924-row-name strong{font-size:14px;font-weight:600}.v924-row-name span{margin-top:4px;font-size:10px}.v924-row-note strong{font-size:9px;line-height:1.6}
.v924-row-detail{font-size:11px}.v924-map{font-size:10px;line-height:1.6;min-height:32px;display:inline-flex;align-items:center}
.v925-evidence{background:#16212a;padding:9px 12px;border-radius:0 4px 4px 0}.v925-evidence summary{font-size:12px;min-height:26px}.v925-evidence p{font-size:12px}.v925-evidence small{font-size:10px}
.v924-pagination{font-size:11px;color:#a7bdca}.v924-pagination button{background:#14232e;border-color:#3a5264;font-size:10px;padding:10px 16px}
.newspaper{scroll-margin-top:20px;border-color:#344055;border-radius:7px;background:#101923;box-shadow:none;margin-top:30px;overflow:hidden}.masthead{padding:22px;border-color:#2c3e4b}.masthead h2{font-size:20px;letter-spacing:-.3px;line-height:1.3}.masthead h2 span{color:#c0b8ee}.v925-eyebrow.context{color:#bfb4ee!important}
.v925-context-note{font-size:12px;line-height:1.7;color:#a7b7c7;max-width:820px;margin:12px 0}.strap{font-size:10px;line-height:1.7;text-transform:none;color:#a2b7c6}.ln-title{font-size:16px!important;line-height:1.5!important}.ln-meta{font-size:9px!important;letter-spacing:.4px}
@media(max-width:1100px){.sidebar{width:190px}.main{padding:24px}.v925-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.v925-hero{flex-direction:column;gap:18px}.v925-hero .status{max-width:none}}
@media(max-width:768px){.sidebar{width:100%;padding:14px 18px;overflow:visible;border:0;border-bottom:1px solid #253542}.brand{padding:0;text-align:left}.brand b{font-size:15px}.brand small{font-size:8px}.main{padding:22px 18px}.v925-hero h1{font-size:9px;line-height:1.6;letter-spacing:.6px;margin-bottom:14px}.v925-hero h2{font-size:34px;letter-spacing:-1px}.v925-intro{font-size:13px}.v925-hero .s … [line shortened here: 1,064 characters; full line on GitHub]
@media(prefers-reduced-motion:reduce){.main{scroll-behavior:auto}.v925-stat{transition:none}}
@media(max-width:600px){.v925-pillars{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}}
/* Consolidated edition: one News block, then one Pipeline workspace. */
.v925-hero{padding-bottom:12px}.v925-hero h2{font-size:32px;line-height:1.15;letter-spacing:-.8px}.v925-hero h1{margin-bottom:10px}.v925-intro{margin-top:10px;font-size:13px}
.v925-release-meta{font-size:9px;color:#9db6be;line-height:1.7;margin-bottom:15px}.v925-release-meta strong{font-weight:500}
.v925-sections{margin-bottom:20px;padding-bottom:10px}.newspaper{margin-top:0;margin-bottom:28px}.masthead{padding:18px 20px}.masthead h2{font-size:22px}
.live-news{max-height:440px;overflow:auto}.ln-item{background:#101923}.v925-context-note{margin:8px 0;font-size:11px}.strap>span:last-child{font-size:10px}
.v925-pipeline{border:1px solid #2d424f;border-radius:7px;background:#0d1720;padding:20px;scroll-margin-top:20px;margin-bottom:26px}
.v925-register-heading{margin:0 0 18px}.v925-register-heading h2{font-size:22px;letter-spacing:-.3px;margin-bottom:7px}
.v925-tabs{display:flex;gap:6px;border-bottom:1px solid #304754;margin-bottom:18px}
.v925-tabs button{background:transparent;border:0;border-bottom:3px solid transparent;min-height:46px;padding:10px 18px;color:#a9bdca;font-size:13px;font-weight:600;cursor:pointer}
.v925-tabs button[aria-selected="true"]{background:#14302a;border-bottom-color:#71dfc3;color:#a7edd8}
.v925-tabs button:hover{color:#ecf9f4}.v925-pipeline [role="tabpanel"][hidden]{display:none}
.v925-scope{font-size:12px;line-height:1.65;color:#a5bac8;margin:0 0 12px}.v925-scope strong{color:#dcebe9}.v925-scope span{margin-left:6px}
.v925-disclosure{font-size:11px;color:#a8bac8;margin:8px 0 12px}.v925-disclosure>summary{cursor:pointer;padding:8px 0;min-height:32px;font-size:11px;color:#a8c5c5}.v925-disclosure p{margin:7px 0;line-height:1.6}.v925-disclosure .meta{margin-top:8px}
.v925-pipeline .gauges{margin-top:18px}.v925-pipeline .tablewrap{margin-bottom:0}
[data-integrated-evidence]{margin-top:12px;max-width:440px;white-space:normal;font-weight:normal}.v925-evidence{margin-top:6px;font-size:11px}.v925-evidence>summary{padding:5px 0;min-height:32px}.v925-evidence a{font-size:12px}.v925-inherited-source{font-size:10px;color:#cdbb94;line-height:1.6;margin-top:9px}.v925-inherited-source a{color:#7ed9e5}
.gdc-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.gdc-toolbar input,.gdc-toolbar select{padding:11px 12px;background:#0a141d;border:1px solid #375060;border-radius:4px;color:#e2edf2;font:inherit;min-height:44px}.gdc-toolbar input{flex:1;min-width:200px}.gdc-summary,.gdc-meta{font-size:11px;color:#a9bdca;line-height:1.6}.gdc-list{display:grid;grid-template-columns:repeat(2,minmax(0,1 … [line shortened here: 944 characters; full line on GitHub]
@media(max-width:768px){.main{padding:18px 12px}.v925-hero h2{font-size:28px}.v925-hero h1{font-size:8px}.v925-hero{gap:12px}.v925-sections{gap:4px 14px}.v925-pipeline{padding:14px 10px}.v925-register-heading>p:last-child{font-size:11px}.v925-tabs button{padding:10px 12px;font-size:12px}.v925-scope span{display:block;margin:4px 0 0}.masthead{padding:16px}.gdc-list{grid-template-columns:1fr}.gdc-to … [line shortened here: 511 characters; full line on GitHub]
@media(max-width:600px){.project-record{max-width:calc(100vw - 185px)}.project-record .record-grid{min-width:0;grid-template-columns:1fr}.project-record [data-integrated-evidence]{max-width:100%}.project-record p{overflow-wrap:anywhere}.v925-evidence{padding:8px}.v925-evidence>summary{white-space:normal}}
.gdc-toolbar label{display:flex;flex-direction:column;gap:5px;flex:1;min-width:180px;color:#b2c5d0;font-size:11px}.gdc-toolbar input,.gdc-toolbar select{width:100%}.gdc-capacity{padding-left:18px;line-height:1.7}
.gdc-meta a{color:#89dcca}Check V9 25
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/202611161747/tests/check_v9_27.mjs (globalgrid2050), which stays. (near-copy-of, proposed by families.py). 90% of lines shared with Check V9 27; read that one first. All set-aside files, with reasons. Nothing was deleted.
Evidence
- line-jaccard 0.901 to globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/202611161747/tests/check_v9_27.mjs:1-112 1a3d8989325763f62ccc92c403881ba1f7f2952d
- sha256 7519d02e1ced99aacf7d02ac0f7a78edfe420606609b5f7ce2c06a8809588c7a
- target sha256 8e58a499a67dc1e41fe3cefef1ebf3f83b6887ac380a6b3061cde88e03135a30
- group of 5 (identity.json near-copy edges >= 0.9)
- canonical rule: reachable, newest stamp, core repo, most lines
testglobalgrid2050 / uk_renewables_pipeline/202611161630/tests/check_v9_25.mjs · lines 1–112 of 112 · version 2026-11-16 16:30
- 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 25 (globalgrid2050). Reached from 1 other entry point, including GlobalGrid2050 Pipeline Project Evidence Weekly 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.25, 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 25.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611161630/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 25 (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/202611161630/tests/check_v9_25.mjs:1-112 · blob 213bb612fb9883c0f5b34aea0718015ad98ed6e4 · 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_25.mjs - Pipeline News V9.25, 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_25.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.25";
const STATE = "RELEASE CANDIDATE";
const PARENT_ID = "202611161244";
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_25: ${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 25
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/202611161630/tests/run_v9_25.sh · lines 1–112 of 112 · version 2026-11-16 16:30 · Entry point · pattern is_listed (shared by 38 files)
- What it does
- It tests interconnectors. Defines is_listed, walk. Side effects: starts processes; uses storage (browser storage, DuckDB or Parquet).
- 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 Pipeline Project Evidence Weekly Workflow (globalgrid2050).
- What it achieves
- Defines `is_listed` and `walk`.
- Why it matters
- Run by GlobalGrid2050 Pipeline Project Evidence Weekly Workflow.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611161630/tests · shell script
- Uses
- Check V9 25 (script call)
- Used by
- run by GlobalGrid2050 Pipeline Project Evidence Weekly 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/202611161630/tests/run_v9_25.sh:1-112 · blob 2251258ffc075c95874ba9fb5c26561271598ffd · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: ingest · effects: process, storage · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
#!/usr/bin/env bash
# run_v9_25.sh - Pipeline News V9.25: 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="202611161244"
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="2d109396cdef80302914045b5330e4f7007e5830"
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
fixtures/v9.8/PRIVACY.md
fixtures/v9.8/interconnector-endpoints.json
global-datacentres/README.md
global-datacentres/build.py
global-datacentres/data/facilities/generation=202611161630/source=WIKIDATA/global-data-centre-records-v1.parquet
global-datacentres/pipeline-audit.json
global-datacentres/projects.json
global-datacentres/requirements.txt
global-datacentres/source-facts.json
global-datacentres/test-model.cjs
index.html
scripts/build/interconnectors-v9-8.mjs
scripts/plugins/evidence-v925.js
scripts/plugins/global-datacentres-v925.js
scripts/plugins/pipeline-tabs-v925.js
scripts/plugins/solar1000-v924.js
styles/v9-25.css
tests/check_solar1000_v924.mjs
tests/check_v9_25.mjs
tests/run_v9_25.sh
)
REMOVED_FROM_PARENT=(
tests/check_v9_24.mjs
tests/run_v9_24.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_25.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.25 ($ID) validation suite: PASS ($ROOT)"V9 26
A style sheet in the styles folder of GlobalGrid2050.
renderglobalgrid2050 / uk_renewables_pipeline/202611161734/styles/v9-26.css · lines 1–5 of 5 · version 2026-11-16 17:34 · Not reached from any entry point (candidate for review)
- 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.
- What it achieves
- One credited news list; compact explanations stay beside each headline.
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611161734/styles · style sheet
- Uses
- none found
- 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/202611161734/styles/v9-26.css:1-5 · blob 2568ef6a84f390b4ac4988f4031e96c87daf4bc3 · 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: unreached_review
/* One credited news list; compact explanations stay beside each headline. */
.ln-priority { display:block; margin-top:6px; color:#a7cbbd; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
#newsStatus { line-height:1.6; }
#newsStatus[data-order="date"] { color:var(--muted,#a6adbb); }
.ln-title:focus-visible,.ln-more:focus-visible { outline:2px solid var(--accent,#0ff); outline-offset:3px; }Check V9 26
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/202611161747/tests/check_v9_27.mjs (globalgrid2050), which stays. (near-copy-of, proposed by families.py). 90% of lines shared with Check V9 27; read that one first. All set-aside files, with reasons. Nothing was deleted.
Evidence
- line-jaccard 0.901 to globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/202611161747/tests/check_v9_27.mjs:1-112 1a3d8989325763f62ccc92c403881ba1f7f2952d
- sha256 fe0610405c4a96091658c1caad88a4a4faede2cef782de57f2e4538cfd9d65cf
- target sha256 8e58a499a67dc1e41fe3cefef1ebf3f83b6887ac380a6b3061cde88e03135a30
- group of 5 (identity.json near-copy edges >= 0.9)
- canonical rule: reachable, newest stamp, core repo, most lines
testglobalgrid2050 / uk_renewables_pipeline/202611161734/tests/check_v9_26.mjs · lines 1–112 of 112 · version 2026-11-16 17:34
- 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 26 (globalgrid2050).
- What it achieves
- It is built from the text step (`text`), the JSON step (`json`) and the sha256 step (`sha256`). Pipeline News V9.26, 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 26.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611161734/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 26 (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/202611161734/tests/check_v9_26.mjs:1-112 · blob 10b409188bd31b3e77b9396bba68406a67c77e7e · 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_26.mjs - Pipeline News V9.26, 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_26.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.26";
const STATE = "RELEASE CANDIDATE";
const PARENT_ID = "202611161630";
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_26: ${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 26
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/202611161734/tests/run_v9_26.sh · lines 1–97 of 97 · version 2026-11-16 17:34 · 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
- 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/202611161734/tests · shell script
- Uses
- Check V9 26 (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/202611161734/tests/run_v9_26.sh:1-97 · blob 12640fb1860bcca28264984324b6e52a48b64e98 · 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_26.sh - Pipeline News V9.26: 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="202611161630"
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="6eb586d58f886dcaffcfc8983e3c5b3922c67e96"
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
index.html
scripts/plugins/live-news.js
styles/v9-26.css
tests/check_v9_26.mjs
tests/run_v9_26.sh
)
REMOVED_FROM_PARENT=(
tests/check_v9_25.mjs
tests/run_v9_25.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_26.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.26 ($ID) validation suite: PASS ($ROOT)"