@sema-agent/core
Version:
Stateless, task-oriented AI agent core
14 lines (13 loc) • 1.28 kB
TypeScript
/**
* Why a leg cannot suspend durably (`WiringManifest.suspendLane`) — every missing piece of the
* infrastructure the external causes (a scheduler's yield, a usage window, an env lifetime) and the opted-in
* task axes suspend on: no checkpoint store; tool-result offload into a volatile store; a per-task execution
* env in neither suspend target (not a remote env / no `capabilities.suspendable` declaration / a declared
* snapshot whose adapter lacks the restore surface). The type is derived from the frozen list. A leaf with no imports: a failed
* approval park names its word on `delegation.ask_unresolvable` (`detail.parkFailedReason`), and the notice's mint and the gate's deny
* exit read the set from here without loading the manifest's module graph (`wiring-manifest.ts` re-exports it).
*/
export declare const SUSPEND_LANE_REASONS: readonly ["no_checkpoint_store", "leg_not_resumable", "volatile_tool_results", "env_not_remote", "env_suspend_undeclared", "env_restore_incomplete"];
export type SuspendLaneReason = (typeof SUSPEND_LANE_REASONS)[number];
/** Membership test for {@link SuspendLaneReason} — the word rides a notice detail and a caller-supplied park answer. */
export declare function isSuspendLaneReason(v: unknown): v is SuspendLaneReason;