GLOBALGRID2050 / EXPLORE CODE

Part of: Explore Code / Electricity markets and data pipelines / globalgrid2050 / uk_renewables_pipeline/202609061329/styles

Browser Smoke V9 7 and 3 more files

A JavaScript module in the tests folder of GlobalGrid2050 that tests the Renewable Energy Planning Database (REPD) register, substations and solar.

529 lines of JavaScript and CSS and Shell from globalgrid2050, in 4 files. Topic: Electricity markets and data pipelines. Section 931 of 2044.

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

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

In this section

  1. V9 6 1 render · globalgrid2050 / uk_renewables_pipeline/202609061329/styles/v9-6-1.css lines 1–140
  2. Browser Smoke V9 7 test · globalgrid2050 / uk_renewables_pipeline/202609061329/tests/browser_smoke_v9_7.mjs lines 1–244
  3. Run V9 7 test · globalgrid2050 / uk_renewables_pipeline/202609061329/tests/run_v9_7.sh lines 1–117
  4. App V9 8 other · globalgrid2050 / uk_renewables_pipeline/202609071221/scripts/app-v9-8.js lines 1–28

V9 6 1

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

renderglobalgrid2050 / uk_renewables_pipeline/202609061329/styles/v9-6-1.css · lines 1–140 of 140 · version 2026-09-06 13:29 · Entry point

What it does
Side effects: changes the web page (DOM).
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register.
Downstream impact
Used directly by 1 file: GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/). Reached from 4 other entry points, including GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050); V923 Public Readback Workflow (neural-link-between-agents); A4 Legal Model (globalgrid2050).
What it achieves
V9.6.1 changes the mobile projects viewport only.
Why it matters
Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
Application
globalgrid2050 · uk_renewables_pipeline/202609061329/styles · style sheet
Uses
none found
Used by
loaded by GlobalGrid2050 — UK Renewables Pipeline Page (stylesheet)
Produces
none declared
Defines here
none
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/202609061329/styles/v9-6-1.css:1-140 · blob 23e637000d30e6cd32d8f27c6d1c160a1a2a4a34 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
/* V9.6.1 changes the mobile projects viewport only. The inherited V9.5.1
   table width, rows, columns, typography and all non-mobile layout remain.

   WHAT WAS REMOVED HERE, AND WHY.
   V9.6.1 added `.tablewrap .hide-mobile { display: table-cell; }` inside this
   query, to put all eleven columns on the phone behind a horizontal swipe. It
   out-specifies the `.hide-mobile{display:none}` that v7.css has applied below
   769 px since V7, so the five columns v7 hides came back. Combined with the
   unconditional 1280 px table minimum in v9-3.css it drew the ACTIONS column —
   the MAP button — 763 px past the right edge of a 393 px viewport, with
   document.elementFromPoint() at the anchor's centre returning null. Measured
   2026-09-05; reported by the architect on a real iPhone as "the map button
   doesn't work just tested on mobile". This is not a regression from the
   deep-link work of the same night: v9.6.2 serves the identical rule, so the
   button has been unreachable on a phone since V9.6.1 shipped.

   The swipe it was reaching for was never an affordance a reader could find,
   and the five columns' facts are not lost by hiding them: the row already
   prints REPD ref, GlobalGrid ref and updated date in .project-meta, and
   county and operator in .mobile-extra, both of which v9-3.css shows only
   below 769 px precisely so this trade is even.

   overflow-x: auto stays. Nothing should need it now — the table is asserted
   to fit its wrapper at 393 px by tests/browser_map_reachability_v9_7.mjs —
   but a long site name must be able to scroll rather than be clipped away. */
