Skip to content

Pipeline dashboard and quality views (ADR 0134, ADR 0137) - #608

Merged
neuromechanist merged 17 commits into
stagingfrom
feature/issue-586-epic-pipeline-progress
Nov 27, 2026
Merged

neuromechanist merged 17 commits into
stagingfrom
feature/issue-586-epic-pipeline-progress

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The website part of the ADR 0134 / ADR 0137 epic (nemarOrg/nemar-cli#2324): the admin pipeline dashboard and coverage card, and the public data-quality views drawn in the browser (dataset summary, per-recording quality panel, sensor maps, spectra and activations, export), plus the admin run quality drill-down.

Closes #586
Closes #588

Merge order: this merges after nemarOrg/nemar-cli#2412 reaches nemar-cli dev (the panel requires the ETag that the public quality route gains there) and after the nemar-process epic reaches its dev. Until nemar-cli#2412 is on dev, three drift tests that compare with nemar-cli dev fail (compute-pipeline-contract-drift, quality-route-contract-drift, quality-views-vocabulary-drift); they turn green once it lands.

Phases merged into this branch

Test plan

  • Every phase PR had its own review (pr-review-toolkit) and targeted tests, including the size gates (first screen 30 KB; worker plus one tab's lazy chunks 16 KB) and the median-of-5 speed gates.
  • The seam review of this branch runs before the merge.
  • Seam review round 1 and round 2 (delta): ready once the drift tests turn green.
  • Full CI green on this PR once Pipeline checkpoints, live progress and quality views (ADR 0134, ADR 0137) nemar-cli#2412 is on dev; today only the 12 drift tests fail, and the size gate passes (no-preload first screens 29.5 of 30.0 KB).

Owner items after the merge

Agentic AI tools were used. The author assumes full responsibility for this content.

* Pin the pipeline grid contract

* Capture the pipeline route fixtures

* Capture the pipeline command help

* Add the pipeline admin client

* Add the pipeline view models and words

* Show pipeline coverage on the overview

* Add the admin Pipelines grid pages

* Add the pipeline run drill-down page

* Guard the pipeline pages' sources

* Seed pipeline runs in the local backend

* Record the pipeline dashboard decisions

* Let the dashboard copy test know pipeline labels

* Review: required nullable keys, client tests

* Review: link only known statuses and cursors

* Review: copy, legend seconds, no-store overview

* Review: test a column named constructor

* Review: seed fails on refused progress

* Review: literal key in constructor test

* Review: chips count all; run mark word
* Copy the quality-view vocabulary by digest

Registry and neuroschema 0.6.0 parity vectors copied byte for byte from nemar-cli's vendored views/ by scripts/copy-quality-views-vocabulary.mjs, pinned in pin.json. Tested: --check passes; an unpinned file fails it.

* Drift-test the quality-view vocabulary

Copies held to pin.json on every run; pin held to nemar-cli SHA256SUMS.json (strict via NEMAR_CLI_QUALITY_VIEWS in CI). Tested: passes against the nemar-cli epic; a changed copy or upstream file fails.

* Drop figures from the standard checkpoints

nemar-cli ADR 0137. Tested: pipeline drift test green against the nemar-cli epic (red before), view tests.

* ADR 0035: quality views drawn in the browser

Website decision for nemar-cli ADR 0137; index and AGENTS.md map updated.

* Refuse vectors/ entries the copy rule skips

Every vectors/<name>.json is copied; any other vectors/ entry is a problem in the script and the drift test. Tested: ic_activity.v2.json and a subfolder entry each fail.

* Biome: ignore the copied parity vectors

* ADR 0035: placement follows ADR 0137 amendment
* Add the LU solver the view algorithms name

Partial pivoting in binary64 with the factors kept, so one matrix is solved for many maps in the same operation order as a fresh solve (neuroschema 0.6.0 linalg.py). Tested through the sensor-field and sensor-layout parity suites.

* Add the nemar.sensor-field.v1 core

EEGLAB topoplot v4 map per neuroschema 0.6.0 and the ADR 0137 amendment: mean-removed interpolation, exact merge means, 8-sensor minimum, flat_field and near_flat notes, 5% minmax margin. Geometry (factorized G, evaluation matrix) is shared by every map of a view.

* Add nemar.sensor-layout.v1 and name rules

Positions to topoplot layout: exact BIDS frame table, scalp rows, montage or sphere center with the six bounds, cart2topo. The name rules it reads (fold, clean, finish, types, fiducials) live in sensor-names.ts for W2b to build on.

* Replay the sensor-field and layout vectors

Every case of sensor-field.v1.json (42) and sensor-layout.v1.json (66, plus every frame name and cart2topo point) within the specs' parity bounds; refusals by exact word. Tested: 166/166 pass.

* Test the solver and each sensor-field rule

Mean removal (offset invariance, exact flat fields), the exact merge mean, the near-flat threshold either side, the 8-sensor minimum after merge and drop, the 5% minmax margin and EEGLAB absmax axis. Tested: 25/25 pass.

* Hold the name rules to the label vectors

Types, name exclusions, unhyphenated keys and fiducials checked on all 5,895 sensor-labels.v1 channels, plus fold, clean and finish edge cases. Tested: 9/9 pass.

* Trace contour lines by marching squares

The renderer's own lines at the spec's six levels, outside parity: masked corners draw nothing, saddles split by the square's mean. Tested: straight lines, closed rings, masks, saddles (6/6).

* Add the sensor-field module worker and client

Geometry cached by layout SHA-256 and usable rows, maps on screen first then batches, Float32 grids and contour segments transferred, cancel between batches. The client imports no numerics. Tested over a real MessageChannel: 15/15.

* Add the scalp maps' color maps and tokens

Diverging (ColorBrewer RdBu reversed), sequential (the viewer's viridis stops) and the Turbo LUT, with their Apache-2.0 notices; --qv-* tokens, data colors theme-independent, head line per theme. Tested: tokens equal the tables, viridis equals viridisColor, Turbo digest (7/7).

* Evaluate two cells and four maps per pass

Each E and w value is loaded once for eight sums; every sum still runs over the sensors in order, so cells are bit-identical to the one-map loop. 128-sensor view (128 maps) 44 to 36 ms in Node. Tested: parity 47/47.

* Trace every contour level in one pass

Each square is visited once and traced only for the levels inside its corner range, edges computed only when crossed. 128 maps: about 15 to 7 ms. Tested: contours 6/6, worker 15/15.

* Measure the drawing budgets

Vitest gates the full worker path at twice the budget (first maps 50 ms, 128-sensor view 100 ms, 256 at 300) for 128 and 256 IC maps; the Playwright spec times a real module worker in Chromium against the budgets themselves. Tested: both pass on this machine.

* Check the quality-view bundle sizes

Worker at most 12 KB and the lazy chunk at most 30 KB gzipped, bundled alone with Bun (and in dist/ when built); runs in CI's test job. Tested: worker 5.2 KB, main thread so far 3.4 KB; a 4 KB budget fails it; bun run build passes.

* Test the near-flat bound at exact equality

976562.5 and 976562.4990234375 differ by exactly 1e-9 of the magnitude; the mutation of <= to < survived every other test and fails this one.

* Map the W2 quality-view modules in AGENTS.md

* Skip the array for single-sensor merge groups

center([v]) is v + 0, written without allocating a group array per sensor per map. Bit-identical: parity 47/47, the 42 core mutations still all killed.

* Type the missing montage center error

MontageCenterUnavailable lets W3 catch the site's own wiring fault by type and leave the map undrawn with a sentence. Tested: layout parity 119/119.

* Send exact grids and each geometry once

Review of #591: grids leave as the algorithm's own Float64Array, transferred (Float32 flattened near-flat maps); geometry once per draw; contours only for maps on screen (contoursOf traces the rest); larger later batches; messageerror handled; a dropped worker's events ignored. Tested: the received grid of all 33 drawn vectors within the parity bound; stub-transport error paths (56/56).

* Gate the drawing budget on the CI runner

Owner ruling: keep ADR 0137's budget. The perf test gates at the budget itself (first maps 50 ms, 128-map view 100 ms, 256 at 300) in its own CI step, alone on the runner, and is skipped inside the parallel suite. Tested on M4: 6.8 / 20.9 ms and 12.8 / 68.3 ms medians.

* Measure the size budget on a real Vite build

The CI size step now runs after astro build, even when Vitest failed, and measures dist/ once a page imports the client; until then Astro's own Vite builds the client as an entry with its worker. Shared chunks count. Tested: worker 5.2 KB, main thread 5.5 KB; lowered budgets and an entry-only count fail it.

* Keep color positions finite on wide axes

entryFor works on halved operands, so an axis wider than the largest double (a flat field at 1.5e308, absmax +-1.575e308) places its cells, and a position that is not finite takes the middle entry, never an empty one. Tested: flat_huge_duplicate_pair paints entry 249 in every cell; both mutations fail.

* Ship the color maps' license notice

public/licenses/quality-views/NOTICE.txt carries Turbo's and ColorBrewer's Apache-2.0 notices with the license's full text, served beside the bundles; COLOR_MAPS_NOTICE names it for legends and exports. Tested: the file holds both copyrights and the full license.

* Update the AGENTS.md map for the review round

* Build stub error events without ErrorEvent

CI's Node has no global ErrorEvent, so two stub-transport tests failed there (one by timeout). The stub now raises an Event carrying the message the client reads. Tested: 56/56 with ErrorEvent deleted, the pushed version fails the same 2 that way.
* Copy neuroschema's montages by digest

Widen the vocabulary copy rule and its drift test to views/montages/*.json, PROVENANCE.json included, pinned by SHA-256 like the registry and vectors. Ship MNE-Python's and EEGLAB's license texts in the quality views' notice and list them under Required. Tested: drift test strict against the nemar-cli epic checkout.

* Check template centers against montage files

Add montages.ts (strict nemar.montage.v1 reader) and a lazy per-file loader. The parity tests now read each montage center from the copied files, so the six template cases' center checks are independent of the vectors. Tested: montages, layout, field and worker tests.

* Color iEEG activity from colormap.ts

The activity overlay takes its sequential colors from the quality views' SEQUENTIAL_STOPS and colorAt instead of the viewer's viridisColor. Digests taken from the former code pin the overlay's table and colorFor, ties included, as unchanged. Tested: iEEG spatial and colormap tests.

* Draw the viewer's scalp map with sensor-field

The live topomap is placed by nemar.sensor-layout.v1 (own positions; intracranial frames and non-EEG rows refused; unknown, flat or partial positions fall back to names and say why) or by name on neuroschema's montage files centered on each file's center, and drawn by nemar.sensor-field.v1 in the quality views' worker with the sequential map on the minmax axis. Every refusal, a montage that cannot load (MontageCenterUnavailable included) and a worker failure leave the map undrawn with a sentence. Removes the thin-plate spline, projectPositions, renderTopomap and the hand-copied montages. Tested: viewer, scalp-map and name-placement tests.

* Measure size from each lazy importer

The size check now measures from every dynamically imported chunk whose static imports reach the client, so two lazy panels sharing a split-out client are each counted with their own code (website#592); the client's own in-thread fallback is never a root. The measuring half moves to quality-views-size-lib.mjs and is tested on made-to-order chunk layouts. Tested: astro build and the size check (client chunk 11.6 KB gz with its imports, worker 5.2 KB gz).

* Map the viewer's scalp map in AGENTS.md

Name scalp-map.ts, name-placement.ts, the montages and the size library in the architecture map, and update the CI comment on the size step. Docs only.

* Center the topomap's refusal sentence

Hide the empty canvas and the legend while a refusal stands in for the map, and show them again when a map is drawn. Checked in the dev server on a refused and a drawn recording.

* Add viewer scalp map screenshots

Before and after the move onto nemar.sensor-field.v1, from the dev server on public recordings: own positions (on002718, nm000103), names on standard_1005 (on004504), and a refusal for untyped channels (on004584). Docs only.

* Add an e2e spec for the viewer's scalp map

On the embed route with public recordings: a map through the module worker, template positions by name with their note, and a refusal that hides the canvas and legend. Tested: 3/3 locally against the dev server.

* Fall back to names from the drawn EEG rows

After a refused projection, place by name only the positioned rows typed EEG, as neuroschema's drawn_rows and named_eeg do; positioned EOG, ECG and MISC rows and rows naming no channel no longer block it. Add positions_unmatched (a viewer word), too_few_channels and no_eeg_sensors on the names path, and pin the store's OTHER as untyped. Regression fixtures from nm000254, on003690 and on003039 now place on standard_1005. Tested: eeg-viewer tests, mutations killed.

* Record the interim EGI-by-names deviation

Comment in name-placement.ts that choosing an EGI net by names alone, the missing 0.8 share rule and the other sensor-labels checks are an accepted deviation from ADR 0137 that W2b removes. Comment only.

* Measure panels that import the client eagerly

The size walk also measures every chunk that statically imports the client but sits in no lazy root's set, and names the chunks above it in a note; the client's own lazy fallback is excluded. Reproduces the review's page -> dataset-panel -> worker-client layout. Tested: size tests, astro build and the size check.

* Update the scalp map screenshots

on004584 shows the reworded no_eeg_sensors sentence; nm000254 (frame Other, positioned ECG and EOG rows) now places its EEG rows by name on standard_1005. Docs only.

* Word the topomap's last refusals exactly

no_eeg_sensors on the positions path says the positioned channels are not EEG when some channel is; a recognized net matching one or two names and the 10-05 montage none says too_few_matched. Tests for both, and for placing only the drawn rows (no unpositioned EEG channel, no OTHER channel with an electrode name). Tested: eeg-viewer tests, mutations killed.

* Follow re-exports in the size walk

staticImports also follows export {..} from and export * from, so a facade re-exporting the client is measured; each docblock now sits above its own function. Tested: size tests, astro build and the size check.
* Quality views: file readers and view guards

TSV and I-JSON readers with the generic kinds' words, and hand-written guards for the view envelope, every registered kind, both transforms and the two contents, replaying neuroschema's verdict corpus (236 cases). Tested: vitest guards file.

* Quality views: view models and renderer rule

Port of build_model: the renderer rule with the role contract, the table, lines, heatmap, histogram and sensor-field models, the fallback, digest checks before parsing, readout snapping and bin location. Held to kinds-models.v1 (269 cases, 18 refusals); 21 cases placed by name await W2b. Tested: vitest models file.

* Quality views: move the renderer rule to kinds

kinds.ts holds the registry, drawAs and the role contract (C2); model.ts builds models. No behavior change; models test passes.

* Quality views: generic renderers and fallback

Element-tree renderers for table, lines, heatmap, histogram (one SVG tree for server and page), scalp maps on the worker and the fallback, each a figure with caption, text alternative, readout from stored text, data table and downloads; color maps notice linked. The viewer's map-frame helpers move to render/map-frame.ts. Tested: vitest quality-views files and scalp-map.

* Quality views: warm the worker before a view

A prepare request builds a layout's geometry ahead of its maps; SensorFieldClient.warm prepares and draws a full-size throwaway set while the values download, and a real draw cancels a warm-up still running. sharedSensorFieldClient gives a page one worker. Tests for late failure and messageerror events from a dropped worker (website#592). Tested: vitest worker file.

* Viewer: share the page's map client

The live scalp map draws through sharedSensorFieldClient, prepares the geometry when its placement resolves with the panel open, and cancels its own draws on close instead of ending the shared worker. Tested: vitest eeg-viewer.

* Perf: gate the cold first view

The perf step gates the first view on freshly imported code at 50/100 ms (128) and 300 ms (256), warmed while the values download, and checks the geometry was cached; the browser spec warms and gates its first view too. Tested: test:quality-views-perf and the e2e spec on M4.

* Quality views: measure renderers in size check

The entry build measures the model and renderers with the client. The model takes map outcomes as an option and loads the layout projection on demand, so the interpolation stays in the worker: 27.7 KB of 30. Tested: astro build plus size check, vitest models and render.

* Quality views: test the marker readout

markerReadout is what a pointer or key on a map's marker shows; the render test holds it to each plotted sensor's stored text on a worker-drawn map. Tested: vitest render file.

* Docs: map the renderers and the cold gate

AGENTS.md lists read, guards, kinds, model, tree and render, the stylesheet and the shared, warmed client; the CI perf step's comment names the cold first view. Docs only.

* Styles: format the quality views sheet

Biome formatting only. Tested: bun run lint.

* Test: keep the scalp model narrowed

astro check lost the sensor-field narrowing inside a closure in the render test. Tested: bun run typecheck, vitest render file.

* Quality views: checks in the worker

The guards and the renderer rule run in the map worker (check and check-content requests; on this thread only when the worker cannot answer). Builders are keyed by kind@version. buildModel fetches a scalp map's layout beside its values and hands warmInput's rows to onLayout for prepare. warm() takes no layout (a synthetic 64-sensor one) and draws 16 maps in batches of 8. Tested: vitest checks, models, worker.

* Sensor field: evaluate four maps in a function

The four-map, two-cell loop over the evaluation matrix is its own function, so the engine optimizes it within a page's first view: a cold 128-map view's maps take about 21 ms on M4 instead of 36 to 43. Parity unchanged. Tested: vitest sensor-field parity, worker, models.

* Quality views: lazy renderers, review fixes

render/index.ts loads each renderer on demand per model type; data tables are built on first open; heatmap legend from stored texts; histogram mark text and unit in readouts; turbo legend; per-map range note; roving tabindex over scalp maps; readout spoken only on change; overflow-safe plot spans; download links only by http(s), blob or site paths; a failed renderer says so and lists the files. Tested: vitest render.

* Perf: gate eager first views

The perf step gates cold (warmed on mount, geometry prepared from the layout) and eager (cached data at mount) first views at 50/100 ms (128) and 300 ms (256), and prints a draw arriving mid-warm-up; the browser spec times all three. Tested: test:quality-views-perf and the e2e spec on M4.

* Size check: measure each lazy renderer

Each lazy renderer chunk is measured with the entry's static set against the main-thread budget, and W7/W8 modules (transforms/, activations.ts, export/) fail the check if they load with the entry. Tested: astro build plus the size check.

* Docs: checks in worker, lazy renderers

AGENTS.md and the CI perf comment follow the review's changes. Docs only.

* Test: the layout is fetched beside the values

Without onLayout too. Tested: vitest checks file.

* Linalg: eliminate two rows per pass

Each entry still gets the same one operation in the same order, so the factors are bit-identical (tested against the row-by-row elimination); the 256-sensor LU drops from about 5.2 to 3.3 ms on M4. Tested: vitest linalg, sensor-field parity.

* Quality views: keep geometries across visits

The worker reads a geometry from IndexedDB before computing it (key: layout SHA-256, algorithm version, SHA-256 of the exact places and usable rows), checks it, and stores new ones after the draw answers; 16 layouts LRU; blocked storage only means computing. Stored geometries draw the computed maps bit for bit. Tested: vitest geometry-store, worker.

* Perf: gate the repeat-visit eager view

The perf step gates the eager view of a repeat visit (geometry read back from the earlier visit's storage) beside the first-visit eager, cold and median gates; the browser spec checks real IndexedDB reads and bit-identical maps. Tested: test:quality-views-perf, e2e spec on M4.

* Docs: map the geometry store

Docs only.

* Quality views: computed presets checked on page

The schemas of nemar.ic-activity, nemar.signal-window and nemar.ic-activity.v1 move to guards-computed.ts. The worker answers unchecked for those views and the page checks them in local-checks.ts, a lazy chunk, so the map worker with its geometry store stays within 12 KB (11.7). The size check measures the lazy check chunks too. Tested: vitest quality-views, astro build plus size check.

* Test: computed presets need their schemas

And AGENTS.md names guards-computed and local-checks. Tested: vitest guards.

* Linalg: four rows per pass, in a function

The elimination below each pivot is its own function, four rows per pass over the pivot row; each entry still gets the same operation in the same order, so the factors are bit-identical (tested). A cold 256-sensor LU drops from about 6.2 to 4.0 ms on M4. Tested: vitest linalg, sensor-field parity.

* Sensor field: one row function for G and E

The interpolation and evaluation matrices fill their rows with one function (g(0) = 0 is the diagonal's 0), so the engine has optimized it on G's rows before E's many, and a synthetic warm-up's geometry warms it too. Parity unchanged. Tested: vitest sensor-field parity, worker, geometry store.

* Perf: gate first views by a median of three

Cold, eager and repeat-visit first views are each run three times on freshly imported code and gated by their median at the same 50/100/300 ms; each run prints the draw's geometry and map times. Printed probes measure exact r2 reuse and a second thread for half the evaluation matrix. Tested: test:quality-views-perf on M4.

* Test: G is built to the bit

The interpolation matrix's factors equal those of G built entry by entry with a zero diagonal, on every drawn vector case. Tested: vitest geometry store.

* Quality views: preload the first screen ahead

prepareAhead warms the shared worker, fetches and checks a scalp map's layout and prepares its geometry, and fetches and checks the first windows' view files for preloadedSource; byte cap, AbortSignal, low-priority fetches, shouldPreload for data-saving and 2G links; idempotent, never throws. Measured in the size check. Tested: vitest checks.

* Perf: print first-visit eager 256, not gate

By the owner's ruling the dataset page prepares the geometry at page load; W6 gates that case as panel opened after page load. Every other gate is unchanged. Tested: test:quality-views-perf on M4.

* Quality views: drop the geometry store

Computing now beats reading real IndexedDB, and the store had a silent-corruption path, a hang and up to ~120 MB of disk; the in-memory per-worker cache stays, and so do the faster LU and shared row function (G's bit test kept). The worker checks computed presets itself, loading guards-computed.ts as its own lazy chunk (ES module workers in astro.config and the size build), so it never answers unchecked. Repeat-visit gates go; first-visit eager at 256 stays printed. Tested: vitest quality-views, perf on M4.

* Size check: gate first-screen unions

The Spectrum (entry, lines, scalp maps) and Components (entry, scalp maps, histogram) first screens are gated at 30 KB gzipped together, and the worker with its lazy computed-schema chunk at 12 KB; the page's own checks, loaded only without a worker, are printed. The renderer rule's kinds table is written out (held to the registry by a test) so the worker carries no registry. Tested: astro build plus size check, vitest kinds and checks.

* Quality views: mount tokens and keys hints

mountView takes a per-container token and an optional AbortSignal, so a slower, older render never replaces a newer one; lines, heatmaps and histograms carry an aria-roledescription and a keys hint as scalp maps do. Tested: vitest render (fast remount, abort, hints).

* Quality views: preload races, caps and cells

A panel opened during a preload fetches at once and the first verified bytes win; prepareAhead defaults its cap to the registry's bytes per role and its fetch stops reading past the declared size; Reader.prefetch leaves no unhandled rejection; warmInput reads places with the model's cell reader. Tested: vitest checks (hung preload, losing preload, cap, readLimited, unhandled rejection, cells).

* Worker: sort imports

Biome formatting only.
* W5: verify.ts and tsv.ts on the W4 readers

* W5: capture summary fixtures from nemar-cli

* Guards: refuse prototype names in closed objects

* W5: dataset summary guards and corpus replay

* W5: histogramOf and a stored-text-only drawing

* W5: DatasetQualitySummary from dataQuality

* W5: Data quality tab replaces coming soon

* W5: AGENTS.md map for the summary

* W5: test digest depth on built values

* W5: no digest for holes or non-plain objects

* W5: summary review fixes

* W5: render DatasetTabs in Astro's container

* W5: biome-ignore the capture script's deletes

* W5: one own-range lookup for summary and rules
* Copy the quality route contract, drift-tested

* Recompute nemar.view-digest.v1 on the page

* Capture the quality route's fixtures

* Read a recording's quality record, checked

* Draw and check the presets beyond their bases

* Keep preloaded files apart from the preload

* Mark the floor's decisions in the viewer

* Gate the panel's first screens by size

* Add the per-recording quality panel

* Gate the panel opened after page load

* Test the panel in a browser

* Seed the quality route in the local backend

* Test the viewer's shaded bad segments

* Pin the preload's scope, cap and leaving

* Map the panel, and its ADR addendum

* Type-check the panel's browser spec

* Require the record's ETag from the data plane

* Check the signal window's declaration first

* Ask again after a failed preload

* Stop a recording's work when it is left

* Plan the preload from checked views only

* Word every refusal, never a raw word

* Keep the floor's bad channels apart

* Pick the row under the click

* Clear the marks after each open

* Gate site-build unions; worker budget 16 KB

* Test the review fixes

* Re-capture the route at nemar-cli 311c71fa

* Read without a digest on loopback only

* Gate the size on the real site build

* Hide bad hides the floor's marks too

* ADR 0035: correct the W6 addendum

* Test the tab, tap, handle and marks fixes
* Copy the admin quality mount contract

Paths, words, grammar, forward path and the proxy obligations of nemar-cli's admin mount; the route drift test widened to them. Tested: drift test against the epic checkout (5 pass).

* Run-quality words in the pipeline contract

Run-quality and recordings states, page size, serving_index_deferred; drift test widened and the stamp pattern read from its new leaf. Tested: drift test against the epic checkout (7 pass).

* Same-origin proxy for admin quality views

Admin gate, GET only, no query, raw rest, forward path, caller's session cookie only, no-store, 4 MiB counted cap, three relayed headers, no redirects, service binding. Tested: proxy tests against a local HTTP server.

* Seed and capture the drill-down runs

Local backend seeds canary, expired, in-progress and deferred runs; capture script writes their real answers. Tested: captured from the epic backend.

* Run quality client, view model and words

Tested: pipeline-quality-view (18 pass) on captured answers.

* Draw a run's stored views through the proxy

Tested: drill client through the real proxy (9 pass).

* Admin run quality section and drill-down

Tested: pipeline-admin-ui (81 pass), typecheck, build and size check.

* E2E: admin drill-down on the local backend

Tested: 7 pass against the local backend.

* Map the drill-down; changelog entry

Not tested: prose only.

* Choose the forwarded cookie in the proxy

sessionCookieOf picks __Host-nemar_session, else the legacy cookie; empty or duplicated is no session. A 204 or 205 is relayed without a body. Tested: proxy and drill tests.

* Say views_skipped in the drill-down

Grouped by the panel's tab in the panel's words; links #600 for the shared drawView. Tested: drill tests.

* Give the state region its own label

Tested: e2e 7 pass on the local backend.

* Scan region labels and the route's cookie use

Tested: pipeline-admin-ui (86 pass).
* Share the floor's table readers

* Add the nemar.ic-activity.v1 transform

* Run the activity transform in the worker

* Let a viewer frame name its scale unit

* Draw activations on the panel's own tab

* Gate the Activations tab's size

* Pin the window's end and the store's recording

* ADR 0035: addendum for activations

* Fix a test cast the type check refused

* Record the owner's ruling on viewer chunks

* Gate fresh first views on the median of five

* Worker: activity steps, cancel, page-free checks

* Prepare activity tables before the store opens

* Keep focus on the activation window buttons

* ADR 0035: where activation checks run

* Pin that an inactive window button computes nothing

* Hand the panel's client to the activations

* Hand the admin drill-down's client to extras

* Cancel only activity steps still running

* ADR 0035: a newer window cancels too
* Add PNG text chunks with own CRC-32

* Add PNG, SVG and file exports of a view

* Offer a lazy Export toggle per view

* Gate the export chunks in the size check

* Test the export in a real browser

* Strengthen the export tests

* Offer export for views with stored files

* Split and wrap the exports' printed lines

* Print a heatmap's labels and legend in its PNG

* Keep focus on export buttons; canonical permalink

* Test the export review fixes

* ADR 0035: exports outside the first screen

* Split the map and heatmap parts into chunks

* Size-check and test the export's part chunks

* Test fractional room for heatmap labels

* Export the Activations window and inputs

* Check the Activations window is in its PNG

* Print the Activations notes in its PNG

* Test the notes and the Signal file prefetch

* Check the notes are painted in the PNG

* Print the notes once, not in the footer
* Quality views: share drawView, panel and admin

* Test the shared drawView's refusals

* E2E: panel and drill-down draw alike

* E2E parity spec: fix its types

* drawView unit test: fix its record ask

* drawView: one computed rule, private helpers

* Test drawView's mount and abort paths

* Guard: callers draw only via drawView

* E2E parity: check every canvas is painted

* Guard: read namespace imports and comments
* Add nemar.sensor-labels.v1 with vector replay

* Show sensor-labels refusals in one copy module

* Place quality-view maps by sensor name

* Place viewer scalp maps with sensor-labels

* Test the sensor-labels sentences are one copy

* Test 10-05 aliases on a 10-20 named BioSemi cap

* Port cap model and tolerance tests, count early

* Draw views when a montage cannot load

* Place viewer sensors when the map is shown

* Document sensor-labels in AGENTS and ADR 0035

* Keep the first screen under its size budget

* Place own positions at mount, names on show

* Label only reloadable montage failures

* Name the not-found error without a class
* Expect subject anatomy default in native-frame e2e

* Correct iEEG e2e comments and wait message

* Name both causes in subject surface wait message
* Changelog entries for the quality views epic

* Drop the geometry-store map line

* Correct the #511 notes in AGENTS and CLAUDE

* Delete the unused Phase 3 QualityPanel

* Prune the Phase 3 qa client to age-buckets.ts

* Move the bucketAgesBySex comment to its function

* Test the Demographics age chart's structure

* Correct the quality views changelog entries

* Retire the /qa/* notes in README and .context

* Format the age chart test

* Assert the age chart's stacking and other-only scale

* Fix changelog scalp-map wording and epic citation

* Drop a host path from the research notes
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

* Load sensor-labels sentences with the map

nemar.sensor-labels.v1's refusal sentences were in render/words.ts, so every panel first screen carried them. They now load with the scalp-map renderer only when a map placed by name was refused (mapSentences); montage_unavailable's sentence, shown when a lazy load fails, stays eager in its own one-copy module. Tested: quality-views render and sensor-labels tests.

* Place sensors by name in a lazy chunk

The half of placeSensors that runs nemar.sensor-labels.v1 (W2b) sat in model.ts, on every panel first screen. It moves to place-by-name.ts, loaded with the algorithm only for a map placed by name, step for step as before. Tested: quality-views models, presets, render and sensor-labels tests.

* Load refusal sentences under the placement guard

place-by-name.ts now loads sensor-labels-copy for a refusal through model.ts's loaded guard, so a copy that cannot be fetched leaves the maps montage_unavailable (with its reload hint) instead of a bare word, and mapSentences reads it from the module cache. sensor-labels-copy no longer re-exports montage_unavailable, so its chunk depends on none and the first screen keeps 18 files. Comments and the AGENTS.md file map name the new modules. Tested: bun run test, typecheck, lint, perf.

* Test placement chunks that fail to load

Browser checks on the spectrum's maps placed by name: drawn when placed, the sensor-labels sentence when refused, and montage_unavailable when place-by-name or sensor-labels-copy is aborted, the view still drawn. Each abort case fails with its guard removed. Tested: quality-panel and draw-parity specs, 41 passed.
* Find each measured chunk exactly once

The size gate took the first file in dist/_astro holding the panel's loading sentence, which the admin drill-down's chunk also holds, so macOS measured admin-drill and Linux the panel. namedChunk (quality-views-size-lib.mjs) now requires the chunk name prefix and the marker together, and every lookup in siteUnions (panel, tabs, export, island) fails the gate naming the matches unless exactly one chunk matches. Budgets and the measured sets are unchanged. Tested: test/quality-views-size.test.ts (fails 5 of 5 new cases on the old lookup) and the gate on a real build.

* Type the lookup test's chunks as a record

astro check refused indexing the literal chunk map by a string. Tested: bun run typecheck (0 errors), test/quality-views-size.test.ts.

* Test the names the size gate looks up

lookupStem and lookupIsland (quality-views-size-lib.mjs) hold the chunk-name prefix with its trailing dot, CHUNK_MARKERS and ISLAND_PREFIX, and siteUnions uses them. Tests cover panel beside panel-words, panel-model and panel-bridge, a panel chunk without its sentence, the export's chunks and the island; three fail with the trailing dot dropped. The test comment no longer ties the lookup order to an OS. Tested: quality-views-size tests (21), typecheck, lint.
* Copy quality-views vocabulary at neuroschema 0.6.1

* Point scalp-map untyped-row note at neuroschema#38
@neuromechanist
neuromechanist merged commit 9eae474 into staging Nov 27, 2026
4 checks passed
@neuromechanist
neuromechanist deleted the feature/issue-586-epic-pipeline-progress branch November 27, 2026 06:27
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