@wowok/agent-mcp 3.3.5 → 3.3.7

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 (243) hide show
  1. package/dist/chain-semantics/eval-order.d.ts +17 -0
  2. package/dist/chain-semantics/eval-order.js +1 -0
  3. package/dist/chain-semantics/field-capability.js +1 -1
  4. package/dist/chain-semantics/freeze-map.js +1 -1
  5. package/dist/chain-semantics/fund-flow.js +1 -1
  6. package/dist/chain-semantics/guard-verbs.js +1 -1
  7. package/dist/chain-semantics/index.d.ts +1 -0
  8. package/dist/chain-semantics/index.js +1 -1
  9. package/dist/chain-semantics/object-graph.js +1 -1
  10. package/dist/composition/audit.js +1 -1
  11. package/dist/composition/compile.d.ts +2 -1
  12. package/dist/composition/compile.js +1 -1
  13. package/dist/composition/materialize.js +1 -1
  14. package/dist/data/api/api.spec.d.ts +1 -0
  15. package/dist/data/api/api.spec.js +1 -0
  16. package/dist/data/api/cli.d.ts +1 -0
  17. package/dist/data/api/cli.js +1 -0
  18. package/dist/data/api/head.d.ts +16 -0
  19. package/dist/data/api/head.js +1 -0
  20. package/dist/data/api/head.spec.d.ts +1 -0
  21. package/dist/data/api/head.spec.js +1 -0
  22. package/dist/data/api/index.d.ts +2 -0
  23. package/dist/data/api/index.js +1 -0
  24. package/dist/data/api/match.d.ts +69 -0
  25. package/dist/data/api/match.js +1 -0
  26. package/dist/data/api/match.spec.d.ts +1 -0
  27. package/dist/data/api/match.spec.js +1 -0
  28. package/dist/data/api/server.d.ts +12 -0
  29. package/dist/data/api/server.js +1 -0
  30. package/dist/data/projection/cli.d.ts +1 -0
  31. package/dist/data/projection/cli.js +1 -0
  32. package/dist/data/projection/edges.d.ts +8 -0
  33. package/dist/data/projection/edges.js +1 -0
  34. package/dist/data/projection/edges.spec.d.ts +1 -0
  35. package/dist/data/projection/edges.spec.js +1 -0
  36. package/dist/data/projection/facets.d.ts +18 -0
  37. package/dist/data/projection/facets.js +1 -0
  38. package/dist/data/projection/facets.spec.d.ts +1 -0
  39. package/dist/data/projection/facets.spec.js +1 -0
  40. package/dist/data/projection/facts.d.ts +40 -0
  41. package/dist/data/projection/facts.js +1 -0
  42. package/dist/data/projection/index.d.ts +6 -0
  43. package/dist/data/projection/index.js +1 -0
  44. package/dist/data/projection/project.d.ts +10 -0
  45. package/dist/data/projection/project.js +1 -0
  46. package/dist/data/projection/projection.spec.d.ts +1 -0
  47. package/dist/data/projection/projection.spec.js +1 -0
  48. package/dist/data/projection/schema.d.ts +1 -0
  49. package/dist/data/projection/schema.js +1 -0
  50. package/dist/data/projection/store.d.ts +49 -0
  51. package/dist/data/projection/store.js +1 -0
  52. package/dist/data/projection/types.d.ts +137 -0
  53. package/dist/data/projection/types.js +1 -0
  54. package/dist/data/sync/cdc.d.ts +34 -0
  55. package/dist/data/sync/cdc.js +1 -0
  56. package/dist/data/sync/cdc.spec.d.ts +1 -0
  57. package/dist/data/sync/cdc.spec.js +1 -0
  58. package/dist/data/sync/graphql-source.d.ts +16 -0
  59. package/dist/data/sync/graphql-source.js +1 -0
  60. package/dist/data/sync/index.d.ts +5 -0
  61. package/dist/data/sync/index.js +1 -0
  62. package/dist/data/sync/reconciler.d.ts +14 -0
  63. package/dist/data/sync/reconciler.js +1 -0
  64. package/dist/data/sync/reconciler.spec.d.ts +1 -0
  65. package/dist/data/sync/reconciler.spec.js +1 -0
  66. package/dist/data/sync/schema.d.ts +1 -0
  67. package/dist/data/sync/schema.js +1 -0
  68. package/dist/data/sync/store.d.ts +19 -0
  69. package/dist/data/sync/store.js +1 -0
  70. package/dist/data/sync/sync.spec.d.ts +1 -0
  71. package/dist/data/sync/sync.spec.js +1 -0
  72. package/dist/data/sync/synchronizer.d.ts +10 -0
  73. package/dist/data/sync/synchronizer.js +1 -0
  74. package/dist/data/sync/types.d.ts +162 -0
  75. package/dist/data/sync/types.js +1 -0
  76. package/dist/evaluation/builtins/demand-match.js +1 -1
  77. package/dist/evaluation/builtins/graph-service.spec.js +1 -1
  78. package/dist/evaluation/capability.d.ts +1 -0
  79. package/dist/evaluation/engine.js +1 -1
  80. package/dist/evaluation/extract.d.ts +7 -1
  81. package/dist/evaluation/extract.js +1 -1
  82. package/dist/evaluation/match-policy.d.ts +142 -0
  83. package/dist/evaluation/match-policy.js +1 -0
  84. package/dist/evaluation/match-policy.spec.d.ts +1 -0
  85. package/dist/evaluation/match-policy.spec.js +1 -0
  86. package/dist/experience/realtime-feedback.js +1 -1
  87. package/dist/extensions/business-modules.js +1 -1
  88. package/dist/graph/onchain/expand.js +1 -1
  89. package/dist/graph/onchain/exposure.js +1 -1
  90. package/dist/harness/recover.js +1 -1
  91. package/dist/intent/types.d.ts +1 -1
  92. package/dist/intent/types.js +1 -1
  93. package/dist/keeper/detectors.d.ts +3 -0
  94. package/dist/keeper/detectors.js +1 -1
  95. package/dist/keeper/keeper.spec.js +1 -1
  96. package/dist/knowledge/allocator-rail-verifier.js +1 -1
  97. package/dist/knowledge/arbitration-ledger.js +1 -1
  98. package/dist/knowledge/audit-rules.js +1 -1
  99. package/dist/knowledge/baselines/rules/plan.json +113 -3
  100. package/dist/knowledge/builtin-templates.d.ts +6 -1
  101. package/dist/knowledge/builtin-templates.js +1 -1
  102. package/dist/knowledge/event-semantics.js +1 -1
  103. package/dist/knowledge/getting-started.js +1 -1
  104. package/dist/knowledge/guard-design-patterns.d.ts +1 -1
  105. package/dist/knowledge/guard-design-patterns.js +1 -1
  106. package/dist/knowledge/guard-ledger.js +1 -1
  107. package/dist/knowledge/guard-puzzle.js +1 -1
  108. package/dist/knowledge/guard-render.js +1 -1
  109. package/dist/knowledge/guard-risk.js +1 -1
  110. package/dist/knowledge/guard-templates.d.ts +1 -1
  111. package/dist/knowledge/guard-templates.js +1 -1
  112. package/dist/knowledge/guard-translation.js +1 -1
  113. package/dist/knowledge/index.js +1 -1
  114. package/dist/knowledge/industry-generalizer.d.ts +4 -0
  115. package/dist/knowledge/industry-generalizer.js +1 -1
  116. package/dist/knowledge/industry-registry.js +1 -1
  117. package/dist/knowledge/jsonrpc-enum.d.ts +26 -10
  118. package/dist/knowledge/jsonrpc-enum.js +1 -1
  119. package/dist/knowledge/projection.d.ts +54 -0
  120. package/dist/knowledge/projection.js +1 -0
  121. package/dist/knowledge/projection.spec.d.ts +1 -0
  122. package/dist/knowledge/projection.spec.js +1 -0
  123. package/dist/knowledge/recipient-constraint.d.ts +1 -1
  124. package/dist/knowledge/recipient-constraint.js +1 -1
  125. package/dist/knowledge/semantic-ir.d.ts +113 -0
  126. package/dist/knowledge/semantic-ir.js +1 -0
  127. package/dist/knowledge/service-ledger.d.ts +1 -1
  128. package/dist/knowledge/service-ledger.js +1 -1
  129. package/dist/knowledge/strategy-manuals.js +1 -1
  130. package/dist/knowledge/template-loader.d.ts +34 -0
  131. package/dist/knowledge/template-loader.js +1 -1
  132. package/dist/knowledge/template-prose.d.ts +50 -0
  133. package/dist/knowledge/template-prose.js +1 -0
  134. package/dist/knowledge/template-registry.js +1 -1
  135. package/dist/knowledge/template-scanner.d.ts +1 -1
  136. package/dist/knowledge/template-scanner.js +1 -1
  137. package/dist/knowledge/tools-reference.js +1 -1
  138. package/dist/monitor/MonitorLoop.js +1 -1
  139. package/dist/monitor/normalize.d.ts +1 -1
  140. package/dist/monitor/normalize.js +1 -1
  141. package/dist/monitor/types.js +1 -1
  142. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  143. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  144. package/dist/playbooks/service-build/merchant-guide.d.ts +4 -0
  145. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  146. package/dist/playbooks/service-build/migration-planner.d.ts +2 -1
  147. package/dist/playbooks/service-build/migration-planner.js +1 -1
  148. package/dist/playbooks/service-build/mode-actions.d.ts +7 -0
  149. package/dist/playbooks/service-build/mode-actions.js +1 -1
  150. package/dist/playbooks/service-build/object-panorama.d.ts +22 -1
  151. package/dist/playbooks/service-build/object-panorama.js +1 -1
  152. package/dist/playbooks/service-build/participation-radar.js +1 -1
  153. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  154. package/dist/playbooks/service-build/reverse-mapping-nk4.spec.js +1 -1
  155. package/dist/playbooks/service-build/reverse-mapping.d.ts +1 -0
  156. package/dist/playbooks/service-build/reverse-mapping.js +1 -1
  157. package/dist/playbooks/service-build/service-panorama.js +1 -1
  158. package/dist/playbooks/service-build/service-quote.js +1 -1
  159. package/dist/playbooks/service-build/service-quote.spec.js +1 -1
  160. package/dist/review/index.js +1 -1
  161. package/dist/role/profiles.js +1 -1
  162. package/dist/safety/confirm-gate.js +1 -1
  163. package/dist/schema/benchmark-migration/index.d.ts +64 -10
  164. package/dist/schema/benchmark-migration/index.js +1 -1
  165. package/dist/schema/call/allocation.js +1 -1
  166. package/dist/schema/call/arbitration.js +1 -1
  167. package/dist/schema/call/base.d.ts +8 -0
  168. package/dist/schema/call/bridge.d.ts +2 -0
  169. package/dist/schema/call/error-codes.d.ts +1 -1
  170. package/dist/schema/call/error-codes.js +1 -1
  171. package/dist/schema/call/proof.js +1 -1
  172. package/dist/schema/call/reward.d.ts +10 -0
  173. package/dist/schema/call/reward.js +1 -1
  174. package/dist/schema/call/semantic.js +1 -1
  175. package/dist/schema/call/service.js +1 -1
  176. package/dist/schema/common/index.js +1 -1
  177. package/dist/schema/evaluation/index.d.ts +341 -0
  178. package/dist/schema/evaluation/index.js +1 -1
  179. package/dist/schema/goal/index.d.ts +2 -0
  180. package/dist/schema/goal/planning.d.ts +3 -0
  181. package/dist/schema/goal/planning.js +1 -1
  182. package/dist/schema/industry-pack/index.d.ts +62 -0
  183. package/dist/schema/industry-pack/modes.d.ts +62 -0
  184. package/dist/schema/industry-pack/modes.js +1 -1
  185. package/dist/schema/intent-radar/index.d.ts +3 -0
  186. package/dist/schema/intent-radar/index.js +1 -1
  187. package/dist/schema/local/index.d.ts +20 -0
  188. package/dist/schema/local/index.js +1 -1
  189. package/dist/schema/operations.d.ts +5 -0
  190. package/dist/schema/query/bi.d.ts +4 -0
  191. package/dist/schema/query/bi.js +1 -1
  192. package/dist/schema/query/index.d.ts +145 -47
  193. package/dist/schema/query/index.js +1 -1
  194. package/dist/schema/schema-version.js +1 -1
  195. package/dist/schema-query-impl/index.js +1 -1
  196. package/dist/schemas/account_operation.output.json +2 -0
  197. package/dist/schemas/benchmark_migration_operation.output.json +42 -0
  198. package/dist/schemas/benchmark_migration_operation.schema.json +208 -5
  199. package/dist/schemas/bridge_operation.output.json +2 -0
  200. package/dist/schemas/evaluation_operation.output.json +624 -2
  201. package/dist/schemas/evaluation_operation.schema.json +598 -4
  202. package/dist/schemas/goal_operation.schema.json +18 -10
  203. package/dist/schemas/index.json +1 -1
  204. package/dist/schemas/industry_pack_operation.output.json +86 -2
  205. package/dist/schemas/industry_pack_operation.schema.json +199 -0
  206. package/dist/schemas/intent_radar.output.json +2 -0
  207. package/dist/schemas/intent_radar.schema.json +1 -0
  208. package/dist/schemas/local_cache_operation.output.json +2 -0
  209. package/dist/schemas/local_history_operation.output.json +2 -0
  210. package/dist/schemas/local_info_operation.output.json +2 -0
  211. package/dist/schemas/local_mark_operation.output.json +2 -0
  212. package/dist/schemas/onchain_events.output.json +281 -11
  213. package/dist/schemas/onchain_events.schema.json +5 -1
  214. package/dist/schemas/onchain_operations.output.json +2 -0
  215. package/dist/schemas/onchain_operations.schema.json +914 -314
  216. package/dist/schemas/onchain_operations_allocation.schema.json +1 -1
  217. package/dist/schemas/onchain_operations_arbitration.schema.json +1 -1
  218. package/dist/schemas/onchain_operations_gen_proof.schema.json +1 -1
  219. package/dist/schemas/onchain_operations_guard.schema.json +660 -94
  220. package/dist/schemas/onchain_operations_reward.schema.json +35 -1
  221. package/dist/schemas/onchain_operations_service.schema.json +4 -4
  222. package/dist/schemas/query_toolkit.output.json +333 -0
  223. package/dist/tools/handlers/benchmark-migration.d.ts +5 -2
  224. package/dist/tools/handlers/benchmark-migration.js +1 -1
  225. package/dist/tools/handlers/config.js +1 -1
  226. package/dist/tools/handlers/evaluation.js +1 -1
  227. package/dist/tools/handlers/evaluation.spec.js +1 -1
  228. package/dist/tools/handlers/intent-radar.js +1 -1
  229. package/dist/tools/handlers/messenger.d.ts +1 -0
  230. package/dist/tools/handlers/messenger.js +1 -1
  231. package/dist/tools/handlers/onchain.d.ts +2 -0
  232. package/dist/tools/handlers/onchain.js +1 -1
  233. package/dist/tools/handlers/query.js +1 -1
  234. package/dist/tools/handlers/wip.js +1 -1
  235. package/dist/tools/index.js +1 -1
  236. package/dist/tools/registry/agent.js +1 -1
  237. package/dist/tools/registry/business.js +1 -1
  238. package/dist/tools/registry/query.js +1 -1
  239. package/dist/tools/wip-verify-ledger.d.ts +14 -0
  240. package/dist/tools/wip-verify-ledger.js +1 -0
  241. package/dist/tools/wrap.d.ts +4 -0
  242. package/dist/tools/wrap.js +1 -1
  243. package/package.json +7 -2
