/** * Stable error/failure codes for the personal report API. Kept in a pure * dependency-free module (no filesystem, no path, no crypto imports) so route * handlers that only need codes never pull the skill-snapshot scanner or any * other generation logic into their bundle/trace. */ export const REPORT_STABLE_CODES = { profileIncomplete: "profile_incomplete", birthTimeNotUsable: "birth_time_not_usable", generationInProgress: "report_generation_in_progress", rateLimited: "report_rate_limited", calculationUnavailable: "calculation_unavailable", modelUnavailable: "model_unavailable", schemaInvalid: "report_schema_invalid", guardRejected: "report_guard_rejected", notFound: "report_not_found", requestConflict: "report_request_conflict", exportDisabled: "report_export_disabled", invalidRequest: "invalid_request", resourceForbidden: "report_resource_forbidden", generationFailed: "report_generation_failed", } as const;