Skip to content

IntentResult

IntentResult = { response: MaelstromResponse; status: "applied"; } | { reason: IntentNotSubmittedReason; status: "not_submitted"; } | { error: Error; status: "failed" | "unknown"; }

Defined in: packages/client/src/lib/orchestrator/intent-scheduler.types.ts:31

Exactly one terminal outcome. Unknown work must not be retried automatically.

{ response: MaelstromResponse; status: "applied"; }

readonly response: MaelstromResponse

Engine response applied to the client.

readonly status: "applied"

Response and its atomic layout/action batch completed successfully.


{ reason: IntentNotSubmittedReason; status: "not_submitted"; }

readonly reason: IntentNotSubmittedReason

Stable admission or lifetime refusal.

readonly status: "not_submitted"

Engine submission never began.


{ error: Error; status: "failed" | "unknown"; }

readonly error: Error

Original error, preserved for authentication/error presentation.

readonly status: "failed" | "unknown"

Failed means known pre-side-effect refusal; unknown includes partial application and transport uncertainty.