@wowok/agent-mcp 3.3.6 → 3.3.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 (220) hide show
  1. package/dist/chain-semantics/eval-order.js +1 -1
  2. package/dist/chain-semantics/field-capability.js +1 -1
  3. package/dist/chain-semantics/fund-flow.js +1 -1
  4. package/dist/chain-semantics/guard-verbs.js +1 -1
  5. package/dist/chain-semantics/object-graph.js +1 -1
  6. package/dist/communication/message-cursors.d.ts +35 -0
  7. package/dist/communication/message-cursors.js +1 -0
  8. package/dist/communication/wts-attestation.d.ts +5 -0
  9. package/dist/communication/wts-attestation.js +1 -1
  10. package/dist/composition/audit.js +1 -1
  11. package/dist/composition/compile.d.ts +3 -2
  12. package/dist/composition/compile.js +1 -1
  13. package/dist/composition/inflight.d.ts +7 -0
  14. package/dist/composition/inflight.js +1 -1
  15. package/dist/composition/materialize.d.ts +4 -1
  16. package/dist/composition/materialize.js +1 -1
  17. package/dist/config/index.d.ts +1 -0
  18. package/dist/config/index.js +1 -1
  19. package/dist/config/store-policy.d.ts +14 -0
  20. package/dist/config/store-policy.js +1 -0
  21. package/dist/config/store-policy.spec.d.ts +1 -0
  22. package/dist/config/store-policy.spec.js +1 -0
  23. package/dist/customer/industry-risks.js +1 -1
  24. package/dist/customer/user-preferences.js +1 -1
  25. package/dist/data/projection/facets.spec.js +1 -1
  26. package/dist/evaluation/builtins/graph-service.spec.js +1 -1
  27. package/dist/evaluation/engine.js +1 -1
  28. package/dist/evaluation/match-policy.d.ts +30 -6
  29. package/dist/evaluation/match-policy.js +1 -1
  30. package/dist/evaluation/match-policy.spec.js +1 -1
  31. package/dist/experience/realtime-feedback.js +1 -1
  32. package/dist/extensions/business-modules.d.ts +1 -1
  33. package/dist/extensions/business-modules.js +1 -1
  34. package/dist/extensions/industry-pack.js +1 -1
  35. package/dist/extensions/modes.js +1 -1
  36. package/dist/graph/onchain/analyze.js +1 -1
  37. package/dist/graph/onchain/expand.js +1 -1
  38. package/dist/graph/onchain/exposure.js +1 -1
  39. package/dist/graph/onchain/facts.d.ts +1 -0
  40. package/dist/graph/onchain/facts.js +1 -1
  41. package/dist/graph/onchain/facts.spec.js +1 -1
  42. package/dist/harness/recover.js +1 -1
  43. package/dist/intent/types.d.ts +1 -1
  44. package/dist/intent/types.js +1 -1
  45. package/dist/keeper/detectors.d.ts +3 -0
  46. package/dist/keeper/detectors.js +1 -1
  47. package/dist/keeper/keeper.spec.js +1 -1
  48. package/dist/knowledge/acquisition-flywheel.js +1 -1
  49. package/dist/knowledge/allocation-ledger.d.ts +1 -0
  50. package/dist/knowledge/allocation-ledger.js +1 -1
  51. package/dist/knowledge/allocator-rail-verifier.d.ts +6 -2
  52. package/dist/knowledge/allocator-rail-verifier.js +1 -1
  53. package/dist/knowledge/arbitration-ledger.js +1 -1
  54. package/dist/knowledge/audit-rules.d.ts +37 -0
  55. package/dist/knowledge/audit-rules.js +1 -1
  56. package/dist/knowledge/baselines/rules/plan.json +128 -3
  57. package/dist/knowledge/builtin-templates.d.ts +18 -1
  58. package/dist/knowledge/builtin-templates.js +1 -1
  59. package/dist/knowledge/commission-landing.d.ts +26 -0
  60. package/dist/knowledge/commission-landing.js +1 -0
  61. package/dist/knowledge/discount-threshold.js +1 -1
  62. package/dist/knowledge/event-semantics.js +1 -1
  63. package/dist/knowledge/fund-layer.d.ts +7 -0
  64. package/dist/knowledge/fund-layer.js +1 -1
  65. package/dist/knowledge/getting-started.js +1 -1
  66. package/dist/knowledge/guard-design-patterns.d.ts +1 -1
  67. package/dist/knowledge/guard-design-patterns.js +1 -1
  68. package/dist/knowledge/guard-puzzle.js +1 -1
  69. package/dist/knowledge/guard-render.d.ts +7 -0
  70. package/dist/knowledge/guard-render.js +1 -1
  71. package/dist/knowledge/guard-risk.js +1 -1
  72. package/dist/knowledge/guard-templates.d.ts +1 -1
  73. package/dist/knowledge/guard-templates.js +1 -1
  74. package/dist/knowledge/guard-translation.js +1 -1
  75. package/dist/knowledge/index.js +1 -1
  76. package/dist/knowledge/industry-generalizer.d.ts +4 -0
  77. package/dist/knowledge/industry-generalizer.js +1 -1
  78. package/dist/knowledge/industry-registry.d.ts +1 -1
  79. package/dist/knowledge/industry-registry.js +1 -1
  80. package/dist/knowledge/industry-strategy.js +1 -1
  81. package/dist/knowledge/jsonrpc-enum.js +1 -1
  82. package/dist/knowledge/machine-fork-watch.d.ts +9 -0
  83. package/dist/knowledge/machine-fork-watch.js +1 -0
  84. package/dist/knowledge/migration-preflight.js +1 -1
  85. package/dist/knowledge/projection.spec.js +1 -1
  86. package/dist/knowledge/scenario-modes.d.ts +8 -2
  87. package/dist/knowledge/scenario-modes.js +1 -1
  88. package/dist/knowledge/semantic-ir.d.ts +132 -0
  89. package/dist/knowledge/semantic-ir.js +1 -0
  90. package/dist/knowledge/service-ledger.js +1 -1
  91. package/dist/knowledge/strategy-manuals.js +1 -1
  92. package/dist/knowledge/template-index.js +1 -1
  93. package/dist/knowledge/template-loader.d.ts +45 -0
  94. package/dist/knowledge/template-loader.js +1 -1
  95. package/dist/knowledge/template-prose.d.ts +50 -0
  96. package/dist/knowledge/template-prose.js +1 -0
  97. package/dist/knowledge/template-registry.js +1 -1
  98. package/dist/knowledge/template-scanner.d.ts +5 -3
  99. package/dist/knowledge/template-scanner.js +1 -1
  100. package/dist/knowledge/template-validation.js +1 -1
  101. package/dist/knowledge/tools-reference.js +1 -1
  102. package/dist/monitor/MonitorLoop.js +1 -1
  103. package/dist/monitor/normalize.d.ts +1 -1
  104. package/dist/monitor/normalize.js +1 -1
  105. package/dist/monitor/types.js +1 -1
  106. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  107. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  108. package/dist/playbooks/service-build/merchant-guide.d.ts +16 -6
  109. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  110. package/dist/playbooks/service-build/migration-planner.d.ts +11 -2
  111. package/dist/playbooks/service-build/migration-planner.js +1 -1
  112. package/dist/playbooks/service-build/mode-actions.d.ts +8 -0
  113. package/dist/playbooks/service-build/mode-actions.js +1 -1
  114. package/dist/playbooks/service-build/object-panorama.d.ts +22 -1
  115. package/dist/playbooks/service-build/object-panorama.js +1 -1
  116. package/dist/playbooks/service-build/participation-radar.js +1 -1
  117. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  118. package/dist/playbooks/service-build/reverse-mapping-nk4.spec.js +1 -1
  119. package/dist/playbooks/service-build/reverse-mapping.d.ts +1 -0
  120. package/dist/playbooks/service-build/reverse-mapping.js +1 -1
  121. package/dist/playbooks/service-build/service-panorama.js +1 -1
  122. package/dist/playbooks/service-build/service-quote.js +1 -1
  123. package/dist/playbooks/service-build/service-quote.spec.js +1 -1
  124. package/dist/review/index.js +1 -1
  125. package/dist/safety/confirm-gate.js +1 -1
  126. package/dist/schema/benchmark-migration/index.d.ts +135 -10
  127. package/dist/schema/benchmark-migration/index.js +1 -1
  128. package/dist/schema/call/allocation.d.ts +3 -0
  129. package/dist/schema/call/allocation.js +1 -1
  130. package/dist/schema/call/arbitration.js +1 -1
  131. package/dist/schema/call/base.d.ts +32 -0
  132. package/dist/schema/call/bridge.d.ts +8 -0
  133. package/dist/schema/call/error-codes.d.ts +1 -1
  134. package/dist/schema/call/error-codes.js +1 -1
  135. package/dist/schema/call/order.js +1 -1
  136. package/dist/schema/call/reward.d.ts +10 -0
  137. package/dist/schema/call/reward.js +1 -1
  138. package/dist/schema/call/semantic.js +1 -1
  139. package/dist/schema/call/service.js +1 -1
  140. package/dist/schema/common/index.js +1 -1
  141. package/dist/schema/config/index.d.ts +24 -0
  142. package/dist/schema/config/index.js +1 -1
  143. package/dist/schema/evaluation/index.d.ts +152 -0
  144. package/dist/schema/evaluation/index.js +1 -1
  145. package/dist/schema/goal/index.d.ts +16 -0
  146. package/dist/schema/goal/planning.d.ts +29 -0
  147. package/dist/schema/goal/planning.js +1 -1
  148. package/dist/schema/industry-pack/index.d.ts +70 -0
  149. package/dist/schema/industry-pack/modes.d.ts +70 -0
  150. package/dist/schema/industry-pack/modes.js +1 -1
  151. package/dist/schema/intent-radar/index.d.ts +3 -0
  152. package/dist/schema/intent-radar/index.js +1 -1
  153. package/dist/schema/local/index.d.ts +80 -0
  154. package/dist/schema/local/index.js +1 -1
  155. package/dist/schema/messenger/index.d.ts +278 -1
  156. package/dist/schema/messenger/index.js +1 -1
  157. package/dist/schema/operations.d.ts +6 -0
  158. package/dist/schema/query/bi.d.ts +38 -0
  159. package/dist/schema/query/bi.js +1 -1
  160. package/dist/schema/query/index.d.ts +148 -47
  161. package/dist/schema/query/index.js +1 -1
  162. package/dist/schema/schema-version.js +1 -1
  163. package/dist/schema/service-clone/index.d.ts +17 -0
  164. package/dist/schema/service-clone/index.js +1 -1
  165. package/dist/schema-query-impl/index.js +1 -1
  166. package/dist/schemas/account_operation.output.json +8 -0
  167. package/dist/schemas/benchmark_migration_operation.output.json +296 -2
  168. package/dist/schemas/benchmark_migration_operation.schema.json +292 -7
  169. package/dist/schemas/bridge_operation.output.json +8 -0
  170. package/dist/schemas/config_operation.output.json +95 -0
  171. package/dist/schemas/config_operation.schema.json +16 -1
  172. package/dist/schemas/evaluation_operation.output.json +240 -0
  173. package/dist/schemas/evaluation_operation.schema.json +397 -1
  174. package/dist/schemas/goal_operation.schema.json +40 -10
  175. package/dist/schemas/index.json +1 -1
  176. package/dist/schemas/industry_pack_operation.output.json +90 -2
  177. package/dist/schemas/industry_pack_operation.schema.json +236 -0
  178. package/dist/schemas/intent_radar.output.json +2 -0
  179. package/dist/schemas/intent_radar.schema.json +1 -0
  180. package/dist/schemas/local_cache_operation.output.json +8 -0
  181. package/dist/schemas/local_history_operation.output.json +8 -0
  182. package/dist/schemas/local_info_operation.output.json +8 -0
  183. package/dist/schemas/local_mark_operation.output.json +8 -0
  184. package/dist/schemas/messenger_operation.output.json +609 -1
  185. package/dist/schemas/messenger_operation.schema.json +96 -1
  186. package/dist/schemas/onchain_events.output.json +281 -11
  187. package/dist/schemas/onchain_events.schema.json +5 -1
  188. package/dist/schemas/onchain_operations.output.json +8 -0
  189. package/dist/schemas/onchain_operations.schema.json +371 -10
  190. package/dist/schemas/onchain_operations_allocation.schema.json +10 -1
  191. package/dist/schemas/onchain_operations_arbitration.schema.json +1 -1
  192. package/dist/schemas/onchain_operations_guard.schema.json +318 -0
  193. package/dist/schemas/onchain_operations_order.schema.json +1 -1
  194. package/dist/schemas/onchain_operations_reward.schema.json +35 -1
  195. package/dist/schemas/onchain_operations_service.schema.json +6 -6
  196. package/dist/schemas/query_toolkit.output.json +305 -8
  197. package/dist/schemas/service_clone_operation.output.json +79 -0
  198. package/dist/tools/handlers/benchmark-migration.d.ts +15 -0
  199. package/dist/tools/handlers/benchmark-migration.js +1 -1
  200. package/dist/tools/handlers/config.js +1 -1
  201. package/dist/tools/handlers/evaluation.js +1 -1
  202. package/dist/tools/handlers/evaluation.spec.js +1 -1
  203. package/dist/tools/handlers/intent-radar.js +1 -1
  204. package/dist/tools/handlers/messenger.d.ts +1 -0
  205. package/dist/tools/handlers/messenger.js +1 -1
  206. package/dist/tools/handlers/onchain.d.ts +20 -1
  207. package/dist/tools/handlers/onchain.js +1 -1
  208. package/dist/tools/handlers/query.d.ts +1 -0
  209. package/dist/tools/handlers/query.js +1 -1
  210. package/dist/tools/handlers/service-clone.d.ts +18 -0
  211. package/dist/tools/handlers/service-clone.js +1 -1
  212. package/dist/tools/handlers/wip.js +1 -1
  213. package/dist/tools/registry/agent.js +1 -1
  214. package/dist/tools/registry/business.js +1 -1
  215. package/dist/tools/registry/query.js +1 -1
  216. package/dist/tools/wip-verify-ledger.d.ts +14 -0
  217. package/dist/tools/wip-verify-ledger.js +1 -0
  218. package/dist/tools/wrap.d.ts +4 -0
  219. package/dist/tools/wrap.js +1 -1
  220. package/package.json +2 -2
