@amalgm/live 0.2.81-main.40015853239 → 0.2.81-main.40756177156

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 (252) hide show
  1. package/PURPOSE.md +98 -124
  2. package/dist/apply/contracts.d.ts +8 -10
  3. package/dist/apply/contracts.d.ts.map +1 -1
  4. package/dist/apply/contracts.js.map +1 -1
  5. package/dist/apply/index.d.ts +0 -5
  6. package/dist/apply/index.d.ts.map +1 -1
  7. package/dist/apply/index.js +0 -5
  8. package/dist/apply/index.js.map +1 -1
  9. package/dist/apply/journey.d.ts +5 -3
  10. package/dist/apply/journey.d.ts.map +1 -1
  11. package/dist/apply/journey.js +29 -10
  12. package/dist/apply/journey.js.map +1 -1
  13. package/dist/apply/local-work.d.ts +13 -54
  14. package/dist/apply/local-work.d.ts.map +1 -1
  15. package/dist/apply/local-work.js +15 -45
  16. package/dist/apply/local-work.js.map +1 -1
  17. package/dist/apply/plans.d.ts.map +1 -1
  18. package/dist/apply/plans.js +7 -24
  19. package/dist/apply/plans.js.map +1 -1
  20. package/dist/apply/settling.d.ts +2 -2
  21. package/dist/apply/settling.d.ts.map +1 -1
  22. package/dist/apply/settling.js +1 -1
  23. package/dist/apply/showing.d.ts +11 -3
  24. package/dist/apply/showing.d.ts.map +1 -1
  25. package/dist/apply/showing.js +22 -11
  26. package/dist/apply/showing.js.map +1 -1
  27. package/dist/apply/window.d.ts +4 -6
  28. package/dist/apply/window.d.ts.map +1 -1
  29. package/dist/apply/window.js +5 -15
  30. package/dist/apply/window.js.map +1 -1
  31. package/dist/detection/adapter-contract.d.ts +2 -2
  32. package/dist/detection/adapter-contract.d.ts.map +1 -1
  33. package/dist/detection/batch.d.ts +0 -1
  34. package/dist/detection/batch.d.ts.map +1 -1
  35. package/dist/detection/batch.js.map +1 -1
  36. package/dist/detection/record-proposal.d.ts +4 -11
  37. package/dist/detection/record-proposal.d.ts.map +1 -1
  38. package/dist/detection/record-proposal.js +16 -23
  39. package/dist/detection/record-proposal.js.map +1 -1
  40. package/dist/drive/contracts.d.ts +96 -0
  41. package/dist/drive/contracts.d.ts.map +1 -0
  42. package/dist/drive/contracts.js +24 -0
  43. package/dist/drive/contracts.js.map +1 -0
  44. package/dist/drive/drive.d.ts +35 -0
  45. package/dist/drive/drive.d.ts.map +1 -0
  46. package/dist/drive/drive.js +32 -0
  47. package/dist/drive/drive.js.map +1 -0
  48. package/dist/drive/index.d.ts +12 -0
  49. package/dist/drive/index.d.ts.map +1 -0
  50. package/dist/drive/index.js +12 -0
  51. package/dist/drive/index.js.map +1 -0
  52. package/dist/drive/listing.d.ts +22 -0
  53. package/dist/drive/listing.d.ts.map +1 -0
  54. package/dist/drive/listing.js +40 -0
  55. package/dist/drive/listing.js.map +1 -0
  56. package/dist/drive/placements.d.ts +33 -0
  57. package/dist/drive/placements.d.ts.map +1 -0
  58. package/dist/drive/placements.js +44 -0
  59. package/dist/drive/placements.js.map +1 -0
  60. package/dist/drive/where.d.ts +68 -0
  61. package/dist/drive/where.d.ts.map +1 -0
  62. package/dist/drive/where.js +109 -0
  63. package/dist/drive/where.js.map +1 -0
  64. package/dist/entities/bytes.d.ts +1 -1
  65. package/dist/entities/bytes.js +3 -3
  66. package/dist/entities/bytes.js.map +1 -1
  67. package/dist/entities/cloud.d.ts +13 -9
  68. package/dist/entities/cloud.d.ts.map +1 -1
  69. package/dist/entities/cloud.js +20 -7
  70. package/dist/entities/cloud.js.map +1 -1
  71. package/dist/entities/index.d.ts +2 -10
  72. package/dist/entities/index.d.ts.map +1 -1
  73. package/dist/entities/index.js +2 -10
  74. package/dist/entities/index.js.map +1 -1
  75. package/dist/entities/reducer.d.ts +18 -80
  76. package/dist/entities/reducer.d.ts.map +1 -1
  77. package/dist/entities/reducer.js +49 -326
  78. package/dist/entities/reducer.js.map +1 -1
  79. package/dist/entities/rules.d.ts +1 -2
  80. package/dist/entities/rules.d.ts.map +1 -1
  81. package/dist/entities/rules.js +1 -2
  82. package/dist/entities/rules.js.map +1 -1
  83. package/dist/entities/types.d.ts +1 -1
  84. package/dist/entities/types.d.ts.map +1 -1
  85. package/dist/files/commands.d.ts +3 -7
  86. package/dist/files/commands.d.ts.map +1 -1
  87. package/dist/files/commands.js +3 -4
  88. package/dist/files/commands.js.map +1 -1
  89. package/dist/git/artifact.d.ts +71 -0
  90. package/dist/git/artifact.d.ts.map +1 -0
  91. package/dist/git/artifact.js +154 -0
  92. package/dist/git/artifact.js.map +1 -0
  93. package/dist/git/chain.d.ts +43 -0
  94. package/dist/git/chain.d.ts.map +1 -0
  95. package/dist/git/chain.js +52 -0
  96. package/dist/git/chain.js.map +1 -0
  97. package/dist/git/index.d.ts +6 -0
  98. package/dist/git/index.d.ts.map +1 -0
  99. package/dist/git/index.js +6 -0
  100. package/dist/git/index.js.map +1 -0
  101. package/dist/git/plan.d.ts +45 -0
  102. package/dist/git/plan.d.ts.map +1 -0
  103. package/dist/git/plan.js +92 -0
  104. package/dist/git/plan.js.map +1 -0
  105. package/dist/git/state.d.ts +92 -0
  106. package/dist/git/state.d.ts.map +1 -0
  107. package/dist/git/state.js +134 -0
  108. package/dist/git/state.js.map +1 -0
  109. package/dist/git/text.d.ts +4 -0
  110. package/dist/git/text.d.ts.map +1 -0
  111. package/dist/git/text.js +4 -0
  112. package/dist/git/text.js.map +1 -0
  113. package/dist/index.d.ts +1 -0
  114. package/dist/index.d.ts.map +1 -1
  115. package/dist/index.js +1 -0
  116. package/dist/index.js.map +1 -1
  117. package/dist/records/contracts.d.ts.map +1 -1
  118. package/dist/records/contracts.js +1 -7
  119. package/dist/records/contracts.js.map +1 -1
  120. package/dist/records/publication.d.ts +1 -1
  121. package/dist/records/publication.d.ts.map +1 -1
  122. package/dist/records/publication.js +3 -4
  123. package/dist/records/publication.js.map +1 -1
  124. package/dist/registration/user-ground.d.ts +3 -6
  125. package/dist/registration/user-ground.d.ts.map +1 -1
  126. package/dist/registration/user-ground.js +6 -8
  127. package/dist/registration/user-ground.js.map +1 -1
  128. package/dist/transfer/upload.d.ts +1 -1
  129. package/dist/transfer/upload.js +1 -1
  130. package/dist-cjs/apply/contracts.js.map +1 -1
  131. package/dist-cjs/apply/index.js +0 -5
  132. package/dist-cjs/apply/index.js.map +1 -1
  133. package/dist-cjs/apply/journey.js +29 -10
  134. package/dist-cjs/apply/journey.js.map +1 -1
  135. package/dist-cjs/apply/local-work.js +15 -46
  136. package/dist-cjs/apply/local-work.js.map +1 -1
  137. package/dist-cjs/apply/plans.js +7 -24
  138. package/dist-cjs/apply/plans.js.map +1 -1
  139. package/dist-cjs/apply/settling.js +1 -1
  140. package/dist-cjs/apply/showing.js +22 -11
  141. package/dist-cjs/apply/showing.js.map +1 -1
  142. package/dist-cjs/apply/window.js +5 -15
  143. package/dist-cjs/apply/window.js.map +1 -1
  144. package/dist-cjs/detection/batch.js.map +1 -1
  145. package/dist-cjs/detection/record-proposal.js +16 -23
  146. package/dist-cjs/detection/record-proposal.js.map +1 -1
  147. package/dist-cjs/drive/contracts.js +28 -0
  148. package/dist-cjs/drive/contracts.js.map +1 -0
  149. package/dist-cjs/drive/drive.js +36 -0
  150. package/dist-cjs/drive/drive.js.map +1 -0
  151. package/dist-cjs/drive/index.js +28 -0
  152. package/dist-cjs/drive/index.js.map +1 -0
  153. package/dist-cjs/drive/listing.js +43 -0
  154. package/dist-cjs/drive/listing.js.map +1 -0
  155. package/dist-cjs/drive/placements.js +48 -0
  156. package/dist-cjs/drive/placements.js.map +1 -0
  157. package/dist-cjs/drive/where.js +117 -0
  158. package/dist-cjs/drive/where.js.map +1 -0
  159. package/dist-cjs/entities/bytes.js +3 -3
  160. package/dist-cjs/entities/bytes.js.map +1 -1
  161. package/dist-cjs/entities/cloud.js +21 -7
  162. package/dist-cjs/entities/cloud.js.map +1 -1
  163. package/dist-cjs/entities/index.js +2 -10
  164. package/dist-cjs/entities/index.js.map +1 -1
  165. package/dist-cjs/entities/reducer.js +51 -329
  166. package/dist-cjs/entities/reducer.js.map +1 -1
  167. package/dist-cjs/entities/rules.js +1 -2
  168. package/dist-cjs/entities/rules.js.map +1 -1
  169. package/dist-cjs/files/commands.js +3 -4
  170. package/dist-cjs/files/commands.js.map +1 -1
  171. package/dist-cjs/git/artifact.js +165 -0
  172. package/dist-cjs/git/artifact.js.map +1 -0
  173. package/dist-cjs/git/chain.js +56 -0
  174. package/dist-cjs/git/chain.js.map +1 -0
  175. package/dist-cjs/git/index.js +24 -0
  176. package/dist-cjs/git/index.js.map +1 -0
  177. package/dist-cjs/git/plan.js +97 -0
  178. package/dist-cjs/git/plan.js.map +1 -0
  179. package/dist-cjs/git/state.js +148 -0
  180. package/dist-cjs/git/state.js.map +1 -0
  181. package/dist-cjs/git/text.js +8 -0
  182. package/dist-cjs/git/text.js.map +1 -0
  183. package/dist-cjs/index.js +1 -0
  184. package/dist-cjs/index.js.map +1 -1
  185. package/dist-cjs/records/contracts.js +1 -7
  186. package/dist-cjs/records/contracts.js.map +1 -1
  187. package/dist-cjs/records/publication.js +3 -4
  188. package/dist-cjs/records/publication.js.map +1 -1
  189. package/dist-cjs/registration/user-ground.js +5 -7
  190. package/dist-cjs/registration/user-ground.js.map +1 -1
  191. package/dist-cjs/transfer/upload.js +1 -1
  192. package/package.json +4 -4
  193. package/dist/apply/expected-repository.d.ts +0 -49
  194. package/dist/apply/expected-repository.d.ts.map +0 -1
  195. package/dist/apply/expected-repository.js +0 -125
  196. package/dist/apply/expected-repository.js.map +0 -1
  197. package/dist/apply/repository-boundaries.d.ts +0 -75
  198. package/dist/apply/repository-boundaries.d.ts.map +0 -1
  199. package/dist/apply/repository-boundaries.js +0 -70
  200. package/dist/apply/repository-boundaries.js.map +0 -1
  201. package/dist/apply/repository-paths.d.ts +0 -33
  202. package/dist/apply/repository-paths.d.ts.map +0 -1
  203. package/dist/apply/repository-paths.js +0 -67
  204. package/dist/apply/repository-paths.js.map +0 -1
  205. package/dist/apply/repository-result.d.ts +0 -12
  206. package/dist/apply/repository-result.d.ts.map +0 -1
  207. package/dist/apply/repository-result.js +0 -115
  208. package/dist/apply/repository-result.js.map +0 -1
  209. package/dist/apply/shown-checkpoint.d.ts +0 -14
  210. package/dist/apply/shown-checkpoint.d.ts.map +0 -1
  211. package/dist/apply/shown-checkpoint.js +0 -113
  212. package/dist/apply/shown-checkpoint.js.map +0 -1
  213. package/dist/entities/package-maps.d.ts +0 -73
  214. package/dist/entities/package-maps.d.ts.map +0 -1
  215. package/dist/entities/package-maps.js +0 -124
  216. package/dist/entities/package-maps.js.map +0 -1
  217. package/dist/entities/repo-manifest.d.ts +0 -8
  218. package/dist/entities/repo-manifest.d.ts.map +0 -1
  219. package/dist/entities/repo-manifest.js +0 -12
  220. package/dist/entities/repo-manifest.js.map +0 -1
  221. package/dist/entities/repo-states.d.ts +0 -280
  222. package/dist/entities/repo-states.d.ts.map +0 -1
  223. package/dist/entities/repo-states.js +0 -541
  224. package/dist/entities/repo-states.js.map +0 -1
  225. package/dist/entities/territory.d.ts +0 -25
  226. package/dist/entities/territory.d.ts.map +0 -1
  227. package/dist/entities/territory.js +0 -59
  228. package/dist/entities/territory.js.map +0 -1
  229. package/dist/entities/traveling.d.ts +0 -93
  230. package/dist/entities/traveling.d.ts.map +0 -1
  231. package/dist/entities/traveling.js +0 -238
  232. package/dist/entities/traveling.js.map +0 -1
  233. package/dist-cjs/apply/expected-repository.js +0 -128
  234. package/dist-cjs/apply/expected-repository.js.map +0 -1
  235. package/dist-cjs/apply/repository-boundaries.js +0 -78
  236. package/dist-cjs/apply/repository-boundaries.js.map +0 -1
  237. package/dist-cjs/apply/repository-paths.js +0 -73
  238. package/dist-cjs/apply/repository-paths.js.map +0 -1
  239. package/dist-cjs/apply/repository-result.js +0 -118
  240. package/dist-cjs/apply/repository-result.js.map +0 -1
  241. package/dist-cjs/apply/shown-checkpoint.js +0 -116
  242. package/dist-cjs/apply/shown-checkpoint.js.map +0 -1
  243. package/dist-cjs/entities/package-maps.js +0 -132
  244. package/dist-cjs/entities/package-maps.js.map +0 -1
  245. package/dist-cjs/entities/repo-manifest.js +0 -15
  246. package/dist-cjs/entities/repo-manifest.js.map +0 -1
  247. package/dist-cjs/entities/repo-states.js +0 -559
  248. package/dist-cjs/entities/repo-states.js.map +0 -1
  249. package/dist-cjs/entities/territory.js +0 -63
  250. package/dist-cjs/entities/territory.js.map +0 -1
  251. package/dist-cjs/entities/traveling.js +0 -247
  252. package/dist-cjs/entities/traveling.js.map +0 -1
