Folds a batch declaration into the escalation's storage shape:
queryable facets in metadata (batch_pending, batch_count,
batch_keys) and the payload accumulator in envelope
(batch_items: {}). partialOnTimeout is stored beside the items so
the expiry statement delivers the filled items instead of false. Pure
and deterministic — safe on the replayed condition() path. Throws
synchronously on an invalid declaration so a bad batch never reaches a
durable write.
Folds a
batchdeclaration into the escalation's storage shape: queryable facets inmetadata(batch_pending,batch_count,batch_keys) and the payload accumulator inenvelope(batch_items: {}).partialOnTimeoutis stored beside the items so the expiry statement delivers the filled items instead offalse. Pure and deterministic — safe on the replayedcondition()path. Throws synchronously on an invalid declaration so a bad batch never reaches a durable write.