@wowok/agent-mcp 3.3.9 → 3.4.1

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 (480) hide show
  1. package/README.md +8 -0
  2. package/dist/chain-semantics/composition-truth.d.ts +102 -0
  3. package/dist/chain-semantics/composition-truth.js +1 -0
  4. package/dist/chain-semantics/eval-order.js +1 -1
  5. package/dist/chain-semantics/field-capability.js +1 -1
  6. package/dist/chain-semantics/freeze-map.js +1 -1
  7. package/dist/chain-semantics/fund-flow.js +1 -1
  8. package/dist/chain-semantics/guard-verbs.js +1 -1
  9. package/dist/chain-semantics/index.d.ts +1 -0
  10. package/dist/chain-semantics/index.js +1 -1
  11. package/dist/chain-semantics/object-graph.js +1 -1
  12. package/dist/composition/audit.js +1 -1
  13. package/dist/composition/blueprint-view.d.ts +3 -3
  14. package/dist/composition/blueprint-view.js +1 -1
  15. package/dist/composition/compile.d.ts +26 -4
  16. package/dist/composition/compile.js +1 -1
  17. package/dist/composition/emit-phases.d.ts +206 -0
  18. package/dist/composition/emit-phases.js +1 -0
  19. package/dist/composition/generate.d.ts +40 -0
  20. package/dist/composition/generate.js +1 -0
  21. package/dist/composition/guard-fill.d.ts +44 -0
  22. package/dist/composition/guard-fill.js +1 -0
  23. package/dist/composition/inflight.d.ts +26 -2
  24. package/dist/composition/inflight.js +1 -1
  25. package/dist/composition/input-normalize.d.ts +15 -0
  26. package/dist/composition/input-normalize.js +1 -0
  27. package/dist/composition/materialize.d.ts +22 -13
  28. package/dist/composition/materialize.js +1 -1
  29. package/dist/composition/mode-gates.d.ts +35 -0
  30. package/dist/composition/mode-gates.js +1 -0
  31. package/dist/composition/param-disclosure.d.ts +61 -0
  32. package/dist/composition/param-disclosure.js +1 -0
  33. package/dist/composition/plan-retry-ledger.d.ts +21 -0
  34. package/dist/composition/plan-retry-ledger.js +1 -0
  35. package/dist/composition/plan.d.ts +17 -2
  36. package/dist/composition/plan.js +1 -1
  37. package/dist/composition/product-card.d.ts +94 -0
  38. package/dist/composition/product-card.js +1 -0
  39. package/dist/composition/supply-chain-emit.d.ts +46 -0
  40. package/dist/composition/supply-chain-emit.js +1 -0
  41. package/dist/config/config-audit.spec.js +1 -1
  42. package/dist/config/config-warnings.d.ts +2 -0
  43. package/dist/config/config-warnings.js +1 -0
  44. package/dist/config/exposure.d.ts +2 -2
  45. package/dist/config/judgment.d.ts +31 -5
  46. package/dist/config/judgment.js +1 -1
  47. package/dist/config/judgment.spec.js +1 -1
  48. package/dist/config/match-policy-file.d.ts +34 -0
  49. package/dist/config/match-policy-file.js +1 -0
  50. package/dist/config/match-policy-file.spec.d.ts +1 -0
  51. package/dist/config/match-policy-file.spec.js +1 -0
  52. package/dist/config/rule-engine.d.ts +5 -5
  53. package/dist/config/rule-engine.js +1 -1
  54. package/dist/config/runtime.d.ts +0 -1
  55. package/dist/config/runtime.js +1 -1
  56. package/dist/config/severity.d.ts +0 -2
  57. package/dist/config/severity.js +1 -1
  58. package/dist/config/store-policy.spec.js +1 -1
  59. package/dist/config/template-params.d.ts +42 -0
  60. package/dist/config/template-params.js +1 -0
  61. package/dist/config/template-params.spec.d.ts +1 -0
  62. package/dist/config/template-params.spec.js +1 -0
  63. package/dist/customer/account-events.js +1 -1
  64. package/dist/data/api/api.spec.js +1 -1
  65. package/dist/data/api/cli.js +1 -1
  66. package/dist/data/api/server.d.ts +1 -0
  67. package/dist/data/api/server.js +1 -1
  68. package/dist/data/projection/store.d.ts +3 -1
  69. package/dist/data/projection/store.js +1 -1
  70. package/dist/data/projection/types.d.ts +32 -0
  71. package/dist/data/sync/cdc.d.ts +1 -2
  72. package/dist/data/sync/cdc.js +1 -1
  73. package/dist/data/sync/cdc.spec.js +1 -1
  74. package/dist/data/sync/store.d.ts +5 -0
  75. package/dist/data/sync/store.js +1 -1
  76. package/dist/data/sync/types.d.ts +2 -0
  77. package/dist/evaluation/acceptance.d.ts +8 -0
  78. package/dist/evaluation/acceptance.js +1 -1
  79. package/dist/evaluation/builtins/demand-match.js +1 -1
  80. package/dist/evaluation/builtins/graph-service.spec.js +1 -1
  81. package/dist/evaluation/capability.d.ts +2 -0
  82. package/dist/evaluation/category-match-rules.d.ts +0 -1
  83. package/dist/evaluation/category-match-rules.js +1 -1
  84. package/dist/evaluation/composer.d.ts +25 -0
  85. package/dist/evaluation/composer.js +1 -1
  86. package/dist/evaluation/engine.js +1 -1
  87. package/dist/evaluation/extract.d.ts +7 -0
  88. package/dist/evaluation/extract.js +1 -1
  89. package/dist/evaluation/game-strategy.d.ts +0 -3
  90. package/dist/evaluation/game-strategy.js +1 -1
  91. package/dist/evaluation/guard-scan.js +1 -1
  92. package/dist/evaluation/match-operation.d.ts +9 -0
  93. package/dist/evaluation/match-operation.js +1 -1
  94. package/dist/evaluation/match-policy-resolver.d.ts +9 -0
  95. package/dist/evaluation/match-policy-resolver.js +1 -0
  96. package/dist/evaluation/match-policy.d.ts +3 -1
  97. package/dist/evaluation/match-policy.js +1 -1
  98. package/dist/evaluation/region.d.ts +0 -6
  99. package/dist/evaluation/region.js +1 -1
  100. package/dist/evaluation/standards.d.ts +2 -1
  101. package/dist/evaluation/standards.js +1 -1
  102. package/dist/evaluation/structured-lines.d.ts +8 -0
  103. package/dist/evaluation/structured-lines.js +1 -0
  104. package/dist/evaluation/types.d.ts +6 -0
  105. package/dist/experience/realtime-feedback.js +1 -1
  106. package/dist/extensions/capability-manifest.d.ts +1 -0
  107. package/dist/extensions/capability-manifest.js +1 -1
  108. package/dist/extensions/capability.d.ts +91 -0
  109. package/dist/extensions/capability.js +1 -0
  110. package/dist/extensions/industry-audit.spec.js +1 -1
  111. package/dist/extensions/industry-pack.d.ts +13 -0
  112. package/dist/extensions/industry-pack.js +1 -1
  113. package/dist/extensions/modes.js +1 -1
  114. package/dist/extensions/registry.d.ts +0 -2
  115. package/dist/extensions/registry.js +1 -1
  116. package/dist/goal/GoalEngine.js +1 -1
  117. package/dist/graph/onchain/analyze.js +1 -1
  118. package/dist/graph/onchain/expand.js +1 -1
  119. package/dist/graph/onchain/exposure.js +1 -1
  120. package/dist/graph/onchain/facts.js +1 -1
  121. package/dist/graph/onchain/order-status.d.ts +0 -1
  122. package/dist/graph/onchain/order-status.js +1 -1
  123. package/dist/harness/recover.js +1 -1
  124. package/dist/harness/verify.d.ts +0 -3
  125. package/dist/harness/verify.js +1 -1
  126. package/dist/index.js +1 -1
  127. package/dist/intent/types.d.ts +0 -1
  128. package/dist/intent/types.js +1 -1
  129. package/dist/keeper/detectors.js +1 -1
  130. package/dist/keeper/types.d.ts +0 -1
  131. package/dist/keeper/types.js +1 -1
  132. package/dist/knowledge/allocation-risk.d.ts +1 -0
  133. package/dist/knowledge/allocation-risk.js +1 -1
  134. package/dist/knowledge/allocation-templates.js +1 -1
  135. package/dist/knowledge/allocator-rail-verifier.d.ts +6 -1
  136. package/dist/knowledge/allocator-rail-verifier.js +1 -1
  137. package/dist/knowledge/arb-fund-facts.d.ts +1 -0
  138. package/dist/knowledge/arb-fund-facts.js +1 -1
  139. package/dist/knowledge/arbitration-ledger.js +1 -1
  140. package/dist/knowledge/arbitration-puzzle.js +1 -1
  141. package/dist/knowledge/arbitration-risk.d.ts +1 -0
  142. package/dist/knowledge/arbitration-risk.js +1 -1
  143. package/dist/knowledge/audit-rules.d.ts +2 -2
  144. package/dist/knowledge/audit-rules.js +1 -1
  145. package/dist/knowledge/baselines/judgment-baselines.json +21 -2
  146. package/dist/knowledge/baselines/rules/allocation.json +6 -6
  147. package/dist/knowledge/baselines/rules/arb.json +2 -2
  148. package/dist/knowledge/baselines/rules/guard.json +11 -11
  149. package/dist/knowledge/baselines/rules/oracle.json +120 -0
  150. package/dist/knowledge/baselines/rules/order.json +1 -1
  151. package/dist/knowledge/baselines/rules/plan.json +385 -18
  152. package/dist/knowledge/baselines/rules/progress.json +20 -2
  153. package/dist/knowledge/baselines/semantic-facts.js +1 -1
  154. package/dist/knowledge/builtin-templates.d.ts +25 -1
  155. package/dist/knowledge/builtin-templates.js +1 -1
  156. package/dist/knowledge/catalog-facts.d.ts +4 -0
  157. package/dist/knowledge/catalog-facts.js +1 -0
  158. package/dist/knowledge/commission-landing.js +1 -1
  159. package/dist/knowledge/component-schema.d.ts +64 -0
  160. package/dist/knowledge/component-schema.js +1 -0
  161. package/dist/knowledge/contact-templates.d.ts +0 -1
  162. package/dist/knowledge/contact-templates.js +1 -1
  163. package/dist/knowledge/dynamic-pricing.js +1 -1
  164. package/dist/knowledge/entity-recipient-guard.js +1 -1
  165. package/dist/knowledge/event-semantics.js +1 -1
  166. package/dist/knowledge/fee-param-bindings.d.ts +26 -0
  167. package/dist/knowledge/fee-param-bindings.js +1 -0
  168. package/dist/knowledge/fund-layer.d.ts +1 -0
  169. package/dist/knowledge/fund-layer.js +1 -1
  170. package/dist/knowledge/game-scenarios.js +1 -1
  171. package/dist/knowledge/getting-started.d.ts +2 -2
  172. package/dist/knowledge/getting-started.js +1 -1
  173. package/dist/knowledge/guard-anchor-reach.js +1 -1
  174. package/dist/knowledge/guard-binding-table.d.ts +52 -0
  175. package/dist/knowledge/guard-binding-table.js +1 -0
  176. package/dist/knowledge/guard-binding-verifier.d.ts +30 -0
  177. package/dist/knowledge/guard-binding-verifier.js +1 -0
  178. package/dist/knowledge/guard-bindings.js +1 -1
  179. package/dist/knowledge/guard-blueprint.d.ts +68 -0
  180. package/dist/knowledge/guard-blueprint.js +1 -0
  181. package/dist/knowledge/guard-design-patterns.d.ts +1 -1
  182. package/dist/knowledge/guard-design-patterns.js +1 -1
  183. package/dist/knowledge/guard-field-cognition.js +1 -1
  184. package/dist/knowledge/guard-host-context.d.ts +24 -0
  185. package/dist/knowledge/guard-host-context.js +1 -0
  186. package/dist/knowledge/guard-ledger.js +1 -1
  187. package/dist/knowledge/guard-lint.d.ts +1 -0
  188. package/dist/knowledge/guard-lint.js +1 -1
  189. package/dist/knowledge/guard-node-gates.d.ts +3 -0
  190. package/dist/knowledge/guard-node-gates.js +1 -1
  191. package/dist/knowledge/guard-puzzle.js +1 -1
  192. package/dist/knowledge/guard-render.js +1 -1
  193. package/dist/knowledge/guard-risk.js +1 -1
  194. package/dist/knowledge/guard-submission-prompt.d.ts +11 -0
  195. package/dist/knowledge/guard-submission-prompt.js +1 -1
  196. package/dist/knowledge/guard-templates.d.ts +1 -1
  197. package/dist/knowledge/guard-templates.js +1 -1
  198. package/dist/knowledge/guard-translation.js +1 -1
  199. package/dist/knowledge/index.d.ts +1 -1
  200. package/dist/knowledge/index.js +1 -1
  201. package/dist/knowledge/industry-generalizer.d.ts +6 -1
  202. package/dist/knowledge/industry-generalizer.js +1 -1
  203. package/dist/knowledge/industry-registry.js +1 -1
  204. package/dist/knowledge/industry-strategy.js +1 -1
  205. package/dist/knowledge/jsonrpc-enum.d.ts +52 -3
  206. package/dist/knowledge/jsonrpc-enum.js +1 -1
  207. package/dist/knowledge/knob-docs.d.ts +5 -0
  208. package/dist/knowledge/knob-docs.js +1 -0
  209. package/dist/knowledge/machine-templates.js +1 -1
  210. package/dist/knowledge/machine-topology.js +1 -1
  211. package/dist/knowledge/machine-translation.js +1 -1
  212. package/dist/knowledge/object-dependency.d.ts +31 -0
  213. package/dist/knowledge/object-dependency.js +1 -0
  214. package/dist/knowledge/onchain-constants.d.ts +4 -0
  215. package/dist/knowledge/onchain-constants.js +1 -1
  216. package/dist/knowledge/order-ledger.js +1 -1
  217. package/dist/knowledge/param-schema.d.ts +93 -0
  218. package/dist/knowledge/param-schema.js +1 -0
  219. package/dist/knowledge/param-tiers.d.ts +25 -0
  220. package/dist/knowledge/param-tiers.js +1 -0
  221. package/dist/knowledge/passport-ledger.d.ts +1 -1
  222. package/dist/knowledge/passport-ledger.js +1 -1
  223. package/dist/knowledge/path-oracle/coverage.d.ts +16 -0
  224. package/dist/knowledge/path-oracle/coverage.js +1 -0
  225. package/dist/knowledge/path-oracle/index.d.ts +5 -0
  226. package/dist/knowledge/path-oracle/index.js +1 -0
  227. package/dist/knowledge/path-oracle/products/food-delivery.d.ts +2 -0
  228. package/dist/knowledge/path-oracle/products/food-delivery.js +1 -0
  229. package/dist/knowledge/path-oracle/schema.d.ts +188 -0
  230. package/dist/knowledge/path-oracle/schema.js +1 -0
  231. package/dist/knowledge/pattern-resolutions.d.ts +108 -0
  232. package/dist/knowledge/pattern-resolutions.js +1 -0
  233. package/dist/knowledge/progress-ledger.js +1 -1
  234. package/dist/knowledge/progress-risk.js +1 -1
  235. package/dist/knowledge/projection.spec.js +1 -1
  236. package/dist/knowledge/protocol-facts.js +1 -1
  237. package/dist/knowledge/requirement-families.d.ts +13 -0
  238. package/dist/knowledge/requirement-families.js +1 -0
  239. package/dist/knowledge/reward-ledger.js +1 -1
  240. package/dist/knowledge/safety-rules.js +1 -1
  241. package/dist/knowledge/scenario-modes.d.ts +2 -0
  242. package/dist/knowledge/scenario-modes.js +1 -1
  243. package/dist/knowledge/scenario-topology.js +1 -1
  244. package/dist/knowledge/semantic-ir.d.ts +4 -0
  245. package/dist/knowledge/semantic-ir.js +1 -1
  246. package/dist/knowledge/service-allocation-semantics.js +1 -1
  247. package/dist/knowledge/service-ledger.d.ts +1 -1
  248. package/dist/knowledge/service-ledger.js +1 -1
  249. package/dist/knowledge/service-templates.js +1 -1
  250. package/dist/knowledge/sku-name-gate.d.ts +17 -0
  251. package/dist/knowledge/sku-name-gate.js +1 -0
  252. package/dist/knowledge/strategy-manuals.d.ts +1 -1
  253. package/dist/knowledge/strategy-manuals.js +1 -1
  254. package/dist/knowledge/supply-chain.d.ts +9 -0
  255. package/dist/knowledge/supply-chain.js +1 -1
  256. package/dist/knowledge/template-loader.d.ts +114 -6
  257. package/dist/knowledge/template-loader.js +1 -1
  258. package/dist/knowledge/template-nav.d.ts +9 -0
  259. package/dist/knowledge/template-nav.js +1 -0
  260. package/dist/knowledge/template-prose.d.ts +1 -1
  261. package/dist/knowledge/template-registry.js +1 -1
  262. package/dist/knowledge/template-scanner.d.ts +95 -0
  263. package/dist/knowledge/template-scanner.js +1 -1
  264. package/dist/knowledge/template-test-profiles.d.ts +17 -0
  265. package/dist/knowledge/template-test-profiles.js +1 -0
  266. package/dist/knowledge/template-validation.d.ts +1 -0
  267. package/dist/knowledge/template-validation.js +1 -1
  268. package/dist/knowledge/tools-reference.js +1 -1
  269. package/dist/knowledge/treasury-templates.js +1 -1
  270. package/dist/knowledge/workflow-guidance.d.ts +5 -0
  271. package/dist/knowledge/workflow-guidance.js +1 -1
  272. package/dist/monitor/MonitorLoop.js +1 -1
  273. package/dist/participation/radar-core.js +1 -1
  274. package/dist/participation/time-window.d.ts +37 -0
  275. package/dist/participation/time-window.js +1 -0
  276. package/dist/persona/address-format.d.ts +0 -1
  277. package/dist/persona/address-format.js +1 -1
  278. package/dist/persona/bridge.js +1 -1
  279. package/dist/persona/index.d.ts +0 -2
  280. package/dist/persona/index.js +1 -1
  281. package/dist/persona/model.js +1 -1
  282. package/dist/persona/persona-audit.spec.js +1 -1
  283. package/dist/persona/types.d.ts +6 -0
  284. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  285. package/dist/playbooks/service-build/game-theory.d.ts +2 -2
  286. package/dist/playbooks/service-build/intent-analyzer.js +1 -1
  287. package/dist/playbooks/service-build/machine-panorama.d.ts +1 -0
  288. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  289. package/dist/playbooks/service-build/merchant-guide.d.ts +52 -22
  290. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  291. package/dist/playbooks/service-build/migration-planner.d.ts +2 -0
  292. package/dist/playbooks/service-build/migration-planner.js +1 -1
  293. package/dist/playbooks/service-build/mode-actions.js +1 -1
  294. package/dist/playbooks/service-build/object-panorama.d.ts +8 -0
  295. package/dist/playbooks/service-build/object-panorama.js +1 -1
  296. package/dist/playbooks/service-build/participation-radar.d.ts +1 -0
  297. package/dist/playbooks/service-build/participation-radar.js +1 -1
  298. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  299. package/dist/playbooks/service-build/reverse-mapping.d.ts +6 -0
  300. package/dist/playbooks/service-build/reverse-mapping.js +1 -1
  301. package/dist/playbooks/service-build/service-panorama.d.ts +2 -0
  302. package/dist/playbooks/service-build/service-panorama.js +1 -1
  303. package/dist/playbooks/service-build/service-quote.js +1 -1
  304. package/dist/playbooks/service-build/service-quote.spec.js +1 -1
  305. package/dist/playbooks/service-build/workflow-design-assessment.d.ts +10 -1
  306. package/dist/playbooks/service-build/workflow-design-assessment.js +1 -1
  307. package/dist/relationship/registry.js +1 -1
  308. package/dist/review/index.js +1 -1
  309. package/dist/review/repository.js +1 -1
  310. package/dist/runtime/instance-registry.d.ts +7 -1
  311. package/dist/runtime/instance-registry.js +1 -1
  312. package/dist/safety/confirm-gate.js +1 -1
  313. package/dist/schema/benchmark-migration/index.d.ts +106 -0
  314. package/dist/schema/benchmark-migration/index.js +1 -1
  315. package/dist/schema/call/allocation.d.ts +15 -6
  316. package/dist/schema/call/allocation.js +1 -1
  317. package/dist/schema/call/arbitration.js +1 -1
  318. package/dist/schema/call/base.d.ts +264 -0
  319. package/dist/schema/call/base.js +1 -1
  320. package/dist/schema/call/bridge.d.ts +34 -6
  321. package/dist/schema/call/demand.d.ts +15 -6
  322. package/dist/schema/call/demand.js +1 -1
  323. package/dist/schema/call/error-codes.d.ts +1 -1
  324. package/dist/schema/call/error-codes.js +1 -1
  325. package/dist/schema/call/guard.d.ts +8 -8
  326. package/dist/schema/call/guard.js +1 -1
  327. package/dist/schema/call/handler.d.ts +3 -0
  328. package/dist/schema/call/handler.js +1 -1
  329. package/dist/schema/call/machine.d.ts +32 -8
  330. package/dist/schema/call/machine.js +1 -1
  331. package/dist/schema/call/order.d.ts +26 -8
  332. package/dist/schema/call/order.js +1 -1
  333. package/dist/schema/call/payment.d.ts +20 -8
  334. package/dist/schema/call/payment.js +1 -1
  335. package/dist/schema/call/permission-handler.js +1 -1
  336. package/dist/schema/call/permission.d.ts +330 -114
  337. package/dist/schema/call/permission.js +1 -1
  338. package/dist/schema/call/personal.d.ts +10 -4
  339. package/dist/schema/call/personal.js +1 -1
  340. package/dist/schema/call/progress.d.ts +16 -4
  341. package/dist/schema/call/reward.d.ts +10 -4
  342. package/dist/schema/call/reward.js +1 -1
  343. package/dist/schema/call/semantic.d.ts +1 -0
  344. package/dist/schema/call/semantic.js +1 -1
  345. package/dist/schema/call/service.d.ts +131 -43
  346. package/dist/schema/call/service.js +1 -1
  347. package/dist/schema/call/treasury.d.ts +15 -6
  348. package/dist/schema/call/treasury.js +1 -1
  349. package/dist/schema/common/index.js +1 -1
  350. package/dist/schema/config/index.d.ts +61 -0
  351. package/dist/schema/config/index.js +1 -1
  352. package/dist/schema/envelope-unify.d.ts +4 -0
  353. package/dist/schema/envelope-unify.js +1 -0
  354. package/dist/schema/evaluation/index.d.ts +224 -19
  355. package/dist/schema/evaluation/index.js +1 -1
  356. package/dist/schema/goal/index.d.ts +47 -0
  357. package/dist/schema/goal/planning.d.ts +116 -1
  358. package/dist/schema/goal/planning.js +1 -1
  359. package/dist/schema/industry-pack/index.d.ts +166 -6
  360. package/dist/schema/industry-pack/index.js +1 -1
  361. package/dist/schema/industry-pack/modes.d.ts +6 -6
  362. package/dist/schema/keeper/index.d.ts +26 -0
  363. package/dist/schema/local/index.d.ts +157 -0
  364. package/dist/schema/local/index.js +1 -1
  365. package/dist/schema/local/wip.d.ts +6 -0
  366. package/dist/schema/local/wip.js +1 -1
  367. package/dist/schema/messenger/index.d.ts +28 -0
  368. package/dist/schema/messenger/index.js +1 -1
  369. package/dist/schema/operations.d.ts +343 -84
  370. package/dist/schema/operations.js +1 -1
  371. package/dist/schema/persona/index.d.ts +2907 -640
  372. package/dist/schema/persona/index.js +1 -1
  373. package/dist/schema/query/bi.d.ts +251 -4
  374. package/dist/schema/query/bi.js +1 -1
  375. package/dist/schema/query/index.d.ts +271 -78
  376. package/dist/schema/query/index.js +1 -1
  377. package/dist/schema/schema-query/index.d.ts +1 -1
  378. package/dist/schema/schema-query/index.js +1 -1
  379. package/dist/schema/schema-version.js +1 -1
  380. package/dist/schema/utils/permission-machine-check.d.ts +2 -0
  381. package/dist/schema/utils/permission-machine-check.js +1 -1
  382. package/dist/schema/watch/index.d.ts +16 -0
  383. package/dist/schema/watch/index.js +1 -1
  384. package/dist/schema/workflow/index.d.ts +2 -2
  385. package/dist/schema/workflow/index.js +1 -1
  386. package/dist/schema-query-impl/index.d.ts +1 -1
  387. package/dist/schema-query-impl/index.js +1 -1
  388. package/dist/schemas/account_operation.output.json +98 -2
  389. package/dist/schemas/benchmark_migration_operation.output.json +341 -12
  390. package/dist/schemas/benchmark_migration_operation.schema.json +42 -3
  391. package/dist/schemas/bridge_operation.output.json +98 -2
  392. package/dist/schemas/bridge_operation.schema.json +5 -5
  393. package/dist/schemas/config_operation.output.json +352 -0
  394. package/dist/schemas/config_operation.schema.json +20 -2
  395. package/dist/schemas/evaluation_operation.output.json +586 -4
  396. package/dist/schemas/evaluation_operation.schema.json +194 -3
  397. package/dist/schemas/goal_operation.schema.json +183 -0
  398. package/dist/schemas/guard2file.schema.json +1 -1
  399. package/dist/schemas/index.json +1 -1
  400. package/dist/schemas/industry_pack_operation.output.json +771 -1
  401. package/dist/schemas/industry_pack_operation.schema.json +28 -4
  402. package/dist/schemas/keeper_operation.output.json +96 -2
  403. package/dist/schemas/local_cache_operation.output.json +98 -2
  404. package/dist/schemas/local_history_operation.output.json +98 -2
  405. package/dist/schemas/local_info_operation.output.json +98 -2
  406. package/dist/schemas/local_mark_operation.output.json +98 -2
  407. package/dist/schemas/machineNode2file.schema.json +1 -1
  408. package/dist/schemas/messenger_operation.output.json +107 -2
  409. package/dist/schemas/messenger_operation.schema.json +41 -34
  410. package/dist/schemas/monitor_events.output.json +96 -2
  411. package/dist/schemas/monitor_subscription.output.json +96 -2
  412. package/dist/schemas/onchain_events.output.json +108 -14
  413. package/dist/schemas/onchain_operations.output.json +326 -11
  414. package/dist/schemas/onchain_operations.schema.json +1343 -734
  415. package/dist/schemas/onchain_operations_allocation.schema.json +35 -19
  416. package/dist/schemas/onchain_operations_arbitration.schema.json +16 -8
  417. package/dist/schemas/onchain_operations_contact.schema.json +12 -4
  418. package/dist/schemas/onchain_operations_demand.schema.json +33 -17
  419. package/dist/schemas/onchain_operations_gen_passport.schema.json +12 -4
  420. package/dist/schemas/onchain_operations_gen_proof.schema.json +1 -1
  421. package/dist/schemas/onchain_operations_guard.schema.json +297 -111
  422. package/dist/schemas/onchain_operations_machine.schema.json +56 -39
  423. package/dist/schemas/onchain_operations_order.schema.json +67 -42
  424. package/dist/schemas/onchain_operations_payment.schema.json +27 -12
  425. package/dist/schemas/onchain_operations_permission.schema.json +363 -232
  426. package/dist/schemas/onchain_operations_personal.schema.json +43 -28
  427. package/dist/schemas/onchain_operations_progress.schema.json +49 -32
  428. package/dist/schemas/onchain_operations_proof.schema.json +12 -4
  429. package/dist/schemas/onchain_operations_repository.schema.json +17 -8
  430. package/dist/schemas/onchain_operations_reward.schema.json +36 -20
  431. package/dist/schemas/onchain_operations_service.schema.json +230 -130
  432. package/dist/schemas/onchain_operations_treasury.schema.json +36 -20
  433. package/dist/schemas/onchain_table_data.output.json +276 -19
  434. package/dist/schemas/onchain_table_data.schema.json +104 -64
  435. package/dist/schemas/persona_operation.output.json +7752 -0
  436. package/dist/schemas/persona_operation.schema.json +1232 -4
  437. package/dist/schemas/query_toolkit.output.json +1054 -146
  438. package/dist/schemas/query_toolkit.schema.json +144 -13
  439. package/dist/schemas/schema_query.schema.json +1 -1
  440. package/dist/schemas/watch_operation.output.json +86 -3
  441. package/dist/schemas/wip_file.output.json +8 -0
  442. package/dist/schemas/workflow_operation.schema.json +5 -4
  443. package/dist/schemas/wowok_buildin_info.schema.json +1 -1
  444. package/dist/task/playbook.js +1 -1
  445. package/dist/tools/handlers/benchmark-migration.d.ts +12 -3
  446. package/dist/tools/handlers/benchmark-migration.js +1 -1
  447. package/dist/tools/handlers/config.js +1 -1
  448. package/dist/tools/handlers/evaluation.js +1 -1
  449. package/dist/tools/handlers/evaluation.spec.js +1 -1
  450. package/dist/tools/handlers/industry-pack.js +1 -1
  451. package/dist/tools/handlers/messenger.js +1 -1
  452. package/dist/tools/handlers/onchain.d.ts +24 -0
  453. package/dist/tools/handlers/onchain.js +1 -1
  454. package/dist/tools/handlers/persona.js +1 -1
  455. package/dist/tools/handlers/query.d.ts +8 -0
  456. package/dist/tools/handlers/query.js +1 -1
  457. package/dist/tools/handlers/winner-derivation.d.ts +20 -0
  458. package/dist/tools/handlers/winner-derivation.js +1 -0
  459. package/dist/tools/handlers/wip-upload.js +1 -1
  460. package/dist/tools/index.d.ts +1 -0
  461. package/dist/tools/index.js +1 -1
  462. package/dist/tools/registry/business.js +1 -1
  463. package/dist/tools/registry/config.js +1 -1
  464. package/dist/tools/registry/evaluation.js +1 -1
  465. package/dist/tools/registry/identity.js +1 -1
  466. package/dist/tools/registry/onchain.js +1 -1
  467. package/dist/tools/registry/query.js +1 -1
  468. package/dist/tools/sanitize-output.js +1 -1
  469. package/dist/tools/sanitize-output.spec.js +1 -1
  470. package/dist/tools/transport-integrity.d.ts +7 -0
  471. package/dist/tools/transport-integrity.js +1 -0
  472. package/dist/tools/types.d.ts +1 -0
  473. package/dist/tools/upgrade-check.d.ts +22 -0
  474. package/dist/tools/upgrade-check.js +1 -1
  475. package/dist/tools/wrap.d.ts +6 -1
  476. package/dist/tools/wrap.js +1 -1
  477. package/package.json +7 -6
  478. package/dist/extensions/business-modules.d.ts +0 -54
  479. package/dist/extensions/business-modules.js +0 -1
  480. package/dist/schemas/guard-templates.json +0 -379
