GLOBALGRID2050 / EXPLORE CODE

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

SatNav Public Scope Workflow and 7 more files

A GitHub Actions workflow that builds and publishes the site. Runs on push and on pull requests.

636 lines of YAML from pipelinenews, registry_of_all_content_in_repos_and_dependencies, reports and 1 more, in 8 files. Topic: Automation and CI. Section 1856 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 Performance Audit Workflow automation · pipelinenews / .github/workflows/performance-audit.yml lines 1–70
  2. Registry Workflow automation · registry_of_all_content_in_repos_and_dependencies / .github/workflows/registry.yml lines 1–57
  3. Build Browser Report Studio Workflow automation · reports / .github/workflows/build-browser-report-studio.yml lines 1–69
  4. Build Example Evidence Pack Workflow automation · reports / .github/workflows/build-example-evidence-pack.yml lines 1–54
  5. Validate Report Schemas Workflow automation · reports / .github/workflows/validate-report-schemas.yml lines 1–65
  6. Validate Save As Contract Workflow automation · reports / .github/workflows/validate-save-as-contract.yml lines 1–49
  7. SatNav Public Scope Served Workflow automation · satnav / .github/workflows/public-scope-served.yml lines 1–84
  8. SatNav Public Scope Workflow automation · satnav / .github/workflows/public-scope.yml lines 1–188

PipelineNews Performance Audit Workflow

A GitHub Actions workflow. Runs by hand.

