/** Everything between a proposed call and a recorded act, for all origins through * the SAME method: coerce against the declared schema, canonical identity, Rulebook * verdict, route by verdict kind, StatusClerk grading, masking on record — the * stored form is the only stored form. */ import type { Act, CanonicalCallData, OwedRead, RawCall } from '../contract/vocabulary.js'; import type { ToolPort } from '../contract/ports.js'; import type { CompiledAgent } from '../cards/cards.js'; import type { Rulebook } from './rulebook.js'; import type { StatusClerk } from './status-clerk.js'; import type { ReadsLog } from './reads-log.js'; import type { ActionHistory } from './action-history.js'; import type { ConsentDesk } from './consent-desk.js'; import type { DisclosureDesk } from './disclosure-desk.js'; import type { Masker } from './masker.js'; import type { TurnDraft } from './session.js'; export interface CallRunnerDeps { readonly compiled: CompiledAgent; readonly rulebook: Rulebook; readonly clerk: StatusClerk; readonly history: ActionHistory; readonly toolPort: ToolPort; /** The session's reads log: every done answer lands here, masked, on the clock. */ readonly reads: ReadsLog; /** The per-session question desk; the hold route issues through it. */ readonly consent: ConsentDesk; /** The record-seam masker: stored calls and results. */ readonly masker: Masker; /** The compiled disclosure recipes; the hold route reads and renders through it. */ readonly disclosure: DisclosureDesk; /** ONE forced micro-step on the session's own seat: the model fills the owed * read's args over a single-tool surface. null = the model produced no usable * call. The Turn supplies it — model I/O stays the sequencer's job. */ readonly microStep: (read: OwedRead, held: CanonicalCallData) => Promise; } export declare class CallRunner { private readonly deps; constructor(deps: CallRunnerDeps); run(raw: RawCall, origin: Act['origin'], draft: TurnDraft): Promise; /** One micro-step round per guard that can owe on this tool — every debt gets its * turn to be paid, and the walk still terminates. */ private oweBudget; private runChecked; private execute; /** The debt could not be paid this turn: the act refuses with the rule of the * guard that raised it — the turn goes on and the delivery carries the sentence; * never a dead turn. */ private refuseUnpaidDebt; /** Whether a read's declared schema requires any argument at all. */ private requiresArgs; private callCtx; private head; private record; } //# sourceMappingURL=call-runner.d.ts.map