package/PURPOSE.md CHANGED
@@ -36,14 +36,12 @@ structural changes while admitting independent work. Re-inclusion compares
36
36
  against the sharing baseline, including pending admitted local work, rather
37
37
  than the latest suppressed observation. Committed records stay immutable through
38
38
  policy changes. Named and broad host observation use this boundary. Full-ground
39
- checks cover excluded observations and later enrollment; acknowledgement of a
40
- machine's own selected Git result while excluded local files remain is still
41
- unfinished. Complete native and multi-machine convergence are not yet proved.
39
+ checks cover excluded observations and later enrollment. Complete native and
40
+ multi-machine convergence are not yet proved.
42
41
 
43
42
  Publication structure is the complete active UUID set with each node's type,
44
43
  parent, name and policy address. When both inputs have the same structure,
45
- choosing whole rows from either cannot change ancestry, collisions or repository
46
- ownership. Selection reuses that one derived context within the call; contents,
44
+ choosing whole rows from either cannot change ancestry or collisions. Selection reuses that one derived context within the call; contents,
47
45
  provenance, policy and Record's original source proof remain independent.
48
46
 
49
47
  ### Deletion
@@ -68,15 +66,16 @@ Detect describes a complete result; Apply reproduces that result without
68
66
  erasing another entity's independent identity or unrecorded local work.