@@ -1137,8 +1137,12 @@
1137
1137
  "description": "Review reward pool funding, smallest-unit string (required when the effective review mode is review_reward).",
1138
1138
  "type": "string"
1139
1139
  },
1140
+ "reward_claim_amount": {
1141
+ "description": "Per-claim reward bounty mounted on the claim guard_add, smallest-unit string (BK15-F09: schema-required on the mount; the kernel never fabricates a real-money parameter).",
1142
+ "type": "string"
1143
+ },
1140
1144
  "after_sales_mode": {
1141
- "description": "Per-build after-sales mode (D12 重构 4). Absent = the template's declared after_sales_mode applies. Declaring a mode with no backing rail in machine_shape is a compile blocker (AFTER_SALES_RAIL_MISSING).",
1145
+ "description": "Per-build after-sales mode (D12 refactor 4). Absent = the template's declared after_sales_mode applies. Declaring a mode with no backing rail in machine_shape is a compile blocker (AFTER_SALES_RAIL_MISSING).",
1142
1146
  "type": "string",
1143
1147
  "enum": [
1144
1148
  "return",
@@ -1148,7 +1152,7 @@
1148
1152
  ]
1149
1153
  },
1150
1154
  "acceptance_mode": {
1151
- "description": "Per-build acceptance/judging mode (D12 重构 2). Absent = the template's declared acceptance_mode applies. A judge-decided mode (contest/bounty/agent) without arbitration_mode 'third_party' is a compile blocker (ACCEPTANCE_JUDGE_NOT_INDEPENDENT); a finite revision_rounds_max with no counter Repository guard is a compile blocker (ACCEPTANCE_REVISION_UNBOUNDED).",
1155
+ "description": "Per-build acceptance/judging mode (D12 refactor 2). Absent = the template's declared acceptance_mode applies. A judge-decided mode (contest/bounty/agent) without arbitration_mode 'third_party' is a compile blocker (ACCEPTANCE_JUDGE_NOT_INDEPENDENT); a finite revision_rounds_max with no counter Repository guard is a compile blocker (ACCEPTANCE_REVISION_UNBOUNDED).",
1152
1156
  "type": "string",
1153
1157
  "enum": [
1154
1158
  "milestone",
@@ -1159,7 +1163,7 @@
1159
1163
  ]
1160
1164
  },
