pi-daddy 0.22.0 → 0.24.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 (385) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +12 -6
  3. package/contracts/daily-view/v1/README.md +114 -0
  4. package/contracts/daily-view/v1/fixtures/view.json +525 -0
  5. package/contracts/daily-view/v1/fixtures/view.txt +75 -0
  6. package/contracts/daily-view/v1/fixtures/work.jsonl +17 -0
  7. package/contracts/daily-view/v1/p03/README.md +26 -0
  8. package/contracts/daily-view/v1/p03/fixtures/retained-executions.json +241 -0
  9. package/contracts/daily-view/v1/p03/projection.schema.json +194 -0
  10. package/contracts/daily-view/v1/p03/provenance.json +21 -0
  11. package/contracts/dashboard-host/v1/README.md +176 -0
  12. package/contracts/debrief/v1/README.md +146 -0
  13. package/contracts/debrief/v1/intervention/README.md +32 -0
  14. package/contracts/debrief/v1/intervention/fixtures/artifact-3ee11136beb864f518252e5024dae9197421fbf97b6e981d3243c782b5c44bd0.txt +1 -0
  15. package/contracts/debrief/v1/intervention/fixtures/artifact-58905d872dd3c54a9705f67b05fa82edbad7af6476ae8993faf1a7b9fadfb905.txt +1 -0
  16. package/contracts/debrief/v1/intervention/fixtures/assessment.json +29 -0
  17. package/contracts/debrief/v1/intervention/fixtures/blind-view.json +20 -0
  18. package/contracts/debrief/v1/intervention/fixtures/choice.json +7 -0
  19. package/contracts/debrief/v1/intervention/fixtures/manifest.json +57 -0
  20. package/contracts/debrief/v1/intervention/fixtures/reveal.json +39 -0
  21. package/contracts/debrief/v1/provenance.json +89 -0
  22. package/contracts/debrief/v1/work-capture/README.md +38 -0
  23. package/contracts/debrief/v1/work-capture/fixtures/batch.json +17 -0
  24. package/contracts/debrief/v1/work-capture/fixtures/cases.json +184 -0
  25. package/contracts/debrief/v1/work-capture/fixtures/review.json +184 -0
  26. package/contracts/debrief/v1/work-capture/review-request.schema.json +41 -0
  27. package/contracts/debrief/v1/work-capture/work-case.schema.json +190 -0
  28. package/contracts/debrief/v2/README.md +71 -0
  29. package/contracts/debrief/v2/input-pin.json +66 -0
  30. package/contracts/debrief/v2/intervention-upstream.md +40 -0
  31. package/contracts/debrief/v2/work-signals-upstream.md +22 -0
  32. package/contracts/dispatch-control/v1/README.md +109 -0
  33. package/contracts/dispatch-control/v1/request.schema.json +19 -0
  34. package/contracts/effect-profile/v1/README.md +124 -0
  35. package/contracts/execution-retention/v1/README.md +109 -0
  36. package/contracts/execution-retention/v2/README.md +148 -0
  37. package/contracts/execution-retention/v2/fixtures/interrupted-native-bytes.json +91 -0
  38. package/contracts/execution-retention/v2/fixtures/missing-native-session.json +91 -0
  39. package/contracts/execution-retention/v2/fixtures/native-file-unknown-branch.json +91 -0
  40. package/contracts/execution-retention/v2/fixtures/native-id-without-bytes.json +91 -0
  41. package/contracts/execution-retention/v2/fixtures/native-live-branch.json +90 -0
  42. package/contracts/execution-retention/v2/fixtures/replaced-native-session.json +92 -0
  43. package/contracts/execution-retention/v2/fixtures/result-82c620cdfeb8ca6b858cf653d7f5e2eedca5315d6244216d60e8b36f03223d6a.bin +1 -0
  44. package/contracts/execution-retention/v2/fixtures/session-2ec1f134bc739984434f7fca689e1c3d1c39fce2dcadae709e9b6faedfcc4ac7.bin +3 -0
  45. package/contracts/execution-retention/v2/fixtures/session-9bdb4bd16a901da31580acf056bda525225259e15ec409e0410480109011772f.bin +3 -0
  46. package/contracts/execution-retention/v2/manifest.schema.json +858 -0
  47. package/contracts/experiment/v1/README.md +164 -0
  48. package/contracts/factory-order/v1/README.md +151 -0
  49. package/contracts/factory-order/v1/adoption-pin.json +8 -0
  50. package/contracts/intent-control/v1/README.md +135 -0
  51. package/contracts/intent-control/v1/request.schema.json +1096 -0
  52. package/contracts/intent-control/v2/README.md +34 -0
  53. package/contracts/intent-control/v2/request.schema.json +1070 -0
  54. package/contracts/ledger/v4/README.md +241 -0
  55. package/contracts/ledger/v4/fixtures/layout-options.json +428 -0
  56. package/contracts/ledger/v4/fixtures/work-acceptance.json +57 -0
  57. package/contracts/ledger/v4/fixtures/work-occurrence.json +44 -0
  58. package/contracts/ledger/v4/fixtures/work-revision.json +26 -0
  59. package/contracts/ledger/v4/fixtures/work-snapshot.json +73 -0
  60. package/contracts/ledger/v4/ledger-event.schema.json +162 -0
  61. package/contracts/ordinary-control/v1/README.md +59 -0
  62. package/contracts/producer-ipc/v1/README.md +137 -0
  63. package/dist/check-runner.d.ts +5 -0
  64. package/dist/check-runner.d.ts.map +1 -1
  65. package/dist/check-runner.js +16 -2
  66. package/dist/check-runner.js.map +1 -1
  67. package/dist/cli.d.ts +3 -1
  68. package/dist/cli.d.ts.map +1 -1
  69. package/dist/cli.js +49 -3
  70. package/dist/cli.js.map +1 -1
  71. package/dist/control-journal.d.ts +20 -0
  72. package/dist/control-journal.d.ts.map +1 -0
  73. package/dist/control-journal.js +73 -0
  74. package/dist/control-journal.js.map +1 -0
  75. package/dist/daily-dashboard-host.d.ts +99 -0
  76. package/dist/daily-dashboard-host.d.ts.map +1 -0
  77. package/dist/daily-dashboard-host.js +71 -0
  78. package/dist/daily-dashboard-host.js.map +1 -0
  79. package/dist/daily-view-input.d.ts +44 -0
  80. package/dist/daily-view-input.d.ts.map +1 -0
  81. package/dist/daily-view-input.js +68 -0
  82. package/dist/daily-view-input.js.map +1 -0
  83. package/dist/daily-view-render.d.ts +4 -0
  84. package/dist/daily-view-render.d.ts.map +1 -0
  85. package/dist/daily-view-render.js +41 -0
  86. package/dist/daily-view-render.js.map +1 -0
  87. package/dist/daily-view.d.ts +74 -0
  88. package/dist/daily-view.d.ts.map +1 -0
  89. package/dist/daily-view.js +170 -0
  90. package/dist/daily-view.js.map +1 -0
  91. package/dist/dashboard-cli.d.ts +26 -1
  92. package/dist/dashboard-cli.d.ts.map +1 -1
  93. package/dist/dashboard-cli.js +128 -3
  94. package/dist/dashboard-cli.js.map +1 -1
  95. package/dist/dashboard-harness.d.ts +22 -0
  96. package/dist/dashboard-harness.d.ts.map +1 -0
  97. package/dist/dashboard-harness.js +89 -0
  98. package/dist/dashboard-harness.js.map +1 -0
  99. package/dist/dashboard-herdr.d.ts.map +1 -1
  100. package/dist/dashboard-herdr.js +7 -2
  101. package/dist/dashboard-herdr.js.map +1 -1
  102. package/dist/dashboard-host-contract.d.ts +116 -0
  103. package/dist/dashboard-host-contract.d.ts.map +1 -0
  104. package/dist/dashboard-host-contract.js +14 -0
  105. package/dist/dashboard-host-contract.js.map +1 -0
  106. package/dist/dashboard-host-transport.d.ts +16 -0
  107. package/dist/dashboard-host-transport.d.ts.map +1 -0
  108. package/dist/dashboard-host-transport.js +124 -0
  109. package/dist/dashboard-host-transport.js.map +1 -0
  110. package/dist/dashboard-host.d.ts +203 -0
  111. package/dist/dashboard-host.d.ts.map +1 -0
  112. package/dist/dashboard-host.js +376 -0
  113. package/dist/dashboard-host.js.map +1 -0
  114. package/dist/dashboard-observation.d.ts +28 -0
  115. package/dist/dashboard-observation.d.ts.map +1 -0
  116. package/dist/dashboard-observation.js +86 -0
  117. package/dist/dashboard-observation.js.map +1 -0
  118. package/dist/debrief-contract.d.ts +65 -0
  119. package/dist/debrief-contract.d.ts.map +1 -0
  120. package/dist/debrief-contract.js +151 -0
  121. package/dist/debrief-contract.js.map +1 -0
  122. package/dist/debrief-fixture.d.ts +16 -0
  123. package/dist/debrief-fixture.d.ts.map +1 -0
  124. package/dist/debrief-fixture.js +41 -0
  125. package/dist/debrief-fixture.js.map +1 -0
  126. package/dist/debrief-host.d.ts +59 -0
  127. package/dist/debrief-host.d.ts.map +1 -0
  128. package/dist/debrief-host.js +49 -0
  129. package/dist/debrief-host.js.map +1 -0
  130. package/dist/debrief-render.d.ts +5 -0
  131. package/dist/debrief-render.d.ts.map +1 -0
  132. package/dist/debrief-render.js +65 -0
  133. package/dist/debrief-render.js.map +1 -0
  134. package/dist/debrief.d.ts +90 -0
  135. package/dist/debrief.d.ts.map +1 -0
  136. package/dist/debrief.js +263 -0
  137. package/dist/debrief.js.map +1 -0
  138. package/dist/delegate-types.d.ts +2 -0
  139. package/dist/delegate-types.d.ts.map +1 -1
  140. package/dist/delegate-types.js.map +1 -1
  141. package/dist/delegate.d.ts.map +1 -1
  142. package/dist/delegate.js +1 -0
  143. package/dist/delegate.js.map +1 -1
  144. package/dist/dispatch-control.d.ts +45 -0
  145. package/dist/dispatch-control.d.ts.map +1 -0
  146. package/dist/dispatch-control.js +76 -0
  147. package/dist/dispatch-control.js.map +1 -0
  148. package/dist/effect-profile-runtime.d.ts +40 -0
  149. package/dist/effect-profile-runtime.d.ts.map +1 -0
  150. package/dist/effect-profile-runtime.js +51 -0
  151. package/dist/effect-profile-runtime.js.map +1 -0
  152. package/dist/effect-profile.d.ts +40 -0
  153. package/dist/effect-profile.d.ts.map +1 -0
  154. package/dist/effect-profile.js +152 -0
  155. package/dist/effect-profile.js.map +1 -0
  156. package/dist/execution-retention.d.ts +90 -0
  157. package/dist/execution-retention.d.ts.map +1 -0
  158. package/dist/execution-retention.js +247 -0
  159. package/dist/execution-retention.js.map +1 -0
  160. package/dist/experiment-contract.d.ts +56 -0
  161. package/dist/experiment-contract.d.ts.map +1 -0
  162. package/dist/experiment-contract.js +80 -0
  163. package/dist/experiment-contract.js.map +1 -0
  164. package/dist/experiment-state.d.ts +22 -0
  165. package/dist/experiment-state.d.ts.map +1 -0
  166. package/dist/experiment-state.js +79 -0
  167. package/dist/experiment-state.js.map +1 -0
  168. package/dist/experiment-store.d.ts +30 -0
  169. package/dist/experiment-store.d.ts.map +1 -0
  170. package/dist/experiment-store.js +147 -0
  171. package/dist/experiment-store.js.map +1 -0
  172. package/dist/experiment.d.ts +65 -0
  173. package/dist/experiment.d.ts.map +1 -0
  174. package/dist/experiment.js +357 -0
  175. package/dist/experiment.js.map +1 -0
  176. package/dist/factory-contract.d.ts +79 -0
  177. package/dist/factory-contract.d.ts.map +1 -0
  178. package/dist/factory-contract.js +89 -0
  179. package/dist/factory-contract.js.map +1 -0
  180. package/dist/factory-migration.d.ts +20 -0
  181. package/dist/factory-migration.d.ts.map +1 -0
  182. package/dist/factory-migration.js +55 -0
  183. package/dist/factory-migration.js.map +1 -0
  184. package/dist/factory-order.d.ts +848 -0
  185. package/dist/factory-order.d.ts.map +1 -0
  186. package/dist/factory-order.js +83 -0
  187. package/dist/factory-order.js.map +1 -0
  188. package/dist/factory-registry.d.ts +121 -0
  189. package/dist/factory-registry.d.ts.map +1 -0
  190. package/dist/factory-registry.js +133 -0
  191. package/dist/factory-registry.js.map +1 -0
  192. package/dist/file-lock.d.ts +8 -2
  193. package/dist/file-lock.d.ts.map +1 -1
  194. package/dist/file-lock.js +78 -19
  195. package/dist/file-lock.js.map +1 -1
  196. package/dist/herdr-poll.d.ts +8 -0
  197. package/dist/herdr-poll.d.ts.map +1 -1
  198. package/dist/herdr-poll.js +23 -0
  199. package/dist/herdr-poll.js.map +1 -1
  200. package/dist/index.d.ts +20 -0
  201. package/dist/index.d.ts.map +1 -1
  202. package/dist/index.js +20 -0
  203. package/dist/index.js.map +1 -1
  204. package/dist/intent-application.d.ts +17 -0
  205. package/dist/intent-application.d.ts.map +1 -0
  206. package/dist/intent-application.js +113 -0
  207. package/dist/intent-application.js.map +1 -0
  208. package/dist/intent-control.d.ts +201 -0
  209. package/dist/intent-control.d.ts.map +1 -0
  210. package/dist/intent-control.js +110 -0
  211. package/dist/intent-control.js.map +1 -0
  212. package/dist/intent-scheduling.d.ts +9 -0
  213. package/dist/intent-scheduling.d.ts.map +1 -0
  214. package/dist/intent-scheduling.js +15 -0
  215. package/dist/intent-scheduling.js.map +1 -0
  216. package/dist/ledger-append.d.ts +15 -0
  217. package/dist/ledger-append.d.ts.map +1 -0
  218. package/dist/ledger-append.js +94 -0
  219. package/dist/ledger-append.js.map +1 -0
  220. package/dist/ledger.d.ts +11 -0
  221. package/dist/ledger.d.ts.map +1 -1
  222. package/dist/ledger.js +3 -7
  223. package/dist/ledger.js.map +1 -1
  224. package/dist/native-session-target.d.ts +9 -0
  225. package/dist/native-session-target.d.ts.map +1 -0
  226. package/dist/native-session-target.js +29 -0
  227. package/dist/native-session-target.js.map +1 -0
  228. package/dist/native-session.d.ts +59 -0
  229. package/dist/native-session.d.ts.map +1 -0
  230. package/dist/native-session.js +154 -0
  231. package/dist/native-session.js.map +1 -0
  232. package/dist/order-schedule.d.ts +37 -0
  233. package/dist/order-schedule.d.ts.map +1 -0
  234. package/dist/order-schedule.js +81 -0
  235. package/dist/order-schedule.js.map +1 -0
  236. package/dist/ordinary-children.d.ts +52 -0
  237. package/dist/ordinary-children.d.ts.map +1 -0
  238. package/dist/ordinary-children.js +93 -0
  239. package/dist/ordinary-children.js.map +1 -0
  240. package/dist/producer-ipc-contract.d.ts +29 -0
  241. package/dist/producer-ipc-contract.d.ts.map +1 -0
  242. package/dist/producer-ipc-contract.js +29 -0
  243. package/dist/producer-ipc-contract.js.map +1 -0
  244. package/dist/producer-ipc.d.ts +55 -0
  245. package/dist/producer-ipc.d.ts.map +1 -0
  246. package/dist/producer-ipc.js +143 -0
  247. package/dist/producer-ipc.js.map +1 -0
  248. package/dist/resource-budget.d.ts +334 -0
  249. package/dist/resource-budget.d.ts.map +1 -0
  250. package/dist/resource-budget.js +415 -0
  251. package/dist/resource-budget.js.map +1 -0
  252. package/dist/retention-contract.d.ts +73 -0
  253. package/dist/retention-contract.d.ts.map +1 -0
  254. package/dist/retention-contract.js +104 -0
  255. package/dist/retention-contract.js.map +1 -0
  256. package/dist/retention-json.d.ts +3 -0
  257. package/dist/retention-json.d.ts.map +1 -0
  258. package/dist/retention-json.js +32 -0
  259. package/dist/retention-json.js.map +1 -0
  260. package/dist/run-child.d.ts +4 -0
  261. package/dist/run-child.d.ts.map +1 -1
  262. package/dist/run-child.js +16 -2
  263. package/dist/run-child.js.map +1 -1
  264. package/dist/run-herdr.d.ts +6 -0
  265. package/dist/run-herdr.d.ts.map +1 -1
  266. package/dist/run-herdr.js +19 -6
  267. package/dist/run-herdr.js.map +1 -1
  268. package/dist/vendor/adoption.d.ts +129 -0
  269. package/dist/vendor/adoption.d.ts.map +1 -0
  270. package/dist/vendor/adoption.js +102 -0
  271. package/dist/vendor/adoption.js.map +1 -0
  272. package/dist/work-command.d.ts +30 -0
  273. package/dist/work-command.d.ts.map +1 -0
  274. package/dist/work-command.js +148 -0
  275. package/dist/work-command.js.map +1 -0
  276. package/dist/work-ledger-destination.d.ts +20 -0
  277. package/dist/work-ledger-destination.d.ts.map +1 -0
  278. package/dist/work-ledger-destination.js +131 -0
  279. package/dist/work-ledger-destination.js.map +1 -0
  280. package/dist/work-ledger-json.d.ts +25 -0
  281. package/dist/work-ledger-json.d.ts.map +1 -0
  282. package/dist/work-ledger-json.js +267 -0
  283. package/dist/work-ledger-json.js.map +1 -0
  284. package/dist/work-ledger-occurrences.d.ts +227 -0
  285. package/dist/work-ledger-occurrences.d.ts.map +1 -0
  286. package/dist/work-ledger-occurrences.js +115 -0
  287. package/dist/work-ledger-occurrences.js.map +1 -0
  288. package/dist/work-ledger-projection.d.ts +295 -0
  289. package/dist/work-ledger-projection.d.ts.map +1 -0
  290. package/dist/work-ledger-projection.js +237 -0
  291. package/dist/work-ledger-projection.js.map +1 -0
  292. package/dist/work-ledger-snapshot.d.ts +29 -0
  293. package/dist/work-ledger-snapshot.d.ts.map +1 -0
  294. package/dist/work-ledger-snapshot.js +267 -0
  295. package/dist/work-ledger-snapshot.js.map +1 -0
  296. package/dist/work-ledger-types.d.ts +261 -0
  297. package/dist/work-ledger-types.d.ts.map +1 -0
  298. package/dist/work-ledger-types.js +13 -0
  299. package/dist/work-ledger-types.js.map +1 -0
  300. package/dist/work-ledger-validation.d.ts +14 -0
  301. package/dist/work-ledger-validation.d.ts.map +1 -0
  302. package/dist/work-ledger-validation.js +226 -0
  303. package/dist/work-ledger-validation.js.map +1 -0
  304. package/dist/work-ledger.d.ts +43 -0
  305. package/dist/work-ledger.d.ts.map +1 -0
  306. package/dist/work-ledger.js +225 -0
  307. package/dist/work-ledger.js.map +1 -0
  308. package/extensions/daily-dashboard-session.ts +30 -0
  309. package/extensions/daily-work-session.ts +20 -0
  310. package/extensions/delegate-chain.ts +1 -0
  311. package/extensions/delegation-native.ts +12 -0
  312. package/extensions/delegation.ts +25 -11
  313. package/extensions/execute-child.ts +44 -5
  314. package/extensions/executor-session.ts +9 -0
  315. package/extensions/grants-command.ts +14 -15
  316. package/extensions/grants-connected-command.ts +19 -0
  317. package/extensions/grants.ts +26 -2
  318. package/extensions/ordinary-runtime.ts +14 -0
  319. package/extensions/primary-shadow.ts +11 -0
  320. package/extensions/run-delegation.ts +9 -7
  321. package/extensions/session.ts +10 -20
  322. package/extensions/work-runtime.ts +44 -0
  323. package/package.json +78 -4
  324. package/src/check-runner.ts +20 -2
  325. package/src/cli.ts +41 -4
  326. package/src/control-journal.ts +26 -0
  327. package/src/daily-dashboard-host.ts +49 -0
  328. package/src/daily-view-input.ts +59 -0
  329. package/src/daily-view-render.ts +44 -0
  330. package/src/daily-view.ts +152 -0
  331. package/src/dashboard-cli.ts +108 -4
  332. package/src/dashboard-harness.ts +37 -0
  333. package/src/dashboard-herdr.ts +7 -2
  334. package/src/dashboard-host-contract.ts +45 -0
  335. package/src/dashboard-host-transport.ts +40 -0
  336. package/src/dashboard-host.ts +191 -0
  337. package/src/dashboard-observation.ts +45 -0
  338. package/src/debrief-contract.ts +127 -0
  339. package/src/debrief-fixture.ts +29 -0
  340. package/src/debrief-host.ts +53 -0
  341. package/src/debrief-render.ts +49 -0
  342. package/src/debrief.ts +198 -0
  343. package/src/delegate-types.ts +2 -0
  344. package/src/delegate.ts +1 -0
  345. package/src/dispatch-control.ts +81 -0
  346. package/src/effect-profile-runtime.ts +46 -0
  347. package/src/effect-profile.ts +129 -0
  348. package/src/execution-retention.ts +230 -0
  349. package/src/experiment-contract.ts +66 -0
  350. package/src/experiment-state.ts +44 -0
  351. package/src/experiment-store.ts +98 -0
  352. package/src/experiment.ts +231 -0
  353. package/src/factory-contract.ts +47 -0
  354. package/src/factory-migration.ts +29 -0
  355. package/src/factory-order.ts +56 -0
  356. package/src/factory-registry.ts +60 -0
  357. package/src/file-lock.ts +47 -11
  358. package/src/herdr-poll.ts +18 -0
  359. package/src/index.ts +32 -0
  360. package/src/intent-application.ts +90 -0
  361. package/src/intent-control.ts +107 -0
  362. package/src/intent-scheduling.ts +14 -0
  363. package/src/ledger-append.ts +72 -0
  364. package/src/ledger.ts +3 -9
  365. package/src/native-session-target.ts +23 -0
  366. package/src/native-session.ts +139 -0
  367. package/src/order-schedule.ts +42 -0
  368. package/src/ordinary-children.ts +59 -0
  369. package/src/producer-ipc-contract.ts +26 -0
  370. package/src/producer-ipc.ts +107 -0
  371. package/src/resource-budget.ts +349 -0
  372. package/src/retention-contract.ts +84 -0
  373. package/src/retention-json.ts +20 -0
  374. package/src/run-child.ts +13 -2
  375. package/src/run-herdr.ts +11 -7
  376. package/src/vendor/adoption.ts +109 -0
  377. package/src/work-command.ts +179 -0
  378. package/src/work-ledger-destination.ts +113 -0
  379. package/src/work-ledger-json.ts +228 -0
  380. package/src/work-ledger-occurrences.ts +99 -0
  381. package/src/work-ledger-projection.ts +262 -0
  382. package/src/work-ledger-snapshot.ts +246 -0
  383. package/src/work-ledger-types.ts +229 -0
  384. package/src/work-ledger-validation.ts +174 -0
  385. package/src/work-ledger.ts +186 -0
