xoonya 1.20.0 → 1.22.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 CHANGED
@@ -156,6 +156,12 @@ Primary proof-model routes:
156
156
  - `POST /v1/proof-center/result-package-handoff/review/execution-contract`
157
157
  - `POST /v1/proof-center/result-package-handoff/review/execution-contract-carry`
158
158
  - `POST /v1/proof-center/result-package-handoff/review/execution-contract-run`
159
+ - `POST /v1/proof-center/result-package-handoff/review/operating-contract`
160
+ - `POST /v1/proof-center/result-package-handoff/review/operating-contract-carry`
161
+ - `POST /v1/proof-center/result-package-handoff/review/operating-contract-run`
162
+ - `POST /v1/proof-center/result-package-handoff/review/operating-interface`
163
+ - `POST /v1/proof-center/result-package-handoff/review/operating-interface-carry`
164
+ - `POST /v1/proof-center/result-package-handoff/review/operating-interface-run`
159
165
  - `POST /v1/proof-center/result-package-handoff/review/handoff-run`
160
166
  - `POST /v1/proof-center/result-package-handoff/run`
161
167
 
@@ -198,6 +204,24 @@ The current `1.20.0` line starts turning that adapter-ready execution package in
198
204
  - clearer execution-contract ids across review, carry, and proof-native run posture
199
205
 
200
206
  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.
207
+
208
+ The current `1.21.0` line starts turning that adapter-operable execution contract into a clearer adapter-stable operating contract:
209
+
210
+ - proof-side operating-contract posture on top of the execution-contract path
211
+ - compact operating-contract carry for direct stable proof-side operating carry
212
+ - proof-side operating-contract run posture for direct default proof-native operating posture
213
+ - clearer operating-contract ids across review, carry, and proof-native run posture
214
+
215
+ 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.
216
+
217
+ The current `1.22.0` line starts turning that adapter-stable operating contract into a clearer adapter-reliable operating interface:
218
+
219
+ - proof-side operating-interface posture on top of the operating-contract path
220
+ - compact operating-interface carry for direct reliable proof-side interface carry
221
+ - proof-side operating-interface run posture for direct default proof-native reliable posture
222
+ - clearer operating-interface ids across review, carry, and proof-native run posture
223
+
224
+ 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.
201
225
  - `POST /v1/events/canonicalize`
202
226
  - `POST /v1/events/hash`
203
227
  - `POST /v1/receipts/emit`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xoonya",
3
- "version": "1.20.0",
3
+ "version": "1.22.0",
4
4
  "description": "Deterministic proof SDK for canonical events, receipts, proof bundles, and verification.",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
package/proof_sdk.js CHANGED
@@ -1753,6 +1753,84 @@ function summarizeReviewExecutionContractRun(input) {
1753
1753
  };
1754
1754
  }
1755
1755
 
