@wowok/agent-mcp 3.1.2 → 3.1.4

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 (544) hide show
  1. package/dist/config/config-audit.spec.d.ts +1 -0
  2. package/dist/config/config-audit.spec.js +1 -0
  3. package/dist/config/exposure.d.ts +108 -0
  4. package/dist/config/exposure.js +1 -0
  5. package/dist/config/index.d.ts +2 -0
  6. package/dist/config/index.js +1 -1
  7. package/dist/config/judgment.d.ts +1228 -0
  8. package/dist/config/judgment.js +1 -0
  9. package/dist/config/judgment.spec.d.ts +1 -0
  10. package/dist/config/judgment.spec.js +1 -0
  11. package/dist/config/rule-engine.d.ts +299 -0
  12. package/dist/config/rule-engine.js +1 -0
  13. package/dist/config/rule-engine.spec.d.ts +1 -0
  14. package/dist/config/rule-engine.spec.js +1 -0
  15. package/dist/config/runtime.js +1 -1
  16. package/dist/config/severity.d.ts +7 -0
  17. package/dist/config/severity.js +1 -0
  18. package/dist/customer/index.d.ts +3 -9
  19. package/dist/customer/index.js +1 -1
  20. package/dist/customer/industry-risks.d.ts +3 -17
  21. package/dist/customer/industry-risks.js +1 -1
  22. package/dist/customer/order-monitor.d.ts +3 -1
  23. package/dist/customer/order-monitor.js +1 -1
  24. package/dist/customer/types.d.ts +1 -165
  25. package/dist/customer/types.js +1 -1
  26. package/dist/customer/user-preferences.d.ts +0 -49
  27. package/dist/customer/user-preferences.js +1 -1
  28. package/dist/evaluation/acceptance.d.ts +1 -0
  29. package/dist/evaluation/acceptance.js +1 -1
  30. package/dist/evaluation/arbitration-game.js +1 -1
  31. package/dist/evaluation/architecture.spec.d.ts +1 -0
  32. package/dist/evaluation/architecture.spec.js +1 -0
  33. package/dist/evaluation/builtins/demand-match.js +1 -1
  34. package/dist/evaluation/builtins/graph-service.d.ts +16 -0
  35. package/dist/evaluation/builtins/graph-service.js +1 -0
  36. package/dist/evaluation/builtins/graph-service.spec.d.ts +1 -0
  37. package/dist/evaluation/builtins/graph-service.spec.js +1 -0
  38. package/dist/evaluation/builtins/index.d.ts +1 -1
  39. package/dist/evaluation/builtins/index.js +1 -1
  40. package/dist/evaluation/builtins/purity.spec.d.ts +1 -0
  41. package/dist/evaluation/builtins/purity.spec.js +1 -0
  42. package/dist/evaluation/engine.js +1 -1
  43. package/dist/evaluation/facets/catalog.d.ts +19 -0
  44. package/dist/evaluation/facets/catalog.js +1 -0
  45. package/dist/evaluation/game-strategy.d.ts +2 -2
  46. package/dist/evaluation/game-strategy.js +1 -1
  47. package/dist/evaluation/guard-scan.d.ts +10 -0
  48. package/dist/evaluation/guard-scan.js +1 -0
  49. package/dist/evaluation/match-operation.d.ts +2 -2
  50. package/dist/evaluation/match-operation.js +1 -1
  51. package/dist/evaluation/standards.d.ts +9 -0
  52. package/dist/evaluation/standards.js +1 -0
  53. package/dist/evaluation/standards.spec.d.ts +1 -0
  54. package/dist/evaluation/standards.spec.js +1 -0
  55. package/dist/evaluation/types.d.ts +11 -1
  56. package/dist/experience/realtime-feedback.js +1 -1
  57. package/dist/extensions/business-modules.js +1 -1
  58. package/dist/extensions/custom-registry-file.js +1 -1
  59. package/dist/extensions/index.d.ts +1 -1
  60. package/dist/extensions/index.js +1 -1
  61. package/dist/extensions/industry-audit.spec.d.ts +1 -0
  62. package/dist/extensions/industry-audit.spec.js +1 -0
  63. package/dist/extensions/industry-layers.d.ts +14 -5
  64. package/dist/extensions/industry-layers.js +1 -1
  65. package/dist/extensions/industry-pack.d.ts +2 -0
  66. package/dist/extensions/industry-pack.js +1 -1
  67. package/dist/extensions/mode-evaluator.js +1 -1
  68. package/dist/extensions/modes.js +1 -1
  69. package/dist/graph/onchain/analyze.d.ts +16 -1
  70. package/dist/graph/onchain/analyze.js +1 -1
  71. package/dist/graph/onchain/analyze.spec.js +1 -1
  72. package/dist/graph/onchain/dataplane.d.ts +1 -1
  73. package/dist/graph/onchain/dataplane.js +1 -1
  74. package/dist/graph/onchain/edge-batch.spec.d.ts +1 -0
  75. package/dist/graph/onchain/edge-batch.spec.js +1 -0
  76. package/dist/graph/onchain/edge-schema.d.ts +11 -2
  77. package/dist/graph/onchain/edge-schema.js +1 -1
  78. package/dist/graph/onchain/entity-profile.spec.d.ts +1 -0
  79. package/dist/graph/onchain/entity-profile.spec.js +1 -0
  80. package/dist/graph/onchain/event-history.spec.d.ts +1 -0
  81. package/dist/graph/onchain/event-history.spec.js +1 -0
  82. package/dist/graph/onchain/expand.js +1 -1
  83. package/dist/graph/onchain/exploration.d.ts +28 -0
  84. package/dist/graph/onchain/exploration.js +1 -0
  85. package/dist/graph/onchain/exploration.spec.d.ts +1 -0
  86. package/dist/graph/onchain/exploration.spec.js +1 -0
  87. package/dist/graph/onchain/exposure.d.ts +18 -0
  88. package/dist/graph/onchain/exposure.js +1 -0
  89. package/dist/graph/onchain/exposure.spec.d.ts +1 -0
  90. package/dist/graph/onchain/exposure.spec.js +1 -0
  91. package/dist/graph/onchain/extract-deep.spec.d.ts +1 -0
  92. package/dist/graph/onchain/extract-deep.spec.js +1 -0
  93. package/dist/graph/onchain/extract.d.ts +11 -3
  94. package/dist/graph/onchain/extract.js +1 -1
  95. package/dist/graph/onchain/facet-projection.d.ts +99 -0
  96. package/dist/graph/onchain/facet-projection.js +1 -0
  97. package/dist/graph/onchain/facet-projection.spec.d.ts +1 -0
  98. package/dist/graph/onchain/facet-projection.spec.js +1 -0
  99. package/dist/graph/onchain/facts.d.ts +103 -0
  100. package/dist/graph/onchain/facts.js +1 -0
  101. package/dist/graph/onchain/facts.spec.d.ts +1 -0
  102. package/dist/graph/onchain/facts.spec.js +1 -0
  103. package/dist/graph/onchain/field-manifest.d.ts +29 -0
  104. package/dist/graph/onchain/field-manifest.js +1 -0
  105. package/dist/graph/onchain/field-manifest.spec.d.ts +1 -0
  106. package/dist/graph/onchain/field-manifest.spec.js +1 -0
  107. package/dist/graph/onchain/fixtures.d.ts +80 -0
  108. package/dist/graph/onchain/fixtures.js +1 -0
  109. package/dist/graph/onchain/fixtures.spec.d.ts +1 -0
  110. package/dist/graph/onchain/fixtures.spec.js +1 -0
  111. package/dist/graph/onchain/graph-policy.spec.d.ts +1 -0
  112. package/dist/graph/onchain/graph-policy.spec.js +1 -0
  113. package/dist/graph/onchain/index.d.ts +14 -2
  114. package/dist/graph/onchain/index.js +1 -1
  115. package/dist/graph/onchain/interest.js +1 -1
  116. package/dist/graph/onchain/interest.spec.js +1 -1
  117. package/dist/graph/onchain/label-lint.spec.d.ts +1 -0
  118. package/dist/graph/onchain/label-lint.spec.js +1 -0
  119. package/dist/graph/onchain/names.d.ts +23 -0
  120. package/dist/graph/onchain/names.js +1 -0
  121. package/dist/graph/onchain/names.spec.d.ts +1 -0
  122. package/dist/graph/onchain/names.spec.js +1 -0
  123. package/dist/graph/onchain/onchain.spec.js +1 -1
  124. package/dist/graph/onchain/policy.d.ts +8 -0
  125. package/dist/graph/onchain/policy.js +1 -0
  126. package/dist/graph/onchain/proposal-graph.d.ts +11 -0
  127. package/dist/graph/onchain/proposal-graph.js +1 -0
  128. package/dist/graph/onchain/proposal-graph.spec.d.ts +1 -0
  129. package/dist/graph/onchain/proposal-graph.spec.js +1 -0
  130. package/dist/graph/onchain/sdk-batch.d.ts +5 -1
  131. package/dist/graph/onchain/sdk-batch.js +1 -1
  132. package/dist/graph/onchain/strategy.d.ts +16 -0
  133. package/dist/graph/onchain/strategy.js +1 -1
  134. package/dist/graph/onchain/strategy.spec.js +1 -1
  135. package/dist/graph/onchain/synthesis.d.ts +20 -0
  136. package/dist/graph/onchain/synthesis.js +1 -0
  137. package/dist/graph/onchain/synthesis.spec.d.ts +1 -0
  138. package/dist/graph/onchain/synthesis.spec.js +1 -0
  139. package/dist/graph/onchain/table-ledger.spec.d.ts +1 -0
  140. package/dist/graph/onchain/table-ledger.spec.js +1 -0
  141. package/dist/graph/onchain/types.d.ts +57 -7
  142. package/dist/graph/onchain/viewport.d.ts +1 -0
  143. package/dist/graph/onchain/viewport.js +1 -1
  144. package/dist/harness/index.d.ts +1 -5
  145. package/dist/harness/index.js +1 -1
  146. package/dist/harness/verify.d.ts +6 -1
  147. package/dist/harness/verify.js +1 -1
  148. package/dist/index.js +1 -1
  149. package/dist/keeper/keeper.spec.js +1 -1
  150. package/dist/knowledge/alloc-audit-policy.spec.d.ts +1 -0
  151. package/dist/knowledge/alloc-audit-policy.spec.js +1 -0
  152. package/dist/knowledge/allocation-ledger.js +1 -1
  153. package/dist/knowledge/allocation-puzzle.d.ts +1 -1
  154. package/dist/knowledge/allocation-puzzle.js +1 -1
  155. package/dist/knowledge/allocation-risk.d.ts +4 -3
  156. package/dist/knowledge/allocation-risk.js +1 -1
  157. package/dist/knowledge/allocation-templates.js +1 -1
  158. package/dist/knowledge/arb-risk.d.ts +6 -6
  159. package/dist/knowledge/arb-risk.js +1 -1
  160. package/dist/knowledge/arbitration-ledger.d.ts +4 -4
  161. package/dist/knowledge/arbitration-ledger.js +1 -1
  162. package/dist/knowledge/arbitration-puzzle.d.ts +1 -1
  163. package/dist/knowledge/arbitration-puzzle.js +1 -1
  164. package/dist/knowledge/arbitration-risk.d.ts +4 -3
  165. package/dist/knowledge/arbitration-risk.js +1 -1
  166. package/dist/knowledge/arbitration-templates.js +1 -1
  167. package/dist/knowledge/baselines/guard-lint-baseline.spec.d.ts +1 -0
  168. package/dist/knowledge/baselines/guard-lint-baseline.spec.js +1 -0
  169. package/dist/knowledge/baselines/judgment-baselines.json +289 -0
  170. package/dist/knowledge/baselines/risk-baselines.spec.d.ts +1 -0
  171. package/dist/knowledge/baselines/risk-baselines.spec.js +1 -0
  172. package/dist/knowledge/baselines/risk-cases.d.ts +8 -0
  173. package/dist/knowledge/baselines/risk-cases.js +1 -0
  174. package/dist/knowledge/baselines/rules/alloc_audit.json +290 -0
  175. package/dist/knowledge/baselines/rules/allocation.json +492 -0
  176. package/dist/knowledge/baselines/rules/arb.json +155 -0
  177. package/dist/knowledge/baselines/rules/arbitration.json +366 -0
  178. package/dist/knowledge/baselines/rules/bridge.json +197 -0
  179. package/dist/knowledge/baselines/rules/contact.json +152 -0
  180. package/dist/knowledge/baselines/rules/demand.json +158 -0
  181. package/dist/knowledge/baselines/rules/graph.json +453 -0
  182. package/dist/knowledge/baselines/rules/guard.json +981 -0
  183. package/dist/knowledge/baselines/rules/machine.json +706 -0
  184. package/dist/knowledge/baselines/rules/order.json +549 -0
  185. package/dist/knowledge/baselines/rules/payment.json +205 -0
  186. package/dist/knowledge/baselines/rules/permission.json +330 -0
  187. package/dist/knowledge/baselines/rules/personal.json +139 -0
  188. package/dist/knowledge/baselines/rules/progress.json +346 -0
  189. package/dist/knowledge/baselines/rules/proof.json +158 -0
  190. package/dist/knowledge/baselines/rules/registrar.json +159 -0
  191. package/dist/knowledge/baselines/rules/repository.json +244 -0
  192. package/dist/knowledge/baselines/rules/resource.json +117 -0
  193. package/dist/knowledge/baselines/rules/reward.json +471 -0
  194. package/dist/knowledge/baselines/rules/service.json +595 -0
  195. package/dist/knowledge/baselines/rules/treasury.json +440 -0
  196. package/dist/knowledge/baselines/rules/util.json +101 -0
  197. package/dist/knowledge/bridge-risk.d.ts +6 -6
  198. package/dist/knowledge/bridge-risk.js +1 -1
  199. package/dist/knowledge/builtin-templates.d.ts +26 -0
  200. package/dist/knowledge/builtin-templates.js +1 -0
  201. package/dist/knowledge/contact-risk.d.ts +6 -6
  202. package/dist/knowledge/contact-risk.js +1 -1
  203. package/dist/knowledge/contract-invariants.d.ts +1 -0
  204. package/dist/knowledge/contract-invariants.js +1 -1
  205. package/dist/knowledge/demand-risk.d.ts +6 -6
  206. package/dist/knowledge/demand-risk.js +1 -1
  207. package/dist/knowledge/event-semantics.js +1 -1
  208. package/dist/knowledge/facts-sync.spec.d.ts +1 -0
  209. package/dist/knowledge/facts-sync.spec.js +1 -0
  210. package/dist/knowledge/getting-started.js +1 -1
  211. package/dist/knowledge/guard-design-patterns.js +1 -1
  212. package/dist/knowledge/guard-eval.d.ts +15 -0
  213. package/dist/knowledge/guard-eval.js +1 -0
  214. package/dist/knowledge/guard-eval.spec.d.ts +1 -0
  215. package/dist/knowledge/guard-eval.spec.js +1 -0
  216. package/dist/knowledge/guard-field-cognition.d.ts +1 -1
  217. package/dist/knowledge/guard-field-cognition.js +1 -1
  218. package/dist/knowledge/guard-ledger.js +1 -1
  219. package/dist/knowledge/guard-lint.d.ts +1 -1
  220. package/dist/knowledge/guard-lint.js +1 -1
  221. package/dist/knowledge/guard-risk.d.ts +7 -19
  222. package/dist/knowledge/guard-risk.js +1 -1
  223. package/dist/knowledge/guard-templates.js +1 -1
  224. package/dist/knowledge/guard-translation.js +1 -1
  225. package/dist/knowledge/index.d.ts +51 -45
  226. package/dist/knowledge/index.js +1 -1
  227. package/dist/knowledge/industry-registry.js +1 -1
  228. package/dist/knowledge/industry-rule-node.d.ts +7 -0
  229. package/dist/knowledge/industry-rule-node.js +1 -0
  230. package/dist/knowledge/industry-strategy.js +1 -1
  231. package/dist/knowledge/jsonrpc-enum.js +1 -1
  232. package/dist/knowledge/machine-ledger.js +1 -1
  233. package/dist/knowledge/machine-risk.d.ts +4 -7
  234. package/dist/knowledge/machine-risk.js +1 -1
  235. package/dist/knowledge/machine-templates.js +1 -1
  236. package/dist/knowledge/machine-translation.js +1 -1
  237. package/dist/knowledge/migration-preflight.js +1 -1
  238. package/dist/knowledge/operation-dictionary.js +1 -1
  239. package/dist/knowledge/order-ledger.js +1 -1
  240. package/dist/knowledge/order-puzzle.d.ts +3 -3
  241. package/dist/knowledge/order-puzzle.js +1 -1
  242. package/dist/knowledge/order-risk.d.ts +7 -12
  243. package/dist/knowledge/order-risk.js +1 -1
  244. package/dist/knowledge/order-templates.js +1 -1
  245. package/dist/knowledge/passport-ledger.js +1 -1
  246. package/dist/knowledge/passport-templates.js +1 -1
  247. package/dist/knowledge/payment-risk.d.ts +8 -7
  248. package/dist/knowledge/payment-risk.js +1 -1
  249. package/dist/knowledge/payment-tracker.js +1 -1
  250. package/dist/knowledge/permission-ledger.js +1 -1
  251. package/dist/knowledge/permission-puzzle.d.ts +12 -12
  252. package/dist/knowledge/permission-puzzle.js +1 -1
  253. package/dist/knowledge/permission-risk.d.ts +4 -10
  254. package/dist/knowledge/permission-risk.js +1 -1
  255. package/dist/knowledge/permission-templates.js +1 -1
  256. package/dist/knowledge/personal-risk.d.ts +6 -6
  257. package/dist/knowledge/personal-risk.js +1 -1
  258. package/dist/knowledge/progress-ledger.js +1 -1
  259. package/dist/knowledge/progress-puzzle.d.ts +2 -2
  260. package/dist/knowledge/progress-puzzle.js +1 -1
  261. package/dist/knowledge/progress-risk.d.ts +4 -3
  262. package/dist/knowledge/progress-risk.js +1 -1
  263. package/dist/knowledge/progress-templates.js +1 -1
  264. package/dist/knowledge/proof-risk.d.ts +6 -6
  265. package/dist/knowledge/proof-risk.js +1 -1
  266. package/dist/knowledge/puzzle-projections.d.ts +11 -0
  267. package/dist/knowledge/puzzle-projections.js +1 -0
  268. package/dist/knowledge/recipient-constraint.d.ts +20 -1
  269. package/dist/knowledge/recipient-constraint.js +1 -1
  270. package/dist/knowledge/registrar-risk.d.ts +6 -6
  271. package/dist/knowledge/registrar-risk.js +1 -1
  272. package/dist/knowledge/repository-risk.d.ts +7 -7
  273. package/dist/knowledge/repository-risk.js +1 -1
  274. package/dist/knowledge/resource-risk.d.ts +6 -6
  275. package/dist/knowledge/resource-risk.js +1 -1
  276. package/dist/knowledge/reward-ledger.d.ts +1 -1
  277. package/dist/knowledge/reward-ledger.js +1 -1
  278. package/dist/knowledge/reward-puzzle.d.ts +2 -2
  279. package/dist/knowledge/reward-puzzle.js +1 -1
  280. package/dist/knowledge/reward-risk.d.ts +5 -6
  281. package/dist/knowledge/reward-risk.js +1 -1
  282. package/dist/knowledge/rule-node-analyzers.d.ts +43 -0
  283. package/dist/knowledge/rule-node-analyzers.js +1 -0
  284. package/dist/knowledge/rule-node-analyzers.spec.d.ts +1 -0
  285. package/dist/knowledge/rule-node-analyzers.spec.js +1 -0
  286. package/dist/knowledge/rule-outcome.d.ts +5 -0
  287. package/dist/knowledge/rule-outcome.js +1 -0
  288. package/dist/knowledge/safety-rules.js +1 -1
  289. package/dist/knowledge/scenario-modes.d.ts +2 -2
  290. package/dist/knowledge/scenario-modes.js +1 -1
  291. package/dist/knowledge/scenario-topology.js +1 -1
  292. package/dist/knowledge/service-allocator-audit-node.js +1 -1
  293. package/dist/knowledge/service-ledger.js +1 -1
  294. package/dist/knowledge/service-puzzle.d.ts +2 -2
  295. package/dist/knowledge/service-puzzle.js +1 -1
  296. package/dist/knowledge/service-risk-node.js +1 -1
  297. package/dist/knowledge/service-risk.d.ts +4 -4
  298. package/dist/knowledge/service-risk.js +1 -1
  299. package/dist/knowledge/service-templates.js +1 -1
  300. package/dist/knowledge/strategy-manuals.d.ts +1 -1
  301. package/dist/knowledge/strategy-manuals.js +1 -1
  302. package/dist/knowledge/template-loader.d.ts +84 -0
  303. package/dist/knowledge/template-loader.js +1 -0
  304. package/dist/knowledge/template-loader.spec.d.ts +1 -0
  305. package/dist/knowledge/template-loader.spec.js +1 -0
  306. package/dist/knowledge/template-registry.js +1 -1
  307. package/dist/knowledge/template-scanner.d.ts +17 -0
  308. package/dist/knowledge/template-scanner.js +1 -0
  309. package/dist/knowledge/template-scanner.spec.d.ts +1 -0
  310. package/dist/knowledge/template-scanner.spec.js +1 -0
  311. package/dist/knowledge/tools-reference.js +1 -1
  312. package/dist/knowledge/treasury-ledger.d.ts +1 -1
  313. package/dist/knowledge/treasury-ledger.js +1 -1
  314. package/dist/knowledge/treasury-puzzle.d.ts +3 -3
  315. package/dist/knowledge/treasury-puzzle.js +1 -1
  316. package/dist/knowledge/treasury-risk.d.ts +6 -4
  317. package/dist/knowledge/treasury-risk.js +1 -1
  318. package/dist/knowledge/treasury-templates.js +1 -1
  319. package/dist/knowledge/util-risk.d.ts +6 -6
  320. package/dist/knowledge/util-risk.js +1 -1
  321. package/dist/knowledge/workflow-guidance.d.ts +4 -0
  322. package/dist/knowledge/workflow-guidance.js +1 -1
  323. package/dist/knowledge/workspace-lists.js +1 -1
  324. package/dist/monitor/MonitorLoop.js +1 -1
  325. package/dist/participation/arbitrator-interest.js +1 -1
  326. package/dist/participation/radar-core.js +1 -1
  327. package/dist/persona/analyzer.js +1 -1
  328. package/dist/persona/bridge.js +1 -1
  329. package/dist/persona/facet-profile.d.ts +33 -0
  330. package/dist/persona/facet-profile.js +1 -0
  331. package/dist/persona/index.js +1 -1
  332. package/dist/persona/model.d.ts +2 -1
  333. package/dist/persona/model.js +1 -1
  334. package/dist/persona/persona-audit.spec.d.ts +1 -0
  335. package/dist/persona/persona-audit.spec.js +1 -0
  336. package/dist/persona/topology-focus.d.ts +2 -2
  337. package/dist/persona/topology-focus.js +1 -1
  338. package/dist/persona/types.d.ts +14 -0
  339. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  340. package/dist/playbooks/service-build/facet-money.d.ts +33 -0
  341. package/dist/playbooks/service-build/facet-money.js +1 -0
  342. package/dist/playbooks/service-build/facet-money.spec.d.ts +1 -0
  343. package/dist/playbooks/service-build/facet-money.spec.js +1 -0
  344. package/dist/playbooks/service-build/machine-panorama.d.ts +20 -0
  345. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  346. package/dist/playbooks/service-build/merchant-guide.d.ts +2 -2
  347. package/dist/playbooks/service-build/migration-planner.d.ts +43 -0
  348. package/dist/playbooks/service-build/migration-planner.js +1 -0
  349. package/dist/playbooks/service-build/object-panorama.d.ts +65 -24
  350. package/dist/playbooks/service-build/object-panorama.js +1 -1
  351. package/dist/playbooks/service-build/participation-radar.js +1 -1
  352. package/dist/playbooks/service-build/pipeline-actions.d.ts +3 -3
  353. package/dist/playbooks/service-build/pipeline-actions.js +1 -1
  354. package/dist/playbooks/service-build/reverse-mapping.d.ts +1 -0
  355. package/dist/playbooks/service-build/reverse-mapping.js +1 -1
  356. package/dist/playbooks/service-build/risk-aggregator.d.ts +4 -2
  357. package/dist/playbooks/service-build/risk-aggregator.js +1 -1
  358. package/dist/playbooks/service-build/semantic-graph.js +1 -1
  359. package/dist/playbooks/service-build/service-panorama.d.ts +56 -9
  360. package/dist/playbooks/service-build/service-panorama.js +1 -1
  361. package/dist/playbooks/service-build/topology-evaluation.spec.d.ts +1 -0
  362. package/dist/playbooks/service-build/topology-evaluation.spec.js +1 -0
  363. package/dist/playbooks/service-build/topology-query.d.ts +13 -2
  364. package/dist/playbooks/service-build/topology-query.js +1 -1
  365. package/dist/playbooks/service-build/workflow-design-assessment.d.ts +2 -2
  366. package/dist/playbooks/service-build/workflow-design-assessment.js +1 -1
  367. package/dist/relationship/registry.js +1 -1
  368. package/dist/review/arb.d.ts +0 -2
  369. package/dist/review/arb.js +1 -1
  370. package/dist/review/machine.js +1 -1
  371. package/dist/review/order.d.ts +0 -1
  372. package/dist/review/order.js +1 -1
  373. package/dist/review/service.js +1 -1
  374. package/dist/review/types.d.ts +7 -0
  375. package/dist/role/profiles.js +1 -1
  376. package/dist/rules.d.ts +1 -2
  377. package/dist/rules.js +1 -1
  378. package/dist/safety/confirm-gate.js +1 -1
  379. package/dist/schema/benchmark-migration/index.d.ts +207 -0
  380. package/dist/schema/benchmark-migration/index.js +1 -0
  381. package/dist/schema/call/allocation.d.ts +1 -1
  382. package/dist/schema/call/allocation.js +1 -1
  383. package/dist/schema/call/arbitration.d.ts +1 -1
  384. package/dist/schema/call/arbitration.js +1 -1
  385. package/dist/schema/call/base.d.ts +3374 -670
  386. package/dist/schema/call/base.js +1 -1
  387. package/dist/schema/call/contact.d.ts +1 -1
  388. package/dist/schema/call/demand.d.ts +1 -1
  389. package/dist/schema/call/guard.d.ts +3 -3
  390. package/dist/schema/call/handler.js +1 -1
  391. package/dist/schema/call/machine.d.ts +5 -5
  392. package/dist/schema/call/order.d.ts +3 -3
  393. package/dist/schema/call/payment.js +1 -1
  394. package/dist/schema/call/permission-handler.d.ts +1 -1
  395. package/dist/schema/call/permission-handler.js +1 -1
  396. package/dist/schema/call/permission.d.ts +16 -16
  397. package/dist/schema/call/permission.js +1 -1
  398. package/dist/schema/call/personal.d.ts +8 -8
  399. package/dist/schema/call/personal.js +1 -1
  400. package/dist/schema/call/progress.d.ts +3 -3
  401. package/dist/schema/call/receipt.d.ts +28 -0
  402. package/dist/schema/call/receipt.js +1 -0
  403. package/dist/schema/call/repository.d.ts +11 -11
  404. package/dist/schema/call/repository.js +1 -1
  405. package/dist/schema/call/reward.d.ts +1 -1
  406. package/dist/schema/call/semantic-customer-advice.spec.d.ts +1 -0
  407. package/dist/schema/call/semantic-customer-advice.spec.js +1 -0
  408. package/dist/schema/call/semantic.d.ts +5 -2
  409. package/dist/schema/call/semantic.js +1 -1
  410. package/dist/schema/call/service.d.ts +7 -7
  411. package/dist/schema/call/service.js +1 -1
  412. package/dist/schema/call/treasury.d.ts +1 -1
  413. package/dist/schema/call/treasury.js +1 -1
  414. package/dist/schema/common/index.d.ts +6 -6
  415. package/dist/schema/common/index.js +1 -1
  416. package/dist/schema/config/index.d.ts +50 -1
  417. package/dist/schema/config/index.js +1 -1
  418. package/dist/schema/evaluation/index.d.ts +307 -213
  419. package/dist/schema/evaluation/index.js +1 -1
  420. package/dist/schema/goal/index.d.ts +6 -6
  421. package/dist/schema/goal/planning.d.ts +17 -17
  422. package/dist/schema/goal/planning.js +1 -1
  423. package/dist/schema/index.d.ts +1 -1
  424. package/dist/schema/index.js +1 -1
  425. package/dist/schema/industry-pack/index.d.ts +1 -1
  426. package/dist/schema/interaction/index.d.ts +1 -1
  427. package/dist/schema/keeper/index.d.ts +1 -1
  428. package/dist/schema/local/index.js +1 -1
  429. package/dist/schema/messenger/index.d.ts +26 -26
  430. package/dist/schema/operations.d.ts +59 -43
  431. package/dist/schema/operations.js +1 -1
  432. package/dist/schema/persona/index.d.ts +4732 -24
  433. package/dist/schema/persona/index.js +1 -1
  434. package/dist/schema/query/bi.d.ts +830 -10
  435. package/dist/schema/query/bi.js +1 -1
  436. package/dist/schema/query/index.d.ts +44 -44
  437. package/dist/schema/query/index.js +1 -1
  438. package/dist/schema/schema-version.js +1 -1
  439. package/dist/schema/workflow/index.d.ts +1 -1
  440. package/dist/schema/workspace/index.d.ts +2 -2
  441. package/dist/schema-query-impl/index.d.ts +9 -0
  442. package/dist/schema-query-impl/index.js +1 -1
  443. package/dist/schemas/account_operation.output.json +1 -1
  444. package/dist/schemas/benchmark_migration_operation.output.json +793 -0
  445. package/dist/schemas/benchmark_migration_operation.schema.json +83 -0
  446. package/dist/schemas/bridge_operation.output.json +1 -1
  447. package/dist/schemas/bridge_operation.schema.json +5 -5
  448. package/dist/schemas/config_operation.output.json +252 -0
  449. package/dist/schemas/config_operation.schema.json +21 -1
  450. package/dist/schemas/evaluation_operation.output.json +702 -162
  451. package/dist/schemas/evaluation_operation.schema.json +0 -429
  452. package/dist/schemas/goal_operation.schema.json +8 -8
  453. package/dist/schemas/guard2file.schema.json +1 -1
  454. package/dist/schemas/index.json +7 -7
  455. package/dist/schemas/keeper_operation.output.json +1 -1
  456. package/dist/schemas/local_history_operation.output.json +1 -1
  457. package/dist/schemas/local_info_operation.output.json +1 -1
  458. package/dist/schemas/local_mark_operation.output.json +1 -1
  459. package/dist/schemas/machineNode2file.schema.json +1 -1
  460. package/dist/schemas/messenger_operation.output.json +1 -1
  461. package/dist/schemas/messenger_operation.schema.json +24 -12
  462. package/dist/schemas/monitor_events.output.json +1 -1
  463. package/dist/schemas/monitor_subscription.output.json +1 -1
  464. package/dist/schemas/onchain_events.output.json +2 -2
  465. package/dist/schemas/onchain_operations.output.json +6359 -3724
  466. package/dist/schemas/onchain_operations.schema.json +191 -141
  467. package/dist/schemas/onchain_operations_allocation.schema.json +13 -11
  468. package/dist/schemas/onchain_operations_arbitration.schema.json +10 -8
  469. package/dist/schemas/onchain_operations_contact.schema.json +7 -5
  470. package/dist/schemas/onchain_operations_demand.schema.json +7 -5
  471. package/dist/schemas/onchain_operations_gen_passport.schema.json +5 -3
  472. package/dist/schemas/onchain_operations_gen_proof.schema.json +1 -1
  473. package/dist/schemas/onchain_operations_guard.schema.json +5 -3
  474. package/dist/schemas/onchain_operations_machine.schema.json +22 -18
  475. package/dist/schemas/onchain_operations_order.schema.json +11 -7
  476. package/dist/schemas/onchain_operations_payment.schema.json +3 -3
  477. package/dist/schemas/onchain_operations_permission.schema.json +19 -11
  478. package/dist/schemas/onchain_operations_personal.schema.json +16 -10
  479. package/dist/schemas/onchain_operations_progress.schema.json +11 -7
  480. package/dist/schemas/onchain_operations_proof.schema.json +5 -3
  481. package/dist/schemas/onchain_operations_repository.schema.json +12 -8
  482. package/dist/schemas/onchain_operations_reward.schema.json +11 -9
  483. package/dist/schemas/onchain_operations_service.schema.json +28 -22
  484. package/dist/schemas/onchain_operations_treasury.schema.json +13 -11
  485. package/dist/schemas/onchain_table_data.output.json +88 -88
  486. package/dist/schemas/persona_operation.output.json +15875 -1
  487. package/dist/schemas/persona_operation.schema.json +3056 -478
  488. package/dist/schemas/query_toolkit.output.json +1325 -212
  489. package/dist/schemas/query_toolkit.schema.json +60 -2
  490. package/dist/schemas/workflow_operation.schema.json +4 -2
  491. package/dist/strategy/metrics.js +1 -1
  492. package/dist/strategy/scorecard.js +1 -1
  493. package/dist/tools/handlers/benchmark-migration.d.ts +2 -0
  494. package/dist/tools/handlers/benchmark-migration.js +1 -0
  495. package/dist/tools/handlers/bridge.js +1 -1
  496. package/dist/tools/handlers/config.js +1 -1
  497. package/dist/tools/handlers/dispatch-expectations.d.ts +3 -0
  498. package/dist/tools/handlers/dispatch-expectations.js +1 -0
  499. package/dist/tools/handlers/evaluation.js +1 -1
  500. package/dist/tools/handlers/industry-pack.js +1 -1
  501. package/dist/tools/handlers/onchain.js +1 -1
  502. package/dist/tools/handlers/query.js +1 -1
  503. package/dist/tools/handlers/schema-query.js +1 -1
  504. package/dist/tools/index.js +1 -1
  505. package/dist/tools/move-fn-index.gen.d.ts +3 -0
  506. package/dist/tools/move-fn-index.gen.js +1 -0
  507. package/dist/tools/registry/business.js +1 -1
  508. package/dist/tools/registry/config.js +1 -1
  509. package/dist/tools/registry/evaluation.d.ts +2 -0
  510. package/dist/tools/registry/evaluation.js +1 -0
  511. package/dist/tools/registry/onchain.js +1 -1
  512. package/dist/tools/registry/query.js +1 -1
  513. package/dist/tools/sanitize-output.d.ts +3 -0
  514. package/dist/tools/sanitize-output.js +1 -0
  515. package/dist/tools/sanitize-output.spec.d.ts +1 -0
  516. package/dist/tools/sanitize-output.spec.js +1 -0
  517. package/dist/tools/shared.d.ts +0 -1
  518. package/dist/tools/shared.js +1 -1
  519. package/dist/tools/wrap.js +1 -1
  520. package/package.json +9 -3
  521. package/dist/customer/customer-advice.d.ts +0 -32
  522. package/dist/customer/customer-advice.js +0 -1
  523. package/dist/customer/info-puzzle.d.ts +0 -146
  524. package/dist/customer/info-puzzle.js +0 -1
  525. package/dist/customer/order-strategy.d.ts +0 -17
  526. package/dist/customer/order-strategy.js +0 -1
  527. package/dist/customer/preorder-compare.d.ts +0 -24
  528. package/dist/customer/preorder-compare.js +0 -1
  529. package/dist/customer/reminder-system.d.ts +0 -42
  530. package/dist/customer/reminder-system.js +0 -1
  531. package/dist/customer/risk-assessment.d.ts +0 -13
  532. package/dist/customer/risk-assessment.js +0 -1
  533. package/dist/evaluation/builtins/service-risk.d.ts +0 -7
  534. package/dist/evaluation/builtins/service-risk.js +0 -1
  535. package/dist/knowledge/trust-metrics.d.ts +0 -66
  536. package/dist/knowledge/trust-metrics.js +0 -1
  537. package/dist/schema/trust/index.d.ts +0 -334
  538. package/dist/schema/trust/index.js +0 -1
  539. package/dist/schemas/trust_score.output.json +0 -847
  540. package/dist/schemas/trust_score.schema.json +0 -364
  541. package/dist/tools/handlers/trust.d.ts +0 -16
  542. package/dist/tools/handlers/trust.js +0 -1
  543. package/dist/tools/registry/trust.d.ts +0 -2
  544. package/dist/tools/registry/trust.js +0 -1
