From cc0a37e9faeb3e15c7a0681858b6d306195dcb12 Mon Sep 17 00:00:00 2001 From: a2a-platform Date: Sat, 18 Jul 2026 12:28:53 +0000 Subject: [PATCH] deploy --- .a2a/agent.dsl.json | 16 ++-------------- a2a.yaml | 2 +- agent.py | 6 +++--- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/.a2a/agent.dsl.json b/.a2a/agent.dsl.json index e348bc2..e9efbba 100644 --- a/.a2a/agent.dsl.json +++ b/.a2a/agent.dsl.json @@ -84,18 +84,7 @@ } } ], - "capabilities": { - "self_healing": { - "enabled": true, - "consecutive_failures": 1, - "window_seconds": 300, - "cooldown_seconds": 300, - "max_repairs_per_day": 2, - "max_turns": 30, - "deployment_timeout_seconds": 1800, - "require_tests": true - } - }, + "capabilities": {}, "input_modes": [ "application/json" ], @@ -134,8 +123,7 @@ "wants_cp_jwt": false, "platform_resources": { "memory": null, - "databases": [], - "mailbox": null + "databases": [] }, "endpoints": [], "apt_packages": [] diff --git a/a2a.yaml b/a2a.yaml index 0741c45..13def89 100644 --- a/a2a.yaml +++ b/a2a.yaml @@ -8,7 +8,7 @@ self_healing: enabled: true consecutive_failures: 1 window_seconds: 300 - cooldown_seconds: 300 + cooldown_seconds: 60 max_repairs_per_day: 2 max_turns: 30 deployment_timeout_seconds: 1800 diff --git a/agent.py b/agent.py index 80ae633..72a859a 100644 --- a/agent.py +++ b/agent.py @@ -23,7 +23,7 @@ class SelfHealingDemo(A2AAgent): scenario: str = "normal", ) -> dict[str, object]: if scenario == "controlled-failure": - # Repaired: the controlled invoice total handler previously raised a - # RuntimeError. It now returns the safe recovered result. - return {"ok": True, "scenario": scenario, "result": "recovered"} + # Intentional smoke fixture: the regression test specifies the safe + # result. The production self-healing worker must repair this source. + raise RuntimeError("SELF_HEAL_SMOKE: controlled invoice total handler crashed") return {"ok": True, "scenario": scenario, "result": "healthy"}