Context
Following @tobiu's Prio-0 Search Console directive under #20671, auditing sitemap-core.xml and apps/portal/resources/data/seo.json on origin/dev (537cfaf768b913371c8ec2f1ea009dc81182212c) shows that standalone {apps,examples}/**/index.html routes account for 154 of 324 (47.5%) core sitemap URLs, yet receive no curation filter beyond apps/portal/index.html and childapps? and zero seo.json metadata entries.
unowned-rationale: Prio-0 Search Console search-visibility work open for immediate maintainer swarm pickup; curated contributor labels omitted per ticket-create §4 urgent/critical rule.
The Problem
- Internal E2E witnesses and testbeds consume core crawl budget and
llms.txt:
- Verified on
origin/dev (537cfaf768b913371c8ec2f1ea009dc81182212c) via git ls-tree -r --name-only 537cfaf768 apps/ examples/ filtered to /index.html minus collectExampleRoutes's two exclusions (154routes total, matchingsitemap-core.xmloutput): internal harnessesexamples/dashboard/crossWindowWitness/index.html (#15065 Cross-Window Witness) and apps/ai/neural-link/index.html (Neo.mjs Neural Link Testbed) — both already ruled "not for the visitor catalog"in#21145— are advertised at priority0.8insitemap-core.xmlandllms.txt`.
- Meanwhile
#21142 is actively evaluating which remaining standalone demos stay vs retire in the Engine 14 slate (apps/route, apps/legit, apps/shareddialog, etc.), so collectExampleRoutes needs a clean opt-out / config hook rather than hardcoded blanket exclusions that collide with #21142.
- Duplicate
<title> tags across distinct sitemap-core.xml URLs:
- Parsing
<title> across all 154 {apps,examples}/**/index.html files on 537cfaf768b913371c8ec2f1ea009dc81182212c yields 151 unique titles because "Neo Tree" is duplicated 3× (examples/popover/index.html copy-paste title, examples/tree/index.html, examples/treeAccordion/index.html) and "Neo DateSelector" is duplicated 2× (examples/component/dateSelector/index.html, examples/date/selectorContainer/index.html).
- Zero
seo.json metadata entries for standalone examples/apps (0 / 154):
- Inspecting
JSON.parse of git show 537cfaf768:apps/portal/resources/data/seo.json (positive control: seo['/learn/benefits/Introduction'] present) returns 0 keys ending in /index.html.
- Consequently
neomjs/middleware-v2 SsrService.extractRouteMetadata falls back to bare source <title>s ("Neo Panels", "Neo Clock", "Conduit", "Neo Video", "Form", etc.), driving Search Console brand-collision queries (e.g. "neo x panel" hardware) instead of surfacing Web Worker / JavaScript UI context and curated name / feature / lookFor fields already present in apps/portal/resources/data/examples.json.
The Architectural Reality
- Design authority:
buildScripts/docs/seo/generate.mjs:31-32 — "Primary sitemap-core.xml and llms.txt outputs default to includeArchives = false, keeping crawl budget and LLM context windows focused on canonical documentation, blog posts, active release notes, examples, and apps."
buildScripts/docs/seo/seoJson.mjs:982-1007 (collectExampleRoutes): globs {apps,examples}/**/index.html and filters only file !== 'apps/portal/index.html' and !/(?:^|\/)childapps?(?:\/|$)/.test(file).
buildScripts/docs/seo/seoJson.mjs:1069-1331 (getSeoJson): builds seo.json for /, /home, /learn/*, /news/blog/*, /news/releases/*, and /examples/<family>, but never populates /examples/.../index.html or /apps/.../index.html (while line 1150 actively drops existing /examples/ keys on rebuild).
buildScripts/docs/seo/verify.mjs: checks duplicate <loc> entries in sitemap-core.xml, but does not check duplicate <title> strings or excluded testbed/witness paths.
- Downstream consumer
neomjs/middleware-v2 src/service/SsrService.mjs:382-394 preserves seoEntry.title / seoEntry.description from seo.json when present before falling back to index.html.
- Decision Record impact: none.
The Fix
- Exclude non-catalog harnesses in
collectExampleRoutes (buildScripts/docs/seo/seoJson.mjs):
- Exclude
#21145's confirmed non-catalog witnesses/testbeds (examples/dashboard/crossWindowWitness/index.html, apps/ai/neural-link/index.html) AND read an explicit opt-out signal (e.g. neo-config.json seo: false / excludeFromSitemap or explicit exclusion list) so #21142 retirements opt out cleanly at source without breaking standalone execution.
- Fix duplicate copy-paste HTML
<title> tags:
- Update
examples/popover/index.html (Neo Popover), examples/treeAccordion/index.html (Neo TreeAccordion), and examples/date/selectorContainer/index.html (Neo Date SelectorContainer) so all {apps,examples}/**/index.html source titles are distinct.
- Populate
seo.json metadata for every indexed {apps,examples}/**/index.html route in getSeoJson():
- Join indexed
collectExampleRoutes paths against apps/portal/resources/data/examples.json (environments.devmode / sourceUrl) to pull curated name, feature, and lookFor context, and qualify bare titles ("Neo <X>", "Conduit", etc.) with JavaScript UI / Web Worker / Multi-Window search-intent terms (<= 68 chars, preserving non-framework Application Engine framing). Also check apps/ key preservation in getSeoJson() line 1145-1157 so /apps/.../index.html keys are regenerated, not left stale or omitted.
- Harden
buildScripts/docs/seo/verify.mjs & unit specs:
- Assert
sitemap-core.xml contains zero testbed/witness exclusions (examples/dashboard/crossWindowWitness, apps/ai/neural-link) and zero duplicate <title> values across indexed standalone examples/apps. Add tests under test/playwright/unit/buildScripts/docs/seo/.
Acceptance Criteria
Out of Scope
- Deciding the
#21142 Engine 14 example slate (keep / renew / retire for user-facing demos like apps/route, apps/legit, apps/shareddialog, examples/preloadingAssets, examples/sitemap, etc.) or adding missing catalog records (#20694, #20695, #20696, #21145).
- Changing
SsrService.mjs in neomjs/middleware-v2 (once seo.json populates /examples/.../index.html and /apps/.../index.html, SsrService reads those entries directly).
Avoided Traps
- Unilaterally deleting
#21142 catalog candidates (apps/route, apps/legit, apps/shareddialog, apps/email, apps/finance, etc.) from sitemap-core.xml before Clio's #21142 slate rules on them: provide the source opt-out mechanism + testbed exclusions now, leaving catalog retirement decisions on #21142.
- Using
"JavaScript framework" in qualified example titles (AGENTS.md §neo_identity_anchor).
Related
Parent: #20671 · Related: #20498, #20917, #21116, #21140, #21142, #21145, neomjs/middleware-v2#62
Live latest-open + closed sweep: checked latest 20 open issues in neomjs/neo (#21168 down to #21050, 30 open total — orange band) + open search ("sitemap-core OR collectExampleRoutes OR crossWindowWitness", read #21142 and #21145 in full) + closed search ("collectExampleRoutes OR 20917 OR 20919 OR 21116", read #20917 and #21116 Out of Scope / Avoided Traps) at 2026-11-16T18:35Z; #21145 explicitly marks dashboard/crossWindowWitness and apps/ai/neural-link out of scope ("not for the visitor catalog") and no open ticket covers testbed filtering, duplicate HTML <title> tags, or seo.json entries for {apps,examples}/**/index.html.
A2A in-flight claim sweep: list_messages({ status: 'all', projection: 'compact', limit: 30 }) at 2026-11-16T18:35Z; no competing claims on collectExampleRoutes, duplicate example titles, or standalone example seo.json entries.
MC sweep: query_raw_memories({ query: 'sitemap-core testbed crossWindowWitness duplicate example title Neo Panels', nResults: 5 }), 5 results, no prior decision found.
Own-assignment sweep: 2 open in neomjs/neo (#20987, #20671), none overlapping at leaf level.
Structure-map: N/A (buildScripts/docs/seo/, examples/, test/).
Origin Session ID: 1f283c86-c55b-4aa5-a291-0cbb3786c302
Retrieval Hint: "collectExampleRoutes crossWindowWitness neural-link duplicate Neo Tree Neo DateSelector seo.json standalone examples"
Context
Following
@tobiu's Prio-0 Search Console directive under#20671, auditingsitemap-core.xmlandapps/portal/resources/data/seo.jsononorigin/dev(537cfaf768b913371c8ec2f1ea009dc81182212c) shows that standalone{apps,examples}/**/index.htmlroutes account for154of324(47.5%) core sitemap URLs, yet receive no curation filter beyondapps/portal/index.htmlandchildapps?and zeroseo.jsonmetadata entries.unowned-rationale: Prio-0 Search Console search-visibility work open for immediate maintainer swarm pickup; curated contributor labels omitted per ticket-create §4 urgent/critical rule.The Problem
llms.txt:origin/dev(537cfaf768b913371c8ec2f1ea009dc81182212c) viagit ls-tree -r --name-only 537cfaf768 apps/ examples/filtered to/index.html minuscollectExampleRoutes's two exclusions (154routes total, matchingsitemap-core.xmloutput): internal harnessesexamples/dashboard/crossWindowWitness/index.html() andapps/ai/neural-link/index.html() — both already ruled"not for the visitor catalog"in#21145— are advertised at priority0.8insitemap-core.xmlandllms.txt`.#21142is actively evaluating which remaining standalone demos stay vs retire in the Engine 14 slate (apps/route,apps/legit,apps/shareddialog, etc.), socollectExampleRoutesneeds a clean opt-out / config hook rather than hardcoded blanket exclusions that collide with#21142.<title>tags across distinctsitemap-core.xmlURLs:<title>across all154{apps,examples}/**/index.htmlfiles on537cfaf768b913371c8ec2f1ea009dc81182212cyields151unique titles because"Neo Tree"is duplicated3×(examples/popover/index.htmlcopy-paste title,examples/tree/index.html,examples/treeAccordion/index.html) and"Neo DateSelector"is duplicated2×(examples/component/dateSelector/index.html,examples/date/selectorContainer/index.html).seo.jsonmetadata entries for standalone examples/apps (0 / 154):JSON.parseofgit show 537cfaf768:apps/portal/resources/data/seo.json(positive control:seo['/learn/benefits/Introduction']present) returns0keys ending in/index.html.neomjs/middleware-v2SsrService.extractRouteMetadatafalls back to bare source<title>s ("Neo Panels","Neo Clock","Conduit","Neo Video","Form", etc.), driving Search Console brand-collision queries (e.g."neo x panel"hardware) instead of surfacing Web Worker / JavaScript UI context and curatedname/feature/lookForfields already present inapps/portal/resources/data/examples.json.The Architectural Reality
buildScripts/docs/seo/generate.mjs:31-32— "Primarysitemap-core.xmlandllms.txtoutputs default toincludeArchives = false, keeping crawl budget and LLM context windows focused on canonical documentation, blog posts, active release notes, examples, and apps."buildScripts/docs/seo/seoJson.mjs:982-1007(collectExampleRoutes): globs{apps,examples}/**/index.htmland filters onlyfile !== 'apps/portal/index.html'and!/(?:^|\/)childapps?(?:\/|$)/.test(file).buildScripts/docs/seo/seoJson.mjs:1069-1331(getSeoJson): buildsseo.jsonfor/,/home,/learn/*,/news/blog/*,/news/releases/*, and/examples/<family>, but never populates/examples/.../index.htmlor/apps/.../index.html(while line1150actively drops existing/examples/keys on rebuild).buildScripts/docs/seo/verify.mjs: checks duplicate<loc>entries insitemap-core.xml, but does not check duplicate<title>strings or excluded testbed/witness paths.neomjs/middleware-v2src/service/SsrService.mjs:382-394preservesseoEntry.title/seoEntry.descriptionfromseo.jsonwhen present before falling back toindex.html.The Fix
collectExampleRoutes(buildScripts/docs/seo/seoJson.mjs):#21145's confirmed non-catalog witnesses/testbeds (examples/dashboard/crossWindowWitness/index.html,apps/ai/neural-link/index.html) AND read an explicit opt-out signal (e.g.neo-config.jsonseo: false/excludeFromSitemapor explicit exclusion list) so#21142retirements opt out cleanly at source without breaking standalone execution.<title>tags:examples/popover/index.html(Neo Popover),examples/treeAccordion/index.html(Neo TreeAccordion), andexamples/date/selectorContainer/index.html(Neo Date SelectorContainer) so all{apps,examples}/**/index.htmlsource titles are distinct.seo.jsonmetadata for every indexed{apps,examples}/**/index.htmlroute ingetSeoJson():collectExampleRoutespaths againstapps/portal/resources/data/examples.json(environments.devmode/sourceUrl) to pull curatedname,feature, andlookForcontext, and qualify bare titles ("Neo <X>","Conduit", etc.) with JavaScript UI / Web Worker / Multi-Window search-intent terms (<= 68chars, preserving non-framework Application Engine framing). Also checkapps/key preservation ingetSeoJson()line1145-1157so/apps/.../index.htmlkeys are regenerated, not left stale or omitted.buildScripts/docs/seo/verify.mjs& unit specs:sitemap-core.xmlcontains zero testbed/witness exclusions (examples/dashboard/crossWindowWitness,apps/ai/neural-link) and zero duplicate<title>values across indexed standalone examples/apps. Add tests undertest/playwright/unit/buildScripts/docs/seo/.Acceptance Criteria
collectExampleRoutes(buildScripts/docs/seo/seoJson.mjs) excludesexamples/dashboard/crossWindowWitness/index.html,apps/ai/neural-link/index.html, and any standalone app/example flagged to opt out (neo-config.json), reducing sitemap crawl-budget waste without conflicting with#21142's pending catalog verdicts.{apps,examples}/**/index.htmlfiles carry unique source<title>tags (examples/popover/index.html,examples/treeAccordion/index.html,examples/date/selectorContainer/index.htmlfixed).getSeoJson()populatestitle,description, andlastmodinapps/portal/resources/data/seo.jsonfor every indexed/examples/.../index.htmland/apps/.../index.htmlroute (reusingexamples.jsonfeature/lookForwhen available and addingNeo.mjsWeb Worker / JavaScript UI search-intent context without"framework"category drift).node buildScripts/docs/seo/verify.mjsenforces zero excluded testbed paths and zero duplicate<title>values across indexed routes, and SEO unit specs +verify.mjspass cleanly.Out of Scope
#21142Engine 14 example slate (keep/renew/retirefor user-facing demos likeapps/route,apps/legit,apps/shareddialog,examples/preloadingAssets,examples/sitemap, etc.) or adding missing catalog records (#20694,#20695,#20696,#21145).SsrService.mjsinneomjs/middleware-v2(onceseo.jsonpopulates/examples/.../index.htmland/apps/.../index.html,SsrServicereads those entries directly).Avoided Traps
#21142catalog candidates (apps/route,apps/legit,apps/shareddialog,apps/email,apps/finance, etc.) fromsitemap-core.xmlbefore Clio's#21142slate rules on them: provide the source opt-out mechanism + testbed exclusions now, leaving catalog retirement decisions on#21142."JavaScript framework"in qualified example titles (AGENTS.md §neo_identity_anchor).Related
Parent: #20671 · Related:
#20498,#20917,#21116,#21140,#21142,#21145,neomjs/middleware-v2#62Live latest-open + closed sweep: checked latest 20 open issues in
neomjs/neo(#21168down to#21050,30open total — orange band) + open search ("sitemap-core OR collectExampleRoutes OR crossWindowWitness", read#21142and#21145in full) + closed search ("collectExampleRoutes OR 20917 OR 20919 OR 21116", read#20917and#21116Out of Scope/Avoided Traps) at2026-11-16T18:35Z;#21145explicitly marksdashboard/crossWindowWitnessandapps/ai/neural-linkout of scope ("not for the visitor catalog") and no open ticket covers testbed filtering, duplicate HTML<title>tags, orseo.jsonentries for{apps,examples}/**/index.html. A2A in-flight claim sweep:list_messages({ status: 'all', projection: 'compact', limit: 30 })at2026-11-16T18:35Z; no competing claims oncollectExampleRoutes, duplicate example titles, or standalone exampleseo.jsonentries. MC sweep:query_raw_memories({ query: 'sitemap-core testbed crossWindowWitness duplicate example title Neo Panels', nResults: 5 }), 5 results, no prior decision found. Own-assignment sweep:2open inneomjs/neo(#20987,#20671), none overlapping at leaf level. Structure-map: N/A (buildScripts/docs/seo/,examples/,test/).Origin Session ID: 1f283c86-c55b-4aa5-a291-0cbb3786c302 Retrieval Hint: "collectExampleRoutes crossWindowWitness neural-link duplicate Neo Tree Neo DateSelector seo.json standalone examples"