In this section
- CI Night Tests test · globalgrid2050 / testcode/ci/night-tests.mjs lines 701–810
- Build Homepage Release Candidate Workflow automation · globalgrid2050-homepage / .github/workflows/build-homepage-release-candidate.yml lines 1–61
- Gridbot Federation Systems Map Workflow automation · globalgrid2050-homepage / .github/workflows/gridbot_federation_systems_map.yml lines 1–67
- Pages Workflow automation · globalgrid2050-homepage / .github/workflows/pages.yml lines 1–68
- Pipeline V960 Public Route Workflow automation · globalgrid2050-homepage / .github/workflows/pipeline-v960-public-route.yml lines 1–49
- PR Checks Workflow automation · globalgrid2050-homepage / .github/workflows/pr-checks.yml lines 1–41
- Validate Homepage Release Workflow automation · globalgrid2050-homepage / .github/workflows/validate-homepage-release.yml lines 1–299
CI Night Tests
A JavaScript module in the testcode folder of GlobalGrid2050 that tests CI checks, using SHA-256. It gets status (`getStatus`), gets JSON (`getJson`) and gets buffer (`getBuffer`).
testglobalgrid2050 / testcode/ci/night-tests.mjs · lines 701–810 of 810 (continued from section 1800) · Entry point · pattern mapLimit (shared by 3 files)
- What it does
- It tests CI checks. Defines 36 functions or classes, including record, pass, fail, warn, skip. Uses libraries node:crypto, node:fs/promises, node:fs, node:path, node:url. Side effects: changes the web page (DOM); reads or writes files; makes network requests.
- Why it exists in the grid workflow
- Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
- Inputs & outputs
- In: JSON file report.json; JSON file ci-checks.json; JSON file checks.json; command-line arguments. Out: WebGL/WebGPU drawing.
- Downstream impact
- Used directly by 2 files: GlobalGrid2050 Night Tests Workflow (globalgrid2050); GlobalGrid2050 Testcode Proof Workflow (globalgrid2050).
- What it achieves
- Defines `record`, `pass`, `fail` and 31 more.
- Why it matters
- Run by GlobalGrid2050 Testcode Proof Workflow. Checked by GlobalGrid2050 Night Tests Workflow.
- Application
- globalgrid2050 · testcode/ci · JavaScript module
- Uses
- node:crypto, node:fs/promises, node:fs, node:path, node:url
- Used by
- run by GlobalGrid2050 Night Tests Workflow (workflow run), run by GlobalGrid2050 Testcode Proof Workflow (workflow run)
- Produces
- record, pass, fail, warn, skip, expired, na, windowState, sha256, getStatus, getJson, getBuffer
- Defines here
- verdictOf, finish
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 testcode/ci/night-tests.mjs:701-810 · blob 4503061e9468510cfd57a66414510e46e263f77c · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom, filesystem, network · domain stage: experimental · users: none · canonical: production_core
const visitsByPage = {};
let servedSummary = null;
try {
if (STAMP) {
const one = await runStamp(browser, STAMP);
servedSummary = { ok: one.served.ok || 0, bad: one.served.bad || 0, total: one.served.total || 0 };
} else {
const qts = await runQts(browser);
visitsByPage.qts = qts.visits;
servedSummary = { ok: qts.served.ok || 0, bad: qts.served.bad || 0, total: qts.served.total || 0 };
const gen = await runGenerator(browser);
if (gen.published) visitsByPage.generator = gen.visits;
visitsByPage.homepage = await runHomepage(browser);
await runDataChecks(visitsByPage);
}
} finally {
await browser.close().catch(() => {});
}
return finish(servedSummary, via, window_);
}
/* THE VERDICT, AND THE EXIT CODE THAT CARRIES IT.
Derived, never asserted by hand, and ordered so the worst honest thing about
the run is what the run is called:
FAIL 1 something ran and was wrong
EXPIRED 3 the window is shut; nothing was asked
NOT_APPLICABLE 4 there was nothing here to check
INCOMPLETE 2 something that should have run did not
PASS 0 every check that could run, ran, and was right
PASS requires at least one actual pass: a run of nothing but warnings is not
a clean bill of health, it is a run of nothing.
GitHub Actions gives a job two conclusions, success and failure, so only FAIL
can be red. That is exactly why the verdict is written into report.json and
printed as the last line: the workflows annotate the run with it, and no
consumer is entitled to read a green tick as proof that anything was checked.
Exit codes 2, 3 and 4 are distinguishable to any caller that is not GitHub. */
function verdictOf(counts) {
if (counts.fail) return { verdict: 'FAIL', exit: 1 };
if (counts.expired) return { verdict: 'EXPIRED', exit: 3 };
if (!counts.pass && !counts.skip) return { verdict: 'NOT_APPLICABLE', exit: 4 };
if (counts.skip) return { verdict: 'INCOMPLETE', exit: 2 };
return { verdict: 'PASS', exit: 0 };
}
async function finish(servedSummary, via, window_) {
summaryTable();
const counts = { pass: 0, fail: 0, warn: 0, skip: 0, expired: 0, na: 0 };
for (const r of results) counts[r.status]++;
const failed = results.filter((r) => r.status === 'fail').map((r) => r.name);
const skipped = results.filter((r) => r.status === 'skip').map((r) => r.name);
const notApplicable = results.filter((r) => r.status === 'na').map((r) => r.name);
const { verdict, exit } = verdictOf(counts);
const report = {
schema: 'globalgrid2050.night-tests.v2',
verdict,
exit_code: exit,
base: BASE,
stamp: STAMP || null,
mode: STAMP ? 'single-stamp' : 'nightly',
night_window: window_ || { state: 'open', until: null },
served: servedSummary,
started_utc: new Date(started).toISOString(),
finished_utc: new Date().toISOString(),
duration_s: Number(((Date.now() - started) / 1000).toFixed(1)),
ci: IN_CI,
driver: via || null,
counts,
failed,
skipped,
not_applicable: notApplicable,
results,
};
await writeFile(REPORT_PATH, JSON.stringify(report, null, 1));
const line = [
`${counts.pass} passed`, `${counts.fail} failed`, `${counts.warn} warnings`,
`${counts.skip} skipped`, `${counts.expired} expired`, `${counts.na} not-applicable`,
].join(' / ');
console.log(`\n${line}`);
console.log(`report written to ${REPORT_PATH}`);
if (failed.length) console.log(`failing checks: ${failed.join(', ')}`);
if (skipped.length) console.log(`skipped checks: ${skipped.join(', ')}`);
if (notApplicable.length) console.log(`not applicable here: ${notApplicable.join(', ')}`);
// Last line, one token, greppable. The workflows read this and report.json;
// they are not entitled to read the job's colour as proof of anything.
console.log(`NIGHT_TESTS_VERDICT=${verdict}`);
process.exitCode = exit;
return exit;
}
main().catch(async (e) => {
console.error('night tests could not run:', e && e.stack ? e.stack : e);
try {
await writeFile(REPORT_PATH, JSON.stringify({
base: BASE, started_utc: new Date(started).toISOString(), finished_utc: new Date().toISOString(),
schema: 'globalgrid2050.night-tests.v2', verdict: 'FAIL', exit_code: 1,
harness_error: String(e && e.message ? e.message : e),
counts: { pass: 0, fail: 1, warn: 0, skip: 0, expired: 0, na: 0 },
failed: ['harness'], skipped: [], not_applicable: [], results,
}, null, 1));
} catch { /* nothing more to do */ }
console.log('NIGHT_TESTS_VERDICT=FAIL');
process.exitCode = 1;
});Build Homepage Release Candidate Workflow
A GitHub Actions workflow in GlobalGrid2050 Homepage. Runs on push, by hand and on release.
automationglobalgrid2050-homepage / .github/workflows/build-homepage-release-candidate.yml · lines 1–61 of 61 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Inputs & outputs
- Out: commits pushed to the repository.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Build and commit homepage fallback on isolated release branch”; runs Releases (`scripts/releases.py`), Build Homepage Fallback (`scripts/build_homepage_fallback.py`) and Fetch Active Pages (`scripts/fetch_active_pages.py`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050-homepage · .github/workflows · workflow
- Uses
- Releases (workflow run), Build Homepage Fallback (workflow run), Test Release GridAtlas (workflow run), Test Kuiper Universes Entry (workflow run), Test VEDIC Entry (workflow run), Test Active Pages (workflow run), Test Cyber Resilience Entry (workflow run), Test Explore Code Entry (workflow run), and 5 more
- Used by
- none found
- Produces
- none declared
- Defines here
- Build and commit homepage fallback on isolated release branch
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050-homepage@551a7625b02ddb7b3e6e0181cc643b8114c7fc06 .github/workflows/build-homepage-release-candidate.yml:1-61 · blob 80af2dbce3783b46d8085cc1500d417f9f28f072 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: unknown
name: Build and commit homepage fallback on isolated release branch
on:
push:
branches:
- release/pipeline-news-202611132345-20261114
- release/tacit15-vedic-v2-20261126
- release/tacit6b-vedic-v3-20261126
paths:
- data/homepage.json
- tests/test_vedic_entry.py
- .github/workflows/build-homepage-release-candidate.yml
workflow_dispatch:
permissions:
contents: write
concurrency:
group: homepage-q3-fallback-build
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
TARGET_BRANCH: ${{ github.event_name == 'push' && github.ref_name || 'release/pipeline-news-202611132345-20261114' }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.TARGET_BRANCH }}
persist-credentials: true
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Validate and regenerate fallback from the pinned owner catalogue
run: |
set -euo pipefail
python3 scripts/releases.py validate
python3 scripts/build_homepage_fallback.py
python3 -m unittest discover -s tests
node --check assets/versioned-homepage.js
python3 scripts/fetch_active_pages.py --check
- name: Commit only generated fallback HTML to release branch
run: |
set -euo pipefail
case "$TARGET_BRANCH" in
release/pipeline-news-202611132345-20261114|release/tacit15-vedic-v2-20261126|release/tacit6b-vedic-v3-20261126) ;;
*) echo 'Refusing unreserved branch'; exit 1 ;;
esac
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add -- index.html
if git diff --cached --quiet; then
echo 'Fallback already matches the catalogue'
exit 0
fi
git diff --cached --name-only | grep -Fx index.html
git commit -m 'build(homepage): regenerate operative release fallback'
git push origin HEAD:"$TARGET_BRANCH"
echo 'Generated fallback committed to isolated release branch'Gridbot Federation Systems Map Workflow
A GitHub Actions workflow in GlobalGrid2050 Homepage. Runs on a schedule and by hand.
automationglobalgrid2050-homepage / .github/workflows/gridbot_federation_systems_map.yml · lines 1–67 of 67 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes; uses storage (browser storage, DuckDB or Parquet).
- Inputs & outputs
- In: DuckDB queries. Out: commits pushed to the repository.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Runs Build Federation Systems Map (`scripts/build_federation_systems_map.py`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050-homepage · .github/workflows · workflow
- Uses
- Build Federation Systems Map (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Federation Systems Map
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050-homepage@551a7625b02ddb7b3e6e0181cc643b8114c7fc06 .github/workflows/gridbot_federation_systems_map.yml:1-67 · blob 3e5810f23eff3d66dbf168c75f541753f000bc11 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: process, storage · domain stage: unknown · users: none · canonical: unknown
name: GridBot Federation Systems Map
on:
schedule:
- cron: '47 6 2 * *'
workflow_dispatch:
permissions:
contents: write
concurrency:
group: gridbot-federation-systems-map
cancel-in-progress: false
jobs:
federation-systems-map:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout homepage using GridBot PAT
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Sync latest main before processing
run: git pull --ff-only origin main
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install DuckDB
run: |
set -euo pipefail
python -m pip install --upgrade pip
pip install duckdb
- name: Build federation systems map
run: |
set -euo pipefail
python scripts/build_federation_systems_map.py
- name: Upload federation systems map report
uses: actions/upload-artifact@v4
if: always()
with:
name: federation-systems-map-report
path: |
reports/FEDERATION_SYSTEMS_MAP_LATEST.md
reports/json/FEDERATION_SYSTEMS_MAP_LATEST.json
- name: Commit federation systems map outputs
run: |
set -euo pipefail
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add data/federation/system_map reports/FEDERATION_SYSTEMS_MAP_LATEST.md reports/json/FEDERATION_SYSTEMS_MAP_LATEST.json
if git diff --cached --quiet; then
echo "No federation map changes to commit."
else
git commit -m "data(federation): update systems map"
git pull --ff-only origin main
git push origin HEAD:${GITHUB_REF_NAME}
fiPages Workflow
A GitHub Actions workflow in GlobalGrid2050 Homepage that builds and publishes the site. Runs on push and by hand.
automationglobalgrid2050-homepage / .github/workflows/pages.yml · lines 1–68 of 68 · Entry point
- What it does
- It builds and publishes its content. Side effects: reads or writes files; starts processes.
- Inputs & outputs
- Out: GitHub Pages deployment.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Deploy static homepage to GitHub Pages”; runs Releases (`scripts/releases.py`), Build Homepage Fallback (`scripts/build_homepage_fallback.py`) and Fetch Active Pages (`scripts/fetch_active_pages.py`); publishes to GitHub Pages.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050-homepage · .github/workflows · workflow
- Uses
- Releases (workflow run), Build Homepage Fallback (workflow run), Test Release GridAtlas (workflow run), Test Kuiper Universes Entry (workflow run), Test VEDIC Entry (workflow run), Test Active Pages (workflow run), Test Cyber Resilience Entry (workflow run), Test Explore Code Entry (workflow run), and 6 more
- Used by
- none found
- Produces
- none declared
- Defines here
- Deploy static homepage to GitHub Pages
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050-homepage@551a7625b02ddb7b3e6e0181cc643b8114c7fc06 .github/workflows/pages.yml:1-68 · blob 02bcebee8d59bc8b20e42fbab317097710ce307e · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, process · domain stage: unknown · users: none · canonical: unknown
name: Deploy static homepage to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate version catalogue
run: |
python3 scripts/releases.py validate
python3 scripts/build_homepage_fallback.py
git diff --exit-code -- index.html
python3 -m unittest discover -s tests
node --check assets/versioned-homepage.js
python3 scripts/fetch_active_pages.py --check
- name: Check desktop and mobile browser behaviour
timeout-minutes: 5
run: |
npm install --prefix "$RUNNER_TEMP/homepage-browser" --no-save --ignore-scripts playwright@1.62.1
"$RUNNER_TEMP/homepage-browser/node_modules/.bin/playwright" install --with-deps chromium
PLAYWRIGHT_MODULE="$RUNNER_TEMP/homepage-browser/node_modules/playwright" node tests/homepage-browser.cjs
- name: Preserve browser evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: homepage-browser-evidence
path: browser-evidence
if-no-files-found: warn
- name: Assemble bounded homepage bundle
# Browser checks run before this bundle can be published.
# No local workstation security settings are involved.
run: |
mkdir -p _site/assets _site/data
cp index.html .nojekyll _site/
cp assets/versioned-homepage.js assets/versioned-homepage.css _site/assets/
cp data/homepage.json data/active-pages.json data/presentation.json data/entity-types.json _site/data/
python3 -c "from pathlib import Path; n=sum(p.stat().st_size for p in Path('_site').rglob('*') if p.is_file()); print('Homepage bytes:', n); assert n < 1000000, 'Homepage bundle exceeds 1 MB budget'"
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Upload static site
uses: actions/upload-pages-artifact@v3
with:
path: ./_site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4Pipeline V960 Public Route Workflow
A GitHub Actions workflow in GlobalGrid2050 Homepage. Runs on pull requests and by hand.
automationglobalgrid2050-homepage / .github/workflows/pipeline-v960-public-route.yml · lines 1–49 of 49 · Entry point
- What it does
- It runs the REPD register. Side effects: reads or writes files; makes network requests; starts processes.
- Why it exists in the grid workflow
- Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work. Domain terms in the code: the REPD register.
- Inputs & outputs
- In: JSON file homepage.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Verify archived Pipeline News V9.60 route and rollback”.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050-homepage · .github/workflows · workflow
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- Verify archived Pipeline News V9.60 route and rollback
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050-homepage@551a7625b02ddb7b3e6e0181cc643b8114c7fc06 .github/workflows/pipeline-v960-public-route.yml:1-49 · blob 2c89e18e41c25890679f4534dcfbfcaf63d1673e · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, network, process · domain stage: field_execution · users: EPC_contractor, landowner_planner · canonical: unknown
name: Verify archived Pipeline News V9.60 route and rollback
on:
pull_request:
paths:
- 'data/homepage.json'
- 'index.html'
- '.github/workflows/pipeline-v960-public-route.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
served:
runs-on: ubuntu-latest
timeout-minutes: 4
steps:
- uses: actions/checkout@v4
- name: Verify actual served V9.60 and immutable rollback routes
run: |
python3 - <<'PY'
import urllib.request, urllib.error, time, json
base='https://globalgrid2050.com/uk_renewables_pipeline/'
def get(path):
url=base+path
for attempt in range(4):
try:
req=urllib.request.Request(url,headers={'User-Agent':'Ventus-Release-Validation/1.0'})
with urllib.request.urlopen(req,timeout=25) as response:
body=response.read()
assert response.status==200,(url,response.status)
return body.decode('utf-8','replace')
except (urllib.error.HTTPError,urllib.error.URLError,TimeoutError) as e:
if attempt==3: raise
time.sleep(3)
html=get('202611212344/')
assert 'V9.60' in html and '202611212344' in html, 'Missing exact V9.60 served HTML'
assert 'repd-landscape.mjs' in html and 'styles/repd-landscape.css' in html, 'REPD plugin imports absent'
js=get('202611212344/repd-landscape.mjs')
css=get('202611212344/styles/repd-landscape.css')
assert 'pnRepdWideToggle' in js and 'orientation' in js, 'Served JS mismatch'
assert 'pn-repd-wide' in css, 'Served CSS mismatch'
for old in ['202611212340/','202611201709/']:
text=get(old)
assert '<html' in text.lower(), f'Rollback path {old} not served'
catalog=json.load(open('data/homepage.json'))
p=next(x for x in catalog['entities'] if x['id']=='pipeline-news')
assert p['operative_release_id'] in [x['id'] for x in p['releases'] if x['status']=='available'], 'Invalid operative release'
assert len([x for x in p['releases'] if x['id']=='202611212344' and x['status']=='available'])==1, 'V9.60 rollback missing'
print('PASS: archived V9.60 HTML, JS, CSS and V9.59/V9.57 rollback, current homepage pointer valid')
PYPR Checks Workflow
A GitHub Actions workflow in GlobalGrid2050 Homepage. Runs on pull requests and by hand.
automationglobalgrid2050-homepage / .github/workflows/pr-checks.yml · lines 1–41 of 41 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Runs Releases (`scripts/releases.py`), Build Homepage Fallback (`scripts/build_homepage_fallback.py`) and Fetch Active Pages (`scripts/fetch_active_pages.py`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050-homepage · .github/workflows · workflow
- Uses
- Releases (workflow run), Build Homepage Fallback (workflow run), Test Release GridAtlas (workflow run), Test Kuiper Universes Entry (workflow run), Test VEDIC Entry (workflow run), Test Active Pages (workflow run), Test Cyber Resilience Entry (workflow run), Test Explore Code Entry (workflow run), and 6 more
- Used by
- none found
- Produces
- none declared
- Defines here
- Homepage PR checks
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050-homepage@551a7625b02ddb7b3e6e0181cc643b8114c7fc06 .github/workflows/pr-checks.yml:1-41 · blob a864a45941ad545b6bd18e4e72e57bef17cc4824 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: unknown
name: Homepage PR checks
# Same validation and browser checks as pages.yml, run on pull requests so a
# change is proven before it reaches main. Nothing is deployed from here.
on:
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate version catalogue
run: |
python3 scripts/releases.py validate
python3 scripts/build_homepage_fallback.py
git diff --exit-code -- index.html
python3 -m unittest discover -s tests
node --check assets/versioned-homepage.js
python3 scripts/fetch_active_pages.py --check
- name: Check desktop and mobile browser behaviour
timeout-minutes: 5
run: |
npm install --prefix "$RUNNER_TEMP/homepage-browser" --no-save --ignore-scripts playwright@1.62.1
"$RUNNER_TEMP/homepage-browser/node_modules/.bin/playwright" install --with-deps chromium
PLAYWRIGHT_MODULE="$RUNNER_TEMP/homepage-browser/node_modules/playwright" node tests/homepage-browser.cjs
- name: Preserve browser evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: homepage-browser-evidence
path: browser-evidence
if-no-files-found: warnValidate Homepage Release Workflow
A GitHub Actions workflow in GlobalGrid2050 Homepage that builds and publishes the site. Runs on push, on pull requests and by hand.
automationglobalgrid2050-homepage / .github/workflows/validate-homepage-release.yml · lines 1–299 of 299 · Entry point
- What it does
- It builds and publishes the REPD register. Side effects: reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain terms in the code: the REPD register.
- Inputs & outputs
- In: JSON file homepage.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Homepage release catalogue validation”; runs Releases (`scripts/releases.py`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050-homepage · .github/workflows · workflow
- Uses
- Releases (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Homepage release catalogue validation
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050-homepage@551a7625b02ddb7b3e6e0181cc643b8114c7fc06 .github/workflows/validate-homepage-release.yml:1-299 · blob e60bd6b6bf26bb937be18764cce012b2fd6c724a · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, process · domain stage: unknown · users: none · canonical: unknown
name: Homepage release catalogue validation
on:
pull_request:
branches: [main]
paths:
- data/homepage.json
- scripts/releases.py
- .github/workflows/validate-homepage-release.yml
push:
branches: [main]
paths:
- data/homepage.json
- scripts/releases.py
- .github/workflows/validate-homepage-release.yml
workflow_dispatch:
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Validate complete catalogue and promotion history
run: python3 scripts/releases.py validate
- name: Check immutable Q2/Q3 catalogue, promotion chain and current pointer
run: |
python3 - <<'PY'
import json
from pathlib import Path
p=json.loads(Path("data/homepage.json").read_text())
e=next(e for e in p["entities"] if e["id"]=="pipeline-news")
releases={r["id"]:r for r in e["releases"]}
q2="202609082224"
q3="202611132345"
v920="202611140306"
assert {q2,q3,v920} <= releases.keys(), "missing retained release"
for rid in (q2,q3,v920):
assert releases[rid]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{rid}/", f"incorrect URL: {rid}"
assert releases[rid]["status"]=="available", f"unavailable release: {rid}"
assert releases[v920]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/a5988652003fb29e054ffa7860d8e53fe6458edc/uk_renewables_pipeline/202611140306", "unverified moving source ref"
news=[x for x in p["promotions"] if x["entity_id"]=="pipeline-news"]
assert news, "missing Pipeline News history"
q3_moves=[x for x in news if x["from_release_id"]==q2 and x["to_release_id"]==q3]
assert len(q3_moves)==1, "missing or duplicate original Q3 promotion"
assert news.index(q3_moves[0])==0, "original Q3 promotion order changed"
assert len(news)>=2, "missing successor promotion"
successor=[x for x in news if x["from_release_id"]==q3 and x["to_release_id"]==v920]
assert len(successor)==1, "V9.20 must follow Q3 exactly once"
assert news.index(successor[0])==1, "successor not directly after Q3"
assert news[-1]["to_release_id"]==e["operative_release_id"], "pointer differs from latest audited promotion"
v921="202611141017"
v922="202611151300"
assert {v921,v922} <= releases.keys(), "missing V9.21/V9.22 versions"
assert releases[v921]["status"]=="available" and releases[v922]["status"]=="available", "release archive unavailable"
assert releases[v922]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v922}/", "incorrect V9.22 URL"
assert releases[v922]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/0719ddc28f2a418281594549d4667c9916ff6b20/uk_renewables_pipeline/202611151300", "wrong immutable release source SHA"
assert any(x["from_release_id"]==v921 and x["to_release_id"]==v922 for x in news), "V9.22 promotion audit missing"
v923="202611160020"
assert v923 in releases and releases[v923]["status"]=="available", "V9.23 release missing"
assert releases[v923]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v923}/", "incorrect V9.23 URL"
assert releases[v923]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/1559f40e73a4e454c39b23d5172cf4c5e96ef3ea/uk_renewables_pipeline/202611160020", "incorrect immutable V9.23 source"
assert any(x["from_release_id"]==v922 and x["to_release_id"]==v923 for x in news), "V9.23 promotion audit missing"
v924="202611161244"
assert v924 in releases and releases[v924]["status"]=="available", "V9.24 missing"
assert releases[v924]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v924}/", "V9.24 URL"
assert releases[v924]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/6d019006d2d091e45f7b30eeafd756126230e9d7/uk_renewables_pipeline/202611161244", "V9.24 must pin immutable source commit"
assert any(x["from_release_id"]==v923 and x["to_release_id"]==v924 for x in news), "V9.24 promotion history missing"
v928="202611161757"
assert v928 in releases and releases[v928]["status"]=="available", "V9.28 missing"
assert releases[v928]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v928}/", "V9.28 URL"
assert releases[v928]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/84c739ad711b3ce8476acdfab219c8f8b67f102d/uk_renewables_pipeline/202611161757", "V9.28 must pin exact accepted product source"
assert any(x["from_release_id"]==v924 and x["to_release_id"]==v928 for x in news), "V9.24 to V9.28 promotion history missing"
v929="202611162354"
assert v929 in releases and releases[v929]["status"]=="available", "V9.29 missing"
assert releases[v929]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v929}/", "V9.29 URL"
assert releases[v929]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/bc8ba03b74dc88cd1fa9d181eb40eb45045b1291/uk_renewables_pipeline/202611162354", "V9.29 must pin exact accepted product source"
assert any(x["from_release_id"]==v928 and x["to_release_id"]==v929 for x in news), "V9.28 to V9.29 promotion history missing"
v930="202611170147"
assert v930 in releases and releases[v930]["status"]=="available", "V9.30 missing"
assert releases[v930]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v930}/", "V9.30 URL"
assert releases[v930]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/ed7b972435dc11c2aa99c69226719c31d822ed21/uk_renewables_pipeline/202611170147", "V9.30 must pin exact accepted product source"
assert any(x["from_release_id"]==v929 and x["to_release_id"]==v930 for x in news), "V9.29 to V9.30 promotion history missing"
v931="202611170243"
assert v931 in releases and releases[v931]["status"]=="available", "V9.31 missing"
assert releases[v931]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v931}/", "V9.31 URL"
assert releases[v931]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/a7641774faf9bde8862a5dc8c59f3b83805f4c96/uk_renewables_pipeline/202611170243", "V9.31 must pin exact accepted product source"
assert any(x["from_release_id"]==v930 and x["to_release_id"]==v931 for x in news), "V9.30 to V9.31 promotion history missing"
v932="202611170324"
assert v932 in releases and releases[v932]["status"]=="available", "V9.32 missing"
assert releases[v932]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v932}/", "V9.32 URL"
assert releases[v932]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/ba57b59447c4c7619262d440f6d4cac449dac8a2/uk_renewables_pipeline/202611170324", "V9.32 must pin exact accepted product source"
assert any(x["from_release_id"]==v931 and x["to_release_id"]==v932 for x in news), "V9.31 to V9.32 promotion history missing"
v933="202611170512"
assert v933 in releases and releases[v933]["status"]=="available", "V9.33 missing"
assert releases[v933]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v933}/", "V9.33 URL"
assert releases[v933]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/e68a760bf41e98167cf5f3e86de474ed9e7bcfda/uk_renewables_pipeline/202611170512", "V9.33 must pin exact accepted product source"
assert releases[v933]["published_at"] is None, "V9.33 publication time must remain unasserted before public verification"
assert any(x["from_release_id"]==v932 and x["to_release_id"]==v933 for x in news), "V9.32 to V9.33 promotion history missing"
v934="202611171141"
assert v934 in releases and releases[v934]["status"]=="available", "V9.34 missing"
assert releases[v934]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v934}/", "V9.34 URL"
assert releases[v934]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/56af4746ffc8781621b03dfedbf5ca1685a245ae/uk_renewables_pipeline/202611171141", "V9.34 must pin exact accepted product source"
assert releases[v934]["published_at"] is None, "V9.34 publication time must remain unasserted before public verification"
assert any(x["from_release_id"]==v933 and x["to_release_id"]==v934 for x in news), "V9.33 to V9.34 promotion history missing"
v935="202611171217"
assert v935 in releases and releases[v935]["status"]=="available", "V9.35 missing"
assert releases[v935]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v935}/", "V9.35 URL"
assert releases[v935]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/2499e91704a24f1586ba4bf1b85a3f5beca5cb6a/uk_renewables_pipeline/202611171217", "V9.35 must pin exact accepted product source"
assert releases[v935]["published_at"] is None, "V9.35 publication time must remain unasserted before public verification"
assert any(x["from_release_id"]==v934 and x["to_release_id"]==v935 for x in news), "V9.34 to V9.35 promotion history missing"
v936="202611171507"
assert v936 in releases and releases[v936]["status"]=="available", "V9.36 missing"
assert releases[v936]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v936}/", "V9.36 URL"
assert releases[v936]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/de175b28076ca3115ecb026174b7dc6bb1fd9e8c/uk_renewables_pipeline/202611171507", "V9.36 must pin exact accepted product source"
assert releases[v936]["published_at"] is None, "V9.36 publication time must remain unasserted before public verification"
assert any(x["from_release_id"]==v935 and x["to_release_id"]==v936 for x in news), "V9.35 to V9.36 promotion history missing"
v937="202611171526"
assert v937 in releases and releases[v937]["status"]=="available", "V9.37 missing"
assert releases[v937]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v937}/", "V9.37 URL"
assert releases[v937]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/aca34ce9ff2e76e56f4c1a6c564870a35b8815dd/uk_renewables_pipeline/202611171526", "V9.37 must pin exact accepted product source"
assert releases[v937]["published_at"] is None, "V9.37 publication time must remain unasserted before public verification"
assert any(x["from_release_id"]==v936 and x["to_release_id"]==v937 for x in news), "V9.36 to V9.37 promotion history missing"
v940="202611171710"
assert v940 in releases and releases[v940]["status"]=="available", "V9.40 missing"
assert releases[v940]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v940}/", "V9.40 URL"
assert releases[v940]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/5e17571d634bd4f298ff4c73a1f84beaa1a09e37/uk_renewables_pipeline/202611171710", "V9.40 must pin exact accepted product source"
assert releases[v940]["published_at"] is None, "Publication clock remains unasserted"
assert any(x["from_release_id"]==v937 and x["to_release_id"]==v940 for x in news), "Immediate predecessor promotion history missing"
v941="202611171940"
assert v941 in releases and releases[v941]["status"]=="available", "V9.41 missing"
assert releases[v941]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v941}/", "V9.41 URL"
assert releases[v941]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/f975a982619d55f28d9091e11d73279fe826ae1f/uk_renewables_pipeline/202611171940", "V9.41 must pin exact accepted product source"
assert releases[v941]["published_at"] is None, "Publication clock remains unasserted"
assert any(x["from_release_id"]==v940 and x["to_release_id"]==v941 for x in news), "Immediate predecessor promotion history missing"
v942="202611172355"
assert v942 in releases and releases[v942]["status"]=="available", "V9.42 missing"
assert releases[v942]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v942}/", "V9.42 URL"
assert releases[v942]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/33da7796caf6d9db6eacb1893d52ef8c89666ad8/uk_renewables_pipeline/202611172355", "V9.42 exact source"
assert releases[v942]["published_at"] is None, "Publication clock remains unasserted"
assert any(x["from_release_id"]==v941 and x["to_release_id"]==v942 for x in news), "V9.41 to V9.42 history missing"
v944="202611180451"
assert v944 in releases and releases[v944]["status"]=="available", "V9.44 missing"
assert releases[v944]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v944}/", "V9.44 URL"
assert releases[v944]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/b7c5f44fca32fe107eaa5f5e80a535b18f8b490f/uk_renewables_pipeline/202611180451", "V9.44 exact source"
assert releases[v944]["published_at"] is None, "Publication clock remains unasserted"
assert any(x["from_release_id"]==v942 and x["to_release_id"]==v944 for x in news), "V9.42 to V9.44 history missing"
v946="202611180633"
assert v946 in releases and releases[v946]["status"]=="available", "V9.46 missing"
assert releases[v946]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v946}/", "V9.46 URL"
assert releases[v946]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/169fe4e196741971c3cb380ddb49344977026b82/uk_renewables_pipeline/202611180633", "V9.46 exact source"
assert releases[v946]["published_at"] is None, "Publication clock remains unasserted"
assert any(x["from_release_id"]==v944 and x["to_release_id"]==v946 for x in news), "V9.44 to V9.46 history missing"
v956="202611191418"
assert v956 in releases and releases[v956]["status"]=="available", "V9.56 missing"
assert releases[v956]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v956}/", "V9.56 URL"
assert releases[v956]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/9648b09863e40092ddc653468b573a720b2f1ed9/uk_renewables_pipeline/202611191418", "V9.56 exact source"
assert releases[v956]["published_at"] is None, "Homepage publication clock remains unasserted"
assert any(x["from_release_id"]==v946 and x["to_release_id"]==v956 for x in news), "V9.46 to V9.56 history missing"
v957="202611201709"
assert releases[v957]["url"]=="https://globalgrid2050.com/uk_renewables_pipeline/202611201709/"
assert releases[v957]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/577233737689e1289c89436d76ae50a272fb3677/uk_renewables_pipeline/202611201709"
assert releases[v957]["status"]=="available"
assert any(x["from_release_id"]==v956 and x["to_release_id"]==v957 for x in news), "V9.56 to V9.57 history missing"
releases_expected={
"202611212308":("V9.58","6e958cef7da74f042f75f7d2a6c19f3ebc7a2f89"),
"202611212340":("V9.59","78915774f690996dd4a745ce8af4fcdd59187a0a"),
"202611212344":("V9.60","3b9716e13c93c5e3ee84038339701279c79a90a5"),
}
for rid,(tag,sha) in releases_expected.items():
assert rid in releases and releases[rid]["status"]=="available", f"{tag} missing"
assert releases[rid]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{rid}/",f"{tag} route"
assert releases[rid]["source_ref"]==f"https://github.com/Ventusltd/globalgrid2050/tree/{sha}/uk_renewables_pipeline/{rid}", f"{tag} immutable source"
assert releases[rid]["published_at"] is None, "Unknown publication clocks must remain unknown"
# Preserve the audited V9.60 promotion, now succeeded by the approved V9.63.
assert any(x["from_release_id"]==v957 and x["to_release_id"]=="202611212344" for x in news), "original V9.60 promotion must remain"
latest={"202611220100":"V9.61","202611220125":"V9.62","202611220220":"V9.63"}
pinned="f01902f5751cb412e950663a1903641fa8ffa456"
for rid,label in latest.items():
assert rid in releases and releases[rid]["status"]=="available", f"{label} missing"
assert releases[rid]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{rid}/", f"{label} app route"
assert releases[rid]["source_ref"]==f"https://github.com/Ventusltd/globalgrid2050/tree/{pinned}/uk_renewables_pipeline/{rid}", f"{label} immutable source"
assert releases[rid]["published_at"] is None, f"{label} publication clock must remain unasserted"
assert any(x["from_release_id"]=="202611212344" and x["to_release_id"]=="202611220220" for x in news), "V9.63 immutable promotion history"
v964="202611221243"
assert v964 in releases and releases[v964]["status"]=="available", "V9.64 missing"
assert releases[v964]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v964}/", "V9.64 URL"
assert releases[v964]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/f9c55e56de3f56de2aa9ca8156ff09e1dcceaa1c/uk_renewables_pipeline/202611221243", "V9.64 immutable source"
assert releases[v964]["published_at"] is None, "V9.64 publication clock remains unasserted"
assert releases["202611220125"]["label"]=="V9.62 - Project, MW/MWp and MAP prospect scan", "V9.62 public language"
assert any(x["from_release_id"]=="202611220220" and x["to_release_id"]==v964 for x in news), "V9.64 immutable promotion history"
v965="202611221330"
assert v965 in releases and releases[v965]["status"]=="available", "V9.65 missing"
assert releases[v965]["label"]=="V9.65 - Expanded REPD View with persistent analytics cockpit", "V9.65 release label"
assert releases[v965]["url"]=="https://globalgrid2050.com/uk_renewables_pipeline/202611221330/", "V9.65 live route"
assert releases[v965]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/0a393cd1d5415b560daa96933ab8a3b5b834b550/uk_renewables_pipeline/202611221330", "V9.65 merged source"
assert releases[v965]["published_at"] is None, "Do not invent publication timestamp"
assert any(x["from_release_id"]==v964 and x["to_release_id"]==v965 for x in news), "V9.65 promotion history"
assert any(x["from_release_id"]==v964 and x["to_release_id"]==v965 for x in news), "V9.65 immutable promotion history"
v966="202611221500"
assert v966 in releases and releases[v966]["status"]=="available", "V9.66 missing"
assert releases[v966]["label"]=="V9.66 - Red Expanded REPD with Operator MAP and A4", "V9.66 release label"
assert releases[v966]["url"]=="https://globalgrid2050.com/uk_renewables_pipeline/202611221500/", "V9.66 URL"
assert releases[v966]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/9d88781aa89ccfbd6ad4ade4fecf6cf4889d7b1b/uk_renewables_pipeline/202611221500", "V9.66 source"
assert releases[v966]["published_at"] is None, "No unverified publication timestamp"
assert any(x["from_release_id"]==v965 and x["to_release_id"]==v966 for x in news), "V9.66 promotion history"
v967="202611221625"
assert v967 in releases and releases[v967]["status"]=="available", "V9.67 missing"
assert releases[v967]["label"]=="V9.67 - Native Expanded REPD, all columns and pinch zoom", "V9.67 label"
assert releases[v967]["url"]=="https://globalgrid2050.com/uk_renewables_pipeline/202611221625/", "V9.67 URL"
assert releases[v967]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/b474a304c07982f25fc43dfa8ec40f9fbd8c3bc3/uk_renewables_pipeline/202611221625", "V9.67 source"
assert releases[v967]["published_at"] is None, "Do not invent publication timestamp"
assert any(x["from_release_id"]==v966 and x["to_release_id"]==v967 for x in news), "V9.67 audited promotion"
v968="202611221705"
assert v968 in releases and releases[v968]["status"]=="available", "V9.68 release missing"
assert releases[v968]["label"]=="V9.68 - Landscape REPD reading view", "V9.68 label"
assert releases[v968]["url"]=="https://globalgrid2050.com/uk_renewables_pipeline/202611221705/", "V9.68 URL"
assert releases[v968]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/704318e6037985044ee47b1d86d314dd77797826/uk_renewables_pipeline/202611221705", "V9.68 immutable source"
assert releases[v968]["published_at"] is None, "Do not invent publication timestamp"
assert any(x["from_release_id"]==v967 and x["to_release_id"]==v968 for x in news), "V9.68 promotion must remain"
v969="202611221850"
assert v969 in releases and releases[v969]["status"]=="available", "V9.69 rollback missing"
assert releases[v969]["url"]=="https://globalgrid2050.com/uk_renewables_pipeline/202611221850/", "V9.69 rollback route"
assert releases[v969]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/cd5704c2443606b484d57e7667c05d8fd409a9e8/uk_renewables_pipeline/202611221850", "V9.69 immutable source"
assert releases[v969]["published_at"] is None, "Unknown V9.69 publication time"
assert any(x["from_release_id"]==v968 and x["to_release_id"]==v969 for x in news), "V9.69 promotion history"
v970="202611221900"
assert v970 in releases and releases[v970]["status"]=="available", "V9.70 missing"
assert releases[v970]["label"]=="V9.70 - Expanded MAP navigation parity", "V9.70 label"
assert releases[v970]["url"]=="https://globalgrid2050.com/uk_renewables_pipeline/202611221900/", "V9.70 route"
assert releases[v970]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/3717ea87413f25410168d982d898e873b87ea6bf/uk_renewables_pipeline/202611221900", "V9.70 merged source"
assert releases[v970]["published_at"] is None, "Do not invent publication timestamp"
assert any(x["from_release_id"]==v969 and x["to_release_id"]==v970 for x in news), "V9.70 promotion history"
v971="202611221930"
assert v971 in releases and releases[v971]["status"]=="available", "V9.71 missing"
assert releases[v971]["label"]=="V9.71 - Simplified REPD expanded-view controls", "V9.71 label"
assert releases[v971]["url"]=="https://globalgrid2050.com/uk_renewables_pipeline/202611221930/", "V9.71 route"
assert releases[v971]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/0f8b1b925851e5d20073eab27d01b804f2bbb305/uk_renewables_pipeline/202611221930", "V9.71 merged source"
assert releases[v971]["published_at"] is None, "Do not invent publication timestamp"
assert any(x["from_release_id"]==v970 and x["to_release_id"]==v971 for x in news), "V9.71 promotion history"
v972="202611222222"
assert v972 in releases and releases[v972]["status"]=="available", "V9.72 missing"
assert releases[v972]["label"]=="V9.72 - VICINITY MAP and A4/PDF link parity", "V9.72 release label"
assert releases[v972]["url"]=="https://globalgrid2050.com/uk_renewables_pipeline/202611222222/", "V9.72 URL"
assert releases[v972]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/384de6d2789ba5947613728ec348ed2fe50a3384/uk_renewables_pipeline/202611222222", "V9.72 immutable source SHA"
assert releases[v972]["published_at"] is None, "Do not invent actual publication clock"
assert any(x["from_release_id"]==v971 and x["to_release_id"]==v972 for x in news), "V9.72 promotion preserved"
v973="202611222330"
assert v973 in releases and releases[v973]["status"]=="available", "V9.73 release missing"
assert releases[v973]["label"]=="V9.73 - Operator, Status and Region MW reports", "V9.73 label"
assert releases[v973]["url"]=="https://globalgrid2050.com/uk_renewables_pipeline/202611222330/", "V9.73 URL"
assert releases[v973]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/477e8fa8ec4986c1b525f5c29e5b11decee991fa/uk_renewables_pipeline/202611222330", "V9.73 immutable source"
assert releases[v973]["published_at"] is None, "Unverified publication timestamp"
assert any(x["from_release_id"]==v972 and x["to_release_id"]==v973 for x in news), "V9.73 audited promotion missing"
v974="202611231400"
assert v974 in releases and releases[v974]["status"]=="available", "V9.74 release missing"
assert releases[v974]["label"]=="V9.74 - Technology-filtered Operator MW cockpit", "V9.74 exact label"
assert releases[v974]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v974}/", "V9.74 route"
assert releases[v974]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/a7f49fa4af3c69944cede29f90837f1f7877e8ef/uk_renewables_pipeline/202611231400", "V9.74 immutable source SHA"
assert releases[v974]["published_at"] is None, "Do not claim public served timestamp before verification"
assert any(x["from_release_id"]==v973 and x["to_release_id"]==v974 for x in news), "V9.74 audited promotion missing"
v975="202611231600"
assert v975 in releases and releases[v975]["status"]=="available", "V9.75 release missing"
assert releases[v975]["label"]=="V9.75 - Native REPD Operator, Status and Region filters", "V9.75 exact label"
assert releases[v975]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v975}/", "V9.75 route"
assert releases[v975]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/5cb111911073a149dd4a69992a02ff52b61f55bb/uk_renewables_pipeline/202611231600", "V9.75 immutable source SHA"
assert releases[v975]["published_at"] is None, "Do not falsely claim public served timestamp"
assert any(x["from_release_id"]==v974 and x["to_release_id"]==v975 for x in news), "V9.75 audit missing"
v976="202611232245"
assert v976 in releases and releases[v976]["status"]=="available", "V9.76 release missing"
assert releases[v976]["label"]=="V9.76 - Mobile REPD report readability", "V9.76 exact label"
assert releases[v976]["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v976}/", "V9.76 route"
assert releases[v976]["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/032e28629125515650ea14d99091362ba46ee457/uk_renewables_pipeline/202611232245", "V9.76 exact immutable SHA"
assert releases[v976]["published_at"] is None, "Do not prematurely assert served"
assert any(x["from_release_id"]==v975 and x["to_release_id"]==v976 for x in news), "V9.76 audit must follow V9.75"
v977="202611280048"
release=releases[v977]
assert release["status"]=="available" and release["published_at"]=="2026-11-28"
assert release["label"]=="V9.77 · Legal evidence by REPD project"
assert release["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v977}/"
assert release["source_ref"]==f"https://github.com/Ventusltd/globalgrid2050/tree/d062f31be9e2eb206e5b92ed5e4cd74982c1b1d4/uk_renewables_pipeline/{v977}"
assert any(x["from_release_id"]==v976 and x["to_release_id"]==v977 for x in news), "V9.77 audit must follow V9.76"
v978="202611280922"
release=releases[v978]
assert release["status"]=="available" and release["published_at"]=="2026-11-28"
assert release["label"]=="V9.78 · Project A4 reports"
assert release["url"]==f"https://globalgrid2050.com/uk_renewables_pipeline/{v978}/"
assert release["source_ref"]=="https://github.com/Ventusltd/globalgrid2050/tree/f0de25a1b48b06a8f1015f8522e5952309aee73e/uk_renewables_pipeline/202611280922"
assert news[-1]["from_release_id"]==v977 and news[-1]["to_release_id"]==v978, "V9.78 audit must follow V9.77"
assert e["operative_release_id"]==v978, "Unexpected operative target"
assert len({x["to_release_id"] for x in news})==len(news), "repeated promotion target"
print("PASS: V9.78 is operative and its predecessors retain immutable evidence")
PY