69
67
  These rules govern the ongoing Files rail, separately from construct sharing.
70
68
 
71
- - A repository's payload fingerprint covers its complete Git state and member
72
- identities. A different pack or incremental base is transport, not an edit.
73
- - Git's shared refs and objects and a worktree's HEAD, index and unfinished work
74
- are distinct responsibilities. This implementation transports independent checkout
75
- copies; it does not promise to reproduce linked-worktree topology or safely
76
- rewrite shared Git storage through several checkout authorities.
77
- - An enclosing repository owns ordinary descendants, never a nested
78
- repository's independent state. Projection must preserve that boundary even
79
- when the enclosing result predates it.
69
+ - A repository's payload is its Git directory's state ID; its working-tree
70
+ files are ordinary entities on their own channels. A different pack or
71
+ parent artifact is transport, not an edit.
72
+ - Two writers, one disk: Apply writes a Git directory as one more Git process
73
+ would, each file under Git's own lock, `HEAD` last, and never removes a lock
74
+ a running Git command holds.
75
+ - A linked worktree or a submodule has its own HEAD and index, so it is a
76
+ separate entity with its own UUID. Its state names its home, the
77
+ repository whose Git directory holds its own, so every machine puts it
78
+ where Git looks for it.
80
79
  - Named ownership and capability waits identify their prerequisite and its
