@amalgm/live 0.2.81-preview.44182741051 → 0.2.81-preview.44982739006

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 (1018) hide show
  1. package/PURPOSE.md +279 -256
  2. package/README.md +10 -15
  3. package/dist/apply/contracts.d.ts +460 -143
  4. package/dist/apply/contracts.d.ts.map +1 -1
  5. package/dist/apply/contracts.js +81 -22
  6. package/dist/apply/contracts.js.map +1 -1
  7. package/dist/apply/fetch-ahead.d.ts +61 -0
  8. package/dist/apply/fetch-ahead.d.ts.map +1 -0
  9. package/dist/apply/fetch-ahead.js +169 -0
  10. package/dist/apply/fetch-ahead.js.map +1 -0
  11. package/dist/apply/index.d.ts +4 -5
  12. package/dist/apply/index.d.ts.map +1 -1
  13. package/dist/apply/index.js +4 -5
  14. package/dist/apply/index.js.map +1 -1
  15. package/dist/apply/journey.d.ts +50 -0
  16. package/dist/apply/journey.d.ts.map +1 -0
  17. package/dist/apply/journey.js +398 -0
  18. package/dist/apply/journey.js.map +1 -0
  19. package/dist/apply/lane.d.ts +53 -0
  20. package/dist/apply/lane.d.ts.map +1 -0
  21. package/dist/apply/lane.js +72 -0
  22. package/dist/apply/lane.js.map +1 -0
  23. package/dist/apply/line.d.ts +61 -0
  24. package/dist/apply/line.d.ts.map +1 -0
  25. package/dist/apply/line.js +81 -0
  26. package/dist/apply/line.js.map +1 -0
  27. package/dist/apply/plans.d.ts +10 -6
  28. package/dist/apply/plans.d.ts.map +1 -1
  29. package/dist/apply/plans.js +72 -75
  30. package/dist/apply/plans.js.map +1 -1
  31. package/dist/apply/rail.d.ts +55 -13
  32. package/dist/apply/rail.d.ts.map +1 -1
  33. package/dist/apply/rail.js +639 -601
  34. package/dist/apply/rail.js.map +1 -1
  35. package/dist/apply/selection.d.ts +18 -7
  36. package/dist/apply/selection.d.ts.map +1 -1
  37. package/dist/apply/selection.js +95 -47
  38. package/dist/apply/selection.js.map +1 -1
  39. package/dist/apply/settling.d.ts +68 -0
  40. package/dist/apply/settling.d.ts.map +1 -0
  41. package/dist/apply/settling.js +61 -0
  42. package/dist/apply/settling.js.map +1 -0
  43. package/dist/apply/showing.d.ts +124 -0
  44. package/dist/apply/showing.d.ts.map +1 -0
  45. package/dist/apply/showing.js +203 -0
  46. package/dist/apply/showing.js.map +1 -0
  47. package/dist/apply/type-adapters.d.ts +2 -2
  48. package/dist/apply/type-adapters.d.ts.map +1 -1
  49. package/dist/apply/type-adapters.js +8 -7
  50. package/dist/apply/type-adapters.js.map +1 -1
  51. package/dist/apply/window.d.ts +143 -0
  52. package/dist/apply/window.d.ts.map +1 -0
  53. package/dist/apply/window.js +318 -0
  54. package/dist/apply/window.js.map +1 -0
  55. package/dist/clash/bodmas.d.ts +67 -0
  56. package/dist/clash/bodmas.d.ts.map +1 -0
  57. package/dist/clash/bodmas.js +130 -0
  58. package/dist/clash/bodmas.js.map +1 -0
  59. package/dist/clash/echo.d.ts +55 -0
  60. package/dist/clash/echo.d.ts.map +1 -0
  61. package/dist/clash/echo.js +59 -0
  62. package/dist/clash/echo.js.map +1 -0
  63. package/dist/clash/index.d.ts +6 -0
  64. package/dist/clash/index.d.ts.map +1 -0
  65. package/dist/clash/index.js +6 -0
  66. package/dist/clash/index.js.map +1 -0
  67. package/dist/clash/local-work.d.ts +52 -0
  68. package/dist/clash/local-work.d.ts.map +1 -0
  69. package/dist/clash/local-work.js +51 -0
  70. package/dist/clash/local-work.js.map +1 -0
  71. package/dist/clash/resolution.d.ts +15 -0
  72. package/dist/clash/resolution.d.ts.map +1 -0
  73. package/dist/clash/resolution.js +15 -0
  74. package/dist/clash/resolution.js.map +1 -0
  75. package/dist/clash/tetris.d.ts +30 -0
  76. package/dist/clash/tetris.d.ts.map +1 -0
  77. package/dist/clash/tetris.js +26 -0
  78. package/dist/clash/tetris.js.map +1 -0
  79. package/dist/contracts/content.d.ts +78 -3
  80. package/dist/contracts/content.d.ts.map +1 -1
  81. package/dist/contracts/content.js +167 -9
  82. package/dist/contracts/content.js.map +1 -1
  83. package/dist/contracts/index.d.ts +3 -14
  84. package/dist/contracts/index.d.ts.map +1 -1
  85. package/dist/contracts/index.js +3 -14
  86. package/dist/contracts/index.js.map +1 -1
  87. package/dist/contracts/protection.d.ts +18 -5
  88. package/dist/contracts/protection.d.ts.map +1 -1
  89. package/dist/contracts/protection.js +17 -23
  90. package/dist/contracts/protection.js.map +1 -1
  91. package/dist/contracts/validate.d.ts +5 -7
  92. package/dist/contracts/validate.d.ts.map +1 -1
  93. package/dist/contracts/validate.js +5 -7
  94. package/dist/contracts/validate.js.map +1 -1
  95. package/dist/detection/adapter-contract.d.ts +2 -2
  96. package/dist/detection/adapter-contract.d.ts.map +1 -1
  97. package/dist/detection/adapter-contract.js +2 -2
  98. package/dist/detection/adapter-contract.js.map +1 -1
  99. package/dist/detection/batch.d.ts +0 -2
  100. package/dist/detection/batch.d.ts.map +1 -1
  101. package/dist/detection/batch.js +1 -4
  102. package/dist/detection/batch.js.map +1 -1
  103. package/dist/detection/classify.d.ts +12 -6
  104. package/dist/detection/classify.d.ts.map +1 -1
  105. package/dist/detection/classify.js +8 -5
  106. package/dist/detection/classify.js.map +1 -1
  107. package/dist/detection/content.d.ts +26 -24
  108. package/dist/detection/content.d.ts.map +1 -1
  109. package/dist/detection/content.js +44 -83
  110. package/dist/detection/content.js.map +1 -1
  111. package/dist/detection/dispositions.d.ts +5 -17
  112. package/dist/detection/dispositions.d.ts.map +1 -1
  113. package/dist/detection/dispositions.js +5 -6
  114. package/dist/detection/dispositions.js.map +1 -1
  115. package/dist/detection/echo.d.ts +3 -15
  116. package/dist/detection/echo.d.ts.map +1 -1
  117. package/dist/detection/echo.js +7 -19
  118. package/dist/detection/echo.js.map +1 -1
  119. package/dist/detection/identity.d.ts +16 -4
  120. package/dist/detection/identity.d.ts.map +1 -1
  121. package/dist/detection/identity.js +26 -12
  122. package/dist/detection/identity.js.map +1 -1
  123. package/dist/detection/ignore-lines.d.ts +22 -0
  124. package/dist/detection/ignore-lines.d.ts.map +1 -0
  125. package/dist/detection/ignore-lines.js +212 -0
  126. package/dist/detection/ignore-lines.js.map +1 -0
  127. package/dist/detection/index.d.ts +10 -6
  128. package/dist/detection/index.d.ts.map +1 -1
  129. package/dist/detection/index.js +10 -6
  130. package/dist/detection/index.js.map +1 -1
  131. package/dist/detection/package-proposal.d.ts +40 -0
  132. package/dist/detection/package-proposal.d.ts.map +1 -0
  133. package/dist/detection/package-proposal.js +114 -0
  134. package/dist/detection/package-proposal.js.map +1 -0
  135. package/dist/detection/record-order.d.ts +37 -0
  136. package/dist/detection/record-order.d.ts.map +1 -0
  137. package/dist/detection/record-order.js +311 -0
  138. package/dist/detection/record-order.js.map +1 -0
  139. package/dist/detection/record-proposal.d.ts +89 -21
  140. package/dist/detection/record-proposal.d.ts.map +1 -1
  141. package/dist/detection/record-proposal.js +191 -44
  142. package/dist/detection/record-proposal.js.map +1 -1
  143. package/dist/detection/refusal.d.ts +55 -2
  144. package/dist/detection/refusal.d.ts.map +1 -1
  145. package/dist/detection/refusal.js +42 -4
  146. package/dist/detection/refusal.js.map +1 -1
  147. package/dist/detection/removals.d.ts +4 -2
  148. package/dist/detection/removals.d.ts.map +1 -1
  149. package/dist/detection/removals.js +5 -5
  150. package/dist/detection/removals.js.map +1 -1
  151. package/dist/detection/scoped-identity.d.ts +17 -10
  152. package/dist/detection/scoped-identity.d.ts.map +1 -1
  153. package/dist/detection/scoped-identity.js +24 -8
  154. package/dist/detection/scoped-identity.js.map +1 -1
  155. package/dist/detection/skip-defaults.d.ts +18 -0
  156. package/dist/detection/skip-defaults.d.ts.map +1 -0
  157. package/dist/detection/skip-defaults.js +116 -0
  158. package/dist/detection/skip-defaults.js.map +1 -0
  159. package/dist/detection/skip-policy.d.ts +74 -0
  160. package/dist/detection/skip-policy.d.ts.map +1 -0
  161. package/dist/detection/skip-policy.js +203 -0
  162. package/dist/detection/skip-policy.js.map +1 -0
  163. package/dist/detection/watch-boundary.js +1 -1
  164. package/dist/detection/watch-boundary.js.map +1 -1
  165. package/dist/drive/contracts.d.ts +303 -0
  166. package/dist/drive/contracts.d.ts.map +1 -0
  167. package/dist/drive/contracts.js +30 -0
  168. package/dist/drive/contracts.js.map +1 -0
  169. package/dist/drive/drive.d.ts +195 -0
  170. package/dist/drive/drive.d.ts.map +1 -0
  171. package/dist/drive/drive.js +414 -0
  172. package/dist/drive/drive.js.map +1 -0
  173. package/dist/drive/held-removals.d.ts +80 -0
  174. package/dist/drive/held-removals.d.ts.map +1 -0
  175. package/dist/drive/held-removals.js +136 -0
  176. package/dist/drive/held-removals.js.map +1 -0
  177. package/dist/drive/index.d.ts +16 -0
  178. package/dist/drive/index.d.ts.map +1 -0
  179. package/dist/drive/index.js +16 -0
  180. package/dist/drive/index.js.map +1 -0
  181. package/dist/drive/kept.d.ts +26 -0
  182. package/dist/drive/kept.d.ts.map +1 -0
  183. package/dist/drive/kept.js +33 -0
  184. package/dist/drive/kept.js.map +1 -0
  185. package/dist/drive/listing.d.ts +33 -0
  186. package/dist/drive/listing.d.ts.map +1 -0
  187. package/dist/drive/listing.js +84 -0
  188. package/dist/drive/listing.js.map +1 -0
  189. package/dist/drive/map-index.d.ts +80 -0
  190. package/dist/drive/map-index.d.ts.map +1 -0
  191. package/dist/drive/map-index.js +240 -0
  192. package/dist/drive/map-index.js.map +1 -0
  193. package/dist/drive/placements.d.ts +101 -0
  194. package/dist/drive/placements.d.ts.map +1 -0
  195. package/dist/drive/placements.js +164 -0
  196. package/dist/drive/placements.js.map +1 -0
  197. package/dist/drive/records.d.ts +86 -0
  198. package/dist/drive/records.d.ts.map +1 -0
  199. package/dist/drive/records.js +85 -0
  200. package/dist/drive/records.js.map +1 -0
  201. package/dist/drive/where.d.ts +145 -0
  202. package/dist/drive/where.d.ts.map +1 -0
  203. package/dist/drive/where.js +378 -0
  204. package/dist/drive/where.js.map +1 -0
  205. package/dist/entities/accepted-view.d.ts +79 -0
  206. package/dist/entities/accepted-view.d.ts.map +1 -0
  207. package/dist/entities/accepted-view.js +260 -0
  208. package/dist/entities/accepted-view.js.map +1 -0
  209. package/dist/entities/bytes.d.ts +6 -1
  210. package/dist/entities/bytes.d.ts.map +1 -1
  211. package/dist/entities/bytes.js +30 -3
  212. package/dist/entities/bytes.js.map +1 -1
  213. package/dist/entities/cloud.d.ts +89 -84
  214. package/dist/entities/cloud.d.ts.map +1 -1
  215. package/dist/entities/cloud.js +141 -243
  216. package/dist/entities/cloud.js.map +1 -1
  217. package/dist/entities/graph-head.d.ts +22 -88
  218. package/dist/entities/graph-head.d.ts.map +1 -1
  219. package/dist/entities/graph-head.js +30 -207
  220. package/dist/entities/graph-head.js.map +1 -1
  221. package/dist/entities/graph-pages.d.ts +123 -0
  222. package/dist/entities/graph-pages.d.ts.map +1 -0
  223. package/dist/entities/graph-pages.js +239 -0
  224. package/dist/entities/graph-pages.js.map +1 -0
  225. package/dist/entities/index.d.ts +24 -11
  226. package/dist/entities/index.d.ts.map +1 -1
  227. package/dist/entities/index.js +24 -11
  228. package/dist/entities/index.js.map +1 -1
  229. package/dist/entities/package-pages.d.ts +38 -0
  230. package/dist/entities/package-pages.d.ts.map +1 -0
  231. package/dist/entities/package-pages.js +91 -0
  232. package/dist/entities/package-pages.js.map +1 -0
  233. package/dist/entities/placement-owed.d.ts +63 -0
  234. package/dist/entities/placement-owed.d.ts.map +1 -0
  235. package/dist/entities/placement-owed.js +86 -0
  236. package/dist/entities/placement-owed.js.map +1 -0
  237. package/dist/entities/reducer.d.ts +52 -0
  238. package/dist/entities/reducer.d.ts.map +1 -0
  239. package/dist/entities/reducer.js +130 -0
  240. package/dist/entities/reducer.js.map +1 -0
  241. package/dist/entities/registry-graph.d.ts +119 -0
  242. package/dist/entities/registry-graph.d.ts.map +1 -0
  243. package/dist/entities/registry-graph.js +478 -0
  244. package/dist/entities/registry-graph.js.map +1 -0
  245. package/dist/entities/rules.d.ts +42 -74
  246. package/dist/entities/rules.d.ts.map +1 -1
  247. package/dist/entities/rules.js +61 -153
  248. package/dist/entities/rules.js.map +1 -1
  249. package/dist/entities/types.d.ts +17 -25
  250. package/dist/entities/types.d.ts.map +1 -1
  251. package/dist/entities/types.js +4 -1
  252. package/dist/entities/types.js.map +1 -1
  253. package/dist/entities/units.d.ts +31 -0
  254. package/dist/entities/units.d.ts.map +1 -0
  255. package/dist/entities/units.js +27 -0
  256. package/dist/entities/units.js.map +1 -0
  257. package/dist/faults/classify.d.ts +32 -0
  258. package/dist/faults/classify.d.ts.map +1 -0
  259. package/dist/faults/classify.js +68 -0
  260. package/dist/faults/classify.js.map +1 -0
  261. package/dist/faults/index.d.ts +14 -0
  262. package/dist/faults/index.d.ts.map +1 -0
  263. package/dist/faults/index.js +13 -0
  264. package/dist/faults/index.js.map +1 -0
  265. package/dist/faults/need.d.ts +44 -0
  266. package/dist/faults/need.d.ts.map +1 -0
  267. package/dist/faults/need.js +76 -0
  268. package/dist/faults/need.js.map +1 -0
  269. package/dist/faults/recover.d.ts +28 -0
  270. package/dist/faults/recover.d.ts.map +1 -0
  271. package/dist/faults/recover.js +44 -0
  272. package/dist/faults/recover.js.map +1 -0
  273. package/dist/faults/report.d.ts +59 -0
  274. package/dist/faults/report.d.ts.map +1 -0
  275. package/dist/faults/report.js +130 -0
  276. package/dist/faults/report.js.map +1 -0
  277. package/dist/faults/scrub.d.ts +57 -0
  278. package/dist/faults/scrub.d.ts.map +1 -0
  279. package/dist/faults/scrub.js +159 -0
  280. package/dist/faults/scrub.js.map +1 -0
  281. package/dist/faults/wire.d.ts +29 -0
  282. package/dist/faults/wire.d.ts.map +1 -0
  283. package/dist/faults/wire.js +42 -0
  284. package/dist/faults/wire.js.map +1 -0
  285. package/dist/files/accepted-files.d.ts +73 -0
  286. package/dist/files/accepted-files.d.ts.map +1 -0
  287. package/dist/files/accepted-files.js +129 -0
  288. package/dist/files/accepted-files.js.map +1 -0
  289. package/dist/files/cloud-files.d.ts.map +1 -1
  290. package/dist/files/cloud-files.js +2 -1
  291. package/dist/files/cloud-files.js.map +1 -1
  292. package/dist/files/commands.d.ts +57 -16
  293. package/dist/files/commands.d.ts.map +1 -1
  294. package/dist/files/commands.js +48 -23
  295. package/dist/files/commands.js.map +1 -1
  296. package/dist/files/computer-address.d.ts +12 -0
  297. package/dist/files/computer-address.d.ts.map +1 -0
  298. package/dist/files/computer-address.js +48 -0
  299. package/dist/files/computer-address.js.map +1 -0
  300. package/dist/files/index.d.ts +17 -0
  301. package/dist/files/index.d.ts.map +1 -1
  302. package/dist/files/index.js +10 -0
  303. package/dist/files/index.js.map +1 -1
  304. package/dist/files/media-type.d.ts +2 -0
  305. package/dist/files/media-type.d.ts.map +1 -0
  306. package/dist/files/media-type.js +50 -0
  307. package/dist/files/media-type.js.map +1 -0
  308. package/dist/files/own-folders.d.ts +38 -0
  309. package/dist/files/own-folders.d.ts.map +1 -0
  310. package/dist/files/own-folders.js +50 -0
  311. package/dist/files/own-folders.js.map +1 -0
  312. package/dist/files/plans.d.ts +29 -0
  313. package/dist/files/plans.d.ts.map +1 -0
  314. package/dist/files/plans.js +36 -0
  315. package/dist/files/plans.js.map +1 -0
  316. package/dist/files/trash.d.ts +152 -0
  317. package/dist/files/trash.d.ts.map +1 -0
  318. package/dist/files/trash.js +287 -0
  319. package/dist/files/trash.js.map +1 -0
  320. package/dist/files/usage-categories.d.ts +17 -0
  321. package/dist/files/usage-categories.d.ts.map +1 -0
  322. package/dist/files/usage-categories.js +33 -0
  323. package/dist/files/usage-categories.js.map +1 -0
  324. package/dist/files/usage-chain.d.ts +37 -0
  325. package/dist/files/usage-chain.d.ts.map +1 -0
  326. package/dist/files/usage-chain.js +44 -0
  327. package/dist/files/usage-chain.js.map +1 -0
  328. package/dist/files/usage-effect.d.ts +56 -0
  329. package/dist/files/usage-effect.d.ts.map +1 -0
  330. package/dist/files/usage-effect.js +29 -0
  331. package/dist/files/usage-effect.js.map +1 -0
  332. package/dist/files/usage.d.ts +80 -0
  333. package/dist/files/usage.d.ts.map +1 -0
  334. package/dist/files/usage.js +132 -0
  335. package/dist/files/usage.js.map +1 -0
  336. package/dist/git/alternates.d.ts +24 -0
  337. package/dist/git/alternates.d.ts.map +1 -0
  338. package/dist/git/alternates.js +79 -0
  339. package/dist/git/alternates.js.map +1 -0
  340. package/dist/git/artifact.d.ts +99 -0
  341. package/dist/git/artifact.d.ts.map +1 -0
  342. package/dist/git/artifact.js +190 -0
  343. package/dist/git/artifact.js.map +1 -0
  344. package/dist/git/chain.d.ts +45 -0
  345. package/dist/git/chain.d.ts.map +1 -0
  346. package/dist/git/chain.js +55 -0
  347. package/dist/git/chain.js.map +1 -0
  348. package/dist/git/index.d.ts +9 -0
  349. package/dist/git/index.d.ts.map +1 -0
  350. package/dist/git/index.js +9 -0
  351. package/dist/git/index.js.map +1 -0
  352. package/dist/git/line.d.ts +116 -0
  353. package/dist/git/line.d.ts.map +1 -0
  354. package/dist/git/line.js +412 -0
  355. package/dist/git/line.js.map +1 -0
  356. package/dist/git/plan.d.ts +50 -0
  357. package/dist/git/plan.d.ts.map +1 -0
  358. package/dist/git/plan.js +97 -0
  359. package/dist/git/plan.js.map +1 -0
  360. package/dist/git/play.d.ts +95 -0
  361. package/dist/git/play.d.ts.map +1 -0
  362. package/dist/git/play.js +271 -0
  363. package/dist/git/play.js.map +1 -0
  364. package/dist/git/refs.d.ts +24 -0
  365. package/dist/git/refs.d.ts.map +1 -0
  366. package/dist/git/refs.js +63 -0
  367. package/dist/git/refs.js.map +1 -0
  368. package/dist/git/state.d.ts +144 -0
  369. package/dist/git/state.d.ts.map +1 -0
  370. package/dist/git/state.js +209 -0
  371. package/dist/git/state.js.map +1 -0
  372. package/dist/git/text.d.ts +4 -0
  373. package/dist/git/text.d.ts.map +1 -0
  374. package/dist/git/text.js +4 -0
  375. package/dist/git/text.js.map +1 -0
  376. package/dist/history/history.d.ts +20 -0
  377. package/dist/history/history.d.ts.map +1 -0
  378. package/dist/history/history.js +51 -0
  379. package/dist/history/history.js.map +1 -0
  380. package/dist/history/index.d.ts +12 -0
  381. package/dist/history/index.d.ts.map +1 -0
  382. package/dist/history/index.js +10 -0
  383. package/dist/history/index.js.map +1 -0
  384. package/dist/history/rule.d.ts +38 -0
  385. package/dist/history/rule.d.ts.map +1 -0
  386. package/dist/history/rule.js +78 -0
  387. package/dist/history/rule.js.map +1 -0
  388. package/dist/history/types.d.ts +107 -0
  389. package/dist/history/types.d.ts.map +1 -0
  390. package/dist/history/types.js +9 -0
  391. package/dist/history/types.js.map +1 -0
  392. package/dist/history/version.d.ts +14 -0
  393. package/dist/history/version.d.ts.map +1 -0
  394. package/dist/history/version.js +32 -0
  395. package/dist/history/version.js.map +1 -0
  396. package/dist/index.d.ts +9 -4
  397. package/dist/index.d.ts.map +1 -1
  398. package/dist/index.js +9 -4
  399. package/dist/index.js.map +1 -1
  400. package/dist/records/codec.d.ts.map +1 -1
  401. package/dist/records/codec.js +3 -2
  402. package/dist/records/codec.js.map +1 -1
  403. package/dist/records/contracts.d.ts +0 -1
  404. package/dist/records/contracts.d.ts.map +1 -1
  405. package/dist/records/contracts.js +58 -28
  406. package/dist/records/contracts.js.map +1 -1
  407. package/dist/records/inbox.d.ts.map +1 -1
  408. package/dist/records/inbox.js +10 -4
  409. package/dist/records/inbox.js.map +1 -1
  410. package/dist/records/index.d.ts +7 -0
  411. package/dist/records/index.d.ts.map +1 -1
  412. package/dist/records/index.js +7 -0
  413. package/dist/records/index.js.map +1 -1
  414. package/dist/records/intentional.d.ts +1 -1
  415. package/dist/records/intentional.d.ts.map +1 -1
  416. package/dist/records/outbox.d.ts +6 -10
  417. package/dist/records/outbox.d.ts.map +1 -1
  418. package/dist/records/outbox.js +13 -40
  419. package/dist/records/outbox.js.map +1 -1
  420. package/dist/records/owned-effects.d.ts +15 -0
  421. package/dist/records/owned-effects.d.ts.map +1 -0
  422. package/dist/records/owned-effects.js +37 -0
  423. package/dist/records/owned-effects.js.map +1 -0
  424. package/dist/records/publication.d.ts +50 -7
  425. package/dist/records/publication.d.ts.map +1 -1
  426. package/dist/records/publication.js +251 -52
  427. package/dist/records/publication.js.map +1 -1
  428. package/dist/records/rail-ports.d.ts +196 -0
  429. package/dist/records/rail-ports.d.ts.map +1 -0
  430. package/dist/records/rail-ports.js +3 -0
  431. package/dist/records/rail-ports.js.map +1 -0
  432. package/dist/records/rail.d.ts +33 -169
  433. package/dist/records/rail.d.ts.map +1 -1
  434. package/dist/records/rail.js +114 -570
  435. package/dist/records/rail.js.map +1 -1
  436. package/dist/records/receive-channel.d.ts +66 -0
  437. package/dist/records/receive-channel.d.ts.map +1 -0
  438. package/dist/records/receive-channel.js +131 -0
  439. package/dist/records/receive-channel.js.map +1 -0
  440. package/dist/records/receive-loop.d.ts +71 -0
  441. package/dist/records/receive-loop.d.ts.map +1 -0
  442. package/dist/records/receive-loop.js +278 -0
  443. package/dist/records/receive-loop.js.map +1 -0
  444. package/dist/records/receive-pages.d.ts +33 -0
  445. package/dist/records/receive-pages.d.ts.map +1 -0
  446. package/dist/records/receive-pages.js +98 -0
  447. package/dist/records/receive-pages.js.map +1 -0
  448. package/dist/records/retry-clock.d.ts +14 -0
  449. package/dist/records/retry-clock.d.ts.map +1 -0
  450. package/dist/records/retry-clock.js +35 -0
  451. package/dist/records/retry-clock.js.map +1 -0
  452. package/dist/records/send-batch.d.ts +65 -0
  453. package/dist/records/send-batch.d.ts.map +1 -0
  454. package/dist/records/send-batch.js +119 -0
  455. package/dist/records/send-batch.js.map +1 -0
  456. package/dist/records/send-freeing.d.ts +52 -0
  457. package/dist/records/send-freeing.d.ts.map +1 -0
  458. package/dist/records/send-freeing.js +124 -0
  459. package/dist/records/send-freeing.js.map +1 -0
  460. package/dist/records/send-line.d.ts +104 -0
  461. package/dist/records/send-line.d.ts.map +1 -0
  462. package/dist/records/send-line.js +411 -0
  463. package/dist/records/send-line.js.map +1 -0
  464. package/dist/records/send-preparation.d.ts +54 -0
  465. package/dist/records/send-preparation.d.ts.map +1 -0
  466. package/dist/records/send-preparation.js +226 -0
  467. package/dist/records/send-preparation.js.map +1 -0
  468. package/dist/records/submit-frame.d.ts +55 -0
  469. package/dist/records/submit-frame.d.ts.map +1 -0
  470. package/dist/records/submit-frame.js +161 -0
  471. package/dist/records/submit-frame.js.map +1 -0
  472. package/dist/records/unsent-count.d.ts +36 -0
  473. package/dist/records/unsent-count.d.ts.map +1 -0
  474. package/dist/records/unsent-count.js +91 -0
  475. package/dist/records/unsent-count.js.map +1 -0
  476. package/dist/records/wire.d.ts +16 -30
  477. package/dist/records/wire.d.ts.map +1 -1
  478. package/dist/records/wire.js +34 -80
  479. package/dist/records/wire.js.map +1 -1
  480. package/dist/registration/home-layout.d.ts +20 -0
  481. package/dist/registration/home-layout.d.ts.map +1 -0
  482. package/dist/registration/home-layout.js +34 -0
  483. package/dist/registration/home-layout.js.map +1 -0
  484. package/dist/registration/index.d.ts +3 -1
  485. package/dist/registration/index.d.ts.map +1 -1
  486. package/dist/registration/index.js +3 -1
  487. package/dist/registration/index.js.map +1 -1
  488. package/dist/registration/user-ground.d.ts +182 -33
  489. package/dist/registration/user-ground.d.ts.map +1 -1
  490. package/dist/registration/user-ground.js +300 -76
  491. package/dist/registration/user-ground.js.map +1 -1
  492. package/dist/sharing/construct.d.ts +5 -3
  493. package/dist/sharing/construct.d.ts.map +1 -1
  494. package/dist/sharing/construct.js +11 -4
  495. package/dist/sharing/construct.js.map +1 -1
  496. package/dist/sharing/entity.d.ts +2 -0
  497. package/dist/sharing/entity.d.ts.map +1 -1
  498. package/dist/sharing/entity.js +3 -1
  499. package/dist/sharing/entity.js.map +1 -1
  500. package/dist/sharing/types.d.ts +15 -6
  501. package/dist/sharing/types.d.ts.map +1 -1
  502. package/dist/sharing/types.js +3 -1
  503. package/dist/sharing/types.js.map +1 -1
  504. package/dist/steps.d.ts +3 -1
  505. package/dist/steps.d.ts.map +1 -1
  506. package/dist/steps.js +11 -1
  507. package/dist/steps.js.map +1 -1
  508. package/dist/transfer/artifacts.d.ts +8 -3
  509. package/dist/transfer/artifacts.d.ts.map +1 -1
  510. package/dist/transfer/artifacts.js +12 -0
  511. package/dist/transfer/artifacts.js.map +1 -1
  512. package/dist/transfer/cargo-frame.d.ts +42 -0
  513. package/dist/transfer/cargo-frame.d.ts.map +1 -0
  514. package/dist/transfer/cargo-frame.js +98 -0
  515. package/dist/transfer/cargo-frame.js.map +1 -0
  516. package/dist/transfer/cargo.d.ts +6 -9
  517. package/dist/transfer/cargo.d.ts.map +1 -1
  518. package/dist/transfer/cargo.js +6 -27
  519. package/dist/transfer/cargo.js.map +1 -1
  520. package/dist/transfer/download.d.ts +36 -14
  521. package/dist/transfer/download.d.ts.map +1 -1
  522. package/dist/transfer/download.js +180 -89
  523. package/dist/transfer/download.js.map +1 -1
  524. package/dist/transfer/index.d.ts +2 -1
  525. package/dist/transfer/index.d.ts.map +1 -1
  526. package/dist/transfer/index.js +2 -1
  527. package/dist/transfer/index.js.map +1 -1
  528. package/dist/transfer/parallel.d.ts +13 -1
  529. package/dist/transfer/parallel.d.ts.map +1 -1
  530. package/dist/transfer/parallel.js +37 -26
  531. package/dist/transfer/parallel.js.map +1 -1
  532. package/dist/transfer/upload.d.ts +35 -13
  533. package/dist/transfer/upload.d.ts.map +1 -1
  534. package/dist/transfer/upload.js +127 -46
  535. package/dist/transfer/upload.js.map +1 -1
  536. package/dist/watching/coverage.d.ts +0 -2
  537. package/dist/watching/coverage.d.ts.map +1 -1
  538. package/dist/watching/coverage.js +0 -5
  539. package/dist/watching/coverage.js.map +1 -1
  540. package/dist/watching/suspicion.d.ts +11 -0
  541. package/dist/watching/suspicion.d.ts.map +1 -1
  542. package/dist/watching/suspicion.js +202 -83
  543. package/dist/watching/suspicion.js.map +1 -1
  544. package/dist/workspace/api.js +2 -2
  545. package/dist/workspace/api.js.map +1 -1
  546. package/dist/workspace/index.d.ts +0 -1
  547. package/dist/workspace/index.d.ts.map +1 -1
  548. package/dist/workspace/index.js +0 -1
  549. package/dist/workspace/index.js.map +1 -1
  550. package/dist/workspace/registry.d.ts +5 -4
  551. package/dist/workspace/registry.d.ts.map +1 -1
  552. package/dist/workspace/registry.js +8 -8
  553. package/dist/workspace/registry.js.map +1 -1
  554. package/dist/workspace/types.d.ts +7 -2
  555. package/dist/workspace/types.d.ts.map +1 -1
  556. package/dist-cjs/apply/contracts.js +84 -24
  557. package/dist-cjs/apply/contracts.js.map +1 -1
  558. package/dist-cjs/apply/fetch-ahead.js +174 -0
  559. package/dist-cjs/apply/fetch-ahead.js.map +1 -0
  560. package/dist-cjs/apply/index.js +4 -7
  561. package/dist-cjs/apply/index.js.map +1 -1
  562. package/dist-cjs/apply/journey.js +403 -0
  563. package/dist-cjs/apply/journey.js.map +1 -0
  564. package/dist-cjs/apply/lane.js +76 -0
  565. package/dist-cjs/apply/lane.js.map +1 -0
  566. package/dist-cjs/apply/line.js +91 -0
  567. package/dist-cjs/apply/line.js.map +1 -0
  568. package/dist-cjs/apply/plans.js +71 -75
  569. package/dist-cjs/apply/plans.js.map +1 -1
  570. package/dist-cjs/apply/rail.js +640 -602
  571. package/dist-cjs/apply/rail.js.map +1 -1
  572. package/dist-cjs/apply/selection.js +97 -46
  573. package/dist-cjs/apply/selection.js.map +1 -1
  574. package/dist-cjs/apply/settling.js +65 -0
  575. package/dist-cjs/apply/settling.js.map +1 -0
  576. package/dist-cjs/apply/showing.js +211 -0
  577. package/dist-cjs/apply/showing.js.map +1 -0
  578. package/dist-cjs/apply/type-adapters.js +8 -7
  579. package/dist-cjs/apply/type-adapters.js.map +1 -1
  580. package/dist-cjs/apply/window.js +326 -0
  581. package/dist-cjs/apply/window.js.map +1 -0
  582. package/dist-cjs/clash/bodmas.js +133 -0
  583. package/dist-cjs/clash/bodmas.js.map +1 -0
  584. package/dist-cjs/clash/echo.js +62 -0
  585. package/dist-cjs/clash/echo.js.map +1 -0
  586. package/dist-cjs/{merge → clash}/index.js +5 -8
  587. package/dist-cjs/clash/index.js.map +1 -0
  588. package/dist-cjs/clash/local-work.js +57 -0
  589. package/dist-cjs/clash/local-work.js.map +1 -0
  590. package/dist-cjs/clash/resolution.js +19 -0
  591. package/dist-cjs/clash/resolution.js.map +1 -0
  592. package/dist-cjs/clash/tetris.js +29 -0
  593. package/dist-cjs/clash/tetris.js.map +1 -0
  594. package/dist-cjs/contracts/content.js +177 -10
  595. package/dist-cjs/contracts/content.js.map +1 -1
  596. package/dist-cjs/contracts/index.js +3 -14
  597. package/dist-cjs/contracts/index.js.map +1 -1
  598. package/dist-cjs/contracts/protection.js +17 -23
  599. package/dist-cjs/contracts/protection.js.map +1 -1
  600. package/dist-cjs/contracts/validate.js +6 -9
  601. package/dist-cjs/contracts/validate.js.map +1 -1
  602. package/dist-cjs/detection/adapter-contract.js +7 -7
  603. package/dist-cjs/detection/adapter-contract.js.map +1 -1
  604. package/dist-cjs/detection/batch.js +0 -4
  605. package/dist-cjs/detection/batch.js.map +1 -1
  606. package/dist-cjs/detection/classify.js +9 -5
  607. package/dist-cjs/detection/classify.js.map +1 -1
  608. package/dist-cjs/detection/content.js +47 -87
  609. package/dist-cjs/detection/content.js.map +1 -1
  610. package/dist-cjs/detection/dispositions.js +5 -6
  611. package/dist-cjs/detection/dispositions.js.map +1 -1
  612. package/dist-cjs/detection/echo.js +7 -20
  613. package/dist-cjs/detection/echo.js.map +1 -1
  614. package/dist-cjs/detection/identity.js +26 -12
  615. package/dist-cjs/detection/identity.js.map +1 -1
  616. package/dist-cjs/detection/ignore-lines.js +216 -0
  617. package/dist-cjs/detection/ignore-lines.js.map +1 -0
  618. package/dist-cjs/detection/index.js +10 -6
  619. package/dist-cjs/detection/index.js.map +1 -1
  620. package/dist-cjs/detection/package-proposal.js +120 -0
  621. package/dist-cjs/detection/package-proposal.js.map +1 -0
  622. package/dist-cjs/detection/record-order.js +314 -0
  623. package/dist-cjs/detection/record-order.js.map +1 -0
  624. package/dist-cjs/detection/record-proposal.js +197 -43
  625. package/dist-cjs/detection/record-proposal.js.map +1 -1
  626. package/dist-cjs/detection/refusal.js +48 -4
  627. package/dist-cjs/detection/refusal.js.map +1 -1
  628. package/dist-cjs/detection/removals.js +4 -5
  629. package/dist-cjs/detection/removals.js.map +1 -1
  630. package/dist-cjs/detection/scoped-identity.js +24 -8
  631. package/dist-cjs/detection/scoped-identity.js.map +1 -1
  632. package/dist-cjs/detection/skip-defaults.js +119 -0
  633. package/dist-cjs/detection/skip-defaults.js.map +1 -0
  634. package/dist-cjs/detection/skip-policy.js +208 -0
  635. package/dist-cjs/detection/skip-policy.js.map +1 -0
  636. package/dist-cjs/detection/watch-boundary.js +2 -2
  637. package/dist-cjs/detection/watch-boundary.js.map +1 -1
  638. package/dist-cjs/drive/contracts.js +34 -0
  639. package/dist-cjs/drive/contracts.js.map +1 -0
  640. package/dist-cjs/drive/drive.js +418 -0
  641. package/dist-cjs/drive/drive.js.map +1 -0
  642. package/dist-cjs/drive/held-removals.js +140 -0
  643. package/dist-cjs/drive/held-removals.js.map +1 -0
  644. package/dist-cjs/drive/index.js +32 -0
  645. package/dist-cjs/drive/index.js.map +1 -0
  646. package/dist-cjs/drive/kept.js +36 -0
  647. package/dist-cjs/drive/kept.js.map +1 -0
  648. package/dist-cjs/drive/listing.js +87 -0
  649. package/dist-cjs/drive/listing.js.map +1 -0
  650. package/dist-cjs/drive/map-index.js +245 -0
  651. package/dist-cjs/drive/map-index.js.map +1 -0
  652. package/dist-cjs/drive/placements.js +168 -0
  653. package/dist-cjs/drive/placements.js.map +1 -0
  654. package/dist-cjs/drive/records.js +93 -0
  655. package/dist-cjs/drive/records.js.map +1 -0
  656. package/dist-cjs/drive/where.js +394 -0
  657. package/dist-cjs/drive/where.js.map +1 -0
  658. package/dist-cjs/entities/accepted-view.js +264 -0
  659. package/dist-cjs/entities/accepted-view.js.map +1 -0
  660. package/dist-cjs/entities/bytes.js +32 -3
  661. package/dist-cjs/entities/bytes.js.map +1 -1
  662. package/dist-cjs/entities/cloud.js +146 -249
  663. package/dist-cjs/entities/cloud.js.map +1 -1
  664. package/dist-cjs/entities/graph-head.js +29 -214
  665. package/dist-cjs/entities/graph-head.js.map +1 -1
  666. package/dist-cjs/entities/graph-pages.js +257 -0
  667. package/dist-cjs/entities/graph-pages.js.map +1 -0
  668. package/dist-cjs/entities/index.js +24 -11
  669. package/dist-cjs/entities/index.js.map +1 -1
  670. package/dist-cjs/entities/package-pages.js +99 -0
  671. package/dist-cjs/entities/package-pages.js.map +1 -0
  672. package/dist-cjs/entities/placement-owed.js +91 -0
  673. package/dist-cjs/entities/placement-owed.js.map +1 -0
  674. package/dist-cjs/entities/reducer.js +136 -0
  675. package/dist-cjs/entities/reducer.js.map +1 -0
  676. package/dist-cjs/entities/registry-graph.js +483 -0
  677. package/dist-cjs/entities/registry-graph.js.map +1 -0
  678. package/dist-cjs/entities/rules.js +70 -162
  679. package/dist-cjs/entities/rules.js.map +1 -1
  680. package/dist-cjs/entities/types.js +6 -2
  681. package/dist-cjs/entities/types.js.map +1 -1
  682. package/dist-cjs/entities/units.js +30 -0
  683. package/dist-cjs/entities/units.js.map +1 -0
  684. package/dist-cjs/faults/classify.js +73 -0
  685. package/dist-cjs/faults/classify.js.map +1 -0
  686. package/dist-cjs/faults/index.js +31 -0
  687. package/dist-cjs/faults/index.js.map +1 -0
  688. package/dist-cjs/faults/need.js +84 -0
  689. package/dist-cjs/faults/need.js.map +1 -0
  690. package/dist-cjs/faults/recover.js +49 -0
  691. package/dist-cjs/faults/recover.js.map +1 -0
  692. package/dist-cjs/faults/report.js +135 -0
  693. package/dist-cjs/faults/report.js.map +1 -0
  694. package/dist-cjs/faults/scrub.js +169 -0
  695. package/dist-cjs/faults/scrub.js.map +1 -0
  696. package/dist-cjs/faults/wire.js +47 -0
  697. package/dist-cjs/faults/wire.js.map +1 -0
  698. package/dist-cjs/files/accepted-files.js +135 -0
  699. package/dist-cjs/files/accepted-files.js.map +1 -0
  700. package/dist-cjs/files/cloud-files.js +2 -1
  701. package/dist-cjs/files/cloud-files.js.map +1 -1
  702. package/dist-cjs/files/commands.js +47 -22
  703. package/dist-cjs/files/commands.js.map +1 -1
  704. package/dist-cjs/files/computer-address.js +52 -0
  705. package/dist-cjs/files/computer-address.js.map +1 -0
  706. package/dist-cjs/files/index.js +34 -1
  707. package/dist-cjs/files/index.js.map +1 -1
  708. package/dist-cjs/files/media-type.js +53 -0
  709. package/dist-cjs/files/media-type.js.map +1 -0
  710. package/dist-cjs/files/own-folders.js +53 -0
  711. package/dist-cjs/files/own-folders.js.map +1 -0
  712. package/dist-cjs/files/plans.js +40 -0
  713. package/dist-cjs/files/plans.js.map +1 -0
  714. package/dist-cjs/files/trash.js +299 -0
  715. package/dist-cjs/files/trash.js.map +1 -0
  716. package/dist-cjs/files/usage-categories.js +37 -0
  717. package/dist-cjs/files/usage-categories.js.map +1 -0
  718. package/dist-cjs/files/usage-chain.js +49 -0
  719. package/dist-cjs/files/usage-chain.js.map +1 -0
  720. package/dist-cjs/files/usage-effect.js +34 -0
  721. package/dist-cjs/files/usage-effect.js.map +1 -0
  722. package/dist-cjs/files/usage.js +140 -0
  723. package/dist-cjs/files/usage.js.map +1 -0
  724. package/dist-cjs/git/alternates.js +84 -0
  725. package/dist-cjs/git/alternates.js.map +1 -0
  726. package/dist-cjs/git/artifact.js +202 -0
  727. package/dist-cjs/git/artifact.js.map +1 -0
  728. package/dist-cjs/git/chain.js +59 -0
  729. package/dist-cjs/git/chain.js.map +1 -0
  730. package/dist-cjs/{machines → git}/index.js +10 -11
  731. package/dist-cjs/git/index.js.map +1 -0
  732. package/dist-cjs/git/line.js +418 -0
  733. package/dist-cjs/git/line.js.map +1 -0
  734. package/dist-cjs/git/plan.js +100 -0
  735. package/dist-cjs/git/plan.js.map +1 -0
  736. package/dist-cjs/git/play.js +276 -0
  737. package/dist-cjs/git/play.js.map +1 -0
  738. package/dist-cjs/git/refs.js +72 -0
  739. package/dist-cjs/git/refs.js.map +1 -0
  740. package/dist-cjs/git/state.js +230 -0
  741. package/dist-cjs/git/state.js.map +1 -0
  742. package/dist-cjs/git/text.js +8 -0
  743. package/dist-cjs/git/text.js.map +1 -0
  744. package/dist-cjs/history/history.js +53 -0
  745. package/dist-cjs/history/history.js.map +1 -0
  746. package/dist-cjs/history/index.js +21 -0
  747. package/dist-cjs/history/index.js.map +1 -0
  748. package/dist-cjs/history/rule.js +83 -0
  749. package/dist-cjs/history/rule.js.map +1 -0
  750. package/dist-cjs/history/types.js +10 -0
  751. package/dist-cjs/history/types.js.map +1 -0
  752. package/dist-cjs/history/version.js +36 -0
  753. package/dist-cjs/history/version.js.map +1 -0
  754. package/dist-cjs/index.js +9 -4
  755. package/dist-cjs/index.js.map +1 -1
  756. package/dist-cjs/records/codec.js +3 -2
  757. package/dist-cjs/records/codec.js.map +1 -1
  758. package/dist-cjs/records/contracts.js +57 -28
  759. package/dist-cjs/records/contracts.js.map +1 -1
  760. package/dist-cjs/records/inbox.js +10 -4
  761. package/dist-cjs/records/inbox.js.map +1 -1
  762. package/dist-cjs/records/index.js +20 -0
  763. package/dist-cjs/records/index.js.map +1 -1
  764. package/dist-cjs/records/outbox.js +14 -42
  765. package/dist-cjs/records/outbox.js.map +1 -1
  766. package/dist-cjs/records/owned-effects.js +41 -0
  767. package/dist-cjs/records/owned-effects.js.map +1 -0
  768. package/dist-cjs/records/publication.js +255 -53
  769. package/dist-cjs/records/publication.js.map +1 -1
  770. package/dist-cjs/records/rail-ports.js +4 -0
  771. package/dist-cjs/records/rail-ports.js.map +1 -0
  772. package/dist-cjs/records/rail.js +116 -573
  773. package/dist-cjs/records/rail.js.map +1 -1
  774. package/dist-cjs/records/receive-channel.js +136 -0
  775. package/dist-cjs/records/receive-channel.js.map +1 -0
  776. package/dist-cjs/records/receive-loop.js +282 -0
  777. package/dist-cjs/records/receive-loop.js.map +1 -0
  778. package/dist-cjs/records/receive-pages.js +103 -0
  779. package/dist-cjs/records/receive-pages.js.map +1 -0
  780. package/dist-cjs/records/retry-clock.js +39 -0
  781. package/dist-cjs/records/retry-clock.js.map +1 -0
  782. package/dist-cjs/records/send-batch.js +126 -0
  783. package/dist-cjs/records/send-batch.js.map +1 -0
  784. package/dist-cjs/records/send-freeing.js +128 -0
  785. package/dist-cjs/records/send-freeing.js.map +1 -0
  786. package/dist-cjs/records/send-line.js +415 -0
  787. package/dist-cjs/records/send-line.js.map +1 -0
  788. package/dist-cjs/records/send-preparation.js +230 -0
  789. package/dist-cjs/records/send-preparation.js.map +1 -0
  790. package/dist-cjs/records/submit-frame.js +167 -0
  791. package/dist-cjs/records/submit-frame.js.map +1 -0
  792. package/dist-cjs/records/unsent-count.js +95 -0
  793. package/dist-cjs/records/unsent-count.js.map +1 -0
  794. package/dist-cjs/records/wire.js +34 -82
  795. package/dist-cjs/records/wire.js.map +1 -1
  796. package/dist-cjs/registration/home-layout.js +38 -0
  797. package/dist-cjs/registration/home-layout.js.map +1 -0
  798. package/dist-cjs/registration/index.js +3 -1
  799. package/dist-cjs/registration/index.js.map +1 -1
  800. package/dist-cjs/registration/user-ground.js +303 -75
  801. package/dist-cjs/registration/user-ground.js.map +1 -1
  802. package/dist-cjs/sharing/construct.js +10 -3
  803. package/dist-cjs/sharing/construct.js.map +1 -1
  804. package/dist-cjs/sharing/entity.js +3 -1
  805. package/dist-cjs/sharing/entity.js.map +1 -1
  806. package/dist-cjs/sharing/types.js +3 -1
  807. package/dist-cjs/sharing/types.js.map +1 -1
  808. package/dist-cjs/steps.js +11 -1
  809. package/dist-cjs/steps.js.map +1 -1
  810. package/dist-cjs/transfer/artifacts.js +13 -0
  811. package/dist-cjs/transfer/artifacts.js.map +1 -1
  812. package/dist-cjs/transfer/cargo-frame.js +104 -0
  813. package/dist-cjs/transfer/cargo-frame.js.map +1 -0
  814. package/dist-cjs/transfer/cargo.js +6 -28
  815. package/dist-cjs/transfer/cargo.js.map +1 -1
  816. package/dist-cjs/transfer/download.js +180 -88
  817. package/dist-cjs/transfer/download.js.map +1 -1
  818. package/dist-cjs/transfer/index.js +6 -1
  819. package/dist-cjs/transfer/index.js.map +1 -1
  820. package/dist-cjs/transfer/parallel.js +38 -26
  821. package/dist-cjs/transfer/parallel.js.map +1 -1
  822. package/dist-cjs/transfer/upload.js +129 -47
  823. package/dist-cjs/transfer/upload.js.map +1 -1
  824. package/dist-cjs/watching/coverage.js +0 -6
  825. package/dist-cjs/watching/coverage.js.map +1 -1
  826. package/dist-cjs/watching/suspicion.js +202 -83
  827. package/dist-cjs/watching/suspicion.js.map +1 -1
  828. package/dist-cjs/workspace/api.js +2 -2
  829. package/dist-cjs/workspace/api.js.map +1 -1
  830. package/dist-cjs/workspace/index.js +1 -3
  831. package/dist-cjs/workspace/index.js.map +1 -1
  832. package/dist-cjs/workspace/registry.js +8 -8
  833. package/dist-cjs/workspace/registry.js.map +1 -1
  834. package/package.json +19 -32
  835. package/dist/apply/content-results.d.ts +0 -27
  836. package/dist/apply/content-results.d.ts.map +0 -1
  837. package/dist/apply/content-results.js +0 -53
  838. package/dist/apply/content-results.js.map +0 -1
  839. package/dist/apply/local-work.d.ts +0 -10
  840. package/dist/apply/local-work.d.ts.map +0 -1
  841. package/dist/apply/local-work.js +0 -17
  842. package/dist/apply/local-work.js.map +0 -1
  843. package/dist/apply/repository-boundaries.d.ts +0 -22
  844. package/dist/apply/repository-boundaries.d.ts.map +0 -1
  845. package/dist/apply/repository-boundaries.js +0 -20
  846. package/dist/apply/repository-boundaries.js.map +0 -1
  847. package/dist/apply/repository-result.d.ts +0 -28
  848. package/dist/apply/repository-result.d.ts.map +0 -1
  849. package/dist/apply/repository-result.js +0 -130
  850. package/dist/apply/repository-result.js.map +0 -1
  851. package/dist/contracts/binding.d.ts +0 -50
  852. package/dist/contracts/binding.d.ts.map +0 -1
  853. package/dist/contracts/binding.js +0 -23
  854. package/dist/contracts/binding.js.map +0 -1
  855. package/dist/contracts/deployments.d.ts +0 -39
  856. package/dist/contracts/deployments.d.ts.map +0 -1
  857. package/dist/contracts/deployments.js +0 -75
  858. package/dist/contracts/deployments.js.map +0 -1
  859. package/dist/contracts/docs.d.ts +0 -64
  860. package/dist/contracts/docs.d.ts.map +0 -1
  861. package/dist/contracts/docs.js +0 -51
  862. package/dist/contracts/docs.js.map +0 -1
  863. package/dist/contracts/events.d.ts +0 -45
  864. package/dist/contracts/events.d.ts.map +0 -1
  865. package/dist/contracts/events.js +0 -38
  866. package/dist/contracts/events.js.map +0 -1
  867. package/dist/contracts/frames/gateway.d.ts +0 -83
  868. package/dist/contracts/frames/gateway.d.ts.map +0 -1
  869. package/dist/contracts/frames/gateway.js +0 -35
  870. package/dist/contracts/frames/gateway.js.map +0 -1
  871. package/dist/contracts/frames/stream.d.ts +0 -59
  872. package/dist/contracts/frames/stream.d.ts.map +0 -1
  873. package/dist/contracts/frames/stream.js +0 -17
  874. package/dist/contracts/frames/stream.js.map +0 -1
  875. package/dist/contracts/frames/tunnel.d.ts +0 -78
  876. package/dist/contracts/frames/tunnel.d.ts.map +0 -1
  877. package/dist/contracts/frames/tunnel.js +0 -55
  878. package/dist/contracts/frames/tunnel.js.map +0 -1
  879. package/dist/contracts/presence.d.ts +0 -46
  880. package/dist/contracts/presence.d.ts.map +0 -1
  881. package/dist/contracts/presence.js +0 -34
  882. package/dist/contracts/presence.js.map +0 -1
  883. package/dist/contracts/resources.d.ts +0 -52
  884. package/dist/contracts/resources.d.ts.map +0 -1
  885. package/dist/contracts/resources.js +0 -105
  886. package/dist/contracts/resources.js.map +0 -1
  887. package/dist/contracts/snapshot.d.ts +0 -24
  888. package/dist/contracts/snapshot.d.ts.map +0 -1
  889. package/dist/contracts/snapshot.js +0 -28
  890. package/dist/contracts/snapshot.js.map +0 -1
  891. package/dist/detection/enrollment.d.ts +0 -37
  892. package/dist/detection/enrollment.d.ts.map +0 -1
  893. package/dist/detection/enrollment.js +0 -117
  894. package/dist/detection/enrollment.js.map +0 -1
  895. package/dist/detection/repository.d.ts +0 -26
  896. package/dist/detection/repository.d.ts.map +0 -1
  897. package/dist/detection/repository.js +0 -66
  898. package/dist/detection/repository.js.map +0 -1
  899. package/dist/detection/territory.d.ts +0 -24
  900. package/dist/detection/territory.d.ts.map +0 -1
  901. package/dist/detection/territory.js +0 -56
  902. package/dist/detection/territory.js.map +0 -1
  903. package/dist/entities/moves.d.ts +0 -42
  904. package/dist/entities/moves.d.ts.map +0 -1
  905. package/dist/entities/moves.js +0 -82
  906. package/dist/entities/moves.js.map +0 -1
  907. package/dist/entities/repo-manifest.d.ts +0 -8
  908. package/dist/entities/repo-manifest.d.ts.map +0 -1
  909. package/dist/entities/repo-manifest.js +0 -12
  910. package/dist/entities/repo-manifest.js.map +0 -1
  911. package/dist/entities/repo-states.d.ts +0 -226
  912. package/dist/entities/repo-states.d.ts.map +0 -1
  913. package/dist/entities/repo-states.js +0 -419
  914. package/dist/entities/repo-states.js.map +0 -1
  915. package/dist/entities/trash.d.ts +0 -7
  916. package/dist/entities/trash.d.ts.map +0 -1
  917. package/dist/entities/trash.js +0 -10
  918. package/dist/entities/trash.js.map +0 -1
  919. package/dist/machines/arbitration.d.ts +0 -36
  920. package/dist/machines/arbitration.d.ts.map +0 -1
  921. package/dist/machines/arbitration.js +0 -37
  922. package/dist/machines/arbitration.js.map +0 -1
  923. package/dist/machines/backoff.d.ts +0 -36
  924. package/dist/machines/backoff.d.ts.map +0 -1
  925. package/dist/machines/backoff.js +0 -34
  926. package/dist/machines/backoff.js.map +0 -1
  927. package/dist/machines/bootstrap.d.ts +0 -65
  928. package/dist/machines/bootstrap.d.ts.map +0 -1
  929. package/dist/machines/bootstrap.js +0 -105
  930. package/dist/machines/bootstrap.js.map +0 -1
  931. package/dist/machines/chunks.d.ts +0 -51
  932. package/dist/machines/chunks.d.ts.map +0 -1
  933. package/dist/machines/chunks.js +0 -67
  934. package/dist/machines/chunks.js.map +0 -1
  935. package/dist/machines/index.d.ts +0 -12
  936. package/dist/machines/index.d.ts.map +0 -1
  937. package/dist/machines/index.js +0 -12
  938. package/dist/machines/index.js.map +0 -1
  939. package/dist/machines/presence.d.ts +0 -26
  940. package/dist/machines/presence.d.ts.map +0 -1
  941. package/dist/machines/presence.js +0 -49
  942. package/dist/machines/presence.js.map +0 -1
  943. package/dist/merge/index.d.ts +0 -9
  944. package/dist/merge/index.d.ts.map +0 -1
  945. package/dist/merge/index.js +0 -9
  946. package/dist/merge/index.js.map +0 -1
  947. package/dist/merge/merge3.d.ts +0 -39
  948. package/dist/merge/merge3.d.ts.map +0 -1
  949. package/dist/merge/merge3.js +0 -188
  950. package/dist/merge/merge3.js.map +0 -1
  951. package/dist/transfer/stream.d.ts +0 -50
  952. package/dist/transfer/stream.d.ts.map +0 -1
  953. package/dist/transfer/stream.js +0 -78
  954. package/dist/transfer/stream.js.map +0 -1
  955. package/dist/workspace/memory-store.d.ts +0 -7
  956. package/dist/workspace/memory-store.d.ts.map +0 -1
  957. package/dist/workspace/memory-store.js +0 -16
  958. package/dist/workspace/memory-store.js.map +0 -1
  959. package/dist-cjs/apply/content-results.js +0 -58
  960. package/dist-cjs/apply/content-results.js.map +0 -1
  961. package/dist-cjs/apply/local-work.js +0 -20
  962. package/dist-cjs/apply/local-work.js.map +0 -1
  963. package/dist-cjs/apply/repository-boundaries.js +0 -24
  964. package/dist-cjs/apply/repository-boundaries.js.map +0 -1
  965. package/dist-cjs/apply/repository-result.js +0 -134
  966. package/dist-cjs/apply/repository-result.js.map +0 -1
  967. package/dist-cjs/contracts/binding.js +0 -26
  968. package/dist-cjs/contracts/binding.js.map +0 -1
  969. package/dist-cjs/contracts/deployments.js +0 -81
  970. package/dist-cjs/contracts/deployments.js.map +0 -1
  971. package/dist-cjs/contracts/docs.js +0 -56
  972. package/dist-cjs/contracts/docs.js.map +0 -1
  973. package/dist-cjs/contracts/events.js +0 -44
  974. package/dist-cjs/contracts/events.js.map +0 -1
  975. package/dist-cjs/contracts/frames/gateway.js +0 -39
  976. package/dist-cjs/contracts/frames/gateway.js.map +0 -1
  977. package/dist-cjs/contracts/frames/stream.js +0 -20
  978. package/dist-cjs/contracts/frames/stream.js.map +0 -1
  979. package/dist-cjs/contracts/frames/tunnel.js +0 -60
  980. package/dist-cjs/contracts/frames/tunnel.js.map +0 -1
  981. package/dist-cjs/contracts/presence.js +0 -38
  982. package/dist-cjs/contracts/presence.js.map +0 -1
  983. package/dist-cjs/contracts/resources.js +0 -114
  984. package/dist-cjs/contracts/resources.js.map +0 -1
  985. package/dist-cjs/contracts/snapshot.js +0 -31
  986. package/dist-cjs/contracts/snapshot.js.map +0 -1
  987. package/dist-cjs/detection/enrollment.js +0 -121
  988. package/dist-cjs/detection/enrollment.js.map +0 -1
  989. package/dist-cjs/detection/repository.js +0 -69
  990. package/dist-cjs/detection/repository.js.map +0 -1
  991. package/dist-cjs/detection/territory.js +0 -60
  992. package/dist-cjs/detection/territory.js.map +0 -1
  993. package/dist-cjs/entities/moves.js +0 -85
  994. package/dist-cjs/entities/moves.js.map +0 -1
  995. package/dist-cjs/entities/repo-manifest.js +0 -15
  996. package/dist-cjs/entities/repo-manifest.js.map +0 -1
  997. package/dist-cjs/entities/repo-states.js +0 -439
  998. package/dist-cjs/entities/repo-states.js.map +0 -1
  999. package/dist-cjs/entities/trash.js +0 -14
  1000. package/dist-cjs/entities/trash.js.map +0 -1
  1001. package/dist-cjs/machines/arbitration.js +0 -41
  1002. package/dist-cjs/machines/arbitration.js.map +0 -1
  1003. package/dist-cjs/machines/backoff.js +0 -38
  1004. package/dist-cjs/machines/backoff.js.map +0 -1
  1005. package/dist-cjs/machines/bootstrap.js +0 -110
  1006. package/dist-cjs/machines/bootstrap.js.map +0 -1
  1007. package/dist-cjs/machines/chunks.js +0 -72
  1008. package/dist-cjs/machines/chunks.js.map +0 -1
  1009. package/dist-cjs/machines/index.js.map +0 -1
  1010. package/dist-cjs/machines/presence.js +0 -53
  1011. package/dist-cjs/machines/presence.js.map +0 -1
  1012. package/dist-cjs/merge/index.js.map +0 -1
  1013. package/dist-cjs/merge/merge3.js +0 -191
  1014. package/dist-cjs/merge/merge3.js.map +0 -1
  1015. package/dist-cjs/transfer/stream.js +0 -81
  1016. package/dist-cjs/transfer/stream.js.map +0 -1
  1017. package/dist-cjs/workspace/memory-store.js +0 -20
  1018. package/dist-cjs/workspace/memory-store.js.map +0 -1
