aaax 0.0.1a0__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.
- aaax-0.0.1a0/LICENSE +201 -0
- aaax-0.0.1a0/MANIFEST.in +7 -0
- aaax-0.0.1a0/PKG-INFO +160 -0
- aaax-0.0.1a0/README.md +117 -0
- aaax-0.0.1a0/aaax/__init__.py +20 -0
- aaax-0.0.1a0/aaax/__main__.py +5 -0
- aaax-0.0.1a0/aaax/_vendor.py +16 -0
- aaax-0.0.1a0/aaax/action_gate.py +77 -0
- aaax-0.0.1a0/aaax/bootstrap.py +13 -0
- aaax-0.0.1a0/aaax/capability.py +125 -0
- aaax-0.0.1a0/aaax/cli.py +13 -0
- aaax-0.0.1a0/aaax/cli_kernel.py +71 -0
- aaax-0.0.1a0/aaax/config.py +52 -0
- aaax-0.0.1a0/aaax/constellation.py +84 -0
- aaax-0.0.1a0/aaax/kernel.py +291 -0
- aaax-0.0.1a0/aaax/libos/__init__.py +5 -0
- aaax-0.0.1a0/aaax/libos/action_mixin.py +27 -0
- aaax-0.0.1a0/aaax/libos/bridge.py +51 -0
- aaax-0.0.1a0/aaax/libos/capability_mixin.py +23 -0
- aaax-0.0.1a0/aaax/lifecycle.py +89 -0
- aaax-0.0.1a0/aaax/module_loader.py +115 -0
- aaax-0.0.1a0/aaax/policy.py +123 -0
- aaax-0.0.1a0/aaax/protocols/__init__.py +28 -0
- aaax-0.0.1a0/aaax/protocols/action.py +36 -0
- aaax-0.0.1a0/aaax/protocols/capability.py +28 -0
- aaax-0.0.1a0/aaax/protocols/lifecycle.py +22 -0
- aaax-0.0.1a0/aaax/protocols/module.py +26 -0
- aaax-0.0.1a0/aaax.egg-info/PKG-INFO +160 -0
- aaax-0.0.1a0/aaax.egg-info/SOURCES.txt +65 -0
- aaax-0.0.1a0/aaax.egg-info/dependency_links.txt +1 -0
- aaax-0.0.1a0/aaax.egg-info/entry_points.txt +2 -0
- aaax-0.0.1a0/aaax.egg-info/requires.txt +20 -0
- aaax-0.0.1a0/aaax.egg-info/top_level.txt +1 -0
- aaax-0.0.1a0/aaax.toml.example +21 -0
- aaax-0.0.1a0/docs/CNAME +1 -0
- aaax-0.0.1a0/docs/architecture/framework-boundaries.md +57 -0
- aaax-0.0.1a0/docs/architecture/index.md +7 -0
- aaax-0.0.1a0/docs/architecture/kernel-functions.md +69 -0
- aaax-0.0.1a0/docs/architecture/overview.md +51 -0
- aaax-0.0.1a0/docs/assets/aaax-logo-black.png +0 -0
- aaax-0.0.1a0/docs/assets/aaax-logo-text-black.png +0 -0
- aaax-0.0.1a0/docs/assets/aaax-logo-text-white.png +0 -0
- aaax-0.0.1a0/docs/assets/aaax-logo-white.png +0 -0
- aaax-0.0.1a0/docs/core/config.md +79 -0
- aaax-0.0.1a0/docs/core/governance.md +57 -0
- aaax-0.0.1a0/docs/core/index.md +8 -0
- aaax-0.0.1a0/docs/core/libos.md +43 -0
- aaax-0.0.1a0/docs/core/modules.md +64 -0
- aaax-0.0.1a0/docs/getting-started.md +109 -0
- aaax-0.0.1a0/docs/index.md +112 -0
- aaax-0.0.1a0/docs/reference/api.md +23 -0
- aaax-0.0.1a0/docs/stylesheets/custom.css +110 -0
- aaax-0.0.1a0/docs/tutorials/01-first-kernel.md +79 -0
- aaax-0.0.1a0/docs/tutorials/02-expose-public-channels.md +66 -0
- aaax-0.0.1a0/docs/tutorials/index.md +6 -0
- aaax-0.0.1a0/examples/README.md +48 -0
- aaax-0.0.1a0/examples/capability-roundtrip/README.md +34 -0
- aaax-0.0.1a0/examples/capability-roundtrip/run_demo.py +70 -0
- aaax-0.0.1a0/examples/minimal-kernel/README.md +54 -0
- aaax-0.0.1a0/examples/minimal-kernel/aaax.toml +21 -0
- aaax-0.0.1a0/examples/minimal-kernel/run_once.py +29 -0
- aaax-0.0.1a0/examples/public-channels/README.md +51 -0
- aaax-0.0.1a0/examples/public-channels/aaax.toml +14 -0
- aaax-0.0.1a0/examples/public-channels/run_server.py +60 -0
- aaax-0.0.1a0/mkdocs.yml +98 -0
- aaax-0.0.1a0/pyproject.toml +75 -0
- aaax-0.0.1a0/setup.cfg +4 -0
aaax-0.0.1a0/LICENSE
ADDED
|
@@ -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.
|
aaax-0.0.1a0/MANIFEST.in
ADDED
aaax-0.0.1a0/PKG-INFO
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aaax
|
|
3
|
+
Version: 0.0.1a0
|
|
4
|
+
Summary: Advanced Autonomous Agentic ICS (Information and Computing Services) kernel
|
|
5
|
+
Author: Junyan Cheng
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://aaax.one
|
|
8
|
+
Project-URL: Documentation, https://aaax.one
|
|
9
|
+
Project-URL: Repository, https://github.com/Productive-Superintelligence/aaax
|
|
10
|
+
Project-URL: Issues, https://github.com/Productive-Superintelligence/aaax/issues
|
|
11
|
+
Keywords: agents,agentic systems,multi-agent,governance,kernel,sssn,lllm
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
22
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
23
|
+
Requires-Python: >=3.10
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Requires-Dist: click>=8.0
|
|
27
|
+
Requires-Dist: lllm-core>=0.1.1
|
|
28
|
+
Requires-Dist: pydantic>=2.0
|
|
29
|
+
Requires-Dist: sssn>=0.0.1
|
|
30
|
+
Requires-Dist: tomli>=2.0.1; python_version < "3.11"
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: build>=1.2.2; extra == "dev"
|
|
33
|
+
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
|
34
|
+
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
|
|
35
|
+
Requires-Dist: twine>=5.1.1; extra == "dev"
|
|
36
|
+
Provides-Extra: docs
|
|
37
|
+
Requires-Dist: mkdocs<2.0,>=1.6; extra == "docs"
|
|
38
|
+
Requires-Dist: mkdocs-autorefs<2.0,>=1.0; extra == "docs"
|
|
39
|
+
Requires-Dist: mkdocs-material<10.0,>=9.7; extra == "docs"
|
|
40
|
+
Requires-Dist: mkdocstrings[python]<2.0,>=0.26; extra == "docs"
|
|
41
|
+
Requires-Dist: pymdown-extensions<11.0,>=10.0; extra == "docs"
|
|
42
|
+
Dynamic: license-file
|
|
43
|
+
|
|
44
|
+
<div align="center">
|
|
45
|
+
<!-- <img src="https://raw.githubusercontent.com/Productive-Superintelligence/aaax/main/docs/assets/aaax-logo-text-black.png" alt="AAAX Logo" width="600"/> -->
|
|
46
|
+
<img src="docs/assets/aaax-logo-text-black.png" alt="AAAX Logo" width="600" />
|
|
47
|
+
<br>
|
|
48
|
+
<h1>Advanced Autonomous Agentic ICS (AAAX)</h1>
|
|
49
|
+
<h4>Exokernel for agentic information and computing services.</h4>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<p align="center">
|
|
53
|
+
<a href="https://aaax.one">
|
|
54
|
+
<img alt="Docs" src="https://img.shields.io/badge/docs-aaax.one-black">
|
|
55
|
+
</a>
|
|
56
|
+
<a href="https://pypi.org/project/aaax/">
|
|
57
|
+
<img alt="PyPI" src="https://img.shields.io/pypi/v/aaax.svg">
|
|
58
|
+
</a>
|
|
59
|
+
<a href="https://github.com/Productive-Superintelligence/aaax/blob/main/LICENSE">
|
|
60
|
+
<img alt="License" src="https://img.shields.io/github/license/Productive-Superintelligence/aaax">
|
|
61
|
+
</a>
|
|
62
|
+
</p>
|
|
63
|
+
|
|
64
|
+
AAAX stands for **Advanced Autonomous Agentic ICS** — **Information and Computing Services**. It sits above `sssn` and `lllm` and gives a shell-like control plane inspired by Exokernel and ROS:
|
|
65
|
+
|
|
66
|
+
- dock and wire modules into a governed constellation
|
|
67
|
+
- issue and revoke capabilities for mediated resources
|
|
68
|
+
- authorize side effects through an action gate
|
|
69
|
+
- manage lifecycle events like revoke, pause, resume, and drain.
|
|
70
|
+
|
|
71
|
+
The current codebase is the first kernel slice: bootstrap, governance channels, policy engine, module loading, lifecycle control, and a minimal LLLM bridge are implemented and tested.
|
|
72
|
+
|
|
73
|
+
## Install
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
pip install aaax
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
AAAX targets Python 3.10+ and installs its framework dependencies through PyPI:
|
|
80
|
+
|
|
81
|
+
- `sssn` for the network substrate
|
|
82
|
+
- `lllm-core` for the default LibOS bridge
|
|
83
|
+
|
|
84
|
+
## Quick Start
|
|
85
|
+
|
|
86
|
+
Create a minimal kernel config:
|
|
87
|
+
|
|
88
|
+
```toml
|
|
89
|
+
[aaax]
|
|
90
|
+
id = "aaax-main"
|
|
91
|
+
name = "AAAX Kernel"
|
|
92
|
+
policy = "default"
|
|
93
|
+
|
|
94
|
+
[aaax.libos]
|
|
95
|
+
name = "lllm"
|
|
96
|
+
strict_boot = true
|
|
97
|
+
discover_shared_packages = false
|
|
98
|
+
|
|
99
|
+
[aaax.network]
|
|
100
|
+
publish = false
|
|
101
|
+
host = "0.0.0.0"
|
|
102
|
+
port = 8100
|
|
103
|
+
|
|
104
|
+
[[aaax.modules]]
|
|
105
|
+
id = "example-agent"
|
|
106
|
+
framework = "custom"
|
|
107
|
+
channels = []
|
|
108
|
+
executors = []
|
|
109
|
+
remote_channels = []
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Launch the kernel:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
aaax launch aaax.toml
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Or from Python:
|
|
119
|
+
|
|
120
|
+
```python
|
|
121
|
+
import asyncio
|
|
122
|
+
|
|
123
|
+
from aaax import AAAXConfig, bootstrap_kernel
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
async def main() -> None:
|
|
127
|
+
config = AAAXConfig.from_file("aaax.toml")
|
|
128
|
+
kernel = await bootstrap_kernel(config, start_channels=True)
|
|
129
|
+
await kernel.step()
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
asyncio.run(main())
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Architecture Stack
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
- `SSSN` the transport and topology substrate.
|
|
139
|
+
- `LLLM` the LibOS and package/runtime layer.
|
|
140
|
+
- `AAAX` owns governance, module trust, capability issuance, action authorization, and lifecycle.
|
|
141
|
+
|
|
142
|
+
## Project Layout
|
|
143
|
+
|
|
144
|
+
```text
|
|
145
|
+
aaax/ Python package
|
|
146
|
+
docs/ MkDocs site for aaax.one
|
|
147
|
+
examples/ Runnable AAAX examples with per-example READMEs
|
|
148
|
+
notes/ design and implementation notes
|
|
149
|
+
sssn/ vendored local framework source for development
|
|
150
|
+
lllm/ vendored local framework source for development
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Documentation
|
|
154
|
+
|
|
155
|
+
Full documentation is published at [aaax.one](https://aaax.one).
|
|
156
|
+
|
|
157
|
+
- Getting started: installation, config, and first launch
|
|
158
|
+
- Architecture: kernel functions, framework boundaries, Productive Suite positioning
|
|
159
|
+
- Core reference: config, governance, module loading, and LibOS bridge
|
|
160
|
+
- API reference: public AAAX Python entry points
|
aaax-0.0.1a0/README.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<!-- <img src="https://raw.githubusercontent.com/Productive-Superintelligence/aaax/main/docs/assets/aaax-logo-text-black.png" alt="AAAX Logo" width="600"/> -->
|
|
3
|
+
<img src="docs/assets/aaax-logo-text-black.png" alt="AAAX Logo" width="600" />
|
|
4
|
+
<br>
|
|
5
|
+
<h1>Advanced Autonomous Agentic ICS (AAAX)</h1>
|
|
6
|
+
<h4>Exokernel for agentic information and computing services.</h4>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://aaax.one">
|
|
11
|
+
<img alt="Docs" src="https://img.shields.io/badge/docs-aaax.one-black">
|
|
12
|
+
</a>
|
|
13
|
+
<a href="https://pypi.org/project/aaax/">
|
|
14
|
+
<img alt="PyPI" src="https://img.shields.io/pypi/v/aaax.svg">
|
|
15
|
+
</a>
|
|
16
|
+
<a href="https://github.com/Productive-Superintelligence/aaax/blob/main/LICENSE">
|
|
17
|
+
<img alt="License" src="https://img.shields.io/github/license/Productive-Superintelligence/aaax">
|
|
18
|
+
</a>
|
|
19
|
+
</p>
|
|
20
|
+
|
|
21
|
+
AAAX stands for **Advanced Autonomous Agentic ICS** — **Information and Computing Services**. It sits above `sssn` and `lllm` and gives a shell-like control plane inspired by Exokernel and ROS:
|
|
22
|
+
|
|
23
|
+
- dock and wire modules into a governed constellation
|
|
24
|
+
- issue and revoke capabilities for mediated resources
|
|
25
|
+
- authorize side effects through an action gate
|
|
26
|
+
- manage lifecycle events like revoke, pause, resume, and drain.
|
|
27
|
+
|
|
28
|
+
The current codebase is the first kernel slice: bootstrap, governance channels, policy engine, module loading, lifecycle control, and a minimal LLLM bridge are implemented and tested.
|
|
29
|
+
|
|
30
|
+
## Install
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pip install aaax
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
AAAX targets Python 3.10+ and installs its framework dependencies through PyPI:
|
|
37
|
+
|
|
38
|
+
- `sssn` for the network substrate
|
|
39
|
+
- `lllm-core` for the default LibOS bridge
|
|
40
|
+
|
|
41
|
+
## Quick Start
|
|
42
|
+
|
|
43
|
+
Create a minimal kernel config:
|
|
44
|
+
|
|
45
|
+
```toml
|
|
46
|
+
[aaax]
|
|
47
|
+
id = "aaax-main"
|
|
48
|
+
name = "AAAX Kernel"
|
|
49
|
+
policy = "default"
|
|
50
|
+
|
|
51
|
+
[aaax.libos]
|
|
52
|
+
name = "lllm"
|
|
53
|
+
strict_boot = true
|
|
54
|
+
discover_shared_packages = false
|
|
55
|
+
|
|
56
|
+
[aaax.network]
|
|
57
|
+
publish = false
|
|
58
|
+
host = "0.0.0.0"
|
|
59
|
+
port = 8100
|
|
60
|
+
|
|
61
|
+
[[aaax.modules]]
|
|
62
|
+
id = "example-agent"
|
|
63
|
+
framework = "custom"
|
|
64
|
+
channels = []
|
|
65
|
+
executors = []
|
|
66
|
+
remote_channels = []
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Launch the kernel:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
aaax launch aaax.toml
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Or from Python:
|
|
76
|
+
|
|
77
|
+
```python
|
|
78
|
+
import asyncio
|
|
79
|
+
|
|
80
|
+
from aaax import AAAXConfig, bootstrap_kernel
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
async def main() -> None:
|
|
84
|
+
config = AAAXConfig.from_file("aaax.toml")
|
|
85
|
+
kernel = await bootstrap_kernel(config, start_channels=True)
|
|
86
|
+
await kernel.step()
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
asyncio.run(main())
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Architecture Stack
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
- `SSSN` the transport and topology substrate.
|
|
96
|
+
- `LLLM` the LibOS and package/runtime layer.
|
|
97
|
+
- `AAAX` owns governance, module trust, capability issuance, action authorization, and lifecycle.
|
|
98
|
+
|
|
99
|
+
## Project Layout
|
|
100
|
+
|
|
101
|
+
```text
|
|
102
|
+
aaax/ Python package
|
|
103
|
+
docs/ MkDocs site for aaax.one
|
|
104
|
+
examples/ Runnable AAAX examples with per-example READMEs
|
|
105
|
+
notes/ design and implementation notes
|
|
106
|
+
sssn/ vendored local framework source for development
|
|
107
|
+
lllm/ vendored local framework source for development
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Documentation
|
|
111
|
+
|
|
112
|
+
Full documentation is published at [aaax.one](https://aaax.one).
|
|
113
|
+
|
|
114
|
+
- Getting started: installation, config, and first launch
|
|
115
|
+
- Architecture: kernel functions, framework boundaries, Productive Suite positioning
|
|
116
|
+
- Core reference: config, governance, module loading, and LibOS bridge
|
|
117
|
+
- API reference: public AAAX Python entry points
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
2
|
+
|
|
3
|
+
from aaax.bootstrap import bootstrap_kernel
|
|
4
|
+
from aaax.config import AAAXConfig, LibOSConfig, ModuleConfig, NetworkConfig
|
|
5
|
+
from aaax.kernel import AAAXKernel
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
__version__ = version("aaax")
|
|
9
|
+
except PackageNotFoundError:
|
|
10
|
+
__version__ = "0.1.0"
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"__version__",
|
|
14
|
+
"AAAXConfig",
|
|
15
|
+
"LibOSConfig",
|
|
16
|
+
"ModuleConfig",
|
|
17
|
+
"NetworkConfig",
|
|
18
|
+
"AAAXKernel",
|
|
19
|
+
"bootstrap_kernel",
|
|
20
|
+
]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def ensure_vendor_paths() -> None:
|
|
8
|
+
"""Prefer vendored local framework repos when they exist in the workspace."""
|
|
9
|
+
root = Path(__file__).resolve().parents[1]
|
|
10
|
+
for name in ("sssn", "lllm"):
|
|
11
|
+
candidate = root / name
|
|
12
|
+
if not candidate.is_dir():
|
|
13
|
+
continue
|
|
14
|
+
path = str(candidate)
|
|
15
|
+
if path not in sys.path:
|
|
16
|
+
sys.path.insert(0, path)
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from aaax.capability import CapabilityManager
|
|
6
|
+
from aaax.policy import PolicyEngine
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def _message_content_data(msg) -> dict[str, Any]:
|
|
10
|
+
content = getattr(msg, "content", None)
|
|
11
|
+
data = getattr(content, "data", None)
|
|
12
|
+
return data if isinstance(data, dict) else {}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _requester_id(msg, payload: dict[str, Any]) -> str:
|
|
16
|
+
return str(payload.get("from") or payload.get("system_id") or msg.sender_id)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class ActionGate:
|
|
20
|
+
"""Authorize and classify side-effecting operations."""
|
|
21
|
+
|
|
22
|
+
async def process(
|
|
23
|
+
self,
|
|
24
|
+
msg,
|
|
25
|
+
policy: PolicyEngine,
|
|
26
|
+
capabilities: CapabilityManager,
|
|
27
|
+
) -> dict[str, Any]:
|
|
28
|
+
content = _message_content_data(msg)
|
|
29
|
+
system_id = _requester_id(msg, content)
|
|
30
|
+
action = str(content["action"])
|
|
31
|
+
executor = str(content["executor"])
|
|
32
|
+
target = str(content["target"])
|
|
33
|
+
payload = content.get("payload", {})
|
|
34
|
+
cap_token = content.get("capability")
|
|
35
|
+
risk_level = str(content.get("risk_level", "medium"))
|
|
36
|
+
|
|
37
|
+
if not cap_token:
|
|
38
|
+
return {
|
|
39
|
+
"type": "action_denied",
|
|
40
|
+
"request_id": msg.id,
|
|
41
|
+
"reason": "Missing execute capability token",
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if not capabilities.validate(system_id, cap_token, executor, "execute"):
|
|
45
|
+
return {
|
|
46
|
+
"type": "action_denied",
|
|
47
|
+
"request_id": msg.id,
|
|
48
|
+
"reason": "Invalid or expired capability token",
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
decision = await policy.evaluate_action(
|
|
52
|
+
system_id=system_id,
|
|
53
|
+
action=action,
|
|
54
|
+
executor=executor,
|
|
55
|
+
target=target,
|
|
56
|
+
payload=payload,
|
|
57
|
+
risk_level=risk_level,
|
|
58
|
+
)
|
|
59
|
+
if decision.escalate:
|
|
60
|
+
return {
|
|
61
|
+
"type": "action_escalated",
|
|
62
|
+
"request_id": msg.id,
|
|
63
|
+
"reason": decision.reason,
|
|
64
|
+
"escalated_to": decision.escalate_to,
|
|
65
|
+
}
|
|
66
|
+
if not decision.allowed:
|
|
67
|
+
return {
|
|
68
|
+
"type": "action_denied",
|
|
69
|
+
"request_id": msg.id,
|
|
70
|
+
"reason": decision.reason,
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
"type": "action_approved",
|
|
74
|
+
"request_id": msg.id,
|
|
75
|
+
"executor": executor,
|
|
76
|
+
"modified_payload": decision.modified_payload or payload,
|
|
77
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from aaax.config import AAAXConfig
|
|
4
|
+
from aaax.kernel import AAAXKernel
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
async def bootstrap_kernel(config: AAAXConfig, *, start_channels: bool = False) -> AAAXKernel:
|
|
8
|
+
kernel = AAAXKernel(config)
|
|
9
|
+
await kernel.setup()
|
|
10
|
+
kernel._setup_done = True
|
|
11
|
+
if start_channels:
|
|
12
|
+
await kernel.start_owned_channels()
|
|
13
|
+
return kernel
|