@earendil-works/pi-durable 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/CHANGELOG.md +204 -0
  2. package/README.md +195 -85
  3. package/dist/codemode/codemode.d.ts +6 -5
  4. package/dist/codemode/codemode.d.ts.map +1 -1
  5. package/dist/codemode/codemode.js +10 -49
  6. package/dist/codemode/codemode.js.map +1 -1
  7. package/dist/codemode/models.d.ts +2 -1
  8. package/dist/codemode/models.d.ts.map +1 -1
  9. package/dist/codemode/models.js +4 -4
  10. package/dist/codemode/models.js.map +1 -1
  11. package/dist/documents.d.ts +1 -1
  12. package/dist/documents.d.ts.map +1 -1
  13. package/dist/documents.js +1 -1
  14. package/dist/documents.js.map +1 -1
  15. package/dist/entries.d.ts +1 -1
  16. package/dist/entries.d.ts.map +1 -1
  17. package/dist/entries.js.map +1 -1
  18. package/dist/env/index.d.ts +13 -11
  19. package/dist/env/index.d.ts.map +1 -1
  20. package/dist/env/index.js.map +1 -1
  21. package/dist/env/node-watch.d.ts +4 -4
  22. package/dist/env/node-watch.d.ts.map +1 -1
  23. package/dist/env/node-watch.js +18 -16
  24. package/dist/env/node-watch.js.map +1 -1
  25. package/dist/env/node.d.ts +3 -3
  26. package/dist/env/node.d.ts.map +1 -1
  27. package/dist/env/node.js +1 -1
  28. package/dist/env/node.js.map +1 -1
  29. package/dist/errors.d.ts +18 -2
  30. package/dist/errors.d.ts.map +1 -1
  31. package/dist/errors.js +26 -3
  32. package/dist/errors.js.map +1 -1
  33. package/dist/harness/agent.d.ts.map +1 -1
  34. package/dist/harness/agent.js +37 -3
  35. package/dist/harness/agent.js.map +1 -1
  36. package/dist/harness/compaction.d.ts +8 -3
  37. package/dist/harness/compaction.d.ts.map +1 -1
  38. package/dist/harness/compaction.js +40 -11
  39. package/dist/harness/compaction.js.map +1 -1
  40. package/dist/harness/context.d.ts +24 -8
  41. package/dist/harness/context.d.ts.map +1 -1
  42. package/dist/harness/context.js +71 -25
  43. package/dist/harness/context.js.map +1 -1
  44. package/dist/harness/define.d.ts +8 -4
  45. package/dist/harness/define.d.ts.map +1 -1
  46. package/dist/harness/define.js +4 -0
  47. package/dist/harness/define.js.map +1 -1
  48. package/dist/harness/generation.d.ts +39 -6
  49. package/dist/harness/generation.d.ts.map +1 -1
  50. package/dist/harness/generation.js +451 -100
  51. package/dist/harness/generation.js.map +1 -1
  52. package/dist/harness/harness.d.ts +3 -1
  53. package/dist/harness/harness.d.ts.map +1 -1
  54. package/dist/harness/harness.js +87 -62
  55. package/dist/harness/harness.js.map +1 -1
  56. package/dist/harness/inbox.d.ts +7 -2
  57. package/dist/harness/inbox.d.ts.map +1 -1
  58. package/dist/harness/inbox.js +5 -2
  59. package/dist/harness/inbox.js.map +1 -1
  60. package/dist/harness/json.d.ts +21 -5
  61. package/dist/harness/json.d.ts.map +1 -1
  62. package/dist/harness/json.js +23 -5
  63. package/dist/harness/json.js.map +1 -1
  64. package/dist/harness/live.d.ts +124 -17
  65. package/dist/harness/live.d.ts.map +1 -1
  66. package/dist/harness/live.js +93 -12
  67. package/dist/harness/live.js.map +1 -1
  68. package/dist/harness/partial-changes.d.ts +54 -0
  69. package/dist/harness/partial-changes.d.ts.map +1 -0
  70. package/dist/harness/partial-changes.js +163 -0
  71. package/dist/harness/partial-changes.js.map +1 -0
  72. package/dist/harness/prompt.d.ts +1 -1
  73. package/dist/harness/prompt.d.ts.map +1 -1
  74. package/dist/harness/prompt.js.map +1 -1
  75. package/dist/harness/provider.d.ts +1 -1
  76. package/dist/harness/provider.d.ts.map +1 -1
  77. package/dist/harness/provider.js.map +1 -1
  78. package/dist/harness/registry-reader.d.ts +11 -0
  79. package/dist/harness/registry-reader.d.ts.map +1 -0
  80. package/dist/harness/registry-reader.js +25 -0
  81. package/dist/harness/registry-reader.js.map +1 -0
  82. package/dist/harness/scheduler.d.ts +48 -20
  83. package/dist/harness/scheduler.d.ts.map +1 -1
  84. package/dist/harness/scheduler.js +1006 -380
  85. package/dist/harness/scheduler.js.map +1 -1
  86. package/dist/harness/submissions.d.ts +18 -11
  87. package/dist/harness/submissions.d.ts.map +1 -1
  88. package/dist/harness/submissions.js +63 -26
  89. package/dist/harness/submissions.js.map +1 -1
  90. package/dist/harness/task-graph.d.ts +14 -9
  91. package/dist/harness/task-graph.d.ts.map +1 -1
  92. package/dist/harness/task-graph.js +38 -28
  93. package/dist/harness/task-graph.js.map +1 -1
  94. package/dist/harness/telemetry.d.ts +11 -11
  95. package/dist/harness/telemetry.d.ts.map +1 -1
  96. package/dist/harness/telemetry.js +7 -7
  97. package/dist/harness/telemetry.js.map +1 -1
  98. package/dist/harness/tool.d.ts +3 -1
  99. package/dist/harness/tool.d.ts.map +1 -1
  100. package/dist/harness/tool.js +172 -56
  101. package/dist/harness/tool.js.map +1 -1
  102. package/dist/harness/transcript.d.ts +72 -0
  103. package/dist/harness/transcript.d.ts.map +1 -0
  104. package/dist/harness/transcript.js +264 -0
  105. package/dist/harness/transcript.js.map +1 -0
  106. package/dist/harness/types.d.ts +237 -61
  107. package/dist/harness/types.d.ts.map +1 -1
  108. package/dist/harness/types.js.map +1 -1
  109. package/dist/harness/usage.d.ts +2 -1
  110. package/dist/harness/usage.d.ts.map +1 -1
  111. package/dist/harness/usage.js +1 -1
  112. package/dist/harness/usage.js.map +1 -1
  113. package/dist/harness/util.d.ts +4 -2
  114. package/dist/harness/util.d.ts.map +1 -1
  115. package/dist/harness/util.js +9 -0
  116. package/dist/harness/util.js.map +1 -1
  117. package/dist/harness/view.d.ts +44 -22
  118. package/dist/harness/view.d.ts.map +1 -1
  119. package/dist/harness/view.js +130 -71
  120. package/dist/harness/view.js.map +1 -1
  121. package/dist/index.d.ts +9 -7
  122. package/dist/index.d.ts.map +1 -1
  123. package/dist/index.js +4 -3
  124. package/dist/index.js.map +1 -1
  125. package/dist/search.d.ts +19 -3
  126. package/dist/search.d.ts.map +1 -1
  127. package/dist/search.js +107 -44
  128. package/dist/search.js.map +1 -1
  129. package/dist/session/cached-storage.d.ts +72 -0
  130. package/dist/session/cached-storage.d.ts.map +1 -0
  131. package/dist/session/cached-storage.js +269 -0
  132. package/dist/session/cached-storage.js.map +1 -0
  133. package/dist/session/conversation-tails.d.ts +33 -0
  134. package/dist/session/conversation-tails.d.ts.map +1 -0
  135. package/dist/session/conversation-tails.js +101 -0
  136. package/dist/session/conversation-tails.js.map +1 -0
  137. package/dist/session/forks.d.ts +1 -1
  138. package/dist/session/forks.d.ts.map +1 -1
  139. package/dist/session/forks.js.map +1 -1
  140. package/dist/session/keys.d.ts +69 -0
  141. package/dist/session/keys.d.ts.map +1 -0
  142. package/dist/session/keys.js +161 -0
  143. package/dist/session/keys.js.map +1 -0
  144. package/dist/session/session.d.ts +169 -26
  145. package/dist/session/session.d.ts.map +1 -1
  146. package/dist/session/session.js +1029 -171
  147. package/dist/session/session.js.map +1 -1
  148. package/dist/session/transaction.d.ts +84 -5
  149. package/dist/session/transaction.d.ts.map +1 -1
  150. package/dist/session/transaction.js +227 -40
  151. package/dist/session/transaction.js.map +1 -1
  152. package/dist/session/writer.d.ts +74 -0
  153. package/dist/session/writer.d.ts.map +1 -0
  154. package/dist/session/writer.js +294 -0
  155. package/dist/session/writer.js.map +1 -0
  156. package/dist/storage/indexeddb.d.ts +12 -3
  157. package/dist/storage/indexeddb.d.ts.map +1 -1
  158. package/dist/storage/indexeddb.js +91 -41
  159. package/dist/storage/indexeddb.js.map +1 -1
  160. package/dist/storage/jsonl/index.d.ts +1 -1
  161. package/dist/storage/jsonl/index.d.ts.map +1 -1
  162. package/dist/storage/jsonl/index.js +1 -1
  163. package/dist/storage/jsonl/index.js.map +1 -1
  164. package/dist/storage/jsonl/node.d.ts +3 -3
  165. package/dist/storage/jsonl/node.d.ts.map +1 -1
  166. package/dist/storage/jsonl/node.js +2 -2
  167. package/dist/storage/jsonl/node.js.map +1 -1
  168. package/dist/storage/jsonl/storage.d.ts +46 -5
  169. package/dist/storage/jsonl/storage.d.ts.map +1 -1
  170. package/dist/storage/jsonl/storage.js +158 -43
  171. package/dist/storage/jsonl/storage.js.map +1 -1
  172. package/dist/storage/memory.d.ts +9 -3
  173. package/dist/storage/memory.d.ts.map +1 -1
  174. package/dist/storage/memory.js +28 -2
  175. package/dist/storage/memory.js.map +1 -1
  176. package/dist/storage/sqlite/commit.d.ts +52 -0
  177. package/dist/storage/sqlite/commit.d.ts.map +1 -0
  178. package/dist/storage/sqlite/commit.js +371 -0
  179. package/dist/storage/sqlite/commit.js.map +1 -0
  180. package/dist/storage/sqlite/rows.d.ts +33 -0
  181. package/dist/storage/sqlite/rows.d.ts.map +1 -0
  182. package/dist/storage/sqlite/rows.js +53 -0
  183. package/dist/storage/sqlite/rows.js.map +1 -0
  184. package/dist/storage/sqlite/statements.d.ts +13 -0
  185. package/dist/storage/sqlite/statements.d.ts.map +1 -0
  186. package/dist/storage/sqlite/statements.js +88 -0
  187. package/dist/storage/sqlite/statements.js.map +1 -0
  188. package/dist/storage/sqlite/storage.d.ts +23 -10
  189. package/dist/storage/sqlite/storage.d.ts.map +1 -1
  190. package/dist/storage/sqlite/storage.js +120 -261
  191. package/dist/storage/sqlite/storage.js.map +1 -1
  192. package/dist/storage/store/commit.d.ts +33 -0
  193. package/dist/storage/store/commit.d.ts.map +1 -0
  194. package/dist/storage/store/commit.js +286 -0
  195. package/dist/storage/store/commit.js.map +1 -0
  196. package/dist/storage/store/documents.d.ts +43 -0
  197. package/dist/storage/store/documents.d.ts.map +1 -0
  198. package/dist/storage/store/documents.js +102 -0
  199. package/dist/storage/store/documents.js.map +1 -0
  200. package/dist/storage/store/index.d.ts +2 -0
  201. package/dist/storage/store/index.d.ts.map +1 -0
  202. package/dist/storage/store/index.js +2 -0
  203. package/dist/storage/store/index.js.map +1 -0
  204. package/dist/storage/store/queries.d.ts +49 -0
  205. package/dist/storage/store/queries.d.ts.map +1 -0
  206. package/dist/storage/store/queries.js +93 -0
  207. package/dist/storage/store/queries.js.map +1 -0
  208. package/dist/storage/store/storage.d.ts +60 -0
  209. package/dist/storage/store/storage.d.ts.map +1 -0
  210. package/dist/storage/store/storage.js +438 -0
  211. package/dist/storage/store/storage.js.map +1 -0
  212. package/dist/storage/store/tables.d.ts +54 -0
  213. package/dist/storage/store/tables.d.ts.map +1 -0
  214. package/dist/storage/store/tables.js +108 -0
  215. package/dist/storage/store/tables.js.map +1 -0
  216. package/dist/testing/commit-writes.d.ts +5 -0
  217. package/dist/testing/commit-writes.d.ts.map +1 -0
  218. package/dist/testing/commit-writes.js +12 -0
  219. package/dist/testing/commit-writes.js.map +1 -0
  220. package/dist/testing/env-conformance.js +7 -7
  221. package/dist/testing/env-conformance.js.map +1 -1
  222. package/dist/testing/index.d.ts +1 -0
  223. package/dist/testing/index.d.ts.map +1 -1
  224. package/dist/testing/index.js +1 -0
  225. package/dist/testing/index.js.map +1 -1
  226. package/dist/testing/storage-benchmark.d.ts.map +1 -1
  227. package/dist/testing/storage-benchmark.js +18 -17
  228. package/dist/testing/storage-benchmark.js.map +1 -1
  229. package/dist/testing/storage-conformance.d.ts.map +1 -1
  230. package/dist/testing/storage-conformance.js +354 -69
  231. package/dist/testing/storage-conformance.js.map +1 -1
  232. package/dist/tool-search/tool-search.d.ts +8 -14
  233. package/dist/tool-search/tool-search.d.ts.map +1 -1
  234. package/dist/tool-search/tool-search.js +25 -13
  235. package/dist/tool-search/tool-search.js.map +1 -1
  236. package/dist/tools/bash.d.ts +13 -13
  237. package/dist/tools/bash.d.ts.map +1 -1
  238. package/dist/tools/bash.js +16 -15
  239. package/dist/tools/bash.js.map +1 -1
  240. package/dist/tools/edit.d.ts +7 -7
  241. package/dist/tools/edit.d.ts.map +1 -1
  242. package/dist/tools/edit.js +9 -9
  243. package/dist/tools/edit.js.map +1 -1
  244. package/dist/tools/file-mutation-queue.d.ts +1 -1
  245. package/dist/tools/file-mutation-queue.d.ts.map +1 -1
  246. package/dist/tools/file-mutation-queue.js.map +1 -1
  247. package/dist/tools/index.d.ts +32 -32
  248. package/dist/tools/path-utils.d.ts +1 -1
  249. package/dist/tools/path-utils.d.ts.map +1 -1
  250. package/dist/tools/path-utils.js.map +1 -1
  251. package/dist/tools/read.d.ts +6 -6
  252. package/dist/tools/read.d.ts.map +1 -1
  253. package/dist/tools/read.js +19 -8
  254. package/dist/tools/read.js.map +1 -1
  255. package/dist/tools/write.d.ts +4 -4
  256. package/dist/tools/write.d.ts.map +1 -1
  257. package/dist/tools/write.js +5 -5
  258. package/dist/tools/write.js.map +1 -1
  259. package/dist/types.d.ts +228 -78
  260. package/dist/types.d.ts.map +1 -1
  261. package/dist/types.js.map +1 -1
  262. package/package.json +19 -12
  263. package/dist/harness/events.d.ts +0 -186
  264. package/dist/harness/events.d.ts.map +0 -1
  265. package/dist/harness/events.js +0 -373
  266. package/dist/harness/events.js.map +0 -1
  267. package/dist/session/observation.d.ts +0 -42
  268. package/dist/session/observation.d.ts.map +0 -1
  269. package/dist/session/observation.js +0 -281
  270. package/dist/session/observation.js.map +0 -1