package/PURPOSE.md CHANGED
@@ -10,8 +10,7 @@ JavaScript host consumes it without inheriting a filesystem watcher, a SQLite
10
10
  database, or a user-interface dependency.
11
11
 
12
12
  The public developer model is `live.bind(surface, channel)` and is specified
13
- in `docs/realtime-sdk.md`. The shipped wire behavior this package encodes is
14
- `docs/local-live-protocol.md`. The entity Record/Send/Receive discipline is
13
+ in `docs/realtime-sdk.md`. The entity Record/Send/Receive discipline is
15
14
  `docs/entity-record-queues.md`. This repository is where those documents
16
15
  become executable and testable. The deprecated Engine repository is read-only
17
16
  reference evidence; released Live surfaces run only from this package through
@@ -36,14 +35,12 @@ structural changes while admitting independent work. Re-inclusion compares
36
35
  against the sharing baseline, including pending admitted local work, rather
37
36
  than the latest suppressed observation. Committed records stay immutable through
38
37
  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.
38
+ checks cover excluded observations and later enrollment. Complete native and
39
+ multi-machine convergence are not yet proved.
42
40
 
43
41
  Publication structure is the complete active UUID set with each node's type,
44
42
  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,
43
+ choosing whole rows from either cannot change ancestry or collisions. Selection reuses that one derived context within the call; contents,
47
44
  provenance, policy and Record's original source proof remain independent.
