From 319b2917e9db880781de8d569c4cc5e28e30b5e3 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 10 Jul 2026 07:18:06 +0100 Subject: [PATCH] Define provider-neutral embedded document resolution --- docs/eve-migration-roadmap.md | 15 ++++++++++++--- docs/surface-contract-v1.md | 8 ++++++++ packages/eve-browser-lowering/README.md | 1 + 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/docs/eve-migration-roadmap.md b/docs/eve-migration-roadmap.md index 3b33ce6..f44636e 100644 --- a/docs/eve-migration-roadmap.md +++ b/docs/eve-migration-roadmap.md @@ -285,9 +285,10 @@ Exit criteria: ## Active Work Queue -1. Replace Aetheria's specialized browser embedded-document methods with a - generic CultMesh document handle once the field/plugin document contract is - explicit; do not move Aetheria gravity or object schemas into Eve. +1. Graduate the generic Electron host/preload contract into EveElectron so + Aetheria retains only daemon lifecycle and provider transport configuration. +2. Replace incubating Sai/Norn projection declarations with one live sidecar + deployment witness per plugin, preserving their independent ownership. Recently cut: @@ -344,6 +345,14 @@ Recently cut: Export consumption passed for both `eveunity.aetheria.game.warm` (68.27 s wall, 7.72 s test) and `eveunity.aetheria.game.cold` (138.90 s wall, 111.52 s test), including all three reconciled command receipts. +- Embedded document resolution is now provider-neutral in the Aetheria + renderer. The browser forwards only document/schema/slot identity plus + viewport presentation context through `eveDocument`; Aetheria's main-process + transport adapter owns its gravity, render-splat, object, and nested-surface + query routing. Static verification rejects those Aetheria schema ids in the + renderer bundle, while the live Electron witness still proves the resolved + field surface. Eve core documents this as the host/plugin decoding boundary, + not as an Aetheria-specific exception. - The clean EveUnity PlayMode client now consumes Aetheria's independently running daemon without importing Aetheria code. Aetheria builds its authored diff --git a/docs/surface-contract-v1.md b/docs/surface-contract-v1.md index ef182be..0275fa4 100644 --- a/docs/surface-contract-v1.md +++ b/docs/surface-contract-v1.md @@ -144,6 +144,14 @@ Renderers lower normal `children` first, then resolve and mount cannot resolve a slot must preserve the slot identity in diagnostics or a placeholder; it must not invent a local substitute for the child document. +The renderer-to-host request is provider-neutral. It carries `documentId`, +`schemaId`, `slotId`, `presentationKind`, and optional presentation context such +as the current viewport. The host returns a resolved envelope containing the +same document/schema identity and either an opaque typed document or a nested +Eve surface. Provider adapters or advertised plugins own schema-specific query +selection and decoding. Renderer code must not switch on provider schema ids or +call provider-specific query methods to resolve a slot. + ## Embedded Knowledge Surfaces Eve must be able to place rich interactive surfaces inside another surface. diff --git a/packages/eve-browser-lowering/README.md b/packages/eve-browser-lowering/README.md index 5bcfd4b..ffe883f 100644 --- a/packages/eve-browser-lowering/README.md +++ b/packages/eve-browser-lowering/README.md @@ -8,6 +8,7 @@ This package owns the shared browser renderer contract: - `renderEveComponent(component, options)` lowers a single component tree. - `applyEveSurfaceStyles(styles, body)` maps portable Eve style tokens to CSS custom properties. - `createEveCommandIntent(commandId, props, options)` creates the browser command envelope for host daemons and carries the provider-advertised `commandBoundary` / `receiptSchema` when the active surface exposes `worldInteraction`. +- `EveBrowserProviderHost` owns advertisement-backed surface selection and uses one provider-neutral embedded-document resolver; provider schema dispatch stays behind the host transport boundary. Host applications own transport and command delivery. Providers own command acceptance and receipts through their advertisements. For example, Eir resolves surfaces through Odin/CultMesh and posts commands to `/eir/command`; Aetheria resolves surfaces through Electron IPC. Neither host should duplicate DOM lowering or import provider internals to find a command route.