Embedding the shared bubble

Source contract, separate runtime acceptance. The shared component uses Stencil 4.45.1 and the sitekits namespace. Read shared-chat for API/security boundaries and editor for the disabled editor and future permission design. The release owner owns builds, deployment and final wiki publication.

D-193 source contract, not live OmpOS acceptance. The new ompos key is defined in SiteKits source. Production on 127.0.0.1:51974 still has only the original fuma, hkit, stnl admissions; mapping/corpus changes require process startup, not a source refresh. No restart or OmpOS-host modification is authorized here. Production activation remains blocked. The integration owner’s isolated actual-handler contract proof has passed: 58 HTTP requests through real ChatHandler and Corpus, with synthetic trusted-proxy headers and zero native calls. Positive 422 means admission reached retrieval, not a generated answer; see shared-chat for the receipt and limits.

Public component API

<script type="module" src="/omp-chat/sitekits.esm.js"></script>
<omp-chat-bubble site="fuma"></omp-chat-bubble>

site accepts fuma, hkit, stnl or ompos and selects local labels and question suggestions; it does not authorize access or select a server corpus. The endpoint is fixed to same-origin POST /api/chat, with JSON body only {"message":"…"}. There is no corpus or editor-enabling attribute. Loading the script registers the custom element; dependent chunks must resolve beside the loader. Serve the entire matching build directory, not just its entry file. Use the module loader only: emitted sitekits.js is a browser diagnostic, not a functional nomodule implementation.

The bubble keeps its transcript in memory. Local deterministic suggestions populate the prompt only; explicit Send or Enter initiates a request. Loading or opening the bubble does not initiate inference. The UI provides busy/error states, source links and dialog focus management. These source behaviors require separate browser acceptance; they are not an accessibility certification.

Three original application embeds

ApplicationSource integrationLoader
Fumaapps/fuma/app/layout.tsx emits site="fuma"; apps/fuma/components/omp-chat-bubble.d.ts augments React JSX typingSame-origin /omp-chat/sitekits.esm.js
Hkitapps/hkit/layouts/_partials/hooks/body-end/omp-chat.html emits site="hkit" through the supported Hugo hook; upstream footer unchangedSame-origin /omp-chat/sitekits.esm.js
Stnlapps/stnl/src/components/sitekits-app/sitekits-app.tsx renders site="stnl"Existing /build/sitekits.esm.js, not a duplicate loader

Component source is apps/stnl/src/components/omp-chat-bubble/omp-chat-bubble.tsx with adjacent CSS. Ionic initialization belongs only to the Stencil showcase root; importing the shared loader on Fuma/Hkit must not initialize Ionic globally. These are repository source paths, not public asset URLs.

apps/stnl/stencil.config.ts explicitly groups omp-chat-bubble in its own bundle entry; other components keep automatic grouping. Loaded-component and native keyboard proof is recorded separately in shared-chat, not inferred from this source-level separation. This is not a measured bundle-size or network-performance claim. After component changes, rebuild and verify the actual loaded chunks.

Same-domain gate and complete assets

On each original application domain, /omp-chat/ maps to apps/stnl/www/build. HTML, the module entry point, dependent chunks and /api/chat all remain inside Authelia’s authenticated boundary. OmpOS must receive the same complete, gated asset/API boundary through its owner handoff; this page does not claim those routes are active. The API derives identity from nginx’s overwritten Remote-User and fixed X-Sitekits-Site, not the component attribute or request body.

Do not copy or alias application build bytes into the public Quartz root, publish private corpus content, or treat a gated entry script as sufficient while leaving chunks or the API public. An authorized browser can inspect assets it receives; this boundary prevents anonymous exposure, not inspection by authenticated readers.

OmpOS owner handoff — application only

ompos is a newly defined SiteKits presentation/admission key for ompos.loca.zone, not an existing corpus identifier inferred from the fleet. The server-owned corpus identity is OmpOS · Architecture, not the fleet key os. service/corpora/ompos-public.json pins exactly the public contentIndex.json entries architecture, gaps, implementation, index, integrations, operations, permissions, plan. The runtime reads this bounded local snapshot, not OmpOS/private files or a live network source; original site corpus mappings remain unchanged. Citations use the wiki root for index and its exact page routes for the other seven IDs.

