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
- 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.
- 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
- 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.
- 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
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"
Parent: #20671 · surfaced by: #20689 Round-1 review (
5836208814by@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-specifictitle,description, andschemaTypeentries intoapps/portal/resources/data/seo.jsonand wiresPortal.service.Seo+Neo.main.addon.DocumentHead#updateso the browser shell updates<title>,<meta name="description">,<link rel="canonical">, Open Graph tags, anddata-schema-name="neo-route"application/ld+jsonon route change.As
@neo-fable-clioverified in#20689review5836208814, crawler snapshots served byneomjs/middleware-v2(SsrService#buildHeadInjection) do not runPortal.service.SeoorNeo.main.addon.DocumentHead: the middleware builds the<head>of a crawler snapshot from the rendered markdown/route andindex.html. Consequently, after#20689merges, 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 fromseo.json), anddata-schema-name="neo-route"(TechArticle/BlogPosting+BreadcrumbListJSON-LD) exists in the browser shell only — not in the crawler snapshot that Googlebot and coding agents receive.24open total, green band< 25:#20699..#20670) and 10 latest closed issues inneomjs/neoat2026-11-10T03:17:08Z; no existing ticket owns wiring the crawler snapshot builder toapps/portal/resources/data/seo.json.list_messages({status: 'all', limit: 30})at2026-11-10T03:15:37Z; surfaced by@neo-fable-clioinMESSAGE:3a1d4859-a172-4958-8672-6f5daaaa3bc5(RA-4on#20689).query_raw_memories("middleware-v2 SsrService buildHeadInjection seo.json neo-route ld+json")and own open issues under#20671(#20688).neomjs/middleware-v2SSR head builder).unowned-rationale: Ready for self-selection under #20671 once #20689 merges.The Problem
SsrService#buildHeadInjectioninneomjs/middleware-v2constructs<title>and<meta name="description">with its own rules rather than readingapps/portal/resources/data/seo.json, so the browser shell (Portal.service.Seo) and the crawler snapshot disagree on route titles and descriptions.data-schema-name="neo-route"JSON-LD in crawler snapshots:Portal.service.SeoinjectsTechArticle/BlogPostingandBreadcrumbListJSON-LD viaDocumentHead#updatein the browser, butSsrService#buildHeadInjectionnever runsPortal.service.Seo, leaving crawler snapshots without route-specificapplication/ld+json(Search Console's 3-month baseline recorded on#20671shows0rich results).The Architectural Reality
apps/portal/resources/data/seo.jsonis the published route metadata table (#20688/#20689): Deployed toneomjs/pagesat/apps/portal/resources/data/seo.json(and/dist/production/apps/portal/resources/data/seo.json) and refreshed bybuildScripts/docs/rebuildContentIndexesAndSeo.mjs.SsrService#buildHeadInjection(neomjs/middleware-v2): Assembles the<head>tags injected intoindex.htmlfor crawler and agent requests (Googlebot,claudebot,gptbot,curl, etc.).The Fix
<head>builder (SsrService#buildHeadInjectioninneomjs/middleware-v2) to readapps/portal/resources/data/seo.jsonfor matching routes so both the crawler snapshot andPortal.service.Seoserve the same<title>,<meta name="description">,<link rel="canonical">, and Open Graph tags.<script type="application/ld+json" data-schema-name="neo-route">(TechArticle/BlogPosting+BreadcrumbListmatchingPortal.service.Seo#buildRouteLdJson) in the crawler snapshot alongside the existingdata-schema-name="neo-organism"script whenseo.jsonholds an exact entry for the requested route.Acceptance Criteria
/learn/*,/news/blog/*,/news/releases/*, and curated top-level routes inapps/portal/resources/data/seo.jsonserve the same<title>,<meta name="description">, and<link rel="canonical">asPortal.service.Seoin the browser.seo.jsoninclude<script type="application/ld+json" data-schema-name="neo-route">carrying the route's schema (TechArticle/BlogPosting/WebPage+BreadcrumbList) while preservingdata-schema-name="neo-organism".buildHeadInjectionagainstseo.jsonentries and fallback routes.Out of Scope
Portal.service.Seo,Neo.main.addon.DocumentHead#update, andbuildScripts/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"