@@ -1,6 +1,22 @@
1
- import { type Context, type JsonValue } from "@earendil-works/chord";
2
- import type { CommitPublication, ConversationDocFamilyToken, ConversationDocToken, ConversationId, ConversationRecord, DocumentRecord, DocumentState, DocumentWatch, EntryId, JsonObject, ReportInfo, RewindableConversationDocFamilyToken, RewindableConversationDocToken, Session, SessionDocFamilyToken, SessionDocToken, SessionEnd, SetTimer, Storage, StorageWrite, TaskDocFamilyToken, TaskDocToken, TaskId, Tx } from "../types.ts";
1
+ import { type Context } from "@earendil-works/chord/context";
2
+ import type { JsonValue } from "@earendil-works/chord/json";
3
+ import { type WatchEnd } from "@earendil-works/chord/watch";
4
+ import type { CommitChange, CommitObservation, CommitObserver, CommitOptions, ConversationDocFamilyToken, ConversationDocToken, ConversationId, ConversationRecord, DocumentCommitChange, DocumentRecord, DocumentWatch, EntryId, JsonObject, Observation, Observer, ReportInfo, RewindableConversationDocFamilyToken, RewindableConversationDocToken, Seq, Session, SessionDocFamilyToken, SessionDocToken, SessionEnd, SetTimer, Storage, StorageWrite, TaskDocFamilyToken, TaskDocToken, TaskId, Tx } from "../types.ts";
5
+ import { type HeadMarker } from "./conversation-tails.ts";
3
6
  import { Transaction, type TransactionScope } from "./transaction.ts";
