Shared read-only chat

Shared read-only chat accepted across the original Fuma, Hkit and Stnl apps at 390/1280. Those three embeds share one Stencil component and one loopback OMP service. Genuine answers/citations, read-only containment, native keyboard isolation and actual busy UI each have separate historical receipts below. Wiki publication and browser verification have separate checkout receipts, also described below. See embed and editor.

D-193, 2026-09-28: OmpOS source admission is not production activation. SiteKits newly defines ompos for ompos.loca.zone; the corpus identity is OmpOS · Architecture, not an inferred pre-existing key or the fleet identifier os. The running service still has only the original three admissions. No restart or OmpOS-host change is authorized here; production activation remains blocked. The integration owner’s isolated actual-handler contract proof has passed with synthetic trusted-proxy headers and zero native calls, as recorded below. Neither that proof nor the historical three-app receipts proves authenticated OmpOS ingress or a generated OmpOS answer.

Browser and HTTP contract

<omp-chat-bubble> accepts only the presentation site label (fuma, hkit, stnl, ompos); no corpus attribute exists. Its endpoint is fixed to same-origin POST /api/chat with JSON body only:

{"message":"What do this site's documents say about the setup?"}

Successful API shape:

{"answer":"A source-grounded answer.","citations":[{"title":"Source title","url":"https://stnl.loca.zone/"}],"tier":"read-only"}

That response is a schema illustration, not a recorded model answer. Errors have the shape {"error":"code","message":"Explanation"}. The server accepts only message, with an 8,000-character limit and a 32 KiB total request-body cap. The response tier is always read-only.

The browser keeps a local in-memory transcript; it sends only the current prompt, not conversation history. Close/reopen retains that memory and reload clears it. Suggestions are local deterministic prompt text. No model runs on load, open or suggestion display; Send or Enter submits, while Shift+Enter adds a newline. Empty prompts cannot be sent. There is no automatic retry or invisible queue.

Trusted edge identity, not a client claim

  • nginx gates the original applications, their complete module/chunk trees under /omp-chat/, and /api/chat with Authelia. OmpOS requires the same owner-applied boundary; no active OmpOS route is claimed here. nginx must overwrite Remote-User from successful authentication and pin X-Sitekits-Site per vhost, never forward a browser-supplied claim.
  • The service binds only to 127.0.0.1:51974. It requires exactly one Remote-User of 1–256 characters, with no characters at or below U+0020 or U+007F, one exact lowercase site key, and one matching Host. Host comparison lowercases the value and allows no port.
  • Optional Origin, when supplied, must be one nonempty header exactly equal to the mapped HTTPS origin or explicit :443 form below. Origin is case-sensitive; paths, trailing slashes, other ports and wiki origins are rejected. Missing Origin remains allowed for trusted local-proxy clients. Duplicate required headers and duplicate/empty supplied Origin are rejected.
  • User-supplied site, identity, corpus paths, provider or tools in the JSON body are not accepted. Changing the element’s site attribute cannot select another server corpus or grant editing.
  • These forwarded headers are a trusted local-proxy boundary, not a cryptographic identity proof against other local processes. Do not expose the backend port, proxy /healthz publicly or let another untrusted proxy supply these headers.
  • Wiki hosts are outside both the source and production Host/Origin mapping. Live public/private Quartz wikis remain bubble-free. The public OmpOS wiki is a corpus/citation source, not an admitted application origin. Never blindly rewrite Origin, impersonate another allowed host or weaken SSO to make an embed work.
Site/admission keyRequired Host (case-insensitive, no port)Allowed Origin when supplied
fumafuma.loca.zonehttps://fuma.loca.zone or https://fuma.loca.zone:443
hkithkit.loca.zonehttps://hkit.loca.zone or https://hkit.loca.zone:443
stnlstnl.loca.zonehttps://stnl.loca.zone or https://stnl.loca.zone:443
ompos (new source admission; production activation blocked)ompos.loca.zonehttps://ompos.loca.zone or https://ompos.loca.zone:443

The OmpOS owner must serve the complete matching build tree at same-origin /omp-chat/, load /omp-chat/sitekits.esm.js once, and gate exact /api/chat before proxying to the loopback service. Preserve existing authentication and unrelated native/API behavior. embed provides the fenced <omp-chat-bubble site="ompos"></omp-chat-bubble> fragment and concrete proxy handoff. There is no functional nomodule fallback.

Read-only grounding and citations

The backend owns a fixed per-site document mapping; the model is given selected own-site excerpts, not arbitrary filesystem or network access. Documents are untrusted data, not executable instructions. The client cannot select a path or cross into another project’s corpus.

