@wowok/agent-mcp 2.7.6 → 2.7.8

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 (243) hide show
  1. package/dist/customer/index.d.ts +3 -4
  2. package/dist/customer/index.js +1 -1
  3. package/dist/customer/info-puzzle.js +1 -1
  4. package/dist/customer/order-monitor.d.ts +0 -9
  5. package/dist/customer/order-monitor.js +1 -1
  6. package/dist/customer/order-strategy.d.ts +0 -19
  7. package/dist/customer/order-strategy.js +1 -1
  8. package/dist/customer/reminder-system.d.ts +0 -5
  9. package/dist/customer/reminder-system.js +1 -1
  10. package/dist/evaluation/game-strategy.js +1 -1
  11. package/dist/evaluation/injection.d.ts +6 -0
  12. package/dist/evaluation/injection.js +1 -0
  13. package/dist/evaluation/node-game.js +1 -1
  14. package/dist/examples/machine-multisig-threshold.json +1 -0
  15. package/dist/harness/recover.js +1 -1
  16. package/dist/harness/types.d.ts +1 -1
  17. package/dist/harness/verify.js +1 -1
  18. package/dist/intent/enrich.js +1 -1
  19. package/dist/intent/matcher.js +1 -1
  20. package/dist/intent/types.d.ts +1 -1
  21. package/dist/intent/types.js +1 -1
  22. package/dist/knowledge/arbitration-ledger.js +1 -1
  23. package/dist/knowledge/contract-invariants.d.ts +53 -0
  24. package/dist/knowledge/contract-invariants.js +1 -0
  25. package/dist/knowledge/deployment-scanner.js +1 -1
  26. package/dist/knowledge/dynamic-pricing.d.ts +0 -2
  27. package/dist/knowledge/dynamic-pricing.js +1 -1
  28. package/dist/knowledge/event-semantics.d.ts +20 -0
  29. package/dist/knowledge/event-semantics.js +1 -0
  30. package/dist/knowledge/examples-scanner-cli.js +1 -1
  31. package/dist/knowledge/examples-scanner.js +1 -1
  32. package/dist/knowledge/glossary.js +1 -1
  33. package/dist/knowledge/guard-submission-prompt.js +1 -1
  34. package/dist/knowledge/immutability.d.ts +11 -0
  35. package/dist/knowledge/immutability.js +1 -0
  36. package/dist/knowledge/index.d.ts +12 -6
  37. package/dist/knowledge/index.js +1 -1
  38. package/dist/knowledge/industry-registry.js +1 -1
  39. package/dist/knowledge/intent-metrics.d.ts +1 -1
  40. package/dist/knowledge/jsonrpc-enum.d.ts +37 -0
  41. package/dist/knowledge/jsonrpc-enum.js +1 -0
  42. package/dist/knowledge/machine-confirm.js +1 -1
  43. package/dist/knowledge/machine-risk.js +1 -1
  44. package/dist/knowledge/machine-topology.d.ts +11 -0
  45. package/dist/knowledge/machine-topology.js +1 -1
  46. package/dist/knowledge/machine-translation.js +1 -1
  47. package/dist/knowledge/market-metrics.d.ts +11 -0
  48. package/dist/knowledge/market-metrics.js +1 -1
  49. package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
  50. package/dist/knowledge/mcp-schema-audit.d.ts +1 -0
  51. package/dist/knowledge/mcp-schema-audit.js +1 -1
  52. package/dist/knowledge/messenger-guard-guidance.d.ts +17 -0
  53. package/dist/knowledge/messenger-guard-guidance.js +1 -0
  54. package/dist/knowledge/operation-dictionary.d.ts +18 -0
  55. package/dist/knowledge/operation-dictionary.js +1 -0
  56. package/dist/knowledge/service-ledger.js +1 -1
  57. package/dist/knowledge/service-risk.js +1 -1
  58. package/dist/knowledge/service-translation.js +1 -1
  59. package/dist/knowledge/supply-chain.d.ts +24 -0
  60. package/dist/knowledge/supply-chain.js +1 -0
  61. package/dist/knowledge/template-registry.js +1 -1
  62. package/dist/knowledge/tools-reference.js +1 -1
  63. package/dist/knowledge/trust-metrics.d.ts +27 -2
  64. package/dist/knowledge/trust-metrics.js +1 -1
  65. package/dist/knowledge/workflow-guidance.d.ts +22 -1
  66. package/dist/knowledge/workflow-guidance.js +1 -1
  67. package/dist/monitor/EventStore.d.ts +78 -0
  68. package/dist/monitor/EventStore.js +1 -0
  69. package/dist/participation/radar-core.d.ts +0 -1
  70. package/dist/participation/radar-core.js +1 -1
  71. package/dist/persona/address-format.d.ts +6 -0
  72. package/dist/persona/address-format.js +1 -0
  73. package/dist/persona/analyzer.js +1 -1
  74. package/dist/persona/index.d.ts +3 -0
  75. package/dist/persona/index.js +1 -1
  76. package/dist/persona/types.d.ts +1 -1
  77. package/dist/persona/types.js +1 -1
  78. package/dist/project/business-puzzle.js +1 -1
  79. package/dist/project/edit-planner.js +1 -1
  80. package/dist/project/evaluation-fix.spec.d.ts +1 -0
  81. package/dist/project/evaluation-fix.spec.js +1 -0
  82. package/dist/project/evaluation.js +1 -1
  83. package/dist/project/graph-builder.js +1 -1
  84. package/dist/project/handlers.d.ts +2 -18
  85. package/dist/project/handlers.js +1 -1
  86. package/dist/project/index.js +1 -1
  87. package/dist/project/machine-nodes.d.ts +23 -0
  88. package/dist/project/machine-nodes.js +1 -1
  89. package/dist/project/machine-panorama.d.ts +41 -0
  90. package/dist/project/machine-panorama.js +1 -0
  91. package/dist/project/object-panorama.d.ts +179 -0
  92. package/dist/project/object-panorama.js +1 -0
  93. package/dist/project/object-type.d.ts +1 -0
  94. package/dist/project/object-type.js +1 -0
  95. package/dist/project/participation-radar.js +1 -1
  96. package/dist/project/semantic-assembler.js +1 -1
  97. package/dist/project/service-panorama.d.ts +180 -0
  98. package/dist/project/service-panorama.js +1 -0
  99. package/dist/project/stage-gate.d.ts +0 -1
  100. package/dist/project/stage-gate.js +1 -1
  101. package/dist/project/task-tracker.d.ts +4 -0
  102. package/dist/project/task-tracker.js +1 -1
  103. package/dist/role/derivation.d.ts +19 -2
  104. package/dist/role/derivation.js +1 -1
  105. package/dist/role/index.d.ts +2 -2
  106. package/dist/role/index.js +1 -1
  107. package/dist/role/model.js +1 -1
  108. package/dist/role/resolution.d.ts +16 -0
  109. package/dist/role/resolution.js +1 -1
  110. package/dist/role/types.d.ts +1 -1
  111. package/dist/role/types.js +1 -1
  112. package/dist/safety/confirm-gate.js +1 -1
  113. package/dist/schema/call/allocation.d.ts +10 -0
  114. package/dist/schema/call/arbitration.d.ts +14 -3
  115. package/dist/schema/call/arbitration.js +1 -1
  116. package/dist/schema/call/base.d.ts +16 -0
  117. package/dist/schema/call/base.js +1 -1
  118. package/dist/schema/call/bridge.d.ts +7 -0
  119. package/dist/schema/call/contact.d.ts +11 -0
  120. package/dist/schema/call/demand.d.ts +11 -0
  121. package/dist/schema/call/guard.d.ts +3 -0
  122. package/dist/schema/call/handler.js +1 -1
  123. package/dist/schema/call/machine.d.ts +12 -0
  124. package/dist/schema/call/machine.js +1 -1
  125. package/dist/schema/call/order.d.ts +11 -0
  126. package/dist/schema/call/payment.d.ts +4 -3
  127. package/dist/schema/call/payment.js +1 -1
  128. package/dist/schema/call/permission.d.ts +11 -0
  129. package/dist/schema/call/personal.d.ts +38 -0
  130. package/dist/schema/call/personal.js +1 -1
  131. package/dist/schema/call/progress.d.ts +11 -0
  132. package/dist/schema/call/proof.d.ts +2 -0
  133. package/dist/schema/call/repository.d.ts +15 -4
  134. package/dist/schema/call/reward.d.ts +17 -12
  135. package/dist/schema/call/reward.js +1 -1
  136. package/dist/schema/call/semantic.d.ts +3 -2
  137. package/dist/schema/call/semantic.js +1 -1
  138. package/dist/schema/call/service.d.ts +17 -0
  139. package/dist/schema/call/service.js +1 -1
  140. package/dist/schema/call/treasury.d.ts +17 -0
  141. package/dist/schema/common/index.d.ts +21 -0
  142. package/dist/schema/common/index.js +1 -1
  143. package/dist/schema/evaluation/index.d.ts +146 -0
  144. package/dist/schema/evaluation/index.js +1 -1
  145. package/dist/schema/index.d.ts +1 -0
  146. package/dist/schema/index.js +1 -1
  147. package/dist/schema/intent-radar/index.d.ts +30 -3
  148. package/dist/schema/intent-radar/index.js +1 -1
  149. package/dist/schema/local/index.d.ts +9 -0
  150. package/dist/schema/local/index.js +1 -1
  151. package/dist/schema/messenger/index.d.ts +54 -0
  152. package/dist/schema/messenger/index.js +1 -1
  153. package/dist/schema/operations.d.ts +932 -9
  154. package/dist/schema/operations.js +1 -1
  155. package/dist/schema/permission/index.d.ts +17 -0
  156. package/dist/schema/permission/index.js +1 -1
  157. package/dist/schema/project/index.d.ts +6 -0
  158. package/dist/schema/project/index.js +1 -1
  159. package/dist/schema/query/index.d.ts +663 -56
  160. package/dist/schema/query/index.js +1 -1
  161. package/dist/schema/schema-version.js +1 -1
  162. package/dist/schema/trust/index.d.ts +17 -0
  163. package/dist/schema/trust/index.js +1 -1
  164. package/dist/schema/watch/index.d.ts +204 -0
  165. package/dist/schema/watch/index.js +1 -0
  166. package/dist/schema/workflow/index.d.ts +301 -0
  167. package/dist/schema/workflow/index.js +1 -1
  168. package/dist/schema-query-impl/index.js +1 -1
  169. package/dist/schemas/account_operation.output.json +5 -2
  170. package/dist/schemas/bridge_operation.output.json +5 -2
  171. package/dist/schemas/bridge_operation.schema.json +25 -9
  172. package/dist/schemas/evaluation_operation.output.json +276 -1
  173. package/dist/schemas/evaluation_operation.schema.json +307 -0
  174. package/dist/schemas/guard2file.schema.json +6 -2
  175. package/dist/schemas/index.json +13 -1
  176. package/dist/schemas/intent_radar.output.json +20 -2
  177. package/dist/schemas/intent_radar.schema.json +10 -1
  178. package/dist/schemas/local_info_operation.output.json +5 -2
  179. package/dist/schemas/local_mark_operation.output.json +5 -2
  180. package/dist/schemas/machineNode2file.schema.json +6 -2
  181. package/dist/schemas/messenger_operation.output.json +105 -2
  182. package/dist/schemas/messenger_operation.schema.json +98 -0
  183. package/dist/schemas/monitor_events.output.json +1360 -0
  184. package/dist/schemas/monitor_events.schema.json +62 -0
  185. package/dist/schemas/onchain_events.output.json +237 -14
  186. package/dist/schemas/onchain_events.schema.json +20 -0
  187. package/dist/schemas/onchain_operations.output.json +10 -5
  188. package/dist/schemas/onchain_operations.schema.json +768 -409
  189. package/dist/schemas/onchain_operations_allocation.schema.json +23 -7
  190. package/dist/schemas/onchain_operations_arbitration.schema.json +34 -9
  191. package/dist/schemas/onchain_operations_contact.schema.json +29 -5
  192. package/dist/schemas/onchain_operations_demand.schema.json +29 -5
  193. package/dist/schemas/onchain_operations_gen_passport.schema.json +6 -2
  194. package/dist/schemas/onchain_operations_gen_proof.schema.json +6 -2
  195. package/dist/schemas/onchain_operations_guard.schema.json +6 -2
  196. package/dist/schemas/onchain_operations_machine.schema.json +34 -10
  197. package/dist/schemas/onchain_operations_order.schema.json +29 -5
  198. package/dist/schemas/onchain_operations_payment.schema.json +13 -10
  199. package/dist/schemas/onchain_operations_permission.schema.json +29 -5
  200. package/dist/schemas/onchain_operations_personal.schema.json +44 -2
  201. package/dist/schemas/onchain_operations_progress.schema.json +29 -5
  202. package/dist/schemas/onchain_operations_proof.schema.json +6 -2
  203. package/dist/schemas/onchain_operations_repository.schema.json +310 -305
  204. package/dist/schemas/onchain_operations_reward.schema.json +46 -10
  205. package/dist/schemas/onchain_operations_service.schema.json +49 -13
  206. package/dist/schemas/onchain_operations_treasury.schema.json +46 -10
  207. package/dist/schemas/onchain_table_data.output.json +3750 -208
  208. package/dist/schemas/onchain_table_data.schema.json +311 -0
  209. package/dist/schemas/permission_operation.output.json +32 -0
  210. package/dist/schemas/project_operation.schema.json +14 -8
  211. package/dist/schemas/query_toolkit.output.json +425 -320
  212. package/dist/schemas/query_toolkit.schema.json +139 -1
  213. package/dist/schemas/trust_score.output.json +38 -0
  214. package/dist/schemas/trust_score.schema.json +32 -0
  215. package/dist/schemas/watch_operation.output.json +827 -0
  216. package/dist/schemas/watch_operation.schema.json +145 -0
  217. package/dist/schemas/workflow_operation.output.json +263 -5
  218. package/dist/schemas/workflow_operation.schema.json +597 -2
  219. package/dist/tools/handlers/config.js +1 -1
  220. package/dist/tools/handlers/evaluation.js +1 -1
  221. package/dist/tools/handlers/intent-radar.js +1 -1
  222. package/dist/tools/handlers/messenger.js +1 -1
  223. package/dist/tools/handlers/monitor.d.ts +2 -0
  224. package/dist/tools/handlers/monitor.js +1 -0
  225. package/dist/tools/handlers/onchain.js +1 -1
  226. package/dist/tools/handlers/permission.js +1 -1
  227. package/dist/tools/handlers/project.js +1 -1
  228. package/dist/tools/handlers/query.js +1 -1
  229. package/dist/tools/handlers/trust.d.ts +14 -0
  230. package/dist/tools/handlers/trust.js +1 -1
  231. package/dist/tools/handlers/watch.d.ts +2 -0
  232. package/dist/tools/handlers/watch.js +1 -0
  233. package/dist/tools/handlers/workflow.js +1 -1
  234. package/dist/tools/index.d.ts +2 -0
  235. package/dist/tools/index.js +1 -1
  236. package/dist/tools/shared.js +1 -1
  237. package/package.json +2 -2
  238. package/dist/customer/post-purchase.d.ts +0 -44
  239. package/dist/customer/post-purchase.js +0 -1
  240. package/dist/project/migration.d.ts +0 -22
  241. package/dist/project/migration.js +0 -1
  242. package/dist/project/rollback-policy.d.ts +0 -45
  243. package/dist/project/rollback-policy.js +0 -1
