Skip to main content

Overview

Put an explicit finite policy around production Tell work, stream completed checkpoints, and send only the stable redacted event envelope across a process boundary. The cancellation source can be retained by a web request, worker, or supervisor; cancelling it cooperatively stops future work and prevents a durable turn from publishing.

Example

Key Points

  • All limits are finite and are enforced across provider retries, output, and tool work. Tune them for the caller’s own deadline and resource budget.
  • Keep the cancellation source in the controlling process. Cancellation is cooperative, so currently executing provider or tool work stops at its next safe checkpoint.
  • TellEvent::envelope() is the stable redacted boundary projection. Do not forward raw provider/framework event data to logs or clients.