In this section
- GlobalGrid2050 Project Signals Acid Workflow automation · globalgrid2050 / .github/workflows/project-signals-acid.yml lines 1–120
- GlobalGrid2050 Project Signals Official Workflow automation · globalgrid2050 / .github/workflows/project-signals-official.yml lines 1–63
- GlobalGrid2050 Project Signals Trade Workflow automation · globalgrid2050 / .github/workflows/project-signals-trade.yml lines 1–86
- GlobalGrid2050 Project Signals Workflow automation · globalgrid2050 / .github/workflows/project-signals.yml lines 1–233
- GlobalGrid2050 Public Language Gate Workflow automation · globalgrid2050 / .github/workflows/public-language-gate.yml lines 1–86
- GlobalGrid2050 Publish Pipeline V923 Ledger Workflow automation · globalgrid2050 / .github/workflows/publish-pipeline-v923-ledger.yml lines 1–64
GlobalGrid2050 Project Signals Acid Workflow
A GitHub Actions workflow that builds and publishes the site. Runs on pull requests, on a schedule and by hand.
automationglobalgrid2050 / .github/workflows/project-signals-acid.yml · lines 1–120 of 120 · Entry point
- What it does
- It builds and publishes its content. Side effects: starts processes.
- Inputs & outputs
- In: JSON file suites.json; JSON file project_signals.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Project signals, acid test (all suites together, and the published file)”; runs Acid Report (`automation/news/tests/acid_report.py`) and Acid Live (`automation/news/tests/acid_live.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
- Test Solar DC Context (workflow run), GlobalGrid2050 Test Add V8 Battery Energy Storage System (BESS) Geospatial Layout Drawing (workflow run), GlobalGrid2050 Test Build V8 Battery Energy Storage System (BESS) GIS Single-Line Diagram (SLD) Financial… (workflow run), GlobalGrid2050 Test Create V8 Battery Energy Storage System (BESS) Electrical Topology Review (workflow run), GlobalGrid2050 Test Create V8 Battery Energy Storage System (BESS) Pcs Standalone (workflow run), GlobalGrid2050 Test Patch V8 Battery Energy Storage System (BESS) Tabs Small Step (workflow run), GlobalGrid2050 Test Rebuild V8 Battery Energy Storage System (BESS) from V7 GIS Frame (workflow run), GlobalGrid2050 Test Restore V8 Battery Energy Storage System (BESS) MapLibre Standalone (workflow run), and 82 more
- Used by
- none found
- Produces
- none declared
- Defines here
- Project signals, acid test (all suites together, and the published file)
- 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/project-signals-acid.yml:1-120 · blob baebe4937f036d79cd70554478bc273c57a8c0d7 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Project signals, acid test (all suites together, and the published file)
# Acid cycle of 14 Nov 2026, after the independent code review on neural-link issue 19 (finding 4: "actual
# merged-head integration is not tested"). Read-only: this workflow writes to no branch, opens no pull request
# and deploys nothing.
#
# Job "suites": at the tested commit, every project-signals test suite in one job (official, trade, index,
# planning file, combiner and the acid suite), then ONE table in the job summary: suite, tests, passed, failed.
# A test marked "known failing until the fixer's PR" (a strict xfail naming the review finding it covers) is
# counted in its own column and listed under the table; if such a test passes while the code still declares
# schema version 1 it is reported as failed, and on code that declares version 2 the marker is not applied.
# The job fails when any suite has a failure or did not run.
#
# Job "live": reads dist/project_signals.json from the branch project-signals-data and checks the real file:
# schema, no project with nothing, no item on REPD 9050 without "solar", no undated item above a dated one,
# counts by tier equal to the items, real dates, and generated_at not older than two days unless the file says
# stale. The summary names each rule that fails. On the daily schedule and on a manual run the job fails when a
# rule fails; on a pull request it only reports (the published file is not what the pull request changes).
on:
schedule:
- cron: '47 6 * * *'
workflow_dispatch:
pull_request:
paths:
- 'automation/news/signals/**'
- 'automation/news/datacentre_feed.py'
- 'automation/news/tests/test_signals_*.py'
- 'automation/news/tests/acid_*.py'
- 'automation/news/tests/fixtures/acid/**'
- '.github/workflows/project-signals*.yml'
permissions:
contents: read
concurrency:
group: project-signals-acid-${{ github.ref }}
cancel-in-progress: true
env:
DATA_BRANCH: project-signals-data
jobs:
suites:
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Every signals suite, each with its own report
run: |
python -m pip install --quiet pytest
mkdir -p "$RUNNER_TEMP/acid"
run_suite() {
name="$1"; shift
echo "::group::$name"
python -m pytest -q -p no:cacheprovider -rfEX -o junit_family=xunit1 --junitxml "$RUNNER_TEMP/acid/$name.xml" "$@" || true
echo "::endgroup::"
}
run_suite official automation/news/tests/test_signals_official.py
run_suite trade automation/news/tests/test_signals_trade.py
run_suite index automation/news/signals/tests/test_index.py
run_suite planning_file automation/news/tests/test_signals_planning_file.py
run_suite combiner automation/news/signals/tests/test_combine.py
run_suite gate automation/news/signals/tests/test_gate.py
run_suite acid automation/news/tests/test_signals_acid.py
- name: One table (suite, tests, passed, failed); fails if any suite failed
run: |
python automation/news/tests/acid_report.py "$RUNNER_TEMP/acid" --commit "$(git rev-parse HEAD)" \
--summary "$GITHUB_STEP_SUMMARY" --json "$RUNNER_TEMP/acid/suites.json"
- uses: actions/upload-artifact@v4
if: always()
with:
name: project-signals-acid-suites
path: ${{ runner.temp }}/acid/
retention-days: 14
live:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Read the published file from the data branch
run: |
mkdir -p "$RUNNER_TEMP/live"
code=0
git ls-remote --exit-code --heads origin "$DATA_BRANCH" >/dev/null || code=$?
if [ "$code" = "2" ]; then
echo "## Project signals: live acid check" >> "$GITHUB_STEP_SUMMARY"
echo "**Failed: schema** (the branch $DATA_BRANCH does not exist: nothing is published)" >> "$GITHUB_STEP_SUMMARY"
echo "missing" > "$RUNNER_TEMP/live/state"
elif [ "$code" != "0" ]; then
echo "::error::could not ask the remote for $DATA_BRANCH (exit $code)"; exit 1
else
git fetch --depth=1 origin "$DATA_BRANCH"
echo "DATA_SHA=$(git rev-parse FETCH_HEAD)" >> "$GITHUB_ENV"
git show FETCH_HEAD:dist/project_signals.json > "$RUNNER_TEMP/live/project_signals.json"
echo "read" > "$RUNNER_TEMP/live/state"
fi
- name: Acid check of the real file (the summary names each rule that fails)
run: |
code=0
if [ "$(cat "$RUNNER_TEMP/live/state")" = "read" ]; then
python automation/news/tests/acid_live.py "$RUNNER_TEMP/live/project_signals.json" \
--source "dist/project_signals.json on $DATA_BRANCH at ${DATA_SHA:0:12}" --summary "$GITHUB_STEP_SUMMARY" || code=$?
else
code=1
fi
if [ "$code" != "0" ] && [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
echo "On a pull request the live check only reports: the published file is not what this pull request changes. The daily run fails on the same result." >> "$GITHUB_STEP_SUMMARY"
echo "::warning::live acid check: one or more rules fail on the published file (see the job summary)"
exit 0
fi
exit "$code"GlobalGrid2050 Project Signals Official Workflow
A GitHub Actions workflow. Runs on pull requests.
automationglobalgrid2050 / .github/workflows/project-signals-official.yml · lines 1–63 of 63 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Inputs & outputs
- In: JSON file planning_registers.json; JSON file aliases.json; JSON file top200_solar.json; JSON file part-official.json; JSON file planning-files.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Project signals, official sources and planning files (probe)”; runs Official (`automation/news/signals/official.py`) and Planning File (`automation/news/signals/planning_file.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
- Test Signals Official (workflow run), Test Signals Planning File (workflow run), Official (workflow run), Planning File (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Project signals, official sources and planning files (probe)
- 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/project-signals-official.yml:1-63 · blob c6577f5ca0526d84fe3604e5489fdfc425d088e7 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Project signals, official sources and planning files (probe)
# Owner, 14 Nov 2026: news signals for the 200 largest solar projects in the REPD, and "Default to its local
# authority planning application file if nothing significant discovered."
# This workflow is a read-only probe: on a pull request that touches the official-source fetcher, the planning-file
# builder or their tables, it runs both for the 200 projects and prints coverage in the job summary. It writes to no
# branch, opens no pull request and deploys nothing. The combined file dist/project_signals.json is built by a
# separate workflow (project-signals.yml).
on:
pull_request:
paths:
- 'automation/news/signals/official.py'
- 'automation/news/signals/planning_file.py'
- 'automation/news/signals/planning_registers.json'
- 'automation/news/signals/aliases.json'
- 'automation/news/signals/top200_solar.json'
- 'automation/news/tests/test_signals_official.py'
- 'automation/news/tests/test_signals_planning_file.py'
- '.github/workflows/project-signals-official.yml'
permissions:
contents: read
concurrency:
group: project-signals-official-${{ github.ref }}
cancel-in-progress: true
jobs:
probe:
runs-on: ubuntu-latest
timeout-minutes: 40
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Tests (offline)
run: |
python -m pip install --quiet pytest
python -m pytest -q -p no:cacheprovider automation/news/tests/test_signals_official.py automation/news/tests/test_signals_planning_file.py
- name: Official sources for the 200 (no branch written)
run: |
mkdir -p "$RUNNER_TEMP/signals"
python automation/news/signals/official.py --out "$RUNNER_TEMP/signals/part-official.json" --probe "$RUNNER_TEMP/signals/official.md"
- name: Source discovery (what each official source returns)
if: always()
run: python automation/news/signals/official.py --discover "$RUNNER_TEMP/signals/discover.md"
- name: Planning files for the 200, verified by fetching registers and direct links
if: always()
run: |
python automation/news/signals/planning_file.py --verify --official "$RUNNER_TEMP/signals/part-official.json" --out "$RUNNER_TEMP/signals/planning-files.json" --probe "$RUNNER_TEMP/signals/planning.md"
- name: Summary
if: always()
run: |
for f in planning.md official.md; do
if [ -f "$RUNNER_TEMP/signals/$f" ]; then cat "$RUNNER_TEMP/signals/$f" >> "$GITHUB_STEP_SUMMARY"; echo >> "$GITHUB_STEP_SUMMARY"; fi
done
- uses: actions/upload-artifact@v4
if: always()
with:
name: project-signals-official
path: ${{ runner.temp }}/signals/
retention-days: 14GlobalGrid2050 Project Signals Trade Workflow
A GitHub Actions workflow that builds and publishes the site. Runs on pull requests.
automationglobalgrid2050 / .github/workflows/project-signals-trade.yml · lines 1–86 of 86 · Entry point
- What it does
- It builds and publishes its content. Side effects: starts processes.
- Inputs & outputs
- In: JSON file aliases.json; JSON file top200_solar.json; JSON file project_signals_trade.json; JSON file trade_cache.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Project signals, trade press (probe)”; runs Trade (`automation/news/signals/trade.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
- Trade (workflow run), Test Signals Trade (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Project signals, trade press (probe)
- 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/project-signals-trade.yml:1-86 · blob e63630b06d8e0da9e3653f9019fef1bf444b8fe3 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Project signals, trade press (probe)
# Owner, 14 Nov 2026: "See if you can create fetch scripts that can find at least one news signal for the top 200
# projects only in the REPD database specifically for solar only please."
# Team "trade" of the project-signals contract: automation/news/signals/trade.py asks each trade site's own public
# search for each project's alias and keeps headlines and links only. This workflow is the read-only probe: on a
# pull request that touches the script it runs the offline tests, then the script against the live sites, and
# prints in the job summary what each site offers, what is refused, how many of the 200 projects have a trade
# signal, and the comparison with the hand-checked ground truth. It writes to no branch, opens no pull request and
# deploys nothing. The scheduled run that publishes the combined file belongs to project-signals.yml.
on:
pull_request:
paths:
- 'automation/news/signals/trade.py'
- 'automation/news/signals/aliases.json'
- 'automation/news/signals/top200_solar.json'
- 'automation/news/datacentre_feed.py'
- 'automation/news/tests/test_signals_trade.py'
- 'automation/news/tests/fixtures/signals/**'
- '.github/workflows/project-signals-trade.yml'
permissions:
contents: read
concurrency:
group: project-signals-trade-${{ github.ref }}
cancel-in-progress: true
jobs:
routes:
# Quick look at what each site offers: every search route of every site, first ten projects only.
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Try every search route of every site (first ten projects)
run: |
python automation/news/signals/trade.py \
--out "$RUNNER_TEMP/routes/project_signals_trade.json" \
--probe "$RUNNER_TEMP/routes/routes.md" \
--truth automation/news/tests/fixtures/signals/truth_trade.json \
--discover --limit 10 --batch 10 --host-seconds 240 --sitemap-files 25 --page-lookups 20 --feed-pages 12
cat "$RUNNER_TEMP/routes/routes.md" >> "$GITHUB_STEP_SUMMARY"
cat "$RUNNER_TEMP/routes/routes.md"
- uses: actions/upload-artifact@v4
if: always()
with:
name: project-signals-trade-routes
path: ${{ runner.temp }}/routes/
retention-days: 14
probe:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Tests (offline fixtures)
run: |
python -m pip install --quiet pytest
python -m pytest -q -p no:cacheprovider automation/news/tests/test_signals_trade.py
- name: Search every site for all 200 projects and report (no branch written)
run: |
python automation/news/signals/trade.py \
--out "$RUNNER_TEMP/trade/project_signals_trade.json" \
--cache "$RUNNER_TEMP/trade/trade_cache.json" \
--probe "$RUNNER_TEMP/trade/probe.md" \
--truth automation/news/tests/fixtures/signals/truth_trade.json \
--batch 200 --per-host-cap 1000 --host-seconds 1200 \
--sitemap-files 600 --page-lookups 300 --feed-pages 150
cat "$RUNNER_TEMP/trade/probe.md" >> "$GITHUB_STEP_SUMMARY"
cat "$RUNNER_TEMP/trade/probe.md"
- uses: actions/upload-artifact@v4
if: always()
with:
name: project-signals-trade-probe
path: ${{ runner.temp }}/trade/
retention-days: 14GlobalGrid2050 Project Signals Workflow
A GitHub Actions workflow that builds and publishes the site. Runs on pull requests, on a schedule and by hand.
automationglobalgrid2050 / .github/workflows/project-signals.yml · lines 1–233 of 233 · Entry point
- What it does
- It builds and publishes its content. Side effects: reads or writes files; starts processes.
- Inputs & outputs
- In: JSON file previous.json; JSON file index.json; JSON file gdelt_cache.json; JSON file planning.json; JSON file official.json; JSON file trade.json; JSON file project_signals.json; command-line arguments.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Project signals (top 200 solar, twice a day, data branch)”.
- 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
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- Project signals (top 200 solar, twice a day, data branch)
- 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/project-signals.yml:1-233 · blob 888b083165780e3e4957165f54ec9a232af374a9 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, process · domain stage: unknown · users: none · canonical: production_core
name: Project signals (top 200 solar, twice a day, data branch)
# Owner, 14 Nov 2026: "See if you can create fetch scripts that can find at least one news signal for the top 200
# projects only in the REPD database specifically for solar only please." and "Default to its local authority
# planning application file if nothing significant discovered."
# An owner-requested scheduled workflow (an exception to the 000_freeze manual-only rule, like pipeline-headlines.yml).
# It runs the fetch scripts under automation/news/signals/ (official.py and trade.py only if they are present;
# index.py: BBC News RSS, Guardian RSS, GDELT), then combine.py, and publishes ONE file the page reads,
# dist/project_signals.json, to the branch project-signals-data (with the part files and the GDELT answer cache
# beside it under dist/signals_state/, so the next run keeps earlier signals and asks each source only for what is
# stale; trade.py and index.py each search a rotating share of the 200 per run).
# It never pushes to main, never opens a PR, never deploys. A push made with GITHUB_TOKEN starts no other workflow.
# One script or one source failing does not fail the job, and is never hidden: the combiner (contract version 2)
# gives every part its own status and collected_at, keeps the items published before with their own times when a
# part fails or comes back empty (status "stale"), and moves generated_at only when a live collection succeeded.
# The combiner refuses to write the file (exit 3, the job fails, nothing is pushed, the reason is in the job
# summary) when the file fails its schema check or the counts fall by more than a third. Only a run on the default
# branch publishes. The job summary reports the 200 by tier: recent news, official, archive only, planning file
# only, nothing.
# Two slots a day at off-peak minutes; scheduled runs in this repository can arrive late or be dropped.
# On a pull request that touches the scripts, the "probe" job (read-only, writes to no branch) runs index.py and the
# combiner against the live sources and prints coverage, source health and the comparison with the reviewers'
# ground truth in the job summary.
on:
schedule:
- cron: '23 5,17 * * *'
workflow_dispatch:
pull_request:
paths:
- 'automation/news/signals/**'
- 'automation/news/datacentre_feed.py'
- 'automation/news/tests/test_signals_*.py'
- '.github/workflows/project-signals.yml'
permissions:
contents: read
concurrency:
group: project-signals-${{ github.event_name == 'pull_request' && github.ref || 'data' }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
DATA_BRANCH: project-signals-data
SIG: automation/news/signals
# every suite of the signals code, in one call: the three collectors, the planning files and the combiner
SIGNAL_TESTS: >-
automation/news/signals/tests
automation/news/tests/test_signals_official.py
automation/news/tests/test_signals_planning_file.py
automation/news/tests/test_signals_trade.py
jobs:
probe:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 75
permissions:
contents: read
env:
GDELT_MAX: '60'
GDELT_EXPERIMENT: '1'
GDELT_SECONDS: '420'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Tests (offline)
run: |
python -m pip install --quiet pytest
python -m pytest -q -p no:cacheprovider $SIGNAL_TESTS
- name: Read the published file from the data branch (read only)
run: |
mkdir -p "$RUNNER_TEMP/parts"
code=0; git ls-remote --exit-code --heads origin "$DATA_BRANCH" >/dev/null || code=$?
if [ "$code" = 0 ]; then
git fetch --depth=1 origin "$DATA_BRANCH"
git show FETCH_HEAD:dist/project_signals.json > "$RUNNER_TEMP/previous.json" || rm -f "$RUNNER_TEMP/previous.json"
else
echo "no published file read (ls-remote exit $code); the probe combines without one"
fi
- name: Run index.py against the live sources (no branch written)
run: |
python "$SIG/index.py" --out "$RUNNER_TEMP/parts/index.json" --probe "$RUNNER_TEMP/index-probe.md" \
--cache "$RUNNER_TEMP/parts/gdelt_cache.json" --gdelt-max "$GDELT_MAX" --gdelt-experiment "$GDELT_EXPERIMENT" --gdelt-seconds "$GDELT_SECONDS"
cat "$RUNNER_TEMP/index-probe.md" | tee -a "$GITHUB_STEP_SUMMARY"
- name: Other teams' scripts, only if present on this ref
run: |
for team in official trade; do
script="$SIG/$team.py"
if [ -f "$script" ]; then
timeout 20m python "$script" --out "$RUNNER_TEMP/parts/$team.json" || echo "::warning::$team.py did not finish; the combiner runs without it"
else
echo "$team.py is not on this ref; the combiner runs without it"
fi
done
- name: Combine
run: |
if [ -f "$SIG/planning_file.py" ]; then
timeout 20m python "$SIG/planning_file.py" --verify --out "$RUNNER_TEMP/parts/planning.json" || echo "::warning::planning_file.py failed; the combiner uses the alias table and its own last resort"
fi
python "$SIG/combine.py" --planning "$RUNNER_TEMP/parts/planning.json" \
--official "$RUNNER_TEMP/parts/official.json" --trade "$RUNNER_TEMP/parts/trade.json" \
--index "$RUNNER_TEMP/parts/index.json" --previous "$RUNNER_TEMP/previous.json" \
--out "$RUNNER_TEMP/parts/project_signals.json" --summary "$RUNNER_TEMP/combine-probe.md" || code=$?
cat "$RUNNER_TEMP/combine-probe.md" >> "$GITHUB_STEP_SUMMARY"
sed -n '1,40p' "$RUNNER_TEMP/combine-probe.md"
exit "${code:-0}"
- uses: actions/upload-artifact@v4
if: always()
with:
name: project-signals-probe
path: |
${{ runner.temp }}/parts/*.json
${{ runner.temp }}/*-probe.md
retention-days: 14
refresh:
# only the default branch publishes: a manual run on another branch must not overwrite the published file
if: github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
runs-on: ubuntu-latest
timeout-minutes: 110
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Tests (offline)
run: |
python -m pip install --quiet pytest
python -m pytest -q -p no:cacheprovider $SIGNAL_TESTS
- name: Bring in the previous file, parts and cache from the data branch
run: |
mkdir -p dist/signals_state
code=0; git ls-remote --exit-code --heads origin "$DATA_BRANCH" >/dev/null || code=$?
if [ "$code" != 0 ] && [ "$code" != 2 ]; then
echo "::error::could not read the data branch (ls-remote exit $code); a run that has not read the published state must not publish"
exit 1
fi
if [ "$code" = 0 ]; then
git fetch --depth=1 origin "$DATA_BRANCH"
echo "DATA_SHA=$(git rev-parse FETCH_HEAD)" >> "$GITHUB_ENV"
git show FETCH_HEAD:dist/project_signals.json > dist/project_signals.json || rm -f dist/project_signals.json
for name in official.json trade.json index.json gdelt_cache.json trade_cache.json; do
git show "FETCH_HEAD:dist/signals_state/$name" > "dist/signals_state/$name" 2>/dev/null || rm -f "dist/signals_state/$name"
done
fi
mkdir -p "$RUNNER_TEMP/parts"
- name: Official sources (only if the script is present)
continue-on-error: true
run: |
if [ -f "$SIG/official.py" ]; then
timeout 25m python "$SIG/official.py" --out "$RUNNER_TEMP/parts/official.json"
else
echo "official.py is not on this ref"
fi
- name: Trade press (only if the script is present)
continue-on-error: true
run: |
if [ -f "$SIG/trade.py" ]; then
timeout 40m python "$SIG/trade.py" --out "$RUNNER_TEMP/parts/trade.json" --cache dist/signals_state/trade_cache.json
else
echo "trade.py is not on this ref"
fi
- name: BBC, Guardian and GDELT
continue-on-error: true
run: |
timeout 35m python "$SIG/index.py" --out "$RUNNER_TEMP/parts/index.json" --previous dist/signals_state/index.json \
--cache dist/signals_state/gdelt_cache.json --gdelt-max 80 --gdelt-seconds 1200 --probe "$RUNNER_TEMP/index-report.md"
- name: Keep the last good part where a script collected nothing this run
run: |
# dist/signals_state/ is the collectors' own state. A part replaces the saved one only if it collected
# something: right schema, at least one item, not every source failed (the combiner's own test).
for team in official trade index; do
if python -c "import json,sys; sys.path.insert(0, sys.argv[2]); import combine as C; good, why = C._part_good(json.load(open(sys.argv[1]))); print(why); sys.exit(0 if good else 1)" "$RUNNER_TEMP/parts/$team.json" "$SIG"; then
cp "$RUNNER_TEMP/parts/$team.json" "dist/signals_state/$team.json"
else
echo "::warning::$team: nothing collected in this run; the combiner marks the part stale and keeps what was published before"
fi
done
- name: Combine into dist/project_signals.json
run: |
if [ -f "$SIG/planning_file.py" ]; then
timeout 20m python "$SIG/planning_file.py" --verify --out "$RUNNER_TEMP/parts/planning.json" || echo "::warning::planning_file.py failed; the combiner uses the alias table and its own last resort"
fi
# The parts of THIS run only: a part that is missing, empty or failed is marked stale by the combiner and
# its items come from the published file with their own collected_at. Exit 3: not written, nothing pushed.
python "$SIG/combine.py" --planning "$RUNNER_TEMP/parts/planning.json" --official "$RUNNER_TEMP/parts/official.json" \
--trade "$RUNNER_TEMP/parts/trade.json" --index "$RUNNER_TEMP/parts/index.json" \
--previous dist/project_signals.json --out dist/project_signals.json \
--summary "$RUNNER_TEMP/combine-report.md"
- name: Summary
if: always()
run: |
for f in "$RUNNER_TEMP/combine-report.md" "$RUNNER_TEMP/index-report.md"; do
if [ -f "$f" ]; then cat "$f" >> "$GITHUB_STEP_SUMMARY"; fi
done
- name: Publish to the data branch
run: |
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
pub="$RUNNER_TEMP/pub"
if [ -n "${DATA_SHA:-}" ]; then
git worktree add --detach "$pub" "$DATA_SHA"
else
git worktree add --detach "$pub" HEAD
git -C "$pub" checkout --orphan project-signals-tmp
git -C "$pub" rm -rq --cached .
find "$pub" -mindepth 1 -maxdepth 1 ! -name .git -exec rm -rf {} +
fi
mkdir -p "$pub/dist/signals_state"
cp dist/project_signals.json "$pub/dist/project_signals.json"
for name in official.json trade.json index.json gdelt_cache.json trade_cache.json; do
if [ -f "dist/signals_state/$name" ]; then cp "dist/signals_state/$name" "$pub/dist/signals_state/$name"; fi
done
printf '%s\n' "Published by .github/workflows/project-signals.yml. Headlines and links only." \
"dist/project_signals.json (schema project-signals.v2) is read by the Pipeline News page; dist/signals_state/ is the run's own state." \
"generated_at is the newest successful live collection, not the time of this commit; see parts for each part's status." \
"Do not edit by hand." > "$pub/README.txt"
git -C "$pub" add dist README.txt
if git -C "$pub" diff --cached --quiet; then
echo "no change"; exit 0
fi
git -C "$pub" commit -q -m "project signals $(date -u +%Y-%m-%dT%H:%MZ)"
git -C "$pub" push origin "HEAD:refs/heads/$DATA_BRANCH"
- uses: actions/upload-artifact@v4
if: always()
with:
name: project-signals
path: |
dist/project_signals.json
dist/signals_state/*.json
retention-days: 14GlobalGrid2050 Public Language Gate Workflow
A GitHub Actions workflow that builds and publishes the site. Runs on push, on pull requests and on a schedule.
automationglobalgrid2050 / .github/workflows/public-language-gate.yml · lines 1–86 of 86 · Entry point
- What it does
- It builds and publishes its content. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage field_execution (path word 'gate'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work.
- Inputs & outputs
- In: JSON file homepage-owner.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Runs GlobalGrid2050 Import Homepage Owner (`scripts/import_homepage_owner.py`) and GlobalGrid2050 Check Public Language (`scripts/check_public_language.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), GlobalGrid2050 Check Public Language (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Public language gate
- 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/public-language-gate.yml:1-86 · blob f0ed9ee3bf27b7130c3e957f93a1997545230470 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: field_execution · users: EPC_contractor, landowner_planner · canonical: production_core
name: Public language gate
# Register entry 24: the rule that certain words must not appear in public text
# was enforced by reading, and reading does not enforce. On 20 September 2026
# the published manual carried twenty reserved words, every one inside a
# disclaimer written to protect the reader. Intent is not the test.
#
# This check needs only Python, repository files and the public hash-pinned
# homepage bundle. Use a fresh hosted workspace so an offline private runner
# cannot leave the publication gate permanently queued.
on:
push:
branches: [main]
paths:
- 'index.html'
- 'status.html'
- 'historical_builds.html'
- 'compute/**'
- 'kuiper-grid/**'
- 'scripts/check_public_language.py'
- 'scripts/import_homepage_owner.py'
- 'catalogue/homepage-owner.json'
- '.github/workflows/public-language-gate.yml'
pull_request:
branches: [main]
workflow_dispatch:
schedule:
# hourly, so a page that drifts is caught even without a push
- cron: '35 * * * *'
permissions:
contents: read
concurrency:
group: public-language-gate-${{ github.ref }}
cancel-in-progress: true
jobs:
gate:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: The gate itself must be present
shell: bash
run: |
if [[ ! -f scripts/check_public_language.py || ! -f scripts/import_homepage_owner.py ]]; then
echo "FAIL: a gate script is missing. Nothing was checked."
echo "A check that cannot run is not a pass."
exit 1
fi
echo "gate scripts present"
- name: Python must be present
shell: bash
run: python --version
- name: Assemble the hash-pinned homepage used by Pages
shell: bash
run: python scripts/import_homepage_owner.py
- name: Show the published surface
shell: bash
run: python scripts/check_public_language.py --list
- name: Gate
shell: bash
run: python scripts/check_public_language.py
- name: What a failure means
if: failure()
shell: bash
run: |
echo "This page must not be published as it stands."
echo "Either the wording changes, or the rule does - deliberately,"
echo "in scripts/check_public_language.py, with a reason."GlobalGrid2050 Publish Pipeline V923 Ledger Workflow
A GitHub Actions workflow that builds and publishes the site. Runs on push and by hand.
automationglobalgrid2050 / .github/workflows/publish-pipeline-v923-ledger.yml · lines 1–64 of 64 · Entry point
- What it does
- It builds and publishes its content. Side effects: starts processes.
- Inputs & outputs
- In: JSON file registry.json. 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 “Publish Pipeline News version ledger with full Python and browser checks”; runs Verify (`automation/pipeline_release/verify.py`); 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
- Test Registry Metadata (workflow run), Verify (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Publish Pipeline News version ledger with full Python and browser checks
- 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/publish-pipeline-v923-ledger.yml:1-64 · blob dd651621d04fc903e283323f6411f2f2f7821ac5 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Publish Pipeline News version ledger with full Python and browser checks
# Targeted release metadata refresh; preserves all immutable version folders.
on:
push:
branches: [main]
paths:
- 'automation/pipeline_release/registry.json'
- '.github/workflows/publish-pipeline-v923-ledger.yml'
workflow_dispatch:
permissions:
contents: write
actions: write
concurrency:
group: pipeline-version-ledger-publication
cancel-in-progress: false
jobs:
ledger:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
with:
ref: main
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Verify historical source+7,775 maps and regenerate published version ledger
run: |
python3 -B -m unittest discover -s automation/pipeline_release/tests -p test_registry_metadata.py -v
python3 automation/pipeline_release/verify.py --browser --check --write
- name: Commit generated version list only (retry unrelated concurrent main commits)
run: |
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add uk_renewables_pipeline/versions.json uk_renewables_pipeline/versions.html
if ! git diff --staged --quiet; then
git commit -m 'docs(pipeline-news): regenerate version catalogue through V9.24'
if git push origin HEAD:main; then
echo "Version catalogue committed successfully"
else
echo "Concurrent main update detected; reconcile without rewriting history"
git fetch origin main
if ! git show origin/main:automation/pipeline_release/registry.json | cmp -s - automation/pipeline_release/registry.json; then
echo "Registry moved during verification; refuse stale catalogue, rerun workflow from new main" >&2
exit 1
fi
git rebase origin/main
git push origin HEAD:main
fi
else
echo "Published version catalogue already current"
fi
- name: Dispatch Pages for latest source and the new versions index
env:
GH_TOKEN: ${{ github.token }}
run: |
gh workflow run deploy-pages.yml --ref main