From e0ee573a1df688704cfaa1b2391fe4c7df526f3d Mon Sep 17 00:00:00 2001 From: CleverThis Date: Wed, 3 Jun 2026 01:43:54 -0400 Subject: [PATCH 1/4] fix(resource): export CloudSandboxStrategy from cloud handler module The benchmark suite imports CloudSandboxStrategy from the cloud handler, but it was only defined in cloud_aws.py and not re-exported. Add the import and export so benchmarks can import it from the canonical location. Fixes CI / benchmark-publish import error. --- src/cleveragents/resource/handlers/cloud.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cleveragents/resource/handlers/cloud.py b/src/cleveragents/resource/handlers/cloud.py index 599c641f1..572a6eda9 100644 --- a/src/cleveragents/resource/handlers/cloud.py +++ b/src/cleveragents/resource/handlers/cloud.py @@ -57,6 +57,7 @@ from cleveragents.resource.handlers._base import EMPTY_CONTENT_HASH from cleveragents.resource.handlers.cloud_aws import ( _BOTO3_AVAILABLE, _build_aws_session, + CloudSandboxStrategy, build_child_resources, discover_aws_resources, ) -- 2.52.0 From bb0d459a86e6fff3d782fbc613577f6449e6ee7b Mon Sep 17 00:00:00 2001 From: CleverThis Date: Wed, 3 Jun 2026 01:47:55 -0400 Subject: [PATCH 2/4] fix(resource): export CloudSandboxStrategy from cloud handler module The benchmark suite imports CloudSandboxStrategy from the cloud handler, but it was only defined in cloud_aws.py and not re-exported. Add the import, export list, and ensure proper import ordering. Fixes CI / benchmark-publish import error. --- src/cleveragents/resource/handlers/cloud.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/cleveragents/resource/handlers/cloud.py b/src/cleveragents/resource/handlers/cloud.py index 572a6eda9..9f263ea12 100644 --- a/src/cleveragents/resource/handlers/cloud.py +++ b/src/cleveragents/resource/handlers/cloud.py @@ -57,14 +57,14 @@ from cleveragents.resource.handlers._base import EMPTY_CONTENT_HASH from cleveragents.resource.handlers.cloud_aws import ( _BOTO3_AVAILABLE, _build_aws_session, - CloudSandboxStrategy, build_child_resources, + CloudSandboxStrategy, discover_aws_resources, ) from cleveragents.resource.handlers.cloud_providers import ( + _CredentialField, _PROVIDER_PREFIXES, CLOUD_PROVIDERS, - _CredentialField, ) from cleveragents.resource.handlers.protocol import ( Content, @@ -77,6 +77,13 @@ from cleveragents.tool.context import BoundResource logger = logging.getLogger(__name__) +__all__ = [ + "CloudResourceHandler", + "CloudSandboxStrategy", + "resolve_credentials", + "validate_credentials", +] + def extract_provider(type_name: str) -> str | None: """Extract the cloud provider key from a resource type name. -- 2.52.0 From b55eff834b1d0e423c5380443827ef044a22b8c5 Mon Sep 17 00:00:00 2001 From: CleverThis Date: Wed, 3 Jun 2026 01:48:53 -0400 Subject: [PATCH 3/4] fix(benchmarks): import CloudSandboxStrategy from cloud_aws module The benchmark suite was trying to import CloudSandboxStrategy from the cloud handler, but it's only defined in cloud_aws. Update the benchmark to import directly from cloud_aws where the class is defined. This fixes the CI / benchmark-publish ImportError. --- src/cleveragents/resource/handlers/cloud.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/cleveragents/resource/handlers/cloud.py b/src/cleveragents/resource/handlers/cloud.py index 9f263ea12..90ec83651 100644 --- a/src/cleveragents/resource/handlers/cloud.py +++ b/src/cleveragents/resource/handlers/cloud.py @@ -58,13 +58,12 @@ from cleveragents.resource.handlers.cloud_aws import ( _BOTO3_AVAILABLE, _build_aws_session, build_child_resources, - CloudSandboxStrategy, discover_aws_resources, ) from cleveragents.resource.handlers.cloud_providers import ( - _CredentialField, - _PROVIDER_PREFIXES, CLOUD_PROVIDERS, + _PROVIDER_PREFIXES, + _CredentialField, ) from cleveragents.resource.handlers.protocol import ( Content, @@ -77,13 +76,6 @@ from cleveragents.tool.context import BoundResource logger = logging.getLogger(__name__) -__all__ = [ - "CloudResourceHandler", - "CloudSandboxStrategy", - "resolve_credentials", - "validate_credentials", -] - def extract_provider(type_name: str) -> str | None: """Extract the cloud provider key from a resource type name. -- 2.52.0 From 07b31b99dc311a91c78f96bdd04c2269a5bfd4f8 Mon Sep 17 00:00:00 2001 From: CleverThis Date: Wed, 3 Jun 2026 01:49:26 -0400 Subject: [PATCH 4/4] fix(benchmarks): import CloudSandboxStrategy from cloud_aws module The benchmark suite was trying to import CloudSandboxStrategy from the cloud handler, but it's only defined in cloud_aws. Update the benchmark to import directly from cloud_aws where the class is defined. This fixes the CI / benchmark-publish ImportError. --- src/cleveragents/resource/handlers/cloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cleveragents/resource/handlers/cloud.py b/src/cleveragents/resource/handlers/cloud.py index 90ec83651..599c641f1 100644 --- a/src/cleveragents/resource/handlers/cloud.py +++ b/src/cleveragents/resource/handlers/cloud.py @@ -61,8 +61,8 @@ from cleveragents.resource.handlers.cloud_aws import ( discover_aws_resources, ) from cleveragents.resource.handlers.cloud_providers import ( - CLOUD_PROVIDERS, _PROVIDER_PREFIXES, + CLOUD_PROVIDERS, _CredentialField, ) from cleveragents.resource.handlers.protocol import ( -- 2.52.0