@@ -1583,6 +1583,48 @@
1583
1583
  "type": "boolean",
1584
1584
  "description": "True = enumeration truncated at max_objects (partial universe)."
1585
1585
  },
1586
+ "coverage": {
1587
+ "type": "object",
1588
+ "properties": {
1589
+ "mode": {
1590
+ "type": "string",
1591
+ "enum": [
1592
+ "chain_universe",
1593
+ "event_window",
1594
+ "known_objects"
1595
+ ]
1596
+ },
1597
+ "complete": {
1598
+ "type": "boolean"
1599
+ },
1600
+ "truncated": {
1601
+ "type": "boolean"
1602
+ },
1603
+ "total_enumerated": {
1604
+ "type": "integer",
1605
+ "minimum": 0,
1606
+ "maximum": 9007199254740991
1607
+ },
1608
+ "chain_id": {
1609
+ "type": "string"
1610
+ },
1611
+ "degraded_reasons": {
1612
+ "type": "array",
1613
+ "items": {
1614
+ "type": "string"
1615
+ }
1616
+ }
1617
+ },
1618
+ "required": [
1619
+ "mode",
1620
+ "complete",
1621
+ "truncated",
1622
+ "total_enumerated",
1623
+ "degraded_reasons"
1624
+ ],
1625
+ "additionalProperties": false,
1626
+ "description": "Honest enumeration scope; event_window is never a complete chain universe."
1627
+ },
1586
1628
  "scope_advice": {
1587
1629
  "type": "object",
1588
1630
  "properties": {
@@ -1612,6 +1654,7 @@
1612
1654
  "services",
1613
1655
  "total_enumerated",
1614
1656
  "has_more",
1657
+ "coverage",
1615
1658
  "scope_advice"
1616
1659
  ],
1617
1660
  "additionalProperties": false
@@ -1669,13 +1712,176 @@
1669
1712
  "has_more": {
1670
1713
  "type": "boolean",
1671
1714
  "description": "True = enumeration truncated at max_objects (partial universe)."
1715
+ },
1716
+ "coverage": {
1717
+ "type": "object",
1718
+ "properties": {
1719
+ "mode": {
1720
+ "type": "string",
1721
+ "enum": [
1722
+ "chain_universe",
1723
+ "event_window",
1724
+ "known_objects"
1725
+ ]
1726
+ },
1727
+ "complete": {
1728
+ "type": "boolean"
1729
+ },
1730
+ "truncated": {
1731
+ "type": "boolean"
1732
+ },
1733
+ "total_enumerated": {
1734
+ "type": "integer",
1735
+ "minimum": 0,
1736
+ "maximum": 9007199254740991
1737
+ },
1738
+ "chain_id": {
1739
+ "type": "string"
1740
+ },
1741
+ "degraded_reasons": {
1742
+ "type": "array",
1743
+ "items": {
1744
+ "type": "string"
1745
+ }
1746
+ }
1747
+ },
1748
+ "required": [
1749
+ "mode",
1750
+ "complete",
1751
+ "truncated",
1752
+ "total_enumerated",
1753
+ "degraded_reasons"
1754
+ ],
1755
+ "additionalProperties": false,
1756
+ "description": "Honest enumeration scope; event_window is never a complete chain universe."
1757
+ },
1758
+ "policy_effect": {
1759
+ "description": "Present only when a match_policy was supplied: the private-policy effect report for the gates applied in this stage (R4).",
1760
+ "type": "object",
1761
+ "properties": {
1762
+ "policy_id": {
1763
+ "type": "string"
1764
+ },
1765
+ "version": {
1766
+ "type": "integer",
1767
+ "minimum": 0,
1768
+ "maximum": 9007199254740991
1769
+ },
1770
+ "direction": {
1771
+ "type": "string",
1772
+ "enum": [
1773
+ "demand_to_supply",
1774
+ "supply_to_demand"
1775
+ ]
1776
+ },
1777
+ "policy_hash": {
1778
+ "type": "string",
1779
+ "description": "sha256 of the canonical policy JSON — local reproducibility fingerprint, never uploaded."
1780
+ },
1781
+ "unknown_policy": {
1782
+ "type": "string",
1783
+ "enum": [
1784
+ "pass",
1785
+ "drop",
1786
+ "neutral_score"
1787
+ ]
1788
+ },
1789
+ "dropped": {
1790
+ "type": "array",
1791
+ "items": {
1792
+ "type": "object",
1793
+ "properties": {
1794
+ "object": {
1795
+ "type": "string"
1796
+ },
1797
+ "reason": {
1798
+ "type": "string"
1799
+ }
1800
+ },
1801
+ "required": [
1802
+ "object",
1803
+ "reason"
1804
+ ],
1805
+ "additionalProperties": false
1806
+ },
1807
+ "description": "Candidates eliminated by a gate/exclude, each with its reason."
1808
+ },
1809
+ "unknown_kept": {
1810
+ "type": "array",
1811
+ "items": {
1812
+ "type": "object",
1813
+ "properties": {
1814
+ "object": {
1815
+ "type": "string"
1816
+ },
1817
+ "dim": {
1818
+ "type": "string"
1819
+ },
1820
+ "reason": {
1821
+ "type": "string"
1822
+ }
1823
+ },
1824
+ "required": [
1825
+ "object",
1826
+ "dim",
1827
+ "reason"
1828
+ ],
1829
+ "additionalProperties": false
1830
+ },
1831
+ "description": "Gate inputs that were missing; candidate kept under pass/neutral_score semantics (K5-05 axiom 3)."
1832
+ },
1833
+ "weights_applied": {
1834
+ "type": "object",
1835
+ "propertyNames": {
1836
+ "type": "string"
1837
+ },
1838
+ "additionalProperties": {
1839
+ "type": "number"
1840
+ },
1841
+ "description": "demand_match rule weights overridden by the policy."
1842
+ },
1843
+ "rerank": {
1844
+ "type": "string",
1845
+ "description": "Final private ordering in effect."
1846
+ },
1847
+ "deferred_by_diversity": {
1848
+ "type": "integer",
1849
+ "minimum": 0,
1850
+ "maximum": 9007199254740991
1851
+ },
1852
+ "ignored": {
1853
+ "type": "array",
1854
+ "items": {
1855
+ "type": "string"
1856
+ },
1857
+ "description": "Policy directives not enforceable in this build — reported, never silently dropped."
1858
+ },
1859
+ "privacy": {
1860
+ "type": "string"
1861
+ }
1862
+ },
1863
+ "required": [
1864
+ "policy_id",
1865
+ "direction",
1866
+ "policy_hash",
1867
+ "unknown_policy",
1868
+ "dropped",
1869
+ "unknown_kept",
1870
+ "weights_applied",
1871
+ "rerank",
1872
+ "deferred_by_diversity",
1873
+ "ignored",
1874
+ "privacy"
1875
+ ],
1876
+ "additionalProperties": false
1672
1877
  }
1673
1878
  },
