Symbolic cognition engine for epistemic drift, rupture detection, and realignment.
Project description
Cognize
Programmable cognition for Python systems
Overview
Cognize is a lightweight cognition engine that tracks epistemic drift and enables rupture-aware reasoning in recursive systems.
It models projection (V), reality (R), distortion (∆), misalignment memory (E), and rupture thresholds (Θ) — and supports programmable logic for collapse, realignment, and intervention.
Features
- Drift-aware cognitive kernel (
EpistemicState) - Programmable rupture, realignment, and collapse policies
- Misalignment memory tracking with decay
- Symbolic cognition trace export (
.json,.csv) - Compatible with scalar or vector inputs
- DSL-ready via runtime injection (
inject_policy) - Lightweight, dependency-minimal, and test-backed
Installation
pip install cognize
Core Concepts
| Symbol | Meaning |
|---|---|
V |
Belief / Projection |
R |
Reality Signal |
∆ |
Distortion |
Θ |
Rupture Threshold |
E |
Misalignment Memory |
Quick Usage
from cognize import EpistemicState
# Initialize agent
agent = EpistemicState(V0=0.0, threshold=0.35)
# Feed scalar signals
for R in [0.1, 0.3, 0.6, 0.8]:
agent.receive(R)
print(agent.summary())
# Inject custom rupture logic (optional)
from cognize.policies import collapse_soft_decay, realign_tanh, threshold_adaptive
agent.inject_policy(
collapse=collapse_soft_decay,
realign=realign_tanh,
threshold=threshold_adaptive
)
# Run a new signal cycle
agent.receive(0.5)
# Get drift metrics
print(agent.drift_stats(window=3))
# Export cognition trace
agent.export_json("trace.json")
agent.export_csv("trace.csv")
Example Output
{
"t": 2,
"V": 0.41,
"R": 0.6,
"delta": 0.19,
"Θ": 0.35,
"ruptured": false,
"event": "realign",
"source": "default"
}
Read the full Cognize User Guide
License
Licensed under the Apache 2.0 License.
© 2025 Pulikanti Sashi Bharadwaj
All rights reserved.
Project details
Release history Release notifications | RSS feed
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 cognize-0.1.1.tar.gz.
File metadata
- Download URL: cognize-0.1.1.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
457e256debeeee3073c9aaefd01f68b47a4dd29c119e5c579d9c5c8d222bd5e5
|
|
| MD5 |
9fe49e718ad384ac3bb09ddd018aa7cb
|
|
| BLAKE2b-256 |
a0ca82055204616b71500a9b5d92513a92052c5efd396a0f15b17e2cab1b4515
|
File details
Details for the file cognize-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cognize-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dbc504a8662aac757dbdf63745439aa96e2e9b5be77cf7d58cd2c0c0de860ac
|
|
| MD5 |
662f119b09a24e062645c971a6619fa9
|
|
| BLAKE2b-256 |
317ed584937b58dff0083dba4dcfb0abed7f84ff94f234dcdef76f0f58b519f2
|