Cordis Memory
cordis-memory is the persistent cognitive store for Cordis. It uses Python's
built-in SQLite support: no graph server, vector database, model, or network
dependency is required.
It stores five durable kinds of cognition:
event: a task, plan, tool, test, error, or verification observation;episode: a completed task experience;knowledge: an evidence-backed fact with provenance;pattern: a repeated independently sourced observation with confidence;capabilityandprinciple: model/tool performance and stable action rules.
Memory scopes are conversation, workflow, project, and global.
Project-scoped cognition is never returned to another project. Global knowledge
is deliberately shared only when a caller requests global scope.
The relationship graph uses nodes and edges in the same SQLite database. The initial graph records task-to-event and event-to-tool relations; hosts can add their own project, artifact, model, environment, plan, and evidence nodes.
Minimal use
from cordis_memory import CognitiveStore
store = CognitiveStore("cordis-cognition.db")
store.record_event({
"event_type": "tool_failed",
"project_id": "my-app",
"task_id": "task-1",
"tool": "shell",
"subject": "npm test",
"actual": "exit code 1",
})
store.remember(
kind="knowledge",
subject="package manager",
content="This project uses pnpm workspace.",
scope="project",
project_id="my-app",
source_id="repo-readme",
)
snapshot = store.query(intent="package workspace", project_id="my-app")
Patterns begin as candidates and become active only after at least two
independent source_id values support the same statement.
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 cordis_memory-0.5.0.tar.gz.
File metadata
- Download URL: cordis_memory-0.5.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ebe357ec89473164653b34082c16ade2ccf1d6efdd1ea9980162eacc76be63f
|
|
| MD5 |
1fc0a511e98a2c919c0b16ea7b9d02a9
|
|
| BLAKE2b-256 |
a603b28e4ce6749f2ff2507b6938907101013ef76c0ec80f72eacb02d512f082
|
File details
Details for the file cordis_memory-0.5.0-py3-none-any.whl.
File metadata
- Download URL: cordis_memory-0.5.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1d622863cc7e572a406ad8bcc4907962a30246aa31de6856f5c28b57a3dc220
|
|
| MD5 |
b7edb31d79ee3a524ffb80fc1b4ee6ab
|
|
| BLAKE2b-256 |
7ee88ae9ddb15884880d30cd644fd880be3e9bd46699bb3bfea35934d4b71edc
|