SiteFixed source evidenceCitation destination
FumaOnly processed content.md pages enumerated in FUMA_PAGES under apps/fuma/out/llms.mdx/docs; no discovery or duplicate llms-full.txtFixed /docs/.../ allowlist routes on fuma.loca.zone, checked against each generated page header
Hkitapps/hkit/content/_index.md, retaining frontmatterhttps://hkit.loca.zone/
StnlSeven named component TSX files plus src/data/workbench.ts, explicitly listed in service/corpus.py; not arbitrary build bundles/CSSstnl.loca.zone/ and fixed workbench/components/implementation/comparison/sources anchors
Each original site’s wikiExactly index, setup, comparison, shared-chat, embed, editor Markdown pages; all requiredOwn wiki.<site>.loca.zone root or corresponding article
OmpOS (ompos, source admission)Only service/corpora/ompos-public.json, pinned from the authoritative public OmpOS wiki index; exactly architecture, gaps, implementation, index, integrations, operations, permissions, planhttps://wiki.ompos.loca.zone/ for index; https://wiki.ompos.loca.zone/<id> for the other seven IDs

The OmpOS pin comes from the public /static/contentIndex.json, with provenance in evidence/2026-09-27-sitekits-ae75b9b1/d193-corpus-provenance.json. Runtime reads at most 128 KiB of local snapshot data, verifies the SHA-256 pin and exact page metadata, and limits each page’s content to 32 KiB. No runtime HTTP, OmpOS filesystem traversal, private content or other fleet corpus is involved; the original three corpus mappings are unchanged, and their six-page wiki set is not appended to OmpOS. A reviewed snapshot/code-pin/provenance update is required to refresh this dated public evidence; it is not proof of current OmpOS application state.

Each path component is descriptor-opened with O_NOFOLLOW; only regular files up to 256 KiB are accepted, with the tighter OmpOS snapshot/content bounds above. Private path components, symlinks and invalid paths are rejected. Missing or invalid fixed corpus files fail startup rather than silently shrinking the corpus. Retrieval uses bounded lexical scoring, at most eight documents with 2,400-character excerpts; no hits return HTTP 422 insufficient_evidence without starting a child. Source selection does not make every question answerable. Mappings and corpus data are loaded at process startup, so source/build changes require a separately authorized restart. No restart is authorized in D-193; the existing production process retains its original admissions.

The native model’s final payload uses source IDs from the retrieved excerpts. Citation IDs and inline markers must match exactly; duplicate or invented IDs and model-generated HTTP(S)/Markdown links are rejected. The server derives titles and HTTPS URLs from the selected sources and rewrites the answer’s source markers to citation numbers. The browser receives public {title,url} objects, not model-invented links. Schema/citation validation is not a theorem of factual correctness: real answer/source agreement must still be exercised during acceptance. Unsupported questions require refusal rather than fabricated facts; invalid output is not converted into a successful answer.

Native OMP containment and single-child policy

The Python service calls native OMP over ACP with existing native authentication; it does not add provider credentials, call a replacement provider or emulate answers. Tools are disabled. A runtime guard enforces the zero-tool boundary and returns the typed final payload through a private inherited anonymous pipe. The child starts in <runtime>/request-*/work, not the project checkout; per-request sessions/config/discovery files are removed and pipe descriptors are closed afterward. Editor is OFF: no mutation routes, no write tools and no client-enable switch.

Only one OMP child may be globally active. A concurrent request receives HTTP 503 busy, rather than spawning a second child or silently queuing. Identity/site validation and the fixed corpus remain server-owned even when the UI is disabled or manipulated.

Read-only refers to project content and tool capabilities, not zero filesystem activity: native OMP may refresh its existing OAuth state, and the service writes private runtime/state receipts. The deployment unit keeps the project tree read-only while allowing those explicit operational directories.

Failure states and provider stop

Authentication failures/manual redirects expose a sign-in path instead of attempting to render an HTML login page as an answer. Busy and unavailable states are explicit. Guard v2 intercepts the first HTTP 429 on native global fetch, persists a pause marker, notifies the supervisor and terminates the child before returning that response to SDK retry logic. The supervisor also latches pause in memory and blocks subsequent inference requests. The component locks sending until operator intervention. Outer retries and provider fallback remain disabled.

During acceptance, any provider 429 is an immediate STOP and alert Main condition. Do not generate extra provider traffic to provoke or bypass a rate limit.

An operator must resolve the rate-limit cause and deliberately clear the pause while the service is stopped before restarting it. The pause is not automatically cleared by restart. This is an operational recovery step, not a client API or an editor permission.

