GLOBALGRID2050 / EXPLORE CODE

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

GlobalGrid2050 Renewable Energy Planning Database (REPD) Monthly Workflow and 5 more files

A GitHub Actions workflow that builds and publishes the site. Runs on a schedule, by hand and on release.

633 lines of YAML from globalgrid2050, in 6 files. Topic: Automation and CI. Section 1730 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 Renewable Energy Planning Database (REPD) Mobile V976 Workflow automation · globalgrid2050 / .github/workflows/repd-mobile-v976.yml lines 1–77
  2. GlobalGrid2050 Renewable Energy Planning Database (REPD) Monthly Workflow automation · globalgrid2050 / .github/workflows/repd-monthly.yml lines 1–225
  3. GlobalGrid2050 Renewable Energy Planning Database (REPD) Native V975 Workflow automation · globalgrid2050 / .github/workflows/repd-native-v975.yml lines 1–92
  4. GlobalGrid2050 Renewable Energy Planning Database (REPD) Publication Baseline Probe Workflow automation · globalgrid2050 / .github/workflows/repd-publication-baseline-probe.yml lines 1–46
  5. GlobalGrid2050 Renewable Energy Planning Database (REPD) Q2 Original Evidence Workflow automation · globalgrid2050 / .github/workflows/repd-q2-original-evidence.yml lines 1–118
  6. GlobalGrid2050 Renewable Energy Planning Database (REPD) Q3 Evidence Branch Workflow automation · globalgrid2050 / .github/workflows/repd-q3-evidence-branch.yml lines 1–75

GlobalGrid2050 Renewable Energy Planning Database (REPD) Mobile V976 Workflow

A GitHub Actions workflow. Runs on push, on pull requests and by hand.

automationglobalgrid2050 / .github/workflows/repd-mobile-v976.yml · lines 1–77 of 77 · Entry point

