GLOBALGRID2050 / EXPLORE CODE

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

GlobalGrid2050 Gridbot Generation MWh Interconnector Split V6 Workflow and 6 more files

A GitHub Actions workflow. Runs by hand.

648 lines of YAML from globalgrid2050, in 7 files. Topic: Automation and CI. Section 1718 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 Gridbot Generation Interconnector Split V2 Workflow automation · globalgrid2050 / .github/workflows/gridbot_generation_interconnector_split_v2.yml lines 1–92
  2. GlobalGrid2050 Gridbot Generation MWh Active V6 Source Audit Workflow automation · globalgrid2050 / .github/workflows/gridbot_generation_mwh_active_v6_source_audit.yml lines 1–80
  3. GlobalGrid2050 Gridbot Generation MWh Interconnector Split V6 Workflow automation · globalgrid2050 / .github/workflows/gridbot_generation_mwh_interconnector_split_v6.yml lines 1–105
  4. GlobalGrid2050 Gridbot Generation MWh Interconnector UI Guard Workflow automation · globalgrid2050 / .github/workflows/gridbot_generation_mwh_interconnector_ui_guard.yml lines 1–91
  5. GlobalGrid2050 Gridbot Interconnector Bar UI Match Workflow automation · globalgrid2050 / .github/workflows/gridbot_interconnector_bar_ui_match.yml lines 1–93
  6. GlobalGrid2050 Gridbot Interconnector Mobile UI Repair Workflow automation · globalgrid2050 / .github/workflows/gridbot_interconnector_mobile_ui_repair.yml lines 1–92
  7. GlobalGrid2050 Gridbot London Solar Daylight Geometry Workflow automation · globalgrid2050 / .github/workflows/gridbot_london_solar_daylight_geometry.yml lines 1–95

GlobalGrid2050 Gridbot Generation Interconnector Split V2 Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/gridbot_generation_interconnector_split_v2.yml · lines 1–92 of 92 · Entry point