@@ -2201,6 +2201,25 @@
2201
2201
  ],
2202
2202
  "additionalProperties": false
2203
2203
  }
2204
+ },
2205
+ "match": {
2206
+ "type": "array",
2207
+ "items": {
2208
+ "type": "object",
2209
+ "properties": {
2210
+ "min": {
2211
+ "type": "number"
2212
+ },
2213
+ "word": {
2214
+ "type": "string"
2215
+ }
2216
+ },
2217
+ "required": [
2218
+ "min",
2219
+ "word"
2220
+ ],
2221
+ "additionalProperties": false
2222
+ }
2204
2223
  }
2205
2224
  },
2206
2225
  "additionalProperties": false
@@ -2493,6 +2512,9 @@
2493
2512
  "capabilities": {
2494
2513
  "type": "number"
2495
2514
  },
2515
+ "buyable": {
2516
+ "type": "number"
2517
+ },
2496
2518
  "tags": {
2497
2519
  "type": "number"
2498
2520
  },
@@ -3004,6 +3026,392 @@
3004
3026
  }
3005
3027
  },
3006
3028
  "additionalProperties": false
3029
+ },
3030
+ "match": {
3031
+ "type": "object",
3032
+ "properties": {
3033
+ "demand_to_supply": {
3034
+ "type": "object",
3035
+ "properties": {
3036
+ "policy_id": {
3037
+ "type": "string",
3038
+ "minLength": 1
3039
+ },
3040
+ "version": {
3041
+ "type": "integer",
3042
+ "minimum": 0,
3043
+ "maximum": 9007199254740991
3044
+ },
3045
+ "direction": {
3046
+ "description": "Default demand_to_supply. A demand_to_supply policy drives match_discover; a supply_to_demand policy drives demand_present / discover_demands (and is rejected by match_discover).",
3047
+ "type": "string",
3048
+ "enum": [
3049
+ "demand_to_supply",
3050
+ "supply_to_demand"
3051
+ ]
3052
+ },
3053
+ "unknown_policy": {
3054
+ "description": "What a gate with missing input does (K5-05 axiom 3). Default neutral_score (= pass, reported).",
3055
+ "type": "string",
3056
+ "enum": [
3057
+ "pass",
3058
+ "drop",
3059
+ "neutral_score"
3060
+ ]
3061
+ },
3062
+ "gates": {
3063
+ "type": "array",
3064
+ "items": {
3065
+ "type": "object",
3066
+ "properties": {
3067
+ "dim": {
3068
+ "type": "string",
3069
+ "description": "Gate dimension. Enforced client-side: live, price, arb, compensation, machine, messenger, buy_guard, wip_verify, text, owner. Others are reported as ignored (not enforceable on-device yet)."
3070
+ },
3071
+ "op": {
3072
+ "description": "Comparison operator (eq/lte/gte/in/not_in/must_contain/must_not_contain) — validated per dim at apply time.",
3073
+ "type": "string"
3074
+ },
3075
+ "value": {
3076
+ "anyOf": [
3077
+ {
3078
+ "type": "boolean"
3079
+ },
3080
+ {
3081
+ "type": "number"
3082
+ },
3083
+ {
3084
+ "type": "string"
3085
+ },
3086
+ {
3087
+ "type": "array",
3088
+ "items": {
3089
+ "type": "string"
3090
+ }
3091
+ }
3092
+ ]
3093
+ },
3094
+ "params": {
3095
+ "description": "Extra params; `from_budget: true` on a price gate uses the request budget as the threshold.",
3096
+ "type": "object",
3097
+ "propertyNames": {
3098
+ "type": "string"
3099
+ },
3100
+ "additionalProperties": {}
3101
+ }
3102
+ },
3103
+ "required": [
3104
+ "dim"
3105
+ ],
3106
+ "additionalProperties": false
3107
+ }
3108
+ },
3109
+ "excludes": {
3110
+ "type": "array",
3111
+ "items": {
3112
+ "type": "object",
3113
+ "properties": {
3114
+ "dim": {
3115
+ "type": "string",
3116
+ "description": "Exclude dimension. Enforced client-side: blacklist (objects/owners lists). anti_cheat/structure dims are reported as ignored (no client-side facet)."
3117
+ },
3118
+ "objects": {
3119
+ "type": "array",
3120
+ "items": {
3121
+ "type": "string"
3122
+ }
3123
+ },
3124
+ "owners": {
3125
+ "type": "array",
3126
+ "items": {
3127
+ "type": "string"
3128
+ }
3129
+ },
3130
+ "flags": {
3131
+ "type": "array",
3132
+ "items": {
3133
+ "type": "string"
3134
+ }
3135
+ },
3136
+ "source": {
3137
+ "type": "array",
3138
+ "items": {
3139
+ "type": "string"
3140
+ }
3141
+ },
3142
+ "rule": {
3143
+ "type": "string"
3144
+ }
3145
+ },
3146
+ "required": [
3147
+ "dim"
3148
+ ],
3149
+ "additionalProperties": false
3150
+ }
3151
+ },
3152
+ "weights": {
3153
+ "description": "demand_match rule id → weight (region/industry/price/trust/capabilities/tags/acceptance). Unregistered ids are reported as ignored.",
3154
+ "type": "object",
3155
+ "propertyNames": {
3156
+ "type": "string"
3157
+ },
3158
+ "additionalProperties": {
3159
+ "type": "number",
3160
+ "minimum": 0
3161
+ }
3162
+ },
3163
+ "rerank": {
3164
+ "type": "object",
3165
+ "properties": {
3166
+ "diversity": {
3167
+ "description": "Greedy per-group cap over the score-ordered list. `permission` is not enforceable client-side yet (reported ignored); use `owner`.",
3168
+ "type": "object",
3169
+ "properties": {
3170
+ "by": {
3171
+ "type": "string",
3172
+ "enum": [
3173
+ "owner",
3174
+ "permission"
3175
+ ]
3176
+ },
3177
+ "max_per_group": {
3178
+ "type": "integer",
3179
+ "minimum": 1,
3180
+ "maximum": 9007199254740991
3181
+ }
3182
+ },
3183
+ "required": [
3184
+ "by",
3185
+ "max_per_group"
3186
+ ],
3187
+ "additionalProperties": false
3188
+ },
3189
+ "explore": {},
3190
+ "llm": {},
3191
+ "fairness": {}
3192
+ },
3193
+ "additionalProperties": false
3194
+ },
3195
+ "recall": {
3196
+ "description": "Server/recall directives — accepted for portability, not enforceable from the client (reported ignored)."
3197
+ },
3198
+ "verify": {
3199
+ "description": "Facet verification directives — accepted for portability, not enforceable client-side (reported ignored)."
3200
+ },
3201
+ "output": {
3202
+ "type": "object",
3203
+ "properties": {
3204
+ "top_n": {
3205
+ "type": "integer",
3206
+ "minimum": 1,
3207
+ "maximum": 500
3208
+ },
3209
+ "explain": {
3210
+ "type": "boolean"
3211
+ },
3212
+ "evidence_chain": {},
3213
+ "coverage_report": {}
3214
+ },
3215
+ "additionalProperties": false
3216
+ }
3217
+ },
3218
+ "required": [
3219
+ "policy_id"
3220
+ ],
3221
+ "additionalProperties": false
3222
+ },
3223
+ "supply_to_demand": {
3224
+ "type": "object",
3225
+ "properties": {
3226
+ "policy_id": {
3227
+ "type": "string",
3228
+ "minLength": 1
3229
+ },
3230
+ "version": {
3231
+ "type": "integer",
3232
+ "minimum": 0,
3233
+ "maximum": 9007199254740991
3234
+ },
3235
+ "direction": {
3236
+ "description": "Default demand_to_supply. A demand_to_supply policy drives match_discover; a supply_to_demand policy drives demand_present / discover_demands (and is rejected by match_discover).",
3237
+ "type": "string",
3238
+ "enum": [
3239
+ "demand_to_supply",
3240
+ "supply_to_demand"
3241
+ ]
3242
+ },
3243
+ "unknown_policy": {
3244
+ "description": "What a gate with missing input does (K5-05 axiom 3). Default neutral_score (= pass, reported).",
3245
+ "type": "string",
3246
+ "enum": [
3247
+ "pass",
3248
+ "drop",
3249
+ "neutral_score"
3250
+ ]
3251
+ },
3252
+ "gates": {
3253
+ "type": "array",
3254
+ "items": {
3255
+ "type": "object",
3256
+ "properties": {
3257
+ "dim": {
3258
+ "type": "string",
3259
+ "description": "Gate dimension. Enforced client-side: live, price, arb, compensation, machine, messenger, buy_guard, wip_verify, text, owner. Others are reported as ignored (not enforceable on-device yet)."
3260
+ },
3261
+ "op": {
3262
+ "description": "Comparison operator (eq/lte/gte/in/not_in/must_contain/must_not_contain) — validated per dim at apply time.",
3263
+ "type": "string"
3264
+ },
3265
+ "value": {
3266
+ "anyOf": [
3267
+ {
3268
+ "type": "boolean"
3269
+ },
3270
+ {
3271
+ "type": "number"
3272
+ },
3273
+ {
3274
+ "type": "string"
3275
+ },
3276
+ {
3277
+ "type": "array",
3278
+ "items": {
3279
+ "type": "string"
3280
+ }
3281
+ }
3282
+ ]
3283
+ },
3284
+ "params": {
3285
+ "description": "Extra params; `from_budget: true` on a price gate uses the request budget as the threshold.",
3286
+ "type": "object",
3287
+ "propertyNames": {
3288
+ "type": "string"
3289
+ },
3290
+ "additionalProperties": {}
3291
+ }
3292
+ },
3293
+ "required": [
3294
+ "dim"
3295
+ ],
3296
+ "additionalProperties": false
3297
+ }
3298
+ },
3299
+ "excludes": {
3300
+ "type": "array",
3301
+ "items": {
3302
+ "type": "object",
3303
+ "properties": {
3304
+ "dim": {
3305
+ "type": "string",
3306
+ "description": "Exclude dimension. Enforced client-side: blacklist (objects/owners lists). anti_cheat/structure dims are reported as ignored (no client-side facet)."
3307
+ },
3308
+ "objects": {
3309
+ "type": "array",
3310
+ "items": {
3311
+ "type": "string"
3312
+ }
3313
+ },
3314
+ "owners": {
3315
+ "type": "array",
3316
+ "items": {
3317
+ "type": "string"
3318
+ }
3319
+ },
3320
+ "flags": {
3321
+ "type": "array",
3322
+ "items": {
3323
+ "type": "string"
3324
+ }
3325
+ },
3326
+ "source": {
3327
+ "type": "array",
3328
+ "items": {
3329
+ "type": "string"
3330
+ }
3331
+ },
3332
+ "rule": {
3333
+ "type": "string"
3334
+ }
3335
+ },
3336
+ "required": [
3337
+ "dim"
3338
+ ],
3339
+ "additionalProperties": false
3340
+ }
3341
+ },
3342
+ "weights": {
3343
+ "description": "demand_match rule id → weight (region/industry/price/trust/capabilities/tags/acceptance). Unregistered ids are reported as ignored.",
3344
+ "type": "object",
3345
+ "propertyNames": {
3346
+ "type": "string"
3347
+ },
3348
+ "additionalProperties": {
3349
+ "type": "number",
3350
+ "minimum": 0
3351
+ }
3352
+ },
3353
+ "rerank": {
3354
+ "type": "object",
3355
+ "properties": {
3356
+ "diversity": {
3357
+ "description": "Greedy per-group cap over the score-ordered list. `permission` is not enforceable client-side yet (reported ignored); use `owner`.",
3358
+ "type": "object",
3359
+ "properties": {
3360
+ "by": {
3361
+ "type": "string",
3362
+ "enum": [
3363
+ "owner",
3364
+ "permission"
3365
+ ]
3366
+ },
3367
+ "max_per_group": {
3368
+ "type": "integer",
3369
+ "minimum": 1,
3370
+ "maximum": 9007199254740991
3371
+ }
3372
+ },
3373
+ "required": [
3374
+ "by",
3375
+ "max_per_group"
3376
+ ],
3377
+ "additionalProperties": false
3378
+ },
3379
+ "explore": {},
3380
+ "llm": {},
3381
+ "fairness": {}
3382
+ },
3383
+ "additionalProperties": false
3384
+ },
3385
+ "recall": {
3386
+ "description": "Server/recall directives — accepted for portability, not enforceable from the client (reported ignored)."
3387
+ },
3388
+ "verify": {
3389
+ "description": "Facet verification directives — accepted for portability, not enforceable client-side (reported ignored)."
3390
+ },
3391
+ "output": {
3392
+ "type": "object",
3393
+ "properties": {
3394
+ "top_n": {
3395
+ "type": "integer",
3396
+ "minimum": 1,
3397
+ "maximum": 500
3398
+ },
3399
+ "explain": {
3400
+ "type": "boolean"
3401
+ },
3402
+ "evidence_chain": {},
3403
+ "coverage_report": {}
3404
+ },
3405
+ "additionalProperties": false
3406
+ }
3407
+ },
3408
+ "required": [
3409
+ "policy_id"
3410
+ ],
3411
+ "additionalProperties": false
3412
+ }
3413
+ },
3414
+ "additionalProperties": false
3007
3415
  }
