Optional ReadonlycapturePayload materialization at capture time. Default 'clone' — your
recorder's hooks receive the SAME event shape as inline delivery
(structuredCloned; e.key/e.value/e.runtimeStageId all work
unchanged), so { delivery: 'deferred' } is a drop-in port.
'summary' — a bounded type/size/preview digest (PayloadSummary)
instead of the event shape: cheaper capture for telemetry-only
consumers that don't read domain fields. 'ref' — pass-through by
reference; the caller asserts immutability (dev-mode warns).
Optional Readonlydelivery'deferred' = capture → queue → next-checkpoint delivery. Default 'inline'.
Optional ReadonlyflushPer-checkpoint flush budget, ms (A1) — default 2; Infinity = full drain.
Optional ReadonlymaxQueue bound — default 10 000.
Optional ReadonlyoverflowOverflow policy at maxQueue — default 'drop-oldest'.
Optional Readonlysample'sample' overflow only — admit 1 in this many saturated arrivals.
Options bag accepted by every
attach*Recordercall.delivery: 'deferred'opts the recorder into the bounded capture queue ("one beat behind"); absent /'inline'keeps the historical synchronous call — byte-identical to the pre-RFC path.The remaining fields configure the executor's ONE shared dispatcher and are applied when the FIRST deferred attach creates it; later attaches passing different values get a dev-mode warning and keep the original configuration (one queue per executor — per-recorder queues would break the total cross-channel order).