In this section
- Verify Evidence other · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-9/evidence/verify_evidence.py lines 1–124
- Verify Keys other · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-9/evidence/verify_keys.py lines 1–59
- Measure Ed4 B render · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-1/B/measure-ed4-B.cjs lines 1–23
- Measure Ga B interaction · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-1/B/measure-ga-B.cjs lines 1–61
- Check Keys ingest · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-2/check_keys.py lines 1–47
- Check Steps Keys ingest · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-2/check_steps_keys.py lines 1–32
- Shots render · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-3/shots.cjs lines 1–75
- App Sizes other · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-4/app_sizes.py lines 1–18
- Drift storage · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-4/drift.py lines 1–42
- Drift Strict storage · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-4/drift_strict.py lines 1–43
- Spider Pixel7 render · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-4/spider-pixel7.cjs lines 1–38
- Unique Lines storage · neural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-4/unique_lines.py lines 1–29
Verify Evidence
A Python module in the tools folder of Neural Link Between Agents that works with repo dir (`repo_dir`), using SHA-256. It is built from the git step (`git`).
otherneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-9/evidence/verify_evidence.py · lines 1–124 of 124 · Entry point
- What it does
- It lists and searches its content. Defines repo_dir, git. Uses libraries re, subprocess, hashlib. 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).
- Inputs & outputs
- In: JSON file current.json.
- Downstream impact
- It is itself an entry point (Python module); no other file was found loading it.
- What it achieves
- OPUS-9 evidence officer: re-read every key of `handoff/09-law/EVIDENCE.md` from git objects (never a working tree).
- 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-9/evidence · Python module
- Uses
- re, subprocess, hashlib
- Used by
- none found
- Produces
- repo_dir, git
- Defines here
- repo_dir, git
- 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-9/evidence/verify_evidence.py:1-124 · blob bbdbbb3a809d99f2ceae1e966c6c4fd7091d1e17 · GitHub at these lines
- State
- achieves: comment · context: auto · stage: unknown · effects: process · domain stage: agent_infra · users: ai_agent · canonical: unknown
#!/usr/bin/env python3
"""OPUS-9 evidence officer: re-read every key of handoff/09-law/EVIDENCE.md from git objects (never a working tree).
Apache-2.0 (kuiper-belt code). One TSV row per key: section, id, key, PASS/FAIL, lines read (trimmed)."""
import re, subprocess, hashlib
E = '/home/user/estate'
NL = '/home/user/neural-link-between-agents'
def repo_dir(r): return NL if r == 'neural-link' else E + '/' + r
def git(repo, *a, binary=False):
r = subprocess.run(['git', '-C', repo_dir(repo)] + list(a), capture_output=True)
return r.returncode, (r.stdout if binary else r.stdout.decode('utf-8', 'replace'))
RL = 'docs/RELEASE.md'; NOTES = 'SESSIONS/202611012145-kuiper-edition-harness-notes.md'
MB = 'atlas/modules/202609031958-menu-bar.js'
K = [ # section, id, repo, sha, path, a, b, regex
# 1. RELEASE.md: the eight steps and the rules
('R', 'step-1-cut', 'gridatlas', '5ec7f62', RL, 38, 38, r'^\| 1 \| cut \|.*make-generation'),
('R', 'step-2-preview', 'gridatlas', '5ec7f62', RL, 39, 39, r'^\| 2 \| preview PR \|.*draft PR'),
('R', 'step-3-acceptance', 'gridatlas', '5ec7f62', RL, 40, 40, r'^\| 3 \| owner acceptance \|.*ACCEPT G.*first line.*owner login'),
('R', 'step-4-release', 'gridatlas', '5ec7f62', RL, 41, 41, r'^\| 4 \| release \|.*owner merges it with \*\*rebase'),
('R', 'step-5-live', 'gridatlas', '5ec7f62', RL, 42, 42, r'^\| 5 \| live bytes \|'),
('R', 'step-6-homepage', 'gridatlas', '5ec7f62', RL, 43, 43, r'^\| 6 \| homepage \|'),
('R', 'step-7-served', 'gridatlas', '5ec7f62', RL, 44, 44, r'^\| 7 \| served \|.*byte for byte'),
('R', 'step-8-rollback', 'gridatlas', '5ec7f62', RL, 45, 45, r'^\| 8 \| rollback \|.*route C'),
('R', 'eight-steps', 'gridatlas', '5ec7f62', RL, 26, 26, r'Eight steps'),
('R', 'pointer-only', 'gridatlas', '5ec7f62', RL, 3, 7, r'Nothing else changes'),
('R', 'agents-never-accept', 'gridatlas', '5ec7f62', RL, 49, 53, r'Agents never record acceptance'),
('R', 'owner-merges', 'gridatlas', '5ec7f62', RL, 54, 55, r'Only the owner merges a release[\s\S]*rebase, never squash'),
('R', 'hash-each-cartridge', 'gridatlas', '5ec7f62', RL, 117, 117, r'hashing to its recorded sha256'),
('R', 'tested-preview', 'gridatlas', '5ec7f62', RL, 119, 121, r'tested preview is the release'),
('R', 'two-files', 'gridatlas', '5ec7f62', RL, 147, 151, r'revertable, byte for byte'),
('R', 'reverse-order', 'gridatlas', '5ec7f62', RL, 264, 264, r'pointer first'),
('R', 'route-c-refusals', 'gridatlas', '5ec7f62', RL, 291, 296, r'pointer has moved since'),
('R', 'route-c-byte', 'gridatlas', '5ec7f62', RL, 300, 302, r'byte-identical'),
('R', 'route-c-gates', 'gridatlas', '5ec7f62', RL, 305, 306, r'runs the gates[\s\S]*rollback/'),
('R', 'manifest-arch', 'gridatlas', '5ec7f62', 'atlas/current.json', 5, 5, r'IMMUTABLE_SHELL_PLUS_HASHED_CARTRIDGES'),
('R', 'manifest-order', 'gridatlas', '5ec7f62', 'atlas/current.json', 14, 21, r'cartridge_order'),
('R', 'manifest-sha', 'gridatlas', '5ec7f62', 'atlas/current.json', 31, 31, r'"sha256": "[0-9a-f]{64}"'),
('R', 'pr-gate-sha', 'gridatlas', '5ec7f62', 'tools/ci/pr-gate.mjs', 176, 176, r'SHA-256 mismatch'),
('R', 'menu-admission', 'gridatlas', '5ec7f62', MB, 8, 17, r'installs nothing until'),
('R', 'menu-no-silent-skip', 'gridatlas', '5ec7f62', MB, 17, 18, r'reachable[\s\S]*instead of being silently skipped'),
('R', 'menu-complete', 'gridatlas', '5ec7f62', MB, 122, 124, r'EXPECTED_LAYER_CONTROLS'),
('R', 'menu-missing', 'gridatlas', '5ec7f62', MB, 157, 157, r"missing\.push\('63 unique layer controls'\)"),
('R', 'ga-root-forward', 'gridatlas', '5ec7f62', 'index.html', 2, 2, r'location\.replace\(target\+window\.location\.search\+window\.location\.hash\)'),
# 2. LAWS.md L1-L10
('L', 'preface', 'kuiper-belt', '018b46a', 'LAWS.md', 3, 4, r'cannot be falsified is not a\s*law|cannot be falsified'),
('L', 'L1', 'kuiper-belt', '018b46a', 'LAWS.md', 12, 12, r'^## L1\. The shepherd is computed, never declared'),
('L', 'L2', 'kuiper-belt', '018b46a', 'LAWS.md', 26, 26, r'^## L2\. Semi-major axis'),
('L', 'L3', 'kuiper-belt', '018b46a', 'LAWS.md', 42, 42, r'^## L3\. Eccentricity'),
('L', 'L4', 'kuiper-belt', '018b46a', 'LAWS.md', 57, 57, r'^## L4\. Inclination'),
('L', 'L5', 'kuiper-belt', '018b46a', 'LAWS.md', 72, 72, r'^## L5\. Mass'),
('L', 'L6', 'kuiper-belt', '018b46a', 'LAWS.md', 82, 82, r'^## L6\. Resonance'),
('L', 'L7', 'kuiper-belt', '018b46a', 'LAWS.md', 100, 100, r'^## L7\. Epoch'),
('L', 'L8', 'kuiper-belt', '018b46a', 'LAWS.md', 111, 111, r'^## L8\. Openness: the only law that judges'),
('L', 'L8-body', 'kuiper-belt', '018b46a', 'LAWS.md', 111, 124, r'licen'),
('L', 'L9', 'kuiper-belt', '018b46a', 'LAWS.md', 128, 128, r'^## L9\. Reproducibility'),
('L', 'L10', 'kuiper-belt', '018b46a', 'LAWS.md', 139, 139, r'^## L10\. Reconciliation'),
('L', 'L10-verdicts', 'kuiper-belt', '018b46a', 'LAWS.md', 152, 157, r'HONOURED[\s\S]*OVERREACHED[\s\S]*NOT EVALUATED[\s\S]*DISCLOSED'),
('L', 'L10-not-evaluated', 'kuiper-belt', '018b46a', 'LAWS.md', 156, 156, r'NOT EVALUATED'),
('L', 'L10-disclosed', 'kuiper-belt', '018b46a', 'LAWS.md', 157, 157, r'DISCLOSED'),
# 3. ci_check K1-K4
('K', 'K1-def', 'kuiper-belt', '018b46a', 'tools/ci_check.py', 8, 8, r'K1\s+no tracked file'),
('K', 'K2-def', 'kuiper-belt', '018b46a', 'tools/ci_check.py', 9, 9, r'K2\s+cosmos/wafer\.tsv'),
('K', 'K3-def', 'kuiper-belt', '018b46a', 'tools/ci_check.py', 10, 10, r'K3\s+every tool'),
('K', 'K4-def', 'kuiper-belt', '018b46a', 'tools/ci_check.py', 11, 11, r'K4\s+keys are in time order'),
('K', 'K1-code', 'kuiper-belt', '018b46a', 'tools/ci_check.py', 37, 48, r"K1 privacy"),
('K', 'K2-code', 'kuiper-belt', '018b46a', 'tools/ci_check.py', 50, 60, r"K2 sums"),
('K', 'K3-code', 'kuiper-belt', '018b46a', 'tools/ci_check.py', 62, 80, r"K3 syntax"),
('K', 'K3-root-only', 'kuiper-belt', '018b46a', 'tools/ci_check.py', 68, 68, r"os\.listdir\(ROOT\)"),
('K', 'K4-code', 'kuiper-belt', '018b46a', 'tools/ci_check.py', 82, 93, r"K4 order"),
('K', 'result-line', 'kuiper-belt', '018b46a', 'tools/ci_check.py', 97, 97, r"RESULT: "),
('K', 'workflow-on', 'kuiper-belt', '018b46a', '.github/workflows/check.yml', 6, 8, r'on:[\s\S]*push'),
('K', 'workflow-run', 'kuiper-belt', '018b46a', '.github/workflows/check.yml', 25, 26, r'python tools/ci_check\.py'),
# 4. pointers
('P', 'ed-meta', 'kuiper-belt', '018b46a', 'editions/index.html', 7, 7, r'url=202611012027/"'),
('P', 'ed-link', 'kuiper-belt', '018b46a', 'editions/index.html', 11, 11, r'href="202611012027/"'),
('P', 'ed-replace', 'kuiper-belt', '018b46a', 'editions/index.html', 12, 12, r"location\.replace\('202611012027/' \+ location\.hash\)"),
('P', 'ed-meta-HEAD', 'kuiper-belt', 'HEAD', 'editions/index.html', 7, 7, r'url=202611012027/"'),
('P', 'ed-link-HEAD', 'kuiper-belt', 'HEAD', 'editions/index.html', 11, 11, r'href="202611012027/"'),
('P', 'ed-replace-HEAD', 'kuiper-belt', 'HEAD', 'editions/index.html', 12, 12, r"location\.replace\('202611012027/' \+ location\.hash\)"),
('P', 'st-meta', 'kuiper-belt', '018b46a', 'see-through/index.html', 7, 7, r'url=202610050609/"'),
('P', 'st-link', 'kuiper-belt', '018b46a', 'see-through/index.html', 11, 11, r'href="202610050609/"'),
('P', 'st-replace', 'kuiper-belt', '018b46a', 'see-through/index.html', 12, 12, r"location\.replace\('202610050609/' \+ location\.hash\)"),
('P', 'st-meta-HEAD', 'kuiper-belt', 'HEAD', 'see-through/index.html', 7, 7, r'url=202611020012/"'),
('P', 'st-link-HEAD', 'kuiper-belt', 'HEAD', 'see-through/index.html', 11, 11, r'href="202611020012/"'),
('P', 'st-replace-HEAD', 'kuiper-belt', 'HEAD', 'see-through/index.html', 12, 12, r"location\.replace\('202611020012/' \+ location\.search \+ location\.hash\)"),
('P', 'ed-readme-stamp', 'kuiper-belt', '018b46a', 'editions/README.md', 3, 4, r'the stamp is the key[\s\S]*Kuiper Edition 4'),
('P', 'ed-readme-newest', 'kuiper-belt', '018b46a', 'editions/README.md', 9, 10, r'from the pointer, not by sorting'),
('P', 'ed4-no-belt', 'kuiper-belt', '018b46a', 'editions/202611012027/README.md', 25, 26, r'/belt/'),
('P', 'ed4-keys-sha', 'kuiper-belt', '018b46a', 'editions/202611012027/proof/edition-sha256.txt', 4, 4, r'^1c293c33[0-9a-f]{56}\s+\S*keys\.json'),
# 5. the harness notes and AGENTS.md (the law's process keys)
('N', 'nl008-gap', 'neural-link', '591b57c', NOTES, 19, 20, r'only the owner merges'),
('N', 'folder-rule', 'neural-link', '591b57c', NOTES, 39, 41, r'new dated folder[\s\S]*three[\s\S]*no `/belt/`'),
('N', 'readme-entries', 'neural-link', '591b57c', NOTES, 42, 43, r'current[\s\S]*edition'),
('N', 'folder-files', 'neural-link', '591b57c', NOTES, 44, 46, r'sha256 of every file except itself'),
('N', 'ci-before-push', 'neural-link', '591b57c', NOTES, 48, 49, r'RESULT: PASS[\s\S]*merge `--no-ff` into main'),
('N', 'android-test', 'neural-link', '591b57c', NOTES, 52, 58, r'Pixel 7[\s\S]*hasTouch'),
('N', 'never-accept', 'neural-link', '591b57c', NOTES, 63, 64, r'Agents never post ACCEPT'),
('N', 'agents-11', 'neural-link', '591b57c', 'AGENTS.md', 11, 11, r'owner acceptance'),
('N', 'agents-18', 'neural-link', '591b57c', 'AGENTS.md', 18, 18, r'declare `ACCEPT <generation>`, merge protected or live release branches'),
('N', 'nl009-01-13', 'neural-link', 'HEAD', 'FIXES/NL-009/round1/01-bar.md', 13, 13, r'BLOCKER.*75\.1 px'),
('N', 'nl009-01-18', 'neural-link', 'HEAD', 'FIXES/NL-009/round1/01-bar.md', 18, 18, r'MAJOR.*29\.0 px'),
('N', 'nl009-01-20', 'neural-link', 'HEAD', 'FIXES/NL-009/round1/01-bar.md', 20, 20, r'MAJOR.*SEE THROUGH'),
('N', 'nl009-06-11', 'neural-link', 'HEAD', 'FIXES/NL-009/round1/06-seethrough.md', 11, 11, r'BLOCKER.*unreachable'),
('N', 'nl009-06-24', 'neural-link', 'HEAD', 'FIXES/NL-009/round1/06-seethrough.md', 24, 24, r'MAJOR'),
('N', 'nl009-09-11', 'neural-link', 'HEAD', 'FIXES/NL-009/round1/09-robust.md', 11, 11, r'MAJOR.*READOUT'),
('N', 'nl009-09-18', 'neural-link', 'HEAD', 'FIXES/NL-009/round1/09-robust.md', 18, 18, r'MAJOR.*WebGL'),
]
bad = 0
rows = []
for sec, i, repo, sha, path, a, b, rx in K:
if sha == 'HEAD':
sha = git(repo, 'rev-parse', '--short=7', 'HEAD')[1].strip()
rc, out = git(repo, 'show', '%s:%s' % (sha, path))
lines = out.split('\n')[a - 1:b] if rc == 0 else []
ok = rc == 0 and bool(re.search(rx, '\n'.join(lines), re.I | re.M))
bad += not ok
print('%s\t%s\t%s@%s %s:%s\t%s\t%s' % (sec, i, repo, sha, path, a if a == b else '%d-%d' % (a, b), 'PASS' if ok else 'FAIL',
' / '.join(l.strip() for l in lines if l.strip())[:200]))
# unchanged between the roadmap's head and the branch head
for p in ['LAWS.md', 'tools/ci_check.py', 'editions/index.html', 'LICENSE', 'README.md', 'editions/README.md']:
rc, d = git('kuiper-belt', 'diff', '--stat', '018b46a', 'HEAD', '--', p)
print('U\tunchanged:%s\tkuiper-belt 018b46a..HEAD %s\t%s\t%s' % (p, p, 'PASS' if rc == 0 and not d.strip() else 'CHANGED', d.strip()[:120]))
rc, d = git('gridatlas', 'diff', '--stat', '5ec7f62', 'HEAD', '--', RL)
print('U\tunchanged:RELEASE.md\tgridatlas 5ec7f62..HEAD\t%s\t%s' % ('PASS' if not d.strip() else 'CHANGED', d.strip()[:120]))
print('RESULT: %s (%d keys)' % ('PASS' if not bad else 'FAIL (%d)' % bad, len(K)))Verify Keys
A Python module in the evidence folder of Neural Link Between Agents. It is built from the git step (`git`).
otherneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010-opus/team-9/evidence/verify_keys.py · lines 1–59 of 59 · Entry point
- What it does
- It lists and searches its content. Defines git. Uses libraries re, subprocess, sys. 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 (Python module); no other file was found loading it.
- What it achieves
- Re-read every key of the `LICENCES.md` register from git objects at the named heads (never a working tree).
- 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-9/evidence · Python module
- Uses
- re, subprocess, sys
- Used by
- none found
- Produces
- git
- Defines here
- git
- 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-9/evidence/verify_keys.py:1-59 · blob 3398d6195e91953271a720df08b845e5f115807a · GitHub at these lines
- State
- achieves: comment · context: auto · stage: unknown · effects: process · domain stage: agent_infra · users: ai_agent · canonical: unknown
#!/usr/bin/env python3
"""Re-read every key of the LICENCES.md register from git objects at the named heads (never a working tree).
Apache-2.0 (kuiper-belt code). Prints one TSV row per key: id, key, PASS/FAIL, the lines read (trimmed)."""
import re, subprocess, sys
E = '/home/user/estate'
ST = 'see-through/202610050609/'
K = [ # id, repo, sha, path, first, last, regex that must match the lines read
('kb-licence', 'kuiper-belt', '018b46a', 'LICENSE', 1, 3, r'Apache License'),
('kb-readme', 'kuiper-belt', '018b46a', 'README.md', 156, 157, r'Apache-2\.0[\s\S]*CC BY 4\.0'),
('kb-editions-readme', 'kuiper-belt', '018b46a', 'editions/README.md', 27, 27, r'Apache-2\.0'),
('kb-ed4-notice-code', 'kuiper-belt', '018b46a', 'editions/202611012027/NOTICE.md', 3, 5, r'Apache License 2\.0'),
('kb-ed4-notice-quotes', 'kuiper-belt', '018b46a', 'editions/202611012027/NOTICE.md', 7, 10, r'ODbL[\s\S]*(OGL|Open Government)'),
('kb-laws-l8', 'kuiper-belt', '018b46a', 'LAWS.md', 111, 124, r'licen'),
('kb-laws-disclosed', 'kuiper-belt', '018b46a', 'LAWS.md', 156, 156, r'NOT EVALUATED|DISCLOSED|examine'),
('ga-licence', 'gridatlas', '5ec7f62', 'LICENSE', 1, 4, r'Apache License'),
('ga-notice', 'gridatlas', '5ec7f62', 'NOTICE', 1, 12, r'Ventus[\s\S]*Apache'),
('ga-notice-thirdparty', 'gridatlas', '5ec7f62', 'NOTICE', 25, 32, r'(third|data)'),
('ga-trademarks', 'gridatlas', '5ec7f62', 'LICENSE', 139, 142, r'Trademarks'),
('ga-ventus-css', 'gridatlas', '5ec7f62', 'atlas/modules/202609031958-menu-bar.js', 184, 205, r'ventus'),
('st-licence', 'kuiper-belt', '018b46a', ST + 'LICENSE.md', 1, 10, r'CERN'),
('st-notice-head', 'kuiper-belt', '018b46a', ST + 'NOTICE.md', 3, 3, r'CERN|licen'),
('st-notice-files', 'kuiper-belt', '018b46a', ST + 'NOTICE.md', 8, 16, r'CERN|ODbL'),
('st-notice-odbl', 'kuiper-belt', '018b46a', ST + 'NOTICE.md', 22, 27, r'OpenStreetMap[\s\S]*ODbL|Open Database'),
('st-notice-services', 'kuiper-belt', '018b46a', ST + 'NOTICE.md', 28, 34, r'CARTO[\s\S]*Esri'),
('st-notice-maplibre', 'kuiper-belt', '018b46a', ST + 'NOTICE.md', 38, 39, r'MapLibre|BSD'),
('st-maplibre-licence', 'kuiper-belt', '018b46a', ST + 'vendor/MAPLIBRE-LICENSE.txt', 1, 1, r'.'),
('st-cern-text', 'kuiper-belt', '018b46a', ST + 'licences/globalgrid2050-CERN-OHL-S-2.0.txt', 1, 1, r'CERN'),
('st-pointer', 'kuiper-belt', '018b46a', 'see-through/index.html', 12, 12, r'202610050609/'),
('gg-licence', 'globalgrid2050', 'c66759f', 'LICENSE.txt', 1, 5, r'CERN'),
('lk-readme', 'kuiper-belt', '018b46a', 'learn-the-kuiper/README.md', 34, 37, r'licen|Apache|CC BY|CERN'),
('lk-notice', 'kuiper-belt', '018b46a', 'learn-the-kuiper/202610050609/NOTICE.md', 7, 11, r'CERN'),
('tc-licence', 'testcode', 'd09c185', 'LICENSE', 2, 4, r'Apache'),
('tc-notice', 'testcode', 'd09c185', 'NOTICE', 1, 12, r'Apache'),
('tc-notice-thirdparty', 'testcode', 'd09c185', 'NOTICE', 26, 33, r'.'),
]
NONE = [('elements', 'f7a92fb'), ('galaxies-wafers', 'fff6fc6'), ('stars', 'cbca125'), ('code-generator', '857ea81')]
def git(repo, *a):
r = subprocess.run(['git', '-C', E + '/' + repo] + list(a), capture_output=True)
return r.returncode, r.stdout.decode('utf-8', 'replace')
bad = 0
for i, repo, sha, path, a, b, rx in K:
rc, out = git(repo, 'show', '%s:%s' % (sha, path))
lines = out.split('\n')[a - 1:b] if rc == 0 else []
txt = '\n'.join(lines)
ok = rc == 0 and bool(re.search(rx, txt, re.I))
bad += not ok
print('%s\t%s@%s %s:%s\t%s\t%s' % (i, repo, sha, path, a if a == b else '%d-%d' % (a, b), 'PASS' if ok else 'FAIL', ' / '.join(l.strip() for l in lines if l.strip())[:220]))
for repo, sha in NONE:
rc, files = git(repo, 'ls-tree', '-r', '--name-only', sha)
fl = [f for f in files.split('\n') if f]
lic = [f for f in fl if re.search(r'licen|notice|copying', f.split('/')[-1], re.I)]
rc2, g = git(repo, 'grep', '-n', '-i', '-I', 'licen', sha)
hits = [l for l in g.split('\n') if l]
print('none-%s\t%s@%s (tree)\t%s\t%d tracked files; licence/notice/copying files: %s; `git grep -i licen`: %d line(s)%s' % (
repo, repo, sha, 'PASS' if rc == 0 else 'FAIL', len(fl), lic or 'none', len(hits), (' e.g. ' + hits[0][:120]) if hits else ''))
bad += rc != 0
print('RESULT: %s' % ('PASS' if not bad else 'FAIL (%d)' % bad))Measure Ed4 B
A JavaScript module in the evidence folder of Neural Link Between Agents.
renderneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-1/B/measure-ed4-B.cjs · lines 1–23 of 23 · Not reached from any entry point (candidate for review)
- What it does
- Defines r. Uses libraries playwright. Side effects: changes the web page (DOM); 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/team-1/B · JavaScript module
- Uses
- playwright
- 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/team-1/B/measure-ed4-B.cjs:1-23 · blob 8133d48ff3b3c9e9936e35f1a589f4c40d8f19af · GitHub at these lines
- State
- achieves: name · context: auto · stage: output · effects: dom, process · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
const { chromium, devices } = require('playwright');
(async () => {
const browser = await chromium.launch({ args: ['--use-gl=angle','--use-angle=swiftshader','--enable-unsafe-swiftshader','--ignore-gpu-blocklist'] });
const out = {};
for (const [name, ctxOpts] of [['pixel7', { ...devices['Pixel 7'] }], ['w360', { viewport: { width: 360, height: 780 }, deviceScaleFactor: 3, isMobile: true, hasTouch: true }], ['desktop1280', { viewport: { width: 1280, height: 800 } }]]) {
const ctx = await browser.newContext(ctxOpts);
const page = await ctx.newPage();
const errs = []; page.on('pageerror', e => errs.push(String(e))); page.on('console', m => { if (m.type() === 'error') errs.push(m.text()); });
await page.goto('http://127.0.0.1:8771/editions/202611012027/', { waitUntil: 'load', timeout: 120000 });
await page.waitForTimeout(7000);
const m = await page.evaluate(() => {
const r = s => { const e = document.querySelector(s); if (!e) return null; const b = e.getBoundingClientRect(); const cs = getComputedStyle(e); return { x: Math.round(b.x), y: Math.round(b.y), w: Math.round(b.width), h: Math.round(b.height), font: cs.font, color: cs.color, bg: cs.backgroundColor, display: cs.display }; };
const titles = [...document.querySelectorAll('#bar .gm-title')].map(b => ({ text: b.textContent, ...(() => { const r = b.getBoundingClientRect(); return { x: Math.round(r.x), y: Math.round(r.y), w: Math.round(r.width), h: Math.round(r.height) }; })() }));
const rows = new Set(titles.map(t => t.y)); const nameR = document.getElementById('barname').getBoundingClientRect(); rows.add(Math.round(nameR.y));
return { vw: innerWidth, vh: innerHeight, bar: r('#bar'), barname: r('#barname'), titles, barRows: rows.size, top: r('#top'), hud: r('#hud'), foot: r('#foot'), card: r('#card'), lines: r('#lines'), bodyFont: getComputedStyle(document.body).font };
});
out[name] = { ...m, errors: errs };
await page.screenshot({ path: `/tmp/nl010/team-1/B/ed4-${name}.png` });
await ctx.close();
}
console.log(JSON.stringify(out, null, 1));
await browser.close();
})().catch(e => { console.error(e); process.exit(1); });Measure Ga B
A JavaScript module in the evidence folder of Neural Link Between Agents.
interactionneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-1/B/measure-ga-B.cjs · lines 1–61 of 61 · Not reached from any entry point (candidate for review)
- What it does
- It loads data. Defines rr, cs. 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).
- 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/nl010/team-1/B · JavaScript module
- Uses
- playwright, fs
- Used by
- none found
- Produces
- rr, cs
- Defines here
- rr, cs
- 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/team-1/B/measure-ga-B.cjs:1-61 · blob 88798a676a43ef46ac83f57ba18136b9aa4a4b5c · GitHub at these lines
- State
- achieves: name · context: auto · stage: output · effects: dom, filesystem, process · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
const { chromium, devices } = require('playwright');
const fs = require('fs');
const ML = fs.readFileSync('/home/user/estate/kuiper-belt/see-through/202610050609/vendor/maplibre-gl.js');
(async () => {
const browser = await chromium.launch({ args: ['--use-gl=angle','--use-angle=swiftshader','--enable-unsafe-swiftshader','--ignore-gpu-blocklist'] });
const out = {};
for (const [name, ctxOpts] of [['desktop1280', { viewport: { width: 1280, height: 800 } }], ['pixel7', { ...devices['Pixel 7'] }], ['w360', { viewport: { width: 360, height: 780 }, deviceScaleFactor: 3, isMobile: true, hasTouch: true }]]) {
const ctx = await browser.newContext(ctxOpts);
await ctx.route(/^https?:\/\/(?!127\.0\.0\.1)/, route => {
const u = route.request().url();
if (/maplibre-gl.*\.js$/.test(u)) return route.fulfill({ status: 200, contentType: 'text/javascript', body: ML });
if (/maplibre-gl.*\.css$/.test(u)) return route.fulfill({ status: 200, contentType: 'text/css', body: '' });
if (/style\.json/.test(u)) return route.fulfill({ status: 200, contentType: 'application/json', body: JSON.stringify({ version: 8, name: 'stub', sources: {}, layers: [{ id: 'bg', type: 'background', paint: { 'background-color': '#000' } }] }) });
return route.abort();
});
const page = await ctx.newPage();
const errs = []; page.on('pageerror', e => errs.push(String(e).slice(0, 200)));
await page.goto('http://127.0.0.1:8772/atlas/', { waitUntil: 'load', timeout: 120000 });
let installed = false;
try { await page.waitForSelector('#gridatlas-menu-bar', { timeout: 60000 }); installed = true; } catch (e) {}
await page.waitForTimeout(3000);
const m = await page.evaluate(() => {
const rr = e => { if (!e) return null; const b = e.getBoundingClientRect(); return { x: Math.round(b.x), y: Math.round(b.y), w: Math.round(b.width), h: Math.round(b.height) }; };
const cs = (e, props) => { if (!e) return null; const s = getComputedStyle(e); const o = {}; for (const p of props) o[p] = s[p]; return o; };
const bar = document.getElementById('gridatlas-menu-bar');
const titles = [...document.querySelectorAll('#gridatlas-menu-bar .gm-title')].map(b => ({ text: b.textContent, rect: rr(b), style: cs(b, ['fontSize','fontFamily','letterSpacing','textTransform','color']) }));
const brand = document.querySelector('#gridatlas-menu-bar .gm-brand-slot');
const main = document.querySelector('#gridatlas-menu-bar .ventus-main');
const sub = document.querySelector('#gridatlas-menu-bar .ventus-sub');
const state = window.__GRIDATLAS_MODULES__ && window.__GRIDATLAS_MODULES__.menuBar;
return {
vw: innerWidth, vh: innerHeight, gen: document.documentElement.dataset.gridatlasGeneration,
bar: rr(bar), barStyle: cs(bar, ['position','height','font','backgroundColor','borderBottom','zIndex']),
titles, brand: rr(brand), main: { rect: rr(main), text: main && main.textContent, style: cs(main, ['fontSize','fontWeight','fontFamily','letterSpacing','color','textTransform']), insideAnchor: !!(main && main.closest('a')), onclick: !!(main && (main.onclick || main.closest('[onclick]'))) },
sub: { rect: rr(sub), text: sub && sub.textContent, style: cs(sub, ['fontSize','letterSpacing','color']) },
mapContainer: rr(document.querySelector('.map-container')), map: rr(document.getElementById('map')),
hudHeaderParent: document.querySelector('.hud-header') && document.querySelector('.hud-header').parentElement.className,
letterhead: cs(document.getElementById('fs-letterhead'), ['display']),
panelCounts: state && state.panel_counts, installedState: state && state.installed, layer_controls: state && state.layer_controls, failure: state && state.failure, waiting: state && state.waiting_for,
gridChips: [...document.querySelectorAll('#gridatlas-mobile-tray button')].filter(b => !b.hidden).map(b => ({ text: b.textContent.trim(), rect: rr(b) }))
};
});
out[name] = { installed, ...m, errors: errs.slice(0, 5) };
await page.screenshot({ path: `/tmp/nl010/team-1/B/ga-${name}.png`, timeout: 180000 }); fs.writeFileSync('/tmp/nl010/team-1/B/ga-' + name + '.json', JSON.stringify(out[name], null, 1));
if (installed) {
// open each menu and measure its panel
const panels = {};
for (let i = 0; i < 6; i++) {
await page.click(`#gridatlas-menu-bar-title-${i}`);
await page.waitForTimeout(400);
panels[await page.textContent(`#gridatlas-menu-bar-title-${i}`)] = await page.evaluate((i) => { const p = document.getElementById('gridatlas-menu-bar-panel-' + i); const b = p.getBoundingClientRect(); return { x: Math.round(b.x), y: Math.round(b.y), w: Math.round(b.width), h: Math.round(b.height), items: [...p.querySelectorAll('button,a,label,.gm-layer-group')].slice(0, 40).map(e => e.text … [line shortened here: 459 characters; full line on GitHub]
if (name === 'desktop1280') await page.screenshot({ path: `/tmp/nl010/team-1/B/ga-${name}-menu${i}.png`, timeout: 180000 });
await page.keyboard.press('Escape');
}
out[name].panels = panels; fs.writeFileSync('/tmp/nl010/team-1/B/ga-' + name + '.json', JSON.stringify(out[name], null, 1));
}
await ctx.close();
}
console.log(JSON.stringify(out, null, 1));
await browser.close();
})().catch(e => { console.error(e); process.exit(1); });Check Keys
A Python module in the evidence folder of Neural Link Between Agents that verifies every `repo@sha path:line` key in an EVIDENCE/STEPS file against the clones under `/home/user/estate`.
ingestneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-2/check_keys.py · lines 1–47 of 47 · Entry point · pattern lines (shared by 10 files)
- What it does
- It loads data. Defines head, lines. Uses libraries re, subprocess, sys, os. 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.
- Downstream impact
- It is itself an entry point (Python module); no other file was found loading it.
- What it achieves
- Its name says it checks keys. Defines `head` and `lines`.
- 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/team-2 · Python module
- Uses
- re, subprocess, sys, os
- Used by
- none found
- Produces
- head, lines
- Defines here
- head, lines
- 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/team-2/check_keys.py:1-47 · blob 487c3f8eb7829c863437f6ce2119012846119e31 · GitHub at these lines
- State
- achieves: name · context: auto · stage: ingest · effects: filesystem, process · domain stage: agent_infra · users: ai_agent · canonical: unknown
#!/usr/bin/env python3
"""Verify every `repo@sha path:line` key in an EVIDENCE/STEPS file against the clones under /home/user/estate.
A row passes when the clone's HEAD starts with the sha, the file has that line, and the backticked fragment
(last table cell) is on that line (or, if the row has a range a-b, within it). Prints PASS/FAIL per row and a total."""
import re, subprocess, sys, os
ESTATE = '/home/user/estate'
KEY = re.compile(r'([\w.-]+)@([0-9a-f]{7,40}) (\S+?):(\d+)(?:-(\d+))?')
heads = {}
def head(repo):
if repo not in heads:
try: heads[repo] = subprocess.check_output(['git', '-C', f'{ESTATE}/{repo}', 'rev-parse', 'HEAD'], text=True).strip()
except Exception: heads[repo] = ''
return heads[repo]
files = {}
def lines(repo, path):
p = f'{ESTATE}/{repo}/{path}'
if p not in files:
try: files[p] = open(p, 'rb').read().decode('utf-8', 'replace').split('\n')
except Exception: files[p] = None
return files[p]
ok = bad = 0
for ln in open(sys.argv[1], encoding='utf-8'):
if not ln.startswith('|'): continue
cells = [c.strip() for c in ln.strip().strip('|').split('|')]
if len(cells) < 4: continue
m = KEY.search(cells[2])
if not m: continue
repo, sha, path, a, b = m.group(1), m.group(2), m.group(3), int(m.group(4)), m.group(5)
b = int(b) if b else a
frag = cells[-1]
fm = re.match(r'^``\s?(.*?)\s?``$|^`(.*)`$', frag)
frag = (fm.group(1) if fm and fm.group(1) is not None else (fm.group(2) if fm else frag))
frag = frag.replace('\\|', '|')
why = []
h = head(repo)
if not h.startswith(sha): why.append(f'HEAD {h[:12]} != {sha}')
L = lines(repo, path)
if L is None: why.append('no such file')
elif b > len(L): why.append(f'only {len(L)} lines')
else:
text = '\n'.join(L[a-1:b])
if frag and frag not in text: why.append(f'fragment not on line: {L[a-1][:100]!r}')
tag = cells[0]
if why: bad += 1; print(f'FAIL {tag} {repo}@{sha} {path}:{a} :: ' + '; '.join(why))
else: ok += 1
print(f'RESULT: {"PASS" if not bad else "FAIL"} ({ok} keys verified, {bad} failed)')
sys.exit(1 if bad else 0)Check Steps Keys
A Python module in the evidence folder of Neural Link Between Agents. It is built from the head step (`head`) and the nlines step (`nlines`).
ingestneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-2/check_steps_keys.py · lines 1–32 of 32 · Entry point · pattern nlines (shared by 2 files)
- What it does
- It loads data. Defines head, nlines. 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.
- Downstream impact
- It is itself an entry point (Python module); no other file was found loading it.
- What it achieves
- Existence check of every fully-qualified key `repo@sha path:line[-line]` in a STEPS file (no fragment column): HEAD must start with sha, file must exist, last line of the range must exist.
- 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/team-2 · Python module
- Uses
- re, subprocess, sys
- Used by
- none found
- Produces
- head, nlines
- Defines here
- head, nlines
- 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/team-2/check_steps_keys.py:1-32 · blob d67eb887c858765dd583d7f0b8276bc3d107a458 · 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
"""Existence check of every fully-qualified key `repo@sha path:line[-line]` in a STEPS file (no fragment column):
HEAD must start with sha, file must exist, last line of the range must exist. Also checks `team-N/STEPS.md:line`
and `neural-link path:line` keys against this repository's working tree."""
import re, subprocess, sys
ESTATE='/home/user/estate'; NL='/home/user/neural-link-between-agents'
txt=open(sys.argv[1],encoding='utf-8').read()
heads={}
def head(r):
if r not in heads:
try: heads[r]=subprocess.check_output(['git','-C',f'{ESTATE}/{r}','rev-parse','HEAD'],text=True).strip()
except Exception: heads[r]=''
return heads[r]
def nlines(p):
try: return len(open(p,'rb').read().split(b'\n'))
except Exception: return -1
bad=0; n=0
for m in re.finditer(r'([\w-]+)@([0-9a-f]{7,40}) ([\w./-]+?):(\d+)(?:-(\d+))?', txt):
r,s,p,a,b=m.groups(); b=int(b or a); n+=1
why=[]
if not head(r).startswith(s): why.append(f'HEAD {head(r)[:12]}')
L=nlines(f'{ESTATE}/{r}/{p}')
if L<0: why.append('no file')
elif b>L: why.append(f'only {L} lines')
if why: bad+=1; print('FAIL',m.group(0),';'.join(why))
for m in re.finditer(r'(?:neural-link|team-5/|team-3/|team-1/|team-4/)\s?([\w./-]+?):(\d+)(?:-(\d+))?', txt):
p,a,b=m.groups(); b=int(b or a); n+=1
full = p if p.startswith('FIXES') or p.startswith('SESSIONS') else ('FIXES/NL-010/'+m.group(0).split()[0].rstrip('/') + '/' + p if m.group(0).startswith('team-') else p)
if m.group(0).startswith('team-'): full='FIXES/NL-010/'+m.group(0).split(':')[0]
L=nlines(f'{NL}/{full}')
if L<0 or b>L: bad+=1; print('FAIL',m.group(0),'->',full,f'lines={L}')
print(f'RESULT: {"PASS" if not bad else "FAIL"} ({n} keys, {bad} failed)')Shots
A JavaScript module in the evidence folder of Neural Link Between Agents covering shots report.
renderneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-3/shots.cjs · lines 1–75 of 75 · Entry point · pattern pause (shared by 12 files)
- What it does
- Defines sleep, pause, shot, R, R. 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
- Out: JSON file shots-report.json.
- Downstream impact
- It is itself an entry point (JavaScript module); no other file was found loading it.
- What it achieves
- Defines `sleep`, `pause` and `shot`. It writes `/tmp/nl010/team-3/shots-report.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/team-3 · JavaScript module
- Uses
- playwright, fs
- Used by
- none found
- Produces
- sleep, pause, shot, R, R
- Defines here
- sleep, pause, shot, R, 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/team-3/shots.cjs:1-75 · blob b822d7683aed8e8c601cab171ffcace1b6cdc27b · GitHub at these lines
- State
- achieves: name · context: auto · stage: output · effects: dom, filesystem, process · domain stage: agent_infra · users: ai_agent · canonical: unknown
#!/usr/bin/env node
// NL-010 team 3: See Through and Edition 4 on Pixel 7 emulation, served from the kuiper-belt root on :8203.
// SwiftShader renders See Through's canvases slowly, so before each capture the page is told it is hidden
// (descent.js pauses its requestAnimationFrame loop on visibilitychange, descent.js:1019-1022) and told it is
// visible again afterwards. The capture is CDP Page.captureScreenshot with a 90 s limit.
'use strict';
const { chromium, devices } = require('playwright');
const fs = require('fs');
const OUT = '/tmp/nl010/team-3/img'; fs.mkdirSync(OUT, { recursive: true });
const sleep = ms => new Promise(r => setTimeout(r, ms));
const report = {}; const save = () => fs.writeFileSync('/tmp/nl010/team-3/shots-report.json', JSON.stringify(report, null, 1));
async function pause(page, on) {
await page.evaluate(h => { Object.defineProperty(document, 'hidden', { configurable: true, get: () => h }); document.dispatchEvent(new Event('visibilitychange')); }, on).catch(() => {});
}
async function shot(page, name) {
const path = OUT + '/' + name; const t0 = Date.now();
await pause(page, true);
try { const cdp = await page.context().newCDPSession(page);
const r = await Promise.race([cdp.send('Page.captureScreenshot', { format: 'png' }), sleep(90000).then(() => null)]);
if (r) fs.writeFileSync(path, Buffer.from(r.data, 'base64')); else console.error('shot timeout', name);
await cdp.detach().catch(() => {});
} catch (e) { console.error('shot failed', name, String(e.message)); }
await pause(page, false);
console.error('step', name, (Date.now() - t0) + ' ms'); save();
}
(async () => {
const browser = await chromium.launch({ args: ['--use-gl=angle', '--use-angle=swiftshader', '--enable-unsafe-swiftshader', '--ignore-gpu-blocklist'] });
const ctx = await browser.newContext({ ...devices['Pixel 7'] });
const page = await ctx.newPage();
const errors = []; page.on('pageerror', e => errors.push(String(e.message))); page.on('console', m => { if (m.type() === 'error') errors.push(m.text().slice(0, 200)); });
// 1. See Through first screen, arriving with a hash that nothing reads today
await page.goto('http://127.0.0.1:8203/see-through/202610050609/#sub=Drax', { waitUntil: 'load', timeout: 120000 });
await sleep(6000);
report.st_first = await page.evaluate(() => {
const R = el => { const r = el.getBoundingClientRect(); return [Math.round(r.left), Math.round(r.top), Math.round(r.width), Math.round(r.height)]; };
const btns = [...document.querySelectorAll('button')].map(b => ({ t: b.textContent.trim(), r: R(b), aria: b.getAttribute('aria-label') }));
const inp = document.querySelector('input');
const st = window.__descent && window.__descent.state();
return { vw: innerWidth, vh: innerHeight, dpr: devicePixelRatio, buttons: btns, input: inp && { ph: inp.placeholder, r: R(inp) }, state: st, hash: location.hash,
links: [...document.querySelectorAll('a')].map(a => a.href), title: document.title, space: window.KuiperLaw.constants.SPACE };
});
save();
await shot(page, '01-see-through-first.png');
// 2. the find and fly hooks (what a deep link would call)
report.st_find = await page.evaluate(() => ({ drax: window.__descent.find('drax'), draxSub: window.__descent.sub(window.__descent.find('drax')), T_before: window.__descent.state().T }));
save();
await page.evaluate(() => window.__descent.fly(window.__descent.find('drax')));
await sleep(3500);
report.st_falling = await page.evaluate(() => window.__descent.state()); save();
await shot(page, '02-see-through-falling.png');
await sleep(9000);
report.st_arrived = await page.evaluate(() => window.__descent.state()); save();
await shot(page, '03-see-through-arrived.png');
// 3. KUIPER view (stars only) at the bottom
await page.evaluate(() => window.__descent.view('kuiper'));
await sleep(2500);
report.st_kuiper = await page.evaluate(() => window.__descent.state()); save();
await shot(page, '04-see-through-kuiper-view.png');
report.st_errors = errors.slice(); save();
// 4. Edition 4 first screen
errors.length = 0;
await page.goto('http://127.0.0.1:8203/editions/202611012027/', { waitUntil: 'load', timeout: 120000 });
await sleep(8000);
report.ed_first = await page.evaluate(() => {
const R = el => { const r = el.getBoundingClientRect(); return [Math.round(r.left), Math.round(r.top), Math.round(r.width), Math.round(r.height)]; };
const bar = document.getElementById('bar');
return { vw: innerWidth, vh: innerHeight, bar: R(bar), barname: document.getElementById('barname').textContent,
titles: [...bar.querySelectorAll('.gm-title')].map(b => ({ t: b.textContent, r: R(b) })), big: document.getElementById('big').textContent, hash: location.hash };
});
save();
await shot(page, '05-edition4-first.png');
report.ed_errors = errors.slice(); save();
console.log(JSON.stringify(report, null, 1));
await browser.close();
})().catch(e => { console.error('HARNESS', e); save(); process.exit(2); });App Sizes
A Python module in the evidence folder of Neural Link Between Agents. It is built from the count step (`count`).
otherneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-4/app_sizes.py · lines 1–18 of 18 · Not reached from any entry point (candidate for review) · pattern count (shared by 27 files)
- What it does
- Defines count. Uses libraries subprocess, sys. 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).
- What it achieves
- Lines of text blobs at HEAD inside a few app folders, counted by the wafer's own rule (`count_lines.py`:60-61: NUL in the first 8,000 bytes is binary, else newlines plus one if no trailing newline).
- 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/team-4 · Python module
- Uses
- subprocess, sys
- Used by
- none found
- Produces
- count
- Defines here
- count
- 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/team-4/app_sizes.py:1-18 · blob 34b66959aa6e08cb94a4d89f87af172c5e68e9d9 · GitHub at these lines
- State
- achieves: comment · context: auto · stage: unknown · effects: process · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
"""Lines of text blobs at HEAD inside a few app folders, counted by the wafer's own rule (count_lines.py:60-61:
NUL in the first 8,000 bytes is binary, else newlines plus one if no trailing newline)."""
import subprocess, sys
def count(repo, prefix):
ls = subprocess.run(['git','-C',repo,'ls-tree','-r','-z','HEAD',prefix], capture_output=True).stdout.split(b'\0')
shas = [e.split(b'\t')[0].split(b' ')[2] for e in ls if e]
p = subprocess.run(['git','-C',repo,'cat-file','--batch'], input=b'\n'.join(shas)+b'\n', capture_output=True).stdout
i = 0; lines = 0; files = 0; binary = 0
for sha in shas:
nl = p.index(b'\n', i); hdr = p[i:nl].split(); size = int(hdr[2]); body = p[nl+1:nl+1+size]; i = nl+1+size+1
files += 1
if b'\x00' in body[:8000]: binary += 1; continue
lines += body.count(b'\n') + (1 if body and not body.endswith(b'\n') else 0)
return files, binary, lines
for repo, prefix in [('/home/user/estate/kuiper-belt','see-through/202610050609'), ('/home/user/estate/kuiper-belt','learn-the-kuiper/202610050609'),
('/home/user/estate/kuiper-belt','editions/202611012027'), ('/home/user/estate/testcode','spider/20260914T143049Z-v5-linkify-frontdoor-brandfaithful'),
('/home/user/estate/gridatlas','atlas/releases/202608300453-atlas-v9'), ('/home/user/estate/gridatlas','atlas/cartridges'), ('/home/user/estate/elements','')]:
f, b, l = count(repo, prefix); print(f'{repo.split("/")[-1]}/{prefix}: files {f}, binary {b}, text lines {l}')Drift
A Python module in the evidence folder of Neural Link Between Agents. It is built from the clone step (`clone`) and the head step (`head`).
storageneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-4/drift.py · lines 1–42 of 42 · Not reached from any entry point (candidate for review) · pattern clone (shared by 15 files)
- What it does
- It loads data. Defines clone, head. Uses libraries json, os, 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. Out: JSON file drift.json.
- What it achieves
- Prototype of the drift algorithm: each verified line of Edition 4 (`keys.json`) against the HEAD of the local clone of its repository. It reads `/home/user/estate/kuiper-belt/editions/202611012027/keys.json` and writes `drift.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/team-4 · Python module
- Uses
- json, os, subprocess, collections
- Used by
- none found
- Produces
- clone, head
- Defines here
- clone, head
- 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/team-4/drift.py:1-42 · blob 02b66b47d9d45b1f649b695093d28f793f6640d8 · GitHub at these lines
- State
- achieves: comment · context: auto · stage: output · effects: filesystem, process · domain stage: agent_infra · users: ai_agent · canonical: duplicate_candidate
"""Prototype of the drift algorithm: each verified line of Edition 4 (keys.json) against the HEAD of the local
clone of its repository. Reads git objects only (git show HEAD:path); never the working tree. Classes:
SAME the quoted text is at the same path and line at HEAD
MOVED the text is in the same file at HEAD but at another line (first occurrence reported)
GONE the file exists at HEAD but the text is not in it
FILE_GONE the path does not exist at HEAD
UNVERIFIED no clone of the repository on this machine; nothing is claimed"""
import json, os, subprocess, collections
ED = json.load(open('/home/user/estate/kuiper-belt/editions/202611012027/keys.json'))['bodies']
ROOTS = ['/home/user/estate', '/home/user']
def clone(repo):
for r in ROOTS:
p = os.path.join(r, repo)
if os.path.isdir(os.path.join(p, '.git')): return p
return None
def head(p):
return subprocess.run(['git', '-C', p, 'rev-parse', 'HEAD'], capture_output=True, text=True).stdout.strip()
out, heads = [], {}
for b in ED:
p = clone(b['repo']); text = b.get('line_text') or b['quote']
rec = {'id': b['id'], 'repo': b['repo'], 'path': b['path'], 'line': b['line'], 'key': b.get('key'), 'edition_commit': b['commit']}
if not p: rec['class'] = 'UNVERIFIED'; rec['reason'] = 'no clone'; out.append(rec); continue
heads.setdefault(b['repo'], head(p)); rec['head'] = heads[b['repo']]
r = subprocess.run(['git', '-C', p, 'show', 'HEAD:' + b['path']], capture_output=True)
if r.returncode != 0: rec['class'] = 'FILE_GONE'; out.append(rec); continue
lines = r.stdout.decode('utf-8', 'replace').split('\n')
same = b['line'] - 1 < len(lines) and lines[b['line'] - 1].rstrip('\r') == text
if same: rec['class'] = 'SAME'
else:
hits = [i + 1 for i, l in enumerate(lines) if l.rstrip('\r') == text]
if hits: rec['class'] = 'MOVED'; rec['head_line'] = hits[0]; rec['delta'] = hits[0] - b['line']
else: rec['class'] = 'GONE'
out.append(rec)
c = collections.Counter(r['class'] for r in out)
print('bodies', len(out), dict(c))
per = collections.defaultdict(collections.Counter)
for r in out: per[r['repo']][r['class']] += 1
for repo in sorted(per): print(' ', repo, (heads.get(repo) or 'no clone')[:12], dict(per[repo]))
print('examples MOVED:', [(r['repo'], r['path'], r['line'], '->', r['head_line']) for r in out if r['class'] == 'MOVED'][:5])
print('examples GONE:', [(r['repo'], r['path'], r['line']) for r in out if r['class'] == 'GONE'][:5])
print('examples FILE_GONE:', [(r['repo'], r['path']) for r in out if r['class'] == 'FILE_GONE'][:5])
json.dump({'heads': heads, 'rows': out}, open('drift.json', 'w'), indent=1)Drift Strict
A Python module in the evidence folder of Neural Link Between Agents. It is built from the clone step (`clone`) and the head step (`head`).
storageneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-4/drift_strict.py · lines 1–43 of 43 · Not reached from any entry point (candidate for review) · pattern clone (shared by 15 files)
- What it does
- It loads data. Defines clone, head. Uses libraries json, os, 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. Out: JSON file drift_strict.json.
- What it achieves
- Prototype of the drift algorithm: each verified line of Edition 4 (`keys.json`) against the HEAD of the local clone of its repository. It reads `/home/user/estate/kuiper-belt/editions/202611012027/keys.json` and writes `drift_strict.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/team-4 · Python module
- Uses
- json, os, subprocess, collections
- Used by
- none found
- Produces
- clone, head
- Defines here
- clone, head
- 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/team-4/drift_strict.py:1-43 · blob bcb65e1df5dd9631e1dbe604b8b136ba6e5f3d01 · GitHub at these lines
- State
- achieves: comment · context: auto · stage: output · effects: filesystem, process · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
"""Prototype of the drift algorithm: each verified line of Edition 4 (keys.json) against the HEAD of the local
clone of its repository. Reads git objects only (git show HEAD:path); never the working tree. Classes:
SAME the quoted text is at the same path and line at HEAD
MOVED the text is in the same file at HEAD but at another line (first occurrence reported)
GONE the file exists at HEAD but the text is not in it
FILE_GONE the path does not exist at HEAD
UNVERIFIED no clone of the repository on this machine; nothing is claimed"""
import json, os, subprocess, collections
ED = json.load(open('/home/user/estate/kuiper-belt/editions/202611012027/keys.json'))['bodies']
ROOTS = ['/home/user/estate', '/home/user']
def clone(repo):
for r in ROOTS:
p = os.path.join(r, repo)
if os.path.isdir(os.path.join(p, '.git')): return p
return None
def head(p):
return subprocess.run(['git', '-C', p, 'rev-parse', 'HEAD'], capture_output=True, text=True).stdout.strip()
out, heads = [], {}
for b in ED:
p = clone(b['repo']); text = b.get("line_text")
rec = {'id': b['id'], 'repo': b['repo'], 'path': b['path'], 'line': b['line'], 'key': b.get('key'), 'edition_commit': b['commit']}
if not text: rec['class'] = 'UNVERIFIED'; rec['reason'] = 'empty line_text'; out.append(rec); continue
if not p: rec['class'] = 'UNVERIFIED'; rec['reason'] = 'no clone'; out.append(rec); continue
heads.setdefault(b['repo'], head(p)); rec['head'] = heads[b['repo']]
r = subprocess.run(['git', '-C', p, 'show', 'HEAD:' + b['path']], capture_output=True)
if r.returncode != 0: rec['class'] = 'FILE_GONE'; out.append(rec); continue
lines = r.stdout.decode('utf-8', 'replace').split('\n')
same = b['line'] - 1 < len(lines) and lines[b['line'] - 1].rstrip('\r') == text
if same: rec['class'] = 'SAME'
else:
hits = [i + 1 for i, l in enumerate(lines) if l.rstrip('\r') == text]
if hits: rec['class'] = 'MOVED'; rec['head_line'] = hits[0]; rec['delta'] = hits[0] - b['line']
else: rec['class'] = 'GONE'
out.append(rec)
c = collections.Counter(r['class'] for r in out)
print('bodies', len(out), dict(c))
per = collections.defaultdict(collections.Counter)
for r in out: per[r['repo']][r['class']] += 1
for repo in sorted(per): print(' ', repo, (heads.get(repo) or 'no clone')[:12], dict(per[repo]))
print('examples MOVED:', [(r['repo'], r['path'], r['line'], '->', r['head_line']) for r in out if r['class'] == 'MOVED'][:5])
print('examples GONE:', [(r['repo'], r['path'], r['line']) for r in out if r['class'] == 'GONE'][:5])
print('examples FILE_GONE:', [(r['repo'], r['path']) for r in out if r['class'] == 'FILE_GONE'][:5])
json.dump({'heads': heads, 'rows': out}, open('drift_strict.json', 'w'), indent=1)Spider Pixel7
A JavaScript module in the evidence folder of Neural Link Between Agents.
renderneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-4/spider-pixel7.cjs · lines 1–38 of 38 · Not reached from any entry point (candidate for review)
- What it does
- It lists and searches its content. Defines q, txt. 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 (path word 'spider'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- Inputs & outputs
- Out: JSON file spider-pixel7.json.
- What it achieves
- Defines `txt`. It writes `spider-pixel7.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/team-4 · JavaScript module
- Uses
- playwright, fs
- Used by
- none found
- Produces
- q, txt
- Defines here
- q, txt
- 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/team-4/spider-pixel7.cjs:1-38 · blob c7c1d273e807524d22045b3edd531ea1d811e928 · GitHub at these lines
- State
- achieves: name · context: auto · stage: output · effects: dom, filesystem, process · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
const { chromium, devices } = require('playwright');
const fs = require('fs');
(async () => {
const V = '20260914T143049Z-v5-linkify-frontdoor-brandfaithful';
const base = 'http://127.0.0.1:8204/spider/' + V + '/index.html';
const browser = await chromium.launch({ args: ['--use-gl=angle','--use-angle=swiftshader','--enable-unsafe-swiftshader','--ignore-gpu-blocklist'] });
const out = {};
for (const [name, url] of [['default', base], ['overview', base + '?graph=overview&focus=GLOBALGRID2050%20architecture']]) {
const ctx = await browser.newContext({ ...devices['Pixel 7'] });
const page = await ctx.newPage();
const reqs = [], failed = [], errors = [], consoleErr = [];
page.on('request', r => reqs.push(r.url()));
page.on('requestfailed', r => failed.push(r.url() + ' ' + (r.failure() || {}).errorText));
page.on('response', r => { if (r.status() >= 400) failed.push(r.url() + ' HTTP ' + r.status()); });
page.on('pageerror', e => errors.push(String(e.message).slice(0, 200)));
page.on('console', m => { if (m.type() === 'error') consoleErr.push(m.text().slice(0, 200)); });
const t0 = Date.now();
await page.goto(url, { waitUntil: 'load', timeout: 120000 });
await page.waitForTimeout(8000);
const m = await page.evaluate(() => {
const q = s => document.querySelector(s);
const txt = s => (q(s) ? q(s).innerText.trim().slice(0, 300) : null);
const sel = q('select'); const opts = sel ? [...sel.options].map(o => o.textContent.trim()) : [];
const vis = [...document.querySelectorAll('button, a, select, input')].filter(e => { const r = e.getBoundingClientRect(); return r.width > 0 && r.height > 0; });
const small = vis.filter(e => { const r = e.getBoundingClientRect(); return r.height < 44 || r.width < 44; }).length;
return { title: document.title, vw: innerWidth, vh: innerHeight, sw: document.documentElement.scrollWidth, sh: document.documentElement.scrollHeight,
eyebrow: txt('.brand .ey'), h1: txt('.brand h1'), count: txt('.count'), hint: txt('.hint'), crumbs: txt('.crumbs'), srctag: txt('.srctag'),
graphOptions: opts, cards: document.querySelectorAll('.card, [class*=card]').length, svgs: document.querySelectorAll('svg').length,
controls: vis.length, controlsUnder44: small, bodyText: document.body.innerText.replace(/\s+/g, ' ').slice(0, 600) };
});
await page.screenshot({ path: 'spider-pixel7-' + name + '.png', timeout: 180000 });
out[name] = { url, loadMs: Date.now() - t0, m, requests: reqs, failed, pageErrors: errors, consoleErrors: consoleErr };
await ctx.close();
}
await browser.close();
fs.writeFileSync('spider-pixel7.json', JSON.stringify(out, null, 1));
for (const k of Object.keys(out)) { const o = out[k]; console.log('==', k, o.loadMs + 'ms'); console.log(JSON.stringify(o.m, null, 1)); console.log('requests', o.requests.length); o.requests.forEach(r => console.log(' R', r)); console.log('failed', o.failed.length); o.failed.forEach(r => console.log(' F', r)); console.log('pageErrors', o.pageErrors); console.log('consoleErrors', o.consoleError … [line shortened here: 417 characters; full line on GitHub]
})().catch(e => { console.error('ERR', e); process.exit(1); });Unique Lines
A Python module in the evidence folder of Neural Link Between Agents.
storageneural-link-between-agents / FIXES/NL-010/tools/evidence/nl010/team-4/unique_lines.py · lines 1–29 of 29 · Not reached from any entry point (candidate for review)
- What it does
- It loads data. Uses libraries subprocess, os, json, hashlib. 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
- Out: JSON file unique_lines.json.
- What it achieves
- Distinct line texts against all line occurrences, over the text blobs at HEAD of the 25 local clones (`/home/user/estate/*`), by the wafer's binary rule. It writes `unique_lines.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/team-4 · Python module
- Uses
- subprocess, os, json, hashlib
- 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/team-4/unique_lines.py:1-29 · blob 5f8aea3a440c5dfcc679612f81dfec9316c17eee · GitHub at these lines
- State
- achieves: comment · context: auto · stage: output · effects: filesystem, process · domain stage: agent_infra · users: ai_agent · canonical: unreached_review
"""Distinct line texts against all line occurrences, over the text blobs at HEAD of the 25 local clones
(/home/user/estate/*), by the wafer's binary rule. Distinct = exact bytes of the line without its newline,
CR before LF removed (LF-normalised). Prints per repository and in total; writes unique_lines.json."""
import subprocess, os, json, hashlib
EST = '/home/user/estate'
tot = {'repos': 0, 'files': 0, 'binary': 0, 'lines': 0, 'distinct_in_repo_sum': 0}
seen = set(); per = {}
for repo in sorted(os.listdir(EST)):
d = os.path.join(EST, repo)
if not os.path.isdir(os.path.join(d, '.git')): continue
ls = subprocess.run(['git','-C',d,'ls-tree','-r','-z','HEAD'], capture_output=True).stdout.split(b'\0')
shas = [e.split(b'\t')[0].split(b' ')[2] for e in ls if e]
p = subprocess.run(['git','-C',d,'cat-file','--batch'], input=b'\n'.join(shas)+b'\n', capture_output=True).stdout
i = 0; lines = 0; files = 0; binary = 0; local = set()
for sha in shas:
nl = p.index(b'\n', i); hdr = p[i:nl].split(); size = int(hdr[2]); body = p[nl+1:nl+1+size]; i = nl+1+size+1
files += 1
if b'\x00' in body[:8000]: binary += 1; continue
if body.endswith(b'\n'): body = body[:-1]
for ln in body.split(b'\n'):
if ln.endswith(b'\r'): ln = ln[:-1]
lines += 1; h = hashlib.blake2b(ln, digest_size=16).digest(); local.add(h); seen.add(h)
head = subprocess.run(['git','-C',d,'rev-parse','HEAD'], capture_output=True, text=True).stdout.strip()
per[repo] = {'head': head, 'files': files, 'binary': binary, 'lines': lines, 'distinct': len(local)}
tot['repos'] += 1; tot['files'] += files; tot['binary'] += binary; tot['lines'] += lines; tot['distinct_in_repo_sum'] += len(local)
print(repo, per[repo], flush=True)
tot['distinct_across_estate'] = len(seen)
print('TOTAL', tot)
json.dump({'per_repo': per, 'total': tot, 'rule': 'exact bytes without newline, CR before LF removed; NUL in first 8000 bytes = binary, skipped'}, open('unique_lines.json','w'), indent=1)