export const fixHigh = {
    name: "fix-high",
    description: "Fix all HIGH severity issues — validation, types, UI loading/error/empty states",
    content: `Read AUDIT.md in the repo root. Fix every issue under the HIGH section.

Execute in this order:

Round A: Input Validation
- Add Zod schemas for every API route and server action accepting user input
- Place schemas in lib/validations/ or colocated with the route
- Parse with schema.safeParse() — never trust raw req.body or form data
- Return 400 with structured error on validation failure

Round B: TypeScript Strictness
- Replace every any type with a proper type or interface
- Add explicit return types to all exported functions
- Add parameter types to all function arguments
- Shared types go in types/ directory

Round C: UI Resilience
- Every data-fetching component must have loading, error, and empty states
- Add React Error Boundaries at the layout level if none exist
- Clean up Supabase realtime subscriptions in useEffect cleanup

Round D: API Hardening
- Sanitize all error responses
- Add revalidatePath() after every mutation
- Ensure consistent response shapes across all API routes

After all fixes: git commit "fix: resolve high priority production issues", update AUDIT.md.`
};
//# sourceMappingURL=fix-high.js.map