In this section
- Registry of All Content in Repos and Dependencies — Index Page render · registry_of_all_content_in_repos_and_dependencies / index.html lines 1–181
- Build Graph Latest storage · registry_of_all_content_in_repos_and_dependencies / scripts/build_graph_latest.py lines 1–143
- Build Kernel storage · registry_of_all_content_in_repos_and_dependencies / scripts/build_kernel.py lines 1–59
Registry of All Content in Repos and Dependencies — Index Page
A web page that draws kernel, registry repos, interconnectors and solar, and uses data from the gemini, Spiders and kuiper-belt repositories. Published at https://ventusltd.github.io/registry_of_all_content_in_repos_and_dependencies/. It loads live (`loadLive`).
renderregistry_of_all_content_in_repos_and_dependencies / index.html · lines 1–181 of 181 · Entry point · pattern loadLive (shared by 2 files)
- What it does
- It draws kernel, registry repos, interconnectors and solar. Defines loadLive. Side effects: changes the web page (DOM); makes network requests.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (topic 'markets-data'): 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: interconnectors, solar.
- Inputs & outputs
- In: data source: gemini data; data source: spiders data; data source: kuiper-belt data; data source: vedic- data; data source: Elexon BMRS; data source: NESO data portal; data source: data-federation-map-for-globalgrid2050-all-repos data; JSON file latest.json. Out: web page; SVG drawing.
- Downstream impact
- Used directly by 42 files: GlobalGrid2050 Dashboard (globalgrid2050); Dashboard (globalgrid2050-homepage); GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Spider Printer Registry Smoke Workflow (spiders); and 38 more. Reached from 89 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html). It is itself an entry point, published at https://ventusltd.github.io/registry_of_all_content_in_repos_and_dependencies/.
- What it achieves
- Defines `loadLive`. It reads `./registry/latest.json`.
- Why it matters
- Feeds the GlobalGrid2050 Historical Builds map page in GlobalGrid2050 (interconnectors and solar) at https://globalgrid2050.com/historical_builds.html and 38 other pages. Also imported by GlobalGrid2050 Dashboard and Dashboard, from GlobalGrid2050 and GlobalGrid2050 Homepage. Checked by Spider Printer Registry Smoke Workflow.
- Application
- registry_of_all_content_in_repos_and_dependencies · / · page
- Uses
- Spiders — Index Page (link), Kuiper Belt — Index Page (link), VEDIC — Index Page (link), Federation Radial (link), Spider Full Po Test (link), GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v8 Page (link), GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V7 Page (link)
- Used by
- named by URL in GlobalGrid2050 Dashboard (estate URL), named by URL in Dashboard (estate URL), linked from GlobalGrid2050 Historical Builds (link), named by URL in Spider Printer Registry Smoke Workflow (estate URL), linked from Homepage Versions — GlobalGrid2050 Page (link), linked from Homepage V001 (link), linked from Homepage V002 (link), linked from Homepage V003 (link), and 34 more
- Produces
- loadLive
- Defines here
- loadLive
- 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 index.html:1-181 · blob cc524efa66b4455dec6a364b3abccb31b82991b5 · GitHub at these lines
- State
- achieves: name · context: auto · stage: output · effects: dom, network · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: unknown
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>GlobalGrid2050 Registry</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin:0; min-height:100%; background:#000; }
body {
color:#fff;
font-family:Courier, monospace;
padding:28px;
font-size:16px;
line-height:1.55;
}
a { color:#40e8ff; text-decoration:none; }
a:hover { text-decoration:underline; }
.shell { max-width:1280px; margin:0 auto; }
.top { display:grid; grid-template-columns:1fr 360px; gap:18px; align-items:start; }
h1 { margin:0; font-size:34px; letter-spacing:.5px; }
.subtitle { color:#40e8ff; font-size:20px; margin:4px 0 18px; }
.muted { color:#b8b8b8; }
.green { color:#53ff4c; }
.orange { color:#ff9400; }
.purple { color:#bd65ff; }
.panel { border:1px solid #07545b; background:#020909; padding:18px; border-radius:4px; }
.buttons { display:flex; gap:10px; flex-wrap:wrap; margin-top:20px; }
.btn { border:1px solid #07545b; padding:10px 13px; background:#020909; color:#40e8ff; border-radius:4px; font-weight:bold; }
.status td { padding:3px 10px 3px 0; white-space:nowrap; }
.status .label { color:#d8d8d8; }
.status .value { color:#fff; }
.ok { color:#53ff4c; font-weight:bold; font-size:20px; }
.section-title { color:#40e8ff; margin:0 0 10px; font-size:20px; letter-spacing:.5px; }
.spider-panel { margin-top:18px; padding:16px; border:1px solid #07545b; background:#020909; border-radius:4px; }
.spider-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; flex-wrap:wrap; }
.spider-wrap { position:relative; margin-top:6px; overflow:auto; border-top:1px solid #06383d; padding-top:10px; }
svg { width:100%; min-width:900px; height:auto; display:block; }
.wire { stroke:#777; stroke-width:1.4; fill:none; opacity:.85; }
.wire-cyan { stroke:#40e8ff; stroke-width:1.8; fill:none; opacity:.95; }
.node { cursor:pointer; }
.node circle { fill:#020909; stroke-width:2; filter:drop-shadow(0 0 4px rgba(64,232,255,.35)); }
.node text { font-family:Courier, monospace; pointer-events:none; }
.node .label { fill:#fff; font-size:14px; font-weight:bold; }
.node .sub { fill:#b8b8b8; font-size:11px; text-decoration:underline; }
.bios circle { stroke:#2fa7ff; }
.op circle { stroke:#bd65ff; }
.app circle { stroke:#63d92f; }
.data circle { stroke:#ff9400; }
.ext circle { stroke:#aaa; }
.legend { display:grid; grid-template-columns:repeat(5,auto); gap:10px 18px; font-size:14px; color:#ddd; margin-top:8px; }
.dot { display:inline-block; width:12px; height:12px; border-radius:50%; margin-right:6px; vertical-align:-1px; }
.explore { margin-top:18px; border:1px solid #07545b; padding:16px; display:grid; grid-template-columns:repeat(5,1fr); gap:18px; background:#020909; }
.explore h3 { margin:0 0 8px; font-size:18px; }
.explore ul { list-style:none; padding:0; margin:0; }
.explore li { margin:7px 0; }
.cards { margin-top:18px; display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.card { border:1px solid #07545b; padding:16px; background:#020909; min-height:130px; }
.card h3 { color:#40e8ff; margin:0 0 8px; }
.footer { margin-top:18px; display:flex; justify-content:space-between; gap:20px; border:1px solid #07545b; padding:14px; color:#bbb; background:#020909; }
code { color:#40e8ff; }
@media(max-width:900px){
body{padding:18px;font-size:15px}.top{grid-template-columns:1fr}.explore{grid-template-columns:1fr 1fr}.cards{grid-template-columns:1fr}.footer{display:block}h1{font-size:28px}.subtitle{font-size:17px}
}
@media(max-width:540px){.explore{grid-template-columns:1fr}.legend{grid-template-columns:1fr 1fr}.buttons .btn{width:100%;text-align:center}}
</style>
</head>
<body>
<div class="shell">
<div class="top">
<header>
<h1>GlobalGrid2050</h1>
<div class="subtitle">Registry of All Content in Repos and Dependencies</div>
<p>This registry is the BIOS and Kernel for the GlobalGrid2050 operating system. It inventories repositories, files and dependencies and publishes one source of truth for applications, AI agents and spider tools.</p>
<div class="buttons">
<a class="btn" href="./registry/latest.json">LATEST.json</a>
<a class="btn" href="./registry/kernel.json">KERNEL.json</a>
<a class="btn" href="./registry/graph_latest.json">GRAPH_latest.json</a>
<a class="btn" href="./registry/registry.md">REGISTRY.md</a>
<a class="btn" href="./registry/">All Versions</a>
</div>
<p class="small"><a href="https://github.com/Ventusltd/registry_of_all_content_in_repos_and_dependencies">View on GitHub ↗</a> <span class="muted">Open source registry layer</span></p>
<nav id="gemini-discovery" aria-label="AI engineering discovery" style="display:flex;flex-wrap:wrap;gap:8px 20px;margin:18px 0;font-size:13px"><strong>AI engineering:</strong> <a href="https://ventusltd.github.io/gemini/">Gemini Intelligence Bridge</a> <a href="https://ventusltd.github.io/gemini/packets/vedic-index.html">Vedic SatNav commands</a> <a href="https://ventusltd.github.io/spiders/"> … [line shortened here: 543 characters; full line on GitHub]
<aside class="panel">
<h2 class="section-title">LIVE REGISTRY STATUS</h2>
<table class="status">
<tr><td class="label">Version</td><td>:</td><td class="value green" id="version">—</td></tr>
<tr><td class="label">Generated</td><td>:</td><td class="value" id="generated">—</td></tr>
<tr><td class="label">Repositories</td><td>:</td><td class="value" id="repos">—</td></tr>
<tr><td class="label">Files</td><td>:</td><td class="value" id="files">—</td></tr>
<tr><td class="label">Unreachable</td><td>:</td><td class="value" id="unreachable">—</td></tr>
<tr><td class="label">Schema</td><td>:</td><td class="value" id="schema">—</td></tr>
</table>
<hr style="border:0;border-top:1px solid #07545b;margin:14px 0">
<table class="status"><tr><td class="label">Status</td><td>:</td><td class="ok" id="liveStatus">LOADING</td></tr></table>
<p><a href="#how">How it works →</a></p>
</aside>
</div>
<section class="spider-panel">
<div class="spider-head">
<div><h2 class="section-title">REGISTRY STRUCTURE SPIDER</h2><div class="muted">High level view of the ecosystem. Click any node to open its repository or source.</div></div>
<div class="legend">
<span><i class="dot" style="background:#2fa7ff"></i>BIOS / Registry</span>
<span><i class="dot" style="background:#bd65ff"></i>Operating Layer</span>
<span><i class="dot" style="background:#63d92f"></i>Applications</span>
<span><i class="dot" style="background:#ff9400"></i>Data / Knowledge</span>
<span><i class="dot" style="background:#aaa"></i>External</span>
</div>
</div>
<div class="spider-wrap">
<svg viewBox="0 0 1100 600" role="img" aria-label="Clickable registry spider map">
<path class="wire-cyan" d="M550 125 L550 250"/>
<path class="wire" d="M550 250 L385 145"/>
<path class="wire" d="M550 250 L715 145"/>
<path class="wire" d="M550 250 L310 255"/>
<path class="wire" d="M550 250 L790 255"/>
<path class="wire" d="M550 250 L385 365"/>
<path class="wire" d="M550 250 L715 365"/>
<path class="wire-cyan" d="M550 250 L550 405"/>
<path class="wire" d="M550 405 L430 505"/>
<path class="wire" d="M550 405 L550 530"/>
<path class="wire" d="M550 405 L670 505"/>
<a href="./registry/latest.json" class="node bios"><circle cx="550" cy="95" r="58"/><text class="label" x="550" y="93" text-anchor="middle">BIOS</text><text class="sub" x="550" y="115" text-anchor="middle">latest.json ↗</text></a>
<a href="./registry/kernel.json" class="node bios"><circle cx="550" cy="250" r="72"/><text class="label" x="550" y="247" text-anchor="middle">REGISTRY</text><text class="label" x="550" y="269" text-anchor="middle">KERNEL</text><text class="sub" x="550" y="294" text-anchor="middle">kernel.json ↗</text></a>
<a href="https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos" class="node op"><circle cx="385" cy="145" r="52"/><text class="label" x="385" y="140" text-anchor="middle">FEDERATION</text><text class="label" x="385" y="158" text-anchor="middle">MAP</text><text class="sub" x="385" y="178" text-anchor="middle">GitHub ↗</text></a>
<a href="https://ventusltd.github.io/spiders/spider_printer_v1/" class="node app"><circle cx="715" cy="145" r="52"/><text class="label" x="715" y="140" text-anchor="middle">SPIDER</text><text class="label" x="715" y="158" text-anchor="middle">PRINTER</text><text class="sub" x="715" y="178" text-anchor="middle">Open ↗</text></a>
<a href="https://github.com/Ventusltd/globalgrid2050/tree/main/repd_grid_atlasv8" class="node app"><circle cx="310" cy="255" r="52"/><text class="label" x="310" y="250" text-anchor="middle">GRID</text><text class="label" x="310" y="268" text-anchor="middle">ATLAS</text><text class="sub" x="310" y="288" text-anchor="middle">GitHub ↗</text></a>
<a href="https://github.com/Ventusltd/globalgrid2050/tree/main/solar-bess-topology-v7" class="node app"><circle cx="790" cy="255" r="52"/><text class="label" x="790" y="250" text-anchor="middle">GIS SLD</text><text class="label" x="790" y="268" text-anchor="middle">SANDBOX</text><text class="sub" x="790" y="288" text-anchor="middle">GitHub ↗</text></a>
<a href="https://github.com/Ventusltd/data-interconnectors" class="node data"><circle cx="385" cy="365" r="52"/><text class="label" x="385" y="360" text-anchor="middle">INTERCONNECTORS</text><text class="label" x="385" y="378" text-anchor="middle">DATA</text><text class="sub" x="385" y="398" text-anchor="middle">GitHub ↗</text></a>
<a href="https://github.com/Ventusltd/data-gb-electricity" class="node data"><circle cx="715" cy="365" r="52"/><text class="label" x="715" y="360" text-anchor="middle">GB</text><text class="label" x="715" y="378" text-anchor="middle">ELECTRICITY</text><text class="sub" x="715" y="398" text-anchor="middle">GitHub ↗</text></a>
<a href="https://www.elexon.co.uk/" class="node ext"><circle cx="430" cy="505" r="45"/><text class="label" x="430" y="502" text-anchor="middle">ELEXON</text><text class="sub" x="430" y="522" text-anchor="middle">web ↗</text></a>
<a href="https://www.neso.energy/" class="node ext"><circle cx="550" cy="530" r="45"/><text class="label" x="550" y="527" text-anchor="middle">NESO</text><text class="sub" x="550" y="547" text-anchor="middle">web ↗</text></a>
<a href="https://www.gov.uk/government/organisations/department-for-energy-security-and-net-zero" class="node ext"><circle cx="670" cy="505" r="45"/><text class="label" x="670" y="502" text-anchor="middle">DESNZ</text><text class="sub" x="670" y="522" text-anchor="middle">web ↗</text></a>
</svg>
</div>
</section>
<section class="explore">
<div><h3 class="green">BIOS / KERNEL</h3><ul><li><a href="./registry/latest.json">latest.json ↗</a></li><li><a href="./registry/kernel.json">kernel.json ↗</a></li><li><a href="./registry/graph_latest.json">graph_latest.json ↗</a></li><li><a href="./registry/registry.md">registry.md ↗</a></li><li><a href="./registry/">All registry versions ↗</a></li></ul></div>
<div><h3 class="purple">OPERATING LAYER</h3><ul><li><a href="https://github.com/Ventusltd/data-federation-map-for-globalgrid2050-all-repos">Federation Map ↗</a></li><li><a href="https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-repos/dashboard/federation_radial.html">Dashboard ↗</a></li><li><a href="https://ventusltd.github.io/data-federation-map-for-globalgrid2050-all-rep … [line shortened here: 483 characters; full line on GitHub]
<div><h3 class="green">APPLICATIONS</h3><ul><li><a href="https://ventusltd.github.io/spiders/spider_printer_v1/">Spider Printer ↗</a></li><li><a href="https://globalgrid2050.com/repd_grid_atlasv8/">Grid Atlas ↗</a></li><li><a href="https://globalgrid2050.com/solar-bess-topology-v7/">GIS SLD Sandbox ↗</a></li><li><a href="https://globalgrid2050.com/uk_energy_tracking/">UK Energy Tracker ↗</a></ … [line shortened here: 414 characters; full line on GitHub]
<div><h3 class="orange">DATA & KNOWLEDGE</h3><ul><li><a href="https://github.com/Ventusltd/data-interconnectors">Interconnectors Data ↗</a></li><li><a href="https://github.com/Ventusltd/data_uk_dno_and_tso">DNO / TSO Data ↗</a></li><li><a href="https://github.com/Ventusltd/data-gb-electricity">GB Electricity Data ↗</a></li><li><a href="https://github.com/Ventusltd/globalgrid2050">Knowledge Bas … [line shortened here: 423 characters; full line on GitHub]
<div><h3>ABOUT</h3><ul><li><a href="https://github.com/Ventusltd/registry_of_all_content_in_repos_and_dependencies">Repo README ↗</a></li><li><a href="https://github.com/Ventusltd/registry_of_all_content_in_repos_and_dependencies/actions/workflows/registry.yml">Registry Workflow ↗</a></li><li><a href="https://github.com/Ventusltd/registry_of_all_content_in_repos_and_dependencies/blob/main/conf … [line shortened here: 458 characters; full line on GitHub]
</section>
<section class="cards" id="how">
<div class="card"><h3>WHAT IS THIS?</h3><p>The registry is the authoritative inventory of repositories, files and dependencies in the GlobalGrid2050 ecosystem.</p></div>
<div class="card"><h3>FOR DEVELOPERS / AI AGENTS</h3><p>Use <code>kernel.json</code> as the AI boot file. Use <code>graph_latest.json</code> as the spider render feed.</p></div>
<div class="card"><h3>FOR HUMANS</h3><p>Use this page to explore the ecosystem visually and navigate to repositories, applications and data sources.</p></div>
</section>
<footer class="footer">
<div><span class="green">root@globalgrid2050:~#</span> This registry powers the GlobalGrid2050 OS.<br>Encrypted by transparency. Governed by evidence. Built for the world.</div>
<div><a href="https://globalgrid2050.com/">GlobalGrid2050.com ↗</a><br><a href="https://www.ventusltd.com/">Ventus Ltd ↗</a></div>
</footer>
<p class="muted" style="text-align:center">Data live from <code>registry/latest.json</code> · Auto-updates via GitHub Actions · Open source</p>
</div>
<script>
async function loadLive(){
try{
const latest = await fetch('./registry/latest.json', {cache:'no-store'}).then(r=>r.json());
const registry = await fetch('./' + latest.json_path, {cache:'no-store'}).then(r=>r.json());
document.getElementById('version').textContent = latest.authoritative_version || registry.registry_version || '—';
document.getElementById('generated').textContent = registry.generated_at || latest.updated_at || '—';
document.getElementById('repos').textContent = registry.totals?.repo_count ?? '—';
document.getElementById('files').textContent = registry.totals?.file_count ?? '—';
document.getElementById('unreachable').textContent = registry.totals?.unreachable_count ?? '—';
document.getElementById('schema').textContent = registry.schema_version || '—';
document.getElementById('liveStatus').textContent = 'OPERATIONAL';
}catch(e){
document.getElementById('liveStatus').textContent = 'NOT LOADED';
}
}
loadLive();
</script>
</body>
</html>Build Graph Latest
A Python command-line tool in the scripts folder of Registry Of All Content In Repos And Dependencies that reads sources.
storageregistry_of_all_content_in_repos_and_dependencies / scripts/build_graph_latest.py · lines 1–143 of 143 · Entry point
- What it does
- It loads sources. Defines repo_kind, repo_layer, key_files, main. Uses libraries __future__, json, pathlib. Side effects: reads or writes files.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (topic 'markets-data'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Inputs & outputs
- In: JSON file latest.json; JSON file sources.json; JSON file graph_latest.json.
- Downstream impact
- Used directly by 1 file: Registry Workflow (registry_of_all_content_in_repos_and_dependencies).
- What it achieves
- It is built from the repo kind helper (`repo_kind`), the repo layer helper (`repo_layer`) and the key files helper (`key_files`). Create `registry/graph_latest.json` for Spider Printer from `registry/latest.json`.
- Why it matters
- Run by Registry Workflow.
- Application
- registry_of_all_content_in_repos_and_dependencies · scripts · Python CLI
- Uses
- __future__, json, pathlib
- Used by
- run by Registry Workflow (workflow run)
- Produces
- repo_kind, repo_layer, key_files, main
- Defines here
- repo_kind, repo_layer, key_files, main
- 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 scripts/build_graph_latest.py:1-143 · blob f1280909a738d8f5f276842506b096178f040e8b · GitHub at these lines
- State
- achieves: comment · context: auto · stage: output · effects: filesystem · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: supporting_data
#!/usr/bin/env python3
"""Create registry/graph_latest.json for Spider Printer from registry/latest.json."""
from __future__ import annotations
import json
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
REGISTRY = ROOT / "registry"
LAYERS = [
{"id": "data", "label": "Data and registry repositories", "defaultOn": True},
{"id": "engines", "label": "Engines and topology tools", "defaultOn": True},
{"id": "apps", "label": "Applications and dashboards", "defaultOn": True},
{"id": "libs", "label": "Important files", "defaultOn": True},
{"id": "schemas", "label": "Workflows and contracts", "defaultOn": True},
{"id": "infra", "label": "Infrastructure and platforms", "defaultOn": True},
{"id": "external", "label": "External authorities", "defaultOn": False},
{"id": "future", "label": "Future cartridges", "defaultOn": True},
]
EDGE_TYPES = {
"raw_flow": {"label": "Data flow raw", "layer": "data", "colour": "#46ff63", "dash": ""},
"derived_flow": {"label": "Data flow derived", "layer": "data", "colour": "#3ee7ff", "dash": "8 8"},
"dependency": {"label": "Dependency / uses", "layer": "engines", "colour": "#3385ff", "dash": ""},
"provides": {"label": "Provides / exposes", "layer": "apps", "colour": "#b35cff", "dash": ""},
"federation": {"label": "Kernel registry record", "layer": "engines", "colour": "#ffb000", "dash": "12 8"},
"schema": {"label": "Schema / contract", "layer": "schemas", "colour": "#ff4b4b", "dash": ""},
"api": {"label": "API integration", "layer": "external", "colour": "#10e0c4", "dash": ""},
"reference": {"label": "Repo contains file", "layer": "libs", "colour": "#d8dde8", "dash": "4 7"},
}
def repo_kind(name: str) -> str:
if name.startswith("data") or name.startswith("registry"):
return "data"
if name == "spiders":
return "engine"
if name == "globalgrid2050":
return "app"
return "future"
def repo_layer(name: str) -> str:
if name.startswith("data") or name.startswith("registry"):
return "data"
if name == "spiders":
return "engines"
if name == "globalgrid2050":
return "apps"
return "future"
def key_files(files: list[dict]) -> list[dict]:
chosen = []
names = {
"README.md",
"ARCHITECTURE.md",
"federation.yaml",
"DATA_CONTRACT.md",
"IMPLEMENTATION.md",
"DEPENDENCIES.md",
"anchor_AI_MUST_READ.md",
}
for item in files:
path = item["path"]
lower = path.lower()
if path in names or lower.endswith("latest.json") or lower.endswith("sources.json") or lower.endswith("index.html") or lower.startswith(".github/workflows/"):
chosen.append(item)
return chosen[:10]
def main() -> int:
latest = json.loads((REGISTRY / "latest.json").read_text(encoding="utf-8"))
registry_path = ROOT / latest["json_path"]
registry = json.loads(registry_path.read_text(encoding="utf-8"))
nodes = []
edges = []
start_x = 280
spacing = 420
repo_y = 300
file_y = 1180
for idx, repo in enumerate(registry["repos"]):
rid = f"repo::{repo['name']}"
nodes.append({
"id": rid,
"label": repo["name"],
"subtitle": f"{repo['file_count']} files · {repo['default_branch']}",
"kind": repo_kind(repo["name"]),
"layer": repo_layer(repo["name"]),
"x": start_x + idx * spacing,
"y": repo_y,
"source": repo["html_url"],
})
for fidx, item in enumerate(key_files(repo["files"])):
fid = f"file::{repo['name']}::{item['path']}"
nodes.append({
"id": fid,
"label": Path(item["path"]).name[:28],
"subtitle": item["role"][:42],
"kind": "schema" if item["type"] in {"schema", "workflow"} else "library",
"layer": "schemas" if item["type"] in {"schema", "workflow"} else "libs",
"x": start_x + idx * spacing,
"y": file_y + fidx * 120,
"source": item["github_url"],
})
edges.append({"from": rid, "to": fid, "type": "reference"})
registry_node = "repo::registry_of_all_content_in_repos_and_dependencies"
for repo in registry["repos"]:
rid = f"repo::{repo['name']}"
if rid != registry_node:
edges.append({"from": registry_node, "to": rid, "type": "federation"})
graph = {
"schemaVersion": "globalgrid2050.spider_printer_graph.v1",
"species": "spider_printer_v1",
"title": "GlobalGrid2050 Kernel Registry Graph",
"methodState": "screening",
"mapType": "registry_driven_topological_sld_not_geospatial",
"dataSource": {
"repo": "Ventusltd/registry_of_all_content_in_repos_and_dependencies",
"registryVersion": registry["registry_version"],
"jsonPath": latest["json_path"],
"generatedAt": registry["generated_at"],
},
"canvas": {"width": 4200, "height": 2600, "print": "A1 landscape"},
"principles": ["Boot from the kernel registry", "Render recorded repo and file truth", "Fallback to static topology if unavailable"],
"layers": LAYERS,
"edgeTypes": EDGE_TYPES,
"nodes": nodes,
"edges": edges,
}
out = REGISTRY / "graph_latest.json"
out.write_text(json.dumps(graph, indent=2, sort_keys=True) + "\n", encoding="utf-8")
print(f"Wrote {out} from {latest['json_path']}")
return 0
if __name__ == "__main__":
raise SystemExit(main())Build Kernel
A Python command-line tool in the scripts folder of Registry Of All Content In Repos And Dependencies that reads sources and schema. It is built from the important step (`important`).
storageregistry_of_all_content_in_repos_and_dependencies / scripts/build_kernel.py · lines 1–59 of 59 · Entry point
- What it does
- It loads sources and schema. Defines important, main. Uses libraries __future__, json, pathlib. Side effects: reads or writes files.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (topic 'markets-data'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Inputs & outputs
- In: JSON file latest.json; JSON file sources.json; JSON file .schema.json; JSON file kernel.json. Out: JSON file kernel.json.
- Downstream impact
- Used directly by 1 file: Registry Workflow (registry_of_all_content_in_repos_and_dependencies).
- What it achieves
- Build compact `registry/kernel.json` from the authoritative registry snapshot.
- Why it matters
- Run by Registry Workflow.
- Application
- registry_of_all_content_in_repos_and_dependencies · scripts · Python CLI
- Uses
- __future__, json, pathlib
- Used by
- run by Registry Workflow (workflow run)
- Produces
- important, main
- Defines here
- important, main
- 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 scripts/build_kernel.py:1-59 · blob 6446e6fab230b0c6c2d2713c8b0921ccde703802 · GitHub at these lines
- State
- achieves: comment · context: auto · stage: output · effects: filesystem · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: supporting_data
#!/usr/bin/env python3
"""Build compact registry/kernel.json from the authoritative registry snapshot."""
from __future__ import annotations
import json
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
REGISTRY = ROOT / "registry"
IMPORTANT_NAMES = {
"README.md",
"ARCHITECTURE.md",
"federation.yaml",
"DATA_CONTRACT.md",
"DATA_SOURCES.md",
"DEPENDENCIES.md",
"IMPLEMENTATION.md",
"anchor_AI_MUST_READ.md",
"latest.json",
"sources.json",
"index.html",
}
def important(path: str) -> bool:
lower = path.lower()
name = Path(path).name
return name in IMPORTANT_NAMES or lower.startswith(".github/workflows/") or lower.endswith(".schema.json")
def main() -> int:
latest = json.loads((REGISTRY / "latest.json").read_text(encoding="utf-8"))
registry = json.loads((ROOT / latest["json_path"]).read_text(encoding="utf-8"))
repos = []
for repo in registry["repos"]:
repos.append({
"name": repo["name"],
"html_url": repo["html_url"],
"default_branch": repo["default_branch"],
"role": repo["role"],
"file_count": repo["file_count"],
"important_files": [f for f in repo["files"] if important(f["path"])],
})
kernel = {
"schema_version": "globalgrid2050.kernel_boot.v1",
"generated_at": registry["generated_at"],
"registry_version": registry["registry_version"],
"source_registry": latest["json_path"],
"boot_sequence": registry["boot_sequence"],
"totals": registry["totals"],
"repos": repos,
}
(REGISTRY / "kernel.json").write_text(json.dumps(kernel, indent=2, sort_keys=True) + "\n", encoding="utf-8")
print("Wrote registry/kernel.json")
return 0
if __name__ == "__main__":
raise SystemExit(main())