shunollo 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.
Files changed (109) hide show
  1. shunollo-0.1.0/LICENSE +177 -0
  2. shunollo-0.1.0/MANIFEST.in +7 -0
  3. shunollo-0.1.0/PKG-INFO +118 -0
  4. shunollo-0.1.0/README.md +86 -0
  5. shunollo-0.1.0/THE_SHUNOLLO_CODEX.md +115 -0
  6. shunollo-0.1.0/pyproject.toml +47 -0
  7. shunollo-0.1.0/setup.cfg +4 -0
  8. shunollo-0.1.0/shunollo.egg-info/PKG-INFO +118 -0
  9. shunollo-0.1.0/shunollo.egg-info/SOURCES.txt +107 -0
  10. shunollo-0.1.0/shunollo.egg-info/dependency_links.txt +1 -0
  11. shunollo-0.1.0/shunollo.egg-info/requires.txt +16 -0
  12. shunollo-0.1.0/shunollo.egg-info/top_level.txt +2 -0
  13. shunollo-0.1.0/shunollo_core/LICENSE +31 -0
  14. shunollo-0.1.0/shunollo_core/__init__.py +1 -0
  15. shunollo-0.1.0/shunollo_core/actions/__init__.py +2 -0
  16. shunollo-0.1.0/shunollo_core/actions/motor_cortex.py +68 -0
  17. shunollo-0.1.0/shunollo_core/agents/__init__.py +2 -0
  18. shunollo-0.1.0/shunollo_core/agents/base_agent.py +197 -0
  19. shunollo-0.1.0/shunollo_core/agents/prompt_builder.py +27 -0
  20. shunollo-0.1.0/shunollo_core/api.py +41 -0
  21. shunollo-0.1.0/shunollo_core/brain/__init__.py +0 -0
  22. shunollo-0.1.0/shunollo_core/brain/autoencoder.py +162 -0
  23. shunollo-0.1.0/shunollo_core/brain/neural_net.py +159 -0
  24. shunollo-0.1.0/shunollo_core/cli.py +28 -0
  25. shunollo-0.1.0/shunollo_core/cognition/brocas_area.py +49 -0
  26. shunollo-0.1.0/shunollo_core/cognition/wernickes_area.py +60 -0
  27. shunollo-0.1.0/shunollo_core/config.py +124 -0
  28. shunollo-0.1.0/shunollo_core/configs/signature_rules.yml +29 -0
  29. shunollo-0.1.0/shunollo_core/connectors/base_connector.py +30 -0
  30. shunollo-0.1.0/shunollo_core/data/codon_memory.json +1048 -0
  31. shunollo-0.1.0/shunollo_core/data/experiments/test_01_reflex.pcap +0 -0
  32. shunollo-0.1.0/shunollo_core/data/experiments/test_02_rhythm.pcap +0 -0
  33. shunollo-0.1.0/shunollo_core/data/experiments/test_03_texture.pcap +0 -0
  34. shunollo-0.1.0/shunollo_core/data/experiments/test_04_vigilance.pcap +0 -0
  35. shunollo-0.1.0/shunollo_core/data/experiments/test_05_overload.pcap +0 -0
  36. shunollo-0.1.0/shunollo_core/data/perception_cache/episodic_memory.jsonl +2 -0
  37. shunollo-0.1.0/shunollo_core/data/perception_cache/event_visual_2293.ppm +67 -0
  38. shunollo-0.1.0/shunollo_core/data/perception_cache/event_visual_2595.ppm +67 -0
  39. shunollo-0.1.0/shunollo_core/data/perception_cache/event_visual_3141.ppm +67 -0
  40. shunollo-0.1.0/shunollo_core/data/perception_cache/event_visual_4297.ppm +67 -0
  41. shunollo-0.1.0/shunollo_core/data/perception_cache/event_visual_4314.ppm +67 -0
  42. shunollo-0.1.0/shunollo_core/data/perception_cache/event_visual_4947.ppm +67 -0
  43. shunollo-0.1.0/shunollo_core/data/perception_cache/event_visual_5009.ppm +67 -0
  44. shunollo-0.1.0/shunollo_core/data/perception_cache/event_visual_5651.ppm +67 -0
  45. shunollo-0.1.0/shunollo_core/data/perception_cache/event_visual_6735.ppm +67 -0
  46. shunollo-0.1.0/shunollo_core/data/perception_cache/event_visual_9670.ppm +67 -0
  47. shunollo-0.1.0/shunollo_core/data/perception_cache/event_visual_9716.ppm +67 -0
  48. shunollo-0.1.0/shunollo_core/data/perception_cache/event_visual_9761.ppm +67 -0
  49. shunollo-0.1.0/shunollo_core/data/shunollo.sqlite +0 -0
  50. shunollo-0.1.0/shunollo_core/data/shunollo.sqlite-shm +0 -0
  51. shunollo-0.1.0/shunollo_core/data/shunollo.sqlite-wal +0 -0
  52. shunollo-0.1.0/shunollo_core/examples/example_finance.py +70 -0
  53. shunollo-0.1.0/shunollo_core/examples/example_iot.py +73 -0
  54. shunollo-0.1.0/shunollo_core/feedback/__init__.py +1 -0
  55. shunollo-0.1.0/shunollo_core/feedback/agent_feedback.jsonl +3 -0
  56. shunollo-0.1.0/shunollo_core/feedback/agent_feedback.py +6 -0
  57. shunollo-0.1.0/shunollo_core/feedback/audit_log.py +17 -0
  58. shunollo-0.1.0/shunollo_core/feedback/feedback_store.py +13 -0
  59. shunollo-0.1.0/shunollo_core/feedback/feedback_tracker.py +16 -0
  60. shunollo-0.1.0/shunollo_core/feedback/score_utils.py +10 -0
  61. shunollo-0.1.0/shunollo_core/feedback/scoring.py +18 -0
  62. shunollo-0.1.0/shunollo_core/feedback/training_loop.py +18 -0
  63. shunollo-0.1.0/shunollo_core/governance/training_governor.py +76 -0
  64. shunollo-0.1.0/shunollo_core/interfaces.py +20 -0
  65. shunollo-0.1.0/shunollo_core/learning/synaptic_plasticity.py +216 -0
  66. shunollo-0.1.0/shunollo_core/memory/__init__.py +1 -0
  67. shunollo-0.1.0/shunollo_core/memory/base.py +128 -0
  68. shunollo-0.1.0/shunollo_core/memory/hippocampus.py +69 -0
  69. shunollo-0.1.0/shunollo_core/models.py +81 -0
  70. shunollo-0.1.0/shunollo_core/motor/motor_cortex.py +52 -0
  71. shunollo-0.1.0/shunollo_core/perception/agent_perception.py +77 -0
  72. shunollo-0.1.0/shunollo_core/perception/auditory_cortex.py +89 -0
  73. shunollo-0.1.0/shunollo_core/perception/codon_builder.py +96 -0
  74. shunollo-0.1.0/shunollo_core/perception/codon_memory.py +79 -0
  75. shunollo-0.1.0/shunollo_core/perception/confidence.py +31 -0
  76. shunollo-0.1.0/shunollo_core/perception/generic_transducer.py +162 -0
  77. shunollo-0.1.0/shunollo_core/perception/glossary.py +46 -0
  78. shunollo-0.1.0/shunollo_core/perception/gustatory_cortex.py +54 -0
  79. shunollo-0.1.0/shunollo_core/perception/haptic_driver.py +74 -0
  80. shunollo-0.1.0/shunollo_core/perception/meta_gene_layer.py +81 -0
  81. shunollo-0.1.0/shunollo_core/perception/mirrorlink.py +77 -0
  82. shunollo-0.1.0/shunollo_core/perception/nervous_system.py +214 -0
  83. shunollo-0.1.0/shunollo_core/perception/olfactory_bulb.py +96 -0
  84. shunollo-0.1.0/shunollo_core/perception/parietal_cortex.py +34 -0
  85. shunollo-0.1.0/shunollo_core/perception/percept_genome.py +69 -0
  86. shunollo-0.1.0/shunollo_core/perception/perception_buffer.py +36 -0
  87. shunollo-0.1.0/shunollo_core/perception/perception_bus.py +30 -0
  88. shunollo-0.1.0/shunollo_core/perception/preprocessor.py +69 -0
  89. shunollo-0.1.0/shunollo_core/perception/stimulus.py +25 -0
  90. shunollo-0.1.0/shunollo_core/perception/synaptic_tuner.py +64 -0
  91. shunollo-0.1.0/shunollo_core/perception/tuning_loop.py +76 -0
  92. shunollo-0.1.0/shunollo_core/perception/visual_cortex.py +215 -0
  93. shunollo-0.1.0/shunollo_core/perception/vocal_cords.py +93 -0
  94. shunollo-0.1.0/shunollo_core/physics.py +373 -0
  95. shunollo-0.1.0/shunollo_core/processors/__init__.py +2 -0
  96. shunollo-0.1.0/shunollo_core/processors/perceptual_clusterer.py +173 -0
  97. shunollo-0.1.0/shunollo_core/processors/signature_mapper.py +73 -0
  98. shunollo-0.1.0/shunollo_core/processors/signature_rules.yaml +27 -0
  99. shunollo-0.1.0/shunollo_core/subcortex/ras.py +108 -0
  100. shunollo-0.1.0/shunollo_core/utils/rate_limiter.py +44 -0
  101. shunollo-0.1.0/shunollo_runtime/__init__.py +12 -0
  102. shunollo-0.1.0/shunollo_runtime/agents/__init__.py +4 -0
  103. shunollo-0.1.0/shunollo_runtime/agents/base_agent.py +151 -0
  104. shunollo-0.1.0/shunollo_runtime/interfaces/__init__.py +4 -0
  105. shunollo-0.1.0/shunollo_runtime/interfaces/thalamus.py +69 -0
  106. shunollo-0.1.0/shunollo_runtime/pyproject.toml +28 -0
  107. shunollo-0.1.0/shunollo_runtime/thalamus.py +115 -0
  108. shunollo-0.1.0/tests/test_neural_net.py +65 -0
  109. shunollo-0.1.0/tests/test_physics_sweep.py +90 -0
