@wowok/agent-mcp 3.4.2 → 3.4.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 (308) hide show
  1. package/dist/.build-stamp.json +5 -0
  2. package/dist/chain-semantics/composition-truth.js +1 -1
  3. package/dist/chain-semantics/eval-order.js +1 -1
  4. package/dist/chain-semantics/field-capability.js +1 -1
  5. package/dist/chain-semantics/freeze-map.js +1 -1
  6. package/dist/chain-semantics/fund-flow.js +1 -1
  7. package/dist/chain-semantics/guard-verbs.js +1 -1
  8. package/dist/chain-semantics/object-graph.js +1 -1
  9. package/dist/composition/audit.js +1 -1
  10. package/dist/composition/compile.d.ts +10 -3
  11. package/dist/composition/compile.js +1 -1
  12. package/dist/composition/emit-phases.d.ts +30 -2
  13. package/dist/composition/emit-phases.js +1 -1
  14. package/dist/composition/guard-fill.d.ts +8 -0
  15. package/dist/composition/guard-fill.js +1 -1
  16. package/dist/composition/inflight.js +1 -1
  17. package/dist/composition/input-normalize.js +1 -1
  18. package/dist/composition/materialize.d.ts +2 -0
  19. package/dist/composition/materialize.js +1 -1
  20. package/dist/composition/mode-gates.js +1 -1
  21. package/dist/composition/param-disclosure.js +1 -1
  22. package/dist/composition/plan-retry-ledger.d.ts +16 -0
  23. package/dist/composition/plan-retry-ledger.js +1 -1
  24. package/dist/composition/plan.d.ts +15 -1
  25. package/dist/composition/plan.js +1 -1
  26. package/dist/config/config-audit.spec.js +1 -1
  27. package/dist/config/judgment.d.ts +5 -0
  28. package/dist/config/judgment.js +1 -1
  29. package/dist/evaluation/builtins/arbitration-score.d.ts +1 -0
  30. package/dist/evaluation/builtins/arbitration-score.js +1 -1
  31. package/dist/evaluation/builtins/demand-match.js +1 -1
  32. package/dist/evaluation/builtins/graph-service.d.ts +8 -0
  33. package/dist/evaluation/builtins/graph-service.js +1 -1
  34. package/dist/evaluation/capability.d.ts +9 -0
  35. package/dist/evaluation/engine.js +1 -1
  36. package/dist/evaluation/extract.d.ts +9 -1
  37. package/dist/evaluation/extract.js +1 -1
  38. package/dist/evaluation/match-operation.js +1 -1
  39. package/dist/evaluation/match-policy.d.ts +5 -3
  40. package/dist/evaluation/match-policy.js +1 -1
  41. package/dist/evaluation/standards.d.ts +1 -0
  42. package/dist/evaluation/standards.js +1 -1
  43. package/dist/evaluation/structured-lines.js +1 -1
  44. package/dist/evaluation/types.d.ts +1 -0
  45. package/dist/extensions/capability.js +1 -1
  46. package/dist/harness/recover.js +1 -1
  47. package/dist/index.js +1 -1
  48. package/dist/intent/types.d.ts +1 -1
  49. package/dist/intent/types.js +1 -1
  50. package/dist/knowledge/allocation-ledger.js +1 -1
  51. package/dist/knowledge/allocator-rail-verifier.d.ts +17 -1
  52. package/dist/knowledge/allocator-rail-verifier.js +1 -1
  53. package/dist/knowledge/arb-fund-facts.d.ts +7 -0
  54. package/dist/knowledge/arb-fund-facts.js +1 -1
  55. package/dist/knowledge/arbitration-rail-verifier.d.ts +35 -0
  56. package/dist/knowledge/arbitration-rail-verifier.js +1 -0
  57. package/dist/knowledge/audit-rules.d.ts +11 -0
  58. package/dist/knowledge/audit-rules.js +1 -1
  59. package/dist/knowledge/baselines/judgment-baselines.json +1 -0
  60. package/dist/knowledge/baselines/rules/guard.json +7 -6
  61. package/dist/knowledge/baselines/rules/progress.json +4 -4
  62. package/dist/knowledge/baselines/rules/reward.json +118 -3
  63. package/dist/knowledge/builtin-templates.d.ts +3 -2
  64. package/dist/knowledge/builtin-templates.js +1 -1
  65. package/dist/knowledge/chain-query-registry.d.ts +14 -0
  66. package/dist/knowledge/chain-query-registry.js +1 -0
  67. package/dist/knowledge/event-semantics.js +1 -1
  68. package/dist/knowledge/fee-param-bindings.d.ts +2 -0
  69. package/dist/knowledge/fee-param-bindings.js +1 -1
  70. package/dist/knowledge/getting-started.js +1 -1
  71. package/dist/knowledge/guard-binding-table.js +1 -1
  72. package/dist/knowledge/guard-binding-verifier.d.ts +7 -0
  73. package/dist/knowledge/guard-binding-verifier.js +1 -1
  74. package/dist/knowledge/guard-design-patterns.d.ts +1 -1
  75. package/dist/knowledge/guard-design-patterns.js +1 -1
  76. package/dist/knowledge/guard-host-context.js +1 -1
  77. package/dist/knowledge/guard-lint.js +1 -1
  78. package/dist/knowledge/guard-node-gates.d.ts +3 -1
  79. package/dist/knowledge/guard-node-gates.js +1 -1
  80. package/dist/knowledge/guard-puzzle.js +1 -1
  81. package/dist/knowledge/guard-render.js +1 -1
  82. package/dist/knowledge/guard-risk.js +1 -1
  83. package/dist/knowledge/guard-templates.d.ts +2 -1
  84. package/dist/knowledge/guard-templates.js +1 -1
  85. package/dist/knowledge/guard-translation.js +1 -1
  86. package/dist/knowledge/index.d.ts +2 -0
  87. package/dist/knowledge/index.js +1 -1
  88. package/dist/knowledge/industry-registry.js +1 -1
  89. package/dist/knowledge/jsonrpc-enum.js +1 -1
  90. package/dist/knowledge/knob-docs.js +1 -1
  91. package/dist/knowledge/param-schema.d.ts +1 -1
  92. package/dist/knowledge/param-schema.js +1 -1
  93. package/dist/knowledge/param-tiers.d.ts +2 -0
  94. package/dist/knowledge/param-tiers.js +1 -1
  95. package/dist/knowledge/path-oracle/products/food-delivery.js +1 -1
  96. package/dist/knowledge/pattern-resolutions.d.ts +2 -0
  97. package/dist/knowledge/pattern-resolutions.js +1 -1
  98. package/dist/knowledge/product-detail-source.d.ts +37 -0
  99. package/dist/knowledge/product-detail-source.js +1 -0
  100. package/dist/knowledge/product-doc-b5.d.ts +16 -0
  101. package/dist/knowledge/product-doc-b5.js +1 -0
  102. package/dist/knowledge/progress-ledger.js +1 -1
  103. package/dist/knowledge/projection.spec.js +1 -1
  104. package/dist/knowledge/publish-gate.d.ts +20 -0
  105. package/dist/knowledge/publish-gate.js +1 -0
  106. package/dist/knowledge/publish-readiness.d.ts +25 -0
  107. package/dist/knowledge/publish-readiness.js +1 -0
  108. package/dist/knowledge/publish-surface-contract.d.ts +16 -0
  109. package/dist/knowledge/publish-surface-contract.js +1 -0
  110. package/dist/knowledge/rail-exit-satisfiability.d.ts +25 -0
  111. package/dist/knowledge/rail-exit-satisfiability.js +1 -0
  112. package/dist/knowledge/reward-ledger.d.ts +1 -1
  113. package/dist/knowledge/reward-ledger.js +1 -1
  114. package/dist/knowledge/reward-risk.d.ts +1 -1
  115. package/dist/knowledge/reward-risk.js +1 -1
  116. package/dist/knowledge/service-ledger.d.ts +3 -1
  117. package/dist/knowledge/service-ledger.js +1 -1
  118. package/dist/knowledge/template-loader.d.ts +41 -2
  119. package/dist/knowledge/template-loader.js +1 -1
  120. package/dist/knowledge/template-registry.js +1 -1
  121. package/dist/knowledge/template-scanner.d.ts +17 -0
  122. package/dist/knowledge/template-scanner.js +1 -1
  123. package/dist/knowledge/workflow-guidance.d.ts +4 -0
  124. package/dist/knowledge/workflow-guidance.js +1 -1
  125. package/dist/monitor/MonitorLoop.js +1 -1
  126. package/dist/monitor/normalize.d.ts +1 -1
  127. package/dist/monitor/normalize.js +1 -1
  128. package/dist/monitor/types.js +1 -1
  129. package/dist/participation/game-context.js +1 -1
  130. package/dist/participation/radar-core.js +1 -1
  131. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  132. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  133. package/dist/playbooks/service-build/merchant-guide.d.ts +28 -3
  134. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  135. package/dist/playbooks/service-build/object-panorama.d.ts +4 -0
  136. package/dist/playbooks/service-build/object-panorama.js +1 -1
  137. package/dist/playbooks/service-build/participation-radar.js +1 -1
  138. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  139. package/dist/playbooks/service-build/service-panorama.js +1 -1
  140. package/dist/playbooks/service-build/service-quote.js +1 -1
  141. package/dist/review/index.js +1 -1
  142. package/dist/review/order.js +1 -1
  143. package/dist/safety/confirm-gate.js +1 -1
  144. package/dist/schema/benchmark-migration/index.d.ts +24 -0
  145. package/dist/schema/benchmark-migration/index.js +1 -1
  146. package/dist/schema/call/allocation.d.ts +11 -7
  147. package/dist/schema/call/allocation.js +1 -1
  148. package/dist/schema/call/arbitration.d.ts +4 -0
  149. package/dist/schema/call/arbitration.js +1 -1
  150. package/dist/schema/call/base.d.ts +28 -0
  151. package/dist/schema/call/base.js +1 -1
  152. package/dist/schema/call/bridge.d.ts +21 -0
  153. package/dist/schema/call/contact.d.ts +4 -0
  154. package/dist/schema/call/demand.d.ts +4 -0
  155. package/dist/schema/call/guard.d.ts +12 -0
  156. package/dist/schema/call/handler.d.ts +1 -0
  157. package/dist/schema/call/handler.js +1 -1
  158. package/dist/schema/call/machine.d.ts +16 -8
  159. package/dist/schema/call/normalize-error.d.ts +1 -0
  160. package/dist/schema/call/normalize-error.js +1 -0
  161. package/dist/schema/call/order.d.ts +7 -3
  162. package/dist/schema/call/order.js +1 -1
  163. package/dist/schema/call/payment.d.ts +7 -3
  164. package/dist/schema/call/permission.d.ts +4 -0
  165. package/dist/schema/call/personal.d.ts +4 -0
  166. package/dist/schema/call/progress.d.ts +4 -0
  167. package/dist/schema/call/progress.js +1 -1
  168. package/dist/schema/call/proof.d.ts +8 -0
  169. package/dist/schema/call/receipt.js +1 -1
  170. package/dist/schema/call/repository.d.ts +4 -0
  171. package/dist/schema/call/reward.d.ts +6 -2
  172. package/dist/schema/call/reward.js +1 -1
  173. package/dist/schema/call/semantic.d.ts +2 -2
  174. package/dist/schema/call/semantic.js +1 -1
  175. package/dist/schema/call/service.d.ts +6 -2
  176. package/dist/schema/call/treasury.d.ts +10 -6
  177. package/dist/schema/common/index.js +1 -1
  178. package/dist/schema/envelope-unify.d.ts +1 -0
  179. package/dist/schema/envelope-unify.js +1 -1
  180. package/dist/schema/evaluation/index.d.ts +43 -0
  181. package/dist/schema/evaluation/index.js +1 -1
  182. package/dist/schema/goal/index.d.ts +14 -2
  183. package/dist/schema/goal/planning.d.ts +18 -0
  184. package/dist/schema/goal/planning.js +1 -1
  185. package/dist/schema/intent-radar/index.d.ts +12 -0
  186. package/dist/schema/intent-radar/index.js +1 -1
  187. package/dist/schema/keeper/index.d.ts +1 -0
  188. package/dist/schema/local/index.d.ts +10 -0
  189. package/dist/schema/local/index.js +1 -1
  190. package/dist/schema/local/wip.js +1 -1
  191. package/dist/schema/messenger/index.d.ts +1 -0
  192. package/dist/schema/messenger/index.js +1 -1
  193. package/dist/schema/operations.d.ts +95 -12
  194. package/dist/schema/operations.js +1 -1
  195. package/dist/schema/persona/index.d.ts +22 -0
  196. package/dist/schema/query/bi.d.ts +28 -2
  197. package/dist/schema/query/bi.js +1 -1
  198. package/dist/schema/query/index.d.ts +67 -61
  199. package/dist/schema/query/index.js +1 -1
  200. package/dist/schema/schema-version.js +1 -1
  201. package/dist/schema/workflow/index.js +1 -1
  202. package/dist/schema-query-impl/index.d.ts +1 -0
  203. package/dist/schema-query-impl/index.js +1 -1
  204. package/dist/schemas/account_operation.output.json +2 -1
  205. package/dist/schemas/benchmark_migration_operation.output.json +74 -0
  206. package/dist/schemas/benchmark_migration_operation.schema.json +32 -0
  207. package/dist/schemas/bridge_operation.output.json +2 -1
  208. package/dist/schemas/bridge_operation.schema.json +40 -0
  209. package/dist/schemas/evaluation_operation.output.json +96 -0
  210. package/dist/schemas/evaluation_operation.schema.json +39 -0
  211. package/dist/schemas/goal_operation.schema.json +32 -0
  212. package/dist/schemas/guard2file.schema.json +8 -0
  213. package/dist/schemas/index.json +1 -1
  214. package/dist/schemas/intent_radar.output.json +10 -2
  215. package/dist/schemas/intent_radar.schema.json +5 -1
  216. package/dist/schemas/keeper_operation.output.json +2 -1
  217. package/dist/schemas/local_cache_operation.output.json +2 -1
  218. package/dist/schemas/local_history_operation.output.json +2 -1
  219. package/dist/schemas/local_info_operation.output.json +2 -1
  220. package/dist/schemas/local_mark_operation.output.json +2 -1
  221. package/dist/schemas/local_mark_operation.schema.json +10 -1
  222. package/dist/schemas/machineNode2file.schema.json +8 -0
  223. package/dist/schemas/messenger_operation.output.json +2 -1
  224. package/dist/schemas/messenger_operation.schema.json +2 -1
  225. package/dist/schemas/monitor_events.output.json +2 -1
  226. package/dist/schemas/monitor_subscription.output.json +2 -1
  227. package/dist/schemas/onchain_events.output.json +206 -13
  228. package/dist/schemas/onchain_events.schema.json +16 -0
  229. package/dist/schemas/onchain_operations.output.json +22 -3
  230. package/dist/schemas/onchain_operations.schema.json +971 -326
  231. package/dist/schemas/onchain_operations_allocation.schema.json +19 -12
  232. package/dist/schemas/onchain_operations_arbitration.schema.json +9 -1
  233. package/dist/schemas/onchain_operations_contact.schema.json +8 -0
  234. package/dist/schemas/onchain_operations_demand.schema.json +8 -0
  235. package/dist/schemas/onchain_operations_gen_passport.schema.json +8 -0
  236. package/dist/schemas/onchain_operations_gen_proof.schema.json +8 -0
  237. package/dist/schemas/onchain_operations_guard.schema.json +654 -114
  238. package/dist/schemas/onchain_operations_machine.schema.json +11 -3
  239. package/dist/schemas/onchain_operations_order.schema.json +14 -11
  240. package/dist/schemas/onchain_operations_payment.schema.json +12 -9
  241. package/dist/schemas/onchain_operations_permission.schema.json +8 -0
  242. package/dist/schemas/onchain_operations_personal.schema.json +8 -0
  243. package/dist/schemas/onchain_operations_progress.schema.json +9 -1
  244. package/dist/schemas/onchain_operations_proof.schema.json +8 -0
  245. package/dist/schemas/onchain_operations_repository.schema.json +8 -0
  246. package/dist/schemas/onchain_operations_reward.schema.json +14 -11
  247. package/dist/schemas/onchain_operations_service.schema.json +13 -10
  248. package/dist/schemas/onchain_operations_treasury.schema.json +17 -19
  249. package/dist/schemas/onchain_table_data.output.json +52 -10
  250. package/dist/schemas/persona_operation.output.json +57 -0
  251. package/dist/schemas/persona_operation.schema.json +9 -0
  252. package/dist/schemas/query_toolkit.output.json +325 -22
  253. package/dist/schemas/query_toolkit.schema.json +18 -5
  254. package/dist/schemas/wip_file.output.json +2 -2
  255. package/dist/schemas/wip_file.schema.json +2 -2
  256. package/dist/schemas/workflow_operation.schema.json +1 -1
  257. package/dist/tools/error-catalog.d.ts +17 -0
  258. package/dist/tools/error-catalog.js +1 -0
  259. package/dist/tools/handlers/benchmark-migration.d.ts +20 -8
  260. package/dist/tools/handlers/benchmark-migration.js +1 -1
  261. package/dist/tools/handlers/config.js +1 -1
  262. package/dist/tools/handlers/entry-edge-recipe.d.ts +101 -0
  263. package/dist/tools/handlers/entry-edge-recipe.js +1 -0
  264. package/dist/tools/handlers/escrow-deficit.d.ts +10 -0
  265. package/dist/tools/handlers/escrow-deficit.js +1 -0
  266. package/dist/tools/handlers/evaluation.js +1 -1
  267. package/dist/tools/handlers/fund-rail-recipe.d.ts +10 -0
  268. package/dist/tools/handlers/fund-rail-recipe.js +1 -0
  269. package/dist/tools/handlers/intent-radar.js +1 -1
  270. package/dist/tools/handlers/local.js +1 -1
  271. package/dist/tools/handlers/mark-namespace.d.ts +30 -0
  272. package/dist/tools/handlers/mark-namespace.js +1 -0
  273. package/dist/tools/handlers/messenger.js +1 -1
  274. package/dist/tools/handlers/onchain-name-registration.d.ts +1 -0
  275. package/dist/tools/handlers/onchain-name-registration.js +1 -1
  276. package/dist/tools/handlers/onchain-name-registration.spec.js +1 -1
  277. package/dist/tools/handlers/onchain.d.ts +30 -1
  278. package/dist/tools/handlers/onchain.js +1 -1
  279. package/dist/tools/handlers/publish-binding-echo.d.ts +22 -0
  280. package/dist/tools/handlers/publish-binding-echo.js +1 -0
  281. package/dist/tools/handlers/query.d.ts +1 -1
  282. package/dist/tools/handlers/query.js +1 -1
  283. package/dist/tools/handlers/review-chain.d.ts +1 -0
  284. package/dist/tools/handlers/review-chain.js +1 -1
  285. package/dist/tools/handlers/schema-query.js +1 -1
  286. package/dist/tools/handlers/stale-build-check.d.ts +9 -0
  287. package/dist/tools/handlers/stale-build-check.js +1 -0
  288. package/dist/tools/handlers/submission-assembly.d.ts +55 -0
  289. package/dist/tools/handlers/submission-assembly.js +1 -0
  290. package/dist/tools/handlers/wip.js +1 -1
  291. package/dist/tools/index.d.ts +1 -0
  292. package/dist/tools/index.js +1 -1
  293. package/dist/tools/move-fn-index.gen.js +1 -1
  294. package/dist/tools/publish-gate-state.d.ts +5 -0
  295. package/dist/tools/publish-gate-state.js +1 -0
  296. package/dist/tools/registry/business.js +1 -1
  297. package/dist/tools/registry/onchain.js +1 -1
  298. package/dist/tools/registry/query.js +1 -1
  299. package/dist/tools/retry.js +1 -1
  300. package/dist/tools/runtime-health.js +1 -1
  301. package/dist/tools/shared.js +1 -1
  302. package/dist/tools/upgrade-check.d.ts +1 -0
  303. package/dist/tools/upgrade-check.js +1 -1
  304. package/dist/tools/wip-verify-ledger.d.ts +2 -0
  305. package/dist/tools/wip-verify-ledger.js +1 -1
  306. package/dist/tools/wrap.d.ts +15 -1
  307. package/dist/tools/wrap.js +1 -1
  308. package/package.json +5 -3
