Skip to content

IS-QA1: validate the iEEG panel on real datasets - #558

Merged
neuromechanist merged 7 commits into
feature/issue-537-epic-spatialfrom
feat/is-qa1-validation
Nov 18, 2026
Merged

neuromechanist merged 7 commits into
feature/issue-537-epic-spatialfrom
feat/is-qa1-validation

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Card IS-QA1 of the iEEG spatial view plan (the intracranial track of epic #537, ADR 0033). Part of #537.

What changed

  • e2e/ieeg-spatial-validation.spec.ts (new, 26 tests): validates the Brain panel on real public datasets in headless Chromium and measures the plan's budgets.
    Template frames (nm000454, on005522, on004100, nm000485, nm000376), native frames (on005415, on004473: name joins, verbatim recorded location including exponent notation, never placed on a template), refusals (nm000537, on004642, nm000377, on004624), an EEG dataset (on009081), exports on a template frame (nm000485), light and dark with measured contrast, keyboard only, 360 px, WebGL disabled by launch flags, and the budgets.
  • .context/research-ieeg-spatial-validation.md (new): the note with what each dataset showed, every budget as measured, findings and what was not run.
  • No product code changed; defects are patch notes below.

Gates

  • bun install --frozen-lockfile: Checked 416 installs across 568 packages (no changes)
  • bun run typecheck: Result (518 files): 0 errors, 0 warnings, 19 hints
  • bun run lint: Checked 446 files in 215ms. No fixes applied.
  • Leak check on the note and the spec: all three commands print nothing.
  • Full validation run on the final tree (Chromium 148.0.7778.96, PUBLIC_DATA_BASE_URL=https://data.nemar.org, one worker): 24 passed, 2 failed (16.0m). The two failures were a data plane or network outage (the on005415 first-contacts test waited 10 minutes; the long-task test failed in 4.3 s on the embed page). Rerun: first contacts on005415 passed. The long-task test failed on its budget, see below.
  • Mutation checks (one product line each, test failed, reverted, tree clean): recorded line parsed to a number (on004473), whitespace rule disabled (on004473), Talairach label reworded (nm000485), credit address changed (light theme), Escape focus removed (keyboard), stacking threshold lowered (360 px), template placement for native frames (on005415), no_coordinates sentence reworded (nm000537). Two tests were first self-referential (they read the expected value from the code under test) and now state the credit address and the refusal sentences literally.

Budgets (measured; Chromium 148.0.7778.96)

  • Panel code beyond the viewer chunk at the epic base (517bfee), gzip -9: panel chunk 36,109 bytes plus viewer growth 1,432 bytes = 37,541 bytes, limit 65,536. Met.
  • Template mesh transferred: 532,862 bytes as served (no content encoding), limit 600,000; gzip level 9 430,133, brotli 371,040 from a local stand-in server. Met. The deployed host's encoding for .bin files was not read.
  • First contacts after opening the panel, warm cache: 16 to 55 ms (limit 1,500 ms) on on005522, nm000485, on005415. Met.
  • Long task while Activity recomputes a 10 s window of 136 channels (nm000485), limit 200 ms: no long task over 50 ms while the Zarr route was fast (7 runs; the scope's own window step is 187 to 194 ms, 190 to 209 ms with Activity off). While the Zarr route was slow (reads of 38 to 66 s; 7 runs) the recompute showed one task of 212 to 233 ms. Missed by 6 to 17 percent in that regime, far from the 50 percent stop condition; the lead decides.

Deviations

  • The card lists seven datasets; the suite adds the datasets the manager named (nm000485, nm000376, on004473, on004642, on004624, on009081) and the checks above.
  • The long-task test measures the scope's own window step with Activity off as a baseline and lets the combined step exceed 200 ms by at most 50 ms over that baseline; the recompute alone is held strictly to 200 ms.
  • No pointer to the note was added to .context/research.md (outside the card's scope).
  • The data plane is intermittently slow or answers 500: the suite reloads the embed page and presses Retry as a reader would, and counts both; the note says which runs met trouble.

Patch notes for the owning cards (nothing fixed here)

  • IS-V1 and IS-J1: nm000377 and on004624 (no channel joins) get a disabled toggle with one sentence and no channel names anywhere; the unlocated-channel note lives in the panel, which cannot open.
  • IS-V1 and IS-V2: on004100 declares m for millimeter-sized numbers; contacts land about 17 m out, none is visible, and the warning is only in a note below the canvas.
  • Viewer: one window step at 136 channels is a long task of 187 to 209 ms with Activity off.
  • Platform (Zarr converter owner): in on005415, on004551, on005007, on004473 and on006136 the store's channel label differs from the dataset's channels.tsv name; writing the BIDS name would remove the need for the IS-J1 name rules.
  • Platform (data plane): the Zarr route answered the same small request in 0.4 s and in 12 s within a minute; Activity on nm000485 took 0.4 s in one hour and 38 to 66 s in another; the toggle said "checking" for over a minute on some loads.
  • Unexplained: the page stopped answering at the "2D views" click three times in about 16 runs of the export test (not reproduced in 12 plain-script repeats).

Not run, would check

  • Firefox and Safari: the same suite in WebKit and Firefox, because only Chromium is installed for Playwright here.
  • Staging xx099902 (E2E_BASE_URL=https://test.nemar.org): the manager's, after the owner merges the epic into staging.
  • content-encoding and transferSize of lh.mesh.bin on the deployed site, because the compressed numbers come from a local stand-in server.
  • CI on the final head, because it does not run this suite and the manager reads gh pr checks.

Card: IS-QA1.

@cloudflare-workers-and-pages

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

Copy link
Copy Markdown

Deploying nemar-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: baa6b48
Status: ✅  Deploy successful!
Preview URL: https://c6ab4dd5.nemar-website.pages.dev
Branch Preview URL: https://feat-is-qa1-validation.nemar-website.pages.dev

View logs

@neuromechanist
neuromechanist merged commit ec75559 into feature/issue-537-epic-spatial Nov 18, 2026
5 checks passed
@neuromechanist
neuromechanist deleted the feat/is-qa1-validation branch November 18, 2026 19:02
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