1674
1879
  "required": [
1675
1880
  "action",
1676
1881
  "demands",
1677
1882
  "total_enumerated",
1678
- "has_more"
1883
+ "has_more",
1884
+ "coverage"
1679
1885
  ],
1680
1886
  "additionalProperties": false
1681
1887
  },
@@ -2015,13 +2221,176 @@
2015
2221
  "has_more": {
2016
2222
  "type": "boolean",
2017
2223
  "description": "True = enumeration truncated at max_objects (partial universe)."
2224
+ },
2225
+ "coverage": {
2226
+ "type": "object",
2227
+ "properties": {
2228
+ "mode": {
2229
+ "type": "string",
2230
+ "enum": [
2231
+ "chain_universe",
2232
+ "event_window",
2233
+ "known_objects"
2234
+ ]
2235
+ },
2236
+ "complete": {
2237
+ "type": "boolean"
2238
+ },
2239
+ "truncated": {
2240
+ "type": "boolean"
2241
+ },
2242
+ "total_enumerated": {
2243
+ "type": "integer",
2244
+ "minimum": 0,
2245
+ "maximum": 9007199254740991
2246
+ },
2247
+ "chain_id": {
2248
+ "type": "string"
2249
+ },
2250
+ "degraded_reasons": {
2251
+ "type": "array",
2252
+ "items": {
2253
+ "type": "string"
2254
+ }
2255
+ }
2256
+ },
2257
+ "required": [
2258
+ "mode",
2259
+ "complete",
2260
+ "truncated",
2261
+ "total_enumerated",
2262
+ "degraded_reasons"
2263
+ ],
2264
+ "additionalProperties": false,
2265
+ "description": "Honest enumeration scope; event_window is never a complete chain universe."
2266
+ },
2267
+ "policy_effect": {
2268
+ "description": "Present only when a match_policy was supplied: the full private-policy effect report (R4).",
2269
+ "type": "object",
2270
+ "properties": {
2271
+ "policy_id": {
2272
+ "type": "string"
2273
+ },
2274
+ "version": {
2275
+ "type": "integer",
2276
+ "minimum": 0,
2277
+ "maximum": 9007199254740991
2278
+ },
2279
+ "direction": {
2280
+ "type": "string",
2281
+ "enum": [
2282
+ "demand_to_supply",
2283
+ "supply_to_demand"
2284
+ ]
2285
+ },
2286
+ "policy_hash": {
2287
+ "type": "string",
2288
+ "description": "sha256 of the canonical policy JSON — local reproducibility fingerprint, never uploaded."
2289
+ },
2290
+ "unknown_policy": {
2291
+ "type": "string",
2292
+ "enum": [
2293
+ "pass",
2294
+ "drop",
2295
+ "neutral_score"
2296
+ ]
2297
+ },
2298
+ "dropped": {
2299
+ "type": "array",
2300
+ "items": {
2301
+ "type": "object",
2302
+ "properties": {
2303
+ "object": {
2304
+ "type": "string"
2305
+ },
2306
+ "reason": {
2307
+ "type": "string"
2308
+ }
2309
+ },
2310
+ "required": [
2311
+ "object",
2312
+ "reason"
2313
+ ],
2314
+ "additionalProperties": false
2315
+ },
2316
+ "description": "Candidates eliminated by a gate/exclude, each with its reason."
2317
+ },
2318
+ "unknown_kept": {
2319
+ "type": "array",
2320
+ "items": {
2321
+ "type": "object",
2322
+ "properties": {
2323
+ "object": {
2324
+ "type": "string"
2325
+ },
2326
+ "dim": {
2327
+ "type": "string"
2328
+ },
2329
+ "reason": {
2330
+ "type": "string"
2331
+ }
2332
+ },
2333
+ "required": [
2334
+ "object",
2335
+ "dim",
2336
+ "reason"
2337
+ ],
2338
+ "additionalProperties": false
2339
+ },
2340
+ "description": "Gate inputs that were missing; candidate kept under pass/neutral_score semantics (K5-05 axiom 3)."
2341
+ },
2342
+ "weights_applied": {
2343
+ "type": "object",
2344
+ "propertyNames": {
2345
+ "type": "string"
2346
+ },
2347
+ "additionalProperties": {
2348
+ "type": "number"
2349
+ },
2350
+ "description": "demand_match rule weights overridden by the policy."
2351
+ },
2352
+ "rerank": {
2353
+ "type": "string",
2354
+ "description": "Final private ordering in effect."
2355
+ },
2356
+ "deferred_by_diversity": {
2357
+ "type": "integer",
2358
+ "minimum": 0,
2359
+ "maximum": 9007199254740991
2360
+ },
2361
+ "ignored": {
2362
+ "type": "array",
2363
+ "items": {
2364
+ "type": "string"
2365
+ },
2366
+ "description": "Policy directives not enforceable in this build — reported, never silently dropped."
2367
+ },
2368
+ "privacy": {
2369
+ "type": "string"
2370
+ }
2371
+ },
2372
+ "required": [
2373
+ "policy_id",
2374
+ "direction",
2375
+ "policy_hash",
2376
+ "unknown_policy",
2377
+ "dropped",
2378
+ "unknown_kept",
2379
+ "weights_applied",
2380
+ "rerank",
2381
+ "deferred_by_diversity",
2382
+ "ignored",
2383
+ "privacy"
2384
+ ],
2385
+ "additionalProperties": false
2018
2386
  }
