GLOBALGRID2050 / EXPLORE CODE

Part of: Explore Code / Automation and CI / globalgrid2050-ip-and-mac-addresses / .github/workflows

Frontend Test and 7 more files

A test in the tests folder of GlobalGrid2050 IP and MAC Addresses.

564 lines of YAML and JavaScript and Python from globalgrid2050-ip-and-mac-addresses, gpu-drivers-for-global-grid, graphics-engines-open-source, in 8 files. Topic: Automation and CI. Section 1804 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. Publish Workflow automation · globalgrid2050-ip-and-mac-addresses / .github/workflows/publish.yml lines 1–73
  2. Build render · globalgrid2050-ip-and-mac-addresses / build.py lines 1–48
  3. Frontend Test test · globalgrid2050-ip-and-mac-addresses / tests/frontend.test.cjs lines 1–171
  4. Test Labels test · globalgrid2050-ip-and-mac-addresses / tests/test_labels.py lines 1–30
  5. Claude Bench Workflow automation · gpu-drivers-for-global-grid / .github/workflows/claude-bench.yml lines 1–84
  6. Existing Wiring Workflow automation · graphics-engines-open-source / .github/workflows/existing-wiring.yml lines 1–23
  7. Geometry Check Workflow automation · graphics-engines-open-source / .github/workflows/geometry-check.yml lines 1–91
  8. Pages Workflow automation · graphics-engines-open-source / .github/workflows/pages.yml lines 1–44

Publish Workflow

A GitHub Actions workflow in GlobalGrid2050 IP and MAC Addresses that builds and publishes the site. Runs on push, on pull requests and by hand.

automationglobalgrid2050-ip-and-mac-addresses / .github/workflows/publish.yml · lines 1–73 of 73 · Entry point

What it does
It builds and publishes its content. Side effects: starts processes.
Inputs & outputs
In: JSON file registry.json. Out: JSON file registry.json; GitHub Pages deployment.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “Validate and publish identity registry”; runs Registry (`registry.py`) and Build (`build.py`); publishes to GitHub Pages.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050-ip-and-mac-addresses · .github/workflows · workflow
Uses
Test Registry (workflow run), Test Labels (workflow run), Registry (workflow run), Build (workflow run)
Used by
none found
Produces
none declared
Defines here
Validate and publish identity registry
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050-ip-and-mac-addresses@2ba77a48351e70648ab8d122c187a87c47d0f6fc .github/workflows/publish.yml:1-73 · blob 6a3218d1fad04d560812d7d26e8d7e2b2f424aa3 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: unknown
name: Validate and publish identity registry
on:
  push:
    branches: [main]
  pull_request:
  workflow_dispatch:
permissions:
  contents: read
concurrency:
  group: identity-${{ github.ref }}
  cancel-in-progress: false
jobs:
  check:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    steps:
      - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
        with:
          fetch-depth: 0
      - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
        with:
          python-version: '3.12'
      - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
        with:
          node-version: '22'
      - run: python -m pip install -r requirements.txt -r requirements-test.txt
      - run: npm ci --ignore-scripts
      - name: Test identity laws and scanning
        run: |
          python -m unittest discover -s tests -v
          python registry.py validate
          npm test
      - name: Preserve published history
        env:
          BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}
        shell: bash
        run: |
          if [[ -z "$BASE_SHA" || "$BASE_SHA" == 0000000000000000000000000000000000000000 ]]; then
            BASE_SHA=$(git rev-parse HEAD^ 2>/dev/null || true)
          fi
          if [[ -n "$BASE_SHA" ]]; then
            [[ "$BASE_SHA" =~ ^[0-9a-f]{40}$ ]] || { echo "Invalid baseline SHA"; exit 1; }
            git cat-file -e "$BASE_SHA^{commit}" 2>/dev/null || git fetch origin "$BASE_SHA"
            git cat-file -e "$BASE_SHA^{commit}"
            if git cat-file -e "$BASE_SHA:data/registry.json" 2>/dev/null; then
              git show "$BASE_SHA:data/registry.json" > previous-registry.json
              python registry.py validate --previous previous-registry.json
            else
              echo "Verified baseline predates the registry."
            fi
          else
            echo "Initial root commit; no previous history exists."
          fi
      - run: python build.py
      - uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa
        if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
        with:
          path: _site
  deploy:
    if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
    needs: check
    runs-on: ubuntu-latest
    timeout-minutes: 10
    permissions:
      pages: write
      id-token: write
    environment:
      name: github-pages
      url: ${{ steps.publish.outputs.page_url }}
    steps:
      - uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b
      - id: publish
        uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e

