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
- 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. - 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.
idMUST be the interrupt's UUID.statusMUST be one of the interrupt statuses (STORE-11, INT-24).typeanddirectionMUST each be a string.- All four timestamps MUST be ISO-8601 strings or null, never integers.
- Every optional member MUST be present and null rather than omitted.
- 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
["id", "type", "status", "message", "nodeId", "workflowId", "pipelineId", "sessionId", "schema", "options", "context", "defaultValue", "responseData", "createdAt", "expiresAt", "scheduledAt", "resolvedAt", "resolvedBy", "direction", "jobId", "targetPipelineId", "initiatorUid", "reason", "linkedInterruptId"]{"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.