81
80
  producer. Relevant progress wakes them; unrelated work does not invalidate
82
81
  their proof.
@@ -88,13 +87,11 @@ These rules govern the ongoing Files rail, separately from construct sharing.
88
87
  its final guard. Optimistic equality must pass that guard as well.
89
88
  - Complete results decide Apply. Sender-side change labels and byte deltas
90
89
  cannot limit what the receiving computer must reproduce.
91
- - A change of publication owner never erases known lineage. An entity leaving
92
- a Git parcel publishes its complete independent result, even when unchanged,
93
- based on its last admitted sharing state. Its actual changed fields may be
94
- empty. The selected ownership transition, record and baseline commit together;
95
- repeating that settled observation produces nothing.
96
- - Observation leaves source files and Git metadata unchanged. Private patch
97
- generation cannot refresh source objects and thereby trigger its own watcher.
90
+ - Every entity speaks only on its own channel. A change with no changed field
91
+ is no record, and repeating a settled observation produces nothing.
92
+ - Observation leaves source files and Git metadata unchanged. Detect reads a
93
+ Git directory file by file, as a second Git process would, and writes
94
+ nothing there, so reading it can never ring its own watcher.
98
95
  - Existing whole-result last-write-wins stays in force. Ordinary filesystem
99
96
  deletion becomes recoverable Amalgm Trash; it never permanently deletes content. Independent simultaneous work needs separate working sessions;
100
97
  recovery history does not promise automatic integration.
@@ -245,30 +242,16 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
245
242
  21. **A Git marker classifies its containing directory.** A `.git`
246
243
  directory or file that Git can use, by Git's own structural test, makes
247
244
  its containing directory `repo.git`; its removal, or a break Git itself
248
- would refuse, returns that same UUID to `workspace` or `folder`, whose
249
- children then travel as ordinary entities. Git command availability
250
- governs Card + Checkpoint capture, never classification, and `.git`
251
- itself, usable or not, is Git's metadata that receives no entity row.
252
- Each repository directory starts a repository rail: ordinary worktree
253
- children retain local UUID rows and ride in their nearest repository state
254
- manifest, while a nested repository and the ancestry spine that reaches it
255
- remain cloud graph records with their own Card + Checkpoint transport. The
256
- enclosing identity map carries only that nested repository's address, UUID,
257
- and type; its payload belongs exclusively to its own rail. A shallow
258
- repository carries its declared Git history boundary, so a new machine
259
- never invents history beyond it. Every current graph a reader derives
260
- from a published snapshot and its later delivery tail passes through this
261
- same projection, and Add refuses a lookup that hands it a record the
262
- projection would not publish before it moves any bytes. Records follow
263
- cause before effect: every accepted prefix must be reconstructible from
264
- its accepted records and retained packages, without waiting for a later
265
- record. Leaving repository territory publishes the boundary retype first,
266
- then each newly independent descendant, whose retained latest statement
267
- supplies its contents until its own record arrives; a repository that
268
- stays a repository publishes after every record beneath it that crosses
269
- its boundary. Every deletion is stated by the capture: by an ancestor's
270
- Trash that still covers the entity, else by the new package of the live
271
- repository that held it, else by the entity's own Trash record.
245
+ would refuse, returns that same UUID to `workspace` or `folder`. `.git`
246
+ itself receives no entity row of its own: its Git directory is the
247
+ repository entity's payload. The repository's working-tree files and
248
+ folders are ordinary entities on their own channels before and after a
249
+ retype, so a retype changes one row and moves no child. A repository
250
+ nested inside another is one more `repo.git` entity in the tree. A shallow
251
+ repository's `shallow` file travels with its Git directory, so a new
252
+ machine never invents history beyond it. Records follow cause before
253
+ effect: every accepted prefix is reconstructible from its accepted records
254
+ and retained artifacts, without waiting for a later record.
272
255
  22. **Transfer moves content; it never discovers state.** `upload` moves one
273
256
  already-registered immutable artifact toward cloud storage and `download`
274
257
  moves that same artifact toward a machine cache. Neither operation scans,
@@ -276,7 +259,9 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
276
259
  publishes a registry snapshot.
277
260
  23. **Entity type selects the artifact, not a second lifecycle.** Text and
278
261
  binary files travel as file bytes, links travel as their literal target,
279
- and repositories travel as a small state manifest plus Git-native packs.
262
+ and a repository travels as one artifact per record: its Git directory
263
+ state, one thin Git pack, and the Git-directory files its parent artifact
264
+ lacks.
280
265
  Workspace and folder membership travels in the entity graph; references
281
266
  carry a UUID and therefore have no separate content artifact.
282
267
  24. **Transfer is verified, missing-only, and commit-last.** File chunks and
@@ -291,22 +276,23 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
291
276
  store every block and the manifest, persist its sealed-manifest evidence,
292
277
  and only then number the Record. The ordinary block path writes the same
293
278
  evidence after its content is durable, so submit never repeats an R2 proof.
