UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

16 lines (15 loc) • 939 B
import { type RetentionCascadeStores } from "../retention.js"; import { type ContractAssertionRunner } from "./contract-harness.js"; /** The binding a host writes: given a set of stores, the call that deletes one session through them (`owner` is the session row's). */ type SessionDeletionCascadeCoordinator = (stores: RetentionCascadeStores) => (target: { readonly sessionId: string; readonly owner: string | null; readonly scope: string; }) => Promise<unknown>; /** * The full contract for a session-deletion coordinator against {@link RETENTION_CASCADE}. Every case drives its own fresh recording * stores over its own scene, so a runner may interleave the cases; with no runner each case starts in order and the first failure * rejects the call. */ export declare function sessionDeletionCascadeContract(coordinator: SessionDeletionCascadeCoordinator, runAssertion?: ContractAssertionRunner): Promise<void>; export {};