7
+ /**
8
+ * What the Session's own components observe of one commit (`followCommits()`): a stored commit with its own changes, or
9
+ * a deferred one adopted in memory only (`CommitPersistence`), which changes documents only. Memory is never behind:
10
+ * a later store of held changes is not observed again.
11
+ */
12
+ export type ObservedCommit = {
13
+ readonly kind: "stored";
14
+ readonly seq: Seq;
15
+ readonly changes: readonly CommitChange[];
16
+ } | {
17
+ readonly kind: "memory";
18
+ readonly changes: readonly DocumentCommitChange[];
19
+ };
4
20
  /**
5
21
  * Open a Session kernel over one storage backend. `now` is the wall clock for task times; default `Date.now`.
6
22
  * `setTimer` arms the timers that evict idle documents; default `setTimeout` (see `HarnessOptions.setTimer`). The first
@@ -10,6 +26,8 @@ export declare function createSession(storage: Storage, options?: {
10
26
  readonly now?: () => number;
11
27
  readonly documentRetentionMs?: number;
12
28
  readonly setTimer?: SetTimer;
29
+ /** Default `withinMs` of a deferred commit (`CommitPersistence`); default 1,000. */
30
+ readonly persistWithinMs?: number;
13
31
  }): Session;
14
32
  /** Internal, for tests: the retention of every Session that keeps the default, as a suite run with eviction at once. */
