xytara 3.1.16 → 3.2.0

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 (390) hide show
  1. package/README.md +120 -92
  2. package/RELEASE_NOTES.md +7 -3
  3. package/START_HERE.md +56 -224
  4. package/bin/xytara.js +21 -8
  5. package/client.js +79 -1
  6. package/lib/{delivery_receipt.js → delivery_receipt_verify.js} +14 -100
  7. package/package.json +25 -35
  8. package/scripts/verify_client.js +418 -0
  9. package/scripts/verify_release_candidate.js +146 -45
  10. package/.env.example +0 -173
  11. package/ADAPTER_START_HERE.md +0 -56
  12. package/BSV_TERANODE_PLATFORM_DISCONTINUITY_RUNBOOK.md +0 -126
  13. package/CARRIED_HANDOFF_DEMO.md +0 -60
  14. package/EXAMPLE_PATHS.md +0 -53
  15. package/FINAL_CONTRACT.md +0 -498
  16. package/PARTNER_READY_PATH.md +0 -71
  17. package/PUBLIC_DEMO_SCRIPT.md +0 -78
  18. package/REAL_PAYMENT_SETUP.md +0 -320
  19. package/SERVICE_CONTRACT.md +0 -419
  20. package/SUPABASE_RUNTIME_STATE_SETUP.md +0 -61
  21. package/TERMINOLOGY.md +0 -50
  22. package/WHY_XYTARA_XOONYA.md +0 -63
  23. package/XT1_EXECUTION_TRUTH_STANDARD.md +0 -78
  24. package/XYTARA_ADAPTER_PROTOCOL_TRUTH_MODEL.md +0 -75
  25. package/XYTARA_AUTONOMOUS_ENTRY_MODEL.md +0 -124
  26. package/XYTARA_DEFAULT_PATH_MODEL.md +0 -84
  27. package/XYTARA_EXECUTION_TRUTH_MODEL.md +0 -171
  28. package/XYTARA_PAYMENT_RAIL_TRUTH_MODEL.md +0 -68
  29. package/adapters/AUTHORING_GUIDE.md +0 -244
  30. package/adapters/ONBOARDING_POSTURE.md +0 -61
  31. package/adapters/THIRD_PARTY_SUBMISSION_PROCESS.md +0 -84
  32. package/adapters/adapter-manifest.schema.json +0 -283
  33. package/adapters/examples/example-execution-adapter.js +0 -61
  34. package/adapters/examples/example-execution-adapter.manifest.json +0 -81
  35. package/adapters/examples/example-settlement-adapter.js +0 -55
  36. package/adapters/examples/example-settlement-adapter.manifest.json +0 -78
  37. package/adapters/examples/example-third-party-acp-registration.submission-bundle.json +0 -124
  38. package/adapters/examples/example-third-party-erc8004-registration.submission-bundle.json +0 -121
  39. package/adapters/examples/example-third-party-identity-registration.certification-pack.json +0 -22
  40. package/adapters/examples/example-third-party-identity-registration.record.json +0 -26
  41. package/adapters/examples/example-third-party-identity-registration.submission-bundle.json +0 -126
  42. package/adapters/examples/example-third-party-langchain-registration.submission-bundle.json +0 -124
  43. package/adapters/examples/example-third-party-mpp-registration.submission-bundle.json +0 -120
  44. package/adapters/examples/example-third-party-registration.certification-pack.json +0 -22
  45. package/adapters/examples/example-third-party-registration.record.json +0 -28
  46. package/adapters/examples/example-third-party-registration.submission-bundle.json +0 -126
  47. package/adapters/examples/example-third-party-settlement-registration.certification-pack.json +0 -22
  48. package/adapters/examples/example-third-party-settlement-registration.record.json +0 -26
  49. package/adapters/examples/example-third-party-settlement-registration.submission-bundle.json +0 -127
  50. package/adapters/examples/langchain-reference-execution-adapter.js +0 -81
  51. package/adapters/examples/langchain-reference-execution-adapter.manifest.json +0 -79
  52. package/adapters/examples/langgraph-reference-execution-adapter.js +0 -81
  53. package/adapters/examples/langgraph-reference-execution-adapter.manifest.json +0 -79
  54. package/adapters/examples/minimal-third-party-execution-adapter.js +0 -61
  55. package/adapters/examples/minimal-third-party-execution-adapter.manifest.json +0 -79
  56. package/adapters/examples/minimal-third-party-execution-registration.record.json +0 -26
  57. package/adapters/examples/minimal-third-party-execution.certification-pack.json +0 -22
  58. package/adapters/examples/minimal-third-party-execution.submission-bundle.json +0 -126
  59. package/adapters/integration-certification-pack.schema.json +0 -82
  60. package/adapters/integration-registration-record.schema.json +0 -114
  61. package/adapters/integration-submission-bundle-set.schema.json +0 -39
  62. package/adapters/integration-submission-bundle.schema.json +0 -34
  63. package/adapters/interfaces.js +0 -56
  64. package/bin/xytara-release.js +0 -1429
  65. package/examples/_demo_env.js +0 -40
  66. package/examples/adapter_review_walkthrough.js +0 -54
  67. package/examples/export_carried_handoff.js +0 -81
  68. package/examples/funded_runtime_walkthrough.js +0 -71
  69. package/examples/partner_launch_walkthrough.js +0 -44
  70. package/examples/quickstart.js +0 -3256
  71. package/fixtures/catalog.js +0 -1156
  72. package/index.js +0 -395
  73. package/integrations/dispatch.js +0 -276
  74. package/integrations/registry-snapshot.schema.json +0 -36
  75. package/integrations/registry.js +0 -2261
  76. package/integrations/views.js +0 -28
  77. package/lib/a2a_lane_contract.js +0 -104
  78. package/lib/a2a_rpc.js +0 -287
  79. package/lib/a2c_lane_contract.js +0 -111
  80. package/lib/account_auth.js +0 -585
  81. package/lib/acp_lane_contract.js +0 -54
  82. package/lib/activity_audit_contract.js +0 -322
  83. package/lib/adapter_certification_contract.js +0 -130
  84. package/lib/adapter_depth_contract.js +0 -218
  85. package/lib/adapter_pack.js +0 -118
  86. package/lib/adapter_partner_pack.js +0 -89
  87. package/lib/adapter_promotion_pack.js +0 -89
  88. package/lib/adapter_protocol_truth_contract.js +0 -229
  89. package/lib/agent_identity.js +0 -162
  90. package/lib/announcement_pack.js +0 -61
  91. package/lib/artifact_distribution_lane_contract.js +0 -54
  92. package/lib/asyncapi_contract.js +0 -150
  93. package/lib/auth_interop_contract.js +0 -80
  94. package/lib/authority_binding_lifecycle_contract.js +0 -182
  95. package/lib/autonomous_entry_contract.js +0 -409
  96. package/lib/bolt_adapter.js +0 -187
  97. package/lib/bolt_lane_contract.js +0 -55
  98. package/lib/bolt_payment_front.js +0 -224
  99. package/lib/business_cockpit.js +0 -378
  100. package/lib/buyer_event_log.js +0 -230
  101. package/lib/buyer_safety_policy.js +0 -132
  102. package/lib/capability_execution_truth.js +0 -276
  103. package/lib/capability_registry.js +0 -633
  104. package/lib/catalog_contract.js +0 -966
  105. package/lib/catalog_family_model.js +0 -193
  106. package/lib/catalog_views.js +0 -55
  107. package/lib/cdp_jwt.js +0 -57
  108. package/lib/checkout_event_security.js +0 -142
  109. package/lib/checkout_processor_adapter.js +0 -217
  110. package/lib/cloudevents_contract.js +0 -80
  111. package/lib/command_flow.js +0 -911
  112. package/lib/commerce_artifacts.js +0 -591
  113. package/lib/commerce_authority.js +0 -449
  114. package/lib/commerce_bridge.js +0 -274
  115. package/lib/commerce_cases.js +0 -399
  116. package/lib/commerce_checkout.js +0 -509
  117. package/lib/commerce_coordination.js +0 -346
  118. package/lib/commerce_economics.js +0 -4017
  119. package/lib/commerce_identity.js +0 -578
  120. package/lib/commerce_quotes.js +0 -266
  121. package/lib/commerce_reports.js +0 -14461
  122. package/lib/commerce_runtime.js +0 -322
  123. package/lib/commerce_shell.js +0 -257
  124. package/lib/crypto_agility_matrix.js +0 -125
  125. package/lib/default_path_contract.js +0 -412
  126. package/lib/delivery_summary_contract.js +0 -95
  127. package/lib/ecosystem_entry.js +0 -64
  128. package/lib/erc8004_lane_contract.js +0 -65
  129. package/lib/event_system_lane_contract.js +0 -75
  130. package/lib/execution_dedupe.js +0 -86
  131. package/lib/execution_truth_contract.js +0 -234
  132. package/lib/external_credit_bridge.js +0 -142
  133. package/lib/external_execution_policy.js +0 -143
  134. package/lib/external_execution_runtime.js +0 -238
  135. package/lib/feature_control_lane_contract.js +0 -54
  136. package/lib/first_run_conversion_contract.js +0 -290
  137. package/lib/framework_lane_contract.js +0 -89
  138. package/lib/framework_provider_promotion.js +0 -235
  139. package/lib/full_catalog_contract.js +0 -525
  140. package/lib/go_live_operator_pack.js +0 -391
  141. package/lib/http_transport.js +0 -99
  142. package/lib/identity_auth.js +0 -175
  143. package/lib/identity_interop_contract.js +0 -82
  144. package/lib/integration_matrix_contract.js +0 -102
  145. package/lib/l402_adapter.js +0 -241
  146. package/lib/l402_lane_contract.js +0 -55
  147. package/lib/l402_payment_front.js +0 -265
  148. package/lib/launch_narrative.js +0 -53
  149. package/lib/lifecycle_continuity_contract.js +0 -115
  150. package/lib/machine_identity_registry_contract.js +0 -199
  151. package/lib/major_rails_lane_contract.js +0 -150
  152. package/lib/market_lane_contract.js +0 -467
  153. package/lib/market_lane_depth_contract.js +0 -182
  154. package/lib/market_lane_promotion_contract.js +0 -210
  155. package/lib/market_lane_trace_contract.js +0 -278
  156. package/lib/mcp_lane_contract.js +0 -137
  157. package/lib/mpp_adapter.js +0 -237
  158. package/lib/network_transport.js +0 -110
  159. package/lib/offline_verifiability_recovery_contract.js +0 -155
  160. package/lib/openapi_contract.js +0 -300
  161. package/lib/operational_receipt_contract.js +0 -165
  162. package/lib/operator_intelligence.js +0 -407
  163. package/lib/outreach_copy_pack.js +0 -51
  164. package/lib/outreach_message_pack.js +0 -71
  165. package/lib/outreach_proof.js +0 -71
  166. package/lib/outreach_target_pack.js +0 -60
  167. package/lib/partner_intelligence.js +0 -105
  168. package/lib/payment_config.js +0 -257
  169. package/lib/payment_front_registry.js +0 -53
  170. package/lib/payment_protocol_contract.js +0 -165
  171. package/lib/payment_rail_truth_contract.js +0 -324
  172. package/lib/payment_verification.js +0 -357
  173. package/lib/phase_10_closeout_pack.js +0 -45
  174. package/lib/phase_10_completion_pack.js +0 -76
  175. package/lib/phase_10_decision_record_pack.js +0 -54
  176. package/lib/phase_10_decision_resolution_pack.js +0 -53
  177. package/lib/phase_10_demand_signal_adapters_runtime_pack.js +0 -74
  178. package/lib/phase_10_ecosystem_backlog_triage_runtime_pack.js +0 -74
  179. package/lib/phase_10_freeze_baseline_pack.js +0 -67
  180. package/lib/phase_10_freeze_review_pack.js +0 -64
  181. package/lib/phase_10_gate_pack.js +0 -57
  182. package/lib/phase_10_long_tail_continuity_pack.js +0 -80
  183. package/lib/phase_10_long_tail_ecosystem_pack.js +0 -66
  184. package/lib/phase_10_niche_extension_registry_runtime_pack.js +0 -74
  185. package/lib/phase_1_claude_mcp_pack.js +0 -60
  186. package/lib/phase_1_claude_mcp_runtime_pack.js +0 -52
  187. package/lib/phase_1_ecosystem_pack.js +0 -67
  188. package/lib/phase_1_openai_codex_pack.js +0 -60
  189. package/lib/phase_1_openai_codex_runtime_pack.js +0 -52
  190. package/lib/phase_2_base_runtime_pack.js +0 -71
  191. package/lib/phase_2_base_usdc_runtime_pack.js +0 -72
  192. package/lib/phase_2_closeout_pack.js +0 -65
  193. package/lib/phase_2_completion_pack.js +0 -113
  194. package/lib/phase_2_decision_record_pack.js +0 -66
  195. package/lib/phase_2_decision_resolution_pack.js +0 -69
  196. package/lib/phase_2_eth_runtime_pack.js +0 -70
  197. package/lib/phase_2_evm_base_runtime_pack.js +0 -73
  198. package/lib/phase_2_evm_runtime_pack.js +0 -71
  199. package/lib/phase_2_flip_preview_pack.js +0 -60
  200. package/lib/phase_2_freeze_review_pack.js +0 -99
  201. package/lib/phase_2_gate_pack.js +0 -77
  202. package/lib/phase_2_payment_rails_pack.js +0 -71
  203. package/lib/phase_2_usdc_runtime_pack.js +0 -71
  204. package/lib/phase_3_brc_runtime_pack.js +0 -81
  205. package/lib/phase_3_bsv_teranode_runtime_pack.js +0 -83
  206. package/lib/phase_3_closeout_pack.js +0 -62
  207. package/lib/phase_3_completion_pack.js +0 -94
  208. package/lib/phase_3_decision_record_pack.js +0 -64
  209. package/lib/phase_3_decision_resolution_pack.js +0 -69
  210. package/lib/phase_3_freeze_baseline_pack.js +0 -67
  211. package/lib/phase_3_freeze_review_pack.js +0 -80
  212. package/lib/phase_3_gate_pack.js +0 -76
  213. package/lib/phase_3_metanet_runtime_pack.js +0 -81
  214. package/lib/phase_3_native_bsv_pack.js +0 -91
  215. package/lib/phase_3_native_continuity_pack.js +0 -82
  216. package/lib/phase_4_attestation_runtime_pack.js +0 -75
  217. package/lib/phase_4_closeout_pack.js +0 -45
  218. package/lib/phase_4_completion_pack.js +0 -94
  219. package/lib/phase_4_decision_record_pack.js +0 -54
  220. package/lib/phase_4_decision_resolution_pack.js +0 -45
  221. package/lib/phase_4_erc8004_runtime_pack.js +0 -76
  222. package/lib/phase_4_freeze_baseline_pack.js +0 -67
  223. package/lib/phase_4_freeze_review_pack.js +0 -68
  224. package/lib/phase_4_gate_pack.js +0 -58
  225. package/lib/phase_4_identity_registry_runtime_pack.js +0 -75
  226. package/lib/phase_4_identity_trust_pack.js +0 -73
  227. package/lib/phase_4_trust_continuity_pack.js +0 -86
  228. package/lib/phase_5_antelope_runtime_pack.js +0 -76
  229. package/lib/phase_5_closeout_pack.js +0 -44
  230. package/lib/phase_5_completion_pack.js +0 -82
  231. package/lib/phase_5_constellation_dag_runtime_pack.js +0 -76
  232. package/lib/phase_5_decision_record_pack.js +0 -54
  233. package/lib/phase_5_decision_resolution_pack.js +0 -45
  234. package/lib/phase_5_digibyte_dgb_runtime_pack.js +0 -76
  235. package/lib/phase_5_freeze_baseline_pack.js +0 -67
  236. package/lib/phase_5_freeze_review_pack.js +0 -68
  237. package/lib/phase_5_gate_pack.js +0 -58
  238. package/lib/phase_5_hedera_hbar_runtime_pack.js +0 -76
  239. package/lib/phase_5_kaspa_kas_runtime_pack.js +0 -76
  240. package/lib/phase_5_major_rails_continuity_pack.js +0 -86
  241. package/lib/phase_5_major_rails_pack.js +0 -110
  242. package/lib/phase_5_metal_runtime_pack.js +0 -76
  243. package/lib/phase_5_polkadot_dot_runtime_pack.js +0 -76
  244. package/lib/phase_5_proton_xpr_runtime_pack.js +0 -76
  245. package/lib/phase_5_solana_runtime_pack.js +0 -76
  246. package/lib/phase_6_autogen_runtime_pack.js +0 -72
  247. package/lib/phase_6_closeout_pack.js +0 -46
  248. package/lib/phase_6_completion_pack.js +0 -77
  249. package/lib/phase_6_decision_record_pack.js +0 -54
  250. package/lib/phase_6_decision_resolution_pack.js +0 -53
  251. package/lib/phase_6_framework_continuity_pack.js +0 -81
  252. package/lib/phase_6_framework_runtime_pack.js +0 -68
  253. package/lib/phase_6_freeze_baseline_pack.js +0 -68
  254. package/lib/phase_6_freeze_review_pack.js +0 -65
  255. package/lib/phase_6_gate_pack.js +0 -59
  256. package/lib/phase_6_langchain_runtime_pack.js +0 -72
  257. package/lib/phase_6_langgraph_runtime_pack.js +0 -72
  258. package/lib/phase_6_semantic_kernel_runtime_pack.js +0 -72
  259. package/lib/phase_7_closeout_pack.js +0 -45
  260. package/lib/phase_7_completion_pack.js +0 -85
  261. package/lib/phase_7_decision_record_pack.js +0 -53
  262. package/lib/phase_7_decision_resolution_pack.js +0 -53
  263. package/lib/phase_7_event_system_continuity_pack.js +0 -89
  264. package/lib/phase_7_event_system_pack.js +0 -76
  265. package/lib/phase_7_freeze_baseline_pack.js +0 -74
  266. package/lib/phase_7_freeze_review_pack.js +0 -65
  267. package/lib/phase_7_gate_pack.js +0 -58
  268. package/lib/phase_7_kafka_runtime_pack.js +0 -74
  269. package/lib/phase_7_mqtt_runtime_pack.js +0 -74
  270. package/lib/phase_7_nats_runtime_pack.js +0 -74
  271. package/lib/phase_7_webhook_event_bus_runtime_pack.js +0 -74
  272. package/lib/phase_8_closeout_pack.js +0 -46
  273. package/lib/phase_8_completion_pack.js +0 -82
  274. package/lib/phase_8_decision_record_pack.js +0 -54
  275. package/lib/phase_8_decision_resolution_pack.js +0 -53
  276. package/lib/phase_8_external_receipt_import_runtime_pack.js +0 -74
  277. package/lib/phase_8_external_result_import_runtime_pack.js +0 -74
  278. package/lib/phase_8_freeze_baseline_pack.js +0 -71
  279. package/lib/phase_8_freeze_review_pack.js +0 -64
  280. package/lib/phase_8_gate_pack.js +0 -58
  281. package/lib/phase_8_proof_bridge_continuity_pack.js +0 -86
  282. package/lib/phase_8_proof_bridges_pack.js +0 -72
  283. package/lib/phase_8_proof_bundle_normalization_runtime_pack.js +0 -74
  284. package/lib/phase_9_closeout_pack.js +0 -46
  285. package/lib/phase_9_completion_pack.js +0 -82
  286. package/lib/phase_9_custody_refs_runtime_pack.js +0 -74
  287. package/lib/phase_9_decision_record_pack.js +0 -54
  288. package/lib/phase_9_decision_resolution_pack.js +0 -53
  289. package/lib/phase_9_freeze_baseline_pack.js +0 -71
  290. package/lib/phase_9_freeze_review_pack.js +0 -64
  291. package/lib/phase_9_gate_pack.js +0 -58
  292. package/lib/phase_9_operator_accounting_bridges_runtime_pack.js +0 -74
  293. package/lib/phase_9_treasury_connectivity_pack.js +0 -72
  294. package/lib/phase_9_treasury_continuity_pack.js +0 -86
  295. package/lib/phase_9_treasury_destinations_runtime_pack.js +0 -74
  296. package/lib/phase_program_pack.js +0 -120
  297. package/lib/pricing_optimization_contract.js +0 -775
  298. package/lib/protocol_lane_contract.js +0 -117
  299. package/lib/provenance_lane_contract.js +0 -54
  300. package/lib/provider_lane_contract.js +0 -240
  301. package/lib/provider_network_contract.js +0 -149
  302. package/lib/provider_payout_execution.js +0 -155
  303. package/lib/provider_registry.js +0 -852
  304. package/lib/provider_runtime_journey_contract.js +0 -183
  305. package/lib/public_surface_policy_contract.js +0 -111
  306. package/lib/publish_plan.js +0 -51
  307. package/lib/rate_limiter.js +0 -81
  308. package/lib/record_queries.js +0 -48
  309. package/lib/release_candidate.js +0 -50
  310. package/lib/release_center.js +0 -1093
  311. package/lib/release_history.js +0 -205
  312. package/lib/release_manifest.js +0 -113
  313. package/lib/release_pack.js +0 -453
  314. package/lib/request_rate_limit.js +0 -144
  315. package/lib/resource_views.js +0 -31
  316. package/lib/revenue_launch_path_contract.js +0 -326
  317. package/lib/route_matchers.js +0 -34
  318. package/lib/route_params.js +0 -19
  319. package/lib/runtime_bridge.js +0 -124
  320. package/lib/runtime_operations_worker.js +0 -282
  321. package/lib/runtime_state_store.js +0 -495
  322. package/lib/settlement_bsv_live.js +0 -600
  323. package/lib/settlement_bsv_teranode.js +0 -117
  324. package/lib/settlement_lane_contract.js +0 -111
  325. package/lib/shared_signals_lane_contract.js +0 -54
  326. package/lib/signed_audit_provenance_contract.js +0 -83
  327. package/lib/soft_launch_pack.js +0 -78
  328. package/lib/stablecoin_lane_contract.js +0 -76
  329. package/lib/stripe_mpp_lane_contract.js +0 -96
  330. package/lib/stripe_mpp_payment_front.js +0 -258
  331. package/lib/telemetry_lane_contract.js +0 -54
  332. package/lib/treasury_destinations_contract.js +0 -764
  333. package/lib/treasury_egress_policy_contract.js +0 -91
  334. package/lib/treasury_lane_contract.js +0 -84
  335. package/lib/trust_portability_boundary_contract.js +0 -72
  336. package/lib/x402_facilitator.js +0 -198
  337. package/lib/x402_lane_contract.js +0 -136
  338. package/lib/x402_settlement_recovery.js +0 -175
  339. package/scripts/buyer_events_daily_report.js +0 -79
  340. package/scripts/registry_cli.js +0 -275
  341. package/scripts/state_backup_offsite.js +0 -196
  342. package/scripts/verify_a2a_rpc.js +0 -131
  343. package/scripts/verify_adapters.js +0 -554
  344. package/scripts/verify_agent_identity.js +0 -153
  345. package/scripts/verify_all.js +0 -4963
  346. package/scripts/verify_bolt_adapter.js +0 -128
  347. package/scripts/verify_buyer_event_log.js +0 -128
  348. package/scripts/verify_buyer_safety.js +0 -141
  349. package/scripts/verify_cdp_facilitator.js +0 -110
  350. package/scripts/verify_checkout_processor.js +0 -109
  351. package/scripts/verify_commerce_bridge.js +0 -177
  352. package/scripts/verify_control_plane_contracts.js +0 -34
  353. package/scripts/verify_control_plane_routes.js +0 -70
  354. package/scripts/verify_delivery_summary.js +0 -112
  355. package/scripts/verify_examples.js +0 -19
  356. package/scripts/verify_execution_dedupe.js +0 -189
  357. package/scripts/verify_execution_surfacing.js +0 -76
  358. package/scripts/verify_external_execution_retry.js +0 -140
  359. package/scripts/verify_final_activation.js +0 -191
  360. package/scripts/verify_first_run_conversions.js +0 -81
  361. package/scripts/verify_framework_provider_promotion.js +0 -152
  362. package/scripts/verify_full_catalog.js +0 -174
  363. package/scripts/verify_integrations.js +0 -620
  364. package/scripts/verify_l402_adapter.js +0 -86
  365. package/scripts/verify_lifecycle_continuity.js +0 -96
  366. package/scripts/verify_lifecycle_spend_binding.js +0 -88
  367. package/scripts/verify_market_lane_depth.js +0 -94
  368. package/scripts/verify_market_lane_promotion.js +0 -103
  369. package/scripts/verify_market_lane_traces.js +0 -98
  370. package/scripts/verify_market_lanes.js +0 -102
  371. package/scripts/verify_mpp_adapter.js +0 -128
  372. package/scripts/verify_operator_observability_boundary.js +0 -83
  373. package/scripts/verify_pricing_experiment_plan.js +0 -124
  374. package/scripts/verify_production_readiness.js +0 -268
  375. package/scripts/verify_provider_network.js +0 -819
  376. package/scripts/verify_provider_runtime_breadth.js +0 -109
  377. package/scripts/verify_provider_runtime_journeys.js +0 -111
  378. package/scripts/verify_rate_limiter.js +0 -52
  379. package/scripts/verify_refund_credit.js +0 -106
  380. package/scripts/verify_revenue_launch_paths.js +0 -105
  381. package/scripts/verify_runtime_durability.js +0 -52
  382. package/scripts/verify_runtime_state_guard.js +0 -117
  383. package/scripts/verify_service.js +0 -15421
  384. package/scripts/verify_settlement.js +0 -116
  385. package/scripts/verify_tooling.js +0 -1412
  386. package/scripts/verify_treasury_public_boundary.js +0 -97
  387. package/scripts/verify_verify_execute_settle.js +0 -209
  388. package/scripts/verify_x402_facilitator.js +0 -307
  389. package/scripts/verify_x402_settlement_recovery.js +0 -153
  390. package/server.js +0 -12245
@@ -1,182 +0,0 @@
1
- "use strict";
2
-
3
- const packageJson = require("../package.json");
4
- const { buildAdapterDepthPack } = require("./adapter_depth_contract");
5
- const { buildA2ALanePack, summarizeA2ALanePack } = require("./a2a_lane_contract");
6
- const { buildA2CLanePack, summarizeA2CLanePack } = require("./a2c_lane_contract");
7
- const { buildEventSystemLanePack, summarizeEventSystemLanePack } = require("./event_system_lane_contract");
8
- const { buildTreasuryLanePack, summarizeTreasuryLanePack } = require("./treasury_lane_contract");
9
- const { buildSettlementLanePack, summarizeSettlementLanePack } = require("./settlement_lane_contract");
10
- const { buildMarketLanePack, summarizeMarketLanePack } = require("./market_lane_contract");
11
-
12
- function uniqueSorted(values) {
13
- return Array.from(new Set((Array.isArray(values) ? values : []).filter(Boolean))).sort();
14
- }
15
-
16
- function buildMarketLaneDepthPack() {
17
- const adapterDepth = buildAdapterDepthPack();
18
- const marketLanePack = buildMarketLanePack();
19
- const marketLaneSummary = summarizeMarketLanePack();
20
- const laneByMarket = new Map((marketLanePack.market_lanes || []).map((entry) => [entry.market_class, entry]));
21
- const a2aPack = buildA2ALanePack();
22
- const a2aSummary = summarizeA2ALanePack();
23
- const a2cPack = buildA2CLanePack();
24
- const a2cSummary = summarizeA2CLanePack();
25
- const eventSystemPack = buildEventSystemLanePack();
26
- const eventSystemSummary = summarizeEventSystemLanePack();
27
- const treasuryPack = buildTreasuryLanePack();
28
- const treasurySummary = summarizeTreasuryLanePack();
29
- const settlementPack = buildSettlementLanePack();
30
- const settlementSummary = summarizeSettlementLanePack();
31
-
32
- const computeLane = laneByMarket.get("compute") || {};
33
- const messagingLane = laneByMarket.get("messaging") || {};
34
- const treasuryLane = laneByMarket.get("treasury_payments") || {};
35
-
36
- const laneDepths = [
37
- {
38
- market_class: "compute",
39
- market_label: "compute",
40
- depth_posture: "provider_live_anchor_plus_governed_commitment_flow",
41
- depth_state: adapterDepth.adapter_depth_state,
42
- claim_status: computeLane.claim_status || "bounded_live",
43
- provider_live_anchor_count: Number(computeLane.provider_live_task_refs?.length || 0),
44
- callable_surface_count: uniqueSorted(computeLane.call_surfaces || []).length,
45
- activation_profile_count: Number(computeLane.activation_profile_count || 0),
46
- supporting_lane_count: uniqueSorted(computeLane.supporting_lanes || []).length,
47
- supporting_depth_refs: uniqueSorted([
48
- "/v1/adapter-depth/summary",
49
- "/v1/capability-registry/execution-truth/summary",
50
- "/v1/frameworks/summary",
51
- "/v1/full-catalog/market-lanes/compute"
52
- ]),
53
- promotion_gates: {
54
- auth_ready: adapterDepth.public_claim_boundary.live_provider_claim_allowed,
55
- health_ready: Number(adapterDepth.counts.configured_execution_target_count || 0) >= 1,
56
- latency_ready: adapterDepth.adapter_tasks.every((entry) =>
57
- !entry.provider_live || entry.execution_targets.every((target) => Number(target.timeout_ms || 0) >= 500)
58
- ),
59
- proof_fact_ready: adapterDepth.adapter_tasks.some((entry) =>
60
- entry.task_ref === "adapter.mcp.invoke"
61
- && entry.execution_targets.some((target) => target.operational_coverage && target.operational_coverage.proof_fact_compatible)
62
- ),
63
- operator_evidence_ready: adapterDepth.adapter_tasks.some((entry) =>
64
- entry.task_ref === "adapter.mcp.invoke"
65
- && entry.execution_targets.some((target) => target.operational_coverage && target.operational_coverage.operator_health_surface)
66
- )
67
- },
68
- claim_boundary: "claim_compute_depth_only_for_the_listed_provider_live_anchor_and_governed_commitment_surfaces"
69
- },
70
- {
71
- market_class: "messaging",
72
- market_label: "messaging",
73
- depth_posture: "first_party_callable_session_negotiation_and_event_mesh_depth",
74
- depth_state: "first_party_callable_depth",
75
- claim_status: messagingLane.claim_status || "bounded_live",
76
- provider_live_anchor_count: Number(messagingLane.provider_live_task_refs?.length || 0),
77
- callable_surface_count: uniqueSorted(
78
- []
79
- .concat(messagingLane.call_surfaces || [])
80
- .concat(Object.values(a2aPack.supported_surfaces || {}))
81
- .concat(Object.values(a2cPack.supported_surfaces || {}))
82
- .concat(Object.values(eventSystemPack.supported_surfaces || {}))
83
- ).length,
84
- activation_profile_count: Number(messagingLane.activation_profile_count || 0),
85
- supporting_lane_count: uniqueSorted(messagingLane.supporting_lanes || []).length,
86
- supporting_depth_refs: uniqueSorted([
87
- "/v1/a2a/summary",
88
- "/v1/a2c/summary",
89
- "/v1/event-systems/summary",
90
- "/v1/full-catalog/market-lanes/messaging"
91
- ]),
92
- promotion_gates: {
93
- negotiate_ready: Number(a2aSummary.first_run_flow_count || 0) >= 2,
94
- session_ready: Number(a2cSummary.first_run_flow_count || 0) >= 2,
95
- event_mesh_ready: Number(eventSystemSummary.first_run_flow_count || 0) >= 1,
96
- protocol_depth_ready: uniqueSorted(messagingLane.supporting_lanes || []).length >= 6,
97
- callable_activation_ready: Number(messagingLane.activation_profile_count || 0) >= 2
98
- },
99
- claim_boundary: "claim_messaging_depth_only_for_a2a_a2c_and_listed_event_system_surfaces_without_implying_generic_bus_platform_truth"
100
- },
101
- {
102
- market_class: "treasury_payments",
103
- market_label: "treasury/payments",
104
- depth_posture: "first_party_treasury_connectivity_plus_callable_settlement_depth",
105
- depth_state: "settlement_callable_depth",
106
- claim_status: treasuryLane.claim_status || "bounded_live",
107
- provider_live_anchor_count: Number(treasuryLane.provider_live_task_refs?.length || 0),
108
- callable_surface_count: uniqueSorted(
109
- []
110
- .concat(treasuryLane.call_surfaces || [])
111
- .concat(Object.values(treasuryPack.supported_surfaces || {}))
112
- .concat(Object.values(settlementPack.supported_surfaces || {}))
113
- ).length,
114
- activation_profile_count: Number(treasuryLane.activation_profile_count || 0),
115
- supporting_lane_count: uniqueSorted(treasuryLane.supporting_lanes || []).length,
116
- supporting_depth_refs: uniqueSorted([
117
- "/v1/treasury/summary",
118
- "/v1/settlement/summary",
119
- "/v1/treasury-destinations/summary",
120
- "/v1/treasury-egress-policy/summary",
121
- "/v1/full-catalog/market-lanes/treasury_payments"
122
- ]),
123
- promotion_gates: {
124
- treasury_connectivity_ready: Number(treasurySummary.first_run_flow_count || 0) >= 1,
125
- settlement_family_ready: Number(settlementSummary.settlement_family_count || 0) >= 3,
126
- activation_ready: Number(treasuryLane.activation_profile_count || 0) >= 3,
127
- major_rail_ready: uniqueSorted(treasuryLane.supporting_lanes || []).length >= 3,
128
- public_boundary_ready: true
129
- },
130
- claim_boundary: "claim_treasury_and_payments_depth_only_for_the_listed_preview_credit_policy_and_settlement_surfaces"
131
- }
132
- ];
133
-
134
- return {
135
- ok: true,
136
- product: packageJson.name,
137
- category: "machine-commerce-market-lane-depth-pack",
138
- pack_version: "xytara-market-lane-depth-pack-v1",
139
- posture: "deepen_callable_market_lanes_without_overclaiming_provider_breadth",
140
- doctrine: "compute_messaging_and_treasury_depth_are_prioritized_as_the_next_major_callable_lane_depth_layer",
141
- market_lane_depth_count: laneDepths.length,
142
- market_lane_depths: laneDepths,
143
- market_lane_summary: marketLaneSummary,
144
- linked_surfaces: {
145
- full_catalog_ref: "/v1/full-catalog",
146
- market_lanes_ref: "/v1/full-catalog/market-lanes",
147
- market_lanes_summary_ref: "/v1/full-catalog/market-lanes/summary",
148
- adapter_depth_summary_ref: "/v1/adapter-depth/summary",
149
- a2a_summary_ref: "/v1/a2a/summary",
150
- a2c_summary_ref: "/v1/a2c/summary",
151
- event_systems_summary_ref: "/v1/event-systems/summary",
152
- treasury_summary_ref: "/v1/treasury/summary",
153
- settlement_summary_ref: "/v1/settlement/summary"
154
- }
155
- };
156
- }
157
-
158
- function getMarketLaneDepthDetail(marketClass) {
159
- const normalized = String(marketClass || "").trim().toLowerCase();
160
- return (buildMarketLaneDepthPack().market_lane_depths || []).find((entry) => entry.market_class === normalized) || null;
161
- }
162
-
163
- function summarizeMarketLaneDepthPack() {
164
- const pack = buildMarketLaneDepthPack();
165
- return {
166
- ok: true,
167
- product: pack.product,
168
- category: "machine-commerce-market-lane-depth-summary",
169
- summary_version: "xytara-market-lane-depth-summary-v1",
170
- market_lane_depth_count: pack.market_lane_depth_count,
171
- provider_live_anchor_lane_count: pack.market_lane_depths.filter((entry) => Number(entry.provider_live_anchor_count || 0) > 0).length,
172
- first_party_callable_lane_count: pack.market_lane_depths.filter((entry) => Number(entry.callable_surface_count || 0) > 0).length,
173
- activation_ready_lane_count: pack.market_lane_depths.filter((entry) => Number(entry.activation_profile_count || 0) > 0).length,
174
- linked_surfaces: pack.linked_surfaces
175
- };
176
- }
177
-
178
- module.exports = {
179
- buildMarketLaneDepthPack,
180
- getMarketLaneDepthDetail,
181
- summarizeMarketLaneDepthPack
182
- };
@@ -1,210 +0,0 @@
1
- "use strict";
2
-
3
- const packageJson = require("../package.json");
4
- const { buildMarketLaneDepthPack } = require("./market_lane_depth_contract");
5
- const { buildMarketLaneTracePack } = require("./market_lane_trace_contract");
6
-
7
- const MARKET_LANE_PROMOTION_REJECTION_CODES = Object.freeze([
8
- "market_lane_not_registered",
9
- "promotion_not_ready",
10
- "operator_evidence_missing",
11
- "claim_boundary_ack_missing",
12
- "required_gate_assertion_missing",
13
- "provider_anchor_evidence_missing",
14
- "trace_evidence_missing",
15
- "secret_material_forbidden"
16
- ]);
17
-
18
- function normalizeString(value) {
19
- return typeof value === "string" ? value.trim() : "";
20
- }
21
-
22
- function containsSecretMaterial(value) {
23
- if (!value || typeof value !== "object") return false;
24
- const secretishKey = /(secret|token|credential|password|private[_-]?key|authorization)/i;
25
- const secretishValue = /(bearer\s+[a-z0-9._-]{8,}|sk_live_|npm_[a-z0-9]|ghp_[a-z0-9]|xox[baprs]-)/i;
26
- const stack = [value];
27
- while (stack.length > 0) {
28
- const current = stack.pop();
29
- if (!current || typeof current !== "object") continue;
30
- for (const [key, entry] of Object.entries(current)) {
31
- if (secretishKey.test(String(key))) return true;
32
- if (typeof entry === "string" && secretishValue.test(entry)) return true;
33
- if (entry && typeof entry === "object") stack.push(entry);
34
- }
35
- }
36
- return false;
37
- }
38
-
39
- function allTrue(record) {
40
- return Object.values(record || {}).every((value) => value === true);
41
- }
42
-
43
- function buildMarketLanePromotionPack() {
44
- const depthPack = buildMarketLaneDepthPack();
45
- const tracePack = buildMarketLaneTracePack();
46
- const depthByMarketClass = new Map((depthPack.market_lane_depths || []).map((entry) => [entry.market_class, entry]));
47
- const traceByMarketClass = new Map((tracePack.market_lane_traces || []).map((entry) => [entry.market_class, entry]));
48
-
49
- const promotionLanes = ["compute", "messaging", "treasury_payments"].map((marketClass) => {
50
- const depth = depthByMarketClass.get(marketClass) || {};
51
- const trace = traceByMarketClass.get(marketClass) || {};
52
- const providerBound = marketClass === "compute";
53
- const gateAssertions = providerBound
54
- ? {
55
- auth_ready: Boolean(depth.promotion_gates && depth.promotion_gates.auth_ready),
56
- health_ready: Boolean(depth.promotion_gates && depth.promotion_gates.health_ready),
57
- latency_ready: Boolean(depth.promotion_gates && depth.promotion_gates.latency_ready),
58
- proof_fact_ready: Boolean(depth.promotion_gates && depth.promotion_gates.proof_fact_ready),
59
- operator_evidence_ready: Boolean(depth.promotion_gates && depth.promotion_gates.operator_evidence_ready),
60
- trace_ready: Boolean(trace.activation_ready),
61
- provider_live_anchor_ready: Number(depth.provider_live_anchor_count || 0) >= 1
62
- }
63
- : marketClass === "messaging"
64
- ? {
65
- negotiate_ready: Boolean(depth.promotion_gates && depth.promotion_gates.negotiate_ready),
66
- session_ready: Boolean(depth.promotion_gates && depth.promotion_gates.session_ready),
67
- event_mesh_ready: Boolean(depth.promotion_gates && depth.promotion_gates.event_mesh_ready),
68
- protocol_depth_ready: Boolean(depth.promotion_gates && depth.promotion_gates.protocol_depth_ready),
69
- callable_activation_ready: Boolean(depth.promotion_gates && depth.promotion_gates.callable_activation_ready),
70
- trace_ready: Boolean(trace.activation_ready)
71
- }
72
- : {
73
- treasury_connectivity_ready: Boolean(depth.promotion_gates && depth.promotion_gates.treasury_connectivity_ready),
74
- settlement_family_ready: Boolean(depth.promotion_gates && depth.promotion_gates.settlement_family_ready),
75
- activation_ready: Boolean(depth.promotion_gates && depth.promotion_gates.activation_ready),
76
- major_rail_ready: Boolean(depth.promotion_gates && depth.promotion_gates.major_rail_ready),
77
- public_boundary_ready: Boolean(depth.promotion_gates && depth.promotion_gates.public_boundary_ready),
78
- trace_ready: Boolean(trace.activation_ready)
79
- };
80
- const promotionReady = allTrue(gateAssertions);
81
- const promotionRequirements = Object.keys(gateAssertions);
82
- return {
83
- market_class: marketClass,
84
- market_label: depth.market_label || trace.market_label || marketClass,
85
- promotion_state: providerBound
86
- ? (promotionReady ? "provider_live_promotion_ready" : "provider_live_promotion_gated")
87
- : (promotionReady ? "bounded_live_promotion_ready" : "bounded_live_promotion_gated"),
88
- claim_status: depth.claim_status || trace.claim_status || "bounded_live",
89
- provider_live_anchor_required: providerBound,
90
- provider_live_anchor_ready: Number(depth.provider_live_anchor_count || 0) >= 1,
91
- trace_ready: Boolean(trace.activation_ready),
92
- activation_ready: Boolean(trace.activation_ready),
93
- promotion_gate_pass_count: promotionRequirements.filter((key) => gateAssertions[key]).length,
94
- promotion_gate_count: promotionRequirements.length,
95
- promotion_requirements: promotionRequirements,
96
- gate_assertions: gateAssertions,
97
- promotion_evidence_template: {
98
- market_class: marketClass,
99
- operator_evidence_ref: `ops.market_lane.${marketClass}.promotion.<date>`,
100
- claim_boundary_ack: depth.claim_boundary || trace.claim_boundary || "claim_boundary_ack_required",
101
- gate_assertions: Object.fromEntries(promotionRequirements.map((requirement) => [requirement, true])),
102
- provider_live_anchor_ref: providerBound ? "ops.market_lane.compute.provider_anchor.<date>" : null,
103
- trace_evidence_ref: `ops.market_lane.${marketClass}.trace.<date>`
104
- },
105
- supporting_refs: Array.from(new Set(
106
- []
107
- .concat(depth.supporting_depth_refs || [])
108
- .concat(trace.primary_call_surfaces || [])
109
- .concat(trace.supporting_surfaces || [])
110
- )).sort(),
111
- claim_boundary: depth.claim_boundary || trace.claim_boundary || "claim_market_lane_promotion_only_for_listed_surfaces"
112
- };
113
- });
114
-
115
- return {
116
- ok: true,
117
- product: packageJson.name,
118
- category: "machine-commerce-market-lane-promotion-pack",
119
- pack_version: "xytara-market-lane-promotion-pack-v1",
120
- posture: "bounded_market_lane_promotion_requires_depth_trace_and_operator_evidence_alignment",
121
- doctrine: "promotion_tracks_stronger_market_lane_claims_without_implying_unbounded_provider_or_venue_breadth",
122
- market_lane_promotion_count: promotionLanes.length,
123
- provider_live_ready_count: promotionLanes.filter((entry) => entry.promotion_state === "provider_live_promotion_ready").length,
124
- bounded_live_ready_count: promotionLanes.filter((entry) => entry.promotion_state === "bounded_live_promotion_ready").length,
125
- deterministic_rejection_codes: MARKET_LANE_PROMOTION_REJECTION_CODES.slice(),
126
- promotion_lanes: promotionLanes,
127
- linked_surfaces: {
128
- full_catalog_ref: "/v1/full-catalog",
129
- market_lanes_ref: "/v1/full-catalog/market-lanes",
130
- market_lane_depth_ref: "/v1/full-catalog/market-lanes/depth",
131
- market_lane_depth_summary_ref: "/v1/full-catalog/market-lanes/depth/summary",
132
- market_lane_trace_ref: "/v1/full-catalog/market-lanes/traces",
133
- market_lane_trace_summary_ref: "/v1/full-catalog/market-lanes/traces/summary",
134
- adapter_depth_summary_ref: "/v1/adapter-depth/summary"
135
- }
136
- };
137
- }
138
-
139
- function getMarketLanePromotionDetail(marketClass) {
140
- const normalized = String(marketClass || "").trim().toLowerCase();
141
- return (buildMarketLanePromotionPack().promotion_lanes || []).find((entry) => entry.market_class === normalized) || null;
142
- }
143
-
144
- function validateMarketLanePromotionEvidence(pack, evidence) {
145
- const promotionPack = pack || buildMarketLanePromotionPack();
146
- const evidencePacket = evidence || {};
147
- const marketClass = normalizeString(evidencePacket.market_class);
148
- const lane = (promotionPack.promotion_lanes || []).find((entry) => entry.market_class === marketClass) || null;
149
- const rejectionCodes = [];
150
-
151
- if (!lane) {
152
- rejectionCodes.push("market_lane_not_registered");
153
- } else {
154
- if (!String(lane.promotion_state || "").endsWith("_ready")) {
155
- rejectionCodes.push("promotion_not_ready");
156
- }
157
- if (!normalizeString(evidencePacket.operator_evidence_ref)) {
158
- rejectionCodes.push("operator_evidence_missing");
159
- }
160
- if (!normalizeString(evidencePacket.claim_boundary_ack)) {
161
- rejectionCodes.push("claim_boundary_ack_missing");
162
- }
163
- const gateAssertions = evidencePacket.gate_assertions || {};
164
- const missingGateAssertion = (lane.promotion_requirements || []).some((requirement) => gateAssertions[requirement] !== true);
165
- if (missingGateAssertion) {
166
- rejectionCodes.push("required_gate_assertion_missing");
167
- }
168
- if (lane.provider_live_anchor_required && !normalizeString(evidencePacket.provider_live_anchor_ref)) {
169
- rejectionCodes.push("provider_anchor_evidence_missing");
170
- }
171
- if (!normalizeString(evidencePacket.trace_evidence_ref)) {
172
- rejectionCodes.push("trace_evidence_missing");
173
- }
174
- }
175
- if (containsSecretMaterial(evidencePacket)) {
176
- rejectionCodes.push("secret_material_forbidden");
177
- }
178
-
179
- return {
180
- validation_version: "xytara-market-lane-promotion-evidence-validation-v1",
181
- promotion_allowed: rejectionCodes.length === 0,
182
- market_class: marketClass || null,
183
- rejection_codes: Array.from(new Set(rejectionCodes)),
184
- required_requirements: lane ? lane.promotion_requirements.slice() : [],
185
- boundary: "market_lane_promotion_requires_depth_trace_gate_assertions_and_operator_evidence_without_secret_material"
186
- };
187
- }
188
-
189
- function summarizeMarketLanePromotionPack() {
190
- const pack = buildMarketLanePromotionPack();
191
- return {
192
- ok: true,
193
- product: pack.product,
194
- category: "machine-commerce-market-lane-promotion-summary",
195
- summary_version: "xytara-market-lane-promotion-summary-v1",
196
- market_lane_promotion_count: pack.market_lane_promotion_count,
197
- provider_live_ready_count: pack.provider_live_ready_count,
198
- bounded_live_ready_count: pack.bounded_live_ready_count,
199
- deterministic_rejection_code_count: pack.deterministic_rejection_codes.length,
200
- linked_surfaces: pack.linked_surfaces
201
- };
202
- }
203
-
204
- module.exports = {
205
- MARKET_LANE_PROMOTION_REJECTION_CODES,
206
- buildMarketLanePromotionPack,
207
- getMarketLanePromotionDetail,
208
- summarizeMarketLanePromotionPack,
209
- validateMarketLanePromotionEvidence
210
- };
@@ -1,278 +0,0 @@
1
- "use strict";
2
-
3
- const packageJson = require("../package.json");
4
- const { buildAdapterDepthPack } = require("./adapter_depth_contract");
5
- const { buildMarketLanePack } = require("./market_lane_contract");
6
- const { buildMarketLaneDepthPack } = require("./market_lane_depth_contract");
7
-
8
- function uniqueSorted(values) {
9
- return Array.from(new Set((Array.isArray(values) ? values : []).filter(Boolean))).sort();
10
- }
11
-
12
- function buildTraceStages(stages) {
13
- return (Array.isArray(stages) ? stages : []).map((stage, index) => ({
14
- stage_index: index + 1,
15
- ...stage
16
- }));
17
- }
18
-
19
- function buildMarketLaneTracePack() {
20
- const adapterDepth = buildAdapterDepthPack();
21
- const marketLanePack = buildMarketLanePack();
22
- const marketLaneDepthPack = buildMarketLaneDepthPack();
23
- const laneByMarketClass = new Map((marketLanePack.market_lanes || []).map((entry) => [entry.market_class, entry]));
24
- const depthByMarketClass = new Map((marketLaneDepthPack.market_lane_depths || []).map((entry) => [entry.market_class, entry]));
25
-
26
- const computeLane = laneByMarketClass.get("compute") || {};
27
- const computeDepth = depthByMarketClass.get("compute") || {};
28
- const messagingLane = laneByMarketClass.get("messaging") || {};
29
- const messagingDepth = depthByMarketClass.get("messaging") || {};
30
- const treasuryLane = laneByMarketClass.get("treasury_payments") || {};
31
- const treasuryDepth = depthByMarketClass.get("treasury_payments") || {};
32
-
33
- const traces = [
34
- {
35
- trace_id: "compute.provider_bound_commitment_trace",
36
- market_class: "compute",
37
- market_label: "compute",
38
- trace_posture: "provider_live_anchor_plus_governed_commitment_flow",
39
- claim_status: computeLane.claim_status || "bounded_live",
40
- provider_live_trace: true,
41
- first_party_callable_trace: true,
42
- activation_ready: Number(computeLane.activation_profile_count || 0) >= 2,
43
- trace_stage_count: 7,
44
- primary_call_surfaces: uniqueSorted(computeLane.call_surfaces || []),
45
- supporting_surfaces: uniqueSorted([].concat(computeLane.supporting_surfaces || []).concat(computeDepth.supporting_depth_refs || [])),
46
- task_refs: uniqueSorted(computeLane.surfaced_task_refs || []),
47
- trace_stages: buildTraceStages([
48
- {
49
- lifecycle_stage: "discover",
50
- operation_ref: "family.discover",
51
- call_surface: "/v1/catalog/task?ref=zones.list",
52
- expected_outcome: "discover runtime zones and compute-facing capability posture"
53
- },
54
- {
55
- lifecycle_stage: "quote_commit",
56
- operation_ref: "family.quote_commit",
57
- call_surface: "/v1/transaction-center/transaction-class-packs/run",
58
- task_refs: ["jobs.quote", "jobs.reserve", "jobs.commit"],
59
- expected_outcome: "quote, reserve, and commit governed compute work"
60
- },
61
- {
62
- lifecycle_stage: "invoke",
63
- operation_ref: "family.invoke",
64
- call_surface: "/v1/transaction-center/task-packs/invoke",
65
- task_refs: ["adapter.mcp.invoke"],
66
- expected_outcome: "execute through the provider-bound MCP lane"
67
- },
68
- {
69
- lifecycle_stage: "meter",
70
- operation_ref: "family.meter",
71
- call_surface: "/v1/credits/packs",
72
- task_refs: ["credits.preview"],
73
- expected_outcome: "confirm spend posture before or alongside execution"
74
- },
75
- {
76
- lifecycle_stage: "deliver",
77
- operation_ref: "family.deliver",
78
- call_surface: "/v1/transaction-center/result-packages/export",
79
- task_refs: ["runtime.emit", "jobs.release"],
80
- expected_outcome: "export result package and execution receipt continuity"
81
- },
82
- {
83
- lifecycle_stage: "anchor",
84
- operation_ref: "family.anchor",
85
- call_surface: "/v1/transaction-center/transaction-class-packs/run",
86
- task_refs: ["runtime.anchor", "runtime.emit_anchor"],
87
- expected_outcome: "anchor runtime consequence and finality references"
88
- },
89
- {
90
- lifecycle_stage: "verify",
91
- operation_ref: "xoonya.bundle_verify",
92
- call_surface: "https://xoonya.onrender.com/v1/proof-center/verification-services/summary",
93
- expected_outcome: "verify carried bundle and proof continuity"
94
- }
95
- ]),
96
- claim_boundary: "claim_compute_trace_only_for_the_listed_provider_live_anchor_governed_commitment_and_proof_handoff_surfaces"
97
- },
98
- {
99
- trace_id: "messaging.negotiation_session_event_trace",
100
- market_class: "messaging",
101
- market_label: "messaging",
102
- trace_posture: "first_party_callable_session_negotiation_and_event_mesh_trace",
103
- claim_status: messagingLane.claim_status || "bounded_live",
104
- provider_live_trace: false,
105
- first_party_callable_trace: true,
106
- activation_ready: Number(messagingLane.activation_profile_count || 0) >= 2,
107
- trace_stage_count: 7,
108
- primary_call_surfaces: uniqueSorted(messagingLane.call_surfaces || []),
109
- supporting_surfaces: uniqueSorted([].concat(messagingLane.supporting_surfaces || []).concat(messagingDepth.supporting_depth_refs || [])),
110
- task_refs: uniqueSorted(messagingLane.surfaced_task_refs || []),
111
- trace_stages: buildTraceStages([
112
- {
113
- lifecycle_stage: "discover",
114
- operation_ref: "family.discover",
115
- call_surface: "/v1/protocols/summary",
116
- expected_outcome: "inspect messaging-capable protocol posture"
117
- },
118
- {
119
- lifecycle_stage: "negotiate",
120
- operation_ref: "family.negotiate",
121
- call_surface: "/v1/transaction-center/precommit-packs/run",
122
- task_refs: ["a2a.negotiate"],
123
- expected_outcome: "open agent-to-agent negotiation posture"
124
- },
125
- {
126
- lifecycle_stage: "session_send_close",
127
- operation_ref: "family.session_send_close",
128
- call_surface: "/v1/transaction-center/task-packs/invoke",
129
- task_refs: ["a2c.session.open", "a2c.pack.preview"],
130
- expected_outcome: "open and use an A2C session with bounded tooling exchange"
131
- },
132
- {
133
- lifecycle_stage: "meter",
134
- operation_ref: "family.meter",
135
- call_surface: "/v1/credits/packs",
136
- task_refs: ["credits.preview"],
137
- expected_outcome: "inspect cost posture for session-backed interaction"
138
- },
139
- {
140
- lifecycle_stage: "deliver",
141
- operation_ref: "family.deliver",
142
- call_surface: "/v1/event-systems/summary",
143
- task_refs: ["runtime.emit"],
144
- expected_outcome: "carry interaction continuity into event/system surfaces"
145
- },
146
- {
147
- lifecycle_stage: "anchor",
148
- operation_ref: "family.anchor",
149
- call_surface: "/v1/transaction-center/transaction-class-packs/run",
150
- task_refs: ["runtime.emit_anchor"],
151
- expected_outcome: "anchor session and event continuity where carried proof is needed"
152
- },
153
- {
154
- lifecycle_stage: "verify",
155
- operation_ref: "xoonya.delivery_verify",
156
- call_surface: "https://xoonya.onrender.com/v1/proof-center/verification-services/summary",
157
- expected_outcome: "verify delivery and interaction-spine continuity"
158
- }
159
- ]),
160
- claim_boundary: "claim_messaging_trace_only_for_listed_a2a_a2c_event_system_and_proof_followthrough_surfaces_without_implying_generic_bus_platform_truth"
161
- },
162
- {
163
- trace_id: "treasury.preview_settlement_trace",
164
- market_class: "treasury_payments",
165
- market_label: "treasury/payments",
166
- trace_posture: "first_party_treasury_preview_policy_and_settlement_trace",
167
- claim_status: treasuryLane.claim_status || "bounded_live",
168
- provider_live_trace: false,
169
- first_party_callable_trace: true,
170
- activation_ready: Number(treasuryLane.activation_profile_count || 0) >= 3,
171
- trace_stage_count: 7,
172
- primary_call_surfaces: uniqueSorted(treasuryLane.call_surfaces || []),
173
- supporting_surfaces: uniqueSorted([].concat(treasuryLane.supporting_surfaces || []).concat(treasuryDepth.supporting_depth_refs || [])),
174
- task_refs: uniqueSorted(treasuryLane.surfaced_task_refs || []),
175
- trace_stages: buildTraceStages([
176
- {
177
- lifecycle_stage: "discover",
178
- operation_ref: "family.discover",
179
- call_surface: "/v1/treasury/summary",
180
- expected_outcome: "inspect treasury and settlement family posture"
181
- },
182
- {
183
- lifecycle_stage: "settlement_intent",
184
- operation_ref: "family.settlement_intent",
185
- call_surface: "/v1/transaction-center/precommit-packs/run",
186
- task_refs: ["policy.simulate", "admission.preview"],
187
- expected_outcome: "shape settlement intent and policy admissibility"
188
- },
189
- {
190
- lifecycle_stage: "meter",
191
- operation_ref: "family.meter",
192
- call_surface: "/v1/credits/packs",
193
- task_refs: ["credits.preview", "credits.apply"],
194
- expected_outcome: "preview and prepare treasury-linked spend posture"
195
- },
196
- {
197
- lifecycle_stage: "settle_reconcile",
198
- operation_ref: "family.settle_reconcile",
199
- call_surface: "/v1/settlement/bsv-teranode",
200
- task_refs: ["settlement.submit"],
201
- expected_outcome: "submit settlement and expose reconciliation posture"
202
- },
203
- {
204
- lifecycle_stage: "deliver",
205
- operation_ref: "family.deliver",
206
- call_surface: "/v1/payment-ledger",
207
- expected_outcome: "carry payment-ledger and treasury continuity"
208
- },
209
- {
210
- lifecycle_stage: "anchor",
211
- operation_ref: "family.anchor",
212
- call_surface: "/v1/settlement/bsv-teranode/readiness",
213
- expected_outcome: "bind treasury flow to native settlement/finality posture"
214
- },
215
- {
216
- lifecycle_stage: "verify",
217
- operation_ref: "xoonya.settlement_verify",
218
- call_surface: "https://xoonya.onrender.com/v1/proof-center/verification-services/summary",
219
- expected_outcome: "verify settlement and anchor continuity"
220
- }
221
- ]),
222
- claim_boundary: "claim_treasury_trace_only_for_listed_preview_policy_settlement_and_verification_surfaces_without_implying_unbounded_rail_or_custody_truth"
223
- }
224
- ];
225
-
226
- return {
227
- ok: true,
228
- product: packageJson.name,
229
- category: "machine-commerce-market-lane-trace-pack",
230
- pack_version: "xytara-market-lane-trace-pack-v1",
231
- posture: "explicit_end_to_end_traces_for_the_next_major_market_lane_depth_layer",
232
- doctrine: "compute_messaging_and_treasury_traces_show_callable_consequence_paths_without_overclaiming_unbounded_provider_breadth",
233
- market_lane_trace_count: traces.length,
234
- provider_live_anchor_trace_count: traces.filter((entry) => entry.provider_live_trace).length,
235
- first_party_callable_trace_count: traces.filter((entry) => entry.first_party_callable_trace).length,
236
- activation_ready_trace_count: traces.filter((entry) => entry.activation_ready).length,
237
- trace_stage_total_count: traces.reduce((sum, entry) => sum + Number(entry.trace_stage_count || 0), 0),
238
- adapter_depth_state: adapterDepth.adapter_depth_state,
239
- market_lane_trace_refs: traces.map((entry) => entry.trace_id),
240
- market_lane_traces: traces,
241
- linked_surfaces: {
242
- full_catalog_ref: "/v1/full-catalog",
243
- market_lanes_ref: "/v1/full-catalog/market-lanes",
244
- market_lanes_summary_ref: "/v1/full-catalog/market-lanes/summary",
245
- market_lane_activation_summary_ref: "/v1/full-catalog/market-lanes/activation/summary",
246
- market_lane_depth_summary_ref: "/v1/full-catalog/market-lanes/depth/summary",
247
- adapter_depth_summary_ref: "/v1/adapter-depth/summary",
248
- xoonya_verification_services_summary_ref: "https://xoonya.onrender.com/v1/proof-center/verification-services/summary"
249
- }
250
- };
251
- }
252
-
253
- function getMarketLaneTraceDetail(marketClass) {
254
- const normalized = String(marketClass || "").trim().toLowerCase();
255
- return (buildMarketLaneTracePack().market_lane_traces || []).find((entry) => entry.market_class === normalized) || null;
256
- }
257
-
258
- function summarizeMarketLaneTracePack() {
259
- const pack = buildMarketLaneTracePack();
260
- return {
261
- ok: true,
262
- product: pack.product,
263
- category: "machine-commerce-market-lane-trace-summary",
264
- summary_version: "xytara-market-lane-trace-summary-v1",
265
- market_lane_trace_count: pack.market_lane_trace_count,
266
- provider_live_anchor_trace_count: pack.provider_live_anchor_trace_count,
267
- first_party_callable_trace_count: pack.first_party_callable_trace_count,
268
- activation_ready_trace_count: pack.activation_ready_trace_count,
269
- trace_stage_total_count: pack.trace_stage_total_count,
270
- linked_surfaces: pack.linked_surfaces
271
- };
272
- }
273
-
274
- module.exports = {
275
- buildMarketLaneTracePack,
276
- getMarketLaneTraceDetail,
277
- summarizeMarketLaneTracePack
278
- };