In this section
- GlobalGrid2050 Add V8 Battery Energy Storage System (BESS) Geospatial Layout Drawing Workflow automation · globalgrid2050 / .github/workflows/add-v8-bess-geospatial-layout-drawing.yml lines 1–54
- GlobalGrid2050 Add V3 Homepage Link Workflow automation · globalgrid2050 / .github/workflows/add_v3_homepage_link.yml lines 1–40
- GlobalGrid2050 Agent1 Producer Strict Workflow automation · globalgrid2050 / .github/workflows/agent1-producer-strict.yml lines 1–45
- GlobalGrid2050 Agent7 V922 CI Workflow automation · globalgrid2050 / .github/workflows/agent7-v922-ci.yml lines 1–206
- GlobalGrid2050 Atlas Oracle Workflow automation · globalgrid2050 / .github/workflows/atlas-oracle.yml lines 1–43
- GlobalGrid2050 Audit Generation Data Coverage V6 Workflow automation · globalgrid2050 / .github/workflows/audit_generation_data_coverage_v6.yml lines 1–45
- GlobalGrid2050 Auto Test Generation Sources 2026 V6 Workflow test · globalgrid2050 / .github/workflows/auto_test_generation_sources_2026_v6.yml lines 1–67
- GlobalGrid2050 Backfill Generation Aggregates Manual V6 Workflow automation · globalgrid2050 / .github/workflows/backfill_generation_aggregates_manual_v6.yml lines 1–68
- GlobalGrid2050 Backfill Generation Aggregates Sequence V6 Workflow automation · globalgrid2050 / .github/workflows/backfill_generation_aggregates_sequence_v6.yml lines 1–102
GlobalGrid2050 Add V8 Battery Energy Storage System (BESS) Geospatial Layout Drawing Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/add-v8-bess-geospatial-layout-drawing.yml · lines 1–54 of 54 · Entry point
- What it does
- It runs battery storage (BESS) and solar. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), solar.
- 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
- Runs GlobalGrid2050 Add V8 Battery Energy Storage System (BESS) Geospatial Layout Drawing (`scripts/add_v8_bess_geospatial_layout_drawing.py`) and GlobalGrid2050 Test Add V8 Battery Energy Storage System (BESS) Geospatial Layout Drawing (`scripts/test_add_v8_bess_geospatial_layout_drawing.py`).
- 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
- GlobalGrid2050 Add V8 Battery Energy Storage System (BESS) Geospatial Layout Drawing (workflow run), GlobalGrid2050 Test Add V8 Battery Energy Storage System (BESS) Geospatial Layout Drawing (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Add V8 BESS Geospatial Layout Drawing
- 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/add-v8-bess-geospatial-layout-drawing.yml:1-54 · blob f2408a5d384a00e02a61c0228c43bcecf56d9592 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
name: Add V8 BESS Geospatial Layout Drawing
on:
workflow_dispatch:
permissions:
contents: write
jobs:
add-v8-bess-geospatial-layout-drawing:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GRIDBOT_PAT }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Add V8 BESS geospatial layout drawing
run: python scripts/add_v8_bess_geospatial_layout_drawing.py
- name: Run V8 BESS geospatial layout drawing checks
run: python scripts/test_add_v8_bess_geospatial_layout_drawing.py
- name: Commit and push V8 BESS geospatial layout drawing
env:
PAT: ${{ secrets.GRIDBOT_PAT }}
run: |
git config --global user.name "gridbot"
git config --global user.email "bot@globalgrid2050.com"
git pull --rebase --autostash origin main
git add \
solar-bess-topology-v8/bess-gis-sld-financial-sandbox/index.html \
solar-bess-topology-v8/bess-gis-sld-financial-sandbox/bess-gis-sld-financial-sandbox.css \
solar-bess-topology-v8/bess-gis-sld-financial-sandbox/bess-gis-sld-financial-sandbox.js \
scripts/add_v8_bess_geospatial_layout_drawing.py \
scripts/test_add_v8_bess_geospatial_layout_drawing.py \
gridbot_reports/add_v8_bess_geospatial_layout_drawing.md
if git diff --cached --quiet; then
echo "No V8 BESS geospatial layout drawing changes to commit."
exit 0
fi
git commit -m "Add V8 BESS geospatial layout drawing"
git pull --rebase --autostash origin main
git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:mainGlobalGrid2050 Add V3 Homepage Link Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/add_v3_homepage_link.yml · lines 1–40 of 40 · 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
- Runs GlobalGrid2050 Add V3 Homepage Link (`scripts/add_v3_homepage_link.py`).
- 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
- GlobalGrid2050 Add V3 Homepage Link (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- add_v3_homepage_link
- 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/add_v3_homepage_link.yml:1-40 · blob 9fe816723a0d54cab0f20e0da9c4c1575772b166 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: add_v3_homepage_link
on:
workflow_dispatch:
permissions:
contents: write
jobs:
add-v3-link:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Run V3 homepage link patch
run: python scripts/add_v3_homepage_link.py
- name: Commit homepage link
run: |
set -e
git config --global user.name "GridBot"
git config --global user.email "gridbot@globalgrid2050.com"
git add index.html
git add gridbot_reports/add_v3_homepage_link.md
if [ -n "$(git status --porcelain)" ]; then
git commit -m "GridBot: add V3 tracker to homepage"
git pull --rebase origin main
git push origin HEAD:main
else
echo "No homepage changes to commit"
fiGlobalGrid2050 Agent1 Producer Strict Workflow
A GitHub Actions workflow. Runs on pull requests.
automationglobalgrid2050 / .github/workflows/agent1-producer-strict.yml · lines 1–45 of 45 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Inputs & outputs
- In: JSON file editorial_acid_cases.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Agent 1 producer strict acceptance (no xfail masking)”.
- 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
- Test Signals Acid (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Agent 1 producer strict acceptance (no xfail masking)
- 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/agent1-producer-strict.yml:1-45 · blob 5fd828288b87f7ca77b5021b7c02658365a49ccd · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Agent 1 producer strict acceptance (no xfail masking)
# QA-only; never deploy or write data. Separate strict gate from legacy suite.
on:
pull_request:
paths:
- 'automation/news/signals/**'
- 'automation/news/datacentre_feed.py'
- '.github/workflows/agent1-producer-strict.yml'
permissions:
contents: read
jobs:
strict-acid:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: python -m pip install --quiet pytest
- name: Strict existing acid with ALL known/open recommendations exposed
run: python -m pytest -q --runxfail -p no:cacheprovider automation/news/tests/test_signals_acid.py
agent4-editorial:
runs-on: ubuntu-latest
timeout-minutes: 12
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: python -m pip install --quiet pytest
- name: Fetch reviewer cases at immutable SHA without editing their branch
run: |
reviewer="e1a9f767c7a41a2a02c9745df273a373ff8ad1e8"
git fetch --no-tags --depth=1 origin "$reviewer"
test "$(git rev-parse FETCH_HEAD)" = "$reviewer"
mkdir -p automation/news/signals/agent4
git show "FETCH_HEAD:automation/news/signals/agent4/editorial_acid_cases.json" \
> automation/news/signals/agent4/editorial_acid_cases.json
git show "FETCH_HEAD:automation/news/signals/tests/test_agent4_editorial_regressions.py" \
> automation/news/signals/tests/test_agent4_editorial_regressions.py
- name: Agent 4 independent editorial positive and negative regression cases
run: python -m pytest -q --runxfail -p no:cacheprovider automation/news/signals/tests/test_agent4_editorial_regressions.pyGlobalGrid2050 Agent7 V922 CI Workflow
A GitHub Actions workflow that builds and publishes the site. Runs on pull requests and by hand.
automationglobalgrid2050 / .github/workflows/agent7-v922-ci.yml · lines 1–206 of 206 · Entry point
- What it does
- It builds and publishes the REPD register. Side effects: 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; JSON file REPD-Q3-BUILD-MANIFEST.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Agent 7 V9.22 staging regressions”; runs Run V9 22 (`uk_renewables_pipeline/202611151300/tests/run_v9_22.sh`), Browser Stage Agent7 (`uk_renewables_pipeline/202611151300/tests/browser_stage_agent7.mjs`) and `uk_renewables_pipeline/202611151300/tests/browser_real_map_to_engine_agent7.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
- Test Pipeline Headlines (workflow run), Test Agent7 Dedupe Regressions (workflow run), Test Agent7 Evidence Ledger (workflow run), Live News Regression V9 22 (workflow run), Run V9 22 (workflow run), Browser Stage Agent7 (workflow run), Browser Real Map to Engine Agent7 (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Agent 7 V9.22 staging regressions
- 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/agent7-v922-ci.yml:1-206 · blob fc590e299444bed274f45059bd881bff9bee2983 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: network, process · domain stage: unknown · users: none · canonical: production_core
name: Agent 7 V9.22 staging regressions
on:
pull_request:
paths:
- 'automation/news/pipeline_headlines.py'
- 'automation/news/tests/test_agent7_dedupe_regressions.py'
- 'automation/news/tests/test_agent7_evidence_ledger.py'
- 'automation/news/evidence_ledger.py'
- 'automation/news/tests/test_pipeline_headlines.py'
- 'uk_renewables_pipeline/202611151300/**'
- '.github/workflows/agent7-v922-ci.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
offline-staging-regressions:
name: Strict offline regressions (not release approval)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install test runner
run: python -m pip install --disable-pip-version-check pytest
- name: RSS collector historical and Agent7 regressions
run: python -m pytest -q automation/news/tests/test_pipeline_headlines.py automation/news/tests/test_agent7_dedupe_regressions.py automation/news/tests/test_agent7_evidence_ledger.py
- name: V9.22 actual reader healthy-empty and partial-source regression tests
run: node --test uk_renewables_pipeline/202611151300/tests/live_news_regression_v9_22.mjs
- name: V9.22 full offline inherited spine and MAP URL-contract checks
run: bash uk_renewables_pipeline/202611151300/tests/run_v9_22.sh
- name: Explicit acceptance limitation
if: always()
run: |
echo "Offline staging checks are NOT per-article rights clearance, independent review,"
echo "public served-byte validation, browser 390/1440, CSV click or MAP-to-engine execution."
echo "No automatic merge, deployment or homepage pointer update is authorised."
chromium-staging-preflight:
name: Chromium 390/1440 and WebKit 393 staging UI + CSV (engine not certified)
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install pinned candidate Playwright
working-directory: uk_renewables_pipeline/202611151300
run: |
npm ci --no-audit --no-fund
npx playwright install --with-deps chromium webkit
- name: Real Chromium 390/1440 and WebKit 393, CSV and MAP hit-target preflight
env:
AGENT7_SCREENSHOT_DIR: /tmp/agent7-v922-browser
run: |
python3 -m http.server 8765 --bind 127.0.0.1 > /tmp/agent7-http.log 2>&1 &
SERVER_PID=$!
trap 'kill "$SERVER_PID" 2>/dev/null || true' EXIT
node uk_renewables_pipeline/202611151300/tests/browser_stage_agent7.mjs
- name: Retain independent review screenshots
if: always()
uses: actions/upload-artifact@v4
with:
name: agent7-v922-chromium-390-1440
path: /tmp/agent7-v922-browser/
if-no-files-found: warn
published-baseline-readback:
name: V9.21 + V9.20 public served-byte & rollback readback (not V9.22)
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Fetch actual published baseline, bytes not redirect status alone
shell: bash
run: |
set -euo pipefail
mkdir -p /tmp/agent7-public-readback
report=/tmp/agent7-public-readback/source-vs-served-sha256.txt
printf 'BROWSER RELEASE CANDIDATE V9.22: NOT PUBLISHED / NOT CERTIFIED\n' > "$report"
printf 'Source HEAD: %s\n' "$GITHUB_SHA" >> "$report"
for relative in \
uk_renewables_pipeline/202611141017/index.html \
uk_renewables_pipeline/202611141017/scripts/plugins/live-news.js \
uk_renewables_pipeline/202611141017/news/pipeline_headlines.snapshot.json \
uk_renewables_pipeline/202611141017/data/v9.1/build_manifest.json \
uk_renewables_pipeline/202611140306/index.html
do
printf 'Checking public %s\n' "$relative" | tee -a "$report"
fetched="/tmp/agent7-public-readback/$(printf '%s' "$relative" | tr '/' '_')"
url="https://globalgrid2050.com/$relative"
curl --fail --location --silent --show-error --retry 2 --connect-timeout 15 --max-time 90 \
--output "$fetched" "$url" || { echo "UNVERIFIED/FAIL: public GET $url" | tee -a "$report"; exit 1; }
srcsha="$(sha256sum "$relative" | awk '{print $1}')"
pubsha="$(sha256sum "$fetched" | awk '{print $1}')"
printf 'source %s / served %s / path %s\n' "$srcsha" "$pubsha" "$relative" | tee -a "$report"
test "$srcsha" = "$pubsha" || { echo "FAIL: served bytes differ" | tee -a "$report"; exit 1; }
done
echo 'Baseline V9.21 and rollback V9.20 independently served-identical in this run' | tee -a "$report"
echo 'No V9.22 served-byte acceptance, no real browser MAP→engine and no independent human release approval.' | tee -a "$report"
- name: Preserve served-byte hash report
if: always()
uses: actions/upload-artifact@v4
with:
name: agent7-v921-v920-served-byte-readback
path: /tmp/agent7-public-readback/source-vs-served-sha256.txt
if-no-files-found: warn
real-grid-engine-diagnostic:
name: Real MAP→GridAtlas engine 3-class partial sample at ${{ matrix.width }}px
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
width: [390, 1440]
timeout-minutes: 18
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install pinned candidate Chromium
working-directory: uk_renewables_pipeline/202611151300
run: |
npm ci --no-audit --no-fund
npx playwright install --with-deps chromium
- name: Click real MAP anchors and demand composer plus actual nearest result
env:
AGENT7_ENGINE_REPORT_DIR: /tmp/agent7-real-engine
AGENT7_ENGINE_MODE: local
AGENT7_ENGINE_WIDTH: '${{ matrix.width }}'
AGENT7_ENGINE_SAMPLE_LIMIT: '3'
AGENT7_ENGINE_WAIT_MS: '85000'
run: |
python3 -m http.server 8765 --bind 127.0.0.1 > /tmp/agent7-grid-http.log 2>&1 &
SERVER_PID=$!
trap 'kill "$SERVER_PID" 2>/dev/null || true' EXIT
node uk_renewables_pipeline/202611151300/tests/browser_real_map_to_engine_agent7.mjs
- name: Always retain real per-REPD engine receipts and screenshots, including failure
if: always()
uses: actions/upload-artifact@v4
with:
name: agent7-real-grid-engine-click-partial-${{ matrix.width }}
path: /tmp/agent7-real-engine/
if-no-files-found: warn
immutable-candidate-bundle:
name: Pinned V9.22 offline staging bundle and byte manifest (not public)
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Require exact V9.20 and V9.21 historical Git trees unchanged
run: |
set -euo pipefail
# This works with GitHub Actions shallow checkouts: the HEAD tree
# contains both historical subtrees even without the parent commit.
test "$(git rev-parse 'HEAD:uk_renewables_pipeline/202611140306')" = \
"365d7df093368c39c3878daacf65449ba32e7267"
test "$(git rev-parse 'HEAD:uk_renewables_pipeline/202611141017')" = \
"0c56d3a81d7e3abaec164ab689b0f4c8a38e7129"
echo "Pinned V9.20 and V9.21 trees are byte-identical to published baselines."
- name: Emit exact HEAD and source-byte SHA256 manifest for offline independent review
shell: bash
run: |
set -euo pipefail
RELEASE=uk_renewables_pipeline/202611151300
BUNDLE="$RUNNER_TEMP/agent7-v922-bundle"
mkdir -p "$BUNDLE"
printf '%s\n' "repository: Ventusltd/globalgrid2050" \
"candidate: $RELEASE" "source_head: $(git rev-parse HEAD)" \
"parent_head: dd0fcceb08e71d6c40b77d18e4e5eff493529d45" \
"published_baseline: 202611141017 V9.21" \
"rollback: 202611140306 V9.20" \
"status: DRAFT / NOT SERVED OR RELEASE-ACCEPTED" \
"no verified project-news permissions asserted" > "$BUNDLE/RELEASE-IDENTITY.txt"
find "$RELEASE" -type f | LC_ALL=C sort | while IFS= read -r file; do
sha256sum "$file"
done > "$BUNDLE/V9.22-SOURCE-SHA256SUMS.txt"
cp "$RELEASE/data/v9.1/build_manifest.json" "$BUNDLE/REPD-Q3-BUILD-MANIFEST.json"
cp "$RELEASE/CHANGES.md" "$BUNDLE/CHANGES.md"
cp docs/news/agent7-v922-delivery-recovery-20261115.md "$BUNDLE/RECOVERY.md"
echo "No external browser or article rights acceptance is inferred from these hashes."
wc -l "$BUNDLE/V9.22-SOURCE-SHA256SUMS.txt"
- name: Upload candidate manifest for independent Agent 2/3/4 reuse
uses: actions/upload-artifact@v4
with:
name: agent7-v922-exact-source-manifest
path: ${{ runner.temp }}/agent7-v922-bundle/
if-no-files-found: errorGlobalGrid2050 Atlas Oracle Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/atlas-oracle.yml · lines 1–43 of 43 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Runs Compare (`scripts/oracle/compare.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
- Compare (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Atlas oracle comparison
- 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/atlas-oracle.yml:1-43 · blob d609d7d5aec23bc28471c68a494ec58118321407 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: Atlas oracle comparison
# testcode/202609051531 is the arrival the architect identified as smooth. It is
# pinned as the ORACLE and every candidate Atlas is measured against it. This
# runs on demand rather than on every push because it measures LIVE URLs over a
# real network - a gate that depends on somebody else's uptime must not be able
# to fail a commit that did not touch anything.
on:
workflow_dispatch:
inputs:
candidate_url:
description: "Atlas arrival URL to measure (blank = re-measure the oracle itself)"
required: false
default: ""
runs:
description: "Runs per lane (medians are compared; one sample is not a measurement)"
required: false
default: "3"
permissions:
contents: read
jobs:
compare:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install the pinned browser harness
working-directory: uk_renewables_pipeline/v9.7
run: |
npm ci --no-audit --no-fund
npx playwright install --with-deps chromium
- name: Compare against the oracle
run: |
ln -s uk_renewables_pipeline/v9.7/node_modules node_modules
if [ -z "${{ inputs.candidate_url }}" ]; then
node scripts/oracle/compare.mjs --remeasure-oracle "${{ inputs.runs }}"
else
node scripts/oracle/compare.mjs "${{ inputs.candidate_url }}" "${{ inputs.runs }}"
fiGlobalGrid2050 Audit Generation Data Coverage V6 Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/audit_generation_data_coverage_v6.yml · lines 1–45 of 45 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'generation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Inputs & outputs
- Out: 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 GlobalGrid2050 Audit Generation Data Coverage V6 (`scripts/audit_generation_data_coverage_v6.py`).
- 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
- GlobalGrid2050 Audit Generation Data Coverage V6 (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Audit Generation Data Coverage V6
- 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/audit_generation_data_coverage_v6.yml:1-45 · blob afa386be8f6fb86407c20fea67f5db6b18026edd · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: Audit Generation Data Coverage V6
on:
workflow_dispatch:
permissions:
contents: write
concurrency:
group: audit-generation-data-coverage-v6
cancel-in-progress: true
jobs:
audit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Audit generation data coverage
run: |
python scripts/audit_generation_data_coverage_v6.py
- name: Commit generation data coverage audit
env:
PAT: ${{ secrets.GRIDBOT_PAT }}
run: |
set -e
git config --global user.name "gridbot"
git config --global user.email "bot@globalgrid2050.com"
git add uk_energy_tracking_v6/generation_history/GENERATION_DATA_COVERAGE_AUDIT.md uk_energy_tracking_v6/generation_history/generation_data_coverage_audit.json
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Audit V6 generation data coverage"
git pull --rebase https://${PAT}@github.com/${{ github.repository }}.git main
git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
else
echo "No audit changes"
fiGlobalGrid2050 Auto Test Generation Sources 2026 V6 Workflow
A GitHub Actions workflow. Runs by hand.
testglobalgrid2050 / .github/workflows/auto_test_generation_sources_2026_v6.yml · lines 1–67 of 67 · Entry point
- What it does
- It tests its inputs. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'generation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Inputs & outputs
- Out: 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 GlobalGrid2050 Backfill Generation Sources Year V6 (`scripts/backfill_generation_sources_year_v6.py`), GlobalGrid2050 Merge Generation Sources Annual to Master V6 (`scripts/merge_generation_sources_annual_to_master_v6.py`) and GlobalGrid2050 Generate Generation History Daily V6 (`scripts/generate_generation_history_daily_v6.py`).
- 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
- GlobalGrid2050 Backfill Generation Sources Year V6 (workflow run), GlobalGrid2050 Merge Generation Sources Annual to Master V6 (workflow run), GlobalGrid2050 Generate Generation History Daily V6 (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Auto Test Generation Sources 2026 V6
- 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/auto_test_generation_sources_2026_v6.yml:1-67 · blob 7f7ae7bd09c12ecaa688eba9846e23b09d2a598c · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: Auto Test Generation Sources 2026 V6
on:
workflow_dispatch:
permissions:
contents: write
concurrency:
group: auto-test-generation-sources-2026-v6
cancel-in-progress: true
jobs:
test_2026:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Stop if 2026 auto test already completed
id: guard
run: |
if [ -f uk_energy_tracking_v6/generation_history/AUTO_2026_TEST_DONE.flag ]; then
echo "done=true" >> "$GITHUB_OUTPUT"
echo "2026 generation auto test already completed. Skipping."
else
echo "done=false" >> "$GITHUB_OUTPUT"
fi
- name: Set up Python
if: steps.guard.outputs.done != 'true'
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Backfill 2026 generation source test
if: steps.guard.outputs.done != 'true'
env:
YEAR: '2026'
INCLUDE_SOLAR: 'true'
run: |
set -e
YEAR=2026 INCLUDE_SOLAR=true python scripts/backfill_generation_sources_year_v6.py
python scripts/merge_generation_sources_annual_to_master_v6.py
python scripts/generate_generation_history_daily_v6.py
mkdir -p uk_energy_tracking_v6/generation_history
echo "Completed UTC: $(date -u +'%Y-%m-%dT%H:%M:%SZ')" > uk_energy_tracking_v6/generation_history/AUTO_2026_TEST_DONE.flag
- name: Commit 2026 auto test data
if: steps.guard.outputs.done != 'true'
env:
PAT: ${{ secrets.GRIDBOT_PAT }}
run: |
set -e
git config --global user.name "gridbot"
git config --global user.email "bot@globalgrid2050.com"
git add data/generation/elexon_generation_sources_2026.csv data/generation/elexon_generation_sources_half_hourly.csv uk_energy_tracking_v6/generation_history/generation_history_daily_decade.json uk_energy_tracking_v6/generation_history/backfill_reports/GENERATION_HISTORY_BACKFILL_2026.md uk_energy_tracking_v6/generation_history/AUTO_2026_TEST_DONE.flag
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Auto test V6 generation source data for 2026"
git pull --rebase https://${PAT}@github.com/${{ github.repository }}.git main
git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
else
echo "No 2026 generation source auto test changes"
fiGlobalGrid2050 Backfill Generation Aggregates Manual V6 Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/backfill_generation_aggregates_manual_v6.yml · lines 1–68 of 68 · Entry point
- What it does
- It runs solar. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'generation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar.
- 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
- Runs GlobalGrid2050 Backfill Generation Aggregates Year V6 (`scripts/backfill_generation_aggregates_year_v6.py`).
- 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
- GlobalGrid2050 Backfill Generation Aggregates Year V6 (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Backfill Generation Aggregates Manual V6
- 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/backfill_generation_aggregates_manual_v6.yml:1-68 · blob 6dcd5363b1b5c998cb453469b738ad0219619c1d · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: Backfill Generation Aggregates Manual V6
on:
workflow_dispatch:
inputs:
year:
description: Calendar year to aggregate
required: true
default: '2024'
include_solar:
description: Include Sheffield Solar PVLive solar rows
required: true
default: 'true'
permissions:
contents: write
concurrency:
group: generation-aggregate-writes-v6
cancel-in-progress: false
jobs:
aggregate_year:
runs-on: ubuntu-latest
timeout-minutes: 240
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Pull latest main
env:
PAT: ${{ secrets.GRIDBOT_PAT }}
run: |
git config --global user.name "gridbot"
git config --global user.email "bot@globalgrid2050.com"
git pull --ff-only https://${PAT}@github.com/${{ github.repository }}.git main
- name: Aggregate generation MWh
env:
YEAR: ${{ github.event.inputs.year }}
INCLUDE_SOLAR: ${{ github.event.inputs.include_solar }}
run: |
YEAR=$YEAR INCLUDE_SOLAR=$INCLUDE_SOLAR python scripts/backfill_generation_aggregates_year_v6.py
- name: Commit aggregate outputs
env:
PAT: ${{ secrets.GRIDBOT_PAT }}
YEAR: ${{ github.event.inputs.year }}
run: |
git add uk_energy_tracking_v6/generation_history/generation_monthly_mwh_by_technology.json
git add uk_energy_tracking_v6/generation_history/generation_annual_mwh_by_technology.json
git add uk_energy_tracking_v6/generation_history/generation_seasonal_mwh_by_technology.json
git add uk_energy_tracking_v6/generation_history/generation_day_night_mwh_by_technology.json
git add uk_energy_tracking_v6/generation_history/backfill_reports/GENERATION_AGGREGATE_BACKFILL_${YEAR}.md
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Backfill V6 generation MWh aggregates for ${YEAR}"
git pull --rebase https://${PAT}@github.com/${{ github.repository }}.git main
git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
else
echo "No aggregate changes"
fiGlobalGrid2050 Backfill Generation Aggregates Sequence V6 Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/backfill_generation_aggregates_sequence_v6.yml · lines 1–102 of 102 · Entry point
- What it does
- It runs solar. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'generation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar.
- 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
- Runs GlobalGrid2050 Backfill Generation Aggregates Year V6 (`scripts/backfill_generation_aggregates_year_v6.py`).
- 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
- GlobalGrid2050 Backfill Generation Aggregates Year V6 (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Backfill Generation Aggregates Sequence V6
- 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/backfill_generation_aggregates_sequence_v6.yml:1-102 · blob 0a5e237e0308882a5a6f6f1fd8c17b43ddf671d1 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: Backfill Generation Aggregates Sequence V6
on:
workflow_dispatch:
inputs:
start_year:
description: First calendar year to aggregate
required: true
default: '2016'
end_year:
description: Last calendar year to aggregate, or auto for current year
required: true
default: 'auto'
include_solar:
description: Include Sheffield Solar PVLive solar rows
required: true
default: 'true'
permissions:
contents: write
concurrency:
group: generation-aggregate-writes-v6
cancel-in-progress: false
jobs:
aggregate_sequence:
runs-on: ubuntu-latest
timeout-minutes: 720
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Pull latest main
env:
PAT: ${{ secrets.GRIDBOT_PAT }}
run: |
set -e
git config --global user.name "gridbot"
git config --global user.email "bot@globalgrid2050.com"
git pull --ff-only https://${PAT}@github.com/${{ github.repository }}.git main
- name: Resolve year range
id: years
run: |
set -e
START_YEAR="${{ github.event.inputs.start_year }}"
END_YEAR="${{ github.event.inputs.end_year }}"
if [ "$END_YEAR" = "auto" ]; then
END_YEAR=$(date -u +%Y)
fi
if ! echo "$START_YEAR" | grep -Eq '^[0-9]{4}$'; then
echo "Invalid start_year: $START_YEAR"
exit 1
fi
if ! echo "$END_YEAR" | grep -Eq '^[0-9]{4}$'; then
echo "Invalid end_year: $END_YEAR"
exit 1
fi
if [ "$START_YEAR" -lt 2016 ]; then
echo "Start year cannot be before 2016"
exit 1
fi
if [ "$END_YEAR" -lt "$START_YEAR" ]; then
echo "End year cannot be before start year"
exit 1
fi
echo "start_year=$START_YEAR" >> "$GITHUB_OUTPUT"
echo "end_year=$END_YEAR" >> "$GITHUB_OUTPUT"
echo "Year range: $START_YEAR to $END_YEAR"
- name: Aggregate and commit each year
env:
PAT: ${{ secrets.GRIDBOT_PAT }}
START_YEAR: ${{ steps.years.outputs.start_year }}
END_YEAR: ${{ steps.years.outputs.end_year }}
INCLUDE_SOLAR: ${{ github.event.inputs.include_solar }}
run: |
set -e
for YEAR in $(seq $START_YEAR $END_YEAR); do
echo "Aggregating generation MWh for $YEAR"
YEAR=$YEAR INCLUDE_SOLAR=$INCLUDE_SOLAR python scripts/backfill_generation_aggregates_year_v6.py
git add uk_energy_tracking_v6/generation_history/generation_monthly_mwh_by_technology.json
git add uk_energy_tracking_v6/generation_history/generation_annual_mwh_by_technology.json
git add uk_energy_tracking_v6/generation_history/generation_seasonal_mwh_by_technology.json
git add uk_energy_tracking_v6/generation_history/generation_day_night_mwh_by_technology.json
git add uk_energy_tracking_v6/generation_history/backfill_reports/GENERATION_AGGREGATE_BACKFILL_${YEAR}.md
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Backfill V6 generation MWh aggregates for ${YEAR}"
git pull --rebase https://${PAT}@github.com/${{ github.repository }}.git main
git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
else
echo "No aggregate changes for $YEAR"
fi
done