mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-08 16:02:20 +02:00
feat(runtime): bind remote and owned resources to authority
This commit is contained in:
@@ -517,6 +517,12 @@ async def execute_api_call(
|
||||
if not integration:
|
||||
return {"error": f"Integration not found: {integration_id}", "exit_code": 1}
|
||||
|
||||
from src.agent_runtime.remote_resources import active_backend_operation, integration_resource
|
||||
bound = active_backend_operation()
|
||||
if bound is not None and bound.resource != integration_resource(integration):
|
||||
return {"error": "Integration resource identity changed", "exit_code": 1,
|
||||
"failure_kind": "resource_identity_denied"}
|
||||
|
||||
if not integration.get("enabled", True):
|
||||
return {"error": f"Integration '{integration.get('name')}' is disabled", "exit_code": 1}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user