From 722192dd4b084533e3b94a74842e2a814848e42e Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Mon, 13 Jul 2026 03:16:32 +0000 Subject: [PATCH] a2a-source-edit: write agent.py --- agent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agent.py b/agent.py index edfce6b..7b3fc2f 100644 --- a/agent.py +++ b/agent.py @@ -550,7 +550,9 @@ class CustomerIntegrationEngineer(A2AAgent[CustomerIntegrationEngineerConfig, No @a2a.tool(description="Run dry-run or allowlisted acceptance checks using endpoint metadata and secret references", timeout_seconds=180, idempotent=True, max_retries=0, cost_class="deterministic") async def run_acceptance(self, ctx: RunContext[NoAuth], request: RunAcceptanceRequest) -> RunAcceptanceResult: - audit = [_audit("acceptance_started", request.integration_id, {"endpoint_tests": len(request.endpoint_tests), "dry_run": request.dry_run, "allow_network": request.allow_network})] + dry_run = _effective_dry_run(self, request.dry_run) + live_network_block = _live_network_unavailable_reason(self) + audit = [_audit("acceptance_started", request.integration_id, {"endpoint_tests": len(request.endpoint_tests), "dry_run": dry_run, "allow_network": request.allow_network})] await _emit(ctx, audit[-1]) contract_results = [_validate_one_contract(contract) for contract in request.contract_fixtures] step_results: list[AcceptanceStepResult] = []