15
33
  export declare function setDefaultDocumentRetention(ms: number): void;
@@ -18,15 +36,31 @@ export declare function setDefaultDocumentRetention(ms: number): void;
18
36
  * default.
19
37
  */
20
38
  export declare function documentRetention(ms: number | undefined): number;
39
+ /**
40
+ * A deferred commit's default window as given, when it is a number of milliseconds, `0` or more (`Infinity` waits for a
41
+ * reading or writing commit or close); otherwise the default.
42
+ */
43
+ export declare function persistWithin(ms: number | undefined): number;
21
44
  /**
22
45
  * Session kernel: one mutation line, the loaded document tracker cache, and committed publication.
23
46
  *
24
- * The cache is bounded by use: a document with no watch or document state attached leaves it once it was not read or
47
+ * The cache is bounded by use: a document with no watch attached leaves it once it was not read or
25
48
  * written for the retention period, and the next access loads it from Storage. Eviction runs as a job on the mutation
26
49
  * line, so no transaction ever holds a tracker that leaves.
27
50
  *
28
- * Only committed state is observable. Every commit callback, preparation, Storage settlement, adoption, and
29
- * publication enqueue runs while the line is held; listeners run later.
51
+ * Only committed state is observable. A deferred commit (`CommitPersistence`) is committed in memory first: it is
52
+ * adopted and shown to the Session's own observers, and its changes wait, folded per document and pinned in the cache,
53
+ * for the first commit that reads or writes the document, the document's deadline, a drop of its tracker, or close,
54
+ * which store them.
55
+ *
56
+ * Group commit: the line runs one job at a time, a commit's callback and settlement; a commit with writes then joins
57
+ * the writer's pending batch (logical admission, `Writer`) and the line goes on. The writer stores every commit admitted
58
+ * while no call is in flight in one `commit()` call, off the line, and publishes them one by one, in line order, a
59
+ * macrotask apart: the read caches, adoption, telemetry events, the Session's own observers, and one microtask later
60
+ * `observeCommits()` observers, before every wait the commit resolves and every abort it queues. Host listeners and
61
+ * watch listeners have no order. A deferred commit is published when the commits before it are. A job's every read
62
+ * touches its key (`touch()`); while an unpublished commit writes that key, the job waits for its publication, so no
63
+ * job observes state that is not stored. Outcomes are delivered in line order (`#enqueue()`).
30
64
  *
31
65
  * Storage failures are final. Every Storage call goes through one guard: the first error a Storage method throws, other
32
66
  * than for a cancelled caller, fails the Session, as does a commit it cannot adopt. That call gets the error; every later
@@ -43,24 +77,67 @@ export declare class SessionImpl implements Session {
43
77
  } | undefined;
44
78
  /** Internal: rejects with `SessionFailed` the moment the Session fails, before work underway has ended; never resolves. */