48
45
 
49
46
  ### Deletion
@@ -68,15 +65,16 @@ Detect describes a complete result; Apply reproduces that result without
68
65
  erasing another entity's independent identity or unrecorded local work.
69
66
  These rules govern the ongoing Files rail, separately from construct sharing.
70
67
 
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.
68
+ - A repository's payload is its Git directory's state ID; its working-tree
69
+ files are ordinary entities on their own channels. A different pack or
70
+ parent artifact is transport, not an edit.
71
+ - Two writers, one disk: Apply writes a Git directory as one more Git process
72
+ would, each file under Git's own lock, `HEAD` last, and never removes a lock
73
+ a running Git command holds.
74
+ - A linked worktree or a submodule has its own HEAD and index, so it is a
75
+ separate entity with its own UUID. Its state names its home, the
76
+ repository whose Git directory holds its own, so every machine puts it
77
+ where Git looks for it.
80
78
  - Named ownership and capability waits identify their prerequisite and its
81
79
  producer. Relevant progress wakes them; unrelated work does not invalidate
82
80
  their proof.
@@ -88,14 +86,12 @@ These rules govern the ongoing Files rail, separately from construct sharing.
88
86
  its final guard. Optimistic equality must pass that guard as well.
89
87
  - Complete results decide Apply. Sender-side change labels and byte deltas
90
88
  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.
98
- - Existing whole-result last-write-wins stays in force. Ordinary filesystem
89
+ - Every entity speaks only on its own channel. A change with no changed field
90
+ is no record, and repeating a settled observation produces nothing.
91
+ - Observation leaves source files and Git metadata unchanged. Detect reads a
92
+ Git directory file by file, as a second Git process would, and writes
93
+ nothing there, so reading it can never ring its own watcher.
94
+ - Last write wins per facet stays in force (`docs/clash-rules.md`). Ordinary filesystem
99
95
  deletion becomes recoverable Amalgm Trash; it never permanently deletes content. Independent simultaneous work needs separate working sessions;
100
96
  recovery history does not promise automatic integration.
101
97
 
@@ -140,10 +136,13 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
140
136
  7. **Lifecycle state is honest.** A socket being open is never `live`.
141
137
  `live` means snapshot applied and ordered delivery confirmed; degraded and
142
138
  reconnecting states are reported as themselves.
143
- 8. **The filesystem rail is last-write-wins.** Every authorized, complete
144
- record is accepted without a stale-base comparison. The highest official
145
- sequence on that entity UUID is current; earlier complete results remain
146
- immutable history rather than a conflict state.
139
+ 8. **The filesystem rail is last-write-wins per facet.** Every authorized,
140
+ complete record is accepted without a stale-base comparison. Each machine
141
+ plays the accepted records in the cloud's order, each onto the line the
142
+ ones before it left: on each facet the later record wins, delete sticks,
143
+ and a repository's records play as Git plays commits
144
+ (`docs/clash-rules.md`). Earlier complete results remain immutable history
145
+ rather than a conflict state.
147
146
  9. **Cutover is exclusive per released surface.** When the signed Shell release
