23 s
an auto-approved case end to end: four A2A calls (triage, ledger, policy, comms), the refund, the reply
32 s
from killing the worker that had just moved the money to the case completing on the other worker (8 s heartbeat timeout, retry, then the comms agent); ~20 s in the earlier drill run
1
refund row per case, every time: the retry found the row (PRIMARY KEY case_id) and recorded "already refunded"
0
workflow state held in a worker: the approval wait is a durable timer with reminders, the decision a signal
401 / 403
what an agent answers without a token, and with a token that lacks the orchestrator role; a NetworkPolicy blocks every other pod
| step | what happens | where |
| open | the desk starts RefundWorkflow (id refund-<order>-<suffix>) on task queue refunds; the desk keeps no state, it lists workflows (visibility) and reads them with a query | Temporal |
| triage | activity call_agent sends an A2A message (a data part) to triage-agent; the agent masks personal data with Presidio, then classifies with the auto route | A2A · LLM door |
| lookup | ledger-agent runs one read-only SQL through the MCP gateway as service-account-refund-agents; no model | MCP gateway |
| decide | policy-agent: rules (not found, already returned, outside 30 days unless damaged, above $5,000 → a person, else approve); the model only writes the explanation | A2A · LLM door |
| a person | wait_condition with a timeout: a reminder activity each interval; signal decide from an mcp-admin on the desk; no answer by the deadline means deny | Temporal timer + signal |
| refund | issue_refund: heartbeats every 2 s (8 s timeout), inserts refunds(case_id PRIMARY KEY) … ON CONFLICT DO NOTHING; a retry that finds the row returns it | worker · Postgres |
| notify | comms-agent drafts the reply with a <PERSON> placeholder; the workflow fills in the first name | A2A · LLM door |
| symptom | cause | fix |
| Temporal Web UI signed in, then rendered nothing | the frontend calls itself through publicClient; via its own ClusterIP Service that hairpin call timed out (20 s) on Autopilot | server.publicClientHostPort: temporal-frontend-headless:7233 |
| an A2A agent answered any caller | a2a-sdk 1.x declares security schemes in the card but does not check tokens | the agent verifies the Keycloak JWT and the realm role itself; NetworkPolicy as the second lock |
ledger failed: could not convert '2.**** **** **** 8889' | the gateway masks personal data in results; a long decimal looked like a card number | return age_days as an integer |
| the reply said "order 81.0" | A2A data parts are protobuf Structs: every number is a double | cast ids back to int at the edge |
| a "money moved twice" test that proves nothing | killing the worker before the write only shows a retry | the drill waits for the refund row, then kills the writer; the retry must find it |