@wowok/agent-mcp 3.3.1 → 3.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/dist/chain-semantics/field-capability.js +1 -1
  2. package/dist/chain-semantics/freeze-map.js +1 -1
  3. package/dist/chain-semantics/fund-flow.js +1 -1
  4. package/dist/chain-semantics/guard-verbs.js +1 -1
  5. package/dist/chain-semantics/object-graph.js +1 -1
  6. package/dist/composition/audit.d.ts +5 -0
  7. package/dist/composition/audit.js +1 -1
  8. package/dist/composition/blueprint-view.d.ts +0 -1
  9. package/dist/composition/blueprint-view.js +1 -1
  10. package/dist/composition/compile.d.ts +5 -3
  11. package/dist/composition/compile.js +1 -1
  12. package/dist/composition/inflight.d.ts +32 -4
  13. package/dist/composition/inflight.js +1 -1
  14. package/dist/config/judgment.d.ts +111 -1
  15. package/dist/config/judgment.js +1 -1
  16. package/dist/customer/industry-risks.js +1 -1
  17. package/dist/customer/user-preferences.js +1 -1
  18. package/dist/evaluation/arbitration-game.d.ts +4 -0
  19. package/dist/evaluation/arbitration-game.js +1 -1
  20. package/dist/evaluation/builtins/graph-service.js +1 -1
  21. package/dist/evaluation/builtins/graph-service.spec.js +1 -1
  22. package/dist/evaluation/game-strategy.d.ts +6 -0
  23. package/dist/evaluation/game-strategy.js +1 -1
  24. package/dist/evaluation/node-game.d.ts +4 -0
  25. package/dist/evaluation/node-game.js +1 -1
  26. package/dist/evaluation/value-risk.d.ts +8 -0
  27. package/dist/evaluation/value-risk.js +1 -0
  28. package/dist/experience/realtime-feedback.js +1 -1
  29. package/dist/extensions/business-modules.d.ts +7 -2
  30. package/dist/extensions/business-modules.js +1 -1
  31. package/dist/extensions/industry-audit.spec.js +1 -1
  32. package/dist/extensions/industry-pack.d.ts +3 -2
  33. package/dist/extensions/industry-pack.js +1 -1
  34. package/dist/extensions/modes.js +1 -1
  35. package/dist/graph/onchain/analyze.js +1 -1
  36. package/dist/graph/onchain/analyze.spec.js +1 -1
  37. package/dist/graph/onchain/expand.js +1 -1
  38. package/dist/graph/onchain/exposure.js +1 -1
  39. package/dist/graph/onchain/facet-projection.js +1 -1
  40. package/dist/graph/onchain/facet-projection.spec.js +1 -1
  41. package/dist/graph/onchain/facts.d.ts +20 -0
  42. package/dist/graph/onchain/facts.js +1 -1
  43. package/dist/graph/onchain/facts.spec.js +1 -1
  44. package/dist/graph/onchain/object-held-receipts.d.ts +20 -0
  45. package/dist/graph/onchain/object-held-receipts.js +1 -0
  46. package/dist/graph/onchain/object-held-receipts.spec.d.ts +1 -0
  47. package/dist/graph/onchain/object-held-receipts.spec.js +1 -0
  48. package/dist/graph/onchain/project-relationship.js +1 -1
  49. package/dist/graph/onchain/sdk-batch.d.ts +1 -0
  50. package/dist/graph/onchain/sdk-batch.js +1 -1
  51. package/dist/harness/index.d.ts +1 -0
  52. package/dist/harness/recover.d.ts +2 -1
  53. package/dist/harness/recover.js +1 -1
  54. package/dist/knowledge/acquisition-flywheel.js +1 -1
  55. package/dist/knowledge/allocation-ledger.d.ts +3 -1
  56. package/dist/knowledge/allocation-ledger.js +1 -1
  57. package/dist/knowledge/allocation-puzzle.d.ts +1 -0
  58. package/dist/knowledge/allocation-puzzle.js +1 -1
  59. package/dist/knowledge/allocation-risk.d.ts +1 -1
  60. package/dist/knowledge/allocation-risk.js +1 -1
  61. package/dist/knowledge/arb-fund-facts.d.ts +12 -0
  62. package/dist/knowledge/arb-fund-facts.js +1 -1
  63. package/dist/knowledge/audit-rules.d.ts +4 -3
  64. package/dist/knowledge/audit-rules.js +1 -1
  65. package/dist/knowledge/baselines/judgment-baselines.json +502 -81
  66. package/dist/knowledge/baselines/rules/allocation.json +0 -14
  67. package/dist/knowledge/baselines/rules/graph.json +4 -4
  68. package/dist/knowledge/baselines/rules/plan.json +81 -5
  69. package/dist/knowledge/baselines/rules/reward.json +1 -1
  70. package/dist/knowledge/builtin-templates.d.ts +9 -1
  71. package/dist/knowledge/builtin-templates.js +1 -1
  72. package/dist/knowledge/discount-threshold.js +1 -1
  73. package/dist/knowledge/event-semantics.js +1 -1
  74. package/dist/knowledge/game-scenarios.d.ts +21 -0
  75. package/dist/knowledge/game-scenarios.js +1 -0
  76. package/dist/knowledge/getting-started.js +1 -1
  77. package/dist/knowledge/guard-bindings.js +1 -1
  78. package/dist/knowledge/guard-design-patterns.d.ts +1 -1
  79. package/dist/knowledge/guard-design-patterns.js +1 -1
  80. package/dist/knowledge/guard-field-cognition.js +1 -1
  81. package/dist/knowledge/guard-leg-map.d.ts +5 -0
  82. package/dist/knowledge/guard-leg-map.js +1 -0
  83. package/dist/knowledge/guard-lint.js +1 -1
  84. package/dist/knowledge/guard-puzzle.js +1 -1
  85. package/dist/knowledge/guard-render.js +1 -1
  86. package/dist/knowledge/guard-risk.js +1 -1
  87. package/dist/knowledge/guard-submission-brief.d.ts +5 -0
  88. package/dist/knowledge/guard-submission-brief.js +1 -1
  89. package/dist/knowledge/guard-submission-prompt.d.ts +2 -1
  90. package/dist/knowledge/guard-submission-prompt.js +1 -1
  91. package/dist/knowledge/guard-templates.d.ts +1 -1
  92. package/dist/knowledge/guard-templates.js +1 -1
  93. package/dist/knowledge/guard-translation.js +1 -1
  94. package/dist/knowledge/index.js +1 -1
  95. package/dist/knowledge/industry-generalizer.js +1 -1
  96. package/dist/knowledge/industry-registry.js +1 -1
  97. package/dist/knowledge/industry-strategy.js +1 -1
  98. package/dist/knowledge/jsonrpc-enum.js +1 -1
  99. package/dist/knowledge/onchain-constants.d.ts +4 -2
  100. package/dist/knowledge/onchain-constants.js +1 -1
  101. package/dist/knowledge/order-ledger.d.ts +1 -1
  102. package/dist/knowledge/order-ledger.js +1 -1
  103. package/dist/knowledge/order-puzzle.d.ts +3 -0
  104. package/dist/knowledge/order-risk.d.ts +1 -1
  105. package/dist/knowledge/passport-ledger.d.ts +12 -0
  106. package/dist/knowledge/passport-ledger.js +1 -1
  107. package/dist/knowledge/payment-tracker.js +1 -1
  108. package/dist/knowledge/protocol-facts.d.ts +1 -0
  109. package/dist/knowledge/protocol-facts.js +1 -1
  110. package/dist/knowledge/repository-write-semantics.d.ts +1 -1
  111. package/dist/knowledge/repository-write-semantics.js +1 -1
  112. package/dist/knowledge/reward-ledger.js +1 -1
  113. package/dist/knowledge/reward-puzzle.d.ts +1 -1
  114. package/dist/knowledge/reward-risk.d.ts +1 -1
  115. package/dist/knowledge/scenario-modes.d.ts +2 -2
  116. package/dist/knowledge/scenario-modes.js +1 -1
  117. package/dist/knowledge/scenario-topology.js +1 -1
  118. package/dist/knowledge/service-ledger.d.ts +14 -0
  119. package/dist/knowledge/service-ledger.js +1 -1
  120. package/dist/knowledge/strategy-manuals.js +1 -1
  121. package/dist/knowledge/template-index.d.ts +19 -0
  122. package/dist/knowledge/template-index.js +1 -0
  123. package/dist/knowledge/template-loader.d.ts +36 -0
  124. package/dist/knowledge/template-loader.js +1 -1
  125. package/dist/knowledge/template-registry.js +1 -1
  126. package/dist/knowledge/template-scanner.d.ts +11 -0
  127. package/dist/knowledge/template-scanner.js +1 -1
  128. package/dist/knowledge/tool-constraints.js +1 -1
  129. package/dist/knowledge/workflow-guidance.d.ts +2 -0
  130. package/dist/knowledge/workflow-guidance.js +1 -1
  131. package/dist/monitor/MonitorLoop.js +1 -1
  132. package/dist/participation/allocation-advice.d.ts +8 -1
  133. package/dist/participation/allocation-advice.js +1 -1
  134. package/dist/participation/game-context.d.ts +25 -0
  135. package/dist/participation/game-context.js +1 -0
  136. package/dist/participation/node-action-advisor.d.ts +64 -0
  137. package/dist/participation/node-action-advisor.js +1 -0
  138. package/dist/participation/radar-core.d.ts +1 -0
  139. package/dist/participation/radar-core.js +1 -1
  140. package/dist/persona/defaults.js +1 -1
  141. package/dist/persona/topology-focus.js +1 -1
  142. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  143. package/dist/playbooks/service-build/game-theory.d.ts +4 -1
  144. package/dist/playbooks/service-build/game-theory.js +1 -1
  145. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  146. package/dist/playbooks/service-build/merchant-guide.d.ts +26 -1
  147. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  148. package/dist/playbooks/service-build/migration-planner.d.ts +2 -2
  149. package/dist/playbooks/service-build/migration-planner.js +1 -1
  150. package/dist/playbooks/service-build/object-panorama.d.ts +13 -1
  151. package/dist/playbooks/service-build/object-panorama.js +1 -1
  152. package/dist/playbooks/service-build/participation-radar.js +1 -1
  153. package/dist/playbooks/service-build/pipeline-actions.d.ts +4 -1
  154. package/dist/playbooks/service-build/pipeline-actions.js +1 -1
  155. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  156. package/dist/playbooks/service-build/service-panorama.d.ts +12 -0
  157. package/dist/playbooks/service-build/service-panorama.js +1 -1
  158. package/dist/playbooks/service-build/service-quote.js +1 -1
  159. package/dist/playbooks/service-build/service-quote.spec.js +1 -1
  160. package/dist/relationship/derivation.d.ts +1 -1
  161. package/dist/review/index.js +1 -1
  162. package/dist/review/repository.js +1 -1
  163. package/dist/role/intent.d.ts +23 -0
  164. package/dist/role/intent.js +1 -0
  165. package/dist/safety/confirm-gate.js +1 -1
  166. package/dist/schema/benchmark-migration/index.d.ts +39 -0
  167. package/dist/schema/benchmark-migration/index.js +1 -1
  168. package/dist/schema/call/allocation.d.ts +49 -3
  169. package/dist/schema/call/allocation.js +1 -1
  170. package/dist/schema/call/arbitration.js +1 -1
  171. package/dist/schema/call/base.d.ts +52 -0
  172. package/dist/schema/call/base.js +1 -1
  173. package/dist/schema/call/bridge.d.ts +3 -0
  174. package/dist/schema/call/contact.js +1 -1
  175. package/dist/schema/call/error-codes.d.ts +1 -1
  176. package/dist/schema/call/error-codes.js +1 -1
  177. package/dist/schema/call/guard.js +1 -1
  178. package/dist/schema/call/handler.js +1 -1
  179. package/dist/schema/call/machine.d.ts +10 -0
  180. package/dist/schema/call/machine.js +1 -1
  181. package/dist/schema/call/order.d.ts +2 -0
  182. package/dist/schema/call/order.js +1 -1
  183. package/dist/schema/call/progress.d.ts +6 -3
  184. package/dist/schema/call/progress.js +1 -1
  185. package/dist/schema/call/repository.d.ts +4 -0
  186. package/dist/schema/call/repository.js +1 -1
  187. package/dist/schema/call/reward.d.ts +2 -2
  188. package/dist/schema/call/reward.js +1 -1
  189. package/dist/schema/call/semantic.d.ts +6 -0
  190. package/dist/schema/call/semantic.js +1 -1
  191. package/dist/schema/call/service.d.ts +42 -4
  192. package/dist/schema/call/service.js +1 -1
  193. package/dist/schema/common/index.js +1 -1
  194. package/dist/schema/goal/index.d.ts +54 -0
  195. package/dist/schema/goal/planning.d.ts +86 -0
  196. package/dist/schema/goal/planning.js +1 -1
  197. package/dist/schema/keeper/index.d.ts +2 -0
  198. package/dist/schema/local/index.d.ts +72 -0
  199. package/dist/schema/local/index.js +1 -1
  200. package/dist/schema/messenger/index.d.ts +2 -0
  201. package/dist/schema/operations.d.ts +46 -5
  202. package/dist/schema/operations.js +1 -1
  203. package/dist/schema/persona/index.d.ts +484 -0
  204. package/dist/schema/query/bi.d.ts +4 -0
  205. package/dist/schema/query/bi.js +1 -1
  206. package/dist/schema/query/index.d.ts +84 -60
  207. package/dist/schema/query/index.js +1 -1
  208. package/dist/schema/schema-version.d.ts +1 -1
  209. package/dist/schema/schema-version.js +1 -1
  210. package/dist/schema-query-impl/index.js +1 -1
  211. package/dist/schemas/account_operation.output.json +41 -10
  212. package/dist/schemas/account_operation.schema.json +1 -1
  213. package/dist/schemas/benchmark_migration_operation.output.json +8 -5
  214. package/dist/schemas/benchmark_migration_operation.schema.json +91 -3
  215. package/dist/schemas/bridge_operation.output.json +13 -7
  216. package/dist/schemas/goal_operation.schema.json +94 -0
  217. package/dist/schemas/index.json +1 -1
  218. package/dist/schemas/keeper_operation.output.json +12 -7
  219. package/dist/schemas/local_cache_operation.output.json +34 -7
  220. package/dist/schemas/local_cache_operation.schema.json +16 -1
  221. package/dist/schemas/local_history_operation.output.json +13 -7
  222. package/dist/schemas/local_info_operation.output.json +13 -7
  223. package/dist/schemas/local_info_operation.schema.json +5 -1
  224. package/dist/schemas/local_mark_operation.output.json +13 -7
  225. package/dist/schemas/messenger_operation.output.json +12 -7
  226. package/dist/schemas/monitor_events.output.json +12 -7
  227. package/dist/schemas/monitor_subscription.output.json +12 -7
  228. package/dist/schemas/onchain_events.output.json +67 -18
  229. package/dist/schemas/onchain_events.schema.json +4 -0
  230. package/dist/schemas/onchain_operations.output.json +81 -24
  231. package/dist/schemas/onchain_operations.schema.json +531 -126
  232. package/dist/schemas/onchain_operations_allocation.schema.json +294 -6
  233. package/dist/schemas/onchain_operations_arbitration.schema.json +3 -3
  234. package/dist/schemas/onchain_operations_contact.schema.json +2 -2
  235. package/dist/schemas/onchain_operations_demand.schema.json +3 -3
  236. package/dist/schemas/onchain_operations_gen_passport.schema.json +1 -1
  237. package/dist/schemas/onchain_operations_guard.schema.json +99 -63
  238. package/dist/schemas/onchain_operations_machine.schema.json +10 -1
  239. package/dist/schemas/onchain_operations_order.schema.json +8 -4
  240. package/dist/schemas/onchain_operations_progress.schema.json +8 -4
  241. package/dist/schemas/onchain_operations_proof.schema.json +1 -1
  242. package/dist/schemas/onchain_operations_repository.schema.json +6 -2
  243. package/dist/schemas/onchain_operations_reward.schema.json +8 -8
  244. package/dist/schemas/onchain_operations_service.schema.json +81 -21
  245. package/dist/schemas/onchain_operations_treasury.schema.json +7 -7
  246. package/dist/schemas/onchain_table_data.output.json +16 -7
  247. package/dist/schemas/persona_operation.output.json +1387 -0
  248. package/dist/schemas/persona_operation.schema.json +219 -0
  249. package/dist/schemas/query_toolkit.output.json +115 -64
  250. package/dist/schemas/query_toolkit.schema.json +8 -0
  251. package/dist/schemas/workflow_operation.schema.json +1 -1
  252. package/dist/tools/handlers/benchmark-migration.js +1 -1
  253. package/dist/tools/handlers/bridge.js +1 -1
  254. package/dist/tools/handlers/config.js +1 -1
  255. package/dist/tools/handlers/dispatch-expectations.js +1 -1
  256. package/dist/tools/handlers/file-export.js +1 -1
  257. package/dist/tools/handlers/industry-pack.d.ts +1 -0
  258. package/dist/tools/handlers/industry-pack.js +1 -1
  259. package/dist/tools/handlers/local.js +1 -1
  260. package/dist/tools/handlers/messenger.js +1 -1
  261. package/dist/tools/handlers/onchain-name-registration.d.ts +11 -0
  262. package/dist/tools/handlers/onchain-name-registration.js +1 -1
  263. package/dist/tools/handlers/onchain.d.ts +28 -0
  264. package/dist/tools/handlers/onchain.js +1 -1
  265. package/dist/tools/handlers/query.js +1 -1
  266. package/dist/tools/handlers/review-chain.d.ts +1 -1
  267. package/dist/tools/handlers/review-chain.js +1 -1
  268. package/dist/tools/handlers/schema-query.js +1 -1
  269. package/dist/tools/handlers/workflow.js +1 -1
  270. package/dist/tools/move-fn-index.gen.js +1 -1
  271. package/dist/tools/registry/agent.js +1 -1
  272. package/dist/tools/registry/local.js +1 -1
  273. package/dist/tools/registry/onchain.js +1 -1
  274. package/dist/tools/registry/query.js +1 -1
  275. package/dist/tools/wip-deploy-assist.js +1 -1
  276. package/dist/tools/wrap.js +1 -1
  277. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "description": "Judgment baselines — the factory defaults for every judgment this process makes. Sections: evaluation (scoring standards), game (strategy-game parameters), match (demand↔service matching), monitor (order-monitor thresholds), mode (mode-evaluator posture), scorecard (strategy scorecard tuning), rules (declarative rule book — factory rule packs load from knowledge/baselines/rules/<domain>.json into this namespace and merge with your overrides at rule granularity). Layering: this factory document < your user document (<config dir>/judgment-baselines.json, key-granularity merge — it can replace values or disable rules, never delete these entries) < session runtime overrides < persona < explicit request. The user document hot-reloads on every save; an invalid edit is rejected with the last good version kept in force (see config_operation judgment_list). Example patch (any subset, deep-merged at key granularity, unknown keys rejected): {\"evaluation\": {\"severity_deduction\": {\"critical\": 40}}, \"monitor\": {\"thresholds\": {\"messenger_timeout_hours\": 12}}, \"match\": {\"top_n\": 3}}.",