148
147
  adopts a Live module, this published package is the sole production source
149
148
  for that module; no Engine copy or fallback runs beside it. Unreleased
@@ -168,26 +167,35 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
168
167
  folders: `.amalgm/` and `.private/` at any depth. Database-like filenames
169
168
  have no implicit exclusion; Live's own databases and coordination files
170
169
  live in the `.amalgm/live/` folder Shell hands it.
171
- `.amalgmignore` selects later publication, never physical observation,
172
- registration or cold transfer.
170
+ The skip rules (`docs/skip-rules.md`) select later publication for
171
+ every root, never physical observation, registration or cold transfer:
172
+ Live's shipped defaults, the holding Git project's `.gitignore` files,
173
+ then Live's shipped includes, the last line naming a path deciding it as
174
+ in Git. A file Git tracks always travels and a skipped folder is not
175
+ reached into. The rules live in the runtime alone; a `.amalgmignore`
176
+ anywhere is an ordinary file.
173
177
  Ignoring an already registered file preserves its UUID and last recorded
174
178
  result; it does not remove the file from the registered snapshot.
175
- Each materialized root reads its own tracked policy. Ignore never gates
176
- incoming Apply; accepted changes still belong to selected local ground.
179
+ Ignore never gates incoming Apply; accepted changes still belong to
180
+ selected local ground.
177
181
  SQLite bytes, bindings, caches,