@@ -668,6 +668,33 @@
668
668
  "type": "string"
669
669
  }
670
670
  },
671
+ "finding_refs": {
672
+ "description": "Structural findings this risk dimension deducted for — resolve graph-aware where-lines from these ids.",
673
+ "type": "array",
674
+ "items": {
675
+ "type": "object",
676
+ "properties": {
677
+ "id": {
678
+ "type": "string",
679
+ "description": "Stable finding registry id (e.g. R4:<machine>:<pair>)."
680
+ },
681
+ "title": {
682
+ "type": "string",
683
+ "description": "Human finding title."
684
+ },
685
+ "severity": {
686
+ "type": "string",
687
+ "description": "Analyzer severity (critical/high/medium/low)."
688
+ }
689
+ },
690
+ "required": [
691
+ "id",
692
+ "title",
693
+ "severity"
694
+ ],
695
+ "additionalProperties": false
696
+ }
697
+ },
671
698
  "red_flag": {
672
699
  "type": "boolean"
673
700
  }
@@ -720,6 +747,91 @@
720
747
  },
721
748
  "summary": {
722
749
  "type": "string"
750
+ },
751
+ "unverified": {
752
+ "description": "Dimension rule ids excluded from the weighted aggregation as unverifiable (data gaps) — never scored as default-low.",
753
+ "type": "array",
754
+ "items": {
755
+ "type": "string"
756
+ }
757
+ },
758
+ "criterionScores": {
759
+ "description": "Per-criterion weighted breakdown (producer/consumer perspective-aware kernel union).",
760
+ "type": "array",
761
+ "items": {
762
+ "type": "object",
763
+ "properties": {
764
+ "name": {
765
+ "type": "string"
766
+ },
767
+ "score": {
768
+ "type": "number"
769
+ },
770
+ "weight": {
771
+ "type": "number"
772
+ },
773
+ "rationale": {
774
+ "type": "string"
775
+ }
776
+ },
777
+ "required": [
778
+ "name",
779
+ "score",
780
+ "weight",
781
+ "rationale"
782
+ ],
783
+ "additionalProperties": false
784
+ }
785
+ },
786
+ "findings": {
787
+ "description": "Negative-evidence findings (richer than red_flags strings).",
788
+ "type": "array",
789
+ "items": {
790
+ "type": "object",
791
+ "properties": {
792
+ "criterion": {
793
+ "type": "string"
794
+ },
795
+ "severity": {
796
+ "type": "string",
797
+ "enum": [
798
+ "critical",
799
+ "high",
800
+ "medium",
801
+ "low",
802
+ "info"
803
+ ]
804
+ },
805
+ "message": {
806
+ "type": "string"
807
+ },
808
+ "deduction": {
809
+ "type": "number"
810
+ }
811
+ },
812
+ "required": [
813
+ "criterion",
814
+ "severity",
815
+ "message",
816
+ "deduction"
817
+ ],
818
+ "additionalProperties": false
819
+ }
820
+ },
821
+ "strengths": {
822
+ "description": "Positive-evidence strengths.",
823
+ "type": "array",
824
+ "items": {
825
+ "type": "string"
826
+ }
827
+ },
828
+ "needsLlm": {
829
+ "description": "True when this evaluation requires LLM processing (worth_buying/value).",
830
+ "type": "boolean"
831
+ },
832
+ "llmPrompt": {
833
+ "description": "When needsLlm=true, the prompt to hand to the caller LLM.",
834
+ "type": "string"
723
835
  }
