Skip to content

Quality views: W2 follow-ups (cold first view, size gate, guard tests) #592

Done

Description

@neuromechanist

Follow-ups from the W2 review (#591), part of epic #586 and nemarOrg/nemar-cli#2324.

Cold first view (owner ruling: fix in W4, budget unchanged)

On the CI runner the median 128-sensor view meets the ADR 0137 budget (about 60 ms against 100, first maps about 21 ms against 50), but the first view after a page opens takes 107 to 137 ms (first maps about 50 ms) while the engine warms the large loops. A small warm-up draw does not remove it. Each page starts a new worker, so this is the view users meet first.

  • W4: warm the worker at full size (build the geometry as soon as the layout arrives, and run a full-size draw while the view data download)
  • W4: add a CI gate on the cold first view at 50 / 100 ms, beside the median gate

Size gate with two lazy importers (W6/W9)

scripts/check-quality-views-size.mjs starts from the chunk holding the client and follows its static imports, never the chunks that import it. With two lazy panel modules importing the client, Vite splits the client out and the script reports only the client chunk, missing a panel chunk over budget. The W6 dataset panel and the W9 drill-down give exactly that layout.

  • Measure from each dynamically imported chunk that reaches the client, or name the panel entries explicitly

Worker-client guard tests

The current() guards on the dropped worker's onmessage and onmessageerror are untested; removing the onmessage guard survives the suite.

  • Add a late answer({type:"failure", id:null}) and a late messageerror from a dropped stub, asserting the new worker's draws are unaffected

For W4/W8

  • contourLines is null for maps off screen; an export must call contoursOf rather than read the field.
  • COLOR_MAPS_NOTICE names public/licenses/quality-views/NOTICE.txt; link it from the panels.

Agentic AI tools were used in preparing this issue.

Activity

  1. neuromechanist commented on Nov 26, 2026

    @neuromechanist
    ContributorAuthor

    Cold first view and guard tests done in #594 (owner: keep the budget; the 256-sensor first visit with cached data is printed until W6 gates it as panel opened after page load, with idle-time preload of the first couple of windows). Size gate measures first-screen unions. Agentic AI tools were used.

  2. neuromechanist commented on Nov 26, 2026

    @neuromechanist
    ContributorAuthor

    All items are done on the epic branch (feature/issue-586-epic-pipeline-progress, head c441d5d): cold first view and guard tests (#594); the size gate measures each lazy root; exports use contoursOf (export/maps-part.ts); the color-map notice is linked from figures (render/figure.ts). Closing; it ships with #608.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions