Skip to content

ADR-0032 — The Observatory draws with three.js only; the deck.gl page is removed

Status: Accepted by the operator on 2026-12-03 ("yes, now", to removing the deck page) Date: 2026-12-03 Context documents: ADR-0003 (three.js for that step, deck.gl alongside, "the final pick is made mid-term"), docs/wip/OBSERVATORY-ROADMAP.md (the replay's gaps and the seven stages that close them)

Context

ADR-0003 chose three.js for the Observatory's first step and kept a second page drawn with deck.gl, to make the final pick later. The pick was never made, and the two pages drifted: every feature since went into the three.js page. The deck page draws no semantic map (the Observatory's CONTRACT said so) and no robot body (the CONTRACT's Robot layer is the three.js page's; the deck page's code has none).

Closing the replay's gaps (the roadmap's stages 2, 3 and 5) draws new things on the map: contact markers, the alert's ring, the tightest point. With two pages, each is built and tested twice. Nine of the Observatory's browser test files, and its live-update measurement, open every page in both renderers.

Decision

  1. The Observatory has one renderer, three.js (apps/observatory/web/three/). web/deck/ (the page, its adapter and the vendored deck.gl, 2.1 MB) is removed. This is ADR-0003's final pick.
  2. The workbench (web/shell/) keeps its renderer adapter seam: a second renderer later is a new adapter, not a change to the shell.
  3. observatory frame and observatory film lose --lib: they draw with the three.js page.

Consequences

  • Positive: a map feature is built and tested once; the browser tests open one page instead of two; 2.1 MB less in the repository's tree.
  • Negative: deck.gl's strengths ADR-0003 named (thick lines, round points, SDF text built in) are reached with three.js add-ons. ADR-0003 said deck.gl "wins if the views turn out to be mostly 2D data layers"; the replay's new marks are 2D layers, and three.js draws them as it draws the pins and the path today.
  • Not checked: whether anyone opened /web/deck/ by its address; no page linked to it.
  • Not done: the pages' Content-Security-Policy keeps 'unsafe-eval'. Its stated reason was deck.gl's shaders, but the page tests need it too: Playwright evaluates a string predicate (wait_for_function) under the page's policy, and test_live_page failed with an EvalError without it. Dropping it means rewriting those predicates or opening the tests' pages with bypass_csp, which would no longer test the pages under their policy.
  • Neutral: the history is in git (git show a6d81a8:apps/observatory/web/deck/app.js); the removal is undone by reverting its commit.

Alternatives considered

  • Keep the deck page as it is, out of the gaps' scope, with the limit written in the CONTRACT. Rejected by the operator: it keeps the double test time and a page that falls further behind.
  • Bring the deck page to parity. Roughly doubles the map work of stages 2, 3 and 5 for a page that shows nothing the three.js page does not.