Build

A Python command-line tool in GlobalGrid2050 IP and MAC Addresses that draws Kuiper and build receipt, using SHA-256. It labels SVG (`label_svg`).

renderglobalgrid2050-ip-and-mac-addresses / build.py · lines 1–48 of 48 · Entry point

What it does
It draws Kuiper and build receipt. Defines label_svg, main. Uses libraries hashlib, json, pathlib, shutil, sys. Side effects: changes the web page (DOM); reads or writes files.
Inputs & outputs
In: JSON file registry.json; JSON file config.json; JSON file kuiper-index.json; JSON file build-receipt.json. Out: JSON file kuiper-index.json; JSON file build-receipt.json; SVG drawing.
Downstream impact
Used directly by 2 files: Publish Workflow (globalgrid2050-ip-and-mac-addresses); Test Labels (globalgrid2050-ip-and-mac-addresses). It is itself an entry point, published at https://ventusltd.github.io/globalgrid2050-ip-and-mac-addresses/.
What it achieves
Build an allowlisted static resolver and scannable URL labels.
Why it matters
Run by Publish Workflow. Checked by Test Labels.
Application
globalgrid2050-ip-and-mac-addresses · / · Python CLI
Uses
Registry (import), hashlib, json, pathlib, shutil, sys, urllib.parse, xml.sax.saxutils, qrcodegen
Used by
run by Publish Workflow (workflow run), imported by Test Labels (import)
Produces
label_svg, main
Defines here
label_svg, main
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050-ip-and-mac-addresses@2ba77a48351e70648ab8d122c187a87c47d0f6fc build.py:1-48 · blob 6c68256585fba387034a96866c05add3d7c5e693 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom, filesystem · domain stage: unknown · users: none · canonical: unknown
"""Build an allowlisted static resolver and scannable URL labels."""
import hashlib
import json
from pathlib import Path
import shutil
import sys
from urllib.parse import urlsplit
from xml.sax.saxutils import escape
import registry
sys.path.insert(0, str(registry.ROOT / '.tools'))
from qrcodegen import QrCode

def label_svg(payload):
    qr = QrCode.encode_text(payload, QrCode.Ecc.MEDIUM)
    border = 4
    size = qr.get_size() + border * 2
    squares = ' '.join(f'M{x+border},{y+border}h1v1h-1z' for y in range(qr.get_size()) for x in range(qr.get_size()) if qr.get_module(x, y))
    return f'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 {size} {size}" width="{size*8}" height="{size*8}" shape-rendering="crispEdges" role="img"><title>{escape(payload)}</title><rect width="100%" height="100%" fill="#fff"/><path d="{squares}" fill="#000"/></svg>\n'

def main():
    root = registry.ROOT
    data = registry.load(root / 'data/registry.json')
    config = json.loads((root / 'config.json').read_text())
    base = config['resolver_base']; registry.https(base)
    parts = urlsplit(base)
    registry.require(not parts.query and not parts.fragment and base.endswith('/'), 'Resolver base must end in / without query or fragment')
    out = root / '_site'
    expected = {'index.html','assets/app.js','assets/style.css','data/registry.json','data/kuiper-index.json','config.json','.nojekyll','build-receipt.json'} | {f"labels/{r['id']}.svg" for r in data['records']}
    unexpected = [str(p.relative_to(out)) for p in out.rglob('*') if p.is_file() and p.relative_to(out).as_posix() not in expected]
    registry.require(not unexpected, 'Unexpected files in build output: ' + ', '.join(unexpected))
    # Known output names only. No recursive deletion or unrelated file copies.
    for name in ('index.html', 'assets/app.js', 'assets/style.css', 'data/registry.json', 'config.json'):
        target = out / name; target.parent.mkdir(parents=True, exist_ok=True)
        shutil.copyfile(root / name, target)
    labels = out / 'labels'; labels.mkdir(exist_ok=True)
    for record in data['records']:
        (labels / f"{record['id']}.svg").write_text(label_svg(base + '#id=' + record['id']), encoding='utf-8', newline='\n')
    kuiper = {'schema': 'globalgrid.kuiper.identity-index.v1', 'authority': base, 'records': [
        {key: record[key] for key in ('id','title','kind','status','demonstration')} | {'resolver_url': base+'#id='+record['id'], 'record_url': record['record_url']}
        for record in data['records']]}
    (out / 'data/kuiper-index.json').write_text(json.dumps(kuiper, indent=2)+'\n', encoding='utf-8')
    (out / '.nojekyll').write_text('')
    receipt = {'schema': 'globalgrid.identity.build.v1', 'status': 'pass', 'records': len(data['records']), 'distinct_ids': len({r['id'] for r in data['records']}), 'events': len(data['events']), 'resolver_base': base,
        'files': {str(p.relative_to(out)).replace('\\', '/'): hashlib.sha256(p.read_bytes()).hexdigest() for p in sorted(out.rglob('*')) if p.is_file() and p.name != 'build-receipt.json'}}
    (out / 'build-receipt.json').write_text(json.dumps(receipt, indent=2)+'\n')
    print(json.dumps(receipt, indent=2))

