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,419 +0,0 @@
1
- # xytara Service Contract
2
-
3
- This file freezes the public service contract for `xytara`.
4
-
5
- ## Public Routes
6
-
7
- Core routes:
8
-
9
- - `GET /health`
10
- - `GET /openapi.json`
11
- - `GET /v1/openapi`
12
- - `GET /v1/openapi/summary`
13
- - `GET /asyncapi.json`
14
- - `GET /v1/asyncapi`
15
- - `GET /v1/asyncapi/summary`
16
- - `GET /cloudevents.json`
17
- - `GET /v1/cloudevents`
18
- - `GET /v1/cloudevents/summary`
19
- - `GET /v1/auth-profiles`
20
- - `GET /v1/auth-profiles/summary`
21
- - `GET /v1/identity-interop`
22
- - `GET /v1/identity-interop/summary`
23
- - `GET /v1/providers`
24
- - `GET /v1/providers/summary`
25
- - `GET /v1/frameworks`
26
- - `GET /v1/frameworks/summary`
27
- - `GET /v1/protocols`
28
- - `GET /v1/protocols/summary`
29
- - `GET /v1/integration-matrix`
30
- - `GET /v1/integration-matrix/summary`
31
- - `GET /v1/mcp`
32
- - `GET /v1/mcp/summary`
33
- - `GET /v1/mcp/tools`
34
- - `GET /v1/a2a`
35
- - `GET /v1/a2a/summary`
36
- - `GET /v1/a2c`
37
- - `GET /v1/a2c/summary`
38
- - `GET /v1/x402`
39
- - `GET /v1/x402/summary`
40
- - `GET /v1/payment-protocols`
41
- - `GET /v1/payment-protocols/summary`
42
- - `GET /v1/settlement`
43
- - `GET /v1/settlement/summary`
44
- - `GET /v1/stripe-mpp`
45
- - `GET /v1/stripe-mpp/summary`
46
- - `GET /v1/stablecoins`
47
- - `GET /v1/stablecoins/summary`
48
- - `GET /v1/major-rails`
49
- - `GET /v1/major-rails/summary`
50
- - `GET /v1/treasury`
51
- - `GET /v1/treasury/summary`
52
- - `GET /v1/pricing-optimization`
53
- - `GET /v1/pricing-optimization/summary`
54
- - `GET /v1/pricing-optimization/quote-abandonment-summary`
55
- - `GET /v1/pricing-optimization/quote-cohorts`
56
- - `GET /v1/pricing-optimization/recommendations`
57
- - `GET /v1/activity-ledger`
58
- - `GET /v1/activity-ledger/summary`
59
- - `GET /v1/operator-observability`
60
- - `GET /v1/operator-observability/summary`
61
- - `GET /v1/business-cockpit`
62
- - `GET /v1/business-cockpit/summary`
63
- - `GET /business-cockpit`
64
- - `GET /v1/treasury-destinations`
65
- - `GET /v1/treasury-destinations/summary`
66
- - `GET /v1/treasury-destinations/operator-pack`
67
- - `GET /v1/treasury-destinations/operator-pack/summary`
68
- - `POST /v1/treasury-destinations/validate-preview`
69
- - `GET /v1/treasury-egress-policy`
70
- - `GET /v1/treasury-egress-policy/summary`
71
- - `GET /v1/erc8004`
72
- - `GET /v1/erc8004/summary`
73
- - `GET /v1/event-systems`
74
- - `GET /v1/event-systems/summary`
75
- - `GET /v1/telemetry`
76
- - `GET /v1/telemetry/summary`
77
- - `GET /v1/provenance`
78
- - `GET /v1/provenance/summary`
79
- - `GET /v1/artifact-distribution`
80
- - `GET /v1/artifact-distribution/summary`
81
- - `GET /v1/shared-signals`
82
- - `GET /v1/shared-signals/summary`
83
- - `GET /v1/feature-control`
84
- - `GET /v1/feature-control/summary`
85
- - `GET /v1/adapter-certification`
86
- - `GET /v1/adapter-certification/summary`
87
- - `GET /v1/adapter-certification/:front_id`
88
- - `GET /v1/trust-portability-boundary`
89
- - `GET /v1/trust-portability-boundary/summary`
90
- - `GET /v1/trust-portability-boundary/:axis_id`
91
- - `GET /v1/signed-audit-provenance`
92
- - `GET /v1/signed-audit-provenance/summary`
93
- - `GET /v1/signed-audit-provenance/:surface_id`
94
- - `GET /v1/catalog`
95
- - `GET /v1/catalog/summary`
96
- - `GET /v1/catalog/task?ref=<task_ref_or_alias>`
97
- - `GET /v1/catalog/workflows`
98
- - `GET /v1/catalog/workflow?ref=<workflow_ref_or_alias>`
99
- - `GET /v1/credit-packs`
100
- - `GET /v1/credit-packs/summary`
101
- - `GET /v1/credit-pack?ref=<pack_id>`
102
- - `GET /v1/integrations`
103
- - `GET /v1/integrations/summary`
104
- - `GET /v1/integrations/classes`
105
- - `GET /v1/integrations/protocols`
106
- - `GET /v1/integrations/settlement-modes`
107
- - `GET /v1/account-auth/spend-credentials`
108
- - `POST /v1/account-auth/spend-credentials`
109
- - `GET /v1/account-auth/spend-credentials/:credential_id`
110
- - `POST /v1/account-auth/spend-credentials/:credential_id/revoke`
111
- - `POST /v1/payment-quotes`
112
- - `POST /v1/commands/execute`
113
- - `POST /x402/commands/execute`
114
-
115
- Operational note:
116
-
117
- - for production acceptance, `POST /x402/commands/execute` and `POST /x402/mcp/tools/invoke` should normally run with `XYTARA_PAYMENT_VERIFICATION_MODE=local_signed` or a stronger verifier mode
118
- - `GET /v1/identity-interop` exposes how native authority and machine identity map to `JWT`, `DID/VC`, and `SD-JWT VC` interop lanes without replacing the native runtime authority model
119
- - `GET /v1/x402` exposes the first-class quote -> challenge -> pay -> execute lane for paid machine execution
120
- - `GET /v1/payment-protocols` makes the charging boundary explicit: keep auth, discovery, docs, catalog, and lightweight preview free while keeping execution, credit consumption, and consequence-bearing runtime work paid
121
- - `GET /v1/settlement` exposes the settlement family map across native BSV/Teranode, EVM/Base/USDC, and the major-rails family
122
- - `GET /v1/stripe-mpp` exposes the hosted-checkout and external-funding entry lane without making provider-specific checkout semantics the center of the stack
123
- - `GET /v1/stablecoins` exposes the current USDC/Base runtime family and marks Circle Nanopayments/CCTP as adapter-ready extensions instead of pretending they are already core first-party rails
124
- - `GET /v1/major-rails` exposes Solana plus the Antelope/Proton XPR/Metal family as one practical non-default settlement lane
125
- - `GET /v1/treasury` exposes the treasury-connectivity posture and the internal reserve doctrine of BSV/Teranode plus DAI/USDC, with Monero retained only as an optional hidden privacy reserve
126
- - `GET /v1/pricing-optimization` exposes minimum charge floors, starter pricing posture, credit-pack breakpoints, high-consequence premium multipliers, and quote abandonment visibility so revenue posture is reviewable instead of implicit
127
- - `GET /v1/pricing-optimization/quote-cohorts` and `GET /v1/pricing-optimization/recommendations` expose how quote conversion and abandonment behave by pricing band, payment protocol, and settlement mode so monetization tuning can be data-shaped rather than guessed
128
- - `GET /v1/activity-ledger` exposes one operator-grade ledger across quote, payment, settlement, delivery, dispute, refund, credit-grant, bridge, and integration-admission activity so operators can answer who did what, paid what, received what, and through which route
129
- - `GET /v1/operator-observability` exposes a protected read-only pack across activity, payment, delivery, settlement, adapter failure, credit-grant, and pricing telemetry posture without moving funds or submitting settlements
130
- - `GET /v1/business-cockpit` and `GET /business-cockpit` expose one protected operator analytics surface that bundles release posture, treasury landing truth, runtime activity, settlement readiness, and linked proof-facing health into a single private JSON or HTML cockpit
131
- - `GET /v1/treasury-destinations` is public-readiness only: it shows which rails are operationally configured without exposing actual landing references
132
- - `GET /v1/treasury-destinations/operator-pack` is the operator-only custody surface and is where real destination references belong
133
- - `POST /v1/treasury-destinations/validate-preview` lets operators preview per-rail custody readiness before they claim a rail as operational
134
- - `GET /v1/treasury-egress-policy` makes the treasury black-hole posture explicit: funds can come in easily through configured rails, but treasury release remains blocked until manual operator review with explicit reason and signoff
135
- - when `XYTARA_ACCOUNT_AUTH_BEARER_TOKEN` is configured, `GET /v1/activity-ledger`, `GET /v1/operator-observability`, `GET /v1/business-cockpit`, `GET /v1/business-cockpit/summary`, `GET /business-cockpit`, `GET /v1/treasury-destinations/operator-pack`, `POST /v1/treasury-destinations/validate-preview`, and `GET /v1/treasury-egress-policy` require that bearer token
136
- - `GET /v1/providers` exposes the OpenAI Codex and Claude/MCP family as first-class provider entry lanes
137
- - `GET /v1/frameworks` exposes LangGraph, LangChain, AutoGen, and Semantic Kernel as the primary runtime framework lanes, with CrewAI and LlamaIndex surfaced as registry-backed framework breadth
138
- - `GET /v1/protocols` exposes the canonical protocol and transport family across MCP, A2A, A2C, ACP, gRPC, Kafka, NATS, MQTT, ROS2, and webhook-event-bus posture
139
- - `GET /v1/integration-matrix` exposes the canonical public view across providers, frameworks, protocols, payments, settlement families, and registry-backed integrations
140
- - `GET /v1/telemetry` exposes the OpenTelemetry-aligned observability posture across runtime traces, metrics, logs, and event carry
141
- - `GET /v1/provenance` exposes the SLSA-aligned release and execution provenance posture for runtime trust and adoption
142
- - `GET /v1/artifact-distribution` exposes OCI-style artifact distribution posture for adapters, submission bundles, registry snapshots, and release artifacts
143
- - `GET /v1/shared-signals` exposes OpenID Shared Signals and CAEP-aligned risk and identity event exchange posture without replacing native runtime decisions
144
- - `GET /v1/feature-control` exposes OpenFeature/OFREP-aligned rollout and policy portability posture across pricing, authority, identity, trust, and release gates
145
- - `GET /v1/adapter-certification` exposes the front-specific adapter certification contract and its machine-readable compatibility states
146
- - `GET /v1/trust-portability-boundary` exposes the bounded trust portability contract for identity, delegation, delivery, and settlement-linked followthrough
147
- - `GET /v1/signed-audit-provenance` exposes the signed audit and provenance surface map for selected evidence-bearing runtime and release lanes
148
- - accepted payments then flow into payment-ledger, treasury-summary, rail-summary, and reconciliation surfaces
149
- - the default first-party settlement posture is now `bsv_teranode`, and `x402` challenge quotes carry native BSV/Teranode settlement hints when that default path is in use
150
- - the default machine-payment lane remains `x402`, while credits and `stripe_mpp` provide repeat-use and human-funding paths, and future protocol expansion should normally enter through the payment front rather than replacing the default machine lane
151
- - quote-based pricing is intentionally preferred over flat pricing because it protects margin on high-consequence work without overpricing small utility flows, but quote abandonment and conversion should still be monitored through the pricing-optimization layer
152
- - production acceptance on `bsv_teranode`, `evm`, `base`, `usdc`, `dai`, or `monero` should only be claimed once the corresponding treasury destination is explicitly configured and visible through `GET /v1/treasury-destinations`, with real custody details limited to `GET /v1/treasury-destinations/operator-pack`
153
- - in production, `POST /v1/credit-bridge/grants` should normally require `authorization: Bearer <token>` backed by `XYTARA_CREDIT_BRIDGE_BEARER_TOKEN`
154
- - in production, spend-credential issuance/revoke should normally require `authorization: Bearer <token>` backed by `XYTARA_ACCOUNT_AUTH_BEARER_TOKEN`
155
-
156
- Named first-class lanes:
157
-
158
- - `POST /v1/trust/handoffs/emit`
159
- - `POST /v1/trust/handoffs/validate`
160
- - `POST /v1/execution-receipts/handoffs/emit`
161
- - `POST /v1/execution-receipts/handoffs/validate`
162
- - `POST /v1/receipt-ledger/handoffs/emit`
163
- - `POST /v1/receipt-ledger/handoffs/validate`
164
- - `POST /v1/admission/preview`
165
- - `POST /v1/runtime/emit`
166
- - `POST /v1/runtime/anchor`
167
- - `POST /v1/runtime/emit-anchor`
168
- - `POST /v1/registry/register`
169
- - `POST /v1/anchoring/submit`
170
- - `GET /v1/coordination-center`
171
- - `GET /v1/coordination-center/summary`
172
- - `GET /v1/zones`
173
- - `GET /v1/zones/compatibility-profiles`
174
- - `GET /v1/zones/:zoneId/constitution`
175
- - `POST /v1/coordination-center/interpretation-handoff/validate`
176
- - `POST /v1/coordination-center/handshake-preview`
177
- - `POST /v1/coordination-center/cross-zone-preview`
178
- - `POST /v1/coordination-center/admission-case-projection`
179
- - `POST /v1/coordination-center/admission-case-bundle`
180
- - `POST /v1/coordination-center/operator-view`
181
- - `POST /v1/coordination-center/admin-view`
182
- - `POST /v1/coordination-center/admission-ops-pack`
183
- - `POST /v1/coordination-center/admission-workflow-pack`
184
- - `POST /v1/coordination-center/coordination-pack`
185
- - `POST /v1/coordination-center/review-link`
186
- - `GET /v1/coordination-center/zones-dashboard`
187
- - `POST /v1/coordination-center/zones-dashboard-pack`
188
- - `POST /v1/mcp/tools/invoke`
189
- - `POST /x402/mcp/tools/invoke`
190
- - `GET /v1/settlement/bsv-teranode`
191
- - `GET /v1/settlement/bsv-teranode/:settlement_id`
192
- - `POST /v1/settlement/bsv-teranode/:settlement_id/submit`
193
- - `POST /v1/settlement/bsv-teranode/:settlement_id/refresh`
194
-
195
- Lifecycle and operator routes:
196
-
197
- - `GET /v1/payment-quotes`
198
- - `GET /v1/payment-quotes/:quote_id`
199
- - `GET /v1/governed-transactions`
200
- - `GET /v1/governed-transactions/:transaction_id`
201
- - `GET /v1/receipts`
202
- - `GET /v1/receipts/:receipt_id`
203
- - `GET /v1/payment-ledger`
204
- - `GET /v1/payment-ledger/:payment_id`
205
- - `GET /v1/deliveries`
206
- - `GET /v1/deliveries/:delivery_id`
207
- - `GET /v1/disputes`
208
- - `POST /v1/disputes`
209
- - `GET /v1/disputes/:dispute_id`
210
- - `POST /v1/disputes/:dispute_id/actions`
211
- - `GET /v1/refunds`
212
- - `POST /v1/refunds`
213
- - `GET /v1/refunds/:refund_id`
214
- - `POST /v1/refunds/:refund_id/actions`
215
- - `POST /v1/remediation-tickets`
216
- - `GET /v1/remediation-tickets`
217
- - `GET /v1/remediation-tickets/:ticket_id`
218
- - `POST /v1/remediation-tickets/:ticket_id/actions`
219
- - `GET /v1/reconciliation-report`
220
- - `GET /v1/operator-export-pack`
221
- - `GET /v1/operations/dashboard`
222
- - `GET /v1/operations/attention-records`
223
- - `GET /v1/operator-shell`
224
- - `GET /v1/operator-shell/summary`
225
- - `POST /v1/operator-shell/summary`
226
- - `POST /v1/operator-shell/workflow-pack`
227
- - `POST /v1/operator-shell/admin-pack`
228
- - `GET /v1/agent-accounts`
229
- - `POST /v1/agent-accounts`
230
- - `GET /v1/agent-accounts/:account_id`
231
- - `POST /v1/economics/budgets`
232
- - `POST /v1/economics/budgets/:budget_id/status`
233
- - `POST /v1/economics/agents`
234
- - `POST /v1/economics/agents/:agent_id/status`
235
- - `POST /v1/economics/receipts`
236
- - `POST /v1/economics/receipts/:receipt_id/lifecycle`
237
- - `POST /v1/economics/receipts/:receipt_id/operator-action`
238
- - `POST /v1/economics/allocations/mint`
239
- - `POST /v1/economics/allocations/reverse`
240
- - `POST /v1/economics/rails/credits/preview`
241
- - `POST /v1/economics/rails/credits/apply`
242
- - `POST /v1/economics/metering/preview`
243
- - `POST /v1/economics/handoff-bundles/economic-consequence`
244
- - `POST /v1/economics/rails/credits/preview-spend`
245
- - `POST /v1/economics/rails/credits/consume`
246
- - `GET /v1/credit-bridge/grants`
247
- - `POST /v1/credit-bridge/grants`
248
- - `GET /v1/credit-bridge/grants/:grant_id`
249
- - `GET /v1/checkout/purchase-intents`
250
- - `POST /v1/checkout/purchase-intents`
251
- - `GET /v1/checkout/purchase-intents/:purchase_intent_id`
252
- - `GET /v1/checkout/purchase-intents/:purchase_intent_id/sessions`
253
- - `POST /v1/checkout/purchase-intents/:purchase_intent_id/session`
254
- - `GET /v1/checkout/purchase-intents/:purchase_intent_id/refunds`
255
- - `POST /v1/checkout/purchase-intents/:purchase_intent_id/refund-request`
256
- - `GET /v1/checkout/sessions/:checkout_session_id`
257
- - `POST /v1/checkout/events/normalize`
258
- - `GET /v1/checkout/events/:event_id`
259
- - `POST /v1/runtime-bridge/dispatch`
260
- - `GET /v1/runtime-bridge/dispatches`
261
- - `GET /v1/runtime-bridge/dispatches/:request_id`
262
- - `POST /v1/economics/receipt-ledger/validate`
263
- - `POST /v1/economics/interpretation-handoff`
264
- - `POST /v1/economics/markets/preview`
265
- - `POST /v1/economics/markets/workflow-pack`
266
- - `POST /v1/economics/markets/signoff-pack`
267
- - `POST /v1/economics/markets/coordination-pack`
268
- - `GET /v1/economics/accounts/:account_id/budgets`
269
- - `GET /v1/economics/accounts/:account_id/agents`
270
- - `GET /v1/economics/accounts/:account_id/receipts`
271
- - `GET /v1/economics/accounts/:account_id`
272
- - `GET /v1/economics/accounts/:account_id/credit-balance`
273
- - `GET /v1/economics/accounts/:account_id/metering-summary`
274
- - `GET /v1/economics/accounts/:account_id/usage-meters`
275
- - `GET /v1/economics/accounts/:account_id/usage-meters/:usage_meter_id`
276
- - `GET /v1/economics/accounts/:account_id/entitlements`
277
- - `GET /v1/economics/accounts/:account_id/entitlements/summary`
278
- - `GET /v1/economics/accounts/:account_id/entitlements/replenishment-summary`
279
- - `GET /v1/economics/accounts/:account_id/entitlements/:entitlement_id`
280
- - `GET /v1/economics/accounts/:account_id/entitlements/:entitlement_id/replenishment-view`
281
- - `POST /v1/economics/accounts/:account_id/entitlements/:entitlement_id/replenishment-preference`
282
- - `GET /v1/economics/accounts/:account_id/operator-view`
283
- - `GET /v1/economics/accounts/:account_id/operator-dashboard`
284
- - `GET /v1/economics/accounts/:account_id/treasury-summary`
285
- - `GET /v1/economics/accounts/:account_id/ledger-export`
286
- - `GET /v1/economics/accounts/:account_id/treasury-drilldown`
287
- - `GET /v1/economics/accounts/:account_id/reconciliation-pack`
288
- - `GET /v1/economics/accounts/:account_id/treasury-workflow-pack`
289
- - `GET /v1/economics/accounts/:account_id/treasury-signoff-pack`
290
- - `GET /v1/economics/accounts/:account_id/policy-summary`
291
- - `GET /v1/economics/accounts/:account_id/policy-pack`
292
- - `GET /v1/economics/accounts/:account_id/agents/:agent_id/policy-view`
293
- - `GET /v1/economics/accounts/:account_id/rail-summary`
294
- - `GET /v1/economics/accounts/:account_id/rail-workflow-pack`
295
- - `GET /v1/economics/accounts/:account_id/rail-signoff-pack`
296
- - `POST /v1/economics/jobs/:job_id/operator-action`
297
- - `GET /v1/economics/evidence/receipts/:receipt_ref`
298
- - `GET /v1/economics/evidence/jobs/:job_id`
299
- - `GET /v1/economics/integration/jobs/:job_id`
300
-
301
- ## Error-Shape Expectations
302
-
303
- Primary error posture:
304
-
305
- - malformed or invalid requests return `400`
306
- - payment-required flows return `402`
307
- - expired quotes return `409`
308
- - missing routes return `404`
309
- - unexpected server failures return `500`
310
-
311
- Expected top-level error shapes:
312
-
313
- - generic failure:
314
- - `{ "ok": false, "reason": "<message>" }`
315
- - payment challenge:
316
- - `{ "ok": false, "payment_required": { ... } }`
317
- - expired quote:
318
- - `{ "ok": false, "reason": "quote_expired", "quote": { ... } }`
319
- - not found:
320
- - `{ "ok": false, "reason": "not_found", "path": "<path>" }`
321
-
322
- Named resource-view responses may return resource-specific missing reasons such as `quote_not_found` or `delivery_not_found`, but the top-level failure posture should remain predictable.
323
-
324
- ## Final-Loop Verification
325
-
326
- The constitutional commerce loop for `xytara` is:
327
-
328
- 1. discover
329
- 2. quote
330
- 3. spend credits first when the caller chooses the reusable-balance path
331
- 4. otherwise pay or receive payment challenge
332
- 5. execute
333
- 6. deliver
334
- 7. inspect
335
- 8. prove or reference proof-compatible facts
336
-
337
- Credit-first execution should use:
338
-
339
- 1. fund an account through credit issuance or hosted checkout
340
- 2. inspect `GET /v1/economics/accounts/:account_id/credit-balance`
341
- 3. default to `open_spend`: if the funded caller can pay, the runtime should spend and execute without extra policy ceremony
342
- 4. call `POST /v1/commands/execute` with `payment_preference: "credits_first"`
343
- 5. optionally include `agent_id` and/or `budget_id` only when runtime spend should stay inside explicit policy bounds
344
- 6. treat agent and budget controls as optional bounded-spend posture, not as the default burden on every caller
345
- 7. consume credits on successful execution
346
- 8. receive `402 insufficient_credits` plus a quote when the balance is not enough
347
- 9. receive a bounded policy failure when agent or budget controls deny the spend
348
- 10. fall back to direct payment or top up credits without changing the execution surface
349
-
350
- Deterministic usage metering should use:
351
-
352
- 1. preview the expected unit profile through `POST /v1/economics/metering/preview`
353
- 2. let successful credit spend create a linked usage-meter record automatically
354
- 3. inspect account-level metering state through `GET /v1/economics/accounts/:account_id/metering-summary`
355
- 4. inspect concrete meter records through `GET /v1/economics/accounts/:account_id/usage-meters`
356
- 5. expect reconciliation and operator-export surfaces to expose the same metering trail for audit and operator review
357
- 6. export the same deterministic consequence as a canonical cross-repo handoff bundle through `POST /v1/economics/handoff-bundles/economic-consequence`
358
- 7. expect `POST /v1/transaction-center/result-packages/export` and result-package continuation run/prepare surfaces to auto-carry that same canonical bundle whenever credit-first execution produced the linked usage meter and credit spend
359
-
360
- External top-up and pack issuance should use:
361
-
362
- 1. verify the purchase outside the runtime
363
- 2. issue a bounded grant through `POST /v1/credit-bridge/grants`
364
- 3. inspect grants through `GET /v1/credit-bridge/grants`
365
- 4. rely on the same account credit balance and credit-first execution path afterward
366
-
367
- When using pack-backed issuance:
368
-
369
- - `pack_id` should reference a real public credit pack from `GET /v1/credit-packs`
370
- - unknown pack ids should fail cleanly
371
- - pack-backed grants may derive default units and nominal amount from the referenced public pack
372
-
373
- Delegated spend should use:
374
-
375
- 1. issue a narrow spend credential for the target account
376
- 2. optionally bind it to an `agent_id` and/or `budget_id`
377
- 3. optionally bind it to a `pack_id` or `entitlement_id` when value should stay inside one pool
378
- 4. call the normal execution surface with `authorization: Bearer <spend_credential>`
379
- 5. use `payment_preference: "credits_first"` for the repeat-use path
380
- 6. revoke the credential without affecting account ownership or payout posture
381
-
382
- The first hosted purchase path now follows:
383
-
384
- 1. create purchase intent
385
- 2. create checkout session
386
- 3. receive normalized payment status
387
- 4. issue credits or execution entitlement
388
- 5. converge into the runtime spine
389
-
390
- Direct single-task hosted execution should use:
391
-
392
- 1. hosted checkout purchase intent
393
- 2. normalized `paid` event
394
- 3. runtime dispatch
395
- 4. normal transaction, receipt, treasury, and proof follow-through
396
-
397
- Hosted checkout payout posture should use:
398
-
399
- 1. refund request enters review
400
- 2. operator review updates refund state
401
- 3. approval is explicit
402
- 4. completion is manual and bounded
403
-
404
- Provider or customer refund-shaped signals may be recorded, but they should not become autonomous payout authority inside the public stack.
405
-
406
- Operator-shell posture should now also expose hosted checkout visibility:
407
-
408
- - purchase intent counts
409
- - runtime dispatch counts
410
- - refund review queue counts
411
-
412
- so the human payment path remains operationally visible without introducing a second control plane.
413
-
414
- This loop is exercised through:
415
-
416
- - package verification
417
- - adapter verification
418
- - quickstart verification
419
- - service verification
@@ -1,61 +0,0 @@
1
- # xytara Supabase Runtime State Setup
2
-
3
- Use this when `xytara` runs on infrastructure without persistent disk, such as a free Render service.
4
-
5
- ## What This Solves
6
-
7
- This keeps runtime economics state durable across restart:
8
-
9
- - external credit grants
10
- - entitlements
11
- - credit spends
12
- - usage meters
13
- - hidden-account economics carry
14
-
15
- ## 1. Create The Table In Supabase
16
-
17
- Run this SQL:
18
-
19
- ```sql
20
- create table if not exists public.xytara_runtime_state (
21
- state_key text primary key,
22
- snapshot jsonb not null,
23
- persisted_at_iso timestamptz not null default now()
24
- );
25
- ```
26
-
27
- ## 2. Configure xytara
28
-
29
- Set these environment variables on the deployed service:
30
-
31
- ```text
32
- XYTARA_SUPABASE_URL=https://<project-ref>.supabase.co
33
- XYTARA_SUPABASE_SERVICE_ROLE_KEY=<service-role-key>
34
- XYTARA_SUPABASE_STATE_TABLE=xytara_runtime_state
35
- XYTARA_SUPABASE_STATE_KEY=default
36
- XYTARA_STATE_SNAPSHOT_INTERVAL_MS=5000
37
- ```
38
-
39
- If `XYTARA_SUPABASE_URL` and `XYTARA_SUPABASE_SERVICE_ROLE_KEY` are set, `xytara` will use Supabase-backed runtime persistence instead of local file snapshots.
40
-
41
- ## 3. Verify Runtime Durability
42
-
43
- Inspect:
44
-
45
- - `GET /v1/runtime/durability`
46
-
47
- Expected direction:
48
-
49
- - `storage_mode: "supabase"`
50
- - `remote_reachable: true`
51
- - `remote_table_ready: true`
52
- - `snapshot_exists: true` after the first persisted mutation
53
-
54
- ## 4. Verify The Real Economics Path
55
-
56
- 1. issue a hidden-account grant
57
- 2. confirm balance and entitlements exist
58
- 3. restart or redeploy `xytara`
59
- 4. confirm the same hidden account still has balance and entitlements
60
- 5. spend once
61
- 6. confirm usage meter and spend history survive another restart
package/TERMINOLOGY.md DELETED
@@ -1,50 +0,0 @@
1
- # xytara Terminology
2
-
3
- This file freezes the public terminology used by `xytara`.
4
-
5
- The goal is:
6
-
7
- - one public name for the repo
8
- - one stable commerce vocabulary
9
- - no private-lineage naming leakage
10
-
11
- ## Public Name
12
-
13
- - repo name: `xytara`
14
- - package name: `xytara`
15
- - service name: `xytara`
16
-
17
- Use `xytara` only for this repo and its public commerce identity.
18
-
19
- ## Preferred Commerce Terms
20
-
21
- Use these terms consistently:
22
-
23
- - `catalog`
24
- - `task`
25
- - `workflow`
26
- - `task set`
27
- - `quote`
28
- - `payment`
29
- - `execute`
30
- - `deliver`
31
- - `inspect`
32
- - `operator`
33
- - `adapter`
34
- - `settlement profile`
35
- - `lifecycle`
36
-
37
- ## Cross-Repo Reference Rule
38
-
39
- If this repo needs to mention the other repo, use generic wording:
40
-
41
- - `the proof repo`
42
- - `the proof layer`
43
-
44
- Do not brand the other repo inside this repo's core public copy.
45
-
46
- ## Naming Rule
47
-
48
- This repo should read like a self-contained public commerce product with an explicit proof boundary.
49
-
50
- If wording does not strengthen that outcome, keep it generic.
@@ -1,63 +0,0 @@
1
- # Why xytara And xoonya
2
-
3
- The public stack is intentionally split into two repos because runtime commerce and canonical proof have different operating constraints.
4
-
5
- ## xytara
6
-
7
- `xytara` owns the transaction-side path:
8
-
9
- - discover
10
- - preview or quote
11
- - fund or spend
12
- - execute
13
- - inspect
14
- - export carry
15
-
16
- It is the right place for:
17
-
18
- - payment posture
19
- - credits and entitlements
20
- - settlement visibility
21
- - adapter registration and promotion
22
- - operator-facing runtime state
23
-
24
- ## xoonya
25
-
26
- `xoonya` owns the proof-side path:
27
-
28
- - receive handoff
29
- - review preserved context
30
- - emit proof-native completion
31
- - verify the final bundle
32
-
33
- It is the right place for:
34
-
35
- - canonical event shape
36
- - receipts
37
- - proof bundles
38
- - narrow proof-adjacent integrations
39
- - reviewable proof followthrough
40
-
41
- ## Why the split matters
42
-
43
- If commerce and proof are collapsed together, one side usually becomes muddy:
44
-
45
- - the runtime becomes too rigid
46
- - or the proof layer absorbs workflow and settlement semantics it should not own
47
-
48
- This split keeps both sides legible:
49
-
50
- - `xytara` stays execution and economics aware
51
- - `xoonya` stays canonical and proof aware
52
-
53
- ## What builders get
54
-
55
- Builders do not need to choose between “commerce first” and “proof first.”
56
-
57
- They can:
58
-
59
- 1. run the machine path in `xytara`
60
- 2. export or carry the result
61
- 3. complete the proof path in `xoonya`
62
-
63
- That is the public stack story.
@@ -1,78 +0,0 @@
1
- # XT1 Execution Truth Standard
2
-
3
- Status: active runtime standard
4
-
5
- Version: `xt1/v1`
6
-
7
- ## Purpose
8
-
9
- `XT1` is the coined public name for the canonical `xytara` runtime-side execution-truth standard.
10
-
11
- It is the `xytara` counterpart to `xoonya`'s `XNYA` native proof primitive.
12
-
13
- Where `XNYA` names the compact proof-side commitment family, `XT1` names the hot-state runtime fact spine that exists before proof review and followthrough move into `xoonya`.
14
-
15
- ## What XT1 Covers
16
-
17
- `XT1` freezes the canonical `xytara` object sequence:
18
-
19
- 1. `quote`
20
- 2. `transaction`
21
- 3. `receipt`
22
- 4. `delivery`
23
- 5. `settlement`
24
- 6. `proof_handoff`
25
-
26
- Together these objects form the canonical runtime transcript and fact layer for:
27
-
28
- - priced intent
29
- - payment and authorization
30
- - execution
31
- - delivery
32
- - settlement linkage
33
- - treasury linkage
34
- - proof handoff
35
-
36
- ## Doctrine
37
-
38
- `XT1` means:
39
-
40
- - `xytara` owns runtime-side execution truth
41
- - `xytara` emits proof-compatible facts
42
- - `xytara` does not redefine `xoonya` proof validity
43
- - execution success, settlement finality, and proof validity remain distinct
44
-
45
- ## Relationship To Existing Surfaces
46
-
47
- `XT1` is not a second competing model.
48
-
49
- It is the coined public standard name for the already-frozen `xytara` execution-truth model documented in:
50
-
51
- - XYTARA_EXECUTION_TRUTH_MODEL.md
52
-
53
- Machine-readable surfaces:
54
-
55
- - `GET /v1/xt1`
56
- - `GET /v1/xt1/summary`
57
- - `GET /v1/execution-truth`
58
- - `GET /v1/execution-truth/summary`
59
-
60
- The `xt1` routes are the named standard alias.
61
-
62
- The `execution-truth` routes remain the descriptive runtime alias.
63
-
64
- ## Invariants
65
-
66
- `XT1` preserves these invariants:
67
-
68
- - quote precedes irreversible paid execution
69
- - transaction is the canonical hot-state execution record
70
- - receipt is the runtime completion record, not the proof core
71
- - delivery truth remains first-class and inspectable
72
- - settlement truth remains linked but distinct from execution success
73
- - treasury consequence remains reconstructible from runtime artifacts
74
- - proof handoff remains explicit at the `xytara -> xoonya` boundary
75
-
76
- ## Public Meaning
77
-
78
- For `3.0.0`, `XT1` means the runtime side now has a public, coined, stable standard name rather than only a descriptive contract.