Q128: every model call of a run is recorded with its purpose and listed in the run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 20:55:18 -04:00
1 parent 1f484df894
commit 6afd7bef2a
25 files changed
+189 -22

No files matched your search

@@ -0,0 +1,8 @@
// Requests from before purposes were recorded stay 'unrecorded' rather than being guessed.
export const requestPurposeSchema = `
alter table provider_requests add column purpose text not null default 'unrecorded';
create index if not exists provider_requests_run on provider_requests(task_run_id);
insert into schema_migrations(version, name, applied_at)
values (91, 'request_purpose', datetime('now'));
`;
+2
View File
@@ -89,6 +89,7 @@ import { goalAuditorSchema } from "./migrations/087-goal-auditor";
import { hostAccessNoteSchema } from "./migrations/088-host-access-note";
import { fileVersionsSchema } from "./migrations/089-file-versions";
import { erasureReceiptsSchema } from "./migrations/090-erasure-receipts";
import { requestPurposeSchema } from "./migrations/091-request-purpose";
interface Migration {
version: number;
@@ -187,6 +188,7 @@ const MIGRATIONS: Migration[] = [
{ version: 88, name: "host_access_note", sql: hostAccessNoteSchema },
{ version: 89, name: "file_versions", sql: fileVersionsSchema },
{ version: 90, name: "erasure_receipts", sql: erasureReceiptsSchema },
{ version: 91, name: "request_purpose", sql: requestPurposeSchema },
];
const SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1].version;