"""Robot helper: verify TransformExecutor blocks import in sandbox.""" from cleveragents.tool.wrapping import TransformExecutionError, TransformExecutor code = 'def transform(x):\n import os\n return {"passed": True}\n' t = TransformExecutor(code, "test/s") ok = False try: t.execute({}) except TransformExecutionError: ok = True print(f"blocked={ok}")