alelyon-os 0.1.0__tar.gz
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.
- alelyon_os-0.1.0/LICENSE-APACHE +201 -0
- alelyon_os-0.1.0/LICENSE-MIT +21 -0
- alelyon_os-0.1.0/PKG-INFO +133 -0
- alelyon_os-0.1.0/README.md +93 -0
- alelyon_os-0.1.0/alelyon/__init__.py +7 -0
- alelyon_os-0.1.0/alelyon/platform/__init__.py +1 -0
- alelyon_os-0.1.0/alelyon/platform/sdk/__init__.py +27 -0
- alelyon_os-0.1.0/alelyon/platform/sdk/_json.py +69 -0
- alelyon_os-0.1.0/alelyon/platform/sdk/client.py +547 -0
- alelyon_os-0.1.0/alelyon/platform/sdk/stream.py +234 -0
- alelyon_os-0.1.0/alelyon/runtime/__init__.py +1 -0
- alelyon_os-0.1.0/alelyon/runtime/atlas/__init__.py +1 -0
- alelyon_os-0.1.0/alelyon/runtime/atlas/data/__init__.py +29 -0
- alelyon_os-0.1.0/alelyon/runtime/atlas/data/attest.py +1326 -0
- alelyon_os-0.1.0/alelyon/runtime/atlas/data/keylife.py +694 -0
- alelyon_os-0.1.0/alelyon/runtime/common/__init__.py +32 -0
- alelyon_os-0.1.0/alelyon/runtime/common/worktree.py +526 -0
- alelyon_os-0.1.0/alelyon/runtime/common/worktree_areas.py +325 -0
- alelyon_os-0.1.0/alelyon/runtime/common/worktree_bus.py +665 -0
- alelyon_os-0.1.0/alelyon/runtime/common/worktree_cache.py +515 -0
- alelyon_os-0.1.0/alelyon/runtime/common/worktree_graph.py +336 -0
- alelyon_os-0.1.0/alelyon/runtime/oracle/__init__.py +1 -0
- alelyon_os-0.1.0/alelyon/runtime/oracle/dsl/__init__.py +30 -0
- alelyon_os-0.1.0/alelyon/runtime/oracle/dsl/envelope.py +778 -0
- alelyon_os-0.1.0/alelyon/runtime/oracle/dsl/execcert.py +965 -0
- alelyon_os-0.1.0/alelyon/runtime/oracle/dsl/interpreter.py +510 -0
- alelyon_os-0.1.0/alelyon/runtime/oracle/dsl/lexer.py +168 -0
- alelyon_os-0.1.0/alelyon/runtime/oracle/dsl/nodes.py +74 -0
- alelyon_os-0.1.0/alelyon/runtime/oracle/dsl/parser.py +248 -0
- alelyon_os-0.1.0/alelyon/runtime/oracle/dsl/verify.py +1279 -0
- alelyon_os-0.1.0/alelyon/runtime/vector/__init__.py +1 -0
- alelyon_os-0.1.0/alelyon/runtime/vector/compute/__init__.py +23 -0
- alelyon_os-0.1.0/alelyon/runtime/vector/compute/graph.py +296 -0
- alelyon_os-0.1.0/alelyon/runtime/vector/compute/layout.py +82 -0
- alelyon_os-0.1.0/alelyon/runtime/vector/compute/types.py +151 -0
- alelyon_os-0.1.0/alelyon/runtime/vector/lattice/__init__.py +193 -0
- alelyon_os-0.1.0/alelyon/runtime/vector/lattice/canonical.py +821 -0
- alelyon_os-0.1.0/alelyon/runtime/vector/lattice/certificate.py +979 -0
- alelyon_os-0.1.0/alelyon/runtime/vector/lattice/contracts.py +749 -0
- alelyon_os-0.1.0/alelyon/runtime/vector/lattice/morphometry.py +1172 -0
- alelyon_os-0.1.0/alelyon/runtime/vector/lattice/registration.py +1787 -0
- alelyon_os-0.1.0/alelyon/runtime/vector/lattice/transforms.py +1648 -0
- alelyon_os-0.1.0/alelyon/runtime/vector/lattice/verify.py +278 -0
- alelyon_os-0.1.0/alelyon/runtime/vector/native.py +91 -0
- alelyon_os-0.1.0/alelyon/verify/SPEC-cne-v0.md +2008 -0
- alelyon_os-0.1.0/alelyon/verify/__init__.py +72 -0
- alelyon_os-0.1.0/alelyon/verify/cli.py +372 -0
- alelyon_os-0.1.0/alelyon/verify/conformance.py +351 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-anchor-scope-substitution.json +494 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-anchor-sth-scope-substitution.json +494 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-bad-signature.json +494 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-cents-law-one-bad-element.json +173 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-cents-law-over-fractional-data.json +171 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-cosignature-key-role-collision.json +510 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-cosignature-replay.json +510 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-delta-count-mismatch.json +361 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-delta-fake-zero.json +487 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-delta-omitted.json +426 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-future-version.json +492 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-key-manifest-checkpoint-equivocation.json +586 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-key-manifest-checkpoint-missing.json +528 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-key-manifest-checkpoint-role-collision.json +621 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-key-manifest-rollback.json +586 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-key-manifest-unrooted.json +620 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-key-not-in-manifest.json +567 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-key-revoked.json +642 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-leaf-payload-tampered.json +494 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-mismatched-key-id.json +498 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-program-hash-mismatch.json +494 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-proof-tree-size-mismatch.json +494 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-provider-deleted-silence.json +488 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-provider-rewritten-outcome.json +494 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-provider-scope-substitution.json +494 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-refusal-reason-resigned.json +339 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-runs-undercover.json +488 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-shrunk-delta-resigned.json +494 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-stripped-seed.json +492 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-table-digest-not-captured.json +174 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-tampered-cell.json +495 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-tampered-scalar.json +493 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-undercounted-uncertified.json +373 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-unknown-capture-law.json +168 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-unsigned.json +493 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/forgery-wrong-index-inclusion-proof.json +494 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/golden-anchored.json +489 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/golden-authenticated.json +356 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/golden-key-in-service.json +616 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/golden-refusal.json +333 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/golden-table-anchored.json +169 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/golden-tier-floor-refusal.json +121 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/golden-unknown-extra-member.json +493 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/golden-witness-unpinned.json +510 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/golden-witnessed.json +505 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/manifest.json +318 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/partial-no-input-data.json +244 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/partial-no-pinned-key.json +498 -0
- alelyon_os-0.1.0/alelyon/verify/vectors/partial-substrate-mismatch.json +494 -0
- alelyon_os-0.1.0/alelyon_os.egg-info/PKG-INFO +133 -0
- alelyon_os-0.1.0/alelyon_os.egg-info/SOURCES.txt +105 -0
- alelyon_os-0.1.0/alelyon_os.egg-info/dependency_links.txt +1 -0
- alelyon_os-0.1.0/alelyon_os.egg-info/entry_points.txt +2 -0
- alelyon_os-0.1.0/alelyon_os.egg-info/requires.txt +13 -0
- alelyon_os-0.1.0/alelyon_os.egg-info/top_level.txt +1 -0
- alelyon_os-0.1.0/pyproject.toml +128 -0
- alelyon_os-0.1.0/setup.cfg +4 -0
- alelyon_os-0.1.0/tests/test_conformance.py +59 -0
- alelyon_os-0.1.0/tests/test_hardening.py +304 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Alelyon
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: alelyon-os
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: The open Alelyon developer surface: CNE verification, exact coordinate registration, worktree coordination, uncertainty-propagating compute, and the API client.
|
|
5
|
+
Author: Alelyon
|
|
6
|
+
License-Expression: Apache-2.0 OR MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/TLace03/Alelyon-OS
|
|
8
|
+
Project-URL: Specification, https://github.com/TLace03/Alelyon-OS/blob/main/spec/cne-v0.md
|
|
9
|
+
Project-URL: Source, https://github.com/TLace03/Alelyon-OS
|
|
10
|
+
Keywords: transparency-log,attestation,merkle,ed25519,verifiable-computation,rfc6962,conformance,registration,morphometry,uncertainty-propagation
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Financial and Insurance Industry
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
23
|
+
Classifier: Topic :: Security :: Cryptography
|
|
24
|
+
Classifier: Typing :: Typed
|
|
25
|
+
Requires-Python: >=3.10
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
License-File: LICENSE-APACHE
|
|
28
|
+
License-File: LICENSE-MIT
|
|
29
|
+
Requires-Dist: cryptography>=42
|
|
30
|
+
Requires-Dist: numpy>=1.26
|
|
31
|
+
Requires-Dist: pandas>=2.0
|
|
32
|
+
Provides-Extra: sdk
|
|
33
|
+
Requires-Dist: httpx>=0.27; extra == "sdk"
|
|
34
|
+
Provides-Extra: stream
|
|
35
|
+
Requires-Dist: pyzmq>=25; extra == "stream"
|
|
36
|
+
Provides-Extra: dev
|
|
37
|
+
Requires-Dist: pytest>=7; extra == "dev"
|
|
38
|
+
Requires-Dist: httpx>=0.27; extra == "dev"
|
|
39
|
+
Dynamic: license-file
|
|
40
|
+
|
|
41
|
+
# alelyon-os
|
|
42
|
+
|
|
43
|
+
The open part of the Alelyon Deterministic Quantitative Computational Operating System,
|
|
44
|
+
as one installable distribution.
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
pip install alelyon-os
|
|
48
|
+
pip install "alelyon-os[sdk]" # additionally installs httpx, for the API client
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Source: <https://github.com/TLace03/Alelyon-OS>
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## What is in here
|
|
56
|
+
|
|
57
|
+
| Import | What it does |
|
|
58
|
+
|---|---|
|
|
59
|
+
| `alelyon.verify` | Verify a Certified Number Envelope by replay against your own copy of the inputs, under a key you pin out of band. Ships the `alelyon-verify` CLI, the normative spec, and the conformance vectors. |
|
|
60
|
+
| `alelyon.runtime.vector.lattice` | Exact coordinate registration: immutable coordinate contracts, exact target-to-source transforms with a declared loss/invertibility surface, canonical byte encoding with content commitments, a replay checker, and a signed Registration Certificate. |
|
|
61
|
+
| `alelyon.runtime.vector.lattice.morphometry` | Model Morphometry — a canonical `(block, module)` template for transformer models and an exact registration of a model's native axis order onto it. |
|
|
62
|
+
| `alelyon.runtime.common.worktree*` | Fleet coordination: what several agent sessions in one repository can each observe and declare, stored apart and never merged. |
|
|
63
|
+
| `alelyon.runtime.vector.compute` | A typed dependency DAG with Monte-Carlo uncertainty propagation and variance attribution. |
|
|
64
|
+
| `alelyon.platform.sdk` | Python client for the Alelyon read-only HTTP API. Requires the `sdk` extra. |
|
|
65
|
+
|
|
66
|
+
## Verify a receipt
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
alelyon-verify selftest # the bundled conformance suite; needs no network
|
|
70
|
+
alelyon-verify verify --envelope receipt.json --data your_extract.json \
|
|
71
|
+
--key <the issuer's public key, obtained OUT OF BAND>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The key must reach you by some path the receipt did not travel. Verifying an envelope
|
|
75
|
+
against a key embedded in that same envelope authenticates nothing.
|
|
76
|
+
|
|
77
|
+
**What a passing verification means.** The committed inputs were not revised after the
|
|
78
|
+
fact, and the number replays from them under the pinned key. It does **not** establish
|
|
79
|
+
that the inputs were true when captured: a producer who fabricates an extract at capture
|
|
80
|
+
signs a receipt that verifies perfectly. See `SPEC-cne-v0.md`, shipped inside the wheel.
|
|
81
|
+
|
|
82
|
+
## Things worth knowing before you rely on this
|
|
83
|
+
|
|
84
|
+
**Extras gate dependencies, not files.** Every install receives every module listed
|
|
85
|
+
above. `[sdk]` adds `httpx`; it does not change what code is on disk. There is no way to
|
|
86
|
+
install a subset.
|
|
87
|
+
|
|
88
|
+
**`import alelyon.platform.sdk` fails without the `sdk` extra.** `client.py` imports
|
|
89
|
+
`httpx` at module scope. This is the one deliberate sharp edge: someone installing this
|
|
90
|
+
to check a receipt should not also acquire an HTTP client.
|
|
91
|
+
|
|
92
|
+
**This wheel is not minimal, and does not claim to be.** Its predecessor `alelyon-verify`
|
|
93
|
+
was a wheel containing only the verifier, and said so. That is not true of `alelyon-os`.
|
|
94
|
+
What remains true, and is checked against the built artifact on every release, is the
|
|
95
|
+
*boundary*: the wheel contains exactly a reviewed allowlist of files and nothing else.
|
|
96
|
+
The capture engine, the history store, the GUI, the HTTP service, identity and auth, and
|
|
97
|
+
every signing key are outside it.
|
|
98
|
+
|
|
99
|
+
**Model Morphometry reads no weights.** It takes a deterministic inventory from a model
|
|
100
|
+
runtime's *declared* metadata and runs no forward pass, so it measures declared
|
|
101
|
+
architecture and storage precision — and nothing about learned behaviour.
|
|
102
|
+
|
|
103
|
+
**The fleet modules are observational.** A claim is not a lock, and a finding's body is
|
|
104
|
+
self-reported. Nothing in them verifies that another session's declaration is true.
|
|
105
|
+
|
|
106
|
+
## Migrating from the old packages
|
|
107
|
+
|
|
108
|
+
`alelyon-sdk`, `alelyon-verify` and `alelyon-mock` were separate distributions and have
|
|
109
|
+
been withdrawn from PyPI. Those project names are **no longer registered to Alelyon** and
|
|
110
|
+
may be claimed by anyone; do not install them.
|
|
111
|
+
|
|
112
|
+
| Was | Now |
|
|
113
|
+
|---|---|
|
|
114
|
+
| `pip install alelyon-verify` | `pip install alelyon-os` |
|
|
115
|
+
| `from alelyon_sdk import AlelyonClient` | `from alelyon.platform.sdk import AlelyonClient` |
|
|
116
|
+
| `alelyon-verify verify …` | unchanged — same console script |
|
|
117
|
+
|
|
118
|
+
The SDK's import path changed because the public copy had drifted from the source it was
|
|
119
|
+
generated from. It is now generated, so the two cannot diverge again.
|
|
120
|
+
|
|
121
|
+
## License
|
|
122
|
+
|
|
123
|
+
Licensed under either of
|
|
124
|
+
|
|
125
|
+
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
126
|
+
<https://www.apache.org/licenses/LICENSE-2.0>)
|
|
127
|
+
- MIT License ([LICENSE-MIT](LICENSE-MIT) or <https://opensource.org/licenses/MIT>)
|
|
128
|
+
|
|
129
|
+
at your option. Both texts ship inside the wheel.
|
|
130
|
+
|
|
131
|
+
Unless you explicitly state otherwise, any contribution intentionally submitted for
|
|
132
|
+
inclusion in this work by you shall be dual licensed as above, without any additional
|
|
133
|
+
terms or conditions.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# alelyon-os
|
|
2
|
+
|
|
3
|
+
The open part of the Alelyon Deterministic Quantitative Computational Operating System,
|
|
4
|
+
as one installable distribution.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
pip install alelyon-os
|
|
8
|
+
pip install "alelyon-os[sdk]" # additionally installs httpx, for the API client
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Source: <https://github.com/TLace03/Alelyon-OS>
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## What is in here
|
|
16
|
+
|
|
17
|
+
| Import | What it does |
|
|
18
|
+
|---|---|
|
|
19
|
+
| `alelyon.verify` | Verify a Certified Number Envelope by replay against your own copy of the inputs, under a key you pin out of band. Ships the `alelyon-verify` CLI, the normative spec, and the conformance vectors. |
|
|
20
|
+
| `alelyon.runtime.vector.lattice` | Exact coordinate registration: immutable coordinate contracts, exact target-to-source transforms with a declared loss/invertibility surface, canonical byte encoding with content commitments, a replay checker, and a signed Registration Certificate. |
|
|
21
|
+
| `alelyon.runtime.vector.lattice.morphometry` | Model Morphometry — a canonical `(block, module)` template for transformer models and an exact registration of a model's native axis order onto it. |
|
|
22
|
+
| `alelyon.runtime.common.worktree*` | Fleet coordination: what several agent sessions in one repository can each observe and declare, stored apart and never merged. |
|
|
23
|
+
| `alelyon.runtime.vector.compute` | A typed dependency DAG with Monte-Carlo uncertainty propagation and variance attribution. |
|
|
24
|
+
| `alelyon.platform.sdk` | Python client for the Alelyon read-only HTTP API. Requires the `sdk` extra. |
|
|
25
|
+
|
|
26
|
+
## Verify a receipt
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
alelyon-verify selftest # the bundled conformance suite; needs no network
|
|
30
|
+
alelyon-verify verify --envelope receipt.json --data your_extract.json \
|
|
31
|
+
--key <the issuer's public key, obtained OUT OF BAND>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The key must reach you by some path the receipt did not travel. Verifying an envelope
|
|
35
|
+
against a key embedded in that same envelope authenticates nothing.
|
|
36
|
+
|
|
37
|
+
**What a passing verification means.** The committed inputs were not revised after the
|
|
38
|
+
fact, and the number replays from them under the pinned key. It does **not** establish
|
|
39
|
+
that the inputs were true when captured: a producer who fabricates an extract at capture
|
|
40
|
+
signs a receipt that verifies perfectly. See `SPEC-cne-v0.md`, shipped inside the wheel.
|
|
41
|
+
|
|
42
|
+
## Things worth knowing before you rely on this
|
|
43
|
+
|
|
44
|
+
**Extras gate dependencies, not files.** Every install receives every module listed
|
|
45
|
+
above. `[sdk]` adds `httpx`; it does not change what code is on disk. There is no way to
|
|
46
|
+
install a subset.
|
|
47
|
+
|
|
48
|
+
**`import alelyon.platform.sdk` fails without the `sdk` extra.** `client.py` imports
|
|
49
|
+
`httpx` at module scope. This is the one deliberate sharp edge: someone installing this
|
|
50
|
+
to check a receipt should not also acquire an HTTP client.
|
|
51
|
+
|
|
52
|
+
**This wheel is not minimal, and does not claim to be.** Its predecessor `alelyon-verify`
|
|
53
|
+
was a wheel containing only the verifier, and said so. That is not true of `alelyon-os`.
|
|
54
|
+
What remains true, and is checked against the built artifact on every release, is the
|
|
55
|
+
*boundary*: the wheel contains exactly a reviewed allowlist of files and nothing else.
|
|
56
|
+
The capture engine, the history store, the GUI, the HTTP service, identity and auth, and
|
|
57
|
+
every signing key are outside it.
|
|
58
|
+
|
|
59
|
+
**Model Morphometry reads no weights.** It takes a deterministic inventory from a model
|
|
60
|
+
runtime's *declared* metadata and runs no forward pass, so it measures declared
|
|
61
|
+
architecture and storage precision — and nothing about learned behaviour.
|
|
62
|
+
|
|
63
|
+
**The fleet modules are observational.** A claim is not a lock, and a finding's body is
|
|
64
|
+
self-reported. Nothing in them verifies that another session's declaration is true.
|
|
65
|
+
|
|
66
|
+
## Migrating from the old packages
|
|
67
|
+
|
|
68
|
+
`alelyon-sdk`, `alelyon-verify` and `alelyon-mock` were separate distributions and have
|
|
69
|
+
been withdrawn from PyPI. Those project names are **no longer registered to Alelyon** and
|
|
70
|
+
may be claimed by anyone; do not install them.
|
|
71
|
+
|
|
72
|
+
| Was | Now |
|
|
73
|
+
|---|---|
|
|
74
|
+
| `pip install alelyon-verify` | `pip install alelyon-os` |
|
|
75
|
+
| `from alelyon_sdk import AlelyonClient` | `from alelyon.platform.sdk import AlelyonClient` |
|
|
76
|
+
| `alelyon-verify verify …` | unchanged — same console script |
|
|
77
|
+
|
|
78
|
+
The SDK's import path changed because the public copy had drifted from the source it was
|
|
79
|
+
generated from. It is now generated, so the two cannot diverge again.
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
Licensed under either of
|
|
84
|
+
|
|
85
|
+
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
86
|
+
<https://www.apache.org/licenses/LICENSE-2.0>)
|
|
87
|
+
- MIT License ([LICENSE-MIT](LICENSE-MIT) or <https://opensource.org/licenses/MIT>)
|
|
88
|
+
|
|
89
|
+
at your option. Both texts ship inside the wheel.
|
|
90
|
+
|
|
91
|
+
Unless you explicitly state otherwise, any contribution intentionally submitted for
|
|
92
|
+
inclusion in this work by you shall be dual licensed as above, without any additional
|
|
93
|
+
terms or conditions.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"""Alelyon — the single distribution namespace for all platform code.
|
|
2
|
+
|
|
3
|
+
Nesting every pillar under `alelyon.` resolves the top-level name collisions
|
|
4
|
+
(notably `platform` shadowing the stdlib, plus `vector`/`data` recurring across
|
|
5
|
+
the tree). Import paths are `alelyon.runtime.vector`, `alelyon.platform.telemetry`,
|
|
6
|
+
etc. See docs/ARCHITECTURE.md.
|
|
7
|
+
"""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Platform — deployment / auth / gateway / sdk / telemetry infrastructure."""
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""alelyon.platform.sdk — the client SDK for the Alelyon platform.
|
|
2
|
+
|
|
3
|
+
Two clients, neither of which imports anything server-side (safe on any machine
|
|
4
|
+
that can reach the API host / engine host):
|
|
5
|
+
|
|
6
|
+
- AlelyonClient — HTTP client for the read-only v1 API: certified market data
|
|
7
|
+
and its capture certificates, macro, the desk reads, analyst, screener,
|
|
8
|
+
certified answers, signed envelopes, engine status.
|
|
9
|
+
- EngineStream — ZMQ subscriber for a running engine's telemetry broadcast
|
|
10
|
+
(health / pnl / position / signal / order / feature / tick / news).
|
|
11
|
+
|
|
12
|
+
Verifying a signed envelope needs no engine and no key: use `alelyon.verify`,
|
|
13
|
+
which ships in the same `alelyon-os` distribution as this client.
|
|
14
|
+
|
|
15
|
+
Other languages: the API serves /openapi.json, so any OpenAPI generator can
|
|
16
|
+
produce a typed client.
|
|
17
|
+
"""
|
|
18
|
+
from __future__ import annotations
|
|
19
|
+
|
|
20
|
+
from alelyon.platform.sdk.client import (AlelyonClient, ApiError,
|
|
21
|
+
DEFAULT_BASE_URL, MAX_QUOTE_SYMBOLS)
|
|
22
|
+
from alelyon.platform.sdk.stream import EngineStream
|
|
23
|
+
|
|
24
|
+
__version__ = "0.1.0"
|
|
25
|
+
|
|
26
|
+
__all__ = ["AlelyonClient", "ApiError", "EngineStream", "DEFAULT_BASE_URL",
|
|
27
|
+
"MAX_QUOTE_SYMBOLS", "__version__"]
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"""Strict JSON number hooks shared by HTTP and streaming boundaries."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import math
|
|
6
|
+
|
|
7
|
+
MAX_JSON_NESTING = 128
|
|
8
|
+
MAX_JSON_INTEGER_DIGITS = 1024
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def reject_nonfinite_constant(value: str) -> None:
|
|
12
|
+
"""Reject JavaScript constants that RFC 8259 does not permit in JSON."""
|
|
13
|
+
raise ValueError(f"non-finite JSON constant: {value}")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def parse_finite_float(value: str) -> float:
|
|
17
|
+
"""Parse a JSON float while refusing syntax that overflows to infinity."""
|
|
18
|
+
parsed = float(value)
|
|
19
|
+
if not math.isfinite(parsed):
|
|
20
|
+
raise ValueError("JSON number is outside the finite float range")
|
|
21
|
+
return parsed
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def parse_bounded_int(value: str) -> int:
|
|
25
|
+
"""Parse an integer while bounding work on runtimes without a built-in cap."""
|
|
26
|
+
digits = value[1:] if value.startswith("-") else value
|
|
27
|
+
if len(digits) > MAX_JSON_INTEGER_DIGITS:
|
|
28
|
+
raise ValueError(
|
|
29
|
+
f"JSON integer exceeds {MAX_JSON_INTEGER_DIGITS} digits"
|
|
30
|
+
)
|
|
31
|
+
return int(value)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def reject_duplicate_pairs(pairs: list[tuple[str, object]]) -> dict[str, object]:
|
|
35
|
+
"""Build an object while refusing ambiguous duplicate member names."""
|
|
36
|
+
result: dict[str, object] = {}
|
|
37
|
+
for name, value in pairs:
|
|
38
|
+
if name in result:
|
|
39
|
+
raise ValueError(f"duplicate JSON object member: {name}")
|
|
40
|
+
result[name] = value
|
|
41
|
+
return result
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def json_nesting_within_limit(
|
|
45
|
+
payload: bytes | str, limit: int = MAX_JSON_NESTING
|
|
46
|
+
) -> bool:
|
|
47
|
+
"""Bound object/array nesting without being fooled by brackets in strings."""
|
|
48
|
+
raw = payload.encode("utf-8") if isinstance(payload, str) else payload
|
|
49
|
+
depth = 0
|
|
50
|
+
in_string = False
|
|
51
|
+
escaped = False
|
|
52
|
+
for value in raw:
|
|
53
|
+
if in_string:
|
|
54
|
+
if escaped:
|
|
55
|
+
escaped = False
|
|
56
|
+
elif value == 0x5C:
|
|
57
|
+
escaped = True
|
|
58
|
+
elif value == 0x22:
|
|
59
|
+
in_string = False
|
|
60
|
+
continue
|
|
61
|
+
if value == 0x22:
|
|
62
|
+
in_string = True
|
|
63
|
+
elif value in (0x5B, 0x7B):
|
|
64
|
+
depth += 1
|
|
65
|
+
if depth > limit:
|
|
66
|
+
return False
|
|
67
|
+
elif value in (0x5D, 0x7D):
|
|
68
|
+
depth = max(0, depth - 1)
|
|
69
|
+
return True
|