xoonya 3.1.17 → 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 (240) hide show
  1. package/README.md +97 -74
  2. package/RELEASE_NOTES.md +7 -1
  3. package/START_HERE.md +38 -134
  4. package/bin/xoonya-first-run.js +22 -10
  5. package/bin/xoonya.js +61 -29
  6. package/lib/native_verify.js +1918 -0
  7. package/package.json +19 -42
  8. package/scripts/verify_release_candidate.js +243 -116
  9. package/scripts/verify_vectors.js +351 -104
  10. package/verify.js +95 -0
  11. package/.env.example +0 -10
  12. package/CARRIED_HANDOFF_DEMO.md +0 -60
  13. package/COMPATIBILITY_NOTE.md +0 -27
  14. package/CROSS_RUNTIME_POSTURE.md +0 -77
  15. package/EXAMPLE_PATHS.md +0 -53
  16. package/FINAL_CONTRACT.md +0 -445
  17. package/PARTNER_READY_PATH.md +0 -67
  18. package/PUBLIC_DEMO_SCRIPT.md +0 -79
  19. package/SERVICE_CONTRACT.md +0 -207
  20. package/TERMINOLOGY.md +0 -55
  21. package/WHY_XYTARA_XOONYA.md +0 -43
  22. package/XNYA_CONFORMANCE_MARK.md +0 -78
  23. package/XNYA_REFERENCE_IMPLEMENTATIONS.md +0 -157
  24. package/XOONYA_DEFAULT_PATH_MODEL.md +0 -63
  25. package/XOONYA_FOLLOWTHROUGH_TRUTH_MODEL.md +0 -63
  26. package/XOONYA_NATIVE_ATOM_SPEC.md +0 -184
  27. package/XOONYA_NATIVE_PROOF_FORMAT.md +0 -570
  28. package/XOONYA_NATIVE_STANDARD_GOVERNANCE.md +0 -119
  29. package/XOONYA_PROOF_TRUTH_MODEL.md +0 -58
  30. package/bin/xoonya-release.js +0 -1367
  31. package/bin/xoonya-review.js +0 -70
  32. package/examples/integration_boundary_walkthrough.js +0 -37
  33. package/examples/package_quickstart.js +0 -1007
  34. package/examples/partner_proof_walkthrough.js +0 -68
  35. package/examples/proof_review_walkthrough.js +0 -66
  36. package/examples/review_carried_handoff.js +0 -72
  37. package/index.js +0 -31
  38. package/integrations/PROOF_INTEGRATION_PROCESS.md +0 -45
  39. package/integrations/examples/example-third-party-verifier-registration.record.json +0 -22
  40. package/integrations/registration-record.schema.json +0 -99
  41. package/integrations/registry-snapshot.schema.json +0 -36
  42. package/integrations/registry.js +0 -636
  43. package/integrations/views.js +0 -36
  44. package/lib/adapter_certification_contract.js +0 -90
  45. package/lib/announcement_pack.js +0 -61
  46. package/lib/artifact_distribution_lane_contract.js +0 -54
  47. package/lib/asyncapi_contract.js +0 -135
  48. package/lib/auth_interop_contract.js +0 -69
  49. package/lib/authority_binding_lifecycle_contract.js +0 -182
  50. package/lib/bridge_intelligence.js +0 -102
  51. package/lib/cloudevents_contract.js +0 -79
  52. package/lib/crypto_agility_matrix.js +0 -131
  53. package/lib/default_path_contract.js +0 -380
  54. package/lib/ecosystem_entry.js +0 -64
  55. package/lib/erc8004_proof_lane_contract.js +0 -64
  56. package/lib/event_system_lane_contract.js +0 -76
  57. package/lib/external_proof_import_lane_contract.js +0 -87
  58. package/lib/feature_control_lane_contract.js +0 -54
  59. package/lib/followthrough_truth_contract.js +0 -214
  60. package/lib/framework_lane_contract.js +0 -76
  61. package/lib/governance_disputes_summary.js +0 -36
  62. package/lib/governance_intelligence.js +0 -108
  63. package/lib/identity_interop_contract.js +0 -83
  64. package/lib/integration_matrix_contract.js +0 -81
  65. package/lib/launch_narrative.js +0 -53
  66. package/lib/machine_identity_registry_contract.js +0 -199
  67. package/lib/major_rails_proof_lane_contract.js +0 -87
  68. package/lib/offline_verifiability_recovery_contract.js +0 -155
  69. package/lib/openapi_contract.js +0 -227
  70. package/lib/operational_receipt_contract.js +0 -165
  71. package/lib/outreach_proof.js +0 -71
  72. package/lib/phase_10_closeout_pack.js +0 -45
  73. package/lib/phase_10_completion_pack.js +0 -76
  74. package/lib/phase_10_decision_record_pack.js +0 -54
  75. package/lib/phase_10_decision_resolution_pack.js +0 -53
  76. package/lib/phase_10_demand_signal_adapters_proof_pack.js +0 -74
  77. package/lib/phase_10_ecosystem_backlog_triage_proof_pack.js +0 -74
  78. package/lib/phase_10_freeze_baseline_pack.js +0 -67
  79. package/lib/phase_10_freeze_review_pack.js +0 -64
  80. package/lib/phase_10_gate_pack.js +0 -57
  81. package/lib/phase_10_long_tail_continuity_pack.js +0 -80
  82. package/lib/phase_10_long_tail_ecosystem_pack.js +0 -68
  83. package/lib/phase_10_niche_extension_registry_proof_pack.js +0 -74
  84. package/lib/phase_1_claude_mcp_pack.js +0 -60
  85. package/lib/phase_1_claude_mcp_proof_pack.js +0 -57
  86. package/lib/phase_1_ecosystem_pack.js +0 -51
  87. package/lib/phase_1_openai_codex_pack.js +0 -60
  88. package/lib/phase_1_openai_codex_proof_pack.js +0 -57
  89. package/lib/phase_2_base_proof_pack.js +0 -71
  90. package/lib/phase_2_base_usdc_proof_pack.js +0 -72
  91. package/lib/phase_2_closeout_pack.js +0 -65
  92. package/lib/phase_2_completion_pack.js +0 -113
  93. package/lib/phase_2_decision_record_pack.js +0 -66
  94. package/lib/phase_2_decision_resolution_pack.js +0 -69
  95. package/lib/phase_2_eth_proof_pack.js +0 -70
  96. package/lib/phase_2_evm_base_proof_pack.js +0 -73
  97. package/lib/phase_2_evm_proof_pack.js +0 -71
  98. package/lib/phase_2_flip_preview_pack.js +0 -60
  99. package/lib/phase_2_freeze_review_pack.js +0 -99
  100. package/lib/phase_2_gate_pack.js +0 -77
  101. package/lib/phase_2_payment_rails_pack.js +0 -71
  102. package/lib/phase_2_usdc_proof_pack.js +0 -71
  103. package/lib/phase_3_brc_proof_pack.js +0 -81
  104. package/lib/phase_3_bsv_teranode_proof_pack.js +0 -81
  105. package/lib/phase_3_closeout_pack.js +0 -62
  106. package/lib/phase_3_completion_pack.js +0 -92
  107. package/lib/phase_3_decision_record_pack.js +0 -64
  108. package/lib/phase_3_decision_resolution_pack.js +0 -69
  109. package/lib/phase_3_freeze_baseline_pack.js +0 -67
  110. package/lib/phase_3_freeze_review_pack.js +0 -80
  111. package/lib/phase_3_gate_pack.js +0 -76
  112. package/lib/phase_3_metanet_proof_pack.js +0 -81
  113. package/lib/phase_3_native_bsv_pack.js +0 -89
  114. package/lib/phase_3_native_continuity_pack.js +0 -82
  115. package/lib/phase_4_attestation_proof_pack.js +0 -75
  116. package/lib/phase_4_closeout_pack.js +0 -45
  117. package/lib/phase_4_completion_pack.js +0 -82
  118. package/lib/phase_4_decision_record_pack.js +0 -54
  119. package/lib/phase_4_decision_resolution_pack.js +0 -45
  120. package/lib/phase_4_erc8004_proof_pack.js +0 -76
  121. package/lib/phase_4_freeze_baseline_pack.js +0 -67
  122. package/lib/phase_4_freeze_review_pack.js +0 -68
  123. package/lib/phase_4_gate_pack.js +0 -58
  124. package/lib/phase_4_identity_registry_proof_pack.js +0 -75
  125. package/lib/phase_4_identity_trust_pack.js +0 -73
  126. package/lib/phase_4_trust_continuity_pack.js +0 -86
  127. package/lib/phase_5_antelope_proof_pack.js +0 -76
  128. package/lib/phase_5_closeout_pack.js +0 -44
  129. package/lib/phase_5_completion_pack.js +0 -82
  130. package/lib/phase_5_decision_record_pack.js +0 -54
  131. package/lib/phase_5_decision_resolution_pack.js +0 -45
  132. package/lib/phase_5_freeze_baseline_pack.js +0 -67
  133. package/lib/phase_5_freeze_review_pack.js +0 -68
  134. package/lib/phase_5_gate_pack.js +0 -58
  135. package/lib/phase_5_major_rails_continuity_pack.js +0 -86
  136. package/lib/phase_5_major_rails_pack.js +0 -74
  137. package/lib/phase_5_proton_xpr_proof_pack.js +0 -76
  138. package/lib/phase_5_solana_proof_pack.js +0 -76
  139. package/lib/phase_6_autogen_proof_pack.js +0 -74
  140. package/lib/phase_6_closeout_pack.js +0 -46
  141. package/lib/phase_6_completion_pack.js +0 -77
  142. package/lib/phase_6_decision_record_pack.js +0 -54
  143. package/lib/phase_6_decision_resolution_pack.js +0 -53
  144. package/lib/phase_6_framework_continuity_pack.js +0 -81
  145. package/lib/phase_6_framework_runtime_pack.js +0 -68
  146. package/lib/phase_6_freeze_baseline_pack.js +0 -68
  147. package/lib/phase_6_freeze_review_pack.js +0 -65
  148. package/lib/phase_6_gate_pack.js +0 -59
  149. package/lib/phase_6_langchain_proof_pack.js +0 -74
  150. package/lib/phase_6_langgraph_proof_pack.js +0 -74
  151. package/lib/phase_6_semantic_kernel_proof_pack.js +0 -74
  152. package/lib/phase_7_closeout_pack.js +0 -45
  153. package/lib/phase_7_completion_pack.js +0 -85
  154. package/lib/phase_7_decision_record_pack.js +0 -53
  155. package/lib/phase_7_decision_resolution_pack.js +0 -53
  156. package/lib/phase_7_event_system_continuity_pack.js +0 -89
  157. package/lib/phase_7_event_system_pack.js +0 -76
  158. package/lib/phase_7_freeze_baseline_pack.js +0 -74
  159. package/lib/phase_7_freeze_review_pack.js +0 -65
  160. package/lib/phase_7_gate_pack.js +0 -58
  161. package/lib/phase_7_kafka_proof_pack.js +0 -76
  162. package/lib/phase_7_mqtt_proof_pack.js +0 -76
  163. package/lib/phase_7_nats_proof_pack.js +0 -76
  164. package/lib/phase_7_webhook_event_bus_proof_pack.js +0 -76
  165. package/lib/phase_8_closeout_pack.js +0 -46
  166. package/lib/phase_8_completion_pack.js +0 -82
  167. package/lib/phase_8_decision_record_pack.js +0 -54
  168. package/lib/phase_8_decision_resolution_pack.js +0 -53
  169. package/lib/phase_8_external_receipt_import_proof_pack.js +0 -74
  170. package/lib/phase_8_external_result_import_proof_pack.js +0 -74
  171. package/lib/phase_8_freeze_baseline_pack.js +0 -71
  172. package/lib/phase_8_freeze_review_pack.js +0 -64
  173. package/lib/phase_8_gate_pack.js +0 -58
  174. package/lib/phase_8_proof_bridge_continuity_pack.js +0 -86
  175. package/lib/phase_8_proof_bridges_pack.js +0 -72
  176. package/lib/phase_8_proof_bundle_normalization_proof_pack.js +0 -74
  177. package/lib/phase_9_closeout_pack.js +0 -46
  178. package/lib/phase_9_completion_pack.js +0 -82
  179. package/lib/phase_9_custody_refs_proof_pack.js +0 -74
  180. package/lib/phase_9_decision_record_pack.js +0 -54
  181. package/lib/phase_9_decision_resolution_pack.js +0 -53
  182. package/lib/phase_9_freeze_baseline_pack.js +0 -71
  183. package/lib/phase_9_freeze_review_pack.js +0 -64
  184. package/lib/phase_9_gate_pack.js +0 -58
  185. package/lib/phase_9_operator_accounting_bridges_proof_pack.js +0 -74
  186. package/lib/phase_9_treasury_connectivity_pack.js +0 -72
  187. package/lib/phase_9_treasury_continuity_pack.js +0 -86
  188. package/lib/phase_9_treasury_destinations_proof_pack.js +0 -74
  189. package/lib/phase_program_pack.js +0 -47
  190. package/lib/proof_bridge_lane_contract.js +0 -82
  191. package/lib/proof_truth_contract.js +0 -224
  192. package/lib/provenance_lane_contract.js +0 -54
  193. package/lib/provider_lane_contract.js +0 -67
  194. package/lib/public_surface_policy_contract.js +0 -111
  195. package/lib/publish_plan.js +0 -51
  196. package/lib/release_candidate.js +0 -50
  197. package/lib/release_center.js +0 -1037
  198. package/lib/release_history.js +0 -206
  199. package/lib/release_manifest.js +0 -114
  200. package/lib/release_pack.js +0 -391
  201. package/lib/result_package_trust_lane_contract.js +0 -74
  202. package/lib/review_intelligence.js +0 -100
  203. package/lib/role_freeze.js +0 -436
  204. package/lib/shared_signals_lane_contract.js +0 -54
  205. package/lib/signed_audit_provenance_contract.js +0 -93
  206. package/lib/telemetry_lane_contract.js +0 -54
  207. package/lib/treasury_proof_lane_contract.js +0 -83
  208. package/lib/trust_intelligence.js +0 -106
  209. package/lib/trust_portability_boundary_contract.js +0 -66
  210. package/lib/trust_portability_pack.js +0 -224
  211. package/lib/verification_service_pack.js +0 -149
  212. package/proof_sdk.js +0 -6692
  213. package/reference/python/README.md +0 -35
  214. package/reference/python/requirements-optional.txt +0 -1
  215. package/reference/python/verify_vectors.py +0 -223
  216. package/reference/python/xnya_reference.py +0 -810
  217. package/reference/rust/Cargo.toml +0 -11
  218. package/reference/rust/README.md +0 -28
  219. package/reference/rust/src/lib.rs +0 -87
  220. package/scripts/registry_cli.js +0 -157
  221. package/scripts/verify_all.js +0 -603
  222. package/scripts/verify_control_plane_contracts.js +0 -34
  223. package/scripts/verify_control_plane_routes.js +0 -70
  224. package/scripts/verify_examples.js +0 -19
  225. package/scripts/verify_external_proof_import_gate.js +0 -84
  226. package/scripts/verify_external_proof_signature.js +0 -142
  227. package/scripts/verify_forgery_resistance.js +0 -281
  228. package/scripts/verify_integrations.js +0 -170
  229. package/scripts/verify_native_hybrid_design_gate.js +0 -114
  230. package/scripts/verify_paid_execute.js +0 -133
  231. package/scripts/verify_paywall_flag.js +0 -86
  232. package/scripts/verify_reference_promotion_gate.js +0 -74
  233. package/scripts/verify_reference_python.js +0 -49
  234. package/scripts/verify_reference_python_crypto.js +0 -87
  235. package/scripts/verify_reference_rust_scaffold.js +0 -50
  236. package/scripts/verify_service.js +0 -3038
  237. package/scripts/verify_tooling.js +0 -1251
  238. package/scripts/verify_trust_portability.js +0 -56
  239. package/scripts/verify_verification_services.js +0 -56
  240. package/server.js +0 -4430
