@wowok/agent-mcp 3.3.6 → 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/eval-order.js +1 -1
- package/dist/chain-semantics/field-capability.js +1 -1
- 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 +3 -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/data/projection/facets.spec.js +1 -1
- package/dist/evaluation/builtins/graph-service.spec.js +1 -1
- package/dist/evaluation/engine.js +1 -1
- package/dist/evaluation/match-policy.d.ts +30 -6
- package/dist/evaluation/match-policy.js +1 -1
- package/dist/evaluation/match-policy.spec.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/intent/types.d.ts +1 -1
- package/dist/intent/types.js +1 -1
- package/dist/keeper/detectors.d.ts +3 -0
- package/dist/keeper/detectors.js +1 -1
- package/dist/keeper/keeper.spec.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 +128 -3
- package/dist/knowledge/builtin-templates.d.ts +18 -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/event-semantics.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.d.ts +4 -0
- 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 +132 -0
- package/dist/knowledge/semantic-ir.js +1 -0
- 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 +45 -0
- package/dist/knowledge/template-loader.js +1 -1
- package/dist/knowledge/template-prose.d.ts +50 -0
- package/dist/knowledge/template-prose.js +1 -0
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.d.ts +5 -3
- 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/monitor/normalize.d.ts +1 -1
- package/dist/monitor/normalize.js +1 -1
- package/dist/monitor/types.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 +16 -6
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/migration-planner.d.ts +11 -2
- package/dist/playbooks/service-build/migration-planner.js +1 -1
- package/dist/playbooks/service-build/mode-actions.d.ts +8 -0
- package/dist/playbooks/service-build/mode-actions.js +1 -1
- package/dist/playbooks/service-build/object-panorama.d.ts +22 -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/reverse-mapping-nk4.spec.js +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/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 +135 -10
- 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/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +32 -0
- package/dist/schema/call/bridge.d.ts +8 -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/reward.d.ts +10 -0
- package/dist/schema/call/reward.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/evaluation/index.d.ts +152 -0
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +16 -0
- package/dist/schema/goal/planning.d.ts +29 -0
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/industry-pack/index.d.ts +70 -0
- package/dist/schema/industry-pack/modes.d.ts +70 -0
- package/dist/schema/industry-pack/modes.js +1 -1
- package/dist/schema/intent-radar/index.d.ts +3 -0
- package/dist/schema/intent-radar/index.js +1 -1
- package/dist/schema/local/index.d.ts +80 -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 +6 -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 +148 -47
- 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 +8 -0
- package/dist/schemas/benchmark_migration_operation.output.json +296 -2
- package/dist/schemas/benchmark_migration_operation.schema.json +292 -7
- package/dist/schemas/bridge_operation.output.json +8 -0
- package/dist/schemas/config_operation.output.json +95 -0
- package/dist/schemas/config_operation.schema.json +16 -1
- package/dist/schemas/evaluation_operation.output.json +240 -0
- package/dist/schemas/evaluation_operation.schema.json +397 -1
- package/dist/schemas/goal_operation.schema.json +40 -10
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/industry_pack_operation.output.json +90 -2
- package/dist/schemas/industry_pack_operation.schema.json +236 -0
- package/dist/schemas/intent_radar.output.json +2 -0
- package/dist/schemas/intent_radar.schema.json +1 -0
- package/dist/schemas/local_cache_operation.output.json +8 -0
- package/dist/schemas/local_history_operation.output.json +8 -0
- package/dist/schemas/local_info_operation.output.json +8 -0
- package/dist/schemas/local_mark_operation.output.json +8 -0
- package/dist/schemas/messenger_operation.output.json +609 -1
- package/dist/schemas/messenger_operation.schema.json +96 -1
- package/dist/schemas/onchain_events.output.json +281 -11
- package/dist/schemas/onchain_events.schema.json +5 -1
- package/dist/schemas/onchain_operations.output.json +8 -0
- package/dist/schemas/onchain_operations.schema.json +371 -10
- package/dist/schemas/onchain_operations_allocation.schema.json +10 -1
- package/dist/schemas/onchain_operations_arbitration.schema.json +1 -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_reward.schema.json +35 -1
- package/dist/schemas/onchain_operations_service.schema.json +6 -6
- package/dist/schemas/query_toolkit.output.json +305 -8
- package/dist/schemas/service_clone_operation.output.json +79 -0
- package/dist/tools/handlers/benchmark-migration.d.ts +15 -0
- package/dist/tools/handlers/benchmark-migration.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/evaluation.spec.js +1 -1
- package/dist/tools/handlers/intent-radar.js +1 -1
- package/dist/tools/handlers/messenger.d.ts +1 -0
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/onchain.d.ts +20 -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/handlers/wip.js +1 -1
- package/dist/tools/registry/agent.js +1 -1
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/registry/query.js +1 -1
- package/dist/tools/wip-verify-ledger.d.ts +14 -0
- package/dist/tools/wip-verify-ledger.js +1 -0
- package/dist/tools/wrap.d.ts +4 -0
- 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'.",
|
|
@@ -30,6 +31,242 @@
|
|
|
30
31
|
"description": "Natural-language business/competitor description (required for migration_import; used by template_generate as the intent text).",
|
|
31
32
|
"type": "string"
|
|
32
33
|
},
|
|
34
|
+
"semantic_ir": {
|
|
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).",
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"schema_version": {
|
|
39
|
+
"anyOf": [
|
|
40
|
+
{
|
|
41
|
+
"type": "number",
|
|
42
|
+
"const": 1
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "number",
|
|
46
|
+
"const": 2
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"locale": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"minLength": 2,
|
|
53
|
+
"maxLength": 35
|
|
54
|
+
},
|
|
55
|
+
"traits": {
|
|
56
|
+
"maxItems": 20,
|
|
57
|
+
"type": "array",
|
|
58
|
+
"items": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"properties": {
|
|
61
|
+
"trait": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"maxLength": 64
|
|
64
|
+
},
|
|
65
|
+
"value": {
|
|
66
|
+
"anyOf": [
|
|
67
|
+
{
|
|
68
|
+
"type": "boolean"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "string",
|
|
72
|
+
"maxLength": 32
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"confidence": {
|
|
77
|
+
"type": "number"
|
|
78
|
+
},
|
|
79
|
+
"span": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"start": {
|
|
83
|
+
"type": "integer",
|
|
84
|
+
"minimum": 0,
|
|
85
|
+
"maximum": 9007199254740991
|
|
86
|
+
},
|
|
87
|
+
"end": {
|
|
88
|
+
"type": "integer",
|
|
89
|
+
"minimum": 0,
|
|
90
|
+
"maximum": 9007199254740991
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": [
|
|
94
|
+
"start",
|
|
95
|
+
"end"
|
|
96
|
+
],
|
|
97
|
+
"additionalProperties": false
|
|
98
|
+
},
|
|
99
|
+
"quote": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"maxLength": 300
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": [
|
|
105
|
+
"trait",
|
|
106
|
+
"value",
|
|
107
|
+
"confidence"
|
|
108
|
+
],
|
|
109
|
+
"additionalProperties": false
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"domains": {
|
|
113
|
+
"maxItems": 10,
|
|
114
|
+
"type": "array",
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"properties": {
|
|
118
|
+
"domain": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"maxLength": 64
|
|
121
|
+
},
|
|
122
|
+
"confidence": {
|
|
123
|
+
"type": "number"
|
|
124
|
+
},
|
|
125
|
+
"span": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"properties": {
|
|
128
|
+
"start": {
|
|
129
|
+
"type": "integer",
|
|
130
|
+
"minimum": 0,
|
|
131
|
+
"maximum": 9007199254740991
|
|
132
|
+
},
|
|
133
|
+
"end": {
|
|
134
|
+
"type": "integer",
|
|
135
|
+
"minimum": 0,
|
|
136
|
+
"maximum": 9007199254740991
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"required": [
|
|
140
|
+
"start",
|
|
141
|
+
"end"
|
|
142
|
+
],
|
|
143
|
+
"additionalProperties": false
|
|
144
|
+
},
|
|
145
|
+
"quote": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"maxLength": 300
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"required": [
|
|
151
|
+
"domain"
|
|
152
|
+
],
|
|
153
|
+
"additionalProperties": false
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"claims": {
|
|
157
|
+
"maxItems": 10,
|
|
158
|
+
"type": "array",
|
|
159
|
+
"items": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"properties": {
|
|
162
|
+
"key": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"maxLength": 64
|
|
165
|
+
},
|
|
166
|
+
"value": {
|
|
167
|
+
"type": "number"
|
|
168
|
+
},
|
|
169
|
+
"confidence": {
|
|
170
|
+
"type": "number"
|
|
171
|
+
},
|
|
172
|
+
"span": {
|
|
173
|
+
"type": "object",
|
|
174
|
+
"properties": {
|
|
175
|
+
"start": {
|
|
176
|
+
"type": "integer",
|
|
177
|
+
"minimum": 0,
|
|
178
|
+
"maximum": 9007199254740991
|
|
179
|
+
},
|
|
180
|
+
"end": {
|
|
181
|
+
"type": "integer",
|
|
182
|
+
"minimum": 0,
|
|
183
|
+
"maximum": 9007199254740991
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": [
|
|
187
|
+
"start",
|
|
188
|
+
"end"
|
|
189
|
+
],
|
|
190
|
+
"additionalProperties": false
|
|
191
|
+
},
|
|
192
|
+
"quote": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"maxLength": 300
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"required": [
|
|
198
|
+
"key",
|
|
199
|
+
"value"
|
|
200
|
+
],
|
|
201
|
+
"additionalProperties": false
|
|
202
|
+
}
|
|
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
|
+
},
|
|
233
|
+
"provenance": {
|
|
234
|
+
"type": "object",
|
|
235
|
+
"properties": {
|
|
236
|
+
"source": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"enum": [
|
|
239
|
+
"caller_llm",
|
|
240
|
+
"human"
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
"model": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"maxLength": 120
|
|
246
|
+
},
|
|
247
|
+
"prompt_version": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"maxLength": 60
|
|
250
|
+
},
|
|
251
|
+
"generated_at": {
|
|
252
|
+
"type": "integer",
|
|
253
|
+
"minimum": 0,
|
|
254
|
+
"maximum": 9007199254740991
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"required": [
|
|
258
|
+
"source"
|
|
259
|
+
],
|
|
260
|
+
"additionalProperties": false
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"required": [
|
|
264
|
+
"schema_version",
|
|
265
|
+
"locale",
|
|
266
|
+
"provenance"
|
|
267
|
+
],
|
|
268
|
+
"additionalProperties": false
|
|
269
|
+
},
|
|
33
270
|
"url": {
|
|
34
271
|
"description": "Competitor store/profile URL for migration_import (recorded as provenance only).",
|
|
35
272
|
"type": "string"
|
|
@@ -158,8 +395,12 @@
|
|
|
158
395
|
"description": "Review reward pool funding, smallest-unit string. HARD-REQUIRED when the effective review mode is review_reward (INV-4): template_generate refuses the build up-front with error_code 'reward_funding_required' rather than promising an unfunded incentive — pass this, or drop the mode explicitly (review_mode 'review' keeps the rail without the bounty; 'none' removes the rail). The compile kernel also blocks with REVIEW_REWARD_UNFUNDED — this input gate just fails before the pipeline runs.",
|
|
159
396
|
"type": "string"
|
|
160
397
|
},
|
|
398
|
+
"reward_claim_amount": {
|
|
399
|
+
"description": "Per-claim reward bounty mounted on the claim guard_add, smallest-unit string. Schema-required on the mount (BK15-F09): compile blocks with REVIEW_REWARD_AMOUNT_MISSING when absent — the kernel never fabricates a real-money parameter.",
|
|
400
|
+
"type": "string"
|
|
401
|
+
},
|
|
161
402
|
"after_sales_mode": {
|
|
162
|
-
"description": "Per-build after-sales mode (D12
|
|
403
|
+
"description": "Per-build after-sales mode (D12 refactor 4). Absent = the template's declared after_sales_mode applies. Declaring a mode with no backing rail in machine_shape is a compile blocker (AFTER_SALES_RAIL_MISSING).",
|
|
163
404
|
"type": "string",
|
|
164
405
|
"enum": [
|
|
165
406
|
"return",
|
|
@@ -169,7 +410,7 @@
|
|
|
169
410
|
]
|
|
170
411
|
},
|
|
171
412
|
"acceptance_mode": {
|
|
172
|
-
"description": "Per-build acceptance/judging mode (D12
|
|
413
|
+
"description": "Per-build acceptance/judging mode (D12 refactor 2). Absent = the template's declared acceptance_mode applies. A judge-decided mode (contest/bounty/agent) without arbitration_mode 'third_party' is a compile blocker (ACCEPTANCE_JUDGE_NOT_INDEPENDENT); a finite revision_rounds_max with no counter Repository guard is a compile blocker (ACCEPTANCE_REVISION_UNBOUNDED).",
|
|
173
414
|
"type": "string",
|
|
174
415
|
"enum": [
|
|
175
416
|
"milestone",
|
|
@@ -180,7 +421,7 @@
|
|
|
180
421
|
]
|
|
181
422
|
},
|
|
182
423
|
"installment_mode": {
|
|
183
|
-
"description": "Per-build installment/deposit mode (D12
|
|
424
|
+
"description": "Per-build installment/deposit mode (D12 refactor 3). Absent = the template's declared installment_mode applies. A capture forward with no fund-gate Guard is a compile blocker (INSTALLMENT_FUNDING_UNGATED); a deposit-held state with no exit rail is a compile blocker (INSTALLMENT_DEPOSIT_STRANDED).",
|
|
184
425
|
"type": "string",
|
|
185
426
|
"enum": [
|
|
186
427
|
"deposit_balance",
|
|
@@ -189,7 +430,7 @@
|
|
|
189
430
|
]
|
|
190
431
|
},
|
|
191
432
|
"affiliate_mode": {
|
|
192
|
-
"description": "Per-build affiliate commission overlay (D12
|
|
433
|
+
"description": "Per-build affiliate commission overlay (D12 batch 5). Absent = the template's declared affiliate_mode applies. A declared commission overlay with no commission rail is a compile blocker (AFFILIATE_RAIL_MISSING); a commission with no post-lock no-clawback disclosure build_note is a compile blocker (AFFILIATE_CLAWBACK_UNDISCLOSED).",
|
|
193
434
|
"type": "string",
|
|
194
435
|
"enum": [
|
|
195
436
|
"commission",
|
|
@@ -197,7 +438,7 @@
|
|
|
197
438
|
]
|
|
198
439
|
},
|
|
199
440
|
"crowdfunding_mode": {
|
|
200
|
-
"description": "Per-build crowdfunding campaign overlay (D12
|
|
441
|
+
"description": "Per-build crowdfunding campaign overlay (D12 batch 7). Absent = the template's declared crowdfunding_mode applies. A declared threshold/flexible overlay with no two-leg escrow-exit gate (release XOR refund, D-BUG-2) is a compile blocker (CROWDFUNDING_THRESHOLD_GATE_MISSING); a threshold gate whose aggregate is NOT a writer-bound sum-where (id_from signer) is a compile blocker (CROWDFUNDING_AGGREGATE_UNBOUND); a missing L-04/L-01/L-05 disclosure build_note is a compile blocker (CROWDFUNDING_DISCLOSURE_MISSING).",
|
|
201
442
|
"type": "string",
|
|
202
443
|
"enum": [
|
|
203
444
|
"threshold",
|
|
@@ -205,6 +446,17 @@
|
|
|
205
446
|
"none"
|
|
206
447
|
]
|
|
207
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
|
+
},
|
|
208
460
|
"sales": {
|
|
209
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.",
|
|
210
462
|
"type": "array",
|
|
@@ -261,6 +513,39 @@
|
|
|
261
513
|
"mainnet",
|
|
262
514
|
"localnet"
|
|
263
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": {}
|
|
264
549
|
}
|
|
265
550
|
},
|
|
266
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,7 +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",
|
|
78
|
+
"anchor_unavailable",
|
|
79
|
+
"delivery_unknown",
|
|
80
|
+
"capability_unavailable",
|
|
81
|
+
"transport_unavailable",
|
|
74
82
|
"unknown"
|
|
75
83
|
]
|
|
76
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"
|