if __name__ == '__main__': main()

Frontend Test

A test in the tests folder of GlobalGrid2050 IP and MAC Addresses.

testglobalgrid2050-ip-and-mac-addresses / tests/frontend.test.cjs · lines 1–171 of 171 · Entry point

What it does
It tests its inputs. Defines boot. Uses libraries node:test, node:assert/strict, node:fs, node:path, jsdom. Side effects: changes the web page (DOM); reads or writes files.
Inputs & outputs
In: JSON file registry.json; JSON file config.json.
Downstream impact
It is itself an entry point (test); no other file was found loading it.
What it achieves
Defines `boot`.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050-ip-and-mac-addresses · tests · test
Uses
node:test, node:assert/strict, node:fs, node:path, jsdom
Used by
none found
Produces
boot
Defines here
boot
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050-ip-and-mac-addresses@2ba77a48351e70648ab8d122c187a87c47d0f6fc tests/frontend.test.cjs:1-171 · blob df28edd096939b70e937e6477ea284265767fe64 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: output · effects: dom, filesystem · domain stage: unknown · users: none · canonical: unknown
'use strict';
const test = require('node:test');
const assert = require('node:assert/strict');
const fs = require('node:fs');
const path = require('node:path');
const { JSDOM, VirtualConsole } = require('jsdom');
const root = path.resolve(__dirname, '..');
const html = fs.readFileSync(path.join(root, 'index.html'), 'utf8');
const source = fs.readFileSync(path.join(root, 'assets/app.js'), 'utf8');
const registry = JSON.parse(fs.readFileSync(path.join(root, 'data/registry.json'), 'utf8'));
const config = JSON.parse(fs.readFileSync(path.join(root, 'config.json'), 'utf8'));
const record = registry.records[0];
const site = 'https://preview.example.test/registry/';

async function boot(t, options = {}) {
  const data = structuredClone(options.data || registry);
  const settings = structuredClone(options.config || config);
  const requests = [];
  const errors = [];
  const console = new VirtualConsole();
  console.on('jsdomError', error => errors.push(error.message));
  // Only repository-owned HTML/JS runs. Resource fetching is disabled; every
  // application fetch is a local fixture stub. No browser process is launched.
  const dom = new JSDOM(html, {
    url: site + (options.hash || ''),
    runScripts: 'dangerously',
    virtualConsole: console,
    beforeParse(window) {
      window.fetch = async url => {
        const address = String(url);
        requests.push(address);
        if (options.failFetch) return { ok: false };
        if (address === site + 'data/registry.json') return { ok: true, json: async () => data };
        if (address === site + 'config.json') return { ok: true, json: async () => settings };
        throw new Error('Unexpected network request: ' + address);
      };
    },
  });
  t.after(() => dom.window.close());
  dom.window.eval(source);
  await new Promise(resolve => setImmediate(resolve));
  return { window: dom.window, document: dom.window.document, requests, errors };
}

