xoonya 2.3.0 → 2.5.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 +16 -0
- package/RELEASE_NOTES.md +17 -13
- package/SERVICE_CONTRACT.md +64 -0
- package/START_HERE.md +27 -0
- package/bin/xoonya.js +55 -0
- package/lib/artifact_distribution_lane_contract.js +54 -0
- package/lib/asyncapi_contract.js +135 -0
- package/lib/auth_interop_contract.js +69 -0
- package/lib/cloudevents_contract.js +79 -0
- package/lib/erc8004_proof_lane_contract.js +64 -0
- package/lib/event_system_lane_contract.js +76 -0
- package/lib/external_proof_import_lane_contract.js +87 -0
- package/lib/feature_control_lane_contract.js +54 -0
- package/lib/framework_lane_contract.js +76 -0
- package/lib/identity_interop_contract.js +83 -0
- package/lib/integration_matrix_contract.js +81 -0
- package/lib/major_rails_proof_lane_contract.js +87 -0
- package/lib/openapi_contract.js +227 -0
- package/lib/proof_bridge_lane_contract.js +82 -0
- package/lib/provenance_lane_contract.js +54 -0
- package/lib/provider_lane_contract.js +67 -0
- package/lib/release_history.js +16 -0
- package/lib/result_package_trust_lane_contract.js +74 -0
- package/lib/role_freeze.js +436 -0
- package/lib/shared_signals_lane_contract.js +54 -0
- package/lib/telemetry_lane_contract.js +54 -0
- package/lib/treasury_proof_lane_contract.js +83 -0
- package/package.json +4 -3
- package/server.js +504 -0
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const packageJson = require("../package.json");
|
|
4
|
+
const proofSdk = require("../proof_sdk");
|
|
5
|
+
const {
|
|
6
|
+
buildTrustIntelligencePack
|
|
7
|
+
} = require("./trust_intelligence");
|
|
8
|
+
const {
|
|
9
|
+
buildReviewIntelligencePack
|
|
10
|
+
} = require("./review_intelligence");
|
|
11
|
+
const {
|
|
12
|
+
buildGovernanceIntelligencePack
|
|
13
|
+
} = require("./governance_intelligence");
|
|
14
|
+
const {
|
|
15
|
+
buildBridgeIntelligencePack
|
|
16
|
+
} = require("./bridge_intelligence");
|
|
17
|
+
|
|
18
|
+
function buildRoleFreezePack() {
|
|
19
|
+
const proofCenterSummary = proofSdk.summarizeDefaultProofCenter();
|
|
20
|
+
const resultPackageHandoffSummary = proofSdk.summarizeInteractionResultPackageHandoffCenter();
|
|
21
|
+
const governanceSummary = proofSdk.summarizeGovernanceCenter();
|
|
22
|
+
const bridgeSummary = proofSdk.summarizeBridgeCenter();
|
|
23
|
+
const trustIntelligence = buildTrustIntelligencePack();
|
|
24
|
+
const reviewIntelligence = buildReviewIntelligencePack();
|
|
25
|
+
const governanceIntelligence = buildGovernanceIntelligencePack();
|
|
26
|
+
const bridgeIntelligence = buildBridgeIntelligencePack();
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
ok: true,
|
|
30
|
+
product: packageJson.name,
|
|
31
|
+
category: "proof-role-freeze-pack",
|
|
32
|
+
frozen_role: "proof_review_governance_bridge_followthrough",
|
|
33
|
+
role_state: "explicitly_frozen",
|
|
34
|
+
owns: [
|
|
35
|
+
"canonical_proof_bundle_model",
|
|
36
|
+
"result_package_review_and_followthrough",
|
|
37
|
+
"governance_review_and_signoff",
|
|
38
|
+
"bridge_and_compatibility_followthrough",
|
|
39
|
+
"proof_side_operator_and_review_intelligence"
|
|
40
|
+
],
|
|
41
|
+
does_not_own: [
|
|
42
|
+
"runtime_execution_ownership",
|
|
43
|
+
"wallet_or_ledger_truth",
|
|
44
|
+
"machine_economics_or_pricing_truth",
|
|
45
|
+
"fiat_ingress_ownership",
|
|
46
|
+
"settlement_authority_ownership"
|
|
47
|
+
],
|
|
48
|
+
role_doctrine: {
|
|
49
|
+
lead_entry_surface: "/v1/proof-center/result-package-handoff/review/summary",
|
|
50
|
+
primary_center_surface: "/v1/proof-center/summary",
|
|
51
|
+
runtime_boundary: "xytara_owns_runtime_wallet_authority_identity_and_economics_truth",
|
|
52
|
+
bridge_boundary: "xoonya_carries_reviewable_proof_followthrough_without_becoming_runtime_core"
|
|
53
|
+
},
|
|
54
|
+
role_strength_signals: {
|
|
55
|
+
proof_helper_count: proofCenterSummary.helper_count,
|
|
56
|
+
result_package_source_ref_count: resultPackageHandoffSummary.source_ref_count,
|
|
57
|
+
governance_capability_count: governanceSummary.capability_count,
|
|
58
|
+
bridge_capability_count: bridgeSummary.capability_count
|
|
59
|
+
},
|
|
60
|
+
intelligence_posture: {
|
|
61
|
+
proof_readiness_state: trustIntelligence.proof_readiness_state,
|
|
62
|
+
review_burden_state: reviewIntelligence.review_burden_state,
|
|
63
|
+
escalation_readiness_state: governanceIntelligence.escalation_readiness_state,
|
|
64
|
+
bridge_coverage_state: bridgeIntelligence.bridge_coverage_state
|
|
65
|
+
},
|
|
66
|
+
linked_surfaces: {
|
|
67
|
+
proof_center_summary_ref: "/v1/proof-center/summary",
|
|
68
|
+
result_package_handoff_summary_ref: "/v1/proof-center/result-package-handoff/summary",
|
|
69
|
+
governance_summary_ref: "/v1/proof-center/governance/summary",
|
|
70
|
+
bridge_summary_ref: "/v1/proof-center/bridge/summary",
|
|
71
|
+
trust_intelligence_summary_ref: "/v1/trust-intelligence/summary",
|
|
72
|
+
review_intelligence_summary_ref: "/v1/review-intelligence/summary",
|
|
73
|
+
governance_intelligence_summary_ref: "/v1/governance-intelligence/summary",
|
|
74
|
+
bridge_intelligence_summary_ref: "/v1/bridge-intelligence/summary"
|
|
75
|
+
},
|
|
76
|
+
generated_from: {
|
|
77
|
+
proof_bundle_version: proofCenterSummary.proof_bundle_version,
|
|
78
|
+
center_ref: proofCenterSummary.center_ref || "/v1/proof-center",
|
|
79
|
+
governance_center_ref: governanceSummary.center_ref,
|
|
80
|
+
bridge_center_ref: bridgeSummary.center_ref
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function summarizeRoleFreezePack() {
|
|
86
|
+
const pack = buildRoleFreezePack();
|
|
87
|
+
return {
|
|
88
|
+
ok: true,
|
|
89
|
+
product: pack.product,
|
|
90
|
+
category: pack.category,
|
|
91
|
+
frozen_role: pack.frozen_role,
|
|
92
|
+
role_state: pack.role_state,
|
|
93
|
+
lead_entry_surface: pack.role_doctrine.lead_entry_surface,
|
|
94
|
+
owns_count: pack.owns.length,
|
|
95
|
+
does_not_own_count: pack.does_not_own.length
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function buildRoleFreezeOperatorBundle() {
|
|
100
|
+
const roleFreeze = buildRoleFreezePack();
|
|
101
|
+
const trustIntelligence = buildTrustIntelligencePack();
|
|
102
|
+
const reviewIntelligence = buildReviewIntelligencePack();
|
|
103
|
+
const governanceIntelligence = buildGovernanceIntelligencePack();
|
|
104
|
+
const bridgeIntelligence = buildBridgeIntelligencePack();
|
|
105
|
+
|
|
106
|
+
return {
|
|
107
|
+
ok: true,
|
|
108
|
+
product: packageJson.name,
|
|
109
|
+
category: "proof-role-freeze-operator-bundle",
|
|
110
|
+
bundle_version: "xoonya-proof-role-freeze-operator-bundle-v1",
|
|
111
|
+
operator_posture: {
|
|
112
|
+
frozen_role: roleFreeze.frozen_role,
|
|
113
|
+
role_state: roleFreeze.role_state,
|
|
114
|
+
proof_readiness_state: trustIntelligence.proof_readiness_state,
|
|
115
|
+
review_burden_state: reviewIntelligence.review_burden_state,
|
|
116
|
+
escalation_readiness_state: governanceIntelligence.escalation_readiness_state,
|
|
117
|
+
bridge_coverage_state: bridgeIntelligence.bridge_coverage_state,
|
|
118
|
+
recommended_operator_motion: bridgeIntelligence.bridge_coverage_state === "thin"
|
|
119
|
+
? "strengthen_bridge_followthrough"
|
|
120
|
+
: governanceIntelligence.escalation_readiness_state === "active"
|
|
121
|
+
? "advance_governance_followthrough"
|
|
122
|
+
: trustIntelligence.proof_readiness_state !== "strong"
|
|
123
|
+
? "strengthen_result_package_review_entry"
|
|
124
|
+
: "maintain_frozen_proof_role"
|
|
125
|
+
},
|
|
126
|
+
role_freeze: roleFreeze,
|
|
127
|
+
trust_intelligence: trustIntelligence,
|
|
128
|
+
review_intelligence: reviewIntelligence,
|
|
129
|
+
governance_intelligence: governanceIntelligence,
|
|
130
|
+
bridge_intelligence: bridgeIntelligence,
|
|
131
|
+
linked_surfaces: {
|
|
132
|
+
role_freeze_ref: "/v1/role-freeze",
|
|
133
|
+
role_freeze_summary_ref: "/v1/role-freeze/summary",
|
|
134
|
+
trust_intelligence_ref: "/v1/trust-intelligence",
|
|
135
|
+
review_intelligence_ref: "/v1/review-intelligence",
|
|
136
|
+
governance_intelligence_ref: "/v1/governance-intelligence",
|
|
137
|
+
bridge_intelligence_ref: "/v1/bridge-intelligence"
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function summarizeRoleFreezeOperatorBundle() {
|
|
143
|
+
const bundle = buildRoleFreezeOperatorBundle();
|
|
144
|
+
return {
|
|
145
|
+
ok: true,
|
|
146
|
+
product: bundle.product,
|
|
147
|
+
category: bundle.category,
|
|
148
|
+
bundle_version: bundle.bundle_version,
|
|
149
|
+
frozen_role: bundle.operator_posture.frozen_role,
|
|
150
|
+
role_state: bundle.operator_posture.role_state,
|
|
151
|
+
recommended_operator_motion: bundle.operator_posture.recommended_operator_motion
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
function buildRoleFreezePolicyPack() {
|
|
156
|
+
const roleFreeze = buildRoleFreezePack();
|
|
157
|
+
const operatorBundle = buildRoleFreezeOperatorBundle();
|
|
158
|
+
const policyTemplates = [
|
|
159
|
+
{
|
|
160
|
+
template_id: "result_package_review_lead",
|
|
161
|
+
recommended_for: "runtime-to-proof followthrough as the main entry path",
|
|
162
|
+
target_motion: "strengthen_result_package_review_entry",
|
|
163
|
+
reinforces: [
|
|
164
|
+
"canonical_proof_bundle_model",
|
|
165
|
+
"result_package_review_and_followthrough"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
template_id: "governance_followthrough_lead",
|
|
170
|
+
recommended_for: "active signoff and escalation pressure",
|
|
171
|
+
target_motion: "advance_governance_followthrough",
|
|
172
|
+
reinforces: [
|
|
173
|
+
"governance_review_and_signoff",
|
|
174
|
+
"proof_side_operator_and_review_intelligence"
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
template_id: "bridge_followthrough_lead",
|
|
179
|
+
recommended_for: "thin bridge coverage or compatibility reinforcement",
|
|
180
|
+
target_motion: "strengthen_bridge_followthrough",
|
|
181
|
+
reinforces: [
|
|
182
|
+
"bridge_and_compatibility_followthrough",
|
|
183
|
+
"proof_side_operator_and_review_intelligence"
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
template_id: "frozen_role_maintenance",
|
|
188
|
+
recommended_for: "strong balanced proof-side posture",
|
|
189
|
+
target_motion: "maintain_frozen_proof_role",
|
|
190
|
+
reinforces: roleFreeze.owns.slice()
|
|
191
|
+
}
|
|
192
|
+
];
|
|
193
|
+
|
|
194
|
+
return {
|
|
195
|
+
ok: true,
|
|
196
|
+
product: packageJson.name,
|
|
197
|
+
category: "proof-role-freeze-policy-pack",
|
|
198
|
+
pack_version: "xoonya-proof-role-freeze-policy-pack-v1",
|
|
199
|
+
role_freeze: roleFreeze,
|
|
200
|
+
operator_bundle: operatorBundle,
|
|
201
|
+
recommended_policy_motion: operatorBundle.operator_posture.recommended_operator_motion,
|
|
202
|
+
policy_templates: policyTemplates,
|
|
203
|
+
linked_surfaces: {
|
|
204
|
+
role_freeze_ref: "/v1/role-freeze",
|
|
205
|
+
role_freeze_operator_bundle_ref: "/v1/role-freeze/operator-bundle",
|
|
206
|
+
role_freeze_policy_application_summary_ref: "/v1/role-freeze/policy-application-summary"
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
function summarizeRoleFreezePolicyPack() {
|
|
212
|
+
const pack = buildRoleFreezePolicyPack();
|
|
213
|
+
return {
|
|
214
|
+
ok: true,
|
|
215
|
+
product: pack.product,
|
|
216
|
+
category: pack.category,
|
|
217
|
+
pack_version: pack.pack_version,
|
|
218
|
+
recommended_policy_motion: pack.recommended_policy_motion,
|
|
219
|
+
template_count: pack.policy_templates.length
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function buildRoleFreezePolicyApplicationSummary(templateId) {
|
|
224
|
+
const pack = buildRoleFreezePolicyPack();
|
|
225
|
+
const selectedTemplate = pack.policy_templates.find((entry) => entry.template_id === templateId)
|
|
226
|
+
|| pack.policy_templates.find((entry) => entry.target_motion === pack.recommended_policy_motion)
|
|
227
|
+
|| pack.policy_templates[0];
|
|
228
|
+
return {
|
|
229
|
+
ok: true,
|
|
230
|
+
product: packageJson.name,
|
|
231
|
+
category: "proof-role-freeze-policy-application-summary",
|
|
232
|
+
summary_version: "xoonya-proof-role-freeze-policy-application-summary-v1",
|
|
233
|
+
recommended_policy_motion: pack.recommended_policy_motion,
|
|
234
|
+
selected_template_id: selectedTemplate ? selectedTemplate.template_id : null,
|
|
235
|
+
selected_template: selectedTemplate || null,
|
|
236
|
+
available_template_ids: pack.policy_templates.map((entry) => entry.template_id),
|
|
237
|
+
linked_surfaces: {
|
|
238
|
+
role_freeze_policy_pack_ref: "/v1/role-freeze/policy-pack",
|
|
239
|
+
role_freeze_operator_bundle_ref: "/v1/role-freeze/operator-bundle"
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
function buildRoleFreezePackage() {
|
|
245
|
+
const roleFreeze = buildRoleFreezePack();
|
|
246
|
+
const operatorBundle = buildRoleFreezeOperatorBundle();
|
|
247
|
+
const policyPack = buildRoleFreezePolicyPack();
|
|
248
|
+
const policyApplicationSummary = buildRoleFreezePolicyApplicationSummary(null);
|
|
249
|
+
return {
|
|
250
|
+
ok: true,
|
|
251
|
+
product: packageJson.name,
|
|
252
|
+
category: "proof-role-freeze-package",
|
|
253
|
+
package_version: "xoonya-proof-role-freeze-package-v1",
|
|
254
|
+
package_posture: {
|
|
255
|
+
frozen_role: roleFreeze.frozen_role,
|
|
256
|
+
role_state: roleFreeze.role_state,
|
|
257
|
+
recommended_operator_motion: operatorBundle.operator_posture.recommended_operator_motion,
|
|
258
|
+
recommended_policy_motion: policyPack.recommended_policy_motion
|
|
259
|
+
},
|
|
260
|
+
role_freeze: roleFreeze,
|
|
261
|
+
role_freeze_operator_bundle: operatorBundle,
|
|
262
|
+
role_freeze_policy_pack: policyPack,
|
|
263
|
+
role_freeze_policy_application_summary: policyApplicationSummary,
|
|
264
|
+
linked_surfaces: {
|
|
265
|
+
role_freeze_ref: "/v1/role-freeze",
|
|
266
|
+
role_freeze_operator_bundle_ref: "/v1/role-freeze/operator-bundle",
|
|
267
|
+
role_freeze_policy_pack_ref: "/v1/role-freeze/policy-pack",
|
|
268
|
+
role_freeze_policy_application_summary_ref: "/v1/role-freeze/policy-application-summary"
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
function summarizeRoleFreezePackage() {
|
|
274
|
+
const pack = buildRoleFreezePackage();
|
|
275
|
+
return {
|
|
276
|
+
ok: true,
|
|
277
|
+
product: pack.product,
|
|
278
|
+
category: pack.category,
|
|
279
|
+
package_version: pack.package_version,
|
|
280
|
+
frozen_role: pack.package_posture.frozen_role,
|
|
281
|
+
role_state: pack.package_posture.role_state,
|
|
282
|
+
recommended_operator_motion: pack.package_posture.recommended_operator_motion,
|
|
283
|
+
recommended_policy_motion: pack.package_posture.recommended_policy_motion
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function buildRoleTransitionPack() {
|
|
288
|
+
const roleFreeze = buildRoleFreezePack();
|
|
289
|
+
const roleFreezePackage = buildRoleFreezePackage();
|
|
290
|
+
return {
|
|
291
|
+
ok: true,
|
|
292
|
+
product: packageJson.name,
|
|
293
|
+
category: "proof-role-transition-pack",
|
|
294
|
+
package_version: "xoonya-proof-role-transition-pack-v1",
|
|
295
|
+
current_role: {
|
|
296
|
+
frozen_role: roleFreeze.frozen_role,
|
|
297
|
+
role_state: roleFreeze.role_state,
|
|
298
|
+
current_primary_posture: "proof_primary"
|
|
299
|
+
},
|
|
300
|
+
long_term_direction: {
|
|
301
|
+
target_role: "capability_execution_coordination_shell_with_proof_strength",
|
|
302
|
+
direction_state: "explicit_direction_recorded",
|
|
303
|
+
current_transition_state: "proof_primary_today_coordination_shell_later",
|
|
304
|
+
rationale: [
|
|
305
|
+
"xytara remains canonical wallet_ledger_authority_identity_and_pricing_truth",
|
|
306
|
+
"xoonya remains the strongest home for proof review governance bridge and execution-adjacent followthrough",
|
|
307
|
+
"future canonical capability ownership may move toward xoonya if coordination-shell direction is affirmed"
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
boundary_guardrails: {
|
|
311
|
+
xytara_must_continue_to_own: [
|
|
312
|
+
"wallet_truth",
|
|
313
|
+
"ledger_truth",
|
|
314
|
+
"authority_truth",
|
|
315
|
+
"machine_economics_truth",
|
|
316
|
+
"fiat_ingress_and_settlement_truth"
|
|
317
|
+
],
|
|
318
|
+
xoonya_may_expand_to_own: [
|
|
319
|
+
"capability_identity",
|
|
320
|
+
"capability_execution_coordination",
|
|
321
|
+
"capability_registry_source_of_truth"
|
|
322
|
+
],
|
|
323
|
+
xoonya_must_not_absorb: [
|
|
324
|
+
"wallet_balances",
|
|
325
|
+
"economic_capacity_truth",
|
|
326
|
+
"pricing_settlement_authority",
|
|
327
|
+
"adapter_or_fiat_business_logic"
|
|
328
|
+
]
|
|
329
|
+
},
|
|
330
|
+
transition_readiness_signals: {
|
|
331
|
+
proof_readiness_state: roleFreeze.intelligence_posture.proof_readiness_state,
|
|
332
|
+
review_burden_state: roleFreezePackage.role_freeze_operator_bundle.review_intelligence.review_burden_state,
|
|
333
|
+
bridge_coverage_state: roleFreezePackage.role_freeze_operator_bundle.bridge_intelligence.bridge_coverage_state,
|
|
334
|
+
governance_posture_state: roleFreezePackage.role_freeze_operator_bundle.governance_intelligence.signoff_motion_state
|
|
335
|
+
},
|
|
336
|
+
recommended_transition_motion: roleFreezePackage.role_freeze_operator_bundle.operator_posture.recommended_operator_motion === "maintain_frozen_proof_role"
|
|
337
|
+
? "record_transition_guardrails_and_prepare_registry_home_decision"
|
|
338
|
+
: "strengthen_proof_followthrough_before_coordination_expansion",
|
|
339
|
+
linked_surfaces: {
|
|
340
|
+
role_freeze_ref: "/v1/role-freeze",
|
|
341
|
+
role_freeze_package_ref: "/v1/role-freeze/package",
|
|
342
|
+
role_transition_summary_ref: "/v1/role-transition/summary"
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
function summarizeRoleTransitionPack() {
|
|
348
|
+
const pack = buildRoleTransitionPack();
|
|
349
|
+
return {
|
|
350
|
+
ok: true,
|
|
351
|
+
product: pack.product,
|
|
352
|
+
category: pack.category,
|
|
353
|
+
package_version: pack.package_version,
|
|
354
|
+
current_primary_posture: pack.current_role.current_primary_posture,
|
|
355
|
+
target_role: pack.long_term_direction.target_role,
|
|
356
|
+
current_transition_state: pack.long_term_direction.current_transition_state,
|
|
357
|
+
recommended_transition_motion: pack.recommended_transition_motion
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
function buildCapabilityRegistryHomePack() {
|
|
362
|
+
const roleTransition = buildRoleTransitionPack();
|
|
363
|
+
return {
|
|
364
|
+
ok: true,
|
|
365
|
+
product: packageJson.name,
|
|
366
|
+
category: "proof-capability-registry-home-pack",
|
|
367
|
+
package_version: "xoonya-proof-capability-registry-home-pack-v1",
|
|
368
|
+
current_registry_home: {
|
|
369
|
+
current_owner: "xytara",
|
|
370
|
+
current_state: "explicit_runtime_registry_active",
|
|
371
|
+
current_primary_surface: "xytara:/v1/capability-registry"
|
|
372
|
+
},
|
|
373
|
+
target_registry_home: {
|
|
374
|
+
target_owner: "xoonya",
|
|
375
|
+
target_state: "direction_recorded_not_yet_migrated",
|
|
376
|
+
target_role_dependency: "xoonya_as_capability_execution_coordination_shell"
|
|
377
|
+
},
|
|
378
|
+
migration_guardrails: {
|
|
379
|
+
xytara_keeps: [
|
|
380
|
+
"capability_refs_needed_for_wallet_authority_pricing_and_consequence",
|
|
381
|
+
"runtime_settlement_and_economics_binding_truth"
|
|
382
|
+
],
|
|
383
|
+
xoonya_may_become_source_of_truth_for: [
|
|
384
|
+
"capability_identity",
|
|
385
|
+
"capability_owner_identity",
|
|
386
|
+
"capability_execution_coordination_semantics",
|
|
387
|
+
"capability_registry_publication_and_discovery"
|
|
388
|
+
],
|
|
389
|
+
migration_preconditions: [
|
|
390
|
+
"role_transition_direction_is_explicit",
|
|
391
|
+
"registry_home_split_is_machine_readable",
|
|
392
|
+
"xytara_can_continue_to_resolve_stable_capability_refs_after_transition"
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
current_transition_alignment: {
|
|
396
|
+
role_transition_state: roleTransition.long_term_direction.current_transition_state,
|
|
397
|
+
target_role: roleTransition.long_term_direction.target_role,
|
|
398
|
+
alignment_state: "registry_direction_matches_role_transition"
|
|
399
|
+
},
|
|
400
|
+
recommended_registry_home_motion: "keep_runtime_registry_in_xytara_while_recording_xoonya_as_target_canonical_home",
|
|
401
|
+
linked_surfaces: {
|
|
402
|
+
role_transition_ref: "/v1/role-transition",
|
|
403
|
+
role_transition_summary_ref: "/v1/role-transition/summary"
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
function summarizeCapabilityRegistryHomePack() {
|
|
409
|
+
const pack = buildCapabilityRegistryHomePack();
|
|
410
|
+
return {
|
|
411
|
+
ok: true,
|
|
412
|
+
product: pack.product,
|
|
413
|
+
category: pack.category,
|
|
414
|
+
package_version: pack.package_version,
|
|
415
|
+
current_owner: pack.current_registry_home.current_owner,
|
|
416
|
+
target_owner: pack.target_registry_home.target_owner,
|
|
417
|
+
target_state: pack.target_registry_home.target_state,
|
|
418
|
+
recommended_registry_home_motion: pack.recommended_registry_home_motion
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
module.exports = {
|
|
423
|
+
buildRoleFreezePack,
|
|
424
|
+
summarizeRoleFreezePack,
|
|
425
|
+
buildRoleFreezeOperatorBundle,
|
|
426
|
+
summarizeRoleFreezeOperatorBundle,
|
|
427
|
+
buildRoleFreezePolicyPack,
|
|
428
|
+
summarizeRoleFreezePolicyPack,
|
|
429
|
+
buildRoleFreezePolicyApplicationSummary,
|
|
430
|
+
buildRoleFreezePackage,
|
|
431
|
+
summarizeRoleFreezePackage,
|
|
432
|
+
buildRoleTransitionPack,
|
|
433
|
+
summarizeRoleTransitionPack,
|
|
434
|
+
buildCapabilityRegistryHomePack,
|
|
435
|
+
summarizeCapabilityRegistryHomePack
|
|
436
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function buildSharedSignalsLanePack() {
|
|
4
|
+
return {
|
|
5
|
+
product: "xoonya",
|
|
6
|
+
category: "proof-shared-signals-lane-pack",
|
|
7
|
+
pack_version: "xoonya-shared-signals-lane-pack-v1",
|
|
8
|
+
lane_state: "first_party_shared_signals_lane_present",
|
|
9
|
+
posture: "real_time_review_and_risk_signal_exchange_lane",
|
|
10
|
+
standards: ["openid_shared_signals", "caep"],
|
|
11
|
+
signal_families: ["review_events", "governance_events", "bridge_attention_events", "external_import_attention_events"],
|
|
12
|
+
supported_surfaces: {
|
|
13
|
+
auth_profiles_ref: "/v1/auth-profiles",
|
|
14
|
+
identity_interop_ref: "/v1/identity-interop",
|
|
15
|
+
proof_bridge_ref: "/v1/proof-bridge",
|
|
16
|
+
result_package_trust_ref: "/v1/result-package-trust",
|
|
17
|
+
external_proof_import_ref: "/v1/external-proof-import"
|
|
18
|
+
},
|
|
19
|
+
first_run_flows: [
|
|
20
|
+
{
|
|
21
|
+
flow_ref: "proof_risk_signal_alignment",
|
|
22
|
+
recommended_reason: "best path when partner systems need near-real-time signals about review, bridge, or imported-proof trust changes",
|
|
23
|
+
sequence: [
|
|
24
|
+
"inspect_shared_signals_lane_summary",
|
|
25
|
+
"map native proof review and bridge states to shared signal posture",
|
|
26
|
+
"connect trust attention and import attention states to external signal exchange",
|
|
27
|
+
"keep proof acceptance and governance decisions canonical inside xoonya"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
guardrails: [
|
|
32
|
+
"shared signals should export proof-side state changes, not replace review or governance logic",
|
|
33
|
+
"signal exchange must remain bounded and reviewable"
|
|
34
|
+
]
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function summarizeSharedSignalsLanePack() {
|
|
39
|
+
const pack = buildSharedSignalsLanePack();
|
|
40
|
+
return {
|
|
41
|
+
product: "xoonya",
|
|
42
|
+
category: "proof-shared-signals-lane-pack-summary",
|
|
43
|
+
summary_version: "xoonya-shared-signals-lane-pack-summary-v1",
|
|
44
|
+
lane_state: pack.lane_state,
|
|
45
|
+
standard_count: pack.standards.length,
|
|
46
|
+
signal_family_count: pack.signal_families.length,
|
|
47
|
+
linked_surfaces: pack.supported_surfaces
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
module.exports = {
|
|
52
|
+
buildSharedSignalsLanePack,
|
|
53
|
+
summarizeSharedSignalsLanePack
|
|
54
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function buildTelemetryLanePack() {
|
|
4
|
+
return {
|
|
5
|
+
product: "xoonya",
|
|
6
|
+
category: "proof-telemetry-lane-pack",
|
|
7
|
+
pack_version: "xoonya-telemetry-lane-pack-v1",
|
|
8
|
+
lane_state: "first_party_observability_lane_present",
|
|
9
|
+
posture: "proof_followthrough_observability_and_scale_signal_lane",
|
|
10
|
+
standards: ["opentelemetry"],
|
|
11
|
+
core_signals: ["review_traces", "verification_metrics", "bridge_logs", "proof_events"],
|
|
12
|
+
supported_surfaces: {
|
|
13
|
+
cloudevents_ref: "/cloudevents.json",
|
|
14
|
+
asyncapi_ref: "/asyncapi.json",
|
|
15
|
+
proof_bridge_ref: "/v1/proof-bridge",
|
|
16
|
+
result_package_trust_ref: "/v1/result-package-trust",
|
|
17
|
+
integration_matrix_ref: "/v1/integration-matrix"
|
|
18
|
+
},
|
|
19
|
+
first_run_flows: [
|
|
20
|
+
{
|
|
21
|
+
flow_ref: "proof_observability_alignment",
|
|
22
|
+
recommended_reason: "best path for operators who need review, verification, and bridge visibility at production scale",
|
|
23
|
+
sequence: [
|
|
24
|
+
"inspect_telemetry_lane_summary",
|
|
25
|
+
"align proof events to cloudevents and asyncapi",
|
|
26
|
+
"map review and verification signals to observability tooling",
|
|
27
|
+
"keep proof validation canonical while exporting useful operational signals"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
guardrails: [
|
|
32
|
+
"telemetry should improve proof-side observability without redefining proof validity",
|
|
33
|
+
"review and verification diagnostics should remain subordinate to canonical proof semantics"
|
|
34
|
+
]
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function summarizeTelemetryLanePack() {
|
|
39
|
+
const pack = buildTelemetryLanePack();
|
|
40
|
+
return {
|
|
41
|
+
product: "xoonya",
|
|
42
|
+
category: "proof-telemetry-lane-pack-summary",
|
|
43
|
+
summary_version: "xoonya-telemetry-lane-pack-summary-v1",
|
|
44
|
+
lane_state: pack.lane_state,
|
|
45
|
+
standard_count: pack.standards.length,
|
|
46
|
+
signal_count: pack.core_signals.length,
|
|
47
|
+
linked_surfaces: pack.supported_surfaces
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
module.exports = {
|
|
52
|
+
buildTelemetryLanePack,
|
|
53
|
+
summarizeTelemetryLanePack
|
|
54
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const {
|
|
4
|
+
buildPhase9TreasuryConnectivityPack,
|
|
5
|
+
summarizePhase9TreasuryConnectivityPack
|
|
6
|
+
} = require("./phase_9_treasury_connectivity_pack");
|
|
7
|
+
const {
|
|
8
|
+
buildProofBridgeLanePack,
|
|
9
|
+
summarizeProofBridgeLanePack
|
|
10
|
+
} = require("./proof_bridge_lane_contract");
|
|
11
|
+
|
|
12
|
+
function buildTreasuryProofLanePack() {
|
|
13
|
+
return {
|
|
14
|
+
product: "xoonya",
|
|
15
|
+
category: "proof-treasury-lane-pack",
|
|
16
|
+
pack_version: "xoonya-treasury-lane-pack-v1",
|
|
17
|
+
lane_state: "first_party_treasury_proof_connectivity_present",
|
|
18
|
+
posture: "treasury_destination_and_accounting_evidence_followthrough_lane",
|
|
19
|
+
phase_alignment: {
|
|
20
|
+
connectivity: {
|
|
21
|
+
pack: buildPhase9TreasuryConnectivityPack(),
|
|
22
|
+
summary: summarizePhase9TreasuryConnectivityPack()
|
|
23
|
+
},
|
|
24
|
+
proof_bridge: {
|
|
25
|
+
pack: buildProofBridgeLanePack(),
|
|
26
|
+
summary: summarizeProofBridgeLanePack()
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
reserve_doctrine: {
|
|
30
|
+
strategic_native_treasury: "bsv_teranode",
|
|
31
|
+
stable_operating_reserves: ["dai", "usdc"],
|
|
32
|
+
optional_hidden_privacy_reserve: "monero",
|
|
33
|
+
privacy_guardrails: [
|
|
34
|
+
"monero_never_becomes_public_treasury_identity",
|
|
35
|
+
"monero_never_replaces_compliant_accounting_evidence",
|
|
36
|
+
"monero_only_exists_as_internal_optional_reserve_technique_where_operator_policy_explicitly_allows_it"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
supported_surfaces: {
|
|
40
|
+
phase_summary_ref: "/v1/phases/phase-9/summary",
|
|
41
|
+
treasury_destinations_proof_summary_ref: "/v1/phases/phase-9/treasury-destinations/proof/summary",
|
|
42
|
+
custody_refs_proof_summary_ref: "/v1/phases/phase-9/custody-refs/proof/summary",
|
|
43
|
+
operator_accounting_bridges_proof_summary_ref: "/v1/phases/phase-9/operator-accounting-bridges/proof/summary",
|
|
44
|
+
treasury_continuity_summary_ref: "/v1/phases/phase-9/treasury-continuity/summary",
|
|
45
|
+
proof_bridge_ref: "/v1/proof-bridge/summary"
|
|
46
|
+
},
|
|
47
|
+
first_run_flows: [
|
|
48
|
+
{
|
|
49
|
+
flow_ref: "treasury_proof_continuity",
|
|
50
|
+
recommended_reason: "best first path for understanding how treasury destinations, custody refs, and accounting bridges stay provable and reviewable",
|
|
51
|
+
sequence: [
|
|
52
|
+
"inspect_treasury_proof_lane_summary",
|
|
53
|
+
"inspect_phase_9_connectivity_summary",
|
|
54
|
+
"inspect_treasury_destination_and_accounting_bridge_proof_summaries",
|
|
55
|
+
"inspect_proof_bridge_followthrough_for_bounded_review_posture"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
guardrails: [
|
|
60
|
+
"treasury proof lanes should strengthen operator trust without turning xoonya into treasury logic",
|
|
61
|
+
"reserve doctrine remains internal while proof continuity remains externally reviewable"
|
|
62
|
+
]
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function summarizeTreasuryProofLanePack() {
|
|
67
|
+
const pack = buildTreasuryProofLanePack();
|
|
68
|
+
return {
|
|
69
|
+
product: "xoonya",
|
|
70
|
+
category: "proof-treasury-lane-pack-summary",
|
|
71
|
+
summary_version: "xoonya-treasury-lane-pack-summary-v1",
|
|
72
|
+
lane_state: pack.lane_state,
|
|
73
|
+
strategic_native_treasury: pack.reserve_doctrine.strategic_native_treasury,
|
|
74
|
+
stable_reserve_count: pack.reserve_doctrine.stable_operating_reserves.length,
|
|
75
|
+
first_run_flow_count: pack.first_run_flows.length,
|
|
76
|
+
linked_surfaces: pack.supported_surfaces
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
module.exports = {
|
|
81
|
+
buildTreasuryProofLanePack,
|
|
82
|
+
summarizeTreasuryProofLanePack
|
|
83
|
+
};
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xoonya",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Deterministic proof SDK for canonical events, receipts, proof bundles, and verification.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"xoonya
|
|
8
|
-
"xoonya-
|
|
7
|
+
"xoonya": "bin/xoonya.js",
|
|
8
|
+
"xoonya-review": "bin/xoonya-review.js",
|
|
9
|
+
"xoonya-release": "bin/xoonya-release.js"
|
|
9
10
|
},
|
|
10
11
|
"type": "commonjs",
|
|
11
12
|
"license": "Apache-2.0",
|