@@ -1 +1 @@
1
- import{z}from'zod';import{ACTOR_ROLES}from'../../role/types.js';const RiskLevelEnum=z['enum'](['low','medium','high']),RiskAppetiteEnum=z['enum'](['conservative','balanced','aggressive']),QueryCoverageSchema=z['object']({'mode':z['enum'](['chain_universe','event_window','known_objects']),'complete':z['boolean'](),'truncated':z['boolean'](),'total_enumerated':z['number']()['int']()['min'](0x0),'chain_id':z['string']()['optional'](),'degraded_reasons':z['array'](z['string']())})['strict'](),PerspectiveEnum=z['enum'](ACTOR_ROLES),ArbStatusEnum=z['enum'](['Principal_confirming','Arbitrator_confirming','Voting','Arbitrated','Objectionable','Finished','Withdrawn']),ArbPerspectiveEnum=z['enum'](['customer','merchant','arbitrator']),ExecutionPathEnum=z['enum'](['order_holder','permission','named_operator','not_available']),EvaluationLevelEnum=z['enum'](['low','medium_low','medium_high','high']),IndustryEnum=z['string']()['regex'](/^[a-z][a-z0-9_]*$/,'industry\x20must\x20be\x20lowercase\x20snake_case')['describe']('Industry\x20scenario.\x20Builtin:\x20freelance,\x20rental,\x20education,\x20travel,\x20subscription,\x20retail,\x20general,\x20custom\x20—\x20plus\x20any\x20registered\x20custom\x20industry.'),RegionSchema=z['object']({'mode':z['enum'](['remote','physical']),'country':z['string']()['optional'](),'province':z['string']()['optional'](),'city':z['string']()['optional'](),'raw':z['string']()['describe']('Original\x20location\x20string\x20(for\x20traceability).')})['strict'](),WorkflowCapabilitiesSchema=z['object']({'has_arbitration':z['boolean'](),'has_refund_path':z['boolean'](),'has_milestone_nodes':z['boolean'](),'has_compensation_fund':z['boolean'](),'has_wip_verification':z['boolean'](),'has_messenger':z['boolean'](),'has_buy_guard':z['boolean'](),'has_dynamic_pricing':z['boolean'](),'is_published':z['boolean'](),'is_paused':z['boolean']()})['strict']();export const CapabilityVectorSchema=z['object']({'id':z['string']()['describe']('Service/Demand\x20address.'),'kind':z['enum'](['service','demand'])['describe']('Whether\x20this\x20is\x20a\x20service\x20or\x20demand.'),'owner':z['string']()['optional'](),'industry':IndustryEnum['describe']('Industry\x20scenario.'),'industry_confidence':z['number']()['min'](0x0)['max'](0x1)['optional'](),'region':RegionSchema,'price_min':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'price_max':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'token_type':z['string']()['optional'](),'ticket_size':z['enum'](['micro','small','medium','large'])['optional'](),'trust_score':z['number']()['min'](0x0)['max'](0x64)['optional'](),'reputation_like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional'](),'arbitration_independent':z['boolean']()['optional'](),'merchant_history_count':z['number']()['int']()['min'](0x0)['optional'](),'capabilities':WorkflowCapabilitiesSchema,'tags':z['array'](z['string']())['optional'](),'keywords':z['array'](z['string']())['optional']()})['strict']();const ServiceExtractInputSchema=z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'sales':z['array'](z['object']({'name':z['string']()['optional'](),'price':z['string']()['describe']('Smallest-unit\x20amount\x20(string).'),'wip_hash':z['string']()['optional']()})['strict']())['optional'](),'arbitrations':z['array'](z['string']())['optional'](),'compensation_fund':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'buy_guard':z['string']()['nullable']()['optional'](),'machine':z['string']()['nullable']()['optional'](),'um':z['string']()['nullable']()['optional'](),'bPublished':z['boolean']()['optional'](),'bPaused':z['boolean']()['optional'](),'owner':z['string']()['optional'](),'order_allocators':z['unknown']()['optional'](),'buyer_feedback':z['object']({'total':z['number']()['int']()['min'](0x0),'likes':z['number']()['int']()['min'](0x0),'completed_orders':z['number']()['int']()['min'](0x0)['optional']()})['strict']()['optional']()})['strict'](),DemandExtractInputSchema=z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'rewards':z['array'](z['string']())['optional'](),'um':z['string']()['nullable']()['optional'](),'owner':z['string']()['optional']()})['strict'](),PresenterHistorySchema=z['array'](z['object']({'demand_id':z['string']()['optional']()['describe']('Demand\x20object\x20that\x20received\x20the\x20presentation.'),'presenter':z['string']()['optional']()['describe']('F-RQ-10:\x20the\x20presenter\x20(service\x20object\x20address)\x20this\x20record\x20is\x20about\x20—\x20records\x20carrying\x20it\x20become\x20that\x20service\x27s\x20counterparty\x20trust\x20evidence\x20(the\x20on-chain\x20writer\x20is\x20the\x20demand\x20OWNER,\x20so\x20the\x20signal\x20cannot\x20be\x20self-authored\x20by\x20the\x20merchant);\x20omit\x20for\x20legacy\x20global-only\x20acceptance\x20scoring.'),'presenter_service':z['string']()['optional']()['describe']('tv8\x20F-28:\x20the\x20SERVICE\x20object\x20address\x20the\x20record\x20is\x20about\x20(the\x20value\x20side\x20of\x20the\x20on-chain\x20DemandPresenter\x20entry\x20—\x20the\x20table\x20key\x20is\x20the\x20presenter\x20ACCOUNT).\x20Dual-domain\x20matching\x20accepts\x20either\x20this\x20or\x20`presenter`;\x20chain-faithful\x20readers\x20fill\x20BOTH.'),'acceptance_score':z['number']()['nullable']()['describe']('Demand\x20owner\x27s\x20acceptance\x20score\x20(u8\x20on-chain,\x200-100\x20scale).\x20null\x20=\x20not\x20yet\x20rated.'),'feedback_time':z['number']()['optional']()['describe']('Feedback\x20timestamp\x20(ms\x20or\x20s,\x20informational\x20only).')})['strict']())['describe']('P2-2:\x20presenter\x20acceptance\x20history\x20(demand-side\x20acceptance_score\x20backflow)\x20for\x20the\x20SINGLE\x20party\x20being\x20evaluated\x20'+'(e.g.\x20the\x20merchant\x20behind\x20the\x20candidate\x20service\x20set,\x20or\x20the\x20demand\x20owner\x20being\x20matched).\x20Collect\x20via\x20'+'onchain_table_item_demand_presenter\x20across\x20that\x20party\x27s\x20Demand\x20presenter\x20tables.\x20When\x20the\x20candidate\x20set\x20spans\x20'+'multiple\x20unrelated\x20parties,\x20evaluate\x20per-party\x20or\x20omit\x20—\x20the\x20acceptance\x20rule\x20scores\x20neutral\x20without\x20history.'),PolicyGateSchema=z['object']({'dim':z['string']()['describe']('Gate\x20dimension.\x20Enforced\x20client-side:\x20live,\x20price,\x20arb,\x20compensation,\x20machine,\x20messenger,\x20buy_guard,\x20wip_verify,\x20text,\x20owner.\x20Others\x20are\x20reported\x20as\x20ignored\x20(not\x20enforceable\x20on-device\x20yet).'),'op':z['string']()['optional']()['describe']('Comparison\x20operator\x20(eq/lte/gte/in/not_in/must_contain/must_not_contain)\x20—\x20validated\x20per\x20dim\x20at\x20apply\x20time.'),'value':z['union']([z['boolean'](),z['number'](),z['string'](),z['array'](z['string']())])['optional'](),'params':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Extra\x20params;\x20`from_budget:\x20true`\x20on\x20a\x20price\x20gate\x20uses\x20the\x20request\x20budget\x20as\x20the\x20threshold.')})['strict'](),PolicyExcludeSchema=z['object']({'dim':z['string']()['describe']('Exclude\x20dimension.\x20Enforced\x20client-side:\x20blacklist\x20(objects/owners\x20lists).\x20anti_cheat/structure\x20dims\x20are\x20reported\x20as\x20ignored\x20(no\x20client-side\x20facet).'),'objects':z['array'](z['string']())['optional'](),'owners':z['array'](z['string']())['optional'](),'flags':z['array'](z['string']())['optional'](),'source':z['array'](z['string']())['optional'](),'rule':z['string']()['optional']()})['strict']();export const MatchPolicySchema=z['object']({'policy_id':z['string']()['min'](0x1),'version':z['number']()['int']()['nonnegative']()['optional'](),'direction':z['enum'](['demand_to_supply','supply_to_demand'])['optional']()['describe']('Default\x20demand_to_supply.\x20A\x20demand_to_supply\x20policy\x20drives\x20match_discover;\x20a\x20supply_to_demand\x20policy\x20drives\x20demand_present\x20/\x20discover_demands\x20(and\x20is\x20rejected\x20by\x20match_discover).'),'unknown_policy':z['enum'](['pass','drop','neutral_score'])['optional']()['describe']('What\x20a\x20gate\x20with\x20missing\x20input\x20does\x20(K5-05\x20axiom\x203).\x20Default\x20neutral_score\x20(=\x20pass,\x20reported).'),'gates':z['array'](PolicyGateSchema)['optional'](),'excludes':z['array'](PolicyExcludeSchema)['optional'](),'weights':z['record'](z['string'](),z['number']()['min'](0x0))['optional']()['describe']('demand_match\x20rule\x20id\x20→\x20weight\x20(region/industry/price/trust/capabilities/tags/acceptance).\x20Unregistered\x20ids\x20are\x20reported\x20as\x20ignored.'),'rerank':z['object']({'diversity':z['object']({'by':z['enum'](['owner','permission']),'max_per_group':z['number']()['int']()['min'](0x1)})['strict']()['optional']()['describe']('Greedy\x20per-group\x20cap\x20over\x20the\x20score-ordered\x20list.\x20`permission`\x20is\x20not\x20enforceable\x20client-side\x20yet\x20(reported\x20ignored);\x20use\x20`owner`.'),'explore':z['unknown']()['optional'](),'llm':z['unknown']()['optional'](),'fairness':z['unknown']()['optional']()})['strict']()['optional'](),'recall':z['unknown']()['optional']()['describe']('Server/recall\x20directives\x20—\x20accepted\x20for\x20portability,\x20not\x20enforceable\x20from\x20the\x20client\x20(reported\x20ignored).'),'verify':z['unknown']()['optional']()['describe']('Facet\x20verification\x20directives\x20—\x20accepted\x20for\x20portability,\x20not\x20enforceable\x20client-side\x20(reported\x20ignored).'),'output':z['object']({'top_n':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional'](),'explain':z['boolean']()['optional'](),'evidence_chain':z['unknown']()['optional'](),'coverage_report':z['unknown']()['optional']()})['strict']()['optional']()})['strict']();const PolicyEffectSchema=z['object']({'policy_id':z['string'](),'version':z['number']()['int']()['nonnegative']()['optional'](),'direction':z['enum'](['demand_to_supply','supply_to_demand']),'policy_hash':z['string']()['describe']('sha256\x20of\x20the\x20canonical\x20policy\x20JSON\x20—\x20local\x20reproducibility\x20fingerprint,\x20never\x20uploaded.'),'policy_source':z['enum'](['factory_defaults','system_persona','general_file','account_persona','request'])['describe']('Which\x20layer\x20supplied\x20the\x20policy\x20(lowest\x20→\x20highest:\x20engine\x20defaults\x20<\x20system\x20persona\x20<\x20match-policy.json\x20<\x20account\x20persona\x20<\x20request/Prompt).\x20factory_defaults\x20never\x20appears\x20here\x20—\x20with\x20no\x20stored\x20policy\x20there\x20is\x20no\x20policy_effect;\x20the\x20standing\x20judgment\x20`match`\x20defaults\x20rule\x20instead.'),'unknown_policy':z['enum'](['pass','drop','neutral_score']),'dropped':z['array'](z['object']({'object':z['string'](),'reason':z['string']()})['strict']())['describe']('Candidates\x20eliminated\x20by\x20a\x20gate/exclude,\x20each\x20with\x20its\x20reason.'),'unknown_kept':z['array'](z['object']({'object':z['string'](),'dim':z['string'](),'reason':z['string']()})['strict']())['describe']('Gate\x20inputs\x20that\x20were\x20missing;\x20candidate\x20kept\x20under\x20pass/neutral_score\x20semantics\x20(K5-05\x20axiom\x203).'),'weights_applied':z['record'](z['string'](),z['number']())['describe']('demand_match\x20rule\x20weights\x20overridden\x20by\x20the\x20policy.'),'rerank':z['string']()['describe']('Final\x20private\x20ordering\x20in\x20effect.'),'deferred_by_diversity':z['number']()['int']()['min'](0x0),'ignored':z['array'](z['string']())['describe']('Policy\x20directives\x20not\x20enforceable\x20in\x20this\x20build\x20—\x20reported,\x20never\x20silently\x20dropped.'),'privacy':z['string']()})['strict'](),UserInjectionSchema=z['object']({'intent':z['string']()['optional']()['describe']('Free-text\x20intent.'),'preferences':z['record'](z['string'](),z['unknown']())['optional'](),'requirements':z['array'](z['object']({'rule_id':z['string'](),'condition':z['enum'](['require','forbid']),'note':z['string']()['optional']()})['strict']())['optional']()['describe']('Hard\x20red\x20lines\x20(block\x20when\x20violated).'),'overrides':z['object']({'rules':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional'](),'weight':z['number']()['optional']()})['strict']())['optional'](),'data_sources':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional']()})['strict']())['optional']()})['strict']()['optional']()['describe']('Enable/disable/reweight\x20rules\x20and\x20data\x20sources.')})['strict'](),OperationBridgeSchema=z['object']({'operation':z['string']()['describe']('Next\x20on-chain\x20operation\x20label:\x20demand.present\x20|\x20demand.present_guarded\x20|\x20demand.publish\x20|\x20service.order_new\x20|\x20demand.feedback\x20|\x20demand.await_presenters\x20(the\x20last\x20two\x20are\x20F-RQ-06\x20live-state\x20derivations).'),'operation_type':z['enum'](['demand','service'])['describe']('The\x20onchain_operations\x20operation_type\x20to\x20use.'),'preconditions':z['array'](z['string']())['describe']('Precondition\x20checklist\x20to\x20verify\x20(query/watch)\x20before\x20writing.'),'rationale':z['string']()['describe']('Stable\x20guidance\x20describing\x20the\x20order-formation\x20path.'),'state':z['object']({'demand_object':z['string'](),'presenters_count':z['number']()['int']()['min'](0x0)['nullable']()})['strict']()['optional']()['describe']('F-RQ-06\x20(prescription\x20⑫):\x20present\x20ONLY\x20when\x20`next`\x20was\x20derived\x20from\x20a\x20LIVE\x20on-chain\x20Demand\x20read\x20(demand_match\x20demand_object)\x20—\x20presenters_count\x20is\x20the\x20match-time\x20chain\x20value;\x20null\x20=\x20live\x20read\x20failed\x20(verify-first\x20gate).\x20Absent\x20=\x20static\x20template\x20bridge,\x20no\x20live\x20state\x20consulted.')})['strict'](),ArbGameActionSchema=z['object']({'action':z['string']()['describe']('Recommended\x20move\x20(e.g.\x20\x27confirm\x27,\x20\x27vote\x27,\x20\x27objection\x27,\x20\x27arb_withdraw\x27).'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Favorability\x200-100\x20for\x20the\x20perspective.'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points.'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),NodeForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'consequence':z['string']()['optional']()['describe']('Consequence\x20hint\x20(completion/refund\x20path).'),'weight':z['number']()['optional']()['describe']('Forward\x20weight\x20(accumulates\x20toward\x20the\x20pair\x27s\x20threshold).')})['strict'](),NodeGameActionSchema=z['object']({'forward':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Net\x20favorability\x200-100\x20for\x20the\x20perspective\x20(gain\x20−\x20risk).'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points.'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),PathMachineForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'permissionIndex':z['number']()['nullable']()['optional'](),'namedOperator':z['string']()['nullable']()['optional'](),'guard':z['string']()['nullable']()['optional'](),'weight':z['number']()['nullable']()['optional']()})['strict'](),PathMachineNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name.'),'pairs':z['array'](z['object']({'prev_node':z['string'](),'threshold':z['number']()['optional'](),'forwards':z['array'](PathMachineForwardSchema)['optional']()})['strict']())['optional']()})['strict'](),NodeAnnotationsSchema=z['object']({'completed':z['array'](z['string']())['optional'](),'refunded':z['array'](z['string']())['optional']()})['strict'](),PathOutputSchema=z['object']({'id':z['string'](),'nodes':z['array'](z['string']()),'forwards':z['array'](z['string']()),'terminal':z['enum'](['completed','refunded','open']),'guard_gates':z['number']()['int']()['min'](0x0),'length':z['number']()['int']()['min'](0x0),'terminal_value':z['number']()['int']()['min'](0x0)['max'](0x64),'gain_score':z['number']()['int']()['min'](0x0),'risk_score':z['number']()['int']()['min'](0x0),'score':z['number']()['int']()['min'](0x0)['max'](0x64),'rationale':z['string']()})['strict'](),AllocationSummarySchema=z['object']({'recipient_slots':z['number']()['int']()['min'](0x0)['describe']('Total\x20recipient\x20slots\x20across\x20allocators.'),'guard_gated_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20resolved\x20at\x20settlement\x20by\x20a\x20Guard.'),'direct_to_me_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20paying\x20directly\x20to\x20this\x20role.'),'to_payer_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20routing\x20back\x20to\x20the\x20payer\x20(refund-oriented).')})['strict'](),CooperationInfoSchema=z['object']({'threshold':z['number']()['int']()['min'](0x1)['describe']('Pair\x20threshold\x20(accumulated\x20forward\x20weights\x20to\x20advance).'),'my_weight':z['number']()['int']()['min'](0x0)['describe']('Weight\x20THIS\x20role\x20can\x20contribute.'),'needed_from_others':z['number']()['int']()['min'](0x0)['describe']('Weight\x20still\x20needed\x20from\x20other\x20roles\x20(0\x20=\x20can\x20advance\x20alone).'),'collaborators':z['array'](z['string']())['describe']('Roles\x20that\x20must\x20cooperate\x20to\x20reach\x20the\x20threshold.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20once\x20the\x20node\x20advances.'),'allocation_note':z['string']()['optional']()['describe']('Human-readable\x20allocation\x20note.')})['strict'](),CapabilityGapSchema=z['object']({'dimension':z['string']()['describe']('Capability\x20dimension\x20(has_arbitration\x20/\x20region\x20/\x20price\x20/\x20...).'),'requirement':z['string']()['describe']('What\x20the\x20demand\x20requires.'),'provided':z['string']()['describe']('What\x20the\x20service\x20provides.'),'status':z['enum'](['satisfied','partial','missing']),'impact':z['enum'](['critical','major','minor']),'suggestion':z['string']()['describe']('Actionable\x20suggestion.')})['strict'](),CapabilityGapReportSchema=z['object']({'entity_id':z['string'](),'satisfied':z['array'](CapabilityGapSchema),'missing':z['array'](CapabilityGapSchema),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),CompositePlanSchema=z['object']({'demand':z['string'](),'services':z['array'](z['object']({'id':z['string'](),'covered':z['array'](z['string']())})['strict']()),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'remaining_missing':z['array'](z['string']()),'feasibility':z['enum'](['ready','needs_supply_chain','infeasible']),'summary':z['string']()})['strict'](),CriterionScoreSchema=z['object']({'name':z['string'](),'score':z['number'](),'weight':z['number'](),'rationale':z['string']()})['strict'](),EvaluationFindingSchema=z['object']({'criterion':z['string'](),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'deduction':z['number']()})['strict'](),FindingRefSchema=z['object']({'id':z['string']()['describe']('Stable\x20finding\x20registry\x20id\x20(e.g.\x20R4:<machine>:<pair>).'),'title':z['string']()['describe']('Human\x20finding\x20title.'),'severity':z['string']()['describe']('Analyzer\x20severity\x20(critical/high/medium/low).')})['strict'](),EvaluationResultSchema=z['object']({'evaluation_id':z['string'](),'total':z['number']()['int']()['min'](0x0)['max'](0x64),'level':EvaluationLevelEnum,'breakdown':z['array'](z['object']({'rule_id':z['string'](),'dimension':z['string'](),'score':z['number'](),'weight':z['number'](),'reason':z['string']()['optional'](),'matched':z['array'](z['string']())['optional'](),'mismatched':z['array'](z['string']())['optional'](),'finding_refs':z['array'](FindingRefSchema)['optional']()['describe']('Structural\x20findings\x20this\x20risk\x20dimension\x20deducted\x20for\x20—\x20resolve\x20graph-aware\x20where-lines\x20from\x20these\x20ids.'),'red_flag':z['boolean']()['optional']()})['strict']()),'red_flags':z['array'](z['string']()),'red_flag_basis':z['array'](z['object']({'flag':z['string']()['describe']('The\x20flag\x20text\x20(identical\x20to\x20the\x20corresponding\x20red_flags\x20entry).'),'basis':z['enum'](['object_defect','requirement_unmet']),'rule_id':z['string']()['optional']()['describe']('The\x20rule\x20that\x20fired\x20(object_defect)\x20or\x20the\x20clause\x20target\x20(requirement_unmet).')})['strict']())['optional']()['describe']('Evidence-basis\x20classification\x20of\x20each\x20red\x20flag\x20(same\x20order/length\x20as\x20red_flags\x20when\x20present).'),'blocked':z['boolean'](),'trace':z['array'](z['object']({'kind':z['enum'](['data_source','rule','override']),'id':z['string'](),'detail':z['string']()})['strict']()),'summary':z['string'](),'unverified':z['array'](z['string']())['optional']()['describe']('Dimension\x20rule\x20ids\x20excluded\x20from\x20the\x20weighted\x20aggregation\x20as\x20unverifiable\x20(data\x20gaps)\x20—\x20never\x20scored\x20as\x20default-low.'),'criterionScores':z['array'](CriterionScoreSchema)['optional']()['describe']('Per-criterion\x20weighted\x20breakdown\x20(producer/consumer\x20perspective-aware\x20kernel\x20union).'),'findings':z['array'](EvaluationFindingSchema)['optional']()['describe']('Negative-evidence\x20findings\x20(richer\x20than\x20red_flags\x20strings).'),'strengths':z['array'](z['string']())['optional']()['describe']('Positive-evidence\x20strengths.'),'needsLlm':z['boolean']()['optional']()['describe']('True\x20when\x20this\x20evaluation\x20requires\x20LLM\x20processing\x20(worth_buying/value).'),'llmPrompt':z['string']()['optional']()['describe']('When\x20needsLlm=true,\x20the\x20prompt\x20to\x20hand\x20to\x20the\x20caller\x20LLM.')})['strict'](),CoverageSlotSchema=z['object']({'slot':z['string']()['describe']('Slot\x20key\x20(e.g.\x20arbitration\x20/\x20reviews).'),'label':z['string']()['describe']('Human-readable\x20slot\x20name.'),'gloss':z['string']()['describe']('One-sentence\x20plain\x20explanation\x20of\x20the\x20evidence\x20this\x20slot\x20covers.'),'required':z['boolean']()['describe']('Whether\x20this\x20slot\x20is\x20required\x20for\x20a\x20material\x20evaluation.'),'state':z['enum'](['present','empty','gap'])['describe']('present\x20=\x20scored\x20material;\x20empty\x20=\x20verified\x20absence;\x20gap\x20=\x20unverifiable.'),'facts':z['array'](z['string']())['describe']('Fact\x20keys\x20answering\x20this\x20slot\x20(empty\x20for\x20the\x20root\x20snapshot\x20slot).')})['strict'](),CoverageVocabularySchema=z['object']({'present':z['string'](),'empty':z['string'](),'gap':z['string'](),'unverified':z['string'](),'completeness':z['string']()})['strict']();export const GraphServiceEvaluationSchema=z['object']({'target':z['string']()['describe']('Evaluated\x20service\x20address\x20(resolved\x20from\x20service_id).'),'trust':EvaluationResultSchema['describe']('Trust\x20evaluation\x20over\x20the\x20graph\x20facts\x20(arbitration/reviews/fulfillment/fund_safety/transparency).'),'risk':EvaluationResultSchema['describe']('Risk\x20evaluation\x20over\x20the\x20graph\x20facts\x20(workflow/fund/trust/behavior).'),'completeness':z['number']()['describe']('Material\x20coverage\x20of\x20the\x20required\x20fact\x20slots\x20(0-100).'),'coverage':z['array'](CoverageSlotSchema)['describe']('Per-slot\x20coverage\x20of\x20the\x20facts\x20projection.'),'unverified':z['array'](z['string']())['describe']('Dimension\x20rule\x20ids\x20excluded\x20as\x20unverifiable\x20(data\x20gaps)\x20—\x20never\x20scored\x20as\x20default-low.'),'vocabulary':CoverageVocabularySchema['describe']('One-sentence\x20canonical\x20glosses\x20of\x20the\x20coverage\x20vocabulary\x20to\x20quote\x20verbatim.')})['strict']();const SupplyChainPromiseInputSchema=z['object']({'sub_service':z['string']()['describe']('The\x20procured\x20sub-Service:\x20an\x20on-chain\x20address\x20or\x20a\x20resolvable\x20name.'),'axis':z['enum'](['merchant_procured','user_procured'])['describe']('Who\x20owns\x20the\x20fulfilment\x20order\x20—\x20decides\x20which\x20money-gate\x20ties\x20are\x20expressible.'),'service_name':z['string']()['optional']()['describe']('The\x20host\x20Service\x27s\x20own\x20name\x20(the\x20money\x20gate\x27s\x20host\x20binding);\x20omit\x20=\x20the\x20generated\x20plan\x27s\x20service\x20step\x20name.'),'done_node':z['string']()['describe']('The\x20node\x20whose\x20arrival\x20makes\x20the\x20order\x20settle-eligible\x20(e.g.\x20\x27completed\x27).'),'done_node_alt':z['string']()['optional']()['describe']('A\x20further\x20settle-eligible\x20node.'),'done_node_alt2':z['string']()['optional']()['describe']('A\x20further\x20settle-eligible\x20node.'),'form':z['enum'](['rendezvous','submission'])['optional']()['describe']('How\x20the\x20fulfilment\x20fact\x20reaches\x20the\x20host\x20order\x27s\x20money\x20gate\x20(default\x20\x27rendezvous\x27\x20—\x20the\x20only\x20form\x20that\x20proves\x20the\x20pairing).'),'fact_key':z['string']()['optional']()['describe']('Policy\x20key\x20of\x20the\x20forward\x20fulfilment\x20row\x20(default\x20\x27fulfilment\x27).'),'ack_key':z['string']()['optional']()['describe']('Policy\x20key\x20of\x20the\x20buyer\x20acknowledgement\x20(default\x20\x27<fact_key>_ack\x27).'),'ack_window_days':z['number']()['int']()['min'](0x1)['optional']()['describe']('merchant_procured\x20only:\x20after\x20this\x20many\x20days\x20the\x20buyer\x27s\x20silence\x20counts\x20as\x20acknowledgement.'),'payout_to':z['string']()['optional']()['describe']('The\x20fulfilment\x20party\x27s\x20payout\x20address.\x20Absent\x20=\x20no\x20third-party\x20rail.'),'payout_rate':z['number']()['int']()['min'](0x1)['max'](0x2710)['optional']()['describe']('Basis\x20points\x20of\x20the\x20settlement\x20rail\x20paid\x20to\x20payout_to\x20(default\x2010000).'),'repository':z['string']()['optional']()['describe']('An\x20existing\x20rendezvous\x20Repository\x20name;\x20one\x20is\x20created\x20when\x20omitted.'),'repository_name':z['string']()['optional']()['describe']('The\x20name\x20a\x20CREATED\x20rendezvous\x20Repository\x20takes\x20(default\x20\x27<host>_<sub>_ledger\x27).'),'service_step_id':z['string']()['optional']()['describe']('Step\x20id\x20of\x20the\x20host\x20Service\x20in\x20the\x20plan\x20being\x20built\x20(default\x20\x27service\x27).'),'id_prefix':z['string']()['optional']()['describe']('Step-id\x20prefix\x20for\x20the\x20emitted\x20objects\x20(default\x20\x27sc\x27).')})['strict']();export const EvaluationOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(persona\x20drivers).')})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'threshold':z['number']()['int']()['min'](0x1)['optional']()['describe']('Pair\x20threshold\x20—\x20when\x20>\x201,\x20multi-role\x20cooperation\x20is\x20needed\x20to\x20advance.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20after\x20the\x20node\x20advances.'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(persona\x20drivers).'),'order_amount':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20stake\x20at\x20this\x20node\x20(quantified).'),'compensation_fund':z['string']()['optional']()['describe']('Merchant\x20compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'operable':z['array'](NodeForwardSchema),'waiting_on':z['array'](z['object']({'role':z['string'](),'forwards':z['array'](z['string']())})['strict']())['optional']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'demand':CapabilityVectorSchema,'service':CapabilityVectorSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'demand':CapabilityVectorSchema,'services':z['array'](CapabilityVectorSchema)})['strict'](),z['object']({'action':z['literal']('compose_generation'),'intent':z['string']()['min'](0x1)['describe']('K3-GA2\x20(G-A\x20generator):\x20the\x20merchant\x27s\x20free-text\x20business\x20intent.\x20Capability\x20adoption\x20is\x20EVIDENCE-GATED\x20—\x20a\x20module\x20is\x20adopted\x20only\x20by\x20an\x20intentSignals\x20match\x20on\x20this\x20text\x20or\x20an\x20explicit\x20`selections`\x20entry;\x20an\x20intent\x20that\x20matches\x20nothing\x20is\x20a\x20blocker\x20(COMPOSE-NO-CAPABILITY-EVIDENCE),\x20never\x20a\x20silent\x20default\x20build.'),'selections':z['array'](z['string']())['optional']()['describe']('Merchant-confirmed\x20capability\x20ids\x20(adopted\x20regardless\x20of\x20signal\x20match).\x20List\x20registered\x20ids\x20via\x20industry_pack_operation\x20action=\x27capability_list\x27.'),'supply_chain':z['array'](SupplyChainPromiseInputSchema)['optional']()['describe']('Cross-object/cross-Service\x20procurement\x20promises\x20—\x20compiled\x20into\x20money-gate\x20steps\x20on\x20the\x20generated\x20plan\x20and\x20disclosed\x20back\x20under\x20`supply_chain`.'),'inputs':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Compile\x20inputs;\x20omitted\x20=\x20the\x20carrier\x20template\x27s\x20own\x20defaults.\x20Minimal\x20honest\x20sellable\x20surface\x20for\x20the\x20pilot\x20carriers:\x20{\x20sales:\x20[{\x20price:\x20<smallest-unit\x20integer>\x20}]\x20}\x20(+\x20reward_funding\x20when\x20the\x20carrier\x20pays\x20a\x20review\x20reward)\x20—\x20a\x20plan\x20without\x20a\x20sellable\x20SKU\x20fails\x20reflux\x20audit\x20(PLAN-SALES-01)\x20and\x20comes\x20back\x20infeasible.'),'name_base':z['string']()['optional']()['describe']('Object\x20name\x20base;\x20omit\x20=\x20the\x20carrier\x20template\x20id\x20(\x27/\x27\x20->\x20\x27_\x27).'),'preferred_chain':z['string']()['optional']()['describe']('Preferred\x20pilot\x20chain\x20when\x20the\x20adopted\x20set\x20maps\x20onto\x20BOTH\x20pilot\x20chains\x20(e.g.\x20\x27chain.data_subscription\x27);\x20otherwise\x20the\x20first\x20matching\x20chain\x20wins.')})['strict'](),z['object']({'action':z['literal']('demand_match'),'demand_cap':CapabilityVectorSchema,'services':z['array'](ServiceExtractInputSchema),'demand_object':z['string']()['optional']()['describe']('F-RQ-06\x20(prescription\x20⑫):\x20YOUR\x20on-chain\x20Demand\x20object\x20ID\x20(or\x20mark\x20name).\x20When\x20supplied,\x20the\x20handler\x20reads\x20the\x20demand\x20LIVE\x20(presenters_count)\x20at\x20match\x20time\x20and\x20derives\x20`next`\x20from\x20real\x20state\x20—\x20a\x20published\x20demand\x20never\x20gets\x20demand.publish\x20advice\x20again;\x20without\x20it,\x20`next`\x20stays\x20the\x20static\x20publish\x20template\x20with\x20a\x20verify-or-supply\x20precondition.'),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection\x20(explicit\x20injection\x20overrides).')})['strict'](),z['object']({'action':z['literal']('service_match'),'service_cap':CapabilityVectorSchema,'demands':z['array'](DemandExtractInputSchema),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'machine_nodes':z['array'](PathMachineNodeSchema),'node_annotations':NodeAnnotationsSchema['optional'](),'appetite':RiskAppetiteEnum['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional'](),'order_amount':z['string']()['optional'](),'max_depth':z['number']()['int']()['min'](0x1)['optional']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data'])['optional']()['describe']('Off-chain\x20evidence\x20kind\x20entering\x20the\x20closure\x20workflow\x20(single-item\x20mode;\x20omit\x20when\x20`items`\x20is\x20given).'),'hash_committed':z['boolean']()['optional']()['describe']('Whether\x20the\x20evidence\x20hash\x20is\x20committed\x20on-chain\x20(authenticity\x20anchor;\x20single-item\x20mode).'),'digital_check_passed':z['boolean']()['optional']()['describe']('OCR\x20/\x20machine\x20check\x20passed\x20(e.g.\x20signature\x20recognized,\x20waybill\x20matched).'),'contradiction':z['boolean']()['optional']()['describe']('A\x20contradicting\x20signal\x20detected\x20(e.g.\x20waybill\x20number\x20mismatch).'),'items':z['array'](z['object']({'id':z['string']()['min'](0x1)['describe']('Caller-side\x20identifier\x20(file\x20name,\x20Proof\x20object\x20id,\x20repository\x20ref...).'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data']),'hash_committed':z['boolean'](),'digital_check_passed':z['boolean']()['optional'](),'contradiction':z['boolean']()['optional'](),'proof_ref':z['string']()['optional']()['describe']('On-chain\x20Proof\x20object\x20reference\x20(WTS\x20proof)\x20when\x20already\x20anchored.')})['strict']())['min'](0x1)['optional']()['describe']('P2-3\x20list\x20mode:\x20review\x20a\x20COLLECTION\x20of\x20evidence\x20items\x20together\x20→\x20structured\x20usable/manual/rejected\x20list\x20plus\x20'+'`proof_candidates`\x20(auto-passed\x20items\x20with\x20their\x20Proof\x20refs)\x20the\x20dispute\x20initiator\x20may\x20reference\x20in\x20the\x20dispute\x20'+'description\x20(human\x20confirms\x20the\x20final\x20selection\x20—\x20never\x20auto-attached).\x20When\x20omitted,\x20single-item\x20mode\x20requires\x20`kind`\x20+\x20`hash_committed`.')})['strict']()['refine'](a=>a['items']!==undefined&&a['items']['length']>0x0||a['kind']!==undefined&&a['hash_committed']!==undefined,{'message':'evidence_review\x20requires\x20either\x20`items`\x20(list\x20mode)\x20or\x20`kind`\x20+\x20`hash_committed`\x20(single-item\x20mode).'}),z['object']({'action':z['literal']('discover_services'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`\x20(from\x20public\x20web\x20data).\x20Enrichment\x20makes\x20same-province\x20neighboring\x20cities\x20detectable;\x20without\x20it\x20only\x20exact/contains/remote\x20relations\x20are\x20deterministically\x20reachable.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness:\x20strict=100%\x20city\x20match\x20(on-site\x20consumption);\x20near=accept\x20neighboring\x20cities;\x20logistics=region\x20representation,\x20soft\x20signal.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'description':z['string']()['optional']()['describe']('Demand\x20description\x20—\x20used\x20to\x20infer\x20sensitivity\x20when\x20omitted\x20(hotel→strict,\x20parcel→logistics).'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20configured\x20local\x20list\x20cache).')})['strict'](),z['object']({'action':z['literal']('discover_demands'),'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'match_policy':z['union']([z['string'](),MatchPolicySchema])['optional']()['describe']('R4\x20private\x20policy\x20(supply_to_demand\x20direction,\x20e.g.\x20preset\x20\x27supplier_hunting\x27),\x20resolved/applied\x20entirely\x20on-device.\x20discover_demands\x20applies\x20gates+excludes\x20only\x20(no\x20private\x20scoring);\x20weights/rerank\x20are\x20reported\x20as\x20not\x20applicable\x20in\x20policy_effect.\x20Omitted:\x20resolved\x20from\x20the\x20stored\x20chain\x20—\x20account\x20persona\x20match\x20config\x20→\x20match-policy.json\x20(general\x20file)\x20→\x20system\x20persona\x20→\x20engine\x20defaults;\x20policy_effect.policy_source\x20reports\x20the\x20winning\x20layer.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20configured\x20local\x20list\x20cache).'),'account':z['string']()['optional']()['describe']('The\x20supplier\x27s\x20account\x20address;\x20its\x20persona\x27s\x20supply_to_demand\x20match\x20config\x20is\x20auto-resolved\x20when\x20no\x20match_policy\x20is\x20passed.')})['strict'](),z['object']({'action':z['literal']('demand_present'),'service_cap':CapabilityVectorSchema,'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'match_policy':z['union']([z['string'](),MatchPolicySchema])['optional']()['describe']('R4\x20private\x20ranking\x20policy\x20(supply_to_demand\x20direction,\x20e.g.\x20preset\x20\x27supplier_hunting\x27),\x20resolved/applied\x20entirely\x20on-device;\x20the\x20policy\x20and\x20its\x20hash\x20never\x20leave\x20this\x20device.\x20Omitted:\x20resolved\x20from\x20the\x20stored\x20chain\x20—\x20account\x20persona\x20match\x20config\x20→\x20match-policy.json\x20(general\x20file)\x20→\x20system\x20persona\x20→\x20engine\x20defaults;\x20policy_effect.policy_source\x20reports\x20the\x20winning\x20layer.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'limit':z['number']()['int']()['min'](0x1)['max'](0x32)['optional']()['describe']('Top-N\x20matched\x20demands\x20to\x20return\x20(default\x205).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20configured\x20local\x20list\x20cache).'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('market_metrics'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration.'),'limit':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Max\x20recent\x20NewOrderEvent\x20events\x20to\x20aggregate\x20for\x20the\x20order-flow\x20(GMV/top-services)\x20window\x20(default\x20100).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'op':z['enum'](['journey_funnel','referral_attribution','customer_relationship','dynamic_pricing'])['describe']('Which\x20operational\x20aggregation\x20to\x20run.'),'due_diligence':z['number']()['int']()['min'](0x0)['optional'](),'orders':z['number']()['int']()['min'](0x0)['optional'](),'completed':z['number']()['int']()['min'](0x0)['optional'](),'reviews':z['number']()['int']()['min'](0x0)['optional'](),'referral_orders':z['array'](z['object']({'id':z['string'](),'referrer':z['string'](),'amount':z['string'](),'closed':z['boolean']()})['strict']())['optional'](),'customer_orders':z['array'](z['object']({'id':z['string'](),'customer':z['string'](),'time':z['number'](),'disputed':z['boolean']()})['strict']())['optional'](),'market_signals':z['object']({'supplyCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20similar\x20Services.'),'demandCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20related\x20Demands.'),'avgPrice':z['string']()['optional']()['describe']('Market\x20average\x20price\x20(smallest-unit\x20string).'),'myPrice':z['string']()['optional']()['describe']('Current\x20price\x20(smallest-unit\x20string).'),'competitorPrices':z['array'](z['string']())['optional']()['describe']('Competitor\x20price\x20list\x20(smallest-unit\x20strings).'),'recentOrderCount':z['number']()['int']()['min'](0x0)['optional']()['describe']('Recent\x20order\x20count.'),'repeatCustomerRate':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Repeat\x20customer\x20rate\x200-1.')})['strict']()['optional']()['describe']('Market\x20signals\x20for\x20the\x20dynamic_pricing\x20op\x20(non-mandatory\x20merchant\x20pricing\x20suggestion).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'service':z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'arbitrations':z['array'](z['string']())['describe']('Bound\x20Arbitration\x20object\x20addresses.'),'compensation_fund':z['string']()['describe']('Compensation\x20fund\x20balance\x20(smallest-unit\x20string).'),'machine':z['union']([z['string'](),z['null']()])['describe']('Bound\x20Machine\x20address\x20(null\x20=\x20none).'),'bPublished':z['boolean']()['describe']('Whether\x20published.')})['strict'](),'orders':z['array'](z['object']({'id':z['string'](),'buyer':z['string'](),'seller':z['string'](),'amount':z['string'](),'status':z['string'](),'allocation':z['union']([z['string'](),z['null']()])['optional']()['describe']('Allocation\x20object\x20(fund-closure\x20evidence).')})['strict']())['describe']('Order\x20history\x20evidence.'),'reviews':z['array'](z['object']({'reviewer':z['string'](),'rating':z['enum'](['like','dislike']),'orderRef':z['string']()['optional'](),'verified':z['boolean']()['optional'](),'timestamp':z['number']()['optional']()})['strict']())['describe']('Review\x20evidence.')})['strict'](),z['object']({'action':z['literal']('match_discover'),'description':z['string']()['describe']('Demand\x20description\x20—\x20drives\x20sensitivity\x20inference\x20+\x20demand\x20capability\x20extraction.'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'budget':z['string']()['optional']()['describe']('Demand\x20price\x20ceiling\x20(smallest-unit\x20string)\x20—\x20price\x20dimension\x20gate.'),'required_capabilities':z['array'](z['string']())['optional']()['describe']('Workflow\x20capabilities\x20the\x20demand\x20REQUIRES\x20(e.g.\x20has_arbitration,\x20has_compensation_fund,\x20has_milestone_nodes,\x20has_refund_path,\x20has_wip_verification,\x20has_messenger,\x20has_buy_guard).'),'category':z['string']()['optional']()['describe']('Category\x20match\x20rules\x20key\x20(e.g.\x20\x27life_service\x27,\x20\x27retail\x27)\x20—\x20applies\x20hard-constraint\x20filtering\x20+\x20re-anchors\x20the\x20six-dimension\x20weights\x20(15\x20§3).\x20Omit\x20=\x20generic\x20six-dimension\x20scoring.'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20configured\x20local\x20list\x20cache).'),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.'),'match_policy':z['union']([z['string'](),MatchPolicySchema])['optional']()['describe']('R4\x20private\x20ranking\x20policy\x20(K5-05\x20§4):\x20a\x20preset\x20id\x20(default,\x20retail,\x20life_service,\x20trust_first,\x20cross_border,\x20cheap_and_fast,\x20enterprise)\x20or\x20an\x20inline\x20policy\x20object.\x20'+'Applied\x20entirely\x20on-device\x20over\x20the\x20recalled\x20candidates\x20—\x20gates/excludes/weights/rerank\x20with\x20honest\x20`policy_effect`\x20reporting;\x20NEVER\x20sent\x20to\x20the\x20data\x20service.\x20'+'Omitted:\x20resolved\x20from\x20the\x20stored\x20chain\x20—\x20account\x20persona\x20match\x20config\x20→\x20match-policy.json\x20(general\x20file)\x20→\x20system\x20persona\x20→\x20engine\x20defaults;\x20policy_effect.policy_source\x20reports\x20the\x20winning\x20layer.')})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'arbitration':z['object']({'object':z['string']()['optional']()['describe']('Arbitration\x20object\x20address.'),'fee':z['string']()['optional']()['describe']('Arbitration\x20fee\x20(smallest-unit\x20string).'),'balance':z['string']()['optional']()['describe']('Capital\x20pool\x20(smallest-unit\x20string).'),'voting_guard_count':z['number']()['int']()['min'](0x0)['optional']()['describe']('Number\x20of\x20voting\x20guards\x20(governance\x20distribution\x20proxy).'),'bPaused':z['boolean']()['optional'](),'location':z['string']()['optional'](),'has_verified_identity':z['boolean']()['optional']()['describe']('A7:\x20whether\x20the\x20arbitrator\x20has\x20a\x20verified\x20on-chain\x20Personal\x20identity\x20(unknown\x20when\x20omitted\x20→\x20neutral).')})['strict'](),'history':z['array'](z['object']({'status':z['string']()['optional']()['describe']('Arb\x20status\x20(e.g.\x20\x27Arbitrated\x27,\x20\x27Finished\x27,\x20\x27Objectionable\x27).'),'time':z['number']()['optional']()['describe']('Dispute\x20creation\x20time\x20(ms\x20epoch).'),'resolved_time':z['number']()['optional']()['describe']('Resolution\x20time\x20(ms\x20epoch).'),'indemnity_amount':z['string']()['optional']()['describe']('Compensation\x20paid\x20(smallest-unit\x20string;\x20\x270\x27/absent\x20=\x20none).'),'feedback_positive':z['boolean']()['optional'](),'objected':z['boolean']()['optional']()})['strict']())['optional']()['describe']('Historical\x20Arb\x20cases\x20(pre-aggregated;\x20the\x20on-chain\x20reverse\x20index\x20is\x20a\x20wow\x20data\x20layer\x20deliverable).'),'entity_votes':z['object']({'like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('0-1\x20community\x20like\x20ratio.'),'favor':z['boolean']()['optional']()['describe']('Whether\x20peers\x20favorited\x20this\x20entity.')})['strict']()['optional'](),'fee_median':z['string']()['optional']()['describe']('Market\x20fee\x20median\x20(smallest-unit\x20string)\x20for\x20the\x20fee-reasonableness\x20rule.'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).\x20Used\x20to\x20auto-fetch\x20real\x20Arb\x20history\x20when\x20`history`\x20is\x20omitted.')})['strict'](),z['object']({'action':z['literal']('account_events'),'account':z['string']()['optional']()['describe']('Account\x20address\x20to\x20watch\x20for\x20(default\x20account\x20when\x20omitted).'),'categories':z['array'](z['string']())['optional']()['describe']('Watcher\x20ids\x20to\x20run\x20(omit\x20=\x20all\x20registered\x20watchers).'),'reviews':z['array'](z['object']({'reviewer':z['string']()['describe']('Reviewer\x20address.'),'rating':z['enum'](['like','dislike']),'tags':z['array'](z['string']())['optional'](),'comment':z['string']()['optional'](),'orderRef':z['string']()['optional']()['describe']('Associated\x20order\x20id\x20—\x20the\x20credential\x20for\x20no-order-no-review\x20verification.'),'timestamp':z['number']()['optional']()['describe']('Submission\x20time\x20(ms\x20epoch).'),'verified':z['boolean']()['optional']()['describe']('Whether\x20the\x20review\x20carries\x20a\x20completed-order\x20credential;\x20recomputed\x20when\x20order_history\x20is\x20supplied.')})['strict']())['optional']()['describe']('Review\x20rows\x20(from\x20a\x20Service\x27s\x20ReviewRepository,\x20via\x20onchain_table_data)\x20—\x20enables\x20the\x20reputation_integrity\x20watcher\x20(verification,\x20stats,\x20manipulation\x20detection).'),'order_history':z['array'](z['object']({'id':z['string']()['describe']('Order\x20object\x20id.'),'status':z['string']()['describe']('Order\x20status\x20(e.g.\x20\x27completed\x27,\x20\x27success\x27).')})['strict']())['optional']()['describe']('Order\x20history\x20used\x20to\x20re-derive\x20review\x20credentials\x20(no-order-no-review).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).')})['strict']()]);export const EvaluationOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'actions':z['array'](ArbGameActionSchema),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'actions':z['array'](NodeGameActionSchema),'cooperation':CooperationInfoSchema['optional'](),'value_at_stake':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20value\x20at\x20stake.'),'risk_exposure':z['string']()['optional']()['describe']('Compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'report':CapabilityGapReportSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'plan':CompositePlanSchema})['strict'](),z['object']({'action':z['literal']('compose_generation'),'feasibility':z['enum'](['ready','infeasible'])['describe']('ready\x20=\x20a\x20materializable\x20multi-object\x20Plan\x20was\x20produced;\x20infeasible\x20=\x20NO\x20plan\x20is\x20returned\x20(an\x20unverified\x20plan\x20never\x20leaks)\x20—\x20read\x20`blockers`\x20for\x20the\x20full\x20diagnosis.'),'chain':z['string']()['optional']()['describe']('The\x20matched\x20pilot\x20scenario\x20chain\x20(e.g.\x20\x27chain.data_subscription\x27).\x20Absent\x20when\x20infeasible.'),'carrier':z['string']()['optional']()['describe']('The\x20carrier\x20template\x20id\x20the\x20chain\x20mapped\x20onto\x20(a\x20template\x20=\x20module\x20preset).\x20Absent\x20when\x20infeasible.'),'pilot_chains':z['array'](z['string']())['describe']('The\x20pilot\x20boundary:\x20the\x20ONLY\x20chains\x20the\x20G-A\x20generator\x20carries\x20today\x20—\x20an\x20adopted\x20set\x20outside\x20them\x20is\x20COMPOSE-CHAIN-UNMAPPED,\x20honestly\x20disclosed.'),'adopted':z['array'](z['object']({'id':z['string']()['describe']('Adopted\x20capability\x20id.'),'via':z['enum'](['selection','intent_signal'])['describe']('selection\x20=\x20merchant-confirmed;\x20intent_signal\x20=\x20evidence-gated\x20signal\x20match\x20on\x20the\x20intent\x20text.'),'matched_signals':z['array'](z['string']())['optional']()['describe']('The\x20intent-signal\x20patterns\x20that\x20matched\x20(present\x20when\x20via=\x27intent_signal\x27\x20—\x20falsifiable\x20hit\x20evidence).'),'signals_tested':z['number']()['int']()['min'](0x0)['optional']()['describe']('Number\x20of\x20intent-signal\x20patterns\x20tested\x20(present\x20when\x20via=\x27intent_signal\x27).')})['strict']())['describe']('The\x20evidence-gated\x20adoption\x20set\x20(industry/pain\x20scores\x20NEVER\x20adopt).'),'blockers':z['array'](z['object']({'code':z['string'](),'detail':z['string']()})['strict']())['describe']('Lattice\x20+\x20compile\x20+\x20audit\x20blockers;\x20non-empty\x20=\x20infeasible.\x20Codes:\x20COMPOSE-UNKNOWN-CAPABILITY\x20/\x20COMPOSE-REQUIRES-MISSING\x20/\x20COMPOSE-EXCLUDES-CONFLICT\x20/\x20COMPOSE-NO-CAPABILITY-EVIDENCE\x20/\x20COMPOSE-CHAIN-UNMAPPED\x20/\x20COMPOSE-CARRIER-UNKNOWN\x20/\x20REVIEW-<rule_id>\x20(reflux\x20audit\x20finding).'),'plan':z['record'](z['string'](),z['unknown']())['optional']()['describe']('ready\x20ONLY:\x20the\x20multi-object\x20Plan\x20(Service+Machine+Guard+...\x20steps).\x20Pass\x20it\x20VERBATIM\x20as\x20`plan`\x20to\x20benchmark_migration_operation\x20action=\x27plan_execute\x27\x20—\x20never\x20hand-mutate\x20steps.\x20Stamped\x20with\x20catalog_version;\x20plan_execute\x20refuses\x20a\x20plan\x20from\x20a\x20stale\x20catalog.'),'audit':z['object']({'blocking':z['boolean']()['describe']('false\x20=\x20the\x20plan\x20passed\x20the\x20reflux\x20audit.'),'findings':z['array'](z['object']({'level':z['string']()['describe']('Finding\x20level\x20(e.g.\x20\x27medium\x27\x20/\x20\x27low\x27).'),'rule_id':z['string']()['describe']('Audit\x20rule\x20id.'),'title':z['string']()['describe']('One-line\x20finding\x20title.')})['strict']())['describe']('Non-blocking\x20findings\x20worth\x20reading\x20before\x20materializing\x20(blocking\x20ones\x20surfaced\x20as\x20REVIEW-*\x20blockers\x20instead).')})['strict']()['optional']()['describe']('ready\x20ONLY:\x20the\x20reflux\x20audit\x20summary\x20over\x20the\x20generated\x20plan.'),'templates_version':z['number']()['int']()['describe']('The\x20template\x20catalog\x20sentinel\x20the\x20generation\x20ran\x20against.'),'supply_chain':z['array'](z['record'](z['string'](),z['unknown']()))['optional']()['describe']('Present\x20when\x20procurement\x20promises\x20landed\x20in\x20the\x20plan:\x20the\x20per-promise\x20emission\x20disclosure\x20(steps\x20/\x20inputs\x20/\x20on-chain\x20primitives\x20/\x20merchant-duty\x20notes).')})['strict'](),z['object']({'action':z['literal']('demand_match'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema,'order':OperationBridgeSchema['describe']('Transaction-formation\x20bridge:\x20create\x20the\x20Order\x20on\x20this\x20service\x20(service.order_new)\x20once\x20selected.')})['strict']())})['strict'](),z['object']({'action':z['literal']('service_match'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'ranked_paths':z['array'](PathOutputSchema),'optimal_path':PathOutputSchema['optional'](),'foregone_terminals':z['array'](z['string']()),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'review':z['object']({'status':z['enum'](['auto_pass','auto_reject','manual_review'])['describe']('Review\x20gate\x20verdict.'),'reason':z['string']()['describe']('Deterministic\x20reason\x20for\x20the\x20verdict.')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_services'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'services':z['array'](z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'name':z['string']()['optional'](),'location':z['string']()['optional']()['describe']('Service.location\x20raw\x20string;\x20absent\x20=\x20merchant\x20location\x20hygiene\x20issue.'),'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict']())['describe']('Services\x20ranked\x20by\x20location\x20fit\x20(satisfied\x20first,\x20score\x20desc).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'coverage':QueryCoverageSchema['describe']('Honest\x20enumeration\x20scope;\x20event_window\x20is\x20never\x20a\x20complete\x20chain\x20universe.'),'scope_advice':z['object']({'search_terms':z['array'](z['string']())['describe']('Terms\x20to\x20widen\x20enumeration\x20with\x20(location_any).'),'ai_enrichment_note':z['string']()['describe']('How\x20the\x20AI\x20should\x20expand\x20scope\x20(public\x20web\x20data,\x20consent-gated).')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_demands'),'demands':z['array'](z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string']()['describe']('Demand\x20description.'),'location':z['string']()['describe']('Demand\x20location.'),'presenters_count':z['number']()['describe']('Number\x20of\x20merchants\x20who\x20already\x20presented\x20to\x20this\x20demand.'),'permission':z['string']()['describe']('Demand\x20owner\x20permission\x20object.')})['strict']())['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20(client-side\x20location\x20filtered).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'match_route':z['enum'](['remote_index','legacy_enumeration'])['optional']()['describe']('Demand\x20recall\x20source:\x20remote_index\x20=\x20one-shot\x20/v1/match?kind=Demand\x20recall\x20with\x20payloads\x20attached\x20(K5-10\x20§4.2);\x20legacy_enumeration\x20=\x20full\x20on-chain/GraphQL\x20enumeration\x20(also\x20the\x20honest\x20degrade\x20path,\x20stamped\x20MATCH_INDEX_FALLBACK\x20in\x20coverage).'),'coverage':QueryCoverageSchema['describe']('Honest\x20enumeration\x20scope;\x20event_window\x20is\x20never\x20a\x20complete\x20chain\x20universe.'),'policy_effect':PolicyEffectSchema['optional']()['describe']('Present\x20only\x20when\x20a\x20match_policy\x20was\x20supplied:\x20the\x20private-policy\x20effect\x20report\x20for\x20the\x20gates\x20applied\x20in\x20this\x20stage\x20(R4).')})['strict'](),z['object']({'action':z['literal']('demand_present'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())['describe']('Demands\x20matched\x20to\x20the\x20service\x20(score\x20desc),\x20each\x20with\x20its\x20present\x20path.'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'match_route':z['enum'](['remote_index','legacy_enumeration'])['optional']()['describe']('Demand\x20recall\x20source:\x20remote_index\x20=\x20one-shot\x20/v1/match?kind=Demand\x20recall\x20with\x20payloads\x20attached\x20(K5-10\x20§4.2);\x20legacy_enumeration\x20=\x20full\x20on-chain/GraphQL\x20enumeration\x20(also\x20the\x20honest\x20degrade\x20path,\x20stamped\x20MATCH_INDEX_FALLBACK\x20in\x20coverage).'),'coverage':QueryCoverageSchema['describe']('Honest\x20enumeration\x20scope;\x20event_window\x20is\x20never\x20a\x20complete\x20chain\x20universe.'),'policy_effect':PolicyEffectSchema['optional']()['describe']('Present\x20only\x20when\x20a\x20match_policy\x20was\x20supplied:\x20the\x20full\x20private-policy\x20effect\x20report\x20(R4).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'result':z['union']([z['object']({'due_diligence':z['number']()['int']()['min'](0x0),'orders':z['number']()['int']()['min'](0x0),'completed':z['number']()['int']()['min'](0x0),'reviews':z['number']()['int']()['min'](0x0),'dd_to_order_rate':z['number'](),'order_completion_rate':z['number'](),'completion_to_review_rate':z['number']()})['strict'](),z['object']({'referrals':z['number']()['int']()['min'](0x0),'closed_referrals':z['number']()['int']()['min'](0x0),'gmv':z['string'](),'by_referrer':z['array'](z['object']({'referrer':z['string'](),'referrals':z['number']()['int']()['min'](0x0),'gmv':z['string']()})['strict']())})['strict'](),z['array'](z['object']({'customer':z['string'](),'order_count':z['number']()['int']()['min'](0x0),'last_order_time':z['number']()['nullable'](),'dispute_count':z['number']()['int']()['min'](0x0)})['strict']()),z['object']({'action':z['enum'](['increase','decrease','maintain']),'suggestedRange':z['object']({'min':z['string'](),'max':z['string']()})['strict']()['optional'](),'reason':z['string'](),'confidence':z['number']()['min'](0x0)['max'](0x1),'adjustmentPercent':z['number']()['optional']()})['strict']()])})['strict'](),z['object']({'action':z['literal']('market_metrics'),'total_services':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Service\x20objects\x20enumerated.'),'active_services':z['number']()['int']()['min'](0x0)['describe']('Published\x20and\x20not\x20paused\x20Service\x20objects.'),'total_demands':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Demand\x20objects\x20enumerated.'),'open_demands':z['number']()['int']()['min'](0x0)['describe']('Demands\x20with\x20no\x20presenter\x20yet.'),'total_arbs':z['number']()['int']()['min'](0x0)['describe']('All\x20Arb\x20dispute\x20cases\x20enumerated.'),'open_arbs':z['number']()['int']()['min'](0x0)['describe']('Arb\x20cases\x20not\x20yet\x20Finished/Withdrawn.'),'supply_demand_ratio':z['number']()['nullable']()['describe']('open_demands\x20/\x20active_services\x20(null\x20when\x20no\x20active\x20supply).'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.'),'order_flow':z['object']({'order_count':z['number']()['int']()['min'](0x0)['describe']('Recent\x20order\x20count\x20(finite\x20window).'),'gmv':z['string']()['describe']('Recent\x20GMV\x20—\x20sum\x20of\x20order\x20amounts\x20in\x20smallest-unit\x20(bigint\x20as\x20string).'),'top_services':z['array'](z['object']({'service':z['string']()['describe']('Service\x20address.'),'orders':z['number']()['int']()['min'](0x0)['describe']('Order\x20count\x20for\x20this\x20service\x20in\x20the\x20window.')})['strict']())['describe']('Per-service\x20order\x20count,\x20top-N\x20by\x20volume.'),'window':z['literal']('recent')['describe']('Honest\x20window\x20label:\x20events\x20are\x20paged,\x20not\x20full-history.'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.')})['strict']()['describe']('Recent\x20order-flow\x20scale\x20metrics\x20(finite\x20window;\x20full\x20history\x20requires\x20indexer).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'signals':z['array'](z['object']({'kind':z['enum'](['fake_order','fake_review','shell_merchant','reputation_trade']),'code':z['enum'](['self_buy','reciprocal_loop','no_allocation','reviews_unverified','reviewer_duplicate','review_time_burst','shell_no_arbitration','shell_funded_no_arbitration','shell_no_machine','reputation_bound'])['describe']('Stable\x20machine-readable\x20signal\x20discriminator.'),'severity':z['enum'](['high','medium','low']),'description':z['string'](),'refs':z['array'](z['string']())['optional']()['describe']('Object\x20addresses\x20backing\x20the\x20signal\x20(orders/services).')})['strict']())['describe']('Detected\x20anti-cheat\x20signals\x20(pluggable\x20negative\x20factors).')})['strict'](),z['object']({'action':z['literal']('match_discover'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'match_route':z['enum'](['remote_index','legacy_enumeration'])['optional']()['describe']('Candidate\x20source:\x20remote_index\x20=\x20one-shot\x20/v1/match\x20recall\x20+\x20public\x20coarse\x20scoring\x20(K5-11\x20R3);\x20legacy_enumeration\x20=\x20on-chain/GraphQL\x20enumeration.'),'location_gate':z['object']({'passed':z['number']()['int']()['min'](0x0)['describe']('Services\x20that\x20passed\x20the\x20location\x20gate.'),'failed':z['number']()['int']()['min'](0x0)['describe']('Services\x20the\x20gate\x20excluded.'),'fallback_used':z['boolean']()['describe']('F-RQ-04:\x20true\x20=\x20every\x20service\x20failed\x20the\x20gate\x20and\x20gate-failed\x20services\x20were\x20RETAINED\x20as\x20candidates\x20(presented-supply\x20fallback)\x20so\x20the\x20market\x20is\x20never\x20silently\x20empty.'),'note':z['string']()['optional']()['describe']('Present\x20when\x20fallback_used:\x20how\x20to\x20read\x20the\x20fallback\x20candidate\x20set.')})['strict']()['describe']('F-RQ-04\x20gate\x20visibility:\x20pass/fail\x20counts\x20and\x20fallback\x20state\x20—\x20a\x20zero-pass\x20market\x20is\x20never\x20silent.'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'location':z['object']({'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict'](),'result':EvaluationResultSchema,'server_match':z['object']({'policy_version':z['string']()['describe']('Frozen\x20server\x20policy\x20that\x20produced\x20this\x20evaluation\x20(e.g.\x20public-baseline-1).'),'total':z['number']()['min'](0x0)['max'](0x64)['describe']('Weighted\x20public\x20score\x20over\x20non-unknown\x20dimensions.'),'breakdown':z['array'](z['object']({'dimension':z['string'](),'weight':z['number'](),'score':z['number']()['nullable']()['describe']('null\x20=\x20dimension\x20unknown\x20(see\x20unknown_rules),\x20never\x20fabricated.')})['strict']()),'unknown_rules':z['array'](z['string']())['describe']('Dimensions\x20withheld\x20(incl.\x20trust\x20cold-start\x20prior)\x20—\x20honesty\x20ledger.'),'red_flags':z['array'](z['string']())['describe']('Deterministic\x20warnings\x20(price_over_budget,\x20missing_capability:*).'),'channels':z['array'](z['string']())['describe']('Recall\x20channels\x20that\x20surfaced\x20this\x20candidate\x20(structured,\x20bm25).'),'rrf':z['number']()['describe']('Reciprocal-rank\x20fusion\x20score\x20across\x20recall\x20channels.')})['strict']()['optional']()['describe']('Server-side\x20public-baseline\x20evaluation;\x20present\x20only\x20on\x20the\x20remote_index\x20route.')})['strict']())['describe']('Location-gated\x20services\x20with\x20their\x206-dimension\x20match\x20result\x20(scored\x20only\x20when\x20the\x20location\x20gate\x20passed).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'coverage':QueryCoverageSchema['describe']('Honest\x20enumeration\x20scope;\x20event_window\x20is\x20never\x20a\x20complete\x20chain\x20universe.'),'scope_advice':z['object']({'search_terms':z['array'](z['string']()),'ai_enrichment_note':z['string']()})['strict'](),'policy_effect':PolicyEffectSchema['optional']()['describe']('Present\x20only\x20when\x20a\x20match_policy\x20was\x20supplied:\x20the\x20full\x20private-policy\x20effect\x20report\x20(R4).')})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'trust':EvaluationResultSchema,'fairness':EvaluationResultSchema,'combined':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('account_events'),'events':z['array'](z['object']({'id':z['string'](),'category':z['string'](),'priority':z['enum'](['required','recommended','info','reminder']),'title':z['string'](),'message':z['string'](),'action':z['string']()['optional'](),'object_ref':z['string']()['optional'](),'timestamp':z['number']()})['strict']())})['strict']()])['describe']('Evaluation\x20result\x20—\x20shape\x20depends\x20on\x20action')})['strict']();
1
+ import{z}from'zod';import{ACTOR_ROLES}from'../../role/types.js';const RiskLevelEnum=z['enum'](['low','medium','high']),RiskAppetiteEnum=z['enum'](['conservative','balanced','aggressive']),QueryCoverageSchema=z['object']({'mode':z['enum'](['chain_universe','event_window','known_objects']),'complete':z['boolean'](),'truncated':z['boolean'](),'total_enumerated':z['number']()['int']()['min'](0x0),'chain_id':z['string']()['optional'](),'degraded_reasons':z['array'](z['string']())})['strict'](),PerspectiveEnum=z['enum'](ACTOR_ROLES),ArbStatusEnum=z['enum'](['Principal_confirming','Arbitrator_confirming','Voting','Arbitrated','Objectionable','Finished','Withdrawn']),ArbPerspectiveEnum=z['enum'](['customer','merchant','arbitrator']),ExecutionPathEnum=z['enum'](['order_holder','permission','named_operator','not_available']),EvaluationLevelEnum=z['enum'](['low','medium_low','medium_high','high']),IndustryEnum=z['string']()['regex'](/^[a-z][a-z0-9_]*$/,'industry\x20must\x20be\x20lowercase\x20snake_case')['describe']('Industry\x20scenario.\x20Builtin:\x20freelance,\x20rental,\x20education,\x20travel,\x20subscription,\x20retail,\x20general,\x20custom\x20—\x20plus\x20any\x20registered\x20custom\x20industry.'),RegionSchema=z['object']({'mode':z['enum'](['remote','physical']),'country':z['string']()['optional'](),'province':z['string']()['optional'](),'city':z['string']()['optional'](),'raw':z['string']()['describe']('Original\x20location\x20string\x20(for\x20traceability).')})['strict'](),WorkflowCapabilitiesSchema=z['object']({'has_arbitration':z['boolean'](),'has_refund_path':z['boolean'](),'has_milestone_nodes':z['boolean'](),'has_compensation_fund':z['boolean'](),'has_wip_verification':z['boolean'](),'has_messenger':z['boolean'](),'has_buy_guard':z['boolean'](),'has_dynamic_pricing':z['boolean'](),'is_published':z['boolean'](),'is_paused':z['boolean']()})['strict']();export const CapabilityVectorSchema=z['object']({'id':z['string']()['describe']('Service/Demand\x20address.'),'kind':z['enum'](['service','demand'])['describe']('Whether\x20this\x20is\x20a\x20service\x20or\x20demand.'),'owner':z['string']()['optional'](),'industry':IndustryEnum['describe']('Industry\x20scenario.'),'industry_confidence':z['number']()['min'](0x0)['max'](0x1)['optional'](),'region':RegionSchema,'price_min':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'price_max':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'token_type':z['string']()['optional'](),'ticket_size':z['enum'](['micro','small','medium','large'])['optional'](),'trust_score':z['number']()['min'](0x0)['max'](0x64)['optional'](),'reputation_like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional'](),'arbitration_independent':z['boolean']()['optional'](),'merchant_history_count':z['number']()['int']()['min'](0x0)['optional'](),'capabilities':WorkflowCapabilitiesSchema,'tags':z['array'](z['string']())['optional'](),'keywords':z['array'](z['string']())['optional']()})['strict']();const ServiceExtractInputSchema=z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'sales':z['array'](z['object']({'name':z['string']()['optional'](),'price':z['string']()['describe']('Smallest-unit\x20amount\x20(string).'),'wip_hash':z['string']()['optional']()})['strict']())['optional'](),'arbitrations':z['array'](z['string']())['optional'](),'compensation_fund':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'buy_guard':z['string']()['nullable']()['optional'](),'machine':z['string']()['nullable']()['optional'](),'um':z['string']()['nullable']()['optional'](),'bPublished':z['boolean']()['optional'](),'bPaused':z['boolean']()['optional'](),'owner':z['string']()['optional'](),'order_allocators':z['unknown']()['optional'](),'buyer_feedback':z['object']({'total':z['number']()['int']()['min'](0x0),'likes':z['number']()['int']()['min'](0x0),'completed_orders':z['number']()['int']()['min'](0x0)['optional']()})['strict']()['optional'](),'rewards':z['array'](z['object']({'object':z['string']()['describe']('Reward\x20object\x20address.'),'balance':z['string']()['optional']()['describe']('Pool\x20balance,\x20smallest-unit\x20string\x20(Balance<T>\x20held\x20on-chain).'),'amount_mode':z['enum'](['fixed','submission_computed'])['optional']()['describe']('fixed\x20=\x20amounts\x20self-computable\x20from\x20the\x20object;\x20submission_computed\x20=\x20amounts\x20resolve\x20from\x20the\x20buyer\x27s\x20passport\x20submission\x20at\x20payout\x20time\x20(not\x20clamped\x20on-chain).'),'expiration_ms':z['string']()['nullable']()['optional']()['describe']('Claim-window\x20bound\x20(guard\x20expiration,\x20ms-epoch\x20string);\x20null\x20=\x20no\x20expiry\x20read.')})['strict']())['optional']()})['strict'](),DemandExtractInputSchema=z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'rewards':z['array'](z['string']())['optional'](),'um':z['string']()['nullable']()['optional'](),'owner':z['string']()['optional']()})['strict'](),PresenterHistorySchema=z['array'](z['object']({'demand_id':z['string']()['optional']()['describe']('Demand\x20object\x20that\x20received\x20the\x20presentation.'),'presenter':z['string']()['optional']()['describe']('F-RQ-10:\x20the\x20presenter\x20(service\x20object\x20address)\x20this\x20record\x20is\x20about\x20—\x20records\x20carrying\x20it\x20become\x20that\x20service\x27s\x20counterparty\x20trust\x20evidence\x20(the\x20on-chain\x20writer\x20is\x20the\x20demand\x20OWNER,\x20so\x20the\x20signal\x20cannot\x20be\x20self-authored\x20by\x20the\x20merchant);\x20omit\x20for\x20legacy\x20global-only\x20acceptance\x20scoring.'),'presenter_service':z['string']()['optional']()['describe']('tv8\x20F-28:\x20the\x20SERVICE\x20object\x20address\x20the\x20record\x20is\x20about\x20(the\x20value\x20side\x20of\x20the\x20on-chain\x20DemandPresenter\x20entry\x20—\x20the\x20table\x20key\x20is\x20the\x20presenter\x20ACCOUNT).\x20Dual-domain\x20matching\x20accepts\x20either\x20this\x20or\x20`presenter`;\x20chain-faithful\x20readers\x20fill\x20BOTH.'),'acceptance_score':z['number']()['nullable']()['describe']('Demand\x20owner\x27s\x20acceptance\x20score\x20(u8\x20on-chain,\x200-100\x20scale).\x20null\x20=\x20not\x20yet\x20rated.'),'feedback_time':z['number']()['optional']()['describe']('Feedback\x20timestamp\x20(ms\x20or\x20s,\x20informational\x20only).')})['strict']())['describe']('P2-2:\x20presenter\x20acceptance\x20history\x20(demand-side\x20acceptance_score\x20backflow)\x20for\x20the\x20SINGLE\x20party\x20being\x20evaluated\x20'+'(e.g.\x20the\x20merchant\x20behind\x20the\x20candidate\x20service\x20set,\x20or\x20the\x20demand\x20owner\x20being\x20matched).\x20Collect\x20via\x20'+'onchain_table_item_demand_presenter\x20across\x20that\x20party\x27s\x20Demand\x20presenter\x20tables.\x20When\x20the\x20candidate\x20set\x20spans\x20'+'multiple\x20unrelated\x20parties,\x20evaluate\x20per-party\x20or\x20omit\x20—\x20the\x20acceptance\x20rule\x20scores\x20neutral\x20without\x20history.'),PolicyGateSchema=z['object']({'dim':z['string']()['describe']('Gate\x20dimension.\x20Enforced\x20client-side:\x20live,\x20price,\x20arb,\x20compensation,\x20machine,\x20messenger,\x20buy_guard,\x20wip_verify,\x20text,\x20owner.\x20Others\x20are\x20reported\x20as\x20ignored\x20(not\x20enforceable\x20on-device\x20yet).'),'op':z['string']()['optional']()['describe']('Comparison\x20operator\x20(eq/lte/gte/in/not_in/must_contain/must_not_contain)\x20—\x20validated\x20per\x20dim\x20at\x20apply\x20time.'),'value':z['union']([z['boolean'](),z['number'](),z['string'](),z['array'](z['string']())])['optional'](),'params':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Extra\x20params;\x20`from_budget:\x20true`\x20on\x20a\x20price\x20gate\x20uses\x20the\x20request\x20budget\x20as\x20the\x20threshold.')})['strict'](),PolicyExcludeSchema=z['object']({'dim':z['string']()['describe']('Exclude\x20dimension.\x20Enforced\x20client-side:\x20blacklist\x20(objects/owners\x20lists).\x20anti_cheat/structure\x20dims\x20are\x20reported\x20as\x20ignored\x20(no\x20client-side\x20facet).'),'objects':z['array'](z['string']())['optional'](),'owners':z['array'](z['string']())['optional'](),'flags':z['array'](z['string']())['optional'](),'source':z['array'](z['string']())['optional'](),'rule':z['string']()['optional']()})['strict']();export const MatchPolicySchema=z['object']({'policy_id':z['string']()['min'](0x1),'version':z['number']()['int']()['nonnegative']()['optional'](),'direction':z['enum'](['demand_to_supply','supply_to_demand'])['optional']()['describe']('Default\x20demand_to_supply.\x20A\x20demand_to_supply\x20policy\x20drives\x20match_discover;\x20a\x20supply_to_demand\x20policy\x20drives\x20demand_present\x20/\x20discover_demands\x20(and\x20is\x20rejected\x20by\x20match_discover).'),'unknown_policy':z['enum'](['pass','drop','neutral_score'])['optional']()['describe']('What\x20a\x20gate\x20with\x20missing\x20input\x20does\x20(K5-05\x20axiom\x203).\x20Default\x20neutral_score\x20(=\x20pass,\x20reported).'),'gates':z['array'](PolicyGateSchema)['optional'](),'excludes':z['array'](PolicyExcludeSchema)['optional'](),'weights':z['record'](z['string'](),z['number']()['min'](0x0))['optional']()['describe']('demand_match\x20rule\x20id\x20→\x20weight\x20(region/industry/price/trust/capabilities/tags/acceptance).\x20Unregistered\x20ids\x20are\x20reported\x20as\x20ignored.'),'rerank':z['object']({'diversity':z['object']({'by':z['enum'](['owner','permission']),'max_per_group':z['number']()['int']()['min'](0x1)})['strict']()['optional']()['describe']('Greedy\x20per-group\x20cap\x20over\x20the\x20score-ordered\x20list.\x20`permission`\x20is\x20not\x20enforceable\x20client-side\x20yet\x20(reported\x20ignored);\x20use\x20`owner`.'),'explore':z['unknown']()['optional'](),'llm':z['unknown']()['optional'](),'fairness':z['unknown']()['optional']()})['strict']()['optional'](),'recall':z['unknown']()['optional']()['describe']('Server/recall\x20directives\x20—\x20accepted\x20for\x20portability,\x20not\x20enforceable\x20from\x20the\x20client\x20(reported\x20ignored).'),'verify':z['unknown']()['optional']()['describe']('Facet\x20verification\x20directives\x20—\x20accepted\x20for\x20portability,\x20not\x20enforceable\x20client-side\x20(reported\x20ignored).'),'output':z['object']({'top_n':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional'](),'explain':z['boolean']()['optional'](),'evidence_chain':z['unknown']()['optional'](),'coverage_report':z['unknown']()['optional']()})['strict']()['optional']()})['strict']();const PolicyEffectSchema=z['object']({'policy_id':z['string'](),'version':z['number']()['int']()['nonnegative']()['optional'](),'direction':z['enum'](['demand_to_supply','supply_to_demand']),'policy_hash':z['string']()['describe']('sha256\x20of\x20the\x20canonical\x20policy\x20JSON\x20—\x20local\x20reproducibility\x20fingerprint,\x20never\x20uploaded.'),'policy_source':z['enum'](['factory_defaults','system_persona','general_file','account_persona','request'])['describe']('Which\x20layer\x20supplied\x20the\x20policy\x20(lowest\x20→\x20highest:\x20engine\x20defaults\x20<\x20system\x20persona\x20<\x20match-policy.json\x20<\x20account\x20persona\x20<\x20request/Prompt).\x20factory_defaults\x20never\x20appears\x20here\x20—\x20with\x20no\x20stored\x20policy\x20there\x20is\x20no\x20policy_effect;\x20the\x20standing\x20judgment\x20`match`\x20defaults\x20rule\x20instead.'),'unknown_policy':z['enum'](['pass','drop','neutral_score']),'dropped':z['array'](z['object']({'object':z['string'](),'reason':z['string']()})['strict']())['describe']('Candidates\x20eliminated\x20by\x20a\x20gate/exclude,\x20each\x20with\x20its\x20reason.'),'unknown_kept':z['array'](z['object']({'object':z['string'](),'dim':z['string'](),'reason':z['string']()})['strict']())['describe']('Gate\x20inputs\x20that\x20were\x20missing;\x20candidate\x20kept\x20under\x20pass/neutral_score\x20semantics\x20(K5-05\x20axiom\x203).'),'weights_applied':z['record'](z['string'](),z['number']())['describe']('demand_match\x20rule\x20weights\x20overridden\x20by\x20the\x20policy.'),'rerank':z['string']()['describe']('Final\x20private\x20ordering\x20in\x20effect.'),'deferred_by_diversity':z['number']()['int']()['min'](0x0),'ignored':z['array'](z['string']())['describe']('Policy\x20directives\x20not\x20enforceable\x20in\x20this\x20build\x20—\x20reported,\x20never\x20silently\x20dropped.'),'privacy':z['string']()})['strict'](),UserInjectionSchema=z['object']({'intent':z['string']()['optional']()['describe']('Free-text\x20intent.'),'preferences':z['record'](z['string'](),z['unknown']())['optional'](),'requirements':z['array'](z['object']({'rule_id':z['string'](),'condition':z['enum'](['require','forbid']),'note':z['string']()['optional']()})['strict']())['optional']()['describe']('Hard\x20red\x20lines\x20(block\x20when\x20violated).'),'overrides':z['object']({'rules':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional'](),'weight':z['number']()['optional']()})['strict']())['optional'](),'data_sources':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional']()})['strict']())['optional']()})['strict']()['optional']()['describe']('Enable/disable/reweight\x20rules\x20and\x20data\x20sources.')})['strict'](),OperationBridgeSchema=z['object']({'operation':z['string']()['describe']('Next\x20on-chain\x20operation\x20label:\x20demand.present\x20|\x20demand.present_guarded\x20|\x20demand.publish\x20|\x20service.order_new\x20|\x20demand.feedback\x20|\x20demand.await_presenters\x20(the\x20last\x20two\x20are\x20F-RQ-06\x20live-state\x20derivations).'),'operation_type':z['enum'](['demand','service'])['describe']('The\x20onchain_operations\x20operation_type\x20to\x20use.'),'preconditions':z['array'](z['string']())['describe']('Precondition\x20checklist\x20to\x20verify\x20(query/watch)\x20before\x20writing.'),'rationale':z['string']()['describe']('Stable\x20guidance\x20describing\x20the\x20order-formation\x20path.'),'state':z['object']({'demand_object':z['string'](),'presenters_count':z['number']()['int']()['min'](0x0)['nullable']()})['strict']()['optional']()['describe']('F-RQ-06\x20(prescription\x20⑫):\x20present\x20ONLY\x20when\x20`next`\x20was\x20derived\x20from\x20a\x20LIVE\x20on-chain\x20Demand\x20read\x20(demand_match\x20demand_object)\x20—\x20presenters_count\x20is\x20the\x20match-time\x20chain\x20value;\x20null\x20=\x20live\x20read\x20failed\x20(verify-first\x20gate).\x20Absent\x20=\x20static\x20template\x20bridge,\x20no\x20live\x20state\x20consulted.')})['strict'](),ArbGameActionSchema=z['object']({'action':z['string']()['describe']('Recommended\x20move\x20(e.g.\x20\x27confirm\x27,\x20\x27vote\x27,\x20\x27objection\x27,\x20\x27arb_withdraw\x27).'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Favorability\x200-100\x20for\x20the\x20perspective.'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points.'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),NodeForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'consequence':z['string']()['optional']()['describe']('Consequence\x20hint\x20(completion/refund\x20path).'),'weight':z['number']()['optional']()['describe']('Forward\x20weight\x20(accumulates\x20toward\x20the\x20pair\x27s\x20threshold).')})['strict'](),NodeGameActionSchema=z['object']({'forward':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Net\x20favorability\x200-100\x20for\x20the\x20perspective\x20(gain\x20−\x20risk).'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points.'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),PathMachineForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'permissionIndex':z['number']()['nullable']()['optional'](),'namedOperator':z['string']()['nullable']()['optional'](),'guard':z['string']()['nullable']()['optional'](),'weight':z['number']()['nullable']()['optional']()})['strict'](),PathMachineNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name.'),'pairs':z['array'](z['object']({'prev_node':z['string'](),'threshold':z['number']()['optional'](),'forwards':z['array'](PathMachineForwardSchema)['optional']()})['strict']())['optional']()})['strict'](),NodeAnnotationsSchema=z['object']({'completed':z['array'](z['string']())['optional'](),'refunded':z['array'](z['string']())['optional']()})['strict'](),PathOutputSchema=z['object']({'id':z['string'](),'nodes':z['array'](z['string']()),'forwards':z['array'](z['string']()),'terminal':z['enum'](['completed','refunded','open']),'guard_gates':z['number']()['int']()['min'](0x0),'length':z['number']()['int']()['min'](0x0),'terminal_value':z['number']()['int']()['min'](0x0)['max'](0x64),'gain_score':z['number']()['int']()['min'](0x0),'risk_score':z['number']()['int']()['min'](0x0),'score':z['number']()['int']()['min'](0x0)['max'](0x64),'rationale':z['string']()})['strict'](),AllocationSummarySchema=z['object']({'recipient_slots':z['number']()['int']()['min'](0x0)['describe']('Total\x20recipient\x20slots\x20across\x20allocators.'),'guard_gated_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20resolved\x20at\x20settlement\x20by\x20a\x20Guard.'),'direct_to_me_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20paying\x20directly\x20to\x20this\x20role.'),'to_payer_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20routing\x20back\x20to\x20the\x20payer\x20(refund-oriented).')})['strict'](),CooperationInfoSchema=z['object']({'threshold':z['number']()['int']()['min'](0x1)['describe']('Pair\x20threshold\x20(accumulated\x20forward\x20weights\x20to\x20advance).'),'my_weight':z['number']()['int']()['min'](0x0)['describe']('Weight\x20THIS\x20role\x20can\x20contribute.'),'needed_from_others':z['number']()['int']()['min'](0x0)['describe']('Weight\x20still\x20needed\x20from\x20other\x20roles\x20(0\x20=\x20can\x20advance\x20alone).'),'collaborators':z['array'](z['string']())['describe']('Roles\x20that\x20must\x20cooperate\x20to\x20reach\x20the\x20threshold.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20once\x20the\x20node\x20advances.'),'allocation_note':z['string']()['optional']()['describe']('Human-readable\x20allocation\x20note.')})['strict'](),CapabilityGapSchema=z['object']({'dimension':z['string']()['describe']('Capability\x20dimension\x20(has_arbitration\x20/\x20region\x20/\x20price\x20/\x20...).'),'requirement':z['string']()['describe']('What\x20the\x20demand\x20requires.'),'provided':z['string']()['describe']('What\x20the\x20service\x20provides.'),'status':z['enum'](['satisfied','partial','missing']),'impact':z['enum'](['critical','major','minor']),'suggestion':z['string']()['describe']('Actionable\x20suggestion.')})['strict'](),CapabilityGapReportSchema=z['object']({'entity_id':z['string'](),'satisfied':z['array'](CapabilityGapSchema),'missing':z['array'](CapabilityGapSchema),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),CompositePlanSchema=z['object']({'demand':z['string'](),'services':z['array'](z['object']({'id':z['string'](),'covered':z['array'](z['string']())})['strict']()),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'remaining_missing':z['array'](z['string']()),'feasibility':z['enum'](['ready','needs_supply_chain','infeasible']),'summary':z['string']()})['strict'](),CriterionScoreSchema=z['object']({'name':z['string'](),'score':z['number'](),'weight':z['number'](),'rationale':z['string']()})['strict'](),EvaluationFindingSchema=z['object']({'criterion':z['string'](),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'deduction':z['number']()})['strict'](),FindingRefSchema=z['object']({'id':z['string']()['describe']('Stable\x20finding\x20registry\x20id\x20(e.g.\x20R4:<machine>:<pair>).'),'title':z['string']()['describe']('Human\x20finding\x20title.'),'severity':z['string']()['describe']('Analyzer\x20severity\x20(critical/high/medium/low).')})['strict'](),EvaluationResultSchema=z['object']({'evaluation_id':z['string'](),'total':z['number']()['int']()['min'](0x0)['max'](0x64),'level':EvaluationLevelEnum,'level_label':z['string']()['optional'](),'breakdown':z['array'](z['object']({'rule_id':z['string'](),'dimension':z['string'](),'score':z['number'](),'weight':z['number'](),'reason':z['string']()['optional'](),'matched':z['array'](z['string']())['optional'](),'mismatched':z['array'](z['string']())['optional'](),'finding_refs':z['array'](FindingRefSchema)['optional']()['describe']('Structural\x20findings\x20this\x20risk\x20dimension\x20deducted\x20for\x20—\x20resolve\x20graph-aware\x20where-lines\x20from\x20these\x20ids.'),'red_flag':z['boolean']()['optional']()})['strict']()),'red_flags':z['array'](z['string']()),'red_flag_basis':z['array'](z['object']({'flag':z['string']()['describe']('The\x20flag\x20text\x20(identical\x20to\x20the\x20corresponding\x20red_flags\x20entry).'),'basis':z['enum'](['object_defect','requirement_unmet']),'rule_id':z['string']()['optional']()['describe']('The\x20rule\x20that\x20fired\x20(object_defect)\x20or\x20the\x20clause\x20target\x20(requirement_unmet).')})['strict']())['optional']()['describe']('Evidence-basis\x20classification\x20of\x20each\x20red\x20flag\x20(same\x20order/length\x20as\x20red_flags\x20when\x20present).'),'blocked':z['boolean'](),'trace':z['array'](z['object']({'kind':z['enum'](['data_source','rule','override']),'id':z['string'](),'detail':z['string']()})['strict']()),'summary':z['string'](),'unverified':z['array'](z['string']())['optional']()['describe']('Dimension\x20rule\x20ids\x20excluded\x20from\x20the\x20weighted\x20aggregation\x20as\x20unverifiable\x20(data\x20gaps)\x20—\x20never\x20scored\x20as\x20default-low.'),'criterionScores':z['array'](CriterionScoreSchema)['optional']()['describe']('Per-criterion\x20weighted\x20breakdown\x20(producer/consumer\x20perspective-aware\x20kernel\x20union).'),'findings':z['array'](EvaluationFindingSchema)['optional']()['describe']('Negative-evidence\x20findings\x20(richer\x20than\x20red_flags\x20strings).'),'strengths':z['array'](z['string']())['optional']()['describe']('Positive-evidence\x20strengths.'),'needsLlm':z['boolean']()['optional']()['describe']('True\x20when\x20this\x20evaluation\x20requires\x20LLM\x20processing\x20(worth_buying/value).'),'llmPrompt':z['string']()['optional']()['describe']('When\x20needsLlm=true,\x20the\x20prompt\x20to\x20hand\x20to\x20the\x20caller\x20LLM.')})['strict'](),CoverageSlotSchema=z['object']({'slot':z['string']()['describe']('Slot\x20key\x20(e.g.\x20arbitration\x20/\x20reviews).'),'label':z['string']()['describe']('Human-readable\x20slot\x20name.'),'gloss':z['string']()['describe']('One-sentence\x20plain\x20explanation\x20of\x20the\x20evidence\x20this\x20slot\x20covers.'),'required':z['boolean']()['describe']('Whether\x20this\x20slot\x20is\x20required\x20for\x20a\x20material\x20evaluation.'),'state':z['enum'](['present','empty','gap'])['describe']('present\x20=\x20scored\x20material;\x20empty\x20=\x20verified\x20absence;\x20gap\x20=\x20unverifiable.'),'facts':z['array'](z['string']())['describe']('Fact\x20keys\x20answering\x20this\x20slot\x20(empty\x20for\x20the\x20root\x20snapshot\x20slot).')})['strict'](),CoverageVocabularySchema=z['object']({'present':z['string'](),'empty':z['string'](),'gap':z['string'](),'unverified':z['string'](),'completeness':z['string']()})['strict']();export const GraphServiceEvaluationSchema=z['object']({'target':z['string']()['describe']('Evaluated\x20service\x20address\x20(resolved\x20from\x20service_id).'),'trust':EvaluationResultSchema['describe']('Trust\x20evaluation\x20over\x20the\x20graph\x20facts\x20(arbitration/reviews/fulfillment/fund_safety/transparency).'),'risk':EvaluationResultSchema['describe']('Risk\x20evaluation\x20over\x20the\x20graph\x20facts\x20(workflow/fund/trust/behavior).'),'review_stats':z['object']({'review_count':z['number']()['int']()['min'](0x0),'like':z['number']()['int']()['min'](0x0),'dislike':z['number']()['int']()['min'](0x0),'favor':z['number']()['int']()['min'](0x0),'like_rate':z['number']()['optional']()['describe']('like/review_count\x20rounded\x20to\x202\x20decimals\x20(absent\x20on\x20a\x20zero-count\x20window).'),'window_state':z['string']()['optional']()['describe']('The\x20reviews.votes\x20fact\x20state\x20(present/empty/gap).')})['strict']()['optional'](),'completeness':z['number']()['describe']('Material\x20coverage\x20of\x20the\x20required\x20fact\x20slots\x20(0-100).'),'coverage':z['array'](CoverageSlotSchema)['describe']('Per-slot\x20coverage\x20of\x20the\x20facts\x20projection.'),'unverified':z['array'](z['string']())['describe']('Dimension\x20rule\x20ids\x20excluded\x20as\x20unverifiable\x20(data\x20gaps)\x20—\x20never\x20scored\x20as\x20default-low.'),'vocabulary':CoverageVocabularySchema['describe']('One-sentence\x20canonical\x20glosses\x20of\x20the\x20coverage\x20vocabulary\x20to\x20quote\x20verbatim.')})['strict']();const SupplyChainPromiseInputSchema=z['object']({'sub_service':z['string']()['describe']('The\x20procured\x20sub-Service:\x20an\x20on-chain\x20address\x20or\x20a\x20resolvable\x20name.'),'axis':z['enum'](['merchant_procured','user_procured'])['describe']('Who\x20owns\x20the\x20fulfilment\x20order\x20—\x20decides\x20which\x20money-gate\x20ties\x20are\x20expressible.'),'service_name':z['string']()['optional']()['describe']('The\x20host\x20Service\x27s\x20own\x20name\x20(the\x20money\x20gate\x27s\x20host\x20binding);\x20omit\x20=\x20the\x20generated\x20plan\x27s\x20service\x20step\x20name.'),'done_node':z['string']()['describe']('The\x20node\x20whose\x20arrival\x20makes\x20the\x20order\x20settle-eligible\x20(e.g.\x20\x27completed\x27).'),'done_node_alt':z['string']()['optional']()['describe']('A\x20further\x20settle-eligible\x20node.'),'done_node_alt2':z['string']()['optional']()['describe']('A\x20further\x20settle-eligible\x20node.'),'form':z['enum'](['rendezvous','submission'])['optional']()['describe']('How\x20the\x20fulfilment\x20fact\x20reaches\x20the\x20host\x20order\x27s\x20money\x20gate\x20(default\x20\x27rendezvous\x27\x20—\x20the\x20only\x20form\x20that\x20proves\x20the\x20pairing).'),'fact_key':z['string']()['optional']()['describe']('Policy\x20key\x20of\x20the\x20forward\x20fulfilment\x20row\x20(default\x20\x27fulfilment\x27).'),'ack_key':z['string']()['optional']()['describe']('Policy\x20key\x20of\x20the\x20buyer\x20acknowledgement\x20(default\x20\x27<fact_key>_ack\x27).'),'ack_window_days':z['number']()['int']()['min'](0x1)['optional']()['describe']('merchant_procured\x20only:\x20after\x20this\x20many\x20days\x20the\x20buyer\x27s\x20silence\x20counts\x20as\x20acknowledgement.'),'payout_to':z['string']()['optional']()['describe']('The\x20fulfilment\x20party\x27s\x20payout\x20address.\x20Absent\x20=\x20no\x20third-party\x20rail.'),'payout_rate':z['number']()['int']()['min'](0x1)['max'](0x2710)['optional']()['describe']('Basis\x20points\x20of\x20the\x20settlement\x20rail\x20paid\x20to\x20payout_to\x20(default\x2010000).'),'repository':z['string']()['optional']()['describe']('An\x20existing\x20rendezvous\x20Repository\x20name;\x20one\x20is\x20created\x20when\x20omitted.'),'repository_name':z['string']()['optional']()['describe']('The\x20name\x20a\x20CREATED\x20rendezvous\x20Repository\x20takes\x20(default\x20\x27<host>_<sub>_ledger\x27).'),'service_step_id':z['string']()['optional']()['describe']('Step\x20id\x20of\x20the\x20host\x20Service\x20in\x20the\x20plan\x20being\x20built\x20(default\x20\x27service\x27).'),'id_prefix':z['string']()['optional']()['describe']('Step-id\x20prefix\x20for\x20the\x20emitted\x20objects\x20(default\x20\x27sc\x27).')})['strict']();export const EvaluationOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(persona\x20drivers).')})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'threshold':z['number']()['int']()['min'](0x1)['optional']()['describe']('Pair\x20threshold\x20—\x20when\x20>\x201,\x20multi-role\x20cooperation\x20is\x20needed\x20to\x20advance.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20after\x20the\x20node\x20advances.'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(persona\x20drivers).'),'order_amount':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20stake\x20at\x20this\x20node\x20(quantified).'),'compensation_fund':z['string']()['optional']()['describe']('Merchant\x20compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'operable':z['array'](NodeForwardSchema),'waiting_on':z['array'](z['object']({'role':z['string'](),'forwards':z['array'](z['string']())})['strict']())['optional']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'demand':CapabilityVectorSchema,'service':CapabilityVectorSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'demand':CapabilityVectorSchema,'services':z['array'](CapabilityVectorSchema)})['strict'](),z['object']({'action':z['literal']('compose_generation'),'intent':z['string']()['min'](0x1)['describe']('K3-GA2\x20(G-A\x20generator):\x20the\x20merchant\x27s\x20free-text\x20business\x20intent.\x20Capability\x20adoption\x20is\x20EVIDENCE-GATED\x20—\x20a\x20module\x20is\x20adopted\x20only\x20by\x20an\x20intentSignals\x20match\x20on\x20this\x20text\x20or\x20an\x20explicit\x20`selections`\x20entry;\x20an\x20intent\x20that\x20matches\x20nothing\x20is\x20a\x20blocker\x20(COMPOSE-NO-CAPABILITY-EVIDENCE),\x20never\x20a\x20silent\x20default\x20build.'),'selections':z['array'](z['string']())['optional']()['describe']('Merchant-confirmed\x20capability\x20ids\x20(adopted\x20regardless\x20of\x20signal\x20match).\x20List\x20registered\x20ids\x20via\x20industry_pack_operation\x20action=\x27capability_list\x27.'),'supply_chain':z['array'](SupplyChainPromiseInputSchema)['optional']()['describe']('Cross-object/cross-Service\x20procurement\x20promises\x20—\x20compiled\x20into\x20money-gate\x20steps\x20on\x20the\x20generated\x20plan\x20and\x20disclosed\x20back\x20under\x20`supply_chain`.'),'inputs':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Compile\x20inputs;\x20omitted\x20=\x20the\x20carrier\x20template\x27s\x20own\x20defaults.\x20Minimal\x20honest\x20sellable\x20surface\x20for\x20the\x20pilot\x20carriers:\x20{\x20sales:\x20[{\x20price:\x20<smallest-unit\x20integer>\x20}]\x20}\x20(+\x20reward_funding\x20when\x20the\x20carrier\x20pays\x20a\x20review\x20reward)\x20—\x20a\x20plan\x20without\x20a\x20sellable\x20SKU\x20fails\x20reflux\x20audit\x20(PLAN-SALES-01)\x20and\x20comes\x20back\x20infeasible.'),'name_base':z['string']()['optional']()['describe']('Object\x20name\x20base;\x20omit\x20=\x20the\x20carrier\x20template\x20id\x20(\x27/\x27\x20->\x20\x27_\x27).'),'preferred_chain':z['string']()['optional']()['describe']('Preferred\x20pilot\x20chain\x20when\x20the\x20adopted\x20set\x20maps\x20onto\x20BOTH\x20pilot\x20chains\x20(e.g.\x20\x27chain.data_subscription\x27);\x20otherwise\x20the\x20first\x20matching\x20chain\x20wins.')})['strict'](),z['object']({'action':z['literal']('demand_match'),'demand_cap':CapabilityVectorSchema,'services':z['array'](ServiceExtractInputSchema),'demand_object':z['string']()['optional']()['describe']('F-RQ-06\x20(prescription\x20⑫):\x20YOUR\x20on-chain\x20Demand\x20object\x20ID\x20(or\x20mark\x20name).\x20When\x20supplied,\x20the\x20handler\x20reads\x20the\x20demand\x20LIVE\x20(presenters_count)\x20at\x20match\x20time\x20and\x20derives\x20`next`\x20from\x20real\x20state\x20—\x20a\x20published\x20demand\x20never\x20gets\x20demand.publish\x20advice\x20again;\x20without\x20it,\x20`next`\x20stays\x20the\x20static\x20publish\x20template\x20with\x20a\x20verify-or-supply\x20precondition.'),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection\x20(explicit\x20injection\x20overrides).')})['strict'](),z['object']({'action':z['literal']('service_match'),'service_cap':CapabilityVectorSchema,'demands':z['array'](DemandExtractInputSchema),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'machine_nodes':z['array'](PathMachineNodeSchema),'node_annotations':NodeAnnotationsSchema['optional'](),'appetite':RiskAppetiteEnum['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional'](),'order_amount':z['string']()['optional'](),'max_depth':z['number']()['int']()['min'](0x1)['optional']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data'])['optional']()['describe']('Off-chain\x20evidence\x20kind\x20entering\x20the\x20closure\x20workflow\x20(single-item\x20mode;\x20omit\x20when\x20`items`\x20is\x20given).'),'hash_committed':z['boolean']()['optional']()['describe']('Whether\x20the\x20evidence\x20hash\x20is\x20committed\x20on-chain\x20(authenticity\x20anchor;\x20single-item\x20mode).'),'digital_check_passed':z['boolean']()['optional']()['describe']('OCR\x20/\x20machine\x20check\x20passed\x20(e.g.\x20signature\x20recognized,\x20waybill\x20matched).'),'contradiction':z['boolean']()['optional']()['describe']('A\x20contradicting\x20signal\x20detected\x20(e.g.\x20waybill\x20number\x20mismatch).'),'items':z['array'](z['object']({'id':z['string']()['min'](0x1)['describe']('Caller-side\x20identifier\x20(file\x20name,\x20Proof\x20object\x20id,\x20repository\x20ref...).'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data']),'hash_committed':z['boolean'](),'digital_check_passed':z['boolean']()['optional'](),'contradiction':z['boolean']()['optional'](),'proof_ref':z['string']()['optional']()['describe']('On-chain\x20Proof\x20object\x20reference\x20(WTS\x20proof)\x20when\x20already\x20anchored.')})['strict']())['min'](0x1)['optional']()['describe']('P2-3\x20list\x20mode:\x20review\x20a\x20COLLECTION\x20of\x20evidence\x20items\x20together\x20→\x20structured\x20usable/manual/rejected\x20list\x20plus\x20'+'`proof_candidates`\x20(auto-passed\x20items\x20with\x20their\x20Proof\x20refs)\x20the\x20dispute\x20initiator\x20may\x20reference\x20in\x20the\x20dispute\x20'+'description\x20(human\x20confirms\x20the\x20final\x20selection\x20—\x20never\x20auto-attached).\x20When\x20omitted,\x20single-item\x20mode\x20requires\x20`kind`\x20+\x20`hash_committed`.')})['strict']()['refine'](a=>a['items']!==undefined&&a['items']['length']>0x0||a['kind']!==undefined&&a['hash_committed']!==undefined,{'message':'evidence_review\x20requires\x20either\x20`items`\x20(list\x20mode)\x20or\x20`kind`\x20+\x20`hash_committed`\x20(single-item\x20mode).'}),z['object']({'action':z['literal']('discover_services'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`\x20(from\x20public\x20web\x20data).\x20Enrichment\x20makes\x20same-province\x20neighboring\x20cities\x20detectable;\x20without\x20it\x20only\x20exact/contains/remote\x20relations\x20are\x20deterministically\x20reachable.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness:\x20strict=100%\x20city\x20match\x20(on-site\x20consumption);\x20near=accept\x20neighboring\x20cities;\x20logistics=region\x20representation,\x20soft\x20signal.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'description':z['string']()['optional']()['describe']('Demand\x20description\x20—\x20used\x20to\x20infer\x20sensitivity\x20when\x20omitted\x20(hotel→strict,\x20parcel→logistics).'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20configured\x20local\x20list\x20cache).')})['strict'](),z['object']({'action':z['literal']('discover_demands'),'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'match_policy':z['union']([z['string'](),MatchPolicySchema])['optional']()['describe']('R4\x20private\x20policy\x20(supply_to_demand\x20direction,\x20e.g.\x20preset\x20\x27supplier_hunting\x27),\x20resolved/applied\x20entirely\x20on-device.\x20discover_demands\x20applies\x20gates+excludes\x20only\x20(no\x20private\x20scoring);\x20weights/rerank\x20are\x20reported\x20as\x20not\x20applicable\x20in\x20policy_effect.\x20Omitted:\x20resolved\x20from\x20the\x20stored\x20chain\x20—\x20account\x20persona\x20match\x20config\x20→\x20match-policy.json\x20(general\x20file)\x20→\x20system\x20persona\x20→\x20engine\x20defaults;\x20policy_effect.policy_source\x20reports\x20the\x20winning\x20layer.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20configured\x20local\x20list\x20cache).'),'account':z['string']()['optional']()['describe']('The\x20supplier\x27s\x20account\x20address;\x20its\x20persona\x27s\x20supply_to_demand\x20match\x20config\x20is\x20auto-resolved\x20when\x20no\x20match_policy\x20is\x20passed.')})['strict'](),z['object']({'action':z['literal']('demand_present'),'service_cap':CapabilityVectorSchema,'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'match_policy':z['union']([z['string'](),MatchPolicySchema])['optional']()['describe']('R4\x20private\x20ranking\x20policy\x20(supply_to_demand\x20direction,\x20e.g.\x20preset\x20\x27supplier_hunting\x27),\x20resolved/applied\x20entirely\x20on-device;\x20the\x20policy\x20and\x20its\x20hash\x20never\x20leave\x20this\x20device.\x20Omitted:\x20resolved\x20from\x20the\x20stored\x20chain\x20—\x20account\x20persona\x20match\x20config\x20→\x20match-policy.json\x20(general\x20file)\x20→\x20system\x20persona\x20→\x20engine\x20defaults;\x20policy_effect.policy_source\x20reports\x20the\x20winning\x20layer.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'limit':z['number']()['int']()['min'](0x1)['max'](0x32)['optional']()['describe']('Top-N\x20matched\x20demands\x20to\x20return\x20(default\x205).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20configured\x20local\x20list\x20cache).'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('market_metrics'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration.'),'limit':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Max\x20recent\x20NewOrderEvent\x20events\x20to\x20aggregate\x20for\x20the\x20order-flow\x20(GMV/top-services)\x20window\x20(default\x20100).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'op':z['enum'](['journey_funnel','referral_attribution','customer_relationship','dynamic_pricing'])['describe']('Which\x20operational\x20aggregation\x20to\x20run.'),'due_diligence':z['number']()['int']()['min'](0x0)['optional'](),'orders':z['number']()['int']()['min'](0x0)['optional'](),'completed':z['number']()['int']()['min'](0x0)['optional'](),'reviews':z['number']()['int']()['min'](0x0)['optional'](),'referral_orders':z['array'](z['object']({'id':z['string'](),'referrer':z['string'](),'amount':z['string'](),'closed':z['boolean']()})['strict']())['optional'](),'customer_orders':z['array'](z['object']({'id':z['string'](),'customer':z['string'](),'time':z['number'](),'disputed':z['boolean']()})['strict']())['optional'](),'market_signals':z['object']({'supplyCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20similar\x20Services.'),'demandCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20related\x20Demands.'),'avgPrice':z['string']()['optional']()['describe']('Market\x20average\x20price\x20(smallest-unit\x20string).'),'myPrice':z['string']()['optional']()['describe']('Current\x20price\x20(smallest-unit\x20string).'),'competitorPrices':z['array'](z['string']())['optional']()['describe']('Competitor\x20price\x20list\x20(smallest-unit\x20strings).'),'recentOrderCount':z['number']()['int']()['min'](0x0)['optional']()['describe']('Recent\x20order\x20count.'),'repeatCustomerRate':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Repeat\x20customer\x20rate\x200-1.')})['strict']()['optional']()['describe']('Market\x20signals\x20for\x20the\x20dynamic_pricing\x20op\x20(non-mandatory\x20merchant\x20pricing\x20suggestion).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'service':z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'arbitrations':z['array'](z['string']())['describe']('Bound\x20Arbitration\x20object\x20addresses.'),'compensation_fund':z['string']()['describe']('Compensation\x20fund\x20balance\x20(smallest-unit\x20string).'),'machine':z['union']([z['string'](),z['null']()])['describe']('Bound\x20Machine\x20address\x20(null\x20=\x20none).'),'bPublished':z['boolean']()['describe']('Whether\x20published.')})['strict'](),'orders':z['array'](z['object']({'id':z['string'](),'buyer':z['string'](),'seller':z['string'](),'amount':z['string'](),'status':z['string'](),'allocation':z['union']([z['string'](),z['null']()])['optional']()['describe']('Allocation\x20object\x20(fund-closure\x20evidence).')})['strict']())['describe']('Order\x20history\x20evidence.'),'reviews':z['array'](z['object']({'reviewer':z['string'](),'rating':z['enum'](['like','dislike']),'orderRef':z['string']()['optional'](),'verified':z['boolean']()['optional'](),'timestamp':z['number']()['optional']()})['strict']())['describe']('Review\x20evidence.')})['strict'](),z['object']({'action':z['literal']('match_discover'),'description':z['string']()['describe']('Demand\x20description\x20—\x20drives\x20sensitivity\x20inference\x20+\x20demand\x20capability\x20extraction.'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'budget':z['string']()['optional']()['describe']('Demand\x20price\x20ceiling\x20(smallest-unit\x20string)\x20—\x20price\x20dimension\x20gate.'),'required_capabilities':z['array'](z['string']())['optional']()['describe']('Workflow\x20capabilities\x20the\x20demand\x20REQUIRES\x20(e.g.\x20has_arbitration,\x20has_compensation_fund,\x20has_milestone_nodes,\x20has_refund_path,\x20has_wip_verification,\x20has_messenger,\x20has_buy_guard).'),'category':z['string']()['optional']()['describe']('Category\x20match\x20rules\x20key\x20(e.g.\x20\x27life_service\x27,\x20\x27retail\x27)\x20—\x20applies\x20hard-constraint\x20filtering\x20+\x20re-anchors\x20the\x20six-dimension\x20weights\x20(15\x20§3).\x20Omit\x20=\x20generic\x20six-dimension\x20scoring.'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20configured\x20local\x20list\x20cache).'),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.'),'match_policy':z['union']([z['string'](),MatchPolicySchema])['optional']()['describe']('R4\x20private\x20ranking\x20policy\x20(K5-05\x20§4):\x20a\x20preset\x20id\x20(default,\x20retail,\x20life_service,\x20trust_first,\x20cross_border,\x20cheap_and_fast,\x20enterprise)\x20or\x20an\x20inline\x20policy\x20object.\x20'+'Applied\x20entirely\x20on-device\x20over\x20the\x20recalled\x20candidates\x20—\x20gates/excludes/weights/rerank\x20with\x20honest\x20`policy_effect`\x20reporting;\x20NEVER\x20sent\x20to\x20the\x20data\x20service.\x20'+'Omitted:\x20resolved\x20from\x20the\x20stored\x20chain\x20—\x20account\x20persona\x20match\x20config\x20→\x20match-policy.json\x20(general\x20file)\x20→\x20system\x20persona\x20→\x20engine\x20defaults;\x20policy_effect.policy_source\x20reports\x20the\x20winning\x20layer.')})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'arbitration':z['object']({'object':z['string']()['optional']()['describe']('Arbitration\x20object\x20address.'),'fee':z['string']()['optional']()['describe']('Arbitration\x20fee\x20(smallest-unit\x20string).'),'balance':z['string']()['optional']()['describe']('Capital\x20pool\x20(smallest-unit\x20string).'),'voting_guard_count':z['number']()['int']()['min'](0x0)['optional']()['describe']('Number\x20of\x20voting\x20guards\x20(governance\x20distribution\x20proxy).'),'bPaused':z['boolean']()['optional'](),'location':z['string']()['optional'](),'has_verified_identity':z['boolean']()['optional']()['describe']('A7:\x20whether\x20the\x20arbitrator\x20has\x20a\x20verified\x20on-chain\x20Personal\x20identity\x20(unknown\x20when\x20omitted\x20→\x20neutral).')})['strict'](),'history':z['array'](z['object']({'status':z['string']()['optional']()['describe']('Arb\x20status\x20(e.g.\x20\x27Arbitrated\x27,\x20\x27Finished\x27,\x20\x27Objectionable\x27).'),'time':z['number']()['optional']()['describe']('Dispute\x20creation\x20time\x20(ms\x20epoch).'),'resolved_time':z['number']()['optional']()['describe']('Resolution\x20time\x20(ms\x20epoch).'),'indemnity_amount':z['string']()['optional']()['describe']('Compensation\x20paid\x20(smallest-unit\x20string;\x20\x270\x27/absent\x20=\x20none).'),'feedback_positive':z['boolean']()['optional'](),'objected':z['boolean']()['optional']()})['strict']())['optional']()['describe']('Historical\x20Arb\x20cases\x20(pre-aggregated;\x20the\x20on-chain\x20reverse\x20index\x20is\x20a\x20wow\x20data\x20layer\x20deliverable).'),'entity_votes':z['object']({'like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('0-1\x20community\x20like\x20ratio.'),'favor':z['boolean']()['optional']()['describe']('Whether\x20peers\x20favorited\x20this\x20entity.')})['strict']()['optional'](),'fee_median':z['string']()['optional']()['describe']('Market\x20fee\x20median\x20(smallest-unit\x20string)\x20for\x20the\x20fee-reasonableness\x20rule.'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).\x20Used\x20to\x20auto-fetch\x20real\x20Arb\x20history\x20when\x20`history`\x20is\x20omitted.')})['strict'](),z['object']({'action':z['literal']('account_events'),'account':z['string']()['optional']()['describe']('Account\x20address\x20to\x20watch\x20for\x20(default\x20account\x20when\x20omitted).'),'categories':z['array'](z['string']())['optional']()['describe']('Watcher\x20ids\x20to\x20run\x20(omit\x20=\x20all\x20registered\x20watchers).'),'reviews':z['array'](z['object']({'reviewer':z['string']()['describe']('Reviewer\x20address.'),'rating':z['enum'](['like','dislike']),'tags':z['array'](z['string']())['optional'](),'comment':z['string']()['optional'](),'orderRef':z['string']()['optional']()['describe']('Associated\x20order\x20id\x20—\x20the\x20credential\x20for\x20no-order-no-review\x20verification.'),'timestamp':z['number']()['optional']()['describe']('Submission\x20time\x20(ms\x20epoch).'),'verified':z['boolean']()['optional']()['describe']('Whether\x20the\x20review\x20carries\x20a\x20completed-order\x20credential;\x20recomputed\x20when\x20order_history\x20is\x20supplied.')})['strict']())['optional']()['describe']('Review\x20rows\x20(from\x20a\x20Service\x27s\x20ReviewRepository,\x20via\x20onchain_table_data)\x20—\x20enables\x20the\x20reputation_integrity\x20watcher\x20(verification,\x20stats,\x20manipulation\x20detection).'),'order_history':z['array'](z['object']({'id':z['string']()['describe']('Order\x20object\x20id.'),'status':z['string']()['describe']('Order\x20status\x20(e.g.\x20\x27completed\x27,\x20\x27success\x27).')})['strict']())['optional']()['describe']('Order\x20history\x20used\x20to\x20re-derive\x20review\x20credentials\x20(no-order-no-review).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).')})['strict']()]);export const EvaluationOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'actions':z['array'](ArbGameActionSchema),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'actions':z['array'](NodeGameActionSchema),'cooperation':CooperationInfoSchema['optional'](),'value_at_stake':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20value\x20at\x20stake.'),'risk_exposure':z['string']()['optional']()['describe']('Compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'report':CapabilityGapReportSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'plan':CompositePlanSchema})['strict'](),z['object']({'action':z['literal']('compose_generation'),'feasibility':z['enum'](['ready','infeasible'])['describe']('ready\x20=\x20a\x20materializable\x20multi-object\x20Plan\x20was\x20produced;\x20infeasible\x20=\x20NO\x20plan\x20is\x20returned\x20(an\x20unverified\x20plan\x20never\x20leaks)\x20—\x20read\x20`blockers`\x20for\x20the\x20full\x20diagnosis.'),'chain':z['string']()['optional']()['describe']('The\x20matched\x20pilot\x20scenario\x20chain\x20(e.g.\x20\x27chain.data_subscription\x27).\x20Absent\x20when\x20infeasible.'),'carrier':z['string']()['optional']()['describe']('The\x20carrier\x20template\x20id\x20the\x20chain\x20mapped\x20onto\x20(a\x20template\x20=\x20module\x20preset).\x20Absent\x20when\x20infeasible.'),'pilot_chains':z['array'](z['string']())['describe']('The\x20pilot\x20boundary:\x20the\x20ONLY\x20chains\x20the\x20G-A\x20generator\x20carries\x20today\x20—\x20an\x20adopted\x20set\x20outside\x20them\x20is\x20COMPOSE-CHAIN-UNMAPPED,\x20honestly\x20disclosed.'),'adopted':z['array'](z['object']({'id':z['string']()['describe']('Adopted\x20capability\x20id.'),'via':z['enum'](['selection','intent_signal'])['describe']('selection\x20=\x20merchant-confirmed;\x20intent_signal\x20=\x20evidence-gated\x20signal\x20match\x20on\x20the\x20intent\x20text.'),'matched_signals':z['array'](z['string']())['optional']()['describe']('The\x20intent-signal\x20patterns\x20that\x20matched\x20(present\x20when\x20via=\x27intent_signal\x27\x20—\x20falsifiable\x20hit\x20evidence).'),'signals_tested':z['number']()['int']()['min'](0x0)['optional']()['describe']('Number\x20of\x20intent-signal\x20patterns\x20tested\x20(present\x20when\x20via=\x27intent_signal\x27).')})['strict']())['describe']('The\x20evidence-gated\x20adoption\x20set\x20(industry/pain\x20scores\x20NEVER\x20adopt).'),'blockers':z['array'](z['object']({'code':z['string'](),'detail':z['string']()})['strict']())['describe']('Lattice\x20+\x20compile\x20+\x20audit\x20blockers;\x20non-empty\x20=\x20infeasible.\x20Codes:\x20COMPOSE-UNKNOWN-CAPABILITY\x20/\x20COMPOSE-REQUIRES-MISSING\x20/\x20COMPOSE-EXCLUDES-CONFLICT\x20/\x20COMPOSE-NO-CAPABILITY-EVIDENCE\x20/\x20COMPOSE-CHAIN-UNMAPPED\x20/\x20COMPOSE-CARRIER-UNKNOWN\x20/\x20REVIEW-<rule_id>\x20(reflux\x20audit\x20finding).'),'plan':z['record'](z['string'](),z['unknown']())['optional']()['describe']('ready\x20ONLY:\x20the\x20multi-object\x20Plan\x20(Service+Machine+Guard+...\x20steps).\x20Pass\x20it\x20VERBATIM\x20as\x20`plan`\x20to\x20benchmark_migration_operation\x20action=\x27plan_execute\x27\x20—\x20never\x20hand-mutate\x20steps.\x20Stamped\x20with\x20catalog_version;\x20plan_execute\x20refuses\x20a\x20plan\x20from\x20a\x20stale\x20catalog.'),'audit':z['object']({'blocking':z['boolean']()['describe']('false\x20=\x20the\x20plan\x20passed\x20the\x20reflux\x20audit.'),'findings':z['array'](z['object']({'level':z['string']()['describe']('Finding\x20level\x20(e.g.\x20\x27medium\x27\x20/\x20\x27low\x27).'),'rule_id':z['string']()['describe']('Audit\x20rule\x20id.'),'title':z['string']()['describe']('One-line\x20finding\x20title.')})['strict']())['describe']('Non-blocking\x20findings\x20worth\x20reading\x20before\x20materializing\x20(blocking\x20ones\x20surfaced\x20as\x20REVIEW-*\x20blockers\x20instead).')})['strict']()['optional']()['describe']('ready\x20ONLY:\x20the\x20reflux\x20audit\x20summary\x20over\x20the\x20generated\x20plan.'),'templates_version':z['number']()['int']()['describe']('The\x20template\x20catalog\x20sentinel\x20the\x20generation\x20ran\x20against.'),'supply_chain':z['array'](z['record'](z['string'](),z['unknown']()))['optional']()['describe']('Present\x20when\x20procurement\x20promises\x20landed\x20in\x20the\x20plan:\x20the\x20per-promise\x20emission\x20disclosure\x20(steps\x20/\x20inputs\x20/\x20on-chain\x20primitives\x20/\x20merchant-duty\x20notes).')})['strict'](),z['object']({'action':z['literal']('demand_match'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema,'order':OperationBridgeSchema['describe']('Transaction-formation\x20bridge:\x20create\x20the\x20Order\x20on\x20this\x20service\x20(service.order_new)\x20once\x20selected.')})['strict']())})['strict'](),z['object']({'action':z['literal']('service_match'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'ranked_paths':z['array'](PathOutputSchema),'optimal_path':PathOutputSchema['optional'](),'foregone_terminals':z['array'](z['string']()),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'review':z['object']({'status':z['enum'](['auto_pass','auto_reject','manual_review'])['describe']('Review\x20gate\x20verdict.'),'reason':z['string']()['describe']('Deterministic\x20reason\x20for\x20the\x20verdict.')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_services'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'services':z['array'](z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'name':z['string']()['optional'](),'location':z['string']()['optional']()['describe']('Service.location\x20raw\x20string;\x20absent\x20=\x20merchant\x20location\x20hygiene\x20issue.'),'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict']())['describe']('Services\x20ranked\x20by\x20location\x20fit\x20(satisfied\x20first,\x20score\x20desc).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'coverage':QueryCoverageSchema['describe']('Honest\x20enumeration\x20scope;\x20event_window\x20is\x20never\x20a\x20complete\x20chain\x20universe.'),'scope_advice':z['object']({'search_terms':z['array'](z['string']())['describe']('Terms\x20to\x20widen\x20enumeration\x20with\x20(location_any).'),'ai_enrichment_note':z['string']()['describe']('How\x20the\x20AI\x20should\x20expand\x20scope\x20(public\x20web\x20data,\x20consent-gated).')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_demands'),'demands':z['array'](z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string']()['describe']('Demand\x20description.'),'location':z['string']()['describe']('Demand\x20location.'),'presenters_count':z['number']()['describe']('Number\x20of\x20merchants\x20who\x20already\x20presented\x20to\x20this\x20demand.'),'permission':z['string']()['describe']('Demand\x20owner\x20permission\x20object.')})['strict']())['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20(client-side\x20location\x20filtered).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'match_route':z['enum'](['remote_index','legacy_enumeration'])['optional']()['describe']('Demand\x20recall\x20source:\x20remote_index\x20=\x20one-shot\x20/v1/match?kind=Demand\x20recall\x20with\x20payloads\x20attached\x20(K5-10\x20§4.2);\x20legacy_enumeration\x20=\x20full\x20on-chain/GraphQL\x20enumeration\x20(also\x20the\x20honest\x20degrade\x20path,\x20stamped\x20MATCH_INDEX_FALLBACK\x20in\x20coverage).'),'coverage':QueryCoverageSchema['describe']('Honest\x20enumeration\x20scope;\x20event_window\x20is\x20never\x20a\x20complete\x20chain\x20universe.'),'policy_effect':PolicyEffectSchema['optional']()['describe']('Present\x20only\x20when\x20a\x20match_policy\x20was\x20supplied:\x20the\x20private-policy\x20effect\x20report\x20for\x20the\x20gates\x20applied\x20in\x20this\x20stage\x20(R4).')})['strict'](),z['object']({'action':z['literal']('demand_present'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())['describe']('Demands\x20matched\x20to\x20the\x20service\x20(score\x20desc),\x20each\x20with\x20its\x20present\x20path.'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'match_route':z['enum'](['remote_index','legacy_enumeration'])['optional']()['describe']('Demand\x20recall\x20source:\x20remote_index\x20=\x20one-shot\x20/v1/match?kind=Demand\x20recall\x20with\x20payloads\x20attached\x20(K5-10\x20§4.2);\x20legacy_enumeration\x20=\x20full\x20on-chain/GraphQL\x20enumeration\x20(also\x20the\x20honest\x20degrade\x20path,\x20stamped\x20MATCH_INDEX_FALLBACK\x20in\x20coverage).'),'coverage':QueryCoverageSchema['describe']('Honest\x20enumeration\x20scope;\x20event_window\x20is\x20never\x20a\x20complete\x20chain\x20universe.'),'policy_effect':PolicyEffectSchema['optional']()['describe']('Present\x20only\x20when\x20a\x20match_policy\x20was\x20supplied:\x20the\x20full\x20private-policy\x20effect\x20report\x20(R4).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'result':z['union']([z['object']({'due_diligence':z['number']()['int']()['min'](0x0),'orders':z['number']()['int']()['min'](0x0),'completed':z['number']()['int']()['min'](0x0),'reviews':z['number']()['int']()['min'](0x0),'dd_to_order_rate':z['number'](),'order_completion_rate':z['number'](),'completion_to_review_rate':z['number']()})['strict'](),z['object']({'referrals':z['number']()['int']()['min'](0x0),'closed_referrals':z['number']()['int']()['min'](0x0),'gmv':z['string'](),'by_referrer':z['array'](z['object']({'referrer':z['string'](),'referrals':z['number']()['int']()['min'](0x0),'gmv':z['string']()})['strict']())})['strict'](),z['array'](z['object']({'customer':z['string'](),'order_count':z['number']()['int']()['min'](0x0),'last_order_time':z['number']()['nullable'](),'dispute_count':z['number']()['int']()['min'](0x0)})['strict']()),z['object']({'action':z['enum'](['increase','decrease','maintain']),'suggestedRange':z['object']({'min':z['string'](),'max':z['string']()})['strict']()['optional'](),'reason':z['string'](),'confidence':z['number']()['min'](0x0)['max'](0x1),'adjustmentPercent':z['number']()['optional']()})['strict']()])})['strict'](),z['object']({'action':z['literal']('market_metrics'),'total_services':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Service\x20objects\x20enumerated.'),'active_services':z['number']()['int']()['min'](0x0)['describe']('Published\x20and\x20not\x20paused\x20Service\x20objects.'),'total_demands':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Demand\x20objects\x20enumerated.'),'open_demands':z['number']()['int']()['min'](0x0)['describe']('Demands\x20with\x20no\x20presenter\x20yet.'),'total_arbs':z['number']()['int']()['min'](0x0)['describe']('All\x20Arb\x20dispute\x20cases\x20enumerated.'),'open_arbs':z['number']()['int']()['min'](0x0)['describe']('Arb\x20cases\x20not\x20yet\x20Finished/Withdrawn.'),'supply_demand_ratio':z['number']()['nullable']()['describe']('open_demands\x20/\x20active_services\x20(null\x20when\x20no\x20active\x20supply).'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.'),'order_flow':z['object']({'order_count':z['number']()['int']()['min'](0x0)['describe']('Recent\x20order\x20count\x20(finite\x20window).'),'gmv':z['string']()['describe']('Recent\x20GMV\x20—\x20sum\x20of\x20order\x20amounts\x20in\x20smallest-unit\x20(bigint\x20as\x20string).'),'top_services':z['array'](z['object']({'service':z['string']()['describe']('Service\x20address.'),'orders':z['number']()['int']()['min'](0x0)['describe']('Order\x20count\x20for\x20this\x20service\x20in\x20the\x20window.')})['strict']())['describe']('Per-service\x20order\x20count,\x20top-N\x20by\x20volume.'),'window':z['literal']('recent')['describe']('Honest\x20window\x20label:\x20events\x20are\x20paged,\x20not\x20full-history.'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.')})['strict']()['describe']('Recent\x20order-flow\x20scale\x20metrics\x20(finite\x20window;\x20full\x20history\x20requires\x20indexer).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'signals':z['array'](z['object']({'kind':z['enum'](['fake_order','fake_review','shell_merchant','reputation_trade']),'code':z['enum'](['self_buy','reciprocal_loop','no_allocation','reviews_unverified','reviewer_duplicate','review_time_burst','shell_no_arbitration','shell_funded_no_arbitration','shell_no_machine','reputation_bound'])['describe']('Stable\x20machine-readable\x20signal\x20discriminator.'),'severity':z['enum'](['high','medium','low']),'description':z['string'](),'refs':z['array'](z['string']())['optional']()['describe']('Object\x20addresses\x20backing\x20the\x20signal\x20(orders/services).')})['strict']())['describe']('Detected\x20anti-cheat\x20signals\x20(pluggable\x20negative\x20factors).')})['strict'](),z['object']({'action':z['literal']('match_discover'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'match_route':z['enum'](['remote_index','legacy_enumeration'])['optional']()['describe']('Candidate\x20source:\x20remote_index\x20=\x20one-shot\x20/v1/match\x20recall\x20+\x20public\x20coarse\x20scoring\x20(K5-11\x20R3);\x20legacy_enumeration\x20=\x20on-chain/GraphQL\x20enumeration.'),'location_gate':z['object']({'passed':z['number']()['int']()['min'](0x0)['describe']('Services\x20that\x20passed\x20the\x20location\x20gate.'),'failed':z['number']()['int']()['min'](0x0)['describe']('Services\x20the\x20gate\x20excluded.'),'fallback_used':z['boolean']()['describe']('F-RQ-04:\x20true\x20=\x20every\x20service\x20failed\x20the\x20gate\x20and\x20gate-failed\x20services\x20were\x20RETAINED\x20as\x20candidates\x20(presented-supply\x20fallback)\x20so\x20the\x20market\x20is\x20never\x20silently\x20empty.'),'note':z['string']()['optional']()['describe']('Present\x20when\x20fallback_used:\x20how\x20to\x20read\x20the\x20fallback\x20candidate\x20set.')})['strict']()['describe']('F-RQ-04\x20gate\x20visibility:\x20pass/fail\x20counts\x20and\x20fallback\x20state\x20—\x20a\x20zero-pass\x20market\x20is\x20never\x20silent.'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'location':z['object']({'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict'](),'result':EvaluationResultSchema,'server_match':z['object']({'policy_version':z['string']()['describe']('Frozen\x20server\x20policy\x20that\x20produced\x20this\x20evaluation\x20(e.g.\x20public-baseline-1).'),'total':z['number']()['min'](0x0)['max'](0x64)['describe']('Weighted\x20public\x20score\x20over\x20non-unknown\x20dimensions.'),'breakdown':z['array'](z['object']({'dimension':z['string'](),'weight':z['number'](),'score':z['number']()['nullable']()['describe']('null\x20=\x20dimension\x20unknown\x20(see\x20unknown_rules),\x20never\x20fabricated.')})['strict']()),'unknown_rules':z['array'](z['string']())['describe']('Dimensions\x20withheld\x20(incl.\x20trust\x20cold-start\x20prior)\x20—\x20honesty\x20ledger.'),'red_flags':z['array'](z['string']())['describe']('Deterministic\x20warnings\x20(price_over_budget,\x20missing_capability:*).'),'channels':z['array'](z['string']())['describe']('Recall\x20channels\x20that\x20surfaced\x20this\x20candidate\x20(structured,\x20bm25).'),'rrf':z['number']()['describe']('Reciprocal-rank\x20fusion\x20score\x20across\x20recall\x20channels.')})['strict']()['optional']()['describe']('Server-side\x20public-baseline\x20evaluation;\x20present\x20only\x20on\x20the\x20remote_index\x20route.')})['strict']())['describe']('Location-gated\x20services\x20with\x20their\x206-dimension\x20match\x20result\x20(scored\x20only\x20when\x20the\x20location\x20gate\x20passed).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'coverage':QueryCoverageSchema['describe']('Honest\x20enumeration\x20scope;\x20event_window\x20is\x20never\x20a\x20complete\x20chain\x20universe.'),'scope_advice':z['object']({'search_terms':z['array'](z['string']()),'ai_enrichment_note':z['string']()})['strict'](),'policy_effect':PolicyEffectSchema['optional']()['describe']('Present\x20only\x20when\x20a\x20match_policy\x20was\x20supplied:\x20the\x20full\x20private-policy\x20effect\x20report\x20(R4).')})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'trust':EvaluationResultSchema,'fairness':EvaluationResultSchema,'combined':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('account_events'),'events':z['array'](z['object']({'id':z['string'](),'category':z['string'](),'priority':z['enum'](['required','recommended','info','reminder']),'title':z['string'](),'message':z['string'](),'action':z['string']()['optional'](),'object_ref':z['string']()['optional'](),'timestamp':z['number']()})['strict']())})['strict']()])['describe']('Evaluation\x20result\x20—\x20shape\x20depends\x20on\x20action')})['strict']();
@@ -20,8 +20,8 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
20
20
  confirmed: "confirmed";
