import type { DecisionAuthority, DecisionGate } from "@decionis/agent-safe-pipeline"; /** * `UNCHECKED` until a decision names the action space its release was * checked against; then `MATCH` or `DRIFT` as the last one that named one. */ export type ActionSpaceState = "UNCHECKED" | "MATCH" | "DRIFT"; export interface ActionSpaceStatus { /** The digest of the action space this gateway loaded; null when no manifest describes it. */ readonly loaded: string | null; /** The digest the last decision that named one gave for the release that decided. */ readonly release: string | null; readonly state: ActionSpaceState; /** The releases' digests recorded as drift, oldest first. */ readonly drifted: readonly string[]; } /** How many drifting releases are remembered; past it the oldest is forgotten, and recorded again if it returns. */ export declare const MAX_REMEMBERED_RELEASES = 64; /** * Compares the action space this gateway loaded with the one each deciding * release was checked against, as the authority names it on the decision * (`actionManifestDigest`). A release that differs is a release whose coverage * gate never saw some action this gateway can propose, or saw one it cannot: * recorded once per release, through `onDrift`, and shown. It is a report and * nothing more: no decision is changed, delayed or refused for it, and a * failure to record it never reaches the decision. */ export declare class ActionSpaceDrift { private readonly loaded; private readonly onDrift; private release; private readonly recorded; constructor(loaded: string | null, onDrift: (release: string, decision: DecisionGate) => void); get state(): ActionSpaceState; status(): ActionSpaceStatus; /** One decision: nothing when it names no release's action space. */ observe(decision: DecisionGate): void; /** The authority, with each decision it returns observed before anyone uses it. */ observing(authority: DecisionAuthority): DecisionAuthority; } //# sourceMappingURL=ActionSpaceDrift.d.ts.map