CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history
0105_repair_flywheel_patch.sql
Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.
| bc519ae | 1 | -- Repair Flywheel — full-patch storage for Tier-0 cache replay |
| 2 | -- | |
| 3 | -- Migration 0039 stores only a 400-char patch_summary — enough for the | |
| 4 | -- /admin/repair-flywheel dashboard, but not enough to REPLAY a repair on a | |
| 5 | -- cache hit. This adds the full unified-diff patch (capped at write-site, | |
| 6 | -- ~64KB) so ci-autofix can serve a previously-successful fix without an | |
| 7 | -- AI call (BUILD_BIBLE §7 finding 1: close the flywheel loop). | |
| 8 | -- | |
| 9 | -- src/db/schema.ts is locked (§4.1), so this column is intentionally NOT on | |
| 10 | -- the drizzle table object — src/lib/repair-flywheel.ts reads/writes it via | |
| 11 | -- raw SQL fragments. Strictly additive; nullable so existing rows are fine | |
| 12 | -- (they simply can't be replayed and fall through to the AI tier). | |
| 13 | ||
| 14 | ALTER TABLE "repair_flywheel" ADD COLUMN IF NOT EXISTS "patch" TEXT; |