Per-event dispositions for a ReplayBatch. ackedEventIds MUST be the original Node outbox eventId values that are safe to mark DELIVERED. Conflicts MUST remain explicit and MUST NOT be ACKed.
| Field | Value |
| Identifier | urn:obsp:schema:v3.1:replaybatchresult |
|---|
| Dialect | https://json-schema.org/draft/2020-12/schema |
|---|
| Used by functions | Observe |
Properties
| Property | Required | Type | Description |
schemaVersion | yes | reference | |
claim | yes | string | Dispositions are inbox outcomes only; not Site readiness or acceptance. |
batchId | yes | string | |
eventResults | yes | array | |
ackedEventIds | yes | array | Subset of original outbox eventIds safe to mark DELIVERED (ACCEPTED or IDEMPOTENT_REPLAY). |
conflictEventIds | yes | array | |
detail | no | string | |
extensions | no | reference | |
Positive fixtures
replay-batch-result.valid.json
Negative fixtures
replay-batch-result.unknown-disposition.json: enum at /eventResults/0/disposition: 'SUCCESS' is not one of ['ACCEPTED', 'IDEMPOTENT_REPLAY', 'STALE_HISTORICAL', 'GAP_RECORDED', 'CONFLICT', 'REJECTED', 'FAILED_RETRYABLE', 'FAILED_TERMINAL']
Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:obsp:schema:v3.1:replaybatchresult",
"title": "ReplayBatchResult",
"description": "Per-event dispositions for a ReplayBatch. ackedEventIds MUST be the original Node outbox eventId values that are safe to mark DELIVERED. Conflicts MUST remain explicit and MUST NOT be ACKed.",
"type": "object",
"required": [
"schemaVersion",
"batchId",
"claim",
"eventResults",
"ackedEventIds",
"conflictEventIds"
],
"properties": {
"schemaVersion": {
"$ref": "#/$defs/SchemaVersion"
},
"claim": {
"type": "string",
"const": "REPLAY_BATCH_RESULT_NOT_READINESS",
"description": "Dispositions are inbox outcomes only; not Site readiness or acceptance."
},
"batchId": {
"type": "string",
"minLength": 16,
"maxLength": 256
},
"eventResults": {
"type": "array",
"items": {
"$ref": "#/$defs/EventResult"
}
},
"ackedEventIds": {
"type": "array",
"description": "Subset of original outbox eventIds safe to mark DELIVERED (ACCEPTED or IDEMPOTENT_REPLAY).",
"items": {
"type": "string",
"minLength": 8,
"maxLength": 128
},
"uniqueItems": true
},
"conflictEventIds": {
"type": "array",
"items": {
"type": "string",
"minLength": 8,
"maxLength": 128
},
"uniqueItems": true
},
"detail": {
"type": "string",
"maxLength": 2048
},
"extensions": {
"$ref": "#/$defs/Extensions"
}
},
"additionalProperties": false,
"$defs": {
"SchemaVersion": {
"type": "string",
"const": "3.1.0"
},
"Extensions": {
"type": "object",
"propertyNames": {
"pattern": "^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"
},
"additionalProperties": true
},
"Disposition": {
"type": "string",
"enum": [
"ACCEPTED",
"IDEMPOTENT_REPLAY",
"STALE_HISTORICAL",
"GAP_RECORDED",
"CONFLICT",
"REJECTED",
"FAILED_RETRYABLE",
"FAILED_TERMINAL"
]
},
"EventResult": {
"type": "object",
"required": [
"eventId",
"disposition"
],
"properties": {
"eventId": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"description": "Original Node outbox eventId."
},
"disposition": {
"$ref": "#/$defs/Disposition"
},
"detail": {
"type": "string",
"maxLength": 2048
},
"centralReceiptUni": {
"type": "string",
"minLength": 8,
"maxLength": 256
},
"gapDetected": {
"type": "boolean"
},
"missingSequences": {
"type": "array",
"items": {
"type": "integer",
"minimum": 1
}
}
},
"additionalProperties": false
}
}
}