@wowok/agent-mcp 3.3.7 → 3.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chain-semantics/fund-flow.js +1 -1
- package/dist/chain-semantics/guard-verbs.js +1 -1
- package/dist/chain-semantics/object-graph.js +1 -1
- package/dist/communication/message-cursors.d.ts +35 -0
- package/dist/communication/message-cursors.js +1 -0
- package/dist/communication/wts-attestation.d.ts +5 -0
- package/dist/communication/wts-attestation.js +1 -1
- package/dist/composition/audit.js +1 -1
- package/dist/composition/compile.d.ts +2 -2
- package/dist/composition/compile.js +1 -1
- package/dist/composition/inflight.d.ts +7 -0
- package/dist/composition/inflight.js +1 -1
- package/dist/composition/materialize.d.ts +4 -1
- package/dist/composition/materialize.js +1 -1
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.js +1 -1
- package/dist/config/store-policy.d.ts +14 -0
- package/dist/config/store-policy.js +1 -0
- package/dist/config/store-policy.spec.d.ts +1 -0
- package/dist/config/store-policy.spec.js +1 -0
- package/dist/customer/industry-risks.js +1 -1
- package/dist/customer/user-preferences.js +1 -1
- package/dist/evaluation/builtins/graph-service.spec.js +1 -1
- package/dist/evaluation/engine.js +1 -1
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/extensions/business-modules.d.ts +1 -1
- package/dist/extensions/business-modules.js +1 -1
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/extensions/modes.js +1 -1
- package/dist/graph/onchain/analyze.js +1 -1
- package/dist/graph/onchain/expand.js +1 -1
- package/dist/graph/onchain/exposure.js +1 -1
- package/dist/graph/onchain/facts.d.ts +1 -0
- package/dist/graph/onchain/facts.js +1 -1
- package/dist/graph/onchain/facts.spec.js +1 -1
- package/dist/harness/recover.js +1 -1
- package/dist/knowledge/acquisition-flywheel.js +1 -1
- package/dist/knowledge/allocation-ledger.d.ts +1 -0
- package/dist/knowledge/allocation-ledger.js +1 -1
- package/dist/knowledge/allocator-rail-verifier.d.ts +6 -2
- package/dist/knowledge/allocator-rail-verifier.js +1 -1
- package/dist/knowledge/arbitration-ledger.js +1 -1
- package/dist/knowledge/audit-rules.d.ts +37 -0
- package/dist/knowledge/audit-rules.js +1 -1
- package/dist/knowledge/baselines/rules/plan.json +32 -2
- package/dist/knowledge/builtin-templates.d.ts +13 -1
- package/dist/knowledge/builtin-templates.js +1 -1
- package/dist/knowledge/commission-landing.d.ts +26 -0
- package/dist/knowledge/commission-landing.js +1 -0
- package/dist/knowledge/discount-threshold.js +1 -1
- package/dist/knowledge/fund-layer.d.ts +7 -0
- package/dist/knowledge/fund-layer.js +1 -1
- package/dist/knowledge/getting-started.js +1 -1
- package/dist/knowledge/guard-design-patterns.d.ts +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-puzzle.js +1 -1
- package/dist/knowledge/guard-render.d.ts +7 -0
- package/dist/knowledge/guard-render.js +1 -1
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/guard-templates.d.ts +1 -1
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/guard-translation.js +1 -1
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-generalizer.js +1 -1
- package/dist/knowledge/industry-registry.d.ts +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/industry-strategy.js +1 -1
- package/dist/knowledge/jsonrpc-enum.js +1 -1
- package/dist/knowledge/machine-fork-watch.d.ts +9 -0
- package/dist/knowledge/machine-fork-watch.js +1 -0
- package/dist/knowledge/migration-preflight.js +1 -1
- package/dist/knowledge/projection.spec.js +1 -1
- package/dist/knowledge/scenario-modes.d.ts +8 -2
- package/dist/knowledge/scenario-modes.js +1 -1
- package/dist/knowledge/semantic-ir.d.ts +24 -5
- package/dist/knowledge/semantic-ir.js +1 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/strategy-manuals.js +1 -1
- package/dist/knowledge/template-index.js +1 -1
- package/dist/knowledge/template-loader.d.ts +11 -0
- package/dist/knowledge/template-loader.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.d.ts +4 -2
- package/dist/knowledge/template-scanner.js +1 -1
- package/dist/knowledge/template-validation.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +12 -6
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/migration-planner.d.ts +10 -2
- package/dist/playbooks/service-build/migration-planner.js +1 -1
- package/dist/playbooks/service-build/mode-actions.d.ts +1 -0
- package/dist/playbooks/service-build/mode-actions.js +1 -1
- package/dist/playbooks/service-build/object-panorama.js +1 -1
- package/dist/playbooks/service-build/participation-radar.js +1 -1
- package/dist/playbooks/service-build/relationship-profile.js +1 -1
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/playbooks/service-build/service-quote.js +1 -1
- package/dist/playbooks/service-build/service-quote.spec.js +1 -1
- package/dist/review/index.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/benchmark-migration/index.d.ts +72 -1
- package/dist/schema/benchmark-migration/index.js +1 -1
- package/dist/schema/call/allocation.d.ts +3 -0
- package/dist/schema/call/allocation.js +1 -1
- package/dist/schema/call/base.d.ts +24 -0
- package/dist/schema/call/bridge.d.ts +6 -0
- package/dist/schema/call/error-codes.d.ts +1 -1
- package/dist/schema/call/error-codes.js +1 -1
- package/dist/schema/call/order.js +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/config/index.d.ts +24 -0
- package/dist/schema/config/index.js +1 -1
- package/dist/schema/goal/index.d.ts +14 -0
- package/dist/schema/goal/planning.d.ts +26 -0
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/industry-pack/index.d.ts +9 -1
- package/dist/schema/industry-pack/modes.d.ts +9 -1
- package/dist/schema/industry-pack/modes.js +1 -1
- package/dist/schema/local/index.d.ts +60 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +278 -1
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +1 -0
- package/dist/schema/query/bi.d.ts +38 -0
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +3 -0
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/service-clone/index.d.ts +17 -0
- package/dist/schema/service-clone/index.js +1 -1
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +6 -0
- package/dist/schemas/benchmark_migration_operation.output.json +254 -2
- package/dist/schemas/benchmark_migration_operation.schema.json +87 -5
- package/dist/schemas/bridge_operation.output.json +6 -0
- package/dist/schemas/config_operation.output.json +95 -0
- package/dist/schemas/config_operation.schema.json +16 -1
- package/dist/schemas/goal_operation.schema.json +22 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/industry_pack_operation.output.json +4 -0
- package/dist/schemas/industry_pack_operation.schema.json +40 -3
- package/dist/schemas/local_cache_operation.output.json +6 -0
- package/dist/schemas/local_history_operation.output.json +6 -0
- package/dist/schemas/local_info_operation.output.json +6 -0
- package/dist/schemas/local_mark_operation.output.json +6 -0
- package/dist/schemas/messenger_operation.output.json +609 -1
- package/dist/schemas/messenger_operation.schema.json +96 -1
- package/dist/schemas/onchain_operations.output.json +6 -0
- package/dist/schemas/onchain_operations.schema.json +334 -7
- package/dist/schemas/onchain_operations_allocation.schema.json +10 -1
- package/dist/schemas/onchain_operations_guard.schema.json +318 -0
- package/dist/schemas/onchain_operations_order.schema.json +1 -1
- package/dist/schemas/onchain_operations_service.schema.json +5 -5
- package/dist/schemas/query_toolkit.output.json +271 -8
- package/dist/schemas/service_clone_operation.output.json +79 -0
- package/dist/tools/handlers/benchmark-migration.d.ts +14 -0
- package/dist/tools/handlers/benchmark-migration.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/onchain.d.ts +19 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/query.d.ts +1 -0
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/service-clone.d.ts +18 -0
- package/dist/tools/handlers/service-clone.js +1 -1
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +2 -2
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
"template_scan",
|
|
15
15
|
"migration_import",
|
|
16
16
|
"migration_review",
|
|
17
|
-
"migration_apply"
|
|
17
|
+
"migration_apply",
|
|
18
|
+
"plan_execute"
|
|
18
19
|
],
|
|
19
|
-
"description": "Action: 'template_list' = list the loaded MD industry templates (optional industry filter); 'template_get' = fetch one template by id (template_id required); 'template_generate' = generate a creation plan from a template via the merchant-guide pipeline (template_id required; scan-first — CRITICAL findings block; never executes on-chain); 'template_scan' = pre-deploy risk scan of one template (template_id required; returns risk_level/findings/red_flags plus a drift face — disk-vs-catalog provenance of the scanned body; CRITICAL blocks generation/apply); 'migration_import' = competitor URL/description → migration plan + MigrationLog (description required); 'migration_review' = surface the MigrationLog for user confirmation (log required); 'migration_apply' = run the approved template through the merchant-guide pipeline (template_id required; scan-first — CRITICAL findings block; default network testnet)."
|
|
20
|
+
"description": "Action: 'template_list' = list the loaded MD industry templates (optional industry filter); 'template_get' = fetch one template by id (template_id required); 'template_generate' = generate a creation plan from a template via the merchant-guide pipeline (template_id required; scan-first — CRITICAL findings block; never executes on-chain); 'template_scan' = pre-deploy risk scan of one template (template_id required; returns risk_level/findings/red_flags plus a drift face — disk-vs-catalog provenance of the scanned body; CRITICAL blocks generation/apply); 'migration_import' = competitor URL/description → migration plan + MigrationLog (description required); 'migration_review' = surface the MigrationLog for user confirmation (log required); 'migration_apply' = run the approved template through the merchant-guide pipeline (template_id required; scan-first — CRITICAL findings block; default network testnet); 'plan_execute' = ONE-CLICK DEPLOYMENT (AR-5, bsn7 T-06/R-01): materialize the plan returned by template_generate on-chain — preflight freeze gate, topological create/publish/configure, readback. Resumable: on a mid-run failure, re-send with completed_steps + previous_outputs from the failed response instead of re-running from scratch (duplicate objects)."
|
|
20
21
|
},
|
|
21
22
|
"template_id": {
|
|
22
23
|
"description": "Template id '<industry>/<variant>' (required for template_get / template_generate / template_scan / migration_apply), e.g. 'retail/scale-marketplace'.",
|
|
@@ -31,12 +32,20 @@
|
|
|
31
32
|
"type": "string"
|
|
32
33
|
},
|
|
33
34
|
"semantic_ir": {
|
|
34
|
-
"description": "Canonical Semantic IR produced by the CALLING agent for a NON-ENGLISH (or lexicon-outside) description — this server runs no LLM. The server validates it, then reuses it on the same deterministic surfaces as recommend_industry: (a) migration_import narrows template matching to the IR-resolved industry (an explicit product_ref or 'industry' hint still wins); (b) template_generate / migration_apply read the numeric claim 'reward_pool_amount' as the review-reward pool prefill — explicit fee_overrides > IR claim > the English regex fallback. Shape: {schema_version: 1, locale: '<BCP-47>', traits?, domains?, claims?: [{key, value, confidence?}], provenance: {source: 'caller_llm'}}. Unknown traits/domains/claims
|
|
35
|
+
"description": "Canonical Semantic IR produced by the CALLING agent for a NON-ENGLISH (or lexicon-outside) description — this server runs no LLM. The server validates it, then reuses it on the same deterministic surfaces as recommend_industry: (a) migration_import narrows template matching to the IR-resolved industry and, when discovery.tags are supplied, selects the business-model VARIANT by canonical tag coverage (an explicit product_ref or 'industry' hint still wins); (b) template_generate / migration_apply read the numeric claim 'reward_pool_amount' as the review-reward pool prefill — explicit fee_overrides > IR claim > the English regex fallback. Shape: {schema_version: 2 (1 still accepted), locale: '<BCP-47>', traits?, domains?, claims?: [{key, value, confidence?}], discovery?: {industry?, tags?: string[], product_ref?, english_summary?, confidence?}, provenance: {source: 'caller_llm'}}. discovery.tags use the CLOSED language-neutral vocabulary returned by template_list.discovery_vocabulary (canonical English business-model tokens; never locale words — translate in the caller). discovery.product_ref is a benchmark-product slug, discovery.industry a registered industry, and discovery.english_summary is a canonical English restatement used only for keyword fallback. Unknown traits/domains/claims/tags/industries/product_refs are dropped and reported in semantic_ir_issues; spans and quotes must be copied verbatim from the description (unlocatable evidence is dropped).",
|
|
35
36
|
"type": "object",
|
|
36
37
|
"properties": {
|
|
37
38
|
"schema_version": {
|
|
38
|
-
"
|
|
39
|
-
|
|
39
|
+
"anyOf": [
|
|
40
|
+
{
|
|
41
|
+
"type": "number",
|
|
42
|
+
"const": 1
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "number",
|
|
46
|
+
"const": 2
|
|
47
|
+
}
|
|
48
|
+
]
|
|
40
49
|
},
|
|
41
50
|
"locale": {
|
|
42
51
|
"type": "string",
|
|
@@ -192,6 +201,35 @@
|
|
|
192
201
|
"additionalProperties": false
|
|
193
202
|
}
|
|
194
203
|
},
|
|
204
|
+
"discovery": {
|
|
205
|
+
"type": "object",
|
|
206
|
+
"properties": {
|
|
207
|
+
"industry": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"maxLength": 64
|
|
210
|
+
},
|
|
211
|
+
"tags": {
|
|
212
|
+
"maxItems": 20,
|
|
213
|
+
"type": "array",
|
|
214
|
+
"items": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"maxLength": 64
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"product_ref": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"maxLength": 64
|
|
222
|
+
},
|
|
223
|
+
"english_summary": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"maxLength": 600
|
|
226
|
+
},
|
|
227
|
+
"confidence": {
|
|
228
|
+
"type": "number"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"additionalProperties": false
|
|
232
|
+
},
|
|
195
233
|
"provenance": {
|
|
196
234
|
"type": "object",
|
|
197
235
|
"properties": {
|
|
@@ -408,6 +446,17 @@
|
|
|
408
446
|
"none"
|
|
409
447
|
]
|
|
410
448
|
},
|
|
449
|
+
"logistics_mode": {
|
|
450
|
+
"description": "Per-build fulfillment topology (K3 batch C, K-2). Absent = the template's declared logistics_mode applies. A declared topology the machine_shape cannot honor is a compile blocker: courier with no named_operator handover rail (LOGISTICS_COURIER_RAIL_MISSING) or a pooled delivery fee (LOGISTICS_COURIER_FEE_POOLED); pickup_point without the absolute batch cutoff or the unclaimed-goods exit window (LOGISTICS_PICKUP_CUTOFF_MISSING); carrier without tracking evidence (LOGISTICS_CARRIER_EVIDENCE_MISSING); any physical mode without a transit-loss story (LOGISTICS_TRANSIT_LOSS_UNCOVERED); courier/pickup_point without the two dispatch disclosures (LOGISTICS_DISPATCH_UNDISCLOSED).",
|
|
451
|
+
"type": "string",
|
|
452
|
+
"enum": [
|
|
453
|
+
"none",
|
|
454
|
+
"carrier",
|
|
455
|
+
"merchant_managed",
|
|
456
|
+
"courier",
|
|
457
|
+
"pickup_point"
|
|
458
|
+
]
|
|
459
|
+
},
|
|
411
460
|
"sales": {
|
|
412
461
|
"description": "The sellable SKU catalog (upwc-cat-261017 CAT-A1 / PLAN-SALES-01). REQUIRED for template_generate (A-2, amz9-ln-261023): an empty/absent catalog is refused up-front with error_code 'sales_required' — the published Service would freeze with sales: [] and every order_new aborts; PLAN-SALES-01 is now an INPUT error on this action, not a post-hoc audit finding. migration_apply keeps the audit-finding posture (it confirms an already-reviewed import). Item shape follows the chain's SaleItem: { name, price, quantity?, wip_hash? } with price in smallest units. OPTIONAL per item: a structured `incentive` object (G-07: { amount, conditions, basis, claim_window }, all strings) declaring the buyer-perceivable reward terms — carried verbatim into the compiled plan's service_sales step for quote-time disclosure; it is plan metadata only and never an on-chain SaleItem field.",
|
|
413
462
|
"type": "array",
|
|
@@ -464,6 +513,39 @@
|
|
|
464
513
|
"mainnet",
|
|
465
514
|
"localnet"
|
|
466
515
|
]
|
|
516
|
+
},
|
|
517
|
+
"plan": {
|
|
518
|
+
"description": "The creation plan to execute (required for plan_execute): pass the object returned under 'plan' by template_generate VERBATIM — mutating steps by hand is what the 32-manual-write era did. Executing requires verdict.buildable=true; a blocked plan is refused at the freeze gate.",
|
|
519
|
+
"type": "object",
|
|
520
|
+
"propertyNames": {
|
|
521
|
+
"type": "string"
|
|
522
|
+
},
|
|
523
|
+
"additionalProperties": {}
|
|
524
|
+
},
|
|
525
|
+
"completed_steps": {
|
|
526
|
+
"description": "plan_execute resume (AR-5): step ids already EXECUTED in a prior run (from the failed response's steps[].stepId where status='executed'). Those steps are adopted, not re-executed.",
|
|
527
|
+
"type": "array",
|
|
528
|
+
"items": {
|
|
529
|
+
"type": "string"
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
"previous_outputs": {
|
|
533
|
+
"description": "plan_execute resume (AR-5): step id -> created on-chain address map from the prior run's outputs field, so $ref bindings resolve against the objects that ALREADY exist.",
|
|
534
|
+
"type": "object",
|
|
535
|
+
"propertyNames": {
|
|
536
|
+
"type": "string"
|
|
537
|
+
},
|
|
538
|
+
"additionalProperties": {
|
|
539
|
+
"type": "string"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"env": {
|
|
543
|
+
"description": "Environment for on-chain execution (plan_execute): forwarded to the executor (e.g. { network: 'testnet' }).",
|
|
544
|
+
"type": "object",
|
|
545
|
+
"propertyNames": {
|
|
546
|
+
"type": "string"
|
|
547
|
+
},
|
|
548
|
+
"additionalProperties": {}
|
|
467
549
|
}
|
|
468
550
|
},
|
|
469
551
|
"required": [
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"state_conflict",
|
|
50
50
|
"insufficient_balance",
|
|
51
51
|
"pool_shortage",
|
|
52
|
+
"allocation_empty",
|
|
52
53
|
"transaction_expired",
|
|
53
54
|
"stock_exhausted",
|
|
54
55
|
"sale_suspended",
|
|
@@ -70,9 +71,14 @@
|
|
|
70
71
|
"submission_unknown",
|
|
71
72
|
"move_abort_unmapped",
|
|
72
73
|
"missing_data",
|
|
74
|
+
"guard_data_missing",
|
|
73
75
|
"state_not_visible",
|
|
76
|
+
"unreachable_transition",
|
|
77
|
+
"forward_not_at_node",
|
|
74
78
|
"anchor_unavailable",
|
|
75
79
|
"delivery_unknown",
|
|
80
|
+
"capability_unavailable",
|
|
81
|
+
"transport_unavailable",
|
|
76
82
|
"unknown"
|
|
77
83
|
]
|
|
78
84
|
},
|
|
@@ -437,6 +437,101 @@
|
|
|
437
437
|
"reload_error"
|
|
438
438
|
],
|
|
439
439
|
"additionalProperties": false
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"type": "object",
|
|
443
|
+
"properties": {
|
|
444
|
+
"action": {
|
|
445
|
+
"type": "string",
|
|
446
|
+
"const": "store_dual_payout_get"
|
|
447
|
+
},
|
|
448
|
+
"account": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"description": "Store account the policy was read for."
|
|
451
|
+
},
|
|
452
|
+
"preauthorized": {
|
|
453
|
+
"type": "boolean",
|
|
454
|
+
"description": "Whether the store carries an EXPLICIT human dual-payout preauthorization. False → the execution gate refuses acknowledge_dual_payout (the per-call flag alone is not sufficient, D-1)."
|
|
455
|
+
},
|
|
456
|
+
"authorized_at": {
|
|
457
|
+
"description": "ISO timestamp of the human confirmation (present when preauthorized).",
|
|
458
|
+
"type": "string"
|
|
459
|
+
},
|
|
460
|
+
"note": {
|
|
461
|
+
"description": "Merchant note recorded with the confirmation.",
|
|
462
|
+
"type": "string"
|
|
463
|
+
},
|
|
464
|
+
"network": {
|
|
465
|
+
"description": "Network the confirmation was recorded on.",
|
|
466
|
+
"type": "string"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"required": [
|
|
470
|
+
"action",
|
|
471
|
+
"account",
|
|
472
|
+
"preauthorized"
|
|
473
|
+
],
|
|
474
|
+
"additionalProperties": false
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"type": "object",
|
|
478
|
+
"properties": {
|
|
479
|
+
"action": {
|
|
480
|
+
"type": "string",
|
|
481
|
+
"const": "store_dual_payout_set"
|
|
482
|
+
},
|
|
483
|
+
"account": {
|
|
484
|
+
"type": "string",
|
|
485
|
+
"description": "Store account the policy was recorded for."
|
|
486
|
+
},
|
|
487
|
+
"preauthorized": {
|
|
488
|
+
"type": "boolean",
|
|
489
|
+
"const": true,
|
|
490
|
+
"description": "Always true — a set without confirm=true throws before writing."
|
|
491
|
+
},
|
|
492
|
+
"authorized_at": {
|
|
493
|
+
"type": "string",
|
|
494
|
+
"description": "ISO timestamp of the human confirmation just recorded."
|
|
495
|
+
},
|
|
496
|
+
"note": {
|
|
497
|
+
"description": "Merchant note recorded with the confirmation.",
|
|
498
|
+
"type": "string"
|
|
499
|
+
},
|
|
500
|
+
"reminder": {
|
|
501
|
+
"description": "Human-readable note about the service's behavior or side effects.",
|
|
502
|
+
"type": "string"
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"required": [
|
|
506
|
+
"action",
|
|
507
|
+
"account",
|
|
508
|
+
"preauthorized",
|
|
509
|
+
"authorized_at"
|
|
510
|
+
],
|
|
511
|
+
"additionalProperties": false
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"type": "object",
|
|
515
|
+
"properties": {
|
|
516
|
+
"action": {
|
|
517
|
+
"type": "string",
|
|
518
|
+
"const": "store_dual_payout_clear"
|
|
519
|
+
},
|
|
520
|
+
"account": {
|
|
521
|
+
"type": "string",
|
|
522
|
+
"description": "Store account the policy was revoked for."
|
|
523
|
+
},
|
|
524
|
+
"cleared": {
|
|
525
|
+
"type": "boolean",
|
|
526
|
+
"description": "True when a record existed and was removed; false when none existed."
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
"required": [
|
|
530
|
+
"action",
|
|
531
|
+
"account",
|
|
532
|
+
"cleared"
|
|
533
|
+
],
|
|
534
|
+
"additionalProperties": false
|
|
440
535
|
}
|
|
441
536
|
],
|
|
442
537
|
"description": "Config result — shape depends on action"
|
|
@@ -18,7 +18,10 @@
|
|
|
18
18
|
"judgment_set",
|
|
19
19
|
"judgment_reset",
|
|
20
20
|
"judgment_doc_read",
|
|
21
|
-
"judgment_doc_patch"
|
|
21
|
+
"judgment_doc_patch",
|
|
22
|
+
"store_dual_payout_get",
|
|
23
|
+
"store_dual_payout_set",
|
|
24
|
+
"store_dual_payout_clear"
|
|
22
25
|
],
|
|
23
26
|
"description": "Config action to perform"
|
|
24
27
|
},
|
|
@@ -26,6 +29,18 @@
|
|
|
26
29
|
"description": "Service name (required for toggle/enable/disable/reset/info)",
|
|
27
30
|
"type": "string"
|
|
28
31
|
},
|
|
32
|
+
"account": {
|
|
33
|
+
"description": "Store signing account address or local mark name (required for store_dual_payout_* actions) — the store whose dual-payout policy is read/written",
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"confirm": {
|
|
37
|
+
"description": "D-1 explicit human confirmation (required and MUST be true for store_dual_payout_set). Pass it ONLY after the human merchant reviewed and agreed that this store's rails may net arbitration compensation and escrow release on the same order. An automated agent must NOT set this — escalate to the human.",
|
|
38
|
+
"type": "boolean"
|
|
39
|
+
},
|
|
40
|
+
"note": {
|
|
41
|
+
"description": "Optional merchant note recorded with the store_dual_payout_set confirmation (why netting is this store's standing policy)",
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
29
44
|
"path": {
|
|
30
45
|
"description": "Dotted judgment path (required for judgment_set; optional for judgment_reset), e.g. 'evaluation.weights.trust_reviews'",
|
|
31
46
|
"type": "string"
|
|
@@ -1187,6 +1187,17 @@
|
|
|
1187
1187
|
"flexible",
|
|
1188
1188
|
"none"
|
|
1189
1189
|
]
|
|
1190
|
+
},
|
|
1191
|
+
"logistics_mode": {
|
|
1192
|
+
"description": "Per-build fulfillment topology (K3 batch C, K-2). Absent = the template's declared logistics_mode applies. A declared topology the machine_shape cannot honor is a compile blocker: courier with no named_operator handover rail (LOGISTICS_COURIER_RAIL_MISSING) or a pooled delivery fee (LOGISTICS_COURIER_FEE_POOLED); pickup_point without the absolute batch cutoff or the unclaimed-goods exit window (LOGISTICS_PICKUP_CUTOFF_MISSING); carrier without tracking evidence (LOGISTICS_CARRIER_EVIDENCE_MISSING); any physical mode without a transit-loss story (LOGISTICS_TRANSIT_LOSS_UNCOVERED); courier/pickup_point without the two dispatch disclosures (LOGISTICS_DISPATCH_UNDISCLOSED).",
|
|
1193
|
+
"type": "string",
|
|
1194
|
+
"enum": [
|
|
1195
|
+
"none",
|
|
1196
|
+
"carrier",
|
|
1197
|
+
"merchant_managed",
|
|
1198
|
+
"courier",
|
|
1199
|
+
"pickup_point"
|
|
1200
|
+
]
|
|
1190
1201
|
}
|
|
1191
1202
|
},
|
|
1192
1203
|
"required": [
|
|
@@ -1391,6 +1402,17 @@
|
|
|
1391
1402
|
"flexible",
|
|
1392
1403
|
"none"
|
|
1393
1404
|
]
|
|
1405
|
+
},
|
|
1406
|
+
"logistics_mode": {
|
|
1407
|
+
"description": "Step 6 confirmation: per-build fulfillment topology (K3 batch C, K-2). Absent = the template's declared logistics_mode applies.",
|
|
1408
|
+
"type": "string",
|
|
1409
|
+
"enum": [
|
|
1410
|
+
"none",
|
|
1411
|
+
"carrier",
|
|
1412
|
+
"merchant_managed",
|
|
1413
|
+
"courier",
|
|
1414
|
+
"pickup_point"
|
|
1415
|
+
]
|
|
1394
1416
|
}
|
|
1395
1417
|
},
|
|
1396
1418
|
"additionalProperties": false
|
package/dist/schemas/index.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"title": "WoWok MCP Schema Index",
|
|
4
4
|
"description": "Index of all available JSON schemas for WoWok MCP tools",
|
|
5
|
-
"generatedAt": "2026-10-
|
|
5
|
+
"generatedAt": "2026-10-27T22:44:03.281Z",
|
|
6
6
|
"tools": [
|
|
7
7
|
{
|
|
8
8
|
"name": "onchain_operations",
|
|
@@ -1134,6 +1134,10 @@
|
|
|
1134
1134
|
"description": "True when domain vocabulary (not traits) contributed to this industry's score/rank.",
|
|
1135
1135
|
"type": "boolean"
|
|
1136
1136
|
},
|
|
1137
|
+
"ir_industry_match": {
|
|
1138
|
+
"description": "True when the Semantic IR's discovery.industry named this industry (a ranking prior was applied).",
|
|
1139
|
+
"type": "boolean"
|
|
1140
|
+
},
|
|
1137
1141
|
"requirement_support": {
|
|
1138
1142
|
"description": "0-1 support of the industry's required traits by the inference (1 = all evidenced and satisfied).",
|
|
1139
1143
|
"type": "number"
|
|
@@ -114,12 +114,20 @@
|
|
|
114
114
|
]
|
|
115
115
|
},
|
|
116
116
|
"semantic_ir": {
|
|
117
|
-
"description": "Canonical Semantic IR for recommend_industry, produced by the CALLING agent (this server runs no LLM). Use it when the intent is not English, or is phrased outside the English keyword lexicon: translate the business description into this fixed shape and let the server decide. The server validates the IR, merges it with keyword inference (IR evidence wins conflicts, keywords remain the fallback) and echoes the canonical artifact + sha256 digest for freeze/replay. Shape: {schema_version: 1, locale: '<BCP-47>', traits: [{trait, value, confidence: 0..1, span?: {start,end}, quote?}], domains: [{domain, confidence?}], claims: [{key, value, confidence?}], provenance: {source: 'caller_llm', model?, prompt_version?}}. traits vocabulary (10 dimensions): has_logistics, communication_heavy, pure_digital, long_cycle, deposit_required, multi_tier_allocation (boolean); regulatory_intensity, trust_sensitivity (low|medium|high); consumption_frequency (one_time|occasional|frequent); avg_ticket_size (micro|small|medium|large). domains vocabulary: travel_accommodation. claims vocabulary: reward_pool_amount. Rules: emit evidence only (no free-form prose), one entry per dimension, confidence below 0.5 is recorded but not applied, unknown traits/domains/
|
|
117
|
+
"description": "Canonical Semantic IR for recommend_industry, produced by the CALLING agent (this server runs no LLM). Use it when the intent is not English, or is phrased outside the English keyword lexicon: translate the business description into this fixed shape and let the server decide. The server validates the IR, merges it with keyword inference (IR evidence wins conflicts, keywords remain the fallback) and echoes the canonical artifact + sha256 digest for freeze/replay. Shape: {schema_version: 2 (1 still accepted), locale: '<BCP-47>', traits: [{trait, value, confidence: 0..1, span?: {start,end}, quote?}], domains: [{domain, confidence?}], claims: [{key, value, confidence?}], discovery: {industry?, tags?: string[], product_ref?, english_summary?, confidence?}, provenance: {source: 'caller_llm', model?, prompt_version?}}. traits vocabulary (10 dimensions): has_logistics, communication_heavy, pure_digital, long_cycle, deposit_required, multi_tier_allocation (boolean); regulatory_intensity, trust_sensitivity (low|medium|high); consumption_frequency (one_time|occasional|frequent); avg_ticket_size (micro|small|medium|large). domains vocabulary: travel_accommodation. claims vocabulary: reward_pool_amount. discovery is the language-neutral business-model layer: tags use the CLOSED vocabulary returned by template_list.discovery_vocabulary (canonical English tokens, never locale words), industry is a registered industry name, product_ref is a benchmark-product slug, and english_summary is a translation aid used only for keyword fallback. An applied discovery.industry ranks that industry with a domain-prior boost. Rules: emit evidence only (no free-form prose), one entry per dimension, copy spans/quotes VERBATIM from the intent (unlocatable evidence is dropped and reported), confidence below 0.5 is recorded but not applied, and unknown traits/domains/tags/industries/product_refs are dropped and reported in semantic_ir_issues.",
|
|
118
118
|
"type": "object",
|
|
119
119
|
"properties": {
|
|
120
120
|
"schema_version": {
|
|
121
|
-
"
|
|
122
|
-
|
|
121
|
+
"anyOf": [
|
|
122
|
+
{
|
|
123
|
+
"type": "number",
|
|
124
|
+
"const": 1
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"type": "number",
|
|
128
|
+
"const": 2
|
|
129
|
+
}
|
|
130
|
+
]
|
|
123
131
|
},
|
|
124
132
|
"locale": {
|
|
125
133
|
"type": "string",
|
|
@@ -275,6 +283,35 @@
|
|
|
275
283
|
"additionalProperties": false
|
|
276
284
|
}
|
|
277
285
|
},
|
|
286
|
+
"discovery": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"properties": {
|
|
289
|
+
"industry": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"maxLength": 64
|
|
292
|
+
},
|
|
293
|
+
"tags": {
|
|
294
|
+
"maxItems": 20,
|
|
295
|
+
"type": "array",
|
|
296
|
+
"items": {
|
|
297
|
+
"type": "string",
|
|
298
|
+
"maxLength": 64
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"product_ref": {
|
|
302
|
+
"type": "string",
|
|
303
|
+
"maxLength": 64
|
|
304
|
+
},
|
|
305
|
+
"english_summary": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"maxLength": 600
|
|
308
|
+
},
|
|
309
|
+
"confidence": {
|
|
310
|
+
"type": "number"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"additionalProperties": false
|
|
314
|
+
},
|
|
278
315
|
"provenance": {
|
|
279
316
|
"type": "object",
|
|
280
317
|
"properties": {
|
|
@@ -243,6 +243,7 @@
|
|
|
243
243
|
"state_conflict",
|
|
244
244
|
"insufficient_balance",
|
|
245
245
|
"pool_shortage",
|
|
246
|
+
"allocation_empty",
|
|
246
247
|
"transaction_expired",
|
|
247
248
|
"stock_exhausted",
|
|
248
249
|
"sale_suspended",
|
|
@@ -264,9 +265,14 @@
|
|
|
264
265
|
"submission_unknown",
|
|
265
266
|
"move_abort_unmapped",
|
|
266
267
|
"missing_data",
|
|
268
|
+
"guard_data_missing",
|
|
267
269
|
"state_not_visible",
|
|
270
|
+
"unreachable_transition",
|
|
271
|
+
"forward_not_at_node",
|
|
268
272
|
"anchor_unavailable",
|
|
269
273
|
"delivery_unknown",
|
|
274
|
+
"capability_unavailable",
|
|
275
|
+
"transport_unavailable",
|
|
270
276
|
"unknown"
|
|
271
277
|
]
|
|
272
278
|
},
|
|
@@ -169,6 +169,7 @@
|
|
|
169
169
|
"state_conflict",
|
|
170
170
|
"insufficient_balance",
|
|
171
171
|
"pool_shortage",
|
|
172
|
+
"allocation_empty",
|
|
172
173
|
"transaction_expired",
|
|
173
174
|
"stock_exhausted",
|
|
174
175
|
"sale_suspended",
|
|
@@ -190,9 +191,14 @@
|
|
|
190
191
|
"submission_unknown",
|
|
191
192
|
"move_abort_unmapped",
|
|
192
193
|
"missing_data",
|
|
194
|
+
"guard_data_missing",
|
|
193
195
|
"state_not_visible",
|
|
196
|
+
"unreachable_transition",
|
|
197
|
+
"forward_not_at_node",
|
|
194
198
|
"anchor_unavailable",
|
|
195
199
|
"delivery_unknown",
|
|
200
|
+
"capability_unavailable",
|
|
201
|
+
"transport_unavailable",
|
|
196
202
|
"unknown"
|
|
197
203
|
]
|
|
198
204
|
},
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"state_conflict",
|
|
56
56
|
"insufficient_balance",
|
|
57
57
|
"pool_shortage",
|
|
58
|
+
"allocation_empty",
|
|
58
59
|
"transaction_expired",
|
|
59
60
|
"stock_exhausted",
|
|
60
61
|
"sale_suspended",
|
|
@@ -76,9 +77,14 @@
|
|
|
76
77
|
"submission_unknown",
|
|
77
78
|
"move_abort_unmapped",
|
|
78
79
|
"missing_data",
|
|
80
|
+
"guard_data_missing",
|
|
79
81
|
"state_not_visible",
|
|
82
|
+
"unreachable_transition",
|
|
83
|
+
"forward_not_at_node",
|
|
80
84
|
"anchor_unavailable",
|
|
81
85
|
"delivery_unknown",
|
|
86
|
+
"capability_unavailable",
|
|
87
|
+
"transport_unavailable",
|
|
82
88
|
"unknown"
|
|
83
89
|
]
|
|
84
90
|
},
|
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
"state_conflict",
|
|
148
148
|
"insufficient_balance",
|
|
149
149
|
"pool_shortage",
|
|
150
|
+
"allocation_empty",
|
|
150
151
|
"transaction_expired",
|
|
151
152
|
"stock_exhausted",
|
|
152
153
|
"sale_suspended",
|
|
@@ -168,9 +169,14 @@
|
|
|
168
169
|
"submission_unknown",
|
|
169
170
|
"move_abort_unmapped",
|
|
170
171
|
"missing_data",
|
|
172
|
+
"guard_data_missing",
|
|
171
173
|
"state_not_visible",
|
|
174
|
+
"unreachable_transition",
|
|
175
|
+
"forward_not_at_node",
|
|
172
176
|
"anchor_unavailable",
|
|
173
177
|
"delivery_unknown",
|
|
178
|
+
"capability_unavailable",
|
|
179
|
+
"transport_unavailable",
|
|
174
180
|
"unknown"
|
|
175
181
|
]
|
|
176
182
|
},
|