From 5e32328f67d234ef3cb8f684928efe83fbe2c7d6 Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Mon, 13 Jul 2026 02:50:53 +0000 Subject: [PATCH] a2a-source-edit: write agent.py --- agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent.py b/agent.py index 4536bf3..3e21e53 100644 --- a/agent.py +++ b/agent.py @@ -747,7 +747,7 @@ class ProductionIncidentCommander(A2AAgent[CommanderConfig, NoAuth]): plan = RemediationPlan(incident_id=incident_id, status="planned" if any(s.action_type in ALLOWED_EXECUTION_ACTIONS for s in steps) else "blocked", objective=objective, change_window=change_window, steps=steps, forbidden_actions=forbidden_actions, required_approvals=["execute_remediation requires approval_acknowledgement exactly I_APPROVE_THE_LISTED_STEPS and approved_step_ids"], artifact_paths=[f"outputs/incidents/{incident_id}/remediation-plan.json"], receipts=[{"mutation": "none", "safety": "planning skill never executes changes"}]) await workspace_write_json(ctx, f"outputs/incidents/{incident_id}/remediation-plan.json", plan) await emit_phase(ctx, "approval_gate", status="approval_required") - return plan + return plan.model_dump(mode="json") @a2a.tool(description="Execute only explicitly approved allowlisted reversible remediation steps. Defaults to dry run and fails closed.", timeout_seconds=900, cost_class="incident-execution", grant_mode="read_write_overlay", grant_write_prefixes=("outputs/incidents/",), grant_allow_patterns=("outputs/incidents/**",)) async def execute_remediation(