export const fixCritical = {
    name: "fix-critical",
    description: "Fix all CRITICAL severity issues from AUDIT.md — security holes, crash risks, missing auth",
    content: `Read AUDIT.md in the repo root. Fix every issue listed under the CRITICAL section.

Execution Rules:
1. Work through issues one file at a time.
2. For each fix:
   - Add try/catch with structured error responses on every unhandled async call
   - Error responses must follow: { error: string, code: string, status: number }
   - Never return raw error messages or stack traces to the client
   - Auth checks: verify session exists before any data operation
   - Supabase RLS: generate migration SQL for any table missing policies, save to supabase/migrations/
   - Secrets: replace hardcoded values with process.env.VARIABLE_NAME, note what must be added to Doppler
3. After all fixes, create a git commit: "fix: resolve critical production issues"
4. Update AUDIT.md — mark each CRITICAL issue as [FIXED]
5. Print summary: how many existed, how many fixed, any that could NOT be auto-fixed (explain why)

Do NOT change business logic, refactor file structure, add features, or modify UI appearance.
If you cannot auto-fix an issue, add a // TODO(CRITICAL): comment and flag it in the summary.`
};
//# sourceMappingURL=fix-critical.js.map