GLOBALGRID2050 / EXPLORE CODE

Part of: Explore Code / Automation and CI / globalgrid2050 / .github/workflows

GlobalGrid2050 Verify V967 Public Workflow and 7 more files

A GitHub Actions workflow. Runs on push and by hand.

647 lines of YAML from globalgrid2050, in 8 files. Topic: Automation and CI. Section 1739 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. GlobalGrid2050 Verify V967 Public Workflow automation · globalgrid2050 / .github/workflows/verify-v967-public.yml lines 1–119
  2. GlobalGrid2050 Verify V968 Public Workflow automation · globalgrid2050 / .github/workflows/verify-v968-public.yml lines 1–57
  3. GlobalGrid2050 Verify V969 Public Workflow automation · globalgrid2050 / .github/workflows/verify-v969-public.yml lines 1–55
  4. GlobalGrid2050 Verify V970 Public Workflow automation · globalgrid2050 / .github/workflows/verify-v970-public.yml lines 1–74
  5. GlobalGrid2050 Verify V971 Public Workflow automation · globalgrid2050 / .github/workflows/verify-v971-public.yml lines 1–76
  6. GlobalGrid2050 Verify V972 Public Workflow automation · globalgrid2050 / .github/workflows/verify-v972-public.yml lines 1–78
  7. GlobalGrid2050 Verify V973 Public Workflow automation · globalgrid2050 / .github/workflows/verify-v973-public.yml lines 1–84
  8. GlobalGrid2050 Verify V974 Public Workflow automation · globalgrid2050 / .github/workflows/verify-v974-public.yml lines 1–104

GlobalGrid2050 Verify V967 Public Workflow

A GitHub Actions workflow. Runs on push and by hand.

automationglobalgrid2050 / .github/workflows/verify-v967-public.yml · lines 1–119 of 119 · Entry point

What it does
It runs the REPD register. Side effects: changes the web page (DOM); reads or writes files; makes network requests; 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 “Verify V9.67 public native Expanded Renewable Energy Planning Database (REPD) and rollbacks”.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Verify V9.67 public native Expanded REPD and rollbacks
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/verify-v967-public.yml:1-119 · blob 1f0f822d98085cc461760151a0797ebe96c20141 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom, filesystem, network, process · domain stage: unknown · users: none · canonical: production_core
name: Verify V9.67 public native Expanded REPD and rollbacks
on:
  push:
    branches: [main]
    paths:
      - 'index.html'
      - 'homepage-shell/**'
      - 'uk_renewables_pipeline/202611221625/**'
      - '.github/workflows/verify-v967-public.yml'
  workflow_dispatch:
permissions:
  contents: read