178
182
  watcher evidence, paths, and physical identities are always machine-local.
179
183
  13. **The graph, not SQLite, travels.** R2 receives canonical entity snapshots
180
184
  and immutable content; a machine derives its SQLite rows, paths, physical
181
185
  identities, observer evidence, and watcher bindings locally.
182
186
  14. **Login convergence has one authority.** A first machine conditionally
183
- publishes the declared home; every later machine materializes that exact
184
- cloud graph, and a simultaneous first-login loser adopts the winning graph.
185
- 15. **Cloud precedes Watch.** Login becomes ready only after the accepted
186
- portable core baseline agrees with the active cloud snapshot and watcher
187
- coverage is established over the resulting user ground. Durable records
188
- newer than that baseline survive restart and are never overwritten merely
189
- to make login look current. Only records still awaiting the authority
190
- report `syncing`; accepted receipts are history, not Send work.
187
+ publishes the declared home; every later machine places that exact cloud
188
+ graph's map, the home root and the runtime's own entries as real bytes and every
189
+ other entity listed until first touch, and a simultaneous first-login
190
+ loser places the winning graph's map. Login downloads nothing else.
191
+ 15. **Cloud precedes Watch.** Login becomes ready only after the user's
192
+ identity is proven, the home root and the runtime's own entries stand as exactly
193
+ their records at the ground's place on the line, and watcher coverage is
194
+ established over the resulting user ground. A computer keeps every byte it
195
+ already holds. Durable records newer than that baseline survive restart
196
+ and are never overwritten merely to make login look current. Only records
197
+ still awaiting the authority report `syncing`; accepted receipts are
198
+ history, not Send work.
191
199
  16. **Files owns Files decisions.** `files register` identity declaration and
192
200
  `files add` graph selection are Live operations behind injected effect
193
201
  ports. A product shell routes them through its persistent Files host and
@@ -211,44 +219,49 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
211
219
  containment; it never creates an overlapping UUID family. A reference in
212
220
  the core graph points to the selected workspace UUID, including when that
213
221
  workspace later becomes nested beneath a newly registered parent.
214
- 20. **Add installs atomically and selectively.** Login installs the core graph;
215
- `files add <workspace>` installs one owned, UUID-selected materialization
216
- boundary and refreshes the exact portable reference inventory in
217
- always-materialized core ground. Add first journals one machine-local
218
- installation intent, reconstructs and verifies the complete selection in a
219
- private same-filesystem staging directory, commits its exact entity rows in
220
- one transaction, atomically reveals the ground, and only then exposes its
221
- binding to Watch. The intent clears only after coverage is healthy. Entity
222
- rows therefore never mean pending download, and visible Add ground is never
223
- left without its durable identity. Hidden staging that crosses a restart is
224
- untrusted resume substrate: ordinary retained chunks are reread and
225
- re-hashed against the pinned manifest, missing or corrupt chunks are
226
- fetched again, and the ordered whole artifact is proven before rows or
227
- reveal are trusted. Revealed ground that crosses that blind interval
228
- remains completely suspect until Detect settles it. The
229
- local SQLite table contains workspace rows only for boundaries materialized
230
- on that machine, while cloud reconciliation preserves every unmaterialized
222
+ 20. **One install primitive, selective and never replacing.** Login places
223
+ the core root and the runtime's own entries and lists the rest of the home;
224
+ `files add <workspace>` installs one owned, UUID-selected
225
+ materialization boundary and refreshes the exact portable reference
226
+ inventory in always-materialized core ground. Both pin the folded graph in
227
+ one machine-local installation intent, reconstruct and verify the complete
228
+ selection in a private same-filesystem staging directory, commit its exact
229
+ entity rows and the Apply history of exactly the entities it verified
230
+ present or absent and that will enter in one transaction, reveal the
231
+ ground, and only then expose it to Watch. Add journals its intent before
232
+ download, so retained chunks resume; login writes its intent in the
233
+ commit that takes its place, because before that commit nothing is worth
234
+ resuming, and a pin crossing a restart could fall below where the next
235
+ session's Receive begins. A reveal
236
+ never replaces: an absent destination takes the tree in one rename, a
237
+ standing directory merges member by member, an occupant keeps its slot as
238
+ this machine's edit, and nothing but staging is deleted. The intent clears
239
+ only after coverage is healthy. Entity rows therefore never mean pending
240
+ download, and visible installed ground is never left without its durable
241
+ identity. Hidden staging that crosses a restart is untrusted resume
242
+ substrate: ordinary retained chunks are reread and re-hashed against the
243
+ pinned manifest, missing or corrupt chunks are fetched again, and the
244
+ ordered whole artifact is proven before rows or reveal are trusted. Only
245
+ staging inside the control tree, which nothing but Amalgm writes, continues
246
+ its reveal once its rows commit. Revealed ground that crosses that blind
247
+ interval remains completely suspect until Detect settles it. The local
248
+ SQLite table contains workspace rows only for boundaries materialized on
249
+ that machine, while cloud reconciliation preserves every unmaterialized
231
250
  boundary. A fresh verified install may be Watch's initial baseline so the
232
251
  downloader's own writes are not reinterpreted as user edits.
233
- 21. **A Git marker classifies its containing directory.** The presence of a
234
- `.git` directory or file makes its containing directory `repo.git`; its
235
- removal returns that same UUID to `workspace` or `folder`. Git command
236
- availability governs Card + Checkpoint capture, never classification, and
237
- `.git` itself is repository transport metadata that receives no entity
238
- row. Each such directory starts a repository rail: ordinary worktree
239
- children retain local UUID rows and ride in their nearest repository state
240
- manifest, while a nested repository and the ancestry spine that reaches it
241
- remain cloud graph records with their own Card + Checkpoint transport. The
242
- enclosing identity map carries only that nested repository's address, UUID,
243
- and type; its payload belongs exclusively to its own rail. A shallow
244
- repository carries its declared Git history boundary, so a new machine
245
- never invents history beyond it. Every current graph a reader derives
246
- from a published snapshot and its later delivery tail passes through this
247
- same projection, and Add refuses a lookup that hands it a record the
248
- projection would not publish before it moves any bytes. Leaving repository
249
- territory first publishes every newly independent descendant while the
250
- repository boundary still hides them, then publishes the boundary retype
251
- alone; no authority prefix can expose a partial ordinary-file tree.
252
+ 21. **A Git marker classifies its containing directory.** A `.git`
253
+ directory or file that Git can use, by Git's own structural test, makes
254
+ its containing directory `repo.git`; its removal, or a break Git itself
255
+ would refuse, returns that same UUID to `workspace` or `folder`. `.git`
256
+ itself receives no entity row of its own: its Git directory is the
257
+ repository entity's payload. The repository's working-tree files and
258
+ folders are ordinary entities on their own channels before and after a
259
+ retype, so a retype changes one row and moves no child. A repository
260
+ nested inside another is one more `repo.git` entity in the tree. A shallow
261
+ repository's `shallow` file travels with its Git directory, so a new
262
+ machine never invents history beyond it. Records follow cause before
263
+ effect: every accepted prefix is reconstructible from its accepted records
264
+ and retained artifacts, without waiting for a later record.
252
265
  22. **Transfer moves content; it never discovers state.** `upload` moves one
253
266
  already-registered immutable artifact toward cloud storage and `download`
254
267
  moves that same artifact toward a machine cache. Neither operation scans,
@@ -256,7 +269,9 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
256
269
  publishes a registry snapshot.
257
270
  23. **Entity type selects the artifact, not a second lifecycle.** Text and
258
271
  binary files travel as file bytes, links travel as their literal target,
259
- and repositories travel as a small state manifest plus Git-native packs.
272
+ and a repository travels as one artifact per record: its Git directory
273
+ state, one thin Git pack, and the Git-directory files its parent artifact
274
+ lacks.
260
275
  Workspace and folder membership travels in the entity graph; references
261
276
  carry a UUID and therefore have no separate content artifact.
262
277
  24. **Transfer is verified, missing-only, and commit-last.** File chunks and
@@ -271,22 +286,23 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
271
286
  store every block and the manifest, persist its sealed-manifest evidence,
272
287
  and only then number the Record. The ordinary block path writes the same
273
288
  evidence after its content is durable, so submit never repeats an R2 proof.
274
- 25. **Cold repository transfer is native Git work.** An empty destination
275
- receives one binary pack containing exactly the objects reachable from the
276
- repository's declared refs, plus bounded Amalgm state metadata. A Git pack
277
- is never embedded in JSON or base64 and is never unpacked into per-file
278
- upload requests.
279
- 26. **Incremental repository transfer is negotiated Git work.** The
280
- destination's existing object frontier is the exclusion set for Git's
281
- packer. A new repository state links to its prior transport and carries
282
- only objects the prior state cannot supply; download follows and imports
283
- only the missing links, oldest first. A one-file commit can never cause the
284
- previously uploaded repository history to travel again.
289
+ 25. **Cold repository transfer is native Git work.** A new machine installs
290
+ a repository's artifact chain oldest first, back to the artifact that
291
+ carries everything. Each pack installs as `git fetch` installs one and is
292
+ proved connected by Git before any Git-directory file is written. A Git
293
+ pack is never embedded in JSON or base64 and is never unpacked into
294
+ per-file upload requests. Compaction, one artifact replacing a prefix of
295
+ the chain, is not built.
296
+ 26. **Incremental repository transfer is Git's thin pack.** A new artifact
297
+ names its parent and carries only the objects its parent's roots do not
298
+ reach, packed by `pack-objects --thin`, plus the Git-directory files its
299
+ parent's state lacks. A one-file commit can never cause previously
300
+ uploaded repository history to travel again.
285
301
  27. **Registered type selects transfer.** Upload and download dispatch only
286
302
  from the registered entity type according to `docs/transfer.md`. They
287
303
  never re-detect type from a path or contents. Graph-only types perform no
288
304
  content effects; text and binary files use the same block law; Git alone
289
- uses Git object negotiation.
305
+ uses Git's own packs.
290
306
  28. **A doorbell names suspicion, never truth.** Watch preserves every named
291
307
  path until one settled observation proves it; paths rung during that
292
308
  observation remain suspect. A named burst widens first to its deepest
@@ -304,21 +320,21 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
304
320
  freezes before scope release; later notices cannot renew that priority or
305
321
  receive its completion.
306
322
  Scope may reduce what is read, never change the state that is derived.
307
- 29. **Git owns stored objects; physical bytes own worktree truth.** A leaf's
308
- type, payload and executable posture describe the same stable physical
309
- observation. Git reporting a clean path, index flags, attributes and
310
- conversion settings are never evidence that its stored blob equals those
311
- bytes. A Git blob identity may stand for a worktree payload only after
312
- raw byte equality is proved. Cached physical evidence follows the same
313
- suspicion and freshness rules as ordinary files. Checkpoint capture must
314
- reproduce those exact bytes independently of receiver Git settings.
323
+ 29. **Git owns its Git directory; physical bytes own worktree truth.** A
324
+ working-tree file is an ordinary file entity: its type, payload and
325
+ executable posture describe the same stable physical observation, and Git
326
+ reporting a clean path, index flags, attributes and conversion settings
327
+ are never evidence about it. The Git directory is judged file by file by
328
+ its bytes, except the index, judged by what it means, never by the stat
329
+ data each machine's refresh re-stamps.
315
330
  30. **Proof travels forward; disposable bytes need not.** Registration reads
316
331
  every ordinary text or binary file through one bounded stream to classify
317
332
  it and derive its content head. When cloud cargo is missing, that same
318
333
  capture stream carries the verified bytes forward: bounded complete small
