GLOBALGRID2050 / EXPLORE CODE

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

GridAtlas PR File Size Guard Workflow and 4 more files

A GitHub Actions workflow. Runs on pull requests.

679 lines of YAML from gridatlas, kuiper-belt, in 5 files. Topic: Automation and CI. Section 1816 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. GridAtlas PR File Size Guard Workflow automation · gridatlas / .github/workflows/pr-file-size-guard.yml lines 701–1012
  2. GridAtlas Rollback Composition Workflow automation · gridatlas / .github/workflows/rollback-composition.yml lines 1–189
  3. GridAtlas Teleprint Parse Gate Workflow automation · gridatlas / .github/workflows/teleprint-parse-gate.yml lines 1–105
  4. Agent Start Workflow automation · kuiper-belt / .github/workflows/agent-start.yml lines 1–47
  5. Check Workflow automation · kuiper-belt / .github/workflows/check.yml lines 1–26

GridAtlas PR File Size Guard Workflow

A GitHub Actions workflow. Runs on pull requests.

automationgridatlas / .github/workflows/pr-file-size-guard.yml · lines 701–1012 of 1012 (continued from section 1815) · Entry point

What it does
It runs substations. 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 '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: substations.
Inputs & outputs
In: JSON file current.json; JSON file -composition.json; JSON file zip.json; JSON file parquet.json. Out: JSON file comparison.json.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “PR file size guard and cartridge gate”; runs SatNav G203 Verify Composition (`tools/satnav/g203-verify-composition.mjs`), G203 03 Gps Camera Test (`tests/g203-03-gps-camera.test.mjs`) and SatNav Serve (`tools/satnav/serve.mjs`).
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
gridatlas · .github/workflows · workflow
Uses
G203 Compact Dock (workflow run), G203 Vicinity Controls Rescue (workflow run), SatNav G203 Dock Browser (workflow run), SatNav G203 Swarm 03 Panel Continuity (workflow run), SatNav G203 Swarm 05 Offline Browser (workflow run), SatNav G203 Verify Composition (workflow run), G203 03 Gps Camera Test (workflow run), SatNav G203 04 Saved Plan Test (workflow run), and 61 more
Used by
none found
Produces
none declared
Defines here
none
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
gridatlas@98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5 .github/workflows/pr-file-size-guard.yml:701-1012 · blob 4ee37340e96d82fe6aff649db0bfe313741812fb · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: filesystem, network, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
              # shellcheck disable=SC2053
              [[ "$p" == $pat ]] && return 0
            done
            return 1
          }

          failed=0
          checked=0
          {
            echo "## PR file size guard"
            echo ""
            echo "Limit: ${MAX_MB} MB per file (added or modified files, allowlist: \`$ALLOWLIST\`)."
            echo ""
          } >> "$GITHUB_STEP_SUMMARY"

          # HEAD is the merge of the PR into its base, so diffing it against the
          # base commit yields exactly the PR's own additions and modifications.
          while IFS= read -r -d '' path; do
            [ -n "$path" ] || continue
            size=$(git cat-file -s "HEAD:$path" 2>/dev/null || echo 0)
            checked=$((checked + 1))
            if [ "$size" -gt "$limit" ]; then
              mb=$(awk -v b="$size" 'BEGIN { printf "%.1f", b / 1048576 }')
              if allowed "$path"; then
                echo "allowlisted  ${mb} MB  $path"
                echo "- allowlisted: \`$path\` (${mb} MB)" >> "$GITHUB_STEP_SUMMARY"
              else
                echo "::error file=$path::$path is ${mb} MB, over the ${MAX_MB} MB limit. Publish it as a release asset, a workflow artifact, or an external dataset, or add it to $ALLOWLIST with a reason."
                echo "- FAIL: \`$path\` (${mb} MB)" >> "$GITHUB_STEP_SUMMARY"
                failed=1
              fi
            fi
          done < <(git diff --name-only -z --diff-filter=AM "$BASE_SHA" HEAD)

          echo "" >> "$GITHUB_STEP_SUMMARY"
          echo "Files checked: $checked" >> "$GITHUB_STEP_SUMMARY"
          echo "checked $checked added/modified files against a ${MAX_MB} MB limit"
          if [ "$failed" -ne 0 ]; then
            echo "One or more files exceed the size budget. See the annotations above." >&2
            exit 1
          fi
          echo "All files within budget."

  # The checks that were run by hand before every cut, run on every PR:
  # loop.mjs lint and STATE.md parity, the proof of every generation the PR
  # touches and of the one atlas/current.json points to, run-current,
  # verify-compose, loader byte identity for atlas/v/<gen>/index.html, and the
  # vendored lightning overlay node suite. Node built-ins only: no npm install,
  # no browser, no network, no secrets. The browser proofs stay in
  # 202608312212-cartridge-proof.yml.
  cartridge-gate:
    runs-on: ubuntu-24.04
    timeout-minutes: 10
    env:
      # Pinned exactly: the version every local gate run of 28 Oct 2026 used.
      NODE_VERSION: '22.23.4'
    steps:
      - name: Checkout the PR merge commit
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
        with:
          fetch-depth: 1
          persist-credentials: false

      - name: Fetch the base commit the PR is diffed against
        env:
          BASE_SHA: ${{ github.event.pull_request.base.sha }}
        run: |
          git fetch --no-tags --depth=1 origin "$BASE_SHA"
          # Immutable proof anchor for the V9.191 no-copy assertion. Keep the checkout shallow.
          git fetch --no-tags --depth=1 origin 76653e40cf883e39497a0859d2532eb8b05930b1

      - name: Node (exact pin)
        uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
        with:
          node-version: ${{ env.NODE_VERSION }}

      - name: The runner is on the pinned Node
        run: |
          test "$(node --version)" = "v${NODE_VERSION}" || { echo "node $(node --version) is not the pinned v${NODE_VERSION}"; exit 1; }
          node --version

      - name: Cartridge gate
        env:
          BASE_SHA: ${{ github.event.pull_request.base.sha }}
        run: node tools/ci/pr-gate.mjs --base "$BASE_SHA"

  # The twin (docs/CI.md, "Twin, preservation and keys"): the live generation's
  # data files rebuilt from the commit-pinned source register with the pinned
  # Python libraries, and compared byte for byte with the committed files.
  # `needs: cartridge-gate` is the ordering rule: the offline gate (which
  # already ran preservation, the offline twin and the keys) is green before
  # this job opens a socket. Read-only: it fetches two pinned files and pip
  # packages, writes nothing to the repository and uses no secret.
  twin:
    needs: cartridge-gate
    runs-on: ubuntu-24.04
    timeout-minutes: 10
    steps:
      - name: Checkout the PR merge commit
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
        with:
          fetch-depth: 1
          persist-credentials: false
      - name: Fetch the base commit the PR is diffed against
        env:
          BASE_SHA: ${{ github.event.pull_request.base.sha }}
        run: |
          git fetch --no-tags --depth=1 origin "$BASE_SHA"
          # Immutable proof anchor for the V9.191 no-copy assertion. Keep the checkout shallow.
          git fetch --no-tags --depth=1 origin 76653e40cf883e39497a0859d2532eb8b05930b1
      - name: Node (exact pin)
        uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
        with:
          node-version: '22.23.4'
      - name: Rebuild the live generation from its pinned source and compare every byte
        env:
          BASE_SHA: ${{ github.event.pull_request.base.sha }}
        shell: bash
        run: |
          set -euo pipefail
          if ! git diff --name-only --no-renames "$BASE_SHA" HEAD | grep -Eq '^(atlas|data|compiler|tools)/'; then
            echo "The PR touches none of atlas/, data/, compiler/, tools/: twin not run." | tee -a "$GITHUB_STEP_SUMMARY"
            exit 0
          fi
          python3 -m venv "$RUNNER_TEMP/twin-venv"
          "$RUNNER_TEMP/twin-venv/bin/pip" install --quiet --require-virtualenv -r requirements.lock
          status=0
          node tools/twin/replicate-generation.mjs --network --python "$RUNNER_TEMP/twin-venv/bin/python" 2>&1 | tee "$RUNNER_TEMP/twin.log" || status=$?
          { echo '## Twin'; echo; echo '```'; cat "$RUNNER_TEMP/twin.log"; echo '```'; } >> "$GITHUB_STEP_SUMMARY"
          if [[ "$status" -eq 0 && "$GITHUB_HEAD_REF" == 'candidate/202612010912-ukpn-secondary-substations' ]]; then
            # Preview publication preserves the live pointer; explicitly audit the pending UKPN generation.
            node tools/twin/replicate-generation.mjs --network --generation 202612010912 --python "$RUNNER_TEMP/twin-venv/bin/python" 2>&1 | tee -a "$RUNNER_TEMP/twin.log" || status=$?
          fi
          exit "$status"

  # Real Chromium check on every preview/ PR (NL-007), for the generation
  # named in DC_SMOKE_GENERATION at line 177. This does not deploy, change
  # the live pointer or use secrets; keep the reusable script.
  dc-browser-smoke:
    if: startsWith(github.event.pull_request.head.ref, 'preview/')
    runs-on: ubuntu-24.04
    timeout-minutes: 15
    steps:
      - name: Checkout candidate with real preview files
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
        with:
          fetch-depth: 1
          persist-credentials: false
      - name: Node 22
        uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
        with:
          node-version: '22.23.4'
      - name: Install headless Chromium for actual phone/desktop map taps
        run: |
          npm install --no-save --ignore-scripts playwright@1.56.1
          npx playwright install --with-deps chromium
      - name: Test Slough tap, four tabs, link reveal and CSV in Chromium
        env:
          DC_SMOKE_GENERATION: '202610312138'
        run: node tools/ci/offtakers/browser-dc-smoke.mjs
      - name: Preserve screenshots for review
        if: always()
        uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02  # v4.6.2
        with:
          name: dc-browser-smoke-${{ github.run_id }}
          path: ${{ runner.temp }}/gridatlas-dc-browser/
          if-no-files-found: ignore

  map-receiver-browser:
    if: github.event_name == 'pull_request' && (github.event.pull_request.head.ref == 'fix/v925-map-receiver' || github.event.pull_request.head.ref == 'fix/v9191-release-contract' || github.event.pull_request.head.ref == 'fix/v9191-promoted-gate')
    runs-on: ubuntu-latest
    timeout-minutes: 30
    env:
      MAP_RECEIVER_GENERATION: ${{ github.event.pull_request.head.ref == 'fix/v925-map-receiver' && '202611161645' || '202611161720' }}
    steps:
      - uses: actions/checkout@v4
        with:
          ref: ${{ github.event.pull_request.head.sha || github.sha }}
          fetch-depth: 1
          persist-credentials: false
      - name: Prepare shallow proof history
        run: |
          test "$(git rev-parse --is-shallow-repository)" = true
          git fetch --no-tags --depth=1 origin 76653e40cf883e39497a0859d2532eb8b05930b1
      - uses: actions/setup-node@v4
        with:
          node-version: '22'
          cache: npm
      - run: npm ci
      - run: npx playwright install --with-deps chromium
      - run: node tools/proofs/${MAP_RECEIVER_GENERATION}-sld-sandbox.proof.mjs
      - name: Real release and byte-exact route-C rollback rehearsal
        if: github.event.pull_request.head.ref == 'fix/v9191-release-contract' || github.event.pull_request.head.ref == 'fix/v9191-promoted-gate'
        run: |
          git config user.name "GridAtlas rehearsal"
          git config user.email "rehearsal@users.noreply.github.com"
          node tools/release/map-promotion-rehearsal.mjs
      - name: Real MAP clicks and visible calculation results
        run: node tools/proofs/map-receiver-restoration.browser.mjs
      - name: Stalled declared-connection lookup remains explicit
        env:
          NESO_TIMEOUT: '1'
          WIDTHS: '390'
          REFS: '12588'
        run: node tools/proofs/map-receiver-restoration.browser.mjs
      - uses: actions/upload-artifact@v4
        if: always()
        with:
          name: map-receiver-${{ github.event.pull_request.head.sha || github.sha }}
          path: |
            work/map-*
            work/engine-*
          retention-days: 14

  ukpn-secondary-browser:
    if: github.event.pull_request.head.ref == 'candidate/202612010912-ukpn-secondary-substations' || startsWith(github.event.pull_request.head.ref, 'integration/unified-shell-')
    runs-on: ubuntu-24.04
    timeout-minutes: 25
    strategy:
      fail-fast: false
      matrix:
        browser: [chromium, webkit]
    steps:
      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
        with:
          ref: ${{ github.event.pull_request.head.sha }}
          persist-credentials: false
      - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
        with:
          node-version: '24'
      - run: npm ci --ignore-scripts --no-audit --no-fund
      - name: Install browser with transient-network retries
        run: |
          for attempt in 1 2 3; do
            if npx --no-install playwright install --with-deps ${{ matrix.browser }}; then exit 0; fi
            if [[ "$attempt" == 3 ]]; then exit 1; fi
            sleep 15
          done
      - name: UKPN genuine archive and native map controls
        env:
          UKPN_BROWSER: ${{ matrix.browser }}
        run: node tools/proofs/202612010912-ukpn-secondary.browser.mjs
      - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
        if: always()
        with:
          name: ukpn-secondary-${{ matrix.browser }}-${{ github.run_id }}
          path: work/ukpn-${{ matrix.browser }}
          retention-days: 14

  # Compare actual pinned predecessor and candidate with the identical harness,
  # browser installation and runner. No production runtime or manifest changes.
  ukpn-secondary-comparison:
    if: github.event.pull_request.head.ref == 'candidate/202612010912-ukpn-secondary-substations'
    runs-on: ubuntu-24.04
    timeout-minutes: 50
    strategy:
      fail-fast: false
      matrix:
        browser: [chromium, webkit]
    steps:
      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
        with:
          ref: ${{ github.event.pull_request.head.sha }}
          persist-credentials: false
      - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
        with:
          node-version: '24'
      - run: npm ci --ignore-scripts --no-audit --no-fund
      - name: Install browser with transient-network retries
        run: |
          for attempt in 1 2 3; do
            if npx --no-install playwright install --with-deps ${{ matrix.browser }}; then exit 0; fi
            if [[ "$attempt" == 3 ]]; then exit 1; fi
            sleep 15
          done
      - name: Prepare pinned ZIP predecessor worktree
        run: |
          git fetch --depth=1 origin cf8ca53fd2550965f7bd742d4d62302a8b984c8e
          git worktree add --detach "$RUNNER_TEMP/ukpn-zip" cf8ca53fd2550965f7bd742d4d62302a8b984c8e
          test "$(git -C "$RUNNER_TEMP/ukpn-zip" rev-parse HEAD)" = "cf8ca53fd2550965f7bd742d4d62302a8b984c8e"
          ln -s "$PWD/node_modules" "$RUNNER_TEMP/ukpn-zip/node_modules"
          cp tools/proofs/202612010912-ukpn-paired.browser.mjs "$RUNNER_TEMP/ukpn-zip/tools/proofs/"
          mkdir -p work/ukpn-paired
      - name: Same-runner ZIP and Parquet benchmark
        env:
          UKPN_BROWSER: ${{ matrix.browser }}
        run: |
          out="$PWD/work/ukpn-paired"
          export UKPN_BENCH_OUTPUT="$out/zip.json" UKPN_BENCH_MODE=zip
          (cd "$RUNNER_TEMP/ukpn-zip" && node tools/proofs/202612010912-ukpn-paired.browser.mjs)
          export UKPN_BENCH_OUTPUT="$out/parquet.json" UKPN_BENCH_MODE=parquet
          node tools/proofs/202612010912-ukpn-paired.browser.mjs
          node --input-type=module <<'JS'
          import assert from 'node:assert/strict';
          import fs from 'node:fs';
          const root='work/ukpn-paired/';
          const zip=JSON.parse(fs.readFileSync(root+'zip.json')), parquet=JSON.parse(fs.readFileSync(root+'parquet.json'));
          assert.equal(zip.length,4);assert.equal(parquet.length,4);
          const comparison=zip.map((z,i)=>{
            const p=parquet[i];
            assert.deepEqual([z.engine,z.viewport,z.cache,z.site],[p.engine,p.viewport,p.cache,p.site]);
            return {viewport:z.viewport,cache:z.cache,zipHydrationMs:z.hydrationMs,parquetHydrationMs:p.hydrationMs,hydrationDeltaMs:p.hydrationMs-z.hydrationMs,zipDetailsMs:z.detailsMs,parquetDetailsMs:p.detailsMs,selectedSiteMatches:z.selectedSite===p.selectedSite,zipHeapAfterCycles:z.heapAfterCycles,parquetHeapAfterCycles:p.heapAfterCycles};
          });
          fs.writeFileSync(root+'comparison.json',JSON.stringify(comparison,null,2));
          console.log('UKPN SAME-RUNNER COMPARISON '+JSON.stringify(comparison));
          JS
      - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
        if: always()
        with:
          name: ukpn-paired-${{ matrix.browser }}-${{ github.run_id }}
          path: work/ukpn-paired
          retention-days: 14

GridAtlas Rollback Composition Workflow

A GitHub Actions workflow. Runs by hand.

automationgridatlas / .github/workflows/rollback-composition.yml · lines 1–189 of 189 · 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 '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.
Inputs & outputs
In: JSON file current.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
Move the live composition back to a generation that has already shipped.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
gridatlas · .github/workflows · workflow
Uses
GridAtlas Rollback (workflow run), Loop (workflow run), Verify Compose (workflow run), Run Current (workflow run)
Used by
none found
Produces
none declared
Defines here
Rollback GridAtlas composition
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
gridatlas@98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5 .github/workflows/rollback-composition.yml:1-189 · blob 7fec13f8058f347bec94165a9408a1a184af00e7 · 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
# Move the live composition back to a generation that has already shipped.
#
# WHY THIS EXISTS
#
# Every other automation in this repository moves atlas/current.json forward.
# On 2026-09-03 ten generations were cut in three hours, each one repointing
# the live route, and there was no reverse path at all: undoing a bad one
# meant hand-editing the pointer at whatever hour somebody noticed, which is
# precisely the hand-editing habit tools/recompose.mjs was written to end.
#
# v9.83 pinned the runtime products by commit and digest so a bad PRODUCT
# cannot reach a shipped release. This is the other half, so a bad RELEASE
# cannot stay on the pointer.
#
# WHY IT IS NOT TIMESTAMPED
#
# Every other workflow here carries a 12-digit generation because it belongs
# to one release. This one belongs to no release: it is a perpetual,
# single-purpose path, the same class as scope-loop and verify-live, and
# naming it for the night it was written would make it look like the sprawl
# the workflow budget exists to prevent.
#
# WHY IT IS NOT AUTOMATIC
#
# Nothing decides on its own that a release is bad. The decision is a person's;
# this only makes carrying it out fast and checked. `confirm` must be typed
# exactly, because the one thing worse than no rollback is an accidental one.
#
# WHAT GATES IT
#
# The same gates as an ordinary cut, run BEFORE anything is pushed: the
# composition must verify, the composed cartridge must pass its own proof, the
# scope ledger and workflow budget must hold, and STATE.md must already be
# what the generator produces. A rollback that cannot pass the proof is not a
# safe place to land, and pushing it first and finding out afterwards would
# repeat the failure it is meant to answer.