@@ -0,0 +1,1096 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "Bounded P01 intent application request, not authority",
4
+ "$comment": "Decoded structural contract. Runtime additionally enforces 48 KiB, duplicate/exact numeric parsing, digests, canonical builder output, unique event/obligation identities, complete selected P01 closure, independent authority and non-expansion. Embedded work_* definitions are exact ledger-v4 $defs with only local reference prefixes changed, checked by ordinary tests.",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "version",
9
+ "requestId",
10
+ "bindingDigest",
11
+ "expectedRevision",
12
+ "expectedSelection",
13
+ "action",
14
+ "events",
15
+ "selection",
16
+ "priorities"
17
+ ],
18
+ "properties": {
19
+ "version": {
20
+ "const": "intent-request-v1"
21
+ },
22
+ "requestId": {
23
+ "$ref": "#/$defs/id"
24
+ },
25
+ "bindingDigest": {
26
+ "$ref": "#/$defs/work_digest"
27
+ },
28
+ "expectedRevision": {
29
+ "type": "integer",
30
+ "minimum": 0,
31
+ "maximum": 32
32
+ },
33
+ "expectedSelection": {
34
+ "$ref": "#/$defs/selection"
35
+ },
36
+ "action": {
37
+ "enum": [
38
+ "revise-scope",
39
+ "reprioritize",
40
+ "select-alternative"
41
+ ]
42
+ },
43
+ "events": {
44
+ "type": "array",
45
+ "maxItems": 16,
46
+ "items": {
47
+ "allOf": [
48
+ {
49
+ "oneOf": [
50
+ {
51
+ "$ref": "#/$defs/work_workRevisionEvent"
52
+ },
53
+ {
54
+ "$ref": "#/$defs/work_workSnapshotEvent"
55
+ }
56
+ ]
57
+ },
58
+ {
59
+ "properties": {
60
+ "eventId": {
61
+ "$ref": "#/$defs/id"
62
+ }
63
+ }
64
+ }
65
+ ]
66
+ }
67
+ },
68
+ "selection": {
69
+ "$ref": "#/$defs/selection"
70
+ },
71
+ "priorities": {
72
+ "type": "array",
73
+ "maxItems": 32,
74
+ "items": {
75
+ "type": "object",
76
+ "additionalProperties": false,
77
+ "required": [
78
+ "obligation",
79
+ "rank"
80
+ ],
81
+ "properties": {
82
+ "rank": {
83
+ "type": "integer",
84
+ "minimum": 0,
85
+ "maximum": 127
86
+ },
87
+ "obligation": {
88
+ "type": "object",
89
+ "additionalProperties": false,
90
+ "required": [
91
+ "kind",
92
+ "id",
93
+ "revision",
94
+ "digest"
95
+ ],
96
+ "properties": {
97
+ "kind": {
98
+ "const": "obligation"
99
+ },
100
+ "id": {
101
+ "$ref": "#/$defs/id"
102
+ },
103
+ "revision": {
104
+ "$ref": "#/$defs/work_revisionNumber"
105
+ },
106
+ "digest": {
107
+ "$ref": "#/$defs/work_digest"
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
114
+ },
115
+ "anyOf": [
116
+ {
117
+ "properties": {
118
+ "action": {
119
+ "const": "revise-scope"
120
+ }
121
+ }
122
+ },
123
+ {
124
+ "properties": {
125
+ "action": {
126
+ "enum": [
127
+ "reprioritize",
128
+ "select-alternative"
129
+ ]
130
+ },
131
+ "events": {
132
+ "maxItems": 0
133
+ }
134
+ }
135
+ }
136
+ ],
137
+ "$defs": {
138
+ "id": {
139
+ "type": "string",
140
+ "pattern": "^[a-zA-Z0-9:_-]{1,128}$"
141
+ },
142
+ "selection": {
143
+ "type": "object",
144
+ "additionalProperties": false,
145
+ "required": [
146
+ "snapshot",
147
+ "event"
148
+ ],
149
+ "properties": {
150
+ "snapshot": {
151
+ "$ref": "#/$defs/work_identity"
152
+ },
153
+ "event": {
154
+ "$ref": "#/$defs/work_eventRef"
155
+ }
156
+ }
157
+ },
158
+ "work_id": {
159
+ "type": "string",
160
+ "minLength": 1,
161
+ "maxLength": 128,
162
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/@+\\-]{0,127}$"
163
+ },
164
+ "work_digest": {
165
+ "type": "string",
166
+ "minLength": 64,
167
+ "maxLength": 64,
168
+ "pattern": "^[0-9a-f]{64}$"
169
+ },
170
+ "work_revisionNumber": {
171
+ "type": "integer",
172
+ "minimum": 1,
173
+ "maximum": 9007199254740991
174
+ },
175
+ "work_timestamp": {
176
+ "type": "string",
177
+ "format": "date-time",
178
+ "minLength": 24,
179
+ "maxLength": 24,
180
+ "pattern": "^(?!0000)[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\\.[0-9]{3}Z$",
181
+ "$comment": "The runtime always verifies the calendar date, independently of a schema validator's format support."
182
+ },
183
+ "work_executionId": {
184
+ "type": "string",
185
+ "minLength": 41,
186
+ "maxLength": 41,
187
+ "pattern": "^[eE][xX][eE][cC]:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
188
+ },
189
+ "work_revisionKind": {
190
+ "enum": [
191
+ "scope",
192
+ "goal",
193
+ "node",
194
+ "obligation",
195
+ "artifact",
196
+ "policy"
197
+ ]
198
+ },
199
+ "work_occurrenceProvenance": {
200
+ "enum": [
201
+ "declared",
202
+ "observed"
203
+ ]
204
+ },
205
+ "work_occurrenceState": {
206
+ "enum": [
207
+ "unknown",
208
+ "starting",
209
+ "running",
210
+ "completed",
211
+ "failed"
212
+ ]
213
+ },
214
+ "work_identity": {
215
+ "type": "object",
216
+ "additionalProperties": false,
217
+ "required": [
218
+ "id",
219
+ "digest"
220
+ ],
221
+ "properties": {
222
+ "id": {
223
+ "$ref": "#/$defs/work_id"
224
+ },
225
+ "digest": {
226
+ "$ref": "#/$defs/work_digest"
227
+ }
228
+ }
229
+ },
230
+ "work_eventRef": {
231
+ "type": "object",
232
+ "additionalProperties": false,
233
+ "required": [
234
+ "eventId",
235
+ "digest"
236
+ ],
237
+ "properties": {
238
+ "eventId": {
239
+ "$ref": "#/$defs/work_id"
240
+ },
241
+ "digest": {
242
+ "$ref": "#/$defs/work_digest"
243
+ }
244
+ }
245
+ },
246
+ "work_revisionRef": {
247
+ "type": "object",
248
+ "additionalProperties": false,
249
+ "required": [
250
+ "kind",
251
+ "id",
252
+ "revision",
253
+ "digest"
254
+ ],
255
+ "properties": {
256
+ "kind": {
257
+ "$ref": "#/$defs/work_revisionKind"
258
+ },
259
+ "id": {
260
+ "$ref": "#/$defs/work_id"
261
+ },
262
+ "revision": {
263
+ "$ref": "#/$defs/work_revisionNumber"
264
+ },
265
+ "digest": {
266
+ "$ref": "#/$defs/work_digest"
267
+ }
268
+ }
269
+ },
270
+ "work_scopeRef": {
271
+ "allOf": [
272
+ {
273
+ "$ref": "#/$defs/work_revisionRef"
274
+ },
275
+ {
276
+ "type": "object",
277
+ "properties": {
278
+ "kind": {
279
+ "const": "scope"
280
+ }
281
+ }
282
+ }
283
+ ]
284
+ },
285
+ "work_intentRef": {
286
+ "allOf": [
287
+ {
288
+ "$ref": "#/$defs/work_revisionRef"
289
+ },
290
+ {
291
+ "type": "object",
292
+ "properties": {
293
+ "kind": {
294
+ "enum": [
295
+ "goal",
296
+ "node"
297
+ ]
298
+ }
299
+ }
300
+ }
301
+ ]
302
+ },
303
+ "work_goalParentRef": {
304
+ "allOf": [
305
+ {
306
+ "$ref": "#/$defs/work_revisionRef"
307
+ },
308
+ {
309
+ "type": "object",
310
+ "properties": {
311
+ "kind": {
312
+ "enum": [
313
+ "scope",
314
+ "goal"
315
+ ]
316
+ }
317
+ }
318
+ }
319
+ ]
320
+ },
321
+ "work_obligationRef": {
322
+ "allOf": [
323
+ {
324
+ "$ref": "#/$defs/work_revisionRef"
325
+ },
326
+ {
327
+ "type": "object",
328
+ "properties": {
329
+ "kind": {
330
+ "const": "obligation"
331
+ }
332
+ }
333
+ }
334
+ ]
335
+ },
336
+ "work_artifactRef": {
337
+ "allOf": [
338
+ {
339
+ "$ref": "#/$defs/work_revisionRef"
340
+ },
341
+ {
342
+ "type": "object",
343
+ "properties": {
344
+ "kind": {
345
+ "const": "artifact"
346
+ }
347
+ }
348
+ }
349
+ ]
350
+ },
351
+ "work_policyRef": {
352
+ "allOf": [
353
+ {
354
+ "$ref": "#/$defs/work_revisionRef"
355
+ },
356
+ {
357
+ "type": "object",
358
+ "properties": {
359
+ "kind": {
360
+ "const": "policy"
361
+ }
362
+ }
363
+ }
364
+ ]
365
+ },
366
+ "work_inventoryRef": {
367
+ "allOf": [
368
+ {
369
+ "$ref": "#/$defs/work_revisionRef"
370
+ },
371
+ {
372
+ "type": "object",
373
+ "properties": {
374
+ "kind": {
375
+ "enum": [
376
+ "goal",
377
+ "node",
378
+ "obligation",
379
+ "artifact",
380
+ "policy"
381
+ ]
382
+ }
383
+ }
384
+ }
385
+ ]
386
+ },
387
+ "work_workRevision": {
388
+ "type": "object",
389
+ "additionalProperties": false,
390
+ "required": [
391
+ "kind",
392
+ "id",
393
+ "revision",
394
+ "scopeId",
395
+ "predecessor",
396
+ "contentDigest",
397
+ "parent",
398
+ "dependencies",
399
+ "ownerId",
400
+ "permittedEffects",
401
+ "policy",
402
+ "digest"
403
+ ],
404
+ "properties": {
405
+ "kind": {
406
+ "$ref": "#/$defs/work_revisionKind"
407
+ },
408
+ "id": {
409
+ "$ref": "#/$defs/work_id"
410
+ },
411
+ "revision": {
412
+ "$ref": "#/$defs/work_revisionNumber"
413
+ },
414
+ "scopeId": {
415
+ "$ref": "#/$defs/work_id"
416
+ },
417
+ "predecessor": {
418
+ "oneOf": [
419
+ {
420
+ "type": "null"
421
+ },
422
+ {
423
+ "$ref": "#/$defs/work_revisionRef"
424
+ }
425
+ ]
426
+ },
427
+ "contentDigest": {
428
+ "$ref": "#/$defs/work_digest"
429
+ },
430
+ "parent": {
431
+ "oneOf": [
432
+ {
433
+ "type": "null"
434
+ },
435
+ {
436
+ "$ref": "#/$defs/work_revisionRef"
437
+ }
438
+ ]
439
+ },
440
+ "dependencies": {
441
+ "type": "array",
442
+ "maxItems": 256,
443
+ "uniqueItems": true,
444
+ "items": {
445
+ "$ref": "#/$defs/work_obligationRef"
446
+ }
447
+ },
448
+ "ownerId": {
449
+ "$ref": "#/$defs/work_id"
450
+ },
451
+ "permittedEffects": {
452
+ "type": "array",
453
+ "maxItems": 256,
454
+ "uniqueItems": true,
455
+ "items": {
456
+ "$ref": "#/$defs/work_id"
457
+ }
458
+ },
459
+ "policy": {
460
+ "oneOf": [
461
+ {
462
+ "type": "null"
463
+ },
464
+ {
465
+ "$ref": "#/$defs/work_policyRef"
466
+ }
467
+ ]
468
+ },
469
+ "digest": {
470
+ "$ref": "#/$defs/work_digest"
471
+ }
472
+ },
473
+ "allOf": [
474
+ {
475
+ "if": {
476
+ "type": "object",
477
+ "properties": {
478
+ "revision": {
479
+ "const": 1
480
+ }
481
+ }
482
+ },
483
+ "then": {
484
+ "type": "object",
485
+ "properties": {
486
+ "predecessor": {
487
+ "type": "null"
488
+ }
489
+ }
490
+ },
491
+ "else": {
492
+ "type": "object",
493
+ "properties": {
494
+ "predecessor": {
495
+ "$ref": "#/$defs/work_revisionRef"
496
+ }
497
+ }
498
+ }
499
+ },
500
+ {
501
+ "oneOf": [
502
+ {
503
+ "type": "object",
504
+ "properties": {
505
+ "kind": {
506
+ "const": "scope"
507
+ },
508
+ "parent": {
509
+ "type": "null"
510
+ },
511
+ "dependencies": {
512
+ "type": "array",
513
+ "maxItems": 0
514
+ },
515
+ "policy": {
516
+ "type": "null"
517
+ }
518
+ }
519
+ },
520
+ {
521
+ "type": "object",
522
+ "properties": {
523
+ "kind": {
524
+ "const": "goal"
525
+ },
526
+ "parent": {
527
+ "$ref": "#/$defs/work_goalParentRef"
528
+ },
529
+ "dependencies": {
530
+ "type": "array",
531
+ "maxItems": 0
532
+ },
533
+ "policy": {
534
+ "type": "null"
535
+ }
536
+ }
537
+ },
538
+ {
539
+ "type": "object",
540
+ "properties": {
541
+ "kind": {
542
+ "const": "node"
543
+ },
544
+ "parent": {
545
+ "$ref": "#/$defs/work_intentRef"
546
+ },
547
+ "dependencies": {
548
+ "type": "array",
549
+ "maxItems": 0
550
+ },
551
+ "policy": {
552
+ "type": "null"
553
+ }
554
+ }
555
+ },
556
+ {
557
+ "type": "object",
558
+ "properties": {
559
+ "kind": {
560
+ "const": "obligation"
561
+ },
562
+ "parent": {
563
+ "$ref": "#/$defs/work_intentRef"
564
+ },
565
+ "policy": {
566
+ "$ref": "#/$defs/work_policyRef"
567
+ }
568
+ }
569
+ },
570
+ {
571
+ "type": "object",
572
+ "properties": {
573
+ "kind": {
574
+ "enum": [
575
+ "artifact",
576
+ "policy"
577
+ ]
578
+ },
579
+ "parent": {
580
+ "type": "null"
581
+ },
582
+ "dependencies": {
583
+ "type": "array",
584
+ "maxItems": 0
585
+ },
586
+ "permittedEffects": {
587
+ "type": "array",
588
+ "maxItems": 0
589
+ },
590
+ "policy": {
591
+ "type": "null"
592
+ }
593
+ }
594
+ }
595
+ ]
596
+ }
597
+ ],
598
+ "$comment": "Runtime also requires scopeId=id for scope, same kind/id and exact predecessor revision+1, canonical list ordering, and own digest equality. Graph scope/history checks require the complete event snapshot."
599
+ },
600
+ "work_obligationBinding": {
601
+ "type": "object",
602
+ "additionalProperties": false,
603
+ "required": [
604
+ "intent",
605
+ "obligation",
606
+ "artifact",
607
+ "policy"
608
+ ],
609
+ "properties": {
610
+ "intent": {
611
+ "$ref": "#/$defs/work_intentRef"
612
+ },
613
+ "obligation": {
614
+ "$ref": "#/$defs/work_obligationRef"
615
+ },
616
+ "artifact": {
617
+ "oneOf": [
618
+ {
619
+ "type": "null"
620
+ },
621
+ {
622
+ "$ref": "#/$defs/work_artifactRef"
623
+ }
624
+ ]
625
+ },
626
+ "policy": {
627
+ "$ref": "#/$defs/work_policyRef"
628
+ }
629
+ }
630
+ },
631
+ "work_workSnapshot": {
632
+ "type": "object",
633
+ "additionalProperties": false,
634
+ "required": [
635
+ "snapshotId",
636
+ "scope",
637
+ "revisions",
638
+ "bindings",
639
+ "digest"
640
+ ],
641
+ "properties": {
642
+ "snapshotId": {
643
+ "$ref": "#/$defs/work_id"
644
+ },
645
+ "scope": {
646
+ "$ref": "#/$defs/work_scopeRef"
647
+ },
648
+ "revisions": {
649
+ "type": "array",
650
+ "maxItems": 256,
651
+ "uniqueItems": true,
652
+ "items": {
653
+ "$ref": "#/$defs/work_inventoryRef"
654
+ }
655
+ },
656
+ "bindings": {
657
+ "type": "array",
658
+ "maxItems": 256,
659
+ "uniqueItems": true,
660
+ "items": {
661
+ "$ref": "#/$defs/work_obligationBinding"
662
+ }
663
+ },
664
+ "digest": {
665
+ "$ref": "#/$defs/work_digest"
666
+ }
667
+ },
668
+ "$comment": "Runtime orders bindings by obligation ref, rejects duplicate obligation keys, and checks digests. Projection validates unique selected entities, exact bindings, same-scope ancestors, predecessors and dependencies."
669
+ },
670
+ "work_occurrenceLabels": {
671
+ "type": "object",
672
+ "additionalProperties": false,
673
+ "required": [
674
+ "sessionId",
675
+ "branchLeafId",
676
+ "toolCallId",
677
+ "taskId",
678
+ "workspaceId",
679
+ "definitionDigest",
680
+ "configurationDigest",
681
+ "modelId",
682
+ "effortId"
683
+ ],
684
+ "properties": {
685
+ "sessionId": {
686
+ "oneOf": [
687
+ {
688
+ "type": "null"
689
+ },
690
+ {
691
+ "$ref": "#/$defs/work_id"
692
+ }
693
+ ]
694
+ },
695
+ "branchLeafId": {
696
+ "oneOf": [
697
+ {
698
+ "type": "null"
699
+ },
700
+ {
701
+ "$ref": "#/$defs/work_id"
702
+ }
703
+ ]
704
+ },
705
+ "toolCallId": {
706
+ "oneOf": [
707
+ {
708
+ "type": "null"
709
+ },
710
+ {
711
+ "$ref": "#/$defs/work_id"
712
+ }
713
+ ]
714
+ },
715
+ "taskId": {
716
+ "oneOf": [
717
+ {
718
+ "type": "null"
719
+ },
720
+ {
721
+ "$ref": "#/$defs/work_id"
722
+ }
723
+ ]
724
+ },
725
+ "workspaceId": {
726
+ "oneOf": [
727
+ {
728
+ "type": "null"
729
+ },
730
+ {
731
+ "$ref": "#/$defs/work_id"
732
+ }
733
+ ]
734
+ },
735
+ "definitionDigest": {
736
+ "oneOf": [
737
+ {
738
+ "type": "null"
739
+ },
740
+ {
741
+ "$ref": "#/$defs/work_digest"
742
+ }
743
+ ]
744
+ },
745
+ "configurationDigest": {
746
+ "oneOf": [
747
+ {
748
+ "type": "null"
749
+ },
750
+ {
751
+ "$ref": "#/$defs/work_digest"
752
+ }
753
+ ]
754
+ },
755
+ "modelId": {
756
+ "oneOf": [
757
+ {
758
+ "type": "null"
759
+ },
760
+ {
761
+ "$ref": "#/$defs/work_id"
762
+ }
763
+ ]
764
+ },
765
+ "effortId": {
766
+ "oneOf": [
767
+ {
768
+ "type": "null"
769
+ },
770
+ {
771
+ "$ref": "#/$defs/work_id"
772
+ }
773
+ ]
774
+ }
775
+ }
776
+ },
777
+ "work_occurrencePayload": {
778
+ "type": "object",
779
+ "additionalProperties": false,
780
+ "required": [
781
+ "scope",
782
+ "obligation",
783
+ "executionId",
784
+ "parentExecutionId",
785
+ "childId",
786
+ "variantId",
787
+ "artifact",
788
+ "provenance",
789
+ "state",
790
+ "labels"
791
+ ],
792
+ "properties": {
793
+ "scope": {
794
+ "$ref": "#/$defs/work_scopeRef"
795
+ },
796
+ "obligation": {
797
+ "$ref": "#/$defs/work_obligationRef"
798
+ },
799
+ "executionId": {
800
+ "$ref": "#/$defs/work_executionId"
801
+ },
802
+ "parentExecutionId": {
803
+ "oneOf": [
804
+ {
805
+ "type": "null"
806
+ },
807
+ {
808
+ "$ref": "#/$defs/work_executionId"
809
+ }
810
+ ]
811
+ },
812
+ "childId": {
813
+ "oneOf": [
814
+ {
815
+ "type": "null"
816
+ },
817
+ {
818
+ "$ref": "#/$defs/work_id"
819
+ }
820
+ ]
821
+ },
822
+ "variantId": {
823
+ "oneOf": [
824
+ {
825
+ "type": "null"
826
+ },
827
+ {
828
+ "$ref": "#/$defs/work_id"
829
+ }
830
+ ]
831
+ },
832
+ "artifact": {
833
+ "oneOf": [
834
+ {
835
+ "type": "null"
836
+ },
837
+ {
838
+ "$ref": "#/$defs/work_artifactRef"
839
+ }
840
+ ]
841
+ },
842
+ "provenance": {
843
+ "$ref": "#/$defs/work_occurrenceProvenance"
844
+ },
845
+ "state": {
846
+ "$ref": "#/$defs/work_occurrenceState"
847
+ },
848
+ "labels": {
849
+ "$ref": "#/$defs/work_occurrenceLabels"
850
+ }
851
+ },
852
+ "$comment": "Runtime rejects self-parent execution identity. Provenance is wire evidence, never acceptance authority."
853
+ },
854
+ "work_evidenceRef": {
855
+ "type": "object",
856
+ "additionalProperties": false,
857
+ "required": [
858
+ "id",
859
+ "digest",
860
+ "event"
861
+ ],
862
+ "properties": {
863
+ "id": {
864
+ "$ref": "#/$defs/work_id"
865
+ },
866
+ "digest": {
867
+ "$ref": "#/$defs/work_digest"
868
+ },
869
+ "event": {
870
+ "oneOf": [
871
+ {
872
+ "type": "null"
873
+ },
874
+ {
875
+ "$ref": "#/$defs/work_eventRef"
876
+ }
877
+ ]
878
+ }
879
+ }
880
+ },
881
+ "work_acceptanceBinding": {
882
+ "type": "object",
883
+ "additionalProperties": false,
884
+ "required": [
885
+ "snapshot",
886
+ "scope",
887
+ "intent",
888
+ "obligation",
889
+ "artifact",
890
+ "artifactDigest",
891
+ "policy",
892
+ "evidence"
893
+ ],
894
+ "properties": {
895
+ "snapshot": {
896
+ "$ref": "#/$defs/work_identity"
897
+ },
898
+ "scope": {
899
+ "$ref": "#/$defs/work_scopeRef"
900
+ },
901
+ "intent": {
902
+ "$ref": "#/$defs/work_intentRef"
903
+ },
904
+ "obligation": {
905
+ "$ref": "#/$defs/work_obligationRef"
906
+ },
907
+ "artifact": {
908
+ "$ref": "#/$defs/work_artifactRef"
909
+ },
910
+ "artifactDigest": {
911
+ "$ref": "#/$defs/work_digest"
912
+ },
913
+ "policy": {
914
+ "$ref": "#/$defs/work_policyRef"
915
+ },
916
+ "evidence": {
917
+ "type": "array",
918
+ "minItems": 1,
919
+ "maxItems": 256,
920
+ "uniqueItems": true,
921
+ "items": {
922
+ "$ref": "#/$defs/work_evidenceRef"
923
+ }
924
+ }
925
+ }
926
+ },
927
+ "work_acceptancePayload": {
928
+ "type": "object",
929
+ "additionalProperties": false,
930
+ "required": [
931
+ "authorityId",
932
+ "binding"
933
+ ],
934
+ "properties": {
935
+ "authorityId": {
936
+ "$ref": "#/$defs/work_id"
937
+ },
938
+ "binding": {
939
+ "$ref": "#/$defs/work_acceptanceBinding"
940
+ }
941
+ }
942
+ },
943
+ "work_revisionPayload": {
944
+ "type": "object",
945
+ "additionalProperties": false,
946
+ "required": [
947
+ "revision"
948
+ ],
949
+ "properties": {
950
+ "revision": {
951
+ "$ref": "#/$defs/work_workRevision"
952
+ }
953
+ }
954
+ },
955
+ "work_snapshotPayload": {
956
+ "type": "object",
957
+ "additionalProperties": false,
958
+ "required": [
959
+ "snapshot"
960
+ ],
961
+ "properties": {
962
+ "snapshot": {
963
+ "$ref": "#/$defs/work_workSnapshot"
964
+ }
965
+ }
966
+ },
967
+ "work_workRevisionEvent": {
968
+ "type": "object",
969
+ "additionalProperties": false,
970
+ "required": [
971
+ "ledgerVersion",
972
+ "event",
973
+ "eventId",
974
+ "ts",
975
+ "payload",
976
+ "digest"
977
+ ],
978
+ "properties": {
979
+ "ledgerVersion": {
980
+ "const": 4
981
+ },
982
+ "event": {
983
+ "const": "work_revision"
984
+ },
985
+ "eventId": {
986
+ "$ref": "#/$defs/work_id"
987
+ },
988
+ "ts": {
989
+ "$ref": "#/$defs/work_timestamp"
990
+ },
991
+ "payload": {
992
+ "$ref": "#/$defs/work_revisionPayload"
993
+ },
994
+ "digest": {
995
+ "$ref": "#/$defs/work_digest"
996
+ }
997
+ }
998
+ },
999
+ "work_workSnapshotEvent": {
1000
+ "type": "object",
1001
+ "additionalProperties": false,
1002
+ "required": [
1003
+ "ledgerVersion",
1004
+ "event",
1005
+ "eventId",
1006
+ "ts",
1007
+ "payload",
1008
+ "digest"
1009
+ ],
1010
+ "properties": {
1011
+ "ledgerVersion": {
1012
+ "const": 4
1013
+ },
1014
+ "event": {
1015
+ "const": "work_snapshot"
1016
+ },
1017
+ "eventId": {
1018
+ "$ref": "#/$defs/work_id"
1019
+ },
1020
+ "ts": {
1021
+ "$ref": "#/$defs/work_timestamp"
1022
+ },
1023
+ "payload": {
1024
+ "$ref": "#/$defs/work_snapshotPayload"
1025
+ },
1026
+ "digest": {
1027
+ "$ref": "#/$defs/work_digest"
1028
+ }
1029
+ }
1030
+ },
1031
+ "work_workOccurrenceEvent": {
1032
+ "type": "object",
1033
+ "additionalProperties": false,
1034
+ "required": [
1035
+ "ledgerVersion",
1036
+ "event",
1037
+ "eventId",
1038
+ "ts",
1039
+ "payload",
1040
+ "digest"
1041
+ ],
1042
+ "properties": {
1043
+ "ledgerVersion": {
1044
+ "const": 4
1045
+ },
1046
+ "event": {
1047
+ "const": "work_occurrence"
1048
+ },
1049
+ "eventId": {
1050
+ "$ref": "#/$defs/work_id"
1051
+ },
1052
+ "ts": {
1053
+ "$ref": "#/$defs/work_timestamp"
1054
+ },
1055
+ "payload": {
1056
+ "$ref": "#/$defs/work_occurrencePayload"
1057
+ },
1058
+ "digest": {
1059
+ "$ref": "#/$defs/work_digest"
1060
+ }
1061
+ }
1062
+ },
1063
+ "work_workAcceptanceEvent": {
1064
+ "type": "object",
1065
+ "additionalProperties": false,
1066
+ "required": [
1067
+ "ledgerVersion",
1068
+ "event",
1069
+ "eventId",
1070
+ "ts",
1071
+ "payload",
1072
+ "digest"
1073
+ ],
1074
+ "properties": {
1075
+ "ledgerVersion": {
1076
+ "const": 4
1077
+ },
1078
+ "event": {
1079
+ "const": "work_acceptance"
1080
+ },
1081
+ "eventId": {
1082
+ "$ref": "#/$defs/work_id"
1083
+ },
1084
+ "ts": {
1085
+ "$ref": "#/$defs/work_timestamp"
1086
+ },
1087
+ "payload": {
1088
+ "$ref": "#/$defs/work_acceptancePayload"
1089
+ },
1090
+ "digest": {
1091
+ "$ref": "#/$defs/work_digest"
1092
+ }
1093
+ }
1094
+ }
1095
+ }
1096
+ }