21
21
  completed: "completed";
22
22
  paused: "paused";
23
- recognized: "recognized";
24
23
  bound: "bound";
24
+ recognized: "recognized";
25
25
  planned: "planned";
26
26
  approved: "approved";
27
27
  acting: "acting";
@@ -65,8 +65,8 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
65
65
  stage: z.ZodOptional<z.ZodEnum<{
66
66
  confirmed: "confirmed";
67
67
  paused: "paused";
68
- recognized: "recognized";
69
68
  bound: "bound";
69
+ recognized: "recognized";
70
70
  planned: "planned";
71
71
  approved: "approved";
72
72
  acting: "acting";
@@ -312,6 +312,12 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
312
312
  }>>;
313
313
  reward_funding: z.ZodOptional<z.ZodString>;
314
314
  reward_claim_amount: z.ZodOptional<z.ZodString>;
315
+ experience_compensation_mode: z.ZodOptional<z.ZodEnum<{
316
+ reward: "reward";
317
+ none: "none";
318
+ }>>;
319
+ experience_pool_funding: z.ZodOptional<z.ZodString>;
320
+ compensation_fund: z.ZodOptional<z.ZodString>;
315
321
  after_sales_mode: z.ZodOptional<z.ZodEnum<{
316
322
  none: "none";
317
323
  return: "return";
@@ -399,6 +405,12 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
399
405
  }>>;
