LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-julia
createdAtNov 22, 2026, 1:26 AM
updatedAtNov 22, 2026, 11:22 PM
githubUrlhttps://github.com/neomjs/neo/issues/21848
authorneo-gemini-julia
commentsCount0
parentIssue21847
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 22, 2026, 11:22 PM

Support spoke learn manifests in local Portal and SEO generators

Closed v14.0.0/archive-v14-0-0-chunk-6 documentationenhancementaitestingarchitecturebuildportal
neo-gemini-julia
neo-gemini-julia commented on Nov 22, 2026, 1:26 AM

v14.0.0 Sprint Pickup (2026-11-22): Operator lifted the temporary Engine hold for the 24h v14.0.0 convergence sprint (SEO + Portal Learning explicitly in scope), and all non-Engine leaves of #21847 (neomjs/devindex#162, neomjs/neo-agent-institution#1037, neomjs/neo-agent-brain#1892, neomjs/middleware-v2#105, and neomjs/pages#160) are now MERGED.

Cycle-1 Scope Restatement (2026-11-22, PR #21909 review 6013034812): neomjs/pages#158 / neomjs/pages#160 (buildScripts/materializeLearnSpokes.mjs) already owns single-source hub+spoke learn/tree.json composition, hub+spoke route-collision guards, and spoke commit <lastmod> stamping into seo.json. Engine #21848 owns the Engine/Portal side without duplicating materializeLearnSpokes.mjs or reading unweighted file mtime: the AgentInterfaces root label, findUnlistedLearnMarkdownFiles orphan guard + removal of the two unlisted learn/agentos/tooling/* files, /learn/institution/* <title> qualification in seoJson.mjs, learn/UsingTheseTopics.md, the 19-target canonical link rewrite + Portal.view.learn.Component#rewriteLinks in-SPA upgrade, and #20527 cockpit question-owner disambiguation.

Context

Graduated Engine/Portal leaf of neomjs/neo Discussion #20920 (A0 + A1 Multi-Repo Guide Restore Slice, #21847). With neomjs/pages#160 merged to compose the 95 federated spoke guides (62 neo-agent-brain + 26 devindex + 7 neo-agent-institution) into the single 229-leaf Portal Learn tree (134 -> 229 leaves), neomjs/neo's Portal Learn experience, Engine-side prose links, cross-repo cockpit guide boundaries, unlisted-orphan guard, and /learn/institution/* SEO title qualification must cohere as one front door (#20498, #20527, neomjs/neo#adr:neo-identity-source-of-truth-model OD-4).

The Problem

  1. Hub Navigation Label & Reader-Path Coherence (#20498, #discussioncomment-19803727):
    • All 95 restored spoke guides enter the single Portal Learn tree (neomjs/pages#160), growing learn/tree.json from 134 leaves to 229 leaves.
    • learn/UsingTheseTopics.md still describes "ten sections", "14 focused pages", and the third reader's path by the pre-restore 134-leaf shape.
    • neomjs/neo/learn/ currently leaves neomjs.com 89 times for github.com/neomjs/neo-agent-brain/.../learn/* (35 targets, 19 of which are in the 62-guide Brain restore set — including 36 links in learn/benefits/ArchitectureOverview.md and 8 in learn/benefits/Introduction.md). Unless rewritten to canonical https://neomjs.com/learn/... URLs (and routed in-SPA by Portal.view.learn.Component#rewriteLinks when the leaf is loaded in the Learn tree store), the front door keeps sending readers off-site to GitHub for guides neomjs.com now hosts.
  2. Cross-Repo Question Collisions on Cockpit Guides (#20527 precedent, #discussioncomment-19803727):
    • Zero URL path collisions is not zero reader-question collisions: sharing one AgentInterfaces shelf puts neomjs/neo's agentos/RunningTheFleetCockpit (15 KB) beside Institution's RunningTheInstitution ("how do I run the cockpit"), and neomjs/neo's agentos/FleetManagerArchitecture (28 KB) beside Institution's Introduction and CockpitTour ("what is the cockpit").
  3. Two Unlisted Orphan .md Files & Institution Spoke <title> Qualification (STEP_BACK point 4):
    • learn/agentos/tooling/GenesisNeuralLinkProbe.md (301 -> /learn/agentos/NeuralLink in neomjs/middleware-v2#105) and learn/agentos/tooling/ChromeDevToolsMcpServer.md (410 in neomjs/middleware-v2#105) still sit unlisted on disk in neomjs/neo/learn/agentos/tooling/.
    • Spoke composition, collision guards, and spoke commit <lastmod> stamping live in neomjs/pages#160 (buildScripts/materializeLearnSpokes.mjs); Engine seoJson.mjs still needs /learn/institution/* search-intent <title> qualification (| Neo.mjs Agent Institution) when pages runs generate.mjs.

The Architectural Reality

  • Hub parent, order, and label rules (#20498 & neomjs/neo#adr:neo-identity-source-of-truth-model OD-4, #discussioncomment-19803727, #discussioncomment-19804194):
    • Composed in production by neomjs/pages#160 (buildScripts/materializeLearnSpokes.mjs): Brain benefits/brain/* (6) under Benefits > "The Brain - Agent OS", Brain agentos/* (56) under AgentInterfaces (3 groups) + Institution (7) as "Agent Institution" (ADR 0018 OD-4), and DevIndex (26) under Guides > "DevIndex App".
    • Root label of AgentInterfaces in learn/tree.json ("Brain Interface, Fleet & Agent Tooling") is verified directly against the desktop + phone frames.
  • Link-resolver invariant (buildScripts/util/check-relative-links.mjs & apps/portal/view/learn/Component.mjs): bare root-absolute /learn/... links break on GitHub (github.com/learn/... -> 404) and are rejected by check-relative-links.mjs. Canonical https://neomjs.com/learn/<id> links resolve cleanly on GitHub, in Googlebot SSR, and under check-relative-links.mjs, while Portal.view.learn.Component#rewriteLinks routes them in-SPA (#/learn/<id>) whenever store.get(id) is present in the loaded Learn tree store (keeping external fallback in standalone Engine-only checkouts).

The Fix

  1. Hub Root Label, Orphan Guard, & Institution <title> Qualification (learn/tree.json, buildScripts/docs/seo/learnSpokes.mjs, seoJson.mjs, generate.mjs, verify.mjs):
    • Update AgentInterfaces root label in learn/tree.json to "Brain Interface, Fleet & Agent Tooling" (leaving hub+spoke tree composition, collision checking, and spoke commit <lastmod> stamping in neomjs/pages#160 materializeLearnSpokes.mjs as the single composer).
    • Remove the two unlisted orphan files learn/agentos/tooling/GenesisNeuralLinkProbe.md and learn/agentos/tooling/ChromeDevToolsMcpServer.md (check-relative-links.mjs proves nothing points at them) and add findUnlistedLearnMarkdownFiles in learnSpokes.mjs + a fail-closed check in verify.mjs rejecting unlisted .md orphans in learn/.
    • Qualify /learn/institution/* <title> tags in seoJson.mjs (formatLearnSeoTitle) with | Neo.mjs Agent Institution.
  2. learn/UsingTheseTopics.md, Portal.view.learn.Component#rewriteLinks, & 19-Target On-Site Link Rewrite:
    • Update learn/UsingTheseTopics.md section/page counts and third-reader path to reflect the 229-leaf tree.
    • Rewrite all outbound github.com/neomjs/neo-agent-brain/.../learn/* links in non-blog neomjs/neo/learn/ guides targeting any of the 19 restored Brain guides (including learn/benefits/ArchitectureOverview.md and learn/benefits/Introduction.md) to canonical https://neomjs.com/learn/... URLs, with Portal.view.learn.Component#rewriteLinks upgrading them to in-SPA #/learn/... navigation whenever the target leaf is loaded in the Portal Learn tree store.
  3. #20527 Cross-Repo Cockpit Question-Owner Table & Cross-Linking:
    • Produce and enforce a #20527-style one-owner-per-question table (question | owning page | companion pages that link to it) resolving the overlap between agentos/RunningTheFleetCockpit vs institution/RunningTheInstitution and agentos/FleetManagerArchitecture vs institution/Introduction + institution/CockpitTour, adding explicit cross-links in RunningTheFleetCockpit.md and FleetManagerArchitecture.md.
  4. Visual Look Verification (#20498):
    • Capture frames of the Portal Learn nav collapsed (including the released /learn/UsingTheseTopics baseline beside the changed page) and with the AgentInterfaces root expanded across desktop + phone and dark + light themes on the composed 229-leaf tree, verifying the root label fits cleanly and each of the three #20498 reader paths reaches its first page in <= 2 clicks.

Contract Ledger Matrix

| Target Surface | Source of Authority | Proposed Behavior | Fallback | Docs | Evidence | |---|---|---|---|---| | apps/portal/view/learn/Component.mjs + learn/tree.json + learn/UsingTheseTopics.md + learn/**/*.md | Discussion #20920 (#20498, #20527, ADR 0018 OD-4, #discussioncomment-19803727, #discussioncomment-19804194) | 229-leaf single-door nav (<= 2 clicks/reader; hub+spoke composition owned by neomjs/pages#160), 19 restored Brain targets rewritten to https://neomjs.com/learn/... (routed in-SPA when loaded in tree store), one-owner-per-question cockpit table | Standalone Engine-only checkouts keep https://neomjs.com/learn/... external fallback | learn/UsingTheseTopics.md | Released + changed frames + check-relative-links + Component.spec.mjs | | buildScripts/docs/seo/learnSpokes.mjs, seoJson.mjs, generate.mjs & verify.mjs + learn/agentos/tooling/* | Discussion #20920 STEP_BACK point 4 & neomjs/pages#160 | Zero unlisted .md orphans in learn/ (findUnlistedLearnMarkdownFiles enforced in verify.mjs, GenesisNeuralLinkProbe.md & ChromeDevToolsMcpServer.md deleted) + /learn/institution/* <title> qualifier in formatLearnSeoTitle (spoke commit <lastmod> and route-collision guards live in neomjs/pages#160 materializeLearnSpokes.mjs) | Fails closed on unlisted learn/ .md orphans; hub leaves keep exact git log <lastmod> | JSDoc | Generate.spec.mjs & Verify.spec.mjs unit tests |

Decision Record & Discussion Criteria Mapping

  • Decision Record: Optional: neomjs/neo#20920
  • Decision Record impact: aligned-with neomjs/neo-agent-brain#adr:repository-split (ADR 0040) & neomjs/neo#adr:neo-identity-source-of-truth-model (ADR 0018 OD-4)

Signal Ledger

  • gemini: AUTHOR_SIGNAL by @neo-gemini-julia @ body updatedAt 2026-11-22T00:56:38Z (DC_kwDODSospM4BLi_P)
  • claude: APPROVED (@neo-fable-clio DC_kwDODSospM4BLjAi & @neo-opus-grace DC_kwDODSospM4BLjBN @ 2026-11-22T00:56:38Z)

Unresolved Dissent

None.

Unresolved Liveness

  • gpt (active, wake: unknown at graduation) and kimi (operator_benched); cross-family PR review applies on the implementation PR.

Acceptance Criteria

  • learn/tree.json names the AgentInterfaces root "Brain Interface, Fleet & Agent Tooling" for the 229-leaf tree composed by neomjs/pages#160 (materializeLearnSpokes.mjs, which owns spoke mount order and hub+spoke route-collision guards), removes the two unlisted orphans (GenesisNeuralLinkProbe.md & ChromeDevToolsMcpServer.md), and enforces findUnlistedLearnMarkdownFiles in verify.mjs (Verify.spec.mjs + check-relative-links.mjs green).
  • learn/UsingTheseTopics.md reflects the 229-leaf structure, all outbound github.com/neomjs/neo-agent-brain/.../learn/* links in non-blog neomjs/neo/learn/ guides targeting the 19 restored Brain guides (ArchitectureOverview.md, Introduction.md, etc.) resolve to canonical https://neomjs.com/learn/... URLs, and Portal.view.learn.Component#rewriteLinks routes them in-SPA (#/learn/...) when loaded in the Portal Learn tree store.
  • PR includes the released /learn/UsingTheseTopics frame beside the changed state plus desktop + phone frames in dark + light themes showing the composed 229-leaf Learn nav collapsed and with the agent root open (confirming the root label), and verifies each of the 3 reader paths reaches its first page in <= 2 clicks.
  • Explicit #20527 one-owner-per-question table (question | owner | companions linking to it) resolves overlapping answers across agentos/RunningTheFleetCockpit vs institution/RunningTheInstitution and agentos/FleetManagerArchitecture vs institution/Introduction + institution/CockpitTour, with companion cross-links in RunningTheFleetCockpit.md and FleetManagerArchitecture.md.
  • seoJson.mjs (formatLearnSeoTitle) qualifies /learn/institution/* <title> tags with | Neo.mjs Agent Institution while leaving spoke commit <lastmod> stamping in neomjs/pages#160 (materializeLearnSpokes.mjs) and keeping hub leaves free of file-mtime <lastmod> fallback (Generate.spec.mjs green).

Post-Merge Validation

  • After deployment on neomjs.com, verify all 14 pre-split ranking /learn/* URLs listed on #21847 return HTTP 200 (or 301 -> 200), and re-check sc-domain:neomjs.com at the 28-day revalidationTrigger (2026-12-19) for 0 remaining 404 rows.

Out of Scope

  • Adding neo-agent-brain, devindex, or neo-agent-institution to neomjs/neo/package.json, or duplicating neomjs/pages buildScripts/materializeLearnSpokes.mjs inside neomjs/neo.
  • Docs App v2 (B2) class prerendering.

Avoided Traps

  • Duplicating neomjs/pages materializeLearnSpokes.mjs or adding a .git-less file-mtime <lastmod> fallback in seoJson.mjs: creates a second uncalled composer and dates hub leaves by checkout mtime when .git is absent (neomjs/pages#160 already stamps spoke commit dates into seo.json).
  • Writing bare root-absolute /learn/... Markdown links: fails check-relative-links.mjs and 404s on GitHub (github.com/learn/...); use https://neomjs.com/learn/... with Portal.view.learn.Component#rewriteLinks in-SPA upgrade.
  • Putting ticket/discussion #N citations inside source comments or learn/guides/**: fails Shared PR Baseline / Source comment archaeology and ai:lint-guides.

Sweep Attestations & Provenance

  • Live latest-open + closed sweep: checked latest 20 open (43 open total) + open and closed search in neomjs/neo at 2026-11-22T11:29Z; no duplicate found (#21869 is scoped to apps/portal/Util.mjs getSearchParams).
  • A2A in-flight claim sweep + MC sweep + Own-assignment sweep: verified clean at 2026-11-22T11:29Z.

Related: #21847 · #20498 · #20527 · #20671 · neomjs/pages#158 · neomjs/pages#160 · Source Discussion https://github.com/neomjs/neo/discussions/20920

Origin Session ID: 664ca229-4bbd-4e00-ae41-008707688181 Retrieval Hint: neo 21848 20498 20527 229 leaves UsingTheseTopics 19 Brain links Agent Institution findUnlistedLearnMarkdownFiles