45
79
  get failed(): Promise<never>;
46
- constructor(storage: Storage, now?: () => number, documentRetentionMs?: () => number | undefined, setTimer?: SetTimer);
80
+ constructor(storage: Storage, now?: () => number, documentRetentionMs?: () => number | undefined, setTimer?: SetTimer, readOnly?: boolean, persistWithinMs?: () => number | undefined);
47
81
  /** The Storage behind the failure guard; every component reads and writes through it. */
48
82
  protected get storage(): Storage;
49
- commit<T>(change: (tx: Tx) => T | Promise<T>, context: Context): Promise<T>;
83
+ /**
84
+ * Internal, on the Session line: the newest entry ID visible from `conversationId`. Known from the Session's own
85
+ * commits when it owns its Storage, so it costs no Storage read after the first.
86
+ */
87
+ latestEntryId(conversationId: ConversationId, context: Context): Promise<EntryId | undefined>;
88
+ /**
89
+ * Internal: the newest entry ID of `conversationId` as known from the Session's commits right now, without reading;
90
+ * `undefined` when not known (and always for a read-only Session).
91
+ */
92
+ knownLatestEntryId(conversationId: ConversationId): EntryId | null | undefined;
93
+ /**
94
+ * Internal, on the Session line: the newest visible head marker of `conversationId` at or before `atOrBefore`, any
95
+ * when `undefined`; known from the Session's own commits as `latestEntryId()` is.
96
+ */
97
+ latestHeadMarker(conversationId: ConversationId, atOrBefore: EntryId | undefined, context: Context): Promise<HeadMarker | undefined>;
98
+ /**
99
+ * Internal, on the line: wait, while `key` has an unpublished writer (for `ALL_KEYS`, while anything is unpublished),
100
+ * until it is published, then check that the Session is healthy; `undefined` when there is nothing to wait for. A
101
+ * job's every read touches its key first, so it never observes state an earlier job admitted and the writer has not
102
+ * published.
103
+ */
104
+ touch(key: string): Promise<void> | undefined;
105
+ commit<T>(change: (tx: Tx) => T | Promise<T>, context: Context, options?: CommitOptions): Promise<T>;
50
106
  /**
51
107
  * Internal: fail the Session with `error`, the first wins, and report it once. Admission ends, and close listeners run
52
108
  * now; they read the error from `failure`. The Storage guard calls this; the Harness also calls it for a throw in its
53
- * scheduler's own commits.
109
+ * scheduler's own commits. `at` is the line index of the job whose outcome the failure is, by default the job on the
110
+ * line: later jobs' outcomes become `SessionFailed`.
54
111
  */
