@usine/core/attempt/failure
Classes
Section titled “Classes”AgentFailure
Section titled “AgentFailure”The agent ran and failed the work itself. Never auto-retried, since the same agent would fail the same way; the operator decides what changes first.
Extends
Section titled “Extends”Schema.Class
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AgentFailure(…
args):AgentFailure
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[props: object, options?: MakeOptions] |
Returns
Section titled “Returns”Properties
Section titled “Properties”message
Section titled “message”
readonlymessage:string
ChildSessionBudgetFailure
Section titled “ChildSessionBudgetFailure”The parent tried to spawn more child sessions than the Attempt allows. Never auto-retried, since the same parent would exhaust the same budget again.
Extends
Section titled “Extends”Schema.Class
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ChildSessionBudgetFailure(…
args):ChildSessionBudgetFailure
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[props: object, options?: MakeOptions] |
Returns
Section titled “Returns”Properties
Section titled “Properties”attemptedChildren
Section titled “attemptedChildren”
readonlyattemptedChildren:number&Brand<"ChildSessionCount">
maxChildren
Section titled “maxChildren”
readonlymaxChildren:number&Brand<"ChildSessionBudget">
DefectFailure
Section titled “DefectFailure”A programmer defect captured at the durable execution boundary. Retains its cause for diagnosis and requires an operator retry.
Extends
Section titled “Extends”Schema.Class
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DefectFailure(…
args):DefectFailure
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[props: object, options?: MakeOptions] |
Returns
Section titled “Returns”Properties
Section titled “Properties”
readonlycause:unknown
message
Section titled “message”
readonlymessage:string
InfraFailure
Section titled “InfraFailure”Infrastructure failed around the agent: worker unreachable, checkout failed, parent task lost. The only class the engine retries on its own, capped.
Extends
Section titled “Extends”Schema.Class
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new InfraFailure(…
args):InfraFailure
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[props: object, options?: MakeOptions] |
Returns
Section titled “Returns”Properties
Section titled “Properties”
readonlycause:unknown
message
Section titled “message”
readonlymessage:string
RunawayFailure
Section titled “RunawayFailure”The runaway guard interrupted an attempt that burned without progress. Never auto-retried (ADR 0013).
Extends
Section titled “Extends”Schema.Class
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RunawayFailure(…
args):RunawayFailure
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[props: object, options?: MakeOptions] |
Returns
Section titled “Returns”Properties
Section titled “Properties”ceiling
Section titled “ceiling”
readonlyceiling:"wall-clock"|"tokens"
Type Aliases
Section titled “Type Aliases”AttemptFailure
Section titled “AttemptFailure”AttemptFailure = typeof
AttemptFailure.Type
RunawayCeiling
Section titled “RunawayCeiling”RunawayCeiling = typeof
RunawayCeiling.Type
Which per-attempt ceiling the runaway guard tripped.
Variables
Section titled “Variables”AttemptFailure
Section titled “AttemptFailure”
constAttemptFailure:Schema.Union<readonly [typeofInfraFailure, typeofDefectFailure, typeofAgentFailure, typeofRunawayFailure, typeofChildSessionBudgetFailure]>
isAutoRetryableFailure
Section titled “isAutoRetryableFailure”
constisAutoRetryableFailure: <I>(input) =>input is I & InfraFailure
The class half of the auto-retry law: only infra failures qualify. shouldAutoRetry adds the attempt cap.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
I |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
I |
Returns
Section titled “Returns”input is I & InfraFailure
RunawayCeiling
Section titled “RunawayCeiling”
constRunawayCeiling:Schema.Literals<readonly ["wall-clock","tokens"]>
Which per-attempt ceiling the runaway guard tripped.