mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-09-24 09:02:19 +02:00
fix(agent): close untrusted-context gate bypasses
This commit is contained in:
@@ -8,13 +8,16 @@ import asyncio
|
||||
import json
|
||||
|
||||
from src.agent_tools import ToolBlock, TOOL_TAGS # import first to avoid circular
|
||||
from src.tool_execution import execute_tool_block
|
||||
from src.tool_execution import NO_TOOL_SECURITY_CONTEXT, execute_tool_block
|
||||
from src.tool_index import ALWAYS_AVAILABLE, BUILTIN_TOOL_DESCRIPTIONS
|
||||
from src.tool_security import is_public_blocked_tool
|
||||
|
||||
|
||||
def _run(content):
|
||||
return asyncio.run(execute_tool_block(ToolBlock("update_plan", content)))
|
||||
return asyncio.run(execute_tool_block(
|
||||
ToolBlock("update_plan", content),
|
||||
security_context=NO_TOOL_SECURITY_CONTEXT,
|
||||
))
|
||||
|
||||
|
||||
def test_valid_plan_returns_marker_and_counts():
|
||||
|
||||
Reference in New Issue
Block a user