@@ -1 +1 @@
1
- import{z}from'zod';const IndustryEnum=z['enum'](['general','retail','retail_d2c','service','rental','freelance','education','travel','subscription','custom']);export const ProjectObjectTypeEnum=z['enum'](['service','machine','guard','permission','reward','arb','progress','treasury','demand','repository','contact','order','allocation','personal','payment','proof']);export const EdgeKindEnum=z['enum'](['machine','order_allocators','arbitrations','compensation_fund','rewards','buy_guard','permission','guard','prev','next','forward','parent','service','progress','arbitration','sub_order','references']);export const ProjectOperationInputSchema=z['object']({'action':z['enum'](['list_projects','create_project','create_project_from_onchain','update_project','get_project_detail','add_object','remove_object','update_object','create_version','build_graph','get_graph','evaluate_project','save_evaluation','compare_projects','refresh_objects','get_object_diff','delete_project','assemble_context','reverse_map','get_machine_graph','get_guard_graph','generate_deployment_doc','pre_evaluate_check','verify_deployment','clone_project_to_network','migrate_network','migrate_to_mainnet','plan_object_edit','apply_object_edit','patch_machine_nodes','patch_guard_tree','recommend_industry','list_modes','derive_user_mode','evolve_user_mode','register_user_mode','unregister_user_mode','register_custom_metric','register_custom_constraint','list_metrics_constraints','analyze_intent','aggregate_risks','trace_substeps','merchant_guide','participation_radar'])['describe']('Action\x20to\x20perform.\x20Two\x20categories:\x0a'+'1.\x20Project\x20Entity\x20+\x20Evaluation\x20(15,\x20GLM6):\x20list_projects,\x20create_project,\x20create_project_from_onchain,\x20update_project,\x20get_project_detail,\x20add_object,\x20remove_object,\x20create_version,\x20build_graph,\x20get_graph,\x20evaluate_project,\x20save_evaluation,\x20compare_projects,\x20refresh_objects,\x20get_object_diff.\x20Projects\x20are\x20first-class\x20entities\x20with\x20SQLite\x20persistence,\x20rigid\x20project-object\x20relationships,\x20three-pathway\x20graph\x20construction,\x20and\x20a\x20dual\x20rule-based\x20+\x20LLM-assisted\x20evaluation\x20engine.\x0a'+'2.\x20Context\x20Assembly\x20(1):\x20assemble_context\x20(query\x20on-chain\x20object\x20states\x20+\x20extract\x20embedded\x20history\x20+\x20optional\x20events,\x20and\x20assemble\x20a\x20structured\x20semantic\x20context\x20for\x20LLM\x20consumption).\x20Required\x20input:\x20context_objects\x20(array\x20of\x20object\x20IDs/names).\x20Optional:\x20include_events\x20(query\x20recent\x20state-transition\x20events).\x0a'+'2b.\x20Reverse\x20Mapping\x20(1):\x20reverse_map\x20(deterministic\x20L4→L1\x20business\x20report\x20—\x20queries\x20the\x20on-chain\x20objects,\x20classifies\x20them\x20into\x20business\x20semantics,\x20and\x20emits\x20a\x20fixed-rule\x20BusinessReport\x20with\x20merchant\x20profile,\x20user\x20risk\x20assessment,\x20and\x20game-theory\x20analysis.\x20Same\x20objects\x20ALWAYS\x20yield\x20the\x20same\x20report\x20—\x20no\x20LLM\x20involved).\x20Required\x20input:\x20context_objects\x20(include\x20the\x20Service;\x20add\x20Machine/Allocation\x20for\x20refund-path\x20detection).\x20Optional:\x20context_network,\x20order_amount.\x0a'+'3.\x20Cross-Network\x20Migration\x20(FIX-012):\x20clone_project_to_network\x20(or\x20its\x20alias\x20migrate_network)\x20copies\x20a\x20source\x20project\x27s\x20object\x20metadata\x20to\x20a\x20new\x20project\x20bound\x20to\x20target_network.\x20The\x205-step\x20migration\x20workflow:\x201)\x20call\x20clone_project_to_network\x20(or\x20migrate_network)\x20with\x20target_network\x20to\x20copy\x20metadata,\x202)\x20re-run\x20onchain_operations\x20with\x20env.network=target_network\x20to\x20deploy\x20objects\x20on-chain,\x203)\x20re-register\x20LocalMark\x20names\x20with\x20the\x20SAME\x20names\x20on\x20the\x20target\x20network\x20(FIX-011\x20cross-network\x20consistency),\x204)\x20update_project\x20to\x20set\x20service_address\x20on\x20the\x20new\x20project,\x205)\x20build_graph\x20to\x20construct\x20the\x20new\x20project\x27s\x20relationship\x20graph.'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier).\x20'+'For\x20create_project:\x20OPTIONAL\x20—\x20if\x20omitted,\x20auto-derived\x20from\x20project_name\x20(e.g.\x20\x27Twitch\x20Service\x27\x20→\x20\x27twitch_service\x27).\x20'+'For\x20other\x20actions\x20(build_graph,\x20evaluate_project,\x20etc.):\x20used\x20to\x20identify\x20the\x20project.\x20'+'Takes\x20precedence\x20resolution:\x20project_id\x20>\x20project\x20(prefix).'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27).\x20Used\x20by\x20create_version.'),'context_objects':z['array'](z['string']())['optional']()['describe']('Object\x20IDs\x20(0x...)\x20or\x20LocalMark\x20names\x20to\x20assemble\x20context\x20for.\x20Required\x20when\x20action=\x27assemble_context\x27.\x20The\x20current\x20on-chain\x20state\x20of\x20each\x20object\x20will\x20be\x20queried\x20and\x20enriched\x20with\x20semantic\x20annotations.'),'include_events':z['boolean']()['optional']()['describe']('When\x20true,\x20assemble_context\x20also\x20queries\x20recent\x20state-transition\x20events\x20(NewOrderEvent,\x20ProgressEvent,\x20ArbEvent,\x20etc.).\x20Events\x20are\x20the\x20real-time\x20transition\x20log\x20—\x20convergent\x20and\x20bounded.\x20Defaults\x20to\x20false.\x20Note:\x20object-embedded\x20history\x20(ProgressSession.forwards,\x20Order.disputes)\x20is\x20ALWAYS\x20extracted\x20automatically\x20—\x20no\x20flag\x20needed.'),'context_network':z['enum'](['testnet','mainnet'])['optional']()['describe']('Network\x20for\x20assemble_context\x20/\x20reverse_map\x20queries.\x20Defaults\x20to\x20\x27testnet\x27\x20if\x20omitted.'),'reverse_order_amount':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20for\x20reverse_map\x20—\x20included\x20in\x20the\x20report\x20summary\x20as\x20the\x20concrete\x20escrow\x20mention.'),'context_depth':z['number']()['int']()['min'](0x0)['max'](0x5)['optional']()['describe']('BFS\x20recursion\x20depth\x20for\x20dependency\x20expansion\x20in\x20assemble_context\x20(default\x200\x20=\x20no\x20expansion).\x20'+'When\x20>0,\x20the\x20assembly\x20recursively\x20queries\x20objects\x20referenced\x20by\x20the\x20center\x20objects\x20'+'(permission,\x20guard,\x20machine,\x20service,\x20repositories,\x20etc.)\x20up\x20to\x20the\x20given\x20depth,\x20'+'using\x20the\x20same\x20address-field\x20extraction\x20rules\x20as\x20build_graph\x20(Pathway\x201).\x20'+'Each\x20level\x20issues\x20one\x20batched\x20query_objects\x20call\x20(≤50\x20IDs\x20per\x20batch).\x20'+'Cycles\x20are\x20detected\x20and\x20skipped\x20via\x20a\x20visited\x20set.\x20'+'Discovered\x20dependencies\x20are\x20returned\x20in\x20`dependencies`\x20(edge\x20metadata)\x20and\x20'+'`dependency_objects`\x20(full\x20object\x20states).\x20Recommended:\x201–2\x20for\x20most\x20use\x20cases;\x20'+'3+\x20may\x20pull\x20large\x20subgraphs\x20(use\x20context_include\x20to\x20constrain).'),'context_include':z['array'](z['string']())['optional']()['describe']('Optional\x20filter\x20for\x20dependency\x20expansion\x20edge\x20types.\x20When\x20omitted,\x20ALL\x20outbound\x20'+'references\x20are\x20followed.\x20When\x20provided,\x20only\x20edges\x20whose\x20`field`\x20matches\x20one\x20of\x20the\x20'+'listed\x20names\x20are\x20followed.\x20Recognized\x20field\x20names\x20(from\x20extractAddressFields):\x20'+'\x27permission\x27,\x20\x27machine\x27,\x20\x27service\x27,\x20\x27progress\x27,\x20\x27buy_guard\x27,\x20\x27um\x27,\x20\x27repositories\x27,\x20'+'\x27arbitrations\x27,\x20\x27rewards\x27,\x20\x27consensus_repositories\x27,\x20\x27context_repositories\x27,\x20'+'\x27dispute\x27,\x20\x27allocation\x27,\x20\x27external_deposit_guard\x27,\x20\x27external_withdraw_guard\x27,\x20'+'\x27allocator_guard\x27,\x20\x27for_object\x27,\x20\x27for_guard\x27,\x20\x27payment\x27,\x20\x27voting_guard\x27,\x20\x27usage_guard\x27,\x20'+'\x27guard\x27,\x20\x27write_guard\x27,\x20\x27quote_guard\x27,\x20\x27recipient_entity\x27,\x20\x27order_allocators\x27.\x20'+'Example:\x20[\x27permission\x27,\x27guard\x27]\x20expands\x20only\x20permission/guard\x20dependencies.'),'filter_status':z['enum'](['draft','active','inactive','archived'])['optional']()['describe']('Filter\x20list_projects\x20by\x20project\x20status.'),'filter_perspective':z['enum'](['producer','consumer','both'])['optional']()['describe']('Filter\x20list_projects\x20by\x20project\x20perspective.'),'filter_network':z['enum'](['testnet','mainnet'])['optional']()['describe']('Filter\x20list_projects\x20by\x20network.'),'project_name':z['string']()['min'](0x1)['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20create_project\x20/\x20create_project_from_onchain\x20/\x20update_project.\x20Required\x20when\x20action=\x27create_project\x27.'),'project_description':z['string']()['max'](0x7d0)['optional']()['describe']('Project\x20description\x20for\x20create_project\x20/\x20update_project.'),'project_industry':IndustryEnum['optional']()['describe']('Industry\x20tag\x20for\x20create_project.\x20Drives\x20template\x20defaults\x20—\x20when\x20set\x20'+'(and\x20not\x20\x27general\x27),\x20the\x20system\x20auto-applies\x20an\x20industry\x20blueprint\x20'+'with\x20~10\x20draft\x20objects\x20(Permission,\x20Service,\x20Machine,\x20Guard,\x20Treasury,\x20'+'Allocation,\x20etc.)\x20+\x20graph\x20edges,\x20ready\x20for\x20deployment.\x20'+'Supported\x20industries:\x20\x27general\x27\x20(no\x20template),\x20\x27retail\x27,\x20\x27retail_d2c\x27\x20'+'(Direct-to-Consumer,\x20e.g.,\x20Shopify\x20—\x20Allocation\x20escrow\x20+\x202\x20Guards),\x20\x27service\x27,\x20'+'\x27rental\x27,\x20\x27freelance\x27,\x20\x27education\x27,\x20\x27travel\x27,\x20\x27subscription\x27,\x20\x27custom\x27.\x20'+'Each\x20industry\x20preset\x20embeds\x20risk\x20constraints\x20(e.g.,\x20\x27freelance\x27\x20does\x20'+'NOT\x20require\x20compensation_fund,\x20while\x20\x27rental\x27/\x27travel\x27\x20do).\x20'+'Example:\x20project_industry=\x27freelance\x27\x20creates\x20a\x20freelance-style\x20'+'blueprint\x20with\x20setting_locked_time\x20≥\x207d.\x20'+'Set\x20skip_templates=true\x20to\x20bypass\x20template\x20application.'),'project_perspective':z['enum'](['producer','consumer','both'])['optional']()['describe']('Project\x20perspective\x20for\x20create_project.\x20\x27producer\x27\x20=\x20build/operate\x20services,\x20\x27consumer\x27\x20=\x20evaluate/buy\x20services,\x20\x27both\x27\x20=\x20dual\x20role.\x20Defaults\x20to\x20\x27producer\x27.'),'project_labels':z['array'](z['string']())['optional']()['describe']('Free-form\x20labels\x20for\x20create_project\x20/\x20update_project\x20(e.g.\x20[\x27travel\x27,\x27london\x27,\x27priority\x27]).'),'service_address':z['string']()['optional']()['describe']('On-chain\x20Service\x20object\x20address.\x20Required\x20for\x20create_project_from_onchain.\x20Optional\x20for\x20create_project\x20(links\x20the\x20project\x20to\x20its\x20core\x20Service).'),'project_network':z['enum'](['testnet','mainnet'])['optional']()['describe']('Network\x20the\x20project\x20is\x20bound\x20to.\x20A\x20Service\x20deployed\x20to\x20different\x20networks\x20are\x20different\x20projects.\x20Defaults\x20to\x20\x27testnet\x27.'),'skip_templates':z['boolean']()['optional']()['describe']('When\x20true,\x20create_project\x20skips\x20applying\x20the\x20industry\x20template\x20(no\x20draft:*\x20blueprint\x20objects).\x20'+'Use\x20this\x20when\x20you\x20want\x20a\x20clean\x20project\x20with\x20no\x20pre-filled\x20blueprint\x20objects\x20—\x20useful\x20for\x20'+'custom\x20architectures\x20that\x20do\x20not\x20match\x20any\x20industry\x20mode,\x20or\x20to\x20avoid\x20draft\x20objects\x20'+'appearing\x20in\x20build_graph\x20/\x20evaluate_project\x20before\x20deployment.\x20Defaults\x20to\x20false\x20(templates\x20applied).'),'project_id':z['string']()['optional']()['describe']('Project\x20UUID\x20for\x20update_project\x20/\x20get_project_detail\x20/\x20add_object\x20/\x20remove_object\x20/\x20create_version\x20/\x20build_graph\x20/\x20evaluate_project\x20/\x20refresh_objects.\x20Takes\x20precedence\x20over\x20\x27project\x27\x20(prefix)\x20when\x20both\x20are\x20given.'),'project_status':z['enum'](['draft','active','inactive','archived'])['optional']()['describe']('New\x20status\x20for\x20update_project.\x20\x27active\x27\x20projects\x20are\x20live,\x20\x27archived\x27\x20are\x20read-only.'),'target_network':z['enum'](['testnet','mainnet'])['optional']()['describe']('Target\x20network\x20for\x20clone_project_to_network\x20(or\x20its\x20alias\x20migrate_network).\x20'+'The\x20source\x20project\x27s\x20objects\x20are\x20copied\x20to\x20a\x20new\x20project\x20bound\x20to\x20this\x20network.\x20'+'The\x20new\x20project\x27s\x20prefix\x20is\x20\x27<source_prefix>_<target_network>\x27\x20to\x20avoid\x20collision.\x20'+'See\x20the\x20action\x20description\x20for\x20the\x20full\x205-step\x20migration\x20workflow\x20(FIX-012).'),'object_address':z['string']()['optional']()['describe']('On-chain\x20object\x20address\x20(0x\x20followed\x20by\x2032-64\x20hex\x20chars)\x20for\x20add_object\x20/\x20remove_object.\x20'+'Also\x20accepts\x20the\x20internal\x20\x27draft:<name>\x27\x20sentinel\x20used\x20by\x20create_project\x20for\x20blueprint\x20objects\x20not\x20yet\x20on-chain.\x20'+'For\x20add_object,\x20alternatively\x20use\x20object_name_add\x20to\x20resolve\x20via\x20LocalMark.\x20'+'H-06\x20fix:\x20invalid\x20formats\x20are\x20rejected\x20at\x20the\x20handler\x20level\x20with\x20a\x20descriptive\x20error.'),'object_name_add':z['string']()['optional']()['describe']('LocalMark\x20name\x20for\x20add_object\x20(alternative\x20to\x20object_address).'),'object_type_add':z['enum'](['Service','Machine','Guard','Permission','Reward','Arbitration','Progress','Treasury','Demand','Repository','Contact','Order','Allocation','Personal','Payment','Proof'])['optional']()['describe']('Object\x20type\x20for\x20add_object.'),'object_role':z['enum'](['core','dependency','reference'])['optional']()['describe']('Object\x20role\x20in\x20project\x20for\x20add_object.\x20\x27core\x27\x20=\x20the\x20Service\x20(only\x20one\x20per\x20project),\x20\x27dependency\x27\x20=\x20required\x20binding,\x20\x27reference\x27\x20=\x20optional/auxiliary.\x20Defaults\x20to\x20\x27reference\x27.'),'object_tags_add':z['array'](z['string']())['optional']()['describe']('Tags\x20for\x20add_object.'),'object_id_remove':z['string']()['optional']()['describe']('ProjectObject\x20UUID\x20for\x20remove_object\x20(the\x20project_objects.id,\x20NOT\x20the\x20on-chain\x20address).'),'object_id_update':z['string']()['optional']()['describe']('ProjectObject\x20UUID\x20for\x20update_object\x20(the\x20project_objects.id).'),'object_name_update':z['string']()['optional']()['describe']('New\x20name\x20for\x20update_object.'),'object_type_update':z['string']()['optional']()['describe']('New\x20type\x20for\x20update_object.'),'object_role_update':z['enum'](['core','dependency','reference'])['optional']()['describe']('New\x20role\x20for\x20update_object.'),'object_tags_update':z['array'](z['string']())['optional']()['describe']('New\x20tags\x20for\x20update_object.'),'version_description':z['string']()['max'](0x1f4)['optional']()['describe']('Description\x20for\x20create_version.'),'fork_from_version':z['string']()['optional']()['describe']('Source\x20version\x20for\x20create_version\x20(fork\x20objects\x20+\x20graph\x20from\x20this\x20version).'),'max_depth':z['number']()['int']()['min'](0x1)['max'](0x5)['optional']()['describe']('Max\x20recursion\x20depth\x20for\x20Pathway\x201\x20(internal\x20reference\x20derivation)\x20in\x20build_graph.\x20Default\x203.'),'depth':z['number']()['int']()['min'](0x1)['max'](0x5)['optional']()['describe']('Alias\x20for\x20max_depth\x20(build_graph).\x20When\x20both\x20are\x20set,\x20max_depth\x20takes\x20precedence.\x20Default\x203.'),'enable_registrar':z['boolean']()['optional']()['describe']('Enable\x20Pathway\x202\x20(Registrar\x20inbound\x20query)\x20in\x20build_graph.\x20Default\x20true.'),'enable_potential':z['boolean']()['optional']()['describe']('Enable\x20Pathway\x203\x20(potential\x20relationship\x20detection)\x20in\x20build_graph.\x20Default\x20false.'),'async_mode':z['boolean']()['optional']()['describe']('When\x20true,\x20build_graph\x20/\x20evaluate_project\x20runs\x20in\x20the\x20background\x20and\x20returns\x20{\x20task_id\x20}\x20immediately.\x20'+'Poll\x20query_task_status(task_id)\x20to\x20check\x20progress\x20and\x20retrieve\x20the\x20result.\x20'+'Default\x20false\x20(synchronous).\x20Use\x20async_mode=true\x20for\x20large\x20projects\x20with\x20enable_potential=true\x20'+'where\x20build\x20may\x20take\x20>10s.'),'evaluation_type':z['enum'](['risk','trust','completeness','value','worth_buying'])['optional']()['describe']('Evaluation\x20type\x20for\x20evaluate_project.\x20risk/trust/completeness\x20are\x20rule-based\x20(computed\x20locally).\x20worth_buying/value\x20require\x20LLM\x20assistance\x20(returns\x20a\x20prompt\x20for\x20the\x20caller\x20to\x20process).'),'refresh_before_eval':z['boolean']()['optional']()['describe']('When\x20true\x20(DEFAULT),\x20evaluate_project\x20refreshes\x20object\x20cache\x20from\x20chain\x20before\x20evaluating.\x20'+'Set\x20to\x20false\x20ONLY\x20for\x20read-only\x20checks\x20where\x20staleness\x20is\x20acceptable\x20(e.g.,\x20quick\x20comparisons).\x20'+'BUG-P0-2\x20fix:\x20previously\x20defaulted\x20to\x20false,\x20causing\x20stale\x20Machine\x20node_count\x20and\x20other\x20'+'dynamic-field-derived\x20fields\x20to\x20produce\x20false\x20findings\x20(e.g.,\x20\x27Machine\x20has\x20no\x20nodes\x27).\x20'+'Now\x20defaults\x20to\x20true\x20—\x20set\x20refresh_before_eval=false\x20explicitly\x20to\x20skip\x20refresh.'),'eval_score':z['number']()['min'](0x0)['max'](0x64)['optional']()['describe']('Overall\x20evaluation\x20score\x20(0-100)\x20for\x20save_evaluation.'),'eval_summary':z['string']()['max'](0x3e8)['optional']()['describe']('Evaluation\x20summary\x20for\x20save_evaluation.'),'eval_details':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Structured\x20evaluation\x20details\x20for\x20save_evaluation\x20(criterion_scores,\x20findings,\x20etc.).'),'compare_project_ids':z['array'](z['string']())['min'](0x2)['optional']()['describe']('Array\x20of\x20project\x20IDs\x20to\x20compare\x20(for\x20compare_projects).\x20Minimum\x202.'),'diff_address':z['string']()['optional']()['describe']('Object\x20address\x20for\x20get_object_diff.'),'diff_from_time':z['number']()['int']()['optional']()['describe']('Start\x20timestamp\x20(ms)\x20for\x20get_object_diff.'),'diff_to_time':z['number']()['int']()['optional']()['describe']('End\x20timestamp\x20(ms)\x20for\x20get_object_diff.'),'network':z['enum'](['testnet','mainnet'])['optional']()['describe']('Target\x20network\x20for\x20generate_deployment_doc.\x20Required\x20when\x20action=\x27generate_deployment_doc\x27.'),'save':z['boolean']()['optional']()['describe']('When\x20true\x20(default),\x20persist\x20the\x20generated\x20MD\x20to\x20SQLite\x20project_documents\x20table\x20for\x20generate_deployment_doc.'),'detail_level':z['enum'](['summary','detailed','full'])['optional']()['describe']('P2-03:\x20Deployment\x20document\x20detail\x20level\x20(only\x20for\x20generate_deployment_doc).\x20'+'\x27summary\x27\x20(default):\x20object\x20name\x20+\x20type\x20+\x20key\x20bindings\x20(machine,\x20permission,\x20buy_guard,\x20order_allocators).\x20'+'\x27detailed\x27:\x20adds\x20sale\x20list,\x20arbitration\x20list,\x20reward\x20list.\x20'+'\x27full\x27:\x20complete\x20fields\x20including\x20stock,\x20price,\x20wip_hash,\x20all\x20config.\x20'+'Use\x20\x27summary\x27\x20for\x20quick\x20review;\x20request\x20\x27detailed\x27\x20or\x20\x27full\x27\x20only\x20when\x20deeper\x20inspection\x20is\x20needed.'),'object_kind':z['enum'](['machine','guard'])['optional']()['describe']('Object\x20kind\x20for\x20plan_object_edit.\x20\x27machine\x27\x20=\x20Machine\x20workflow\x20directed\x20graph\x20(cycles\x20allowed),\x20\x27guard\x27\x20=\x20Guard\x20computation\x20tree.\x20'+'Required\x20when\x20action=\x27plan_object_edit\x27.\x20Inferred\x20from\x20action\x20for\x20patch_machine_nodes\x20(always\x20\x27machine\x27)\x20'+'and\x20patch_guard_tree\x20(always\x20\x27guard\x27).'),'edit_format':z['enum'](['tree_outline','json'])['optional']()['describe']('Format\x20of\x20the\x20edited\x20content\x20for\x20plan_object_edit.\x20'+'\x27tree_outline\x27\x20(default):\x20the\x20indented\x20Markdown\x20outline\x20produced\x20by\x20get_machine_graph\x20/\x20get_guard_graph\x20(human-editable).\x20'+'\x27json\x27:\x20raw\x20JSON\x20(machine-readable,\x20for\x20programmatic\x20edits).\x20'+'Both\x20formats\x20are\x20bidirectional\x20with\x20the\x20parse\x20functions\x20in\x20knowledge/machine-render.ts\x20/\x20guard-render.ts.'),'edited_content':z['string']()['optional']()['describe']('Edited\x20content\x20for\x20plan_object_edit.\x20Must\x20be\x20in\x20the\x20format\x20specified\x20by\x20edit_format.\x20'+'For\x20\x27tree_outline\x27:\x20the\x20full\x20tree_outline\x20string\x20from\x20get_machine_graph/get_guard_graph\x20with\x20user\x20edits.\x20'+'For\x20\x27json\x27:\x20a\x20JSON\x20string\x20matching\x20the\x20Machine/Guard\x20schema.\x20'+'The\x20content\x20is\x20parsed\x20+\x20validated\x20+\x20diffed\x20against\x20the\x20current\x20on-chain\x20state.'),'plan_id':z['string']()['optional']()['describe']('Plan\x20ID\x20returned\x20by\x20plan_object_edit.\x20Required\x20for\x20apply_object_edit.\x20'+'The\x20plan\x20is\x20short-lived\x20(10-minute\x20TTL)\x20and\x20stored\x20in-memory.'),'expected_hash':z['string']()['optional']()['describe']('Expected\x20hash\x20returned\x20by\x20plan_object_edit.\x20Required\x20for\x20apply_object_edit.\x20'+'Used\x20for\x20optimistic\x20concurrency\x20control:\x20if\x20the\x20on-chain\x20state\x20changed\x20between\x20plan\x20and\x20apply,\x20'+'the\x20hash\x20will\x20mismatch\x20and\x20apply\x20will\x20refuse\x20to\x20proceed\x20(stale\x20edit\x20protection).'),'patch_operations':z['array'](z['string']())['optional']()['describe']('Patch\x20operations\x20for\x20patch_machine_nodes\x20/\x20patch_guard_tree.\x20Each\x20string\x20is\x20a\x20single\x20patch\x20operation.\x0a'+'Machine\x20operations\x20(13\x20total):\x0a'+'\x20\x20\x27add\x20node\x20<name>\x27\x20|\x20\x27remove\x20node\x20<name>\x27\x20|\x20\x27set\x20description\x20<node_name>\x20<text...>\x27\x0a'+'\x20\x20\x27add\x20edge\x20<from>\x20<to>\x27\x20|\x20\x27remove\x20edge\x20<from>\x20<to>\x27\x20|\x20\x27set\x20threshold\x20<edge_from>\x20<edge_to>\x20<value>\x27\x0a'+'\x20\x20\x27add\x20forward\x20<edge_from>\x20<edge_to>\x20<forward_name>\x27\x20|\x20\x27remove\x20forward\x20<edge_from>\x20<edge_to>\x20<forward_name>\x27\x0a'+'\x20\x20\x27set\x20guard\x20<edge_from>\x20<edge_to>\x20<forward_name>\x20<guard_addr_or_name|none>\x27\x0a'+'\x20\x20\x27set\x20permission\x20<edge_from>\x20<edge_to>\x20<forward_name>\x20<perm_index>\x27\x0a'+'\x20\x20\x27set\x20operator\x20<edge_from>\x20<edge_to>\x20<forward_name>\x20<named_operator|none>\x27\x0a'+'\x20\x20\x27set\x20weight\x20<edge_from>\x20<edge_to>\x20<forward_name>\x20<weight>\x27\x0a'+'\x20\x20\x27set\x20retained_submission\x20<edge_from>\x20<edge_to>\x20<forward_name>\x20<comma_separated_indices|none>\x27\x0a'+'Guard\x20operations\x20(8\x20total\x20—\x20see\x20patch_guard_tree):\x0a'+'\x20\x20\x27add\x20table\x20<identifier>\x20<name|none>\x20<value_type>\x20<b_submission>\x20[json_value]\x27\x0a'+'\x20\x20\x27remove\x20table\x20<identifier>\x27\x20|\x20\x27set\x20table_value\x20<identifier>\x20[json_value|none]\x27\x0a'+'\x20\x20\x27set\x20table_name\x20<identifier>\x20<name|none>\x27\x20|\x20\x27set\x20table_submission\x20<identifier>\x20<true|false>\x27\x0a'+'\x20\x20\x27set\x20root\x20<json_node>\x27\x20|\x20\x27set\x20rely\x20<comma_separated_guard_addresses|none>\x27\x0a'+'Operations\x20are\x20applied\x20in\x20order.\x20Both\x20patches\x20are\x20validated\x20(validateMachine/validateGuard)\x20before\x20execution.'),'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20for\x20recommend_industry\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20'+'with\x20deposit\x20and\x20damage\x20inspection\x27).\x20Falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'mode_source':z['string']()['optional']()['describe']('Source\x20builtin\x20mode\x20name\x20for\x20derive_user_mode\x20(e.g.\x20\x27freelance\x27).\x20Call\x20list_modes\x20to\x20see\x20available\x20modes.'),'mode_name':z['string']()['max'](0x64)['optional']()['describe']('Mode\x20name\x20for\x20derive_user_mode\x20(new\x20mode\x20name),\x20evolve_user_mode\x20/\x20unregister_user_mode\x20(existing\x20custom\x20mode),\x20register_user_mode\x20(new\x20mode\x20name).\x20'+'Must\x20NOT\x20conflict\x20with\x20builtin\x20mode\x20names.'),'mode_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20derive_user_mode\x20/\x20register_user_mode.\x20Defaults\x20to\x20mode_name.'),'mode_changes':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Mode\x20field\x20overrides\x20for\x20derive_user_mode\x20/\x20evolve_user_mode\x20/\x20register_user_mode.\x20'+'For\x20register_user_mode,\x20REQUIRED\x20fields:\x20machine_shape\x20(non-empty\x20array\x20of\x20{name,\x20role})\x20and\x20key_risk\x20(string).\x20'+'Common\x20overrides:\x20machine_shape\x20(array\x20of\x20{name:string,\x20role:string}),\x20config_overrides\x20(per-object\x20config),\x20'+'allocator,\x20guards,\x20build_notes,\x20risk_appetite.\x20'+'R-M1-11\x20ENFORCED:\x20machine_shape\x20node\x20names\x20must\x20NOT\x20contain\x20dispute/refund/arb\x20terms\x20—\x20'+'disputes\x20flow\x20through\x20Service.arbitrations\x20independently\x20of\x20the\x20Machine.'),'mode_change_description':z['string']()['max'](0x1f4)['optional']()['describe']('Change\x20description\x20for\x20evolve_user_mode\x20(recorded\x20in\x20evolution\x20history).'),'mode_bump_version':z['boolean']()['optional']()['describe']('Whether\x20evolve_user_mode\x20bumps\x20the\x20patch\x20version\x20(default\x20true:\x20v1.0\x20→\x20v1.1).'),'metric_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20metric\x20ID\x20for\x20register_custom_metric\x20(e.g.\x20\x27seasonality_risk\x27).'),'metric_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_metric.'),'metric_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_metric.'),'metric_type':z['enum'](['risk','benefit'])['optional']()['describe']('Metric\x20type\x20for\x20register_custom_metric:\x20\x27risk\x27\x20(negative)\x20or\x20\x27benefit\x27\x20(positive).'),'metric_scale':z['enum'](['level','numeric','percentage'])['optional']()['describe']('Metric\x20scale\x20for\x20register_custom_metric:\x20\x27level\x27\x20(high/medium/low),\x20\x27numeric\x27,\x20or\x20\x27percentage\x27.'),'metric_weight':z['number']()['min'](0x0)['max'](0xa)['optional']()['describe']('Metric\x20weight\x20for\x20register_custom_metric\x20(default\x201.0).'),'constraint_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20constraint\x20ID\x20for\x20register_custom_constraint.'),'constraint_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_constraint.'),'constraint_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_constraint.'),'constraint_rule':z['discriminatedUnion']('type',[z['object']({'type':z['literal']('capability_required'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('capability_forbidden'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('numeric_limit'),'field':z['string'](),'max':z['number']()['optional'](),'min':z['number']()['optional']()})['strict'](),z['object']({'type':z['literal']('condition_required'),'condition':z['string'](),'ai_evaluated':z['literal'](!![])})['strict']()])['optional']()['describe']('Constraint\x20rule\x20for\x20register_custom_constraint.\x204\x20types:\x20'+'capability_required/capability_forbidden\x20(capability_id),\x20numeric_limit\x20(field\x20+\x20max/min),\x20'+'condition_required\x20(natural-language\x20condition,\x20AI-evaluated).'),'constraint_severity':z['enum'](['hard','soft'])['optional']()['describe']('Constraint\x20severity\x20for\x20register_custom_constraint:\x20\x27hard\x27\x20blocks\x20applyTemplate\x20on\x20violation;\x20\x27soft\x27\x20only\x20warns\x20(default\x20\x27soft\x27).'),'constraint_on_violation':z['enum'](['block','warn','log'])['optional']()['describe']('Violation\x20action\x20for\x20register_custom_constraint\x20(default\x20\x27warn\x27).'),'metric_type_filter':z['enum'](['risk','benefit'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20metric\x20type.'),'scope_filter':z['enum'](['builtin','custom'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20scope\x20(builtin\x20or\x20custom).'),'target_objects':z['array'](z['string']())['optional']()['describe']('Optional\x20explicit\x20target\x20objects\x20for\x20analyze_intent\x20(entry_ids\x20or\x20object_type\x20names).\x20'+'When\x20provided,\x20puzzle\x20snapshots\x20are\x20restricted\x20to\x20these\x20objects.'),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown']()['describe']('Puzzle\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20from\x20analyze_intent\x20output\x20unchanged).'),'completeness':z['unknown']()['describe']('Completeness\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20unchanged).'),'missing_dimensions':z['array'](z['string']())['describe']('Dimensions\x20still\x20missing\x20for\x20this\x20object.')})['strict']())['optional']()['describe']('Per-object\x20puzzle\x20snapshots\x20for\x20aggregate_risks,\x20keyed\x20by\x20object_type.\x20'+'Pass\x20the\x20\x27puzzles\x27\x20field\x20from\x20a\x20prior\x20analyze_intent\x20result\x20UNCHANGED.\x20'+'When\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20analyze_intent\x20first\x20(C1→C2\x20in\x20one\x20call).'),'severity_threshold':z['enum'](['CRITICAL','HIGH','MEDIUM','LOW','INFO'])['optional']()['describe']('Severity\x20threshold\x20for\x20aggregate_risks\x20(default\x20\x27HIGH\x27).\x20Risks\x20at\x20or\x20above\x20this\x20level\x20block\x20deployment\x20(status\x20RISK_BLOCKED).'),'user_confirmed_high_risks':z['array'](z['string']())['optional']()['describe']('IDs\x20of\x20HIGH\x20risks\x20the\x20user\x20has\x20already\x20confirmed\x20in\x20a\x20prior\x20round\x20(aggregate_risks).\x20'+'Confirmed\x20HIGH\x20risks\x20no\x20longer\x20trigger\x20RISK_PENDING_CONFIRM.'),'planned_objects':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27guard\x27,\x20\x27machine\x27).'),'is_new':z['boolean']()['describe']('true\x20when\x20creating\x20a\x20NEW\x20object;\x20false\x20when\x20reusing\x20an\x20existing\x20one.'),'name':z['string']()['optional']()['describe']('Planned\x20object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20objects\x20for\x20aggregate_risks\x20OBJECT_REUSE\x20check\x20(safety-rules).\x20'+'Flags\x20NEW\x20objects\x20whose\x20type\x20carries\x20an\x20always/strongly-recommended\x20reuse\x20rule.'),'planned_operations':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27arbitration\x27).'),'trigger':z['enum'](['create','publish'])['describe']('Lifecycle\x20trigger\x20that\x20locks\x20fields.'),'name':z['string']()['optional']()['describe']('Object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20create/publish\x20operations\x20for\x20aggregate_risks\x20IMMUTABILITY\x20check\x20(safety-rules).\x20'+'Warns\x20which\x20fields\x20become\x20permanently\x20locked\x20after\x20each\x20operation.'),'substeps':z['array'](z['object']({'step_id':z['string']()['describe']('Substep\x20id,\x20format\x20\x27T<step>.<substep>\x27\x20e.g.\x20\x27T1.1\x27.'),'parent_step':z['string']()['describe']('Parent\x20step\x20id,\x20format\x20\x27T<step>\x27\x20e.g.\x20\x27T1\x27.'),'object_type':ProjectObjectTypeEnum['describe']('Wowok\x20object\x20type\x20this\x20substep\x20operates\x20on.'),'entry_id':z['string']()['describe']('Puzzle\x20entry_id\x20this\x20substep\x20corresponds\x20to.'),'operation_type':z['string']()['describe']('operation_type\x20for\x20onchain_operations.'),'network':z['enum'](['testnet','mainnet'])['describe']('Target\x20network.'),'input':z['object']({'data':z['record'](z['string'](),z['unknown']())['describe']('Input\x20data\x20payload.'),'input_refs':z['array'](z['string']())['describe']('Upstream\x20substep_ids\x20this\x20substep\x20consumes.')})['strict'](),'output':z['object']({'object_id':z['string']()['optional'](),'tx_digest':z['string']()['optional']()})['catchall'](z['unknown']())['optional']()['describe']('Output\x20data\x20(filled\x20after\x20execution).'),'timestamp':z['number']()['describe']('Execution\x20timestamp\x20(ms).'),'status':z['enum'](['PENDING','SUCCESS','FAILED','SKIPPED'])['describe']('Execution\x20status.'),'failure_reason':z['string']()['optional']()['describe']('Failure\x20reason\x20(when\x20status=\x27FAILED\x27).'),'dependencies':z['object']({'input_refs':z['array'](z['string']()),'output_refs':z['array'](z['object']({'substep_id':z['string']()['describe']('Downstream\x20substep\x20that\x20consumes\x20this\x20output.'),'field_path':z['string']()['describe']('Field\x20path\x20produced\x20by\x20this\x20substep\x20(e.g.\x20\x27permission_address\x27).')})['strict']())})['strict']()['describe']('Dependencies\x20(input_refs\x20+\x20output_refs).'),'retry_info':z['object']({'original_step_id':z['string'](),'retry_count':z['number'](),'retry_reason':z['string']()})['strict']()['optional']()['describe']('Retry\x20info\x20(when\x20this\x20substep\x20is\x20a\x20retry\x20of\x20an\x20earlier\x20one).')})['strict']())['optional']()['describe']('Substep\x20execution\x20records\x20for\x20trace_substeps\x20(63-spec\x20§2.1).\x20'+'Required\x20when\x20action=\x27trace_substeps\x27.\x20Construct\x20from\x20your\x20deployment\x20execution\x20trace.'),'substep_edges':z['array'](z['object']({'source':z['string']()['describe']('Source\x20substep\x20id.'),'target':z['string']()['describe']('Target\x20substep\x20id\x20(depends\x20on\x20source).'),'field_path':z['string']()['describe']('Field\x20path\x20flowing\x20along\x20this\x20edge.')})['strict']())['optional']()['describe']('Explicit\x20DAG\x20edges\x20for\x20trace_substeps.\x20When\x20omitted,\x20edges\x20are\x20derived\x20from\x20each\x20substep\x27s\x20input_refs.'),'guide_state':z['object']({'intent_text':z['string']()['describe']('Step\x201:\x20raw\x20merchant\x20business\x20description.'),'confirmed_industry':z['string']()['optional']()['describe']('Step\x202:\x20merchant-confirmed\x20industry\x20id.'),'currency':z['string']()['optional']()['describe']('Step\x205:\x20payment\x20currency\x20(default\x20WOW).'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204:\x20merchant-defined\x20deliverables\x20(opaque\x20passthrough).'),'payment_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205:\x20payment\x20structure\x20overrides\x20(opaque\x20passthrough).'),'trust_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206:\x20trust\x20mechanism\x20overrides\x20(opaque\x20passthrough).'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206:\x20merchant-confirmed\x20business\x20module\x20ids.')})['strict']()['optional']()['describe']('Wizard\x20state\x20from\x20a\x20prior\x20merchant_guide\x20result.\x20Pass\x20back\x20UNCHANGED\x20on\x20'+'every\x20subsequent\x20call\x20(same\x20pattern\x20as\x20C1→C2\x20puzzles).\x20The\x20handler\x20re-runs\x20'+'the\x20pipeline\x20deterministically\x20and\x20advances\x20to\x20the\x20furthest\x20reachable\x20step.'),'guide_confirm':z['object']({'industry':z['string']()['optional']()['describe']('Step\x202\x20confirmation:\x20industry\x20id\x20(e.g.\x20\x27freelance\x27).'),'currency':z['string']()['optional']()['describe']('Step\x205\x20confirmation:\x20payment\x20currency.'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204\x20confirmation:\x20deliverable\x20definitions.'),'payment':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205\x20confirmation:\x20{\x20model,\x20triggers,\x20allocation\x20}\x20overrides.'),'trust':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206\x20confirmation:\x20{\x20refundPolicy,\x20arbitration,\x20escrow\x20}\x20overrides.'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206\x20confirmation:\x20business\x20module\x20ids\x20to\x20adopt\x20(overrides\x20recommendation).')})['strict']()['optional']()['describe']('Merchant\x20decisions\x20for\x20the\x20current\x20wizard\x20step.\x20Merged\x20over\x20guide_state.\x20'+'Typical\x20flow:\x20call\x201\x20with\x20intent\x20only\x20→\x20receive\x20step-2\x20industry\x20options\x20→\x20'+'call\x202\x20with\x20guide_state\x20+\x20guide_confirm={industry}\x20→\x20receive\x20full\x20blueprint\x20'+'plan\x20(steps\x207-10).'),'radar_account':z['string']()['optional']()['describe']('Account\x20to\x20analyze\x20—\x20address\x20(0x...)\x20or\x20LocalMark\x20name\x20(resolved\x20to\x20an\x20address).\x20'+'Required\x20when\x20action=\x27participation_radar\x27.\x20The\x20perspective\x20(customer/operator/observer)\x20'+'is\x20DERIVED\x20from\x20on-chain\x20data\x20(Order.builder\x20+\x20PermissionPerm\x20grants)\x20—\x20never\x20asserted\x20by\x20this\x20field.'),'radar_targets':z['array'](z['object']({'progress':z['string']()['describe']('Progress\x20object\x20address\x20(0x...)\x20or\x20LocalMark\x20name.\x20The\x20Progress\x20carries\x20the\x20current\x20node\x20+\x20bound\x20Machine.'),'order':z['string']()['optional']()['describe']('Order\x20object\x20address\x20or\x20LocalMark\x20name\x20(optional\x20but\x20recommended\x20—\x20enables\x20order-holder\x20detection,\x20'+'service-level\x20compensation/reward\x20claims,\x20and\x20dispute\x20context).')})['strict']())['min'](0x1)['max'](0x14)['optional']()['describe']('In-flight\x20orders\x20to\x20analyze\x20(1-20).\x20Required\x20when\x20action=\x27participation_radar\x27.\x20'+'Each\x20target\x20is\x20analyzed\x20independently;\x20results\x20are\x20aggregated\x20into\x20one\x20account\x20dashboard.'),'radar_include_alerts':z['boolean']()['optional']()['describe']('Attach\x20order-monitor\x20alerts\x20(progress\x20stall\x20/\x20compensation\x20fund\x20/\x20review\x20&\x20arbitration\x20windows)\x20'+'to\x20each\x20per-order\x20result.\x20Default\x20true.'),'radar_monitor_thresholds':z['object']({'progress_stall_hours':z['number']()['positive']()['optional']()['describe']('Progress\x20stall\x20alert\x20threshold\x20in\x20HOURS.\x20Default\x200\x20=\x20auto\x20(expected_node_duration\x20×\x202).'),'compensation_drop_ratio':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Compensation\x20fund\x20drop\x20alert\x20ratio\x20(0-1).\x20Default\x200.3\x20=\x20alert\x20on\x20≥30%\x20drop.'),'compensation_coverage_min':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Minimum\x20compensation\x20coverage\x20ratio\x20vs\x20order\x20amount\x20(0-1).\x20Default\x201.0\x20=\x20must\x20fully\x20cover.'),'messenger_timeout_hours':z['number']()['positive']()['optional']()['describe']('Messenger\x20no-reply\x20timeout\x20in\x20HOURS.\x20Default\x2024.'),'review_window_closing_days':z['number']()['positive']()['optional']()['describe']('Review\x20window\x20near-closing\x20alert\x20threshold\x20in\x20DAYS.\x20Default\x203.'),'arb_window_closing_days':z['number']()['positive']()['optional']()['describe']('Arbitration\x20window\x20near-closing\x20alert\x20threshold\x20in\x20DAYS.\x20Default\x203.')})['strict']()['optional']()['describe']('Optional\x20per-call\x20overrides\x20for\x20order-monitor\x20alert\x20thresholds\x20(only\x20used\x20when\x20radar_include_alerts\x20is\x20on).\x20'+'All\x20fields\x20optional;\x20omitted\x20fields\x20keep\x20defaults.\x20Units:\x20hours/days\x20as\x20marked\x20per\x20field.')})['strict']();const AssembleContextResultSchema=z['object']({'action':z['literal']('assemble_context'),'objects':z['array'](z['unknown']())['describe']('Current\x20on-chain\x20states\x20of\x20the\x20requested\x20objects\x20(from\x20query_objects).'),'events':z['array'](z['unknown']())['optional']()['describe']('Recent\x20state-transition\x20events\x20(only\x20when\x20include_events=true).\x20'+'Includes\x20NewOrderEvent,\x20ProgressEvent,\x20ArbEvent,\x20etc.'),'embedded_history':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Operation\x20history\x20extracted\x20from\x20object\x20states\x20—\x20NOT\x20from\x20tx\x20queries.\x20'+'Progress\x20objects:\x20session.forwards\x20(who\x20did\x20what,\x20when,\x20accomplished).\x20'+'Order\x20objects:\x20disputes,\x20claimed_by,\x20progress_object.\x20'+'This\x20is\x20the\x20CORRECT\x20history\x20source:\x20convergent,\x20no\x20infinite\x20recursion.'),'dependencies':z['array'](z['object']({'object':z['string']()['describe']('Discovered\x20dependency\x20object\x20ID\x20(0x...).'),'depth':z['number']()['int']()['min'](0x1)['describe']('BFS\x20depth\x20at\x20which\x20this\x20dependency\x20was\x20discovered\x20(1\x20=\x20direct\x20reference\x20from\x20a\x20center\x20object).'),'via_field':z['string']()['describe']('Field\x20name\x20on\x20the\x20parent\x20object\x20that\x20references\x20this\x20dependency\x20(e.g.\x20\x27permission\x27,\x20\x27machine\x27,\x20\x27guard\x27).\x20Matches\x20extractAddressFields\x20output.'),'via_type':z['string']()['describe']('Semantic\x20edge\x20type:\x20\x27bind\x27\x20|\x20\x27validate\x27\x20|\x20\x27consume\x27\x20|\x20\x27trigger\x27\x20|\x20\x27create\x27.'),'parent':z['string']()['describe']('Object\x20ID\x20of\x20the\x20parent\x20that\x20referenced\x20this\x20dependency.')}))['optional']()['describe']('Dependency\x20edges\x20discovered\x20via\x20BFS\x20expansion\x20(only\x20when\x20context_depth\x20>\x200).\x20'+'Each\x20entry\x20describes\x20one\x20outbound\x20reference\x20(parent\x20→\x20child)\x20with\x20the\x20field\x20name\x20'+'and\x20semantic\x20edge\x20type.\x20Use\x20with\x20dependency_objects\x20to\x20get\x20the\x20full\x20states.\x20'+'Cycles\x20are\x20deduplicated\x20—\x20each\x20object\x20ID\x20appears\x20at\x20most\x20once\x20at\x20its\x20shallowest\x20depth.'),'dependency_objects':z['array'](z['unknown']())['optional']()['describe']('Full\x20on-chain\x20states\x20of\x20the\x20discovered\x20dependency\x20objects\x20(only\x20when\x20context_depth\x20>\x200).\x20'+'Order\x20matches\x20`dependencies`\x20when\x20possible;\x20safe\x20to\x20consume\x20as\x20an\x20unordered\x20set.\x20'+'Center\x20objects\x20are\x20NOT\x20repeated\x20here\x20—\x20they\x20live\x20in\x20`objects`.'),'semantic_summary':z['unknown']()['optional']()['describe']('Business\x20semantic\x20annotations\x20generated\x20by\x20buildDataSemantic\x20—\x20'+'maps\x20raw\x20object\x20fields\x20to\x20business-meaningful\x20concepts\x20for\x20LLM\x20consumption.'),'context_digest':z['string']()['describe']('Unique\x20digest\x20for\x20this\x20assembled\x20context\x20(SHA\x20of\x20object\x20IDs\x20+\x20versions\x20+\x20timestamp).\x20'+'Use\x20for\x20caching\x20or\x20to\x20detect\x20state\x20changes\x20between\x20two\x20assembly\x20calls.'),'next_action':z['string']()['describe']('Suggested\x20next\x20action:\x20use\x20onchain_transaction\x20to\x20verify\x20a\x20specific\x20past\x20tx,\x20'+'or\x20proceed\x20with\x20onchain_operations\x20to\x20modify\x20state,\x20or\x20re-call\x20assemble_context\x20'+'after\x20state\x20changes.'),'flywheel_collected':z['object']({'signature_recorded':z['boolean']()['describe']('Whether\x20the\x20experience\x20signature\x20was\x20recorded\x20in\x20the\x20real-time\x20experience\x20layer.'),'proposal_created':z['boolean']()['describe']('Whether\x20an\x20improvement\x20proposal\x20was\x20created\x20for\x20the\x20offline\x20distillation\x20flywheel.'),'proposal_id':z['string']()['optional']()['describe']('The\x20proposal\x20ID,\x20if\x20created.')})['optional']()['describe']('Distillation\x20flywheel\x20collection\x20result.\x20Non-blocking\x20—\x20may\x20be\x20undefined\x20if\x20collection\x20fails.\x20'+'When\x20present,\x20the\x20assembled\x20context\x20has\x20been\x20fed\x20back\x20into\x20the\x20experience\x20layer\x20and/or\x20improvement\x20queue.')})['strict'](),ReverseMapResultSchema=z['object']({'action':z['literal']('reverse_map'),'objects_queried':z['number']()['int']()['min'](0x0)['describe']('How\x20many\x20on-chain\x20objects\x20were\x20queried\x20and\x20fed\x20into\x20the\x20report.'),'report':z['object']({'summary':z['string']()['describe']('One-paragraph\x20deterministic\x20business\x20summary.'),'merchantProfile':z['object']({'serviceDescription':z['string'](),'workflowDescription':z['string'](),'refundPolicy':z['string'](),'arbitrationPolicy':z['string']()})['strict'](),'userRiskAssessment':z['object']({'riskLevel':z['enum'](['low','medium','high','critical']),'keyRisks':z['array'](z['string']()),'protections':z['array'](z['string']()),'missingProtections':z['array'](z['string']())})['strict'](),'gameTheoryAnalysis':z['object']({'merchantIncentives':z['array'](z['string']()),'userIncentives':z['array'](z['string']()),'potentialConflicts':z['array'](z['string']()),'wowAlignments':z['array'](z['string']())})['strict']()})['strict']()['describe']('Deterministic\x20BusinessReport\x20—\x20same\x20objects\x20always\x20yield\x20the\x20same\x20report\x20(no\x20LLM).')})['strict'](),ProjectObjectSchema=z['object']({'id':z['string']()['describe']('ProjectObject\x20UUID\x20(project_objects.id).'),'projectId':z['string']()['describe']('Owning\x20project\x20UUID.'),'objectAddress':z['string']()['describe']('On-chain\x20object\x20address\x20(0x...)\x20or\x20\x27draft:<name>\x27\x20sentinel\x20for\x20blueprint\x20objects.'),'objectType':z['string']()['nullable']()['describe']('Object\x20type\x20(Service,\x20Machine,\x20etc.)\x20or\x20null\x20if\x20unknown.'),'objectName':z['string']()['nullable']()['describe']('LocalMark\x20name\x20or\x20null.'),'role':z['string']()['describe']('Object\x20role\x20in\x20project.\x20Valid\x20values:\x20\x27core\x27\x20(the\x20Service),\x20\x27dependency\x27\x20(required\x20binding),\x20\x27reference\x27\x20(optional/auxiliary).\x20Other\x20values\x20indicate\x20data\x20corruption\x20—\x20see\x20objectGroups.other\x20bucket.'),'tags':z['array'](z['string']())['nullable']()['describe']('Tags\x20array\x20or\x20null.'),'addedAt':z['number']()['describe']('Timestamp\x20(ms)\x20when\x20added\x20to\x20project.'),'metadata':z['record'](z['string'](),z['unknown']())['nullable']()['describe']('Arbitrary\x20metadata\x20key-value\x20pairs\x20or\x20null.')})['strict'](),ProjectSchema=z['object']({'id':z['string']()['describe']('Project\x20UUID.'),'prefix':z['string']()['describe']('Human-readable\x20unique\x20prefix.'),'name':z['string']()['describe']('Display\x20name.'),'description':z['string']()['nullable'](),'industry':z['string']()['nullable'](),'perspective':z['enum'](['producer','consumer','both']),'status':z['enum'](['draft','active','inactive','archived']),'labels':z['array'](z['string']())['nullable'](),'currentVersion':z['string']()['nullable']()['describe']('Current\x20version\x20tag\x20(e.g.\x20\x27v1\x27).'),'serviceAddress':z['string']()['nullable']()['describe']('Core\x20Service\x20on-chain\x20address\x20(producer\x20projects).'),'defaultAccount':z['string']()['nullable'](),'network':z['string']()['describe']('Network\x20the\x20project\x20is\x20bound\x20to.'),'createdAt':z['number'](),'updatedAt':z['number'](),'metadata':z['record'](z['string'](),z['unknown']())['nullable']()['describe']('Arbitrary\x20metadata\x20key-value\x20pairs\x20or\x20null.')})['strict'](),ProjectListItemSchema=ProjectSchema['extend']({'objectCount':z['number']()['describe']('Number\x20of\x20objects\x20in\x20this\x20project\x20(from\x20project_objects\x20table).'),'evaluationCount':z['number']()['describe']('Number\x20of\x20stored\x20evaluations\x20for\x20this\x20project\x20(from\x20evaluations\x20table).'),'objectTypes':z['array'](z['string']())['describe']('Distinct\x20object\x20types\x20in\x20this\x20project\x20(e.g.\x20[\x27Service\x27,\x27Machine\x27]).')}),ListProjectsResultSchema=z['object']({'action':z['literal']('list_projects'),'items':z['array'](ProjectListItemSchema)['describe']('GLM6\x20projects\x20from\x20SQLite\x20(first-class\x20entities,\x20with\x20object\x20summary).'),'total':z['number']()['describe']('Total\x20number\x20of\x20projects\x20returned.')})['strict'](),RecommendedCreationOrderItemSchema=z['object']({'step':z['number']()['describe']('Step\x20number\x20(1-based).'),'object':z['string']()['describe']('Object\x20type\x20to\x20create\x20(e.g.\x20\x27Permission\x27,\x20\x27Service\x20(unpublished)\x27).'),'reason':z['string']()['describe']('Why\x20this\x20step\x20is\x20here,\x20including\x20dependencies\x20and\x20irreversibility\x20notes.'),'required':z['boolean']()['describe']('Whether\x20this\x20step\x20is\x20mandatory\x20for\x20a\x20working\x20deployment.')})['strict'](),RecommendedIndustryItemSchema=z['object']({'industry':z['string']()['describe']('Recommended\x20builtin\x20industry\x20mode\x20name.'),'similarity':z['number']()['describe']('Trait\x20similarity\x200-1\x20(10-dim\x20industry\x20trait\x20match).'),'matched_traits':z['array'](z['string']())['describe']('Trait\x20dimensions\x20that\x20matched.'),'reference_examples':z['array'](z['object']({'file':z['string']()['describe']('Example\x20file\x20name\x20(fetch\x20via\x20schema_query\x20search_examples).'),'title':z['string'](),'operation_type':z['string'](),'verified':z['boolean']()})['strict']())['describe']('Verified\x20reference\x20examples\x20for\x20this\x20industry\x20(top\x203).')})['strict'](),CreateProjectResultSchema=z['object']({'action':z['literal']('create_project'),'project':ProjectSchema['describe']('The\x20created\x20project.'),'recommended_creation_order':z['array'](RecommendedCreationOrderItemSchema)['describe']('Canonical\x20deployment\x20sequence\x20satisfying\x20dependency\x20constraints.\x20'+'All\x20industries\x20share\x20this\x20base\x20order;\x20see\x20IndustryMode.build_notes\x20for\x20industry-specific\x20deviations.'),'blueprint':z['object']({'objects_count':z['number']()['describe']('Number\x20of\x20draft\x20objects\x20created\x20from\x20the\x20template.'),'edges_count':z['number']()['describe']('Number\x20of\x20graph\x20edges\x20from\x20the\x20template.'),'industry_source':z['string']()['describe']('Industry\x20mode\x20name\x20that\x20sourced\x20the\x20template.'),'applied_template':z['string']()['describe']('Template\x20identifier\x20applied.'),'steps_count':z['number']()['describe']('Number\x20of\x20deployment\x20steps\x20in\x20the\x20template.'),'scenarios_count':z['number']()['describe']('Number\x20of\x20scenarios\x20in\x20the\x20template.'),'key_risk':z['string']()['nullable']()['optional']()['describe']('Industry-specific\x20key\x20risk\x20note\x20(or\x20null).'),'intent_inference':z['object']({'traits':z['record'](z['string'](),z['unknown']())['describe']('10-dimension\x20inferred\x20industry\x20traits\x20(unmatched\x20traits\x20use\x20neutral\x20defaults).'),'confidence':z['number']()['describe']('Inference\x20confidence\x200-1\x20(matched\x20trait\x20count\x20/\x2010).'),'matched_keywords':z['array'](z['string']())['describe']('Keywords\x20that\x20triggered\x20trait\x20inference.'),'top_matches':z['array'](z['object']({'industry':z['string'](),'similarity':z['number']()['describe']('Trait\x20similarity\x200-1.')})['strict']())['describe']('Top-3\x20similar\x20industries\x20by\x20trait\x20similarity.')})['strict']()['optional']()['describe']('Intent\x20inference\x20summary\x20(E.3)\x20—\x20present\x20when\x20industry\x20template\x20applied.'),'industry_mismatch_hint':z['string']()['optional']()['describe']('Advisory\x20hint\x20—\x20present\x20when\x20intent\x20inference\x20suggests\x20a\x20different\x20industry\x20fits\x20the\x20description\x20better\x20(non-blocking).')})['strict']()['optional']()['describe']('Blueprint\x20summary\x20—\x20present\x20when\x20industry\x20template\x20applied\x20successfully.\x20Objects\x20have\x20status=\x27draft\x27\x20and\x20address=\x27draft:<name>\x27.\x20Full\x20steps/scenarios\x20persisted\x20as\x20project\x20document\x20doc_type=\x27blueprint\x27.'),'blueprint_warning':z['string']()['optional']()['describe']('Warning\x20message\x20—\x20present\x20when\x20industry\x20template\x20application\x20failed.\x20Project\x20is\x20created\x20without\x20blueprint;\x20use\x20add_object\x20to\x20manually\x20add\x20objects.'),'blueprint_skipped':z['boolean']()['optional']()['describe']('True\x20when\x20skip_templates=true\x20was\x20passed\x20—\x20no\x20industry\x20blueprint\x20objects\x20were\x20created.'),'hint':z['string']()['optional']()['describe']('User-facing\x20hint\x20—\x20guides\x20to\x20next\x20action\x20(e.g.\x20add_object,\x20generate_deployment_doc).'),'recommended_industries':z['array'](RecommendedIndustryItemSchema)['optional']()['describe']('Top-3\x20recommended\x20industry\x20modes\x20inferred\x20from\x20the\x20project\x20description\x20(E.7).\x20'+'Present\x20only\x20when\x20no\x20project_industry\x20was\x20given.\x20Each\x20item\x20includes\x20reference\x20examples\x20'+'(\x27standing\x20on\x20giants\x27\x20shoulders\x27).\x20To\x20apply:\x20call\x20update_project\x20is\x20NOT\x20enough\x20—\x20recreate\x20'+'via\x20create_project\x20with\x20project_industry\x20set\x20to\x20get\x20the\x20blueprint.')})['strict'](),CreateProjectFromOnchainResultSchema=z['object']({'action':z['literal']('create_project_from_onchain'),'project':ProjectSchema['describe']('The\x20created\x20consumer\x20project.'),'objects':z['array'](ProjectObjectSchema)['describe']('Objects\x20discovered\x20from\x20on-chain\x20Service\x20+\x20graph\x20traversal.'),'graphEdgeCount':z['number']()['describe']('Number\x20of\x20relationship\x20edges\x20discovered\x20and\x20persisted.')})['strict'](),UpdateProjectResultSchema=z['object']({'action':z['literal']('update_project'),'project':ProjectSchema['describe']('The\x20updated\x20project.')})['strict'](),EvaluationDetailsSchema=z['object']({'criterionScores':z['array'](z['object']({'name':z['string']()['describe']('Criterion\x20name\x20(e.g.\x20\x27Service\x20Published\x27,\x20\x27Governance\x20Present\x27).'),'score':z['number']()['describe']('Per-criterion\x20score\x20(0-100,\x20higher\x20=\x20better).'),'weight':z['number']()['describe']('Weight\x20in\x20the\x20overall\x20score\x20(0-1).'),'rationale':z['string']()['describe']('Why\x20this\x20score\x20was\x20assigned.')})['strict']())['describe']('Per-criterion\x20scores\x20with\x20rationale.'),'findings':z['array'](z['object']({'criterion':z['string']()['describe']('Criterion\x20this\x20finding\x20relates\x20to.'),'severity':z['enum'](['critical','warning','info'])['describe']('Severity\x20level:\x20critical\x20(blocks\x20deployment),\x20warning\x20(should\x20fix),\x20info\x20(advisory).'),'message':z['string']()['describe']('Human-readable\x20finding\x20description.'),'deduction':z['number']()['describe']('Score\x20deduction\x20applied\x20(negative\x20number,\x20e.g.\x20-20).')})['strict']())['describe']('Negative\x20findings\x20(warnings/critical\x20issues)\x20with\x20deductions.'),'strengths':z['array'](z['string']())['describe']('Positive\x20evidence\x20explaining\x20high\x20scores.')})['strict'](),GetProjectDetailResultSchema=z['object']({'action':z['literal']('get_project_detail'),'project':ProjectSchema,'objects':z['array'](ProjectObjectSchema)['describe']('Project\x20objects\x20(rigid\x20relationships).\x20Flat\x20list\x20—\x20use\x20objectGroups\x20for\x20role-based\x20navigation.'),'objectGroups':z['object']({'core':z['array'](ProjectObjectSchema)['describe']('Core\x20objects\x20(the\x20Service)\x20—\x20the\x20primary\x20deliverable\x20of\x20the\x20project.'),'dependency':z['array'](ProjectObjectSchema)['describe']('Dependency\x20objects\x20(Permission,\x20Machine,\x20Guard,\x20Allocation,\x20Treasury,\x20etc.)\x20—\x20required\x20for\x20the\x20Service\x20to\x20function.'),'reference':z['array'](ProjectObjectSchema)['describe']('Reference\x20objects\x20(read-only\x20or\x20external)\x20—\x20tracked\x20but\x20not\x20owned\x20by\x20this\x20project.'),'other':z['array'](ProjectObjectSchema)['describe']('Objects\x20with\x20invalid\x20or\x20missing\x20role\x20(data\x20corruption,\x20legacy\x20data).\x20Grouped\x20here\x20for\x20visibility\x20—\x20should\x20normally\x20be\x20empty.\x20Check\x20server\x20logs\x20for\x20warnings.'),'stats':z['object']({'total':z['number']()['describe']('Total\x20object\x20count.'),'core_count':z['number']()['describe']('Number\x20of\x20core\x20objects.'),'dependency_count':z['number']()['describe']('Number\x20of\x20dependency\x20objects.'),'reference_count':z['number']()['describe']('Number\x20of\x20reference\x20objects.'),'other_count':z['number']()['describe']('Number\x20of\x20objects\x20with\x20invalid/missing\x20role\x20(in\x20\x27other\x27\x20bucket).\x20Normally\x200.'),'by_type':z['record'](z['string'](),z['number']())['describe']('Object\x20count\x20grouped\x20by\x20objectType\x20prefix\x20(e.g.\x20{\x27service\x27:\x201,\x20\x27permission\x27:\x201,\x20\x27guard\x27:\x205}).')})['strict']()['describe']('Aggregate\x20counts\x20for\x20quick\x20project\x20sizing.')})['strict']()['describe']('Objects\x20grouped\x20by\x20role\x20(core/dependency/reference/other)\x20for\x20easier\x20navigation.\x20The\x20\x27other\x27\x20bucket\x20captures\x20objects\x20with\x20invalid\x20roles\x20(H-05\x20fix).\x20The\x20flat\x20`objects`\x20array\x20is\x20preserved\x20for\x20backward\x20compatibility.'),'graphEdgeCount':z['number']()['describe']('Number\x20of\x20persisted\x20graph\x20edges.'),'serviceStatus':z['object']({'published':z['boolean']()['nullable']()['describe']('Whether\x20the\x20on-chain\x20Service\x20is\x20published\x20(live).\x20null\x20=\x20unknown\x20/\x20query\x20failed.'),'paused':z['boolean']()['nullable']()['describe']('Whether\x20the\x20on-chain\x20Service\x20is\x20paused\x20(not\x20accepting\x20orders).\x20null\x20=\x20unknown.')})['strict']()['nullable']()['describe']('On-chain\x20Service\x20status\x20(published\x20/\x20paused).\x20Separate\x20from\x20the\x20project\x27s\x20local\x20lifecycle\x20status.\x20null\x20if\x20the\x20project\x20has\x20no\x20serviceAddress\x20or\x20the\x20on-chain\x20query\x20failed.'),'evaluations':z['array'](z['object']({'id':z['string'](),'evalType':z['enum'](['risk','trust','completeness','value','worth_buying']),'score':z['number']()['nullable'](),'summary':z['string']()['nullable'](),'details':EvaluationDetailsSchema['nullable']()['describe']('Structured\x20inspection\x20content\x20(criterion\x20scores,\x20findings,\x20strengths).\x20Null\x20for\x20evaluations\x20created\x20before\x20details\x20were\x20stored.'),'evaluatedAt':z['number']()})['strict']())['describe']('Stored\x20evaluation\x20results\x20(most\x20recent\x20first).'),'versions':z['array'](z['object']({'version':z['string'](),'description':z['string']()['nullable'](),'createdAt':z['number']()})['strict']())['describe']('Project\x20version\x20history.')})['strict'](),AddObjectResultSchema=z['object']({'action':z['literal']('add_object'),'object':ProjectObjectSchema['describe']('The\x20added\x20project-object\x20relationship.')})['strict'](),RemoveObjectResultSchema=z['object']({'action':z['literal']('remove_object'),'removed':z['literal'](!![])['describe']('Always\x20true\x20—\x20confirms\x20removal.')})['strict'](),UpdateObjectResultSchema=z['object']({'action':z['literal']('update_object'),'object':ProjectObjectSchema['describe']('The\x20updated\x20project-object\x20relationship.')})['strict'](),CreateVersionResultSchema=z['object']({'action':z['literal']('create_version'),'version':z['object']({'version':z['string']()['describe']('Version\x20tag\x20(e.g.\x20\x27v2\x27).'),'description':z['string']()['nullable'](),'createdAt':z['number']()})['strict']()})['strict'](),BuildGraphResultSchema=z['object']({'action':z['literal']('build_graph'),'async_mode':z['boolean']()['optional']()['describe']('True\x20when\x20graph\x20is\x20building\x20asynchronously\x20(background\x20task).\x20When\x20true,\x20call\x20query_task_status\x20with\x20task_id\x20to\x20retrieve\x20the\x20result.'),'task_id':z['string']()['optional']()['describe']('Async\x20task\x20id\x20—\x20present\x20only\x20when\x20async_mode=true.\x20Use\x20with\x20query_task_status.'),'nodeCount':z['number']()['optional']()['describe']('Total\x20nodes\x20in\x20the\x20constructed\x20graph\x20(sync\x20mode\x20only).'),'edgeCount':z['number']()['optional']()['describe']('Total\x20edges\x20(after\x20conflict\x20resolution\x20+\x20dedup)\x20(sync\x20mode\x20only).'),'edgesBySource':z['record'](z['string'](),z['number']())['optional']()['describe']('Edge\x20counts\x20by\x20source:\x20{\x20internal:\x20N,\x20registrar:\x20N,\x20potential:\x20N\x20}\x20(sync\x20mode\x20only).'),'reputationCount':z['number']()['optional']()['describe']('Number\x20of\x20objects\x20with\x20Registrar\x20reputation\x20data\x20(sync\x20mode\x20only).'),'builtAt':z['number']()['optional']()['describe']('Build\x20timestamp\x20in\x20ms\x20(sync\x20mode\x20only).'),'binding_verification':z['object']({'service':z['string']()['describe']('Service\x20object\x20address\x20that\x20was\x20verified.'),'bindings':z['record'](z['string'](),z['object']({'expected':z['string']()['describe']('Expected\x20target\x20object\x20type.'),'actual':z['string']()['nullable']()['describe']('Actual\x20on-chain\x20value\x20(address\x20or\x20null).'),'count':z['number']()['optional']()['describe']('Item\x20count\x20for\x20array\x20fields\x20(order_allocators,\x20arbitrations).'),'verified':z['boolean']()['describe']('Whether\x20the\x20binding\x20exists\x20on-chain.')}))['describe']('Per-field\x20binding\x20verification\x20result.'),'all_verified':z['boolean']()['describe']('True\x20when\x20all\x20critical\x20bindings\x20exist\x20on-chain.')})['nullable']()['optional']()['describe']('On-chain\x20verification\x20of\x20Service\x20bindings\x20(F-15).\x20Null\x20when\x20no\x20Service\x20address\x20or\x20query\x20failed.\x20Sync\x20mode\x20only.'),'topEdges':z['array'](z['object']({'source':z['string']()['describe']('Source\x20object\x20address.'),'target':z['string']()['describe']('Target\x20object\x20address.'),'fieldName':z['string']()['nullable']()['describe']('Field\x20name\x20on\x20the\x20source\x20object\x20(or\x20null).'),'relationshipType':z['string']()['describe']('Relationship\x20type\x20(bind,\x20create,\x20trigger,\x20etc.).'),'weight':z['number']()['nullable']()['describe']('Edge\x20weight\x20(0-1,\x20higher\x20=\x20more\x20important).'),'verified':z['boolean']()['describe']('Whether\x20the\x20edge\x20has\x20been\x20verified\x20on-chain.')})['strict']())['optional']()['describe']('Top\x205\x20critical\x20edges\x20by\x20weight\x20(sync\x20mode\x20only).\x20Preview\x20of\x20the\x20most\x20important\x20relationships\x20—\x20call\x20get_graph\x20for\x20the\x20full\x20list.'),'visualization':z['string']()['optional']()['describe']('Mermaid-style\x20ASCII\x20visualization\x20of\x20top\x20edges\x20(sync\x20mode\x20only).\x20Compact\x20format:\x20\x27source\x20--field-->\x20target\x27.'),'hint':z['string']()['optional']()['describe']('User-facing\x20hint\x20—\x20guides\x20to\x20next\x20action\x20(e.g.\x20call\x20get_graph\x20for\x20full\x20list,\x20or\x20query_task_status\x20for\x20async\x20result).')})['strict'](),GetGraphResultSchema=z['object']({'action':z['literal']('get_graph'),'edges':z['array'](z['object']({'sourceObject':z['string'](),'targetObject':z['string'](),'edgeSource':z['enum'](['internal','registrar','potential']),'relationshipType':z['string'](),'fieldName':z['string']()['nullable'](),'depth':z['number'](),'verified':z['boolean'](),'weight':z['number'](),'direction':z['string']()['nullable']()})['strict']())['describe']('Persisted\x20graph\x20edges.')})['strict'](),EvaluateProjectResultSchema=z['object']({'action':z['literal']('evaluate_project'),'evaluationType':z['enum'](['risk','trust','completeness','value','worth_buying']),'score':z['number']()['describe']('Overall\x20score\x20(0-100,\x20higher\x20=\x20better).\x200\x20when\x20needsLlm=true.'),'summary':z['string'](),'criterionScores':z['array'](z['object']({'name':z['string'](),'score':z['number'](),'weight':z['number'](),'rationale':z['string']()})['strict']())['describe']('Per-criterion\x20scores.\x20Empty\x20when\x20needsLlm=true.'),'findings':z['array'](z['object']({'criterion':z['string'](),'severity':z['enum'](['critical','warning','info']),'message':z['string'](),'deduction':z['number']()})['strict']())['describe']('Negative\x20findings\x20(deductions).\x20Empty\x20when\x20needsLlm=true.'),'strengths':z['array'](z['string']())['describe']('Positive\x20evidence.\x20Empty\x20when\x20needsLlm=true.'),'needsLlm':z['boolean']()['describe']('True\x20for\x20worth_buying/value\x20evaluations.\x20When\x20true,\x20process\x20the\x20llmPrompt\x20with\x20an\x20LLM\x20and\x20call\x20save_evaluation\x20to\x20store\x20the\x20result.'),'llmPrompt':z['string']()['optional']()['describe']('Present\x20when\x20needsLlm=true.\x20Send\x20this\x20prompt\x20to\x20an\x20LLM,\x20parse\x20the\x20JSON\x20response,\x20and\x20call\x20save_evaluation.'),'evaluationId':z['string']()['describe']('ID\x20of\x20the\x20stored\x20evaluation\x20record\x20(for\x20rule-based\x20types).\x20Empty\x20for\x20LLM-assisted\x20types.')})['strict'](),SaveEvaluationResultSchema=z['object']({'action':z['literal']('save_evaluation'),'evaluation':z['object']({'id':z['string'](),'evalType':z['enum'](['risk','trust','completeness','value','worth_buying']),'score':z['number']()['nullable'](),'summary':z['string']()['nullable'](),'evaluatedAt':z['number']()})['strict']()['describe']('The\x20stored\x20evaluation\x20record.')})['strict'](),CompareProjectsResultSchema=z['object']({'action':z['literal']('compare_projects'),'evaluationType':z['enum'](['risk','trust','completeness','value','worth_buying']),'ranking':z['array'](z['object']({'projectId':z['string'](),'projectName':z['string'](),'score':z['number']()['nullable'](),'summary':z['string']()['nullable'](),'evaluatedAt':z['number']()['nullable']()})['strict']())['describe']('Projects\x20sorted\x20by\x20score\x20descending\x20(nulls\x20last).'),'bestProjectId':z['string']()['nullable']()['describe']('Project\x20ID\x20with\x20the\x20highest\x20score,\x20or\x20null\x20if\x20none\x20have\x20evaluations.')})['strict'](),RefreshObjectsResultSchema=z['object']({'action':z['literal']('refresh_objects'),'refreshedCount':z['number']()['describe']('Number\x20of\x20objects\x20re-fetched\x20from\x20chain.'),'failedCount':z['number']()['describe']('Number\x20of\x20objects\x20that\x20failed\x20to\x20refresh.'),'refreshedAt':z['number']()['describe']('Refresh\x20timestamp\x20(ms).')})['strict'](),DeleteProjectResultSchema=z['object']({'action':z['literal']('delete_project'),'deleted':z['literal'](!![])['describe']('Always\x20true\x20—\x20confirms\x20deletion\x20of\x20the\x20project\x20and\x20all\x20associated\x20objects,\x20evaluations,\x20versions,\x20and\x20graph\x20edges.')})['strict'](),GetObjectDiffResultSchema=z['object']({'action':z['literal']('get_object_diff'),'address':z['string'](),'fromTime':z['number'](),'toTime':z['number'](),'changedFields':z['array'](z['object']({'fieldPath':z['string']()['describe']('Dotted\x20field\x20path\x20(e.g.\x20\x27machine\x27,\x20\x27sales[0].price\x27).'),'oldValue':z['unknown']()['describe']('Previous\x20value\x20(null\x20if\x20field\x20was\x20added).'),'newValue':z['unknown']()['describe']('New\x20value\x20(null\x20if\x20field\x20was\x20removed).'),'changeType':z['enum'](['added','removed','modified'])})['strict']())['describe']('Changed\x20fields\x20between\x20the\x20two\x20timestamps.')})['strict'](),GenerateDeploymentDocResultSchema=z['object']({'action':z['literal']('generate_deployment_doc'),'markdown':z['string']()['describe']('Generated\x20deployment\x20document\x20markdown\x20content\x20(follows\x2071-deployment-list-spec).'),'validation':z['object']({'valid':z['boolean']()['describe']('True\x20iff\x20no\x20D-check\x20FAIL.'),'checks':z['array'](z['object']({'check_id':z['string'](),'description':z['string'](),'status':z['enum'](['PASS','FAIL','WARN']),'notes':z['string']()['optional']()})['strict']())['describe']('D-01..D-20\x20check\x20results\x20(20\x20deployment\x20checks\x20including\x20D-19\x20Machine\x20entry-node\x20forward\x20and\x20D-20\x20Service\x20compensation_fund).'),'errors':z['array'](z['string']())['describe']('List\x20of\x20FAIL\x20error\x20messages.')})['strict']()['describe']('Deployment\x20doc\x20validation\x20result\x20against\x20D-01..D-20.'),'saved':z['boolean']()['describe']('Whether\x20the\x20markdown\x20was\x20persisted\x20to\x20SQLite\x20project_documents\x20table.'),'detail_level':z['enum'](['summary','detailed','full'])['describe']('Effective\x20detail\x20level\x20used\x20to\x20render\x20the\x20deployment\x20doc.\x20'+'\x27summary\x27\x20(default)\x20shows\x20only\x20key\x20bindings;\x20\x27detailed\x27\x20adds\x20sale/arbitration\x20lists;\x20\x27full\x27\x20shows\x20complete\x20config.'),'stage_gate':z['object']({'stage':z['number']()['describe']('The\x20stage\x20that\x20was\x20validated\x20(4\x20=\x20deployment\x20doc\x20generation\x20gate).'),'passed':z['boolean']()['describe']('True\x20iff\x20no\x20FAIL\x20checks\x20exist\x20—\x20gate\x20allows\x20advancing\x20to\x20Stage\x205.'),'can_proceed':z['boolean']()['describe']('Alias\x20for\x20`passed`\x20—\x20whether\x20the\x20stage\x20gate\x20allows\x20advancement.'),'blocking_issues':z['array'](z['string']())['describe']('FAIL\x20status\x20messages\x20—\x20must\x20be\x20resolved\x20before\x20deploying.'),'warnings':z['array'](z['string']())['describe']('WARN\x20status\x20messages\x20—\x20non-blocking,\x20user\x20may\x20proceed\x20at\x20own\x20risk.'),'checks':z['array'](z['object']({'dimension':z['enum'](['semantic','tools','reversibility','risk','isolation','gas_budget'])['describe']('The\x20validation\x20dimension.'),'status':z['enum'](['PASS','WARN','FAIL'])['describe']('Check\x20result\x20status.'),'message':z['string']()['describe']('Human-readable\x20check\x20result\x20message.')})['strict']())['describe']('Per-dimension\x20check\x20results.')})['strict']()['describe']('Stage\x20gate\x20validation\x20(GLM6\x205-stage\x20lifecycle\x20handoff).\x20Validates\x20Stage\x203\x20risk\x20score\x20threshold\x20(>=80\x20PASS,\x20>=50\x20WARN,\x20<50\x20FAIL)\x20and\x20Stage\x204\x20deployment\x20doc\x20generation\x20prerequisite.'),'deployment_scan':z['object']({'overall_readiness':z['enum'](['ready','blocked','warnings'])['describe']('\x27ready\x27\x20=\x20all\x2020\x20checks\x20pass;\x20\x27blocked\x27\x20=\x20any\x20critical\x20fail;\x20\x27warnings\x27\x20=\x20only\x20warning\x20fails.'),'critical_count':z['number']()['describe']('Number\x20of\x20critical\x20findings\x20(blocks\x20deployment).'),'warning_count':z['number']()['describe']('Number\x20of\x20warning\x20findings\x20(non-blocking).'),'findings':z['array'](z['object']({'check_id':z['string']()['describe']('D-XX\x20check\x20id\x20(e.g.\x20\x27D-19\x27)\x20or\x20sub-id\x20(e.g.\x20\x27D-10a\x27).'),'severity':z['enum'](['critical','warning','info'])['describe']('Finding\x20severity.'),'message':z['string']()['describe']('Human-readable\x20finding\x20message.'),'location':z['string']()['optional']()['describe']('Document\x20location\x20(section,\x20line,\x20or\x20step\x20id).'),'suggestion':z['string']()['optional']()['describe']('Suggested\x20fix.')})['strict']())['describe']('All\x20findings\x20from\x20the\x2020\x20D-XX\x20deployment\x20checks.'),'checks':z['object']({'D01_object_defined':z['enum'](['pass','fail']),'D02_dependency_complete':z['enum'](['pass','fail']),'D03_scenario_covered':z['enum'](['pass','fail']),'D04_testnet_topo_order':z['enum'](['pass','fail']),'D05_testnet_network':z['enum'](['pass','fail']),'D06_testnet_replace':z['enum'](['pass','fail']),'D07_permission_index':z['enum'](['pass','fail']),'D08_guard_gen_passport':z['enum'](['pass','fail']),'D09_machine_node_count':z['enum'](['pass','fail']),'D10_substep_coherence':z['enum'](['pass','fail']),'D11_mainnet_testnet_match':z['enum'](['pass','fail']),'D12_mainnet_network':z['enum'](['pass','fail']),'D13_mainnet_replace':z['enum'](['pass','fail']),'D14_testnet_verification':z['enum'](['pass','fail']),'D15_mainnet_verification':z['enum'](['pass','fail']),'D16_no_critical_risk':z['enum'](['pass','fail']),'D17_no_high_risk':z['enum'](['pass','fail']),'D18_completeness_checklist':z['enum'](['pass','fail']),'D19_machine_entry_forward':z['enum'](['pass','fail'])['describe']('Machine\x20entry\x20node\x20(prev_node=\x27\x27)\x20forwards\x20non-empty\x20—\x20avoids\x20Progress\x20stuck\x20at\x20current=\x27\x27.'),'D20_service_compensation_fund':z['enum'](['pass','fail'])['describe']('Service\x20compensation_fund\x20(Balance<T>)\x20present\x20or\x20industry-exempt\x20—\x20ensures\x20arbitration\x20refund\x20capability.')})['strict']()['describe']('Per-check\x20pass/fail\x20status\x20for\x20all\x2020\x20D-XX\x20checks.')})['strict']()['describe']('Deployment\x20scanner\x20result\x20—\x2020\x20D-XX\x20checks\x20including\x20D-19\x20(Machine\x20entry\x20forward)\x20and\x20D-20\x20(Service\x20compensation_fund).')})['strict'](),PreEvaluateCheckResultSchema=z['object']({'action':z['literal']('pre_evaluate_check'),'ready':z['boolean']()['describe']('True\x20if\x20evaluate_project\x20will\x20produce\x20meaningful\x20results\x20(no\x20hard\x20blockers).\x20'+'If\x20false,\x20address\x20the\x20items\x20in\x20`missing`\x20first.'),'missing':z['array'](z['object']({'id':z['string']()['describe']('Check\x20ID\x20(e.g.\x20PE-01,\x20PE-06).'),'description':z['string']()['describe']('What\x20is\x20missing.'),'impact':z['string']()['describe']('How\x20it\x20affects\x20the\x20evaluation,\x20and\x20how\x20to\x20fix\x20it.')})['strict']())['describe']('Hard\x20blockers\x20—\x20must\x20be\x20resolved\x20before\x20evaluation.'),'warnings':z['array'](z['object']({'id':z['string']()['describe']('Check\x20ID\x20(e.g.\x20PE-02,\x20PE-03).'),'description':z['string']()['describe']('What\x20is\x20suboptimal.'),'impact':z['string']()['describe']('How\x20it\x20affects\x20the\x20evaluation,\x20and\x20how\x20to\x20improve\x20it.')})['strict']())['describe']('Soft\x20issues\x20—\x20evaluation\x20runs\x20but\x20quality\x20may\x20be\x20reduced.'),'summary':z['string']()['describe']('One-line\x20human-readable\x20status.'),'counts':z['object']({'objects':z['number']()['describe']('Total\x20project_objects\x20count.'),'edges':z['number']()['describe']('Total\x20graph_edges\x20count.'),'uncached':z['number']()['describe']('Objects\x20with\x20no\x20cached\x20on-chain\x20data.'),'stale':z['number']()['describe']('Objects\x20with\x20cache\x20older\x20than\x2024\x20hours.'),'dangling_edges':z['number']()['describe']('Edges\x20referencing\x20objects\x20not\x20in\x20project_objects.'),'drafts':z['number']()['describe']('Objects\x20still\x20in\x20draft\x20(not\x20yet\x20on-chain).')})['strict']()['describe']('Quick-scan\x20counts\x20for\x20triage.')})['strict'](),VerifyDeploymentResultSchema=z['object']({'action':z['literal']('verify_deployment'),'verifiedCount':z['number']()['describe']('Number\x20of\x20objects\x20actually\x20verified\x20(excludes\x20drafts\x20and\x20unreachable).'),'matched':z['number']()['describe']('Objects\x20whose\x20on-chain\x20state\x20matches\x20SQLite.'),'mismatched':z['number']()['describe']('Objects\x20whose\x20on-chain\x20state\x20differs\x20from\x20SQLite\x20(see\x20`results[].differences`).'),'missing':z['number']()['describe']('Objects\x20that\x20no\x20longer\x20exist\x20on-chain\x20(deleted\x20or\x20never\x20deployed).'),'unreachable':z['number']()['describe']('Objects\x20that\x20could\x20not\x20be\x20queried\x20(network\x20error).'),'results':z['array'](z['object']({'objectAddress':z['string'](),'objectName':z['string']()['nullable'](),'objectType':z['string']()['nullable'](),'status':z['enum'](['matched','mismatched','missing','unreachable'])['describe']('Verification\x20status:\x20\x27matched\x27\x20=\x20on-chain\x20matches\x20SQLite;\x20'+'\x27mismatched\x27\x20=\x20on-chain\x20differs\x20(see\x20differences);\x20'+'\x27missing\x27\x20=\x20object\x20no\x20longer\x20exists\x20on-chain;\x20'+'\x27unreachable\x27\x20=\x20query\x20failed\x20(network\x20error\x20or\x20rate\x20limit).'),'differences':z['array'](z['object']({'field':z['string']()['describe']('Field\x20path\x20that\x20differs.'),'sqlite':z['unknown']()['describe']('Value\x20recorded\x20in\x20SQLite.'),'onchain':z['unknown']()['describe']('Value\x20observed\x20on-chain.')})['strict']())['optional']()['describe']('Per-field\x20differences\x20(only\x20for\x20status=\x27mismatched\x27).'),'bindings':z['object']({'machine':z['boolean'](),'permission':z['boolean'](),'buy_guard':z['boolean'](),'order_allocators':z['boolean']()})['strict']()['optional']()['describe']('Critical\x20binding\x20status\x20(only\x20for\x20Service\x20objects).\x20'+'Each\x20boolean\x20indicates\x20whether\x20the\x20binding\x20is\x20set\x20to\x20a\x20non-null\x20value\x20on-chain.'),'error':z['string']()['optional']()['describe']('Error\x20message\x20(only\x20for\x20status=\x27unreachable\x27).')})['strict']())['describe']('Per-object\x20verification\x20results.'),'summary':z['string']()['describe']('One-line\x20human-readable\x20summary.')})['strict'](),MachineGraphForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20name.'),'weight':z['number']()['describe']('Forward\x20weight\x20(for\x20weighted\x20threshold).'),'guard':z['string']()['nullable']()['describe']('Guard\x20object\x20address\x20if\x20the\x20forward\x20is\x20guard-gated,\x20else\x20null.'),'named_operator':z['string']()['nullable']()['describe']('Named\x20operator\x20if\x20set,\x20else\x20null.'),'permission_index':z['number']()['nullable']()['describe']('Permission\x20index\x20if\x20set,\x20else\x20null.')})['strict'](),MachineGraphEdgeSchema=z['object']({'from':z['string']()['describe']('Source\x20node\x20name\x20(prev_node).'),'to':z['string']()['describe']('Target\x20node\x20name\x20(next_node).'),'threshold':z['number']()['describe']('Minimum\x20weighted\x20forward\x20count\x20required\x20to\x20advance.'),'forwards':z['array'](MachineGraphForwardSchema)['describe']('Forwards\x20within\x20this\x20pair\x20—\x20each\x20is\x20an\x20advance\x20operation.')})['strict'](),MachineGraphNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name.'),'description':z['string']()['nullable']()['describe']('Node\x20description\x20if\x20set,\x20else\x20null.')})['strict'](),GetMachineGraphResultSchema=z['object']({'action':z['literal']('get_machine_graph'),'machineAddress':z['string']()['describe']('The\x20Machine\x20object\x20address.'),'machineName':z['string']()['nullable']()['describe']('The\x20Machine\x27s\x20local\x20name\x20(from\x20LocalMark)\x20if\x20available.'),'nodes':z['array'](MachineGraphNodeSchema)['describe']('Workflow\x20nodes\x20(states).'),'edges':z['array'](MachineGraphEdgeSchema)['describe']('Directed\x20edges\x20(pairs)\x20connecting\x20nodes.\x20Each\x20edge\x20has\x20a\x20threshold\x20and\x20forwards.'),'published':z['boolean']()['nullable']()['describe']('Whether\x20the\x20Machine\x20is\x20published\x20(locked\x20for\x20production).\x20null\x20=\x20unknown.'),'paused':z['boolean']()['nullable']()['describe']('Whether\x20the\x20Machine\x20is\x20paused\x20(not\x20generating\x20new\x20Progress).\x20null\x20=\x20unknown.'),'mermaid':z['string']()['describe']('Mermaid\x20stateDiagram-v2\x20string\x20visualizing\x20the\x20directed\x20graph.\x20Entry\x20nodes\x20start\x20from\x20[*].\x20Edge\x20labels\x20include\x20forward\x20name\x20+\x20threshold\x20+\x20guard\x20info.\x20Cycles\x20(revision\x20loops)\x20are\x20rendered\x20as\x20normal\x20edges.\x20Includes\x20a\x20color\x20legend\x20comment\x20block\x20+\x20BehaviorTree.CPP-style\x20color\x20annotations\x20(entry=green,\x20terminal=red,\x20revision=amber,\x20normal=blue).\x20Renderable\x20in\x20markdown\x20viewers.'),'tree_outline':z['string']()['describe']('Indented\x20Markdown\x20outline\x20of\x20the\x20directed\x20graph\x20(human-editable\x20format).\x20Lists\x20edges\x20as\x20outline\x20entries\x20with\x20forwards\x20nested\x20under\x20each\x20edge.\x20Includes\x20a\x20Backrefs\x20section\x20consolidating\x20incoming\x20edges\x20per\x20node\x20(editing\x20aid\x20—\x20answers\x20\x27who\x20transitions\x20INTO\x20node\x20X?\x27).\x20Bidirectional\x20with\x20parseMachineTreeIndented().\x20Includes\x20JSON\x20code\x20block\x20for\x20round-trip\x20safety.\x20Use\x20this\x20for\x20the\x20download\x20->\x20edit\x20->\x20republish\x20workflow.'),'ascii_art':z['string']()['describe']('ASCII\x20art\x20directed\x20graph\x20visualization\x20using\x20arrow\x20notation\x20(A\x20-forward->\x20B).\x20Cycle\x20(revision\x20loop)\x20and\x20terminal\x20annotations\x20included.\x20Terminal-friendly,\x20avoids\x20JSON\x20escaping\x20issues\x20that\x20affect\x20multi-line\x20Mermaid\x20strings.\x20Use\x20when\x20rendering\x20in\x20plain-text\x20contexts.'),'markmap':z['string']()['describe']('Markmap-compatible\x20Markdown\x20string\x20(heading\x20levels\x20represent\x20hierarchy).\x20Edge-centric\x20layout\x20with\x20forwards\x20nested\x20under\x20edges.\x20Renderable\x20by\x20VS\x20Code\x20Markmap\x20extension\x20or\x20markmap.js.\x20Provides\x20an\x20interactive\x20mind-map\x20view\x20of\x20the\x20workflow.')})['strict'](),GuardGraphNodeSchema=z['lazy'](()=>z['object']({'type':z['string']()['describe']('Guard\x20node\x20type\x20(logic_and,\x20query,\x20identifier,\x20context,\x20calc_*,\x20convert_*,\x20vec_*,\x20etc.).'),'nodes':z['array'](GuardGraphNodeSchema)['optional']()['describe']('Child\x20nodes\x20(for\x20logic_and/or,\x20calc_*,\x20vec_contains_*,\x20etc.).'),'node':GuardGraphNodeSchema['optional']()['describe']('Single\x20child\x20(for\x20logic_not,\x20convert_*,\x20value_type).'),'nodeLeft':GuardGraphNodeSchema['optional']()['describe']('Left\x20child\x20(for\x20vec_indexof_*).'),'nodeRight':GuardGraphNodeSchema['optional']()['describe']('Right\x20child\x20(for\x20vec_indexof_*).'),'query':z['union']([z['number'](),z['string']()])['optional']()['describe']('Query\x20instruction\x20ID\x20or\x20name\x20(for\x20query\x20nodes).'),'object':z['object']({'identifier':z['number']()['optional'](),'convert_witness':z['number']()['optional']()})['optional']()['describe']('Query\x20target\x20object\x20reference.'),'parameters':z['array'](GuardGraphNodeSchema)['optional']()['describe']('Query\x20parameters.'),'identifier':z['number']()['optional']()['describe']('Table\x20entry\x20index\x20(for\x20identifier\x20nodes).'),'context':z['string']()['optional']()['describe']('Context\x20type:\x20Signer,\x20Clock,\x20or\x20Guard.')})['strict']()),GuardTableEntrySchema=z['object']({'identifier':z['number']()['describe']('Table\x20entry\x20index\x20(0-255).'),'b_submission':z['boolean']()['describe']('Whether\x20this\x20entry\x20is\x20submitted\x20at\x20runtime.'),'value_type':z['union']([z['number'](),z['string']()])['describe']('Value\x20type\x20(numeric\x20code\x20or\x20name).'),'value':z['unknown']()['optional']()['describe']('Constant\x20value\x20(if\x20b_submission=false).'),'name':z['string']()['optional']()['describe']('Human-readable\x20name/description.')})['strict'](),GetGuardGraphResultSchema=z['object']({'action':z['literal']('get_guard_graph'),'guardAddress':z['string']()['describe']('The\x20Guard\x20object\x20address.'),'guardName':z['string']()['nullable']()['describe']('The\x20Guard\x27s\x20local\x20name\x20(from\x20LocalMark)\x20if\x20available.'),'root':GuardGraphNodeSchema['describe']('Root\x20computation\x20node\x20(returns\x20Bool).\x20The\x20tree\x20is\x20recursive\x20—\x20each\x20node\x20may\x20have\x20children.'),'table':z['array'](GuardTableEntrySchema)['describe']('Guard\x20data\x20table\x20entries\x20(constants\x20+\x20submission\x20slots).'),'rely':z['object']({'guards':z['array'](z['string']()),'logic_or':z['boolean']()['optional']()})['nullable']()['describe']('Rely\x20dependencies\x20(other\x20Guards\x20this\x20Guard\x20depends\x20on).\x20null\x20=\x20no\x20rely.'),'immutable':z['boolean']()['nullable']()['describe']('Whether\x20the\x20Guard\x20is\x20immutable\x20(frozen\x20for\x20verification).\x20null\x20=\x20unknown.'),'mermaid':z['string']()['describe']('Mermaid\x20flowchart\x20TD\x20string\x20visualizing\x20the\x20tree.\x20Node\x20shapes:\x20{}=decision\x20(logic_*),\x20[]=computation/query,\x20([])=leaf\x20(identifier),\x20{{}}=context.\x20Includes\x20a\x20color\x20legend\x20comment\x20block\x20+\x20BehaviorTree.CPP-style\x20color\x20annotations\x20(control=blue,\x20decision=amber,\x20computation=purple,\x20query=cyan,\x20leaf=gray,\x20context=green).'),'tree_outline':z['string']()['describe']('Indented\x20Markdown\x20outline\x20of\x20the\x20tree\x20(human-editable\x20format).\x20Bidirectional\x20with\x20parseGuardTreeIndented().\x20Includes\x20JSON\x20code\x20block\x20for\x20round-trip\x20safety.'),'ascii_art':z['string']()['describe']('ASCII\x20art\x20tree\x20visualization\x20using\x20box-drawing\x20characters\x20(+--\x20--,\x20|).\x20Table\x20summary\x20appended.\x20Terminal-friendly,\x20avoids\x20JSON\x20escaping\x20issues\x20that\x20affect\x20multi-line\x20Mermaid\x20strings.'),'markmap':z['string']()['describe']('Markmap-compatible\x20Markdown\x20string\x20(heading\x20levels\x20represent\x20tree\x20depth).\x20Root\x20->\x20branches\x20->\x20leaves\x20hierarchy.\x20Renderable\x20by\x20VS\x20Code\x20Markmap\x20extension\x20or\x20markmap.js.\x20Provides\x20an\x20interactive\x20mind-map\x20view\x20of\x20the\x20Guard\x20tree.')})['strict'](),PlanObjectEditResultSchema=z['object']({'action':z['literal']('plan_object_edit'),'plan_id':z['string']()['describe']('Unique\x20plan\x20ID\x20(UUID).\x20Pass\x20to\x20apply_object_edit\x20within\x2010\x20minutes\x20to\x20execute.'),'object_kind':z['enum'](['machine','guard'])['describe']('The\x20object\x20kind\x20that\x20was\x20edited.'),'object_address':z['string']()['describe']('The\x20on-chain\x20object\x20address\x20being\x20edited.'),'object_name':z['string']()['nullable']()['describe']('The\x20object\x27s\x20local\x20name\x20(from\x20LocalMark)\x20if\x20available.'),'expected_hash':z['string']()['describe']('SHA-256\x20hash\x20of\x20(current_onchain_state\x20+\x20edited_content).\x20Pass\x20to\x20apply_object_edit\x20as\x20expected_hash\x20for\x20stale-edit\x20detection.'),'diff':z['object']({'added':z['array'](z['string']())['describe']('List\x20of\x20added\x20items\x20(node\x20names,\x20edge\x20\x27from->to\x27,\x20table\x20identifiers,\x20etc.).'),'removed':z['array'](z['string']())['describe']('List\x20of\x20removed\x20items.'),'modified':z['array'](z['string']())['describe']('List\x20of\x20modified\x20items\x20with\x20a\x20brief\x20description\x20of\x20the\x20change.'),'summary':z['string']()['describe']('Human-readable\x20one-line\x20diff\x20summary\x20(e.g.\x20\x272\x20nodes\x20added,\x201\x20edge\x20removed,\x203\x20forwards\x20modified\x27).')})['describe']('Structured\x20diff\x20between\x20current\x20on-chain\x20state\x20and\x20edited\x20content.'),'warnings':z['array'](z['object']({'id':z['string']()['describe']('Warning\x20identifier\x20(e.g.\x20\x27W-01\x27).'),'description':z['string']()['describe']('What\x20the\x20warning\x20is\x20about.'),'impact':z['string']()['describe']('Potential\x20impact\x20if\x20ignored.')}))['describe']('Non-blocking\x20warnings\x20(the\x20edit\x20can\x20still\x20proceed,\x20but\x20review\x20is\x20recommended).'),'blocking_errors':z['array'](z['object']({'id':z['string']()['describe']('Error\x20identifier\x20(e.g.\x20\x27E-01\x27).'),'description':z['string']()['describe']('What\x20the\x20error\x20is.'),'impact':z['string']()['describe']('Why\x20this\x20blocks\x20execution.')}))['describe']('Blocking\x20errors\x20(the\x20edit\x20CANNOT\x20proceed\x20until\x20these\x20are\x20fixed).'),'can_apply':z['boolean']()['describe']('Whether\x20apply_object_edit\x20can\x20proceed.\x20false\x20if\x20blocking_errors\x20is\x20non-empty.'),'prepared_call':z['unknown']()['nullable']()['describe']('The\x20prepared\x20onchain_operations\x20call\x20data\x20(operation_type\x20+\x20data).\x20null\x20if\x20can_apply=false.\x20Pass\x20this\x20to\x20onchain_operations\x20to\x20execute\x20the\x20edit.'),'expires_at':z['string']()['describe']('ISO\x20timestamp\x20when\x20the\x20plan\x20expires\x20(10\x20minutes\x20from\x20creation).\x20After\x20expiry,\x20apply_object_edit\x20will\x20refuse\x20to\x20proceed.'),'summary':z['string']()['describe']('Human-readable\x20one-line\x20plan\x20summary.')})['strict'](),ApplyObjectEditResultSchema=z['object']({'action':z['literal']('apply_object_edit'),'plan_id':z['string']()['describe']('The\x20plan\x20ID\x20that\x20was\x20applied.'),'applied':z['boolean']()['describe']('Whether\x20the\x20plan\x20was\x20successfully\x20applied\x20(hash\x20matched\x20and\x20plan\x20was\x20fresh).'),'hash_match':z['boolean']()['describe']('Whether\x20the\x20expected_hash\x20matched\x20the\x20stored\x20plan\x20hash.\x20false\x20=\x20stale\x20edit\x20detected.'),'prepared_call':z['unknown']()['nullable']()['describe']('The\x20prepared\x20onchain_operations\x20call\x20data.\x20Pass\x20this\x20to\x20onchain_operations\x20to\x20execute\x20the\x20edit\x20on-chain.\x20null\x20if\x20applied=false.'),'error':z['string']()['nullable']()['describe']('Error\x20message\x20if\x20applied=false\x20(e.g.\x20\x27Plan\x20not\x20found\x27,\x20\x27Hash\x20mismatch\x20—\x20on-chain\x20state\x20changed\x27,\x20\x27Plan\x20expired\x27).\x20null\x20on\x20success.'),'next_step':z['string']()['describe']('Instructions\x20for\x20the\x20next\x20step\x20(typically\x20\x27Pass\x20prepared_call\x20to\x20onchain_operations\x20to\x20execute\x20the\x20edit\x20on-chain\x27).')})['strict'](),PatchMachineNodesResultSchema=z['object']({'action':z['literal']('patch_machine_nodes'),'machine_address':z['string']()['describe']('The\x20Machine\x20object\x20address\x20being\x20patched.'),'machine_name':z['string']()['nullable']()['describe']('The\x20Machine\x27s\x20local\x20name\x20(from\x20LocalMark)\x20if\x20available.'),'operations_applied':z['number']()['describe']('Number\x20of\x20patch\x20operations\x20successfully\x20applied.'),'operations_failed':z['array'](z['object']({'operation':z['string']()['describe']('The\x20original\x20operation\x20string.'),'error':z['string']()['describe']('Why\x20the\x20operation\x20failed.')}))['describe']('Operations\x20that\x20failed\x20parse/apply\x20(not\x20applied).\x20Also\x20surfaced\x20as\x20E-OP\x20entries\x20in\x20blocking_errors\x20for\x20schema\x20symmetry\x20with\x20plan_object_edit.'),'patched_nodes':z['array'](z['unknown']())['describe']('The\x20patched\x20Machine\x20nodes\x20(after\x20applying\x20all\x20successful\x20operations).'),'patched_edges':z['array'](z['unknown']())['describe']('The\x20patched\x20Machine\x20edges\x20(after\x20applying\x20all\x20successful\x20operations).'),'diff':z['object']({'added':z['array'](z['string']())['describe']('List\x20of\x20added\x20items.'),'removed':z['array'](z['string']())['describe']('List\x20of\x20removed\x20items.'),'modified':z['array'](z['string']())['describe']('List\x20of\x20modified\x20items.'),'summary':z['string']()['describe']('Human-readable\x20one-line\x20diff\x20summary.')})['describe']('Diff\x20between\x20original\x20and\x20patched\x20Machine.'),'warnings':z['array'](z['object']({'id':z['string']()['describe']('Warning\x20identifier\x20(e.g.\x20\x27W-01\x27\x20unreachable\x20node,\x20\x27W-02\x27\x20self-loop).'),'description':z['string']()['describe']('What\x20the\x20warning\x20is\x20about.'),'impact':z['string']()['describe']('Potential\x20impact\x20if\x20ignored.')}))['describe']('Non-blocking\x20warnings\x20from\x20validateMachine\x20(W-01\x20unreachable,\x20W-02\x20self-loop).'),'blocking_errors':z['array'](z['object']({'id':z['string']()['describe']('Error\x20identifier\x20(e.g.\x20\x27E-01\x27\x20no\x20entry\x20forward,\x20\x27E-02\x27\x20orphan\x20endpoint,\x20\x27E-03\x27\x20too\x20many\x20nodes,\x20\x27E-OP\x27\x20operation\x20failed).'),'description':z['string']()['describe']('What\x20the\x20error\x20is.'),'impact':z['string']()['describe']('Why\x20this\x20blocks\x20execution.')}))['describe']('Blocking\x20errors\x20(operation\x20failures\x20+\x20structural\x20validation).\x20The\x20patch\x20CANNOT\x20proceed\x20until\x20these\x20are\x20fixed.\x20Empty\x20array\x20when\x20can_apply=true.'),'can_apply':z['boolean']()['describe']('Whether\x20the\x20patch\x20can\x20be\x20applied\x20on-chain.\x20false\x20if\x20any\x20blocking_errors\x20exist\x20(operation\x20failures\x20or\x20validateMachine\x20blocking\x20errors).'),'prepared_call':z['unknown']()['nullable']()['describe']('The\x20prepared\x20onchain_operations\x20call\x20data.\x20null\x20if\x20can_apply=false.'),'summary':z['string']()['describe']('Human-readable\x20one-line\x20patch\x20summary.')})['strict'](),PatchGuardTreeResultSchema=z['object']({'action':z['literal']('patch_guard_tree'),'guard_address':z['string']()['describe']('The\x20Guard\x20object\x20address\x20being\x20patched.'),'guard_name':z['string']()['nullable']()['describe']('The\x20Guard\x27s\x20local\x20name\x20(from\x20LocalMark)\x20if\x20available.'),'operations_applied':z['number']()['describe']('Number\x20of\x20Guard\x20patch\x20operations\x20successfully\x20applied.'),'operations_failed':z['array'](z['object']({'operation':z['string']()['describe']('The\x20original\x20operation\x20string.'),'error':z['string']()['describe']('Why\x20the\x20operation\x20failed.')}))['describe']('Operations\x20that\x20failed\x20parse/apply\x20(not\x20applied).\x20Also\x20surfaced\x20as\x20E-OP\x20entries\x20in\x20blocking_errors.'),'patched_root':z['unknown']()['describe']('The\x20patched\x20Guard\x20root\x20node\x20(after\x20applying\x20all\x20successful\x20operations).\x20For\x20set_root,\x20this\x20is\x20the\x20new\x20root;\x20otherwise\x20the\x20original\x20root\x20unchanged.'),'patched_table':z['array'](z['unknown']())['describe']('The\x20patched\x20Guard\x20table\x20entries\x20(after\x20applying\x20all\x20successful\x20table\x20operations).'),'patched_rely':z['unknown']()['nullable']()['describe']('The\x20patched\x20rely\x20field\x20(cross-guard\x20composition).\x20null\x20if\x20rely\x20was\x20cleared\x20or\x20never\x20set.\x20Shape:\x20{\x20guards:\x20string[],\x20logic_or?:\x20boolean\x20}.'),'diff':z['object']({'added':z['array'](z['string']())['describe']('List\x20of\x20added\x20items\x20(table\x20entries,\x20tree\x20nodes).'),'removed':z['array'](z['string']())['describe']('List\x20of\x20removed\x20items.'),'modified':z['array'](z['string']())['describe']('List\x20of\x20modified\x20items\x20with\x20a\x20brief\x20description\x20of\x20the\x20change.'),'summary':z['string']()['describe']('Human-readable\x20one-line\x20diff\x20summary.')})['describe']('Diff\x20between\x20original\x20and\x20patched\x20Guard\x20(root\x20tree\x20+\x20table).'),'warnings':z['array'](z['object']({'id':z['string']()['describe']('Warning\x20identifier\x20(e.g.\x20\x27W-01\x27\x20dead\x20submission\x20slot,\x20\x27W-02\x27\x20orphan\x20table\x20entry,\x20\x27W-03\x27\x20deep\x20nesting).'),'description':z['string']()['describe']('What\x20the\x20warning\x20is\x20about.'),'impact':z['string']()['describe']('Potential\x20impact\x20if\x20ignored.')}))['describe']('Non-blocking\x20warnings\x20from\x20validateGuard\x20(W-01\x20dead\x20submission\x20slot,\x20W-02\x20orphan\x20table\x20entry,\x20W-03\x20deep\x20nesting\x20>\x2016).'),'blocking_errors':z['array'](z['object']({'id':z['string']()['describe']('Error\x20identifier\x20(e.g.\x20\x27E-01\x27\x20no\x20root,\x20\x27E-02\x27\x20identifier\x20not\x20in\x20table,\x20\x27E-03\x27\x20table\x20too\x20large,\x20\x27E-OP\x27\x20operation\x20failed).'),'description':z['string']()['describe']('What\x20the\x20error\x20is.'),'impact':z['string']()['describe']('Why\x20this\x20blocks\x20execution.')}))['describe']('Blocking\x20errors\x20(operation\x20failures\x20+\x20structural\x20validation).\x20The\x20patch\x20CANNOT\x20proceed\x20until\x20these\x20are\x20fixed.\x20Empty\x20array\x20when\x20can_apply=true.'),'can_apply':z['boolean']()['describe']('Whether\x20the\x20patch\x20can\x20be\x20applied\x20on-chain.\x20false\x20if\x20any\x20blocking_errors\x20exist.'),'prepared_call':z['unknown']()['nullable']()['describe']('The\x20prepared\x20onchain_operations\x20call\x20data\x20(operation_type=\x27guard\x27).\x20null\x20if\x20can_apply=false.'),'summary':z['string']()['describe']('Human-readable\x20one-line\x20patch\x20summary.')})['strict'](),CloneProjectToNetworkResultSchema=z['object']({'action':z['literal']('clone_project_to_network'),'new_project_id':z['string']()['describe']('The\x20newly\x20created\x20project\x27s\x20UUID.'),'new_prefix':z['string']()['describe']('New\x20project\x20prefix\x20(\x27<source_prefix>_<target_network>\x27).'),'target_network':z['enum'](['testnet','mainnet'])['describe']('The\x20target\x20network\x20the\x20new\x20project\x20is\x20bound\x20to.'),'cloned_objects_count':z['number']()['describe']('Number\x20of\x20object\x20metadata\x20entries\x20copied\x20(objectAddress\x20is\x20empty\x20—\x20await\x20on-chain\x20deployment).'),'message':z['string']()['describe']('Human-readable\x20summary\x20of\x20the\x20clone\x20operation.'),'next_steps':z['string']()['describe']('Instructions\x20for\x20deploying\x20the\x20cloned\x20objects\x20on\x20the\x20target\x20network.')})['strict'](),MigrateNetworkResultSchema=z['object']({'action':z['literal']('migrate_network'),'new_project_id':z['string']()['describe']('The\x20newly\x20created\x20project\x27s\x20UUID.'),'new_prefix':z['string']()['describe']('New\x20project\x20prefix\x20(\x27<source_prefix>_<target_network>\x27).'),'target_network':z['enum'](['testnet','mainnet'])['describe']('The\x20target\x20network\x20the\x20new\x20project\x20is\x20bound\x20to.'),'cloned_objects_count':z['number']()['describe']('Number\x20of\x20object\x20metadata\x20entries\x20copied\x20(objectAddress\x20is\x20empty\x20—\x20await\x20on-chain\x20deployment).'),'message':z['string']()['describe']('Human-readable\x20summary\x20of\x20the\x20migration\x20operation.'),'next_steps':z['string']()['describe']('Instructions\x20for\x20deploying\x20the\x20migrated\x20objects\x20on\x20the\x20target\x20network.')})['strict'](),MigrationPlanStepSchema=z['object']({'step':z['number']()['describe']('Step\x20number\x20(1-5).'),'status':z['enum'](['completed','pending_user_action'])['describe']('Whether\x20this\x20step\x20is\x20done\x20or\x20awaits\x20user\x20action.'),'action':z['string']()['describe']('The\x20action\x20to\x20perform\x20(e.g.\x20\x27clone_project_to_network\x27,\x20\x27onchain_operations\x27,\x20\x27local_mark_operation\x27,\x20\x27update_project\x27,\x20\x27build_graph\x27).'),'description':z['string']()['describe']('Human-readable\x20description\x20of\x20what\x20this\x20step\x20does.'),'result':z['string']()['optional']()['describe']('Result\x20of\x20this\x20step\x20(only\x20present\x20when\x20status=\x27completed\x27).'),'deployment_plan':z['array'](z['object']({'order':z['number'](),'object_type':z['string'](),'object_name':z['string'](),'operation_type':z['string'](),'localmark_name':z['string'](),'note':z['string']()}))['optional']()['describe']('Deployment\x20plan\x20for\x20step\x202\x20(on-chain\x20deployment).\x20Only\x20present\x20for\x20step\x202.'),'names_to_register':z['array'](z['string']())['optional']()['describe']('LocalMark\x20names\x20to\x20re-register\x20on\x20mainnet.\x20Only\x20present\x20for\x20step\x203.'),'critical_note':z['string']()['optional']()['describe']('Critical\x20note\x20for\x20this\x20step.')})['strict'](),MigrateToMainnetResultSchema=z['object']({'action':z['literal']('migrate_to_mainnet'),'migration_status':z['string']()['describe']('Overall\x20migration\x20status\x20(e.g.\x20\x27step_1_complete_steps_2_5_pending_user_action\x27).'),'source_project':z['object']({'prefix':z['string'](),'network':z['string'](),'preserved':z['boolean']()['describe']('Whether\x20the\x20source\x20project\x20is\x20preserved\x20unchanged\x20(always\x20true).')})['strict'](),'target_project':z['object']({'prefix':z['string'](),'project_id':z['string'](),'network':z['string'](),'cloned_objects_count':z['number']()})['strict'](),'key_principle':z['string']()['describe']('Explains\x20that\x20testnet/mainnet\x20are\x20different\x20projects\x20with\x20different\x20addresses\x20for\x20same\x20names.'),'payment_token_decision':z['object']({'round':z['string']()['describe']('Decision\x20round\x20identifier\x20(e.g.\x20\x27M1\x27).'),'question':z['string']()['describe']('Question\x20asking\x20whether\x20to\x20keep\x20WOW\x20or\x20switch\x20to\x20a\x20stablecoin\x20when\x20migrating\x20testnet\x20→\x20mainnet.'),'options':z['array'](z['string']())['describe']('Available\x20choices\x20(e.g.\x20Keep\x20WOW\x20/\x20Switch\x20to\x20USDT\x20/\x20Switch\x20to\x20USDC\x20/\x20Other\x20stablecoin).'),'default':z['string']()['optional']()['describe']('Recommended\x20default\x20choice\x20(Keep\x20WOW).'),'note':z['string']()['optional']()['describe']('Guidance:\x20mainnet\x20stablecoins\x20are\x20available\x20via\x20the\x20ETH\x20mainnet\x20cross-chain\x20bridge;\x20if\x20switching,\x20update\x20Service/Treasury/Allocation\x20type_parameter\x20before\x20publishing.')})['strict']()['describe']('Payment-token\x20migration\x20decision.\x20testnet\x20recommends\x20WOW;\x20mainnet\x20supports\x20USDT\x20and\x20other\x20stablecoins\x20via\x20the\x20ETH\x20mainnet\x20bridge.\x20Must\x20be\x20resolved\x20BEFORE\x20step\x202\x20(on-chain\x20deployment)\x20because\x20the\x20Service/Treasury/Allocation\x20type_parameter\x20determines\x20the\x20payment\x20token.'),'migration_plan':z['array'](MigrationPlanStepSchema)['describe']('5-step\x20migration\x20plan.\x20Step\x201\x20is\x20completed;\x20steps\x202-5\x20require\x20user\x20action.'),'summary':z['string']()['describe']('Human-readable\x20summary\x20of\x20the\x20migration.')})['strict'](),RecommendIndustryResultSchema=z['object']({'action':z['literal']('recommend_industry'),'intent':z['string']()['describe']('The\x20intent\x20text\x20used\x20for\x20inference.'),'inferred_traits':z['record'](z['string'](),z['unknown']())['describe']('10-dim\x20industry\x20traits\x20inferred\x20from\x20intent.'),'inference_confidence':z['number']()['describe']('Inference\x20confidence\x200-1\x20(matched\x20trait\x20count\x20/\x2010).'),'matched_keywords':z['array'](z['string']())['describe']('Keywords\x20that\x20triggered\x20trait\x20inference.'),'recommendations':z['array'](RecommendedIndustryItemSchema)['describe']('Top-3\x20similar\x20industries\x20+\x20reference\x20examples.'),'hint':z['string']()['describe']('How\x20to\x20apply\x20the\x20recommendation\x20(create_project\x20with\x20project_industry).')})['strict'](),ModeSummarySchema=z['object']({'name':z['string'](),'display_name':z['string'](),'version':z['string'](),'derived_from':z['string']()['nullable']()['describe']('Source\x20builtin\x20mode\x20(derive_user_mode)\x20or\x20null.'),'owner':z['string']()['optional']()['describe']('Mode\x20owner\x20(custom\x20modes\x20only).'),'key_risk':z['string'](),'machine_nodes':z['array'](z['string']())['describe']('Machine\x20shape\x20node\x20names.'),'similar_industries':z['array'](z['string']())['optional'](),'evolution_history':z['array'](z['object']({'version':z['string'](),'changed_at':z['number'](),'changes':z['array'](z['string']())})['strict']())['optional']()})['strict'](),ListModesResultSchema=z['object']({'action':z['literal']('list_modes'),'builtin_modes':z['array'](ModeSummarySchema)['describe']('Builtin\x20industry\x20modes\x20(use\x20name\x20as\x20project_industry).'),'user_modes':z['array'](ModeSummarySchema)['describe']('Caller\x27s\x20custom\x20modes\x20(derive/evolve/register).'),'owner':z['string']()['describe']('Owner\x20key\x20for\x20custom\x20modes\x20(local\x20single-user).'),'hint':z['string']()})['strict'](),DeriveUserModeResultSchema=z['object']({'action':z['literal']('derive_user_mode'),'mode':ModeSummarySchema['describe']('The\x20derived\x20(and\x20registered)\x20custom\x20mode.'),'hint':z['string']()})['strict'](),EvolveUserModeResultSchema=z['object']({'action':z['literal']('evolve_user_mode'),'mode':ModeSummarySchema['describe']('The\x20evolved\x20custom\x20mode\x20(version\x20bumped).'),'hint':z['string']()})['strict'](),RegisterUserModeResultSchema=z['object']({'action':z['literal']('register_user_mode'),'mode':ModeSummarySchema['describe']('The\x20registered\x20fully-custom\x20mode.'),'hint':z['string']()})['strict'](),UnregisterUserModeResultSchema=z['object']({'action':z['literal']('unregister_user_mode'),'removed':z['literal'](!![]),'mode_name':z['string']()})['strict'](),MetricInfoSchema=z['object']({'metric_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'type':z['enum'](['risk','benefit']),'scale':z['enum'](['level','numeric','percentage']),'weight':z['number'](),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict'](),RegisterCustomMetricResultSchema=z['object']({'action':z['literal']('register_custom_metric'),'metric':MetricInfoSchema['describe']('The\x20registered\x20custom\x20metric\x20(globally\x20effective).'),'hint':z['string']()})['strict'](),ConstraintInfoSchema=z['object']({'constraint_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'rule':z['record'](z['string'](),z['unknown']())['describe']('Constraint\x20rule\x20(4\x20types\x20—\x20see\x20constraint_rule\x20input).'),'severity':z['enum'](['hard','soft']),'on_violation':z['enum'](['block','warn','log']),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict'](),RegisterCustomConstraintResultSchema=z['object']({'action':z['literal']('register_custom_constraint'),'constraint':ConstraintInfoSchema['describe']('The\x20registered\x20custom\x20constraint.'),'hint':z['string']()})['strict'](),ListMetricsConstraintsResultSchema=z['object']({'action':z['literal']('list_metrics_constraints'),'metrics':z['array'](MetricInfoSchema),'constraints':z['array'](ConstraintInfoSchema),'hint':z['string']()})['strict'](),KeywordMatchSchema=z['object']({'keyword':z['string'](),'category':z['string'](),'matched_objects':z['array'](z['string']()),'required_level':z['enum'](['R','C','OPTIONAL']),'match_count':z['number']()})['strict'](),AnalyzeIntentResultSchema=z['object']({'action':z['literal']('analyze_intent'),'intent_parsed':z['object']({'primary_object':z['string']()['describe']('Primary\x20object\x20inferred\x20from\x20the\x20intent\x20keywords.'),'secondary_objects':z['array'](z['string']())['describe']('Supporting\x20objects\x20typically\x20required\x20alongside\x20the\x20primary\x20one.'),'detected_scenes':z['array'](z['object']({'object':z['string'](),'scene_id':z['string']()['describe']('Free-form\x20scene\x20id,\x20e.g.\x20\x27retail\x27,\x20\x27rental_return\x27.')})['strict']())['describe']('Scenes\x20detected\x20from\x20the\x20intent\x20(used\x20for\x20template\x20selection).'),'industry':z['string']()['describe']('Industry\x20mode\x20resolved\x20from\x20the\x20intent\x20(defaults\x20to\x20\x27general\x27).'),'keyword_matches':z['array'](KeywordMatchSchema)['describe']('All\x20keyword\x20matches\x20that\x20drove\x20the\x20identification.')})['strict'](),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown'](),'completeness':z['unknown'](),'missing_dimensions':z['array'](z['string']())})['strict']())['describe']('Per-object\x20puzzle\x20snapshot,\x20keyed\x20by\x20object_type.\x20Pass\x20this\x20UNCHANGED\x20to\x20aggregate_risks.'),'overall_completeness':z['enum'](['complete','partial','empty']),'next_step':z['string']()['describe']('Human-readable\x20suggestion\x20for\x20the\x20next\x20puzzle\x20step.'),'recommended_creation_order':z['array'](z['string']())['describe']('Recommended\x20object\x20creation\x20order\x20(dependency\x20topology).'),'warnings':z['array'](z['string']())})['strict'](),AggregatedRiskSchema=z['object']({'risk_rule_id':z['string']()['describe']('Unified\x20risk\x20rule\x20id,\x20e.g.\x20\x27R-S-01\x27.'),'object_type':z['string'](),'entry_id':z['string']()['describe']('Object\x20entry_id\x20(\x27*\x27\x20when\x20cross-object).'),'severity':z['enum'](['CRITICAL','HIGH','MEDIUM','LOW','INFO']),'message':z['string'](),'fix_suggestion':z['string'](),'details':z['object']({'field_path':z['string']()['optional'](),'actual_value':z['unknown']()['optional'](),'expected_value':z['unknown']()['optional'](),'rule_source':z['string']()['optional']()})['strict']()['optional']()})['strict'](),SafetyFindingSchema=z['object']({'rule_id':z['string']()['describe']('Safety\x20rule\x20id\x20(e.g.\x20\x27REUSE-SERVICE-01\x27,\x20\x27IMMUT-001\x27).'),'severity':z['enum'](['info','warn']),'message':z['string']()})['strict'](),AggregateRisksResultSchema=z['object']({'action':z['literal']('aggregate_risks'),'namespace':z['object']({'prefix':z['string'](),'version':z['string'](),'industry':z['string']()['optional']()})['strict'](),'findings':z['array'](AggregatedRiskSchema)['describe']('All\x20risks\x20found,\x20sorted\x20(CRITICAL\x20first).'),'severity_summary':z['record'](z['string'](),z['number']())['describe']('Counts\x20keyed\x20by\x20severity.'),'status':z['enum'](['RISK_PASSED','RISK_BLOCKED','RISK_PENDING_CONFIRM','RISK_CANCELLED'])['describe']('Aggregated\x20status\x20(62-spec\x20§3.2).\x20RISK_BLOCKED\x20=\x20CRITICAL\x20or\x20above-threshold\x20risks\x20present.'),'pending_confirmations':z['array'](z['object']({'risk_rule_id':z['string'](),'description':z['string'](),'fix_suggestion':z['string'](),'object_type':z['string'](),'entry_id':z['string']()})['strict']())['optional']()['describe']('HIGH\x20risks\x20awaiting\x20user\x20confirmation\x20(only\x20when\x20status=\x27RISK_PENDING_CONFIRM\x27).'),'calibrated_at':z['number']()['describe']('Calibration\x20timestamp\x20(ms).'),'fix_suggestions_grouped':z['record'](z['string'](),z['array'](z['object']({'risk_rule_id':z['string'](),'severity':z['enum'](['CRITICAL','HIGH','MEDIUM','LOW','INFO']),'message':z['string'](),'fix_suggestion':z['string'](),'entry_id':z['string']()})['strict']()))['optional']()['describe']('Fix\x20suggestions\x20grouped\x20by\x20object_type.'),'safety_findings':z['array'](SafetyFindingSchema)['optional']()['describe']('OBJECT_REUSE\x20/\x20IMMUTABILITY\x20findings\x20from\x20safety-rules\x20(only\x20when\x20planned_objects\x20/\x20planned_operations\x20were\x20provided).'),'intent_echo':z['object']({'primary_object':z['string'](),'industry':z['string'](),'overall_completeness':z['enum'](['complete','partial','empty'])})['strict']()['optional']()['describe']('Echo\x20of\x20the\x20auto-run\x20analyze_intent\x20(only\x20when\x20\x27puzzles\x27\x20was\x20omitted\x20and\x20\x27intent\x27\x20was\x20used).'),'warnings':z['array'](z['string']())})['strict'](),TraceSubstepsResultSchema=z['object']({'action':z['literal']('trace_substeps'),'namespace':z['object']({'prefix':z['string'](),'version':z['string']()})['strict'](),'network':z['enum'](['testnet','mainnet']),'coherent':z['boolean']()['describe']('True\x20when\x20no\x20dangling\x20inputs,\x20no\x20cycles,\x20no\x20missing\x20outputs,\x20no\x20cross-step\x20breaks.'),'dangling_inputs':z['array'](z['object']({'substep_id':z['string'](),'missing_ref':z['string'](),'field_path':z['string']()})['strict']())['describe']('Input\x20refs\x20pointing\x20to\x20non-existent\x20substeps.'),'circular_refs':z['array'](z['object']({'cycle':z['array'](z['string']())})['strict']())['describe']('Substep\x20id\x20cycles\x20(when\x20present,\x20topological_order\x20is\x20empty).'),'missing_outputs':z['array'](z['object']({'substep_id':z['string'](),'expected_field':z['string'](),'dependent_substeps':z['array'](z['string']())})['strict']())['describe']('Substeps\x20that\x20should\x20have\x20produced\x20a\x20field\x20but\x20did\x20not.'),'cross_step_breaks':z['array'](z['object']({'source_step':z['string'](),'target_step':z['string'](),'missing_field':z['string']()})['strict']())['describe']('Upstream\x20step\x20failed\x20→\x20downstream\x20cannot\x20proceed.'),'step_details':z['array'](z['object']({'parent_step':z['string'](),'total_substeps':z['number'](),'successful':z['number'](),'failed':z['number'](),'pending':z['number'](),'skipped':z['number'](),'substep_ids':z['array'](z['string']())})['strict']())['describe']('Per-step\x20summary,\x20keyed\x20by\x20parent_step.'),'topological_order':z['array'](z['string']())['describe']('Topological\x20order\x20of\x20substep\x20ids\x20(empty\x20when\x20a\x20cycle\x20exists).'),'d10_check':z['object']({'check_id':z['literal']('D-10'),'description':z['string'](),'status':z['enum'](['PASS','FAIL','WARN']),'notes':z['array'](z['string']())})['strict']()['describe']('D-10\x20substep\x20linkage\x20completeness\x20verdict.')})['strict'](),MerchantGuideResultSchema=z['object']({'action':z['literal']('merchant_guide'),'current_step':z['number']()['describe']('Furthest\x20wizard\x20step\x20reached\x20(2\x20=\x20awaiting\x20industry\x20confirmation;\x209\x20=\x20harness\x20issues\x20found;\x2010\x20=\x20plan\x20ready).'),'step_name':z['string'](),'guide_state':z['object']({'intent_text':z['string'](),'confirmed_industry':z['string']()['optional'](),'currency':z['string']()['optional'](),'deliverables':z['array'](z['unknown']())['optional'](),'payment_override':z['record'](z['string'](),z['unknown']())['optional'](),'trust_override':z['record'](z['string'](),z['unknown']())['optional'](),'adopted_module_ids':z['array'](z['string']())['optional']()})['strict']()['describe']('Wizard\x20state\x20—\x20pass\x20back\x20UNCHANGED\x20on\x20the\x20next\x20merchant_guide\x20call.'),'intent_draft':z['unknown']()['optional']()['describe']('Step\x201-2\x20only:\x20BusinessIntent\x20draft\x20inferred\x20from\x20the\x20description.'),'industry_options':z['object']({'inferred':z['string'](),'confidence':z['number'](),'similar':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x202\x20only:\x20industry\x20candidates\x20awaiting\x20merchant\x20confirmation.'),'intent':z['unknown']()['optional']()['describe']('Steps\x207-10:\x20final\x20BusinessIntent\x20after\x20merchant\x20overrides.'),'adopted_modules':z['array'](z['object']({'id':z['string'](),'name':z['string'](),'description':z['string'](),'requires_keeper':z['boolean'](),'keeper_hint':z['string']()['optional'](),'user_protections':z['array'](z['string']()),'merchant_obligations':z['array'](z['string']())})['strict']())['optional']()['describe']('Steps\x206-10:\x20adopted\x20business\x20modules\x20with\x20protections/obligations.'),'blueprint':z['object']({'nodes':z['array'](z['object']({'id':z['string'](),'type':z['string'](),'purpose':z['string']()})['strict']()),'edges':z['array'](z['object']({'from':z['string'](),'to':z['string'](),'relation':z['string'](),'required':z['boolean']()})['strict']())})['strict']()['optional']()['describe']('Step\x207:\x20semantic\x20object\x20graph\x20(nodes\x20+\x20edges).'),'evaluation_preview':z['unknown']()['optional']()['describe']('Step\x208:\x20estimated\x20risk/trust/completeness\x20scores\x20+\x20key\x20risks\x20+\x20module\x20boosts.'),'graph_validation':z['object']({'valid':z['boolean'](),'hard_violations':z['array'](z['object']({'id':z['string'](),'description':z['string'](),'fix':z['string']()['optional']()})['strict']()),'soft_notes':z['array'](z['object']({'id':z['string'](),'description':z['string']()})['strict']())})['strict']()['optional']()['describe']('Step\x208:\x20structural\x20validation\x20of\x20the\x20semantic\x20graph.'),'harness_check':z['object']({'module_constraints':z['array'](z['object']({'module':z['string'](),'plan_satisfied':z['boolean'](),'missing':z['array'](z['string']())['optional'](),'reason':z['string']()['optional'](),'estimated_score_boost':z['number']()})['strict']()),'blocking_issues':z['array'](z['object']({'module':z['string'](),'missing_constraints':z['array'](z['string']())['optional'](),'fix':z['string']()['optional']()})['strict']()),'deploy_time_checks':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x209:\x20module\x20constraint\x20check\x20at\x20blueprint\x20stage\x20+\x20deploy-time\x20checklist.'),'game_theory':z['object']({'summary':z['string'](),'coverage':z['string']()['describe']('Covered/total\x20scenario\x20count,\x20e.g.\x20\x274/5\x27.'),'exposed_scenarios':z['array'](z['string']()),'wow_alignments':z['array'](z['string']())['describe']('Active\x20WOW\x20mechanisms\x20aligning\x20merchant/user\x20incentives.'),'scenarios':z['array'](z['object']({'scenario':z['string'](),'covered':z['boolean'](),'conflict':z['string'](),'user_protection':z['string'](),'evaluation_metric':z['string'](),'recommendation':z['string']()['optional']()})['strict']())})['strict']()['optional']()['describe']('Step\x209\x20(GLM6/93\x20§2.3):\x20merchant-user\x20adversarial\x20scenario\x20coverage.\x205\x20canonical\x20scenarios\x20checked\x20against\x20the\x20blueprint;\x20exposed\x20scenarios\x20include\x20fix\x20recommendations.'),'creation_plan':z['array'](z['object']({'order':z['number'](),'node_id':z['string'](),'object_type':z['string'](),'suggested_name':z['string'](),'depends_on':z['array'](z['string']()),'operation_hint':z['string']()})['strict']())['optional']()['describe']('Step\x2010:\x20topologically\x20ordered\x20creation\x20plan.\x20NOT\x20executed\x20—\x20materialize\x20via\x20create_project\x20+\x20onchain_operations.'),'warnings':z['array'](z['string']()),'next_action':z['string']()['describe']('Human-readable\x20guidance\x20for\x20the\x20next\x20call.')})['strict'](),RadarMonitorAlertSchema=z['object']({'id':z['string'](),'category':z['enum'](['progress_stall','compensation_drop','compensation_insufficient','messenger_timeout','user_action_required','review_window','arb_window','refund_received','anomaly']),'severity':z['enum'](['info','warning','critical']),'title':z['string'](),'message':z['string'](),'action':z['string']()['optional']()['describe']('Suggested\x20next\x20step.'),'timestamp':z['number'](),'order_id':z['string']()['optional'](),'service_id':z['string']()['optional'](),'node':z['string']()['optional'](),'metric':z['object']({'label':z['string'](),'value':z['number'](),'threshold':z['number']()['optional'](),'unit':z['string']()['optional']()})['strict']()['optional']()})['strict'](),RadarForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':z['enum'](['order_holder','permission','named_operator','not_available'])['describe']('How\x20this\x20account\x20may\x20execute\x20it\x20(not_available\x20if\x20it\x20can\x27t).'),'permission_index':z['number']()['optional']()['describe']('Permission\x20index\x20required\x20(if\x20permission-gated).'),'named_operator':z['string']()['optional']()['describe']('Named\x20operator\x20(LocalMark\x20name)\x20required\x20(if\x20named-gated).'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'semantics':z['string']()['describe']('Human\x20explanation\x20of\x20what\x20executing\x20this\x20forward\x20means.'),'consequence':z['string']()['optional']()['describe']('Consequence\x20hint\x20(completion\x20fund-release\x20/\x20refund\x20path).'),'weight':z['number']()['optional']()['describe']('Forward\x20weight\x20(accumulates\x20toward\x20the\x20pair\x27s\x20threshold).')})['strict'](),RadarPendingClaimSchema=z['object']({'kind':z['enum'](['reward','discount','compensation','rating']),'label':z['string'](),'how':z['string']()['describe']('How\x20to\x20claim\x20(tool\x20+\x20operation\x20hint).')})['strict'](),InterestAnalysisSchema=z['object']({'fund_flow':z['array'](z['string']())['describe']('Where\x20money\x20sits\x20and\x20what\x20releases\x20it\x20(escrow,\x20Allocation\x20waterfall,\x20compensation_fund,\x20or\x20the\x20role\x27s\x20non-settlement\x20stake).'),'responsibility':z['array'](z['string']())['describe']('What\x20this\x20account\x20is\x20semantically\x20liable\x20for\x20right\x20now\x20(permission-gated\x20forwards,\x20guard\x20obligations).'),'leverage':z['array'](z['string']())['describe']('Actions\x20serving\x20the\x20role\x27s\x20own\x20interest\x20(settlement\x20speed,\x20evidence\x20pre-upload,\x20Messenger\x20nudge,\x20arbitration).\x20Informational\x20only.'),'stakes':z['array'](z['string']())['describe']('Downside\x20exposure\x20(arbitration\x20indemnity,\x20arb-loss\x20record,\x20stall\x20statistics,\x20non-delivery,\x20refund\x20aftermath).'),'summary':z['string']()['describe']('One-paragraph\x20role-interest\x20summary.')})['strict'](),OrderRadarResultSchema=z['object']({'account':z['string'](),'progress':z['string'](),'order':z['string']()['optional'](),'current_node':z['string']()['describe']('Current\x20node\x20name\x20(\x27\x27\x20=\x20entry,\x20not\x20yet\x20started).'),'perspective':z['enum'](['merchant','customer','prospect','supplier','collaborator','arbitrator'])['describe']('Derived\x20commercial\x20role\x20from\x20on-chain\x20data\x20(Order.builder\x20+\x20PermissionPerm\x20grants\x20+\x20named\x20operators),\x20never\x20caller-asserted.'),'collaborator_kind':z['enum'](['permission_entity','named_operator'])['optional']()['describe']('Collaborator\x20sub-kind\x20when\x20perspective\x20===\x20\x27collaborator\x27\x20(internal\x20staff\x20vs\x20external\x20operator).'),'roles':z['array'](z['object']({'label':z['string'](),'can_act_now':z['boolean']()})['strict']())['describe']('All\x20roles\x20this\x20account\x20holds\x20on\x20this\x20order\x27s\x20workflow.'),'operable':z['array'](RadarForwardSchema)['describe']('Forwards\x20THIS\x20account\x20can\x20execute\x20NOW\x20(branch\x20options\x20if\x20>1).'),'branch_choice':z['object']({'message':z['string'](),'options':z['array'](z['object']({'forward':z['string'](),'to_node':z['string'](),'consequence':z['string']()['optional']()})['strict']())})['strict']()['optional']()['describe']('Present\x20when\x20>1\x20operable\x20forward.\x20AI\x20MUST\x20present\x20options\x20neutrally;\x20the\x20role\x20decides.'),'waiting_on':z['array'](z['object']({'role':z['string'](),'forwards':z['array'](z['string']())})['strict']())['describe']('What\x20the\x20workflow\x20is\x20waiting\x20on\x20from\x20OTHER\x20roles.'),'pending_claims':z['array'](RadarPendingClaimSchema)['describe']('Unclaimed\x20benefits\x20/\x20post-purchase\x20actions.'),'interest_hints':z['array'](z['string']())['describe']('Perspective-specific\x20own-interest\x20hints\x20(fund-release\x20trigger,\x20settlement\x20cycle,\x20reputation).'),'workflow_unknown':z['boolean']()['describe']('True\x20when\x20Machine\x20data\x20was\x20unavailable\x20—\x20operable/waiting_on\x20unknown.'),'threshold':z['number']()['int']()['min'](0x1)['optional']()['describe']('Current\x20pair\x27s\x20threshold\x20(accumulated\x20forward\x20weights\x20to\x20advance).'),'interest_analysis':InterestAnalysisSchema['optional']()['describe']('Role-specific\x20interest\x20analysis\x20(fund_flow/responsibility/leverage/stakes)\x20—\x20present\x20when\x20order\x20data\x20is\x20available.\x20'+'merchant\x20→\x20merchant-interest;\x20supplier\x20→\x20supplier-interest;\x20collaborator\x20→\x20collaborator-interest;\x20customer\x20→\x20customer-interest.\x20'+'AI\x20MUST\x20surface\x20it\x20as\x20neutral\x20information;\x20the\x20role\x20decides.'),'summary':z['string']()['describe']('One-paragraph\x20AI-ready\x20summary.'),'attached_alerts':z['array'](RadarMonitorAlertSchema)['optional']()['describe']('Order-monitor\x20alerts\x20(stall/compensation/review-window)\x20when\x20radar_include_alerts=true.')})['strict'](),ParticipationRadarResultSchema=z['object']({'action':z['literal']('participation_radar'),'account':z['string']()['describe']('Resolved\x20account\x20address.'),'orders_analyzed':z['number'](),'actionable':z['array'](OrderRadarResultSchema)['describe']('Orders\x20where\x20the\x20account\x20can\x20act\x20NOW\x20or\x20has\x20pending\x20claims\x20(customer\x20perspective\x20first).'),'waiting':z['array'](OrderRadarResultSchema)['describe']('Orders\x20where\x20the\x20account\x20is\x20only\x20waiting\x20on\x20other\x20roles.'),'all_pending_claims':z['array'](RadarPendingClaimSchema['extend']({'progress':z['string']()}))['describe']('All\x20pending\x20claims\x20across\x20orders,\x20tagged\x20with\x20their\x20Progress\x20address.'),'unread_messages_total':z['number']()['describe']('Unread\x20Messenger\x20messages\x20total\x20across\x20all\x20conversations\x20of\x20the\x20radar\x20account\x20(local\x20encrypted\x20storage,\x20read-only\x20—\x20never\x20marks\x20messages\x20viewed;\x200\x20with\x20a\x20data_gaps\x20note\x20when\x20the\x20account\x20is\x20not\x20a\x20local\x20messenger\x20account).'),'data_gaps':z['array'](z['string']())['describe']('Graceful\x20degradation\x20notes\x20(e.g.\x20\x27Order\x200x…\x20not\x20found\x27,\x20\x27Machine\x20nodes\x20unavailable\x27).'),'summary':z['string']()['describe']('Account-level\x20dashboard\x20summary.')})['strict']();export const ProjectOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[ListProjectsResultSchema,CreateProjectResultSchema,CreateProjectFromOnchainResultSchema,UpdateProjectResultSchema,GetProjectDetailResultSchema,AddObjectResultSchema,RemoveObjectResultSchema,UpdateObjectResultSchema,CreateVersionResultSchema,BuildGraphResultSchema,GetGraphResultSchema,EvaluateProjectResultSchema,SaveEvaluationResultSchema,CompareProjectsResultSchema,RefreshObjectsResultSchema,GetObjectDiffResultSchema,DeleteProjectResultSchema,AssembleContextResultSchema,ReverseMapResultSchema,GenerateDeploymentDocResultSchema,PreEvaluateCheckResultSchema,VerifyDeploymentResultSchema,GetMachineGraphResultSchema,GetGuardGraphResultSchema,PlanObjectEditResultSchema,ApplyObjectEditResultSchema,PatchMachineNodesResultSchema,PatchGuardTreeResultSchema,CloneProjectToNetworkResultSchema,MigrateNetworkResultSchema,MigrateToMainnetResultSchema,RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema,AnalyzeIntentResultSchema,AggregateRisksResultSchema,TraceSubstepsResultSchema,MerchantGuideResultSchema,ParticipationRadarResultSchema])['describe']('Query\x20result\x20—\x20shape\x20depends\x20on\x20action'),'skills_recommended':z['string']()['optional']()['describe']('Skills\x20recommendation\x20hint\x20(F-10).\x20Informational\x20only\x20—\x20MCP\x20executes\x20'+'independently\x20of\x20skills.\x20Present\x20when\x20the\x20action\x20benefits\x20from\x20skills\x27\x20'+'business-semantic\x20guidance\x20(e.g.\x20service/machine/guard/evaluation).\x20'+'Users\x20without\x20skills\x20installed\x20can\x20ignore\x20this\x20field.')})['strict']();
1
+ import{z}from'zod';const IndustryEnum=z['enum'](['general','retail','retail_d2c','service','rental','freelance','education','travel','subscription','custom']);export const ProjectObjectTypeEnum=z['enum'](['service','machine','guard','permission','reward','arb','progress','treasury','demand','repository','contact','order','allocation','personal','payment','proof']);export const EdgeKindEnum=z['enum'](['machine','order_allocators','arbitrations','compensation_fund','rewards','buy_guard','permission','guard','prev','next','forward','parent','service','progress','arbitration','sub_order','references']);export const ProjectOperationInputSchema=z['object']({'action':z['enum'](['list_projects','create_project','create_project_from_onchain','update_project','get_project_detail','add_object','remove_object','update_object','create_version','build_graph','get_graph','evaluate_project','save_evaluation','compare_projects','refresh_objects','get_object_diff','delete_project','assemble_context','reverse_map','get_machine_graph','get_guard_graph','generate_deployment_doc','pre_evaluate_check','verify_deployment','clone_project_to_network','migrate_network','migrate_to_mainnet','plan_object_edit','apply_object_edit','patch_machine_nodes','patch_guard_tree','recommend_industry','list_modes','derive_user_mode','evolve_user_mode','register_user_mode','unregister_user_mode','register_custom_metric','register_custom_constraint','list_metrics_constraints','analyze_intent','aggregate_risks','trace_substeps','merchant_guide','participation_radar','service_panorama','machine_panorama','object_panorama'])['describe']('Action\x20to\x20perform.\x20Two\x20categories:\x0a'+'1.\x20Project\x20Entity\x20+\x20Evaluation\x20(15,\x20GLM6):\x20list_projects,\x20create_project,\x20create_project_from_onchain,\x20update_project,\x20get_project_detail,\x20add_object,\x20remove_object,\x20create_version,\x20build_graph,\x20get_graph,\x20evaluate_project,\x20save_evaluation,\x20compare_projects,\x20refresh_objects,\x20get_object_diff.\x20Projects\x20are\x20first-class\x20entities\x20with\x20SQLite\x20persistence,\x20rigid\x20project-object\x20relationships,\x20three-pathway\x20graph\x20construction,\x20and\x20a\x20dual\x20rule-based\x20+\x20LLM-assisted\x20evaluation\x20engine.\x0a'+'2.\x20Context\x20Assembly\x20(1):\x20assemble_context\x20(query\x20on-chain\x20object\x20states\x20+\x20extract\x20embedded\x20history\x20+\x20optional\x20events,\x20and\x20assemble\x20a\x20structured\x20semantic\x20context\x20for\x20LLM\x20consumption).\x20Required\x20input:\x20context_objects\x20(array\x20of\x20object\x20IDs/names).\x20Optional:\x20include_events\x20(query\x20recent\x20state-transition\x20events).\x0a'+'2b.\x20Reverse\x20Mapping\x20(1):\x20reverse_map\x20(deterministic\x20L4→L1\x20business\x20report\x20—\x20queries\x20the\x20on-chain\x20objects,\x20classifies\x20them\x20into\x20business\x20semantics,\x20and\x20emits\x20a\x20fixed-rule\x20BusinessReport\x20with\x20merchant\x20profile,\x20user\x20risk\x20assessment,\x20and\x20game-theory\x20analysis.\x20Same\x20objects\x20ALWAYS\x20yield\x20the\x20same\x20report\x20—\x20no\x20LLM\x20involved).\x20Required\x20input:\x20context_objects\x20(include\x20the\x20Service;\x20add\x20Machine/Allocation\x20for\x20refund-path\x20detection).\x20Optional:\x20context_network,\x20order_amount.\x0a'+'3.\x20Cross-Network\x20Migration\x20(FIX-012):\x20clone_project_to_network\x20(or\x20its\x20alias\x20migrate_network)\x20copies\x20a\x20source\x20project\x27s\x20object\x20metadata\x20to\x20a\x20new\x20project\x20bound\x20to\x20target_network.\x20The\x205-step\x20migration\x20workflow:\x201)\x20call\x20clone_project_to_network\x20(or\x20migrate_network)\x20with\x20target_network\x20to\x20copy\x20metadata,\x202)\x20re-run\x20onchain_operations\x20with\x20env.network=target_network\x20to\x20deploy\x20objects\x20on-chain,\x203)\x20re-register\x20LocalMark\x20names\x20with\x20the\x20SAME\x20names\x20on\x20the\x20target\x20network\x20(FIX-011\x20cross-network\x20consistency),\x204)\x20update_project\x20to\x20set\x20service_address\x20on\x20the\x20new\x20project,\x205)\x20build_graph\x20to\x20construct\x20the\x20new\x20project\x27s\x20relationship\x20graph.'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier).\x20'+'For\x20create_project:\x20OPTIONAL\x20—\x20if\x20omitted,\x20auto-derived\x20from\x20project_name\x20(e.g.\x20\x27Twitch\x20Service\x27\x20→\x20\x27twitch_service\x27).\x20'+'For\x20other\x20actions\x20(build_graph,\x20evaluate_project,\x20etc.):\x20used\x20to\x20identify\x20the\x20project.\x20'+'Takes\x20precedence\x20resolution:\x20project_id\x20>\x20project\x20(prefix).'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27).\x20Used\x20by\x20create_version.'),'context_objects':z['array'](z['string']())['optional']()['describe']('Object\x20IDs\x20(0x...)\x20or\x20LocalMark\x20names\x20to\x20assemble\x20context\x20for.\x20Required\x20when\x20action=\x27assemble_context\x27.\x20The\x20current\x20on-chain\x20state\x20of\x20each\x20object\x20will\x20be\x20queried\x20and\x20enriched\x20with\x20semantic\x20annotations.'),'include_events':z['boolean']()['optional']()['describe']('When\x20true,\x20assemble_context\x20also\x20queries\x20recent\x20state-transition\x20events\x20(NewOrderEvent,\x20ProgressEvent,\x20ArbEvent,\x20etc.).\x20Events\x20are\x20the\x20real-time\x20transition\x20log\x20—\x20convergent\x20and\x20bounded.\x20Defaults\x20to\x20false.\x20Note:\x20object-embedded\x20history\x20(ProgressSession.forwards,\x20Order.disputes)\x20is\x20ALWAYS\x20extracted\x20automatically\x20—\x20no\x20flag\x20needed.'),'context_network':z['enum'](['testnet','mainnet','localnet'])['optional']()['describe']('Network\x20for\x20assemble_context\x20/\x20reverse_map\x20/\x20service_panorama\x20queries.\x20Defaults\x20to\x20\x27testnet\x27\x20if\x20omitted.\x20\x27localnet\x27\x20is\x20for\x20internal\x20test\x20use\x20against\x20a\x20local\x20fullnode.'),'reverse_order_amount':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20for\x20reverse_map\x20—\x20included\x20in\x20the\x20report\x20summary\x20as\x20the\x20concrete\x20escrow\x20mention.'),'context_depth':z['number']()['int']()['min'](0x0)['max'](0x5)['optional']()['describe']('BFS\x20recursion\x20depth\x20for\x20dependency\x20expansion\x20in\x20assemble_context\x20(default\x200\x20=\x20no\x20expansion).\x20'+'When\x20>0,\x20the\x20assembly\x20recursively\x20queries\x20objects\x20referenced\x20by\x20the\x20center\x20objects\x20'+'(permission,\x20guard,\x20machine,\x20service,\x20repositories,\x20etc.)\x20up\x20to\x20the\x20given\x20depth,\x20'+'using\x20the\x20same\x20address-field\x20extraction\x20rules\x20as\x20build_graph\x20(Pathway\x201).\x20'+'Each\x20level\x20issues\x20one\x20batched\x20query_objects\x20call\x20(≤50\x20IDs\x20per\x20batch).\x20'+'Cycles\x20are\x20detected\x20and\x20skipped\x20via\x20a\x20visited\x20set.\x20'+'Discovered\x20dependencies\x20are\x20returned\x20in\x20`dependencies`\x20(edge\x20metadata)\x20and\x20'+'`dependency_objects`\x20(full\x20object\x20states).\x20Recommended:\x201–2\x20for\x20most\x20use\x20cases;\x20'+'3+\x20may\x20pull\x20large\x20subgraphs\x20(use\x20context_include\x20to\x20constrain).'),'context_include':z['array'](z['string']())['optional']()['describe']('Optional\x20filter\x20for\x20dependency\x20expansion\x20edge\x20types.\x20When\x20omitted,\x20ALL\x20outbound\x20'+'references\x20are\x20followed.\x20When\x20provided,\x20only\x20edges\x20whose\x20`field`\x20matches\x20one\x20of\x20the\x20'+'listed\x20names\x20are\x20followed.\x20Recognized\x20field\x20names\x20(from\x20extractAddressFields):\x20'+'\x27permission\x27,\x20\x27machine\x27,\x20\x27service\x27,\x20\x27progress\x27,\x20\x27buy_guard\x27,\x20\x27um\x27,\x20\x27repositories\x27,\x20'+'\x27arbitrations\x27,\x20\x27rewards\x27,\x20\x27consensus_repositories\x27,\x20\x27context_repositories\x27,\x20'+'\x27dispute\x27,\x20\x27allocation\x27,\x20\x27external_deposit_guard\x27,\x20\x27external_withdraw_guard\x27,\x20'+'\x27allocator_guard\x27,\x20\x27for_object\x27,\x20\x27for_guard\x27,\x20\x27payment\x27,\x20\x27voting_guard\x27,\x20\x27usage_guard\x27,\x20'+'\x27guard\x27,\x20\x27write_guard\x27,\x20\x27quote_guard\x27,\x20\x27recipient_entity\x27,\x20\x27order_allocators\x27.\x20'+'Example:\x20[\x27permission\x27,\x27guard\x27]\x20expands\x20only\x20permission/guard\x20dependencies.'),'filter_status':z['enum'](['draft','active','inactive','archived'])['optional']()['describe']('Filter\x20list_projects\x20by\x20project\x20status.'),'filter_perspective':z['enum'](['producer','consumer','both'])['optional']()['describe']('Filter\x20list_projects\x20by\x20project\x20perspective.'),'filter_network':z['enum'](['testnet','mainnet','localnet'])['optional']()['describe']('Filter\x20list_projects\x20by\x20network.\x20Networks\x20are\x20peers\x20with\x20fully\x20independent\x20data:\x20'+'switching\x20the\x20UI\x20network\x20MUST\x20re-query\x20with\x20this\x20filter\x20so\x20localnet/testnet/mainnet\x20'+'drafts\x20never\x20mix\x20in\x20one\x20list.'),'project_name':z['string']()['min'](0x1)['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20create_project\x20/\x20create_project_from_onchain\x20/\x20update_project.\x20Required\x20when\x20action=\x27create_project\x27.'),'project_description':z['string']()['max'](0x7d0)['optional']()['describe']('Project\x20description\x20for\x20create_project\x20/\x20update_project.'),'project_industry':IndustryEnum['optional']()['describe']('Industry\x20tag\x20for\x20create_project.\x20Drives\x20template\x20defaults\x20—\x20when\x20set\x20'+'(and\x20not\x20\x27general\x27),\x20the\x20system\x20auto-applies\x20an\x20industry\x20blueprint\x20'+'with\x20~10\x20draft\x20objects\x20(Permission,\x20Service,\x20Machine,\x20Guard,\x20Treasury,\x20'+'Allocation,\x20etc.)\x20+\x20graph\x20edges,\x20ready\x20for\x20deployment.\x20'+'Supported\x20industries:\x20\x27general\x27\x20(no\x20template),\x20\x27retail\x27,\x20\x27retail_d2c\x27\x20'+'(Direct-to-Consumer,\x20e.g.,\x20Shopify\x20—\x20Allocation\x20escrow\x20+\x202\x20Guards),\x20\x27service\x27,\x20'+'\x27rental\x27,\x20\x27freelance\x27,\x20\x27education\x27,\x20\x27travel\x27,\x20\x27subscription\x27,\x20\x27custom\x27.\x20'+'Each\x20industry\x20preset\x20embeds\x20risk\x20constraints\x20(e.g.,\x20\x27freelance\x27\x20does\x20'+'NOT\x20require\x20compensation_fund,\x20while\x20\x27rental\x27/\x27travel\x27\x20do).\x20'+'Example:\x20project_industry=\x27freelance\x27\x20creates\x20a\x20freelance-style\x20'+'blueprint\x20with\x20setting_locked_time\x20≥\x207d.\x20'+'Set\x20skip_templates=true\x20to\x20bypass\x20template\x20application.'),'project_perspective':z['enum'](['producer','consumer','both'])['optional']()['describe']('Project\x20perspective\x20for\x20create_project.\x20\x27producer\x27\x20=\x20build/operate\x20services,\x20\x27consumer\x27\x20=\x20evaluate/buy\x20services,\x20\x27both\x27\x20=\x20dual\x20role.\x20Defaults\x20to\x20\x27producer\x27.'),'project_labels':z['array'](z['string']())['optional']()['describe']('Free-form\x20labels\x20for\x20create_project\x20/\x20update_project\x20(e.g.\x20[\x27travel\x27,\x27london\x27,\x27priority\x27]).'),'service_address':z['string']()['optional']()['describe']('On-chain\x20Service\x20object\x20address\x20(or\x20LocalMark\x20name).\x20Required\x20for\x20create_project_from_onchain\x20and\x20service_panorama.\x20Optional\x20for\x20create_project\x20(links\x20the\x20project\x20to\x20its\x20core\x20Service).'),'project_network':z['enum'](['testnet','mainnet','localnet'])['optional']()['describe']('Network\x20the\x20project\x20is\x20bound\x20to.\x20A\x20Service\x20deployed\x20to\x20different\x20networks\x20are\x20different\x20projects.\x20Defaults\x20to\x20\x27testnet\x27.\x20\x27localnet\x27\x20is\x20for\x20internal\x20test\x20use\x20against\x20a\x20local\x20fullnode.'),'skip_templates':z['boolean']()['optional']()['describe']('When\x20true,\x20create_project\x20skips\x20applying\x20the\x20industry\x20template\x20(no\x20draft:*\x20blueprint\x20objects).\x20'+'Use\x20this\x20when\x20you\x20want\x20a\x20clean\x20project\x20with\x20no\x20pre-filled\x20blueprint\x20objects\x20—\x20useful\x20for\x20'+'custom\x20architectures\x20that\x20do\x20not\x20match\x20any\x20industry\x20mode,\x20or\x20to\x20avoid\x20draft\x20objects\x20'+'appearing\x20in\x20build_graph\x20/\x20evaluate_project\x20before\x20deployment.\x20Defaults\x20to\x20false\x20(templates\x20applied).'),'project_id':z['string']()['optional']()['describe']('Project\x20UUID\x20for\x20update_project\x20/\x20get_project_detail\x20/\x20add_object\x20/\x20remove_object\x20/\x20create_version\x20/\x20build_graph\x20/\x20evaluate_project\x20/\x20refresh_objects.\x20Takes\x20precedence\x20over\x20\x27project\x27\x20(prefix)\x20when\x20both\x20are\x20given.'),'project_status':z['enum'](['draft','active','inactive','archived'])['optional']()['describe']('New\x20status\x20for\x20update_project.\x20\x27active\x27\x20projects\x20are\x20live,\x20\x27archived\x27\x20are\x20read-only.'),'target_network':z['enum'](['testnet','mainnet'])['optional']()['describe']('Target\x20network\x20for\x20clone_project_to_network\x20(or\x20its\x20alias\x20migrate_network).\x20'+'The\x20source\x20project\x27s\x20objects\x20are\x20copied\x20to\x20a\x20new\x20project\x20bound\x20to\x20this\x20network.\x20'+'The\x20new\x20project\x27s\x20prefix\x20is\x20\x27<source_prefix>_<target_network>\x27\x20to\x20avoid\x20collision.\x20'+'See\x20the\x20action\x20description\x20for\x20the\x20full\x205-step\x20migration\x20workflow\x20(FIX-012).'),'object_address':z['string']()['optional']()['describe']('On-chain\x20object\x20address\x20(0x\x20followed\x20by\x2032-64\x20hex\x20chars)\x20for\x20add_object\x20/\x20remove_object.\x20'+'Also\x20accepts\x20the\x20internal\x20\x27draft:<name>\x27\x20sentinel\x20used\x20by\x20create_project\x20for\x20blueprint\x20objects\x20not\x20yet\x20on-chain.\x20'+'For\x20add_object,\x20alternatively\x20use\x20object_name_add\x20to\x20resolve\x20via\x20LocalMark.\x20'+'H-06\x20fix:\x20invalid\x20formats\x20are\x20rejected\x20at\x20the\x20handler\x20level\x20with\x20a\x20descriptive\x20error.'),'object_name_add':z['string']()['optional']()['describe']('LocalMark\x20name\x20for\x20add_object\x20(alternative\x20to\x20object_address).'),'object_type_add':z['enum'](['Service','Machine','Guard','Permission','Reward','Arbitration','Progress','Treasury','Demand','Repository','Contact','Order','Allocation','Personal','Payment','Proof'])['optional']()['describe']('Object\x20type\x20for\x20add_object.'),'object_role':z['enum'](['core','dependency','reference'])['optional']()['describe']('Object\x20role\x20in\x20project\x20for\x20add_object.\x20\x27core\x27\x20=\x20the\x20Service\x20(only\x20one\x20per\x20project),\x20\x27dependency\x27\x20=\x20required\x20binding,\x20\x27reference\x27\x20=\x20optional/auxiliary.\x20Defaults\x20to\x20\x27reference\x27.'),'object_tags_add':z['array'](z['string']())['optional']()['describe']('Tags\x20for\x20add_object.'),'object_id_remove':z['string']()['optional']()['describe']('ProjectObject\x20UUID\x20for\x20remove_object\x20(the\x20project_objects.id,\x20NOT\x20the\x20on-chain\x20address).'),'object_id_update':z['string']()['optional']()['describe']('ProjectObject\x20UUID\x20for\x20update_object\x20(the\x20project_objects.id).'),'object_name_update':z['string']()['optional']()['describe']('New\x20name\x20for\x20update_object.'),'object_type_update':z['string']()['optional']()['describe']('New\x20type\x20for\x20update_object.'),'object_role_update':z['enum'](['core','dependency','reference'])['optional']()['describe']('New\x20role\x20for\x20update_object.'),'object_tags_update':z['array'](z['string']())['optional']()['describe']('New\x20tags\x20for\x20update_object.'),'version_description':z['string']()['max'](0x1f4)['optional']()['describe']('Description\x20for\x20create_version.'),'fork_from_version':z['string']()['optional']()['describe']('Source\x20version\x20for\x20create_version\x20(fork\x20objects\x20+\x20graph\x20from\x20this\x20version).'),'max_depth':z['number']()['int']()['min'](0x1)['max'](0x5)['optional']()['describe']('Max\x20recursion\x20depth\x20for\x20Pathway\x201\x20(internal\x20reference\x20derivation)\x20in\x20build_graph.\x20Default\x203.'),'depth':z['number']()['int']()['min'](0x1)['max'](0x5)['optional']()['describe']('Alias\x20for\x20max_depth\x20(build_graph).\x20When\x20both\x20are\x20set,\x20max_depth\x20takes\x20precedence.\x20Default\x203.'),'enable_registrar':z['boolean']()['optional']()['describe']('Enable\x20Pathway\x202\x20(Registrar\x20inbound\x20query)\x20in\x20build_graph.\x20Default\x20true.'),'enable_potential':z['boolean']()['optional']()['describe']('Enable\x20Pathway\x203\x20(potential\x20relationship\x20detection)\x20in\x20build_graph.\x20Default\x20false.'),'async_mode':z['boolean']()['optional']()['describe']('When\x20true,\x20build_graph\x20/\x20evaluate_project\x20runs\x20in\x20the\x20background\x20and\x20returns\x20{\x20task_id\x20}\x20immediately.\x20'+'Poll\x20query_task_status(task_id)\x20to\x20check\x20progress\x20and\x20retrieve\x20the\x20result.\x20'+'Default\x20false\x20(synchronous).\x20Use\x20async_mode=true\x20for\x20large\x20projects\x20with\x20enable_potential=true\x20'+'where\x20build\x20may\x20take\x20>10s.'),'evaluation_type':z['enum'](['risk','trust','completeness','value','worth_buying'])['optional']()['describe']('Evaluation\x20type\x20for\x20evaluate_project.\x20risk/trust/completeness\x20are\x20rule-based\x20(computed\x20locally).\x20worth_buying/value\x20require\x20LLM\x20assistance\x20(returns\x20a\x20prompt\x20for\x20the\x20caller\x20to\x20process).'),'refresh_before_eval':z['boolean']()['optional']()['describe']('When\x20true\x20(DEFAULT),\x20evaluate_project\x20refreshes\x20object\x20cache\x20from\x20chain\x20before\x20evaluating.\x20'+'Set\x20to\x20false\x20ONLY\x20for\x20read-only\x20checks\x20where\x20staleness\x20is\x20acceptable\x20(e.g.,\x20quick\x20comparisons).\x20'+'BUG-P0-2\x20fix:\x20previously\x20defaulted\x20to\x20false,\x20causing\x20stale\x20Machine\x20node_count\x20and\x20other\x20'+'dynamic-field-derived\x20fields\x20to\x20produce\x20false\x20findings\x20(e.g.,\x20\x27Machine\x20has\x20no\x20nodes\x27).\x20'+'Now\x20defaults\x20to\x20true\x20—\x20set\x20refresh_before_eval=false\x20explicitly\x20to\x20skip\x20refresh.'),'eval_score':z['number']()['min'](0x0)['max'](0x64)['optional']()['describe']('Overall\x20evaluation\x20score\x20(0-100)\x20for\x20save_evaluation.'),'eval_summary':z['string']()['max'](0x3e8)['optional']()['describe']('Evaluation\x20summary\x20for\x20save_evaluation.'),'eval_details':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Structured\x20evaluation\x20details\x20for\x20save_evaluation\x20(criterion_scores,\x20findings,\x20etc.).'),'compare_project_ids':z['array'](z['string']())['min'](0x2)['optional']()['describe']('Array\x20of\x20project\x20IDs\x20to\x20compare\x20(for\x20compare_projects).\x20Minimum\x202.'),'diff_address':z['string']()['optional']()['describe']('Object\x20address\x20for\x20get_object_diff.'),'diff_from_time':z['number']()['int']()['optional']()['describe']('Start\x20timestamp\x20(ms)\x20for\x20get_object_diff.'),'diff_to_time':z['number']()['int']()['optional']()['describe']('End\x20timestamp\x20(ms)\x20for\x20get_object_diff.'),'network':z['enum'](['testnet','mainnet'])['optional']()['describe']('Target\x20network\x20for\x20generate_deployment_doc.\x20Required\x20when\x20action=\x27generate_deployment_doc\x27.'),'save':z['boolean']()['optional']()['describe']('When\x20true\x20(default),\x20persist\x20the\x20generated\x20MD\x20to\x20SQLite\x20project_documents\x20table\x20for\x20generate_deployment_doc.'),'detail_level':z['enum'](['summary','detailed','full'])['optional']()['describe']('P2-03:\x20Deployment\x20document\x20detail\x20level\x20(only\x20for\x20generate_deployment_doc).\x20'+'\x27summary\x27\x20(default):\x20object\x20name\x20+\x20type\x20+\x20key\x20bindings\x20(machine,\x20permission,\x20buy_guard,\x20order_allocators).\x20'+'\x27detailed\x27:\x20adds\x20sale\x20list,\x20arbitration\x20list,\x20reward\x20list.\x20'+'\x27full\x27:\x20complete\x20fields\x20including\x20stock,\x20price,\x20wip_hash,\x20all\x20config.\x20'+'Use\x20\x27summary\x27\x20for\x20quick\x20review;\x20request\x20\x27detailed\x27\x20or\x20\x27full\x27\x20only\x20when\x20deeper\x20inspection\x20is\x20needed.'),'object_kind':z['enum'](['machine','guard'])['optional']()['describe']('Object\x20kind\x20for\x20plan_object_edit.\x20\x27machine\x27\x20=\x20Machine\x20workflow\x20directed\x20graph\x20(cycles\x20allowed),\x20\x27guard\x27\x20=\x20Guard\x20computation\x20tree.\x20'+'Required\x20when\x20action=\x27plan_object_edit\x27.\x20Inferred\x20from\x20action\x20for\x20patch_machine_nodes\x20(always\x20\x27machine\x27)\x20'+'and\x20patch_guard_tree\x20(always\x20\x27guard\x27).'),'edit_format':z['enum'](['tree_outline','json'])['optional']()['describe']('Format\x20of\x20the\x20edited\x20content\x20for\x20plan_object_edit.\x20'+'\x27tree_outline\x27\x20(default):\x20the\x20indented\x20Markdown\x20outline\x20produced\x20by\x20get_machine_graph\x20/\x20get_guard_graph\x20(human-editable).\x20'+'\x27json\x27:\x20raw\x20JSON\x20(machine-readable,\x20for\x20programmatic\x20edits).\x20'+'Both\x20formats\x20are\x20bidirectional\x20with\x20the\x20parse\x20functions\x20in\x20knowledge/machine-render.ts\x20/\x20guard-render.ts.'),'edited_content':z['string']()['optional']()['describe']('Edited\x20content\x20for\x20plan_object_edit.\x20Must\x20be\x20in\x20the\x20format\x20specified\x20by\x20edit_format.\x20'+'For\x20\x27tree_outline\x27:\x20the\x20full\x20tree_outline\x20string\x20from\x20get_machine_graph/get_guard_graph\x20with\x20user\x20edits.\x20'+'For\x20\x27json\x27:\x20a\x20JSON\x20string\x20matching\x20the\x20Machine/Guard\x20schema.\x20'+'The\x20content\x20is\x20parsed\x20+\x20validated\x20+\x20diffed\x20against\x20the\x20current\x20on-chain\x20state.'),'plan_id':z['string']()['optional']()['describe']('Plan\x20ID\x20returned\x20by\x20plan_object_edit.\x20Required\x20for\x20apply_object_edit.\x20'+'The\x20plan\x20is\x20short-lived\x20(10-minute\x20TTL)\x20and\x20stored\x20in-memory.'),'expected_hash':z['string']()['optional']()['describe']('Expected\x20hash\x20returned\x20by\x20plan_object_edit.\x20Required\x20for\x20apply_object_edit.\x20'+'Used\x20for\x20optimistic\x20concurrency\x20control:\x20if\x20the\x20on-chain\x20state\x20changed\x20between\x20plan\x20and\x20apply,\x20'+'the\x20hash\x20will\x20mismatch\x20and\x20apply\x20will\x20refuse\x20to\x20proceed\x20(stale\x20edit\x20protection).'),'patch_operations':z['array'](z['string']())['optional']()['describe']('Patch\x20operations\x20for\x20patch_machine_nodes\x20/\x20patch_guard_tree.\x20Each\x20string\x20is\x20a\x20single\x20patch\x20operation.\x0a'+'Machine\x20operations\x20(13\x20total):\x0a'+'\x20\x20\x27add\x20node\x20<name>\x27\x20|\x20\x27remove\x20node\x20<name>\x27\x20|\x20\x27set\x20description\x20<node_name>\x20<text...>\x27\x0a'+'\x20\x20\x27add\x20edge\x20<from>\x20<to>\x27\x20|\x20\x27remove\x20edge\x20<from>\x20<to>\x27\x20|\x20\x27set\x20threshold\x20<edge_from>\x20<edge_to>\x20<value>\x27\x0a'+'\x20\x20\x27add\x20forward\x20<edge_from>\x20<edge_to>\x20<forward_name>\x27\x20|\x20\x27remove\x20forward\x20<edge_from>\x20<edge_to>\x20<forward_name>\x27\x0a'+'\x20\x20\x27set\x20guard\x20<edge_from>\x20<edge_to>\x20<forward_name>\x20<guard_addr_or_name|none>\x27\x0a'+'\x20\x20\x27set\x20permission\x20<edge_from>\x20<edge_to>\x20<forward_name>\x20<perm_index>\x27\x0a'+'\x20\x20\x27set\x20operator\x20<edge_from>\x20<edge_to>\x20<forward_name>\x20<named_operator|none>\x27\x0a'+'\x20\x20\x27set\x20weight\x20<edge_from>\x20<edge_to>\x20<forward_name>\x20<weight>\x27\x0a'+'\x20\x20\x27set\x20retained_submission\x20<edge_from>\x20<edge_to>\x20<forward_name>\x20<comma_separated_indices|none>\x27\x0a'+'Guard\x20operations\x20(8\x20total\x20—\x20see\x20patch_guard_tree):\x0a'+'\x20\x20\x27add\x20table\x20<identifier>\x20<name|none>\x20<value_type>\x20<b_submission>\x20[json_value]\x27\x0a'+'\x20\x20\x27remove\x20table\x20<identifier>\x27\x20|\x20\x27set\x20table_value\x20<identifier>\x20[json_value|none]\x27\x0a'+'\x20\x20\x27set\x20table_name\x20<identifier>\x20<name|none>\x27\x20|\x20\x27set\x20table_submission\x20<identifier>\x20<true|false>\x27\x0a'+'\x20\x20\x27set\x20root\x20<json_node>\x27\x20|\x20\x27set\x20rely\x20<comma_separated_guard_addresses|none>\x27\x0a'+'Operations\x20are\x20applied\x20in\x20order.\x20Both\x20patches\x20are\x20validated\x20(validateMachine/validateGuard)\x20before\x20execution.'),'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20for\x20recommend_industry\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20'+'with\x20deposit\x20and\x20damage\x20inspection\x27).\x20Falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'mode_source':z['string']()['optional']()['describe']('Source\x20builtin\x20mode\x20name\x20for\x20derive_user_mode\x20(e.g.\x20\x27freelance\x27).\x20Call\x20list_modes\x20to\x20see\x20available\x20modes.'),'mode_name':z['string']()['max'](0x64)['optional']()['describe']('Mode\x20name\x20for\x20derive_user_mode\x20(new\x20mode\x20name),\x20evolve_user_mode\x20/\x20unregister_user_mode\x20(existing\x20custom\x20mode),\x20register_user_mode\x20(new\x20mode\x20name).\x20'+'Must\x20NOT\x20conflict\x20with\x20builtin\x20mode\x20names.'),'mode_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20derive_user_mode\x20/\x20register_user_mode.\x20Defaults\x20to\x20mode_name.'),'mode_changes':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Mode\x20field\x20overrides\x20for\x20derive_user_mode\x20/\x20evolve_user_mode\x20/\x20register_user_mode.\x20'+'For\x20register_user_mode,\x20REQUIRED\x20fields:\x20machine_shape\x20(non-empty\x20array\x20of\x20{name,\x20role})\x20and\x20key_risk\x20(string).\x20'+'Common\x20overrides:\x20machine_shape\x20(array\x20of\x20{name:string,\x20role:string}),\x20config_overrides\x20(per-object\x20config),\x20'+'allocator,\x20guards,\x20build_notes,\x20risk_appetite.\x20'+'R-M1-11\x20ENFORCED:\x20machine_shape\x20node\x20names\x20must\x20NOT\x20contain\x20dispute/refund/arb\x20terms\x20—\x20'+'disputes\x20flow\x20through\x20Service.arbitrations\x20independently\x20of\x20the\x20Machine.'),'mode_change_description':z['string']()['max'](0x1f4)['optional']()['describe']('Change\x20description\x20for\x20evolve_user_mode\x20(recorded\x20in\x20evolution\x20history).'),'mode_bump_version':z['boolean']()['optional']()['describe']('Whether\x20evolve_user_mode\x20bumps\x20the\x20patch\x20version\x20(default\x20true:\x20v1.0\x20→\x20v1.1).'),'metric_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20metric\x20ID\x20for\x20register_custom_metric\x20(e.g.\x20\x27seasonality_risk\x27).'),'metric_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_metric.'),'metric_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_metric.'),'metric_type':z['enum'](['risk','benefit'])['optional']()['describe']('Metric\x20type\x20for\x20register_custom_metric:\x20\x27risk\x27\x20(negative)\x20or\x20\x27benefit\x27\x20(positive).'),'metric_scale':z['enum'](['level','numeric','percentage'])['optional']()['describe']('Metric\x20scale\x20for\x20register_custom_metric:\x20\x27level\x27\x20(high/medium/low),\x20\x27numeric\x27,\x20or\x20\x27percentage\x27.'),'metric_weight':z['number']()['min'](0x0)['max'](0xa)['optional']()['describe']('Metric\x20weight\x20for\x20register_custom_metric\x20(default\x201.0).'),'constraint_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20constraint\x20ID\x20for\x20register_custom_constraint.'),'constraint_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_constraint.'),'constraint_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_constraint.'),'constraint_rule':z['discriminatedUnion']('type',[z['object']({'type':z['literal']('capability_required'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('capability_forbidden'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('numeric_limit'),'field':z['string'](),'max':z['number']()['optional'](),'min':z['number']()['optional']()})['strict'](),z['object']({'type':z['literal']('condition_required'),'condition':z['string'](),'ai_evaluated':z['literal'](!![])})['strict']()])['optional']()['describe']('Constraint\x20rule\x20for\x20register_custom_constraint.\x204\x20types:\x20'+'capability_required/capability_forbidden\x20(capability_id),\x20numeric_limit\x20(field\x20+\x20max/min),\x20'+'condition_required\x20(natural-language\x20condition,\x20AI-evaluated).'),'constraint_severity':z['enum'](['hard','soft'])['optional']()['describe']('Constraint\x20severity\x20for\x20register_custom_constraint:\x20\x27hard\x27\x20blocks\x20applyTemplate\x20on\x20violation;\x20\x27soft\x27\x20only\x20warns\x20(default\x20\x27soft\x27).'),'constraint_on_violation':z['enum'](['block','warn','log'])['optional']()['describe']('Violation\x20action\x20for\x20register_custom_constraint\x20(default\x20\x27warn\x27).'),'metric_type_filter':z['enum'](['risk','benefit'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20metric\x20type.'),'scope_filter':z['enum'](['builtin','custom'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20scope\x20(builtin\x20or\x20custom).'),'target_objects':z['array'](z['string']())['optional']()['describe']('Optional\x20explicit\x20target\x20objects\x20for\x20analyze_intent\x20(entry_ids\x20or\x20object_type\x20names).\x20'+'When\x20provided,\x20puzzle\x20snapshots\x20are\x20restricted\x20to\x20these\x20objects.'),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown']()['describe']('Puzzle\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20from\x20analyze_intent\x20output\x20unchanged).'),'completeness':z['unknown']()['describe']('Completeness\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20unchanged).'),'missing_dimensions':z['array'](z['string']())['describe']('Dimensions\x20still\x20missing\x20for\x20this\x20object.')})['strict']())['optional']()['describe']('Per-object\x20puzzle\x20snapshots\x20for\x20aggregate_risks,\x20keyed\x20by\x20object_type.\x20'+'Pass\x20the\x20\x27puzzles\x27\x20field\x20from\x20a\x20prior\x20analyze_intent\x20result\x20UNCHANGED.\x20'+'When\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20analyze_intent\x20first\x20(C1→C2\x20in\x20one\x20call).'),'severity_threshold':z['enum'](['CRITICAL','HIGH','MEDIUM','LOW','INFO'])['optional']()['describe']('Severity\x20threshold\x20for\x20aggregate_risks\x20(default\x20\x27HIGH\x27).\x20Risks\x20at\x20or\x20above\x20this\x20level\x20block\x20deployment\x20(status\x20RISK_BLOCKED).'),'user_confirmed_high_risks':z['array'](z['string']())['optional']()['describe']('IDs\x20of\x20HIGH\x20risks\x20the\x20user\x20has\x20already\x20confirmed\x20in\x20a\x20prior\x20round\x20(aggregate_risks).\x20'+'Confirmed\x20HIGH\x20risks\x20no\x20longer\x20trigger\x20RISK_PENDING_CONFIRM.'),'planned_objects':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27guard\x27,\x20\x27machine\x27).'),'is_new':z['boolean']()['describe']('true\x20when\x20creating\x20a\x20NEW\x20object;\x20false\x20when\x20reusing\x20an\x20existing\x20one.'),'name':z['string']()['optional']()['describe']('Planned\x20object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20objects\x20for\x20aggregate_risks\x20OBJECT_REUSE\x20check\x20(safety-rules).\x20'+'Flags\x20NEW\x20objects\x20whose\x20type\x20carries\x20an\x20always/strongly-recommended\x20reuse\x20rule.'),'planned_operations':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27arbitration\x27).'),'trigger':z['enum'](['create','publish'])['describe']('Lifecycle\x20trigger\x20that\x20locks\x20fields.'),'name':z['string']()['optional']()['describe']('Object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20create/publish\x20operations\x20for\x20aggregate_risks\x20IMMUTABILITY\x20check\x20(safety-rules).\x20'+'Warns\x20which\x20fields\x20become\x20permanently\x20locked\x20after\x20each\x20operation.'),'substeps':z['array'](z['object']({'step_id':z['string']()['describe']('Substep\x20id,\x20format\x20\x27T<step>.<substep>\x27\x20e.g.\x20\x27T1.1\x27.'),'parent_step':z['string']()['describe']('Parent\x20step\x20id,\x20format\x20\x27T<step>\x27\x20e.g.\x20\x27T1\x27.'),'object_type':ProjectObjectTypeEnum['describe']('Wowok\x20object\x20type\x20this\x20substep\x20operates\x20on.'),'entry_id':z['string']()['describe']('Puzzle\x20entry_id\x20this\x20substep\x20corresponds\x20to.'),'operation_type':z['string']()['describe']('operation_type\x20for\x20onchain_operations.'),'network':z['enum'](['testnet','mainnet'])['describe']('Target\x20network.'),'input':z['object']({'data':z['record'](z['string'](),z['unknown']())['describe']('Input\x20data\x20payload.'),'input_refs':z['array'](z['string']())['describe']('Upstream\x20substep_ids\x20this\x20substep\x20consumes.')})['strict'](),'output':z['object']({'object_id':z['string']()['optional'](),'tx_digest':z['string']()['optional']()})['catchall'](z['unknown']())['optional']()['describe']('Output\x20data\x20(filled\x20after\x20execution).'),'timestamp':z['number']()['describe']('Execution\x20timestamp\x20(ms).'),'status':z['enum'](['PENDING','SUCCESS','FAILED','SKIPPED'])['describe']('Execution\x20status.'),'failure_reason':z['string']()['optional']()['describe']('Failure\x20reason\x20(when\x20status=\x27FAILED\x27).'),'dependencies':z['object']({'input_refs':z['array'](z['string']()),'output_refs':z['array'](z['object']({'substep_id':z['string']()['describe']('Downstream\x20substep\x20that\x20consumes\x20this\x20output.'),'field_path':z['string']()['describe']('Field\x20path\x20produced\x20by\x20this\x20substep\x20(e.g.\x20\x27permission_address\x27).')})['strict']())})['strict']()['describe']('Dependencies\x20(input_refs\x20+\x20output_refs).'),'retry_info':z['object']({'original_step_id':z['string'](),'retry_count':z['number'](),'retry_reason':z['string']()})['strict']()['optional']()['describe']('Retry\x20info\x20(when\x20this\x20substep\x20is\x20a\x20retry\x20of\x20an\x20earlier\x20one).')})['strict']())['optional']()['describe']('Substep\x20execution\x20records\x20for\x20trace_substeps\x20(63-spec\x20§2.1).\x20'+'Required\x20when\x20action=\x27trace_substeps\x27.\x20Construct\x20from\x20your\x20deployment\x20execution\x20trace.'),'substep_edges':z['array'](z['object']({'source':z['string']()['describe']('Source\x20substep\x20id.'),'target':z['string']()['describe']('Target\x20substep\x20id\x20(depends\x20on\x20source).'),'field_path':z['string']()['describe']('Field\x20path\x20flowing\x20along\x20this\x20edge.')})['strict']())['optional']()['describe']('Explicit\x20DAG\x20edges\x20for\x20trace_substeps.\x20When\x20omitted,\x20edges\x20are\x20derived\x20from\x20each\x20substep\x27s\x20input_refs.'),'guide_state':z['object']({'intent_text':z['string']()['describe']('Step\x201:\x20raw\x20merchant\x20business\x20description.'),'confirmed_industry':z['string']()['optional']()['describe']('Step\x202:\x20merchant-confirmed\x20industry\x20id.'),'currency':z['string']()['optional']()['describe']('Step\x205:\x20payment\x20currency\x20(default\x20WOW).'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204:\x20merchant-defined\x20deliverables\x20(opaque\x20passthrough).'),'payment_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205:\x20payment\x20structure\x20overrides\x20(opaque\x20passthrough).'),'trust_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206:\x20trust\x20mechanism\x20overrides\x20(opaque\x20passthrough).'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206:\x20merchant-confirmed\x20business\x20module\x20ids.')})['strict']()['optional']()['describe']('Wizard\x20state\x20from\x20a\x20prior\x20merchant_guide\x20result.\x20Pass\x20back\x20UNCHANGED\x20on\x20'+'every\x20subsequent\x20call\x20(same\x20pattern\x20as\x20C1→C2\x20puzzles).\x20The\x20handler\x20re-runs\x20'+'the\x20pipeline\x20deterministically\x20and\x20advances\x20to\x20the\x20furthest\x20reachable\x20step.'),'guide_confirm':z['object']({'industry':z['string']()['optional']()['describe']('Step\x202\x20confirmation:\x20industry\x20id\x20(e.g.\x20\x27freelance\x27).'),'currency':z['string']()['optional']()['describe']('Step\x205\x20confirmation:\x20payment\x20currency.'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204\x20confirmation:\x20deliverable\x20definitions.'),'payment':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205\x20confirmation:\x20{\x20model,\x20triggers,\x20allocation\x20}\x20overrides.'),'trust':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206\x20confirmation:\x20{\x20refundPolicy,\x20arbitration,\x20escrow\x20}\x20overrides.'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206\x20confirmation:\x20business\x20module\x20ids\x20to\x20adopt\x20(overrides\x20recommendation).')})['strict']()['optional']()['describe']('Merchant\x20decisions\x20for\x20the\x20current\x20wizard\x20step.\x20Merged\x20over\x20guide_state.\x20'+'Typical\x20flow:\x20call\x201\x20with\x20intent\x20only\x20→\x20receive\x20step-2\x20industry\x20options\x20→\x20'+'call\x202\x20with\x20guide_state\x20+\x20guide_confirm={industry}\x20→\x20receive\x20full\x20blueprint\x20'+'plan\x20(steps\x207-10).'),'radar_account':z['string']()['optional']()['describe']('Account\x20to\x20analyze\x20—\x20address\x20(0x...)\x20or\x20LocalMark\x20name\x20(resolved\x20to\x20an\x20address).\x20'+'Required\x20when\x20action=\x27participation_radar\x27.\x20The\x20perspective\x20(customer/operator/observer)\x20'+'is\x20DERIVED\x20from\x20on-chain\x20data\x20(Order.builder\x20+\x20PermissionPerm\x20grants)\x20—\x20never\x20asserted\x20by\x20this\x20field.'),'radar_targets':z['array'](z['object']({'progress':z['string']()['describe']('Progress\x20object\x20address\x20(0x...)\x20or\x20LocalMark\x20name.\x20The\x20Progress\x20carries\x20the\x20current\x20node\x20+\x20bound\x20Machine.'),'order':z['string']()['optional']()['describe']('Order\x20object\x20address\x20or\x20LocalMark\x20name\x20(optional\x20but\x20recommended\x20—\x20enables\x20order-holder\x20detection,\x20'+'service-level\x20compensation/reward\x20claims,\x20and\x20dispute\x20context).')})['strict']())['min'](0x1)['max'](0x14)['optional']()['describe']('In-flight\x20orders\x20to\x20analyze\x20(1-20).\x20Required\x20when\x20action=\x27participation_radar\x27.\x20'+'Each\x20target\x20is\x20analyzed\x20independently;\x20results\x20are\x20aggregated\x20into\x20one\x20account\x20dashboard.'),'radar_include_alerts':z['boolean']()['optional']()['describe']('Attach\x20order-monitor\x20alerts\x20(progress\x20stall\x20/\x20compensation\x20fund\x20/\x20review\x20&\x20arbitration\x20windows)\x20'+'to\x20each\x20per-order\x20result.\x20Default\x20true.'),'radar_monitor_thresholds':z['object']({'progress_stall_hours':z['number']()['positive']()['optional']()['describe']('Progress\x20stall\x20alert\x20threshold\x20in\x20HOURS.\x20Default\x200\x20=\x20auto\x20(expected_node_duration\x20×\x202).'),'compensation_drop_ratio':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Compensation\x20fund\x20drop\x20alert\x20ratio\x20(0-1).\x20Default\x200.3\x20=\x20alert\x20on\x20≥30%\x20drop.'),'compensation_coverage_min':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Minimum\x20compensation\x20coverage\x20ratio\x20vs\x20order\x20amount\x20(0-1).\x20Default\x201.0\x20=\x20must\x20fully\x20cover.'),'messenger_timeout_hours':z['number']()['positive']()['optional']()['describe']('Messenger\x20no-reply\x20timeout\x20in\x20HOURS.\x20Default\x2024.'),'review_window_closing_days':z['number']()['positive']()['optional']()['describe']('Review\x20window\x20near-closing\x20alert\x20threshold\x20in\x20DAYS.\x20Default\x203.'),'arb_window_closing_days':z['number']()['positive']()['optional']()['describe']('Arbitration\x20window\x20near-closing\x20alert\x20threshold\x20in\x20DAYS.\x20Default\x203.')})['strict']()['optional']()['describe']('Optional\x20per-call\x20overrides\x20for\x20order-monitor\x20alert\x20thresholds\x20(only\x20used\x20when\x20radar_include_alerts\x20is\x20on).\x20'+'All\x20fields\x20optional;\x20omitted\x20fields\x20keep\x20defaults.\x20Units:\x20hours/days\x20as\x20marked\x20per\x20field.')})['strict']();const AssembleContextResultSchema=z['object']({'action':z['literal']('assemble_context'),'objects':z['array'](z['unknown']())['describe']('Current\x20on-chain\x20states\x20of\x20the\x20requested\x20objects\x20(from\x20query_objects).'),'events':z['array'](z['unknown']())['optional']()['describe']('Recent\x20state-transition\x20events\x20(only\x20when\x20include_events=true).\x20'+'Includes\x20NewOrderEvent,\x20ProgressEvent,\x20ArbEvent,\x20etc.'),'embedded_history':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Operation\x20history\x20extracted\x20from\x20object\x20states\x20—\x20NOT\x20from\x20tx\x20queries.\x20'+'Progress\x20objects:\x20session.forwards\x20(who\x20did\x20what,\x20when,\x20accomplished).\x20'+'Order\x20objects:\x20disputes,\x20claimed_by,\x20progress_object.\x20'+'This\x20is\x20the\x20CORRECT\x20history\x20source:\x20convergent,\x20no\x20infinite\x20recursion.'),'dependencies':z['array'](z['object']({'object':z['string']()['describe']('Discovered\x20dependency\x20object\x20ID\x20(0x...).'),'depth':z['number']()['int']()['min'](0x1)['describe']('BFS\x20depth\x20at\x20which\x20this\x20dependency\x20was\x20discovered\x20(1\x20=\x20direct\x20reference\x20from\x20a\x20center\x20object).'),'via_field':z['string']()['describe']('Field\x20name\x20on\x20the\x20parent\x20object\x20that\x20references\x20this\x20dependency\x20(e.g.\x20\x27permission\x27,\x20\x27machine\x27,\x20\x27guard\x27).\x20Matches\x20extractAddressFields\x20output.'),'via_type':z['string']()['describe']('Semantic\x20edge\x20type:\x20\x27bind\x27\x20|\x20\x27validate\x27\x20|\x20\x27consume\x27\x20|\x20\x27trigger\x27\x20|\x20\x27create\x27.'),'parent':z['string']()['describe']('Object\x20ID\x20of\x20the\x20parent\x20that\x20referenced\x20this\x20dependency.')}))['optional']()['describe']('Dependency\x20edges\x20discovered\x20via\x20BFS\x20expansion\x20(only\x20when\x20context_depth\x20>\x200).\x20'+'Each\x20entry\x20describes\x20one\x20outbound\x20reference\x20(parent\x20→\x20child)\x20with\x20the\x20field\x20name\x20'+'and\x20semantic\x20edge\x20type.\x20Use\x20with\x20dependency_objects\x20to\x20get\x20the\x20full\x20states.\x20'+'Cycles\x20are\x20deduplicated\x20—\x20each\x20object\x20ID\x20appears\x20at\x20most\x20once\x20at\x20its\x20shallowest\x20depth.'),'dependency_objects':z['array'](z['unknown']())['optional']()['describe']('Full\x20on-chain\x20states\x20of\x20the\x20discovered\x20dependency\x20objects\x20(only\x20when\x20context_depth\x20>\x200).\x20'+'Order\x20matches\x20`dependencies`\x20when\x20possible;\x20safe\x20to\x20consume\x20as\x20an\x20unordered\x20set.\x20'+'Center\x20objects\x20are\x20NOT\x20repeated\x20here\x20—\x20they\x20live\x20in\x20`objects`.'),'semantic_summary':z['unknown']()['optional']()['describe']('Business\x20semantic\x20annotations\x20generated\x20by\x20buildDataSemantic\x20—\x20'+'maps\x20raw\x20object\x20fields\x20to\x20business-meaningful\x20concepts\x20for\x20LLM\x20consumption.'),'context_digest':z['string']()['describe']('Unique\x20digest\x20for\x20this\x20assembled\x20context\x20(SHA\x20of\x20object\x20IDs\x20+\x20versions\x20+\x20timestamp).\x20'+'Use\x20for\x20caching\x20or\x20to\x20detect\x20state\x20changes\x20between\x20two\x20assembly\x20calls.'),'next_action':z['string']()['describe']('Suggested\x20next\x20action:\x20use\x20onchain_transaction\x20to\x20verify\x20a\x20specific\x20past\x20tx,\x20'+'or\x20proceed\x20with\x20onchain_operations\x20to\x20modify\x20state,\x20or\x20re-call\x20assemble_context\x20'+'after\x20state\x20changes.'),'flywheel_collected':z['object']({'signature_recorded':z['boolean']()['describe']('Whether\x20the\x20experience\x20signature\x20was\x20recorded\x20in\x20the\x20real-time\x20experience\x20layer.'),'proposal_created':z['boolean']()['describe']('Whether\x20an\x20improvement\x20proposal\x20was\x20created\x20for\x20the\x20offline\x20distillation\x20flywheel.'),'proposal_id':z['string']()['optional']()['describe']('The\x20proposal\x20ID,\x20if\x20created.')})['optional']()['describe']('Distillation\x20flywheel\x20collection\x20result.\x20Non-blocking\x20—\x20may\x20be\x20undefined\x20if\x20collection\x20fails.\x20'+'When\x20present,\x20the\x20assembled\x20context\x20has\x20been\x20fed\x20back\x20into\x20the\x20experience\x20layer\x20and/or\x20improvement\x20queue.')})['strict'](),ReverseMapResultSchema=z['object']({'action':z['literal']('reverse_map'),'objects_queried':z['number']()['int']()['min'](0x0)['describe']('How\x20many\x20on-chain\x20objects\x20were\x20queried\x20and\x20fed\x20into\x20the\x20report.'),'report':z['object']({'summary':z['string']()['describe']('One-paragraph\x20deterministic\x20business\x20summary.'),'merchantProfile':z['object']({'serviceDescription':z['string'](),'workflowDescription':z['string'](),'refundPolicy':z['string'](),'arbitrationPolicy':z['string']()})['strict'](),'userRiskAssessment':z['object']({'riskLevel':z['enum'](['low','medium','high','critical']),'keyRisks':z['array'](z['string']()),'protections':z['array'](z['string']()),'missingProtections':z['array'](z['string']())})['strict'](),'gameTheoryAnalysis':z['object']({'merchantIncentives':z['array'](z['string']()),'userIncentives':z['array'](z['string']()),'potentialConflicts':z['array'](z['string']()),'wowAlignments':z['array'](z['string']())})['strict']()})['strict']()['describe']('Deterministic\x20BusinessReport\x20—\x20same\x20objects\x20always\x20yield\x20the\x20same\x20report\x20(no\x20LLM).')})['strict'](),ProjectObjectSchema=z['object']({'id':z['string']()['describe']('ProjectObject\x20UUID\x20(project_objects.id).'),'projectId':z['string']()['describe']('Owning\x20project\x20UUID.'),'objectAddress':z['string']()['describe']('On-chain\x20object\x20address\x20(0x...)\x20or\x20\x27draft:<name>\x27\x20sentinel\x20for\x20blueprint\x20objects.'),'objectType':z['string']()['nullable']()['describe']('Object\x20type\x20(Service,\x20Machine,\x20etc.)\x20or\x20null\x20if\x20unknown.'),'objectName':z['string']()['nullable']()['describe']('LocalMark\x20name\x20or\x20null.'),'role':z['string']()['describe']('Object\x20role\x20in\x20project.\x20Valid\x20values:\x20\x27core\x27\x20(the\x20Service),\x20\x27dependency\x27\x20(required\x20binding),\x20\x27reference\x27\x20(optional/auxiliary).\x20Other\x20values\x20indicate\x20data\x20corruption\x20—\x20see\x20objectGroups.other\x20bucket.'),'tags':z['array'](z['string']())['nullable']()['describe']('Tags\x20array\x20or\x20null.'),'addedAt':z['number']()['describe']('Timestamp\x20(ms)\x20when\x20added\x20to\x20project.'),'metadata':z['record'](z['string'](),z['unknown']())['nullable']()['describe']('Arbitrary\x20metadata\x20key-value\x20pairs\x20or\x20null.')})['strict'](),ProjectSchema=z['object']({'id':z['string']()['describe']('Project\x20UUID.'),'prefix':z['string']()['describe']('Human-readable\x20unique\x20prefix.'),'name':z['string']()['describe']('Display\x20name.'),'description':z['string']()['nullable'](),'industry':z['string']()['nullable'](),'perspective':z['enum'](['producer','consumer','both']),'status':z['enum'](['draft','active','inactive','archived']),'labels':z['array'](z['string']())['nullable'](),'currentVersion':z['string']()['nullable']()['describe']('Current\x20version\x20tag\x20(e.g.\x20\x27v1\x27).'),'serviceAddress':z['string']()['nullable']()['describe']('Core\x20Service\x20on-chain\x20address\x20(producer\x20projects).'),'defaultAccount':z['string']()['nullable'](),'network':z['string']()['describe']('Network\x20the\x20project\x20is\x20bound\x20to.'),'createdAt':z['number'](),'updatedAt':z['number'](),'metadata':z['record'](z['string'](),z['unknown']())['nullable']()['describe']('Arbitrary\x20metadata\x20key-value\x20pairs\x20or\x20null.')})['strict'](),ProjectListItemSchema=ProjectSchema['extend']({'objectCount':z['number']()['describe']('Number\x20of\x20objects\x20in\x20this\x20project\x20(from\x20project_objects\x20table).'),'evaluationCount':z['number']()['describe']('Number\x20of\x20stored\x20evaluations\x20for\x20this\x20project\x20(from\x20evaluations\x20table).'),'objectTypes':z['array'](z['string']())['describe']('Distinct\x20object\x20types\x20in\x20this\x20project\x20(e.g.\x20[\x27Service\x27,\x27Machine\x27]).')}),ListProjectsResultSchema=z['object']({'action':z['literal']('list_projects'),'items':z['array'](ProjectListItemSchema)['describe']('GLM6\x20projects\x20from\x20SQLite\x20(first-class\x20entities,\x20with\x20object\x20summary).'),'total':z['number']()['describe']('Total\x20number\x20of\x20projects\x20returned.')})['strict'](),RecommendedCreationOrderItemSchema=z['object']({'step':z['number']()['describe']('Step\x20number\x20(1-based).'),'object':z['string']()['describe']('Object\x20type\x20to\x20create\x20(e.g.\x20\x27Permission\x27,\x20\x27Service\x20(unpublished)\x27).'),'reason':z['string']()['describe']('Why\x20this\x20step\x20is\x20here,\x20including\x20dependencies\x20and\x20irreversibility\x20notes.'),'required':z['boolean']()['describe']('Whether\x20this\x20step\x20is\x20mandatory\x20for\x20a\x20working\x20deployment.')})['strict'](),RecommendedIndustryItemSchema=z['object']({'industry':z['string']()['describe']('Recommended\x20builtin\x20industry\x20mode\x20name.'),'similarity':z['number']()['describe']('Trait\x20similarity\x200-1\x20(10-dim\x20industry\x20trait\x20match).'),'matched_traits':z['array'](z['string']())['describe']('Trait\x20dimensions\x20that\x20matched.'),'reference_examples':z['array'](z['object']({'file':z['string']()['describe']('Example\x20file\x20name\x20(fetch\x20via\x20schema_query\x20search_examples).'),'title':z['string'](),'operation_type':z['string'](),'verified':z['boolean']()})['strict']())['describe']('Verified\x20reference\x20examples\x20for\x20this\x20industry\x20(top\x203).')})['strict'](),CreateProjectResultSchema=z['object']({'action':z['literal']('create_project'),'project':ProjectSchema['describe']('The\x20created\x20project.'),'recommended_creation_order':z['array'](RecommendedCreationOrderItemSchema)['describe']('Canonical\x20deployment\x20sequence\x20satisfying\x20dependency\x20constraints.\x20'+'All\x20industries\x20share\x20this\x20base\x20order;\x20see\x20IndustryMode.build_notes\x20for\x20industry-specific\x20deviations.'),'blueprint':z['object']({'objects_count':z['number']()['describe']('Number\x20of\x20draft\x20objects\x20created\x20from\x20the\x20template.'),'edges_count':z['number']()['describe']('Number\x20of\x20graph\x20edges\x20from\x20the\x20template.'),'industry_source':z['string']()['describe']('Industry\x20mode\x20name\x20that\x20sourced\x20the\x20template.'),'applied_template':z['string']()['describe']('Template\x20identifier\x20applied.'),'steps_count':z['number']()['describe']('Number\x20of\x20deployment\x20steps\x20in\x20the\x20template.'),'scenarios_count':z['number']()['describe']('Number\x20of\x20scenarios\x20in\x20the\x20template.'),'key_risk':z['string']()['nullable']()['optional']()['describe']('Industry-specific\x20key\x20risk\x20note\x20(or\x20null).'),'intent_inference':z['object']({'traits':z['record'](z['string'](),z['unknown']())['describe']('10-dimension\x20inferred\x20industry\x20traits\x20(unmatched\x20traits\x20use\x20neutral\x20defaults).'),'confidence':z['number']()['describe']('Inference\x20confidence\x200-1\x20(matched\x20trait\x20count\x20/\x2010).'),'matched_keywords':z['array'](z['string']())['describe']('Keywords\x20that\x20triggered\x20trait\x20inference.'),'top_matches':z['array'](z['object']({'industry':z['string'](),'similarity':z['number']()['describe']('Trait\x20similarity\x200-1.')})['strict']())['describe']('Top-3\x20similar\x20industries\x20by\x20trait\x20similarity.')})['strict']()['optional']()['describe']('Intent\x20inference\x20summary\x20(E.3)\x20—\x20present\x20when\x20industry\x20template\x20applied.'),'industry_mismatch_hint':z['string']()['optional']()['describe']('Advisory\x20hint\x20—\x20present\x20when\x20intent\x20inference\x20suggests\x20a\x20different\x20industry\x20fits\x20the\x20description\x20better\x20(non-blocking).')})['strict']()['optional']()['describe']('Blueprint\x20summary\x20—\x20present\x20when\x20industry\x20template\x20applied\x20successfully.\x20Objects\x20have\x20status=\x27draft\x27\x20and\x20address=\x27draft:<name>\x27.\x20Full\x20steps/scenarios\x20persisted\x20as\x20project\x20document\x20doc_type=\x27blueprint\x27.'),'blueprint_warning':z['string']()['optional']()['describe']('Warning\x20message\x20—\x20present\x20when\x20industry\x20template\x20application\x20failed.\x20Project\x20is\x20created\x20without\x20blueprint;\x20use\x20add_object\x20to\x20manually\x20add\x20objects.'),'blueprint_skipped':z['boolean']()['optional']()['describe']('True\x20when\x20skip_templates=true\x20was\x20passed\x20—\x20no\x20industry\x20blueprint\x20objects\x20were\x20created.'),'hint':z['string']()['optional']()['describe']('User-facing\x20hint\x20—\x20guides\x20to\x20next\x20action\x20(e.g.\x20add_object,\x20generate_deployment_doc).'),'recommended_industries':z['array'](RecommendedIndustryItemSchema)['optional']()['describe']('Top-3\x20recommended\x20industry\x20modes\x20inferred\x20from\x20the\x20project\x20description\x20(E.7).\x20'+'Present\x20only\x20when\x20no\x20project_industry\x20was\x20given.\x20Each\x20item\x20includes\x20reference\x20examples\x20'+'(\x27standing\x20on\x20giants\x27\x20shoulders\x27).\x20To\x20apply:\x20call\x20update_project\x20is\x20NOT\x20enough\x20—\x20recreate\x20'+'via\x20create_project\x20with\x20project_industry\x20set\x20to\x20get\x20the\x20blueprint.')})['strict'](),CreateProjectFromOnchainResultSchema=z['object']({'action':z['literal']('create_project_from_onchain'),'project':ProjectSchema['describe']('The\x20created\x20consumer\x20project.'),'objects':z['array'](ProjectObjectSchema)['describe']('Objects\x20discovered\x20from\x20on-chain\x20Service\x20+\x20graph\x20traversal.'),'graphEdgeCount':z['number']()['describe']('Number\x20of\x20relationship\x20edges\x20discovered\x20and\x20persisted.')})['strict'](),UpdateProjectResultSchema=z['object']({'action':z['literal']('update_project'),'project':ProjectSchema['describe']('The\x20updated\x20project.')})['strict'](),EvaluationDetailsSchema=z['object']({'criterionScores':z['array'](z['object']({'name':z['string']()['describe']('Criterion\x20name\x20(e.g.\x20\x27Service\x20Published\x27,\x20\x27Governance\x20Present\x27).'),'score':z['number']()['describe']('Per-criterion\x20score\x20(0-100,\x20higher\x20=\x20better).'),'weight':z['number']()['describe']('Weight\x20in\x20the\x20overall\x20score\x20(0-1).'),'rationale':z['string']()['describe']('Why\x20this\x20score\x20was\x20assigned.')})['strict']())['describe']('Per-criterion\x20scores\x20with\x20rationale.'),'findings':z['array'](z['object']({'criterion':z['string']()['describe']('Criterion\x20this\x20finding\x20relates\x20to.'),'severity':z['enum'](['critical','warning','info'])['describe']('Severity\x20level:\x20critical\x20(blocks\x20deployment),\x20warning\x20(should\x20fix),\x20info\x20(advisory).'),'message':z['string']()['describe']('Human-readable\x20finding\x20description.'),'deduction':z['number']()['describe']('Score\x20deduction\x20applied\x20(negative\x20number,\x20e.g.\x20-20).')})['strict']())['describe']('Negative\x20findings\x20(warnings/critical\x20issues)\x20with\x20deductions.'),'strengths':z['array'](z['string']())['describe']('Positive\x20evidence\x20explaining\x20high\x20scores.')})['strict'](),GetProjectDetailResultSchema=z['object']({'action':z['literal']('get_project_detail'),'project':ProjectSchema,'objects':z['array'](ProjectObjectSchema)['describe']('Project\x20objects\x20(rigid\x20relationships).\x20Flat\x20list\x20—\x20use\x20objectGroups\x20for\x20role-based\x20navigation.'),'objectGroups':z['object']({'core':z['array'](ProjectObjectSchema)['describe']('Core\x20objects\x20(the\x20Service)\x20—\x20the\x20primary\x20deliverable\x20of\x20the\x20project.'),'dependency':z['array'](ProjectObjectSchema)['describe']('Dependency\x20objects\x20(Permission,\x20Machine,\x20Guard,\x20Allocation,\x20Treasury,\x20etc.)\x20—\x20required\x20for\x20the\x20Service\x20to\x20function.'),'reference':z['array'](ProjectObjectSchema)['describe']('Reference\x20objects\x20(read-only\x20or\x20external)\x20—\x20tracked\x20but\x20not\x20owned\x20by\x20this\x20project.'),'other':z['array'](ProjectObjectSchema)['describe']('Objects\x20with\x20invalid\x20or\x20missing\x20role\x20(data\x20corruption,\x20legacy\x20data).\x20Grouped\x20here\x20for\x20visibility\x20—\x20should\x20normally\x20be\x20empty.\x20Check\x20server\x20logs\x20for\x20warnings.'),'stats':z['object']({'total':z['number']()['describe']('Total\x20object\x20count.'),'core_count':z['number']()['describe']('Number\x20of\x20core\x20objects.'),'dependency_count':z['number']()['describe']('Number\x20of\x20dependency\x20objects.'),'reference_count':z['number']()['describe']('Number\x20of\x20reference\x20objects.'),'other_count':z['number']()['describe']('Number\x20of\x20objects\x20with\x20invalid/missing\x20role\x20(in\x20\x27other\x27\x20bucket).\x20Normally\x200.'),'by_type':z['record'](z['string'](),z['number']())['describe']('Object\x20count\x20grouped\x20by\x20objectType\x20prefix\x20(e.g.\x20{\x27service\x27:\x201,\x20\x27permission\x27:\x201,\x20\x27guard\x27:\x205}).')})['strict']()['describe']('Aggregate\x20counts\x20for\x20quick\x20project\x20sizing.')})['strict']()['describe']('Objects\x20grouped\x20by\x20role\x20(core/dependency/reference/other)\x20for\x20easier\x20navigation.\x20The\x20\x27other\x27\x20bucket\x20captures\x20objects\x20with\x20invalid\x20roles\x20(H-05\x20fix).\x20The\x20flat\x20`objects`\x20array\x20is\x20preserved\x20for\x20backward\x20compatibility.'),'graphEdgeCount':z['number']()['describe']('Number\x20of\x20persisted\x20graph\x20edges.'),'serviceStatus':z['object']({'published':z['boolean']()['nullable']()['describe']('Whether\x20the\x20on-chain\x20Service\x20is\x20published\x20(live).\x20null\x20=\x20unknown\x20/\x20query\x20failed.'),'paused':z['boolean']()['nullable']()['describe']('Whether\x20the\x20on-chain\x20Service\x20is\x20paused\x20(not\x20accepting\x20orders).\x20null\x20=\x20unknown.')})['strict']()['nullable']()['describe']('On-chain\x20Service\x20status\x20(published\x20/\x20paused).\x20Separate\x20from\x20the\x20project\x27s\x20local\x20lifecycle\x20status.\x20null\x20if\x20the\x20project\x20has\x20no\x20serviceAddress\x20or\x20the\x20on-chain\x20query\x20failed.'),'evaluations':z['array'](z['object']({'id':z['string'](),'evalType':z['enum'](['risk','trust','completeness','value','worth_buying']),'score':z['number']()['nullable'](),'summary':z['string']()['nullable'](),'details':EvaluationDetailsSchema['nullable']()['describe']('Structured\x20inspection\x20content\x20(criterion\x20scores,\x20findings,\x20strengths).\x20Null\x20for\x20evaluations\x20created\x20before\x20details\x20were\x20stored.'),'evaluatedAt':z['number']()})['strict']())['describe']('Stored\x20evaluation\x20results\x20(most\x20recent\x20first).'),'versions':z['array'](z['object']({'version':z['string'](),'description':z['string']()['nullable'](),'createdAt':z['number']()})['strict']())['describe']('Project\x20version\x20history.')})['strict'](),AddObjectResultSchema=z['object']({'action':z['literal']('add_object'),'object':ProjectObjectSchema['describe']('The\x20added\x20project-object\x20relationship.')})['strict'](),RemoveObjectResultSchema=z['object']({'action':z['literal']('remove_object'),'removed':z['literal'](!![])['describe']('Always\x20true\x20—\x20confirms\x20removal.')})['strict'](),UpdateObjectResultSchema=z['object']({'action':z['literal']('update_object'),'object':ProjectObjectSchema['describe']('The\x20updated\x20project-object\x20relationship.')})['strict'](),CreateVersionResultSchema=z['object']({'action':z['literal']('create_version'),'version':z['object']({'version':z['string']()['describe']('Version\x20tag\x20(e.g.\x20\x27v2\x27).'),'description':z['string']()['nullable'](),'createdAt':z['number']()})['strict']()})['strict'](),BuildGraphResultSchema=z['object']({'action':z['literal']('build_graph'),'async_mode':z['boolean']()['optional']()['describe']('True\x20when\x20graph\x20is\x20building\x20asynchronously\x20(background\x20task).\x20When\x20true,\x20call\x20query_task_status\x20with\x20task_id\x20to\x20retrieve\x20the\x20result.'),'task_id':z['string']()['optional']()['describe']('Async\x20task\x20id\x20—\x20present\x20only\x20when\x20async_mode=true.\x20Use\x20with\x20query_task_status.'),'nodeCount':z['number']()['optional']()['describe']('Total\x20nodes\x20in\x20the\x20constructed\x20graph\x20(sync\x20mode\x20only).'),'edgeCount':z['number']()['optional']()['describe']('Total\x20edges\x20(after\x20conflict\x20resolution\x20+\x20dedup)\x20(sync\x20mode\x20only).'),'edgesBySource':z['record'](z['string'](),z['number']())['optional']()['describe']('Edge\x20counts\x20by\x20source:\x20{\x20internal:\x20N,\x20registrar:\x20N,\x20potential:\x20N\x20}\x20(sync\x20mode\x20only).'),'reputationCount':z['number']()['optional']()['describe']('Number\x20of\x20objects\x20with\x20Registrar\x20reputation\x20data\x20(sync\x20mode\x20only).'),'builtAt':z['number']()['optional']()['describe']('Build\x20timestamp\x20in\x20ms\x20(sync\x20mode\x20only).'),'binding_verification':z['object']({'service':z['string']()['describe']('Service\x20object\x20address\x20that\x20was\x20verified.'),'bindings':z['record'](z['string'](),z['object']({'expected':z['string']()['describe']('Expected\x20target\x20object\x20type.'),'actual':z['string']()['nullable']()['describe']('Actual\x20on-chain\x20value\x20(address\x20or\x20null).'),'count':z['number']()['optional']()['describe']('Item\x20count\x20for\x20array\x20fields\x20(order_allocators,\x20arbitrations).'),'verified':z['boolean']()['describe']('Whether\x20the\x20binding\x20exists\x20on-chain.')}))['describe']('Per-field\x20binding\x20verification\x20result.'),'all_verified':z['boolean']()['describe']('True\x20when\x20all\x20critical\x20bindings\x20exist\x20on-chain.')})['nullable']()['optional']()['describe']('On-chain\x20verification\x20of\x20Service\x20bindings\x20(F-15).\x20Null\x20when\x20no\x20Service\x20address\x20or\x20query\x20failed.\x20Sync\x20mode\x20only.'),'topEdges':z['array'](z['object']({'source':z['string']()['describe']('Source\x20object\x20address.'),'target':z['string']()['describe']('Target\x20object\x20address.'),'fieldName':z['string']()['nullable']()['describe']('Field\x20name\x20on\x20the\x20source\x20object\x20(or\x20null).'),'relationshipType':z['string']()['describe']('Relationship\x20type\x20(bind,\x20create,\x20trigger,\x20etc.).'),'weight':z['number']()['nullable']()['describe']('Edge\x20weight\x20(0-1,\x20higher\x20=\x20more\x20important).'),'verified':z['boolean']()['describe']('Whether\x20the\x20edge\x20has\x20been\x20verified\x20on-chain.')})['strict']())['optional']()['describe']('Top\x205\x20critical\x20edges\x20by\x20weight\x20(sync\x20mode\x20only).\x20Preview\x20of\x20the\x20most\x20important\x20relationships\x20—\x20call\x20get_graph\x20for\x20the\x20full\x20list.'),'visualization':z['string']()['optional']()['describe']('Mermaid-style\x20ASCII\x20visualization\x20of\x20top\x20edges\x20(sync\x20mode\x20only).\x20Compact\x20format:\x20\x27source\x20--field-->\x20target\x27.'),'hint':z['string']()['optional']()['describe']('User-facing\x20hint\x20—\x20guides\x20to\x20next\x20action\x20(e.g.\x20call\x20get_graph\x20for\x20full\x20list,\x20or\x20query_task_status\x20for\x20async\x20result).')})['strict'](),GetGraphResultSchema=z['object']({'action':z['literal']('get_graph'),'edges':z['array'](z['object']({'sourceObject':z['string'](),'targetObject':z['string'](),'edgeSource':z['enum'](['internal','registrar','potential']),'relationshipType':z['string'](),'fieldName':z['string']()['nullable'](),'depth':z['number'](),'verified':z['boolean'](),'weight':z['number'](),'direction':z['string']()['nullable']()})['strict']())['describe']('Persisted\x20graph\x20edges.')})['strict'](),EvaluateProjectResultSchema=z['object']({'action':z['literal']('evaluate_project'),'evaluationType':z['enum'](['risk','trust','completeness','value','worth_buying']),'score':z['number']()['describe']('Overall\x20score\x20(0-100,\x20higher\x20=\x20better).\x200\x20when\x20needsLlm=true.'),'summary':z['string'](),'criterionScores':z['array'](z['object']({'name':z['string'](),'score':z['number'](),'weight':z['number'](),'rationale':z['string']()})['strict']())['describe']('Per-criterion\x20scores.\x20Empty\x20when\x20needsLlm=true.'),'findings':z['array'](z['object']({'criterion':z['string'](),'severity':z['enum'](['critical','warning','info']),'message':z['string'](),'deduction':z['number']()})['strict']())['describe']('Negative\x20findings\x20(deductions).\x20Empty\x20when\x20needsLlm=true.'),'strengths':z['array'](z['string']())['describe']('Positive\x20evidence.\x20Empty\x20when\x20needsLlm=true.'),'needsLlm':z['boolean']()['describe']('True\x20for\x20worth_buying/value\x20evaluations.\x20When\x20true,\x20process\x20the\x20llmPrompt\x20with\x20an\x20LLM\x20and\x20call\x20save_evaluation\x20to\x20store\x20the\x20result.'),'llmPrompt':z['string']()['optional']()['describe']('Present\x20when\x20needsLlm=true.\x20Send\x20this\x20prompt\x20to\x20an\x20LLM,\x20parse\x20the\x20JSON\x20response,\x20and\x20call\x20save_evaluation.'),'evaluationId':z['string']()['describe']('ID\x20of\x20the\x20stored\x20evaluation\x20record\x20(for\x20rule-based\x20types).\x20Empty\x20for\x20LLM-assisted\x20types.')})['strict'](),SaveEvaluationResultSchema=z['object']({'action':z['literal']('save_evaluation'),'evaluation':z['object']({'id':z['string'](),'evalType':z['enum'](['risk','trust','completeness','value','worth_buying']),'score':z['number']()['nullable'](),'summary':z['string']()['nullable'](),'evaluatedAt':z['number']()})['strict']()['describe']('The\x20stored\x20evaluation\x20record.')})['strict'](),CompareProjectsResultSchema=z['object']({'action':z['literal']('compare_projects'),'evaluationType':z['enum'](['risk','trust','completeness','value','worth_buying']),'ranking':z['array'](z['object']({'projectId':z['string'](),'projectName':z['string'](),'score':z['number']()['nullable'](),'summary':z['string']()['nullable'](),'evaluatedAt':z['number']()['nullable']()})['strict']())['describe']('Projects\x20sorted\x20by\x20score\x20descending\x20(nulls\x20last).'),'bestProjectId':z['string']()['nullable']()['describe']('Project\x20ID\x20with\x20the\x20highest\x20score,\x20or\x20null\x20if\x20none\x20have\x20evaluations.')})['strict'](),RefreshObjectsResultSchema=z['object']({'action':z['literal']('refresh_objects'),'refreshedCount':z['number']()['describe']('Number\x20of\x20objects\x20re-fetched\x20from\x20chain.'),'failedCount':z['number']()['describe']('Number\x20of\x20objects\x20that\x20failed\x20to\x20refresh.'),'refreshedAt':z['number']()['describe']('Refresh\x20timestamp\x20(ms).')})['strict'](),DeleteProjectResultSchema=z['object']({'action':z['literal']('delete_project'),'deleted':z['literal'](!![])['describe']('Always\x20true\x20—\x20confirms\x20deletion\x20of\x20the\x20project\x20and\x20all\x20associated\x20objects,\x20evaluations,\x20versions,\x20and\x20graph\x20edges.')})['strict'](),GetObjectDiffResultSchema=z['object']({'action':z['literal']('get_object_diff'),'address':z['string'](),'fromTime':z['number'](),'toTime':z['number'](),'changedFields':z['array'](z['object']({'fieldPath':z['string']()['describe']('Dotted\x20field\x20path\x20(e.g.\x20\x27machine\x27,\x20\x27sales[0].price\x27).'),'oldValue':z['unknown']()['describe']('Previous\x20value\x20(null\x20if\x20field\x20was\x20added).'),'newValue':z['unknown']()['describe']('New\x20value\x20(null\x20if\x20field\x20was\x20removed).'),'changeType':z['enum'](['added','removed','modified'])})['strict']())['describe']('Changed\x20fields\x20between\x20the\x20two\x20timestamps.')})['strict'](),GenerateDeploymentDocResultSchema=z['object']({'action':z['literal']('generate_deployment_doc'),'markdown':z['string']()['describe']('Generated\x20deployment\x20document\x20markdown\x20content\x20(follows\x2071-deployment-list-spec).'),'validation':z['object']({'valid':z['boolean']()['describe']('True\x20iff\x20no\x20D-check\x20FAIL.'),'checks':z['array'](z['object']({'check_id':z['string'](),'description':z['string'](),'status':z['enum'](['PASS','FAIL','WARN']),'notes':z['string']()['optional']()})['strict']())['describe']('D-01..D-20\x20check\x20results\x20(20\x20deployment\x20checks\x20including\x20D-19\x20Machine\x20entry-node\x20forward\x20and\x20D-20\x20Service\x20compensation_fund).'),'errors':z['array'](z['string']())['describe']('List\x20of\x20FAIL\x20error\x20messages.')})['strict']()['describe']('Deployment\x20doc\x20validation\x20result\x20against\x20D-01..D-20.'),'saved':z['boolean']()['describe']('Whether\x20the\x20markdown\x20was\x20persisted\x20to\x20SQLite\x20project_documents\x20table.'),'detail_level':z['enum'](['summary','detailed','full'])['describe']('Effective\x20detail\x20level\x20used\x20to\x20render\x20the\x20deployment\x20doc.\x20'+'\x27summary\x27\x20(default)\x20shows\x20only\x20key\x20bindings;\x20\x27detailed\x27\x20adds\x20sale/arbitration\x20lists;\x20\x27full\x27\x20shows\x20complete\x20config.'),'stage_gate':z['object']({'stage':z['number']()['describe']('The\x20stage\x20that\x20was\x20validated\x20(4\x20=\x20deployment\x20doc\x20generation\x20gate).'),'passed':z['boolean']()['describe']('True\x20iff\x20no\x20FAIL\x20checks\x20exist\x20—\x20gate\x20allows\x20advancing\x20to\x20Stage\x205.'),'can_proceed':z['boolean']()['describe']('Alias\x20for\x20`passed`\x20—\x20whether\x20the\x20stage\x20gate\x20allows\x20advancement.'),'blocking_issues':z['array'](z['string']())['describe']('FAIL\x20status\x20messages\x20—\x20must\x20be\x20resolved\x20before\x20deploying.'),'warnings':z['array'](z['string']())['describe']('WARN\x20status\x20messages\x20—\x20non-blocking,\x20user\x20may\x20proceed\x20at\x20own\x20risk.'),'checks':z['array'](z['object']({'dimension':z['enum'](['semantic','tools','reversibility','risk','isolation','gas_budget'])['describe']('The\x20validation\x20dimension.'),'status':z['enum'](['PASS','WARN','FAIL'])['describe']('Check\x20result\x20status.'),'message':z['string']()['describe']('Human-readable\x20check\x20result\x20message.')})['strict']())['describe']('Per-dimension\x20check\x20results.')})['strict']()['describe']('Stage\x20gate\x20validation\x20(GLM6\x205-stage\x20lifecycle\x20handoff).\x20Validates\x20Stage\x203\x20risk\x20score\x20threshold\x20(>=80\x20PASS,\x20>=50\x20WARN,\x20<50\x20FAIL)\x20and\x20Stage\x204\x20deployment\x20doc\x20generation\x20prerequisite.'),'deployment_scan':z['object']({'overall_readiness':z['enum'](['ready','blocked','warnings'])['describe']('\x27ready\x27\x20=\x20all\x2020\x20checks\x20pass;\x20\x27blocked\x27\x20=\x20any\x20critical\x20fail;\x20\x27warnings\x27\x20=\x20only\x20warning\x20fails.'),'critical_count':z['number']()['describe']('Number\x20of\x20critical\x20findings\x20(blocks\x20deployment).'),'warning_count':z['number']()['describe']('Number\x20of\x20warning\x20findings\x20(non-blocking).'),'findings':z['array'](z['object']({'check_id':z['string']()['describe']('D-XX\x20check\x20id\x20(e.g.\x20\x27D-19\x27)\x20or\x20sub-id\x20(e.g.\x20\x27D-10a\x27).'),'severity':z['enum'](['critical','warning','info'])['describe']('Finding\x20severity.'),'message':z['string']()['describe']('Human-readable\x20finding\x20message.'),'location':z['string']()['optional']()['describe']('Document\x20location\x20(section,\x20line,\x20or\x20step\x20id).'),'suggestion':z['string']()['optional']()['describe']('Suggested\x20fix.')})['strict']())['describe']('All\x20findings\x20from\x20the\x2020\x20D-XX\x20deployment\x20checks.'),'checks':z['object']({'D01_object_defined':z['enum'](['pass','fail']),'D02_dependency_complete':z['enum'](['pass','fail']),'D03_scenario_covered':z['enum'](['pass','fail']),'D04_testnet_topo_order':z['enum'](['pass','fail']),'D05_testnet_network':z['enum'](['pass','fail']),'D06_testnet_replace':z['enum'](['pass','fail']),'D07_permission_index':z['enum'](['pass','fail']),'D08_guard_gen_passport':z['enum'](['pass','fail']),'D09_machine_node_count':z['enum'](['pass','fail']),'D10_substep_coherence':z['enum'](['pass','fail']),'D11_mainnet_testnet_match':z['enum'](['pass','fail']),'D12_mainnet_network':z['enum'](['pass','fail']),'D13_mainnet_replace':z['enum'](['pass','fail']),'D14_testnet_verification':z['enum'](['pass','fail']),'D15_mainnet_verification':z['enum'](['pass','fail']),'D16_no_critical_risk':z['enum'](['pass','fail']),'D17_no_high_risk':z['enum'](['pass','fail']),'D18_completeness_checklist':z['enum'](['pass','fail']),'D19_machine_entry_forward':z['enum'](['pass','fail'])['describe']('Machine\x20entry\x20node\x20(prev_node=\x27\x27)\x20forwards\x20non-empty\x20—\x20avoids\x20Progress\x20stuck\x20at\x20current=\x27\x27.'),'D20_service_compensation_fund':z['enum'](['pass','fail'])['describe']('Service\x20compensation_fund\x20(Balance<T>)\x20present\x20or\x20industry-exempt\x20—\x20ensures\x20arbitration\x20refund\x20capability.')})['strict']()['describe']('Per-check\x20pass/fail\x20status\x20for\x20all\x2020\x20D-XX\x20checks.')})['strict']()['describe']('Deployment\x20scanner\x20result\x20—\x2020\x20D-XX\x20checks\x20including\x20D-19\x20(Machine\x20entry\x20forward)\x20and\x20D-20\x20(Service\x20compensation_fund).')})['strict'](),PreEvaluateCheckResultSchema=z['object']({'action':z['literal']('pre_evaluate_check'),'ready':z['boolean']()['describe']('True\x20if\x20evaluate_project\x20will\x20produce\x20meaningful\x20results\x20(no\x20hard\x20blockers).\x20'+'If\x20false,\x20address\x20the\x20items\x20in\x20`missing`\x20first.'),'missing':z['array'](z['object']({'id':z['string']()['describe']('Check\x20ID\x20(e.g.\x20PE-01,\x20PE-06).'),'description':z['string']()['describe']('What\x20is\x20missing.'),'impact':z['string']()['describe']('How\x20it\x20affects\x20the\x20evaluation,\x20and\x20how\x20to\x20fix\x20it.')})['strict']())['describe']('Hard\x20blockers\x20—\x20must\x20be\x20resolved\x20before\x20evaluation.'),'warnings':z['array'](z['object']({'id':z['string']()['describe']('Check\x20ID\x20(e.g.\x20PE-02,\x20PE-03).'),'description':z['string']()['describe']('What\x20is\x20suboptimal.'),'impact':z['string']()['describe']('How\x20it\x20affects\x20the\x20evaluation,\x20and\x20how\x20to\x20improve\x20it.')})['strict']())['describe']('Soft\x20issues\x20—\x20evaluation\x20runs\x20but\x20quality\x20may\x20be\x20reduced.'),'summary':z['string']()['describe']('One-line\x20human-readable\x20status.'),'counts':z['object']({'objects':z['number']()['describe']('Total\x20project_objects\x20count.'),'edges':z['number']()['describe']('Total\x20graph_edges\x20count.'),'uncached':z['number']()['describe']('Objects\x20with\x20no\x20cached\x20on-chain\x20data.'),'stale':z['number']()['describe']('Objects\x20with\x20cache\x20older\x20than\x2024\x20hours.'),'dangling_edges':z['number']()['describe']('Edges\x20referencing\x20objects\x20not\x20in\x20project_objects.'),'drafts':z['number']()['describe']('Objects\x20still\x20in\x20draft\x20(not\x20yet\x20on-chain).')})['strict']()['describe']('Quick-scan\x20counts\x20for\x20triage.')})['strict'](),VerifyDeploymentResultSchema=z['object']({'action':z['literal']('verify_deployment'),'verifiedCount':z['number']()['describe']('Number\x20of\x20objects\x20actually\x20verified\x20(excludes\x20drafts\x20and\x20unreachable).'),'matched':z['number']()['describe']('Objects\x20whose\x20on-chain\x20state\x20matches\x20SQLite.'),'mismatched':z['number']()['describe']('Objects\x20whose\x20on-chain\x20state\x20differs\x20from\x20SQLite\x20(see\x20`results[].differences`).'),'missing':z['number']()['describe']('Objects\x20that\x20no\x20longer\x20exist\x20on-chain\x20(deleted\x20or\x20never\x20deployed).'),'unreachable':z['number']()['describe']('Objects\x20that\x20could\x20not\x20be\x20queried\x20(network\x20error).'),'results':z['array'](z['object']({'objectAddress':z['string'](),'objectName':z['string']()['nullable'](),'objectType':z['string']()['nullable'](),'status':z['enum'](['matched','mismatched','missing','unreachable'])['describe']('Verification\x20status:\x20\x27matched\x27\x20=\x20on-chain\x20matches\x20SQLite;\x20'+'\x27mismatched\x27\x20=\x20on-chain\x20differs\x20(see\x20differences);\x20'+'\x27missing\x27\x20=\x20object\x20no\x20longer\x20exists\x20on-chain;\x20'+'\x27unreachable\x27\x20=\x20query\x20failed\x20(network\x20error\x20or\x20rate\x20limit).'),'differences':z['array'](z['object']({'field':z['string']()['describe']('Field\x20path\x20that\x20differs.'),'sqlite':z['unknown']()['describe']('Value\x20recorded\x20in\x20SQLite.'),'onchain':z['unknown']()['describe']('Value\x20observed\x20on-chain.')})['strict']())['optional']()['describe']('Per-field\x20differences\x20(only\x20for\x20status=\x27mismatched\x27).'),'bindings':z['object']({'machine':z['boolean'](),'permission':z['boolean'](),'buy_guard':z['boolean'](),'order_allocators':z['boolean']()})['strict']()['optional']()['describe']('Critical\x20binding\x20status\x20(only\x20for\x20Service\x20objects).\x20'+'Each\x20boolean\x20indicates\x20whether\x20the\x20binding\x20is\x20set\x20to\x20a\x20non-null\x20value\x20on-chain.'),'error':z['string']()['optional']()['describe']('Error\x20message\x20(only\x20for\x20status=\x27unreachable\x27).')})['strict']())['describe']('Per-object\x20verification\x20results.'),'summary':z['string']()['describe']('One-line\x20human-readable\x20summary.')})['strict'](),MachineGraphForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20name.'),'weight':z['number']()['describe']('Forward\x20weight\x20(for\x20weighted\x20threshold).'),'guard':z['string']()['nullable']()['describe']('Guard\x20object\x20address\x20if\x20the\x20forward\x20is\x20guard-gated,\x20else\x20null.'),'named_operator':z['string']()['nullable']()['describe']('Named\x20operator\x20if\x20set,\x20else\x20null.'),'permission_index':z['number']()['nullable']()['describe']('Permission\x20index\x20if\x20set,\x20else\x20null.')})['strict'](),MachineGraphEdgeSchema=z['object']({'from':z['string']()['describe']('Source\x20node\x20name\x20(prev_node).'),'to':z['string']()['describe']('Target\x20node\x20name\x20(next_node).'),'threshold':z['number']()['describe']('Minimum\x20weighted\x20forward\x20count\x20required\x20to\x20advance.'),'forwards':z['array'](MachineGraphForwardSchema)['describe']('Forwards\x20within\x20this\x20pair\x20—\x20each\x20is\x20an\x20advance\x20operation.')})['strict'](),MachineGraphNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name.'),'description':z['string']()['nullable']()['describe']('Node\x20description\x20if\x20set,\x20else\x20null.')})['strict'](),GetMachineGraphResultSchema=z['object']({'action':z['literal']('get_machine_graph'),'machineAddress':z['string']()['describe']('The\x20Machine\x20object\x20address.'),'machineName':z['string']()['nullable']()['describe']('The\x20Machine\x27s\x20local\x20name\x20(from\x20LocalMark)\x20if\x20available.'),'nodes':z['array'](MachineGraphNodeSchema)['describe']('Workflow\x20nodes\x20(states).'),'edges':z['array'](MachineGraphEdgeSchema)['describe']('Directed\x20edges\x20(pairs)\x20connecting\x20nodes.\x20Each\x20edge\x20has\x20a\x20threshold\x20and\x20forwards.'),'published':z['boolean']()['nullable']()['describe']('Whether\x20the\x20Machine\x20is\x20published\x20(locked\x20for\x20production).\x20null\x20=\x20unknown.'),'paused':z['boolean']()['nullable']()['describe']('Whether\x20the\x20Machine\x20is\x20paused\x20(not\x20generating\x20new\x20Progress).\x20null\x20=\x20unknown.'),'mermaid':z['string']()['describe']('Mermaid\x20stateDiagram-v2\x20string\x20visualizing\x20the\x20directed\x20graph.\x20Entry\x20nodes\x20start\x20from\x20[*].\x20Edge\x20labels\x20include\x20forward\x20name\x20+\x20threshold\x20+\x20guard\x20info.\x20Cycles\x20(revision\x20loops)\x20are\x20rendered\x20as\x20normal\x20edges.\x20Includes\x20a\x20color\x20legend\x20comment\x20block\x20+\x20BehaviorTree.CPP-style\x20color\x20annotations\x20(entry=green,\x20terminal=red,\x20revision=amber,\x20normal=blue).\x20Renderable\x20in\x20markdown\x20viewers.'),'tree_outline':z['string']()['describe']('Indented\x20Markdown\x20outline\x20of\x20the\x20directed\x20graph\x20(human-editable\x20format).\x20Lists\x20edges\x20as\x20outline\x20entries\x20with\x20forwards\x20nested\x20under\x20each\x20edge.\x20Includes\x20a\x20Backrefs\x20section\x20consolidating\x20incoming\x20edges\x20per\x20node\x20(editing\x20aid\x20—\x20answers\x20\x27who\x20transitions\x20INTO\x20node\x20X?\x27).\x20Bidirectional\x20with\x20parseMachineTreeIndented().\x20Includes\x20JSON\x20code\x20block\x20for\x20round-trip\x20safety.\x20Use\x20this\x20for\x20the\x20download\x20->\x20edit\x20->\x20republish\x20workflow.'),'ascii_art':z['string']()['describe']('ASCII\x20art\x20directed\x20graph\x20visualization\x20using\x20arrow\x20notation\x20(A\x20-forward->\x20B).\x20Cycle\x20(revision\x20loop)\x20and\x20terminal\x20annotations\x20included.\x20Terminal-friendly,\x20avoids\x20JSON\x20escaping\x20issues\x20that\x20affect\x20multi-line\x20Mermaid\x20strings.\x20Use\x20when\x20rendering\x20in\x20plain-text\x20contexts.'),'markmap':z['string']()['describe']('Markmap-compatible\x20Markdown\x20string\x20(heading\x20levels\x20represent\x20hierarchy).\x20Edge-centric\x20layout\x20with\x20forwards\x20nested\x20under\x20edges.\x20Renderable\x20by\x20VS\x20Code\x20Markmap\x20extension\x20or\x20markmap.js.\x20Provides\x20an\x20interactive\x20mind-map\x20view\x20of\x20the\x20workflow.')})['strict'](),GuardGraphNodeSchema=z['lazy'](()=>z['object']({'type':z['string']()['describe']('Guard\x20node\x20type\x20(logic_and,\x20query,\x20identifier,\x20context,\x20calc_*,\x20convert_*,\x20vec_*,\x20etc.).'),'nodes':z['array'](GuardGraphNodeSchema)['optional']()['describe']('Child\x20nodes\x20(for\x20logic_and/or,\x20calc_*,\x20vec_contains_*,\x20etc.).'),'node':GuardGraphNodeSchema['optional']()['describe']('Single\x20child\x20(for\x20logic_not,\x20convert_*,\x20value_type).'),'nodeLeft':GuardGraphNodeSchema['optional']()['describe']('Left\x20child\x20(for\x20vec_indexof_*).'),'nodeRight':GuardGraphNodeSchema['optional']()['describe']('Right\x20child\x20(for\x20vec_indexof_*).'),'query':z['union']([z['number'](),z['string']()])['optional']()['describe']('Query\x20instruction\x20ID\x20or\x20name\x20(for\x20query\x20nodes).'),'object':z['object']({'identifier':z['number']()['optional'](),'convert_witness':z['number']()['optional']()})['optional']()['describe']('Query\x20target\x20object\x20reference.'),'parameters':z['array'](GuardGraphNodeSchema)['optional']()['describe']('Query\x20parameters.'),'identifier':z['number']()['optional']()['describe']('Table\x20entry\x20index\x20(for\x20identifier\x20nodes).'),'context':z['string']()['optional']()['describe']('Context\x20type:\x20Signer,\x20Clock,\x20or\x20Guard.')})['strict']()),GuardTableEntrySchema=z['object']({'identifier':z['number']()['describe']('Table\x20entry\x20index\x20(0-255).'),'b_submission':z['boolean']()['describe']('Whether\x20this\x20entry\x20is\x20submitted\x20at\x20runtime.'),'value_type':z['union']([z['number'](),z['string']()])['describe']('Value\x20type\x20(numeric\x20code\x20or\x20name).'),'value':z['unknown']()['optional']()['describe']('Constant\x20value\x20(if\x20b_submission=false).'),'name':z['string']()['optional']()['describe']('Human-readable\x20name/description.')})['strict'](),GetGuardGraphResultSchema=z['object']({'action':z['literal']('get_guard_graph'),'guardAddress':z['string']()['describe']('The\x20Guard\x20object\x20address.'),'guardName':z['string']()['nullable']()['describe']('The\x20Guard\x27s\x20local\x20name\x20(from\x20LocalMark)\x20if\x20available.'),'root':GuardGraphNodeSchema['describe']('Root\x20computation\x20node\x20(returns\x20Bool).\x20The\x20tree\x20is\x20recursive\x20—\x20each\x20node\x20may\x20have\x20children.'),'table':z['array'](GuardTableEntrySchema)['describe']('Guard\x20data\x20table\x20entries\x20(constants\x20+\x20submission\x20slots).'),'rely':z['object']({'guards':z['array'](z['string']()),'logic_or':z['boolean']()['optional']()})['nullable']()['describe']('Rely\x20dependencies\x20(other\x20Guards\x20this\x20Guard\x20depends\x20on).\x20null\x20=\x20no\x20rely.'),'immutable':z['boolean']()['nullable']()['describe']('Whether\x20the\x20Guard\x20is\x20immutable\x20(frozen\x20for\x20verification).\x20null\x20=\x20unknown.'),'mermaid':z['string']()['describe']('Mermaid\x20flowchart\x20TD\x20string\x20visualizing\x20the\x20tree.\x20Node\x20shapes:\x20{}=decision\x20(logic_*),\x20[]=computation/query,\x20([])=leaf\x20(identifier),\x20{{}}=context.\x20Includes\x20a\x20color\x20legend\x20comment\x20block\x20+\x20BehaviorTree.CPP-style\x20color\x20annotations\x20(control=blue,\x20decision=amber,\x20computation=purple,\x20query=cyan,\x20leaf=gray,\x20context=green).'),'tree_outline':z['string']()['describe']('Indented\x20Markdown\x20outline\x20of\x20the\x20tree\x20(human-editable\x20format).\x20Bidirectional\x20with\x20parseGuardTreeIndented().\x20Includes\x20JSON\x20code\x20block\x20for\x20round-trip\x20safety.'),'ascii_art':z['string']()['describe']('ASCII\x20art\x20tree\x20visualization\x20using\x20box-drawing\x20characters\x20(+--\x20--,\x20|).\x20Table\x20summary\x20appended.\x20Terminal-friendly,\x20avoids\x20JSON\x20escaping\x20issues\x20that\x20affect\x20multi-line\x20Mermaid\x20strings.'),'markmap':z['string']()['describe']('Markmap-compatible\x20Markdown\x20string\x20(heading\x20levels\x20represent\x20tree\x20depth).\x20Root\x20->\x20branches\x20->\x20leaves\x20hierarchy.\x20Renderable\x20by\x20VS\x20Code\x20Markmap\x20extension\x20or\x20markmap.js.\x20Provides\x20an\x20interactive\x20mind-map\x20view\x20of\x20the\x20Guard\x20tree.')})['strict'](),PlanObjectEditResultSchema=z['object']({'action':z['literal']('plan_object_edit'),'plan_id':z['string']()['describe']('Unique\x20plan\x20ID\x20(UUID).\x20Pass\x20to\x20apply_object_edit\x20within\x2010\x20minutes\x20to\x20execute.'),'object_kind':z['enum'](['machine','guard'])['describe']('The\x20object\x20kind\x20that\x20was\x20edited.'),'object_address':z['string']()['describe']('The\x20on-chain\x20object\x20address\x20being\x20edited.'),'object_name':z['string']()['nullable']()['describe']('The\x20object\x27s\x20local\x20name\x20(from\x20LocalMark)\x20if\x20available.'),'expected_hash':z['string']()['describe']('SHA-256\x20hash\x20of\x20(current_onchain_state\x20+\x20edited_content).\x20Pass\x20to\x20apply_object_edit\x20as\x20expected_hash\x20for\x20stale-edit\x20detection.'),'diff':z['object']({'added':z['array'](z['string']())['describe']('List\x20of\x20added\x20items\x20(node\x20names,\x20edge\x20\x27from->to\x27,\x20table\x20identifiers,\x20etc.).'),'removed':z['array'](z['string']())['describe']('List\x20of\x20removed\x20items.'),'modified':z['array'](z['string']())['describe']('List\x20of\x20modified\x20items\x20with\x20a\x20brief\x20description\x20of\x20the\x20change.'),'summary':z['string']()['describe']('Human-readable\x20one-line\x20diff\x20summary\x20(e.g.\x20\x272\x20nodes\x20added,\x201\x20edge\x20removed,\x203\x20forwards\x20modified\x27).')})['describe']('Structured\x20diff\x20between\x20current\x20on-chain\x20state\x20and\x20edited\x20content.'),'warnings':z['array'](z['object']({'id':z['string']()['describe']('Warning\x20identifier\x20(e.g.\x20\x27W-01\x27).'),'description':z['string']()['describe']('What\x20the\x20warning\x20is\x20about.'),'impact':z['string']()['describe']('Potential\x20impact\x20if\x20ignored.')}))['describe']('Non-blocking\x20warnings\x20(the\x20edit\x20can\x20still\x20proceed,\x20but\x20review\x20is\x20recommended).'),'blocking_errors':z['array'](z['object']({'id':z['string']()['describe']('Error\x20identifier\x20(e.g.\x20\x27E-01\x27).'),'description':z['string']()['describe']('What\x20the\x20error\x20is.'),'impact':z['string']()['describe']('Why\x20this\x20blocks\x20execution.')}))['describe']('Blocking\x20errors\x20(the\x20edit\x20CANNOT\x20proceed\x20until\x20these\x20are\x20fixed).'),'can_apply':z['boolean']()['describe']('Whether\x20apply_object_edit\x20can\x20proceed.\x20false\x20if\x20blocking_errors\x20is\x20non-empty.'),'prepared_call':z['unknown']()['nullable']()['describe']('The\x20prepared\x20onchain_operations\x20call\x20data\x20(operation_type\x20+\x20data).\x20null\x20if\x20can_apply=false.\x20Pass\x20this\x20to\x20onchain_operations\x20to\x20execute\x20the\x20edit.'),'expires_at':z['string']()['describe']('ISO\x20timestamp\x20when\x20the\x20plan\x20expires\x20(10\x20minutes\x20from\x20creation).\x20After\x20expiry,\x20apply_object_edit\x20will\x20refuse\x20to\x20proceed.'),'summary':z['string']()['describe']('Human-readable\x20one-line\x20plan\x20summary.')})['strict'](),ApplyObjectEditResultSchema=z['object']({'action':z['literal']('apply_object_edit'),'plan_id':z['string']()['describe']('The\x20plan\x20ID\x20that\x20was\x20applied.'),'applied':z['boolean']()['describe']('Whether\x20the\x20plan\x20was\x20successfully\x20applied\x20(hash\x20matched\x20and\x20plan\x20was\x20fresh).'),'hash_match':z['boolean']()['describe']('Whether\x20the\x20expected_hash\x20matched\x20the\x20stored\x20plan\x20hash.\x20false\x20=\x20stale\x20edit\x20detected.'),'prepared_call':z['unknown']()['nullable']()['describe']('The\x20prepared\x20onchain_operations\x20call\x20data.\x20Pass\x20this\x20to\x20onchain_operations\x20to\x20execute\x20the\x20edit\x20on-chain.\x20null\x20if\x20applied=false.'),'error':z['string']()['nullable']()['describe']('Error\x20message\x20if\x20applied=false\x20(e.g.\x20\x27Plan\x20not\x20found\x27,\x20\x27Hash\x20mismatch\x20—\x20on-chain\x20state\x20changed\x27,\x20\x27Plan\x20expired\x27).\x20null\x20on\x20success.'),'next_step':z['string']()['describe']('Instructions\x20for\x20the\x20next\x20step\x20(typically\x20\x27Pass\x20prepared_call\x20to\x20onchain_operations\x20to\x20execute\x20the\x20edit\x20on-chain\x27).')})['strict'](),PatchMachineNodesResultSchema=z['object']({'action':z['literal']('patch_machine_nodes'),'machine_address':z['string']()['describe']('The\x20Machine\x20object\x20address\x20being\x20patched.'),'machine_name':z['string']()['nullable']()['describe']('The\x20Machine\x27s\x20local\x20name\x20(from\x20LocalMark)\x20if\x20available.'),'operations_applied':z['number']()['describe']('Number\x20of\x20patch\x20operations\x20successfully\x20applied.'),'operations_failed':z['array'](z['object']({'operation':z['string']()['describe']('The\x20original\x20operation\x20string.'),'error':z['string']()['describe']('Why\x20the\x20operation\x20failed.')}))['describe']('Operations\x20that\x20failed\x20parse/apply\x20(not\x20applied).\x20Also\x20surfaced\x20as\x20E-OP\x20entries\x20in\x20blocking_errors\x20for\x20schema\x20symmetry\x20with\x20plan_object_edit.'),'patched_nodes':z['array'](z['unknown']())['describe']('The\x20patched\x20Machine\x20nodes\x20(after\x20applying\x20all\x20successful\x20operations).'),'patched_edges':z['array'](z['unknown']())['describe']('The\x20patched\x20Machine\x20edges\x20(after\x20applying\x20all\x20successful\x20operations).'),'diff':z['object']({'added':z['array'](z['string']())['describe']('List\x20of\x20added\x20items.'),'removed':z['array'](z['string']())['describe']('List\x20of\x20removed\x20items.'),'modified':z['array'](z['string']())['describe']('List\x20of\x20modified\x20items.'),'summary':z['string']()['describe']('Human-readable\x20one-line\x20diff\x20summary.')})['describe']('Diff\x20between\x20original\x20and\x20patched\x20Machine.'),'warnings':z['array'](z['object']({'id':z['string']()['describe']('Warning\x20identifier\x20(e.g.\x20\x27W-01\x27\x20unreachable\x20node,\x20\x27W-02\x27\x20self-loop).'),'description':z['string']()['describe']('What\x20the\x20warning\x20is\x20about.'),'impact':z['string']()['describe']('Potential\x20impact\x20if\x20ignored.')}))['describe']('Non-blocking\x20warnings\x20from\x20validateMachine\x20(W-01\x20unreachable,\x20W-02\x20self-loop).'),'blocking_errors':z['array'](z['object']({'id':z['string']()['describe']('Error\x20identifier\x20(e.g.\x20\x27E-01\x27\x20no\x20entry\x20forward,\x20\x27E-02\x27\x20orphan\x20endpoint,\x20\x27E-03\x27\x20too\x20many\x20nodes,\x20\x27E-OP\x27\x20operation\x20failed).'),'description':z['string']()['describe']('What\x20the\x20error\x20is.'),'impact':z['string']()['describe']('Why\x20this\x20blocks\x20execution.')}))['describe']('Blocking\x20errors\x20(operation\x20failures\x20+\x20structural\x20validation).\x20The\x20patch\x20CANNOT\x20proceed\x20until\x20these\x20are\x20fixed.\x20Empty\x20array\x20when\x20can_apply=true.'),'can_apply':z['boolean']()['describe']('Whether\x20the\x20patch\x20can\x20be\x20applied\x20on-chain.\x20false\x20if\x20any\x20blocking_errors\x20exist\x20(operation\x20failures\x20or\x20validateMachine\x20blocking\x20errors).'),'prepared_call':z['unknown']()['nullable']()['describe']('The\x20prepared\x20onchain_operations\x20call\x20data.\x20null\x20if\x20can_apply=false.'),'summary':z['string']()['describe']('Human-readable\x20one-line\x20patch\x20summary.')})['strict'](),PatchGuardTreeResultSchema=z['object']({'action':z['literal']('patch_guard_tree'),'guard_address':z['string']()['describe']('The\x20Guard\x20object\x20address\x20being\x20patched.'),'guard_name':z['string']()['nullable']()['describe']('The\x20Guard\x27s\x20local\x20name\x20(from\x20LocalMark)\x20if\x20available.'),'operations_applied':z['number']()['describe']('Number\x20of\x20Guard\x20patch\x20operations\x20successfully\x20applied.'),'operations_failed':z['array'](z['object']({'operation':z['string']()['describe']('The\x20original\x20operation\x20string.'),'error':z['string']()['describe']('Why\x20the\x20operation\x20failed.')}))['describe']('Operations\x20that\x20failed\x20parse/apply\x20(not\x20applied).\x20Also\x20surfaced\x20as\x20E-OP\x20entries\x20in\x20blocking_errors.'),'patched_root':z['unknown']()['describe']('The\x20patched\x20Guard\x20root\x20node\x20(after\x20applying\x20all\x20successful\x20operations).\x20For\x20set_root,\x20this\x20is\x20the\x20new\x20root;\x20otherwise\x20the\x20original\x20root\x20unchanged.'),'patched_table':z['array'](z['unknown']())['describe']('The\x20patched\x20Guard\x20table\x20entries\x20(after\x20applying\x20all\x20successful\x20table\x20operations).'),'patched_rely':z['unknown']()['nullable']()['describe']('The\x20patched\x20rely\x20field\x20(cross-guard\x20composition).\x20null\x20if\x20rely\x20was\x20cleared\x20or\x20never\x20set.\x20Shape:\x20{\x20guards:\x20string[],\x20logic_or?:\x20boolean\x20}.'),'diff':z['object']({'added':z['array'](z['string']())['describe']('List\x20of\x20added\x20items\x20(table\x20entries,\x20tree\x20nodes).'),'removed':z['array'](z['string']())['describe']('List\x20of\x20removed\x20items.'),'modified':z['array'](z['string']())['describe']('List\x20of\x20modified\x20items\x20with\x20a\x20brief\x20description\x20of\x20the\x20change.'),'summary':z['string']()['describe']('Human-readable\x20one-line\x20diff\x20summary.')})['describe']('Diff\x20between\x20original\x20and\x20patched\x20Guard\x20(root\x20tree\x20+\x20table).'),'warnings':z['array'](z['object']({'id':z['string']()['describe']('Warning\x20identifier\x20(e.g.\x20\x27W-01\x27\x20dead\x20submission\x20slot,\x20\x27W-02\x27\x20orphan\x20table\x20entry,\x20\x27W-03\x27\x20deep\x20nesting).'),'description':z['string']()['describe']('What\x20the\x20warning\x20is\x20about.'),'impact':z['string']()['describe']('Potential\x20impact\x20if\x20ignored.')}))['describe']('Non-blocking\x20warnings\x20from\x20validateGuard\x20(W-01\x20dead\x20submission\x20slot,\x20W-02\x20orphan\x20table\x20entry,\x20W-03\x20deep\x20nesting\x20>\x2016).'),'blocking_errors':z['array'](z['object']({'id':z['string']()['describe']('Error\x20identifier\x20(e.g.\x20\x27E-01\x27\x20no\x20root,\x20\x27E-02\x27\x20identifier\x20not\x20in\x20table,\x20\x27E-03\x27\x20table\x20too\x20large,\x20\x27E-OP\x27\x20operation\x20failed).'),'description':z['string']()['describe']('What\x20the\x20error\x20is.'),'impact':z['string']()['describe']('Why\x20this\x20blocks\x20execution.')}))['describe']('Blocking\x20errors\x20(operation\x20failures\x20+\x20structural\x20validation).\x20The\x20patch\x20CANNOT\x20proceed\x20until\x20these\x20are\x20fixed.\x20Empty\x20array\x20when\x20can_apply=true.'),'can_apply':z['boolean']()['describe']('Whether\x20the\x20patch\x20can\x20be\x20applied\x20on-chain.\x20false\x20if\x20any\x20blocking_errors\x20exist.'),'prepared_call':z['unknown']()['nullable']()['describe']('The\x20prepared\x20onchain_operations\x20call\x20data\x20(operation_type=\x27guard\x27).\x20null\x20if\x20can_apply=false.'),'summary':z['string']()['describe']('Human-readable\x20one-line\x20patch\x20summary.')})['strict'](),CloneProjectToNetworkResultSchema=z['object']({'action':z['literal']('clone_project_to_network'),'new_project_id':z['string']()['describe']('The\x20newly\x20created\x20project\x27s\x20UUID.'),'new_prefix':z['string']()['describe']('New\x20project\x20prefix\x20(\x27<source_prefix>_<target_network>\x27).'),'target_network':z['enum'](['testnet','mainnet'])['describe']('The\x20target\x20network\x20the\x20new\x20project\x20is\x20bound\x20to.'),'cloned_objects_count':z['number']()['describe']('Number\x20of\x20object\x20metadata\x20entries\x20copied\x20(objectAddress\x20is\x20empty\x20—\x20await\x20on-chain\x20deployment).'),'message':z['string']()['describe']('Human-readable\x20summary\x20of\x20the\x20clone\x20operation.'),'next_steps':z['string']()['describe']('Instructions\x20for\x20deploying\x20the\x20cloned\x20objects\x20on\x20the\x20target\x20network.')})['strict'](),MigrateNetworkResultSchema=z['object']({'action':z['literal']('migrate_network'),'new_project_id':z['string']()['describe']('The\x20newly\x20created\x20project\x27s\x20UUID.'),'new_prefix':z['string']()['describe']('New\x20project\x20prefix\x20(\x27<source_prefix>_<target_network>\x27).'),'target_network':z['enum'](['testnet','mainnet'])['describe']('The\x20target\x20network\x20the\x20new\x20project\x20is\x20bound\x20to.'),'cloned_objects_count':z['number']()['describe']('Number\x20of\x20object\x20metadata\x20entries\x20copied\x20(objectAddress\x20is\x20empty\x20—\x20await\x20on-chain\x20deployment).'),'message':z['string']()['describe']('Human-readable\x20summary\x20of\x20the\x20migration\x20operation.'),'next_steps':z['string']()['describe']('Instructions\x20for\x20deploying\x20the\x20migrated\x20objects\x20on\x20the\x20target\x20network.')})['strict'](),MigrationPlanStepSchema=z['object']({'step':z['number']()['describe']('Step\x20number\x20(1-5).'),'status':z['enum'](['completed','pending_user_action'])['describe']('Whether\x20this\x20step\x20is\x20done\x20or\x20awaits\x20user\x20action.'),'action':z['string']()['describe']('The\x20action\x20to\x20perform\x20(e.g.\x20\x27clone_project_to_network\x27,\x20\x27onchain_operations\x27,\x20\x27local_mark_operation\x27,\x20\x27update_project\x27,\x20\x27build_graph\x27).'),'description':z['string']()['describe']('Human-readable\x20description\x20of\x20what\x20this\x20step\x20does.'),'result':z['string']()['optional']()['describe']('Result\x20of\x20this\x20step\x20(only\x20present\x20when\x20status=\x27completed\x27).'),'deployment_plan':z['array'](z['object']({'order':z['number'](),'object_type':z['string'](),'object_name':z['string'](),'operation_type':z['string'](),'localmark_name':z['string'](),'note':z['string']()}))['optional']()['describe']('Deployment\x20plan\x20for\x20step\x202\x20(on-chain\x20deployment).\x20Only\x20present\x20for\x20step\x202.'),'names_to_register':z['array'](z['string']())['optional']()['describe']('LocalMark\x20names\x20to\x20re-register\x20on\x20mainnet.\x20Only\x20present\x20for\x20step\x203.'),'critical_note':z['string']()['optional']()['describe']('Critical\x20note\x20for\x20this\x20step.')})['strict'](),MigrateToMainnetResultSchema=z['object']({'action':z['literal']('migrate_to_mainnet'),'migration_status':z['string']()['describe']('Overall\x20migration\x20status\x20(e.g.\x20\x27step_1_complete_steps_2_5_pending_user_action\x27).'),'source_project':z['object']({'prefix':z['string'](),'network':z['string'](),'preserved':z['boolean']()['describe']('Whether\x20the\x20source\x20project\x20is\x20preserved\x20unchanged\x20(always\x20true).')})['strict'](),'target_project':z['object']({'prefix':z['string'](),'project_id':z['string'](),'network':z['string'](),'cloned_objects_count':z['number']()})['strict'](),'key_principle':z['string']()['describe']('Explains\x20that\x20testnet/mainnet\x20are\x20different\x20projects\x20with\x20different\x20addresses\x20for\x20same\x20names.'),'payment_token_decision':z['object']({'round':z['string']()['describe']('Decision\x20round\x20identifier\x20(e.g.\x20\x27M1\x27).'),'question':z['string']()['describe']('Question\x20asking\x20whether\x20to\x20keep\x20WOW\x20or\x20switch\x20to\x20a\x20stablecoin\x20when\x20migrating\x20testnet\x20→\x20mainnet.'),'options':z['array'](z['string']())['describe']('Available\x20choices\x20(e.g.\x20Keep\x20WOW\x20/\x20Switch\x20to\x20USDT\x20/\x20Switch\x20to\x20USDC\x20/\x20Other\x20stablecoin).'),'default':z['string']()['optional']()['describe']('Recommended\x20default\x20choice\x20(Keep\x20WOW).'),'note':z['string']()['optional']()['describe']('Guidance:\x20mainnet\x20stablecoins\x20are\x20available\x20via\x20the\x20ETH\x20mainnet\x20cross-chain\x20bridge;\x20if\x20switching,\x20update\x20Service/Treasury/Allocation\x20type_parameter\x20before\x20publishing.')})['strict']()['describe']('Payment-token\x20migration\x20decision.\x20testnet\x20recommends\x20WOW;\x20mainnet\x20supports\x20USDT\x20and\x20other\x20stablecoins\x20via\x20the\x20ETH\x20mainnet\x20bridge.\x20Must\x20be\x20resolved\x20BEFORE\x20step\x202\x20(on-chain\x20deployment)\x20because\x20the\x20Service/Treasury/Allocation\x20type_parameter\x20determines\x20the\x20payment\x20token.'),'migration_plan':z['array'](MigrationPlanStepSchema)['describe']('5-step\x20migration\x20plan.\x20Step\x201\x20is\x20completed;\x20steps\x202-5\x20require\x20user\x20action.'),'summary':z['string']()['describe']('Human-readable\x20summary\x20of\x20the\x20migration.')})['strict'](),RecommendIndustryResultSchema=z['object']({'action':z['literal']('recommend_industry'),'intent':z['string']()['describe']('The\x20intent\x20text\x20used\x20for\x20inference.'),'inferred_traits':z['record'](z['string'](),z['unknown']())['describe']('10-dim\x20industry\x20traits\x20inferred\x20from\x20intent.'),'inference_confidence':z['number']()['describe']('Inference\x20confidence\x200-1\x20(matched\x20trait\x20count\x20/\x2010).'),'matched_keywords':z['array'](z['string']())['describe']('Keywords\x20that\x20triggered\x20trait\x20inference.'),'recommendations':z['array'](RecommendedIndustryItemSchema)['describe']('Top-3\x20similar\x20industries\x20+\x20reference\x20examples.'),'hint':z['string']()['describe']('How\x20to\x20apply\x20the\x20recommendation\x20(create_project\x20with\x20project_industry).')})['strict'](),ModeSummarySchema=z['object']({'name':z['string'](),'display_name':z['string'](),'version':z['string'](),'derived_from':z['string']()['nullable']()['describe']('Source\x20builtin\x20mode\x20(derive_user_mode)\x20or\x20null.'),'owner':z['string']()['optional']()['describe']('Mode\x20owner\x20(custom\x20modes\x20only).'),'key_risk':z['string'](),'machine_nodes':z['array'](z['string']())['describe']('Machine\x20shape\x20node\x20names.'),'similar_industries':z['array'](z['string']())['optional'](),'evolution_history':z['array'](z['object']({'version':z['string'](),'changed_at':z['number'](),'changes':z['array'](z['string']())})['strict']())['optional']()})['strict'](),ListModesResultSchema=z['object']({'action':z['literal']('list_modes'),'builtin_modes':z['array'](ModeSummarySchema)['describe']('Builtin\x20industry\x20modes\x20(use\x20name\x20as\x20project_industry).'),'user_modes':z['array'](ModeSummarySchema)['describe']('Caller\x27s\x20custom\x20modes\x20(derive/evolve/register).'),'owner':z['string']()['describe']('Owner\x20key\x20for\x20custom\x20modes\x20(local\x20single-user).'),'hint':z['string']()})['strict'](),DeriveUserModeResultSchema=z['object']({'action':z['literal']('derive_user_mode'),'mode':ModeSummarySchema['describe']('The\x20derived\x20(and\x20registered)\x20custom\x20mode.'),'hint':z['string']()})['strict'](),EvolveUserModeResultSchema=z['object']({'action':z['literal']('evolve_user_mode'),'mode':ModeSummarySchema['describe']('The\x20evolved\x20custom\x20mode\x20(version\x20bumped).'),'hint':z['string']()})['strict'](),RegisterUserModeResultSchema=z['object']({'action':z['literal']('register_user_mode'),'mode':ModeSummarySchema['describe']('The\x20registered\x20fully-custom\x20mode.'),'hint':z['string']()})['strict'](),UnregisterUserModeResultSchema=z['object']({'action':z['literal']('unregister_user_mode'),'removed':z['literal'](!![]),'mode_name':z['string']()})['strict'](),MetricInfoSchema=z['object']({'metric_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'type':z['enum'](['risk','benefit']),'scale':z['enum'](['level','numeric','percentage']),'weight':z['number'](),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict'](),RegisterCustomMetricResultSchema=z['object']({'action':z['literal']('register_custom_metric'),'metric':MetricInfoSchema['describe']('The\x20registered\x20custom\x20metric\x20(globally\x20effective).'),'hint':z['string']()})['strict'](),ConstraintInfoSchema=z['object']({'constraint_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'rule':z['record'](z['string'](),z['unknown']())['describe']('Constraint\x20rule\x20(4\x20types\x20—\x20see\x20constraint_rule\x20input).'),'severity':z['enum'](['hard','soft']),'on_violation':z['enum'](['block','warn','log']),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict'](),RegisterCustomConstraintResultSchema=z['object']({'action':z['literal']('register_custom_constraint'),'constraint':ConstraintInfoSchema['describe']('The\x20registered\x20custom\x20constraint.'),'hint':z['string']()})['strict'](),ListMetricsConstraintsResultSchema=z['object']({'action':z['literal']('list_metrics_constraints'),'metrics':z['array'](MetricInfoSchema),'constraints':z['array'](ConstraintInfoSchema),'hint':z['string']()})['strict'](),KeywordMatchSchema=z['object']({'keyword':z['string'](),'category':z['string'](),'matched_objects':z['array'](z['string']()),'required_level':z['enum'](['R','C','OPTIONAL']),'match_count':z['number']()})['strict'](),AnalyzeIntentResultSchema=z['object']({'action':z['literal']('analyze_intent'),'intent_parsed':z['object']({'primary_object':z['string']()['describe']('Primary\x20object\x20inferred\x20from\x20the\x20intent\x20keywords.'),'secondary_objects':z['array'](z['string']())['describe']('Supporting\x20objects\x20typically\x20required\x20alongside\x20the\x20primary\x20one.'),'detected_scenes':z['array'](z['object']({'object':z['string'](),'scene_id':z['string']()['describe']('Free-form\x20scene\x20id,\x20e.g.\x20\x27retail\x27,\x20\x27rental_return\x27.')})['strict']())['describe']('Scenes\x20detected\x20from\x20the\x20intent\x20(used\x20for\x20template\x20selection).'),'industry':z['string']()['describe']('Industry\x20mode\x20resolved\x20from\x20the\x20intent\x20(defaults\x20to\x20\x27general\x27).'),'keyword_matches':z['array'](KeywordMatchSchema)['describe']('All\x20keyword\x20matches\x20that\x20drove\x20the\x20identification.')})['strict'](),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown'](),'completeness':z['unknown'](),'missing_dimensions':z['array'](z['string']())})['strict']())['describe']('Per-object\x20puzzle\x20snapshot,\x20keyed\x20by\x20object_type.\x20Pass\x20this\x20UNCHANGED\x20to\x20aggregate_risks.'),'overall_completeness':z['enum'](['complete','partial','empty']),'next_step':z['string']()['describe']('Human-readable\x20suggestion\x20for\x20the\x20next\x20puzzle\x20step.'),'recommended_creation_order':z['array'](z['string']())['describe']('Recommended\x20object\x20creation\x20order\x20(dependency\x20topology).'),'warnings':z['array'](z['string']())})['strict'](),AggregatedRiskSchema=z['object']({'risk_rule_id':z['string']()['describe']('Unified\x20risk\x20rule\x20id,\x20e.g.\x20\x27R-S-01\x27.'),'object_type':z['string'](),'entry_id':z['string']()['describe']('Object\x20entry_id\x20(\x27*\x27\x20when\x20cross-object).'),'severity':z['enum'](['CRITICAL','HIGH','MEDIUM','LOW','INFO']),'message':z['string'](),'fix_suggestion':z['string'](),'details':z['object']({'field_path':z['string']()['optional'](),'actual_value':z['unknown']()['optional'](),'expected_value':z['unknown']()['optional'](),'rule_source':z['string']()['optional']()})['strict']()['optional']()})['strict'](),SafetyFindingSchema=z['object']({'rule_id':z['string']()['describe']('Safety\x20rule\x20id\x20(e.g.\x20\x27REUSE-SERVICE-01\x27,\x20\x27IMMUT-001\x27).'),'severity':z['enum'](['info','warn']),'message':z['string']()})['strict'](),AggregateRisksResultSchema=z['object']({'action':z['literal']('aggregate_risks'),'namespace':z['object']({'prefix':z['string'](),'version':z['string'](),'industry':z['string']()['optional']()})['strict'](),'findings':z['array'](AggregatedRiskSchema)['describe']('All\x20risks\x20found,\x20sorted\x20(CRITICAL\x20first).'),'severity_summary':z['record'](z['string'](),z['number']())['describe']('Counts\x20keyed\x20by\x20severity.'),'status':z['enum'](['RISK_PASSED','RISK_BLOCKED','RISK_PENDING_CONFIRM','RISK_CANCELLED'])['describe']('Aggregated\x20status\x20(62-spec\x20§3.2).\x20RISK_BLOCKED\x20=\x20CRITICAL\x20or\x20above-threshold\x20risks\x20present.'),'pending_confirmations':z['array'](z['object']({'risk_rule_id':z['string'](),'description':z['string'](),'fix_suggestion':z['string'](),'object_type':z['string'](),'entry_id':z['string']()})['strict']())['optional']()['describe']('HIGH\x20risks\x20awaiting\x20user\x20confirmation\x20(only\x20when\x20status=\x27RISK_PENDING_CONFIRM\x27).'),'calibrated_at':z['number']()['describe']('Calibration\x20timestamp\x20(ms).'),'fix_suggestions_grouped':z['record'](z['string'](),z['array'](z['object']({'risk_rule_id':z['string'](),'severity':z['enum'](['CRITICAL','HIGH','MEDIUM','LOW','INFO']),'message':z['string'](),'fix_suggestion':z['string'](),'entry_id':z['string']()})['strict']()))['optional']()['describe']('Fix\x20suggestions\x20grouped\x20by\x20object_type.'),'safety_findings':z['array'](SafetyFindingSchema)['optional']()['describe']('OBJECT_REUSE\x20/\x20IMMUTABILITY\x20findings\x20from\x20safety-rules\x20(only\x20when\x20planned_objects\x20/\x20planned_operations\x20were\x20provided).'),'intent_echo':z['object']({'primary_object':z['string'](),'industry':z['string'](),'overall_completeness':z['enum'](['complete','partial','empty'])})['strict']()['optional']()['describe']('Echo\x20of\x20the\x20auto-run\x20analyze_intent\x20(only\x20when\x20\x27puzzles\x27\x20was\x20omitted\x20and\x20\x27intent\x27\x20was\x20used).'),'warnings':z['array'](z['string']())})['strict'](),TraceSubstepsResultSchema=z['object']({'action':z['literal']('trace_substeps'),'namespace':z['object']({'prefix':z['string'](),'version':z['string']()})['strict'](),'network':z['enum'](['testnet','mainnet']),'coherent':z['boolean']()['describe']('True\x20when\x20no\x20dangling\x20inputs,\x20no\x20cycles,\x20no\x20missing\x20outputs,\x20no\x20cross-step\x20breaks.'),'dangling_inputs':z['array'](z['object']({'substep_id':z['string'](),'missing_ref':z['string'](),'field_path':z['string']()})['strict']())['describe']('Input\x20refs\x20pointing\x20to\x20non-existent\x20substeps.'),'circular_refs':z['array'](z['object']({'cycle':z['array'](z['string']())})['strict']())['describe']('Substep\x20id\x20cycles\x20(when\x20present,\x20topological_order\x20is\x20empty).'),'missing_outputs':z['array'](z['object']({'substep_id':z['string'](),'expected_field':z['string'](),'dependent_substeps':z['array'](z['string']())})['strict']())['describe']('Substeps\x20that\x20should\x20have\x20produced\x20a\x20field\x20but\x20did\x20not.'),'cross_step_breaks':z['array'](z['object']({'source_step':z['string'](),'target_step':z['string'](),'missing_field':z['string']()})['strict']())['describe']('Upstream\x20step\x20failed\x20→\x20downstream\x20cannot\x20proceed.'),'step_details':z['array'](z['object']({'parent_step':z['string'](),'total_substeps':z['number'](),'successful':z['number'](),'failed':z['number'](),'pending':z['number'](),'skipped':z['number'](),'substep_ids':z['array'](z['string']())})['strict']())['describe']('Per-step\x20summary,\x20keyed\x20by\x20parent_step.'),'topological_order':z['array'](z['string']())['describe']('Topological\x20order\x20of\x20substep\x20ids\x20(empty\x20when\x20a\x20cycle\x20exists).'),'d10_check':z['object']({'check_id':z['literal']('D-10'),'description':z['string'](),'status':z['enum'](['PASS','FAIL','WARN']),'notes':z['array'](z['string']())})['strict']()['describe']('D-10\x20substep\x20linkage\x20completeness\x20verdict.')})['strict'](),MerchantGuideResultSchema=z['object']({'action':z['literal']('merchant_guide'),'current_step':z['number']()['describe']('Furthest\x20wizard\x20step\x20reached\x20(2\x20=\x20awaiting\x20industry\x20confirmation;\x209\x20=\x20harness\x20issues\x20found;\x2010\x20=\x20plan\x20ready).'),'step_name':z['string'](),'guide_state':z['object']({'intent_text':z['string'](),'confirmed_industry':z['string']()['optional'](),'currency':z['string']()['optional'](),'deliverables':z['array'](z['unknown']())['optional'](),'payment_override':z['record'](z['string'](),z['unknown']())['optional'](),'trust_override':z['record'](z['string'](),z['unknown']())['optional'](),'adopted_module_ids':z['array'](z['string']())['optional']()})['strict']()['describe']('Wizard\x20state\x20—\x20pass\x20back\x20UNCHANGED\x20on\x20the\x20next\x20merchant_guide\x20call.'),'intent_draft':z['unknown']()['optional']()['describe']('Step\x201-2\x20only:\x20BusinessIntent\x20draft\x20inferred\x20from\x20the\x20description.'),'industry_options':z['object']({'inferred':z['string'](),'confidence':z['number'](),'similar':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x202\x20only:\x20industry\x20candidates\x20awaiting\x20merchant\x20confirmation.'),'intent':z['unknown']()['optional']()['describe']('Steps\x207-10:\x20final\x20BusinessIntent\x20after\x20merchant\x20overrides.'),'adopted_modules':z['array'](z['object']({'id':z['string'](),'name':z['string'](),'description':z['string'](),'requires_keeper':z['boolean'](),'keeper_hint':z['string']()['optional'](),'user_protections':z['array'](z['string']()),'merchant_obligations':z['array'](z['string']())})['strict']())['optional']()['describe']('Steps\x206-10:\x20adopted\x20business\x20modules\x20with\x20protections/obligations.'),'blueprint':z['object']({'nodes':z['array'](z['object']({'id':z['string'](),'type':z['string'](),'purpose':z['string']()})['strict']()),'edges':z['array'](z['object']({'from':z['string'](),'to':z['string'](),'relation':z['string'](),'required':z['boolean']()})['strict']())})['strict']()['optional']()['describe']('Step\x207:\x20semantic\x20object\x20graph\x20(nodes\x20+\x20edges).'),'evaluation_preview':z['unknown']()['optional']()['describe']('Step\x208:\x20estimated\x20risk/trust/completeness\x20scores\x20+\x20key\x20risks\x20+\x20module\x20boosts.'),'graph_validation':z['object']({'valid':z['boolean'](),'hard_violations':z['array'](z['object']({'id':z['string'](),'description':z['string'](),'fix':z['string']()['optional']()})['strict']()),'soft_notes':z['array'](z['object']({'id':z['string'](),'description':z['string']()})['strict']())})['strict']()['optional']()['describe']('Step\x208:\x20structural\x20validation\x20of\x20the\x20semantic\x20graph.'),'harness_check':z['object']({'module_constraints':z['array'](z['object']({'module':z['string'](),'plan_satisfied':z['boolean'](),'missing':z['array'](z['string']())['optional'](),'reason':z['string']()['optional'](),'estimated_score_boost':z['number']()})['strict']()),'blocking_issues':z['array'](z['object']({'module':z['string'](),'missing_constraints':z['array'](z['string']())['optional'](),'fix':z['string']()['optional']()})['strict']()),'deploy_time_checks':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x209:\x20module\x20constraint\x20check\x20at\x20blueprint\x20stage\x20+\x20deploy-time\x20checklist.'),'game_theory':z['object']({'summary':z['string'](),'coverage':z['string']()['describe']('Covered/total\x20scenario\x20count,\x20e.g.\x20\x274/5\x27.'),'exposed_scenarios':z['array'](z['string']()),'wow_alignments':z['array'](z['string']())['describe']('Active\x20WOW\x20mechanisms\x20aligning\x20merchant/user\x20incentives.'),'scenarios':z['array'](z['object']({'scenario':z['string'](),'covered':z['boolean'](),'conflict':z['string'](),'user_protection':z['string'](),'evaluation_metric':z['string'](),'recommendation':z['string']()['optional']()})['strict']())})['strict']()['optional']()['describe']('Step\x209\x20(GLM6/93\x20§2.3):\x20merchant-user\x20adversarial\x20scenario\x20coverage.\x205\x20canonical\x20scenarios\x20checked\x20against\x20the\x20blueprint;\x20exposed\x20scenarios\x20include\x20fix\x20recommendations.'),'creation_plan':z['array'](z['object']({'order':z['number'](),'node_id':z['string'](),'object_type':z['string'](),'suggested_name':z['string'](),'depends_on':z['array'](z['string']()),'operation_hint':z['string']()})['strict']())['optional']()['describe']('Step\x2010:\x20topologically\x20ordered\x20creation\x20plan.\x20NOT\x20executed\x20—\x20materialize\x20via\x20create_project\x20+\x20onchain_operations.'),'warnings':z['array'](z['string']()),'next_action':z['string']()['describe']('Human-readable\x20guidance\x20for\x20the\x20next\x20call.')})['strict'](),RadarMonitorAlertSchema=z['object']({'id':z['string'](),'category':z['enum'](['progress_stall','compensation_drop','compensation_insufficient','messenger_timeout','user_action_required','review_window','arb_window','refund_received','anomaly']),'severity':z['enum'](['info','warning','critical']),'title':z['string'](),'message':z['string'](),'action':z['string']()['optional']()['describe']('Suggested\x20next\x20step.'),'timestamp':z['number'](),'order_id':z['string']()['optional'](),'service_id':z['string']()['optional'](),'node':z['string']()['optional'](),'metric':z['object']({'label':z['string'](),'value':z['number'](),'threshold':z['number']()['optional'](),'unit':z['string']()['optional']()})['strict']()['optional']()})['strict'](),RadarForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':z['enum'](['order_holder','permission','named_operator','not_available'])['describe']('How\x20this\x20account\x20may\x20execute\x20it\x20(not_available\x20if\x20it\x20can\x27t).'),'permission_index':z['number']()['optional']()['describe']('Permission\x20index\x20required\x20(if\x20permission-gated).'),'named_operator':z['string']()['optional']()['describe']('Named\x20operator\x20(LocalMark\x20name)\x20required\x20(if\x20named-gated).'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'semantics':z['string']()['describe']('Human\x20explanation\x20of\x20what\x20executing\x20this\x20forward\x20means.'),'consequence':z['string']()['optional']()['describe']('Consequence\x20hint\x20(completion\x20fund-release\x20/\x20refund\x20path).'),'weight':z['number']()['optional']()['describe']('Forward\x20weight\x20(accumulates\x20toward\x20the\x20pair\x27s\x20threshold).')})['strict'](),RadarPendingClaimSchema=z['object']({'kind':z['enum'](['reward','discount','compensation','rating']),'label':z['string'](),'how':z['string']()['describe']('How\x20to\x20claim\x20(tool\x20+\x20operation\x20hint).')})['strict'](),InterestAnalysisSchema=z['object']({'fund_flow':z['array'](z['string']())['describe']('Where\x20money\x20sits\x20and\x20what\x20releases\x20it\x20(escrow,\x20Allocation\x20waterfall,\x20compensation_fund,\x20or\x20the\x20role\x27s\x20non-settlement\x20stake).'),'responsibility':z['array'](z['string']())['describe']('What\x20this\x20account\x20is\x20semantically\x20liable\x20for\x20right\x20now\x20(permission-gated\x20forwards,\x20guard\x20obligations).'),'leverage':z['array'](z['string']())['describe']('Actions\x20serving\x20the\x20role\x27s\x20own\x20interest\x20(settlement\x20speed,\x20evidence\x20pre-upload,\x20Messenger\x20nudge,\x20arbitration).\x20Informational\x20only.'),'stakes':z['array'](z['string']())['describe']('Downside\x20exposure\x20(arbitration\x20indemnity,\x20arb-loss\x20record,\x20stall\x20statistics,\x20non-delivery,\x20refund\x20aftermath).'),'summary':z['string']()['describe']('One-paragraph\x20role-interest\x20summary.')})['strict'](),OrderRadarResultSchema=z['object']({'account':z['string'](),'progress':z['string'](),'order':z['string']()['optional'](),'current_node':z['string']()['describe']('Current\x20node\x20name\x20(\x27\x27\x20=\x20entry,\x20not\x20yet\x20started).'),'perspective':z['enum'](['merchant','customer','prospect','supplier','collaborator','arbitrator'])['describe']('Derived\x20commercial\x20role\x20from\x20on-chain\x20data\x20(Order.builder\x20+\x20PermissionPerm\x20grants\x20+\x20named\x20operators),\x20never\x20caller-asserted.'),'collaborator_kind':z['enum'](['permission_entity','named_operator'])['optional']()['describe']('Collaborator\x20sub-kind\x20when\x20perspective\x20===\x20\x27collaborator\x27\x20(internal\x20staff\x20vs\x20external\x20operator).'),'roles':z['array'](z['object']({'label':z['string'](),'can_act_now':z['boolean']()})['strict']())['describe']('All\x20roles\x20this\x20account\x20holds\x20on\x20this\x20order\x27s\x20workflow.'),'operable':z['array'](RadarForwardSchema)['describe']('Forwards\x20THIS\x20account\x20can\x20execute\x20NOW\x20(branch\x20options\x20if\x20>1).'),'branch_choice':z['object']({'message':z['string'](),'options':z['array'](z['object']({'forward':z['string'](),'to_node':z['string'](),'consequence':z['string']()['optional']()})['strict']())})['strict']()['optional']()['describe']('Present\x20when\x20>1\x20operable\x20forward.\x20AI\x20MUST\x20present\x20options\x20neutrally;\x20the\x20role\x20decides.'),'waiting_on':z['array'](z['object']({'role':z['string'](),'forwards':z['array'](z['string']())})['strict']())['describe']('What\x20the\x20workflow\x20is\x20waiting\x20on\x20from\x20OTHER\x20roles.'),'pending_claims':z['array'](RadarPendingClaimSchema)['describe']('Unclaimed\x20benefits\x20/\x20post-purchase\x20actions.'),'interest_hints':z['array'](z['string']())['describe']('Perspective-specific\x20own-interest\x20hints\x20(fund-release\x20trigger,\x20settlement\x20cycle,\x20reputation).'),'workflow_unknown':z['boolean']()['describe']('True\x20when\x20Machine\x20data\x20was\x20unavailable\x20—\x20operable/waiting_on\x20unknown.'),'threshold':z['number']()['int']()['min'](0x1)['optional']()['describe']('Current\x20pair\x27s\x20threshold\x20(accumulated\x20forward\x20weights\x20to\x20advance).'),'interest_analysis':InterestAnalysisSchema['optional']()['describe']('Role-specific\x20interest\x20analysis\x20(fund_flow/responsibility/leverage/stakes)\x20—\x20present\x20when\x20order\x20data\x20is\x20available.\x20'+'merchant\x20→\x20merchant-interest;\x20supplier\x20→\x20supplier-interest;\x20collaborator\x20→\x20collaborator-interest;\x20customer\x20→\x20customer-interest.\x20'+'AI\x20MUST\x20surface\x20it\x20as\x20neutral\x20information;\x20the\x20role\x20decides.'),'summary':z['string']()['describe']('One-paragraph\x20AI-ready\x20summary.'),'attached_alerts':z['array'](RadarMonitorAlertSchema)['optional']()['describe']('Order-monitor\x20alerts\x20(stall/compensation/review-window)\x20when\x20radar_include_alerts=true.')})['strict'](),ParticipationRadarResultSchema=z['object']({'action':z['literal']('participation_radar'),'account':z['string']()['describe']('Resolved\x20account\x20address.'),'orders_analyzed':z['number'](),'actionable':z['array'](OrderRadarResultSchema)['describe']('Orders\x20where\x20the\x20account\x20can\x20act\x20NOW\x20or\x20has\x20pending\x20claims\x20(customer\x20perspective\x20first).'),'waiting':z['array'](OrderRadarResultSchema)['describe']('Orders\x20where\x20the\x20account\x20is\x20only\x20waiting\x20on\x20other\x20roles.'),'all_pending_claims':z['array'](RadarPendingClaimSchema['extend']({'progress':z['string']()}))['describe']('All\x20pending\x20claims\x20across\x20orders,\x20tagged\x20with\x20their\x20Progress\x20address.'),'unread_messages_total':z['number']()['describe']('Unread\x20Messenger\x20messages\x20total\x20across\x20all\x20conversations\x20of\x20the\x20radar\x20account\x20(local\x20encrypted\x20storage,\x20read-only\x20—\x20never\x20marks\x20messages\x20viewed;\x200\x20with\x20a\x20data_gaps\x20note\x20when\x20the\x20account\x20is\x20not\x20a\x20local\x20messenger\x20account).'),'data_gaps':z['array'](z['string']())['describe']('Graceful\x20degradation\x20notes\x20(e.g.\x20\x27Order\x200x…\x20not\x20found\x27,\x20\x27Machine\x20nodes\x20unavailable\x27).'),'summary':z['string']()['describe']('Account-level\x20dashboard\x20summary.')})['strict']();export const ProjectOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[ListProjectsResultSchema,CreateProjectResultSchema,CreateProjectFromOnchainResultSchema,UpdateProjectResultSchema,GetProjectDetailResultSchema,AddObjectResultSchema,RemoveObjectResultSchema,UpdateObjectResultSchema,CreateVersionResultSchema,BuildGraphResultSchema,GetGraphResultSchema,EvaluateProjectResultSchema,SaveEvaluationResultSchema,CompareProjectsResultSchema,RefreshObjectsResultSchema,GetObjectDiffResultSchema,DeleteProjectResultSchema,AssembleContextResultSchema,ReverseMapResultSchema,GenerateDeploymentDocResultSchema,PreEvaluateCheckResultSchema,VerifyDeploymentResultSchema,GetMachineGraphResultSchema,GetGuardGraphResultSchema,PlanObjectEditResultSchema,ApplyObjectEditResultSchema,PatchMachineNodesResultSchema,PatchGuardTreeResultSchema,CloneProjectToNetworkResultSchema,MigrateNetworkResultSchema,MigrateToMainnetResultSchema,RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema,AnalyzeIntentResultSchema,AggregateRisksResultSchema,TraceSubstepsResultSchema,MerchantGuideResultSchema,ParticipationRadarResultSchema])['describe']('Query\x20result\x20—\x20shape\x20depends\x20on\x20action'),'skills_recommended':z['string']()['optional']()['describe']('Skills\x20recommendation\x20hint\x20(F-10).\x20Informational\x20only\x20—\x20MCP\x20executes\x20'+'independently\x20of\x20skills.\x20Present\x20when\x20the\x20action\x20benefits\x20from\x20skills\x27\x20'+'business-semantic\x20guidance\x20(e.g.\x20service/machine/guard/evaluation).\x20'+'Users\x20without\x20skills\x20installed\x20can\x20ignore\x20this\x20field.')})['strict']();