Biomimetic Physics Engine for Cognitive Architectures
Project description
Shunollo - The Biomimetic Physics Engine
A Universal Physics Engine for Cognitive Architectures
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.
[!IMPORTANT] Status: Production Ready (v0.2.0)
- Physics: Verified ($E=mv^{1.5}$)
- Memory: Physics-RAG Episodic Recall
- Neuroscience: Verified (Homeostatic Plasticity)
- Ethics: Verified (Safety Governor)
- Security: Hardened (No Pickle, Numpy only)
100% Open Source
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.
Build whatever you want. That's why we made this.
Key Features
Physics Engine (18-Dimensional Sensory Vector)
Transform any data stream into a normalized physics fingerprint:
- Energy, Entropy, Frequency, Roughness, Viscosity, Volatility
- Harmony, Flux, Dissonance (Second-order derivatives)
- Spatial fields: Hue, Saturation, Pan, X/Y/Z coordinates
Physics-RAG (NEW in v0.2.0) 🆕
Retrieval-Augmented Generation for Sensation - your AI remembers what it has "felt" before:
from shunollo_core.memory.hippocampus import Hippocampus
from shunollo_core.models import ShunolloSignal
# Store an experience
hippo = Hippocampus()
signal = ShunolloSignal(energy=5.0, roughness=0.8, entropy=6.5)
hippo.remember(signal)
# Later: Déjà Vu - "Have I felt this before?"
query_vector = new_signal.to_vector(normalize=True)
similar_episodes = hippo.recall_similar(query_vector, k=3)
if similar_episodes:
past_signal, distance = similar_episodes[0]
print(f"Déjà Vu! This feels like {past_signal.timestamp} (distance: {distance})")
Why it matters: Enables One-Shot Learning. Detect an anomaly once, store the sensory signature, recognize it instantly on reoccurrence.
Architecture
shunollo/
├── shunollo_core/ # Pure Physics (Math only, zero dependencies)
│ ├── physics.py # Entropy, Roughness, Flux calculations
│ ├── models.py # ShunolloSignal (18-dim vector)
│ └── memory/ # Hippocampus (Physics-RAG)
└── shunollo_runtime/ # Nervous System (Redis, Agents, Thalamus)
graph LR
subgraph Shunollo Core
A[Physics Engine] --> B[18-dim Vector]
B --> M[Hippocampus]
M -->|Déjà Vu| B
end
subgraph Shunollo Runtime
B --> C((Thalamus Bus))
C --> D[Neural Cortex]
C --> E[Reflex Agent]
end
D & E --> F[Decision]
Installation
pip install shunollo
Quick Start
from shunollo_core.physics import calculate_entropy, calculate_roughness
from shunollo_core.models import ShunolloSignal
from shunollo_core.memory.hippocampus import Hippocampus
# Pure physics calculation
entropy = calculate_entropy(data)
roughness = calculate_roughness(entropy, jitter=0.1)
# Create a sensory signal
signal = ShunolloSignal(
energy=1.5,
entropy=entropy,
roughness=roughness,
)
# Get 18-dimensional physics fingerprint
vector = signal.to_vector(normalize=True)
# Store in episodic memory
hippo = Hippocampus()
hippo.remember(signal)
# Check novelty: "How new is this sensation?"
novelty = hippo.get_novelty_score(signal.to_vector())
if novelty > 1.0:
print("Novel pattern detected!")
License
Apache 2.0 - See LICENSE
Documentation
- THE_SHUNOLLO_CODEX.md - Philosophy & Vision
- docs/EXAMPLES.md - 4 Real-World Examples (Finance, Health, IoT, DevOps)
- docs/whitepapers/ - Physics Theory
- docs/technical/SENSORY_LEXICON.md - Sensory Vocabulary
- docs/technical/BRAIN_MAP.md - Neural Architecture
Community
- 📖 Roadmap - See what's coming
- 🐛 Issue Tracker - Report bugs
- 💬 Discussions - Ask questions
Contributing
We welcome research contributions. Please see CONTRIBUTING.md for architectural rules and setup instructions.
Note: By contributing, you agree to our Contributor License Agreement.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shunollo-0.2.0.tar.gz.
File metadata
- Download URL: shunollo-0.2.0.tar.gz
- Upload date:
- Size: 317.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7eb0eac6adab68357f7bdecc8f799f15f8520630f56e2b330e9105c9e8aa7e12
|
|
| MD5 |
2d754ed52a6ccbea464bd225364d7ff4
|
|
| BLAKE2b-256 |
61d0a22caebcf3feea6ec5967e1c4cc771a2819801f371ce75d9a7f4dda82aa9
|
Provenance
The following attestation bundles were made for shunollo-0.2.0.tar.gz:
Publisher:
publish.yml on TheLazyEyedJedi/Shunollo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
shunollo-0.2.0.tar.gz -
Subject digest:
7eb0eac6adab68357f7bdecc8f799f15f8520630f56e2b330e9105c9e8aa7e12 - Sigstore transparency entry: 803409681
- Sigstore integration time:
-
Permalink:
TheLazyEyedJedi/Shunollo@f5c49191ad041ab8fa36b4d5be021101d65b45c4 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/TheLazyEyedJedi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f5c49191ad041ab8fa36b4d5be021101d65b45c4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file shunollo-0.2.0-py3-none-any.whl.
File metadata
- Download URL: shunollo-0.2.0-py3-none-any.whl
- Upload date:
- Size: 336.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52c3b0a9dee51a672215e5e3cacb87b3a9a3d76e19e4512b2ac861001142ae36
|
|
| MD5 |
499c45ab6f19eb3c13a8513f7156d928
|
|
| BLAKE2b-256 |
22700d1ac24d79c534eed8fb648f247d25f8cfd3e6f25f486899cb6e2b6162ce
|
Provenance
The following attestation bundles were made for shunollo-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on TheLazyEyedJedi/Shunollo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
shunollo-0.2.0-py3-none-any.whl -
Subject digest:
52c3b0a9dee51a672215e5e3cacb87b3a9a3d76e19e4512b2ac861001142ae36 - Sigstore transparency entry: 803409683
- Sigstore integration time:
-
Permalink:
TheLazyEyedJedi/Shunollo@f5c49191ad041ab8fa36b4d5be021101d65b45c4 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/TheLazyEyedJedi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f5c49191ad041ab8fa36b4d5be021101d65b45c4 -
Trigger Event:
release
-
Statement type: