xoonya 2.14.0 → 3.0.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 +74 -19
- package/RELEASE_NOTES.md +8 -7
- package/START_HERE.md +42 -21
- package/XNYA_REFERENCE_IMPLEMENTATIONS.md +3 -3
- package/XOONYA_DEFAULT_PATH_MODEL.md +63 -0
- package/XOONYA_FOLLOWTHROUGH_TRUTH_MODEL.md +63 -0
- package/XOONYA_NATIVE_PROOF_FORMAT.md +27 -4
- package/XOONYA_PROOF_TRUTH_MODEL.md +58 -0
- package/index.js +3 -0
- package/lib/default_path_contract.js +380 -0
- package/lib/followthrough_truth_contract.js +214 -0
- package/lib/proof_truth_contract.js +224 -0
- package/lib/release_history.js +13 -0
- package/package.json +5 -2
- package/proof_sdk.js +351 -19
- package/reference/python/verify_vectors.py +14 -0
- package/reference/python/xnya_reference.py +1 -1
- package/scripts/verify_all.js +18 -8
- package/scripts/verify_native_hybrid_design_gate.js +40 -34
- package/scripts/verify_release_candidate.js +4 -3
- package/scripts/verify_service.js +63 -4
- package/scripts/verify_vectors.js +29 -1
- package/server.js +99 -0
- package/vectors/adversarial-vectors.json +96 -27
- package/vectors/conformance-vectors.json +58 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const packageJson = require("../package.json");
|
|
4
|
+
const proofSdk = require("../proof_sdk");
|
|
5
|
+
const { summarizeVerificationServicesPack } = require("./verification_service_pack");
|
|
6
|
+
const { summarizeTrustPortabilityPack } = require("./trust_portability_pack");
|
|
7
|
+
|
|
8
|
+
function buildProofTruthModelPack() {
|
|
9
|
+
const proofCenter = proofSdk.summarizeDefaultProofCenter();
|
|
10
|
+
const nativeStandard = proofSdk.summarizexoonyaNativeProofStandard();
|
|
11
|
+
const nativeAtom = proofSdk.summarizexoonyaNativeAtomSpec();
|
|
12
|
+
const nativePayloadProfile = proofSdk.summarizexoonyaNativePayloadProfilePack();
|
|
13
|
+
const nativeAnchorProfile = proofSdk.summarizexoonyaNativeAnchorProfile();
|
|
14
|
+
const verificationServices = summarizeVerificationServicesPack();
|
|
15
|
+
const trustPortability = summarizeTrustPortabilityPack();
|
|
16
|
+
const transactionHandoff = proofSdk.summarizeTransactionProofHandoffCenter();
|
|
17
|
+
const interactionHandoff = proofSdk.summarizeInteractionSpineProofHandoffCenter();
|
|
18
|
+
const resultPackageHandoff = proofSdk.summarizeInteractionResultPackageHandoffCenter();
|
|
19
|
+
const bridge = proofSdk.summarizeBridgeCenter();
|
|
20
|
+
const governance = proofSdk.summarizeGovernanceCenter();
|
|
21
|
+
|
|
22
|
+
return {
|
|
23
|
+
ok: true,
|
|
24
|
+
product: packageJson.name,
|
|
25
|
+
category: "xoonya-proof-truth-model",
|
|
26
|
+
pack_version: "xoonya-proof-truth-model-v1",
|
|
27
|
+
posture: "deterministic_proof_truth_plus_reviewable_followthrough",
|
|
28
|
+
model_state: "frozen_for_3_0_0_closeout",
|
|
29
|
+
doctrine: "xoonya_owns_proof_truth_verification_reviewable_handoff_followthrough_and_governance_without_reabsorbing_runtime_commerce_semantics",
|
|
30
|
+
core_claim: "xoonya is the canonical proof-side fact model linking canonical events, receipts, proof bundles, native XNYA artifacts, verification services, handoff continuation, bridge carry, and governance followthrough",
|
|
31
|
+
canonical_objects: [
|
|
32
|
+
{
|
|
33
|
+
object_id: "canonical_event_bundle",
|
|
34
|
+
role: "deterministic_hot_input_for_proof_construction",
|
|
35
|
+
required_fields: [
|
|
36
|
+
"event",
|
|
37
|
+
"event_hash_sha256"
|
|
38
|
+
],
|
|
39
|
+
primary_surfaces: [
|
|
40
|
+
"/v1/events/canonicalize",
|
|
41
|
+
"/v1/events/hash"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
object_id: "receipt",
|
|
46
|
+
role: "canonical_intermediate_statement_of_what_is_being_proved",
|
|
47
|
+
required_fields: [
|
|
48
|
+
"receipt_id",
|
|
49
|
+
"event_hash_sha256",
|
|
50
|
+
"verification_method"
|
|
51
|
+
],
|
|
52
|
+
primary_surfaces: [
|
|
53
|
+
"/v1/receipts/emit",
|
|
54
|
+
"/v1/receipts/verify"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
object_id: "proof_bundle",
|
|
59
|
+
role: "portable_replayable_verifiable_proof_output",
|
|
60
|
+
required_fields: [
|
|
61
|
+
"version",
|
|
62
|
+
"ceb",
|
|
63
|
+
"receipt",
|
|
64
|
+
"proof"
|
|
65
|
+
],
|
|
66
|
+
primary_surfaces: [
|
|
67
|
+
"/v1/proof-bundles/build",
|
|
68
|
+
"/v1/proof-bundles/verify"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
object_id: "xnya_native_artifact",
|
|
73
|
+
role: "native_compact_machine_evidence_artifact",
|
|
74
|
+
required_fields: [
|
|
75
|
+
"method",
|
|
76
|
+
"native_atom_magic",
|
|
77
|
+
"payload_hash_or_binding"
|
|
78
|
+
],
|
|
79
|
+
primary_surfaces: [
|
|
80
|
+
"/v1/proof-center/native-standard",
|
|
81
|
+
"/v1/proof-center/native-atom-spec",
|
|
82
|
+
"/v1/proof-center/native-payload-profile",
|
|
83
|
+
"/v1/proof-center/native-anchor-profile"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
object_id: "proof_handoff_review",
|
|
88
|
+
role: "reviewable_runtime_to_proof_continuation_boundary",
|
|
89
|
+
required_fields: [
|
|
90
|
+
"source_ref",
|
|
91
|
+
"proof_ref",
|
|
92
|
+
"review_summary"
|
|
93
|
+
],
|
|
94
|
+
primary_surfaces: [
|
|
95
|
+
"/v1/proof-center/transaction-handoff/summary",
|
|
96
|
+
"/v1/proof-center/interaction-spine-handoff/summary",
|
|
97
|
+
"/v1/proof-center/result-package-handoff/review/summary"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
object_id: "bridge_and_governance_followthrough",
|
|
102
|
+
role: "operator_review_bridge_and_dispute_followthrough_bundle",
|
|
103
|
+
required_fields: [
|
|
104
|
+
"bridge_ref_or_bundle",
|
|
105
|
+
"governance_review_ref_or_case"
|
|
106
|
+
],
|
|
107
|
+
primary_surfaces: [
|
|
108
|
+
"/v1/proof-center/bridge/summary",
|
|
109
|
+
"/v1/proof-center/governance/summary",
|
|
110
|
+
"/v1/proof-center/governance/disputes/summary"
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
layer_model: [
|
|
115
|
+
{
|
|
116
|
+
layer_id: "proof_core",
|
|
117
|
+
order_index: 1,
|
|
118
|
+
objects: ["canonical_event_bundle", "receipt", "proof_bundle"],
|
|
119
|
+
invariants: [
|
|
120
|
+
"proof_core_stays_deterministic_portable_and_replayable",
|
|
121
|
+
"proof_bundle_verification_is_canonical_xoonya_truth"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
layer_id: "native_xnya",
|
|
126
|
+
order_index: 2,
|
|
127
|
+
objects: ["xnya_native_artifact"],
|
|
128
|
+
invariants: [
|
|
129
|
+
"xnya_is_the_native_compact_machine_evidence_family",
|
|
130
|
+
"native_artifacts_do_not_replace_runtime_or_identity_control_planes"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
layer_id: "verification_services",
|
|
135
|
+
order_index: 3,
|
|
136
|
+
objects: ["proof_bundle", "proof_handoff_review"],
|
|
137
|
+
invariants: [
|
|
138
|
+
"verification_surfaces_stay_first_class_services",
|
|
139
|
+
"external_signature_or_chain_truth_requires_bounded_claim_language"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
layer_id: "handoff_and_bridge_continuity",
|
|
144
|
+
order_index: 4,
|
|
145
|
+
objects: ["proof_handoff_review", "bridge_and_governance_followthrough"],
|
|
146
|
+
invariants: [
|
|
147
|
+
"runtime_outputs_can_continue_into_proof_without_dead_end_loss",
|
|
148
|
+
"bridge_carry_preserves_reviewable_context_without_becoming_runtime_truth"
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
layer_id: "governance_followthrough",
|
|
153
|
+
order_index: 5,
|
|
154
|
+
objects: ["bridge_and_governance_followthrough"],
|
|
155
|
+
invariants: [
|
|
156
|
+
"governance_preserves_reviewable_dispute_and_resolution_posture",
|
|
157
|
+
"xoonya_does_not_claim_universal_external_judgment_truth"
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
proof_truth_invariants: [
|
|
162
|
+
"canonical_event_bundle_precedes_receipt_and_bundle_verification",
|
|
163
|
+
"receipt_is_a_canonical_proof_intermediate_not_runtime_commerce_truth",
|
|
164
|
+
"proof_bundle_is_the_portable_verifiable_output",
|
|
165
|
+
"xnya_is_the_native_compact_evidence_family",
|
|
166
|
+
"handoff_review_is_first_class_not_optional_afterthought",
|
|
167
|
+
"bridge_and_governance_surfaces_extend_proof_followthrough_without_redefining_runtime_truth"
|
|
168
|
+
],
|
|
169
|
+
linked_summaries: {
|
|
170
|
+
proof_center_summary: proofCenter,
|
|
171
|
+
native_standard_summary: nativeStandard,
|
|
172
|
+
native_atom_summary: nativeAtom,
|
|
173
|
+
native_payload_profile_summary: nativePayloadProfile,
|
|
174
|
+
native_anchor_profile_summary: nativeAnchorProfile,
|
|
175
|
+
verification_services_summary: verificationServices,
|
|
176
|
+
trust_portability_summary: trustPortability,
|
|
177
|
+
transaction_handoff_summary: transactionHandoff,
|
|
178
|
+
interaction_handoff_summary: interactionHandoff,
|
|
179
|
+
result_package_handoff_summary: resultPackageHandoff,
|
|
180
|
+
bridge_summary: bridge,
|
|
181
|
+
governance_summary: governance
|
|
182
|
+
},
|
|
183
|
+
linked_surfaces: {
|
|
184
|
+
proof_center_ref: "/v1/proof-center",
|
|
185
|
+
proof_center_summary_ref: "/v1/proof-center/summary",
|
|
186
|
+
native_standard_summary_ref: "/v1/proof-center/native-standard/summary",
|
|
187
|
+
verification_services_summary_ref: "/v1/proof-center/verification-services/summary",
|
|
188
|
+
trust_portability_summary_ref: "/v1/proof-center/trust-portability/summary",
|
|
189
|
+
transaction_handoff_summary_ref: "/v1/proof-center/transaction-handoff/summary",
|
|
190
|
+
interaction_handoff_summary_ref: "/v1/proof-center/interaction-spine-handoff/summary",
|
|
191
|
+
result_package_handoff_review_summary_ref: "/v1/proof-center/result-package-handoff/review/summary",
|
|
192
|
+
bridge_summary_ref: "/v1/proof-center/bridge/summary",
|
|
193
|
+
governance_summary_ref: "/v1/proof-center/governance/summary"
|
|
194
|
+
},
|
|
195
|
+
claim_boundary: "claim_the_proof_side_fact_model_verification_and_reviewable_followthrough_only_without_reclaiming_runtime_commerce_truth_or_unbounded_external_chain_identity_or_judgment_truth"
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function summarizeProofTruthModelPack() {
|
|
200
|
+
const pack = buildProofTruthModelPack();
|
|
201
|
+
return {
|
|
202
|
+
ok: true,
|
|
203
|
+
product: pack.product,
|
|
204
|
+
category: pack.category,
|
|
205
|
+
summary_version: "xoonya-proof-truth-model-summary-v1",
|
|
206
|
+
pack_version: pack.pack_version,
|
|
207
|
+
model_state: pack.model_state,
|
|
208
|
+
canonical_object_count: pack.canonical_objects.length,
|
|
209
|
+
layer_count: pack.layer_model.length,
|
|
210
|
+
invariant_count: pack.proof_truth_invariants.length,
|
|
211
|
+
linked_surfaces: pack.linked_surfaces
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
function getProofTruthObjectDetail(objectId) {
|
|
216
|
+
const normalized = String(objectId || "").trim().toLowerCase();
|
|
217
|
+
return (buildProofTruthModelPack().canonical_objects || []).find((entry) => entry.object_id === normalized) || null;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
module.exports = {
|
|
221
|
+
buildProofTruthModelPack,
|
|
222
|
+
summarizeProofTruthModelPack,
|
|
223
|
+
getProofTruthObjectDetail
|
|
224
|
+
};
|
package/lib/release_history.js
CHANGED
|
@@ -10,6 +10,19 @@ function buildReleaseHistory() {
|
|
|
10
10
|
current_version: packageJson.version,
|
|
11
11
|
release_track: "public_release",
|
|
12
12
|
history: [
|
|
13
|
+
{
|
|
14
|
+
version: "2.15.0",
|
|
15
|
+
channel: "public_release",
|
|
16
|
+
maturity_posture: "final_intermediary_closeout",
|
|
17
|
+
headline: "final intermediary closeout release with frozen proof truth, default-path, and followthrough surfaces plus an explicit 3.0.0 claim boundary",
|
|
18
|
+
milestone_refs: [
|
|
19
|
+
"proof_truth_model",
|
|
20
|
+
"default_path_model",
|
|
21
|
+
"followthrough_truth_model",
|
|
22
|
+
"umbrella_first_contact_alignment",
|
|
23
|
+
"synchronized_2_15_release_prep"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
13
26
|
{
|
|
14
27
|
version: "2.14.0",
|
|
15
28
|
channel: "public_release",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xoonya",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Deterministic proof and review engine for receipts, handoffs, governance, and verification.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"url": "https://naxytra.com/xoonya"
|
|
17
17
|
},
|
|
18
18
|
"engines": {
|
|
19
|
-
"node": ">=
|
|
19
|
+
"node": ">=24"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"index.js",
|
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
"RELEASE_NOTES.md",
|
|
32
32
|
".env.example",
|
|
33
33
|
"README.md",
|
|
34
|
+
"XOONYA_PROOF_TRUTH_MODEL.md",
|
|
35
|
+
"XOONYA_DEFAULT_PATH_MODEL.md",
|
|
36
|
+
"XOONYA_FOLLOWTHROUGH_TRUTH_MODEL.md",
|
|
34
37
|
"XOONYA_NATIVE_PROOF_FORMAT.md",
|
|
35
38
|
"XOONYA_NATIVE_ATOM_SPEC.md",
|
|
36
39
|
"XOONYA_NATIVE_STANDARD_GOVERNANCE.md",
|