Q130: every open task says why it is not moving, when it resumes, and who must act

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 21:27:29 -04:00
1 parent 271a83a7bc
commit 074a1fc8e3
14 files changed
+255 -7

No files matched your search

@@ -0,0 +1,7 @@
// Why the heartbeat last failed to queue an open task; cleared when it next queues it.
export const taskEnqueueErrorSchema = `
alter table tasks add column enqueue_error text;
insert into schema_migrations(version, name, applied_at)
values (93, 'task_enqueue_error', datetime('now'));
`;
+2
View File
@@ -91,6 +91,7 @@ import { fileVersionsSchema } from "./migrations/089-file-versions";
import { erasureReceiptsSchema } from "./migrations/090-erasure-receipts";
import { requestPurposeSchema } from "./migrations/091-request-purpose";
import { runActionTargetsSchema } from "./migrations/092-run-action-targets";
import { taskEnqueueErrorSchema } from "./migrations/093-task-enqueue-error";
interface Migration {
version: number;
@@ -191,6 +192,7 @@ const MIGRATIONS: Migration[] = [
{ version: 90, name: "erasure_receipts", sql: erasureReceiptsSchema },
{ version: 91, name: "request_purpose", sql: requestPurposeSchema },
{ version: 92, name: "run_action_targets", sql: runActionTargetsSchema },
{ version: 93, name: "task_enqueue_error", sql: taskEnqueueErrorSchema },
];
const SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1].version;