From cd719a1b191af8c45c4e0cf9f70dd9cc9884f725 Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 28 Sep 2026 15:07:35 -0500 Subject: [PATCH] Handle manifest-free verified builtin providers in policy staging Co-Authored-By: Paperclip --- packages/paperclip-runner/src/drivers/acpx/runtime-host.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/paperclip-runner/src/drivers/acpx/runtime-host.ts b/packages/paperclip-runner/src/drivers/acpx/runtime-host.ts index ec3229985b4..1f2d83919c2 100644 --- a/packages/paperclip-runner/src/drivers/acpx/runtime-host.ts +++ b/packages/paperclip-runner/src/drivers/acpx/runtime-host.ts @@ -412,7 +412,12 @@ export class AcpxRuntimeHost { ...(options.providerPolicy === undefined ? {} : { providerPolicy: { ...options.providerPolicy, systemInstructions: boundedInstructions(options.systemInstructions), - protectedPaths: [...(options.providerPolicy.protectedPaths ?? []), dirname(installation.agentServerPackageJsonPath)], + protectedPaths: [ + ...(options.providerPolicy.protectedPaths ?? []), + ...(installation.agentServerPackageJsonPath === null + ? [] + : [dirname(installation.agentServerPackageJsonPath)]), + ], } }), }), dependencies.retainAdmissionCleanup,