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,183 +0,0 @@
1
- "use strict";
2
-
3
- const {
4
- buildPhase1OpenaiCodexRuntimePack
5
- } = require("./phase_1_openai_codex_runtime_pack");
6
- const {
7
- buildPhase1ClaudeMcpRuntimePack
8
- } = require("./phase_1_claude_mcp_runtime_pack");
9
- const {
10
- buildProviderLanePack,
11
- getProviderProfileDetail
12
- } = require("./provider_lane_contract");
13
- const { summarizeMarketLaneTracePack } = require("./market_lane_trace_contract");
14
- const { summarizeMarketLanePromotionPack } = require("./market_lane_promotion_contract");
15
-
16
- function uniqueSorted(values) {
17
- return Array.from(new Set((Array.isArray(values) ? values : []).filter(Boolean))).sort();
18
- }
19
-
20
- function buildJourneyStages(providerId, profile, runtimePack) {
21
- const firstPath = runtimePack.first_path || {};
22
- const executeSurface = Array.isArray(profile.primary_call_surfaces) && profile.primary_call_surfaces.length
23
- ? profile.primary_call_surfaces[0]
24
- : null;
25
- return [
26
- {
27
- stage_index: 1,
28
- stage_id: "discover",
29
- posture: "inspect_named_provider_entry",
30
- surface_ref: "/v1/providers/summary",
31
- expected_outcome: `discover the bounded ${providerId} entry posture before quoting or execution`
32
- },
33
- {
34
- stage_index: 2,
35
- stage_id: "quote",
36
- posture: "secretless_first_contact_quote",
37
- surface_ref: "xytara first-run --run-quote --account ACCOUNT_REF --pretty",
38
- expected_outcome: "produce a quote or payment-required challenge without spending funds or requiring wallet secrets"
39
- },
40
- {
41
- stage_index: 3,
42
- stage_id: "fund",
43
- posture: "credits_or_direct_payment_after_quote",
44
- surface_ref: providerId === "openai_codex" ? "/v1/x402" : "/v1/commands/execute",
45
- expected_outcome: "move from quoted intent into a bounded paid path through credits-first or approved payment proof"
46
- },
47
- {
48
- stage_index: 4,
49
- stage_id: "execute",
50
- posture: "provider_bounded_runtime_execution",
51
- surface_ref: executeSurface,
52
- expected_outcome: "run the listed provider entry through the governed runtime without implying unbounded provider control-plane ownership"
53
- },
54
- {
55
- stage_index: 5,
56
- stage_id: "prove",
57
- posture: "proof_followthrough",
58
- surface_ref: firstPath.followthrough_ref || null,
59
- expected_outcome: "continue the execution result into xoonya proof followthrough and verification review surfaces"
60
- },
61
- {
62
- stage_index: 6,
63
- stage_id: "inspect",
64
- posture: "public_runtime_and_proof_inspection",
65
- surface_ref: "/v1/full-catalog/market-lanes/traces/summary",
66
- expected_outcome: "inspect the bounded runtime trace and promotion posture that supports the named provider journey"
67
- }
68
- ].filter((entry) => Boolean(entry.surface_ref));
69
- }
70
-
71
- function buildJourney(providerId, profile, runtimePack) {
72
- const firstPath = runtimePack.first_path || {};
73
- const traceSummary = summarizeMarketLaneTracePack();
74
- const promotionSummary = summarizeMarketLanePromotionPack();
75
- const stages = buildJourneyStages(providerId, profile, runtimePack);
76
- const firstRunReady = stages.some((entry) => entry.stage_id === "quote")
77
- && stages.some((entry) => entry.stage_id === "execute");
78
-
79
- return {
80
- journey_id: `${providerId}.runtime_journey`,
81
- provider_id: profile.provider_id,
82
- provider_label: profile.provider_label,
83
- journey_posture: profile.posture,
84
- claim_status: profile.claim_status,
85
- first_run_ready: firstRunReady,
86
- quote_ready: stages.some((entry) => entry.stage_id === "quote"),
87
- funded_execution_ready: Boolean(profile.revenue_ready),
88
- proof_followthrough_ready: Boolean(profile.proof_followthrough_ready),
89
- provider_live_anchor_ready: Boolean(profile.provider_live_anchor_ready),
90
- first_party_callable_ready: Boolean(profile.first_party_callable_ready),
91
- stage_count: stages.length,
92
- stages,
93
- primary_http_sequence: Array.isArray(firstPath.first_http_sequence) ? firstPath.first_http_sequence.slice() : [],
94
- primary_cli_sequence: Array.isArray(firstPath.first_cli_sequence) ? firstPath.first_cli_sequence.slice() : [],
95
- call_surfaces: uniqueSorted(profile.primary_call_surfaces),
96
- supporting_surfaces: uniqueSorted([
97
- ...(profile.supporting_surfaces || []),
98
- "/v1/providers/summary",
99
- "/v1/full-catalog/market-lanes/traces/summary",
100
- "/v1/full-catalog/market-lanes/promotion/summary"
101
- ]),
102
- readiness_gates: {
103
- first_run_ready: firstRunReady,
104
- provider_live_anchor_ready: Boolean(profile.provider_live_anchor_ready),
105
- funded_execution_ready: Boolean(profile.revenue_ready),
106
- proof_followthrough_ready: Boolean(profile.proof_followthrough_ready),
107
- trace_ready: Number(traceSummary.market_lane_trace_count || 0) >= 3,
108
- promotion_ready: Number(promotionSummary.market_lane_promotion_count || 0) >= 3
109
- },
110
- claim_boundary: providerId === "openai_codex"
111
- ? "claim_openai_codex_journey_only_for_the_listed_quote_fund_execute_prove_path_inside_xytara_not_as_external_provider_platform_control"
112
- : "claim_claude_mcp_journey_only_for_the_listed_mcp_quote_fund_execute_prove_path_inside_xytara_not_as_unbounded_provider_or_framework_depth"
113
- };
114
- }
115
-
116
- function buildProviderRuntimeJourneyPack() {
117
- const providerPack = buildProviderLanePack();
118
- const openaiProfile = getProviderProfileDetail("openai_codex");
119
- const claudeProfile = getProviderProfileDetail("claude_mcp");
120
- const openaiRuntimePack = buildPhase1OpenaiCodexRuntimePack();
121
- const claudeRuntimePack = buildPhase1ClaudeMcpRuntimePack();
122
- const journeys = [
123
- buildJourney("openai_codex", openaiProfile, openaiRuntimePack),
124
- buildJourney("claude_mcp", claudeProfile, claudeRuntimePack)
125
- ];
126
-
127
- return {
128
- ok: true,
129
- product: "xytara",
130
- category: "machine-commerce-provider-runtime-journey-pack",
131
- pack_version: "xytara-provider-runtime-journey-pack-v1",
132
- posture: "named_provider_quote_fund_execute_prove_paths",
133
- doctrine: "provider_journeys_make_first_run_and_revenue_paths_publicly_inspectable_without_overclaiming_unbounded_vendor_breadth",
134
- journey_count: journeys.length,
135
- first_run_ready_journey_count: journeys.filter((entry) => entry.first_run_ready).length,
136
- revenue_ready_journey_count: journeys.filter((entry) => entry.funded_execution_ready).length,
137
- proof_followthrough_journey_count: journeys.filter((entry) => entry.proof_followthrough_ready).length,
138
- provider_live_anchor_journey_count: journeys.filter((entry) => entry.provider_live_anchor_ready).length,
139
- stage_total_count: journeys.reduce((total, entry) => total + Number(entry.stage_count || 0), 0),
140
- provider_profiles_summary: {
141
- provider_profile_count: providerPack.provider_profile_count,
142
- revenue_ready_profile_count: providerPack.revenue_ready_profile_count,
143
- proof_followthrough_profile_count: providerPack.proof_followthrough_profile_count
144
- },
145
- journeys,
146
- linked_surfaces: {
147
- providers_ref: "/v1/providers",
148
- providers_summary_ref: "/v1/providers/summary",
149
- market_lane_trace_summary_ref: "/v1/full-catalog/market-lanes/traces/summary",
150
- market_lane_promotion_summary_ref: "/v1/full-catalog/market-lanes/promotion/summary",
151
- openai_codex_runtime_ref: "/v1/phases/phase-1/openai-codex/runtime/summary",
152
- claude_mcp_runtime_ref: "/v1/phases/phase-1/claude-mcp/runtime/summary"
153
- }
154
- };
155
- }
156
-
157
- function summarizeProviderRuntimeJourneyPack() {
158
- const pack = buildProviderRuntimeJourneyPack();
159
- return {
160
- ok: true,
161
- product: pack.product,
162
- category: "machine-commerce-provider-runtime-journey-summary",
163
- summary_version: "xytara-provider-runtime-journey-summary-v1",
164
- journey_count: pack.journey_count,
165
- first_run_ready_journey_count: pack.first_run_ready_journey_count,
166
- revenue_ready_journey_count: pack.revenue_ready_journey_count,
167
- proof_followthrough_journey_count: pack.proof_followthrough_journey_count,
168
- provider_live_anchor_journey_count: pack.provider_live_anchor_journey_count,
169
- stage_total_count: pack.stage_total_count,
170
- linked_surfaces: pack.linked_surfaces
171
- };
172
- }
173
-
174
- function getProviderRuntimeJourneyDetail(providerId) {
175
- const normalized = String(providerId || "").trim().toLowerCase();
176
- return (buildProviderRuntimeJourneyPack().journeys || []).find((entry) => entry.provider_id === normalized) || null;
177
- }
178
-
179
- module.exports = {
180
- buildProviderRuntimeJourneyPack,
181
- summarizeProviderRuntimeJourneyPack,
182
- getProviderRuntimeJourneyDetail
183
- };
@@ -1,111 +0,0 @@
1
- "use strict";
2
-
3
- const packageJson = require("../package.json");
4
-
5
- function buildPublicSurfacePolicyContractPack() {
6
- return {
7
- ok: true,
8
- product: packageJson.name,
9
- category: "naxytra-public-surface-policy-contract",
10
- pack_version: "naxytra-public-surface-policy-contract-v1",
11
- doctrine: "xytara_classifies_public_surfaces_before_listing_or_widening_them",
12
- model_state: "core_now",
13
- core_claim: "every public surface must declare discovery paid proof_review or operator_only policy before it is treated as part of the public stack",
14
- surface_classes: [
15
- {
16
- surface_class: "discovery_only",
17
- description: "public informational and machine-discoverable surfaces",
18
- examples: [
19
- "/health",
20
- "/server.json",
21
- "/.well-known/mcp-server.json",
22
- "/.well-known/glama.json",
23
- "/v1/agent-discovery-index",
24
- "/v1/agent-discovery-index/summary"
25
- ]
26
- },
27
- {
28
- surface_class: "paid",
29
- description: "machine work or runtime invocation surfaces",
30
- examples: [
31
- "POST /v1/commands/execute",
32
- "POST /x402/commands/execute",
33
- "POST /v1/mcp/tools/invoke",
34
- "POST /x402/mcp/tools/invoke"
35
- ]
36
- },
37
- {
38
- surface_class: "proof_review",
39
- description: "proof and evidence review surfaces",
40
- examples: [
41
- "/v1/proof-truth",
42
- "/v1/proof-truth/summary",
43
- "/v1/followthrough-truth",
44
- "/v1/followthrough-truth/summary",
45
- "/v1/receipts",
46
- "/v1/receipts/:receipt_id"
47
- ]
48
- },
49
- {
50
- surface_class: "operator_only",
51
- description: "internal control or mutable operator surfaces",
52
- examples: [
53
- "/v1/business-cockpit",
54
- "/business-cockpit",
55
- "/v1/operator-shell",
56
- "/v1/agent-accounts"
57
- ]
58
- }
59
- ],
60
- enforcement_rules: [
61
- "discovery_only_surfaces_must_not_require_payment",
62
- "paid_surfaces_must_carry_payment_or_challenge_metadata_when_public",
63
- "proof_review_surfaces_must_not_mutate_runtime_or_treasury_truth",
64
- "operator_only_surfaces_must_not_be_listed_as_public_discovery",
65
- "every_new_surface_must_choose_a_class_before_release"
66
- ],
67
- route_fields: [
68
- "surface_path",
69
- "surface_class",
70
- "requires_payment",
71
- "requires_operator_auth",
72
- "proof_boundary",
73
- "claim_boundary"
74
- ],
75
- linked_surfaces: {
76
- discovery_index_ref: "/v1/agent-discovery-index",
77
- discovery_index_summary_ref: "/v1/agent-discovery-index/summary",
78
- proof_truth_ref: "/v1/proof-truth",
79
- followthrough_truth_ref: "/v1/followthrough-truth",
80
- operator_cockpit_ref: "/v1/business-cockpit"
81
- },
82
- claim_boundary: "claim_the_public_surface_policy_for_xytara_only_without_claiming_runtime_payment_or_proof_truth_beyond_the_listed_surfaces"
83
- };
84
- }
85
-
86
- function summarizePublicSurfacePolicyContractPack() {
87
- const pack = buildPublicSurfacePolicyContractPack();
88
- return {
89
- ok: true,
90
- product: pack.product,
91
- category: pack.category,
92
- summary_version: "naxytra-public-surface-policy-contract-summary-v1",
93
- pack_version: pack.pack_version,
94
- model_state: pack.model_state,
95
- surface_class_count: pack.surface_classes.length,
96
- rule_count: pack.enforcement_rules.length,
97
- route_field_count: pack.route_fields.length,
98
- linked_surfaces: pack.linked_surfaces
99
- };
100
- }
101
-
102
- function getPublicSurfaceClassDetail(surfaceClass) {
103
- const normalized = String(surfaceClass || "").trim().toLowerCase();
104
- return (buildPublicSurfacePolicyContractPack().surface_classes || []).find((entry) => entry.surface_class === normalized) || null;
105
- }
106
-
107
- module.exports = {
108
- buildPublicSurfacePolicyContractPack,
109
- summarizePublicSurfacePolicyContractPack,
110
- getPublicSurfaceClassDetail
111
- };
@@ -1,51 +0,0 @@
1
- "use strict";
2
-
3
- const packageJson = require("../package.json");
4
-
5
- function buildPublishPlan() {
6
- return {
7
- ok: true,
8
- product: packageJson.name,
9
- category: "machine-commerce-publish-plan",
10
- version: packageJson.version,
11
- commands: {
12
- verify_release_candidate: "npm run verify:release-candidate",
13
- pack_dry_run: "npm pack --dry-run --json",
14
- publish: "npm publish --access public",
15
- release_cli_check: "xytara-release --candidate --summary"
16
- },
17
- live_checks: [
18
- "/v1/release-candidate/summary",
19
- "/v1/release-center/summary",
20
- "/v1/announcement-pack/summary",
21
- "/v1/outreach-proof/summary"
22
- ],
23
- publish_sequence: [
24
- "run the release-candidate verification",
25
- "confirm the dry-run package contents",
26
- "publish the npm package at public access",
27
- "redeploy the live service surfaces",
28
- "verify the release-candidate and release-center summaries live",
29
- "run the first public machine proof path"
30
- ]
31
- };
32
- }
33
-
34
- function summarizePublishPlan() {
35
- const plan = buildPublishPlan();
36
- return {
37
- ok: true,
38
- product: plan.product,
39
- category: plan.category,
40
- version: plan.version,
41
- command_count: Object.keys(plan.commands).length,
42
- live_check_count: plan.live_checks.length,
43
- publish_step_count: plan.publish_sequence.length,
44
- publish_command: plan.commands.publish
45
- };
46
- }
47
-
48
- module.exports = {
49
- buildPublishPlan,
50
- summarizePublishPlan
51
- };
@@ -1,81 +0,0 @@
1
- "use strict";
2
-
3
- // Minimal in-memory fixed-window rate limiter. Dependency-free.
4
- //
5
- // Used to gate expensive unauthenticated work (e.g. L402 invoice creation, which
6
- // makes an outbound call to a Lightning provider on every UNPAID request) so a
7
- // flood cannot amplify into unbounded cost. Two independent ceilings apply:
8
- // - per key (typically client IP): `max` hits per `windowMs`
9
- // - global (all keys combined): `maxGlobal` hits per `windowMs`
10
- // A hit counts against both; exceeding either denies the request.
11
- //
12
- // Scope: single process. Horizontally-scaled deployments should front this with a
13
- // shared store (Redis) or an edge/proxy limiter; this module is the in-process
14
- // floor, not a distributed guarantee. Callers should still deploy behind the
15
- // platform's own rate limiting for defense in depth.
16
-
17
- function now() {
18
- return Date.now();
19
- }
20
-
21
- function createRateLimiter(options) {
22
- const opts = options || {};
23
- const windowMs = Math.max(1000, Number(opts.windowMs) || 60000);
24
- const max = Math.max(1, Number(opts.max) || 30);
25
- const maxGlobal = Math.max(max, Number(opts.maxGlobal) || max * 20);
26
- // Map<key, { count, resetAt }>
27
- const buckets = new Map();
28
- let global = { count: 0, resetAt: now() + windowMs };
29
- let lastSweep = now();
30
-
31
- function sweep(t) {
32
- // Opportunistic cleanup so the Map cannot grow without bound.
33
- if (t - lastSweep < windowMs) return;
34
- lastSweep = t;
35
- for (const [key, bucket] of buckets) {
36
- if (bucket.resetAt <= t) buckets.delete(key);
37
- }
38
- }
39
-
40
- function rollGlobal(t) {
41
- if (global.resetAt <= t) global = { count: 0, resetAt: t + windowMs };
42
- }
43
-
44
- // Record one hit for `key` and report whether it is allowed. The hit is only
45
- // counted when allowed, so a denied caller does not push its own reset further
46
- // out (no self-inflicted lockout extension).
47
- function check(key) {
48
- const t = now();
49
- sweep(t);
50
- rollGlobal(t);
51
- const k = String(key == null ? "" : key);
52
- let bucket = buckets.get(k);
53
- if (!bucket || bucket.resetAt <= t) {
54
- bucket = { count: 0, resetAt: t + windowMs };
55
- buckets.set(k, bucket);
56
- }
57
- if (global.count >= maxGlobal) {
58
- return { allowed: false, scope: "global", remaining: 0, retryAfterMs: Math.max(0, global.resetAt - t) };
59
- }
60
- if (bucket.count >= max) {
61
- return { allowed: false, scope: "key", remaining: 0, retryAfterMs: Math.max(0, bucket.resetAt - t) };
62
- }
63
- bucket.count += 1;
64
- global.count += 1;
65
- return {
66
- allowed: true,
67
- scope: null,
68
- remaining: Math.max(0, max - bucket.count),
69
- retryAfterMs: Math.max(0, bucket.resetAt - t)
70
- };
71
- }
72
-
73
- function reset() {
74
- buckets.clear();
75
- global = { count: 0, resetAt: now() + windowMs };
76
- }
77
-
78
- return { check, reset, config: { windowMs, max, maxGlobal } };
79
- }
80
-
81
- module.exports = { createRateLimiter };
@@ -1,48 +0,0 @@
1
- "use strict";
2
-
3
- function listRecords(map, filters) {
4
- const entries = Array.from(map.values());
5
- const opts = filters || {};
6
- let items = entries;
7
- if (opts.status) items = items.filter((item) => item.status === opts.status);
8
- if (opts.account_id) items = items.filter((item) => item.account_id === opts.account_id);
9
- if (opts.quote_id) items = items.filter((item) => item.quote_id === opts.quote_id);
10
- if (opts.transaction_id) items = items.filter((item) => item.transaction_id === opts.transaction_id);
11
- if (opts.receipt_id) items = items.filter((item) => item.receipt_id === opts.receipt_id);
12
- if (opts.settlement_id) items = items.filter((item) => item.settlement_id === opts.settlement_id);
13
- if (opts.intent) items = items.filter((item) => item.intent === opts.intent);
14
- if (opts.callback_url) items = items.filter((item) => item.callback_url === opts.callback_url);
15
- if (opts.proof_ref) items = items.filter((item) => item.proof_ref === opts.proof_ref);
16
- if (opts.payment_id) items = items.filter((item) => item.payment_id === opts.payment_id);
17
- if (opts.currency) items = items.filter((item) => item.currency === opts.currency);
18
- if (opts.settlement_adapter) {
19
- items = items.filter((item) => item.settlement_adapter === opts.settlement_adapter || item.settlement_mode === opts.settlement_adapter);
20
- }
21
- if (opts.reason_code) items = items.filter((item) => item.reason_code === opts.reason_code);
22
- if (opts.action_code) items = items.filter((item) => item.action_code === opts.action_code);
23
- if (opts.assigned_owner) items = items.filter((item) => item.assigned_owner === opts.assigned_owner);
24
- if (opts.actor_role) {
25
- items = items.filter((item) => {
26
- if (item && item.created_actor && item.created_actor.role === opts.actor_role) {
27
- return true;
28
- }
29
- const history = Array.isArray(item && item.history) ? item.history : [];
30
- return history.some((event) => event && event.actor && event.actor.role === opts.actor_role);
31
- });
32
- }
33
- if (opts.context_source) {
34
- items = items.filter((item) => {
35
- if (item && item.created_context && item.created_context.source === opts.context_source) {
36
- return true;
37
- }
38
- const history = Array.isArray(item && item.history) ? item.history : [];
39
- return history.some((event) => event && event.context && event.context.source === opts.context_source);
40
- });
41
- }
42
- const limit = Math.max(1, Math.min(Number(opts.limit || 20), 100));
43
- return items.slice(0, limit);
44
- }
45
-
46
- module.exports = {
47
- listRecords
48
- };
@@ -1,50 +0,0 @@
1
- "use strict";
2
-
3
- const packageJson = require("../package.json");
4
-
5
- function buildReleaseCandidatePack() {
6
- return {
7
- ok: true,
8
- product: packageJson.name,
9
- category: "machine-commerce-release-candidate",
10
- version: packageJson.version,
11
- package_posture: {
12
- publish_access: packageJson.publishConfig && packageJson.publishConfig.access ? packageJson.publishConfig.access : null,
13
- engine: packageJson.engines && packageJson.engines.node ? packageJson.engines.node : null,
14
- bin_count: Object.keys(packageJson.bin || {}).length,
15
- published_file_count: Array.isArray(packageJson.files) ? packageJson.files.length : 0
16
- },
17
- rehearsal: {
18
- clean_install_command: "npm install xytara",
19
- dry_run_pack_command: "npm pack --dry-run --json",
20
- release_check_command: "npm run verify:release-candidate",
21
- first_release_view: "xytara-release --candidate --summary"
22
- },
23
- checklist: [
24
- "run npm run verify:release-candidate",
25
- "confirm npm pack --dry-run includes public docs and bin entrypoints",
26
- "confirm release-center and announcement-pack summaries are live after deploy",
27
- "confirm the first public proof path still succeeds",
28
- "only then proceed to npm publish"
29
- ]
30
- };
31
- }
32
-
33
- function summarizeReleaseCandidatePack() {
34
- const pack = buildReleaseCandidatePack();
35
- return {
36
- ok: true,
37
- product: pack.product,
38
- category: pack.category,
39
- version: pack.version,
40
- publish_access: pack.package_posture.publish_access,
41
- bin_count: pack.package_posture.bin_count,
42
- published_file_count: pack.package_posture.published_file_count,
43
- checklist_count: pack.checklist.length
44
- };
45
- }
46
-
47
- module.exports = {
48
- buildReleaseCandidatePack,
49
- summarizeReleaseCandidatePack
50
- };