3008
3416
  },
3009
3417
  "additionalProperties": false
@@ -5084,7 +5492,26 @@
5084
5492
  "comment": {
5085
5493
  "type": "string"
5086
5494
  },
5087
- "trust": {
5495
+ "trust": {
5496
+ "type": "array",
5497
+ "items": {
5498
+ "type": "object",
5499
+ "properties": {
5500
+ "min": {
5501
+ "type": "number"
5502
+ },
5503
+ "word": {
5504
+ "type": "string"
5505
+ }
5506
+ },
5507
+ "required": [
5508
+ "min",
5509
+ "word"
5510
+ ],
5511
+ "additionalProperties": false
5512
+ }
5513
+ },
5514
+ "risk": {
5088
5515
  "type": "array",
5089
5516
  "items": {
5090
5517
  "type": "object",
@@ -5103,7 +5530,7 @@
5103
5530
  "additionalProperties": false
5104
5531
  }
5105
5532
  },
5106
- "risk": {
5533
+ "match": {
5107
5534
  "type": "array",
5108
5535
  "items": {
5109
5536
  "type": "object",
@@ -5413,6 +5840,9 @@
5413
5840
  "capabilities": {
5414
5841
  "type": "number"
5415
5842
  },
5843
+ "buyable": {
5844
+ "type": "number"
5845
+ },
5416
5846
  "tags": {
5417
5847
  "type": "number"
5418
5848
  },
@@ -5924,9 +6354,399 @@
5924
6354
  }
5925
6355
  },
5926
6356
  "additionalProperties": false
6357
+ },
6358
+ "match": {
6359
+ "type": "object",
6360
+ "properties": {
6361
+ "demand_to_supply": {
6362
+ "type": "object",
6363
+ "properties": {
6364
+ "policy_id": {
6365
+ "type": "string",
6366
+ "minLength": 1
6367
+ },
6368
+ "version": {
6369
+ "type": "integer",
6370
+ "minimum": 0,
6371
+ "maximum": 9007199254740991
6372
+ },
6373
+ "direction": {
6374
+ "description": "Default demand_to_supply. A demand_to_supply policy drives match_discover; a supply_to_demand policy drives demand_present / discover_demands (and is rejected by match_discover).",
6375
+ "type": "string",
6376
+ "enum": [
6377
+ "demand_to_supply",
6378
+ "supply_to_demand"
6379
+ ]
6380
+ },
6381
+ "unknown_policy": {
6382
+ "description": "What a gate with missing input does (K5-05 axiom 3). Default neutral_score (= pass, reported).",
6383
+ "type": "string",
6384
+ "enum": [
6385
+ "pass",
6386
+ "drop",
6387
+ "neutral_score"
6388
+ ]
6389
+ },
6390
+ "gates": {
6391
+ "type": "array",
6392
+ "items": {
6393
+ "type": "object",
6394
+ "properties": {
6395
+ "dim": {
6396
+ "type": "string",
6397
+ "description": "Gate dimension. Enforced client-side: live, price, arb, compensation, machine, messenger, buy_guard, wip_verify, text, owner. Others are reported as ignored (not enforceable on-device yet)."
6398
+ },
6399
+ "op": {
6400
+ "description": "Comparison operator (eq/lte/gte/in/not_in/must_contain/must_not_contain) — validated per dim at apply time.",
6401
+ "type": "string"
6402
+ },
6403
+ "value": {
6404
+ "anyOf": [
6405
+ {
6406
+ "type": "boolean"
6407
+ },
6408
+ {
6409
+ "type": "number"
6410
+ },
6411
+ {
6412
+ "type": "string"
6413
+ },
6414
+ {
6415
+ "type": "array",
6416
+ "items": {
6417
+ "type": "string"
6418
+ }
6419
+ }
6420
+ ]
6421
+ },
6422
+ "params": {
6423
+ "description": "Extra params; `from_budget: true` on a price gate uses the request budget as the threshold.",
6424
+ "type": "object",
6425
+ "propertyNames": {
6426
+ "type": "string"
6427
+ },
6428
+ "additionalProperties": {}
6429
+ }
6430
+ },
6431
+ "required": [
6432
+ "dim"
6433
+ ],
6434
+ "additionalProperties": false
6435
+ }
6436
+ },
6437
+ "excludes": {
6438
+ "type": "array",
6439
+ "items": {
6440
+ "type": "object",
6441
+ "properties": {
6442
+ "dim": {
6443
+ "type": "string",
6444
+ "description": "Exclude dimension. Enforced client-side: blacklist (objects/owners lists). anti_cheat/structure dims are reported as ignored (no client-side facet)."
6445
+ },
6446
+ "objects": {
6447
+ "type": "array",
6448
+ "items": {
6449
+ "type": "string"
6450
+ }
6451
+ },
6452
+ "owners": {
6453
+ "type": "array",
6454
+ "items": {
6455
+ "type": "string"
6456
+ }
6457
+ },
6458
+ "flags": {
6459
+ "type": "array",
6460
+ "items": {
6461
+ "type": "string"
6462
+ }
6463
+ },
6464
+ "source": {
6465
+ "type": "array",
6466
+ "items": {
6467
+ "type": "string"
6468
+ }
6469
+ },
6470
+ "rule": {
6471
+ "type": "string"
6472
+ }
6473
+ },
6474
+ "required": [
6475
+ "dim"
6476
+ ],
6477
+ "additionalProperties": false
6478
+ }
6479
+ },
6480
+ "weights": {
6481
+ "description": "demand_match rule id → weight (region/industry/price/trust/capabilities/tags/acceptance). Unregistered ids are reported as ignored.",
6482
+ "type": "object",
6483
+ "propertyNames": {
6484
+ "type": "string"
6485
+ },
6486
+ "additionalProperties": {
6487
+ "type": "number",
6488
+ "minimum": 0
6489
+ }
6490
+ },
6491
+ "rerank": {
6492
+ "type": "object",
6493
+ "properties": {
6494
+ "diversity": {
6495
+ "description": "Greedy per-group cap over the score-ordered list. `permission` is not enforceable client-side yet (reported ignored); use `owner`.",
6496
+ "type": "object",
6497
+ "properties": {
6498
+ "by": {
6499
+ "type": "string",
6500
+ "enum": [
6501
+ "owner",
6502
+ "permission"
6503
+ ]
6504
+ },
6505
+ "max_per_group": {
6506
+ "type": "integer",
6507
+ "minimum": 1,
6508
+ "maximum": 9007199254740991
6509
+ }
6510
+ },
6511
+ "required": [
6512
+ "by",
6513
+ "max_per_group"
6514
+ ],
6515
+ "additionalProperties": false
6516
+ },
6517
+ "explore": {},
6518
+ "llm": {},
6519
+ "fairness": {}
6520
+ },
6521
+ "additionalProperties": false
6522
+ },
6523
+ "recall": {
6524
+ "description": "Server/recall directives — accepted for portability, not enforceable from the client (reported ignored)."
6525
+ },
6526
+ "verify": {
6527
+ "description": "Facet verification directives — accepted for portability, not enforceable client-side (reported ignored)."
6528
+ },
6529
+ "output": {
6530
+ "type": "object",
6531
+ "properties": {
6532
+ "top_n": {
6533
+ "type": "integer",
6534
+ "minimum": 1,
6535
+ "maximum": 500
6536
+ },
6537
+ "explain": {
6538
+ "type": "boolean"
6539
+ },
6540
+ "evidence_chain": {},
6541
+ "coverage_report": {}
6542
+ },
6543
+ "additionalProperties": false
6544
+ }
6545
+ },
6546
+ "required": [
6547
+ "policy_id"
6548
+ ],
6549
+ "additionalProperties": false
6550
+ },
6551
+ "supply_to_demand": {
6552
+ "type": "object",
6553
+ "properties": {
6554
+ "policy_id": {
6555
+ "type": "string",
6556
+ "minLength": 1
6557
+ },
6558
+ "version": {
6559
+ "type": "integer",
6560
+ "minimum": 0,
6561
+ "maximum": 9007199254740991
6562
+ },
6563
+ "direction": {
6564
+ "description": "Default demand_to_supply. A demand_to_supply policy drives match_discover; a supply_to_demand policy drives demand_present / discover_demands (and is rejected by match_discover).",
6565
+ "type": "string",
6566
+ "enum": [
6567
+ "demand_to_supply",
6568
+ "supply_to_demand"
6569
+ ]
6570
+ },
6571
+ "unknown_policy": {
6572
+ "description": "What a gate with missing input does (K5-05 axiom 3). Default neutral_score (= pass, reported).",
6573
+ "type": "string",
6574
+ "enum": [
6575
+ "pass",
6576
+ "drop",
6577
+ "neutral_score"
6578
+ ]
6579
+ },
6580
+ "gates": {
6581
+ "type": "array",
6582
+ "items": {
6583
+ "type": "object",
6584
+ "properties": {
6585
+ "dim": {
6586
+ "type": "string",
6587
+ "description": "Gate dimension. Enforced client-side: live, price, arb, compensation, machine, messenger, buy_guard, wip_verify, text, owner. Others are reported as ignored (not enforceable on-device yet)."
6588
+ },
6589
+ "op": {
6590
+ "description": "Comparison operator (eq/lte/gte/in/not_in/must_contain/must_not_contain) — validated per dim at apply time.",
6591
+ "type": "string"
6592
+ },
6593
+ "value": {
6594
+ "anyOf": [
6595
+ {
6596
+ "type": "boolean"
6597
+ },
6598
+ {
6599
+ "type": "number"
6600
+ },
6601
+ {
6602
+ "type": "string"
6603
+ },
6604
+ {
6605
+ "type": "array",
6606
+ "items": {
6607
+ "type": "string"
6608
+ }
6609
+ }
6610
+ ]
6611
+ },
6612
+ "params": {
6613
+ "description": "Extra params; `from_budget: true` on a price gate uses the request budget as the threshold.",
6614
+ "type": "object",
6615
+ "propertyNames": {
6616
+ "type": "string"
6617
+ },
6618
+ "additionalProperties": {}
6619
+ }
6620
+ },
6621
+ "required": [
6622
+ "dim"
6623
+ ],
6624
+ "additionalProperties": false
6625
+ }
6626
+ },
6627
+ "excludes": {
6628
+ "type": "array",
6629
+ "items": {
6630
+ "type": "object",
6631
+ "properties": {
6632
+ "dim": {
6633
+ "type": "string",
6634
+ "description": "Exclude dimension. Enforced client-side: blacklist (objects/owners lists). anti_cheat/structure dims are reported as ignored (no client-side facet)."
6635
+ },
6636
+ "objects": {
6637
+ "type": "array",
6638
+ "items": {
6639
+ "type": "string"
6640
+ }
6641
+ },
6642
+ "owners": {
6643
+ "type": "array",
6644
+ "items": {
6645
+ "type": "string"
6646
+ }
6647
+ },
6648
+ "flags": {
6649
+ "type": "array",
6650
+ "items": {
6651
+ "type": "string"
6652
+ }
6653
+ },
6654
+ "source": {
6655
+ "type": "array",
6656
+ "items": {
6657
+ "type": "string"
6658
+ }
6659
+ },
6660
+ "rule": {
6661
+ "type": "string"
6662
+ }
6663
+ },
6664
+ "required": [
6665
+ "dim"
6666
+ ],
6667
+ "additionalProperties": false
6668
+ }
6669
+ },
6670
+ "weights": {
6671
+ "description": "demand_match rule id → weight (region/industry/price/trust/capabilities/tags/acceptance). Unregistered ids are reported as ignored.",
6672
+ "type": "object",
6673
+ "propertyNames": {
6674
+ "type": "string"
6675
+ },
6676
+ "additionalProperties": {
6677
+ "type": "number",
6678
+ "minimum": 0
6679
+ }
6680
+ },
6681
+ "rerank": {
6682
+ "type": "object",
6683
+ "properties": {
6684
+ "diversity": {
6685
+ "description": "Greedy per-group cap over the score-ordered list. `permission` is not enforceable client-side yet (reported ignored); use `owner`.",
6686
+ "type": "object",
6687
+ "properties": {
6688
+ "by": {
6689
+ "type": "string",
6690
+ "enum": [
6691
+ "owner",
6692
+ "permission"
6693
+ ]
6694
+ },
6695
+ "max_per_group": {
6696
+ "type": "integer",
6697
+ "minimum": 1,
6698
+ "maximum": 9007199254740991
6699
+ }
6700
+ },
6701
+ "required": [
6702
+ "by",
6703
+ "max_per_group"
6704
+ ],
6705
+ "additionalProperties": false
6706
+ },
6707
+ "explore": {},
6708
+ "llm": {},
6709
+ "fairness": {}
6710
+ },
6711
+ "additionalProperties": false
6712
+ },
6713
+ "recall": {
6714
+ "description": "Server/recall directives — accepted for portability, not enforceable from the client (reported ignored)."
6715
+ },
6716
+ "verify": {
6717
+ "description": "Facet verification directives — accepted for portability, not enforceable client-side (reported ignored)."
6718
+ },
6719
+ "output": {
6720
+ "type": "object",
6721
+ "properties": {
6722
+ "top_n": {
6723
+ "type": "integer",
6724
+ "minimum": 1,
6725
+ "maximum": 500
6726
+ },
6727
+ "explain": {
6728
+ "type": "boolean"
6729
+ },
6730
+ "evidence_chain": {},
6731
+ "coverage_report": {}
6732
+ },
6733
+ "additionalProperties": false
6734
+ }
6735
+ },
6736
+ "required": [
6737
+ "policy_id"
6738
+ ],
6739
+ "additionalProperties": false
6740
+ }
6741
+ },
6742
+ "additionalProperties": false
5927
6743
  }
5928
6744
  },
