mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
7049790853
Records a data-retention preference on the run for the World to apply once the run finishes, as the reserved `$retention` attribute. `'default'` and omission write nothing, so a run that states the default is indistinguishable from one that says nothing. `'none'` and any World-specific string are recorded verbatim; the SDK assigns no meaning beyond validating that the value fits in an attribute. The preference rides on run attributes, so a World that cannot carry them throws rather than silently retaining data the caller asked to have dropped. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Peter Wielander <29887157+VaguelySerious@users.noreply.github.com> Co-Authored-By: Peter Wielander <29887157+VaguelySerious@users.noreply.github.com>