From b14b225befdfbde5ca1b0d214e1f29bd5e90d12c Mon Sep 17 00:00:00 2001 From: Colin Megill Date: Sat, 10 Oct 2026 13:24:44 -0700 Subject: [PATCH] routing check: approve the Delphi results reader import Lands on its own, as the routing guard requires, before the change that adds the reader. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_018NVGBuYCk4EZmiz4csUv9s --- server/characterization/routing/runtime.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/characterization/routing/runtime.cjs b/server/characterization/routing/runtime.cjs index b03cee4fd..ad32228e5 100644 --- a/server/characterization/routing/runtime.cjs +++ b/server/characterization/routing/runtime.cjs @@ -4,7 +4,7 @@ const vm = require('node:vm'); const ts = require('typescript'); const underscore = require('underscore'); const server = path.resolve(__dirname, '../..'); -const realFiles = new Set(['nextComment.ts','comment.ts','conversation.ts','db/sql.ts','utils/pca.ts','utils/commentClusters.ts','votes/convention.ts','utils/zinvite.ts']); +const realFiles = new Set(['nextComment.ts','comment.ts','conversation.ts','db/sql.ts','utils/pca.ts','utils/commentClusters.ts','votes/convention.ts','utils/zinvite.ts','utils/delphiResults.ts','utils/delphiResultSnapshot.ts','utils/delphiStorageCodec.ts']); exports.runtime = function runtime(client, fixture, mutate = null) { let now = 1700000000000; @@ -93,7 +93,7 @@ exports.runtime = function runtime(client, fixture, mutate = null) { if(spec==='@aws-sdk/client-dynamodb') return {DynamoDBClient:class {}}; if(spec==='@aws-sdk/lib-dynamodb') return {DynamoDBDocumentClient:{from:()=>dynamo},QueryCommand:class {constructor(input){this.input=input;}}}; if(spec==='@google-cloud/translate') return {v2:{Translate:class {async translate(txt,lang){observation.translations++;return [`${lang}: ${txt}`];}}}}; - if(!['lru-cache','sql','zlib','crypto'].includes(spec)) throw Error(`unapproved external import ${spec}`); + if(!['lru-cache','sql','zlib','crypto','async_hooks'].includes(spec)) throw Error(`unapproved external import ${spec}`); return require(spec); }; const math=Object.create(Math); math.random=()=>{const n=0.625;observation.draws.push(n);return n;};