test('loads the registry and searches title, UUID and the full decimal identity', async t => {
  const { window, document, requests } = await boot(t);
  assert.deepEqual(requests.sort(), [site + 'config.json', site + 'data/registry.json'].sort());
  assert.equal(document.querySelectorAll('.record-link').length, registry.records.length);
  const search = document.getElementById('registrySearch');
  assert.equal(search.disabled, false);
  for (const query of [record.title.toUpperCase(), record.id, record.barcode_number]) {
    search.value = query;
    search.dispatchEvent(new window.Event('input'));
    assert.equal(document.querySelectorAll('.record-link').length, 1);
    assert.equal(document.querySelector('.record-link').getAttribute('href'), '#id=' + record.id);
  }
  search.value = 'there is no matching asset';
  search.dispatchEvent(new window.Event('input'));
  assert.equal(document.querySelectorAll('.record-link').length, 0);
  assert.equal(document.getElementById('emptyResults').hidden, false);
  search.value = '';
  search.dispatchEvent(new window.Event('input'));
  assert.equal(document.querySelectorAll('.record-link').length, registry.records.length);
});

test('exact hash selects the record, local QR and configured permalink without redirecting', async t => {
  const resolver = 'https://identity.example.test/permanent/';
  const hash = '#id=' + record.id;
  const { window, document, errors, requests } = await boot(t, { hash, config: { resolver_base: resolver } });
  assert.equal(document.querySelector('#recordPanel h3').textContent, record.title);
  assert.equal(document.querySelector('.record-link[aria-current="true"]').hash, hash);
  assert.equal(document.querySelector('.qr-sheet img').src, site + 'labels/' + record.id + '.svg');
  assert.equal(document.querySelector('.identity-fields a').href, resolver + hash);
  assert.equal(document.querySelector('.launch').href, record.record_url);
  assert.equal(document.querySelector('.badge-demo').textContent, 'Demonstration');
  assert.equal(window.location.href, site + hash);
  assert.equal(requests.length, 2);
  assert.deepEqual(errors, []);
});

test('hash changes resolve independently of the current search', async t => {
  const { window, document } = await boot(t);
  document.getElementById('registrySearch').value = 'no match';
  document.getElementById('registrySearch').dispatchEvent(new window.Event('input'));
  window.location.hash = 'id=' + record.id;
  window.dispatchEvent(new window.HashChangeEvent('hashchange'));
  assert.equal(document.querySelector('#recordPanel h3').textContent, record.title);
  window.location.hash = '';
  window.dispatchEvent(new window.HashChangeEvent('hashchange'));
  assert.equal(document.getElementById('recordHeading').textContent, 'Choose a record');
});

test('unknown and malformed addresses never resolve a different identity', async t => {
  const unknown = '#id=00000000-0000-4000-8000-000000000000';
  for (const hash of [unknown, '#id=short', '#id=' + record.id + '&extra=1', '#id=' + record.id.toUpperCase(), '#other=' + record.id]) {
    await t.test(hash, async t => {
      const { document, window } = await boot(t, { hash });
      assert.equal(document.getElementById('recordHeading').textContent, hash === unknown ? 'Identity not found' : 'Malformed identity address');
      assert.equal(document.querySelector('.launch'), null);
      assert.equal(document.querySelector('.qr-sheet img'), null);
      assert.equal(window.location.href, site + hash);
    });
  }
});

test('invalid registry identities, destinations and demonstration flags fail closed', async t => {
  const mutations = {
    duplicate: data => data.records.push(structuredClone(data.records[0])),
    mismatch: data => { data.records[0].barcode_number = '0'.repeat(39); },
    missingDemo: data => { delete data.records[0].demonstration; },
    wrongDemo: data => { data.records[0].demonstration = 'true'; },
    emptyCredentials: data => { data.records[0].record_url = 'https://@example.com/'; },
    credentials: data => { data.records[0].record_url = 'https://user:secret@example.com/'; },
    encodedHost: data => { data.records[0].record_url = 'https://%65xample.com/'; },
    scriptUrl: data => { data.records[0].record_url = 'javascript:alert(1)'; },
    zeroPort: data => { data.records[0].record_url = 'https://example.com:0/'; },
  };
  for (const [name, mutate] of Object.entries(mutations)) {
    await t.test(name, async t => {
      const data = structuredClone(registry);
      mutate(data);
      const { document } = await boot(t, { data, hash: '#id=' + record.id });
      assert.equal(document.getElementById('recordHeading').textContent, 'Registry unavailable');
      assert.equal(document.getElementById('registrySearch').disabled, true);
      assert.equal(document.querySelector('.launch'), null);
    });
  }
});

