In this section
- Coder Walk R2 render · globalgrid2050 / testcode/202609142225/proof/coder-walk-r2.mjs lines 1–213
- Coder Walk render · globalgrid2050 / testcode/202609142225/proof/coder-walk.mjs lines 1–225
- Engine Route storage · globalgrid2050 / testcode/202609162200-quantum-twin-flights/pipeline/engine-route.py lines 1–19
- Route storage · globalgrid2050 / testcode/202609162200-quantum-twin-flights/pipeline/route.py lines 1–36
- Wafer Development Environment — GridAtlas Page render · globalgrid2050 / testcode/wafer-development-environment/202609170041-gridatlas/index.html lines 1–44
- Wafer Development Environment — Land GridAtlas Page render · globalgrid2050 / testcode/wafer-development-environment/202609170045-land-gridatlas/index.html lines 1–44
Coder Walk R2
A JavaScript module in the proof folder of GlobalGrid2050. It is built from the sleep step (`sleep`), the begin step (`begin`) and the note step (`note`).
renderglobalgrid2050 / testcode/202609142225/proof/coder-walk-r2.mjs · lines 1–213 of 213 · version 2026-09-14 22:25 · Not reached from any entry point (candidate for review) · pattern facts (shared by 5 files)
- What it does
- It loads data. Defines 10 functions or classes, including sleep, begin, note, blocker, shot. Uses libraries node:module, node:fs, C:/Users/vikra/Desktop/Claude-Sandbox-MSI/bench/node_modules/puppeteer-core. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet).
- Why it exists in the grid workflow
- Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
- Inputs & outputs
- In: command-line arguments. Out: JSON file coder-walk-r2.json.
- What it achieves
- Mobile-coder critic, round 2: a person on a 430 px phone composes a small tool by touch alone, after the repair round. It writes `coder-walk-r2.json`.
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · testcode/202609142225/proof · JavaScript module
- Uses
- node:module, node:fs, C:/Users/vikra/Desktop/Claude-Sandbox-MSI/bench/node_modules/puppeteer-core
- Used by
- none found
- Produces
- sleep, begin, note, blocker, shot, probe, tapEl, drag, facts, r
- Defines here
- sleep, begin, note, blocker, shot, probe, tapEl, drag, facts, r
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 testcode/202609142225/proof/coder-walk-r2.mjs:1-213 · blob ceeec36d917b26232df256cbe45cb77724b07278 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom, filesystem, storage · domain stage: experimental · users: none · canonical: unreached_review
// Mobile-coder critic, round 2: a person on a 430 px phone composes a small tool by touch alone, after the repair round.
// Fresh browser, empty localStorage, every input through the touchscreen emulation (tap / touchStart-Move-End), never the mouse.
// node C:/Users/vikra/Documents/GitHub/globalgrid2050/testcode/202609142225/proof/coder-walk-r2.mjs [port]
// Writes proof/coder-r2-<step>.png, proof/coder-walk-r2.json and prints the log.
import { createRequire } from 'node:module';
import fs from 'node:fs';
const require = createRequire(import.meta.url);
const puppeteer = require('C:/Users/vikra/Desktop/Claude-Sandbox-MSI/bench/node_modules/puppeteer-core');
const PORT = process.argv[2] || '8896', BASE = `http://127.0.0.1:${PORT}/testcode/202609142225/`;
const OUT = 'C:/Users/vikra/Documents/GitHub/globalgrid2050/testcode/202609142225/proof/';
const sleep = ms => new Promise(r => setTimeout(r, ms));
const browser = await puppeteer.launch({ executablePath: 'C:/Program Files/Google/Chrome/Application/chrome.exe', headless: 'new', args: ['--enable-gpu', '--use-gl=angle', '--use-angle=d3d11', '--ignore-gpu-blocklist', '--no-first-run'], protocolTimeout: 90000 });
const report = { run_utc: new Date().toISOString(), base: BASE, viewport: '430x900 dpr2 isMobile hasTouch', steps: [], console: [] };
const targets = []; browser.on('targetcreated', t => targets.push({ url: t.url(), type: t.type() }));
const page = await browser.newPage();
await page.setViewport({ width: 430, height: 900, deviceScaleFactor: 2, isMobile: true, hasTouch: true });
page.on('console', m => { if (m.type() === 'error' || m.type() === 'warning') report.console.push(m.type() + ': ' + m.text()); });
page.on('pageerror', e => report.console.push('pageerror: ' + e.message));
page.on('requestfailed', r => report.console.push('requestfailed: ' + r.url()));
let taps = 0, drags = 0, step = null;
function begin(name) { step = { name, taps: 0, drags: 0, touchOnly: true, notes: [] }; report.steps.push(step); console.log('\n== ' + name); }
function note(s) { step.notes.push(s); console.log(' ' + s); }
function blocker(s) { step.touchOnly = false; step.blocker = s; note('BLOCKER: ' + s); }
async function shot(name) { await page.screenshot({ path: OUT + `coder-r2-${name}.png` }); step.shots = (step.shots || []).concat(`coder-r2-${name}.png`); }
async function probe(sel, text) {
return page.evaluate((s, t) => { const es = [...document.querySelectorAll(s)]; const e = t ? es.find(x => x.textContent.trim() === t || x.textContent.trim().startsWith(t)) : es[0]; if (!e) return null; const b = e.getBoundingClientRect(); const cx = b.left + b.width / 2, cy = b.top + b.height / 2; const hit = document.elementFromPoint(cx, cy); const reach = !!hit && (hit === e || e.contains(hit) … [line shortened here: 891 characters; full line on GitHub]
}
async function tapEl(sel, text, why) {
const p = await probe(sel, text); if (!p) { note(`NO ELEMENT ${sel} ${text || ''} (${why})`); return null; }
if (!p.inViewport || !p.reach) note(`target "${p.text}" at y ${p.top}-${p.bottom}: ${p.inViewport ? '' : 'OFF SCREEN; '}${p.reach ? '' : 'covered by ' + p.hitDesc}`);
await page.touchscreen.tap(p.x, p.y); step.taps++; taps++;
note(`tap ${step.taps}: ${why} → "${p.text.slice(0, 40)}" ${p.w}x${p.h} at (${Math.round(p.x)},${Math.round(p.y)})${p.w < 44 || p.h < 44 ? ' [under 44 px]' : ''}${p.reach && p.inViewport ? '' : ' [NOT REACHABLE]'}`);
return p;
}
async function drag(x0, y0, x1, y1, steps = 8, dt = 20) { await page.touchscreen.touchStart(x0, y0); for (let s = 1; s <= steps; s++) { await page.touchscreen.touchMove(x0 + (x1 - x0) * s / steps, y0 + (y1 - y0) * s / steps); await sleep(dt); } await page.touchscreen.touchEnd(); step.drags++; drags++; }
const facts = () => page.evaluate(() => {
const r = id => { const e = document.getElementById(id); if (!e || e.hidden) return null; const b = e.getBoundingClientRect(); return { top: Math.round(b.top), bottom: Math.round(b.bottom), h: Math.round(b.height) }; };
const P = document.getElementById('panel'), T = document.getElementById('tray'), chips = T.querySelector('.chips'), cnt = T.querySelector('.cnt');
return { innerH: innerHeight, scrollY: Math.round(scrollY), docScrollW: document.documentElement.scrollWidth, stage: r('stage'), panel: r('panel'), panelTall: P.classList.contains('tall'), panelDisplay: getComputedStyle(P).display, sheet: r('sheet'),
tray: T.textContent.trim(), trayChips: [...T.querySelectorAll('.rc')].map(c => c.textContent.replace('×', '').trim()), trayCnt: cnt ? cnt.textContent : null,
trayClip: chips ? { chipsScrollW: chips.scrollWidth, chipsClientW: chips.clientWidth, cntScrollW: cnt.scrollWidth, cntClientW: cnt.clientWidth, cntTruncated: cnt.scrollWidth > cnt.clientWidth + 1 } : null,
url: location.search, head: (document.querySelector('#panel .u-h') || {}).textContent || null, trail: document.getElementById('trail').textContent, lens: (document.querySelector('#lensbar a.on') || {}).textContent, overlayTop: document.getElementById('overlay').scrollTop, hint: document.getElementById('hint').textContent,
labels: [...document.querySelectorAll('#labels span')].filter(s => !s.hidden && s.offsetParent !== null).map(s => s.textContent) };
});
const vdInfo = () => page.evaluate(() => { const t = [...document.querySelectorAll('.tile')].find(x => x.querySelector('b').textContent === 'Vd'); if (!t) return null; const r = t.getBoundingClientRect(); const st = document.getElementById('stage').getBoundingClientRect(); const cx = r.left + r.width / 2, cy = r.top + r.height / 2; const h = document.elementFromPoint(cx, cy); return { x: cx, y: cy … [line shortened here: 860 characters; full line on GitHub]
// what a finger meets straight down the stage: o = table overlay/tiles, P = panel, ? = other
const fingerMap = () => page.evaluate(() => { const st = document.getElementById('stage').getBoundingClientRect(); const ys = []; for (let y = Math.ceil(st.top) + 5; y < st.bottom - 5; y += 10) { const e = document.elementFromPoint(215, y); ys.push(e && e.closest('#panel') ? 'P' : e && e.closest('#overlay') ? 'o' : e && e.closest('#sheet') ? 'S' : e && e.closest('#gl') ? 'g' : '?'); } return { sta … [line shortened here: 472 characters; full line on GitHub]
const clip = []; // clipboard captures
// ---------------- 00 load
begin('00-load');
await page.goto(BASE + '?lens=ring', { waitUntil: 'networkidle0', timeout: 90000 });
await page.evaluate(() => { try { localStorage.removeItem('star-generator.recipe'); } catch (e) {} });
await page.goto(BASE + '?lens=ring', { waitUntil: 'networkidle0', timeout: 90000 });
await page.evaluateOnNewDocument(() => {});
await page.evaluate(() => { window.__clip = []; if (navigator.clipboard) navigator.clipboard.writeText = t => { window.__clip.push(t); return Promise.resolve(); }; });
await page.waitForFunction(() => /blocks on the table/.test(document.getElementById('count').textContent) && document.getElementById('count').title.length > 0, { timeout: 60000 }); await sleep(1200);
let f = await facts();
note(`count sentence: "${await page.evaluate(() => document.getElementById('count').textContent)}"`);
note(`count title: "${await page.evaluate(() => document.getElementById('count').title)}"`);
note(`panel at load: ${f.panel ? 'OPEN ' + JSON.stringify(f.panel) : 'closed'} (display ${f.panelDisplay}); stage ${JSON.stringify(f.stage)}; document scrollWidth ${f.docScrollW} (viewport 430); tray "${f.tray}"`);
const fm0 = await fingerMap(); note(`finger map down the stage y ${fm0.stage[0]}→${fm0.stage[1]} every 10 px (g = canvas, P = panel): ${fm0.map}`);
await shot('00-load');
// ---------------- 01 search
begin('01-search');
await tapEl('.u-search', null, 'tap the search box'); await page.keyboard.type('distance', { delay: 30 }); note('typed "distance" (the phone keyboard; typing is not a tap)'); await sleep(700);
const hits = await page.evaluate(() => [...document.querySelectorAll('.u-hits button')].map(b => { const r = b.getBoundingClientRect(); const e = document.elementFromPoint(r.left + r.width / 2, r.top + r.height / 2); return { t: b.textContent.trim(), w: Math.round(r.width), h: Math.round(r.height), top: Math.round(r.top), bottom: Math.round(r.bottom), reach: e === b || b.contains(e), hit: e ? (e.i … [line shortened here: 464 characters; full line on GitHub]
note(`${hits.length} hit chips, ${Math.min(...hits.map(h => h.h))}-${Math.max(...hits.map(h => h.h))} px tall, first at y ${hits[0].top}, last ends at y ${hits[hits.length - 1].bottom} (viewport 900): ${hits.map(h => h.t).join(' | ')}`);
const unreach = hits.filter(h => !h.reach); note(`hit chips a finger cannot reach: ${unreach.length ? unreach.map(h => `${h.t}@y${h.top}→${h.hit}`).join(', ') : 'none'}`);
f = await facts(); note(`stage pushed to y ${f.stage.top}-${f.stage.bottom} by the hits; tray "${f.tray}"`);
await shot('01-search');
// ---------------- 02 open family
begin('02-open-family');
await tapEl('.u-hits button', '#511 distanceKm', 'tap the first hit');
await page.waitForFunction(() => !document.getElementById('panel').hidden && !/Loading family/.test(document.getElementById('panel').textContent), { timeout: 30000 }); await sleep(700);
f = await facts(); note(`panel head "${f.head}", panel ${JSON.stringify(f.panel)} tall=${f.panelTall}; page scrolled to ${f.scrollY}; stage ${JSON.stringify(f.stage)}; url ${f.url}`);
note(`trail "${f.trail}"; hint "${f.hint}"; labels on the ring: ${f.labels.join(', ')}`);
const lb = await page.evaluate(() => { const B = document.getElementById('panel-body'); const pb = B.getBoundingClientRect(); const ls = [...B.querySelectorAll('.u-line')]; const subs = [...B.querySelectorAll('.u-sub')].map(s => s.textContent.trim().slice(0, 40)); return { n: ls.length, vis: ls.filter(l => { const r = l.getBoundingClientRect(); return r.top >= pb.top && r.bottom <= pb.bottom; }).l … [line shortened here: 745 characters; full line on GitHub]
note(`${lb.n} numbered lines (keys ${lb.keys.join(', ')}); ${lb.vis} visible at peek height (body ${lb.bodyH} of ${lb.bodyScrollH} px; lines start ${lb.linesTop} px down); sections in order: ${lb.subs.join(' → ')}`);
note(`lines shown as: ${lb.first3.join(' || ')}`);
note(`panel top text: "${lb.bodyText}"`);
const foot = await page.evaluate(() => [...document.querySelectorAll('#panel-foot > *')].map(b => { const r = b.getBoundingClientRect(); return `${b.textContent.trim().slice(0, 14)} ${Math.round(r.width)}x${Math.round(r.height)}@y${Math.round(r.top)}`; }));
note(`panel foot buttons: ${foot.join(' | ')}`);
await shot('02-open-family');
// ---------------- 03 read three lines
begin('03-read-lines');
await tapEl('#panel-foot .u-chip', 'Measure', 'tap Measure to fetch the text');
await page.waitForFunction(() => { const c = document.querySelector('#panel .u-code'); return c && !/Fetching/.test(c.textContent); }, { timeout: 40000 }); await sleep(500);
const lineState = () => page.evaluate(() => { const B = document.getElementById('panel-body'); const pb = B.getBoundingClientRect(); const ls = [...B.querySelectorAll('.u-line')]; const c = B.querySelector('.u-code'); return { vis: ls.filter(l => { const r = l.getBoundingClientRect(); return r.top >= pb.top && r.bottom <= pb.bottom; }).length, n: ls.length, codeTop: Math.round(c.getBoundingClientR … [line shortened here: 853 characters; full line on GitHub]
let ln = await lineState();
note(`after Measure: panel tall=${ln.tall}; code box top y ${ln.codeTop}, panel body y ${ln.bodyTop}-${ln.bodyBottom} → ${ln.vis} of ${ln.n} lines visible without scrolling; sideways scroll needed: ${ln.codeScrollW > ln.codeClientW} (${ln.codeScrollW} vs ${ln.codeClientW}); lines wrapped onto 2+ rows: ${ln.wrapped}`);
for (let k = 0; k < 4 && ln.vis < 3; k++) { const pb = await page.evaluate(() => { const b = document.getElementById('panel-body').getBoundingClientRect(); return { x: b.left + b.width / 2, top: b.top, bottom: b.bottom }; }); await drag(pb.x, pb.bottom - 30, pb.x, pb.top + 30, 10, 16); await sleep(400); ln = await lineState(); note(`drag ${step.drags} up the panel body: scrollTop ${ln.st}; ${ln.vi … [line shortened here: 421 characters; full line on GitHub]
note(`read: ${ln.first3.join(' || ')}`);
note(`what the line keys say on long-press/title: ${ln.keyTitles.join(' | ')}`);
f = await facts(); note(`stage now ${JSON.stringify(f.stage)} under a panel ${JSON.stringify(f.panel)} → picture visible above the sheet: ${f.stage && f.panel ? Math.max(0, f.panel.top - f.stage.top) : '?'} px`);
await shot('03-read-lines');
// ---------------- 04 add family
begin('04-add-family');
let p = await probe('#panel-foot .u-chip', 'Add to recipe');
if (p && !p.inViewport) note(`Add to recipe sits at y ${p.top}-${p.bottom}: off the 900-px screen while the panel is tall`);
await tapEl('#panel-foot .u-chip', 'Add to recipe', 'tap Add to recipe'); await sleep(600);
f = await facts(); note(`tray "${f.tray}" · chips ${JSON.stringify(f.trayChips)} · count "${f.trayCnt}" truncated=${f.trayClip && f.trayClip.cntTruncated} (${f.trayClip && f.trayClip.cntScrollW} in ${f.trayClip && f.trayClip.cntClientW}) · url recipe=${decodeURIComponent((f.url.match(/recipe=([^&]*)/) || [])[1] || '')}`);
note(`panel after adding: ${f.panel ? 'still open "' + f.head + '" tall=' + f.panelTall : 'closed'}; ring labels: ${f.labels.join(', ')}`);
await shot('04-add-family');
// ---------------- 05 table lens
begin('05-table-lens');
p = await tapEl('#lensbar a', 'table', 'tap the table tab'); await sleep(1300);
f = await facts(); note(`lens "${f.lens}"; tray "${f.tray}"; panel ${f.panel ? 'STILL OPEN tall=' + f.panelTall + ' ' + JSON.stringify(f.panel) : 'closed'}; stage ${JSON.stringify(f.stage)}; page scrollY ${f.scrollY}; url ${f.url}`);
note(`hint "${f.hint}"; trail "${f.trail}"`);
const tv = await page.evaluate(() => { const st = document.getElementById('stage').getBoundingClientRect(); const P = document.getElementById('panel'); const pt = P.hidden ? Infinity : P.getBoundingClientRect().top; const ts = [...document.querySelectorAll('.tile')]; const vis = ts.filter(t => { const r = t.getBoundingClientRect(); return r.top >= st.top && r.bottom <= Math.min(st.bottom, pt); }); … [line shortened here: 987 characters; full line on GitHub]
note(`tiles: ${tv.total} total, ${tv.vis} visible in the stage now (${tv.first.join(', ')}…); outlined as recipe: ${tv.outlined.join(', ') || 'none'}; focus tile: ${tv.focusTile}; overlay scrollTop ${tv.overlayScrollTop} of ${tv.overlayScrollH}; stage fully in viewport: ${tv.stageInView}`);
const fm5 = await fingerMap(); note(`finger map down the stage y ${fm5.stage[0]}→${fm5.stage[1]}: ${fm5.map}`);
await shot('05-table-lens');
// ---------------- 06 find Vd by swiping the grid, then swipe-right on it
begin('06-find-Vd');
let vd = await vdInfo(); note(`Vd tile at y ${vd.top}-${vd.bottom} (overlay scrollTop ${vd.scrollTop}); stage y ${vd.stage[0]}-${vd.stage[1]}; in stage: ${vd.inStage}`);
if (!vd.inStage && (vd.stage[0] < 0 || vd.stage[1] > 900)) { note('stage not fully on screen: first scroll the page (swipe up on the page body)'); }
const head0 = (await facts()).head;
for (let k = 0; k < 14 && !(vd.inStage && vd.reach && vd.inViewport); k++) {
const st = vd.stage; const y1 = Math.min(st[1], 900) - 30, y0 = Math.max(st[0], 0) + 30;
await drag(215, y1, 215, y0, 8, 18); await sleep(500);
vd = await vdInfo(); const ff = await facts();
note(`swipe ${step.drags} up the grid (y ${y1}→${y0}): overlay scrollTop ${vd.scrollTop}; Vd y ${vd.top}-${vd.bottom} inStage=${vd.inStage} reachable=${vd.reach} (${vd.hit})${ff.head !== head0 ? ' · STRAY: panel changed to "' + ff.head + '"' : ''}${ff.panel ? ' · panel open' : ''}${ff.trayChips.length !== 1 ? ' · STRAY: recipe changed ' + JSON.stringify(ff.trayChips) : ''}`);
}
if (vd.inStage && vd.reach && vd.bottom > 860) { await drag(215, 700, 215, 500, 6, 18); await sleep(400); vd = await vdInfo(); note(`nudge ${step.drags}: Vd y ${vd.top}-${vd.bottom} reachable=${vd.reach}`); }
note(`swipes to bring Vd into reach: ${step.drags}`);
await shot('06a-Vd-in-view');
begin('06-swipe-Vd');
const x0 = vd.left + 18; await drag(x0, vd.y, x0 + 90, vd.y, 6, 20); await sleep(800);
f = await facts(); const swiped = f.trayChips.includes('Vd');
note(`swipe-right 90 px across Vd (drag ${step.drags}): tray "${f.tray}" → ${swiped ? 'ADDED by swipe' : 'NOT added by swipe'}; panel ${f.panel ? 'opened "' + f.head + '"' : 'closed'}; overlay scrollTop ${f.overlayTop}; url ${f.url}`);
note(`was there any hint on screen that swipe-right composes? hint text: "${f.hint}"`);
await shot('06b-after-swipe');
if (!swiped) {
begin('06-tap-Vd');
vd = await vdInfo(); await page.touchscreen.tap(vd.x, vd.y); step.taps++; taps++; note(`tap ${step.taps}: Vd tile ${vd.w}x${vd.h} at (${Math.round(vd.x)},${Math.round(vd.y)})`); await sleep(1000);
f = await facts(); note(`panel "${f.head}" ${JSON.stringify(f.panel)} tall=${f.panelTall}; url ${f.url}; page scrollY ${f.scrollY}`);
const vd2 = await vdInfo(); note(`Vd tile now at y ${vd2.top}-${vd2.bottom}, ${vd2.reach ? 'still visible' : 'under the panel'}`);
await shot('06c-Vd-panel');
await tapEl('#panel-foot .u-chip', 'Add to recipe', 'tap Add to recipe for Vd'); await sleep(600); f = await facts();
}
const marks = await page.evaluate(() => ({ recipeTiles: [...document.querySelectorAll('.tile.recipe')].map(t => t.querySelector('b').textContent + (t.classList.contains('derived') ? '(derived)' : '')), chips: [...document.querySelectorAll('#tray .rc')].map(c => ({ t: c.textContent.replace('×', '').trim(), w: Math.round(c.getBoundingClientRect().width), right: Math.round(c.getBoundingClientRect().r … [line shortened here: 1,010 characters; full line on GitHub]
note(`tray "${f.tray}" · recipe=${decodeURIComponent((f.url.match(/recipe=([^&]*)/) || [])[1] || '')}`);
note(`tiles outlined as recipe: ${marks.recipeTiles.join(', ') || 'none'} · chips ${JSON.stringify(marks.chips)} · count "${marks.cnt}" box ${JSON.stringify(marks.cntBox)} → truncated: ${marks.cntBox && marks.cntBox.scrollW > marks.cntBox.clientW + 1} · Hand off ${JSON.stringify(marks.goBox)}`);
step.tableWords = { tray: f.tray, cnt: marks.cnt, chips: marks.chips.map(c => c.t), hint: f.hint, head: f.head, outlined: marks.recipeTiles };
await shot('06d-Vd-added');
// ---------------- 07 river
begin('07-river');
await tapEl('#lensbar a', 'river', 'tap the river tab'); await sleep(1600);
f = await facts();
note(`lens "${f.lens}"; tray chips ${JSON.stringify(f.trayChips)} → both still there: ${f.trayChips.some(c => /#511/.test(c)) && f.trayChips.includes('Vd')}; count "${f.trayCnt}"; url ${f.url}`);
note(`panel ${f.panel ? 'open "' + f.head + '" tall=' + f.panelTall : 'closed'}; hint "${f.hint}"; trail "${f.trail}"`);
note(`river labels on screen: ${f.labels.join(', ')} → Vd labelled: ${f.labels.includes('Vd')}, #511 labelled: ${f.labels.includes('#511')}, Ss labelled: ${f.labels.includes('Ss')}`);
const t6 = report.steps.find(s => s.tableWords).tableWords;
note(`wording table vs river — tray: ${t6.tray === f.tray ? 'same' : 'DIFFERENT ("' + t6.tray + '" vs "' + f.tray + '")'}; count: ${t6.cnt === f.trayCnt ? 'same' : 'DIFFERENT'}; chips: ${JSON.stringify(t6.chips) === JSON.stringify(f.trayChips) ? 'same' : 'DIFFERENT'}`);
const fm7 = await fingerMap(); note(`finger map down the stage y ${fm7.stage[0]}→${fm7.stage[1]}: ${fm7.map}`);
await shot('07-river');
// ---------------- 08 recipe sheet
begin('08-sheet');
p = await probe('#tray .cnt'); const trayBox = await page.evaluate(() => { const r = document.getElementById('tray').getBoundingClientRect(); return { top: Math.round(r.top), h: Math.round(r.height) }; });
note(`the count text is ${p.w}x${p.h} px but sits in a ${trayBox.h}-px tray that opens the sheet wherever it is tapped (except on a chip or Hand off)`);
await tapEl('#tray .cnt', null, 'tap the count in the tray'); await sleep(700);
let sh = await page.evaluate(() => { const S = document.getElementById('sheet'); const b = S.getBoundingClientRect(); return { hidden: S.hidden, top: Math.round(b.top), bottom: Math.round(b.bottom), scrollH: S.scrollHeight, clientH: S.clientHeight, head: (S.querySelector('.u-h') || {}).textContent, rows: [...S.querySelectorAll('.ch')].map(r => ({ text: r.textContent.trim(), parts: [...r.children]. … [line shortened here: 1,582 characters; full line on GitHub]
note(`sheet ${sh.hidden ? 'DID NOT OPEN' : 'open'} y ${sh.top}-${sh.bottom}, content ${sh.scrollH} in ${sh.clientH}, sideways ${sh.sheetScrollW} in ${sh.sheetClientW}; head "${sh.head}"; ✕ close ${sh.closeBtn}`);
for (const r of sh.rows) note(`row "${r.text}" (${r.h} px): ${r.parts.join(' ')}`);
note(`action buttons ${sh.buttons.join(', ')}`); note(`rule text: "${(sh.rule || '').slice(0, 200)}"`); note(`needs: ${(sh.needs || '').slice(0, 160)}`); note(`pinned files (${sh.pinned.length}): ${sh.pinned.slice(0, 3).join(' ; ')}${sh.pinned.length > 3 ? ' …' : ''}`); note(`hand-off url: ${sh.handoff}`);
f = await facts(); note(`wording sheet vs tray — sheet head count "${sh.head}" vs tray count "${f.trayCnt}"; rows say "${sh.rows.map(r => r.parts[0]).join('", "')}" vs chips ${JSON.stringify(f.trayChips)}`);
step.sheetOverPanel = f.panel ? `sheet y ${sh.top}-${sh.bottom} over an open panel y ${f.panel.top}-${f.panel.bottom}` : 'no panel open';
note(step.sheetOverPanel);
await shot('08-sheet');
// ---------------- 09 hand off
begin('09-handoff');
const nT = targets.length;
await tapEl('#sheet .row.act .u-chip', 'Hand off', 'tap Hand off in the sheet'); await sleep(2500);
let opened = targets.slice(nT); note(`new tab: ${opened.map(t => t.url).join(' ; ') || 'none'}`);
step.handoffURL = opened.length ? opened[0].url : null;
const hp = (await browser.pages()).find(pg => pg !== page && /code-generator/.test(pg.url()));
if (hp) { await hp.setViewport({ width: 430, height: 900, deviceScaleFactor: 2, isMobile: true, hasTouch: true }).catch(() => {}); await hp.waitForNetworkIdle({ timeout: 30000 }).catch(() => {}); await sleep(1500); const pk = await hp.evaluate(() => { const T = document.body.innerText; const m = s => (T.match(new RegExp('.{0,60}' + s + '.{0,60}')) || [''])[0].replace(/\s+/g, ' '); return { title: … [line shortened here: 1,113 characters; full line on GitHub]
else note('the picker tab could not be read (no page found)');
// also: Copy recipe by touch
await tapEl('#sheet .row.act .u-chip', 'Copy recipe', 'tap Copy recipe'); await sleep(2500);
const cj = await page.evaluate(() => window.__clip || []);
if (cj.length) { try { const j = JSON.parse(cj[cj.length - 1]); note(`Copy recipe → ${cj[cj.length - 1].length} chars of JSON, schema ${j.schema}, keys ${JSON.stringify(j.keys)}, blocks ${j.blocks.map(b => b.symbol).join(',')}, families ${j.families.map(x => x.n + (x.place ? ' @ ' + String(x.place.commit).slice(0, 7) : ' (no place)')).join(',')}`); step.recipeJSON = j; } catch (e) { note('Copy rec … [line shortened here: 474 characters; full line on GitHub]
else note('Copy recipe → nothing reached the clipboard hook');
note(`button reads now: "${await page.evaluate(() => [...document.querySelectorAll('#sheet .row.act .u-chip')].map(b => b.textContent.trim()).join(' | '))}"`);
await shot('09-handoff');
// ---------------- 10 the other way: could a person have added Vd from search instead?
begin('10-alt-search-Vd');
await page.evaluate(() => document.getElementById('sheet').hidden = true);
f = await facts(); const sb = await probe('.u-search');
note(`after the journey the search box is at y ${sb.top}-${sb.bottom} (page scrollY ${f.scrollY}) → ${sb.inViewport ? 'reachable' : 'off screen: the person must scroll the page up first'}`);
if (!sb.inViewport) { await page.evaluate(() => window.scrollTo(0, 0)); await sleep(300); note('(scrolled the page to the top with a swipe; not counted as a tap)'); }
await tapEl('.u-search', null, 'tap the search box'); await page.keyboard.type('Vd', { delay: 30 }); await sleep(600);
const vh = await page.evaluate(() => [...document.querySelectorAll('.u-hits button')].map(b => b.textContent.trim()));
note(`hits for "Vd": ${vh.join(' | ')}`);
await shot('10-search-Vd');
report.totalTaps = taps; report.totalDrags = drags;
report.stepSummary = report.steps.map(s => ({ name: s.name, taps: s.taps, drags: s.drags, touchOnly: s.touchOnly, blocker: s.blocker || null }));
await browser.close();
fs.writeFileSync(OUT + 'coder-walk-r2.json', JSON.stringify(report, null, 1));
console.log('\nwritten coder-walk-r2.json · taps', taps, '· drags', drags, '· console', report.console.length ? report.console : 'clean');Coder Walk
A JavaScript module in the proof folder of GlobalGrid2050 that works with layout facts (`layoutFacts`).
renderglobalgrid2050 / testcode/202609142225/proof/coder-walk.mjs · lines 1–225 of 225 · version 2026-09-14 22:25 · Not reached from any entry point (candidate for review) · pattern tapEl (shared by 5 files)
- What it does
- It loads data. Defines 10 functions or classes, including sleep, begin, note, shot, probe. Uses libraries node:module, node:fs, C:/Users/vikra/Desktop/Claude-Sandbox-MSI/bench/node_modules/puppeteer-core. Side effects: changes the web page (DOM); reads or writes files; uses storage (browser storage, DuckDB or Parquet).
- Why it exists in the grid workflow
- Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
- Inputs & outputs
- In: JSON file coder-walk.json; command-line arguments. Out: JSON file coder-walk.json.
- What it achieves
- It is built from the sleep step (`sleep`), the begin step (`begin`) and the note step (`note`). Mobile-coder critic, round 1: a person on a 430 px phone composes a small tool by touch alone. It writes `coder-walk.json`.
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · testcode/202609142225/proof · JavaScript module
- Uses
- node:module, node:fs, C:/Users/vikra/Desktop/Claude-Sandbox-MSI/bench/node_modules/puppeteer-core
- Used by
- none found
- Produces
- sleep, begin, note, shot, probe, tapEl, drag, layoutFacts, r, ov
- Defines here
- sleep, begin, note, shot, probe, tapEl, drag, layoutFacts, r, ov
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 testcode/202609142225/proof/coder-walk.mjs:1-225 · blob 31e604ce0650369d9b3f65b7f4efa7253818577a · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom, filesystem, storage · domain stage: experimental · users: none · canonical: unreached_review
// Mobile-coder critic, round 1: a person on a 430 px phone composes a small tool by touch alone.
// Every action goes through page.touchscreen (tap / touchStart-Move-End); the keyboard is only used to type into the
// search box after it was tapped (the on-screen keyboard of a phone). Nothing is driven through window.__star or
// synthetic clicks. Results: proof/coder-walk.json; screenshots proof/coder-<step>.png.
// node C:/Users/vikra/Documents/GitHub/globalgrid2050/testcode/202609142225/proof/coder-walk.mjs [port]
import { createRequire } from 'node:module';
import fs from 'node:fs';
const require = createRequire(import.meta.url);
const puppeteer = require('C:/Users/vikra/Desktop/Claude-Sandbox-MSI/bench/node_modules/puppeteer-core');
const PORT = process.argv[2] || '8890', BASE = `http://127.0.0.1:${PORT}/testcode/202609142225/`;
const OUT = 'C:/Users/vikra/Documents/GitHub/globalgrid2050/testcode/202609142225/proof/';
const ARGS = ['--enable-gpu', '--use-gl=angle', '--use-angle=d3d11', '--ignore-gpu-blocklist', '--no-first-run'];
const sleep = ms => new Promise(r => setTimeout(r, ms));
const browser = await puppeteer.launch({ executablePath: 'C:/Program Files/Google/Chrome/Application/chrome.exe', headless: 'new', args: ARGS });
const report = { run_utc: new Date().toISOString(), base: BASE, viewport: '430x900 dpr2 isMobile hasTouch', steps: [], console: [] };
const targets = [];
browser.on('targetcreated', t => targets.push({ url: t.url(), type: t.type(), at: Date.now() }));
const page = await browser.newPage();
await page.setViewport({ width: 430, height: 900, deviceScaleFactor: 2, isMobile: true, hasTouch: true });
page.on('console', m => { if (m.type() === 'error' || m.type() === 'warning') report.console.push(m.type() + ': ' + m.text()); });
page.on('pageerror', e => report.console.push('pageerror: ' + e.message));
page.on('requestfailed', r => report.console.push('requestfailed: ' + r.url()));
let taps = 0, step = null;
function begin(name) { step = { name, taps: 0, drags: 0, notes: [], byTouch: true }; report.steps.push(step); console.log('\n== ' + name); }
function note(s) { step.notes.push(s); console.log(' ' + s); }
async function shot(name) { await page.screenshot({ path: OUT + `coder-${name}.png` }); step.shot = `coder-${name}.png`; }
// geometry of one element, plus what a finger at its centre would actually hit (fixed bars, sheets, the panel)
async function probe(sel, text) {
return page.evaluate((s, t) => {
const es = [...document.querySelectorAll(s)]; const e = t ? es.find(x => x.textContent.trim() === t || x.textContent.trim().startsWith(t)) : es[0];
if (!e) return null;
const b = e.getBoundingClientRect(); const cx = b.left + b.width / 2, cy = b.top + b.height / 2;
const hit = document.elementFromPoint(cx, cy); const reach = hit && (hit === e || e.contains(hit) || hit.contains(e));
const hitDesc = hit ? (hit.id ? '#' + hit.id : hit.tagName.toLowerCase() + (hit.className ? '.' + String(hit.className).split(' ').join('.') : '')) + ' "' + hit.textContent.trim().slice(0, 30) + '"' : 'nothing';
return { x: cx, y: cy, w: Math.round(b.width), h: Math.round(b.height), top: Math.round(b.top), bottom: Math.round(b.bottom), left: Math.round(b.left), right: Math.round(b.right), inViewport: b.top >= 0 && b.bottom <= innerHeight && b.left >= 0 && b.right <= innerWidth, reach, hitDesc, text: e.textContent.trim().slice(0, 80), clipped: e.scrollWidth > e.clientWidth + 1 };
}, sel, text || null);
}
async function tapEl(sel, text, why) {
const p = await probe(sel, text);
if (!p) { note(`NO ELEMENT for ${sel} ${text || ''} (${why})`); step.byTouch = false; return null; }
if (!p.inViewport) note(`target ${text || sel} is partly off screen (top ${p.top}, bottom ${p.bottom}) — a finger cannot reach it without scrolling`);
if (!p.reach) { note(`target ${text || sel} at (${Math.round(p.x)},${Math.round(p.y)}) is covered by ${p.hitDesc}; a tap there would not reach it`); }
if (p.w < 44 || p.h < 44) note(`target ${text || sel} is ${p.w}x${p.h} px (under 44 px)`);
await page.touchscreen.tap(p.x, p.y); step.taps++; taps++;
note(`tap ${step.taps}: ${why} → "${p.text.slice(0, 40)}" ${p.w}x${p.h} at (${Math.round(p.x)},${Math.round(p.y)})${p.reach ? '' : ' [BLOCKED by ' + p.hitDesc + ']'}`);
return p;
}
async function drag(x0, y0, x1, y1, steps = 8, dt = 20) { await page.touchscreen.touchStart(x0, y0); for (let s = 1; s <= steps; s++) { await page.touchscreen.touchMove(x0 + (x1 - x0) * s / steps, y0 + (y1 - y0) * s / steps); await sleep(dt); } await page.touchscreen.touchEnd(); step.drags++; }
async function layoutFacts() {
return page.evaluate(() => {
const r = id => { const e = document.getElementById(id); if (!e || e.hidden) return null; const b = e.getBoundingClientRect(); return { top: Math.round(b.top), bottom: Math.round(b.bottom), left: Math.round(b.left), right: Math.round(b.right), h: Math.round(b.height) }; };
const R = { stage: r('stage'), panel: r('panel'), tray: r('tray'), lensbar: r('lensbar'), sheet: r('sheet'), search: r('search') };
const ov = (a, b) => a && b ? Math.max(0, Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top)) : 0;
const clipped = [...document.querySelectorAll('#tray .rc, #tray .cnt, #tray .go, #panel-foot .u-chip, .tile .t, #lensbar a')].filter(e => e.scrollWidth > e.clientWidth + 1).map(e => e.className + ' "' + e.textContent.trim().slice(0, 40) + '"');
const trayFull = document.getElementById('tray'); const trayHidden = [...trayFull.querySelectorAll('.rc')].filter(c => c.getBoundingClientRect().right > trayFull.getBoundingClientRect().right - 1 || c.getBoundingClientRect().right > (trayFull.querySelector('.cnt') || trayFull).getBoundingClientRect().left + 1).length;
return { scrollWidth: document.documentElement.scrollWidth, scrollY: Math.round(scrollY), rects: R, panelOverStage: ov(R.panel, R.stage), sheetOverPanel: ov(R.sheet, R.panel), sheetOverTray: ov(R.sheet, R.tray), trayOverLensbar: ov(R.tray, R.lensbar), clipped, trayChipsHidden: trayHidden, tray: trayFull.textContent.trim(), url: location.search, focusHead: (document.querySelector('#panel .u-h') … [line shortened here: 548 characters; full line on GitHub]
});
}
// ---------------------------------------------------------------- step 0: load
begin('00-load');
await page.goto(BASE + '?lens=ring', { waitUntil: 'networkidle0', timeout: 90000 });
await page.waitForFunction(() => /blocks on the table/.test(document.getElementById('count').textContent), { timeout: 60000 });
await page.evaluate(() => { try { localStorage.removeItem('star-generator.recipe'); } catch (e) {} });
await page.goto(BASE + '?lens=ring', { waitUntil: 'networkidle0', timeout: 90000 });
await page.waitForFunction(() => /blocks on the table/.test(document.getElementById('count').textContent), { timeout: 60000 });
await page.waitForFunction(() => document.getElementById('count').title && document.getElementById('count').title.length > 0, { timeout: 60000 }).catch(() => note('pack title never appeared'));
await sleep(1500);
step.facts = await layoutFacts(); note(`count: ${await page.evaluate(() => document.getElementById('count').textContent)}`); note(`tray says: "${step.facts.tray}"`);
await shot('00-load');
// ---------------------------------------------------------------- step 1: search "distance"
begin('01-search');
await tapEl('.u-search', null, 'tap the search box');
await page.keyboard.type('distance', { delay: 40 }); note('typed "distance" on the keyboard');
await sleep(700);
const hits = await page.evaluate(() => [...document.querySelectorAll('.u-hits > *')].map(e => ({ tag: e.tagName, text: e.textContent.trim(), w: Math.round(e.getBoundingClientRect().width), h: Math.round(e.getBoundingClientRect().height), bottom: Math.round(e.getBoundingClientRect().bottom) })));
step.hits = hits; note(`${hits.length} hits: ${hits.map(h => h.text).join(' | ')}`);
note(`hit chip heights: ${[...new Set(hits.map(h => h.h))].join(',')} px; last hit bottom ${hits.length ? hits[hits.length - 1].bottom : '-'} px of 900`);
step.facts = await layoutFacts();
await shot('01-search');
// ---------------------------------------------------------------- step 2: open the family
begin('02-open-family');
const first = hits.find(h => h.tag === 'BUTTON');
await tapEl('.u-hits button', first ? first.text : null, 'tap the first hit');
await page.waitForFunction(() => { const p = document.getElementById('panel'); return p && !p.hidden && !/Loading family/.test(p.textContent); }, { timeout: 30000 }).catch(() => note('panel never finished loading'));
await sleep(600);
step.facts = await layoutFacts();
note(`panel head: "${step.facts.focusHead}" · url ${step.facts.url}`);
note(`panel rect ${JSON.stringify(step.facts.rects.panel)} · stage ${JSON.stringify(step.facts.rects.stage)} · panel covers ${step.facts.panelOverStage} px of the stage · scrollY ${step.facts.scrollY}`);
const linesBefore = await page.evaluate(() => { const B = document.getElementById('panel-body'); const pb = B.getBoundingClientRect(); const ls = [...B.querySelectorAll('.u-line')]; const sub = [...B.querySelectorAll('.u-sub')].map(s => s.textContent.trim()); return { n: ls.length, visible: ls.filter(l => { const r = l.getBoundingClientRect(); return r.top >= pb.top && r.bottom <= pb.bottom; }).le … [line shortened here: 590 characters; full line on GitHub]
step.linesBefore = linesBefore; note(`family has ${linesBefore.n} numbered lines listed; ${linesBefore.visible} of them visible in the panel at peek height (body ${linesBefore.bodyClientH} of ${linesBefore.bodyScrollH} px); sections: ${linesBefore.subs.join(' / ')}`);
note(`first three as shown before Measure: ${linesBefore.first3.join(' || ')}`);
await shot('02-open-family');
// ---------------------------------------------------------------- step 3: read three numbered lines (Measure fetches the text)
begin('03-read-lines');
await tapEl('#panel-foot .u-chip', 'Measure', 'tap Measure to fetch the line text');
await page.waitForFunction(() => { const c = document.querySelector('#panel .u-code'); return c && !/Fetching/.test(c.textContent); }, { timeout: 40000 }).catch(() => note('line text never arrived'));
await sleep(500);
let lines = await page.evaluate(() => { const B = document.getElementById('panel-body'); const pb = B.getBoundingClientRect(); const ls = [...B.querySelectorAll('.u-line')]; const vis = ls.filter(l => { const r = l.getBoundingClientRect(); return r.top >= pb.top && r.bottom <= pb.bottom; }); const code = B.querySelector('.u-code'); return { n: ls.length, visible: vis.length, first3: ls.slice(0, 3) … [line shortened here: 899 characters; full line on GitHub]
note(`after Measure: panel tall=${lines.tall} (${lines.panelH} px); ${lines.visible} of ${lines.n} lines visible; code box top ${lines.codeTop}, panel body bottom ${lines.bodyBottom}; code box scrollWidth ${lines.codeScrollW} vs clientWidth ${lines.codeClientW}`);
if (lines.visible < 3) {
// scroll the panel body by touch until the code box is in view
const pb = await page.evaluate(() => { const b = document.getElementById('panel-body').getBoundingClientRect(); return { x: b.left + b.width / 2, top: b.top, bottom: b.bottom }; });
for (let k = 0; k < 6 && lines.visible < 3; k++) {
await drag(pb.x, pb.bottom - 30, pb.x, pb.top + 30, 10, 16); await sleep(400);
lines = await page.evaluate(() => { const B = document.getElementById('panel-body'); const pbx = B.getBoundingClientRect(); const ls = [...B.querySelectorAll('.u-line')]; const vis = ls.filter(l => { const r = l.getBoundingClientRect(); return r.top >= pbx.top && r.bottom <= pbx.bottom; }); return { n: ls.length, visible: vis.length, first3: ls.slice(0, 3).map(l => l.textContent.replace(/\s+/g … [line shortened here: 612 characters; full line on GitHub]
note(`drag ${step.drags} up the panel: body scrollTop ${lines.bodyScrollTop} of ${lines.bodyScrollH - lines.bodyClientH}; ${lines.visible} lines visible`);
}
}
step.lines = lines; note(`three numbered lines read: ${lines.first3.join(' || ')}`);
step.facts = await layoutFacts();
await shot('03-read-lines');
// ---------------------------------------------------------------- step 4: add the family to the recipe
begin('04-add-family');
const addBtn = await probe('#panel-foot .u-chip', 'Add to recipe');
note(`"Add to recipe" button rect: ${addBtn ? JSON.stringify({ top: addBtn.top, bottom: addBtn.bottom, w: addBtn.w, h: addBtn.h, reach: addBtn.reach, hit: addBtn.hitDesc }) : 'missing'}`);
await tapEl('#panel-foot .u-chip', 'Add to recipe', 'tap Add to recipe in the panel foot');
await sleep(500);
step.facts = await layoutFacts(); note(`tray now: "${step.facts.tray}" · url ${step.facts.url}`);
note(`tray chips clipped/hidden: ${step.facts.trayChipsHidden}; clipped texts: ${step.facts.clipped.join(' ; ') || 'none'}`);
await shot('04-add-family');
// ---------------------------------------------------------------- step 5: switch to the table lens
begin('05-table-lens');
const lb = await probe('#lensbar a', 'table');
note(`lens tab "table": ${lb ? `${lb.w}x${lb.h} at y ${lb.top}-${lb.bottom}, reach=${lb.reach} (${lb.hitDesc})` : 'missing'}`);
await tapEl('#lensbar a', 'table', 'tap the table tab');
await sleep(1200);
step.facts = await layoutFacts(); note(`lens=${step.facts.lens} · url ${step.facts.url} · tray "${step.facts.tray}" · panel head "${step.facts.focusHead}"`);
note(`hint: "${step.facts.hint}"`);
note(`panel still open covering ${step.facts.panelOverStage} px of the stage; stage ${JSON.stringify(step.facts.rects.stage)}, panel ${JSON.stringify(step.facts.rects.panel)}`);
const tblTop = await page.evaluate(() => { const ov = document.getElementById('overlay'); const st = document.getElementById('stage').getBoundingClientRect(); const tiles = [...ov.querySelectorAll('.tile')]; const pnl = document.getElementById('panel'); const pr = pnl.hidden ? null : pnl.getBoundingClientRect(); const vis = tiles.filter(t => { const r = t.getBoundingClientRect(); return r.top >= s … [line shortened here: 670 characters; full line on GitHub]
step.table = tblTop; note(`${tblTop.tiles} tiles in the overlay (${tblTop.overlayScrollH} px tall, ${tblTop.overlayClientH} px window); ${tblTop.visibleUncovered} tiles visible and not under the panel: ${tblTop.firstTiles.join(', ')}`);
await shot('05-table-lens');
// ---------------------------------------------------------------- step 6: find and add block Vd
begin('06-add-Vd');
// close the panel first? A real person would try scrolling the tiles first. Try dragging the overlay where it is uncovered.
let vd = await page.evaluate(() => { const t = [...document.querySelectorAll('.tile')].find(x => x.querySelector('b').textContent === 'Vd'); if (!t) return null; const r = t.getBoundingClientRect(); const st = document.getElementById('stage').getBoundingClientRect(); const pnl = document.getElementById('panel'); const pr = pnl.hidden ? null : pnl.getBoundingClientRect(); return { top: Math.round(r … [line shortened here: 711 characters; full line on GitHub]
note(`Vd tile before scrolling: ${JSON.stringify(vd)}`);
const stageR = await page.evaluate(() => { const b = document.getElementById('stage').getBoundingClientRect(); const pnl = document.getElementById('panel'); const pr = pnl.hidden ? null : pnl.getBoundingClientRect(); return { x: b.left + b.width / 2, top: b.top, bottom: pr ? Math.min(b.bottom, pr.top) : b.bottom }; });
let strayFocus = null; const headBefore = (await layoutFacts()).focusHead;
for (let k = 0; k < 14 && !(vd && vd.inStage && !vd.underPanel); k++) {
await drag(stageR.x, stageR.bottom - 20, stageR.x, stageR.top + 20, 6, 20); await sleep(450);
const f = await layoutFacts(); if (f.focusHead !== headBefore) { strayFocus = f.focusHead; note(`STRAY: dragging over the tiles changed the panel to "${f.focusHead}" (a drag was read as a tap or press)`); }
vd = await page.evaluate(() => { const t = [...document.querySelectorAll('.tile')].find(x => x.querySelector('b').textContent === 'Vd'); if (!t) return null; const r = t.getBoundingClientRect(); const st = document.getElementById('stage').getBoundingClientRect(); const pnl = document.getElementById('panel'); const pr = pnl.hidden ? null : pnl.getBoundingClientRect(); return { top: Math.round(r.t … [line shortened here: 634 characters; full line on GitHub]
note(`drag ${step.drags} up the tiles: overlay scrollTop ${vd && vd.scrollTop}; Vd at y ${vd && vd.top}-${vd && vd.bottom} inStage=${vd && vd.inStage} underPanel=${vd && vd.underPanel}`);
}
step.vdBeforeTap = vd;
await shot('06a-Vd-in-view');
if (!vd || !vd.inStage || vd.underPanel) note('could not bring the Vd tile into an uncovered part of the stage by dragging');
// try the documented swipe-right on the tile first (compose without opening the panel)
const vdC = await page.evaluate(() => { const t = [...document.querySelectorAll('.tile')].find(x => x.querySelector('b').textContent === 'Vd'); const r = t.getBoundingClientRect(); return { x: r.left + 20, y: r.top + r.height / 2, hit: (document.elementFromPoint(r.left + 20, r.top + r.height / 2) || {}).className || 'none' }; });
note(`swipe-right start point on Vd: (${Math.round(vdC.x)},${Math.round(vdC.y)}) hits "${vdC.hit}"`);
await drag(vdC.x, vdC.y, vdC.x + 90, vdC.y, 6, 20); await sleep(700);
let f6 = await layoutFacts(); const swipeWorked = /Vd/.test(f6.tray);
note(`after swipe-right 90 px on the tile: tray "${f6.tray}" → ${swipeWorked ? 'Vd added by swipe' : 'swipe did NOT add Vd'}; panel head now "${f6.focusHead}"; overlay scrollTop ${await page.evaluate(() => document.getElementById('overlay').scrollTop)}`);
step.swipe = { worked: swipeWorked, tray: f6.tray, head: f6.focusHead };
if (!swipeWorked) {
// the other touch route: tap the tile → panel → Add to recipe
vd = await page.evaluate(() => { const t = [...document.querySelectorAll('.tile')].find(x => x.querySelector('b').textContent === 'Vd'); const r = t.getBoundingClientRect(); const h = document.elementFromPoint(r.left + r.width / 2, r.top + r.height / 2); return { x: r.left + r.width / 2, y: r.top + r.height / 2, w: Math.round(r.width), h: Math.round(r.height), reach: !!h && (h === t || t.contain … [line shortened here: 465 characters; full line on GitHub]
if (!vd.reach) note(`Vd tile centre (${Math.round(vd.x)},${Math.round(vd.y)}) is covered by ${vd.hit}`);
await page.touchscreen.tap(vd.x, vd.y); step.taps++; note(`tap ${step.taps}: the Vd tile ${vd.w}x${vd.h} at (${Math.round(vd.x)},${Math.round(vd.y)})${vd.reach ? '' : ' [BLOCKED]'}`);
await sleep(900);
f6 = await layoutFacts(); note(`panel head now "${f6.focusHead}" · url ${f6.url}`);
await shot('06b-Vd-panel');
await tapEl('#panel-foot .u-chip', 'Add to recipe', 'tap Add to recipe for Vd');
await sleep(500);
f6 = await layoutFacts();
}
step.facts = f6; note(`tray now: "${f6.tray}" · recipe in url: ${decodeURIComponent((f6.url.match(/recipe=([^&]*)/) || [])[1] || '')}`);
note(`tray chips hidden/clipped: ${f6.trayChipsHidden}; clipped: ${f6.clipped.join(' ; ') || 'none'}`);
const tileMarks = await page.evaluate(() => [...document.querySelectorAll('.tile.recipe')].map(t => t.querySelector('b').textContent));
note(`tiles marked as in the recipe on the table: ${tileMarks.join(', ') || 'none'}`);
await shot('06-Vd-added');
// ---------------------------------------------------------------- step 7: switch to river; both still in the recipe?
begin('07-river-lens');
await tapEl('#lensbar a', 'river', 'tap the river tab');
await sleep(1500);
step.facts = await layoutFacts(); note(`lens=${step.facts.lens} · tray "${step.facts.tray}" · url ${step.facts.url}`);
note(`hint: "${step.facts.hint}"`);
const both = /distance|#\d+/.test(step.facts.tray) && /Vd/.test(step.facts.tray);
note(`both keys still in the recipe (tray text): ${both}`);
const trayChips = await page.evaluate(() => [...document.querySelectorAll('#tray .rc')].map(c => ({ text: c.textContent.replace('×', '').trim(), w: Math.round(c.getBoundingClientRect().width), right: Math.round(c.getBoundingClientRect().right), border: c.style.borderColor })));
step.trayChips = trayChips; note(`tray chips: ${JSON.stringify(trayChips)}`);
const lblRiver = await page.evaluate(() => [...document.querySelectorAll('#labels span')].filter(s => !s.hidden).map(s => s.textContent).slice(0, 30));
note(`river labels on screen (${lblRiver.length}): ${lblRiver.join(', ')}`);
await shot('07-river-lens');
// ---------------------------------------------------------------- step 8: open the recipe sheet (wording check across lenses)
begin('08-recipe-sheet');
await tapEl('#tray .cnt', null, 'tap the recipe count in the tray to open the sheet');
await sleep(600);
const sheet = await page.evaluate(() => { const S = document.getElementById('sheet'); if (S.hidden) return null; const b = S.getBoundingClientRect(); return { top: Math.round(b.top), bottom: Math.round(b.bottom), h: Math.round(b.height), scrollH: S.scrollHeight, clientH: S.clientHeight, head: (S.querySelector('.u-h') || {}).textContent, rows: [...S.querySelectorAll('.ch')].map(r => r.textContent.t … [line shortened here: 790 characters; full line on GitHub]
step.sheet = sheet; note(sheet ? `sheet open ${sheet.top}-${sheet.bottom} (${sheet.h} px, content ${sheet.scrollH}); head "${sheet.head}"; rows: ${sheet.rows.join(' | ')}` : 'sheet did not open');
if (sheet) { note(`sheet buttons: ${sheet.buttons.map(b => `${b.t}(${b.w}x${b.h}@${b.top})`).join(', ')}`); note(`hand-off url shown: ${sheet.handoffText}`); }
step.facts = await layoutFacts(); note(`sheet overlaps panel ${step.facts.sheetOverPanel} px, tray ${step.facts.sheetOverTray} px`);
await shot('08-recipe-sheet');
// ---------------------------------------------------------------- step 9: hand off
begin('09-hand-off');
const nT = targets.length;
await tapEl('#sheet .row .u-chip', 'Hand off →', 'tap Hand off in the sheet');
await sleep(2500);
const opened = targets.slice(nT);
note(`new browser targets after the tap: ${opened.length} → ${opened.map(t => t.url).join(' ; ') || 'none'}`);
let handoffURL = opened.length ? opened[0].url : null;
if (!handoffURL) { note('no new tab observed; trying the tray Hand off button'); await tapEl('#tray .go', null, 'tap Hand off in the tray'); await sleep(2500); const o2 = targets.slice(nT); note(`targets now: ${o2.map(t => t.url).join(' ; ') || 'none'}`); handoffURL = o2.length ? o2[0].url : null; }
step.handoffURL = handoffURL;
if (handoffURL) {
const pages = await browser.pages(); const hp = pages.find(p => p !== page && /code-generator/.test(p.url()));
if (hp) { await hp.setViewport({ width: 430, height: 900, deviceScaleFactor: 2, isMobile: true, hasTouch: true }).catch(() => {}); await hp.waitForNetworkIdle({ timeout: 30000 }).catch(() => {}); await sleep(1500); const pk = await hp.evaluate(() => ({ url: location.href, title: document.title, text: document.body.innerText.replace(/\s+/g, ' ').slice(0, 500), scrollWidth: document.documentElemen … [line shortened here: 746 characters; full line on GitHub]
}
await shot('09-hand-off');
report.totalTaps = taps; report.targets = targets;
await browser.close();
fs.writeFileSync(OUT + 'coder-walk.json', JSON.stringify(report, null, 1));
console.log('\nwritten', OUT + 'coder-walk.json', 'total taps', taps);Engine Route
A Python module in the pipeline folder of GlobalGrid2050.
storageglobalgrid2050 / testcode/202609162200-quantum-twin-flights/pipeline/engine-route.py · lines 1–19 of 19 · version 2026-09-16 22:00 · Not reached from any entry point (candidate for review)
- What it does
- It loads data. Uses libraries json, glob, os, sys, collections. Side effects: reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
- Inputs & outputs
- Out: JSON file engine-route.json.
- What it achieves
- Step ENGINE-ROUTE: which wafer keys each ventus-grid-engine module carries (memberships).
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · testcode/202609162200-quantum-twin-flights/pipeline · Python module
- Uses
- json, glob, os, sys, collections, re
- 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
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 testcode/202609162200-quantum-twin-flights/pipeline/engine-route.py:1-19 · blob 60f1ef23f74c90ce3ccc501f53a1c5a7f8691cda · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: filesystem, process · domain stage: experimental · users: none · canonical: unreached_review
"""Step ENGINE-ROUTE: which wafer keys each ventus-grid-engine module carries (memberships). Writes engine-route.json. Deterministic."""
import json, glob, os, sys, collections, re
STARS = os.environ.get('STARS_CODE', os.path.join(os.environ.get('GITHUB_DIR', os.path.expanduser('~/Documents/GitHub')), r'stars\code'))
ENGINE = os.environ.get('ENGINE_DIR', os.path.join(os.environ.get('GITHUB_DIR', os.path.expanduser('~/Documents/GitHub')), r'ventus-grid-engine\engine'))
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
mods = sorted(f[:-3] for f in os.listdir(ENGINE) if f.endswith('.js'))
keys = collections.defaultdict(set); fams = collections.defaultdict(list)
for f in glob.glob(os.path.join(STARS, 'f', '*.json')):
for fid, v in json.load(open(f, encoding='utf-8')).items():
hit = None
for pl in v.get('places', []):
m = re.search(r'engine/([a-z0-9-]+)\.js$', pl.get('path', ''))
if m and m.group(1) in mods: hit = m.group(1); break
if hit: keys[hit].update(v.get('lines', [])); fams[hit].append({'id': fid, 'name': (v.get('names') or [''])[0], 'keys': v.get('lines', [])})
out = {'modules': {m: {'keys': sorted(keys[m]), 'families': fams[m]} for m in mods}}
found = [m for m in mods if keys[m]]
if not found: sys.exit('FAIL: no engine module has keys on the wafer')
json.dump(out, open(os.path.join(ROOT, 'engine-route.json'), 'w'), separators=(',', ':'))
print(json.dumps({'step': 'engine-route', 'modules': len(mods), 'on_wafer': len(found), 'keys': sum(len(keys[m]) for m in mods), 'missing': [m for m in mods if not keys[m]]}))Route
A Python module in the pipeline folder of GlobalGrid2050 that reads route GridAtlas and substations.
storageglobalgrid2050 / testcode/202609162200-quantum-twin-flights/pipeline/route.py · lines 1–36 of 36 · version 2026-09-16 22:00 · Not reached from any entry point (candidate for review)
- What it does
- It loads route GridAtlas and substations. Uses libraries json, glob, collections, os, sys. Side effects: reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: substations.
- Inputs & outputs
- In: JSON file route-gridatlas.json. Out: JSON file.
- What it achieves
- Step ROUTE: which wafer keys does GridAtlas carry (memberships)?
- Why it matters
- No other file in the estate was found to import it.
- Application
- globalgrid2050 · testcode/202609162200-quantum-twin-flights/pipeline · Python module
- Uses
- json, glob, collections, os, 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
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 testcode/202609162200-quantum-twin-flights/pipeline/route.py:1-36 · blob 1ae0c7f24809575a6505e27060cf658f5f7487ac · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: filesystem, process · domain stage: experimental · users: none · canonical: unreached_review
"""Step ROUTE: which wafer keys does GridAtlas carry (memberships)? Reads the Modular Star family buckets, writes route-gridatlas.json.
Deterministic. No model involved: a published number must come from a script that can fail."""
import json, glob, collections, os, sys
STARS = os.environ.get('STARS_CODE', os.path.join(os.environ.get('GITHUB_DIR', os.path.expanduser('~/Documents/GitHub')), r'stars\code'))
OUT = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'route-gridatlas.json')
want = {
'atlas/index.html': 'gridatlas/atlas/',
'atlas/releases/202608300453-atlas-v9/ventusv8.css': 'ventusv8.css',
'atlas/releases/202608300453-atlas-v9/index.html': 'releases/202608300453-atlas-v9/index.html',
'atlas/cartridges/202609041945-streaming-parquet-bridge-v9-5.js': 'streaming-parquet-bridge',
'atlas/cartridges/202609071213-place-global-search-v9-5.js': 'place-global-search',
'atlas/cartridges/202609062358-substation-intelligence-v9-63.js': 'substation-intelligence-v9-63',
'atlas/cartridges/202609080850-sld-sandbox-v9-8.js': 'sld-sandbox-v9-8',
}
per = collections.defaultdict(lambda: {'families': 0, 'keys': set(), 'repos': set()})
allkeys, fams = set(), []
buckets = glob.glob(os.path.join(STARS, 'f', '*.json'))
if not buckets: sys.exit(f'FAIL: no family buckets under {STARS}')
for f in buckets:
for fid, v in json.load(open(f, encoding='utf-8')).items():
hit = None
for pl in v.get('places', []):
path, repo = pl.get('path', ''), pl.get('repo', '')
for tp, frag in want.items():
if path.endswith(tp.split('/')[-1]) and 'gridatlas' in repo: hit = (tp, repo, path); break
if hit: break
if hit:
tp, repo, path = hit; d = per[tp]; d['families'] += 1; d['keys'].update(v.get('lines', [])); d['repos'].add(repo)
allkeys.update(v.get('lines', [])); fams.append({'id': fid, 'name': (v.get('names') or [''])[0], 'file': tp, 'keys': v.get('lines', []), 'repo': repo, 'path': path})
out = {'law': 'r = sqrt(key), theta = key * 2.39996', 'source': 'stars/code/f families matched by repo path',
'files': {k: {'families': d['families'], 'keys': sorted(d['keys']), 'repos': sorted(d['repos'])} for k, d in per.items()},
'keys': sorted(allkeys), 'families': fams}
if len(allkeys) == 0: sys.exit('FAIL: route has zero keys')
json.dump(out, open(OUT, 'w'), separators=(',', ':'))
shared = sum(len(v['keys']) for v in out['files'].values()) - len(allkeys)
print(json.dumps({'step': 'route', 'unique_keys': len(allkeys), 'shared_between_files': shared, 'families': len(fams), 'files': {k: len(v['keys']) for k, v in out['files'].items()}, 'note': 'a key can belong to several families; counts per file overlap'}))Wafer Development Environment — GridAtlas Page
A web page in the testcode folder of GlobalGrid2050. Published at https://globalgrid2050.com/testcode/wafer-development-environment/202609170041-gridatlas/.
renderglobalgrid2050 / testcode/wafer-development-environment/202609170041-gridatlas/index.html · lines 1–44 of 44 · version 2026-09-17 00:41 · Entry point
- What it does
- It draws its content. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
- Inputs & outputs
- In: form fields (user input). Out: web page.
- Downstream impact
- Used directly by 6 files: Testcode — Wafer Development Environment Page (globalgrid2050, https://globalgrid2050.com/testcode/wafer-development-environment/); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage Versions — Before Refresh Page (globalgrid2050, https://globalgrid2050.com/homepage_versions/20260922-before-refresh/); Homepage V123 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v123.html); and 2 more. Reached from 115 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://globalgrid2050.com/testcode/wafer-development-environment/202609170041-gridatlas/.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- Loaded by the Wafer Development Environment page at https://globalgrid2050.com/testcode/wafer-development-environment/ and 5 other pages.
- Application
- globalgrid2050 · testcode/wafer-development-environment/202609170041-gridatlas · page
- Uses
- GlobalGrid2050 — Testcode Style Sheet (stylesheet), Wafer Development Environment — Estate (script src), Pilot Rules (script src), Pilot (script src)
- Used by
- linked from Testcode — Wafer Development Environment Page (link), linked from GlobalGrid2050 Homepage Before Four Nests (link), linked from Homepage Versions — Before Refresh Page (link), linked from Homepage V123 (link), linked from Homepage V124 (link), linked from Homepage V125 (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
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 testcode/wafer-development-environment/202609170041-gridatlas/index.html:1-44 · blob 6c94f0893d2931664869357c5e3a0369d0829783 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: experimental · users: none · canonical: production_core
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, maximum-scale=5">
<meta name="color-scheme" content="dark">
<title>202609170041-gridatlas</title>
<meta name="wafer-data" content="../shared/">
<meta name="wafer-start" content="app gridatlas">
<link rel="stylesheet" href="style.css">
</head>
<body>
<canvas id="stage" aria-label="Every permanently numbered line of code in the estate, placed by its own number."></canvas>
<header id="bar">
<span id="wordmark">THE LINE WAFER</span>
<span id="count" class="dim">loading the numbered database…</span>
</header>
<form id="beam" autocomplete="off">
<input id="a" inputmode="numeric" pattern="[0-9]*" placeholder="line number" aria-label="line number to fly to">
<input id="b" inputmode="numeric" pattern="[0-9]*" placeholder="connect to…" aria-label="second line number to connect to">
<button id="go" type="submit">FLY</button>
</form>
<section id="panel" hidden>
<button id="close" type="button" aria-label="close">✕</button>
<div id="panelbody"></div>
</section>
<footer id="foot">
<span id="prov" class="dim">provenance loading</span>
<span id="hint" class="dim">drag to steer · pinch or scroll to focus the beam · tap a line</span>
<a id="proofs" href="proof/">check every claim on this page</a>
</footer>
<noscript><p class="dim" style="padding:1rem">This surface is drawn from the numbered database at run time, so it needs JavaScript. Nothing here is typed into the page.</p></noscript>
<script type="module" src="app.mjs"></script>
<script src="pilot-rules.js"></script>
<script type="module" src="pilot.mjs"></script>
</body>
</html>Wafer Development Environment — Land GridAtlas Page
A web page in the testcode folder of GlobalGrid2050. Published at https://globalgrid2050.com/testcode/wafer-development-environment/202609170045-land-gridatlas/.
renderglobalgrid2050 / testcode/wafer-development-environment/202609170045-land-gridatlas/index.html · lines 1–44 of 44 · version 2026-09-17 00:45 · Entry point
- What it does
- It draws its content. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage experimental (path word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
- Inputs & outputs
- In: form fields (user input). Out: web page.
- Downstream impact
- Used directly by 6 files: Testcode — Wafer Development Environment Page (globalgrid2050, https://globalgrid2050.com/testcode/wafer-development-environment/); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage Versions — Before Refresh Page (globalgrid2050, https://globalgrid2050.com/homepage_versions/20260922-before-refresh/); Homepage V123 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v123.html); and 2 more. Reached from 115 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); Homepage V037 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v037.html); Homepage V038 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v038.html). It is itself an entry point, published at https://globalgrid2050.com/testcode/wafer-development-environment/202609170045-land-gridatlas/.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- Loaded by the Wafer Development Environment page at https://globalgrid2050.com/testcode/wafer-development-environment/ and 5 other pages.
- Application
- globalgrid2050 · testcode/wafer-development-environment/202609170045-land-gridatlas · page
- Uses
- GlobalGrid2050 — Testcode Style Sheet (stylesheet), Wafer Development Environment — Estate (script src), Pilot Rules (script src), Pilot (script src)
- Used by
- linked from Testcode — Wafer Development Environment Page (link), linked from GlobalGrid2050 Homepage Before Four Nests (link), linked from Homepage Versions — Before Refresh Page (link), linked from Homepage V123 (link), linked from Homepage V124 (link), linked from Homepage V125 (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
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 testcode/wafer-development-environment/202609170045-land-gridatlas/index.html:1-44 · blob 3edf7937b418a22836b7a1d78e119c49d3b01a91 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: experimental · users: none · canonical: production_core
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, maximum-scale=5">
<meta name="color-scheme" content="dark">
<title>202609170045-land-gridatlas</title>
<meta name="wafer-data" content="../shared/">
<meta name="wafer-start" content="land gridatlas">
<link rel="stylesheet" href="style.css">
</head>
<body>
<canvas id="stage" aria-label="Every permanently numbered line of code in the estate, placed by its own number."></canvas>
<header id="bar">
<span id="wordmark">THE LINE WAFER</span>
<span id="count" class="dim">loading the numbered database…</span>
</header>
<form id="beam" autocomplete="off">
<input id="a" inputmode="numeric" pattern="[0-9]*" placeholder="line number" aria-label="line number to fly to">
<input id="b" inputmode="numeric" pattern="[0-9]*" placeholder="connect to…" aria-label="second line number to connect to">
<button id="go" type="submit">FLY</button>
</form>
<section id="panel" hidden>
<button id="close" type="button" aria-label="close">✕</button>
<div id="panelbody"></div>
</section>
<footer id="foot">
<span id="prov" class="dim">provenance loading</span>
<span id="hint" class="dim">drag to steer · pinch or scroll to focus the beam · tap a line</span>
<a id="proofs" href="proof/">check every claim on this page</a>
</footer>
<noscript><p class="dim" style="padding:1rem">This surface is drawn from the numbered database at run time, so it needs JavaScript. Nothing here is typed into the page.</p></noscript>
<script type="module" src="app.mjs"></script>
<script src="pilot-rules.js"></script>
<script type="module" src="pilot.mjs"></script>
</body>
</html>