@media (max-width: 768px) {
  .tablewrap {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }

  /* THE ACTIONS COLUMN IS PINNED TO THE RIGHT EDGE.

     Hiding five columns and lifting the 1280 px minimum brings the table from
     1280 px to 588 px, which still does not fit a 371 px wrapper: measured at
     393 x 852, SITE NAME 131, TECHNOLOGY 114, STATUS 96, CAPACITY 60, NEWS
     SIGNAL 107, ACTIONS 80. Five columns of real REPD content do not fit a
     phone, and shrinking type until they do makes the page unreadable to make
     one button reachable.

     So the button stops depending on the fit. The last column is stuck to the
     right edge of the scrolling wrapper, which makes MAP visible and hit-
     testable at every horizontal scroll position and for every row, whatever
     a site name's length does to the columns beside it. That is a stronger
     guarantee than "it happens to fit today": a longer name in a later REPD
     release cannot push it off again.

     The two rules below then narrow the widest cells so the pinned column
     covers as little as possible — the badge wraps instead of forcing its
     whole label onto one line, and the signal note gets the width it needs
     rather than the 100 px it inherited from a desktop layout. */
  .tablewrap th:last-child,
  .tablewrap td:last-child {
    background: var(--panel);
    border-left: 1px solid var(--soft);
    position: sticky;
    right: 0;
  }

  .tablewrap th:last-child {
    background: #050505;
    z-index: 6;
  }

  .tablewrap .badge {
    white-space: normal;
  }

  .tablewrap .signal-note {
    max-width: 76px;
  }
}

/* The MAP cell's own sentence. A title attribute cannot be reached on a phone,
   which reports hover: none, so the reason a record has no map point -- or no
   receiver -- is printed in the cell instead of hidden behind a hover. */
.project-actions .map-note {
  flex: 1 0 100%;
  margin: 4px 0 0;
  color: #aab4c0;
  font: normal 9px/1.5 'Courier New', monospace;
  text-transform: none;
  white-space: normal;
}