2019
2387
  },
2020
2388
  "required": [
2021
2389
  "action",
2022
2390
  "matches",
2023
2391
  "total_enumerated",
2024
- "has_more"
2392
+ "has_more",
2393
+ "coverage"
2025
2394
  ],
2026
2395
  "additionalProperties": false
2027
2396
  },
@@ -2447,6 +2816,14 @@
2447
2816
  },
2448
2817
  "description": "Keyword signals that drove sensitivity inference (empty when explicit)."
2449
2818
  },
2819
+ "match_route": {
2820
+ "description": "Candidate source: remote_index = one-shot /v1/match recall + public coarse scoring (K5-11 R3); legacy_enumeration = on-chain/GraphQL enumeration.",
2821
+ "type": "string",
2822
+ "enum": [
2823
+ "remote_index",
2824
+ "legacy_enumeration"
2825
+ ]
2826
+ },
2450
2827
  "matches": {
2451
2828
  "type": "array",
2452
2829
  "items": {
@@ -2807,6 +3184,88 @@
2807
3184
  "summary"
2808
3185
  ],
2809
3186
  "additionalProperties": false
3187
+ },
3188
+ "server_match": {
3189
+ "description": "Server-side public-baseline evaluation; present only on the remote_index route.",
3190
+ "type": "object",
3191
+ "properties": {
3192
+ "policy_version": {
3193
+ "type": "string",
3194
+ "description": "Frozen server policy that produced this evaluation (e.g. public-baseline-1)."
3195
+ },
3196
+ "total": {
3197
+ "type": "number",
3198
+ "minimum": 0,
3199
+ "maximum": 100,
3200
+ "description": "Weighted public score over non-unknown dimensions."
3201
+ },
3202
+ "breakdown": {
3203
+ "type": "array",
3204
+ "items": {
3205
+ "type": "object",
3206
+ "properties": {
3207
+ "dimension": {
3208
+ "type": "string"
3209
+ },
3210
+ "weight": {
3211
+ "type": "number"
3212
+ },
3213
+ "score": {
3214
+ "anyOf": [
3215
+ {
3216
+ "type": "number"
3217
+ },
3218
+ {
3219
+ "type": "null"
3220
+ }
3221
+ ],
3222
+ "description": "null = dimension unknown (see unknown_rules), never fabricated."
3223
+ }
3224
+ },
3225
+ "required": [
3226
+ "dimension",
3227
+ "weight",
3228
+ "score"
3229
+ ],
3230
+ "additionalProperties": false
3231
+ }
3232
+ },
3233
+ "unknown_rules": {
3234
+ "type": "array",
3235
+ "items": {
3236
+ "type": "string"
3237
+ },
3238
+ "description": "Dimensions withheld (incl. trust cold-start prior) — honesty ledger."
3239
+ },
3240
+ "red_flags": {
3241
+ "type": "array",
3242
+ "items": {
3243
+ "type": "string"
3244
+ },
3245
+ "description": "Deterministic warnings (price_over_budget, missing_capability:*)."
3246
+ },
3247
+ "channels": {
3248
+ "type": "array",
3249
+ "items": {
3250
+ "type": "string"
3251
+ },
3252
+ "description": "Recall channels that surfaced this candidate (structured, bm25)."
3253
+ },
3254
+ "rrf": {
3255
+ "type": "number",
3256
+ "description": "Reciprocal-rank fusion score across recall channels."
3257
+ }
3258
+ },
3259
+ "required": [
3260
+ "policy_version",
3261
+ "total",
3262
+ "breakdown",
3263
+ "unknown_rules",
3264
+ "red_flags",
3265
+ "channels",
3266
+ "rrf"
3267
+ ],
3268
+ "additionalProperties": false
2810
3269
  }
