Skip to main content

Symbolic cognition engine for epistemic drift, rupture detection, and realignment.

Project description

Cognize

Programmable cognition for Python systems

Version


Overview

Cognize is a lightweight cognition engine for Python systems.
It tracks belief (V) vs. reality (R), manages misalignment memory (E), and detects symbolic rupture (Θ).
Now supports runtime injection of programmable logic for collapse, realignment, and adaptive thresholds.

Built for agents, simulations, filters, and symbolic drift-aware systems.


Features

  • Cognitive projection engine (EpistemicState)
  • Drift tracking with misalignment memory
  • Programmable inject_policy(...) support
  • Prebuilt logic in cognize.policies (collapse, realign, threshold)
  • Vector-compatible input support
  • Trace export (.json, .csv) for audit or training
  • Lightweight, domain-agnostic, DSL-ready

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 signals
for R in [0.1, 0.3, 0.6, 0.8]:
    agent.receive(R)
    print(agent.summary())

Example Output

{'id': 'ccd84e81', 't': 1, 'V': 0.03, 'E': 0.00003, 'Θ': 0.35, 'ruptures': 0, 'last_symbol': '⊙', 'identity': {}}
{'id': 'ccd84e81', 't': 2, 'V': 0.11, 'E': 0.0324, 'Θ': 0.35, 'ruptures': 0, 'last_symbol': '⊙', 'identity': {}}
{'id': 'ccd84e81', 't': 3, 'V': 0.0, 'E': 0.0, 'Θ': 0.35, 'ruptures': 1, 'last_symbol': '⚠', 'identity': {}}
{'id': 'ccd84e81', 't': 4, 'V': 0.0, 'E': 0.0, 'Θ': 0.35, 'ruptures': 2, 'last_symbol': '⚠', 'identity': {}}

Full Cognize User Guide


License

Licensed under the Apache License 2.0.


© 2025 Pulikanti Sashi Bharadwaj
All rights reserved.

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

cognize-0.1.4.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cognize-0.1.4-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file cognize-0.1.4.tar.gz.

File metadata

  • Download URL: cognize-0.1.4.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for cognize-0.1.4.tar.gz
Algorithm Hash digest
SHA256 65ccacefe1f0a1dfa90ca24c022b65d56c3d4b1543c9f19fd08e2653f6b28f55
MD5 3130df78d749356f019e0f48403d16df
BLAKE2b-256 31c183f964ebf572f272e219e375189623d258ff6fcb61449934f92948496a2d

See more details on using hashes here.

File details

Details for the file cognize-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: cognize-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for cognize-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3362cfe4f199718a86e53b4248e061196f32f8e3ee84b655bbbc5211b46dbd9c
MD5 1ae496faf2f5a9fcd910f60f9920faf0
BLAKE2b-256 ca1c3a1aa88a64434f6922062b5e7a74ed07a481d88ecf26aaa017e8d1b0fb34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page