coreason-cortex
The brain of the CoReason platform.
Executive Summary
coreason-cortex is the execution engine of the CoReason platform. It acts as the "Brain" that orchestrates intelligence. Its primary mandate is to implement a Neuro-Symbolic Architecture that dynamically switches between System 1 (Fast, Heuristic, Reflexive) and System 2 (Slow, Deliberative, Logical) modes of cognition.
Unlike standard agent frameworks that default to "always-on" reasoning, coreason-cortex treats cognition as a scarce resource. It prioritizes deterministic execution (Code/FSM) first, only escalating to probabilistic reasoning (LLM) when novelty or ambiguity is detected. It aims for a "Glass Box" implementation where every thought is traceable, auditable, and interruptible.
For detailed requirements and architecture, see the Architecture Documentation.
Functional Philosophy
The agent implements the Kahneman Control Loop:
- Default to System 1: Always attempt to solve the input using low-latency, low-cost heuristics or defined rules.
- Monitor for Surprise: Continuously evaluate the "Confidence" or "Perplexity" of the System 1 output.
- Escalate to System 2: If confidence drops below a threshold, pause execution, instantiate a deliberative reasoning chain (CoT), and override the reflex.
- Consolidate (Crystallize): Successful System 2 reasoning should update the System 1 state (learning), converting high-cost reasoning into low-cost reflexes for future use.
Getting Started
Prerequisites
- Python 3.12+
- Poetry
Installation
- Clone the repository:
git clone https://github.com/CoReason-AI/coreason_cortex.git cd coreason_cortex
- Install dependencies:
poetry install
Usage
- Run the linter:
poetry run pre-commit run --all-files
- Run the tests:
poetry run pytest
Metadata
Release files for coreason-cortex 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| coreason_cortex-0.4.1.tar.gz | 21.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| coreason_cortex-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.5 kB
Release files / coreason_cortex-0.4.1.tar.gz
| Download URL | coreason_cortex-0.4.1.tar.gz |
|---|---|
| Size | 21.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a982583bcec1029f108029d7df12de676ba35578401792dc84877c897f3f2f25
|
|
BLAKE2b-256 checksum How to use checksums |
e17329db54bcfbe7d1136903150da2272668976ff5fb9f445446b062ef32afc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 28, 2026.
Transparency logRelease files / coreason_cortex-0.4.1-py3-none-any.whl
| Download URL | coreason_cortex-0.4.1-py3-none-any.whl |
|---|---|
| Size | 29.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
18b648b099f089c027b0749163b50014f3a9fc4b6e2b15f9b2e96cb58d1311b2
|
|
BLAKE2b-256 checksum How to use checksums |
bf466b2dd01b22a7023ed329767a473371d7b498a591e1c1c303ac66e26fe5cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 28, 2026.
Transparency log