Output visibility and confidentiality
By default, a step’s outputs are available to downstream assignees. Restrict them withvisible_to:
for_participant() projection exposes only the recipient’s entry, not unrelated
private fields. Source outputs enter the context only after the source settles.
For fan-out steps that need a participant’s own prior submission and the peer
submissions separately, declare a participant-relative view:
participant_id and limiting source visibility.
Shared state inside workflows
Dependencies move information between steps. Shared state provides durable, typed resources that several steps may read or update. Two convenience resources are available:SharedStateMap definitions.
A step declares its accesses:
shared_state and records the observed state
versions. It accepts an immutable answer and effect intents before applying any
writes. Pending effects are replayed after failure; an accepted answer is never
regenerated for recovery. A permanent effect failure leaves the item committing
for operator repair. Separate state databases do not form one atomic transaction.
Continue with the shared-state manual and
language specification.