Beaconwork separates the workflow definition from the run, and the run from the worker that carries it out. That separation is what makes replays, approvals and audits behave predictably.
A workflow version is written once and never edited. Deploying a change creates a new version with its own identifier; runs in flight keep pointing at the version they started on. Comparing two versions produces a structural diff of steps, not a text diff of YAML, so a renamed step does not read as a delete-and-add.
| Stage | What happens | Durability |
|---|---|---|
| Trigger | Webhook, schedule or manual invocation creates a run record | Written before acknowledgement |
| Step dispatch | Worker claims the next step with a lease | Lease is visible; a crashed worker's step is reclaimed |
| Step result | Output, attempt count and timing recorded | Committed before the next step is unlocked |
| Approval | Run parks in a waiting state | No worker held; resume driven by the approval event |
Steps declare retry policy inline. The default is three attempts with exponential backoff and full jitter; any step may override it. When attempts are exhausted the run moves to failed and the error is attached to the step that produced it — never to the run as a whole, so triage starts at the right place.
- id: notify-billing
uses: slack.message
retry:
attempts: 5
backoff: 200ms
max: 30s
jitter: full
Connections are stored per workspace and scoped to the steps that reference them. A step can only read the credentials its own definition names, and resolved values are scrubbed from logs and from step outputs before they are persisted.
Step input (post-scrub), step output (post-scrub), attempt number, duration, worker region. We do not log HTTP headers, request bodies of failed auth attempts, or approval comments beyond the message text.
Every state transition — deploy, run start, step completion, approval, cancellation — is appended to an audit stream. There is no edit operation on the stream; corrections are new events. Exports are signed and can be verified offline against the workspace's public key.