Green Pipeline, Broken Deploy: Runtime Data .dockerignore Drops
A file a graph reads at run time is a deployment contract, not a repository detail. The container is the only place that contract gets tested, and nobody runs the tests there.
A file a graph reads at run time is a deployment contract, not a repository detail. The container is the only place that contract gets tested, and nobody runs the tests there.
LangGraph hands every plain def node under ainvoke to the event loop's default thread pool — the same one asyncio.to_thread borrows from. Fill that pool with loops that never return and sync nodes queue behind them silently, no error, no timeout.
Take a session-level lock with pg_try_advisory_lock on a dedicated, unpooled connection, keyed by a stable hash of the graph name. The winner runs the tick; every other replica gets false at once and returns.
Five nights of shadow on zone A's pick lists. The second died part-way; the other four matched live line for line. Ask for four nights of agreement and the record fails — not because four nights disagreed, but because only three of them sit in a row.
The checkpointer restores state. It does not restore the world.
Wrap every model-backed node in a guard applied inside build(), so that whatever goto the node returns, the run goes to that node's checker and only the fields a model may write survive — the Command[Literal[...]] annotation is a drawing instruction, not a control.
A LangGraph thread id is the key the checkpointer stores a run's state under, so derive it from what the run is about — graph, mode, period, subject — and "run this" becomes "make sure this has run": a retry resumes the existing thread instead of starting a second.
Move PostgresSaver.setup() into a migration you commit, review and apply as the schema owner before deploy. Then let the application read the schema version at boot and refuse to start when the database is behind.
Shadow mode is not traffic splitting: it is a permission system where an unconfigured graph resolves to off, every node that can touch the world hands one gate an intent instead of acting, and live needs three separate yeses.
"Async by default" means communication and decisions happen in writing, on each person's own schedule, and a meeting is the deliberate exception rather than the baseline. The non-linear workday, where people split their day around their lives instead of 9-to-5, is what that policy makes possible. It comes after the policy. Grant the schedule before you build the policy and you don't get autonomy. You get always-on work with worse boundaries.
One thing up front: none of the sources behind this piece measures whether switching to async improves productivity, retention or burnout. What is measured is the cost of the synchronous default. Everything below about how to run an async team is practice that well-documented companies describe, not proven effect. Where a number is measured, I say so, and where a claim comes from a vendor, I say that too.