In this section
- Monolith Reference render · gb-electricity-ui / uk_energy_tracking_v6/generation_history/monolith-reference.html lines 1–23
- GB Electricity UI — UK Energy Tracking V6 Page render · gb-electricity-ui / uk_energy_tracking_v6/index.html lines 1–27
- Monolith Reference render · gb-electricity-ui / uk_energy_tracking_v6/monolith-reference.html lines 1–23
- GlobalGrid2050 Dashboard render · globalgrid2050 / assets/dashboard.css lines 1–88
- GlobalGrid2050 Dashboard render · globalgrid2050 / assets/dashboard.js lines 1–164
- Build PipelineNews Context storage · globalgrid2050 / automation/convergence/build_pipelinenews_context.py lines 1–104
Monolith Reference
A web page in the generation history folder of GB Electricity UI. Published at https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/generation_history/monolith-reference.html.
rendergb-electricity-ui / uk_energy_tracking_v6/generation_history/monolith-reference.html · lines 1–23 of 23 · Entry point
- What it does
- It draws its content. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'generation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Inputs & outputs
- Out: web page.
- Downstream impact
- Used directly by 1 file: UK Energy Tracking V6 — Generation History Page (gb-electricity-ui, https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/generation_history/). Reached from 2 other entry points, including GB Electricity UI — UK Energy Tracking V6 Page (gb-electricity-ui, https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/); Monolith Reference (gb-electricity-ui, https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/monolith-reference.html). It is itself an entry point, published at https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/generation_history/monolith-reference.html.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- Loaded by the Generation History page at https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/generation_history/.
- Application
- gb-electricity-ui · uk_energy_tracking_v6/generation_history · page
- Uses
- UK Energy Tracking V6 — Generation History Page (link), ../../assets/app.css
- Used by
- linked from UK Energy Tracking V6 — Generation History Page (link)
- 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
- gb-electricity-ui@f29f8b8e9a6317e7041ff0469645237a273de8a3 uk_energy_tracking_v6/generation_history/monolith-reference.html:1-23 · blob b63a29edb16509ff4dced0903512a9670ebcec85 · 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: unknown
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Monolith Reference · Generation History</title>
<link rel="stylesheet" href="../../assets/app.css">
<style>.frame{width:100%;height:82vh;border:1px solid rgba(0,255,255,.3);border-radius:12px;background:#000}.note{border:1px solid rgba(255,85,85,.55);background:rgba(80,0,0,.18);color:#ff9999;border-radius:10px;padding:12px;margin:14px 0;font-size:13px;line-height:1.5}</style>
</head>
<body>
<main class="shell">
<header class="hero">
<div class="subtitle">GLOBALGRID2050 · OLD MONOLITH REFERENCE · TAB 1</div>
<h1 class="title">Generation History · Original Working Page</h1>
<div class="rule"></div>
<div class="source-box"><strong>Reference source:</strong> this tab points to the untouched live monolith generation-history page. It exists so the new federation build can be compared against the working original before any cutover decision.</div>
<nav class="nav"><a href="./">Side by side tabs</a><a href="new-build.html">Tab 2 new build</a><a href="https://globalgrid2050.com/uk_energy_tracking_v6/generation_history/">Open original live page</a><a href="https://github.com/Ventusltd/globalgrid2050/tree/main/uk_energy_tracking_v6/generation_history">Open monolith source folder</a></nav>
</header>
<div class="note"><strong>Do not edit the original here.</strong> The old monolith remains the dense big bang archive and live reference. The federation repo should reproduce structure and behaviour in small audited steps.</div>
<iframe class="frame" src="https://globalgrid2050.com/uk_energy_tracking_v6/generation_history/" title="Original monolith generation history"></iframe>
</main>
</body>
</html>GB Electricity UI — UK Energy Tracking V6 Page
A web page. Published at https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/.
rendergb-electricity-ui / uk_energy_tracking_v6/index.html · lines 1–27 of 27 · Entry point
- What it does
- It draws its content. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage upstream_foresight (topic 'markets-data'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Inputs & outputs
- Out: web page.
- Downstream impact
- Used directly by 2 files: UK Energy Tracking V6 — Generation History Page (gb-electricity-ui, https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/generation_history/); Monolith Reference (gb-electricity-ui, https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/monolith-reference.html). Reached from 1 other entry point, including Monolith Reference (gb-electricity-ui, https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/generation_history/monolith-reference.html). It is itself an entry point, published at https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- Loaded by the Generation History page at https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/generation_history/ and 1 other page.
- Application
- gb-electricity-ui · uk_energy_tracking_v6 · page
- Uses
- Monolith Reference (link), UK Energy Tracking V6 — Generation History Page (link), ../assets/app.css
- Used by
- linked from UK Energy Tracking V6 — Generation History Page (link), linked from Monolith Reference (link)
- 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
- gb-electricity-ui@f29f8b8e9a6317e7041ff0469645237a273de8a3 uk_energy_tracking_v6/index.html:1-27 · blob fd25f37405ecd2bbbaa0e9d12edad4f52f4620ad · 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: unknown
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>GB Electricity Tracker · Compare</title>
<link rel="stylesheet" href="../assets/app.css">
<style>.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.compare-frame{width:100%;height:78vh;border:1px solid rgba(0,255,255,.3);border-radius:12px;background:#000}.compare-card{border:1px solid rgba(0,255,255,.25);border-radius:12px;padding:10px;background:rgba(7,11,18,.88)}.compare-card h2{color:#00ffff;margin:0 0 8px;font-size:16px}.audit-note{border:1px solid rgba(255,85,85,. … [line shortened here: 624 characters; full line on GitHub]
</head>
<body>
<main class="shell">
<header class="hero">
<div class="subtitle">GLOBALGRID2050 · GB ELECTRICITY TRACKER · SIDE BY SIDE</div>
<h1 class="title">Old Monolith Reference vs New Federation Build</h1>
<div class="rule"></div>
<div class="source-box"><strong>Migration rule:</strong> the old working page stays untouched. The new build lives as a separate file. This comparison page exists so structure, behaviour and data wiring can be migrated smoothly and audited before any launch decision.</div>
<nav class="nav"><a href="monolith-reference.html">Tab 1 old monolith reference</a><a href="new-build.html">Tab 2 new build</a><a href="generation_history/">Generation history comparison</a><a href="https://github.com/Ventusltd/globalgrid2050/tree/main/uk_energy_tracking_v6">Monolith source folder</a></nav>
</header>
<div class="audit-note"><strong>Audit discipline:</strong> the old monolith contains the real audit history, workflow logs and GridBot records. This repo must not improvise a replacement. It must port in small steps, compare against the original, and only wire data after the declared data-law checks pass.</div>
<section class="compare-grid">
<div class="compare-card"><h2>Tab 1 · Old working monolith reference</h2><iframe class="compare-frame" src="monolith-reference.html" title="Old monolith reference"></iframe></div>
<div class="compare-card"><h2>Tab 2 · New federation build</h2><iframe class="compare-frame" src="new-build.html" title="New federation build"></iframe></div>
</section>
<footer class="footer">This page is below-red-line staging only. Do not promote above the homepage red line until human approval.</footer>
</main>
</body>
</html>Monolith Reference
A web page in GB Electricity UI. Published at https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/monolith-reference.html.
rendergb-electricity-ui / uk_energy_tracking_v6/monolith-reference.html · lines 1–23 of 23 · Entry point
- What it does
- It draws its content. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage upstream_foresight (topic 'markets-data'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Inputs & outputs
- Out: web page.
- Downstream impact
- Used directly by 1 file: GB Electricity UI — UK Energy Tracking V6 Page (gb-electricity-ui, https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/). Reached from 2 other entry points, including Monolith Reference (gb-electricity-ui, https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/generation_history/monolith-reference.html); UK Energy Tracking V6 — Generation History Page (gb-electricity-ui, https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/generation_history/). It is itself an entry point, published at https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/monolith-reference.html.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- Loaded by the UK Energy Tracking V6 page at https://ventusltd.github.io/gb-electricity-ui/uk_energy_tracking_v6/.
- Application
- gb-electricity-ui · uk_energy_tracking_v6 · page
- Uses
- GB Electricity UI — UK Energy Tracking V6 Page (link), ../assets/app.css
- Used by
- linked from GB Electricity UI — UK Energy Tracking V6 Page (link)
- 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
- gb-electricity-ui@f29f8b8e9a6317e7041ff0469645237a273de8a3 uk_energy_tracking_v6/monolith-reference.html:1-23 · blob a8d4b60e741ea02cd83de20e4f227f5dbcd2205d · 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: unknown
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Monolith Reference · GB Electricity Tracker</title>
<link rel="stylesheet" href="../assets/app.css">
<style>.frame{width:100%;height:82vh;border:1px solid rgba(0,255,255,.3);border-radius:12px;background:#000}.note{border:1px solid rgba(255,85,85,.55);background:rgba(80,0,0,.18);color:#ff9999;border-radius:10px;padding:12px;margin:14px 0;font-size:13px;line-height:1.5}</style>
</head>
<body>
<main class="shell">
<header class="hero">
<div class="subtitle">GLOBALGRID2050 · OLD MONOLITH REFERENCE · TAB 1</div>
<h1 class="title">GB Electricity Tracker · Original Working Page</h1>
<div class="rule"></div>
<div class="source-box"><strong>Reference source:</strong> this tab points to the untouched live monolith page. It exists so the new federation build can be compared against the working original before any cutover decision.</div>
<nav class="nav"><a href="./">Side by side tabs</a><a href="new-build.html">Tab 2 new build</a><a href="https://globalgrid2050.com/uk_energy_tracking_v6/">Open original live page</a><a href="https://github.com/Ventusltd/globalgrid2050/tree/main/uk_energy_tracking_v6">Open monolith source folder</a></nav>
</header>
<div class="note"><strong>Do not edit the original here.</strong> The old monolith remains the dense big bang archive and live reference. The federation repo should reproduce structure and behaviour in small audited steps.</div>
<iframe class="frame" src="https://globalgrid2050.com/uk_energy_tracking_v6/" title="Original monolith GB electricity tracker"></iframe>
</main>
</body>
</html>GlobalGrid2050 Dashboard
A style sheet in the assets folder.
renderglobalgrid2050 / assets/dashboard.css · lines 1–88 of 88 · Entry point
- What it does
- Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage upstream_foresight (topic 'markets-data'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Downstream impact
- Used directly by 55 files: Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html); Homepage V039 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v039.html); Homepage V040 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v040.html); and 51 more.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name. Described from its file name only (a candidate, not yet checked against the code).
- Why it matters
- Loaded by the Homepage V037 page at https://globalgrid2050.com/homepage_versions/homepage_v037.html and 54 other pages.
- Application
- globalgrid2050 · assets · style sheet
- Uses
- none found
- Used by
- loaded by Homepage V037 (stylesheet), loaded by Homepage V038 (stylesheet), loaded by Homepage V039 (stylesheet), loaded by Homepage V040 (stylesheet), loaded by Homepage V041 (stylesheet), loaded by Homepage V043 (stylesheet), loaded by Homepage V044 (stylesheet), loaded by Homepage V045 (stylesheet), and 47 more
- 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 assets/dashboard.css:1-88 · blob 06addf2ad09f59ad10266ca30a6f16988daa35db · 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
:root { color-scheme: dark; }
html { background: #000; }
body {
background: #000;
color: white;
font-family: Courier, monospace;
padding: 40px;
max-width: 900px;
margin: 0 auto;
font-size: 20px;
line-height: 1.6;
}
h1 { margin-top: 0; }
h2 { margin-top: 36px; }
h3 { margin-top: 28px; }
a { color: #66ccff; text-decoration: none; }
a:hover { text-decoration: underline; }
.build-status {
border: 1px solid #ff3333;
color: #ff3333;
font-weight: bold;
padding: 14px;
}
.dev-status { color: #ff3333; font-weight: bold; font-size: 16px; }
#gridSearch {
width: 100%;
padding: 12px;
background: #111;
color: white;
border: 1px solid #444;
font-family: Courier, monospace;
font-size: 18px;
margin-top: 10px;
margin-bottom: 18px;
box-sizing: border-box;
}
#gridSearch:focus { outline: none; border-color: #66ccff; }
.toplink {
display: block;
padding: 14px 0;
border-bottom: 1px solid #333;
}
.noresult { color: #888; padding: 20px 0; }
.red-line {
border: 0;
border-top: 4px solid #ff3333;
margin: 36px 0 24px;
}
.session-work {
color: #ff3333;
border: 1px solid #ff3333;
padding: 18px;
}
.session-work h2 { color: #ff3333; margin-top: 0; }
.session-work p { margin-top: 0; }
.session-work label { display: block; padding: 9px 0; }
.session-work input { transform: scale(1.25); margin-right: 10px; }
.session-work textarea {
width: 100%;
box-sizing: border-box;
background: #080000;
color: #ff3333;
border: 1px solid #ff3333;
font-family: Courier, monospace;
font-size: 16px;
line-height: 1.5;
padding: 12px;
}
.footer {
margin-top: 60px;
font-size: 16px;
color: #aaaaaa;
line-height: 1.5;
}
@media (max-width: 600px) {
body { padding: 25px; font-size: 18px; }
.footer { font-size: 14px; }
}GlobalGrid2050 Dashboard
A JavaScript file in the assets folder that draws catalog and uses data from the registry_of_all_content_in_repos_and_dependencies repository. It searches key (`searchKey`) and applies search (`applySearch`).
renderglobalgrid2050 / assets/dashboard.js · lines 1–164 of 164 · Entry point · pattern initRegistryAccess (shared by 2 files)
- What it does
- It draws catalog. Defines 11 functions or classes, including esc, normalise, searchKey, flatten, build. Side effects: changes the web page (DOM); makes network requests; uses storage (browser storage, DuckDB or Parquet).
- Why it exists in the grid workflow
- Domain stage upstream_foresight (topic 'markets-data'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Inputs & outputs
- In: data source: registry_of_all_content_in_repos_and_dependencies data; JSON file catalog.json; browser storage (getItem). Out: browser storage (setItem).
- Downstream impact
- Used directly by 56 files: Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html); Homepage V039 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v039.html); and 52 more. Reached from 1 other entry point, including Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/).
- What it achieves
- Defines `esc`, `normalise`, `searchKey` and 8 more. It responds to change, input and keydown events.
- Why it matters
- Loaded by the 43 Registry Growth page in Galaxies Wafers at https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/ and 55 other pages.
- Application
- globalgrid2050 · assets · script
- Uses
- Registry of All Content in Repos and Dependencies — Index Page (estate URL)
- Used by
- linked from Iterations — 43 Registry Growth Page (link), loaded by Homepage V037 (script src), loaded by Homepage V038 (script src), loaded by Homepage V039 (script src), loaded by Homepage V040 (script src), loaded by Homepage V041 (script src), loaded by Homepage V043 (script src), loaded by Homepage V044 (script src), and 48 more
- Produces
- esc, normalise, searchKey, flatten, build, applySearch, initChecklist, initSessionNotes, initRegistryAccess, reveal, init
- Defines here
- esc, normalise, searchKey, flatten, build, applySearch, initChecklist, initSessionNotes, initRegistryAccess, reveal, 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 assets/dashboard.js:1-164 · blob 56c296f389ff7a34be48d1e4c681c74160c2e240 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom, network, storage · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
(function () {
const CATALOG_URL = './assets/catalog.json';
const REGISTRY_URL = 'https://ventusltd.github.io/registry_of_all_content_in_repos_and_dependencies/';
const menu = document.getElementById('menu');
const searchInput = document.getElementById('gridSearch');
function esc(s) {
return String(s).replace(/[&<>"']/g, c => ({
'&': '&',
'<': '<',
'>': '>',
'"': '"',
"'": '''
}[c]));
}
function normalise(s) {
return String(s || '').toLowerCase().trim();
}
function searchKey(parts) {
return normalise(parts.filter(Boolean).join(' '));
}
function flatten(catalog) {
const areas = Array.isArray(catalog.areas) ? catalog.areas : [];
const rows = [];
for (const area of areas) {
const areaName = area.name || '';
const children = Array.isArray(area.children) ? area.children : [];
if (children.length) {
for (const child of children) {
rows.push({
name: `${areaName} - ${child.name || ''}`,
url: child.url || '#',
note: child.note || '',
key: searchKey([areaName, child.name, child.note, area.tags && area.tags.join(' '), child.tags && child.tags.join(' '), child.repo, child.status])
});
}
} else if (area.url) {
rows.push({
name: areaName,
url: area.url,
note: area.note || '',
key: searchKey([areaName, area.note, area.tags && area.tags.join(' '), area.repo, area.status])
});
}
}
return rows.sort((a, b) => a.name.localeCompare(b.name, 'en-GB'));
}
function build(catalog) {
const rows = flatten(catalog);
if (!rows.length) {
menu.innerHTML = `<p class="noresult">No launch-ready pages added yet. Working board is below the red line.</p>`;
return;
}
menu.innerHTML = rows.map(row => {
const note = row.note ? ` <span class="dev-status">(${esc(row.note)})</span>` : '';
return `<a class="toplink" data-name="${esc(row.key)}" href="${encodeURI(row.url)}">${esc(row.name)}</a>${note}`;
}).join('') + `<p class="noresult" id="noresult" style="display:none">No match.</p>`;
}
function applySearch(raw) {
const q = normalise(raw);
let anyVisible = false;
// An empty query shows nothing. The front page is only what is being built
// now; the rest of the estate is reached by typing, or through Historical
// builds. Without this, every archived page renders on load and the page is
// the cluttered list it replaced.
document.querySelectorAll('.toplink').forEach(el => {
const show = Boolean(q) && el.dataset.name.includes(q);
el.style.display = show ? '' : 'none';
const note = el.nextElementSibling && el.nextElementSibling.classList.contains('dev-status') ? el.nextElementSibling : null;
if (note) note.style.display = show ? '' : 'none';
if (show) anyVisible = true;
});
const noresult = document.getElementById('noresult');
if (noresult) noresult.style.display = (q && !anyVisible) ? '' : 'none';
}
function initChecklist() {
document.querySelectorAll('.task-check').forEach(box => {
const id = box.dataset.sessionItem;
const key = `gg2050-check-${id}`;
box.checked = sessionStorage.getItem(key) === 'checked';
box.addEventListener('change', () => {
if (box.checked) {
sessionStorage.setItem(key, 'checked');
} else {
sessionStorage.removeItem(key);
}
});
});
}
function initSessionNotes() {
const box = document.getElementById('sessionNotes');
if (!box) return;
const key = 'gg2050-session-notes-checklist-1';
const saved = sessionStorage.getItem(key);
if (saved !== null) box.value = saved;
box.addEventListener('input', () => sessionStorage.setItem(key, box.value));
}
function initRegistryAccess() {
const footer = document.querySelector('.footer');
if (!footer || document.getElementById('registryAccess')) return;
const row = document.createElement('p');
row.id = 'registryAccess';
row.style.display = 'none';
row.style.fontSize = '13px';
row.style.opacity = '0.75';
row.innerHTML = `<a href="${REGISTRY_URL}">Registry of all content, repos and dependencies</a>`;
footer.appendChild(row);
let typed = '';
function reveal() {
row.style.display = '';
row.scrollIntoView({ block: 'nearest' });
}
document.addEventListener('keydown', event => {
if (event.ctrlKey && event.shiftKey && event.key.toLowerCase() === 'r') {
reveal();
return;
}
typed = (typed + event.key.toLowerCase()).slice(-8);
if (typed === 'registry') reveal();
});
}
async function init() {
initChecklist();
initSessionNotes();
initRegistryAccess();
try {
const response = await fetch(CATALOG_URL, { cache: 'no-store' });
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const catalog = await response.json();
build(catalog);
applySearch('');
searchInput.addEventListener('input', e => applySearch(e.target.value));
} catch (err) {
menu.innerHTML = `<p class="noresult">Launch-ready page index failed to load.</p>`;
console.error('GlobalGrid2050 dashboard catalog load failed:', err);
}
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', init);
} else {
init();
}
})();Build PipelineNews Context
A Python command-line tool in the convergence folder of GlobalGrid2050 covering the Renewable Energy Planning Database (REPD) register, solar and wind, using SHA-256.
storageglobalgrid2050 / automation/convergence/build_pipelinenews_context.py · lines 1–104 of 104 · Entry point
- What it does
- Defines sha, build, main. Uses libraries __future__, argparse, glob, hashlib, json. Side effects: reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'pipelinenews'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, wind.
- Inputs & outputs
- In: command-line arguments.
- Downstream impact
- Used directly by 1 file: Test Build Renewable Energy Planning Database (REPD) Datacentres (globalgrid2050). Reached from 1 other entry point, including GlobalGrid2050 Project Signals Acid Workflow (globalgrid2050).
- What it achieves
- It is built from the sha step (`sha`) and the build step (`build`). Prototype: the data-centre context sidecar a future Pipeline News release folder could vendor. It accepts `--convergence`, `--release` and `--out`.
- Why it matters
- Checked by Test Build Renewable Energy Planning Database (REPD) Datacentres.
- Application
- globalgrid2050 · automation/convergence · Python CLI
- Uses
- __future__, argparse, glob, hashlib, json, sys, pathlib
- Used by
- imported by Test Build Renewable Energy Planning Database (REPD) Datacentres (sys.path import)
- Produces
- sha, build, main
- Defines here
- sha, build, main
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 automation/convergence/build_pipelinenews_context.py:1-104 · blob 02518eab16a9e7918743c12b47db24e65a389b08 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: filesystem, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
#!/usr/bin/env python3
"""Prototype: the data-centre context sidecar a future Pipeline News release folder could vendor.
Reads the convergence outputs (repd_datacentre_proximity_{solar,battery,wind}.json, manifest.json) and the
project partitions of a Pipeline News release folder (data/v9.1/projects/part-*.json), and writes ONE compact
file keyed by the spine's repd_ref:
pipelinenews_datacentre_context.json columns + rows, one row per spine project that has coordinates
(every spine ref without coordinates is listed under no_coordinates: the page shows NO MAP / no context)
It changes nothing in the release folder; it only reads it. A release that adopts it copies the file into its
own data/<version>/ folder with the hash this writes (the v9.8 interconnector pattern), and a presentation-only
column reads it. Data centres stay a distinct category: no data-centre id is ever written as a REPD ref.
"""
from __future__ import annotations
import argparse
import glob
import hashlib
import json
import sys
from pathlib import Path
SCHEMA = "globalgrid2050.convergence.pipelinenews-datacentre-context.v1"
PARTS = ("solar", "battery", "wind")
COLUMNS = ["repd_ref", "nearest_dc_id", "nearest_dc_name", "nearest_dc_status", "nearest_dc_km",
"dcs_within_10km", "dcs_within_25km", "dcs_within_50km", "operational_dcs_within_25km",
"it_load_mw_stated_within_25km", "it_load_mw_known_sites_within_25km",
"nearest_transmission_node", "nearest_transmission_node_km"]
SRC = {"nearest_dc_id": "dc1_id", "nearest_dc_name": "dc1_name", "nearest_dc_status": "dc1_status",
"nearest_dc_km": "dc1_km", "dcs_within_10km": "r10km_datacentres", "dcs_within_25km": "r25km_datacentres",
"dcs_within_50km": "r50km_datacentres", "operational_dcs_within_25km": "r25km_operational",
"it_load_mw_stated_within_25km": "r25km_it_load_mw_stated",
"it_load_mw_known_sites_within_25km": "r25km_it_load_mw_known_sites",
"nearest_transmission_node": "nearest_node_site_code", "nearest_transmission_node_km": "nearest_node_km"}
CAVEAT = ("Straight-line distance from the REPD point to the nearest data-centre point in the open UK data-centre "
"pipeline; proximity is not connection, capacity or a relationship between the two. Data-centre MW is "
"demand-side (IT load) and is never REPD installed capacity.")
def sha(b):
return hashlib.sha256(b).hexdigest()
def build(convergence_dir, release_dir):
cdir, rdir = Path(convergence_dir), Path(release_dir)
proj = {}
used = []
for part in PARTS:
p = cdir / ("repd_datacentre_proximity_%s.json" % part)
b = p.read_bytes()
used.append({"file": p.name, "sha256": sha(b)})
d = json.loads(b)
cols = d["columns"]
for row in d["rows"]:
r = dict(zip(cols, row))
proj[str(r["ref"])] = r
man_b = (cdir / "manifest.json").read_bytes()
used.append({"file": "manifest.json", "sha256": sha(man_b)})
spine_refs, spine_files = [], []
for f in sorted(glob.glob(str(rdir / "data" / "v9.1" / "projects" / "part-*.json"))):
b = Path(f).read_bytes()
spine_files.append({"file": str(Path(f).relative_to(rdir)), "sha256": sha(b)})
spine_refs.extend(str(p["repd_ref"]) for p in json.loads(b)["projects"])
if len(set(spine_refs)) != len(spine_refs):
raise SystemExit("spine has duplicate repd_ref values")
rows, missing = [], []
for ref in sorted(spine_refs, key=int):
r = proj.get(ref)
if r is None:
missing.append(ref)
continue
rows.append([ref] + [r[SRC[c]] for c in COLUMNS[1:]])
conv = json.loads(man_b)
return {
"schema": SCHEMA,
"caveat": CAVEAT,
"datacentre_baseline_sha256": next(i["sha256"] for i in conv["inputs"] if i["role"] == "datacentre_baseline"),
"repd_register_sha256": next(i["sha256"] for i in conv["inputs"] if i["role"] == "repd_register"),
"convergence_inputs": used,
"release_spine": {"folder": rdir.name, "projects": len(spine_refs), "partitions": spine_files},
"columns": COLUMNS,
"rows": rows,
"no_coordinates": missing,
}
def main(argv=None):
ap = argparse.ArgumentParser(description=__doc__.split("\n")[0])
ap.add_argument("--convergence", required=True, help="dist/convergence/<release> folder")
ap.add_argument("--release", required=True, help="uk_renewables_pipeline/<stamp> folder (read only)")
ap.add_argument("--out", required=True, help="output JSON path")
a = ap.parse_args(argv)
doc = build(a.convergence, a.release)
b = (json.dumps(doc, ensure_ascii=False, separators=(",", ":")) + "\n").encode("utf-8")
Path(a.out).parent.mkdir(parents=True, exist_ok=True)
Path(a.out).write_bytes(b)
print(json.dumps({"out": a.out, "rows": len(doc["rows"]), "no_coordinates": len(doc["no_coordinates"]),
"bytes": len(b), "sha256": sha(b)}))
return 0
if __name__ == "__main__":
sys.exit(main())