Q54: later sessions see what earlier ones already did and where they failed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ec2698575d
commit
e809cfefea
8 files changed
+146
-2
No files matched your search
@@ -0,0 +1,16 @@
|
||||
export const runActionsSchema = `
|
||||
create table if not exists run_actions (
|
||||
id text primary key,
|
||||
org_id text not null references organizations(id) on delete cascade,
|
||||
run_id text not null references task_runs(id) on delete cascade,
|
||||
task_id text not null references tasks(id) on delete cascade,
|
||||
tool_name text not null,
|
||||
arguments_excerpt text not null,
|
||||
result_excerpt text not null,
|
||||
created_at text not null
|
||||
);
|
||||
create index if not exists idx_run_actions_task on run_actions(task_id);
|
||||
|
||||
insert into schema_migrations(version, name, applied_at)
|
||||
values (70, 'run_actions', datetime('now'));
|
||||
`;
|
||||
@@ -68,6 +68,7 @@ import { taskWritingModeSchema } from "./migrations/066-task-writing-mode";
|
||||
import { taskRunBudgetSchema } from "./migrations/067-task-run-budget";
|
||||
import { taskReviewLinkSchema } from "./migrations/068-task-review-link";
|
||||
import { goalStallSchema } from "./migrations/069-goal-stall";
|
||||
import { runActionsSchema } from "./migrations/070-run-actions";
|
||||
|
||||
interface Migration {
|
||||
version: number;
|
||||
@@ -145,6 +146,7 @@ const MIGRATIONS: Migration[] = [
|
||||
{ version: 67, name: "task_run_budget", sql: taskRunBudgetSchema },
|
||||
{ version: 68, name: "task_review_link", sql: taskReviewLinkSchema },
|
||||
{ version: 69, name: "goal_stall", sql: goalStallSchema },
|
||||
{ version: 70, name: "run_actions", sql: runActionsSchema },
|
||||
];
|
||||
|
||||
const SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1].version;
|
||||
|
||||
Reference in new issue
Block a user