What it does
It runs interconnectors. 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: interconnectors.
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 Gridbot Generation Interconnector Split (`scripts/gridbot_generation_interconnector_split.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 Gridbot Generation Interconnector Split (workflow run)
Used by
none found
Produces
none declared
Defines here
GridBot Generation Interconnector Split V2
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/gridbot_generation_interconnector_split_v2.yml:1-92 · blob 75c6116e9a700691b6a7f36038c1060bd937214d · 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: GridBot Generation Interconnector Split V2

on:
  workflow_dispatch:
    inputs:
      mode:
        description: Run mode
        required: true
        default: audit
        type: choice
        options: [audit, apply]
      start_year:
        description: First year to fetch from Elexon FUELHH
        required: true
        default: '2016'
      end_year:
        description: Last year to fetch, or auto
        required: true
        default: auto
      offline:
        description: Patch-only audit without Elexon fetch
        required: true
        default: 'false'
        type: choice
        options: ['false', 'true']
      commit_reports:
        description: Commit reports and apply outputs
        required: true
        default: 'true'
        type: choice
        options: ['true', 'false']
permissions:
  contents: write

concurrency:
  group: gridbot-generation-interconnector-split
  cancel-in-progress: false

jobs:
  split:
    runs-on: ubuntu-latest
    timeout-minutes: 360
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
          token: ${{ secrets.GRIDBOT_PAT }}

      - run: git pull --ff-only origin main

      - name: Run GridBot script
        run: |
          EXTRA=""
          if [ "${{ github.event.inputs.offline }}" = "true" ]; then EXTRA="--offline"; fi
          APPLY=""
          if [ "${{ github.event.inputs.mode }}" = "apply" ]; then APPLY="--apply"; fi
          python scripts/gridbot_generation_interconnector_split.py \
            --start-year "${{ github.event.inputs.start_year }}" \
            --end-year "${{ github.event.inputs.end_year }}" \
            $APPLY $EXTRA

      - uses: actions/upload-artifact@v4
        if: always()
        with:
          name: generation-interconnector-split-v2-${{ github.event.inputs.mode }}
          path: |
            data_science_protocol/audit_reports/GENERATION_INTERCONNECTOR_SPLIT_LATEST.md
            data_science_protocol/audit_reports/json/json/GENERATION_INTERCONNECTOR_SPLIT_LATEST.json

      - name: Commit outputs
        if: ${{ github.event.inputs.commit_reports == 'true' }}
        run: |
          git config user.name "Gridbot"
          git config user.email "gridbot@users.noreply.github.com"
          git add scripts/gridbot_generation_interconnector_split.py
          git add .github/workflows/gridbot_generation_interconnector_split_v2.yml
          git add data_science_protocol/audit_reports/GENERATION_INTERCONNECTOR_SPLIT_LATEST.md || true
          git add data_science_protocol/audit_reports/json/json/GENERATION_INTERCONNECTOR_SPLIT_LATEST.json || true
          if [ "${{ github.event.inputs.mode }}" = "apply" ]; then
            git add uk_energy_tracking_v6/generation_history/index.md
            git add uk_energy_tracking_v6/generation_history/load_generation_mwh_aggregates.js
            git add uk_energy_tracking_v6/generation_history/render_generation_mwh_aggregates.js
            git add uk_energy_tracking_v6/generation_history/control_generation_mwh_aggregates.js
            git add uk_energy_tracking_v6/generation_history/generation_interconnector_annual_mwh_by_link.json
            git add uk_energy_tracking_v6/generation_history/generation_interconnector_monthly_mwh_by_link.json
          fi
          if git diff --cached --quiet; then
            echo "No changes to commit."
          else
            git commit -m "gridbot: generation interconnector split ${{ github.event.inputs.mode }}"
            git push origin HEAD:main
          fi

GlobalGrid2050 Gridbot Generation MWh Active V6 Source Audit Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/gridbot_generation_mwh_active_v6_source_audit.yml · lines 1–80 of 80 · 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 Gridbot Generation MWh Active V6 Source Audit (`scripts/gridbot_generation_mwh_active_v6_source_audit.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 Gridbot Generation MWh Active V6 Source Audit (workflow run)
Used by
none found
Produces
none declared
Defines here
GridBot Generation MWh Active V6 Source Audit
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/gridbot_generation_mwh_active_v6_source_audit.yml:1-80 · blob cd4202d905b846ffd5198187cf9765e2d49c7ae8 · 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: GridBot Generation MWh Active V6 Source Audit

on:
  workflow_dispatch:
    inputs:
      mode:
        description: Run mode
        required: true
        default: audit
        type: choice
        options:
          - audit
      commit_reports:
        description: Commit audit reports
        required: true
        default: 'true'
        type: choice
        options:
          - 'true'
          - 'false'
permissions:
  contents: write

concurrency:
  group: gridbot-generation-mwh-active-v6-source-audit
  cancel-in-progress: false

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: Sync latest main
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          set -euo pipefail
          git pull --ff-only https://${PAT}@github.com/${{ github.repository }}.git main

      - name: Run active V6 MWh source audit
        run: python scripts/gridbot_generation_mwh_active_v6_source_audit.py --mode ${{ github.event.inputs.mode }}

      - name: Upload audit reports
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: generation-mwh-active-v6-source-audit-${{ github.event.inputs.mode }}
          path: |
            data_science_protocol/audit_reports/GENERATION_MWH_ACTIVE_V6_SOURCE_AUDIT_LATEST.md
            data_science_protocol/audit_reports/json/GENERATION_MWH_ACTIVE_V6_SOURCE_AUDIT_LATEST.json

      - name: Commit audit reports
        if: ${{ github.event.inputs.commit_reports == 'true' }}
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          set -euo pipefail
          git config user.name "Gridbot"
          git config user.email "gridbot@globalgrid2050.com"
          git add scripts/gridbot_generation_mwh_active_v6_source_audit.py
          git add .github/workflows/gridbot_generation_mwh_active_v6_source_audit.yml
          git add data_science_protocol/audit_reports/GENERATION_MWH_ACTIVE_V6_SOURCE_AUDIT_LATEST.md
          git add data_science_protocol/audit_reports/json/GENERATION_MWH_ACTIVE_V6_SOURCE_AUDIT_LATEST.json
          if git diff --cached --quiet; then
            echo "No audit report changes to commit."
          else
            git commit -m "gridbot: generation mwh active v6 source audit"
            git pull --rebase https://${PAT}@github.com/${{ github.repository }}.git main
            git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
          fi

GlobalGrid2050 Gridbot Generation MWh Interconnector Split V6 Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/gridbot_generation_mwh_interconnector_split_v6.yml · lines 1–105 of 105 · Entry point

What it does
It runs interconnectors. 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: interconnectors.
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 Gridbot Generation MWh Interconnector Split V6 (`scripts/gridbot_generation_mwh_interconnector_split_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 Gridbot Generation MWh Interconnector Split V6 (workflow run)
Used by
none found
Produces
none declared
Defines here
GridBot Generation MWh Interconnector Split 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/gridbot_generation_mwh_interconnector_split_v6.yml:1-105 · blob 1bae63298bed3e169377a47ce65e0423762ae8f6 · 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: GridBot Generation MWh Interconnector Split V6

on:
  workflow_dispatch:
    inputs:
      mode:
        description: Run mode
        required: true
        default: audit
        type: choice
        options:
          - audit
          - apply
      max_output_mb:
        description: Maximum generated interconnector JSON size in MB
        required: true
        default: '25'
      commit_reports:
        description: Commit reports and audited outputs
        required: true
        default: 'true'
        type: choice
        options:
          - 'true'
          - 'false'
permissions:
  contents: write

concurrency:
  group: gridbot-generation-mwh-interconnector-split-v6
  cancel-in-progress: false

jobs:
  generation-mwh-interconnector-split-v6:
    runs-on: ubuntu-latest
    timeout-minutes: 30

    steps:
      - name: Checkout repository using GridBot PAT
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Sync latest main before processing
        run: git pull --ff-only origin main

      - name: Run audit
        if: ${{ github.event.inputs.mode == 'audit' }}
        run: |
          python scripts/gridbot_generation_mwh_interconnector_split_v6.py \
            --max-output-mb "${{ github.event.inputs.max_output_mb }}"

      - name: Run apply
        if: ${{ github.event.inputs.mode == 'apply' }}
        run: |
          python scripts/gridbot_generation_mwh_interconnector_split_v6.py \
            --max-output-mb "${{ github.event.inputs.max_output_mb }}" \
            --apply

      - name: Upload interconnector split report
        uses: actions/upload-artifact@v4
        if: always()
        with:
          name: generation-mwh-interconnector-split-v6-${{ github.event.inputs.mode }}
          path: |
            data_science_protocol/audit_reports/GENERATION_MWH_INTERCONNECTOR_SPLIT_V6_LATEST.md
            data_science_protocol/audit_reports/json/GENERATION_MWH_INTERCONNECTOR_SPLIT_V6_LATEST.json

      - name: Commit audit report only
        if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'audit' }}
        run: |
          git config user.name "Gridbot"
          git config user.email "gridbot@users.noreply.github.com"
          git add scripts/gridbot_generation_mwh_interconnector_split_v6.py
          git add .github/workflows/gridbot_generation_mwh_interconnector_split_v6.yml
          git add data_science_protocol/audit_reports/GENERATION_MWH_INTERCONNECTOR_SPLIT_V6_LATEST.md
          git add data_science_protocol/audit_reports/json/GENERATION_MWH_INTERCONNECTOR_SPLIT_V6_LATEST.json
          if git diff --cached --quiet; then
            echo "No changes to commit."
          else
            git commit -m "gridbot: generation mwh interconnector split v6 audit"
            git push origin HEAD:main
          fi

      - name: Commit audited UI/data output and report
        if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'apply' }}
        run: |
          git config user.name "Gridbot"
          git config user.email "gridbot@users.noreply.github.com"
          git add scripts/gridbot_generation_mwh_interconnector_split_v6.py
          git add .github/workflows/gridbot_generation_mwh_interconnector_split_v6.yml
          git add uk_energy_tracking_v6/generation_history/index.md
          git add uk_energy_tracking_v6/generation_history/load_generation_mwh_aggregates.js
          git add uk_energy_tracking_v6/generation_history/render_generation_mwh_aggregates.js
          git add uk_energy_tracking_v6/generation_history/control_generation_mwh_aggregates.js
          git add uk_energy_tracking_v6/generation_history/generation_interconnector_annual_mwh_by_link_direction.json
          git add data_science_protocol/audit_reports/GENERATION_MWH_INTERCONNECTOR_SPLIT_V6_LATEST.md
          git add data_science_protocol/audit_reports/json/GENERATION_MWH_INTERCONNECTOR_SPLIT_V6_LATEST.json
          if git diff --cached --quiet; then
            echo "No changes to commit."
          else
            git commit -m "gridbot: generation mwh interconnector split v6 apply"
            git push origin HEAD:main
          fi

GlobalGrid2050 Gridbot Generation MWh Interconnector UI Guard Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/gridbot_generation_mwh_interconnector_ui_guard.yml · lines 1–91 of 91 · Entry point

What it does
It runs interconnectors. 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: interconnectors.
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 Gridbot Generation MWh Interconnector UI Guard (`scripts/gridbot_generation_mwh_interconnector_ui_guard.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 Gridbot Generation MWh Interconnector UI Guard (workflow run)
Used by
none found
Produces
none declared
Defines here
GridBot Generation MWh Interconnector UI 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/gridbot_generation_mwh_interconnector_ui_guard.yml:1-91 · blob c85f53903efbcd10ae56940208452b7e5b8b7f49 · 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: GridBot Generation MWh Interconnector UI Guard

on:
  workflow_dispatch:
    inputs:
      mode:
        description: Run mode
        required: true
        default: audit
        type: choice
        options:
          - audit
          - apply
      commit_reports:
        description: Commit reports and UI guard changes
        required: true
        default: 'true'
        type: choice
        options:
          - 'true'
          - 'false'
permissions:
  contents: write

concurrency:
  group: gridbot-generation-mwh-interconnector-ui-guard
  cancel-in-progress: false

jobs:
  generation-mwh-interconnector-ui-guard:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Sync latest main before processing
        run: git pull --ff-only origin main

      - name: Run audit
        if: ${{ github.event.inputs.mode == 'audit' }}
        run: python scripts/gridbot_generation_mwh_interconnector_ui_guard.py

      - name: Run apply
        if: ${{ github.event.inputs.mode == 'apply' }}
        run: python scripts/gridbot_generation_mwh_interconnector_ui_guard.py --apply

      - name: Upload UI guard report
        uses: actions/upload-artifact@v4
        with:
          name: generation-mwh-interconnector-ui-guard-${{ github.event.inputs.mode }}
          path: |
            data_science_protocol/audit_reports/GENERATION_MWH_INTERCONNECTOR_UI_GUARD_LATEST.md
            data_science_protocol/audit_reports/json/GENERATION_MWH_INTERCONNECTOR_UI_GUARD_LATEST.json

      - name: Commit audit report only
        if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'audit' }}
        run: |
          git config user.name "Gridbot"
          git config user.email "gridbot@users.noreply.github.com"
          git add scripts/gridbot_generation_mwh_interconnector_ui_guard.py
          git add .github/workflows/gridbot_generation_mwh_interconnector_ui_guard.yml
          git add data_science_protocol/audit_reports/GENERATION_MWH_INTERCONNECTOR_UI_GUARD_LATEST.md
          git add data_science_protocol/audit_reports/json/GENERATION_MWH_INTERCONNECTOR_UI_GUARD_LATEST.json
          if git diff --cached --quiet; then
            echo "No changes to commit."
          else
            git commit -m "gridbot: generation mwh interconnector ui guard audit"
            git push origin HEAD:main
          fi

      - name: Commit UI guard changes and report
        if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'apply' }}
        run: |
          git config user.name "Gridbot"
          git config user.email "gridbot@users.noreply.github.com"
          git add scripts/gridbot_generation_mwh_interconnector_ui_guard.py
          git add .github/workflows/gridbot_generation_mwh_interconnector_ui_guard.yml
          git add uk_energy_tracking_v6_2/generation_history/render_generation_mwh_aggregates.js
          git add uk_energy_tracking_v6_2/generation_history/control_generation_mwh_aggregates.js
          git add uk_energy_tracking_v6_2/generation_history/index.md
          git add data_science_protocol/audit_reports/GENERATION_MWH_INTERCONNECTOR_UI_GUARD_LATEST.md
          git add data_science_protocol/audit_reports/json/GENERATION_MWH_INTERCONNECTOR_UI_GUARD_LATEST.json
          if git diff --cached --quiet; then
            echo "No changes to commit."
          else
            git commit -m "gridbot: generation mwh interconnector ui guard apply"
            git push origin HEAD:main
          fi