724
836
  },
725
837
  "required": [
@@ -739,7 +851,7 @@
739
851
  "properties": {
740
852
  "operation": {
741
853
  "type": "string",
742
- "description": "Next on-chain operation label: demand.present_service | demand.present_service_with_passport | demand.publish | service.order_new."
854
+ "description": "Next on-chain operation label: demand.present | demand.present_guarded | demand.publish | service.order_new."
743
855
  },
744
856
  "operation_type": {
745
857
  "type": "string",
@@ -774,7 +886,7 @@
774
886
  "properties": {
775
887
  "operation": {
776
888
  "type": "string",
777
- "description": "Next on-chain operation label: demand.present_service | demand.present_service_with_passport | demand.publish | service.order_new."
889
+ "description": "Next on-chain operation label: demand.present | demand.present_guarded | demand.publish | service.order_new."
778
890
  },
779
891
  "operation_type": {
780
892
  "type": "string",
@@ -926,6 +1038,33 @@
926
1038
  "type": "string"
927
1039
  }
928
1040
  },
1041
+ "finding_refs": {
1042
+ "description": "Structural findings this risk dimension deducted for — resolve graph-aware where-lines from these ids.",
1043
+ "type": "array",
1044
+ "items": {
1045
+ "type": "object",
1046
+ "properties": {
1047
+ "id": {
1048
+ "type": "string",
1049
+ "description": "Stable finding registry id (e.g. R4:<machine>:<pair>)."
1050
+ },
1051
+ "title": {
1052
+ "type": "string",
1053
+ "description": "Human finding title."
1054
+ },
1055
+ "severity": {
1056
+ "type": "string",
1057
+ "description": "Analyzer severity (critical/high/medium/low)."
1058
+ }
1059
+ },
1060
+ "required": [
1061
+ "id",
1062
+ "title",
1063
+ "severity"
1064
+ ],
1065
+ "additionalProperties": false
1066
+ }
1067
+ },
929
1068
  "red_flag": {
930
1069
  "type": "boolean"
931
1070
  }
@@ -978,6 +1117,91 @@
978
1117
  },
979
1118
  "summary": {
980
1119
  "type": "string"
1120
+ },
1121
+ "unverified": {
1122
+ "description": "Dimension rule ids excluded from the weighted aggregation as unverifiable (data gaps) — never scored as default-low.",
1123
+ "type": "array",
1124
+ "items": {
1125
+ "type": "string"
1126
+ }
1127
+ },
1128
+ "criterionScores": {
1129
+ "description": "Per-criterion weighted breakdown (producer/consumer perspective-aware kernel union).",
1130
+ "type": "array",
1131
+ "items": {
1132
+ "type": "object",
1133
+ "properties": {
1134
+ "name": {
1135
+ "type": "string"
1136
+ },
1137
+ "score": {
1138
+ "type": "number"
1139
+ },
1140
+ "weight": {
1141
+ "type": "number"
1142
+ },
1143
+ "rationale": {
1144
+ "type": "string"
1145
+ }
1146
+ },
1147
+ "required": [
1148
+ "name",
1149
+ "score",
1150
+ "weight",
1151
+ "rationale"
1152
+ ],
1153
+ "additionalProperties": false
1154
+ }
1155
+ },
1156
+ "findings": {
1157
+ "description": "Negative-evidence findings (richer than red_flags strings).",
1158
+ "type": "array",
1159
+ "items": {
1160
+ "type": "object",
1161
+ "properties": {
1162
+ "criterion": {
1163
+ "type": "string"
1164
+ },
1165
+ "severity": {
1166
+ "type": "string",
1167
+ "enum": [
1168
+ "critical",
1169
+ "high",
1170
+ "medium",
1171
+ "low",
1172
+ "info"
1173
+ ]
1174
+ },
1175
+ "message": {
1176
+ "type": "string"
1177
+ },
1178
+ "deduction": {
1179
+ "type": "number"
1180
+ }
1181
+ },
1182
+ "required": [
1183
+ "criterion",
1184
+ "severity",
1185
+ "message",
1186
+ "deduction"
1187
+ ],
1188
+ "additionalProperties": false
1189
+ }
1190
+ },
1191
+ "strengths": {
1192
+ "description": "Positive-evidence strengths.",
1193
+ "type": "array",
1194
+ "items": {
1195
+ "type": "string"
1196
+ }
1197
+ },
1198
+ "needsLlm": {
1199
+ "description": "True when this evaluation requires LLM processing (worth_buying/value).",
1200
+ "type": "boolean"
1201
+ },
1202
+ "llmPrompt": {
1203
+ "description": "When needsLlm=true, the prompt to hand to the caller LLM.",
1204
+ "type": "string"
981
1205
  }
982
1206
  },
983
1207
  "required": [
@@ -997,7 +1221,7 @@
997
1221
  "properties": {
998
1222
  "operation": {
999
1223
  "type": "string",
1000
- "description": "Next on-chain operation label: demand.present_service | demand.present_service_with_passport | demand.publish | service.order_new."
1224
+ "description": "Next on-chain operation label: demand.present | demand.present_guarded | demand.publish | service.order_new."
1001
1225
  },
1002
1226
  "operation_type": {
1003
1227
  "type": "string",
@@ -1043,138 +1267,6 @@
1043
1267
  ],
1044
1268
  "additionalProperties": false
1045
1269
  },
1046
- {
1047
- "type": "object",
1048
- "properties": {
1049
- "action": {
1050
- "type": "string",
1051
- "const": "service_risk"
1052
- },
1053
- "result": {
1054
- "type": "object",
1055
- "properties": {
1056
- "evaluation_id": {
1057
- "type": "string"
1058
- },
1059
- "total": {
1060
- "type": "integer",
1061
- "minimum": 0,
1062
- "maximum": 100
1063
- },
1064
- "level": {
1065
- "type": "string",
1066
- "enum": [
1067
- "low",
1068
- "medium_low",
1069
- "medium_high",
1070
- "high"
1071
- ]
1072
- },
1073
- "breakdown": {
1074
- "type": "array",
1075
- "items": {
1076
- "type": "object",
1077
- "properties": {
1078
- "rule_id": {
1079
- "type": "string"
1080
- },
1081
- "dimension": {
1082
- "type": "string"
1083
- },
1084
- "score": {
1085
- "type": "number"
1086
- },
1087
- "weight": {
1088
- "type": "number"
1089
- },
1090
- "reason": {
1091
- "type": "string"
1092
- },
1093
- "matched": {
1094
- "type": "array",
1095
- "items": {
1096
- "type": "string"
1097
- }
1098
- },
1099
- "mismatched": {
1100
- "type": "array",
1101
- "items": {
1102
- "type": "string"
1103
- }
1104
- },
1105
- "red_flag": {
1106
- "type": "boolean"
1107
- }
1108
- },
1109
- "required": [
1110
- "rule_id",
1111
- "dimension",
1112
- "score",
1113
- "weight"
1114
- ],
1115
- "additionalProperties": false
1116
- }
1117
- },
1118
- "red_flags": {
1119
- "type": "array",
1120
- "items": {
1121
- "type": "string"
1122
- }
1123
- },
1124
- "blocked": {
1125
- "type": "boolean"
1126
- },
1127
- "trace": {
1128
- "type": "array",
1129
- "items": {
1130
- "type": "object",
1131
- "properties": {
1132
- "kind": {
1133
- "type": "string",
1134
- "enum": [
1135
- "data_source",
1136
- "rule",
1137
- "override"
1138
- ]
1139
- },
1140
- "id": {
1141
- "type": "string"
1142
- },
1143
- "detail": {
1144
- "type": "string"
1145
- }
1146
- },
1147
- "required": [
1148
- "kind",
1149
- "id",
1150
- "detail"
1151
- ],
1152
- "additionalProperties": false
1153
- }
1154
- },
1155
- "summary": {
1156
- "type": "string"
1157
- }
1158
- },
1159
- "required": [
1160
- "evaluation_id",
1161
- "total",
1162
- "level",
1163
- "breakdown",
1164
- "red_flags",
1165
- "blocked",
1166
- "trace",
1167
- "summary"
1168
- ],
1169
- "additionalProperties": false
1170
- }
1171
- },
1172
- "required": [
1173
- "action",
1174
- "result"
1175
- ],
1176
- "additionalProperties": false
1177
- },
1178
1270
  {
1179
1271
  "type": "object",
1180
1272
  "properties": {
@@ -1689,57 +1781,169 @@
1689
1781
  "type": "string"
1690
1782
  }
1691
1783
  },
1692
- "red_flag": {
1693
- "type": "boolean"
1784
+ "finding_refs": {
1785
+ "description": "Structural findings this risk dimension deducted for — resolve graph-aware where-lines from these ids.",
1786
+ "type": "array",
1787
+ "items": {
1788
+ "type": "object",
1789
+ "properties": {
1790
+ "id": {
1791
+ "type": "string",
1792
+ "description": "Stable finding registry id (e.g. R4:<machine>:<pair>)."
1793
+ },
1794
+ "title": {
1795
+ "type": "string",
1796
+ "description": "Human finding title."
1797
+ },
1798
+ "severity": {
1799
+ "type": "string",
1800
+ "description": "Analyzer severity (critical/high/medium/low)."
1801
+ }
1802
+ },
1803
+ "required": [
1804
+ "id",
1805
+ "title",
1806
+ "severity"
1807
+ ],
1808
+ "additionalProperties": false
1809
+ }
1810
+ },
1811
+ "red_flag": {
1812
+ "type": "boolean"
1813
+ }
1814
+ },
1815
+ "required": [
1816
+ "rule_id",
1817
+ "dimension",
1818
+ "score",
1819
+ "weight"
1820
+ ],
1821
+ "additionalProperties": false
1822
+ }
1823
+ },
1824
+ "red_flags": {
1825
+ "type": "array",
1826
+ "items": {
1827
+ "type": "string"
1828
+ }
1829
+ },
1830
+ "blocked": {
1831
+ "type": "boolean"
1832
+ },
1833
+ "trace": {
1834
+ "type": "array",
1835
+ "items": {
1836
+ "type": "object",
1837
+ "properties": {
1838
+ "kind": {
1839
+ "type": "string",
1840
+ "enum": [
1841
+ "data_source",
1842
+ "rule",
1843
+ "override"
1844
+ ]
1845
+ },
1846
+ "id": {
1847
+ "type": "string"
1848
+ },
1849
+ "detail": {
1850
+ "type": "string"
1851
+ }
1852
+ },
1853
+ "required": [
1854
+ "kind",
1855
+ "id",
1856
+ "detail"
1857
+ ],
1858
+ "additionalProperties": false
1859
+ }
1860
+ },
1861
+ "summary": {
1862
+ "type": "string"
1863
+ },
1864
+ "unverified": {
1865
+ "description": "Dimension rule ids excluded from the weighted aggregation as unverifiable (data gaps) — never scored as default-low.",
1866
+ "type": "array",
1867
+ "items": {
1868
+ "type": "string"
1869
+ }
1870
+ },
1871
+ "criterionScores": {
1872
+ "description": "Per-criterion weighted breakdown (producer/consumer perspective-aware kernel union).",
1873
+ "type": "array",
1874
+ "items": {
1875
+ "type": "object",
1876
+ "properties": {
1877
+ "name": {
1878
+ "type": "string"
1879
+ },
1880
+ "score": {
1881
+ "type": "number"
1882
+ },
1883
+ "weight": {
1884
+ "type": "number"
1885
+ },
1886
+ "rationale": {
1887
+ "type": "string"
1694
1888
  }
1695
1889
  },
1696
1890
  "required": [
1697
- "rule_id",
1698
- "dimension",
1891
+ "name",
1699
1892
  "score",
1700
- "weight"
1893
+ "weight",
1894
+ "rationale"
1701
1895
  ],
1702
1896
  "additionalProperties": false
1703
1897
  }
1704
1898
  },
