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,1156 +0,0 @@
1
- "use strict";
2
-
3
- const { decorateTaskMetadata } = require("../lib/catalog_family_model");
4
-
5
- function makeTask(definition) {
6
- const metadata = decorateTaskMetadata(definition);
7
- return {
8
- task_ref: definition.task_ref,
9
- public_task_ref: definition.public_task_ref,
10
- public_aliases: [definition.public_task_ref],
11
- public_category: definition.public_category,
12
- public_title: definition.public_title,
13
- execution_mode: definition.execution_mode,
14
- pricing_band: definition.pricing_band,
15
- public_launch_price: definition.public_launch_price,
16
- pricing_note: "Final settlement amount can vary by rail.",
17
- latency_class: definition.latency_class,
18
- failure_posture: definition.failure_posture,
19
- input_schema: definition.input_schema,
20
- capabilities: definition.capabilities,
21
- adapters: definition.adapters,
22
- task_family: metadata.task_family,
23
- lifecycle_stage: metadata.lifecycle_stage,
24
- market_class: metadata.market_class,
25
- claim_status: metadata.claim_status,
26
- evidence_status: metadata.evidence_status
27
- };
28
- }
29
-
30
- const settlementProfiles = [
31
- {
32
- mode: "bsv_teranode",
33
- adapter: "chain",
34
- asset: "BSV_SATS",
35
- payee_agent_id: "agent_payment_target",
36
- payee_label: "commerce-treasury",
37
- units_per_pricing_unit: 100,
38
- bsv_teranode: {
39
- required_input: ["txid"],
40
- transport: "teranode",
41
- metanet_optional: true
42
- }
43
- },
44
- {
45
- mode: "evm_payment",
46
- adapter: "chain",
47
- asset: "USDC_BASE_UNITS",
48
- payee_agent_id: "agent_payment_target",
49
- payee_label: "commerce-treasury",
50
- units_per_pricing_unit: 10000,
51
- evm_payment: {
52
- required_input: ["tx_hash"]
53
- }
54
- },
55
- {
56
- mode: "solana_payment",
57
- adapter: "chain",
58
- asset: "USDC_SPL_BASE_UNITS",
59
- payee_agent_id: "agent_payment_target",
60
- payee_label: "commerce-treasury",
61
- units_per_pricing_unit: 10000,
62
- solana_payment: {
63
- required_input: ["signature"]
64
- }
65
- },
66
- {
67
- mode: "xpr_payment",
68
- adapter: "chain",
69
- asset: "XPR_BASE_UNITS",
70
- payee_agent_id: "agent_payment_target",
71
- payee_label: "commerce-treasury",
72
- units_per_pricing_unit: 100,
73
- proton_xpr_payment: {
74
- required_input: ["transaction_id"]
75
- }
76
- },
77
- {
78
- mode: "antelope_payment",
79
- adapter: "chain",
80
- asset: "EOSIO_BASE_UNITS",
81
- payee_agent_id: "agent_payment_target",
82
- payee_label: "commerce-treasury",
83
- units_per_pricing_unit: 100,
84
- antelope_eosio_payment: {
85
- required_input: ["transaction_id"]
86
- }
87
- }
88
- ];
89
-
90
- const tasks = [
91
- makeTask({
92
- task_ref: "internal.trust.verify",
93
- public_task_ref: "trust.verify",
94
- public_category: "trust",
95
- public_title: "Trust Verify",
96
- execution_mode: "direct_http",
97
- pricing_band: "trust_critical",
98
- public_launch_price: { amount_minor: 50, currency: "USD_CENTS" },
99
- latency_class: "near_real_time",
100
- failure_posture: "retry_bounded",
101
- input_schema: {
102
- type: "object",
103
- required: ["subject_id"],
104
- properties: {
105
- subject_id: { type: "string" }
106
- },
107
- additionalProperties: false
108
- },
109
- capabilities: ["trust.verify"],
110
- adapters: ["http"]
111
- }),
112
- makeTask({
113
- task_ref: "internal.trust.handoff.emit",
114
- public_task_ref: "trust.handoff.emit",
115
- public_category: "trust",
116
- public_title: "Trust Handoff Emit",
117
- execution_mode: "direct_http",
118
- pricing_band: "trust_critical",
119
- public_launch_price: { amount_minor: 65, currency: "USD_CENTS" },
120
- latency_class: "near_real_time",
121
- failure_posture: "retry_bounded",
122
- input_schema: {
123
- type: "object",
124
- required: ["subject_id", "execution_ref"],
125
- properties: {
126
- subject_id: { type: "string" },
127
- execution_ref: { type: "string" }
128
- },
129
- additionalProperties: false
130
- },
131
- capabilities: ["trust.handoff.emit"],
132
- adapters: ["http"]
133
- }),
134
- makeTask({
135
- task_ref: "internal.trust.handoff.validate",
136
- public_task_ref: "trust.handoff.validate",
137
- public_category: "trust",
138
- public_title: "Trust Handoff Validate",
139
- execution_mode: "direct_http",
140
- pricing_band: "trust_critical",
141
- public_launch_price: { amount_minor: 65, currency: "USD_CENTS" },
142
- latency_class: "near_real_time",
143
- failure_posture: "fail_fast",
144
- input_schema: {
145
- type: "object",
146
- required: ["handoff_id"],
147
- properties: {
148
- handoff_id: { type: "string" }
149
- },
150
- additionalProperties: false
151
- },
152
- capabilities: ["trust.handoff.validate"],
153
- adapters: ["http"]
154
- }),
155
- makeTask({
156
- task_ref: "internal.receipt.validate",
157
- public_task_ref: "receipt.validate",
158
- public_category: "receipt",
159
- public_title: "Receipt Validate",
160
- execution_mode: "direct_http",
161
- pricing_band: "trust_critical",
162
- public_launch_price: { amount_minor: 60, currency: "USD_CENTS" },
163
- latency_class: "instant",
164
- failure_posture: "fail_fast",
165
- input_schema: {
166
- type: "object",
167
- required: ["receipt_id"],
168
- properties: {
169
- receipt_id: { type: "string" }
170
- },
171
- additionalProperties: false
172
- },
173
- capabilities: ["receipt.validate"],
174
- adapters: ["http"]
175
- }),
176
- makeTask({
177
- task_ref: "internal.execution_receipt.handoff.emit",
178
- public_task_ref: "execution_receipt.handoff.emit",
179
- public_category: "receipt",
180
- public_title: "Execution Receipt Handoff Emit",
181
- execution_mode: "direct_http",
182
- pricing_band: "trust_critical",
183
- public_launch_price: { amount_minor: 70, currency: "USD_CENTS" },
184
- latency_class: "near_real_time",
185
- failure_posture: "retry_bounded",
186
- input_schema: {
187
- type: "object",
188
- required: ["execution_ref"],
189
- properties: {
190
- execution_ref: { type: "string" }
191
- },
192
- additionalProperties: false
193
- },
194
- capabilities: ["execution_receipt.handoff.emit"],
195
- adapters: ["http"]
196
- }),
197
- makeTask({
198
- task_ref: "internal.execution_receipt.handoff.validate",
199
- public_task_ref: "execution_receipt.handoff.validate",
200
- public_category: "receipt",
201
- public_title: "Execution Receipt Handoff Validate",
202
- execution_mode: "direct_http",
203
- pricing_band: "trust_critical",
204
- public_launch_price: { amount_minor: 70, currency: "USD_CENTS" },
205
- latency_class: "near_real_time",
206
- failure_posture: "fail_fast",
207
- input_schema: {
208
- type: "object",
209
- required: ["handoff_id"],
210
- properties: {
211
- handoff_id: { type: "string" }
212
- },
213
- additionalProperties: false
214
- },
215
- capabilities: ["execution_receipt.handoff.validate"],
216
- adapters: ["http"]
217
- }),
218
- makeTask({
219
- task_ref: "internal.receipt_ledger.handoff.emit",
220
- public_task_ref: "receipt_ledger.handoff.emit",
221
- public_category: "receipt",
222
- public_title: "Receipt Ledger Handoff Emit",
223
- execution_mode: "direct_http",
224
- pricing_band: "trust_critical",
225
- public_launch_price: { amount_minor: 75, currency: "USD_CENTS" },
226
- latency_class: "near_real_time",
227
- failure_posture: "retry_bounded",
228
- input_schema: {
229
- type: "object",
230
- required: ["receipt_id", "ledger_ref"],
231
- properties: {
232
- receipt_id: { type: "string" },
233
- ledger_ref: { type: "string" }
234
- },
235
- additionalProperties: false
236
- },
237
- capabilities: ["receipt_ledger.handoff.emit"],
238
- adapters: ["http"]
239
- }),
240
- makeTask({
241
- task_ref: "internal.receipt_ledger.handoff.validate",
242
- public_task_ref: "receipt_ledger.handoff.validate",
243
- public_category: "receipt",
244
- public_title: "Receipt Ledger Handoff Validate",
245
- execution_mode: "direct_http",
246
- pricing_band: "trust_critical",
247
- public_launch_price: { amount_minor: 75, currency: "USD_CENTS" },
248
- latency_class: "near_real_time",
249
- failure_posture: "fail_fast",
250
- input_schema: {
251
- type: "object",
252
- required: ["handoff_id"],
253
- properties: {
254
- handoff_id: { type: "string" }
255
- },
256
- additionalProperties: false
257
- },
258
- capabilities: ["receipt_ledger.handoff.validate"],
259
- adapters: ["http"]
260
- }),
261
- makeTask({
262
- task_ref: "internal.runtime.emit",
263
- public_task_ref: "runtime.emit",
264
- public_category: "runtime",
265
- public_title: "Runtime Emit",
266
- execution_mode: "governed_async",
267
- pricing_band: "governed_high_consequence",
268
- public_launch_price: { amount_minor: 225, currency: "USD_CENTS" },
269
- latency_class: "governed_async",
270
- failure_posture: "governed_async",
271
- input_schema: {
272
- type: "object",
273
- required: ["intent_id", "event_type"],
274
- properties: {
275
- intent_id: { type: "string" },
276
- event_type: { type: "string" }
277
- },
278
- additionalProperties: false
279
- },
280
- capabilities: ["runtime.emit"],
281
- adapters: ["http"]
282
- }),
283
- makeTask({
284
- task_ref: "internal.runtime.anchor",
285
- public_task_ref: "runtime.anchor",
286
- public_category: "runtime",
287
- public_title: "Runtime Anchor",
288
- execution_mode: "governed_async",
289
- pricing_band: "governed_high_consequence",
290
- public_launch_price: { amount_minor: 275, currency: "USD_CENTS" },
291
- latency_class: "governed_async",
292
- failure_posture: "governed_async",
293
- input_schema: {
294
- type: "object",
295
- required: ["event_commitment"],
296
- properties: {
297
- event_commitment: { type: "string" }
298
- },
299
- additionalProperties: false
300
- },
301
- capabilities: ["runtime.anchor"],
302
- adapters: ["chain"]
303
- }),
304
- makeTask({
305
- task_ref: "internal.runtime.emit_anchor",
306
- public_task_ref: "runtime.emit_anchor",
307
- public_category: "runtime",
308
- public_title: "Runtime Emit And Anchor",
309
- execution_mode: "governed_async",
310
- pricing_band: "governed_high_consequence",
311
- public_launch_price: { amount_minor: 450, currency: "USD_CENTS" },
312
- latency_class: "governed_async",
313
- failure_posture: "governed_async",
314
- input_schema: {
315
- type: "object",
316
- required: ["intent_id", "event_type"],
317
- properties: {
318
- intent_id: { type: "string" },
319
- event_type: { type: "string" }
320
- },
321
- additionalProperties: false
322
- },
323
- capabilities: ["runtime.emit_anchor"],
324
- adapters: ["http", "chain"]
325
- }),
326
- makeTask({
327
- task_ref: "internal.jobs.quote",
328
- public_task_ref: "jobs.quote",
329
- public_category: "jobs",
330
- public_title: "Jobs Quote",
331
- execution_mode: "direct_http",
332
- pricing_band: "decision_support",
333
- public_launch_price: { amount_minor: 35, currency: "USD_CENTS" },
334
- latency_class: "instant",
335
- failure_posture: "fail_fast",
336
- input_schema: {
337
- type: "object",
338
- required: ["job_type"],
339
- properties: {
340
- job_type: { type: "string" }
341
- },
342
- additionalProperties: false
343
- },
344
- capabilities: ["jobs.quote"],
345
- adapters: ["http"]
346
- }),
347
- makeTask({
348
- task_ref: "internal.jobs.reserve",
349
- public_task_ref: "jobs.reserve",
350
- public_category: "jobs",
351
- public_title: "Jobs Reserve",
352
- execution_mode: "governed_async",
353
- pricing_band: "transactional",
354
- public_launch_price: { amount_minor: 95, currency: "USD_CENTS" },
355
- latency_class: "near_real_time",
356
- failure_posture: "retry_bounded",
357
- input_schema: {
358
- type: "object",
359
- required: ["job_id"],
360
- properties: {
361
- job_id: { type: "string" }
362
- },
363
- additionalProperties: false
364
- },
365
- capabilities: ["jobs.reserve"],
366
- adapters: ["http"]
367
- }),
368
- makeTask({
369
- task_ref: "internal.jobs.commit",
370
- public_task_ref: "jobs.commit",
371
- public_category: "jobs",
372
- public_title: "Jobs Commit",
373
- execution_mode: "governed_async",
374
- pricing_band: "transactional",
375
- public_launch_price: { amount_minor: 125, currency: "USD_CENTS" },
376
- latency_class: "governed_async",
377
- failure_posture: "governed_async",
378
- input_schema: {
379
- type: "object",
380
- required: ["job_id"],
381
- properties: {
382
- job_id: { type: "string" }
383
- },
384
- additionalProperties: false
385
- },
386
- capabilities: ["jobs.commit"],
387
- adapters: ["http"]
388
- }),
389
- makeTask({
390
- task_ref: "internal.jobs.release",
391
- public_task_ref: "jobs.release",
392
- public_category: "jobs",
393
- public_title: "Jobs Release",
394
- execution_mode: "governed_async",
395
- pricing_band: "transactional",
396
- public_launch_price: { amount_minor: 55, currency: "USD_CENTS" },
397
- latency_class: "near_real_time",
398
- failure_posture: "retry_bounded",
399
- input_schema: {
400
- type: "object",
401
- required: ["job_id"],
402
- properties: {
403
- job_id: { type: "string" }
404
- },
405
- additionalProperties: false
406
- },
407
- capabilities: ["jobs.release"],
408
- adapters: ["http"]
409
- }),
410
- makeTask({
411
- task_ref: "internal.credits.preview",
412
- public_task_ref: "credits.preview",
413
- public_category: "credits",
414
- public_title: "Credits Preview",
415
- execution_mode: "direct_http",
416
- pricing_band: "utility",
417
- public_launch_price: { amount_minor: 15, currency: "USD_CENTS" },
418
- latency_class: "instant",
419
- failure_posture: "fail_fast",
420
- input_schema: {
421
- type: "object",
422
- required: ["account_id"],
423
- properties: {
424
- account_id: { type: "string" }
425
- },
426
- additionalProperties: false
427
- },
428
- capabilities: ["credits.preview"],
429
- adapters: ["http"]
430
- }),
431
- makeTask({
432
- task_ref: "internal.credits.apply",
433
- public_task_ref: "credits.apply",
434
- public_category: "credits",
435
- public_title: "Credits Apply",
436
- execution_mode: "governed_async",
437
- pricing_band: "transactional",
438
- public_launch_price: { amount_minor: 45, currency: "USD_CENTS" },
439
- latency_class: "near_real_time",
440
- failure_posture: "retry_bounded",
441
- input_schema: {
442
- type: "object",
443
- required: ["account_id", "amount_minor"],
444
- properties: {
445
- account_id: { type: "string" },
446
- amount_minor: { type: "integer", minimum: 1 }
447
- },
448
- additionalProperties: false
449
- },
450
- capabilities: ["credits.apply"],
451
- adapters: ["http"]
452
- }),
453
- makeTask({
454
- task_ref: "internal.a2a.negotiate",
455
- public_task_ref: "a2a.negotiate",
456
- public_category: "a2a",
457
- public_title: "A2A Negotiate",
458
- execution_mode: "direct_http",
459
- pricing_band: "decision_support",
460
- public_launch_price: { amount_minor: 45, currency: "USD_CENTS" },
461
- latency_class: "near_real_time",
462
- failure_posture: "retry_bounded",
463
- input_schema: {
464
- type: "object",
465
- required: ["counterparty_agent_id", "task_pack_ref"],
466
- properties: {
467
- counterparty_agent_id: { type: "string" },
468
- task_pack_ref: { type: "string" },
469
- negotiation_mode: { type: "string" }
470
- },
471
- additionalProperties: false
472
- },
473
- capabilities: ["a2a.negotiate"],
474
- adapters: ["http"]
475
- }),
476
- makeTask({
477
- task_ref: "internal.a2a.commit",
478
- public_task_ref: "a2a.commit",
479
- public_category: "a2a",
480
- public_title: "A2A Commit",
481
- execution_mode: "governed_async",
482
- pricing_band: "transactional",
483
- public_launch_price: { amount_minor: 105, currency: "USD_CENTS" },
484
- latency_class: "governed_async",
485
- failure_posture: "governed_async",
486
- input_schema: {
487
- type: "object",
488
- required: ["negotiation_id", "intent_id"],
489
- properties: {
490
- negotiation_id: { type: "string" },
491
- intent_id: { type: "string" }
492
- },
493
- additionalProperties: false
494
- },
495
- capabilities: ["a2a.commit"],
496
- adapters: ["http", "chain"]
497
- }),
498
- makeTask({
499
- task_ref: "internal.a2c.session.open",
500
- public_task_ref: "a2c.session.open",
501
- public_category: "a2c",
502
- public_title: "A2C Session Open",
503
- execution_mode: "direct_http",
504
- pricing_band: "utility",
505
- public_launch_price: { amount_minor: 20, currency: "USD_CENTS" },
506
- latency_class: "instant",
507
- failure_posture: "fail_fast",
508
- input_schema: {
509
- type: "object",
510
- required: ["agent_id", "channel_ref"],
511
- properties: {
512
- agent_id: { type: "string" },
513
- channel_ref: { type: "string" }
514
- },
515
- additionalProperties: false
516
- },
517
- capabilities: ["a2c.session.open"],
518
- adapters: ["http", "mcp"]
519
- }),
520
- makeTask({
521
- task_ref: "internal.a2c.pack.preview",
522
- public_task_ref: "a2c.pack.preview",
523
- public_category: "a2c",
524
- public_title: "A2C Pack Preview",
525
- execution_mode: "direct_http",
526
- pricing_band: "utility",
527
- public_launch_price: { amount_minor: 25, currency: "USD_CENTS" },
528
- latency_class: "near_real_time",
529
- failure_posture: "retry_bounded",
530
- input_schema: {
531
- type: "object",
532
- required: ["agent_id", "pack_ref"],
533
- properties: {
534
- agent_id: { type: "string" },
535
- pack_ref: { type: "string" }
536
- },
537
- additionalProperties: false
538
- },
539
- capabilities: ["a2c.pack.preview"],
540
- adapters: ["http"]
541
- }),
542
- makeTask({
543
- task_ref: "internal.policy.simulate",
544
- public_task_ref: "policy.simulate",
545
- public_category: "policy",
546
- public_title: "Policy Simulate",
547
- execution_mode: "direct_http",
548
- pricing_band: "decision_support",
549
- public_launch_price: { amount_minor: 35, currency: "USD_CENTS" },
550
- latency_class: "near_real_time",
551
- failure_posture: "retry_bounded",
552
- input_schema: {
553
- type: "object",
554
- required: ["policy"],
555
- properties: {
556
- policy: { type: "string" }
557
- },
558
- additionalProperties: false
559
- },
560
- capabilities: ["policy.simulate"],
561
- adapters: ["http"]
562
- }),
563
- makeTask({
564
- task_ref: "internal.identity.attest.preview",
565
- public_task_ref: "identity.attest.preview",
566
- public_category: "identity",
567
- public_title: "Identity Attest Preview",
568
- execution_mode: "direct_http",
569
- pricing_band: "decision_support",
570
- public_launch_price: { amount_minor: 40, currency: "USD_CENTS" },
571
- latency_class: "near_real_time",
572
- failure_posture: "retry_bounded",
573
- input_schema: {
574
- type: "object",
575
- required: ["subject_id", "registry_scope"],
576
- properties: {
577
- subject_id: { type: "string" },
578
- registry_scope: { type: "string" }
579
- },
580
- additionalProperties: false
581
- },
582
- capabilities: ["identity.attest.preview"],
583
- adapters: ["http"]
584
- }),
585
- makeTask({
586
- task_ref: "internal.identity.registry.link",
587
- public_task_ref: "identity.registry.link",
588
- public_category: "identity",
589
- public_title: "Identity Registry Link",
590
- execution_mode: "governed_async",
591
- pricing_band: "transactional",
592
- public_launch_price: { amount_minor: 115, currency: "USD_CENTS" },
593
- latency_class: "governed_async",
594
- failure_posture: "governed_async",
595
- input_schema: {
596
- type: "object",
597
- required: ["subject_id", "registry_record_id"],
598
- properties: {
599
- subject_id: { type: "string" },
600
- registry_record_id: { type: "string" }
601
- },
602
- additionalProperties: false
603
- },
604
- capabilities: ["identity.registry.link"],
605
- adapters: ["chain"]
606
- }),
607
- makeTask({
608
- task_ref: "internal.registry.register",
609
- public_task_ref: "registry.register",
610
- public_category: "registry",
611
- public_title: "Registry Register",
612
- execution_mode: "governed_async",
613
- pricing_band: "transactional",
614
- public_launch_price: { amount_minor: 95, currency: "USD_CENTS" },
615
- latency_class: "governed_async",
616
- failure_posture: "governed_async",
617
- input_schema: {
618
- type: "object",
619
- required: ["subject_id", "record_type"],
620
- properties: {
621
- subject_id: { type: "string" },
622
- record_type: { type: "string" }
623
- },
624
- additionalProperties: false
625
- },
626
- capabilities: ["registry.register"],
627
- adapters: ["chain"]
628
- }),
629
- makeTask({
630
- task_ref: "internal.registry.pack.bundle",
631
- public_task_ref: "registry.pack.bundle",
632
- public_category: "registry",
633
- public_title: "Registry Pack Bundle",
634
- execution_mode: "governed_async",
635
- pricing_band: "transactional",
636
- public_launch_price: { amount_minor: 135, currency: "USD_CENTS" },
637
- latency_class: "governed_async",
638
- failure_posture: "governed_async",
639
- input_schema: {
640
- type: "object",
641
- required: ["pack_ref", "subject_ids"],
642
- properties: {
643
- pack_ref: { type: "string" },
644
- subject_ids: {
645
- type: "array",
646
- items: { type: "string" },
647
- minItems: 1
648
- }
649
- },
650
- additionalProperties: false
651
- },
652
- capabilities: ["registry.pack.bundle"],
653
- adapters: ["chain"]
654
- }),
655
- makeTask({
656
- task_ref: "internal.anchoring.submit",
657
- public_task_ref: "anchoring.submit",
658
- public_category: "anchoring",
659
- public_title: "Anchoring Submit",
660
- execution_mode: "governed_async",
661
- pricing_band: "transactional",
662
- public_launch_price: { amount_minor: 150, currency: "USD_CENTS" },
663
- latency_class: "governed_async",
664
- failure_posture: "governed_async",
665
- input_schema: {
666
- type: "object",
667
- required: ["commitment_hash"],
668
- properties: {
669
- commitment_hash: { type: "string" }
670
- },
671
- additionalProperties: false
672
- },
673
- capabilities: ["anchoring.submit"],
674
- adapters: ["chain"]
675
- }),
676
- makeTask({
677
- task_ref: "internal.anchoring.pack.preview",
678
- public_task_ref: "anchoring.pack.preview",
679
- public_category: "anchoring",
680
- public_title: "Anchoring Pack Preview",
681
- execution_mode: "direct_http",
682
- pricing_band: "decision_support",
683
- public_launch_price: { amount_minor: 35, currency: "USD_CENTS" },
684
- latency_class: "near_real_time",
685
- failure_posture: "retry_bounded",
686
- input_schema: {
687
- type: "object",
688
- required: ["pack_ref", "commitment_count"],
689
- properties: {
690
- pack_ref: { type: "string" },
691
- commitment_count: { type: "integer", minimum: 1 }
692
- },
693
- additionalProperties: false
694
- },
695
- capabilities: ["anchoring.pack.preview"],
696
- adapters: ["chain"]
697
- }),
698
- makeTask({
699
- task_ref: "internal.zones.list",
700
- public_task_ref: "zones.list",
701
- public_category: "discovery",
702
- public_title: "Zones List",
703
- execution_mode: "direct_http",
704
- pricing_band: "utility",
705
- public_launch_price: { amount_minor: 5, currency: "USD_CENTS" },
706
- latency_class: "instant",
707
- failure_posture: "fail_fast",
708
- input_schema: {
709
- type: "object",
710
- properties: {},
711
- additionalProperties: false
712
- },
713
- capabilities: ["zones.list"],
714
- adapters: ["http"]
715
- }),
716
- makeTask({
717
- task_ref: "internal.admission.preview",
718
- public_task_ref: "admission.preview",
719
- public_category: "admission",
720
- public_title: "Admission Preview",
721
- execution_mode: "direct_http",
722
- pricing_band: "utility",
723
- public_launch_price: { amount_minor: 10, currency: "USD_CENTS" },
724
- latency_class: "instant",
725
- failure_posture: "fail_fast",
726
- input_schema: {
727
- type: "object",
728
- required: ["source_zone_id", "target_zone_id"],
729
- properties: {
730
- source_zone_id: { type: "string" },
731
- target_zone_id: { type: "string" },
732
- interaction_class: { type: "string" }
733
- },
734
- additionalProperties: false
735
- },
736
- capabilities: ["admission.preview"],
737
- adapters: ["http"]
738
- }),
739
- makeTask({
740
- task_ref: "internal.settlement.submit",
741
- public_task_ref: "settlement.submit",
742
- public_category: "settlement",
743
- public_title: "Settlement Submit",
744
- execution_mode: "governed_async",
745
- pricing_band: "transactional",
746
- public_launch_price: { amount_minor: 150, currency: "USD_CENTS" },
747
- latency_class: "governed_async",
748
- failure_posture: "governed_async",
749
- input_schema: {
750
- type: "object",
751
- required: ["intent_id"],
752
- properties: {
753
- intent_id: { type: "string" }
754
- },
755
- additionalProperties: false
756
- },
757
- capabilities: ["settlement.submit"],
758
- adapters: ["chain"]
759
- }),
760
- makeTask({
761
- task_ref: "internal.adapter.mcp.invoke",
762
- public_task_ref: "adapter.mcp.invoke",
763
- public_category: "adapter",
764
- public_title: "Adapter MCP Invoke",
765
- execution_mode: "direct_http",
766
- pricing_band: "decision_support",
767
- public_launch_price: { amount_minor: 40, currency: "USD_CENTS" },
768
- latency_class: "near_real_time",
769
- failure_posture: "retry_bounded",
770
- input_schema: {
771
- type: "object",
772
- required: ["tool_name"],
773
- properties: {
774
- tool_name: { type: "string" },
775
- arguments: { type: "object" }
776
- },
777
- additionalProperties: false
778
- },
779
- capabilities: ["adapter.mcp.invoke"],
780
- adapters: ["mcp"]
781
- }),
782
- makeTask({
783
- task_ref: "internal.adapter.xoonya.invoke",
784
- public_task_ref: "adapter.xoonya.invoke",
785
- public_category: "adapter",
786
- public_title: "Post-quantum proof verification (xoonya)",
787
- execution_mode: "direct_http",
788
- pricing_band: "decision_support",
789
- public_launch_price: { amount_minor: 1, currency: "USD_CENTS" },
790
- latency_class: "near_real_time",
791
- failure_posture: "retry_bounded",
792
- input_schema: {
793
- type: "object",
794
- required: ["tool_name"],
795
- properties: {
796
- tool_name: { type: "string", enum: ["proof.verify-signature", "proof.verify-bundle"] },
797
- arguments: { type: "object" }
798
- },
799
- additionalProperties: false
800
- },
801
- capabilities: ["adapter.xoonya.invoke"],
802
- adapters: ["xoonya"]
803
- }),
804
- makeTask({
805
- task_ref: "internal.adapter.mcp.catalog",
806
- public_task_ref: "adapter.mcp.catalog",
807
- public_category: "adapter",
808
- public_title: "Adapter MCP Catalog",
809
- execution_mode: "direct_http",
810
- pricing_band: "decision_support",
811
- public_launch_price: { amount_minor: 35, currency: "USD_CENTS" },
812
- latency_class: "near_real_time",
813
- failure_posture: "retry_bounded",
814
- input_schema: {
815
- type: "object",
816
- properties: {
817
- filter: { type: "string" }
818
- },
819
- additionalProperties: false
820
- },
821
- capabilities: ["adapter.mcp.catalog"],
822
- adapters: ["mcp"]
823
- }),
824
- makeTask({
825
- task_ref: "internal.adapter.mcp.reply.draft",
826
- public_task_ref: "adapter.mcp.reply.draft",
827
- public_category: "adapter",
828
- public_title: "Adapter MCP Reply Draft",
829
- execution_mode: "direct_http",
830
- pricing_band: "decision_support",
831
- public_launch_price: { amount_minor: 45, currency: "USD_CENTS" },
832
- latency_class: "near_real_time",
833
- failure_posture: "retry_bounded",
834
- input_schema: {
835
- type: "object",
836
- required: ["text"],
837
- properties: {
838
- text: { type: "string" },
839
- tone: { type: "string" }
840
- },
841
- additionalProperties: false
842
- },
843
- capabilities: ["adapter.mcp.reply.draft"],
844
- adapters: ["mcp"]
845
- }),
846
- makeTask({
847
- task_ref: "internal.adapter.mcp.json.validate",
848
- public_task_ref: "adapter.mcp.json.validate",
849
- public_category: "adapter",
850
- public_title: "Adapter MCP JSON Validate",
851
- execution_mode: "direct_http",
852
- pricing_band: "decision_support",
853
- public_launch_price: { amount_minor: 55, currency: "USD_CENTS" },
854
- latency_class: "near_real_time",
855
- failure_posture: "retry_bounded",
856
- input_schema: {
857
- type: "object",
858
- required: ["payload"],
859
- properties: {
860
- payload: { type: "object" },
861
- schema_name: { type: "string" }
862
- },
863
- additionalProperties: false
864
- },
865
- capabilities: ["adapter.mcp.json.validate"],
866
- adapters: ["mcp"]
867
- })
868
- ];
869
-
870
- const workflows = [
871
- {
872
- workflow_ref: "trust.flow",
873
- aliases: ["trust.flow", "trust.receipt.flow"],
874
- category: "trust",
875
- title: "Trust Receipt Flow",
876
- description: "Verify trust and validate a receipt.",
877
- task_count: 2,
878
- task_refs: ["trust.verify", "receipt.validate"],
879
- latency_class: "near_real_time",
880
- failure_posture: "retry_bounded",
881
- pricing_basis: "sum"
882
- },
883
- {
884
- workflow_ref: "runtime.consequence.flow",
885
- aliases: ["runtime.consequence.flow"],
886
- category: "runtime",
887
- title: "Runtime Consequence Flow",
888
- description: "Emit and anchor a runtime consequence.",
889
- task_count: 2,
890
- task_refs: ["runtime.emit", "runtime.anchor"],
891
- latency_class: "governed_async",
892
- failure_posture: "governed_async",
893
- pricing_basis: "sum"
894
- },
895
- {
896
- workflow_ref: "job.commitment.flow",
897
- aliases: ["job.commitment.flow"],
898
- category: "jobs",
899
- title: "Job Commitment Flow",
900
- description: "Quote, reserve, and commit a job.",
901
- task_count: 3,
902
- task_refs: ["jobs.quote", "jobs.reserve", "jobs.commit"],
903
- latency_class: "governed_async",
904
- failure_posture: "governed_async",
905
- pricing_basis: "sum"
906
- },
907
- {
908
- workflow_ref: "policy.transaction.flow",
909
- aliases: ["policy.transaction.flow"],
910
- category: "policy",
911
- title: "Policy Transaction Flow",
912
- description: "Simulate policy and submit settlement.",
913
- task_count: 2,
914
- task_refs: ["policy.simulate", "settlement.submit"],
915
- latency_class: "governed_async",
916
- failure_posture: "governed_async",
917
- pricing_basis: "sum"
918
- },
919
- {
920
- workflow_ref: "admission.settlement.flow",
921
- aliases: ["admission.settlement.flow"],
922
- category: "admission",
923
- title: "Admission Settlement Flow",
924
- description: "Preview admission and submit settlement.",
925
- task_count: 2,
926
- task_refs: ["admission.preview", "settlement.submit"],
927
- latency_class: "governed_async",
928
- failure_posture: "governed_async",
929
- pricing_basis: "sum"
930
- },
931
- {
932
- workflow_ref: "registry.anchor.flow",
933
- aliases: ["registry.anchor.flow"],
934
- category: "registry",
935
- title: "Registry Anchor Flow",
936
- description: "Register a record and anchor its commitment.",
937
- task_count: 2,
938
- task_refs: ["registry.register", "anchoring.submit"],
939
- latency_class: "governed_async",
940
- failure_posture: "governed_async",
941
- pricing_basis: "sum"
942
- },
943
- {
944
- workflow_ref: "a2a.settlement.flow",
945
- aliases: ["a2a.settlement.flow", "agent.negotiation.flow"],
946
- category: "a2a",
947
- title: "A2A Settlement Flow",
948
- description: "Negotiate with another agent, commit the intent, and settle the resulting transaction.",
949
- task_count: 3,
950
- task_refs: ["a2a.negotiate", "a2a.commit", "settlement.submit"],
951
- latency_class: "governed_async",
952
- failure_posture: "governed_async",
953
- pricing_basis: "sum"
954
- },
955
- {
956
- workflow_ref: "a2c.tooling.flow",
957
- aliases: ["a2c.tooling.flow", "agent.channel.tooling.flow"],
958
- category: "a2c",
959
- title: "A2C Tooling Flow",
960
- description: "Open a channel session, preview a task pack, and invoke the selected MCP tool lane.",
961
- task_count: 3,
962
- task_refs: ["a2c.session.open", "a2c.pack.preview", "adapter.mcp.invoke"],
963
- latency_class: "near_real_time",
964
- failure_posture: "retry_bounded",
965
- pricing_basis: "sum"
966
- },
967
- {
968
- workflow_ref: "identity.anchor.flow",
969
- aliases: ["identity.anchor.flow", "identity.registry.anchor.flow"],
970
- category: "identity",
971
- title: "Identity Anchor Flow",
972
- description: "Preview identity attestation, register the record, link it to identity state, and anchor the resulting proof.",
973
- task_count: 4,
974
- task_refs: [
975
- "identity.attest.preview",
976
- "registry.register",
977
- "identity.registry.link",
978
- "anchoring.submit"
979
- ],
980
- latency_class: "governed_async",
981
- failure_posture: "governed_async",
982
- pricing_basis: "sum"
983
- },
984
- {
985
- workflow_ref: "registry.pack.anchor.flow",
986
- aliases: ["registry.pack.anchor.flow", "registry.bundle.anchor.flow"],
987
- category: "registry",
988
- title: "Registry Pack Anchor Flow",
989
- description: "Bundle a registry pack, preview anchoring posture, and submit the pack for anchoring.",
990
- task_count: 3,
991
- task_refs: ["registry.pack.bundle", "anchoring.pack.preview", "anchoring.submit"],
992
- latency_class: "governed_async",
993
- failure_posture: "governed_async",
994
- pricing_basis: "sum"
995
- }
996
- ];
997
-
998
- const creditPacks = [
999
- {
1000
- pack_id: "credits.starter",
1001
- title: "Starter Credits",
1002
- category: "starter",
1003
- issued_units: 100,
1004
- nominal_amount_minor: 1000,
1005
- nominal_currency: "USD_CENTS",
1006
- intended_usage_posture: "first_use_and_light_repeat",
1007
- recommended_for: [
1008
- "first-time users",
1009
- "simple CLI and API exploration",
1010
- "utility and decision-support tasks"
1011
- ],
1012
- task_band_targets: ["utility", "decision_support"],
1013
- workflow_targets: ["default.mcp.tool.invoke", "default.a2c.tooling.run"],
1014
- notes: "Best for learning the stack and lightweight repeat usage."
1015
- },
1016
- {
1017
- pack_id: "credits.builder",
1018
- title: "Builder Credits",
1019
- category: "builder",
1020
- issued_units: 500,
1021
- nominal_amount_minor: 4500,
1022
- nominal_currency: "USD_CENTS",
1023
- intended_usage_posture: "regular_builder_use",
1024
- recommended_for: [
1025
- "solo developers",
1026
- "API and MCP tool builders",
1027
- "repeat transactional usage"
1028
- ],
1029
- task_band_targets: ["decision_support", "transactional"],
1030
- workflow_targets: ["default.mcp.tool.invoke", "default.a2c.tooling.run", "default.identity.anchor.run"],
1031
- notes: "A balanced repeat-use pack for regular interactive and embedded runtime usage."
1032
- },
1033
- {
1034
- pack_id: "credits.agent",
1035
- title: "Agent Credits",
1036
- category: "agent",
1037
- issued_units: 1500,
1038
- nominal_amount_minor: 12000,
1039
- nominal_currency: "USD_CENTS",
1040
- intended_usage_posture: "autonomous_repeat_execution",
1041
- recommended_for: [
1042
- "autonomous agents",
1043
- "mid-run machine calls",
1044
- "bundled transaction and trust-critical flows"
1045
- ],
1046
- task_band_targets: ["transactional", "trust_critical"],
1047
- workflow_targets: ["a2a.settlement.flow", "identity.anchor.flow", "registry.pack.anchor.flow"],
1048
- notes: "Designed for autonomous or semi-autonomous agents that need reusable runtime balance."
1049
- },
1050
- {
1051
- pack_id: "credits.fleet",
1052
- title: "Fleet Credits",
1053
- category: "fleet",
1054
- issued_units: 5000,
1055
- nominal_amount_minor: 35000,
1056
- nominal_currency: "USD_CENTS",
1057
- intended_usage_posture: "team_and_multi_agent_budgeting",
1058
- recommended_for: [
1059
- "agent fleets",
1060
- "teams and services",
1061
- "heavier governed and high-consequence execution"
1062
- ],
1063
- task_band_targets: ["transactional", "governed_high_consequence", "trust_critical"],
1064
- workflow_targets: ["a2a.settlement.flow", "registry.pack.anchor.flow", "identity.anchor.flow"],
1065
- notes: "Best for sustained multi-agent or team-based runtime use with stronger budgeting posture."
1066
- },
1067
- {
1068
- pack_id: "credits.topup",
1069
- title: "Top-Up Credits",
1070
- category: "topup",
1071
- issued_units: 250,
1072
- nominal_amount_minor: 2500,
1073
- nominal_currency: "USD_CENTS",
1074
- intended_usage_posture: "quick_replenishment",
1075
- recommended_for: [
1076
- "refilling an active account",
1077
- "avoiding interruption mid-run",
1078
- "extending an existing balance"
1079
- ],
1080
- task_band_targets: ["utility", "decision_support", "transactional"],
1081
- workflow_targets: ["default.mcp.tool.invoke", "default.a2c.tooling.run"],
1082
- notes: "A bounded replenishment unit for accounts that are already actively consuming the runtime."
1083
- }
1084
- ];
1085
-
1086
- const catalog = {
1087
- version: "v1",
1088
- currency: "USD_CENTS",
1089
- payment_scheme: "quote_then_settle",
1090
- plans: [],
1091
- capabilities: [
1092
- "catalog",
1093
- "workflows",
1094
- "task_sets",
1095
- "quotes",
1096
- "execution",
1097
- "receipts",
1098
- "runtime",
1099
- "registry",
1100
- "settlement",
1101
- "governed_lifecycle",
1102
- "operator_visibility"
1103
- ],
1104
- adapters: ["http", "chain", "mcp"],
1105
- surfaces: ["sdk", "service", "operator"],
1106
- credit_packs: creditPacks,
1107
- task_categories: [
1108
- "trust",
1109
- "receipt",
1110
- "runtime",
1111
- "jobs",
1112
- "credits",
1113
- "a2a",
1114
- "a2c",
1115
- "policy",
1116
- "identity",
1117
- "registry",
1118
- "anchoring",
1119
- "discovery",
1120
- "admission",
1121
- "settlement",
1122
- "adapter"
1123
- ],
1124
- settlement_profiles: settlementProfiles,
1125
- tasks,
1126
- workflows
1127
- };
1128
-
1129
- function findTask(ref) {
1130
- const lookup = String(ref || "").trim();
1131
- return catalog.tasks.find((task) =>
1132
- task.task_ref === lookup ||
1133
- task.public_task_ref === lookup ||
1134
- (Array.isArray(task.public_aliases) && task.public_aliases.includes(lookup))
1135
- ) || null;
1136
- }
1137
-
1138
- function findWorkflow(ref) {
1139
- const lookup = String(ref || "").trim();
1140
- return catalog.workflows.find((workflow) =>
1141
- workflow.workflow_ref === lookup ||
1142
- (Array.isArray(workflow.aliases) && workflow.aliases.includes(lookup))
1143
- ) || null;
1144
- }
1145
-
1146
- function findCreditPack(ref) {
1147
- const lookup = String(ref || "").trim();
1148
- return catalog.credit_packs.find((pack) => pack && pack.pack_id === lookup) || null;
1149
- }
1150
-
1151
- module.exports = {
1152
- catalog,
1153
- findCreditPack,
1154
- findTask,
1155
- findWorkflow
1156
- };