5929
6745
  "additionalProperties": false
6746
+ },
6747
+ "confirm": {
6748
+ "description": "Explicit human confirmation — required and MUST be true whenever the call carries a long_term payload (the STABLE identity layer is user-driven: the AI may draft and propose it, but the write lands only after the human approves). current-layer sets need no confirmation.",
6749
+ "type": "boolean"
5930
6750
  }
5931
6751
  },
5932
6752
  "required": [
@@ -8141,7 +8961,26 @@
8141
8961
  "comment": {
8142
8962
  "type": "string"
8143
8963
  },
8144
- "trust": {
8964
+ "trust": {
8965
+ "type": "array",
8966
+ "items": {
8967
+ "type": "object",
8968
+ "properties": {
8969
+ "min": {
8970
+ "type": "number"
8971
+ },
8972
+ "word": {
8973
+ "type": "string"
8974
+ }
8975
+ },
8976
+ "required": [
8977
+ "min",
8978
+ "word"
8979
+ ],
8980
+ "additionalProperties": false
8981
+ }
8982
+ },
8983
+ "risk": {
8145
8984
  "type": "array",
8146
8985
  "items": {
8147
8986
  "type": "object",
@@ -8160,7 +8999,7 @@
8160
8999
  "additionalProperties": false
8161
9000
  }
8162
9001
  },
8163
- "risk": {
9002
+ "match": {
8164
9003
  "type": "array",
8165
9004
  "items": {
8166
9005
  "type": "object",
@@ -8470,6 +9309,9 @@
8470
9309
  "capabilities": {
8471
9310
  "type": "number"
8472
9311
  },
9312
+ "buyable": {
9313
+ "type": "number"
9314
+ },
8473
9315
  "tags": {
8474
9316
  "type": "number"
8475
9317
  },
@@ -8981,6 +9823,392 @@
8981
9823
  }
8982
9824
  },
8983
9825
  "additionalProperties": false
9826
+ },
9827
+ "match": {
9828
+ "type": "object",
9829
+ "properties": {
9830
+ "demand_to_supply": {
9831
+ "type": "object",
9832
+ "properties": {
9833
+ "policy_id": {
9834
+ "type": "string",
9835
+ "minLength": 1
9836
+ },
9837
+ "version": {
9838
+ "type": "integer",
9839
+ "minimum": 0,
9840
+ "maximum": 9007199254740991
9841
+ },
9842
+ "direction": {
9843
+ "description": "Default demand_to_supply. A demand_to_supply policy drives match_discover; a supply_to_demand policy drives demand_present / discover_demands (and is rejected by match_discover).",
9844
+ "type": "string",
9845
+ "enum": [
9846
+ "demand_to_supply",
9847
+ "supply_to_demand"
9848
+ ]
9849
+ },
9850
+ "unknown_policy": {
9851
+ "description": "What a gate with missing input does (K5-05 axiom 3). Default neutral_score (= pass, reported).",
9852
+ "type": "string",
9853
+ "enum": [
9854
+ "pass",
9855
+ "drop",
9856
+ "neutral_score"
9857
+ ]
9858
+ },
9859
+ "gates": {
9860
+ "type": "array",
9861
+ "items": {
9862
+ "type": "object",
9863
+ "properties": {
9864
+ "dim": {
9865
+ "type": "string",
9866
+ "description": "Gate dimension. Enforced client-side: live, price, arb, compensation, machine, messenger, buy_guard, wip_verify, text, owner. Others are reported as ignored (not enforceable on-device yet)."
9867
+ },
9868
+ "op": {
9869
+ "description": "Comparison operator (eq/lte/gte/in/not_in/must_contain/must_not_contain) — validated per dim at apply time.",
9870
+ "type": "string"
9871
+ },
9872
+ "value": {
9873
+ "anyOf": [
9874
+ {
9875
+ "type": "boolean"
9876
+ },
9877
+ {
9878
+ "type": "number"
9879
+ },
9880
+ {
9881
+ "type": "string"
9882
+ },
9883
+ {
9884
+ "type": "array",
9885
+ "items": {
9886
+ "type": "string"
9887
+ }
9888
+ }
9889
+ ]
9890
+ },
9891
+ "params": {
9892
+ "description": "Extra params; `from_budget: true` on a price gate uses the request budget as the threshold.",
9893
+ "type": "object",
9894
+ "propertyNames": {
9895
+ "type": "string"
9896
+ },
9897
+ "additionalProperties": {}
9898
+ }
9899
+ },
9900
+ "required": [
9901
+ "dim"
9902
+ ],
9903
+ "additionalProperties": false
9904
+ }
9905
+ },
9906
+ "excludes": {
9907
+ "type": "array",
9908
+ "items": {
9909
+ "type": "object",
9910
+ "properties": {
9911
+ "dim": {
9912
+ "type": "string",
9913
+ "description": "Exclude dimension. Enforced client-side: blacklist (objects/owners lists). anti_cheat/structure dims are reported as ignored (no client-side facet)."
9914
+ },
9915
+ "objects": {
9916
+ "type": "array",
9917
+ "items": {
9918
+ "type": "string"
9919
+ }
9920
+ },
9921
+ "owners": {
9922
+ "type": "array",
9923
+ "items": {
9924
+ "type": "string"
9925
+ }
9926
+ },
9927
+ "flags": {
9928
+ "type": "array",
9929
+ "items": {
9930
+ "type": "string"
9931
+ }
9932
+ },
9933
+ "source": {
9934
+ "type": "array",
9935
+ "items": {
9936
+ "type": "string"
9937
+ }
9938
+ },
9939
+ "rule": {
9940
+ "type": "string"
9941
+ }
9942
+ },
9943
+ "required": [
9944
+ "dim"
9945
+ ],
9946
+ "additionalProperties": false
9947
+ }
9948
+ },
9949
+ "weights": {
9950
+ "description": "demand_match rule id → weight (region/industry/price/trust/capabilities/tags/acceptance). Unregistered ids are reported as ignored.",
9951
+ "type": "object",
9952
+ "propertyNames": {
9953
+ "type": "string"
9954
+ },
9955
+ "additionalProperties": {
9956
+ "type": "number",
9957
+ "minimum": 0
9958
+ }
9959
+ },
9960
+ "rerank": {
9961
+ "type": "object",
9962
+ "properties": {
9963
+ "diversity": {
9964
+ "description": "Greedy per-group cap over the score-ordered list. `permission` is not enforceable client-side yet (reported ignored); use `owner`.",
9965
+ "type": "object",
9966
+ "properties": {
9967
+ "by": {
9968
+ "type": "string",
9969
+ "enum": [
9970
+ "owner",
9971
+ "permission"
9972
+ ]
9973
+ },
9974
+ "max_per_group": {
9975
+ "type": "integer",
9976
+ "minimum": 1,
9977
+ "maximum": 9007199254740991
9978
+ }
9979
+ },
9980
+ "required": [
9981
+ "by",
9982
+ "max_per_group"
9983
+ ],
9984
+ "additionalProperties": false
9985
+ },
9986
+ "explore": {},
9987
+ "llm": {},
9988
+ "fairness": {}
9989
+ },
9990
+ "additionalProperties": false
9991
+ },
9992
+ "recall": {
9993
+ "description": "Server/recall directives — accepted for portability, not enforceable from the client (reported ignored)."
9994
+ },
9995
+ "verify": {
9996
+ "description": "Facet verification directives — accepted for portability, not enforceable client-side (reported ignored)."
9997
+ },
9998
+ "output": {
9999
+ "type": "object",
10000
+ "properties": {
10001
+ "top_n": {
10002
+ "type": "integer",
10003
+ "minimum": 1,
10004
+ "maximum": 500
10005
+ },
10006
+ "explain": {
10007
+ "type": "boolean"
10008
+ },
10009
+ "evidence_chain": {},
10010
+ "coverage_report": {}
10011
+ },
10012
+ "additionalProperties": false
10013
+ }
10014
+ },
10015
+ "required": [
10016
+ "policy_id"
10017
+ ],
10018
+ "additionalProperties": false
10019
+ },
10020
+ "supply_to_demand": {
10021
+ "type": "object",
10022
+ "properties": {
10023
+ "policy_id": {
10024
+ "type": "string",
10025
+ "minLength": 1
10026
+ },
10027
+ "version": {
10028
+ "type": "integer",
10029
+ "minimum": 0,
10030
+ "maximum": 9007199254740991
10031
+ },
10032
+ "direction": {
10033
+ "description": "Default demand_to_supply. A demand_to_supply policy drives match_discover; a supply_to_demand policy drives demand_present / discover_demands (and is rejected by match_discover).",
10034
+ "type": "string",
10035
+ "enum": [
10036
+ "demand_to_supply",
10037
+ "supply_to_demand"
10038
+ ]
10039
+ },
10040
+ "unknown_policy": {
10041
+ "description": "What a gate with missing input does (K5-05 axiom 3). Default neutral_score (= pass, reported).",
10042
+ "type": "string",
10043
+ "enum": [
10044
+ "pass",
10045
+ "drop",
10046
+ "neutral_score"
10047
+ ]
10048
+ },
10049
+ "gates": {
10050
+ "type": "array",
10051
+ "items": {
10052
+ "type": "object",
10053
+ "properties": {
10054
+ "dim": {
10055
+ "type": "string",
10056
+ "description": "Gate dimension. Enforced client-side: live, price, arb, compensation, machine, messenger, buy_guard, wip_verify, text, owner. Others are reported as ignored (not enforceable on-device yet)."
10057
+ },
10058
+ "op": {
10059
+ "description": "Comparison operator (eq/lte/gte/in/not_in/must_contain/must_not_contain) — validated per dim at apply time.",
10060
+ "type": "string"
10061
+ },
10062
+ "value": {
10063
+ "anyOf": [
10064
+ {
10065
+ "type": "boolean"
10066
+ },
10067
+ {
10068
+ "type": "number"
10069
+ },
10070
+ {
10071
+ "type": "string"
10072
+ },
10073
+ {
10074
+ "type": "array",
10075
+ "items": {
10076
+ "type": "string"
10077
+ }
10078
+ }
10079
+ ]
10080
+ },
10081
+ "params": {
10082
+ "description": "Extra params; `from_budget: true` on a price gate uses the request budget as the threshold.",
10083
+ "type": "object",
10084
+ "propertyNames": {
10085
+ "type": "string"
10086
+ },
10087
+ "additionalProperties": {}
10088
+ }
10089
+ },
10090
+ "required": [
10091
+ "dim"
10092
+ ],
10093
+ "additionalProperties": false
10094
+ }
10095
+ },
10096
+ "excludes": {
10097
+ "type": "array",
10098
+ "items": {
10099
+ "type": "object",
10100
+ "properties": {
10101
+ "dim": {
10102
+ "type": "string",
10103
+ "description": "Exclude dimension. Enforced client-side: blacklist (objects/owners lists). anti_cheat/structure dims are reported as ignored (no client-side facet)."
10104
+ },
10105
+ "objects": {
10106
+ "type": "array",
10107
+ "items": {
10108
+ "type": "string"
10109
+ }
10110
+ },
10111
+ "owners": {
10112
+ "type": "array",
10113
+ "items": {
10114
+ "type": "string"
10115
+ }
10116
+ },
10117
+ "flags": {
10118
+ "type": "array",
10119
+ "items": {
10120
+ "type": "string"
10121
+ }
10122
+ },
10123
+ "source": {
10124
+ "type": "array",
10125
+ "items": {
10126
+ "type": "string"
10127
+ }
10128
+ },
10129
+ "rule": {
10130
+ "type": "string"
10131
+ }
10132
+ },
10133
+ "required": [
10134
+ "dim"
10135
+ ],
10136
+ "additionalProperties": false
10137
+ }
10138
+ },
10139
+ "weights": {
10140
+ "description": "demand_match rule id → weight (region/industry/price/trust/capabilities/tags/acceptance). Unregistered ids are reported as ignored.",
10141
+ "type": "object",
10142
+ "propertyNames": {
10143
+ "type": "string"
10144
+ },
10145
+ "additionalProperties": {
10146
+ "type": "number",
10147
+ "minimum": 0
10148
+ }
10149
+ },
10150
+ "rerank": {
10151
+ "type": "object",
10152
+ "properties": {
10153
+ "diversity": {
10154
+ "description": "Greedy per-group cap over the score-ordered list. `permission` is not enforceable client-side yet (reported ignored); use `owner`.",
10155
+ "type": "object",
10156
+ "properties": {
10157
+ "by": {
10158
+ "type": "string",
10159
+ "enum": [
10160
+ "owner",
10161
+ "permission"
10162
+ ]
10163
+ },
10164
+ "max_per_group": {
10165
+ "type": "integer",
10166
+ "minimum": 1,
10167
+ "maximum": 9007199254740991
10168
+ }
10169
+ },
10170
+ "required": [
10171
+ "by",
10172
+ "max_per_group"
10173
+ ],
10174
+ "additionalProperties": false
10175
+ },
10176
+ "explore": {},
10177
+ "llm": {},
10178
+ "fairness": {}
10179
+ },
10180
+ "additionalProperties": false
10181
+ },
10182
+ "recall": {
10183
+ "description": "Server/recall directives — accepted for portability, not enforceable from the client (reported ignored)."
10184
+ },
10185
+ "verify": {
10186
+ "description": "Facet verification directives — accepted for portability, not enforceable client-side (reported ignored)."
10187
+ },
10188
+ "output": {
10189
+ "type": "object",
10190
+ "properties": {
10191
+ "top_n": {
10192
+ "type": "integer",
10193
+ "minimum": 1,
10194
+ "maximum": 500
10195
+ },
10196
+ "explain": {
10197
+ "type": "boolean"
10198
+ },
10199
+ "evidence_chain": {},
10200
+ "coverage_report": {}
10201
+ },
10202
+ "additionalProperties": false
10203
+ }
10204
+ },
10205
+ "required": [
10206
+ "policy_id"
10207
+ ],
10208
+ "additionalProperties": false
10209
+ }
10210
+ },
10211
+ "additionalProperties": false
8984
10212
  }
8985
10213
  },
8986
10214
  "additionalProperties": false,