jobs:
  served:
    runs-on: ubuntu-latest
    timeout-minutes: 30
    steps:
      - uses: actions/checkout@v4
      - name: Verify source SHA256 and immutable A4/REPD rollbacks on public CDN
        run: |
          python3 - <<'PY'
          import json,hashlib,time,os
          from pathlib import Path
          from urllib.request import urlopen,Request
          root=Path('.')
          curr='uk_renewables_pipeline/202611221625/'
          prev='uk_renewables_pipeline/202611221500/'
          old='uk_renewables_pipeline/202611221330/'
          a4='uk_renewables_pipeline/202611220220/'
          entries=json.loads((root/'homepage-shell/data/homepage.json').read_text())
          e=next(x for x in entries['entities'] if x['id']=='pipeline-news')
          assert e['operative_release_id'] in ('202611221625','202611221705','202611221850')
          assert len(e['releases']) in (34,35,36)
          assert all(any(y['id']==x and y['status']=='available' for y in e['releases'])
                     for x in ['202611221625','202611221500','202611221330','202611221243','202611220220'])
          expected_src='https://github.com/Ventusltd/globalgrid2050/tree/b474a304c07982f25fc43dfa8ec40f9fbd8c3bc3/uk_renewables_pipeline/202611221625'
          assert next(x for x in e['releases'] if x['id']=='202611221625')['source_ref']==expected_src
          assert '202611221625' in (root/'index.html').read_text()
          ui=(root/(curr+'repd-expanded.mjs')).read_text()
          assert 'fitAllColumns()' in ui and 'setExpandedPageRows(true)' in ui
          for path in ('report-a4.mjs','report-model.mjs','report-pdf.mjs','styles/report-a4.css'):
              assert (root/(curr+path)).read_bytes()==(root/(old+path)).read_bytes()==(root/(a4+path)).read_bytes(),path
          files=['index.html','homepage-shell/data/homepage.json',
                 curr+'index.html',curr+'repd-expanded.mjs',
                 curr+'styles/repd-expanded.css',curr+'scripts/plugins/projects-v9-8.js',
                 curr+'report-a4.mjs',curr+'report-pdf.mjs',
                 prev+'index.html',prev+'repd-expanded.mjs',
                 old+'index.html',old+'report-a4.mjs',
                 'uk_renewables_pipeline/202611221243/index.html',
                 a4+'index.html',a4+'report-a4.mjs']
          expect={p:hashlib.sha256((root/p).read_bytes()).hexdigest() for p in files}
          version=os.environ.get('GITHUB_SHA','v967')[:12]
          for attempt in range(1,71):
              bad=[]
              for p in files:
                  req=Request('https://globalgrid2050.com/'+p+f'?verify967={version}-{attempt}',
                          headers={'User-Agent':'GlobalGrid2050-v967-verifier/1.0',
                                   'Cache-Control':'no-cache','Accept-Encoding':'identity'})
                  try:
                      with urlopen(req,timeout=18) as response:
                          actual=hashlib.sha256(response.read(3000000)).hexdigest()
                          if response.status!=200 or actual!=expect[p]:
                              bad.append(p+' status or byte mismatch')
                  except Exception as error:
                      bad.append(p+': '+str(error))
              if not bad:
                  print('PASS 15/15 public files exact SHA256; V9.67 homepage and V9.66/V9.65/V9.64/V9.63 rollback intact',flush=True)
                  break
              print(f'Attempt {attempt}/70: {len(bad)} mismatches: {bad[:3]}',flush=True)
              if attempt==70:raise SystemExit('V9.67 not proven publicly served: '+repr(bad))
              time.sleep(10)
          PY
      - uses: actions/setup-node@v4
        with:
          node-version: '22'
      - name: Install Chromium and WebKit
        working-directory: uk_renewables_pipeline/202611221625
        run: |
          npm ci
          npx playwright install --with-deps chromium webkit
      - name: Test real public V9.67 and previous A4 controls in browsers
        working-directory: uk_renewables_pipeline/202611221625
        run: |
          node --input-type=module <<'JS'
          import {chromium,webkit} from 'playwright';
          for(const [engine,driver] of [['chromium',chromium],['webkit',webkit]]){
            const browser=await driver.launch({headless:true});
            try{
              const page=await browser.newPage({viewport:{width:393,height:852},hasTouch:true});
              await page.route('https://raw.githubusercontent.com/**',route=>route.abort());
              try{
                await page.goto('https://globalgrid2050.com/uk_renewables_pipeline/202611221625/?verify=967',{waitUntil:'domcontentloaded',timeout:90000});
                await page.waitForFunction(()=>document.querySelectorAll('#tbody tr[id^="repd-"]').length===50,{timeout:90000});
                await page.locator('#pnLiquidLaunch').click();
                await page.waitForFunction(()=>document.querySelectorAll('#tbody tr[id^="repd-"]').length===100 &&
                  Number(document.querySelector('#repdScroll')?.dataset.zoom)>0,{timeout:90000});
                const out=await page.evaluate(()=>{
                  const el=document.getElementById('repdScroll');
                  const row=document.querySelector('#tbody tr[id^="repd-"]');
                  return {columns:document.querySelectorAll('#repdScroll thead th').length,
                    tableWidth:el.querySelector('table').getBoundingClientRect().width,
                    viewportWidth:el.clientWidth,
                    gauges:document.querySelectorAll('#repdPanel>.hud-gauges canvas').length,
                    map:!!row.cells[12].querySelector('.pn-journey-link'),
                    report:!!row.cells[12].querySelector('.pn-report-launch')};
                });
                if(out.columns!==13||out.tableWidth>out.viewportWidth+5||out.gauges!==3||!out.map||!out.report){
                  throw Error('V9.67 actual expanded layout invalid '+JSON.stringify(out));
                }
                await page.locator('#tbody tr[id^="repd-"] td:nth-child(13) .pn-report-launch').first().click();
                await page.waitForSelector('#pnRepdReport:not([hidden])',{timeout:15000});
                await page.locator('[data-report-action="close"]').click();
                await page.locator('#pnExpandedClose').click();
                if(await page.locator('#tbody tr[id^="repd-"]').count()!==50)throw Error('Normal page not restored');
                console.log('PASS PUBLIC',engine,JSON.stringify(out));
              }finally{await page.close();}
            }finally{await browser.close();}
          }
          JS

GlobalGrid2050 Verify V968 Public Workflow

A GitHub Actions workflow. Runs on push and by hand.

automationglobalgrid2050 / .github/workflows/verify-v968-public.yml · lines 1–57 of 57 · 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 terms in the code: the REPD register.
Inputs & outputs
In: JSON file homepage.json; JSON file homepage-owner.json.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “Verify V9.68 active Pipeline News public bytes”.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Verify V9.68 active Pipeline News public bytes
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/verify-v968-public.yml:1-57 · blob f509c3fd44d72258da8e81986b30e3d996f42331 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, network, process · domain stage: unknown · users: none · canonical: production_core
name: Verify V9.68 active Pipeline News public bytes
on:
  push:
    branches: [main]
    paths:
      - 'index.html'
      - 'homepage-shell/data/homepage.json'
      - 'catalogue/homepage-owner.json'
      - '.github/workflows/verify-v968-public.yml'
  workflow_dispatch:
permissions:
  contents: read
