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