Book a demo
Architecture

How a run actually executes

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.

Definitions are immutable

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.

The execution model

StageWhat happensDurability
TriggerWebhook, schedule or manual invocation creates a run recordWritten before acknowledgement
Step dispatchWorker claims the next step with a leaseLease is visible; a crashed worker's step is reclaimed
Step resultOutput, attempt count and timing recordedCommitted before the next step is unlocked
ApprovalRun parks in a waiting stateNo worker held; resume driven by the approval event

Failure handling

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

Credentials

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.

What we log, exactly

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.

Audit trail

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.