In this section
- GlobalGrid2050 Renewable Energy Planning Database (REPD) Q3 Homepage Pin QA Workflow automation · globalgrid2050 / .github/workflows/repd-q3-homepage-pin-qa.yml lines 1–78
- GlobalGrid2050 Renewable Energy Planning Database (REPD) Release Candidate Workflow automation · globalgrid2050 / .github/workflows/repd-release-candidate.yml lines 1–292
- GlobalGrid2050 Renewable Energy Planning Database (REPD) Sync Workflow automation · globalgrid2050 / .github/workflows/repd_sync.yml lines 1–34
- GlobalGrid2050 Replace V7 GIS Single-Line Diagram (SLD) Asset Buttons with Pipeline Dropdown Status Workflow automation · globalgrid2050 / .github/workflows/replace-v7-gis-sld-asset-buttons-with-pipeline-dropdown-status.yml lines 1–54
- GlobalGrid2050 Replace V7 GIS Single-Line Diagram (SLD) Asset Buttons with Pipeline Dropdown Workflow automation · globalgrid2050 / .github/workflows/replace-v7-gis-sld-asset-buttons-with-pipeline-dropdown.yml lines 1–54
- GlobalGrid2050 Repo Guard Workflow automation · globalgrid2050 / .github/workflows/repo_guard.yml lines 1–86
- GlobalGrid2050 Repo Size Guard Workflow automation · globalgrid2050 / .github/workflows/repo_size_guard.yml lines 1–18
- GlobalGrid2050 Restore V8 Battery Energy Storage System (BESS) MapLibre Standalone Workflow automation · globalgrid2050 / .github/workflows/restore-v8-bess-maplibre-standalone.yml lines 1–66
GlobalGrid2050 Renewable Energy Planning Database (REPD) Q3 Homepage Pin QA Workflow
A GitHub Actions workflow. Runs on push, on pull requests and on release.
automationglobalgrid2050 / .github/workflows/repd-q3-homepage-pin-qa.yml · lines 1–78 of 78 · Entry point
- What it does
- It runs 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 homepage-owner.json; JSON file homepage.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Q3 homepage owner pin acceptance (read-only)”; runs GlobalGrid2050 Import Homepage Owner (`scripts/import_homepage_owner.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 Import Homepage Owner (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Q3 homepage owner pin acceptance (read-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-q3-homepage-pin-qa.yml:1-78 · blob 1e32bef8e0c7208a52ac93c252bbf3b54e690fac · 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: Q3 homepage owner pin acceptance (read-only)
on:
pull_request:
branches: [main]
paths:
- catalogue/homepage-owner.json
- .github/workflows/repd-q3-homepage-pin-qa.yml
push:
branches:
- release/pipeline-news-homepage-pin-20261114
paths:
- catalogue/homepage-owner.json
- .github/workflows/repd-q3-homepage-pin-qa.yml
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
filter: blob:none
sparse-checkout: |
catalogue
scripts
homepage-shell
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Fetch all seven pinned owner files and regenerate local homepage
run: python3 scripts/import_homepage_owner.py
- name: Assert pinned owner integrity, Q3 operative and September rollback
run: |
python3 - <<'PY'
import hashlib,json
from pathlib import Path
pin=json.loads(Path("catalogue/homepage-owner.json").read_text())
# Importer verifies all seven exact SHA256s against the pinned owner
# commit; an old fixed commit here would reject every valid successor.
import re
assert re.fullmatch(r"[0-9a-f]{40}",pin["commit"])
assert pin["repository"]=="Ventusltd/globalgrid2050-homepage"
doc=json.loads(Path("homepage-shell/data/homepage.json").read_text())
entity=next(x for x in doc["entities"] if x["id"]=="pipeline-news")
# The operative release may move on from the first October edition
# (202611132345); that edition and September must stay retained.
operative=entity["operative_release_id"]
release_ids={r["id"] for r in entity["releases"]}
assert re.fullmatch(r"[0-9]{12}",operative) and operative in release_ids
assert operative>="202611132345"
assert release_ids >= {"202611132345","202609082224"}
# The October promotion must be unique and remain the latest
# Pipeline News promotion, not necessarily the last *site* promotion.
pipeline_promotions=[p for p in doc["promotions"] if p["entity_id"]=="pipeline-news"]
q3_promotions=[p for p in pipeline_promotions if p["to_release_id"]=="202611132345"]
assert len(q3_promotions)==1
assert q3_promotions[0]["from_release_id"]=="202609082224"
# Later Pipeline News promotions must form an unbroken chain from the
# October promotion to the operative release, each step recorded.
start=pipeline_promotions.index(q3_promotions[0])
chain=pipeline_promotions[start:]
for prev,nxt in zip(chain,chain[1:]):
assert nxt["from_release_id"]==prev["to_release_id"]
assert chain[-1]["to_release_id"]==operative
index=Path("index.html").read_text()
assert f'href="https://globalgrid2050.com/uk_renewables_pipeline/{operative}/"' in index
for name in pin["files"]:
local=Path("index.html") if name=="index.html" else Path("homepage-shell")/name
if name=="index.html":
continue # transformed on import, original hash verified by importer
assert hashlib.sha256(local.read_bytes()).hexdigest()==pin["files"][name],name
print(f"PASS: seven owner pins, operative {operative}, October and September retained, promotion chain")
PYGlobalGrid2050 Renewable Energy Planning Database (REPD) Release Candidate Workflow
A GitHub Actions workflow that builds and publishes the site. Runs by hand.
automationglobalgrid2050 / .github/workflows/repd-release-candidate.yml · lines 1–292 of 292 · 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 pr_manifest.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
- Named “REPD release candidate (manual, draft PR only)”; 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
- Automation — Renewable Energy Planning Database (REPD) (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- REPD release candidate (manual, draft PR 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-release-candidate.yml:1-292 · blob 2da048bd3a3379d8f3e8b98a4dcf2ba29779581b · 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 release candidate (manual, draft PR only)
# Manual dispatch only (consistent with 000_freeze_all_workflows_to_manual.yml: this
# file is already a fixed point of that rewrite). Runs automation/repd/run.py, uploads
# every output as an artifact, and opens or updates a DRAFT pull request on
# repd/<label>-candidate that ADDS allow-listed new paths only. It never pushes to
# main, never edits an existing file, never deploys and never touches index.html.
# The owner reviews and merges. Merging a new uk_renewables_pipeline/<stamp>/ folder
# to main is what deploys it (deploy-pages.yml path allow-list).
# A PR opened with GITHUB_TOKEN does not trigger pull_request workflows, so the
# 5 MB size rule of pr-file-size-guard.yml is re-checked here before the push,
# against the unchanged .github/large-files-allowlist.txt.
on:
workflow_dispatch:
inputs:
label:
description: Release label, e.g. 2026q3
required: true
type: string
release_folder:
description: 12-digit UTC stamp for uk_renewables_pipeline/<stamp>/ (blank = descriptor or now)
required: false
default: ''
type: string
csv_url:
description: Official CSV URL (blank = descriptor or detect)
required: false
default: ''
type: string
xlsx_url:
description: Official XLSX URL (blank = descriptor or detect)
required: false
default: ''
type: string
expected_csv_sha256:
description: Optional pinned sha256 of the CSV (fail closed on mismatch)
required: false
default: ''
type: string
expected_xlsx_sha256:
description: Optional pinned sha256 of the XLSX (fail closed on mismatch)
required: false
default: ''
type: string
allow_partial:
description: Open the draft PR even if a build component is missing
required: false
default: false
type: boolean
open_pr:
description: Open or update the draft PR (false = artifact only)
required: false
default: true
type: boolean
permissions:
contents: read
concurrency:
group: repd-release-candidate-${{ inputs.label }}
cancel-in-progress: false
jobs:
build:
name: Build candidate (read-only)
runs-on: ubuntu-latest
timeout-minutes: 40
permissions:
contents: read
outputs:
overall: ${{ steps.run.outputs.overall }}
env:
IN_LABEL: ${{ inputs.label }}
IN_FOLDER: ${{ inputs.release_folder }}
IN_CSV_URL: ${{ inputs.csv_url }}
IN_XLSX_URL: ${{ inputs.xlsx_url }}
IN_CSV_SHA: ${{ inputs.expected_csv_sha256 }}
IN_XLSX_SHA: ${{ inputs.expected_xlsx_sha256 }}
IN_ALLOW_PARTIAL: ${{ inputs.allow_partial }}
OUT: /tmp/repd-out
steps:
- name: Validate inputs (no inputs reach the shell unquoted)
shell: bash
run: |
set -euo pipefail
[[ "$IN_LABEL" =~ ^20[0-9]{2}q[1-4]$ ]] || { echo "::error::label must look like 2026q3"; exit 1; }
[[ -z "$IN_FOLDER" || "$IN_FOLDER" =~ ^20[0-9]{10}$ ]] || { echo "::error::release_folder must be 12 digits"; exit 1; }
for u in "$IN_CSV_URL" "$IN_XLSX_URL"; do
[[ -z "$u" || "$u" =~ ^https://assets\.publishing\.service\.gov\.uk/[A-Za-z0-9/_.-]+$ ]] || { echo "::error::URLs must be assets.publishing.service.gov.uk"; exit 1; }
done
for h in "$IN_CSV_SHA" "$IN_XLSX_SHA"; do
[[ -z "$h" || "$h" =~ ^[0-9a-fA-F]{64}$ ]] || { echo "::error::sha256 must be 64 hex digits"; exit 1; }
done
# Only what the pipeline reads is materialised: automation/ and scripts/ (code),
# dist/ (frozen V6 baseline), root files (repd.csv etc., always present in cone mode)
# and the Pipeline News parent release that build_news copies. Existence checks for
# new paths use git trees, which a blobless clone has in full. Files that are not
# materialised cannot be changed by the run; the materialised ones are checked by
# run.py's sha256 guard and by git status below.
- name: Checkout main (blobless, sparse; read-only)
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 pipeline dependencies
run: python -m pip install --disable-pip-version-check 'pandas>=2,<3' 'openpyxl>=3.1,<4' 'pyproj>=3,<4'
- name: Run detect -> fetch -> clean -> validate -> diff -> build -> hash guard
id: run
shell: bash
run: |
set -uo pipefail
args=(--label "$IN_LABEL" --out "$OUT" --repo-root "$GITHUB_WORKSPACE")
[[ -n "$IN_FOLDER" ]] && args+=(--release-folder "$IN_FOLDER")
[[ -n "$IN_CSV_URL" ]] && args+=(--csv-url "$IN_CSV_URL")
[[ -n "$IN_XLSX_URL" ]] && args+=(--xlsx-url "$IN_XLSX_URL")
[[ -n "$IN_CSV_SHA" ]] && args+=(--expected-csv-sha256 "$IN_CSV_SHA")
[[ -n "$IN_XLSX_SHA" ]] && args+=(--expected-xlsx-sha256 "$IN_XLSX_SHA")
[[ "$IN_ALLOW_PARTIAL" == "true" ]] && args+=(--allow-partial)
python -m automation.repd.run "${args[@]}"
code=$?
overall=$(python -c "import json,sys;print(json.load(open(sys.argv[1]))['overall'])" "$OUT/run_report.json" 2>/dev/null || echo failed)
echo "overall=$overall" >> "$GITHUB_OUTPUT"
[[ -f "$OUT/run_report.md" ]] && cat "$OUT/run_report.md" >> "$GITHUB_STEP_SUMMARY"
exit $code
- name: Working tree must be untouched (every tracked file, by git's own hashes)
if: always()
shell: bash
run: |
set -euo pipefail
dirty="$(git status --porcelain --untracked-files=all)"
if [[ -n "$dirty" ]]; then
echo "::error::run.py changed the checkout:"; echo "$dirty"; exit 1
fi
# git status is blind to skip-worktree paths (everything outside the sparse cone) and to
# assume-unchanged files: none of them may have appeared on disk during the run.
hidden="$(git ls-files -v | awk '$1 ~ /^(S|[a-z])$/ {sub(/^[^ ]+ /, ""); print}' | while IFS= read -r p; do [[ -e "$p" || -L "$p" ]] && printf '%s\n' "$p"; done || true)"
if [[ -n "$hidden" ]]; then
echo "::error::files outside the sparse checkout (or assume-unchanged) exist on disk after the run:"; echo "$hidden"; exit 1
fi
echo "checkout clean"
- name: Upload candidate, staging, hash manifests and run report
if: always()
uses: actions/upload-artifact@v4
with:
name: repd-${{ inputs.label }}-candidate-${{ github.run_number }}
path: /tmp/repd-out/
retention-days: 90
if-no-files-found: error
draft-pr:
name: Open or update DRAFT PR (new paths only)
needs: build
if: ${{ inputs.open_pr && (needs.build.outputs.overall == 'ok' || needs.build.outputs.overall == 'partial') }}
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: write
pull-requests: write
env:
IN_LABEL: ${{ inputs.label }}
BRANCH: repd/${{ inputs.label }}-candidate
CAND: /tmp/repd-out
GH_TOKEN: ${{ github.token }}
BOT_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
steps:
- name: Re-validate label and branch name
shell: bash
run: |
set -euo pipefail
[[ "$IN_LABEL" =~ ^20[0-9]{2}q[1-4]$ ]] || exit 1
[[ "$BRANCH" =~ ^repd/20[0-9]{2}q[1-4]-candidate$ ]] || 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 candidate
uses: actions/download-artifact@v4
with:
name: repd-${{ inputs.label }}-candidate-${{ github.run_number }}
path: /tmp/repd-out
- name: Refuse anything that is not a new allow-listed path within the size budget
shell: bash
run: |
set -euo pipefail
python - "$CAND/pr_manifest.json" "$CAND/pr" <<'PY'
import hashlib, json, pathlib, subprocess, sys
sys.path.insert(0, ".")
from automation.repd.run import (MAX_PR_FILE_BYTES, is_allowed_new_path,
large_file_allowed, load_large_file_allowlist)
manifest = json.loads(pathlib.Path(sys.argv[1]).read_text())
tree = pathlib.Path(sys.argv[2])
label, folder = manifest["label"], manifest["release_folder"]
assert label == __import__("os").environ["IN_LABEL"], "artifact label differs from input"
listed = {f["path"]: f for f in manifest["files"]}
on_disk = {p.relative_to(tree).as_posix() for p in tree.rglob("*") if p.is_file()}
assert listed and on_disk == set(listed), f"manifest/tree mismatch: {sorted(on_disk ^ set(listed))[:10]}"
allow = load_large_file_allowlist(pathlib.Path("."))
tracked = set(subprocess.run(["git", "ls-tree", "-r", "--name-only", "HEAD"], check=True,
capture_output=True, text=True).stdout.splitlines())
assert not any(t.startswith(f"uk_renewables_pipeline/{folder}/") for t in tracked), "release folder exists on main"
for rel, meta in listed.items():
data = (tree / rel).read_bytes()
assert hashlib.sha256(data).hexdigest() == meta["sha256"], f"hash differs: {rel}"
assert is_allowed_new_path(rel, label, folder), f"not allow-listed: {rel}"
assert rel not in tracked, f"already exists on main (additive only): {rel}"
assert len(data) <= MAX_PR_FILE_BYTES or large_file_allowed(rel, allow), f"over 5 MB, not allow-listed: {rel}"
print(f"{len(listed)} new files verified")
PY
- name: Build the candidate commit on top of main and push the candidate branch
shell: bash
run: |
set -euo pipefail
git config user.name 'github-actions[bot]'
git config user.email "$BOT_EMAIL"
main_sha="$(git rev-parse HEAD)"
lease=()
if git ls-remote --exit-code --heads origin "$BRANCH" >/dev/null; then
git fetch --no-tags --depth=1 --filter=blob:none origin "refs/heads/$BRANCH"
remote_sha="$(git rev-parse FETCH_HEAD)"
author="$(git log -1 --format=%ae FETCH_HEAD)"
if [[ "$author" != "$BOT_EMAIL" ]]; then
echo "::error::$BRANCH tip was committed by $author, not this workflow. Refusing to replace it."
exit 1
fi
lease=("--force-with-lease=refs/heads/$BRANCH:$remote_sha")
else
lease=("--force-with-lease=refs/heads/$BRANCH:")
fi
git switch -c "$BRANCH"
(cd "$CAND/pr" && find . -type f -print0) | while IFS= read -r -d '' f; do
rel="${f#./}"
mkdir -p "$(dirname "$rel")"
cp "$CAND/pr/$rel" "$rel"
git add --sparse -f -- "$rel"
done
# The commit may contain ONLY additions relative to main.
bad="$(git diff --cached --name-status --no-renames "$main_sha" | grep -v '^A' || true)"
if [[ -n "$bad" ]]; then echo "::error::non-additive changes staged:"; echo "$bad"; exit 1; fi
if git diff --cached --quiet; then echo "::error::nothing to commit"; exit 1; fi
git commit -q -m "repd($IN_LABEL): release candidate from run ${GITHUB_RUN_ID} (new files only)"
test "$(git rev-parse --abbrev-ref HEAD)" = "$BRANCH"
case "$BRANCH" in main|master|gh-pages) exit 1;; esac
git push "${lease[@]}" origin "HEAD:refs/heads/$BRANCH"
- name: Open or update the DRAFT pull request
shell: bash
run: |
set -euo pipefail
body="$RUNNER_TEMP/pr_body.md"
head -c 60000 "$CAND/run_report.md" > "$body"
printf '\n\nWorkflow run: %s/%s/actions/runs/%s\n' "$GITHUB_SERVER_URL" "$GITHUB_REPOSITORY" "$GITHUB_RUN_ID" >> "$body"
if [[ -f "$CAND/proposed_large_files_allowlist_additions.txt" ]]; then
printf '\nFiles over 5 MB were left out of this PR. Proposed allow-list entries (separate owner PR):\n\n```\n' >> "$body"
cat "$CAND/proposed_large_files_allowlist_additions.txt" >> "$body"
printf '```\n' >> "$body"
fi
number="$(gh pr list --head "$BRANCH" --base main --state open --json number --jq '.[0].number // empty')"
if [[ -n "$number" ]]; then
gh pr edit "$number" --body-file "$body"
echo "Updated draft PR #$number"
else
gh pr create --draft --base main --head "$BRANCH" \
--title "REPD $IN_LABEL release candidate (draft, new files only)" --body-file "$body"
fiGlobalGrid2050 Renewable Energy Planning Database (REPD) Sync Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/repd_sync.yml · lines 1–34 of 34 · 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.
- 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 “Ventus REPD Master Sync”; runs GlobalGrid2050 Renewable Energy Planning Database (REPD) Updater (`scripts/repd_updater.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) Updater (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Ventus REPD Master Sync
- 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_sync.yml:1-34 · blob f4e28e5c23e5a35b83fbeffd4a000176e351e7e4 · 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: Ventus REPD Master Sync
on:
workflow_dispatch:
jobs:
update-repd:
name: Generate Master GeoJSON
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout Repository
uses: actions/checkout@v4
- name: 🐍 Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: 📦 Install Spatial Dependencies
run: |
python -m pip install --upgrade pip
pip install pandas pyyaml requests pyproj beautifulsoup4
- name: ⚡ Execute REPD Master Updater
run: python scripts/repd_updater.py
env:
PYTHONPATH: .
- name: 🛡️ Commit Optimized Data
run: |
git config --global user.name "Ventus-Bot"
git config --global user.email "bot@ventus.ltd"
git add dist/repd_master.json dist/manifest_v4.json
git diff --quiet && git diff --staged --quiet || (git commit -m "REPD Master Update: $(date +'%Y-%m-%d')" && git push)GlobalGrid2050 Replace V7 GIS Single-Line Diagram (SLD) Asset Buttons with Pipeline Dropdown Status Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/replace-v7-gis-sld-asset-buttons-with-pipeline-dropdown-status.yml · lines 1–54 of 54 · Entry point
- What it does
- It runs solar and battery storage (BESS). Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'sld'): 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, battery storage (BESS).
- 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 Replace V7 GIS Single-Line Diagram (SLD) Asset Buttons with Pipeline Dropdown Status (`scripts/replace_v7_gis_sld_asset_buttons_with_pipeline_dropdown_status.py`) and GlobalGrid2050 Test V7 GIS Single-Line Diagram (SLD) Asset Pipeline Dropdown Status (`scripts/test_v7_gis_sld_asset_pipeline_dropdown_status.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 Replace V7 GIS Single-Line Diagram (SLD) Asset Buttons with Pipeline Dropdown Status (workflow run), GlobalGrid2050 Test V7 GIS Single-Line Diagram (SLD) Asset Pipeline Dropdown Status (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Replace V7 GIS SLD Asset Buttons With Pipeline Dropdown Status
- 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/replace-v7-gis-sld-asset-buttons-with-pipeline-dropdown-status.yml:1-54 · blob 70d2285dfc49324e6236466ad7653806e68f87ac · 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: Replace V7 GIS SLD Asset Buttons With Pipeline Dropdown Status
on:
workflow_dispatch:
permissions:
contents: write
jobs:
replace-asset-buttons-status:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GRIDBOT_PAT }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Apply status aware asset pipeline dropdown patch
run: python scripts/replace_v7_gis_sld_asset_buttons_with_pipeline_dropdown_status.py
- name: Run static checks
run: python scripts/test_v7_gis_sld_asset_pipeline_dropdown_status.py
- name: Commit and push status aware asset pipeline dropdown update
env:
PAT: ${{ secrets.GRIDBOT_PAT }}
run: |
git config --global user.name "gridbot"
git config --global user.email "bot@globalgrid2050.com"
git pull --rebase --autostash origin main
git add \
solar-bess-topology-v7/gis-sld-financial-sandbox/index.html \
solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-map.js \
solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-ui.js \
solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5.css \
scripts/replace_v7_gis_sld_asset_buttons_with_pipeline_dropdown_status.py \
scripts/test_v7_gis_sld_asset_pipeline_dropdown_status.py \
gridbot_reports/replace_v7_gis_sld_asset_buttons_with_pipeline_dropdown_status.md
if git diff --cached --quiet; then
echo "No status aware asset dropdown changes to commit."
exit 0
fi
git commit -m "Add V7 GIS SLD asset status dropdown filters"
git pull --rebase --autostash origin main
git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:mainGlobalGrid2050 Replace V7 GIS Single-Line Diagram (SLD) Asset Buttons with Pipeline Dropdown Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/replace-v7-gis-sld-asset-buttons-with-pipeline-dropdown.yml · lines 1–54 of 54 · Entry point
- What it does
- It runs solar and battery storage (BESS). Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'sld'): 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, battery storage (BESS).
- 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 Replace V7 GIS Single-Line Diagram (SLD) Asset Buttons with Pipeline Dropdown (`scripts/replace_v7_gis_sld_asset_buttons_with_pipeline_dropdown.py`) and `scripts/test_v7_gis_sld_asset_pipeline_dropdown.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 Replace V7 GIS Single-Line Diagram (SLD) Asset Buttons with Pipeline Dropdown (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Replace V7 GIS SLD Asset Buttons With Pipeline Dropdown
- 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/replace-v7-gis-sld-asset-buttons-with-pipeline-dropdown.yml:1-54 · blob c02c59c3c6a0c048b1ef33fb431dfdb250168b00 · 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: Replace V7 GIS SLD Asset Buttons With Pipeline Dropdown
on:
workflow_dispatch:
permissions:
contents: write
jobs:
replace-asset-buttons:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GRIDBOT_PAT }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Apply asset pipeline dropdown patch
run: python scripts/replace_v7_gis_sld_asset_buttons_with_pipeline_dropdown.py
- name: Run static checks
run: python scripts/test_v7_gis_sld_asset_pipeline_dropdown.py
- name: Commit and push asset pipeline dropdown update
env:
PAT: ${{ secrets.GRIDBOT_PAT }}
run: |
git config --global user.name "gridbot"
git config --global user.email "bot@globalgrid2050.com"
git pull --rebase --autostash origin main
git add \
solar-bess-topology-v7/gis-sld-financial-sandbox/index.html \
solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-map.js \
solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5-ui.js \
solar-bess-topology-v7/gis-sld-financial-sandbox/gis-sld-v5.css \
scripts/replace_v7_gis_sld_asset_buttons_with_pipeline_dropdown.py \
scripts/test_v7_gis_sld_asset_pipeline_dropdown.py \
gridbot_reports/replace_v7_gis_sld_asset_buttons_with_pipeline_dropdown.md
if git diff --cached --quiet; then
echo "No asset pipeline dropdown changes to commit."
exit 0
fi
git commit -m "Replace V7 GIS SLD asset buttons with pipeline dropdown"
git pull --rebase --autostash origin main
git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:mainGlobalGrid2050 Repo Guard Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/repo_guard.yml · lines 1–86 of 86 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Inputs & outputs
- Out: commits pushed to the repository.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Runs `.github/scripts/size_guard.sh`.
- 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 Size Guard (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Repository 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/repo_guard.yml:1-86 · blob 097dca09f743de5b60322920460114be42b33774 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Repository Guard
on:
workflow_dispatch:
inputs:
scan_scope:
description: Scan changed files only or the whole repo
required: false
default: all
type: choice
options:
- all
- changed
enforce:
description: Fail workflow if threshold is breached
required: false
default: 'false'
type: choice
options:
- 'false'
- 'true'
permissions:
contents: write
concurrency:
group: repository-guard
cancel-in-progress: true
jobs:
size-guard:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run repository size guard for push or pull request
if: github.event_name != 'workflow_dispatch'
env:
GITHUB_REPOSITORY: ${{ github.repository }}
DATASCIENCE_WARN_FILE_MB: '5'
DATASCIENCE_FAIL_FILE_MB: '25'
DATASCIENCE_HARD_FILE_MB: '100'
DATASCIENCE_SIZE_GUARD_SCOPE: changed
DATASCIENCE_ENFORCE_SIZE_GUARD: 'true'
DATASCIENCE_BASE_REF: origin/main
run: bash .github/scripts/size_guard.sh
- name: Run repository size guard manually
if: github.event_name == 'workflow_dispatch'
env:
GITHUB_REPOSITORY: ${{ github.repository }}
DATASCIENCE_WARN_FILE_MB: '5'
DATASCIENCE_FAIL_FILE_MB: '25'
DATASCIENCE_HARD_FILE_MB: '100'
DATASCIENCE_SIZE_GUARD_SCOPE: ${{ github.event.inputs.scan_scope }}
DATASCIENCE_ENFORCE_SIZE_GUARD: ${{ github.event.inputs.enforce }}
DATASCIENCE_BASE_REF: origin/main
run: bash .github/scripts/size_guard.sh
- name: Upload guard reports
if: always()
uses: actions/upload-artifact@v4
with:
name: repo-size-guard-report
path: |
data_science_protocol/audit_reports/REPO_SIZE_GUARD_LATEST.md
data_science_protocol/audit_reports/json/REPO_SIZE_GUARD_LATEST.json
- name: Commit guard reports on manual dispatch
if: github.event_name == 'workflow_dispatch'
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/
if git diff --cached --quiet; then
echo "No repository guard report changes to commit"
exit 0
fi
git commit -m "docs: update repository size guard report"
git pull --rebase origin main
git push origin HEAD:mainGlobalGrid2050 Repo Size Guard Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/repo_size_guard.yml · lines 1–18 of 18 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Runs GlobalGrid2050 Gridbot Repo Size Guard (`scripts/gridbot_repo_size_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 Repo Size Guard (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Repo Size Guard
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/repo_size_guard.yml:1-18 · blob 8ccef2646b11f7a6aa0d6690b6ad664b1c094e63 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Repo Size Guard
on:
workflow_dispatch:
permissions:
contents: read
jobs:
repo-size-guard:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check changed files against size and raw-data rules
run: python scripts/gridbot_repo_size_guard.py --scope changed --warn-mb 5 --fail-mb 25GlobalGrid2050 Restore V8 Battery Energy Storage System (BESS) MapLibre Standalone Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/restore-v8-bess-maplibre-standalone.yml · lines 1–66 of 66 · Entry point
- What it does
- It runs battery storage (BESS) and solar. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: battery storage (BESS), solar.
- Inputs & outputs
- Out: commits pushed to the repository.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Runs GlobalGrid2050 Test Restore V8 Battery Energy Storage System (BESS) MapLibre Standalone (`scripts/test_restore_v8_bess_maplibre_standalone.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 Test Restore V8 Battery Energy Storage System (BESS) MapLibre Standalone (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Restore V8 BESS MapLibre Standalone
- 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/restore-v8-bess-maplibre-standalone.yml:1-66 · blob ddc6b51d11518697bc331884cd0da0a0eaf6447e · 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: Restore V8 BESS MapLibre Standalone
on:
workflow_dispatch:
permissions:
contents: write
jobs:
restore-v8-bess-maplibre-standalone:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GRIDBOT_PAT }}
fetch-depth: 0
- name: Restore standalone BESS files from clean commit
run: |
git checkout f90d9e53965e83fd9a11b94e81ed23aefd3aef7f -- \
solar-bess-topology-v8/bess-gis-sld-financial-sandbox/index.html \
solar-bess-topology-v8/bess-gis-sld-financial-sandbox/bess-gis-sld-financial-sandbox.js \
solar-bess-topology-v8/bess-gis-sld-financial-sandbox/bess-gis-sld-financial-sandbox.css
- name: Write restore report
run: |
mkdir -p gridbot_reports
cat > gridbot_reports/restore_v8_bess_maplibre_standalone.md <<'EOF'
# Restore V8 BESS MapLibre Standalone App
Restored the standalone BESS GIS SLD Financial Sandbox from commit:
```text
f90d9e53965e83fd9a11b94e81ed23aefd3aef7f
```
This restores the BESS only MapLibre app with layout, finance and notes tabs, BESS container drawing, PCS and transformer layout logic, SVG SLD preview, map reset, fit and GeoJSON export.
V8 is BESS only. V7 remains the solar GIS SLD reference frame.
EOF
- name: Run restore checks
run: python scripts/test_restore_v8_bess_maplibre_standalone.py
- name: Commit and push restore
run: |
git config --global user.name "gridbot"
git config --global user.email "bot@globalgrid2050.com"
git pull --rebase --autostash origin main
git add \
solar-bess-topology-v8/bess-gis-sld-financial-sandbox/index.html \
solar-bess-topology-v8/bess-gis-sld-financial-sandbox/bess-gis-sld-financial-sandbox.js \
solar-bess-topology-v8/bess-gis-sld-financial-sandbox/bess-gis-sld-financial-sandbox.css \
gridbot_reports/restore_v8_bess_maplibre_standalone.md
if git diff --cached --quiet; then
echo "No restore changes to commit."
exit 0
fi
git commit -m "Restore V8 BESS MapLibre standalone app"
git pull --rebase --autostash origin main
git push origin HEAD:main