pi-mono/packages/durable/docs
Mario Zechner da866ada17 feat(durable): keep each conversation's context in memory; Durable Object SQLite adapter
runtime.context() keeps each conversation's last read range and derived
view. A later read by any of the conversation's tasks with the same head
marker scans and derives only the entries committed since, so a
generation no longer rereads and re-derives the whole transcript for
each model request. Busy conversations keep the range; idle ones for
settings.contextRetentionMs (default ten minutes), checked on task
changes and by one unreferenced timer where the runtime supports it.
Kept entries are frozen; each read returns its own view arrays.

Add openDurableObjectSqliteStorage(ctx.storage) in
@earendil-works/pi-durable/storage/sqlite/cloudflare: SQLite storage on
a SQLite-backed Cloudflare Durable Object, without per-row copies.
2026-10-06 20:58:35 +02:00
..
chord-delta-findings.md feat(chord): make immutable delta tracker canonical 2026-09-24 15:07:12 +02:00
pico-v5-chord-usage.md fix(durable): publish README and changelog, link the spec, add default export condition 2026-10-01 20:23:30 +02:00
pico-v5-handoff.md fix(durable): publish README and changelog, link the spec, add default export condition 2026-10-01 20:23:30 +02:00
spec.md feat(durable): keep each conversation's context in memory; Durable Object SQLite adapter 2026-10-06 20:58:35 +02:00