319
- artifacts enter the cargo stream, while large-file blocks become durable
320
- under their own digests as they are read and the authority seals the
321
- manifest only after every named block exists. A graph-only Register
334
+ artifacts enter the cargo stream, while each large-file batch asks which
335
+ of its blocks the authority lacks, only those become durable under their
336
+ own digests as they are read, and the authority seals the manifest only
337
+ after every named block exists. A graph-only Register
322
338
  capture never copies or rereads ground merely to preserve bytes for a
323
339
  later Upload stage. A typed source mismatch returns control to Register so
324
340
  it can recapture current ground; stale bytes can never be sealed or
@@ -353,7 +369,7 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
353
369
  reinterpreted or overwritten in place.
354
370
  33. **Detection proposes settled net truth; Record makes it durable.** Watch
355
371
  contributes generation-stamped suspicion only. Detect reconciles identity,
356
- current enrollment, type, repository territory, and exact replay from the
372
+ current enrollment, type, and exact replay from the
357
373
  last verified notebook state to settled disk truth, then emits a complete
358
374
  result record plus immutable cargo references. Record assigns mutation
359
375
  identity and durable order before that Watch generation settles. Applied
@@ -368,20 +384,20 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
368
384
  carries its children's addresses even when another directory takes its
369
385
  old path or an editor replaces a child's inode.
370
386
  34. **Named Detect costs what changed, not what exists.** A valid named
371
- suspicion loads indexed notebook rows for that path, its required parents,
372
- and its nearest repository territory; it never walks or serializes the
373
- complete workspace. A new directory costs its new subtree. A repository
374
- costs its Card + Checkpoint scope. Only honestly ambiguous evidence enters
387
+ suspicion loads indexed notebook rows for that path and its required
388
+ parents; it never walks or serializes the complete workspace. A new
389
+ directory costs its new subtree. A repository costs a walk of its Git
390
+ directory, never its working tree. Only honestly ambiguous evidence enters
375
391
  complete reconciliation. Detect ends after the exact proposal and local
376
392
  truth are committed together; cloud publication belongs to Send.
377
- 35. **The entity UUID is the ordered channel.** Cloud assigns a dense sequence
378
- independently to each entity UUID across all machines. Unrelated entities
379
- have no semantic order and may be sent concurrently; workspace or delivery
380
- cursors may discover records but never decide which entity state wins. The
381
- one graph-visibility barrier is not semantic ordering: any retype into a
382
- container is sent alone after earlier descendant records are accepted,
383
- because it may expose repository-owned ground; every observable prefix
384
- therefore remains a complete graph.
393
+ 35. **The entity UUID is the ordered channel; each computer sends one line.**
394
+ Cloud assigns a dense sequence independently to each entity UUID across all
395
+ machines. Within each authority, a computer's records are accepted in its
396
+ local record order, so what others observe of that computer's work is always
397
+ a prefix of what it recorded: a retype follows the records written before
398
+ it, and every observable prefix remains a
399
+ complete graph. That line orders delivery, not truth: neither it nor a
400
+ workspace or delivery cursor decides which entity state wins.
385
401
  36. **Receive owns the local inbox.** Every cloud-accepted record, including
386
402
  one originating on this computer, enters the inbox under
387
403
  `(entityId, globalSequence)`. Each entity has its own received-through
@@ -412,67 +428,61 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
412
428
  after a final conflict-scoped guard, recoverable reveal, and the target type
413
429
  rereading exact truth. Lock and cargo attempts are finite and observable;
414
430
  their failure retains responsibility for retry rather than waiting forever.
415
- A failed lane records its outcome and arms its bounded backoff when that
416
- lane finishes, never when its work page or the wider drain finishes. Once
417
- the deadline elapses, retry and fresh ordinary work share bounded fair
418
- admission across every storage-page partition, so neither repeated failure
419
- nor unrelated progress can starve the other. Retry eligibility is re-read
420
- from current durable responsibility before admission; an omitted UUID
421
- retires its process-local park instead of reviving stale page work. Newer input for its
422
- entity may also release it, and a materialization dependency or conflict
423
- may additionally be released only by another lane's progress; a wake it caused
424
- itself can never re-run it. Parent and child UUIDs remain independent channels, but their
425
- physical materialization respects current parcel ownership: a child whose
426
- accepted parent is not yet a physical directory, or whose current ancestry
427
- still places it inside a repository parcel it is leaving, waits unresolved
428
- as a dependency without capture, error, or a filesystem effect. The
429
- boundary retype releases that child; nested repositories and their visible
430
- folder spine remain independent parcel boundaries. An accepted
431
- destination already recorded as a different entity is a conflict, never a
432
- local change to capture. The park timer and attempt count are process-local:
433
- after restart, the durable intent is re-proved once and, if still blocked,
434
- parks again from attempt one.
435
- A host proves current physical repository ground from Card + Checkpoint and
436
- the exact identity frontier sealed to that immutable transport. Compact
437
- machine evidence is accepted only when it reproduces the transport's
438
- identity hash; it survives obsolete parent-pack pruning, while mutable child
439
- rows whose independent entity channels may advance before or after it can
440
- neither invalidate nor substitute for that proof. That frontier is complete
441
- for the repository's nearest-owned worktree: a path omitted by the settled
442
- Git result is retired from both materialized and notebook identity in the
443
- same transaction, while nested repository territory remains independently
444
- owned. A later capture and a mirror Apply must therefore derive the same
445
- frontier without resurrecting an identity Git already removed.
446
- A Git-form payload witness remains exact byte evidence after a repository
447
- child returns to the ordinary-file rail: it may prove that no unrecorded
448
- local edit blocks the accepted ordinary result, but it can never settle or
449
- replace that explicit result. When accepted history collapses to a
431
+ A terminal proof commits only against the facts it consumed: if one moved,
432
+ the commit changes nothing and the line proves again from fresh state at
433
+ its next fair turn, neither waiting on backoff nor reporting a fault.
434
+ Each authority's accepted records apply in one line, in delivery order:
435
+ recovery work first, then the first unresolved materializable row, whose
436
+ target extends only over the adjacent content run of that same file or
437
+ link. A head with no intent and newer local work on its entity resolves at
438
+ once as superseded. A failed head keeps its bound intent, or its attempt
439
+ in memory, records its outcome, and parks its whole line with bounded backoff while other
440
+ authorities' lines go on; waiting holds the queue position, never the
441
+ ground. The parked line runs again when its backoff elapses, its head
442
+ changes, newer local work appears for the head's entity, the producer its
443
+ dependency names releases it, or, for a conflict, another authority's line
444
+ progresses; a wake it caused itself can never re-run it. Parent and child
445
+ UUIDs remain independent channels. A result plays by what this computer
446
+ shows: one shown neither before nor after resolves in order with no
447
+ effect, so a child never waits for a parent this computer does not show.
448
+ A repository is a container like any other; its working-tree files apply
449
+ on their own channels. An accepted destination already recorded as
450
+ a different entity is a conflict, never a local change to capture. The park
451
+ timer and attempt count are process-local: after restart, the durable
452
+ intent is re-proved once and, if still blocked, parks again from attempt
453
+ one.
454
+ When accepted history collapses to a
450
455
  structural leaf head that has never existed locally, recovery consumes the
451
456
  retained immutable payload through the target type's adapter; a link is
452
457
  restored as literal link target text and only an ordinary file is restored
453
458
  through the ordinary-file adapter.
454
- A missing active target below a still-present materialized root first
455
- passes through one finite Detect boundary. Before reveal, a proven move or
456
- settled local deletion becomes durable Trash work and supersedes the older Apply.
457
- After reveal begins, the boundary may still preserve a concurrent move or
458
- save, but Apply's own intermediate absence cannot authorize lifecycle; no
459
- durable local result authorizes idempotent repair from the accepted result.
460
- Only exact Verify may complete the intent. A missing materialization root
459
+ While an intent is unbound, a missing active target below a still-present
460
+ materialized root first passes through one finite Detect boundary. Before
461
+ reveal, a proven move or settled local deletion becomes durable Trash work
462
+ and supersedes the older Apply. An unbound intent whose target already
463
+ stood re-enters that boundary if the target later disappears; Apply's own
464
+ absence cannot authorize lifecycle, and when no durable local result
465
+ follows, idempotent repair reveals the accepted result, binding first.
466
+ Once bound, absence is read only through the receipt: a prefix of the
467
+ reveal resumes and anything else is a person's. Only exact Verify may
468
+ complete the intent. A missing materialization root
461
469
  remains a separate root-recovery responsibility; entity Apply never
462
470
  recreates it piecemeal.
463
471
  Text uses an exact-base splice with a complete snapshot fallback;
464
472
  binary uses its verified block manifest; links use literal target text;
465
- containers use structure; repositories use one resumable Card + Checkpoint
466
- transition. A type transition replaces the prior physical representation
473
+ containers use structure; a repository installs its Git packs, proves them
474
+ connected, then writes its Git directory as one more Git process would,
475
+ `HEAD` last. A type transition replaces the prior physical representation
467
476
  at the same UUID and address through that same recoverable reveal; mere
468
477
  path existence is never proof that the target type exists.
469
- 40. **Newer local work outranks older materialization.** An unsequenced local
470
- Outbox row, or an accepted local receipt sequenced after the selected Apply
471
- target, protects that entity's working ground. The local complete result is
478
+ 40. **Newer local work outranks older materialization.** A local record on an
479
+ entity's own channel that is not delivered at or before the selected Apply
480
+ target protects that entity's working ground. The local complete result is
472
481
  still accepted normally and wins only when cloud assigns its later
473
482
  sequence; Apply never rebases, merges, stale-refuses, or rewrites it. A
474
- reveal-time disk difference enters Detect and Record before incoming work
475
- may touch the path.
483
+ disk difference found before reveal enters Detect and Record before
484
+ incoming work may touch the path; one found by an owned intent's receipt
485
+ read is returned home and left to Detect.
476
486
  41. **Verify, not a write syscall, commits Apply.** Applied Watch rings are
477
487
  retained. Only exact type-specific reread may advance resolved and
478
488
  materialized cursors, update the local notebook, mark Inbox history
@@ -485,23 +495,31 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
485
495
  require old cargo, adopt a changed private survivor, or overwrite later
486
496
  observations. A phase alone does not prove whether physical effects exist:
487
497
  adopting an exact target may reach `revealed` without changing disk. Only
488
- a bound receipt proves effect ownership. Recovery may cancel an obsolete
489
- plan after accounting for every original effect and conditionally repairing
490
- its intermediate physical addresses. Cancellation preserves sharing values
491
- and leaves Inbox and materialization progress unresolved; a fresh intent
492
- replans only after the old owner's cleanup. An unexplained effect keeps its
493
- responsibility. Exact target Verify is still required to claim installation. For a
494
- repository, Verify commits Card, Checkpoint, and the complete transported
495
- identity frontier as one notebook fact. The Watch observation caused by
496
- that reveal must compare equal to that same fact; it can never become a new
497
- local repository transport or Outbox mutation.
498
+ a bound receipt proves effect ownership. Shown bytes are attributed, never
499
+ guessed: Apply may drop private work for the newest record, but once it
500
+ binds recovery before its first visible effect it owns that ground until
501
+ it has read it once through the receipt. Its own complete result is
502
+ verified and projected in the commit that ends ownership; a prefix of its
503
+ own reveal resumes; anything else is the person's, returns to its home,
504
+ and is left to Detect. Cancellation preserves sharing values and resolves
505
+ nothing. The newest record then wins, never by releasing unread ground.
506
+ Exact target Verify is still required to claim installation. For a
507
+ repository, Verify reads its Git directory back and commits that state ID
508
+ as the notebook fact. The Watch observation caused by that reveal must
509
+ compare equal to it; it can never become a new local repository artifact or
510
+ Outbox mutation.
498
511
 
499
512
  42. **The registry graph is immutable pages, and its head is the snapshot.**
500
- A page is one root's UUID-sorted records serialized canonically under a
501
- fixed byte budget, identified by the hash of its own bytes, and stored as
502
- ordinary immutable content. The head names each root's ordered pages and
503
- nothing else; its checksum proves the head bytes, never a reassembled
504
- record list. A publication rebuilds only roots it walked and carries every
513
+ A root has two page lists: its records in (parentUUID, uuid) order, so a
514
+ folder's children lie together, and a parent index of [uuid, parentUUID]
515
+ pairs in uuid order. Each page is a contiguous slice serialized
516
+ canonically under a fixed byte budget, identified by the hash of its own
517
+ bytes, and stored as ordinary immutable content. The head names each
518
+ root's ordered pages and each page's first key, and nothing else, so a
519
+ reader picks the pages one folder or one entity needs from the head
520
+ alone; its checksum proves the head bytes, never a reassembled record
521
+ list. A reader proves each page it reads and believes the head for the
522
+ rest. A publication rebuilds only roots it walked and carries every
505
523
  other root's committed page list forward byte-identically. The authority
506
524
  verifies every replaced root from its pages and requires unchanged roots
507
525
  to match the committed head exactly. A first head over a records-shaped
@@ -512,17 +530,14 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
512
530
  current pointer atomically. Retries never reactivate an older id, prior
513
531
  deployments remain addressable, and SQLite rows, WAL pages, locks, and
514
532
  offsets remain machine-local materializations rather than sync payloads.