jobs:
  served:
    runs-on: ubuntu-latest
    timeout-minutes: 20
    steps:
      - uses: actions/checkout@v4
      - name: Test CDN HTTP 200 and exact bytes for V9.68, homepage and rollback
        run: |
          python3 - <<'PY'
          from pathlib import Path
          from urllib.request import Request,urlopen
          import json,hashlib,time,os
          root=Path('.')
          cfg=json.loads((root/'homepage-shell/data/homepage.json').read_text())
          p=next(e for e in cfg['entities'] if e['id']=='pipeline-news')
          assert p['operative_release_id'] in ('202611221705','202611221850') and len(p['releases']) in (35,36)
          assert any(x['id']=='202611221705' for x in p['releases']), 'V9.68 archive missing'
          assert any(x['id']=='202611221625' for x in p['releases']), 'V9.67 archive missing'
          assert cfg['promotions'][-1]['to_release_id']==p['operative_release_id']
          assert '202611221705' in (root/'index.html').read_text()
          fresh='uk_renewables_pipeline/202611221705/'
          old='uk_renewables_pipeline/202611221625/'
          for name in ['report-a4.mjs','report-pdf.mjs','styles/report-a4.css']:
              assert (root/(fresh+name)).read_bytes()==(root/(old+name)).read_bytes()
          paths=['index.html','homepage-shell/data/homepage.json',
                 fresh+'index.html',fresh+'repd-expanded.mjs',
                 fresh+'styles/repd-expanded.css',fresh+'report-a4.mjs',
                 fresh+'report-pdf.mjs',old+'index.html',old+'report-a4.mjs']
          expected={p:hashlib.sha256((root/p).read_bytes()).hexdigest() for p in paths}
          for iteration in range(1,45):
              bad=[]
              for name,digest in expected.items():
                  url='https://globalgrid2050.com/'+name+'?verify968='+os.getenv('GITHUB_SHA','x')[:9]+'-'+str(iteration)
                  try:
                      with urlopen(Request(url,headers={'Cache-Control':'no-cache','Accept-Encoding':'identity','User-Agent':'Ventus-V968-CD'}),timeout=20) as response:
                          if response.status!=200 or hashlib.sha256(response.read(4000000)).hexdigest()!=digest:
                              bad.append(name+' status or byte mismatch')
                  except Exception as exc: bad.append(name+': '+str(exc))
              if not bad:
                  print('PASS: public V9.68 HTTP 200, all 9/9 exact bytes, homepage and V9.67 rollback',flush=True)
                  break
              print(f'Attempt {iteration}/44: {len(bad)} problems: {bad[:4]}',flush=True)
              if iteration==44: raise SystemExit('V9.68 not verified: '+repr(bad))
              time.sleep(10)
          PY

GlobalGrid2050 Verify V969 Public Workflow

A GitHub Actions workflow. Runs on push and by hand.

automationglobalgrid2050 / .github/workflows/verify-v969-public.yml · lines 1–55 of 55 · 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 terms in the code: the REPD register.
Inputs & outputs
In: JSON file homepage.json; JSON file homepage-owner.json.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “Verify V9.69 active Renewable Energy Planning Database (REPD) public bytes and A4 rollback”.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Verify V9.69 active REPD public bytes and A4 rollback
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/verify-v969-public.yml:1-55 · blob c62575fe2dd6eb3aede96e656128ee297a1e123b · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, network, process · domain stage: unknown · users: none · canonical: production_core
name: Verify V9.69 active REPD public bytes and A4 rollback
on:
  push:
    branches: [main]
    paths:
      - 'index.html'
      - 'homepage-shell/data/homepage.json'
      - 'catalogue/homepage-owner.json'
      - '.github/workflows/verify-v969-public.yml'
  workflow_dispatch:
permissions:
  contents: read
jobs:
  served:
    runs-on: ubuntu-latest
    timeout-minutes: 20
    steps:
      - uses: actions/checkout@v4
      - name: Inspect V9.69 homepage, original A4 and exact HTTPS bytes
        run: |
          python3 - <<'PY'
          from pathlib import Path
          from urllib.request import Request,urlopen
          import hashlib,json,time,os
          root=Path('.')
          catalog=json.loads((root/'homepage-shell/data/homepage.json').read_text())
          entity=next(x for x in catalog['entities'] if x['id']=='pipeline-news')
          assert entity['operative_release_id']=='202611221850' and len(entity['releases'])==36
          assert catalog['promotions'][-1]['to_release_id']=='202611221850'
          assert '202611221850' in (root/'index.html').read_text()
          fresh='uk_renewables_pipeline/202611221850/'
          old='uk_renewables_pipeline/202611221705/'
          for file in ['report-a4.mjs','report-model.mjs','report-pdf.mjs','styles/report-a4.css']:
              assert (root/(fresh+file)).read_bytes()==(root/(old+file)).read_bytes(),file
          files=['index.html','homepage-shell/data/homepage.json',
                 fresh+'index.html',fresh+'repd-expanded.mjs',fresh+'styles/repd-expanded.css',
                 fresh+'report-a4.mjs',fresh+'report-pdf.mjs',
                 old+'index.html',old+'report-a4.mjs']
          expected={file:hashlib.sha256((root/file).read_bytes()).hexdigest() for file in files}
          for attempt in range(1,49):
              bad=[]
              for file,digest in expected.items():
                  url='https://globalgrid2050.com/'+file+'?verify969='+os.getenv('GITHUB_SHA','local')[:8]+'-'+str(attempt)
                  try:
                      with urlopen(Request(url,headers={'Cache-Control':'no-cache','Accept-Encoding':'identity','User-Agent':'Ventus-v969-release-verifier'}),timeout=20) as response:
                          if response.status!=200 or hashlib.sha256(response.read(4000000)).hexdigest()!=digest:
                              bad.append(file+' public byte mismatch')
                  except Exception as exc:bad.append(file+': '+str(exc))
              if not bad:
                  print('PASS 9/9 public SHA256 and HTTP200; V9.69 homepage and V9.68 original A4 rollback',flush=True)
                  break
              print(f'Attempt {attempt}/48: {len(bad)} issues: {bad[:3]}',flush=True)
              if attempt==48:raise SystemExit('Failed public publication: '+repr(bad))
              time.sleep(10)
          PY

GlobalGrid2050 Verify V970 Public Workflow

A GitHub Actions workflow that builds and publishes the site. Runs on push and by hand.

automationglobalgrid2050 / .github/workflows/verify-v970-public.yml · lines 1–74 of 74 · Entry point

