a2a-source-edit: write agent.py

This commit is contained in:
a2a-cloud
2026-07-13 02:50:28 +00:00
parent d7ffedcea0
commit 56b61625ba

View File

@@ -759,7 +759,7 @@ class ProductionIncidentCommander(A2AAgent[CommanderConfig, NoAuth]):
approval_acknowledgement: str,
dry_run: bool = True,
stop_on_failure: bool = True,
) -> ExecutionResult:
) -> dict[str, Any]:
await emit_phase(ctx, "approval_gate")
if approval_acknowledgement != APPROVAL_ACK:
result = ExecutionResult(incident_id=incident_id, status="denied", dry_run=dry_run, approval_provenance={"accepted": False, "reason": "approval acknowledgement mismatch"}, step_results=[], final_incident_state="unchanged", artifact_paths=[f"outputs/incidents/{incident_id}/execution.json"])