55
- fail(error: unknown, context?: Context): void;
112
+ fail(error: unknown, context?: Context, at?: number, own?: readonly number[]): void;
56
113
  /**
57
114
  * Internal commit exposing the concrete transaction and its internal operations, such as the reserved-ID root
58
115
  * bootstrap and task replacement. `scope` sets the default `tx.createTask()` conversation and the task attributed to
59
116
  * appended entries.
60
117
  */
61
- commitWith<T>(change: (tx: Transaction) => T | Promise<T>, context: Context, scope?: TransactionScope): Promise<T>;
62
- /** Internal: run a read-only job on the mutation line so multi-read derivations observe one committed state. */
63
- readOnLine<T>(job: () => Promise<T>): Promise<T>;
118
+ commitWith<T>(change: (tx: Transaction) => T | Promise<T>, context: Context, scope?: TransactionScope, options?: CommitOptions): Promise<T>;
119
+ /**
120
+ * Internal: `commitWith()` for a commit of the scheduler's own whose outcome goes only to scheduler code. When it
121
+ * writes nothing and waited at no gate, it is equivalent to having run before every unpublished commit, so its
122
+ * outcome is delivered at once, ahead of theirs. One that writes is never exempt: its outcome waits for its own
123
+ * publication and every earlier outcome, so no invocation starts on a reservation that is not durable.
124
+ */
125
+ commitInternal<T>(change: (tx: Transaction) => T | Promise<T>, context: Context): Promise<T>;
126
+ /**
127
+ * Internal, on the line: call `end` once the outcome of the job on the line settles, its commit published or never to
128
+ * be; at once off the line.
129
+ */
130
+ onJobEnd(end: () => void): void;
131
+ /** Internal: the Storage jobs on the line read through (`touch()`); off the line, use the plain one. */
132
+ get lineStorage(): Storage;
133
+ /** Internal: whether `tx` is the transaction of one of this Session's commits. */
134
+ ownsTransaction(tx: Tx): tx is Transaction;
135
+ /**
136
+ * Internal: run a read-only job on the mutation line so multi-read derivations observe one committed state. It reads
137
+ * through `storage`, whose reads wait for the publication of what the line admitted before; its outcome comes after
138
+ * theirs.
139
+ */
140
+ readOnLine<T>(job: (storage: Storage) => Promise<T>): Promise<T>;
64
141
  /**
65
142
  * Internal: a conversation document's current incarnation and value, for a job already running on the line (see
66
143
  * `readOnLine()`). Absent documents are `undefined`.
@@ -76,18 +153,18 @@ export declare class SessionImpl implements Session {
76
153
  snapshot<T extends JsonObject, I extends JsonValue>(token: SessionDocFamilyToken<T, I>, key: string, context: Context): Promise<Readonly<T> | undefined>;
77
154
  snapshot<T extends JsonObject, I extends JsonValue>(token: ConversationDocFamilyToken<T, I>, conversationId: ConversationId, key: string, context: Context): Promise<Readonly<T> | undefined>;
78
155
  snapshot<T extends JsonObject, I extends JsonValue>(token: TaskDocFamilyToken<T, I>, taskId: TaskId, key: string, context: Context): Promise<Readonly<T> | undefined>;
79
- documentState<T extends JsonObject>(token: SessionDocToken<T>, context: Context): Promise<DocumentState<T> | undefined>;
80
- documentState<T extends JsonObject>(token: ConversationDocToken<T>, conversationId: ConversationId, context: Context): Promise<DocumentState<T> | undefined>;
81
- documentState<T extends JsonObject>(token: TaskDocToken<T>, taskId: TaskId, context: Context): Promise<DocumentState<T> | undefined>;
82
- documentState<T extends JsonObject, I extends JsonValue>(token: SessionDocFamilyToken<T, I>, key: string, context: Context): Promise<DocumentState<T> | undefined>;
83
- documentState<T extends JsonObject, I extends JsonValue>(token: ConversationDocFamilyToken<T, I>, conversationId: ConversationId, key: string, context: Context): Promise<DocumentState<T> | undefined>;
84
- documentState<T extends JsonObject, I extends JsonValue>(token: TaskDocFamilyToken<T, I>, taskId: TaskId, key: string, context: Context): Promise<DocumentState<T> | undefined>;
85
156
  watchDoc<T extends JsonObject>(token: SessionDocToken<T>, context: Context): Promise<DocumentWatch<T> | undefined>;
86
157
  watchDoc<T extends JsonObject>(token: ConversationDocToken<T>, conversationId: ConversationId, context: Context): Promise<DocumentWatch<T> | undefined>;
87
158
  watchDoc<T extends JsonObject>(token: TaskDocToken<T>, taskId: TaskId, context: Context): Promise<DocumentWatch<T> | undefined>;
88
159
  watchDoc<T extends JsonObject, I extends JsonValue>(token: SessionDocFamilyToken<T, I>, key: string, context: Context): Promise<DocumentWatch<T> | undefined>;
89
160
  watchDoc<T extends JsonObject, I extends JsonValue>(token: ConversationDocFamilyToken<T, I>, conversationId: ConversationId, key: string, context: Context): Promise<DocumentWatch<T> | undefined>;
90
161
  watchDoc<T extends JsonObject, I extends JsonValue>(token: TaskDocFamilyToken<T, I>, taskId: TaskId, key: string, context: Context): Promise<DocumentWatch<T> | undefined>;
162
+ observeDoc<T extends JsonObject>(token: SessionDocToken<T>, observer: Observer<Readonly<T>>, context: Context): Promise<Observation<Readonly<T>> | undefined>;
163
+ observeDoc<T extends JsonObject>(token: ConversationDocToken<T>, conversationId: ConversationId, observer: Observer<Readonly<T>>, context: Context): Promise<Observation<Readonly<T>> | undefined>;
164
+ observeDoc<T extends JsonObject>(token: TaskDocToken<T>, taskId: TaskId, observer: Observer<Readonly<T>>, context: Context): Promise<Observation<Readonly<T>> | undefined>;
165
+ observeDoc<T extends JsonObject, I extends JsonValue>(token: SessionDocFamilyToken<T, I>, key: string, observer: Observer<Readonly<T>>, context: Context): Promise<Observation<Readonly<T>> | undefined>;
166
+ observeDoc<T extends JsonObject, I extends JsonValue>(token: ConversationDocFamilyToken<T, I>, conversationId: ConversationId, key: string, observer: Observer<Readonly<T>>, context: Context): Promise<Observation<Readonly<T>> | undefined>;
167
+ observeDoc<T extends JsonObject, I extends JsonValue>(token: TaskDocFamilyToken<T, I>, taskId: TaskId, key: string, observer: Observer<Readonly<T>>, context: Context): Promise<Observation<Readonly<T>> | undefined>;
91
168
  snapshotAsOf<T extends JsonObject>(token: RewindableConversationDocToken<T>, conversationId: ConversationId, at: EntryId, context: Context): Promise<Readonly<T> | undefined>;
92
169
  snapshotAsOf<T extends JsonObject, I extends JsonValue>(token: RewindableConversationDocFamilyToken<T, I>, conversationId: ConversationId, key: string, at: EntryId, context: Context): Promise<Readonly<T> | undefined>;
93
170
  close(context: Context): Promise<void>;
@@ -107,31 +184,57 @@ export declare class SessionImpl implements Session {
107
184
  * writes nothing.
108
185
  */
