# sovereign-edge-tomography (v0.1.0): the workplan, implemented and measured

An implementation of Stephen Guerin's **Engineering Workplan: Sovereign Edge-Native Tomographic Rendering Architecture**
(2026-11-11, kept verbatim in this bead's `uploads/`), all five phases, as browser-first ES modules. A harness runs every phase on a
synthetic world whose truth is known and writes one number per item to `results/results.json`. A page runs the same modules with each
camera node in its own Web Worker.

- **Live app:** https://imageryintel.org/research/sovereign-edge-tomography/ (press Run; desktop is quicker, phones work at lower resolution)
- **Numbers:** [results/results.json](results/results.json), and the table below
- **Bead:** [edge-light-field `280a607f`](https://stephenguerin.live/agents/280a607f-cdbb-45ad-9816-43385e2b6084/about.md); the working copy is here, the published copy is in Debbie's `artifacts/research/sovereign-edge-tomography/` (served by the imageryintel.org Worker)
- **Ask:** Stephen, 2026-11-11, chat `b6d3b552`: the workplan, then "do it. take hours if needed"; mid-run, "would it help to render your cameras to equirectangular maps?" (they are: every node is a φ-θ panoramic camera; see Design)

## Design in one paragraph

Ten panoramic cameras (eight on a ring around a smoke plume, two high, like towers and drones) each keep their frames, a clean plate
from their own history, their pose, depth and confidence, a signing key and a ledger, in their own store (OPFS in the browser). Nothing
central holds a model. The asker (the page, or the harness) names a region of interest and asks signed questions. Nodes answer with
silhouettes, per-point booleans, gradient shares and one colour, distance and flag per view ray. From those answers the asker
recovers the plume's extinction field tomographically and renders views no camera has. The field is meshless: Gaussian splats
whose line integrals are closed form. The radiative transfer is single scattering of sunlight and sky light, inverted by Levis et
al.'s surrogate, which freezes the in-scatter field, steps on extinction, and repeats.

## What each phase is, where it lives, and what it measured

From `results/results.json` (run of 2026-11-11 21:41Z, 62 s from cached depth; the full run with Depth Anything takes about fifteen minutes).

| Workplan item | Module | Measured |
|---|---|---|
| 1.1 OPFS ingestion | `lib/store.mjs`, `node-worker.mjs` | frames, clean plate, telemetry, depth, confidence and SH written per node: 768 KB at capture (memory store in the harness; real OPFS in the app, verified headless) |
| 1.2 bundle adjustment | `lib/ba.mjs` | network shape to 1.7 mm and 0.022° relative rotation, from 500 tie points (3157 bearings, 10% wrong matches, 88% kept); absolute frame 1.10° and 0.19 m, scale ×0.966 (limited by GPS σ 0.25 m and IMU gravity) |
| 1.3 depth + temporal | `lib/depth.mjs`, `lib/mono.mjs` | median relative error: multi-view 0.21, multi-view where confident 0.038, Depth Anything anchored by tie points 0.12, fused 0.12 (42% within 10%); temporal filter: jitter 0.95% → 0.29%, bias unchanged |
| 1.4 SFT compression | `lib/sh.mjs` | RGB + log depth at L = 4, 8, 16, 24: ×1311 → 15.0 dB, depth 19.9%; ×405 → 16.8 dB, depth 12.5%; ×113 → 20.3 dB, depth 5.7%; ×52 → 22.4 dB, depth 3.8% |
| 2.1 SO(3) alignment | `lib/sh.mjs` | relative rotation to the reference node: 4.57° (IMU) → 0.85° median, 3.59° worst |
| 2.2 CameraEdge graph | `lib/epipolar.mjs` | 29 edges; relative rotation 0.108° median (0.31° worst), translation direction 0.050°, 29/29 signs right, 99.1% inliers |
| 2.3 Plücker chords | `lib/plucker.mjs` | a chord of 81.5 pixels in 0.097 ms against 2.10 ms brute force (×22); recall 100% of the lines that meet the query ray in range; chord lines pass 2.3 cm from it (one pixel at range) |
| 3.1–3.2 tomography + RTE | `lib/tomo.mjs`, `lib/medium.mjs`, `lib/pipeline.mjs` | 25050 rays on 9 nodes, 675 splats; field correlation 0.67, mass ×1.08; held-out node 29.0 dB against 18.4 (no medium), 24.3 (visual hull), 27.8 (attenuation only); α 0.95 (true 1.30) |
| 3.3 confidence | `lib/depth.mjs` | median depth error by confidence band: 0-0.1: 31.1%, 0.1-0.3: 6.2%, 0.3-0.6: 3.9%, 0.6-1.01: 2.0% |
| 4.1 routing | `lib/routing.mjs` | 40-node mesh: 27 of 27 relevant nodes found (recall 100%), 40 contacted |
| 4.2 occlusion + blending | `lib/nvs.mjs` | 160×120 view, 81% covered: 21.1 dB overall (19.1 without the medium); in the plume 22.4 dB with the tomographic medium against 12.1 without |
| 5.1 ledger | `lib/ledger.mjs` | every chain verifies; 177/177 debits reconciled with the nodes' credits; a tampered entry detected; a node with a small allotment refuses once it is drawn |
| 5.2 signatures | `lib/tx.mjs`, `lib/mesh.mjs` | ECDSA P-256: 180 signed requests, 3.37 ms to sign, 2.90 ms to verify; a forged answer rejected |
| privacy | `lib/node.mjs` | 8.1% of a node's pixels touched by the query; 27.9 MB of answers left the nodes (normal equations, plus three novel views) |

What the numbers say, briefly. Phases 1.2, 2.1, 2.2, 2.3, 4.1 and 5 meet their aims. Depth is the weak link: the warped multi-view sweep is accurate only where it is confident (3.8% median, a few percent of pixels), Depth Anything anchored by the nodes' own tie points carries the rest at about 12%, and those errors cost the tomography (field correlation 0.82 with exact poses and depth, 0.67 with everything estimated) and the novel view. The RTE surrogate helps the held-out view over attenuation alone (29.0 against 27.8 dB) and the recovered Ångström exponent is biased low (0.95 against 1.30) when depth is estimated; with exact geometry it reaches 1.26. The normal-equation mode cuts the asker's requests from 11,703 to 177 against per-iteration gradient shares.

## Files

`index.html`, `app.mjs` (the page, the asker) · `node-worker.mjs` (a node) · `lib/` (`math`, `scene` (the ground-truth world),
`medium` (splats and the RTE), `store`, `sh`, `ba`, `depth`, `mono`, `epipolar`, `plucker`, `tomo`, `routing`, `nvs`, `tx`,
`ledger`, `node`, `mesh`, `pipeline`) · `test/run-all.mjs` (the harness), `test/png.mjs`, `test/serve.mjs`, the unit checks
`test/t-*.mjs` · `results/results.json` · `figures/`.

Run the harness: `node test/run-all.mjs` (about ten minutes with Depth Anything; `--no-da` skips it; `--reuse-depth` reuses the cached depth).

## Limits, stated

Capture is simulated: the world, the cameras and the feature matches are synthetic, so every number is a measurement against a
known truth. Everything after capture is the real pipeline. The RTE is truncated at one bounce, with the medium's albedo and phase
function and the sun's direction taken as known. Transport is in-process or Worker messages; the WebRTC data channel of the acequia
pattern is the next step. Static nodes need no optical-flow warp, so none is implemented. Depth Anything runs in the harness through
`@xenova/transformers`, and the page uses multi-view depth only.

## Version legend

- **v0.1.0** (2026-11-11): first implementation of all five phases; harness and app.
- **v0.1.1** (2026-11-11, Stephen: "you should be persisting to a url"): a finished run is saved in the page address (#run= the poses, graph, recovered field and numbers, deflate-compressed, about 5 KB; &view= the orbit pose, updated as you move). Opening the link restores the interactive view: in the same browser each node reopens from its own OPFS store (about 4 s); in a fresh browser the nodes recapture and recompute depth (about 17 s). A Copy link button.

---
*2026-11-11 · © 2026 Redfish Group · edge-light-field bead, animated by Claude Fable 5.1 for Stephen Guerin · all rights reserved (unless otherwise specified)*