shunollo-0.1.0/LICENSE ADDED
@@ -0,0 +1,177 @@
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
108
+ must include a readable copy of the attribution notices
109
+ contained within such NOTICE file, excluding those notices
110
+ that do not pertain to any part of the Derivative Works,
111
+ in at least one of the following places: within a NOTICE text
112
+ file distributed as part of the Derivative Works; within the
113
+ Source form or documentation, if provided along with the
114
+ Derivative Works; or, within a display generated by the
115
+ Derivative Works, if and wherever such third-party notices
116
+ normally appear. The contents of the NOTICE file are for
117
+ informational purposes only and do not modify the License.
118
+ You may add Your own attribution notices within Derivative
119
+ Works that You distribute, alongside or as an addendum to
120
+ the NOTICE text from the Work, provided that such additional
121
+ attribution notices cannot be construed as modifying the
122
+ License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,7 @@
1
+ include LICENSE
2
+ include README.md
3
+ include THE_SHUNOLLO_CODEX.md
4
+ recursive-include shunollo_core *
5
+ recursive-include shunollo_runtime *
6
+ global-exclude *.pyc
7
+ global-exclude __pycache__
@@ -0,0 +1,118 @@
1
+ Metadata-Version: 2.4
2
+ Name: shunollo
3
+ Version: 0.1.0
4
+ Summary: Biomimetic Physics Engine for Cognitive Architectures
5
+ Author-email: Austin <austin@shunollo.org>
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/shunollo/shunollo
8
+ Project-URL: Bug Tracker, https://github.com/shunollo/shunollo/issues
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Topic :: Scientific/Engineering :: Physics
13
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
14
+ Requires-Python: >=3.9
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: numpy>=1.20.0
18
+ Requires-Dist: scipy>=1.7.0
19
+ Requires-Dist: fastapi>=0.68.0
20
+ Requires-Dist: uvicorn>=0.15.0
21
+ Requires-Dist: sqlalchemy>=1.4.0
22
+ Requires-Dist: pydantic>=1.8.0
23
+ Requires-Dist: pillow>=8.0.0
24
+ Requires-Dist: pyyaml>=5.0
25
+ Provides-Extra: runtime
26
+ Requires-Dist: redis>=4.0.0; extra == "runtime"
27
+ Provides-Extra: dev
28
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
29
+ Requires-Dist: black; extra == "dev"
30
+ Requires-Dist: ruff; extra == "dev"
31
+ Dynamic: license-file
32
+
33
+ # Shunollo - The Biomimetic Physics Engine
34
+
35
+ **A Universal Physics Engine for Cognitive Architectures**
36
+
37
+ Shunollo provides a pure, agnostic physics layer for translating any data stream into sensory qualia - enabling AI systems to "feel" their environment through entropy, roughness, viscosity, and other universal metrics.
38
+
39
+ > [!IMPORTANT]
40
+ > **Status**: Production Ready
41
+ > * **Physics**: Verified ($E=mv^{1.5}$)
42
+ > * **Neuroscience**: Verified (Homeostatic Plasticity)
43
+ > * **Ethics**: Verified (Safety Governor)
44
+ > * **Security**: Hardened (No Pickle, Numpy only)
45
+
46
+ ## 100% Open Source
47
+
48
+ Shunollo is fully open source under the Apache 2.0 license. There is no "Enterprise Edition" or paid tier of the library itself. You get **everything**.
49
+
50
+ **Build whatever you want.** That's why we made this.
51
+
52
+ ## Architecture
53
+
54
+ ```
55
+ shunollo/
56
+ ├── shunollo_core/ # Pure Physics (Math only, zero dependencies)
57
+ └── shunollo_runtime/ # Nervous System (Redis, Agents, Thalamus)
58
+ ```
59
+
60
+ ```mermaid
61
+ graph LR
62
+ subgraph Shunollo Core
63
+ A[Physics Engine] --> B[Somatic Vector]
64
+ end
65
+
66
+ subgraph Shunollo Runtime
67
+ B --> C((Thalamus Bus))
68
+ C --> D[Neural Cortex]
69
+ C --> E[Reflex Agent]
70
+ end
71
+
72
+ D & E --> F[Decision]
73
+ ```
74
+
75
+ ## Installation
76
+
77
+ ```bash
78
+ pip install shunollo
79
+ ```
80
+
81
+ ## Quick Start
82
+
83
+ ```python
84
+ from shunollo_core.physics import calculate_entropy, calculate_roughness
85
+ from shunollo_runtime import RedisThalamus, BaseAgent
86
+
87
+ # Pure physics calculation
88
+ entropy = calculate_entropy(data)
89
+ roughness = calculate_roughness(entropy, jitter=0.1)
90
+
91
+ # Distributed agent
92
+ class MyAgent(BaseAgent):
93
+ def analyze(self, stimulus):
94
+ return {"roughness": calculate_roughness(stimulus["entropy"])}
95
+ ```
96
+
97
+ ## License
98
+
99
+ Apache 2.0 - See [LICENSE](LICENSE)
100
+
101
+ ## Documentation
102
+
103
+ - [THE_SHUNOLLO_CODEX.md](THE_SHUNOLLO_CODEX.md) - Philosophy & Vision
104
+ - [docs/EXAMPLES.md](docs/EXAMPLES.md) - **4 Real-World Examples** (Finance, Health, IoT, DevOps)
105
+ - [docs/whitepapers/](docs/whitepapers/) - Physics Theory
106
+ - [docs/technical/SENSORY_LEXICON.md](docs/technical/SENSORY_LEXICON.md) - Sensory Vocabulary
107
+
108
+ ## Community
109
+
110
+ - 📖 [Roadmap](ROADMAP.md) - See what's coming
111
+ - 🐛 [Issue Tracker](https://github.com/shunollo/shunollo/issues) - Report bugs
112
+ - 💬 [Discussions](https://github.com/shunollo/shunollo/discussions) - Ask questions
113
+
114
+ ## Contributing
115
+
116
+ We welcome research contributions. Please see [CONTRIBUTING.md](CONTRIBUTING.md) for architectural rules and setup instructions.
117
+
118
+ > **Note**: By contributing, you agree to our [Contributor License Agreement](.github/CLA.md).
@@ -0,0 +1,86 @@
1
+ # Shunollo - The Biomimetic Physics Engine
2
+
3
+ **A Universal Physics Engine for Cognitive Architectures**
4
+
5
+ Shunollo provides a pure, agnostic physics layer for translating any data stream into sensory qualia - enabling AI systems to "feel" their environment through entropy, roughness, viscosity, and other universal metrics.
6
+
7
+ > [!IMPORTANT]
8
+ > **Status**: Production Ready
9
+ > * **Physics**: Verified ($E=mv^{1.5}$)
10
+ > * **Neuroscience**: Verified (Homeostatic Plasticity)
11
+ > * **Ethics**: Verified (Safety Governor)
12
+ > * **Security**: Hardened (No Pickle, Numpy only)
13
+
14
+ ## 100% Open Source
15
+
16
+ Shunollo is fully open source under the Apache 2.0 license. There is no "Enterprise Edition" or paid tier of the library itself. You get **everything**.
17
+
18
+ **Build whatever you want.** That's why we made this.
19
+
20
+ ## Architecture
21
+
22
+ ```
23
+ shunollo/
24
+ ├── shunollo_core/ # Pure Physics (Math only, zero dependencies)
25
+ └── shunollo_runtime/ # Nervous System (Redis, Agents, Thalamus)
26
+ ```
27
+
28
+ ```mermaid
29
+ graph LR
30
+ subgraph Shunollo Core
31
+ A[Physics Engine] --> B[Somatic Vector]
32
+ end
33
+
34
+ subgraph Shunollo Runtime
35
+ B --> C((Thalamus Bus))
36
+ C --> D[Neural Cortex]
37
+ C --> E[Reflex Agent]
38
+ end
39
+
40
+ D & E --> F[Decision]
41
+ ```
42
+
43
+ ## Installation
44
+
45
+ ```bash
46
+ pip install shunollo
47
+ ```
48
+
49
+ ## Quick Start
50
+
51
+ ```python
52
+ from shunollo_core.physics import calculate_entropy, calculate_roughness
53
+ from shunollo_runtime import RedisThalamus, BaseAgent
54
+
55
+ # Pure physics calculation
56
+ entropy = calculate_entropy(data)
57
+ roughness = calculate_roughness(entropy, jitter=0.1)
58
+
59
+ # Distributed agent
60
+ class MyAgent(BaseAgent):
61
+ def analyze(self, stimulus):
62
+ return {"roughness": calculate_roughness(stimulus["entropy"])}
63
+ ```
64
+
65
+ ## License
66
+
67
+ Apache 2.0 - See [LICENSE](LICENSE)
68
+
69
+ ## Documentation
70
+
71
+ - [THE_SHUNOLLO_CODEX.md](THE_SHUNOLLO_CODEX.md) - Philosophy & Vision
72
+ - [docs/EXAMPLES.md](docs/EXAMPLES.md) - **4 Real-World Examples** (Finance, Health, IoT, DevOps)
73
+ - [docs/whitepapers/](docs/whitepapers/) - Physics Theory
74
+ - [docs/technical/SENSORY_LEXICON.md](docs/technical/SENSORY_LEXICON.md) - Sensory Vocabulary
75
+
76
+ ## Community
77
+
78
+ - 📖 [Roadmap](ROADMAP.md) - See what's coming
79
+ - 🐛 [Issue Tracker](https://github.com/shunollo/shunollo/issues) - Report bugs
80
+ - 💬 [Discussions](https://github.com/shunollo/shunollo/discussions) - Ask questions
81
+
82
+ ## Contributing
83
+
84
+ We welcome research contributions. Please see [CONTRIBUTING.md](CONTRIBUTING.md) for architectural rules and setup instructions.
85
+
86
+ > **Note**: By contributing, you agree to our [Contributor License Agreement](.github/CLA.md).
@@ -0,0 +1,115 @@
1
+ # THE SHUNOLLO CODEX: Bio-Digital Architecture
2
+
3
+ ## I. THE CORE PHILOSOPHY
4
+ **"We are not building a logging tool; we are building a synthetic organism."**
5
+
6
+ The Shunollo Platform is a cognitive observability system modeled after biological homeostasis. We have achieved **Architecture 2.0**, moving from monolithic sensing to a **Decentralized Synaptic Bus**.
7
+
8
+ ### The "Synaptic Stack" (Decentralized)
9
+ ```mermaid
10
+ graph TD
11
+ A[Level 1: Physics Core] -->|13-dim Vector| B[Level 2: Runtime]
12
+ B -->|Sensation Event| C[Level 3: Application]
13
+
14
+ subgraph Physics Core
15
+ A
16
+ end
17
+
18
+ subgraph Runtime Worker
19
+ B
20
+ end
21
+
22
+ subgraph Your Application
23
+ C
24
+ end
25
+ ```
26
+
27
+ ---
28
+
29
+ ## II. LICENSING: 100% OPEN SOURCE
30
+ **"The Physics is Free. Build What You Want."**
31
+
32
+ * **Shunollo Core (Open Source / Apache 2.0):**
33
+ * *Analogy:* The Human Body (Anatomy).
34
+ * *Function:* Physics, Routing, Basic Health, Reflexes.
35
+ * *Value:* Ubiquity, Trust, Standardization.
36
+
37
+ **The Dependency Rule:**
38
+ * Shunollo Core is a standalone library.
39
+ * Applications built on Shunollo are independent products.
40
+ * Shunollo Core NEVER imports from any application.
41
+
42
+ ---
43
+
44
+ ## III. ANATOMICAL GLOSSARY (The Internal Language)
45
+
46
+ We use biological terms to design the architecture, but we use industry-standard terms for public APIs and UI.
47
+
48
+ ### Level 1: The Physiology (System Components)
49
+ | Bio-Internal Name | Public/Dev Name | Function & Logic |
50
+ | :--- | :--- | :--- |
51
+ | **Transduction Agent** | **Signal Transducer** | Converts raw data into standardized "Sensation Events." |
52
+ | **The Thalamus** | **Event Bus (Redis)** | The central router. No Agent talks directly to another. |
53
+ | **Ganglion Agent** | **Reflex Processor** | Filters noise or triggers instant reflexes. |
54
+ | **Homeostasis** | **Auto-Scaling / Health** | Keeps variables within a "Safe Zone" via feedback loops. |
55
+ | **The Immune System** | **Active Defense / ACL** | Distinguishes "Self" from "Non-Self". |
56
+ | **Nociception** | **Priority Alerting** | A dedicated "Pain Channel" for critical errors. |
57
+ | **Motor Cortex** | **Effector Bus** | The output pathways. Decouples "Decision" from "Action". |
58
+ | **Training Governor** | **Value Alignment** | Safety circuit that vetoes unsafe updates. |
59
+
60
+ ### Level 2: The Molecular Level (Code Units)
61
+ | Bio-Internal Name | Dev Name | Function & Logic |
62
+ | :--- | :--- | :--- |
63
+ | **Metabolite / ATP** | **Variable / Quota** | Fuel for logic. |
64
+ | **Metabolic Gating** | **Rate Limiting** | Prevents burnout. |
65
+ | **DNA / Genome** | **Config / Constants** | The blueprint. Should not change at runtime. |
66
+ | **Enzyme** | **Function** | A specialized catalyst. |
67
+ | **Organelle** | **Docker Container** | A membrane-bound compartment. |
68
+
69
+ ---
70
+
71
+ ## IV. PHYSIOLOGY: THE TWO FLOW SYSTEMS
72
+ **We strictly separate the "Blood" from the "Nerves."**
73
+
74
+ 1. **The Circulatory System (Data Plane):**
75
+ * *Carries:* Heavy resources (Logs, Blobs, Metrics).
76
+ * *Speed:* Slow, high bandwidth.
77
+ * *Rule:* **Never treat Data like a Signal.**
78
+
79
+ 2. **The Nervous System (Control Plane):**
80
+ * *Carries:* Information & Commands (Pointers, Status Codes, Alerts).
81
+ * *Speed:* Instant, low bandwidth.
82
+ * *Rule:* **The Nerve only carries the pointer.**
83
+
84
+ ---
85
+
86
+ ## V. THE INTERFACE STRATEGY ("The Rosetta Stone")
87
+ **"Biomimetic Architecture, Industry-Standard Interface."**
88
+
89
+ We do not force users to learn biology. We translate:
90
+ * *Internal Logic:* "The Nociceptor fired due to tissue damage."
91
+ * *External UI:* "Critical Alert: High Latency detected on Node 4."
92
+
93
+ ---
94
+
95
+ ## VI. DEVELOPMENT GUIDELINES
96
+ 1. **The Scientific Method:** Every deployment is an experiment.
97
+ 2. **The Digestion Rule:** API Endpoints should only queue data, never process it.
98
+ 3. **The Teratoma Check:** If a Class does too much, it is a Tumor. Surgery is required.
99
+
100
+ ---
101
+
102
+ ## VII. DEFINITION OF DONE (The Immune Response)
103
+ **"A mutation that is not validated is a cancer."**
104
+
105
+ 1. **Selection Pressure (Testing):**
106
+ * Unit Tests for all new functions.
107
+ * Feature Tests for full workflows.
108
+ * Full test suite for regression prevention.
109
+
110
+ 2. **Genetic Record (Documentation):**
111
+ * Update `docs/` to reflect new capabilities.
112
+ * Explain the "Why", not just the "How".
113
+
114
+ 3. **Anatomy Update (Architecture):**
115
+ * If the shape of the system changes, update documentation.
@@ -0,0 +1,47 @@
1
+ [build-system]
2
+ requires = ["setuptools>=42", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "shunollo"
7
+ version = "0.1.0"
8
+ description = "Biomimetic Physics Engine for Cognitive Architectures"
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ license = {text = "Apache-2.0"}
12
+ authors = [
13
+ {name = "Austin", email = "austin@shunollo.org"},
14
+ ]
15
+ classifiers = [
16
+ "Programming Language :: Python :: 3",
17
+ "License :: OSI Approved :: Apache Software License",
18
+ "Operating System :: OS Independent",
19
+ "Topic :: Scientific/Engineering :: Physics",
20
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
21
+ ]
22
+ dependencies = [
23
+ "numpy>=1.20.0",
24
+ "scipy>=1.7.0",
25
+ "fastapi>=0.68.0",
26
+ "uvicorn>=0.15.0",
27
+ "sqlalchemy>=1.4.0",
28
+ "pydantic>=1.8.0",
29
+ "pillow>=8.0.0",
30
+ "pyyaml>=5.0",
31
+ ]
32
+
33
+ [project.optional-dependencies]
34
+ runtime = ["redis>=4.0.0"]
35
+ dev = [
36
+ "pytest>=7.0.0",
37
+ "black",
38
+ "ruff",
39
+ ]
40
+
41
+ [project.urls]
42
+ "Homepage" = "https://github.com/shunollo/shunollo"
43
+ "Bug Tracker" = "https://github.com/shunollo/shunollo/issues"
44
+
45
+ [tool.setuptools.packages.find]
46
+ where = ["."]
47
+ include = ["shunollo_core*", "shunollo_runtime*"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,118 @@
1
+ Metadata-Version: 2.4
2
+ Name: shunollo
3
+ Version: 0.1.0
4
+ Summary: Biomimetic Physics Engine for Cognitive Architectures
5
+ Author-email: Austin <austin@shunollo.org>
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/shunollo/shunollo
8
+ Project-URL: Bug Tracker, https://github.com/shunollo/shunollo/issues
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Topic :: Scientific/Engineering :: Physics
13
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
14
+ Requires-Python: >=3.9
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: numpy>=1.20.0
18
+ Requires-Dist: scipy>=1.7.0
19
+ Requires-Dist: fastapi>=0.68.0
20
+ Requires-Dist: uvicorn>=0.15.0
21
+ Requires-Dist: sqlalchemy>=1.4.0
22
+ Requires-Dist: pydantic>=1.8.0
23
+ Requires-Dist: pillow>=8.0.0
24
+ Requires-Dist: pyyaml>=5.0
25
+ Provides-Extra: runtime
26
+ Requires-Dist: redis>=4.0.0; extra == "runtime"
27
+ Provides-Extra: dev
28
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
29
+ Requires-Dist: black; extra == "dev"
30
+ Requires-Dist: ruff; extra == "dev"
31
+ Dynamic: license-file
32
+
33
+ # Shunollo - The Biomimetic Physics Engine
34
+
35
+ **A Universal Physics Engine for Cognitive Architectures**
36
+
37
+ Shunollo provides a pure, agnostic physics layer for translating any data stream into sensory qualia - enabling AI systems to "feel" their environment through entropy, roughness, viscosity, and other universal metrics.
38
+
39
+ > [!IMPORTANT]
40
+ > **Status**: Production Ready
41
+ > * **Physics**: Verified ($E=mv^{1.5}$)
42
+ > * **Neuroscience**: Verified (Homeostatic Plasticity)
43
+ > * **Ethics**: Verified (Safety Governor)
44
+ > * **Security**: Hardened (No Pickle, Numpy only)
45
+
46
+ ## 100% Open Source
47
+
48
+ Shunollo is fully open source under the Apache 2.0 license. There is no "Enterprise Edition" or paid tier of the library itself. You get **everything**.
49
+
50
+ **Build whatever you want.** That's why we made this.
51
+
52
+ ## Architecture
53
+
54
+ ```
55
+ shunollo/
56
+ ├── shunollo_core/ # Pure Physics (Math only, zero dependencies)
57
+ └── shunollo_runtime/ # Nervous System (Redis, Agents, Thalamus)
58
+ ```
59
+
60
+ ```mermaid
61
+ graph LR
62
+ subgraph Shunollo Core
63
+ A[Physics Engine] --> B[Somatic Vector]
64
+ end
65
+
66
+ subgraph Shunollo Runtime
67
+ B --> C((Thalamus Bus))
68
+ C --> D[Neural Cortex]
69
+ C --> E[Reflex Agent]
70
+ end
71
+
72
+ D & E --> F[Decision]
73
+ ```
74
+
75
+ ## Installation
76
+
77
+ ```bash
78
+ pip install shunollo
79
+ ```
80
+
81
+ ## Quick Start
82
+
83
+ ```python
84
+ from shunollo_core.physics import calculate_entropy, calculate_roughness
85
+ from shunollo_runtime import RedisThalamus, BaseAgent
86
+
87
+ # Pure physics calculation
88
+ entropy = calculate_entropy(data)
89
+ roughness = calculate_roughness(entropy, jitter=0.1)
90
+
91
+ # Distributed agent
92
+ class MyAgent(BaseAgent):
93
+ def analyze(self, stimulus):
94
+ return {"roughness": calculate_roughness(stimulus["entropy"])}
95
+ ```
96
+
97
+ ## License
98
+
99
+ Apache 2.0 - See [LICENSE](LICENSE)
100
+
101
+ ## Documentation
102
+
103
+ - [THE_SHUNOLLO_CODEX.md](THE_SHUNOLLO_CODEX.md) - Philosophy & Vision
104
+ - [docs/EXAMPLES.md](docs/EXAMPLES.md) - **4 Real-World Examples** (Finance, Health, IoT, DevOps)
105
+ - [docs/whitepapers/](docs/whitepapers/) - Physics Theory
106
+ - [docs/technical/SENSORY_LEXICON.md](docs/technical/SENSORY_LEXICON.md) - Sensory Vocabulary
107
+
108
+ ## Community
109
+
110
+ - 📖 [Roadmap](ROADMAP.md) - See what's coming
111
+ - 🐛 [Issue Tracker](https://github.com/shunollo/shunollo/issues) - Report bugs
112
+ - 💬 [Discussions](https://github.com/shunollo/shunollo/discussions) - Ask questions
113
+
114
+ ## Contributing
115
+
116
+ We welcome research contributions. Please see [CONTRIBUTING.md](CONTRIBUTING.md) for architectural rules and setup instructions.
117
+
118
+ > **Note**: By contributing, you agree to our [Contributor License Agreement](.github/CLA.md).