Policy for how tracked writes are recorded into StageSnapshot.stageWrites
(#13c-A) — the sibling of ReadTrackingMode.
'full' (default) — every tracked write structuredClones the value into
the stage's write view. Byte-identical to the historical behavior.
'summary' — writes record a cheap WriteSummaryMarker instead of
the cloned value.
'off' — writes are not recorded at all; stageWrites is absent from the
snapshot. The writes themselves still commit to shared state and still
appear in the commit log — only the per-stage snapshot bookkeeping (and
therefore the commit observer's mutations payload) is affected. (The
commit log's own value encoding has its own lossless dial —
CommitValuesMode, #13c-B.)
Set via new FlowChartExecutor(chart, { writeTracking }) or
executor.setWriteTracking(mode) (before run()). See
FlowChartExecutorOptions.writeTracking for the full observable-consequence
contract (onCommit payload, redaction precedence, what is OUT of scope).
Policy for how tracked writes are recorded into
StageSnapshot.stageWrites(#13c-A) — the sibling of ReadTrackingMode.'full'(default) — every tracked writestructuredClones the value into the stage's write view. Byte-identical to the historical behavior.'summary'— writes record a cheap WriteSummaryMarker instead of the cloned value.'off'— writes are not recorded at all;stageWritesis absent from the snapshot. The writes themselves still commit to shared state and still appear in the commit log — only the per-stage snapshot bookkeeping (and therefore the commit observer's mutations payload) is affected. (The commit log's own value encoding has its own lossless dial — CommitValuesMode, #13c-B.)Set via
new FlowChartExecutor(chart, { writeTracking })orexecutor.setWriteTracking(mode)(beforerun()). SeeFlowChartExecutorOptions.writeTrackingfor the full observable-consequence contract (onCommit payload, redaction precedence, what is OUT of scope).