@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.
Files changed (220) hide show
  1. package/dist/chain-semantics/eval-order.js +1 -1
  2. package/dist/chain-semantics/field-capability.js +1 -1
  3. package/dist/chain-semantics/fund-flow.js +1 -1
  4. package/dist/chain-semantics/guard-verbs.js +1 -1
  5. package/dist/chain-semantics/object-graph.js +1 -1
  6. package/dist/communication/message-cursors.d.ts +35 -0
  7. package/dist/communication/message-cursors.js +1 -0
  8. package/dist/communication/wts-attestation.d.ts +5 -0
  9. package/dist/communication/wts-attestation.js +1 -1
  10. package/dist/composition/audit.js +1 -1
  11. package/dist/composition/compile.d.ts +3 -2
  12. package/dist/composition/compile.js +1 -1
  13. package/dist/composition/inflight.d.ts +7 -0
  14. package/dist/composition/inflight.js +1 -1
  15. package/dist/composition/materialize.d.ts +4 -1
  16. package/dist/composition/materialize.js +1 -1
  17. package/dist/config/index.d.ts +1 -0
  18. package/dist/config/index.js +1 -1
  19. package/dist/config/store-policy.d.ts +14 -0
  20. package/dist/config/store-policy.js +1 -0
  21. package/dist/config/store-policy.spec.d.ts +1 -0
  22. package/dist/config/store-policy.spec.js +1 -0
  23. package/dist/customer/industry-risks.js +1 -1
  24. package/dist/customer/user-preferences.js +1 -1
  25. package/dist/data/projection/facets.spec.js +1 -1
  26. package/dist/evaluation/builtins/graph-service.spec.js +1 -1
  27. package/dist/evaluation/engine.js +1 -1
  28. package/dist/evaluation/match-policy.d.ts +30 -6
  29. package/dist/evaluation/match-policy.js +1 -1
  30. package/dist/evaluation/match-policy.spec.js +1 -1
  31. package/dist/experience/realtime-feedback.js +1 -1
  32. package/dist/extensions/business-modules.d.ts +1 -1
  33. package/dist/extensions/business-modules.js +1 -1
  34. package/dist/extensions/industry-pack.js +1 -1
  35. package/dist/extensions/modes.js +1 -1
  36. package/dist/graph/onchain/analyze.js +1 -1
  37. package/dist/graph/onchain/expand.js +1 -1
  38. package/dist/graph/onchain/exposure.js +1 -1
  39. package/dist/graph/onchain/facts.d.ts +1 -0
  40. package/dist/graph/onchain/facts.js +1 -1
  41. package/dist/graph/onchain/facts.spec.js +1 -1
  42. package/dist/harness/recover.js +1 -1
  43. package/dist/intent/types.d.ts +1 -1
  44. package/dist/intent/types.js +1 -1
  45. package/dist/keeper/detectors.d.ts +3 -0
  46. package/dist/keeper/detectors.js +1 -1
  47. package/dist/keeper/keeper.spec.js +1 -1
  48. package/dist/knowledge/acquisition-flywheel.js +1 -1
  49. package/dist/knowledge/allocation-ledger.d.ts +1 -0
  50. package/dist/knowledge/allocation-ledger.js +1 -1
  51. package/dist/knowledge/allocator-rail-verifier.d.ts +6 -2
  52. package/dist/knowledge/allocator-rail-verifier.js +1 -1
  53. package/dist/knowledge/arbitration-ledger.js +1 -1
  54. package/dist/knowledge/audit-rules.d.ts +37 -0
  55. package/dist/knowledge/audit-rules.js +1 -1
  56. package/dist/knowledge/baselines/rules/plan.json +128 -3
  57. package/dist/knowledge/builtin-templates.d.ts +18 -1
  58. package/dist/knowledge/builtin-templates.js +1 -1
  59. package/dist/knowledge/commission-landing.d.ts +26 -0
  60. package/dist/knowledge/commission-landing.js +1 -0
  61. package/dist/knowledge/discount-threshold.js +1 -1
  62. package/dist/knowledge/event-semantics.js +1 -1
  63. package/dist/knowledge/fund-layer.d.ts +7 -0
  64. package/dist/knowledge/fund-layer.js +1 -1
  65. package/dist/knowledge/getting-started.js +1 -1
  66. package/dist/knowledge/guard-design-patterns.d.ts +1 -1
  67. package/dist/knowledge/guard-design-patterns.js +1 -1
  68. package/dist/knowledge/guard-puzzle.js +1 -1
  69. package/dist/knowledge/guard-render.d.ts +7 -0
  70. package/dist/knowledge/guard-render.js +1 -1
  71. package/dist/knowledge/guard-risk.js +1 -1
  72. package/dist/knowledge/guard-templates.d.ts +1 -1
  73. package/dist/knowledge/guard-templates.js +1 -1
  74. package/dist/knowledge/guard-translation.js +1 -1
  75. package/dist/knowledge/index.js +1 -1
  76. package/dist/knowledge/industry-generalizer.d.ts +4 -0
  77. package/dist/knowledge/industry-generalizer.js +1 -1
  78. package/dist/knowledge/industry-registry.d.ts +1 -1
  79. package/dist/knowledge/industry-registry.js +1 -1
  80. package/dist/knowledge/industry-strategy.js +1 -1
  81. package/dist/knowledge/jsonrpc-enum.js +1 -1
  82. package/dist/knowledge/machine-fork-watch.d.ts +9 -0
  83. package/dist/knowledge/machine-fork-watch.js +1 -0
  84. package/dist/knowledge/migration-preflight.js +1 -1
  85. package/dist/knowledge/projection.spec.js +1 -1
  86. package/dist/knowledge/scenario-modes.d.ts +8 -2
  87. package/dist/knowledge/scenario-modes.js +1 -1
  88. package/dist/knowledge/semantic-ir.d.ts +132 -0
  89. package/dist/knowledge/semantic-ir.js +1 -0
  90. package/dist/knowledge/service-ledger.js +1 -1
  91. package/dist/knowledge/strategy-manuals.js +1 -1
  92. package/dist/knowledge/template-index.js +1 -1
  93. package/dist/knowledge/template-loader.d.ts +45 -0
  94. package/dist/knowledge/template-loader.js +1 -1
  95. package/dist/knowledge/template-prose.d.ts +50 -0
  96. package/dist/knowledge/template-prose.js +1 -0
  97. package/dist/knowledge/template-registry.js +1 -1
  98. package/dist/knowledge/template-scanner.d.ts +5 -3
  99. package/dist/knowledge/template-scanner.js +1 -1
  100. package/dist/knowledge/template-validation.js +1 -1
  101. package/dist/knowledge/tools-reference.js +1 -1
  102. package/dist/monitor/MonitorLoop.js +1 -1
  103. package/dist/monitor/normalize.d.ts +1 -1
  104. package/dist/monitor/normalize.js +1 -1
  105. package/dist/monitor/types.js +1 -1
  106. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  107. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  108. package/dist/playbooks/service-build/merchant-guide.d.ts +16 -6
  109. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  110. package/dist/playbooks/service-build/migration-planner.d.ts +11 -2
  111. package/dist/playbooks/service-build/migration-planner.js +1 -1
  112. package/dist/playbooks/service-build/mode-actions.d.ts +8 -0
  113. package/dist/playbooks/service-build/mode-actions.js +1 -1
  114. package/dist/playbooks/service-build/object-panorama.d.ts +22 -1
  115. package/dist/playbooks/service-build/object-panorama.js +1 -1
  116. package/dist/playbooks/service-build/participation-radar.js +1 -1
  117. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  118. package/dist/playbooks/service-build/reverse-mapping-nk4.spec.js +1 -1
  119. package/dist/playbooks/service-build/reverse-mapping.d.ts +1 -0
  120. package/dist/playbooks/service-build/reverse-mapping.js +1 -1
  121. package/dist/playbooks/service-build/service-panorama.js +1 -1
  122. package/dist/playbooks/service-build/service-quote.js +1 -1
  123. package/dist/playbooks/service-build/service-quote.spec.js +1 -1
  124. package/dist/review/index.js +1 -1
  125. package/dist/safety/confirm-gate.js +1 -1
  126. package/dist/schema/benchmark-migration/index.d.ts +135 -10
  127. package/dist/schema/benchmark-migration/index.js +1 -1
  128. package/dist/schema/call/allocation.d.ts +3 -0
  129. package/dist/schema/call/allocation.js +1 -1
  130. package/dist/schema/call/arbitration.js +1 -1
  131. package/dist/schema/call/base.d.ts +32 -0
  132. package/dist/schema/call/bridge.d.ts +8 -0
  133. package/dist/schema/call/error-codes.d.ts +1 -1
  134. package/dist/schema/call/error-codes.js +1 -1
  135. package/dist/schema/call/order.js +1 -1
  136. package/dist/schema/call/reward.d.ts +10 -0
  137. package/dist/schema/call/reward.js +1 -1
  138. package/dist/schema/call/semantic.js +1 -1
  139. package/dist/schema/call/service.js +1 -1
  140. package/dist/schema/common/index.js +1 -1
  141. package/dist/schema/config/index.d.ts +24 -0
  142. package/dist/schema/config/index.js +1 -1
  143. package/dist/schema/evaluation/index.d.ts +152 -0
  144. package/dist/schema/evaluation/index.js +1 -1
  145. package/dist/schema/goal/index.d.ts +16 -0
  146. package/dist/schema/goal/planning.d.ts +29 -0
  147. package/dist/schema/goal/planning.js +1 -1
  148. package/dist/schema/industry-pack/index.d.ts +70 -0
  149. package/dist/schema/industry-pack/modes.d.ts +70 -0
  150. package/dist/schema/industry-pack/modes.js +1 -1
  151. package/dist/schema/intent-radar/index.d.ts +3 -0
  152. package/dist/schema/intent-radar/index.js +1 -1
  153. package/dist/schema/local/index.d.ts +80 -0
  154. package/dist/schema/local/index.js +1 -1
  155. package/dist/schema/messenger/index.d.ts +278 -1
  156. package/dist/schema/messenger/index.js +1 -1
  157. package/dist/schema/operations.d.ts +6 -0
  158. package/dist/schema/query/bi.d.ts +38 -0
  159. package/dist/schema/query/bi.js +1 -1
  160. package/dist/schema/query/index.d.ts +148 -47
  161. package/dist/schema/query/index.js +1 -1
  162. package/dist/schema/schema-version.js +1 -1
  163. package/dist/schema/service-clone/index.d.ts +17 -0
  164. package/dist/schema/service-clone/index.js +1 -1
  165. package/dist/schema-query-impl/index.js +1 -1
  166. package/dist/schemas/account_operation.output.json +8 -0
  167. package/dist/schemas/benchmark_migration_operation.output.json +296 -2
  168. package/dist/schemas/benchmark_migration_operation.schema.json +292 -7
  169. package/dist/schemas/bridge_operation.output.json +8 -0
  170. package/dist/schemas/config_operation.output.json +95 -0
  171. package/dist/schemas/config_operation.schema.json +16 -1
  172. package/dist/schemas/evaluation_operation.output.json +240 -0
  173. package/dist/schemas/evaluation_operation.schema.json +397 -1
  174. package/dist/schemas/goal_operation.schema.json +40 -10
  175. package/dist/schemas/index.json +1 -1
  176. package/dist/schemas/industry_pack_operation.output.json +90 -2
  177. package/dist/schemas/industry_pack_operation.schema.json +236 -0
  178. package/dist/schemas/intent_radar.output.json +2 -0
  179. package/dist/schemas/intent_radar.schema.json +1 -0
  180. package/dist/schemas/local_cache_operation.output.json +8 -0
  181. package/dist/schemas/local_history_operation.output.json +8 -0
  182. package/dist/schemas/local_info_operation.output.json +8 -0
  183. package/dist/schemas/local_mark_operation.output.json +8 -0
  184. package/dist/schemas/messenger_operation.output.json +609 -1
  185. package/dist/schemas/messenger_operation.schema.json +96 -1
  186. package/dist/schemas/onchain_events.output.json +281 -11
  187. package/dist/schemas/onchain_events.schema.json +5 -1
  188. package/dist/schemas/onchain_operations.output.json +8 -0
  189. package/dist/schemas/onchain_operations.schema.json +371 -10
  190. package/dist/schemas/onchain_operations_allocation.schema.json +10 -1
  191. package/dist/schemas/onchain_operations_arbitration.schema.json +1 -1
  192. package/dist/schemas/onchain_operations_guard.schema.json +318 -0
  193. package/dist/schemas/onchain_operations_order.schema.json +1 -1
  194. package/dist/schemas/onchain_operations_reward.schema.json +35 -1
  195. package/dist/schemas/onchain_operations_service.schema.json +6 -6
  196. package/dist/schemas/query_toolkit.output.json +305 -8
  197. package/dist/schemas/service_clone_operation.output.json +79 -0
  198. package/dist/tools/handlers/benchmark-migration.d.ts +15 -0
  199. package/dist/tools/handlers/benchmark-migration.js +1 -1
  200. package/dist/tools/handlers/config.js +1 -1
  201. package/dist/tools/handlers/evaluation.js +1 -1
  202. package/dist/tools/handlers/evaluation.spec.js +1 -1
  203. package/dist/tools/handlers/intent-radar.js +1 -1
  204. package/dist/tools/handlers/messenger.d.ts +1 -0
  205. package/dist/tools/handlers/messenger.js +1 -1
  206. package/dist/tools/handlers/onchain.d.ts +20 -1
  207. package/dist/tools/handlers/onchain.js +1 -1
  208. package/dist/tools/handlers/query.d.ts +1 -0
  209. package/dist/tools/handlers/query.js +1 -1
  210. package/dist/tools/handlers/service-clone.d.ts +18 -0
  211. package/dist/tools/handlers/service-clone.js +1 -1
  212. package/dist/tools/handlers/wip.js +1 -1
  213. package/dist/tools/registry/agent.js +1 -1
  214. package/dist/tools/registry/business.js +1 -1
  215. package/dist/tools/registry/query.js +1 -1
  216. package/dist/tools/wip-verify-ledger.d.ts +14 -0
  217. package/dist/tools/wip-verify-ledger.js +1 -0
  218. package/dist/tools/wrap.d.ts +4 -0
  219. package/dist/tools/wrap.js +1 -1
  220. package/package.json +2 -2