What it does
It builds and publishes the REPD register. Side effects: reads or writes files; makes network requests; starts processes.
Why it exists in the grid workflow
Domain terms in the code: the REPD register.
Inputs & outputs
In: JSON file homepage-owner.json; 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 V9.70 actual public MAP source, homepage and V9.69 rollback”.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Verify V9.70 actual public MAP source, homepage and V9.69 rollback
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/verify-v970-public.yml:1-74 · blob 2eb47dfad1a77f74ad4b95b23664d4738a7ec9c4 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, network, process · domain stage: unknown · users: none · canonical: production_core
name: Verify V9.70 actual public MAP source, homepage and V9.69 rollback
on:
  push:
    branches: [main]
    paths:
      - 'catalogue/homepage-owner.json'
      - 'uk_renewables_pipeline/202611221900/**'
      - '.github/workflows/verify-v970-public.yml'
  workflow_dispatch:
permissions:
  contents: read
jobs:
  served:
    runs-on: ubuntu-latest
    timeout-minutes: 20
    steps:
      - uses: actions/checkout@v4
      - name: Compare live HTTPS bytes to owner-pinned homepage and immutable source
        shell: bash
        run: |
          python3 - <<'PY'
          from pathlib import Path
          import hashlib, json, os, time
          from urllib.request import Request, urlopen
          pin=json.loads(Path('catalogue/homepage-owner.json').read_text())
          assert pin['repository']=='Ventusltd/globalgrid2050-homepage'
          assert pin['commit']=='a97aa204164063a9af4b822c15133c2423cfbbce'
          def get(url):
              req=Request(url,headers={'Cache-Control':'no-cache','Accept-Encoding':'identity','User-Agent':'Ventus-V970-public-source-verifier'})
              with urlopen(req,timeout=25) as r:
                  if r.status!=200:raise ValueError('HTTP '+str(r.status)+' '+url)
                  return r.read(4_000_000)
          def sha(b):return hashlib.sha256(b).hexdigest()
          owner='https://raw.githubusercontent.com/'+pin['repository']+'/'+pin['commit']+'/'
          owner_html=get(owner+'index.html')
          owner_json=get(owner+'data/homepage.json')
          assert sha(owner_html)==pin['files']['index.html'], 'Owner HTML pin mismatch'
          assert sha(owner_json)==pin['files']['data/homepage.json'], 'Owner JSON pin mismatch'
          # Source publisher imports the owner page and rewrites two asset paths
          # and one catalogue link. Compare with the transformed bytes actually served.
          html=owner_html.decode('utf-8-sig')
          for file in ('versioned-homepage.css','versioned-homepage.js'):
              old='./assets/'+file
              assert html.count(old)==1
              html=html.replace(old,'./homepage-shell/assets/'+file)
          old='href="data/homepage.json"'
          assert html.count(old)==1
          html=html.replace(old,'href="./homepage-shell/data/homepage.json"')
          expected={'index.html':(html.rstrip()+'\n').encode('utf-8'),
                    'homepage-shell/data/homepage.json':owner_json}
          current='uk_renewables_pipeline/202611221900/'
          previous='uk_renewables_pipeline/202611221850/'
          for name in ('index.html','repd-expanded.mjs','styles/repd-expanded.css','map-entry.mjs'):
              expected[current+name]=Path(current+name).read_bytes()
          for name in ('index.html','repd-expanded.mjs','report-a4.mjs'):
              expected[previous+name]=Path(previous+name).read_bytes()
          assert b'202611221900' in expected['index.html'], 'Root must advertise V9.70'
          assert b'202611221900' in expected['homepage-shell/data/homepage.json'], 'Owner must pin V9.70'
          assert Path(current+'report-a4.mjs').read_bytes()==Path(previous+'report-a4.mjs').read_bytes(), 'A4 changed'
          for attempt in range(1,41):
              bad=[]
              for path,source in expected.items():
                  url='https://globalgrid2050.com/'+path+'?v970_verify='+str(attempt)+'-'+os.getenv('GITHUB_SHA','')[:8]
                  try:
                      public=get(url)
                      if sha(public)!=sha(source):bad.append(path+' SHA256 mismatch')
                  except Exception as exc:bad.append(path+': '+str(exc))
              if not bad:
                  print('PASS',len(expected),'served SHA256 comparisons; operative homepage V9.70, original MAP/A4, V9.69 rollback')
                  break
              if attempt==40:raise SystemExit('V9.70 not publicly verified: '+repr(bad))
              print(f'Attempt {attempt}/40: {len(bad)} pending: {bad[:3]}',flush=True)
              time.sleep(10)
          PY

GlobalGrid2050 Verify V971 Public Workflow

A GitHub Actions workflow. Runs on push and by hand.

automationglobalgrid2050 / .github/workflows/verify-v971-public.yml · lines 1–76 of 76 · 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 terms in the code: the REPD register.
Inputs & outputs
In: JSON file homepage-owner.json; 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 V9.71 rollback after V9.73 homepage promotion”.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Verify V9.71 rollback after V9.73 homepage promotion
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/verify-v971-public.yml:1-76 · blob 51cc1c5d95be08137c97bf7d394821068d3b0dbe · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, network, process · domain stage: unknown · users: none · canonical: production_core
name: Verify V9.71 rollback after V9.73 homepage promotion
on:
  push:
    branches: [main]
    paths:
      - 'catalogue/homepage-owner.json'
      - 'uk_renewables_pipeline/202611221930/**'
      - '.github/workflows/verify-v971-public.yml'
  workflow_dispatch:
permissions:
  contents: read