1705
- "red_flags": {
1706
- "type": "array",
1707
- "items": {
1708
- "type": "string"
1709
- }
1710
- },
1711
- "blocked": {
1712
- "type": "boolean"
1713
- },
1714
- "trace": {
1899
+ "findings": {
1900
+ "description": "Negative-evidence findings (richer than red_flags strings).",
1715
1901
  "type": "array",
1716
1902
  "items": {
1717
1903
  "type": "object",
1718
1904
  "properties": {
1719
- "kind": {
1905
+ "criterion": {
1906
+ "type": "string"
1907
+ },
1908
+ "severity": {
1720
1909
  "type": "string",
1721
1910
  "enum": [
1722
- "data_source",
1723
- "rule",
1724
- "override"
1911
+ "critical",
1912
+ "high",
1913
+ "medium",
1914
+ "low",
1915
+ "info"
1725
1916
  ]
1726
1917
  },
1727
- "id": {
1918
+ "message": {
1728
1919
  "type": "string"
1729
1920
  },
1730
- "detail": {
1731
- "type": "string"
1921
+ "deduction": {
1922
+ "type": "number"
1732
1923
  }
1733
1924
  },
1734
1925
  "required": [
1735
- "kind",
1736
- "id",
1737
- "detail"
1926
+ "criterion",
1927
+ "severity",
1928
+ "message",
1929
+ "deduction"
1738
1930
  ],
1739
1931
  "additionalProperties": false
1740
1932
  }
1741
1933
  },
1742
- "summary": {
1934
+ "strengths": {
1935
+ "description": "Positive-evidence strengths.",
1936
+ "type": "array",
1937
+ "items": {
1938
+ "type": "string"
1939
+ }
1940
+ },
1941
+ "needsLlm": {
1942
+ "description": "True when this evaluation requires LLM processing (worth_buying/value).",
1943
+ "type": "boolean"
1944
+ },
1945
+ "llmPrompt": {
1946
+ "description": "When needsLlm=true, the prompt to hand to the caller LLM.",
1743
1947
  "type": "string"
1744
1948
  }
1745
1949
  },
@@ -1760,7 +1964,7 @@
1760
1964
  "properties": {
1761
1965
  "operation": {
1762
1966
  "type": "string",
1763
- "description": "Next on-chain operation label: demand.present_service | demand.present_service_with_passport | demand.publish | service.order_new."
1967
+ "description": "Next on-chain operation label: demand.present | demand.present_guarded | demand.publish | service.order_new."
1764
1968
  },
1765
1969
  "operation_type": {
1766
1970
  "type": "string",
@@ -2424,6 +2628,33 @@
2424
2628
  "type": "string"
2425
2629
  }
2426
2630
  },
2631
+ "finding_refs": {
2632
+ "description": "Structural findings this risk dimension deducted for — resolve graph-aware where-lines from these ids.",
2633
+ "type": "array",
2634
+ "items": {
2635
+ "type": "object",
2636
+ "properties": {
2637
+ "id": {
2638
+ "type": "string",
2639
+ "description": "Stable finding registry id (e.g. R4:<machine>:<pair>)."
2640
+ },
2641
+ "title": {
2642
+ "type": "string",
2643
+ "description": "Human finding title."
2644
+ },
2645
+ "severity": {
2646
+ "type": "string",
2647
+ "description": "Analyzer severity (critical/high/medium/low)."
2648
+ }
2649
+ },
2650
+ "required": [
2651
+ "id",
2652
+ "title",
2653
+ "severity"
2654
+ ],
2655
+ "additionalProperties": false
2656
+ }
2657
+ },
2427
2658
  "red_flag": {
2428
2659
  "type": "boolean"
2429
2660
  }
@@ -2476,6 +2707,91 @@
2476
2707
  },
2477
2708
  "summary": {
2478
2709
  "type": "string"
2710
+ },
2711
+ "unverified": {
2712
+ "description": "Dimension rule ids excluded from the weighted aggregation as unverifiable (data gaps) — never scored as default-low.",
2713
+ "type": "array",
2714
+ "items": {
2715
+ "type": "string"
2716
+ }
2717
+ },
2718
+ "criterionScores": {
2719
+ "description": "Per-criterion weighted breakdown (producer/consumer perspective-aware kernel union).",
2720
+ "type": "array",
2721
+ "items": {
2722
+ "type": "object",
2723
+ "properties": {
2724
+ "name": {
2725
+ "type": "string"
2726
+ },
2727
+ "score": {
2728
+ "type": "number"
2729
+ },
2730
+ "weight": {
2731
+ "type": "number"
2732
+ },
2733
+ "rationale": {
2734
+ "type": "string"
2735
+ }
2736
+ },
2737
+ "required": [
2738
+ "name",
2739
+ "score",
2740
+ "weight",
2741
+ "rationale"
2742
+ ],
2743
+ "additionalProperties": false
2744
+ }
2745
+ },
2746
+ "findings": {
2747
+ "description": "Negative-evidence findings (richer than red_flags strings).",
2748
+ "type": "array",
2749
+ "items": {
2750
+ "type": "object",
2751
+ "properties": {
2752
+ "criterion": {
2753
+ "type": "string"
2754
+ },
2755
+ "severity": {
2756
+ "type": "string",
2757
+ "enum": [
2758
+ "critical",
2759
+ "high",
2760
+ "medium",
2761
+ "low",
2762
+ "info"
2763
+ ]
2764
+ },
2765
+ "message": {
2766
+ "type": "string"
2767
+ },
2768
+ "deduction": {
2769
+ "type": "number"
2770
+ }
2771
+ },
2772
+ "required": [
2773
+ "criterion",
2774
+ "severity",
2775
+ "message",
2776
+ "deduction"
2777
+ ],
2778
+ "additionalProperties": false
2779
+ }
2780
+ },
2781
+ "strengths": {
2782
+ "description": "Positive-evidence strengths.",
2783
+ "type": "array",
2784
+ "items": {
2785
+ "type": "string"
2786
+ }
2787
+ },
2788
+ "needsLlm": {
2789
+ "description": "True when this evaluation requires LLM processing (worth_buying/value).",
2790
+ "type": "boolean"
2791
+ },
2792
+ "llmPrompt": {
2793
+ "description": "When needsLlm=true, the prompt to hand to the caller LLM.",
2794
+ "type": "string"
2479
2795
  }
2480
2796
  },
2481
2797
  "required": [
@@ -2600,6 +2916,33 @@
2600
2916
  "type": "string"
2601
2917
  }
2602
2918
  },
2919
+ "finding_refs": {
2920
+ "description": "Structural findings this risk dimension deducted for — resolve graph-aware where-lines from these ids.",
2921
+ "type": "array",
2922
+ "items": {
2923
+ "type": "object",
2924
+ "properties": {
2925
+ "id": {
2926
+ "type": "string",
2927
+ "description": "Stable finding registry id (e.g. R4:<machine>:<pair>)."
2928
+ },
2929
+ "title": {
2930
+ "type": "string",
2931
+ "description": "Human finding title."
2932
+ },
2933
+ "severity": {
2934
+ "type": "string",
2935
+ "description": "Analyzer severity (critical/high/medium/low)."
2936
+ }
2937
+ },
2938
+ "required": [
2939
+ "id",
2940
+ "title",
2941
+ "severity"
2942
+ ],
2943
+ "additionalProperties": false
2944
+ }
2945
+ },
2603
2946
  "red_flag": {
2604
2947
  "type": "boolean"
2605
2948
  }
@@ -2652,6 +2995,91 @@
2652
2995
  },
