# The `discoverability` plugin — design, features & verification > **SEO+ and GEO in one plugin**, sharing one schema.org JSON-LD core. It enriches the head the Runway kernel > already fills (canonical + hreflang + the full Open Graph / Twitter social card) with the **structured-data** > the lean core leaves out, and **owns the crawl surfaces** the core does not ship: `/sitemap.xml`, `/llms.txt` > and `/robots.txt`. The second reference plugin (after `../demo`) — a real, cohesive feature. - **id:** `discoverability` · **version:** `2.3.0` · **install folder:** `external/plugins/discoverability/` · **package:** `mx.quest.discover` - **jar:** `runway-plugin-discoverability.jar` (thin) · **links:** the Runway SPI only (`requiresSpi: ">=1.0.0"`) - **Verified:** 178 unit tests + 6 host-integration tests, a live run against the packaged kernel and (2.0.0) a before/after comparison with 1.6.0 (see §6) --- ## 1. The boundary: what the kernel does vs. what this adds The lean kernel SEO core already emits, for free, on every public page (via `SeoHeadContributor` and the head-injection edge): - ``, `hreflang` alternates + `x-default`, and the `robots` meta directive (from the effective `noindex`); - the **full Open Graph + Twitter card** — `og:title`/`description`/`url`/`site_name`/`type`/`locale`(+alternates) and the mirrored `twitter:*`, **derived from the page** so a card renders even for an unconfigured site — plus `og:image`/verification meta from the site's stored SEO config. **This plugin never re-emits any of those.** It adds the layer the core deliberately omits: | Area | Surface | Seam | |------|---------|------| | **SEO+** | schema.org **JSON-LD** — one `@graph`: `WebSite` / `WebPage`\|`Article` / `Organization` / `BreadcrumbList`, a homepage `SoftwareApplication`, and per-page **typed** nodes | `HeadContributor` | | **SEO+** | **`/sitemap.xml`** — published content + `hreflang` alternates | `EndpointContributor` | | **SEO+/GEO** | **`/robots.txt`** — `Sitemap:` line + configurable AI-crawler policy | `EndpointContributor` | | **GEO** | **`/llms.txt`** — compact page index for LLM / answer engines | `EndpointContributor` | | **GEO** | `SearchAction` + `Speakable`, folded into the SAME `@graph` nodes by `@id` | (same `HeadContributor`) | > **robots.txt ownership.** The kernel serves no `/robots.txt` of its own; this plugin owns the route (an > `EndpointContributor` route has exactly one owner, and a kernel handler reading plugin config would hard-code a > plugin id into core). An install **without** this plugin therefore serves no `/robots.txt`, which crawlers > treat as allow-all. --- ## 2. What it links, and why (2.0.0) Since 2.0.0 the plugin compiles against `runway-spi` alone and links **no kernel-internal class** (the SPI service tier). Everything it needs from the host arrives by ordinary Spring injection of an SPI type, which the kernel implements: | Need | SPI | |------|-----| | this plugin's per-site settings | `PluginSettings.site(site)` — bound to this plugin by the jar its code came from; the descriptor's `default:`s applied by the host | | the site's published content, with its URLs | `ContentCatalogView.entries(site)` → `CatalogEntry` (metadata + one `LocalizedUrl` per available locale + the `x-default` path) | | a site by id, off-request | `Sites.find` | | "something changed, tell IndexNow" | `SiteEventListener.onCatalogChanged` — with the item's URLs **before and after** the change, and whether it happened on this node | | an absolute base without a configured one | `RouteRequest.origin()` — the request's origin as the kernel's trusted-proxy gate left it (until 2.0.0 the plugin built it from the raw `Host` header, with a guessed `https`) | | the same, for the page's JSON-LD (2.1.0) | `HeadContext.origin()` — the same trusted origin, handed to every head contributor (2.0.0's head had no origin, so a host-less site's graph was root-relative) | What this buys: a kernel refactor cannot break the plugin (the kernel refuses plugins that link its internals); the URL scheme lives in one place, the kernel, so the sitemap, `llms.txt` and the page `` cannot disagree; and IndexNow can report deletions (2.0.0; 1.x could not). The plugin never applies the URL scheme itself — it only prefixes the origin to the root-relative paths the kernel computed. **2.1.0: the JSON-LD of a host-less site is absolute.** A site with neither a base URL nor a host name (the platform's catch-all default) gets a root-relative canonical from the kernel — the kernel prefixes only a base URL it knows. 2.0.0 anchored the `@graph` on that canonical, so its `@id`s were root-relative (`/#website`), and with no base it left out the GEO `SearchAction` and the breadcrumb trail. From SPI 1.0.0 the kernel hands every head contributor `HeadContext.origin()` — the site's base URL, or the request's origin as the trusted-proxy gate left it — and the graph is built on it: absolute `@id`s and URLs, a `SearchAction`, a breadcrumb trail, an absolute `org.logo`. A site with a base URL or a host name is unaffected (byte for byte). The kernel's own ``, `hreflang` and Open Graph tags keep their rule (root-relative on such a site); they are not this plugin's. Because `origin()` needs SPI 1.0.0, the descriptor declares `requiresSpi: ">=1.0.0"`: a kernel below it blocks 2.1.0 at startup with a reason. **Bean names carry the plugin id.** Plugins share the kernel's bean namespace, so every bean is named `discoverability…`. Two were renamed: the console model is `discoverabilityAdminModel` (was `discoverAdminModel`; the dashboard card and admin fragment follow), and the app-level settings are a named `@Bean` `discoverabilityProperties` with `@ConfigurationProperties` on the method — `@EnableConfigurationProperties` would have registered them under a generated name outside the prefix. **Personal data:** none. The plugin stores nothing under `sites//plugins/discoverability/`; its settings file (`plugins/discoverability.yml`) is configuration, so the descriptor declares no `siteData.personal`. --- ## 3. Why one plugin (SEO+ and GEO together) The two areas share one spine: **schema.org JSON-LD**, which serves *both* rich search results (SEO) and AI answer extraction (GEO). As of 1.2.0 there is **literally one `HeadContributor`** (`StructuredDataHead`) emitting **one `@graph`** — the GEO `SearchAction` and `Speakable` are folded onto the same `WebSite`/`WebPage` nodes (rather than a second `