xoonya 2.0.0 → 2.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 (154) hide show
  1. package/CARRIED_HANDOFF_DEMO.md +60 -0
  2. package/EXAMPLE_PATHS.md +53 -0
  3. package/FINAL_CONTRACT.md +6 -6
  4. package/OPERATIONS_RUNBOOK.md +50 -0
  5. package/OPERATOR_START_HERE.md +67 -0
  6. package/PARTNER_READY_PATH.md +67 -0
  7. package/PROGRAM_COMPLETE_RELEASE.md +52 -0
  8. package/PROGRAM_STATUS.md +57 -0
  9. package/PUBLIC_DEMO_SCRIPT.md +79 -0
  10. package/PUBLISH_PLAN.md +14 -0
  11. package/README.md +86 -2
  12. package/RELEASE_CHECKLIST.md +16 -0
  13. package/RELEASE_NOTES.md +28 -0
  14. package/START_HERE.md +28 -0
  15. package/WHY_XYTARA_XOONYA.md +43 -0
  16. package/bin/xoonya-release.js +1349 -0
  17. package/bin/xoonya-review.js +70 -0
  18. package/examples/integration_boundary_walkthrough.js +37 -0
  19. package/examples/package_quickstart.js +1007 -0
  20. package/examples/partner_proof_walkthrough.js +68 -0
  21. package/examples/proof_review_walkthrough.js +66 -0
  22. package/examples/review_carried_handoff.js +72 -0
  23. package/index.js +11 -1
  24. package/lib/announcement_pack.js +61 -0
  25. package/lib/ecosystem_entry.js +64 -0
  26. package/lib/launch_narrative.js +53 -0
  27. package/lib/outreach_proof.js +71 -0
  28. package/lib/phase_10_closeout_pack.js +45 -0
  29. package/lib/phase_10_completion_pack.js +76 -0
  30. package/lib/phase_10_decision_record_pack.js +54 -0
  31. package/lib/phase_10_decision_resolution_pack.js +53 -0
  32. package/lib/phase_10_demand_signal_adapters_proof_pack.js +74 -0
  33. package/lib/phase_10_ecosystem_backlog_triage_proof_pack.js +74 -0
  34. package/lib/phase_10_freeze_baseline_pack.js +67 -0
  35. package/lib/phase_10_freeze_review_pack.js +64 -0
  36. package/lib/phase_10_gate_pack.js +57 -0
  37. package/lib/phase_10_long_tail_continuity_pack.js +80 -0
  38. package/lib/phase_10_long_tail_ecosystem_pack.js +68 -0
  39. package/lib/phase_10_niche_extension_registry_proof_pack.js +74 -0
  40. package/lib/phase_1_claude_mcp_pack.js +60 -0
  41. package/lib/phase_1_claude_mcp_proof_pack.js +57 -0
  42. package/lib/phase_1_ecosystem_pack.js +51 -0
  43. package/lib/phase_1_openai_codex_pack.js +60 -0
  44. package/lib/phase_1_openai_codex_proof_pack.js +57 -0
  45. package/lib/phase_2_base_proof_pack.js +71 -0
  46. package/lib/phase_2_base_usdc_proof_pack.js +72 -0
  47. package/lib/phase_2_closeout_pack.js +65 -0
  48. package/lib/phase_2_completion_pack.js +113 -0
  49. package/lib/phase_2_decision_record_pack.js +66 -0
  50. package/lib/phase_2_decision_resolution_pack.js +69 -0
  51. package/lib/phase_2_eth_proof_pack.js +70 -0
  52. package/lib/phase_2_evm_base_proof_pack.js +73 -0
  53. package/lib/phase_2_evm_proof_pack.js +71 -0
  54. package/lib/phase_2_flip_preview_pack.js +60 -0
  55. package/lib/phase_2_freeze_review_pack.js +99 -0
  56. package/lib/phase_2_gate_pack.js +77 -0
  57. package/lib/phase_2_payment_rails_pack.js +71 -0
  58. package/lib/phase_2_usdc_proof_pack.js +71 -0
  59. package/lib/phase_3_brc_proof_pack.js +81 -0
  60. package/lib/phase_3_bsv_teranode_proof_pack.js +81 -0
  61. package/lib/phase_3_closeout_pack.js +62 -0
  62. package/lib/phase_3_completion_pack.js +92 -0
  63. package/lib/phase_3_decision_record_pack.js +64 -0
  64. package/lib/phase_3_decision_resolution_pack.js +69 -0
  65. package/lib/phase_3_freeze_baseline_pack.js +67 -0
  66. package/lib/phase_3_freeze_review_pack.js +80 -0
  67. package/lib/phase_3_gate_pack.js +76 -0
  68. package/lib/phase_3_metanet_proof_pack.js +81 -0
  69. package/lib/phase_3_native_bsv_pack.js +89 -0
  70. package/lib/phase_3_native_continuity_pack.js +82 -0
  71. package/lib/phase_4_attestation_proof_pack.js +75 -0
  72. package/lib/phase_4_closeout_pack.js +45 -0
  73. package/lib/phase_4_completion_pack.js +82 -0
  74. package/lib/phase_4_decision_record_pack.js +54 -0
  75. package/lib/phase_4_decision_resolution_pack.js +45 -0
  76. package/lib/phase_4_erc8004_proof_pack.js +76 -0
  77. package/lib/phase_4_freeze_baseline_pack.js +67 -0
  78. package/lib/phase_4_freeze_review_pack.js +68 -0
  79. package/lib/phase_4_gate_pack.js +58 -0
  80. package/lib/phase_4_identity_registry_proof_pack.js +75 -0
  81. package/lib/phase_4_identity_trust_pack.js +73 -0
  82. package/lib/phase_4_trust_continuity_pack.js +86 -0
  83. package/lib/phase_5_antelope_proof_pack.js +76 -0
  84. package/lib/phase_5_closeout_pack.js +44 -0
  85. package/lib/phase_5_completion_pack.js +82 -0
  86. package/lib/phase_5_decision_record_pack.js +54 -0
  87. package/lib/phase_5_decision_resolution_pack.js +45 -0
  88. package/lib/phase_5_freeze_baseline_pack.js +67 -0
  89. package/lib/phase_5_freeze_review_pack.js +68 -0
  90. package/lib/phase_5_gate_pack.js +58 -0
  91. package/lib/phase_5_major_rails_continuity_pack.js +86 -0
  92. package/lib/phase_5_major_rails_pack.js +74 -0
  93. package/lib/phase_5_proton_xpr_proof_pack.js +76 -0
  94. package/lib/phase_5_solana_proof_pack.js +76 -0
  95. package/lib/phase_6_autogen_proof_pack.js +74 -0
  96. package/lib/phase_6_closeout_pack.js +46 -0
  97. package/lib/phase_6_completion_pack.js +77 -0
  98. package/lib/phase_6_decision_record_pack.js +54 -0
  99. package/lib/phase_6_decision_resolution_pack.js +53 -0
  100. package/lib/phase_6_framework_continuity_pack.js +81 -0
  101. package/lib/phase_6_framework_runtime_pack.js +68 -0
  102. package/lib/phase_6_freeze_baseline_pack.js +68 -0
  103. package/lib/phase_6_freeze_review_pack.js +65 -0
  104. package/lib/phase_6_gate_pack.js +59 -0
  105. package/lib/phase_6_langchain_proof_pack.js +74 -0
  106. package/lib/phase_6_langgraph_proof_pack.js +74 -0
  107. package/lib/phase_6_semantic_kernel_proof_pack.js +74 -0
  108. package/lib/phase_7_closeout_pack.js +45 -0
  109. package/lib/phase_7_completion_pack.js +85 -0
  110. package/lib/phase_7_decision_record_pack.js +53 -0
  111. package/lib/phase_7_decision_resolution_pack.js +53 -0
  112. package/lib/phase_7_event_system_continuity_pack.js +89 -0
  113. package/lib/phase_7_event_system_pack.js +76 -0
  114. package/lib/phase_7_freeze_baseline_pack.js +74 -0
  115. package/lib/phase_7_freeze_review_pack.js +65 -0
  116. package/lib/phase_7_gate_pack.js +58 -0
  117. package/lib/phase_7_kafka_proof_pack.js +76 -0
  118. package/lib/phase_7_mqtt_proof_pack.js +76 -0
  119. package/lib/phase_7_nats_proof_pack.js +76 -0
  120. package/lib/phase_7_webhook_event_bus_proof_pack.js +76 -0
  121. package/lib/phase_8_closeout_pack.js +46 -0
  122. package/lib/phase_8_completion_pack.js +82 -0
  123. package/lib/phase_8_decision_record_pack.js +54 -0
  124. package/lib/phase_8_decision_resolution_pack.js +53 -0
  125. package/lib/phase_8_external_receipt_import_proof_pack.js +74 -0
  126. package/lib/phase_8_external_result_import_proof_pack.js +74 -0
  127. package/lib/phase_8_freeze_baseline_pack.js +71 -0
  128. package/lib/phase_8_freeze_review_pack.js +64 -0
  129. package/lib/phase_8_gate_pack.js +58 -0
  130. package/lib/phase_8_proof_bridge_continuity_pack.js +86 -0
  131. package/lib/phase_8_proof_bridges_pack.js +72 -0
  132. package/lib/phase_8_proof_bundle_normalization_proof_pack.js +74 -0
  133. package/lib/phase_9_closeout_pack.js +46 -0
  134. package/lib/phase_9_completion_pack.js +82 -0
  135. package/lib/phase_9_custody_refs_proof_pack.js +74 -0
  136. package/lib/phase_9_decision_record_pack.js +54 -0
  137. package/lib/phase_9_decision_resolution_pack.js +53 -0
  138. package/lib/phase_9_freeze_baseline_pack.js +71 -0
  139. package/lib/phase_9_freeze_review_pack.js +64 -0
  140. package/lib/phase_9_gate_pack.js +58 -0
  141. package/lib/phase_9_operator_accounting_bridges_proof_pack.js +74 -0
  142. package/lib/phase_9_treasury_connectivity_pack.js +72 -0
  143. package/lib/phase_9_treasury_continuity_pack.js +86 -0
  144. package/lib/phase_9_treasury_destinations_proof_pack.js +74 -0
  145. package/lib/phase_program_pack.js +47 -0
  146. package/lib/publish_plan.js +51 -0
  147. package/lib/release_candidate.js +50 -0
  148. package/lib/release_center.js +1037 -0
  149. package/lib/release_history.js +72 -0
  150. package/lib/release_manifest.js +114 -0
  151. package/lib/release_pack.js +391 -0
  152. package/package.json +26 -2
  153. package/proof_sdk.js +43 -2
  154. package/server.js +1852 -0
