In this section
- After render · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl009/06/after.cjs lines 1–52
- Measure render · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl009/08/measure.cjs lines 1–106
- Audit render · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl009/09/audit.cjs lines 1–160
- Extra render · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl009/09/extra.cjs lines 1–29
- Make Fixture render · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-1/builder/make-fixture.cjs lines 1–22
- Measure render · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-1/evidence/measure.cjs lines 1–50
- Journey render · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-1/lead/journey.cjs lines 1–35
- Proof Keys storage · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-10/evidence/proof_keys.py lines 1–55
- Proof Sha automation · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-10/evidence/proof_sha.sh lines 1–5
- Render ingest · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-10/evidence/render.py lines 1–129
- K1 Scope other · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-12/evidence/k1_scope.py lines 1–11
- Remap transform · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-12/evidence/remap.cjs lines 1–11
- Check Keys ingest · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-2/evidence/check_keys.py lines 1–26
After
A JavaScript module in the evidence folder of Neural Link Between Agents using data from the kuiper-belt repository.
renderneural-link-between-agents / FIXES/NL-010/tools/evidence/nl009/06/after.cjs · lines 1–52 of 52 · Not reached from any entry point (candidate for review)
- What it does
- It fetches data. Uses libraries playwright. Side effects: changes the web page (DOM); makes network requests.
- Why it exists in the grid workflow
- Domain stage agent_infra (repository name word 'agents'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- Inputs & outputs
- In: data source: kuiper-belt data; command-line arguments.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- No other file in the estate was found to import it.
- Application
- neural-link-between-agents · FIXES/NL-010/tools/evidence/nl009/06 · JavaScript module
- Uses
- Kuiper Belt — Editions Page (estate URL), playwright
- Used by
- none found
- 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
- neural-link-between-agents@598eff3f59afe11738d64cb14cb8befe5e37cdc2 FIXES/NL-010/tools/evidence/nl009/06/after.cjs:1-52 · blob ca6c44764ab29e10f11aaed69022732941e081a7 · GitHub at these lines
- State
- achieves: name · context: auto · stage: output · effects: dom, network · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
const { chromium, devices } = require('playwright');
(async () => {
const url = 'http://127.0.0.1:8106/editions/202611012027/';
const browser = await chromium.launch({ args: ['--use-gl=angle','--use-angle=swiftshader','--enable-unsafe-swiftshader','--ignore-gpu-blocklist'] });
const out = {};
for (const dev of (process.argv[2] ? [process.argv[2]] : ['Pixel 7', 'Galaxy S24', 'Pixel 7 landscape'])) {
const ctx = await browser.newContext({ ...devices[dev] });
const page = await ctx.newPage();
const errors = [];
page.on('console', m => { if (m.type() === 'error') errors.push(m.text()); });
page.on('pageerror', e => errors.push('pageerror: ' + e.message));
await page.goto(url, { waitUntil: 'load' });
await page.waitForTimeout(7000);
const m = await page.evaluate(() => {
const bar = document.getElementById('bar'); const r = bar.getBoundingClientRect();
const items = [...bar.children].map(el => { const b = el.getBoundingClientRect(); const cs = getComputedStyle(el); return { tag: el.tagName, text: el.textContent.trim(), x: Math.round(b.x), y: Math.round(b.y), w: Math.round(b.width), h: Math.round(b.height), font: cs.fontSize, pad: cs.padding, border: cs.borderTopColor, deco: cs.textDecorationLine }; });
const btnRows = new Set(items.filter(i => i.tag !== 'SPAN').map(i => i.y)).size;
const a = bar.querySelector('a.gm-title');
const resolved = new URL(a.getAttribute('href'), location.href).href;
const pages = new URL(a.getAttribute('href'), 'https://ventusltd.github.io/kuiper-belt/editions/202611012027/').href;
const pagesFromPointer = new URL(a.getAttribute('href'), 'https://ventusltd.github.io/kuiper-belt/editions/202611019999/index.html').href;
const ap = [...document.querySelectorAll('#edapps a')].map(x => ({ text: x.textContent, href: x.getAttribute('href'), local: new URL(x.getAttribute('href'), location.href).href, pages: new URL(x.getAttribute('href'), 'https://ventusltd.github.io/kuiper-belt/editions/202611012027/').href }));
return { vw: innerWidth, vh: innerHeight, barH: Math.round(r.height), btnRows, items, sumW: items.reduce((s, i) => s + i.w, 0) + 4 * (items.length - 1) + 16, seeThrough: { target: a.getAttribute('target'), href: a.getAttribute('href'), resolved, pages, pagesFromPointer }, edapps: ap, edappsText: document.getElementById('edapps').textContent };
});
// HEAD the resolved links through the page (same origin)
m.linkStatus = await page.evaluate(async (urls) => { const o = {}; for (const u of urls) { try { const r = await fetch(u, { method: 'GET', redirect: 'follow' }); o[u] = r.status; } catch (e) { o[u] = String(e); } } return o; }, [m.seeThrough.resolved, ...m.edapps.map(x => x.local)]);
const safe = dev.replace(/ /g, '_');
await page.screenshot({ path: `/tmp/nl009/06/after-bar-${safe}.png`, clip: { x: 0, y: 0, width: m.vw, height: Math.min(m.vh, 260) }, timeout: 180000 });
// open the EDITION panel by touch and record the apps paragraph
const ed = m.items.find(i => i.text === 'edition');
await page.touchscreen.tap(ed.x + ed.w / 2, ed.y + ed.h / 2);
await page.waitForTimeout(800);
m.panel = await page.evaluate(() => { const t = document.getElementById('top'); const e = document.getElementById('edapps'); const tr = t.getBoundingClientRect(), er = e.getBoundingClientRect(); return { open: t.classList.contains('gm-open'), panel: { y: Math.round(tr.y), h: Math.round(tr.height), scrollH: t.scrollHeight, clientH: t.clientHeight }, edapps: { y: Math.round(er.y), h: Math.round( … [line shortened here: 500 characters; full line on GitHub]
if (dev === 'Pixel 7') await page.screenshot({ path: `/tmp/nl009/06/after-panel-${safe}.png`, clip: { x: 0, y: 0, width: m.vw, height: Math.min(m.vh, 620) }, timeout: 180000 });
// the panel must not be toggled by the link; tap SEE THROUGH with the panel open and follow it
const st = m.items.find(i => i.text === 'see through');
const nav = page.waitForNavigation({ waitUntil: 'load', timeout: 60000 }).catch(e => 'no navigation: ' + e.message);
await page.touchscreen.tap(st.x + st.w / 2, st.y + st.h / 2);
const navRes = await nav;
await page.waitForTimeout(3000);
m.afterTap = { navigation: typeof navRes === 'string' ? navRes : 'navigated', href: page.url(), title: await page.title() };
// and the back gesture (history back) returns to the edition
await page.goBack({ waitUntil: 'load' }).catch(e => { m.back = 'goBack failed: ' + e.message; });
await page.waitForTimeout(6000);
m.back = Object.assign(m.back || {}, await page.evaluate(() => ({ href: location.href, barItems: document.querySelectorAll('#bar .gm-title').length, openPanel: !!document.querySelector('.gm-open'), big: document.getElementById('big').textContent })));
m.errors = errors;
out[dev] = m;
await ctx.close();
}
console.log(JSON.stringify(out, null, 1));
await browser.close();
})();Measure
A JavaScript module in the evidence folder of Neural Link Between Agents that works with tap bar (`tapBar`) and spark pos (`sparkPos`) and draws on a canvas.
renderneural-link-between-agents / FIXES/NL-010/tools/evidence/nl009/08/measure.cjs · lines 1–106 of 106 · Not reached from any entry point (candidate for review) · pattern sizes (shared by 3 files)
- What it does
- It draws its content. Defines 8 functions or classes, including sleep, charW, sizes, panel, P. Uses libraries playwright, fs. Side effects: changes the web page (DOM); reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain stage agent_infra (repository name word 'agents'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- Inputs & outputs
- In: command-line arguments. Out: canvas drawing.
- What it achieves
- It is built from the sleep step (`sleep`), the char w helper (`charW`) and the sizes step (`sizes`). FABLE-08 type audit: measure text sizes, line lengths, panel rects on Android emulation.
- Why it matters
- No other file in the estate was found to import it.
- Application
- neural-link-between-agents · FIXES/NL-010/tools/evidence/nl009/08 · JavaScript module
- Uses
- playwright, fs
- Used by
- none found
- Produces
- sleep, charW, sizes, panel, P, tapBar, shot, sparkPos
- Defines here
- sleep, charW, sizes, panel, P, tapBar, shot, sparkPos
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- neural-link-between-agents@598eff3f59afe11738d64cb14cb8befe5e37cdc2 FIXES/NL-010/tools/evidence/nl009/08/measure.cjs:1-106 · blob b7f0a75f74ec435b70790f337ee7703a61a6fc5e · GitHub at these lines
- State
- achieves: comment · context: auto · stage: output · effects: dom, filesystem, process · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
// FABLE-08 type audit: measure text sizes, line lengths, panel rects on Android emulation.
// usage: node measure.cjs <variant orig|patched> <device pixel7|s360> [shots-prefix]
const { chromium, devices } = require('playwright');
const fs = require('fs');
const variant = process.argv[2] || 'orig', dev = process.argv[3] || 'pixel7', shots = process.argv[4] || '';
const URL = 'http://127.0.0.1:8108/editions/' + variant + '/';
const ctxOpts = dev === 'pixel7' ? { ...devices['Pixel 7'] }
: { viewport: { width: 360, height: 640 }, deviceScaleFactor: 3, isMobile: true, hasTouch: true,
userAgent: devices['Pixel 7'].userAgent };
const sleep = ms => new Promise(r => setTimeout(r, ms));
(async () => {
const browser = await chromium.launch({ args: ['--use-gl=angle', '--use-angle=swiftshader', '--enable-unsafe-swiftshader', '--ignore-gpu-blocklist'] });
const ctx = await browser.newContext(ctxOpts);
const page = await ctx.newPage();
const errors = [];
page.on('console', m => { if (m.type() === 'error') errors.push(m.text()); });
page.on('pageerror', e => errors.push('pageerror ' + e.message));
await page.goto(URL, { waitUntil: 'load', timeout: 180000 });
await sleep(8000);
const out = { variant, dev, viewport: ctxOpts.viewport, dsf: ctxOpts.deviceScaleFactor, errors };
// generic measurer, run in page
const measure = await page.evaluateHandle(() => {
const dsf = devicePixelRatio;
function charW(el) { const cs = getComputedStyle(el); const c = document.createElement('canvas').getContext('2d'); c.font = cs.fontWeight + ' ' + cs.fontSize + ' ' + cs.fontFamily; return c.measureText('x'.repeat(100)).width / 100; }
function sizes(root) {
const seen = new Map();
const walk = document.createTreeWalker(root, NodeFilter.SHOW_TEXT);
let n;
while ((n = walk.nextNode())) { if (!n.textContent.trim()) continue; const el = n.parentElement; const cs = getComputedStyle(el);
if (cs.display === 'none') continue; const r = el.getBoundingClientRect(); if (!r.width && !r.height) continue;
const key = el.tagName.toLowerCase() + (el.id ? '#' + el.id : '') + (el.className && typeof el.className === 'string' ? '.' + el.className.split(' ').filter(Boolean).join('.') : '');
const fs = parseFloat(cs.fontSize);
const rec = seen.get(key) || { sel: key, fontPx: fs, devPx: +(fs * dsf).toFixed(1), lineH: cs.lineHeight, color: cs.color, chars: 0, sample: n.textContent.trim().slice(0, 40) };
rec.chars += n.textContent.trim().length; seen.set(key, rec); }
return [...seen.values()];
}
function panel(sel) { const el = document.querySelector(sel); const r = el.getBoundingClientRect(); const cs = getComputedStyle(el);
const cw = r.width - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight); const ch = charW(el);
const text = el.innerText || el.textContent;
return { sel, rect: { x: +r.x.toFixed(1), y: +r.y.toFixed(1), w: +r.width.toFixed(1), h: +r.height.toFixed(1) }, pctOfScreen: +(100 * r.height / innerHeight).toFixed(1),
fontPx: parseFloat(cs.fontSize), devPx: +(parseFloat(cs.fontSize) * dsf).toFixed(1), lineHeight: cs.lineHeight, charWidthPx: +ch.toFixed(2), charsPerLine: Math.floor(cw / ch),
textChars: text.replace(/\s+/g, ' ').trim().length, words: text.trim().split(/\s+/).length, scrollH: el.scrollHeight, clientH: el.clientHeight, overflow: el.scrollHeight > el.clientHeight + 1,
fontFamily: cs.fontFamily, textSizeAdjust: cs.webkitTextSizeAdjust || cs.textSizeAdjust, sizes: sizes(el) }; }
return { panel, sizes, charW };
});
const P = async sel => page.evaluate(([m, s]) => m.panel(s), [measure, sel]);
out.html = await page.evaluate(() => ({ fontSize: getComputedStyle(document.documentElement).fontSize, bodyFont: getComputedStyle(document.body).font,
textSizeAdjust: getComputedStyle(document.documentElement).webkitTextSizeAdjust, inner: [innerWidth, innerHeight], dsf: devicePixelRatio }));
// the bar
out.bar = await P('#bar');
out.bar.buttons = await page.evaluate(() => [...document.querySelectorAll('#bar .gm-title, #barname')].map(b => { const r = b.getBoundingClientRect(); const cs = getComputedStyle(b); return { t: b.textContent, x: +r.x.toFixed(0), y: +r.y.toFixed(0), w: +r.width.toFixed(0), h: +r.height.toFixed(0), fontPx: parseFloat(cs.fontSize), color: cs.color }; }));
out.bar.rows = new Set(out.bar.buttons.map(b => b.y)).size;
const tapBar = async name => { const r = await page.evaluate(n => { const b = document.querySelector('#bar [data-panel=' + n + ']'); const q = b.getBoundingClientRect(); return [q.x + q.width / 2, q.y + q.height / 2]; }, name); await page.touchscreen.tap(r[0], r[1]); await sleep(400); };
const shot = async (name, clip) => { if (!shots) return; await page.screenshot({ path: shots + '-' + name + '.png', timeout: 180000, clip }); };
// panels
const map = { top: 'edition', hud: 'readout', lines: 'lines', foot: 'commands' };
out.panels = {};
for (const [id, name] of Object.entries(map)) {
await tapBar(id); const p = await P('#' + id); p.open = await page.evaluate(i => document.getElementById(i).classList.contains('gm-open'), id);
if (id === 'lines') { p.rows = await page.evaluate(() => { const rows = [...document.querySelectorAll('#lineslist .ln')]; const r0 = rows[0] && rows[0].getBoundingClientRect(); return { count: rows.length, firstRowH: r0 && +r0.height.toFixed(1), rowText: rows[0] && rows[0].innerText.slice(0, 80) }; }); }
out.panels[name] = p;
await shot(name);
await tapBar(id);
}
// the card after "next verified line"
await page.keyboard.press('e'); await sleep(7000);
out.card = await P('#card');
out.card.link = await page.evaluate(() => { const a = document.querySelector('#card a'); const r = a.getBoundingClientRect(); const cs = getComputedStyle(a); return { h: +r.height.toFixed(1), fontPx: parseFloat(cs.fontSize), color: cs.color }; });
const sparkPos = () => page.evaluate(() => { const o = document.getElementById('o'); const g = o.getContext('2d'); const d = g.getImageData(0, 0, o.width, o.height).data; let sx = 0, sy = 0, n = 0;
for (let i = 0; i < d.length; i += 4) { if (d[i] > 200 && d[i + 1] < 90 && d[i + 2] > 170 && d[i + 3] > 80) { const p = i / 4; sx += p % o.width; sy += Math.floor(p / o.width); n++; } }
const k = innerWidth / o.width; const c = document.getElementById('card').getBoundingClientRect(); const bar = document.getElementById('bar').getBoundingClientRect();
if (!n) return { found: false }; const x = sx / n * k, y = sy / n * k; return { found: true, x: +x.toFixed(0), y: +y.toFixed(0), underCard: y > c.top, underBar: y < bar.bottom }; });
out.card.spark = await sparkPos();
await shot('card');
// details open
await page.evaluate(() => document.querySelector('#card .ct').dispatchEvent(new MouseEvent('click', { bubbles: true })));
await sleep(300);
out.cardDetails = await P('#card');
await shot('card-details');
// platform fonts actually used (this Linux Chromium; Android reasoning in the report)
const cdp = await ctx.newCDPSession(page);
await cdp.send('DOM.enable'); await cdp.send('CSS.enable');
const doc = await cdp.send('DOM.getDocument', { depth: -1 });
const q = await cdp.send('DOM.querySelector', { nodeId: doc.root.nodeId, selector: '#barname' });
out.platformFonts = (await cdp.send('CSS.getPlatformFontsForNode', { nodeId: q.nodeId })).fonts;
// font scaling: 125 % via text-size-adjust (needs Blink's text autosizer) and via zoom on the text containers
const probe = () => page.evaluate(() => { const b = document.querySelector('#bar .gm-title'); const c = document.getElementById('card'); const bar = document.getElementById('bar').getBoundingClientRect(); return { btnH: +b.getBoundingClientRect().height.toFixed(1), barH: +bar.height.toFixed(1), barRows: new Set([...document.querySelectorAll('#bar .gm-title, #barname')].map(x => Math.round(x.getB … [line shortened here: 617 characters; full line on GitHub]
out.scale100 = await probe();
await page.addStyleTag({ content: 'html{-webkit-text-size-adjust:125%!important;text-size-adjust:125%!important}' });
await sleep(500); out.scaleTSA125 = await probe();
await page.addStyleTag({ content: '#bar,#top,#hud,#foot,#lines,#card{zoom:1.25}' });
await sleep(500); out.scaleZoom125 = await probe();
out.scaleZoom125.spark = await sparkPos();
await shot('card-125');
await page.evaluate(() => document.querySelector('#card .cx').dispatchEvent(new MouseEvent('click', { bubbles: true })));
await tapBar('top'); await sleep(300);
out.scaleZoom125.edition = await P('#top');
await shot('edition-125');
await browser.close();
fs.writeFileSync('/tmp/nl009/08/measure-' + variant + '-' + dev + '.json', JSON.stringify(out, null, 1));
console.log(JSON.stringify(out, null, 1));
})().catch(e => { console.error(e); process.exit(1); });Audit
A JavaScript module in the evidence folder of Neural Link Between Agents that works with tap button (`tapButton`) and draws on a canvas.
renderneural-link-between-agents / FIXES/NL-010/tools/evidence/nl009/09/audit.cjs · lines 1–160 of 160 · Not reached from any entry point (candidate for review) · pattern serve (shared by 8 files)
- What it does
- It draws its content. Defines 11 functions or classes, including sleep, note, serve, wire, MEASURE. Uses libraries playwright, fs. Side effects: changes the web page (DOM); reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain stage agent_infra (repository name word 'agents'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- Inputs & outputs
- In: JSON file result.json; command-line arguments. Out: JSON file result.json; WebGL/WebGPU drawing.
- What it achieves
- It is built from the sleep step (`sleep`), the note step (`note`) and the serve step (`serve`). FABLE-09 robust audit of Kuiper Edition 4 on Pixel 7. It writes `/result.json`.
- Why it matters
- No other file in the estate was found to import it.
- Application
- neural-link-between-agents · FIXES/NL-010/tools/evidence/nl009/09 · JavaScript module
- Uses
- playwright, fs
- Used by
- none found
- Produces
- sleep, note, serve, wire, MEASURE, q, rect, clear, tapButton, q, at
- Defines here
- sleep, note, serve, wire, MEASURE, q, rect, clear, tapButton, q, at
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- neural-link-between-agents@598eff3f59afe11738d64cb14cb8befe5e37cdc2 FIXES/NL-010/tools/evidence/nl009/09/audit.cjs:1-160 · blob 9d792fbc0500e65a9bda540f976ff06b0eae14eb · GitHub at these lines
- State
- achieves: comment · context: auto · stage: output · effects: dom, filesystem, process · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
// FABLE-09 robust audit of Kuiper Edition 4 on Pixel 7. Usage: node audit.cjs <orig|patched> [outdir]
const { chromium, devices } = require('playwright');
const fs = require('fs');
const variant = process.argv[2] || 'orig';
const out = process.argv[3] || ('/tmp/nl009/09/out-' + variant);
fs.mkdirSync(out, { recursive: true });
const PAGE = fs.readFileSync(variant === 'orig' ? '/tmp/nl009/09/index.orig.html' : '/tmp/nl009/09/index.html', 'utf8');
const URL = 'http://127.0.0.1:8109/editions/202611012027/';
const ARGS = ['--use-gl=angle', '--use-angle=swiftshader', '--enable-unsafe-swiftshader', '--ignore-gpu-blocklist'];
const sleep = ms => new Promise(r => setTimeout(r, ms));
const R = { variant, scenarios: {} };
const note = (k, v) => { R.scenarios[k] = v; console.log(k, JSON.stringify(v)); };
async function serve(ctx, opts = {}) {
await ctx.route(u => /editions\/202611012027\/(index\.html)?$/.test(u.pathname), r => r.fulfill({ status: 200, contentType: 'text/html', body: PAGE }));
if (opts.keys404) await ctx.route(/keys\.json$/, r => r.fulfill({ status: 404, contentType: 'text/plain', body: 'not here' }));
}
function wire(page, log) {
page.on('console', m => { if (m.type() === 'error' || m.type() === 'warning') log.push(m.type() + ': ' + m.text().slice(0, 160)); });
page.on('pageerror', e => log.push('pageerror: ' + String(e && e.message || e).slice(0, 160)));
}
// what the browser laid out: rectangles, the magenta spark on the overlay, the panel and bar
const MEASURE = () => {
const q = s => document.querySelector(s);
const rect = el => { if (!el) return null; const r = el.getBoundingClientRect(); return { x: +r.x.toFixed(1), y: +r.y.toFixed(1), w: +r.width.toFixed(1), h: +r.height.toFixed(1), vis: getComputedStyle(el).display !== 'none' && r.width > 0 && r.height > 0 }; };
const cv = q('#c'), ov = q('#o');
let spark = null; try {
const ctx = ov.getContext('2d'); const d = ctx.getImageData(0, 0, ov.width, ov.height).data; let n = 0, sx = 0, sy = 0;
for (let i = 0; i < d.length; i += 4) { if (d[i] > 200 && d[i + 1] < 90 && d[i + 2] > 170 && d[i + 3] > 150) { const p = i / 4; sx += p % ov.width; sy += Math.floor(p / ov.width); n++; } }
if (n) spark = { x: +(sx / n).toFixed(1), y: +(sy / n).toFixed(1), px: n };
} catch (e) { spark = { err: String(e) }; }
const open = document.querySelector('.gm-open');
return { inner: [innerWidth, innerHeight], cvBuf: [cv.width, cv.height], cvCss: rect(cv), bar: rect(q('#bar')), card: rect(q('#card')),
openPanel: open ? open.id : null, panelRect: rect(open), panelTop: open ? open.style.top : null, spark,
big: (q('#big') || {}).textContent, hudLines: (q('#hud') || {}).textContent.split('\n').filter(l => /EDITION|keys\.json|WebGL|CONTEXT|did not load/.test(l)) };
};
function clear(m) { // is the spark in the clear space: under the bar, above the card, inside the screen
if (!m.spark || m.spark.err) return 'no spark pixels on the overlay';
const top = m.bar ? m.bar.y + m.bar.h : 0, bot = m.card && m.card.vis ? m.card.y : m.inner[1];
const ok = m.spark.x > 0 && m.spark.x < m.inner[0] && m.spark.y > top && m.spark.y < bot;
return (ok ? 'IN CLEAR' : 'NOT CLEAR') + ' spark(' + m.spark.x + ',' + m.spark.y + ') bar.bottom=' + top.toFixed(0) + ' card.top=' + (m.card && m.card.vis ? m.card.y : 'none') + ' inner=' + m.inner.join('x');
}
async function tapButton(page, sel) { const b = await page.$(sel); const r = await b.boundingBox(); await page.touchscreen.tap(r.x + r.width / 2, r.y + r.height / 2); }
(async () => {
const browser = await chromium.launch({ args: ARGS });
// ---------------------------------------------------------------- 1. portrait, panel + card, rotate, toolbar
{
const log = []; const ctx = await browser.newContext({ ...devices['Pixel 7'] }); await serve(ctx);
const page = await ctx.newPage(); wire(page, log);
await page.goto(URL); await sleep(8000);
// aria and structure
const aria = await page.evaluate(() => {
const q = s => document.querySelector(s), qa = s => [...document.querySelectorAll(s)];
const at = el => el ? Object.fromEntries([...el.attributes].filter(a => /^(role|aria-|id$|tabindex|type)/.test(a.name)).map(a => [a.name, a.value])) : null;
return { noscript: !!q('noscript'), bar: at(q('#bar')), barButtons: qa('#bar .gm-title').map(b => ({ text: b.textContent, ...at(b) })),
panels: ['#top', '#hud', '#lines', '#foot'].map(s => ({ s, ...at(q(s)) })), card: at(q('#card')), lyFind: at(q('#lyFind')),
detailsToggle: (() => { const t = q('#card .ct'); return t ? { tag: t.tagName, ...at(t) } : 'card closed'; })(),
linesRowsFocusable: qa('#lineslist [data-i]').filter(r => r.tabIndex >= 0).length, linesRows: qa('#lineslist [data-i]').length,
barDomIndex: [...document.body.children].findIndex(e => e.id === 'bar'), bodyChildren: [...document.body.children].map(e => e.tagName.toLowerCase() + (e.id ? '#' + e.id : '')) };
});
note('aria_rest', aria);
// focus order: Tab from the document
const order = []; for (let i = 0; i < 7; i++) { await page.keyboard.press('Tab'); order.push(await page.evaluate(() => { const a = document.activeElement; if (!a || a === document.body) return 'body'; const cs = getComputedStyle(a); return (a.tagName.toLowerCase() + (a.id ? '#' + a.id : '') + (a.className ? '.' + String(a.className).split(' ')[0] : '') + '[' + (a.textContent || '').trim().slic … [line shortened here: 513 characters; full line on GitHub]
note('focus_order', order);
await page.evaluate(() => document.activeElement && document.activeElement.blur());
// open READOUT and pick a line
await tapButton(page, '#bar [data-panel="hud"]'); await sleep(300);
await page.keyboard.press('e'); await sleep(7000);
const m0 = await page.evaluate(MEASURE); note('portrait_panel_card', { ...m0, clear: clear(m0) });
const ariaOpen = await page.evaluate(() => { const b = document.querySelector('#bar .gm-on'); const t = document.querySelector('#card .ct'), x = document.querySelector('#card .cx');
return { onButton: b ? Object.fromEntries([...b.attributes].map(a => [a.name, a.value])) : null, details: t ? { tag: t.tagName, tabIndex: t.tabIndex, role: t.getAttribute('role'), expanded: t.getAttribute('aria-expanded') } : null,
close: x ? { tag: x.tagName, label: x.getAttribute('aria-label'), w: x.getBoundingClientRect().width, h: x.getBoundingClientRect().height } : null,
cardAttrs: Object.fromEntries([...document.getElementById('card').attributes].map(a => [a.name, a.value])) }; });
note('aria_open', ariaOpen);
await page.screenshot({ path: out + '/portrait.png', scale: 'css', timeout: 180000 });
// rotate to landscape (same device, swapped)
await page.setViewportSize({ width: 839, height: 412 }); await sleep(6000);
const m1 = await page.evaluate(MEASURE); note('landscape', { ...m1, clear: clear(m1) });
await page.screenshot({ path: out + '/landscape.png', scale: 'css', timeout: 180000 });
// back to portrait
await page.setViewportSize({ width: 412, height: 839 }); await sleep(6000);
const m2 = await page.evaluate(MEASURE); note('portrait_again', { ...m2, clear: clear(m2) });
// Android dynamic toolbar: the viewport loses 56 px
await page.setViewportSize({ width: 412, height: 783 }); await sleep(6000);
const m3 = await page.evaluate(MEASURE); note('toolbar_minus56', { ...m3, clear: clear(m3) });
await page.setViewportSize({ width: 412, height: 839 }); await sleep(4000);
// Escape: first closes the panel, then (patched) the card
await page.keyboard.press('Escape'); await sleep(300);
const e1 = await page.evaluate(() => ({ panel: !!document.querySelector('.gm-open'), card: getComputedStyle(document.getElementById('card')).display }));
await page.keyboard.press('Escape'); await sleep(300);
const e2 = await page.evaluate(() => ({ panel: !!document.querySelector('.gm-open'), card: getComputedStyle(document.getElementById('card')).display }));
note('escape', { afterFirst: e1, afterSecond: e2 });
// hash deep link (does the engine read location.hash at all?)
note('console_main', log);
await ctx.close();
}
// ---------------------------------------------------------------- 2. reduced motion: is the fly instant?
{
const log = []; const ctx = await browser.newContext({ ...devices['Pixel 7'], reducedMotion: 'reduce' }); await serve(ctx);
const page = await ctx.newPage(); wire(page, log);
await page.goto(URL); await sleep(8000);
await page.evaluate(() => { window.__zooms = []; const h = document.getElementById('hud'); new MutationObserver(() => { const m = h.textContent.match(/zoom ([\d.]+) px per key|zoom 1 px = ([^\n]+)/); if (m) { const v = m[1] ? +m[1] : ('1px=' + m[2]); if (window.__zooms[window.__zooms.length - 1] !== v) window.__zooms.push(v); } }).observe(h, { childList: true, characterData: true, subtree: tru … [line shortened here: 409 characters; full line on GitHub]
await page.keyboard.press('e'); await sleep(7000);
const z = await page.evaluate(() => ({ matches: matchMedia('(prefers-reduced-motion: reduce)').matches, zooms: window.__zooms.slice(0, 12), n: window.__zooms.length }));
note('reduced_motion', { ...z, console: log });
await ctx.close();
}
// ---------------------------------------------------------------- 3. keys.json 404
{
const log = []; const ctx = await browser.newContext({ ...devices['Pixel 7'] }); await serve(ctx, { keys404: true });
const page = await ctx.newPage(); wire(page, log);
await page.goto(URL); await sleep(8000);
await tapButton(page, '#bar [data-panel="hud"]'); await sleep(500);
const hud = await page.evaluate(() => document.getElementById('hud').innerText);
await tapButton(page, '#bar [data-panel="top"]'); await sleep(500);
const top = await page.evaluate(() => document.getElementById('top').innerText.slice(0, 200));
await tapButton(page, '#bar [data-panel="lines"]'); await sleep(500);
const lines = await page.evaluate(() => document.getElementById('lineslist').innerText.slice(0, 200));
await page.keyboard.press('Escape'); await page.keyboard.press('e'); await sleep(500);
const card = await page.evaluate(() => getComputedStyle(document.getElementById('card')).display);
note('keys404', { hudEditionLines: hud.split('\n').filter(l => /EDITION|keys/.test(l)), editionPanel: top, linesPanel: lines, cardAfterE: card, console: log });
await ctx.close();
}
// ---------------------------------------------------------------- 4. no JavaScript
{
const ctx = await browser.newContext({ ...devices['Pixel 7'], javaScriptEnabled: false }); await serve(ctx);
const page = await ctx.newPage(); await page.goto(URL); await sleep(1500);
const t = await page.evaluate(() => ({ text: document.body.innerText.trim().slice(0, 300), visible: [...document.body.querySelectorAll('*')].filter(e => { const r = e.getBoundingClientRect(); return r.width > 0 && r.height > 0 && e.textContent.trim() && getComputedStyle(e).display !== 'none' && e.children.length === 0; }).map(e => e.tagName + ':' + e.textContent.trim().slice(0, 60)).slice(0, 6 … [line shortened here: 439 characters; full line on GitHub]
// evaluate needs JS; fall back to content()
const html = await page.content();
note('no_js', { evaluated: t, noscriptInHtml: /<noscript/i.test(html) });
await ctx.close();
}
// ---------------------------------------------------------------- 5. hash deep link
{
const log = []; const ctx = await browser.newContext({ ...devices['Pixel 7'] }); await serve(ctx);
const page = await ctx.newPage(); wire(page, log);
await page.goto(URL + '#1000000'); await sleep(8000);
const h = await page.evaluate(() => ({ hash: location.hash, card: getComputedStyle(document.getElementById('card')).display, hud: document.getElementById('hud').textContent.split('\n')[0].slice(0, 80), big: document.getElementById('big').textContent, bar: !!document.getElementById('bar') }));
note('hash', { ...h, engineReadsHash: /location\.hash/.test(PAGE), console: log });
await ctx.close();
}
await browser.close();
// ---------------------------------------------------------------- 6. WebGL unavailable
{
const b2 = await chromium.launch({ args: [...ARGS, '--disable-webgl', '--disable-webgl2', '--disable-3d-apis'] });
const log = []; const ctx = await b2.newContext({ ...devices['Pixel 7'] }); await serve(ctx);
const page = await ctx.newPage(); wire(page, log);
await page.goto(URL); await sleep(3000);
const t = await page.evaluate(() => ({ gl2: !!document.createElement('canvas').getContext('webgl2'), bar: !!document.getElementById('bar'),
visibleText: [...document.body.querySelectorAll('*')].filter(e => { const r = e.getBoundingClientRect(); const cs = getComputedStyle(e); return r.width > 0 && r.height > 0 && cs.display !== 'none' && cs.visibility !== 'hidden' && e.children.length === 0 && e.textContent.trim(); }).map(e => e.tagName.toLowerCase() + (e.id ? '#' + e.id : '') + ':' + e.textContent.trim().slice(0, 90)).slice(0, … [line shortened here: 403 characters; full line on GitHub]
hudText: document.getElementById('hud').textContent, hudDisplay: getComputedStyle(document.getElementById('hud')).display }));
note('no_webgl', { ...t, console: log });
await page.screenshot({ path: out + '/nowebgl.png', scale: 'css', timeout: 180000 });
await ctx.close(); await b2.close();
}
fs.writeFileSync(out + '/result.json', JSON.stringify(R, null, 1));
console.log('written', out + '/result.json');
})().catch(e => { console.error('FATAL', e); process.exit(1); });Extra
A JavaScript module in the evidence folder of Neural Link Between Agents.
renderneural-link-between-agents / FIXES/NL-010/tools/evidence/nl009/09/extra.cjs · lines 1–29 of 29 · Not reached from any entry point (candidate for review)
- What it does
- It loads data. Defines sleep. Uses libraries playwright, fs. Side effects: changes the web page (DOM); reads or writes files.
- Why it exists in the grid workflow
- Domain stage agent_infra (repository name word 'agents'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- What it achieves
- Defines `sleep`.
- Why it matters
- No other file in the estate was found to import it.
- Application
- neural-link-between-agents · FIXES/NL-010/tools/evidence/nl009/09 · JavaScript module
- Uses
- playwright, fs
- Used by
- none found
- Produces
- sleep
- Defines here
- sleep
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- neural-link-between-agents@598eff3f59afe11738d64cb14cb8befe5e37cdc2 FIXES/NL-010/tools/evidence/nl009/09/extra.cjs:1-29 · blob 3cee3f8e9015b9bcd24aa48627557b6e7f2dabc8 · GitHub at these lines
- State
- achieves: name · context: auto · stage: output · effects: dom, filesystem · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
const { chromium, devices } = require('playwright'); const fs = require('fs');
const PAGE = fs.readFileSync('/tmp/nl009/09/index.html', 'utf8'); const URL = 'http://127.0.0.1:8109/editions/202611012027/';
const ARGS = ['--use-gl=angle', '--use-angle=swiftshader', '--enable-unsafe-swiftshader', '--ignore-gpu-blocklist'];
const sleep = ms => new Promise(r => setTimeout(r, ms));
(async () => {
const browser = await chromium.launch({ args: ARGS });
const ctx = await browser.newContext({ ...devices['Pixel 7'], reducedMotion: 'reduce' });
await ctx.route(u => /editions\/202611012027\/(index\.html)?$/.test(u.pathname), r => r.fulfill({ status: 200, contentType: 'text/html', body: PAGE }));
const page = await ctx.newPage(); const log = []; page.on('pageerror', e => log.push(String(e.message))); page.on('console', m => { if (m.type() === 'error') log.push(m.text()); });
await page.goto(URL); await sleep(8000);
await page.evaluate(() => { window.__zooms = []; const h = document.getElementById('hud'); new MutationObserver(() => { const m = h.textContent.match(/zoom ([\d.]+) px per key|zoom 1 px = ([^\n]+)/); if (m) { const v = m[1] ? +m[1] : ('1px=' + m[2]); if (window.__zooms[window.__zooms.length - 1] !== v) window.__zooms.push(v); } }).observe(h, { childList: true, characterData: true, subtree: true … [line shortened here: 407 characters; full line on GitHub]
await page.keyboard.press('e'); await sleep(6000);
console.log('reduced_motion zooms', JSON.stringify(await page.evaluate(() => window.__zooms)));
// keyboard path through LINES: Tab to the LINES button, Enter, Tab into the list, Enter on a row
await page.keyboard.press('Escape'); await sleep(200);
const b = await page.$('#bar [data-panel="lines"]'); const r = await b.boundingBox(); await page.touchscreen.tap(r.x + r.width / 2, r.y + r.height / 2); await sleep(600);
const rows = await page.evaluate(() => ({ rows: document.querySelectorAll('#lineslist [data-i]').length, focusable: document.querySelectorAll('#lineslist [data-i][tabindex="0"][role="button"]').length, expanded: document.querySelector('#bar [data-panel="lines"]').getAttribute('aria-expanded') }));
console.log('lines rows', JSON.stringify(rows));
await page.evaluate(() => document.querySelector('#lineslist [data-i="5"]').focus());
const f = await page.evaluate(() => { const a = document.activeElement; return a.dataset.i + ' fv=' + a.matches(':focus-visible') + ' outline=' + getComputedStyle(a).outlineStyle; });
await page.keyboard.press('Enter'); await sleep(6000);
const after = await page.evaluate(() => ({ panel: !!document.querySelector('.gm-open'), card: getComputedStyle(document.getElementById('card')).display, title: document.querySelector('#card b').textContent, nOf: document.querySelector('#card span').textContent }));
console.log('row focus', f, 'after Enter', JSON.stringify(after));
// details button by keyboard
await page.evaluate(() => document.querySelector('#card .ct').focus()); await page.keyboard.press('Enter'); await sleep(200);
console.log('details', JSON.stringify(await page.evaluate(() => ({ open: document.getElementById('card').classList.contains('open'), expanded: document.querySelector('#card .ct').getAttribute('aria-expanded') }))));
console.log('errors', JSON.stringify(log));
await browser.close();
})();Make Fixture
A JavaScript module in the builder folder of Neural Link Between Agents.
renderneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-1/builder/make-fixture.cjs · lines 1–22 of 22 · Not reached from any entry point (candidate for review)
- What it does
- It loads data. Defines t. Uses libraries fs. Side effects: changes the web page (DOM); reads or writes files.
- Why it exists in the grid workflow
- Domain stage agent_infra (repository name word 'agents'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- What it achieves
- Its name says it makes fixture. It writes `/ga-fixture/index.html`.
- Why it matters
- No other file in the estate was found to import it.
- Application
- neural-link-between-agents · FIXES/NL-010/tools/evidence/nl010-opus/team-1/builder · JavaScript module
- Uses
- fs
- Used by
- none found
- Produces
- t
- Defines here
- t
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- neural-link-between-agents@598eff3f59afe11738d64cb14cb8befe5e37cdc2 FIXES/NL-010/tools/evidence/nl010-opus/team-1/builder/make-fixture.cjs:1-22 · blob cfd2041d0ce7ee6b57b78fadf8068482e7d395de · GitHub at these lines
- State
- achieves: name · context: auto · stage: output · effects: dom, filesystem · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
// Builds a GridAtlas wordmark fixture from the real bytes: ventusv8.css (whole file) + the menu-bar module's
// installStyle() CSS array (gridatlas@5ec7f62 atlas/modules/202609031958-menu-bar.js:164-384), and the shell's
// .hud-header markup (atlas/releases/202608300453-atlas-v9/index.html:23-33) inside a .gm-brand-slot between two
// side groups of the six titles (buildBar :481-545).
const fs = require('fs');
const G = '/home/user/estate/gridatlas/';
const mod = fs.readFileSync(G + 'atlas/modules/202609031958-menu-bar.js', 'utf8').split('\n');
const start = mod.findIndex(l => l.includes('style.textContent = ['));
const end = mod.findIndex((l, i) => i > start && l.includes("].join('');"));
const BAR_ID = 'gridatlas-menu-bar';
const css = eval('[' + mod.slice(start + 1, end).join('\n') + ']').join('');
const v8 = fs.readFileSync(G + 'atlas/releases/202608300453-atlas-v9/ventusv8.css', 'utf8');
const shell = fs.readFileSync(G + 'atlas/releases/202608300453-atlas-v9/index.html', 'utf8').split('\n');
const hud = shell.slice(22, 34).join('\n'); // :23-34
const t = n => `<div class="gm-menu"><button class="gm-title">${n}</button></div>`;
const html = `<!doctype html><html><head><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<style>${v8}</style><style>${css}</style></head><body><div class="dashboard"><div class="map-container" style="flex:1">
<nav id="gridatlas-menu-bar"><div class="gm-side gm-side-left">${t('File')}${t('Edit')}${t('View')}</div>
<div class="gm-brand-slot">${hud}</div><div class="gm-side gm-side-right">${t('Scope')}${t('Grid')}${t('About')}</div></nav>
</div></div><script>(function t(){const now=new Date(),target=new Date(Date.UTC(2050,0,1,0,0,0));document.getElementById('clock').innerText=now.toLocaleTimeString('en-GB');document.getElementById('date').innerText=now.toLocaleDateString('en-GB');document.getElementById('days').innerText=Math.floor((target-now)/86400000)+' DAYS';setTimeout(t,1000)})()</script></body></html>`;
fs.writeFileSync(__dirname + '/ga-fixture/index.html', html);
console.log('lines', start + 1, end + 1, 'css bytes', css.length);Measure
A JavaScript module in the evidence folder of Neural Link Between Agents.
renderneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-1/evidence/measure.cjs · lines 1–50 of 50 · Not reached from any entry point (candidate for review)
- What it does
- It fetches data. Defines R. Uses libraries playwright, fs. Side effects: changes the web page (DOM); reads or writes files; makes network requests.
- Why it exists in the grid workflow
- Domain stage agent_infra (repository name word 'agents'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- Inputs & outputs
- Out: JSON file measure.json.
- What it achieves
- It writes `/measure.json`.
- Why it matters
- No other file in the estate was found to import it.
- Application
- neural-link-between-agents · FIXES/NL-010/tools/evidence/nl010-opus/team-1/evidence · JavaScript module
- Uses
- playwright, fs
- Used by
- none found
- Produces
- R
- Defines here
- R
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- neural-link-between-agents@598eff3f59afe11738d64cb14cb8befe5e37cdc2 FIXES/NL-010/tools/evidence/nl010-opus/team-1/evidence/measure.cjs:1-50 · blob 2101b4d5978c42a129494211d31c4097ac4347a6 · GitHub at these lines
- State
- achieves: name · context: auto · stage: output · effects: dom, filesystem, network · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
const { chromium, devices } = require('playwright');
const fs = require('fs');
const PORT = 8413, BASE = `http://127.0.0.1:${PORT}/editions/202611012135/`;
const MOD = 'modules/202611012143-kuiper-shell.js';
const VP = [
['Galaxy S24', devices['Galaxy S24']],
['Pixel 7', devices['Pixel 7']],
['393', { ...devices['Pixel 7'], viewport: { width: 393, height: 852 } }],
['430', { ...devices['Pixel 7'], viewport: { width: 430, height: 932 } }],
['434', { ...devices['Pixel 7'], viewport: { width: 434, height: 932 } }],
['Pixel 7 landscape', devices['Pixel 7 landscape']],
['1280x800', { viewport: { width: 1280, height: 800 } }],
];
(async () => {
const browser = await chromium.launch({ args: ['--use-gl=angle','--use-angle=swiftshader','--enable-unsafe-swiftshader','--ignore-gpu-blocklist'] });
const out = {};
for (const [name, dev] of VP) {
const ctx = await browser.newContext(dev); const page = await ctx.newPage();
const errs = [];
page.on('pageerror', e => errs.push('pageerror ' + e.message));
page.on('console', m => { if (m.type() === 'error') errs.push('console ' + m.text()); });
await page.route(BASE, async r => { const res = await r.fetch(); let b = await res.text();
b = b.replace('</body>', `<script src="${MOD}"></script></body>`); r.fulfill({ response: res, body: b }); });
console.error('start', name, Date.now()); await page.goto(BASE, { waitUntil: 'domcontentloaded', timeout: 60000 }); await page.waitForTimeout(7000); console.error('loaded', name, Date.now());
out[name] = await page.evaluate(() => {
const R = e => { if (!e) return null; const r = e.getBoundingClientRect(); return [+r.x.toFixed(1), +r.y.toFixed(1), +r.width.toFixed(1), +r.height.toFixed(1)]; };
const bar = document.getElementById('kuiper-menu-bar'); const cs = e => getComputedStyle(e);
const vm = bar && bar.querySelector('.ventus-main'), vs = bar && bar.querySelector('.ventus-sub'), hh = bar && bar.querySelector('.hud-header'), vb = bar && bar.querySelector('.ventus-brand');
const titles = bar ? [...bar.querySelectorAll('.gm-title')].map(t => [t.textContent, ...R(t)]) : [];
const left = bar && bar.querySelector('.gm-side-left');
return { state: window.__KUIPER_SHELL__ ? window.__KUIPER_SHELL__.inspect() : (window.__KUIPER_MODULES__||{}).menuBar,
bar: R(bar), barBg: bar && cs(bar).backgroundColor, barBorder: bar && cs(bar).borderBottom, barFont: bar && cs(bar).font, pos: bar && cs(bar).position,
scroll: bar && [bar.scrollWidth, bar.clientWidth], titles,
titleStyle: titles.length && (s => [s.fontSize, s.letterSpacing, s.color, s.textTransform, s.paddingLeft])(cs(bar.querySelector('.gm-menu>.gm-title'))),
leftSide: R(left), leftContent: left && left.scrollWidth,
hudHeader: R(hh), brand: R(vb), brandCentre: vb && +((vb.getBoundingClientRect().x + vb.getBoundingClientRect().width/2) - innerWidth/2).toFixed(2),
vm: vm && [R(vm), cs(vm).fontSize, cs(vm).fontWeight, cs(vm).letterSpacing, cs(vm).color, cs(vm).textTransform, cs(vm).fontFamily, !!vm.closest('a')],
vs: vs && [R(vs), cs(vs).fontSize, cs(vs).letterSpacing, cs(vs).color],
flanks: hh && [...hh.children].map(c => cs(c).display),
strip: R(document.getElementById('kuiper-star-strip')), starIds: document.querySelectorAll('#kuiper-star-strip').length,
oldBar: (b => b && [cs(b).visibility, R(b)])(document.getElementById('bar')),
safeTop: null, iw: innerWidth };
});
out[name].errors = errs;
await ctx.close();
}
await browser.close();
fs.writeFileSync(__dirname + '/measure.json', JSON.stringify(out, null, 1));
console.log(JSON.stringify(out, null, 0));
})();Journey
A JavaScript module in the lead folder of Neural Link Between Agents that reads shell record, using SHA-256. It is built from the tap sel helper (`tapSel`).
renderneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-1/lead/journey.cjs · lines 1–35 of 35 · Not reached from any entry point (candidate for review) · pattern tapSel (shared by 6 files)
- What it does
- It loads shell record. Defines tapSel, card, st. Uses libraries playwright, fs, crypto. Side effects: changes the web page (DOM); reads or writes files.
- Why it exists in the grid workflow
- Domain stage agent_infra (repository name word 'agents'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- Inputs & outputs
- In: JSON file modules.json; JSON file shell-record.json; command-line arguments.
- What it achieves
- Defines `tapSel` and `card`. It reads `modules.json`.
- Why it matters
- No other file in the estate was found to import it.
- Application
- neural-link-between-agents · FIXES/NL-010/tools/evidence/nl010-opus/team-1/lead · JavaScript module
- Uses
- playwright, fs, crypto
- Used by
- none found
- Produces
- tapSel, card, st
- Defines here
- tapSel, card, st
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- neural-link-between-agents@598eff3f59afe11738d64cb14cb8befe5e37cdc2 FIXES/NL-010/tools/evidence/nl010-opus/team-1/lead/journey.cjs:1-35 · blob 66f7b124c54b3cf8509bc7a0e19914d2eb881861 · GitHub at these lines
- State
- achieves: name · context: auto · stage: output · effects: dom, filesystem · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
const { chromium, devices } = require('playwright'); const fs = require('fs'), crypto = require('crypto');
const ED = '/home/user/estate/kuiper-belt/editions/202611012135/', BASE = 'http://127.0.0.1:8410/editions/202611012135/';
const FILE = ED + 'modules/202611012143-kuiper-shell.js', buf = fs.readFileSync(FILE), sha = crypto.createHash('sha256').update(buf).digest('hex');
const man = JSON.parse(fs.readFileSync(ED + 'modules.json', 'utf8')); let rec = man.modules.find(m => m.id === 'kuiper-shell'); if (!rec) { rec = JSON.parse(fs.readFileSync('/tmp/nl010-opus/team-1/lead/shell-record.json', 'utf8')); man.modules.splice(1, 0, rec); } if (!man.order.includes('kuiper-shell')) man.order.splice(man.order.indexOf('hello') + 1, 0, 'kuiper-shell'); rec.sha256 = sha; rec.byt … [line shortened here: 416 characters; full line on GitHub]
(async () => {
const browser = await chromium.launch({ args: ['--use-gl=angle','--use-angle=swiftshader','--enable-unsafe-swiftshader','--ignore-gpu-blocklist'] });
for (const dn of (process.argv[2] || 'Pixel 7,Galaxy S24').split(',')) {
const page = await (await browser.newContext(devices[dn])).newPage(); const errs = [];
page.on('pageerror', e => errs.push(e.message)); page.on('console', m => { if (m.type() === 'error') errs.push(m.text()); });
await page.route(BASE + 'modules.json', r => r.fulfill({ status: 200, contentType: 'application/json', body: JSON.stringify(man) }));
await page.goto(BASE, { waitUntil: 'load' }); await page.waitForFunction(() => window.__KUIPER_EDITION__ && __KUIPER_EDITION__.done !== false && document.getElementById('kuiper-menu-bar'), null, { timeout: 60000 }).catch(() => {}); await page.waitForTimeout(6000);
const tapSel = async sel => { if (!(await page.locator(sel).count())) return false; const b = await page.locator(sel).first().boundingBox(); if (!b) return false; await page.touchscreen.tap(b.x + b.width / 2, b.y + b.height / 2); return true; };
const card = () => page.evaluate(() => { const c = document.getElementById('card'); return getComputedStyle(c).display !== 'none' && c.getBoundingClientRect().height > 0; });
const st = () => page.evaluate(() => ({ open: window.__KUIPER_SHELL__ ? __KUIPER_SHELL__.inspect().open : (KY.modules['kuiper-shell'] && KY.modules['kuiper-shell'].inspect().open), hs: JSON.stringify(history.state), hl: history.length }));
const out = { admitted: await page.evaluate(() => window.__KUIPER_EDITION__ && __KUIPER_EDITION__.admitted.map(a => a.id).join(',') + ' | refused ' + JSON.stringify(__KUIPER_EDITION__.refused)) };
// 1 VIEW > next verified line
await tapSel('#kmb-title-view'); await page.waitForTimeout(500); await tapSel('#kmb-panel-view [data-k="e"]'); await page.waitForTimeout(2500);
out.nextCard = await card(); out.afterNext = await st();
// 2 card details
const det = await tapSel('#card .lc-t, #card .ct'); await page.waitForTimeout(1500); out.details = det; out.detailsCard = await card();
// 3 WAFER > pick a row
await tapSel('#kmb-title-wafer'); await page.waitForTimeout(800);
const row = await tapSel('#kmb-panel-wafer #lineslist [data-i]'); await page.waitForTimeout(2500);
out.pickRow = row; out.pickCard = await card(); out.afterPick = await st();
const det2 = await tapSel('#card .lc-t, #card .ct'); await page.waitForTimeout(1500); out.details2Card = await card();
// 4 back gesture closes the card and stays
await page.goBack({ waitUntil: 'commit', timeout: 5000 }).catch(e => out.backErr = e.message.split('\n')[0]); await page.waitForTimeout(1200); out.backCard = await card(); out.url = page.url().replace(BASE, '.../'); out.afterBack = await st();
// 5 open a panel while... ABOUT then back closes panel only
await tapSel('#kmb-title-about'); await page.waitForTimeout(500); await page.goBack({ waitUntil: 'commit', timeout: 5000 }).catch(e => out.backErr2 = e.message.split('\n')[0]); await page.waitForTimeout(1000); out.aboutAfterBack = await st(); out.url2 = page.url().replace(BASE, '.../');
out.errs = errs;
console.log(dn, JSON.stringify(out));
await page.context().close();
}
await browser.close();
})();Proof Keys
A Python module in the evidence folder of Neural Link Between Agents that reads keys summary, using SHA-256.
storageneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-10/evidence/proof_keys.py · lines 1–55 of 55 · Entry point
- What it does
- It loads keys summary. Uses libraries json, os, re, subprocess, collections. Side effects: reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain stage agent_infra (repository name word 'agents'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- Inputs & outputs
- In: JSON file keys.json; JSON file keys-summary.json. Out: JSON file keys-summary.json.
- Downstream impact
- It is itself an entry point (Python module); no other file was found loading it.
- What it achieves
- Write `editions/202611012135/proof/keys-summary.json` in Edition 4's form, every value re-measured here. It reads `/keys.json`.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- neural-link-between-agents · FIXES/NL-010/tools/evidence/nl010-opus/team-10/evidence · Python module
- Uses
- json, os, re, subprocess, collections
- Used by
- none found
- 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
- neural-link-between-agents@598eff3f59afe11738d64cb14cb8befe5e37cdc2 FIXES/NL-010/tools/evidence/nl010-opus/team-10/evidence/proof_keys.py:1-55 · blob 3bdabaadf18ef2b1926e8427843e32fceb949fcd · GitHub at these lines
- State
- achieves: comment · context: auto · stage: output · effects: filesystem, process · domain stage: agent_infra · users: ai_agent · canonical: supporting_data
#!/usr/bin/env python3
"""Write editions/202611012135/proof/keys-summary.json in Edition 4's form, every value re-measured here."""
import json, os, re, subprocess, collections
KB = '/home/user/estate/kuiper-belt'; ED = KB + '/editions/202611012135'
KP = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'kp') # cwd holding C:/Users/vikra/Documents/GitHub -> clones
k = json.load(open(ED + '/keys.json')); B = k['bodies']; byk = {b['key']: b for b in B if b.get('key') is not None}
e4 = json.load(open(KB + '/editions/202611012027/proof/keys-summary.json'))
rt = []
for r in e4['roundtrip_key_py']:
key = r['key']; b = byk.get(key, {})
try:
p = subprocess.run(['python3', KB + '/tools/key.py', str(key)], cwd=KP, capture_output=True, text=True, timeout=900)
except subprocess.TimeoutExpired:
rt.append({'key': key, 'pass': None, 'repo': b.get('repo'), 'path': b.get('path'), 'line': b.get('line'),
'checks': 'NOT EVALUATED: key.py did not finish in 900 s (load average over 80)', 'edition4_pass': r.get('pass')}); continue
o = p.stdout.splitlines()
if 'REFUSED: no local clone' in p.stdout:
rt.append({'key': key, 'pass': None, 'repo': b.get('repo'), 'path': b.get('path'), 'line': b.get('line'),
'checks': 'NOT EVALUATED: no clone of ' + str(b.get('repo')) + ' on this machine (key.py: ' + o[-1].strip() + ')',
'edition4_pass': r.get('pass')}); continue
m1 = next((re.match(r'key [\d,]+ -> (\S+) / ([0-9a-f]+) / line', l) for l in o if l.startswith('key ')), None)
m2 = next((re.match(r'\s+(.+?) : (\d+)\s+\(blob', l) for l in o if '(blob' in l), None)
txt = next((l[l.index('| ') + 2:] if '| ' in l else '' for l in o if l.lstrip().startswith('|')), None)
kp = {'repo': m1 and m1.group(1), 'commit': m1 and m1.group(2), 'path': m2 and m2.group(1),
'line': m2 and int(m2.group(2)), 'text': txt}
lt = b.get('line_text'); q = b.get('quote') or ''
checks = {'exit0': p.returncode == 0, 'repo': (kp['repo'] or '').lower() == (b.get('repo') or '').lower(),
'commit': bool(kp['commit']) and (b.get('commit') or '').startswith(kp['commit']),
'path': kp['path'] == b.get('path'), 'line': kp['line'] == b.get('line'),
'text_eq_git_line': txt is not None and lt is not None and txt.rstrip('\r\n') == lt.rstrip('\r\n'),
'text_vs_quote': b.get('quote_check')}
rt.append({'key': key, 'pass': all(v for kk, v in checks.items() if kk != 'text_vs_quote'), 'repo': b.get('repo'),
'path': b.get('path'), 'line': b.get('line'), 'checks': checks, 'key_py': kp,
'edition4_pass': r.get('pass')})
pl = [b for b in B if b.get('on_wafer')]
out = {
'edition': 'Kuiper Edition 5 (202611012135), keys.json byte-identical to Edition 4 (sha256 1c293c33…242b)',
'bodies': len(B), 'on_wafer': len(pl), 'verified': sum(1 for b in B if b.get('verified')),
'not_on_wafer': [{'id': b.get('id'), 'repo': b.get('repo'), 'commit': b.get('commit'), 'reason': 'commit not on the wafer'} for b in B if not b.get('on_wafer')],
'roundtrip_key_py': rt,
'quote_not_at_line': [{'id': b.get('id'), 'repo': b.get('repo'), 'path': b.get('path'), 'line': b.get('line'), 'key': b.get('key'),
'quote_key': b.get('quote_key'), 'check': b.get('quote_check')} for b in B if b.get('quote_key')],
'line_text': {'placed_quote_differs': sum(1 for b in pl if b.get('quote') != b.get('line_text')),
'placed_empty_line': sum(1 for b in pl if b.get('line_text') == ''),
'longest': max(((len(b.get('line_text') or ''), b['repo'] + ' ' + b['path'] + ':' + str(b['line']), b['key']) for b in B))},
'method': 'tools/key.py run per key from a scratch cwd whose relative path C:/Users/vikra/Documents/GitHub/<repo> links to the local clones (key.py ROOTS, tools/key.py:31); key.py is not edited. Counts read from keys.json.',
'render': 'NOT EVALUATED here: the Android journey is proof/android-journey.json (Opus 10 tester, team 9 script).',
'note': e4['note'],
}
os.makedirs(ED + '/proof', exist_ok=True)
json.dump(out, open(ED + '/proof/keys-summary.json', 'w'), indent=1, ensure_ascii=False); open(ED + '/proof/keys-summary.json', 'a').write('\n')
print('bodies', out['bodies'], 'on_wafer', out['on_wafer'], 'verified', out['verified'], 'not_on_wafer', len(out['not_on_wafer']),
'roundtrips pass', sum(1 for r in rt if r['pass'] is True), 'of', len(rt), 'quote_not_at_line', len(out['quote_not_at_line']))
for r in rt:
if r['pass'] is not True: print('NOT PASS', r['key'], r['checks'], r.get('key_py'))Proof Sha
A shell script in the evidence folder of Neural Link Between Agents that uses SHA-256.
automationneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-10/evidence/proof_sha.sh · lines 1–5 of 5 · Entry point
- What it does
- Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage agent_infra (repository name word 'agents'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- Downstream impact
- It is itself an entry point (shell script); no other file was found loading it.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- neural-link-between-agents · FIXES/NL-010/tools/evidence/nl010-opus/team-10/evidence · shell script
- Uses
- none found
- Used by
- none found
- 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
- neural-link-between-agents@598eff3f59afe11738d64cb14cb8befe5e37cdc2 FIXES/NL-010/tools/evidence/nl010-opus/team-10/evidence/proof_sha.sh:1-5 · blob c8722cd2d3fa4cdb4a7172f81ef57735986521f9 · GitHub at these lines
- State
- achieves: name · context: auto · stage: unknown · effects: process · domain stage: agent_infra · users: ai_agent · canonical: unknown
#!/bin/bash
# proof/edition-sha256.txt: every file of the edition folder except handoff/, proof/handoff/ and this file; sha256sum format, sorted (Edition 4's ./ form)
cd /home/user/estate/kuiper-belt/editions/202611012135 || exit 2
find . -type f ! -path './handoff/*' ! -path './proof/handoff/*' ! -path './proof/edition-sha256.txt' -print0 | LC_ALL=C sort -z | xargs -0 sha256sum > proof/edition-sha256.txt
wc -l proof/edition-sha256.txtRender
A Python module in the evidence folder of Neural Link Between Agents that works with reg requires (`reg_requires`) and header requires (`header_requires`), using SHA-256.
ingestneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-10/evidence/render.py · lines 1–129 of 129 · Entry point · pattern block (shared by 4 files)
- What it does
- It loads data. Defines 6 functions or classes, including reg_requires, header_requires, handoff_dir, evidence_keys, test_verdict. Uses libraries hashlib, json, os, re, glob. Side effects: reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain stage agent_infra (repository name word 'agents'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- Inputs & outputs
- In: JSON file modules.json; JSON file MODULE.json.
- Downstream impact
- It is itself an entry point (Python module); no other file was found loading it.
- What it achieves
- It is built from the handoff dir helper (`handoff_dir`), the evidence keys helper (`evidence_keys`) and the block step (`block`). Render the live sections of `handoff/10-integration/EVIDENCE.md` from the template.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- neural-link-between-agents · FIXES/NL-010/tools/evidence/nl010-opus/team-10/evidence · Python module
- Uses
- hashlib, json, os, re, glob, datetime, subprocess
- Used by
- none found
- Produces
- reg_requires, header_requires, handoff_dir, evidence_keys, test_verdict, block
- Defines here
- reg_requires, header_requires, handoff_dir, evidence_keys, test_verdict, block
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- neural-link-between-agents@598eff3f59afe11738d64cb14cb8befe5e37cdc2 FIXES/NL-010/tools/evidence/nl010-opus/team-10/evidence/render.py:1-129 · blob 5f8fa24e8aeb3b39cb7dc43c73ab0a145f5739f0 · GitHub at these lines
- State
- achieves: comment · context: auto · stage: ingest · effects: filesystem, process · domain stage: agent_infra · users: ai_agent · canonical: unknown
#!/usr/bin/env python3
"""Render the live sections of handoff/10-integration/EVIDENCE.md from the template. Read-only on every other file."""
import hashlib, json, os, re, glob, datetime, subprocess
ED = '/home/user/estate/kuiper-belt/editions/202611012135'
HERE = os.path.dirname(os.path.abspath(__file__))
HOOKS = ('keyPlace address describe findBy flyTo home homeCamera safeBox lightTime showNew goKey fmt words esc cv ov o2 '
'hud big sub card gbox gin SPACE N repos commits wafer').split()
EXTRA = 'cam lit sel redraw draw panels'.split()
KEYRE = re.compile(r'[A-Za-z0-9_.-]+@[0-9a-f]{7,40}\b[^\n`|]*?[\w./-]+:\d+')
now = datetime.datetime.now(datetime.timezone.utc).strftime('%Y-%m-%d %H:%M:%SZ')
sha = lambda p: hashlib.sha256(open(p, 'rb').read()).hexdigest()
def reg_requires(src):
m = re.search(r'register\(\{.*?requires:\s*(\[[^\]]*\]|[A-Z_]+)', src, re.S)
if not m: return None
v = m.group(1)
if not v.startswith('['):
m2 = re.search(re.escape(v) + r'\s*=\s*(\[[^\]]*\])', src, re.S)
if not m2: return None
v = m2.group(1)
return re.findall(r"['\"]([^'\"]+)['\"]", v)
def header_requires(src, known):
head = src[:src.find('*/') + 2] if src.startswith('/*') and 0 < src.find('*/') < 6000 else ''
blob = head + '\n' + '\n'.join(l for l in src.splitlines()[:8] if l.lstrip().startswith('//'))
m = re.search(r'requires(?: \(C8\))?:\s*(.*?)(?:\n\s*(?:\*\s*)?(?:optional|provides|Public|[A-Z]{2,})|·\s*provides|provides:|\.\s+provides|\*/)', blob, re.S)
if not m: return None
return [t for t in dict.fromkeys(re.findall(r'(?<![#\w-])[A-Za-z][A-Za-z0-9-]*', m.group(1))) if t in HOOKS + EXTRA or t in known]
def handoff_dir(team):
hd = sorted(d for d in os.listdir(os.path.join(ED, 'handoff')) if d.startswith(str(team).zfill(2) + '-'))
return hd[0] if hd else None
def evidence_keys(hd):
p = os.path.join(ED, 'handoff', hd, 'EVIDENCE.md') if hd else ''
if not (p and os.path.exists(p)): return None
t = open(p, encoding='utf-8').read()
return (len(KEYRE.findall(t)), len(re.findall(r'(?<![\w@])[\w./-]*[A-Za-z][\w./-]*:\d+(?:-\d+)?\b', t)))
def test_verdict(hd):
p = os.path.join(ED, 'handoff', hd, 'TEST.md') if hd else ''
if not (p and os.path.exists(p)): return 'no TEST.md'
t = open(p, encoding='utf-8').read()
m = re.search(r'(?im)^\**(?:verdict|status|result)\**\s*:?\s*\**\s*(.{0,90})', t)
return (m.group(1).strip() if m else 'no verdict line').replace('|', '/')
mp = os.environ.get('MANIFEST') or os.path.join(ED, 'modules.json')
man = json.load(open(mp))
known = set(); out = []
out.append(f'Read {now}: `modules.json` sha256 `{sha(mp)}`, `order` = `{json.dumps(man.get("order"))}`.\n')
recs = {m.get('id'): m for m in man.get('modules', [])}
if not man.get('order'):
out.append('No module is admitted yet (`order` is empty). The candidates on disk are checked in 2b below.\n')
earlier = set()
for i, oid in enumerate(man.get('order', []), 1):
m = recs.get(oid)
if not m:
out.append(f'### {i}. `{oid}`: IN ORDER BUT NOT IN `modules` (the loader refuses it: `in order but not in modules`)\n'); continue
p = os.path.join(ED, m['path']); exists = os.path.exists(p)
act = sha(p) if exists else 'MISSING'; nb = os.path.getsize(p) if exists else -1
src = open(p, encoding='utf-8').read() if exists else ''
l1 = src.splitlines()[0] if src else ''
hm = re.match(r'/\* kuiper module (\S+), generation (\d{12}) \(UTC\), (.*?)(?:\s*\*/)?$', l1)
fs = re.match(r'(\d{12})-', os.path.basename(m['path']))
rg = re.search(r'register\(\{.*?generation:\s*([\'"]?[\w]+)', src, re.S)
rgen = rg.group(1).strip('\'"') if rg else None
if rgen and not rgen.isdigit():
mm = re.search(re.escape(rgen) + r"\s*=\s*['\"](\d{12})", src); rgen = mm.group(1) if mm else rgen
adm = set(HOOKS) | set(EXTRA) | earlier
req = m.get('requires', []); bad = [r for r in req if r not in adm]
rr = reg_requires(src); hr = header_requires(src, earlier)
hd = handoff_dir(m.get('team', '')); ek = evidence_keys(hd)
ms = os.path.join(ED, 'handoff', hd, 'MODULE.sha256') if hd else ''
msv = open(ms).read().split()[0] if ms and os.path.exists(ms) and open(ms).read().split() else None
stamps = [fs and fs.group(1), hm and hm.group(2), m.get('generation'), rgen]
ok = lambda b: 'PASS' if b else '**FAIL**'
out.append(f'### {i}. `{oid}` — `{m["path"]}` (team {m.get("team")}, step {m.get("step")})\n')
out.append('| check | recorded | measured | result |\n|---|---|---|---|')
out.append(f'| sha256 | `{m["sha256"]}` (modules.json) | `{act}` (sha256sum) | {ok(act == m["sha256"])} |')
out.append(f'| sha256 in handoff MODULE.sha256 | `{msv}` | `{act}` | {ok(msv == act) if msv else "no MODULE.sha256"} |')
out.append(f'| bytes / budget | {m.get("bytes")} / {m.get("byte_budget")} | {nb} | {ok(nb == m.get("bytes") and nb <= (m.get("byte_budget") or 0))} |')
out.append(f'| header licence line (line 1) | record `licence`: {m.get("licence")} | `{(hm.group(3) if hm else l1)}` | {ok(bool(hm) and bool(m.get("licence")) and m.get("licence").split()[0].rstrip(",") in hm.group(3))} |')
out.append(f'| header id | `{oid}` | `{hm and hm.group(1)}` | {ok(bool(hm) and hm.group(1) == oid)} |')
out.append(f'| stamp: file / header / record / registration | | {" / ".join(str(s) for s in stamps)} | {ok(len(set(stamps)) == 1 and None not in stamps)} |')
out.append(f'| requires (record) against HOOKS.md (28 hooks + 6 + earlier provides) | `{" ".join(req)}` | not admissible: {", ".join(bad) if bad else "none"} | {ok(not bad)} |')
out.append(f'| requires: registration = record | | `{" ".join(rr) if rr is not None else "not found"}` | {ok(rr is not None and set(rr) == set(req))} |')
out.append(f'| requires: header = record | | `{" ".join(hr) if hr is not None else "not found"}` | {ok(hr is not None and set(hr) == set(req))} |')
out.append(f'| provides | `{" ".join(m.get("provides", []))}` | id in provides: {oid in m.get("provides", [])} | {ok(oid in m.get("provides", []))} |')
out.append(f'| team EVIDENCE.md with keys | `handoff/{hd}/EVIDENCE.md` | {"absent" if ek is None else str(ek[0]) + " full keys `repo@sha path:line`; " + str(ek[1]) + " `path:line` references in all (short forms resolve against the file's heads table)"} | {ok(bool(ek) and ek[1] > 0)} |')
tp = os.path.join(ED, 'handoff', hd, 'TEST.md') if hd else ''
tt = open(tp, encoding='utf-8').read() if tp and os.path.exists(tp) else ''
named = [x[:12] for x in set(re.findall(r'\b[0-9a-f]{64}\b', tt))]
out.append(f'| team TEST.md verdict | | {test_verdict(hd)} | |')
out.append(f'| TEST.md ran on the admitted bytes (admitted sha256 written in TEST.md) | `{act[:12]}` | {"named" if act in tt else "**not named**"}; 64-hex values in TEST.md: {", ".join("`"+x+"`" for x in sorted(named)[:6]) or "none"} | {"PASS" if act in tt else "**CHECK**"} |')
out.append(f'| team HANDOFF.md | | {"present" if hd and os.path.exists(os.path.join(ED, "handoff", hd, "HANDOFF.md")) else "absent"} | |\n')
earlier |= set(m.get('provides', [])) | {oid}
# references (the loader): sha256 and the marker block equal to index.html's (E6)
B = 'KUIPER HOOK TABLE AND LOADER kuiper.hooks.v1'
def block(p):
L = open(p, encoding='utf-8').read().split('\n'); i = [n for n, l in enumerate(L) if B in l]
return ('\n'.join(L[i[0]:i[-1] + 1]), i[0] + 1, i[-1] + 1) if len(i) >= 2 else (None, None, None)
for r in man.get('references', []):
p = os.path.join(ED, r['file']); a = sha(p) if os.path.exists(p) else 'MISSING'
bi, i0, i1 = block(os.path.join(ED, 'index.html')); bl, j0, j1 = block(p) if os.path.exists(p) else (None, None, None)
out.append(f'### reference `{r["file"]}` (team {r.get("team")}, never fetched)\n')
out.append('| check | recorded | measured | result |\n|---|---|---|---|')
out.append(f'| sha256 | `{r.get("sha256")}` | `{a}` | {"PASS" if a == r.get("sha256") else "**FAIL**"} |')
out.append(f'| marker block byte-identical to index.html | index.html :{i0}-{i1} | reference :{j0}-{j1}; sha256 of block `{hashlib.sha256(bi.encode()).hexdigest()[:12] if bi else None}` / `{hashlib.sha256(bl.encode()).hexdigest()[:12] if bl else None}` | {"PASS" if bi and bi == bl else "**FAIL** (or not yet patched in)"} |')
out.append(f'| header line 1 | | `{open(p).readline().strip()}` | |\n')
# 2b: candidates on disk
cand = ['\n| file | sha256 (sha256sum) | bytes | line 1 (licence) | registration requires | handoff MODULE.sha256 | team TEST.md |', '|---|---|---|---|---|---|---|']
for p in sorted(glob.glob(os.path.join(ED, 'modules', '*.js'))):
s = open(p, encoding='utf-8').read(); l1 = s.splitlines()[0].replace('|', '/')
hid = re.match(r'/\* kuiper (?:module (\S+),|loader reference)', l1)
mid = hid.group(1) if hid and hid.group(1) else None
team = None
for d in os.listdir(os.path.join(ED, 'handoff')):
for f in ('MODULE.json',):
fp = os.path.join(ED, 'handoff', d, f)
if mid and os.path.exists(fp):
try:
if json.load(open(fp)).get('id') == mid: team = d
except Exception: pass
if not team:
team = {'hello': '04-loader', 'kuiper-shell': '01-shell', 'line-card': '02-card', 'layers': '03-layers',
'see-through': '05-see-through', 'file': '06-file', 'apps': '07-apps', 'drift': '08-drift'}.get(mid or '', '04-loader' if 'loader' in p else None)
ms = os.path.join(ED, 'handoff', team, 'MODULE.sha256') if team else ''
msv = '—'
if ms and os.path.exists(ms):
a = sha(p); msv = 'lists it, equal' if a in open(ms).read() else 'present, **this sha256 not in it**'
rr = reg_requires(s)
cand.append(f'| `{os.path.basename(p)}` | `{sha(p)}` | {os.path.getsize(p)} | `{l1[:110]}` | {len(rr) if rr else "—"} names | {msv} | {test_verdict(team)[:60] if team else "—"} |')
open(os.path.join(HERE, 'live-modules.md'), 'w').write('\n'.join(out))
open(os.path.join(HERE, 'live-candidates.md'), 'w').write('\n'.join(cand) + '\n')
print('\n'.join(out)); print('\n'.join(cand))K1 Scope
A Python module in the evidence folder of Neural Link Between Agents.
otherneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-12/evidence/k1_scope.py · lines 1–11 of 11 · Not reached from any entry point (candidate for review)
- What it does
- Uses libraries io, os, sys, subprocess, check_proof. Side effects: reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain stage agent_infra (repository name word 'agents'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- 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
- No other file in the estate was found to import it.
- Application
- neural-link-between-agents · FIXES/NL-010/tools/evidence/nl010-opus/team-12/evidence · Python module
- Uses
- io, os, sys, subprocess, check_proof
- Used by
- none found
- 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
- neural-link-between-agents@598eff3f59afe11738d64cb14cb8befe5e37cdc2 FIXES/NL-010/tools/evidence/nl010-opus/team-12/evidence/k1_scope.py:1-11 · blob 1a96a07bff3178423a6284be265b7e481ed0b9c6 · GitHub at these lines
- State
- achieves: name · context: auto · stage: ingest · effects: filesystem, process · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
import io, os, sys, subprocess
ROOT = '/home/user/estate/kuiper-belt'
sys.path.insert(0, os.path.join(ROOT, 'tools'))
from check_proof import leaks
files = []
for base in ['see-through', 'editions/202611012135/handoff/12-see-through-reader']:
for d, _, fs in os.walk(os.path.join(ROOT, base)):
files += [os.path.join(d, f) for f in fs]
bad = [f for f in files if os.path.getsize(f) <= 3_000_000 and leaks(io.open(f, encoding='utf-8', errors='replace').read())]
print('team-12 scope K1: %d files scanned, %d match a private digest' % (len(files), len(bad)))
for b in bad: print(' ', os.path.relpath(b, ROOT))Remap
A JavaScript file in the evidence folder of Neural Link Between Agents.
transformneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-12/evidence/remap.cjs · lines 1–11 of 11 · Not reached from any entry point (candidate for review)
- What it does
- It calculates its inputs. Defines key.
- Why it exists in the grid workflow
- Domain stage agent_infra (repository name word 'agents'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- What it achieves
- Defines `key`.
- Why it matters
- No other file in the estate was found to import it.
- Application
- neural-link-between-agents · FIXES/NL-010/tools/evidence/nl010-opus/team-12/evidence · script
- Uses
- none found
- Used by
- none found
- Produces
- key
- Defines here
- key
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- neural-link-between-agents@598eff3f59afe11738d64cb14cb8befe5e37cdc2 FIXES/NL-010/tools/evidence/nl010-opus/team-12/evidence/remap.cjs:1-11 · blob fd3889ac3d5c60bbf9da5d27d12a05d0517a3147 · GitHub at these lines
- State
- achieves: name · context: auto · stage: transform · effects: none found · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
const N=20000, NSUB=5800, F=63340120796, W=63363988142, OLD=59637070538;
const key=(j,s)=>Math.floor((j+0.5)*s/N);
let bad=0, bad2=0;
for (const [a,b] of [[F,W],[W,F],[OLD,F],[F,OLD]]) for (let j=0;j<NSUB;j++){ const k=key(j,a); const jj=Math.floor(k*N/a);
if (jj!==j || key(jj,a)!==k) bad++; // STEPS formula, no +-1 needed?
let hit=-1; for (let d=-1;d<=1;d++) if (j+d>=0&&j+d<NSUB&&key(j+d,a)===k) hit=j+d; if (hit!==j) bad2++; }
console.log('STEPS j=floor(k*N/space) recovers j for all 4x5800:', bad===0, ' code +-1 window recovers j:', bad2===0);
console.log('subKey[1182] frozen', key(1182,F), ' main-sky', key(1182,W), ' 7a65dd3-sky', key(1182,OLD));
const k0=36064705400; console.log('36064705400 / frozen: j', Math.floor(k0*N/F), 'is star key?', key(Math.floor(k0*N/F),F)===k0, ' < SPACE', k0<F);
// false-positive remap: a non-star key that passes the check?
let fp=0; for (let t=0;t<200000;t++){ const k=Math.floor(Math.random()*F); const j=Math.floor(k*N/F); if (j<NSUB && key(j,F)===k) fp++; } console.log('random keys that pass the star-key check:', fp,'/200000');Check Keys
A Python module in the evidence folder of Neural Link Between Agents.
ingestneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-2/evidence/check_keys.py · lines 1–26 of 26 · Not reached from any entry point (candidate for review)
- What it does
- It loads data. Uses libraries re, subprocess, sys. Side effects: reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain stage agent_infra (repository name word 'agents'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- Inputs & outputs
- In: command-line arguments.
- What it achieves
- Re-read every key row of an `EVIDENCE.md`: | id | claim | key | fragment | key = repo@sha path:line[-line] ; sha WT = working tree.
- Why it matters
- No other file in the estate was found to import it.
- Application
- neural-link-between-agents · FIXES/NL-010/tools/evidence/nl010-opus/team-2/evidence · Python module
- Uses
- re, subprocess, sys
- Used by
- none found
- 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
- neural-link-between-agents@598eff3f59afe11738d64cb14cb8befe5e37cdc2 FIXES/NL-010/tools/evidence/nl010-opus/team-2/evidence/check_keys.py:1-26 · blob bc11b52fe7ea75bae198563683582bea65986ce2 · GitHub at these lines
- State
- achieves: comment · context: auto · stage: ingest · effects: filesystem, process · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
# Re-read every key row of an EVIDENCE.md: | id | claim | key | fragment |
# key = repo@sha path:line[-line] ; sha WT = working tree. PASS only when the line exists and the fragment is on it.
import re, subprocess, sys
REPOS = {'kuiper-belt': '/home/user/estate/kuiper-belt', 'gridatlas': '/home/user/estate/gridatlas',
'neural-link': '/home/user/neural-link-between-agents'}
rows = ok = 0; bad = []
for ln in open(sys.argv[1], encoding='utf-8'):
cells = [c.strip() for c in re.split(r'(?<!\\)\|', ln.strip().strip('|'))] if ln.startswith('|') else []
if len(cells) < 4: continue
m = re.fullmatch(r'`?([\w-]+)@(\w+) ([^:`]+):(\d+)(?:-(\d+))?`?', cells[2])
if not m: continue
repo, sha, path, a, b = m.groups(); a = int(a); b = int(b or a)
frag = cells[3].strip('`').replace('\\|', '|')
d = REPOS[repo]
try:
txt = open(d + '/' + path, encoding='utf-8').read() if sha == 'WT' else \
subprocess.run(['git', '-C', d, 'show', sha + ':' + path], capture_output=True, check=True).stdout.decode('utf-8', 'replace')
except Exception as e:
bad.append((cells[0], 'missing file')); rows += 1; continue
L = txt.split('\n'); rows += 1
if b > len(L) or not any(frag in L[i - 1] for i in range(a, b + 1)):
bad.append((cells[0], cells[2], frag)); continue
ok += 1
print('rows', rows, 'PASS', ok, 'FAIL', len(bad))
for x in bad: print(' FAIL', x)
sys.exit(1 if bad or not rows else 0)