GlobalGrid2050 Gridbot Interconnector Bar UI Match Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/gridbot_interconnector_bar_ui_match.yml · lines 1–93 of 93 · Entry point

What it does
It runs interconnectors. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'interconnector'): 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: interconnectors.
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 Gridbot Interconnector Bar UI Final (`scripts/gridbot_interconnector_bar_ui_final.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 Gridbot Interconnector Bar UI Final (workflow run)
Used by
none found
Produces
none declared
Defines here
GridBot Interconnector Bar UI Match
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/gridbot_interconnector_bar_ui_match.yml:1-93 · blob d88b64a3fef8b11434bf0d8009190ecc499055b5 · 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: GridBot Interconnector Bar UI Match

on:
  workflow_dispatch:
    inputs:
      mode:
        description: Run mode
        required: true
        default: audit
        type: choice
        options:
          - audit
          - apply
      commit_reports:
        description: Commit reports and apply outputs
        required: true
        default: 'true'
        type: choice
        options:
          - 'true'
          - 'false'
permissions:
  contents: write

concurrency:
  group: gridbot-interconnector-bar-ui-match
  cancel-in-progress: false

jobs:
  repair:
    runs-on: ubuntu-latest
    timeout-minutes: 20
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Sync latest main before processing
        run: git pull --ff-only origin main

      - name: Run audit
        if: ${{ github.event.inputs.mode == 'audit' }}
        run: python scripts/gridbot_interconnector_bar_ui_final.py

      - name: Run apply
        if: ${{ github.event.inputs.mode == 'apply' }}
        run: python scripts/gridbot_interconnector_bar_ui_final.py --apply

      - name: Upload final bar UI report
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: interconnector-bar-ui-final-${{ github.event.inputs.mode }}
          path: |
            data_science_protocol/audit_reports/INTERCONNECTOR_BAR_UI_FINAL_LATEST.md
            data_science_protocol/audit_reports/json/INTERCONNECTOR_BAR_UI_FINAL_LATEST.json

      - name: Commit audit report only
        if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'audit' }}
        run: |
          git config user.name "Gridbot"
          git config user.email "gridbot@users.noreply.github.com"
          git add scripts/gridbot_interconnector_bar_ui_final.py
          git add .github/workflows/gridbot_interconnector_bar_ui_match.yml
          git add data_science_protocol/audit_reports/INTERCONNECTOR_BAR_UI_FINAL_LATEST.md
          git add data_science_protocol/audit_reports/json/INTERCONNECTOR_BAR_UI_FINAL_LATEST.json
          if git diff --cached --quiet; then
            echo "No changes to commit."
          else
            git commit -m "gridbot: interconnector bar ui final audit"
            git push origin HEAD:main
          fi

      - name: Commit final bar UI changes and report
        if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'apply' }}
        run: |
          git config user.name "Gridbot"
          git config user.email "gridbot@users.noreply.github.com"
          git add scripts/gridbot_interconnector_bar_ui_final.py
          git add .github/workflows/gridbot_interconnector_bar_ui_match.yml
          git add uk_energy_tracking_v6/generation_history/index.md
          git add uk_energy_tracking_v6/generation_history/render_generation_mwh_aggregates.js
          git add uk_energy_tracking_v6/generation_history/control_generation_mwh_aggregates.js
          git add data_science_protocol/audit_reports/INTERCONNECTOR_BAR_UI_FINAL_LATEST.md
          git add data_science_protocol/audit_reports/json/INTERCONNECTOR_BAR_UI_FINAL_LATEST.json
          if git diff --cached --quiet; then
            echo "No changes to commit."
          else
            git commit -m "gridbot: interconnector bar ui final apply"
            git push origin HEAD:main
          fi

GlobalGrid2050 Gridbot Interconnector Mobile UI Repair Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/gridbot_interconnector_mobile_ui_repair.yml · lines 1–92 of 92 · Entry point

What it does
It runs interconnectors. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'interconnector'): 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: interconnectors.
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 Gridbot Interconnector Mobile UI Repair (`scripts/gridbot_interconnector_mobile_ui_repair.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 Gridbot Interconnector Mobile UI Repair (workflow run)
Used by
none found
Produces
none declared
Defines here
GridBot Interconnector Mobile UI Repair
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/gridbot_interconnector_mobile_ui_repair.yml:1-92 · blob 9a7c4b5b0e5af9d16379e1307584cc44a903ee99 · 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: GridBot Interconnector Mobile UI Repair

on:
  workflow_dispatch:
    inputs:
      mode:
        description: Run mode
        required: true
        default: audit
        type: choice
        options:
          - audit
          - apply
      commit_reports:
        description: Commit reports and apply outputs
        required: true
        default: 'true'
        type: choice
        options:
          - 'true'
          - 'false'
permissions:
  contents: write

concurrency:
  group: gridbot-interconnector-mobile-ui-repair
  cancel-in-progress: false

jobs:
  repair:
    runs-on: ubuntu-latest
    timeout-minutes: 20
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Sync latest main before processing
        run: git pull --ff-only origin main

      - name: Run audit
        if: ${{ github.event.inputs.mode == 'audit' }}
        run: python scripts/gridbot_interconnector_mobile_ui_repair.py

      - name: Run apply
        if: ${{ github.event.inputs.mode == 'apply' }}
        run: python scripts/gridbot_interconnector_mobile_ui_repair.py --apply

      - name: Upload mobile UI repair report
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: interconnector-mobile-ui-repair-${{ github.event.inputs.mode }}
          path: |
            data_science_protocol/audit_reports/INTERCONNECTOR_MOBILE_UI_REPAIR_LATEST.md
            data_science_protocol/audit_reports/json/INTERCONNECTOR_MOBILE_UI_REPAIR_LATEST.json

      - name: Commit audit report only
        if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'audit' }}
        run: |
          git config user.name "Gridbot"
          git config user.email "gridbot@users.noreply.github.com"
          git add scripts/gridbot_interconnector_mobile_ui_repair.py
          git add .github/workflows/gridbot_interconnector_mobile_ui_repair.yml
          git add data_science_protocol/audit_reports/INTERCONNECTOR_MOBILE_UI_REPAIR_LATEST.md
          git add data_science_protocol/audit_reports/json/INTERCONNECTOR_MOBILE_UI_REPAIR_LATEST.json
          if git diff --cached --quiet; then
            echo "No changes to commit."
          else
            git commit -m "gridbot: interconnector mobile ui repair audit"
            git push origin HEAD:main
          fi

      - name: Commit mobile UI repair changes and report
        if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'apply' }}
        run: |
          git config user.name "Gridbot"
          git config user.email "gridbot@users.noreply.github.com"
          git add scripts/gridbot_interconnector_mobile_ui_repair.py
          git add .github/workflows/gridbot_interconnector_mobile_ui_repair.yml
          git add uk_energy_tracking_v6/generation_history/render_generation_mwh_aggregates.js
          git add uk_energy_tracking_v6/generation_history/control_generation_mwh_aggregates.js
          git add data_science_protocol/audit_reports/INTERCONNECTOR_MOBILE_UI_REPAIR_LATEST.md
          git add data_science_protocol/audit_reports/json/INTERCONNECTOR_MOBILE_UI_REPAIR_LATEST.json
          if git diff --cached --quiet; then
            echo "No changes to commit."
          else
            git commit -m "gridbot: interconnector mobile ui repair apply"
            git push origin HEAD:main
          fi