What it does
It runs the REPD register. Side effects: makes network requests; starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “PipelineNews V9.76 iPhone report regression and immutable source QA”; runs Verify V976 (`automation/repd_mobile/v976/verify_v976.py`), `tests/v976-mobile-browser.mjs` and `tests/.v975-baseline-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
Verify V976 (workflow run), V976 Mobile Browser (workflow run), Operator Aliases Test (workflow run), Real V975 Test (workflow run), V973 Renewable Energy Planning Database (REPD) Reports (workflow run)
Used by
none found
Produces
none declared
Defines here
PipelineNews V9.76 iPhone report regression and immutable source 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/repd-mobile-v976.yml:1-77 · blob 2980b041493cc927a890be3fd1b7780f42bedb98 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: network, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: PipelineNews V9.76 iPhone report regression and immutable source QA
on:
  push:
    branches: [agent/repd-mobile-reports-v976-20261123]
    paths:
      - 'automation/repd_mobile/v976/**'
      - 'uk_renewables_pipeline/202611232245/**'
      - '.github/workflows/repd-mobile-v976.yml'
  pull_request:
    paths:
      - 'automation/repd_mobile/v976/**'
      - 'uk_renewables_pipeline/202611232245/**'
      - '.github/workflows/repd-mobile-v976.yml'
  workflow_dispatch:
permissions:
  contents: read
jobs:
  mobile-v976:
    runs-on: ubuntu-24.04
    container:
      image: mcr.microsoft.com/playwright:v1.62.1-noble
    timeout-minutes: 40
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 1
      - uses: actions/setup-node@v4
        with:
          node-version: '22'
      - name: Python complete frozen-tree comparison and REPD/SCADA protection
        run: python3 automation/repd_mobile/v976/verify_v976.py
      - name: Retain actual 7,775-source and conservative operator alias tests
        run: |
          node --check uk_renewables_pipeline/202611232245/tests/v976-mobile-browser.mjs
          node --test automation/repd_reporting/v3/operator-aliases.test.mjs
          node --test automation/repd_reporting/v3/real_v975.test.mjs
          cd uk_renewables_pipeline/202611231400
          node --test tests/v973-repd-reports.mjs
      - name: Install pinned Chromium and WebKit without changing original source
        working-directory: uk_renewables_pipeline/202611232245
        run: |
          npm ci
          npx playwright install chromium webkit
      - name: Start real REPD app and historical live-data fixtures, never mock source
        run: |
          python3 -m http.server 8765 --bind 127.0.0.1 >/tmp/repd-v976.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/202611232245/; then exit 0; fi
            sleep 1
          done
          cat /tmp/repd-v976.log
          exit 1
      - name: Mobile failure reproduction fixed on 320, 393, 430, 852, 1280 Chromium and WebKit
        working-directory: uk_renewables_pipeline/202611232245
        run: node tests/v976-mobile-browser.mjs
      - name: Original V9.75 desktop/mobile dataset and filter/browser acceptance unchanged
        working-directory: uk_renewables_pipeline/202611232245
        run: |
          cp ../202611231600/tests/v975-native-browser.mjs tests/.v975-baseline-browser.mjs
          node tests/.v975-baseline-browser.mjs
          rm tests/.v975-baseline-browser.mjs
      - name: Re-run 16 historical MAP A4 PDF VICINITY and expanded-view compatibility cases
        working-directory: uk_renewables_pipeline/202611232245
        run: |
          sed 's#202611222222#202611232245#g' tests/v972-vicinity-a4-pdf.mjs > tests/.v976-vicinity-a4-pdf.mjs
          node tests/.v976-vicinity-a4-pdf.mjs
          rm tests/.v976-vicinity-a4-pdf.mjs
          sed 's#202611221930#202611232245#g' tests/repd-expanded.mjs > tests/.v976-expanded.mjs
          node tests/.v976-expanded.mjs
          rm tests/.v976-expanded.mjs
          sed 's#202611221930#202611232245#g' tests/map-navigation-v970.mjs > tests/.v976-map-navigation.mjs
          node tests/.v976-map-navigation.mjs
          rm tests/.v976-map-navigation.mjs
      - name: Clean npm and reconfirm no source or palette truncation
        run: |
          rm -rf uk_renewables_pipeline/202611232245/node_modules
          python3 automation/repd_mobile/v976/verify_v976.py

GlobalGrid2050 Renewable Energy Planning Database (REPD) Monthly Workflow

A GitHub Actions workflow that builds and publishes the site. Runs on a schedule, by hand and on release.

automationglobalgrid2050 / .github/workflows/repd-monthly.yml · lines 1–225 of 225 · Entry point

What it does
It builds and publishes the REPD register. Side effects: reads or writes files; starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register.
Inputs & outputs
In: JSON file run_report.json; JSON file result.json; command-line arguments. Out: GitHub Pages deployment; commits pushed to the repository.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Publishes to GitHub Pages.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
Renewable Energy Planning Database (REPD) Monthly (workflow run), Automation — Renewable Energy Planning Database (REPD) (workflow run)
Used by
none found
Produces
none declared
Defines here
REPD monthly update
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/repd-monthly.yml:1-225 · blob 9e98cbfa499aa4a79183c83662a1fb9d8b9aff48 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: REPD monthly update
# The owner's instruction of 14 Nov 2026: "I want REPD to be updated every month." This is the
# one scheduled exception to 000_freeze_all_workflows_to_manual.yml (running that freeze again
# strips the schedule below: put it back). It replaces repd-new-release-check.yml.disabled.
#
# On the 3rd of each month: download the CSV + XLSX the GOV.UK publication links to and compare
# their sha256 with the descriptors in automation/repd/releases/ (hashes, not URLs: GOV.UK
# redirects a replaced attachment's old URL to the new file). Same bytes = "no new release",
# a green run (REPD is quarterly, so most months). New bytes = write the new descriptor, run
# automation/repd/run.py (clean, validate, change report, new-named datasets, hash guard) and
# open a pull request (not draft) on repd/<id>-monthly with the change report in the body.
# Never pushes to main; only the open-pr job can write. Runbook: docs/repd/RUNBOOK.md.
on:
  schedule:
    - cron: '17 5 3 * *'
  workflow_dispatch:
    inputs:
      open_pr:
        description: Open the pull request when a new release is found (false = build and upload only)
        required: false
        default: true
        type: boolean
      release_folder:
        description: 12-digit UTC stamp for uk_renewables_pipeline/<stamp>/ (blank = now)
        required: false
        default: ''
        type: string
permissions:
  contents: read

concurrency:
  group: repd-monthly
  cancel-in-progress: false

jobs:
  check:
    name: Check GOV.UK and build if new (read-only)
    runs-on: ubuntu-latest
    timeout-minutes: 45
    permissions:
      contents: read
    outputs:
      status: ${{ steps.check.outputs.status }}
      release_id: ${{ steps.check.outputs.release_id }}
      overall: ${{ steps.build.outputs.overall }}
    env:
      IN_FOLDER: ${{ inputs.release_folder }}
      WORK: /tmp/repd-monthly
      PYTHONDONTWRITEBYTECODE: '1'
    steps:
      - name: Validate inputs
        shell: bash
        run: |
          set -euo pipefail
          [[ -z "$IN_FOLDER" || "$IN_FOLDER" =~ ^20[0-9]{10}$ ]] || { echo "::error::release_folder must be 12 digits"; exit 1; }

      # Same sparse, blobless checkout as repd-release-candidate.yml: only what the pipeline reads.
      - name: Checkout main (blobless, sparse)
        uses: actions/checkout@v4
        with:
          ref: main
          fetch-depth: 1
          filter: blob:none
          persist-credentials: false
          sparse-checkout: |
            automation
            scripts
            config
            dist
            docs
            data/repd
            .github
            uk_renewables_pipeline/202609082224

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Install dependencies
        run: python -m pip install --disable-pip-version-check 'pandas>=2,<3' 'openpyxl>=3.1,<4' 'pyproj>=3,<4' 'pyyaml>=6,<7'

      - name: Compare published REPD files with the known releases (by sha256)
        id: check
        shell: bash
        run: |
          set -uo pipefail
          args=(--out "$WORK/check" --repo-root .)
          [[ -n "$IN_FOLDER" ]] && args+=(--release-folder "$IN_FOLDER")
          python -m automation.repd.monthly "${args[@]}"
          code=$?
          cat "$WORK/check/summary.md" >> "$GITHUB_STEP_SUMMARY"
          exit $code

      - name: Build the new release (clean, validate, change report, datasets, hash guard)
        id: build
        if: steps.check.outputs.status == 'new'
        shell: bash
        env:
          RID: ${{ steps.check.outputs.release_id }}
          FOLDER: ${{ steps.check.outputs.release_folder }}
          CSV: ${{ steps.check.outputs.csv }}
          XLSX: ${{ steps.check.outputs.xlsx }}
        run: |
          set -uo pipefail
          [[ "$RID" =~ ^20[0-9]{2}q[1-4]$ && "$FOLDER" =~ ^20[0-9]{10}$ ]] || { echo "::error::bad id/folder"; exit 1; }
          python -m automation.repd.run --descriptor "automation/repd/releases/$RID.json" --label "$RID" \
            --release-folder "$FOLDER" --out "$WORK/out" --repo-root . --offline --csv "$CSV" --xlsx "$XLSX"
          code=$?
          overall=$(python -c "import json,sys;print(json.load(open(sys.argv[1]))['overall'])" "$WORK/out/run_report.json" 2>/dev/null || echo failed)
          echo "overall=$overall" >> "$GITHUB_OUTPUT"
          [[ -f "$WORK/out/run_report.md" ]] && cat "$WORK/out/run_report.md" >> "$GITHUB_STEP_SUMMARY"
          # The repository files the check step wrote (descriptors, waivers, allow-list lines) go in the PR too.
          git status --porcelain --untracked-files=all | sed 's/^...//' > "$WORK/repo_changes.txt"
          while IFS= read -r rel; do
            case "$rel" in
              automation/repd/releases/*.json|automation/repd/releases_v6/*.json|automation/repd/baselines/*_known_anomalies.json|.github/large-files-allowlist.txt) ;;
              *) echo "::error::unexpected change in the checkout: $rel"; exit 1 ;;
            esac
            mkdir -p "$WORK/repo/$(dirname "$rel")"; cp "$rel" "$WORK/repo/$rel"
          done < "$WORK/repo_changes.txt"
          exit $code

      - name: Upload the check, the build and the repository changes
        if: always() && steps.check.outputs.status == 'new'
        uses: actions/upload-artifact@v4
        with:
          name: repd-monthly-${{ github.run_number }}
          path: |
            /tmp/repd-monthly/check/result.json
            /tmp/repd-monthly/check/summary.md
            /tmp/repd-monthly/out/
            /tmp/repd-monthly/repo/
            /tmp/repd-monthly/repo_changes.txt
          retention-days: 90
          if-no-files-found: error

  open-pr:
    name: Push repd/<id>-monthly and open the pull request
    needs: check
    if: needs.check.outputs.status == 'new' && needs.check.outputs.overall == 'ok' && (github.event_name == 'schedule' || inputs.open_pr)
    runs-on: ubuntu-latest
    timeout-minutes: 20
    permissions:
      contents: write
      pull-requests: write
    env:
      RID: ${{ needs.check.outputs.release_id }}
      BRANCH: repd/${{ needs.check.outputs.release_id }}-monthly
      ART: /tmp/repd-monthly-artifact
      GH_TOKEN: ${{ github.token }}
    steps:
      - name: Validate branch name
        shell: bash
        run: |
          set -euo pipefail
          [[ "$BRANCH" =~ ^repd/20[0-9]{2}q[1-4]-monthly$ ]] || { echo "::error::bad branch $BRANCH"; exit 1; }

      - name: Checkout main (blobless, only .github and automation materialised)
        uses: actions/checkout@v4
        with:
          ref: main
          fetch-depth: 1
          filter: blob:none
          sparse-checkout: |
            .github
            automation

      - name: Download this run's build
        uses: actions/download-artifact@v4
        with:
          name: repd-monthly-${{ github.run_number }}
          path: ${{ env.ART }}

      - name: Stop green if the branch already exists (pull request already open from an earlier month)
        id: exists
        shell: bash
        run: |
          if git ls-remote --exit-code --heads origin "$BRANCH" >/dev/null; then
            echo "exists=true" >> "$GITHUB_OUTPUT"
            echo "Branch $BRANCH already exists: the $RID pull request is waiting for review. Nothing pushed." >> "$GITHUB_STEP_SUMMARY"
          fi

      - name: Commit the new files on repd/<id>-monthly and push that branch (never main)
        if: steps.exists.outputs.exists != 'true'
        shell: bash
        run: |
          set -euo pipefail
          git config user.name 'github-actions[bot]'
          git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
          main_sha="$(git rev-parse HEAD)"
          git switch -c "$BRANCH"
          for tree in "$ART/out/pr" "$ART/repo"; do
            (cd "$tree" && find . -type f -print0) | while IFS= read -r -d '' f; do
              rel="${f#./}"; mkdir -p "$(dirname "$rel")"; cp "$tree/$rel" "$rel"; git add --sparse -f -- "$rel"
            done
          done
          # Additions only, except the size-guard allow-list, which gains lines for this release.
          bad="$(git diff --cached --name-status --no-renames "$main_sha" | grep -v '^A' | grep -v $'^M\t.github/large-files-allowlist.txt$' || true)"
          if [[ -n "$bad" ]]; then echo "::error::changes other than additions:"; echo "$bad"; exit 1; fi
          git diff --cached --quiet && { echo "::error::nothing to commit"; exit 1; }
          git commit -q -m "repd($RID): monthly update from run ${GITHUB_RUN_ID} (new files only)"
          case "$(git rev-parse --abbrev-ref HEAD)" in main|master|gh-pages) exit 1;; esac
          git push origin "HEAD:refs/heads/$BRANCH"

      - name: Open the pull request with the change report
        if: steps.exists.outputs.exists != 'true'
        shell: bash
        run: |
          set -euo pipefail
          body="$RUNNER_TEMP/body.md"
          {
            cat "$ART/check/summary.md"
            echo
            echo "Opened by .github/workflows/repd-monthly.yml, run $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID." \
              "New files only, plus allow-list lines for this release's files over 5 MB. The owner reviews and merges;" \
              "merging the new uk_renewables_pipeline/<stamp>/ folder deploys it. A pull request opened by GITHUB_TOKEN" \
              "does not trigger pull_request workflows: run.py applied the 5 MB rule before the push."
            echo
            head -c 45000 "$ART/out/pr/docs/repd/releases/$RID/changelog_$RID.md" 2>/dev/null || echo "(no change report)"
            printf '\n\n---\n\n'
            head -c 12000 "$ART/out/run_report.md"
          } > "$body"
          title="REPD $RID monthly update: $(python3 -c "import json,sys;print(json.load(open(sys.argv[1]))['published']['label'])" "$ART/check/result.json")"
          gh pr create --base main --head "$BRANCH" --title "$title" --body-file "$body"

GlobalGrid2050 Renewable Energy Planning Database (REPD) Native V975 Workflow

A GitHub Actions workflow. Runs on push, on pull requests and by hand.

automationglobalgrid2050 / .github/workflows/repd-native-v975.yml · lines 1–92 of 92 · Entry point

What it does
It runs the REPD register. Side effects: makes network requests; starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register.
Inputs & outputs
Out: commits pushed to the repository.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “PipelineNews V9.75 native REPD Python + browser acceptance”; runs Build V975 (`automation/repd_reporting/v3/build_v975.py`), Verify V975 (`automation/repd_reporting/v3/verify_v975.py`) and `tests/v975-native-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
Build V975 (workflow run), Verify V975 (workflow run), Operator Aliases (workflow run), Renewable Energy Planning Database (REPD) Reports (workflow run), Projects V9 8 (workflow run), Renewable Energy Planning Database (REPD) Reports Model (workflow run), Renewable Energy Planning Database (REPD) Scan (workflow run), Operator Aliases Test (workflow run), and 2 more
Used by
none found
Produces
none declared
Defines here
PipelineNews V9.75 native REPD Python + browser acceptance
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/repd-native-v975.yml:1-92 · blob d339ecb036bd4c3c5baebce590540fbc596248ab · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: network, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: PipelineNews V9.75 native REPD Python + browser acceptance
on:
  push:
    branches:
      - agent/repd-native-filters-v975-20261123
    paths:
      - 'automation/repd_reporting/v3/**'
      - '.github/workflows/repd-native-v975.yml'
      - 'uk_renewables_pipeline/202611231600/**'
  pull_request:
    paths:
      - 'automation/repd_reporting/v3/**'
      - '.github/workflows/repd-native-v975.yml'
      - 'uk_renewables_pipeline/202611231600/**'
  workflow_dispatch:
