diff --git a/backend/src/app.module.ts b/backend/src/app.module.ts index 00e26595..12a8d602 100644 --- a/backend/src/app.module.ts +++ b/backend/src/app.module.ts @@ -1,3 +1,4 @@ +import { registerPrepareWorker } from './orchestration-worker/worker-registration'; import { RouterUsageModule } from './router-usage/router-usage.module'; import { runtimeReadRegistration } from './hermes-management/runtime-read.registration'; import { TasksModule } from './common/services/tasks.module'; @@ -45,6 +46,7 @@ import { Request, Response, NextFunction } from "express"; @Module({ imports: [ + ...registerPrepareWorker(), RouterUsageModule, // Deny-all registration: no request identity or runtime credentials are accepted yet. runtimeReadRegistration(), diff --git a/scripts/tests/rehearse_rollout.py b/scripts/tests/rehearse_rollout.py index 6176ff27..bad025c6 100644 --- a/scripts/tests/rehearse_rollout.py +++ b/scripts/tests/rehearse_rollout.py @@ -27,6 +27,8 @@ with tempfile.TemporaryDirectory(prefix='canina-rollout-') as d: query = "const {PrismaClient}=require('@prisma/client');const p=new PrismaClient();(async()=>{await p.product.findMany({take:1,include:{ingredientList:true,symptoms:true}});await p.supportConversation.findMany({take:1});await p.orchestrationTask.findMany({take:1,include:{runs:true,events:true,budgetLedger:true}});console.log('PASS: actual Prisma legacy catalog/support and v4 relation queries');})().catch(()=>{console.error('Prisma compatibility failed');process.exitCode=1}).finally(()=>p.$disconnect());" run(cmd[:-3]+['node','-e',query]) after=sql("SELECT table_name,column_name,data_type,is_nullable,column_default FROM information_schema.columns WHERE table_schema='public' AND table_name <> '_prisma_migrations' AND table_name NOT LIKE 'orchestration_%' ORDER BY 1,2;") + # Compare only the exact pre-existing table set; new additive tables are not legacy. + after='\n'.join(line for line in after.splitlines() if line.split('|',1)[0] in tables)+'\n' assert before==after,'Legacy column definitions changed' for table in tables: sql(f'SELECT * FROM "{table}" LIMIT 0;') v4=sql("SELECT tablename FROM pg_tables WHERE schemaname='public' AND tablename LIKE 'orchestration_%' ORDER BY 1;").splitlines()