feat(research): isolate candidates and add reviewed paper promotion

This commit is contained in:
Boki 2026-10-24 18:46:55 -04:00
parent 26b97265c6
commit 25b5cbf481
128 changed files with 13038 additions and 1388 deletions

View file

@ -98,12 +98,14 @@ export class PostgresCanonicalExecutionRepository implements CanonicalExecutionR
config: account.checkpoint.config,
definitions: account.definitions,
hostConfiguration: account.host?.configuration ?? null,
deployment: account.host?.deployment ?? null,
}) !==
canonicalJson({
identity: expected.identity,
config: expected.checkpoint.config,
definitions: expected.definitions,
hostConfiguration: expected.host?.configuration ?? null,
deployment: expected.host?.deployment ?? null,
})
) {
throw new ExecutionConflictError(

View file

@ -1,6 +1,7 @@
/** Durable custody contracts. Financial values and transitions belong to Rust. */
import { z } from 'zod';
import type { PostgresClient } from '@stock-bot/services';
import { paperDeploymentBindingSchema } from '@stock-bot/stock-config/paper-deployments';
import {
canonicalExecutionCheckpointSchema,
financialTransactionResultSchema,
@ -29,6 +30,7 @@ export const canonicalPaperHostSchema = z
.object({
version: z.literal(1),
configuration: paperConfigurationSchema,
deployment: paperDeploymentBindingSchema.optional(),
generation: z.string().min(1),
active: z.boolean(),
operatorHalted: z.boolean(),