2811
3270
  },
2812
3271
  "required": [
@@ -2828,6 +3287,48 @@
2828
3287
  "type": "boolean",
2829
3288
  "description": "True = enumeration truncated at max_objects (partial universe)."
2830
3289
  },
3290
+ "coverage": {
3291
+ "type": "object",
3292
+ "properties": {
3293
+ "mode": {
3294
+ "type": "string",
3295
+ "enum": [
3296
+ "chain_universe",
3297
+ "event_window",
3298
+ "known_objects"
3299
+ ]
3300
+ },
3301
+ "complete": {
3302
+ "type": "boolean"
3303
+ },
3304
+ "truncated": {
3305
+ "type": "boolean"
3306
+ },
3307
+ "total_enumerated": {
3308
+ "type": "integer",
3309
+ "minimum": 0,
3310
+ "maximum": 9007199254740991
3311
+ },
3312
+ "chain_id": {
3313
+ "type": "string"
3314
+ },
3315
+ "degraded_reasons": {
3316
+ "type": "array",
3317
+ "items": {
3318
+ "type": "string"
3319
+ }
3320
+ }
3321
+ },
3322
+ "required": [
3323
+ "mode",
3324
+ "complete",
3325
+ "truncated",
3326
+ "total_enumerated",
3327
+ "degraded_reasons"
3328
+ ],
3329
+ "additionalProperties": false,
3330
+ "description": "Honest enumeration scope; event_window is never a complete chain universe."
3331
+ },
2831
3332
  "scope_advice": {
2832
3333
  "type": "object",
2833
3334
  "properties": {
@@ -2846,6 +3347,126 @@
2846
3347
  "ai_enrichment_note"
2847
3348
  ],
2848
3349
  "additionalProperties": false
3350
+ },
3351
+ "policy_effect": {
3352
+ "description": "Present only when a match_policy was supplied: the full private-policy effect report (R4).",
3353
+ "type": "object",
3354
+ "properties": {
3355
+ "policy_id": {
3356
+ "type": "string"
3357
+ },
3358
+ "version": {
3359
+ "type": "integer",
3360
+ "minimum": 0,
3361
+ "maximum": 9007199254740991
3362
+ },
3363
+ "direction": {
3364
+ "type": "string",
3365
+ "enum": [
3366
+ "demand_to_supply",
3367
+ "supply_to_demand"
3368
+ ]
3369
+ },
3370
+ "policy_hash": {
3371
+ "type": "string",
3372
+ "description": "sha256 of the canonical policy JSON — local reproducibility fingerprint, never uploaded."
3373
+ },
3374
+ "unknown_policy": {
3375
+ "type": "string",
3376
+ "enum": [
3377
+ "pass",
3378
+ "drop",
3379
+ "neutral_score"
3380
+ ]
3381
+ },
3382
+ "dropped": {
3383
+ "type": "array",
3384
+ "items": {
3385
+ "type": "object",
3386
+ "properties": {
3387
+ "object": {
3388
+ "type": "string"
3389
+ },
3390
+ "reason": {
3391
+ "type": "string"
3392
+ }
3393
+ },
3394
+ "required": [
3395
+ "object",
3396
+ "reason"
3397
+ ],
3398
+ "additionalProperties": false
3399
+ },
3400
+ "description": "Candidates eliminated by a gate/exclude, each with its reason."
3401
+ },
3402
+ "unknown_kept": {
3403
+ "type": "array",
3404
+ "items": {
3405
+ "type": "object",
3406
+ "properties": {
3407
+ "object": {
3408
+ "type": "string"
3409
+ },
3410
+ "dim": {
3411
+ "type": "string"
3412
+ },
3413
+ "reason": {
3414
+ "type": "string"
3415
+ }
3416
+ },
3417
+ "required": [
3418
+ "object",
3419
+ "dim",
3420
+ "reason"
3421
+ ],
3422
+ "additionalProperties": false
3423
+ },
3424
+ "description": "Gate inputs that were missing; candidate kept under pass/neutral_score semantics (K5-05 axiom 3)."
3425
+ },
3426
+ "weights_applied": {
3427
+ "type": "object",
3428
+ "propertyNames": {
3429
+ "type": "string"
3430
+ },
3431
+ "additionalProperties": {
3432
+ "type": "number"
3433
+ },
3434
+ "description": "demand_match rule weights overridden by the policy."
3435
+ },
3436
+ "rerank": {
3437
+ "type": "string",
3438
+ "description": "Final private ordering in effect."
3439
+ },
3440
+ "deferred_by_diversity": {
3441
+ "type": "integer",
3442
+ "minimum": 0,
3443
+ "maximum": 9007199254740991
3444
+ },
3445
+ "ignored": {
3446
+ "type": "array",
3447
+ "items": {
3448
+ "type": "string"
3449
+ },
3450
+ "description": "Policy directives not enforceable in this build — reported, never silently dropped."
3451
+ },
3452
+ "privacy": {
3453
+ "type": "string"
3454
+ }
3455
+ },
3456
+ "required": [
3457
+ "policy_id",
3458
+ "direction",
3459
+ "policy_hash",
3460
+ "unknown_policy",
3461
+ "dropped",
3462
+ "unknown_kept",
3463
+ "weights_applied",
3464
+ "rerank",
3465
+ "deferred_by_diversity",
3466
+ "ignored",
3467
+ "privacy"
3468
+ ],
3469
+ "additionalProperties": false
2849
3470
  }
2850
3471
  },
2851
3472
  "required": [
@@ -2855,6 +3476,7 @@
2855
3476
  "matches",
2856
3477
  "total_enumerated",
2857
3478
  "has_more",
3479
+ "coverage",
2858
3480
  "scope_advice"
2859
3481
  ],
2860
3482
  "additionalProperties": false