294
- 25. **Cold repository transfer is native Git work.** An empty destination
295
- receives one binary pack containing exactly the objects reachable from the
296
- repository's declared refs, plus bounded Amalgm state metadata. A Git pack
297
- is never embedded in JSON or base64 and is never unpacked into per-file
298
- upload requests.
299
- 26. **Incremental repository transfer is negotiated Git work.** The
300
- destination's existing object frontier is the exclusion set for Git's
301
- packer. A new repository state links to its prior transport and carries
302
- only objects the prior state cannot supply; download follows and imports
303
- only the missing links, oldest first. A one-file commit can never cause the
304
- previously uploaded repository history to travel again.
279
+ 25. **Cold repository transfer is native Git work.** A new machine installs
280
+ a repository's artifact chain oldest first, back to the artifact that
281
+ carries everything. Each pack installs as `git fetch` installs one and is
282
+ proved connected by Git before any Git-directory file is written. A Git
283
+ pack is never embedded in JSON or base64 and is never unpacked into
284
+ per-file upload requests. Compaction, one artifact replacing a prefix of
285
+ the chain, is not built.
286
+ 26. **Incremental repository transfer is Git's thin pack.** A new artifact
287
+ names its parent and carries only the objects its parent's roots do not
288
+ reach, packed by `pack-objects --thin`, plus the Git-directory files its
289
+ parent's state lacks. A one-file commit can never cause previously
290
+ uploaded repository history to travel again.
305
291
  27. **Registered type selects transfer.** Upload and download dispatch only
306
292
  from the registered entity type according to `docs/transfer.md`. They
307
293
  never re-detect type from a path or contents. Graph-only types perform no
308
294
  content effects; text and binary files use the same block law; Git alone
309
- uses Git object negotiation.
295
+ uses Git's own packs.
310
296
  28. **A doorbell names suspicion, never truth.** Watch preserves every named
311
297
  path until one settled observation proves it; paths rung during that
312
298
  observation remain suspect. A named burst widens first to its deepest
@@ -324,14 +310,13 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
324
310
  freezes before scope release; later notices cannot renew that priority or
325
311
  receive its completion.
326
312
  Scope may reduce what is read, never change the state that is derived.
327
- 29. **Git owns stored objects; physical bytes own worktree truth.** A leaf's
328
- type, payload and executable posture describe the same stable physical
329
- observation. Git reporting a clean path, index flags, attributes and
330
- conversion settings are never evidence that its stored blob equals those
331
- bytes. A Git blob identity may stand for a worktree payload only after
332
- raw byte equality is proved. Cached physical evidence follows the same
333
- suspicion and freshness rules as ordinary files. Checkpoint capture must
334
- reproduce those exact bytes independently of receiver Git settings.
313
+ 29. **Git owns its Git directory; physical bytes own worktree truth.** A
314
+ working-tree file is an ordinary file entity: its type, payload and
315
+ executable posture describe the same stable physical observation, and Git
316
+ reporting a clean path, index flags, attributes and conversion settings
317
+ are never evidence about it. The Git directory is judged file by file by
318
+ its bytes, except the index, judged by what it means, never by the stat
319
+ data each machine's refresh re-stamps.
335
320
  30. **Proof travels forward; disposable bytes need not.** Registration reads
336
321
  every ordinary text or binary file through one bounded stream to classify
337
322
  it and derive its content head. When cloud cargo is missing, that same
@@ -374,7 +359,7 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
374
359
  reinterpreted or overwritten in place.
375
360
  33. **Detection proposes settled net truth; Record makes it durable.** Watch
376
361
  contributes generation-stamped suspicion only. Detect reconciles identity,
377
- current enrollment, type, repository territory, and exact replay from the
362
+ current enrollment, type, and exact replay from the
378
363
  last verified notebook state to settled disk truth, then emits a complete
379
364
  result record plus immutable cargo references. Record assigns mutation
380
365
  identity and durable order before that Watch generation settles. Applied
@@ -389,18 +374,18 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
389
374
  carries its children's addresses even when another directory takes its
390
375
  old path or an editor replaces a child's inode.
391
376
  34. **Named Detect costs what changed, not what exists.** A valid named
392
- suspicion loads indexed notebook rows for that path, its required parents,
393
- and its nearest repository territory; it never walks or serializes the
394
- complete workspace. A new directory costs its new subtree. A repository
395
- costs its Card + Checkpoint scope. Only honestly ambiguous evidence enters
377
+ suspicion loads indexed notebook rows for that path and its required
378
+ parents; it never walks or serializes the complete workspace. A new
379
+ directory costs its new subtree. A repository costs a walk of its Git
380
+ directory, never its working tree. Only honestly ambiguous evidence enters
396
381
  complete reconciliation. Detect ends after the exact proposal and local
397
382
  truth are committed together; cloud publication belongs to Send.
398
383
  35. **The entity UUID is the ordered channel; each computer sends one line.**
399
384
  Cloud assigns a dense sequence independently to each entity UUID across all
400
385
  machines. Within each authority, a computer's records are accepted in its
401
386
  local record order, so what others observe of that computer's work is always
402
- a prefix of what it recorded: a retype that exposes repository-owned ground
403
- follows the records written before it, and every observable prefix remains a
387
+ a prefix of what it recorded: a retype follows the records written before
388
+ it, and every observable prefix remains a
404
389
  complete graph. That line orders delivery, not truth: neither it nor a
405
390
  workspace or delivery cursor decides which entity state wins.
406
391
  36. **Receive owns the local inbox.** Every cloud-accepted record, including
@@ -450,29 +435,13 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
450
435
  UUIDs remain independent channels. A result plays by what this computer
451
436
  shows: one shown neither before nor after resolves in order with no
452
437
  effect, so a child never waits for a parent this computer does not show.
453
- Every file belongs to its nearest repository: a repository result acts
454
- only on its territory, never on a nested repository's subtree or on ground
455
- another rail owns here where its map disagrees, so it never waits on a
456
- boundary. An accepted destination already recorded as
438
+ A repository is a container like any other; its working-tree files apply
439
+ on their own channels. An accepted destination already recorded as
457
440
  a different entity is a conflict, never a local change to capture. The park
458
441
  timer and attempt count are process-local: after restart, the durable
459
442
  intent is re-proved once and, if still blocked, parks again from attempt
460
443
  one.
