UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

17 lines (16 loc) • 1.39 kB
/** * The APPROVAL ROUTE words — where an ask carrying `requiresRealApproval` goes from a station, the closed set of the ONE * approval-seat decision. A leaf: the route is derived in `wiring-manifest.ts` (`approvalRouteOf` there; that module * re-exports these names as its consumer face) and screened by the stations that fork on it, some of which sit below the * manifest in the import graph. * * `live_approver` (a live approver callback answers it now), `policy_seat` (the deployment's approval policy callback * answers it now — it cannot approve it, since the bit asks for a person; it refuses it, or answers `"unavailable"` and the * ask parks), `durable_park` (it parks for a person to answer later), `none` (nobody can: a blanket policy seat, no seat, or * a run that declared nobody can be asked — each only when no park lane is armed, since an armed park is the deployment's * own statement that an answer can wait for a person — or a word that cannot be resolved — the fail-closed reading). */ export declare const APPROVAL_ROUTES: readonly ["live_approver", "policy_seat", "durable_park", "none"]; export type ApprovalRoute = (typeof APPROVAL_ROUTES)[number]; /** Membership test for {@link ApprovalRoute} — a station's stated route is screened through it, never trusted by shape. */ export declare function isApprovalRoute(v: unknown): v is ApprovalRoute;