The Agentic Flow I Designed Versus the Actual Flow: And How I Discovered It Using OpenTelemetry
summary
Built three agents on AWS AgentCore using strands with persistent state in DynamoDB, emit OpenTelemetry/X-Ray traces, convert traces with an X-Ray→XES converter, and run PM4Py to reconstruct flows. Process mining discovers a model with 100% fitness while the intended BPMN model only scores ~60% fitness, revealing that criminal-check events often occur before medical assessments. The toolkit and notebooks reproduce the issue and show that tightening the system prompt and agent graph reduces the unwanted branching.
AI-written summary · about
chapters (10)
- 0:00Introduction and background
- 1:11Agentic flow versus intended flow
- 5:27Agentic patterns and workflows
- 9:39Process mining fundamentals
- 17:28Trusteeship agent example
- 21:00Discovered vs intended process
- 24:58Key takeaways and GitHub repo
- 25:22Q&A on OpenTelemetry
- 26:02Q&A on model drift origins
- 27:05Q&A on graph-based agents
