Skip to content

An interrupt is published as 24 keys, every one always present

One shape, from every endpoint that publishes an interrupt. A consumer reads a key rather than testing whether it is there, because an absent value is present and null.

The rule

Normative: this is the rule
  1. Every endpoint that publishes an interrupt MUST publish the same entry: 24 keys, uniformly camelCase: id, type, status, message, nodeId, workflowId, pipelineId, sessionId, schema, options, context, defaultValue, responseData, createdAt, expiresAt, scheduledAt, resolvedAt, resolvedBy, direction, jobId, targetPipelineId, initiatorUid, reason, linkedInterruptId, and nothing else.
  2. The entry is closed because every endpoint that publishes an interrupt publishes it alike, and a key one endpoint added would make the entry that endpoint's own.
  3. id MUST be the interrupt's UUID.
  4. status MUST be one of the interrupt statuses (STORE-11, INT-24).
  5. type and direction MUST each be a string.
  6. All four timestamps MUST be ISO-8601 strings or null, never integers.
  7. Every optional member MUST be present and null rather than omitted.
  8. An endpoint listing interrupts MUST answer a JSON array, and MUST still answer an array after access filtering has removed entries.

What it means

Every endpoint that publishes an interrupt publishes the same 24 keys, in whichever endpoint answered. A consumer that reads this shape once can read it everywhere; a consumer that has to special-case one endpoint's fields is reading a contract that was never actually shared.

The clause worth catching is presence, not content: an unset member is published as the key with a null value, never left out of the object. A consumer that checks whether a key exists, instead of reading its value, would read an unset member as though the endpoint had a different shape than the one that set it — the two are indistinguishable unless absence is never allowed to mean anything.

Example

The interrupt entry's key set
["id", "type", "status", "message", "nodeId", "workflowId", "pipelineId", "sessionId", "schema", "options", "context", "defaultValue", "responseData", "createdAt", "expiresAt", "scheduledAt", "resolvedAt", "resolvedBy", "direction", "jobId", "targetPipelineId", "initiatorUid", "reason", "linkedInterruptId"]
One interrupt's unset membersnull
{"schema": null, "options": null, "context": null, "expiresAt": null, "scheduledAt": null, "resolvedAt": null, "resolvedBy": null}

Nothing here is omitted; each of these keys sits in its place in the 24-key entry above, carrying null rather than being left out.

Why

Recorded under OPEN-22, OPEN-23, OPEN-25, OPEN-44, OPEN-46.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · INT-22 · changed in spec 1.1