/** The ordered deterministic guard pipe: four frozen arrays built at construction, * one per phase; first non-allow verdict wins on input; preTool walks its covering * rows twice — everything the records settle, then any question; postTool and reply * collect ALL violations (a postTool violation joins the reply corrections — the * call already ran). Pure — judged guards are not here. The census IS the code: * guards() returns the same arrays the four phase checks iterate. */ import type { GuardCensus, InputCtx, CallCtx, ResultCtx, ReplyCtx, Verdict } from '../contract/vocabulary.js'; import type { CompiledAgent } from '../cards/cards.js'; export interface Violation { readonly guardName: string; readonly detail: string; } export declare class Rulebook { private readonly input; private readonly preTool; private readonly postTool; private readonly reply; private readonly limits; private readonly rewrites; constructor(compiled: CompiledAgent); /** The honesty floor rides the reply walk at honesty priority — after the declared * rows, before the engine floor; one bipartite matcher, two census rows. */ private withHonesty; /** A guard covering specific tools skips a call to any other tool — Set membership. */ private covers; checkInput(ctx: InputCtx): Verdict; /** Two walks of the same covering rows. The first walk carries everything the * records already settle — a duplicate to restate, a read owed, a refusal — and * it finishes ACROSS rows before the second walk puts any question to the * operator. So a call any rule refuses is refused by whichever row sees it, and * the operator is never asked to approve an act that is already dead. */ checkPreTool(ctx: CallCtx): Verdict; checkPostTool(ctx: ResultCtx): readonly Violation[]; /** The honesty floor reads `ReplyCtx.report` and never the message: its verdict is * about the machine-readable line, not about the words the operator receives. */ private static readonly REPORT_ONLY; checkReply(ctx: ReplyCtx): readonly Violation[]; /** The rows that charge the WORDS the operator will read — every declared reply * guard, and none of the report-only floor. A turn the engine closes keeps no * report of its own, so a refusal earned there would cost the operator the * deterministic floor in exchange for a line nothing on the record ever holds. */ checkDeliveredReply(ctx: ReplyCtx): readonly Violation[]; /** A reply guard declaring tools binds to them: it runs only on a turn whose acts * touched one — the desk's other replies are not its jurisdiction. */ private bound; private collect; /** The same guard objects the phase checks iterate — never a parallel copy. */ guards(): GuardCensus; } //# sourceMappingURL=rulebook.d.ts.map