/** * Single Source of Truth: Closing Reflection Questions * * All 7 closing questions defined once. Used by: * - definitions.ts (JSON schema for tool registration) * - compliance-validator.ts (validation error messages) * - schemas/session-close.ts (Zod schema) * - types/index.ts (ClosingReflection interface) * * Changing a question here propagates everywhere. */ export interface ClosingQuestion { /** Field name in closing_reflection object */ key: string; /** Question number (Q1-Q7) */ number: number; /** Full question text */ question: string; /** What type of institutional memory this question surfaces */ memoryType: "scar" | "win" | "decision" | "synthesis" | null; /** Whether compliance validator enforces a non-empty answer */ required: boolean; /** JSON schema type for the field */ fieldType: "string" | "string[]"; } export declare const CLOSING_QUESTIONS: ClosingQuestion[]; /** * Build JSON schema properties for closing_reflection in tool definitions. * Returns the `properties` object for the closing_reflection schema. */ export declare function closingReflectionSchemaProperties(): Record; /** * Build the full closing_reflection JSON schema object for tool definitions. */ export declare function closingReflectionSchema(): Record; /** * Build a description string listing all questions (for tool descriptions or prompts). */ export declare function closingReflectionDescription(): string; /** * Normalize closing_reflection field names from common aliases to canonical keys. * Agents frequently guess field names (q1_broke, q2_slow, etc.) instead of using * the canonical names (what_broke, what_took_longer). This prevents validation failures. */ export declare function normalizeReflectionKeys(reflection: Record): Record; //# sourceMappingURL=closing-questions.d.ts.map