Remove task-level approval system

Task-level approval (requiresApproval, mergeRequiresApproval,
pending_approval status) was redundant with executionMode
(yolo vs review_per_phase) and blocked the orchestrator's
phase completion flow. Tasks now complete directly;
phase-level review via executionMode is the right granularity.

Removed: schema columns (left in DB, removed from Drizzle),
TaskPendingApprovalEvent, approveTask/listPendingApprovals
procedures, findPendingApproval repository method, and all
frontend approval UI.
This commit is contained in:
Lukas May
2026-03-05 17:09:48 +01:00
parent 209629241d
commit 8804455c77
27 changed files with 48 additions and 237 deletions

View File

@@ -0,0 +1,6 @@
-- Migrate any pending_approval tasks to completed (unblock the pipeline)
UPDATE tasks SET status = 'completed' WHERE status = 'pending_approval';
-- Note: SQLite cannot drop columns. The merge_requires_approval column on
-- initiatives and requires_approval column on tasks are left in the DB but
-- removed from the Drizzle schema. Drizzle ignores extra DB columns.

View File

@@ -211,6 +211,13 @@
"when": 1772064000000,
"tag": "0029_add_project_last_fetched_at",
"breakpoints": true
},
{
"idx": 30,
"version": "6",
"when": 1772150400000,
"tag": "0030_remove_task_approval",
"breakpoints": true
}
]
}