@almadar/std 17.0.2 → 17.1.0

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 (317) hide show
  1. package/behaviors/lolo/auth/atoms/std-dev-personas.lolo +27 -2
  2. package/behaviors/lolo/cli/atoms/std-orb-goldens.lolo +6 -3
  3. package/behaviors/lolo/cli/atoms/std-orb-lint-mem-handles.lolo +54 -34
  4. package/behaviors/lolo/cli/atoms/std-orb-lint-os-grants.lolo +4 -4
  5. package/behaviors/lolo/cli/atoms/std-orb-mcp.lolo +16 -21
  6. package/behaviors/lolo/cli/atoms/std-orb-packages.lolo +26 -16
  7. package/behaviors/lolo/cli/atoms/std-orb-serve.lolo +24 -4
  8. package/behaviors/lolo/codec/atoms/std-lolo-kotlin.lolo +26 -3
  9. package/behaviors/lolo/codec/atoms/std-lolo-python.lolo +15 -2
  10. package/behaviors/lolo/codec/atoms/std-lolo-rust.lolo +27 -2
  11. package/behaviors/lolo/codec/atoms/std-lolo-source.lolo +251 -60
  12. package/behaviors/lolo/codec/atoms/std-lolo-swift.lolo +24 -1
  13. package/behaviors/lolo/codec/atoms/std-lolo-typescript.lolo +24 -3
  14. package/behaviors/lolo/connect/atoms/std-meta-ads.lolo +4 -4
  15. package/behaviors/lolo/connect/atoms/std-stdio-lines.lolo +7 -4
  16. package/behaviors/lolo/connect/atoms/std-youtube.lolo +9 -9
  17. package/behaviors/lolo/dev/atoms/std-guest-session.lolo +122 -10
  18. package/behaviors/lolo/dev/atoms/std-mock-seed-marks.lolo +66 -0
  19. package/behaviors/lolo/dev/organisms/std-behavior-playground.lolo +5 -2
  20. package/behaviors/lolo/dev/organisms/std-launchpad.lolo +4 -3
  21. package/behaviors/lolo/gpu/atoms/std-gpu-compute.lolo +329 -0
  22. package/behaviors/lolo/net/atoms/std-http-client.lolo +4 -4
  23. package/behaviors/lolo/net/atoms/std-http-fetch.lolo +6 -6
  24. package/behaviors/lolo/net/atoms/std-npm-lookup.lolo +1 -1
  25. package/behaviors/lolo/net/atoms/std-npm-registry.lolo +2 -2
  26. package/behaviors/lolo/spec/auth/dev-personas.replay.goldens.json +263 -2
  27. package/behaviors/lolo/spec/cli/lint-all.lolo +1 -0
  28. package/behaviors/lolo/spec/cli/lint-item-action-event.replay.goldens.json +9 -9
  29. package/behaviors/lolo/spec/cli/lint-mem-handles.replay.goldens.json +3021 -1
  30. package/behaviors/lolo/spec/cli/lint-os-grants.replay.goldens.json +284 -12
  31. package/behaviors/lolo/spec/cli/mcp-server.replay.goldens.json +51 -55
  32. package/behaviors/lolo/spec/cli/orb-compile.replay.goldens.json +10 -4
  33. package/behaviors/lolo/spec/cli/orb-packages.lolo +1 -1
  34. package/behaviors/lolo/spec/codec/lolo-kotlin.replay.goldens.json +7496 -7497
  35. package/behaviors/lolo/spec/codec/lolo-python.replay.goldens.json +341 -3
  36. package/behaviors/lolo/spec/codec/lolo-rust.replay.goldens.json +18931 -6142
  37. package/behaviors/lolo/spec/codec/lolo-source.fixtures/compose-pair.lolo +44 -0
  38. package/behaviors/lolo/spec/codec/lolo-source.fixtures/config-read.lolo +2 -1
  39. package/behaviors/lolo/spec/codec/lolo-source.fixtures/divide-default.lolo +2 -1
  40. package/behaviors/lolo/spec/codec/lolo-source.fixtures/divide-plain.lolo +2 -1
  41. package/behaviors/lolo/spec/codec/lolo-source.fixtures/get-past-end.lolo +2 -1
  42. package/behaviors/lolo/spec/codec/lolo-source.fixtures/list-call.lolo +2 -1
  43. package/behaviors/lolo/spec/codec/lolo-source.fixtures/list-plain.lolo +2 -1
  44. package/behaviors/lolo/spec/codec/lolo-source.fixtures/minus-binary.lolo +2 -1
  45. package/behaviors/lolo/spec/codec/lolo-source.fixtures/minus-unary.lolo +2 -1
  46. package/behaviors/lolo/spec/codec/lolo-source.fixtures/nested-let.lolo +2 -1
  47. package/behaviors/lolo/spec/codec/lolo-source.fixtures/no-machine.lolo +2 -1
  48. package/behaviors/lolo/spec/codec/lolo-source.fixtures/no-template.lolo +2 -1
  49. package/behaviors/lolo/spec/codec/lolo-source.fixtures/nth-past-end.lolo +2 -1
  50. package/behaviors/lolo/spec/codec/lolo-source.fixtures/nth-raw.lolo +2 -1
  51. package/behaviors/lolo/spec/codec/lolo-source.fixtures/ports-call.lolo +2 -1
  52. package/behaviors/lolo/spec/codec/lolo-source.fixtures/range-one.lolo +2 -1
  53. package/behaviors/lolo/spec/codec/lolo-source.fixtures/range-two.lolo +2 -1
  54. package/behaviors/lolo/spec/codec/lolo-source.fixtures/router-trio.lolo +88 -0
  55. package/behaviors/lolo/spec/codec/lolo-source.fixtures/store-pair.lolo +62 -0
  56. package/behaviors/lolo/spec/codec/lolo-source.fixtures/string-literal.lolo +2 -1
  57. package/behaviors/lolo/spec/codec/lolo-source.gen/knobs.py +27 -1
  58. package/behaviors/lolo/spec/codec/lolo-source.gen/src_assemble.in +54 -2
  59. package/behaviors/lolo/spec/codec/lolo-source.gen/src_finish.in +1 -1
  60. package/behaviors/lolo/spec/codec/lolo-source.gen/src_fold.in +24 -4
  61. package/behaviors/lolo/spec/codec/lolo-source.gen/src_head.in +8 -3
  62. package/behaviors/lolo/spec/codec/lolo-source.gen/src_prepare.in +6 -2
  63. package/behaviors/lolo/spec/codec/lolo-source.gen/src_trait.in +12 -2
  64. package/behaviors/lolo/spec/codec/lolo-source.parity/agent-step.lolo +2 -1
  65. package/behaviors/lolo/spec/codec/lolo-source.parity/agent-step.server.lolo +1 -0
  66. package/behaviors/lolo/spec/codec/lolo-source.parity/chunk.lolo +2 -1
  67. package/behaviors/lolo/spec/codec/lolo-source.parity/chunk.server.lolo +1 -0
  68. package/behaviors/lolo/spec/codec/lolo-source.parity/compose-pair.events.json +36 -0
  69. package/behaviors/lolo/spec/codec/lolo-source.parity/compose-pair.replay.goldens.json +91 -0
  70. package/behaviors/lolo/spec/codec/lolo-source.parity/cosine.lolo +2 -1
  71. package/behaviors/lolo/spec/codec/lolo-source.parity/cosine.server.lolo +1 -0
  72. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/kotlin/compose-pair.kt +31 -0
  73. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/kotlin/router-trio.kt +31 -0
  74. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/kotlin/store-pair.kt +31 -0
  75. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/python/compose-pair.py +18 -0
  76. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/python/router-trio.py +18 -0
  77. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/python/store-pair.py +17 -0
  78. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/rust/compose-pair.rs +37 -0
  79. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/rust/router-trio.rs +37 -0
  80. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/rust/store-pair.rs +36 -0
  81. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/swift/compose-pair.swift +24 -0
  82. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/swift/router-trio.swift +24 -0
  83. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/swift/store-pair.swift +23 -0
  84. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/typescript/compose-pair.mts +24 -0
  85. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/typescript/router-trio.mts +24 -0
  86. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/typescript/store-pair.mts +22 -0
  87. package/behaviors/lolo/spec/codec/lolo-source.parity/recall-at-k.lolo +2 -1
  88. package/behaviors/lolo/spec/codec/lolo-source.parity/recall-at-k.server.lolo +1 -0
  89. package/behaviors/lolo/spec/codec/lolo-source.parity/router-trio.events.json +18 -0
  90. package/behaviors/lolo/spec/codec/lolo-source.parity/router-trio.replay.goldens.json +87 -0
  91. package/behaviors/lolo/spec/codec/lolo-source.parity/store-pair.events.json +58 -0
  92. package/behaviors/lolo/spec/codec/lolo-source.parity/store-pair.replay.goldens.json +238 -0
  93. package/behaviors/lolo/spec/codec/lolo-swift.replay.goldens.json +15599 -2204
  94. package/behaviors/lolo/spec/codec/lolo-typescript.replay.goldens.json +28930 -28929
  95. package/behaviors/lolo/spec/connect/bearer-api.replay.goldens.json +1 -1
  96. package/behaviors/lolo/spec/connect/esign.replay.goldens.json +3 -3
  97. package/behaviors/lolo/spec/connect/github.replay.goldens.json +13 -13
  98. package/behaviors/lolo/spec/connect/google-calendar.replay.goldens.json +2 -2
  99. package/behaviors/lolo/spec/connect/image.replay.goldens.json +1 -1
  100. package/behaviors/lolo/spec/connect/meta-ads.replay.goldens.json +2 -2
  101. package/behaviors/lolo/spec/connect/stdio-lines.replay.goldens.json +90 -0
  102. package/behaviors/lolo/spec/connect/twilio.replay.goldens.json +2 -2
  103. package/behaviors/lolo/spec/connect/youtube.replay.goldens.json +1 -1
  104. package/behaviors/lolo/spec/dev/guest-session.replay.goldens.json +824 -0
  105. package/behaviors/lolo/spec/dev/mock-seed-marks.replay.goldens.json +365 -0
  106. package/behaviors/lolo/spec/dev/verify-walk.replay.goldens.json +2 -1
  107. package/behaviors/lolo/spec/gpu/gpu-compute.replay.goldens.json +784 -0
  108. package/behaviors/lolo/spec/mem/mem-buffer.replay.goldens.json +97 -1
  109. package/behaviors/lolo/spec/ml/vector-write.goldens.json +1 -1
  110. package/behaviors/lolo/spec/ml/vector-write.replay.goldens.json +2 -2
  111. package/behaviors/lolo/spec/net/http-client-call-host.replay.goldens.json +3 -3
  112. package/behaviors/lolo/spec/net/http-client-env-host.replay.goldens.json +3 -3
  113. package/behaviors/lolo/spec/net/http-client.replay.goldens.json +56 -56
  114. package/behaviors/lolo/spec/net/http-fetch.replay.goldens.json +2 -2
  115. package/behaviors/lolo/spec/net/npm-lookup.replay.goldens.json +1 -1
  116. package/behaviors/lolo/spec/net/npm-registry.replay.goldens.json +2 -2
  117. package/behaviors/lolo/spec/net/server-declared-traits.replay.goldens.json +6 -3
  118. package/behaviors/lolo/spec/net/server-external-inputs.replay.goldens.json +16 -8
  119. package/behaviors/lolo/spec/net/server-retargeted-leg.replay.goldens.json +4 -2
  120. package/behaviors/lolo/spec/net/server-untargeted-discovery.replay.goldens.json +50 -45
  121. package/behaviors/lolo/spec/ops/llm-spend-board.replay.goldens.json +112 -16
  122. package/behaviors/lolo/spec/store/firestore-twin.replay.goldens.json +1 -1
  123. package/behaviors/lolo/spec/store/row-store-postgres.gen/record_real_sql.py +1 -1
  124. package/behaviors/lolo/spec/ui/game/fx-particles.replay.goldens.json +37 -0
  125. package/behaviors/lolo/ui/avl/atoms/std-avl-cosmic-zoom.lolo +2 -2
  126. package/behaviors/lolo/ui/game/atoms/std-fx-particles.lolo +10 -1
  127. package/behaviors/lolo/ui/game/atoms/ui-draw-fx-layer.lolo +4 -4
  128. package/behaviors/lolo/ui/game/organisms/std-arcade-board-3d.lolo +9 -9
  129. package/behaviors/lolo/ui/game/organisms/std-crew-board-2d.lolo +4 -4
  130. package/behaviors/lolo/ui/game/organisms/std-dungeon-board-2d.lolo +5 -5
  131. package/behaviors/lolo/ui/game/organisms/std-market-board-3d.lolo +9 -9
  132. package/behaviors/lolo/ui/game/organisms/std-objective-board-3d.lolo +9 -9
  133. package/behaviors/lolo/ui/game/organisms/std-platformer-board-2d.lolo +5 -5
  134. package/behaviors/lolo/ui/game/organisms/std-platformer-puzzle.lolo +4 -4
  135. package/behaviors/lolo/ui/game/organisms/std-survival-board-3d.lolo +9 -9
  136. package/behaviors/lolo/ui/game/organisms/std-tactics-board-2d.lolo +5 -5
  137. package/behaviors/lolo/ui/game/organisms/std-tactics-board-3d.lolo +9 -9
  138. package/behaviors/registry/auth/atoms/std-dev-personas.orb +1 -1
  139. package/behaviors/registry/cli/atoms/std-orb-goldens.orb +1 -1
  140. package/behaviors/registry/cli/atoms/std-orb-lint-mem-handles.orb +1 -1
  141. package/behaviors/registry/cli/atoms/std-orb-lint-os-grants.orb +1 -1
  142. package/behaviors/registry/cli/atoms/std-orb-mcp.orb +1 -1
  143. package/behaviors/registry/cli/atoms/std-orb-packages.orb +1 -1
  144. package/behaviors/registry/cli/atoms/std-orb-serve.orb +1 -1
  145. package/behaviors/registry/codec/atoms/std-lolo-kotlin.orb +1 -1
  146. package/behaviors/registry/codec/atoms/std-lolo-python.orb +1 -1
  147. package/behaviors/registry/codec/atoms/std-lolo-rust.orb +1 -1
  148. package/behaviors/registry/codec/atoms/std-lolo-source.orb +1 -1
  149. package/behaviors/registry/codec/atoms/std-lolo-swift.orb +1 -1
  150. package/behaviors/registry/codec/atoms/std-lolo-typescript.orb +1 -1
  151. package/behaviors/registry/connect/atoms/std-meta-ads.orb +1 -1
  152. package/behaviors/registry/connect/atoms/std-stdio-lines.orb +1 -1
  153. package/behaviors/registry/connect/atoms/std-youtube.orb +1 -1
  154. package/behaviors/registry/dev/atoms/std-guest-session.orb +1 -1
  155. package/behaviors/registry/dev/atoms/std-mock-seed-marks.orb +1 -0
  156. package/behaviors/registry/dev/organisms/std-behavior-playground.orb +37 -0
  157. package/behaviors/registry/dev/organisms/std-launchpad.orb +25 -0
  158. package/behaviors/registry/gpu/atoms/std-gpu-compute.orb +1 -0
  159. package/behaviors/registry/net/atoms/std-http-client.orb +1 -1
  160. package/behaviors/registry/net/atoms/std-http-fetch.orb +1 -1
  161. package/behaviors/registry/net/atoms/std-npm-lookup.orb +1 -1
  162. package/behaviors/registry/net/atoms/std-npm-registry.orb +1 -1
  163. package/behaviors/registry/spec/cli/lint-all.orb +1 -1
  164. package/behaviors/registry/spec/cli/orb-packages.orb +1 -1
  165. package/behaviors/registry/spec/codec/lolo-source.fixtures/compose-pair.orb +1 -0
  166. package/behaviors/registry/spec/codec/lolo-source.fixtures/config-read.orb +1 -1
  167. package/behaviors/registry/spec/codec/lolo-source.fixtures/divide-default.orb +1 -1
  168. package/behaviors/registry/spec/codec/lolo-source.fixtures/divide-plain.orb +1 -1
  169. package/behaviors/registry/spec/codec/lolo-source.fixtures/get-past-end.orb +1 -1
  170. package/behaviors/registry/spec/codec/lolo-source.fixtures/list-call.orb +1 -1
  171. package/behaviors/registry/spec/codec/lolo-source.fixtures/list-plain.orb +1 -1
  172. package/behaviors/registry/spec/codec/lolo-source.fixtures/minus-binary.orb +1 -1
  173. package/behaviors/registry/spec/codec/lolo-source.fixtures/minus-unary.orb +1 -1
  174. package/behaviors/registry/spec/codec/lolo-source.fixtures/nested-let.orb +1 -1
  175. package/behaviors/registry/spec/codec/lolo-source.fixtures/no-machine.orb +1 -1
  176. package/behaviors/registry/spec/codec/lolo-source.fixtures/no-template.orb +1 -1
  177. package/behaviors/registry/spec/codec/lolo-source.fixtures/nth-past-end.orb +1 -1
  178. package/behaviors/registry/spec/codec/lolo-source.fixtures/nth-raw.orb +1 -1
  179. package/behaviors/registry/spec/codec/lolo-source.fixtures/ports-call.orb +1 -1
  180. package/behaviors/registry/spec/codec/lolo-source.fixtures/range-one.orb +1 -1
  181. package/behaviors/registry/spec/codec/lolo-source.fixtures/range-two.orb +1 -1
  182. package/behaviors/registry/spec/codec/lolo-source.fixtures/router-trio.orb +1 -0
  183. package/behaviors/registry/spec/codec/lolo-source.fixtures/store-pair.orb +1 -0
  184. package/behaviors/registry/spec/codec/lolo-source.fixtures/string-literal.orb +1 -1
  185. package/behaviors/registry/spec/codec/lolo-source.parity/agent-step.orb +1 -1
  186. package/behaviors/registry/spec/codec/lolo-source.parity/agent-step.server.orb +1 -1
  187. package/behaviors/registry/spec/codec/lolo-source.parity/chunk.orb +1 -1
  188. package/behaviors/registry/spec/codec/lolo-source.parity/chunk.server.orb +1 -1
  189. package/behaviors/registry/spec/codec/lolo-source.parity/cosine.orb +1 -1
  190. package/behaviors/registry/spec/codec/lolo-source.parity/cosine.server.orb +1 -1
  191. package/behaviors/registry/spec/codec/lolo-source.parity/recall-at-k.orb +1 -1
  192. package/behaviors/registry/spec/codec/lolo-source.parity/recall-at-k.server.orb +1 -1
  193. package/behaviors/registry/ui/avl/atoms/std-avl-cosmic-zoom.orb +1 -1
  194. package/behaviors/registry/ui/game/atoms/std-fx-particles.orb +1 -1
  195. package/behaviors/registry/ui/game/atoms/ui-draw-fx-layer.orb +1 -1
  196. package/behaviors/registry/ui/game/organisms/std-arcade-board-3d.orb +20 -13
  197. package/behaviors/registry/ui/game/organisms/std-crew-board-2d.orb +9 -5
  198. package/behaviors/registry/ui/game/organisms/std-dungeon-board-2d.orb +17 -7
  199. package/behaviors/registry/ui/game/organisms/std-market-board-3d.orb +19 -15
  200. package/behaviors/registry/ui/game/organisms/std-objective-board-3d.orb +15 -12
  201. package/behaviors/registry/ui/game/organisms/std-platformer-board-2d.orb +17 -7
  202. package/behaviors/registry/ui/game/organisms/std-platformer-puzzle.orb +4 -0
  203. package/behaviors/registry/ui/game/organisms/std-survival-board-3d.orb +15 -12
  204. package/behaviors/registry/ui/game/organisms/std-tactics-board-2d.orb +13 -6
  205. package/behaviors/registry/ui/game/organisms/std-tactics-board-3d.orb +14 -12
  206. package/canonical-operators.json +1426 -103
  207. package/dist/{chunk-EK22WRB6.js → chunk-2UGHBVU2.js} +2 -2
  208. package/dist/{chunk-GDMH5T4J.js → chunk-3DK7GI2C.js} +2 -2
  209. package/dist/chunk-3MDASC5C.js +26 -0
  210. package/dist/{chunk-K5ZI27PB.js → chunk-3PHO4RRF.js} +1 -1
  211. package/dist/{chunk-7IEMMYM6.js → chunk-4MJCLAZW.js} +1 -1
  212. package/dist/{chunk-W4IEV4BY.js → chunk-55JPIL7A.js} +2 -2
  213. package/dist/{chunk-RUGBZTV3.js → chunk-66BLZLFI.js} +1 -1
  214. package/dist/{chunk-YWFISV7L.js → chunk-66RAJFOD.js} +1 -1
  215. package/dist/{chunk-JWOWWGNZ.js → chunk-6ED4SUC6.js} +1 -1
  216. package/dist/{chunk-LL7P6EII.js → chunk-6KFCHNE2.js} +2 -2
  217. package/dist/{chunk-GFBL2TW6.js → chunk-A4QB3Y6L.js} +1 -1
  218. package/dist/chunk-BVWMLS32.js +123 -0
  219. package/dist/{chunk-5KQCGSNC.js → chunk-CRKVDCY7.js} +1 -1
  220. package/dist/{chunk-WHQDLLC3.js → chunk-EKWEY4OJ.js} +1 -1
  221. package/dist/{chunk-Y3BRVNYK.js → chunk-EU22GCGV.js} +2 -2
  222. package/dist/{chunk-XQPYTDZ4.js → chunk-FB6PKNRS.js} +1 -1
  223. package/dist/{chunk-UX3MDFX6.js → chunk-FSVOJQLP.js} +1 -1
  224. package/dist/{chunk-LDBD2FBQ.js → chunk-GAKLBWBR.js} +1 -1
  225. package/dist/{chunk-C3IEMPRZ.js → chunk-GO3FKBV2.js} +2 -2
  226. package/dist/{chunk-LZSPEHSM.js → chunk-GPDTJHYY.js} +1 -1
  227. package/dist/{chunk-W5ABMOXU.js → chunk-JQBWLH5V.js} +1 -1
  228. package/dist/{chunk-63X6RNY6.js → chunk-KKW3JHTC.js} +1 -1
  229. package/dist/{chunk-5PLJE42Q.js → chunk-LF2EZVAM.js} +1 -1
  230. package/dist/{chunk-RXWBYWQB.js → chunk-LGCKOZP3.js} +2 -2
  231. package/dist/{chunk-JJEADYP7.js → chunk-LMZ6XJFB.js} +2 -2
  232. package/dist/{chunk-CWYSQZJU.js → chunk-M2YQNSAZ.js} +2 -2
  233. package/dist/{chunk-GNCKJV3P.js → chunk-MKWHYBIS.js} +1 -1
  234. package/dist/{chunk-ZB2CLGEG.js → chunk-MXBGYTYF.js} +1 -1
  235. package/dist/{chunk-UN76TRSK.js → chunk-NH6MXHZR.js} +41 -41
  236. package/dist/{chunk-II2VW7T6.js → chunk-ODBIX4DB.js} +1 -1
  237. package/dist/{chunk-3F3CNWOG.js → chunk-OYDQR6DT.js} +2 -2
  238. package/dist/{chunk-FVL6BT6L.js → chunk-PD6POR44.js} +1 -1
  239. package/dist/{chunk-U6USXZ5M.js → chunk-PHFT3QNS.js} +2 -2
  240. package/dist/{chunk-RJYKIZMS.js → chunk-PQZ6PVKG.js} +2 -2
  241. package/dist/{chunk-TQPQXCSZ.js → chunk-Q6NHXIOZ.js} +2 -2
  242. package/dist/{chunk-KYGWVCTM.js → chunk-QMDVYTB7.js} +1 -1
  243. package/dist/{chunk-XKTATY45.js → chunk-RW2KMSG5.js} +4 -4
  244. package/dist/{chunk-UHNSPTFT.js → chunk-SA2ZS24W.js} +1 -1
  245. package/dist/{chunk-6YPUQK36.js → chunk-SFWP4UMK.js} +2 -2
  246. package/dist/{chunk-ZZYLFHBU.js → chunk-TLNEQA4D.js} +1 -1
  247. package/dist/{chunk-RGTBRWWA.js → chunk-TOODE5AD.js} +2 -2
  248. package/dist/{chunk-QGWAHOFR.js → chunk-U57GY7SM.js} +2 -2
  249. package/dist/{chunk-FDJZKB7J.js → chunk-UIDQQJSX.js} +1 -1
  250. package/dist/{chunk-LLH3WXM3.js → chunk-UVFP2B7I.js} +1 -1
  251. package/dist/{chunk-4OF7727E.js → chunk-VEGZPCTZ.js} +2 -2
  252. package/dist/{chunk-73YUPNIT.js → chunk-VXN4V7LC.js} +1 -1
  253. package/dist/{chunk-4D3W6AAE.js → chunk-YHQVZWPG.js} +1 -1
  254. package/dist/{chunk-XXYBHYLM.js → chunk-YQO3TO66.js} +2 -2
  255. package/dist/{chunk-YZAYFR5A.js → chunk-ZSJ3GEOJ.js} +1 -1
  256. package/dist/index.d.ts +3 -3
  257. package/dist/index.js +50 -50
  258. package/dist/modules/anim.js +2 -2
  259. package/dist/modules/array.js +2 -2
  260. package/dist/modules/auth.js +3 -3
  261. package/dist/modules/behavior.js +2 -2
  262. package/dist/modules/bit.js +2 -2
  263. package/dist/modules/browser.js +2 -2
  264. package/dist/modules/bytes.js +2 -2
  265. package/dist/modules/codec.js +3 -3
  266. package/dist/modules/composition.js +2 -2
  267. package/dist/modules/core.js +2 -2
  268. package/dist/modules/csv.js +2 -2
  269. package/dist/modules/ffi.js +3 -3
  270. package/dist/modules/format.js +2 -2
  271. package/dist/modules/geo.js +2 -2
  272. package/dist/modules/gpu.d.ts +12 -0
  273. package/dist/modules/gpu.js +3 -0
  274. package/dist/modules/grid.js +2 -2
  275. package/dist/modules/i18n.js +2 -2
  276. package/dist/modules/index.d.ts +1 -2
  277. package/dist/modules/index.js +45 -46
  278. package/dist/modules/json.js +2 -2
  279. package/dist/modules/kernel.js +3 -3
  280. package/dist/modules/kv.js +3 -3
  281. package/dist/modules/llm.js +2 -2
  282. package/dist/modules/math.js +2 -2
  283. package/dist/modules/mem.js +3 -3
  284. package/dist/modules/object.js +2 -2
  285. package/dist/modules/os-common.d.ts +1 -1
  286. package/dist/modules/os-common.js +2 -2
  287. package/dist/modules/os-desktop.js +3 -3
  288. package/dist/modules/os-dev.js +3 -3
  289. package/dist/modules/os-dir.js +3 -3
  290. package/dist/modules/os-env-stdio.js +3 -3
  291. package/dist/modules/os-fs.js +3 -3
  292. package/dist/modules/os-net.js +3 -3
  293. package/dist/modules/os-path.js +3 -3
  294. package/dist/modules/os-process.js +3 -3
  295. package/dist/modules/os-sys.js +3 -3
  296. package/dist/modules/os-time-users.js +3 -3
  297. package/dist/modules/os.js +13 -13
  298. package/dist/modules/path.js +2 -2
  299. package/dist/modules/prob.js +2 -2
  300. package/dist/modules/program.js +2 -2
  301. package/dist/modules/session.js +2 -2
  302. package/dist/modules/str.js +2 -2
  303. package/dist/modules/time.js +2 -2
  304. package/dist/modules/validate.js +2 -2
  305. package/dist/modules/vector.js +2 -2
  306. package/dist/modules/workspace.js +2 -2
  307. package/dist/modules/xml.js +2 -2
  308. package/dist/modules/yaml.js +2 -2
  309. package/dist/registry.d.ts +2 -2
  310. package/dist/registry.js +49 -49
  311. package/dist/{types-BA4LkhNJ.d.ts → types-CgiGhK6t.d.ts} +17 -3
  312. package/package.json +5 -5
  313. package/dist/chunk-F5TP25JA.js +0 -26
  314. package/dist/chunk-NE4WSTN7.js +0 -26
  315. package/dist/modules/trace.d.ts +0 -15
  316. package/dist/modules/trace.js +0 -2
  317. /package/dist/{chunk-SHSBTDDX.js → chunk-QUQ33UXH.js} +0 -0