jobs:
  served:
    runs-on: ubuntu-latest
    timeout-minutes: 20
    steps:
      - uses: actions/checkout@v4
      - name: Compare public HTTPS homepage and REPD V9.71 with SHA256
        run: |
          python3 - <<'PY'
          from pathlib import Path
          import hashlib,json,os,time
          from urllib.request import Request,urlopen
          pin=json.loads(Path('catalogue/homepage-owner.json').read_text())
          assert pin['commit']=='fcb63da01d49ebeaa470222dc8ae1bdb541f06ce'
          def get(url):
              req=Request(url,headers={'Cache-Control':'no-cache','Accept-Encoding':'identity','User-Agent':'Ventus-V971-retired-button-verifier'})
              with urlopen(req,timeout=25) as r:
                  if r.status!=200:raise ValueError('HTTP '+str(r.status))
                  return r.read(4_000_000)
          def digest(b):return hashlib.sha256(b).hexdigest()
          owner='https://raw.githubusercontent.com/'+pin['repository']+'/'+pin['commit']+'/'
          owner_html=get(owner+'index.html')
          owner_json=get(owner+'data/homepage.json')
          assert digest(owner_html)==pin['files']['index.html']
          assert digest(owner_json)==pin['files']['data/homepage.json']
          data=json.loads(owner_json)
          e=next(x for x in data['entities'] if x['id']=='pipeline-news')
          assert e['operative_release_id']=='202611222330'
          assert [x['id'] for x in e['releases'][-3:]]==['202611221930','202611222222','202611222330']
          html=owner_html.decode('utf-8-sig')
          for file in ('versioned-homepage.css','versioned-homepage.js'):
              old='./assets/'+file
              assert html.count(old)==1
              html=html.replace(old,'./homepage-shell/assets/'+file)
          old='href="data/homepage.json"'
          assert html.count(old)==1
          html=html.replace(old,'href="./homepage-shell/data/homepage.json"')
          expected={'index.html':(html.rstrip()+'\n').encode('utf-8'),'homepage-shell/data/homepage.json':owner_json}
          now='uk_renewables_pipeline/202611221930/'
          old='uk_renewables_pipeline/202611221900/'
          for f in ('index.html','repd-expanded.mjs','tests/repd-expanded.mjs','map-entry.mjs'):
              expected[now+f]=Path(now+f).read_bytes()
          for f in ('index.html','repd-expanded.mjs','report-a4.mjs'):
              expected[old+f]=Path(old+f).read_bytes()
          new_html=expected[now+'index.html']
          assert b'src="repd-landscape.mjs"' not in new_html
          assert b'href="styles/repd-landscape.css"' not in new_html
          assert b'src="repd-expanded.mjs"' in new_html
          for f in ('repd-expanded.mjs','map-entry.mjs','report-a4.mjs','report-pdf.mjs'):
              assert Path(now+f).read_bytes()==Path(old+f).read_bytes(),f+' unexpectedly changed'
          assert b'202611221930' in expected['index.html']
          for attempt in range(1,49):
              bad=[]
              for name,content in expected.items():
                  url='https://globalgrid2050.com/'+name+'?v971_sha='+os.getenv('GITHUB_SHA','')[:8]+'-'+str(attempt)
                  try:
                      if digest(get(url))!=digest(content):bad.append(name+' byte mismatch')
                  except Exception as exc:bad.append(name+': '+str(exc))
              if not bad:
                  print('PASS',len(expected),'public SHA256s: V9.71 archived rollback; no old maximise; V9.70 and A4 rollback preserved')
                  break
              if attempt==48:raise SystemExit('Public V9.71 unverified: '+repr(bad))
              print('Attempt',attempt,'of 48:',bad[:3],flush=True)
              time.sleep(10)
          PY

GlobalGrid2050 Verify V972 Public Workflow

A GitHub Actions workflow that builds and publishes the site using data from the GridAtlas repository. Runs on push and by hand.

automationglobalgrid2050 / .github/workflows/verify-v972-public.yml · lines 1–78 of 78 · Entry point

What it does
It builds and publishes the REPD register. Side effects: reads or writes files; makes network requests; starts processes.
Why it exists in the grid workflow
Domain terms in the code: the REPD register.
Inputs & outputs
In: data source: gridatlas data; JSON file homepage-owner.json; JSON file homepage.json; JSON file current.json.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “Verify V9.72 archived MAP/A4/PDF after V9.73 publication”.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Verify V9.72 archived MAP/A4/PDF after V9.73 publication
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/verify-v972-public.yml:1-78 · blob a4c3e365633441377f9994e71a52b2eb67339ff2 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, network, process · domain stage: unknown · users: none · canonical: production_core
name: Verify V9.72 archived MAP/A4/PDF after V9.73 publication
on:
  push:
    branches: [main]
    paths:
      - 'catalogue/homepage-owner.json'
      - 'uk_renewables_pipeline/202611222222/**'
      - '.github/workflows/verify-v972-public.yml'
  workflow_dispatch:
permissions:
  contents: read
