pi-mono/packages/durable/test/examples
Mario Zechner 8b0caefc22 feat(durable,chord): publish commits at adoption, address-following watches, synchronous observers
Durable publishes a stored commit inside Storage.commit's adopt: the
telemetry events, its own observers (document watches, conversation
views, task graph, scheduler, waits), and a dispatch of host
subscribeCommits listeners one microtask later, before every wait and
abort the commit triggers. A commit the storage rejects after adoption is
published before the Session fails; a throwing telemetry adapter is
reported as host_error "telemetry" instead of rejecting a durable commit.

Chord's watch listeners take one change object, { value, ops, retired }
({ value } for native watches); retirement is a flag, not an end.
Durable's document watches follow their address, and a task document's
watch ends after its retirement call. New synchronous observers for
adapters: observeDoc, observeConversation, observeTaskGraph; the watches
are built on them. The env file watcher's change type is renamed
FileChange.
2026-10-26 20:44:34 +00:00
..
00-conversation.ts feat(durable): first runnable chat turn (Package 15) 2026-09-29 14:08:28 +02:00
01-documents.ts feat: checkpointWhen is required on Durable document definitions 2026-10-19 18:17:42 +00:00
02-forks.ts feat: checkpointWhen is required on Durable document definitions 2026-10-19 18:17:42 +00:00
03-owned-conversations.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
04-watches.ts feat(durable,chord): publish commits at adoption, address-following watches, synchronous observers 2026-10-26 20:44:34 +00:00
05-harness.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
06-configuration.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
07-harness-conversations.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
08-context.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
09-registry-reload.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
10-extension-state.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
11-tasks.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
12-recovery.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
13-chat.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
14-system-prompt.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
15-real-model.ts feat(durable,chord): publish commits at adoption, address-following watches, synchronous observers 2026-10-26 20:44:34 +00:00
16-coding-tools.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
17-print.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
18-json.ts feat(durable,chord): publish commits at adoption, address-following watches, synchronous observers 2026-10-26 20:44:34 +00:00
19-inbox.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
20-late-join.ts feat(durable,chord): publish commits at adoption, address-following watches, synchronous observers 2026-10-26 20:44:34 +00:00
21-subagent-foreground.ts feat(durable,chord): publish commits at adoption, address-following watches, synchronous observers 2026-10-26 20:44:34 +00:00
22-subagent-background.ts feat(durable,chord): publish commits at adoption, address-following watches, synchronous observers 2026-10-26 20:44:34 +00:00
23-child-tasks.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
24-compaction.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
25-coding-agent.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
26-plan-mode.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
27-reviewer.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
28-sandbox-per-conversation.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
29-tool-override.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
30-reload-and-restart.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00