2653
2996
  "summary": {
2654
2997
  "type": "string"
2998
+ },
2999
+ "unverified": {
3000
+ "description": "Dimension rule ids excluded from the weighted aggregation as unverifiable (data gaps) — never scored as default-low.",
3001
+ "type": "array",
3002
+ "items": {
3003
+ "type": "string"
3004
+ }
3005
+ },
3006
+ "criterionScores": {
3007
+ "description": "Per-criterion weighted breakdown (producer/consumer perspective-aware kernel union).",
3008
+ "type": "array",
3009
+ "items": {
3010
+ "type": "object",
3011
+ "properties": {
3012
+ "name": {
3013
+ "type": "string"
3014
+ },
3015
+ "score": {
3016
+ "type": "number"
3017
+ },
3018
+ "weight": {
3019
+ "type": "number"
3020
+ },
3021
+ "rationale": {
3022
+ "type": "string"
3023
+ }
3024
+ },
3025
+ "required": [
3026
+ "name",
3027
+ "score",
3028
+ "weight",
3029
+ "rationale"
3030
+ ],
3031
+ "additionalProperties": false
3032
+ }
3033
+ },
3034
+ "findings": {
3035
+ "description": "Negative-evidence findings (richer than red_flags strings).",
3036
+ "type": "array",
3037
+ "items": {
3038
+ "type": "object",
3039
+ "properties": {
3040
+ "criterion": {
3041
+ "type": "string"
3042
+ },
3043
+ "severity": {
3044
+ "type": "string",
3045
+ "enum": [
3046
+ "critical",
3047
+ "high",
3048
+ "medium",
3049
+ "low",
3050
+ "info"
3051
+ ]
3052
+ },
3053
+ "message": {
3054
+ "type": "string"
3055
+ },
3056
+ "deduction": {
3057
+ "type": "number"
3058
+ }
3059
+ },
3060
+ "required": [
3061
+ "criterion",
3062
+ "severity",
3063
+ "message",
3064
+ "deduction"
3065
+ ],
3066
+ "additionalProperties": false
3067
+ }
3068
+ },
3069
+ "strengths": {
3070
+ "description": "Positive-evidence strengths.",
3071
+ "type": "array",
3072
+ "items": {
3073
+ "type": "string"
3074
+ }
3075
+ },
3076
+ "needsLlm": {
3077
+ "description": "True when this evaluation requires LLM processing (worth_buying/value).",
3078
+ "type": "boolean"
3079
+ },
3080
+ "llmPrompt": {
3081
+ "description": "When needsLlm=true, the prompt to hand to the caller LLM.",
3082
+ "type": "string"
2655
3083
  }
