xoonya 3.1.9 → 3.1.10

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 CHANGED
@@ -1,843 +1,111 @@
1
1
  # xoonya
2
2
 
3
- `xoonya` is the proof and review foundation for machine actions.
3
+ **Deterministic proof & review engine with post-quantum verification** — for receipts, handoffs,
4
+ governance, and the native **XNYA** machine-evidence format. xoonya is the proof-side half of the
5
+ naxytra machine stack; the runtime/payments half is [xytara](https://naxytra.com/xytara).
4
6
 
5
- > New to the code? Read [`ARCHITECTURE.md`](ARCHITECTURE.md) first. It separates
6
- > the compact proof engine (the ~1,600-line crypto core in `proof_sdk.js`) from
7
- > the large machine-readable proof catalog, so the real engine is legible fast.
7
+ It makes machine evidence **deterministic, portable, minimal, verifiable, and replayable**, and
8
+ verifies it with both classical and **post-quantum** signatures.
8
9
 
9
- It exists to make machine evidence:
10
+ ## Proven live on Base mainnet
10
11
 
11
- - deterministic
12
- - portable
13
- - minimal
14
- - verifiable
15
- - replayable
12
+ Post-quantum proof verification is real and demonstrated: a paid x402 call (gasless USDC on Base)
13
+ routes to xoonya's `/execute`, which verifies a native **XNYA** proof bundle signed with a hybrid
14
+ **Ed25519 + ML-DSA-65 (FIPS-204)** suite and returns a `verified_native_hybrid_signature` verdict.
15
+ Adversarially, downgrade-to-classical and the unsigned `none` algorithm are both rejected.
16
16
 
17
- This repo is the proof-side half of the final two-repo public stack. It focuses on canonical events, receipts, proof bundles, and verification. It does not own pricing, catalogs, workflow orchestration, payment rails, or settlement policy.
17
+ > Scope: XNYA is **machine-evidence verification** — a portable, deterministic check that a proof is
18
+ > well-formed and cryptographically signed. It is **not** an identity, custody, settlement,
19
+ > transport-security, or chain-finality claim.
18
20
 
19
- The 10-phase public program is now complete. `xoonya` is in terminal closeout posture rather than active milestone build posture.
21
+ ## What it does
20
22
 
21
- ## Public Discovery
23
+ The public proof loop is deliberately narrow:
22
24
 
23
- The broader stack now has a canonical human front door and a canonical machine doorway:
25
+ 1. **receive** a handoff or canonical event bundle
26
+ 2. **review** it
27
+ 3. **verify** it
28
+ 4. **emit** a durable proof bundle
24
29
 
25
- - https://www.naxytra.com/agents
26
- - https://www.naxytra.com/v1/agent-discovery-index
27
- - https://www.naxytra.com/v1/agent-discovery-index/summary
28
- - https://www.naxytra.com/.well-known/agent.json
30
+ xoonya owns proof, review, and continuity. It does not own pricing, catalogs, workflow
31
+ orchestration, payment rails, or settlement — those live in [xytara](https://naxytra.com/xytara).
29
32
 
30
- Use the human page when you want the shortest adoption landing page, and use the machine endpoints when a registry, crawler, or agent needs a stable public discovery surface.
31
-
32
- The shared control-plane contract documents are:
33
-
34
- - [OPERATIONAL_RECEIPT_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/docs/architecture/OPERATIONAL_RECEIPT_CONTRACT.md)
35
- - [MACHINE_IDENTITY_REGISTRY_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/docs/architecture/MACHINE_IDENTITY_REGISTRY_CONTRACT.md)
36
- - [CRYPTO_AGILITY_MATRIX.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/docs/architecture/CRYPTO_AGILITY_MATRIX.md)
37
- - [AUTHORITY_BINDING_LIFECYCLE_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/docs/architecture/AUTHORITY_BINDING_LIFECYCLE_CONTRACT.md)
38
- - [PUBLIC_SURFACE_POLICY_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/docs/architecture/PUBLIC_SURFACE_POLICY_CONTRACT.md)
39
- - [OFFLINE_VERIFIABILITY_AND_RECOVERY_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/docs/architecture/OFFLINE_VERIFIABILITY_AND_RECOVERY_CONTRACT.md)
40
- - [ADAPTER_CERTIFICATION_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/docs/architecture/ADAPTER_CERTIFICATION_CONTRACT.md)
41
- - [TRUST_PORTABILITY_BOUNDARY_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/docs/architecture/TRUST_PORTABILITY_BOUNDARY_CONTRACT.md)
42
- - [SIGNED_AUDIT_PROVENANCE_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/docs/architecture/SIGNED_AUDIT_PROVENANCE_CONTRACT.md)
43
-
44
- ## Public Boundary
45
-
46
- The public adoption story is intentionally narrow:
47
-
48
- - receive a handoff or event bundle
49
- - review it
50
- - verify it
51
- - emit a durable proof bundle
52
-
53
- `xoonya` should expose proof, review, and continuity. It should not force outside builders to learn runtime treasury or operator internals just to use the proof layer correctly.
54
-
55
- ## Universal Proof Shape
56
-
57
- `xoonya` is intended to be usable from:
58
-
59
- - CLI and terminal
60
- - direct API calls
61
- - chat and agent environments that can submit handoff bundles
62
- - hosted or embedded review flows
63
- - partner systems that need deterministic proof verification
64
-
65
- The shortest public proof loop is:
66
-
67
- - receive a handoff or event bundle
68
- - review it
69
- - verify it
70
- - emit a durable proof bundle
71
- - preserve governance and continuity context when needed
72
-
73
- The frozen proof-side fact model for `3.0.0` closeout is documented in:
74
-
75
- - [XOONYA_PROOF_TRUTH_MODEL.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/XOONYA_PROOF_TRUTH_MODEL.md)
76
- - [OPERATIONAL_RECEIPT_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/docs/architecture/OPERATIONAL_RECEIPT_CONTRACT.md)
77
-
78
- Machine-readable proof-truth surfaces:
79
-
80
- - `GET /v1/proof-truth`
81
- - `GET /v1/proof-truth/summary`
82
- - `GET /v1/proof-truth/:object_id`
83
-
84
- The frozen multi-surface proof default-path model for `3.0.0` closeout is documented in:
85
-
86
- - [XOONYA_DEFAULT_PATH_MODEL.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/XOONYA_DEFAULT_PATH_MODEL.md)
87
-
88
- Machine-readable proof default-path surfaces:
89
-
90
- - `GET /v1/default-path`
91
- - `GET /v1/default-path/summary`
92
- - `GET /v1/default-path/:surface_id`
93
-
94
- The frozen bridge, governance, trust-portability, and verification followthrough boundary for `3.0.0` closeout is documented in:
95
-
96
- - [XOONYA_FOLLOWTHROUGH_TRUTH_MODEL.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/XOONYA_FOLLOWTHROUGH_TRUTH_MODEL.md)
97
-
98
- Machine-readable followthrough-truth surfaces:
99
-
100
- - `GET /v1/followthrough-truth`
101
- - `GET /v1/followthrough-truth/summary`
102
- - `GET /v1/followthrough-truth/:profile_id`
103
-
104
- The current proof breadth already includes:
105
-
106
- - canonical events, receipts, and proof bundles
107
- - result-package handoff review and run paths
108
- - bridge and compatibility review surfaces
109
- - governance, dispute, and signoff support
110
- - proof-side continuity for economic consequence carry
111
- - proof-adjacent integration registration and review
112
-
113
- It also already carries broader first-class proof and interoperability lanes for:
114
-
115
- - framework continuity across `langchain`, `langgraph`, `semantic_kernel`, `autogen`, `crewai`, and `llamaindex`
116
- - native and external verification methods such as `XNYA`, JWT assertion, DID VC, SD-JWT VC, signed-envelope, detached assertion, and partner proof-envelope compatibility
117
- - operator and artifact lanes such as telemetry, provenance, artifact distribution, shared signals, feature control, trust portability, and external proof import review
118
-
119
- If you want the broadest machine-readable census for these already-core proof lanes, inspect:
120
-
121
- - `GET /v1/integration-matrix`
122
- - `GET /v1/proof-bridge`
123
- - `GET /v1/telemetry`
124
- - `GET /v1/provenance`
125
- - `GET /v1/artifact-distribution`
126
- - `GET /v1/shared-signals`
127
- - `GET /v1/feature-control`
128
- - `GET /v1/adapter-certification`
129
- - `GET /v1/trust-portability-boundary`
130
- - `GET /v1/signed-audit-provenance`
131
-
132
- ## One-Line After Install
133
-
134
- If you only run two commands after install, use:
135
-
136
- - `xoonya start-here`
137
- - `xoonya first-run`
138
- - `xoonya first-run --verify-native --pretty`
139
- - `xoonya release --summary`
140
- - `xoonya conformance`
141
-
142
- If you want the shortest machine-readable discovery path, inspect:
143
-
144
- - `GET /v1/providers`
145
- - `GET /v1/frameworks`
146
- - `GET /v1/integration-matrix`
147
- - `GET /v1/proof-bridge`
148
- - `GET /v1/telemetry`
149
- - `GET /v1/provenance`
150
- - `GET /v1/adapter-certification`
151
- - `GET /v1/trust-portability-boundary`
152
- - `GET /v1/signed-audit-provenance`
153
-
154
- If you are working on shared evidence, inspect the operational receipt contract pack:
155
-
156
- - `buildOperationalReceiptContractPack()`
157
- - `summarizeOperationalReceiptContractPack()`
158
-
159
- If you are working on machine identity, inspect the registry contract pack:
160
-
161
- - `buildMachineIdentityRegistryContractPack()`
162
- - `summarizeMachineIdentityRegistryContractPack()`
163
-
164
- If you are working on crypto agility, inspect the matrix pack:
165
-
166
- - `buildCryptoAgilityMatrixPack()`
167
- - `summarizeCryptoAgilityMatrixPack()`
168
-
169
- If you are working on binding lifecycle, inspect the lifecycle pack:
170
-
171
- - `buildAuthorityBindingLifecycleContractPack()`
172
- - `summarizeAuthorityBindingLifecycleContractPack()`
173
-
174
- If you are working on public route policy, inspect the surface policy pack:
175
-
176
- - `buildPublicSurfacePolicyContractPack()`
177
- - `summarizePublicSurfacePolicyContractPack()`
178
-
179
- If you are working on offline recovery, inspect the recovery pack:
180
-
181
- - `buildOfflineVerifiabilityRecoveryContractPack()`
182
- - `summarizeOfflineVerifiabilityRecoveryContractPack()`
183
-
184
- If you are working on adapter certification, inspect the certification pack:
185
-
186
- - `buildAdapterCertificationContractPack()`
187
- - `summarizeAdapterCertificationContractPack()`
188
-
189
- If you are working on trust portability boundaries, inspect the boundary pack:
190
-
191
- - `buildTrustPortabilityBoundaryContractPack()`
192
- - `summarizeTrustPortabilityBoundaryContractPack()`
193
-
194
- If you are working on signed audit and provenance, inspect the audit/provenance pack:
195
-
196
- - `buildSignedAuditProvenanceContractPack()`
197
- - `summarizeSignedAuditProvenanceContractPack()`
198
-
199
- ## Start Here
200
-
201
- If you are new to the proof-side package, use this order:
202
-
203
- 1. read [START_HERE.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/START_HERE.md)
204
- 2. run `node examples/package_quickstart.js`
205
- 3. run `npm run verify:all`
206
- 4. use [FINAL_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/FINAL_CONTRACT.md) and [SERVICE_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/SERVICE_CONTRACT.md) as the durable public contract
207
-
208
- If you are reading the GitHub repo and want deeper product context beyond the npm starter path, continue with:
209
-
210
- - [WHY_XYTARA_XOONYA.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/WHY_XYTARA_XOONYA.md)
211
- - [PARTNER_READY_PATH.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/PARTNER_READY_PATH.md)
212
-
213
- If you want one concrete cross-repo adoption story, start with:
214
-
215
- - [CARRIED_HANDOFF_DEMO.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/CARRIED_HANDOFF_DEMO.md)
216
-
217
- If you want the shortest neutral external-adoption bundle, continue with:
218
-
219
- - [PARTNER_READY_PATH.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/PARTNER_READY_PATH.md)
220
- - [PUBLIC_DEMO_SCRIPT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/PUBLIC_DEMO_SCRIPT.md)
221
- - [EXAMPLE_PATHS.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/EXAMPLE_PATHS.md)
222
- - `node examples/partner_proof_walkthrough.js`
223
-
224
- If you are integrating from outside the stack, also read:
225
-
226
- - [CROSS_RUNTIME_POSTURE.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/CROSS_RUNTIME_POSTURE.md)
227
- - [integrations/PROOF_INTEGRATION_PROCESS.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/integrations/PROOF_INTEGRATION_PROCESS.md)
228
-
229
- If you want the broader already-core proof continuity layers, continue with:
230
-
231
- - [XOONYA_NATIVE_PROOF_FORMAT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/XOONYA_NATIVE_PROOF_FORMAT.md)
232
- - [XOONYA_NATIVE_ATOM_SPEC.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/XOONYA_NATIVE_ATOM_SPEC.md)
233
- - [XNYA_REFERENCE_IMPLEMENTATIONS.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/XNYA_REFERENCE_IMPLEMENTATIONS.md)
234
- - [OPERATOR_START_HERE.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/OPERATOR_START_HERE.md)
235
- - [XOONYA_FOLLOWTHROUGH_TRUTH_MODEL.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/XOONYA_FOLLOWTHROUGH_TRUTH_MODEL.md)
236
-
237
- ## Production Path
238
-
239
- The intended production-facing proof path is now:
240
-
241
- 1. receive the transaction-side handoff or default path artifact from `xytara`
242
- 2. inspect the proof-side review posture
243
- 3. confirm carry and run posture
244
- 4. emit and verify the proof-native completion path
245
-
246
- The rest of this README explains the broader route ladder, but the public starting posture should now be understandable from that one proof-side path.
247
-
248
- For a direct one-line proof-side review of a carried handoff bundle, use the bundled CLI:
33
+ ## Install
249
34
 
250
35
  ```bash
251
- xoonya-review --file ./handoff.json --summary
36
+ npm install xoonya
252
37
  ```
253
38
 
254
- For release-grade adoption posture, inspect:
255
-
256
- - `GET /v1/release-pack`
257
- - `GET /v1/release-pack/summary`
258
- - `GET /v1/release-pack/comparison`
259
- - `GET /v1/release-pack/comparison/summary`
260
- - `GET /v1/release-pack/adoption`
261
- - `GET /v1/release-pack/adoption/summary`
262
- - `GET /v1/release-pack/scenarios`
263
- - `GET /v1/release-pack/scenarios/summary`
264
- - `GET /v1/release-pack/launch`
265
- - `GET /v1/release-pack/launch/summary`
266
- - `GET /v1/release-manifest`
267
- - `GET /v1/release-manifest/summary`
268
- - `GET /v1/release-notes`
269
- - `GET /v1/release-notes/summary`
270
- - `GET /v1/release-center`
271
- - `GET /v1/release-center/summary`
272
- - `GET /v1/release-history`
273
- - `GET /v1/release-history/summary`
274
- - `GET /v1/phases`
275
- - `GET /v1/phases/summary`
276
- - `GET /v1/phases/phase-1`
277
- - `GET /v1/phases/phase-1/summary`
278
- - `GET /v1/publish-plan`
279
- - `GET /v1/publish-plan/summary`
280
- - `GET /v1/ecosystem-entry`
281
- - `GET /v1/ecosystem-entry/summary`
282
- - `GET /v1/launch-narrative`
283
- - `GET /v1/launch-narrative/summary`
284
- - `GET /v1/outreach-proof`
285
- - `GET /v1/outreach-proof/summary`
286
- - `GET /v1/announcement-pack`
287
- - `GET /v1/announcement-pack/summary`
288
- - `GET /v1/release-candidate`
289
- - `GET /v1/release-candidate/summary`
290
- - `xoonya-release --summary`
291
- - `xoonya-release --comparison --summary`
292
- - `xoonya-release --adoption --summary`
293
- - `xoonya-release --scenarios --summary`
294
- - `xoonya-release --launch --summary`
295
- - `xoonya-release --manifest --summary`
296
- - `xoonya-release --notes --summary`
297
- - `xoonya-release --center --summary`
298
- - `xoonya-release --history --summary`
299
- - `xoonya-release --phases --summary`
300
- - `xoonya-release --phase-1 --summary`
301
- - `xoonya-release --ecosystem --summary`
302
- - `xoonya-release --narrative --summary`
303
- - `xoonya-release --outreach-proof --summary`
304
- - `xoonya-release --announcement --summary`
305
- - `xoonya-release --candidate --summary`
306
-
307
- These surfaces package the current proof-side value story, first-contact proof-review CLI path, proof-center posture, handoff/review/governance surfaces, and integration breadth into one machine-readable launch boundary.
308
-
309
- For explicit runtime-economics carry, the proof-side handoff boundary now also accepts a canonical `handoff_bundle` wrapper from `xytara` so the economic consequence seam stays contract-shaped across the two repos instead of being reassembled ad hoc by callers.
310
-
311
- That same carried bundle can now also ride inside the normal result-package handoff path:
312
-
313
- - if `xytara` sends `handoff_bundle.economic_consequence_handoff_bundle`
314
- - `xoonya` will validate it through the existing bounded handoff logic
315
- - normal result-package review and run surfaces will expose compact economic-conformance review data automatically
316
- - direct-pay or non-metered handoffs remain unaffected
317
-
318
- The package and service now also expose a default proof center surface so the intended proof-native path is easy to inspect directly:
319
-
320
- - canonical event bundle v1
321
- - receipt v1
322
- - proof bundle v1
323
- - compact compatibility helpers preserved, but not treated as the public conceptual center
324
- - proof remains settlement-agnostic and workflow-agnostic by default
325
-
326
- The current `1.6.0` companion slice adds guided default proof loops on top of that proof center:
327
-
328
- - default proof-loop catalog and detail routes
329
- - a direct proof-loop run route for the canonical proof-native path
330
- - package helpers that build, verify, and summarize the proof bundle boundary in one step
331
-
332
- This keeps `xoonya` narrow while making the intended proof path easier to inspect alongside the newer guided transaction-loop work in `xytara`.
333
-
334
- The current `1.7.0` companion slice adds a lightweight transaction proof-handoff surface:
335
-
336
- - a transaction proof-handoff center that states the expected handoff contract
337
- - a direct handoff run path that turns transaction-side proof handoff data into a proof-native bundle
338
- - summary helpers that make the recommended proof follow-through explicit without widening proof scope
339
-
340
- The current `1.8.0` companion slice extends that same proof-side carry to richer grouped interaction spine handoffs:
341
-
342
- - an interaction-spine handoff center and summary surface
343
- - a direct interaction-spine handoff run path for composed transaction spines
344
- - proof-side summaries that preserve both pre-commit and committed-ref context without importing commerce logic
345
-
346
- ## Proof Model
347
-
348
- The primary proof model is layered:
349
-
350
- 1. `Canonical Event Bundle`
351
- 2. `Receipt`
352
- 3. `Proof Bundle`
353
- 4. optional domain-specific `Profiles`
354
-
355
- That means the center of gravity is now:
356
-
357
- - `canonicalizeEvent(...)`
358
- - `hashEvent(...)`
359
- - `emitReceipt(...)`
360
- - `buildProofBundle(...)`
361
- - `verifyProofBundle(...)`
362
- - `listProofVerificationMethods(...)`
363
- - `getProofVerificationMethod(...)`
364
-
365
- ### Verification Methods
366
-
367
- `xoonya` keeps proof verification method-agnostic. The proof bundle verifier uses a small method registry instead of treating every non-empty signature as equally verified.
368
-
369
- Current built-in methods:
370
-
371
- - `legacy-opreturn-v1` verifies the compatibility OP_RETURN receipt path.
372
- - `detached-assertion-v1` accepts an explicit detached assertion after canonical receipt checks; cryptographic verification is expected to happen outside this helper.
373
- - `xoonya-native-sha256-v1` verifies xoonya's native deterministic digest format.
374
- - `xoonya-native-signed-v1` verifies xoonya's native signed proof envelope with Ed25519, secp256k1, and P-256 implemented through the explicit suite registry. Other suites stay registry-only until validators exist.
375
- - `xoonya-native-anchored-v1` verifies xoonya's native anchor-binding proof envelope for chain, batch, finality, content-hash, or external attestation refs. It verifies the binding, not the external provider or chain truth itself.
376
- - `jwt-assertion-v1` accepts compact JWT assertion envelopes after canonical receipt checks; JWT signature, issuer, and audience verification remain external to this helper.
377
- - `did-vc-v1` accepts DID/VC proof envelopes after canonical receipt checks; DID resolution and VC proof validation remain external to this helper.
378
- - `sd-jwt-vc-v1` accepts SD-JWT VC disclosure envelopes after canonical receipt checks; issuer, holder binding, and disclosure verification remain external to this helper.
379
- - `signed-envelope-v1` accepts generic signed envelopes after canonical receipt checks; envelope-specific signature verification remains external to this helper.
380
- - `partner-proof-envelope-v1` accepts partner-specific proof envelopes after canonical receipt checks; partner verifier policy remains external to this helper.
381
-
382
- `algorithm: "none"` is not a registered verification method and does not verify. External proof methods are first-class registry entries, but xoonya does not pretend to replace their own cryptographic verifier stacks. The proof core checks the canonical receipt, method registration, and method boundary; issuer-specific validation stays with the relevant JWT, DID/VC, SD-JWT VC, signed-envelope, or partner verifier.
383
-
384
- Every verify result now says which of these happened through `verification_class` and `cryptographically_verified` (see "Verification Classes" below). Native signed and hybrid proofs bind `public_key_ref` to the key carried in the proof, not to the identity string; pass `trusted_public_key_refs` or `expected_public_key_ref` to bind an identity to its keys, and `strict: true` to refuse anything that was not cryptographically verified.
385
-
386
- ### xoonya Native Proof Format
387
-
388
- xoonya Native is the optional native proof/result/attestation format direction for machine proof. It is not a replacement for JWT, OAuth, OIDC, DID/VC, or SD-JWT VC. Those remain interoperability lanes.
389
-
390
- The native standard is xoonya's own fixed-size hot-path commitment atom, cold-path proof envelope, semantic-free core bytes, and deterministic validation. The current implemented native methods are `xoonya-native-sha256-v1`, `xoonya-native-signed-v1`, `xoonya-native-anchored-v1`, and `xoonya-native-hybrid-v1`. The signed native method verifies Ed25519, secp256k1, and P-256 today. The hybrid native method verifies only registered runtime-supported suite pairs, with `ed25519+ml-dsa-65` as the current promoted baseline and other pairings staying non-claimable until runtime support and vectors exist. The anchored native method binds receipts to declared anchor/finality/attestation refs without claiming the external system has been independently verified by xoonya.
391
-
392
- The atom ladder is treated as native xoonya design, not a runtime dependency: `xoonya-native-atom/v1` is the 58-byte classical commitment atom, `xoonya-native-atom/v2` is the 70-byte PQ-horizon identity commitment candidate, and `xoonya-native-atom/v3-contingency` stays reserved for a future digest-family shift only if the underlying hash assumptions materially change.
393
-
394
- The canonical xoonya Native atom magic is `XNYA`. No other magic value is part of the xoonya Native atom standard. The formal atom spec ships inside the `xoonya` package first; a separate standards repo can be extracted later if external governance needs it.
395
-
396
- XNYA atom conformance now includes stable machine-readable reject codes and adversarial vectors. Passing only the happy-path vectors is not enough to claim xoonya Native compatibility.
397
-
398
- The native payload profile is now explicit: `xoonya-native-payload-profile/v1` uses the binary `XNYP` magic and typed fields with deterministic ordering, fixed-width integer encoding, unknown-field policy checks, and no floats or loose JSON semantics. The optional `xoonya-native-line-rate-frame/v1` wraps an existing 58-byte or 70-byte `XNYA` atom with a 2-byte checksum for transport fast rejection; it does not change the atom and does not claim signature, encryption, custody, settlement, or external finality truth.
399
-
400
- The `XNYA-compatible` mark is now defined as a conformance claim, not a marketing label. Implementations may use it only when atom bytes, payload profile rules, proof-envelope method behavior, adversarial vectors, and stable error codes match the published artifacts. The mark must not be used to claim unregistered or runtime-unsupported PQ/hybrid verification, live external-provider execution, chain finality, custody, identity/auth, or external issuer truth without separate verifier evidence. `xoonya-native-hybrid-v1` is now implemented only for registered runtime-supported suite pairs, with current first-class verification centered on `ed25519+ml-dsa-65`.
401
-
402
- The JavaScript `xoonya` package is the current canonical XNYA reference implementation. A Python candidate scaffold now verifies the XNYA atom, native atom adversarial, XNYP payload profile, line-rate frame, canonical event, receipt, and non-signed proof-bundle vectors independently. It also verifies Ed25519 native signed vectors when Python's optional `cryptography` package is installed, otherwise it reports the deterministic dependency gate. It is not yet a full second reference until always-on signature-suite parity, proof-bundle round trips, and the full promotion gates pass. Rust remains planned until a verified vector-parity implementation exists.
403
-
404
- Run `npm run verify:reference-python-crypto` to create an isolated temporary Python virtual environment, install the optional crypto dependency, and require the Ed25519 native signed vector to verify. Run `npm run verify:reference-rust-scaffold` to check the packaged source-only Rust scaffold and its non-promotion boundary.
405
-
406
- See [XOONYA_NATIVE_PROOF_FORMAT.md](./XOONYA_NATIVE_PROOF_FORMAT.md).
407
- See [XOONYA_NATIVE_ATOM_SPEC.md](./XOONYA_NATIVE_ATOM_SPEC.md).
408
- See [XOONYA_NATIVE_STANDARD_GOVERNANCE.md](./XOONYA_NATIVE_STANDARD_GOVERNANCE.md).
409
- See [XNYA_CONFORMANCE_MARK.md](./XNYA_CONFORMANCE_MARK.md).
410
- See [XNYA_REFERENCE_IMPLEMENTATIONS.md](./XNYA_REFERENCE_IMPLEMENTATIONS.md).
411
- See [CROSS_RUNTIME_POSTURE.md](./CROSS_RUNTIME_POSTURE.md).
412
-
413
- ## Compatibility Surface
414
-
415
- Legacy compact receipt and profile helpers are still available during alignment:
416
-
417
- - `createReceipt(...)`
418
- - `verifyReceipt(...)`
419
- - `createReceiptV2(...)`
420
- - `verifyReceiptV2(...)`
421
- - `createProofEnvelopeV1(...)`
422
- - `verifyProofEnvelopeV1(...)`
423
- - `createxoonyaNativeAtomV1(...)`
424
- - `createxoonyaNativeAtomV2(...)`
425
- - `verifyxoonyaNativeAtom(...)`
426
- - `createEconomicReceiptProfileV1(...)`
427
- - `verifyEconomicReceiptProfileV1(...)`
428
- - `createRegistryProfileV1(...)`
429
- - `verifyRegistryProfileV1(...)`
430
-
431
- Those helpers remain verified so current receipt/profile consumers are not broken while the newer proof model becomes the primary public direction.
432
-
433
- ## Package Quickstart
434
-
435
- Run:
39
+ ## Quickstart — CLI
436
40
 
437
41
  ```bash
438
- node examples/package_quickstart.js
42
+ xoonya start-here # the shortest first-run path
43
+ xoonya first-run --verify-native --pretty
44
+ xoonya conformance --json # run proof + adversarial vectors
45
+ xoonya review --help
439
46
  ```
440
47
 
441
- The package quickstart demonstrates:
442
-
443
- - proof integration discovery and certification posture
444
- - staged proof-integration registration and snapshot export
445
- - legacy compact receipt verification
446
- - legacy proof-envelope verification
447
- - canonical event creation
448
- - canonical receipt emission
449
- - proof bundle construction
450
- - proof bundle verification
451
- - transaction proof-handoff follow-through
452
- - proof-side bridge carry for explicit economic consequence review when runtime economics need proof-adjacent preservation
453
-
454
- ## Service Quickstart
48
+ ## Quickstart — SDK
455
49
 
456
- Run:
50
+ ```js
51
+ const xoonya = require("xoonya");
457
52
 
458
- ```bash
459
- npm start
460
- ```
53
+ // 1. emit a signed receipt for a canonical event
54
+ const receipt = xoonya.emitReceipt(event, { /* receipt options */ });
461
55
 
462
- Then in another shell:
56
+ // 2. build a portable proof bundle
57
+ const bundle = xoonya.buildProofBundle({ ceb: event, receipt });
463
58
 
464
- ```bash
465
- curl -X POST http://127.0.0.1:4310/v1/events/hash ^
466
- -H "content-type: application/json" ^
467
- -d "{\"event\":{\"version\":\"canonical-event-bundle/v1\",\"domain_id\":\"demo\",\"sequence\":\"1\",\"actor_id\":\"agent-1\",\"adapter_source\":\"curl\",\"event_type\":\"demo.event\",\"event_hash\":\"abababababababababababababababababababababababababababababababab\"}}"
59
+ // 3. verify it anywhere, deterministically
60
+ const result = xoonya.verifyProofBundle(bundle);
61
+ // => { valid: true, verification_method: "xoonya-native-hybrid-v1",
62
+ // verification_state: "verified_native_hybrid_signature", ... }
468
63
  ```
469
64
 
470
- Environment example:
471
-
472
- - [`.env.example`](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/.env.example)
473
-
474
- Service environment variables:
475
-
476
- - `XOONYA_HOST`, `XOONYA_PORT` (or `PORT`): bind address and port.
477
- - `XOONYA_STRICT_VERIFY=1`: make every proof-bundle verification strict (only `cryptographic` results are `valid`).
478
- - `XOONYA_ACCEPT_PRIVATE_KEY_MATERIAL`: `true` or `false`. When `false`, or when it is unset and `RENDER` is set (hosted deployments), `POST /v1/receipts/emit`, `POST /v1/proof-bundles/build`, and the proof-center run routes reject any body containing a field matching `/private_key/i` with `400 private_key_material_not_accepted`. Sign locally with the SDK (`emitReceipt`, `buildProofBundle`) or the `xoonya` CLI and submit the signed receipt or bundle instead. Local runs without `RENDER` keep accepting private key material so the existing verifiers pass.
479
-
480
- Request bodies are capped at 1 MiB by byte count (a larger declared `content-length` is rejected before the body is read). `OPTIONS` returns `204` with an `allow` header, `HEAD` mirrors `GET` without a body, malformed percent-encoding in a path returns `400 invalid_path_encoding`, and unexpected handler failures return a generic `500 internal_error` with the stack logged server-side only.
481
-
482
- ## Service Routes
483
-
484
- Primary proof-model routes:
485
-
486
- - `GET /health`
487
- - `GET /v1/proof-center`
488
- - `GET /v1/proof-center/summary`
489
- - `GET /v1/proof-center/native-standard`
490
- - `GET /v1/proof-center/native-standard/summary`
491
- - `GET /v1/proof-center/native-atom-spec`
492
- - `GET /v1/proof-center/native-atom-spec/summary`
493
- - `GET /v1/proof-center/native-atom-conformance`
494
- - `GET /v1/proof-center/native-atom-conformance/summary`
495
- - `GET /v1/proof-center/native-anchor-profile`
496
- - `GET /v1/proof-center/native-anchor-profile/summary`
497
- - `GET /v1/proof-center/native-payload-profile`
498
- - `GET /v1/proof-center/native-payload-profile/summary`
499
- - `GET /v1/proof-center/native-line-rate-frame`
500
- - `GET /v1/proof-center/native-line-rate-frame/summary`
501
- - `GET /v1/proof-center/native-conformance-mark`
502
- - `GET /v1/proof-center/native-conformance-mark/summary`
503
- - `GET /v1/proof-center/native-reference-implementations`
504
- - `GET /v1/proof-center/native-reference-implementations/summary`
505
- - `GET /v1/proof-center/import-adapter`
506
- - `GET /v1/proof-center/import-adapter/summary`
507
- - `POST /v1/proof-center/import-adapter/review`
508
- - `POST /v1/proof-center/import-adapter/review/summary`
509
- - `POST /v1/proof-center/import-adapter/run`
510
- - `GET /v1/proof-center/default-loops`
511
- - `GET /v1/proof-center/default-loops/summary`
512
- - `GET /v1/proof-center/default-loop`
513
- - `POST /v1/proof-center/default-loops/run`
514
- - `GET /v1/proof-center/transaction-handoff`
515
- - `GET /v1/proof-center/transaction-handoff/summary`
516
- - `POST /v1/proof-center/transaction-handoff/run`
517
- - `GET /v1/proof-center/result-package-handoff`
518
- - `GET /v1/proof-center/result-package-handoff/summary`
519
- - `GET /v1/proof-center/governance`
520
- - `GET /v1/proof-center/governance/summary`
521
- - `GET /v1/proof-center/bridge`
522
- - `GET /v1/proof-center/bridge/summary`
523
- - `GET /v1/proof-center/bridge/profile-support`
524
- - `POST /v1/proof-center/governance/interpretation-validate`
525
- - `POST /v1/proof-center/governance/coordination`
526
- - `POST /v1/proof-center/governance/dashboard`
527
- - `POST /v1/proof-center/governance/operator-view`
528
- - `POST /v1/proof-center/governance/admin-view`
529
- - `POST /v1/proof-center/governance/dashboard-pack`
530
- - `POST /v1/proof-center/governance/workflow-pack`
531
- - `POST /v1/proof-center/governance/signoff-pack`
532
- - `POST /v1/proof-center/governance/disputes/summary`
533
- - `POST /v1/proof-center/governance/disputes/case-review`
534
- - `POST /v1/proof-center/governance/disputes/action`
535
- - `POST /v1/proof-center/governance/disputes/case-bundle`
536
- - `POST /v1/proof-center/governance/disputes/resolution-pack`
537
- - `POST /v1/proof-center/governance/console-pack`
538
- - `POST /v1/proof-center/governance/handoff-bundle`
539
- - `POST /v1/proof-center/governance/review-link`
540
- - `POST /v1/proof-center/bridge/receipt-wrap`
541
- - `POST /v1/proof-center/bridge/validator-verify`
542
- - `POST /v1/proof-center/bridge/receipt-ledger-handoff`
543
- - `POST /v1/proof-center/bridge/economic-handoff`
544
- - `POST /v1/proof-center/bridge/economic-conformance-pack`
545
- - `POST /v1/proof-center/bridge/operator-review-pack`
546
- - `POST /v1/proof-center/bridge/compatibility-pack`
547
- - `POST /v1/proof-center/bridge/workflow-pack`
548
- - `POST /v1/proof-center/bridge/admin-pack`
549
- - `POST /v1/proof-center/result-package-handoff/review`
550
- - `POST /v1/proof-center/result-package-handoff/review/summary`
551
- - `POST /v1/proof-center/result-package-handoff/review/extension-readiness`
552
- - `POST /v1/proof-center/result-package-handoff/review/extension-boundary`
553
- - `POST /v1/proof-center/result-package-handoff/review/default-continuation`
554
- - `POST /v1/proof-center/result-package-handoff/review/default-boundary`
555
- - `POST /v1/proof-center/result-package-handoff/review/contract-summary`
556
- - `POST /v1/proof-center/result-package-handoff/review/contract-boundary`
557
- - `POST /v1/proof-center/result-package-handoff/review/contract-carry`
558
- - `POST /v1/proof-center/result-package-handoff/review/bridge-summary`
559
- - `POST /v1/proof-center/result-package-handoff/review/bridge-boundary`
560
- - `POST /v1/proof-center/result-package-handoff/review/bridge-carry`
561
- - `POST /v1/proof-center/result-package-handoff/review/bridge-run`
562
- - `POST /v1/proof-center/result-package-handoff/review/handoff-continuity`
563
- - `POST /v1/proof-center/result-package-handoff/review/handoff-intake`
564
- - `POST /v1/proof-center/result-package-handoff/review/handoff-intake-boundary`
565
- - `POST /v1/proof-center/result-package-handoff/review/handoff-intake-carry`
566
- - `POST /v1/proof-center/result-package-handoff/review/handoff-package-intake`
567
- - `POST /v1/proof-center/result-package-handoff/review/handoff-package-carry`
568
- - `POST /v1/proof-center/result-package-handoff/review/handoff-package-run`
569
- - `POST /v1/proof-center/result-package-handoff/review/execution-package`
570
- - `POST /v1/proof-center/result-package-handoff/review/execution-package-carry`
571
- - `POST /v1/proof-center/result-package-handoff/review/execution-package-run`
572
- - `POST /v1/proof-center/result-package-handoff/review/execution-contract`
573
- - `POST /v1/proof-center/result-package-handoff/review/execution-contract-carry`
574
- - `POST /v1/proof-center/result-package-handoff/review/execution-contract-run`
575
- - `POST /v1/proof-center/result-package-handoff/review/operating-contract`
576
- - `POST /v1/proof-center/result-package-handoff/review/operating-contract-carry`
577
- - `POST /v1/proof-center/result-package-handoff/review/operating-contract-run`
578
- - `POST /v1/proof-center/result-package-handoff/review/operating-interface`
579
- - `POST /v1/proof-center/result-package-handoff/review/operating-interface-carry`
580
- - `POST /v1/proof-center/result-package-handoff/review/operating-interface-run`
581
- - `POST /v1/proof-center/result-package-handoff/review/operating-integration`
582
- - `POST /v1/proof-center/result-package-handoff/review/operating-integration-carry`
583
-
584
- When `xytara` sends `handoff_bundle.economic_consequence_handoff_bundle`, `xoonya` now preserves a compact `economic_audit_summary` inside review output so proof-side operators can see the linked `account_ref`, `usage_meter_ref`, `credit_spend_ref`, `usage_units`, `pricing_band`, `payment_ref`, `settlement_ref`, `settlement_txid`, `settlement_finality_status`, `treasury_receipt_ref`, `proof_ref`, and `conformance_pack_ref` without re-deriving the carry by hand.
585
- - `POST /v1/proof-center/result-package-handoff/review/operating-integration-run`
586
- - `POST /v1/proof-center/result-package-handoff/review/operating-path`
587
- - `POST /v1/proof-center/result-package-handoff/review/operating-path-carry`
588
- - `POST /v1/proof-center/result-package-handoff/review/operating-path-run`
589
- - `POST /v1/proof-center/result-package-handoff/review/complete-default-path`
590
- - `POST /v1/proof-center/result-package-handoff/review/complete-default-path-carry`
591
- - `POST /v1/proof-center/result-package-handoff/review/complete-default-path-run`
592
- - `POST /v1/proof-center/result-package-handoff/review/handoff-run`
593
- - `POST /v1/proof-center/result-package-handoff/run`
594
-
595
- The result-package review surface now also returns a durability summary so the preserved execution, economic, and proof-facing context is easier to inspect before proof-native execution.
596
- It also now exposes an extension-readiness summary so the stable post-review proof boundary is easier to treat as a reusable seam.
597
- It now also exposes a reusable-default continuation summary so that same stable post-review boundary is easier to reuse as a standard proof-side default path.
598
- It now also exposes a compact reusable-default boundary summary so the proof-side default seam can be treated as a stable public boundary, not just a recommended path.
599
- It now also exposes composition-contract summaries so the proof-side default seam can be treated more clearly as a stable public contract across review and run.
600
- It now also exposes compact contract-carry summaries so the stable proof-side contract context is easier to inspect directly without expanding proof scope.
601
- It now also exposes bridge summaries, bridge-boundary summaries, and bridge-carry summaries so the proof-side review seam is easier to treat as an adapter-ready bridge without widening proof scope.
602
- It now also exposes a bridge-run summary so that same proof-side bridge can be read directly as the final run posture instead of only as review-stage carry.
603
- It now also exposes a handoff-continuity summary so the proof-side bridge can be treated more clearly as a stable handoff contract into proof-native execution.
604
- It now also exposes a handoff-intake summary and handoff-intake-boundary summary so that same handoff contract can be consumed more directly as a stable proof-native intake surface for future adapters without widening proof scope.
605
- It now also exposes a handoff-intake-carry summary so the same proof-side intake surface can be reused more directly as compact consumable carry instead of only summary or boundary posture.
606
- It now also exposes a handoff-run summary so that same handoff contract can be read directly as the final proof-native run posture instead of only as continuity guidance.
607
-
608
- The Wave B governance carry-over line adds a bounded governance center on the proof side:
609
-
610
- - governance interpretation validation for receipt-ledger and result-package follow-through
611
- - governance coordination emission for the next proof-side/operator handoff step
612
- - governance dashboard, operator-view, admin-view, dashboard-pack, workflow-pack, and signoff-pack packaging
613
- - dispute summary, case review, metadata-only dispute action, case-bundle export, and resolution-pack export
614
- - console-pack, handoff-bundle, and explicit review-link surfaces for compact operator carry into the proof-side review/run ladder
615
-
616
- This keeps governance review attached to the proof-side operating shape without widening `xoonya` into a runtime or economics system.
617
-
618
- The Wave E bridge carry-over line adds a bounded bridge center on the proof side:
619
-
620
- - receipt-wrap support for compact compatibility receipts when an outside bridge still needs that bounded surface
621
- - validator-compatible verification and receipt inspection posture for bridge-side review
622
- - receipt-ledger handoff packaging for compact proof-to-economics carry
623
- - operator review packs, workflow packs, admin packs, and compatibility packs so bridge-facing support breadth is easy to inspect without changing the public proof center
624
-
625
- This keeps the public story centered on `xoonya` while preserving the useful bridge, validator, and profile lineage as support surfaces instead of separate product identities.
626
-
627
- The current `1.18.0` line starts turning that adapter-consumable handoff surface into a clearer adapter-usable handoff package:
628
-
629
- - proof-side handoff-package intake summaries on top of the intake surface
630
- - proof-side handoff-package carry for compact usable package carry
631
- - proof-side handoff-package run summaries for direct default run posture
632
- - clearer handoff-package ids across intake, carry, and proof-native run posture
633
-
634
- This is intended to make the proof-side continuation path easier to use directly as a stable public handoff package instead of only a proof-native intake surface.
635
-
636
- The current `1.19.0` line starts turning that adapter-usable handoff package into a clearer adapter-ready execution package:
637
-
638
- - proof-side execution-package posture on top of the handoff-package path
639
- - compact execution-package carry for direct execution-ready posture
640
- - proof-side execution-package run posture for direct default proof-native run carry
641
- - clearer execution-package ids across package review, carry, and proof-native run posture
642
-
643
- This is intended to make the proof-side continuation path easier to execute against directly as a stable public package instead of only a package posture.
644
-
645
- The current `1.20.0` line starts turning that adapter-ready execution package into a clearer adapter-operable execution contract:
646
-
647
- - proof-side execution-contract posture on top of the execution-package path
648
- - compact execution-contract carry for direct operable proof-side carry
649
- - proof-side execution-contract run posture for direct default proof-native operation carry
650
- - clearer execution-contract ids across review, carry, and proof-native run posture
651
-
652
- This is intended to make the proof-side continuation path easier to operate against repeatedly as a stable public contract instead of only a package that is execution-ready by posture.
653
-
654
- The current `1.21.0` line starts turning that adapter-operable execution contract into a clearer adapter-stable operating contract:
655
-
656
- - proof-side operating-contract posture on top of the execution-contract path
657
- - compact operating-contract carry for direct stable proof-side operating carry
658
- - proof-side operating-contract run posture for direct default proof-native operating posture
659
- - clearer operating-contract ids across review, carry, and proof-native run posture
660
-
661
- This is intended to make the proof-side continuation path easier to depend on repeatedly as a durable public operating contract instead of only a contract that is operable in the moment.
662
-
663
- The current `1.22.0` line starts turning that adapter-stable operating contract into a clearer adapter-reliable operating interface:
664
-
665
- - proof-side operating-interface posture on top of the operating-contract path
666
- - compact operating-interface carry for direct reliable proof-side interface carry
667
- - proof-side operating-interface run posture for direct default proof-native reliable posture
668
- - clearer operating-interface ids across review, carry, and proof-native run posture
669
-
670
- This is intended to make the proof-side continuation path easier to rely on operationally as a durable public interface instead of only a stable operating contract shape.
671
-
672
- The current `1.23.0` line starts turning that adapter-reliable operating interface into a clearer adapter-integrable operating path:
673
-
674
- - proof-side operating-integration posture on top of the operating-interface path
675
- - compact operating-integration carry for direct integrable proof-side path carry
676
- - proof-side operating-integration run posture for direct default proof-native integration posture
677
- - clearer operating-integration ids across review, carry, and proof-native run posture
678
-
679
- This is intended to make the proof-side continuation path easier to plug into adapters directly as a durable public operating path instead of only a reliable interface shape.
65
+ ## Verification methods
680
66
 
681
- The current `1.24.0` line starts turning that adapter-integrable operating path into a clearer adapter-ready default path:
67
+ xoonya verifies the **native XNYA** family and common **external** formats for interop:
682
68
 
683
- - proof-side operating-path posture on top of the operating-integration path
684
- - compact operating-path carry for direct default proof-side path carry
685
- - proof-side operating-path run posture for direct default proof-native path posture
686
- - clearer operating-path ids across review, carry, and proof-native run posture
69
+ - **Native (XNYA):** `xoonya-native-sha256-v1`, `xoonya-native-signed-v1` (Ed25519 / secp256k1 /
70
+ P-256), `xoonya-native-hybrid-v1` (**classical + post-quantum**: ML-DSA-65 / FIPS-204,
71
+ SLH-DSA / FIPS-205), `xoonya-native-anchored-v1`.
72
+ - **External:** `signed-envelope`, `detached-assertion`, `jwt-assertion`, `sd-jwt-vc`, `did-vc`,
73
+ `partner-proof-envelope`, `legacy-opreturn`.
687
74
 
688
- This is intended to make the proof-side continuation path easier to use as the obvious first public adapter path instead of only a path that is integrable with a little extra coordination.
75
+ Conformance and adversarial vectors ship in `vectors/`; the `XNYA-compatible` mark is defined in
76
+ [`XNYA_CONFORMANCE_MARK.md`](./XNYA_CONFORMANCE_MARK.md).
689
77
 
690
- The current `1.25.0` line starts turning that adapter-ready default path into a clearer adapter-complete default path:
78
+ ## As a paid service (x402)
691
79
 
692
- - proof-side complete-default-path posture on top of the operating-path path
693
- - compact complete-default-path carry for direct complete proof-side path carry
694
- - proof-side complete-default-path run posture for direct default proof-native complete path posture
695
- - clearer complete-default-path ids across review, carry, and proof-native run posture
80
+ xoonya runs as a verification service you can pay per call. An agent pays
81
+ [xytara](https://naxytra.com/xytara) with x402 for `adapter.xoonya.invoke` (tool
82
+ `proof.verify-signature` / `proof.verify-bundle` / `proof.verify-envelope` / `proof.verify-receipt`);
83
+ xytara routes to xoonya's bearer-authed `/execute`, which runs real verification and returns the
84
+ verdict. It is billed only on a successful verification.
696
85
 
697
- This is intended to make the proof-side continuation path easier to adopt as the complete public default path an outside builder can use without needing private interpretation.
698
-
699
- The current `1.26.0` line finalizes that public shape into a cleaner production-ready package:
700
-
701
- - a publishable [START_HERE.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/START_HERE.md) onboarding path
702
- - clearer top-level README entry points for the default proof-side production flow
703
- - publishable contract, compatibility, and terminology docs carried in the package tarball
704
- - naming cleanup that keeps the public story anchored to `xytara` and `xoonya`
705
-
706
- This is intended to make the public proof-side package feel like a finished production-facing product instead of a strong stack that still assumes milestone-history context.
707
- - `POST /v1/events/canonicalize`
708
- - `POST /v1/events/hash`
709
- - `POST /v1/receipts/emit`
710
- - `POST /v1/proof-bundles/build`
711
- - `POST /v1/proof-bundles/verify`
712
- - `GET /v1/integrations`
713
- - `GET /v1/integrations/summary`
714
- - `GET /v1/integrations/snapshot`
715
- - `GET /v1/integrations/promotion-readiness`
716
- - `GET /v1/integrations/promotion-workflow`
717
-
718
- Preserved compatibility routes:
719
-
720
- - `POST /validate`
721
- - `POST /v1/receipts/verify`
722
- - `POST /v1/receipts/inspect`
723
- - `POST /v1/proofs/verify`
724
- - `POST /v1/profiles/economic/verify`
725
- - `POST /v1/profiles/registry/verify`
726
-
727
- ## Verification
728
-
729
- Local verification commands:
730
-
731
- - `npm run verify:package`
732
- - `npm run verify:conformance`
733
- - `npm run verify:vectors`
734
- - `npm run verify:examples`
735
- - `npm run verify:service`
736
- - `npm run verify:tooling`
737
- - `npm run verify:forgery-resistance`
738
- - `npm run verify:all`
739
-
740
- The current verification covers:
741
-
742
- - proof integration discovery metadata and filtering
743
- - staged proof integration registration import and snapshot export
744
- - package export presence
745
- - deterministic event hashing
746
- - proof-bundle tamper detection
747
- - public conformance CLI execution through `xoonya conformance --json`
748
- - published conformance vectors
749
- - published adversarial vectors
750
- - package quickstart flow
751
- - service routes for both the primary proof model and the legacy compatibility layer
752
- - forgery resistance: key substitution with and without a trust root, strict-mode rejection of digest and structural results, hybrid PQ tampering and wrong-pin rejection, and result determinism
753
-
754
- ### Verification Classes
755
-
756
- `verifyProofBundle(bundle, options)` and `POST /v1/proof-bundles/verify` (`{ "bundle": ..., "options": ... }`) return `verification_class`, `cryptographically_verified`, `strict`, and `trust_root_applied` next to `valid`:
757
-
758
- | `verification_class` | Methods | `cryptographically_verified` | Strict mode |
759
- | --- | --- | --- | --- |
760
- | `cryptographic` | `xoonya-native-signed-v1`, `xoonya-native-hybrid-v1` | `true` when valid | accepted |
761
- | `digest` | `xoonya-native-sha256-v1`, `legacy-opreturn-v1` | `false` | rejected: `digest_only_not_cryptographically_verified` |
762
- | `anchored_binding` | `xoonya-native-anchored-v1` | `false` | rejected: `digest_only_not_cryptographically_verified` |
763
- | `structural` | `detached-assertion-v1`, `jwt-assertion-v1`, `did-vc-v1`, `sd-jwt-vc-v1`, `signed-envelope-v1`, `partner-proof-envelope-v1` | `false` | rejected: `external_verification_required` |
764
-
765
- Default `valid` semantics are unchanged. Options:
766
-
767
- - `strict: true` (or env `XOONYA_STRICT_VERIFY=1`): only `cryptographic` results are `valid`.
768
- - `expected_public_key_ref`, `expected_classical_public_key_ref`, `expected_pq_public_key_ref`, `expected_hybrid_public_key_ref`: pin the exact key refs a native proof must carry.
769
- - `trusted_public_key_refs`: `{ "<identity_ref>": "<ref>" | ["<ref>", ...] | { "classical": ..., "pq": ..., "hybrid": ... } }`. Native signed proofs fail with `native_public_key_not_trusted` and native hybrid proofs with `native_hybrid_public_key_not_trusted` when the signing key is not pinned for that identity. Any trust-root option sets `trust_root_applied: true` and fails closed for identities that are not listed.
770
-
771
- Without a trust root, a native signed proof only proves that the carried key signed the receipt; `identity_ref` and `agent_identity` are not bound to that key by xoonya. `npm run verify:forgery-resistance` pins this behavior.
772
-
773
- Public conformance command:
86
+ Run the server yourself:
774
87
 
775
88
  ```bash
776
- xoonya conformance
777
- xoonya conformance --json
89
+ XOONYA_EXECUTOR_BEARER_TOKEN=... npm start # exposes the paid /execute lane
778
90
  ```
779
91
 
780
- The conformance command verifies the published vector files shipped in the package. The positive set covers `legacy-opreturn-v1`, `detached-assertion-v1`, `xoonya-native-sha256-v1`, `xoonya-native-signed-v1`, `xoonya-native-anchored-v1`, `xoonya-native-hybrid-v1`, `jwt-assertion-v1`, `did-vc-v1`, `sd-jwt-vc-v1`, `signed-envelope-v1`, and `partner-proof-envelope-v1`. The adversarial set covers bad event versions, missing signatures, mismatched commitments, unsupported methods, ambiguous `none`, replayed receipt context, native digest tampering, native signed proof tampering, native anchored proof tampering, native hybrid signature and key-binding tampering, native-to-detached downgrade attempts, and receipt-id mismatches.
781
-
782
- Published proof hardening artifacts:
783
-
784
- - [conformance-vectors.json](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/vectors/conformance-vectors.json)
785
- - [adversarial-vectors.json](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/vectors/adversarial-vectors.json)
786
- - [CROSS_RUNTIME_POSTURE.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/CROSS_RUNTIME_POSTURE.md)
787
-
788
- ## Control Files
789
-
790
- - `CROSS_RUNTIME_POSTURE.md`
791
- - `FINAL_CONTRACT.md`
792
- - `TERMINOLOGY.md`
793
- - `SERVICE_CONTRACT.md`
794
- - `COMPATIBILITY_NOTE.md`
795
-
796
- ## Proof Integration Toolkit
797
-
798
- `xoonya` keeps its integration model narrower than `xytara`. The proof-side toolkit is for additive proof helpers only:
799
-
800
- - identity-material providers
801
- - attestation and evidence reference adapters
802
- - anchor reference adapters
803
- - profile verification helpers
804
- - compatibility-oriented proof integrations
92
+ ## Configuration
805
93
 
806
- This integration toolkit is broader than the proof verification method registry. Verification methods describe how a receipt or proof envelope is admitted at the proof boundary; integrations describe additive proof-side helpers, references, profiles, and staged third-party support that can be reviewed without changing the proof kernel.
94
+ - `XOONYA_STRICT_VERIFY=1` — only cryptographically verified (native signed / hybrid) results pass;
95
+ digest and structural results are rejected.
96
+ - `XOONYA_ACCEPT_PRIVATE_KEY_MATERIAL=false` — refuse private-key material on shared deployments;
97
+ sign locally with the SDK/CLI instead.
807
98
 
808
- The package now includes:
809
-
810
- - `validateIntegrationRegistration(...)`
811
- - `importRegisteredIntegration(...)`
812
- - `exportIntegrationRegistrySnapshot(...)`
813
- - `validateIntegrationRegistrySnapshot(...)`
814
- - `summarizeIntegrationPromotionReadiness(...)`
815
- - `summarizeIntegrationPromotionWorkflow(...)`
816
- - `summarizeIntegrationPromotionWorkflowList(...)`
817
-
818
- Those helpers are intended to normalize proof-adjacent integrations without letting pricing, workflow, or settlement logic leak into the proof kernel.
819
-
820
- For the lightweight external-builder path, use:
821
-
822
- - [PROOF_INTEGRATION_PROCESS.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/integrations/PROOF_INTEGRATION_PROCESS.md)
823
-
824
- For lightweight local review flows, `xoonya` also includes a small repo-local proof-side CLI when working from a cloned `xoonya` repository:
825
-
826
- ```bash
827
- node scripts/registry_cli.js validate-registration --example verifier
828
- node scripts/registry_cli.js export-snapshot --registration_state staging_registered
829
- node scripts/registry_cli.js promotion-readiness --integration partner.verifier.lattice_notary
830
- node scripts/registry_cli.js promotion-workflow --integration partner.verifier.lattice_notary
831
- node scripts/registry_cli.js promotion-workflow-summary --source third_party_example --registration_state staging_registered --bundled false
832
- ```
99
+ See [`.env.example`](./.env.example) for the full list.
833
100
 
834
- That tooling is intentionally narrow: validate proof-integration registration posture and export filtered proof registry snapshots.
101
+ ## Learn more
835
102
 
836
- The proof-side readiness layer now also makes promotion posture explicit without expanding `xoonya` into a control plane:
103
+ - Why two packages: [`WHY_XYTARA_XOONYA.md`](./WHY_XYTARA_XOONYA.md)
104
+ - Native proof format: [`XOONYA_NATIVE_PROOF_FORMAT.md`](./XOONYA_NATIVE_PROOF_FORMAT.md) ·
105
+ atom spec: [`XOONYA_NATIVE_ATOM_SPEC.md`](./XOONYA_NATIVE_ATOM_SPEC.md)
106
+ - Start here: [`START_HERE.md`](./START_HERE.md) · terminology: [`TERMINOLOGY.md`](./TERMINOLOGY.md)
107
+ - Live: https://naxytra.com/xoonya
837
108
 
838
- - review-ready means a proof integration is staged and inspectable
839
- - default-eligible means it can participate in the proof-side default posture
840
- - production-default-ready means certification, maturity, bundled posture, and selection posture all line up
841
- - blockers are returned as data instead of being left implicit
842
- - promotion workflow summaries now show the next proof-side transition and the current recommendation without introducing approval state
109
+ ## License
843
110
 
111
+ Apache-2.0. See [`LICENSE`](./LICENSE) and [`NOTICE`](./NOTICE).
package/RELEASE_NOTES.md CHANGED
@@ -1,11 +1,3 @@
1
- `xoonya` 3.1.9 turns proof verification into a paid, pay-per-call machine service while keeping every existing free verification path and the deterministic proof engine unchanged.
1
+ `xoonya` 3.1.10 refreshes the public README and package metadata to lead with the proven capabilities: deterministic and post-quantum (Ed25519 + ML-DSA-65 hybrid) verification of the native XNYA machine-evidence format, demonstrated live via the paid x402 lane.
2
2
 
3
- This is the first release to carry the monetization backend: the proof verifier can now be offered as a metered service behind the runtime's x402 payment spine, and imported external proofs are verified cryptographically rather than only hash-bound.
4
-
5
- Highlights:
6
-
7
- - adds a bearer-authed `POST /execute` backend so proof verification can be sold per call behind the runtime's x402 settlement (fail-closed: 503 when the bearer is unset, 401 on a bad token, constant-time token comparison)
8
- - bills only on a positively-successful verification — unknown tool, unprocessable input, a structural reject, or a negative verdict all return non-2xx so the runtime never settles for a non-result
9
- - adds an optional paywall flag (`XOONYA_REQUIRE_PAID_VERIFICATION`, default off) that makes the free direct verify routes return 402 pointing to the paid lane, so the free HTTP path cannot undercut the paid product; `/execute` and `/health` always stay free
10
- - verifies imported external proofs (compact JWS and detached signatures) cryptographically with `node:crypto` instead of only binding their hash — a real cross-runtime verifier, with `alg:none`/alg-confusion/private-key material rejected
11
- - keeps the deterministic hash/sign/verify core, the native XNYA standard, the classical and post-quantum (ML-DSA-65, SLH-DSA-SHA2-128f) verification suites, the conformance and forgery-resistance vectors, strict-mode and trust-root options, and the canonical `https://naxytra.com/xoonya` product URL unchanged
3
+ There is no change to the proof engine, verification behavior, vectors, or any route — this is a documentation and packaging refresh for public outreach.
package/START_HERE.md CHANGED
@@ -4,7 +4,7 @@ This is the shortest reliable path for understanding and using the public `xoony
4
4
 
5
5
  The phase program is now complete, so this file is the right starting point for a closed and release-shaped proof system rather than an in-flight milestone build.
6
6
 
7
- The product-side implementation, proof posture, and bounded hybrid verification work for the widened `3.0.0` finish line are now complete. The remaining step is the synchronized public `3.0.0` release cut, publish, deploy, and verification sequence documented in [NAXYTRA_3_0_0_RELEASE_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/docs/release/NAXYTRA_3_0_0_RELEASE_CONTRACT.md) and [PUBLISH_PLAN.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/PUBLISH_PLAN.md).
7
+ The product-side implementation, proof posture, and bounded hybrid verification work for the widened `3.0.0` finish line are now complete. The remaining step is the synchronized public `3.0.0` release cut, publish, deploy, and verification sequence documented in NAXYTRA_3_0_0_RELEASE_CONTRACT.md and PUBLISH_PLAN.md.
8
8
 
9
9
  If you are arriving from the broader public discovery layer, the canonical entry points are:
10
10
 
@@ -68,13 +68,13 @@ This is the fastest way to see the intended proof-side package story end-to-end.
68
68
 
69
69
  If you want the clearest cross-repo adoption path instead of the broad package tour, continue with:
70
70
 
71
- - [CARRIED_HANDOFF_DEMO.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/CARRIED_HANDOFF_DEMO.md)
71
+ - CARRIED_HANDOFF_DEMO.md
72
72
 
73
73
  If you want the shortest neutral external-adoption bundle, continue with:
74
74
 
75
- - [PARTNER_READY_PATH.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/PARTNER_READY_PATH.md)
76
- - [PUBLIC_DEMO_SCRIPT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/PUBLIC_DEMO_SCRIPT.md)
77
- - [EXAMPLE_PATHS.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/EXAMPLE_PATHS.md)
75
+ - PARTNER_READY_PATH.md
76
+ - PUBLIC_DEMO_SCRIPT.md
77
+ - EXAMPLE_PATHS.md
78
78
  - `node examples/partner_proof_walkthrough.js`
79
79
 
80
80
  ## 3. Verify The Whole Package
@@ -91,8 +91,8 @@ This is the production-confidence check for the published proof package surface.
91
91
 
92
92
  For long-term product understanding, read:
93
93
 
94
- - [FINAL_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/FINAL_CONTRACT.md)
95
- - [SERVICE_CONTRACT.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/SERVICE_CONTRACT.md)
94
+ - FINAL_CONTRACT.md
95
+ - SERVICE_CONTRACT.md
96
96
  - `GET /openapi.json`
97
97
  - `GET /asyncapi.json`
98
98
  - `GET /cloudevents.json`
@@ -117,23 +117,23 @@ For long-term product understanding, read:
117
117
  - `GET /v1/result-package-trust`
118
118
  - `GET /v1/event-systems`
119
119
  - `GET /v1/integrations`
120
- - [PROGRAM_STATUS.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/PROGRAM_STATUS.md)
121
- - [OPERATOR_START_HERE.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/OPERATOR_START_HERE.md)
122
- - [OPERATIONS_RUNBOOK.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/OPERATIONS_RUNBOOK.md)
123
- - [PROGRAM_COMPLETE_RELEASE.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/PROGRAM_COMPLETE_RELEASE.md)
124
- - [WHY_XYTARA_XOONYA.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/WHY_XYTARA_XOONYA.md)
125
- - [CARRIED_HANDOFF_DEMO.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/CARRIED_HANDOFF_DEMO.md)
126
- - [PARTNER_READY_PATH.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/PARTNER_READY_PATH.md)
127
- - [TERMINOLOGY.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/TERMINOLOGY.md)
120
+ - PROGRAM_STATUS.md
121
+ - OPERATOR_START_HERE.md
122
+ - OPERATIONS_RUNBOOK.md
123
+ - PROGRAM_COMPLETE_RELEASE.md
124
+ - WHY_XYTARA_XOONYA.md
125
+ - CARRIED_HANDOFF_DEMO.md
126
+ - PARTNER_READY_PATH.md
127
+ - TERMINOLOGY.md
128
128
 
129
129
  ## 5. If You Are Integrating From Outside
130
130
 
131
131
  Continue with:
132
132
 
133
- - [CROSS_RUNTIME_POSTURE.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/CROSS_RUNTIME_POSTURE.md)
134
- - [integrations/PROOF_INTEGRATION_PROCESS.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/integrations/PROOF_INTEGRATION_PROCESS.md)
135
- - [PARTNER_READY_PATH.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/PARTNER_READY_PATH.md)
136
- - [COMPATIBILITY_NOTE.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/COMPATIBILITY_NOTE.md)
133
+ - CROSS_RUNTIME_POSTURE.md
134
+ - integrations/PROOF_INTEGRATION_PROCESS.md
135
+ - PARTNER_READY_PATH.md
136
+ - COMPATIBILITY_NOTE.md
137
137
 
138
138
  ## 6. Production Reading Rule
139
139
 
@@ -155,5 +155,5 @@ If you want the shortest CLI-first read of the package after install, use:
155
155
 
156
156
  Use:
157
157
 
158
- - [PROGRAM_STATUS.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/PROGRAM_STATUS.md)
159
- - [OPERATOR_START_HERE.md](C:/Users/Yoga/Desktop/workspace/vscode_workspace_naxytra/naxytra/xoonya/OPERATOR_START_HERE.md)
158
+ - PROGRAM_STATUS.md
159
+ - OPERATOR_START_HERE.md
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "xoonya",
3
- "version": "3.1.9",
4
- "description": "Deterministic proof and review engine for receipts, handoffs, governance, and verification.",
3
+ "version": "3.1.10",
4
+ "description": "Deterministic proof and review engine with post-quantum verification (Ed25519 + ML-DSA-65 hybrid) for receipts, handoffs, governance, and the native XNYA machine-evidence format. Verified live via the paid x402 lane.",
5
5
  "main": "index.js",
6
6
  "bin": {
7
7
  "xoonya": "bin/xoonya.js",
@@ -69,7 +69,14 @@
69
69
  "proof-bundle",
70
70
  "deterministic",
71
71
  "machine",
72
- "evidence"
72
+ "evidence",
73
+ "post-quantum",
74
+ "ml-dsa",
75
+ "slh-dsa",
76
+ "pqc",
77
+ "xnya",
78
+ "ed25519",
79
+ "x402"
73
80
  ],
74
81
  "scripts": {
75
82
  "start": "node server.js",