/* The pager. Twenty rows are shown; these move the window over the filtered
   set. Sized for a thumb: 44 px is the smallest reliable touch target, and the
   previous build's 37 x 21 controls were the reason paging was unusable on a
   phone. */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 28px;
  padding: 10px 12px;
  border: 1px solid #1f3b47;
  border-radius: 8px;
  background: #0d1b22;
}
.pager-btn {
  min-height: 44px;
  min-width: 96px;
  padding: 10px 16px;
  border: 1px solid #2b6f7f;
  border-radius: 6px;
  background: #10262f;
  color: #66ccff;
  font: bold 12px/1 'Courier New', monospace;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.pager-btn:disabled { opacity: 0.35; cursor: default; }
.pager-btn:not(:disabled):hover { background: #17394a; }
.pager-meta {
  flex: 1 1 auto;
  text-align: center;
  color: #aab4c0;
  font: normal 11px/1.5 'Courier New', monospace;
}
@media (max-width: 768px) {
  .pager-meta { order: -1; flex-basis: 100%; }
}

/* THE SEVEN COLUMNS COME BACK ON A PHONE.
   v7.css hides every .hide-mobile cell below 768 px. V9.6.1 overrode that with
   `.tablewrap .hide-mobile { display: table-cell; }`, and 202609051100 removed
   the override again - leaving only the COMMENT describing it above. Measured
   on the live parent at 393 px: COUNTY, OPERATOR, REPD REF, GLOBALGRID REF and
   REPD UPDATED all computed display:none, and pipelinenews_intelligence/
   202608312339 shows thirteen columns on the same viewport. The architect
   asked for them back. They scroll sideways inside .tablewrap, which already
   carries overflow-x:auto and touch scrolling; the page itself never widens. */
@media (max-width: 768px) {
  .tablewrap .hide-mobile,
  .tablewrap th.hide-mobile,
  .tablewrap td.hide-mobile { display: table-cell; }
  .tablewrap table { min-width: 1180px; }
}

Browser Smoke V9 7

A JavaScript module in the tests folder of GlobalGrid2050 that tests the Renewable Energy Planning Database (REPD) register, substations and solar.

testglobalgrid2050 / uk_renewables_pipeline/202609061329/tests/browser_smoke_v9_7.mjs · lines 1–244 of 244 · version 2026-09-06 13:29 · pattern clickCount (shared by 4 files)

What it does
It tests the REPD register, substations and solar. Defines pageAt, clickCount. Uses libraries node:assert/strict, node:module, playwright. Side effects: changes the web page (DOM); 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: the REPD register, substations, solar.
Inputs & outputs
In: DuckDB queries.
Downstream impact
Used directly by 1 file: Run V9 7 (globalgrid2050).
What it achieves
It is built from the page at helper (`pageAt`) and the click count helper (`clickCount`). Defines `pageAt` and `clickCount`.
Why it matters
Checked by Run V9 7.
Application
globalgrid2050 · uk_renewables_pipeline/202609061329/tests · JavaScript module
Uses
node:assert/strict, node:module, playwright
Used by
run by Run V9 7 (script call), mentioned in Standalone (comment link)
Produces
pageAt, clickCount
Defines here
pageAt, clickCount
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/202609061329/tests/browser_smoke_v9_7.mjs:1-244 · blob 72370ffa444fd327ba09de5660fda2624457f67d · GitHub at these lines
State
achieves: name · context: readme_derived · stage: output · effects: dom, storage · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
import assert from "node:assert/strict";
import { createRequire } from "node:module";

const require = createRequire(new URL("../package.json", import.meta.url));
const { chromium } = require("playwright");
const baseUrl = process.env.V9_BASE_URL || "http://127.0.0.1:8765/uk_renewables_pipeline/v9.7/";

async function pageAt(browser, width) {
  const context = await browser.newContext({ viewport: { width, height: 1000 } });
  const page = await context.newPage();
  await page.addInitScript(() => {
    window.Chart = class ChartStub {
      constructor(_canvas, config) { this.data = config.data; }
      update() {}
    };
  });
  await page.route("https://cdn.jsdelivr.net/**", (route) => route.fulfill({
    status: 200, contentType: "application/javascript", body: "",
  }));
  await page.goto(baseUrl, { waitUntil: "domcontentloaded" });
  /* The VIEW is a page of twenty; the DATA is still all 7,680. Waiting for 7,680
     rows in the DOM was the old contract and it can never be satisfied again -
     so the wait is on the windowed view being painted AND the loader reporting
     the complete record count. Both halves matter: dropping the second would
     let a short read pass unnoticed, which is the failure this whole gate is
     for. */
  await page.waitForFunction(() => (
    document.querySelectorAll("#tbody tr").length === 20
    && document.getElementById("tbody")?.dataset.total === "7680"
    && document.querySelectorAll("#stories .story").length === 133
    && document.querySelector("#newsMeta")?.textContent.includes("audited snapshot")
  ));
  return { context, page };
}

async function clickCount(page, mode) {
  await page.locator(`button[data-news="${mode}"]`).click();
  await page.waitForFunction(() => !document.querySelector("#stories .news-empty"));
  return page.locator("#stories .story").count();
}

const browser = await chromium.launch({ headless: true });
try {
  const { context, page } = await pageAt(browser, 1440);
  assert.equal(await page.locator("#tbody tr").count(), 20);
  // The pipeline is not windowed even though the view is.
  assert.equal(await page.locator("#tbody").getAttribute("data-total"), "7680");
  assert.equal(await page.locator("#tbody").getAttribute("data-pages"), "384");
  // Largest first, and the pager moves without re-filtering.
  const firstPageTop = await page.locator("#tbody td.mw").first().innerText();
  assert.equal(firstPageTop.trim(), "4,100 MW");
  await page.locator('[data-page-step="1"]').click();
  await page.waitForFunction(() => document.getElementById("tbody")?.dataset.page === "2");
  assert.equal(await page.locator("#tbody tr").count(), 20);
  assert.equal(await page.locator("#tbody").getAttribute("data-total"), "7680");
  await page.locator('[data-page-step="-1"]').click();
  await page.waitForFunction(() => document.getElementById("tbody")?.dataset.page === "1");

  /* THE MAP BUTTON FIRES LIKE THE ORACLE, ON HREFS THE TABLE ACTUALLY RENDERED.
     check_map_contract_all_rows.mjs has already proven all 7,680 hrefs carry the
     right identity. This takes a sample of them from the DOM - not typed in - and
     requires the grid engine to answer on each, the way testcode/202609051531
     answers. "Answer" means the card states "Nearest <n> kV substation:"; a
     project name on screen proves only that a card was built. */
  /* TWO KINDS OF ARRIVAL, MEASURED SEPARATELY - because they behave differently
     and conflating them hid a stall for a day.
       LOCATED   7,652 rows: REPD published a coordinate, the href carries it, and
                 the live Atlas answers in about a second. These are the gate.
       REF-ONLY     28 rows: REPD published no coordinate. The MAP note in the row
                 says the Atlas "centres on its own geometry". Measured 2026-09-06
                 against the live Atlas: REPD 20217 and 21087 - offshore projects
                 in the top twenty by capacity - spin for 30 s and never answer.
                 That is the spinner the architect photographed. It is an Atlas
                 fault, not this release's: the href is exactly what the contract
                 permits. So it is MEASURED and printed here, never asserted,
                 because a pipeline release must not be blocked on a receiver it
                 does not own - and never hidden, because it is real. */
  const { located, refOnly } = await page.evaluate(() => {
    const links = [...document.querySelectorAll("#tbody a")].filter((a) => /gridatlas/.test(a.href)).map((a) => a.href);
    const located = links.filter((h) => /latitude=/.test(h));
    const refOnly = links.filter((h) => !/latitude=/.test(h));
    const step = Math.max(1, Math.floor(located.length / 3));
    return { located: located.filter((_, i) => i % step === 0).slice(0, 3), refOnly: refOnly.slice(0, 1) };
  });
  const sampleHrefs = located;
  assert.ok(sampleHrefs.length >= 3, `expected located MAP hrefs in the rendered page, found ${sampleHrefs.length}`);
  /* A CLEAN context for the arrivals. The pipeline context above stubs every
     cdn.jsdelivr.net request to an empty body so the newspaper's Chart never
     loads - and the Atlas loads duckdb-wasm and its map libraries from that same
     CDN. Opening arrivals inside that context killed their dependencies and the
     engine could not fire, which is how the first run of this block timed out
     at 45 s on a page that answers in ~1.2 s. The arrival must see the CDN. */
  const arrivalContext = await browser.newContext({ viewport: { width: 1440, height: 900 } });
  for (const href of sampleHrefs) {
    const arrival = await arrivalContext.newPage();
    await arrival.goto(href, { waitUntil: "domcontentloaded" });
    await arrival.waitForFunction(() => /Nearest\s+\d+\s*kV substation:/.test(document.body.innerText), null, { timeout: 45000 });
    const ref = new URL(href).searchParams.get("repd_ref");
    assert.ok(await arrival.locator("body").innerText().then((t) => t.includes(`REPD ${ref}`)), `arrival for REPD ${ref} shows a different record`);
    await arrival.close();
  }
  for (const href of refOnly) {
    const arrival = await arrivalContext.newPage();
    const started = Date.now();
    let outcome = "FIRED";
    try {
      await arrival.goto(href, { waitUntil: "domcontentloaded" });
      await arrival.waitForFunction(() => /Nearest\s+\d+\s*kV substation:/.test(document.body.innerText), null, { timeout: 20000 });
    } catch { outcome = "STALLED - no engine answer and no refusal shown"; }
    console.log(`ref-only arrival REPD ${new URL(href).searchParams.get("repd_ref")}: ${outcome} (${Date.now() - started} ms) - measured, not gated; see the note above`);
    await arrival.close();
  }
  await arrivalContext.close();
  assert.equal(await page.locator("#v1").innerText(), "356,474");
  assert.equal(await page.locator("#v2").innerText(), "7,680");
  assert.equal(await page.locator("#v3").innerText(), "4,100");
  assert.equal(await page.locator("#stories .story").count(), 133);

  assert.equal(await clickCount(page, "UK"), 45);
  assert.ok(await page.locator("#stories").innerText().then((text) => text.includes("Beacon Fen Energy Park development consent decision announced")));
  assert.ok(await page.locator("#stories").innerText().then((text) => !text.includes("New Jersey")));

  assert.equal(await clickCount(page, "INTERNATIONAL"), 19);
  const international = await page.locator("#stories").innerText();
  assert.match(international, /New Jersey/);
  assert.match(international, /County Kerry, Ireland/);
  assert.match(international, /Australia/);
  assert.doesNotMatch(international, /Kintore/);
  assert.doesNotMatch(international, /Canadian Solar says patent dispute/);
  assert.doesNotMatch(international, /Wilton International, Greystones Road/);
  assert.doesNotMatch(international, /Longhedge Solar Farm/);
  assert.match(international, /published decision ledger/);
  assert.doesNotMatch(international, /REPD \d/);

  assert.equal(await clickCount(page, "US"), 4);
  const us = await page.locator("#stories").innerText();
  assert.match(us, /New Jersey/);
  assert.doesNotMatch(us, /County Kerry/);

  assert.equal(await clickCount(page, "EUROPE"), 9);
  const europe = await page.locator("#stories").innerText();
  assert.match(europe, /County Kerry, Ireland/);
  assert.match(europe, /Germany BESS/);
  assert.doesNotMatch(europe, /New Jersey/);
  await context.close();

  for (const width of [390, 430, 440, 768]) {
    const mobile = await pageAt(browser, width);
    /* Seven columns were hidden below 768 px since 202609051100 - COUNTY, OPERATOR,
       REPD REF, GLOBALGRID REF and REPD UPDATED among them. The architect asked for
       them back; pipelinenews_intelligence/202608312339 shows thirteen at this width.
       "Visible" is computed display, not a class name. */
    if (width <= 768) {
      const visible = await mobile.page.evaluate(() =>
        [...document.querySelectorAll("thead th")].filter((th) => getComputedStyle(th).display !== "none").length);
      assert.ok(visible >= 11, `only ${visible} columns visible at ${width}px; REPD REF, GLOBALGRID REF and REPD UPDATED must show`);
      const pageWidens = await mobile.page.evaluate(() =>
        document.documentElement.scrollWidth > document.documentElement.clientWidth + 1);
      assert.equal(pageWidens, false, "the table scrolls inside .tablewrap; the page itself must not widen");
    }
    const layout = await mobile.page.evaluate(() => {
      const wrap = document.querySelector(".tablewrap");
      const table = wrap.querySelector("table");
      return {
        clientWidth: document.documentElement.clientWidth,
        scrollWidth: document.documentElement.scrollWidth,
        wrapClientWidth: wrap.clientWidth,
        wrapScrollWidth: wrap.scrollWidth,
        overflowX: getComputedStyle(wrap).overflowX,
        tableDisplay: getComputedStyle(table).display,
        columns: table.tHead.rows[0].cells.length,
        displays: [...table.tHead.rows[0].cells].map((cell) => getComputedStyle(cell).display),
      };
    });
    assert.ok(layout.scrollWidth <= layout.clientWidth, `${width}px document overflow`);
    assert.equal(layout.overflowX, "auto");
    /* THIS ASSERTION USED TO READ:
         assert.ok(layout.wrapScrollWidth > layout.wrapClientWidth, ...)
       — the table MUST be wider than its wrapper, at every phone width. It was
       the same mistake as the eleven-column one below, stated as a width: it
       required the overflow that put the MAP button off the screen, so no fix
       to that overflow could ever pass. With the five desktop-only columns
       hidden the table is 588 px, which still overflows at 390-440 px and now
       fits at 768 px, and fitting is the better outcome, not a regression.

       What the page actually owes the reader is that any overflow is absorbed
       by the table's own wrapper and never by the document — a page that
       scrolls sideways as a whole is the failure this was groping at — and
       that where the wrapper does overflow, it can be swiped. */
    assert.ok(layout.wrapScrollWidth >= layout.wrapClientWidth, `${width}px wrapper geometry`);
    if (layout.wrapScrollWidth > layout.wrapClientWidth) {
      const swiped = await mobile.page.locator(".tablewrap").evaluate((wrap) => {
        wrap.scrollLeft = wrap.scrollWidth;
        const reached = wrap.scrollLeft;
        wrap.scrollLeft = 0;
        return reached;
      });
      assert.ok(swiped > 0, `${width}px overflowing table does not accept a horizontal swipe`);
    }
    assert.equal(layout.tableDisplay, "table");
    assert.equal(layout.columns, 11);
    /* THIS ASSERTION USED TO READ:
         assert.ok(layout.displays.every((display) => display === "table-cell"));
       — every one of the eleven columns displayed on a phone. It was green on
       every run, and it was pinning the defect. With all eleven columns shown
       and the 1280 px table minimum applying at every width, the ACTIONS
       column's MAP anchor was drawn with its left edge 763 px past the right
       edge of a 393 px viewport, and document.elementFromPoint() at its centre
       returned null: the primary control of this page was unreachable on the
       device most readers use, and this check certified that state as correct.
       Reported by the architect 2026-09-05 on a real iPhone in portrait.

       What replaces it is the contract v7.css has always had below 769 px and
       that v9.6.1 overrode: the five .hide-mobile columns are hidden, the six
       that carry the facts a phone reader needs are shown, and the row's own
       .project-meta and .mobile-extra lines carry what the hidden columns held.
       Where the MAP control actually lands, and whether a thumb can hit it, is
       measured in tests/browser_map_reachability_v9_7.mjs — because a display
       value is not a position, and it was the position that was wrong. */
    /* 202609061329 REVERSES THE TWO LINES THAT USED TO FOLLOW:
         assert.equal(hidden, 5);  assert.equal(visible, 6);
       The architect asked for the columns back - REPD REF, GLOBALGRID REF and
       REPD UPDATED were named - and pipelinenews_intelligence/202608312339 shows
       thirteen on this viewport. So all eleven are shown again.

       The defect the old contract was defending against was REAL and it is not
       being re-opened: with a 1280 px table minimum and no pinned ACTIONS column,
       MAP sat 763 px off-screen. Two things now hold it in place - the ACTIONS
       column is pinned to the right edge, and any overflow is swiped inside
       .tablewrap, asserted above - and whether a thumb can actually hit MAP is
       measured where a position can be measured, in
       tests/browser_map_reachability_v9_7.mjs, which runs after this file. A
       display value is not a position; both are gated, separately. */
    const hidden = layout.displays.filter((display) => display === "none").length;
    assert.equal(hidden, 0, `${width}px: no column may be hidden on a phone - ${hidden} are`);
    assert.equal(layout.displays.length, 11, `${width}px: all eleven columns are shown`);
    assert.equal(await clickCount(mobile.page, "INTERNATIONAL"), 19);
    await mobile.context.close();
  }
} finally {
  await browser.close();
}

console.log("V9.7 browser smoke: PASS (committed regional ledger, frozen UK and mobile table)");

Run V9 7

A shell script in the tests folder of GlobalGrid2050 that tests the Renewable Energy Planning Database (REPD) register.

testglobalgrid2050 / uk_renewables_pipeline/202609061329/tests/run_v9_7.sh · lines 1–117 of 117 · version 2026-09-06 13:29 · Entry point · pattern is_changed (shared by 3 files)

What it does
It tests the REPD register. Defines is_changed. Side effects: makes network requests; 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: the REPD register.
Downstream impact
It is itself an entry point (shell script); no other file was found loading it.
What it achieves
Defines `is_changed`.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · uk_renewables_pipeline/202609061329/tests · shell script
Uses
Check Map Contract All Rows (script call), Browser Smoke V9 7 (script call), Browser Map Reachability V9 7 (script call)
Used by
none found
Produces
is_changed
Defines here
is_changed
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/202609061329/tests/run_v9_7.sh:1-117 · blob e653b60d70f638ce218413ad856c2093767eaba6 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: ingest · effects: network, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
#!/usr/bin/env bash
set -euo pipefail

HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
V97="$(cd "$HERE/.." && pwd)"
V962="$(cd "$V97/../202609061149" && pwd)"
ROOT="$(cd "$V97/../.." && pwd)"

test "$(git -C "$ROOT" rev-parse 'HEAD:uk_renewables_pipeline/202609061149')" = "c7ce34ae2a284abd41838a242c666707834b5008"

diff -qr -x __pycache__ -x '*.pyc' -x v9.7 "$V962/data" "$V97/data"
diff -qr -x __pycache__ -x '*.pyc' "$V962/fixtures" "$V97/fixtures"

# WHAT V9.7 CHANGES FROM ITS FROZEN PARENT, NAMED ONE FILE AT A TIME.
#
# This was `diff -qr "$V962/styles" "$V97/styles"` and a five-entry script
# list, and by 202609050415 it was already failing: the deep-link work of that
# night had edited styles/v9-6-1.css and scripts/plugins/projects-v9-5-1.js in
# place, so the whole-directory diff went red and nothing in the estate runs
# this script often enough to notice. A gate that is red and unread is not a
# gate. So the divergence is DECLARED rather than the check deleted: every file
# below still has to be byte-identical to v9.6.2, and the three that are
# deliberately not are listed with the reason, which is the part a reader needs.
#
# Adding a file to CHANGED_FROM_PARENT is a governed act. It is the sentence
# "this release owns this file now", and it must be true.
CHANGED_FROM_PARENT=(
  # 202609061329 - the seven columns hidden below 768 px come back. The
  # override V9.6.1 wrote had survived only as a comment since 202609051100;
  # measured on the parent at 393 px: COUNTY, OPERATOR, REPD REF, GLOBALGRID
  # REF and REPD UPDATED all display:none. They scroll inside .tablewrap now.
  styles/v9-6-1.css
  # 202609061329 - the release states its own identity.
  index.html
  # 202609061329 - the smoke asserts the columns at phone width and fires the
  # engine on MAP hrefs taken from the table itself, not typed in.
  tests/browser_smoke_v9_7.mjs
  # 202609061329 - the reachability gate carried the same five-hidden check;
  # reversed to eleven shown. Its other twenty-two checks are what guard MAP.
  tests/browser_map_reachability_v9_7.mjs
)
is_changed() {
  local needle="$1"
  for entry in "${CHANGED_FROM_PARENT[@]}"; do
    [[ "$entry" == "$needle" ]] && return 0
  done
  return 1
}

while IFS= read -r style; do
  relative="styles/$(basename "$style")"
  is_changed "$relative" || diff -q "$V962/$relative" "$V97/$relative"
done < <(find "$V97/styles" -maxdepth 1 -type f -name '*.css' | sort)

for relative in \
  scripts/core/project-filter-v9-2.js \
  scripts/data/canonical-projects-v9-1.js \
  scripts/data/canonical-projects-v9-5-1.js \
  scripts/plugins/gauges-v9-2.js \
  scripts/plugins/projects-v9-5-1.js \
  scripts/plugins/capacity-presentation-v9-3.js; do
  is_changed "$relative" || diff -q "$V962/$relative" "$V97/$relative"
done

# A typo in the list above must not silently exempt a file from the parity
# check. So every entry has to be a real file in v9.7, and one the parent
# either does not have at all (new in this release) or has DIFFERENTLY. An
# entry naming a file identical to the parent is a stale claim of ownership and
# fails here rather than quietly widening the exemption.
for relative in "${CHANGED_FROM_PARENT[@]}"; do
  test -f "$V97/$relative"
  if [[ -f "$V962/$relative" ]]; then
    ! diff -q "$V962/$relative" "$V97/$relative" >/dev/null
  fi
done

# The inherited chain runs from the CANONICAL directories, not from this
# release's parent copy of them. A timestamped release carries a copy of every
# ancestor runner, and those copies compute their own directory as the version
# under test - so calling the parent's run_v9_6_2.sh asks it to prove that
# 202609061004 IS v9.6.2, which it is not and was never meant to be. It fails
# on the parent's own additions, such as data/v9.7.
V9_BROWSER_SMOKE=0 bash "$ROOT/uk_renewables_pipeline/v9.6.2/tests/run_v9_6_2.sh"
node "$V97/scripts/build/regional-news-v9-7.mjs"
git -C "$ROOT" diff --exit-code -- "uk_renewables_pipeline/$(basename "$V97")/data"
node "$HERE/check_v9_7.mjs"
# Every MAP button, not a sample: 7,680 hrefs built with the page's own function.
node "$HERE/check_map_contract_all_rows.mjs"

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

if [[ "${V9_BROWSER_SMOKE:-0}" == "1" ]]; then
  browser_base_url="${V9_BASE_URL:-http://127.0.0.1:8765/uk_renewables_pipeline/$(basename "$V97")/}"
  if [[ "$browser_base_url" == http://127.0.0.1:* ]]; then
    python3 -m http.server 8765 --directory "$ROOT" >/tmp/globalgrid2050-v9-7-http.log 2>&1 &
    server_pid=$!
    trap 'kill "$server_pid" 2>/dev/null || true' EXIT
    for _ in {1..20}; do
      if curl --fail --silent --output /dev/null "$browser_base_url"; then break; fi
      sleep 0.25
    done
    curl --fail --silent --output /dev/null "$browser_base_url"
  fi
  V9_BASE_URL="$browser_base_url" node "$HERE/browser_smoke_v9_7.mjs"
  # Where the MAP control actually LANDS at a phone viewport, and whether it
  # survives the deep-link contract's origin stalling. Neither had ever been
  # measured; both were broken on the served bytes of 202609050415.
  V9_BASE_URL="$browser_base_url" node "$HERE/browser_map_reachability_v9_7.mjs"
  if [[ -n "${server_pid:-}" ]]; then
    kill "$server_pid" 2>/dev/null || true
    trap - EXIT
  fi
fi

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

App V9 8

A JavaScript module in the scripts folder of GlobalGrid2050.

otherglobalgrid2050 / uk_renewables_pipeline/202609071221/scripts/app-v9-8.js · lines 1–28 of 28 · version 2026-09-07 12:21 · Entry point

Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
Downstream impact
Used directly by 1 file: GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/). Reached from 4 other entry points, including GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050); V923 Public Readback Workflow (neural-link-between-agents); A4 Legal Model (globalgrid2050).
What it achieves
No statement of purpose was found in the file, a README line naming it, or its name. Described from its file name only (a candidate, not yet checked against the code).
Why it matters
Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
Application
globalgrid2050 · uk_renewables_pipeline/202609071221/scripts · JavaScript module
Uses
Gauges V9 2 (import), Newspaper V9 7 (import), Projects V9 8 (import), Plugin Host (import)
Used by
loaded by GlobalGrid2050 — UK Renewables Pipeline Page (script src)
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/202609071221/scripts/app-v9-8.js:1-28 · blob 6e7f8f6fa7477fdfdd68622f2d3588ee6dd794e7 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: unknown · effects: none found · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
import { initialiseGaugesV9_2 } from "./plugins/gauges-v9-2.js";
import { bindNewspaperV9_7, loadNewsV9_7 } from "./plugins/newspaper-v9-7.js";
import {
  bindProjectControlsV9_8,
  loadProjectsV9_8,
  refreshProjectsV9_8,
} from "./plugins/projects-v9-8.js";
import { startPlugins } from "./core/plugin-host.js";

startPlugins([
  { id: "gauges", start: initialiseGaugesV9_2 },
  {
    id: "newspaper",
    dependsOn: ["gauges"],
    start() {
      bindNewspaperV9_7(refreshProjectsV9_8);
      loadNewsV9_7();
    },
  },
  {
    id: "projects",
    dependsOn: ["gauges", "newspaper"],
    start() {
      bindProjectControlsV9_8();
      loadProjectsV9_8();
    },
  },
]);