Wire Unity editor snapshots into Brokkr

This commit is contained in:
Meta Vens 2026-06-12 12:19:28 +01:00
commit 2b8a247087
16 changed files with 690 additions and 26 deletions

View file

@ -7,11 +7,11 @@ daemon, beginning with Unity and Blender plugin surfaces.
## Current Mechanism
Brokkr starts as a Rust daemon skeleton that can emit a provider advertisement.
Unity and Blender each have a thin plugin scaffold with host-local metadata and
connection settings. The live transport is intentionally not claimed yet; the
first contract establishes owner, inputs, outputs, command policy, and surface
names.
Brokkr starts as a Rust daemon that emits a provider advertisement and exposes a
local HTTP adapter lane for tool plugins. Unity can capture a host snapshot from
the editor and publish it to `POST /hosts/unity/snapshot`; Brokkr validates and
retains that snapshot for `GET /hosts`. Blender still has a thin plugin scaffold
with host-local metadata and connection settings.
## Invariants
@ -55,6 +55,7 @@ Outputs:
- `gamecult.brokkr.tool_host_snapshot.v0`
- `gamecult.brokkr.command_request.v0`
- `gamecult.brokkr.command_receipt.v0`
- local adapter receipts for accepted host snapshots
- Eve/CultUI surface documents for host status, selection, assets, scene/object
trees, command palette, and receipt history.
@ -83,4 +84,3 @@ Deletion Line:
If a plugin grows its own command policy, provider advertisement, or durable
state ledger, cut it back into an adapter and move the authority into Brokkr.

View file

@ -4,6 +4,8 @@ Provider id: `brokkr.creative_tool_broker`
CultMesh base URI: `cultmesh://brokkr`
Local adapter HTTP endpoint: `http://127.0.0.1:8798`
Primary Eve surface id: `brokkr.eve.tool_broker.v0`
## Tool Kinds
@ -25,3 +27,12 @@ The scaffold advertises command execution as policy-gated. No host command
should execute unless the host plugin recognizes the command family and Brokkr
has issued a command request with a receipt id.
## Local Adapter Endpoints
- `GET /health`
- `GET /provider`
- `GET /hosts`
- `POST /hosts/unity/snapshot`
The HTTP lane is a local adapter transport. It is not the canonical public
Verse contract.