3
+ "description": "Judgment baselines — the factory defaults for every judgment this process makes. Sections: evaluation (scoring standards), game (strategy-game parameters), match (demand↔service matching), monitor (order-monitor thresholds), mode (mode-evaluator posture), scorecard (strategy scorecard tuning), role_intent (per-role intent profiles for the L-A layer), rules (declarative rule book — factory rule packs load from knowledge/baselines/rules/<domain>.json into this namespace and merge with your overrides at rule granularity). Layering: this factory document < your user document (<config dir>/judgment-baselines.json, key-granularity merge — it can replace values or disable rules, never delete these entries) < session runtime overrides < persona < explicit request. The user document hot-reloads on every save; an invalid edit is rejected with the last good version kept in force (see config_operation judgment_list). Example patch (any subset, deep-merged at key granularity, unknown keys rejected): {\"evaluation\": {\"severity_deduction\": {\"critical\": 40}}, \"monitor\": {\"thresholds\": {\"messenger_timeout_hours\": 12}}, \"match\": {\"top_n\": 3}}.",
4
4
  "evaluation": {
5
5
  "comment": "Graph service evaluation standards. Weights are relative; the aggregate renormalizes over the enabled rules. An account persona may override per-dimension weights at runtime (persona layer 'evaluation.weights'), and an explicit request injection wins over persona.",
6
6
  "weights": {
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "trust_fund_safety": {
31
31
  "label": "Fund safety",
32
- "description": "Compensation fund vs 3x windowed order volume (statutory ceiling)."
32
+ "description": "Compensation fund vs 3x the largest windowed order (statutory per-order ceiling)."
33
33
  },
34
34
  "trust_transparency": {
35
35
  "label": "Transparency",
@@ -60,86 +60,188 @@
60
60
  "info": 0
61
61
  },
62
62
  "level_bands": [
63
- { "min": 85, "level": "low" },
64
- { "min": 70, "level": "medium_low" },
65
- { "min": 50, "level": "medium_high" },
66
- { "min": 0, "level": "high" }
63
+ {
64
+ "min": 85,
65
+ "level": "low"
66
+ },
67
+ {
68
+ "min": 70,
69
+ "level": "medium_low"
70
+ },
71
+ {
72
+ "min": 50,
73
+ "level": "medium_high"
74
+ },
75
+ {
76
+ "min": 0,
77
+ "level": "high"
78
+ }
67
79
  ],
68
80
  "grade_words": {
69
81
  "comment": "Readable per-side grade rendered from the score. trust: higher score = better service; risk: higher score = fewer findings (safer).",
70
82
  "trust": [
71
- { "min": 70, "word": "strong" },
72
- { "min": 50, "word": "fair" },
73
- { "min": 0, "word": "weak" }
83
+ {
84
+ "min": 70,
85
+ "word": "strong"
86
+ },
87
+ {
88
+ "min": 50,
89
+ "word": "fair"
90
+ },
91
+ {
92
+ "min": 0,
93
+ "word": "weak"
94
+ }
74
95
  ],
75
96
  "risk": [
76
- { "min": 80, "word": "low risk" },
77
- { "min": 50, "word": "moderate risk" },
78
- { "min": 0, "word": "high risk" }
97
+ {
98
+ "min": 80,
99
+ "word": "low risk"
100
+ },
101
+ {
102
+ "min": 50,
103
+ "word": "moderate risk"
104
+ },
105
+ {
106
+ "min": 0,
107
+ "word": "high risk"
108
+ }
79
109
  ]
80
110
  }
81
111
  },
82
112
  "game": {
83
113
  "comment": "Strategy-game parameters: role value anchors, appetite multipliers and scoring constants for the gain/risk consistency evaluation (net = base + per_gain*gains − per_risk*risks*sensitivity, clamped 0-100). Keyword rules re-anchor a role's interests from a persona's natural-language red lines (Q5 dictionary — users retune keywords/effects, never invent outcome vocabulary).",
84
114
  "outcome_semantics": {
85
- "completion": ["fund_released_to_merchant", "refund_leverage_given_up"],
86
- "refund": ["fund_returned_to_buyer", "arbitration_review_triggered"],
87
- "advance": ["node_advanced"]
115
+ "completion": [
116
+ "fund_released_to_merchant",
117
+ "refund_leverage_given_up"
118
+ ],
119
+ "refund": [
120
+ "fund_returned_to_buyer",
121
+ "arbitration_review_triggered"
122
+ ],
123
+ "advance": [
124
+ "node_advanced"
125
+ ]
88
126
  },
89
127
  "role_interests": {
90
128
  "customer": {
91
- "prefer": ["fund_returned_to_buyer"],
92
- "avoid": ["fund_released_to_merchant", "refund_leverage_given_up"],
93
- "sensitivity": 1.0
129
+ "prefer": [
130
+ "fund_returned_to_buyer"
131
+ ],
132
+ "avoid": [
133
+ "fund_released_to_merchant",
134
+ "refund_leverage_given_up"
135
+ ],
136
+ "sensitivity": 1
94
137
  },
95
138
  "merchant": {
96
- "prefer": ["fund_released_to_merchant"],
97
- "avoid": ["fund_returned_to_buyer", "arbitration_review_triggered"],
98
- "sensitivity": 1.0
139
+ "prefer": [
140
+ "fund_released_to_merchant"
141
+ ],
142
+ "avoid": [
143
+ "fund_returned_to_buyer",
144
+ "arbitration_review_triggered"
145
+ ],
146
+ "sensitivity": 1
147
+ },
148
+ "demander": {
149
+ "prefer": [
150
+ "node_advanced"
151
+ ],
152
+ "avoid": [],
153
+ "sensitivity": 1
154
+ },
155
+ "collaborator": {
156
+ "prefer": [
157
+ "node_advanced"
158
+ ],
159
+ "avoid": [],
160
+ "sensitivity": 1
99
161
  },
100
- "demander": { "prefer": ["node_advanced"], "avoid": [], "sensitivity": 1.0 },
101
- "collaborator": { "prefer": ["node_advanced"], "avoid": [], "sensitivity": 1.0 },
102
162
  "supplier": {
103
- "prefer": ["fund_released_to_merchant", "node_advanced"],
104
- "avoid": ["fund_returned_to_buyer"],
105
- "sensitivity": 1.0
163
+ "prefer": [
164
+ "fund_released_to_merchant",
165
+ "node_advanced"
166
+ ],
167
+ "avoid": [
168
+ "fund_returned_to_buyer"
169
+ ],
170
+ "sensitivity": 1
106
171
  },
107
172
  "prospect": {
108
- "prefer": ["fund_returned_to_buyer"],
109
- "avoid": ["fund_released_to_merchant", "arbitration_review_triggered", "refund_leverage_given_up"],
110
- "sensitivity": 1.0
173
+ "prefer": [
174
+ "fund_returned_to_buyer"
175
+ ],
176
+ "avoid": [
177
+ "fund_released_to_merchant",
178
+ "arbitration_review_triggered",
179
+ "refund_leverage_given_up"
180
+ ],
181
+ "sensitivity": 1
182
+ },
183
+ "arbitrator": {
184
+ "prefer": [],
185
+ "avoid": [
186
+ "arbitration_review_triggered"
187
+ ],
188
+ "sensitivity": 1
189
+ },
190
+ "neutral": {
191
+ "prefer": [],
192
+ "avoid": [],
193
+ "sensitivity": 1
111
194
  },
112
- "arbitrator": { "prefer": [], "avoid": ["arbitration_review_triggered"], "sensitivity": 1.0 },
113
- "neutral": { "prefer": [], "avoid": [], "sensitivity": 1.0 },
114
- "system": { "prefer": [], "avoid": [], "sensitivity": 1.0 }
195
+ "system": {
196
+ "prefer": [],
197
+ "avoid": [],
198
+ "sensitivity": 1
199
+ }
200
+ },
201
+ "appetite_multipliers": {
202
+ "conservative": 1.5,
203
+ "balanced": 1,
204
+ "aggressive": 0.6
205
+ },
206
+ "scoring": {
207
+ "base": 60,
208
+ "per_gain": 20,
209
+ "per_risk": 25
115
210
  },
116
- "appetite_multipliers": { "conservative": 1.5, "balanced": 1.0, "aggressive": 0.6 },
117
- "scoring": { "base": 60, "per_gain": 20, "per_risk": 25 },
118
211
  "keyword_rules": [
119
212
  {
120
213
  "id": "kw_arbitration",
121
- "keywords": ["arbitration"],
214
+ "keywords": [
215
+ "arbitration"
216
+ ],
122
217
  "effect": "arbitration_review_triggered",
123
218
  "anchor": "avoid",
124
219
  "when_forbidden": true
125
220
  },
126
221
  {
127
222
  "id": "kw_refund",
128
- "keywords": ["refund"],
223
+ "keywords": [
224
+ "refund"
225
+ ],
129
226
  "effect": "fund_returned_to_buyer",
130
227
  "anchor": "prefer",
131
228
  "when_forbidden": false
132
229
  },
133
230
  {
134
231
  "id": "kw_upfront",
135
- "keywords": ["upfront", "before delivery"],
232
+ "keywords": [
233
+ "upfront",
234
+ "before delivery"
235
+ ],
136
236
  "effect": "fund_released_to_merchant",
137
237
  "anchor": "avoid",
138
238
  "when_forbidden": true
139
239
  },
140
240
  {
141
241
  "id": "kw_milestone",
142
- "keywords": ["milestone"],
242
+ "keywords": [
243
+ "milestone"
244
+ ],
143
245
  "effect": "node_advanced",
144
246
  "anchor": "prefer",
145
247
  "when_forbidden": false
@@ -149,67 +251,118 @@
149
251
  "arb": {
150
252
  "comment": "Arbitration 7-state game tunables — a PARALLEL case-lifecycle interest model (effects are about the dispute case, not the fund lifecycle; it shares only the appetite multiplier with the fund game). effect_semantics publishes the kernel effect vocabulary; keyword_rules re-anchor a perspective's prefer/avoid from persona red lines (an unconditional keyword entry is expressed as a pair with when_forbidden true AND false); scoring: favorability = clamp(base + per_gain × gains − per_risk × risks × sensitivity).",
151
253
  "effect_semantics": {
152
- "case_advanced": ["the case moves forward"],
153
- "case_extended": ["the case is prolonged — more cost and delay"],
154
- "reversal_chance": ["a chance to overturn a ruling"],
155
- "adverse_ruling": ["an unfavorable ruling lands"],
156
- "case_closed": ["the case reaches a terminal state"],
157
- "fees_received": ["fees or indemnity are collected"]
254
+ "case_advanced": [
255
+ "the case moves forward"
256
+ ],
257
+ "case_extended": [
258
+ "the case is prolonged — more cost and delay"
259
+ ],
260
+ "reversal_chance": [
261
+ "a chance to overturn a ruling"
262
+ ],
263
+ "adverse_ruling": [
264
+ "an unfavorable ruling lands"
265
+ ],
266
+ "case_closed": [
267
+ "the case reaches a terminal state"
268
+ ],
269
+ "fees_received": [
270
+ "fees or indemnity are collected"
271
+ ]
158
272
  },
159
273
  "role_interests": {
160
274
  "arbitrator": {
161
- "prefer": ["case_advanced", "fees_received", "case_closed"],
162
- "avoid": ["case_extended"],
163
- "sensitivity": 1.0
275
+ "prefer": [
276
+ "case_advanced",
277
+ "fees_received",
278
+ "case_closed"
279
+ ],
280
+ "avoid": [
281
+ "case_extended"
282
+ ],
283
+ "sensitivity": 1
164
284
  },
165
285
  "customer": {
166
- "prefer": ["reversal_chance", "case_closed"],
167
- "avoid": ["adverse_ruling", "case_extended"],
168
- "sensitivity": 1.0
286
+ "prefer": [
287
+ "reversal_chance",
288
+ "case_closed"
289
+ ],
290
+ "avoid": [
291
+ "adverse_ruling",
292
+ "case_extended"
293
+ ],
294
+ "sensitivity": 1
169
295
  },
170
296
  "merchant": {
171
- "prefer": ["case_closed", "fees_received"],
172
- "avoid": ["adverse_ruling", "reversal_chance", "case_extended"],
173
- "sensitivity": 1.0
297
+ "prefer": [
298
+ "case_closed",
299
+ "fees_received"
300
+ ],
301
+ "avoid": [
302
+ "adverse_ruling",
303
+ "reversal_chance",
304
+ "case_extended"
305
+ ],
306
+ "sensitivity": 1
174
307
  }
175
308
  },
176
309
  "keyword_rules": [
177
310
  {
178
311
  "id": "arb_kw_arbitration_forbid",
179
- "keywords": ["arbitration"],
312
+ "keywords": [
313
+ "arbitration"
314
+ ],
180
315
  "effect": "case_extended",
181
316
  "anchor": "avoid",
182
317
  "when_forbidden": true
183
318
  },
184
319
  {
185
320
  "id": "arb_kw_refund",
186
- "keywords": ["refund"],
321
+ "keywords": [
322
+ "refund"
323
+ ],
187
324
  "effect": "reversal_chance",
188
325
  "anchor": "prefer",
189
326
  "when_forbidden": false
190
327
  },
191
328
  {
192
329
  "id": "arb_kw_prolong",
193
- "keywords": ["prolong", "delay"],
330
+ "keywords": [
331
+ "prolong",
332
+ "delay"
333
+ ],
194
334
  "effect": "case_extended",
195
335
  "anchor": "avoid",
196
336
  "when_forbidden": false
197
337
  },
198
338
  {
199
339
  "id": "arb_kw_prolong_forbid",
200
- "keywords": ["prolong", "delay"],
340
+ "keywords": [
341
+ "prolong",
342
+ "delay"
343
+ ],
201
344
  "effect": "case_extended",
202
345
  "anchor": "avoid",
203
346
  "when_forbidden": true
204
347
  }
205
348
  ],
206
349
  "forbid_pattern": "forbid|never|\\bno\\b",
207
- "scoring": { "base": 60, "per_gain": 20, "per_risk": 25 }
350
+ "scoring": {
351
+ "base": 60,
352
+ "per_gain": 20,
353
+ "per_risk": 25
354
+ }
208
355
  }
209
356
  },
210
357
  "match": {
211
358
  "comment": "Demand↔service matching standing defaults (builtin evaluation 'demand_match'): region relation scores, per-dimension weights, trust bands and neutrality. A per-request UserInjection can still reweight or disable dimensions; trust_bands match FIRST entry whose min ≤ trust (keep descending order).",
212
- "region_scores": { "exact": 100, "contains": 85, "compatible": 60, "overlap": 40, "mismatch": 0 },
359
+ "region_scores": {
360
+ "exact": 100,
361
+ "contains": 85,
362
+ "compatible": 60,
363
+ "overlap": 40,
364
+ "mismatch": 0
365
+ },
213
366
  "weights": {
214
367
  "region": 15,
215
368
  "industry": 20,
@@ -220,10 +373,22 @@
220
373
  "acceptance": 10
221
374
  },
222
375
  "trust_bands": [
223
- { "min": 75, "score": 100 },
224
- { "min": 50, "score": 60 },
225
- { "min": 25, "score": 30 },
226
- { "min": 0, "score": 0 }
376
+ {
377
+ "min": 75,
378
+ "score": 100
379
+ },
380
+ {
381
+ "min": 50,
382
+ "score": 60
383
+ },
384
+ {
385
+ "min": 25,
386
+ "score": 30
387
+ },
388
+ {
389
+ "min": 0,
390
+ "score": 0
391
+ }
227
392
  ],
228
393
  "neutral_score": 50,
229
394
  "price_over_budget_tolerance_pct": 10,
@@ -234,7 +399,7 @@
234
399
  "thresholds": {
235
400
  "progress_stall_hours": 0,
236
401
  "compensation_drop_ratio": 0.3,
237
- "compensation_coverage_min": 1.0,
402
+ "compensation_coverage_min": 1,
238
403
  "messenger_timeout_hours": 24,
239
404
  "review_window_closing_days": 3,
240
405
  "arb_window_closing_days": 3
@@ -250,28 +415,139 @@
250
415
  "mode": {
251
416
  "comment": "Mode-evaluator posture: risk/benefit recommendation thresholds per risk appetite (merchant_guide evaluation preview). risk_benefit_ratio is computed by the kernel; only the posture thresholds are tunable here.",
252
417
  "appetite_thresholds": {
253
- "conservative": { "max_risk": 30, "min_benefit": 50 },
254
- "balanced": { "max_risk": 60, "min_benefit": 60 },
255
- "aggressive": { "max_risk": 100, "min_benefit": 80 }
418
+ "conservative": {
419
+ "max_risk": 30,
420
+ "min_benefit": 50
421
+ },
422
+ "balanced": {
423
+ "max_risk": 60,
424
+ "min_benefit": 60
425
+ },
426
+ "aggressive": {
427
+ "max_risk": 100,
428
+ "min_benefit": 80
429
+ }
256
430
  }
257
431
  },
258
432
  "scorecard": {
259
433
  "comment": "Strategy scorecard numeric tuning (Q7 — one scoring document): per-metric posture weights and advisory good/bad scoring anchors, plus the shop-evidence gate. Catalog identity (source/unit/direction/labels) stays kernel-owned; only these numbers are data. Anchors: full score at/beyond good, zero at/beyond bad, linear between (direction lives in the good/bad ordering). A factory anchor can be retuned, never removed; metric ids can never be invented here. Shop-evidence gate BY DESIGN: document layers (user doc / persona / industry) can retune shop_evidence_metrics but can never EMPTY it — array merges never delete entries, so a numeric overall grade always demands at least one available own-commercial metric. To browse without the gate for one session, use a runtime override (config_operation judgment_set path scorecard.shop_evidence_metrics value []).",
260
434
  "metrics": {
261
- "order_count": { "weight": { "volume": 0.2, "balanced": 0.15, "margin": 0.05 }, "good_threshold": 20, "bad_threshold": 5 },
262
- "completed_count": { "weight": { "volume": 0.1, "balanced": 0.1, "margin": 0.1 } },
263
- "completion_rate": { "weight": { "volume": 0.15, "balanced": 0.2, "margin": 0.15 }, "good_threshold": 0.9, "bad_threshold": 0.6 },
264
- "repeat_customer_rate": { "weight": { "volume": 0.2, "balanced": 0.25, "margin": 0.2 }, "good_threshold": 0.25, "bad_threshold": 0.1 },
265
- "dispute_rate": { "weight": { "volume": 0.1, "balanced": 0.15, "margin": 0.2 }, "good_threshold": 0.02, "bad_threshold": 0.05 },
266
- "dd_to_order_rate": { "weight": { "volume": 0.15, "balanced": 0.1, "margin": 0.05 }, "good_threshold": 0.2, "bad_threshold": 0.05 },
267
- "market_recent_orders": { "weight": { "volume": 0.05, "balanced": 0.02, "margin": 0.02 } },
268
- "market_recent_gmv": { "weight": { "volume": 0.02, "balanced": 0.02, "margin": 0.02 } },
269
- "supply_demand_ratio": { "weight": { "volume": 0.02, "balanced": 0.03, "margin": 0.05 }, "good_threshold": 1, "bad_threshold": 4 },
270
- "market_active_services": { "weight": { "volume": 0.01, "balanced": 0.01, "margin": 0.01 } },
271
- "competitor_count": { "weight": { "volume": 0.02, "balanced": 0.05, "margin": 0.1 }, "good_threshold": 5, "bad_threshold": 30 },
272
- "category_enumerated_count": { "weight": { "volume": 0.02, "balanced": 0.05, "margin": 0.1 } },
273
- "arbitration_trust_score": { "weight": { "volume": 0.05, "balanced": 0.1, "margin": 0.15 }, "good_threshold": 80, "bad_threshold": 50 },
274
- "open_attention_count": { "weight": { "volume": 0.03, "balanced": 0.03, "margin": 0.05 }, "good_threshold": 0, "bad_threshold": 5 }
435
+ "order_count": {
436
+ "weight": {
437
+ "volume": 0.2,
438
+ "balanced": 0.15,
439
+ "margin": 0.05
440
+ },
441
+ "good_threshold": 20,
442
+ "bad_threshold": 5
443
+ },
444
+ "completed_count": {
445
+ "weight": {
446
+ "volume": 0.1,
447
+ "balanced": 0.1,
448
+ "margin": 0.1
449
+ }
450
+ },
451
+ "completion_rate": {
452
+ "weight": {
453
+ "volume": 0.15,
454
+ "balanced": 0.2,
455
+ "margin": 0.15
456
+ },
457
+ "good_threshold": 0.9,
458
+ "bad_threshold": 0.6
459
+ },
460
+ "repeat_customer_rate": {
461
+ "weight": {
462
+ "volume": 0.2,
463
+ "balanced": 0.25,
464
+ "margin": 0.2
465
+ },
466
+ "good_threshold": 0.25,
467
+ "bad_threshold": 0.1
468
+ },
469
+ "dispute_rate": {
470
+ "weight": {
471
+ "volume": 0.1,
472
+ "balanced": 0.15,
473
+ "margin": 0.2
474
+ },
475
+ "good_threshold": 0.02,
476
+ "bad_threshold": 0.05
477
+ },
478
+ "dd_to_order_rate": {
479
+ "weight": {
480
+ "volume": 0.15,
481
+ "balanced": 0.1,
482
+ "margin": 0.05
483
+ },
484
+ "good_threshold": 0.2,
485
+ "bad_threshold": 0.05
486
+ },
487
+ "market_recent_orders": {
488
+ "weight": {
489
+ "volume": 0.05,
490
+ "balanced": 0.02,
491
+ "margin": 0.02
492
+ }
493
+ },
494
+ "market_recent_gmv": {
495
+ "weight": {
496
+ "volume": 0.02,
497
+ "balanced": 0.02,
498
+ "margin": 0.02
499
+ }
500
+ },
501
+ "supply_demand_ratio": {
502
+ "weight": {
503
+ "volume": 0.02,
504
+ "balanced": 0.03,
505
+ "margin": 0.05
506
+ },
507
+ "good_threshold": 1,
508
+ "bad_threshold": 4
509
+ },
510
+ "market_active_services": {
511
+ "weight": {
512
+ "volume": 0.01,
513
+ "balanced": 0.01,
514
+ "margin": 0.01
515
+ }
516
+ },
517
+ "competitor_count": {
518
+ "weight": {
519
+ "volume": 0.02,
520
+ "balanced": 0.05,
521
+ "margin": 0.1
522
+ },
523
+ "good_threshold": 5,
524
+ "bad_threshold": 30
525
+ },
526
+ "category_enumerated_count": {
527
+ "weight": {
528
+ "volume": 0.02,
529
+ "balanced": 0.05,
530
+ "margin": 0.1
531
+ }
532
+ },
533
+ "arbitration_trust_score": {
534
+ "weight": {
535
+ "volume": 0.05,
536
+ "balanced": 0.1,
537
+ "margin": 0.15
538
+ },
539
+ "good_threshold": 80,
540
+ "bad_threshold": 50
541
+ },
542
+ "open_attention_count": {
543
+ "weight": {
544
+ "volume": 0.03,
545
+ "balanced": 0.03,
546
+ "margin": 0.05
547
+ },
548
+ "good_threshold": 0,
549
+ "bad_threshold": 5
550
+ }
275
551
  },
276
552
  "shop_evidence_metrics": [
277
553
  "order_count",
@@ -285,5 +561,150 @@
285
561
  "rules": {
286
562
  "comment": "Declarative rule book. Factory rule packs live in knowledge/baselines/rules/<domain>.json and merge into this namespace at load time (Q11 split files, single document view). Override at rule granularity: retune levels/wording or disable with enabled=false (a trace is left) — factory rules can never be deleted or invented here.",
287
563
  "domains": {}
564
+ },
565
+ "role_intent": {
566
+ "comment": "Per-role intent profiles (L-A, ROLE-GAME-ARCHITECTURE). WHAT each ACTOR role pursues and HOW it decides: weighted intents (factory vocabulary — re-tune weights, never invent ids), risk appetite (feeds the game kernels), red lines (hard constraints), strategy leaning. Resolution chain: prompt/session > user document (this section) > persona drive > these factory seeds. neutral/system are NOT actors — they hold no intent by design.",
567
+ "roles": {
568
+ "merchant": {
569
+ "comment": "Fund-occupancy-minimizing settlement owner (ROLE_MODELS: strong producer).",
570
+ "intents": [
571
+ {
572
+ "id": "settlement_assurance",
573
+ "weight": 0.5
574
+ },
575
+ {
576
+ "id": "fund_efficiency",
577
+ "weight": 0.3
578
+ },
579
+ {
580
+ "id": "store_reputation",
581
+ "weight": 0.2
582
+ }
583
+ ],
584
+ "risk_appetite": "balanced",
585
+ "red_lines": [
586
+ "never promise auto-settlement — allocation needs an explicit trigger"
587
+ ],
588
+ "strategy_leaning": "opportunistic"
589
+ },
590
+ "customer": {
591
+ "comment": "Escrowed buyer seeking verified delivery (ROLE_MODELS: weak consumer).",
592
+ "intents": [
593
+ {
594
+ "id": "verified_delivery",
595
+ "weight": 0.5
596
+ },
597
+ {
598
+ "id": "refund_guarantee",
599
+ "weight": 0.3
600
+ },
601
+ {
602
+ "id": "privacy_minimal_disclosure",
603
+ "weight": 0.2
604
+ }
605
+ ],
606
+ "risk_appetite": "conservative",
607
+ "red_lines": [
608
+ "never confirm delivery before verifying the deliverable"
609
+ ],
610
+ "strategy_leaning": "cooperative"
611
+ },
612
+ "demander": {
613
+ "comment": "Demand publisher seeking qualified suppliers (ROLE_MODELS: weak consumer).",
614
+ "intents": [
615
+ {
616
+ "id": "qualified_award",
617
+ "weight": 0.5
618
+ },
619
+ {
620
+ "id": "selection_safety",
621
+ "weight": 0.3
622
+ },
623
+ {
624
+ "id": "recruitment_velocity",
625
+ "weight": 0.2
626
+ }
627
+ ],
628
+ "risk_appetite": "conservative",
629
+ "strategy_leaning": "cooperative"
630
+ },
631
+ "prospect": {
632
+ "comment": "Pre-purchase due-diligence posture (ROLE_MODELS: weak consumer).",
633
+ "intents": [
634
+ {
635
+ "id": "trust_discovery",
636
+ "weight": 0.6
637
+ },
638
+ {
639
+ "id": "purchase_safety",
640
+ "weight": 0.4
641
+ }
642
+ ],
643
+ "risk_appetite": "conservative",
644
+ "strategy_leaning": "cooperative"
645
+ },
646
+ "supplier": {
647
+ "comment": "Peer sub-order provider seeking settlement and continued participation.",
648
+ "intents": [
649
+ {
650
+ "id": "suborder_settlement",
651
+ "weight": 0.5
652
+ },
653
+ {
654
+ "id": "workflow_continuity",
655
+ "weight": 0.3
656
+ },
657
+ {
658
+ "id": "fair_terms",
659
+ "weight": 0.2
660
+ }
661
+ ],
662
+ "risk_appetite": "balanced",
663
+ "red_lines": [
664
+ "never present a service that cannot fulfill the sub-order"
665
+ ],
666
+ "strategy_leaning": "opportunistic"
667
+ },
668
+ "collaborator": {
669
+ "comment": "Process executor bound to its permission scope.",
670
+ "intents": [
671
+ {
672
+ "id": "in_scope_operation",
673
+ "weight": 0.6
674
+ },
675
+ {
676
+ "id": "no_liability",
677
+ "weight": 0.4
678
+ }
679
+ ],
680
+ "risk_appetite": "conservative",
681
+ "red_lines": [
682
+ "never operate outside the granted permission scope"
683
+ ],
684
+ "strategy_leaning": "cooperative"
685
+ },
686
+ "arbitrator": {
687
+ "comment": "Neutral case resolver seeking fees and clean cases (independent commercial actor).",
688
+ "intents": [
689
+ {
690
+ "id": "clean_resolution",
691
+ "weight": 0.5
692
+ },
693
+ {
694
+ "id": "fee_realization",
695
+ "weight": 0.3
696
+ },
697
+ {
698
+ "id": "capped_liability",
699
+ "weight": 0.2
700
+ }
701
+ ],
702
+ "risk_appetite": "conservative",
703
+ "red_lines": [
704
+ "never rule without examining both sides' evidence"
705
+ ],
706
+ "strategy_leaning": "cooperative"
707
+ }
708
+ }
288
709
  }
289
710
  }