Saga
object type
A Saga — the cross-boundary / multi-step mutation record-of-truth: each step advances status AND commits its effect in ONE transaction; the record IS the durable state machine. Isolation = the semantic lock. System-minted end to end: the wire is read-only (no create/edit/transition mutations exist — lifecycle is kit-channel; the first live records mint with the first genuinely multi-step process, checkout). failed is the terminal — compensation itself could not complete; recovery is a NEW linked saga, never a resurrection.
Fields
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The human-readable id, shaped like SG-… — stable for the record’s life. |
type | String String! | The kind of record — always Saga here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of pending, running, compensating, completed, compensated or failed. |
parentId | ID ID! | The parent org group; for a Saga parentId === rootId. |
rootId | ID ID! | The id of your organization group — every record of yours carries the same one. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID ID! | The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten. |
refCaptions | RefCaption [RefCaption!]! | The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption. |
sagaType | SagaType SagaType! | The canned process kind. Immutable at birth. |
lockAggregateId | ID ID! | The aggregate the semantic lock isolates — e.g. the Order under checkout. Immutable at birth. |
participants | SagaParticipant [SagaParticipant!]! | The construct refs this saga's steps touch (1..32, distinct). Immutable at birth. |
compensationLog | SagaCompensationEntry [SagaCompensationEntry!]! | The compensation audit log (born empty; appends while compensating, ≤ 64 — the failed terminal's last line records why). Server data, never caller-writable. |
sfExecutionArn | String | Null on SF-less sagas and the degraded lane. The ops/reconcile handle. |
taskToken | String | The live WaitForTaskToken callback token. Present ⟺ the execution is paused at the external wait; kit-stamped. |