LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtNov 20, 2026, 1:02 AM
updatedAtNov 22, 2026, 2:48 PM
githubUrlhttps://github.com/neomjs/neo/issues/21539
authorneo-opus-vega
commentsCount8
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[x] 21881 State & Data shows the todo list every evaluator compares, [x] 21889 Calendar shows a second demonstration: a year at a glance, [x] 21877 Heavy work off the UI: a task-worker job with its progress on the page
closedAtNov 22, 2026, 2:48 PM

Examples PRs collide on three shared catalog data files

Closed v14.0.0/archive-v14-0-0-chunk-5 enhancementaibuildportal
neo-opus-vega
neo-opus-vega commented on Nov 20, 2026, 1:02 AM

Context

On 19 Nov five open examples PRs touched the same catalog files: #21524 (examples.json, example-captures.json, seo.json and the catalog spec), #21522 (example-captures.json), #21515 (examples.json, the spec), #21479 and #21450 (all four). Between 17 and 19 Nov, 45 commits on dev touched examples.json. Each merge made the others conflict, each author merged dev in again, each push re-ran the full CI (about 30 jobs on the org's 20 runners), and the next merge started over. The operator: "i merge one, 4 go stale again. in parallel new PRs get in. cycle continues."

The Problem

A PR that adds or renews one group's examples edits files that every other group's PR edits too: one array of all records (examples.json), one families line plus one recipe array (example-captures.json), and the generated seo.json, which examples PRs commit. #21523 already gives the catalog spec's count table one group per line, so only neighbouring groups collide there (98 → 20 of 210 group pairs). The three data files are still one shared surface, so different records in one file still conflict textually.

The Architectural Reality

Design authority: n/a. This changes where the data lives, not what the catalog, the captures or the SEO output contain.

  • apps/portal/resources/data/examples.json is read by apps/portal/view/examples/MainContainer.mjs, buildScripts/docs/captureExamples.mjs, buildScripts/docs/seo/generate.mjs with seoJson.mjs, and buildScripts/util/moveDataTransforms.mjs.
  • apps/portal/resources/data/example-captures.json is read by buildScripts/docs/captureExamples.mjs.
  • apps/portal/resources/data/seo.json is read by Portal.service.Seo (apps/portal/service/Seo.mjs), written by buildScripts/docs/seo/generate.mjs (also through rebuildContentIndexesAndSeo.mjs) and checked by buildScripts/docs/seo/verify.mjs.
  • test/playwright/unit/apps/portal/view/examples/MainContainerController.spec.mjs keeps one count literal per group (#21484) on one line per group (#21523), plus one recordCount.

The Fix

A direction; the PR settles the exact layout:

  • Records per group (for example apps/portal/resources/data/examples/<group>.json), concatenated in group order by one loader that the Portal and the build scripts share.
  • Capture recipes per family beside them — dropped 11-22: the operator called the recipes (per-example DOM selectors, steps and sizes) "NOT neo best practices"; they are frozen as dev has them, and covers move to each example's landing frame (#21903). An examples PR adds no recipe, so the recipe file stops colliding without a split.
  • Examples PRs stop committing seo.json: it is generated where it is consumed (the build or the data-sync pipeline), or split per group like the records.

Acceptance Criteria

  • AC-1: #21520's pairwise rehearsal, extended to one throwaway commit per catalog group file that adds a record (no recipe: frozen; no SEO entry: prepare regenerates seo.json at the cut), merges every cross-group pair with git merge-tree and reports 0 conflicting pairs; the same records appended to the shared pre-split array conflict (control).
  • AC-2: The Portal's catalog records and their order, the capture plan, and the generated SEO routes are identical before and after the split.
  • AC-3: An examples PR for one group edits no file that another group's PR edits, apart from the catalog spec's recordCount unless that derives from the data too.

Out of Scope

  • What any record, recipe or SEO entry says.
  • The catalog's views.

Contract Ledger

What #21856 keeps and changes, against dev at c916b512ee (Sophie's review asked for it on this ticket).

Surface Before After Kept or changed
Catalog records one array, examples.json examples/<group>.json; index.json names the groups; each record's order places it Kept: the 147 records, in their order
Catalog Store load one URL through the Store's default pipeline: 1 request Portal.connection.ExampleCatalog reads index.json, then the 19 group files in parallel (Promise.all); Store.load runs around it: 20 requests, one extra round trip, the same bytes Kept: pending and loading state, the count and the load event, the destroyed rejection. Changed: the request count; a generated single file would bring it back to 1 at the cost of a build step and a second artifact, so it is built only if the measured #/examples load is worse than one round trip
Build reader examples.json read in seoJson, captureExamples and the specs readExampleCatalog() in buildScripts/util/exampleCatalog.mjs, the same order rule Kept: the same records, in their order
Capture recipes, tiles, capture order example-captures.json unchanged: dev's file, frozen; captureExamples reads the catalog through readExampleCatalog() Kept; their replacement is #21903
seo.json committed by examples PRs regenerated by prepare at the cut (#21809) Changed: an examples PR leaves it alone
Authoring an example edit the shared files the group's catalog file (the record and its order); no recipe New

Related

#21520 (count table, one group per line), #21484, #21367, #21140. Filed alongside: the merge queue for dev, the Fleet's rebase wakes in merge order, and CI runner contention.

Live latest-open + closed sweep: latest 20 open in neo (#21535..#21371) and in neo-agent-brain (#1863..#1715), plus title searches (examples.json conflict, merge queue, stale pull requests rebase, catalog data split, runner queue, e2e shards; Brain: rebase, merge order, merge queue, stale, runner, workflow, lint job) at 2026-11-19T23:58:14Z; no equivalent. The closed shard tickets (#21287, #21259, #20521) size e2e shards to a time ceiling and exclude nothing here. Backlog band: 65 open (red); this files beside the examples epic #21367, the lane that produces the collisions. A2A claim sweep: latest 30 messages in all read-states, newest 23:58:02Z; no claim on these files. MC sweep: "stale PR cascade … merge queue … runner slots", 6 results: rebases and an oldest-first merge proposal (18 Oct), no decision on the data layout. Own-assignment sweep: none of my open tickets touches these files.

Origin Session ID: 4aafd3cc-5d2f-4874-9b04-6e4634ab6378

Retrieval Hint: "examples PRs collide on examples.json, example-captures.json, seo.json: split the catalog data per group"

tobiu referenced in commit e0c0717 - "refactor(examples): the catalog and its capture recipes live in one file per group (#21539) (#21856) on Nov 22, 2026, 2:48 PM
tobiu closed this issue on Nov 22, 2026, 2:48 PM