name: Rollback GridAtlas composition

run-name: Roll back to ${{ inputs.to_generation }}

on:
  workflow_dispatch:
    inputs:
      to_generation:
        description: 'Generation to restore, 12 digits, must be an ancestor of the live one'
        required: true
        type: string
      reason:
        description: 'Why the live composition is being moved back'
        required: true
        type: string
      confirm:
        description: 'Type ROLL BACK to confirm the live route will move'
        required: true
        type: string

permissions: {}

concurrency:
  group: gridatlas-rollback-composition
  cancel-in-progress: false

jobs:
  rollback:
    runs-on: ubuntu-24.04
    timeout-minutes: 15
    permissions:
      contents: write
    defaults:
      run:
        working-directory: gridatlas
    steps:
      - name: Refuse an unconfirmed pointer move
        working-directory: .
        env:
          CONFIRM: ${{ inputs.confirm }}
          TO_GENERATION: ${{ inputs.to_generation }}
        run: |
          set -eu
          test "$CONFIRM" = "ROLL BACK" || { echo "confirm must be exactly: ROLL BACK" >&2; exit 1; }
          echo "$TO_GENERATION" | grep -Eq '^[0-9]{12}$' || { echo "to_generation must be 12 digits" >&2; exit 1; }

      - name: Checkout main
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
        with:
          ref: main
          fetch-depth: 0
          path: gridatlas

      # Beside it, not inside it: run-current.mjs resolves ../grid-distance-maths
      # for the parity check that guards every distance the cartridge produces.
      - name: Checkout the canonical geodesy beside it
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
        with:
          repository: Ventusltd/grid-distance-maths
          ref: 30d2f817a4b007b7c3be334f3aff308331a848b8
          path: grid-distance-maths
          persist-credentials: false

      - name: Checkout the immutable Pipeline map-link corpus beside it
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
        with:
          repository: Ventusltd/pipelinenews
          ref: 25f03422d12ed6e5bfca860a825d6273c2e0c296
          path: pipelinenews
          persist-credentials: false

      - name: Node
        uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
        with:
          node-version: '24'

      # The tool refuses a target that is not an ancestor, and refuses one whose
      # cartridges no longer hash to what that generation recorded. Both are
      # checked against committed bytes, never the working copy.
      - name: Restore the named generation
        env:
          TO_GENERATION: ${{ inputs.to_generation }}
          REASON: ${{ inputs.reason }}
        run: node tools/rollback.mjs --to "$TO_GENERATION" --reason "$REASON"

      - name: Regenerate durable state
        run: node tools/scope/loop.mjs state

      - name: The restored composition matches what is declared and hashed
        run: node tools/scope/verify-compose.mjs

      - name: The restored cartridge passes its own proof
        run: node tools/proofs/run-current.mjs

      - name: The scope ledger and workflow budget still hold
        run: node tools/scope/loop.mjs lint

      - name: Nothing outside the composition was touched
        run: |
          set -eu
          git status --porcelain=v1 | sed -E 's/^.. //' | LC_ALL=C sort > /tmp/changed.txt
          cat /tmp/changed.txt
          while IFS= read -r path; do
            [ -z "$path" ] && continue
            case "$path" in
              atlas/current.json|atlas/state/live-set.json|atlas/manifests/*-composition.json|STATE.md) ;;
              *) echo "a rollback must not change $path" >&2; exit 1 ;;
            esac
          done < /tmp/changed.txt

      - name: Commit the restored generation
        id: commit
        env:
          TO_GENERATION: ${{ inputs.to_generation }}
          REASON: ${{ inputs.reason }}
        run: |
          set -eu
          GENERATION="$(node -p "require('./atlas/current.json').generation")"
          VERSION="$(node -p "require('./atlas/current.json').composition_version")"
          git config user.name 'gridatlas-rollback'
          git config user.email 'actions@users.noreply.github.com'
          git add -- atlas/current.json atlas/state/live-set.json atlas/manifests STATE.md
          git commit -m "${GENERATION}-gridatlas-${VERSION}: roll back the live composition to ${TO_GENERATION}

          ${REASON}

          Restored by .github/workflows/rollback-composition.yml, run ${GITHUB_RUN_ID}.
          The shipped generation ${TO_GENERATION} is not rewritten; this is a new
          generation carrying its composition, and previous_generation still names
          what it replaced."
          git push origin HEAD:main
          echo "generation=$GENERATION" >> "$GITHUB_OUTPUT"
          echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"

      - name: Record what moved
        if: always()
        env:
          TO_GENERATION: ${{ inputs.to_generation }}
          REASON: ${{ inputs.reason }}
          GENERATION: ${{ steps.commit.outputs.generation }}
          SHA: ${{ steps.commit.outputs.sha }}
        run: |
          {
            echo '## GridAtlas composition rollback'
            echo
            echo "- restored generation: \`${TO_GENERATION}\`"
            echo "- cut as: \`${GENERATION:-not reached}\`"
            echo "- commit: \`${SHA:-none}\`"
            echo "- reason: ${REASON}"
            echo
            echo 'The cartridge proof runs again on the pushed commit; that run is the gate.'
          } >> "$GITHUB_STEP_SUMMARY"

GridAtlas Teleprint Parse Gate Workflow

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

automationgridatlas / .github/workflows/teleprint-parse-gate.yml · lines 1–105 of 105 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: changes the web page (DOM); 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
On a cartridge went live that did not parse: a single-quoted string carrying a raw line break. window.initVentusMap never ran, and the.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
gridatlas · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
teleprint parse gate
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
gridatlas@98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5 .github/workflows/teleprint-parse-gate.yml:1-105 · blob d0a9c3d4e8532ee37ab9121d4cddb8a53bc9f615 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom, process · domain stage: field_execution · users: EPC_contractor, landowner_planner · canonical: production_core
# THE PARSE GATE, OFF THE LAPTOP.
#
# On 2026-09-05 a cartridge went live that did not parse: a single-quoted
# string carrying a raw line break. window.initVentusMap never ran, and the
# Atlas served no map, no menu bar and no layer controls in every browser. The
# architect found it on the live site.
#
# The fix -- a build that parses what it emits, and a runner that parses every
# cartridge the composition names -- lived only in a working directory. The
# engine repository has no workflows at all, and no workflow here referenced
# it, so the one check that would have caught the outage could not be reached
# from anywhere except this machine. That is the hole this closes.
#
# WHAT IT ACTUALLY GUARDS, AND WHAT IT CANNOT.
#
# Pages here is served from the branch, not from a deployment job: whatever is
# on main is what the world downloads, the moment it is pushed. So on `push`
# this workflow runs AFTER the bytes are already public. It is a DETECTOR
# there, not a gate, and saying otherwise would be the same kind of comfortable
# false claim it exists to prevent. Its blocking uses are `pull_request`, where
# it runs before the merge, and `workflow_dispatch`, which is how it gets fired
# from a phone.
#
# It answers exactly one question -- can the served bytes be parsed, and is the
# vendored part still the part its own header claims to be built from. It says
# nothing about whether the page WORKS; that is the browser proofs' job, and
# 202608312212-cartridge-proof.yml is where it belongs.
#
# THE ENGINE IS PINNED BY COMMIT, like every other repository this estate
# checks out beside itself. An unpinned engine would mean this gate's verdict
# changes when someone else's repository changes, which makes a green run
# unattributable. `teleprinter_ref` overrides it for a dispatch, so a new
# engine can be checked against these cartridges before it is pinned here.
name: teleprint parse gate

on:
  workflow_dispatch:
    inputs:
      teleprinter_ref:
        description: 'Ventusltd/teleprinter ref to check these cartridges against'
        required: false
        default: '11aa2a05471347d2413380bdad5879d572a1c98f'
  push:
    branches: [main]
    paths:
      - 'atlas/**'
      - '.github/workflows/teleprint-parse-gate.yml'
  pull_request:
    paths:
      - 'atlas/**'

permissions:
  contents: read

concurrency:
  group: gridatlas-teleprint-parse-gate-${{ github.ref }}
  cancel-in-progress: true

jobs:
  parse:
    runs-on: ubuntu-24.04
    # No browser, no npm install, no network beyond the two checkouts: this is
    # meant to be the cheapest thing in the estate so there is never a reason
    # to skip it.
    timeout-minutes: 6
    steps:
      - name: Check out the composition
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
        with:
          path: gridatlas

      # Beside it, not inside it: ci.mjs is run from the engine repository and
      # is handed the composition as its argument.
      - name: Check out the print engine
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
        with:
          repository: Ventusltd/teleprinter
          ref: ${{ github.event.inputs.teleprinter_ref || '11aa2a05471347d2413380bdad5879d572a1c98f' }}
          path: teleprinter

      - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
        with:
          node-version: '24'

      # Nine checks, including a negative control that corrupts a copy of a
      # driver with the exact 2026-09-05 defect and requires the build to
      # refuse for that reason. A gate never seen to fail is not known to work,
      # so the control runs here too rather than only on a laptop.
      - name: Parse the served bytes
        run: node teleprinter/drivers/gridatlas/ci.mjs "$GITHUB_WORKSPACE/gridatlas" --json parse-gate.json

      # The verdict is small and it is the whole point of the run, so it is
      # kept whether the step passed or failed -- a red run with no artefact
      # tells the next reader nothing.
      - name: Keep the verdict
        if: always()
        # The same commit 202608301321-verify-live.yml already pins in this
        # repository. Reusing the pin this repo has already reviewed is better
        # than importing a different one from a neighbouring repository, and
        # far better than inventing a SHA that looks plausible.
        uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v4.4.3
        with:
          name: teleprint-parse-gate
          path: parse-gate.json
          if-no-files-found: warn

Agent Start Workflow

A GitHub Actions workflow in Kuiper Belt. Runs on push, on a schedule and by hand.

automationkuiper-belt / .github/workflows/agent-start.yml · lines 1–47 of 47 · 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 agent_infra (path word 'agent'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
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 Agent Start (`tools/agent_start.py`).
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
kuiper-belt · .github/workflows · workflow
Uses
Test Agent Start (workflow run), Agent Start (workflow run)
Used by
none found
Produces
none declared
Defines here
Modular agent start
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
kuiper-belt@26fba12ab1b5bab8e71934ab86c58273e5f32682 .github/workflows/agent-start.yml:1-47 · blob 011ab0e7a5b34f8648e98ef5e5916b5fa4f2cc40 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: agent_infra · users: ai_agent · canonical: unknown
name: Modular agent start
on:
  push:
    branches: [main]
    paths:
      - tools/agent_start.py
      - tools/test_agent_start.py
      - .github/workflows/agent-start.yml
  schedule:
    - cron: '37 * * * *'
  workflow_dispatch:
  repository_dispatch:
    types: [kuiper-agent-refresh]
concurrency:
  group: kuiper-agent-start
  cancel-in-progress: false
permissions:
  contents: write
jobs:
  refresh:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    env:
      PYTHONDONTWRITEBYTECODE: '1'
    steps:
      - uses: actions/checkout@v4
        with:
          ref: main
          fetch-depth: 0
      - uses: actions/setup-python@v5
        with:
          python-version: '3.12'
      - name: Test modular entry point
        run: python -m unittest discover -s tools -p test_agent_start.py -v
      - name: Resolve public source identities
        env:
          GITHUB_TOKEN: ${{ github.token }}
        run: python tools/agent_start.py
      - name: Persist only changed agent index
        run: |
          git config user.name kuiper-agent-start
          git config user.email actions@users.noreply.github.com
          git add agents/START.json agents/START.md agents/START.html agents/index.html
          git diff --cached --quiet && exit 0
          git commit -m "agent-start: refresh public source identities"
          git pull --rebase --autostash origin main
          git push origin HEAD:main

Check Workflow

A GitHub Actions workflow in Kuiper Belt that builds and publishes the site. Runs on push and by hand.

automationkuiper-belt / .github/workflows/check.yml · lines 1–26 of 26 · Entry point

What it does
It builds and publishes its content. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage agent_infra (repository name word 'kuiper'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “checking engineer”; runs CI Check (`tools/ci_check.py`).
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
kuiper-belt · .github/workflows · workflow
Uses
CI Check (workflow run)
Used by
none found
Produces
none declared
Defines here
checking engineer
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
kuiper-belt@26fba12ab1b5bab8e71934ab86c58273e5f32682 .github/workflows/check.yml:1-26 · blob 327f067d286d55aaea0b6a9afaffe970532d2604 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: agent_infra · users: ai_agent · canonical: unknown
name: checking engineer

# A second checking engineer, on GitHub's machine, on every push. It did not build the proof and it
# cannot see the measuring machine, so it checks what the repository alone can prove: no private
# name anywhere, the published data adds up, every tool and page parses, keys are in time order.
on:
  push:
  workflow_dispatch:

permissions:
  contents: read

jobs:
  check:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: '3.12'
      - uses: actions/setup-node@v4
        with:
          node-version: '20'
      - name: Check, and fail closed
        run: python tools/ci_check.py