UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

16 lines (15 loc) • 1.52 kB
import type { PermissionModeController } from "../mode-policy.js"; import { type RuleStoreFault } from "../rule-store-fault.js"; import type { RunnerDeps } from "../runner-deps.js"; import { type AnnounceOnceLedger } from "./announce-once-ledger.js"; /** The reader's `onUnread` seat over a run's notice sink, the session's announced record and the leg's mode seat, read when a read finds the * store unreadable — or `rows` rows of it whose identity could not be read: their calls take the same store form, so the operator is * told where the mode answers it unasked; the person is told by the run's row notice (`config.entries_not_applied`, kind `stored_rule_row`), not here. A read * is told once the mode has settled ({@link PermissionModeController.whenArmed}) — the run's start read comes before the deployment's * arming facts bind, and a mode the arming folds back (`auto` with no classifier wired, a relaxed mode the deployment denies) would read * as itself then, the person's sentence stating the wrong cost and the operator's line naming a mode the leg does not run under. A call's read finds the mode * settled and tells at once. */ export declare function ruleStoreUnreadableNotice(onNotice: RunnerDeps["onNotice"], ids: { readonly sessionId: string; readonly runId: string; }, record: Pick<AnnounceOnceLedger, "oncePerSession">, modeSeat: Pick<PermissionModeController, "observed" | "whenArmed">): (at: "prepare" | "call", faults: readonly RuleStoreFault[], rows?: number) => void;