Skip to content

Responding to Work ​

The runtime responds to a typed Work contract through the service API.

dart
await service.respond(
  commandId: work item.commandId,
  response: Approval.approved(),
  idempotencyKey: requestId,
);

The Flutter action bar posts the sealed work action the server already authorized. It does not infer a response from a schema string.

Reaudience ​

Durable work reaudience is a first-class persistence path. It does not rewrite history. The new audience is the eligibility surface for the next claim or response.

Expiry ​

Optional expiresAt is a hard boundary. Recovery records expiry once. Workflow code can escalate, reassign, cancel, or fail.

See Also ​