@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,"types":{"GrAnswer":[{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"orbital","type":"string"},{"nullable":false,"name":"call","type":"string"},{"nullable":false,"name":"entry","type":"string"},{"nullable":false,"name":"site","type":"string","required":true},{"nullable":false,"name":"grant","type":"string"},{"nullable":false,"name":"app","type":"boolean"},{"nullable":false,"name":"argument","type":"number"},{"nullable":false,"name":"via","type":"string"}],"items":{"nullable":false,"name":"","type":"GrFinding","projectedFrom":{"type":"GrFinding"}}}],"GrFinding":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"orbital","type":"string"},{"nullable":false,"name":"call","type":"string"},{"nullable":false,"name":"entry","type":"string"},{"nullable":false,"name":"site","type":"string","required":true},{"nullable":false,"name":"grant","type":"string"},{"nullable":false,"name":"app","type":"boolean"},{"nullable":false,"name":"argument","type":"number"},{"nullable":false,"name":"via","type":"string"}],"GrMapped":[{"nullable":false,"name":"final","type":"boolean","required":true},{"nullable":false,"name":"finding","type":"object","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"projectedFrom":{"type":"OrbFinding"}}],"GrNode":[{"nullable":false,"name":"","type":"union","properties":[{"nullable":false,"name":"string","type":"string"},{"nullable":false,"name":"number","type":"number"},{"nullable":false,"name":"boolean","type":"boolean"},{"nullable":false,"name":"array","type":"[GrNode]","items":{"nullable":true,"name":"","type":"GrNode","projectedFrom":{"type":"GrNode"}}},{"nullable":false,"name":"object","type":"Map<string,GrNode>","items":{"nullable":true,"name":"","type":"GrNode","projectedFrom":{"type":"GrNode"}}}]}],"GrTagged":[{"nullable":false,"name":"final","type":"boolean","required":true},{"nullable":false,"name":"f","type":"object","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"orbital","type":"string"},{"nullable":false,"name":"call","type":"string"},{"nullable":false,"name":"entry","type":"string"},{"nullable":false,"name":"site","type":"string","required":true},{"nullable":false,"name":"grant","type":"string"},{"nullable":false,"name":"app","type":"boolean"},{"nullable":false,"name":"argument","type":"number"},{"nullable":false,"name":"via","type":"string"}],"projectedFrom":{"type":"GrFinding"}}],"LintCodeDecl":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"LintOsGrantsCodes":[{"nullable":false,"name":"missing","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"unused","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"entryInvalid","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"targetNotStatic","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}}],"OrbCommandArgs":[{"nullable":false,"name":"argv","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"cwd","type":"string","required":true}],"OrbFinding":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"RcKept":[{"nullable":false,"name":"orbital","type":"number","required":true},{"nullable":false,"name":"traits","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}}],"RcRefRow":[{"nullable":false,"name":"kind","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"callSite","type":"GrNode","required":true,"properties":[],"projectedFrom":{"type":"GrNode"}},{"nullable":false,"name":"declaration","type":"GrNode","required":true,"properties":[],"projectedFrom":{"type":"GrNode"}}]},"name":"std-orb-lint-os-grants","version":"1.0.0","description":"std-orb-lint-os-grants — the `orb lint os-grants <file>` command, the static os-grant check. It asks the kernel (`program/os-grants`, twice: the program as written, then the finished program) for the typed findings of the file's resolved program and words them: ORB_OS_GRANT_MISSING (an `os/` call the grants of its orbital do not cover), ORB_OS_GRANT_UNUSED (a warning: a granted entry no call uses), ORB_OS_GRANT_ENTRY_INVALID (an entry that can match nothing) and ORB_OS_TARGET_NOT_STATIC (a computed target, so its grant cannot be checked), at the site the kernel names. The finished-program pass answers as the rule os-grants-final, which belongs to `orb validate --final` only. Clean answers `lint os-grants: clean` (status 200, exit 0); findings are status 500, exit 1. Anything but one file argument is the usage (status 400, exit 2); a file the compiler cannot resolve is skipped here: validate reports that failure itself.","orbitals":[{"name":"OrbLintOsGrantsOrbital","id":"orb_X319GQMFZW7ZY40TTDGETGXZ3Y","uses":[{"from":"almadar-std/lint-os-grants","as":"Spec"},{"from":"std/behaviors/std-orb-lint-call-site-input","as":"CsInput"}],"entity":{"name":"OrbLintOsGrantsRun","id":"ent_SFWPGXRAQ35BHZKJHX5YAFEFA6","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"file","type":"string","default":""},{"nullable":false,"name":"pass","type":"string","default":"written"},{"nullable":false,"name":"written","type":"array","default":[],"items":{"nullable":false,"type":"object","properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"orbital":{"nullable":false,"name":"orbital","type":"string","required":false},"call":{"nullable":false,"name":"call","type":"string","required":false},"entry":{"nullable":false,"name":"entry","type":"string","required":false},"site":{"nullable":false,"name":"site","type":"string","required":true},"grant":{"nullable":false,"name":"grant","type":"string","required":false},"app":{"nullable":false,"name":"app","type":"boolean","required":false},"argument":{"nullable":false,"name":"argument","type":"number","required":false},"via":{"nullable":false,"name":"via","type":"string","required":false}},"projectedFrom":{"type":"GrFinding"}}},{"nullable":false,"name":"tagged","type":"array","default":[],"items":{"nullable":false,"type":"object","properties":{"final":{"nullable":false,"name":"final","type":"boolean","required":true},"f":{"nullable":false,"name":"f","type":"object","required":true,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"orbital":{"nullable":false,"name":"orbital","type":"string","required":false},"call":{"nullable":false,"name":"call","type":"string","required":false},"entry":{"nullable":false,"name":"entry","type":"string","required":false},"site":{"nullable":false,"name":"site","type":"string","required":true},"grant":{"nullable":false,"name":"grant","type":"string","required":false},"app":{"nullable":false,"name":"app","type":"boolean","required":false},"argument":{"nullable":false,"name":"argument","type":"number","required":false},"via":{"nullable":false,"name":"via","type":"string","required":false}},"projectedFrom":{"type":"GrFinding"}}},"projectedFrom":{"type":"GrTagged"}}},{"nullable":false,"name":"mapped","type":"array","default":[],"items":{"nullable":false,"type":"object","properties":{"final":{"nullable":false,"name":"final","type":"boolean","required":true},"finding":{"nullable":false,"name":"finding","type":"object","required":true,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"path":{"nullable":false,"name":"path","type":"string","required":true},"message":{"nullable":false,"name":"message","type":"string","required":true},"suggestion":{"nullable":false,"name":"suggestion","type":"string","required":true},"severity":{"nullable":false,"name":"severity","type":"string","required":false,"values":["warning","error"]}},"projectedFrom":{"type":"OrbFinding"}}},"projectedFrom":{"type":"GrMapped"}}},{"nullable":false,"name":"findings","type":"array","default":[],"items":{"nullable":false,"type":"object","properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"path":{"nullable":false,"name":"path","type":"string","required":true},"message":{"nullable":false,"name":"message","type":"string","required":true},"suggestion":{"nullable":false,"name":"suggestion","type":"string","required":true},"severity":{"nullable":false,"name":"severity","type":"string","required":false,"values":["warning","error"]}},"projectedFrom":{"type":"OrbFinding"}}},{"nullable":false,"name":"finalFindings","type":"array","default":[],"items":{"nullable":false,"type":"object","properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"path":{"nullable":false,"name":"path","type":"string","required":true},"message":{"nullable":false,"name":"message","type":"string","required":true},"suggestion":{"nullable":false,"name":"suggestion","type":"string","required":true},"severity":{"nullable":false,"name":"severity","type":"string","required":false,"values":["warning","error"]}},"projectedFrom":{"type":"OrbFinding"}}},{"nullable":false,"name":"shown","type":"array","default":[],"items":{"nullable":false,"type":"object","properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"path":{"nullable":false,"name":"path","type":"string","required":true},"message":{"nullable":false,"name":"message","type":"string","required":true},"suggestion":{"nullable":false,"name":"suggestion","type":"string","required":true},"severity":{"nullable":false,"name":"severity","type":"string","required":false,"values":["warning","error"]}},"projectedFrom":{"type":"OrbFinding"}}}]},"traits":[{"name":"OrbLintOsGrants","id":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M","effectRow":[{"kind":"emit","resource":"LINT_FINISH"},{"kind":"emit","resource":"LINT_FOUND"},{"kind":"emit","resource":"LINT_MAP"},{"kind":"emit","resource":"LINT_SPLIT"},{"kind":"os/realpath"},{"kind":"program/os-grants"},{"kind":"set","resource":"@entity.file"},{"kind":"set","resource":"@entity.finalFindings"},{"kind":"set","resource":"@entity.findings"},{"kind":"set","resource":"@entity.mapped"},{"kind":"set","resource":"@entity.pass"},{"kind":"set","resource":"@entity.tagged"},{"kind":"set","resource":"@entity.written"}],"linkedEntity":"OrbLintOsGrantsRun","linkedEntityId":"ent_SFWPGXRAQ35BHZKJHX5YAFEFA6","entityRefIds":{"OrbLintOsGrantsRun":"ent_SFWPGXRAQ35BHZKJHX5YAFEFA6"},"emits":[{"event":"LINT_FOUND","eventId":"evt_WK1NXMQV1CXGP0AB6H0KSMFYX6","description":"This rule's findings for the file, offered to the lint-all umbrella: the program as written under rule os-grants, the finished program under os-grants-final.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]},{"event":"LINT_FINISH","eventId":"evt_VE222KTKQ69VK69ZAWM9Z6FAB0","description":"Internal: answer with the verdicts.","tier":"internal"},{"event":"LINT_MAP","eventId":"evt_SQ2J7WTYNYFAZ82386JQ4ME7PZ","description":"Internal: word the kernel's findings.","tier":"internal"},{"event":"LINT_SPLIT","eventId":"evt_44BF320DF06QG43D1TYTGQESC8","description":"Internal: split the worded findings by pass.","tier":"internal"}],"listens":[{"event":"LINT_CALL_SITES","eventId":"evt_6GQZ2TFPTKVD9RTRVY7YJDSNH2","triggers":"LINT_CALL_SITES","triggersId":"evt_6GQZ2TFPTKVD9RTRVY7YJDSNH2","source":{"kind":"trait","trait":"CallSiteInput","traitId":"trt_DMYKMC5DG5PR2QY98G9K26243T"}}],"stateMachine":{"states":[{"name":"ready","isInitial":true},{"name":"reading"},{"name":"checking"},{"name":"mapping"}],"events":[{"key":"INIT","id":"evt_XW5XKDPPJJB990YQ1PZZTHY6K6","name":"Initialize"},{"key":"LINT_CALL_SITES","id":"evt_6GQZ2TFPTKVD9RTRVY7YJDSNH2","name":"Lint Call Sites","description":"The call sites input: the file lowered unresolved and each aliased import resolved and lowered.","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true},{"nullable":false,"name":"program","type":"union","required":true,"properties":[{"nullable":false,"name":"string","type":"string"},{"nullable":false,"name":"number","type":"number"},{"nullable":false,"name":"boolean","type":"boolean"},{"nullable":false,"name":"array","type":"[GrNode]","items":{"nullable":true,"name":"","type":"GrNode","projectedFrom":{"type":"GrNode"}}},{"nullable":false,"name":"object","type":"Map<string,GrNode>","items":{"nullable":true,"name":"","type":"GrNode","projectedFrom":{"type":"GrNode"}}}],"projectedFrom":{"type":"GrNode"}},{"nullable":false,"name":"kept","type":"[object]","required":true,"properties":[{"nullable":false,"name":"orbital","type":"number","required":true},{"nullable":false,"name":"traits","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}}],"items":{"nullable":false,"name":"","type":"RcKept","projectedFrom":{"type":"RcKept"}}},{"nullable":false,"name":"references","type":"[object]","required":true,"properties":[{"nullable":false,"name":"kind","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"callSite","type":"GrNode","required":true,"properties":[],"projectedFrom":{"type":"GrNode"}},{"nullable":false,"name":"declaration","type":"GrNode","required":true,"properties":[],"projectedFrom":{"type":"GrNode"}}],"items":{"nullable":false,"name":"","type":"RcRefRow","projectedFrom":{"type":"RcRefRow"}}},{"nullable":true,"name":"stamped","type":"GrNode","projectedFrom":{"type":"GrNode"}}],"listened":true},{"key":"LINT_FINISH","id":"evt_VE222KTKQ69VK69ZAWM9Z6FAB0","name":"Lint Finish","description":"Internal: answer with the verdicts.","tier":"internal","listened":true},{"key":"LINT_CWD","id":"evt_HXHAKJGFE17Q0V5K45GAR66HWS","name":"Lint Cwd","description":"Internal: the working directory.","payloadSchema":[{"nullable":false,"name":"path","type":"string","required":true}],"listened":true},{"key":"LINT_GRANTS_FAILED","id":"evt_XR1VQPCQE1BQ0JXYG7QFKJKFP1","name":"Lint Grants Failed","description":"Internal: the file could not be resolved or checked.","payloadSchema":[{"nullable":false,"name":"error","type":"string"}],"listened":true},{"key":"LINT_CHECKED","id":"evt_RPTHECHW82Y417WM29BJKSG4BX","name":"Lint Checked","description":"Internal: the kernel's findings for one pass.","payloadSchema":[{"nullable":false,"name":"result","type":"object","required":true,"properties":[{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"orbital","type":"string"},{"nullable":false,"name":"call","type":"string"},{"nullable":false,"name":"entry","type":"string"},{"nullable":false,"name":"site","type":"string","required":true},{"nullable":false,"name":"grant","type":"string"},{"nullable":false,"name":"app","type":"boolean"},{"nullable":false,"name":"argument","type":"number"},{"nullable":false,"name":"via","type":"string"}],"items":{"nullable":false,"name":"","type":"GrFinding","projectedFrom":{"type":"GrFinding"}}}],"projectedFrom":{"type":"GrAnswer"}}],"listened":true},{"key":"LINT_MAP","id":"evt_SQ2J7WTYNYFAZ82386JQ4ME7PZ","name":"Lint Map","description":"Internal: word the kernel's findings.","tier":"internal","listened":true},{"key":"LINT_SPLIT","id":"evt_44BF320DF06QG43D1TYTGQESC8","name":"Lint Split","description":"Internal: split the worded findings by pass.","tier":"internal","listened":true},{"key":"LINT_FOUND","id":"evt_WK1NXMQV1CXGP0AB6H0KSMFYX6","name":"Lint Found","description":"This rule's findings for the file, offered to the lint-all umbrella: the program as written under rule os-grants, the finished program under os-grants-final.","tier":"internal","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]}],"transitions":[{"from":"ready","to":"ready","event":"INIT","eventId":"evt_XW5XKDPPJJB990YQ1PZZTHY6K6"},{"from":"ready","to":"reading","event":"LINT_CALL_SITES","eventId":"evt_6GQZ2TFPTKVD9RTRVY7YJDSNH2","effects":[["set","@entity.file","@payload.file"],["set","@entity.pass","written"],["os/realpath",{"anchor":"cwd","path":"."},{"key":"os-grants-cwd","emit":{"success":"LINT_CWD","failure":"LINT_GRANTS_FAILED"}}]]},{"from":"ready","to":"ready","event":"LINT_FINISH","eventId":"evt_VE222KTKQ69VK69ZAWM9Z6FAB0","effects":[["emit","LINT_FOUND",{"rule":"os-grants","scope":"","findings":"@entity.findings"}],["emit","LINT_FOUND",{"rule":"os-grants-final","scope":"","findings":"@entity.finalFindings"}]]},{"from":"reading","to":"reading","event":"INIT","eventId":"evt_XW5XKDPPJJB990YQ1PZZTHY6K6"},{"from":"reading","to":"checking","event":"LINT_CWD","eventId":"evt_HXHAKJGFE17Q0V5K45GAR66HWS","effects":[["set","@entity.file",["if",["os/path-is-absolute","@entity.file"],"@entity.file",["os/path-join","@payload.path","@entity.file"]]],["program/os-grants",null,{"path":["if",["os/path-is-absolute","@entity.file"],"@entity.file",["os/path-join","@payload.path","@entity.file"]],"final":false},{"key":"os-grants-written","emit":{"success":"LINT_CHECKED","failure":"LINT_GRANTS_FAILED"}}]]},{"from":"reading","to":"ready","event":"LINT_GRANTS_FAILED","eventId":"evt_XR1VQPCQE1BQ0JXYG7QFKJKFP1","effects":[["set","@entity.findings",[]],["set","@entity.finalFindings",[]],["emit","LINT_FINISH",{}]]},{"from":"checking","to":"checking","event":"INIT","eventId":"evt_XW5XKDPPJJB990YQ1PZZTHY6K6"},{"from":"checking","to":"checking","event":"LINT_CHECKED","eventId":"evt_RPTHECHW82Y417WM29BJKSG4BX","guard":["=","@entity.pass","written"],"effects":[["set","@entity.written",["object/get","@payload.result","findings"]],["set","@entity.pass","final"],["program/os-grants",null,{"path":"@entity.file","final":true},{"key":"os-grants-final","emit":{"success":"LINT_CHECKED","failure":"LINT_GRANTS_FAILED"}}]]},{"from":"checking","to":"mapping","event":"LINT_CHECKED","eventId":"evt_RPTHECHW82Y417WM29BJKSG4BX","guard":["=","@entity.pass","final"],"effects":[["set","@entity.tagged",["array/concat",["array/map","@entity.written",["fn","f",{"final":false,"f":"@f"}]],["array/map",["object/get","@payload.result","findings"],["fn","f",{"final":true,"f":"@f"}]]]],["emit","LINT_MAP",{}]]},{"from":"checking","to":"ready","event":"LINT_GRANTS_FAILED","eventId":"evt_XR1VQPCQE1BQ0JXYG7QFKJKFP1","effects":[["set","@entity.findings",[]],["set","@entity.finalFindings",[]],["emit","LINT_FINISH",{}]]},{"from":"mapping","to":"mapping","event":"INIT","eventId":"evt_XW5XKDPPJJB990YQ1PZZTHY6K6"},{"from":"mapping","to":"mapping","event":"LINT_MAP","eventId":"evt_SQ2J7WTYNYFAZ82386JQ4ME7PZ","effects":[["set","@entity.mapped",["array/map","@entity.tagged",["fn","x",["let",[["f",["object/get","@x","f"]],["via",["object/get",["object/get","@x","f"],"via",""]],["code",["object/get",["object/get","@x","f"],"code"]],["orbital",["object/get",["object/get","@x","f"],"orbital",""]],["call",["object/get",["object/get","@x","f"],"call",""]],["entry",["object/get",["object/get","@x","f"],"entry",""]],["arg",["object/get",["object/get","@x","f"],"argument",0]]],{"final":["object/get","@x","final"],"finding":{"code":["if",["=","@code","missing"],"@config.codes.missing.code",["if",["=","@code","unused"],"@config.codes.unused.code",["if",["=","@code","entry-invalid"],"@config.codes.entryInvalid.code","@config.codes.targetNotStatic.code"]]],"path":["object/get","@f","site"],"severity":["if",["=","@code","unused"],"warning","error"],"message":["if",["=","@code","missing"],["str/concat","`","@call","` ",["if",["=","@via","config"],"can be given ","needs "],"@entry",["if",["=","@via","config"]," by its config, but orbital "," but orbital "],"@orbital"," does not grant it"],["if",["=","@code","unused"],["str/concat","`","@entry","` is granted to ",["if",["=","@orbital",""],"the program",["str/concat","orbital ","@orbital"]]," but no `os/` call there uses it"],["if",["=","@code","entry-invalid"],"@entry",["if",["=","@via","config-unresolvable"],["str/concat","`","@call","` argument ","@arg"," is read from config in a way the finished program cannot resolve, so its grant cannot be checked"],["if",["=","@via","computed-path"],["str/concat","`","@call","` argument ","@arg"," is a computed path the grant cannot cover: only a file path may be a `str/concat`"],["str/concat","`","@call","` argument ","@arg"," is computed — an `os/` target must be a literal so the grant can be checked at build time"]]]]]],"suggestion":["if",["=","@code","missing"],["str/concat","Add `",["object/get","@f","grant",""],["if",["object/get","@f","app",false],"` to the orbital's bracket (`orbital Name [ … ]`) or the app's","` to the orbital's bracket"]],["if",["=","@code","unused"],"Remove the entry: an unused grant is authority the program does not need",["if",["=","@code","entry-invalid"],"",["if",["=","@via","config-unresolvable"],"Read the target with `@config.<knob>`, `array/nth` and `object/get`, or write it as a literal; a `str/concat` directory prefix must be string knobs and literals ending in `/`",["if",["=","@via","computed-path"],"Write the target as a literal","Write the path, command, host, port or name as a literal; a file path may instead be a `str/concat` that starts with a literal or `@config.<knob>` directory ending in `/`, covered by an fs grant ending in `/**`, or an anchored path `{ anchor: \"cwd\" path: … }` (anchors `exe-dir`, `cwd`, `{ env: \"NAME\" }`) covered by an anchored grant such as `fs: { cwd: \"docs/**\": [read] }`; a host or port may be `{ anchor: { env: \"PORT\" } }` covered by `net: { env HOST, env PORT: [listen] }`"]]]]]}}]]]],["emit","LINT_SPLIT",{}]]},{"from":"mapping","to":"ready","event":"LINT_SPLIT","eventId":"evt_44BF320DF06QG43D1TYTGQESC8","effects":[["set","@entity.findings",["array/map",["array/filter","@entity.mapped",["fn","m",["not",["object/get","@m","final"]]]],["fn","m",["object/get","@m","finding"]]]],["set","@entity.finalFindings",["array/map",["array/filter","@entity.mapped",["fn","m",["object/get","@m","final"]]],["fn","m",["object/get","@m","finding"]]]],["emit","LINT_FINISH",{}]]}]},"config":{"codes":{"nullable":false,"type":"LintOsGrantsCodes","default":{"missing":{"code":"ORB_OS_GRANT_MISSING","category":"os","description":"An os/ call that the grants of its orbital (app level plus its own) do not cover"},"unused":{"code":"ORB_OS_GRANT_UNUSED","category":"os","description":"A granted entry that no os/ call of the orbital (or of the program, at app level) uses; a warning"},"entryInvalid":{"code":"ORB_OS_GRANT_ENTRY_INVALID","category":"os","description":"A declared grant entry that can match nothing"},"targetNotStatic":{"code":"ORB_OS_TARGET_NOT_STATIC","category":"os","description":"An os/ call target that is computed, so its grant cannot be checked at build time"}},"label":"Emitted codes","description":"The finding codes this rule emits, with their category and meaning; the registry is generated from this declaration.","properties":{"missing":{"nullable":false,"name":"missing","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"unused":{"nullable":false,"name":"unused","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"entryInvalid":{"nullable":false,"name":"entryInvalid","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"targetNotStatic":{"nullable":false,"name":"targetNotStatic","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}}},"projectedFrom":{"type":"LintOsGrantsCodes"}}},"dispatch":"optimistic","sourceDeclaration":{"traitId":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M","fingerprint":"2d27b4c5bbe0ed71f6153a7a92fde146ef8a96d86b6440b74159f54b13aeeea7"}},{"name":"OrbLintOsGrantsCli","id":"trt_M2BDKKF08AG45FWH98YVTK3W7A","effectRow":[{"kind":"emit","resource":"LINT_ANSWERED"},{"kind":"emit","resource":"LINT_CALL_SITES_REQUEST"},{"kind":"set","resource":"@entity.shown"}],"linkedEntity":"OrbLintOsGrantsRun","linkedEntityId":"ent_SFWPGXRAQ35BHZKJHX5YAFEFA6","entityRefIds":{"OrbLintOsGrantsRun":"ent_SFWPGXRAQ35BHZKJHX5YAFEFA6"},"emits":[{"event":"LINT_ANSWERED","eventId":"evt_K7K25CV48VJ4DGEQNSRH9TJJQ6","description":"Internal: the command's answer, which the cli hook prints.","tier":"internal","scope":"internal","payloadSchema":[{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"body","type":"string","required":true}]},{"event":"LINT_CALL_SITES_REQUEST","eventId":"evt_PC609C1K9FSMQQ8JA545C0PJB8","description":"Ask the call sites input to read and lower this file.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true},{"nullable":false,"name":"stamp","type":"boolean","required":true},{"nullable":false,"name":"references","type":"boolean","required":true}]},{"event":"LINT_FOUND","eventId":"evt_X0BF6CW2ND1APNK7EE3HSE2KEE","description":"The rule trait's findings for the file.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]},{"event":"LINT_CALL_SITES_UNREAD","eventId":"evt_1KGJ46HP61V30W5Z11BN7CKKXX","description":"The call sites input could not read or lower the file.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true},{"nullable":false,"name":"error","type":"string","required":true}]}],"listens":[{"event":"LINT_FOUND","eventId":"evt_WK1NXMQV1CXGP0AB6H0KSMFYX6","triggers":"LINT_FOUND","triggersId":"evt_X0BF6CW2ND1APNK7EE3HSE2KEE","source":{"kind":"trait","trait":"OrbLintOsGrants","traitId":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"}},{"event":"LINT_CALL_SITES_UNREAD","eventId":"evt_1KGJ46HP61V30W5Z11BN7CKKXX","triggers":"LINT_CALL_SITES_UNREAD","triggersId":"evt_1KGJ46HP61V30W5Z11BN7CKKXX","source":{"kind":"trait","trait":"CallSiteInput","traitId":"trt_DMYKMC5DG5PR2QY98G9K26243T"}}],"stateMachine":{"states":[{"name":"ready","isInitial":true},{"name":"waiting"}],"events":[{"key":"INIT","id":"evt_D78S26XFCHQP8WRQVP3R6MJ5JY","name":"Initialize"},{"key":"LINT_CALLED","id":"evt_RZ0NX7FVK8XSMBMV7FSR2WBDQD","name":"Lint Called","description":"Run `orb lint os-grants` with its arguments and working directory.","synonyms":"orb lint os-grants","payloadSchema":[{"nullable":false,"name":"headers","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"rawBody","type":"string","required":true}],"listened":true,"inbound":{"name":"cli-lint-os-grants","answers":"LINT_ANSWERED"}},{"key":"LINT_FOUND","id":"evt_X0BF6CW2ND1APNK7EE3HSE2KEE","name":"Lint Found","description":"The rule trait's findings for the file.","tier":"internal","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]},{"key":"LINT_CALL_SITES_UNREAD","id":"evt_1KGJ46HP61V30W5Z11BN7CKKXX","name":"Lint Call Sites Unread","description":"The call sites input could not read or lower the file.","tier":"internal","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true},{"nullable":false,"name":"error","type":"string","required":true}],"listened":true},{"key":"LINT_ANSWERED","id":"evt_K7K25CV48VJ4DGEQNSRH9TJJQ6","name":"Lint Answered","description":"Internal: the command's answer, which the cli hook prints.","tier":"internal","payloadSchema":[{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"body","type":"string","required":true}]},{"key":"LINT_CALL_SITES_REQUEST","id":"evt_PC609C1K9FSMQQ8JA545C0PJB8","name":"Lint Call Sites Request","description":"Ask the call sites input to read and lower this file.","tier":"internal","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true},{"nullable":false,"name":"stamp","type":"boolean","required":true},{"nullable":false,"name":"references","type":"boolean","required":true}]}],"transitions":[{"from":"ready","to":"ready","event":"INIT","eventId":"evt_D78S26XFCHQP8WRQVP3R6MJ5JY"},{"from":"ready","to":"ready","event":"LINT_CALLED","eventId":"evt_RZ0NX7FVK8XSMBMV7FSR2WBDQD","guard":["or",["=",["json/parse","@payload.rawBody","OrbCommandArgs"],null],["!=",["array/len",["object/get",["json/parse","@payload.rawBody","OrbCommandArgs"],"argv"]],1]],"effects":[["emit","LINT_ANSWERED",{"status":400,"body":"usage: orb lint os-grants <file>"}]]},{"from":"ready","to":"waiting","event":"LINT_CALLED","eventId":"evt_RZ0NX7FVK8XSMBMV7FSR2WBDQD","guard":["and",["!=",["json/parse","@payload.rawBody","OrbCommandArgs"],null],["=",["array/len",["object/get",["json/parse","@payload.rawBody","OrbCommandArgs"],"argv"]],1]],"effects":[["let",[["argFile",["array/first",["object/get",["json/parse","@payload.rawBody","OrbCommandArgs"],"argv"]]]],["if",["=","@argFile",null],["emit","LINT_ANSWERED",{"status":400,"body":"usage: orb lint os-grants <file>"}],["emit","LINT_CALL_SITES_REQUEST",{"file":"@argFile","stamp":false,"references":true}]]]]},{"from":"waiting","to":"waiting","event":"INIT","eventId":"evt_D78S26XFCHQP8WRQVP3R6MJ5JY"},{"from":"waiting","to":"waiting","event":"LINT_FOUND","eventId":"evt_X0BF6CW2ND1APNK7EE3HSE2KEE","guard":["=","@payload.rule","os-grants"],"effects":[["set","@entity.shown","@payload.findings"]]},{"from":"waiting","to":"ready","event":"LINT_FOUND","eventId":"evt_X0BF6CW2ND1APNK7EE3HSE2KEE","guard":["and",["=","@payload.rule","os-grants-final"],["=",["array/len",["array/concat","@entity.shown","@payload.findings"]],0]],"effects":[["emit","LINT_ANSWERED",{"status":200,"body":"lint os-grants: clean"}]]},{"from":"waiting","to":"ready","event":"LINT_FOUND","eventId":"evt_X0BF6CW2ND1APNK7EE3HSE2KEE","guard":["and",["=","@payload.rule","os-grants-final"],[">",["array/len",["array/concat","@entity.shown","@payload.findings"]],0]],"effects":[["emit","LINT_ANSWERED",{"status":500,"body":["str/join",["array/map",["array/concat","@entity.shown","@payload.findings"],["fn","x",["str/concat","[",["object/get","@x","code"],"] ",["object/get","@x","path"],": ",["object/get","@x","message"],["if",["=",["object/get","@x","suggestion"],""],"",["str/concat","\n suggestion: ",["object/get","@x","suggestion"]]]]]],"\n"]}]]},{"from":"waiting","to":"ready","event":"LINT_CALL_SITES_UNREAD","eventId":"evt_1KGJ46HP61V30W5Z11BN7CKKXX","effects":[["emit","LINT_ANSWERED",{"status":500,"body":"lint os-grants: the file could not be read or lowered"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_M2BDKKF08AG45FWH98YVTK3W7A","fingerprint":"5db6e78ac6d4f7383cb292c45b0759b13484afa689d77c852d023f4701884b49"}},{"ref":"CsInput.traits.CallSiteInput","id":"trt_DMYKMC5DG5PR2QY98G9K26243T","name":"CallSiteInput","listens":[{"event":"LINT_CALL_SITES_REQUEST","triggers":"LINT_CALL_SITES_REQUEST","source":{"kind":"trait","trait":"OrbLintOsGrantsCli"}}]}],"pages":[{"name":"OrbLintOsGrantsOrbitalStart","id":"pag_2R96AKTT62D3129DKNK172WW4E","path":"","protocol":"boot","traits":[{"ref":"OrbLintOsGrants","refId":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},{"ref":"OrbLintOsGrantsCli","refId":"trt_M2BDKKF08AG45FWH98YVTK3W7A"},{"ref":"CallSiteInput","refId":"trt_DMYKMC5DG5PR2QY98G9K26243T"}]}],"types":{"GrAnswer":[{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"orbital","type":"string"},{"nullable":false,"name":"call","type":"string"},{"nullable":false,"name":"entry","type":"string"},{"nullable":false,"name":"site","type":"string","required":true},{"nullable":false,"name":"grant","type":"string"},{"nullable":false,"name":"app","type":"boolean"},{"nullable":false,"name":"argument","type":"number"},{"nullable":false,"name":"via","type":"string"}],"items":{"nullable":false,"name":"","type":"GrFinding","projectedFrom":{"type":"GrFinding"}}}],"GrFinding":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"orbital","type":"string"},{"nullable":false,"name":"call","type":"string"},{"nullable":false,"name":"entry","type":"string"},{"nullable":false,"name":"site","type":"string","required":true},{"nullable":false,"name":"grant","type":"string"},{"nullable":false,"name":"app","type":"boolean"},{"nullable":false,"name":"argument","type":"number"},{"nullable":false,"name":"via","type":"string"}],"GrMapped":[{"nullable":false,"name":"final","type":"boolean","required":true},{"nullable":false,"name":"finding","type":"object","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"projectedFrom":{"type":"OrbFinding"}}],"GrNode":[{"nullable":false,"name":"","type":"union","properties":[{"nullable":false,"name":"string","type":"string"},{"nullable":false,"name":"number","type":"number"},{"nullable":false,"name":"boolean","type":"boolean"},{"nullable":false,"name":"array","type":"[GrNode]","items":{"nullable":true,"name":"","type":"GrNode","projectedFrom":{"type":"GrNode"}}},{"nullable":false,"name":"object","type":"Map<string,GrNode>","items":{"nullable":true,"name":"","type":"GrNode","projectedFrom":{"type":"GrNode"}}}]}],"GrTagged":[{"nullable":false,"name":"final","type":"boolean","required":true},{"nullable":false,"name":"f","type":"object","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"orbital","type":"string"},{"nullable":false,"name":"call","type":"string"},{"nullable":false,"name":"entry","type":"string"},{"nullable":false,"name":"site","type":"string","required":true},{"nullable":false,"name":"grant","type":"string"},{"nullable":false,"name":"app","type":"boolean"},{"nullable":false,"name":"argument","type":"number"},{"nullable":false,"name":"via","type":"string"}],"projectedFrom":{"type":"GrFinding"}}],"LintCodeDecl":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"LintOsGrantsCodes":[{"nullable":false,"name":"missing","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"unused","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"entryInvalid","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"targetNotStatic","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}}],"OrbCommandArgs":[{"nullable":false,"name":"argv","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"cwd","type":"string","required":true}],"OrbFinding":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"RcKept":[{"nullable":false,"name":"orbital","type":"number","required":true},{"nullable":false,"name":"traits","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}}],"RcRefRow":[{"nullable":false,"name":"kind","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"callSite","type":"GrNode","required":true,"properties":[],"projectedFrom":{"type":"GrNode"}},{"nullable":false,"name":"declaration","type":"GrNode","required":true,"properties":[],"projectedFrom":{"type":"GrNode"}}]}}],"inbound":["cli-lint-os-grants"],"osGrants":{"fs":[{"glob":"/**","modes":["read"]}],"exec":[],"net":[],"env":[],"stdio":[],"sys":[],"desktop":[],"anchored":{"fs":[{"anchor":"cwd","glob":"**","modes":["read"]}]}},"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_SFWPGXRAQ35BHZKJHX5YAFEFA6":{"id":"ent_SFWPGXRAQ35BHZKJHX5YAFEFA6","kind":"entity","bakedName":"OrbLintOsGrantsRun","curName":"OrbLintOsGrantsRun","renames":[],"owner":"workspace"},"evt_1KGJ46HP61V30W5Z11BN7CKKXX":{"id":"evt_1KGJ46HP61V30W5Z11BN7CKKXX","kind":"event","bakedName":"LINT_CALL_SITES_UNREAD","curName":"LINT_CALL_SITES_UNREAD","renames":[],"owner":"workspace","parent":"trt_M2BDKKF08AG45FWH98YVTK3W7A"},"evt_44BF320DF06QG43D1TYTGQESC8":{"id":"evt_44BF320DF06QG43D1TYTGQESC8","kind":"event","bakedName":"LINT_SPLIT","curName":"LINT_SPLIT","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_6GQZ2TFPTKVD9RTRVY7YJDSNH2":{"id":"evt_6GQZ2TFPTKVD9RTRVY7YJDSNH2","kind":"event","bakedName":"LINT_CALL_SITES","curName":"LINT_CALL_SITES","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_D78S26XFCHQP8WRQVP3R6MJ5JY":{"id":"evt_D78S26XFCHQP8WRQVP3R6MJ5JY","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_M2BDKKF08AG45FWH98YVTK3W7A"},"evt_HXHAKJGFE17Q0V5K45GAR66HWS":{"id":"evt_HXHAKJGFE17Q0V5K45GAR66HWS","kind":"event","bakedName":"LINT_CWD","curName":"LINT_CWD","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_K7K25CV48VJ4DGEQNSRH9TJJQ6":{"id":"evt_K7K25CV48VJ4DGEQNSRH9TJJQ6","kind":"event","bakedName":"LINT_ANSWERED","curName":"LINT_ANSWERED","renames":[],"owner":"workspace","parent":"trt_M2BDKKF08AG45FWH98YVTK3W7A"},"evt_PC609C1K9FSMQQ8JA545C0PJB8":{"id":"evt_PC609C1K9FSMQQ8JA545C0PJB8","kind":"event","bakedName":"LINT_CALL_SITES_REQUEST","curName":"LINT_CALL_SITES_REQUEST","renames":[],"owner":"workspace","parent":"trt_M2BDKKF08AG45FWH98YVTK3W7A"},"evt_RPTHECHW82Y417WM29BJKSG4BX":{"id":"evt_RPTHECHW82Y417WM29BJKSG4BX","kind":"event","bakedName":"LINT_CHECKED","curName":"LINT_CHECKED","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_RZ0NX7FVK8XSMBMV7FSR2WBDQD":{"id":"evt_RZ0NX7FVK8XSMBMV7FSR2WBDQD","kind":"event","bakedName":"LINT_CALLED","curName":"LINT_CALLED","renames":[],"owner":"workspace","parent":"trt_M2BDKKF08AG45FWH98YVTK3W7A"},"evt_SQ2J7WTYNYFAZ82386JQ4ME7PZ":{"id":"evt_SQ2J7WTYNYFAZ82386JQ4ME7PZ","kind":"event","bakedName":"LINT_MAP","curName":"LINT_MAP","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_VE222KTKQ69VK69ZAWM9Z6FAB0":{"id":"evt_VE222KTKQ69VK69ZAWM9Z6FAB0","kind":"event","bakedName":"LINT_FINISH","curName":"LINT_FINISH","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_WK1NXMQV1CXGP0AB6H0KSMFYX6":{"id":"evt_WK1NXMQV1CXGP0AB6H0KSMFYX6","kind":"event","bakedName":"LINT_FOUND","curName":"LINT_FOUND","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_X0BF6CW2ND1APNK7EE3HSE2KEE":{"id":"evt_X0BF6CW2ND1APNK7EE3HSE2KEE","kind":"event","bakedName":"LINT_FOUND","curName":"LINT_FOUND","renames":[],"owner":"workspace","parent":"trt_M2BDKKF08AG45FWH98YVTK3W7A"},"evt_XR1VQPCQE1BQ0JXYG7QFKJKFP1":{"id":"evt_XR1VQPCQE1BQ0JXYG7QFKJKFP1","kind":"event","bakedName":"LINT_GRANTS_FAILED","curName":"LINT_GRANTS_FAILED","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_XW5XKDPPJJB990YQ1PZZTHY6K6":{"id":"evt_XW5XKDPPJJB990YQ1PZZTHY6K6","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"orb_X319GQMFZW7ZY40TTDGETGXZ3Y":{"id":"orb_X319GQMFZW7ZY40TTDGETGXZ3Y","kind":"orbital","bakedName":"OrbLintOsGrantsOrbital","curName":"OrbLintOsGrantsOrbital","renames":[],"owner":"workspace"},"pag_2R96AKTT62D3129DKNK172WW4E":{"id":"pag_2R96AKTT62D3129DKNK172WW4E","kind":"page","bakedName":"OrbLintOsGrantsOrbitalStart","curName":"OrbLintOsGrantsOrbitalStart","renames":[],"owner":"workspace"},"trt_5XM0SQ72Z3HFHP7DFT1QQR169M":{"id":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M","kind":"trait","bakedName":"OrbLintOsGrants","curName":"OrbLintOsGrants","renames":[],"owner":"workspace"},"trt_DMYKMC5DG5PR2QY98G9K26243T":{"id":"trt_DMYKMC5DG5PR2QY98G9K26243T","kind":"trait","bakedName":"CallSiteInput","curName":"CallSiteInput","renames":[],"owner":"workspace"},"trt_M2BDKKF08AG45FWH98YVTK3W7A":{"id":"trt_M2BDKKF08AG45FWH98YVTK3W7A","kind":"trait","bakedName":"OrbLintOsGrantsCli","curName":"OrbLintOsGrantsCli","renames":[],"owner":"workspace"}}}}
1
+ {"typeContractVersion":1,"types":{"GrAnswer":[{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"orbital","type":"string"},{"nullable":false,"name":"call","type":"string"},{"nullable":false,"name":"entry","type":"string"},{"nullable":false,"name":"site","type":"string","required":true},{"nullable":false,"name":"grant","type":"string"},{"nullable":false,"name":"app","type":"boolean"},{"nullable":false,"name":"argument","type":"number"},{"nullable":false,"name":"via","type":"string"}],"items":{"nullable":false,"name":"","type":"GrFinding","projectedFrom":{"type":"GrFinding"}}}],"GrFinding":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"orbital","type":"string"},{"nullable":false,"name":"call","type":"string"},{"nullable":false,"name":"entry","type":"string"},{"nullable":false,"name":"site","type":"string","required":true},{"nullable":false,"name":"grant","type":"string"},{"nullable":false,"name":"app","type":"boolean"},{"nullable":false,"name":"argument","type":"number"},{"nullable":false,"name":"via","type":"string"}],"GrMapped":[{"nullable":false,"name":"final","type":"boolean","required":true},{"nullable":false,"name":"finding","type":"object","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"projectedFrom":{"type":"OrbFinding"}}],"GrNode":[{"nullable":false,"name":"","type":"union","properties":[{"nullable":false,"name":"string","type":"string"},{"nullable":false,"name":"number","type":"number"},{"nullable":false,"name":"boolean","type":"boolean"},{"nullable":false,"name":"array","type":"[GrNode]","items":{"nullable":true,"name":"","type":"GrNode","projectedFrom":{"type":"GrNode"}}},{"nullable":false,"name":"object","type":"Map<string,GrNode>","items":{"nullable":true,"name":"","type":"GrNode","projectedFrom":{"type":"GrNode"}}}]}],"GrTagged":[{"nullable":false,"name":"final","type":"boolean","required":true},{"nullable":false,"name":"f","type":"object","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"orbital","type":"string"},{"nullable":false,"name":"call","type":"string"},{"nullable":false,"name":"entry","type":"string"},{"nullable":false,"name":"site","type":"string","required":true},{"nullable":false,"name":"grant","type":"string"},{"nullable":false,"name":"app","type":"boolean"},{"nullable":false,"name":"argument","type":"number"},{"nullable":false,"name":"via","type":"string"}],"projectedFrom":{"type":"GrFinding"}}],"LintCodeDecl":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"LintOsGrantsCodes":[{"nullable":false,"name":"missing","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"unused","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"entryInvalid","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"targetNotStatic","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"shaderInvalid","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"bindingMismatch","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}}],"OrbCommandArgs":[{"nullable":false,"name":"argv","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"cwd","type":"string","required":true}],"OrbFinding":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"RcKept":[{"nullable":false,"name":"orbital","type":"number","required":true},{"nullable":false,"name":"traits","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}}],"RcRefRow":[{"nullable":false,"name":"kind","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"callSite","type":"GrNode","required":true,"properties":[],"projectedFrom":{"type":"GrNode"}},{"nullable":false,"name":"declaration","type":"GrNode","required":true,"properties":[],"projectedFrom":{"type":"GrNode"}}]},"name":"std-orb-lint-os-grants","version":"1.0.0","description":"std-orb-lint-os-grants — the `orb lint os-grants <file>` command, the static os-grant check. It asks the kernel (`program/os-grants`, twice: the program as written, then the finished program) for the typed findings of the file's resolved program and words them: ORB_OS_GRANT_MISSING (an `os/` call the grants of its orbital do not cover), ORB_OS_GRANT_UNUSED (a warning: a granted entry no call uses), ORB_OS_GRANT_ENTRY_INVALID (an entry that can match nothing) ORB_OS_TARGET_NOT_STATIC (a computed target, so its grant cannot be checked) ORB_GPU_SHADER_INVALID (a literal gpu/shader-create WGSL source naga refuses) and ORB_GPU_BINDING_MISMATCH (a gpu/bind-group-create whose literal entries do not fit the bindings its pipeline uses, the pipeline traced through the trait to its WGSL; the finished-program pass only), at the site the kernel names. The finished-program pass answers as the rule os-grants-final, which belongs to `orb validate --final` only. Clean answers `lint os-grants: clean` (status 200, exit 0); findings are status 500, exit 1. Anything but one file argument is the usage (status 400, exit 2); a file the compiler cannot resolve is skipped here: validate reports that failure itself.","orbitals":[{"name":"OrbLintOsGrantsOrbital","id":"orb_X319GQMFZW7ZY40TTDGETGXZ3Y","uses":[{"from":"almadar-std/lint-os-grants","as":"Spec"},{"from":"std/behaviors/std-orb-lint-call-site-input","as":"CsInput"}],"entity":{"name":"OrbLintOsGrantsRun","id":"ent_SFWPGXRAQ35BHZKJHX5YAFEFA6","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"file","type":"string","default":""},{"nullable":false,"name":"pass","type":"string","default":"written"},{"nullable":false,"name":"written","type":"array","default":[],"items":{"nullable":false,"type":"object","properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"orbital":{"nullable":false,"name":"orbital","type":"string","required":false},"call":{"nullable":false,"name":"call","type":"string","required":false},"entry":{"nullable":false,"name":"entry","type":"string","required":false},"site":{"nullable":false,"name":"site","type":"string","required":true},"grant":{"nullable":false,"name":"grant","type":"string","required":false},"app":{"nullable":false,"name":"app","type":"boolean","required":false},"argument":{"nullable":false,"name":"argument","type":"number","required":false},"via":{"nullable":false,"name":"via","type":"string","required":false}},"projectedFrom":{"type":"GrFinding"}}},{"nullable":false,"name":"tagged","type":"array","default":[],"items":{"nullable":false,"type":"object","properties":{"final":{"nullable":false,"name":"final","type":"boolean","required":true},"f":{"nullable":false,"name":"f","type":"object","required":true,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"orbital":{"nullable":false,"name":"orbital","type":"string","required":false},"call":{"nullable":false,"name":"call","type":"string","required":false},"entry":{"nullable":false,"name":"entry","type":"string","required":false},"site":{"nullable":false,"name":"site","type":"string","required":true},"grant":{"nullable":false,"name":"grant","type":"string","required":false},"app":{"nullable":false,"name":"app","type":"boolean","required":false},"argument":{"nullable":false,"name":"argument","type":"number","required":false},"via":{"nullable":false,"name":"via","type":"string","required":false}},"projectedFrom":{"type":"GrFinding"}}},"projectedFrom":{"type":"GrTagged"}}},{"nullable":false,"name":"mapped","type":"array","default":[],"items":{"nullable":false,"type":"object","properties":{"final":{"nullable":false,"name":"final","type":"boolean","required":true},"finding":{"nullable":false,"name":"finding","type":"object","required":true,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"path":{"nullable":false,"name":"path","type":"string","required":true},"message":{"nullable":false,"name":"message","type":"string","required":true},"suggestion":{"nullable":false,"name":"suggestion","type":"string","required":true},"severity":{"nullable":false,"name":"severity","type":"string","required":false,"values":["warning","error"]}},"projectedFrom":{"type":"OrbFinding"}}},"projectedFrom":{"type":"GrMapped"}}},{"nullable":false,"name":"findings","type":"array","default":[],"items":{"nullable":false,"type":"object","properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"path":{"nullable":false,"name":"path","type":"string","required":true},"message":{"nullable":false,"name":"message","type":"string","required":true},"suggestion":{"nullable":false,"name":"suggestion","type":"string","required":true},"severity":{"nullable":false,"name":"severity","type":"string","required":false,"values":["warning","error"]}},"projectedFrom":{"type":"OrbFinding"}}},{"nullable":false,"name":"finalFindings","type":"array","default":[],"items":{"nullable":false,"type":"object","properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"path":{"nullable":false,"name":"path","type":"string","required":true},"message":{"nullable":false,"name":"message","type":"string","required":true},"suggestion":{"nullable":false,"name":"suggestion","type":"string","required":true},"severity":{"nullable":false,"name":"severity","type":"string","required":false,"values":["warning","error"]}},"projectedFrom":{"type":"OrbFinding"}}},{"nullable":false,"name":"shown","type":"array","default":[],"items":{"nullable":false,"type":"object","properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"path":{"nullable":false,"name":"path","type":"string","required":true},"message":{"nullable":false,"name":"message","type":"string","required":true},"suggestion":{"nullable":false,"name":"suggestion","type":"string","required":true},"severity":{"nullable":false,"name":"severity","type":"string","required":false,"values":["warning","error"]}},"projectedFrom":{"type":"OrbFinding"}}}]},"traits":[{"name":"OrbLintOsGrants","id":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M","effectRow":[{"kind":"emit","resource":"LINT_FINISH"},{"kind":"emit","resource":"LINT_FOUND"},{"kind":"emit","resource":"LINT_MAP"},{"kind":"emit","resource":"LINT_SPLIT"},{"kind":"os/realpath"},{"kind":"program/os-grants"},{"kind":"set","resource":"@entity.file"},{"kind":"set","resource":"@entity.finalFindings"},{"kind":"set","resource":"@entity.findings"},{"kind":"set","resource":"@entity.mapped"},{"kind":"set","resource":"@entity.pass"},{"kind":"set","resource":"@entity.tagged"},{"kind":"set","resource":"@entity.written"}],"linkedEntity":"OrbLintOsGrantsRun","linkedEntityId":"ent_SFWPGXRAQ35BHZKJHX5YAFEFA6","entityRefIds":{"OrbLintOsGrantsRun":"ent_SFWPGXRAQ35BHZKJHX5YAFEFA6"},"emits":[{"event":"LINT_FOUND","eventId":"evt_WK1NXMQV1CXGP0AB6H0KSMFYX6","description":"This rule's findings for the file, offered to the lint-all umbrella: the program as written under rule os-grants, the finished program under os-grants-final.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]},{"event":"LINT_FINISH","eventId":"evt_VE222KTKQ69VK69ZAWM9Z6FAB0","description":"Internal: answer with the verdicts.","tier":"internal"},{"event":"LINT_MAP","eventId":"evt_SQ2J7WTYNYFAZ82386JQ4ME7PZ","description":"Internal: word the kernel's findings.","tier":"internal"},{"event":"LINT_SPLIT","eventId":"evt_44BF320DF06QG43D1TYTGQESC8","description":"Internal: split the worded findings by pass.","tier":"internal"}],"listens":[{"event":"LINT_CALL_SITES","eventId":"evt_6GQZ2TFPTKVD9RTRVY7YJDSNH2","triggers":"LINT_CALL_SITES","triggersId":"evt_6GQZ2TFPTKVD9RTRVY7YJDSNH2","source":{"kind":"trait","trait":"CallSiteInput","traitId":"trt_DMYKMC5DG5PR2QY98G9K26243T"}}],"stateMachine":{"states":[{"name":"ready","isInitial":true},{"name":"reading"},{"name":"checking"},{"name":"mapping"}],"events":[{"key":"INIT","id":"evt_XW5XKDPPJJB990YQ1PZZTHY6K6","name":"Initialize"},{"key":"LINT_CALL_SITES","id":"evt_6GQZ2TFPTKVD9RTRVY7YJDSNH2","name":"Lint Call Sites","description":"The call sites input: the file lowered unresolved and each aliased import resolved and lowered.","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true},{"nullable":false,"name":"program","type":"union","required":true,"properties":[{"nullable":false,"name":"string","type":"string"},{"nullable":false,"name":"number","type":"number"},{"nullable":false,"name":"boolean","type":"boolean"},{"nullable":false,"name":"array","type":"[GrNode]","items":{"nullable":true,"name":"","type":"GrNode","projectedFrom":{"type":"GrNode"}}},{"nullable":false,"name":"object","type":"Map<string,GrNode>","items":{"nullable":true,"name":"","type":"GrNode","projectedFrom":{"type":"GrNode"}}}],"projectedFrom":{"type":"GrNode"}},{"nullable":false,"name":"kept","type":"[object]","required":true,"properties":[{"nullable":false,"name":"orbital","type":"number","required":true},{"nullable":false,"name":"traits","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}}],"items":{"nullable":false,"name":"","type":"RcKept","projectedFrom":{"type":"RcKept"}}},{"nullable":false,"name":"references","type":"[object]","required":true,"properties":[{"nullable":false,"name":"kind","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"callSite","type":"GrNode","required":true,"properties":[],"projectedFrom":{"type":"GrNode"}},{"nullable":false,"name":"declaration","type":"GrNode","required":true,"properties":[],"projectedFrom":{"type":"GrNode"}}],"items":{"nullable":false,"name":"","type":"RcRefRow","projectedFrom":{"type":"RcRefRow"}}},{"nullable":true,"name":"stamped","type":"GrNode","projectedFrom":{"type":"GrNode"}}],"listened":true},{"key":"LINT_FINISH","id":"evt_VE222KTKQ69VK69ZAWM9Z6FAB0","name":"Lint Finish","description":"Internal: answer with the verdicts.","tier":"internal","listened":true},{"key":"LINT_CWD","id":"evt_HXHAKJGFE17Q0V5K45GAR66HWS","name":"Lint Cwd","description":"Internal: the working directory.","payloadSchema":[{"nullable":false,"name":"path","type":"string","required":true}],"listened":true},{"key":"LINT_GRANTS_FAILED","id":"evt_XR1VQPCQE1BQ0JXYG7QFKJKFP1","name":"Lint Grants Failed","description":"Internal: the file could not be resolved or checked.","payloadSchema":[{"nullable":false,"name":"error","type":"string"}],"listened":true},{"key":"LINT_CHECKED","id":"evt_RPTHECHW82Y417WM29BJKSG4BX","name":"Lint Checked","description":"Internal: the kernel's findings for one pass.","payloadSchema":[{"nullable":false,"name":"result","type":"object","required":true,"properties":[{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"orbital","type":"string"},{"nullable":false,"name":"call","type":"string"},{"nullable":false,"name":"entry","type":"string"},{"nullable":false,"name":"site","type":"string","required":true},{"nullable":false,"name":"grant","type":"string"},{"nullable":false,"name":"app","type":"boolean"},{"nullable":false,"name":"argument","type":"number"},{"nullable":false,"name":"via","type":"string"}],"items":{"nullable":false,"name":"","type":"GrFinding","projectedFrom":{"type":"GrFinding"}}}],"projectedFrom":{"type":"GrAnswer"}}],"listened":true},{"key":"LINT_MAP","id":"evt_SQ2J7WTYNYFAZ82386JQ4ME7PZ","name":"Lint Map","description":"Internal: word the kernel's findings.","tier":"internal","listened":true},{"key":"LINT_SPLIT","id":"evt_44BF320DF06QG43D1TYTGQESC8","name":"Lint Split","description":"Internal: split the worded findings by pass.","tier":"internal","listened":true},{"key":"LINT_FOUND","id":"evt_WK1NXMQV1CXGP0AB6H0KSMFYX6","name":"Lint Found","description":"This rule's findings for the file, offered to the lint-all umbrella: the program as written under rule os-grants, the finished program under os-grants-final.","tier":"internal","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]}],"transitions":[{"from":"ready","to":"ready","event":"INIT","eventId":"evt_XW5XKDPPJJB990YQ1PZZTHY6K6"},{"from":"ready","to":"reading","event":"LINT_CALL_SITES","eventId":"evt_6GQZ2TFPTKVD9RTRVY7YJDSNH2","effects":[["set","@entity.file","@payload.file"],["set","@entity.pass","written"],["os/realpath",{"anchor":"cwd","path":"."},{"key":"os-grants-cwd","emit":{"success":"LINT_CWD","failure":"LINT_GRANTS_FAILED"}}]]},{"from":"ready","to":"ready","event":"LINT_FINISH","eventId":"evt_VE222KTKQ69VK69ZAWM9Z6FAB0","effects":[["emit","LINT_FOUND",{"rule":"os-grants","scope":"","findings":"@entity.findings"}],["emit","LINT_FOUND",{"rule":"os-grants-final","scope":"","findings":"@entity.finalFindings"}]]},{"from":"reading","to":"reading","event":"INIT","eventId":"evt_XW5XKDPPJJB990YQ1PZZTHY6K6"},{"from":"reading","to":"checking","event":"LINT_CWD","eventId":"evt_HXHAKJGFE17Q0V5K45GAR66HWS","effects":[["set","@entity.file",["if",["os/path-is-absolute","@entity.file"],"@entity.file",["os/path-join","@payload.path","@entity.file"]]],["program/os-grants",null,{"path":["if",["os/path-is-absolute","@entity.file"],"@entity.file",["os/path-join","@payload.path","@entity.file"]],"final":false},{"key":"os-grants-written","emit":{"success":"LINT_CHECKED","failure":"LINT_GRANTS_FAILED"}}]]},{"from":"reading","to":"ready","event":"LINT_GRANTS_FAILED","eventId":"evt_XR1VQPCQE1BQ0JXYG7QFKJKFP1","effects":[["set","@entity.findings",[]],["set","@entity.finalFindings",[]],["emit","LINT_FINISH",{}]]},{"from":"checking","to":"checking","event":"INIT","eventId":"evt_XW5XKDPPJJB990YQ1PZZTHY6K6"},{"from":"checking","to":"checking","event":"LINT_CHECKED","eventId":"evt_RPTHECHW82Y417WM29BJKSG4BX","guard":["=","@entity.pass","written"],"effects":[["set","@entity.written",["object/get","@payload.result","findings"]],["set","@entity.pass","final"],["program/os-grants",null,{"path":"@entity.file","final":true},{"key":"os-grants-final","emit":{"success":"LINT_CHECKED","failure":"LINT_GRANTS_FAILED"}}]]},{"from":"checking","to":"mapping","event":"LINT_CHECKED","eventId":"evt_RPTHECHW82Y417WM29BJKSG4BX","guard":["=","@entity.pass","final"],"effects":[["set","@entity.tagged",["array/concat",["array/map","@entity.written",["fn","f",{"final":false,"f":"@f"}]],["array/map",["object/get","@payload.result","findings"],["fn","f",{"final":true,"f":"@f"}]]]],["emit","LINT_MAP",{}]]},{"from":"checking","to":"ready","event":"LINT_GRANTS_FAILED","eventId":"evt_XR1VQPCQE1BQ0JXYG7QFKJKFP1","effects":[["set","@entity.findings",[]],["set","@entity.finalFindings",[]],["emit","LINT_FINISH",{}]]},{"from":"mapping","to":"mapping","event":"INIT","eventId":"evt_XW5XKDPPJJB990YQ1PZZTHY6K6"},{"from":"mapping","to":"mapping","event":"LINT_MAP","eventId":"evt_SQ2J7WTYNYFAZ82386JQ4ME7PZ","effects":[["set","@entity.mapped",["array/map","@entity.tagged",["fn","x",["let",[["f",["object/get","@x","f"]],["via",["object/get",["object/get","@x","f"],"via",""]],["code",["object/get",["object/get","@x","f"],"code"]],["orbital",["object/get",["object/get","@x","f"],"orbital",""]],["call",["object/get",["object/get","@x","f"],"call",""]],["entry",["object/get",["object/get","@x","f"],"entry",""]],["arg",["object/get",["object/get","@x","f"],"argument",0]]],{"final":["object/get","@x","final"],"finding":{"code":["if",["=","@code","missing"],"@config.codes.missing.code",["if",["=","@code","unused"],"@config.codes.unused.code",["if",["=","@code","entry-invalid"],"@config.codes.entryInvalid.code",["if",["=","@code","shader-invalid"],"@config.codes.shaderInvalid.code",["if",["=","@code","binding-mismatch"],"@config.codes.bindingMismatch.code","@config.codes.targetNotStatic.code"]]]]],"path":["object/get","@f","site"],"severity":["if",["=","@code","unused"],"warning","error"],"message":["if",["=","@code","missing"],["str/concat","`","@call","` ",["if",["=","@via","config"],"can be given ","needs "],"@entry",["if",["=","@via","config"]," by its config, but orbital "," but orbital "],"@orbital"," does not grant it"],["if",["=","@code","unused"],["str/concat","`","@entry","` is granted to ",["if",["=","@orbital",""],"the program",["str/concat","orbital ","@orbital"]]," but no `os/` call there uses it"],["if",["or",["=","@code","entry-invalid"],["=","@code","shader-invalid"]],"@entry",["if",["=","@code","binding-mismatch"],["str/concat","`gpu/bind-group-create` entries do not fit the pipeline they are made for: ","@entry"],["if",["=","@via","config-unresolvable"],["str/concat","`","@call","` argument ","@arg"," is read from config in a way the finished program cannot resolve, so its grant cannot be checked"],["if",["=","@via","computed-path"],["str/concat","`","@call","` argument ","@arg"," is a computed path the grant cannot cover: only a file path may be a `str/concat`"],["str/concat","`","@call","` argument ","@arg"," is computed — an `os/` target must be a literal so the grant can be checked at build time"]]]]]]],"suggestion":["if",["=","@code","missing"],["str/concat","Add `",["object/get","@f","grant",""],["if",["object/get","@f","app",false],"` to the orbital's bracket (`orbital Name [ … ]`) or the app's","` to the orbital's bracket"]],["if",["=","@code","unused"],"Remove the entry: an unused grant is authority the program does not need",["if",["or",["=","@code","entry-invalid"],["=","@code","shader-invalid"]],"",["if",["=","@code","binding-mismatch"],"Give one entry per binding the pipeline's entry points use in that group, each the resource the WGSL declares (buffer, texture or sampler)",["if",["=","@via","config-unresolvable"],"Read the target with `@config.<knob>`, `array/nth` and `object/get`, or write it as a literal; a `str/concat` directory prefix must be string knobs and literals ending in `/`",["if",["=","@via","computed-path"],"Write the target as a literal","Write the path, command, host, port or name as a literal; a file path may instead be a `str/concat` that starts with a literal or `@config.<knob>` directory ending in `/`, covered by an fs grant ending in `/**`, or an anchored path `{ anchor: \"cwd\" path: … }` (anchors `exe-dir`, `cwd`, `{ env: \"NAME\" }`) covered by an anchored grant such as `fs: { cwd: \"docs/**\": [read] }`; a host or port may be `{ anchor: { env: \"PORT\" } }` covered by `net: { env HOST, env PORT: [listen] }`"]]]]]]}}]]]],["emit","LINT_SPLIT",{}]]},{"from":"mapping","to":"ready","event":"LINT_SPLIT","eventId":"evt_44BF320DF06QG43D1TYTGQESC8","effects":[["set","@entity.findings",["array/map",["array/filter","@entity.mapped",["fn","m",["not",["object/get","@m","final"]]]],["fn","m",["object/get","@m","finding"]]]],["set","@entity.finalFindings",["array/map",["array/filter","@entity.mapped",["fn","m",["object/get","@m","final"]]],["fn","m",["object/get","@m","finding"]]]],["emit","LINT_FINISH",{}]]}]},"config":{"codes":{"nullable":false,"type":"LintOsGrantsCodes","default":{"missing":{"code":"ORB_OS_GRANT_MISSING","category":"os","description":"An os/ call that the grants of its orbital (app level plus its own) do not cover"},"unused":{"code":"ORB_OS_GRANT_UNUSED","category":"os","description":"A granted entry that no os/ call of the orbital (or of the program, at app level) uses; a warning"},"entryInvalid":{"code":"ORB_OS_GRANT_ENTRY_INVALID","category":"os","description":"A declared grant entry that can match nothing"},"targetNotStatic":{"code":"ORB_OS_TARGET_NOT_STATIC","category":"os","description":"An os/ call target that is computed, so its grant cannot be checked at build time"},"shaderInvalid":{"code":"ORB_GPU_SHADER_INVALID","category":"os","description":"A literal gpu/shader-create WGSL source that naga refuses to parse or validate"},"bindingMismatch":{"code":"ORB_GPU_BINDING_MISMATCH","category":"os","description":"A gpu/bind-group-create whose literal entries do not fit the bindings its traced pipeline's entry points use in its WGSL"}},"label":"Emitted codes","description":"The finding codes this rule emits, with their category and meaning; the registry is generated from this declaration.","properties":{"missing":{"nullable":false,"name":"missing","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"unused":{"nullable":false,"name":"unused","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"entryInvalid":{"nullable":false,"name":"entryInvalid","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"targetNotStatic":{"nullable":false,"name":"targetNotStatic","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"shaderInvalid":{"nullable":false,"name":"shaderInvalid","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}},"bindingMismatch":{"nullable":false,"name":"bindingMismatch","type":"object","required":false,"properties":{"code":{"nullable":false,"name":"code","type":"string","required":true},"category":{"nullable":false,"name":"category","type":"string","required":true},"description":{"nullable":false,"name":"description","type":"string","required":true}},"projectedFrom":{"type":"LintCodeDecl"}}},"projectedFrom":{"type":"LintOsGrantsCodes"}}},"dispatch":"optimistic","sourceDeclaration":{"traitId":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M","fingerprint":"a127bdac5d201c3d93a06be67676c7e3cf89a1aea97f3087b7b24b09b0497301"}},{"name":"OrbLintOsGrantsCli","id":"trt_M2BDKKF08AG45FWH98YVTK3W7A","effectRow":[{"kind":"emit","resource":"LINT_ANSWERED"},{"kind":"emit","resource":"LINT_CALL_SITES_REQUEST"},{"kind":"set","resource":"@entity.shown"}],"linkedEntity":"OrbLintOsGrantsRun","linkedEntityId":"ent_SFWPGXRAQ35BHZKJHX5YAFEFA6","entityRefIds":{"OrbLintOsGrantsRun":"ent_SFWPGXRAQ35BHZKJHX5YAFEFA6"},"emits":[{"event":"LINT_ANSWERED","eventId":"evt_K7K25CV48VJ4DGEQNSRH9TJJQ6","description":"Internal: the command's answer, which the cli hook prints.","tier":"internal","scope":"internal","payloadSchema":[{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"body","type":"string","required":true}]},{"event":"LINT_CALL_SITES_REQUEST","eventId":"evt_PC609C1K9FSMQQ8JA545C0PJB8","description":"Ask the call sites input to read and lower this file.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true},{"nullable":false,"name":"stamp","type":"boolean","required":true},{"nullable":false,"name":"references","type":"boolean","required":true}]},{"event":"LINT_FOUND","eventId":"evt_X0BF6CW2ND1APNK7EE3HSE2KEE","description":"The rule trait's findings for the file.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]},{"event":"LINT_CALL_SITES_UNREAD","eventId":"evt_1KGJ46HP61V30W5Z11BN7CKKXX","description":"The call sites input could not read or lower the file.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true},{"nullable":false,"name":"error","type":"string","required":true}]}],"listens":[{"event":"LINT_FOUND","eventId":"evt_WK1NXMQV1CXGP0AB6H0KSMFYX6","triggers":"LINT_FOUND","triggersId":"evt_X0BF6CW2ND1APNK7EE3HSE2KEE","source":{"kind":"trait","trait":"OrbLintOsGrants","traitId":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"}},{"event":"LINT_CALL_SITES_UNREAD","eventId":"evt_1KGJ46HP61V30W5Z11BN7CKKXX","triggers":"LINT_CALL_SITES_UNREAD","triggersId":"evt_1KGJ46HP61V30W5Z11BN7CKKXX","source":{"kind":"trait","trait":"CallSiteInput","traitId":"trt_DMYKMC5DG5PR2QY98G9K26243T"}}],"stateMachine":{"states":[{"name":"ready","isInitial":true},{"name":"waiting"}],"events":[{"key":"INIT","id":"evt_D78S26XFCHQP8WRQVP3R6MJ5JY","name":"Initialize"},{"key":"LINT_CALLED","id":"evt_RZ0NX7FVK8XSMBMV7FSR2WBDQD","name":"Lint Called","description":"Run `orb lint os-grants` with its arguments and working directory.","synonyms":"orb lint os-grants","payloadSchema":[{"nullable":false,"name":"headers","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"rawBody","type":"string","required":true}],"listened":true,"inbound":{"name":"cli-lint-os-grants","answers":"LINT_ANSWERED"}},{"key":"LINT_FOUND","id":"evt_X0BF6CW2ND1APNK7EE3HSE2KEE","name":"Lint Found","description":"The rule trait's findings for the file.","tier":"internal","payloadSchema":[{"nullable":false,"name":"rule","type":"string","required":true},{"nullable":false,"name":"scope","type":"string","required":true},{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"items":{"nullable":false,"name":"","type":"OrbFinding","projectedFrom":{"type":"OrbFinding"}}}]},{"key":"LINT_CALL_SITES_UNREAD","id":"evt_1KGJ46HP61V30W5Z11BN7CKKXX","name":"Lint Call Sites Unread","description":"The call sites input could not read or lower the file.","tier":"internal","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true},{"nullable":false,"name":"error","type":"string","required":true}],"listened":true},{"key":"LINT_ANSWERED","id":"evt_K7K25CV48VJ4DGEQNSRH9TJJQ6","name":"Lint Answered","description":"Internal: the command's answer, which the cli hook prints.","tier":"internal","payloadSchema":[{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"body","type":"string","required":true}]},{"key":"LINT_CALL_SITES_REQUEST","id":"evt_PC609C1K9FSMQQ8JA545C0PJB8","name":"Lint Call Sites Request","description":"Ask the call sites input to read and lower this file.","tier":"internal","payloadSchema":[{"nullable":false,"name":"file","type":"string","required":true},{"nullable":false,"name":"stamp","type":"boolean","required":true},{"nullable":false,"name":"references","type":"boolean","required":true}]}],"transitions":[{"from":"ready","to":"ready","event":"INIT","eventId":"evt_D78S26XFCHQP8WRQVP3R6MJ5JY"},{"from":"ready","to":"ready","event":"LINT_CALLED","eventId":"evt_RZ0NX7FVK8XSMBMV7FSR2WBDQD","guard":["or",["=",["json/parse","@payload.rawBody","OrbCommandArgs"],null],["!=",["array/len",["object/get",["json/parse","@payload.rawBody","OrbCommandArgs"],"argv"]],1]],"effects":[["emit","LINT_ANSWERED",{"status":400,"body":"usage: orb lint os-grants <file>"}]]},{"from":"ready","to":"waiting","event":"LINT_CALLED","eventId":"evt_RZ0NX7FVK8XSMBMV7FSR2WBDQD","guard":["and",["!=",["json/parse","@payload.rawBody","OrbCommandArgs"],null],["=",["array/len",["object/get",["json/parse","@payload.rawBody","OrbCommandArgs"],"argv"]],1]],"effects":[["let",[["argFile",["array/first",["object/get",["json/parse","@payload.rawBody","OrbCommandArgs"],"argv"]]]],["if",["=","@argFile",null],["emit","LINT_ANSWERED",{"status":400,"body":"usage: orb lint os-grants <file>"}],["emit","LINT_CALL_SITES_REQUEST",{"file":"@argFile","stamp":false,"references":true}]]]]},{"from":"waiting","to":"waiting","event":"INIT","eventId":"evt_D78S26XFCHQP8WRQVP3R6MJ5JY"},{"from":"waiting","to":"waiting","event":"LINT_FOUND","eventId":"evt_X0BF6CW2ND1APNK7EE3HSE2KEE","guard":["=","@payload.rule","os-grants"],"effects":[["set","@entity.shown","@payload.findings"]]},{"from":"waiting","to":"ready","event":"LINT_FOUND","eventId":"evt_X0BF6CW2ND1APNK7EE3HSE2KEE","guard":["and",["=","@payload.rule","os-grants-final"],["=",["array/len",["array/concat","@entity.shown","@payload.findings"]],0]],"effects":[["emit","LINT_ANSWERED",{"status":200,"body":"lint os-grants: clean"}]]},{"from":"waiting","to":"ready","event":"LINT_FOUND","eventId":"evt_X0BF6CW2ND1APNK7EE3HSE2KEE","guard":["and",["=","@payload.rule","os-grants-final"],[">",["array/len",["array/concat","@entity.shown","@payload.findings"]],0]],"effects":[["emit","LINT_ANSWERED",{"status":500,"body":["str/join",["array/map",["array/concat","@entity.shown","@payload.findings"],["fn","x",["str/concat","[",["object/get","@x","code"],"] ",["object/get","@x","path"],": ",["object/get","@x","message"],["if",["=",["object/get","@x","suggestion"],""],"",["str/concat","\n suggestion: ",["object/get","@x","suggestion"]]]]]],"\n"]}]]},{"from":"waiting","to":"ready","event":"LINT_CALL_SITES_UNREAD","eventId":"evt_1KGJ46HP61V30W5Z11BN7CKKXX","effects":[["emit","LINT_ANSWERED",{"status":500,"body":"lint os-grants: the file could not be read or lowered"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_M2BDKKF08AG45FWH98YVTK3W7A","fingerprint":"5db6e78ac6d4f7383cb292c45b0759b13484afa689d77c852d023f4701884b49"}},{"ref":"CsInput.traits.CallSiteInput","id":"trt_DMYKMC5DG5PR2QY98G9K26243T","name":"CallSiteInput","listens":[{"event":"LINT_CALL_SITES_REQUEST","triggers":"LINT_CALL_SITES_REQUEST","source":{"kind":"trait","trait":"OrbLintOsGrantsCli"}}]}],"pages":[{"name":"OrbLintOsGrantsOrbitalStart","id":"pag_2R96AKTT62D3129DKNK172WW4E","path":"","protocol":"boot","traits":[{"ref":"OrbLintOsGrants","refId":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},{"ref":"OrbLintOsGrantsCli","refId":"trt_M2BDKKF08AG45FWH98YVTK3W7A"},{"ref":"CallSiteInput","refId":"trt_DMYKMC5DG5PR2QY98G9K26243T"}]}],"types":{"GrAnswer":[{"nullable":false,"name":"findings","type":"[object]","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"orbital","type":"string"},{"nullable":false,"name":"call","type":"string"},{"nullable":false,"name":"entry","type":"string"},{"nullable":false,"name":"site","type":"string","required":true},{"nullable":false,"name":"grant","type":"string"},{"nullable":false,"name":"app","type":"boolean"},{"nullable":false,"name":"argument","type":"number"},{"nullable":false,"name":"via","type":"string"}],"items":{"nullable":false,"name":"","type":"GrFinding","projectedFrom":{"type":"GrFinding"}}}],"GrFinding":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"orbital","type":"string"},{"nullable":false,"name":"call","type":"string"},{"nullable":false,"name":"entry","type":"string"},{"nullable":false,"name":"site","type":"string","required":true},{"nullable":false,"name":"grant","type":"string"},{"nullable":false,"name":"app","type":"boolean"},{"nullable":false,"name":"argument","type":"number"},{"nullable":false,"name":"via","type":"string"}],"GrMapped":[{"nullable":false,"name":"final","type":"boolean","required":true},{"nullable":false,"name":"finding","type":"object","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"projectedFrom":{"type":"OrbFinding"}}],"GrNode":[{"nullable":false,"name":"","type":"union","properties":[{"nullable":false,"name":"string","type":"string"},{"nullable":false,"name":"number","type":"number"},{"nullable":false,"name":"boolean","type":"boolean"},{"nullable":false,"name":"array","type":"[GrNode]","items":{"nullable":true,"name":"","type":"GrNode","projectedFrom":{"type":"GrNode"}}},{"nullable":false,"name":"object","type":"Map<string,GrNode>","items":{"nullable":true,"name":"","type":"GrNode","projectedFrom":{"type":"GrNode"}}}]}],"GrTagged":[{"nullable":false,"name":"final","type":"boolean","required":true},{"nullable":false,"name":"f","type":"object","required":true,"properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"orbital","type":"string"},{"nullable":false,"name":"call","type":"string"},{"nullable":false,"name":"entry","type":"string"},{"nullable":false,"name":"site","type":"string","required":true},{"nullable":false,"name":"grant","type":"string"},{"nullable":false,"name":"app","type":"boolean"},{"nullable":false,"name":"argument","type":"number"},{"nullable":false,"name":"via","type":"string"}],"projectedFrom":{"type":"GrFinding"}}],"LintCodeDecl":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"LintOsGrantsCodes":[{"nullable":false,"name":"missing","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"unused","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"entryInvalid","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"targetNotStatic","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"shaderInvalid","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}},{"nullable":false,"name":"bindingMismatch","type":"object","properties":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"category","type":"string","required":true},{"nullable":false,"name":"description","type":"string","required":true}],"projectedFrom":{"type":"LintCodeDecl"}}],"OrbCommandArgs":[{"nullable":false,"name":"argv","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"cwd","type":"string","required":true}],"OrbFinding":[{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"message","type":"string","required":true},{"nullable":false,"name":"suggestion","type":"string","required":true},{"nullable":false,"name":"severity","type":"string","values":["warning","error"]}],"RcKept":[{"nullable":false,"name":"orbital","type":"number","required":true},{"nullable":false,"name":"traits","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}}],"RcRefRow":[{"nullable":false,"name":"kind","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"callSite","type":"GrNode","required":true,"properties":[],"projectedFrom":{"type":"GrNode"}},{"nullable":false,"name":"declaration","type":"GrNode","required":true,"properties":[],"projectedFrom":{"type":"GrNode"}}]}}],"inbound":["cli-lint-os-grants"],"osGrants":{"fs":[{"glob":"/**","modes":["read"]}],"exec":[],"net":[],"env":[],"stdio":[],"sys":[],"desktop":[],"anchored":{"fs":[{"anchor":"cwd","glob":"**","modes":["read"]}]}},"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_SFWPGXRAQ35BHZKJHX5YAFEFA6":{"id":"ent_SFWPGXRAQ35BHZKJHX5YAFEFA6","kind":"entity","bakedName":"OrbLintOsGrantsRun","curName":"OrbLintOsGrantsRun","renames":[],"owner":"workspace"},"evt_1KGJ46HP61V30W5Z11BN7CKKXX":{"id":"evt_1KGJ46HP61V30W5Z11BN7CKKXX","kind":"event","bakedName":"LINT_CALL_SITES_UNREAD","curName":"LINT_CALL_SITES_UNREAD","renames":[],"owner":"workspace","parent":"trt_M2BDKKF08AG45FWH98YVTK3W7A"},"evt_44BF320DF06QG43D1TYTGQESC8":{"id":"evt_44BF320DF06QG43D1TYTGQESC8","kind":"event","bakedName":"LINT_SPLIT","curName":"LINT_SPLIT","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_6GQZ2TFPTKVD9RTRVY7YJDSNH2":{"id":"evt_6GQZ2TFPTKVD9RTRVY7YJDSNH2","kind":"event","bakedName":"LINT_CALL_SITES","curName":"LINT_CALL_SITES","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_D78S26XFCHQP8WRQVP3R6MJ5JY":{"id":"evt_D78S26XFCHQP8WRQVP3R6MJ5JY","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_M2BDKKF08AG45FWH98YVTK3W7A"},"evt_HXHAKJGFE17Q0V5K45GAR66HWS":{"id":"evt_HXHAKJGFE17Q0V5K45GAR66HWS","kind":"event","bakedName":"LINT_CWD","curName":"LINT_CWD","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_K7K25CV48VJ4DGEQNSRH9TJJQ6":{"id":"evt_K7K25CV48VJ4DGEQNSRH9TJJQ6","kind":"event","bakedName":"LINT_ANSWERED","curName":"LINT_ANSWERED","renames":[],"owner":"workspace","parent":"trt_M2BDKKF08AG45FWH98YVTK3W7A"},"evt_PC609C1K9FSMQQ8JA545C0PJB8":{"id":"evt_PC609C1K9FSMQQ8JA545C0PJB8","kind":"event","bakedName":"LINT_CALL_SITES_REQUEST","curName":"LINT_CALL_SITES_REQUEST","renames":[],"owner":"workspace","parent":"trt_M2BDKKF08AG45FWH98YVTK3W7A"},"evt_RPTHECHW82Y417WM29BJKSG4BX":{"id":"evt_RPTHECHW82Y417WM29BJKSG4BX","kind":"event","bakedName":"LINT_CHECKED","curName":"LINT_CHECKED","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_RZ0NX7FVK8XSMBMV7FSR2WBDQD":{"id":"evt_RZ0NX7FVK8XSMBMV7FSR2WBDQD","kind":"event","bakedName":"LINT_CALLED","curName":"LINT_CALLED","renames":[],"owner":"workspace","parent":"trt_M2BDKKF08AG45FWH98YVTK3W7A"},"evt_SQ2J7WTYNYFAZ82386JQ4ME7PZ":{"id":"evt_SQ2J7WTYNYFAZ82386JQ4ME7PZ","kind":"event","bakedName":"LINT_MAP","curName":"LINT_MAP","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_VE222KTKQ69VK69ZAWM9Z6FAB0":{"id":"evt_VE222KTKQ69VK69ZAWM9Z6FAB0","kind":"event","bakedName":"LINT_FINISH","curName":"LINT_FINISH","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_WK1NXMQV1CXGP0AB6H0KSMFYX6":{"id":"evt_WK1NXMQV1CXGP0AB6H0KSMFYX6","kind":"event","bakedName":"LINT_FOUND","curName":"LINT_FOUND","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_X0BF6CW2ND1APNK7EE3HSE2KEE":{"id":"evt_X0BF6CW2ND1APNK7EE3HSE2KEE","kind":"event","bakedName":"LINT_FOUND","curName":"LINT_FOUND","renames":[],"owner":"workspace","parent":"trt_M2BDKKF08AG45FWH98YVTK3W7A"},"evt_XR1VQPCQE1BQ0JXYG7QFKJKFP1":{"id":"evt_XR1VQPCQE1BQ0JXYG7QFKJKFP1","kind":"event","bakedName":"LINT_GRANTS_FAILED","curName":"LINT_GRANTS_FAILED","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"evt_XW5XKDPPJJB990YQ1PZZTHY6K6":{"id":"evt_XW5XKDPPJJB990YQ1PZZTHY6K6","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M"},"orb_X319GQMFZW7ZY40TTDGETGXZ3Y":{"id":"orb_X319GQMFZW7ZY40TTDGETGXZ3Y","kind":"orbital","bakedName":"OrbLintOsGrantsOrbital","curName":"OrbLintOsGrantsOrbital","renames":[],"owner":"workspace"},"pag_2R96AKTT62D3129DKNK172WW4E":{"id":"pag_2R96AKTT62D3129DKNK172WW4E","kind":"page","bakedName":"OrbLintOsGrantsOrbitalStart","curName":"OrbLintOsGrantsOrbitalStart","renames":[],"owner":"workspace"},"trt_5XM0SQ72Z3HFHP7DFT1QQR169M":{"id":"trt_5XM0SQ72Z3HFHP7DFT1QQR169M","kind":"trait","bakedName":"OrbLintOsGrants","curName":"OrbLintOsGrants","renames":[],"owner":"workspace"},"trt_DMYKMC5DG5PR2QY98G9K26243T":{"id":"trt_DMYKMC5DG5PR2QY98G9K26243T","kind":"trait","bakedName":"CallSiteInput","curName":"CallSiteInput","renames":[],"owner":"workspace"},"trt_M2BDKKF08AG45FWH98YVTK3W7A":{"id":"trt_M2BDKKF08AG45FWH98YVTK3W7A","kind":"trait","bakedName":"OrbLintOsGrantsCli","curName":"OrbLintOsGrantsCli","renames":[],"owner":"workspace"}}}}