515
- 44. **Sealed answers correctness; packed answers placement.** `sealed` proves
516
- an artifact's bytes are durably valid under the current content contract,
533
+ 44. **Sealed is the one answer an uploader skips on.** `sealed` proves an
534
+ artifact's bytes are durably valid under the current content contract,
517
535
  and record submission trusts it unconditionally, whatever the placement.
518
- `packed` proves the artifact is stored efficiently inside an immutable
519
- pack — and one manifest location row proves its complete packed closure,
520
- because the authority records every block location and the manifest
521
- location before sealing. Upload skips a small artifact only when it is
522
- both sealed and packed; a large artifact requires only sealed. Repacking
523
- is placement work, never correctness work: placement rows converge
524
- first-wins, a source missing at repack time is skipped silently, and the
525
- immutable content readers prove never changes even when its locator does.
536
+ Placement is the authority's own: it packs every artifact of one segment
537
+ or less as it arrives, inline or in a cargo segment, so no uploader asks
538
+ where a sealed artifact lies or moves sealed bytes again, and the
539
+ immutable content readers prove never changes even when its locator
540
+ does.
526
541
  45. **Files browse opens one active cloud head.** The authenticated user's
527
542
  `/amalgm/users/<canonical-email>` path is one complete logical namespace.
528
543
  Every browse or content request opens the current cloud graph head once,
@@ -538,41 +553,48 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
538
553
  Local display names are opaque nonempty text without NUL, including native
539
554
  root labels and separators; the separate nonempty, NUL-free host path owns
540
555
  the address and never derives from the display name.
541
- 47. **An unfinished merge is settled Checkpoint truth.** Git lock files are
542
- never portable state and their presence alone cannot prevent a proven
543
- stable observation. Amalgm's own reveal marker identifies an incomplete
544
- owned effect and refuses capture. A stable merge's heads, message and mode,
545
- every unmerged index stage, and the current worktree conflict bytes are
546
- one portable Checkpoint. Registration, Detect, transport, Apply, and
547
- Verify preserve that state exactly so another machine can continue or
548
- resolve the same merge; no layer may turn a durable conflict into a busy
549
- retry or silently flatten it to an ordinary file.
556
+ 47. **An unfinished Git operation is settled Git-directory truth.** A stable
557
+ merge, rebase, cherry-pick or revert leaves its files in the Git
558
+ directory, unmerged index stages included, and they travel byte for byte
559
+ like every other file, so another machine can continue or resolve the same
560
+ operation; its conflicted working-tree files travel as ordinary files. A
561
+ `*.lock` file is a write in progress on the machine that made it and is
562
+ never repository state, at any age: it never travels, and Detect never
563
+ waits on it but reads through it as Git's own readers do
564
+ (`src/git/state.ts`). Apply adopts a lock holding exactly the bytes it
565
+ writes there, the one its own cut-off attempt left; any other lock is a
566
+ Git command's, and Apply retries rather than remove it. A
567
+ repository new on a machine is built whole in private and revealed by one
568
+ rename, so no half-built repository is ever shown. No layer may turn a
569
+ durable conflict into a busy retry or silently flatten it.
550
570
  48. **A slot collision changes materialization, never identity.** Mutation-time
551
571
  guards refuse a second local owner of one `(parentUUID, name)` slot, but a
552
572
  merged graph may contain identities created concurrently in that slot.
553
- Every observer preserves every UUID and derives the same disk names from
554
- the complete active sibling set: the lexicographically lowest UUID keeps
555
- the bare name and later UUIDs take the next free Windows-style ` (n)`
556
- suffix before a file-like extension. UUID order is a deterministic
557
- machine-independent tiebreak, chronological only when the UUIDs are v7.
558
- A derived name is never a mutation, version input, or portable rename;
559
- whenever the sibling set changes, materialization is re-derived.
560
- 49. **The executable bit is ordinary-file truth.** A text or binary file
561
- carries exactly one portable mode, `0644` or `0755`, and that mode is part
562
- of its canonical version. Detect records a mode-only change without
563
- resending unchanged bytes; Add, Apply, and Verify restore and prove the
564
- exact mode. Ownership, ACLs, directory modes, and other platform posture
565
- remain machine-local.
566
- 50. **A Git Card carries every durable ref and the whole stash stack.** The
567
- Card stores one sorted set of full names below `refs/` — heads, tags,
568
- notes, remotes, and custom refs — excluding only Amalgm's private import
569
- namespace, and beside it the stash stack newest first. Git keeps that
570
- stack only in the `refs/stash` reflog, where a ref alone names just the
571
- top entry, so each entry travels by value as its commit plus its reflog
572
- message in Git's normalized form; reflog timestamps and committer
573
- identity stay machine-local. Capture packs every named object, Apply
574
- recreates the exact ref set, deletes absent refs, and rebuilds a differing
575
- stash stack in order, and Verify compares both; no second branch, tag, or
573
+ A Restore into an occupied name does the same. Every observer preserves
574
+ every UUID and derives the same disk names from the complete active
575
+ sibling set: the identity that arrived in the slot last, by the cloud's
576
+ acceptance order, takes the next free Windows-style ` (n)` suffix before a
577
+ file-like extension, and the earlier one keeps the bare name. Apply still
578
+ derives that order from lexicographic UUIDs; latest-arrival ordering is
579
+ unfinished there. A derived name is never a mutation, version input, or
580
+ portable rename; whenever the sibling set changes, materialization is
581
+ re-derived.
582
+ 49. **The executable bit and the modified time are ordinary-file truth.** A
583
+ text or binary file carries exactly one portable mode, `0644` or `0755`,
584
+ and the modified time its author's disk showed, and both are part of its
585
+ canonical version. Detect records a mode-only or time-only change with no
586
+ cargo; a receiver still stages the file again from the bytes it holds or
587
+ fetches, since setting either in place is unfinished
588
+ (`docs/entity-apply.md`). Add, Apply, and Verify restore the exact mode
589
+ and the recorded time, and Verify signs the time the disk then shows, so
590
+ a disk that keeps less precision echoes nothing. Ownership, ACLs,
591
+ directory modes, a link's, folder's or repository's times, the access,
592
+ change and birth times, and other platform posture remain machine-local.
593
+ 50. **Every ref and the whole stash stack travel as Git keeps them.** Loose
594
+ refs, `packed-refs`, reflogs and the `refs/stash` reflog that holds the
595
+ stash stack are files of the Git directory and travel byte for byte, with
596
+ the objects they reach. Another machine holds the same ref set, the same
597
+ stash stack in order, and the same reflogs; no second branch, tag, or
576
598
  stash representation exists.
577
599
  51. **Release requires correct results and bounded, measured latency.** Each
578
600
  subsystem must satisfy its independent correctness and performance budgets
@@ -582,54 +604,55 @@ or certify a new wire contract, cloud migration or cross-machine rollout.
582
604
  ## Apply attribution boundary
583
605
 
584
606
  Detect describes observed user ground. A bound, nonterminal Apply recovery receipt
585
- owns only its original effect participants and address cones; a phase alone owns
586
- nothing. Detect defers dependent attribution and retains the Watch responsibility,
587
- while independent observations may commit. Ownership is rechecked at Record
588
- admission, including an originally empty answer. Terminal commit releases that
589
- ownership before private cleanup and wakes its original scopes. A capture blocked
590
- by its own receipt requests coherent cancellation; only proof of the original
591
- effects authorizes cancellation, and cancellation never resolves Inbox or advances
592
- verified state. Fresh intents have fresh host-minted attempt identities, even when
593
- the target and wall clock are identical, and run fresh preflight before new effects.
607
+ owns only its original effect participants and address cones; a phase alone
608
+ defers no Detect attribution, because an unbound revealed intent changed nothing
609
+ on disk (it still Verifies before newer work). Detect defers dependent
610
+ attribution and retains the Watch responsibility, while independent
611
+ observations may commit. Ownership is rechecked at Record admission, including
612
+ an originally empty answer. Terminal commit releases that ownership before
613
+ private cleanup and wakes its original scopes. A bound intent never captures,
614
+ so no capture is blocked by its own receipt: it ends only through its receipt
615
+ read, and only that read's proof of a person's change authorizes cancelling
616
+ it. Cancellation never resolves Inbox or advances verified state.
617
+ Detect's self-blocked capture answer (`replan`) is therefore unreachable and
618
+ awaits removal by its owner. Fresh attempts have fresh host-minted identities, even when
619
+ the target and wall clock are identical, and each runs its own preflight before its
620
+ intent is written.
594
621
  Apply uses the same foreign-ownership rule at admission and terminal preparation;
595
622
  a dependent cancellation waits without resolving history or discarding evidence.
596
623
  Primary and collateral placement use the same retained original physical
597
624
  association. A proved cancellation may repair O addresses, never sharing state,
598
625
  payload/version, verification time, or the resolved/verified history positions.
599
626
 
600
- ## Five surfaces, one behavior
627
+ ## One SDK, thin doors
601
628
 
602
- ```
603
- src/ the SDK — the behavior. Contracts + machines + adapter ports.
604
- surfaces/api REST router factory a host mounts (diagnose/validate routes).
605
- surfaces/cli `amalgm-live` — inspect frames, derive ids, simulate merges.
606
- surfaces/mcp MCP server exposing the same actions to agents.
607
- skills/live the skill: teaches an agent this protocol via the CLI/MCP.
608
- ```
609
-
610
- Every surface is a thin adapter over `src/`. A surface that implements
611
- behavior instead of delegating to the SDK is a bug (axiom 3).
629
+ `src/` is the whole package. Shell, the gateway, and the UI consume it as
630
+ `@amalgm/live` and supply every machine effect through injected ports. The
631
+ product commands `amalgm files register` and `amalgm files add` are Shell's
632
+ mappings onto this package's decisions. The doors kept here are pure mappings
633
+ beside the module they serve: the sharing argv and MCP doors in
634
+ `src/sharing/`, and the HTTP mappings `src/files/api.ts` and
635
+ `src/workspace/api.ts`. A door that implements behavior instead of delegating
636
+ to the SDK is a bug (axiom 3).
612
637
 
613
638
  ## Layout
614
639
 
615
640
  ```
616
- src/contracts/ value types + validators: events, snapshots, resource ids,
617
- content manifests, frames (SSE /
618
- gateway socket / tunnel), doc-write merge outcomes,
619
- presence.
641
+ src/contracts/ value types + validators: non-throwing checks, content
642
+ manifests, and the sealed-content envelope.
620
643
  src/records/ entity record contracts, the event-driven Send/Receive rail,
621
644
  and the local-outbox, authority, and per-entity inbox laws.
622
- src/machines/ transport-neutral state machines: bootstrap barrier, presence
623
- TTL, slot arbitration, chunk reassembly, backoff.
624
645
  src/entities/ the entity model's rule surface: the six-field record,
625
646
  derived versions, lifecycle laws, move planning, the
626
- cloud and repo-state codecs — behind injected ports.
647
+ cloud codec and the one reducer — behind injected ports.
648
+ src/git/ the Git-directory repository law: the state and its ID, the
649
+ transport artifact, the chain a receiver reads, and Apply's
650
+ plan and lock law. Git itself runs in the host.
627
651
  src/watching/ the Watch pure cores: minimal coverage ownership and
628
652
  generation-safe suspicion.
629
653
  src/detection/ the Detect pure submodule: Watch boundary, identity compare,
630
- classification, enrollment, repository territory, exact
631
- replay proposals, net batches, and echo equality.
632
- src/apply/ the Apply/Verify pure submodule: durable intent phases,
654
+ classification, enrollment, exact replay proposals, net batches, and echo equality.
655
+ src/apply/ the Apply/Verify pure submodule: bind-before-effect intents,
633
656
  gap-free selection, later-local protection, private result
634
657
  proof, type-adapter sockets, and crash-resumable orchestration.
635
658
  src/registration/ the login-time user-ground convergence operation and its
@@ -640,9 +663,6 @@ src/transfer/ type-aware immutable artifact upload/download operations;
640
663
  chunk storage, R2, files, and Git remain injected effects.
641
664
  tests/ unit tests per module, in the engine wall's style: each
642
665
  exam states a law; mutants convict.
643
- tests/parity/ golden-vector harness: the same inputs run against this
644
- package and the shipped runtime implementation must produce
645
- identical outputs.
646
666
  tests/records/ contract and invariant tests for the complete entity-record
647
667
  journey, written against the public SDK API only.
648
668
  tests/apply/simulation/
@@ -658,10 +678,13 @@ package with no Engine fallback. Other Live surfaces continue across the
658
678
  extraction boundary independently and must satisfy the same exclusive-cutover
659
679
  axiom before entering a signed release.
660
680
 
661
- The portable entity Apply/Verify subsystem exists here. Production filesystem,
662
- SQLite, immutable-cache, Git-process, and watcher composition remains a Shell
663
- release step; until that published-package adoption is complete, universal
664
- cross-machine materialization is not a shipped claim.
681
+ The portable entity Apply/Verify subsystem exists here; released Shell
682
+ composes it with its filesystem, SQLite, immutable-cache, Git and Watch
683
+ effects. Full cross-machine convergence remains unproved.
684
+
685
+ The Git-directory repository law lives in `src/git/`; Shell performs it as the
686
+ rails' `repo.git` type adapter. The full ideal-operations examination has not
687
+ run on the Git-directory path.
665
688
 
666
689
  Registry credentials are available only to the final protected publication job,
667
690
  after every native examination proves the exact candidate bytes.