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.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ response: MaelstromResponse; status: "applied"; }
response
Section titled “response”
readonlyresponse:MaelstromResponse
Engine response applied to the client.
status
Section titled “status”
readonlystatus:"applied"
Response and its atomic layout/action batch completed successfully.
Type Literal
Section titled “Type Literal”{ reason: IntentNotSubmittedReason; status: "not_submitted"; }
reason
Section titled “reason”
readonlyreason:IntentNotSubmittedReason
Stable admission or lifetime refusal.
status
Section titled “status”
readonlystatus:"not_submitted"
Engine submission never began.
Type Literal
Section titled “Type Literal”{ error: Error; status: "failed" | "unknown"; }
readonlyerror:Error
Original error, preserved for authentication/error presentation.
status
Section titled “status”
readonlystatus:"failed"|"unknown"
Failed means known pre-side-effect refusal; unknown includes partial application and transport uncertainty.