@wowok/agent-mcp 2.7.1 → 2.7.3

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 (597) hide show
  1. package/dist/config/index.js +1 -1
  2. package/dist/config/runtime.js +1 -238
  3. package/dist/customer/account-events.d.ts +32 -0
  4. package/dist/customer/account-events.js +1 -0
  5. package/dist/customer/customer-advice.d.ts +1 -0
  6. package/dist/customer/customer-advice.js +1 -130
  7. package/dist/customer/index.js +1 -11
  8. package/dist/customer/industry-risks.js +1 -438
  9. package/dist/customer/info-puzzle.js +1 -681
  10. package/dist/customer/order-monitor.js +1 -328
  11. package/dist/customer/order-strategy.d.ts +1 -1
  12. package/dist/customer/order-strategy.js +1 -373
  13. package/dist/customer/post-purchase.js +1 -351
  14. package/dist/customer/preorder-compare.js +1 -34
  15. package/dist/customer/reminder-system.d.ts +2 -0
  16. package/dist/customer/reminder-system.js +1 -316
  17. package/dist/customer/risk-assessment.d.ts +1 -0
  18. package/dist/customer/risk-assessment.js +1 -397
  19. package/dist/customer/types.d.ts +2 -0
  20. package/dist/customer/types.js +1 -13
  21. package/dist/customer/user-preferences.js +1 -460
  22. package/dist/evaluation/arbitration-game.d.ts +9 -2
  23. package/dist/evaluation/arbitration-game.js +1 -48
  24. package/dist/evaluation/builtins/arbitration-score.d.ts +41 -0
  25. package/dist/evaluation/builtins/arbitration-score.js +1 -0
  26. package/dist/evaluation/builtins/demand-match.js +1 -153
  27. package/dist/evaluation/builtins/index.d.ts +1 -0
  28. package/dist/evaluation/builtins/index.js +1 -10
  29. package/dist/evaluation/builtins/service-risk.js +1 -55
  30. package/dist/evaluation/capability.js +1 -13
  31. package/dist/evaluation/category-match-rules.d.ts +30 -0
  32. package/dist/evaluation/category-match-rules.js +1 -0
  33. package/dist/evaluation/composer.js +1 -40
  34. package/dist/evaluation/engine.js +1 -175
  35. package/dist/evaluation/extract.js +1 -115
  36. package/dist/evaluation/game-strategy.d.ts +27 -0
  37. package/dist/evaluation/game-strategy.js +1 -0
  38. package/dist/evaluation/gap.js +1 -100
  39. package/dist/evaluation/index.d.ts +2 -0
  40. package/dist/evaluation/index.js +1 -11
  41. package/dist/evaluation/location-match.d.ts +42 -0
  42. package/dist/evaluation/location-match.js +1 -0
  43. package/dist/evaluation/node-game.d.ts +31 -3
  44. package/dist/evaluation/node-game.js +1 -57
  45. package/dist/evaluation/path-reasoning.d.ts +35 -0
  46. package/dist/evaluation/path-reasoning.js +1 -0
  47. package/dist/evaluation/region.d.ts +6 -0
  48. package/dist/evaluation/region.js +1 -36
  49. package/dist/evaluation/types.d.ts +18 -0
  50. package/dist/evaluation/types.js +1 -1
  51. package/dist/evaluation/user-injection.js +1 -27
  52. package/dist/experience/experience-reuse.js +1 -103
  53. package/dist/experience/index.js +1 -5
  54. package/dist/experience/intent-distill.js +1 -83
  55. package/dist/experience/realtime-feedback.js +1 -94
  56. package/dist/experience/types.js +1 -1
  57. package/dist/experience/user-profile.d.ts +1 -1
  58. package/dist/experience/user-profile.js +1 -171
  59. package/dist/extensions/business-modules.js +1 -287
  60. package/dist/extensions/capability-manifest.js +1 -781
  61. package/dist/extensions/constraint-registry.js +1 -198
  62. package/dist/extensions/index.d.ts +6 -0
  63. package/dist/extensions/index.js +1 -6
  64. package/dist/extensions/industry-layers.d.ts +75 -0
  65. package/dist/extensions/industry-layers.js +1 -0
  66. package/dist/extensions/industry-pack.d.ts +105 -0
  67. package/dist/extensions/industry-pack.js +1 -0
  68. package/dist/extensions/metric-registry.js +1 -257
  69. package/dist/extensions/mode-evaluator.d.ts +1 -1
  70. package/dist/extensions/mode-evaluator.js +1 -170
  71. package/dist/extensions/modes.js +1 -499
  72. package/dist/extensions/registry.d.ts +1 -0
  73. package/dist/extensions/registry.js +1 -717
  74. package/dist/extensions/types.js +1 -1
  75. package/dist/graph/base.d.ts +8 -0
  76. package/dist/graph/base.js +1 -0
  77. package/dist/harness/auto-escalation.js +1 -68
  78. package/dist/harness/checkpoint.js +1 -129
  79. package/dist/harness/index.d.ts +1 -0
  80. package/dist/harness/index.js +1 -78
  81. package/dist/harness/plan.d.ts +2 -0
  82. package/dist/harness/plan.js +1 -315
  83. package/dist/harness/recover.d.ts +1 -1
  84. package/dist/harness/recover.js +1 -139
  85. package/dist/harness/types.d.ts +2 -3
  86. package/dist/harness/types.js +1 -1
  87. package/dist/harness/verify.js +1 -237
  88. package/dist/index.js +1 -273
  89. package/dist/intent/enrich.js +1 -67
  90. package/dist/intent/index.js +1 -60
  91. package/dist/intent/matcher.js +1 -81
  92. package/dist/intent/store.js +1 -55
  93. package/dist/intent/types.js +1 -10
  94. package/dist/knowledge/acquisition-flywheel.js +1 -192
  95. package/dist/knowledge/allocation-confirm.js +1 -534
  96. package/dist/knowledge/allocation-context.js +1 -249
  97. package/dist/knowledge/allocation-ledger.js +1 -463
  98. package/dist/knowledge/allocation-puzzle.js +1 -298
  99. package/dist/knowledge/allocation-risk.js +1 -568
  100. package/dist/knowledge/allocation-templates.js +1 -970
  101. package/dist/knowledge/allocation-translation.js +1 -585
  102. package/dist/knowledge/anti-cheat.d.ts +37 -0
  103. package/dist/knowledge/anti-cheat.js +1 -0
  104. package/dist/knowledge/arb-confirm.d.ts +28 -0
  105. package/dist/knowledge/arb-confirm.js +1 -0
  106. package/dist/knowledge/arb-risk.js +1 -210
  107. package/dist/knowledge/arb-translation.d.ts +48 -0
  108. package/dist/knowledge/arb-translation.js +1 -0
  109. package/dist/knowledge/arbitration-confirm.js +1 -559
  110. package/dist/knowledge/arbitration-context.js +1 -505
  111. package/dist/knowledge/arbitration-ledger.js +1 -521
  112. package/dist/knowledge/arbitration-puzzle.js +1 -304
  113. package/dist/knowledge/arbitration-risk.js +1 -423
  114. package/dist/knowledge/arbitration-templates.js +1 -276
  115. package/dist/knowledge/arbitration-translation.js +1 -487
  116. package/dist/knowledge/audit-rules.js +1 -141
  117. package/dist/knowledge/bridge-confirm.d.ts +26 -0
  118. package/dist/knowledge/bridge-confirm.js +1 -0
  119. package/dist/knowledge/bridge-risk.js +1 -263
  120. package/dist/knowledge/bridge-translation.d.ts +37 -0
  121. package/dist/knowledge/bridge-translation.js +1 -0
  122. package/dist/knowledge/contact-confirm.d.ts +27 -0
  123. package/dist/knowledge/contact-confirm.js +1 -0
  124. package/dist/knowledge/contact-risk.js +1 -200
  125. package/dist/knowledge/contact-templates.js +1 -60
  126. package/dist/knowledge/contact-translation.d.ts +39 -0
  127. package/dist/knowledge/contact-translation.js +1 -0
  128. package/dist/knowledge/demand-confirm.js +1 -206
  129. package/dist/knowledge/demand-context.d.ts +17 -0
  130. package/dist/knowledge/demand-context.js +1 -0
  131. package/dist/knowledge/demand-ledger.d.ts +26 -0
  132. package/dist/knowledge/demand-ledger.js +1 -0
  133. package/dist/knowledge/demand-matching.js +1 -132
  134. package/dist/knowledge/demand-puzzle.d.ts +29 -0
  135. package/dist/knowledge/demand-puzzle.js +1 -0
  136. package/dist/knowledge/demand-risk.js +1 -240
  137. package/dist/knowledge/demand-templates.d.ts +12 -0
  138. package/dist/knowledge/demand-templates.js +1 -0
  139. package/dist/knowledge/demand-translation.js +1 -354
  140. package/dist/knowledge/deployment-scanner.js +1 -823
  141. package/dist/knowledge/dynamic-pricing.js +1 -87
  142. package/dist/knowledge/evidence-review.d.ts +12 -0
  143. package/dist/knowledge/evidence-review.js +1 -0
  144. package/dist/knowledge/examples-scanner-cli.js +1 -26
  145. package/dist/knowledge/examples-scanner.js +1 -843
  146. package/dist/knowledge/flywheel-loop.d.ts +0 -1
  147. package/dist/knowledge/flywheel-loop.js +1 -404
  148. package/dist/knowledge/fund-layer.js +1 -973
  149. package/dist/knowledge/glossary.js +1 -211
  150. package/dist/knowledge/guard-confirm.js +1 -406
  151. package/dist/knowledge/guard-context.js +1 -287
  152. package/dist/knowledge/guard-design-patterns.js +1 -360
  153. package/dist/knowledge/guard-ledger.js +1 -260
  154. package/dist/knowledge/guard-lint.js +1 -670
  155. package/dist/knowledge/guard-migration.d.ts +1 -1
  156. package/dist/knowledge/guard-migration.js +1 -228
  157. package/dist/knowledge/guard-puzzle.js +1 -805
  158. package/dist/knowledge/guard-render.js +1 -700
  159. package/dist/knowledge/guard-risk.js +1 -1879
  160. package/dist/knowledge/guard-submission-prompt.js +1 -171
  161. package/dist/knowledge/guard-templates.js +1 -1105
  162. package/dist/knowledge/guard-translation.js +1 -1119
  163. package/dist/knowledge/index.d.ts +71 -3
  164. package/dist/knowledge/index.js +1 -436
  165. package/dist/knowledge/industry-evolution.js +1 -323
  166. package/dist/knowledge/industry-generalizer.js +1 -381
  167. package/dist/knowledge/industry-registry.js +1 -174
  168. package/dist/knowledge/intent-metrics.d.ts +4 -3
  169. package/dist/knowledge/intent-metrics.js +1 -566
  170. package/dist/knowledge/machine-confirm.js +1 -559
  171. package/dist/knowledge/machine-context.js +1 -833
  172. package/dist/knowledge/machine-ledger.js +1 -338
  173. package/dist/knowledge/machine-puzzle.js +1 -494
  174. package/dist/knowledge/machine-render.js +1 -565
  175. package/dist/knowledge/machine-risk.js +1 -669
  176. package/dist/knowledge/machine-templates.js +1 -1597
  177. package/dist/knowledge/machine-topology.js +1 -234
  178. package/dist/knowledge/machine-translation.js +1 -513
  179. package/dist/knowledge/market-metrics.d.ts +12 -0
  180. package/dist/knowledge/market-metrics.js +1 -0
  181. package/dist/knowledge/market-operations.d.ts +46 -0
  182. package/dist/knowledge/market-operations.js +1 -0
  183. package/dist/knowledge/mcp-schema-audit-cli.js +1 -45
  184. package/dist/knowledge/mcp-schema-audit.d.ts +22 -22
  185. package/dist/knowledge/mcp-schema-audit.js +1 -777
  186. package/dist/knowledge/onchain-constants.js +1 -35
  187. package/dist/knowledge/order-confirm.js +1 -573
  188. package/dist/knowledge/order-context.js +1 -390
  189. package/dist/knowledge/order-ledger.js +1 -341
  190. package/dist/knowledge/order-puzzle.js +1 -255
  191. package/dist/knowledge/order-risk.js +1 -653
  192. package/dist/knowledge/order-templates.js +1 -368
  193. package/dist/knowledge/order-translation.js +1 -550
  194. package/dist/knowledge/overrides-loader.js +1 -65
  195. package/dist/knowledge/passport-confirm.js +1 -531
  196. package/dist/knowledge/passport-context.js +1 -306
  197. package/dist/knowledge/passport-ledger.js +1 -282
  198. package/dist/knowledge/passport-puzzle.js +1 -333
  199. package/dist/knowledge/passport-risk.js +1 -450
  200. package/dist/knowledge/passport-templates.js +1 -568
  201. package/dist/knowledge/passport-translation.js +1 -516
  202. package/dist/knowledge/payment-confirm.d.ts +26 -0
  203. package/dist/knowledge/payment-confirm.js +1 -0
  204. package/dist/knowledge/payment-risk.js +1 -249
  205. package/dist/knowledge/payment-translation.d.ts +37 -0
  206. package/dist/knowledge/payment-translation.js +1 -0
  207. package/dist/knowledge/permission-confirm.js +1 -426
  208. package/dist/knowledge/permission-context.js +1 -224
  209. package/dist/knowledge/permission-ledger.d.ts +11 -0
  210. package/dist/knowledge/permission-ledger.js +1 -403
  211. package/dist/knowledge/permission-puzzle.js +1 -173
  212. package/dist/knowledge/permission-risk.js +1 -411
  213. package/dist/knowledge/permission-templates.js +1 -234
  214. package/dist/knowledge/permission-translation.js +1 -350
  215. package/dist/knowledge/personal-confirm.d.ts +29 -0
  216. package/dist/knowledge/personal-confirm.js +1 -0
  217. package/dist/knowledge/personal-risk.js +1 -212
  218. package/dist/knowledge/personal-translation.d.ts +37 -0
  219. package/dist/knowledge/personal-translation.js +1 -0
  220. package/dist/knowledge/process-model.d.ts +1 -11
  221. package/dist/knowledge/process-model.js +1 -160
  222. package/dist/knowledge/progress-confirm.js +1 -456
  223. package/dist/knowledge/progress-context.js +1 -452
  224. package/dist/knowledge/progress-ledger.js +1 -330
  225. package/dist/knowledge/progress-puzzle.js +1 -219
  226. package/dist/knowledge/progress-risk.js +1 -461
  227. package/dist/knowledge/progress-templates.js +1 -228
  228. package/dist/knowledge/progress-translation.js +1 -405
  229. package/dist/knowledge/proof-confirm.js +1 -187
  230. package/dist/knowledge/proof-context.d.ts +17 -0
  231. package/dist/knowledge/proof-context.js +1 -0
  232. package/dist/knowledge/proof-ledger.d.ts +34 -0
  233. package/dist/knowledge/proof-ledger.js +1 -0
  234. package/dist/knowledge/proof-puzzle.d.ts +35 -0
  235. package/dist/knowledge/proof-puzzle.js +1 -0
  236. package/dist/knowledge/proof-risk.js +1 -207
  237. package/dist/knowledge/proof-templates.d.ts +22 -0
  238. package/dist/knowledge/proof-templates.js +1 -0
  239. package/dist/knowledge/proof-translation.js +1 -283
  240. package/dist/knowledge/registrar-confirm.d.ts +26 -0
  241. package/dist/knowledge/registrar-confirm.js +1 -0
  242. package/dist/knowledge/registrar-risk.js +1 -217
  243. package/dist/knowledge/registrar-translation.d.ts +37 -0
  244. package/dist/knowledge/registrar-translation.js +1 -0
  245. package/dist/knowledge/repository-confirm.js +1 -286
  246. package/dist/knowledge/repository-context.d.ts +12 -0
  247. package/dist/knowledge/repository-context.js +1 -0
  248. package/dist/knowledge/repository-ledger.d.ts +25 -0
  249. package/dist/knowledge/repository-ledger.js +1 -0
  250. package/dist/knowledge/repository-puzzle.d.ts +30 -0
  251. package/dist/knowledge/repository-puzzle.js +1 -0
  252. package/dist/knowledge/repository-risk.js +1 -373
  253. package/dist/knowledge/repository-templates.d.ts +14 -0
  254. package/dist/knowledge/repository-templates.js +1 -0
  255. package/dist/knowledge/repository-translation.js +1 -445
  256. package/dist/knowledge/reputation-rules.js +1 -99
  257. package/dist/knowledge/resource-confirm.d.ts +25 -0
  258. package/dist/knowledge/resource-confirm.js +1 -0
  259. package/dist/knowledge/resource-risk.js +1 -157
  260. package/dist/knowledge/resource-translation.d.ts +37 -0
  261. package/dist/knowledge/resource-translation.js +1 -0
  262. package/dist/knowledge/reward-confirm.js +1 -526
  263. package/dist/knowledge/reward-context.d.ts +2 -2
  264. package/dist/knowledge/reward-context.js +1 -504
  265. package/dist/knowledge/reward-ledger.js +1 -502
  266. package/dist/knowledge/reward-puzzle.js +1 -300
  267. package/dist/knowledge/reward-risk.js +1 -627
  268. package/dist/knowledge/reward-templates.js +1 -197
  269. package/dist/knowledge/reward-translation.js +1 -501
  270. package/dist/knowledge/safety-rules.d.ts +1 -0
  271. package/dist/knowledge/safety-rules.js +1 -404
  272. package/dist/knowledge/scenario-modes.js +1 -321
  273. package/dist/knowledge/service-confirm.js +1 -807
  274. package/dist/knowledge/service-context.js +1 -403
  275. package/dist/knowledge/service-ledger.js +1 -609
  276. package/dist/knowledge/service-puzzle.js +1 -236
  277. package/dist/knowledge/service-risk.d.ts +1 -1
  278. package/dist/knowledge/service-risk.js +1 -651
  279. package/dist/knowledge/service-templates.js +1 -456
  280. package/dist/knowledge/service-translation.js +1 -622
  281. package/dist/knowledge/template-registry.js +1 -353
  282. package/dist/knowledge/tool-constraints.js +1 -195
  283. package/dist/knowledge/tools-reference.js +1 -178
  284. package/dist/knowledge/treasury-confirm.js +1 -512
  285. package/dist/knowledge/treasury-context.js +1 -363
  286. package/dist/knowledge/treasury-ledger.js +1 -300
  287. package/dist/knowledge/treasury-puzzle.js +1 -216
  288. package/dist/knowledge/treasury-risk.js +1 -440
  289. package/dist/knowledge/treasury-templates.js +1 -358
  290. package/dist/knowledge/treasury-translation.js +1 -498
  291. package/dist/knowledge/trust-metrics.js +1 -198
  292. package/dist/knowledge/universal-template.d.ts +22 -0
  293. package/dist/knowledge/universal-template.js +1 -0
  294. package/dist/knowledge/util-confirm.d.ts +24 -0
  295. package/dist/knowledge/util-confirm.js +1 -0
  296. package/dist/knowledge/util-risk.js +1 -135
  297. package/dist/knowledge/util-translation.d.ts +38 -0
  298. package/dist/knowledge/util-translation.js +1 -0
  299. package/dist/knowledge/workflow-guidance.d.ts +116 -0
  300. package/dist/knowledge/workflow-guidance.js +1 -0
  301. package/dist/loop-engineering/aggregate.js +1 -132
  302. package/dist/loop-engineering/context-collect.js +1 -83
  303. package/dist/loop-engineering/diagnose.js +1 -273
  304. package/dist/loop-engineering/improve.js +1 -405
  305. package/dist/loop-engineering/index.js +1 -4
  306. package/dist/loop-engineering/pipeline.js +1 -56
  307. package/dist/mode-market/index.js +1 -3
  308. package/dist/mode-market/registry.js +1 -124
  309. package/dist/mode-market/review.js +1 -214
  310. package/dist/mode-market/submission.js +1 -85
  311. package/dist/participation/collaborator-interest.d.ts +23 -0
  312. package/dist/participation/collaborator-interest.js +1 -0
  313. package/dist/participation/customer-interest.d.ts +25 -0
  314. package/dist/participation/customer-interest.js +1 -0
  315. package/dist/participation/employee-kpi.d.ts +25 -0
  316. package/dist/participation/employee-kpi.js +1 -0
  317. package/dist/participation/employee-store.d.ts +16 -0
  318. package/dist/participation/employee-store.js +1 -0
  319. package/dist/participation/index.d.ts +2 -0
  320. package/dist/participation/index.js +1 -0
  321. package/dist/participation/merchant-interest.js +1 -100
  322. package/dist/participation/radar-core.d.ts +13 -3
  323. package/dist/participation/radar-core.js +1 -269
  324. package/dist/participation/supplier-interest.d.ts +25 -0
  325. package/dist/participation/supplier-interest.js +1 -0
  326. package/dist/persona/analyzer.js +1 -66
  327. package/dist/persona/bridge.js +1 -86
  328. package/dist/persona/defaults.js +1 -195
  329. package/dist/persona/experience-bridge.js +1 -23
  330. package/dist/persona/index.d.ts +9 -2
  331. package/dist/persona/index.js +1 -71
  332. package/dist/persona/local-region.d.ts +20 -0
  333. package/dist/persona/local-region.js +1 -0
  334. package/dist/persona/model.js +1 -111
  335. package/dist/persona/overrides.d.ts +10 -0
  336. package/dist/persona/overrides.js +1 -0
  337. package/dist/persona/pack-personae.d.ts +11 -0
  338. package/dist/persona/pack-personae.js +1 -0
  339. package/dist/persona/store.js +1 -62
  340. package/dist/persona/strategy-intent.d.ts +20 -0
  341. package/dist/persona/strategy-intent.js +1 -0
  342. package/dist/persona/types.d.ts +6 -2
  343. package/dist/persona/types.js +1 -5
  344. package/dist/project/business-puzzle.d.ts +1 -1
  345. package/dist/project/business-puzzle.js +1 -383
  346. package/dist/project/context-assembly.js +1 -254
  347. package/dist/project/deployment-bridge.js +1 -120
  348. package/dist/project/deployment-doc.js +1 -1126
  349. package/dist/project/edit-planner.js +1 -1342
  350. package/dist/project/evaluation.d.ts +37 -1
  351. package/dist/project/evaluation.js +1 -2011
  352. package/dist/project/game-theory.js +1 -177
  353. package/dist/project/graph-builder.js +1 -656
  354. package/dist/project/graph.d.ts +3 -6
  355. package/dist/project/graph.js +1 -340
  356. package/dist/project/handlers.d.ts +33 -2
  357. package/dist/project/handlers.js +1 -1784
  358. package/dist/project/index.d.ts +2 -0
  359. package/dist/project/index.js +1 -301
  360. package/dist/project/intent-analyzer.js +1 -149
  361. package/dist/project/machine-nodes.js +1 -36
  362. package/dist/project/merchant-guide.d.ts +19 -0
  363. package/dist/project/merchant-guide.js +1 -264
  364. package/dist/project/migration.js +1 -125
  365. package/dist/project/mode-actions.js +1 -309
  366. package/dist/project/namespace.js +1 -206
  367. package/dist/project/participation-radar.js +1 -428
  368. package/dist/project/pipeline-actions.js +1 -109
  369. package/dist/project/project-store.js +1 -422
  370. package/dist/project/query.js +1 -153
  371. package/dist/project/reverse-mapping.d.ts +34 -0
  372. package/dist/project/reverse-mapping.js +1 -0
  373. package/dist/project/risk-aggregator.js +1 -295
  374. package/dist/project/rollback-policy.js +1 -290
  375. package/dist/project/semantic-assembler.js +1 -345
  376. package/dist/project/semantic-graph.d.ts +3 -5
  377. package/dist/project/semantic-graph.js +1 -292
  378. package/dist/project/stage-gate.js +1 -369
  379. package/dist/project/substep-trace.js +1 -332
  380. package/dist/project/task-tracker.js +1 -78
  381. package/dist/project/workflow-design-assessment.d.ts +24 -0
  382. package/dist/project/workflow-design-assessment.js +1 -0
  383. package/dist/role/derivation.d.ts +18 -0
  384. package/dist/role/derivation.js +1 -0
  385. package/dist/role/index.d.ts +5 -0
  386. package/dist/role/index.js +1 -0
  387. package/dist/role/model.d.ts +8 -0
  388. package/dist/role/model.js +1 -0
  389. package/dist/role/resolution.d.ts +11 -0
  390. package/dist/role/resolution.js +1 -0
  391. package/dist/role/types.d.ts +11 -0
  392. package/dist/role/types.js +1 -0
  393. package/dist/rules.js +1 -52
  394. package/dist/safety/confirm-gate.d.ts +1 -1
  395. package/dist/safety/confirm-gate.js +1 -88
  396. package/dist/safety/index.js +1 -3
  397. package/dist/safety/preview.js +1 -52
  398. package/dist/schema/call/allocation.d.ts +186 -1385
  399. package/dist/schema/call/allocation.js +1 -34
  400. package/dist/schema/call/arbitration.d.ts +272 -1871
  401. package/dist/schema/call/arbitration.js +1 -113
  402. package/dist/schema/call/base.d.ts +1831 -9076
  403. package/dist/schema/call/base.js +1 -370
  404. package/dist/schema/call/bridge.d.ts +911 -3171
  405. package/dist/schema/call/bridge.js +1 -458
  406. package/dist/schema/call/contact.d.ts +135 -931
  407. package/dist/schema/call/contact.js +1 -37
  408. package/dist/schema/call/demand.d.ts +164 -1194
  409. package/dist/schema/call/demand.js +1 -47
  410. package/dist/schema/call/guard.d.ts +298 -1140
  411. package/dist/schema/call/guard.js +1 -161
  412. package/dist/schema/call/handler.js +1 -322
  413. package/dist/schema/call/index.js +1 -20
  414. package/dist/schema/call/machine.d.ts +459 -5403
  415. package/dist/schema/call/machine.js +1 -193
  416. package/dist/schema/call/order.d.ts +137 -844
  417. package/dist/schema/call/order.js +1 -35
  418. package/dist/schema/call/payment.d.ts +74 -561
  419. package/dist/schema/call/payment.js +1 -37
  420. package/dist/schema/call/permission-handler.js +1 -54
  421. package/dist/schema/call/permission.d.ts +335 -2791
  422. package/dist/schema/call/permission.js +1 -105
  423. package/dist/schema/call/personal.d.ts +227 -1814
  424. package/dist/schema/call/personal.js +1 -78
  425. package/dist/schema/call/progress.d.ts +140 -843
  426. package/dist/schema/call/progress.js +1 -47
  427. package/dist/schema/call/proof.d.ts +42 -258
  428. package/dist/schema/call/proof.js +1 -33
  429. package/dist/schema/call/repository.d.ts +324 -2222
  430. package/dist/schema/call/repository.js +1 -77
  431. package/dist/schema/call/reward.d.ts +153 -1183
  432. package/dist/schema/call/reward.js +1 -30
  433. package/dist/schema/call/semantic.js +1 -1679
  434. package/dist/schema/call/service.d.ts +376 -3431
  435. package/dist/schema/call/service.js +1 -184
  436. package/dist/schema/call/treasury.d.ts +252 -2158
  437. package/dist/schema/call/treasury.js +1 -71
  438. package/dist/schema/common/index.d.ts +222 -697
  439. package/dist/schema/common/index.js +1 -407
  440. package/dist/schema/config/index.d.ts +18 -161
  441. package/dist/schema/config/index.js +1 -68
  442. package/dist/schema/employee/index.d.ts +99 -0
  443. package/dist/schema/employee/index.js +1 -0
  444. package/dist/schema/evaluation/index.d.ts +1062 -3748
  445. package/dist/schema/evaluation/index.js +1 -356
  446. package/dist/schema/index.d.ts +3 -0
  447. package/dist/schema/index.js +1 -17
  448. package/dist/schema/industry-pack/index.d.ts +132 -0
  449. package/dist/schema/industry-pack/index.js +1 -0
  450. package/dist/schema/intent-radar/index.d.ts +92 -245
  451. package/dist/schema/intent-radar/index.js +1 -89
  452. package/dist/schema/local/index.d.ts +2045 -18080
  453. package/dist/schema/local/index.js +1 -927
  454. package/dist/schema/local/wip.d.ts +61 -651
  455. package/dist/schema/local/wip.js +1 -187
  456. package/dist/schema/messenger/index.d.ts +949 -5557
  457. package/dist/schema/messenger/index.js +1 -475
  458. package/dist/schema/operations.d.ts +2969 -26518
  459. package/dist/schema/operations.js +1 -520
  460. package/dist/schema/persona/index.d.ts +469 -1820
  461. package/dist/schema/persona/index.js +1 -148
  462. package/dist/schema/project/index.d.ts +1027 -8408
  463. package/dist/schema/project/index.js +1 -2057
  464. package/dist/schema/query/index.d.ts +12041 -75261
  465. package/dist/schema/query/index.js +1 -1646
  466. package/dist/schema/schema-query/index.d.ts +35 -98
  467. package/dist/schema/schema-query/index.js +1 -104
  468. package/dist/schema/schema-version.js +1 -76
  469. package/dist/schema/task-status.d.ts +26 -132
  470. package/dist/schema/task-status.js +1 -36
  471. package/dist/schema/trust/index.d.ts +194 -1290
  472. package/dist/schema/trust/index.js +1 -314
  473. package/dist/schema/utils/guard-parser.js +1 -419
  474. package/dist/schema/utils/guard-query-utils.js +1 -46
  475. package/dist/schema/utils/node-parser.js +1 -369
  476. package/dist/schema/utils/object-type-utils.js +1 -35
  477. package/dist/schema/utils/permission-index-utils.js +1 -7
  478. package/dist/schema/utils/permission-machine-check.js +1 -121
  479. package/dist/schema/utils/skills-recommendation.d.ts +1 -0
  480. package/dist/schema/utils/skills-recommendation.js +1 -77
  481. package/dist/schema/workspace/index.d.ts +69 -0
  482. package/dist/schema/workspace/index.js +1 -0
  483. package/dist/schema-query-impl/index.js +1 -0
  484. package/dist/schemas/account_operation.output.json +3147 -1652
  485. package/dist/schemas/account_operation.schema.json +225 -218
  486. package/dist/schemas/bridge_operation.output.json +1168 -650
  487. package/dist/schemas/bridge_operation.schema.json +736 -504
  488. package/dist/schemas/config_operation.output.json +185 -179
  489. package/dist/schemas/config_operation.schema.json +21 -26
  490. package/dist/schemas/employee_operation.output.json +207 -0
  491. package/dist/schemas/employee_operation.schema.json +176 -0
  492. package/dist/schemas/evaluation_operation.output.json +2329 -557
  493. package/dist/schemas/evaluation_operation.schema.json +2939 -720
  494. package/dist/schemas/guard2file.output.json +58 -64
  495. package/dist/schemas/guard2file.schema.json +79 -81
  496. package/dist/schemas/index.json +29 -11
  497. package/dist/schemas/industry_pack_operation.output.json +594 -0
  498. package/dist/schemas/industry_pack_operation.schema.json +55 -0
  499. package/dist/schemas/intent_radar.output.json +275 -200
  500. package/dist/schemas/intent_radar.schema.json +124 -123
  501. package/dist/schemas/local_info_operation.output.json +1174 -657
  502. package/dist/schemas/local_info_operation.schema.json +119 -125
  503. package/dist/schemas/local_mark_operation.output.json +1239 -689
  504. package/dist/schemas/local_mark_operation.schema.json +91 -96
  505. package/dist/schemas/machineNode2file.output.json +63 -69
  506. package/dist/schemas/machineNode2file.schema.json +79 -81
  507. package/dist/schemas/messenger_operation.output.json +2722 -1528
  508. package/dist/schemas/messenger_operation.schema.json +1482 -1264
  509. package/dist/schemas/onchain_events.output.json +2590 -975
  510. package/dist/schemas/onchain_events.schema.json +117 -99
  511. package/dist/schemas/onchain_operations.output.json +3957 -2309
  512. package/dist/schemas/onchain_operations.schema.json +20799 -9285
  513. package/dist/schemas/onchain_operations_allocation.schema.json +172 -108
  514. package/dist/schemas/onchain_operations_arbitration.schema.json +233 -146
  515. package/dist/schemas/onchain_operations_contact.schema.json +129 -90
  516. package/dist/schemas/onchain_operations_demand.schema.json +170 -112
  517. package/dist/schemas/onchain_operations_gen_passport.schema.json +61 -646
  518. package/dist/schemas/onchain_operations_gen_proof.schema.json +40 -172
  519. package/dist/schemas/onchain_operations_guard.schema.json +3765 -294
  520. package/dist/schemas/onchain_operations_machine.schema.json +537 -164
  521. package/dist/schemas/onchain_operations_order.schema.json +126 -96
  522. package/dist/schemas/onchain_operations_payment.schema.json +82 -67
  523. package/dist/schemas/onchain_operations_permission.schema.json +331 -93
  524. package/dist/schemas/onchain_operations_personal.schema.json +636 -96
  525. package/dist/schemas/onchain_operations_progress.schema.json +125 -92
  526. package/dist/schemas/onchain_operations_proof.schema.json +76 -69
  527. package/dist/schemas/onchain_operations_repository.schema.json +636 -249
  528. package/dist/schemas/onchain_operations_reward.schema.json +218 -108
  529. package/dist/schemas/onchain_operations_service.schema.json +679 -221
  530. package/dist/schemas/onchain_operations_treasury.schema.json +401 -135
  531. package/dist/schemas/onchain_table_data.output.json +6018 -2430
  532. package/dist/schemas/onchain_table_data.schema.json +544 -430
  533. package/dist/schemas/persona_operation.output.json +1568 -265
  534. package/dist/schemas/persona_operation.schema.json +346 -202
  535. package/dist/schemas/project_operation.output.json +6957 -5147
  536. package/dist/schemas/project_operation.schema.json +1050 -1020
  537. package/dist/schemas/query_task_status.output.json +195 -99
  538. package/dist/schemas/query_task_status.schema.json +12 -18
  539. package/dist/schemas/query_toolkit.output.json +18870 -14566
  540. package/dist/schemas/query_toolkit.schema.json +614 -522
  541. package/dist/schemas/schema_query.output.json +127 -129
  542. package/dist/schemas/schema_query.schema.json +64 -69
  543. package/dist/schemas/trust_score.output.json +678 -587
  544. package/dist/schemas/trust_score.schema.json +289 -277
  545. package/dist/schemas/wip_file.output.json +116 -124
  546. package/dist/schemas/wip_file.schema.json +142 -143
  547. package/dist/schemas/workspace_operation.output.json +277 -0
  548. package/dist/schemas/workspace_operation.schema.json +45 -0
  549. package/dist/schemas/wowok_buildin_info.output.json +1693 -723
  550. package/dist/schemas/wowok_buildin_info.schema.json +576 -512
  551. package/dist/telemetry/index.js +1 -112
  552. package/dist/telemetry/redact.js +1 -23
  553. package/dist/telemetry/storage.js +1 -80
  554. package/dist/tools/handlers/bridge.d.ts +8 -1
  555. package/dist/tools/handlers/bridge.js +1 -1
  556. package/dist/tools/handlers/config.js +1 -74
  557. package/dist/tools/handlers/employee.d.ts +2 -0
  558. package/dist/tools/handlers/employee.js +1 -0
  559. package/dist/tools/handlers/evaluation.js +1 -123
  560. package/dist/tools/handlers/file-export.js +1 -90
  561. package/dist/tools/handlers/industry-pack.d.ts +2 -0
  562. package/dist/tools/handlers/industry-pack.js +1 -0
  563. package/dist/tools/handlers/intent-radar.js +1 -76
  564. package/dist/tools/handlers/local.js +1 -53
  565. package/dist/tools/handlers/messenger.js +1 -188
  566. package/dist/tools/handlers/onchain.js +1 -1180
  567. package/dist/tools/handlers/persona.js +1 -89
  568. package/dist/tools/handlers/project.js +1 -211
  569. package/dist/tools/handlers/query.js +1 -434
  570. package/dist/tools/handlers/schema-query.js +1 -176
  571. package/dist/tools/handlers/task-status.js +1 -26
  572. package/dist/tools/handlers/trust.js +1 -380
  573. package/dist/tools/handlers/wip.js +1 -90
  574. package/dist/tools/handlers/workspace.d.ts +2 -0
  575. package/dist/tools/handlers/workspace.js +1 -0
  576. package/dist/tools/index.d.ts +2 -1
  577. package/dist/tools/index.js +1 -1382
  578. package/dist/tools/retry.js +1 -85
  579. package/dist/tools/rules-hook.d.ts +1 -1
  580. package/dist/tools/rules-hook.js +1 -23
  581. package/dist/tools/shared.d.ts +1 -1
  582. package/dist/tools/shared.js +1 -130
  583. package/dist/tools/types.d.ts +2 -1
  584. package/dist/tools/types.js +1 -1
  585. package/dist/tools/upgrade-check.d.ts +19 -0
  586. package/dist/tools/upgrade-check.js +1 -0
  587. package/dist/tools/wip-deploy-assist.js +1 -306
  588. package/dist/tools/wrap.js +1 -500
  589. package/package.json +7 -6
  590. package/dist/knowledge/arbitration-trust.d.ts +0 -24
  591. package/dist/knowledge/arbitration-trust.js +0 -117
  592. package/dist/schema/call/bridge-handler.d.ts +0 -8
  593. package/dist/schema/call/bridge-handler.js +0 -265
  594. package/dist/schema/sync-layer4.d.ts +0 -21
  595. package/dist/schema/sync-layer4.js +0 -286
  596. package/dist/schema-query/index.js +0 -810
  597. /package/dist/{schema-query → schema-query-impl}/index.d.ts +0 -0