1161
1165
  "installment_mode": {
1162
- "description": "Per-build installment/deposit mode (D12 重构 3). Absent = the template's declared installment_mode applies. A capture forward with no fund-gate Guard is a compile blocker (INSTALLMENT_FUNDING_UNGATED); a deposit-held state with no exit rail is a compile blocker (INSTALLMENT_DEPOSIT_STRANDED).",
1166
+ "description": "Per-build installment/deposit mode (D12 refactor 3). Absent = the template's declared installment_mode applies. A capture forward with no fund-gate Guard is a compile blocker (INSTALLMENT_FUNDING_UNGATED); a deposit-held state with no exit rail is a compile blocker (INSTALLMENT_DEPOSIT_STRANDED).",
1163
1167
  "type": "string",
1164
1168
  "enum": [
1165
1169
  "deposit_balance",
@@ -1168,7 +1172,7 @@
1168
1172
  ]
1169
1173
  },
1170
1174
  "affiliate_mode": {
1171
- "description": "Per-build affiliate commission overlay (D12 批 5). Absent = the template's declared affiliate_mode applies. A declared commission overlay with no commission rail is a compile blocker (AFFILIATE_RAIL_MISSING); a commission with no post-lock no-clawback disclosure build_note is a compile blocker (AFFILIATE_CLAWBACK_UNDISCLOSED).",
1175
+ "description": "Per-build affiliate commission overlay (D12 batch 5). Absent = the template's declared affiliate_mode applies. A declared commission overlay with no commission rail is a compile blocker (AFFILIATE_RAIL_MISSING); a commission with no post-lock no-clawback disclosure build_note is a compile blocker (AFFILIATE_CLAWBACK_UNDISCLOSED).",
1172
1176
  "type": "string",
1173
1177
  "enum": [
1174
1178
  "commission",
@@ -1176,13 +1180,24 @@
1176
1180
  ]
1177
1181
  },