@@ -1,90 +0,0 @@
1
- "use strict";
2
-
3
- const packageJson = require("../package.json");
4
-
5
- function buildAdapterCertificationContractPack() {
6
- return {
7
- ok: true,
8
- product: packageJson.name,
9
- category: "naxytra-adapter-certification-contract",
10
- pack_version: "naxytra-adapter-certification-contract-v1",
11
- doctrine: "xoonya_certifies_adapter_compatibility_for_proof_and_review_surfaces_without_leaking_proof_core_semantics",
12
- model_state: "core_now",
13
- core_claim: "adapter certification is the machine-readable gate for manifest, capability, health, idempotency, failure, proof, and front-specific compatibility claims",
14
- certification_states: [
15
- { state: "pass", description: "the adapter satisfies the declared front contract without material constraints" },
16
- { state: "pass_with_constraints", description: "the adapter is usable but only within declared constraints" },
17
- { state: "needs_retest", description: "the adapter needs a fresh run against updated vectors or interface versions" },
18
- { state: "blocked", description: "the adapter cannot be certified until a required dependency or vector exists" },
19
- { state: "fail", description: "the adapter does not satisfy the declared front contract" }
20
- ],
21
- certification_fronts: [
22
- { front_id: "protocol_front", required_tests: ["protocol negotiation", "surface discovery", "normalized request translation"], required_evidence: ["manifest", "protocol compatibility result", "failure mapping result"], claim_boundary: "only_claim_listed_protocol_front_compatibility" },
23
- { front_id: "execution_front", required_tests: ["task dispatch", "idempotency", "execution result normalization"], required_evidence: ["manifest", "task vector results", "proof-compatible output facts"], claim_boundary: "only_claim_listed_execution_front_compatibility" },
24
- { front_id: "payment_front", required_tests: ["quote to pay compatibility", "payment admission", "reversal or refund posture"], required_evidence: ["payment state result", "receipt compatibility result", "failure mapping result"], claim_boundary: "only_claim_listed_payment_front_compatibility" },
25
- { front_id: "settlement_front", required_tests: ["settlement target translation", "finality reference capture", "batch or direct settlement posture"], required_evidence: ["settlement reference", "finality state", "reconciliation evidence"], claim_boundary: "only_claim_listed_settlement_front_compatibility" },
26
- { front_id: "identity_trust_front", required_tests: ["identity schema compatibility", "registry linkage", "attestation or trust-state roundtrip"], required_evidence: ["identity record", "registry proof", "trust-state result"], claim_boundary: "only_claim_listed_identity_trust_front_compatibility" },
27
- { front_id: "proof_front", required_tests: ["receipt compatibility", "proof import or export compatibility", "verification hook compatibility"], required_evidence: ["proof contract result", "receipt result", "verification evidence"], claim_boundary: "only_claim_listed_proof_front_compatibility" },
28
- { front_id: "treasury_front", required_tests: ["destination routing", "balance model compatibility", "payout landing compatibility"], required_evidence: ["treasury route result", "account abstraction result", "operator review note"], claim_boundary: "only_claim_listed_treasury_front_compatibility" },
29
- { front_id: "operator_front", required_tests: ["review surface visibility", "promotion posture", "reporting export compatibility"], required_evidence: ["review summary", "promotion readiness result", "operator export"], claim_boundary: "only_claim_listed_operator_front_compatibility" }
30
- ],
31
- harness_requirements: {
32
- test_categories: [
33
- "manifest_validity",
34
- "interface_conformance",
35
- "capability_declaration",
36
- "health_reporting",
37
- "failure_mapping",
38
- "idempotency_behavior",
39
- "proof_compatibility",
40
- "front_specific_lifecycle_compatibility"
41
- ],
42
- required_result_fields: [
43
- "certification_state",
44
- "interface_version",
45
- "tested_fronts",
46
- "tested_capabilities",
47
- "failed_cases",
48
- "warnings",
49
- "evidence_refs"
50
- ]
51
- },
52
- linked_surfaces: {
53
- proof_bridge_ref: "/v1/proof-bridge",
54
- verification_services_ref: "/v1/proof-center/verification-services",
55
- submission_bundle_review_ref: "/v1/proof-center/result-package-handoff/review/summary",
56
- trust_portability_ref: "/v1/proof-center/trust-portability/summary",
57
- integration_matrix_ref: "/v1/integration-matrix",
58
- provenance_ref: "/v1/provenance"
59
- },
60
- claim_boundary: "claim_adapter_certification_as_front_specific_compatibility_and_review_gate_without_claiming_vendor_default_or_proof_core_truth"
61
- };
62
- }
63
-
64
- function summarizeAdapterCertificationContractPack() {
65
- const pack = buildAdapterCertificationContractPack();
66
- return {
67
- ok: true,
68
- product: pack.product,
69
- category: pack.category,
70
- summary_version: "naxytra-adapter-certification-contract-summary-v1",
71
- pack_version: pack.pack_version,
72
- model_state: pack.model_state,
73
- certification_state_count: pack.certification_states.length,
74
- certification_front_count: pack.certification_fronts.length,
75
- required_test_category_count: pack.harness_requirements.test_categories.length,
76
- linked_surfaces: pack.linked_surfaces
77
- };
78
- }
79
-
80
- function getAdapterCertificationFrontDetail(frontId) {
81
- const normalized = String(frontId || "").trim().toLowerCase();
82
- return (buildAdapterCertificationContractPack().certification_fronts || []).find((entry) => entry.front_id === normalized) || null;
83
- }
84
-
85
- module.exports = {
86
- buildAdapterCertificationContractPack,
87
- summarizeAdapterCertificationContractPack,
88
- getAdapterCertificationFrontDetail
89
- };
90
-
@@ -1,61 +0,0 @@
1
- "use strict";
2
-
3
- const packageJson = require("../package.json");
4
-
5
- function buildAnnouncementPack() {
6
- return {
7
- ok: true,
8
- product: packageJson.name,
9
- category: "proof-announcement-pack",
10
- public_quickstart: {
11
- install: "npm install xoonya",
12
- first_cli: "xoonya-review --file ./handoff.json --summary",
13
- first_release_view: "xoonya-release --center --summary",
14
- first_http: "/v1/release-center/summary"
15
- },
16
- release_candidate: {
17
- checks: [
18
- "install the package on a clean machine",
19
- "run xoonya-release --center --summary",
20
- "run npm run verify:all",
21
- "verify /v1/release-center/summary on the deployed service",
22
- "verify /v1/outreach-proof/summary on the deployed service"
23
- ]
24
- },
25
- publish_day: {
26
- sequence: [
27
- "publish the npm package",
28
- "redeploy the service and docs surfaces",
29
- "verify release-center, launch-narrative, and outreach-proof summaries live",
30
- "run the first public proof-side review path",
31
- "share the announcement artifact with proof operators and verification-focused builders"
32
- ]
33
- },
34
- public_message: {
35
- headline: "reviewable proof continuation for machine actions that cross trust boundaries",
36
- who_should_try_first: [
37
- "proof operators",
38
- "runtime builders needing verification followthrough",
39
- "governance and audit teams"
40
- ]
41
- }
42
- };
43
- }
44
-
45
- function summarizeAnnouncementPack() {
46
- const pack = buildAnnouncementPack();
47
- return {
48
- ok: true,
49
- product: pack.product,
50
- category: pack.category,
51
- rc_check_count: pack.release_candidate.checks.length,
52
- publish_step_count: pack.publish_day.sequence.length,
53
- first_cli: pack.public_quickstart.first_cli,
54
- audience_count: pack.public_message.who_should_try_first.length
55
- };
56
- }
57
-
58
- module.exports = {
59
- buildAnnouncementPack,
60
- summarizeAnnouncementPack
61
- };
@@ -1,54 +0,0 @@
1
- "use strict";
2
-
3
- function buildArtifactDistributionLanePack() {
4
- return {
5
- product: "xoonya",
6
- category: "proof-artifact-distribution-lane-pack",
7
- pack_version: "xoonya-artifact-distribution-lane-pack-v1",
8
- lane_state: "first_party_artifact_distribution_lane_present",
9
- posture: "oci_style_distribution_for_proof_bundles_and_integration_artifacts",
10
- standards: ["oci_artifacts", "oras_style_distribution"],
11
- artifact_families: ["proof_bundles", "handoff_bundles", "integration_snapshots", "release_artifacts"],
12
- supported_surfaces: {
13
- integrations_ref: "/v1/integrations",
14
- integrations_snapshot_ref: "/v1/integrations/snapshot",
15
- proof_bridge_ref: "/v1/proof-bridge",
16
- result_package_trust_ref: "/v1/result-package-trust",
17
- release_center_ref: "/v1/release-center"
18
- },
19
- first_run_flows: [
20
- {
21
- flow_ref: "proof_artifact_distribution_alignment",
22
- recommended_reason: "best path for teams that want portable proof and integration artifacts rather than custom export conventions",
23
- sequence: [
24
- "inspect_artifact_distribution_lane_summary",
25
- "inspect proof_bridge and import surfaces",
26
- "treat proof bundles and integration snapshots as distribution-ready artifacts",
27
- "publish or transfer them later through standard artifact registries without changing proof semantics"
28
- ]
29
- }
30
- ],
31
- guardrails: [
32
- "artifact portability should preserve canonical proof bundle and handoff shapes",
33
- "distribution posture must not create a second proof model"
34
- ]
35
- };
36
- }
37
-
38
- function summarizeArtifactDistributionLanePack() {
39
- const pack = buildArtifactDistributionLanePack();
40
- return {
41
- product: "xoonya",
42
- category: "proof-artifact-distribution-lane-pack-summary",
43
- summary_version: "xoonya-artifact-distribution-lane-pack-summary-v1",
44
- lane_state: pack.lane_state,
45
- standard_count: pack.standards.length,
46
- artifact_family_count: pack.artifact_families.length,
47
- linked_surfaces: pack.supported_surfaces
48
- };
49
- }
50
-
51
- module.exports = {
52
- buildArtifactDistributionLanePack,
53
- summarizeArtifactDistributionLanePack
54
- };
@@ -1,135 +0,0 @@
1
- "use strict";
2
-
3
- const pkg = require("../package.json");
4
-
5
- function buildAsyncApiDocument() {
6
- return {
7
- asyncapi: "3.0.0",
8
- info: {
9
- title: "xoonya Event Contract",
10
- version: pkg.version,
11
- summary: "Proof and review event contract.",
12
- description: "This AsyncAPI document describes the stable proof-side canonicalization, receipt, proof-bundle, and bridge event surfaces."
13
- },
14
- servers: {
15
- httpProof: {
16
- host: "127.0.0.1:4340",
17
- protocol: "http",
18
- description: "Local xoonya HTTP proof event entrypoint"
19
- }
20
- },
21
- channels: {
22
- "proof/events/canonicalize": {
23
- address: "/v1/events/canonicalize",
24
- messages: {
25
- canonicalizeEventRequest: {
26
- name: "canonicalizeEventRequest",
27
- title: "Canonicalize event request",
28
- summary: "Canonicalize inbound event data before proof construction."
29
- }
30
- }
31
- },
32
- "proof/events/hash": {
33
- address: "/v1/events/hash",
34
- messages: {
35
- hashEventRequest: {
36
- name: "hashEventRequest",
37
- title: "Hash event request",
38
- summary: "Hash canonical event data."
39
- }
40
- }
41
- },
42
- "proof/receipts/emit": {
43
- address: "/v1/receipts/emit",
44
- messages: {
45
- emitReceiptRequest: {
46
- name: "emitReceiptRequest",
47
- title: "Emit receipt request",
48
- summary: "Emit proof receipt data."
49
- }
50
- }
51
- },
52
- "proof/bundles/build": {
53
- address: "/v1/proof-bundles/build",
54
- messages: {
55
- buildProofBundleRequest: {
56
- name: "buildProofBundleRequest",
57
- title: "Build proof bundle request",
58
- summary: "Build a proof bundle from canonical proof inputs."
59
- }
60
- }
61
- },
62
- "proof/bridge/economic-handoff": {
63
- address: "/v1/proof-center/bridge/economic-handoff",
64
- messages: {
65
- economicHandoffRequest: {
66
- name: "economicHandoffRequest",
67
- title: "Economic handoff bridge request",
68
- summary: "Bridge bounded economic consequence data into proof review."
69
- }
70
- }
71
- }
72
- },
73
- operations: {
74
- canonicalizeProofEvent: {
75
- action: "send",
76
- channel: { $ref: "#/channels/proof/events/canonicalize" },
77
- summary: "Send canonicalization input into the proof loop."
78
- },
79
- hashProofEvent: {
80
- action: "send",
81
- channel: { $ref: "#/channels/proof/events/hash" },
82
- summary: "Send event data for proof hash generation."
83
- },
84
- emitProofReceipt: {
85
- action: "send",
86
- channel: { $ref: "#/channels/proof/receipts/emit" },
87
- summary: "Send receipt emission input into the proof loop."
88
- },
89
- buildProofBundle: {
90
- action: "send",
91
- channel: { $ref: "#/channels/proof/bundles/build" },
92
- summary: "Send proof-bundle build input into the proof loop."
93
- },
94
- bridgeEconomicHandoff: {
95
- action: "send",
96
- channel: { $ref: "#/channels/proof/bridge/economic-handoff" },
97
- summary: "Send runtime economic handoff data into proof review."
98
- }
99
- },
100
- "x-naxytra-contract": {
101
- product: "xoonya",
102
- stability: "stable_public_event_layer",
103
- channel_count: 5,
104
- linked_docs: [
105
- "SERVICE_CONTRACT.md",
106
- "FINAL_CONTRACT.md",
107
- "START_HERE.md"
108
- ]
109
- }
110
- };
111
- }
112
-
113
- function summarizeAsyncApiDocument() {
114
- const document = buildAsyncApiDocument();
115
- return {
116
- product: "xoonya",
117
- category: "proof-asyncapi-contract-summary",
118
- summary_version: "xoonya-asyncapi-contract-summary-v1",
119
- asyncapi_version: document.asyncapi,
120
- info_version: document.info.version,
121
- channel_count: Object.keys(document.channels).length,
122
- operation_count: Object.keys(document.operations).length,
123
- primary_event_lanes: ["canonicalization", "receipts", "proof_bundles", "bridge"],
124
- linked_surfaces: {
125
- asyncapi_ref: "/asyncapi.json",
126
- service_contract_ref: "SERVICE_CONTRACT.md",
127
- openapi_ref: "/openapi.json"
128
- }
129
- };
130
- }
131
-
132
- module.exports = {
133
- buildAsyncApiDocument,
134
- summarizeAsyncApiDocument
135
- };
@@ -1,69 +0,0 @@
1
- "use strict";
2
-
3
- const pkg = require("../package.json");
4
-
5
- function buildAuthInteropContract() {
6
- return {
7
- product: "xoonya",
8
- category: "proof-auth-interop-contract",
9
- contract_version: "xoonya-auth-interop-contract-v1",
10
- service_version: pkg.version,
11
- primary_posture: "proof_verification_with_oauth_oidc_and_token_exchange_interop",
12
- supported_interop_profiles: [
13
- {
14
- profile_id: "proof_verifier_client_credentials",
15
- standards: ["oauth_2_0", "oidc_optional"],
16
- intended_use: "machine verifier access to proof verification surfaces",
17
- primary_routes: ["/v1/receipts/verify", "/v1/proof-bundles/verify"]
18
- },
19
- {
20
- profile_id: "runtime_to_proof_handoff_token_exchange",
21
- standards: ["oauth_2_0_token_exchange", "jwt_bearer_optional"],
22
- intended_use: "map runtime-side bearer posture into bounded proof-side review and bridge intake",
23
- primary_routes: ["/v1/proof-center/bridge/economic-handoff"]
24
- },
25
- {
26
- profile_id: "proof_role_governance_interop",
27
- standards: ["oauth_2_0", "oidc"],
28
- intended_use: "operator and reviewer access to frozen proof-role and governance surfaces",
29
- primary_routes: ["/v1/role-freeze", "/v1/role-freeze/package"]
30
- }
31
- ],
32
- native_proof_mapping: {
33
- proof_verify: "/v1/proof-bundles/verify",
34
- receipt_verify: "/v1/receipts/verify",
35
- bridge_economic_handoff: "/v1/proof-center/bridge/economic-handoff",
36
- role_freeze_package: "/v1/role-freeze/package"
37
- },
38
- guardrails: [
39
- "proof verification semantics remain canonical inside xoonya rather than inside bearer tokens",
40
- "token exchange may convey bounded review posture but must not redefine proof truth",
41
- "bridge intake auth must remain subordinate to proof-side review and governance checks"
42
- ],
43
- linked_surfaces: {
44
- openapi_ref: "/openapi.json",
45
- asyncapi_ref: "/asyncapi.json",
46
- cloudevents_ref: "/cloudevents.json",
47
- service_contract_ref: "SERVICE_CONTRACT.md"
48
- }
49
- };
50
- }
51
-
52
- function summarizeAuthInteropContract() {
53
- const contract = buildAuthInteropContract();
54
- return {
55
- product: "xoonya",
56
- category: "proof-auth-interop-contract-summary",
57
- summary_version: "xoonya-auth-interop-contract-summary-v1",
58
- contract_version: contract.contract_version,
59
- profile_count: contract.supported_interop_profiles.length,
60
- primary_posture: contract.primary_posture,
61
- primary_protocol_lanes: ["proof_verify", "receipt_verify", "bridge"],
62
- linked_surfaces: contract.linked_surfaces
63
- };
64
- }
65
-
66
- module.exports = {
67
- buildAuthInteropContract,
68
- summarizeAuthInteropContract
69
- };
@@ -1,182 +0,0 @@
1
- "use strict";
2
-
3
- const packageJson = require("../package.json");
4
-
5
- function buildAuthorityBindingLifecycleContractPack() {
6
- return {
7
- ok: true,
8
- product: packageJson.name,
9
- category: "naxytra-authority-binding-lifecycle-contract",
10
- pack_version: "naxytra-authority-binding-lifecycle-contract-v1",
11
- doctrine: "xoonya_reviews_binding_lifecycle_state_without_claiming_universal_external_identity_authority_or_custody_truth",
12
- model_state: "core_now",
13
- core_claim: "binding lifecycle state is the proof-linked record for identity bindings authority bindings spend credentials and delegated signing",
14
- binding_kinds: [
15
- {
16
- binding_kind: "identity_binding",
17
- description: "binds a subject to an identity posture"
18
- },
19
- {
20
- binding_kind: "authority_binding",
21
- description: "binds a subject to an authority posture"
22
- },
23
- {
24
- binding_kind: "spend_credential",
25
- description: "binds a subject to a spend credential or delegated spend posture"
26
- },
27
- {
28
- binding_kind: "delegation_grant",
29
- description: "records a delegated capability grant"
30
- },
31
- {
32
- binding_kind: "delegation_revocation",
33
- description: "records that a delegation has been revoked"
34
- },
35
- {
36
- binding_kind: "key_binding",
37
- description: "binds a subject to a key or public-key reference"
38
- }
39
- ],
40
- lifecycle_states: [
41
- { state: "active", description: "usable and currently in force" },
42
- { state: "rotated", description: "superseded by a successor binding" },
43
- { state: "revoked", description: "disabled before natural expiry" },
44
- { state: "expired", description: "no longer valid because the validity window ended" },
45
- { state: "suspended", description: "temporarily unusable pending review" }
46
- ],
47
- canonical_objects: [
48
- {
49
- object_id: "binding_lifecycle_record",
50
- role: "versioned_lineage_preserving_state_record_for_a_binding_or_credential",
51
- required_fields: [
52
- "version",
53
- "binding_id",
54
- "binding_kind",
55
- "subject_id",
56
- "status",
57
- "issued_by",
58
- "issued_at_iso"
59
- ],
60
- recommended_fields: [
61
- "expires_at_iso",
62
- "rotated_from_binding_id",
63
- "replaced_by_binding_id",
64
- "revoked_at_iso",
65
- "revoke_reason",
66
- "scope",
67
- "key_ref",
68
- "signature_suite",
69
- "proof_ref",
70
- "anchor_ref"
71
- ],
72
- optional_fields: [
73
- "delegation_ref",
74
- "controller_id",
75
- "previous_binding_id",
76
- "metadata"
77
- ],
78
- primary_surfaces: [
79
- "/v1/phases/phase-4/identity-registry/proof",
80
- "/v1/phases/phase-4/identity-registry/proof/summary",
81
- "/v1/phases/phase-4/attestation/proof",
82
- "/v1/proof-center/trust-portability",
83
- "/v1/proof-center/trust-portability/summary"
84
- ]
85
- }
86
- ],
87
- transition_rules: [
88
- "issue_creates_a_new_active_binding",
89
- "renew_extends_expiry_without_breaking_lineage",
90
- "rotate_creates_a_successor_binding_and_preserves_predecessor_lineage",
91
- "revoke_disables_the_binding_and_preserves_auditability",
92
- "expire_marks_the_binding_inactive_when_the_validity_window_ends",
93
- "narrow_scope_must_not_silently_broaden_access"
94
- ],
95
- delegated_signing_rules: [
96
- "delegated_signing_must_be_explicit",
97
- "delegated_signing_must_be_scope_bounded",
98
- "delegated_signing_must_be_time_bounded_unless_a_product_decision_says_otherwise",
99
- "delegated_signing_must_preserve_subject_and_issuer_lineage",
100
- "delegated_signing_must_not_become_hidden_shared_secret_magic"
101
- ],
102
- lineage_model: [
103
- {
104
- layer_id: "binding_review",
105
- order_index: 1,
106
- objects: ["binding_lifecycle_record"],
107
- invariants: [
108
- "issuance_is_explicit",
109
- "binding_ids_are_versioned_and_auditable"
110
- ]
111
- },
112
- {
113
- layer_id: "binding_portability",
114
- order_index: 2,
115
- objects: ["binding_lifecycle_record"],
116
- invariants: [
117
- "predecessor_and_successor_linkage_is_preserved",
118
- "revocation_history_remains_visible"
119
- ]
120
- },
121
- {
122
- layer_id: "proof_followthrough",
123
- order_index: 3,
124
- objects: ["binding_lifecycle_record"],
125
- invariants: [
126
- "binding_lineage_can_be_carried_into_proof_without_becoming_proof_truth_itself",
127
- "optional_proof_and_anchor_refs_do_not_change_base_binding_meaning"
128
- ]
129
- }
130
- ],
131
- invariants: [
132
- "binding_state_changes_are_explicit_and_versioned",
133
- "rotation_preserves_lineage",
134
- "revocation_preserves_auditability",
135
- "delegated_signing_remains_bounded",
136
- "binding_lifecycle_is_a_proof_followthrough_concept_not_a_general_web_token_story"
137
- ],
138
- linked_surfaces: {
139
- identity_binding_proof_ref: "/v1/phases/phase-4/identity-registry/proof",
140
- identity_binding_proof_summary_ref: "/v1/phases/phase-4/identity-registry/proof/summary",
141
- attestation_proof_ref: "/v1/phases/phase-4/attestation/proof",
142
- trust_portability_ref: "/v1/proof-center/trust-portability",
143
- trust_portability_summary_ref: "/v1/proof-center/trust-portability/summary"
144
- },
145
- claim_boundary: "claim_the_xoonya_binding_lifecycle_followthrough_only_without_claiming_universal_external_identity_authority_or_custody_truth"
146
- };
147
- }
148
-
149
- function summarizeAuthorityBindingLifecycleContractPack() {
150
- const pack = buildAuthorityBindingLifecycleContractPack();
151
- return {
152
- ok: true,
153
- product: pack.product,
154
- category: pack.category,
155
- summary_version: "naxytra-authority-binding-lifecycle-contract-summary-v1",
156
- pack_version: pack.pack_version,
157
- model_state: pack.model_state,
158
- binding_kind_count: pack.binding_kinds.length,
159
- lifecycle_state_count: pack.lifecycle_states.length,
160
- canonical_object_count: pack.canonical_objects.length,
161
- transition_rule_count: pack.transition_rules.length,
162
- delegated_signing_rule_count: pack.delegated_signing_rules.length,
163
- linked_surfaces: pack.linked_surfaces
164
- };
165
- }
166
-
167
- function getAuthorityBindingKindDetail(bindingKind) {
168
- const normalized = String(bindingKind || "").trim().toLowerCase();
169
- return (buildAuthorityBindingLifecycleContractPack().binding_kinds || []).find((entry) => entry.binding_kind === normalized) || null;
170
- }
171
-
172
- function getAuthorityLifecycleStateDetail(state) {
173
- const normalized = String(state || "").trim().toLowerCase();
174
- return (buildAuthorityBindingLifecycleContractPack().lifecycle_states || []).find((entry) => entry.state === normalized) || null;
175
- }
176
-
177
- module.exports = {
178
- buildAuthorityBindingLifecycleContractPack,
179
- summarizeAuthorityBindingLifecycleContractPack,
180
- getAuthorityBindingKindDetail,
181
- getAuthorityLifecycleStateDetail
182
- };