@@ -65,6 +65,13 @@
65
65
  "supplier",
66
66
  "both"
67
67
  ]
68
+ },
69
+ "tags": {
70
+ "type": "array",
71
+ "items": {
72
+ "type": "string"
73
+ },
74
+ "description": "Canonical discovery tags this template answers to (curated business-model tags + its variant slug). These are the tokens a Semantic IR `discovery.tags` entry may use."
68
75
  }
69
76
  },
70
77
  "required": [
@@ -75,13 +82,47 @@
75
82
  "key_risk",
76
83
  "node_count",
77
84
  "guard_count",
78
- "recommended_role"
85
+ "recommended_role",
86
+ "tags"
79
87
  ],
80
88
  "additionalProperties": false,
81
89
  "description": "Compact template listing row."
82
90
  },
83
91
  "description": "Template listing rows."
84
92
  },
93
+ "discovery_vocabulary": {
94
+ "type": "object",
95
+ "properties": {
96
+ "industries": {
97
+ "type": "array",
98
+ "items": {
99
+ "type": "string"
100
+ },
101
+ "description": "Registered industry names a Semantic IR discovery.industry may use."
102
+ },
103
+ "tags": {
104
+ "type": "array",
105
+ "items": {
106
+ "type": "string"
107
+ },
108
+ "description": "The CLOSED canonical discovery-tag vocabulary a Semantic IR discovery.tags entry may use."
109
+ },
110
+ "product_refs": {
111
+ "type": "array",
112
+ "items": {
113
+ "type": "string"
114
+ },
115
+ "description": "Benchmark-product slugs a Semantic IR discovery.product_ref may use."
116
+ }
117
+ },
118
+ "required": [
119
+ "industries",
120
+ "tags",
121
+ "product_refs"
122
+ ],
123
+ "additionalProperties": false,
124
+ "description": "The closed, language-neutral vocabulary for Semantic IR discovery evidence — callers translate into these tokens; the server drops anything else and reports it."
125
+ },
85
126
  "load_errors": {
86
127
  "type": "array",
87
128
  "items": {
@@ -94,6 +135,7 @@
94
135
  "action",
95
136
  "count",
96
137
  "templates",
138
+ "discovery_vocabulary",
97
139
  "load_errors"
98
140
  ],
99
141
  "additionalProperties": false
@@ -130,6 +172,17 @@
130
172
  "template_id": {
131
173
  "type": "string"
132
174
  },
175
+ "semantic_ir_digest": {
176
+ "description": "sha256 of the frozen Semantic IR artifact (present only when semantic_ir was supplied).",
177
+ "type": "string"
178
+ },
179
+ "semantic_ir_issues": {
180
+ "description": "IR claims dropped/clamped/conflicting during validation (unknown vocabulary, inverted span, sub-threshold confidence).",
181
+ "type": "array",
182
+ "items": {
183
+ "type": "string"
184
+ }
185
+ },
133
186
  "scan": {
134
187
  "type": "object",
135
188
  "properties": {
@@ -223,6 +276,42 @@
223
276
  "additionalProperties": {},
224
277
  "description": "Creation plan from the merchant-guide pipeline (never executed on-chain)."
225
278
  },
279
+ "stale_build": {
280
+ "type": "object",
281
+ "properties": {
282
+ "stale": {
283
+ "type": "boolean",
284
+ "description": "4R-01 residual: true only when the shared src-vs-dist mtime detector RESOLVED and found the running dist OLDER than the workspace src — the scan/plan verdicts may describe superseded template knowledge."
285
+ },
286
+ "known": {
287
+ "type": "boolean",
288
+ "description": "False when the detector could not resolve (installed dist-only package, build in progress, stat error). stale is then NOT evidence of freshness — treat verdicts as unconfirmed. Fail-open: never an error."
289
+ },
290
+ "lag_minutes": {
291
+ "anyOf": [
292
+ {
293
+ "type": "number"
294
+ },
295
+ {
296
+ "type": "null"
297
+ }
298
+ ],
299
+ "description": "Whole minutes the newest compiled artifact lags the newest source file (null when unknown)."
300
+ },
301
+ "detail": {
302
+ "type": "string",
303
+ "description": "Human-readable freshness statement (src/dist mtime lag) with the rebuild remediation when stale."
304
+ }
305
+ },
306
+ "required": [
307
+ "stale",
308
+ "known",
309
+ "lag_minutes",
310
+ "detail"
311
+ ],
312
+ "additionalProperties": false,
313
+ "description": "Always-present stale-build disclosure on template_scan / template_generate (reuses computeSrcDistStaleness; no parallel detector)."
314
+ },
226
315
  "verdict": {
227
316
  "type": "object",
228
317
  "properties": {
@@ -253,6 +342,7 @@
253
342
  "template_id",
254
343
  "scan",
255
344
  "plan",
345
+ "stale_build",
256
346
  "verdict",
257
347
  "next_action"
258
348
  ],
@@ -337,11 +427,48 @@
337
427
  ],
338
428
  "additionalProperties": false,
339
429
  "description": "Full pre-deploy scan result."
430
+ },
431
+ "stale_build": {
432
+ "type": "object",
433
+ "properties": {
434
+ "stale": {
435
+ "type": "boolean",
436
+ "description": "4R-01 residual: true only when the shared src-vs-dist mtime detector RESOLVED and found the running dist OLDER than the workspace src — the scan/plan verdicts may describe superseded template knowledge."
437
+ },
438
+ "known": {
439
+ "type": "boolean",
440
+ "description": "False when the detector could not resolve (installed dist-only package, build in progress, stat error). stale is then NOT evidence of freshness — treat verdicts as unconfirmed. Fail-open: never an error."
441
+ },
442
+ "lag_minutes": {
443
+ "anyOf": [
444
+ {
445
+ "type": "number"
446
+ },
447
+ {
448
+ "type": "null"
449
+ }
450
+ ],
451
+ "description": "Whole minutes the newest compiled artifact lags the newest source file (null when unknown)."
452
+ },
453
+ "detail": {
454
+ "type": "string",
455
+ "description": "Human-readable freshness statement (src/dist mtime lag) with the rebuild remediation when stale."
456
+ }
457
+ },
458
+ "required": [
459
+ "stale",
460
+ "known",
461
+ "lag_minutes",
462
+ "detail"
463
+ ],
464
+ "additionalProperties": false,
465
+ "description": "Always-present stale-build disclosure on template_scan / template_generate (reuses computeSrcDistStaleness; no parallel detector)."
340
466
  }
341
467
  },