<!-- OmpOS application only: gated routes and backend activation required. -->
<script type="module" src="/omp-chat/sitekits.esm.js"></script>
<omp-chat-bubble site="ompos"></omp-chat-bubble>

The owner-copy artifact is evidence/2026-09-27-sitekits-ae75b9b1/d193-ompos-example.html; snapshot provenance is evidence/2026-09-27-sitekits-ae75b9b1/d193-corpus-provenance.json. The sibling d193-owner-handoff.json records artifact-only ingress/admission requirements and activation blockers. These are checkout handoff/evidence paths, not public downloads or proof of a hosted OmpOS integration.

The sibling d193-example-browser.json and d193-ompos-example-1280.png record the isolated example at 1280×900: three actual build assets returned 200, pointer-open focused the textarea, and Escape closed the dialog and restored focus, with no runtime/console errors. No text was typed or chat submitted. This is example-local asset/interaction proof only, not OmpOS-host authentication, handler admission or provider-answer proof.

The OmpOS owner must:

  1. Preserve the existing authentication and unrelated native/API behavior. Gate application HTML and the complete same-origin /omp-chat/ tree from apps/stnl/www/build/ with Authelia, including the module entry and every lazy chunk/asset.
  2. Gate exact same-origin /api/chat and proxy it unchanged to http://127.0.0.1:51974. The browser posts only {"message":"…"}. Retain the original proxy’s 32 KiB cap, no buffering/cache and 360-second read/send timeouts for the 300-second child deadline; keep /healthz unproxied and the listener loopback-only.
  3. Overwrite Remote-User from successful authentication and pin X-Sitekits-Site: ompos, never trust browser-supplied values. The service requires exactly one identity (1–256 characters; no characters at or below U+0020 or U+007F) and one exact lowercase site key.
  4. Send Host: ompos.loca.zone with no port; comparison is case-insensitive. An omitted Origin is accepted, but a supplied one must be exactly https://ompos.loca.zone or https://ompos.loca.zone:443 (case-sensitive, no path/trailing slash). Duplicate required headers and duplicate/empty supplied Origin are rejected. Preserve Origin; never spoof an original app or rewrite Origin to bypass admission. The original fuma, hkit, stnl keys retain the same rules for their own <site>.loca.zone hosts.
  5. Obtain separately authorized backend activation and verify the effective gate, complete chunk resolution and real cited answering before claiming live support. The existing production process retains its original three admissions; the completed isolated handler proof is not authenticated OmpOS-host or provider-answer proof.

No OmpOS files, ingress configuration or running service are changed by this documentation. Public and private Quartz output must remain bubble-free; the public OmpOS wiki is the citation source, not the component’s application host.

Quartz example — fenced documentation only

The following is an illustrative custom-element fragment, not an installed Quartz integration:

<!-- Documentation only: requires approved host onboarding before use. -->
<script type="module" src="/omp-chat/sitekits.esm.js"></script>
<omp-chat-bubble site="fuma"></omp-chat-bubble>

The current public and private Quartz wikis remain bubble-free. No live Quartz output, template or configuration is modified by this example. A tag pasted into a wiki is not a working drop-in: wiki hosts are not in the backend allowlist.

Any future Quartz integration requires all of the following, under explicit release-owner/Main approval:

  1. Deliberately select an authenticated wiki surface; keep unrelated public pages bubble-free.
  2. Add gated same-origin /omp-chat/ and /api/chat routes, including every dependent asset, without exposing application files through the public root.
  3. Approve and implement the exact backend Host/Origin-to-project mapping and corresponding fixed own-site corpus. A wiki host must not silently impersonate an allowed app host.
  4. Preserve server-overwritten identity and project headers. Never weaken SSO, enable anonymous API access or blindly rewrite Origin to bypass a mismatch.
  5. Verify anonymous gates, authenticated loading, complete chunk resolution and a real cited answer on the new host before claiming support.

Source integration, loopback browser proof, anonymous production redirects and an authenticated public-host browser session are distinct evidence categories. Final chat acceptance is tracked in shared-chat rather than inferred from the earlier application receipts.