GLOBALGRID2050 / EXPLORE CODE

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

PipelineNews Build V8 Fast Site Workflow and 5 more files

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

684 lines of YAML from pipelinenews, in 6 files. Topic: Automation and CI. Section 1855 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 Build V8 Fast Site Workflow automation · pipelinenews / .github/workflows/build-v8-fast-site.yml lines 1–306
  2. PipelineNews Build V8 Foundation Workflow automation · pipelinenews / .github/workflows/build-v8-foundation.yml lines 1–65
  3. PipelineNews Compile V8 with Companies Workflow automation · pipelinenews / .github/workflows/compile-v8-with-companies.yml lines 1–71
  4. PipelineNews Coverage Contract Workflow automation · pipelinenews / .github/workflows/coverage-contract.yml lines 1–62
  5. PipelineNews Gate V8 Foundation Workflow automation · pipelinenews / .github/workflows/gate-v8-foundation.yml lines 1–43
  6. PipelineNews Pages Workflow automation · pipelinenews / .github/workflows/pages.yml lines 1–137

PipelineNews Build V8 Fast Site Workflow

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

automationpipelinenews / .github/workflows/build-v8-fast-site.yml · lines 1–306 of 306 · 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 (repository name word 'pipelinenews'): 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: JSON file compiler-pass-a.json; JSON file compiler-pass-b.json; JSON file materialized-closure.json; JSON file contract-proof.json; JSON file pages-boundary-proof.json; JSON file browser-proof.json; JSON file staged-closure.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
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
Build PipelineNews V8 Fast Site
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/build-v8-fast-site.yml:1-306 · blob 061d8309cd187b83b93142e6942110eb867d6230 · 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: Build PipelineNews V8 Fast Site

on:
  workflow_dispatch:
  push:
    branches: [main]
    paths:
      - ".github/workflows/build-v8-fast-site.yml"
      - "index/202608270055-compile-v8-fast.mjs"
      - "build/javascript/202608270055-verify-v8-fast-contract.mjs"
      - "build/javascript/202608270055-verify-v8-fast-browser.mjs"
      - "ui/javascript/202608270055-v8-fast-runtime.js"
      - "ui/styles/202608270055-v8-fast-overrides.css"

permissions:
  contents: write

concurrency:
  group: build-pipelinenews-v8-fast-site
  cancel-in-progress: false

env:
  FAST_GENERATION: "202608270055"
  FAST_WORK_ROOT: work/v8-fast-site

jobs:
  build-gate-record:
    if: github.ref == 'refs/heads/main'
    runs-on: ubuntu-latest
    timeout-minutes: 10
    steps:
      - name: Checkout exact source commit
        uses: actions/checkout@v5
        with:
          ref: ${{ github.sha }}
          fetch-depth: 0

      - name: Configure Node
        uses: actions/setup-node@v5
        with:
          node-version: "22"

      - name: Record immutable source
        shell: bash
        run: |
          set -euo pipefail
          test "$(git rev-parse HEAD)" = "$GITHUB_SHA"
          test "$GITHUB_REF" = "refs/heads/main"
          mkdir -p "$FAST_WORK_ROOT/evidence"
          git rev-parse HEAD > "$FAST_WORK_ROOT/evidence/source-sha.txt"
          git show -s --format='%H%n%T%n%ct' HEAD > "$FAST_WORK_ROOT/evidence/source-record.txt"

      - name: Reject an existing immutable generation
        shell: bash
        run: |
          set -euo pipefail
          existing=()
          for candidate in \
            "build/${FAST_GENERATION}-v8-fast-site-manifest.json" \
            "releases/${FAST_GENERATION}-v8-fast-candidate.html" \
            "releases/javascript/${FAST_GENERATION}-v8-fast-runtime.js" \
            "releases/styles/${FAST_GENERATION}-v8-fast.css" \
            "releases/data/${FAST_GENERATION}-v8-fast-registry.json"; do
            if [[ -e "$candidate" || -L "$candidate" ]]; then
              existing+=("$candidate")
            fi
          done
          if [[ -d releases/data ]]; then
            while IFS= read -r candidate; do
              existing+=("$candidate")
            done < <(
              find releases/data -maxdepth 1 \( -type f -o -type l \) \
                -name "${FAST_GENERATION}-????????????-v8-fast-*.json" -print | LC_ALL=C sort
            )
          fi
          if (( ${#existing[@]} != 0 )); then
            printf 'Immutable generation %s already exists:\n' "$FAST_GENERATION" >&2
            printf '  %s\n' "${existing[@]}" >&2
            exit 1
          fi

      - name: Check compiler and verifier syntax
        shell: bash
        run: |
          set -euo pipefail
          node --check "index/${FAST_GENERATION}-compile-v8-fast.mjs"
          node --check "ui/javascript/${FAST_GENERATION}-v8-fast-runtime.js"
          node --check "build/javascript/${FAST_GENERATION}-verify-v8-fast-contract.mjs"
          node --check "build/javascript/${FAST_GENERATION}-verify-v8-fast-browser.mjs"
          ! grep -q 'SHA256_PENDING' "index/${FAST_GENERATION}-compile-v8-fast.mjs"

      - name: Compile twice from the exact source
        shell: bash
        env:
          SOURCE_COMMIT: ${{ github.sha }}
        run: |
          set -euo pipefail
          mkdir -p "$FAST_WORK_ROOT/pass-a" "$FAST_WORK_ROOT/pass-b"
          node "index/${FAST_GENERATION}-compile-v8-fast.mjs" \
            --out-root "$FAST_WORK_ROOT/pass-a" \
            | tee "$FAST_WORK_ROOT/evidence/compiler-pass-a.json"
          node "index/${FAST_GENERATION}-compile-v8-fast.mjs" \
            --out-root "$FAST_WORK_ROOT/pass-b" \
            | tee "$FAST_WORK_ROOT/evidence/compiler-pass-b.json"

      - name: Prove byte-for-byte reproducibility
        shell: bash
        run: |
          set -euo pipefail
          (
            cd "$FAST_WORK_ROOT/pass-a"
            find . -type f -print0 | LC_ALL=C sort -z | xargs -0 sha256sum
          ) > "$FAST_WORK_ROOT/evidence/pass-a-sha256.txt"
          (
            cd "$FAST_WORK_ROOT/pass-b"
            find . -type f -print0 | LC_ALL=C sort -z | xargs -0 sha256sum
          ) > "$FAST_WORK_ROOT/evidence/pass-b-sha256.txt"
          diff --recursive --brief "$FAST_WORK_ROOT/pass-a" "$FAST_WORK_ROOT/pass-b"
          diff --unified \
            "$FAST_WORK_ROOT/evidence/pass-a-sha256.txt" \
            "$FAST_WORK_ROOT/evidence/pass-b-sha256.txt"

      - name: Materialize the verified candidate closure
        shell: bash
        run: |
          set -euo pipefail
          node --input-type=module <<'NODE'
          import assert from "node:assert/strict";
          import { constants } from "node:fs";
          import { copyFile, mkdir, readFile, readdir, writeFile } from "node:fs/promises";
          import path from "node:path";

          const generation = process.env.FAST_GENERATION;
          const workRoot = path.resolve(process.env.FAST_WORK_ROOT);
          const passRoot = path.join(workRoot, "pass-a");
          const manifestPath = `build/${generation}-v8-fast-site-manifest.json`;
          const manifest = JSON.parse(await readFile(path.join(passRoot, manifestPath), "utf8"));
          assert.equal(manifest.generation, generation);
          assert.equal(manifest.source_commit, process.env.GITHUB_SHA);
          assert.equal(String(manifest.github_run_id), process.env.GITHUB_RUN_ID);
          const expected = [manifestPath, ...manifest.outputs.map(({ path: outputPath }) => outputPath)].sort();
          assert.equal(new Set(expected).size, expected.length, "candidate closure contains duplicate paths");

          async function walk(directory, prefix = "") {
            const result = [];
            for (const entry of await readdir(directory, { withFileTypes: true })) {
              const relative = path.posix.join(prefix, entry.name);
              if (entry.isDirectory()) result.push(...await walk(path.join(directory, entry.name), relative));
              else if (entry.isFile()) result.push(relative);
              else assert.fail(`unexpected compiler output type: ${relative}`);
            }
            return result;
          }

          assert.deepEqual((await walk(passRoot)).sort(), expected, "compiler output differs from declared closure");
          for (const relative of expected) {
            const target = path.resolve(relative);
            assert.ok(target.startsWith(`${process.cwd()}${path.sep}`), `target escapes repository: ${relative}`);
            await mkdir(path.dirname(target), { recursive: true });
            await copyFile(path.join(passRoot, relative), target, constants.COPYFILE_EXCL);
          }
          await writeFile(
            path.join(workRoot, "evidence", "materialized-closure.json"),
            `${JSON.stringify({ generation, source_commit: process.env.GITHUB_SHA, files: expected }, null, 2)}\n`,
          );
          NODE

      - name: Verify the compiled data and cache contract
        shell: bash
        run: |
          set -euo pipefail
          node "build/javascript/${FAST_GENERATION}-verify-v8-fast-contract.mjs" \
            --root . \
            --generation "$FAST_GENERATION" \
            --source-manifest "build/${FAST_GENERATION}-v8-fast-site-manifest.json" \
            | tee "$FAST_WORK_ROOT/evidence/contract-proof.json"

      - name: Prove the candidate is barred from Pages staging
        shell: bash
        run: |
          set -euo pipefail
          python3 - <<'PY' | tee "$FAST_WORK_ROOT/evidence/pages-boundary-proof.json"
          import importlib.util
          import json
          import os
          from pathlib import Path

          root = Path.cwd().resolve()
          module_path = root / "atman/202608262014-build-pages.py"
          spec = importlib.util.spec_from_file_location("pipelinenews_pages_gate", module_path)
          module = importlib.util.module_from_spec(spec)
          spec.loader.exec_module(module)
          generation, _, release_manifest = module.select_release(root, "latest")
          release = {
              "release_path": f"releases/{generation}-index.html",
              "manifest": release_manifest,
          }
          excluded = module.non_deploying_candidate_outputs(root, release)
          candidate = json.loads((root / f"build/{os.environ['FAST_GENERATION']}-v8-fast-site-manifest.json").read_text())
          expected = {record["path"] for record in candidate["outputs"]}
          module.require(excluded == expected, "Pages exclusion set differs from the fast candidate closure")
          print(json.dumps({
              "schema": "pipelinenews.v8.fast-pages-boundary-proof.v1",
              "generation": candidate["generation"],
              "deployment": candidate["deployment"],
              "excluded_outputs": sorted(excluded),
              "pages_artifact_created": False,
          }, indent=2))
          PY

      - name: Install pinned browser verifier
        shell: bash
        run: |
          set -euo pipefail
          npm install --no-save --no-package-lock playwright@1.55.0
          npx playwright install --with-deps chromium

      - name: Browser-proof the fast candidate
        shell: bash
        env:
          FAST_SITE_URL: http://127.0.0.1:4173/releases/202608270055-v8-fast-candidate.html
        run: |
          set -euo pipefail
          python3 -m http.server 4173 --bind 127.0.0.1 --directory . > "$RUNNER_TEMP/v8-fast-http.log" 2>&1 &
          server_pid="$!"
          trap 'kill "$server_pid" 2>/dev/null || true' EXIT
          for attempt in {1..20}; do
            if curl --fail --silent --show-error "$FAST_SITE_URL" >/dev/null; then
              break
            fi
            sleep 1
          done
          curl --fail --silent --show-error "$FAST_SITE_URL" >/dev/null
          node "build/javascript/${FAST_GENERATION}-verify-v8-fast-browser.mjs" \
            | tee "$FAST_WORK_ROOT/evidence/browser-proof.json"

      - name: Stage and verify the exact declared closure
        shell: bash
        run: |
          set -euo pipefail
          node --input-type=module <<'NODE'
          import assert from "node:assert/strict";
          import { createHash } from "node:crypto";
          import { readFile, writeFile } from "node:fs/promises";
          import { spawnSync } from "node:child_process";
          import path from "node:path";

          const generation = process.env.FAST_GENERATION;
          const manifestPath = `build/${generation}-v8-fast-site-manifest.json`;
          const manifestBytes = await readFile(manifestPath);
          const manifest = JSON.parse(manifestBytes);
          assert.equal(manifest.generation, generation);
          assert.equal(manifest.source_commit, process.env.GITHUB_SHA);
          const declared = manifest.outputs.map(({ path: outputPath }) => outputPath);
          const expected = [manifestPath, ...declared].sort();
          assert.equal(new Set(expected).size, expected.length, "candidate closure contains duplicate paths");
          assert.ok(declared.every((outputPath) => outputPath.startsWith("releases/")), "unexpected candidate output root");
          assert.ok(declared.every((outputPath) => !outputPath.startsWith("releases/manifests/")), "promotion manifest is outside this workflow");

          for (const record of manifest.outputs) {
            const bytes = await readFile(record.path);
            assert.equal(bytes.length, record.bytes, `byte count changed: ${record.path}`);
            assert.equal(createHash("sha256").update(bytes).digest("hex"), record.sha256, `hash changed: ${record.path}`);
          }

          const add = spawnSync("git", ["add", "--", ...expected], { encoding: "utf8" });
          assert.equal(add.status, 0, add.stderr || add.stdout);
          const diff = spawnSync("git", ["diff", "--cached", "--name-only", "-z"], { encoding: "buffer" });
          assert.equal(diff.status, 0, diff.stderr.toString());
          const staged = diff.stdout.toString("utf8").split("\0").filter(Boolean).sort();
          assert.deepEqual(staged, expected, "staged paths differ from the declared candidate closure");
          const status = spawnSync("git", ["diff", "--cached", "--name-status"], { encoding: "utf8" });
          assert.equal(status.status, 0, status.stderr);
          assert.ok(status.stdout.trim().split("\n").every((line) => line.startsWith("A\t")), "candidate would overwrite a tracked path");

          for (const relative of expected) {
            const stagedFile = spawnSync("git", ["show", `:${relative}`], { encoding: "buffer", maxBuffer: 32 * 1024 * 1024 });
            assert.equal(stagedFile.status, 0, stagedFile.stderr.toString());
            assert.ok(stagedFile.stdout.equals(await readFile(relative)), `staged bytes changed: ${relative}`);
          }
          await writeFile(
            path.join(process.env.FAST_WORK_ROOT, "evidence", "staged-closure.json"),
            `${JSON.stringify({ generation, source_commit: process.env.GITHUB_SHA, files: expected }, null, 2)}\n`,
          );
          NODE

      - name: Upload build and verification evidence
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: pipelinenews-v8-fast-site-${{ env.FAST_GENERATION }}-${{ github.run_id }}
          path: ${{ env.FAST_WORK_ROOT }}/evidence
          if-no-files-found: error
          retention-days: 30

      - name: Commit only the green immutable candidate
        shell: bash
        run: |
          set -euo pipefail
          git fetch --no-tags origin refs/heads/main
          test "$(git rev-parse HEAD)" = "$GITHUB_SHA"
          test "$(git rev-parse FETCH_HEAD)" = "$GITHUB_SHA"
          git config user.name "github-actions[bot]"
          git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
          git commit -m "v8: build fast site candidate ${FAST_GENERATION}"
          git push origin HEAD:main

PipelineNews Build V8 Foundation Workflow

A GitHub Actions workflow that builds and publishes the site. Runs by hand.

automationpipelinenews / .github/workflows/build-v8-foundation.yml · lines 1–65 of 65 · Entry point

What it does
It builds and publishes its content. Side effects: changes the web page (DOM); starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (repository name word 'pipelinenews'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
Inputs & outputs
Out: commits pushed to the repository.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs `build/javascript/202608262315-build-v8-foundation.mjs` and `build/javascript/202608262300-verify-v8-reachability.mjs`.
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
Build PipelineNews V8 Foundation
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/build-v8-foundation.yml:1-65 · blob a190b50c41c59e1099c186c0978017a5b804c336 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: Build PipelineNews V8 Foundation

on:
  workflow_dispatch:

permissions:
  contents: write

concurrency:
  group: build-pipelinenews-v8-foundation
  cancel-in-progress: false

jobs:
  build-gate-record:
    runs-on: ubuntu-latest
    timeout-minutes: 35
    steps:
      - uses: actions/checkout@v4
        with:
          ref: ${{ github.sha }}
          fetch-depth: 0
      - uses: actions/setup-node@v4
        with:
          node-version: "22"
      - name: Establish immutable stamp
        run: echo "BUILD_STAMP=$(date -u +%Y%m%d%H%M)" >> "$GITHUB_ENV"
      - name: Build reachable bounded foundation
        run: node build/javascript/202608262315-build-v8-foundation.mjs
      - name: Static gates
        run: |
          set -euo pipefail
          node --check "releases/javascript/${BUILD_STAMP}-projects-v8-foundation.js"
          node --check "releases/javascript/${BUILD_STAMP}-app-v8-foundation.js"
          ! grep -q "body.innerHTML = filtered.map" "releases/javascript/${BUILD_STAMP}-projects-v8-foundation.js"
      - name: Install pinned mobile verifier
        run: |
          npm install --no-save --no-package-lock playwright@1.55.0
          npx playwright install --with-deps chromium
      - name: Prove all 7,680 projects are reachable
        run: |
          python3 -m http.server 4173 >/tmp/v8-http.log 2>&1 &
          server_pid=$!
          trap 'kill "$server_pid"' EXIT
          node build/javascript/202608262300-verify-v8-reachability.mjs | tee "build/${BUILD_STAMP}-v8-foundation-proof.json"
      - uses: actions/upload-artifact@v4
        with:
          name: pipelinenews-v8-foundation-${{ env.BUILD_STAMP }}
          path: |
            releases/${{ env.BUILD_STAMP }}-v8-candidate.html
            releases/javascript/${{ env.BUILD_STAMP }}-projects-v8-foundation.js
            releases/javascript/${{ env.BUILD_STAMP }}-app-v8-foundation.js
            releases/styles/${{ env.BUILD_STAMP }}-v8-foundation.css
            build/${{ env.BUILD_STAMP }}-v8-foundation-manifest.json
            build/${{ env.BUILD_STAMP }}-v8-foundation-proof.json
          if-no-files-found: error
          retention-days: 30
      - name: Commit only green foundation candidate
        run: |
          set -euo pipefail
          git config user.name "github-actions[bot]"
          git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
          git add "releases/${BUILD_STAMP}-v8-candidate.html" "releases/javascript/${BUILD_STAMP}-projects-v8-foundation.js" "releases/javascript/${BUILD_STAMP}-app-v8-foundation.js" "releases/styles/${BUILD_STAMP}-v8-foundation.css" "build/${BUILD_STAMP}-v8-foundation-manifest.json" "build/${BUILD_STAMP}-v8-foundation-proof.json"
          git commit -m "v8: publish reachable foundation candidate ${BUILD_STAMP}"
          git pull --rebase origin main
          git push origin HEAD:main

PipelineNews Compile V8 with Companies Workflow

A GitHub Actions workflow. Runs by hand.

automationpipelinenews / .github/workflows/compile-v8-with-companies.yml · lines 1–71 of 71 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (repository name word 'pipelinenews'): 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.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs `build/javascript/202608262300-verify-v8-reachability.mjs` and `build/python/202608262300-compile-v8-contract.py`.
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
Compile PipelineNews V8 With Companies
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/compile-v8-with-companies.yml:1-71 · blob ea8fe39084b08bb9f903e5463a5fbaba3a24dd7c · 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: Compile PipelineNews V8 With Companies

on:
  workflow_dispatch:
    inputs:
      candidate_stamp:
        description: Candidate to gate and compile
        required: true
        default: "202608262115"
        type: string
      companies_ref:
        description: Exact 40-character Ventusltd/companies data commit
        required: true
        type: string

concurrency:
  group: compile-pipelinenews-v8-with-companies
  cancel-in-progress: false

jobs:
  gate-compile:
    runs-on: ubuntu-latest
    timeout-minutes: 35
    permissions:
      contents: read
    steps:
      - uses: actions/checkout@v4
      - uses: actions/checkout@v4
        with:
          repository: Ventusltd/companies
          ref: ${{ inputs.companies_ref }}
          path: companies-source
      - uses: actions/setup-node@v4
        with:
          node-version: "22"
      - uses: actions/setup-python@v5
        with:
          python-version: "3.12"
      - run: |
          npm install --no-save --no-package-lock playwright@1.55.0
          npx playwright install --with-deps chromium
      - name: Prove V8 foundation before compilation
        env:
          BUILD_STAMP: ${{ inputs.candidate_stamp }}
        run: |
          python3 -m http.server 4173 >/tmp/v8-http.log 2>&1 &
          server_pid=$!
          trap 'kill "$server_pid"' EXIT
          node build/javascript/202608262300-verify-v8-reachability.mjs | tee v8-foundation-proof.json
      - name: Compile pinned evidence contract
        env:
          CANDIDATE_STAMP: ${{ inputs.candidate_stamp }}
        run: |
          set -euo pipefail
          [[ "$CANDIDATE_STAMP" =~ ^[0-9]{12}$ ]]
          build_stamp="$(date -u +%Y%m%d%H%M)"
          python build/python/202608262300-compile-v8-contract.py \
            --stamp "$build_stamp" \
            --base "releases/${CANDIDATE_STAMP}-v8-candidate.html" \
            --project-engine "releases/javascript/${CANDIDATE_STAMP}-projects-v8-foundation.js" \
            --foundation-proof v8-foundation-proof.json \
            --companies-manifest companies-source/data/current/manifest-v1.json \
            --output "work/${build_stamp}-v8-compile-manifest.json"
      - uses: actions/upload-artifact@v4
        with:
          name: pipelinenews-v8-compiled-contract-${{ github.run_id }}
          path: |
            work/
            v8-foundation-proof.json
          if-no-files-found: error
          retention-days: 30

PipelineNews Coverage Contract Workflow

A GitHub Actions workflow. Runs on push, on pull requests and by hand.

automationpipelinenews / .github/workflows/coverage-contract.yml · lines 1–62 of 62 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (repository name word 'pipelinenews'): 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.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs Check Live News Candidate (`discovery/tests/202608270844-check-live-news-candidate.mjs`), Check BBC Enrichment (`discovery/tests/202608270844-check-bbc-enrichment.mjs`) and Build Coverage Candidate (`tools/publication/build-coverage-candidate.mjs`).
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
BBC RSS Pipeline Model Test (workflow run), Coverage Join Audit Test (workflow run), Provisional Identity Test (workflow run), Reported Project Test (workflow run), Test BBC RSS (workflow run), Check Live News Candidate (workflow run), Check BBC Enrichment (workflow run), Build Coverage Candidate (workflow run), and 2 more
Used by
none found
Produces
none declared
Defines here
Pipeline coverage contract
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/coverage-contract.yml:1-62 · blob 65bec94c6ff3cc2565983284a61eaf5c4e8c6cd2 · 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: Pipeline coverage contract
on:
  push:
    branches: [main, 'codex/20260906-next30']
    paths:
      - 'cartridges/**'
      - 'news/**'
      - 'data/news-discovery/202608270844-*.json'
      - 'data/projects/202608261927-project-partition-v9-1-*.json'
      - 'discovery/bbc_rss.py'
      - 'discovery/fixtures/202608270844-*'
      - 'discovery/javascript/202608270844-*.mjs'
      - 'discovery/tests/202608270844-*.mjs'
      - 'tools/publication/*candidate.mjs'
      - 'tools/publication/verify-testcode.mjs'
      - 'ui/templates/bbc-rss-intelligence.html'
      - '.github/workflows/coverage-contract.yml'
      - '.github/workflows/bbc-rss-discovery.yml'
  pull_request:
    branches: [main]
    paths:
      - 'cartridges/**'
      - 'news/**'
      - 'data/news-discovery/202608270844-*.json'
      - 'data/projects/202608261927-project-partition-v9-1-*.json'
      - 'discovery/bbc_rss.py'
      - 'discovery/fixtures/202608270844-*'
      - 'discovery/javascript/202608270844-*.mjs'
      - 'discovery/tests/202608270844-*.mjs'
      - 'tools/publication/*candidate.mjs'
      - 'tools/publication/verify-testcode.mjs'
      - 'ui/templates/bbc-rss-intelligence.html'
      - '.github/workflows/coverage-contract.yml'
      - '.github/workflows/bbc-rss-discovery.yml'
  workflow_dispatch:
permissions:
  contents: read
jobs:
  coverage:
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v4
        with:
          persist-credentials: false
      - uses: actions/setup-node@v4
        with:
          node-version: 22
      - uses: actions/setup-python@v5
        with:
          python-version: '3.12'
      - run: node --test cartridges/*.test.mjs
      - run: python -B -m unittest discover -s news/tests -p 'test_*.py'
      - name: Verify historical search and BBC enrichment against offline fixtures
        run: |
          node discovery/tests/202608270844-check-live-news-candidate.mjs
          node discovery/tests/202608270844-check-bbc-enrichment.mjs
      - name: Verify candidate files against committed source, independent of checkout newlines
        run: |
          node tools/publication/build-coverage-candidate.mjs 200001010001
          node tools/publication/verify-testcode.mjs testcode/200001010001
          node tools/publication/build-rss-candidate.mjs 200001010002
          node tools/publication/verify-testcode.mjs testcode/200001010002

PipelineNews Gate V8 Foundation Workflow

A GitHub Actions workflow. Runs by hand.

automationpipelinenews / .github/workflows/gate-v8-foundation.yml · lines 1–43 of 43 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage 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.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs `build/javascript/202608262300-verify-v8-reachability.mjs`.
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
Gate PipelineNews V8 Foundation
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/gate-v8-foundation.yml:1-43 · blob 4541295aff83e4cf2a8349035b78601528eed280 · 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: Gate PipelineNews V8 Foundation

on:
  workflow_dispatch:
    inputs:
      candidate_stamp:
        required: true
        default: "202608262115"
        type: string

concurrency:
  group: gate-pipelinenews-v8-foundation
  cancel-in-progress: false

jobs:
  reachability-performance:
    runs-on: ubuntu-latest
    timeout-minutes: 30
    permissions:
      contents: read
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: "22"
      - run: |
          npm install --no-save --no-package-lock playwright@1.55.0
          npx playwright install --with-deps chromium
      - name: Prove all 7,680 projects are reachable
        env:
          BUILD_STAMP: ${{ inputs.candidate_stamp }}
        run: |
          python3 -m http.server 4173 >/tmp/v8-http.log 2>&1 &
          server_pid=$!
          trap 'kill "$server_pid"' EXIT
          node build/javascript/202608262300-verify-v8-reachability.mjs | tee v8-foundation-proof.json
      - uses: actions/upload-artifact@v4
        if: always()
        with:
          name: pipelinenews-v8-foundation-proof-${{ github.run_id }}
          path: v8-foundation-proof.json
          if-no-files-found: warn
          retention-days: 30

PipelineNews Pages Workflow

A GitHub Actions workflow that builds and publishes the site. Runs on push, by hand and on release.

automationpipelinenews / .github/workflows/pages.yml · lines 1–137 of 137 · Entry point

What it does
It builds and publishes its content. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (repository name word 'pipelinenews'): 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: JSON file current-v3.json; JSON file current-v4.json; JSON file live-set.json; JSON file atlas-v9-link-contract.json.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs Pages Release Classifier (`tools/publication/pages_release_classifier.py`) and Release Builder (`tools/intelligence/release_builder.py`).
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
Pages Release Classifier (workflow run), Release Builder (workflow run), PipelineNews Pages V2 Workflow (workflow run)
Used by
none found
Produces
none declared
Defines here
Deploy PipelineNews Pages
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/pages.yml:1-137 · blob 57d1382b61ca8df110d8956247466259b842b082 · 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: Deploy PipelineNews Pages

# Automatic deployment is intentionally limited to immutable release and
# pointer outputs. Workflow-source edits require an explicit manual dispatch,
# preventing one source commit from launching obsolete promotion workflows.
on:
  push:
    branches: [main]
    paths:
      - 'releases/*-pipelinenews/**'
      - 'releases/current-v3.json'
      - 'releases/current-v4.json'
      - 'state/live-set.json'
      - 'state/atlas-v9-link-contract.json'
      - 'machine-learning/proofs/202608300309-*-atlas-v9-deep-link-proof.json'
  workflow_dispatch:
    inputs:
      expected_sha:
        description: Exact main commit authorised for this deployment
        required: true
        type: string
      timestamp_folder_release:
        description: Optional immutable YYYYMMDDHHMM-pipelinenews release folder
        required: false
        default: ''
        type: string

permissions:
  contents: read
  actions: read

concurrency:
  group: pipelinenews-pages-v2
  cancel-in-progress: false

jobs:
  classify:
    name: Classify exact release before choosing a publisher
    runs-on: ubuntu-24.04
    timeout-minutes: 5
    outputs:
      release_id: ${{ steps.classify.outputs.release_id }}
      route: ${{ steps.classify.outputs.route }}
      pages_applicable: ${{ steps.classify.outputs.pages_applicable }}
      manifest_sha256: ${{ steps.classify.outputs.manifest_sha256 }}
      manifest_bytes: ${{ steps.classify.outputs.manifest_bytes }}
    steps:
      - name: Checkout exact candidate
        uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09
        with:
          ref: ${{ inputs.expected_sha || github.sha }}
          fetch-depth: 0
          persist-credentials: false

      - name: Require exact current main before classification
        env:
          EXPECTED_SHA: ${{ inputs.expected_sha || github.sha }}
        run: |
          set -euo pipefail
          [[ "$EXPECTED_SHA" =~ ^[0-9a-f]{40}$ ]]
          test "$(git rev-parse HEAD)" = "$EXPECTED_SHA"
          git fetch --no-tags origin refs/heads/main
          test "$(git rev-parse FETCH_HEAD)" = "$EXPECTED_SHA"

      - name: Classify release from immutable manifest
        id: classify
        shell: bash
        env:
          BASE_SHA: ${{ github.event.before }}
          HEAD_SHA: ${{ inputs.expected_sha || github.sha }}
          REQUESTED_RELEASE: ${{ inputs.timestamp_folder_release || '' }}
        run: |
          set -euo pipefail
          mkdir -p reports
          args=(--repo . --github-output "$GITHUB_OUTPUT" --receipt reports/pages-release-classification.json)
          if test -n "$REQUESTED_RELEASE"; then
            args+=(--release "$REQUESTED_RELEASE")
          elif test "$GITHUB_EVENT_NAME" = push; then
            args+=(--base "$BASE_SHA" --head "$HEAD_SHA" --allow-pointer-fallback)
          else
            args+=(--live-pointer)
          fi
          python3 tools/publication/pages_release_classifier.py "${args[@]}"

      - name: Record the routing decision in the run summary
        env:
          RELEASE_ID: ${{ steps.classify.outputs.release_id }}
          ROUTE: ${{ steps.classify.outputs.route }}
          MANIFEST_SHA256: ${{ steps.classify.outputs.manifest_sha256 }}
          MANIFEST_BYTES: ${{ steps.classify.outputs.manifest_bytes }}
        run: |
          {
            echo "## Pipeline News release routing"
            echo
            echo "- Release: \`$RELEASE_ID\`"
            echo "- Route: \`$ROUTE\`"
            echo "- Manifest: \`$MANIFEST_SHA256\` ($MANIFEST_BYTES bytes)"
          } >> "$GITHUB_STEP_SUMMARY"

      - name: Retain the byte-bound classification receipt
        uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
        with:
          name: pages-release-classification-${{ steps.classify.outputs.release_id }}
          path: reports/pages-release-classification.json
          if-no-files-found: error
          retention-days: 30

  validate-source-only:
    name: Validate additive source release without publishing it
    needs: classify
    if: needs.classify.outputs.route == 'source-only'
    runs-on: ubuntu-24.04
    timeout-minutes: 10
    steps:
      - name: Checkout exact candidate
        uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09
        with:
          ref: ${{ inputs.expected_sha || github.sha }}
          persist-credentials: false

      - name: Prove additive release closure
        env:
          RELEASE_ID: ${{ needs.classify.outputs.release_id }}
        run: python3 tools/intelligence/release_builder.py --check "$RELEASE_ID"

  deploy:
    needs: classify
    if: needs.classify.outputs.route == 'pages'
    permissions:
      contents: read
      actions: read
      pages: write
      id-token: write
    uses: ./.github/workflows/202608301214-pages-v2.yml
    with:
      expected_sha: ${{ inputs.expected_sha || github.sha }}
      timestamp_folder_release: ${{ needs.classify.outputs.release_id }}