1178
1182
  "crowdfunding_mode": {
1179
- "description": "Per-build crowdfunding campaign overlay (D12 批 7). Absent = the template's declared crowdfunding_mode applies. A declared threshold/flexible overlay with no two-leg escrow-exit gate (release XOR refund, D-BUG-2) is a compile blocker (CROWDFUNDING_THRESHOLD_GATE_MISSING); a threshold gate whose aggregate is NOT a writer-bound sum-where (id_from signer) is a compile blocker (CROWDFUNDING_AGGREGATE_UNBOUND); a missing L-04/L-01/L-05 disclosure build_note is a compile blocker (CROWDFUNDING_DISCLOSURE_MISSING).",
1183
+ "description": "Per-build crowdfunding campaign overlay (D12 batch 7). Absent = the template's declared crowdfunding_mode applies. A declared threshold/flexible overlay with no two-leg escrow-exit gate (release XOR refund, D-BUG-2) is a compile blocker (CROWDFUNDING_THRESHOLD_GATE_MISSING); a threshold gate whose aggregate is NOT a writer-bound sum-where (id_from signer) is a compile blocker (CROWDFUNDING_AGGREGATE_UNBOUND); a missing L-04/L-01/L-05 disclosure build_note is a compile blocker (CROWDFUNDING_DISCLOSURE_MISSING).",
1180
1184
  "type": "string",
1181
1185
  "enum": [
1182
1186
  "threshold",
1183
1187
  "flexible",
1184
1188
  "none"
1185
1189
  ]
1190
+ },
1191
+ "logistics_mode": {
1192
+ "description": "Per-build fulfillment topology (K3 batch C, K-2). Absent = the template's declared logistics_mode applies. A declared topology the machine_shape cannot honor is a compile blocker: courier with no named_operator handover rail (LOGISTICS_COURIER_RAIL_MISSING) or a pooled delivery fee (LOGISTICS_COURIER_FEE_POOLED); pickup_point without the absolute batch cutoff or the unclaimed-goods exit window (LOGISTICS_PICKUP_CUTOFF_MISSING); carrier without tracking evidence (LOGISTICS_CARRIER_EVIDENCE_MISSING); any physical mode without a transit-loss story (LOGISTICS_TRANSIT_LOSS_UNCOVERED); courier/pickup_point without the two dispatch disclosures (LOGISTICS_DISPATCH_UNDISCLOSED).",
1193
+ "type": "string",
1194
+ "enum": [
1195
+ "none",
1196
+ "carrier",
1197
+ "merchant_managed",
1198
+ "courier",
1199
+ "pickup_point"
1200
+ ]
1186
1201
  }
