From c20b6b33c35f86332e46af7d7c1c2f7edd1401f6 Mon Sep 17 00:00:00 2001 From: Denozordec Date: Sun, 22 Nov 2026 13:06:53 +0700 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=82=D0=B5=D1=81=D1=82=D0=BE=D0=B2=D1=8B=D0=B5?= =?UTF-8?q?=20=D1=84=D0=B8=D0=BA=D1=81=D1=82=D1=83=D1=80=D1=8B=20=D0=B0?= =?UTF-8?q?=D0=B2=D1=82=D0=BE=D0=BD=D0=BE=D0=BC=D0=BD=D1=8B=D1=85=20=D0=BF?= =?UTF-8?q?=D0=BB=D0=B0=D0=BD=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/modules/mcp/routing-controller-overlap.test.ts | 2 ++ backend/src/services/vrf-execution-diagnostic.test.mjs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/modules/mcp/routing-controller-overlap.test.ts b/backend/src/modules/mcp/routing-controller-overlap.test.ts index 653387ea..baa2e245 100644 --- a/backend/src/modules/mcp/routing-controller-overlap.test.ts +++ b/backend/src/modules/mcp/routing-controller-overlap.test.ts @@ -6,6 +6,7 @@ import ts from "typescript" import { z } from "zod" import { routeAiControllerBlockReason, routeAiProfileSchema, usesScopedRouteAiContext } from "@mmapp/contracts/mcp-routing" import { fingerprint, McpError } from "./security.js" +import { hasUnattendedPlanAuthority } from "./policy.js" type Handler = { prepare?: (input: Record, context: unknown) => Promise>; execute?: (input: Record) => Promise } async function load(name: string, providers: Record) { @@ -47,6 +48,7 @@ async function fixture() { "./path-proof-purpose.js": { COMMUNITY_PATH_MAX_AGE_MS: 90000 }, "./routing-controller-fence.js": { saveControllerProfileCas: async () => { casWrites++; return { id: "saved", version: 1 } } }, "./routing-reservation-store.js": { createRoutingReservationStore: () => { throw new Error("Overlap-only fixture must not read or mutate routing charges") } }, + "./policy.js": { hasUnattendedPlanAuthority }, }) const register = profileModule.registerRoutingProfileActions as (register: (...args: unknown[]) => void) => void register((...args) => operations.set(String(args[0]), args.at(-1) as Handler)) diff --git a/backend/src/services/vrf-execution-diagnostic.test.mjs b/backend/src/services/vrf-execution-diagnostic.test.mjs index 06db5323..00871821 100644 --- a/backend/src/services/vrf-execution-diagnostic.test.mjs +++ b/backend/src/services/vrf-execution-diagnostic.test.mjs @@ -163,7 +163,7 @@ for(const mode of ['runtime-policy-entry','policy-authorize','executor-entry','e const error=Object.assign(Error('PRIVATE_RUNTIME_POLICY_FAILURE'),{code:'ECONNRESET'}),events=[] const env={failure:error,failAfterWrapper:mode==='after-wrapper',productionVrf:mode!=='non-production', operationId:id,connection:{owner_id:'owner',id:'connection'},serverIds:[1],evidence:{objects:[],snapshots:[{resource:'vrf',serverId:1,sourceProof:'a'.repeat(64)}]},serviceExecution:undefined,reservedStep:{}, - plan:{id:'plan',operation_id:'ros.vrf.create',operation_version:1,approved_by:'owner'},step:{kind:'ros',step:{serverId:1,resource:'vrf',action:'create',fields:{name:'customers',interfaces:'none'}}}, + plan:{id:'plan',operation_id:'ros.vrf.create',operation_version:1,approved_by:'owner',evidence:{sealed:'fixture-ciphertext'}},step:{kind:'ros',step:{serverId:1,resource:'vrf',action:'create',fields:{name:'customers',interfaces:'none'}}}, prefix:{async check(){}},async authorize(){},async authorizeCatalog(){if(mode==='policy-authorize')throw error},McpError,createVrfRuntimeDiagnosticBoundary:diagnostic.createVrfRuntimeDiagnosticBoundary, console:{error(raw){events.push(JSON.parse(raw));if(loggerThrows)throw Error('PRIVATE_LOGGER_FAILURE')}}, async executeRosStep(){throw error},