From fda145246c845d7a43bff40d1f04613710fd1d27 Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Mon, 13 Jul 2026 03:17:12 +0000 Subject: [PATCH] a2a-source-edit: write agent.py --- agent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent.py b/agent.py index 2cc7af6..e712105 100644 --- a/agent.py +++ b/agent.py @@ -633,7 +633,8 @@ class CustomerIntegrationEngineer(A2AAgent[CustomerIntegrationEngineerConfig, No warnings.append(f"delivery actions require approval_phrase={APPROVAL_PHRASE!r} and plan_digest={digest}") if approval_required and approval_valid: warnings.append("approval validated for the listed plan, but this agent still does not deploy, merge, or modify customer systems") - handoff = _render_handoff(request, digest, approval_required, approval_valid) + handoff_request = request.model_copy(update={"dry_run": dry_run}) + handoff = _render_handoff(handoff_request, digest, approval_required, approval_valid) path = f"{_integration_base(request.integration_id)}/handoff.md" artifact = await _write_workspace_text(ctx, path, handoff, "text/markdown") audit.append(_audit("handoff_completed", request.integration_id, {"handoff": path, "approval_required": approval_required, "approval_valid": approval_valid}))