461
- A host proves current physical repository ground from Card + Checkpoint and
462
- the exact identity frontier sealed to that immutable transport. Compact
463
- machine evidence is accepted only when it reproduces the transport's
464
- identity hash; it survives obsolete parent-pack pruning, while mutable child
465
- rows whose independent entity channels may advance before or after it can
466
- neither invalidate nor substitute for that proof. That frontier is complete
467
- for the repository's nearest-owned worktree: a path omitted by the settled
468
- Git result is retired from both materialized and notebook identity in the
469
- same transaction, while nested repository territory remains independently
470
- owned. A later capture and a mirror Apply must therefore derive the same
471
- frontier without resurrecting an identity Git already removed.
472
- A Git-form payload witness remains exact byte evidence after a repository
473
- child returns to the ordinary-file rail: it may prove that no unrecorded
474
- local edit blocks the accepted ordinary result, but it can never settle or
475
- replace that explicit result. When accepted history collapses to a
444
+ When accepted history collapses to a
476
445
  structural leaf head that has never existed locally, recovery consumes the
477
446
  retained immutable payload through the target type's adapter; a link is
478
447
  restored as literal link target text and only an ordinary file is restored
@@ -491,13 +460,13 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
491
460
  recreates it piecemeal.
492
461
  Text uses an exact-base splice with a complete snapshot fallback;
493
462
  binary uses its verified block manifest; links use literal target text;
494
- containers use structure; repositories use one resumable Card + Checkpoint
495
- transition. A type transition replaces the prior physical representation
463
+ containers use structure; a repository installs its Git packs, proves them
464
+ connected, then writes its Git directory as one more Git process would,
465
+ `HEAD` last. A type transition replaces the prior physical representation
496
466
  at the same UUID and address through that same recoverable reveal; mere
497
467
  path existence is never proof that the target type exists.
498
- 40. **Newer local work outranks older materialization.** A local statement
499
- that speaks for an entity (its own row, or a package of the repository
500
- whose scope holds it) and is not delivered at or before the selected Apply
468
+ 40. **Newer local work outranks older materialization.** A local record on an
469
+ entity's own channel that is not delivered at or before the selected Apply
501
470
  target protects that entity's working ground. The local complete result is
502
471
  still accepted normally and wins only when cloud assigns its later
503
472
  sequence; Apply never rebases, merges, stale-refuses, or rewrites it. A
@@ -525,10 +494,10 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
525
494
  and is left to Detect. Cancellation preserves sharing values and resolves
526
495
  nothing. The newest record then wins, never by releasing unread ground.
527
496
  Exact target Verify is still required to claim installation. For a
528
- repository, Verify commits Card, Checkpoint, and the complete transported
529
- identity frontier as one notebook fact. The Watch observation caused by
530
- that reveal must compare equal to that same fact; it can never become a new
531
- local repository transport or Outbox mutation.
497
+ repository, Verify reads its Git directory back and commits that state ID
498
+ as the notebook fact. The Watch observation caused by that reveal must
499
+ compare equal to it; it can never become a new local repository artifact or
500
+ Outbox mutation.
532
501
 
533
502
  42. **The registry graph is immutable pages, and its head is the snapshot.**
534
503
  A page is one root's UUID-sorted records serialized canonically under a
@@ -572,16 +541,18 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
572
541
  Local display names are opaque nonempty text without NUL, including native
573
542
  root labels and separators; the separate nonempty, NUL-free host path owns
574
543
  the address and never derives from the display name.
575
- 47. **An unfinished merge is settled Checkpoint truth.** Git lock files are
576
- never portable state and their presence alone cannot prevent a proven
577
- stable observation. Amalgm's own incomplete reveal is ground its Apply
578
- receipt owns, which Detect leaves unread through that receipt; a reveal
579
- marker no receipt owns refuses nothing. A stable merge's heads, message
580
- and mode, every unmerged index stage, and the current worktree conflict
581
- bytes are one portable Checkpoint. Registration, Detect, transport,
582
- Apply, and Verify preserve that state exactly so another machine can
583
- continue or resolve the same merge; no layer may turn a durable conflict
584
- into a busy retry or silently flatten it to an ordinary file.
544
+ 47. **An unfinished Git operation is settled Git-directory truth.** A stable
545
+ merge, rebase, cherry-pick or revert leaves its files in the Git directory,
546
+ unmerged index stages included, and they travel byte for byte like every
547
+ other file, so another machine can continue or resolve the same operation;
548
+ its conflicted working-tree files travel as ordinary files. Lock files
549
+ travel too: a command left unfinished on one machine stands unfinished on
550
+ the other. Apply clears a lock only when the synced state holds it; any
551
+ other lock is a Git command at work on that machine, and Apply waits for
552
+ it rather than remove it. A repository new on a machine is built whole in
553
+ private and revealed by one rename, so no half-built repository is ever
554
+ shown. No layer may turn a durable conflict into a busy retry or silently
555
+ flatten it.
585
556
  48. **A slot collision changes materialization, never identity.** Mutation-time
586
557
  guards refuse a second local owner of one `(parentUUID, name)` slot, but a
587
558
  merged graph may contain identities created concurrently in that slot.
@@ -600,16 +571,11 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
600
571
  resending unchanged bytes; Add, Apply, and Verify restore and prove the
601
572
  exact mode. Ownership, ACLs, directory modes, and other platform posture
602
573
  remain machine-local.
603
- 50. **A Git Card carries every durable ref and the whole stash stack.** The
604
- Card stores one sorted set of full names below `refs/` — heads, tags,
605
- notes, remotes, and custom refs — excluding only Amalgm's private import
606
- namespace, and beside it the stash stack newest first. Git keeps that
607
- stack only in the `refs/stash` reflog, where a ref alone names just the
608
- top entry, so each entry travels by value as its commit plus its reflog
609
- message in Git's normalized form; reflog timestamps and committer
610
- identity stay machine-local. Capture packs every named object, Apply
611
- recreates the exact ref set, deletes absent refs, and rebuilds a differing
612
- stash stack in order, and Verify compares both; no second branch, tag, or
574
+ 50. **Every ref and the whole stash stack travel as Git keeps them.** Loose
575
+ refs, `packed-refs`, reflogs and the `refs/stash` reflog that holds the
576
+ stash stack are files of the Git directory and travel byte for byte, with
577
+ the objects they reach. Another machine holds the same ref set, the same
578
+ stash stack in order, and the same reflogs; no second branch, tag, or
613
579
  stash representation exists.