109
186
  protected writeAtClose(writes: () => readonly StorageWrite[]): Promise<void>;
187
+ /**
188
+ * Keys a commit writes besides its records' (`Transaction.writeKeys()`), at its admission, on the line: a Harness
189
+ * adds the ownership memberships its task changes write. A plain Session adds none.
190
+ */
191
+ protected membershipKeys(_tx: Transaction): readonly string[] | Promise<readonly string[]>;
110
192
  /** Runs after close seals admission and before the line closes Storage; must not reject. */
111
193
  protected beforeClose(): Promise<void>;
112
- /** Register a synchronous post-adoption listener. It must not block or call Session operations; a throw is reported. */
113
- subscribeCommits(listener: (publication: CommitPublication, context: Context) => void): () => void;
114
194
  /**
115
- * Internal: `subscribeCommits()` for the Session's own components, whose state follows each commit. A throw leaves
116
- * that state behind storage, so it fails the Session instead of being reported. They run before host listeners.
195
+ * Attach a synchronous observer of every stored commit, with exactly what it stored (`CommitPublication`). Its
196
+ * `advance` runs one microtask after the commit's publication, which follows its storage call, in line order, before
197
+ * every wait the commit resolves and every abort it queues (in no order with watch listeners); it must not block or
198
+ * call Session operations. A throw is reported, detaches it, and ends it `listener_error`; `end` gets the Session's
199
+ * close after its last publication.
200
+ */
201
+ observeCommits(observer: CommitObserver): CommitObservation;
202
+ /**
203
+ * Internal: follow every commit as memory adopts it (`ObservedCommit`), for the Session's own components, whose state
204
+ * follows memory. A throw leaves that state behind, so it fails the Session instead of being reported. They run at
205
+ * the commit's publication, synchronously, so they call no Storage method, run no task code, and contain every host
206
+ * callback; the waits they resolve and the aborts they queue run after host observers.
117
207
  */
118
- observeCommits(listener: (publication: CommitPublication, context: Context) => void): () => void;
208
+ followCommits(listener: (publication: ObservedCommit, context: Context) => void): () => void;
119
209
  /**
120
210
  * Register a listener called synchronously when close begins, also when a failure closes the Session (`failure` is
121
211
  * then set). It must not block or call Session operations; a throw is reported.
122
212
  */
123
213
  subscribeClose(listener: () => void): () => void;
124
- /** Drop every loaded tracker on the mutation line; later access cold-loads from Storage. */
214
+ /** Drop every loaded tracker on the mutation line, held changes stored first; later access cold-loads from Storage. */
125
215
  unloadDocuments(): Promise<void>;
