type Stream
import bendvy-ecs-core@0.1.0.4/event_stream.bend as EventStreamimport Base
import bendvy-ecs-core@0.1.0.4/event_runtime.bend as Ev
import bendvy-ecs-core@0.1.0.4/ordinary_event_declaration.bend as Event
5# Detached Data metadata; the containing application retains the sole affine World.
6# Detached typed stream metadata: ordered Data batches and activated reader
7# positions with retention accounting. It owns no World or affine payload log;
8# raw construction/selection belongs to trusted family provisioning.
9type Stream<S:Data,E:Data> is Data:
10 Stream{domain:Event.Domain<S,E>,batches:List<&2,Ev.Batch<E>>,positions:List<&2,Ev.Position>,nextReader:U32,frameStart:Nat,boundary:Nat,capacity:Nat,dropped:Nat}