package/proof_sdk.js CHANGED
@@ -1093,6 +1093,23 @@ function extractEconomicConsequenceCarry(handoff) {
1093
1093
  usage_units: conformance.deterministic_consequence.usage_units,
1094
1094
  pricing_band: conformance.deterministic_consequence.pricing_band,
1095
1095
  meter_profile_ref: conformance.deterministic_consequence.meter_profile_ref,
1096
+ economic_audit_summary: {
1097
+ account_ref: conformance.deterministic_consequence.account_ref,
1098
+ usage_meter_ref: conformance.deterministic_consequence.usage_meter_ref,
1099
+ credit_spend_ref: conformance.deterministic_consequence.credit_spend_ref,
1100
+ usage_units: conformance.deterministic_consequence.usage_units,
1101
+ pricing_band: conformance.deterministic_consequence.pricing_band,
1102
+ meter_profile_ref: conformance.deterministic_consequence.meter_profile_ref,
1103
+ payment_ref: conformance.deterministic_consequence.payment_ref,
1104
+ settlement_ref: conformance.deterministic_consequence.settlement_ref,
1105
+ settlement_txid: conformance.deterministic_consequence.settlement_txid,
1106
+ settlement_status: conformance.deterministic_consequence.settlement_status,
1107
+ settlement_finality_status: conformance.deterministic_consequence.settlement_finality_status,
1108
+ treasury_receipt_ref: conformance.deterministic_consequence.treasury_receipt_ref,
1109
+ proof_ref: conformance.deterministic_consequence.proof_ref,
1110
+ conformance_pack_ref: conformance.conformance_pack_ref,
1111
+ review_summary_surface: conformance.review_summary_surface
1112
+ },
1096
1113
  next_surface: conformance.next_surface,
1097
1114
  review_summary_surface: conformance.review_summary_surface
1098
1115
  }
