# Render probe (p5r8x2kd): which observations exist for a place and a time

Lane: player, Ansel, 2026-10-25. Stephen: *"make a render probe feature (not page)"*. The definition is in ROP orientation
§21 ([rop-orientation_q4w8n2zt.md](https://redfish.acequia.io/guerin/.agents/01a173e5-d532-7488-97b0-d6dd4aafcedc/2026-10-25/notes/rop-orientation_q4w8n2zt.md)):
a lightweight query that renders nothing, the step before an area render request, and a unit of render demand.

The feature is one ES module used in three places: the takeoff-player (v0.4.0), a headless URL, and the demand log.
Not touched: `rop/lynn-shore-nahant-circle/`, the nahant lane's files (read only), the calibration files, takeoff-3d.

## The pieces

| piece | path | what |
|---|---|---|
| module | `artifacts/takeoff-player/js/probe.mjs` | `probe({ polygon, start, end, gsdMax?, minCover?, nearKm?, index, loadRows })`; pure, the same file in the browser and in Node |
| sources index | `artifacts/rop/sources/sources-index_p5r8x2kd.json`, built by `build-sources-index_p5r8x2kd.mjs` | every source of the event, with span, camera model, pose file, and per-second sea-level footprints |
| player tool | `artifacts/takeoff-player/js/probe-ui.mjs`, the "probe" control (R) | draw a place, see the lanes, act on a span |
| headless | `<bead>/probe/handler.mjs` | `GET .../probe/?polygon=&start=&end=` → the same JSON, CORS *, logs demand |
| demand log | `artifacts/rop/demand/probe_<utc>_<id>.json` | one immutable record per probe (written with O_EXCL; never overwritten) |

**Headless.**
`https://stephenguerin.live/agents/8ac6d87f-3192-4fdb-a260-583dbee74291/probe/?polygon=aoi:lynn-shore-nahant-circle&start=15:53&end=16:00`
- The same works through `https://imageryintel.org/stories/2026-10-24-bos-takeoff/probe/?...`.
- `polygon` takes GeoJSON, `lon,lat;lon,lat;...`, `circle:lon,lat,r_m`, or `aoi:<rop product>`.
- `start` and `end` take ISO, or `HH:MM[:SS]` as UTC on the event day; the default is the event, 15:53-16:00Z.
- Other options: `gsdMax`, `minCover` (default 0.5 of the place in view), `nearKm` (aircraft, default 1.5), `requester`, `log=0`, `sources=1`.

**Player.**
- Click the corners on the map, then **done** (or double-click). On touch, press and hold anywhere on the map for a 250 m circle.
- The panel shows one lane per source, with bars coloured by GSD. The colours are one hue, finest = lightest; the
  lightness is monotonic, and the darkest step has visible text and a table view as relief. Potential (unposed) sources
  are hatched, aircraft are outlined bars, gaps are dashed red.
- Tap a bar for frames, GSD, incidence, cover, occlusion, pose σ and clock σ. The actions are **go there**, **fixed view
  on the place** (the polygon's window in that frame), **8K crop**, **track it** (aircraft), the archived video (Nahant)
  and the photo.
- The window is editable, and the table toggles a text view.
- Links: `?probe=<lon,lat;...|circle:...>&pstart=15:53:00&pend=16:00:00`.
- Each UI probe also calls the headless URL with `via=takeoff-player`, so it is logged.

## Method

**Per sample point.** The place is sampled on a grid of 50-70 ground points at sea level. Every candidate frame projects
every point through its pose with `camera.mjs` (the solver's pinhole; `camera-distort_q4v9m2` reduces to it at k = 0).
The hold-field rule applies to the rough 115459 rows. For each frame:
- **coverage_frac** is the share of points inside the image;
- **GSD** is √(cross × along) = range / f / √sin(depression);
- **incidence** is 90° − depression;
- **occlusion_est** is a heuristic, not a ray test: min(1, 8 m / (30 m · tan depression)).

**Speed.** The index's per-second footprints prefilter the frames, so a probe takes 10-60 ms in Node.

**Per source.**
- The 3 clips are posed (b8k3t5; q4v9m2 pending).
- The Nahant cam (pose_kz7w) is posed and static. Its clock is capture = ingest − 0.601 s (clock_kz7w, σ 0.22 s; the
  coordinator's 0.57 is within that).
- The 15 photos are posed through photo-sync: the matched frame's pose, with the field widened by crop_scale.
- These are **unposed / potential**: the 6 other YouTube streams (position from the title), 81 Windy cameras with
  archived stills (their frame times), and 49 MassDOT live-only cameras (no archive).
  - Their reach is ~700 m for road cameras and ~6 km for scenic views.
  - They appear only as potential, with no GSD.
- 102 ADS-B aircraft are kind `aircraft-track`: position samples, not imagery. A span is time within `nearKm` of the place.

**Gaps.** Gaps are the times with no posed imagery; the reason names any potential sources.

## Verified

**Nahant Circle (the ROP AOI), 15:53-16:00Z**, also through the imageryintel.org proxy:

| source | span | GSD (best / median) | other |
|---|---|---|---|
| 8K clip 115634 | **f131-578**, 15:56:39.7-54.6 | 0.285 / 0.365 m | incidence 52°, 100% cover |
| Nahant cam | **15:53:25.2-15:59:35.2, the whole span** | 18.6 m | incidence 89.8°, grazing; occlusion 1 |
| photo 20261024_115638 | 15:56:39.24 | 0.80 m | |

- The rop lane's f136-575 (≥50% of their AOI grid) agrees with f131-578 to within 5 frames.
- Potential (unposed): 2 Windy cameras at Swampscott, 1.9 km away ("Fishermans Beach", "Boston, Southwest View"). Neither
  has a frame in the window; the nearest is 16:19Z.
- Aircraft: UAL414 and three others pass within 1.5 km.
- Gaps: 15:53:00-15:53:25 and 15:59:35-16:00:00.
- Total: 370 of 420 s covered.

**Revere, Wonderland** (a 250 m circle, and a drawn rectangle):
- clip 115531 f400-736 (15:55:45-56, GSD 0.17 m, 74% median cover);
- photo 20261024_115541;
- potential: the East Boston Windy road cam, the 4K Sky Cam and the City of Boston cam (positions from titles only);
- 11 of 420 s covered, 3 gaps.

**Out to sea** (−70.80 to −70.78, 42.40-42.41): no imagery, one gap for the whole window, and UAL260 overhead at 8.3 km.

**UI (headless Chrome via CDP, `verify/probe-check.mjs`):**
- Desktop 1500x880:
  - the `?probe=` link opens the panel;
  - tapping the 8K span then "fixed view on the place" opened 115634 f355 fixed on the polygon's window, lock ok;
  - a polygon drawn with real mouse clicks over Wonderland and the sea probe give the results above.
- iPhone 14 with touch:
  - the link opens the map sheet with the panel;
  - press-and-hold on the map makes a circle probe;
  - tapping a bar shows its detail;
  - no overflow, no control under 44 px (span bars are 44 px tall with 44 px hit areas);
  - no console errors on either.
- Screenshots: `verify/probe_*.png`; results: `verify/probe-check-results.json`.
- Fixed after looking: the bars were hidden under the Leaflet attribution, the sticky header was drawn over the detail,
  the lanes overflowed on a phone, and the map was not fitted to the polygon.

**Demand log.** 36 records so far, nearly all from these checks (requester `player:ansel-verify` or `via: takeoff-player`),
including one from a HEAD request before HEAD stopped logging. They stay: the log is append-only.

## Limits and next

- **Surface.** Sea level only, with no DEM/DSM. It is fine for Lynn/Revere at 50-60° incidence, and wrong for rooftops and
  near the horizon. Next: Terrarium heights per sample point, and the ROP DSM (surface.glb) where it exists.
- **Occlusion** is a heuristic; the real test is the DSM ray-march the ROP lane already does.
- **Unposed reach** is a guess from position and title. Posing each camera (render-and-compare, as for Nahant) turns a
  potential entry into a measured one.
- **Window mask.** The 8K window mask (cabin-window corners) is not applied, so cover is slightly optimistic at the frame corners.
- **Sources index.** Rebuild it when q4v9m2 becomes the pose (`node artifacts/rop/sources/build-sources-index_p5r8x2kd.mjs`);
  the handler reloads it when the file changes.
- **Demand to capture jobs (§21).** Gaps are listed as unmet demand. Turning them into posted capture jobs, using a supply
  forecast from scheduled tracks, is the next layer.
