Skip to content

PartialStreamSubmissionError

Error raised when a streamed commit submission fails after an ambiguous or partial append.

completedReceipts contains only earlier, acknowledged event receipts. The other identity fields name the one pending chunk that must be looked up before any manual retry. acknowledgedOperationCount preserves progress even if a receipt omits operation rows. attemptedAppendOutcome and lastAcknowledgedRepoSeq retain recovery information from the earlier stream contract; the durable receipt remains the authoritative record.

https://docs.warmhub.ai/sdk/transient-retry/#partial-submissions

  • Error

new PartialStreamSubmissionError(input): PartialStreamSubmissionError

unknown

readonly OperationEventReceiptV1[]

object[]

number

number

"unknown" | "not_applied"

string

string

number

"unknown" | "absent"

PartialStreamSubmissionError

Error.constructor

readonly code: "PARTIAL_STREAM_SUBMISSION" = 'PARTIAL_STREAM_SUBMISSION'

Stable error code. Always 'PARTIAL_STREAM_SUBMISSION'.


readonly completedReceipts: readonly OperationEventReceiptV1[]

Earlier exact receipts, in submission order.


readonly completedOperations: object[]

Legacy projection of operations confirmed before the failed append.

optional opIndex?: number

name: string

operation: unknown

dataHash: string

version: number

optional status?: "error" | "noop" | "applied"

optional error?: object

code: string

message: string

optional details?: { reason: "expected_version_mismatch"; expectedVersion: number; currentVersion: number; } | { reason: "lease_held"; leaseExpiresAt: string; } | { reason: "validation_failed"; issues: object[]; } | { reason: "rate_limit_reset"; retryAfterSeconds: number; resetAt: string; } | { reason: "cursor_fence_unavailable"; cause: "not_ready" | "below_floor" | "above_head"; retryFromStart: true; }

optional submittedName?: string

optional resolvedName?: string

optional retryable?: boolean

optional warnings?: object

optional undeclaredFields?: string[]

optional undeclaredFieldsTruncated?: true

optional totalUndeclared?: number

optional coalescedWrefs?: object[]

optional coalescedWrefsTruncated?: true

optional totalCoalescedWrefs?: number

optional deprecations?: object[]


readonly submissionId: string


readonly eventRequestId: string


readonly chunkOrdinal: number


readonly pendingOutcome: "unknown" | "absent"


readonly acknowledgedOperationCount: number

Number of operations covered by acknowledged append responses.


readonly optional lastAcknowledgedRepoSeq?: number

Last repository sequence returned by an acknowledged chunk that persisted an event. This is a lower bound for known completed work, never evidence that the attempted append did not land.


readonly attemptedAppendOutcome: "unknown" | "not_applied"

Authoritative outcome of the attempted append. not_applied is used only when the SDK received explicit server rejection evidence; unknown means callers must stop writes and reconcile from a later verified checkpoint.


readonly cause: unknown

Underlying error that triggered the partial submission, preserved for diagnostics. Do not infer append outcome from this field; branch on attemptedAppendOutcome instead.

Error.cause