feat(server-01): extend wire protocol with sequence cursors and SnapshotComplete
Every event-derived ServerMessage gains sequence (global) and sessionSequence (per-session) cursor fields. SessionSnapshot adds lastSequence and lastSessionSequence at projection-read time. SnapshotComplete data object terminates the snapshot phase and is registered in the polymorphic module. replaySnapshot() now emits SnapshotComplete after all SessionSnapshot messages. SessionStarted audit deferred with TODO comment. DomainEventMapper propagates both cursors to all mapped messages including InferenceCompleted.
This commit is contained in:
@@ -38,6 +38,7 @@ class DefaultApprovalReducerTest {
|
||||
correlationId = null
|
||||
),
|
||||
sequence = sequence,
|
||||
sessionSequence = sequence,
|
||||
payload = payload
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user