GLOBALGRID2050 / EXPLORE CODE

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

PipelineNews Current GridAtlas V9 Deep Link Successor Workflow and 2 more files

A GitHub Actions workflow that builds and publishes the site using data from GitHub API and the GridAtlas repository. Runs on push, on a schedule and by hand.

685 lines of YAML from pipelinenews, in 3 files. Topic: Automation and CI. Section 1849 of 2044.

Cut 2026-12-06T03:07:51+00:00. A copy for reading; the repository at the stated commit is the source.

In the State lines below, domain stage, users and canonical status are rule-based first approximations from code and path evidence (rules explore-agent-rules-v1), not observed facts: the rules.

In this section

  1. PipelineNews Current GridAtlas V9 Deep Link Successor Workflow automation · pipelinenews / .github/workflows/202608300309-current-gridatlas-v9-deep-link-successor.yml lines 1–468
  2. PipelineNews Bound Hourly Atlas V9 Mission Workflow automation · pipelinenews / .github/workflows/202608300327-bound-hourly-atlas-v9-mission.yml lines 1–126
  3. PipelineNews Advance Successor to Exact Atlas Workflow automation · pipelinenews / .github/workflows/202608300415-advance-successor-to-exact-atlas.yml lines 1–91

PipelineNews Current GridAtlas V9 Deep Link Successor Workflow

A GitHub Actions workflow that builds and publishes the site using data from GitHub API and the GridAtlas repository. Runs on push, on a schedule and by hand.

automationpipelinenews / .github/workflows/202608300309-current-gridatlas-v9-deep-link-successor.yml · lines 1–468 of 468 · version 2026-08-30 03:09 · Entry point

What it does
It builds and publishes the REPD register. Side effects: changes the web page (DOM); reads or writes files; makes network requests; starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'gridatlas'): 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: data source: gridatlas data; data source: GitHub API; JSON file atlas-link-manifest.json; JSON file build-manifest.json; JSON file release-manifest.json. Out: commits pushed to the repository.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “Five-hour verified Atlas V9 deep-link successor”.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
pipelinenews · .github/workflows · workflow
Uses
Verify Current Atlas V9 Deep Link (workflow run), Build Current Atlas Link Successor (workflow run), Repair Exact Renewable Energy Planning Database (REPD) Route (workflow run), Promote Current Atlas Link (workflow run)
Used by
none found
Produces
none declared
Defines here
202608300309 Five-hour verified Atlas V9 deep-link successor
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 .github/workflows/202608300309-current-gridatlas-v9-deep-link-successor.yml:1-468 · blob 21477c8abe6c58942aaa715105fa7c840607d20f · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom, filesystem, network, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: 202608300309 Five-hour verified Atlas V9 deep-link successor
run-name: PipelineNews exact Atlas successor ${{ github.run_number }} from ${{ github.sha }}

on:
  push:
    branches: [main]
    paths:
      - '.github/workflows/202608300309-current-gridatlas-v9-deep-link-successor.yml'
      - 'orchestration/202608300309-build-current-atlas-link-successor.py'
      - 'orchestration/202608300309-promote-current-atlas-link.py'
      - 'orchestration/202608300358-repair-exact-repd-route.py'
      - 'atman/202608300309-verify-current-atlas-v9-deep-link.mjs'
  workflow_dispatch:
  schedule:
    - cron: '30 4-8 30 8 *'

permissions:
  contents: write
  actions: read

concurrency:
  group: pipelinenews-current-gridatlas-v9-successor
  cancel-in-progress: false

env:
  FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
  PYTHONDONTWRITEBYTECODE: '1'
  PYTHONPYCACHEPREFIX: /tmp/pipelinenews-pycache
  MISSION_INCEPTED_AT: '2026-08-30T03:47:00Z'
  MISSION_EXPIRES_AT: '2026-08-30T08:35:00Z'
  SOURCE_RELEASE_ID: 202608291447-pipelinenews
  RELEASE_ID: 202608300309-pipelinenews
  GENERATION: '202608300309'
  ATLAS_STATE_URL: https://ventusltd.github.io/gridatlas/state/live-set.json
  MINIMUM_ATLAS_GENERATION: '202608292311'
  GOLDEN_REPD_REF: '13599'
  BUILDER: orchestration/202608300309-build-current-atlas-link-successor.py
  PROMOTER: orchestration/202608300309-promote-current-atlas-link.py
  REPAIRER: orchestration/202608300358-repair-exact-repd-route.py
  VERIFIER: atman/202608300309-verify-current-atlas-v9-deep-link.mjs
  LOCAL_URL: http://127.0.0.1:4173/202608300309-pipelinenews/
  PUBLIC_URL: https://ventusltd.github.io/pipelinenews/releases/202608300309-pipelinenews/