jobs:
  served:
    runs-on: ubuntu-latest
    timeout-minutes: 20
    steps:
      - uses: actions/checkout@v4
      - name: Confirm current owner pin and public homepage/REPD SHA-256 bytes
        run: |
          python3 - <<'PY'
          from pathlib import Path
          from urllib.request import Request,urlopen
          import hashlib,json,os,time
          pin=json.loads(Path('catalogue/homepage-owner.json').read_text())
          assert pin['repository']=='Ventusltd/globalgrid2050-homepage'
          assert pin['commit']=='fcb63da01d49ebeaa470222dc8ae1bdb541f06ce'
          def get(u):
              req=Request(u,headers={'Cache-Control':'no-cache','Accept-Encoding':'identity','User-Agent':'Ventus-V972-served-byte-verifier'})
              with urlopen(req,timeout=25) as res:
                  if res.status!=200:raise ValueError('HTTP '+str(res.status))
                  return res.read(4_000_000)
          def digest(value):return hashlib.sha256(value).hexdigest()
          owner='https://raw.githubusercontent.com/'+pin['repository']+'/'+pin['commit']+'/'
          owner_html=get(owner+'index.html')
          owner_json=get(owner+'data/homepage.json')
          assert digest(owner_html)==pin['files']['index.html']
          assert digest(owner_json)==pin['files']['data/homepage.json']
          model=json.loads(owner_json)
          entity=next(e for e in model['entities'] if e['id']=='pipeline-news')
          assert entity['operative_release_id']=='202611222330'
          assert [x['id'] for x in entity['releases'][-3:]]==['202611221930','202611222222','202611222330']
          html=owner_html.decode('utf-8-sig')
          for file in ('versioned-homepage.css','versioned-homepage.js'):
              old='./assets/'+file
              assert html.count(old)==1
              html=html.replace(old,'./homepage-shell/assets/'+file)
          old='href="data/homepage.json"'
          assert html.count(old)==1
          html=html.replace(old,'href="./homepage-shell/data/homepage.json"')
          expected={'index.html':(html.rstrip()+'\n').encode('utf-8'),'homepage-shell/data/homepage.json':owner_json}
          now='uk_renewables_pipeline/202611222222/'
          prev='uk_renewables_pipeline/202611221930/'
          for file in ('index.html','map-entry.mjs','report-a4.mjs','report-model.mjs','report-pdf.mjs','repd-expanded.mjs'):
              expected[now+file]=Path(now+file).read_bytes()
          for file in ('index.html','report-a4.mjs','report-model.mjs','report-pdf.mjs'):
              expected[prev+file]=Path(prev+file).read_bytes()
          assert b'V9.72' in expected[now+'index.html']
          assert expected[now+'report-pdf.mjs']==expected[prev+'report-pdf.mjs']
          for attempt in range(1,49):
              bad=[]
              for name,content in expected.items():
                  url='https://globalgrid2050.com/'+name+'?v972_sha='+os.getenv('GITHUB_SHA','')[:8]+'-'+str(attempt)
                  try:
                      if digest(get(url))!=digest(content):bad.append(name+' SHA256 mismatch')
                  except Exception as ex:bad.append(name+': '+str(ex))
              if not bad:
                  print('PASS',len(expected),'public SHA256 proofs: V9.72 archived A4/PDF source, V9.71 rollback and V9.73 homepage unchanged',flush=True)
                  break
              if attempt==48:raise SystemExit('FAILED: V9.72 not fully served: '+repr(bad))
              print('Attempt',attempt,'/',48,':',bad[:4],flush=True)
              time.sleep(10)
          g=json.loads(get('https://ventusltd.github.io/gridatlas/atlas/current.json'))
          generation=str(g.get('generation',''))
          assert generation.isdigit() and int(generation)>=202611222130, generation
          assert g.get('live_route')=='/gridatlas/atlas/',g.get('live_route')
          assert {'pipeline-vicinity-button','vicinity-focus','sld-sandbox'}<=set(g.get('cartridge_order',[]))
          print('PASS: canonical GridAtlas VICINITY receiver at published generation',generation,flush=True)
          PY

GlobalGrid2050 Verify V973 Public Workflow

A GitHub Actions workflow using data from the GridAtlas repository. Runs on push and by hand.

automationglobalgrid2050 / .github/workflows/verify-v973-public.yml · lines 1–84 of 84 · 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 terms in the code: the REPD register.
Inputs & outputs
In: data source: gridatlas data; JSON file homepage-owner.json; JSON file homepage.json; JSON file current.json.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “Verify V9.73 live Renewable Energy Planning Database (REPD) Operator Status Region MW reports and V9.72 rollback”.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Verify V9.73 live REPD Operator Status Region MW reports and V9.72 rollback
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/verify-v973-public.yml:1-84 · blob 2a84529e0ce5abc2bf32a905bf275672ab3db30d · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, network, process · domain stage: unknown · users: none · canonical: production_core
name: Verify V9.73 live REPD Operator Status Region MW reports and V9.72 rollback
on:
  push:
    branches: [main]
    paths:
      - 'catalogue/homepage-owner.json'
      - 'uk_renewables_pipeline/202611222330/**'
      - '.github/workflows/verify-v973-public.yml'
  workflow_dispatch:
permissions:
  contents: read
