A context-sensitive cognitive control stack for workflow AI.
Project description
Cognitive Cell
Cognitive Cell is a context-sensitive control stack for workflow AI.
Accepted v9 stack:
router-v4 → selector-v5 → finalizer-v9
What it does
The system separates:
1. cognitive routing
2. workflow-vs-direct pathway selection
3. final user-facing rendering
This lets the same input behave differently depending on context, posture, urgency, role, and workflow constraints.
Install
pip install "cognitive-cell[server]"
Python usage
from cognitive_cell import CognitiveCellRequest, CognitiveCellV9
cell = CognitiveCellV9()
request = CognitiveCellRequest(
statement="Blue colour is observed.",
interaction_mode="workflow_component",
autonomy_mode="log",
)
result =l.run(request)
print(result.response_text)
print(result.trace)
CLI usage
Create an event JSON file, then run:
cognitive-cell --event-json examples/event.example.json
This calls the configured model and may incur API cost.
HTTP sidecar usage
Start the server:
python -m uvicorn cognitive_cell.server.app:app --port 8000
Check health without model calls:
curl -s http://127.0.0.1:8000/health
Send an enterprise event:
curl -s -X POST http://127.0.0.1:8000/v1/sidecar \
-H "Content-Type: application/json" \
-d @examples/event.example.json
Example event
{
"event_id": "evt_pricing_refunds_001",
"source": "growth_ops_monitor",
"event_type": "metric_anomaly",
"statement": "Refund requests doubled after the pricing page update. What should we examine first?",
"context": {
"world_facts": [],
"constraints": ["Prioritize high-signal first checks before broad analysis."],
"active_goals": ["identify the first diagnostic step"]
},
"metadata": {
"persona": "growth operations analyst",
"time_pressure": "medium"
},
"interaction_mode": "workflow_component",
"autonomy_mode": "suggest"
}
Current evidence
Fresh holdout-v1, 100 cases:
| Judge | Architecture preference | Baseline preference |
|---|---|---|
| gpt-4.1 primary | 0.6200 | 0.3800 |
| gpt-5.5 second, combined 40+60 | 0.5575 | 0.4425 |
| Two-judge mean | 0.58875 | 0.41125 |
Safe claim:
On a fresh 100-case holdout, the frozen v9 cognitive-cell stack beat a plain strong-model baseline under two standardized OpenAI judges, with mean architecture preference around 0.589.
Caution
This is an engineering validation result, not a universal claim of superiority over frontier models. Larger benchmarks, human evaluation, ablations, and cross-provider validation are still needed.
Cost note
/health costs nothing.
/v1/sidecar and cognitive-cell --event-json ... call the configured model and may incur API cost.
Recommended production posture
Start with:
autonomy_mode = "suggest"
human-in-the-loop
no automatic external action execution
Known weaknesses
- Atomic observation remains weaker because pure logging competes against advice/explanation.
- Contextual observation remains mixed when direct action beats record/analyze behavior.
- Persona shift is weaker under the second judge.
- Writing support is improved but not consistently superior.
What this is not
Cognitive Cell is not AGI, not a production-autonomous agent, and not a claim of universal superiority over frontier models.
It is a workflow-control layer that helps decide whether to record, clarify, analyze, plan, answer directly, or escalate.
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 cognitive_cell-0.9.3.tar.gz.
File metadata
- Download URL: cognitive_cell-0.9.3.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d56e85aceb91fa257bc2564e1d19177e09028c798efd6ed32e0ad6eec8719f6d
|
|
| MD5 |
38464ff12a37850756f1ed13554fcaff
|
|
| BLAKE2b-256 |
6de196871e9cd9e0a0c1840bd3e70f6fb8cc0dac48723d651f9ab9a61068b53d
|
Provenance
The following attestation bundles were made for cognitive_cell-0.9.3.tar.gz:
Publisher:
publish.yml on srikardevulapalli/cognitive-cell
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cognitive_cell-0.9.3.tar.gz -
Subject digest:
d56e85aceb91fa257bc2564e1d19177e09028c798efd6ed32e0ad6eec8719f6d - Sigstore transparency entry: 1429717538
- Sigstore integration time:
-
Permalink:
srikardevulapalli/cognitive-cell@b1c02ea73ad5941852d0fdd6d024a92b60c03e5b -
Branch / Tag:
refs/tags/v0.9.3 - Owner: https://github.com/srikardevulapalli
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b1c02ea73ad5941852d0fdd6d024a92b60c03e5b -
Trigger Event:
push
-
Statement type:
File details
Details for the file cognitive_cell-0.9.3-py3-none-any.whl.
File metadata
- Download URL: cognitive_cell-0.9.3-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f998cc841b4a0d877a5cfe8e8dfec6f76e4358a4c959df5e1ff0b7a81cd6c73
|
|
| MD5 |
650ff10db572c01ad2aaeffd5b1ace3d
|
|
| BLAKE2b-256 |
047737e1132ef5a1c0a6970db3d2a85a39ff7327ef928e166148a1050bb86fc1
|
Provenance
The following attestation bundles were made for cognitive_cell-0.9.3-py3-none-any.whl:
Publisher:
publish.yml on srikardevulapalli/cognitive-cell
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cognitive_cell-0.9.3-py3-none-any.whl -
Subject digest:
9f998cc841b4a0d877a5cfe8e8dfec6f76e4358a4c959df5e1ff0b7a81cd6c73 - Sigstore transparency entry: 1429717587
- Sigstore integration time:
-
Permalink:
srikardevulapalli/cognitive-cell@b1c02ea73ad5941852d0fdd6d024a92b60c03e5b -
Branch / Tag:
refs/tags/v0.9.3 - Owner: https://github.com/srikardevulapalli
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b1c02ea73ad5941852d0fdd6d024a92b60c03e5b -
Trigger Event:
push
-
Statement type: