Skip to content

Release 2.29.0 - #802

Merged
bshack merged 114 commits into
mainfrom
e229-I
Nov 23, 2026
Merged

bshack merged 114 commits into
mainfrom
e229-I

Conversation

@bshack

@bshack bshack commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Release 2.29.0. Release notes: docs/RELEASE_2_29_0.md; changes: CHANGELOG.md (2.29.0 section, with the migration list first).

Checks before this run: full test suite and coverage (arm64), hash locks, SwiftShader WebGPU suite and hardware WebGPU suite (docs/WEBGPU_DEVICES.md), consumer, pack and docs checks, site build and checks, and every bundle row. No existing size limit changes; new rows for the new chunks and calculation bundles follow the measured-rounded-up rule. The branch is up to date with main, as CONTRIBUTING.md requires for the release PR.

Follow-ups for 2.30.0: #797, #798, #799, #800.

Signed-off-by: William Shackelford bshackelford@gmail.com

🤖 Generated with Claude Code

bshack and others added 30 commits November 22, 2026 23:58
…cade-03)

serializeSimulatedCaptureDngFromParts and simulateCaptureFromParts decided a parts run by the
value of `parts`, so `undefined` rendered the whole capture on the calling thread. The entry
function now decides it: `undefined` is refused as `null` and `[]` are ("needs at least one
part"), and with `output.region` the request gets the "takes no output.region" refusal.
Valid calls are unchanged.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d 640 (#738)

The whole-stop list took only the ISO settings at an exact power of two of the base ISO, so a
caller profile with base ISO 160, 320 or 640 stopped at 640 (the nominal marking for 1280 is
1250). Each base·2^k now takes the setting within 1/12 stop of it, up to the highest ISO.

Output change: Auto ISO with whole stops on a caller profile of base 160, 320 or 640 may choose
a higher ISO than before. The base-160 case of test/sensor-profile-auto-iso.test.ts moves from
ISO 640 (2505b7fb8fedad65) to ISO 80 000 (f927d44e3ceacba3). Every built-in profile keeps its
choices: a new test pins them over an 18-step light sweep, recorded on 2.28.0 before the change.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The chain is unchanged: developDngImage is the new developDngLinear followed by
its finish step, and the full-size, half-size, gain-map and RGBTables digests of
test/dng-development-half.test.ts and test/dng-import-phone.test.ts still pass.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…olved low gain (#753 sensor-03, sensor-04)

sensor-03 (owner decision 2026-11-23: refuse). `sensor.readNoise.highGainElectrons` on a sensor with
one conversion gain, with no switch in the body or the request, had no effect while the
`sensor.characteristics` assumption listed it as applied. It is now refused: "sensor.readNoise.
highGainElectrons needs highGainFromIso: this sensor has one conversion gain." The switch ISO's
minimum is lowered from 100 to 32, the lowest ISO marking, so a profile that starts below ISO 100
(the phone profile, base 40) can take a switch there.

sensor-04. With the switch moved to base ISO no setting uses the low gain, and the report's
`readNoise.lowGainElectrons` read the high-gain value (1.1 e- on the Professional tier, where the
low gain is 2 e-). The report now takes the low gain as resolved. The JSDoc of the report's field
says that `highGainFromIso` is the first ISO setting that uses the high gain (a request's 150 reads
as 160).

Output changes: a request that sets `highGainElectrons` on a single-gain sensor without
`highGainFromIso` is refused (it rendered before, unchanged by the option); `result.sensor.readNoise.
lowGainElectrons` changes when the switch is at or below base ISO. No sample changes.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One copy each of helpers that two or more fast-row modules held with the
same behavior:

- sdrOutputEncoding: native-raw-development imports the one in
  native-capture-sdr.
- parseDirectionFact and its scan-direction set: exposure-window exports
  it; readout-timing and capture-mode-timing import it.
- the relative / not-quantified uncertainty parser: parseConfigUncertainty
  in core/record-validation.ts, called by scene-radiance, lens-psf-profile,
  scene-to-sensor-irradiance, front-of-lens-filter, spectral-response and
  response-operating-range with their own fraction and text checks, so
  every message and check order is unchanged.

Not shared, because the copies differ in their messages: the
{ value, evidence } fact parsers (parsePositiveFact uses "must be finite."
then "must be greater than zero.", parseSourcedPositiveNumber one message),
and parseRange. A parameterized fact parser was built and measured +35 B on
the fast row, so it is not taken. flash-ttl's requirePositive is not in the
worker bundle.

Bundle rows (test/capture-bundle.test.ts, rolldown 1.2.14, gzip -9):
fast 338,840 -> 338,702 B (-138), on demand 51,977 -> 51,983 B (+6),
export 10,395 -> 10,394 B, lens 10,200 B.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test/layered-scene-seams.test.ts records, at 783f38f before any change to
src/facade/layered-scene-signal.ts, SHA-256 locks of:

- six module-level lattices: every lattice group's spectrumAt over the raster
  and a margin, each point's surface, the chief ray's surface, the pilot, the
  view signal of every site and the counters (box offsets and diffraction, the
  fast and full rows, the layered sum's own path, field zones, a radiance back
  plane, and both cards in front of the focus plane with small tiles);
- the eight renders of scripts/benchmark-layered-scenes.mjs (view region and
  capture region at f/2 and f/8, fast and full), and the same eight on the
  edge of card 0, where the fast and full rows differ (the benchmark's own
  region gives the same bits for both): samples, the view's expected values
  and noise standard deviations, the capture's RAW codes.

Recorded on arm64 (Node 26.13.1) and x64 (Node 24.1.0 under Rosetta 2): the
same bytes on both. Local time: about 6 s without coverage.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, two-row frames (#730 facade-17)

#711: the rolling-shutter lens signal's row blocks (#651) now report their sites as cached. The blocks are kept for the
signal and a site's value depends only on its block, so the display view's per-real-pixel memo may replay a real pixel's
terms when a later sample of the same display pixel lands on it, as it already does for the lens signal's ring. The
replayed terms are the stored ones, so samples, expected values and scene lookups are unchanged.

facade-17: the band height's start value compared row H >> 1 with the row below it; with two native rows that row does not
exist and the view threw a TypeError. The neighbour row is clamped to the raster. A row against itself shifts by 0, so
every other request is unchanged.

Handoff:

Changelog paragraph (Display view):
- **Display view: rolling shutter with defocus, the view's per-pixel memo for the row blocks (#711); byte-identical.** The
  row blocks of the regrouped lens signal report their sites as cached (they are kept for the signal, and a site's value
  depends only on its block), so the view replays a real pixel's terms when a later sample of the same display pixel lands
  on it, as it does for the in-focus lens signal. On #711's request (`scripts/benchmark-display-view-cases.mjs 711`,
  192 × 128 region of a 1194 × 796 view), timed against 2.28.0 in alternation on one machine: the rolling, out-of-focus
  render 5.82–5.88 s → 4.69–4.70 s of CPU time, 3.20–3.38× → 2.56–2.68× the in-focus render (target 3×, met). Samples
  (SHA-256) and scene lookups are unchanged in all three cases. Test: `test/display-view-lens-regrouped.test.ts` (the
  memo replays with the same samples and expected values, rows and bands).
- **Display view: a two-row frame with camera rotation under a rolling shutter and `lens.defocus` renders (#730,
  `facade-17`)** instead of throwing a `TypeError`. Other requests are unchanged.

Registry entries: none. Exports: none. Output changes: none.

Worker rows (gzip, rolldown 1.2.14), e229-int 783f38f → this commit: fast 338,840 → 338,848 B (+8 B, the clamp);
on demand 51,977 B, export kit 10,395 B, lens passes 10,200 B unchanged.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A linear polarizer's S0 was (k1 + k2)/2 S0 + (k1 - k2)/2 (c S1 + s S2), which cancels for light
polarized across the axis. Two crossed polarizers (k1 = 0.8, unpolarized light) read 2.5e-5 high at
an extinction ratio of 1e12, 0.25 % at 1e15 and 30 % at 1e16, and from 1e17 the result was refused
("Resolved passive filter transmission must remain finite and in (0, 1]").

The Mueller matrix is now evaluated in the axis frame from the intensities along and across the
axis, each a sum of non-negative terms, and the intensity across the light's polarization is
carried from filter to filter (its value after a filter follows from the coherency matrix's
determinant, so it never comes from S0 - |S|). Angles at a multiple of 45 degrees use exact cos
and sin of twice the angle (sin(pi) is 1.2e-16 in double precision). The fix plan in #700 (only
S0 regrouped) still loses k2 in the first polarizer's state and gives half of k1 k2, so the state
carries the extra value.

Output change: polarizer results move by a few units in the last place at ordinary ratios. No
pinned value changed (front-of-lens-polarizer, filtered-exposure-time and strict-record-fields
pass unchanged). Tests: a crossed pair and a single polarizer across its axis at ratios 1e6 to
1e300 within 1e-9 relative of k1 k2 and k2; a three-polarizer stack at general angles against an
independent coherency-matrix product within 1e-12.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rcle (#753 optics-26)

The default field position is the frame's corner. On a circular fisheye that point lies outside
the 180-degree image circle (PV 8 3.5 Fisheye Pro on a full frame: the corner is 21.63 mm from the
axis, the circle 11.31 mm), and the function reported a fringe there (3.51 um) where the lens forms
no image. When `resolveGenericLens(...).imageCircleRadiusMm` does not reach the corner, the default
is now the point on the same diagonal at the circle's edge, and a given position outside the
circle is refused with InvalidScientificInputError.

Output change: only the default position on a circular fisheye, and positions outside its image
circle (now refused). Values inside the circle are unchanged. Not a render path.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ase (#740)

The body loads on demand from typical-processing-entry.ts: the frame mean before
the demosaic, developDngImage's chain to linear sRGB, the bilateral filter, the
Durand-Dorsey operator (fast piecewise-linear base, or the new direct base on
fast: false, refused above 2e11 tap evaluations) and a saturation gain in linear
light, then developDngImage's tone curve and encoding.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… body)

#764: LAYERED_CHART_LIMITS gains maximumEdgeKernelRadiusSites { disc, shaped }
(64 and 64 today, the bound the layered sum enforces at card edges, from the
same DEFOCUS_DIRECT_KERNEL_MAXIMUM_RADIUS_SITES constant). The new pure function
calculateLayeredChartKernelRadii returns, per surface nearest first, the
kernel radius a request needs and whether it is within the bound. The shaped
kernel's radius comes from defocusBokehKernelRadius, the reach that
createDefocusBokehSiteKernel now shares (same bits: 458 kernels and 172
refusals compared against the previous code).

#747: new module layered-chart-query.ts with calculateLayeredChartSurfaceAt
({ scene, aspect, u, v } -> { kind, index, distanceM, framePoint }), the
chief-ray lookup the layered sum's pilot makes. It bundles without the lens
catalogue or the layered sum.

#752 body: createLayeredFocusMask, layeredFocusScores, focusMaskScore and
FOCUS_MASK_LABEL in the same module: per pixel max(0, 1 - c/c0) of the surface
the pixel centre sees, analytic, region-exact.

Handoff:
- Root exports for integration (src/index.ts): calculateLayeredChartKernelRadii
  and type LayeredChartKernelRadius from facade/layered-chart-scene.ts;
  calculateLayeredChartSurfaceAt and type LayeredChartSurfaceAt from
  facade/layered-chart-query.ts. The mask helpers (createLayeredFocusMask,
  layeredFocusScores, focusMaskScore, FOCUS_MASK_LABEL, DisplayViewFocusMask)
  are for LW1's wiring, not root exports. The bundle check in
  test/layered-chart-query.test.ts bundles the module path; it can switch to
  src/index.ts once the export exists.
- Registry: none (exact, analytic).
- LE: when the edge bounds change, make the sum import
  LAYERED_CHART_LIMITS.maximumEdgeKernelRadiusSites (disc and shaped) instead
  of LAYERED_EDGE_MAXIMUM_KERNEL_RADIUS_SITES; the test "exports the bounds the
  layered sum enforces" pins the two equal today.
- LW1: calculateLayeredChartSurfaceAtPixel (lens mapping) and the view option
  focusMask wire onto these bodies. createLayeredFocusMask takes the frame
  mapping as framePointAt(x, y) (null: no scene seen, score 0); its default is
  the rectilinear lattice formula. For a single-plane scene, focusMaskScore of
  the subject distance's blur circle is the constant.
- Changelog paragraph: "Layered chart scenes: calculateLayeredChartSurfaceAt
  (#747) gives the surface and its distance at a frame point, for
  tap-to-focus. calculateLayeredChartKernelRadii (#764) gives each surface's
  defocus kernel radius and whether it is within the renderer's bound, now
  exported as LAYERED_CHART_LIMITS.maximumEdgeKernelRadiusSites."
- Docs example (tap-to-focus) for docs/LAYERED_SCENES.md:
    const at = calculateLayeredChartSurfaceAt({ scene, aspect: H / W,
      u: (x + 0.5 - W / 2) * 2 / W, v: -(y + 0.5 - H / 2) * 2 / W });
    const result = await simulateCapture({ ...options,
      lens: { ...options.lens, focusDistanceM: at.distanceM } });
- Bundle rows (rolldown 1.2.14, gzip 9; before -> after): fast worker
  338,840 -> 338,819 B (-21: the shared reach returns a tuple; the bokeh
  kernel's own chunk 2,524 -> 2,504 B); on demand 51,977 -> 51,977 B; export
  10,395 B and lens 10,200 B unchanged. Layered chunk (no row yet) 9,841 ->
  9,868 B (+27: the limits object, which resolveLayeredChartScene reads).
  calculateLayeredChartSurfaceAt alone: 17,216 B (layered-chart-scene.ts and
  the query module). calculateLayeredChartKernelRadii alone: 20,302 B.
- Test times under coverage (local): test/layered-chart-query.test.ts about
  0.2 s (new file); test/layered-scene-chart.test.ts about 5 s (the radius
  sweep 4.1 s).
- Output: no change (no hash lock moves).

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wgslTokens split shader text on blankspace only, so it could not show
that removing a space between two tokens (a + b to a+b) leaves the token
stream unchanged. It is now a lexer: comments and blankspace are skipped
(WGSL section 3), and each position takes the longest identifier, int or
float literal, or syntactic token (WGSL sections 3.5 and 3.6); an
interpolation stays one token.

test/wgsl-display-view-tokens.test.ts re-records its pins with the lexer
on the current shaders (no shader text changes in this commit), and the
same hashes hold on the source text (PHOTIVRA_WGSL_MINIFY=0). It also pins
the chart-radiance, chart-composite (both product paths), probe and
material-module shaders, which the next commit assembles from parts.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ics-22)

The same values at a multiple of 45 degrees (cos and sin of twice the angle rounded to 0 or
+-1), 17 B less on the fast worker row (gzip). Polarizer tests unchanged.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An audit of every temperature input. Kelvin inputs were already checked (positive for Planck's
law, the locus ranges for the chromaticity functions and white balance, 1000 to 100000 K for a
DNG development). Celsius inputs were checked as finite only, so -300 C was accepted:

- the dark-current profile's reference temperature and table temperatures, and the operating
  temperature of calculateSensorDarkCurrentCharge;
- the exact reference temperature of the physical charge-capacity and camera saturation-capacity
  profiles, and the operating temperature of their two assessments;
- a spectral-response channel's reference temperature;
- the air's temperature in a sourced air refractive index;
- the operating temperature of a browser-native prepared site.

Each now refuses a value at or below -273.15 C, with "<path> must be above absolute zero
(-273.15 C)." and the error class the site already used (InvalidConfigurationError for a
profile, InvalidScientificInputError for an operating value). The check is one helper in the
new src/core/temperature-validation.ts (0 K = -273.15 C by the SI's definition, BIPM SI
Brochure, 9th edition, 2019, free). simulateCapture uses fixed temperatures (20 and 25 C) and is
unchanged.

Output change: requests with such a temperature are refused (they were accepted before). No
other result changes.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…facade-20)

The page said the display view never takes the catalogue lens's fast method. Since 2.20.0 its
field zones are the option's fast method in the view (registry entries lens.catalogue/view-psf-zones,
view-uniform-window and view-offset-expansion): a fast view reports applied["lens.catalogue"]
true (zones of 4 sites on a 240 x 160 frame), and false with fast: false (zones of one site).
Text only.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/COLOR_PATCHES.md's result table names each brands-set match as
"a brand <kind> (Simple Icons <release>)" instead of the brand. Set
names, counts, method, ΔE00 values, hex values and source credits are
unchanged. No other document or past changelog section names a brand
as a check result.

scripts/check-color-patch-distinctness.mjs --print uses the same form
(describeReference, colorKindWord: a kind word from the CIELAB hue,
chroma and lightness). The check and its failure messages are unchanged.

site/test/test-docs.mjs: every brands row of the result table equals
describeReference of its own hex and release, and the credits count
matches.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
site/assets/icon.svg, favicon.ico (16, 32, 48 px) and
apple-touch-icon.png are the Photivra icon files, byte for byte.
Pages gain <meta name="theme-color" content="#111214">. Link tags
and asset hashing are unchanged.

site/tools/make-icon-svg.py is removed; make-images.mjs now makes only
the social image.

Icons budget: 1,786 B of 6,000 B (was 1,009 B).

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
site/lib/highlight.mjs colors TypeScript/JavaScript, shell and JSON
blocks with highlight.js 11.12.0 (BSD-3-Clause, pinned site dev
dependency; core plus three grammars). Its classes map to six short
ones (k keyword, s string, n number, c comment, f function, t type);
spans are flat and carry only the code's text, so copying gives plain
code. Other languages, inline code and licence texts stay plain. No
inline styles or scripts: the Content-Security-Policy is unchanged.

Code blocks sit on #111214 in both schemes; token colors are 7.4:1 to
15.9:1 against it. Print sets code dark on white, keywords and function
names bold, comments italic.

THIRD_PARTY.md records highlight.js and the new icon files (#758);
docs/design/engine-site.md and docs/DEVELOPERS.md describe both.

Measured (gzip, budgets.mjs): CSS 4,726 -> 4,843 B (budget 12,000);
largest release page /releases/2.28.0/ 39,873 -> 39,887 B (budget
40,000; +14 B from the theme-color tag); largest API module page
28,590 -> 29,785 B (40,000); home 3,410 -> 3,489 B (10,000).

Handoff: no engine exports, registry entries or bundle rows change.
Changelog paragraph for 2.29.0: Site and docs: code examples on the
documentation site are syntax-colored at build time on a dark ground
(#757); the site uses the Photivra icon files and a theme color (#758);
docs/COLOR_PATCHES.md names the closest brands-set colors by kind, not
by brand (#756). New site dev dependency: highlight.js 11.12.0
(BSD-3-Clause). THIRD_PARTY.md, which is packed, changes.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test/shard-weights.json is re-recorded from the twenty coverage-timings
artifacts of two full coverage runs of the 2.28.0 tree: run 44981939443
(the release pull request; shards 1, 3 and 10 from attempt 2, the others
from attempt 1) and run 44988230027 (the publication record's pull
request). Each file weighs the mean of its two times; the hosted runners
differed by up to about 2.5 times per file between the runs. This replaces
the hand-entered estimates of 2.28.0's new files, among them
test/large-defocus-lattice-tiles.test.ts (42 s estimated, 276 s measured).

scripts/record-shard-weights.mjs now takes the mean when several reports
time one file, keeps the weight of a test file that no report times (a
file left out of the coverage run, or a new one) instead of dropping it,
and drops files that no longer exist (#755's comment).

Replaying both runs' measured times through the new partition on three
workers per shard (the model reproduces run 44981939443's ten shard walls
within 12 s with the old table): the longest shard is the one holding
test/display-view-speed-gpu.test.ts alone, 908 s on the release run's
times and 681 s on the record run's; the other nine 515 to 808 s.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cade-18)

docs/RELEASE_2_22_0.md says a request whose code cannot load fails with ImageKernelExecutionError
reason "quality-code-unavailable". That held for the Quality, opt-in and export kits; the catalogue
lens's code, the display view's lens signal, prepareImagePlaneScenes() and
prepareLayeredChartScenes() used a bare import() and rejected with the host's module error
(ERR_MODULE_NOT_FOUND, no reason). All four now load through kitLoader, so a failed load gives the
documented error and is retried on the next call, as before. Results are unchanged.

Test (test/on-demand-kits.test.ts): with each module's import made to fail (vi.doMock), the four
paths reject with reason "quality-code-unavailable"; before the change they rejected with the
module error. Fast worker row: +24 B (gzip).

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
simulateFalseColor(options, measure) takes measure.noise (true or { seed }) and
adds result.noise: { seed, withNoise, noiseOnly, demosaicOnly }, each a
statistics block of the chromaDifference form against the noise-free
full-color reference, with maps and images when measure.map or
measure.images is set. Without measure.noise the result is 2.28.0's.

- demosaicOnly is chromaDifference (the body, unchanged).
- withNoise demosaics the capture's own noisy RAW: runCapture (the path of
  simulateCapture) at fast: false and the seed, so the mosaic equals the RAW
  simulateCapture returns for that request and seed, bit for bit. AHD
  chooses its direction on the noisy mosaic.
- noiseOnly is a full-color sensor with noise: each site's own channel is
  the capture's code; the two other channels come from two more runs of the
  capture whose sensor stage (the exposure build-up hook) draws the photo
  and dark counts of that channel's expected electrons from their own
  streams (0x46434e00 to 0x46434e03) and reads them through the site's own
  readout chain.
- A region runs the capture on the region widened by the demosaic reach and
  equals the same pixels of the whole frame bit for bit.

The noise code is a second on-demand chunk (src/facade/false-color-noise.ts)
that imports nothing; the entry loads it only with measure.noise and passes
it the body's function, the dependencies and five capture functions.

Handoff:
- Exports: types FalseColorNoise and FalseColorStatistics, re-exported by
  src/facade/false-color-entry.ts, for src/index.ts next to FalseColorResult.
- Registry: none (full quality only, as simulateFalseColor).
- Shard weight: test/simulate-false-color-noise.test.ts, 18 s locally under
  coverage (vitest run --coverage on that file alone), 8 s plain.
- Bundle rows (rolldown 1.2.14, gzip): fast worker 338,840 B, on demand
  51,977 B, export kit 10,395 B, lens passes 10,200 B, before and after.
  False-color body 5,094 B before and after. Entry delta 329 B -> 381 B
  (+52 B; limit 400 B). New row "false-color noise": 3,566 B, limit
  3,600 B (decision 3), in test/capture-bundle.test.ts.
- Changelog: "simulateFalseColor takes measure.noise (#743): result.noise
  reports withNoise (the capture's noisy mosaic, demosaiced), noiseOnly (a
  full-color sensor with noise, without a demosaic) and demosaicOnly
  (chromaDifference), each against the noise-free full-color reference. The
  noisy mosaic is the RAW of simulateCapture at fast: false and the seed.
  Loaded on demand in its own chunk. Without measure.noise the result is
  unchanged."
- No output or hash changes.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…doff (#740)

docs/PROCESSING.md gains "Typical processing stages" (stages, sources, fast and
full local tone mapping, the measured bound, the work bound) and docs/USAGE.md an
example. test/typical-processing-bundle.test.ts measures the new chunk.

Handoff:
- Root exports (src/index.ts): simulateTypicalProcessing and the types
  SimulateTypicalProcessingInput, TypicalProcessingDevelopOptions,
  TypicalProcessingResult, TypicalProcessingStage from
  "./facade/typical-processing-entry.js". Until then
  check:browser-surface reports the four new modules as unreachable, the USAGE
  example cannot pass docs:check, and the bundle test imports the stub from its
  module (switch it to the root export at integration).
- Registry (src/facade/fast-methods.ts): add "simulateTypicalProcessing" to the
  runs union and to the runs of "developDngImage/demosaic" and
  "dngImport.warpRectilinear", and this entry:
  { id: "simulateTypicalProcessing/local-tone-mapping", override: "localToneMapping",
    methods: "fast-and-exact", runs: ["simulateTypicalProcessing"],
    fast: "#740: the Durand-Dorsey base layer by the paper's piecewise-linear bilateral filter with spatial downsampling",
    exact: "the direct bilateral filter of log10 luminance over each pixel's window of radius ceil(3 sigma), refused above 2e11 tap evaluations; default fast for srgb-8 and srgb-16",
    followsFormatDefault: true,
    resolver: { file: "src/facade/typical-processing.ts", call: "resolveFast(ltm.fast as boolean | undefined, fast)" },
    report: { assumption: "fast.simulateTypicalProcessing.localToneMapping", field: "fast.applied.localToneMapping" } }
- Changelog paragraph: "simulateTypicalProcessing (#740): phone-style
  processing of a burst of DNG frames as a simulation of typical stages, not of
  a device: the frames' mean before the demosaic, developDngImage's development,
  bilateral noise reduction, Durand-Dorsey local tone mapping and a saturation
  gain in linear light, then developDngImage's tone curve and encoding. One
  frame with every stage false equals developDngImage bit for bit. New registry
  entry simulateTypicalProcessing/local-tone-mapping: the full method is a
  direct bilateral base, refused above 2e11 tap evaluations. Its code loads on
  demand in its own chunk. developDngImage's output is unchanged."
- Bundle rows (rolldown 1.2.14, gzip 9): worker rows unchanged (fast 338,840 B,
  on demand 51,977 B, export 10,395 B, lens 10,200 B, before and after). New
  rows: typical-processing body 17,889 B (limit 17,900 B), entry delta
  1,348 B (limit 1,400 B; 874 B of it the CCT functions of color/illuminants.ts).
  With the worker shape plus the function, processing/demosaic.ts moves from
  the CPU Quality kit into its own shared chunk (+1,448 B over all chunks).
- Shard weights (local, under coverage, loaded machine):
  test/typical-processing.test.ts about 4 s, test/typical-processing-bundle.test.ts
  under 1 s (estimates x 2.8: 12 s and 3 s).
- No output or hash change: developDngImage's digests and the Durand-Dorsey
  tests pass unchanged.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e a subnormal element size (#730 facade-15)

(a) line-grid `spacing: 2` and dead-leaves `radiusMaximum: 2` are refused, while the JSDoc gave
(0, 2]. The JSDoc now states the open bound (2 itself is refused); behavior is unchanged.

(b) The dead-leaves lookup grid's coarse cell, sqrt(area / limit), gave exactly the cell limit,
and rounding both axes up then passed it, so every chart that needed the coarse cell failed with
"the chart aspect is too extreme for the lookup grid" ({ radiusMinimum: 0.002 } at aspect 4, the
default radii at aspect 96). The cell now grows in 0.01 % steps until the grid fits; a grid that
fits keeps its cell, so every chart that rendered before is unchanged. The cells only index the
disks (a cell closes once one disk covers it), so the texture does not depend on the cell size.
Aspect 4 now renders (3.87 million disks, about 1 s); the default radii at aspect 96 meet the
disk limit, whose message says to raise radiusMinimum. The old message is gone.

(c) calculateBarGroupTargets and calculateSlantedSquareEdges list a composite's elements only.
Their JSDoc now says so and to call them with the background chart alone.

(d) A composite element of width 1e-320 passed the (0, 1e6] check, its scale 2 / width was
infinite, and reflectanceAt threw a TypeError. Width and height must now be above 1e-300
("elements[i].width is outside its supported range.").

No valid request changes. Fast worker row: -5 B (gzip; the removed message pays for the loop).

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lter (#730 facade-16)

Every filter of a lens.filter stack had to state the same wavelength basis, and a stack with a
spectral-transmission filter had to be in vacuum. The engine's GENERIC_ND_FILTER_PROFILES are
frozen and state "air", so [spectralFilterInVacuum, GENERIC_ND_FILTER_PROFILES[3]] was refused
("every filter must state its wavelengths in the same basis"), while the same preset relabelled
"vacuum" rendered. Only spectral filters must now be in vacuum. A flat filter's value does not
depend on the wavelength, so each is read in the stack's basis (vacuum with a spectral filter,
else the first filter's); its value is the same in either basis. docs/USAGE.md states the rule.

Stacks accepted before keep their samples. Test: the stack above renders bit for bit as the
relabelled one, and its transmission is the spectral table times 0.125 at every sample
wavelength. Rows: lens-filter.ts is in the opt-in kit (on-demand row).

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
src/facade/layered-scene-signal.ts (one 474-line closure) becomes five
modules, each with the interface the later 2.29.0 layered groups extend,
stated in its module comment:

- layered-lattice-geometry.ts: lattice groups; framePoint(group, p, q, out,
  instant?) (the planar rectilinear map today, the same at every instant);
  edges(group, p, q), each card's edges near a lattice point as half-planes
  (axis-aligned today, box form [X0, Y0, X1, Y1]); surfaceOf, siteSurface,
  chiefSurface; layeredBoxRelation.
- layered-surface-radiance.ts: radiance(k, point, out, at), a surface's
  spectral radiance at a frame point (material spectrum x the one
  illuminant, point lights by their own spectra); material(k, point).
- layered-visibility.ts: rowIntervals(group, k, p, q, py, lo, hi, out), the
  open Px intervals of a pupil row (exact); rowBreaks, the rows' card edges;
  share, V_k of a tap's pupil region (the 2.27.0 row integration, unchanged).
- layered-edge-sum.ts: sumAt(group, p, q, out, at) over each surface's
  kernel groups { nodes, kernel } (one group over all nodes today;
  layeredKernelGroups builds it, with the cat's eye zone kernels).
- layered-scene-signal.ts: validation, tiles, the diffraction that follows
  the sum, the single-surface delegation and the view's signal. Exports
  unchanged; the lattice gains `parts` (the four modules' objects) and the
  input an optional `kernelGroups` (validated: nodes covered in order, radius
  at most the surface kernel's).

layered-scene-setup.ts: the refusals are a table, one row per option with
the release its message states (all 2.27.0 today), so a wiring group
removes a row without touching the rest. Messages unchanged (compared for
14 requests against 783f38f, including the order of precedence).

Evidence:
- test/layered-scene-seams.test.ts: the 6 module-level and 16 public-API
  locks recorded at 783f38f pass unchanged on arm64 (Node 26.13.1) and x64
  (Node 24.1.0 under Rosetta 2); new checks: framePoint and edges against
  the lattice formula, rowIntervals against a brute-force membership test
  along rows (no mismatch over more than 10,000 Px samples, rows with two
  intervals included), rowBreaks, share's 0/1 cases and the shares' sum at
  edge points (within 0.2 %), kernel groups split by node equal one group
  bit for bit, invalid groups refused.
- Every test/layered-scene-*.test.ts passes unchanged (46 tests).

Handoff:
- Exports: none new at the root. Registry: none. Changelog: no output change
  (an internal refactor); the changelog may say "the layered sum is split
  into modules; no output changes".
- Worker rows (test/capture-bundle.test.ts, rolldown 1.2.14, gzip), before
  and after: fast 338,840 B, on demand 51,977 B, export kit 10,395 B, lens
  passes 10,200 B: unchanged.
- Layered chunk (no row yet; simulateCapture, simulateDisplayView,
  prepareDisplayView and prepareLayeredChartScenes bundled, gzip level 9):
  9,844 B before, 10,632 B after (+788 B; 24,331 -> 27,039 B minified).
  Measured shares: the refusal table +77 B, the kernel-group validation
  +110 B, rowIntervals +89 B, the rest the module structure.
- Speed: the benchmark script and an edge-heavy region (card 0's edge at
  f/2, full), base and split builds interleaved, show no difference beyond
  run-to-run noise; the machine had a load average of 30 to 80, so this is
  not a quiet-machine figure.
- Shard weight: test/layered-scene-seams.test.ts took 43 s locally under
  coverage (41 s of tests, load average about 30): about 120 s on CI by the
  2.8 ratio.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner decision 1 of the 2.29.0 plan (2026-11-23): take the WGSL
blankspace saving in wave 1.

The minifier (scripts/lib/wgsl-minify.mjs) now also turns a run of spaces
and tabs inside a line into one space and removes it where it touches an
identifier or number character on one side and punctuation on the other,
or a bracket, comma or semicolon on either side. Neither rule can join two
tokens: identifiers and literals cannot continue into punctuation, no
multi-character token starts or ends with a bracket, comma or semicolon,
and a space between two other punctuation characters (a - -b, a / *p, > =)
stays. Every newline and every line with an interpolation stays as before.

The display view's material modules searched the chart kernels' text for
anchors with spaces ("var<private> flagged: bool;", "const DW: f32",
"const SEGMENT_BOX", the SLACK line). They now take their parts as
separate literals: CHART_MATERIAL_WGSL (wgsl-chart-kernel.ts),
CHART_COMPOSITE_MATERIAL_WGSL and chartCompositeModuleCommonWgsl
(wgsl-chart-composite-kernel.ts, whose common part is now its constants
and its body around the kernel's own E and SLACK lines). The kernels
interpolate the same parts, so no shader's tokens change.

Evidence:
- test/wgsl-display-view-tokens.test.ts: the 17 pinned lexer hashes
  (recorded in the previous commit, before any change) are unchanged:
  the Speed, Quality and coupled shaders, the chart-radiance and
  chart-composite kernels on both product paths, the probe and both
  material modules.
- test/wgsl-minify.test.ts: every one of the 46 literals keeps its line
  count and its tokens under an independent lexer (it agrees with
  wgslTokens on all 46 literals); new edge cases for the rule.
- Tests that read shader text compare tokens (test/helpers/wgsl-text.ts,
  chart-composite-barrier's operator scan) instead of spaced strings.

Bundle rows (test/capture-bundle.test.ts, rolldown 1.2.14, gzip -9), from
the previous commit: fast 338,702 -> 337,900 B (-802), on demand
51,983 -> 51,348 B (-635), lens 10,200 -> 10,000 B (-200), export
10,394 B, false-color body 5,094 B.

Needs the SwiftShader suite (run separately) and the owner's hardware
run before release.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A default 2 x 2 capture is mostly fixed per-call work. A CPU profile of 400 of them (node
--cpu-prof, this tree) puts 15.6 % of the time, inclusive, in parseEvidenceList, which checks the
same deep-frozen preset evidence on every call. A frozen list of frozen records with data
properties only (no getters) cannot change, so its parse is kept in a WeakMap keyed by the list;
each call gets its own copies, and every other list is parsed as before. Results are unchanged.

Measured (node e229 bench script: 40 warm-up and 600 timed default siemens-star captures at
2 x 2, built dist, five alternating runs on the same machine): 3.73-3.93 ms before (median
3.84) against 3.43-3.65 ms after (median 3.59, one outlier run of 4.86 ms dropped), about 6 %
less. The other candidate of the issue, the parsed readout-conversion profile (17 % inclusive),
is in src/sensor/raw-readout.ts, which group A owns in this wave, and is left for a later change.
The axis channel-response cache key was not changed.

Fast worker row: +107 B (gzip). Droppable on its own if the row is over.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…etting (#730 facade-04)

Owner decision 2026-11-23 (decision 6 of the 2.29.0 plan): note it in an assumption, do not
refuse it. Manual mode is the default, so a refusal would reach more callers, and the
compensation still moves the meter target the result reports. { exposure: { compensationStops:
3 } } gives the same settings, samples and standardExposureDeviationStops as without it; only
exposure.resolution.targetResidual shows the target 3 stops away, and no assumption said so. Such
a request now carries a `model` assumption `exposure.compensationStops` (value: the stops) that
says the compensation moves only the meter target. With Auto ISO or an automatic mode nothing
changes. docs/QUICK_START.md says the same.

Message only: no setting or sample changes. Fast worker row: +59 B (gzip). Droppable on its own
(decision 2).

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…#755, #742)

#755: test/display-view-lens-offset-expansion.test.ts was left out of
coverage runs (about 13 minutes alone under coverage locally). It is now
six files sharing test/helpers/display-view-lens-offset-expansion.ts:
-1 to -4 deal the catalogue lenses (every set but the phones, no fisheye)
in catalogue order into four parts of 15 to 18 s each without coverage;
-5 holds the four-spot filter and rolling-shutter check; -6 the flag,
report and region check. Every lens, aperture, row and bound of the 2.28.0
file is kept in every run. One call is lighter under coverage only: -6's
fast: false request resolves the lens PSF at every site of the
3,000 x 2,000 frame (105 s of the file's 215 s without coverage, past a
shard's limit with V8's counters), so coverage runs (PHOTIVRA_COVERAGE_RUN,
set by vitest.config.ts) read the same request's view.lensPsf report from
a 4 x 4 region of the view; plain runs render the whole view.

Measured locally under coverage (Node 26.13.1, macOS arm64, a shared
machine, one file at a time): 56, 61, 93, 74, 68 and 51 s, against the
plan's 105 s per file. Without coverage: 19, 19, 24, 25, 20 and 136 s.
test/helpers/coverage-excluded-tests.ts, its test and the vitest.config.ts
hook are removed; the plan's memo of one full-method reference per lens
was not added: no two checks share a lens, aperture and option set.

#742: test/display-view-speed-gpu.test.ts recorded 908 s on run
44981939443, above the 900 s per-file cap (681 s on 44988230027). Its two
slowest fixtures (240 and 259 s there) move to
test/display-view-speed-gpu-2.test.ts; the fixtures and the per-fixture
check move unchanged to test/helpers/display-view-speed-gpu-cases.ts.
test/display-view-composite-contraction.test.ts measured 496 and 664 s
and stays whole.

#742: the `combined` display-view hash locks kept for 2.28.0 only are
removed: 6 in display-view.test.ts (with their 5 arm64 hashes), 2 in
display-view-pixel-memo.test.ts (1 arm64 hash) and 17 in
display-view-detail-shared.test.ts, and the digest helper no longer makes
it. The `samples` and `internals` locks are unchanged.

test/shard-weights.json: the new files are entered by hand until the next
re-record (local coverage time x 2.8; the speed-gpu parts from their
tests' recorded times in both runs). Replaying both runs' measured times
through the new partition (three workers per shard): longest shard 808 s
(display-view-lens-catalogue.test.ts alone) on the release run's times,
664 s on the record run's, against 908 and 681 s before the split.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-06)

(a) The default `camera` assumption named "Generic Photivra tier preset 2.0.0" while
provenance.cameraPresetVersion is 2.1.0 (the tier ids use 2.1.0 since 2.14). The text now takes
the version from the preset assets.
(b) `exposure.metering` always said the meter reads scene luminance before the lens. With
lens.filter it reads through the filter (as the lens.filter assumption says), and with metering
"grey-card" every zone reads the card. The text now says which, from the request.
(c) With aperture priority and Auto ISO, provenance.composedContracts listed
resolveAperturePriorityExposureMode; resolveAperturePriorityAutoIsoExposureMode ran. The list now
names the resolver that ran, in the order resolveAt picks it (manual or shutter priority after a
flash-only reading too).
(d) On a profile with a base ISO above 100 the `exposure.referenceExposure` value is, for
example, { aperture: 8, shutterSeconds: 0.0064, iso: 125 }, but its text described only "f/8,
1/125 s, ISO 100". It now adds the profile's anchor.

Text only: no sample, RAW or file byte changes. No test named the old strings, but several pin a
digest of the assumption list; those digests are re-recorded here, and only those (the sample,
RAW and file digests beside them are unchanged): test/simulate-capture-optics.test.ts (six
metadata digests), test/sensor-profile-pins.test.ts (four), test/lens-catalogue-optics-pins.test.ts
(two) and test/program-line-lens-range.test.ts (ten). A new test checks the four texts.
Fast worker row: +119 B (gzip). Droppable on its own (decision 2: the first held back).

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bshack and others added 26 commits November 23, 2026 11:29
…746)

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…layered scenes (#741, #748, #746, #750)

Wave-4 wiring of the layered sum (layered-scene-setup.ts, simulate-capture.ts,
simulate-display-view.ts), following the owner decisions of this wave.

- #741: lens.catalogue renders with layered scenes. Each surface's kernel is
  the lens's bokeh at sigma*c - b (createLayeredCatalogueKernels; the cat's
  eye per field zone on the full method only, its radius checked against the
  128-site shaped bound first). The lens's PSF is built without a defocus
  kernel and follows the sum per field zone (createDisplayViewLensPsf: 64
  zones along the long side fast, zones of one site full), for the capture
  and the view alike; the capture's environment declares no PSF. No axial
  colour as a per-wavelength blur (the go/no-go failed). The catalogue's
  distortion and vignetting profiles also cover the lattice's reach through
  the lens (its kernels' pupil boxes); the PSF's field grid is unchanged.
  lens.catalogue is marked fast when its zones or the cat's eye omission run.
  lens.catalogue.flare is refused (new row, "in 2.29.0").
- #748: lens.focusScatter: every surface's blur and kernel come from the
  sampled focus (the facade resolves the lens there). The frame keeps the
  requested focus's thin-lens framing, as the single-plane path does, so a
  request focused at the sampled focus has the same depths and kernels but
  not the same pixels (up to 106 codes on the test's Siemens star): the
  plan's "bit for bit" acceptance does not hold at the facade, see the report.
  lens.catalogue.breathing: the geometry's frame scale 1 / (1 + delta). A
  card larger than the frame equals the single-plane catalogue view of its
  print with breathing (0 difference at every compared site, full method; the
  fast single-plane view takes the uniform-window field factor, #655). A card
  edge moves by the predicted u0*(w/2)*(1/k - 1) sites within one site.
- #746: camera rotation and hand shake render. The lens map turns the still
  geometry by one rotation matrix per instant (2.1x faster than reading the
  moving geometry per point, measured on a 96 x 64 region). The view reads
  the environment's midpoints (8 fast, 16 full, as flat scenes); a rolling
  shutter reads every row at its own instants (no row bands, owner decision);
  a scan by columns is refused. The "motion" refusal row is now a
  motion.subject row ("which surface moves is not defined by the request").
  Work bound: sites x midpoints above 2^24 is refused before any lattice is
  built, with the numbers (a capture's region or raster, a view's footprint
  with its reach). Chosen from LM's measured 15-22 us per site and midpoint
  (still through the lens map: 15.5 us per site): 2^24 is the layered sums
  of a still camera's largest default frame (4096 x 4096), about 4-6 min of
  CPU there; LM's 192 x 128 region at 16 midpoints is 2.3 % of it.
  estimateDisplayViewRender counts the midpoints.
- #750: a view on the planar map (still, rectilinear, distortion-free, one
  illuminant, no cat's eye zones) puts its layers in setup.gpu.layered and
  the loader of gpu/display-view-layered-gpu.ts in the request; the import
  lives only in the layered-scene code.
- Fixes found while wiring: the view's pilot mapped its point through the
  lens twice after LM's signal took the lens map itself (the setup's
  override is removed); the layered provider scaled a query's direction by
  the frame scale, which sends every breathing query off the lattice (the
  environment's geometry has no breathing), so that branch is removed.

Output changes: lens-mapped layered views (#744's) choose their uniform
pixels with the pilot mapped once; planar requests keep their bits (the seam
and hash locks pass). Layered views on the planar map under gpu "auto" now
ask the device (fallback reason webgpu-unavailable without one).

Tests: new test/layered-scene-wiring-wave4.test.ts (catalogue capture vs view
within 1e-9 fast and full, regions, focus scatter, breathing, rotation
global / rolling / hand shake vs view within 1e-9, the work bound, the GPU
route on the fake device within one code, the pilot); layered-scene-facade
and layered-scene-seams updated for the rows.

Bundle rows (e229-int-rows, this checkout path; base 86973a5 first):
fast 338,888 -> 339,048 (+160; 148 over 338,900); on demand 51,898 ->
51,898; export 10,394; lens 9,961; false-color delta 322 -> 280; typical
delta 1,363 -> 1,324; layered chunk 20,446 -> 22,774. Fast-row parts
(measured by removing each): catalogue tuple and PSF hand-over 26, fast
mark 26, lens reach 19, motion tuple 26, upstream PSF record 10, defocus
guard 4, view footprint and GPU fields 14.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Profile first (node --cpu-prof, the issue's frame: tabletop preset,
192 x 128 output of 187.5 um sites, 50 mm f/4 at 1 m, the environment chain
forced): the time is in the environment's per-site record checks
(native-environment-lean sameRecordExcept, photo, sensorMatches, evidence
parsing, record validation, GC); the layered provider's valueOfKey is 0.6 %.
So a layered capture now takes the tabulated path single-plane charts take:
each native site's expected electrons are the layered signal of the
capture's own lattice (the one its provider answers the environment with;
layered-scene-setup.ts `electrons`), integrated per site against its channel
response over its query offsets (with their weights), spectral nodes and
temporal midpoints; one site per CFA phase runs the full chain and must
match within 1e-9 with its readout reproduced bit for bit, else the chain
renders the frame. The raw.expectedSignal assumption says so ("scene":
"layered-sum"), recorded only once the check passed. Same sum by another
route (plan rule 3).

Measured (Apple M5 Pro, Node 26.13.1, load about 4, fastest of four runs in
one process): environment chain 238 ms -> tabulated 22 ms; single-plane
Siemens star 16 ms (target: at most 3x; 1.4x). DNG: 25 ms against 15 ms.
RAW codes equal the chain's code for code on that frame (25,220 sites) and
in the test (still, rolling-shutter rotation, catalogue lens); a region's
codes equal the whole frame's.

Tests: test/layered-scene-wiring-wave4.test.ts gains the #751 case (8 tests,
21 s plain, 76 s locally under coverage at load about 6.7). All 17
test/*layered*.test.ts files, the bundle tests (the fast row fails, below),
the hash-lock set, typecheck and lint pass.

Bundle rows (e229-int-rows, this checkout path): fast 339,048 -> 339,068
(+20 for #751; the shared-call refactor of the three tabulated calls
measured +14 and was not taken, dropping the assumption hand-off -13 but
would mislabel a failed check). Other rows unchanged against bd8f8a0 but
false-color delta 280 -> 305 and typical delta 1,324 -> 1,340 (both
within their limits); layered chunk 22,774 -> 23,220.

Handoff:
- Fast worker: 339,068 B against 338,900: +160 B of wave-4 wiring (#741,
  #748, #746, #750; bd8f8a0) and +20 B of #751. The owner's allowance covers
  #751's 20 B only; the wiring's 160 B is a cap question for integration and
  the owner (no saving of that size was found in the facade wiring).
- Root exports: none required. Optional: LAYERED_MOTION_WORK_LIMIT (2^24,
  layered-scene-setup.ts) as a public limit, for example in
  LAYERED_CHART_LIMITS.
- Registry text (fast-methods.ts): lens.catalogue/view-psf-zones and
  lens.catalogue/cats-eye extend their runs to layered chart scenes'
  captures and views (the PSF that follows the layered sum per field zone;
  each surface's bokeh kernel without its cat's eye); the prepareDisplayView
  gpu entry takes LGPU's text (210f8e1). motion.shutter.rolling/view-row-
  bands does not extend to layered scenes (owner decision: every row at its
  own instants). No scene.layers/chromatic-kernel-nodes entry (axial colour
  not taken, LC).
- Changelog paragraph: "Layered chart scenes take a catalogue lens (#741):
  each surface's blur is the lens's own bokeh, and its PSF follows per field
  zone; lens.focusScatter and lens.catalogue.breathing apply (#748). Camera
  rotation and hand shake render on layered scenes (#746), every row of a
  rolling shutter at its own instants; motion.subject stays refused, and a
  request above 2^24 layered sums is refused with its numbers. A layered view
  on the planar map renders on the GPU (#750, LGPU's paragraph). Layered
  captures take the tabulated native RAW path (#751): the issue's frame in
  22 ms instead of 238 ms, the same RAW codes."
- Migration list: layered requests with lens.catalogue, camera rotation,
  motion.handheld or a rolling shutter render instead of being refused; the
  motion refusal now names motion.subject with the reason "which surface
  moves is not defined by the request"; lens.catalogue.flare with a layered
  scene is refused (in 2.29.0); lens-mapped layered views choose their
  uniform pixels with the pilot mapped once (a merge bug of wave 3);
  layered views on the planar map under gpu "auto" ask the device; layered
  captures take the tabulated path (same codes in every test case).
- Shard weight: test/layered-scene-wiring-wave4.test.ts 76 s locally under
  coverage, about 215 s on CI by the 2.8 ratio.
- New rows by the rule (decision 3): layered chunk 23,220 B -> 23,300 B;
  layered GPU chunk 8,331 B in this bundle shape -> 8,400 B (the session
  chunk splits as LGPU reported: 31,654 -> 26,923 + 5,692 B in a bundle with
  prepareLayeredChartScenes).
- Docs: docs/LAYERED_SCENES.md updated here (catalogue lens, focus, motion,
  GPU, #751, limits); docs/WEBGPU.md's layered section is LGPU's handoff.
- Plan acceptance not met as written: #748 "the render equals a request
  focused there without scatter, bit for bit". The facade frames every
  request at its requested focus (metresPerFrameUnit from the thin-lens image
  distance), before the scatter is drawn, on the single-plane path too; so
  depths, kernels and the scene.layers report equal those of a request
  focused at the sampled focus, but the pixels differ by the framing (up to
  106 codes in the test). Changing the framing would change single-plane
  focusScatter outputs.
- Not covered by a test: the refusal of a rolling readout that scans by
  columns (no facade request reaches one without a custom readout profile).

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
)

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e does (#767)

The capture's lattice flag (#761) now also holds for a display view. A
view's per-site count leaves out the diffraction taps where the capture
sums them on the site lattice, so a view with camera motion or a moving
subject, lens.diffraction and the anti-aliasing filter is no longer
refused by the per-tap count. The view's lens.diffraction assumption
reports image-space-convolution, as the capture's does.

One term on one line of simulate-capture.ts; nothing else changes.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The large-defocus lattice (expected-signal.ts), the lens signal's lattice
(display-view-lens-signal.ts) and the rolling regrouped lens signal
(display-view-lens-regroup.ts) each built the same per-channel row
patterns from the CFA's 2 x 2 period. They now share cfaRowPatterns
(expected-signal.ts): channelAt is read once at x, y in {0, 1}, as before,
and each lattice keeps its own pattern functions (one per channel, or one
per block row). Same patterns, same values.

Bundle rows (e229-int-rows, same checkout path): fast worker 339,068 ->
339,027 B (-41), on demand 51,898 -> 51,894 B (-4); false-color delta
305 -> 290, typical delta 1,340 -> 1,331, layered chunk 23,220 -> 23,222.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New test/display-view-motion-diffraction-lattice.test.ts:
- per-site expected electrons against the capture's environment record
  and image-space provider, every fifth site, fast: false, seven
  requests (yaw, hand shake, a moving subject at f/8 and f/16 on 4 um,
  yaw on dead leaves, rolling yaw, yaw with lens.defocus): at most
  3.9e-15 relative (bound 1e-9);
- the view against the box-downsized capture (96 x 64 on 3 um, 1/60 s,
  yaw and a moving subject, view 12 x 8 at K = 16): RMS 0.52 and 0.52,
  largest 2.41 codes (bounds 0.6 and 3);
- regions and the prepared view equal the whole view bit for bit
  (yaw, a moving subject, rolling yaw; fast and full);
- eight combinations render fast and full on the CPU reference and
  report the capture's execution label;
- the kept refusals and the count without the taps (165888);
- estimateDisplayViewRender: taps, 16 midpoints, counts that bracket
  the render's diagnostics.

test/capture-motion-diffraction-lattice.test.ts: the facade-19 case's
view of the yaw request now resolves.

docs/DISPLAY_VIEW.md: "What it equals" and "Refused" in the lens
section, the Quality-with-rotation cost row (measured), the coarse
moving-subject cost note, and "Limits and refusals".

Handoff to integration:
- Changelog (2.29.0): "The display view renders camera motion or a
  moving subject with lens.diffraction and the four-spot filter (#767).
  The view counts its scene queries as the capture does since #761,
  without the diffraction taps where the capture sums them on the site
  lattice, so these requests are no longer refused; each site's expected
  electrons equal the capture's within 1e-9 relative. A catalogue lens
  with motion and the filter over the bound, motion.subject under a
  rolling shutter or rotating, and a count over 100000 without the taps
  stay refused. Camera rotation under a rolling shutter on a fast
  request renders as a view and is refused as a capture."
- Migration: "A display view's lens.diffraction assumption reports
  execution: "image-space-convolution" where the diffraction taps pass
  100000 scene queries per site (for example rotation with diffraction
  and a 2 x 2 box at 16 midpoints), as the capture does; before, a view
  reported "environment-psf-quadrature". No sample changes on views that
  rendered before. Refusal texts for a view with the filter now give the
  capture's count (the taps' factor 1)."
- Rows (node e229-int-rows.mjs, base 099c96f): fast worker
  339,068 -> 339,065 (-3, the simulate-capture.ts commit); on demand
  51,898, lens 9,961, false-color delta 305, layered chunk 23,220
  unchanged. This commit adds no bytes.
- Shard weight: local 85 s without coverage (load average 5 to 8),
  about 240,000 ms under coverage at 2.8x.
- Registry: none. Exports: none.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
, bundle)

scripts/lib/wgsl-minify.mjs kept every newline of a shader literal in
place. Inside a literal it now joins a line onto the one before it when
that ends with a bracket, comma or semicolon, the line starts with one,
or either is empty: no WGSL token begins or ends with those characters,
so the newline separated nothing. The first and last lines, every line
with an interpolation and the line after it are never joined (text kept
as written may end in a line comment). The newlines a run of joined
lines removes are put back as empty lines just before the next line with
an interpolation and before the literal's last line, so each literal
keeps its line count (the dist check and source maps of the code after
it are unchanged) and every interpolation keeps its line. A newline
between two word characters, or two other punctuation characters, stays.

No token changes: test/wgsl-display-view-tokens.test.ts (the pinned
lexer hashes) is unchanged, and test/wgsl-minify.test.ts checks every
literal's tokens with its independent lexer and its line count; its edge
cases now show the joined forms, a newline that stays between two words,
and an interpolation line that keeps its index. Tests run: wgsl-minify,
wgsl-display-view-tokens, and the Speed, composite, Quality, defocus,
lens, layered, image-plane, coupled, chart-composite, neighbor GPU module
tests with the fake device, adversarial arithmetic and luminance tone
(13 files, 196 tests).

Bundle rows (e229-int-rows, same checkout path): fast worker 339,027 ->
338,822 B (-205), on demand 51,894 -> 51,748 B (-146), lens 9,961 ->
9,919 B (-42), layered GPU chunk 8,331 -> 8,330 B.

The shaders' text changes (not their tokens): they need the SwiftShader
suite and the hardware GPU run at integration.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
src/index.ts exports the groups' handed-off functions and types:
- simulateTypicalProcessing, SimulateTypicalProcessingInput, TypicalProcessingDevelopOptions,
  TypicalProcessingResult, TypicalProcessingStage (#740, P);
- FalseColorNoise, FalseColorStatistics next to FalseColorResult (#743, FC);
- calculateLayeredChartKernelRadii, LayeredChartKernelRadius (#764) and
  calculateLayeredChartSurfaceAt, LayeredChartSurfaceAt (#747, LQ);
- calculateLayeredChartSurfaceAtPixel, LayeredChartSurfaceAtPixelInput (#747) and
  DisplayViewFocusMask (#752, LW1);
- calculateIdealLensDetailLimit, CalculateIdealLensDetailLimitInput (#765, A).

16 root exports (5 runtime, 11 types): 2,117 -> 2,133. LW2's optional
LAYERED_MOTION_WORK_LIMIT is not exported (not in decision 9's API list).

test/root-export-input-errors.test.ts classifies simulateTypicalProcessing (its own
allowlist message); the layered queries and the ideal detail limit take the shared
unknown-field message. The typical-processing tests and the layered query's bundle
check import from the root, as their groups' handoffs asked.

Bundle rows (rolldown 1.2.14, gzip 9), before and after: fast worker 338,820 B;
on demand 51,748 -> 51,743 B; layered chunk 23,220 -> 23,230 B.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
src/facade/fast-methods.ts, from the groups' handoffs:
- simulateTypicalProcessing/local-tone-mapping (#740, P): the paper's downsampled
  piecewise-linear bilateral base fast, the direct bilateral filter exact (refused above
  2e11 tap evaluations); resolver resolveFast(ltm.fast ..., fast) in typical-processing.ts,
  reported by fast.applied.localToneMapping and the
  fast.simulateTypicalProcessing.localToneMapping assumption. The runs union gains
  "simulateTypicalProcessing", which developDngImage/demosaic and dngImport.warpRectilinear
  also list.
- lens.catalogue/view-psf-zones and lens.catalogue/cats-eye extend to layered chart scenes
  (#741, LC and LW2): the PSF that follows the layered sum per field zone, in captures and
  views (view-psf-zones gains simulateCapture), and each surface's bokeh kernel without its
  cat's eye.
- prepareDisplayView.gpu takes LGPU's text (#750): layered chart scenes on the planar map.

Not added, per the handoffs: no scene.layers/chromatic-kernel-nodes (axial color not taken,
LC's go/no-go), and motion.shutter.rolling/view-row-bands does not extend to layered scenes
(owner decision: every row at its own instants).

docs/API_STYLE.md's registry paragraph names the 2.29.0 entries.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cision 3)

test/capture-bundle.test.ts gains the two new rows of the 2.29.0 plan's decision 3, each
limit its measurement rounded up to the next 100 B, in the capture worker's shape plus
prepareLayeredChartScenes:
- layered chunk (the one chunk holding facade/layered-* modules other than the enable
  hook): 23,230 B, limit 23,300 B;
- layered GPU chunk (gpu/display-view-layered-gpu.ts and its WGSL module, #750): 8,331 B,
  limit 8,400 B. Only the layered chunk loads it (a dynamic import); no chunk imports it
  statically.

No existing limit changes. Every row measured on this tree (rolldown 1.2.14, gzip 9):
fast worker 338,820 / 338,900; on demand 51,743 / 52,000; export 10,393 / 10,400; lens
9,919 / 10,200; false-color body 5,094 / 5,100, noise 3,572 / 3,600, entry delta 289 / 400;
typical processing 17,889 / 17,900, delta 1,332 / 1,400; calculateProgramLine 14,508 /
14,600; calculateIdealLensDetailLimit 4,954 / 5,000; calculateDetailLimit 10,299 / 10,300.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test/shard-weights.json: every test file the 2.29.0 groups added gets its weight, entered by
hand until the next re-record: its local time under coverage, one file at a time
(vitest run --coverage --maxWorkers=1, Node 26.13.1, macOS arm64, a shared machine at load
4 to 5), x 2.8. The longest are test/layered-scene-wiring.test.ts 88 s (247 s on CI by the
ratio), test/layered-scene-edge-runs-lens.test.ts 81 s (226 s) and
test/layered-scene-wiring-wave4.test.ts 76 s (212 s).

test/display-view-motion-diffraction-lattice.test.ts (#767, group V) took 230 s there, about
645 s on CI, over the plan's 300 s per-file budget. Its six tests are now three files with the
requests in test/helpers/display-view-motion-diffraction-cases.ts: -1 the per-site check
against the capture (103 s, 288 s on CI), -2 the box-downsized capture (81 s, 227 s), -3 the
regions, combinations, refusals and estimate (46 s, 130 s). The cases, bounds and timeouts
are unchanged; weights from the tests' recorded times.

Replayed through the sequencer, the ten coverage shards each sum 2,031 s of recorded time
(about 11.3 min on three workers); the longest file is 684 s.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…guides (#741, #748, #750)

- docs/WEBGPU.md: "Layered chart scenes on the GPU (#750)", from the module comments of
  src/gpu/display-view-layered-gpu.ts and wgsl-display-view-layered-kernel.ts (LGPU's
  handoff): the reference sum, the host's float64 spans and certain taps, the two passes,
  the a-priori bound, the envelope, the public path, the chunk and its row, and the
  development measurements (SwiftShader 8 of 8; a preliminary hardware timing of the file).
- docs/QUICK_START.md: the layered section's "Not in 2.27.0" list becomes 2.29.0's state
  (what renders now, what stays refused, tap to focus and the focus mask).
- docs/LENS_CATALOGUE.md: layered chart scenes take a catalogue lens (#741), with a link.
- docs/LAYERED_SCENES.md: #748, the depths, kernels and report equal those of a request
  focused at the sampled focus, the pixels do not (the framing).

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
)

npm run pack:check failed: docs/USAGE.md is packed and linked PROCESSING.md relatively
(not packed); the link is now the repository's absolute one, as the other packed links are.
npm run release:consumer-check failed on the same example under its strict types
(capture.image.dng is optional); it takes the non-null assertion the other DNG examples use
and is a ts block. docs:check did not type the example strictly, so neither showed before.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rence

- npm run release:prepare -- 2.29.0: package.json, the lockfile's root fields,
  ENGINE_API_VERSION, CITATION.cff, README.md and docs/DEVELOPERS.md, and the generated API
  reference (docs/api, docs/API_REFERENCE.md: 2,133 root symbols). README and DEVELOPERS say
  2.29.0 is prepared, not published, and link its record; SECURITY.md keeps 2.28.0.
- CHANGELOG.md: the 2.29.0 section, migration list first, with every group's paragraph
  (A, T, D, L0, LQ, FC, P, B, W, C1, C2, LR, LG, LE, LW1, LC, LM, LGPU, LW2, V, S, S2): layered
  requests that now render (projection, distortion, vignetting, a catalogue lens, mixed
  light, chartSize, camera motion) and the new layered refusals; motion.subject {} refused
  (#786); kernel refusal messages starting with lens.defocus: (#749); the view's
  lens.diffraction execution label (#767); #741 without axial color (#799); #748's framing
  at the requested focus; #746's 16 midpoints at 0.95 % of the local swing against 64 stills;
  facade-04 held for a later release (#800); #767's coarse moving-subject views (#801); the
  sizes table with every row and limit.
- docs/RELEASE_2_29_0.md: the release record (scope by wave and merge, new exports, sizes,
  known limits, the local runs, gates and the checklist).
- docs/WEBGPU_DEVICES.md: the hardware conformance run of this integration, 213 of 213 on
  an Apple M5 Pro (WebGPU on Metal, Chrome 158) on ebfb513, owed for the shader-text changes
  of #658 (groups A, S and S2) and the layered passes of #750.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…efusals name 2.29.0

Release review of e229-I at 35d0bac:
- The fisheye field-angle check (checkLayeredFisheyeFieldAngle) ran only for
  lens.projection, so a catalogue fisheye (pv-15-2.8-fisheye-pro, pv-8-3.5-fisheye-pro)
  failed a whole frame or view with an internal lattice message and rendered a region: a
  region did not equal the whole frame. The check now also runs when the catalogue lens's
  projection is not rectilinear. Test (test/layered-scene-wiring-wave4.test.ts): both lenses
  at f/4 on the 96 x 64, 375 um request are refused with the 75-degree message on a whole
  capture, a region and a view (it failed before the fix).
- The layered refusal rows name 2.29.0 (they named 2.27.0); the flare row's own release is
  dropped. Pinned texts updated in the seams, facade and wave-4 tests.
- #748 test: the scattered request's scene.framedWidthM equals the unscattered request's.
- The scene.layers assumption's catalogue sentence says "axial color", "color fringes".

Layered chunk 23,230 -> 22,962 B with the row-band removal of the next commits (measured on
the branch's head).

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ull are refused (#743)

simulateFalseColor(options, { noise: undefined }) and { noise: false } threw "Unknown
measure field: noise." (the body's key check does not list noise). The entry now refuses a
falsy noise other than undefined with "simulateFalseColor: measure.noise must be true or
{ seed }." and drops an undefined key before the body runs. The body is unchanged.

Tests (test/simulate-false-color-noise.test.ts): noise: undefined gives the plain result
(timings aside); false, null and 0 are refused with that message.

False-color entry delta 289 -> 355 B (limit 400 B); body 5,094 B and noise 3,572 B unchanged.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner's decision for 2.29.0 is every row at its own instants on layered scenes (no row
bands), and the wiring never set bandRows or rowBands. The signal's bandRows option and the
provider's rowBands (with their checks) are removed; a rolling shutter's row frames are keyed
by row. Outputs are bit-identical: every test/*layered*.test.ts (the seam locks included) and
the hash-lock set pass unchanged.

test/layered-scene-motion.test.ts keeps the measurement behind the decision (bands of 5 rows
against every row: under 0.25 code RMS and 2 codes, a middle row equal), now formed in the
test from each row's band's middle row; the provider's band case and its refusal test go with
the code. Internal message: "Layered scene: invalid temporal midpoints."

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d row (2.29.0)

- Issue references: #798 for the coarse moving-subject views (#801 was a duplicate) in
  CHANGELOG.md and docs/RELEASE_2_29_0.md; #797 for the fisheye limit in the migration list,
  docs/LAYERED_SCENES.md and the record's known limits.
- Migration list: the layered refusal texts name 2.29.0; the catalogue cat's-eye refusal
  (lens.defocus.catsEye: the clipping apertures close the pupil); measure.noise undefined and
  false; the registry text of lens.catalogue/view-psf-zones says "center".
- calculateLayeredChartKernelRadii's JSDoc and docs/LAYERED_SCENES.md: it does not take
  lens.catalogue. Build-group names removed from LAYERED_SCENES.md and the #767 split tests'
  headers.
- US spelling in this release's new text: the added lines of DISPLAY_VIEW.md,
  LAYERED_SCENES.md and LENS_CATALOGUE.md, and fast-methods.ts's view-psf-zones text
  (centre -> center; an existing published string). Pre-existing text is unchanged.
- scripts/lib/wgsl-minify.mjs: tighten() is safe for valid WGSL (comment only; the minified
  output is byte for byte the same, 275,084 B).
- Bundle rows: the layered chunk measures 22,962 B, so its new row's limit is that rounded up
  to the next 100 B, 23,000 B (23,300 B before the fixes); the stale measured figures in the
  comments of test/capture-bundle.test.ts (#743) and test/typical-processing-bundle.test.ts
  now give this tree's values. The record says "new rows for the new chunks and the #765
  calculation bundles", and its and the changelog's sizes and local runs are refreshed.
- The generated API reference is regenerated.

Rows (rolldown 1.2.14, gzip 9): fast 338,820 / 338,900; on demand 51,743 / 52,000; export
10,393 / 10,400; lens 9,919 / 10,200; false-color body 5,094 / 5,100, noise 3,572 / 3,600,
entry delta 355 / 400; layered 22,962 / 23,000; layered GPU 8,331 / 8,400; typical 17,889 /
17,900, delta 1,331 / 1,400; calculateProgramLine 14,508 / 14,600; ideal detail limit
4,954 / 5,000; calculateDetailLimit 10,299 / 10,300.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Their focal lengths scale with the frame, so every layered request with
either reads a point 75 degrees or more off the axis.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…outs (#749, #744)

CI run 45269715987, coverage shard 8 (Node 24.22.3, ubuntu): the file took 512 s and its third
test (an equisolid fisheye, a large blur behind a far card's edge) passed its fixed 300 s limit
(415 s), which was not scaled for coverage runs.

The cases and the check move to test/helpers/layered-edge-runs-lens.ts; -1 runs the first two
cases (every second row, as before), -2 and -3 the third case's rows 0, 12, 24, ... and 6, 18,
30, ... (together every sixth row, as before). Every edge point of every row checked before is
checked, with the same bounds; each test takes scaledTimeout(300 s).

Local coverage times, one file at a time (Node 26.13.1, macOS arm64): 13, 39 and 26 s. Shard
weights from the CI run's per-test times: 97, 252 and 164 s (the third test's 415 s divided by
the two parts' local times). That run's CI-to-local ratio for this file is about 6.5, not 2.8.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…that state it (#757)

CI run 45269715987's licence scan found BSD-3-Clause at site/lib/highlight.mjs:2 and
docs/design/engine-site.md:262, both prose naming the licence of highlight.js 11.12.0, the
owner-approved site development dependency of this release (recorded in THIRD_PARTY.md; build
time only, no highlight.js code is published or deployed). Two entries, each one file and that
licence. Checked with a synthetic report through scripts/check-scancode-policy.mjs: the two
findings pass and the same licence in another file still fails.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he same on every Node (#765)

Owner decision (option a). CI run 45269715987 failed test (22.13.0, 3/4): the #765 lock of
calculateProgramLine's 135 results differed on Node 22.13.0. The cause is older than 2.29.0:
standardExposureLuminance (unchanged since 2.28.0) took 2 ** ev100, and V8 rounds some
non-integer powers differently (2 ** 11.5 = 2896.3093757400984 on Node 22.13.0,
2896.309375740099 on 24.19.0 and 26.13.1); origin/main gives the same split. It now takes
portableExp2(ev100). standardExposureValue100's Math.log2 is unchanged: a sweep of 199,999
values gives the same bits on Node 22, 24 and 26 (2 ** x over the same sweep does not).

What moves, on Node 24 and 26 only (Node 22's results are unchanged): for a non-integer ev100,
calculateProgramLine's selection.luminanceCdPerSquareMeter by at most 1 ulp, and its
standardExposureDeviationStops (a rounding residual near 1e-14) with it; no setting. In the
lock, the 27 results with ev100 11.5; it is re-recorded (ea272ce3e466fc9b -> df106070b8804e94)
and gives that hash on Node 22.13.0, 24.19.0 and 26.13.1. standardExposureLuminance has no other
caller; no other lock or sample moves (the full suite passes). Migration note in the changelog.

calculateProgramLine row 14,508 -> 14,500 B (limit 14,600 B left as is); other rows unchanged.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The luminance moves by at most 2 ulps for some non-integer ev100 on every
Node version, and with it sceneEv100, the deviation residual and, for some
values, the continuous shutter and aperture in their last digits. Also a
doubled period in the edge-runs test headers.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bshack
bshack merged commit a9ce205 into main Nov 23, 2026
40 checks passed
@bshack
bshack deleted the e229-I branch November 23, 2026 23:05
bshack added a commit that referenced this pull request Nov 24, 2026
* Record the 2.29.0 publication

- docs/RELEASE_2_29_0.md: published header, checklist ticked, Publication table (tag on a9ce205, #802's and main's runs,
  the hardware GPU run on the release commit, Publish npm run 45287478138, npm time, integrity, provenance, GitHub
  release, Pages runs).
- docs/WEBGPU_DEVICES.md: the conformance run on the release commit a9ce205, 213 of 213 on the M5 Pro.
- CHANGELOG.md, SECURITY.md, README.md, docs/DEVELOPERS.md: 2.29.0 published November 23, 2026.

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Release record: GitHub release time, npm registry time and upload note

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Signed-off-by: William Shackelford <bshackelford@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant