Vadim Larin —
found a bypass for Tool Result Policy = Blocked
Read-only live mirror of Archestra.AI Slack
👋Join the discussion withAI enthusiasts!true , raw tool call result gets into the model-facing LLM request, even though Result Policy = Blocked.// If agent configured to consider context untrusted from the beginning,// mark context as untrusted immediately and skip evaluationif (considerContextUntrusted) {logger.debug({ agentId },"[trustedData] evaluateIfContextIsTrusted: context marked untrusted by agent config",);return {toolResultUpdates: {},contextIsTrusted: false,usedDualLlm: false,dualLlmAnalyses: [],unsafeContextBoundary: {kind: "preexisting_untrusted",reason:initialUntrustedReason ??UNSAFE_CONTEXT_BOUNDARY_REASON.agentConfiguredUntrusted,},};}if (isBlocked) {// Tool result is blocked - replace with blocked messagetoolResultUpdates[toolCallId] =[Content blocked by policy${reason ? : ${reason} : ""}];`toolResultIsTrusted = false;