342
468
  "required": [
343
469
  "action",
344
- "scan"
470
+ "scan",
471
+ "stale_build"
345
472
  ],
346
473
  "additionalProperties": false
347
474
  },
@@ -380,6 +507,41 @@
380
507
  "additionalProperties": false,
381
508
  "description": "Migration source provenance."
382
509
  },
510
+ "template_match": {
511
+ "type": "object",
512
+ "properties": {
513
+ "source": {
514
+ "type": "string",
515
+ "enum": [
516
+ "explicit",
517
+ "product_ref",
518
+ "discovery_product_ref",
519
+ "discovery_tags",
520
+ "keywords",
521
+ "ir_industry_fallback",
522
+ "industry_leader"
523
+ ],
524
+ "description": "Which deterministic pass chose the template: 'explicit' = caller's template_id; 'product_ref' = a benchmark product named in the text; 'discovery_product_ref' = the Semantic IR resolved the benchmark product; 'discovery_tags' = the IR's canonical tags scored the variant; 'keywords' = English keyword scoring; 'ir_industry_fallback' = the IR proved the industry only; 'industry_leader' = an explicit industry hint with no match."
525
+ },
526
+ "confidence": {
527
+ "type": "number",
528
+ "description": "Match confidence 0-1 (only an exact benchmark-product hit is 1.0)."
529
+ },
530
+ "matched_tags": {
531
+ "description": "IR tags that hit this template (discovery_tags only).",
532
+ "type": "array",
533
+ "items": {
534
+ "type": "string"
535
+ }
536
+ }
537
+ },
538
+ "required": [
539
+ "source",
540
+ "confidence"
541
+ ],
542
+ "additionalProperties": false,
543
+ "description": "Template-match provenance — why this template, without re-running the matcher."
544
+ },
383
545
  "mapped": {
384
546
  "type": "array",
385
547
  "items": {
@@ -543,6 +705,7 @@
543
705
  },
544
706
  "required": [
545
707
  "source",
708
+ "template_match",
546
709
  "mapped",
547
710
  "unmapped",
548
711
  "manual_review",
@@ -555,6 +718,26 @@
555
718
  "additionalProperties": false,
556
719
  "description": "The structured migration log."
557
720
  },
721
+ "inference_source": {
722
+ "description": "Which layer resolved the industry: 'keywords' = English lexical match only; 'semantic_ir' = the caller's IR decided; 'semantic_ir+keywords' = both contributed. Present only when semantic_ir was supplied.",
723
+ "type": "string",
724
+ "enum": [
725
+ "keywords",
726
+ "semantic_ir",
727
+ "semantic_ir+keywords"
728
+ ]
729
+ },
730
+ "semantic_ir_digest": {
731
+ "description": "sha256 of the frozen Semantic IR artifact (present only when semantic_ir was supplied).",
732
+ "type": "string"
733
+ },
734
+ "semantic_ir_issues": {
735
+ "description": "IR claims dropped/clamped/conflicting during validation (unknown vocabulary, inverted span, sub-threshold confidence).",
736
+ "type": "array",
737
+ "items": {
738
+ "type": "string"
739
+ }
740
+ },
558
741
  "next_action": {
559
742
  "type": "string",
560
743
  "description": "Next chain step: run migration_review with this log (C6 — the chain is self-describing, no agent re-exploration)."
@@ -602,6 +785,41 @@
602
785
  "additionalProperties": false,
603
786
  "description": "Migration source provenance."
604
787
  },
788
+ "template_match": {
789
+ "type": "object",
790
+ "properties": {
791
+ "source": {
792
+ "type": "string",
793
+ "enum": [
794
+ "explicit",
795
+ "product_ref",
796
+ "discovery_product_ref",
797
+ "discovery_tags",
798
+ "keywords",
799
+ "ir_industry_fallback",
800
+ "industry_leader"
801
+ ],
802
+ "description": "Which deterministic pass chose the template: 'explicit' = caller's template_id; 'product_ref' = a benchmark product named in the text; 'discovery_product_ref' = the Semantic IR resolved the benchmark product; 'discovery_tags' = the IR's canonical tags scored the variant; 'keywords' = English keyword scoring; 'ir_industry_fallback' = the IR proved the industry only; 'industry_leader' = an explicit industry hint with no match."
803
+ },
804
+ "confidence": {
805
+ "type": "number",
806
+ "description": "Match confidence 0-1 (only an exact benchmark-product hit is 1.0)."
807
+ },
808
+ "matched_tags": {
809
+ "description": "IR tags that hit this template (discovery_tags only).",
810
+ "type": "array",
811
+ "items": {
812
+ "type": "string"
813
+ }
814
+ }
815
+ },
816
+ "required": [
817
+ "source",
818
+ "confidence"
819
+ ],
820
+ "additionalProperties": false,
821
+ "description": "Template-match provenance — why this template, without re-running the matcher."
822
+ },
605
823
  "mapped": {
606
824
  "type": "array",
607
825
  "items": {
@@ -765,6 +983,7 @@
765
983
  },
766
984
  "required": [
767
985
  "source",
986
+ "template_match",
768
987
  "mapped",
769
988
  "unmapped",
770
989
  "manual_review",
@@ -833,6 +1052,17 @@
833
1052
  "localnet"
834
1053
  ]
835
1054
  },
1055
+ "semantic_ir_digest": {
1056
+ "description": "sha256 of the frozen Semantic IR artifact (present only when semantic_ir was supplied).",
1057
+ "type": "string"
1058
+ },
1059
+ "semantic_ir_issues": {
1060
+ "description": "IR claims dropped/clamped/conflicting during validation (unknown vocabulary, inverted span, sub-threshold confidence).",
1061
+ "type": "array",
1062
+ "items": {
1063
+ "type": "string"
1064
+ }
1065
+ },
836
1066
  "scan": {
837
1067
  "type": "object",
838
1068
  "properties": {
@@ -961,6 +1191,70 @@
961
1191
  "next_action"
962
1192
  ],
963
1193
  "additionalProperties": false
1194
+ },
1195
+ {
1196
+ "type": "object",
1197
+ "properties": {
1198
+ "action": {
1199
+ "type": "string",
1200
+ "const": "plan_execute"
1201
+ },
1202
+ "completed": {
1203
+ "type": "boolean",
1204
+ "description": "True when EVERY step executed (store fully deployed)."
1205
+ },
1206
+ "steps": {
1207
+ "type": "array",
1208
+ "items": {
1209
+ "type": "object",
1210
+ "propertyNames": {
1211
+ "type": "string"
1212
+ },
1213
+ "additionalProperties": {}
1214
+ },
1215
+ "description": "Per-step results: { stepId, status: executed|failed|blocked, digest?, address?, error? }."
1216
+ },
1217
+ "outputs": {
1218
+ "type": "object",
1219
+ "propertyNames": {
1220
+ "type": "string"
1221
+ },
1222
+ "additionalProperties": {
1223
+ "type": "string"
1224
+ },
1225
+ "description": "step id -> created on-chain address (create steps). Feed back as previous_outputs when resuming."
1226
+ },
1227
+ "preflight": {
1228
+ "type": "object",
1229
+ "propertyNames": {
1230
+ "type": "string"
1231
+ },
1232
+ "additionalProperties": {},
1233
+ "description": "Freeze-gate audit the run was gated on (issues + findings)."
1234
+ },
1235
+ "readback": {
1236
+ "type": "object",
1237
+ "propertyNames": {
1238
+ "type": "string"
1239
+ },
1240
+ "additionalProperties": {},
1241
+ "description": "Post-execution conservation/readback checks."
1242
+ },
1243
+ "next_action": {
1244
+ "type": "string",
1245
+ "description": "One-click forwarding: deploy-complete guidance, or the resume recipe (completed_steps + previous_outputs) after a mid-run failure."
1246
+ }
1247
+ },
1248
+ "required": [
1249
+ "action",
1250
+ "completed",
1251
+ "steps",
1252
+ "outputs",
1253
+ "preflight",
1254
+ "readback",
1255
+ "next_action"
1256
+ ],
1257
+ "additionalProperties": false
964
1258
  }
965
1259
  ]
966
1260
  }