In this section
- 132kV Watch Workflow automation · 132kV / .github/workflows/watch.yml lines 1–43
- 132kV Capacity energy-data · 132kV / tools/capacity.py lines 1–43
- 132kV Watch Catalogue ingest · 132kV / tools/watch_catalogue.py lines 1–107
- Verify Derived Workflow automation · cable-trench-or-drill / .github/workflows/verify-derived.yml lines 1–42
- Verify Original Workflow automation · cable-trench-or-drill / .github/workflows/verify-original.yml lines 1–40
- Verify Route Constraints Workflow automation · cable-trench-or-drill / .github/workflows/verify-route-constraints.yml lines 1–67
- Claude Verify Memory Store Workflow automation · claude / .github/workflows/202609031030-verify-memory-store.yml lines 1–77
- Claude Estate Link Crawl Workflow automation · claude / .github/workflows/202609032340-estate-link-crawl.yml lines 1–182
132kV Watch Workflow
A GitHub Actions workflow that builds and publishes the site. Runs on push, on a schedule and by hand.
automation132kV / .github/workflows/watch.yml · lines 1–43 of 43 · Entry point
- What it does
- It builds and publishes its content. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (voltage levels 132kV (all 132kV or above)): 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: 132kV.
- Inputs & outputs
- Out: commits pushed to the repository. Voltage levels named: 132kV.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Runs 132kV Capacity (`tools/capacity.py`) and 132kV Watch Catalogue (`tools/watch_catalogue.py`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- 132kV · .github/workflows · workflow
- Uses
- 132kV Capacity (workflow run), 132kV Watch Catalogue (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- watch
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- 132kV@7c48a05136993a09b2cd69c7ebfd39882790a553 .github/workflows/watch.yml:1-43 · blob 9ab32245d752433c6ffad321cd907a87629b6485 · 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: unknown
name: watch
# Once a day, on GitHub's machine: check the arithmetic, ask the public catalogue what changed, write
# down only what changed. No assistant, no paid credit, no key. It commits only when something changed.
on:
schedule:
- cron: '41 5 * * *'
workflow_dispatch:
push:
permissions:
contents: write
concurrency:
group: watch
cancel-in-progress: false
jobs:
watch:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: Ventusltd/kuiper-belt
path: kb
sparse-checkout: tools
- name: The arithmetic still gives the published table
run: python3 tools/capacity.py --check
- name: Watch the public catalogue, and fail closed
if: github.event_name != 'push'
run: python3 tools/watch_catalogue.py
- name: Commit only what changed
if: github.event_name != 'push'
run: |
git config user.name "132kV-watch"
git config user.email "actions@users.noreply.github.com"
git add data/catalogue.tsv data/ledger.tsv NOW.md
git diff --cached --quiet && exit 0
git commit -q -m "watch: what changed in the public catalogue"
git pull -q --rebase --autostash origin "${GITHUB_REF_NAME}"
git push -q origin "HEAD:${GITHUB_REF_NAME}"132kV Capacity
A Python command-line tool in the tools folder that calculates three-phase power (units: kV, MVA), covering cables, using IEC 60287. It is built from the table step (`table`).
energy-data132kV / tools/capacity.py · lines 1–43 of 43 · Entry point · pattern table (shared by 65 files)
- What it does
- Defines table, main. Uses libraries io, math, os, sys. Side effects: reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain terms in the code: cables. README: "The full table for 11 kV to 400 kV is `data/capacity.tsv`, made by `tools/capacity.py` and checked on every push."
- Inputs & outputs
- In: command-line arguments.
- Downstream impact
- Used directly by 1 file: 132kV Watch Workflow (132kV).
- What it achieves
- What a three phase circuit carries, from arithmetic alone.
- Why it matters
- Run by 132kV Watch Workflow.
- Application
- 132kV · tools · Python CLI
- Uses
- io, math, os, sys
- Used by
- run by 132kV Watch Workflow (workflow run)
- Produces
- table, main
- Defines here
- table, main
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- 132kV@7c48a05136993a09b2cd69c7ebfd39882790a553 tools/capacity.py:1-43 · blob ae3ea5234e4f67bc26725f03fe80a0d25849c0d5 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, process · domain stage: unknown · users: none · canonical: supporting_data
#!/usr/bin/env python3
r"""tools/capacity.py - what a three phase circuit carries, from arithmetic alone.
python tools/capacity.py print the table
python tools/capacity.py --check exit 1 if data/capacity.tsv is not what the arithmetic gives
power (MVA) = 1.732 x voltage (kV) x current (A) / 1000 1.732 is the square root of 3
This is the power that flows at that current. It is NOT a cable rating. What current a buried cable
can carry continuously depends on its size, how it is laid, how its screens are bonded, and the soil,
and is a calculation to IEC 60287 for the real route. This table only turns a current into a power.
"""
import io
import math
import os
import sys
ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')
KV = [11, 33, 66, 132, 275, 400]
AMPS = [400, 630, 800, 1000, 1100, 1200, 1312, 1600, 2000]
def table():
rows = ['# amps\t' + '\t'.join('%skV_MVA' % v for v in KV)]
for a in AMPS:
rows.append('%d\t' % a + '\t'.join('%.1f' % (math.sqrt(3) * v * a / 1000) for v in KV))
return '\n'.join(rows) + '\n'
def main():
t, p = table(), os.path.join(ROOT, 'data', 'capacity.tsv')
if '--check' in sys.argv:
ok = os.path.exists(p) and io.open(p, encoding='utf-8').read() == t
print('capacity.tsv %s the arithmetic' % ('matches' if ok else 'DOES NOT MATCH'))
return 0 if ok else 1
os.makedirs(os.path.dirname(p), exist_ok=True)
io.open(p, 'w', encoding='utf-8', newline='\n').write(t)
print(t)
return 0
if __name__ == '__main__':
sys.exit(main())132kV Watch Catalogue
A Python command-line tool in the tools folder that fetches 132kV and cables from UK Power Networks open data.
ingest132kV / tools/watch_catalogue.py · lines 1–107 of 107 · Entry point · pattern catalogue (shared by 4 files)
- What it does
- It fetches 132kV and cables. Defines catalogue, last, main. Uses libraries io, json, os, sys, time. Side effects: reads or writes files; makes network requests; starts processes.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (voltage levels 132kV (all 132kV or above)): 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: 132kV, cables. README: "Once a day `tools/watch_catalogue.py` runs on GitHub's own machine and asks a network operator's public open data catalogue which datasets mention 132 kV."
- Inputs & outputs
- In: data source: UK Power Networks open data; command-line arguments. Voltage levels named: 132kV.
- Downstream impact
- Used directly by 1 file: 132kV Watch Workflow (132kV).
- What it achieves
- It is built from the catalogue step (`catalogue`) and the last step (`last`). Which public datasets describe the 132kV network, and when do they change. Its code works with 132 kV.
- Why it matters
- Run by 132kV Watch Workflow.
- Application
- 132kV · tools · Python CLI
- Uses
- io, json, os, sys, time, urllib.parse, urllib.request, check_proof
- Used by
- run by 132kV Watch Workflow (workflow run)
- Produces
- catalogue, last, main
- Defines here
- catalogue, last, main
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- 132kV@7c48a05136993a09b2cd69c7ebfd39882790a553 tools/watch_catalogue.py:1-107 · blob 47704b19c1bafa2990b77ff995c17579b616652f · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, network, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: unknown
#!/usr/bin/env python3
r"""tools/watch_catalogue.py - which public datasets describe the 132 kV network, and when do they change.
python tools/watch_catalogue.py [--dry]
Asks a network operator's PUBLIC open data catalogue one question: which datasets mention 132 kV.
It records only what the catalogue itself publishes about each dataset: its identifier, title,
licence, number of records and the date it was last modified. IT COPIES NO RECORDS. Some of these
datasets are under CC BY 4.0 and some under the operator's own shared data licence; the facts that a
dataset exists, how many records it has and when it changed are recorded for both, and nothing else.
data/catalogue.tsv the catalogue as it stands now, one row per dataset
data/ledger.tsv APPEND ONLY: one row each time a dataset's record count or modified date changes
NOW.md rebuilt from the two, newest change first
WHY THE COUNT MATTERS. The number of records in the 132 kV underground cable dataset is the number of
cable sections the operator has mapped. When it rises, cable has gone in the ground, and roughly a
quarter of a gigawatt of capacity comes with each circuit (see tools/capacity.py).
SAFEGUARDS. No key, no login, public catalogue only. Everything about to be written passes the digest
guard first. If the catalogue does not answer, nothing is written: no answer is not no change.
"""
import io
import json
import os
import sys
import time
import urllib.parse
import urllib.request
HERE = os.path.dirname(os.path.abspath(__file__))
ROOT = os.path.join(HERE, '..')
sys.path.insert(0, os.environ.get('KB_TOOLS', os.path.join(ROOT, 'kb', 'tools')))
from check_proof import leaks
PORTAL = 'https://ukpowernetworks.opendatasoft.com'
SOURCE = 'UK Power Networks Open Data Portal'
QUERY = 'search("132kv")'
def catalogue():
out, offset = [], 0
while True:
url = PORTAL + '/api/explore/v2.1/catalog/datasets?' + urllib.parse.urlencode({'where': QUERY, 'limit': 100, 'offset': offset})
d = json.load(urllib.request.urlopen(urllib.request.Request(url, headers={'User-Agent': '132kV-public-data'}), timeout=60))
for r in d.get('results', []):
m = r.get('metas', {}).get('default', {})
out.append((r['dataset_id'], (m.get('title') or '').replace('\t', ' '), (m.get('license') or 'not stated').replace('\t', ' '),
int(m.get('records_count') or 0), (m.get('modified') or '')[:19]))
offset += 100
if offset >= d.get('total_count', 0):
return sorted(out)
def last(path):
seen = {}
if os.path.exists(path):
for l in io.open(path, encoding='utf-8'):
if l.strip() and l[0] != '#':
c = l.rstrip('\n').split('\t')
seen[c[1]] = (int(c[2]), c[3])
return seen
def main():
dry = '--dry' in sys.argv
try:
rows = catalogue()
except Exception as e:
print('FAIL: the catalogue did not answer (%s); nothing written' % type(e).__name__)
return 1
if not rows:
print('FAIL: the catalogue answered with nothing; nothing written')
return 1
os.makedirs(os.path.join(ROOT, 'data'), exist_ok=True)
lp = os.path.join(ROOT, 'data', 'ledger.tsv')
known, now = last(lp), int(time.time())
changed = [r for r in rows if known.get(r[0]) != (r[3], r[4])]
add = ''.join('%d\t%s\t%d\t%s\t%s\n' % (now, r[0], r[3], r[4],
('first seen' if r[0] not in known else 'records %+d' % (r[3] - known[r[0]][0]))) for r in changed)
cat = '# dataset\ttitle\tlicence\trecords\tmodified\n' + ''.join('%s\t%s\t%s\t%d\t%s\n' % r for r in rows)
md = ['# NOW', '', 'Rebuilt by `tools/watch_catalogue.py`. Source: %s, %s. Catalogue facts only; no records are copied.' % (SOURCE, PORTAL), '',
'| dataset | records | last modified | licence |', '|---|---:|---|---|']
for r in sorted(rows, key=lambda r: r[4], reverse=True):
md.append('| [%s](%s/explore/dataset/%s/) | %s | %s | %s |' % (r[1], PORTAL, r[0], format(r[3], ','), r[4][:10], r[2]))
md = '\n'.join(md) + '\n'
if leaks(cat + add + md):
print('REFUSED: a private digest matched; nothing written')
return 2
print('%d datasets mention 132 kV; %d changed since last seen' % (len(rows), len(changed)))
for r in rows:
if '132kv' in r[0]:
print(' %-58s %10s records modified %s' % (r[0], format(r[3], ','), r[4][:10]))
if dry:
print('dry run: nothing written')
return 0
io.open(os.path.join(ROOT, 'data', 'catalogue.tsv'), 'w', encoding='utf-8', newline='\n').write(cat)
if not os.path.exists(lp):
io.open(lp, 'w', encoding='utf-8', newline='\n').write('# seen_unix\tdataset\trecords\tmodified\twhat_changed\n')
if add:
io.open(lp, 'a', encoding='utf-8', newline='\n').write(add)
io.open(os.path.join(ROOT, 'NOW.md'), 'w', encoding='utf-8', newline='\n').write(md)
return 0
if __name__ == '__main__':
sys.exit(main())Verify Derived Workflow
A GitHub Actions workflow in Cable Trench or Drill. Runs on push, on pull requests and by hand.
automationcable-trench-or-drill / .github/workflows/verify-derived.yml · lines 1–42 of 42 · Entry point
- What it does
- It runs cables. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (repository name word 'cable'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables.
- Inputs & outputs
- In: JSON file derived-latest.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Verify derived Cable cartridge provenance”; runs Test Verify Derived (`tools/test_verify_derived.py`) and Verify Derived (`tools/verify_derived.py`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- cable-trench-or-drill · .github/workflows · workflow
- Uses
- Render Readiness Test (workflow run), Test Verify Derived (workflow run), Verify Derived (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Verify derived Cable cartridge provenance
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cable-trench-or-drill@bf00f9503ff7a662933775a022557c4ca9d9880a .github/workflows/verify-derived.yml:1-42 · blob 88b645e0908dd12a47b98e61fc288019bee78980 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: unknown
name: Verify derived Cable cartridge provenance
on:
push:
branches: [main]
paths:
- 'src/cable-geometry/**'
- 'releases/**'
- 'derived-latest.json'
- 'tools/verify_derived.py'
- 'tools/test_verify_derived.py'
- 'tools/render-readiness.test.mjs'
- '.github/workflows/verify-derived.yml'
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '24'
- name: Exercise observer lifecycle and async ordering
run: node --test tools/render-readiness.test.mjs
- name: Exercise negative derived controls
run: python3 -B tools/test_verify_derived.py
- name: Verify pinned baseline, composition and cartridge
run: python3 -B tools/verify_derived.py --out artifacts/derived-runtime.json
- name: Retain compact provenance receipt
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: derived-cable-${{ github.sha }}-${{ github.run_id }}
path: artifacts/derived-runtime.json
if-no-files-found: error
retention-days: 30Verify Original Workflow
A GitHub Actions workflow in Cable Trench or Drill. Runs on push, on pull requests and by hand.
automationcable-trench-or-drill / .github/workflows/verify-original.yml · lines 1–40 of 40 · Entry point
- What it does
- It runs cables. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (repository name word 'cable'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Verify original Cable Geometry baseline”; runs Test Verify (`tools/test_verify.py`) and Verify (`tools/verify.py`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- cable-trench-or-drill · .github/workflows · workflow
- Uses
- Test Verify (workflow run), Verify (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Verify original Cable Geometry baseline
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cable-trench-or-drill@bf00f9503ff7a662933775a022557c4ca9d9880a .github/workflows/verify-original.yml:1-40 · blob 3349d51837be138a7ea8b3270aa398fbc9896007 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: unknown
name: Verify original Cable Geometry baseline
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: cable-original-${{ github.ref }}
cancel-in-progress: false
jobs:
verify:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
repository: Ventusltd/globalgrid2050
ref: 4185020ade7da01869b4ffc0ee1d2656608da716
path: .origin
persist-credentials: false
sparse-checkout: |
solar-bess-topology-v7/cable-geometry-visualiser
sparse-checkout-cone-mode: false
- name: Verify negative controls
run: python3 -B tools/test_verify.py
- name: Check exact original bytes and local dependencies
run: python3 -B tools/verify.py --source .origin --expected-origin 4185020ade7da01869b4ffc0ee1d2656608da716 --out artifacts/original-baseline.json
- name: Retain compact receipt
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: original-cable-${{ github.sha }}-${{ github.run_id }}
path: artifacts/original-baseline.json
if-no-files-found: error
retention-days: 30Verify Route Constraints Workflow
A GitHub Actions workflow in Cable Trench or Drill. Runs on push, on pull requests and on a schedule.
automationcable-trench-or-drill / .github/workflows/verify-route-constraints.yml · lines 1–67 of 67 · 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 (path word 'route'): 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 engine-pin.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Verify route-constraint cartridge and its engine pin”; runs Route Constraints Test (`tools/route-constraints.test.mjs`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- cable-trench-or-drill · .github/workflows · workflow
- Uses
- Route Constraints Test (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Verify route-constraint cartridge and its engine pin
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cable-trench-or-drill@bf00f9503ff7a662933775a022557c4ca9d9880a .github/workflows/verify-route-constraints.yml:1-67 · blob 28e1868d7ab89dd3e884e2491f15b500e4f7e8ce · 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: unknown
name: Verify route-constraint cartridge and its engine pin
# The cartridge reads its mathematics from ventus-grid-engine rather than
# carrying a copy. Two things therefore have to be checked, and they are
# separate failures:
#
# 1. The cartridge's own contract — pin verification, refusal paths, and the
# direct first pass surviving every one of them. Stubbed, offline, fast.
# 2. Whether the engine bytes actually served still match the pin. That one
# talks to the network, so it is allowed to be reported without failing the
# build on a transient outage: a moved engine is a real finding, an
# unreachable one at 3am is not.
on:
push:
branches: [main]
paths:
- 'src/route-constraints/**'
- 'tools/route-constraints.test.mjs'
- '.github/workflows/verify-route-constraints.yml'
pull_request:
workflow_dispatch:
# A drifted engine pin is silent until something reads it, so look once a day.
schedule:
- cron: '17 5 * * *'
permissions:
contents: read
jobs:
cartridge:
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '24'
- name: Cartridge contract — pin verification, refusals, preserved first pass
run: node tools/route-constraints.test.mjs
engine-pin-drift:
runs-on: ubuntu-24.04
timeout-minutes: 5
# Reports drift; does not gate the build on a network outage.
continue-on-error: true
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- name: Compare the served engine module against the pinned SHA-256
run: |
set -uo pipefail
url=$(python3 -c "import json;print(json.load(open('src/route-constraints/engine-pin.json'))['engine']['servedUrl'])")
want=$(python3 -c "import json;print(json.load(open('src/route-constraints/engine-pin.json'))['engine']['contentSha256'])")
commit=$(python3 -c "import json;print(json.load(open('src/route-constraints/engine-pin.json'))['engine']['commit'])")
if ! curl --fail --silent --show-error --max-time 30 "$url" -o /tmp/engine.js; then
echo "::warning::the engine module could not be fetched from $url; drift not established"
exit 0
fi
got=$(sha256sum /tmp/engine.js | cut -d' ' -f1)
echo "pinned $want (commit $commit)"
echo "served $got"
if [ "$want" != "$got" ]; then
echo "::error::the served engine module no longer matches the pin. A route assessment must not change because a dependency changed underneath it. Re-verify the module and update engine-pin.json deliberately."
exit 1
fi
echo "engine pin intact"Claude Verify Memory Store Workflow
A GitHub Actions workflow. Runs on push, on pull requests and on a schedule.
automationclaude / .github/workflows/202609031030-verify-memory-store.yml · lines 1–77 of 77 · version 2026-09-03 10:30 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes; uses storage (browser storage, DuckDB or Parquet).
- Why it exists in the grid workflow
- Domain stage agent_infra (repository name word 'claude'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- Inputs & outputs
- In: DuckDB queries.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- The loop that makes the memory-store discipline enforced rather than documented.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- claude · .github/workflows · workflow
- Uses
- Verify Memory Store (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- 202609031030 Verify the session memory store
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- claude@df9da02425fdf0c65d11a84f32cd9b3ef927b309 .github/workflows/202609031030-verify-memory-store.yml:1-77 · blob 9b0934b24391ba960171034c54c3564147e01aec · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: process, storage · domain stage: agent_infra · users: ai_agent · canonical: unknown
# The loop that makes the memory-store discipline enforced rather than documented.
#
# The disease is not a crash. It is a session that ends, whose transcript exists, and
# which never reaches the queryable store - or a conversion that dropped lines quietly.
# Long-term memory then develops holes that nothing reports, because the store still
# answers every query, just from less data than it claims. Nobody notices, because the
# rows that are missing are exactly the rows nothing asks about.
#
# So this runs on every push that touches the store, and four times a day regardless.
# `--check` writes nothing: it measures every parquet with DuckDB, reconciles each
# against the audit record beside it, and validates the committed manifest against
# what it measured. A stale manifest fails here.
#
# THE ACTIONS ARE PINNED BY COMMIT. `@v5` is a mutable tag; whoever can move it can run
# code in the job that decides whether this repository's memory is trustworthy.
# 11bd71901bbe5b1630ceea73d27597364c9af683 is actions/checkout v4.2.2, the same commit
# gridatlas already names everywhere, so the estate names one checkout.
# a26af69be951a213d495a4c3e4e4022e16d87065 is actions/setup-python v5.
#
# Perpetual by construction: no expiry, no wall-clock gate, no end date. The cron is
# every six hours on every day of every month. The only exit that is not a measurement
# is the one below, when there is no store to measure yet.
name: 202609031030 Verify the session memory store
on:
push:
branches: [main]
paths:
- 'logs/parquet/**'
- 'logs/reports/**'
- 'logs/tools/**'
- 'requirements.txt'
- '.github/workflows/202609031030-verify-memory-store.yml'
pull_request:
paths:
- 'logs/parquet/**'
- 'logs/reports/**'
- 'logs/tools/**'
schedule:
- cron: '17 */6 * * *'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: verify-memory-store-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.12'
- name: Install the pinned reader and writer
run: python -m pip install --disable-pip-version-check -r requirements.txt
# An empty store is not a failure - it is a repository that has not started one.
# A store that exists and is short of what its audit records claim is.
- name: The store holds every line its audit records claim for it
run: |
if ! ls logs/parquet/*.parquet >/dev/null 2>&1; then
echo "logs/parquet/ holds no parquet files; there is no store to verify"
exit 0
fi
python logs/tools/verify_memory_store.py --checkClaude Estate Link Crawl Workflow
A GitHub Actions workflow that builds and publishes the site. Runs on push, on a schedule and by hand.
automationclaude / .github/workflows/202609032340-estate-link-crawl.yml · lines 1–182 of 182 · version 2026-09-03 23:40 · 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 'claude'): 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
- The crawl that finds a dead link before a user does.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- claude · .github/workflows · workflow
- Uses
- Claude Estate Link Crawl (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- 202609032340 Estate link and sentinel crawl
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- claude@df9da02425fdf0c65d11a84f32cd9b3ef927b309 .github/workflows/202609032340-estate-link-crawl.yml:1-182 · blob c3d21a551e0d8460917d502f2325b1da10a36d29 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: agent_infra · users: ai_agent · canonical: unknown
# The crawl that finds a dead link before a user does.
#
# =============================================================================
# THIS JOB IS INFORMATIONAL. IT EXITS 0 ON EVERY FINDING, INCLUDING A 404.
#
# Two reasons, and the second is the one that gets forgotten.
#
# 1. It is a REPORT, not a gate. A crawl of 76 published releases will always find
# something - an optional data layer that was never uploaded, a release the Pages
# deploy has not served yet, a historical snapshot pointing at a route that has since
# moved. None of those are reasons to stop a build. A survey that exits non-zero is
# lying about its own role.
#
# 2. GitHub mails the actor when a workflow FAILS. A nightly crawl that goes red the
# first night it finds a stale link mails a human every night thereafter, and the
# predictable result is that the mail is filtered and the finding is never read again.
# The way to keep a crawl worth reading is to make sure it never shouts.
#
# The findings live in the JSON artifact and in the committed board at
# docs/boards/estate-link-crawl.md. Read them there. If you are about to "fix" this into
# a gate: don't. Write a separate, narrow gate over the one route that must never die,
# and leave this surveying everything else.
# =============================================================================
#
# WHY IT IS IN THE CLOUD AND NOT ON THE LAPTOP
#
# 76 published releases, ~976 outbound routes, every one an HTTP request against a live
# origin. That is embarrassingly parallel and entirely deterministic - the two properties
# that make work worth moving off a machine that also has to run a browser and a model.
# Four surfaces, four runners, in parallel, on a public repository, for nothing.
#
# WHAT IT LOOKS FOR
#
# Dead routes, and dead SENTINELS. A sentinel is a REPD reference a release promises will
# deep-link into GridAtlas. When the Atlas moved from /gridatlas/<release-id>/ to
# /gridatlas/atlas/releases/<release-id>/, the live Pipeline News release went on emitting
# the old shape and all eight of its sentinels began to 404 - with the page still rendering,
# because a broken deep link is something a user clicks, not something a build sees.
#
# The crawler distinguishes a base URL a manifest DECLARES from one a page actually SHIPS
# (resolved through the import closure of its <script type=module>), because roughly thirty
# release directories still carry the old module without importing it. Counting those as
# defects would report thirty broken releases where there is one.
#
# The actions are pinned by commit. @v4 is a mutable tag and whoever can move it can run
# code in this job. 11bd71901bbe5b1630ceea73d27597364c9af683 is actions/checkout v4.2.2,
# the commit gridatlas and claude already name, so the estate names one checkout.
name: 202609032340 Estate link and sentinel crawl
on:
workflow_dispatch:
# ONE nightly informational run. No second schedule, and nothing here can go red, so
# this cannot become a recurring failure notification.
schedule:
- cron: '41 2 * * *'
push:
branches: [main]
paths:
- 'scripts/estate_link_crawl.py'
- '.github/workflows/202609032340-estate-link-crawl.yml'
permissions:
contents: read
concurrency:
group: estate-link-crawl
cancel-in-progress: true
jobs:
crawl:
runs-on: ubuntu-24.04
timeout-minutes: 25
strategy:
fail-fast: false
matrix:
surface:
- globalgrid2050
- pipelinenews-intel
- gridatlas-atlas
- pipelinenews-releases
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.12'
# The token is only used to ENUMERATE published releases, because GitHub Pages serves
# no directory listing. A crawler that discovers releases by scraping the origin finds
# nothing and reports a clean surface - the worst answer available, a green light that
# measured nothing. The repository says what was published; the origin says what is
# served; the gap between them is the finding.
- name: Crawl ${{ matrix.surface }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -uo pipefail
python scripts/estate_link_crawl.py \
--surface '${{ matrix.surface }}' \
--out 'crawl-${{ matrix.surface }}.json'
rc=$?
echo "crawler exit: $rc"
- name: Upload the shard
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: crawl-${{ matrix.surface }}
path: crawl-${{ matrix.surface }}.json
if-no-files-found: warn
retention-days: 30
collate:
needs: crawl
if: always()
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.12'
- name: Collect every shard
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
path: shards
merge-multiple: true
- name: Collate into one board
run: |
set -uo pipefail
ls -la shards || true
python scripts/estate_link_crawl.py \
--collate 'shards/crawl-*.json' \
--out estate-link-crawl.json \
--board docs/boards/estate-link-crawl.md
echo "collate exit: $?"
- name: Upload the collated crawl
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: estate-link-crawl
path: estate-link-crawl.json
if-no-files-found: warn
retention-days: 90
# The board is committed so a later session reads a file instead of re-running the
# crawl. Staged BY EXPLICIT PATH: this repository has other lanes writing to it, and
# `git add -A` in a job would sweep up their work in progress.
- name: Commit the board if it changed
run: |
set -uo pipefail
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add docs/boards/estate-link-crawl.md
if git diff --cached --quiet; then
echo "the board is unchanged; nothing to commit"
exit 0
fi
# The message goes to a FILE. A heredoc in a YAML block scalar depends on both
# YAML's indentation stripping and the shell's, and backticks in an unquoted one
# have eaten three commit messages in this estate.
{
printf '%s\n\n' 'docs/boards/estate-link-crawl.md: the nightly crawl of every published release'
printf '%s\n' 'Written by 202609032340-estate-link-crawl.yml. Informational: the crawl exits 0'
printf '%s\n' 'on every finding, so a dead link is recorded here rather than mailed to anyone.'
} > /tmp/commit-msg.txt
git commit -F /tmp/commit-msg.txt
git pull --rebase --quiet || true
# A push that loses a race is not a defect of the crawl. The artifact holds the
# same findings and the next run rewrites the board.
git push || echo "push declined; the findings are in the artifact"