614
580
  51. **Release requires correct results and bounded, measured latency.** Each
615
581
  subsystem must satisfy its independent correctness and performance budgets
@@ -665,12 +631,14 @@ src/machines/ transport-neutral state machines: bootstrap barrier, presence
665
631
  TTL, slot arbitration, chunk reassembly, backoff.
666
632
  src/entities/ the entity model's rule surface: the six-field record,
667
633
  derived versions, lifecycle laws, move planning, the
668
- cloud and repo-state codecs — behind injected ports.
634
+ cloud codec and the one reducer — behind injected ports.
635
+ src/git/ the Git-directory repository law: the state and its ID, the
636
+ transport artifact, the chain a receiver reads, and Apply's
637
+ plan and lock law. Git itself runs in the host.
669
638
  src/watching/ the Watch pure cores: minimal coverage ownership and
670
639
  generation-safe suspicion.
671
640
  src/detection/ the Detect pure submodule: Watch boundary, identity compare,
672
- classification, enrollment, repository territory, exact
673
- replay proposals, net batches, and echo equality.
641
+ classification, enrollment, exact replay proposals, net batches, and echo equality.
674
642
  src/apply/ the Apply/Verify pure submodule: bind-before-effect intents,
675
643
  gap-free selection, later-local protection, private result
676
644
  proof, type-adapter sockets, and crash-resumable orchestration.
@@ -705,6 +673,12 @@ SQLite, immutable-cache, Git-process, and watcher composition remains a Shell
705
673
  release step; until that published-package adoption is complete, universal
706
674
  cross-machine materialization is not a shipped claim.
707
675
 
676
+ The Git-directory repository law lives in `src/git/`. Shell performs it on its
677
+ `git/native-2026-10-26` branch, not yet as the rails' `repo.git` type adapter.
678
+ Released Shell still pins an older Live that carries repositories as Card +
679
+ Checkpoint packages, and the full ideal-operations examination has not run on
680
+ the Git-directory path.
681
+
708
682
  Registry credentials are available only to the final protected publication job,
709
683
  after every native examination proves the exact candidate bytes.
710
684
  Native consumers install the archive as a dependency, so SDK development
@@ -156,15 +156,11 @@ export interface ReferenceApplyPlan extends ApplyPlanBase {
156
156
  readonly kind: 'reference';
157
157
  readonly targetEntityId: string;
158
158
  }
159
+ /** The Git directory's target state, reproduced by the artifact its
160
+ * transport version names and the chain of parents that artifact follows. */
159
161
  export interface RepositoryApplyPlan extends ApplyPlanBase {
160
162
  readonly kind: 'repo.git';
161
163
  readonly artifact: TransferArtifact;
162
- readonly stateId: string;
163
- readonly identityHash: string;
164
- readonly cardId: string;
165
- readonly checkpointId: string;
166
- readonly parentTransportVersion: string | null;
167
- readonly transportVersion: string;
168
164
  }
169
165
  /** The result stops showing here: trashed, deleted, moved under ground this
170
166
  * computer does not show, or below a place that is no longer a shown
@@ -334,8 +330,7 @@ export interface EntityApplyStorePort {
334
330
  * position, else the end. Nothing is resolved by reading. */
335
331
  readApplyWindow(authorityId: string): MaybePromise<EntityApplyLineStep>;
336
332
  /** True when local work follows the entity's accepted record at
337
- * `targetSequence` (local-work.ts): an Outbox row that speaks for the
338
- * entity, on its own channel or as a package of its speaking repository,
333
+ * `targetSequence` (local-work.ts): an Outbox row on the entity's channel
339
334
  * whose delivery position is unknown or after the target's. */
340
335
  hasLocalWorkAfter(authorityId: string, entityId: string, targetSequence: number): MaybePromise<boolean>;
341
336
  /** The bound fact: one strict commit of the window's row, carrying each
@@ -351,8 +346,11 @@ export interface EntityApplyStorePort {
351
346
  }
352
347
  /** Type-owned Apply behavior. Every operation is idempotent for the exact intent. */