test('resolver configuration rejects insecure, credentialed, queried and incomplete bases', async t => {
  for (const base of ['http://example.com/', 'https://@example.com/', 'https://%65xample.com/', 'https://example.com/path', 'https://example.com/?', 'https://example.com/#', 'https://example.com/?x=1', 'https://example.com/#id=a']) {
    await t.test(base, async t => {
      const { document } = await boot(t, { config: { resolver_base: base } });
      assert.equal(document.getElementById('recordHeading').textContent, 'Registry unavailable');
      assert.equal(document.getElementById('registrySearch').disabled, true);
    });
  }
});

test('retired records retain their identity and show their status', async t => {
  const data = structuredClone(registry);
  data.records[0].status = 'retired';
  const { document } = await boot(t, { data, hash: '#id=' + record.id });
  assert.match(document.getElementById('recordPanel').textContent, /identity is retired/);
  assert.match(document.getElementById('recordPanel').textContent, new RegExp(record.id));
  assert.equal(document.querySelector('.launch').href, record.record_url);
});

test('pause only changes the exterior frame and a missing QR offers the permalink', async t => {
  const { document, window } = await boot(t, { hash: '#id=' + record.id });
  const pause = document.querySelector('.motion-toggle');
  const frame = document.querySelector('.label-frame');
  const qr = document.querySelector('.qr-sheet img');
  const sourceBefore = qr.src;
  pause.click();
  assert.equal(pause.getAttribute('aria-pressed'), 'true');
  assert.equal(frame.classList.contains('is-paused'), true);
  assert.equal(qr.src, sourceBefore);
  pause.click();
  assert.equal(pause.getAttribute('aria-pressed'), 'false');
  assert.equal(frame.classList.contains('is-paused'), false);
  qr.dispatchEvent(new window.Event('error'));
  assert.match(document.querySelector('.qr-sheet').textContent, /QR label is unavailable/);
  assert.ok(document.querySelector('.identity-fields a'));
});

test('a failed fetch reports an unavailable registry', async t => {
  const { document } = await boot(t, { failFetch: true });
  assert.equal(document.getElementById('recordHeading').textContent, 'Registry unavailable');
  assert.equal(document.getElementById('registrySearch').disabled, true);
});

Test Labels

A test in the tests folder of GlobalGrid2050 IP and MAC Addresses that checks Build. It labels tests (`LabelTests`).

testglobalgrid2050-ip-and-mac-addresses / tests/test_labels.py · lines 1–30 of 30 · Entry point

What it does
It tests its inputs. Defines LabelTests, test_every_published_label_decodes_to_exact_stable_address. Uses libraries json, re, sys, unittest, xml.etree.ElementTree.
Inputs & outputs
In: JSON file config.json; JSON file registry.json.
Downstream impact
Used directly by 1 file: Publish Workflow (globalgrid2050-ip-and-mac-addresses).
What it achieves
Independently rasterize the exported SVG paths and decode with ZXing-C++.
Why it matters
Run by Publish Workflow.
Application
globalgrid2050-ip-and-mac-addresses · tests · test
Uses
Build (import), json, re, sys, unittest, xml.etree.ElementTree, PIL, zxingcpp
Used by
run by Publish Workflow (workflow run)
Produces
LabelTests
Defines here
LabelTests, test_every_published_label_decodes_to_exact_stable_address
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050-ip-and-mac-addresses@2ba77a48351e70648ab8d122c187a87c47d0f6fc tests/test_labels.py:1-30 · blob 94fa7a950f70e8724353b2f2d3cb330fec35addc · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: none found · domain stage: unknown · users: none · canonical: unknown
"""Independently rasterize the exported SVG paths and decode with ZXing-C++."""
import json
import re
import sys
import unittest
import xml.etree.ElementTree as ET
import build
sys.path.insert(0, str(build.registry.ROOT / '.tools'))
from PIL import Image, ImageDraw
import zxingcpp

