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,554 +0,0 @@
1
- "use strict";
2
-
3
- const assert = require("assert");
4
- const fs = require("fs");
5
- const path = require("path");
6
-
7
- const manifestSchema = JSON.parse(
8
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "adapter-manifest.schema.json"), "utf8")
9
- );
10
- const registrationRecordSchema = JSON.parse(
11
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "integration-registration-record.schema.json"), "utf8")
12
- );
13
- const certificationPackSchema = JSON.parse(
14
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "integration-certification-pack.schema.json"), "utf8")
15
- );
16
- const submissionBundleSchema = JSON.parse(
17
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "integration-submission-bundle.schema.json"), "utf8")
18
- );
19
- const exampleManifest = JSON.parse(
20
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "example-execution-adapter.manifest.json"), "utf8")
21
- );
22
- const exampleSettlementManifest = JSON.parse(
23
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "example-settlement-adapter.manifest.json"), "utf8")
24
- );
25
- const exampleRegistrationRecord = JSON.parse(
26
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "example-third-party-registration.record.json"), "utf8")
27
- );
28
- const exampleCertificationPack = JSON.parse(
29
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "example-third-party-registration.certification-pack.json"), "utf8")
30
- );
31
- const exampleIdentityRegistrationRecord = JSON.parse(
32
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "example-third-party-identity-registration.record.json"), "utf8")
33
- );
34
- const exampleIdentityCertificationPack = JSON.parse(
35
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "example-third-party-identity-registration.certification-pack.json"), "utf8")
36
- );
37
- const exampleSettlementRegistrationRecord = JSON.parse(
38
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "example-third-party-settlement-registration.record.json"), "utf8")
39
- );
40
- const exampleSettlementCertificationPack = JSON.parse(
41
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "example-third-party-settlement-registration.certification-pack.json"), "utf8")
42
- );
43
- const exampleSubmissionBundle = JSON.parse(
44
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "example-third-party-registration.submission-bundle.json"), "utf8")
45
- );
46
- const minimalThirdPartyExecutionManifest = JSON.parse(
47
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "minimal-third-party-execution-adapter.manifest.json"), "utf8")
48
- );
49
- const langgraphReferenceManifest = JSON.parse(
50
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "langgraph-reference-execution-adapter.manifest.json"), "utf8")
51
- );
52
- const langchainReferenceManifest = JSON.parse(
53
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "langchain-reference-execution-adapter.manifest.json"), "utf8")
54
- );
55
- const minimalThirdPartyExecutionRegistrationRecord = JSON.parse(
56
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "minimal-third-party-execution-registration.record.json"), "utf8")
57
- );
58
- const minimalThirdPartyExecutionCertificationPack = JSON.parse(
59
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "minimal-third-party-execution.certification-pack.json"), "utf8")
60
- );
61
- const minimalThirdPartyExecutionSubmissionBundle = JSON.parse(
62
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "minimal-third-party-execution.submission-bundle.json"), "utf8")
63
- );
64
- const exampleIdentitySubmissionBundle = JSON.parse(
65
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "example-third-party-identity-registration.submission-bundle.json"), "utf8")
66
- );
67
- const exampleSettlementSubmissionBundle = JSON.parse(
68
- fs.readFileSync(path.resolve(__dirname, "..", "adapters", "examples", "example-third-party-settlement-registration.submission-bundle.json"), "utf8")
69
- );
70
- const minimalThirdPartyExecutionAdapter = require("../adapters/examples/minimal-third-party-execution-adapter");
71
- const langgraphReferenceAdapter = require("../adapters/examples/langgraph-reference-execution-adapter");
72
- const langchainReferenceAdapter = require("../adapters/examples/langchain-reference-execution-adapter");
73
- const exampleAdapter = require("../adapters/examples/example-execution-adapter");
74
- const exampleSettlementAdapter = require("../adapters/examples/example-settlement-adapter");
75
- const { ADAPTER_INTERFACE_VERSION, validateAdapterImplementation } = require("../adapters/interfaces");
76
- const {
77
- createIntegrationSubmissionBundle,
78
- validateIntegrationCertificationPack,
79
- validateIntegrationSubmission,
80
- validateIntegrationSubmissionBundle
81
- } = require("../integrations/registry");
82
-
83
- function validateType(value, type) {
84
- if (type === "array") return Array.isArray(value);
85
- if (type === "object") return value !== null && typeof value === "object" && !Array.isArray(value);
86
- if (type === "boolean") return typeof value === "boolean";
87
- if (type === "string") return typeof value === "string";
88
- return true;
89
- }
90
-
91
- function validateManifest(manifest, schema, pathLabel, errors) {
92
- const targetPath = pathLabel || "manifest";
93
- if (!validateType(manifest, schema.type)) {
94
- errors.push(`${targetPath} should be ${schema.type}`);
95
- return;
96
- }
97
-
98
- if (schema.type === "object") {
99
- const properties = schema.properties || {};
100
- const required = Array.isArray(schema.required) ? schema.required : [];
101
-
102
- for (const key of required) {
103
- if (!Object.prototype.hasOwnProperty.call(manifest, key)) {
104
- errors.push(`${targetPath}.${key} is required`);
105
- }
106
- }
107
-
108
- if (schema.additionalProperties === false) {
109
- for (const key of Object.keys(manifest)) {
110
- if (!Object.prototype.hasOwnProperty.call(properties, key)) {
111
- errors.push(`${targetPath}.${key} is not allowed`);
112
- }
113
- }
114
- }
115
-
116
- for (const [key, propertySchema] of Object.entries(properties)) {
117
- if (Object.prototype.hasOwnProperty.call(manifest, key)) {
118
- validateManifest(manifest[key], propertySchema, `${targetPath}.${key}`, errors);
119
- }
120
- }
121
- return;
122
- }
123
-
124
- if (schema.type === "array") {
125
- if (typeof schema.minItems === "number" && manifest.length < schema.minItems) {
126
- errors.push(`${targetPath} must contain at least ${schema.minItems} item(s)`);
127
- }
128
- manifest.forEach((value, index) => {
129
- validateManifest(value, schema.items || {}, `${targetPath}[${index}]`, errors);
130
- });
131
- return;
132
- }
133
-
134
- if (schema.type === "string") {
135
- if (typeof schema.minLength === "number" && manifest.length < schema.minLength) {
136
- errors.push(`${targetPath} must be at least ${schema.minLength} character(s)`);
137
- }
138
- if (Array.isArray(schema.enum) && !schema.enum.includes(manifest)) {
139
- errors.push(`${targetPath} must be one of: ${schema.enum.join(", ")}`);
140
- }
141
- }
142
- }
143
-
144
- async function main() {
145
- const errors = [];
146
- validateManifest(exampleManifest, manifestSchema, "manifest", errors);
147
- validateManifest(exampleSettlementManifest, manifestSchema, "settlement_manifest", errors);
148
- validateManifest(exampleRegistrationRecord, registrationRecordSchema, "registration_record", errors);
149
- validateManifest(exampleCertificationPack, certificationPackSchema, "certification_pack", errors);
150
- validateManifest(exampleIdentityRegistrationRecord, registrationRecordSchema, "identity_registration_record", errors);
151
- validateManifest(exampleIdentityCertificationPack, certificationPackSchema, "identity_certification_pack", errors);
152
- validateManifest(exampleSettlementRegistrationRecord, registrationRecordSchema, "settlement_registration_record", errors);
153
- validateManifest(exampleSettlementCertificationPack, certificationPackSchema, "settlement_certification_pack", errors);
154
- validateManifest(exampleSubmissionBundle, submissionBundleSchema, "submission_bundle", errors);
155
- validateManifest(minimalThirdPartyExecutionManifest, manifestSchema, "minimal_third_party_execution_manifest", errors);
156
- validateManifest(langgraphReferenceManifest, manifestSchema, "langgraph_reference_manifest", errors);
157
- validateManifest(langchainReferenceManifest, manifestSchema, "langchain_reference_manifest", errors);
158
- validateManifest(minimalThirdPartyExecutionRegistrationRecord, registrationRecordSchema, "minimal_third_party_execution_registration_record", errors);
159
- validateManifest(minimalThirdPartyExecutionCertificationPack, certificationPackSchema, "minimal_third_party_execution_certification_pack", errors);
160
- validateManifest(minimalThirdPartyExecutionSubmissionBundle, submissionBundleSchema, "minimal_third_party_execution_submission_bundle", errors);
161
- validateManifest(exampleIdentitySubmissionBundle, submissionBundleSchema, "identity_submission_bundle", errors);
162
- validateManifest(exampleSettlementSubmissionBundle, submissionBundleSchema, "settlement_submission_bundle", errors);
163
- assert.deepStrictEqual(errors, [], `adapter manifest validation failed:\n${errors.join("\n")}`);
164
-
165
- assert.strictEqual(exampleManifest.adapter_class, "execution_adapter", "example adapter class mismatch");
166
- assert.strictEqual(exampleManifest.proof_contract.emits_proof_compatible_facts, true, "example adapter proof contract mismatch");
167
- assert.strictEqual(
168
- exampleManifest.compatibility.commerce_contract,
169
- "commerce-repo-final-contract/v1",
170
- "example adapter commerce compatibility mismatch"
171
- );
172
- assert.strictEqual(
173
- exampleManifest.compatibility.proof_contract,
174
- "proof-repo-final-contract/v1",
175
- "example adapter proof compatibility mismatch"
176
- );
177
- assert.strictEqual(
178
- exampleManifest.registration_contract.integration_id,
179
- exampleManifest.adapter_id,
180
- "example adapter registration integration_id mismatch"
181
- );
182
- assert.strictEqual(
183
- exampleManifest.registration_contract.integration_maturity,
184
- "reference_example",
185
- "example adapter registration maturity mismatch"
186
- );
187
- assert.strictEqual(
188
- exampleManifest.certification_contract.certification_state,
189
- "reference_example",
190
- "example adapter certification state mismatch"
191
- );
192
- assert.strictEqual(
193
- exampleManifest.failure_contract.retryable_categories.every((entry) => exampleManifest.failure_contract.categories.includes(entry)),
194
- true,
195
- "retryable categories must be declared in categories"
196
- );
197
- assert.strictEqual(exampleManifest.interface_version, ADAPTER_INTERFACE_VERSION, "example adapter interface version mismatch");
198
- assert.strictEqual(exampleSettlementManifest.adapter_class, "settlement_adapter", "example settlement adapter class mismatch");
199
- assert.strictEqual(exampleSettlementManifest.interface_version, ADAPTER_INTERFACE_VERSION, "example settlement adapter interface version mismatch");
200
- assert.strictEqual(
201
- exampleSettlementManifest.registration_contract.integration_id,
202
- exampleSettlementManifest.adapter_id,
203
- "example settlement adapter registration integration_id mismatch"
204
- );
205
- assert.strictEqual(
206
- exampleSettlementManifest.certification_contract.certification_state,
207
- "reference_example",
208
- "example settlement adapter certification state mismatch"
209
- );
210
- assert.strictEqual(
211
- exampleRegistrationRecord.adapter_class,
212
- "agent_protocol_adapter",
213
- "example registration record adapter class mismatch"
214
- );
215
- assert.strictEqual(
216
- exampleRegistrationRecord.registration_state,
217
- "staging_registered",
218
- "example registration record state mismatch"
219
- );
220
- assert.strictEqual(
221
- exampleRegistrationRecord.bundled,
222
- false,
223
- "example registration record bundled posture mismatch"
224
- );
225
- assert.strictEqual(
226
- exampleRegistrationRecord.requires_explicit_selection,
227
- true,
228
- "example registration record explicit-selection posture mismatch"
229
- );
230
- assert.strictEqual(
231
- exampleIdentityRegistrationRecord.adapter_class,
232
- "identity_registry_adapter",
233
- "example identity registration record adapter class mismatch"
234
- );
235
- assert.strictEqual(
236
- exampleIdentityRegistrationRecord.registration_state,
237
- "staging_registered",
238
- "example identity registration record state mismatch"
239
- );
240
- assert.strictEqual(
241
- exampleIdentityRegistrationRecord.requires_explicit_selection,
242
- true,
243
- "example identity registration record explicit-selection posture mismatch"
244
- );
245
- assert.strictEqual(
246
- exampleSettlementRegistrationRecord.adapter_class,
247
- "settlement_adapter",
248
- "example settlement registration record adapter class mismatch"
249
- );
250
- assert.strictEqual(
251
- exampleSettlementRegistrationRecord.registration_state,
252
- "staging_registered",
253
- "example settlement registration record state mismatch"
254
- );
255
- assert.strictEqual(
256
- exampleSettlementRegistrationRecord.requires_explicit_selection,
257
- true,
258
- "example settlement registration record explicit-selection posture mismatch"
259
- );
260
- assert.strictEqual(
261
- exampleCertificationPack.integration_id,
262
- exampleRegistrationRecord.integration_id,
263
- "example certification pack integration_id mismatch"
264
- );
265
- assert.strictEqual(
266
- exampleCertificationPack.adapter_class,
267
- exampleRegistrationRecord.adapter_class,
268
- "example certification pack adapter class mismatch"
269
- );
270
- assert.strictEqual(
271
- exampleIdentityCertificationPack.integration_id,
272
- exampleIdentityRegistrationRecord.integration_id,
273
- "example identity certification pack integration_id mismatch"
274
- );
275
- assert.strictEqual(
276
- exampleIdentityCertificationPack.adapter_class,
277
- exampleIdentityRegistrationRecord.adapter_class,
278
- "example identity certification pack adapter class mismatch"
279
- );
280
- assert.strictEqual(
281
- exampleSettlementCertificationPack.integration_id,
282
- exampleSettlementRegistrationRecord.integration_id,
283
- "example settlement certification pack integration_id mismatch"
284
- );
285
- assert.strictEqual(
286
- exampleSettlementManifest.failure_contract.retryable_categories.every((entry) => exampleSettlementManifest.failure_contract.categories.includes(entry)),
287
- true,
288
- "settlement adapter retryable categories must be declared in categories"
289
- );
290
- assert.strictEqual(
291
- validateIntegrationCertificationPack(exampleCertificationPack).ok,
292
- true,
293
- "example certification pack validation mismatch"
294
- );
295
- assert.strictEqual(
296
- validateIntegrationCertificationPack(exampleIdentityCertificationPack).ok,
297
- true,
298
- "example identity certification pack validation mismatch"
299
- );
300
- assert.strictEqual(
301
- validateIntegrationCertificationPack(exampleSettlementCertificationPack).ok,
302
- true,
303
- "example settlement certification pack validation mismatch"
304
- );
305
- assert.strictEqual(
306
- validateIntegrationSubmission({
307
- adapter_id: exampleRegistrationRecord.adapter_id,
308
- adapter_class: exampleRegistrationRecord.adapter_class
309
- }, exampleRegistrationRecord, exampleCertificationPack).ok,
310
- true,
311
- "third-party protocol submission validation mismatch"
312
- );
313
- assert.strictEqual(
314
- validateIntegrationSubmission({
315
- adapter_id: exampleIdentityRegistrationRecord.adapter_id,
316
- adapter_class: exampleIdentityRegistrationRecord.adapter_class
317
- }, exampleIdentityRegistrationRecord, exampleIdentityCertificationPack).ok,
318
- true,
319
- "third-party identity submission validation mismatch"
320
- );
321
- assert.strictEqual(
322
- validateIntegrationSubmission({
323
- adapter_id: exampleSettlementRegistrationRecord.adapter_id,
324
- adapter_class: exampleSettlementRegistrationRecord.adapter_class
325
- }, exampleSettlementRegistrationRecord, exampleSettlementCertificationPack).ok,
326
- true,
327
- "third-party settlement submission validation mismatch"
328
- );
329
- assert.strictEqual(
330
- validateIntegrationSubmissionBundle(exampleSubmissionBundle).ok,
331
- true,
332
- "submission bundle validation mismatch"
333
- );
334
- assert.strictEqual(
335
- validateIntegrationSubmissionBundle(exampleIdentitySubmissionBundle).ok,
336
- true,
337
- "identity submission bundle validation mismatch"
338
- );
339
- assert.strictEqual(
340
- validateIntegrationSubmissionBundle(exampleSettlementSubmissionBundle).ok,
341
- true,
342
- "settlement submission bundle validation mismatch"
343
- );
344
- assert.strictEqual(
345
- minimalThirdPartyExecutionManifest.adapter_class,
346
- "execution_adapter",
347
- "minimal third-party execution manifest adapter class mismatch"
348
- );
349
- assert.strictEqual(
350
- minimalThirdPartyExecutionManifest.registration_contract.bundled,
351
- false,
352
- "minimal third-party execution bundled posture mismatch"
353
- );
354
- assert.strictEqual(langgraphReferenceManifest.adapter_class, "execution_adapter", "langgraph reference adapter class mismatch");
355
- assert.strictEqual(langgraphReferenceManifest.registration_contract.bundled, true, "langgraph reference bundled posture mismatch");
356
- assert.strictEqual(langgraphReferenceManifest.certification_contract.certification_state, "reference_example", "langgraph reference certification mismatch");
357
- assert.strictEqual(langchainReferenceManifest.adapter_class, "execution_adapter", "langchain reference adapter class mismatch");
358
- assert.strictEqual(langchainReferenceManifest.registration_contract.bundled, true, "langchain reference bundled posture mismatch");
359
- assert.strictEqual(langchainReferenceManifest.certification_contract.certification_state, "reference_example", "langchain reference certification mismatch");
360
- assert.strictEqual(
361
- minimalThirdPartyExecutionRegistrationRecord.integration_id,
362
- minimalThirdPartyExecutionManifest.adapter_id,
363
- "minimal third-party execution registration integration_id mismatch"
364
- );
365
- assert.strictEqual(
366
- minimalThirdPartyExecutionCertificationPack.integration_id,
367
- minimalThirdPartyExecutionRegistrationRecord.integration_id,
368
- "minimal third-party execution certification integration_id mismatch"
369
- );
370
- assert.strictEqual(
371
- validateIntegrationCertificationPack(minimalThirdPartyExecutionCertificationPack).ok,
372
- true,
373
- "minimal third-party execution certification pack validation mismatch"
374
- );
375
- assert.strictEqual(
376
- validateIntegrationSubmission(minimalThirdPartyExecutionManifest, minimalThirdPartyExecutionRegistrationRecord, minimalThirdPartyExecutionCertificationPack).ok,
377
- true,
378
- "minimal third-party execution submission validation mismatch"
379
- );
380
- assert.strictEqual(
381
- validateIntegrationSubmissionBundle(minimalThirdPartyExecutionSubmissionBundle).ok,
382
- true,
383
- "minimal third-party execution submission bundle validation mismatch"
384
- );
385
- assert.strictEqual(
386
- createIntegrationSubmissionBundle(minimalThirdPartyExecutionSubmissionBundle, {
387
- source: "third_party_example",
388
- protocols: [],
389
- execution_backends: ["http"],
390
- adapter_lanes: ["http"],
391
- task_refs: ["task.execute", "task.preview"]
392
- }).snapshot_entry.integration_id,
393
- "partner.execution.minimal_echo",
394
- "minimal third-party execution submission bundle normalization mismatch"
395
- );
396
- assert.strictEqual(
397
- createIntegrationSubmissionBundle(exampleIdentitySubmissionBundle, {
398
- source: "third_party_example",
399
- protocols: [],
400
- execution_backends: ["http", "chain"],
401
- adapter_lanes: ["http", "chain"],
402
- task_refs: ["registry.register", "trust.handoff.emit", "trust.handoff.validate"]
403
- }).snapshot_entry.integration_id,
404
- "partner.identity.attest_registry",
405
- "identity submission bundle normalization mismatch"
406
- );
407
- assert.strictEqual(
408
- createIntegrationSubmissionBundle(exampleSubmissionBundle, {
409
- source: "third_party_example",
410
- protocols: ["mcp"],
411
- execution_backends: ["mcp"],
412
- adapter_lanes: ["mcp"],
413
- task_refs: ["adapter.mcp.invoke"]
414
- }).snapshot_entry.integration_id,
415
- "partner.protocol.acme_mcp",
416
- "submission bundle normalization mismatch"
417
- );
418
-
419
- const implementationErrors = validateAdapterImplementation(exampleAdapter);
420
- assert.deepStrictEqual(implementationErrors, [], `adapter implementation validation failed:\n${implementationErrors.join("\n")}`);
421
- assert.deepStrictEqual(exampleAdapter.manifest, exampleManifest, "example adapter manifest/export mismatch");
422
- const minimalImplementationErrors = validateAdapterImplementation(minimalThirdPartyExecutionAdapter);
423
- assert.deepStrictEqual(minimalImplementationErrors, [], `minimal execution adapter implementation validation failed:\n${minimalImplementationErrors.join("\n")}`);
424
- assert.deepStrictEqual(
425
- minimalThirdPartyExecutionAdapter.manifest,
426
- minimalThirdPartyExecutionManifest,
427
- "minimal third-party execution adapter manifest/export mismatch"
428
- );
429
- const langgraphImplementationErrors = validateAdapterImplementation(langgraphReferenceAdapter);
430
- assert.deepStrictEqual(langgraphImplementationErrors, [], `langgraph reference adapter implementation validation failed:\n${langgraphImplementationErrors.join("\n")}`);
431
- assert.deepStrictEqual(langgraphReferenceAdapter.manifest, langgraphReferenceManifest, "langgraph reference adapter manifest/export mismatch");
432
- const langchainImplementationErrors = validateAdapterImplementation(langchainReferenceAdapter);
433
- assert.deepStrictEqual(langchainImplementationErrors, [], `langchain reference adapter implementation validation failed:\n${langchainImplementationErrors.join("\n")}`);
434
- assert.deepStrictEqual(langchainReferenceAdapter.manifest, langchainReferenceManifest, "langchain reference adapter manifest/export mismatch");
435
- const settlementImplementationErrors = validateAdapterImplementation(exampleSettlementAdapter);
436
- assert.deepStrictEqual(
437
- settlementImplementationErrors,
438
- [],
439
- `settlement adapter implementation validation failed:\n${settlementImplementationErrors.join("\n")}`
440
- );
441
- assert.deepStrictEqual(
442
- exampleSettlementAdapter.manifest,
443
- exampleSettlementManifest,
444
- "example settlement adapter manifest/export mismatch"
445
- );
446
-
447
- const health = await exampleAdapter.getHealth();
448
- assert.strictEqual(health.status, "ok", "example adapter health mismatch");
449
- assert.strictEqual(health.adapter_id, exampleManifest.adapter_id, "example adapter health adapter_id mismatch");
450
-
451
- const capabilities = exampleAdapter.describeCapabilities();
452
- assert.deepStrictEqual(capabilities.capabilities, exampleManifest.capabilities, "example adapter capabilities mismatch");
453
-
454
- const preview = await exampleAdapter.preview({
455
- task_ref: "trust.verify",
456
- body: { subject_id: "subject-1" }
457
- });
458
- assert.strictEqual(preview.accepted, true, "example adapter preview acceptance mismatch");
459
- assert.strictEqual(preview.preview.task_ref, "trust.verify", "example adapter preview task_ref mismatch");
460
-
461
- const minimalHealth = await minimalThirdPartyExecutionAdapter.getHealth();
462
- assert.strictEqual(minimalHealth.status, "ok", "minimal execution adapter health mismatch");
463
- assert.strictEqual(minimalHealth.adapter_id, minimalThirdPartyExecutionManifest.adapter_id, "minimal execution adapter health adapter_id mismatch");
464
-
465
- const minimalPreview = await minimalThirdPartyExecutionAdapter.preview({
466
- task_ref: "task.execute",
467
- body: { subject_id: "subject-minimal-1" }
468
- });
469
- assert.strictEqual(minimalPreview.accepted, true, "minimal execution adapter preview acceptance mismatch");
470
- assert.strictEqual(minimalPreview.preview.task_ref, "task.execute", "minimal execution adapter preview task_ref mismatch");
471
-
472
- const minimalExecution = await minimalThirdPartyExecutionAdapter.execute({
473
- task_ref: "task.execute",
474
- body: { subject_id: "subject-minimal-1" }
475
- });
476
- assert.strictEqual(minimalExecution.status, "completed", "minimal execution adapter execute status mismatch");
477
- assert.strictEqual(
478
- minimalExecution.proof_facts.emits_proof_compatible_facts,
479
- true,
480
- "minimal execution adapter execute proof contract mismatch"
481
- );
482
-
483
- const langgraphHealth = await langgraphReferenceAdapter.getHealth();
484
- assert.strictEqual(langgraphHealth.status, "ok", "langgraph reference health mismatch");
485
- const langgraphExecution = await langgraphReferenceAdapter.execute({
486
- task_ref: "framework.langgraph.execute",
487
- body: {
488
- graph_ref: "graph.demo",
489
- node_ref: "summarize",
490
- checkpoint_ref: "checkpoint.demo",
491
- input: { text: "demo" }
492
- }
493
- });
494
- assert.strictEqual(langgraphExecution.status, "completed", "langgraph reference execution status mismatch");
495
- assert.strictEqual(langgraphExecution.result.framework, "langgraph", "langgraph reference framework mismatch");
496
- assert.strictEqual(langgraphExecution.proof_facts.graph_ref, "graph.demo", "langgraph proof graph ref mismatch");
497
-
498
- const langchainHealth = await langchainReferenceAdapter.getHealth();
499
- assert.strictEqual(langchainHealth.status, "ok", "langchain reference health mismatch");
500
- const langchainExecution = await langchainReferenceAdapter.execute({
501
- task_ref: "framework.langchain.execute",
502
- body: {
503
- chain_ref: "chain.demo",
504
- tool_trace_ref: "trace.demo",
505
- context_ref: "context.demo",
506
- input: { text: "demo" }
507
- }
508
- });
509
- assert.strictEqual(langchainExecution.status, "completed", "langchain reference execution status mismatch");
510
- assert.strictEqual(langchainExecution.result.framework, "langchain", "langchain reference framework mismatch");
511
- assert.strictEqual(langchainExecution.proof_facts.chain_ref, "chain.demo", "langchain proof chain ref mismatch");
512
-
513
- const execution = await exampleAdapter.execute({
514
- task_ref: "trust.verify",
515
- body: { subject_id: "subject-1" }
516
- });
517
- assert.strictEqual(execution.status, "completed", "example adapter execute status mismatch");
518
- assert.strictEqual(
519
- execution.proof_facts.emits_proof_compatible_facts,
520
- true,
521
- "example adapter execute proof contract mismatch"
522
- );
523
-
524
- const settlementHealth = await exampleSettlementAdapter.getHealth();
525
- assert.strictEqual(settlementHealth.status, "ok", "example settlement adapter health mismatch");
526
- assert.strictEqual(settlementHealth.adapter_id, exampleSettlementManifest.adapter_id, "example settlement adapter health adapter_id mismatch");
527
-
528
- const settlementCapabilities = exampleSettlementAdapter.describeCapabilities();
529
- assert.deepStrictEqual(
530
- settlementCapabilities.capabilities,
531
- exampleSettlementManifest.capabilities,
532
- "example settlement adapter capabilities mismatch"
533
- );
534
-
535
- const settlementResult = await exampleSettlementAdapter.settle({
536
- intent_id: "intent-demo"
537
- });
538
- assert.strictEqual(settlementResult.status, "submitted", "example settlement adapter settle status mismatch");
539
- assert.strictEqual(
540
- settlementResult.proof_facts.emits_proof_compatible_facts,
541
- true,
542
- "example settlement adapter proof contract mismatch"
543
- );
544
-
545
- const finality = await exampleSettlementAdapter.getFinality(settlementResult.settlement_ref);
546
- assert.strictEqual(finality.finality_status, "confirmed", "example settlement adapter finality mismatch");
547
-
548
- process.stdout.write("xytara verify:adapters passed\n");
549
- }
550
-
551
- main().catch((error) => {
552
- console.error(error);
553
- process.exitCode = 1;
554
- });