2656
3084
  },
2657
3085
  "required": [
@@ -2718,6 +3146,33 @@
2718
3146
  "type": "string"
2719
3147
  }
2720
3148
  },
3149
+ "finding_refs": {
3150
+ "description": "Structural findings this risk dimension deducted for — resolve graph-aware where-lines from these ids.",
3151
+ "type": "array",
3152
+ "items": {
3153
+ "type": "object",
3154
+ "properties": {
3155
+ "id": {
3156
+ "type": "string",
3157
+ "description": "Stable finding registry id (e.g. R4:<machine>:<pair>)."
3158
+ },
3159
+ "title": {
3160
+ "type": "string",
3161
+ "description": "Human finding title."
3162
+ },
3163
+ "severity": {
3164
+ "type": "string",
3165
+ "description": "Analyzer severity (critical/high/medium/low)."
3166
+ }
3167
+ },
3168
+ "required": [
3169
+ "id",
3170
+ "title",
3171
+ "severity"
3172
+ ],
3173
+ "additionalProperties": false
3174
+ }
3175
+ },
2721
3176
  "red_flag": {
2722
3177
  "type": "boolean"
2723
3178
  }
@@ -2770,6 +3225,91 @@
2770
3225
  },
2771
3226
  "summary": {
2772
3227
  "type": "string"
3228
+ },
3229
+ "unverified": {
3230
+ "description": "Dimension rule ids excluded from the weighted aggregation as unverifiable (data gaps) — never scored as default-low.",
3231
+ "type": "array",
3232
+ "items": {
3233
+ "type": "string"
3234
+ }
3235
+ },
3236
+ "criterionScores": {
3237
+ "description": "Per-criterion weighted breakdown (producer/consumer perspective-aware kernel union).",
3238
+ "type": "array",
3239
+ "items": {
3240
+ "type": "object",
3241
+ "properties": {
3242
+ "name": {
3243
+ "type": "string"
3244
+ },
3245
+ "score": {
3246
+ "type": "number"
3247
+ },
3248
+ "weight": {
3249
+ "type": "number"
3250
+ },
3251
+ "rationale": {
3252
+ "type": "string"
3253
+ }
3254
+ },
3255
+ "required": [
3256
+ "name",
3257
+ "score",
3258
+ "weight",
3259
+ "rationale"
3260
+ ],
3261
+ "additionalProperties": false
3262
+ }
3263
+ },
3264
+ "findings": {
3265
+ "description": "Negative-evidence findings (richer than red_flags strings).",
3266
+ "type": "array",
3267
+ "items": {
3268
+ "type": "object",
3269
+ "properties": {
3270
+ "criterion": {
3271
+ "type": "string"
3272
+ },
3273
+ "severity": {
3274
+ "type": "string",
3275
+ "enum": [
3276
+ "critical",
3277
+ "high",
3278
+ "medium",
3279
+ "low",
3280
+ "info"
3281
+ ]
3282
+ },
3283
+ "message": {
3284
+ "type": "string"
3285
+ },
3286
+ "deduction": {
3287
+ "type": "number"
3288
+ }
3289
+ },
3290
+ "required": [
3291
+ "criterion",
3292
+ "severity",
3293
+ "message",
3294
+ "deduction"
3295
+ ],
3296
+ "additionalProperties": false
3297
+ }
3298
+ },
3299
+ "strengths": {
3300
+ "description": "Positive-evidence strengths.",
3301
+ "type": "array",
3302
+ "items": {
3303
+ "type": "string"
3304
+ }
3305
+ },
3306
+ "needsLlm": {
3307
+ "description": "True when this evaluation requires LLM processing (worth_buying/value).",
3308
+ "type": "boolean"
3309
+ },
3310
+ "llmPrompt": {
3311
+ "description": "When needsLlm=true, the prompt to hand to the caller LLM.",
3312
+ "type": "string"
2773
3313
  }
2774
3314
  },
2775
3315
  "required": [