1187
1202
  },
1188
1203
  "required": [
@@ -1337,8 +1352,12 @@
1337
1352
  "description": "Step 6 confirmation: review reward pool funding, smallest-unit string (required when the effective review mode is review_reward).",
1338
1353
  "type": "string"
1339
1354
  },
1355
+ "reward_claim_amount": {
1356
+ "description": "Step 6 confirmation: per-claim reward bounty on the claim guard_add, smallest-unit string (BK15-F09).",
1357
+ "type": "string"
1358
+ },
1340
1359
  "after_sales_mode": {
1341
- "description": "Step 6 confirmation: per-build after-sales mode (D12 重构 4). Absent = the template's declared after_sales_mode applies.",
1360
+ "description": "Step 6 confirmation: per-build after-sales mode (D12 refactor 4). Absent = the template's declared after_sales_mode applies.",
1342
1361
  "type": "string",
1343
1362
  "enum": [
1344
1363
  "return",
@@ -1348,7 +1367,7 @@
1348
1367
  ]
1349
1368
  },
1350
1369
  "acceptance_mode": {
1351
- "description": "Step 6 confirmation: per-build acceptance/judging mode (D12 重构 2). Absent = the template's declared acceptance_mode applies.",
1370
+ "description": "Step 6 confirmation: per-build acceptance/judging mode (D12 refactor 2). Absent = the template's declared acceptance_mode applies.",
1352
1371
  "type": "string",
1353
1372
  "enum": [
1354
1373
  "milestone",
@@ -1359,7 +1378,7 @@
1359
1378
  ]
1360
1379
  },
1361
1380
  "installment_mode": {
1362
- "description": "Step 6 confirmation: per-build installment/deposit mode (D12 重构 3). Absent = the template's declared installment_mode applies.",
1381
+ "description": "Step 6 confirmation: per-build installment/deposit mode (D12 refactor 3). Absent = the template's declared installment_mode applies.",
1363
1382
  "type": "string",
1364
1383
  "enum": [
1365
1384
  "deposit_balance",
@@ -1368,7 +1387,7 @@
1368
1387
  ]
1369
1388
  },
1370
1389
  "affiliate_mode": {
1371
- "description": "Step 6 confirmation: per-build affiliate commission overlay (D12 批 5). Absent = the template's declared affiliate_mode applies.",
1390
+ "description": "Step 6 confirmation: per-build affiliate commission overlay (D12 batch 5). Absent = the template's declared affiliate_mode applies.",
1372
1391
  "type": "string",
1373
1392
  "enum": [
1374
1393
  "commission",
@@ -1376,13 +1395,24 @@
1376
1395
  ]
1377
1396
  },
1378
1397
  "crowdfunding_mode": {
1379
- "description": "Step 6 confirmation: per-build crowdfunding campaign overlay (D12 批 7). Absent = the template's declared crowdfunding_mode applies.",
1398
+ "description": "Step 6 confirmation: per-build crowdfunding campaign overlay (D12 batch 7). Absent = the template's declared crowdfunding_mode applies.",
1380
1399
  "type": "string",
1381
1400
  "enum": [
1382
1401
  "threshold",
1383
1402
  "flexible",
1384
1403
  "none"
1385
1404
  ]
1405
+ },
1406
+ "logistics_mode": {
1407
+ "description": "Step 6 confirmation: per-build fulfillment topology (K3 batch C, K-2). Absent = the template's declared logistics_mode applies.",
1408
+ "type": "string",
1409
+ "enum": [
1410
+ "none",
1411
+ "carrier",
1412
+ "merchant_managed",
1413
+ "courier",
1414
+ "pickup_point"
1415
+ ]
1386
1416
  }
1387
1417
  },
1388
1418
  "additionalProperties": false
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "title": "WoWok MCP Schema Index",
4
4
  "description": "Index of all available JSON schemas for WoWok MCP tools",