@@ -1 +1 @@
1
- {"typeContractVersion":1,"name":"agent-step-example","version":"1.0.0","orbitals":[{"name":"Agent","id":"orb_AM318BNMDCT6P5CPXCR0DRTAFG","entity":{"name":"Run","id":"ent_6CG18WJA68534C9CZ3NYDZF9E2","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"steps","type":"number","default":0},{"nullable":false,"name":"observations","type":"array","default":[],"items":{"nullable":false,"type":"string"}},{"nullable":false,"name":"answer","type":"string","default":""}]},"traits":[{"name":"Loop","id":"trt_552T3A1ENKQASZM59WQYG85WCP","effectRow":[{"kind":"emit","resource":"ANSWERED"},{"kind":"emit","resource":"CALL_TOOL"},{"kind":"emit","resource":"OBSERVED"},{"kind":"set","resource":"@entity.answer"},{"kind":"set","resource":"@entity.observations"},{"kind":"set","resource":"@entity.steps"}],"linkedEntity":"Run","linkedEntityId":"ent_6CG18WJA68534C9CZ3NYDZF9E2","entityRefIds":{"Run":"ent_6CG18WJA68534C9CZ3NYDZF9E2"},"emits":[{"event":"CALL_TOOL","eventId":"evt_YQABCZQHBQRNVYD7RXP33RRARA","description":"Run the chosen tool with its input.","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"input","type":"string","required":true}]},{"event":"OBSERVED","eventId":"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD","description":"The tool's result, kept as an observation for the next plan.","scope":"external","payloadSchema":[{"nullable":false,"name":"output","type":"string","required":true}]},{"event":"ANSWERED","eventId":"evt_MYHGXS0XMRETC3PQB01DCH9895","description":"The final answer, or the reason the loop stopped.","scope":"external","payloadSchema":[{"nullable":false,"name":"answer","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"planning","isInitial":true},{"name":"acting"},{"name":"done"}],"events":[{"key":"INIT","id":"evt_MAYHQZ1950MJG7VAV882XVK089","name":"Initialize"},{"key":"TOOL_CHOSEN","id":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","name":"Tool Chosen","description":"The model picked a tool and its input.","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"input","type":"string","required":true}],"listened":true},{"key":"FINAL","id":"evt_TK7M4NP60J30976CXSEA3WW0Y3","name":"Final","description":"The model answered without another tool call.","payloadSchema":[{"nullable":false,"name":"text","type":"string","required":true}],"listened":true},{"key":"TOOL_RESULT","id":"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE","name":"Tool Result","description":"The tool finished.","payloadSchema":[{"nullable":false,"name":"output","type":"string","required":true}],"listened":true},{"key":"CALL_TOOL","id":"evt_YQABCZQHBQRNVYD7RXP33RRARA","name":"Call Tool","description":"Run the chosen tool with its input.","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"input","type":"string","required":true}]},{"key":"OBSERVED","id":"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD","name":"Observed","description":"The tool's result, kept as an observation for the next plan.","payloadSchema":[{"nullable":false,"name":"output","type":"string","required":true}]},{"key":"ANSWERED","id":"evt_MYHGXS0XMRETC3PQB01DCH9895","name":"Answered","description":"The final answer, or the reason the loop stopped.","payloadSchema":[{"nullable":false,"name":"answer","type":"string","required":true}]}],"transitions":[{"from":"planning","to":"planning","event":"INIT","eventId":"evt_MAYHQZ1950MJG7VAV882XVK089"},{"from":"planning","to":"acting","event":"TOOL_CHOSEN","eventId":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","guard":["<","@entity.steps",5],"effects":[["set","@entity.steps",["+","@entity.steps",1]],["emit","CALL_TOOL",{"name":"@payload.name","input":"@payload.input"}]]},{"from":"planning","to":"done","event":"TOOL_CHOSEN","eventId":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","guard":[">=","@entity.steps",5],"effects":[["set","@entity.answer","step budget reached"],["emit","ANSWERED",{"answer":"@entity.answer"}]]},{"from":"planning","to":"done","event":"FINAL","eventId":"evt_TK7M4NP60J30976CXSEA3WW0Y3","effects":[["set","@entity.answer","@payload.text"],["emit","ANSWERED",{"answer":"@entity.answer"}]]},{"from":"acting","to":"acting","event":"INIT","eventId":"evt_MAYHQZ1950MJG7VAV882XVK089"},{"from":"acting","to":"planning","event":"TOOL_RESULT","eventId":"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE","effects":[["set","@entity.observations",["array/append","@entity.observations","@payload.output"]],["emit","OBSERVED",{"output":"@payload.output"}]]},{"from":"done","to":"done","event":"INIT","eventId":"evt_MAYHQZ1950MJG7VAV882XVK089"}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_552T3A1ENKQASZM59WQYG85WCP","fingerprint":"dd45e0574f01ff652aad19e6e76011e63a991c259d7534f922b142830ebacd02"}}],"pages":[{"name":"AgentStart","id":"pag_VD5S9DKE4FQ27KAFC0G4S81G9F","path":"","protocol":"boot","traits":[{"ref":"Loop","refId":"trt_552T3A1ENKQASZM59WQYG85WCP"}]}]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_6CG18WJA68534C9CZ3NYDZF9E2":{"id":"ent_6CG18WJA68534C9CZ3NYDZF9E2","kind":"entity","bakedName":"Run","curName":"Run","renames":[],"owner":"workspace"},"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG":{"id":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","kind":"event","bakedName":"TOOL_CHOSEN","curName":"TOOL_CHOSEN","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE":{"id":"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE","kind":"event","bakedName":"TOOL_RESULT","curName":"TOOL_RESULT","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_MAYHQZ1950MJG7VAV882XVK089":{"id":"evt_MAYHQZ1950MJG7VAV882XVK089","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_MYHGXS0XMRETC3PQB01DCH9895":{"id":"evt_MYHGXS0XMRETC3PQB01DCH9895","kind":"event","bakedName":"ANSWERED","curName":"ANSWERED","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD":{"id":"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD","kind":"event","bakedName":"OBSERVED","curName":"OBSERVED","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_TK7M4NP60J30976CXSEA3WW0Y3":{"id":"evt_TK7M4NP60J30976CXSEA3WW0Y3","kind":"event","bakedName":"FINAL","curName":"FINAL","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_YQABCZQHBQRNVYD7RXP33RRARA":{"id":"evt_YQABCZQHBQRNVYD7RXP33RRARA","kind":"event","bakedName":"CALL_TOOL","curName":"CALL_TOOL","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"orb_AM318BNMDCT6P5CPXCR0DRTAFG":{"id":"orb_AM318BNMDCT6P5CPXCR0DRTAFG","kind":"orbital","bakedName":"Agent","curName":"Agent","renames":[],"owner":"workspace"},"pag_VD5S9DKE4FQ27KAFC0G4S81G9F":{"id":"pag_VD5S9DKE4FQ27KAFC0G4S81G9F","kind":"page","bakedName":"AgentStart","curName":"AgentStart","renames":[],"owner":"workspace"},"trt_552T3A1ENKQASZM59WQYG85WCP":{"id":"trt_552T3A1ENKQASZM59WQYG85WCP","kind":"trait","bakedName":"Loop","curName":"Loop","renames":[],"owner":"workspace"}}}}
1
+ {"typeContractVersion":1,"name":"agent-step-example","version":"1.0.0","description":"Course example of a tool-using agent loop that plans, acts on a chosen tool, records the observation and answers or stops at a step budget, used as a native renderer parity example against the kernel's answers.","orbitals":[{"name":"Agent","id":"orb_AM318BNMDCT6P5CPXCR0DRTAFG","entity":{"name":"Run","id":"ent_6CG18WJA68534C9CZ3NYDZF9E2","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"steps","type":"number","default":0},{"nullable":false,"name":"observations","type":"array","default":[],"items":{"nullable":false,"type":"string"}},{"nullable":false,"name":"answer","type":"string","default":""}]},"traits":[{"name":"Loop","id":"trt_552T3A1ENKQASZM59WQYG85WCP","effectRow":[{"kind":"emit","resource":"ANSWERED"},{"kind":"emit","resource":"CALL_TOOL"},{"kind":"emit","resource":"OBSERVED"},{"kind":"set","resource":"@entity.answer"},{"kind":"set","resource":"@entity.observations"},{"kind":"set","resource":"@entity.steps"}],"linkedEntity":"Run","linkedEntityId":"ent_6CG18WJA68534C9CZ3NYDZF9E2","entityRefIds":{"Run":"ent_6CG18WJA68534C9CZ3NYDZF9E2"},"emits":[{"event":"CALL_TOOL","eventId":"evt_YQABCZQHBQRNVYD7RXP33RRARA","description":"Run the chosen tool with its input.","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"input","type":"string","required":true}]},{"event":"OBSERVED","eventId":"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD","description":"The tool's result, kept as an observation for the next plan.","scope":"external","payloadSchema":[{"nullable":false,"name":"output","type":"string","required":true}]},{"event":"ANSWERED","eventId":"evt_MYHGXS0XMRETC3PQB01DCH9895","description":"The final answer, or the reason the loop stopped.","scope":"external","payloadSchema":[{"nullable":false,"name":"answer","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"planning","isInitial":true},{"name":"acting"},{"name":"done"}],"events":[{"key":"INIT","id":"evt_MAYHQZ1950MJG7VAV882XVK089","name":"Initialize"},{"key":"TOOL_CHOSEN","id":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","name":"Tool Chosen","description":"The model picked a tool and its input.","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"input","type":"string","required":true}],"listened":true},{"key":"FINAL","id":"evt_TK7M4NP60J30976CXSEA3WW0Y3","name":"Final","description":"The model answered without another tool call.","payloadSchema":[{"nullable":false,"name":"text","type":"string","required":true}],"listened":true},{"key":"TOOL_RESULT","id":"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE","name":"Tool Result","description":"The tool finished.","payloadSchema":[{"nullable":false,"name":"output","type":"string","required":true}],"listened":true},{"key":"CALL_TOOL","id":"evt_YQABCZQHBQRNVYD7RXP33RRARA","name":"Call Tool","description":"Run the chosen tool with its input.","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"input","type":"string","required":true}]},{"key":"OBSERVED","id":"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD","name":"Observed","description":"The tool's result, kept as an observation for the next plan.","payloadSchema":[{"nullable":false,"name":"output","type":"string","required":true}]},{"key":"ANSWERED","id":"evt_MYHGXS0XMRETC3PQB01DCH9895","name":"Answered","description":"The final answer, or the reason the loop stopped.","payloadSchema":[{"nullable":false,"name":"answer","type":"string","required":true}]}],"transitions":[{"from":"planning","to":"planning","event":"INIT","eventId":"evt_MAYHQZ1950MJG7VAV882XVK089"},{"from":"planning","to":"acting","event":"TOOL_CHOSEN","eventId":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","guard":["<","@entity.steps",5],"effects":[["set","@entity.steps",["+","@entity.steps",1]],["emit","CALL_TOOL",{"name":"@payload.name","input":"@payload.input"}]]},{"from":"planning","to":"done","event":"TOOL_CHOSEN","eventId":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","guard":[">=","@entity.steps",5],"effects":[["set","@entity.answer","step budget reached"],["emit","ANSWERED",{"answer":"@entity.answer"}]]},{"from":"planning","to":"done","event":"FINAL","eventId":"evt_TK7M4NP60J30976CXSEA3WW0Y3","effects":[["set","@entity.answer","@payload.text"],["emit","ANSWERED",{"answer":"@entity.answer"}]]},{"from":"acting","to":"acting","event":"INIT","eventId":"evt_MAYHQZ1950MJG7VAV882XVK089"},{"from":"acting","to":"planning","event":"TOOL_RESULT","eventId":"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE","effects":[["set","@entity.observations",["array/append","@entity.observations","@payload.output"]],["emit","OBSERVED",{"output":"@payload.output"}]]},{"from":"done","to":"done","event":"INIT","eventId":"evt_MAYHQZ1950MJG7VAV882XVK089"}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_552T3A1ENKQASZM59WQYG85WCP","fingerprint":"dd45e0574f01ff652aad19e6e76011e63a991c259d7534f922b142830ebacd02"}}],"pages":[{"name":"AgentStart","id":"pag_VD5S9DKE4FQ27KAFC0G4S81G9F","path":"","protocol":"boot","traits":[{"ref":"Loop","refId":"trt_552T3A1ENKQASZM59WQYG85WCP"}]}]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_6CG18WJA68534C9CZ3NYDZF9E2":{"id":"ent_6CG18WJA68534C9CZ3NYDZF9E2","kind":"entity","bakedName":"Run","curName":"Run","renames":[],"owner":"workspace"},"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG":{"id":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","kind":"event","bakedName":"TOOL_CHOSEN","curName":"TOOL_CHOSEN","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE":{"id":"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE","kind":"event","bakedName":"TOOL_RESULT","curName":"TOOL_RESULT","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_MAYHQZ1950MJG7VAV882XVK089":{"id":"evt_MAYHQZ1950MJG7VAV882XVK089","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_MYHGXS0XMRETC3PQB01DCH9895":{"id":"evt_MYHGXS0XMRETC3PQB01DCH9895","kind":"event","bakedName":"ANSWERED","curName":"ANSWERED","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD":{"id":"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD","kind":"event","bakedName":"OBSERVED","curName":"OBSERVED","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_TK7M4NP60J30976CXSEA3WW0Y3":{"id":"evt_TK7M4NP60J30976CXSEA3WW0Y3","kind":"event","bakedName":"FINAL","curName":"FINAL","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_YQABCZQHBQRNVYD7RXP33RRARA":{"id":"evt_YQABCZQHBQRNVYD7RXP33RRARA","kind":"event","bakedName":"CALL_TOOL","curName":"CALL_TOOL","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"orb_AM318BNMDCT6P5CPXCR0DRTAFG":{"id":"orb_AM318BNMDCT6P5CPXCR0DRTAFG","kind":"orbital","bakedName":"Agent","curName":"Agent","renames":[],"owner":"workspace"},"pag_VD5S9DKE4FQ27KAFC0G4S81G9F":{"id":"pag_VD5S9DKE4FQ27KAFC0G4S81G9F","kind":"page","bakedName":"AgentStart","curName":"AgentStart","renames":[],"owner":"workspace"},"trt_552T3A1ENKQASZM59WQYG85WCP":{"id":"trt_552T3A1ENKQASZM59WQYG85WCP","kind":"trait","bakedName":"Loop","curName":"Loop","renames":[],"owner":"workspace"}}}}
@@ -1 +1 @@
1
- {"typeContractVersion":1,"name":"agent-step-example","version":"1.0.0","orbitals":[{"name":"HttpServerOrbital","id":"orb_6TJQYZF9EWMQE1V888QQ6BN08K","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":"Server.orbitals.HttpServerOrbital.entity","traits":[],"reference":{"ref":"Server.orbitals.HttpServerOrbital","config":{"host":{"nullable":false,"type":"unknown","default":"127.0.0.1"},"port":{"nullable":false,"type":"unknown","default":4999},"portFromEnv":{"nullable":false,"type":"unknown","default":false}}}},{"name":"Agent","id":"orb_AM318BNMDCT6P5CPXCR0DRTAFG","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":{"name":"Run","id":"ent_6CG18WJA68534C9CZ3NYDZF9E2","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"steps","type":"number","default":0},{"nullable":false,"name":"observations","type":"array","default":[],"items":{"nullable":false,"type":"string"}},{"nullable":false,"name":"answer","type":"string","default":""}]},"traits":[{"name":"Loop","id":"trt_552T3A1ENKQASZM59WQYG85WCP","effectRow":[{"kind":"emit","resource":"ANSWERED"},{"kind":"emit","resource":"CALL_TOOL"},{"kind":"emit","resource":"OBSERVED"},{"kind":"set","resource":"@entity.answer"},{"kind":"set","resource":"@entity.observations"},{"kind":"set","resource":"@entity.steps"}],"linkedEntity":"Run","linkedEntityId":"ent_6CG18WJA68534C9CZ3NYDZF9E2","entityRefIds":{"Run":"ent_6CG18WJA68534C9CZ3NYDZF9E2"},"emits":[{"event":"CALL_TOOL","eventId":"evt_YQABCZQHBQRNVYD7RXP33RRARA","description":"Run the chosen tool with its input.","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"input","type":"string","required":true}]},{"event":"OBSERVED","eventId":"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD","description":"The tool's result, kept as an observation for the next plan.","scope":"external","payloadSchema":[{"nullable":false,"name":"output","type":"string","required":true}]},{"event":"ANSWERED","eventId":"evt_MYHGXS0XMRETC3PQB01DCH9895","description":"The final answer, or the reason the loop stopped.","scope":"external","payloadSchema":[{"nullable":false,"name":"answer","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"planning","isInitial":true},{"name":"acting"},{"name":"done"}],"events":[{"key":"INIT","id":"evt_MAYHQZ1950MJG7VAV882XVK089","name":"Initialize"},{"key":"TOOL_CHOSEN","id":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","name":"Tool Chosen","description":"The model picked a tool and its input.","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"input","type":"string","required":true}],"listened":true},{"key":"FINAL","id":"evt_TK7M4NP60J30976CXSEA3WW0Y3","name":"Final","description":"The model answered without another tool call.","payloadSchema":[{"nullable":false,"name":"text","type":"string","required":true}],"listened":true},{"key":"TOOL_RESULT","id":"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE","name":"Tool Result","description":"The tool finished.","payloadSchema":[{"nullable":false,"name":"output","type":"string","required":true}],"listened":true},{"key":"CALL_TOOL","id":"evt_YQABCZQHBQRNVYD7RXP33RRARA","name":"Call Tool","description":"Run the chosen tool with its input.","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"input","type":"string","required":true}]},{"key":"OBSERVED","id":"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD","name":"Observed","description":"The tool's result, kept as an observation for the next plan.","payloadSchema":[{"nullable":false,"name":"output","type":"string","required":true}]},{"key":"ANSWERED","id":"evt_MYHGXS0XMRETC3PQB01DCH9895","name":"Answered","description":"The final answer, or the reason the loop stopped.","payloadSchema":[{"nullable":false,"name":"answer","type":"string","required":true}]}],"transitions":[{"from":"planning","to":"planning","event":"INIT","eventId":"evt_MAYHQZ1950MJG7VAV882XVK089"},{"from":"planning","to":"acting","event":"TOOL_CHOSEN","eventId":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","guard":["<","@entity.steps",5],"effects":[["set","@entity.steps",["+","@entity.steps",1]],["emit","CALL_TOOL",{"name":"@payload.name","input":"@payload.input"}]]},{"from":"planning","to":"done","event":"TOOL_CHOSEN","eventId":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","guard":[">=","@entity.steps",5],"effects":[["set","@entity.answer","step budget reached"],["emit","ANSWERED",{"answer":"@entity.answer"}]]},{"from":"planning","to":"done","event":"FINAL","eventId":"evt_TK7M4NP60J30976CXSEA3WW0Y3","effects":[["set","@entity.answer","@payload.text"],["emit","ANSWERED",{"answer":"@entity.answer"}]]},{"from":"acting","to":"acting","event":"INIT","eventId":"evt_MAYHQZ1950MJG7VAV882XVK089"},{"from":"acting","to":"planning","event":"TOOL_RESULT","eventId":"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE","effects":[["set","@entity.observations",["array/append","@entity.observations","@payload.output"]],["emit","OBSERVED",{"output":"@payload.output"}]]},{"from":"done","to":"done","event":"INIT","eventId":"evt_MAYHQZ1950MJG7VAV882XVK089"}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_552T3A1ENKQASZM59WQYG85WCP","fingerprint":"dd45e0574f01ff652aad19e6e76011e63a991c259d7534f922b142830ebacd02"}}],"pages":[{"name":"AgentStart","id":"pag_VD5S9DKE4FQ27KAFC0G4S81G9F","path":"","protocol":"boot","traits":[{"ref":"Loop","refId":"trt_552T3A1ENKQASZM59WQYG85WCP"}]}]}],"osGrants":{"fs":[],"exec":[],"net":[{"target":"127.0.0.1:4999","kinds":["listen"]}],"env":[],"stdio":[],"sys":[],"desktop":[]},"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_6CG18WJA68534C9CZ3NYDZF9E2":{"id":"ent_6CG18WJA68534C9CZ3NYDZF9E2","kind":"entity","bakedName":"Run","curName":"Run","renames":[],"owner":"workspace"},"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG":{"id":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","kind":"event","bakedName":"TOOL_CHOSEN","curName":"TOOL_CHOSEN","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE":{"id":"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE","kind":"event","bakedName":"TOOL_RESULT","curName":"TOOL_RESULT","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_MAYHQZ1950MJG7VAV882XVK089":{"id":"evt_MAYHQZ1950MJG7VAV882XVK089","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_MYHGXS0XMRETC3PQB01DCH9895":{"id":"evt_MYHGXS0XMRETC3PQB01DCH9895","kind":"event","bakedName":"ANSWERED","curName":"ANSWERED","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD":{"id":"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD","kind":"event","bakedName":"OBSERVED","curName":"OBSERVED","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_TK7M4NP60J30976CXSEA3WW0Y3":{"id":"evt_TK7M4NP60J30976CXSEA3WW0Y3","kind":"event","bakedName":"FINAL","curName":"FINAL","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_YQABCZQHBQRNVYD7RXP33RRARA":{"id":"evt_YQABCZQHBQRNVYD7RXP33RRARA","kind":"event","bakedName":"CALL_TOOL","curName":"CALL_TOOL","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"orb_6TJQYZF9EWMQE1V888QQ6BN08K":{"id":"orb_6TJQYZF9EWMQE1V888QQ6BN08K","kind":"orbital","bakedName":"HttpServerOrbital","curName":"HttpServerOrbital","renames":[],"owner":"workspace"},"orb_AM318BNMDCT6P5CPXCR0DRTAFG":{"id":"orb_AM318BNMDCT6P5CPXCR0DRTAFG","kind":"orbital","bakedName":"Agent","curName":"Agent","renames":[],"owner":"workspace"},"pag_VD5S9DKE4FQ27KAFC0G4S81G9F":{"id":"pag_VD5S9DKE4FQ27KAFC0G4S81G9F","kind":"page","bakedName":"AgentStart","curName":"AgentStart","renames":[],"owner":"workspace"},"trt_552T3A1ENKQASZM59WQYG85WCP":{"id":"trt_552T3A1ENKQASZM59WQYG85WCP","kind":"trait","bakedName":"Loop","curName":"Loop","renames":[],"owner":"workspace"}}}}
1
+ {"typeContractVersion":1,"name":"agent-step-example","version":"1.0.0","description":"Server variant of the course example of a tool-using agent loop that plans, acts on a chosen tool, records the observation and answers or stops at a step budget, composed with the std HTTP server for the native server parity run against the kernel's answers.","orbitals":[{"name":"HttpServerOrbital","id":"orb_6TJQYZF9EWMQE1V888QQ6BN08K","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":"Server.orbitals.HttpServerOrbital.entity","traits":[],"reference":{"ref":"Server.orbitals.HttpServerOrbital","config":{"host":{"nullable":false,"type":"unknown","default":"127.0.0.1"},"port":{"nullable":false,"type":"unknown","default":4999},"portFromEnv":{"nullable":false,"type":"unknown","default":false}}}},{"name":"Agent","id":"orb_AM318BNMDCT6P5CPXCR0DRTAFG","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":{"name":"Run","id":"ent_6CG18WJA68534C9CZ3NYDZF9E2","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"steps","type":"number","default":0},{"nullable":false,"name":"observations","type":"array","default":[],"items":{"nullable":false,"type":"string"}},{"nullable":false,"name":"answer","type":"string","default":""}]},"traits":[{"name":"Loop","id":"trt_552T3A1ENKQASZM59WQYG85WCP","effectRow":[{"kind":"emit","resource":"ANSWERED"},{"kind":"emit","resource":"CALL_TOOL"},{"kind":"emit","resource":"OBSERVED"},{"kind":"set","resource":"@entity.answer"},{"kind":"set","resource":"@entity.observations"},{"kind":"set","resource":"@entity.steps"}],"linkedEntity":"Run","linkedEntityId":"ent_6CG18WJA68534C9CZ3NYDZF9E2","entityRefIds":{"Run":"ent_6CG18WJA68534C9CZ3NYDZF9E2"},"emits":[{"event":"CALL_TOOL","eventId":"evt_YQABCZQHBQRNVYD7RXP33RRARA","description":"Run the chosen tool with its input.","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"input","type":"string","required":true}]},{"event":"OBSERVED","eventId":"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD","description":"The tool's result, kept as an observation for the next plan.","scope":"external","payloadSchema":[{"nullable":false,"name":"output","type":"string","required":true}]},{"event":"ANSWERED","eventId":"evt_MYHGXS0XMRETC3PQB01DCH9895","description":"The final answer, or the reason the loop stopped.","scope":"external","payloadSchema":[{"nullable":false,"name":"answer","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"planning","isInitial":true},{"name":"acting"},{"name":"done"}],"events":[{"key":"INIT","id":"evt_MAYHQZ1950MJG7VAV882XVK089","name":"Initialize"},{"key":"TOOL_CHOSEN","id":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","name":"Tool Chosen","description":"The model picked a tool and its input.","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"input","type":"string","required":true}],"listened":true},{"key":"FINAL","id":"evt_TK7M4NP60J30976CXSEA3WW0Y3","name":"Final","description":"The model answered without another tool call.","payloadSchema":[{"nullable":false,"name":"text","type":"string","required":true}],"listened":true},{"key":"TOOL_RESULT","id":"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE","name":"Tool Result","description":"The tool finished.","payloadSchema":[{"nullable":false,"name":"output","type":"string","required":true}],"listened":true},{"key":"CALL_TOOL","id":"evt_YQABCZQHBQRNVYD7RXP33RRARA","name":"Call Tool","description":"Run the chosen tool with its input.","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"input","type":"string","required":true}]},{"key":"OBSERVED","id":"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD","name":"Observed","description":"The tool's result, kept as an observation for the next plan.","payloadSchema":[{"nullable":false,"name":"output","type":"string","required":true}]},{"key":"ANSWERED","id":"evt_MYHGXS0XMRETC3PQB01DCH9895","name":"Answered","description":"The final answer, or the reason the loop stopped.","payloadSchema":[{"nullable":false,"name":"answer","type":"string","required":true}]}],"transitions":[{"from":"planning","to":"planning","event":"INIT","eventId":"evt_MAYHQZ1950MJG7VAV882XVK089"},{"from":"planning","to":"acting","event":"TOOL_CHOSEN","eventId":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","guard":["<","@entity.steps",5],"effects":[["set","@entity.steps",["+","@entity.steps",1]],["emit","CALL_TOOL",{"name":"@payload.name","input":"@payload.input"}]]},{"from":"planning","to":"done","event":"TOOL_CHOSEN","eventId":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","guard":[">=","@entity.steps",5],"effects":[["set","@entity.answer","step budget reached"],["emit","ANSWERED",{"answer":"@entity.answer"}]]},{"from":"planning","to":"done","event":"FINAL","eventId":"evt_TK7M4NP60J30976CXSEA3WW0Y3","effects":[["set","@entity.answer","@payload.text"],["emit","ANSWERED",{"answer":"@entity.answer"}]]},{"from":"acting","to":"acting","event":"INIT","eventId":"evt_MAYHQZ1950MJG7VAV882XVK089"},{"from":"acting","to":"planning","event":"TOOL_RESULT","eventId":"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE","effects":[["set","@entity.observations",["array/append","@entity.observations","@payload.output"]],["emit","OBSERVED",{"output":"@payload.output"}]]},{"from":"done","to":"done","event":"INIT","eventId":"evt_MAYHQZ1950MJG7VAV882XVK089"}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_552T3A1ENKQASZM59WQYG85WCP","fingerprint":"dd45e0574f01ff652aad19e6e76011e63a991c259d7534f922b142830ebacd02"}}],"pages":[{"name":"AgentStart","id":"pag_VD5S9DKE4FQ27KAFC0G4S81G9F","path":"","protocol":"boot","traits":[{"ref":"Loop","refId":"trt_552T3A1ENKQASZM59WQYG85WCP"}]}]}],"osGrants":{"fs":[],"exec":[],"net":[{"target":"127.0.0.1:4999","kinds":["listen"]}],"env":[],"stdio":[],"sys":[],"desktop":[]},"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_6CG18WJA68534C9CZ3NYDZF9E2":{"id":"ent_6CG18WJA68534C9CZ3NYDZF9E2","kind":"entity","bakedName":"Run","curName":"Run","renames":[],"owner":"workspace"},"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG":{"id":"evt_48VASB0ZYDFZ6Y1PB4ED0C3FAG","kind":"event","bakedName":"TOOL_CHOSEN","curName":"TOOL_CHOSEN","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE":{"id":"evt_D3MKYAS7WZKYFK1GH3VMBD4RVE","kind":"event","bakedName":"TOOL_RESULT","curName":"TOOL_RESULT","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_MAYHQZ1950MJG7VAV882XVK089":{"id":"evt_MAYHQZ1950MJG7VAV882XVK089","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_MYHGXS0XMRETC3PQB01DCH9895":{"id":"evt_MYHGXS0XMRETC3PQB01DCH9895","kind":"event","bakedName":"ANSWERED","curName":"ANSWERED","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD":{"id":"evt_SQ1NT00Z4TFJD1QNEQNX3BCXAD","kind":"event","bakedName":"OBSERVED","curName":"OBSERVED","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_TK7M4NP60J30976CXSEA3WW0Y3":{"id":"evt_TK7M4NP60J30976CXSEA3WW0Y3","kind":"event","bakedName":"FINAL","curName":"FINAL","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"evt_YQABCZQHBQRNVYD7RXP33RRARA":{"id":"evt_YQABCZQHBQRNVYD7RXP33RRARA","kind":"event","bakedName":"CALL_TOOL","curName":"CALL_TOOL","renames":[],"owner":"workspace","parent":"trt_552T3A1ENKQASZM59WQYG85WCP"},"orb_6TJQYZF9EWMQE1V888QQ6BN08K":{"id":"orb_6TJQYZF9EWMQE1V888QQ6BN08K","kind":"orbital","bakedName":"HttpServerOrbital","curName":"HttpServerOrbital","renames":[],"owner":"workspace"},"orb_AM318BNMDCT6P5CPXCR0DRTAFG":{"id":"orb_AM318BNMDCT6P5CPXCR0DRTAFG","kind":"orbital","bakedName":"Agent","curName":"Agent","renames":[],"owner":"workspace"},"pag_VD5S9DKE4FQ27KAFC0G4S81G9F":{"id":"pag_VD5S9DKE4FQ27KAFC0G4S81G9F","kind":"page","bakedName":"AgentStart","curName":"AgentStart","renames":[],"owner":"workspace"},"trt_552T3A1ENKQASZM59WQYG85WCP":{"id":"trt_552T3A1ENKQASZM59WQYG85WCP","kind":"trait","bakedName":"Loop","curName":"Loop","renames":[],"owner":"workspace"}}}}
@@ -1 +1 @@
1
- {"typeContractVersion":1,"name":"chunk-example","version":"1.0.0","orbitals":[{"name":"Chunking","id":"orb_XCDNGBTF237H1MY4VY809B89F6","entity":{"name":"Doc","id":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"chunks","type":"array","default":[],"items":{"nullable":false,"type":"string"}}]},"traits":[{"name":"Chunk","id":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR","effectRow":[{"kind":"emit","resource":"CHUNKED"},{"kind":"emit","resource":"CHUNK_REFUSED"},{"kind":"set","resource":"@entity.chunks"}],"linkedEntity":"Doc","linkedEntityId":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP","entityRefIds":{"Doc":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP"},"emits":[{"event":"CHUNKED","eventId":"evt_120745W1510JGZ32E2TF4C2G8P","description":"How many overlapping windows the text became.","scope":"external","payloadSchema":[{"nullable":false,"name":"count","type":"number","required":true}]},{"event":"CHUNK_REFUSED","eventId":"evt_5SSTQH27933MHVM0M7JDGWP4Z1","description":"The window settings cannot make progress through the text.","scope":"external","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42","name":"Initialize"},{"key":"CHUNK","id":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","name":"Chunk","description":"The document text, the window size in characters and the overlap.","payloadSchema":[{"nullable":false,"name":"text","type":"string","required":true},{"nullable":false,"name":"size","type":"number","required":true},{"nullable":false,"name":"overlap","type":"number","required":true}],"listened":true},{"key":"CHUNKED","id":"evt_120745W1510JGZ32E2TF4C2G8P","name":"Chunked","description":"How many overlapping windows the text became.","payloadSchema":[{"nullable":false,"name":"count","type":"number","required":true}]},{"key":"CHUNK_REFUSED","id":"evt_5SSTQH27933MHVM0M7JDGWP4Z1","name":"Chunk Refused","description":"The window settings cannot make progress through the text.","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42"},{"from":"idle","to":"idle","event":"CHUNK","eventId":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","guard":["and",[">","@payload.size",0],["<","@payload.overlap","@payload.size"]],"effects":[["let",[["stride",["-","@payload.size","@payload.overlap"]],["count",["math/ceil",["default",["/",["str/len","@payload.text"],["-","@payload.size","@payload.overlap"]],0]]]],["set","@entity.chunks",["array/map",["array/range",0,"@count"],["fn","i",["str/slice","@payload.text",["*","@i","@stride"],["+",["*","@i","@stride"],"@payload.size"]]]]]],["emit","CHUNKED",{"count":["array/len","@entity.chunks"]}]]},{"from":"idle","to":"idle","event":"CHUNK","eventId":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","guard":["or",["<=","@payload.size",0],[">=","@payload.overlap","@payload.size"]],"effects":[["emit","CHUNK_REFUSED",{"reason":"overlap must be smaller than a positive chunk size"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR","fingerprint":"61d30c57e1fc3a455667b174a13cb1992c1283606aa1dc129f2da9e889cccf0f"}}],"pages":[{"name":"ChunkingStart","id":"pag_HVT34NQ9JBMS5VYFB0M05G8V4P","path":"","protocol":"boot","traits":[{"ref":"Chunk","refId":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"}]}]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP":{"id":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP","kind":"entity","bakedName":"Doc","curName":"Doc","renames":[],"owner":"workspace"},"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0":{"id":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","kind":"event","bakedName":"CHUNK","curName":"CHUNK","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"evt_120745W1510JGZ32E2TF4C2G8P":{"id":"evt_120745W1510JGZ32E2TF4C2G8P","kind":"event","bakedName":"CHUNKED","curName":"CHUNKED","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42":{"id":"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"evt_5SSTQH27933MHVM0M7JDGWP4Z1":{"id":"evt_5SSTQH27933MHVM0M7JDGWP4Z1","kind":"event","bakedName":"CHUNK_REFUSED","curName":"CHUNK_REFUSED","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"orb_XCDNGBTF237H1MY4VY809B89F6":{"id":"orb_XCDNGBTF237H1MY4VY809B89F6","kind":"orbital","bakedName":"Chunking","curName":"Chunking","renames":[],"owner":"workspace"},"pag_HVT34NQ9JBMS5VYFB0M05G8V4P":{"id":"pag_HVT34NQ9JBMS5VYFB0M05G8V4P","kind":"page","bakedName":"ChunkingStart","curName":"ChunkingStart","renames":[],"owner":"workspace"},"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR":{"id":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR","kind":"trait","bakedName":"Chunk","curName":"Chunk","renames":[],"owner":"workspace"}}}}
1
+ {"typeContractVersion":1,"name":"chunk-example","version":"1.0.0","description":"Course example of splitting document text into overlapping windows, refusing window settings that cannot make progress, used as a native renderer parity example against the kernel's answers.","orbitals":[{"name":"Chunking","id":"orb_XCDNGBTF237H1MY4VY809B89F6","entity":{"name":"Doc","id":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"chunks","type":"array","default":[],"items":{"nullable":false,"type":"string"}}]},"traits":[{"name":"Chunk","id":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR","effectRow":[{"kind":"emit","resource":"CHUNKED"},{"kind":"emit","resource":"CHUNK_REFUSED"},{"kind":"set","resource":"@entity.chunks"}],"linkedEntity":"Doc","linkedEntityId":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP","entityRefIds":{"Doc":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP"},"emits":[{"event":"CHUNKED","eventId":"evt_120745W1510JGZ32E2TF4C2G8P","description":"How many overlapping windows the text became.","scope":"external","payloadSchema":[{"nullable":false,"name":"count","type":"number","required":true}]},{"event":"CHUNK_REFUSED","eventId":"evt_5SSTQH27933MHVM0M7JDGWP4Z1","description":"The window settings cannot make progress through the text.","scope":"external","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42","name":"Initialize"},{"key":"CHUNK","id":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","name":"Chunk","description":"The document text, the window size in characters and the overlap.","payloadSchema":[{"nullable":false,"name":"text","type":"string","required":true},{"nullable":false,"name":"size","type":"number","required":true},{"nullable":false,"name":"overlap","type":"number","required":true}],"listened":true},{"key":"CHUNKED","id":"evt_120745W1510JGZ32E2TF4C2G8P","name":"Chunked","description":"How many overlapping windows the text became.","payloadSchema":[{"nullable":false,"name":"count","type":"number","required":true}]},{"key":"CHUNK_REFUSED","id":"evt_5SSTQH27933MHVM0M7JDGWP4Z1","name":"Chunk Refused","description":"The window settings cannot make progress through the text.","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42"},{"from":"idle","to":"idle","event":"CHUNK","eventId":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","guard":["and",[">","@payload.size",0],["<","@payload.overlap","@payload.size"]],"effects":[["let",[["stride",["-","@payload.size","@payload.overlap"]],["count",["math/ceil",["default",["/",["str/len","@payload.text"],["-","@payload.size","@payload.overlap"]],0]]]],["set","@entity.chunks",["array/map",["array/range",0,"@count"],["fn","i",["str/slice","@payload.text",["*","@i","@stride"],["+",["*","@i","@stride"],"@payload.size"]]]]]],["emit","CHUNKED",{"count":["array/len","@entity.chunks"]}]]},{"from":"idle","to":"idle","event":"CHUNK","eventId":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","guard":["or",["<=","@payload.size",0],[">=","@payload.overlap","@payload.size"]],"effects":[["emit","CHUNK_REFUSED",{"reason":"overlap must be smaller than a positive chunk size"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR","fingerprint":"61d30c57e1fc3a455667b174a13cb1992c1283606aa1dc129f2da9e889cccf0f"}}],"pages":[{"name":"ChunkingStart","id":"pag_HVT34NQ9JBMS5VYFB0M05G8V4P","path":"","protocol":"boot","traits":[{"ref":"Chunk","refId":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"}]}]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP":{"id":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP","kind":"entity","bakedName":"Doc","curName":"Doc","renames":[],"owner":"workspace"},"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0":{"id":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","kind":"event","bakedName":"CHUNK","curName":"CHUNK","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"evt_120745W1510JGZ32E2TF4C2G8P":{"id":"evt_120745W1510JGZ32E2TF4C2G8P","kind":"event","bakedName":"CHUNKED","curName":"CHUNKED","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42":{"id":"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"evt_5SSTQH27933MHVM0M7JDGWP4Z1":{"id":"evt_5SSTQH27933MHVM0M7JDGWP4Z1","kind":"event","bakedName":"CHUNK_REFUSED","curName":"CHUNK_REFUSED","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"orb_XCDNGBTF237H1MY4VY809B89F6":{"id":"orb_XCDNGBTF237H1MY4VY809B89F6","kind":"orbital","bakedName":"Chunking","curName":"Chunking","renames":[],"owner":"workspace"},"pag_HVT34NQ9JBMS5VYFB0M05G8V4P":{"id":"pag_HVT34NQ9JBMS5VYFB0M05G8V4P","kind":"page","bakedName":"ChunkingStart","curName":"ChunkingStart","renames":[],"owner":"workspace"},"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR":{"id":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR","kind":"trait","bakedName":"Chunk","curName":"Chunk","renames":[],"owner":"workspace"}}}}
@@ -1 +1 @@
1
- {"typeContractVersion":1,"name":"chunk-example","version":"1.0.0","orbitals":[{"name":"HttpServerOrbital","id":"orb_JE14NH35P5JV2NY2EN5YACHS3G","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":"Server.orbitals.HttpServerOrbital.entity","traits":[],"reference":{"ref":"Server.orbitals.HttpServerOrbital","config":{"host":{"nullable":false,"type":"unknown","default":"127.0.0.1"},"port":{"nullable":false,"type":"unknown","default":4999},"portFromEnv":{"nullable":false,"type":"unknown","default":false}}}},{"name":"Chunking","id":"orb_XCDNGBTF237H1MY4VY809B89F6","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":{"name":"Doc","id":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"chunks","type":"array","default":[],"items":{"nullable":false,"type":"string"}}]},"traits":[{"name":"Chunk","id":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR","effectRow":[{"kind":"emit","resource":"CHUNKED"},{"kind":"emit","resource":"CHUNK_REFUSED"},{"kind":"set","resource":"@entity.chunks"}],"linkedEntity":"Doc","linkedEntityId":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP","entityRefIds":{"Doc":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP"},"emits":[{"event":"CHUNKED","eventId":"evt_120745W1510JGZ32E2TF4C2G8P","description":"How many overlapping windows the text became.","scope":"external","payloadSchema":[{"nullable":false,"name":"count","type":"number","required":true}]},{"event":"CHUNK_REFUSED","eventId":"evt_5SSTQH27933MHVM0M7JDGWP4Z1","description":"The window settings cannot make progress through the text.","scope":"external","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42","name":"Initialize"},{"key":"CHUNK","id":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","name":"Chunk","description":"The document text, the window size in characters and the overlap.","payloadSchema":[{"nullable":false,"name":"text","type":"string","required":true},{"nullable":false,"name":"size","type":"number","required":true},{"nullable":false,"name":"overlap","type":"number","required":true}],"listened":true},{"key":"CHUNKED","id":"evt_120745W1510JGZ32E2TF4C2G8P","name":"Chunked","description":"How many overlapping windows the text became.","payloadSchema":[{"nullable":false,"name":"count","type":"number","required":true}]},{"key":"CHUNK_REFUSED","id":"evt_5SSTQH27933MHVM0M7JDGWP4Z1","name":"Chunk Refused","description":"The window settings cannot make progress through the text.","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42"},{"from":"idle","to":"idle","event":"CHUNK","eventId":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","guard":["and",[">","@payload.size",0],["<","@payload.overlap","@payload.size"]],"effects":[["let",[["stride",["-","@payload.size","@payload.overlap"]],["count",["math/ceil",["default",["/",["str/len","@payload.text"],["-","@payload.size","@payload.overlap"]],0]]]],["set","@entity.chunks",["array/map",["array/range",0,"@count"],["fn","i",["str/slice","@payload.text",["*","@i","@stride"],["+",["*","@i","@stride"],"@payload.size"]]]]]],["emit","CHUNKED",{"count":["array/len","@entity.chunks"]}]]},{"from":"idle","to":"idle","event":"CHUNK","eventId":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","guard":["or",["<=","@payload.size",0],[">=","@payload.overlap","@payload.size"]],"effects":[["emit","CHUNK_REFUSED",{"reason":"overlap must be smaller than a positive chunk size"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR","fingerprint":"61d30c57e1fc3a455667b174a13cb1992c1283606aa1dc129f2da9e889cccf0f"}}],"pages":[{"name":"ChunkingStart","id":"pag_HVT34NQ9JBMS5VYFB0M05G8V4P","path":"","protocol":"boot","traits":[{"ref":"Chunk","refId":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"}]}]}],"osGrants":{"fs":[],"exec":[],"net":[{"target":"127.0.0.1:4999","kinds":["listen"]}],"env":[],"stdio":[],"sys":[],"desktop":[]},"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP":{"id":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP","kind":"entity","bakedName":"Doc","curName":"Doc","renames":[],"owner":"workspace"},"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0":{"id":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","kind":"event","bakedName":"CHUNK","curName":"CHUNK","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"evt_120745W1510JGZ32E2TF4C2G8P":{"id":"evt_120745W1510JGZ32E2TF4C2G8P","kind":"event","bakedName":"CHUNKED","curName":"CHUNKED","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42":{"id":"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"evt_5SSTQH27933MHVM0M7JDGWP4Z1":{"id":"evt_5SSTQH27933MHVM0M7JDGWP4Z1","kind":"event","bakedName":"CHUNK_REFUSED","curName":"CHUNK_REFUSED","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"orb_JE14NH35P5JV2NY2EN5YACHS3G":{"id":"orb_JE14NH35P5JV2NY2EN5YACHS3G","kind":"orbital","bakedName":"HttpServerOrbital","curName":"HttpServerOrbital","renames":[],"owner":"workspace"},"orb_XCDNGBTF237H1MY4VY809B89F6":{"id":"orb_XCDNGBTF237H1MY4VY809B89F6","kind":"orbital","bakedName":"Chunking","curName":"Chunking","renames":[],"owner":"workspace"},"pag_HVT34NQ9JBMS5VYFB0M05G8V4P":{"id":"pag_HVT34NQ9JBMS5VYFB0M05G8V4P","kind":"page","bakedName":"ChunkingStart","curName":"ChunkingStart","renames":[],"owner":"workspace"},"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR":{"id":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR","kind":"trait","bakedName":"Chunk","curName":"Chunk","renames":[],"owner":"workspace"}}}}
1
+ {"typeContractVersion":1,"name":"chunk-example","version":"1.0.0","description":"Server variant of the course example of splitting document text into overlapping windows, refusing window settings that cannot make progress, composed with the std HTTP server for the native server parity run against the kernel's answers.","orbitals":[{"name":"HttpServerOrbital","id":"orb_JE14NH35P5JV2NY2EN5YACHS3G","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":"Server.orbitals.HttpServerOrbital.entity","traits":[],"reference":{"ref":"Server.orbitals.HttpServerOrbital","config":{"host":{"nullable":false,"type":"unknown","default":"127.0.0.1"},"port":{"nullable":false,"type":"unknown","default":4999},"portFromEnv":{"nullable":false,"type":"unknown","default":false}}}},{"name":"Chunking","id":"orb_XCDNGBTF237H1MY4VY809B89F6","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":{"name":"Doc","id":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"chunks","type":"array","default":[],"items":{"nullable":false,"type":"string"}}]},"traits":[{"name":"Chunk","id":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR","effectRow":[{"kind":"emit","resource":"CHUNKED"},{"kind":"emit","resource":"CHUNK_REFUSED"},{"kind":"set","resource":"@entity.chunks"}],"linkedEntity":"Doc","linkedEntityId":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP","entityRefIds":{"Doc":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP"},"emits":[{"event":"CHUNKED","eventId":"evt_120745W1510JGZ32E2TF4C2G8P","description":"How many overlapping windows the text became.","scope":"external","payloadSchema":[{"nullable":false,"name":"count","type":"number","required":true}]},{"event":"CHUNK_REFUSED","eventId":"evt_5SSTQH27933MHVM0M7JDGWP4Z1","description":"The window settings cannot make progress through the text.","scope":"external","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42","name":"Initialize"},{"key":"CHUNK","id":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","name":"Chunk","description":"The document text, the window size in characters and the overlap.","payloadSchema":[{"nullable":false,"name":"text","type":"string","required":true},{"nullable":false,"name":"size","type":"number","required":true},{"nullable":false,"name":"overlap","type":"number","required":true}],"listened":true},{"key":"CHUNKED","id":"evt_120745W1510JGZ32E2TF4C2G8P","name":"Chunked","description":"How many overlapping windows the text became.","payloadSchema":[{"nullable":false,"name":"count","type":"number","required":true}]},{"key":"CHUNK_REFUSED","id":"evt_5SSTQH27933MHVM0M7JDGWP4Z1","name":"Chunk Refused","description":"The window settings cannot make progress through the text.","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42"},{"from":"idle","to":"idle","event":"CHUNK","eventId":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","guard":["and",[">","@payload.size",0],["<","@payload.overlap","@payload.size"]],"effects":[["let",[["stride",["-","@payload.size","@payload.overlap"]],["count",["math/ceil",["default",["/",["str/len","@payload.text"],["-","@payload.size","@payload.overlap"]],0]]]],["set","@entity.chunks",["array/map",["array/range",0,"@count"],["fn","i",["str/slice","@payload.text",["*","@i","@stride"],["+",["*","@i","@stride"],"@payload.size"]]]]]],["emit","CHUNKED",{"count":["array/len","@entity.chunks"]}]]},{"from":"idle","to":"idle","event":"CHUNK","eventId":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","guard":["or",["<=","@payload.size",0],[">=","@payload.overlap","@payload.size"]],"effects":[["emit","CHUNK_REFUSED",{"reason":"overlap must be smaller than a positive chunk size"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR","fingerprint":"61d30c57e1fc3a455667b174a13cb1992c1283606aa1dc129f2da9e889cccf0f"}}],"pages":[{"name":"ChunkingStart","id":"pag_HVT34NQ9JBMS5VYFB0M05G8V4P","path":"","protocol":"boot","traits":[{"ref":"Chunk","refId":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"}]}]}],"osGrants":{"fs":[],"exec":[],"net":[{"target":"127.0.0.1:4999","kinds":["listen"]}],"env":[],"stdio":[],"sys":[],"desktop":[]},"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP":{"id":"ent_VA7Y3RAYTMFDA6SCS6QZYHK0DP","kind":"entity","bakedName":"Doc","curName":"Doc","renames":[],"owner":"workspace"},"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0":{"id":"evt_06JWZ6CT8YD4FDWGAK5ZE2G5G0","kind":"event","bakedName":"CHUNK","curName":"CHUNK","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"evt_120745W1510JGZ32E2TF4C2G8P":{"id":"evt_120745W1510JGZ32E2TF4C2G8P","kind":"event","bakedName":"CHUNKED","curName":"CHUNKED","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42":{"id":"evt_5D9SVMN5C3JP1Y8EGB2GFTDT42","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"evt_5SSTQH27933MHVM0M7JDGWP4Z1":{"id":"evt_5SSTQH27933MHVM0M7JDGWP4Z1","kind":"event","bakedName":"CHUNK_REFUSED","curName":"CHUNK_REFUSED","renames":[],"owner":"workspace","parent":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR"},"orb_JE14NH35P5JV2NY2EN5YACHS3G":{"id":"orb_JE14NH35P5JV2NY2EN5YACHS3G","kind":"orbital","bakedName":"HttpServerOrbital","curName":"HttpServerOrbital","renames":[],"owner":"workspace"},"orb_XCDNGBTF237H1MY4VY809B89F6":{"id":"orb_XCDNGBTF237H1MY4VY809B89F6","kind":"orbital","bakedName":"Chunking","curName":"Chunking","renames":[],"owner":"workspace"},"pag_HVT34NQ9JBMS5VYFB0M05G8V4P":{"id":"pag_HVT34NQ9JBMS5VYFB0M05G8V4P","kind":"page","bakedName":"ChunkingStart","curName":"ChunkingStart","renames":[],"owner":"workspace"},"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR":{"id":"trt_Y0CSAB7D3EPHQE0N9PYPKATRJR","kind":"trait","bakedName":"Chunk","curName":"Chunk","renames":[],"owner":"workspace"}}}}
@@ -1 +1 @@
1
- {"typeContractVersion":1,"name":"cosine-example","version":"1.0.0","orbitals":[{"name":"Similarity","id":"orb_9Z52VGBWDNY6TJ1QAKE5MT8YJ3","entity":{"name":"Pair","id":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"score","type":"number","default":0}]},"traits":[{"name":"Score","id":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP","effectRow":[{"kind":"emit","resource":"SCORED"},{"kind":"set","resource":"@entity.score"}],"linkedEntity":"Pair","linkedEntityId":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB","entityRefIds":{"Pair":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB"},"emits":[{"event":"SCORED","eventId":"evt_S7JSMRY1WS0YCS8C47R613GDQ2","description":"The cosine similarity of the two vectors.","scope":"external","payloadSchema":[{"nullable":false,"name":"score","type":"number","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_MEFW8FY8G0480AAM52QHFCCVMF","name":"Initialize"},{"key":"SCORE","id":"evt_P7EVDZ8HTG8X846N9ERN9MP2DR","name":"Score","description":"Two embedding vectors of equal length.","payloadSchema":[{"nullable":false,"name":"a","type":"[number]","required":true,"items":{"nullable":false,"name":"","type":"number"}},{"nullable":false,"name":"b","type":"[number]","required":true,"items":{"nullable":false,"name":"","type":"number"}}],"listened":true},{"key":"SCORED","id":"evt_S7JSMRY1WS0YCS8C47R613GDQ2","name":"Scored","description":"The cosine similarity of the two vectors.","payloadSchema":[{"nullable":false,"name":"score","type":"number","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_MEFW8FY8G0480AAM52QHFCCVMF"},{"from":"idle","to":"idle","event":"SCORE","eventId":"evt_P7EVDZ8HTG8X846N9ERN9MP2DR","effects":[["let",[["dot",["array/sum",["array/map",["array/range",["array/len","@payload.a"]],["fn","i",["*",["default",["array/nth","@payload.a","@i"],0],["default",["array/nth","@payload.b","@i"],0]]]]]],["norms",["*",["default",["math/sqrt",["array/sum",["array/map","@payload.a",["fn","x",["*","@x","@x"]]]]],0],["default",["math/sqrt",["array/sum",["array/map","@payload.b",["fn","x",["*","@x","@x"]]]]],0]]]],["set","@entity.score",["if",[">","@norms",0],["default",["/","@dot","@norms"],0],0]]],["emit","SCORED",{"score":"@entity.score"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP","fingerprint":"c0e9cc012c440c8fcc3bfb3192a5b1981ff4c41ec029f00959b49669f6ceb78f"}}],"pages":[{"name":"SimilarityStart","id":"pag_4Q78FPK32AHH5FKJC0AEZ4P61K","path":"","protocol":"boot","traits":[{"ref":"Score","refId":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"}]}]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_KGRV0RM9974MKMJEXR0Q6GW7CB":{"id":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB","kind":"entity","bakedName":"Pair","curName":"Pair","renames":[],"owner":"workspace"},"evt_MEFW8FY8G0480AAM52QHFCCVMF":{"id":"evt_MEFW8FY8G0480AAM52QHFCCVMF","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"},"evt_P7EVDZ8HTG8X846N9ERN9MP2DR":{"id":"evt_P7EVDZ8HTG8X846N9ERN9MP2DR","kind":"event","bakedName":"SCORE","curName":"SCORE","renames":[],"owner":"workspace","parent":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"},"evt_S7JSMRY1WS0YCS8C47R613GDQ2":{"id":"evt_S7JSMRY1WS0YCS8C47R613GDQ2","kind":"event","bakedName":"SCORED","curName":"SCORED","renames":[],"owner":"workspace","parent":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"},"orb_9Z52VGBWDNY6TJ1QAKE5MT8YJ3":{"id":"orb_9Z52VGBWDNY6TJ1QAKE5MT8YJ3","kind":"orbital","bakedName":"Similarity","curName":"Similarity","renames":[],"owner":"workspace"},"pag_4Q78FPK32AHH5FKJC0AEZ4P61K":{"id":"pag_4Q78FPK32AHH5FKJC0AEZ4P61K","kind":"page","bakedName":"SimilarityStart","curName":"SimilarityStart","renames":[],"owner":"workspace"},"trt_GBABA7R3E91Q4WR5SFN1T3ESMP":{"id":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP","kind":"trait","bakedName":"Score","curName":"Score","renames":[],"owner":"workspace"}}}}
1
+ {"typeContractVersion":1,"name":"cosine-example","version":"1.0.0","description":"Course example of cosine similarity between two number vectors in one client trait, used as a native renderer parity example against the kernel's answers.","orbitals":[{"name":"Similarity","id":"orb_9Z52VGBWDNY6TJ1QAKE5MT8YJ3","entity":{"name":"Pair","id":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"score","type":"number","default":0}]},"traits":[{"name":"Score","id":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP","effectRow":[{"kind":"emit","resource":"SCORED"},{"kind":"set","resource":"@entity.score"}],"linkedEntity":"Pair","linkedEntityId":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB","entityRefIds":{"Pair":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB"},"emits":[{"event":"SCORED","eventId":"evt_S7JSMRY1WS0YCS8C47R613GDQ2","description":"The cosine similarity of the two vectors.","scope":"external","payloadSchema":[{"nullable":false,"name":"score","type":"number","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_MEFW8FY8G0480AAM52QHFCCVMF","name":"Initialize"},{"key":"SCORE","id":"evt_P7EVDZ8HTG8X846N9ERN9MP2DR","name":"Score","description":"Two embedding vectors of equal length.","payloadSchema":[{"nullable":false,"name":"a","type":"[number]","required":true,"items":{"nullable":false,"name":"","type":"number"}},{"nullable":false,"name":"b","type":"[number]","required":true,"items":{"nullable":false,"name":"","type":"number"}}],"listened":true},{"key":"SCORED","id":"evt_S7JSMRY1WS0YCS8C47R613GDQ2","name":"Scored","description":"The cosine similarity of the two vectors.","payloadSchema":[{"nullable":false,"name":"score","type":"number","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_MEFW8FY8G0480AAM52QHFCCVMF"},{"from":"idle","to":"idle","event":"SCORE","eventId":"evt_P7EVDZ8HTG8X846N9ERN9MP2DR","effects":[["let",[["dot",["array/sum",["array/map",["array/range",["array/len","@payload.a"]],["fn","i",["*",["default",["array/nth","@payload.a","@i"],0],["default",["array/nth","@payload.b","@i"],0]]]]]],["norms",["*",["default",["math/sqrt",["array/sum",["array/map","@payload.a",["fn","x",["*","@x","@x"]]]]],0],["default",["math/sqrt",["array/sum",["array/map","@payload.b",["fn","x",["*","@x","@x"]]]]],0]]]],["set","@entity.score",["if",[">","@norms",0],["default",["/","@dot","@norms"],0],0]]],["emit","SCORED",{"score":"@entity.score"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP","fingerprint":"c0e9cc012c440c8fcc3bfb3192a5b1981ff4c41ec029f00959b49669f6ceb78f"}}],"pages":[{"name":"SimilarityStart","id":"pag_4Q78FPK32AHH5FKJC0AEZ4P61K","path":"","protocol":"boot","traits":[{"ref":"Score","refId":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"}]}]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_KGRV0RM9974MKMJEXR0Q6GW7CB":{"id":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB","kind":"entity","bakedName":"Pair","curName":"Pair","renames":[],"owner":"workspace"},"evt_MEFW8FY8G0480AAM52QHFCCVMF":{"id":"evt_MEFW8FY8G0480AAM52QHFCCVMF","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"},"evt_P7EVDZ8HTG8X846N9ERN9MP2DR":{"id":"evt_P7EVDZ8HTG8X846N9ERN9MP2DR","kind":"event","bakedName":"SCORE","curName":"SCORE","renames":[],"owner":"workspace","parent":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"},"evt_S7JSMRY1WS0YCS8C47R613GDQ2":{"id":"evt_S7JSMRY1WS0YCS8C47R613GDQ2","kind":"event","bakedName":"SCORED","curName":"SCORED","renames":[],"owner":"workspace","parent":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"},"orb_9Z52VGBWDNY6TJ1QAKE5MT8YJ3":{"id":"orb_9Z52VGBWDNY6TJ1QAKE5MT8YJ3","kind":"orbital","bakedName":"Similarity","curName":"Similarity","renames":[],"owner":"workspace"},"pag_4Q78FPK32AHH5FKJC0AEZ4P61K":{"id":"pag_4Q78FPK32AHH5FKJC0AEZ4P61K","kind":"page","bakedName":"SimilarityStart","curName":"SimilarityStart","renames":[],"owner":"workspace"},"trt_GBABA7R3E91Q4WR5SFN1T3ESMP":{"id":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP","kind":"trait","bakedName":"Score","curName":"Score","renames":[],"owner":"workspace"}}}}
@@ -1 +1 @@
1
- {"typeContractVersion":1,"name":"cosine-example","version":"1.0.0","orbitals":[{"name":"HttpServerOrbital","id":"orb_D48TPVH5HNJRTY21870SH8D66J","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":"Server.orbitals.HttpServerOrbital.entity","traits":[],"reference":{"ref":"Server.orbitals.HttpServerOrbital","config":{"host":{"nullable":false,"type":"unknown","default":"127.0.0.1"},"port":{"nullable":false,"type":"unknown","default":4999},"portFromEnv":{"nullable":false,"type":"unknown","default":false}}}},{"name":"Similarity","id":"orb_9Z52VGBWDNY6TJ1QAKE5MT8YJ3","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":{"name":"Pair","id":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"score","type":"number","default":0}]},"traits":[{"name":"Score","id":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP","effectRow":[{"kind":"emit","resource":"SCORED"},{"kind":"set","resource":"@entity.score"}],"linkedEntity":"Pair","linkedEntityId":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB","entityRefIds":{"Pair":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB"},"emits":[{"event":"SCORED","eventId":"evt_S7JSMRY1WS0YCS8C47R613GDQ2","description":"The cosine similarity of the two vectors.","scope":"external","payloadSchema":[{"nullable":false,"name":"score","type":"number","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_MEFW8FY8G0480AAM52QHFCCVMF","name":"Initialize"},{"key":"SCORE","id":"evt_P7EVDZ8HTG8X846N9ERN9MP2DR","name":"Score","description":"Two embedding vectors of equal length.","payloadSchema":[{"nullable":false,"name":"a","type":"[number]","required":true,"items":{"nullable":false,"name":"","type":"number"}},{"nullable":false,"name":"b","type":"[number]","required":true,"items":{"nullable":false,"name":"","type":"number"}}],"listened":true},{"key":"SCORED","id":"evt_S7JSMRY1WS0YCS8C47R613GDQ2","name":"Scored","description":"The cosine similarity of the two vectors.","payloadSchema":[{"nullable":false,"name":"score","type":"number","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_MEFW8FY8G0480AAM52QHFCCVMF"},{"from":"idle","to":"idle","event":"SCORE","eventId":"evt_P7EVDZ8HTG8X846N9ERN9MP2DR","effects":[["let",[["dot",["array/sum",["array/map",["array/range",["array/len","@payload.a"]],["fn","i",["*",["default",["array/nth","@payload.a","@i"],0],["default",["array/nth","@payload.b","@i"],0]]]]]],["norms",["*",["default",["math/sqrt",["array/sum",["array/map","@payload.a",["fn","x",["*","@x","@x"]]]]],0],["default",["math/sqrt",["array/sum",["array/map","@payload.b",["fn","x",["*","@x","@x"]]]]],0]]]],["set","@entity.score",["if",[">","@norms",0],["default",["/","@dot","@norms"],0],0]]],["emit","SCORED",{"score":"@entity.score"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP","fingerprint":"c0e9cc012c440c8fcc3bfb3192a5b1981ff4c41ec029f00959b49669f6ceb78f"}}],"pages":[{"name":"SimilarityStart","id":"pag_4Q78FPK32AHH5FKJC0AEZ4P61K","path":"","protocol":"boot","traits":[{"ref":"Score","refId":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"}]}]}],"osGrants":{"fs":[],"exec":[],"net":[{"target":"127.0.0.1:4999","kinds":["listen"]}],"env":[],"stdio":[],"sys":[],"desktop":[]},"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_KGRV0RM9974MKMJEXR0Q6GW7CB":{"id":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB","kind":"entity","bakedName":"Pair","curName":"Pair","renames":[],"owner":"workspace"},"evt_MEFW8FY8G0480AAM52QHFCCVMF":{"id":"evt_MEFW8FY8G0480AAM52QHFCCVMF","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"},"evt_P7EVDZ8HTG8X846N9ERN9MP2DR":{"id":"evt_P7EVDZ8HTG8X846N9ERN9MP2DR","kind":"event","bakedName":"SCORE","curName":"SCORE","renames":[],"owner":"workspace","parent":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"},"evt_S7JSMRY1WS0YCS8C47R613GDQ2":{"id":"evt_S7JSMRY1WS0YCS8C47R613GDQ2","kind":"event","bakedName":"SCORED","curName":"SCORED","renames":[],"owner":"workspace","parent":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"},"orb_9Z52VGBWDNY6TJ1QAKE5MT8YJ3":{"id":"orb_9Z52VGBWDNY6TJ1QAKE5MT8YJ3","kind":"orbital","bakedName":"Similarity","curName":"Similarity","renames":[],"owner":"workspace"},"orb_D48TPVH5HNJRTY21870SH8D66J":{"id":"orb_D48TPVH5HNJRTY21870SH8D66J","kind":"orbital","bakedName":"HttpServerOrbital","curName":"HttpServerOrbital","renames":[],"owner":"workspace"},"pag_4Q78FPK32AHH5FKJC0AEZ4P61K":{"id":"pag_4Q78FPK32AHH5FKJC0AEZ4P61K","kind":"page","bakedName":"SimilarityStart","curName":"SimilarityStart","renames":[],"owner":"workspace"},"trt_GBABA7R3E91Q4WR5SFN1T3ESMP":{"id":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP","kind":"trait","bakedName":"Score","curName":"Score","renames":[],"owner":"workspace"}}}}
1
+ {"typeContractVersion":1,"name":"cosine-example","version":"1.0.0","description":"Server variant of the course example of cosine similarity between two number vectors in one client trait, composed with the std HTTP server for the native server parity run against the kernel's answers.","orbitals":[{"name":"HttpServerOrbital","id":"orb_D48TPVH5HNJRTY21870SH8D66J","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":"Server.orbitals.HttpServerOrbital.entity","traits":[],"reference":{"ref":"Server.orbitals.HttpServerOrbital","config":{"host":{"nullable":false,"type":"unknown","default":"127.0.0.1"},"port":{"nullable":false,"type":"unknown","default":4999},"portFromEnv":{"nullable":false,"type":"unknown","default":false}}}},{"name":"Similarity","id":"orb_9Z52VGBWDNY6TJ1QAKE5MT8YJ3","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":{"name":"Pair","id":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"score","type":"number","default":0}]},"traits":[{"name":"Score","id":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP","effectRow":[{"kind":"emit","resource":"SCORED"},{"kind":"set","resource":"@entity.score"}],"linkedEntity":"Pair","linkedEntityId":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB","entityRefIds":{"Pair":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB"},"emits":[{"event":"SCORED","eventId":"evt_S7JSMRY1WS0YCS8C47R613GDQ2","description":"The cosine similarity of the two vectors.","scope":"external","payloadSchema":[{"nullable":false,"name":"score","type":"number","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_MEFW8FY8G0480AAM52QHFCCVMF","name":"Initialize"},{"key":"SCORE","id":"evt_P7EVDZ8HTG8X846N9ERN9MP2DR","name":"Score","description":"Two embedding vectors of equal length.","payloadSchema":[{"nullable":false,"name":"a","type":"[number]","required":true,"items":{"nullable":false,"name":"","type":"number"}},{"nullable":false,"name":"b","type":"[number]","required":true,"items":{"nullable":false,"name":"","type":"number"}}],"listened":true},{"key":"SCORED","id":"evt_S7JSMRY1WS0YCS8C47R613GDQ2","name":"Scored","description":"The cosine similarity of the two vectors.","payloadSchema":[{"nullable":false,"name":"score","type":"number","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_MEFW8FY8G0480AAM52QHFCCVMF"},{"from":"idle","to":"idle","event":"SCORE","eventId":"evt_P7EVDZ8HTG8X846N9ERN9MP2DR","effects":[["let",[["dot",["array/sum",["array/map",["array/range",["array/len","@payload.a"]],["fn","i",["*",["default",["array/nth","@payload.a","@i"],0],["default",["array/nth","@payload.b","@i"],0]]]]]],["norms",["*",["default",["math/sqrt",["array/sum",["array/map","@payload.a",["fn","x",["*","@x","@x"]]]]],0],["default",["math/sqrt",["array/sum",["array/map","@payload.b",["fn","x",["*","@x","@x"]]]]],0]]]],["set","@entity.score",["if",[">","@norms",0],["default",["/","@dot","@norms"],0],0]]],["emit","SCORED",{"score":"@entity.score"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP","fingerprint":"c0e9cc012c440c8fcc3bfb3192a5b1981ff4c41ec029f00959b49669f6ceb78f"}}],"pages":[{"name":"SimilarityStart","id":"pag_4Q78FPK32AHH5FKJC0AEZ4P61K","path":"","protocol":"boot","traits":[{"ref":"Score","refId":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"}]}]}],"osGrants":{"fs":[],"exec":[],"net":[{"target":"127.0.0.1:4999","kinds":["listen"]}],"env":[],"stdio":[],"sys":[],"desktop":[]},"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_KGRV0RM9974MKMJEXR0Q6GW7CB":{"id":"ent_KGRV0RM9974MKMJEXR0Q6GW7CB","kind":"entity","bakedName":"Pair","curName":"Pair","renames":[],"owner":"workspace"},"evt_MEFW8FY8G0480AAM52QHFCCVMF":{"id":"evt_MEFW8FY8G0480AAM52QHFCCVMF","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"},"evt_P7EVDZ8HTG8X846N9ERN9MP2DR":{"id":"evt_P7EVDZ8HTG8X846N9ERN9MP2DR","kind":"event","bakedName":"SCORE","curName":"SCORE","renames":[],"owner":"workspace","parent":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"},"evt_S7JSMRY1WS0YCS8C47R613GDQ2":{"id":"evt_S7JSMRY1WS0YCS8C47R613GDQ2","kind":"event","bakedName":"SCORED","curName":"SCORED","renames":[],"owner":"workspace","parent":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP"},"orb_9Z52VGBWDNY6TJ1QAKE5MT8YJ3":{"id":"orb_9Z52VGBWDNY6TJ1QAKE5MT8YJ3","kind":"orbital","bakedName":"Similarity","curName":"Similarity","renames":[],"owner":"workspace"},"orb_D48TPVH5HNJRTY21870SH8D66J":{"id":"orb_D48TPVH5HNJRTY21870SH8D66J","kind":"orbital","bakedName":"HttpServerOrbital","curName":"HttpServerOrbital","renames":[],"owner":"workspace"},"pag_4Q78FPK32AHH5FKJC0AEZ4P61K":{"id":"pag_4Q78FPK32AHH5FKJC0AEZ4P61K","kind":"page","bakedName":"SimilarityStart","curName":"SimilarityStart","renames":[],"owner":"workspace"},"trt_GBABA7R3E91Q4WR5SFN1T3ESMP":{"id":"trt_GBABA7R3E91Q4WR5SFN1T3ESMP","kind":"trait","bakedName":"Score","curName":"Score","renames":[],"owner":"workspace"}}}}
@@ -1 +1 @@
1
- {"typeContractVersion":1,"name":"recall-example","version":"1.0.0","orbitals":[{"name":"Retrieval","id":"orb_7MPZG83SDHWPRTJGN9J3XZ20BM","entity":{"name":"Eval","id":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"recall","type":"number","default":0}]},"traits":[{"name":"RecallAtK","id":"trt_7H4P3F5ASSNCWJKSXGNJKG988M","effectRow":[{"kind":"emit","resource":"NOT_SCORED"},{"kind":"emit","resource":"SCORED"},{"kind":"set","resource":"@entity.recall"}],"linkedEntity":"Eval","linkedEntityId":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST","entityRefIds":{"Eval":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST"},"emits":[{"event":"SCORED","eventId":"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H","description":"Share of the relevant documents found in the first k retrieved.","scope":"external","payloadSchema":[{"nullable":false,"name":"recall","type":"number","required":true}]},{"event":"NOT_SCORED","eventId":"evt_23QCJJJSPPCVBFX96X71NTGCQX","description":"The question has no relevant documents, so recall is undefined.","scope":"external","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_AG0DB5985YM2Z8EMS1NF8N0GRE","name":"Initialize"},{"key":"SCORE","id":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","name":"Score","description":"The relevant document ids, the retrieved ids in rank order, and k.","payloadSchema":[{"nullable":false,"name":"relevant","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"retrieved","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"k","type":"number","required":true}],"listened":true},{"key":"SCORED","id":"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H","name":"Scored","description":"Share of the relevant documents found in the first k retrieved.","payloadSchema":[{"nullable":false,"name":"recall","type":"number","required":true}]},{"key":"NOT_SCORED","id":"evt_23QCJJJSPPCVBFX96X71NTGCQX","name":"Not Scored","description":"The question has no relevant documents, so recall is undefined.","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_AG0DB5985YM2Z8EMS1NF8N0GRE"},{"from":"idle","to":"idle","event":"SCORE","eventId":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","guard":[">",["array/len","@payload.relevant"],0],"effects":[["set","@entity.recall",["default",["/",["array/len",["array/filter","@payload.relevant",["fn","d",["array/includes",["array/slice","@payload.retrieved",0,"@payload.k"],"@d"]]]],["array/len","@payload.relevant"]],0]],["emit","SCORED",{"recall":"@entity.recall"}]]},{"from":"idle","to":"idle","event":"SCORE","eventId":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","guard":["==",["array/len","@payload.relevant"],0],"effects":[["emit","NOT_SCORED",{"reason":"no relevant documents for this question"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_7H4P3F5ASSNCWJKSXGNJKG988M","fingerprint":"4228881584fec7f4a7d3d0881831985c4e9ebcab91c740100b0468bacac27711"}}],"pages":[{"name":"RetrievalStart","id":"pag_G6TRXAVKZVSZXQS03B8R6A68EP","path":"","protocol":"boot","traits":[{"ref":"RecallAtK","refId":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"}]}]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST":{"id":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST","kind":"entity","bakedName":"Eval","curName":"Eval","renames":[],"owner":"workspace"},"evt_23QCJJJSPPCVBFX96X71NTGCQX":{"id":"evt_23QCJJJSPPCVBFX96X71NTGCQX","kind":"event","bakedName":"NOT_SCORED","curName":"NOT_SCORED","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"evt_50TSTZ2Z14FGJ34P6RNV55GP7H":{"id":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","kind":"event","bakedName":"SCORE","curName":"SCORE","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H":{"id":"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H","kind":"event","bakedName":"SCORED","curName":"SCORED","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"evt_AG0DB5985YM2Z8EMS1NF8N0GRE":{"id":"evt_AG0DB5985YM2Z8EMS1NF8N0GRE","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"orb_7MPZG83SDHWPRTJGN9J3XZ20BM":{"id":"orb_7MPZG83SDHWPRTJGN9J3XZ20BM","kind":"orbital","bakedName":"Retrieval","curName":"Retrieval","renames":[],"owner":"workspace"},"pag_G6TRXAVKZVSZXQS03B8R6A68EP":{"id":"pag_G6TRXAVKZVSZXQS03B8R6A68EP","kind":"page","bakedName":"RetrievalStart","curName":"RetrievalStart","renames":[],"owner":"workspace"},"trt_7H4P3F5ASSNCWJKSXGNJKG988M":{"id":"trt_7H4P3F5ASSNCWJKSXGNJKG988M","kind":"trait","bakedName":"RecallAtK","curName":"RecallAtK","renames":[],"owner":"workspace"}}}}
1
+ {"typeContractVersion":1,"name":"recall-example","version":"1.0.0","description":"Course example of recall at k, the share of relevant document ids found in the first k retrieved, in one client trait, used as a native renderer parity example against the kernel's answers.","orbitals":[{"name":"Retrieval","id":"orb_7MPZG83SDHWPRTJGN9J3XZ20BM","entity":{"name":"Eval","id":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"recall","type":"number","default":0}]},"traits":[{"name":"RecallAtK","id":"trt_7H4P3F5ASSNCWJKSXGNJKG988M","effectRow":[{"kind":"emit","resource":"NOT_SCORED"},{"kind":"emit","resource":"SCORED"},{"kind":"set","resource":"@entity.recall"}],"linkedEntity":"Eval","linkedEntityId":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST","entityRefIds":{"Eval":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST"},"emits":[{"event":"SCORED","eventId":"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H","description":"Share of the relevant documents found in the first k retrieved.","scope":"external","payloadSchema":[{"nullable":false,"name":"recall","type":"number","required":true}]},{"event":"NOT_SCORED","eventId":"evt_23QCJJJSPPCVBFX96X71NTGCQX","description":"The question has no relevant documents, so recall is undefined.","scope":"external","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_AG0DB5985YM2Z8EMS1NF8N0GRE","name":"Initialize"},{"key":"SCORE","id":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","name":"Score","description":"The relevant document ids, the retrieved ids in rank order, and k.","payloadSchema":[{"nullable":false,"name":"relevant","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"retrieved","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"k","type":"number","required":true}],"listened":true},{"key":"SCORED","id":"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H","name":"Scored","description":"Share of the relevant documents found in the first k retrieved.","payloadSchema":[{"nullable":false,"name":"recall","type":"number","required":true}]},{"key":"NOT_SCORED","id":"evt_23QCJJJSPPCVBFX96X71NTGCQX","name":"Not Scored","description":"The question has no relevant documents, so recall is undefined.","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_AG0DB5985YM2Z8EMS1NF8N0GRE"},{"from":"idle","to":"idle","event":"SCORE","eventId":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","guard":[">",["array/len","@payload.relevant"],0],"effects":[["set","@entity.recall",["default",["/",["array/len",["array/filter","@payload.relevant",["fn","d",["array/includes",["array/slice","@payload.retrieved",0,"@payload.k"],"@d"]]]],["array/len","@payload.relevant"]],0]],["emit","SCORED",{"recall":"@entity.recall"}]]},{"from":"idle","to":"idle","event":"SCORE","eventId":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","guard":["==",["array/len","@payload.relevant"],0],"effects":[["emit","NOT_SCORED",{"reason":"no relevant documents for this question"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_7H4P3F5ASSNCWJKSXGNJKG988M","fingerprint":"4228881584fec7f4a7d3d0881831985c4e9ebcab91c740100b0468bacac27711"}}],"pages":[{"name":"RetrievalStart","id":"pag_G6TRXAVKZVSZXQS03B8R6A68EP","path":"","protocol":"boot","traits":[{"ref":"RecallAtK","refId":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"}]}]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST":{"id":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST","kind":"entity","bakedName":"Eval","curName":"Eval","renames":[],"owner":"workspace"},"evt_23QCJJJSPPCVBFX96X71NTGCQX":{"id":"evt_23QCJJJSPPCVBFX96X71NTGCQX","kind":"event","bakedName":"NOT_SCORED","curName":"NOT_SCORED","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"evt_50TSTZ2Z14FGJ34P6RNV55GP7H":{"id":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","kind":"event","bakedName":"SCORE","curName":"SCORE","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H":{"id":"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H","kind":"event","bakedName":"SCORED","curName":"SCORED","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"evt_AG0DB5985YM2Z8EMS1NF8N0GRE":{"id":"evt_AG0DB5985YM2Z8EMS1NF8N0GRE","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"orb_7MPZG83SDHWPRTJGN9J3XZ20BM":{"id":"orb_7MPZG83SDHWPRTJGN9J3XZ20BM","kind":"orbital","bakedName":"Retrieval","curName":"Retrieval","renames":[],"owner":"workspace"},"pag_G6TRXAVKZVSZXQS03B8R6A68EP":{"id":"pag_G6TRXAVKZVSZXQS03B8R6A68EP","kind":"page","bakedName":"RetrievalStart","curName":"RetrievalStart","renames":[],"owner":"workspace"},"trt_7H4P3F5ASSNCWJKSXGNJKG988M":{"id":"trt_7H4P3F5ASSNCWJKSXGNJKG988M","kind":"trait","bakedName":"RecallAtK","curName":"RecallAtK","renames":[],"owner":"workspace"}}}}
@@ -1 +1 @@
1
- {"typeContractVersion":1,"name":"recall-example","version":"1.0.0","orbitals":[{"name":"HttpServerOrbital","id":"orb_JYJFNZ75PZJVFZVQDC4BMWFDMV","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":"Server.orbitals.HttpServerOrbital.entity","traits":[],"reference":{"ref":"Server.orbitals.HttpServerOrbital","config":{"host":{"nullable":false,"type":"unknown","default":"127.0.0.1"},"port":{"nullable":false,"type":"unknown","default":4999},"portFromEnv":{"nullable":false,"type":"unknown","default":false}}}},{"name":"Retrieval","id":"orb_7MPZG83SDHWPRTJGN9J3XZ20BM","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":{"name":"Eval","id":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"recall","type":"number","default":0}]},"traits":[{"name":"RecallAtK","id":"trt_7H4P3F5ASSNCWJKSXGNJKG988M","effectRow":[{"kind":"emit","resource":"NOT_SCORED"},{"kind":"emit","resource":"SCORED"},{"kind":"set","resource":"@entity.recall"}],"linkedEntity":"Eval","linkedEntityId":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST","entityRefIds":{"Eval":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST"},"emits":[{"event":"SCORED","eventId":"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H","description":"Share of the relevant documents found in the first k retrieved.","scope":"external","payloadSchema":[{"nullable":false,"name":"recall","type":"number","required":true}]},{"event":"NOT_SCORED","eventId":"evt_23QCJJJSPPCVBFX96X71NTGCQX","description":"The question has no relevant documents, so recall is undefined.","scope":"external","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_AG0DB5985YM2Z8EMS1NF8N0GRE","name":"Initialize"},{"key":"SCORE","id":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","name":"Score","description":"The relevant document ids, the retrieved ids in rank order, and k.","payloadSchema":[{"nullable":false,"name":"relevant","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"retrieved","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"k","type":"number","required":true}],"listened":true},{"key":"SCORED","id":"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H","name":"Scored","description":"Share of the relevant documents found in the first k retrieved.","payloadSchema":[{"nullable":false,"name":"recall","type":"number","required":true}]},{"key":"NOT_SCORED","id":"evt_23QCJJJSPPCVBFX96X71NTGCQX","name":"Not Scored","description":"The question has no relevant documents, so recall is undefined.","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_AG0DB5985YM2Z8EMS1NF8N0GRE"},{"from":"idle","to":"idle","event":"SCORE","eventId":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","guard":[">",["array/len","@payload.relevant"],0],"effects":[["set","@entity.recall",["default",["/",["array/len",["array/filter","@payload.relevant",["fn","d",["array/includes",["array/slice","@payload.retrieved",0,"@payload.k"],"@d"]]]],["array/len","@payload.relevant"]],0]],["emit","SCORED",{"recall":"@entity.recall"}]]},{"from":"idle","to":"idle","event":"SCORE","eventId":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","guard":["==",["array/len","@payload.relevant"],0],"effects":[["emit","NOT_SCORED",{"reason":"no relevant documents for this question"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_7H4P3F5ASSNCWJKSXGNJKG988M","fingerprint":"4228881584fec7f4a7d3d0881831985c4e9ebcab91c740100b0468bacac27711"}}],"pages":[{"name":"RetrievalStart","id":"pag_G6TRXAVKZVSZXQS03B8R6A68EP","path":"","protocol":"boot","traits":[{"ref":"RecallAtK","refId":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"}]}]}],"osGrants":{"fs":[],"exec":[],"net":[{"target":"127.0.0.1:4999","kinds":["listen"]}],"env":[],"stdio":[],"sys":[],"desktop":[]},"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST":{"id":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST","kind":"entity","bakedName":"Eval","curName":"Eval","renames":[],"owner":"workspace"},"evt_23QCJJJSPPCVBFX96X71NTGCQX":{"id":"evt_23QCJJJSPPCVBFX96X71NTGCQX","kind":"event","bakedName":"NOT_SCORED","curName":"NOT_SCORED","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"evt_50TSTZ2Z14FGJ34P6RNV55GP7H":{"id":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","kind":"event","bakedName":"SCORE","curName":"SCORE","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H":{"id":"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H","kind":"event","bakedName":"SCORED","curName":"SCORED","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"evt_AG0DB5985YM2Z8EMS1NF8N0GRE":{"id":"evt_AG0DB5985YM2Z8EMS1NF8N0GRE","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"orb_7MPZG83SDHWPRTJGN9J3XZ20BM":{"id":"orb_7MPZG83SDHWPRTJGN9J3XZ20BM","kind":"orbital","bakedName":"Retrieval","curName":"Retrieval","renames":[],"owner":"workspace"},"orb_JYJFNZ75PZJVFZVQDC4BMWFDMV":{"id":"orb_JYJFNZ75PZJVFZVQDC4BMWFDMV","kind":"orbital","bakedName":"HttpServerOrbital","curName":"HttpServerOrbital","renames":[],"owner":"workspace"},"pag_G6TRXAVKZVSZXQS03B8R6A68EP":{"id":"pag_G6TRXAVKZVSZXQS03B8R6A68EP","kind":"page","bakedName":"RetrievalStart","curName":"RetrievalStart","renames":[],"owner":"workspace"},"trt_7H4P3F5ASSNCWJKSXGNJKG988M":{"id":"trt_7H4P3F5ASSNCWJKSXGNJKG988M","kind":"trait","bakedName":"RecallAtK","curName":"RecallAtK","renames":[],"owner":"workspace"}}}}
1
+ {"typeContractVersion":1,"name":"recall-example","version":"1.0.0","description":"Server variant of the course example of recall at k, the share of relevant document ids found in the first k retrieved, in one client trait, composed with the std HTTP server for the native server parity run against the kernel's answers.","orbitals":[{"name":"HttpServerOrbital","id":"orb_JYJFNZ75PZJVFZVQDC4BMWFDMV","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":"Server.orbitals.HttpServerOrbital.entity","traits":[],"reference":{"ref":"Server.orbitals.HttpServerOrbital","config":{"host":{"nullable":false,"type":"unknown","default":"127.0.0.1"},"port":{"nullable":false,"type":"unknown","default":4999},"portFromEnv":{"nullable":false,"type":"unknown","default":false}}}},{"name":"Retrieval","id":"orb_7MPZG83SDHWPRTJGN9J3XZ20BM","uses":[{"from":"std/behaviors/std-http-server","as":"Server"}],"entity":{"name":"Eval","id":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"recall","type":"number","default":0}]},"traits":[{"name":"RecallAtK","id":"trt_7H4P3F5ASSNCWJKSXGNJKG988M","effectRow":[{"kind":"emit","resource":"NOT_SCORED"},{"kind":"emit","resource":"SCORED"},{"kind":"set","resource":"@entity.recall"}],"linkedEntity":"Eval","linkedEntityId":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST","entityRefIds":{"Eval":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST"},"emits":[{"event":"SCORED","eventId":"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H","description":"Share of the relevant documents found in the first k retrieved.","scope":"external","payloadSchema":[{"nullable":false,"name":"recall","type":"number","required":true}]},{"event":"NOT_SCORED","eventId":"evt_23QCJJJSPPCVBFX96X71NTGCQX","description":"The question has no relevant documents, so recall is undefined.","scope":"external","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_AG0DB5985YM2Z8EMS1NF8N0GRE","name":"Initialize"},{"key":"SCORE","id":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","name":"Score","description":"The relevant document ids, the retrieved ids in rank order, and k.","payloadSchema":[{"nullable":false,"name":"relevant","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"retrieved","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"k","type":"number","required":true}],"listened":true},{"key":"SCORED","id":"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H","name":"Scored","description":"Share of the relevant documents found in the first k retrieved.","payloadSchema":[{"nullable":false,"name":"recall","type":"number","required":true}]},{"key":"NOT_SCORED","id":"evt_23QCJJJSPPCVBFX96X71NTGCQX","name":"Not Scored","description":"The question has no relevant documents, so recall is undefined.","payloadSchema":[{"nullable":false,"name":"reason","type":"string","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_AG0DB5985YM2Z8EMS1NF8N0GRE"},{"from":"idle","to":"idle","event":"SCORE","eventId":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","guard":[">",["array/len","@payload.relevant"],0],"effects":[["set","@entity.recall",["default",["/",["array/len",["array/filter","@payload.relevant",["fn","d",["array/includes",["array/slice","@payload.retrieved",0,"@payload.k"],"@d"]]]],["array/len","@payload.relevant"]],0]],["emit","SCORED",{"recall":"@entity.recall"}]]},{"from":"idle","to":"idle","event":"SCORE","eventId":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","guard":["==",["array/len","@payload.relevant"],0],"effects":[["emit","NOT_SCORED",{"reason":"no relevant documents for this question"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_7H4P3F5ASSNCWJKSXGNJKG988M","fingerprint":"4228881584fec7f4a7d3d0881831985c4e9ebcab91c740100b0468bacac27711"}}],"pages":[{"name":"RetrievalStart","id":"pag_G6TRXAVKZVSZXQS03B8R6A68EP","path":"","protocol":"boot","traits":[{"ref":"RecallAtK","refId":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"}]}]}],"osGrants":{"fs":[],"exec":[],"net":[{"target":"127.0.0.1:4999","kinds":["listen"]}],"env":[],"stdio":[],"sys":[],"desktop":[]},"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST":{"id":"ent_1ZRKWJ2CEK679PAFHAYEF9ZXST","kind":"entity","bakedName":"Eval","curName":"Eval","renames":[],"owner":"workspace"},"evt_23QCJJJSPPCVBFX96X71NTGCQX":{"id":"evt_23QCJJJSPPCVBFX96X71NTGCQX","kind":"event","bakedName":"NOT_SCORED","curName":"NOT_SCORED","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"evt_50TSTZ2Z14FGJ34P6RNV55GP7H":{"id":"evt_50TSTZ2Z14FGJ34P6RNV55GP7H","kind":"event","bakedName":"SCORE","curName":"SCORE","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H":{"id":"evt_A4FE2WHV5JXJS5MNAHKB8R7B5H","kind":"event","bakedName":"SCORED","curName":"SCORED","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"evt_AG0DB5985YM2Z8EMS1NF8N0GRE":{"id":"evt_AG0DB5985YM2Z8EMS1NF8N0GRE","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_7H4P3F5ASSNCWJKSXGNJKG988M"},"orb_7MPZG83SDHWPRTJGN9J3XZ20BM":{"id":"orb_7MPZG83SDHWPRTJGN9J3XZ20BM","kind":"orbital","bakedName":"Retrieval","curName":"Retrieval","renames":[],"owner":"workspace"},"orb_JYJFNZ75PZJVFZVQDC4BMWFDMV":{"id":"orb_JYJFNZ75PZJVFZVQDC4BMWFDMV","kind":"orbital","bakedName":"HttpServerOrbital","curName":"HttpServerOrbital","renames":[],"owner":"workspace"},"pag_G6TRXAVKZVSZXQS03B8R6A68EP":{"id":"pag_G6TRXAVKZVSZXQS03B8R6A68EP","kind":"page","bakedName":"RetrievalStart","curName":"RetrievalStart","renames":[],"owner":"workspace"},"trt_7H4P3F5ASSNCWJKSXGNJKG988M":{"id":"trt_7H4P3F5ASSNCWJKSXGNJKG988M","kind":"trait","bakedName":"RecallAtK","curName":"RecallAtK","renames":[],"owner":"workspace"}}}}