Context
Google Search Console (sc-domain:neomjs.com, inspected 2026-11-14) shows 181 of 471 routes (38.4%) in sitemap-core.xml stuck in Discovered - currently not indexed (Last crawled: N/A) — including 7/7 (/learn/comparisons/*), 9/9 (/learn/gettingstarted/*), 6/6 (/learn/tutorials/*), 44/57 (/learn/guides/*), and 14/20 technical /news/blog/* articles — while 122 historical v8–v12 release notes occupy 51.3% of the 238 indexed core pages.
Ownership: self-assigned to @neo-gemini-julia as Steward of #20671 (good first issue / help wanted omitted: active urgent Engine v14 crawl-unblock lane).
The Problem
Three compounding defects in buildScripts/docs/seo/generate.mjs and buildScripts/docs/seo/seoJson.mjs (neomjs/neo origin/dev @ a07f581f13, deployed in neomjs/pages @ b0014738a6) starve crawl budget on neomjs.com:
sitemap.xml submits 20,002 noindex URLs (98.2% of sitemap-archive.xml): middleware-v2#48 added X-Robots-Tag: noindex, follow to /news/tickets/* and /news/pulls/*, yet generate.mjs:742-744,779-781,1044-1049 still bundles 12,759 ticket routes and 7,243 PR routes alongside 365 indexable /news/discussions/* routes inside sitemap-archive.xml and links sitemap-archive.xml from sitemap.xml because middleware-v2/src/build.mjs:413-424 (fetchDynamicRoutes) consumes sitemap.xml as its SSG build manifest.
- Zero
<lastmod> tags in neomjs/pages/sitemap-core.xml (0 of 480 <url> entries): generate.mjs:241,378 (hasReliableGitHistory) returns false when neomjs/pages/buildScripts/enhanceSeo.mjs executes inside node_modules/neo.mjs (npm tarball without .git), dropping all <lastmod> elements.
sitemap-core.xml bloat and canonical mismatches:
- Emits
/home (TOP_LEVEL_ROUTES) instead of / even though /home canonicalizes to https://neomjs.com/, and includes /apps/portal/index.html (generate.mjs:543).
- Emits
4 hidden: true learn/tree.json entries (guides/specificfeatures/MultiWindow, guides/specificfeatures/TearOutPortabilityMatrix, guides/specificfeatures/Mixins, tutorials/RSP) and 5 <500 B type: redirect moved-ADR stubs (0020, 0032, 0034, 0037, 0038).
- Emits all
172 /news/releases/* notes (v8.1.0–v13.4.0), relying on <priority> decay (RELEASE_PRIORITY_BY_DELTA) which Google's sitemap parser ignores.
apps/portal/resources/data/seo.json on origin/dev @ a07f581f13 is missing /news/blog/json-ld-xss-json-stringify-in-a-script-tag (present in blog.json).
Instrument receipts (origin/dev @ a07f581f13 & neomjs/pages @ b0014738a6):
neomjs/pages/sitemap-archive.xml (b0014738a6, regex <loc> count by prefix): 20,367 <url>s (12,759 /news/tickets/*, 7,243 /news/pulls/*, 365 /news/discussions/*), 0 <lastmod> tags in neomjs/pages/sitemap-core.xml (480 <loc>s; positive control: <loc> matches 480).
origin/dev @ a07f581f13 learn/tree.json (JSON.parse filter n.hidden === true): 4 nodes (MultiWindow, TearOutPortabilityMatrix, Mixins, RSP); learn/agentos/decisions/*.md frontmatter type: redirect: 5 files (0020–0038).
The Architectural Reality
Design authority: "Recency-tiered priority for /news/releases/ routes, indexed by delta from the newest release-note major... so the sitemap <priority> stays a useful crawl-budget hint instead of a flat wall of release notes." (buildScripts/docs/seo/generate.mjs:140-144, 132-134). Google Search documentation specifies that Google ignores <priority> and <changefreq> while consuming <lastmod>; relying on <priority> left 122 historical patch notes dominating sitemap-core.xml indexing while 0 <lastmod> tags survived tarball installation.
The Fix
- Split indexable discussions from
noindex SSG archive routes (buildScripts/docs/seo/generate.mjs, rebuildContentIndexesAndSeo.mjs, copy.mjs, verify.mjs):
- Emit indexable
/news/discussions/* routes into sitemap-discussions.xml and reference ['sitemap-core.xml', 'sitemap-discussions.xml'] in getSitemapIndexXml() (sitemap.xml), removing sitemap-archive.xml (noindex tickets/PRs) from public sitemap.xml.
- Emit
apps/portal/resources/data/ssg-archive-routes.json alongside unlinked sitemap-archive.xml on disk so middleware-v2 SSG rendering continues uninterrupted.
- Pre-bake git
<lastmod> metadata (seoJson.mjs, generate.mjs):
- Persist per-route
lastmod (YYYY-MM-DD) in apps/portal/resources/data/seo.json during git-backed rebuildContentIndexesAndSeo.mjs runs, and fall back to seo.json[route].lastmod in generate.mjs when hasReliableGitHistory(root) returns false.
- Prune
sitemap-core.xml & mark non-canonical stubs noindex, follow (seoJson.mjs, generate.mjs, verify.mjs):
- Replace
/home with / in sitemap-core.xml (TOP_LEVEL_ROUTES), exclude /apps/portal/index.html from collectExampleRoutes, filter node.hidden === true and frontmatter type: redirect stubs out of sitemap-core.xml (setting robots: 'noindex, follow' in seo.json), keep only current + previous major (>= maxReleaseMajor - 1, i.e. v13+ / v14+) in sitemap-core.xml while setting robots: 'noindex, follow' on older v8–v12 patch notes in seo.json, and regenerate seo.json (picking up /news/blog/json-ld-xss-json-stringify-in-a-script-tag).
Contract Ledger Matrix
| Target Surface |
Source of Authority |
Proposed Behavior |
Fallback |
Docs |
Evidence |
sitemap.xml (getSitemapIndexXml) |
buildScripts/docs/seo/generate.mjs:861 |
Lists sitemap-core.xml and sitemap-discussions.xml only (0 noindex ticket/PR child sitemaps) |
Custom sitemaps option preserved |
JSDoc in generate.mjs |
Unit spec |
sitemap-discussions.xml (getSitemapDiscussionsXml) |
buildScripts/docs/seo/generate.mjs:821 |
Emits indexable /news/discussions/* <urlset> disjoint from sitemap-core.xml and sitemap-archive.xml; copied by copy.mjs |
Valid empty <urlset> when corpus has 0 discussions |
JSDoc in generate.mjs |
Unit spec + verify.mjs |
ssg-archive-routes.json (getSsgArchiveRoutes) |
buildScripts/docs/seo/generate.mjs:624 |
Emits deterministic sorted { routes: string[] } for /news/tickets/* and /news/pulls/* SSG pre-rendering |
Unlinked sitemap-archive.xml retained on disk |
JSDoc in generate.mjs |
Unit spec + verify.mjs |
sitemap-core.xml (getSitemapXml) |
buildScripts/docs/seo/generate.mjs:659 |
Emits /, excludes /home, /apps/portal/index.html, hidden leaves, type: redirect stubs, and < maxMajor - 1 releases; carries <lastmod> even without .git |
Git history when present, else seo.json lastmod |
JSDoc in generate.mjs |
Unit spec + verify.mjs |
apps/portal/resources/data/seo.json (getSeoJson) |
buildScripts/docs/seo/seoJson.mjs:968 |
Includes lastmod (YYYY-MM-DD) per route, robots: 'noindex, follow' on historical releases / hidden & redirect stubs, and all blog.json leaves |
Preserves existing seo.json lastmod when .git is absent |
JSDoc in seoJson.mjs |
Unit spec + verify.mjs |
Decision Record impact: none.
Acceptance Criteria
Out of Scope
neomjs/middleware-v2 server redirects and SsrService changes (tracked in companion middleware-v2 ticket).
- Rewriting
/learn/* or / <title> / <h1> copy (tracked in sibling #20671 leaf).
Avoided Traps
- Deleting
sitemap-archive.xml on disk before middleware-v2 switches fetchDynamicRoutes(): Keep ssg-archive-routes.json / unlinked sitemap-archive.xml emitted on disk until middleware-v2 consumes the new SSG manifest so scheduled builds never drop archive snapshots.
Related
Parent: #20671 · Related: #20774, #20688, neomjs/middleware-v2#48, neomjs/pages#56
Live latest-open + closed sweep: checked latest 25 open issues in neomjs/neo (#20790–#20913) + closed search (sitemap seo lastmod sidenav, Out of Scope / Avoided Traps read on #20774, #20688) at 2026-11-14T00:17Z; no equivalent or prior exclusion found. Backlog: 46 open, orange band (filed as leaf under existing parent epic #20671).
A2A in-flight claim sweep: latest 30 messages across all read-states checked at 2026-11-14T00:17Z; no competing claim on buildScripts/docs/seo/*.
MC sweep: query_raw_memories on "Discovered currently not indexed sitemap-core lastmod sidenav byte offset 0 non-brand clicks neomjs.com", 5 results, no prior decision found.
Own-assignment sweep: 1 open in neomjs/neo (#20671 parent epic, body read), none overlapping at leaf level.
Structure map: N/A (ai:structure-map is Brain-hosted; this ticket touches buildScripts/docs/seo/* and apps/portal/resources/data/* only).
Origin Session ID: b9b9352c-8f99-497f-abc6-d323f2353fdc
Retrieval Hint: "sitemap-core.xml Discovered currently not indexed hasReliableGitHistory lastmod sitemap-archive noindex"
Context
Google Search Console (
sc-domain:neomjs.com, inspected 2026-11-14) shows181of471routes (38.4%) insitemap-core.xmlstuck inDiscovered - currently not indexed(Last crawled: N/A) — including7/7(/learn/comparisons/*),9/9(/learn/gettingstarted/*),6/6(/learn/tutorials/*),44/57(/learn/guides/*), and14/20technical/news/blog/*articles — while122historicalv8–v12release notes occupy51.3%of the238indexed core pages.Ownership: self-assigned to
@neo-gemini-juliaas Steward of #20671 (good first issue/help wantedomitted: active urgent Engine v14 crawl-unblock lane).The Problem
Three compounding defects in
buildScripts/docs/seo/generate.mjsandbuildScripts/docs/seo/seoJson.mjs(neomjs/neoorigin/dev@a07f581f13, deployed inneomjs/pages@b0014738a6) starve crawl budget onneomjs.com:sitemap.xmlsubmits20,002noindexURLs (98.2%ofsitemap-archive.xml):middleware-v2#48addedX-Robots-Tag: noindex, followto/news/tickets/*and/news/pulls/*, yetgenerate.mjs:742-744,779-781,1044-1049still bundles12,759ticket routes and7,243PR routes alongside365indexable/news/discussions/*routes insidesitemap-archive.xmland linkssitemap-archive.xmlfromsitemap.xmlbecausemiddleware-v2/src/build.mjs:413-424(fetchDynamicRoutes) consumessitemap.xmlas its SSG build manifest.<lastmod>tags inneomjs/pages/sitemap-core.xml(0of480<url>entries):generate.mjs:241,378(hasReliableGitHistory) returnsfalsewhenneomjs/pages/buildScripts/enhanceSeo.mjsexecutes insidenode_modules/neo.mjs(npm tarball without.git), dropping all<lastmod>elements.sitemap-core.xmlbloat and canonical mismatches:/home(TOP_LEVEL_ROUTES) instead of/even though/homecanonicalizes tohttps://neomjs.com/, and includes/apps/portal/index.html(generate.mjs:543).4hidden: truelearn/tree.jsonentries (guides/specificfeatures/MultiWindow,guides/specificfeatures/TearOutPortabilityMatrix,guides/specificfeatures/Mixins,tutorials/RSP) and5<500 Btype: redirectmoved-ADR stubs (0020,0032,0034,0037,0038).172/news/releases/*notes (v8.1.0–v13.4.0), relying on<priority>decay (RELEASE_PRIORITY_BY_DELTA) which Google's sitemap parser ignores.apps/portal/resources/data/seo.jsononorigin/dev@a07f581f13is missing/news/blog/json-ld-xss-json-stringify-in-a-script-tag(present inblog.json).Instrument receipts (
origin/dev@a07f581f13&neomjs/pages@b0014738a6):neomjs/pages/sitemap-archive.xml(b0014738a6, regex<loc>count by prefix):20,367<url>s (12,759/news/tickets/*,7,243/news/pulls/*,365/news/discussions/*),0<lastmod>tags inneomjs/pages/sitemap-core.xml(480<loc>s; positive control:<loc>matches480).origin/dev@a07f581f13learn/tree.json(JSON.parsefiltern.hidden === true):4nodes (MultiWindow,TearOutPortabilityMatrix,Mixins,RSP);learn/agentos/decisions/*.mdfrontmattertype: redirect:5files (0020–0038).The Architectural Reality
Design authority: "Recency-tiered priority for /news/releases/ routes, indexed by delta from the newest release-note major... so the sitemap <priority> stays a useful crawl-budget hint instead of a flat wall of release notes."(buildScripts/docs/seo/generate.mjs:140-144,132-134). Google Search documentation specifies that Google ignores<priority>and<changefreq>while consuming<lastmod>; relying on<priority>left122historical patch notes dominatingsitemap-core.xmlindexing while0<lastmod>tags survived tarball installation.The Fix
noindexSSG archive routes (buildScripts/docs/seo/generate.mjs,rebuildContentIndexesAndSeo.mjs,copy.mjs,verify.mjs):/news/discussions/*routes intositemap-discussions.xmland reference['sitemap-core.xml', 'sitemap-discussions.xml']ingetSitemapIndexXml()(sitemap.xml), removingsitemap-archive.xml(noindextickets/PRs) from publicsitemap.xml.apps/portal/resources/data/ssg-archive-routes.jsonalongside unlinkedsitemap-archive.xmlon disk somiddleware-v2SSG rendering continues uninterrupted.<lastmod>metadata (seoJson.mjs,generate.mjs):lastmod(YYYY-MM-DD) inapps/portal/resources/data/seo.jsonduring git-backedrebuildContentIndexesAndSeo.mjsruns, and fall back toseo.json[route].lastmodingenerate.mjswhenhasReliableGitHistory(root)returnsfalse.sitemap-core.xml& mark non-canonical stubsnoindex, follow(seoJson.mjs,generate.mjs,verify.mjs):/homewith/insitemap-core.xml(TOP_LEVEL_ROUTES), exclude/apps/portal/index.htmlfromcollectExampleRoutes, filternode.hidden === trueand frontmattertype: redirectstubs out ofsitemap-core.xml(settingrobots: 'noindex, follow'inseo.json), keep only current + previous major (>= maxReleaseMajor - 1, i.e.v13+/v14+) insitemap-core.xmlwhile settingrobots: 'noindex, follow'on olderv8–v12patch notes inseo.json, and regenerateseo.json(picking up/news/blog/json-ld-xss-json-stringify-in-a-script-tag).Contract Ledger Matrix
sitemap.xml(getSitemapIndexXml)buildScripts/docs/seo/generate.mjs:861sitemap-core.xmlandsitemap-discussions.xmlonly (0noindexticket/PR child sitemaps)sitemapsoption preservedgenerate.mjssitemap-discussions.xml(getSitemapDiscussionsXml)buildScripts/docs/seo/generate.mjs:821/news/discussions/*<urlset>disjoint fromsitemap-core.xmlandsitemap-archive.xml; copied bycopy.mjs<urlset>when corpus has 0 discussionsgenerate.mjsverify.mjsssg-archive-routes.json(getSsgArchiveRoutes)buildScripts/docs/seo/generate.mjs:624{ routes: string[] }for/news/tickets/*and/news/pulls/*SSG pre-renderingsitemap-archive.xmlretained on diskgenerate.mjsverify.mjssitemap-core.xml(getSitemapXml)buildScripts/docs/seo/generate.mjs:659/, excludes/home,/apps/portal/index.html,hiddenleaves,type: redirectstubs, and< maxMajor - 1releases; carries<lastmod>even without.gitseo.jsonlastmodgenerate.mjsverify.mjsapps/portal/resources/data/seo.json(getSeoJson)buildScripts/docs/seo/seoJson.mjs:968lastmod(YYYY-MM-DD) per route,robots: 'noindex, follow'on historical releases / hidden & redirect stubs, and allblog.jsonleavesseo.jsonlastmodwhen.gitis absentseoJson.mjsverify.mjsDecision Record impact: none.
Acceptance Criteria
sitemap.xmlreferencessitemap-core.xmlandsitemap-discussions.xmland no longer advertisesnoindex/news/tickets/*or/news/pulls/*routes to crawlers.generate.mjsagainst a directory without.git(hasReliableGitHistory === false) still emits<lastmod>tags onsitemap-core.xmlroutes via packagedseo.jsonmetadata.sitemap-core.xmlcontains/(not/home), excludes/apps/portal/index.html, excludeshidden: truelearn/tree.jsonentries andtype: redirectmoved-ADR stubs, and restricts/news/releases/*entries to>= maxReleaseMajor - 1.apps/portal/resources/data/seo.jsonincludes/news/blog/json-ld-xss-json-stringify-in-a-script-tagand marks excluded historical releases and redirect stubs withrobots: 'noindex, follow'.verify.mjsenforces these invariants and unit tests undertest/playwright/unit/buildScripts/docs/seo/pass.Out of Scope
neomjs/middleware-v2server redirects andSsrServicechanges (tracked in companionmiddleware-v2ticket)./learn/*or/<title>/<h1>copy (tracked in sibling #20671 leaf).Avoided Traps
sitemap-archive.xmlon disk beforemiddleware-v2switchesfetchDynamicRoutes(): Keepssg-archive-routes.json/ unlinkedsitemap-archive.xmlemitted on disk untilmiddleware-v2consumes the new SSG manifest so scheduled builds never drop archive snapshots.Related
Parent: #20671 · Related: #20774, #20688,
neomjs/middleware-v2#48,neomjs/pages#56Live latest-open + closed sweep: checked latest 25 open issues in
neomjs/neo(#20790–#20913) + closed search (sitemap seo lastmod sidenav, Out of Scope / Avoided Traps read on #20774, #20688) at 2026-11-14T00:17Z; no equivalent or prior exclusion found. Backlog: 46 open, orange band (filed as leaf under existing parent epic #20671). A2A in-flight claim sweep: latest 30 messages across all read-states checked at 2026-11-14T00:17Z; no competing claim onbuildScripts/docs/seo/*. MC sweep:query_raw_memorieson"Discovered currently not indexed sitemap-core lastmod sidenav byte offset 0 non-brand clicks neomjs.com", 5 results, no prior decision found. Own-assignment sweep: 1 open inneomjs/neo(#20671 parent epic, body read), none overlapping at leaf level. Structure map: N/A (ai:structure-mapis Brain-hosted; this ticket touchesbuildScripts/docs/seo/*andapps/portal/resources/data/*only).Origin Session ID: b9b9352c-8f99-497f-abc6-d323f2353fdc Retrieval Hint: "sitemap-core.xml Discovered currently not indexed hasReliableGitHistory lastmod sitemap-archive noindex"