jobs:
  served:
    runs-on: ubuntu-latest
    timeout-minutes: 24
    steps:
      - uses: actions/checkout@v4
      - name: Public HTTPS SHA256, immutable report modules, owner catalogue, rollback and canonical GridAtlas
        run: |
          python3 - <<'PY'
          from pathlib import Path
          from urllib.request import Request,urlopen
          import hashlib,json,os,time
          pin=json.loads(Path('catalogue/homepage-owner.json').read_text())
          assert pin['repository']=='Ventusltd/globalgrid2050-homepage'
          assert pin['commit'] in {'fcb63da01d49ebeaa470222dc8ae1bdb541f06ce','156b7eefa4d2703775faba3cc28f9daa0db5bb27'}, 'Unexpected homepage owner pin'
          def digest(value):return hashlib.sha256(value).hexdigest()
          def get(url):
              request=Request(url,headers={'Cache-Control':'no-cache','Accept-Encoding':'identity','User-Agent':'Ventus-V973-served-byte-verifier'})
              with urlopen(request,timeout=30) as response:
                  if response.status!=200:raise ValueError('HTTP '+str(response.status))
                  return response.read(4_500_000)
          source='https://raw.githubusercontent.com/'+pin['repository']+'/'+pin['commit']+'/'
          owner_html=get(source+'index.html')
          owner_json=get(source+'data/homepage.json')
          assert digest(owner_html)==pin['files']['index.html']
          assert digest(owner_json)==pin['files']['data/homepage.json']
          data=json.loads(owner_json)
          e=next(x for x in data['entities'] if x['id']=='pipeline-news')
          assert e['operative_release_id'] in {'202611222330','202611231400'}, 'V9.73 should be operative or retained as rollback'
          assert [x['id'] for x in e['releases'] if x['id'] in ('202611221930','202611222222','202611222330')]==['202611221930','202611222222','202611222330']
          now=next(x for x in e['releases'] if x['id']=='202611222330')
          assert now['source_ref']=='https://github.com/Ventusltd/globalgrid2050/tree/477e8fa8ec4986c1b525f5c29e5b11decee991fa/uk_renewables_pipeline/202611222330'
          assert now['url']=='https://globalgrid2050.com/uk_renewables_pipeline/202611222330/'
          html=owner_html.decode('utf-8-sig')
          for f in ('versioned-homepage.css','versioned-homepage.js'):
              old='./assets/'+f
              assert html.count(old)==1
              html=html.replace(old,'./homepage-shell/assets/'+f)
          old='href="data/homepage.json"'
          assert html.count(old)==1
          html=html.replace(old,'href="./homepage-shell/data/homepage.json"')
          expected={'index.html':(html.rstrip()+'\n').encode('utf-8'),'homepage-shell/data/homepage.json':owner_json} if pin['commit']=='fcb63da01d49ebeaa470222dc8ae1bdb541f06ce' else {}
          current='uk_renewables_pipeline/202611222330/'
          previous='uk_renewables_pipeline/202611222222/'
          for f in ('index.html','repd-reports-model.mjs','repd-reports.mjs','styles/repd-reports.css','scripts/core/state.js','scripts/plugins/projects-v9-8.js','map-entry.mjs','report-model.mjs','report-a4.mjs','report-pdf.mjs','repd-expanded.mjs'):
              expected[current+f]=Path(current+f).read_bytes()
          for f in ('index.html','report-model.mjs','report-a4.mjs','report-pdf.mjs'):
              expected[previous+f]=Path(previous+f).read_bytes()
          assert b'OPERATOR MW' in expected[current+'index.html']
          assert b'STATUS MW' in expected[current+'index.html']
          assert b'REGION MW' in expected[current+'index.html']
          for f in ('scripts/core/state.js','scripts/plugins/projects-v9-8.js','map-entry.mjs','report-model.mjs','report-a4.mjs','report-pdf.mjs','repd-expanded.mjs'):
              assert expected[current+f]==Path(previous+f).read_bytes(),f+' changed unexpectedly'
          for attempt in range(1,49):
              differences=[]
              for name,content in expected.items():
                  url='https://globalgrid2050.com/'+name+'?v973_sha='+os.getenv('GITHUB_SHA','')[:8]+'-'+str(attempt)
                  try:
                      if digest(get(url))!=digest(content):differences.append(name+' mismatch')
                  except Exception as exc:differences.append(name+': '+str(exc))
              if not differences:
                  print('PASS',len(expected),'public SHA256 proofs for V9.73 archived reports, native MAP/A4 and immutable V9.72 (historical homepage if operative)',flush=True)
                  break
              if attempt==48:raise SystemExit('V9.73 public serving UNVERIFIED: '+repr(differences))
              print('Attempt',attempt,'/48, differences',differences[:5],flush=True)
              time.sleep(10)
          receiver=json.loads(get('https://ventusltd.github.io/gridatlas/atlas/current.json'))
          generation=str(receiver.get('generation',''))
          assert generation.isdigit() and int(generation)>=202611222130, generation
          assert receiver.get('live_route')=='/gridatlas/atlas/',receiver.get('live_route')
          assert {'pipeline-vicinity-button','vicinity-focus'}<=set(receiver.get('cartridge_order',[]))
          print('PASS canonical GridAtlas VICINITY receiver at generation',generation,'; physical Safari still unverified',flush=True)
          PY

GlobalGrid2050 Verify V974 Public Workflow

A GitHub Actions workflow using data from the GridAtlas repository. Runs on push and by hand.

automationglobalgrid2050 / .github/workflows/verify-v974-public.yml · lines 1–104 of 104 · 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 terms in the code: the REPD register.
Inputs & outputs
In: data source: gridatlas data; JSON file homepage-owner.json; JSON file homepage.json; JSON file current.json.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “Verify archived V9.74 public Renewable Energy Planning Database (REPD) and current homepage plus V9.73 rollback”.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Verify archived V9.74 public REPD and current homepage plus V9.73 rollback
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/verify-v974-public.yml:1-104 · blob 5d7143ccae20428970c6d09aefa0841236f57da8 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, network, process · domain stage: unknown · users: none · canonical: production_core
name: Verify archived V9.74 public REPD and current homepage plus V9.73 rollback
on:
  push:
    branches: [main]
    paths:
      - 'catalogue/homepage-owner.json'
      - 'uk_renewables_pipeline/202611231400/**'
      - '.github/workflows/verify-v974-public.yml'
  workflow_dispatch:
permissions:
  contents: read
