feat(runtime): enforce server request authority

This commit is contained in:
Alexandre Teixeira
2026-10-01 18:35:41 +01:00
parent 05c6cfcfa1
commit 9d0257134f
37 changed files with 1683 additions and 39 deletions
+4
View File
@@ -17,6 +17,7 @@ import tempfile
from types import SimpleNamespace
import pytest
from tests.runtime_evidence_helpers import server_authorized_executor
from src.tool_execution import (
NO_TOOL_SECURITY_CONTEXT,
@@ -31,6 +32,9 @@ from src.tool_execution import (
)
_execute_tool_block = server_authorized_executor(_execute_tool_block)
async def execute_tool_block(*args, **kwargs):
kwargs.setdefault("security_context", NO_TOOL_SECURITY_CONTEXT)
return await _execute_tool_block(*args, **kwargs)