Durable refund agents · Temporal workflows that call A2A agents, survive dead workers and move money once

A refund case is a Temporal workflow → four A2A agents (triage · ledger · policy · comms) on the platform's MCP gateway and LLM door → a person approves large refunds (durable timer, reminders, signal) → an idempotent, heartbeating refund activity → the customer reply · every step in Temporal's event history
PEOPLE + TEMPORAL · namespace temporal THE WORKFLOW · task queue refunds · namespace refunds A2A AGENTS · and the platform they use (projects 1 and 2) refund desk refunds.jainosoft.com · Keycloakstart · query status · signalonly mcp-admin can decide Temporal 1.32 (Helm) frontend · history · matching · workerevent history = the casedurable timers · signals Postgres persistence + visibilityUI: temporal.jainosoft.com (OIDC) the approver (alice)mcp-admin · reads policy's reasonssignal decide {approve, note} money ledgerrefunds(case_id PRIMARY KEY)ON CONFLICT DO NOTHING+ payment_attempts (audit) RefundWorkflow 1 · triageA2A → triage-agent 2 · lookupA2A → ledger-agent 3 · decideA2A → policy-agent 4 · a person?timer · reminders · signal 5 · issue_refundheartbeat 8 s · idempotent 6 · notifyA2A → comms-agent retries: agents 6× with backoff · refund 10× · an agent'sown error is final (non-retryable) · state readable by query worker Aworkflows + activitiestoken: refund-orchestratorcan die at any step worker Bsame task queuereplays history,continues the stepno step lost or doubled triage-agentmasks first, thenclassifies (auto)agent card ledger-agentorder via MCP,read-only SQLno model policy-agentrules decide;model explainshuman > $5,000 comms-agentreply draft with<PERSON> placeholdername filled later every agent: A2A 1.0 JSON-RPC (a2a-sdk 1.4) · bearer JWT checked in the agent needs realm role refund-orchestrator: 401 without a token, 403 with the wrong role · NetworkPolicy: workers only Presidio/mask · project 2email, phone →placeholders MCP gatewayproject 1 · CELops-db_query_readonly LLM door · project 2auto router · gemini-3.5-flash(-lite) · guardsbudget + ledger per identityservice-account-refund-agents two identities, two jobs refund-orchestrator (the workers): may call the four agents, nothing else on the platform refund-agents (the agents): mcp-user on the gateway and the LLM door; cannot call the agents rules decide money · models only write words MEASURED (recorded run) ·····
bhavishyajain545 · gcp-ai-temporal-a2a