126
216
  /**
127
- * Internal, for tests: how many documents the cache holds, how many are idle, how many incarnations are pinned, and how
128
- * many sweep jobs were queued on the line so far.
217
+ * Internal, for tests: how many documents the cache holds, how many are idle, how many incarnations are pinned, how
218
+ * many sweep jobs were queued on the line so far, how many documents have held changes, how many live tasks have
219
+ * their documents indexed, and how many conversations have their newest entry kept.
129
220
  */
130
221
  get documentCacheSizes(): {
131
222
  readonly cached: number;
132
223
  readonly idle: number;
133
224
  readonly attached: number;
134
225
  readonly sweeps: number;
226
+ readonly held: number;
227
+ readonly taskDocuments: number;
228
+ readonly tails: number;
229
+ };
230
+ /**
231
+ * Internal, for tests that bound memory: jobs whose outcome is not delivered yet, keys with an unpublished writer,
232
+ * and record reads in flight in the cache. All three are 0 once the line is idle.
233
+ */
234
+ get lineSizes(): {
235
+ readonly outstanding: number;
236
+ readonly unpublished: number;
237
+ readonly reads: number;
135
238
  };
136
239
  /** Internal: throw `SessionFailed` when failed, else an error when closing. */
137
240
  assertUsable(): void;
@@ -141,4 +244,44 @@ export declare class SessionImpl implements Session {
141
244
  * which is not awaited.
142
245
  */
143
246
  export declare function contained(callback: () => unknown, onError: (error: unknown) => void): void;
247
+ /** A synchronous observer as Durable attaches it: `Observer` (`advance` gets a `WatchCall`) or `CommitObserver`. */
248
+ type SyncObserver<A> = {
249
+ advance(call: A, context: Context): void;
250
+ end(end: WatchEnd): void;
251
+ };
252
+ /** A guarded observer (`guardObserver()`) with its observation's detach. */
253
+ export type GuardedObserver<A> = SyncObserver<A> & {
254
+ detach(): void;
255
+ };
256
+ /**
257
+ * `observer`, a host's, behind the rule for observers that run at a commit's publication: one that throws, or whose
258
+ * `advance` returns a promise that rejects, is reported through `report`, detached, and ended `listener_error`, so the
259
+ * throw never reaches `adopt`; nothing reaches it after its detach or end, and from then on the guard references
260
+ * neither it nor its source. `detach` is the source's; the returned `detach()` is the observation's.
261
+ */
262
+ export declare function guardObserver<A>(observer: SyncObserver<A>, detach: () => void, report: (error: unknown, context?: Context) => void): GuardedObserver<A>;
263
+ /** The end of an observer whose source closed. */
264
+ export declare const ENDED: WatchEnd;
265
+ /**
266
+ * How a Session's close ends what follows it (decision "Slice 8 S1"), made once per close: an app's watch `ended`; a
267
+ * synchronous observer (an adapter following the Session, which may open it again) `failed` with "session closed", so
268
+ * it follows the next Session; `ended` stays for an observed owner that ended (a task document's task). A failed
269
+ * Session ends both `failed` with its error.
270
+ */
271
+ export declare function closeEnds(failure: {
272
+ readonly error: unknown;
273
+ } | undefined): {
274
+ readonly watch: WatchEnd;
275
+ readonly observer: WatchEnd;
276
+ };
277
+ /** The end `ends` give `follower`: a watch's, or an observer's. */
278
+ export declare function closeEndOf(follower: unknown, ends: ReturnType<typeof closeEnds>): WatchEnd;
279
+ /**
280
+ * The `Observation` of a guarded observer attached at `value`. Built outside the attaching closure, so a detached
281
+ * observation keeps nothing but `value` and the spent guard alive.
282
+ */
283
+ export declare function observation<T>(value: T, guarded: {
284
+ detach(): void;
285
+ }): Observation<T>;
286
+ export {};
144
287
  //# sourceMappingURL=session.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/session/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,uBAAuB,CAAC;AActF,OAAO,KAAK,EAEX,iBAAiB,EACjB,0BAA0B,EAC1B,oBAAoB,EACpB,cAAc,EAEd,kBAAkB,EAOlB,cAAc,EACd,aAAa,EACb,aAAa,EACb,OAAO,EAIP,UAAU,EAEV,UAAU,EACV,oCAAoC,EACpC,8BAA8B,EAE9B,OAAO,EACP,qBAAqB,EACrB,eAAe,EACf,UAAU,EACV,QAAQ,EACR,OAAO,EACP,YAAY,EAKZ,kBAAkB,EAClB,YAAY,EACZ,MAAM,EAGN,EAAE,EACF,MAAM,aAAa,CAAC;AAOrB,OAAO,EAAuB,WAAW,EAAwB,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAKjH;;;;GAIG;AACH,wBAAgB,aAAa,CAC5B,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,GAC5G,OAAO,CAQT;AAKD,wHAAwH;AACxH,wBAAgB,2BAA2B,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAE5D;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,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