automationpipelinenews / .github/workflows/performance-audit.yml · lines 1–70 of 70 · 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 Performance Audit (`atman/202608262120-performance-audit.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
Performance Audit (workflow run)
Used by
none found
Produces
none declared
Defines here
Audit PipelineNews Performance
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/performance-audit.yml:1-70 · blob edf554fd3480d1756c9070cef7f098a9e787cc89 · 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: Audit PipelineNews Performance

on:
  workflow_dispatch:
    inputs:
      rounds:
        description: Repeated cold-page measurements per target/profile
        required: false
        default: "3"

permissions:
  contents: read

concurrency:
  group: pipelinenews-performance-audit
  cancel-in-progress: false

jobs:
  audit:
    name: Compare four live implementations
    runs-on: ubuntu-latest
    timeout-minutes: 30
    env:
      AUDIT_ROUNDS: ${{ inputs.rounds }}
    steps:
      - name: Checkout exact dispatch commit
        uses: actions/checkout@v5
        with:
          ref: ${{ github.sha }}

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

      - name: Install pinned browser harness
        run: |
          npm install --no-save --no-package-lock playwright@1.55.0
          npx playwright install --with-deps chromium

      - name: Record audit source
        run: |
          mkdir -p audit-results
          {
            echo "repository=${{ github.repository }}"
            echo "commit=${{ github.sha }}"
            echo "run_id=${{ github.run_id }}"
            echo "rounds=${{ inputs.rounds }}"
            node --version
            npx playwright --version
          } | tee audit-results/audit-source.txt

      - name: Measure load sort and scroll
        run: node atman/202608262120-performance-audit.mjs

      - name: Publish summary
        if: always()
        run: |
          if [ -f audit-results/performance-audit.md ]; then
            cat audit-results/performance-audit.md >> "$GITHUB_STEP_SUMMARY"
          fi

      - name: Upload complete evidence
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: pipelinenews-performance-audit-${{ github.run_id }}
          path: audit-results/
          if-no-files-found: error
          retention-days: 30

Registry Workflow

A GitHub Actions workflow in Registry Of All Content In Repos And Dependencies. Runs on push, on a schedule and by hand.

automationregistry_of_all_content_in_repos_and_dependencies / .github/workflows/registry.yml · lines 1–57 of 57 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: starts processes.
Inputs & outputs
In: JSON file registry_repos.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 “Build kernel registry”; runs Build Registry from Config (`scripts/build_registry_from_config.py`), Reconcile Registry from Config (`scripts/reconcile_registry_from_config.py`) and Build Graph Latest (`scripts/build_graph_latest.py`).
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
registry_of_all_content_in_repos_and_dependencies · .github/workflows · workflow
Uses
Build Registry from Config (workflow run), Reconcile Registry from Config (workflow run), Build Graph Latest (workflow run), Build Kernel (workflow run), Validate Kernel Outputs (workflow run)
Used by
none found
Produces
none declared
Defines here
Build kernel registry
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
registry_of_all_content_in_repos_and_dependencies@2205a7abf98723f320f00aa4a0f6b648cf7109df .github/workflows/registry.yml:1-57 · blob 37edcf9720cbc807bfeea483a58973768c29c635 · GitHub at these lines
State
achieves: comment · context: auto · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: unknown
name: Build kernel registry

on:
  workflow_dispatch:
  push:
    branches: [main]
    paths:
      - 'config/registry_repos.json'
      - 'scripts/build_registry.py'
      - 'scripts/build_registry_from_config.py'
      - 'scripts/reconcile_registry.py'
      - 'scripts/reconcile_registry_from_config.py'
      - 'scripts/build_graph_latest.py'
      - 'scripts/build_kernel.py'
      - 'scripts/validate_kernel_outputs.py'
      - '.github/workflows/registry.yml'
  schedule:
    - cron: '0 6 * * 1'

permissions:
  contents: write

concurrency:
  group: kernel-registry
  cancel-in-progress: false

jobs:
  registry:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - name: Run registry builder or reconciler
        run: |
          set -euo pipefail
          if [ "${{ github.event_name }}" = "workflow_dispatch" ] || [ "${{ github.event_name }}" = "push" ]; then
            python3 scripts/build_registry_from_config.py
          else
            python3 scripts/reconcile_registry_from_config.py
          fi
          python3 scripts/build_graph_latest.py
          python3 scripts/build_kernel.py
          python3 scripts/validate_kernel_outputs.py
      - name: Commit registry changes
        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 registry
          if git diff --cached --quiet; then
            echo "No registry changes to commit"
            exit 0
          fi
          git commit -m "Update kernel registry"
          git push

Build Browser Report Studio Workflow

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

automationreports / .github/workflows/build-browser-report-studio.yml · lines 1–69 of 69 · Entry point

What it does
It builds and publishes its content. Side effects: changes the web page (DOM); starts processes.
Inputs & outputs
In: JSON file evidence-pack.json; CSV file evidence.csv.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Its name says it builds browser report studio.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
reports · .github/workflows · workflow
Uses
Report Save (workflow run), Report Evidence (workflow run)
Used by
none found
Produces
none declared
Defines here
Build browser report studio
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
reports@08aad9448481aabd2d8fd7373059bf829b29528f .github/workflows/build-browser-report-studio.yml:1-69 · blob 2b42669fa88e535e493015156d16eab73405dca6 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: output · effects: dom, process · domain stage: unknown · users: none · canonical: unknown
name: Build browser report studio

on:
  workflow_dispatch:
  push:
    paths:
      - 'studio/**'
      - '.github/workflows/build-browser-report-studio.yml'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Check required studio files
        run: |
          test -f studio/index.html
          test -f studio/report-save.js
          test -f studio/report-evidence.js
          test -f studio/style.css

      - name: Check JavaScript syntax
        run: |
          node --check studio/report-save.js
          node --check studio/report-evidence.js

      - name: Check Save As and fallback contract
        run: |
          grep -q "showSaveFilePicker" studio/report-save.js
          grep -q "createWritable" studio/report-save.js
          grep -q "URL.createObjectURL" studio/report-save.js
          grep -q "URL.revokeObjectURL" studio/report-save.js
          grep -q "blob-download-fallback" studio/report-save.js

      - name: Check required output controls
        run: |
          grep -q "data-format=\"json\"" studio/index.html
          grep -q "data-format=\"csv\"" studio/index.html
          grep -q "data-format=\"txt\"" studio/index.html
          grep -q "data-format=\"html\"" studio/index.html
          grep -q "window.print" studio/index.html

      - name: Check provenance and disclaimer terms
        run: |
          grep -q "Source badge" studio/report-evidence.js
          grep -q "disclaimer" studio/report-evidence.js
          grep -q "not engineering advice" studio/report-evidence.js
          grep -q "public_publishable" studio/report-evidence.js
          grep -q "content_hash" studio/report-evidence.js
          grep -q "confidence_state" studio/report-evidence.js
          grep -q "verification_state" studio/report-evidence.js

      - name: Check generated output contract
        run: |
          grep -q "evidence-pack.json" studio/report-evidence.js
          grep -q "evidence.csv" studio/report-evidence.js
          grep -q "note.txt" studio/report-evidence.js
          grep -q "report.html" studio/report-evidence.js
          grep -q "text/csv" studio/report-evidence.js
          grep -q "text/plain" studio/report-evidence.js
          grep -q "text/html" studio/report-evidence.js
          grep -q "application/json" studio/report-evidence.js

      - name: Package studio artifact
        uses: actions/upload-artifact@v4
        with:
          name: browser-report-studio
          path: studio/

Build Example Evidence Pack Workflow

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

automationreports / .github/workflows/build-example-evidence-pack.yml · lines 1–54 of 54 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: reads or writes files; starts processes.
Inputs & outputs
In: JSON file evidence-pack.json; CSV file evidence.csv.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Its name says it builds example evidence pack.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
reports · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Build example evidence pack
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
reports@08aad9448481aabd2d8fd7373059bf829b29528f .github/workflows/build-example-evidence-pack.yml:1-54 · blob ff64f0397ca0ce610ac5e2f0c8209fe32f74ad3a · GitHub at these lines
State
achieves: name · context: readme_derived · stage: output · effects: filesystem, process · domain stage: unknown · users: none · canonical: unknown
name: Build example evidence pack

on:
  workflow_dispatch:
  push:
    paths:
      - 'examples/**'
      - 'schemas/**'
      - '.github/workflows/build-example-evidence-pack.yml'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Build synthetic outputs
        run: |
          mkdir -p dist
          cp examples/synthetic/evidence-pack.json dist/evidence-pack.json
          cp examples/synthetic/report-dna.json dist/report-dna.json
          python - <<'PY'
          import csv, json
          from pathlib import Path

          pack = json.loads(Path('examples/synthetic/evidence-pack.json').read_text())
          evidence = pack['evidence']

          with Path('dist/evidence.csv').open('w', newline='', encoding='utf-8') as f:
              writer = csv.DictWriter(f, fieldnames=['id','evidence_class','title','source_application','confidence_state','verification_state','content_hash'])
              writer.writeheader()
              for item in evidence:
                  writer.writerow({k: item.get(k, '') for k in writer.fieldnames})

          Path('dist/note.txt').write_text(
              'GlobalGrid2050 synthetic evidence note\n\n'
              'Status: screening / synthetic / not certified\n'
              f"Evidence items: {len(evidence)}\n"
              'This is a public synthetic example.\n',
              encoding='utf-8'
          )

          rows = ''.join(f"<tr><td>{e['id']}</td><td>{e['title']}</td><td>{e['verification_state']}</td></tr>" for e in evidence)
          html = f"""<!doctype html><html><head><meta charset='utf-8'><title>GlobalGrid2050 Synthetic Report</title></head><body><h1>GlobalGrid2050 Synthetic Report</h1><p>Screening instrument only. Not certified.</p><table><thead><tr><th>ID</th><th>Title</th><th>State</th></tr></thead><tbody>{rows}</tbody></table></body></html>"""
          Path('dist/report.html').write_text(html, encoding='utf-8')
          print('built synthetic evidence outputs in dist/')
          PY

      - name: Upload artifact
        uses: actions/upload-artifact@v4
        with:
          name: synthetic-evidence-pack
          path: dist/

Validate Report Schemas Workflow

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

automationreports / .github/workflows/validate-report-schemas.yml · lines 1–65 of 65 · Entry point

What it does
It builds and publishes its content. Side effects: reads or writes files; starts processes.
Inputs & outputs
In: JSON file evidence.schema.json; JSON file report-dna.schema.json; JSON file journey.schema.json; JSON file evidence-pack.json; JSON file report-dna.json; JSON file journey.json.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Its name says it validates report schemas.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
reports · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Validate report schemas
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
reports@08aad9448481aabd2d8fd7373059bf829b29528f .github/workflows/validate-report-schemas.yml:1-65 · blob be02d69d58844e9d05f8bb46d664ea9e5c728380 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: ingest · effects: filesystem, process · domain stage: unknown · users: none · canonical: unknown
name: Validate report schemas

on:
  workflow_dispatch:
  push:
    paths:
      - 'schemas/**'
      - 'examples/**/*.json'
      - '.github/workflows/validate-report-schemas.yml'

jobs:
  validate:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Validate JSON syntax and required files
        run: |
          python - <<'PY'
          import json
          from pathlib import Path

          required = [
              Path('schemas/evidence.schema.json'),
              Path('schemas/report-dna.schema.json'),
              Path('schemas/journey.schema.json'),
              Path('examples/synthetic/evidence-pack.json'),
              Path('examples/synthetic/report-dna.json'),
              Path('examples/synthetic/journey.json'),
          ]

          missing = [str(p) for p in required if not p.exists()]
          if missing:
              raise SystemExit(f'Missing required files: {missing}')

          for path in required:
              with path.open('r', encoding='utf-8') as f:
                  json.load(f)
              print(f'valid json: {path}')
          PY

      - name: Minimal contract assertions
        run: |
          python - <<'PY'
          import json
          from pathlib import Path

          evidence_schema = json.loads(Path('schemas/evidence.schema.json').read_text())
          dna_schema = json.loads(Path('schemas/report-dna.schema.json').read_text())
          journey_schema = json.loads(Path('schemas/journey.schema.json').read_text())

          for key in ['content_hash', 'public_publishable', 'disclaimer_strength']:
              assert key in evidence_schema['required'], f'evidence schema missing {key}'
          for key in ['source_badge', 'disclaimer', 'outputs']:
              assert key in dna_schema['required'], f'report DNA schema missing {key}'
          assert 'entries' in journey_schema['required'], 'journey schema missing entries'

          pack = json.loads(Path('examples/synthetic/evidence-pack.json').read_text())
          assert pack['evidence'], 'synthetic evidence pack is empty'
          for item in pack['evidence']:
              assert item.get('public_publishable') is True, 'synthetic item must be public publishable'
              assert 'sha256:' in item.get('content_hash', ''), 'synthetic item missing sha256 hash'
          print('schema contract assertions passed')
          PY

Validate Save As Contract Workflow

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

automationreports / .github/workflows/validate-save-as-contract.yml · lines 1–49 of 49 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: reads or writes files; starts processes; uses storage (browser storage, DuckDB or Parquet).
Inputs & outputs
In: browser IndexedDB.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Its name says it validates save as contract.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
reports · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Validate Save As contract
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
reports@08aad9448481aabd2d8fd7373059bf829b29528f .github/workflows/validate-save-as-contract.yml:1-49 · blob dd2202e04aa119f06df3a1a65c7e5bb1d8168b5b · GitHub at these lines
State
achieves: name · context: readme_derived · stage: ingest · effects: filesystem, process, storage · domain stage: unknown · users: none · canonical: unknown
name: Validate Save As contract

on:
  workflow_dispatch:
  push:
    paths:
      - 'contracts/SAVE_AS_CONTRACT.md'
      - 'studio/report-save.js'
      - '.github/workflows/validate-save-as-contract.yml'

jobs:
  validate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Validate browser Save As contract
        run: |
          python - <<'PY'
          from pathlib import Path

          contract = Path('contracts/SAVE_AS_CONTRACT.md').read_text(encoding='utf-8')
          js = Path('studio/report-save.js').read_text(encoding='utf-8')

          required_contract_terms = [
              'showSaveFilePicker',
              'createWritable',
              'Blob',
              'URL.createObjectURL',
              'URL.revokeObjectURL',
              'IndexedDB',
              'OPFS',
              'Do not use `localStorage` for datasets'
          ]
          for term in required_contract_terms:
              if term not in contract:
                  raise SystemExit(f'Save As contract missing: {term}')

          required_js_terms = [
              'showSaveFilePicker',
              'createWritable',
              'URL.createObjectURL',
              'URL.revokeObjectURL'
          ]
          for term in required_js_terms:
              if term not in js:
                  raise SystemExit(f'report-save.js missing: {term}')

          print('Save As contract validated')
          PY

SatNav Public Scope Served Workflow

A GitHub Actions workflow using data from the GlobalGrid2050 and GlobalGrid2050-homepage repositories. Runs on push and by hand.

automationsatnav / .github/workflows/public-scope-served.yml · lines 1–84 of 84 · 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 field_execution (repository name word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work.
Inputs & outputs
In: data source: globalgrid2050 data; data source: globalgrid2050-homepage data; JSON file homepage-owner.json; JSON file homepage.json.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “SatNav public served-byte verification”.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
satnav · .github/workflows · workflow
Uses
SatNav — Scope Page (estate URL)
Used by
none found
Produces
none declared
Defines here
SatNav public served-byte verification
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
satnav@ea69138ca5d5a9632233220e5cbe1cd3f1c83432 .github/workflows/public-scope-served.yml:1-84 · blob b7fa1ba1db1f86f83d8d7d7f6f3fc324d169a5ff · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, network, process · domain stage: field_execution · users: EPC_contractor, landowner_planner · canonical: production_core
name: SatNav public served-byte verification
on:
  workflow_dispatch:
  push:
    branches: [main]
    paths: ['scope/**', '.github/workflows/public-scope-served.yml']
permissions:
  contents: read
  statuses: write
jobs:
  public:
    runs-on: ubuntu-latest
    timeout-minutes: 8
    steps:
      - uses: actions/checkout@v4
      - name: Mark public verification pending
        env:
          GH_TOKEN: ${{ github.token }}
        run: gh api --method POST "repos/$GITHUB_REPOSITORY/statuses/$GITHUB_SHA" -f state=pending -f context=satnav/public-scope -f target_url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" -f description="Checking public scope and pinned homepage bytes"
      - name: Verify scope page and full homepage bundle against current owner pin
        run: |
          python - <<'PY'
          import hashlib,json,time
          from pathlib import Path
          from urllib.request import Request,urlopen
          from html.parser import HTMLParser
          def get(url):
              with urlopen(Request(url,headers={'Cache-Control':'no-cache','Accept-Encoding':'identity','User-Agent':'GlobalGrid2050-public-verifier'}),timeout=20) as r:
                  assert r.status==200
                  return r.read(1_100_000)
          def sha(data):return hashlib.sha256(data).hexdigest()
          pin=json.loads(get('https://raw.githubusercontent.com/Ventusltd/globalgrid2050/main/catalogue/homepage-owner.json'))
          assert pin['repository']=='Ventusltd/globalgrid2050-homepage'
          assert len(pin['commit'])==40 and len(pin['files'])==7
          owner='https://raw.githubusercontent.com/'+pin['repository']+'/'+pin['commit']+'/'
          files={}
          for name,digest in pin['files'].items():
              data=get(owner+name)
              assert sha(data)==digest,name
              files[name]=data
          source=files.pop('index.html').decode('utf-8-sig')
          assert source.count('id="satnav-concept"')==1
          assert source.count('https://ventusltd.github.io/satnav/scope/')==1
          assert '(concept only stage)' in source
          class Links(HTMLParser):
              def __init__(self):super().__init__();self.links=[]
              def handle_starttag(self,tag,attrs):
                  if tag=='a':self.links.extend(v for k,v in attrs if k=='href')
          before=Links()
          before.feed(get('https://raw.githubusercontent.com/Ventusltd/globalgrid2050-homepage/63c5e2bfcb56695c0269d4172611e93c062d8ccd/index.html').decode())
          after=Links();after.feed(source)
          assert set(before.links)<=set(after.links),'Existing homepage links lost'
          for name in ('versioned-homepage.css','versioned-homepage.js'):
              old='./assets/'+name
              assert source.count(old)==1
              source=source.replace(old,'./homepage-shell/assets/'+name)
          old='href="data/homepage.json"'
          assert source.count(old)==1
          source=source.replace(old,'href="./homepage-shell/data/homepage.json"')
          expected={'https://www.globalgrid2050.com/':(source.rstrip()+'\n').encode(),'https://ventusltd.github.io/satnav/scope/':Path('scope/index.html').read_bytes()}
          expected.update({'https://globalgrid2050.com/homepage-shell/'+name:data for name,data in files.items()})
          print('Owner pin',pin['commit'],'; retained links',len(set(before.links)),flush=True)
          for attempt in range(12):
              failures=[]
              for url,data in expected.items():
                  try:
                      public=get(url+'?satnav_verify='+str(int(time.time())))
                      if sha(public)!=sha(data):failures.append(url+' SHA256 mismatch')
                  except Exception as e:failures.append(url+' '+str(e))
              if not failures:
                  print('PASS',len(expected),'exact public SHA256 comparisons; scope and complete homepage bundle',flush=True)
                  break
              print('Pending',attempt+1,failures,flush=True)
              if attempt==11:raise SystemExit('Public verification failed')
              time.sleep(12)
          PY
      - name: Record public verification result
        if: always()
        env:
          GH_TOKEN: ${{ github.token }}
          RESULT: ${{ job.status }}
        run: |
          if [ "$RESULT" = success ]; then state=success; else state=failure; fi
          gh api --method POST "repos/$GITHUB_REPOSITORY/statuses/$GITHUB_SHA" -f state="$state" -f context=satnav/public-scope -f target_url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" -f description="Exact public scope and pinned homepage comparison"

SatNav Public Scope Workflow

A GitHub Actions workflow that builds and publishes the site. Runs on push and on pull requests.

automationsatnav / .github/workflows/public-scope.yml · lines 1–188 of 188 · Entry point

What it does
It builds and publishes its content. 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 field_execution (repository name word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work.
Inputs & outputs
In: JSON file snapshot.json. Out: JSON file cvaa-comparison.json.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs `/tmp/satnav-scope-cvaa/inoculate.mjs`.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
satnav · .github/workflows · workflow
Uses
SatNav — Scope Page (estate URL)
Used by
none found
Produces
none declared
Defines here
SatNav public landing page
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
satnav@ea69138ca5d5a9632233220e5cbe1cd3f1c83432 .github/workflows/public-scope.yml:1-188 · blob 7a21efa0adf9c2424c842bdaa04a0f7793c34c07 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom, filesystem, network, process · domain stage: field_execution · users: EPC_contractor, landowner_planner · canonical: production_core
name: SatNav public landing page
on:
  pull_request:
    paths: ['scope/**', '.github/workflows/public-scope.yml']
  push:
    paths: ['scope/**', '.github/workflows/public-scope.yml']
permissions:
  contents: read
concurrency:
  group: satnav-scope-${{ github.event.pull_request.head.sha || github.sha }}
  cancel-in-progress: false
jobs:
  scope:
    runs-on: ubuntu-24.04
    timeout-minutes: 15
    steps:
      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
        with:
          ref: ${{ github.event.pull_request.head.sha || github.sha }}
          fetch-depth: 0
          persist-credentials: false
      - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
        with:
          python-version: '3.12'
      - run: |
          python -m pip install playwright==1.51.0
          python -m playwright install --with-deps chromium webkit
      - name: Test public scope, exact palette, mobile layout and feed failure
        run: |
          python - <<'PY'
          from pathlib import Path
          from playwright.sync_api import sync_playwright
          import json, threading, http.server, subprocess, hashlib
          from collections import Counter
          from html.parser import HTMLParser
          from urllib.request import Request, urlopen
          html=Path('scope/index.html').read_text()
          baseline='19737b9975495aebb4bd247e39c6509151fb576f'
          prior=subprocess.check_output(['git','show',baseline+':scope/index.html']).decode()
          assert 'Development preview — GPS prototype available' in html
          assert '(concept only stage)' not in html
          assert html.split('<script type="module">')[1]==prior.split('<script type="module">')[1], 'Ticker script changed'
          assert html.split('<style>')[1].startswith(prior.split('<style>')[1].split('</style>')[0]), 'Existing CSS changed'
          class Links(HTMLParser):
              def __init__(self): super().__init__(); self.links=[]
              def handle_starttag(self,tag,attrs):
                  if tag=='a': self.links.extend(v for k,v in attrs if k=='href')
          before=Links();before.feed(prior)
          after=Links();after.feed(html)
          gps='https://ventusltd.github.io/satnav/preview/9698781539e549deaa6ecaa4a2b34610c1f9fd29/nav/'
          assert Counter(after.links)==Counter(before.links)+Counter([gps]), 'Existing links lost or replaced'
          changed=subprocess.check_output(['git','diff','--name-only',baseline,'HEAD'],text=True).splitlines()
          assert set(changed)<= {'scope/index.html','.github/workflows/public-scope.yml'}, changed
          p1=Path('preview/9698781539e549deaa6ecaa4a2b34610c1f9fd29')
          manifest=json.loads((p1/'manifest.json').read_text())
          assert len(manifest['files'])==7
          def get(url):
              with urlopen(Request(url,headers={'Accept-Encoding':'identity','Cache-Control':'no-cache','User-Agent':'GlobalGrid2050-scope-regression'}),timeout=15) as r:
                  assert r.status==200,url
                  return r.read()
          for f in manifest['files']:
              data=(p1/f['path']).read_bytes()
              assert hashlib.sha256(data).hexdigest()==f['sha256'],f['path']
              assert get(gps.rsplit('nav/',1)[0]+f['path'])==data,f['path']
          assert get(gps)==(p1/'nav/index.html').read_bytes()
          assert b'https://ventusltd.github.io/satnav/scope/' in get('https://www.globalgrid2050.com/')
          print('PASS seven immutable public files, entry, homepage connection; retained',len(before.links),'existing static links',flush=True)
          for forbidden in ('Neural Link','Agent 22','Agent 23','Agent 24','Agent 28','swarm','CI/CD'):
              assert forbidden.lower() not in html.lower(), forbidden
          for value in ('--bg:#000','--panel:#0b0e14','--accent:#00ffff','--text:#fff','#ff3038'):
              assert value in html, value
          assert 'England, Scotland, Wales and Northern Ireland' in html
          srv=http.server.ThreadingHTTPServer(('127.0.0.1',0),http.server.SimpleHTTPRequestHandler)
          threading.Thread(target=srv.serve_forever,daemon=True).start()
          url=f'http://127.0.0.1:{srv.server_port}/scope/'
          fixture={'schema':'globalgrid2050.news.pipeline-headlines.v1','generated_at':'2026-11-24T03:01:20Z','status':'partial','items':[{'title':'Grid fixture','source':'Test publisher','link':'https://example.com/story','date':'2026-11-24T00:00:00Z'},{'title':'Unsafe fixture','source':'Test','link':'javascript:alert(1)'},{'title':'Duplicate fixture','source':'Test','link':'https://example.com/s  … [line shortened here: 408 characters; full line on GitHub]
          with sync_playwright() as p:
              for name in ('chromium','webkit'):
                  browser=getattr(p,name).launch()
                  for width,height in [(1440,900),(390,844),(844,390),(320,568)]:
                      page=browser.new_page(viewport={'width':width,'height':height},reduced_motion='reduce')
                      errors=[]
                      page.on('pageerror',lambda e:errors.append(str(e)))
                      page.route('https://raw.githubusercontent.com/**',lambda r:r.fulfill(status=200,content_type='application/json',headers={'access-control-allow-origin':'*'},body=json.dumps(fixture)))
                      page.goto(url)
                      page.locator('.pn-ticker-title').first.wait_for()
                      assert page.locator('h1').inner_text()=='SatNav'
                      assert page.locator('.launch-card').count()==3
                      launch=page.locator('#launch-gps')
                      assert launch.get_attribute('href')==gps
                      assert launch.inner_text()=='Launch SatNav — GPS prototype'
                      assert launch.bounding_box()['height']>=44
                      assert launch.evaluate('(e)=>getComputedStyle(e).color')=='rgb(0, 255, 255)'
                      for id_,description in [('launch-gridatlas','gridatlas-status'),('launch-line','line-status')]:
                          item=page.locator('#'+id_)
                          assert item.is_disabled()
                          assert item.get_attribute('aria-describedby')==description
                          assert item.bounding_box()['height']>=44
                          assert not item.evaluate('(e)=>{e.focus();return document.activeElement===e}')
                      launch.focus()
                      assert launch.evaluate('(e)=>document.activeElement===e')
                      assert page.locator('.launch-card').first.evaluate('(e)=>getComputedStyle(e).borderColor')=='rgb(0, 255, 255)'
                      page.route(gps,lambda route:route.fulfill(status=200,content_type='text/html',body='<title>GPS launch target</title>'))
                      launch.press('Enter')
                      page.wait_for_url(gps)
                      assert page.title()=='GPS launch target'
                      page.goto(url)
                      page.locator('.pn-ticker-title').first.wait_for()
                      assert page.locator('.pn-ticker-cycle:not(.pn-ticker-copy) a').count()==1
                      assert 'Test publisher' in page.locator('.pn-ticker-title').first.inner_text()
                      assert 'partial collection' in page.locator('#newsStatus').inner_text()
                      assert page.evaluate('document.documentElement.scrollWidth <= innerWidth')
                      assert page.locator('body').evaluate('(e)=>getComputedStyle(e).backgroundColor')=='rgb(0, 0, 0)'
                      assert page.locator('h1').evaluate('(e)=>getComputedStyle(e).color')=='rgb(0, 255, 255)'
                      page.locator('#pauseTicker').click()
                      assert page.locator('#pauseTicker').get_attribute('aria-pressed')=='true'
                      page.locator('#pauseTicker').click()
                      assert page.locator('#pauseTicker').get_attribute('aria-pressed')=='false'
                      assert not errors,errors
                      page.close()
                  for mode in ('snapshot','offline'):
                      page=browser.new_page(viewport={'width':390,'height':844})
                      def reply(route):
                          if mode=='snapshot' and 'snapshot.json' in route.request.url:
                              route.fulfill(status=200,content_type='application/json',headers={'access-control-allow-origin':'*'},body=json.dumps(fixture))
                          else: route.fulfill(status=503,headers={'access-control-allow-origin':'*'},body='unavailable')
                      page.route('https://raw.githubusercontent.com/**',reply)
                      page.goto(url)
                      page.wait_for_function("(mode)=>document.getElementById('newsStatus').textContent.includes(mode)",arg='Saved snapshot' if mode=='snapshot' else 'Headline feed unavailable')
                      page.close()
                  browser.close()
          print('PASS: 8 browser/viewport cases, 4 feed fallback cases; launch, disabled entries, accessibility, retained palette, layout, ticker and links.')
          srv.shutdown()
          PY
      - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
        with:
          node-version: '24'
      - name: Run exact pinned CVAA on baseline and candidate, retain actual findings
        shell: bash
        run: |
          set -eu
          mkdir -p /tmp/satnav-scope-cvaa /tmp/satnav-scope-receipts
          git -C /tmp/satnav-scope-cvaa init -q
          git -C /tmp/satnav-scope-cvaa fetch --depth=1 https://github.com/Ventusltd/cvaa.git b124c39e5343b24dd5b546a0c279a1c06360bdad
          git -C /tmp/satnav-scope-cvaa checkout -q --detach FETCH_HEAD
          test "$(git -C /tmp/satnav-scope-cvaa rev-parse HEAD)" = b124c39e5343b24dd5b546a0c279a1c06360bdad
          git worktree add --detach /tmp/satnav-scope-baseline 19737b9975495aebb4bd247e39c6509151fb576f
          set +e
          node /tmp/satnav-scope-cvaa/inoculate.mjs /tmp/satnav-scope-baseline --no-write --json > /tmp/satnav-scope-receipts/baseline.log 2>&1
          baseline_exit=$?
          node /tmp/satnav-scope-cvaa/inoculate.mjs "$PWD" --no-write --json > /tmp/satnav-scope-receipts/candidate.log 2>&1
          candidate_exit=$?
          set -e
          echo "CVAA actual exits: baseline=$baseline_exit candidate=$candidate_exit"
          export BASELINE_EXIT="$baseline_exit" CANDIDATE_EXIT="$candidate_exit"
          python - <<'PY'
          import json,os
          from pathlib import Path
          p=Path('/tmp/satnav-scope-receipts')
          def read(name):
              lines=(p/(name+'.log')).read_text().splitlines()
              for line in reversed(lines):
                  if line.startswith('{"schema":"cvaa.run.v1"'):
                      result=json.loads(line)
                      assert len(result['results'])==46, 'CVAA registry results incomplete'
                      assert not result['shallow']
                      return result
              raise AssertionError('No CVAA result: '+name+' '+str(lines[-10:]))
          a,b=read('baseline'),read('candidate')
          def counts(d):
              return {s:sum(x['state']==s for x in d['results']) for s in ['fail','warn','skipped','immune']}
          def issues(d):
              return {(r['vaccine'],r['level'],f) for r in d['results'] for f in r['findings']}
          new=sorted(issues(b)-issues(a))
          receipt={'registry':'b124c39e5343b24dd5b546a0c279a1c06360bdad','baseline':counts(a),'candidate':counts(b),'baseline_exit':int(os.environ['BASELINE_EXIT']),'candidate_exit':int(os.environ['CANDIDATE_EXIT']),'new_findings':new,'candidate_results':b['results']}
          (p/'cvaa-comparison.json').write_text(json.dumps(receipt,indent=2)+'\n')
          print(json.dumps({k:v for k,v in receipt.items() if k!='candidate_results'},indent=2),flush=True)
          assert receipt['baseline_exit'] in (0,1) and receipt['candidate_exit'] in (0,1)
          assert not new,'New CVAA findings'
          print('PASS CVAA non-regression; existing findings remain explicitly recorded, not immunity.')
          PY
      - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
        if: always()
        with:
          name: landing-cvaa-receipts
          path: /tmp/satnav-scope-receipts/
          if-no-files-found: warn
          retention-days: 14