In this section
- GlobalGrid2050 Gridbot Solar Daily MWh Interaction Upgrade Workflow automation · globalgrid2050 / .github/workflows/gridbot_solar_daily_mwh_interaction_upgrade.yml lines 1–73
- GlobalGrid2050 Gridbot Solar Daily MWh Readability Upgrade Workflow automation · globalgrid2050 / .github/workflows/gridbot_solar_daily_mwh_readability_upgrade.yml lines 1–76
- GlobalGrid2050 Gridbot Solar Daily MWh Standalone Upgrade Workflow automation · globalgrid2050 / .github/workflows/gridbot_solar_daily_mwh_standalone_upgrade.yml lines 1–78
- GlobalGrid2050 Gridbot Solar Historic Backfill Workflow automation · globalgrid2050 / .github/workflows/gridbot_solar_historic_backfill.yml lines 1–88
- GlobalGrid2050 Gridbot Solar Immediate Data Workflow automation · globalgrid2050 / .github/workflows/gridbot_solar_immediate_data.yml lines 1–77
- GlobalGrid2050 Gridbot Solar Monthly Backfill Workflow automation · globalgrid2050 / .github/workflows/gridbot_solar_monthly_backfill.yml lines 1–101
- GlobalGrid2050 Gridbot Solar Monthly Backfill Auto Workflow automation · globalgrid2050 / .github/workflows/gridbot_solar_monthly_backfill_auto.yml lines 1–94
- GlobalGrid2050 Gridbot Solar Peak Integrity Audit Workflow automation · globalgrid2050 / .github/workflows/gridbot_solar_peak_integrity_audit.yml lines 1–87
GlobalGrid2050 Gridbot Solar Daily MWh Interaction Upgrade Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_solar_daily_mwh_interaction_upgrade.yml · lines 1–73 of 73 · 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 Solar Daily MWh Interaction Upgrade (`scripts/gridbot_solar_daily_mwh_interaction_upgrade.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 Solar Daily MWh Interaction Upgrade (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Solar Daily MWh Interaction Upgrade
- 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_solar_daily_mwh_interaction_upgrade.yml:1-73 · blob e8fbe30d90a470df6019f2e5db0e680c9cf4a736 · 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 Solar Daily MWh Interaction Upgrade
on:
workflow_dispatch:
inputs:
mode:
description: Run mode
required: true
default: audit
type: choice
options:
- audit
- apply
commit_reports:
description: Commit audit reports and applied changes
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-solar-daily-mwh-interaction-upgrade
cancel-in-progress: false
jobs:
interaction-upgrade:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Run audit
if: ${{ github.event.inputs.mode == 'audit' }}
run: python scripts/gridbot_solar_daily_mwh_interaction_upgrade.py
- name: Run apply
if: ${{ github.event.inputs.mode == 'apply' }}
run: python scripts/gridbot_solar_daily_mwh_interaction_upgrade.py --apply
- name: Upload interaction report
uses: actions/upload-artifact@v4
with:
name: solar-daily-mwh-interaction-report-${{ github.event.inputs.mode }}
path: |
data_science_protocol/audit_reports/SOLAR_DAILY_MWH_INTERACTION_LATEST.md
data_science_protocol/audit_reports/json/SOLAR_DAILY_MWH_INTERACTION_LATEST.json
- name: Commit reports and changes
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_solar_daily_mwh_interaction_upgrade.py
git add .github/workflows/gridbot_solar_daily_mwh_interaction_upgrade.yml
git add uk_energy_tracking_v6/generation_history/index.md
git add uk_energy_tracking_v6/generation_history/control_solar_daily_mwh_chart.js
git add uk_energy_tracking_v6/generation_history/render_solar_daily_mwh_chart.js
git add data_science_protocol/audit_reports/SOLAR_DAILY_MWH_INTERACTION_LATEST.md
git add data_science_protocol/audit_reports/json/SOLAR_DAILY_MWH_INTERACTION_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: solar daily mwh interaction upgrade ${{ github.event.inputs.mode }}"
git pull --rebase origin main
git push origin HEAD:main
fiGlobalGrid2050 Gridbot Solar Daily MWh Readability Upgrade Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_solar_daily_mwh_readability_upgrade.yml · lines 1–76 of 76 · 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 Solar Daily MWh Readability Upgrade (`scripts/gridbot_solar_daily_mwh_readability_upgrade.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 Solar Daily MWh Readability Upgrade (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Solar Daily MWh Readability Upgrade
- 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_solar_daily_mwh_readability_upgrade.yml:1-76 · blob 72e1e8bfc14beb884a68b88bb53c7b0bb567fec9 · 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 Solar Daily MWh Readability Upgrade
on:
workflow_dispatch:
inputs:
mode:
description: Audit first, apply after review
required: true
default: audit
type: choice
options:
- audit
- apply
commit_reports:
description: Commit audit report and applied outputs
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-solar-daily-mwh-readability-upgrade
cancel-in-progress: false
jobs:
solar-daily-mwh-readability-upgrade:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Audit Solar daily MWh readability upgrade
if: github.event.inputs.mode == 'audit'
run: python scripts/gridbot_solar_daily_mwh_readability_upgrade.py
- name: Apply Solar daily MWh readability upgrade
if: github.event.inputs.mode == 'apply'
run: python scripts/gridbot_solar_daily_mwh_readability_upgrade.py --apply
- name: Upload Solar daily MWh readability report
if: always()
uses: actions/upload-artifact@v4
with:
name: solar-daily-mwh-readability-upgrade-report
path: |
data_science_protocol/audit_reports/SOLAR_DAILY_MWH_READABILITY_LATEST.md
data_science_protocol/audit_reports/json/SOLAR_DAILY_MWH_READABILITY_LATEST.json
- name: Commit Solar daily MWh readability outputs
if: github.event.inputs.commit_reports == 'true'
shell: bash
run: |
set -euo pipefail
git config --global user.name "Gridbot"
git config --global user.email "gridbot@globalgrid2050.com"
git add scripts/gridbot_solar_daily_mwh_readability_upgrade.py || true
git add .github/workflows/gridbot_solar_daily_mwh_readability_upgrade.yml || true
git add uk_energy_tracking_v6/generation_history/index.md || true
git add uk_energy_tracking_v6/generation_history/render_solar_daily_mwh_chart.js || true
git add data_science_protocol/audit_reports/SOLAR_DAILY_MWH_READABILITY_LATEST.md || true
git add data_science_protocol/audit_reports/json/SOLAR_DAILY_MWH_READABILITY_LATEST.json || true
if git diff --cached --quiet; then
echo "No Solar daily MWh readability outputs to commit"
exit 0
fi
git commit -m "gridbot: solar daily mwh readability upgrade ${{ github.event.inputs.mode }}"
git pull --rebase origin "${GITHUB_REF_NAME}"
git push origin HEAD:"${GITHUB_REF_NAME}"GlobalGrid2050 Gridbot Solar Daily MWh Standalone Upgrade Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_solar_daily_mwh_standalone_upgrade.yml · lines 1–78 of 78 · 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 Solar Daily MWh Standalone Upgrade (`scripts/gridbot_solar_daily_mwh_standalone_upgrade.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 Solar Daily MWh Standalone Upgrade (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Solar Daily MWh Standalone Upgrade
- 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_solar_daily_mwh_standalone_upgrade.yml:1-78 · blob 55b7ee0bcc0127d563a933cc4d37659ea4695afd · 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 Solar Daily MWh Standalone Upgrade
on:
workflow_dispatch:
inputs:
mode:
description: Audit first, apply after review
required: true
default: audit
type: choice
options:
- audit
- apply
commit_reports:
description: Commit audit report and applied outputs
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-solar-daily-mwh-standalone-upgrade
cancel-in-progress: false
jobs:
solar-daily-mwh-standalone-upgrade:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Audit Solar daily MWh standalone upgrade
if: github.event.inputs.mode == 'audit'
run: python scripts/gridbot_solar_daily_mwh_standalone_upgrade.py
- name: Apply Solar daily MWh standalone upgrade
if: github.event.inputs.mode == 'apply'
run: python scripts/gridbot_solar_daily_mwh_standalone_upgrade.py --apply
- name: Upload Solar daily MWh standalone report
if: always()
uses: actions/upload-artifact@v4
with:
name: solar-daily-mwh-standalone-upgrade-report
path: |
data_science_protocol/audit_reports/SOLAR_DAILY_MWH_STANDALONE_LATEST.md
data_science_protocol/audit_reports/json/SOLAR_DAILY_MWH_STANDALONE_LATEST.json
- name: Commit Solar daily MWh standalone outputs
if: github.event.inputs.commit_reports == 'true'
shell: bash
run: |
set -euo pipefail
git config --global user.name "Gridbot"
git config --global user.email "gridbot@globalgrid2050.com"
git add gridbot_manifests/002_solar_daily_mwh_standalone.yml || true
git add scripts/gridbot_solar_daily_mwh_standalone_upgrade.py || true
git add .github/workflows/gridbot_solar_daily_mwh_standalone_upgrade.yml || true
git add uk_energy_tracking_v6/generation_history/index.md || true
git add uk_energy_tracking_v6/generation_history/control_solar_daily_mwh_chart.js || true
git add uk_energy_tracking_v6/generation_history/render_solar_daily_mwh_chart.js || true
git add data_science_protocol/audit_reports/SOLAR_DAILY_MWH_STANDALONE_LATEST.md || true
git add data_science_protocol/audit_reports/json/SOLAR_DAILY_MWH_STANDALONE_LATEST.json || true
if git diff --cached --quiet; then
echo "No Solar daily MWh standalone outputs to commit"
exit 0
fi
git commit -m "gridbot: solar daily mwh standalone upgrade ${{ github.event.inputs.mode }}"
git pull --rebase origin "${GITHUB_REF_NAME}"
git push origin HEAD:"${GITHUB_REF_NAME}"GlobalGrid2050 Gridbot Solar Historic Backfill Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_solar_historic_backfill.yml · lines 1–88 of 88 · 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 Solar Historic Backfill (`scripts/gridbot_solar_historic_backfill.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 Solar Historic Backfill (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Solar Historic Backfill
- 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_solar_historic_backfill.yml:1-88 · blob ac9415848948be23b3eb8ea2651f0c126826d524 · 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 Solar Historic Backfill
on:
workflow_dispatch:
inputs:
mode:
description: Run mode
required: true
default: audit
type: choice
options:
- audit
- apply
start_date:
description: Start date YYYY-MM-DD
required: true
default: '2016-01-01'
type: string
end_date:
description: End date YYYY-MM-DD, blank means yesterday
required: false
default: ''
type: string
max_days:
description: Maximum days this run
required: true
default: '31'
type: string
commit_reports:
description: Commit reports and outputs
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-solar-historic-backfill
cancel-in-progress: false
jobs:
solar-historic-backfill:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Audit Solar historic backfill
if: github.event.inputs.mode == 'audit'
run: python scripts/gridbot_solar_historic_backfill.py --start-date "${{ github.event.inputs.start_date }}" --end-date "${{ github.event.inputs.end_date }}" --max-days "${{ github.event.inputs.max_days }}"
- name: Apply Solar historic backfill
if: github.event.inputs.mode == 'apply'
run: python scripts/gridbot_solar_historic_backfill.py --start-date "${{ github.event.inputs.start_date }}" --end-date "${{ github.event.inputs.end_date }}" --max-days "${{ github.event.inputs.max_days }}" --apply
- name: Upload Solar historic report
if: always()
uses: actions/upload-artifact@v4
with:
name: solar-historic-backfill-report
path: |
data_science_protocol/audit_reports/SOLAR_HISTORIC_BACKFILL_LATEST.md
data_science_protocol/audit_reports/json/SOLAR_HISTORIC_BACKFILL_LATEST.json
- name: Commit Solar historic outputs
if: github.event.inputs.commit_reports == 'true'
shell: bash
run: |
set -euo pipefail
git config --global user.name "Gridbot"
git config --global user.email "gridbot@globalgrid2050.com"
git add data/confirmed/pvlive_solar_daily_candidate.json || true
git add uk_energy_tracking_v6/generation_history/pvlive_solar_daily_browser.json || true
git add data_science_protocol/audit_reports/SOLAR_HISTORIC_BACKFILL_LATEST.md || true
git add data_science_protocol/audit_reports/json/SOLAR_HISTORIC_BACKFILL_LATEST.json || true
if git diff --cached --quiet; then
echo "No Solar historic outputs to commit"
exit 0
fi
git commit -m "gridbot: run solar historic backfill ${{ github.event.inputs.mode }}"
git pull --rebase origin main
git push origin HEAD:mainGlobalGrid2050 Gridbot Solar Immediate Data Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_solar_immediate_data.yml · lines 1–77 of 77 · 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 Solar Immediate Data (`scripts/gridbot_solar_immediate_data.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 Solar Immediate Data (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Solar Immediate Data
- 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_solar_immediate_data.yml:1-77 · blob 7f228964d01fe8ad03cad27f6f2bb622d6b00d63 · 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 Solar Immediate Data
on:
workflow_dispatch:
inputs:
mode:
description: Run mode
required: true
default: audit
type: choice
options:
- audit
- apply
days:
description: Days including today
required: true
default: '30'
type: string
commit_reports:
description: Commit reports and outputs
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-solar-immediate-data
cancel-in-progress: false
jobs:
solar-immediate-data:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Audit Solar immediate data
if: github.event.inputs.mode == 'audit'
run: python scripts/gridbot_solar_immediate_data.py --days "${{ github.event.inputs.days }}"
- name: Apply Solar immediate data
if: github.event.inputs.mode == 'apply'
run: python scripts/gridbot_solar_immediate_data.py --days "${{ github.event.inputs.days }}" --apply
- name: Upload Solar immediate report
if: always()
uses: actions/upload-artifact@v4
with:
name: solar-immediate-data-report
path: |
data_science_protocol/audit_reports/SOLAR_IMMEDIATE_DATA_LATEST.md
data_science_protocol/audit_reports/json/SOLAR_IMMEDIATE_DATA_LATEST.json
- name: Commit Solar immediate outputs
if: github.event.inputs.commit_reports == 'true'
shell: bash
run: |
set -euo pipefail
git config --global user.name "Gridbot"
git config --global user.email "gridbot@globalgrid2050.com"
git add uk_energy_tracking_v6/generation_history/pvlive_solar_recent_30d_30min_browser.json || true
git add data_science_protocol/audit_reports/SOLAR_IMMEDIATE_DATA_LATEST.md || true
git add data_science_protocol/audit_reports/json/SOLAR_IMMEDIATE_DATA_LATEST.json || true
if git diff --cached --quiet; then
echo "No Solar immediate outputs to commit"
exit 0
fi
git commit -m "gridbot: run solar immediate data ${{ github.event.inputs.mode }}"
git pull --rebase origin main
git push origin HEAD:mainGlobalGrid2050 Gridbot Solar Monthly Backfill Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_solar_monthly_backfill.yml · lines 1–101 of 101 · 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 Solar Monthly Backfill (`scripts/gridbot_solar_monthly_backfill.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 Solar Monthly Backfill (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Solar Monthly Backfill
- 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_solar_monthly_backfill.yml:1-101 · blob b560eac51ce914dd3ff1480a55856a29d4886fca · 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 Solar Monthly Backfill
on:
workflow_dispatch:
inputs:
mode:
description: Run mode
required: true
default: audit
type: choice
options:
- audit
- apply
start_month:
description: Start month YYYY-MM
required: true
default: '2016-01'
type: string
end_month:
description: End month YYYY-MM, blank means current month
required: false
default: ''
type: string
max_months:
description: Maximum months this run
required: true
default: '12'
type: string
resume:
description: Skip complete months from progress file
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
commit_reports:
description: Commit reports and outputs
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-solar-monthly-backfill
cancel-in-progress: false
jobs:
solar-monthly-backfill:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Audit Solar monthly backfill
if: github.event.inputs.mode == 'audit'
run: |
if [ "${{ github.event.inputs.resume }}" = "true" ]; then RESUME="--resume"; else RESUME=""; fi
python scripts/gridbot_solar_monthly_backfill.py --start-month "${{ github.event.inputs.start_month }}" --end-month "${{ github.event.inputs.end_month }}" --max-months "${{ github.event.inputs.max_months }}" $RESUME
- name: Apply Solar monthly backfill
if: github.event.inputs.mode == 'apply'
run: |
if [ "${{ github.event.inputs.resume }}" = "true" ]; then RESUME="--resume"; else RESUME=""; fi
python scripts/gridbot_solar_monthly_backfill.py --start-month "${{ github.event.inputs.start_month }}" --end-month "${{ github.event.inputs.end_month }}" --max-months "${{ github.event.inputs.max_months }}" $RESUME --apply
- name: Upload Solar monthly report
if: always()
uses: actions/upload-artifact@v4
with:
name: solar-monthly-backfill-report
path: |
data_science_protocol/audit_reports/SOLAR_MONTHLY_BACKFILL_LATEST.md
data_science_protocol/audit_reports/json/SOLAR_MONTHLY_BACKFILL_LATEST.json
- name: Commit Solar monthly outputs
if: github.event.inputs.commit_reports == 'true'
shell: bash
run: |
set -euo pipefail
git config --global user.name "Gridbot"
git config --global user.email "gridbot@globalgrid2050.com"
git add data/confirmed/pvlive_solar_daily_candidate.json || true
git add data/confirmed/pvlive_solar_daily_BACKFILL_PROGRESS.json || true
git add uk_energy_tracking_v6/generation_history/pvlive_solar_daily_browser.json || true
git add data_science_protocol/audit_reports/SOLAR_MONTHLY_BACKFILL_LATEST.md || true
git add data_science_protocol/audit_reports/json/SOLAR_MONTHLY_BACKFILL_LATEST.json || true
if git diff --cached --quiet; then
echo "No Solar monthly outputs to commit"
exit 0
fi
git commit -m "gridbot: run solar monthly backfill ${{ github.event.inputs.mode }}"
git pull --rebase origin main
git push origin HEAD:mainGlobalGrid2050 Gridbot Solar Monthly Backfill Auto Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_solar_monthly_backfill_auto.yml · lines 1–94 of 94 · 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 Solar Monthly Backfill (`scripts/gridbot_solar_monthly_backfill.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 Solar Monthly Backfill (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Solar Monthly Backfill Auto
- 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_solar_monthly_backfill_auto.yml:1-94 · blob ac463b85a11026186cbc88b26585903d2b52cc14 · 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 Solar Monthly Backfill Auto
on:
workflow_dispatch:
inputs:
start_month:
description: Current month YYYY-MM
required: true
default: '2016-01'
type: string
end_month:
description: Final month YYYY-MM
required: true
default: '2026-05'
type: string
chain_next:
description: Trigger next month automatically
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
actions: write
concurrency:
group: gridbot-solar-monthly-backfill-auto
cancel-in-progress: false
jobs:
solar-monthly-backfill-auto:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Apply one Solar month
run: python scripts/gridbot_solar_monthly_backfill.py --start-month "${{ github.event.inputs.start_month }}" --end-month "${{ github.event.inputs.start_month }}" --max-months 1 --resume --apply
- name: Commit Solar month outputs
shell: bash
run: |
set -euo pipefail
git config --global user.name "Gridbot"
git config --global user.email "gridbot@globalgrid2050.com"
git add data/confirmed/pvlive_solar_daily_candidate.json || true
git add data/confirmed/pvlive_solar_daily_BACKFILL_PROGRESS.json || true
git add uk_energy_tracking_v6/generation_history/pvlive_solar_daily_browser.json || true
git add data_science_protocol/audit_reports/SOLAR_MONTHLY_BACKFILL_LATEST.md || true
git add data_science_protocol/audit_reports/json/SOLAR_MONTHLY_BACKFILL_LATEST.json || true
if git diff --cached --quiet; then
echo "No Solar monthly outputs to commit"
exit 0
fi
git commit -m "gridbot: auto solar monthly backfill ${{ github.event.inputs.start_month }}"
git pull --rebase origin "${GITHUB_REF_NAME}"
git push origin HEAD:"${GITHUB_REF_NAME}"
- name: Trigger next Solar month
if: github.event.inputs.chain_next == 'true'
shell: bash
env:
GH_TOKEN: ${{ secrets.GRIDBOT_PAT }}
run: |
set -euo pipefail
current="${{ github.event.inputs.start_month }}"
end="${{ github.event.inputs.end_month }}"
next=$(python - <<PY
import datetime as dt
y,m=map(int,"$current".split('-'))
if m==12:
y+=1; m=1
else:
m+=1
print(f"{y:04d}-{m:02d}")
PY
)
python - <<PY
cur="$current"; nxt="$next"; end="$end"
raise SystemExit(0 if nxt <= end else 1)
PY
should_run=$?
if [ "$next" \> "$end" ]; then
echo "Solar backfill chain complete at $current"
exit 0
fi
echo "Triggering next Solar month: $next"
gh workflow run gridbot_solar_monthly_backfill_auto.yml --ref "${GITHUB_REF_NAME}" -f start_month="$next" -f end_month="$end" -f chain_next=trueGlobalGrid2050 Gridbot Solar Peak Integrity Audit Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_solar_peak_integrity_audit.yml · lines 1–87 of 87 · 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 Solar Peak Integrity Audit (`scripts/gridbot_solar_peak_integrity_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 Solar Peak Integrity Audit (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Solar Peak Integrity 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_solar_peak_integrity_audit.yml:1-87 · blob e20c6577bc761b5f3081eb0b1a2da1edaf76c02a · 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 Solar Peak Integrity Audit
on:
workflow_dispatch:
inputs:
start_month:
description: Target coverage start month YYYY-MM
required: true
default: '2016-01'
type: string
end_month:
description: Target coverage end month YYYY-MM, blank means current month
required: false
default: ''
type: string
dates:
description: Key dates to compare, comma separated
required: true
default: '2026-04-23,2026-05-24'
type: string
fetch_live:
description: Fetch live Sheffield Solar PVLive for key dates
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
commit_reports:
description: Commit audit report
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-solar-peak-integrity-audit
cancel-in-progress: false
jobs:
solar-peak-integrity-audit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Solar peak integrity audit
shell: bash
run: |
set -euo pipefail
args=(python scripts/gridbot_solar_peak_integrity_audit.py --start-month "${{ github.event.inputs.start_month }}" --end-month "${{ github.event.inputs.end_month }}" --dates "${{ github.event.inputs.dates }}")
if [ "${{ github.event.inputs.fetch_live }}" = "true" ]; then
args+=(--fetch-live)
fi
"${args[@]}"
- name: Upload Solar peak audit report
if: always()
uses: actions/upload-artifact@v4
with:
name: solar-peak-integrity-audit
path: |
data_science_protocol/audit_reports/SOLAR_PEAK_INTEGRITY_LATEST.md
data_science_protocol/audit_reports/json/SOLAR_PEAK_INTEGRITY_LATEST.json
- name: Commit Solar peak audit report
if: github.event.inputs.commit_reports == 'true'
shell: bash
run: |
set -euo pipefail
git config --global user.name "Gridbot"
git config --global user.email "gridbot@globalgrid2050.com"
git add data_science_protocol/audit_reports/SOLAR_PEAK_INTEGRITY_LATEST.md || true
git add data_science_protocol/audit_reports/json/SOLAR_PEAK_INTEGRITY_LATEST.json || true
if git diff --cached --quiet; then
echo "No Solar peak audit report changes to commit"
exit 0
fi
git commit -m "gridbot: solar peak integrity audit"
git pull --rebase origin "${GITHUB_REF_NAME}"
git push origin HEAD:"${GITHUB_REF_NAME}"