class LabelTests(unittest.TestCase):
    def test_every_published_label_decodes_to_exact_stable_address(self):
        root = build.registry.ROOT
        config = json.loads((root/'config.json').read_text())
        data = build.registry.load(root/'data/registry.json')
        for record in data['records']:
            expected = config['resolver_base']+'#id='+record['id']
            svg = ET.fromstring(build.label_svg(expected))
            size = int(svg.attrib['viewBox'].split()[-1])
            path = svg.find('{http://www.w3.org/2000/svg}path').attrib['d']
            for scale in (3,8):
                image = Image.new('RGB',(size*scale,size*scale),'white'); draw=ImageDraw.Draw(image)
                for x,y in re.findall(r'M(\d+),(\d+)h1v1h-1z',path):
                    x,y=int(x),int(y);draw.rectangle((x*scale,y*scale,(x+1)*scale-1,(y+1)*scale-1),fill='black')
                codes=zxingcpp.read_barcodes(image)
                self.assertEqual([code.text for code in codes],[expected])
                self.assertEqual(image.getpixel((0,0)),(255,255,255))

if __name__ == '__main__': unittest.main()

Claude Bench Workflow

A GitHub Actions workflow in GPU Drivers for Global Grid. Runs on push, on pull requests and by hand.

automationgpu-drivers-for-global-grid / .github/workflows/claude-bench.yml · lines 1–84 of 84 · 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 'claude'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
Inputs & outputs
In: JSON file 2026-09-05-gpu-rtx5070.json.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
CLAUDE LANE — CPU/RAM benchmark ladder.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
gpu-drivers-for-global-grid · .github/workflows · workflow
Uses
Claude Make Sample Artefact (workflow run), Claude Bench Cpu Ram (workflow run), Claude Bench GPU (workflow run), Claude Analyse Corpus GPU (workflow run)
Used by
none found
Produces
none declared
Defines here
claude lane — CPU/RAM bench
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
gpu-drivers-for-global-grid@6c47912a8dde251ffebd92ff129e6a0c11c4ebfe .github/workflows/claude-bench.yml:1-84 · blob f5190288a373e99c0001bbf48c8cc33020347867 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: agent_infra · users: ai_agent · canonical: unknown
# CLAUDE LANE — CPU/RAM benchmark ladder.
#
# WHAT THIS RUNS, AND WHAT IT DELIBERATELY DOES NOT.
#
# It runs claude/bench-cpu-ram.mjs on a GitHub-hosted runner against a
# generated stand-in artefact, so the harness is proven to still execute.
#
# It does NOT run claude/bench-gpu.mjs, and it does NOT run
# claude/analyse-corpus-gpu.mjs. GitHub-hosted runners have no discrete GPU — no
# CUDA device, no WebGPU adapter — so neither can produce a number here. Both
# are SKIPPED with an explicit message rather than run and reported as "no
# GPU", because a green tick on a benchmark that never measured anything is
# worse than no tick at all. The RTX 5070 figures in claude/results/ come from
# a machine that has the card, and only from there.
#
# The runner is also not the measurement machine: its numbers are a smoke test
# of the harness, not evidence about anything. Do not compare them with
# claude/results/.
#
# This workflow belongs to the claude/ lane only. It touches no other lane.

name: claude lane — CPU/RAM bench

on:
  push:
    branches:
      - 'claude/**'
    paths:
      - 'claude/**'
      - '.github/workflows/claude-bench.yml'
  pull_request:
    paths:
      - 'claude/**'
      - '.github/workflows/claude-bench.yml'
  workflow_dispatch:
    inputs:
      threads:
        description: 'Thread ladder, comma separated'
        required: false
        default: '1,2,4'
      sizeMB:
        description: 'Stand-in artefact size in MB'
        required: false
        default: '26'