5
- "generatedAt": "2026-10-25T01:02:54.717Z",
5
+ "generatedAt": "2026-10-27T22:44:03.281Z",
6
6
  "tools": [
7
7
  {
8
8
  "name": "onchain_operations",
@@ -856,14 +856,88 @@
856
856
  },
857
857
  "inference_confidence": {
858
858
  "type": "number",
859
- "description": "Inference confidence 0-1 (matched trait count / 10)."
859
+ "description": "Inference confidence 0-1 (evidenced trait count / 10; IR evidence counts when supplied)."
860
+ },
861
+ "inference_source": {
862
+ "type": "string",
863
+ "enum": [
864
+ "keywords",
865
+ "semantic_ir",
866
+ "semantic_ir+keywords"
867
+ ],
868
+ "description": "Which layer produced the trait evidence: 'keywords' = English lexicon only; 'semantic_ir' = caller-supplied IR only; 'semantic_ir+keywords' = both (IR won any conflict)."
860
869
  },
861
870
  "matched_keywords": {
862
871
  "type": "array",
863
872
  "items": {
864
873
  "type": "string"
865
874
  },
866
- "description": "Keywords that triggered trait inference (Chinese and English keywords both match)."
875
+ "description": "Keywords from the intent text that triggered trait inference (English canonical lexicon)."
876
+ },
877
+ "semantic_ir": {
878
+ "description": "Canonical IR artifact echoed back for freeze/replay (present only when semantic_ir was supplied).",
879
+ "type": "object",
880
+ "propertyNames": {
881
+ "type": "string"
882
+ },
883
+ "additionalProperties": {}
884
+ },
885
+ "semantic_ir_digest": {
886
+ "description": "sha256 of the canonical IR artifact; identical claims in any array order yield the same digest.",
887
+ "type": "string"
888
+ },
889
+ "semantic_ir_issues": {
890
+ "description": "IR claims dropped/clamped/conflicting during validation (unknown vocabulary, inverted span, sub-threshold confidence).",
891
+ "type": "array",
892
+ "items": {
893
+ "type": "string"
894
+ }
895
+ },
896
+ "semantic_ir_conflicts": {
897
+ "description": "Dimensions where the keyword lexicon and the IR disagreed; the IR value was applied.",
898
+ "type": "array",
899
+ "items": {
900
+ "type": "object",
901
+ "properties": {
902
+ "trait": {
903
+ "type": "string"
904
+ },
905
+ "keyword_value": {
906
+ "anyOf": [
907
+ {
908
+ "type": "boolean"
909
+ },
910
+ {
911
+ "type": "string"
912
+ }
913
+ ]
914
+ },
915
+ "keyword_confidence": {
916
+ "type": "number"
917
+ },
918
+ "ir_value": {
919
+ "anyOf": [
920
+ {
921
+ "type": "boolean"
922
+ },
923
+ {
924
+ "type": "string"
925
+ }
926
+ ]
927
+ },
928
+ "ir_confidence": {
929
+ "type": "number"
930
+ }
931
+ },
932
+ "required": [
933
+ "trait",
934
+ "keyword_value",
935
+ "keyword_confidence",
936
+ "ir_value",
937
+ "ir_confidence"
938
+ ],
939
+ "additionalProperties": false
940
+ }
867
941
  },
868
942
  "domain_priors": {
869
943
  "description": "Domain vocabulary matches that boosted the named industries (domain evidence, not a trait claim).",
@@ -888,6 +962,15 @@
888
962
  },
889
963
  "boost": {
890
964
  "type": "number"
965
+ },
966
+ "source": {
967
+ "description": "Which layer produced the prior; 'both' means keyword and IR agreed.",
968
+ "type": "string",
969
+ "enum": [
970
+ "keyword",
971
+ "semantic_ir",
972
+ "both"
973
+ ]
891
974
  }
892
975
  },
893
976
  "required": [
@@ -1051,6 +1134,10 @@
1051
1134
  "description": "True when domain vocabulary (not traits) contributed to this industry's score/rank.",
1052
1135
  "type": "boolean"
1053
1136
  },
1137
+ "ir_industry_match": {
1138
+ "description": "True when the Semantic IR's discovery.industry named this industry (a ranking prior was applied).",
1139
+ "type": "boolean"
1140
+ },
1054
1141
  "requirement_support": {
1055
1142
  "description": "0-1 support of the industry's required traits by the inference (1 = all evidenced and satisfied).",
1056
1143
  "type": "number"
@@ -1143,6 +1230,7 @@
1143
1230
  "intent",
1144
1231
  "inferred_traits",
1145
1232
  "inference_confidence",
1233
+ "inference_source",
1146
1234
  "matched_keywords",
1147
1235
  "strategy_intents",
1148
1236
  "lever_suggestions",
@@ -113,6 +113,242 @@
113
113
  }
114
114
  ]
115
115
  },