400
406
  reward_funding: z.ZodOptional<z.ZodString>;
401
407
  reward_claim_amount: z.ZodOptional<z.ZodString>;
408
+ experience_compensation_mode: z.ZodOptional<z.ZodEnum<{
409
+ reward: "reward";
410
+ none: "none";
411
+ }>>;
412
+ experience_pool_funding: z.ZodOptional<z.ZodString>;
413
+ compensation_fund: z.ZodOptional<z.ZodString>;
402
414
  after_sales_mode: z.ZodOptional<z.ZodEnum<{
403
415
  none: "none";
404
416
  return: "return";
@@ -190,6 +190,12 @@ export declare const PlanningActionMembers: [z.ZodObject<{
190
190
  }>>;
191
191
  reward_funding: z.ZodOptional<z.ZodString>;
192
192
  reward_claim_amount: z.ZodOptional<z.ZodString>;
193
+ experience_compensation_mode: z.ZodOptional<z.ZodEnum<{
194
+ reward: "reward";
195
+ none: "none";
196
+ }>>;
197
+ experience_pool_funding: z.ZodOptional<z.ZodString>;
198
+ compensation_fund: z.ZodOptional<z.ZodString>;
193
199
  after_sales_mode: z.ZodOptional<z.ZodEnum<{
194
200
  none: "none";
195
201
  return: "return";
@@ -277,6 +283,12 @@ export declare const PlanningActionMembers: [z.ZodObject<{
277
283
  }>>;
278
284
  reward_funding: z.ZodOptional<z.ZodString>;
279
285
  reward_claim_amount: z.ZodOptional<z.ZodString>;
286
+ experience_compensation_mode: z.ZodOptional<z.ZodEnum<{
287
+ reward: "reward";
288
+ none: "none";
289
+ }>>;
290
+ experience_pool_funding: z.ZodOptional<z.ZodString>;
291
+ compensation_fund: z.ZodOptional<z.ZodString>;
280
292
  after_sales_mode: z.ZodOptional<z.ZodEnum<{
281
293
  none: "none";
282
294
  return: "return";
@@ -536,6 +548,12 @@ export declare const MerchantGuideResultSchema: z.ZodObject<{
536
548
  }>>;
537
549
  reward_funding: z.ZodOptional<z.ZodString>;
538
550
  reward_claim_amount: z.ZodOptional<z.ZodString>;
551
+ experience_compensation_mode: z.ZodOptional<z.ZodEnum<{
552
+ reward: "reward";
553
+ none: "none";
554
+ }>>;
555
+ experience_pool_funding: z.ZodOptional<z.ZodString>;
556
+ compensation_fund: z.ZodOptional<z.ZodString>;
539
557
  after_sales_mode: z.ZodOptional<z.ZodEnum<{
540
558
  none: "none";
541
559
  return: "return";