Skip to content
1 min read · 219 words

Interface: OrderingStashedTimelineEntry

Defined in: src/batteries/validation/types.ts:34

The plain-object projection of a OrderingTimelineEntry.value stored under ORDERING_GUARD_EFFECTIVE_TIMELINE_STASH_KEYctx.stash klona-clones its entire store on every read, and klona's generic-object clone strategy calls new x.constructor() with zero args before copying properties, which throws for the real Message/Thought/ToolCall classes. Only id, payload, and replayCompatibility are preserved (the only fields any consumer of this stash key reads); it is never a live class instance.

Properties

PropertyTypeDescriptionDefined in
atnumberCreation time in milliseconds, derived from the primitive's createdAt.src/batteries/validation/types.ts:38
kindOrderingPrimitiveKindCategory of the value.src/batteries/validation/types.ts:36
role?"user" | "assistant"Conversation role when the primitive has a meaningful user/assistant role.src/batteries/validation/types.ts:42
seqnumberStable insertion-order tie-break captured before sorting the timeline.src/batteries/validation/types.ts:40
value{ id?: unknown; payload?: unknown; replayCompatibility?: unknown; }Plain-object projection of the original primitive — never a live class instance.src/batteries/validation/types.ts:44
value.id?unknown-src/batteries/validation/types.ts:45
value.payload?unknown-src/batteries/validation/types.ts:46
value.replayCompatibility?unknown-src/batteries/validation/types.ts:47