Pitfalls & Lessons Learned
A catalog of non-obvious problems met while building this SDK, many of them found by the dogfooding passes. Each entry documents a real issue and what to do instead. They apply as much to an agent, a custom store or a custom transport you write on top of the SDK as to the SDK itself.
| Page | Read it when you are |
|---|---|
| Serialization and validation | Defining wire types, writing serde attributes, or validating what an executor emits |
| HTTP, streaming and transports | Working with hyper bodies, SSE, WebSocket, gRPC, or a REST dispatcher |
| Async, cancellation and shutdown | Writing executors, background tasks, locks, or shutdown paths |
| Security and resource limits | Accepting webhook URLs, bounding stores and caches, or building SQL |
| Pitfalls for contributors | Working in this repository: Cargo workspaces, tests, mutation testing, matching CI |
| Fixed defects | Looking up a defect that has been fixed; kept as history |
Next Steps
- Architecture Decision Records — Design decisions behind these choices
- Configuration Reference — All tunable parameters