116
+ "semantic_ir": {
117
+ "description": "Canonical Semantic IR for recommend_industry, produced by the CALLING agent (this server runs no LLM). Use it when the intent is not English, or is phrased outside the English keyword lexicon: translate the business description into this fixed shape and let the server decide. The server validates the IR, merges it with keyword inference (IR evidence wins conflicts, keywords remain the fallback) and echoes the canonical artifact + sha256 digest for freeze/replay. Shape: {schema_version: 2 (1 still accepted), locale: '<BCP-47>', traits: [{trait, value, confidence: 0..1, span?: {start,end}, quote?}], domains: [{domain, confidence?}], claims: [{key, value, confidence?}], discovery: {industry?, tags?: string[], product_ref?, english_summary?, confidence?}, provenance: {source: 'caller_llm', model?, prompt_version?}}. traits vocabulary (10 dimensions): has_logistics, communication_heavy, pure_digital, long_cycle, deposit_required, multi_tier_allocation (boolean); regulatory_intensity, trust_sensitivity (low|medium|high); consumption_frequency (one_time|occasional|frequent); avg_ticket_size (micro|small|medium|large). domains vocabulary: travel_accommodation. claims vocabulary: reward_pool_amount. discovery is the language-neutral business-model layer: tags use the CLOSED vocabulary returned by template_list.discovery_vocabulary (canonical English tokens, never locale words), industry is a registered industry name, product_ref is a benchmark-product slug, and english_summary is a translation aid used only for keyword fallback. An applied discovery.industry ranks that industry with a domain-prior boost. Rules: emit evidence only (no free-form prose), one entry per dimension, copy spans/quotes VERBATIM from the intent (unlocatable evidence is dropped and reported), confidence below 0.5 is recorded but not applied, and unknown traits/domains/tags/industries/product_refs are dropped and reported in semantic_ir_issues.",
118
+ "type": "object",
119
+ "properties": {
120
+ "schema_version": {
121
+ "anyOf": [
122
+ {
123
+ "type": "number",
124
+ "const": 1
125
+ },
126
+ {
127
+ "type": "number",
128
+ "const": 2
129
+ }
130
+ ]
131
+ },
132
+ "locale": {
133
+ "type": "string",
134
+ "minLength": 2,
135
+ "maxLength": 35
136
+ },
137
+ "traits": {
138
+ "maxItems": 20,
139
+ "type": "array",
140
+ "items": {
141
+ "type": "object",
142
+ "properties": {
143
+ "trait": {
144
+ "type": "string",
145
+ "maxLength": 64
146
+ },
147
+ "value": {
148
+ "anyOf": [
149
+ {
150
+ "type": "boolean"
151
+ },
152
+ {
153
+ "type": "string",
154
+ "maxLength": 32
155
+ }
156
+ ]
157
+ },
158
+ "confidence": {
159
+ "type": "number"
160
+ },
161
+ "span": {
162
+ "type": "object",
163
+ "properties": {
164
+ "start": {
165
+ "type": "integer",
166
+ "minimum": 0,
167
+ "maximum": 9007199254740991
168
+ },
169
+ "end": {
170
+ "type": "integer",
171
+ "minimum": 0,
172
+ "maximum": 9007199254740991
173
+ }
174
+ },
175
+ "required": [
176
+ "start",
177
+ "end"
178
+ ],
179
+ "additionalProperties": false
180
+ },
181
+ "quote": {
182
+ "type": "string",
183
+ "maxLength": 300
184
+ }
185
+ },
186
+ "required": [
187
+ "trait",
188
+ "value",
189
+ "confidence"
190
+ ],
191
+ "additionalProperties": false
192
+ }
193
+ },
194
+ "domains": {
195
+ "maxItems": 10,
196
+ "type": "array",
197
+ "items": {
198
+ "type": "object",
199
+ "properties": {
200
+ "domain": {
201
+ "type": "string",
202
+ "maxLength": 64
203
+ },
204
+ "confidence": {
205
+ "type": "number"
206
+ },
207
+ "span": {
208
+ "type": "object",
209
+ "properties": {
210
+ "start": {
211
+ "type": "integer",
212
+ "minimum": 0,
213
+ "maximum": 9007199254740991
214
+ },
215
+ "end": {
216
+ "type": "integer",
217
+ "minimum": 0,
218
+ "maximum": 9007199254740991
219
+ }
220
+ },
221
+ "required": [
222
+ "start",
223
+ "end"
224
+ ],
225
+ "additionalProperties": false
226
+ },
227
+ "quote": {
228
+ "type": "string",
229
+ "maxLength": 300
230
+ }
231
+ },
232
+ "required": [
233
+ "domain"
234
+ ],
235
+ "additionalProperties": false
236
+ }
237
+ },
238
+ "claims": {
239
+ "maxItems": 10,
240
+ "type": "array",
241
+ "items": {
242
+ "type": "object",
243
+ "properties": {
244
+ "key": {
245
+ "type": "string",
246
+ "maxLength": 64
247
+ },
248
+ "value": {
249
+ "type": "number"
250
+ },
251
+ "confidence": {
252
+ "type": "number"
253
+ },
254
+ "span": {
255
+ "type": "object",
256
+ "properties": {
257
+ "start": {
258
+ "type": "integer",
259
+ "minimum": 0,
260
+ "maximum": 9007199254740991
261
+ },
262
+ "end": {
263
+ "type": "integer",
264
+ "minimum": 0,
265
+ "maximum": 9007199254740991
266
+ }
267
+ },
268
+ "required": [
269
+ "start",
270
+ "end"
271
+ ],
272
+ "additionalProperties": false
273
+ },
274
+ "quote": {
275
+ "type": "string",
276
+ "maxLength": 300
277
+ }
278
+ },
279
+ "required": [
280
+ "key",
281
+ "value"
282
+ ],
283
+ "additionalProperties": false
284
+ }
285
+ },
286
+ "discovery": {
287
+ "type": "object",
288
+ "properties": {
289
+ "industry": {
290
+ "type": "string",
291
+ "maxLength": 64
292
+ },
293
+ "tags": {
294
+ "maxItems": 20,
295
+ "type": "array",
296
+ "items": {
297
+ "type": "string",
298
+ "maxLength": 64
299
+ }
300
+ },
301
+ "product_ref": {
302
+ "type": "string",
303
+ "maxLength": 64
304
+ },
305
+ "english_summary": {
306
+ "type": "string",
307
+ "maxLength": 600
308
+ },
309
+ "confidence": {
310
+ "type": "number"
311
+ }
312
+ },
313
+ "additionalProperties": false
314
+ },
315
+ "provenance": {
316
+ "type": "object",
317
+ "properties": {
318
+ "source": {
319
+ "type": "string",
320
+ "enum": [
321
+ "caller_llm",
322
+ "human"
323
+ ]
324
+ },
325
+ "model": {
326
+ "type": "string",
327
+ "maxLength": 120
328
+ },
329
+ "prompt_version": {
330
+ "type": "string",
331
+ "maxLength": 60
332
+ },
333
+ "generated_at": {
334
+ "type": "integer",
335
+ "minimum": 0,
336
+ "maximum": 9007199254740991
337
+ }
338
+ },
339
+ "required": [
340
+ "source"
341
+ ],
342
+ "additionalProperties": false
343
+ }
344
+ },
345
+ "required": [
346
+ "schema_version",
347
+ "locale",
348
+ "provenance"
349
+ ],
350
+ "additionalProperties": false
351
+ },
116
352
  "mode_source": {
117
353
  "description": "Source builtin mode name for derive_user_mode (e.g. 'freelance'). Call list_modes to see available modes.",
118
354
  "type": "string"
@@ -56,6 +56,7 @@
56
56
  "enum": [
57
57
  "NewOrderEvent",
58
58
  "ProgressEvent",
59
+ "ThresholdPendingEvent",
59
60
  "DemandPresentEvent",
60
61
  "DemandFeedbackEvent",
61
62
  "DemandChangedEvent",
@@ -155,6 +156,7 @@
155
156
  "enum": [
156
157
  "NewOrderEvent",
157
158
  "ProgressEvent",
159
+ "ThresholdPendingEvent",
158
160
  "DemandPresentEvent",
159
161
  "DemandFeedbackEvent",
160
162
  "DemandChangedEvent",
@@ -39,6 +39,7 @@
39
39
  "enum": [
40
40
  "NewOrderEvent",
41
41
  "ProgressEvent",
42
+ "ThresholdPendingEvent",
42
43
  "DemandPresentEvent",
43
44
  "DemandFeedbackEvent",
44
45
  "DemandChangedEvent",
@@ -243,6 +243,7 @@
243
243
  "state_conflict",
244
244
  "insufficient_balance",
245
245
  "pool_shortage",
246
+ "allocation_empty",
246
247
  "transaction_expired",
247
248
  "stock_exhausted",
248
249
  "sale_suspended",
@@ -264,7 +265,14 @@
264
265
  "submission_unknown",
265
266
  "move_abort_unmapped",
266
267
  "missing_data",
268
+ "guard_data_missing",
267
269
  "state_not_visible",
270
+ "unreachable_transition",
271
+ "forward_not_at_node",
272
+ "anchor_unavailable",
273
+ "delivery_unknown",
274
+ "capability_unavailable",
275
+ "transport_unavailable",
268
276
  "unknown"
269
277
  ]
270
278
  },
@@ -169,6 +169,7 @@
169
169
  "state_conflict",
170
170
  "insufficient_balance",
171
171
  "pool_shortage",
172
+ "allocation_empty",
172
173
  "transaction_expired",
173
174
  "stock_exhausted",
174
175
  "sale_suspended",
@@ -190,7 +191,14 @@
190
191
  "submission_unknown",
191
192
  "move_abort_unmapped",
192
193
  "missing_data",
194
+ "guard_data_missing",
193
195
  "state_not_visible",
196
+ "unreachable_transition",
197
+ "forward_not_at_node",
198
+ "anchor_unavailable",
199
+ "delivery_unknown",
200
+ "capability_unavailable",
201
+ "transport_unavailable",
194
202
  "unknown"
195
203
  ]
196
204
  },