@@ -1,1234 +1,2849 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://wowok.net/schemas/onchain_events.json",
3
+ "$id": "https://wowok.net/schemas/onchain_events.output.json",
4
4
  "title": "On-chain Events",
5
- "description": "Watch on-chain WoWok events by type",
6
- "$ref": "#/definitions/onchain_events",
7
- "definitions": {
8
- "onchain_events": {
9
- "type": "object",
10
- "properties": {
11
- "result": {
12
- "anyOf": [
13
- {
14
- "type": "object",
15
- "properties": {
16
- "data": {
17
- "type": "array",
18
- "items": {
19
- "anyOf": [
20
- {
5
+ "description": "Result of on-chain events query",
6
+ "type": "object",
7
+ "properties": {
8
+ "result": {
9
+ "anyOf": [
10
+ {
11
+ "type": "object",
12
+ "properties": {
13
+ "data": {
14
+ "type": "array",
15
+ "items": {
16
+ "anyOf": [
17
+ {
18
+ "type": "object",
19
+ "properties": {
20
+ "id": {
21
21
  "type": "object",
22
22
  "properties": {
23
- "id": {
24
- "type": "object",
25
- "properties": {
26
- "eventSeq": {
27
- "type": [
28
- "string",
29
- "number"
30
- ],
31
- "description": "Event sequence number"
32
- },
33
- "txDigest": {
34
- "type": "string",
35
- "description": "Transaction digest"
36
- }
37
- },
38
- "required": [
39
- "eventSeq",
40
- "txDigest"
41
- ],
42
- "additionalProperties": false,
43
- "description": "Event cursor"
44
- },
45
- "sender": {
46
- "type": "string",
47
- "description": "Event sender ID"
48
- },
49
- "type": {
23
+ "eventSeq": {
50
24
  "anyOf": [
51
25
  {
52
- "type": "string",
53
- "const": "ArbEvent"
54
- },
55
- {
56
- "type": "string",
57
- "const": "NewOrderEvent"
58
- },
59
- {
60
- "type": "string",
61
- "const": "ProgressEvent"
62
- },
63
- {
64
- "type": "string",
65
- "const": "DemandPresentEvent"
66
- },
67
- {
68
- "type": "string",
69
- "const": "DemandFeedbackEvent"
70
- },
71
- {
72
- "type": "string",
73
- "const": "NewEntityEvent"
26
+ "type": "string"
74
27
  },
75
28
  {
76
- "type": "string"
29
+ "type": "number"
77
30
  }
78
31
  ],
79
- "description": "Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')"
32
+ "description": "Event sequence number"
80
33
  },
81
- "type_raw": {
34
+ "txDigest": {
82
35
  "type": "string",
83
- "description": "Raw event type"
84
- },
85
- "time": {
86
- "type": [
87
- "string",
88
- "number"
89
- ],
90
- "description": "Event occurrence time"
91
- },
92
- "parsedJson_raw": {
93
- "description": "Raw parsed JSON data from the event"
36
+ "description": "Transaction digest"
94
37
  }
95
38
  },
96
39
  "required": [
97
- "id",
98
- "sender",
99
- "type",
100
- "type_raw",
101
- "time"
40
+ "eventSeq",
41
+ "txDigest"
102
42
  ],
103
43
  "additionalProperties": false,
104
- "description": "Event base information"
44
+ "description": "Event cursor"
105
45
  },
106
- {
107
- "type": "object",
108
- "properties": {
109
- "id": {
110
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/id"
46
+ "sender": {
47
+ "type": "string",
48
+ "description": "Event sender ID"
49
+ },
50
+ "type": {
51
+ "anyOf": [
52
+ {
53
+ "type": "string",
54
+ "const": "ArbEvent"
111
55
  },
112
- "sender": {
113
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/sender"
56
+ {
57
+ "type": "string",
58
+ "const": "NewOrderEvent"
114
59
  },
115
- "type": {
116
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type"
60
+ {
61
+ "type": "string",
62
+ "const": "ProgressEvent"
117
63
  },
118
- "type_raw": {
119
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type_raw"
64
+ {
65
+ "type": "string",
66
+ "const": "DemandPresentEvent"
120
67
  },
121
- "time": {
122
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/time"
68
+ {
69
+ "type": "string",
70
+ "const": "DemandFeedbackEvent"
123
71
  },
124
- "parsedJson_raw": {
125
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/parsedJson_raw"
72
+ {
73
+ "type": "string",
74
+ "const": "NewEntityEvent"
126
75
  },
127
- "arb": {
76
+ {
128
77
  "type": "string",
129
- "description": "Arbitration object ID"
78
+ "const": "ServiceEvent"
130
79
  },
131
- "arbitration": {
80
+ {
132
81
  "type": "string",
133
- "description": "Arbitration object ID"
82
+ "const": "DemandChangedEvent"
134
83
  },
135
- "order": {
84
+ {
136
85
  "type": "string",
137
- "description": "Order object ID"
86
+ "const": "VoteEvent"
138
87
  },
139
- "status": {
88
+ {
140
89
  "type": "string",
141
- "enum": [
142
- "Principal_confirming",
143
- "Arbitrator_confirming",
144
- "Voting",
145
- "Arbitrated",
146
- "Objectionable",
147
- "Finished",
148
- "Withdrawn"
90
+ "const": "FeedbackEvent"
91
+ },
92
+ {
93
+ "type": "string"
94
+ }
95
+ ],
96
+ "description": "Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent, ServiceEvent, DemandChangedEvent, VoteEvent, FeedbackEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')"
97
+ },
98
+ "type_raw": {
99
+ "type": "string",
100
+ "description": "Raw event type"
101
+ },
102
+ "time": {
103
+ "anyOf": [
104
+ {
105
+ "type": "string"
106
+ },
107
+ {
108
+ "type": "number"
109
+ }
110
+ ],
111
+ "description": "Event occurrence time"
112
+ },
113
+ "parsedJson_raw": {
114
+ "description": "Raw parsed JSON data from the event"
115
+ }
116
+ },
117
+ "required": [
118
+ "id",
119
+ "sender",
120
+ "type",
121
+ "type_raw",
122
+ "time"
123
+ ],
124
+ "additionalProperties": false,
125
+ "description": "Event base information"
126
+ },
127
+ {
128
+ "type": "object",
129
+ "properties": {
130
+ "id": {
131
+ "type": "object",
132
+ "properties": {
133
+ "eventSeq": {
134
+ "anyOf": [
135
+ {
136
+ "type": "string"
137
+ },
138
+ {
139
+ "type": "number"
140
+ }
149
141
  ],
150
- "description": "Arb object status"
142
+ "description": "Event sequence number"
143
+ },
144
+ "txDigest": {
145
+ "type": "string",
146
+ "description": "Transaction digest"
151
147
  }
152
148
  },
153
149
  "required": [
154
- "id",
155
- "sender",
156
- "type",
157
- "type_raw",
158
- "time",
159
- "arb",
160
- "arbitration",
161
- "order",
162
- "status"
150
+ "eventSeq",
151
+ "txDigest"
163
152
  ],
164
153
  "additionalProperties": false,
165
- "description": "Arbitration event"
154
+ "description": "Event cursor"
166
155
  },
167
- {
168
- "type": "object",
169
- "properties": {
170
- "id": {
171
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/id"
156
+ "sender": {
157
+ "type": "string",
158
+ "description": "Event sender ID"
159
+ },
160
+ "type": {
161
+ "anyOf": [
162
+ {
163
+ "type": "string",
164
+ "const": "ArbEvent"
172
165
  },
173
- "sender": {
174
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/sender"
166
+ {
167
+ "type": "string",
168
+ "const": "NewOrderEvent"
175
169
  },
176
- "type": {
177
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type"
170
+ {
171
+ "type": "string",
172
+ "const": "ProgressEvent"
178
173
  },
179
- "type_raw": {
180
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type_raw"
174
+ {
175
+ "type": "string",
176
+ "const": "DemandPresentEvent"
181
177
  },
182
- "time": {
183
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/time"
178
+ {
179
+ "type": "string",
180
+ "const": "DemandFeedbackEvent"
184
181
  },
185
- "parsedJson_raw": {
186
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/parsedJson_raw"
182
+ {
183
+ "type": "string",
184
+ "const": "NewEntityEvent"
187
185
  },
188
- "order": {
186
+ {
189
187
  "type": "string",
190
- "description": "Order object ID"
188
+ "const": "ServiceEvent"
191
189
  },
192
- "service": {
190
+ {
193
191
  "type": "string",
194
- "description": "Service object ID"
192
+ "const": "DemandChangedEvent"
195
193
  },
196
- "progress": {
197
- "type": [
198
- "string",
199
- "null"
200
- ],
201
- "description": "Progress object ID"
194
+ {
195
+ "type": "string",
196
+ "const": "VoteEvent"
202
197
  },
203
- "discount": {
204
- "type": [
205
- "string",
206
- "null"
207
- ],
208
- "description": "Discount object ID"
198
+ {
199
+ "type": "string",
200
+ "const": "FeedbackEvent"
209
201
  },
210
- "allocation": {
211
- "type": [
212
- "string",
213
- "null"
214
- ],
215
- "description": "Allocation object ID"
202
+ {
203
+ "type": "string"
204
+ }
205
+ ],
206
+ "description": "Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent, ServiceEvent, DemandChangedEvent, VoteEvent, FeedbackEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')"
207
+ },
208
+ "type_raw": {
209
+ "type": "string",
210
+ "description": "Raw event type"
211
+ },
212
+ "time": {
213
+ "anyOf": [
214
+ {
215
+ "type": "string"
216
+ },
217
+ {
218
+ "type": "number"
219
+ }
220
+ ],
221
+ "description": "Event occurrence time"
222
+ },
223
+ "parsedJson_raw": {
224
+ "description": "Raw parsed JSON data from the event"
225
+ },
226
+ "arb": {
227
+ "type": "string",
228
+ "description": "Arbitration object ID"
229
+ },
230
+ "arbitration": {
231
+ "type": "string",
232
+ "description": "Arbitration object ID"
233
+ },
234
+ "order": {
235
+ "type": "string",
236
+ "description": "Order object ID"
237
+ },
238
+ "status": {
239
+ "type": "string",
240
+ "enum": [
241
+ "Principal_confirming",
242
+ "Arbitrator_confirming",
243
+ "Voting",
244
+ "Arbitrated",
245
+ "Objectionable",
246
+ "Finished",
247
+ "Withdrawn"
248
+ ],
249
+ "description": "Arb object status"
250
+ },
251
+ "indemnity_amount": {
252
+ "description": "Compensation awarded (smallest-unit, when the transition rules indemnity).",
253
+ "anyOf": [
254
+ {
255
+ "type": "string"
256
+ },
257
+ {
258
+ "type": "number"
259
+ },
260
+ {
261
+ "type": "null"
262
+ }
263
+ ]
264
+ },
265
+ "compensation_time": {
266
+ "description": "Claim-ready time (when the transition finishes indemnity).",
267
+ "anyOf": [
268
+ {
269
+ "type": "string"
270
+ },
271
+ {
272
+ "type": "number"
216
273
  },
217
- "amount": {
218
- "type": [
219
- "number",
220
- "string"
274
+ {
275
+ "type": "null"
276
+ }
277
+ ]
278
+ }
279
+ },
280
+ "required": [
281
+ "id",
282
+ "sender",
283
+ "type",
284
+ "type_raw",
285
+ "time",
286
+ "arb",
287
+ "arbitration",
288
+ "order",
289
+ "status"
290
+ ],
291
+ "additionalProperties": false,
292
+ "description": "Arbitration event"
293
+ },
294
+ {
295
+ "type": "object",
296
+ "properties": {
297
+ "id": {
298
+ "type": "object",
299
+ "properties": {
300
+ "eventSeq": {
301
+ "anyOf": [
302
+ {
303
+ "type": "string"
304
+ },
305
+ {
306
+ "type": "number"
307
+ }
221
308
  ],
222
- "description": "A coin/balance amount. Accepts three formats: (1) DISPLAY FORMAT with token symbol: \"2.5WOW\", \"10USDC\", \"0.05SUI\" — auto-converted to smallest units via the Fund Processing Layer (token precision resolved from official registry → cache → on-chain). The symbol MUST match the token's type_parameter. (2) SMALLEST UNIT (numeric string): \"10000000000\" — used as-is, no conversion. (3) SMALLEST UNIT (number): 10000000000 — used as-is (loses precision above 2^53). PRECISION RULE: for values exceeding 2^53, ALWAYS use format (1) or (2) — JS numbers lose precision. Default token: WOW (9 decimals, 1 WOW = 10^9 MIST). For custom tokens: use display format with the token's symbol, or pass smallest units directly. MONEY CONFIRMATION: all monetary fields trigger user confirmation via the Fund Processing Layer. If multiple tokens share a symbol (ambiguity), specify the full type string in type_parameter. Examples: \"2.5WOW\" (display → 2500000000), 10000000000 (number, smallest unit), \"50000000000\" (string, smallest unit). Used for: Service.sale.price, Service.compensation_fund_add balance, Treasury.deposit, Arbitration.fee, Reward.amount, stock quantities."
309
+ "description": "Event sequence number"
310
+ },
311
+ "txDigest": {
312
+ "type": "string",
313
+ "description": "Transaction digest"
223
314
  }
224
315
  },
225
316
  "required": [
226
- "id",
227
- "sender",
228
- "type",
229
- "type_raw",
230
- "time",
231
- "order",
232
- "service",
233
- "amount"
317
+ "eventSeq",
318
+ "txDigest"
234
319
  ],
235
320
  "additionalProperties": false,
236
- "description": "New order event"
321
+ "description": "Event cursor"
237
322
  },
238
- {
239
- "type": "object",
240
- "properties": {
241
- "id": {
242
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/id"
243
- },
244
- "sender": {
245
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/sender"
323
+ "sender": {
324
+ "type": "string",
325
+ "description": "Event sender ID"
326
+ },
327
+ "type": {
328
+ "anyOf": [
329
+ {
330
+ "type": "string",
331
+ "const": "ArbEvent"
246
332
  },
247
- "type": {
248
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type"
333
+ {
334
+ "type": "string",
335
+ "const": "NewOrderEvent"
249
336
  },
250
- "type_raw": {
251
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type_raw"
337
+ {
338
+ "type": "string",
339
+ "const": "ProgressEvent"
252
340
  },
253
- "time": {
254
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/time"
341
+ {
342
+ "type": "string",
343
+ "const": "DemandPresentEvent"
255
344
  },
256
- "parsedJson_raw": {
257
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/parsedJson_raw"
345
+ {
346
+ "type": "string",
347
+ "const": "DemandFeedbackEvent"
258
348
  },
259
- "progress": {
349
+ {
260
350
  "type": "string",
261
- "description": "Progress object ID"
351
+ "const": "NewEntityEvent"
262
352
  },
263
- "machine": {
353
+ {
264
354
  "type": "string",
265
- "description": "Machine object ID"
355
+ "const": "ServiceEvent"
266
356
  },
267
- "task": {
268
- "type": [
269
- "string",
270
- "null"
271
- ],
272
- "description": "Task object ID"
357
+ {
358
+ "type": "string",
359
+ "const": "DemandChangedEvent"
273
360
  },
274
- "node": {
361
+ {
275
362
  "type": "string",
276
- "description": "Current node name"
363
+ "const": "VoteEvent"
277
364
  },
278
- "forward": {
279
- "type": [
280
- "string",
281
- "null"
282
- ],
283
- "description": "Forward operation name"
365
+ {
366
+ "type": "string",
367
+ "const": "FeedbackEvent"
284
368
  },
285
- "hold": {
286
- "type": [
287
- "boolean",
288
- "null"
289
- ],
290
- "description": "Whether it is a hold operation"
369
+ {
370
+ "type": "string"
291
371
  }
292
- },
293
- "required": [
294
- "id",
295
- "sender",
296
- "type",
297
- "type_raw",
298
- "time",
299
- "progress",
300
- "machine",
301
- "node"
302
372
  ],
303
- "additionalProperties": false,
304
- "description": "Progress event"
373
+ "description": "Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent, ServiceEvent, DemandChangedEvent, VoteEvent, FeedbackEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')"
305
374
  },
306
- {
307
- "type": "object",
308
- "properties": {
309
- "id": {
310
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/id"
311
- },
312
- "sender": {
313
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/sender"
314
- },
315
- "type": {
316
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type"
375
+ "type_raw": {
376
+ "type": "string",
377
+ "description": "Raw event type"
378
+ },
379
+ "time": {
380
+ "anyOf": [
381
+ {
382
+ "type": "string"
317
383
  },
318
- "type_raw": {
319
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type_raw"
384
+ {
385
+ "type": "number"
386
+ }
387
+ ],
388
+ "description": "Event occurrence time"
389
+ },
390
+ "parsedJson_raw": {
391
+ "description": "Raw parsed JSON data from the event"
392
+ },
393
+ "order": {
394
+ "type": "string",
395
+ "description": "Order object ID"
396
+ },
397
+ "service": {
398
+ "type": "string",
399
+ "description": "Service object ID"
400
+ },
401
+ "progress": {
402
+ "description": "Progress object ID",
403
+ "anyOf": [
404
+ {
405
+ "type": "string"
320
406
  },
321
- "time": {
322
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/time"
407
+ {
408
+ "type": "null"
409
+ }
410
+ ]
411
+ },
412
+ "discount": {
413
+ "description": "Discount object ID",
414
+ "anyOf": [
415
+ {
416
+ "type": "string"
323
417
  },
324
- "parsedJson_raw": {
325
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/parsedJson_raw"
418
+ {
419
+ "type": "null"
420
+ }
421
+ ]
422
+ },
423
+ "allocation": {
424
+ "description": "Allocation object ID",
425
+ "anyOf": [
426
+ {
427
+ "type": "string"
326
428
  },
327
- "demand": {
328
- "type": "string",
329
- "description": "Demand object ID"
429
+ {
430
+ "type": "null"
431
+ }
432
+ ]
433
+ },
434
+ "amount": {
435
+ "anyOf": [
436
+ {
437
+ "type": "number"
330
438
  },
331
- "service": {
332
- "type": [
333
- "string",
334
- "null"
439
+ {
440
+ "type": "string"
441
+ }
442
+ ],
443
+ "description": "A coin/balance amount. Accepts three formats: (1) DISPLAY FORMAT with token symbol: \"2.5WOW\", \"10USDC\", \"0.05SUI\" — auto-converted to smallest units via the Fund Processing Layer (token precision resolved from official registry → cache → on-chain). The symbol MUST match the token's type_parameter. (2) SMALLEST UNIT (numeric string): \"10000000000\" — used as-is, no conversion. (3) SMALLEST UNIT (number): 10000000000 — used as-is (loses precision above 2^53). PRECISION RULE: for values exceeding 2^53, ALWAYS use format (1) or (2) — JS numbers lose precision. Default token: WOW (9 decimals, 1 WOW = 10^9 MIST). For custom tokens: use display format with the token's symbol, or pass smallest units directly. MONEY CONFIRMATION: all monetary fields trigger user confirmation via the Fund Processing Layer. If multiple tokens share a symbol (ambiguity), specify the full type string in type_parameter. Examples: \"2.5WOW\" (display → 2500000000), 10000000000 (number, smallest unit), \"50000000000\" (string, smallest unit). Used for: Service.sale.price, Service.compensation_fund_add balance, Treasury.deposit, Arbitration.fee, Reward.amount, stock quantities."
444
+ }
445
+ },
446
+ "required": [
447
+ "id",
448
+ "sender",
449
+ "type",
450
+ "type_raw",
451
+ "time",
452
+ "order",
453
+ "service",
454
+ "amount"
455
+ ],
456
+ "additionalProperties": false,
457
+ "description": "New order event"
458
+ },
459
+ {
460
+ "type": "object",
461
+ "properties": {
462
+ "id": {
463
+ "type": "object",
464
+ "properties": {
465
+ "eventSeq": {
466
+ "anyOf": [
467
+ {
468
+ "type": "string"
469
+ },
470
+ {
471
+ "type": "number"
472
+ }
335
473
  ],
336
- "description": "Service object ID"
474
+ "description": "Event sequence number"
337
475
  },
338
- "recommend": {
476
+ "txDigest": {
339
477
  "type": "string",
340
- "description": "Recommendation letter"
478
+ "description": "Transaction digest"
341
479
  }
342
480
  },
343
481
  "required": [
344
- "id",
345
- "sender",
346
- "type",
347
- "type_raw",
348
- "time",
349
- "demand",
350
- "recommend"
482
+ "eventSeq",
483
+ "txDigest"
351
484
  ],
352
485
  "additionalProperties": false,
353
- "description": "Event of recommending service to Demand object"
486
+ "description": "Event cursor"
354
487
  },
355
- {
356
- "type": "object",
357
- "properties": {
358
- "id": {
359
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/id"
488
+ "sender": {
489
+ "type": "string",
490
+ "description": "Event sender ID"
491
+ },
492
+ "type": {
493
+ "anyOf": [
494
+ {
495
+ "type": "string",
496
+ "const": "ArbEvent"
360
497
  },
361
- "sender": {
362
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/sender"
498
+ {
499
+ "type": "string",
500
+ "const": "NewOrderEvent"
363
501
  },
364
- "type": {
365
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type"
502
+ {
503
+ "type": "string",
504
+ "const": "ProgressEvent"
366
505
  },
367
- "type_raw": {
368
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type_raw"
506
+ {
507
+ "type": "string",
508
+ "const": "DemandPresentEvent"
369
509
  },
370
- "time": {
371
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/time"
510
+ {
511
+ "type": "string",
512
+ "const": "DemandFeedbackEvent"
372
513
  },
373
- "parsedJson_raw": {
374
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/parsedJson_raw"
514
+ {
515
+ "type": "string",
516
+ "const": "NewEntityEvent"
375
517
  },
376
- "demand": {
518
+ {
377
519
  "type": "string",
378
- "description": "Demand object ID"
520
+ "const": "ServiceEvent"
379
521
  },
380
- "service": {
381
- "type": [
382
- "string",
383
- "null"
384
- ],
385
- "description": "Service object ID"
522
+ {
523
+ "type": "string",
524
+ "const": "DemandChangedEvent"
386
525
  },
387
- "feedback": {
526
+ {
388
527
  "type": "string",
389
- "description": "Feedback content"
528
+ "const": "VoteEvent"
390
529
  },
391
- "acceptance_score": {
392
- "type": [
393
- "number",
394
- "null"
395
- ],
396
- "description": "Acceptance score"
530
+ {
531
+ "type": "string",
532
+ "const": "FeedbackEvent"
533
+ },
534
+ {
535
+ "type": "string"
397
536
  }
398
- },
399
- "required": [
400
- "id",
401
- "sender",
402
- "type",
403
- "type_raw",
404
- "time",
405
- "demand",
406
- "feedback"
407
537
  ],
408
- "additionalProperties": false,
409
- "description": "Event of Demand object feedback to referrer"
538
+ "description": "Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent, ServiceEvent, DemandChangedEvent, VoteEvent, FeedbackEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')"
410
539
  },
411
- {
412
- "type": "object",
413
- "properties": {
414
- "id": {
415
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/id"
416
- },
417
- "sender": {
418
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/sender"
419
- },
420
- "type": {
421
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type"
422
- },
423
- "type_raw": {
424
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type_raw"
425
- },
426
- "time": {
427
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/time"
540
+ "type_raw": {
541
+ "type": "string",
542
+ "description": "Raw event type"
543
+ },
544
+ "time": {
545
+ "anyOf": [
546
+ {
547
+ "type": "string"
428
548
  },
429
- "parsedJson_raw": {
430
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/parsedJson_raw"
549
+ {
550
+ "type": "number"
551
+ }
552
+ ],
553
+ "description": "Event occurrence time"
554
+ },
555
+ "parsedJson_raw": {
556
+ "description": "Raw parsed JSON data from the event"
557
+ },
558
+ "progress": {
559
+ "type": "string",
560
+ "description": "Progress object ID"
561
+ },
562
+ "machine": {
563
+ "type": "string",
564
+ "description": "Machine object ID"
565
+ },
566
+ "task": {
567
+ "description": "Task object ID",
568
+ "anyOf": [
569
+ {
570
+ "type": "string"
431
571
  },
432
- "address": {
433
- "type": "string",
434
- "description": "User ID"
572
+ {
573
+ "type": "null"
574
+ }
575
+ ]
576
+ },
577
+ "node": {
578
+ "type": "string",
579
+ "description": "Current node name"
580
+ },
581
+ "forward": {
582
+ "description": "Forward operation name",
583
+ "anyOf": [
584
+ {
585
+ "type": "string"
435
586
  },
436
- "resource": {
437
- "type": "string",
438
- "description": "ID mark object ID owned by user"
587
+ {
588
+ "type": "null"
589
+ }
590
+ ]
591
+ },
592
+ "hold": {
593
+ "description": "Whether it is a hold operation",
594
+ "anyOf": [
595
+ {
596
+ "type": "boolean"
439
597
  },
440
- "referrer": {
441
- "type": [
442
- "string",
443
- "null"
444
- ],
445
- "description": "Referrer ID"
598
+ {
599
+ "type": "null"
446
600
  }
447
- },
448
- "required": [
449
- "id",
450
- "sender",
451
- "type",
452
- "type_raw",
453
- "time",
454
- "address",
455
- "resource"
456
- ],
457
- "additionalProperties": false,
458
- "description": "New user event"
601
+ ]
459
602
  }
460
- ]
461
- },
462
- "description": "Event object data"
463
- },
464
- "hasNextPage": {
465
- "type": "boolean",
466
- "description": "Whether there is a next page"
467
- },
468
- "nextCursor": {
469
- "anyOf": [
470
- {
471
- "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/id"
472
603
  },
473
- {
474
- "type": "null"
475
- }
476
- ],
477
- "description": "Next page cursor"
478
- },
479
- "cache_expire": {
480
- "anyOf": [
481
- {
482
- "type": "number"
604
+ "required": [
605
+ "id",
606
+ "sender",
607
+ "type",
608
+ "type_raw",
609
+ "time",
610
+ "progress",
611
+ "machine",
612
+ "node"
613
+ ],
614
+ "additionalProperties": false,
615
+ "description": "Progress event"
616
+ },
617
+ {
618
+ "type": "object",
619
+ "properties": {
620
+ "id": {
621
+ "type": "object",
622
+ "properties": {
623
+ "eventSeq": {
624
+ "anyOf": [
625
+ {
626
+ "type": "string"
627
+ },
628
+ {
629
+ "type": "number"
630
+ }
631
+ ],
632
+ "description": "Event sequence number"
633
+ },
634
+ "txDigest": {
635
+ "type": "string",
636
+ "description": "Transaction digest"
637
+ }
638
+ },
639
+ "required": [
640
+ "eventSeq",
641
+ "txDigest"
642
+ ],
643
+ "additionalProperties": false,
644
+ "description": "Event cursor"
645
+ },
646
+ "sender": {
647
+ "type": "string",
648
+ "description": "Event sender ID"
649
+ },
650
+ "type": {
651
+ "anyOf": [
652
+ {
653
+ "type": "string",
654
+ "const": "ArbEvent"
655
+ },
656
+ {
657
+ "type": "string",
658
+ "const": "NewOrderEvent"
659
+ },
660
+ {
661
+ "type": "string",
662
+ "const": "ProgressEvent"
663
+ },
664
+ {
665
+ "type": "string",
666
+ "const": "DemandPresentEvent"
667
+ },
668
+ {
669
+ "type": "string",
670
+ "const": "DemandFeedbackEvent"
671
+ },
672
+ {
673
+ "type": "string",
674
+ "const": "NewEntityEvent"
675
+ },
676
+ {
677
+ "type": "string",
678
+ "const": "ServiceEvent"
679
+ },
680
+ {
681
+ "type": "string",
682
+ "const": "DemandChangedEvent"
683
+ },
684
+ {
685
+ "type": "string",
686
+ "const": "VoteEvent"
687
+ },
688
+ {
689
+ "type": "string",
690
+ "const": "FeedbackEvent"
691
+ },
692
+ {
693
+ "type": "string"
694
+ }
695
+ ],
696
+ "description": "Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent, ServiceEvent, DemandChangedEvent, VoteEvent, FeedbackEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')"
697
+ },
698
+ "type_raw": {
699
+ "type": "string",
700
+ "description": "Raw event type"
701
+ },
702
+ "time": {
703
+ "anyOf": [
704
+ {
705
+ "type": "string"
706
+ },
707
+ {
708
+ "type": "number"
709
+ }
710
+ ],
711
+ "description": "Event occurrence time"
712
+ },
713
+ "parsedJson_raw": {
714
+ "description": "Raw parsed JSON data from the event"
715
+ },
716
+ "demand": {
717
+ "type": "string",
718
+ "description": "Demand object ID"
719
+ },
720
+ "service": {
721
+ "description": "Service object ID",
722
+ "anyOf": [
723
+ {
724
+ "type": "string"
725
+ },
726
+ {
727
+ "type": "null"
728
+ }
729
+ ]
730
+ },
731
+ "recommend": {
732
+ "type": "string",
733
+ "description": "Recommendation letter"
734
+ }
735
+ },
736
+ "required": [
737
+ "id",
738
+ "sender",
739
+ "type",
740
+ "type_raw",
741
+ "time",
742
+ "demand",
743
+ "recommend"
744
+ ],
745
+ "additionalProperties": false,
746
+ "description": "Event of recommending service to Demand object"
747
+ },
748
+ {
749
+ "type": "object",
750
+ "properties": {
751
+ "id": {
752
+ "type": "object",
753
+ "properties": {
754
+ "eventSeq": {
755
+ "anyOf": [
756
+ {
757
+ "type": "string"
758
+ },
759
+ {
760
+ "type": "number"
761
+ }
762
+ ],
763
+ "description": "Event sequence number"
764
+ },
765
+ "txDigest": {
766
+ "type": "string",
767
+ "description": "Transaction digest"
768
+ }
769
+ },
770
+ "required": [
771
+ "eventSeq",
772
+ "txDigest"
773
+ ],
774
+ "additionalProperties": false,
775
+ "description": "Event cursor"
776
+ },
777
+ "sender": {
778
+ "type": "string",
779
+ "description": "Event sender ID"
780
+ },
781
+ "type": {
782
+ "anyOf": [
783
+ {
784
+ "type": "string",
785
+ "const": "ArbEvent"
786
+ },
787
+ {
788
+ "type": "string",
789
+ "const": "NewOrderEvent"
790
+ },
791
+ {
792
+ "type": "string",
793
+ "const": "ProgressEvent"
794
+ },
795
+ {
796
+ "type": "string",
797
+ "const": "DemandPresentEvent"
798
+ },
799
+ {
800
+ "type": "string",
801
+ "const": "DemandFeedbackEvent"
802
+ },
803
+ {
804
+ "type": "string",
805
+ "const": "NewEntityEvent"
806
+ },
807
+ {
808
+ "type": "string",
809
+ "const": "ServiceEvent"
810
+ },
811
+ {
812
+ "type": "string",
813
+ "const": "DemandChangedEvent"
814
+ },
815
+ {
816
+ "type": "string",
817
+ "const": "VoteEvent"
818
+ },
819
+ {
820
+ "type": "string",
821
+ "const": "FeedbackEvent"
822
+ },
823
+ {
824
+ "type": "string"
825
+ }
826
+ ],
827
+ "description": "Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent, ServiceEvent, DemandChangedEvent, VoteEvent, FeedbackEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')"
828
+ },
829
+ "type_raw": {
830
+ "type": "string",
831
+ "description": "Raw event type"
832
+ },
833
+ "time": {
834
+ "anyOf": [
835
+ {
836
+ "type": "string"
837
+ },
838
+ {
839
+ "type": "number"
840
+ }
841
+ ],
842
+ "description": "Event occurrence time"
843
+ },
844
+ "parsedJson_raw": {
845
+ "description": "Raw parsed JSON data from the event"
846
+ },
847
+ "demand": {
848
+ "type": "string",
849
+ "description": "Demand object ID"
850
+ },
851
+ "service": {
852
+ "description": "Service object ID",
853
+ "anyOf": [
854
+ {
855
+ "type": "string"
856
+ },
857
+ {
858
+ "type": "null"
859
+ }
860
+ ]
861
+ },
862
+ "feedback": {
863
+ "type": "string",
864
+ "description": "Feedback content"
865
+ },
866
+ "acceptance_score": {
867
+ "description": "Acceptance score",
868
+ "anyOf": [
869
+ {
870
+ "type": "number"
871
+ },
872
+ {
873
+ "type": "null"
874
+ }
875
+ ]
876
+ }
877
+ },
878
+ "required": [
879
+ "id",
880
+ "sender",
881
+ "type",
882
+ "type_raw",
883
+ "time",
884
+ "demand",
885
+ "feedback"
886
+ ],
887
+ "additionalProperties": false,
888
+ "description": "Event of Demand object feedback to referrer"
889
+ },
890
+ {
891
+ "type": "object",
892
+ "properties": {
893
+ "id": {
894
+ "type": "object",
895
+ "properties": {
896
+ "eventSeq": {
897
+ "anyOf": [
898
+ {
899
+ "type": "string"
900
+ },
901
+ {
902
+ "type": "number"
903
+ }
904
+ ],
905
+ "description": "Event sequence number"
906
+ },
907
+ "txDigest": {
908
+ "type": "string",
909
+ "description": "Transaction digest"
910
+ }
911
+ },
912
+ "required": [
913
+ "eventSeq",
914
+ "txDigest"
915
+ ],
916
+ "additionalProperties": false,
917
+ "description": "Event cursor"
918
+ },
919
+ "sender": {
920
+ "type": "string",
921
+ "description": "Event sender ID"
922
+ },
923
+ "type": {
924
+ "anyOf": [
925
+ {
926
+ "type": "string",
927
+ "const": "ArbEvent"
928
+ },
929
+ {
930
+ "type": "string",
931
+ "const": "NewOrderEvent"
932
+ },
933
+ {
934
+ "type": "string",
935
+ "const": "ProgressEvent"
936
+ },
937
+ {
938
+ "type": "string",
939
+ "const": "DemandPresentEvent"
940
+ },
941
+ {
942
+ "type": "string",
943
+ "const": "DemandFeedbackEvent"
944
+ },
945
+ {
946
+ "type": "string",
947
+ "const": "NewEntityEvent"
948
+ },
949
+ {
950
+ "type": "string",
951
+ "const": "ServiceEvent"
952
+ },
953
+ {
954
+ "type": "string",
955
+ "const": "DemandChangedEvent"
956
+ },
957
+ {
958
+ "type": "string",
959
+ "const": "VoteEvent"
960
+ },
961
+ {
962
+ "type": "string",
963
+ "const": "FeedbackEvent"
964
+ },
965
+ {
966
+ "type": "string"
967
+ }
968
+ ],
969
+ "description": "Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent, ServiceEvent, DemandChangedEvent, VoteEvent, FeedbackEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')"
970
+ },
971
+ "type_raw": {
972
+ "type": "string",
973
+ "description": "Raw event type"
974
+ },
975
+ "time": {
976
+ "anyOf": [
977
+ {
978
+ "type": "string"
979
+ },
980
+ {
981
+ "type": "number"
982
+ }
983
+ ],
984
+ "description": "Event occurrence time"
985
+ },
986
+ "parsedJson_raw": {
987
+ "description": "Raw parsed JSON data from the event"
988
+ },
989
+ "address": {
990
+ "type": "string",
991
+ "description": "User ID"
992
+ },
993
+ "resource": {
994
+ "type": "string",
995
+ "description": "ID mark object ID owned by user"
996
+ },
997
+ "referrer": {
998
+ "description": "Referrer ID",
999
+ "anyOf": [
1000
+ {
1001
+ "type": "string"
1002
+ },
1003
+ {
1004
+ "type": "null"
1005
+ }
1006
+ ]
1007
+ }
1008
+ },
1009
+ "required": [
1010
+ "id",
1011
+ "sender",
1012
+ "type",
1013
+ "type_raw",
1014
+ "time",
1015
+ "address",
1016
+ "resource"
1017
+ ],
1018
+ "additionalProperties": false,
1019
+ "description": "New user event"
1020
+ },
1021
+ {
1022
+ "type": "object",
1023
+ "properties": {
1024
+ "id": {
1025
+ "type": "object",
1026
+ "properties": {
1027
+ "eventSeq": {
1028
+ "anyOf": [
1029
+ {
1030
+ "type": "string"
1031
+ },
1032
+ {
1033
+ "type": "number"
1034
+ }
1035
+ ],
1036
+ "description": "Event sequence number"
1037
+ },
1038
+ "txDigest": {
1039
+ "type": "string",
1040
+ "description": "Transaction digest"
1041
+ }
1042
+ },
1043
+ "required": [
1044
+ "eventSeq",
1045
+ "txDigest"
1046
+ ],
1047
+ "additionalProperties": false,
1048
+ "description": "Event cursor"
1049
+ },
1050
+ "sender": {
1051
+ "type": "string",
1052
+ "description": "Event sender ID"
1053
+ },
1054
+ "type": {
1055
+ "anyOf": [
1056
+ {
1057
+ "type": "string",
1058
+ "const": "ArbEvent"
1059
+ },
1060
+ {
1061
+ "type": "string",
1062
+ "const": "NewOrderEvent"
1063
+ },
1064
+ {
1065
+ "type": "string",
1066
+ "const": "ProgressEvent"
1067
+ },
1068
+ {
1069
+ "type": "string",
1070
+ "const": "DemandPresentEvent"
1071
+ },
1072
+ {
1073
+ "type": "string",
1074
+ "const": "DemandFeedbackEvent"
1075
+ },
1076
+ {
1077
+ "type": "string",
1078
+ "const": "NewEntityEvent"
1079
+ },
1080
+ {
1081
+ "type": "string",
1082
+ "const": "ServiceEvent"
1083
+ },
1084
+ {
1085
+ "type": "string",
1086
+ "const": "DemandChangedEvent"
1087
+ },
1088
+ {
1089
+ "type": "string",
1090
+ "const": "VoteEvent"
1091
+ },
1092
+ {
1093
+ "type": "string",
1094
+ "const": "FeedbackEvent"
1095
+ },
1096
+ {
1097
+ "type": "string"
1098
+ }
1099
+ ],
1100
+ "description": "Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent, ServiceEvent, DemandChangedEvent, VoteEvent, FeedbackEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')"
1101
+ },
1102
+ "type_raw": {
1103
+ "type": "string",
1104
+ "description": "Raw event type"
1105
+ },
1106
+ "time": {
1107
+ "anyOf": [
1108
+ {
1109
+ "type": "string"
1110
+ },
1111
+ {
1112
+ "type": "number"
1113
+ }
1114
+ ],
1115
+ "description": "Event occurrence time"
1116
+ },
1117
+ "parsedJson_raw": {
1118
+ "description": "Raw parsed JSON data from the event"
1119
+ },
1120
+ "object": {
1121
+ "type": "string",
1122
+ "description": "Service object ID"
1123
+ },
1124
+ "location": {
1125
+ "type": "string",
1126
+ "description": "Service location"
1127
+ },
1128
+ "description": {
1129
+ "type": "string",
1130
+ "description": "Service description preview (<=260 UTF-8 chars)."
1131
+ }
1132
+ },
1133
+ "required": [
1134
+ "id",
1135
+ "sender",
1136
+ "type",
1137
+ "type_raw",
1138
+ "time",
1139
+ "object",
1140
+ "location",
1141
+ "description"
1142
+ ],
1143
+ "additionalProperties": false,
1144
+ "description": "Service market-opportunity event"
1145
+ },
1146
+ {
1147
+ "type": "object",
1148
+ "properties": {
1149
+ "id": {
1150
+ "type": "object",
1151
+ "properties": {
1152
+ "eventSeq": {
1153
+ "anyOf": [
1154
+ {
1155
+ "type": "string"
1156
+ },
1157
+ {
1158
+ "type": "number"
1159
+ }
1160
+ ],
1161
+ "description": "Event sequence number"
1162
+ },
1163
+ "txDigest": {
1164
+ "type": "string",
1165
+ "description": "Transaction digest"
1166
+ }
1167
+ },
1168
+ "required": [
1169
+ "eventSeq",
1170
+ "txDigest"
1171
+ ],
1172
+ "additionalProperties": false,
1173
+ "description": "Event cursor"
1174
+ },
1175
+ "sender": {
1176
+ "type": "string",
1177
+ "description": "Event sender ID"
1178
+ },
1179
+ "type": {
1180
+ "anyOf": [
1181
+ {
1182
+ "type": "string",
1183
+ "const": "ArbEvent"
1184
+ },
1185
+ {
1186
+ "type": "string",
1187
+ "const": "NewOrderEvent"
1188
+ },
1189
+ {
1190
+ "type": "string",
1191
+ "const": "ProgressEvent"
1192
+ },
1193
+ {
1194
+ "type": "string",
1195
+ "const": "DemandPresentEvent"
1196
+ },
1197
+ {
1198
+ "type": "string",
1199
+ "const": "DemandFeedbackEvent"
1200
+ },
1201
+ {
1202
+ "type": "string",
1203
+ "const": "NewEntityEvent"
1204
+ },
1205
+ {
1206
+ "type": "string",
1207
+ "const": "ServiceEvent"
1208
+ },
1209
+ {
1210
+ "type": "string",
1211
+ "const": "DemandChangedEvent"
1212
+ },
1213
+ {
1214
+ "type": "string",
1215
+ "const": "VoteEvent"
1216
+ },
1217
+ {
1218
+ "type": "string",
1219
+ "const": "FeedbackEvent"
1220
+ },
1221
+ {
1222
+ "type": "string"
1223
+ }
1224
+ ],
1225
+ "description": "Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent, ServiceEvent, DemandChangedEvent, VoteEvent, FeedbackEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')"
1226
+ },
1227
+ "type_raw": {
1228
+ "type": "string",
1229
+ "description": "Raw event type"
1230
+ },
1231
+ "time": {
1232
+ "anyOf": [
1233
+ {
1234
+ "type": "string"
1235
+ },
1236
+ {
1237
+ "type": "number"
1238
+ }
1239
+ ],
1240
+ "description": "Event occurrence time"
1241
+ },
1242
+ "parsedJson_raw": {
1243
+ "description": "Raw parsed JSON data from the event"
1244
+ },
1245
+ "object": {
1246
+ "type": "string",
1247
+ "description": "Demand object ID"
1248
+ },
1249
+ "location": {
1250
+ "type": "string",
1251
+ "description": "Demand location"
1252
+ },
1253
+ "description": {
1254
+ "type": "string",
1255
+ "description": "Demand description preview (<=260 UTF-8 chars)."
1256
+ },
1257
+ "rewards": {
1258
+ "type": "array",
1259
+ "items": {
1260
+ "type": "string"
1261
+ },
1262
+ "description": "Reward object addresses (amounts read from Reward objects)."
1263
+ }
1264
+ },
1265
+ "required": [
1266
+ "id",
1267
+ "sender",
1268
+ "type",
1269
+ "type_raw",
1270
+ "time",
1271
+ "object",
1272
+ "location",
1273
+ "description",
1274
+ "rewards"
1275
+ ],
1276
+ "additionalProperties": false,
1277
+ "description": "Demand market-opportunity event"
1278
+ },
1279
+ {
1280
+ "type": "object",
1281
+ "properties": {
1282
+ "id": {
1283
+ "type": "object",
1284
+ "properties": {
1285
+ "eventSeq": {
1286
+ "anyOf": [
1287
+ {
1288
+ "type": "string"
1289
+ },
1290
+ {
1291
+ "type": "number"
1292
+ }
1293
+ ],
1294
+ "description": "Event sequence number"
1295
+ },
1296
+ "txDigest": {
1297
+ "type": "string",
1298
+ "description": "Transaction digest"
1299
+ }
1300
+ },
1301
+ "required": [
1302
+ "eventSeq",
1303
+ "txDigest"
1304
+ ],
1305
+ "additionalProperties": false,
1306
+ "description": "Event cursor"
1307
+ },
1308
+ "sender": {
1309
+ "type": "string",
1310
+ "description": "Event sender ID"
1311
+ },
1312
+ "type": {
1313
+ "anyOf": [
1314
+ {
1315
+ "type": "string",
1316
+ "const": "ArbEvent"
1317
+ },
1318
+ {
1319
+ "type": "string",
1320
+ "const": "NewOrderEvent"
1321
+ },
1322
+ {
1323
+ "type": "string",
1324
+ "const": "ProgressEvent"
1325
+ },
1326
+ {
1327
+ "type": "string",
1328
+ "const": "DemandPresentEvent"
1329
+ },
1330
+ {
1331
+ "type": "string",
1332
+ "const": "DemandFeedbackEvent"
1333
+ },
1334
+ {
1335
+ "type": "string",
1336
+ "const": "NewEntityEvent"
1337
+ },
1338
+ {
1339
+ "type": "string",
1340
+ "const": "ServiceEvent"
1341
+ },
1342
+ {
1343
+ "type": "string",
1344
+ "const": "DemandChangedEvent"
1345
+ },
1346
+ {
1347
+ "type": "string",
1348
+ "const": "VoteEvent"
1349
+ },
1350
+ {
1351
+ "type": "string",
1352
+ "const": "FeedbackEvent"
1353
+ },
1354
+ {
1355
+ "type": "string"
1356
+ }
1357
+ ],
1358
+ "description": "Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent, ServiceEvent, DemandChangedEvent, VoteEvent, FeedbackEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')"
1359
+ },
1360
+ "type_raw": {
1361
+ "type": "string",
1362
+ "description": "Raw event type"
1363
+ },
1364
+ "time": {
1365
+ "anyOf": [
1366
+ {
1367
+ "type": "string"
1368
+ },
1369
+ {
1370
+ "type": "number"
1371
+ }
1372
+ ],
1373
+ "description": "Event occurrence time"
1374
+ },
1375
+ "parsedJson_raw": {
1376
+ "description": "Raw parsed JSON data from the event"
1377
+ },
1378
+ "object": {
1379
+ "type": "string",
1380
+ "description": "Arb object ID"
1381
+ },
1382
+ "voter": {
1383
+ "type": "string",
1384
+ "description": "Voter address"
1385
+ },
1386
+ "agrees": {
1387
+ "type": "array",
1388
+ "items": {
1389
+ "type": "number"
1390
+ },
1391
+ "description": "Supported proposition indices"
1392
+ },
1393
+ "weight": {
1394
+ "type": "number",
1395
+ "description": "Voting weight"
1396
+ }
1397
+ },
1398
+ "required": [
1399
+ "id",
1400
+ "sender",
1401
+ "type",
1402
+ "type_raw",
1403
+ "time",
1404
+ "object",
1405
+ "voter",
1406
+ "agrees",
1407
+ "weight"
1408
+ ],
1409
+ "additionalProperties": false,
1410
+ "description": "Arbitration vote event"
1411
+ },
1412
+ {
1413
+ "type": "object",
1414
+ "properties": {
1415
+ "id": {
1416
+ "type": "object",
1417
+ "properties": {
1418
+ "eventSeq": {
1419
+ "anyOf": [
1420
+ {
1421
+ "type": "string"
1422
+ },
1423
+ {
1424
+ "type": "number"
1425
+ }
1426
+ ],
1427
+ "description": "Event sequence number"
1428
+ },
1429
+ "txDigest": {
1430
+ "type": "string",
1431
+ "description": "Transaction digest"
1432
+ }
1433
+ },
1434
+ "required": [
1435
+ "eventSeq",
1436
+ "txDigest"
1437
+ ],
1438
+ "additionalProperties": false,
1439
+ "description": "Event cursor"
1440
+ },
1441
+ "sender": {
1442
+ "type": "string",
1443
+ "description": "Event sender ID"
1444
+ },
1445
+ "type": {
1446
+ "anyOf": [
1447
+ {
1448
+ "type": "string",
1449
+ "const": "ArbEvent"
1450
+ },
1451
+ {
1452
+ "type": "string",
1453
+ "const": "NewOrderEvent"
1454
+ },
1455
+ {
1456
+ "type": "string",
1457
+ "const": "ProgressEvent"
1458
+ },
1459
+ {
1460
+ "type": "string",
1461
+ "const": "DemandPresentEvent"
1462
+ },
1463
+ {
1464
+ "type": "string",
1465
+ "const": "DemandFeedbackEvent"
1466
+ },
1467
+ {
1468
+ "type": "string",
1469
+ "const": "NewEntityEvent"
1470
+ },
1471
+ {
1472
+ "type": "string",
1473
+ "const": "ServiceEvent"
1474
+ },
1475
+ {
1476
+ "type": "string",
1477
+ "const": "DemandChangedEvent"
1478
+ },
1479
+ {
1480
+ "type": "string",
1481
+ "const": "VoteEvent"
1482
+ },
1483
+ {
1484
+ "type": "string",
1485
+ "const": "FeedbackEvent"
1486
+ },
1487
+ {
1488
+ "type": "string"
1489
+ }
1490
+ ],
1491
+ "description": "Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent, ServiceEvent, DemandChangedEvent, VoteEvent, FeedbackEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')"
1492
+ },
1493
+ "type_raw": {
1494
+ "type": "string",
1495
+ "description": "Raw event type"
1496
+ },
1497
+ "time": {
1498
+ "anyOf": [
1499
+ {
1500
+ "type": "string"
1501
+ },
1502
+ {
1503
+ "type": "number"
1504
+ }
1505
+ ],
1506
+ "description": "Event occurrence time"
1507
+ },
1508
+ "parsedJson_raw": {
1509
+ "description": "Raw parsed JSON data from the event"
1510
+ },
1511
+ "object": {
1512
+ "type": "string",
1513
+ "description": "Arb object ID"
1514
+ },
1515
+ "feedback": {
1516
+ "type": "string",
1517
+ "description": "Feedback content"
1518
+ }
1519
+ },
1520
+ "required": [
1521
+ "id",
1522
+ "sender",
1523
+ "type",
1524
+ "type_raw",
1525
+ "time",
1526
+ "object",
1527
+ "feedback"
1528
+ ],
1529
+ "additionalProperties": false,
1530
+ "description": "Arbitration feedback event"
1531
+ }
1532
+ ]
1533
+ },
1534
+ "description": "Event object data"
1535
+ },
1536
+ "hasNextPage": {
1537
+ "type": "boolean",
1538
+ "description": "Whether there is a next page"
1539
+ },
1540
+ "nextCursor": {
1541
+ "description": "Next page cursor",
1542
+ "anyOf": [
1543
+ {
1544
+ "type": "object",
1545
+ "properties": {
1546
+ "eventSeq": {
1547
+ "anyOf": [
1548
+ {
1549
+ "type": "string"
1550
+ },
1551
+ {
1552
+ "type": "number"
1553
+ }
1554
+ ],
1555
+ "description": "Event sequence number"
483
1556
  },
484
- {
1557
+ "txDigest": {
485
1558
  "type": "string",
486
- "const": "INFINITE"
1559
+ "description": "Transaction digest"
487
1560
  }
1561
+ },
1562
+ "required": [
1563
+ "eventSeq",
1564
+ "txDigest"
488
1565
  ],
489
- "description": "Cache expiration time"
1566
+ "additionalProperties": false,
1567
+ "description": "Event cursor"
1568
+ },
1569
+ {
1570
+ "type": "null"
1571
+ }
1572
+ ]
1573
+ },
1574
+ "cache_expire": {
1575
+ "description": "Cache expiration time",
1576
+ "anyOf": [
1577
+ {
1578
+ "type": "number"
1579
+ },
1580
+ {
1581
+ "type": "string",
1582
+ "const": "INFINITE"
490
1583
  }
1584
+ ]
1585
+ }
1586
+ },
1587
+ "required": [
1588
+ "data",
1589
+ "hasNextPage"
1590
+ ],
1591
+ "additionalProperties": false,
1592
+ "description": "Event query result"
1593
+ },
1594
+ {
1595
+ "type": "null"
1596
+ }
1597
+ ],
1598
+ "description": "Event query result containing list of events and pagination info, or null if no data found"
1599
+ },
1600
+ "semantic": {
1601
+ "description": "Business semantic summary for the event query",
1602
+ "type": "object",
1603
+ "properties": {
1604
+ "intent": {
1605
+ "type": "string",
1606
+ "description": "Inferred user intent / operation goal. Constraint: snake_case string. Relation: derived from operation_type + data signals. Example: 'publish_service'"
1607
+ },
1608
+ "status": {
1609
+ "type": "string",
1610
+ "enum": [
1611
+ "success",
1612
+ "partial",
1613
+ "failed",
1614
+ "pending_input"
1615
+ ],
1616
+ "description": "Business-level status (not raw tx status). 'pending_input' = needs Guard submission. Example: 'success'"
1617
+ },
1618
+ "summary": {
1619
+ "type": "string",
1620
+ "description": "One-sentence human-readable summary of what happened. AI should read this first. Example: 'Successfully published Service my-shop with Machine bound'"
1621
+ },
1622
+ "created": {
1623
+ "description": "Objects newly created in this operation, tagged with roles",
1624
+ "type": "array",
1625
+ "items": {
1626
+ "type": "object",
1627
+ "properties": {
1628
+ "id": {
1629
+ "type": "string",
1630
+ "description": "Object ID (64-hex with 0x prefix). Identifies the on-chain object. Example: '0xa1d4...'"
1631
+ },
1632
+ "name": {
1633
+ "description": "Local mark name if assigned, else null. Relation: resolved via local_mark_operation. Example: 'my-shop' or null",
1634
+ "anyOf": [
1635
+ {
1636
+ "type": "string"
1637
+ },
1638
+ {
1639
+ "type": "null"
1640
+ }
1641
+ ]
1642
+ },
1643
+ "role": {
1644
+ "type": "string",
1645
+ "enum": [
1646
+ "Permission",
1647
+ "Guard",
1648
+ "Machine",
1649
+ "Progress",
1650
+ "Service",
1651
+ "Order",
1652
+ "Allocation",
1653
+ "Arbitration",
1654
+ "ArbCase",
1655
+ "Messenger",
1656
+ "Contact",
1657
+ "Demand",
1658
+ "Reward",
1659
+ "Personal",
1660
+ "Repository",
1661
+ "Treasury",
1662
+ "Discount",
1663
+ "Payment",
1664
+ "Passport",
1665
+ "Proof",
1666
+ "Other"
1667
+ ],
1668
+ "description": "Business role of the object in the dependency graph. Constraint: enum of 21 values. Relation: derived from objectType last segment; drives Plan/Verify Loop positioning. Example: 'Service'"
1669
+ },
1670
+ "relation": {
1671
+ "description": "Relationship to another object in the dependency graph",
1672
+ "type": "object",
1673
+ "properties": {
1674
+ "parent": {
1675
+ "description": "Parent object ID, if this object belongs to another (e.g. Machine belongs to Service). Example: '0x123...' or null",
1676
+ "anyOf": [
1677
+ {
1678
+ "type": "string"
1679
+ },
1680
+ {
1681
+ "type": "null"
1682
+ }
1683
+ ]
1684
+ },
1685
+ "relation_type": {
1686
+ "description": "How this object relates to its parent. Example: 'machine_of'",
1687
+ "type": "string",
1688
+ "enum": [
1689
+ "machine_of",
1690
+ "guard_of",
1691
+ "allocator_of",
1692
+ "permission_of",
1693
+ "progress_of",
1694
+ "allocation_of",
1695
+ "arb_of",
1696
+ "other"
1697
+ ]
1698
+ }
1699
+ },
1700
+ "additionalProperties": false
1701
+ },
1702
+ "immutable": {
1703
+ "description": "Whether the object has entered an immutable state (e.g. Service published). Constraint: true after publish. Example: true",
1704
+ "type": "boolean"
1705
+ }
1706
+ },
1707
+ "required": [
1708
+ "id",
1709
+ "role"
1710
+ ],
1711
+ "additionalProperties": false,
1712
+ "description": "An object tagged with its business role and relationship within the object dependency graph"
1713
+ }
1714
+ },
1715
+ "modified": {
1716
+ "description": "Objects mutated in this operation, tagged with roles",
1717
+ "type": "array",
1718
+ "items": {
1719
+ "type": "object",
1720
+ "properties": {
1721
+ "id": {
1722
+ "type": "string",
1723
+ "description": "Object ID (64-hex with 0x prefix). Identifies the on-chain object. Example: '0xa1d4...'"
1724
+ },
1725
+ "name": {
1726
+ "description": "Local mark name if assigned, else null. Relation: resolved via local_mark_operation. Example: 'my-shop' or null",
1727
+ "anyOf": [
1728
+ {
1729
+ "type": "string"
1730
+ },
1731
+ {
1732
+ "type": "null"
1733
+ }
1734
+ ]
1735
+ },
1736
+ "role": {
1737
+ "type": "string",
1738
+ "enum": [
1739
+ "Permission",
1740
+ "Guard",
1741
+ "Machine",
1742
+ "Progress",
1743
+ "Service",
1744
+ "Order",
1745
+ "Allocation",
1746
+ "Arbitration",
1747
+ "ArbCase",
1748
+ "Messenger",
1749
+ "Contact",
1750
+ "Demand",
1751
+ "Reward",
1752
+ "Personal",
1753
+ "Repository",
1754
+ "Treasury",
1755
+ "Discount",
1756
+ "Payment",
1757
+ "Passport",
1758
+ "Proof",
1759
+ "Other"
1760
+ ],
1761
+ "description": "Business role of the object in the dependency graph. Constraint: enum of 21 values. Relation: derived from objectType last segment; drives Plan/Verify Loop positioning. Example: 'Service'"
1762
+ },
1763
+ "relation": {
1764
+ "description": "Relationship to another object in the dependency graph",
1765
+ "type": "object",
1766
+ "properties": {
1767
+ "parent": {
1768
+ "description": "Parent object ID, if this object belongs to another (e.g. Machine belongs to Service). Example: '0x123...' or null",
1769
+ "anyOf": [
1770
+ {
1771
+ "type": "string"
1772
+ },
1773
+ {
1774
+ "type": "null"
1775
+ }
1776
+ ]
1777
+ },
1778
+ "relation_type": {
1779
+ "description": "How this object relates to its parent. Example: 'machine_of'",
1780
+ "type": "string",
1781
+ "enum": [
1782
+ "machine_of",
1783
+ "guard_of",
1784
+ "allocator_of",
1785
+ "permission_of",
1786
+ "progress_of",
1787
+ "allocation_of",
1788
+ "arb_of",
1789
+ "other"
1790
+ ]
1791
+ }
1792
+ },
1793
+ "additionalProperties": false
1794
+ },
1795
+ "immutable": {
1796
+ "description": "Whether the object has entered an immutable state (e.g. Service published). Constraint: true after publish. Example: true",
1797
+ "type": "boolean"
1798
+ }
1799
+ },
1800
+ "required": [
1801
+ "id",
1802
+ "role"
1803
+ ],
1804
+ "additionalProperties": false,
1805
+ "description": "An object tagged with its business role and relationship within the object dependency graph"
1806
+ }
1807
+ },
1808
+ "released": {
1809
+ "description": "Fund movements in this operation, tagged with roles",
1810
+ "type": "array",
1811
+ "items": {
1812
+ "type": "object",
1813
+ "properties": {
1814
+ "amount": {
1815
+ "type": "string",
1816
+ "description": "Amount change as stringified integer (smallest unit). Negative=spend, positive=receive. Example: '-10000000000'"
1817
+ },
1818
+ "coinType": {
1819
+ "type": "string",
1820
+ "description": "Coin type tag (format: {address}::{module}::{struct}). Example: '0x2::wow::WOW'"
1821
+ },
1822
+ "role": {
1823
+ "type": "string",
1824
+ "enum": [
1825
+ "payment",
1826
+ "refund",
1827
+ "change",
1828
+ "compensation",
1829
+ "reward",
1830
+ "gas",
1831
+ "deposit",
1832
+ "release",
1833
+ "other"
1834
+ ],
1835
+ "description": "Business role of this fund movement. Constraint: enum of 9 values. Relation: derived from operation context. Example: 'payment'"
1836
+ },
1837
+ "from": {
1838
+ "description": "Sender address if known. Example: '0xabc...' or null",
1839
+ "anyOf": [
1840
+ {
1841
+ "type": "string"
1842
+ },
1843
+ {
1844
+ "type": "null"
1845
+ }
1846
+ ]
1847
+ },
1848
+ "to": {
1849
+ "description": "Recipient address if known. Example: '0xdef...' or null",
1850
+ "anyOf": [
1851
+ {
1852
+ "type": "string"
1853
+ },
1854
+ {
1855
+ "type": "null"
1856
+ }
1857
+ ]
1858
+ }
1859
+ },
1860
+ "required": [
1861
+ "amount",
1862
+ "coinType",
1863
+ "role"
1864
+ ],
1865
+ "additionalProperties": false,
1866
+ "description": "A fund movement tagged with its business role"
1867
+ }
1868
+ },
1869
+ "events": {
1870
+ "description": "On-chain events annotated with business semantics (S-8)",
1871
+ "type": "array",
1872
+ "items": {
1873
+ "type": "object",
1874
+ "properties": {
1875
+ "event_type": {
1876
+ "type": "string",
1877
+ "description": "Raw on-chain event type tag. Example: '0x2::service::ServicePublishedEvent'"
1878
+ },
1879
+ "business_meaning": {
1880
+ "type": "string",
1881
+ "description": "Human-readable business meaning. Example: 'Service has been published and is now immutable'"
491
1882
  },
492
- "required": [
493
- "data",
494
- "hasNextPage"
495
- ],
496
- "additionalProperties": false,
497
- "description": "Event query result"
1883
+ "category": {
1884
+ "type": "string",
1885
+ "enum": [
1886
+ "lifecycle",
1887
+ "state_change",
1888
+ "fund_flow",
1889
+ "permission",
1890
+ "guard",
1891
+ "other"
1892
+ ],
1893
+ "description": "Business category. Constraint: enum of 6 values. Example: 'lifecycle'"
1894
+ },
1895
+ "related_object": {
1896
+ "description": "Object ID the event relates to, if extractable. Example: '0x123...'",
1897
+ "type": "string"
1898
+ },
1899
+ "side_effect": {
1900
+ "description": "Side effect description for AI. Example: 'Customers can now place orders against this Service'",
1901
+ "type": "string"
1902
+ }
1903
+ },
1904
+ "required": [
1905
+ "event_type",
1906
+ "business_meaning",
1907
+ "category"
1908
+ ],
1909
+ "additionalProperties": false,
1910
+ "description": "An on-chain event annotated with business semantics"
1911
+ }
1912
+ },
1913
+ "next_actions": {
1914
+ "description": "Recommended next actions to drive the workflow forward",
1915
+ "type": "array",
1916
+ "items": {
1917
+ "type": "object",
1918
+ "properties": {
1919
+ "action": {
1920
+ "type": "string",
1921
+ "description": "Recommended next action. Example: 'add sales products'"
1922
+ },
1923
+ "reason": {
1924
+ "type": "string",
1925
+ "description": "Why this action is recommended. Example: 'Service has no products; customers cannot order'"
1926
+ },
1927
+ "tool": {
1928
+ "description": "MCP tool to use, if applicable. Example: 'onchain_operations'",
1929
+ "type": "string"
1930
+ },
1931
+ "prerequisite": {
1932
+ "description": "Condition that must hold before this action. Example: 'Service must be created first'",
1933
+ "type": "string"
1934
+ },
1935
+ "priority": {
1936
+ "type": "string",
1937
+ "enum": [
1938
+ "required",
1939
+ "recommended",
1940
+ "optional"
1941
+ ],
1942
+ "description": "Priority. Constraint: enum. Example: 'required'"
1943
+ }
1944
+ },
1945
+ "required": [
1946
+ "action",
1947
+ "reason",
1948
+ "priority"
1949
+ ],
1950
+ "additionalProperties": false,
1951
+ "description": "A recommended next action with priority and rationale"
1952
+ }
1953
+ },
1954
+ "warnings": {
1955
+ "description": "Business-level warnings. Example: 'order_allocators not configured; order funds cannot be distributed'",
1956
+ "type": "array",
1957
+ "items": {
1958
+ "type": "string"
1959
+ }
1960
+ },
1961
+ "experience": {
1962
+ "description": "Experience layer feedback from past operations (Phase 2 Topic 2)",
1963
+ "type": "object",
1964
+ "properties": {
1965
+ "advice": {
1966
+ "description": "Advice from past experience. Example: 'Last time you forgot to set buy_guard; add it before publishing'",
1967
+ "type": "string"
1968
+ },
1969
+ "avoid": {
1970
+ "description": "Pitfalls to avoid based on history. Example: ['Guard rejection on delivery_proof']",
1971
+ "type": "array",
1972
+ "items": {
1973
+ "type": "string"
1974
+ }
1975
+ },
1976
+ "relevance": {
1977
+ "description": "Relevance score 0-1 of the matched experience. Example: 0.85",
1978
+ "type": "number",
1979
+ "minimum": 0,
1980
+ "maximum": 1
1981
+ },
1982
+ "matched_scenario": {
1983
+ "description": "Matched historical scenario. Example: 'publish_service_freelance'",
1984
+ "type": "string"
1985
+ }
1986
+ },
1987
+ "additionalProperties": false
1988
+ },
1989
+ "service_status": {
1990
+ "description": "Phase 2 runtime service status (populated when semantic_rich is enabled). Lets AI see active services in each response.",
1991
+ "type": "object",
1992
+ "properties": {
1993
+ "active": {
1994
+ "type": "array",
1995
+ "items": {
1996
+ "type": "string"
1997
+ },
1998
+ "description": "Phase 2 services currently active (enabled). Example: ['confirm_gate','project_service','experience_layer']"
498
1999
  },
499
- {
500
- "type": "null"
2000
+ "inactive": {
2001
+ "description": "Phase 2 services currently inactive (can be toggled via config_operation). Example: ['harness','graph_persist']",
2002
+ "type": "array",
2003
+ "items": {
2004
+ "type": "string"
2005
+ }
501
2006
  }
2007
+ },
2008
+ "required": [
2009
+ "active"
502
2010
  ],
503
- "description": "Event query result containing list of events and pagination info, or null if no data found"
2011
+ "additionalProperties": false
504
2012
  },
505
- "semantic": {
2013
+ "customer_advice": {
2014
+ "description": "Buyer-side advice (Phase 3 C-3.3). Populated when customer_intelligence service is enabled AND operation is order/query on a Service. Contains risk_score, recommendations, reminders, and preference_match.",
506
2015
  "type": "object",
507
2016
  "properties": {
508
- "intent": {
509
- "type": "string",
510
- "description": "Inferred user intent / operation goal. Constraint: snake_case string. Relation: derived from operation_type + data signals. Example: 'publish_service'"
2017
+ "risk_score": {
2018
+ "description": "Composite risk score 0-100 (higher = safer). Relation: from risk-assessment.ts 4-dimension scoring. Example: 75",
2019
+ "type": "number",
2020
+ "minimum": 0,
2021
+ "maximum": 100
511
2022
  },
512
- "status": {
2023
+ "risk_level": {
2024
+ "description": "Risk level bucket. 'high' = strongly discourage purchase. Example: 'medium_high'",
513
2025
  "type": "string",
514
2026
  "enum": [
515
- "success",
516
- "partial",
517
- "failed",
518
- "pending_input"
519
- ],
520
- "description": "Business-level status (not raw tx status). 'pending_input' = needs Guard submission. Example: 'success'"
2027
+ "low",
2028
+ "medium_low",
2029
+ "medium_high",
2030
+ "high"
2031
+ ]
521
2032
  },
522
- "summary": {
523
- "type": "string",
524
- "description": "One-sentence human-readable summary of what happened. AI should read this first. Example: 'Successfully published Service my-shop with Machine bound'"
2033
+ "recommendations": {
2034
+ "type": "array",
2035
+ "items": {
2036
+ "type": "string"
2037
+ },
2038
+ "description": "Actionable recommendations for the buyer. Example: ['Require merchant to configure arbitration','Negotiate refund terms via Messenger']"
525
2039
  },
526
- "created": {
2040
+ "reminders": {
527
2041
  "type": "array",
528
2042
  "items": {
529
2043
  "type": "object",
530
2044
  "properties": {
531
2045
  "id": {
532
2046
  "type": "string",
533
- "description": "Object ID (64-hex with 0x prefix). Identifies the on-chain object. Example: '0xa1d4...'"
2047
+ "description": "Reminder rule id. Example: 'high_risk_score'"
534
2048
  },
535
- "name": {
536
- "type": [
537
- "string",
538
- "null"
2049
+ "stage": {
2050
+ "type": "string",
2051
+ "enum": [
2052
+ "browse",
2053
+ "evaluate",
2054
+ "preorder",
2055
+ "in_progress",
2056
+ "complete",
2057
+ "after_sale"
539
2058
  ],
540
- "description": "Local mark name if assigned, else null. Relation: resolved via local_mark_operation. Example: 'my-shop' or null"
2059
+ "description": "Order lifecycle stage when this reminder fires. Example: 'evaluate'"
541
2060
  },
542
- "role": {
2061
+ "priority": {
543
2062
  "type": "string",
544
2063
  "enum": [
545
- "Permission",
546
- "Guard",
547
- "Machine",
548
- "Progress",
549
- "Service",
550
- "Order",
551
- "Allocation",
552
- "Arbitration",
553
- "ArbCase",
554
- "Messenger",
555
- "Contact",
556
- "Demand",
557
- "Reward",
558
- "Personal",
559
- "Repository",
560
- "Treasury",
561
- "Discount",
562
- "Other"
2064
+ "required",
2065
+ "recommended",
2066
+ "info",
2067
+ "reminder"
563
2068
  ],
564
- "description": "Business role of the object in the dependency graph. Constraint: enum of 18 values. Relation: derived from objectType last segment; drives Plan/Verify Loop positioning. Example: 'Service'"
2069
+ "description": "Priority. 'required' = blocks purchase; 'recommended' = strong caution. Example: 'required'"
565
2070
  },
566
- "relation": {
567
- "type": "object",
568
- "properties": {
569
- "parent": {
570
- "type": [
571
- "string",
572
- "null"
573
- ],
574
- "description": "Parent object ID, if this object belongs to another (e.g. Machine belongs to Service). Example: '0x123...' or null"
575
- },
576
- "relation_type": {
577
- "type": "string",
578
- "enum": [
579
- "machine_of",
580
- "guard_of",
581
- "allocator_of",
582
- "permission_of",
583
- "progress_of",
584
- "allocation_of",
585
- "arb_of",
586
- "other"
587
- ],
588
- "description": "How this object relates to its parent. Example: 'machine_of'"
589
- }
590
- },
591
- "additionalProperties": false,
592
- "description": "Relationship to another object in the dependency graph"
2071
+ "message": {
2072
+ "type": "string",
2073
+ "description": "Human-readable reminder message. Example: 'Composite risk score 25/100, strongly discourage purchase'"
593
2074
  },
594
- "immutable": {
595
- "type": "boolean",
596
- "description": "Whether the object has entered an immutable state (e.g. Service published). Constraint: true after publish. Example: true"
2075
+ "action": {
2076
+ "description": "Suggested next action. Example: 'require merchant to bind Arbitration before ordering'",
2077
+ "type": "string"
597
2078
  }
598
2079
  },
599
2080
  "required": [
600
2081
  "id",
601
- "role"
2082
+ "stage",
2083
+ "priority",
2084
+ "message"
602
2085
  ],
603
2086
  "additionalProperties": false,
604
- "description": "An object tagged with its business role and relationship within the object dependency graph"
2087
+ "description": "A buyer-side reminder triggered at a specific order lifecycle stage (Phase 3 C-3)."
2088
+ },
2089
+ "description": "Stage-specific reminders (deduped, sorted by priority, capped to 3 high-risk). Example: [{priority:'required', message:'Ambiguous Guard must be human-reviewed'}]"
2090
+ },
2091
+ "preference_match": {
2092
+ "description": "Service-to-preference match (populated when user preferences exist). Example: {score:75, matches:[...], mismatches:[...]}",
2093
+ "type": "object",
2094
+ "properties": {
2095
+ "score": {
2096
+ "type": "number",
2097
+ "minimum": 0,
2098
+ "maximum": 100,
2099
+ "description": "Match score 0-100 (higher = better fit). Example: 75"
2100
+ },
2101
+ "matches": {
2102
+ "type": "array",
2103
+ "items": {
2104
+ "type": "string"
2105
+ },
2106
+ "description": "Aspects that match user preferences. Example: ['Price 10% below average','Has arbitration']"
2107
+ },
2108
+ "mismatches": {
2109
+ "type": "array",
2110
+ "items": {
2111
+ "type": "string"
2112
+ },
2113
+ "description": "Aspects that mismatch user preferences. Example: ['Delivery cycle exceeds expectation']"
2114
+ }
605
2115
  },
606
- "description": "Objects newly created in this operation, tagged with roles"
2116
+ "required": [
2117
+ "score",
2118
+ "matches",
2119
+ "mismatches"
2120
+ ],
2121
+ "additionalProperties": false
2122
+ }
2123
+ },
2124
+ "required": [
2125
+ "recommendations",
2126
+ "reminders"
2127
+ ],
2128
+ "additionalProperties": false
2129
+ },
2130
+ "evolution_context": {
2131
+ "description": "Phase 4 industry evolution context (populated when industry_evolution service is enabled). Provides AI with industry health signals and evolution advice.",
2132
+ "type": "object",
2133
+ "properties": {
2134
+ "industry_signal": {
2135
+ "description": "Industry evolution signal summary. Example: 'Industry health 82/100 (healthy); 25 cumulative industry signals'",
2136
+ "type": "string"
607
2137
  },
608
- "modified": {
2138
+ "evolution_advice": {
2139
+ "description": "Evolution advice for the current operation. Example: 'Recommend mandatory arbitration + compensation fund + delivery Guard'",
2140
+ "type": "string"
2141
+ },
2142
+ "confidence": {
2143
+ "type": "number",
2144
+ "minimum": 0,
2145
+ "maximum": 1,
2146
+ "description": "Confidence of the evolution context 0-1. <0.5 means no data yet. Example: 0.75"
2147
+ },
2148
+ "health_score": {
2149
+ "description": "Industry health score 0-100 if available. Example: 82",
2150
+ "type": "number",
2151
+ "minimum": 0,
2152
+ "maximum": 100
2153
+ },
2154
+ "pending_suggestions": {
2155
+ "description": "Count of pending industry update suggestions (filtered by role if role is set). Example: 3",
2156
+ "type": "integer",
2157
+ "minimum": 0,
2158
+ "maximum": 9007199254740991
2159
+ },
2160
+ "intent": {
2161
+ "description": "Phase 4 P4-6.C: Current business intent driving the scoring model. Absent = 'default'. Example: 'growth'",
2162
+ "type": "string",
2163
+ "enum": [
2164
+ "default",
2165
+ "growth",
2166
+ "retention",
2167
+ "compliance",
2168
+ "efficiency",
2169
+ "trust_building",
2170
+ "custom"
2171
+ ]
2172
+ },
2173
+ "role_advice": {
2174
+ "description": "Phase 4 P4-6.C: Role-targeted advice strings (merchant/customer/prospect/supplier/collaborator/arbitrator). Example: ['Strengthen loyalty flywheel','Optimize first-order conversion']",
609
2175
  "type": "array",
610
2176
  "items": {
611
- "$ref": "#/definitions/onchain_events/properties/semantic/properties/created/items"
2177
+ "type": "string"
2178
+ }
2179
+ },
2180
+ "role": {
2181
+ "description": "Phase 4 P4-6.C: Role used for advice routing. Example: 'merchant'",
2182
+ "type": "string",
2183
+ "enum": [
2184
+ "merchant",
2185
+ "customer",
2186
+ "prospect",
2187
+ "supplier",
2188
+ "collaborator",
2189
+ "arbitrator"
2190
+ ]
2191
+ }
2192
+ },
2193
+ "required": [
2194
+ "confidence"
2195
+ ],
2196
+ "additionalProperties": false
2197
+ },
2198
+ "guard_advice": {
2199
+ "description": "Phase 5 Guard capability advice (populated when user intent involves Guard). Provides puzzle status, scene matching, suggested patterns, available queries, risk warnings, and confirmation text. AI uses this to guide Guard design dialogue (R1-R10).",
2200
+ "type": "object",
2201
+ "properties": {
2202
+ "current_round": {
2203
+ "description": "Current R1-R10 dialogue round. R1=intent, R2=table, R3=tree, R4=rely, R5=binding, R6=review, R7=CREATE, R8=test, R9=bind, R10=verify. Example: 'R3'",
2204
+ "type": "string",
2205
+ "enum": [
2206
+ "R1",
2207
+ "R2",
2208
+ "R3",
2209
+ "R4",
2210
+ "R5",
2211
+ "R6",
2212
+ "R7",
2213
+ "R8",
2214
+ "R9",
2215
+ "R10"
2216
+ ]
2217
+ },
2218
+ "puzzle_status": {
2219
+ "description": "Information puzzle completeness (6 dimensions). Missing dimensions need user input before CREATE.",
2220
+ "type": "object",
2221
+ "properties": {
2222
+ "intent": {
2223
+ "type": "boolean",
2224
+ "description": "Intent dimension complete (action + rule + failure conditions)"
2225
+ },
2226
+ "binding": {
2227
+ "type": "boolean",
2228
+ "description": "Binding dimension complete (host object + field + circular ref)"
2229
+ },
2230
+ "data": {
2231
+ "type": "boolean",
2232
+ "description": "Data dimension complete (table entries + witnesses)"
2233
+ },
2234
+ "query": {
2235
+ "type": "boolean",
2236
+ "description": "Query dimension complete (query instructions if needed)"
2237
+ },
2238
+ "logic": {
2239
+ "type": "boolean",
2240
+ "description": "Logic dimension complete (root node returns Bool)"
2241
+ },
2242
+ "constraints": {
2243
+ "type": "boolean",
2244
+ "description": "Constraints dimension complete (10 Pitfalls checked)"
2245
+ }
612
2246
  },
613
- "description": "Objects mutated in this operation, tagged with roles"
2247
+ "required": [
2248
+ "intent",
2249
+ "binding",
2250
+ "data",
2251
+ "query",
2252
+ "logic",
2253
+ "constraints"
2254
+ ],
2255
+ "additionalProperties": false
2256
+ },
2257
+ "matched_scene": {
2258
+ "description": "Matched Guard scene id from the 8 binding scenarios ledger. Example: 'machine_forward_guard'",
2259
+ "type": "string"
2260
+ },
2261
+ "scene_description": {
2262
+ "description": "Human-readable scene description. Example: 'Workflow node forward validation (Forward.guard)'",
2263
+ "type": "string"
2264
+ },
2265
+ "scene_constraints": {
2266
+ "description": "Special constraints for the matched scene. Example: ['Forward.guard cannot be modified after Machine is published']",
2267
+ "type": "array",
2268
+ "items": {
2269
+ "type": "string"
2270
+ }
2271
+ },
2272
+ "suggested_patterns": {
2273
+ "description": "Suggested Guard patterns based on user intent. Example: ['time lock','progress status check']",
2274
+ "type": "array",
2275
+ "items": {
2276
+ "type": "string"
2277
+ }
614
2278
  },
615
- "released": {
2279
+ "available_queries": {
2280
+ "description": "Available query instructions for the current context (subset of 375 GUARDQUERY entries)",
616
2281
  "type": "array",
617
2282
  "items": {
618
2283
  "type": "object",
619
2284
  "properties": {
620
- "amount": {
621
- "type": "string",
622
- "description": "Amount change as stringified integer (smallest unit). Negative=spend, positive=receive. Example: '-10000000000'"
2285
+ "id": {
2286
+ "type": "integer",
2287
+ "minimum": -9007199254740991,
2288
+ "maximum": 9007199254740991,
2289
+ "description": "Query instruction ID. Example: 1253"
623
2290
  },
624
- "coinType": {
2291
+ "name": {
625
2292
  "type": "string",
626
- "description": "Coin type tag (format: {address}::{module}::{struct}). Example: '0x2::wow::WOW'"
2293
+ "description": "Query instruction name. Example: 'progress.current'"
627
2294
  },
628
- "role": {
2295
+ "objectType": {
629
2296
  "type": "string",
630
- "enum": [
631
- "payment",
632
- "refund",
633
- "change",
634
- "compensation",
635
- "reward",
636
- "gas",
637
- "deposit",
638
- "release",
639
- "other"
640
- ],
641
- "description": "Business role of this fund movement. Constraint: enum of 9 values. Relation: derived from operation context. Example: 'payment'"
2297
+ "description": "Target object type. Example: 'Progress'"
642
2298
  },
643
- "from": {
644
- "type": [
645
- "string",
646
- "null"
647
- ],
648
- "description": "Sender address if known. Example: '0xabc...' or null"
2299
+ "returnType": {
2300
+ "type": "string",
2301
+ "description": "Return value type. Example: 'String'"
649
2302
  },
650
- "to": {
651
- "type": [
652
- "string",
653
- "null"
654
- ],
655
- "description": "Recipient address if known. Example: '0xdef...' or null"
2303
+ "description": {
2304
+ "description": "Query description",
2305
+ "type": "string"
656
2306
  }
657
2307
  },
658
2308
  "required": [
659
- "amount",
660
- "coinType",
661
- "role"
2309
+ "id",
2310
+ "name",
2311
+ "objectType",
2312
+ "returnType"
662
2313
  ],
663
2314
  "additionalProperties": false,
664
- "description": "A fund movement tagged with its business role"
665
- },
666
- "description": "Fund movements in this operation, tagged with roles"
2315
+ "description": "A Guard query instruction available for the current context (subset of GUARDQUERY 375 entries)."
2316
+ }
667
2317
  },
668
- "events": {
2318
+ "risk_warnings": {
2319
+ "description": "Risk warnings for the current Guard design. Example: ['Guard cannot be modified after creation','Time lock test uses 1000ms']",
669
2320
  "type": "array",
670
2321
  "items": {
671
- "type": "object",
672
- "properties": {
673
- "event_type": {
674
- "type": "string",
675
- "description": "Raw on-chain event type tag. Example: '0x2::service::ServicePublishedEvent'"
676
- },
677
- "business_meaning": {
678
- "type": "string",
679
- "description": "Human-readable business meaning. Example: 'Service has been published and is now immutable'"
680
- },
681
- "category": {
682
- "type": "string",
683
- "enum": [
684
- "lifecycle",
685
- "state_change",
686
- "fund_flow",
687
- "permission",
688
- "guard",
689
- "other"
690
- ],
691
- "description": "Business category. Constraint: enum of 6 values. Example: 'lifecycle'"
2322
+ "type": "string"
2323
+ }
2324
+ },
2325
+ "pending_questions": {
2326
+ "description": "Questions for the user to complete the puzzle. Example: ['Which Host Object will the Guard bind to?']",
2327
+ "type": "array",
2328
+ "items": {
2329
+ "type": "string"
2330
+ }
2331
+ },
2332
+ "confirmation_text": {
2333
+ "description": "Structured semantic confirmation text for user review (generated when puzzle is complete). User must explicitly confirm before CREATE.",
2334
+ "type": "string"
2335
+ },
2336
+ "test_result": {
2337
+ "description": "gen_passport static test result. Must pass before CREATE.",
2338
+ "type": "object",
2339
+ "properties": {
2340
+ "status": {
2341
+ "type": "string",
2342
+ "enum": [
2343
+ "pass",
2344
+ "fail",
2345
+ "not_tested"
2346
+ ]
2347
+ },
2348
+ "failure_node": {
2349
+ "description": "Node that caused failure (if fail)",
2350
+ "type": "string"
2351
+ },
2352
+ "passport_id": {
2353
+ "description": "Generated Passport ID (if pass)",
2354
+ "type": "string"
2355
+ }
2356
+ },
2357
+ "required": [
2358
+ "status"
2359
+ ],
2360
+ "additionalProperties": false
2361
+ },
2362
+ "risk_assessment": {
2363
+ "description": "Business-layer risk assessment (game theory, data source trust, logic gaps). Populated during Guard design to warn about business risks beyond syntax.",
2364
+ "type": "object",
2365
+ "properties": {
2366
+ "overall_risk": {
2367
+ "type": "string",
2368
+ "enum": [
2369
+ "critical",
2370
+ "high",
2371
+ "medium",
2372
+ "low",
2373
+ "info"
2374
+ ],
2375
+ "description": "Overall risk level (highest from all risks)"
2376
+ },
2377
+ "risk_count": {
2378
+ "type": "integer",
2379
+ "minimum": -9007199254740991,
2380
+ "maximum": 9007199254740991,
2381
+ "description": "Total number of detected risks"
2382
+ },
2383
+ "critical_count": {
2384
+ "type": "integer",
2385
+ "minimum": -9007199254740991,
2386
+ "maximum": 9007199254740991,
2387
+ "description": "Number of critical risks"
2388
+ },
2389
+ "high_count": {
2390
+ "type": "integer",
2391
+ "minimum": -9007199254740991,
2392
+ "maximum": 9007199254740991,
2393
+ "description": "Number of high risks"
2394
+ },
2395
+ "needs_human_review": {
2396
+ "type": "boolean",
2397
+ "description": "Whether human review is required (critical or 2+ high risks)"
2398
+ },
2399
+ "top_risks": {
2400
+ "type": "array",
2401
+ "items": {
2402
+ "type": "string"
692
2403
  },
693
- "related_object": {
694
- "type": "string",
695
- "description": "Object ID the event relates to, if extractable. Example: '0x123...'"
2404
+ "description": "Top risk titles (critical and high, max 3)"
2405
+ },
2406
+ "stakeholder_advice": {
2407
+ "description": "Per-stakeholder advice. Key=stakeholder (customer/provider/arbitrator/claimant), value=advice list",
2408
+ "type": "object",
2409
+ "propertyNames": {
2410
+ "type": "string"
696
2411
  },
697
- "side_effect": {
698
- "type": "string",
699
- "description": "Side effect description for AI. Example: 'Customers can now place orders against this Service'"
2412
+ "additionalProperties": {
2413
+ "type": "array",
2414
+ "items": {
2415
+ "type": "string"
2416
+ }
700
2417
  }
701
- },
702
- "required": [
703
- "event_type",
704
- "business_meaning",
705
- "category"
706
- ],
707
- "additionalProperties": false,
708
- "description": "An on-chain event annotated with business semantics"
2418
+ }
709
2419
  },
710
- "description": "On-chain events annotated with business semantics (S-8)"
2420
+ "required": [
2421
+ "overall_risk",
2422
+ "risk_count",
2423
+ "critical_count",
2424
+ "high_count",
2425
+ "needs_human_review",
2426
+ "top_risks"
2427
+ ],
2428
+ "additionalProperties": false
2429
+ }
2430
+ },
2431
+ "additionalProperties": false
2432
+ },
2433
+ "workflow_guidance": {
2434
+ "description": "K3 permission-aware workflow guidance: current node + ALL reachable next nodes with their operator/permission/guard + K3 recommendation. Populated when a Progress (or Order with Progress) is queried and after progress operate. AI must read this BEFORE proposing the next workflow operation.",
2435
+ "type": "object",
2436
+ "properties": {
2437
+ "current_node": {
2438
+ "type": "string",
2439
+ "description": "Current node of the Progress. Example: 'serving'"
2440
+ },
2441
+ "caller": {
2442
+ "description": "The account (name/address) this guidance is framed for (env.account). Example: 'london_guide'",
2443
+ "type": "string"
711
2444
  },
712
- "next_actions": {
2445
+ "options": {
713
2446
  "type": "array",
714
2447
  "items": {
715
2448
  "type": "object",
716
2449
  "properties": {
717
- "action": {
2450
+ "next_node": {
718
2451
  "type": "string",
719
- "description": "Recommended next action. Example: 'add sales products'"
2452
+ "description": "Target node this forward advances INTO. Example: 'serving'"
720
2453
  },
721
- "reason": {
2454
+ "forward": {
722
2455
  "type": "string",
723
- "description": "Why this action is recommended. Example: 'Service has no products; customers cannot order'"
2456
+ "description": "Forward (operation) name. Example: 'StartService'"
724
2457
  },
725
- "tool": {
726
- "type": "string",
727
- "description": "MCP tool to use, if applicable. Example: 'onchain_operations'"
2458
+ "weight": {
2459
+ "type": "number",
2460
+ "description": "Forward weight contributed toward the pair threshold. Example: 1"
728
2461
  },
729
- "prerequisite": {
730
- "type": "string",
731
- "description": "Condition that must hold before this action. Example: 'Service must be created first'"
2462
+ "operator": {
2463
+ "type": "object",
2464
+ "properties": {
2465
+ "kind": {
2466
+ "type": "string",
2467
+ "enum": [
2468
+ "order_holder",
2469
+ "permission_index",
2470
+ "named_operator"
2471
+ ],
2472
+ "description": "Who can execute this forward (K3 feasibility). 'order_holder' = the Order owner (customer; forward namedOperator=''), 'permission_index' = a permission role, 'named_operator' = a specific Progress namespace operator."
2473
+ },
2474
+ "permission_index": {
2475
+ "description": "Permission index when kind='permission_index'. Example: 1000",
2476
+ "type": "integer",
2477
+ "minimum": -9007199254740991,
2478
+ "maximum": 9007199254740991
2479
+ },
2480
+ "role_name": {
2481
+ "description": "Resolved role display name. Example: 'merchant (permission 1000)' / 'order holder (customer)'",
2482
+ "type": "string"
2483
+ },
2484
+ "account_name": {
2485
+ "description": "Resolved local account/mark name when the operator maps to a concrete account. Example: 'london_guide'",
2486
+ "type": "string"
2487
+ },
2488
+ "named_operator": {
2489
+ "description": "NamedOperator namespace when kind='named_operator'. Example: 'delivery_team'",
2490
+ "type": "string"
2491
+ }
2492
+ },
2493
+ "required": [
2494
+ "kind"
2495
+ ],
2496
+ "additionalProperties": false,
2497
+ "description": "Who can execute this forward (which account + which permission)."
732
2498
  },
733
- "priority": {
2499
+ "guard": {
2500
+ "description": "Guard bound to the forward — acceptance condition verified BEFORE the transition. Example: 'guard_payout'",
2501
+ "type": "string"
2502
+ },
2503
+ "business_meaning": {
734
2504
  "type": "string",
735
- "enum": [
736
- "required",
737
- "recommended",
738
- "optional"
739
- ],
740
- "description": "Priority. Constraint: enum. Example: 'required'"
2505
+ "description": "Business meaning of advancing to this node. Example: 'Guide starts the day service'"
2506
+ },
2507
+ "gains": {
2508
+ "description": "Gains for the caller if this option is chosen (K3 Game G1 收益分离). Example: ['Settlement triggered — funds released to provider']",
2509
+ "type": "array",
2510
+ "items": {
2511
+ "type": "string"
2512
+ }
2513
+ },
2514
+ "risks": {
2515
+ "description": "Risks for the caller if this option is chosen (K3 Game G1 风险分离). Example: ['Refund leverage lost after confirmation']",
2516
+ "type": "array",
2517
+ "items": {
2518
+ "type": "string"
2519
+ }
2520
+ },
2521
+ "consistency": {
2522
+ "description": "Consistency 0-100 between this option's business semantics and the caller's interests (K3 Game optimality). Higher = more aligned.",
2523
+ "type": "number",
2524
+ "minimum": 0,
2525
+ "maximum": 100
2526
+ },
2527
+ "recommended": {
2528
+ "description": "Whether this is the recommended option (highest consistency).",
2529
+ "type": "boolean"
741
2530
  }
742
2531
  },
743
2532
  "required": [
744
- "action",
745
- "reason",
746
- "priority"
2533
+ "next_node",
2534
+ "forward",
2535
+ "weight",
2536
+ "operator",
2537
+ "business_meaning"
747
2538
  ],
748
2539
  "additionalProperties": false,
749
- "description": "A recommended next action with priority and rationale"
750
- },
751
- "description": "Recommended next actions to drive the workflow forward"
752
- },
753
- "warnings": {
754
- "type": "array",
755
- "items": {
756
- "type": "string"
2540
+ "description": "A reachable next-node option with its operator/permission, guard, business meaning, and K3-style gains/risks/consistency."
757
2541
  },
758
- "description": "Business-level warnings. Example: 'order_allocators not configured; order funds cannot be distributed'"
2542
+ "description": "ALL reachable next-node directions (every operator/permission/guard disclosed)."
759
2543
  },
760
- "experience": {
2544
+ "recommendation": {
2545
+ "description": "Recommended option with rationale (K3 Game 意图/博弈/利益).",
761
2546
  "type": "object",
762
2547
  "properties": {
763
- "advice": {
764
- "type": "string",
765
- "description": "Advice from past experience. Example: 'Last time you forgot to set buy_guard; add it before publishing'"
766
- },
767
- "avoid": {
768
- "type": "array",
769
- "items": {
770
- "type": "string"
771
- },
772
- "description": "Pitfalls to avoid based on history. Example: ['Guard rejection on delivery_proof']"
2548
+ "best": {
2549
+ "description": "Recommended action in '<forward> → <next_node>' form. Example: 'StartService → serving'",
2550
+ "type": "string"
773
2551
  },
774
- "relevance": {
775
- "type": "number",
776
- "minimum": 0,
777
- "maximum": 1,
778
- "description": "Relevance score 0-1 of the matched experience. Example: 0.85"
2552
+ "rationale": {
2553
+ "description": "Why this option is recommended (framed at the caller's value: gains/risks). Example: 'For the guide, advancing to serving triggers the delivery flow'",
2554
+ "type": "string"
779
2555
  },
780
- "matched_scenario": {
781
- "type": "string",
782
- "description": "Matched historical scenario. Example: 'publish_service_freelance'"
2556
+ "caveat": {
2557
+ "description": "Disclosed trade-off / opportunity cost of NOT taking another path (K3 Game G3 机会成本). Example: 'Choosing cancelled forfeits this order's settlement'",
2558
+ "type": "string"
783
2559
  }
784
2560
  },
785
- "additionalProperties": false,
786
- "description": "Experience layer feedback from past operations (Phase 2 Topic 2)"
2561
+ "additionalProperties": false
787
2562
  },
788
- "service_status": {
789
- "type": "object",
790
- "properties": {
791
- "active": {
792
- "type": "array",
793
- "items": {
794
- "type": "string"
795
- },
796
- "description": "Phase 2 services currently active (enabled). Example: ['confirm_gate','project_service','experience_layer']"
797
- },
798
- "inactive": {
799
- "type": "array",
800
- "items": {
801
- "type": "string"
802
- },
803
- "description": "Phase 2 services currently inactive (can be toggled via config_operation). Example: ['harness','graph_persist']"
804
- }
805
- },
806
- "required": [
807
- "active"
808
- ],
809
- "additionalProperties": false,
810
- "description": "Phase 2 runtime service status (populated when semantic_rich is enabled). Lets AI see active services in each response."
2563
+ "note": {
2564
+ "description": "Additional note (e.g. wait for the other party, entry/terminal hint).",
2565
+ "type": "string"
2566
+ }
2567
+ },
2568
+ "required": [
2569
+ "current_node",
2570
+ "options"
2571
+ ],
2572
+ "additionalProperties": false
2573
+ },
2574
+ "workflow_receipt": {
2575
+ "description": "K3 operate receipt: which account did what, whether the node migrated, and threshold/weight cooperation status when it did not. AI must relay this to the user after every progress operation.",
2576
+ "type": "object",
2577
+ "properties": {
2578
+ "account": {
2579
+ "type": "string",
2580
+ "description": "The account that executed the operation (env.account). Example: 'london_guide'"
811
2581
  },
812
- "customer_advice": {
813
- "type": "object",
814
- "properties": {
815
- "risk_score": {
816
- "type": "number",
817
- "minimum": 0,
818
- "maximum": 100,
819
- "description": "Composite risk score 0-100 (higher = safer). Relation: from risk-assessment.ts 4-dimension scoring. Example: 75"
820
- },
821
- "risk_level": {
822
- "type": "string",
823
- "enum": [
824
- "low",
825
- "medium_low",
826
- "medium_high",
827
- "high"
828
- ],
829
- "description": "Risk level bucket. 'high' = strongly discourage purchase. Example: 'medium_high'"
830
- },
831
- "recommendations": {
832
- "type": "array",
833
- "items": {
834
- "type": "string"
2582
+ "action": {
2583
+ "type": "string",
2584
+ "description": "What was done. Example: 'london_guide executed StartService (paid → serving)'"
2585
+ },
2586
+ "forward": {
2587
+ "type": "string",
2588
+ "description": "Forward name executed. Example: 'StartService'"
2589
+ },
2590
+ "target_node": {
2591
+ "type": "string",
2592
+ "description": "Target node of the executed forward. Example: 'serving'"
2593
+ },
2594
+ "op": {
2595
+ "description": "Operation type executed.",
2596
+ "type": "string",
2597
+ "enum": [
2598
+ "next",
2599
+ "hold",
2600
+ "unhold",
2601
+ "adminUnhold"
2602
+ ]
2603
+ },
2604
+ "migrated": {
2605
+ "type": "boolean",
2606
+ "description": "Whether the Progress migrated to the target node (true) or stayed (false — weights still accumulating toward threshold)."
2607
+ },
2608
+ "current_node": {
2609
+ "type": "string",
2610
+ "description": "Progress.current after the operation."
2611
+ },
2612
+ "threshold": {
2613
+ "description": "Pair threshold when NOT migrated (threshold > 0).",
2614
+ "type": "number"
2615
+ },
2616
+ "accumulated_weight": {
2617
+ "description": "Accumulated forward weight in the current session when NOT migrated.",
2618
+ "type": "number"
2619
+ },
2620
+ "remaining": {
2621
+ "description": "threshold - accumulated_weight when NOT migrated.",
2622
+ "type": "number"
2623
+ },
2624
+ "waiting_on": {
2625
+ "description": "Pending forwards + their operators when NOT migrated (K3 Game G4 — who must cooperate next).",
2626
+ "type": "array",
2627
+ "items": {
2628
+ "type": "object",
2629
+ "properties": {
2630
+ "forward": {
2631
+ "type": "string",
2632
+ "description": "Forward still required to reach the threshold. Example: 'GuideConfirm'"
835
2633
  },
836
- "description": "Actionable recommendations for the buyer. Example: ['Require merchant to configure arbitration','Negotiate refund terms via Messenger']"
837
- },
838
- "reminders": {
839
- "type": "array",
840
- "items": {
2634
+ "operator": {
841
2635
  "type": "object",
842
2636
  "properties": {
843
- "id": {
844
- "type": "string",
845
- "description": "Reminder rule id. Example: 'high_risk_score'"
846
- },
847
- "stage": {
2637
+ "kind": {
848
2638
  "type": "string",
849
2639
  "enum": [
850
- "browse",
851
- "evaluate",
852
- "preorder",
853
- "in_progress",
854
- "complete",
855
- "after_sale"
2640
+ "order_holder",
2641
+ "permission_index",
2642
+ "named_operator"
856
2643
  ],
857
- "description": "Order lifecycle stage when this reminder fires. Example: 'evaluate'"
2644
+ "description": "Who can execute this forward (K3 feasibility). 'order_holder' = the Order owner (customer; forward namedOperator=''), 'permission_index' = a permission role, 'named_operator' = a specific Progress namespace operator."
858
2645
  },
859
- "priority": {
860
- "type": "string",
861
- "enum": [
862
- "required",
863
- "recommended",
864
- "info",
865
- "reminder"
866
- ],
867
- "description": "Priority. 'required' = blocks purchase; 'recommended' = strong caution. Example: 'required'"
2646
+ "permission_index": {
2647
+ "description": "Permission index when kind='permission_index'. Example: 1000",
2648
+ "type": "integer",
2649
+ "minimum": -9007199254740991,
2650
+ "maximum": 9007199254740991
868
2651
  },
869
- "message": {
870
- "type": "string",
871
- "description": "Human-readable reminder message. Example: 'Composite risk score 25/100, strongly discourage purchase'"
2652
+ "role_name": {
2653
+ "description": "Resolved role display name. Example: 'merchant (permission 1000)' / 'order holder (customer)'",
2654
+ "type": "string"
872
2655
  },
873
- "action": {
874
- "type": "string",
875
- "description": "Suggested next action. Example: 'require merchant to bind Arbitration before ordering'"
2656
+ "account_name": {
2657
+ "description": "Resolved local account/mark name when the operator maps to a concrete account. Example: 'london_guide'",
2658
+ "type": "string"
2659
+ },
2660
+ "named_operator": {
2661
+ "description": "NamedOperator namespace when kind='named_operator'. Example: 'delivery_team'",
2662
+ "type": "string"
876
2663
  }
877
2664
  },
878
2665
  "required": [
879
- "id",
880
- "stage",
881
- "priority",
882
- "message"
2666
+ "kind"
883
2667
  ],
884
2668
  "additionalProperties": false,
885
- "description": "A buyer-side reminder triggered at a specific order lifecycle stage (Phase 3 C-3)."
886
- },
887
- "description": "Stage-specific reminders (deduped, sorted by priority, capped to 3 high-risk). Example: [{priority:'required', message:'Ambiguous Guard must be human-reviewed'}]"
888
- },
889
- "preference_match": {
890
- "type": "object",
891
- "properties": {
892
- "score": {
893
- "type": "number",
894
- "minimum": 0,
895
- "maximum": 100,
896
- "description": "Match score 0-100 (higher = better fit). Example: 75"
897
- },
898
- "matches": {
899
- "type": "array",
900
- "items": {
901
- "type": "string"
902
- },
903
- "description": "Aspects that match user preferences. Example: ['Price 10% below average','Has arbitration']"
904
- },
905
- "mismatches": {
906
- "type": "array",
907
- "items": {
908
- "type": "string"
909
- },
910
- "description": "Aspects that mismatch user preferences. Example: ['Delivery cycle exceeds expectation']"
911
- }
912
- },
913
- "required": [
914
- "score",
915
- "matches",
916
- "mismatches"
917
- ],
918
- "additionalProperties": false,
919
- "description": "Service-to-preference match (populated when user preferences exist). Example: {score:75, matches:[...], mismatches:[...]}"
920
- }
921
- },
922
- "required": [
923
- "recommendations",
924
- "reminders"
925
- ],
926
- "additionalProperties": false,
927
- "description": "Buyer-side advice (Phase 3 C-3.3). Populated when customer_intelligence service is enabled AND operation is order/query on a Service. Contains risk_score, recommendations, reminders, and preference_match."
928
- },
929
- "evolution_context": {
930
- "type": "object",
931
- "properties": {
932
- "industry_signal": {
933
- "type": "string",
934
- "description": "Industry evolution signal summary. Example: 'Industry health 82/100 (healthy); 25 cumulative industry signals'"
935
- },
936
- "evolution_advice": {
937
- "type": "string",
938
- "description": "Evolution advice for the current operation. Example: 'Recommend mandatory arbitration + compensation fund + delivery Guard'"
939
- },
940
- "confidence": {
941
- "type": "number",
942
- "minimum": 0,
943
- "maximum": 1,
944
- "description": "Confidence of the evolution context 0-1. <0.5 means no data yet. Example: 0.75"
945
- },
946
- "health_score": {
947
- "type": "number",
948
- "minimum": 0,
949
- "maximum": 100,
950
- "description": "Industry health score 0-100 if available. Example: 82"
951
- },
952
- "pending_suggestions": {
953
- "type": "integer",
954
- "minimum": 0,
955
- "description": "Count of pending industry update suggestions (filtered by role if role is set). Example: 3"
956
- },
957
- "intent": {
958
- "type": "string",
959
- "enum": [
960
- "default",
961
- "growth",
962
- "retention",
963
- "compliance",
964
- "efficiency",
965
- "trust_building",
966
- "custom"
967
- ],
968
- "description": "Phase 4 P4-6.C: Current business intent driving the scoring model. Absent = 'default'. Example: 'growth'"
969
- },
970
- "role_advice": {
971
- "type": "array",
972
- "items": {
973
- "type": "string"
974
- },
975
- "description": "Phase 4 P4-6.C: Role-targeted advice strings (user/merchant/arbitrator). Example: ['Strengthen loyalty flywheel','Optimize first-order conversion']"
2669
+ "description": "Who must execute this forward next."
2670
+ }
976
2671
  },
977
- "role": {
978
- "type": "string",
979
- "enum": [
980
- "user",
981
- "merchant",
982
- "arbitrator"
983
- ],
984
- "description": "Phase 4 P4-6.C: Role used for advice routing. Example: 'merchant'"
985
- }
986
- },
987
- "required": [
988
- "confidence"
989
- ],
990
- "additionalProperties": false,
991
- "description": "Phase 4 industry evolution context (populated when industry_evolution service is enabled). Provides AI with industry health signals and evolution advice."
2672
+ "required": [
2673
+ "forward",
2674
+ "operator"
2675
+ ],
2676
+ "additionalProperties": false,
2677
+ "description": "A forward still pending — who must act next (threshold cooperation, K3 Game G4 阈值配合)."
2678
+ }
992
2679
  },
993
- "guard_advice": {
2680
+ "next_guidance": {
2681
+ "description": "Next-node guidance from the resulting current node.",
994
2682
  "type": "object",
995
2683
  "properties": {
996
- "current_round": {
997
- "type": "string",
998
- "enum": [
999
- "R1",
1000
- "R2",
1001
- "R3",
1002
- "R4",
1003
- "R5",
1004
- "R6",
1005
- "R7",
1006
- "R8",
1007
- "R9",
1008
- "R10"
1009
- ],
1010
- "description": "Current R1-R10 dialogue round. R1=intent, R2=table, R3=tree, R4=rely, R5=binding, R6=review, R7=CREATE, R8=test, R9=bind, R10=verify. Example: 'R3'"
1011
- },
1012
- "puzzle_status": {
1013
- "type": "object",
1014
- "properties": {
1015
- "intent": {
1016
- "type": "boolean",
1017
- "description": "Intent dimension complete (action + rule + failure conditions)"
1018
- },
1019
- "binding": {
1020
- "type": "boolean",
1021
- "description": "Binding dimension complete (host object + field + circular ref)"
1022
- },
1023
- "data": {
1024
- "type": "boolean",
1025
- "description": "Data dimension complete (table entries + witnesses)"
1026
- },
1027
- "query": {
1028
- "type": "boolean",
1029
- "description": "Query dimension complete (query instructions if needed)"
1030
- },
1031
- "logic": {
1032
- "type": "boolean",
1033
- "description": "Logic dimension complete (root node returns Bool)"
1034
- },
1035
- "constraints": {
1036
- "type": "boolean",
1037
- "description": "Constraints dimension complete (10 Pitfalls checked)"
1038
- }
1039
- },
1040
- "required": [
1041
- "intent",
1042
- "binding",
1043
- "data",
1044
- "query",
1045
- "logic",
1046
- "constraints"
1047
- ],
1048
- "additionalProperties": false,
1049
- "description": "Information puzzle completeness (6 dimensions). Missing dimensions need user input before CREATE."
1050
- },
1051
- "matched_scene": {
1052
- "type": "string",
1053
- "description": "Matched Guard scene id from the 8 binding scenarios ledger. Example: 'machine_forward_guard'"
1054
- },
1055
- "scene_description": {
2684
+ "current_node": {
1056
2685
  "type": "string",
1057
- "description": "Human-readable scene description. Example: 'Workflow node forward validation (Forward.guard)'"
2686
+ "description": "Current node of the Progress. Example: 'serving'"
1058
2687
  },
1059
- "scene_constraints": {
1060
- "type": "array",
1061
- "items": {
1062
- "type": "string"
1063
- },
1064
- "description": "Special constraints for the matched scene. Example: ['Forward.guard cannot be modified after Machine is published']"
1065
- },
1066
- "suggested_patterns": {
1067
- "type": "array",
1068
- "items": {
1069
- "type": "string"
1070
- },
1071
- "description": "Suggested Guard patterns based on user intent. Example: ['time lock','progress status check']"
2688
+ "caller": {
2689
+ "description": "The account (name/address) this guidance is framed for (env.account). Example: 'london_guide'",
2690
+ "type": "string"
1072
2691
  },
1073
- "available_queries": {
2692
+ "options": {
1074
2693
  "type": "array",
1075
2694
  "items": {
1076
2695
  "type": "object",
1077
2696
  "properties": {
1078
- "id": {
1079
- "type": "integer",
1080
- "description": "Query instruction ID. Example: 1253"
1081
- },
1082
- "name": {
2697
+ "next_node": {
1083
2698
  "type": "string",
1084
- "description": "Query instruction name. Example: 'progress.current'"
2699
+ "description": "Target node this forward advances INTO. Example: 'serving'"
1085
2700
  },
1086
- "objectType": {
2701
+ "forward": {
1087
2702
  "type": "string",
1088
- "description": "Target object type. Example: 'Progress'"
2703
+ "description": "Forward (operation) name. Example: 'StartService'"
1089
2704
  },
1090
- "returnType": {
1091
- "type": "string",
1092
- "description": "Return value type. Example: 'String'"
2705
+ "weight": {
2706
+ "type": "number",
2707
+ "description": "Forward weight contributed toward the pair threshold. Example: 1"
1093
2708
  },
1094
- "description": {
2709
+ "operator": {
2710
+ "type": "object",
2711
+ "properties": {
2712
+ "kind": {
2713
+ "type": "string",
2714
+ "enum": [
2715
+ "order_holder",
2716
+ "permission_index",
2717
+ "named_operator"
2718
+ ],
2719
+ "description": "Who can execute this forward (K3 feasibility). 'order_holder' = the Order owner (customer; forward namedOperator=''), 'permission_index' = a permission role, 'named_operator' = a specific Progress namespace operator."
2720
+ },
2721
+ "permission_index": {
2722
+ "description": "Permission index when kind='permission_index'. Example: 1000",
2723
+ "type": "integer",
2724
+ "minimum": -9007199254740991,
2725
+ "maximum": 9007199254740991
2726
+ },
2727
+ "role_name": {
2728
+ "description": "Resolved role display name. Example: 'merchant (permission 1000)' / 'order holder (customer)'",
2729
+ "type": "string"
2730
+ },
2731
+ "account_name": {
2732
+ "description": "Resolved local account/mark name when the operator maps to a concrete account. Example: 'london_guide'",
2733
+ "type": "string"
2734
+ },
2735
+ "named_operator": {
2736
+ "description": "NamedOperator namespace when kind='named_operator'. Example: 'delivery_team'",
2737
+ "type": "string"
2738
+ }
2739
+ },
2740
+ "required": [
2741
+ "kind"
2742
+ ],
2743
+ "additionalProperties": false,
2744
+ "description": "Who can execute this forward (which account + which permission)."
2745
+ },
2746
+ "guard": {
2747
+ "description": "Guard bound to the forward — acceptance condition verified BEFORE the transition. Example: 'guard_payout'",
2748
+ "type": "string"
2749
+ },
2750
+ "business_meaning": {
1095
2751
  "type": "string",
1096
- "description": "Query description"
2752
+ "description": "Business meaning of advancing to this node. Example: 'Guide starts the day service'"
2753
+ },
2754
+ "gains": {
2755
+ "description": "Gains for the caller if this option is chosen (K3 Game G1 收益分离). Example: ['Settlement triggered — funds released to provider']",
2756
+ "type": "array",
2757
+ "items": {
2758
+ "type": "string"
2759
+ }
2760
+ },
2761
+ "risks": {
2762
+ "description": "Risks for the caller if this option is chosen (K3 Game G1 风险分离). Example: ['Refund leverage lost after confirmation']",
2763
+ "type": "array",
2764
+ "items": {
2765
+ "type": "string"
2766
+ }
2767
+ },
2768
+ "consistency": {
2769
+ "description": "Consistency 0-100 between this option's business semantics and the caller's interests (K3 Game optimality). Higher = more aligned.",
2770
+ "type": "number",
2771
+ "minimum": 0,
2772
+ "maximum": 100
2773
+ },
2774
+ "recommended": {
2775
+ "description": "Whether this is the recommended option (highest consistency).",
2776
+ "type": "boolean"
1097
2777
  }
1098
2778
  },
1099
2779
  "required": [
1100
- "id",
1101
- "name",
1102
- "objectType",
1103
- "returnType"
2780
+ "next_node",
2781
+ "forward",
2782
+ "weight",
2783
+ "operator",
2784
+ "business_meaning"
1104
2785
  ],
1105
2786
  "additionalProperties": false,
1106
- "description": "A Guard query instruction available for the current context (subset of GUARDQUERY 375 entries)."
1107
- },
1108
- "description": "Available query instructions for the current context (subset of 375 GUARDQUERY entries)"
1109
- },
1110
- "risk_warnings": {
1111
- "type": "array",
1112
- "items": {
1113
- "type": "string"
1114
- },
1115
- "description": "Risk warnings for the current Guard design. Example: ['Guard cannot be modified after creation','Time lock test uses 1000ms']"
1116
- },
1117
- "pending_questions": {
1118
- "type": "array",
1119
- "items": {
1120
- "type": "string"
2787
+ "description": "A reachable next-node option with its operator/permission, guard, business meaning, and K3-style gains/risks/consistency."
1121
2788
  },
1122
- "description": "Questions for the user to complete the puzzle. Example: ['Which Host Object will the Guard bind to?']"
1123
- },
1124
- "confirmation_text": {
1125
- "type": "string",
1126
- "description": "Structured semantic confirmation text for user review (generated when puzzle is complete). User must explicitly confirm before CREATE."
2789
+ "description": "ALL reachable next-node directions (every operator/permission/guard disclosed)."
1127
2790
  },
1128
- "test_result": {
2791
+ "recommendation": {
2792
+ "description": "Recommended option with rationale (K3 Game 意图/博弈/利益).",
1129
2793
  "type": "object",
1130
2794
  "properties": {
1131
- "status": {
1132
- "type": "string",
1133
- "enum": [
1134
- "pass",
1135
- "fail",
1136
- "not_tested"
1137
- ]
2795
+ "best": {
2796
+ "description": "Recommended action in '<forward> → <next_node>' form. Example: 'StartService → serving'",
2797
+ "type": "string"
1138
2798
  },
1139
- "failure_node": {
1140
- "type": "string",
1141
- "description": "Node that caused failure (if fail)"
2799
+ "rationale": {
2800
+ "description": "Why this option is recommended (framed at the caller's value: gains/risks). Example: 'For the guide, advancing to serving triggers the delivery flow'",
2801
+ "type": "string"
1142
2802
  },
1143
- "passport_id": {
1144
- "type": "string",
1145
- "description": "Generated Passport ID (if pass)"
2803
+ "caveat": {
2804
+ "description": "Disclosed trade-off / opportunity cost of NOT taking another path (K3 Game G3 机会成本). Example: 'Choosing cancelled forfeits this order's settlement'",
2805
+ "type": "string"
1146
2806
  }
1147
2807
  },
1148
- "required": [
1149
- "status"
1150
- ],
1151
- "additionalProperties": false,
1152
- "description": "gen_passport static test result. Must pass before CREATE."
2808
+ "additionalProperties": false
1153
2809
  },
1154
- "risk_assessment": {
1155
- "type": "object",
1156
- "properties": {
1157
- "overall_risk": {
1158
- "type": "string",
1159
- "enum": [
1160
- "critical",
1161
- "high",
1162
- "medium",
1163
- "low",
1164
- "info"
1165
- ],
1166
- "description": "Overall risk level (highest from all risks)"
1167
- },
1168
- "risk_count": {
1169
- "type": "integer",
1170
- "description": "Total number of detected risks"
1171
- },
1172
- "critical_count": {
1173
- "type": "integer",
1174
- "description": "Number of critical risks"
1175
- },
1176
- "high_count": {
1177
- "type": "integer",
1178
- "description": "Number of high risks"
1179
- },
1180
- "needs_human_review": {
1181
- "type": "boolean",
1182
- "description": "Whether human review is required (critical or 2+ high risks)"
1183
- },
1184
- "top_risks": {
1185
- "type": "array",
1186
- "items": {
1187
- "type": "string"
1188
- },
1189
- "description": "Top risk titles (critical and high, max 3)"
1190
- },
1191
- "stakeholder_advice": {
1192
- "type": "object",
1193
- "additionalProperties": {
1194
- "type": "array",
1195
- "items": {
1196
- "type": "string"
1197
- }
1198
- },
1199
- "description": "Per-stakeholder advice. Key=stakeholder (customer/provider/arbitrator/claimant), value=advice list"
1200
- }
1201
- },
1202
- "required": [
1203
- "overall_risk",
1204
- "risk_count",
1205
- "critical_count",
1206
- "high_count",
1207
- "needs_human_review",
1208
- "top_risks"
1209
- ],
1210
- "additionalProperties": false,
1211
- "description": "Business-layer risk assessment (game theory, data source trust, logic gaps). Populated during Guard design to warn about business risks beyond syntax."
2810
+ "note": {
2811
+ "description": "Additional note (e.g. wait for the other party, entry/terminal hint).",
2812
+ "type": "string"
1212
2813
  }
1213
2814
  },
1214
- "additionalProperties": false,
1215
- "description": "Phase 5 Guard capability advice (populated when user intent involves Guard). Provides puzzle status, scene matching, suggested patterns, available queries, risk warnings, and confirmation text. AI uses this to guide Guard design dialogue (R1-R10)."
2815
+ "required": [
2816
+ "current_node",
2817
+ "options"
2818
+ ],
2819
+ "additionalProperties": false
2820
+ },
2821
+ "note": {
2822
+ "description": "Additional note.",
2823
+ "type": "string"
1216
2824
  }
1217
2825
  },
1218
2826
  "required": [
1219
- "intent",
1220
- "status",
1221
- "summary"
2827
+ "account",
2828
+ "action",
2829
+ "forward",
2830
+ "target_node",
2831
+ "migrated",
2832
+ "current_node"
1222
2833
  ],
1223
- "additionalProperties": false,
1224
- "description": "Business semantic summary for the event query"
2834
+ "additionalProperties": false
1225
2835
  }
1226
2836
  },
1227
2837
  "required": [
1228
- "result"
2838
+ "intent",
2839
+ "status",
2840
+ "summary"
1229
2841
  ],
1230
- "additionalProperties": false,
1231
- "description": "Result of on-chain events query"
2842
+ "additionalProperties": false
1232
2843
  }
1233
- }
2844
+ },
2845
+ "required": [
2846
+ "result"
2847
+ ],
2848
+ "additionalProperties": false
1234
2849
  }