1756
+ function summarizeReviewOperatingContract(input) {
1757
+ const executionContract = summarizeReviewExecutionContractRun(input);
1758
+ return {
1759
+ ok: executionContract.ok === true,
1760
+ execution_contract_ref: executionContract.execution_contract_ref || null,
1761
+ operating_contract_ref: executionContract.execution_contract_ref ? `operating.${executionContract.execution_contract_ref}` : null,
1762
+ accepted_operating_contract_ids: Array.isArray(executionContract.accepted_execution_contract_ids) ? executionContract.accepted_execution_contract_ids : [],
1763
+ adapter_stable: executionContract.execution_operable_by_default === true,
1764
+ run_surface: executionContract.run_surface || null,
1765
+ run_path_ids: Array.isArray(executionContract.default_run_path_ids) ? executionContract.default_run_path_ids : []
1766
+ };
1767
+ }
1768
+
1769
+ function summarizeReviewOperatingContractCarry(input) {
1770
+ const operatingContract = summarizeReviewOperatingContract(input);
1771
+ return {
1772
+ ok: operatingContract.ok === true,
1773
+ operating_contract_ref: operatingContract.operating_contract_ref || null,
1774
+ accepted_operating_contract_ids: Array.isArray(operatingContract.accepted_operating_contract_ids) ? operatingContract.accepted_operating_contract_ids : [],
1775
+ operating_contract_carry: {
1776
+ run_surface: operatingContract.run_surface || null,
1777
+ run_path_ids: Array.isArray(operatingContract.run_path_ids) ? operatingContract.run_path_ids : []
1778
+ },
1779
+ adapter_stable: operatingContract.adapter_stable === true
1780
+ };
1781
+ }
1782
+
1783
+ function summarizeReviewOperatingContractRun(input) {
1784
+ const operatingContract = summarizeReviewOperatingContract(input);
1785
+ return {
1786
+ ok: operatingContract.ok === true,
1787
+ operating_contract_ref: operatingContract.operating_contract_ref || null,
1788
+ accepted_operating_contract_ids: Array.isArray(operatingContract.accepted_operating_contract_ids) ? operatingContract.accepted_operating_contract_ids : [],
1789
+ operating_stable_by_default: operatingContract.adapter_stable === true,
1790
+ run_surface: operatingContract.run_surface || null,
1791
+ default_run_path_ids: Array.isArray(operatingContract.run_path_ids) ? operatingContract.run_path_ids : []
1792
+ };
1793
+ }
1794
+
1795
+ function summarizeReviewOperatingInterface(input) {
1796
+ const operatingContract = summarizeReviewOperatingContractRun(input);
1797
+ return {
1798
+ ok: operatingContract.ok === true,
1799
+ operating_contract_ref: operatingContract.operating_contract_ref || null,
1800
+ operating_interface_ref: operatingContract.operating_contract_ref ? `interface.${operatingContract.operating_contract_ref}` : null,
1801
+ accepted_operating_interface_ids: Array.isArray(operatingContract.accepted_operating_contract_ids) ? operatingContract.accepted_operating_contract_ids : [],
1802
+ adapter_reliable: operatingContract.operating_stable_by_default === true,
1803
+ run_surface: operatingContract.run_surface || null,
1804
+ run_path_ids: Array.isArray(operatingContract.default_run_path_ids) ? operatingContract.default_run_path_ids : []
1805
+ };
1806
+ }
1807
+
1808
+ function summarizeReviewOperatingInterfaceCarry(input) {
1809
+ const operatingInterface = summarizeReviewOperatingInterface(input);
1810
+ return {
1811
+ ok: operatingInterface.ok === true,
1812
+ operating_interface_ref: operatingInterface.operating_interface_ref || null,
1813
+ accepted_operating_interface_ids: Array.isArray(operatingInterface.accepted_operating_interface_ids) ? operatingInterface.accepted_operating_interface_ids : [],
1814
+ operating_interface_carry: {
1815
+ run_surface: operatingInterface.run_surface || null,
1816
+ run_path_ids: Array.isArray(operatingInterface.run_path_ids) ? operatingInterface.run_path_ids : []
1817
+ },
1818
+ adapter_reliable: operatingInterface.adapter_reliable === true
1819
+ };
1820
+ }
1821
+
1822
+ function summarizeReviewOperatingInterfaceRun(input) {
1823
+ const operatingInterface = summarizeReviewOperatingInterface(input);
1824
+ return {
1825
+ ok: operatingInterface.ok === true,
1826
+ operating_interface_ref: operatingInterface.operating_interface_ref || null,
1827
+ accepted_operating_interface_ids: Array.isArray(operatingInterface.accepted_operating_interface_ids) ? operatingInterface.accepted_operating_interface_ids : [],
1828
+ operating_interface_reliable_by_default: operatingInterface.adapter_reliable === true,
1829
+ run_surface: operatingInterface.run_surface || null,
1830
+ default_run_path_ids: Array.isArray(operatingInterface.run_path_ids) ? operatingInterface.run_path_ids : []
1831
+ };
1832
+ }
1833
+
1756
1834
  function runDefaultProofLoop(loopRef, input) {
1757
1835
  const loop = getDefaultProofLoop(loopRef);
1758
1836
  if (!loop) {
@@ -1833,6 +1911,12 @@ module.exports = {
1833
1911
  summarizeReviewExecutionContract,
1834
1912
  summarizeReviewExecutionContractCarry,
1835
1913
  summarizeReviewExecutionContractRun,
1914
+ summarizeReviewOperatingContract,
1915
+ summarizeReviewOperatingContractCarry,
1916
+ summarizeReviewOperatingContractRun,
1917
+ summarizeReviewOperatingInterface,
1918
+ summarizeReviewOperatingInterfaceCarry,
1919
+ summarizeReviewOperatingInterfaceRun,
1836
1920
  summarizeReviewHandoffRun,
1837
1921
  runInteractionResultPackageHandoff,
1838
1922
  runInteractionSpineProofHandoff,
package/server.js CHANGED
@@ -468,6 +468,72 @@ async function routeRequest(req, res) {
468
468
  return;
469
469
  }
470
470
 
471
+ if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-contract') {
472
+ try {
473
+ const body = await readJsonBody(req);
474
+ const result = proofSdk.summarizeReviewOperatingContract(body);
475
+ sendJson(res, 200, result);
476
+ } catch (error) {
477
+ sendJson(res, 400, { ok: false, reason: error.message });
478
+ }
479
+ return;
480
+ }
481
+
482
+ if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-contract-carry') {
483
+ try {
484
+ const body = await readJsonBody(req);
485
+ const result = proofSdk.summarizeReviewOperatingContractCarry(body);
486
+ sendJson(res, 200, result);
487
+ } catch (error) {
488
+ sendJson(res, 400, { ok: false, reason: error.message });
489
+ }
490
+ return;
491
+ }
492
+
493
+ if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-contract-run') {
494
+ try {
495
+ const body = await readJsonBody(req);
496
+ const result = proofSdk.summarizeReviewOperatingContractRun(body);
497
+ sendJson(res, 200, result);
498
+ } catch (error) {
499
+ sendJson(res, 400, { ok: false, reason: error.message });
500
+ }
501
+ return;
502
+ }
503
+
504
+ if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-interface') {
505
+ try {
506
+ const body = await readJsonBody(req);
507
+ const result = proofSdk.summarizeReviewOperatingInterface(body);
508
+ sendJson(res, 200, result);
509
+ } catch (error) {
510
+ sendJson(res, 400, { ok: false, reason: error.message });
511
+ }
512
+ return;
513
+ }
514
+
515
+ if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-interface-carry') {
516
+ try {
517
+ const body = await readJsonBody(req);
518
+ const result = proofSdk.summarizeReviewOperatingInterfaceCarry(body);
519
+ sendJson(res, 200, result);
520
+ } catch (error) {
521
+ sendJson(res, 400, { ok: false, reason: error.message });
522
+ }
523
+ return;
524
+ }
525
+
526
+ if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-interface-run') {
527
+ try {
528
+ const body = await readJsonBody(req);
529
+ const result = proofSdk.summarizeReviewOperatingInterfaceRun(body);
530
+ sendJson(res, 200, result);
531
+ } catch (error) {
532
+ sendJson(res, 400, { ok: false, reason: error.message });
533
+ }
534
+ return;
535
+ }
536
+
471
537
  if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-run') {
472
538
  try {
473
539
  const body = await readJsonBody(req);