In this section
- GlobalGrid2050 Pn V968 Focused Landscape Workflow automation · globalgrid2050 / .github/workflows/pn-v968-focused-landscape.yml lines 1–49
- GlobalGrid2050 Pn V969 Map Portrait Workflow automation · globalgrid2050 / .github/workflows/pn-v969-map-portrait.yml lines 1–49
- GlobalGrid2050 Pn V970 Map Parity Workflow automation · globalgrid2050 / .github/workflows/pn-v970-map-parity.yml lines 1–46
- GlobalGrid2050 Pn V971 Retire Legacy Maximise Workflow automation · globalgrid2050 / .github/workflows/pn-v971-retire-legacy-maximise.yml lines 1–54
- GlobalGrid2050 Pn V972 Vicinity A4 PDF Workflow automation · globalgrid2050 / .github/workflows/pn-v972-vicinity-a4-pdf.yml lines 1–88
- GlobalGrid2050 Pn V973 Capacity Reports Workflow automation · globalgrid2050 / .github/workflows/pn-v973-capacity-reports.yml lines 1–87
- GlobalGrid2050 Pn V974 Cockpit Integration Workflow automation · globalgrid2050 / .github/workflows/pn-v974-cockpit-integration.yml lines 1–128
- GlobalGrid2050 PR File Size Guard Workflow automation · globalgrid2050 / .github/workflows/pr-file-size-guard.yml lines 1–106
GlobalGrid2050 Pn V968 Focused Landscape Workflow
A GitHub Actions workflow. Runs on pull requests and by hand.
automationglobalgrid2050 / .github/workflows/pn-v968-focused-landscape.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 terms in the code: the REPD register.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Pipeline News V9.68 landscape reading view QA”; runs `tests/repd-expanded.mjs`.
- 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
- Renewable Energy Planning Database (REPD) Expanded (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Pipeline News V9.68 landscape reading view QA
- 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/pn-v968-focused-landscape.yml:1-49 · blob 129ada68e09d1f186fef2c612504aa9647eb59fc · 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: Pipeline News V9.68 landscape reading view QA
on:
pull_request:
paths:
- 'uk_renewables_pipeline/202611221705/**'
- '.github/workflows/pn-v968-focused-landscape.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
browser:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Inspect original register and new focused view
run: |
python3 - <<'PY'
from pathlib import Path
base=Path('uk_renewables_pipeline/202611221705')
html=(base/'index.html').read_text()
css=(base/'styles/repd-expanded.css').read_text()
js=(base/'repd-expanded.mjs').read_text()
assert 'V9.68' in html
assert 'setExpandedPageRows(true)' in js
assert 'pendingLandscape' in js
assert 'th:nth-child(5)' in css and 'th:nth-child(8)' in css and 'th:nth-child(12)' in css
assert (base/'report-a4.mjs').read_bytes()==Path('uk_renewables_pipeline/202611221625/report-a4.mjs').read_bytes()
assert (base/'report-pdf.mjs').read_bytes()==Path('uk_renewables_pipeline/202611221625/report-pdf.mjs').read_bytes()
print('Source contract and inherited A4/PDF verified')
PY
- name: Install browser engines
working-directory: uk_renewables_pipeline/202611221705
run: |
npm ci
npx playwright install --with-deps chromium webkit
- name: Start local release server
run: |
python3 -m http.server 8765 --bind 127.0.0.1 >/tmp/pn-http.log 2>&1 &
for i in $(seq 1 20); do
if curl -fsS -o /dev/null http://127.0.0.1:8765/uk_renewables_pipeline/202611221705/; then break; fi
sleep 1
done
- name: Test Chromium and WebKit portrait/landscape, sorting, MAP, A4 and restoration
working-directory: uk_renewables_pipeline/202611221705
run: node tests/repd-expanded.mjsGlobalGrid2050 Pn V969 Map Portrait Workflow
A GitHub Actions workflow. Runs on pull requests and by hand.
automationglobalgrid2050 / .github/workflows/pn-v969-map-portrait.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 terms in the code: the REPD register.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “V9.69 Expanded Renewable Energy Planning Database (REPD) portrait and MAP position QA”; runs `tests/repd-expanded.mjs`.
- 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
- Renewable Energy Planning Database (REPD) Expanded (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- V9.69 Expanded REPD portrait and MAP position QA
- 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/pn-v969-map-portrait.yml:1-49 · blob 8527f22d585c10952e7d5f7f20debea7d8cd86b4 · 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: V9.69 Expanded REPD portrait and MAP position QA
on:
pull_request:
paths:
- 'uk_renewables_pipeline/202611221850/**'
- '.github/workflows/pn-v969-map-portrait.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
browser:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Check immutable source assets and release contracts
run: |
python3 - <<'PY'
from pathlib import Path
new=Path('uk_renewables_pipeline/202611221850')
old=Path('uk_renewables_pipeline/202611221705')
for name in ['report-a4.mjs','report-model.mjs','report-pdf.mjs','styles/report-a4.css','scripts/plugins/projects-v9-8.js']:
assert (new/name).read_bytes()==(old/name).read_bytes(),name
js=(new/'repd-expanded.mjs').read_text()
css=(new/'styles/repd-expanded.css').read_text()
assert 'syncMapColumn()' in js and 'clearMapColumn()' in js
assert 'landscapeGate' not in js
assert '.pn-expanded-map-cell' in css
assert 'pn-report-launch' in css
print('PASS immutable report, source model and view-only MAP')
PY
- name: Install test browsers
working-directory: uk_renewables_pipeline/202611221850
run: |
npm ci
npx playwright install --with-deps chromium webkit
- name: Start local HTTP server
run: |
python3 -m http.server 8765 --bind 127.0.0.1 >/tmp/pn-v969-http.log 2>&1 &
for i in $(seq 1 30); do
if curl -fsS -o /dev/null http://127.0.0.1:8765/uk_renewables_pipeline/202611221850/; then break; fi
sleep 1
done
- name: Test actual Chromium and WebKit in both orientations
working-directory: uk_renewables_pipeline/202611221850
run: node tests/repd-expanded.mjsGlobalGrid2050 Pn V970 Map Parity Workflow
A GitHub Actions workflow. Runs on pull requests and by hand.
automationglobalgrid2050 / .github/workflows/pn-v970-map-parity.yml · lines 1–46 of 46 · 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.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “V9.70 real native and expanded MAP navigation parity”; runs `tests/repd-expanded.mjs` and `tests/map-navigation-v970.mjs`.
- 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
- Renewable Energy Planning Database (REPD) Expanded (workflow run), Map Navigation V970 (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- V9.70 real native and expanded MAP navigation parity
- 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/pn-v970-map-parity.yml:1-46 · blob 18ea0b628457e3365849b91a0aa92089ed73ff22 · 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: V9.70 real native and expanded MAP navigation parity
on:
pull_request:
paths:
- 'uk_renewables_pipeline/202611221900/**'
- '.github/workflows/pn-v970-map-parity.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
browser:
runs-on: ubuntu-latest
timeout-minutes: 35
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Assert A4 / producer immutable across V9.69 and V9.70
run: |
python3 - <<'PY'
from pathlib import Path
a=Path('uk_renewables_pipeline/202611221850')
b=Path('uk_renewables_pipeline/202611221900')
for name in ['report-a4.mjs','report-model.mjs','report-pdf.mjs','styles/report-a4.css','scripts/plugins/projects-v9-8.js','map-entry.mjs']:
assert (a/name).read_bytes()==(b/name).read_bytes(),name
print('PASS original MAP producer, A4 and REPD untouched')
PY
- name: Install Chromium and WebKit
working-directory: uk_renewables_pipeline/202611221900
run: |
npm ci
npx playwright install --with-deps chromium webkit
- name: Launch source HTTP
run: |
python3 -m http.server 8765 --bind 127.0.0.1 >/tmp/pn-v970-http.log 2>&1 &
for i in $(seq 1 30); do
if curl -fsS -o /dev/null http://127.0.0.1:8765/uk_renewables_pipeline/202611221900/; then break; fi
sleep 1
done
- name: Full V9.69 layout and report regression
working-directory: uk_renewables_pipeline/202611221900
run: node tests/repd-expanded.mjs
- name: REAL native vs expanded GridAtlas navigation (6 profiles)
working-directory: uk_renewables_pipeline/202611221900
run: node tests/map-navigation-v970.mjsGlobalGrid2050 Pn V971 Retire Legacy Maximise Workflow
A GitHub Actions workflow. Runs on pull requests and by hand.
automationglobalgrid2050 / .github/workflows/pn-v971-retire-legacy-maximise.yml · lines 1–54 of 54 · 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 experimental (path word 'legacy'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: the REPD register.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “V9.71 remove obsolete Renewable Energy Planning Database (REPD) maximise, retain modern expanded view”; runs `tests/repd-expanded.mjs` and `tests/map-navigation-v970.mjs`.
- 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
- Renewable Energy Planning Database (REPD) Expanded (workflow run), Map Navigation V970 (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- V9.71 remove obsolete REPD maximise, retain modern expanded view
- 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/pn-v971-retire-legacy-maximise.yml:1-54 · blob e1f3ebc8d7064033ef4925e52cf42ba70b607099 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, network, process · domain stage: experimental · users: none · canonical: production_core
name: V9.71 remove obsolete REPD maximise, retain modern expanded view
on:
pull_request:
paths:
- 'uk_renewables_pipeline/202611221930/**'
- '.github/workflows/pn-v971-retire-legacy-maximise.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
ui:
runs-on: ubuntu-latest
timeout-minutes: 35
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Confirm new HTML removes ONLY obsolete launcher and keeps original source
run: |
python3 - <<'PY'
from pathlib import Path
old=Path('uk_renewables_pipeline/202611221900')
new=Path('uk_renewables_pipeline/202611221930')
a=(old/'index.html').read_text()
b=(new/'index.html').read_text()
assert 'src="repd-landscape.mjs"' in a
assert 'href="styles/repd-landscape.css"' in a
assert 'src="repd-landscape.mjs"' not in b
assert 'href="styles/repd-landscape.css"' not in b
assert 'src="repd-expanded.mjs"' in b
assert 'href="styles/repd-expanded.css"' in b
for f in ['repd-expanded.mjs','map-entry.mjs','report-a4.mjs','report-model.mjs','report-pdf.mjs','styles/repd-expanded.css','scripts/plugins/projects-v9-8.js']:
assert (old/f).read_bytes()==(new/f).read_bytes(), f
print('PASS: one modern launcher, no legacy bootstrap; all original MAP/A4/data untouched')
PY
- name: Install Chromium and WebKit
working-directory: uk_renewables_pipeline/202611221930
run: |
npm ci
npx playwright install --with-deps chromium webkit
- name: Start local HTTP
run: |
python3 -m http.server 8765 --bind 127.0.0.1 >/tmp/pn-v971-http.log 2>&1 &
for i in $(seq 1 30); do
if curl -fsS -o /dev/null http://127.0.0.1:8765/uk_renewables_pipeline/202611221930/; then break; fi
sleep 1
done
- name: Real Chromium and WebKit expanded-view, A4, MAP and no legacy button
working-directory: uk_renewables_pipeline/202611221930
run: node tests/repd-expanded.mjs
- name: Native vs expanded real GridAtlas navigation remains correct
working-directory: uk_renewables_pipeline/202611221930
run: node tests/map-navigation-v970.mjsGlobalGrid2050 Pn V972 Vicinity A4 PDF Workflow
A GitHub Actions workflow using data from the GridAtlas repository. Runs on pull requests and by hand.
automationglobalgrid2050 / .github/workflows/pn-v972-vicinity-a4-pdf.yml · lines 1–88 of 88 · 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 current.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “PipelineNews V9.72 GridAtlas VICINITY / A4 PDF parity”; runs `tests/v972-vicinity-a4-pdf.mjs`, `tests/.v972-map-navigation.mjs` and `tests/.v972-expanded.mjs`.
- 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
- Report A4 (workflow run), Report Model (workflow run), V972 Vicinity A4 PDF (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- PipelineNews V9.72 GridAtlas VICINITY / A4 PDF parity
- 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/pn-v972-vicinity-a4-pdf.yml:1-88 · blob ec906b2bb770b7ace7850e52d39a19c32f51dad4 · 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: PipelineNews V9.72 GridAtlas VICINITY / A4 PDF parity
on:
pull_request:
paths:
- 'uk_renewables_pipeline/202611222222/**'
- '.github/workflows/pn-v972-vicinity-a4-pdf.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
source-preservation:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Prove immutable V9.71 is unchanged and V9.72 is an exact copy except allowlist
run: |
python3 - <<'PY'
from pathlib import Path
old=Path('uk_renewables_pipeline/202611221930')
new=Path('uk_renewables_pipeline/202611222222')
old_files={str(p.relative_to(old)):p for p in old.rglob('*') if p.is_file()}
new_files={str(p.relative_to(new)):p for p in new.rglob('*') if p.is_file()}
added=set(new_files)-set(old_files)
missing=set(old_files)-set(new_files)
assert missing==set(),f'Unexpected dropped files: {sorted(missing)}'
assert added=={'tests/v972-vicinity-a4-pdf.mjs'},f'Unexpected additions: {sorted(added)}'
changed={p for p in old_files if old_files[p].read_bytes()!=new_files[p].read_bytes()}
expected={'index.html','report-a4.mjs','report-model.mjs','README.md','CHANGES.md'}
assert changed==expected,f'Changed files: {sorted(changed ^ expected)}'
assert old_files['report-pdf.mjs'].read_bytes()==new_files['report-pdf.mjs'].read_bytes()
assert 'V9.72' in (new/'index.html').read_text()
assert '202611222222' in (new/'index.html').read_text()
assert 'V9.71' in (old/'index.html').read_text()
print('PASS:',len(old_files),'inherited files; no deletions; only',sorted(changed),'modified; one isolated test added')
PY
- name: Verify Node syntax for changed source and regression
run: |
node --check uk_renewables_pipeline/202611222222/report-a4.mjs
node --check uk_renewables_pipeline/202611222222/report-model.mjs
node --check uk_renewables_pipeline/202611222222/tests/v972-vicinity-a4-pdf.mjs
browser-integration:
needs: source-preservation
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Confirm public canonical GridAtlas VICINITY generation
run: |
python3 - <<'PY'
import urllib.request,json
u='https://ventusltd.github.io/gridatlas/atlas/current.json'
with urllib.request.urlopen(urllib.request.Request(u,headers={'Cache-Control':'no-cache'}),timeout=25) as response:
data=json.load(response)
assert data['generation']=='202611222130',f"Unexpected GridAtlas public generation: {data.get('generation')}"
ids={x['id'] for x in data['cartridges']}
assert {'pipeline-vicinity-button','vicinity-focus','sld-sandbox'}<=ids,ids
print('PASS: public GridAtlas V9.195 VICINITY receiver',u)
PY
- name: Install Chromium and WebKit
working-directory: uk_renewables_pipeline/202611222222
run: |
npm ci
npx playwright install --with-deps chromium webkit
- name: Start local candidate HTTP origin
run: |
python3 -m http.server 8765 --bind 127.0.0.1 >/tmp/pn-v972-http.log 2>&1 &
for i in $(seq 1 45); do
if curl -fsS -o /dev/null http://127.0.0.1:8765/uk_renewables_pipeline/202611222222/; then exit 0; fi
sleep 1
done
exit 1
- name: Test actual Chromium/WebKit REPD MAP, expanded MAP, A4 HTML and PDF URI parity
working-directory: uk_renewables_pipeline/202611222222
run: node tests/v972-vicinity-a4-pdf.mjs
- name: Rerun inherited native navigation regression on successor
working-directory: uk_renewables_pipeline/202611222222
run: |
sed 's#202611221930#202611222222#g' tests/map-navigation-v970.mjs > tests/.v972-map-navigation.mjs
node tests/.v972-map-navigation.mjs
- name: Rerun inherited REPD expanded view regression on successor
working-directory: uk_renewables_pipeline/202611222222
run: |
sed 's#202611221930#202611222222#g' tests/repd-expanded.mjs > tests/.v972-expanded.mjs
node tests/.v972-expanded.mjsGlobalGrid2050 Pn V973 Capacity Reports Workflow
A GitHub Actions workflow. Runs on pull requests and by hand.
automationglobalgrid2050 / .github/workflows/pn-v973-capacity-reports.yml · lines 1–87 of 87 · 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 build_manifest.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “PipelineNews V9.73 Renewable Energy Planning Database (REPD) Operator Status Region Capacity Reports”; runs `tests/v973-repd-reports-browser.mjs`, `tests/.v973-vicinity-a4-pdf.mjs` and `tests/.v973-expanded.mjs`.
- 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
- Renewable Energy Planning Database (REPD) Reports Model (workflow run), Renewable Energy Planning Database (REPD) Reports (workflow run), V973 Renewable Energy Planning Database (REPD) Reports (workflow run), V973 Renewable Energy Planning Database (REPD) Reports Browser (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- PipelineNews V9.73 REPD Operator Status Region Capacity Reports
- 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/pn-v973-capacity-reports.yml:1-87 · blob 49d49f663fd275dc8b92e31243d14f55f2826a86 · 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: PipelineNews V9.73 REPD Operator Status Region Capacity Reports
on:
pull_request:
paths:
- 'uk_renewables_pipeline/202611222330/**'
- '.github/workflows/pn-v973-capacity-reports.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
preserve-and-reconcile:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Guarantee V9.72 preservation and exact V9.73 scope
run: |
python3 - <<'PY'
from pathlib import Path
old=Path('uk_renewables_pipeline/202611222222')
new=Path('uk_renewables_pipeline/202611222330')
x={str(p.relative_to(old)):p for p in old.rglob('*') if p.is_file()}
y={str(p.relative_to(new)):p for p in new.rglob('*') if p.is_file()}
missing=set(x)-set(y)
added=set(y)-set(x)
changed={p for p in x if p in y and x[p].read_bytes()!=y[p].read_bytes()}
expected_added={'repd-reports-model.mjs','repd-reports.mjs','styles/repd-reports.css','tests/v973-repd-reports.mjs','tests/v973-repd-reports-browser.mjs'}
expected_changed={'index.html','README.md','CHANGES.md'}
assert not missing, f'Dropped {len(missing)} V9.72 files: {sorted(missing)}'
assert added==expected_added, f'Unreviewed additions: {sorted(added^expected_added)}'
assert changed==expected_changed, f'Unreviewed changes: {sorted(changed^expected_changed)}'
for protected in ['report-model.mjs','report-a4.mjs','report-pdf.mjs','map-entry.mjs',
'scripts/plugins/projects-v9-8.js','repd-expanded.mjs',
'data/v9.1/build_manifest.json','tests/v972-vicinity-a4-pdf.mjs']:
assert x[protected].read_bytes()==y[protected].read_bytes(), protected
html=y['index.html'].read_text()
for token in ['V9.73','202611222330','OPERATOR MW','STATUS MW','REGION MW',
'repd-reports.mjs','repd-reports.css','repdReportsPanel']:
assert token in html,token
print('PASS',len(x),'inherited files, zero missing, exactly',len(changed),
'modified and',len(added),'additive source files')
PY
- name: Node syntax and full source REPD model reconciliations
working-directory: uk_renewables_pipeline/202611222330
run: |
node --check repd-reports-model.mjs
node --check repd-reports.mjs
node --check tests/v973-repd-reports.mjs
node --check tests/v973-repd-reports-browser.mjs
node --test tests/v973-repd-reports.mjs
browser-acceptance:
needs: preserve-and-reconcile
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install browser dependencies
working-directory: uk_renewables_pipeline/202611222330
run: |
npm ci
npx playwright install --with-deps chromium webkit
- name: Serve candidate and original immutable release
run: |
python3 -m http.server 8765 --bind 127.0.0.1 >/tmp/pn-v973.log 2>&1 &
for i in $(seq 1 45); do
if curl -fsS -o /dev/null http://127.0.0.1:8765/uk_renewables_pipeline/202611222330/; then exit 0; fi
sleep 1
done
exit 1
- name: Chromium + WebKit portrait and landscape report acceptance
working-directory: uk_renewables_pipeline/202611222330
run: node tests/v973-repd-reports-browser.mjs
- name: Inherited V9.72 native and expanded MAP, A4 HTML and PDF link parity
working-directory: uk_renewables_pipeline/202611222330
run: |
sed 's#202611222222#202611222330#g' tests/v972-vicinity-a4-pdf.mjs > tests/.v973-vicinity-a4-pdf.mjs
node tests/.v973-vicinity-a4-pdf.mjs
- name: Inherited original REPD expanded and native navigation regression
working-directory: uk_renewables_pipeline/202611222330
run: |
sed 's#202611221930#202611222330#g' tests/repd-expanded.mjs > tests/.v973-expanded.mjs
node tests/.v973-expanded.mjs
sed 's#202611221930#202611222330#g' tests/map-navigation-v970.mjs > tests/.v973-map-navigation.mjs
node tests/.v973-map-navigation.mjsGlobalGrid2050 Pn V974 Cockpit Integration Workflow
A GitHub Actions workflow. Runs on push and on pull requests.
automationglobalgrid2050 / .github/workflows/pn-v974-cockpit-integration.yml · lines 1–128 of 128 · 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 COCKPIT-BUILD-RECEIPT.json. 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 “PN V9.74 technology-aware cockpit integration”; runs Spider Audit (`automation/repd_reporting/v2/spider-audit.mjs`), Build V974 (`automation/repd_reporting/v2/build-v974.mjs`) and `tests/v974-cockpit-browser.mjs`.
- 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
- Cockpit Facets (workflow run), Renewable Energy Planning Database (REPD) Reports Integrated (workflow run), Build V974 (workflow run), V974 Cockpit Browser (workflow run), Cockpit Facets Test (workflow run), Cockpit Skin Test (workflow run), Spider Audit (workflow run), Renewable Energy Planning Database (REPD) Reports (workflow run), and 1 more
- Used by
- none found
- Produces
- none declared
- Defines here
- PN V9.74 technology-aware cockpit integration
- 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/pn-v974-cockpit-integration.yml:1-128 · blob b81ce1334d82a3326360b642448b26f201b99039 · 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: PN V9.74 technology-aware cockpit integration
on:
push:
branches:
- agent/repd-cockpit-crossfilter-20261123
paths:
- 'automation/repd_reporting/v2/**'
- '.github/workflows/pn-v974-cockpit-integration.yml'
pull_request:
paths:
- 'automation/repd_reporting/v2/**'
- 'uk_renewables_pipeline/202611231400/**'
- '.github/workflows/pn-v974-cockpit-integration.yml'
permissions:
contents: write
jobs:
source-and-browser:
runs-on: ubuntu-24.04
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Pure JS syntax and cross-filter data contracts
run: |
node --check automation/repd_reporting/v2/cockpit-facets.mjs
node --check automation/repd_reporting/v2/repd-reports-integrated.mjs
node --check automation/repd_reporting/v2/build-v974.mjs
node --check automation/repd_reporting/v2/tests/v974-cockpit-browser.mjs
node --test automation/repd_reporting/v2/tests/cockpit-facets.test.mjs automation/repd_reporting/v2/tests/cockpit-skin.test.mjs
- name: Spider/TestCode offline input-closure before any network gate
run: node automation/repd_reporting/v2/spider-audit.mjs
- name: Compose immutable full V9.74 successor from accepted V9.73
run: |
if test -e uk_renewables_pipeline/202611231400; then
echo "V9.74 candidate exists; leave its bytes unchanged and run full acceptance"
else
node automation/repd_reporting/v2/build-v974.mjs
fi
node --check uk_renewables_pipeline/202611231400/repd-reports.mjs
node --check uk_renewables_pipeline/202611231400/tests/v974-cockpit-browser.mjs
- name: Verify exact canonical production REPD source and original grouping
run: |
cd uk_renewables_pipeline/202611231400
node --test tests/v973-repd-reports.mjs
- name: Install browser engines for production 7,775-record UI acceptance
working-directory: uk_renewables_pipeline/202611231400
run: |
npm ci
npx playwright install --with-deps chromium webkit
- name: Start local exact candidate server
run: |
python3 -m http.server 8765 --bind 127.0.0.1 >/tmp/v974-http.log 2>&1 &
for i in $(seq 1 60); do
if curl -fsS -o /dev/null http://127.0.0.1:8765/uk_renewables_pipeline/202611231400/; then exit 0; fi
sleep 1
done
cat /tmp/v974-http.log
exit 1
- name: Chromium and WebKit real cockpit solar/BESS/wind operator acceptance
working-directory: uk_renewables_pipeline/202611231400
run: node tests/v974-cockpit-browser.mjs
- name: Inherited A4, PDF, Vicinity and expanded table regression
working-directory: uk_renewables_pipeline/202611231400
run: |
sed 's#202611222222#202611231400#g' tests/v972-vicinity-a4-pdf.mjs > tests/.v974-vicinity-a4-pdf.mjs
node tests/.v974-vicinity-a4-pdf.mjs
rm tests/.v974-vicinity-a4-pdf.mjs
sed 's#202611221930#202611231400#g' tests/repd-expanded.mjs > tests/.v974-expanded.mjs
node tests/.v974-expanded.mjs
rm tests/.v974-expanded.mjs
sed 's#202611221930#202611231400#g' tests/map-navigation-v970.mjs > tests/.v974-map-navigation.mjs
node tests/.v974-map-navigation.mjs
rm tests/.v974-map-navigation.mjs
- name: Remove ephemeral Playwright dependencies before proving immutable file closure
run: |
test -f uk_renewables_pipeline/202611231400/COCKPIT-BUILD-RECEIPT.json
rm -rf uk_renewables_pipeline/202611231400/node_modules
test ! -e uk_renewables_pipeline/202611231400/node_modules
- name: Verify no CSS, GridAtlas or source data changes in candidate release
run: |
python3 - <<'PY'
from pathlib import Path
import hashlib
old=Path('uk_renewables_pipeline/202611222330')
new=Path('uk_renewables_pipeline/202611231400')
a={str(p.relative_to(old)):p for p in old.rglob('*') if p.is_file()}
b={str(p.relative_to(new)):p for p in new.rglob('*') if p.is_file()}
changed={rel for rel in a if rel in b and a[rel].read_bytes()!=b[rel].read_bytes()}
missing=set(a)-set(b)
allowed={'index.html','repd-reports.mjs','README.md','CHANGES.md'}
assert not missing,sorted(missing)
assert changed==allowed,(changed,allowed)
added=set(b)-set(a)
assert added=={'tests/v974-cockpit-browser.mjs','COCKPIT-BUILD-RECEIPT.json'},sorted(added)
for rel in a:
if rel.startswith(('styles/','data/')) or rel in (
'map-entry.mjs','report-a4.mjs','report-pdf.mjs','repd-expanded.mjs'):
assert a[rel].read_bytes()==b[rel].read_bytes(),rel
print('PASS inherited',len(a),'files, zero missing, all styling/data/MAP/A4/PDF unchanged')
PY
- name: Commit candidate release to reserved branch ONLY after full gates
if: (github.event_name == 'push' && github.ref == 'refs/heads/agent/repd-cockpit-crossfilter-20261123') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref == 'agent/repd-cockpit-crossfilter-20261123')
env:
EXPECTED_PR_HEAD: ${{ github.event.pull_request.head.sha }}
run: |
branch='agent/repd-cockpit-crossfilter-20261123'
expected="${EXPECTED_PR_HEAD:-${GITHUB_SHA}}"
git fetch origin "$branch"
current="$(git rev-parse FETCH_HEAD)"
if test "$current" != "$expected"; then
echo "Source branch moved during acceptance; require fresh exact-head CI" >&2
exit 1
fi
git checkout -B "$branch" FETCH_HEAD
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add uk_renewables_pipeline/202611231400/
if git diff --cached --quiet; then echo 'Candidate already committed with unchanged bytes'; exit 0; fi
if git diff --cached --name-only | grep -v '^uk_renewables_pipeline/202611231400/'; then
echo 'Refusing to commit outside immutable candidate' >&2
exit 1
fi
git commit -m 'Candidate PN V9.74: integrated operator cockpit, full V9.73 preservation'
git push origin HEAD:"refs/heads/$branch"GlobalGrid2050 PR File Size Guard Workflow
A GitHub Actions workflow. Runs on pull requests.
automationglobalgrid2050 / .github/workflows/pr-file-size-guard.yml · lines 1–106 of 106 · 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
- No statement of purpose was found in the file, a README line naming it, or its name.
- 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
- PR file size guard
- 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/pr-file-size-guard.yml:1-106 · blob 6ce6929b9aaed9033c9f6c2a953ebbbe35473df2 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: PR file size guard
# Fails a pull request that adds or grows a file beyond MAX_MB, unless the path
# is listed in .github/large-files-allowlist.txt (exact paths or shell globs,
# one per line, '#' comments). Runs on pull requests only: pushes to main are
# deliberately not checked so the existing bots that commit generated data to
# main keep working. Existing large files are allowlisted so current content
# does not break the check; the goal is to stop NEW bulk data arriving via PR.
on:
pull_request:
permissions:
contents: read
concurrency:
group: pr-file-size-guard-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
size-guard:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
MAX_MB: '5'
ALLOWLIST: .github/large-files-allowlist.txt
steps:
# Blobless and sparse: only .github/ is materialised, so this stays fast
# even in repositories that carry hundreds of megabytes of data. Blobs
# for the PR's own changed files are fetched lazily when sized below.
- name: Checkout the PR merge commit (blobless, sparse, no history)
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 1
filter: blob:none
sparse-checkout: .github
sparse-checkout-cone-mode: true
- name: Fetch the base commit
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: git fetch --no-tags --depth=1 --filter=blob:none origin "$BASE_SHA"
- name: Check added or modified files against the size budget
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
shell: bash
run: |
set -euo pipefail
limit=$(( MAX_MB * 1024 * 1024 ))
allow=()
if [ -f "$ALLOWLIST" ]; then
while IFS= read -r line || [ -n "$line" ]; do
line="${line%%#*}"
line="${line#"${line%%[![:space:]]*}"}"
line="${line%"${line##*[![:space:]]}"}"
[ -n "$line" ] && allow+=("$line")
done < "$ALLOWLIST"
fi
allowed() {
local p="$1" pat
for pat in "${allow[@]+"${allow[@]}"}"; do
# shellcheck disable=SC2053
[[ "$p" == $pat ]] && return 0
done
return 1
}
failed=0
checked=0
{
echo "## PR file size guard"
echo ""
echo "Limit: ${MAX_MB} MB per file (added or modified files, allowlist: \`$ALLOWLIST\`)."
echo ""
} >> "$GITHUB_STEP_SUMMARY"
# HEAD is the merge of the PR into its base, so diffing it against the
# base commit yields exactly the PR's own additions and modifications.
while IFS= read -r -d '' path; do
[ -n "$path" ] || continue
size=$(git cat-file -s "HEAD:$path" 2>/dev/null || echo 0)
checked=$((checked + 1))
if [ "$size" -gt "$limit" ]; then
mb=$(awk -v b="$size" 'BEGIN { printf "%.1f", b / 1048576 }')
if allowed "$path"; then
echo "allowlisted ${mb} MB $path"
echo "- allowlisted: \`$path\` (${mb} MB)" >> "$GITHUB_STEP_SUMMARY"
else
echo "::error file=$path::$path is ${mb} MB, over the ${MAX_MB} MB limit. Publish it as a release asset, a workflow artifact, or an external dataset, or add it to $ALLOWLIST with a reason."
echo "- FAIL: \`$path\` (${mb} MB)" >> "$GITHUB_STEP_SUMMARY"
failed=1
fi
fi
done < <(git diff --name-only -z --diff-filter=AM "$BASE_SHA" HEAD)
echo "" >> "$GITHUB_STEP_SUMMARY"
echo "Files checked: $checked" >> "$GITHUB_STEP_SUMMARY"
echo "checked $checked added/modified files against a ${MAX_MB} MB limit"
if [ "$failed" -ne 0 ]; then
echo "One or more files exceed the size budget. See the annotations above." >&2
exit 1
fi
echo "All files within budget."