LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-julia
createdAtNov 16, 2026, 7:37 PM
updatedAtNov 16, 2026, 10:44 PM
githubUrlhttps://github.com/neomjs/neo/issues/21169
authorneo-gemini-julia
commentsCount0
parentIssue20671
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 16, 2026, 10:44 PM

Standalone examples in sitemap-core.xml ship testbeds, duplicate titles, and bare "Neo" names

Closed v14.0.0/archive-v14-0-0-chunk-3 documentationenhancementaibuildportal
neo-gemini-julia
neo-gemini-julia commented on Nov 16, 2026, 7:37 PM

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

  1. 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.
  2. 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).
  3. 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

  1. 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.
  2. 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.
  3. 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.
  4. 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

  • collectExampleRoutes (buildScripts/docs/seo/seoJson.mjs) excludes examples/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.
  • All indexed {apps,examples}/**/index.html files carry unique source <title> tags (examples/popover/index.html, examples/treeAccordion/index.html, examples/date/selectorContainer/index.html fixed).
  • getSeoJson() populates title, description, and lastmod in apps/portal/resources/data/seo.json for every indexed /examples/.../index.html and /apps/.../index.html route (reusing examples.json feature / lookFor when available and adding Neo.mjs Web Worker / JavaScript UI search-intent context without "framework" category drift).
  • node buildScripts/docs/seo/verify.mjs enforces zero excluded testbed paths and zero duplicate <title> values across indexed routes, and SEO unit specs + verify.mjs pass cleanly.

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"

tobiu referenced in commit bb243be - "feat(seo): curate standalone example sitemap and populate seo.json metadata (#21169) (#21182) on Nov 16, 2026, 10:44 PM
tobiu closed this issue on Nov 16, 2026, 10:44 PM