jobs:
  served:
    runs-on: ubuntu-24.04
    timeout-minutes: 25
    steps:
      - uses: actions/checkout@v4
      - name: Verify exact owner SHA, served bytes, canonical cross-filters and historical rollback
        run: |
          python3 - <<'PY'
          import hashlib, json, os, time
          from pathlib import Path
          from urllib.request import urlopen, Request
          pin=json.loads(Path('catalogue/homepage-owner.json').read_text())
          assert pin['repository']=='Ventusltd/globalgrid2050-homepage'
          assert pin['commit']=='63c5e2bfcb56695c0269d4172611e93c062d8ccd'
          def digest(v): return hashlib.sha256(v).hexdigest()
          def fetch(url):
              request=Request(url,headers={'Cache-Control':'no-cache','Accept-Encoding':'identity','User-Agent':'Ventus-V974-public-byte-verifier'})
              with urlopen(request,timeout=35) as response:
                  if response.status!=200: raise ValueError('HTTP '+str(response.status))
                  data=response.read(4_500_000)
                  if not data: raise ValueError('empty response')
                  return data
          source='https://raw.githubusercontent.com/'+pin['repository']+'/'+pin['commit']+'/'
          owner_html=fetch(source+'index.html')
          owner_json=fetch(source+'data/homepage.json')
          assert digest(owner_html)==pin['files']['index.html'], 'owner HTML pin drift'
          assert digest(owner_json)==pin['files']['data/homepage.json'], 'owner catalogue pin drift'
          data=json.loads(owner_json)
          entity=next(x for x in data['entities'] if x['id']=='pipeline-news')
          assert entity['operative_release_id']=='202611232245'
          assert [x['id'] for x in entity['releases'][-3:]]==['202611231400','202611231600','202611232245']
          assert entity['releases'][-3]['url']=='https://globalgrid2050.com/uk_renewables_pipeline/202611231400/'
          assert entity['releases'][-3]['source_ref']=='https://github.com/Ventusltd/globalgrid2050/tree/a7f49fa4af3c69944cede29f90837f1f7877e8ef/uk_renewables_pipeline/202611231400'
          assert data['promotions'][-1]['from_release_id']=='202611231600'
          assert data['promotions'][-1]['to_release_id']=='202611232245'
          homepage=owner_html.decode('utf-8-sig')
          for filename in ('versioned-homepage.css','versioned-homepage.js'):
              old='./assets/'+filename
              assert homepage.count(old)==1, 'unexpected homepage asset source'
              homepage=homepage.replace(old,'./homepage-shell/assets/'+filename)
          old='href="data/homepage.json"'
          assert homepage.count(old)==1, 'unexpected homepage JSON source'
          homepage=homepage.replace(old,'href="./homepage-shell/data/homepage.json"')
          expected={
              'index.html':(homepage.rstrip()+'\n').encode('utf-8'),
              'homepage-shell/data/homepage.json':owner_json,
              'homepage-shell/assets/versioned-homepage.css':fetch(source+'assets/versioned-homepage.css'),
              'homepage-shell/assets/versioned-homepage.js':fetch(source+'assets/versioned-homepage.js'),
          }
          current='uk_renewables_pipeline/202611231400/'
          prev='uk_renewables_pipeline/202611222330/'
          rollback='uk_renewables_pipeline/202611222222/'
          for f in ('index.html','repd-reports.mjs','repd-reports-model.mjs',
              'styles/v7.css','styles/repd-reports.css','scripts/core/state.js',
              'scripts/plugins/projects-v9-8.js','map-entry.mjs','report-a4.mjs',
              'report-model.mjs','report-pdf.mjs','repd-expanded.mjs'):
              expected[current+f]=Path(current+f).read_bytes()
          expected['automation/repd_reporting/v2/cockpit-facets.mjs']=Path('automation/repd_reporting/v2/cockpit-facets.mjs').read_bytes()
          for f in ('index.html','repd-reports.mjs','styles/v7.css','styles/repd-reports.css',
                    'map-entry.mjs','report-a4.mjs','report-pdf.mjs'):
              expected[prev+f]=Path(prev+f).read_bytes()
          for f in ('index.html','report-a4.mjs','report-pdf.mjs'):
              expected[rollback+f]=Path(rollback+f).read_bytes()
          assert b'OPERATOR MW' in expected[current+'index.html']
          assert b'STATUS MW' in expected[current+'index.html']
          assert b'REGION MW' in expected[current+'index.html']
          assert b'makeFacet("operator", "OPERATOR")' in expected[current+'repd-reports.mjs'], 'operator facet constructor missing'
          assert b'buildCockpitReport' in expected[current+'repd-reports.mjs']
          assert expected[prev+'styles/v7.css']==expected[current+'styles/v7.css']
          assert expected[prev+'styles/repd-reports.css']==expected[current+'styles/repd-reports.css']
          for f in ('scripts/core/state.js','scripts/plugins/projects-v9-8.js',
                    'map-entry.mjs','report-a4.mjs','report-model.mjs','report-pdf.mjs','repd-expanded.mjs'):
              assert expected[current+f]==Path(prev+f).read_bytes(), 'Native regression: '+f
          for attempt in range(1,49):
              differences=[]
              for name,content in expected.items():
                  url='https://globalgrid2050.com/'+name+'?v974_sha='+os.getenv('GITHUB_SHA','')[:8]+'-'+str(attempt)
                  try:
                      actual=fetch(url)
                      if digest(actual)!=digest(content): differences.append(name+' mismatch')
                  except Exception as e: differences.append(name+': '+repr(e))
              if not differences:
                  print('PASS',len(expected),'exact public HTTPS SHA256 proofs, archived immutable V9.74, current homepage, V9.73/V9.72 rollback',flush=True)
                  break
              if attempt==48:raise SystemExit('V9.74 PUBLIC NOT VERIFIED: '+str(differences))
              print('Attempt',attempt,'/48; not yet served',differences[:5],flush=True)
              time.sleep(10)
          receiver=json.loads(fetch('https://ventusltd.github.io/gridatlas/atlas/current.json'))
          assert receiver.get('live_route')=='/gridatlas/atlas/'
          assert {'pipeline-vicinity-button','vicinity-focus'}<=set(receiver.get('cartridge_order',[]))
          print('PASS canonical GridAtlas VICINITY contract; physical Safari remains owner-device check',flush=True)
          PY