@e4779/pi-fabric 0.92.42-fork.7 → 0.96.4-fork.9

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 (296) hide show
  1. package/LAWS.bend +502 -0
  2. package/PROOF.bend +452 -0
  3. package/README.md +5 -1
  4. package/THIRD_PARTY_NOTICES.md +9 -0
  5. package/dist/agents/handoff.d.ts +2 -1
  6. package/dist/agents/handoff.d.ts.map +1 -1
  7. package/dist/agents/manager.d.ts +2 -0
  8. package/dist/agents/manager.d.ts.map +1 -1
  9. package/dist/agents.js +6 -5
  10. package/dist/agents.js.map +1 -1
  11. package/dist/chunks/{chunk-3TXOQ5MG.js → chunk-3CJETB4S.js} +828 -204
  12. package/dist/chunks/chunk-3CJETB4S.js.map +7 -0
  13. package/dist/chunks/{chunk-IUCVOZRX.js → chunk-3SIXBW6A.js} +2 -2
  14. package/dist/chunks/chunk-4E63LJDD.js +468 -0
  15. package/dist/chunks/chunk-4E63LJDD.js.map +7 -0
  16. package/dist/chunks/{chunk-AAHHYDTO.js → chunk-4NF3S3NM.js} +1 -1
  17. package/dist/chunks/{chunk-AAHHYDTO.js.map → chunk-4NF3S3NM.js.map} +2 -2
  18. package/dist/chunks/{chunk-2SWRVIYJ.js → chunk-754HA6KO.js} +2 -2
  19. package/dist/chunks/{chunk-K6DHXXF5.js → chunk-B2IVWASP.js} +2 -2
  20. package/dist/chunks/{chunk-ZDNGXLEC.js → chunk-B4HECUJI.js} +2 -2
  21. package/dist/chunks/{chunk-H6DDV6E2.js → chunk-CSJSHBAT.js} +5 -5
  22. package/dist/chunks/{chunk-MW5VI7IW.js → chunk-D4B4CCTA.js} +2 -2
  23. package/dist/chunks/{chunk-EDL4JDW7.js → chunk-EBWMC3OO.js} +2 -2
  24. package/dist/chunks/{chunk-4NUTVNS2.js → chunk-F72MAIQY.js} +31 -368
  25. package/dist/chunks/chunk-F72MAIQY.js.map +7 -0
  26. package/dist/chunks/{chunk-W3FRE4VI.js → chunk-FDIEQEXS.js} +2 -2
  27. package/dist/chunks/{chunk-7A6NVHB5.js → chunk-FJSHRHOR.js} +7 -4
  28. package/dist/chunks/chunk-FJSHRHOR.js.map +7 -0
  29. package/dist/chunks/{chunk-PSNXUZMY.js → chunk-G2F2RDZI.js} +5 -47
  30. package/dist/chunks/chunk-G2F2RDZI.js.map +7 -0
  31. package/dist/chunks/{chunk-3WIGAX56.js → chunk-JCV54SSP.js} +2 -2
  32. package/dist/chunks/chunk-KS44WKJJ.js +51 -0
  33. package/dist/chunks/chunk-KS44WKJJ.js.map +7 -0
  34. package/dist/chunks/{chunk-3H7SDWZI.js → chunk-LNLQ2LX3.js} +22 -1
  35. package/dist/chunks/chunk-LNLQ2LX3.js.map +7 -0
  36. package/dist/chunks/{chunk-G4LADAYY.js → chunk-OINADFEF.js} +8 -3
  37. package/dist/chunks/chunk-OINADFEF.js.map +7 -0
  38. package/dist/chunks/{chunk-UQ4LTUH4.js → chunk-OUAC6O5C.js} +36 -9
  39. package/dist/chunks/chunk-OUAC6O5C.js.map +7 -0
  40. package/dist/chunks/{chunk-MQG5QKGI.js → chunk-Q5BMTL6A.js} +217 -95
  41. package/dist/chunks/chunk-Q5BMTL6A.js.map +7 -0
  42. package/dist/chunks/{chunk-IK6PPFWG.js → chunk-QFKHAAZA.js} +11 -11
  43. package/dist/chunks/chunk-QFKHAAZA.js.map +7 -0
  44. package/dist/chunks/{chunk-RTXZHKMS.js → chunk-QNMQJNXE.js} +7 -3
  45. package/dist/chunks/chunk-QNMQJNXE.js.map +7 -0
  46. package/dist/chunks/{chunk-U5FYOMG5.js → chunk-UBPFGMDQ.js} +6 -2
  47. package/dist/chunks/chunk-UBPFGMDQ.js.map +7 -0
  48. package/dist/chunks/{chunk-FLKGJPCN.js → chunk-ULQFHZJE.js} +4 -1
  49. package/dist/chunks/chunk-ULQFHZJE.js.map +7 -0
  50. package/dist/chunks/{chunk-7VAZ4N43.js → chunk-V3PIO7QL.js} +2 -2
  51. package/dist/chunks/{chunk-MGDLRV2R.js → chunk-VQGO4P7C.js} +2 -2
  52. package/dist/chunks/{chunk-XT4346N7.js → chunk-WXSELMFV.js} +9 -3
  53. package/dist/chunks/chunk-WXSELMFV.js.map +7 -0
  54. package/dist/chunks/{chunk-D5WKZONW.js → chunk-X3IRR7CV.js} +2 -2
  55. package/dist/chunks/{chunk-IJL3QK3J.js → chunk-Y57UHPIK.js} +1 -1
  56. package/dist/chunks/{chunk-IJL3QK3J.js.map → chunk-Y57UHPIK.js.map} +1 -1
  57. package/dist/chunks/{chunk-RKRVOBVO.js → chunk-YC3QQDZ3.js} +2 -2
  58. package/dist/chunks/{chunk-Q4XJ4PYL.js → chunk-ZRI433JP.js} +299 -83
  59. package/dist/chunks/chunk-ZRI433JP.js.map +7 -0
  60. package/dist/chunks/{chunk-36B4AIRT.js → chunk-ZTXZ6JDO.js} +2 -2
  61. package/dist/commands/fabric.d.ts.map +1 -1
  62. package/dist/compaction/bounds.d.ts +4 -0
  63. package/dist/compaction/bounds.d.ts.map +1 -1
  64. package/dist/compaction/branch-summary.d.ts.map +1 -1
  65. package/dist/compaction/dialogue.d.ts +24 -0
  66. package/dist/compaction/dialogue.d.ts.map +1 -0
  67. package/dist/compaction/hook.d.ts +6 -2
  68. package/dist/compaction/hook.d.ts.map +1 -1
  69. package/dist/compaction/hook.js +6 -5
  70. package/dist/compaction/instructions.d.ts +1 -0
  71. package/dist/compaction/instructions.d.ts.map +1 -1
  72. package/dist/compaction/projections.d.ts +3 -3
  73. package/dist/compaction/projections.d.ts.map +1 -1
  74. package/dist/compaction/qa.d.ts.map +1 -1
  75. package/dist/compaction/render.d.ts +11 -0
  76. package/dist/compaction/render.d.ts.map +1 -1
  77. package/dist/components/configuration.js +2 -3
  78. package/dist/components/effect-policy.d.ts +2 -0
  79. package/dist/components/effect-policy.d.ts.map +1 -1
  80. package/dist/components/effect-scope.d.ts.map +1 -1
  81. package/dist/components/supervisor.d.ts +1 -1
  82. package/dist/components/supervisor.d.ts.map +1 -1
  83. package/dist/core/action-registry.d.ts +14 -2
  84. package/dist/core/action-registry.d.ts.map +1 -1
  85. package/dist/core/action-registry.js +7 -5
  86. package/dist/core/provider-bindings.d.ts +8 -2
  87. package/dist/core/provider-bindings.d.ts.map +1 -1
  88. package/dist/core/provider-operations.d.ts +28 -0
  89. package/dist/core/provider-operations.d.ts.map +1 -0
  90. package/dist/core/provider-operations.js +201 -0
  91. package/dist/core/provider-operations.js.map +7 -0
  92. package/dist/core/shell-inbox.d.ts +13 -0
  93. package/dist/core/shell-inbox.d.ts.map +1 -0
  94. package/dist/core/shell-jobs.d.ts +51 -7
  95. package/dist/core/shell-jobs.d.ts.map +1 -1
  96. package/dist/core/shell-limits.d.ts +3 -0
  97. package/dist/core/shell-limits.d.ts.map +1 -0
  98. package/dist/core/shell-monitor.d.ts +51 -0
  99. package/dist/core/shell-monitor.d.ts.map +1 -0
  100. package/dist/entropy/index.js +8 -7
  101. package/dist/entropy/normal-form.d.ts.map +1 -1
  102. package/dist/execution-service.d.ts +1 -1
  103. package/dist/execution-service.d.ts.map +1 -1
  104. package/dist/fabric-runtime-state.d.ts +1 -1
  105. package/dist/fabric-runtime-state.d.ts.map +1 -1
  106. package/dist/fabric-runtime-state.js +1124 -325
  107. package/dist/fabric-runtime-state.js.map +4 -4
  108. package/dist/index.js +155 -44
  109. package/dist/index.js.map +3 -3
  110. package/dist/jev/observation.js +5 -3
  111. package/dist/jev.d.ts +0 -1
  112. package/dist/jev.d.ts.map +1 -1
  113. package/dist/jev.js +9 -13
  114. package/dist/memory/digest.d.ts.map +1 -1
  115. package/dist/memory/digest.js +2 -1
  116. package/dist/memory/discovery.js +6 -5
  117. package/dist/memory/expand-service.d.ts.map +1 -1
  118. package/dist/memory/file-worker.js +9 -8
  119. package/dist/memory/file-worker.js.map +1 -1
  120. package/dist/memory/index.d.ts.map +1 -1
  121. package/dist/memory/normalize.d.ts.map +1 -1
  122. package/dist/memory/normalize.js +5 -4
  123. package/dist/memory/search.js +7 -6
  124. package/dist/memory/worker-provider.js +10 -9
  125. package/dist/memory.js +9 -8
  126. package/dist/memory.js.map +1 -1
  127. package/dist/mesh/store.d.ts.map +1 -1
  128. package/dist/prewalk/handoff.d.ts +1 -1
  129. package/dist/prewalk/handoff.d.ts.map +1 -1
  130. package/dist/protocol.d.ts +2 -0
  131. package/dist/protocol.d.ts.map +1 -1
  132. package/dist/protocol.js +1 -1
  133. package/dist/providers/jev-provider.d.ts +1 -1
  134. package/dist/providers/jev-provider.d.ts.map +1 -1
  135. package/dist/providers/jev-provider.js +9 -7
  136. package/dist/providers/memory-provider.js +9 -8
  137. package/dist/providers/pi-tools-provider.d.ts.map +1 -1
  138. package/dist/providers/tasks-provider.d.ts +12 -0
  139. package/dist/providers/tasks-provider.d.ts.map +1 -0
  140. package/dist/residency/host.js +10 -9
  141. package/dist/residency/pi-entry.js +10 -9
  142. package/dist/residency/pi-entry.js.map +1 -1
  143. package/dist/runtime/core-override-guest-types.js +2 -2
  144. package/dist/runtime/guest-types.d.ts +1 -1
  145. package/dist/runtime/guest-types.d.ts.map +1 -1
  146. package/dist/runtime/guest-types.js +1 -1
  147. package/dist/runtime/monty-runtime.js +1 -2
  148. package/dist/runtime/monty-runtime.js.map +1 -1
  149. package/dist/runtime/typescript-kernel.js +2 -2
  150. package/dist/runtime-state-builtins.d.ts +1 -1
  151. package/dist/runtime-state-builtins.d.ts.map +1 -1
  152. package/dist/schema/controller.d.ts.map +1 -1
  153. package/dist/state/store.d.ts.map +1 -1
  154. package/dist/ui/controller.d.ts +1 -0
  155. package/dist/ui/controller.d.ts.map +1 -1
  156. package/dist/ui/conversation-targets.js +2 -2
  157. package/dist/ui/conversation.js +7 -7
  158. package/dist/ui/dashboard.js +9 -9
  159. package/dist/ui/highlight.d.ts.map +1 -1
  160. package/dist/ui/languages/bend.d.ts +4 -0
  161. package/dist/ui/languages/bend.d.ts.map +1 -0
  162. package/dist/ui/languages/bend.js +73 -0
  163. package/dist/ui/languages/bend.js.map +7 -0
  164. package/dist/ui/settings.js +1 -2
  165. package/dist/ui/settings.js.map +1 -1
  166. package/dist/ui/shell-hang-keys.d.ts.map +1 -1
  167. package/dist/ui/shell-tasks.d.ts +22 -0
  168. package/dist/ui/shell-tasks.d.ts.map +1 -0
  169. package/dist/ui/shell-tasks.js +161 -0
  170. package/dist/ui/shell-tasks.js.map +7 -0
  171. package/dist/ui/shiki-catalog.d.ts +2 -1
  172. package/dist/ui/shiki-catalog.d.ts.map +1 -1
  173. package/dist/ui/snapshot.d.ts.map +1 -1
  174. package/dist/ui/types.d.ts +1 -0
  175. package/dist/ui/types.d.ts.map +1 -1
  176. package/dist/ui/widget.d.ts.map +1 -1
  177. package/dist/verified/authority.d.ts +17 -0
  178. package/dist/verified/authority.d.ts.map +1 -0
  179. package/dist/verified/generated/authority-kernel.d.ts +10 -0
  180. package/dist/verified/generated/authority-kernel.js +116 -0
  181. package/dist/verified/generated/kernel.d.ts +31 -0
  182. package/dist/verified/generated/kernel.js +351 -0
  183. package/dist/verified/generated/lifecycle-kernel.d.ts +7 -0
  184. package/dist/verified/generated/lifecycle-kernel.js +155 -0
  185. package/dist/verified/generated/manifest.json +54 -0
  186. package/dist/verified/generated/provider-kernel.d.ts +9 -0
  187. package/dist/verified/generated/provider-kernel.js +80 -0
  188. package/dist/verified/generated/storage-kernel.d.ts +11 -0
  189. package/dist/verified/generated/storage-kernel.js +98 -0
  190. package/dist/verified/memory.d.ts +11 -0
  191. package/dist/verified/memory.d.ts.map +1 -0
  192. package/dist/verified/nat.d.ts +2 -0
  193. package/dist/verified/nat.d.ts.map +1 -0
  194. package/dist/verified/policy.d.ts +37 -0
  195. package/dist/verified/policy.d.ts.map +1 -0
  196. package/dist/verified/resources.d.ts +14 -0
  197. package/dist/verified/resources.d.ts.map +1 -0
  198. package/dist/verified/storage.d.ts +32 -0
  199. package/dist/verified/storage.d.ts.map +1 -0
  200. package/dist/worker/recovery-watchdog.d.ts +12 -0
  201. package/dist/worker/recovery-watchdog.d.ts.map +1 -0
  202. package/dist/worker/recovery-watchdog.js +41 -0
  203. package/dist/worker/recovery-watchdog.js.map +7 -0
  204. package/dist/worker.js +70 -20
  205. package/dist/worker.js.map +2 -2
  206. package/docs/agents.md +20 -14
  207. package/docs/architecture.md +1 -1
  208. package/docs/background-tasks.md +140 -0
  209. package/docs/compaction.md +91 -28
  210. package/docs/components.md +5 -1
  211. package/docs/configuration.md +6 -6
  212. package/docs/foreman.md +4 -4
  213. package/docs/harnesses.md +95 -0
  214. package/docs/interface.md +7 -0
  215. package/docs/jev.md +59 -52
  216. package/docs/kernels.md +2 -2
  217. package/docs/licenses/bend-apache-2.0.txt +202 -0
  218. package/docs/memory-recall.md +1 -1
  219. package/docs/programmatic-compaction.md +13 -2
  220. package/docs/provider-capabilities.md +197 -0
  221. package/docs/shell-middleware.md +3 -3
  222. package/docs/skills.md +1 -1
  223. package/docs/verified-kernels.md +278 -0
  224. package/package.json +14 -4
  225. package/proofs/abi.json +308 -0
  226. package/proofs/authority-abi.json +7 -0
  227. package/proofs/authority-kernel.bend +23 -0
  228. package/proofs/authority-proof.bend +74 -0
  229. package/proofs/authority-spec.bend +30 -0
  230. package/proofs/authority-state.bend +43 -0
  231. package/proofs/authority-types.d.ts +3 -0
  232. package/proofs/kernel.bend +139 -0
  233. package/proofs/lifecycle-abi.json +3 -0
  234. package/proofs/lifecycle-kernel.bend +11 -0
  235. package/proofs/lifecycle-proof.bend +249 -0
  236. package/proofs/lifecycle-spec.bend +261 -0
  237. package/proofs/lifecycle-types.d.ts +4 -0
  238. package/proofs/lifecycle.bend +119 -0
  239. package/proofs/provider-abi.json +4 -0
  240. package/proofs/provider-kernel.bend +14 -0
  241. package/proofs/provider-plans.bend +28 -0
  242. package/proofs/provider-spec.bend +14 -0
  243. package/proofs/provider-types.d.ts +5 -0
  244. package/proofs/resource-proof.bend +633 -0
  245. package/proofs/resource-spec.bend +133 -0
  246. package/proofs/resources.bend +160 -0
  247. package/proofs/state-kernel.bend +17 -0
  248. package/proofs/state-plans.bend +40 -0
  249. package/proofs/state-proof.bend +42 -0
  250. package/proofs/state-spec.bend +26 -0
  251. package/proofs/storage-abi.json +3 -0
  252. package/proofs/storage-kernel.bend +11 -0
  253. package/proofs/storage-plans.bend +100 -0
  254. package/proofs/storage-proof.bend +176 -0
  255. package/proofs/storage-spec.bend +70 -0
  256. package/proofs/storage-types.d.ts +8 -0
  257. package/proofs/types.d.ts +7 -0
  258. package/scripts/test-verified-kernels.mjs +107 -0
  259. package/scripts/verified-kernels.mjs +136 -0
  260. package/skillsets/python/fabric-jev/SKILL.md +13 -9
  261. package/skillsets/typescript/fabric-exec/SKILL.md +4 -2
  262. package/skillsets/typescript/fabric-jev/SKILL.md +13 -9
  263. package/dist/chunks/chunk-3H7SDWZI.js.map +0 -7
  264. package/dist/chunks/chunk-3TXOQ5MG.js.map +0 -7
  265. package/dist/chunks/chunk-4NUTVNS2.js.map +0 -7
  266. package/dist/chunks/chunk-77PDIBK2.js +0 -129
  267. package/dist/chunks/chunk-77PDIBK2.js.map +0 -7
  268. package/dist/chunks/chunk-7A6NVHB5.js.map +0 -7
  269. package/dist/chunks/chunk-FLKGJPCN.js.map +0 -7
  270. package/dist/chunks/chunk-G4LADAYY.js.map +0 -7
  271. package/dist/chunks/chunk-IK6PPFWG.js.map +0 -7
  272. package/dist/chunks/chunk-MQG5QKGI.js.map +0 -7
  273. package/dist/chunks/chunk-PSNXUZMY.js.map +0 -7
  274. package/dist/chunks/chunk-Q4XJ4PYL.js.map +0 -7
  275. package/dist/chunks/chunk-RTXZHKMS.js.map +0 -7
  276. package/dist/chunks/chunk-U5FYOMG5.js.map +0 -7
  277. package/dist/chunks/chunk-UQ4LTUH4.js.map +0 -7
  278. package/dist/chunks/chunk-XT4346N7.js.map +0 -7
  279. package/dist/jev/browser.d.ts +0 -37
  280. package/dist/jev/browser.d.ts.map +0 -1
  281. package/dist/jev/browser.js +0 -13
  282. package/dist/jev/browser.js.map +0 -7
  283. /package/dist/chunks/{chunk-IUCVOZRX.js.map → chunk-3SIXBW6A.js.map} +0 -0
  284. /package/dist/chunks/{chunk-2SWRVIYJ.js.map → chunk-754HA6KO.js.map} +0 -0
  285. /package/dist/chunks/{chunk-K6DHXXF5.js.map → chunk-B2IVWASP.js.map} +0 -0
  286. /package/dist/chunks/{chunk-ZDNGXLEC.js.map → chunk-B4HECUJI.js.map} +0 -0
  287. /package/dist/chunks/{chunk-H6DDV6E2.js.map → chunk-CSJSHBAT.js.map} +0 -0
  288. /package/dist/chunks/{chunk-MW5VI7IW.js.map → chunk-D4B4CCTA.js.map} +0 -0
  289. /package/dist/chunks/{chunk-EDL4JDW7.js.map → chunk-EBWMC3OO.js.map} +0 -0
  290. /package/dist/chunks/{chunk-W3FRE4VI.js.map → chunk-FDIEQEXS.js.map} +0 -0
  291. /package/dist/chunks/{chunk-3WIGAX56.js.map → chunk-JCV54SSP.js.map} +0 -0
  292. /package/dist/chunks/{chunk-7VAZ4N43.js.map → chunk-V3PIO7QL.js.map} +0 -0
  293. /package/dist/chunks/{chunk-MGDLRV2R.js.map → chunk-VQGO4P7C.js.map} +0 -0
  294. /package/dist/chunks/{chunk-D5WKZONW.js.map → chunk-X3IRR7CV.js.map} +0 -0
  295. /package/dist/chunks/{chunk-RKRVOBVO.js.map → chunk-YC3QQDZ3.js.map} +0 -0
  296. /package/dist/chunks/{chunk-36B4AIRT.js.map → chunk-ZTXZ6JDO.js.map} +0 -0
