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())

Programmable Injection (v0.1.2+)

from cognize.policies import (
    collapse_soft_decay_fn,
    realign_tanh_fn,
    threshold_adaptive_fn
)

agent.inject_policy(
    collapse=collapse_soft_decay_fn,
    realign=realign_tanh_fn,
    threshold=threshold_adaptive_fn
)

agent.receive(0.5)
print(agent.summary())

Exporting 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,
  "symbol": "⊙",
  "source": "default"
}

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.3.tar.gz (13.1 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.3-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cognize-0.1.3.tar.gz
  • Upload date:
  • Size: 13.1 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.3.tar.gz
Algorithm Hash digest
SHA256 a41a7756ecb27871f857a151fbd05776d82227e607fc8aad082e59b5ab6836fb
MD5 141a46fc5b929adf5834c4da26b6929c
BLAKE2b-256 16aa3e012abd5a7789501632dbc4fade2e4eabdf196ba1c28a44262a92ce87cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cognize-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9e64cbc9bb4d0f925bff99126dec875e4d8b05d84e575ba09fca27c6e7bdcc3a
MD5 d1ccf255bc62b86ca641d09dcfd2a4bc
BLAKE2b-256 6d55d643db94972cb91d52fde6868d3f40f8c45d19752319158e769147b4f71f

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