EventMeta
Interface: EventMeta
Defined in: src/events/types.ts:76
Metadata attached by the dispatcher to every event. Consumers never construct this manually — the dispatcher fills it in.
Properties
compositionPath
readonlycompositionPath: readonlystring[]
Defined in: src/events/types.ts:86
Composition ancestry — e.g. ['Sequence:pipeline','Agent:ethics'].
correlationId?
readonlyoptionalcorrelationId?:string
Defined in: src/events/types.ts:96
Domain correlation id — ties retrieval → injection → LLM.
iterIndex?
readonlyoptionaliterIndex?:number
Defined in: src/events/types.ts:90
Iteration index (Agent context only).
runId
readonlyrunId:string
Defined in: src/events/types.ts:98
Run id — demultiplex concurrent runs sharing one dispatcher.
runOffsetMs
readonlyrunOffsetMs:number
Defined in: src/events/types.ts:80
ms since run start — deterministic replay.
runtimeStageId
readonlyruntimeStageId:string
Defined in: src/events/types.ts:82
footprintjs universal stage key.
spanId?
readonlyoptionalspanId?:string
Defined in: src/events/types.ts:94
OTEL span id for the current composition boundary.
subflowPath
readonlysubflowPath: readonlystring[]
Defined in: src/events/types.ts:84
Subflow path parsed from runtimeStageId.
traceId?
readonlyoptionaltraceId?:string
Defined in: src/events/types.ts:92
OTEL trace id (when env.traceId is set).
turnIndex?
readonlyoptionalturnIndex?:number
Defined in: src/events/types.ts:88
Turn index (Agent context only).
wallClockMs
readonlywallClockMs:number
Defined in: src/events/types.ts:78
Wall-clock ms — for external correlation / dashboards.