Installed-native synthetic first-429 proof recorded. Codex’s SSE transport has internal retries that outer settings alone do not disable. Guard v2 wraps native global fetch, preserving its receiver and arguments without inspecting/logging request content; it terminates rather than returning a 429 to the SDK. chat-native-synthetic429.json records installed OMP 18.3.2 in an unshare --net namespace with no external interfaces: exactly one synthetic fetch, zero tools, and paused second/fresh-runtime requests starting no child. This is synthetic stop/persistence proof, not a real provider rate-limit event. Successful answers additionally require a providerFetchCalls observation; no provider switch is authorized.

Operator source and runtime paths

Repository command (release owner only):

python3 -m service

Run from the SiteKits project root. Source modules are service/server.py, service/corpus.py, service/native.py, service/guard.ts, service/child-config.json and service/__main__.py; the deployment unit source is deploy/sitekits-chat.service. A unit source file is not evidence it was installed or started.

Default private runtime/state roots are ~/.cache/sitekits-chat and ~/.local/state/sitekits-chat. The production unit selects SITEKITS_CHAT_RUNTIME=/run/sitekits-chat and SITEKITS_CHAT_STATE=/var/lib/sitekits-chat. State holds provider-paused.json, redacted per-child-attempt receipts/<epoch>-<request_id>.json and last-guard.json; validation/no-evidence requests do not spawn children. The suffix is a random request ID, not a child PID. Receipts contain guard/tool counters and outcomes, not credentials or thinking. Do not publish them as public wiki assets. Repository paths here are operator source references, not public download links.

Recorded evidence and remaining acceptance

D-193 isolated proof completed: evidence/2026-09-27-sitekits-ae75b9b1/d193-http-corpus-proof.json records 58 real ChatHandler HTTP requests using the actual Corpus and synthetic trusted-proxy headers. The four correct site/Host pairs reached 422 insufficient_evidence; cross-site Host/Origin, unadmitted corpus/site selectors, forbidden JSON selectors and identity cases were rejected. Positive 422 proves admission reached retrieval, not a generated answer. Native calls were zero. Source counts were Fuma 35, Hkit 7, Stnl 14 and OmpOS 8; four meaningful OmpOS retrieval queries returned only canonical public-wiki sources. The sibling d193-build-test.json records 11 focused tests passing.

d193-owner-handoff.json is artifact-only coordination; d193-ompos-example.html is an owner-copy HTML artifact, not a hosted integration or provider-answer receipt. Production OmpOS activation remains blocked. Source support, isolated handler proof, anonymous ingress, authenticated browser use and a real cited answer remain separate evidence categories; no authenticated OmpOS ingress, provider answer or live activation is claimed.

Receipts live under evidence/2026-09-27-sitekits-ae75b9b1/. chat-live.json records genuine HTTP 200 answers and canonical citations visibly rendered on all three applications at 390 and 1280 pixels, with editor OFF. Host Chrome used fixed-identity loopback proof proxies and direct CDP after helper input/frame anomalies; this is not an authenticated public-domain browser session. Five production children are retained honestly: two Fuma, two Hkit and one Stnl, including extra transport/HTTP probes. Each native guard records one provider fetch, zero tools and no actual 429.

Stnl explicitly refused the requested live heading edit and the original heading stayed unchanged. chat-read-only.json records 90 monitored code/content files unchanged during chat, production namespace EROFS as UID 1006, real cross-site HTTP 503 while one child was active, and cross-process OS flock contention. Documentation-owner changes were excluded from the monitored window, not attributed to chat. The earlier chat-first-native.json remains transport-only and not visual proof; the later accepted direct-CDP screenshots supply that separate evidence.

Narrow consumer fix, native keyboard proof passed: Fuma’s document-level d hotkey had consumed trusted d input from the Shadow-DOM textarea (defaultPrevented=true) and toggled the theme. The dialog now stops keydown propagation before its existing Tab handler. After rebuilding, chat-keyboard-isolation.json proves all three hosts at390/1280: rea plus trusted d becomes read, theme unchanged, Shift+Enter newline, forward/reverse Tab containment, Escape focus restoration and draft preservation. chat-busy-ui.json separately records actual503 while holding the owned OS lease, the visible “not queued” explanation and Send re-enabled; the lease was released. Neither proof added provider children, leaving the total at five.

Any loopback browser proof must remain labelled loopback: it does not become an authenticated public-host browser session because nginx serves the same output. For wiki publication and browser verification, consult evidence/2026-09-27-sitekits-ae75b9b1/wiki-final.json: 42 page-viewport cases across 21 source pages at 390/1280 CSS pixels, 18 primary screenshots, three explorer screenshots and two supplemental setup-diagram screenshots. Its 10 diagram-bearing cases wait for all graph nodes and edges, not merely an SVG shell. evidence/2026-09-27-sitekits-ae75b9b1/result.json records the active URLs and commit. These are checkout evidence paths, not public download links; source presence alone does not prove deployment. Every publication must verify article routes and keep the live wikis bubble-free.