/** * Todo-first mutation gate for Agim Agent. * * When AGIM_TODO_GATE is on (default), mutating tools are blocked until the * thread has a non-empty checklist from agim_todo_write. Read-only tools, * ask_user, and todo_write itself stay exempt so short Q&A and planning * still work. * * Opt out: AGIM_TODO_GATE=off|0|false|no|disable */ /** Default ON — same polarity as AGIM_NATIVE_TOOL_DISCIPLINE. */ export declare function isTodoGateOn(): boolean; export declare function isTodoGateExemptTool(toolName: string): boolean; export type TodoMutationGateResult = { ok: true; } | { ok: false; reason: string; }; /** * Hard preflight for mutating tools. Exempt tools always pass. * Fail-closed when the store is unavailable (same posture as complete_goal). */ export declare function evaluateTodoMutationGate(threadKey: string, toolName: string): TodoMutationGateResult; /** complete_goal(completed) presence check when the gate is on. */ export declare function evaluateTodoPresenceGate(threadKey: string): TodoMutationGateResult; export declare const TODO_FIRST_PROMPT: string; //# sourceMappingURL=todo-gate.d.ts.map