pi-mono/packages/durable/test/examples
Mario Zechner 5f312dac4c feat(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports
Chord's shared watch: listeners take a tagged call, { kind: "value", value, ops, retired } or
{ kind: "failed", error }; a recoverable failure keeps the watch open and the next value arrives as
[["r", value]]; WatchEnd is tagged by kind, and an aborted context ends a watch "aborted".

Durable: observers take the watch's shapes (advance(call, ctx), end(end)); onReport(report) with
report.kind and report.error, session_failed is storage_failed; subscribeCommits is observeCommits;
SessionEnd and ReportFrom are tagged by kind; FileChange is tagged and file watchers stop with
stop(ctx); CompactionFailure and CompactionStatus name their trigger (pi.live version 2 with a
migrate); the task_outdated report uses the scheduler's reasons; TaskInspection's ready is pending;
DocumentCommitChange is tagged. Stored formats are unchanged.
2026-10-27 20:38:08 +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(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +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(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +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(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +00:00
19-inbox.ts docs(durable): renumber examples 2026-10-22 10:56:50 +00:00
20-late-join.ts feat(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +00:00
21-subagent-foreground.ts feat(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +00:00
22-subagent-background.ts feat(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +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
31-transcript.ts feat(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +00:00