Skip to content

Design notes

Technical deep dives backing the architecture in Architecture and the decision records in Decisions.

Notes

Note What it covers
Write ordering without a lock Why LangGraph's per-run ordering lets the saver drop upstream's global lock
Patch placement Where patch bytes and side rows live (ADR-0008)
Patch write and read paths Patch wire format, zstd parameters, base cache, and rehydrate
Second-writer fence and thread expiry Optimistic concurrency token (opc_thread_head) and idle-thread sweeper
Thread listing alist_threads pagination, metadata filter, and partial index rationale
Core-set benchmark results Measurements across chat, fleet, large-thread, retention, and subgraph workloads
Cold-pool put planning cost Why a fresh pool pays Postgres planning time on DeltaChannel puts
Concurrent put profile Where time is spent under 8-thread concurrency on one event loop
Optimization backlog Flagged performance/allocation candidates, items to confirm, and ruled-out ideas

Labels on numbers

Numbers in these notes state their provenance:

  • measured — produced by a test or benchmark harness cited in the text.
  • inferred — reasoned from code, documentation, or partial measurements.
  • claimed — stated without local measurement.