jobs:
  successor:
    name: Build exact-ID successor, prove real Atlas receiver and promote
    runs-on: ubuntu-24.04
    timeout-minutes: 45
    steps:
      - name: Enforce bounded five-hour mission window
        id: window
        run: |
          set -euo pipefail
          now="$(date -u +%s)"
          starts="$(date -u -d "$MISSION_INCEPTED_AT" +%s)"
          expires="$(date -u -d "$MISSION_EXPIRES_AT" +%s)"
          if (( now < starts || now > expires )); then
            echo 'active=false' >> "$GITHUB_OUTPUT"
            echo "PipelineNews successor mission inactive outside $MISSION_INCEPTED_AT to $MISSION_EXPIRES_AT." >> "$GITHUB_STEP_SUMMARY"
            exit 0
          fi
          echo 'active=true' >> "$GITHUB_OUTPUT"

      - name: Checkout exact PipelineNews source boundary
        if: steps.window.outputs.active == 'true'
        uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
        with:
          ref: ${{ github.sha }}
          fetch-depth: 100
          persist-credentials: true

      - name: Resolve promotion-eligible Atlas receiver
        id: atlas
        if: steps.window.outputs.active == 'true'
        run: |
          set -euo pipefail
          curl --fail --location --silent --show-error --retry 3 --retry-delay 2 \
            "$ATLAS_STATE_URL" -o /tmp/atlas-state.json
          python3 -m json.tool /tmp/atlas-state.json >/dev/null

          generation="$(jq -r '.generation // empty' /tmp/atlas-state.json)"
          release_id="$(jq -r '.current.release_id // empty' /tmp/atlas-state.json)"
          live_url="$(jq -r '.current.live_url // empty' /tmp/atlas-state.json)"
          source_commit="$(jq -r '.current.source_commit // empty' /tmp/atlas-state.json)"
          publication_commit="$(jq -r '.current.publication_commit // empty' /tmp/atlas-state.json)"

          if [[ ! "$generation" =~ ^[0-9]{12}$ ]] || (( 10#$generation < 10#$MINIMUM_ATLAS_GENERATION )); then
            echo 'ready=false' >> "$GITHUB_OUTPUT"
            echo "Atlas generation $generation is below $MINIMUM_ATLAS_GENERATION; no PipelineNews mutation." >> "$GITHUB_STEP_SUMMARY"
            exit 0
          fi
          test "$(jq -r '.verification.promotion_eligible // false' /tmp/atlas-state.json)" = true
          test "$(jq -r '.verification.failed_gates // 999' /tmp/atlas-state.json)" = 0
          test "$(jq -r '.verification.commit_lineage_attested // false' /tmp/atlas-state.json)" = true
          [[ "$release_id" =~ ^[0-9]{12}-atlas-v9$ ]]
          test "$live_url" = "https://ventusltd.github.io/gridatlas/$release_id/"
          [[ "$source_commit" =~ ^[a-f0-9]{40}$ ]]
          [[ "$publication_commit" =~ ^[a-f0-9]{40}$ ]]

          curl --fail --location --silent --show-error --retry 3 --retry-delay 2 \
            "${live_url}release-manifest.json" -o /tmp/atlas-release-manifest.json
          test "$(jq -r '.release_id' /tmp/atlas-release-manifest.json)" = "$release_id"
          effective="$(curl --fail --location --silent --show-error --retry 3 --retry-delay 2 \
            --output /tmp/atlas-golden.html --write-out '%{url_effective}' \
            "${live_url}?repd_ref=${GOLDEN_REPD_REF}")"
          test "$effective" = "${live_url}?repd_ref=${GOLDEN_REPD_REF}"
          grep -q 'ventus-corev8engine.js' /tmp/atlas-golden.html

          if test -e "releases/$RELEASE_ID"; then
            test "$(jq -r '.release_id // empty' state/live-set.json)" = "$RELEASE_ID" || {
              echo "Immutable $RELEASE_ID exists without a matching live pointer" >&2
              exit 1
            }
            test "$(jq -r '.atlas_v9_receiver.release_id // empty' state/live-set.json)" = "$release_id"
            echo 'ready=false' >> "$GITHUB_OUTPUT"
            echo "PipelineNews already promotes $RELEASE_ID to Atlas $release_id." >> "$GITHUB_STEP_SUMMARY"
            exit 0
          fi

          echo 'ready=true' >> "$GITHUB_OUTPUT"
          echo "generation=$generation" >> "$GITHUB_OUTPUT"
          echo "release_id=$release_id" >> "$GITHUB_OUTPUT"
          echo "live_url=$live_url" >> "$GITHUB_OUTPUT"
          echo "source_commit=$source_commit" >> "$GITHUB_OUTPUT"
          echo "publication_commit=$publication_commit" >> "$GITHUB_OUTPUT"

      - name: Require immutable predecessor and exact main
        if: steps.atlas.outputs.ready == 'true'
        run: |
          set -euo pipefail
          test "$GITHUB_REF" = refs/heads/main
          test "$(git rev-parse HEAD)" = "$GITHUB_SHA"
          git fetch --no-tags origin main:refs/remotes/origin/main
          test "$(git rev-parse origin/main)" = "$GITHUB_SHA"
          test -d "releases/$SOURCE_RELEASE_ID"
          test ! -e "releases/$RELEASE_ID"
          test "$(jq -r '.release_id' state/live-set.json)" = "$SOURCE_RELEASE_ID"
          test "$(jq -r '.classification' state/live-set.json)" = VERIFIED_LIVE_TIMESTAMPED_RELEASE
          test -f "$BUILDER"
          test -f "$PROMOTER"
          test -f "$REPAIRER"
          test -f "$VERIFIER"
          python3 -m py_compile "$BUILDER" "$PROMOTER" "$REPAIRER"
          node --check "$VERIFIER"
          test -z "$(find . -type d -name __pycache__ -print -quit)"
          git diff --exit-code

      - name: Configure pinned Python
        if: steps.atlas.outputs.ready == 'true'
        uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
        with:
          python-version: '3.12'

      - name: Configure pinned Node
        if: steps.atlas.outputs.ready == 'true'
        uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
        with:
          node-version: '22.18.0'

      - name: Install pinned browser runtime
        if: steps.atlas.outputs.ready == 'true'
        run: |
          set -euo pipefail
          npm install --no-save --package-lock=false --ignore-scripts playwright@1.62.1
          npx playwright install --with-deps chromium

      - name: Build receiver-only successor and exact-ID repair
        if: steps.atlas.outputs.ready == 'true'
        run: |
          set -euo pipefail
          rm -rf work
          mkdir -p work/release
          python3 "$BUILDER" \
            --source "releases/$SOURCE_RELEASE_ID" \
            --output "work/release/$RELEASE_ID" \
            --release-id "$RELEASE_ID" \
            --generation "$GENERATION" \
            --source-commit "$GITHUB_SHA" \
            --atlas-state /tmp/atlas-state.json \
            --atlas-state-url "$ATLAS_STATE_URL" \
            --minimum-atlas-generation "$MINIMUM_ATLAS_GENERATION" \
            --golden-repd-ref "$GOLDEN_REPD_REF" \
            | tee work/build-result.json
          python3 "$REPAIRER" \
            --release-dir "work/release/$RELEASE_ID" \
            --golden-repd-ref "$GOLDEN_REPD_REF" \
            | tee work/exact-route-repair-result.json

          test "$(jq -r '.classification' work/build-result.json)" = DETERMINISTIC_RECEIVER_ONLY_BUILD
          test "$(jq -r '.release_id' work/build-result.json)" = "$RELEASE_ID"
          test "$(jq -r '.atlas_release_id' work/build-result.json)" = "${{ steps.atlas.outputs.release_id }}"
          test "$(jq -r '.classification' work/exact-route-repair-result.json)" = DETERMINISTIC_EXACT_REPD_ROUTE_REPAIRED
          test "$(jq -r '.golden_repd_ref' work/exact-route-repair-result.json)" = "$GOLDEN_REPD_REF"
          test "$(jq -r '.data_changes' work/exact-route-repair-result.json)" = 0
          test "$(jq -r '.news_changes' work/exact-route-repair-result.json)" = 0
          test "$(jq -r '.project_changes' work/exact-route-repair-result.json)" = 0

          node --check "work/release/$RELEASE_ID/assets/202608291447-atlas-pointer-deep-link.mjs"
          node --check "work/release/$RELEASE_ID/assets/202608291447-app.mjs"
          python3 -m json.tool "work/release/$RELEASE_ID/atlas-link-manifest.json" >/dev/null
          python3 -m json.tool "work/release/$RELEASE_ID/build-manifest.json" >/dev/null
          python3 -m json.tool "work/release/$RELEASE_ID/release-manifest.json" >/dev/null
          test "$(jq -r '.exact_identity_route.broad_search_supplement_required' "work/release/$RELEASE_ID/atlas-link-manifest.json")" = false
          test "$(jq -r '.data_changes' "work/release/$RELEASE_ID/build-manifest.json")" = 0
          test "$(jq -r '.news_changes' "work/release/$RELEASE_ID/build-manifest.json")" = 0
          test "$(jq -r '.project_changes' "work/release/$RELEASE_ID/build-manifest.json")" = 0
          diff -qr "releases/$SOURCE_RELEASE_ID/data" "work/release/$RELEASE_ID/data"

          python3 - <<'PY'
          from pathlib import Path
          import os

          source = Path('releases') / os.environ['SOURCE_RELEASE_ID']
          target = Path('work/release') / os.environ['RELEASE_ID']
          allowed = {
              'index.html',
              'assets/202608291447-atlas-pointer-deep-link.mjs',
              'assets/202608291447-app.mjs',
              'atlas-link-manifest.json',
              'build-manifest.json',
              'release-manifest.json',
              'sha256sums.txt',
          }
          for path in sorted(item for item in source.rglob('*') if item.is_file()):
              relative = path.relative_to(source).as_posix()
              if relative in allowed:
                  continue
              peer = target / relative
              if not peer.is_file() or peer.read_bytes() != path.read_bytes():
                  raise SystemExit(f'unapproved release byte change: {relative}')
          PY
          (
            cd "work/release/$RELEASE_ID"
            sha256sum --check sha256sums.txt
          )

      - name: Serve and prove local PipelineNews to Atlas V9 deep link
        id: local_proof
        if: steps.atlas.outputs.ready == 'true'
        env:
          PIPELINE_URL: ${{ env.LOCAL_URL }}
          ATLAS_URL: ${{ steps.atlas.outputs.live_url }}
          MODE: local
          OUTPUT: work/202608300309-local-atlas-v9-deep-link-proof.json
        run: |
          set -euo pipefail
          python3 -m http.server 4173 --bind 127.0.0.1 --directory work/release >work/http.log 2>&1 &
          echo $! > work/http.pid
          for attempt in $(seq 1 60); do
            if curl --fail --silent "$LOCAL_URL" >/dev/null; then break; fi
            sleep 1
          done
          node "$VERIFIER"
          test "$(jq -r '.classification' "$OUTPUT")" = VERIFIED_LOCAL_PIPELINENEWS_ATLAS_V9_DEEP_LINK
          test "$(jq -r '.expected_url' "$OUTPUT")" = "${ATLAS_URL}?repd_ref=${GOLDEN_REPD_REF}"
          test "$(jq -r '.data_boundary.record.repd_ref' "$OUTPUT")" = "$GOLDEN_REPD_REF"
          test "$(jq -r '.broad_search_supplement_requests' "$OUTPUT")" = 0
          test "$(jq -r '.pipeline.runtime.searchRequests' "$OUTPUT")" = 0
          test "$(jq -r '.synthetic_receiver' "$OUTPUT")" = false
          test "$(jq -r '.route_interceptions' "$OUTPUT")" = 0

      - name: Retain local browser diagnostics
        if: always() && steps.atlas.outputs.ready == 'true'
        uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
        with:
          name: pipelinenews-202608300309-local-atlas-link-${{ github.sha }}
          path: |
            work/202608300309-local-atlas-v9-deep-link-proof.json
            work/202608300309-local-atlas-v9-deep-link-proof-diagnostic.json
            work/202608300309-local-atlas-v9-deep-link-proof-failure.png
            work/http.log
            work/build-result.json
            work/exact-route-repair-result.json
          if-no-files-found: warn
          retention-days: 90
          compression-level: 0

      - name: Stop local server
        if: always()
        run: |
          test -f work/http.pid && kill "$(cat work/http.pid)" 2>/dev/null || true

      - name: Compare-and-swap immutable successor onto main
        if: steps.atlas.outputs.ready == 'true' && steps.local_proof.outcome == 'success'
        run: |
          set -euo pipefail
          git fetch --no-tags origin main:refs/remotes/origin/main
          test "$(git rev-parse origin/main)" = "$GITHUB_SHA"
          test ! -e "releases/$RELEASE_ID"
          cp -R "work/release/$RELEASE_ID" "releases/$RELEASE_ID"
          git add "releases/$RELEASE_ID"
          mapfile -t staged < <(git diff --cached --name-only)
          test "${#staged[@]}" -gt 10
          for path in "${staged[@]}"; do
            case "$path" in
              "releases/$RELEASE_ID"/*) ;;
              *) echo "unexpected staged path: $path" >&2; exit 1 ;;
            esac
          done
          git config user.name pipelinenews-atlas-link-release-bot
          git config user.email actions@users.noreply.github.com
          git commit -m "202608300309: publish verified Atlas V9 exact-REPD candidate"
          publication_commit="$(git rev-parse HEAD)"
          git push origin HEAD:main
          echo "PUBLICATION_COMMIT=$publication_commit" >> "$GITHUB_ENV"

      - name: Wait for exact candidate Pages deployment
        if: steps.atlas.outputs.ready == 'true' && steps.local_proof.outcome == 'success'
        env:
          GH_TOKEN: ${{ github.token }}
        run: |
          set -euo pipefail
          api="https://api.github.com/repos/$GITHUB_REPOSITORY/actions/runs?head_sha=$PUBLICATION_COMMIT&per_page=50"
          status=''
          conclusion=''
          pages_run=''
          for attempt in $(seq 1 120); do
            payload="$(curl --fail --silent --show-error \
              -H "Authorization: Bearer $GH_TOKEN" \
              -H 'Accept: application/vnd.github+json' "$api")"
            pages_run="$(printf '%s' "$payload" | jq -r '[.workflow_runs[] | select(.name == "pages build and deployment")][0].id // empty')"
            status="$(printf '%s' "$payload" | jq -r '[.workflow_runs[] | select(.name == "pages build and deployment")][0].status // empty')"
            conclusion="$(printf '%s' "$payload" | jq -r '[.workflow_runs[] | select(.name == "pages build and deployment")][0].conclusion // empty')"
            if test "$status" = completed; then
              test "$conclusion" = success
              break
            fi
            sleep 5
          done
          test -n "$pages_run"
          test "$status" = completed
          test "$conclusion" = success
          echo "CANDIDATE_PAGES_RUN_ID=$pages_run" >> "$GITHUB_ENV"
          for attempt in $(seq 1 60); do
            if curl --fail --location --silent --show-error "$PUBLIC_URL" >/dev/null; then break; fi
            sleep 3
          done

      - name: Prove public PipelineNews to Atlas V9 deep link
        id: public_proof
        if: steps.atlas.outputs.ready == 'true' && steps.local_proof.outcome == 'success'
        env:
          PIPELINE_URL: ${{ env.PUBLIC_URL }}
          ATLAS_URL: ${{ steps.atlas.outputs.live_url }}
          MODE: public
          OUTPUT: work/202608300309-public-atlas-v9-deep-link-proof.json
        run: |
          set -euo pipefail
          node "$VERIFIER"
          test "$(jq -r '.classification' "$OUTPUT")" = VERIFIED_PUBLIC_PIPELINENEWS_ATLAS_V9_DEEP_LINK
          test "$(jq -r '.expected_url' "$OUTPUT")" = "${ATLAS_URL}?repd_ref=${GOLDEN_REPD_REF}"
          test "$(jq -r '.data_boundary.record.repd_ref' "$OUTPUT")" = "$GOLDEN_REPD_REF"
          test "$(jq -r '.broad_search_supplement_requests' "$OUTPUT")" = 0
          test "$(jq -r '.pipeline.runtime.searchRequests' "$OUTPUT")" = 0
          test "$(jq -r '.synthetic_receiver' "$OUTPUT")" = false
          test "$(jq -r '.route_interceptions' "$OUTPUT")" = 0

      - name: Retain public browser diagnostics
        if: always() && steps.atlas.outputs.ready == 'true' && steps.local_proof.outcome == 'success'
        uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
        with:
          name: pipelinenews-202608300309-public-atlas-link-${{ github.sha }}
          path: |
            work/202608300309-public-atlas-v9-deep-link-proof.json
            work/202608300309-public-atlas-v9-deep-link-proof-diagnostic.json
            work/202608300309-public-atlas-v9-deep-link-proof-failure.png
          if-no-files-found: warn
          retention-days: 90
          compression-level: 0

      - name: Build governed PipelineNews pointer
        if: steps.atlas.outputs.ready == 'true' && steps.public_proof.outcome == 'success'
        run: |
          set -euo pipefail
          git fetch --no-tags origin main:refs/remotes/origin/main
          test "$(git rev-parse origin/main)" = "$PUBLICATION_COMMIT"
          mkdir -p machine-learning/proofs releases state
          cp work/202608300309-local-atlas-v9-deep-link-proof.json \
            machine-learning/proofs/202608300309-local-atlas-v9-deep-link-proof.json
          cp work/202608300309-public-atlas-v9-deep-link-proof.json \
            machine-learning/proofs/202608300309-public-atlas-v9-deep-link-proof.json
          python3 "$PROMOTER" \
            --release-dir "releases/$RELEASE_ID" \
            --release-id "$RELEASE_ID" \
            --generation "$GENERATION" \
            --source-release-id "$SOURCE_RELEASE_ID" \
            --release-source-commit "$GITHUB_SHA" \
            --publication-commit "$PUBLICATION_COMMIT" \
            --public-url "$PUBLIC_URL" \
            --public-proof machine-learning/proofs/202608300309-public-atlas-v9-deep-link-proof.json \
            --atlas-state /tmp/atlas-state.json \
            --atlas-state-url "$ATLAS_STATE_URL" \
            --minimum-atlas-generation "$MINIMUM_ATLAS_GENERATION" \
            --golden-repd-ref "$GOLDEN_REPD_REF" \
            --previous-state state/live-set.json \
            --output-state state/live-set.json \
            --output-current releases/current-v4.json \
            --output-link-contract state/atlas-v9-link-contract.json \
            | tee work/promotion-result.json
          test "$(jq -r '.classification' work/promotion-result.json)" = VERIFIED_PIPELINENEWS_ATLAS_LINK_POINTER_BUILT
          cmp state/live-set.json releases/current-v4.json
          test "$(jq -r '.release_id' state/live-set.json)" = "$RELEASE_ID"
          test "$(jq -r '.atlas_v9_receiver.release_id' state/live-set.json)" = "${{ steps.atlas.outputs.release_id }}"
          test "$(jq -r '.atlas_v9_receiver.golden_repd_ref' state/live-set.json)" = "$GOLDEN_REPD_REF"
          test "$(jq -r '.public_proof.synthetic_receiver' state/live-set.json)" = false
          test "$(jq -r '.public_proof.route_interceptions' state/live-set.json)" = 0

      - name: Compare-and-swap public promotion pointer onto main
        if: steps.atlas.outputs.ready == 'true' && steps.public_proof.outcome == 'success'
        run: |
          set -euo pipefail
          git fetch --no-tags origin main:refs/remotes/origin/main
          test "$(git rev-parse origin/main)" = "$PUBLICATION_COMMIT"
          git add \
            machine-learning/proofs/202608300309-local-atlas-v9-deep-link-proof.json \
            machine-learning/proofs/202608300309-public-atlas-v9-deep-link-proof.json \
            releases/current-v4.json \
            state/atlas-v9-link-contract.json \
            state/live-set.json
          mapfile -t staged < <(git diff --cached --name-only | sort)
          expected=(
            machine-learning/proofs/202608300309-local-atlas-v9-deep-link-proof.json
            machine-learning/proofs/202608300309-public-atlas-v9-deep-link-proof.json
            releases/current-v4.json
            state/atlas-v9-link-contract.json
            state/live-set.json
          )
          test "${staged[*]}" = "${expected[*]}"
          git config user.name pipelinenews-atlas-link-promotion-bot
          git config user.email actions@users.noreply.github.com
          git commit -m "202608300309: promote current verified Atlas V9 exact-REPD links"
          promotion_commit="$(git rev-parse HEAD)"
          git push origin HEAD:main
          echo "PROMOTION_COMMIT=$promotion_commit" >> "$GITHUB_ENV"

      - name: Verify final public pointer and milestone
        if: steps.atlas.outputs.ready == 'true' && steps.public_proof.outcome == 'success'
        env:
          ATLAS_RELEASE_ID: ${{ steps.atlas.outputs.release_id }}
          ATLAS_LIVE_URL: ${{ steps.atlas.outputs.live_url }}
        run: |
          set -euo pipefail
          for attempt in $(seq 1 90); do
            if curl --fail --location --silent --show-error \
              https://ventusltd.github.io/pipelinenews/state/live-set.json \
              -o work/public-live-set.json \
              && test "$(jq -r '.release_id' work/public-live-set.json)" = "$RELEASE_ID"; then
              break
            fi
            sleep 3
          done
          test "$(jq -r '.atlas_v9_receiver.release_id' work/public-live-set.json)" = "$ATLAS_RELEASE_ID"
          test "$(jq -r '.atlas_v9_receiver.golden_repd_ref' work/public-live-set.json)" = "$GOLDEN_REPD_REF"
          test "$(jq -r '.public_proof.receiver_url' work/public-live-set.json)" = \
            "${ATLAS_LIVE_URL}?repd_ref=${GOLDEN_REPD_REF}"
          curl --fail --location --silent --show-error "$PUBLIC_URL?repd_ref=$GOLDEN_REPD_REF" >/dev/null
          {
            echo '## PipelineNews Atlas V9 deep-link milestone complete'
            echo
            echo "- PipelineNews: $PUBLIC_URL"
            echo "- Atlas receiver: $ATLAS_RELEASE_ID"
            echo "- Golden admitted identity: repd_ref=$GOLDEN_REPD_REF"
            echo "- Candidate Pages run: $CANDIDATE_PAGES_RUN_ID"
            echo "- Promotion commit: $PROMOTION_COMMIT"
            echo '- Product data, news and project bytes changed: 0'
            echo '- Exact-ID route broad-search requests: 0'
            echo '- Cadence: hourly through 09:35 BST; hard expiry enforced.'
          } >> "$GITHUB_STEP_SUMMARY"

PipelineNews Bound Hourly Atlas V9 Mission Workflow

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

automationpipelinenews / .github/workflows/202608300327-bound-hourly-atlas-v9-mission.yml · lines 1–126 of 126 · version 2026-08-30 03:27 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: reads or writes files; makes network requests; starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
Inputs & outputs
Out: commits pushed to the repository.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
No statement of purpose was found in the file, a README line naming it, or its name.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
pipelinenews · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
202608300327 Bound hourly PipelineNews Atlas V9 mission
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 .github/workflows/202608300327-bound-hourly-atlas-v9-mission.yml:1-126 · blob 71d1e8676b6294e51cb502cbc699bd410ffbfcc3 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: output · effects: filesystem, network, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: 202608300327 Bound hourly PipelineNews Atlas V9 mission

on:
  push:
    branches: [main]
    paths:
      - '.github/workflows/202608300327-bound-hourly-atlas-v9-mission.yml'
  workflow_dispatch:

permissions:
  contents: write

concurrency:
  group: pipelinenews-bound-hourly-atlas-v9-bootstrap
  cancel-in-progress: false

env:
  FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
  TARGET: .github/workflows/202608300309-current-gridatlas-v9-deep-link-successor.yml
  MISSION_EXPIRES_AT: '2026-08-30T05:28:00Z'

jobs:
  delegate:
    name: Make the existing deep-link conductor hourly, bounded and idempotent
    runs-on: ubuntu-24.04
    timeout-minutes: 5
    steps:
      - name: Checkout exact PipelineNews source boundary
        uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
        with:
          ref: ${{ github.sha }}
          fetch-depth: 20
          persist-credentials: true

      - name: Patch the conductor without touching product code or data
        run: |
          set -euo pipefail
          python3 - <<'PY'
          from pathlib import Path

          path = Path('.github/workflows/202608300309-current-gridatlas-v9-deep-link-successor.yml')
          text = path.read_text(encoding='utf-8')

          replacements = [
              (
                  "    - cron: '12,42 * * * *'",
                  "    - cron: '20 3-5 30 8 *'",
                  'bounded hourly cron',
              ),
              (
                  "  PUBLIC_URL: https://ventusltd.github.io/pipelinenews/releases/202608300309-pipelinenews/\n",
                  "  PUBLIC_URL: https://ventusltd.github.io/pipelinenews/releases/202608300309-pipelinenews/\n"
                  "  MISSION_EXPIRES_AT: '2026-08-30T05:28:00Z'\n",
                  'mission expiry',
              ),
              (
                  "      - name: Resolve promotion-eligible Atlas receiver\n"
                  "        id: atlas\n"
                  "        run: |\n"
                  "          set -euo pipefail\n"
                  "          curl --fail --location --silent --show-error --retry 3 --retry-delay 2 \\\n",
                  "      - name: Resolve promotion-eligible Atlas receiver\n"
                  "        id: atlas\n"
                  "        run: |\n"
                  "          set -euo pipefail\n"
                  "          now=\"$(date -u +%s)\"\n"
                  "          expires=\"$(date -u -d \"$MISSION_EXPIRES_AT\" +%s)\"\n"
                  "          if (( now > expires )); then\n"
                  "            echo 'ready=false' >> \"$GITHUB_OUTPUT\"\n"
                  "            echo \"PipelineNews three-hour Atlas mission retired at $MISSION_EXPIRES_AT; no mutation.\" >> \"$GITHUB_STEP_SUMMARY\"\n"
                  "            exit 0\n"
                  "          fi\n"
                  "          curl --fail --location --silent --show-error --retry 3 --retry-delay 2 \\\n",
                  'mission window guard',
              ),
              (
                  "          grep -q 'ventus-corev8engine.js' /tmp/atlas-golden.html\n"
                  "          echo 'ready=true' >> \"$GITHUB_OUTPUT\"\n",
                  "          grep -q 'ventus-corev8engine.js' /tmp/atlas-golden.html\n"
                  "          if test -e \"releases/$RELEASE_ID\"; then\n"
                  "            if test \"$(jq -r '.release_id // empty' state/live-set.json)\" = \"$RELEASE_ID\" && \\\n"
                  "               test \"$(jq -r '.atlas_v9_receiver.release_id // empty' state/live-set.json)\" = \"$release_id\"; then\n"
                  "              echo 'ready=false' >> \"$GITHUB_OUTPUT\"\n"
                  "              echo \"PipelineNews already promotes $RELEASE_ID to Atlas $release_id; verification-only no-op.\" >> \"$GITHUB_STEP_SUMMARY\"\n"
                  "              exit 0\n"
                  "            fi\n"
                  "            echo \"Immutable successor releases/$RELEASE_ID exists without the matching live pointer.\" >&2\n"
                  "            exit 1\n"
                  "          fi\n"
                  "          echo 'ready=true' >> \"$GITHUB_OUTPUT\"\n",
                  'idempotent successor guard',
              ),
          ]

          for before, after, label in replacements:
              count = text.count(before)
              if count != 1:
                  raise SystemExit(f'{label}: expected one anchor, found {count}')
              text = text.replace(before, after, 1)

          path.write_text(text, encoding='utf-8', newline='\n')
          PY
          git diff --check
          grep -q "cron: '20 3-5 30 8 \*'" "$TARGET"
          grep -q "MISSION_EXPIRES_AT: '2026-08-30T05:28:00Z'" "$TARGET"
          test "$(grep -c 'PipelineNews already promotes' "$TARGET")" = 1

      - name: Compare-and-swap the bounded conductor onto main
        run: |
          set -euo pipefail
          git fetch --no-tags origin main:refs/remotes/origin/main
          test "$(git rev-parse origin/main)" = "$GITHUB_SHA"
          git add "$TARGET"
          test "$(git diff --cached --name-only)" = "$TARGET"
          git config user.name pipelinenews-mission-conductor-bot
          git config user.email actions@users.noreply.github.com
          git commit -m '202608300327: run Atlas V9 deep-link closure hourly for three hours'
          git push origin HEAD:main
          {
            echo '## PipelineNews mission delegated'
            echo
            echo '- Immediate deep-link successor run: triggered by this conductor update'
            echo '- Hourly follow-ups: 03:20, 04:20 and 05:20 UTC'
            echo '- Hard retirement: 05:28 UTC'
            echo '- Product/data mutation in bootstrap: none'
          } >> "$GITHUB_STEP_SUMMARY"

PipelineNews Advance Successor to Exact Atlas Workflow

A GitHub Actions workflow using data from GitHub API and the GridAtlas repository. Runs on push and by hand.

automationpipelinenews / .github/workflows/202608300415-advance-successor-to-exact-atlas.yml · lines 1–91 of 91 · version 2026-08-30 04:15 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: makes network requests; starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
Inputs & outputs
In: data source: gridatlas data; data source: GitHub API.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “Dispatch PipelineNews successor against exact Atlas”.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
pipelinenews · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
202608300415 Dispatch PipelineNews successor against exact Atlas
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 .github/workflows/202608300415-advance-successor-to-exact-atlas.yml:1-91 · blob 2f60fde72a2b1593daa45c60d0d9c676b7dd0af0 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: network, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: 202608300415 Dispatch PipelineNews successor against exact Atlas
run-name: Dispatch exact-Atlas PipelineNews successor from ${{ github.sha }}

on:
  push:
    branches: [main]
    paths:
      - '.github/workflows/202608300415-advance-successor-to-exact-atlas.yml'
  workflow_dispatch:

permissions:
  actions: write
  contents: read

concurrency:
  group: pipelinenews-exact-atlas-successor-dispatch
  cancel-in-progress: false

env:
  ATLAS_STATE_URL: https://ventusltd.github.io/gridatlas/state/live-set.json
  MINIMUM_ATLAS_GENERATION: '202608300453'
  TARGET_WORKFLOW: 202608300309-current-gridatlas-v9-deep-link-successor.yml

jobs:
  dispatch:
    name: Validate exact Atlas and launch governed immutable successor
    runs-on: ubuntu-24.04
    timeout-minutes: 5
    steps:
      - name: Checkout exact PipelineNews boundary
        uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
        with:
          ref: ${{ github.sha }}
          fetch-depth: 20
          persist-credentials: false

      - name: Require exact current main
        run: |
          set -euo pipefail
          test "$GITHUB_REF" = refs/heads/main
          git fetch --no-tags origin main:refs/remotes/origin/main
          test "$(git rev-parse HEAD)" = "$GITHUB_SHA"
          test "$(git rev-parse origin/main)" = "$GITHUB_SHA"
          test -f ".github/workflows/$TARGET_WORKFLOW"

      - name: Require verified exact-REPD Atlas receiver
        run: |
          set -euo pipefail
          curl --fail --location --silent --show-error --retry 3 --retry-delay 2 \
            "$ATLAS_STATE_URL" -o /tmp/atlas-state.json
          python3 -m json.tool /tmp/atlas-state.json >/dev/null
          generation="$(jq -r '.generation // empty' /tmp/atlas-state.json)"
          release_id="$(jq -r '.current.release_id // empty' /tmp/atlas-state.json)"
          live_url="$(jq -r '.current.live_url // empty' /tmp/atlas-state.json)"
          [[ "$generation" =~ ^[0-9]{12}$ ]]
          (( 10#$generation >= 10#$MINIMUM_ATLAS_GENERATION ))
          test "$release_id" = "${generation}-atlas-v9"
          test "$live_url" = "https://ventusltd.github.io/gridatlas/$release_id/"
          test "$(jq -r '.verification.promotion_eligible // false' /tmp/atlas-state.json)" = true
          test "$(jq -r '.verification.failed_gates // 999' /tmp/atlas-state.json)" = 0
          test "$(jq -r '.verification.commit_lineage_attested // false' /tmp/atlas-state.json)" = true
          test "$(jq -r '.verification.exact_repd_deep_link_resolved // false' /tmp/atlas-state.json)" = true
          test "$(jq -r '.verification.exact_repd_fly_to // false' /tmp/atlas-state.json)" = true
          test "$(jq -r '.current.deep_link_receiver.identity_rule // empty' /tmp/atlas-state.json)" = EXACT_REPD_REF_ONLY
          test "$(jq -r '.current.deep_link_receiver.synthetic_receiver' /tmp/atlas-state.json)" = false
          test "$(jq -r '.current.deep_link_receiver.route_interceptions // 999' /tmp/atlas-state.json)" = 0
          echo "ATLAS_RELEASE_ID=$release_id" >> "$GITHUB_ENV"
          echo "ATLAS_LIVE_URL=$live_url" >> "$GITHUB_ENV"

      - name: Dispatch unchanged immutable PipelineNews successor
        env:
          GH_TOKEN: ${{ github.token }}
        run: |
          set -euo pipefail
          payload="$(jq -cn --arg ref main '{ref:$ref}')"
          curl --fail-with-body --location --silent --show-error \
            --request POST \
            --header "Authorization: Bearer $GH_TOKEN" \
            --header 'Accept: application/vnd.github+json' \
            --header 'X-GitHub-Api-Version: 2022-11-28' \
            "https://api.github.com/repos/$GITHUB_REPOSITORY/actions/workflows/$TARGET_WORKFLOW/dispatches" \
            --data "$payload"
          {
            echo '## PipelineNews immutable successor dispatched'
            echo
            echo "- Source main: $GITHUB_SHA"
            echo "- Atlas receiver: $ATLAS_RELEASE_ID"
            echo "- Atlas URL: $ATLAS_LIVE_URL"
            echo "- Target workflow: $TARGET_WORKFLOW"
            echo '- Product code and immutable releases changed by dispatcher: 0'
          } >> "$GITHUB_STEP_SUMMARY"