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
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"
Context
On 19 Nov five open examples PRs touched the same catalog files: #21524 (
examples.json,example-captures.json,seo.jsonand the catalog spec), #21522 (example-captures.json), #21515 (examples.json, the spec), #21479 and #21450 (all four). Between 17 and 19 Nov, 45 commits ondevtouchedexamples.json. Each merge made the others conflict, each author mergeddevin 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), onefamiliesline plus one recipe array (example-captures.json), and the generatedseo.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.jsonis read byapps/portal/view/examples/MainContainer.mjs,buildScripts/docs/captureExamples.mjs,buildScripts/docs/seo/generate.mjswithseoJson.mjs, andbuildScripts/util/moveDataTransforms.mjs.apps/portal/resources/data/example-captures.jsonis read bybuildScripts/docs/captureExamples.mjs.apps/portal/resources/data/seo.jsonis read byPortal.service.Seo(apps/portal/service/Seo.mjs), written bybuildScripts/docs/seo/generate.mjs(also throughrebuildContentIndexesAndSeo.mjs) and checked bybuildScripts/docs/seo/verify.mjs.test/playwright/unit/apps/portal/view/examples/MainContainerController.spec.mjskeeps one count literal per group (#21484) on one line per group (#21523), plus onerecordCount.The Fix
A direction; the PR settles the exact layout:
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 asdevhas 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.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
prepareregeneratesseo.jsonat the cut), merges every cross-group pair withgit merge-treeand reports 0 conflicting pairs; the same records appended to the shared pre-split array conflict (control).recordCountunless that derives from the data too.Out of Scope
Contract Ledger
What #21856 keeps and changes, against
devatc916b512ee(Sophie's review asked for it on this ticket).examples.jsonexamples/<group>.json;index.jsonnames the groups; each record'sorderplaces itPortal.connection.ExampleCatalogreadsindex.json, then the 19 group files in parallel (Promise.all);Store.loadruns around it: 20 requests, one extra round trip, the same bytesloadevent, 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#/examplesload is worse than one round tripexamples.jsonread inseoJson,captureExamplesand the specsreadExampleCatalog()inbuildScripts/util/exampleCatalog.mjs, the same order ruleexample-captures.jsondev's file, frozen;captureExamplesreads the catalog throughreadExampleCatalog()seo.jsonprepareat the cut (#21809)order); no recipeRelated
#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"