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