GlobalGrid2050 Gridbot London Solar Daylight Geometry Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/gridbot_london_solar_daylight_geometry.yml · lines 1–95 of 95 · Entry point

What it does
It runs solar. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. 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 Gridbot London Solar Daylight Geometry (`scripts/gridbot_london_solar_daylight_geometry.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 Gridbot London Solar Daylight Geometry (workflow run)
Used by
none found
Produces
none declared
Defines here
GridBot London Solar Daylight Geometry
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/gridbot_london_solar_daylight_geometry.yml:1-95 · blob de1ed3a40a5b30507deb5f2cf83e8853b45f002e · 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: GridBot London Solar Daylight Geometry

on:
  workflow_dispatch:
    inputs:
      mode:
        description: Run mode
        required: true
        default: audit
        type: choice
        options:
          - audit
          - apply
      year:
        description: Year to calculate, or auto
        required: true
        default: auto
      commit_reports:
        description: Commit reports and apply outputs
        required: true
        default: 'true'
        type: choice
        options:
          - 'true'
          - 'false'
permissions:
  contents: write

concurrency:
  group: gridbot-london-solar-daylight-geometry
  cancel-in-progress: false

jobs:
  calculate:
    runs-on: ubuntu-latest
    timeout-minutes: 20
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Sync latest main before processing
        run: git pull --ff-only origin main

      - name: Run audit
        if: ${{ github.event.inputs.mode == 'audit' }}
        run: python scripts/gridbot_london_solar_daylight_geometry.py --year "${{ github.event.inputs.year }}"

      - name: Run apply
        if: ${{ github.event.inputs.mode == 'apply' }}
        run: python scripts/gridbot_london_solar_daylight_geometry.py --year "${{ github.event.inputs.year }}" --apply

      - name: Upload daylight geometry report
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: london-solar-daylight-geometry-${{ github.event.inputs.mode }}
          path: |
            data_science_protocol/audit_reports/LONDON_SOLAR_DAYLIGHT_GEOMETRY_LATEST.md
            data_science_protocol/audit_reports/json/LONDON_SOLAR_DAYLIGHT_GEOMETRY_LATEST.json

      - name: Commit audit report only
        if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'audit' }}
        run: |
          git config user.name "Gridbot"
          git config user.email "gridbot@users.noreply.github.com"
          git add scripts/gridbot_london_solar_daylight_geometry.py
          git add .github/workflows/gridbot_london_solar_daylight_geometry.yml
          git add data_science_protocol/audit_reports/LONDON_SOLAR_DAYLIGHT_GEOMETRY_LATEST.md
          git add data_science_protocol/audit_reports/json/LONDON_SOLAR_DAYLIGHT_GEOMETRY_LATEST.json
          if git diff --cached --quiet; then
            echo "No changes to commit."
          else
            git commit -m "gridbot: london solar daylight geometry audit"
            git push origin HEAD:main
          fi

      - name: Commit daylight geometry output and report
        if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'apply' }}
        run: |
          git config user.name "Gridbot"
          git config user.email "gridbot@users.noreply.github.com"
          git add scripts/gridbot_london_solar_daylight_geometry.py
          git add .github/workflows/gridbot_london_solar_daylight_geometry.yml
          git add uk_energy_tracking_v6/generation_history/london_solar_daylight_geometry_*.json
          git add data_science_protocol/audit_reports/LONDON_SOLAR_DAYLIGHT_GEOMETRY_LATEST.md
          git add data_science_protocol/audit_reports/json/LONDON_SOLAR_DAYLIGHT_GEOMETRY_LATEST.json
          if git diff --cached --quiet; then
            echo "No changes to commit."
          else
            git commit -m "gridbot: london solar daylight geometry apply"
            git push origin HEAD:main
          fi