
I built a durable execution protocol - what if Temporal were designed for AI agents?
Every time I needed a human to approve something mid-workflow, I'd build the same glue - webhook endpoint, email sender, polling loop, Redis for state, retry logic. 200 lines before the actual business logic. So I built AXME - an intent-based protocol (AXP) and managed service for operations that finish later. Submit once, track lifecycle, complete later - with retries, timeouts, human approvals, and delivery guarantees built in. The question that started it What if Temporal were designed today, knowing that half your "services" will be AI agents that need human sign-off before proceeding? Before and after Before (polling + webhooks + Redis job state): response = requests.post("/generate", json=data) job_id = response.json()["job_id"] while True: status = requests.get(f"/status/{job_id}") if status.json()["done"]: break time.sleep(5) After (intent lifecycle): intent_id = client.send_intent(to="agent://my-corp/report-service", ...) result = client.wait_for(intent_id) # real-time SSE, no
Continue reading on Dev.to Webdev
Opens in a new tab




