@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
@@ -3,901 +3,3120 @@
3
3
  "$id": "https://wowok.net/schemas/evaluation_operation.json",
4
4
  "title": "Evaluation - Pluggable Business Intelligence",
5
5
  "description": "Run pluggable business evaluations (data sources + rules + user injection). Actions: arb_game (Arb 7-state best-move), node_game (Progress node best-move), capability_gap (demand-vs-service capability gaps), compose_service (combine services to cover a demand), demand_match (rank services for a demand), service_match (rank demands for a service). Read-only — returns ranked recommendations / scores with reasoning.",
6
- "$ref": "#/definitions/evaluation_operation",
7
- "definitions": {
8
- "evaluation_operation": {
9
- "anyOf": [
10
- {
6
+ "oneOf": [
7
+ {
8
+ "type": "object",
9
+ "properties": {
10
+ "action": {
11
+ "type": "string",
12
+ "const": "arb_game"
13
+ },
14
+ "status": {
15
+ "type": "string",
16
+ "enum": [
17
+ "Principal_confirming",
18
+ "Arbitrator_confirming",
19
+ "Voting",
20
+ "Arbitrated",
21
+ "Objectionable",
22
+ "Finished",
23
+ "Withdrawn"
24
+ ]
25
+ },
26
+ "perspective": {
27
+ "type": "string",
28
+ "enum": [
29
+ "customer",
30
+ "merchant",
31
+ "arbitrator"
32
+ ]
33
+ },
34
+ "appetite": {
35
+ "description": "Risk appetite — adjusts risk sensitivity (conservative amplifies risk).",
36
+ "type": "string",
37
+ "enum": [
38
+ "conservative",
39
+ "balanced",
40
+ "aggressive"
41
+ ]
42
+ },
43
+ "account": {
44
+ "description": "Account address; its persona's risk_appetite is used as the default appetite.",
45
+ "type": "string"
46
+ },
47
+ "requirements": {
48
+ "description": "Persona red lines that re-anchor the role's prefer/avoid (人设驱动力).",
49
+ "type": "array",
50
+ "items": {
51
+ "type": "string"
52
+ }
53
+ }
54
+ },
55
+ "required": [
56
+ "action",
57
+ "status",
58
+ "perspective"
59
+ ],
60
+ "additionalProperties": false
61
+ },
62
+ {
63
+ "type": "object",
64
+ "properties": {
65
+ "action": {
66
+ "type": "string",
67
+ "const": "node_game"
68
+ },
69
+ "current_node": {
70
+ "type": "string"
71
+ },
72
+ "perspective": {
73
+ "type": "string",
74
+ "enum": [
75
+ "merchant",
76
+ "customer",
77
+ "prospect",
78
+ "supplier",
79
+ "collaborator",
80
+ "arbitrator"
81
+ ]
82
+ },
83
+ "appetite": {
84
+ "description": "Risk appetite — adjusts risk sensitivity (conservative amplifies risk).",
85
+ "type": "string",
86
+ "enum": [
87
+ "conservative",
88
+ "balanced",
89
+ "aggressive"
90
+ ]
91
+ },
92
+ "account": {
93
+ "description": "Account address; its persona's risk_appetite is used as the default appetite.",
94
+ "type": "string"
95
+ },
96
+ "threshold": {
97
+ "description": "Pair threshold — when > 1, multi-role cooperation is needed to advance.",
98
+ "type": "integer",
99
+ "minimum": 1,
100
+ "maximum": 9007199254740991
101
+ },
102
+ "allocation": {
103
+ "description": "Allocation waterfall — how funds split after the node advances (利益分配).",
11
104
  "type": "object",
12
105
  "properties": {
13
- "action": {
14
- "type": "string",
15
- "const": "arb_game"
106
+ "recipient_slots": {
107
+ "type": "integer",
108
+ "minimum": 0,
109
+ "maximum": 9007199254740991,
110
+ "description": "Total recipient slots across allocators."
16
111
  },
17
- "status": {
18
- "type": "string",
19
- "enum": [
20
- "Principal_confirming",
21
- "Arbitrator_confirming",
22
- "Voting",
23
- "Arbitrated",
24
- "Objectionable",
25
- "Finished",
26
- "Withdrawn"
27
- ]
112
+ "guard_gated_slots": {
113
+ "type": "integer",
114
+ "minimum": 0,
115
+ "maximum": 9007199254740991,
116
+ "description": "Slots resolved at settlement by a Guard."
28
117
  },
29
- "perspective": {
30
- "type": "string",
31
- "enum": [
32
- "disputant",
33
- "arbitrator",
34
- "voter",
35
- "both"
36
- ]
118
+ "direct_to_me_slots": {
119
+ "type": "integer",
120
+ "minimum": 0,
121
+ "maximum": 9007199254740991,
122
+ "description": "Slots paying directly to this role."
123
+ },
124
+ "to_payer_slots": {
125
+ "type": "integer",
126
+ "minimum": 0,
127
+ "maximum": 9007199254740991,
128
+ "description": "Slots routing back to the payer (refund-oriented)."
37
129
  }
38
130
  },
39
131
  "required": [
40
- "action",
41
- "status",
42
- "perspective"
132
+ "recipient_slots",
133
+ "guard_gated_slots",
134
+ "direct_to_me_slots",
135
+ "to_payer_slots"
43
136
  ],
44
137
  "additionalProperties": false
45
138
  },
46
- {
139
+ "requirements": {
140
+ "description": "Persona red lines that re-anchor the role's prefer/avoid (人设驱动力).",
141
+ "type": "array",
142
+ "items": {
143
+ "type": "string"
144
+ }
145
+ },
146
+ "order_amount": {
147
+ "description": "Escrowed order amount (smallest-unit string) — the monetary stake at this node (数值化).",
148
+ "type": "string"
149
+ },
150
+ "compensation_fund": {
151
+ "description": "Merchant compensation_fund (smallest-unit string) — the monetary risk exposure backing indemnity.",
152
+ "type": "string"
153
+ },
154
+ "operable": {
155
+ "type": "array",
156
+ "items": {
157
+ "type": "object",
158
+ "properties": {
159
+ "name": {
160
+ "type": "string",
161
+ "description": "Forward (operation) name."
162
+ },
163
+ "to_node": {
164
+ "type": "string",
165
+ "description": "Target node after execution."
166
+ },
167
+ "execution_path": {
168
+ "type": "string",
169
+ "enum": [
170
+ "order_holder",
171
+ "permission",
172
+ "named_operator",
173
+ "not_available"
174
+ ],
175
+ "description": "How the account may execute it."
176
+ },
177
+ "guard": {
178
+ "description": "Guard address gating this forward.",
179
+ "type": "string"
180
+ },
181
+ "consequence": {
182
+ "description": "Consequence hint (completion/refund path).",
183
+ "type": "string"
184
+ },
185
+ "weight": {
186
+ "description": "Forward weight (accumulates toward the pair's threshold).",
187
+ "type": "number"
188
+ }
189
+ },
190
+ "required": [
191
+ "name",
192
+ "to_node",
193
+ "execution_path"
194
+ ],
195
+ "additionalProperties": false
196
+ }
197
+ },
198
+ "waiting_on": {
199
+ "type": "array",
200
+ "items": {
201
+ "type": "object",
202
+ "properties": {
203
+ "role": {
204
+ "type": "string"
205
+ },
206
+ "forwards": {
207
+ "type": "array",
208
+ "items": {
209
+ "type": "string"
210
+ }
211
+ }
212
+ },
213
+ "required": [
214
+ "role",
215
+ "forwards"
216
+ ],
217
+ "additionalProperties": false
218
+ }
219
+ }
220
+ },
221
+ "required": [
222
+ "action",
223
+ "current_node",
224
+ "perspective",
225
+ "operable"
226
+ ],
227
+ "additionalProperties": false
228
+ },
229
+ {
230
+ "type": "object",
231
+ "properties": {
232
+ "action": {
233
+ "type": "string",
234
+ "const": "capability_gap"
235
+ },
236
+ "demand": {
47
237
  "type": "object",
48
238
  "properties": {
49
- "action": {
239
+ "id": {
240
+ "type": "string",
241
+ "description": "Service/Demand address."
242
+ },
243
+ "kind": {
244
+ "type": "string",
245
+ "enum": [
246
+ "service",
247
+ "demand"
248
+ ],
249
+ "description": "Whether this is a service or demand."
250
+ },
251
+ "owner": {
252
+ "type": "string"
253
+ },
254
+ "industry": {
50
255
  "type": "string",
51
- "const": "node_game"
256
+ "enum": [
257
+ "freelance",
258
+ "rental",
259
+ "education",
260
+ "travel",
261
+ "subscription",
262
+ "retail",
263
+ "general",
264
+ "custom"
265
+ ],
266
+ "description": "Industry scenario."
267
+ },
268
+ "industry_confidence": {
269
+ "type": "number",
270
+ "minimum": 0,
271
+ "maximum": 1
272
+ },
273
+ "region": {
274
+ "type": "object",
275
+ "properties": {
276
+ "mode": {
277
+ "type": "string",
278
+ "enum": [
279
+ "remote",
280
+ "physical"
281
+ ]
282
+ },
283
+ "country": {
284
+ "type": "string"
285
+ },
286
+ "province": {
287
+ "type": "string"
288
+ },
289
+ "city": {
290
+ "type": "string"
291
+ },
292
+ "raw": {
293
+ "type": "string",
294
+ "description": "Original location string (for traceability)."
295
+ }
296
+ },
297
+ "required": [
298
+ "mode",
299
+ "raw"
300
+ ],
301
+ "additionalProperties": false
302
+ },
303
+ "price_min": {
304
+ "description": "Smallest-unit amount (string to avoid JSON bigint loss).",
305
+ "type": "string"
306
+ },
307
+ "price_max": {
308
+ "description": "Smallest-unit amount (string to avoid JSON bigint loss).",
309
+ "type": "string"
52
310
  },
53
- "current_node": {
311
+ "token_type": {
54
312
  "type": "string"
55
313
  },
56
- "perspective": {
314
+ "ticket_size": {
57
315
  "type": "string",
58
316
  "enum": [
59
- "customer",
60
- "operator",
61
- "observer"
317
+ "micro",
318
+ "small",
319
+ "medium",
320
+ "large"
62
321
  ]
63
322
  },
64
- "operable": {
323
+ "trust_score": {
324
+ "type": "number",
325
+ "minimum": 0,
326
+ "maximum": 100
327
+ },
328
+ "reputation_like_ratio": {
329
+ "type": "number",
330
+ "minimum": 0,
331
+ "maximum": 1
332
+ },
333
+ "arbitration_independent": {
334
+ "type": "boolean"
335
+ },
336
+ "merchant_history_count": {
337
+ "type": "integer",
338
+ "minimum": 0,
339
+ "maximum": 9007199254740991
340
+ },
341
+ "capabilities": {
342
+ "type": "object",
343
+ "properties": {
344
+ "has_arbitration": {
345
+ "type": "boolean"
346
+ },
347
+ "has_refund_path": {
348
+ "type": "boolean"
349
+ },
350
+ "has_milestone_nodes": {
351
+ "type": "boolean"
352
+ },
353
+ "has_compensation_fund": {
354
+ "type": "boolean"
355
+ },
356
+ "has_wip_verification": {
357
+ "type": "boolean"
358
+ },
359
+ "has_messenger": {
360
+ "type": "boolean"
361
+ },
362
+ "has_buy_guard": {
363
+ "type": "boolean"
364
+ },
365
+ "has_dynamic_pricing": {
366
+ "type": "boolean"
367
+ },
368
+ "is_published": {
369
+ "type": "boolean"
370
+ },
371
+ "is_paused": {
372
+ "type": "boolean"
373
+ }
374
+ },
375
+ "required": [
376
+ "has_arbitration",
377
+ "has_refund_path",
378
+ "has_milestone_nodes",
379
+ "has_compensation_fund",
380
+ "has_wip_verification",
381
+ "has_messenger",
382
+ "has_buy_guard",
383
+ "has_dynamic_pricing",
384
+ "is_published",
385
+ "is_paused"
386
+ ],
387
+ "additionalProperties": false
388
+ },
389
+ "tags": {
65
390
  "type": "array",
66
391
  "items": {
67
- "type": "object",
68
- "properties": {
69
- "name": {
70
- "type": "string",
71
- "description": "Forward (operation) name."
72
- },
73
- "to_node": {
74
- "type": "string",
75
- "description": "Target node after execution."
76
- },
77
- "execution_path": {
78
- "type": "string",
79
- "enum": [
80
- "order_holder",
81
- "permission",
82
- "named_operator",
83
- "not_available"
84
- ],
85
- "description": "How the account may execute it."
86
- },
87
- "guard": {
88
- "type": "string",
89
- "description": "Guard address gating this forward."
90
- },
91
- "consequence": {
92
- "type": "string",
93
- "description": "Consequence hint (completion/refund path)."
94
- }
95
- },
96
- "required": [
97
- "name",
98
- "to_node",
99
- "execution_path"
100
- ],
101
- "additionalProperties": false
392
+ "type": "string"
102
393
  }
103
394
  },
104
- "waiting_on": {
395
+ "keywords": {
105
396
  "type": "array",
106
397
  "items": {
107
- "type": "object",
108
- "properties": {
109
- "role": {
110
- "type": "string"
111
- },
112
- "forwards": {
113
- "type": "array",
114
- "items": {
115
- "type": "string"
116
- }
117
- }
118
- },
119
- "required": [
120
- "role",
121
- "forwards"
122
- ],
123
- "additionalProperties": false
398
+ "type": "string"
124
399
  }
125
400
  }
126
401
  },
127
402
  "required": [
128
- "action",
129
- "current_node",
130
- "perspective",
131
- "operable"
403
+ "id",
404
+ "kind",
405
+ "industry",
406
+ "region",
407
+ "capabilities"
132
408
  ],
133
409
  "additionalProperties": false
134
410
  },
135
- {
411
+ "service": {
136
412
  "type": "object",
137
413
  "properties": {
138
- "action": {
414
+ "id": {
415
+ "type": "string",
416
+ "description": "Service/Demand address."
417
+ },
418
+ "kind": {
419
+ "type": "string",
420
+ "enum": [
421
+ "service",
422
+ "demand"
423
+ ],
424
+ "description": "Whether this is a service or demand."
425
+ },
426
+ "owner": {
427
+ "type": "string"
428
+ },
429
+ "industry": {
139
430
  "type": "string",
140
- "const": "capability_gap"
431
+ "enum": [
432
+ "freelance",
433
+ "rental",
434
+ "education",
435
+ "travel",
436
+ "subscription",
437
+ "retail",
438
+ "general",
439
+ "custom"
440
+ ],
441
+ "description": "Industry scenario."
442
+ },
443
+ "industry_confidence": {
444
+ "type": "number",
445
+ "minimum": 0,
446
+ "maximum": 1
141
447
  },
142
- "demand": {
448
+ "region": {
143
449
  "type": "object",
144
450
  "properties": {
145
- "id": {
146
- "type": "string",
147
- "description": "Service/Demand address."
148
- },
149
- "kind": {
451
+ "mode": {
150
452
  "type": "string",
151
453
  "enum": [
152
- "service",
153
- "demand"
154
- ],
155
- "description": "Whether this is a service or demand."
454
+ "remote",
455
+ "physical"
456
+ ]
156
457
  },
157
- "owner": {
458
+ "country": {
158
459
  "type": "string"
159
460
  },
160
- "industry": {
161
- "type": "string",
162
- "enum": [
163
- "freelance",
164
- "rental",
165
- "education",
166
- "travel",
167
- "subscription",
168
- "retail",
169
- "general",
170
- "custom"
171
- ],
172
- "description": "Industry scenario."
173
- },
174
- "industry_confidence": {
175
- "type": "number",
176
- "minimum": 0,
177
- "maximum": 1
178
- },
179
- "region": {
180
- "type": "object",
181
- "properties": {
182
- "mode": {
183
- "type": "string",
184
- "enum": [
185
- "remote",
186
- "physical"
187
- ]
188
- },
189
- "country": {
190
- "type": "string"
191
- },
192
- "province": {
193
- "type": "string"
194
- },
195
- "city": {
196
- "type": "string"
197
- },
198
- "raw": {
199
- "type": "string",
200
- "description": "Original location string (for traceability)."
201
- }
202
- },
203
- "required": [
204
- "mode",
205
- "raw"
206
- ],
207
- "additionalProperties": false
461
+ "province": {
462
+ "type": "string"
208
463
  },
209
- "price_min": {
210
- "type": "string",
211
- "description": "Smallest-unit amount (string to avoid JSON bigint loss)."
464
+ "city": {
465
+ "type": "string"
212
466
  },
213
- "price_max": {
467
+ "raw": {
214
468
  "type": "string",
215
- "description": "Smallest-unit amount (string to avoid JSON bigint loss)."
469
+ "description": "Original location string (for traceability)."
470
+ }
471
+ },
472
+ "required": [
473
+ "mode",
474
+ "raw"
475
+ ],
476
+ "additionalProperties": false
477
+ },
478
+ "price_min": {
479
+ "description": "Smallest-unit amount (string to avoid JSON bigint loss).",
480
+ "type": "string"
481
+ },
482
+ "price_max": {
483
+ "description": "Smallest-unit amount (string to avoid JSON bigint loss).",
484
+ "type": "string"
485
+ },
486
+ "token_type": {
487
+ "type": "string"
488
+ },
489
+ "ticket_size": {
490
+ "type": "string",
491
+ "enum": [
492
+ "micro",
493
+ "small",
494
+ "medium",
495
+ "large"
496
+ ]
497
+ },
498
+ "trust_score": {
499
+ "type": "number",
500
+ "minimum": 0,
501
+ "maximum": 100
502
+ },
503
+ "reputation_like_ratio": {
504
+ "type": "number",
505
+ "minimum": 0,
506
+ "maximum": 1
507
+ },
508
+ "arbitration_independent": {
509
+ "type": "boolean"
510
+ },
511
+ "merchant_history_count": {
512
+ "type": "integer",
513
+ "minimum": 0,
514
+ "maximum": 9007199254740991
515
+ },
516
+ "capabilities": {
517
+ "type": "object",
518
+ "properties": {
519
+ "has_arbitration": {
520
+ "type": "boolean"
216
521
  },
217
- "token_type": {
218
- "type": "string"
522
+ "has_refund_path": {
523
+ "type": "boolean"
219
524
  },
220
- "ticket_size": {
221
- "type": "string",
222
- "enum": [
223
- "micro",
224
- "small",
225
- "medium",
226
- "large"
227
- ]
525
+ "has_milestone_nodes": {
526
+ "type": "boolean"
228
527
  },
229
- "trust_score": {
230
- "type": "number",
231
- "minimum": 0,
232
- "maximum": 100
528
+ "has_compensation_fund": {
529
+ "type": "boolean"
233
530
  },
234
- "reputation_like_ratio": {
235
- "type": "number",
236
- "minimum": 0,
237
- "maximum": 1
531
+ "has_wip_verification": {
532
+ "type": "boolean"
238
533
  },
239
- "arbitration_independent": {
534
+ "has_messenger": {
240
535
  "type": "boolean"
241
536
  },
242
- "merchant_history_count": {
243
- "type": "integer",
244
- "minimum": 0
537
+ "has_buy_guard": {
538
+ "type": "boolean"
245
539
  },
246
- "capabilities": {
247
- "type": "object",
248
- "properties": {
249
- "has_arbitration": {
250
- "type": "boolean"
251
- },
252
- "has_refund_path": {
253
- "type": "boolean"
254
- },
255
- "has_milestone_nodes": {
256
- "type": "boolean"
257
- },
258
- "has_compensation_fund": {
259
- "type": "boolean"
260
- },
261
- "has_wip_verification": {
262
- "type": "boolean"
263
- },
264
- "has_messenger": {
265
- "type": "boolean"
266
- },
267
- "has_buy_guard": {
268
- "type": "boolean"
269
- },
270
- "has_dynamic_pricing": {
271
- "type": "boolean"
272
- },
273
- "is_published": {
274
- "type": "boolean"
275
- },
276
- "is_paused": {
277
- "type": "boolean"
278
- }
279
- },
280
- "required": [
281
- "has_arbitration",
282
- "has_refund_path",
283
- "has_milestone_nodes",
284
- "has_compensation_fund",
285
- "has_wip_verification",
286
- "has_messenger",
287
- "has_buy_guard",
288
- "has_dynamic_pricing",
289
- "is_published",
290
- "is_paused"
291
- ],
292
- "additionalProperties": false
540
+ "has_dynamic_pricing": {
541
+ "type": "boolean"
293
542
  },
294
- "tags": {
295
- "type": "array",
296
- "items": {
297
- "type": "string"
298
- }
543
+ "is_published": {
544
+ "type": "boolean"
299
545
  },
300
- "keywords": {
301
- "type": "array",
302
- "items": {
303
- "type": "string"
304
- }
546
+ "is_paused": {
547
+ "type": "boolean"
305
548
  }
306
549
  },
307
550
  "required": [
308
- "id",
309
- "kind",
310
- "industry",
311
- "region",
312
- "capabilities"
551
+ "has_arbitration",
552
+ "has_refund_path",
553
+ "has_milestone_nodes",
554
+ "has_compensation_fund",
555
+ "has_wip_verification",
556
+ "has_messenger",
557
+ "has_buy_guard",
558
+ "has_dynamic_pricing",
559
+ "is_published",
560
+ "is_paused"
313
561
  ],
314
562
  "additionalProperties": false
315
563
  },
316
- "service": {
317
- "$ref": "#/definitions/evaluation_operation/anyOf/2/properties/demand"
318
- }
319
- },
320
- "required": [
321
- "action",
322
- "demand",
323
- "service"
324
- ],
325
- "additionalProperties": false
326
- },
327
- {
328
- "type": "object",
329
- "properties": {
330
- "action": {
331
- "type": "string",
332
- "const": "compose_service"
333
- },
334
- "demand": {
335
- "$ref": "#/definitions/evaluation_operation/anyOf/2/properties/demand"
564
+ "tags": {
565
+ "type": "array",
566
+ "items": {
567
+ "type": "string"
568
+ }
336
569
  },
337
- "services": {
570
+ "keywords": {
338
571
  "type": "array",
339
572
  "items": {
340
- "$ref": "#/definitions/evaluation_operation/anyOf/2/properties/demand"
573
+ "type": "string"
341
574
  }
342
575
  }
343
576
  },
344
577
  "required": [
345
- "action",
346
- "demand",
347
- "services"
578
+ "id",
579
+ "kind",
580
+ "industry",
581
+ "region",
582
+ "capabilities"
348
583
  ],
349
584
  "additionalProperties": false
585
+ }
586
+ },
587
+ "required": [
588
+ "action",
589
+ "demand",
590
+ "service"
591
+ ],
592
+ "additionalProperties": false
593
+ },
594
+ {
595
+ "type": "object",
596
+ "properties": {
597
+ "action": {
598
+ "type": "string",
599
+ "const": "compose_service"
350
600
  },
351
- {
601
+ "demand": {
352
602
  "type": "object",
353
603
  "properties": {
354
- "action": {
604
+ "id": {
355
605
  "type": "string",
356
- "const": "demand_match"
606
+ "description": "Service/Demand address."
357
607
  },
358
- "demand_cap": {
359
- "$ref": "#/definitions/evaluation_operation/anyOf/2/properties/demand"
608
+ "kind": {
609
+ "type": "string",
610
+ "enum": [
611
+ "service",
612
+ "demand"
613
+ ],
614
+ "description": "Whether this is a service or demand."
360
615
  },
361
- "services": {
362
- "type": "array",
363
- "items": {
364
- "type": "object",
616
+ "owner": {
617
+ "type": "string"
618
+ },
619
+ "industry": {
620
+ "type": "string",
621
+ "enum": [
622
+ "freelance",
623
+ "rental",
624
+ "education",
625
+ "travel",
626
+ "subscription",
627
+ "retail",
628
+ "general",
629
+ "custom"
630
+ ],
631
+ "description": "Industry scenario."
632
+ },
633
+ "industry_confidence": {
634
+ "type": "number",
635
+ "minimum": 0,
636
+ "maximum": 1
637
+ },
638
+ "region": {
639
+ "type": "object",
640
+ "properties": {
641
+ "mode": {
642
+ "type": "string",
643
+ "enum": [
644
+ "remote",
645
+ "physical"
646
+ ]
647
+ },
648
+ "country": {
649
+ "type": "string"
650
+ },
651
+ "province": {
652
+ "type": "string"
653
+ },
654
+ "city": {
655
+ "type": "string"
656
+ },
657
+ "raw": {
658
+ "type": "string",
659
+ "description": "Original location string (for traceability)."
660
+ }
661
+ },
662
+ "required": [
663
+ "mode",
664
+ "raw"
665
+ ],
666
+ "additionalProperties": false
667
+ },
668
+ "price_min": {
669
+ "description": "Smallest-unit amount (string to avoid JSON bigint loss).",
670
+ "type": "string"
671
+ },
672
+ "price_max": {
673
+ "description": "Smallest-unit amount (string to avoid JSON bigint loss).",
674
+ "type": "string"
675
+ },
676
+ "token_type": {
677
+ "type": "string"
678
+ },
679
+ "ticket_size": {
680
+ "type": "string",
681
+ "enum": [
682
+ "micro",
683
+ "small",
684
+ "medium",
685
+ "large"
686
+ ]
687
+ },
688
+ "trust_score": {
689
+ "type": "number",
690
+ "minimum": 0,
691
+ "maximum": 100
692
+ },
693
+ "reputation_like_ratio": {
694
+ "type": "number",
695
+ "minimum": 0,
696
+ "maximum": 1
697
+ },
698
+ "arbitration_independent": {
699
+ "type": "boolean"
700
+ },
701
+ "merchant_history_count": {
702
+ "type": "integer",
703
+ "minimum": 0,
704
+ "maximum": 9007199254740991
705
+ },
706
+ "capabilities": {
707
+ "type": "object",
708
+ "properties": {
709
+ "has_arbitration": {
710
+ "type": "boolean"
711
+ },
712
+ "has_refund_path": {
713
+ "type": "boolean"
714
+ },
715
+ "has_milestone_nodes": {
716
+ "type": "boolean"
717
+ },
718
+ "has_compensation_fund": {
719
+ "type": "boolean"
720
+ },
721
+ "has_wip_verification": {
722
+ "type": "boolean"
723
+ },
724
+ "has_messenger": {
725
+ "type": "boolean"
726
+ },
727
+ "has_buy_guard": {
728
+ "type": "boolean"
729
+ },
730
+ "has_dynamic_pricing": {
731
+ "type": "boolean"
732
+ },
733
+ "is_published": {
734
+ "type": "boolean"
735
+ },
736
+ "is_paused": {
737
+ "type": "boolean"
738
+ }
739
+ },
740
+ "required": [
741
+ "has_arbitration",
742
+ "has_refund_path",
743
+ "has_milestone_nodes",
744
+ "has_compensation_fund",
745
+ "has_wip_verification",
746
+ "has_messenger",
747
+ "has_buy_guard",
748
+ "has_dynamic_pricing",
749
+ "is_published",
750
+ "is_paused"
751
+ ],
752
+ "additionalProperties": false
753
+ },
754
+ "tags": {
755
+ "type": "array",
756
+ "items": {
757
+ "type": "string"
758
+ }
759
+ },
760
+ "keywords": {
761
+ "type": "array",
762
+ "items": {
763
+ "type": "string"
764
+ }
765
+ }
766
+ },
767
+ "required": [
768
+ "id",
769
+ "kind",
770
+ "industry",
771
+ "region",
772
+ "capabilities"
773
+ ],
774
+ "additionalProperties": false
775
+ },
776
+ "services": {
777
+ "type": "array",
778
+ "items": {
779
+ "type": "object",
780
+ "properties": {
781
+ "id": {
782
+ "type": "string",
783
+ "description": "Service/Demand address."
784
+ },
785
+ "kind": {
786
+ "type": "string",
787
+ "enum": [
788
+ "service",
789
+ "demand"
790
+ ],
791
+ "description": "Whether this is a service or demand."
792
+ },
793
+ "owner": {
794
+ "type": "string"
795
+ },
796
+ "industry": {
797
+ "type": "string",
798
+ "enum": [
799
+ "freelance",
800
+ "rental",
801
+ "education",
802
+ "travel",
803
+ "subscription",
804
+ "retail",
805
+ "general",
806
+ "custom"
807
+ ],
808
+ "description": "Industry scenario."
809
+ },
810
+ "industry_confidence": {
811
+ "type": "number",
812
+ "minimum": 0,
813
+ "maximum": 1
814
+ },
815
+ "region": {
816
+ "type": "object",
365
817
  "properties": {
366
- "object": {
818
+ "mode": {
367
819
  "type": "string",
368
- "description": "Service object address."
820
+ "enum": [
821
+ "remote",
822
+ "physical"
823
+ ]
369
824
  },
370
- "description": {
825
+ "country": {
371
826
  "type": "string"
372
827
  },
373
- "location": {
828
+ "province": {
374
829
  "type": "string"
375
830
  },
376
- "sales": {
377
- "type": "array",
378
- "items": {
379
- "type": "object",
380
- "properties": {
381
- "name": {
382
- "type": "string"
383
- },
384
- "price": {
385
- "type": "string",
386
- "description": "Smallest-unit amount (string)."
387
- },
388
- "wip_hash": {
389
- "type": "string"
390
- }
391
- },
392
- "required": [
393
- "price"
394
- ],
395
- "additionalProperties": false
396
- }
397
- },
398
- "arbitrations": {
399
- "type": "array",
400
- "items": {
401
- "type": "string"
402
- }
831
+ "city": {
832
+ "type": "string"
403
833
  },
404
- "compensation_fund": {
834
+ "raw": {
405
835
  "type": "string",
406
- "description": "Smallest-unit amount (string)."
836
+ "description": "Original location string (for traceability)."
837
+ }
838
+ },
839
+ "required": [
840
+ "mode",
841
+ "raw"
842
+ ],
843
+ "additionalProperties": false
844
+ },
845
+ "price_min": {
846
+ "description": "Smallest-unit amount (string to avoid JSON bigint loss).",
847
+ "type": "string"
848
+ },
849
+ "price_max": {
850
+ "description": "Smallest-unit amount (string to avoid JSON bigint loss).",
851
+ "type": "string"
852
+ },
853
+ "token_type": {
854
+ "type": "string"
855
+ },
856
+ "ticket_size": {
857
+ "type": "string",
858
+ "enum": [
859
+ "micro",
860
+ "small",
861
+ "medium",
862
+ "large"
863
+ ]
864
+ },
865
+ "trust_score": {
866
+ "type": "number",
867
+ "minimum": 0,
868
+ "maximum": 100
869
+ },
870
+ "reputation_like_ratio": {
871
+ "type": "number",
872
+ "minimum": 0,
873
+ "maximum": 1
874
+ },
875
+ "arbitration_independent": {
876
+ "type": "boolean"
877
+ },
878
+ "merchant_history_count": {
879
+ "type": "integer",
880
+ "minimum": 0,
881
+ "maximum": 9007199254740991
882
+ },
883
+ "capabilities": {
884
+ "type": "object",
885
+ "properties": {
886
+ "has_arbitration": {
887
+ "type": "boolean"
407
888
  },
408
- "buy_guard": {
409
- "type": [
410
- "string",
411
- "null"
412
- ]
889
+ "has_refund_path": {
890
+ "type": "boolean"
413
891
  },
414
- "machine": {
415
- "type": [
416
- "string",
417
- "null"
418
- ]
892
+ "has_milestone_nodes": {
893
+ "type": "boolean"
419
894
  },
420
- "um": {
421
- "type": [
422
- "string",
423
- "null"
424
- ]
895
+ "has_compensation_fund": {
896
+ "type": "boolean"
425
897
  },
426
- "bPublished": {
898
+ "has_wip_verification": {
427
899
  "type": "boolean"
428
900
  },
429
- "bPaused": {
901
+ "has_messenger": {
430
902
  "type": "boolean"
431
903
  },
432
- "owner": {
433
- "type": "string"
904
+ "has_buy_guard": {
905
+ "type": "boolean"
906
+ },
907
+ "has_dynamic_pricing": {
908
+ "type": "boolean"
909
+ },
910
+ "is_published": {
911
+ "type": "boolean"
912
+ },
913
+ "is_paused": {
914
+ "type": "boolean"
434
915
  }
435
916
  },
436
917
  "required": [
437
- "object",
438
- "description",
439
- "location"
918
+ "has_arbitration",
919
+ "has_refund_path",
920
+ "has_milestone_nodes",
921
+ "has_compensation_fund",
922
+ "has_wip_verification",
923
+ "has_messenger",
924
+ "has_buy_guard",
925
+ "has_dynamic_pricing",
926
+ "is_published",
927
+ "is_paused"
440
928
  ],
441
929
  "additionalProperties": false
930
+ },
931
+ "tags": {
932
+ "type": "array",
933
+ "items": {
934
+ "type": "string"
935
+ }
936
+ },
937
+ "keywords": {
938
+ "type": "array",
939
+ "items": {
940
+ "type": "string"
941
+ }
442
942
  }
443
943
  },
444
- "injection": {
944
+ "required": [
945
+ "id",
946
+ "kind",
947
+ "industry",
948
+ "region",
949
+ "capabilities"
950
+ ],
951
+ "additionalProperties": false
952
+ }
953
+ }
954
+ },
955
+ "required": [
956
+ "action",
957
+ "demand",
958
+ "services"
959
+ ],
960
+ "additionalProperties": false
961
+ },
962
+ {
963
+ "type": "object",
964
+ "properties": {
965
+ "action": {
966
+ "type": "string",
967
+ "const": "demand_match"
968
+ },
969
+ "demand_cap": {
970
+ "type": "object",
971
+ "properties": {
972
+ "id": {
973
+ "type": "string",
974
+ "description": "Service/Demand address."
975
+ },
976
+ "kind": {
977
+ "type": "string",
978
+ "enum": [
979
+ "service",
980
+ "demand"
981
+ ],
982
+ "description": "Whether this is a service or demand."
983
+ },
984
+ "owner": {
985
+ "type": "string"
986
+ },
987
+ "industry": {
988
+ "type": "string",
989
+ "enum": [
990
+ "freelance",
991
+ "rental",
992
+ "education",
993
+ "travel",
994
+ "subscription",
995
+ "retail",
996
+ "general",
997
+ "custom"
998
+ ],
999
+ "description": "Industry scenario."
1000
+ },
1001
+ "industry_confidence": {
1002
+ "type": "number",
1003
+ "minimum": 0,
1004
+ "maximum": 1
1005
+ },
1006
+ "region": {
445
1007
  "type": "object",
446
1008
  "properties": {
447
- "intent": {
1009
+ "mode": {
448
1010
  "type": "string",
449
- "description": "Free-text intent."
1011
+ "enum": [
1012
+ "remote",
1013
+ "physical"
1014
+ ]
450
1015
  },
451
- "preferences": {
452
- "type": "object",
453
- "additionalProperties": {}
1016
+ "country": {
1017
+ "type": "string"
454
1018
  },
455
- "requirements": {
456
- "type": "array",
457
- "items": {
458
- "type": "object",
459
- "properties": {
460
- "rule_id": {
461
- "type": "string"
462
- },
463
- "condition": {
464
- "type": "string",
465
- "enum": [
466
- "require",
467
- "forbid"
468
- ]
469
- },
470
- "note": {
471
- "type": "string"
472
- }
473
- },
474
- "required": [
475
- "rule_id",
476
- "condition"
477
- ],
478
- "additionalProperties": false
479
- },
480
- "description": "Hard red lines (block when violated)."
1019
+ "province": {
1020
+ "type": "string"
1021
+ },
1022
+ "city": {
1023
+ "type": "string"
1024
+ },
1025
+ "raw": {
1026
+ "type": "string",
1027
+ "description": "Original location string (for traceability)."
1028
+ }
1029
+ },
1030
+ "required": [
1031
+ "mode",
1032
+ "raw"
1033
+ ],
1034
+ "additionalProperties": false
1035
+ },
1036
+ "price_min": {
1037
+ "description": "Smallest-unit amount (string to avoid JSON bigint loss).",
1038
+ "type": "string"
1039
+ },
1040
+ "price_max": {
1041
+ "description": "Smallest-unit amount (string to avoid JSON bigint loss).",
1042
+ "type": "string"
1043
+ },
1044
+ "token_type": {
1045
+ "type": "string"
1046
+ },
1047
+ "ticket_size": {
1048
+ "type": "string",
1049
+ "enum": [
1050
+ "micro",
1051
+ "small",
1052
+ "medium",
1053
+ "large"
1054
+ ]
1055
+ },
1056
+ "trust_score": {
1057
+ "type": "number",
1058
+ "minimum": 0,
1059
+ "maximum": 100
1060
+ },
1061
+ "reputation_like_ratio": {
1062
+ "type": "number",
1063
+ "minimum": 0,
1064
+ "maximum": 1
1065
+ },
1066
+ "arbitration_independent": {
1067
+ "type": "boolean"
1068
+ },
1069
+ "merchant_history_count": {
1070
+ "type": "integer",
1071
+ "minimum": 0,
1072
+ "maximum": 9007199254740991
1073
+ },
1074
+ "capabilities": {
1075
+ "type": "object",
1076
+ "properties": {
1077
+ "has_arbitration": {
1078
+ "type": "boolean"
1079
+ },
1080
+ "has_refund_path": {
1081
+ "type": "boolean"
1082
+ },
1083
+ "has_milestone_nodes": {
1084
+ "type": "boolean"
1085
+ },
1086
+ "has_compensation_fund": {
1087
+ "type": "boolean"
1088
+ },
1089
+ "has_wip_verification": {
1090
+ "type": "boolean"
1091
+ },
1092
+ "has_messenger": {
1093
+ "type": "boolean"
1094
+ },
1095
+ "has_buy_guard": {
1096
+ "type": "boolean"
1097
+ },
1098
+ "has_dynamic_pricing": {
1099
+ "type": "boolean"
1100
+ },
1101
+ "is_published": {
1102
+ "type": "boolean"
481
1103
  },
482
- "overrides": {
1104
+ "is_paused": {
1105
+ "type": "boolean"
1106
+ }
1107
+ },
1108
+ "required": [
1109
+ "has_arbitration",
1110
+ "has_refund_path",
1111
+ "has_milestone_nodes",
1112
+ "has_compensation_fund",
1113
+ "has_wip_verification",
1114
+ "has_messenger",
1115
+ "has_buy_guard",
1116
+ "has_dynamic_pricing",
1117
+ "is_published",
1118
+ "is_paused"
1119
+ ],
1120
+ "additionalProperties": false
1121
+ },
1122
+ "tags": {
1123
+ "type": "array",
1124
+ "items": {
1125
+ "type": "string"
1126
+ }
1127
+ },
1128
+ "keywords": {
1129
+ "type": "array",
1130
+ "items": {
1131
+ "type": "string"
1132
+ }
1133
+ }
1134
+ },
1135
+ "required": [
1136
+ "id",
1137
+ "kind",
1138
+ "industry",
1139
+ "region",
1140
+ "capabilities"
1141
+ ],
1142
+ "additionalProperties": false
1143
+ },
1144
+ "services": {
1145
+ "type": "array",
1146
+ "items": {
1147
+ "type": "object",
1148
+ "properties": {
1149
+ "object": {
1150
+ "type": "string",
1151
+ "description": "Service object address."
1152
+ },
1153
+ "description": {
1154
+ "type": "string"
1155
+ },
1156
+ "location": {
1157
+ "type": "string"
1158
+ },
1159
+ "sales": {
1160
+ "type": "array",
1161
+ "items": {
483
1162
  "type": "object",
484
1163
  "properties": {
485
- "rules": {
486
- "type": "object",
487
- "additionalProperties": {
488
- "type": "object",
489
- "properties": {
490
- "enabled": {
491
- "type": "boolean"
492
- },
493
- "weight": {
494
- "type": "number"
495
- }
496
- },
497
- "additionalProperties": false
498
- }
499
- },
500
- "data_sources": {
1164
+ "name": {
1165
+ "type": "string"
1166
+ },
1167
+ "price": {
1168
+ "type": "string",
1169
+ "description": "Smallest-unit amount (string)."
1170
+ },
1171
+ "wip_hash": {
1172
+ "type": "string"
1173
+ }
1174
+ },
1175
+ "required": [
1176
+ "price"
1177
+ ],
1178
+ "additionalProperties": false
1179
+ }
1180
+ },
1181
+ "arbitrations": {
1182
+ "type": "array",
1183
+ "items": {
1184
+ "type": "string"
1185
+ }
1186
+ },
1187
+ "compensation_fund": {
1188
+ "description": "Smallest-unit amount (string).",
1189
+ "type": "string"
1190
+ },
1191
+ "buy_guard": {
1192
+ "anyOf": [
1193
+ {
1194
+ "type": "string"
1195
+ },
1196
+ {
1197
+ "type": "null"
1198
+ }
1199
+ ]
1200
+ },
1201
+ "machine": {
1202
+ "anyOf": [
1203
+ {
1204
+ "type": "string"
1205
+ },
1206
+ {
1207
+ "type": "null"
1208
+ }
1209
+ ]
1210
+ },
1211
+ "um": {
1212
+ "anyOf": [
1213
+ {
1214
+ "type": "string"
1215
+ },
1216
+ {
1217
+ "type": "null"
1218
+ }
1219
+ ]
1220
+ },
1221
+ "bPublished": {
1222
+ "type": "boolean"
1223
+ },
1224
+ "bPaused": {
1225
+ "type": "boolean"
1226
+ },
1227
+ "owner": {
1228
+ "type": "string"
1229
+ }
1230
+ },
1231
+ "required": [
1232
+ "object",
1233
+ "description",
1234
+ "location"
1235
+ ],
1236
+ "additionalProperties": false
1237
+ }
1238
+ },
1239
+ "injection": {
1240
+ "type": "object",
1241
+ "properties": {
1242
+ "intent": {
1243
+ "description": "Free-text intent.",
1244
+ "type": "string"
1245
+ },
1246
+ "preferences": {
1247
+ "type": "object",
1248
+ "propertyNames": {
1249
+ "type": "string"
1250
+ },
1251
+ "additionalProperties": {}
1252
+ },
1253
+ "requirements": {
1254
+ "description": "Hard red lines (block when violated).",
1255
+ "type": "array",
1256
+ "items": {
1257
+ "type": "object",
1258
+ "properties": {
1259
+ "rule_id": {
1260
+ "type": "string"
1261
+ },
1262
+ "condition": {
1263
+ "type": "string",
1264
+ "enum": [
1265
+ "require",
1266
+ "forbid"
1267
+ ]
1268
+ },
1269
+ "note": {
1270
+ "type": "string"
1271
+ }
1272
+ },
1273
+ "required": [
1274
+ "rule_id",
1275
+ "condition"
1276
+ ],
1277
+ "additionalProperties": false
1278
+ }
1279
+ },
1280
+ "overrides": {
1281
+ "description": "Enable/disable/reweight rules and data sources.",
1282
+ "type": "object",
1283
+ "properties": {
1284
+ "rules": {
1285
+ "type": "object",
1286
+ "propertyNames": {
1287
+ "type": "string"
1288
+ },
1289
+ "additionalProperties": {
1290
+ "type": "object",
1291
+ "properties": {
1292
+ "enabled": {
1293
+ "type": "boolean"
1294
+ },
1295
+ "weight": {
1296
+ "type": "number"
1297
+ }
1298
+ },
1299
+ "additionalProperties": false
1300
+ }
1301
+ },
1302
+ "data_sources": {
1303
+ "type": "object",
1304
+ "propertyNames": {
1305
+ "type": "string"
1306
+ },
1307
+ "additionalProperties": {
1308
+ "type": "object",
1309
+ "properties": {
1310
+ "enabled": {
1311
+ "type": "boolean"
1312
+ }
1313
+ },
1314
+ "additionalProperties": false
1315
+ }
1316
+ }
1317
+ },
1318
+ "additionalProperties": false
1319
+ }
1320
+ },
1321
+ "additionalProperties": false
1322
+ },
1323
+ "account": {
1324
+ "description": "Account address; its persona is auto-applied as the base injection (explicit injection overrides).",
1325
+ "type": "string"
1326
+ }
1327
+ },
1328
+ "required": [
1329
+ "action",
1330
+ "demand_cap",
1331
+ "services"
1332
+ ],
1333
+ "additionalProperties": false
1334
+ },
1335
+ {
1336
+ "type": "object",
1337
+ "properties": {
1338
+ "action": {
1339
+ "type": "string",
1340
+ "const": "service_match"
1341
+ },
1342
+ "service_cap": {
1343
+ "type": "object",
1344
+ "properties": {
1345
+ "id": {
1346
+ "type": "string",
1347
+ "description": "Service/Demand address."
1348
+ },
1349
+ "kind": {
1350
+ "type": "string",
1351
+ "enum": [
1352
+ "service",
1353
+ "demand"
1354
+ ],
1355
+ "description": "Whether this is a service or demand."
1356
+ },
1357
+ "owner": {
1358
+ "type": "string"
1359
+ },
1360
+ "industry": {
1361
+ "type": "string",
1362
+ "enum": [
1363
+ "freelance",
1364
+ "rental",
1365
+ "education",
1366
+ "travel",
1367
+ "subscription",
1368
+ "retail",
1369
+ "general",
1370
+ "custom"
1371
+ ],
1372
+ "description": "Industry scenario."
1373
+ },
1374
+ "industry_confidence": {
1375
+ "type": "number",
1376
+ "minimum": 0,
1377
+ "maximum": 1
1378
+ },
1379
+ "region": {
1380
+ "type": "object",
1381
+ "properties": {
1382
+ "mode": {
1383
+ "type": "string",
1384
+ "enum": [
1385
+ "remote",
1386
+ "physical"
1387
+ ]
1388
+ },
1389
+ "country": {
1390
+ "type": "string"
1391
+ },
1392
+ "province": {
1393
+ "type": "string"
1394
+ },
1395
+ "city": {
1396
+ "type": "string"
1397
+ },
1398
+ "raw": {
1399
+ "type": "string",
1400
+ "description": "Original location string (for traceability)."
1401
+ }
1402
+ },
1403
+ "required": [
1404
+ "mode",
1405
+ "raw"
1406
+ ],
1407
+ "additionalProperties": false
1408
+ },
1409
+ "price_min": {
1410
+ "description": "Smallest-unit amount (string to avoid JSON bigint loss).",
1411
+ "type": "string"
1412
+ },
1413
+ "price_max": {
1414
+ "description": "Smallest-unit amount (string to avoid JSON bigint loss).",
1415
+ "type": "string"
1416
+ },
1417
+ "token_type": {
1418
+ "type": "string"
1419
+ },
1420
+ "ticket_size": {
1421
+ "type": "string",
1422
+ "enum": [
1423
+ "micro",
1424
+ "small",
1425
+ "medium",
1426
+ "large"
1427
+ ]
1428
+ },
1429
+ "trust_score": {
1430
+ "type": "number",
1431
+ "minimum": 0,
1432
+ "maximum": 100
1433
+ },
1434
+ "reputation_like_ratio": {
1435
+ "type": "number",
1436
+ "minimum": 0,
1437
+ "maximum": 1
1438
+ },
1439
+ "arbitration_independent": {
1440
+ "type": "boolean"
1441
+ },
1442
+ "merchant_history_count": {
1443
+ "type": "integer",
1444
+ "minimum": 0,
1445
+ "maximum": 9007199254740991
1446
+ },
1447
+ "capabilities": {
1448
+ "type": "object",
1449
+ "properties": {
1450
+ "has_arbitration": {
1451
+ "type": "boolean"
1452
+ },
1453
+ "has_refund_path": {
1454
+ "type": "boolean"
1455
+ },
1456
+ "has_milestone_nodes": {
1457
+ "type": "boolean"
1458
+ },
1459
+ "has_compensation_fund": {
1460
+ "type": "boolean"
1461
+ },
1462
+ "has_wip_verification": {
1463
+ "type": "boolean"
1464
+ },
1465
+ "has_messenger": {
1466
+ "type": "boolean"
1467
+ },
1468
+ "has_buy_guard": {
1469
+ "type": "boolean"
1470
+ },
1471
+ "has_dynamic_pricing": {
1472
+ "type": "boolean"
1473
+ },
1474
+ "is_published": {
1475
+ "type": "boolean"
1476
+ },
1477
+ "is_paused": {
1478
+ "type": "boolean"
1479
+ }
1480
+ },
1481
+ "required": [
1482
+ "has_arbitration",
1483
+ "has_refund_path",
1484
+ "has_milestone_nodes",
1485
+ "has_compensation_fund",
1486
+ "has_wip_verification",
1487
+ "has_messenger",
1488
+ "has_buy_guard",
1489
+ "has_dynamic_pricing",
1490
+ "is_published",
1491
+ "is_paused"
1492
+ ],
1493
+ "additionalProperties": false
1494
+ },
1495
+ "tags": {
1496
+ "type": "array",
1497
+ "items": {
1498
+ "type": "string"
1499
+ }
1500
+ },
1501
+ "keywords": {
1502
+ "type": "array",
1503
+ "items": {
1504
+ "type": "string"
1505
+ }
1506
+ }
1507
+ },
1508
+ "required": [
1509
+ "id",
1510
+ "kind",
1511
+ "industry",
1512
+ "region",
1513
+ "capabilities"
1514
+ ],
1515
+ "additionalProperties": false
1516
+ },
1517
+ "demands": {
1518
+ "type": "array",
1519
+ "items": {
1520
+ "type": "object",
1521
+ "properties": {
1522
+ "object": {
1523
+ "type": "string",
1524
+ "description": "Demand object address."
1525
+ },
1526
+ "description": {
1527
+ "type": "string"
1528
+ },
1529
+ "location": {
1530
+ "type": "string"
1531
+ },
1532
+ "rewards": {
1533
+ "type": "array",
1534
+ "items": {
1535
+ "type": "string"
1536
+ }
1537
+ },
1538
+ "um": {
1539
+ "anyOf": [
1540
+ {
1541
+ "type": "string"
1542
+ },
1543
+ {
1544
+ "type": "null"
1545
+ }
1546
+ ]
1547
+ },
1548
+ "owner": {
1549
+ "type": "string"
1550
+ }
1551
+ },
1552
+ "required": [
1553
+ "object",
1554
+ "description",
1555
+ "location"
1556
+ ],
1557
+ "additionalProperties": false
1558
+ }
1559
+ },
1560
+ "injection": {
1561
+ "type": "object",
1562
+ "properties": {
1563
+ "intent": {
1564
+ "description": "Free-text intent.",
1565
+ "type": "string"
1566
+ },
1567
+ "preferences": {
1568
+ "type": "object",
1569
+ "propertyNames": {
1570
+ "type": "string"
1571
+ },
1572
+ "additionalProperties": {}
1573
+ },
1574
+ "requirements": {
1575
+ "description": "Hard red lines (block when violated).",
1576
+ "type": "array",
1577
+ "items": {
1578
+ "type": "object",
1579
+ "properties": {
1580
+ "rule_id": {
1581
+ "type": "string"
1582
+ },
1583
+ "condition": {
1584
+ "type": "string",
1585
+ "enum": [
1586
+ "require",
1587
+ "forbid"
1588
+ ]
1589
+ },
1590
+ "note": {
1591
+ "type": "string"
1592
+ }
1593
+ },
1594
+ "required": [
1595
+ "rule_id",
1596
+ "condition"
1597
+ ],
1598
+ "additionalProperties": false
1599
+ }
1600
+ },
1601
+ "overrides": {
1602
+ "description": "Enable/disable/reweight rules and data sources.",
1603
+ "type": "object",
1604
+ "properties": {
1605
+ "rules": {
1606
+ "type": "object",
1607
+ "propertyNames": {
1608
+ "type": "string"
1609
+ },
1610
+ "additionalProperties": {
1611
+ "type": "object",
1612
+ "properties": {
1613
+ "enabled": {
1614
+ "type": "boolean"
1615
+ },
1616
+ "weight": {
1617
+ "type": "number"
1618
+ }
1619
+ },
1620
+ "additionalProperties": false
1621
+ }
1622
+ },
1623
+ "data_sources": {
1624
+ "type": "object",
1625
+ "propertyNames": {
1626
+ "type": "string"
1627
+ },
1628
+ "additionalProperties": {
1629
+ "type": "object",
1630
+ "properties": {
1631
+ "enabled": {
1632
+ "type": "boolean"
1633
+ }
1634
+ },
1635
+ "additionalProperties": false
1636
+ }
1637
+ }
1638
+ },
1639
+ "additionalProperties": false
1640
+ }
1641
+ },
1642
+ "additionalProperties": false
1643
+ },
1644
+ "account": {
1645
+ "description": "Account address; its persona is auto-applied as the base injection.",
1646
+ "type": "string"
1647
+ }
1648
+ },
1649
+ "required": [
1650
+ "action",
1651
+ "service_cap",
1652
+ "demands"
1653
+ ],
1654
+ "additionalProperties": false
1655
+ },
1656
+ {
1657
+ "type": "object",
1658
+ "properties": {
1659
+ "action": {
1660
+ "type": "string",
1661
+ "const": "service_risk"
1662
+ },
1663
+ "service_id": {
1664
+ "type": "string",
1665
+ "description": "Service object address or LocalMark name."
1666
+ },
1667
+ "puzzle_raw": {
1668
+ "type": "object",
1669
+ "properties": {
1670
+ "service": {
1671
+ "type": "object",
1672
+ "properties": {
1673
+ "name": {
1674
+ "type": "string"
1675
+ },
1676
+ "bPublished": {
1677
+ "type": "boolean"
1678
+ },
1679
+ "bPaused": {
1680
+ "type": "boolean"
1681
+ },
1682
+ "price": {
1683
+ "type": "string"
1684
+ },
1685
+ "priceRaw": {
1686
+ "description": "Smallest-unit amount (string).",
1687
+ "type": "string"
1688
+ },
1689
+ "token_type": {
1690
+ "type": "string"
1691
+ },
1692
+ "sales": {
1693
+ "type": "array",
1694
+ "items": {
1695
+ "type": "object",
1696
+ "properties": {
1697
+ "suspension": {
1698
+ "type": "boolean"
1699
+ },
1700
+ "wip_url": {
1701
+ "type": "string"
1702
+ },
1703
+ "wip_hash": {
1704
+ "type": "string"
1705
+ }
1706
+ },
1707
+ "additionalProperties": false
1708
+ }
1709
+ },
1710
+ "machine": {
1711
+ "type": "string"
1712
+ },
1713
+ "buy_guard": {
1714
+ "type": "string"
1715
+ },
1716
+ "customer_required": {
1717
+ "type": "array",
1718
+ "items": {}
1719
+ },
1720
+ "arbitrations": {
1721
+ "type": "array",
1722
+ "items": {
1723
+ "type": "string"
1724
+ }
1725
+ },
1726
+ "compensation_fund": {
1727
+ "type": "object",
1728
+ "properties": {
1729
+ "balance": {
1730
+ "description": "Smallest-unit amount (string).",
1731
+ "type": "string"
1732
+ }
1733
+ },
1734
+ "additionalProperties": false
1735
+ },
1736
+ "compensation_lock_duration": {
1737
+ "type": "number"
1738
+ },
1739
+ "um": {
1740
+ "type": "string"
1741
+ }
1742
+ },
1743
+ "additionalProperties": false
1744
+ },
1745
+ "machine_nodes": {
1746
+ "type": "array",
1747
+ "items": {
1748
+ "type": "object",
1749
+ "properties": {
1750
+ "name": {
1751
+ "type": "string"
1752
+ },
1753
+ "forwards": {
1754
+ "type": "array",
1755
+ "items": {
501
1756
  "type": "object",
502
- "additionalProperties": {
1757
+ "properties": {
1758
+ "name": {
1759
+ "type": "string"
1760
+ },
1761
+ "weight": {
1762
+ "type": "number"
1763
+ },
1764
+ "namedOperator": {
1765
+ "anyOf": [
1766
+ {
1767
+ "type": "string"
1768
+ },
1769
+ {
1770
+ "type": "null"
1771
+ }
1772
+ ]
1773
+ },
1774
+ "guard": {
1775
+ "anyOf": [
1776
+ {
1777
+ "type": "string"
1778
+ },
1779
+ {
1780
+ "type": "null"
1781
+ }
1782
+ ]
1783
+ },
1784
+ "to": {
1785
+ "type": "string"
1786
+ }
1787
+ },
1788
+ "additionalProperties": false
1789
+ }
1790
+ },
1791
+ "is_pair_done": {
1792
+ "type": "boolean"
1793
+ }
1794
+ },
1795
+ "required": [
1796
+ "name"
1797
+ ],
1798
+ "additionalProperties": false
1799
+ }
1800
+ },
1801
+ "machine_published": {
1802
+ "type": "boolean"
1803
+ },
1804
+ "machine_paused": {
1805
+ "type": "boolean"
1806
+ },
1807
+ "reviews": {
1808
+ "type": "array",
1809
+ "items": {
1810
+ "type": "object",
1811
+ "properties": {
1812
+ "rating": {
1813
+ "type": "string"
1814
+ },
1815
+ "reviewer": {
1816
+ "type": "string"
1817
+ },
1818
+ "verified": {
1819
+ "type": "boolean"
1820
+ },
1821
+ "has_evidence": {
1822
+ "type": "boolean"
1823
+ },
1824
+ "timestamp": {
1825
+ "type": "number"
1826
+ }
1827
+ },
1828
+ "additionalProperties": false
1829
+ }
1830
+ },
1831
+ "events": {
1832
+ "type": "array",
1833
+ "items": {
1834
+ "type": "object",
1835
+ "properties": {
1836
+ "type": {
1837
+ "type": "string"
1838
+ },
1839
+ "timestamp": {
1840
+ "type": "number"
1841
+ },
1842
+ "address": {
1843
+ "type": "string"
1844
+ },
1845
+ "data": {
1846
+ "type": "object",
1847
+ "propertyNames": {
1848
+ "type": "string"
1849
+ },
1850
+ "additionalProperties": {}
1851
+ }
1852
+ },
1853
+ "required": [
1854
+ "type"
1855
+ ],
1856
+ "additionalProperties": false
1857
+ }
1858
+ },
1859
+ "similar_services": {
1860
+ "type": "array",
1861
+ "items": {
1862
+ "type": "object",
1863
+ "properties": {
1864
+ "price": {
1865
+ "type": "string"
1866
+ }
1867
+ },
1868
+ "required": [
1869
+ "price"
1870
+ ],
1871
+ "additionalProperties": false
1872
+ }
1873
+ },
1874
+ "order_amount": {
1875
+ "description": "Smallest-unit amount (string).",
1876
+ "type": "string"
1877
+ },
1878
+ "trust_score": {
1879
+ "type": "object",
1880
+ "properties": {
1881
+ "score": {
1882
+ "type": "number"
1883
+ },
1884
+ "level": {
1885
+ "type": "string"
1886
+ }
1887
+ },
1888
+ "required": [
1889
+ "score",
1890
+ "level"
1891
+ ],
1892
+ "additionalProperties": false
1893
+ },
1894
+ "arbitration_owner": {
1895
+ "type": "string"
1896
+ },
1897
+ "service_owner": {
1898
+ "type": "string"
1899
+ },
1900
+ "wip_verified": {
1901
+ "type": "boolean"
1902
+ },
1903
+ "order_history": {
1904
+ "type": "array",
1905
+ "items": {
1906
+ "type": "object",
1907
+ "properties": {
1908
+ "status": {
1909
+ "type": "string"
1910
+ },
1911
+ "has_dispute": {
1912
+ "type": "boolean"
1913
+ },
1914
+ "is_repeat": {
1915
+ "type": "boolean"
1916
+ }
1917
+ },
1918
+ "required": [
1919
+ "status",
1920
+ "has_dispute",
1921
+ "is_repeat"
1922
+ ],
1923
+ "additionalProperties": false
1924
+ }
1925
+ },
1926
+ "merchant_reputation": {
1927
+ "type": "object",
1928
+ "properties": {
1929
+ "likes": {
1930
+ "type": "number"
1931
+ },
1932
+ "dislikes": {
1933
+ "type": "number"
1934
+ }
1935
+ },
1936
+ "required": [
1937
+ "likes",
1938
+ "dislikes"
1939
+ ],
1940
+ "additionalProperties": false
1941
+ }
1942
+ },
1943
+ "required": [
1944
+ "service"
1945
+ ],
1946
+ "additionalProperties": false
1947
+ },
1948
+ "injection": {
1949
+ "type": "object",
1950
+ "properties": {
1951
+ "intent": {
1952
+ "description": "Free-text intent.",
1953
+ "type": "string"
1954
+ },
1955
+ "preferences": {
1956
+ "type": "object",
1957
+ "propertyNames": {
1958
+ "type": "string"
1959
+ },
1960
+ "additionalProperties": {}
1961
+ },
1962
+ "requirements": {
1963
+ "description": "Hard red lines (block when violated).",
1964
+ "type": "array",
1965
+ "items": {
1966
+ "type": "object",
1967
+ "properties": {
1968
+ "rule_id": {
1969
+ "type": "string"
1970
+ },
1971
+ "condition": {
1972
+ "type": "string",
1973
+ "enum": [
1974
+ "require",
1975
+ "forbid"
1976
+ ]
1977
+ },
1978
+ "note": {
1979
+ "type": "string"
1980
+ }
1981
+ },
1982
+ "required": [
1983
+ "rule_id",
1984
+ "condition"
1985
+ ],
1986
+ "additionalProperties": false
1987
+ }
1988
+ },
1989
+ "overrides": {
1990
+ "description": "Enable/disable/reweight rules and data sources.",
1991
+ "type": "object",
1992
+ "properties": {
1993
+ "rules": {
1994
+ "type": "object",
1995
+ "propertyNames": {
1996
+ "type": "string"
1997
+ },
1998
+ "additionalProperties": {
1999
+ "type": "object",
2000
+ "properties": {
2001
+ "enabled": {
2002
+ "type": "boolean"
2003
+ },
2004
+ "weight": {
2005
+ "type": "number"
2006
+ }
2007
+ },
2008
+ "additionalProperties": false
2009
+ }
2010
+ },
2011
+ "data_sources": {
2012
+ "type": "object",
2013
+ "propertyNames": {
2014
+ "type": "string"
2015
+ },
2016
+ "additionalProperties": {
2017
+ "type": "object",
2018
+ "properties": {
2019
+ "enabled": {
2020
+ "type": "boolean"
2021
+ }
2022
+ },
2023
+ "additionalProperties": false
2024
+ }
2025
+ }
2026
+ },
2027
+ "additionalProperties": false
2028
+ }
2029
+ },
2030
+ "additionalProperties": false
2031
+ },
2032
+ "depth": {
2033
+ "type": "string",
2034
+ "enum": [
2035
+ "browse",
2036
+ "evaluate",
2037
+ "preorder",
2038
+ "monitor"
2039
+ ]
2040
+ },
2041
+ "account": {
2042
+ "description": "Account address; its persona is auto-applied as the base injection.",
2043
+ "type": "string"
2044
+ }
2045
+ },
2046
+ "required": [
2047
+ "action",
2048
+ "service_id",
2049
+ "puzzle_raw"
2050
+ ],
2051
+ "additionalProperties": false
2052
+ },
2053
+ {
2054
+ "type": "object",
2055
+ "properties": {
2056
+ "action": {
2057
+ "type": "string",
2058
+ "const": "path_reasoning"
2059
+ },
2060
+ "current_node": {
2061
+ "type": "string"
2062
+ },
2063
+ "perspective": {
2064
+ "type": "string",
2065
+ "enum": [
2066
+ "merchant",
2067
+ "customer",
2068
+ "prospect",
2069
+ "supplier",
2070
+ "collaborator",
2071
+ "arbitrator"
2072
+ ]
2073
+ },
2074
+ "machine_nodes": {
2075
+ "type": "array",
2076
+ "items": {
2077
+ "type": "object",
2078
+ "properties": {
2079
+ "name": {
2080
+ "type": "string",
2081
+ "description": "Node name."
2082
+ },
2083
+ "pairs": {
2084
+ "type": "array",
2085
+ "items": {
2086
+ "type": "object",
2087
+ "properties": {
2088
+ "prev_node": {
2089
+ "type": "string"
2090
+ },
2091
+ "threshold": {
2092
+ "type": "number"
2093
+ },
2094
+ "forwards": {
2095
+ "type": "array",
2096
+ "items": {
503
2097
  "type": "object",
504
2098
  "properties": {
505
- "enabled": {
506
- "type": "boolean"
2099
+ "name": {
2100
+ "type": "string",
2101
+ "description": "Forward (operation) name."
2102
+ },
2103
+ "permissionIndex": {
2104
+ "anyOf": [
2105
+ {
2106
+ "type": "number"
2107
+ },
2108
+ {
2109
+ "type": "null"
2110
+ }
2111
+ ]
2112
+ },
2113
+ "namedOperator": {
2114
+ "anyOf": [
2115
+ {
2116
+ "type": "string"
2117
+ },
2118
+ {
2119
+ "type": "null"
2120
+ }
2121
+ ]
2122
+ },
2123
+ "guard": {
2124
+ "anyOf": [
2125
+ {
2126
+ "type": "string"
2127
+ },
2128
+ {
2129
+ "type": "null"
2130
+ }
2131
+ ]
2132
+ },
2133
+ "weight": {
2134
+ "anyOf": [
2135
+ {
2136
+ "type": "number"
2137
+ },
2138
+ {
2139
+ "type": "null"
2140
+ }
2141
+ ]
507
2142
  }
508
2143
  },
2144
+ "required": [
2145
+ "name"
2146
+ ],
509
2147
  "additionalProperties": false
510
2148
  }
511
- }
2149
+ }
2150
+ },
2151
+ "required": [
2152
+ "prev_node"
2153
+ ],
2154
+ "additionalProperties": false
2155
+ }
2156
+ }
2157
+ },
2158
+ "required": [
2159
+ "name"
2160
+ ],
2161
+ "additionalProperties": false
2162
+ }
2163
+ },
2164
+ "node_annotations": {
2165
+ "type": "object",
2166
+ "properties": {
2167
+ "completed": {
2168
+ "type": "array",
2169
+ "items": {
2170
+ "type": "string"
2171
+ }
2172
+ },
2173
+ "refunded": {
2174
+ "type": "array",
2175
+ "items": {
2176
+ "type": "string"
2177
+ }
2178
+ }
2179
+ },
2180
+ "additionalProperties": false
2181
+ },
2182
+ "appetite": {
2183
+ "type": "string",
2184
+ "enum": [
2185
+ "conservative",
2186
+ "balanced",
2187
+ "aggressive"
2188
+ ]
2189
+ },
2190
+ "account": {
2191
+ "description": "Account address; its persona's risk_appetite is used as the default appetite.",
2192
+ "type": "string"
2193
+ },
2194
+ "requirements": {
2195
+ "type": "array",
2196
+ "items": {
2197
+ "type": "string"
2198
+ }
2199
+ },
2200
+ "order_amount": {
2201
+ "type": "string"
2202
+ },
2203
+ "max_depth": {
2204
+ "type": "integer",
2205
+ "minimum": 1,
2206
+ "maximum": 9007199254740991
2207
+ }
2208
+ },
2209
+ "required": [
2210
+ "action",
2211
+ "current_node",
2212
+ "perspective",
2213
+ "machine_nodes"
2214
+ ],
2215
+ "additionalProperties": false
2216
+ },
2217
+ {
2218
+ "type": "object",
2219
+ "properties": {
2220
+ "action": {
2221
+ "type": "string",
2222
+ "const": "evidence_review"
2223
+ },
2224
+ "kind": {
2225
+ "type": "string",
2226
+ "enum": [
2227
+ "signature_photo",
2228
+ "voice_recording",
2229
+ "delivery_proof",
2230
+ "weather_data"
2231
+ ],
2232
+ "description": "Off-chain evidence kind entering the closure workflow."
2233
+ },
2234
+ "hash_committed": {
2235
+ "type": "boolean",
2236
+ "description": "Whether the evidence hash is committed on-chain (authenticity anchor)."
2237
+ },
2238
+ "digital_check_passed": {
2239
+ "description": "OCR / machine check passed (e.g. signature recognized, waybill matched).",
2240
+ "type": "boolean"
2241
+ },
2242
+ "contradiction": {
2243
+ "description": "A contradicting signal detected (e.g. waybill number mismatch).",
2244
+ "type": "boolean"
2245
+ }
2246
+ },
2247
+ "required": [
2248
+ "action",
2249
+ "kind",
2250
+ "hash_committed"
2251
+ ],
2252
+ "additionalProperties": false
2253
+ },
2254
+ {
2255
+ "type": "object",
2256
+ "properties": {
2257
+ "action": {
2258
+ "type": "string",
2259
+ "const": "discover_services"
2260
+ },
2261
+ "location": {
2262
+ "type": "string",
2263
+ "description": "Demand-side location (city/region raw text, or 'remote')."
2264
+ },
2265
+ "region": {
2266
+ "description": "AI-enriched geographic slots for `location` (from public web data). Enrichment makes same-province neighboring cities detectable; without it only exact/contains/remote relations are deterministically reachable.",
2267
+ "type": "object",
2268
+ "properties": {
2269
+ "country": {
2270
+ "type": "string"
2271
+ },
2272
+ "province": {
2273
+ "description": "Province/state — enables neighboring-city (overlap) matching under 'near'.",
2274
+ "type": "string"
2275
+ },
2276
+ "city": {
2277
+ "type": "string"
2278
+ }
2279
+ },
2280
+ "additionalProperties": false
2281
+ },
2282
+ "sensitivity": {
2283
+ "description": "Location gate hardness: strict=100% city match (on-site consumption); near=accept neighboring cities; logistics=region representation, soft signal. Omitted → inferred from description.",
2284
+ "type": "string",
2285
+ "enum": [
2286
+ "strict",
2287
+ "near",
2288
+ "logistics"
2289
+ ]
2290
+ },
2291
+ "description": {
2292
+ "description": "Demand description — used to infer sensitivity when omitted (hotel→strict, parcel→logistics).",
2293
+ "type": "string"
2294
+ },
2295
+ "coin_type": {
2296
+ "description": "Exact coin instantiation, e.g. '0x2::wow::WOW'; omit = ALL Service<T> generics.",
2297
+ "type": "string"
2298
+ },
2299
+ "name_contains": {
2300
+ "description": "Case-insensitive substring filter on service name.",
2301
+ "type": "string"
2302
+ },
2303
+ "max_objects": {
2304
+ "description": "Enumeration cap before filtering (default 200).",
2305
+ "type": "integer",
2306
+ "minimum": 1,
2307
+ "maximum": 500
2308
+ },
2309
+ "context_network": {
2310
+ "description": "Network (default testnet).",
2311
+ "type": "string"
2312
+ },
2313
+ "no_cache": {
2314
+ "description": "Force fresh on-chain enumeration (bypass the 120s local list cache).",
2315
+ "type": "boolean"
2316
+ }
2317
+ },
2318
+ "required": [
2319
+ "action",
2320
+ "location"
2321
+ ],
2322
+ "additionalProperties": false
2323
+ },
2324
+ {
2325
+ "type": "object",
2326
+ "properties": {
2327
+ "action": {
2328
+ "type": "string",
2329
+ "const": "discover_demands"
2330
+ },
2331
+ "location": {
2332
+ "description": "Client-side substring filter on demand.location (omit = all demands).",
2333
+ "type": "string"
2334
+ },
2335
+ "max_objects": {
2336
+ "description": "Enumeration cap before filtering (default 200).",
2337
+ "type": "integer",
2338
+ "minimum": 1,
2339
+ "maximum": 500
2340
+ },
2341
+ "context_network": {
2342
+ "description": "Network (default testnet).",
2343
+ "type": "string"
2344
+ },
2345
+ "no_cache": {
2346
+ "description": "Force fresh on-chain enumeration (bypass the 120s local list cache).",
2347
+ "type": "boolean"
2348
+ }
2349
+ },
2350
+ "required": [
2351
+ "action"
2352
+ ],
2353
+ "additionalProperties": false
2354
+ },
2355
+ {
2356
+ "type": "object",
2357
+ "properties": {
2358
+ "action": {
2359
+ "type": "string",
2360
+ "const": "market_metrics"
2361
+ },
2362
+ "context_network": {
2363
+ "description": "Network (default testnet).",
2364
+ "type": "string"
2365
+ },
2366
+ "no_cache": {
2367
+ "description": "Force fresh on-chain enumeration.",
2368
+ "type": "boolean"
2369
+ }
2370
+ },
2371
+ "required": [
2372
+ "action"
2373
+ ],
2374
+ "additionalProperties": false
2375
+ },
2376
+ {
2377
+ "type": "object",
2378
+ "properties": {
2379
+ "action": {
2380
+ "type": "string",
2381
+ "const": "market_operations"
2382
+ },
2383
+ "op": {
2384
+ "type": "string",
2385
+ "enum": [
2386
+ "journey_funnel",
2387
+ "referral_attribution",
2388
+ "customer_relationship",
2389
+ "dynamic_pricing"
2390
+ ],
2391
+ "description": "Which operational aggregation to run."
2392
+ },
2393
+ "due_diligence": {
2394
+ "type": "integer",
2395
+ "minimum": 0,
2396
+ "maximum": 9007199254740991
2397
+ },
2398
+ "orders": {
2399
+ "type": "integer",
2400
+ "minimum": 0,
2401
+ "maximum": 9007199254740991
2402
+ },
2403
+ "completed": {
2404
+ "type": "integer",
2405
+ "minimum": 0,
2406
+ "maximum": 9007199254740991
2407
+ },
2408
+ "reviews": {
2409
+ "type": "integer",
2410
+ "minimum": 0,
2411
+ "maximum": 9007199254740991
2412
+ },
2413
+ "referral_orders": {
2414
+ "type": "array",
2415
+ "items": {
2416
+ "type": "object",
2417
+ "properties": {
2418
+ "id": {
2419
+ "type": "string"
2420
+ },
2421
+ "referrer": {
2422
+ "type": "string"
2423
+ },
2424
+ "amount": {
2425
+ "type": "string"
2426
+ },
2427
+ "closed": {
2428
+ "type": "boolean"
2429
+ }
2430
+ },
2431
+ "required": [
2432
+ "id",
2433
+ "referrer",
2434
+ "amount",
2435
+ "closed"
2436
+ ],
2437
+ "additionalProperties": false
2438
+ }
2439
+ },
2440
+ "customer_orders": {
2441
+ "type": "array",
2442
+ "items": {
2443
+ "type": "object",
2444
+ "properties": {
2445
+ "id": {
2446
+ "type": "string"
2447
+ },
2448
+ "customer": {
2449
+ "type": "string"
2450
+ },
2451
+ "time": {
2452
+ "type": "number"
2453
+ },
2454
+ "disputed": {
2455
+ "type": "boolean"
2456
+ }
2457
+ },
2458
+ "required": [
2459
+ "id",
2460
+ "customer",
2461
+ "time",
2462
+ "disputed"
2463
+ ],
2464
+ "additionalProperties": false
2465
+ }
2466
+ },
2467
+ "market_signals": {
2468
+ "description": "Market signals for the dynamic_pricing op (non-mandatory merchant pricing suggestion).",
2469
+ "type": "object",
2470
+ "properties": {
2471
+ "supplyCount": {
2472
+ "type": "integer",
2473
+ "minimum": 0,
2474
+ "maximum": 9007199254740991,
2475
+ "description": "Number of similar Services."
2476
+ },
2477
+ "demandCount": {
2478
+ "type": "integer",
2479
+ "minimum": 0,
2480
+ "maximum": 9007199254740991,
2481
+ "description": "Number of related Demands."
2482
+ },
2483
+ "avgPrice": {
2484
+ "description": "Market average price (smallest-unit string).",
2485
+ "type": "string"
2486
+ },
2487
+ "myPrice": {
2488
+ "description": "Current price (smallest-unit string).",
2489
+ "type": "string"
2490
+ },
2491
+ "competitorPrices": {
2492
+ "description": "Competitor price list (smallest-unit strings).",
2493
+ "type": "array",
2494
+ "items": {
2495
+ "type": "string"
2496
+ }
2497
+ },
2498
+ "recentOrderCount": {
2499
+ "description": "Recent order count.",
2500
+ "type": "integer",
2501
+ "minimum": 0,
2502
+ "maximum": 9007199254740991
2503
+ },
2504
+ "repeatCustomerRate": {
2505
+ "description": "Repeat customer rate 0-1.",
2506
+ "type": "number",
2507
+ "minimum": 0,
2508
+ "maximum": 1
2509
+ }
2510
+ },
2511
+ "required": [
2512
+ "supplyCount",
2513
+ "demandCount"
2514
+ ],
2515
+ "additionalProperties": false
2516
+ }
2517
+ },
2518
+ "required": [
2519
+ "action",
2520
+ "op"
2521
+ ],
2522
+ "additionalProperties": false
2523
+ },
2524
+ {
2525
+ "type": "object",
2526
+ "properties": {
2527
+ "action": {
2528
+ "type": "string",
2529
+ "const": "anti_cheat"
2530
+ },
2531
+ "service": {
2532
+ "type": "object",
2533
+ "properties": {
2534
+ "object": {
2535
+ "type": "string",
2536
+ "description": "Service object address."
2537
+ },
2538
+ "arbitrations": {
2539
+ "type": "array",
2540
+ "items": {
2541
+ "type": "string"
2542
+ },
2543
+ "description": "Bound Arbitration object addresses."
2544
+ },
2545
+ "compensation_fund": {
2546
+ "type": "string",
2547
+ "description": "Compensation fund balance (smallest-unit string)."
2548
+ },
2549
+ "machine": {
2550
+ "anyOf": [
2551
+ {
2552
+ "type": "string"
2553
+ },
2554
+ {
2555
+ "type": "null"
2556
+ }
2557
+ ],
2558
+ "description": "Bound Machine address (null = none)."
2559
+ },
2560
+ "bPublished": {
2561
+ "type": "boolean",
2562
+ "description": "Whether published."
2563
+ }
2564
+ },
2565
+ "required": [
2566
+ "object",
2567
+ "arbitrations",
2568
+ "compensation_fund",
2569
+ "machine",
2570
+ "bPublished"
2571
+ ],
2572
+ "additionalProperties": false
2573
+ },
2574
+ "orders": {
2575
+ "type": "array",
2576
+ "items": {
2577
+ "type": "object",
2578
+ "properties": {
2579
+ "id": {
2580
+ "type": "string"
2581
+ },
2582
+ "buyer": {
2583
+ "type": "string"
2584
+ },
2585
+ "seller": {
2586
+ "type": "string"
2587
+ },
2588
+ "amount": {
2589
+ "type": "string"
2590
+ },
2591
+ "status": {
2592
+ "type": "string"
2593
+ },
2594
+ "allocation": {
2595
+ "description": "Allocation object (fund-closure evidence).",
2596
+ "anyOf": [
2597
+ {
2598
+ "type": "string"
2599
+ },
2600
+ {
2601
+ "type": "null"
2602
+ }
2603
+ ]
2604
+ }
2605
+ },
2606
+ "required": [
2607
+ "id",
2608
+ "buyer",
2609
+ "seller",
2610
+ "amount",
2611
+ "status"
2612
+ ],
2613
+ "additionalProperties": false
2614
+ },
2615
+ "description": "Order history evidence."
2616
+ },
2617
+ "reviews": {
2618
+ "type": "array",
2619
+ "items": {
2620
+ "type": "object",
2621
+ "properties": {
2622
+ "reviewer": {
2623
+ "type": "string"
2624
+ },
2625
+ "rating": {
2626
+ "type": "string",
2627
+ "enum": [
2628
+ "like",
2629
+ "dislike"
2630
+ ]
2631
+ },
2632
+ "orderRef": {
2633
+ "type": "string"
2634
+ },
2635
+ "verified": {
2636
+ "type": "boolean"
2637
+ },
2638
+ "timestamp": {
2639
+ "type": "number"
2640
+ }
2641
+ },
2642
+ "required": [
2643
+ "reviewer",
2644
+ "rating"
2645
+ ],
2646
+ "additionalProperties": false
2647
+ },
2648
+ "description": "Review evidence."
2649
+ }
2650
+ },
2651
+ "required": [
2652
+ "action",
2653
+ "service",
2654
+ "orders",
2655
+ "reviews"
2656
+ ],
2657
+ "additionalProperties": false
2658
+ },
2659
+ {
2660
+ "type": "object",
2661
+ "properties": {
2662
+ "action": {
2663
+ "type": "string",
2664
+ "const": "match_discover"
2665
+ },
2666
+ "description": {
2667
+ "type": "string",
2668
+ "description": "Demand description — drives sensitivity inference + demand capability extraction."
2669
+ },
2670
+ "location": {
2671
+ "type": "string",
2672
+ "description": "Demand-side location (city/region raw text, or 'remote')."
2673
+ },
2674
+ "region": {
2675
+ "description": "AI-enriched geographic slots for `location`.",
2676
+ "type": "object",
2677
+ "properties": {
2678
+ "country": {
2679
+ "type": "string"
2680
+ },
2681
+ "province": {
2682
+ "description": "Province/state — enables neighboring-city (overlap) matching under 'near'.",
2683
+ "type": "string"
2684
+ },
2685
+ "city": {
2686
+ "type": "string"
2687
+ }
2688
+ },
2689
+ "additionalProperties": false
2690
+ },
2691
+ "sensitivity": {
2692
+ "description": "Location gate hardness. Omitted → inferred from description.",
2693
+ "type": "string",
2694
+ "enum": [
2695
+ "strict",
2696
+ "near",
2697
+ "logistics"
2698
+ ]
2699
+ },
2700
+ "budget": {
2701
+ "description": "Demand price ceiling (smallest-unit string) — price dimension gate.",
2702
+ "type": "string"
2703
+ },
2704
+ "required_capabilities": {
2705
+ "description": "Workflow capabilities the demand REQUIRES (e.g. has_arbitration, has_compensation_fund, has_milestone_nodes, has_refund_path, has_wip_verification, has_messenger, has_buy_guard).",
2706
+ "type": "array",
2707
+ "items": {
2708
+ "type": "string"
2709
+ }
2710
+ },
2711
+ "category": {
2712
+ "description": "Category match rules key (e.g. 'life_service', 'retail') — applies hard-constraint filtering + re-anchors the six-dimension weights (15 §3). Omit = generic six-dimension scoring.",
2713
+ "type": "string"
2714
+ },
2715
+ "coin_type": {
2716
+ "description": "Exact coin instantiation, e.g. '0x2::wow::WOW'; omit = ALL Service<T> generics.",
2717
+ "type": "string"
2718
+ },
2719
+ "name_contains": {
2720
+ "description": "Case-insensitive substring filter on service name.",
2721
+ "type": "string"
2722
+ },
2723
+ "max_objects": {
2724
+ "description": "Enumeration cap before filtering (default 200).",
2725
+ "type": "integer",
2726
+ "minimum": 1,
2727
+ "maximum": 500
2728
+ },
2729
+ "context_network": {
2730
+ "description": "Network (default testnet).",
2731
+ "type": "string"
2732
+ },
2733
+ "no_cache": {
2734
+ "description": "Force fresh on-chain enumeration (bypass the 120s local list cache).",
2735
+ "type": "boolean"
2736
+ },
2737
+ "injection": {
2738
+ "type": "object",
2739
+ "properties": {
2740
+ "intent": {
2741
+ "description": "Free-text intent.",
2742
+ "type": "string"
2743
+ },
2744
+ "preferences": {
2745
+ "type": "object",
2746
+ "propertyNames": {
2747
+ "type": "string"
2748
+ },
2749
+ "additionalProperties": {}
2750
+ },
2751
+ "requirements": {
2752
+ "description": "Hard red lines (block when violated).",
2753
+ "type": "array",
2754
+ "items": {
2755
+ "type": "object",
2756
+ "properties": {
2757
+ "rule_id": {
2758
+ "type": "string"
2759
+ },
2760
+ "condition": {
2761
+ "type": "string",
2762
+ "enum": [
2763
+ "require",
2764
+ "forbid"
2765
+ ]
2766
+ },
2767
+ "note": {
2768
+ "type": "string"
2769
+ }
2770
+ },
2771
+ "required": [
2772
+ "rule_id",
2773
+ "condition"
2774
+ ],
2775
+ "additionalProperties": false
2776
+ }
2777
+ },
2778
+ "overrides": {
2779
+ "description": "Enable/disable/reweight rules and data sources.",
2780
+ "type": "object",
2781
+ "properties": {
2782
+ "rules": {
2783
+ "type": "object",
2784
+ "propertyNames": {
2785
+ "type": "string"
2786
+ },
2787
+ "additionalProperties": {
2788
+ "type": "object",
2789
+ "properties": {
2790
+ "enabled": {
2791
+ "type": "boolean"
2792
+ },
2793
+ "weight": {
2794
+ "type": "number"
2795
+ }
2796
+ },
2797
+ "additionalProperties": false
2798
+ }
2799
+ },
2800
+ "data_sources": {
2801
+ "type": "object",
2802
+ "propertyNames": {
2803
+ "type": "string"
512
2804
  },
513
- "additionalProperties": false,
514
- "description": "Enable/disable/reweight rules and data sources."
2805
+ "additionalProperties": {
2806
+ "type": "object",
2807
+ "properties": {
2808
+ "enabled": {
2809
+ "type": "boolean"
2810
+ }
2811
+ },
2812
+ "additionalProperties": false
2813
+ }
515
2814
  }
516
2815
  },
517
2816
  "additionalProperties": false
2817
+ }
2818
+ },
2819
+ "additionalProperties": false
2820
+ },
2821
+ "account": {
2822
+ "description": "Account address; its persona is auto-applied as the base injection.",
2823
+ "type": "string"
2824
+ }
2825
+ },
2826
+ "required": [
2827
+ "action",
2828
+ "description",
2829
+ "location"
2830
+ ],
2831
+ "additionalProperties": false
2832
+ },
2833
+ {
2834
+ "type": "object",
2835
+ "properties": {
2836
+ "action": {
2837
+ "type": "string",
2838
+ "const": "arbitration_score"
2839
+ },
2840
+ "arbitration": {
2841
+ "type": "object",
2842
+ "properties": {
2843
+ "object": {
2844
+ "description": "Arbitration object address.",
2845
+ "type": "string"
518
2846
  },
519
- "account": {
520
- "type": "string",
521
- "description": "Account address; its persona is auto-applied as the base injection (explicit injection overrides)."
2847
+ "fee": {
2848
+ "description": "Arbitration fee (smallest-unit string).",
2849
+ "type": "string"
2850
+ },
2851
+ "balance": {
2852
+ "description": "Capital pool (smallest-unit string).",
2853
+ "type": "string"
2854
+ },
2855
+ "voting_guard_count": {
2856
+ "description": "Number of voting guards (governance distribution proxy).",
2857
+ "type": "integer",
2858
+ "minimum": 0,
2859
+ "maximum": 9007199254740991
2860
+ },
2861
+ "bPaused": {
2862
+ "type": "boolean"
2863
+ },
2864
+ "location": {
2865
+ "type": "string"
2866
+ },
2867
+ "has_verified_identity": {
2868
+ "description": "A7: whether the arbitrator has a verified on-chain Personal identity (unknown when omitted → neutral).",
2869
+ "type": "boolean"
522
2870
  }
523
2871
  },
524
- "required": [
525
- "action",
526
- "demand_cap",
527
- "services"
528
- ],
529
2872
  "additionalProperties": false
530
2873
  },
531
- {
2874
+ "history": {
2875
+ "description": "Historical Arb cases (pre-aggregated; the on-chain reverse index is a wow data layer deliverable).",
2876
+ "type": "array",
2877
+ "items": {
2878
+ "type": "object",
2879
+ "properties": {
2880
+ "status": {
2881
+ "description": "Arb status (e.g. 'Arbitrated', 'Finished', 'Objectionable').",
2882
+ "type": "string"
2883
+ },
2884
+ "time": {
2885
+ "description": "Dispute creation time (ms epoch).",
2886
+ "type": "number"
2887
+ },
2888
+ "resolved_time": {
2889
+ "description": "Resolution time (ms epoch).",
2890
+ "type": "number"
2891
+ },
2892
+ "indemnity_amount": {
2893
+ "description": "Compensation paid (smallest-unit string; '0'/absent = none).",
2894
+ "type": "string"
2895
+ },
2896
+ "feedback_positive": {
2897
+ "type": "boolean"
2898
+ },
2899
+ "objected": {
2900
+ "type": "boolean"
2901
+ }
2902
+ },
2903
+ "additionalProperties": false
2904
+ }
2905
+ },
2906
+ "entity_votes": {
532
2907
  "type": "object",
533
2908
  "properties": {
534
- "action": {
535
- "type": "string",
536
- "const": "service_match"
2909
+ "like_ratio": {
2910
+ "description": "0-1 community like ratio.",
2911
+ "type": "number",
2912
+ "minimum": 0,
2913
+ "maximum": 1
2914
+ },
2915
+ "affiliation": {
2916
+ "description": "Whether industry peers endorsed this entity.",
2917
+ "type": "boolean"
2918
+ }
2919
+ },
2920
+ "additionalProperties": false
2921
+ },
2922
+ "fee_median": {
2923
+ "description": "Market fee median (smallest-unit string) for the fee-reasonableness rule.",
2924
+ "type": "string"
2925
+ },
2926
+ "injection": {
2927
+ "type": "object",
2928
+ "properties": {
2929
+ "intent": {
2930
+ "description": "Free-text intent.",
2931
+ "type": "string"
537
2932
  },
538
- "service_cap": {
539
- "$ref": "#/definitions/evaluation_operation/anyOf/2/properties/demand"
2933
+ "preferences": {
2934
+ "type": "object",
2935
+ "propertyNames": {
2936
+ "type": "string"
2937
+ },
2938
+ "additionalProperties": {}
540
2939
  },
541
- "demands": {
2940
+ "requirements": {
2941
+ "description": "Hard red lines (block when violated).",
542
2942
  "type": "array",
543
2943
  "items": {
544
2944
  "type": "object",
545
2945
  "properties": {
546
- "object": {
547
- "type": "string",
548
- "description": "Demand object address."
549
- },
550
- "description": {
551
- "type": "string"
552
- },
553
- "location": {
2946
+ "rule_id": {
554
2947
  "type": "string"
555
2948
  },
556
- "rewards": {
557
- "type": "array",
558
- "items": {
559
- "type": "string"
560
- }
561
- },
562
- "um": {
563
- "type": [
564
- "string",
565
- "null"
2949
+ "condition": {
2950
+ "type": "string",
2951
+ "enum": [
2952
+ "require",
2953
+ "forbid"
566
2954
  ]
567
2955
  },
568
- "owner": {
2956
+ "note": {
569
2957
  "type": "string"
570
2958
  }
571
2959
  },
572
2960
  "required": [
573
- "object",
574
- "description",
575
- "location"
2961
+ "rule_id",
2962
+ "condition"
576
2963
  ],
577
2964
  "additionalProperties": false
578
2965
  }
579
2966
  },
580
- "injection": {
581
- "$ref": "#/definitions/evaluation_operation/anyOf/4/properties/injection"
582
- },
583
- "account": {
584
- "type": "string",
585
- "description": "Account address; its persona is auto-applied as the base injection."
586
- }
587
- },
588
- "required": [
589
- "action",
590
- "service_cap",
591
- "demands"
592
- ],
593
- "additionalProperties": false
594
- },
595
- {
596
- "type": "object",
597
- "properties": {
598
- "action": {
599
- "type": "string",
600
- "const": "service_risk"
601
- },
602
- "service_id": {
603
- "type": "string",
604
- "description": "Service object address or LocalMark name."
605
- },
606
- "puzzle_raw": {
2967
+ "overrides": {
2968
+ "description": "Enable/disable/reweight rules and data sources.",
607
2969
  "type": "object",
608
2970
  "properties": {
609
- "service": {
2971
+ "rules": {
610
2972
  "type": "object",
611
- "properties": {
612
- "name": {
613
- "type": "string"
614
- },
615
- "bPublished": {
616
- "type": "boolean"
617
- },
618
- "bPaused": {
619
- "type": "boolean"
620
- },
621
- "price": {
622
- "type": "string"
623
- },
624
- "priceRaw": {
625
- "type": "string",
626
- "description": "Smallest-unit amount (string)."
627
- },
628
- "token_type": {
629
- "type": "string"
630
- },
631
- "sales": {
632
- "type": "array",
633
- "items": {
634
- "type": "object",
635
- "properties": {
636
- "suspension": {
637
- "type": "boolean"
638
- },
639
- "wip_url": {
640
- "type": "string"
641
- },
642
- "wip_hash": {
643
- "type": "string"
644
- }
645
- },
646
- "additionalProperties": false
647
- }
648
- },
649
- "machine": {
650
- "type": "string"
651
- },
652
- "buy_guard": {
653
- "type": "string"
654
- },
655
- "customer_required": {
656
- "type": "array",
657
- "items": {}
658
- },
659
- "arbitrations": {
660
- "type": "array",
661
- "items": {
662
- "type": "string"
663
- }
664
- },
665
- "compensation_fund": {
666
- "type": "object",
667
- "properties": {
668
- "balance": {
669
- "type": "string",
670
- "description": "Smallest-unit amount (string)."
671
- }
672
- },
673
- "additionalProperties": false
674
- },
675
- "compensation_lock_duration": {
676
- "type": "number"
677
- },
678
- "um": {
679
- "type": "string"
680
- }
2973
+ "propertyNames": {
2974
+ "type": "string"
681
2975
  },
682
- "additionalProperties": false
683
- },
684
- "machine_nodes": {
685
- "type": "array",
686
- "items": {
687
- "type": "object",
688
- "properties": {
689
- "name": {
690
- "type": "string"
691
- },
692
- "forwards": {
693
- "type": "array",
694
- "items": {
695
- "type": "object",
696
- "properties": {
697
- "name": {
698
- "type": "string"
699
- },
700
- "weight": {
701
- "type": "number"
702
- },
703
- "namedOperator": {
704
- "type": [
705
- "string",
706
- "null"
707
- ]
708
- },
709
- "guard": {
710
- "type": [
711
- "string",
712
- "null"
713
- ]
714
- },
715
- "to": {
716
- "type": "string"
717
- }
718
- },
719
- "additionalProperties": false
720
- }
721
- },
722
- "is_pair_done": {
723
- "type": "boolean"
724
- }
725
- },
726
- "required": [
727
- "name"
728
- ],
729
- "additionalProperties": false
730
- }
731
- },
732
- "machine_published": {
733
- "type": "boolean"
734
- },
735
- "machine_paused": {
736
- "type": "boolean"
737
- },
738
- "reviews": {
739
- "type": "array",
740
- "items": {
2976
+ "additionalProperties": {
741
2977
  "type": "object",
742
2978
  "properties": {
743
- "rating": {
744
- "type": "string"
745
- },
746
- "reviewer": {
747
- "type": "string"
748
- },
749
- "verified": {
750
- "type": "boolean"
751
- },
752
- "has_evidence": {
2979
+ "enabled": {
753
2980
  "type": "boolean"
754
2981
  },
755
- "timestamp": {
756
- "type": "number"
757
- }
758
- },
759
- "additionalProperties": false
760
- }
761
- },
762
- "events": {
763
- "type": "array",
764
- "items": {
765
- "type": "object",
766
- "properties": {
767
- "type": {
768
- "type": "string"
769
- },
770
- "timestamp": {
2982
+ "weight": {
771
2983
  "type": "number"
772
- },
773
- "address": {
774
- "type": "string"
775
- },
776
- "data": {
777
- "type": "object",
778
- "additionalProperties": {}
779
- }
780
- },
781
- "required": [
782
- "type"
783
- ],
784
- "additionalProperties": false
785
- }
786
- },
787
- "similar_services": {
788
- "type": "array",
789
- "items": {
790
- "type": "object",
791
- "properties": {
792
- "price": {
793
- "type": "string"
794
2984
  }
795
2985
  },
796
- "required": [
797
- "price"
798
- ],
799
2986
  "additionalProperties": false
800
2987
  }
801
2988
  },
802
- "order_amount": {
803
- "type": "string",
804
- "description": "Smallest-unit amount (string)."
805
- },
806
- "trust_score": {
2989
+ "data_sources": {
807
2990
  "type": "object",
808
- "properties": {
809
- "score": {
810
- "type": "number"
811
- },
812
- "level": {
813
- "type": "string"
814
- }
2991
+ "propertyNames": {
2992
+ "type": "string"
815
2993
  },
816
- "required": [
817
- "score",
818
- "level"
819
- ],
820
- "additionalProperties": false
821
- },
822
- "arbitration_owner": {
823
- "type": "string"
824
- },
825
- "service_owner": {
826
- "type": "string"
827
- },
828
- "wip_verified": {
829
- "type": "boolean"
830
- },
831
- "order_history": {
832
- "type": "array",
833
- "items": {
2994
+ "additionalProperties": {
834
2995
  "type": "object",
835
2996
  "properties": {
836
- "status": {
837
- "type": "string"
838
- },
839
- "has_dispute": {
840
- "type": "boolean"
841
- },
842
- "is_repeat": {
2997
+ "enabled": {
843
2998
  "type": "boolean"
844
2999
  }
845
3000
  },
846
- "required": [
847
- "status",
848
- "has_dispute",
849
- "is_repeat"
850
- ],
851
3001
  "additionalProperties": false
852
3002
  }
853
- },
854
- "merchant_reputation": {
855
- "type": "object",
856
- "properties": {
857
- "likes": {
858
- "type": "number"
859
- },
860
- "dislikes": {
861
- "type": "number"
862
- }
863
- },
864
- "required": [
865
- "likes",
866
- "dislikes"
867
- ],
868
- "additionalProperties": false
869
3003
  }
870
3004
  },
871
- "required": [
872
- "service"
873
- ],
874
3005
  "additionalProperties": false
875
- },
876
- "injection": {
877
- "$ref": "#/definitions/evaluation_operation/anyOf/4/properties/injection"
878
- },
879
- "depth": {
880
- "type": "string",
881
- "enum": [
882
- "browse",
883
- "evaluate",
884
- "preorder",
885
- "monitor"
886
- ]
887
- },
888
- "account": {
889
- "type": "string",
890
- "description": "Account address; its persona is auto-applied as the base injection."
891
3006
  }
892
3007
  },
893
- "required": [
894
- "action",
895
- "service_id",
896
- "puzzle_raw"
897
- ],
898
3008
  "additionalProperties": false
3009
+ },
3010
+ "account": {
3011
+ "description": "Account address; its persona is auto-applied as the base injection.",
3012
+ "type": "string"
3013
+ },
3014
+ "context_network": {
3015
+ "description": "Network (default testnet). Used to auto-fetch real Arb history when `history` is omitted.",
3016
+ "type": "string"
3017
+ }
3018
+ },
3019
+ "required": [
3020
+ "action",
3021
+ "arbitration"
3022
+ ],
3023
+ "additionalProperties": false
3024
+ },
3025
+ {
3026
+ "type": "object",
3027
+ "properties": {
3028
+ "action": {
3029
+ "type": "string",
3030
+ "const": "account_events"
3031
+ },
3032
+ "account": {
3033
+ "description": "Account address to watch for (default account when omitted).",
3034
+ "type": "string"
3035
+ },
3036
+ "categories": {
3037
+ "description": "Watcher ids to run (omit = all registered watchers).",
3038
+ "type": "array",
3039
+ "items": {
3040
+ "type": "string"
3041
+ }
3042
+ },
3043
+ "reviews": {
3044
+ "description": "Review rows (from a Service's ReviewRepository, via onchain_table_data) — enables the reputation_integrity watcher (verification, stats, manipulation detection).",
3045
+ "type": "array",
3046
+ "items": {
3047
+ "type": "object",
3048
+ "properties": {
3049
+ "reviewer": {
3050
+ "type": "string",
3051
+ "description": "Reviewer address."
3052
+ },
3053
+ "rating": {
3054
+ "type": "string",
3055
+ "enum": [
3056
+ "like",
3057
+ "dislike"
3058
+ ]
3059
+ },
3060
+ "tags": {
3061
+ "type": "array",
3062
+ "items": {
3063
+ "type": "string"
3064
+ }
3065
+ },
3066
+ "comment": {
3067
+ "type": "string"
3068
+ },
3069
+ "orderRef": {
3070
+ "description": "Associated order id — the credential for no-order-no-review verification.",
3071
+ "type": "string"
3072
+ },
3073
+ "timestamp": {
3074
+ "description": "Submission time (ms epoch).",
3075
+ "type": "number"
3076
+ },
3077
+ "verified": {
3078
+ "description": "Whether the review carries a completed-order credential; recomputed when order_history is supplied.",
3079
+ "type": "boolean"
3080
+ }
3081
+ },
3082
+ "required": [
3083
+ "reviewer",
3084
+ "rating"
3085
+ ],
3086
+ "additionalProperties": false
3087
+ }
3088
+ },
3089
+ "order_history": {
3090
+ "description": "Order history used to re-derive review credentials (no-order-no-review).",
3091
+ "type": "array",
3092
+ "items": {
3093
+ "type": "object",
3094
+ "properties": {
3095
+ "id": {
3096
+ "type": "string",
3097
+ "description": "Order object id."
3098
+ },
3099
+ "status": {
3100
+ "type": "string",
3101
+ "description": "Order status (e.g. 'completed', 'success')."
3102
+ }
3103
+ },
3104
+ "required": [
3105
+ "id",
3106
+ "status"
3107
+ ],
3108
+ "additionalProperties": false
3109
+ }
3110
+ },
3111
+ "context_network": {
3112
+ "description": "Network (default testnet).",
3113
+ "type": "string"
899
3114
  }
900
- ]
3115
+ },
3116
+ "required": [
3117
+ "action"
3118
+ ],
3119
+ "additionalProperties": false
901
3120
  }
902
- }
3121
+ ]
903
3122
  }