@@ -55,6 +55,7 @@
55
55
  "state_conflict",
56
56
  "insufficient_balance",
57
57
  "pool_shortage",
58
+ "allocation_empty",
58
59
  "transaction_expired",
59
60
  "stock_exhausted",
60
61
  "sale_suspended",
@@ -76,7 +77,14 @@
76
77
  "submission_unknown",
77
78
  "move_abort_unmapped",
78
79
  "missing_data",
80
+ "guard_data_missing",
79
81
  "state_not_visible",
82
+ "unreachable_transition",
83
+ "forward_not_at_node",
84
+ "anchor_unavailable",
85
+ "delivery_unknown",
86
+ "capability_unavailable",
87
+ "transport_unavailable",
80
88
  "unknown"
81
89
  ]
82
90
  },
@@ -147,6 +147,7 @@
147
147
  "state_conflict",
148
148
  "insufficient_balance",
149
149
  "pool_shortage",
150
+ "allocation_empty",
150
151
  "transaction_expired",
151
152
  "stock_exhausted",
152
153
  "sale_suspended",
@@ -168,7 +169,14 @@
168
169
  "submission_unknown",
169
170
  "move_abort_unmapped",
170
171
  "missing_data",
172
+ "guard_data_missing",
171
173
  "state_not_visible",
174
+ "unreachable_transition",
175
+ "forward_not_at_node",
176
+ "anchor_unavailable",
177
+ "delivery_unknown",
178
+ "capability_unavailable",
179
+ "transport_unavailable",
172
180
  "unknown"
173
181
  ]
174
182
  },