Nothing here yet.
Thanks Ahmet, appreciate you reading it that closely. One thing we hit in practice: if you set the tenant context with SET LOCAL inside the transaction, it can't leak to the next request on a pooled connection. A plain SET can, and that one is easy to miss with PgBouncer. Have you run RLS together with pgvector at scale? Curious whether the policy filter affected recall on the ANN index for you.
Great framing, thanks Adam. That distinction is the real decision, and I should have made it explicit in the post. If checkpoints are only for resuming threads, either store is fine and the main work is a retention policy, because every step writes one. If you want to replay and evaluate runs, one caveat: the checkpointer serializes state for resuming, not for querying. Questions like "which threads called tool X and then failed" get awkward against raw checkpoints in either database. What has worked better is writing a small run/event record alongside the checkpoint (thread ID, step, node, tool calls, latency, outcome) with a schema you control. At that point PostgreSQL has the edge for me: you can join those records to users and documents and query them with plain SQL. MongoDB is still a good fit if your team lives in aggregation pipelines. So resume-only, pick what your team runs. Replay and evals, design the run record first and let that choose the store. Are you treating checkpoints as your eval source today, or logging traces separately?
AI Developer Thanks for flagging this! The example relies on the response stack’s cancellation handling, with no separate disconnect polling. Quiet-period cancellation needs testing through the deployed proxy. Agreed on resume support—event IDs would also need server-side replay and explicit reconnect logic for this fetch client.