deploy
This commit is contained in:
@@ -84,18 +84,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"capabilities": {
|
"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
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"input_modes": [
|
"input_modes": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
@@ -134,8 +123,7 @@
|
|||||||
"wants_cp_jwt": false,
|
"wants_cp_jwt": false,
|
||||||
"platform_resources": {
|
"platform_resources": {
|
||||||
"memory": null,
|
"memory": null,
|
||||||
"databases": [],
|
"databases": []
|
||||||
"mailbox": null
|
|
||||||
},
|
},
|
||||||
"endpoints": [],
|
"endpoints": [],
|
||||||
"apt_packages": []
|
"apt_packages": []
|
||||||
|
|||||||
2
a2a.yaml
2
a2a.yaml
@@ -8,7 +8,7 @@ self_healing:
|
|||||||
enabled: true
|
enabled: true
|
||||||
consecutive_failures: 1
|
consecutive_failures: 1
|
||||||
window_seconds: 300
|
window_seconds: 300
|
||||||
cooldown_seconds: 300
|
cooldown_seconds: 60
|
||||||
max_repairs_per_day: 2
|
max_repairs_per_day: 2
|
||||||
max_turns: 30
|
max_turns: 30
|
||||||
deployment_timeout_seconds: 1800
|
deployment_timeout_seconds: 1800
|
||||||
|
|||||||
6
agent.py
6
agent.py
@@ -23,7 +23,7 @@ class SelfHealingDemo(A2AAgent):
|
|||||||
scenario: str = "normal",
|
scenario: str = "normal",
|
||||||
) -> dict[str, object]:
|
) -> dict[str, object]:
|
||||||
if scenario == "controlled-failure":
|
if scenario == "controlled-failure":
|
||||||
# Repaired: the controlled invoice total handler previously raised a
|
# Intentional smoke fixture: the regression test specifies the safe
|
||||||
# RuntimeError. It now returns the safe recovered result.
|
# result. The production self-healing worker must repair this source.
|
||||||
return {"ok": True, "scenario": scenario, "result": "recovered"}
|
raise RuntimeError("SELF_HEAL_SMOKE: controlled invoice total handler crashed")
|
||||||
return {"ok": True, "scenario": scenario, "result": "healthy"}
|
return {"ok": True, "scenario": scenario, "result": "healthy"}
|
||||||
|
|||||||
Reference in New Issue
Block a user