permissions:
  contents: write
jobs:
  python-and-browser:
    runs-on: ubuntu-24.04
    container:
      image: mcr.microsoft.com/playwright:v1.62.1-noble
    timeout-minutes: 45
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: actions/setup-node@v4
        with:
          node-version: '22'
      - name: Python deterministic successor patcher
        run: python3 automation/repd_reporting/v3/build_v975.py
      - name: Python full-tree source integrity, colour and map protection
        run: python3 automation/repd_reporting/v3/verify_v975.py
      - name: JS source syntax and operator alias reporting reconciliation
        run: |
          node --check automation/repd_reporting/v3/operator-aliases.mjs
          node --check uk_renewables_pipeline/202611231600/repd-reports.mjs
          node --check uk_renewables_pipeline/202611231600/scripts/plugins/projects-v9-8.js
          node --check uk_renewables_pipeline/202611231600/repd-reports-model.mjs
          node --check uk_renewables_pipeline/202611231600/repd-scan.mjs
          node --test automation/repd_reporting/v3/operator-aliases.test.mjs
          node --test automation/repd_reporting/v3/real_v975.test.mjs
          cd uk_renewables_pipeline/202611231400
          node --test tests/v973-repd-reports.mjs
      - name: Install original pinned Chromium/WebKit test dependencies
        working-directory: uk_renewables_pipeline/202611231600
        run: |
          npm ci
          npx playwright install chromium webkit
      - name: Start full original site, no fixture replacement
        run: |
          python3 -m http.server 8765 --bind 127.0.0.1 >/tmp/pn-v975-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/202611231600/; then exit 0; fi
            sleep 1
          done
          cat /tmp/pn-v975-http.log
          exit 1
      - name: 'Six native user-interface test matrices - 2 browsers x 3 viewports'
        working-directory: uk_renewables_pipeline/202611231600
        run: node tests/v975-native-browser.mjs
      - name: Previous MAP A4 PDF VICINITY and expanded-view regression
        working-directory: uk_renewables_pipeline/202611231600
        run: |
          sed 's#202611222222#202611231600#g' tests/v972-vicinity-a4-pdf.mjs > tests/.v975-vicinity-a4-pdf.mjs
          node tests/.v975-vicinity-a4-pdf.mjs
          rm tests/.v975-vicinity-a4-pdf.mjs
          sed 's#202611221930#202611231600#g' tests/repd-expanded.mjs > tests/.v975-expanded.mjs
          node tests/.v975-expanded.mjs
          rm tests/.v975-expanded.mjs
          sed 's#202611221930#202611231600#g' tests/map-navigation-v970.mjs > tests/.v975-map-navigation.mjs
          node tests/.v975-map-navigation.mjs
          rm tests/.v975-map-navigation.mjs
      - name: Clean ephemeral browser dependencies and verify no truncation again
        run: |
          rm -rf uk_renewables_pipeline/202611231600/node_modules
          python3 automation/repd_reporting/v3/verify_v975.py
      - name: Commit fully-tested immutable successor to isolated branch ONLY
        if: github.event_name == 'push' && github.ref == 'refs/heads/agent/repd-native-filters-v975-20261123'
        run: |
          branch='agent/repd-native-filters-v975-20261123'
          git config --global --add safe.directory "$GITHUB_WORKSPACE"
          git fetch origin "$branch"
          test "$(git rev-parse FETCH_HEAD)" = "$GITHUB_SHA" || { echo 'Branch moved: refuse stale commit'; exit 1; }
          git config user.name 'github-actions[bot]'
          git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
          git add uk_renewables_pipeline/202611231600/
          if git diff --cached --quiet; then echo 'Already committed and clean'; exit 0; fi
          git diff --cached --name-only | grep -v '^uk_renewables_pipeline/202611231600/' && { echo 'Unsafe staged files'; exit 1; } || true
          git commit -m 'V9.75 candidate: native REPD filters, Python-verified full source preservation'
          git push origin HEAD:"refs/heads/$branch"

GlobalGrid2050 Renewable Energy Planning Database (REPD) Publication Baseline Probe Workflow

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

automationglobalgrid2050 / .github/workflows/repd-publication-baseline-probe.yml · lines 1–46 of 46 · Entry point

What it does
It runs the REPD register. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “REPD official publication and baseline browser evidence (NO DEPLOY)”; runs GlobalGrid2050 Renewable Energy Planning Database (REPD) Publication Baseline Probe (`scripts/repd_publication_baseline_probe.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 Renewable Energy Planning Database (REPD) Publication Baseline Probe (workflow run)
Used by
none found
Produces
none declared
Defines here
REPD official publication and baseline browser evidence (NO DEPLOY)
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/repd-publication-baseline-probe.yml:1-46 · blob 9dfd35c9692d0e9acf2ec483f4755bfca94fc12c · 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: REPD official publication and baseline browser evidence (NO DEPLOY)

on:
  push:
    branches:
      - repd/2026-10-ingestion-20261113
    paths:
      - scripts/repd_publication_baseline_probe.py
      - .github/workflows/repd-publication-baseline-probe.yml
  workflow_dispatch:

permissions:
  contents: read

concurrency:
  group: repd-baseline-readonly-${{ github.ref }}
  cancel-in-progress: false

jobs:
  official-publication-and-browser-observation:
    name: Read-only source HEAD, Q2 archive and current live-site observations
    runs-on: ubuntu-24.04
    timeout-minutes: 25
    env:
      REPD_PROBE_OUT: ${{ github.workspace }}/.repd-probe/2026-11-13
    steps:
      - name: Checkout the candidate branch only (no deployment token)
        uses: actions/checkout@v4
      - name: Python 3.11
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'
      - name: Install headless browser for diagnostic observations
        run: |
          python -m pip install 'playwright==1.56.0'
          python -m playwright install chromium
      - name: Probe official publication, original Q2 URLs, archives and public live pages
        run: python scripts/repd_publication_baseline_probe.py
      - name: Archive raw HEAD responses, source hashes, browser text and screenshots
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: repd-q3-baseline-diagnostic-${{ github.run_number }}
          path: .repd-probe/2026-11-13/
          retention-days: 90
          if-no-files-found: warn

GlobalGrid2050 Renewable Energy Planning Database (REPD) Q2 Original Evidence Workflow

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

automationglobalgrid2050 / .github/workflows/repd-q2-original-evidence.yml · lines 1–118 of 118 · Entry point

What it does
It builds and publishes the REPD register. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register.
Inputs & outputs
In: JSON file Q2_TO_Q3_VERIFIED_DELTA.json; CSV file verified-archived-original-Q2.csv; CSV file REPD_Publication_Q2_2026.csv; Excel file verified-archived-original-Q2.xlsx; Excel file REPD_Publication_Q2_2026.xlsx. 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 “REPD July 2026 original archive recovery (evidence only)”; runs GlobalGrid2050 Renewable Energy Planning Database (REPD) Q2 Q3 Verified Delta (`scripts/repd_q2_q3_verified_delta.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 Renewable Energy Planning Database (REPD) Q2 Q3 Verified Delta (workflow run)
Used by
none found
Produces
none declared
Defines here
REPD July 2026 original archive recovery (evidence only)
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/repd-q2-original-evidence.yml:1-118 · blob 48e2172fc8199db312457bac0d72cb75fa72a440 · 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: REPD July 2026 original archive recovery (evidence only)

on:
  push:
    branches:
      - repd/2026-10-ingestion-20261113
    paths:
      - scripts/repd_q2_q3_verified_delta.py
      - .github/workflows/repd-q2-original-evidence.yml
  workflow_dispatch:

permissions:
  contents: write
  actions: read

concurrency:
  group: repd-original-q2-verified-evidence
  cancel-in-progress: false

jobs:
  preserve-original-july-evidence:
    name: Verify both July originals and publish non-production immutable Q2 evidence
    runs-on: ubuntu-24.04
    timeout-minutes: 20
    env:
      EVIDENCE_BRANCH: repd/2026-07-verified-archive-20261113
    steps:
      - name: Checkout candidate source scripts (never live data)
        uses: actions/checkout@v4
        with:
          persist-credentials: true
      - name: Python 3.11
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'
      - name: Retrieve verified archived originals from prior read-only probe
        uses: actions/download-artifact@v4
        with:
          name: repd-q3-baseline-diagnostic-4
          run-id: 43528242258
          repository: Ventusltd/globalgrid2050
          github-token: ${{ secrets.GITHUB_TOKEN }}
          path: .repd-recovered-original
      - name: Retrieve corrected Q3 source bytes from prior successful ingestion
        uses: actions/download-artifact@v4
        with:
          name: repd-october-2026-staging-37
          run-id: 43521949338
          repository: Ventusltd/globalgrid2050
          github-token: ${{ secrets.GITHUB_TOKEN }}
          path: .repd-q3-verified
      - name: Fail closed on all four exact source SHA256 values, row counts and identity delta
        shell: bash
        run: |
          set -euo pipefail
          python scripts/repd_q2_q3_verified_delta.py \
            --q2-csv .repd-recovered-original/verified-archived-original-Q2.csv \
            --q2-xlsx .repd-recovered-original/verified-archived-original-Q2.xlsx \
            --q3-csv .repd-q3-verified/official-sources/REPD_Publication_Q3_2026.csv \
            --q3-xlsx .repd-q3-verified/official-sources/REPD_Publication_Q3_2026.xlsx \
            --out .repd-recovered-original/Q2_TO_Q3_VERIFIED_DELTA.json
      - name: Publish original bytes on NEW evidence-only branch; refuse silent overwrite
        shell: bash
        run: |
          set -euo pipefail
          src='.repd-recovered-original'
          dest='evidence/repd-2026-q2-original'
          if git ls-remote --exit-code --heads origin "$EVIDENCE_BRANCH"; then
            echo "Existing Q2 evidence branch found; verifying original hashes, never overwriting."
            git fetch origin "$EVIDENCE_BRANCH"
            for spec in \
              'REPD_Publication_Q2_2026.csv 84c1b5f958a934d8b4b86ec88f50bdcf43830ded7ff2efc27bffca0c98695035' \
              'REPD_Publication_Q2_2026.xlsx 624a0a9712c58a7a93716e51f2bf054eec8b1af7170f6f9516cc10cd248e2657'; do
              read -r file expected <<< "$spec"
              actual="$(git show "FETCH_HEAD:$dest/official-sources/$file" | sha256sum | cut -d' ' -f1)"
              test "$actual" = "$expected"
            done
            git show "FETCH_HEAD:$dest/Q2_TO_Q3_VERIFIED_DELTA.json" >/dev/null
            echo 'Verified existing original-Q2 evidence branch; no overwrite.'
            exit 0
          fi
          mkdir -p "$dest/official-sources"
          printf '* -text\n' > "$dest/.gitattributes"
          cp "$src/verified-archived-original-Q2.csv" "$dest/official-sources/REPD_Publication_Q2_2026.csv"
          cp "$src/verified-archived-original-Q2.xlsx" "$dest/official-sources/REPD_Publication_Q2_2026.xlsx"
          cp "$src/Q2_TO_Q3_VERIFIED_DELTA.json" "$dest/"
          cat > "$dest/SOURCES.txt" <<'EOF'
          REPD July 2026 Q2 ORIGINALS recovered 13 November 2026 from UK Government Web Archive / MirrorWeb.
          Publication page archived 2 November 2026: https://tnaqa.mirrorweb.com/ukgwa/20261102130314oe_/https%3A/www.gov.uk/government/publications/renewable-energy-planning-database-quarterly-extract
          Original CSV archive capture 3 November 2026: https://tnaqa.mirrorweb.com/ukgwa/20261103070426oe_/https://assets.publishing.service.gov.uk/media/6a6cbdc00c36759b5ccaa305/REPD_Publication_Q2_2026.csv
          Original XLSX archive capture 3 November 2026: https://tnaqa.mirrorweb.com/ukgwa/20261103065723oe_/https://assets.publishing.service.gov.uk/media/6a6cbdd2862aaf18d9c62b02/REPD_Publication_Q2_2026.xlsx
          Exact July CSV SHA256: 84c1b5f958a934d8b4b86ec88f50bdcf43830ded7ff2efc27bffca0c98695035 (5087389 bytes).
          Exact July XLSX SHA256: 624a0a9712c58a7a93716e51f2bf054eec8b1af7170f6f9516cc10cd248e2657 (5185558 bytes).
          14657 original July rows, 14657 unique refs, 53 columns.
          October Q3 source independently verified on separate branch repd/2026-10-reviewed-evidence-e4dc349caf29.
          Full raw Q2-to-Q3 comparison report Q2_TO_Q3_VERIFIED_DELTA.json.
          Original government bytes copied without changes; not a website release or deployment.
          EOF
          (cd "$dest/official-sources" && sha256sum REPD_Publication_Q2_2026.csv REPD_Publication_Q2_2026.xlsx) > "$dest/SHA256SUMS"
          grep -q '^84c1b5f958a934d8b4b86ec88f50bdcf43830ded7ff2efc27bffca0c98695035 ' "$dest/SHA256SUMS"
          grep -q '^624a0a9712c58a7a93716e51f2bf054eec8b1af7170f6f9516cc10cd248e2657 ' "$dest/SHA256SUMS"
          git config user.name 'github-actions[bot]'
          git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
          git switch -c "$EVIDENCE_BRANCH"
          git add -f "$dest"
          git diff --cached --check -- "$dest/SOURCES.txt" "$dest/Q2_TO_Q3_VERIFIED_DELTA.json" "$dest/SHA256SUMS"
          git commit -m 'evidence(repd): recover exact July Q2 originals and verify Q2 to October Q3 delta'
          git push origin "HEAD:refs/heads/$EVIDENCE_BRANCH"
      - name: Archive recovery and comparison report as Actions evidence
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: repd-verified-original-q2-recovery-${{ github.run_number }}
          path: |
            .repd-recovered-original/Q2_TO_Q3_VERIFIED_DELTA.json
            .repd-recovered-original/REPORT.json
          retention-days: 90
          if-no-files-found: warn

GlobalGrid2050 Renewable Energy Planning Database (REPD) Q3 Evidence Branch Workflow

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

automationglobalgrid2050 / .github/workflows/repd-q3-evidence-branch.yml · lines 1–75 of 75 · Entry point

What it does
It builds and publishes the REPD register. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register.
Inputs & outputs
In: CSV file REPD_Publication_Q3_2026.csv; Excel file REPD_Publication_Q3_2026.xlsx; CSV file Q3_CANONICAL_STAGED.csv; JSON file Q3_RECONCILIATION.json; JSON file Q2_BASELINE_SHA256_AUDIT.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 “REPD Q3 independent evidence transfer (non-production)”; runs GlobalGrid2050 Renewable Energy Planning Database (REPD) Q3 2026 Ingest (`scripts/repd_q3_2026_ingest.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 Renewable Energy Planning Database (REPD) Q3 2026 Ingest (workflow run)
Used by
none found
Produces
none declared
Defines here
REPD Q3 independent evidence transfer (non-production)
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/repd-q3-evidence-branch.yml:1-75 · blob 316f026337479d06f1edf0c56fdbf4c6e28a2c6c · 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: REPD Q3 independent evidence transfer (non-production)

on:
  push:
    branches: ['repd/2026-10-ingestion-20261113']
    paths: ['.github/workflows/repd-q3-evidence-branch.yml']

permissions:
  contents: write

concurrency:
  group: repd-q3-evidence-transfer
  cancel-in-progress: false

jobs:
  make-read-only-evidence-branch:
    runs-on: ubuntu-latest
    timeout-minutes: 25
    env:
      REPD_Q3_OUTPUT: ${{ github.workspace }}/.repd-staging/2026-10
      EVIDENCE_BRANCH: repd/2026-10-raw-evidence-20261113
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 1
          persist-credentials: true
      - uses: actions/setup-python@v5
        with:
          python-version: '3.11'
      - name: Install offline processing dependencies
        run: python -m pip install 'pandas>=2,<3' 'openpyxl>=3.1,<4'
      - name: Download source and build fail-closed October candidate
        run: python scripts/repd_q3_2026_ingest.py
      - name: Make independently verifiable evidence branch
        shell: bash
        run: |
          set -euo pipefail
          if git ls-remote --exit-code --heads origin "$EVIDENCE_BRANCH"; then
            echo "::error::Evidence branch already exists. Refusing overwrite."
            exit 1
          fi
          src="$REPD_Q3_OUTPUT"
          target="evidence/repd-2026-q3"
          mkdir -p "$target/official-sources"
          printf '* -text\n' > "$target/.gitattributes"
          cp "$src/official-sources/REPD_Publication_Q3_2026.csv" "$target/official-sources/"
          cp "$src/official-sources/REPD_Publication_Q3_2026.xlsx" "$target/official-sources/"
          cp "$src/Q3_CANONICAL_STAGED.csv" "$target/"
          cp "$src/Q3_RECONCILIATION.json" "$target/"
          cp "$src/INGESTION-LOG.txt" "$target/"
          cp "$src/Q2_BASELINE_SHA256_AUDIT.json" "$target/"
          echo '48e76c49f33a1090e78108d1ea9bfe689b35963ea3be1bb4f6516d038a5ff862  evidence/repd-2026-q3/official-sources/REPD_Publication_Q3_2026.csv' > "$target/SHA256SUMS"
          echo '87811e249395a05b223db6855952334f425e66cc9a2106caea0e38fd9e5037ea  evidence/repd-2026-q3/official-sources/REPD_Publication_Q3_2026.xlsx' >> "$target/SHA256SUMS"
          sha256sum --check "$target/SHA256SUMS"
          cat > "$target/SOURCES.txt" <<EOF
          DESNZ October 2026 REPD (Q3), publication updated 2026-11-13
          Official page: https://www.gov.uk/government/publications/renewable-energy-planning-database-quarterly-extract
          Official Q3 CSV: https://assets.publishing.service.gov.uk/media/6af42ff0a4004bdbe54e54a5/REPD_Publication_Q3_2026.csv
          Official Q3 Excel: https://assets.publishing.service.gov.uk/media/6af42ffdb83b3cae0d0a21c9/REPD_Publication_Q3_2026.xlsx
          Retrieved: $(date -u +%FT%TZ)
          Source candidate commit: ${{ github.sha }}
          The two official raw files are unmodified. Q3 canonical candidate is derived:
          14968 official rows, 14967 unique Ref IDs, one byte-equivalent duplicate Ref 7679,
          five official date discrepancies quarantined. See JSON audit.
          July 2026 Q2 official originals are NOT in this branch. Historic July-labelled
          URLs currently return the same files as Q3. Do not claim a Q2->Q3 delta.
          This evidence-only branch is NOT a public/live application release.
          EOF
          git config user.name 'github-actions[bot]'
          git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
          git checkout -b "$EVIDENCE_BRANCH"
          git add "$target"
          git diff --cached --check
          git commit -m "evidence(repd): preserve exact Q3 CSV and Excel for independent Agent F source QA"
          git push origin "HEAD:refs/heads/$EVIDENCE_BRANCH"