In this section
- CVAA Inoculate render · cvaa / inoculate.mjs lines 1–502
- Log render · cyber-resilience / assets/log.css lines 1–11
- 2026 11 13 Concentration Risk render · cyber-resilience / entries/2026-11-13-concentration-risk.html lines 1–37
- 2026 11 14 Cloud Sovereignty Recognition render · cyber-resilience / entries/2026-11-14-cloud-sovereignty-recognition.html lines 1–20
- Cyber Resilience — Index Page render · cyber-resilience / index.html lines 1–27
CVAA Inoculate
A JavaScript module that fetches GPU reuse and entangle, using SHA-256. It builds context (`buildContext`), posts flag (`postFlag`) and runs antibody (`runAntibody`).
rendercvaa / inoculate.mjs · lines 1–502 of 502 · Entry point · pattern frontMatter (shared by 2 files)
- What it does
- It fetches GPU reuse and entangle. Defines 23 functions or classes, including frontMatter, sha256, buildContext, exists, read. Uses libraries node:fs, node:path, node:url, node:child_process, node:crypto. Side effects: changes the web page (DOM); reads or writes files; makes network requests; starts processes; uses storage (browser storage, DuckDB or Parquet).
- Why it exists in the grid workflow
- Domain stage agent_infra (repository name word 'cvaa'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- Inputs & outputs
- In: JSON file gpu-reuse.json; JSON file current.json; JSON file cvaa.json; JSON file keys.json; JSON file entangle.json; JSON file route-gridatlas.json; JSON file routes.json; JSON file engine-route.json.
- Downstream impact
- Used directly by 3 files: CVAA Selftest Workflow (cvaa); CVAA Fleet (cvaa); CVAA Replay (cvaa).
- What it achieves
- Defines `frontMatter`, `sha256`, `buildContext` and 15 more. It reads `cvaa.json`.
- Why it matters
- Run by CVAA Selftest Workflow, CVAA Fleet and CVAA Replay.
- Application
- cvaa · / · JavaScript module
- Uses
- node:fs, node:path, node:url, node:child_process, node:crypto
- Used by
- run by CVAA Selftest Workflow (workflow run), run by CVAA Fleet (script call), run by CVAA Replay (script call), mentioned in Standalone (comment link)
- Produces
- frontMatter, sha256, buildContext, exists, read, list, size, sh, gpuReuse, j, cells, j
- Defines here
- frontMatter, sha256, buildContext, exists, read, list, size, sh, gpuReuse, j, cells, j, loops, walk, kuiper, j, k1, hit, postFlag, walk, sessions, runAntibody, headSha
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cvaa@dc04524c4df79e90642b8b7c00729e67cdf52855 inoculate.mjs:1-502 · blob 5f4ab3e35161f252be58333708642d6efe0f8926 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom, filesystem, network, process, storage · domain stage: agent_infra · users: ai_agent · canonical: unknown
#!/usr/bin/env node
// cvaa/inoculate.mjs — generation 202608301440
// Runs every vaccine in vaccines/ in timestamp order against a target repo.
// Usage: node inoculate.mjs <repo-path> [--sarif out.sarif] [--no-lock]
// Exit 1 on any finding or any malformed vaccine (fail closed). Exit 0 only when immune.
import { readdirSync, readFileSync, existsSync, statSync, writeFileSync, appendFileSync, renameSync } from 'node:fs';
import { join, dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import { execSync } from 'node:child_process';
import { createHash } from 'node:crypto';
const here = dirname(fileURLToPath(import.meta.url));
const args = process.argv.slice(2);
const target = args.find(a => !a.startsWith('--')) || '.';
const sarifPath = args.includes('--sarif') ? args[args.indexOf('--sarif') + 1] : null;
const useLock = !args.includes('--no-lock');
const asJson = args.includes('--json');
const writeBaseline = args.includes('--baseline-write');
const vdir = join(here, 'vaccines');
const REQUIRED_SECTIONS = ['Disease', 'Symptom', 'Antibody', 'Dose', 'Provenance'];
const FILENAME = /^(\d{12})-([a-z0-9]+(?:-[a-z0-9]+)*)\.md$/;
const DOSES = new Set(['every-loop', 'every-deploy', 'every-commit']);
const BANNED = /\b(fetch\s*\(|XMLHttpRequest|WebSocket|child_process|worker_threads|process\.env|import\s*\(|require\s*\(|eval\s*\(|Function\s*\()/;
function frontMatter(text) {
const m = text.match(/^---\n([\s\S]*?)\n---/);
if (!m) return null;
const meta = {};
for (const line of m[1].split('\n')) { const k = line.match(/^(\w+):\s*"?([^"#]*?)"?\s*(#.*)?$/); if (k) meta[k[1]] = k[2].trim(); }
return meta;
}
const sha256 = s => createHash('sha256').update(s).digest('hex');
// ---- 1. load and validate registry, fail closed ----
const files = readdirSync(vdir).filter(f => f.endsWith('.md')).sort();
const lock = useLock && existsSync(join(here, 'vaccines.lock')) ? JSON.parse(readFileSync(join(here, 'vaccines.lock'), 'utf8')) : null;
const registryErrors = [];
const vaccines = [];
let lastTs = 0;
for (const f of files) {
// Normalise CRLF on read. Every parse below (front matter, sections, the ```js block)
// is written against LF, so a Windows checkout otherwise fails the whole registry with
// "missing front matter" and cvaa cannot run on a developer machine at all. Normalising
// also keeps vaccines.lock hashes identical to a LF checkout, so the lock stays portable.
const text = readFileSync(join(vdir, f), 'utf8').split(String.fromCharCode(13, 10)).join(String.fromCharCode(10));
const fm = FILENAME.exec(f);
if (!fm) { registryErrors.push(`${f}: filename must be <12 digits>-<kebab-slug>.md`); continue; }
const ts = Number(fm[1]);
if (ts <= lastTs) registryErrors.push(`${f}: timestamp not strictly increasing`);
lastTs = ts;
const meta = frontMatter(text);
if (!meta) { registryErrors.push(`${f}: missing front matter`); continue; }
if (meta.vaccine !== fm[2]) registryErrors.push(`${f}: front matter vaccine "${meta.vaccine}" != slug "${fm[2]}"`);
if (meta.generation !== fm[1]) registryErrors.push(`${f}: front matter generation != filename timestamp`);
if (!DOSES.has(meta.dose)) registryErrors.push(`${f}: dose must be one of ${[...DOSES].join('|')}`);
for (const s of REQUIRED_SECTIONS) if (!new RegExp(`^${s}\\s*$`, 'm').test(text)) registryErrors.push(`${f}: missing section "${s}"`);
const code = text.match(/```js\n([\s\S]*?)\n```/)?.[1] || null;
if (!code) registryErrors.push(`${f}: no js antibody block`);
else { const bare = code.replace(/\/(?:\\.|[^\/\n])+\/[gimsuy]*/g, '').replace(/(['"`])(?:\\.|(?!\1)[^\\\n])*\1/g, ''); if (BANNED.test(bare)) registryErrors.push(`${f}: antibody uses a banned API (${bare.match(BANNED)[1]})`); }
if (lock) { const h = sha256(text); if (lock[f] !== h) registryErrors.push(`${f}: sha256 ${h.slice(0, 12)} not in vaccines.lock (run: node inoculate.mjs --lock)`); }
vaccines.push({ file: f, meta, code, text });
}
if (lock) for (const k of Object.keys(lock)) if (!files.includes(k)) registryErrors.push(`vaccines.lock names ${k} which is absent`);
if (args.includes('--lock')) {
const out = {}; for (const v of vaccines) out[v.file] = sha256(v.text);
writeFileSync(join(here, 'vaccines.lock'), JSON.stringify(out, null, 2) + '\n'); console.log('vaccines.lock written'); process.exit(0);
}
// supersession: skip superseded vaccines, error if successor missing
const byName = Object.fromEntries(vaccines.map(v => [v.meta.vaccine, v]));
for (const v of vaccines) if (v.meta.superseded_by && !byName[v.meta.superseded_by]) registryErrors.push(`${v.file}: superseded_by ${v.meta.superseded_by} does not exist`);
if (registryErrors.length) { console.error('REGISTRY INVALID (fail closed)\n' + registryErrors.map(e => ' - ' + e).join('\n')); process.exit(1); }
// ---- 2. build a data-only context of the target repo ----
function buildContext(root) {
const exists = p => existsSync(join(root, p));
const read = p => readFileSync(join(root, p), 'utf8');
const list = p => (exists(p) ? readdirSync(join(root, p)) : []);
const size = p => statSync(join(root, p)).size;
const sh = cmd => { try { return execSync(cmd, { cwd: root, stdio: 'pipe' }).toString().trim(); } catch { return null; } };
const scopes = list('scope-of-works').filter(f => /^\d{12}.*\.md$/.test(f)).sort().map(f => ({ file: f, ...(frontMatter(read(`scope-of-works/${f}`)) || {}) }));
const workflows = list('.github/workflows').filter(f => /\.ya?ml$/.test(f)).map(f => ({ file: f, text: read(`.github/workflows/${f}`) }));
// Reusable automation contracts are deliberately data, not executable probes.
// Antibodies can inspect these bounded JSON declarations without importing or
// running anything owned by the target repository.
const controlContracts = list('.cvaa/contracts').filter(f => /\.json$/.test(f)).sort().map(file => {
const path = `.cvaa/contracts/${file}`;
const bytes = size(path);
if (bytes > 65536) return { file, document: null, error: `contract is ${bytes} bytes; limit is 65536` };
try { return { file, document: JSON.parse(read(path)), error: null }; }
catch (error) { return { file, document: null, error: `invalid JSON: ${error.message}` }; }
});
// GPU reuse is opt-in. Snapshot declarations and local reference presence only;
// this does not observe whether an agent read them or contact remote runners.
const gpuReuse = (() => {
const path = '.cvaa/gpu-reuse.json';
const readmeHeader = exists('README.md') ? readFileSync(join(root, 'README.md')).subarray(0, 2048).toString('utf8') : '';
if (!exists(path)) return { present: false, readmeHeader };
let document;
try {
if (size(path) > 65536) throw new Error('metadata exceeds 65536 bytes');
document = JSON.parse(read(path));
} catch { return { present: true, readmeHeader, error: 'metadata must be valid JSON under 65536 bytes' }; }
const localFiles = {};
const refs = [
...(Array.isArray(document?.inventory_sources) ? document.inventory_sources : []),
...(Array.isArray(document?.implementations) ? document.implementations.flatMap(item => [item?.script, item?.receipt]) : []),
document?.runner_status?.source,
];
for (const ref of refs) {
if (typeof ref !== 'string' || !ref || ref.startsWith('/') || /[\\:#?]/.test(ref) || ref.split('/').some(part => !part || part === '.' || part === '..')) continue;
try { const info = statSync(join(root, ref)); localFiles[ref] = info.isFile() && info.size > 0; }
catch { localFiles[ref] = false; }
}
return { present: true, readmeHeader, document, localFiles };
})();
const pointerPath = ['atlas/current.json', 'current.json', 'releases/current.json'].find(exists) || null;
const pointer = pointerPath ? JSON.parse(read(pointerPath)) : null;
const rootDirs = readdirSync(root).filter(f => f !== '.git' && statSync(join(root, f)).isDirectory());
const config = exists('cvaa.json') ? JSON.parse(read('cvaa.json')) : {};
const shallowState = sh('git rev-parse --is-shallow-repository');
const gitAvailable = shallowState !== null;
const shallow = shallowState === 'true';
const commitCount = gitAvailable ? Number(sh('git rev-list --count HEAD') || 0) : 0;
// precompute anything that needs sh so the worker never gets a shell
const checksums = {};
if (pointer) { const dir = `atlas/releases/${pointer.release_id}`; checksums[dir] = exists(`${dir}/sha256sums.txt`) ? sh(`cd ${dir} && sha256sum -c sha256sums.txt --quiet && echo ok`) === 'ok' : null; }
const cartridgeHashes = {};
for (const c of pointer?.cartridges || []) if (exists(`atlas/${c.path}`)) cartridgeHashes[c.path] = { sha256: sha256(readFileSync(join(root, 'atlas', c.path))), size: size(`atlas/${c.path}`) };
/* Executing a script the TARGET owns, with cwd set to the target, is arbitrary
code execution from the repository under inspection - and cvaa exists to scan
repositories it has no particular reason to trust. Every antibody is sandboxed
(permission model, no fs, no network, 5 s cap, empty env); this one line ran
outside all of it. It also wrote: gridatlas's `state --stdout` silently ignored
the flag and took its normal path, which WRITES STATE.md, so a scan that
promised --no-write rewrote a file in the repository it was inspecting.
Off by default. --exec-target opts in; --no-write can never opt in. */
const execTarget = args.includes('--exec-target') && !args.includes('--no-write');
const stateFresh = execTarget && exists('STATE.md') && exists('tools/scope/loop.mjs')
? sh('node tools/scope/loop.mjs state --stdout') : null;
const files = { STATE: exists('STATE.md') ? read('STATE.md') : null, index: exists('index.html') ? read('index.html') : null };
/* A wafer estate (Quantum Star Protocol). quantum-star-protocol needs key and entanglement
counts, bounded source texts, the last engine-runs records, data-file field names and a
scan of publish/ for this PC's paths. All precomputed here; the antibody opens nothing. */
const star = exists('QUANTUM-STAR-PROTOCOL.md') ? (() => {
const j = p => { try { return JSON.parse(read(p)); } catch { return null; } };
const K = exists('keys.json') ? j('keys.json') : null, E = exists('entangle.json') ? j('entangle.json') : null;
const keys = K && Array.isArray(K.keys) ? { count: K.count, length: K.keys.length, max_key: K.max_key } : null;
const entangle = E ? { generated_utc: E.generated_utc ?? null, keys: E.keys, places: E.places, resolved: E.resolved, broken: E.broken, broken_keys: Array.isArray(E.broken_keys) ? E.broken_keys.length : -1, rate: E.rate } : null;
const sources = {};
const want = ['pilot-rules.js', 'supernova.html', 'console.html', 'serve.mjs', ...list('wafer').filter(f => /\.(m?js|html)$/.test(f)).map(f => `wafer/${f}`), ...list('pipeline').filter(f => /\.(m?js|py)$/.test(f)).map(f => `pipeline/${f}`)];
for (const p of want) if (exists(p) && size(p) <= 512 * 1024) sources[p] = read(p);
const engineRuns = exists('engine-runs.jsonl') ? read('engine-runs.jsonl').split('\n').filter(Boolean).slice(-500).map(l => { try { const r = JSON.parse(l); return { module: r.module, fn: r.fn, error: r.error ?? null, schema: r.schema ?? null }; } catch { return { module: '?', fn: '?', error: null, schema: null }; } }) : [];
const dataKeys = {}; for (const p of ['route-gridatlas.json', 'routes.json', 'engine-route.json', 'apps.json', 'qubit.json']) if (exists(p)) { const d = j(p); if (d && typeof d === 'object') dataKeys[p] = Object.keys(d); }
const publishLeaks = []; const walk = d => { for (const f of list(d)) { const p = `${d}/${f}`; if (statSync(join(root, p)).isDirectory()) walk(p); else if (size(p) <= 16 * 1024 * 1024 && /C:[\\/]Users/.test(readFileSync(join(root, p), 'latin1'))) publishLeaks.push(p); } };
if (exists('publish')) walk('publish');
// Conservation: every snapshot's MANIFEST.json re-hashed, the sleep file beside the estate, and the current counts the protocol's numbers lines must match.
const snapshots = list('versions').filter(s => exists(`versions/${s}/MANIFEST.json`)).sort().map(stamp => {
const m = j(`versions/${stamp}/MANIFEST.json`); const files = m && m.files && typeof m.files === 'object' ? Object.entries(m.files) : null;
if (!files) return { stamp, files: 0, missing: [], mismatched: [], unreadable: true };
const missing = [], mismatched = [];
for (const [rel, h] of files) { const p = `versions/${stamp}/${rel}`; if (!exists(p)) missing.push(rel); else if (sha256(readFileSync(join(root, p))) !== h) mismatched.push(rel); }
return { stamp, files: files.length, missing, mismatched, unreadable: false };
});
const parent = join(root, '..');
const sleepFiles = readdirSync(parent).filter(f => /^CPU-WORLD-SLEEP-.*\.md$/.test(f)).map(f => ({ file: f, mtime: statSync(join(parent, f)).mtime.toISOString(), text: readFileSync(join(parent, f), 'utf8') }));
const RG = exists('route-gridatlas.json') ? j('route-gridatlas.json') : null, ER = exists('engine-route.json') ? j('engine-route.json') : null;
const current = { keys: keys ? keys.count : null, places: entangle ? entangle.places : null, atlas_unique: RG && Array.isArray(RG.keys) ? RG.keys.length : null,
modules: ER && ER.modules ? Object.keys(ER.modules).length : null, modules_on_wafer: ER && ER.modules ? Object.values(ER.modules).filter(m => m && Array.isArray(m.keys) && m.keys.length).length : null };
return { keys, entangle, sources, engineRuns, dataKeys, publishLeaks, snapshots, sleepFiles, protocol: read('QUANTUM-STAR-PROTOCOL.md'), current };
})() : null;
/* Cells that compute (law L26, L27; Faraday entries 16 to 19). cells-compute-or-say-programmable needs the
last result of the proof, the text of the proof's own test, and every line on a served page that says the
dots compute. All precomputed here; the antibody opens nothing. */
const cells = (() => {
const j = p => { try { return JSON.parse(read(p)); } catch { return null; } };
const R = exists('apparatus/cells.result.json') ? j('apparatus/cells.result.json') : null;
const result = R ? { ran: R.ran ?? null, failed: R.failed, checks: Array.isArray(R.checks) ? R.checks.map(c => ({ name: String(c.name), pass: c.pass === true })) : [],
sums_checked: R.adder4?.sums_checked ?? null, wrong: R.adder4?.wrong ?? null } : null;
const test = exists('apparatus/cells.test.mjs') && size('apparatus/cells.test.mjs') <= 256 * 1024 ? read('apparatus/cells.test.mjs') : null;
const apparatus = exists('apparatus/cells.mjs') && size('apparatus/cells.mjs') <= 256 * 1024 ? read('apparatus/cells.mjs') : null;
// a served page claiming the dots compute: look in html at the root and one level down, bounded
const claims = []; const CLAIM = /\b(dots?|cells?|pixels?|particles?|kuiper|wafer)\b[^.\n<]{0,80}\b(computes?|calculates?|is a (cpu|computer|processor))\b/i;
const pages = [...list('.').filter(f => f.endsWith('.html')), ...list('.').filter(d => { try { return statSync(join(root, d)).isDirectory() && !d.startsWith('.'); } catch { return false; } })
.flatMap(d => list(d).filter(f => f.endsWith('.html')).map(f => `${d}/${f}`))].slice(0, 400);
for (const p of pages) { if (size(p) > 2 * 1024 * 1024) continue; const visible = read(p).replace(/<script[\s\S]*?<\/script>/gi, ' ').replace(/<style[\s\S]*?<\/style>/gi, ' ').replace(/<[^>]+>/g, ' ');
const m = visible.match(CLAIM); if (m) claims.push({ page: p, text: m[0].trim().slice(0, 120) }); }
return (result || test || apparatus || claims.length) ? { result, test, apparatus, claims } : null;
})();
// The live attestation, parsed. attestation-freshness used to infer freshness
// from commit prose because it had no way to read this; antibodies are sandboxed
// and see only what the context carries.
/* The record of rollback drills that were actually run. rollback-exercised used to
infer this from commit subjects, which is why a commit describing a rollback
design satisfied it. Antibodies are sandboxed, so the context must carry it. */
const rollbackDrills = exists('atlas/state/rollback-drills.json')
? (() => { try { return JSON.parse(read('atlas/state/rollback-drills.json')); } catch { return null; } })()
: null;
const liveSet = exists('atlas/state/live-set.json')
? (() => { try { return JSON.parse(read('atlas/state/live-set.json')); } catch { return null; } })()
: null;
/* What the session memory store claims to contain, parsed. memory-store-complete
compares it against the parquet files actually present; the alternative - counting
files, or reading a README - measures the store against itself and can never see a
session that was never converted at all. */
const memoryManifest = exists('logs/reports/memory-manifest.json')
? (() => { try { return JSON.parse(read('logs/reports/memory-manifest.json')); } catch { return null; } })()
: null;
/* The trillion loop (trillion-loop, doses D1 to D9). Nine defects that keep returning in
different costumes. Eight of them are answered from bounded source text; the ninth - a
machine path or an account name in a file bound for a public repository - is answered
HERE and as LOCATIONS ONLY, so neither this context nor any antibody output ever carries
the offending value and cvaa's own CI log stays safe to publish. The patterns name
nobody: they match the shape of a home directory, never a person. The antibody opens
nothing. */
const loops = (() => {
const SKIP = /(^|\/)(\.git|node_modules|__pycache__|\.venv|venv|\.tox|dist|build|vendor|coverage|\.mypy_cache|\.pytest_cache|\.next|target)$/;
const CODE = /\.(py|mjs|cjs|js|ts)$/;
const TEXT = /\.(md|txt|rst|ya?ml)$/;
const BINARY = /\.(png|jpe?g|gif|webp|svg|ico|pdf|zip|gz|tgz|tar|7z|woff2?|ttf|otf|eot|mp4|mp3|wav|wasm|pyc|exe|dll|so|dylib|parquet|duckdb|db|sqlite3?|pack|idx|bin|npy|npz)$/i;
const HOME_A = /[A-Za-z]:[\\/](?:Users|users|USERS|home|Home)[\\/][^\\/\r\n\s"'<>|)\]]+/;
const HOME_B = /(?:^|[\s"'(=:,[])\/(?:home|Users)\/[^\/\r\n\s"'<>|)\]]+\//;
const sources = {}; const leaks = [];
let scanned = 0, oversize = 0, budget = 4 * 1024 * 1024, files = 0, leakFiles = 0, truncated = false;
const walk = dir => {
let entries; try { entries = readdirSync(join(root, dir || '.')); } catch { return; }
for (const f of entries.sort()) {
const rel = dir ? `${dir}/${f}` : f;
if (SKIP.test(rel)) continue;
let st; try { st = statSync(join(root, rel)); } catch { continue; }
if (st.isDirectory()) { walk(rel); continue; }
files++;
if (files > 20000) { truncated = true; return; }
if (CODE.test(f) || TEXT.test(f)) {
if (st.size > 192 * 1024) oversize++;
else if (budget - st.size < 0) truncated = true;
else { try { sources[rel] = read(rel); budget -= st.size; scanned++; } catch { oversize++; } }
}
if (!BINARY.test(f) && st.size <= 8 * 1024 * 1024 && leaks.length < 300) {
let raw; try { raw = readFileSync(join(root, rel), 'latin1'); } catch { continue; }
if (!HOME_A.test(raw) && !HOME_B.test(raw)) continue;
leakFiles++;
const ls = raw.split('\n');
for (let i = 0; i < ls.length && leaks.length < 300; i++)
if (HOME_A.test(ls[i]) || HOME_B.test(ls[i])) leaks.push({ path: rel, line: i + 1 });
}
}
};
walk('');
return { sources, leaks, scanned, oversize, files, leakFiles, truncated };
})();
/* The Kuiper editions (kuiper-belt, NL-010, 1-2 November 2026): one dated folder per edition under editions/, the
pointer editions/index.html, a page whose KY_EDITION must equal the manifest's edition and every data file's, module
records whose reads/writes are literals, GREEN.md rows naming the manifest a release may ship, and git history
saying whether a folder changed after the pointer named it. All precomputed here; antibodies open nothing. */
const kuiper = (() => {
const EDS = 'editions';
if (!exists(EDS)) return null;
const j = p => { try { return JSON.parse(read(p)); } catch { return null; } };
const pointerText = exists(`${EDS}/index.html`) && size(`${EDS}/index.html`) <= 65536 ? read(`${EDS}/index.html`) : '';
const pointerStamps = [...pointerText.matchAll(/(?:url=|href="|replace\(')(\d{12})\//g)].map(m => m[1]);
const folders = list(EDS).filter(f => /^\d{12}$/.test(f) && statSync(join(root, EDS, f)).isDirectory()).sort();
const editions = folders.map(stamp => {
const d = `${EDS}/${stamp}`;
const page = exists(`${d}/index.html`) && size(`${d}/index.html`) <= 4 * 1024 * 1024 ? read(`${d}/index.html`) : '';
const kyEdition = (page.match(/const KY_EDITION = '(\d{12})'/) || [])[1] || null;
const mp = `${d}/modules.json`;
const manifest = exists(mp) && size(mp) <= 4 * 1024 * 1024 ? j(mp) : null;
const manifestSha = exists(mp) ? sha256(readFileSync(join(root, mp))) : null;
const records = manifest && Array.isArray(manifest.modules) ? manifest.modules.filter(r => r && typeof r === 'object')
.map(r => ({ id: String(r.id), reads: Array.isArray(r.reads) ? r.reads.map(String) : [], writes: Array.isArray(r.writes) ? r.writes.map(String) : [] })) : [];
const dataStamps = list(`${d}/data`).filter(f => f.endsWith('.json')).sort().map(f => {
const o = size(`${d}/data/${f}`) <= 16 * 1024 * 1024 ? j(`${d}/data/${f}`) : null;
return { file: `data/${f}`, edition: o && typeof o === 'object' && o.edition != null ? String(o.edition) : null };
});
const greenPath = [`${d}/GREEN.md`, `${d}/handoff/10-integration/GREEN.md`].find(exists) || null;
const greenHashes = greenPath && size(greenPath) <= 1024 * 1024 ? [...read(greenPath).matchAll(/`([0-9a-f]{12,64})/g)].map(m => m[1]) : [];
let release = null; // the first commit whose pointer named this folder, and every later commit that touched it
if (gitAvailable && !shallow) {
const first = (sh(`git log --format=%H --reverse -S"url=${stamp}/" -- ${EDS}/index.html`) || '').split('\n')[0];
if (first) { const later = sh(`git log --format=%h%x09%s ${first}..HEAD -- ${d}`) || ''; release = { commit: first.slice(0, 7), later: later ? later.split('\n').map(l => l.split('\t')) : [] }; }
}
return { stamp, kyEdition, manifestEdition: manifest && manifest.edition != null ? String(manifest.edition) : null, manifestSha, records, dataStamps,
green: greenPath ? { path: greenPath, hashes: greenHashes } : null, release };
});
return { pointerStamps, editions };
})();
/* K1, the not-public names (kuiper-belt tools/check_proof.py leaks(), LINK-RULE.md 5). The digests come from the
target's own list; every token of every tracked text file is hashed as leaks() hashes it (whole, without trailing
dots, after its last slash, lower-cased, sha256 cut to 24 hex). LOCATIONS ONLY leave this builder: neither the
context nor any finding carries a matched token. */
const k1 = (() => {
let digests = null, source = null;
if (exists('.cvaa/not-public.digests')) { source = '.cvaa/not-public.digests'; digests = new Set(read(source).split('\n').map(s => s.trim()).filter(s => /^[0-9a-f]{24}$/.test(s))); }
else if (exists('tools/check_proof.py')) { const m = read('tools/check_proof.py').match(/NOT_PUBLIC\s*=\s*\{([\s\S]*?)\}/); if (m) { source = 'tools/check_proof.py'; digests = new Set([...m[1].matchAll(/'([0-9a-f]{24})'/g)].map(x => x[1])); } }
if (!digests || !digests.size) return null;
const BINARY = /\.(png|jpe?g|gif|webp|ico|pdf|zip|gz|tgz|tar|7z|woff2?|ttf|otf|eot|mp4|mp3|wav|wasm|pyc|exe|dll|so|dylib|parquet|duckdb|db|sqlite3?|pack|idx|bin|npy|npz)$/i;
const SKIP = /(^|\/)(\.git|node_modules|__pycache__)(\/|$)/;
let files = gitAvailable ? (sh('git ls-files -z') || '').split('\0').filter(Boolean) : null;
if (!files) { files = []; const walk = dir => { for (const f of list(dir || '.')) { const rel = dir ? `${dir}/${f}` : f; if (SKIP.test(rel)) continue; try { statSync(join(root, rel)).isDirectory() ? walk(rel) : files.push(rel); } catch {} } }; walk(''); }
const memo = new Map();
const hit = tok => { if (memo.has(tok)) return memo.get(tok); let r = false; for (const t of new Set([tok, tok.replace(/\.+$/, ''), tok.slice(tok.lastIndexOf('/') + 1)])) if (digests.has(sha256(t.toLowerCase()).slice(0, 24))) { r = true; break; } memo.set(tok, r); return r; };
const hits = []; let scanned = 0, skipped = [];
for (const rel of files) {
if (BINARY.test(rel) || SKIP.test(rel)) continue;
let st; try { st = statSync(join(root, rel)); } catch { continue; }
if (!st.isFile()) continue;
if (st.size > 8 * 1024 * 1024) { skipped.push(rel); continue; }
const lines = readFileSync(join(root, rel), 'utf8').split('\n'); scanned++;
for (let i = 0; i < lines.length && hits.length < 200; i++) { let found = false; for (const tok of new Set(lines[i].match(/[A-Za-z0-9_][A-Za-z0-9_.-]*/g) || [])) if (hit(tok)) { found = true; break; } if (found) hits.push({ path: rel, line: i + 1 }); }
}
return { source, digests: digests.size, scanned, skipped, hits };
})();
/* The posting flag (neural-link PROTOCOL.md, LINK-RULE.md 1): a gh api comment post whose body flag is lower-case
sends the literal text "@file". Lines in text and script sources that carry the lower-case form and not the
upper-case one, as locations. */
const postFlag = (() => {
const LOWER = /\bgh api\b[^\n]*\s-f\s+body=@/, UPPER = /\s-F\s+body=@/;
const out = []; const sources = { ...loops.sources };
const SKIP = /(^|\/)(\.git|node_modules|__pycache__|\.venv|venv|dist|build|vendor)(\/|$)/;
const walk = dir => { for (const f of list(dir || '.')) { const rel = dir ? `${dir}/${f}` : f; if (SKIP.test(rel)) continue; let st; try { st = statSync(join(root, rel)); } catch { continue; } if (st.isDirectory()) walk(rel); else if (/\.(sh|bash|cjs|mjs)$/.test(f) && st.size <= 192 * 1024 && !(rel in sources)) { try { sources[rel] = read(rel); } catch {} } } };
walk('');
for (const [rel, text] of Object.entries(sources)) { const ls = text.split('\n'); for (let i = 0; i < ls.length && out.length < 200; i++) if (LOWER.test(ls[i]) && !UPPER.test(ls[i])) out.push({ path: rel, line: i + 1 }); }
return out;
})();
/* Multi-agent session records (neural-link SESSIONS/<session>/, owner-filed vaccines 202612060144 to
202612060153). The repo-wide text budget in `loops` is spent long before SESSIONS/ in a large link
repository, so the session records get their own bounded read: the Markdown files of each session folder
and of its CARRY/OUTBOX-SNAPSHOT/ and outbox/ folders, 192 KB a file, 4 MB in all. */
const sessions = (() => {
if (!exists('SESSIONS')) return null;
const sources = {}; let budget = 4 * 1024 * 1024, truncated = false;
for (const s of list('SESSIONS').sort()) {
for (const sub of ['', '/CARRY/OUTBOX-SNAPSHOT', '/outbox']) {
const d = `SESSIONS/${s}${sub}`;
let isDir = false; try { isDir = statSync(join(root, d)).isDirectory(); } catch {}
if (!isDir) continue;
for (const f of list(d).sort()) {
if (!f.endsWith('.md')) continue;
const p = `${d}/${f}`; let st; try { st = statSync(join(root, p)); } catch { continue; }
if (!st.isFile() || st.size > 192 * 1024) continue;
if (budget - st.size < 0) { truncated = true; continue; }
try { sources[p] = read(p); budget -= st.size; } catch {}
}
}
}
return { sources, truncated };
})();
const commits = (sh("git log --format=%H%x09%an%x09%aI%x09%s -200") || "").split("\n").filter(Boolean).map(l => { const [sha, author, date, subject] = l.split("\t"); return { sha, author, date, subject, generation: (subject.match(/^(\d{12})/) || [])[1] || null, bot: /noreply|bot|\[bot\]/.test(author + (sh(`git log -1 --format=%ae ${sha}`) || "")) }; });
const registry = vaccines.map(v => ({ file: v.file, ...v.meta, code: v.code }));
return { scopes, workflows, controlContracts, gpuReuse, pointer, pointerPath, liveSet, rollbackDrills, memoryManifest, rootDirs, config, checksums, cartridgeHashes, stateFresh, files, star, cells, loops, kuiper, k1, postFlag, sessions, registry, commits, shallow, gitAvailable, commitCount, exists: null };
}
const ctx = buildContext(target);
const existsList = new Set(); // antibodies get an exists() built from a snapshot, not the fs
const snapshot = (function walk(dir, prefix = '') { for (const f of readdirSync(dir)) { if (f === '.git' || f === 'node_modules') continue; const p = join(dir, f); const rel = prefix + f; existsList.add(rel); if (statSync(p).isDirectory()) walk(p, rel + '/'); } return existsList; })(target);
ctx.paths = [...snapshot];
// ---- 3. run each antibody in a child process: Node permission model (no fs, no child_process),
// inside a network namespace when unshare is available (no sockets), 5 s cap, empty env ----
import { spawn, spawnSync } from 'node:child_process';
const RUNNER = join(here, 'tools', 'antibody-runner.mjs');
const HAVE_UNSHARE = spawnSync('unshare', ['-rnp', '--fork', 'true'], { stdio: 'ignore' }).status === 0;
if (!HAVE_UNSHARE) console.warn('warning: unshare -rn unavailable; antibodies run without a network namespace');
// Node renamed --experimental-permission to --permission in v23. Probe, never assume: an
// unaccepted flag kills every child before it runs, which used to surface as
// "antibody produced no result" on every vaccine and read as a diseased repo.
const PERM_FLAG = ['--permission', '--experimental-permission'].find(f =>
spawnSync(process.execPath, [f, '--allow-fs-read=*', '-e', '0'], { stdio: 'ignore' }).status === 0);
if (!PERM_FLAG) { console.error(`fatal: ${process.version} accepts neither --permission nor --experimental-permission; antibodies cannot be sandboxed`); process.exit(2); }
function runAntibody(v) {
return new Promise(resolve => {
const nodeArgs = [PERM_FLAG, `--allow-fs-read=${RUNNER}`, '--no-warnings', RUNNER];
const child = HAVE_UNSHARE ? spawn('unshare', ['-rnp', '--fork', process.execPath, ...nodeArgs], { env: {}, stdio: ['pipe', 'pipe', 'pipe'] })
: spawn(process.execPath, nodeArgs, { env: {}, stdio: ['pipe', 'pipe', 'pipe'] });
let out = '', err = ''; child.stdout.on('data', d => out += d); child.stderr.on('data', d => err += d);
const t = setTimeout(() => { child.kill('SIGKILL'); resolve({ ok: false, e: 'antibody timed out (5 s)' }); }, 5000);
child.on('error', e => { clearTimeout(t); resolve({ ok: false, fatal: true, e: `antibody runner could not spawn: ${e.message}` }); });
child.on('close', code => {
clearTimeout(t);
try { return resolve(JSON.parse(out)); } catch {}
// A non-zero exit with empty stdout is the runner failing to start, not the antibody
// reporting. Different diseases; say which one, and never dress the first as a finding.
if (!out.trim()) return resolve({ ok: false, fatal: code !== 0, e: code !== 0
? `antibody runner exited ${code} before running: ${err.trim().slice(0, 160) || 'no stderr'}`
: 'antibody produced no result' });
resolve({ ok: false, e: `antibody returned unparseable output: ${out.trim().slice(0, 120)}` });
});
child.stdin.end(JSON.stringify({ code: v.code, ctx: { ...ctx, paths: ctx.paths } }));
});
}
const results = [];
let findings = 0;
for (const v of vaccines) {
if (v.meta.superseded_by) { console.log(`skip ${v.meta.vaccine} (superseded by ${v.meta.superseded_by})`); continue; }
const grand = ctx.config.allow?.find(a => a.vaccine === v.meta.vaccine);
const res = await runAntibody(v);
if (res.fatal) { console.error(`fatal: ${res.e}`); console.error(' every vaccine would report this. Refusing to emit findings from a runner that never ran.'); process.exit(2); }
/* An antibody that cannot evaluate its question must not answer it. Before this,
any non-array return was coerced to [] by the runner and printed as `immune`,
so a rule that never ran reported the same word as a rule that passed. */
const skipped = res.ok && res.skip ? res.skip : null;
const list = skipped ? [] : (res.ok ? res.r : [`antibody failed: ${res.e}`]);
const intrinsicLevel = v.meta.level === 'warning' ? 'warning' : 'error';
let level = intrinsicLevel;
if (grand && res.ok) {
if (grand.expires && Date.parse(grand.expires) < Date.now()) list.push(`allowlist for ${v.meta.vaccine} expired ${grand.expires}`);
else if (list.length <= grand.max) level = 'warning';
}
if (list.length && level === 'error') findings += list.length;
results.push({ v, list, level, intrinsicLevel, skipped });
console.log(`${list.length ? (level === 'error' ? 'FAIL ' : 'WARN ') : (skipped ? 'skip ' : 'immune')} ${v.meta.vaccine}${grand ? ` (baseline ${grand.max})` : ''}`);
if (skipped) console.log(` - not evaluated: ${skipped}`);
for (const r of list) console.log(` - ${r}`);
}
// ---- 3b. last_fired sidecar (never touches vaccine files, so the lock stays stable) ----
const lfPath = join(here, 'vaccines', 'last-fired.json');
const headSha = (() => { try { return execSync('git rev-parse HEAD', { cwd: target, stdio: 'pipe' }).toString().trim(); } catch { return null; } })();
if (headSha && !args.includes('--no-write')) {
const lf = existsSync(lfPath) ? JSON.parse(readFileSync(lfPath, 'utf8')) : {};
for (const r of results) if (r.list.length) lf[r.v.meta.vaccine] = { sha: headSha, at: new Date().toISOString() };
writeFileSync(lfPath, JSON.stringify(lf, null, 2) + '\n');
}
// ---- 4. reporting: SARIF + job summary ----
if (sarifPath) {
const sarif = { $schema: 'https://json.schemastore.org/sarif-2.1.0.json', version: '2.1.0', runs: [{ tool: { driver: { name: 'cvaa', rules: results.map(r => ({ id: r.v.meta.vaccine, shortDescription: { text: r.v.text.match(/Disease\n([^\n]+)/)?.[1] || r.v.meta.vaccine } })) } },
results: results.flatMap(r => r.list.map(msg => ({ ruleId: r.v.meta.vaccine, level: r.level, message: { text: msg }, locations: [{ physicalLocation: { artifactLocation: { uri: (msg.match(/[\w./-]+\.(ya?ml|json|md|js|mjs|html)/) || ['README.md'])[0] }, region: { startLine: 1 } } }] }))) }] };
writeFileSync(sarifPath, JSON.stringify(sarif, null, 2));
}
if (process.env.GITHUB_STEP_SUMMARY) {
const rows = results.map(r => `| ${r.v.meta.vaccine} | ${r.list.length ? (r.level === 'error' ? 'FAIL' : 'WARN') : 'immune'} | ${r.list.length} |`).join('\n');
appendFileSync(process.env.GITHUB_STEP_SUMMARY, `## cvaa\n\n| vaccine | state | findings |\n|---|---|---|\n${rows}\n`);
}
let baseline = { written: false, path: null, expires: null, managed: [], blocked: [] };
if (writeBaseline) {
const history = results.find(r => r.v.meta.vaccine === 'full-history-checkout');
if (!ctx.gitAvailable || ctx.shallow || history?.list.length) {
console.error('baseline refused: full repository history is required and full-history-checkout must be immune');
process.exit(1);
}
const neverBaseline = new Set(['registry-integrity', 'no-dangerous-apis', 'full-history-checkout']);
const blocked = results.filter(r => r.list.length && r.intrinsicLevel === 'error' && neverBaseline.has(r.v.meta.vaccine));
if (blocked.length) {
baseline.blocked = blocked.map(r => ({ vaccine: r.v.meta.vaccine, findings: r.list.length }));
console.error('baseline refused: fail-closed registry findings must be fixed, not grandfathered');
for (const item of baseline.blocked) console.error(` - ${item.vaccine}: ${item.findings}`);
process.exit(1);
}
const expiry = new Date(Date.now() + 30 * 864e5).toISOString().slice(0, 10);
const configPath = join(target, 'cvaa.json');
const config = existsSync(configPath) ? JSON.parse(readFileSync(configPath, 'utf8')) : {};
const existing = Array.isArray(config.allow) ? config.allow.map(item => ({ ...item })) : [];
const byVaccine = new Map(existing.map(item => [item.vaccine, item]));
const resultByVaccine = new Map(results.map(r => [r.v.meta.vaccine, r]));
for (const [name, item] of [...byVaccine]) {
const result = resultByVaccine.get(name);
if (!result) continue;
if (item.expires && Date.parse(item.expires) < Date.now() && result.list.length) {
console.error(`baseline refused: ${name} expired ${item.expires}; remediation or explicit review is required`);
process.exit(1);
}
if (result.list.length > Number(item.max)) {
console.error(`baseline refused: ${name} grew from ${item.max} to ${result.list.length}; ratchets never widen`);
process.exit(1);
}
if (!result.list.length) byVaccine.delete(name);
else item.max = result.list.length;
}
for (const result of results) {
if (!result.list.length || result.intrinsicLevel !== 'error') continue;
const name = result.v.meta.vaccine;
if (!byVaccine.has(name)) byVaccine.set(name, { vaccine: name, max: result.list.length, expires: expiry });
}
const legacy = ctx.workflows.filter(w => /^\d{12}-/.test(w.file)).length;
if (Number.isInteger(config.legacy_workflows) && legacy > config.legacy_workflows) {
console.error(`baseline refused: legacy_workflows grew from ${config.legacy_workflows} to ${legacy}; ratchets never widen`);
process.exit(1);
}
config.legacy_workflows = legacy;
config.allow = [...byVaccine.values()].sort((a, b) => String(a.vaccine).localeCompare(String(b.vaccine)));
const tmp = `${configPath}.tmp-${process.pid}`;
writeFileSync(tmp, JSON.stringify(config, null, 2) + '\n');
renameSync(tmp, configPath);
baseline = { written: true, path: configPath, expires: expiry, managed: config.allow.map(item => item.vaccine), blocked: [] };
console.log(`cvaa.json written: ${config.allow.length} dated ratchets; new entries expire ${expiry}; existing policy preserved`);
}
if (asJson) console.log(JSON.stringify({
schema: 'cvaa.run.v1',
target,
status: findings ? (baseline.written ? 'baselined' : 'not-immune') : 'immune',
shallow: ctx.shallow,
context: { git_available: ctx.gitAvailable, commit_count: ctx.commitCount, workflows: ctx.workflows.length, scopes: ctx.scopes.length },
findings,
baseline,
results: results.map(r => ({ vaccine: r.v.meta.vaccine, intrinsic_level: r.intrinsicLevel, level: r.level, state: r.list.length ? (r.level === 'error' ? 'fail' : 'warn') : (r.skipped ? 'skipped' : 'immune'), skipped: r.skipped || null, findings: r.list }))
}));
const skipCount = results.filter(r => r.skipped).length;
/* Immunity is a claim about rules that ran. Saying `immune to all vaccines on file`
while some were never evaluated is the false pass this repository exists to stop. */
console.log(findings ? (baseline.written ? '\nbaseline written; rerun cvaa to prove the dated warnings' : `\n${findings} finding(s); repo is not immune`)
: (skipCount ? `\nno findings, but ${skipCount} rule(s) were not evaluated; immunity is not established`
: '\nrepo is immune to all vaccines on file'));
process.exit(baseline.written ? 0 : findings ? 1 : 0);Log
A style sheet in the assets folder of Cyber Resilience.
rendercyber-resilience / assets/log.css · lines 1–11 of 11 · Entry point
- What it does
- Side effects: changes the web page (DOM).
- Downstream impact
- Used directly by 3 files: 2026 11 13 Concentration Risk (cyber-resilience); 2026 11 14 Cloud Sovereignty Recognition (cyber-resilience); Cyber Resilience — Index Page (cyber-resilience). Reached from 4 other entry points, including Build Homepage Release Candidate Workflow (globalgrid2050-homepage); PR Checks Workflow (globalgrid2050-homepage); Pages Workflow (globalgrid2050-homepage).
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name. Described from its file name only (a candidate, not yet checked against the code).
- Why it matters
- Loaded by the 2026 11 13 Concentration Risk page and 2 other pages.
- Application
- cyber-resilience · assets · style sheet
- Uses
- none found
- Used by
- loaded by 2026 11 13 Concentration Risk (stylesheet), loaded by 2026 11 14 Cloud Sovereignty Recognition (stylesheet), loaded by Cyber Resilience — Index Page (stylesheet)
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cyber-resilience@cb43f0b5ec7c2374b438c528facdfe6defdadc08 assets/log.css:1-11 · blob 57e4c828806cc74fd2fb890fc129c3ebb1b2fe6f · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: unknown · users: none · canonical: unknown
:root{color-scheme:dark;--bg:#000;--fg:#fff;--muted:#b4b4b4;--line:#333;--blue:#66ccff;--cyan:#00ffff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace}
a{color:var(--blue);text-decoration-thickness:1px;text-underline-offset:3px}a:hover{color:var(--cyan)}a:focus-visible,summary:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}
.wrap{width:min(920px,calc(100% - 48px));margin:0 auto}.masthead{border-bottom:1px solid var(--line);padding:30px 0 35px}.masthead .eyebrow,.kicker{color:var(--cyan);text-transform:uppercase;letter-spacing:.13em;font-size:.76rem}.brand{font-size:1rem;letter-spacing:.09em;color:var(--blue);text-decoration:none}.masthead h1{font-size:clamp(2rem,6vw,3.7rem);line-height:1.12;font-weight:500;margin:28p … [line shortened here: 495 characters; full line on GitHub]
.nav{display:flex;flex-wrap:wrap;gap:14px 24px;margin-top:26px;font-size:.88rem}.nav a{text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:4px}
main{padding:44px 0 66px}h2{font-size:1.48rem;line-height:1.3;font-weight:500;margin:0 0 16px}h3{font-size:1.1rem;font-weight:500}p{margin:0 0 20px}section{margin:0 0 46px}.entry{padding:25px 0 26px;border-top:1px solid var(--line)}.entry:last-child{border-bottom:1px solid var(--line)}.date{font-size:.85rem;color:var(--cyan)}.entry h3{font-size:1.33rem;margin:6px 0 12px}.entry h3 a{text-decoration … [line shortened here: 445 characters; full line on GitHub]
.pill{font-size:.7rem;border:1px solid var(--line);padding:3px 9px;text-transform:uppercase;letter-spacing:.03em;margin-left:10px;color:var(--muted)}
.prose{max-width:790px}.prose p{margin-bottom:24px}.prose ul,.prose ol{padding-left:24px}.prose li{margin-bottom:12px}.facts{width:100%;border-collapse:collapse;margin:18px 0 28px;font-size:.9rem}.facts th,.facts td{border-bottom:1px solid var(--line);padding:15px 12px 15px 0;vertical-align:top;text-align:left}.facts th{color:var(--blue);font-weight:500;width:30%}
.breadcrumb{font-size:.83rem;color:var(--muted);padding:20px 0;border-bottom:1px solid var(--line)}.article-head{padding:36px 0 22px}.article-head h1{font-size:clamp(1.75rem,5vw,2.75rem);line-height:1.19;font-weight:500;letter-spacing:-.025em}.article-head .date{margin-bottom:14px}
.callout{border-left:2px solid var(--cyan);padding:2px 0 2px 18px;color:var(--muted);margin:22px 0 32px}footer{border-top:1px solid var(--line);padding:22px 0 40px;font-size:.78rem;color:var(--muted)}
@media(max-width:620px){body{font-size:14px}.wrap{width:min(920px,calc(100% - 36px))}.facts,.facts tbody,.facts tr,.facts th,.facts td{display:block;width:100%}.facts th{border:0;padding-bottom:0}.facts td{padding-top:2px}.pill{display:inline-block;margin:8px 0 0}}2026 11 13 Concentration Risk
A web page in the entries folder of Cyber Resilience.
rendercyber-resilience / entries/2026-11-13-concentration-risk.html · lines 1–37 of 37 · Entry point
- What it does
- It draws its content. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- README: "Complete fact-check and sources remain in `research/2026-11-13-concentration-risk.md`."
- Inputs & outputs
- Out: web page.
- Downstream impact
- Used directly by 2 files: 2026 11 14 Cloud Sovereignty Recognition (cyber-resilience); Cyber Resilience — Index Page (cyber-resilience). Reached from 4 other entry points, including Build Homepage Release Candidate Workflow (globalgrid2050-homepage); PR Checks Workflow (globalgrid2050-homepage); Pages Workflow (globalgrid2050-homepage).
- What it achieves
- 13 November 2026: fact-checked research on Google Cloud, Binance and Microsoft incidents and reducing single-provider dependencies.
- Why it matters
- Loaded by the 2026 11 14 Cloud Sovereignty Recognition page and 1 other page.
- Application
- cyber-resilience · entries · page
- Uses
- Log (stylesheet), Cyber Resilience — Index Page (link)
- Used by
- linked from 2026 11 14 Cloud Sovereignty Recognition (link), linked from Cyber Resilience — Index Page (link)
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cyber-resilience@cb43f0b5ec7c2374b438c528facdfe6defdadc08 entries/2026-11-13-concentration-risk.html:1-37 · blob 7d81ddae15c752950dfadc8862644251feb70f4b · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: unknown · users: none · canonical: unknown
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="13 November 2026: fact-checked research on Google Cloud, Binance and Microsoft incidents and reducing single-provider dependencies.">
<title>Concentration risk — Cyber Resilience Log</title><link rel="stylesheet" href="../assets/log.css"></head><body>
<header><div class="wrap breadcrumb"><a href="../">← Cyber Resilience Log</a> · GLOBALGRID2050</div></header>
<main class="wrap prose"><div class="article-head"><div class="date"><time datetime="2026-11-13">13 November 2026</time> · Research note</div>
<h1>Cloud outages, the Binance theft and the case for distributed resilience</h1></div>
<section aria-labelledby="argument"><h2 id="argument">The argument</h2>
<p>First Google Cloud's London-region outage disrupted major UK banking services, and now a Microsoft 365 outage has affected organisations worldwide. In between came the largest cryptocurrency theft reported to date: approximately $6.3 billion stolen from Binance, with a compromised DevOps engineer's laptop identified in Binance's preliminary investigation. The incidents had different causes, but … [line shortened here: 462 characters; full line on GitHub]
<p>This is why open-source tools need to replace critical closed dependencies wherever practical, with genuine portability, independent recovery and proper security oversight.</p>
<p>Linus Torvalds, a Finnish 🇫🇮 software developer, created the Linux kernel and later Git. Git uses distributed version control, so a central machine does not have to hold the only copy of a project's history. Computers can work in isolation, commit changes locally, and compare the integrity of histories exchanged with other computers. Git is free to learn and use, and software designed for offli … [line shortened here: 464 characters; full line on GitHub]
<p>AI is heading the same way as enterprise email and video calls: a few major providers, operating across a few major clouds. Claude is offered through Amazon, Google and Microsoft cloud platforms. OpenAI remains closely tied to Microsoft, although its 2026 agreement also permits service across other cloud providers. Meanwhile, the UK's Competition and Markets Authority is examining Microsoft's b … [line shortened here: 489 characters; full line on GitHub]
<p>There's a familiar fix. Just as special-purpose vehicles are used to ring-fence project liabilities, critical digital services should isolate their failure domains. R&D and key procurement should be spread beyond the largest firms, with proper oversight, independently usable alternatives and tested recovery arrangements, so one provider's failure stays contained.</p>
</section>
<section aria-labelledby="facts"><h2 id="facts">Evidence and limitations</h2>
<table class="facts"><tbody>
<tr><th scope="row">20 October 2026 · Google Cloud</th><td>A London-region availability-zone power and control-system failure disrupted dependent services, including UK banking. An infrastructure outage, not evidence of a cyberattack. <a href="https://status.cloud.google.com/incidents/Xs2XTHzAVC9YnafnPyzj">Google incident report</a>.</td></tr>
<tr><th scope="row">29 October 2026 · Binance</th><td>The FBI attributed more than US$6 billion in stolen cryptocurrency to North Korean operators. Binance preliminarily identified a compromised DevOps laptop as a possible route; forensic certainty is limited. <a href="https://www.fbi.gov/investigate/cyber/alerts/2026/north-korea-responsible-for-6-billion-binance-attack/layout_view">FBI alert</a>. … [line shortened here: 410 characters; full line on GitHub]
<tr><th scope="row">12–13 November 2026 · Microsoft</th><td>A Microsoft 365 disruption affected Outlook, Teams, Copilot and connected services internationally. Microsoft reported no indication of malicious activity. <a href="https://www.reuters.com/technology/microsoft-365-outlook-down-thousands-us-users-downdetector-shows-2026-11-12/">Reuters reporting</a>.</td></tr>
<tr><th scope="row">Competition and suppliers</th><td>The CMA's Microsoft business-software investigation was ongoing, with a proposed strategic market status decision, not a final finding. <a href="https://www.gov.uk/cma-cases/microsofts-business-software-ecosystem">CMA case</a>.</td></tr>
<tr><th scope="row">Git and local operation</th><td>Git's distributed, content-hashed history supports offline working and integrity comparisons; it does not automatically establish identity or trusted provenance. <a href="https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control">Git documentation</a>.</td></tr>
</tbody></table>
<p class="callout">These incidents are not all cyberattacks, and open-source software is not inherently more secure. The relevant common principle is failure containment, portable workloads, independently verified backups and recoverable operations.</p>
</section>
<section aria-labelledby="principles"><h2 id="principles">Practical resilience principles</h2>
<ol><li>Model the loss of a provider, region, identity system and network connection, then rehearse restoration.</li>
<li>Maintain independent, recoverable source code, configuration, offline procedures and backups.</li>
<li>Keep mirrors and recovery credentials outside the same control plane.</li>
<li>Use inspectable, open standards where appropriate without assuming open source itself guarantees safety.</li>
<li>Verify provenance with trusted signatures, reviewed changes and reproducible builds.</li>
<li>Spread material procurement and R&D dependencies, with explicit supplier exit plans.</li>
<li>Distinguish operational outages from malicious compromise when designing controls.</li></ol></section>
<section aria-labelledby="record"><h2 id="record">Full research record</h2>
<p>The companion research note includes the underlying case-by-case table, chronological record and 14 source references. <a href="https://github.com/Ventusltd/cyber-resilience/blob/main/research/2026-11-13-concentration-risk.md">Read the full evidence and source list</a>.</p>
<p>Version history and corrections are recorded in <a href="https://github.com/Ventusltd/cyber-resilience">the public Git repository</a>.</p></section></main>
<footer><div class="wrap">Funded by VENTUS LTD · General technical documentation and research. Claims are dated 13 November 2026.</div></footer>
</body></html>2026 11 14 Cloud Sovereignty Recognition
A web page in the entries folder of Cyber Resilience.
rendercyber-resilience / entries/2026-11-14-cloud-sovereignty-recognition.html · lines 1–20 of 20 · Entry point
- What it does
- It draws its content. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- README: "14 November 2026, external reading: https://ventusltd.github.io/cyber-resilience/entries/2026-11-14-cloud-sovereignty-recognition.html (links to the Compare the Cloud article on UK recognition under the EU cloud sovereignty levels)"
- Inputs & outputs
- Out: web page.
- Downstream impact
- Used directly by 1 file: Cyber Resilience — Index Page (cyber-resilience). Reached from 5 other entry points, including Build Homepage Release Candidate Workflow (globalgrid2050-homepage); PR Checks Workflow (globalgrid2050-homepage); Pages Workflow (globalgrid2050-homepage).
- What it achieves
- 14 November 2026: external reading on UK recognition under the EU.
- Why it matters
- Loaded by the Cyber Resilience page.
- Application
- cyber-resilience · entries · page
- Uses
- Log (stylesheet), Cyber Resilience — Index Page (link), 2026 11 13 Concentration Risk (link)
- Used by
- linked from Cyber Resilience — Index Page (link)
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cyber-resilience@cb43f0b5ec7c2374b438c528facdfe6defdadc08 entries/2026-11-14-cloud-sovereignty-recognition.html:1-20 · blob 694cd9258e7d5a473e6f01ec22dc99fc7620d762 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: unknown · users: none · canonical: unknown
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="14 November 2026: external reading on UK recognition under the EU's proposed cloud sovereignty levels, and why it matters for provider concentration and data-centre demand.">
<title>Cloud sovereignty levels and UK recognition — Cyber Resilience Log</title><link rel="stylesheet" href="../assets/log.css"></head><body>
<header><div class="wrap breadcrumb"><a href="../">← Cyber Resilience Log</a> · GLOBALGRID2050</div></header>
<main class="wrap prose"><div class="article-head"><div class="date"><time datetime="2026-11-14">14 November 2026</time> · External reading</div>
<h1>Cloud sovereignty levels and the case for early UK recognition</h1></div>
<section aria-labelledby="reading"><h2 id="reading">The article</h2>
<p><a href="https://www.comparethecloud.net/futurism/britain-should-seek-recognition-under-europes-cloud-sovereignty-levels-before-the-rules-settle">Britain should seek recognition under Europe's cloud sovereignty levels before the rules settle</a> — Kate Bennett, Compare the Cloud, 8 November 2026. Opinion article.</p>
<p>The author argues that the UK should ask now to be treated as an associated third country under the EU's proposed Cloud and AI Development Act, so that UK-controlled cloud providers could be assessed for the higher assurance levels of the EU's sovereignty framework while the text is still being drafted. The piece sets out objections as well, including how far EU scrutiny of UK law would reach a … [line shortened here: 454 characters; full line on GitHub]
</section>
<section aria-labelledby="why"><h2 id="why">Why it is logged here</h2>
<p>This log records single-provider dependency in critical systems. Sovereignty tiers are one of the ways governments are responding to that dependency: they decide which providers may host which workloads, and so where data centres, and the grid capacity behind them, are built. The <a href="./2026-11-13-concentration-risk.html">13 November entry</a> describes the outages and concentration that pr … [line shortened here: 420 characters; full line on GitHub]
<p class="callout">This entry is a pointer to an external opinion piece, not an endorsement of its conclusions. The proposed EU Act and any UK position were not final at the date of this entry; read the article and the primary texts it cites.</p>
</section>
<section aria-labelledby="related"><h2 id="related">Related</h2>
<p>Data-centre investment and policy headlines are tracked alongside the UK renewable project pipeline at <a href="https://globalgrid2050.com/">GlobalGrid2050</a>.</p>
<p>Version history and corrections are recorded in <a href="https://github.com/Ventusltd/cyber-resilience">the public Git repository</a>.</p></section></main>
<footer><div class="wrap">Funded by VENTUS LTD · General technical documentation and research. Entry dated 14 November 2026.</div></footer>
</body></html>Cyber Resilience — Index Page
A web page.
rendercyber-resilience / index.html · lines 1–27 of 27 · Entry point
- What it does
- It draws its content. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- README: "The static, dated log is published from `index.html` when GitHub Pages is enabled on `main` at `/(root)`:"
- Inputs & outputs
- Out: web page.
- Downstream impact
- Used directly by 3 files: Test Cyber Resilience Entry (globalgrid2050-homepage); 2026 11 13 Concentration Risk (cyber-resilience); 2026 11 14 Cloud Sovereignty Recognition (cyber-resilience). Reached from 3 other entry points, including Build Homepage Release Candidate Workflow (globalgrid2050-homepage); PR Checks Workflow (globalgrid2050-homepage); Pages Workflow (globalgrid2050-homepage).
- What it achieves
- GlobalGrid2050 Cyber Resilience Log: a dated public record of cloud failures, concentration risk and independent recovery.
- Why it matters
- Loaded by the 2026 11 13 Concentration Risk page and 1 other page. Checked by Test Cyber Resilience Entry.
- Application
- cyber-resilience · / · page
- Uses
- Log (stylesheet), 2026 11 14 Cloud Sovereignty Recognition (link), 2026 11 13 Concentration Risk (link)
- Used by
- named by URL in Test Cyber Resilience Entry (estate URL), linked from 2026 11 13 Concentration Risk (link), linked from 2026 11 14 Cloud Sovereignty Recognition (link)
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cyber-resilience@cb43f0b5ec7c2374b438c528facdfe6defdadc08 index.html:1-27 · blob ae2170b9ce7ba47e3e9f7cdc8fd96264e9e88ebd · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: unknown · users: none · canonical: unknown
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="GlobalGrid2050 Cyber Resilience Log: a dated public record of cloud failures, concentration risk and independent recovery.">
<title>Cyber Resilience Log | GlobalGrid2050</title>
<link rel="stylesheet" href="./assets/log.css"></head><body>
<header class="masthead"><div class="wrap">
<a class="brand" href="https://globalgrid2050.com/">GLOBALGRID2050</a>
<p class="eyebrow" style="margin-top:32px">Open research · Critical infrastructure</p>
<h1>Cyber Resilience Log</h1>
<p>Single-provider dependency in finance, energy, cloud computing and other critical systems. A dated, evidence-led record of failures, lessons and the case for independent recovery.</p>
<nav class="nav" aria-label="Navigation"><a href="https://globalgrid2050.com/">← GlobalGrid2050 homepage</a><a href="https://github.com/Ventusltd/cyber-resilience">Source repository</a><a href="https://github.com/Ventusltd/cyber-resilience/blob/main/README.md">Purpose and scope</a></nav>
</div></header>
<main class="wrap"><section aria-labelledby="entries"><h2 id="entries">Entries</h2>
<article class="entry"><span class="date"><time datetime="2026-11-14">14 November 2026</time></span><span class="pill">External reading</span>
<h3><a href="./entries/2026-11-14-cloud-sovereignty-recognition.html">Cloud sovereignty levels and the case for early UK recognition</a></h3>
<p>An opinion article in Compare the Cloud argues that the UK should seek recognition under the EU's proposed cloud sovereignty levels while the rules are still being drafted. Logged here because sovereignty tiers shape which providers host critical workloads, and where data centres are built.</p>
<a href="./entries/2026-11-14-cloud-sovereignty-recognition.html">Read the entry →</a>
</article>
<article class="entry"><span class="date"><time datetime="2026-11-13">13 November 2026</time></span><span class="pill">Research note</span>
<h3><a href="./entries/2026-11-13-concentration-risk.html">Cloud outages, the Binance theft and the case for distributed resilience</a></h3>
<p>Three different failures expose a common dependency problem: Google Cloud London-region disruption affecting banking, an alleged endpoint compromise behind the Binance cryptocurrency theft, and a worldwide Microsoft 365 outage. Linux, Git and independently recoverable services show practical alternatives to a single point of trust or failure.</p>
<a href="./entries/2026-11-13-concentration-risk.html">Read the complete entry →</a>
</article></section>
<section class="prose" aria-labelledby="method"><h2 id="method">Method</h2><p>Every dated entry separates reported events, technical explanation, uncertainty and recommendations. Corrections can be recorded in the repository history. An operational outage is not automatically a cyberattack; open source and Git are useful resilience tools, not substitutes for security controls.</p>
<p>For complete citations and the underlying research, follow the evidence links inside each entry. No analytics, accounts, cookies or external scripts are used by this page.</p></section>
</main><footer><div class="wrap">Funded by VENTUS LTD · Open collaboration · General research only; not an incident response service or engineering certification.</div></footer>
</body></html>