From 74b0d9eb693816895d4bd55c6c51d566441f1e5f Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 28 Jun 2026 15:41:05 -0300 Subject: [PATCH] Respect no-auth LearnHouse operations --- agent.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/agent.py b/agent.py index df45617..9d3cd98 100644 --- a/agent.py +++ b/agent.py @@ -376,12 +376,7 @@ class Learnhouse(A2AAgent): if requirements is None: requirements = ROOT_SECURITY if requirements == []: - token = _consumer_secret_optional(ctx, "LEARNHOUSE_API_KEY") - if not token: - raise ConsumerSetupMissing( - "operation requires consumer setup secret(s): LEARNHOUSE_API_KEY" - ) - return {"authorization": _learnhouse_auth_header(token)}, {} + return {}, {} missing: list[str] = [] for requirement in requirements or []: if not isinstance(requirement, dict) or not requirement: