@wowok/agent-mcp 3.1.3 → 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.
- package/dist/config/config-audit.spec.d.ts +1 -0
- package/dist/config/config-audit.spec.js +1 -0
- package/dist/config/exposure.d.ts +108 -0
- package/dist/config/exposure.js +1 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.js +1 -1
- package/dist/config/judgment.d.ts +1228 -0
- package/dist/config/judgment.js +1 -0
- package/dist/config/judgment.spec.d.ts +1 -0
- package/dist/config/judgment.spec.js +1 -0
- package/dist/config/rule-engine.d.ts +299 -0
- package/dist/config/rule-engine.js +1 -0
- package/dist/config/rule-engine.spec.d.ts +1 -0
- package/dist/config/rule-engine.spec.js +1 -0
- package/dist/config/severity.d.ts +7 -0
- package/dist/config/severity.js +1 -0
- package/dist/customer/order-monitor.d.ts +3 -1
- package/dist/customer/order-monitor.js +1 -1
- package/dist/evaluation/acceptance.d.ts +1 -0
- package/dist/evaluation/acceptance.js +1 -1
- package/dist/evaluation/arbitration-game.js +1 -1
- package/dist/evaluation/builtins/demand-match.js +1 -1
- package/dist/evaluation/builtins/graph-service.js +1 -1
- package/dist/evaluation/builtins/graph-service.spec.js +1 -1
- package/dist/evaluation/engine.js +1 -1
- package/dist/evaluation/game-strategy.d.ts +2 -2
- package/dist/evaluation/game-strategy.js +1 -1
- package/dist/evaluation/match-operation.d.ts +2 -2
- package/dist/evaluation/match-operation.js +1 -1
- package/dist/evaluation/standards.d.ts +3 -25
- package/dist/evaluation/standards.js +1 -1
- package/dist/evaluation/types.d.ts +2 -1
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/extensions/business-modules.js +1 -1
- package/dist/extensions/custom-registry-file.js +1 -1
- package/dist/extensions/industry-audit.spec.d.ts +1 -0
- package/dist/extensions/industry-audit.spec.js +1 -0
- package/dist/extensions/industry-layers.d.ts +8 -0
- package/dist/extensions/industry-layers.js +1 -1
- package/dist/extensions/industry-pack.d.ts +2 -0
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/extensions/mode-evaluator.js +1 -1
- package/dist/extensions/modes.js +1 -1
- package/dist/graph/onchain/analyze.d.ts +3 -1
- package/dist/graph/onchain/analyze.js +1 -1
- package/dist/graph/onchain/analyze.spec.js +1 -1
- package/dist/graph/onchain/edge-schema.d.ts +1 -0
- package/dist/graph/onchain/edge-schema.js +1 -1
- package/dist/graph/onchain/expand.js +1 -1
- package/dist/graph/onchain/exploration.d.ts +28 -0
- package/dist/graph/onchain/exploration.js +1 -0
- package/dist/graph/onchain/exploration.spec.d.ts +1 -0
- package/dist/graph/onchain/exploration.spec.js +1 -0
- package/dist/graph/onchain/exposure.d.ts +18 -0
- package/dist/graph/onchain/exposure.js +1 -0
- package/dist/graph/onchain/exposure.spec.d.ts +1 -0
- package/dist/graph/onchain/exposure.spec.js +1 -0
- package/dist/graph/onchain/graph-policy.spec.d.ts +1 -0
- package/dist/graph/onchain/graph-policy.spec.js +1 -0
- package/dist/graph/onchain/index.d.ts +6 -0
- package/dist/graph/onchain/index.js +1 -1
- package/dist/graph/onchain/interest.js +1 -1
- package/dist/graph/onchain/interest.spec.js +1 -1
- package/dist/graph/onchain/names.js +1 -1
- package/dist/graph/onchain/names.spec.js +1 -1
- package/dist/graph/onchain/policy.d.ts +8 -0
- package/dist/graph/onchain/policy.js +1 -0
- package/dist/graph/onchain/proposal-graph.js +1 -1
- package/dist/graph/onchain/proposal-graph.spec.js +1 -1
- package/dist/graph/onchain/synthesis.d.ts +20 -0
- package/dist/graph/onchain/synthesis.js +1 -0
- package/dist/graph/onchain/synthesis.spec.d.ts +1 -0
- package/dist/graph/onchain/synthesis.spec.js +1 -0
- package/dist/graph/onchain/types.d.ts +11 -1
- package/dist/keeper/keeper.spec.js +1 -1
- package/dist/knowledge/alloc-audit-policy.spec.d.ts +1 -0
- package/dist/knowledge/alloc-audit-policy.spec.js +1 -0
- package/dist/knowledge/allocation-ledger.js +1 -1
- package/dist/knowledge/allocation-puzzle.d.ts +1 -1
- package/dist/knowledge/allocation-puzzle.js +1 -1
- package/dist/knowledge/allocation-risk.d.ts +4 -1
- package/dist/knowledge/allocation-risk.js +1 -1
- package/dist/knowledge/allocation-templates.js +1 -1
- package/dist/knowledge/arb-risk.d.ts +6 -5
- package/dist/knowledge/arb-risk.js +1 -1
- package/dist/knowledge/arbitration-ledger.d.ts +4 -4
- package/dist/knowledge/arbitration-ledger.js +1 -1
- package/dist/knowledge/arbitration-puzzle.d.ts +1 -1
- package/dist/knowledge/arbitration-puzzle.js +1 -1
- package/dist/knowledge/arbitration-risk.d.ts +4 -1
- package/dist/knowledge/arbitration-risk.js +1 -1
- package/dist/knowledge/arbitration-templates.js +1 -1
- package/dist/knowledge/baselines/judgment-baselines.json +289 -0
- package/dist/knowledge/baselines/risk-baselines.spec.js +1 -1
- package/dist/knowledge/baselines/rules/alloc_audit.json +290 -0
- package/dist/knowledge/baselines/rules/allocation.json +492 -0
- package/dist/knowledge/baselines/rules/arb.json +155 -0
- package/dist/knowledge/baselines/rules/arbitration.json +366 -0
- package/dist/knowledge/baselines/rules/bridge.json +197 -0
- package/dist/knowledge/baselines/rules/contact.json +152 -0
- package/dist/knowledge/baselines/rules/demand.json +158 -0
- package/dist/knowledge/baselines/rules/graph.json +453 -0
- package/dist/knowledge/baselines/rules/guard.json +981 -0
- package/dist/knowledge/baselines/rules/machine.json +706 -0
- package/dist/knowledge/baselines/rules/order.json +549 -0
- package/dist/knowledge/baselines/rules/payment.json +205 -0
- package/dist/knowledge/baselines/rules/permission.json +330 -0
- package/dist/knowledge/baselines/rules/personal.json +139 -0
- package/dist/knowledge/baselines/rules/progress.json +346 -0
- package/dist/knowledge/baselines/rules/proof.json +158 -0
- package/dist/knowledge/baselines/rules/registrar.json +159 -0
- package/dist/knowledge/baselines/rules/repository.json +244 -0
- package/dist/knowledge/baselines/rules/resource.json +117 -0
- package/dist/knowledge/baselines/rules/reward.json +471 -0
- package/dist/knowledge/baselines/rules/service.json +595 -0
- package/dist/knowledge/baselines/rules/treasury.json +440 -0
- package/dist/knowledge/baselines/rules/util.json +101 -0
- package/dist/knowledge/bridge-risk.d.ts +6 -5
- package/dist/knowledge/bridge-risk.js +1 -1
- package/dist/knowledge/builtin-templates.d.ts +26 -0
- package/dist/knowledge/builtin-templates.js +1 -0
- package/dist/knowledge/contact-risk.d.ts +6 -5
- package/dist/knowledge/contact-risk.js +1 -1
- package/dist/knowledge/demand-risk.d.ts +6 -5
- package/dist/knowledge/demand-risk.js +1 -1
- package/dist/knowledge/event-semantics.js +1 -1
- package/dist/knowledge/facts-sync.spec.d.ts +1 -0
- package/dist/knowledge/facts-sync.spec.js +1 -0
- package/dist/knowledge/getting-started.js +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-field-cognition.d.ts +1 -1
- package/dist/knowledge/guard-field-cognition.js +1 -1
- package/dist/knowledge/guard-ledger.js +1 -1
- package/dist/knowledge/guard-risk.d.ts +4 -1
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/guard-translation.js +1 -1
- package/dist/knowledge/index.d.ts +10 -2
- package/dist/knowledge/index.js +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-ledger.js +1 -1
- package/dist/knowledge/machine-risk.d.ts +4 -1
- package/dist/knowledge/machine-risk.js +1 -1
- package/dist/knowledge/machine-templates.js +1 -1
- package/dist/knowledge/machine-translation.js +1 -1
- package/dist/knowledge/migration-preflight.js +1 -1
- package/dist/knowledge/operation-dictionary.js +1 -1
- package/dist/knowledge/order-ledger.js +1 -1
- package/dist/knowledge/order-puzzle.d.ts +3 -3
- package/dist/knowledge/order-puzzle.js +1 -1
- package/dist/knowledge/order-risk.d.ts +6 -3
- package/dist/knowledge/order-risk.js +1 -1
- package/dist/knowledge/order-templates.js +1 -1
- package/dist/knowledge/passport-ledger.js +1 -1
- package/dist/knowledge/passport-templates.js +1 -1
- package/dist/knowledge/payment-risk.d.ts +8 -6
- package/dist/knowledge/payment-risk.js +1 -1
- package/dist/knowledge/payment-tracker.js +1 -1
- package/dist/knowledge/permission-ledger.js +1 -1
- package/dist/knowledge/permission-puzzle.d.ts +12 -12
- package/dist/knowledge/permission-puzzle.js +1 -1
- package/dist/knowledge/permission-risk.d.ts +4 -7
- package/dist/knowledge/permission-risk.js +1 -1
- package/dist/knowledge/permission-templates.js +1 -1
- package/dist/knowledge/personal-risk.d.ts +6 -5
- package/dist/knowledge/personal-risk.js +1 -1
- package/dist/knowledge/progress-ledger.js +1 -1
- package/dist/knowledge/progress-puzzle.d.ts +2 -2
- package/dist/knowledge/progress-puzzle.js +1 -1
- package/dist/knowledge/progress-risk.d.ts +4 -1
- package/dist/knowledge/progress-risk.js +1 -1
- package/dist/knowledge/progress-templates.js +1 -1
- package/dist/knowledge/proof-risk.d.ts +6 -5
- package/dist/knowledge/proof-risk.js +1 -1
- package/dist/knowledge/puzzle-projections.js +1 -1
- package/dist/knowledge/recipient-constraint.d.ts +20 -1
- package/dist/knowledge/recipient-constraint.js +1 -1
- package/dist/knowledge/registrar-risk.d.ts +6 -5
- package/dist/knowledge/registrar-risk.js +1 -1
- package/dist/knowledge/repository-risk.d.ts +7 -6
- package/dist/knowledge/repository-risk.js +1 -1
- package/dist/knowledge/resource-risk.d.ts +6 -5
- package/dist/knowledge/resource-risk.js +1 -1
- package/dist/knowledge/reward-ledger.d.ts +1 -1
- package/dist/knowledge/reward-ledger.js +1 -1
- package/dist/knowledge/reward-puzzle.d.ts +2 -2
- package/dist/knowledge/reward-puzzle.js +1 -1
- package/dist/knowledge/reward-risk.d.ts +4 -1
- package/dist/knowledge/reward-risk.js +1 -1
- package/dist/knowledge/rule-node-analyzers.spec.js +1 -1
- package/dist/knowledge/rule-outcome.js +1 -1
- package/dist/knowledge/scenario-modes.d.ts +2 -2
- package/dist/knowledge/scenario-modes.js +1 -1
- package/dist/knowledge/scenario-topology.js +1 -1
- package/dist/knowledge/service-allocator-audit-node.js +1 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/service-puzzle.d.ts +2 -2
- package/dist/knowledge/service-puzzle.js +1 -1
- package/dist/knowledge/service-risk-node.js +1 -1
- package/dist/knowledge/service-risk.d.ts +4 -1
- package/dist/knowledge/service-risk.js +1 -1
- package/dist/knowledge/service-templates.js +1 -1
- package/dist/knowledge/strategy-manuals.d.ts +1 -1
- package/dist/knowledge/strategy-manuals.js +1 -1
- package/dist/knowledge/template-loader.d.ts +84 -0
- package/dist/knowledge/template-loader.js +1 -0
- package/dist/knowledge/template-loader.spec.d.ts +1 -0
- package/dist/knowledge/template-loader.spec.js +1 -0
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.d.ts +17 -0
- package/dist/knowledge/template-scanner.js +1 -0
- package/dist/knowledge/template-scanner.spec.d.ts +1 -0
- package/dist/knowledge/template-scanner.spec.js +1 -0
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/treasury-ledger.d.ts +1 -1
- package/dist/knowledge/treasury-ledger.js +1 -1
- package/dist/knowledge/treasury-puzzle.d.ts +3 -3
- package/dist/knowledge/treasury-puzzle.js +1 -1
- package/dist/knowledge/treasury-risk.d.ts +4 -1
- package/dist/knowledge/treasury-risk.js +1 -1
- package/dist/knowledge/treasury-templates.js +1 -1
- package/dist/knowledge/util-risk.d.ts +6 -5
- package/dist/knowledge/util-risk.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +4 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/knowledge/workspace-lists.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/participation/arbitrator-interest.js +1 -1
- package/dist/participation/radar-core.js +1 -1
- package/dist/persona/analyzer.js +1 -1
- package/dist/persona/index.js +1 -1
- package/dist/persona/model.js +1 -1
- package/dist/persona/persona-audit.spec.d.ts +1 -0
- package/dist/persona/persona-audit.spec.js +1 -0
- package/dist/persona/types.d.ts +2 -0
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/facet-money.d.ts +11 -0
- package/dist/playbooks/service-build/facet-money.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.d.ts +17 -0
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +2 -2
- package/dist/playbooks/service-build/migration-planner.d.ts +43 -0
- package/dist/playbooks/service-build/migration-planner.js +1 -0
- package/dist/playbooks/service-build/object-panorama.d.ts +42 -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/pipeline-actions.d.ts +1 -1
- package/dist/playbooks/service-build/reverse-mapping.d.ts +1 -0
- package/dist/playbooks/service-build/reverse-mapping.js +1 -1
- package/dist/playbooks/service-build/risk-aggregator.d.ts +2 -1
- package/dist/playbooks/service-build/risk-aggregator.js +1 -1
- package/dist/playbooks/service-build/semantic-graph.js +1 -1
- package/dist/playbooks/service-build/service-panorama.d.ts +53 -1
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/playbooks/service-build/topology-evaluation.spec.js +1 -1
- package/dist/playbooks/service-build/topology-query.js +1 -1
- package/dist/playbooks/service-build/workflow-design-assessment.d.ts +2 -2
- package/dist/playbooks/service-build/workflow-design-assessment.js +1 -1
- package/dist/relationship/registry.js +1 -1
- package/dist/review/machine.js +1 -1
- package/dist/review/order.js +1 -1
- package/dist/review/service.js +1 -1
- package/dist/review/types.d.ts +7 -0
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/benchmark-migration/index.d.ts +207 -0
- package/dist/schema/benchmark-migration/index.js +1 -0
- package/dist/schema/call/allocation.d.ts +1 -1
- package/dist/schema/call/allocation.js +1 -1
- package/dist/schema/call/arbitration.d.ts +1 -1
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +5 -5
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/contact.d.ts +1 -1
- package/dist/schema/call/demand.d.ts +1 -1
- package/dist/schema/call/guard.d.ts +3 -3
- package/dist/schema/call/machine.d.ts +5 -5
- package/dist/schema/call/order.d.ts +3 -3
- package/dist/schema/call/payment.js +1 -1
- package/dist/schema/call/permission-handler.d.ts +1 -1
- package/dist/schema/call/permission-handler.js +1 -1
- package/dist/schema/call/permission.d.ts +16 -16
- package/dist/schema/call/permission.js +1 -1
- package/dist/schema/call/personal.d.ts +8 -8
- package/dist/schema/call/personal.js +1 -1
- package/dist/schema/call/progress.d.ts +3 -3
- package/dist/schema/call/repository.d.ts +11 -11
- package/dist/schema/call/repository.js +1 -1
- package/dist/schema/call/reward.d.ts +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +7 -7
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/call/treasury.d.ts +1 -1
- package/dist/schema/common/index.d.ts +6 -6
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/config/index.d.ts +50 -1
- package/dist/schema/config/index.js +1 -1
- package/dist/schema/evaluation/index.d.ts +27 -11
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +5 -5
- package/dist/schema/goal/planning.d.ts +15 -15
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.js +1 -1
- package/dist/schema/interaction/index.d.ts +1 -1
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +26 -26
- package/dist/schema/operations.d.ts +33 -33
- package/dist/schema/operations.js +1 -1
- package/dist/schema/persona/index.d.ts +4708 -0
- package/dist/schema/persona/index.js +1 -1
- package/dist/schema/query/bi.d.ts +232 -25
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +35 -35
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/workflow/index.d.ts +1 -1
- package/dist/schema-query-impl/index.d.ts +9 -0
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/benchmark_migration_operation.output.json +793 -0
- package/dist/schemas/benchmark_migration_operation.schema.json +83 -0
- package/dist/schemas/bridge_operation.schema.json +5 -5
- package/dist/schemas/config_operation.output.json +252 -0
- package/dist/schemas/config_operation.schema.json +21 -1
- package/dist/schemas/evaluation_operation.output.json +22 -10
- package/dist/schemas/goal_operation.schema.json +8 -8
- package/dist/schemas/guard2file.schema.json +1 -1
- package/dist/schemas/index.json +7 -1
- package/dist/schemas/machineNode2file.schema.json +1 -1
- package/dist/schemas/messenger_operation.schema.json +24 -12
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.output.json +4 -2
- package/dist/schemas/onchain_operations.schema.json +189 -139
- package/dist/schemas/onchain_operations_allocation.schema.json +13 -11
- package/dist/schemas/onchain_operations_arbitration.schema.json +10 -8
- package/dist/schemas/onchain_operations_contact.schema.json +7 -5
- package/dist/schemas/onchain_operations_demand.schema.json +7 -5
- package/dist/schemas/onchain_operations_gen_passport.schema.json +5 -3
- package/dist/schemas/onchain_operations_gen_proof.schema.json +1 -1
- package/dist/schemas/onchain_operations_guard.schema.json +5 -3
- package/dist/schemas/onchain_operations_machine.schema.json +22 -18
- package/dist/schemas/onchain_operations_order.schema.json +11 -7
- package/dist/schemas/onchain_operations_payment.schema.json +3 -3
- package/dist/schemas/onchain_operations_permission.schema.json +19 -11
- package/dist/schemas/onchain_operations_personal.schema.json +16 -10
- package/dist/schemas/onchain_operations_progress.schema.json +11 -7
- package/dist/schemas/onchain_operations_proof.schema.json +5 -3
- package/dist/schemas/onchain_operations_repository.schema.json +12 -8
- package/dist/schemas/onchain_operations_reward.schema.json +11 -9
- package/dist/schemas/onchain_operations_service.schema.json +28 -22
- package/dist/schemas/onchain_operations_treasury.schema.json +11 -9
- package/dist/schemas/onchain_table_data.output.json +27 -17
- package/dist/schemas/persona_operation.output.json +15875 -1
- package/dist/schemas/persona_operation.schema.json +3056 -478
- package/dist/schemas/query_toolkit.output.json +343 -63
- package/dist/schemas/query_toolkit.schema.json +1 -1
- package/dist/schemas/workflow_operation.schema.json +4 -2
- package/dist/strategy/scorecard.js +1 -1
- package/dist/tools/handlers/benchmark-migration.d.ts +2 -0
- package/dist/tools/handlers/benchmark-migration.js +1 -0
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/industry-pack.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/move-fn-index.gen.d.ts +3 -0
- package/dist/tools/move-fn-index.gen.js +1 -0
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/registry/config.js +1 -1
- package/dist/tools/registry/evaluation.js +1 -1
- package/dist/tools/registry/onchain.js +1 -1
- package/dist/tools/sanitize-output.d.ts +3 -0
- package/dist/tools/sanitize-output.js +1 -0
- package/dist/tools/sanitize-output.spec.d.ts +1 -0
- package/dist/tools/sanitize-output.spec.js +1 -0
- package/package.json +9 -4
- package/dist/knowledge/baselines/evaluation-baselines.json +0 -79
|
@@ -0,0 +1,793 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/benchmark_migration_operation.output.json",
|
|
4
|
+
"title": "Template Migration - Industry Templates & Competitor Migration",
|
|
5
|
+
"description": "MD industry-archetype templates (hot-loaded from .wowok/templates/, 12 built-ins: 6 industries x leader + challenger), pre-deploy risk scan, and one-click competitor migration. Actions: template_list (list loaded templates, optional industry filter), template_get (full template by template_id), template_generate (creation plan from a template via the merchant-guide pipeline; scan-first, CRITICAL blocks; never on-chain), template_scan (pre-deploy risk scan of one template; CRITICAL blocks generation/apply), migration_import (competitor URL/description -> MigrationLog with mapped/unmapped/manual_review entries), migration_review (surface the MigrationLog for user confirmation), migration_apply (run the approved template through the merchant-guide pipeline; scan-first, CRITICAL blocks; default network testnet).",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"result": {
|
|
9
|
+
"oneOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"action": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"const": "template_list"
|
|
16
|
+
},
|
|
17
|
+
"count": {
|
|
18
|
+
"type": "number",
|
|
19
|
+
"description": "Number of templates returned."
|
|
20
|
+
},
|
|
21
|
+
"templates": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"id": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Template id '<industry>/<variant>', e.g. 'retail/scale-marketplace'."
|
|
29
|
+
},
|
|
30
|
+
"industry": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Industry vertical."
|
|
33
|
+
},
|
|
34
|
+
"variant": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Business-model variant slug."
|
|
37
|
+
},
|
|
38
|
+
"archetype": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": [
|
|
41
|
+
"leader",
|
|
42
|
+
"challenger"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"key_risk": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "Primary risk this template mitigates."
|
|
48
|
+
},
|
|
49
|
+
"node_count": {
|
|
50
|
+
"type": "number",
|
|
51
|
+
"description": "Machine node count."
|
|
52
|
+
},
|
|
53
|
+
"guard_count": {
|
|
54
|
+
"type": "number",
|
|
55
|
+
"description": "Guard template count."
|
|
56
|
+
},
|
|
57
|
+
"recommended_role": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"enum": [
|
|
60
|
+
"merchant",
|
|
61
|
+
"supplier",
|
|
62
|
+
"both"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": [
|
|
67
|
+
"id",
|
|
68
|
+
"industry",
|
|
69
|
+
"variant",
|
|
70
|
+
"archetype",
|
|
71
|
+
"key_risk",
|
|
72
|
+
"node_count",
|
|
73
|
+
"guard_count",
|
|
74
|
+
"recommended_role"
|
|
75
|
+
],
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"description": "Compact template listing row."
|
|
78
|
+
},
|
|
79
|
+
"description": "Template listing rows."
|
|
80
|
+
},
|
|
81
|
+
"load_errors": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"description": "Template files that failed to load/validate (never silently dropped)."
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": [
|
|
90
|
+
"action",
|
|
91
|
+
"count",
|
|
92
|
+
"templates",
|
|
93
|
+
"load_errors"
|
|
94
|
+
],
|
|
95
|
+
"additionalProperties": false
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"type": "object",
|
|
99
|
+
"properties": {
|
|
100
|
+
"action": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"const": "template_get"
|
|
103
|
+
},
|
|
104
|
+
"template": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"propertyNames": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"additionalProperties": {},
|
|
110
|
+
"description": "Full template object (machine_shape/guards/allocator/fee_params/body/...)."
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required": [
|
|
114
|
+
"action",
|
|
115
|
+
"template"
|
|
116
|
+
],
|
|
117
|
+
"additionalProperties": false
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"type": "object",
|
|
121
|
+
"properties": {
|
|
122
|
+
"action": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"const": "template_generate"
|
|
125
|
+
},
|
|
126
|
+
"template_id": {
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
129
|
+
"scan": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"properties": {
|
|
132
|
+
"risk_level": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"enum": [
|
|
135
|
+
"low",
|
|
136
|
+
"medium",
|
|
137
|
+
"high",
|
|
138
|
+
"critical"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"passed": {
|
|
142
|
+
"type": "boolean"
|
|
143
|
+
},
|
|
144
|
+
"red_flags": {
|
|
145
|
+
"type": "array",
|
|
146
|
+
"items": {
|
|
147
|
+
"type": "string"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"required": [
|
|
152
|
+
"risk_level",
|
|
153
|
+
"passed",
|
|
154
|
+
"red_flags"
|
|
155
|
+
],
|
|
156
|
+
"additionalProperties": false,
|
|
157
|
+
"description": "Pre-deploy scan summary (generation only runs when passed)."
|
|
158
|
+
},
|
|
159
|
+
"plan": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"propertyNames": {
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
"additionalProperties": {},
|
|
165
|
+
"description": "Creation plan from the merchant-guide pipeline (never executed on-chain)."
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"required": [
|
|
169
|
+
"action",
|
|
170
|
+
"template_id",
|
|
171
|
+
"scan",
|
|
172
|
+
"plan"
|
|
173
|
+
],
|
|
174
|
+
"additionalProperties": false
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"type": "object",
|
|
178
|
+
"properties": {
|
|
179
|
+
"action": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"const": "template_scan"
|
|
182
|
+
},
|
|
183
|
+
"scan": {
|
|
184
|
+
"type": "object",
|
|
185
|
+
"properties": {
|
|
186
|
+
"template_id": {
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
"risk_level": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"enum": [
|
|
192
|
+
"low",
|
|
193
|
+
"medium",
|
|
194
|
+
"high",
|
|
195
|
+
"critical"
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
"passed": {
|
|
199
|
+
"type": "boolean"
|
|
200
|
+
},
|
|
201
|
+
"findings": {
|
|
202
|
+
"type": "array",
|
|
203
|
+
"items": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"properties": {
|
|
206
|
+
"rule_id": {
|
|
207
|
+
"description": "Rule id when known (e.g. 'R-M3-01', 'R1').",
|
|
208
|
+
"type": "string"
|
|
209
|
+
},
|
|
210
|
+
"severity": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"enum": [
|
|
213
|
+
"low",
|
|
214
|
+
"medium",
|
|
215
|
+
"high",
|
|
216
|
+
"critical"
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
"title": {
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
"detail": {
|
|
223
|
+
"type": "string"
|
|
224
|
+
},
|
|
225
|
+
"suggestion": {
|
|
226
|
+
"type": "string"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"required": [
|
|
230
|
+
"severity",
|
|
231
|
+
"title",
|
|
232
|
+
"detail",
|
|
233
|
+
"suggestion"
|
|
234
|
+
],
|
|
235
|
+
"additionalProperties": false,
|
|
236
|
+
"description": "One pre-deploy risk finding."
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"red_flags": {
|
|
240
|
+
"type": "array",
|
|
241
|
+
"items": {
|
|
242
|
+
"type": "string"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"required": [
|
|
247
|
+
"template_id",
|
|
248
|
+
"risk_level",
|
|
249
|
+
"passed",
|
|
250
|
+
"findings",
|
|
251
|
+
"red_flags"
|
|
252
|
+
],
|
|
253
|
+
"additionalProperties": false,
|
|
254
|
+
"description": "Full pre-deploy scan result."
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"required": [
|
|
258
|
+
"action",
|
|
259
|
+
"scan"
|
|
260
|
+
],
|
|
261
|
+
"additionalProperties": false
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"type": "object",
|
|
265
|
+
"properties": {
|
|
266
|
+
"action": {
|
|
267
|
+
"type": "string",
|
|
268
|
+
"const": "migration_import"
|
|
269
|
+
},
|
|
270
|
+
"log": {
|
|
271
|
+
"type": "object",
|
|
272
|
+
"properties": {
|
|
273
|
+
"source": {
|
|
274
|
+
"type": "object",
|
|
275
|
+
"properties": {
|
|
276
|
+
"url": {
|
|
277
|
+
"type": "string"
|
|
278
|
+
},
|
|
279
|
+
"description": {
|
|
280
|
+
"type": "string"
|
|
281
|
+
},
|
|
282
|
+
"detected_industry": {
|
|
283
|
+
"type": "string"
|
|
284
|
+
},
|
|
285
|
+
"matched_template": {
|
|
286
|
+
"type": "string",
|
|
287
|
+
"description": "Matched template id '<industry>/<variant>'."
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"required": [
|
|
291
|
+
"description",
|
|
292
|
+
"detected_industry",
|
|
293
|
+
"matched_template"
|
|
294
|
+
],
|
|
295
|
+
"additionalProperties": false,
|
|
296
|
+
"description": "Migration source provenance."
|
|
297
|
+
},
|
|
298
|
+
"mapped": {
|
|
299
|
+
"type": "array",
|
|
300
|
+
"items": {
|
|
301
|
+
"type": "object",
|
|
302
|
+
"properties": {
|
|
303
|
+
"source_element": {
|
|
304
|
+
"type": "string",
|
|
305
|
+
"description": "Competitor-side element."
|
|
306
|
+
},
|
|
307
|
+
"target_object": {
|
|
308
|
+
"description": "WoWok object/mechanism it maps to.",
|
|
309
|
+
"type": "string"
|
|
310
|
+
},
|
|
311
|
+
"mapping_note": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"description": "One-line mapping explanation."
|
|
314
|
+
},
|
|
315
|
+
"reason": {
|
|
316
|
+
"description": "Why it cannot be migrated, or why it needs a decision.",
|
|
317
|
+
"type": "string"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"required": [
|
|
321
|
+
"source_element",
|
|
322
|
+
"mapping_note"
|
|
323
|
+
],
|
|
324
|
+
"additionalProperties": false,
|
|
325
|
+
"description": "One competitor element and its WoWok mapping outcome."
|
|
326
|
+
},
|
|
327
|
+
"description": "Elements that map cleanly to WoWok objects."
|
|
328
|
+
},
|
|
329
|
+
"unmapped": {
|
|
330
|
+
"type": "array",
|
|
331
|
+
"items": {
|
|
332
|
+
"type": "object",
|
|
333
|
+
"properties": {
|
|
334
|
+
"source_element": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"description": "Competitor-side element."
|
|
337
|
+
},
|
|
338
|
+
"target_object": {
|
|
339
|
+
"description": "WoWok object/mechanism it maps to.",
|
|
340
|
+
"type": "string"
|
|
341
|
+
},
|
|
342
|
+
"mapping_note": {
|
|
343
|
+
"type": "string",
|
|
344
|
+
"description": "One-line mapping explanation."
|
|
345
|
+
},
|
|
346
|
+
"reason": {
|
|
347
|
+
"description": "Why it cannot be migrated, or why it needs a decision.",
|
|
348
|
+
"type": "string"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"required": [
|
|
352
|
+
"source_element",
|
|
353
|
+
"mapping_note"
|
|
354
|
+
],
|
|
355
|
+
"additionalProperties": false,
|
|
356
|
+
"description": "One competitor element and its WoWok mapping outcome."
|
|
357
|
+
},
|
|
358
|
+
"description": "Elements that cannot be migrated, with reasons."
|
|
359
|
+
},
|
|
360
|
+
"manual_review": {
|
|
361
|
+
"type": "array",
|
|
362
|
+
"items": {
|
|
363
|
+
"type": "object",
|
|
364
|
+
"properties": {
|
|
365
|
+
"source_element": {
|
|
366
|
+
"type": "string",
|
|
367
|
+
"description": "Competitor-side element."
|
|
368
|
+
},
|
|
369
|
+
"target_object": {
|
|
370
|
+
"description": "WoWok object/mechanism it maps to.",
|
|
371
|
+
"type": "string"
|
|
372
|
+
},
|
|
373
|
+
"mapping_note": {
|
|
374
|
+
"type": "string",
|
|
375
|
+
"description": "One-line mapping explanation."
|
|
376
|
+
},
|
|
377
|
+
"reason": {
|
|
378
|
+
"description": "Why it cannot be migrated, or why it needs a decision.",
|
|
379
|
+
"type": "string"
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"required": [
|
|
383
|
+
"source_element",
|
|
384
|
+
"mapping_note"
|
|
385
|
+
],
|
|
386
|
+
"additionalProperties": false,
|
|
387
|
+
"description": "One competitor element and its WoWok mapping outcome."
|
|
388
|
+
},
|
|
389
|
+
"description": "Elements requiring an explicit user decision."
|
|
390
|
+
},
|
|
391
|
+
"wowok_advantages": {
|
|
392
|
+
"type": "array",
|
|
393
|
+
"items": {
|
|
394
|
+
"type": "string"
|
|
395
|
+
},
|
|
396
|
+
"description": "WoWok platform advantages surfaced during migration."
|
|
397
|
+
},
|
|
398
|
+
"customizable_modules": {
|
|
399
|
+
"type": "array",
|
|
400
|
+
"items": {
|
|
401
|
+
"type": "string"
|
|
402
|
+
},
|
|
403
|
+
"description": "Business-module ids the user can customize."
|
|
404
|
+
},
|
|
405
|
+
"role_assessment": {
|
|
406
|
+
"type": "object",
|
|
407
|
+
"properties": {
|
|
408
|
+
"recommended": {
|
|
409
|
+
"type": "string"
|
|
410
|
+
},
|
|
411
|
+
"rationale": {
|
|
412
|
+
"type": "string"
|
|
413
|
+
},
|
|
414
|
+
"alternatives": {
|
|
415
|
+
"type": "array",
|
|
416
|
+
"items": {
|
|
417
|
+
"type": "string"
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"required": [
|
|
422
|
+
"recommended",
|
|
423
|
+
"rationale",
|
|
424
|
+
"alternatives"
|
|
425
|
+
],
|
|
426
|
+
"additionalProperties": false,
|
|
427
|
+
"description": "Merchant vs supplier role assessment."
|
|
428
|
+
},
|
|
429
|
+
"risk_check": {
|
|
430
|
+
"type": "object",
|
|
431
|
+
"properties": {
|
|
432
|
+
"passed": {
|
|
433
|
+
"type": "boolean"
|
|
434
|
+
},
|
|
435
|
+
"findings": {
|
|
436
|
+
"type": "array",
|
|
437
|
+
"items": {
|
|
438
|
+
"type": "string"
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
"required": [
|
|
443
|
+
"passed",
|
|
444
|
+
"findings"
|
|
445
|
+
],
|
|
446
|
+
"additionalProperties": false,
|
|
447
|
+
"description": "Dry-run risk check against the matched template."
|
|
448
|
+
},
|
|
449
|
+
"network": {
|
|
450
|
+
"type": "string",
|
|
451
|
+
"enum": [
|
|
452
|
+
"testnet",
|
|
453
|
+
"mainnet"
|
|
454
|
+
],
|
|
455
|
+
"description": "Target network (default testnet)."
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
"required": [
|
|
459
|
+
"source",
|
|
460
|
+
"mapped",
|
|
461
|
+
"unmapped",
|
|
462
|
+
"manual_review",
|
|
463
|
+
"wowok_advantages",
|
|
464
|
+
"customizable_modules",
|
|
465
|
+
"role_assessment",
|
|
466
|
+
"risk_check",
|
|
467
|
+
"network"
|
|
468
|
+
],
|
|
469
|
+
"additionalProperties": false,
|
|
470
|
+
"description": "The structured migration log."
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"required": [
|
|
474
|
+
"action",
|
|
475
|
+
"log"
|
|
476
|
+
],
|
|
477
|
+
"additionalProperties": false
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"type": "object",
|
|
481
|
+
"properties": {
|
|
482
|
+
"action": {
|
|
483
|
+
"type": "string",
|
|
484
|
+
"const": "migration_review"
|
|
485
|
+
},
|
|
486
|
+
"log": {
|
|
487
|
+
"type": "object",
|
|
488
|
+
"properties": {
|
|
489
|
+
"source": {
|
|
490
|
+
"type": "object",
|
|
491
|
+
"properties": {
|
|
492
|
+
"url": {
|
|
493
|
+
"type": "string"
|
|
494
|
+
},
|
|
495
|
+
"description": {
|
|
496
|
+
"type": "string"
|
|
497
|
+
},
|
|
498
|
+
"detected_industry": {
|
|
499
|
+
"type": "string"
|
|
500
|
+
},
|
|
501
|
+
"matched_template": {
|
|
502
|
+
"type": "string",
|
|
503
|
+
"description": "Matched template id '<industry>/<variant>'."
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"required": [
|
|
507
|
+
"description",
|
|
508
|
+
"detected_industry",
|
|
509
|
+
"matched_template"
|
|
510
|
+
],
|
|
511
|
+
"additionalProperties": false,
|
|
512
|
+
"description": "Migration source provenance."
|
|
513
|
+
},
|
|
514
|
+
"mapped": {
|
|
515
|
+
"type": "array",
|
|
516
|
+
"items": {
|
|
517
|
+
"type": "object",
|
|
518
|
+
"properties": {
|
|
519
|
+
"source_element": {
|
|
520
|
+
"type": "string",
|
|
521
|
+
"description": "Competitor-side element."
|
|
522
|
+
},
|
|
523
|
+
"target_object": {
|
|
524
|
+
"description": "WoWok object/mechanism it maps to.",
|
|
525
|
+
"type": "string"
|
|
526
|
+
},
|
|
527
|
+
"mapping_note": {
|
|
528
|
+
"type": "string",
|
|
529
|
+
"description": "One-line mapping explanation."
|
|
530
|
+
},
|
|
531
|
+
"reason": {
|
|
532
|
+
"description": "Why it cannot be migrated, or why it needs a decision.",
|
|
533
|
+
"type": "string"
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
"required": [
|
|
537
|
+
"source_element",
|
|
538
|
+
"mapping_note"
|
|
539
|
+
],
|
|
540
|
+
"additionalProperties": false,
|
|
541
|
+
"description": "One competitor element and its WoWok mapping outcome."
|
|
542
|
+
},
|
|
543
|
+
"description": "Elements that map cleanly to WoWok objects."
|
|
544
|
+
},
|
|
545
|
+
"unmapped": {
|
|
546
|
+
"type": "array",
|
|
547
|
+
"items": {
|
|
548
|
+
"type": "object",
|
|
549
|
+
"properties": {
|
|
550
|
+
"source_element": {
|
|
551
|
+
"type": "string",
|
|
552
|
+
"description": "Competitor-side element."
|
|
553
|
+
},
|
|
554
|
+
"target_object": {
|
|
555
|
+
"description": "WoWok object/mechanism it maps to.",
|
|
556
|
+
"type": "string"
|
|
557
|
+
},
|
|
558
|
+
"mapping_note": {
|
|
559
|
+
"type": "string",
|
|
560
|
+
"description": "One-line mapping explanation."
|
|
561
|
+
},
|
|
562
|
+
"reason": {
|
|
563
|
+
"description": "Why it cannot be migrated, or why it needs a decision.",
|
|
564
|
+
"type": "string"
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
"required": [
|
|
568
|
+
"source_element",
|
|
569
|
+
"mapping_note"
|
|
570
|
+
],
|
|
571
|
+
"additionalProperties": false,
|
|
572
|
+
"description": "One competitor element and its WoWok mapping outcome."
|
|
573
|
+
},
|
|
574
|
+
"description": "Elements that cannot be migrated, with reasons."
|
|
575
|
+
},
|
|
576
|
+
"manual_review": {
|
|
577
|
+
"type": "array",
|
|
578
|
+
"items": {
|
|
579
|
+
"type": "object",
|
|
580
|
+
"properties": {
|
|
581
|
+
"source_element": {
|
|
582
|
+
"type": "string",
|
|
583
|
+
"description": "Competitor-side element."
|
|
584
|
+
},
|
|
585
|
+
"target_object": {
|
|
586
|
+
"description": "WoWok object/mechanism it maps to.",
|
|
587
|
+
"type": "string"
|
|
588
|
+
},
|
|
589
|
+
"mapping_note": {
|
|
590
|
+
"type": "string",
|
|
591
|
+
"description": "One-line mapping explanation."
|
|
592
|
+
},
|
|
593
|
+
"reason": {
|
|
594
|
+
"description": "Why it cannot be migrated, or why it needs a decision.",
|
|
595
|
+
"type": "string"
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
"required": [
|
|
599
|
+
"source_element",
|
|
600
|
+
"mapping_note"
|
|
601
|
+
],
|
|
602
|
+
"additionalProperties": false,
|
|
603
|
+
"description": "One competitor element and its WoWok mapping outcome."
|
|
604
|
+
},
|
|
605
|
+
"description": "Elements requiring an explicit user decision."
|
|
606
|
+
},
|
|
607
|
+
"wowok_advantages": {
|
|
608
|
+
"type": "array",
|
|
609
|
+
"items": {
|
|
610
|
+
"type": "string"
|
|
611
|
+
},
|
|
612
|
+
"description": "WoWok platform advantages surfaced during migration."
|
|
613
|
+
},
|
|
614
|
+
"customizable_modules": {
|
|
615
|
+
"type": "array",
|
|
616
|
+
"items": {
|
|
617
|
+
"type": "string"
|
|
618
|
+
},
|
|
619
|
+
"description": "Business-module ids the user can customize."
|
|
620
|
+
},
|
|
621
|
+
"role_assessment": {
|
|
622
|
+
"type": "object",
|
|
623
|
+
"properties": {
|
|
624
|
+
"recommended": {
|
|
625
|
+
"type": "string"
|
|
626
|
+
},
|
|
627
|
+
"rationale": {
|
|
628
|
+
"type": "string"
|
|
629
|
+
},
|
|
630
|
+
"alternatives": {
|
|
631
|
+
"type": "array",
|
|
632
|
+
"items": {
|
|
633
|
+
"type": "string"
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
"required": [
|
|
638
|
+
"recommended",
|
|
639
|
+
"rationale",
|
|
640
|
+
"alternatives"
|
|
641
|
+
],
|
|
642
|
+
"additionalProperties": false,
|
|
643
|
+
"description": "Merchant vs supplier role assessment."
|
|
644
|
+
},
|
|
645
|
+
"risk_check": {
|
|
646
|
+
"type": "object",
|
|
647
|
+
"properties": {
|
|
648
|
+
"passed": {
|
|
649
|
+
"type": "boolean"
|
|
650
|
+
},
|
|
651
|
+
"findings": {
|
|
652
|
+
"type": "array",
|
|
653
|
+
"items": {
|
|
654
|
+
"type": "string"
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
"required": [
|
|
659
|
+
"passed",
|
|
660
|
+
"findings"
|
|
661
|
+
],
|
|
662
|
+
"additionalProperties": false,
|
|
663
|
+
"description": "Dry-run risk check against the matched template."
|
|
664
|
+
},
|
|
665
|
+
"network": {
|
|
666
|
+
"type": "string",
|
|
667
|
+
"enum": [
|
|
668
|
+
"testnet",
|
|
669
|
+
"mainnet"
|
|
670
|
+
],
|
|
671
|
+
"description": "Target network (default testnet)."
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"required": [
|
|
675
|
+
"source",
|
|
676
|
+
"mapped",
|
|
677
|
+
"unmapped",
|
|
678
|
+
"manual_review",
|
|
679
|
+
"wowok_advantages",
|
|
680
|
+
"customizable_modules",
|
|
681
|
+
"role_assessment",
|
|
682
|
+
"risk_check",
|
|
683
|
+
"network"
|
|
684
|
+
],
|
|
685
|
+
"additionalProperties": false,
|
|
686
|
+
"description": "The migration log under review."
|
|
687
|
+
},
|
|
688
|
+
"review_summary": {
|
|
689
|
+
"type": "object",
|
|
690
|
+
"properties": {
|
|
691
|
+
"mapped_count": {
|
|
692
|
+
"type": "number"
|
|
693
|
+
},
|
|
694
|
+
"unmapped_count": {
|
|
695
|
+
"type": "number"
|
|
696
|
+
},
|
|
697
|
+
"manual_review_count": {
|
|
698
|
+
"type": "number"
|
|
699
|
+
},
|
|
700
|
+
"risk_passed": {
|
|
701
|
+
"type": "boolean"
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
"required": [
|
|
705
|
+
"mapped_count",
|
|
706
|
+
"unmapped_count",
|
|
707
|
+
"manual_review_count",
|
|
708
|
+
"risk_passed"
|
|
709
|
+
],
|
|
710
|
+
"additionalProperties": false,
|
|
711
|
+
"description": "Counts + risk status for the confirmation screen."
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"required": [
|
|
715
|
+
"action",
|
|
716
|
+
"log",
|
|
717
|
+
"review_summary"
|
|
718
|
+
],
|
|
719
|
+
"additionalProperties": false
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"type": "object",
|
|
723
|
+
"properties": {
|
|
724
|
+
"action": {
|
|
725
|
+
"type": "string",
|
|
726
|
+
"const": "migration_apply"
|
|
727
|
+
},
|
|
728
|
+
"template_id": {
|
|
729
|
+
"type": "string"
|
|
730
|
+
},
|
|
731
|
+
"network": {
|
|
732
|
+
"type": "string",
|
|
733
|
+
"enum": [
|
|
734
|
+
"testnet",
|
|
735
|
+
"mainnet"
|
|
736
|
+
]
|
|
737
|
+
},
|
|
738
|
+
"scan": {
|
|
739
|
+
"type": "object",
|
|
740
|
+
"properties": {
|
|
741
|
+
"risk_level": {
|
|
742
|
+
"type": "string",
|
|
743
|
+
"enum": [
|
|
744
|
+
"low",
|
|
745
|
+
"medium",
|
|
746
|
+
"high",
|
|
747
|
+
"critical"
|
|
748
|
+
]
|
|
749
|
+
},
|
|
750
|
+
"passed": {
|
|
751
|
+
"type": "boolean"
|
|
752
|
+
},
|
|
753
|
+
"red_flags": {
|
|
754
|
+
"type": "array",
|
|
755
|
+
"items": {
|
|
756
|
+
"type": "string"
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
"required": [
|
|
761
|
+
"risk_level",
|
|
762
|
+
"passed",
|
|
763
|
+
"red_flags"
|
|
764
|
+
],
|
|
765
|
+
"additionalProperties": false,
|
|
766
|
+
"description": "Pre-deploy scan summary (apply only runs when passed)."
|
|
767
|
+
},
|
|
768
|
+
"plan": {
|
|
769
|
+
"type": "object",
|
|
770
|
+
"propertyNames": {
|
|
771
|
+
"type": "string"
|
|
772
|
+
},
|
|
773
|
+
"additionalProperties": {},
|
|
774
|
+
"description": "Creation plan from the merchant-guide pipeline (never executed on-chain)."
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
"required": [
|
|
778
|
+
"action",
|
|
779
|
+
"template_id",
|
|
780
|
+
"network",
|
|
781
|
+
"scan",
|
|
782
|
+
"plan"
|
|
783
|
+
],
|
|
784
|
+
"additionalProperties": false
|
|
785
|
+
}
|
|
786
|
+
]
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
"required": [
|
|
790
|
+
"result"
|
|
791
|
+
],
|
|
792
|
+
"additionalProperties": false
|
|
793
|
+
}
|