Lint rule: block new UPDATE tasks SET status outside advanceTaskPhase (B2 Phase 1 step 5/5)

This commit is contained in:
ZacharyZhang-NY committed 2026-04-20 13:00:53 -04:00
1 parent ab4afba9c7
commit 411294afa6
4 files changed
+41

No files matched your search

+1
View File
@@ -422,6 +422,7 @@ export class AppDatabaseBase {
interruptedCount = Number(result.changes);
if (interruptedCount > 0) {
this.db.prepare(
// eslint-disable-next-line no-restricted-syntax -- B2 Phase 1 grandfathered: crash-recovery sweep; trigger mirrors status→phase, step 3/5 already drops shadow leases below
`update tasks set status = 'blocked', updated_at = ? where id in (select task_id from runs where status = 'interrupted' and finished_at = ?) and status in ('in_progress', 'todo')`,
).run(ts, ts);
}