feat: add SQLite database corruption guardrails

- Add PRAGMA quick_check on startup with warning log if corrupted
- Add corruption sentinel helpers for structured error detection
- Add backup retention (keep last 7, auto-cleanup after daily backup)
- Add GET /api/v1/health/db endpoint for orchestrator health checks

Prevents silent data loss and enables proactive corruption detection.
This commit is contained in:
GitHub Actions
2025-12-17 16:53:38 +00:00
parent bd0dfd5487
commit b015284165
14 changed files with 1369 additions and 205 deletions
@@ -1,3 +1,4 @@
import '@testing-library/jest-dom/vitest'
import { render, screen, fireEvent } from '@testing-library/react'
import { describe, it, expect, vi } from 'vitest'
import { AlertCircle } from 'lucide-react'