353
348
  export interface EntityApplySocket {
354
- /** Build the member's result privately, in the window's staging. */
355
- prepare(intent: EntityApplyIntent, plan: EntityApplyPlan): Promise<void>;
349
+ /** Build the member's result privately, in the window's staging. A
350
+ * result that cannot be built yet, such as a linked worktree whose main
351
+ * checkout's Apply has yet to bring its objects, names what it waits for:
352
+ * it and every member after it stay owed. */
353
+ prepare(intent: EntityApplyIntent, plan: EntityApplyPlan): Promise<void | ApplyDependencyOutcome>;
356
354
  /** Compare ground with the last local observation: the look before
357
355
  * preparation, the final guard under held ground before the bind. */
358
356
  guard(intent: EntityApplyIntent, plan: EntityApplyPlan, stage: ApplyGuardStage): Promise<ApplyGuard>;
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/apply/contracts.ts"],"names":[],"mappings":"AAAA,mEAAmE;AAEnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEnE,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAE3E;6EAC6E;AAC7E,MAAM,WAAW,iBAAiB;IAChC,gFAAgF;IAChF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QA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,CAAC,MAAM,CAAC;QAC3B,QAAQ,EAAE,qBAAqB;QAC/B,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QAC1C,SAAS,EAAE,KAAK,CAAC,SAAS;KAC3B,CAAC,CAAC;IACH,uBAAuB,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -5,11 +5,6 @@ export * from './fetch-ahead.js';
5
5
  export * from './local-work.js';
6
6
  export { planEntityApply } from './plans.js';
7
7
  export * from './rail.js';
8
- export * from './repository-result.js';
9
- export * from './repository-boundaries.js';
10
- export * from './repository-paths.js';
11
- export * from './expected-repository.js';
12
- export * from './shown-checkpoint.js';
13
8
  export * from './selection.js';
14
9
  export * from './settling.js';
15
10
  export * from './showing.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/apply/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AAEzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/apply/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AAEzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
@@ -5,11 +5,6 @@ export * from './fetch-ahead.js';
5
5
  export * from './local-work.js';
6
6
  export { planEntityApply } from './plans.js';
7
7
  export * from './rail.js';
8
- export * from './repository-result.js';
9
- export * from './repository-boundaries.js';
10
- export * from './repository-paths.js';
11
- export * from './expected-repository.js';
12
- export * from './shown-checkpoint.js';
13
8
  export * from './selection.js';
14
9
  export * from './settling.js';
15
10
  export * from './showing.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/apply/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AAEzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/apply/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AAEzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
@@ -33,9 +33,11 @@ export declare class EntityApplyJourney {
33
33
  * window's members look, the ones that may proceed prepare privately,
34
34
  * ground is held, each member's final guard runs, the window binds, the
35
35
  * members reveal in containment order and Verify, and one end commit
36
- * resolves the complete prefix. The first member that cannot proceed ends
37
- * the prefix: everything before it goes on, it and everything after it
38
- * stay owed and are judged again.
36
+ * resolves the complete prefix. The first member that cannot proceed, at
37
+ * its look, its preparation or its final guard, ends the prefix:
38
+ * everything before it goes on, it and everything after it stay owed and
39
+ * are judged again. So a member waiting on an earlier one never holds the
40
+ * window that would release it.
39
41
  */
40
42
  run(window: ApplyWindow): Promise<HeadOutcome>;
41
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"journey.d.ts","sourceRoot":"","sources":["../../src/apply/journey.ts"],"names":[],"mappings":"AAAA;wDACwD;AAExD,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,eAAe,EAKpB,KAAK,WAAW,EAIhB,KAAK,sBAAsB,EAK5B,MAAM,gBAAgB,CAAC;AAMxB;;;;gBAIgB;AAChB,MAAM,MAAM,WAAW,GACnB,UAAU,GACV,OAAO,GACP;IACA,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,eAAe,CAA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,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAYzF;AAKD;;;;GAIG;AACH,qBAAa,kBAAkB;;gBAIjB,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,MAAM;IAKtE,oEAAoE;IACpE,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI;IAO5C;;;;;;;;;;OAUG;IACG,GAAG,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;CA8LrD"}
@@ -70,9 +70,11 @@ export class EntityApplyJourney {
70
70
  * window's members look, the ones that may proceed prepare privately,
71
71
  * ground is held, each member's final guard runs, the window binds, the
72
72
  * members reveal in containment order and Verify, and one end commit
73
- * resolves the complete prefix. The first member that cannot proceed ends
74
- * the prefix: everything before it goes on, it and everything after it
75
- * stay owed and are judged again.
73
+ * resolves the complete prefix. The first member that cannot proceed, at
74
+ * its look, its preparation or its final guard, ends the prefix:
75
+ * everything before it goes on, it and everything after it stay owed and
76
+ * are judged again. So a member waiting on an earlier one never holds the
77
+ * window that would release it.
76
78
  */
77
79
  async run(window) {
78
80
  if (window.intent !== null)
@@ -100,16 +102,20 @@ export class EntityApplyJourney {
100
102
  return this.#end(null, active, active.map(member => settled(member)));
101
103
  const intent = createApplyWindowIntent({ attemptId, authorityId: window.authorityId, createdAt,
102
104
  members: plays.map(play => play.intent) });
103
- const plans = plays.map(play => play.plan);
104
105
  try {
105
- for (const member of active) {
106
- const play = playing.get(member.work.entityId);
107
- if (play && play.look === 'safe')
108
- await play.adapter.apply.prepare(play.intent, play.plan);
106
+ const built = await this.#build(active, playing);
107
+ const ready = built.active.flatMap(member => playing.get(member.work.entityId) ?? []);
108
+ if (ready.length === 0) {
109
+ await this.#options.effects.discard(intent);
110
+ if (built.active.length === 0)
111
+ return built.blocked ?? 'again';
112
+ return this.#end(null, built.active, built.active.map(member => settled(member)));
109
113
  }
110
- const release = await this.#options.effects.hold(intent, plans);
114
+ const holding = ready.length === plays.length ? intent
115
+ : createApplyWindowIntent({ ...intent, members: ready.map(play => play.intent) });
116
+ const release = await this.#options.effects.hold(holding, ready.map(play => play.plan));
111
117
  try {
112
- return await this.#held(intent, active, playing);
118
+ return await this.#held(holding, built.active, playing);
113
119
  }
114
120
  finally {
115
121
  release();
@@ -188,6 +194,19 @@ export class EntityApplyJourney {
188
194
  }
189
195
  return { active, blocked: null };
190
196
  }
197
+ /** The members in prefix order whose results are built privately, and
198
+ * what stopped the first whose result cannot be built yet. */
199
+ async #build(members, playing) {
200
+ for (const [index, member] of members.entries()) {
201
+ const play = playing.get(member.work.entityId);
202
+ if (!play || play.look !== 'safe')
203
+ continue;
204
+ const waiting = await play.adapter.apply.prepare(play.intent, play.plan);
205
+ if (waiting)
206
+ return { active: members.slice(0, index), blocked: parkFor(waiting) };
207
+ }
208
+ return { active: [...members], blocked: null };
209
+ }
191
210
  /** A bound window re-enters through its receipt: each member's ground is
192
211
  * read there and finished there, then the window ends. */
193
212
  async #recover(window, intent) {