@@ -1412,6 +1429,9 @@ function summarizeReviewedInteractionResultPackageHandoff(input) {
1412
1429
  economic_consequence_ready: Boolean(review.economic_consequence_review),
1413
1430
  usage_meter_ref: review.economic_consequence_review ? review.economic_consequence_review.usage_meter_ref : null,
1414
1431
  credit_spend_ref: review.economic_consequence_review ? review.economic_consequence_review.credit_spend_ref : null,
1432
+ economic_audit_summary: review.economic_consequence_review
1433
+ ? review.economic_consequence_review.economic_audit_summary || null
1434
+ : null,
1415
1435
  economic_consequence_review: review.economic_consequence_review || null
1416
1436
  };
1417
1437
  }
@@ -2218,6 +2238,13 @@ function buildEconomicConsequenceBridgeHandoff(input) {
2218
2238
  const usageMeterRef = normalizeString(body.usage_meter_ref);
2219
2239
  const meterProfileRef = normalizeString(body.meter_profile_ref);
2220
2240
  const creditSpendRef = normalizeString(body.credit_spend_ref);
2241
+ const paymentRef = normalizeString(body.payment_ref);
2242
+ const settlementRef = normalizeString(body.settlement_ref);
2243
+ const settlementTxid = normalizeString(body.settlement_txid);
2244
+ const settlementStatus = normalizeString(body.settlement_status);
2245
+ const settlementFinalityStatus = normalizeString(body.settlement_finality_status);
2246
+ const treasuryReceiptRef = normalizeString(body.treasury_receipt_ref);
2247
+ const proofRef = normalizeString(body.proof_ref);
2221
2248
  const usageMeter = body.usage_meter && typeof body.usage_meter === "object" && !Array.isArray(body.usage_meter)
2222
2249
  ? body.usage_meter
2223
2250
  : null;
@@ -2249,7 +2276,14 @@ function buildEconomicConsequenceBridgeHandoff(input) {
2249
2276
  meter_profile_ref: meterProfileRef,
2250
2277
  credit_spend_ref: creditSpendRef,
2251
2278
  credit_spend_hash: canonicalJsonSha256Hex(creditSpend),
2252
- credit_spend: creditSpend
2279
+ credit_spend: creditSpend,
2280
+ payment_ref: paymentRef || null,
2281
+ settlement_ref: settlementRef || null,
2282
+ settlement_txid: settlementTxid || null,
2283
+ settlement_status: settlementStatus || null,
2284
+ settlement_finality_status: settlementFinalityStatus || null,
2285
+ treasury_receipt_ref: treasuryReceiptRef || null,
2286
+ proof_ref: proofRef || null
2253
2287
  }
2254
2288
  };
2255
2289
  return {
@@ -2277,7 +2311,14 @@ function buildEconomicConsequenceConformancePack(input) {
2277
2311
  credit_spend_ref: economicsContext.credit_spend_ref,
2278
2312
  usage_units: Number(economicsContext.usage_meter.units || 0),
2279
2313
  pricing_band: normalizeString(economicsContext.usage_meter.pricing_band || null) || null,
2280
- meter_profile_ref: economicsContext.meter_profile_ref
2314
+ meter_profile_ref: economicsContext.meter_profile_ref,
2315
+ payment_ref: economicsContext.payment_ref || null,
2316
+ settlement_ref: economicsContext.settlement_ref || null,
2317
+ settlement_txid: economicsContext.settlement_txid || null,
2318
+ settlement_status: economicsContext.settlement_status || null,
2319
+ settlement_finality_status: economicsContext.settlement_finality_status || null,
2320
+ treasury_receipt_ref: economicsContext.treasury_receipt_ref || null,
2321
+ proof_ref: economicsContext.proof_ref || null
2281
2322
  },
2282
2323
  preserved_routes: [
2283
2324
  "/v1/proof-center/bridge/economic-handoff",