LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtNov 22, 2026, 1:33 PM
updatedAtNov 22, 2026, 7:50 PM
githubUrlhttps://github.com/neomjs/neo/issues/21933
authorneo-opus-vega
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 22, 2026, 7:50 PM

A landing cover and a tile are shot with their light partner

Closed v14.0.0/archive-v14-0-0-chunk-7 enhancementaibuildportal
neo-opus-vega
neo-opus-vega commented on Nov 22, 2026, 1:33 PM

Owned and urgent (the operator moved paired covers into Engine 14; the examples' lock is Mon 23 Nov 07:00 UTC), so no good first issue label.

Context

The operator, relayed by Emmy (A2A e0a35771, 11-22 12:30Z): a visitor who switches the Portal between Neo Light and Neo Dark sees each example card's opening frame in that theme, for cards already on screen and lazy-loaded ones. Emmy builds the Portal's render path; the producer is the capture tool of #21903 / PR #21908. Agreed naming (A2A 286f7bc3): devmode/<id>-<suffix>.jpg stays the dark cover, devmode/<id>-<suffix>-light.jpg is its light partner. No convention existed: nothing in apps/portal or src names a light or dark image today. Emmy then asked for the same pairing on the Workbench tiles (A2A 7fda2318); the tile camera lives in the same file, so it joins this ticket.

The Problem

#21908 captures a recipe-less record once, as the dark catalog opens it (?theme=neo-theme-neo-dark, dark colour scheme). The light partner needs the same frame in Neo Light. The tile camera crops each Workbench entry on its dark theme only. And an example that lacks the asked theme opens on another (Emmy's #21942 census: classic examples asked for Neo Light open dark), so a pass that trusts the link writes a frame of the wrong scheme under its name.

The Architectural Reality

  • buildScripts/docs/captureExamples.mjs (after #21908): validateCaptureRecipes adds a landing entry per covered record without a recipe; capture() writes devmode/<id>-<suffix>.jpg; landingUrl() sets ?theme=.
  • The 82 frozen recipes click and assert neo-theme-neo-dark, so they cannot shoot a light partner; a record gets one when it leaves the recipes.
  • captureTile() writes devmode/tiles/<id>-<suffix>.jpg with the workbench switched to its dark theme: neo-theme-neo-dark, else the legacy neo-theme-dark (the engine default offers only the legacy one). A theme can draw the component at another size, so a crop measured in one theme can cut the other.
  • ?theme= takes effect only where an example resolves it (src/util/Theme.mjs resolveStartTheme, #21835); elsewhere the example opens on its first configured theme. 23 of 82 covered examples lack a Neo theme in one scheme (A2A 1a8d32a7 to #21835's owner).

The Fix

Each landing record yields two entries, one per scheme in PAIR_THEMES: the dark pass asks for neo-theme-neo-dark and writes the base name, the light pass asks for neo-theme-neo-light and writes -light. Same viewport, same readiness, nothing per record. Each pass reads the theme its frame opened on and accepts the Neo or the legacy theme of its scheme; a frame of the other scheme fails, so no wrong-scheme cover and no copied "partner" is written. --record <id> captures both. The report names each file's opened theme.

A tile measures its component on the dark theme and again on the light one (neo-theme-neo-light, else the legacy neo-theme-light), then shoots both in one region: the union of both measurements, inside the stage area both themes show, so the pair lines up. It writes the pair only once both shots succeed, as devmode/tiles/<id>-<suffix>.jpg and …-light.jpg, one report row each. Nothing goes into the tile declarations.

Acceptance Criteria

  • AC-1: A recipe-less covered record validates to two landing entries, dark and light, with their links, accepted themes and file names (spec).
  • AC-2: --record <id> writes <id>-<suffix>.jpg in Neo Dark and <id>-<suffix>-light.jpg in Neo Light from one run (receipt: one real example, both frames).
  • AC-3: The README names the pair and that recipe covers have no light partner until their recipe goes.
  • AC-4: A tile's light pass takes the preferred light theme its workbench offers, and one region holds the component of both themes inside the stage both show (spec).
  • AC-5: --tile <path> writes <id>-<suffix>.jpg and <id>-<suffix>-light.jpg at one size from one run (receipt: two real tiles, both frames).
  • AC-6: A landing pass whose frame opens outside its scheme fails and writes nothing (receipt: a real example that opens on the other scheme's theme).

Out of Scope

The Portal's render path and its fallback for a missing light partner (Emmy); re-shooting the remaining recipe covers; making examples honour ?theme= (#21835).

Related

#21903, PR #21908 (the landing capture this extends), #21835 / PR #21907 (the catalog's ?theme=), #21140, #21942 (the backfill this producer feeds).

Live latest-open + closed sweep: latest open (#21932..#21927) + open search (light cover theme switch) + closed search (cover light dark pair: #21573, #21146, #20679 read, none pairs covers) at 2026-11-22T12:3xZ; no equivalent. A2A: Emmy's operator-direction note e0a35771, her handshake 60fb5b2a and her tile ask 7fda2318; she holds the render path. MC: none. Own open assignments: #21903 (its prerequisite).

Origin Session ID: 54c2c0f3-a035-4e41-8425-cd6d2d5abb0b Retrieval Hint: query_raw_memories("paired light dark example covers landing capture -light suffix")