pi-mono/packages/chord/test/next/store
Mario Zechner e5c6182bab feat(durable): group commit and batch Storage.commit
A Session no longer holds its line while a commit is stored. Commits that
arrive while one storage call is in flight go out together in the next call,
each with its own seq and outcome; a job runs until it touches a key an
unpublished commit wrote, then waits for that commit's publication. Outcomes
are delivered in line order; publication is in line order, one commit per
macrotask. The scheduler's decisions run as regions that record the keys they
read and rerun after a wait, with side effects only after a clean check.

Storage.commit(batches, receive, context) replaces commit(writes, adopt,
context): prefix semantics (Durable's own checks refuse a batch and keep the
ones before it; any other failure rejects the call), receipts per stored
batch, optional publishing() scope. Memory, SQLite, JSONL, IndexedDB and
StoreStorage implement it natively; StoreStorage through the new
ChordStore.commitSeries (one store transaction per call), replacing
commitInBatch.

A normal run makes no storage reads: bounded record cache, conversation
tails, task-document index, kept context ranges. A tool slot's running status
and a generation's attempt are stored with the next commit (12 instead of 14
commits per run).

One Harness with 128 conversations over storage with a 4 ms round trip: about
5 -> 440 agent runs per second. Design: packages/durable/docs/group-commit.md.
2026-10-30 10:41:11 +00:00
..
allocator.test.ts feat(chord,durable): Chord v2 slice 6b, Durable and jobs on the store 2026-10-28 19:18:30 +00:00
applier.test.ts feat(chord,durable): Chord v2 slice 6b, Durable and jobs on the store 2026-10-28 19:18:30 +00:00
apply-batch.test.ts feat(chord,durable): Chord v2 slice 6b, Durable and jobs on the store 2026-10-28 19:18:30 +00:00
archive.test.ts feat(chord): Chord v2 in src/next, experimental and not exported yet 2026-10-28 10:30:19 +00:00
catalog.test.ts feat(chord,durable): Chord v2 slice 6b, Durable and jobs on the store 2026-10-28 19:18:30 +00:00
claims.test.ts feat(chord,durable): Chord v2 slice 6b, Durable and jobs on the store 2026-10-28 19:18:30 +00:00
columns.test.ts feat(chord): Chord v2 in src/next, experimental and not exported yet 2026-10-28 10:30:19 +00:00
engine.test.ts feat(chord,durable): Chord v2 slice 6b, Durable and jobs on the store 2026-10-28 19:18:30 +00:00
evaluate.test.ts feat(chord): Chord v2 in src/next, experimental and not exported yet 2026-10-28 10:30:19 +00:00
export.test.ts feat(chord,durable): Chord v2 slice 6b, Durable and jobs on the store 2026-10-28 19:18:30 +00:00
expression.test.ts feat(chord): Chord v2 in src/next, experimental and not exported yet 2026-10-28 10:30:19 +00:00
import.test.ts feat(chord,durable): Chord v2 slice 6b, Durable and jobs on the store 2026-10-28 19:18:30 +00:00
json-column.test.ts feat(chord): Chord v2 in src/next, experimental and not exported yet 2026-10-28 10:30:19 +00:00
jsonl.test.ts feat(chord,durable): Chord v2 slice 6b, Durable and jobs on the store 2026-10-28 19:18:30 +00:00
outbox.test.ts feat(chord,durable): Chord v2 slice 6b, Durable and jobs on the store 2026-10-28 19:18:30 +00:00
query.test.ts feat(chord,durable): Chord v2 slice 6b, Durable and jobs on the store 2026-10-28 19:18:30 +00:00
refusal.test.ts feat(chord,durable): Chord v2 slice 6b, Durable and jobs on the store 2026-10-28 19:18:30 +00:00
rows.test.ts feat(chord): Chord v2 in src/next, experimental and not exported yet 2026-10-28 10:30:19 +00:00
sql.test.ts feat(chord,durable): Chord v2 slice 6b, Durable and jobs on the store 2026-10-28 19:18:30 +00:00
store.test.ts feat(durable): group commit and batch Storage.commit 2026-10-30 10:41:11 +00:00
table-changes.test.ts feat(chord,durable): Chord v2 slice 6b, Durable and jobs on the store 2026-10-28 19:18:30 +00:00
table-evolve.test.ts feat(chord): Chord v2 in src/next, experimental and not exported yet 2026-10-28 10:30:19 +00:00
table-handle.test.ts feat(chord): slice 7b, reload in the kernel 2026-10-30 08:09:06 +00:00
table-history.test.ts feat(chord): Chord v2 in src/next, experimental and not exported yet 2026-10-28 10:30:19 +00:00
table-migration.test.ts feat(chord): Chord v2 slice 7a, the dependency model 2026-10-29 11:40:57 +00:00
table-writes.test.ts feat(chord,durable): Chord v2 slice 6b, Durable and jobs on the store 2026-10-28 19:18:30 +00:00
table.test.ts feat(chord): Chord v2 in src/next, experimental and not exported yet 2026-10-28 10:30:19 +00:00
text.test.ts feat(chord): Chord v2 in src/next, experimental and not exported yet 2026-10-28 10:30:19 +00:00