@@ -0,0 +1,351 @@
1
+ // Generated by Bend 2.0.26; do not edit. See LAWS.bend and PROOF.bend.
2
+ // Includes adapted Bend runtime/Base code, Copyright 2026 HigherOrderCO, Apache-2.0.
3
+ // CLI removed and exports added by Pi Fabric; see THIRD_PARTY_NOTICES.md.
4
+ function w(e, t) {
5
+ return { $: e < t ? "LT" : e === t ? "EQ" : "GT" };
6
+ }
7
+ function B(e) {
8
+ if (e > 281474976710655n)
9
+ throw "bend: a Nat past the largest immediate 2^48-1";
10
+ return e;
11
+ }
12
+ function $(e, t) {
13
+ return { $: "$JMP", f: e, x: t };
14
+ }
15
+ function r(e) {
16
+ for (; e !== null && typeof e == "object" && e.$ === "$JMP"; )
17
+ e = e.f(...e.x);
18
+ return e;
19
+ }
20
+ function u(e, t) {
21
+ return (...n) => n.length < t ? u((...i) => e(...n, ...i), t - n.length) : r(e(...n));
22
+ }
23
+ function G(e) {
24
+ return $(re, [e]);
25
+ }
26
+ function L(e, t) {
27
+ return $(ie, [e, t]);
28
+ }
29
+ function j(e, t, n, i) {
30
+ return $(k, [e, t, n, i]);
31
+ }
32
+ function F(e, t) {
33
+ return $(v, [e, t, !1]);
34
+ }
35
+ function J(e, t, n) {
36
+ return $(a, [e, t || n]);
37
+ }
38
+ function M(e, t, n, i) {
39
+ return $(c, [{ $: "Con", head: r(s(e, t)), tail: { $: "Con", head: r(s(n, i)), tail: { $: "Nil" } } }]);
40
+ }
41
+ function R(e, t, n, i) {
42
+ let o = t;
43
+ return $(c, [{ $: "Con", head: r(C(e, B(o + n))), tail: { $: "Con", head: r(s(o, i)), tail: { $: "Nil" } } }]);
44
+ }
45
+ function x(e, t, n) {
46
+ return $(c, [r($e(e, t, n))]);
47
+ }
48
+ function D(e, t, n, i, o, l) {
49
+ let d = r(a(e, t || l)), h = r(a(i, o || n));
50
+ return d || h;
51
+ }
52
+ function H(e, t, n, i) {
53
+ return $(c, [r(oe(e, t, n, i))]);
54
+ }
55
+ function I(e, t, n, i) {
56
+ return $(c, [r(ue(e, t, n, i))]);
57
+ }
58
+ function K(e, t) {
59
+ return e ? 2 : t ? 1 : 0;
60
+ }
61
+ function S(e, t) {
62
+ return $(c, [r(T(e, t))]);
63
+ }
64
+ function O(e) {
65
+ return $(c, [r(le(e))]);
66
+ }
67
+ function X(e, t) {
68
+ return e || t;
69
+ }
70
+ function Y(e, t) {
71
+ return $(c, [{ $: "Con", head: e, tail: { $: "Con", head: t, tail: { $: "Nil" } } }]);
72
+ }
73
+ function Z(e) {
74
+ return $(c, [r(ae(e))]);
75
+ }
76
+ function y(e, t) {
77
+ return $(c, [{ $: "Con", head: e, tail: { $: "Con", head: r(f(t)), tail: { $: "Nil" } } }]);
78
+ }
79
+ function _(e, t, n, i) {
80
+ return $(c, [r(ce(e, t, n, i))]);
81
+ }
82
+ function ee(e, t, n, i, o) {
83
+ let l = r(a(i, o));
84
+ return $(c, [{ $: "Con", head: e, tail: { $: "Con", head: t, tail: { $: "Con", head: n || l, tail: { $: "Nil" } } } }]);
85
+ }
86
+ function te(e) {
87
+ return $(c, [e]);
88
+ }
89
+ function ne(e) {
90
+ return { $: "Tuple", fst: e, snd: !1 };
91
+ }
92
+ function re(e) {
93
+ return $(z, [r(a(r(A(e)), r(Q(e, !0)))), e]);
94
+ }
95
+ function ie(e, t) {
96
+ if (e.$ === "Unknown")
97
+ return { $: "Unknown" };
98
+ {
99
+ let n = e.names;
100
+ return $(z, [r(fe(n, t)), t]);
101
+ }
102
+ }
103
+ function k(e, t, n, i) {
104
+ return $(a, [n || i, r(de(e, t))]);
105
+ }
106
+ function v(e, t, n) {
107
+ if (e.$ === "Nil")
108
+ return n;
109
+ {
110
+ let i = e.head, o = e.tail, l = r(g(t, i, !1));
111
+ return $(v, [o, t, n || l]);
112
+ }
113
+ }
114
+ function a(e, t) {
115
+ return e ? t : !1;
116
+ }
117
+ function c(e) {
118
+ if (e.$ === "Nil")
119
+ return !0;
120
+ if (e.head) {
121
+ let t = e.tail;
122
+ return $(c, [t]);
123
+ } else {
124
+ let t = e.tail;
125
+ return !1;
126
+ }
127
+ }
128
+ function s(e, t) {
129
+ return $(se, [w(e, t)]);
130
+ }
131
+ function C(e, t) {
132
+ return $(he, [w(e, t)]);
133
+ }
134
+ function $e(e, t, n) {
135
+ return { $: "Con", head: n, tail: { $: "Con", head: r(s(e, t)), tail: { $: "Nil" } } };
136
+ }
137
+ function oe(e, t, n, i) {
138
+ return { $: "Con", head: r(f(e)), tail: { $: "Con", head: t, tail: { $: "Con", head: n, tail: { $: "Con", head: r(f(i)), tail: { $: "Nil" } } } } };
139
+ }
140
+ function ue(e, t, n, i) {
141
+ return { $: "Con", head: e, tail: { $: "Con", head: r(f(t)), tail: { $: "Con", head: r(f(n)), tail: { $: "Con", head: r(f(i)), tail: { $: "Nil" } } } } };
142
+ }
143
+ function T(e, t) {
144
+ if (e.$ === "Nil")
145
+ return { $: "Nil" };
146
+ {
147
+ let n = e.head, i = e.tail;
148
+ return { $: "Con", head: r(Ce(t, n)), tail: r(T(i, t)) };
149
+ }
150
+ }
151
+ function le(e) {
152
+ let t = e.eligible, n = e.afterPrevious, i = e.retained, o = e.budget, l = e.boundary, d = e.spans;
153
+ return { $: "Con", head: t, tail: { $: "Con", head: n, tail: { $: "Con", head: r(s(i, o)), tail: { $: "Con", head: r(S(d, l)), tail: { $: "Nil" } } } } };
154
+ }
155
+ function ae(e) {
156
+ let t = e.start, n = e.end, i = e.total, o = e.expectedStart, l = e.expectedTotal, d = e.length, h = e.complete, N = r(C(n, i)), q = t < n;
157
+ return { $: "Con", head: r(C(t, o)), tail: { $: "Con", head: r(C(i, l)), tail: { $: "Con", head: r(s(t, n)), tail: { $: "Con", head: r(s(n, i)), tail: { $: "Con", head: r(C(d, n < t ? 0n : n - t)), tail: { $: "Con", head: r(f(h !== N)), tail: { $: "Con", head: h || q, tail: { $: "Nil" } } } } } } } };
158
+ }
159
+ function f(e) {
160
+ return !e;
161
+ }
162
+ function ce(e, t, n, i) {
163
+ return { $: "Con", head: r(f(e)), tail: { $: "Con", head: t, tail: { $: "Con", head: n, tail: { $: "Con", head: i, tail: { $: "Nil" } } } } };
164
+ }
165
+ function z(e, t) {
166
+ return e ? { $: "Exact", names: t } : { $: "Unknown" };
167
+ }
168
+ function A(e) {
169
+ if (e.$ === "Nil")
170
+ return !1;
171
+ {
172
+ let t = e.head, n = e.tail;
173
+ return !0;
174
+ }
175
+ }
176
+ function Q(e, t) {
177
+ if (e.$ === "Nil")
178
+ return t;
179
+ {
180
+ let n = e.head, i = e.tail;
181
+ return $(Q, [i, r(a(t, r(pe(n))))]);
182
+ }
183
+ }
184
+ function fe(e, t) {
185
+ return $(Ne, [r(me(t)), e, t]);
186
+ }
187
+ function de(e, t) {
188
+ if (e.$ === "Unknown")
189
+ return !0;
190
+ {
191
+ let n = e.names;
192
+ if (t.$ === "Unknown")
193
+ return !0;
194
+ {
195
+ let i = t.names;
196
+ return $(E, [n, i, !1]);
197
+ }
198
+ }
199
+ }
200
+ function g(e, t, n) {
201
+ if (e.$ === "Nil")
202
+ return n;
203
+ {
204
+ let i = e.head, o = e.tail, l = r(be(t, i));
205
+ return $(g, [o, t, n || l]);
206
+ }
207
+ }
208
+ function se(e) {
209
+ return e.$ === "LT" ? !0 : e.$ === "EQ";
210
+ }
211
+ function he(e) {
212
+ return e.$ === "LT" ? !1 : e.$ === "EQ";
213
+ }
214
+ function Ce(e, t) {
215
+ let n = t.first, i = t.last, o = t.paired, l = r(f(o)), d = r(s(e, n)), h = l || d, N = i < e;
216
+ return h || N;
217
+ }
218
+ function pe(e) {
219
+ return $(a, [r(U(e)), r(f(r(p(e, { $: "Con", head: 42n, tail: { $: "Nil" } }, !0))))]);
220
+ }
221
+ function Ne(e, t, n) {
222
+ return e ? $(a, [r(m(t, n, !0)), r(m(n, t, !0))]) : !1;
223
+ }
224
+ function me(e) {
225
+ return $(a, [r(A(e)), r(a(r(P(e, 64n)), r(V(e, !0))))]);
226
+ }
227
+ function E(e, t, n) {
228
+ if (e.$ === "Nil")
229
+ return n;
230
+ {
231
+ let i = e.head, o = e.tail, l = r(b(t, i, !1));
232
+ return $(E, [o, t, n || l]);
233
+ }
234
+ }
235
+ function be(e, t) {
236
+ if (e.$ === "Quiet")
237
+ return !1;
238
+ {
239
+ let n = e.ordered, i = e.scope;
240
+ if (t.$ === "Quiet")
241
+ return !1;
242
+ {
243
+ let o = t.ordered, l = t.scope;
244
+ return $(k, [i, l, n, o]);
245
+ }
246
+ }
247
+ }
248
+ function U(e) {
249
+ if (e.$ === "Nil")
250
+ return !1;
251
+ {
252
+ let t = e.head, n = e.tail;
253
+ return !0;
254
+ }
255
+ }
256
+ function p(e, t, n) {
257
+ if (e.$ === "Nil") {
258
+ if (t.$ === "Nil")
259
+ return n;
260
+ {
261
+ let i = t.head, o = t.tail;
262
+ return !1;
263
+ }
264
+ } else {
265
+ let i = e.head, o = e.tail;
266
+ if (t.$ === "Nil")
267
+ return !1;
268
+ {
269
+ let l = t.head, d = t.tail;
270
+ return $(p, [o, d, r(a(n, r(C(i, l))))]);
271
+ }
272
+ }
273
+ }
274
+ function m(e, t, n) {
275
+ if (e.$ === "Nil")
276
+ return n;
277
+ {
278
+ let i = e.head, o = e.tail;
279
+ return $(m, [o, t, r(a(n, r(b(t, i, !1))))]);
280
+ }
281
+ }
282
+ function P(e, t) {
283
+ if (e.$ === "Nil")
284
+ return !0;
285
+ {
286
+ let n = e.head, i = e.tail;
287
+ if (t === 0n)
288
+ return !1;
289
+ {
290
+ let o = t - 1n;
291
+ return $(P, [i, o]);
292
+ }
293
+ }
294
+ }
295
+ function V(e, t) {
296
+ if (e.$ === "Nil")
297
+ return t;
298
+ {
299
+ let n = e.head, i = e.tail;
300
+ return $(V, [i, r(a(t, r(we(n))))]);
301
+ }
302
+ }
303
+ function b(e, t, n) {
304
+ if (e.$ === "Nil")
305
+ return n;
306
+ {
307
+ let i = e.head, o = e.tail, l = r(p(t, i, !0));
308
+ return $(b, [o, t, n || l]);
309
+ }
310
+ }
311
+ function we(e) {
312
+ return $(a, [r(U(e)), r(a(r(W(e, 256n)), r(f(r(p(e, { $: "Con", head: 42n, tail: { $: "Nil" } }, !0))))))]);
313
+ }
314
+ function W(e, t) {
315
+ if (e.$ === "Nil")
316
+ return !0;
317
+ {
318
+ let n = e.head, i = e.tail;
319
+ if (t === 0n)
320
+ return !1;
321
+ {
322
+ let o = t - 1n;
323
+ return $(W, [i, o]);
324
+ }
325
+ }
326
+ }
327
+ var Se = /* @__PURE__ */ u(x, 3), ke = /* @__PURE__ */ u(D, 6), ve = /* @__PURE__ */ u(H, 4), Te = /* @__PURE__ */ u(I, 4), ze = /* @__PURE__ */ u(K, 2), Ae = /* @__PURE__ */ u(S, 2), Qe = /* @__PURE__ */ u(O, 1), ge = /* @__PURE__ */ u(Y, 2), Ee = /* @__PURE__ */ u(Z, 1), Ue = /* @__PURE__ */ u(y, 2), Pe = /* @__PURE__ */ u(_, 4), Ve = /* @__PURE__ */ u(ee, 5), We = /* @__PURE__ */ u(te, 1), qe = /* @__PURE__ */ u(ne, 1), Be = /* @__PURE__ */ u(X, 2), Ge = /* @__PURE__ */ u(J, 3), Le = /* @__PURE__ */ u(M, 4), je = /* @__PURE__ */ u(R, 4), Fe = /* @__PURE__ */ u(G, 1), Je = /* @__PURE__ */ u(L, 2), Me = /* @__PURE__ */ u(j, 4), Re = /* @__PURE__ */ u(F, 2);
328
+ export {
329
+ Te as canClose,
330
+ We as certificateAccepted,
331
+ Ee as chunkAccepted,
332
+ ze as cleanupState,
333
+ qe as consume,
334
+ Ue as coverageComplete,
335
+ Qe as cutAccepted,
336
+ Se as footprintFits,
337
+ Ve as headReadable,
338
+ Ge as knownConflict,
339
+ Be as lineageSelected,
340
+ ge as pointerCurrent,
341
+ Me as resourceConflict,
342
+ Re as resourceGroups,
343
+ Je as resourceNormalize,
344
+ Fe as resourceSource,
345
+ je as sampleWithin,
346
+ Ae as spansSafe,
347
+ Le as summaryWithin,
348
+ ve as transitionCurrent,
349
+ ke as unknownConflict,
350
+ Pe as useNormalized
351
+ };
@@ -0,0 +1,7 @@
1
+ // Generated ABI declarations; see proofs/lifecycle-abi.json.
2
+ export type BindingPhase = { $: "Staged" | "Active" | "Retiring" | "Closing" | "Closed" | "Failed" };
3
+ export interface BindingLife { $: "Life"; phase: BindingPhase; owner: boolean; holds: bigint; calls: bigint; revoked: boolean }
4
+ export type BindingEvent = { $: "Inspect" | "Activate" | "Retire" | "DropOwner" | "Revoke" | "Release" | "End" | "Close" | "Complete" | "Fail" } | { $: "Retain" | "Begin"; cleanup: boolean };
5
+ export interface BindingOutcome { $: "Outcome"; next: BindingLife; command: { $: "Denied" | "Granted" | "StartClose" } }
6
+
7
+ export declare function bindingStep(life: BindingLife, event: BindingEvent): BindingOutcome;
@@ -0,0 +1,155 @@
1
+ // Generated by Bend 2.0.26; do not edit. See LAWS.bend and PROOF.bend.
2
+ // Includes adapted Bend runtime/Base code, Copyright 2026 HigherOrderCO, Apache-2.0.
3
+ // CLI removed and exports added by Pi Fabric; see THIRD_PARTY_NOTICES.md.
4
+ function h(o) {
5
+ if (o > 281474976710655n)
6
+ throw "bend: a Nat past the largest immediate 2^48-1";
7
+ return o;
8
+ }
9
+ function c(o, e) {
10
+ return { $: "$JMP", f: o, x: e };
11
+ }
12
+ function a(o) {
13
+ for (; o !== null && typeof o == "object" && o.$ === "$JMP"; )
14
+ o = o.f(...o.x);
15
+ return o;
16
+ }
17
+ function u(o, e) {
18
+ return (...s) => s.length < e ? u((...n) => o(...s, ...n), e - s.length) : a(o(...s));
19
+ }
20
+ function k(o, e) {
21
+ return c(v, [o, e]);
22
+ }
23
+ function v(o, e) {
24
+ return c(w, [e, o]);
25
+ }
26
+ function w(o, e) {
27
+ if (o.$ === "Inspect") {
28
+ let s = e.phase, n = e.owner, l = e.holds, r = e.calls, d = e.revoked;
29
+ return c(p, [a($(s, d, !1)), { $: "Life", phase: s, owner: n, holds: l, calls: r, revoked: d }]);
30
+ } else if (o.$ === "Activate") {
31
+ let s = e.phase;
32
+ if (s.$ === "Staged") {
33
+ let n = e.owner, l = e.holds, r = e.calls, d = e.revoked;
34
+ return { $: "Outcome", next: { $: "Life", phase: { $: "Active" }, owner: n, holds: l, calls: r, revoked: d }, command: { $: "Granted" } };
35
+ } else if (s.$ === "Active") {
36
+ let n = e.owner, l = e.holds, r = e.calls, d = e.revoked;
37
+ return { $: "Outcome", next: { $: "Life", phase: { $: "Active" }, owner: n, holds: l, calls: r, revoked: d }, command: { $: "Granted" } };
38
+ } else {
39
+ let n = e.owner, l = e.holds, r = e.calls, d = e.revoked;
40
+ return { $: "Outcome", next: { $: "Life", phase: s, owner: n, holds: l, calls: r, revoked: d }, command: { $: "Denied" } };
41
+ }
42
+ } else if (o.$ === "Retire") {
43
+ let s = e.phase, n = e.owner, l = e.holds, r = e.calls, d = e.revoked;
44
+ return { $: "Outcome", next: { $: "Life", phase: a(m(s)), owner: n, holds: l, calls: r, revoked: d }, command: { $: "Granted" } };
45
+ } else if (o.$ === "DropOwner") {
46
+ let s = e.phase, n = e.owner, l = e.holds, r = e.calls, d = e.revoked;
47
+ return { $: "Outcome", next: { $: "Life", phase: s, owner: !1, holds: l, calls: r, revoked: d }, command: { $: "Granted" } };
48
+ } else if (o.$ === "Revoke") {
49
+ let s = e.phase, n = e.owner, l = e.holds, r = e.calls, d = e.revoked;
50
+ return { $: "Outcome", next: { $: "Life", phase: a(m(s)), owner: !1, holds: l, calls: r, revoked: !0 }, command: { $: "Granted" } };
51
+ } else if (o.$ === "Retain") {
52
+ let s = o.cleanup, n = e.phase, l = e.owner, r = e.holds, d = e.calls, t = e.revoked;
53
+ return c(x, [a($(n, t, s)), { $: "Life", phase: n, owner: l, holds: r, calls: d, revoked: t }]);
54
+ } else if (o.$ === "Release") {
55
+ let s = e.phase, n = e.owner, l = e.holds;
56
+ if (l === 0n) {
57
+ let r = e.calls, d = e.revoked;
58
+ return { $: "Outcome", next: { $: "Life", phase: s, owner: n, holds: 0n, calls: r, revoked: d }, command: { $: "Denied" } };
59
+ } else {
60
+ let r = l - 1n, d = e.calls, t = e.revoked;
61
+ return { $: "Outcome", next: { $: "Life", phase: s, owner: n, holds: r, calls: d, revoked: t }, command: { $: "Granted" } };
62
+ }
63
+ } else if (o.$ === "Begin") {
64
+ let s = o.cleanup, n = e.phase, l = e.owner, r = e.holds, d = e.calls, t = e.revoked;
65
+ return c(O, [a($(n, t, s)), { $: "Life", phase: n, owner: l, holds: r, calls: d, revoked: t }]);
66
+ } else if (o.$ === "End") {
67
+ let s = e.phase, n = e.owner, l = e.holds, r = e.calls;
68
+ if (r === 0n) {
69
+ let d = e.revoked;
70
+ return { $: "Outcome", next: { $: "Life", phase: s, owner: n, holds: l, calls: 0n, revoked: d }, command: { $: "Denied" } };
71
+ } else {
72
+ let d = r - 1n, t = e.revoked;
73
+ return { $: "Outcome", next: { $: "Life", phase: s, owner: n, holds: l, calls: d, revoked: t }, command: { $: "Granted" } };
74
+ }
75
+ } else if (o.$ === "Close") {
76
+ let s = e.phase;
77
+ if (s.$ === "Retiring") {
78
+ let n = e.owner;
79
+ if (n) {
80
+ let l = e.holds, r = e.calls, d = e.revoked;
81
+ return { $: "Outcome", next: { $: "Life", phase: { $: "Retiring" }, owner: n, holds: l, calls: r, revoked: d }, command: { $: "Denied" } };
82
+ } else {
83
+ let l = e.holds;
84
+ if (l === 0n) {
85
+ let r = e.calls;
86
+ if (r === 0n) {
87
+ let d = e.revoked;
88
+ return { $: "Outcome", next: { $: "Life", phase: { $: "Closing" }, owner: !1, holds: 0n, calls: 0n, revoked: d }, command: { $: "StartClose" } };
89
+ } else {
90
+ let d = r - 0n, t = e.revoked;
91
+ return { $: "Outcome", next: { $: "Life", phase: { $: "Retiring" }, owner: !1, holds: 0n, calls: d, revoked: t }, command: { $: "Denied" } };
92
+ }
93
+ } else {
94
+ let r = l - 0n, d = e.calls, t = e.revoked;
95
+ return { $: "Outcome", next: { $: "Life", phase: { $: "Retiring" }, owner: !1, holds: r, calls: d, revoked: t }, command: { $: "Denied" } };
96
+ }
97
+ }
98
+ } else {
99
+ let n = e.owner, l = e.holds, r = e.calls, d = e.revoked;
100
+ return { $: "Outcome", next: { $: "Life", phase: s, owner: n, holds: l, calls: r, revoked: d }, command: { $: "Denied" } };
101
+ }
102
+ } else if (o.$ === "Complete") {
103
+ let s = e.phase;
104
+ if (s.$ === "Closing") {
105
+ let n = e.owner, l = e.holds, r = e.calls, d = e.revoked;
106
+ return { $: "Outcome", next: { $: "Life", phase: { $: "Closed" }, owner: n, holds: l, calls: r, revoked: d }, command: { $: "Granted" } };
107
+ } else {
108
+ let n = e.owner, l = e.holds, r = e.calls, d = e.revoked;
109
+ return { $: "Outcome", next: { $: "Life", phase: s, owner: n, holds: l, calls: r, revoked: d }, command: { $: "Denied" } };
110
+ }
111
+ } else if (e.phase.$ === "Closed") {
112
+ let s = e.owner, n = e.holds, l = e.calls, r = e.revoked;
113
+ return { $: "Outcome", next: { $: "Life", phase: { $: "Closed" }, owner: s, holds: n, calls: l, revoked: r }, command: { $: "Denied" } };
114
+ } else {
115
+ let s = e.owner, n = e.holds, l = e.calls, r = e.revoked;
116
+ return { $: "Outcome", next: { $: "Life", phase: { $: "Failed" }, owner: !1, holds: n, calls: l, revoked: !0 }, command: { $: "Granted" } };
117
+ }
118
+ }
119
+ function p(o, e) {
120
+ return o ? { $: "Outcome", next: e, command: { $: "Granted" } } : { $: "Outcome", next: e, command: { $: "Denied" } };
121
+ }
122
+ function $(o, e, s) {
123
+ if (o.$ === "Closing" || o.$ === "Closed")
124
+ return !1;
125
+ if (o.$ === "Failed")
126
+ return s;
127
+ {
128
+ let n = a(L(e));
129
+ return s || n;
130
+ }
131
+ }
132
+ function m(o) {
133
+ return o.$ === "Staged" ? { $: "Retiring" } : o.$ === "Active" ? { $: "Retiring" } : o;
134
+ }
135
+ function x(o, e) {
136
+ if (o) {
137
+ let s = e.phase, n = e.owner, l = e.holds, r = e.calls, d = e.revoked;
138
+ return { $: "Outcome", next: { $: "Life", phase: s, owner: n, holds: h(l + 1n), calls: r, revoked: d }, command: { $: "Granted" } };
139
+ } else
140
+ return { $: "Outcome", next: e, command: { $: "Denied" } };
141
+ }
142
+ function O(o, e) {
143
+ if (o) {
144
+ let s = e.phase, n = e.owner, l = e.holds, r = e.calls, d = e.revoked;
145
+ return { $: "Outcome", next: { $: "Life", phase: s, owner: n, holds: l, calls: h(r + 1n), revoked: d }, command: { $: "Granted" } };
146
+ } else
147
+ return { $: "Outcome", next: e, command: { $: "Denied" } };
148
+ }
149
+ function L(o) {
150
+ return !o;
151
+ }
152
+ var i = /* @__PURE__ */ u(k, 2);
153
+ export {
154
+ i as bindingStep
155
+ };
@@ -0,0 +1,54 @@
1
+ {
2
+ "version": 2,
3
+ "bend": "2.0.26",
4
+ "inputs": {
5
+ "LAWS.bend": "35b35834f9e2320177b77d9cd96a895223be7e12376c32e0280fc6e9dec59344",
6
+ "PROOF.bend": "d4b87f3cf71b3c5e5a227678d9eb5f4cb5e434e5c1dab90a11fc87a16dcd6b35",
7
+ "proofs/kernel.bend": "b133534909b37a6535579f048e818218634991827c656d8afb4d930cbb9048f2",
8
+ "proofs/resources.bend": "eb3dab9713cd207fa9f1a4a8eac66e31af55e084044c74e4b52f6b839d189e54",
9
+ "proofs/resource-spec.bend": "138753a6a7d3e935d3e2a3c8b0c651728a4ffd901002bae87fd72176ca495763",
10
+ "proofs/resource-proof.bend": "9cf67209abbf32e63af154638627058dbf93ade5e31fdac70623b1e8a766d996",
11
+ "proofs/abi.json": "091d6115b11caa8c16c6595aa034fc8d2ed1848680dae079b1253f9c1eb65c56",
12
+ "proofs/types.d.ts": "11971c9d19f2da0fcd888e8742297261616013718dba56512f2a8094544cc6e4",
13
+ "scripts/verified-kernels.mjs": "c5906fcaa1461f150c41c108dfe11b353c7f837f5a39ae90edcd22540c6463f5",
14
+ "proofs/state-plans.bend": "a5e543fd7d0dba8fd557a5723bf8def2d806dd254fa47ba90294f9e5c8eb0f38",
15
+ "proofs/state-spec.bend": "6c3abb07cbd04362f4f0d4fd9d6af6f8aa076d426fd21a88ddda766b28ab47af",
16
+ "proofs/state-proof.bend": "686956227c9666b21214398df1d63a4e716ee7f85495985b1201169590714647",
17
+ "proofs/state-kernel.bend": "4022f81761234f8c69ca949414b53a5a4c6e36b97ccafef45897a7d5383da977",
18
+ "proofs/provider-plans.bend": "9c4879f194d30260bd113c73ae4506cb63085f0dcb3221722cea81d2bafe9ddf",
19
+ "proofs/provider-spec.bend": "dd44d1580ba0c27b90a1c8a459666210555f059fed561a0c0facce97fb801c37",
20
+ "proofs/provider-kernel.bend": "e6d948e4379ff659d2f98678d5cf1ab32ca25a4f567a7fa926c5a5739bb90bb3",
21
+ "proofs/provider-abi.json": "785ce1648363dba0fccd81d350596c13cd3c5f332c23b1a1c7a365b5912f3e19",
22
+ "proofs/provider-types.d.ts": "1c9ad5e6364f0920e653c071217ed839ad5010d04751d9c7b1663f80f84c0b96",
23
+ "proofs/lifecycle.bend": "1b84d62b3a0cc0ffa454981f8f8bb7bcd2bd32d0ed4c91c70dc24e7fad83238e",
24
+ "proofs/lifecycle-kernel.bend": "7448c066bdd87c8678757c42a5118d3682b68245d6d84c708961f50550c4bc98",
25
+ "proofs/lifecycle-spec.bend": "f4677fcf6f284d6ace21eb15c4f74ffb19d6e433f14214e7448726722478f651",
26
+ "proofs/lifecycle-proof.bend": "29f5469e47a7c9e6dab967f3f944aeb60176e26d72cffb0aca24635050c13160",
27
+ "proofs/lifecycle-abi.json": "fbfba49b8126099e103d198ce4d5721cdcb7a95882526a9d22293a58efd50ad8",
28
+ "proofs/lifecycle-types.d.ts": "21481c2928e78530a918d3e2f3ee06c91ce476de9b48f1b77f6eb35206fcc839",
29
+ "proofs/authority-state.bend": "bea4873607480462ad1fa1920577e506a12d7a8114a9ce36b6ca9e489512d349",
30
+ "proofs/authority-spec.bend": "ac68a6f523e5da67a031b79a2127c6cc408d1b654a8fc9ccdab79aba1752ba23",
31
+ "proofs/authority-proof.bend": "454251e86f03a78d16e767f596130d1ca6c770b864b7739b7f3d3942b06599e1",
32
+ "proofs/authority-kernel.bend": "b4940f3ba3989162fd028517225bf7d128f286539982c23bc9841d68c6383f2a",
33
+ "proofs/authority-abi.json": "000d2b23f0609062ae3db4fc41272c8d9bc1d1a639fa057a53b55365cadcd391",
34
+ "proofs/authority-types.d.ts": "89284553a538ebc7221ff2511bfb63ec54d02776a0bead7c8e32480c4536b6fc",
35
+ "proofs/storage-plans.bend": "c2e208ff907548630dd8a702e007c67cdc2d17dc572da6aa079d24d34ac57c28",
36
+ "proofs/storage-spec.bend": "6b388fc80d01fd04febc89098a781a532f6620cebeac8570044567aaa6121f77",
37
+ "proofs/storage-proof.bend": "6c6c95073c4612bd95f26f841afa1f7cddc19cf956d7fc001f5d5832c03ce397",
38
+ "proofs/storage-kernel.bend": "e0abe2922bd02ff247f3cebd1351b852e9100ada10f28c378ed080149942ef95",
39
+ "proofs/storage-abi.json": "72014f2cde8f4808f4b6de90eb320392ccc8c0d998e784e440e9d60307e7d566",
40
+ "proofs/storage-types.d.ts": "8839e20bc32ddc51a3588203e114632213759e918bb14ffeabfa790f48e8709d"
41
+ },
42
+ "outputs": {
43
+ "src/verified/generated/storage-kernel.js": "e56b5e713eaaca4d7e6897984b171af2237285d46cae70fff8f6069caaac10ca",
44
+ "src/verified/generated/storage-kernel.d.ts": "da39a156ecb47905c7ad2b4ee87d79f3015329a0af5f163aaa1ca6537b56456f",
45
+ "src/verified/generated/authority-kernel.js": "c02ea77087639876eb6d133cb4c3f9268499021b790367b239113dc3a6cb1c5a",
46
+ "src/verified/generated/authority-kernel.d.ts": "31dcd654066820aa717433db9835bb394f19dd6d0f88f89b163eed1a1d71a486",
47
+ "src/verified/generated/lifecycle-kernel.js": "bfdc3d6eabe29104b9946a6f5140f4ea9f7c61ff6391fa6bb10c7835def64451",
48
+ "src/verified/generated/lifecycle-kernel.d.ts": "94c16e66e3769fd9c5dc9ecd316e7ba61ee8b100520243644dc99cc3c9372347",
49
+ "src/verified/generated/kernel.js": "0af5118114e52a7a24ffd71907c105d677caff411d8d40caa8ad4adc08e968e2",
50
+ "src/verified/generated/kernel.d.ts": "63037ee8248cdf550b0145d11957936d040196d5e687482c0bbac7b810619e35",
51
+ "src/verified/generated/provider-kernel.js": "c4a99b5cd49971fb3486804e9bc855a4edce01eded9c6ceebefced61305fce36",
52
+ "src/verified/generated/provider-kernel.d.ts": "fa5593cfd7cd6bab3af052048d3102fd2ea415aadcbec03e36cc9328b68ceabc"
53
+ }
54
+ }
@@ -0,0 +1,9 @@
1
+ // Generated ABI declarations; see proofs/provider-abi.json.
2
+ export type StateText = { $: "Nil" } | { $: "Con"; head: bigint; tail: StateText };
3
+ export interface StateGrant { $: "Grant"; active: boolean; key: StateText }
4
+ export type StatePlan = { $: "Denied" } | { $: "Read"; key: StateText } | { $: "Write"; key: StateText; expected: StateText; value: StateText };
5
+ export interface ProviderTicket { $: "Ticket"; grant: StateGrant; expected: StateText; payload: StateText }
6
+ export interface ProviderOutcome { $: "Outcome"; next: ProviderTicket; plan: StatePlan }
7
+
8
+ export declare function providerTake(ticket: ProviderTicket, key: StateText, observed: StateText, stopped: boolean): ProviderOutcome;
9
+ export declare function providerRevoke(ticket: ProviderTicket): ProviderTicket;
@@ -0,0 +1,80 @@
1
+ // Generated by Bend 2.0.26; do not edit. See LAWS.bend and PROOF.bend.
2
+ // Includes adapted Bend runtime/Base code, Copyright 2026 HigherOrderCO, Apache-2.0.
3
+ // CLI removed and exports added by Pi Fabric; see THIRD_PARTY_NOTICES.md.
4
+ function f(e, t) {
5
+ return { $: e < t ? "LT" : e === t ? "EQ" : "GT" };
6
+ }
7
+ function u(e, t) {
8
+ return { $: "$JMP", f: e, x: t };
9
+ }
10
+ function $(e) {
11
+ for (; e !== null && typeof e == "object" && e.$ === "$JMP"; )
12
+ e = e.f(...e.x);
13
+ return e;
14
+ }
15
+ function p(e, t) {
16
+ return (...n) => n.length < t ? p((...r) => e(...n, ...r), t - n.length) : $(e(...n));
17
+ }
18
+ function v(e, t, n, r) {
19
+ return u(k, [e, t, n, r]);
20
+ }
21
+ function s(e) {
22
+ return u(g, [e]);
23
+ }
24
+ function k(e, t, n, r) {
25
+ let o = e.grant, a = e.expected, i = e.payload;
26
+ return { $: "Outcome", next: { $: "Ticket", grant: $(d(o)), expected: a, payload: i }, plan: $(h(o, t, a, n, i, r)) };
27
+ }
28
+ function g(e) {
29
+ let t = e.grant, n = e.expected, r = e.payload;
30
+ return { $: "Ticket", grant: $(d(t)), expected: n, payload: r };
31
+ }
32
+ function d(e) {
33
+ let t = e.active;
34
+ return { $: "Grant", active: !1, key: e.key };
35
+ }
36
+ function h(e, t, n, r, o, a) {
37
+ return u(x, [$(l($(T(e, t, a)), $(c(n, r, !0)))), t, n, o]);
38
+ }
39
+ function x(e, t, n, r) {
40
+ return e ? { $: "Write", key: t, expected: n, value: r } : { $: "Denied" };
41
+ }
42
+ function l(e, t) {
43
+ return e ? t : !1;
44
+ }
45
+ function T(e, t, n) {
46
+ let r = e.active, o = e.key;
47
+ return u(l, [r, $(l($(m(n)), $(c(o, t, !0))))]);
48
+ }
49
+ function c(e, t, n) {
50
+ if (e.$ === "Nil") {
51
+ if (t.$ === "Nil")
52
+ return n;
53
+ {
54
+ let r = t.head, o = t.tail;
55
+ return !1;
56
+ }
57
+ } else {
58
+ let r = e.head, o = e.tail;
59
+ if (t.$ === "Nil")
60
+ return !1;
61
+ {
62
+ let a = t.head, i = t.tail;
63
+ return u(c, [o, i, $(l(n, $(y(r, a))))]);
64
+ }
65
+ }
66
+ }
67
+ function m(e) {
68
+ return !e;
69
+ }
70
+ function y(e, t) {
71
+ return u(N, [f(e, t)]);
72
+ }
73
+ function N(e) {
74
+ return e.$ === "LT" ? !1 : e.$ === "EQ";
75
+ }
76
+ var b = /* @__PURE__ */ p(v, 4), w = /* @__PURE__ */ p(s, 1);
77
+ export {
78
+ w as providerRevoke,
79
+ b as providerTake
80
+ };
@@ -0,0 +1,11 @@
1
+ // Generated ABI declarations; see proofs/storage-abi.json.
2
+ export type StorageText = { $: "Nil" } | { $: "Con"; head: bigint; tail: StorageText };
3
+ /** Canonical radix-2^32 limbs: high <= 2^21-1, low <= 2^32-1. */
4
+ export interface StorageRevision { $: "Revision"; high: bigint; low: bigint }
5
+ export type StorageExpectation = { $: "Any" } | { $: "At"; version: StorageRevision };
6
+ export type StorageChange = { $: "Put"; value: StorageText; identity: StorageText } | { $: "Delete" };
7
+ export interface StorageRequest { $: "Request"; key: StorageText; expected: StorageExpectation; change: StorageChange }
8
+ export interface StorageSlot { $: "Slot"; present: boolean; version: StorageRevision; highWater: StorageRevision }
9
+ export type StoragePlan = { $: "Conflict" } | { $: "Exhausted" } | { $: "Unchanged" } | { $: "PutNext"; key: StorageText; value: StorageText; identity: StorageText; version: StorageRevision; highWater: StorageRevision } | { $: "DeleteNext"; key: StorageText; version: StorageRevision; highWater: StorageRevision };
10
+
11
+ export declare function storageTransition(request: StorageRequest, slot: StorageSlot): StoragePlan;