jobs:
  cpu-ram:
    name: CPU/RAM ladder (no GPU on this runner)
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

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

      - name: Syntax-check every benchmark script
        run: |
          for f in claude/*.mjs; do
            node --check "$f"
            echo "node --check OK  $f"
          done

      - name: Generate a stand-in artefact
        # The real 26 MB teleprint is evidence, not source, and is not committed.
        run: node claude/make-sample-artefact.mjs sample-artefact.txt "${{ github.event.inputs.sizeMB || '26' }}"

      - name: Run the CPU/RAM ladder
        run: node claude/bench-cpu-ram.mjs sample-artefact.txt --threads "${{ github.event.inputs.threads || '1,2,4' }}"

      - name: GPU work — skipped, and why
        run: |
          echo "::notice title=GPU work skipped::GitHub-hosted runners have no discrete GPU."
          echo "claude/bench-gpu.mjs was NOT run."
          echo "claude/analyse-corpus-gpu.mjs was NOT run."
          echo "This runner has no CUDA device and no WebGPU adapter, so it cannot"
          echo "measure the RTX 5070. Running either here would print 'no GPU' and prove"
          echo "nothing about the hardware under test."
          echo "The measured GPU numbers live in claude/results/2026-09-05-gpu-rtx5070.json"
          echo "and claude/results/corpus-gpu-analysis-202609051700.json, and were taken on"
          echo "a GeForce RTX 5070 Laptop GPU (driver 592.02)."
          echo "To reproduce them you need that machine, headed Chromium, and:"
          echo "  node claude/bench-gpu.mjs <teleprint.txt> --iters 5"
          echo "  node claude/analyse-corpus-gpu.mjs <corpus-root> --out gpu-analysis"

Existing Wiring Workflow

A GitHub Actions workflow in Graphics Engines Open Source. Runs by hand.

automationgraphics-engines-open-source / .github/workflows/existing-wiring.yml · lines 1–23 of 23 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: starts processes.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “Check existing wiring pages”; runs Existing Wiring (`tests/existing-wiring.cjs`).
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
graphics-engines-open-source · .github/workflows · workflow
Uses
Existing Wiring (workflow run)
Used by
none found
Produces
none declared
Defines here
Check existing wiring pages
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
graphics-engines-open-source@79e0bd8ee33844835e553fc84d552b6aa1521152 .github/workflows/existing-wiring.yml:1-23 · blob 501e271ebc5f9766c651eae9a041c0101006fd0d · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: unknown
name: Check existing wiring pages
on:
  workflow_dispatch:
permissions:
  contents: read
jobs:
  browser:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '22'
      - run: npm install --no-save --package-lock=false playwright@1.56.1
      - run: npx playwright install --with-deps chromium
      - run: node tests/existing-wiring.cjs
      - uses: actions/upload-artifact@v4
        if: always()
        with:
          name: existing-wiring-browser
          path: .local/existing-wiring
          retention-days: 7

Geometry Check Workflow

A GitHub Actions workflow in Graphics Engines Open Source. Runs on push and by hand.

automationgraphics-engines-open-source / .github/workflows/geometry-check.yml · lines 1–91 of 91 · 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 explore-geometry.json. Out: JSON file local-gpu-summary.json; JSON file summary.json.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “Public geometry checks”; runs Explore Test (`tests/explore.test.mjs`).
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
graphics-engines-open-source · .github/workflows · workflow
Uses
Explore Test (workflow run), GridAtlas Test (workflow run), Route File Test (workflow run), Explore (workflow run), Route Files UI (workflow run)
Used by
none found
Produces
none declared
Defines here
Public geometry checks
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
graphics-engines-open-source@79e0bd8ee33844835e553fc84d552b6aa1521152 .github/workflows/geometry-check.yml:1-91 · blob 226534113981a37ba2f88cfea6e97945b7fe1402 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: filesystem, process · domain stage: unknown · users: none · canonical: unknown
name: Public geometry checks
on:
  workflow_dispatch:
    inputs:
      local_gpu_summary:
        description: Optional allowlisted self-reported local GPU summary JSON
        required: false
        type: string
  push:
    paths:
      - 'web/**'
      - 'tests/**'
      - '.github/workflows/geometry-check.yml'
permissions:
  contents: read
concurrency:
  group: public-geometry-check
  cancel-in-progress: false
jobs:
  geometry:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '22'
      - name: Validate optional self-reported local summary
        env:
          LOCAL_GPU_SUMMARY: ${{ inputs.local_gpu_summary }}
        run: |
          python - <<'PY'
          import json, math, os, re
          from pathlib import Path
          text = os.environ.get('LOCAL_GPU_SUMMARY', '')
          if text:
              assert len(text.encode()) <= 4096, 'Summary exceeds 4096 bytes'
              value = json.loads(text)
              assert set(value) == {'schema','status','samples','fixture_sha256','panel_max_error_m','route_max_error_m'}
              assert value['schema'] == 'local-gpu-summary/1' and value['status'] == 'pass'
              assert type(value['samples']) is int and 1 <= value['samples'] <= 60
              assert isinstance(value['fixture_sha256'], str) and re.fullmatch('[0-9a-f]{64}', value['fixture_sha256'])
              for key in ['panel_max_error_m','route_max_error_m']:
                  assert type(value[key]) in (int,float) and math.isfinite(value[key]) and 0 <= value[key] < 1e-9
              folder = Path('.local/public-check')
              folder.mkdir(parents=True, exist_ok=True)
              (folder / 'local-gpu-summary.json').write_text(json.dumps({'provenance':'Self-reported local GPU check; not independently executed by this GitHub runner. Baseline fixture only.', 'summary':value}, indent=2), encoding='utf-8')
          PY
      - name: Check repository-generated demonstration geometry
        shell: bash
        run: |
          set -euo pipefail
          mkdir -p .local/public-check
          node tests/explore.test.mjs .local/public-check/explore-geometry.json > .local/public-check/test-report.txt 2>&1
          node --test tests/gridatlas.test.mjs tests/route-file.test.mjs >> .local/public-check/test-report.txt 2>&1
          node --check web/explore.mjs
          node --check web/route-files-ui.mjs
      - name: Record scope and fixture digest
        if: always()
        shell: bash
        env:
          CHECK_OUTCOME: ${{ job.status }}
        run: |
          python - <<'PY'
          import hashlib, json, os
          from pathlib import Path
          folder = Path('.local/public-check')
          folder.mkdir(parents=True, exist_ok=True)
          fixture = folder / 'explore-geometry.json'
          report = {
              'check': 'public-repository-cpu-geometry',
              'outcome': os.environ['CHECK_OUTCOME'],
              'commit': os.environ['GITHUB_SHA'],
              'fixture_sha256': hashlib.sha256(fixture.read_bytes()).hexdigest() if fixture.exists() else None,
              'scope': 'CPU Node checks of generic demonstration geometry, cameras, inventory and route files. No GPU or browser execution. No surveyed site validation or engineering approval.',
              'inputs': 'Public repository only; no local workstation data or GPU-watch logs.'
          }
          (folder / 'summary.json').write_text(json.dumps(report, indent=2), encoding='utf-8')
          PY
      - name: Upload only generated public demonstration evidence
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: public-geometry-evidence
          retention-days: 7
          include-hidden-files: true
          path: |
            .local/public-check/explore-geometry.json
            .local/public-check/test-report.txt
            .local/public-check/summary.json
            .local/public-check/local-gpu-summary.json

Pages Workflow

A GitHub Actions workflow in Graphics Engines Open Source that builds and publishes the site. Runs by hand.

automationgraphics-engines-open-source / .github/workflows/pages.yml · lines 1–44 of 44 · Entry point

What it does
It builds and publishes its content. Side effects: starts processes.
Inputs & outputs
Out: GitHub Pages deployment.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “Publish electrical explorer”; runs Explore Test (`tests/explore.test.mjs`) and Browser (`tests/browser.cjs`); publishes to GitHub Pages.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
graphics-engines-open-source · .github/workflows · workflow
Uses
Explore Test (workflow run), GridAtlas Test (workflow run), Route File Test (workflow run), Atlas Picker (workflow run), Browser (workflow run)
Used by
none found
Produces
none declared
Defines here
Publish electrical explorer
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
graphics-engines-open-source@79e0bd8ee33844835e553fc84d552b6aa1521152 .github/workflows/pages.yml:1-44 · blob f8f4dcb2afaf7bb64bec51e2bcc94808b6572ac6 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: unknown
name: Publish electrical explorer
on:
  workflow_dispatch:
permissions:
  contents: read
  pages: write
  id-token: write
concurrency:
  group: graphics-pages
  cancel-in-progress: false
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '22'
      - run: node tests/explore.test.mjs
      - run: node --test tests/gridatlas.test.mjs
      - run: node --test tests/route-file.test.mjs
      - run: node --check web/atlas-picker.mjs
      - run: npm install --no-save --package-lock=false playwright@1.56.1
      - run: npx playwright install --with-deps chromium
      - run: node tests/browser.cjs
      - uses: actions/upload-artifact@v4
        if: always()
        with:
          name: browser-evidence
          path: .local/browser
      - uses: actions/configure-pages@v5
      - uses: actions/upload-pages-artifact@v3
        with:
          path: web
  deploy:
    needs: build
    runs-on: ubuntu-latest
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    steps:
      - name: Deploy
        id: deployment
        uses: actions/deploy-pages@v4