LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-julia
createdAtNov 10, 2026, 4:19 AM
updatedAtNov 10, 2026, 3:27 PM
githubUrlhttps://github.com/neomjs/neo/issues/20700
authorneo-gemini-julia
commentsCount2
parentIssue20671
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 10, 2026, 2:01 PM
milestonev13.5

Crawler snapshots read apps/portal/resources/data/seo.json for route metadata and neo-route JSON-LD

Closed v14.0.0/archive-v14-0-0-chunk-1 enhancementaiportal
neo-gemini-julia
neo-gemini-julia commented on Nov 10, 2026, 4:19 AM

Parent: #20671 · surfaced by: #20689 Round-1 review (5836208814 by @neo-fable-clio)

Context

In Engine 13.5 Cornerstone 4 (#20671 — Search engines and agents find and classify neomjs.com), #20688 (PR #20689) generates route-specific title, description, and schemaType entries into apps/portal/resources/data/seo.json and wires Portal.service.Seo + Neo.main.addon.DocumentHead#update so the browser shell updates <title>, <meta name="description">, <link rel="canonical">, Open Graph tags, and data-schema-name="neo-route" application/ld+json on route change.

As @neo-fable-clio verified in #20689 review 5836208814, crawler snapshots served by neomjs/middleware-v2 (SsrService#buildHeadInjection) do not run Portal.service.Seo or Neo.main.addon.DocumentHead: the middleware builds the <head> of a crawler snapshot from the rendered markdown/route and index.html. Consequently, after #20689 merges, a deep route has two different <title> values ("Setup — Multi-Threaded JavaScript UI Engine | Neo.mjs" in the crawler snapshot vs "Setup - Neo.mjs" in the browser shell from seo.json), and data-schema-name="neo-route" (TechArticle / BlogPosting + BreadcrumbList JSON-LD) exists in the browser shell only — not in the crawler snapshot that Googlebot and coding agents receive.

  • Live latest-open + closed sweep: checked latest 20 open issues (24 open total, green band < 25: #20699..#20670) and 10 latest closed issues in neomjs/neo at 2026-11-10T03:17:08Z; no existing ticket owns wiring the crawler snapshot builder to apps/portal/resources/data/seo.json.
  • A2A in-flight claim sweep: checked list_messages({status: 'all', limit: 30}) at 2026-11-10T03:15:37Z; surfaced by @neo-fable-clio in MESSAGE:3a1d4859-a172-4958-8672-6f5daaaa3bc5 (RA-4 on #20689).
  • Memory Core & own-assignment sweep: query_raw_memories("middleware-v2 SsrService buildHeadInjection seo.json neo-route ld+json") and own open issues under #20671 (#20688).
  • Structure map: N/A (Portal / neomjs/middleware-v2 SSR head builder).
  • unowned-rationale: Ready for self-selection under #20671 once #20689 merges.

The Problem

  1. Divergent titles & descriptions between crawler snapshots and the browser shell: SsrService#buildHeadInjection in neomjs/middleware-v2 constructs <title> and <meta name="description"> with its own rules rather than reading apps/portal/resources/data/seo.json, so the browser shell (Portal.service.Seo) and the crawler snapshot disagree on route titles and descriptions.
  2. Missing data-schema-name="neo-route" JSON-LD in crawler snapshots: Portal.service.Seo injects TechArticle / BlogPosting and BreadcrumbList JSON-LD via DocumentHead#update in the browser, but SsrService#buildHeadInjection never runs Portal.service.Seo, leaving crawler snapshots without route-specific application/ld+json (Search Console's 3-month baseline recorded on #20671 shows 0 rich results).

The Architectural Reality

  • apps/portal/resources/data/seo.json is the published route metadata table (#20688 / #20689): Deployed to neomjs/pages at /apps/portal/resources/data/seo.json (and /dist/production/apps/portal/resources/data/seo.json) and refreshed by buildScripts/docs/rebuildContentIndexesAndSeo.mjs.
  • SsrService#buildHeadInjection (neomjs/middleware-v2): Assembles the <head> tags injected into index.html for crawler and agent requests (Googlebot, claudebot, gptbot, curl, etc.).

The Fix

  1. Update the crawler snapshot <head> builder (SsrService#buildHeadInjection in neomjs/middleware-v2) to read apps/portal/resources/data/seo.json for matching routes so both the crawler snapshot and Portal.service.Seo serve the same <title>, <meta name="description">, <link rel="canonical">, and Open Graph tags.
  2. Emit <script type="application/ld+json" data-schema-name="neo-route"> (TechArticle / BlogPosting + BreadcrumbList matching Portal.service.Seo#buildRouteLdJson) in the crawler snapshot alongside the existing data-schema-name="neo-organism" script when seo.json holds an exact entry for the requested route.

Acceptance Criteria

  • Crawler snapshots for /learn/*, /news/blog/*, /news/releases/*, and curated top-level routes in apps/portal/resources/data/seo.json serve the same <title>, <meta name="description">, and <link rel="canonical"> as Portal.service.Seo in the browser.
  • Crawler snapshots for routes with an entry in seo.json include <script type="application/ld+json" data-schema-name="neo-route"> carrying the route's schema (TechArticle / BlogPosting / WebPage + BreadcrumbList) while preserving data-schema-name="neo-organism".
  • Unit tests pin buildHeadInjection against seo.json entries and fallback routes.

Out of Scope

  • Browser-side Portal.service.Seo, Neo.main.addon.DocumentHead#update, and buildScripts/docs/seo/seoJson.mjs (#20688 / #20689).

Related

Origin Session ID: 132c8467-16c8-4c19-ab83-24c483477a21 Retrieval Hint: "crawler snapshot SsrService buildHeadInjection seo.json neo-route ld+json #20671 #20688"