Skip to main content

The brain of coreason platform

Project description

coreason-cortex

The brain of the CoReason platform.

CI PyPI version Python Version License: Prosperity 3.0 codecov Poetry Checked with mypy Pydantic v2 Ruff pre-commit

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:

  1. Default to System 1: Always attempt to solve the input using low-latency, low-cost heuristics or defined rules.
  2. Monitor for Surprise: Continuously evaluate the "Confidence" or "Perplexity" of the System 1 output.
  3. Escalate to System 2: If confidence drops below a threshold, pause execution, instantiate a deliberative reasoning chain (CoT), and override the reflex.
  4. 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

  1. Clone the repository:
    git clone https://github.com/CoReason-AI/coreason_cortex.git
    cd coreason_cortex
    
  2. Install dependencies:
    poetry install
    

Usage

  • Run the linter:
    poetry run pre-commit run --all-files
    
  • Run the tests:
    poetry run pytest
    

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

coreason_cortex-0.4.1.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

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

coreason_cortex-0.4.1-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

Details for the file coreason_cortex-0.4.1.tar.gz.

File metadata

  • Download URL: coreason_cortex-0.4.1.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for coreason_cortex-0.4.1.tar.gz
Algorithm Hash digest
SHA256 a982583bcec1029f108029d7df12de676ba35578401792dc84877c897f3f2f25
MD5 0b7ea2861018f56283121dd56d0e3e91
BLAKE2b-256 e17329db54bcfbe7d1136903150da2272668976ff5fb9f445446b062ef32afc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_cortex-0.4.1.tar.gz:

Publisher: publish.yml on CoReason-AI/coreason-cortex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file coreason_cortex-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for coreason_cortex-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 18b648b099f089c027b0749163b50014f3a9fc4b6e2b15f9b2e96cb58d1311b2
MD5 7e7b09d93d43dbcdc1f4600e82846dc0
BLAKE2b-256 bf466b2dd01b22a7023ed329767a473371d7b498a591e1c1c303ac66e26fe5cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_cortex-0.4.1-py3-none-any.whl:

Publisher: publish.yml on CoReason-AI/coreason-cortex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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