SQLite cognitive store and relationship graph for Cordis.
Project description
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.
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 cordis_memory-0.2.0.tar.gz.
File metadata
- Download URL: cordis_memory-0.2.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec1986659f8a5a4094d615c6323a1d8f68b570269a11513e1b8f0be94b9497c4
|
|
| MD5 |
56114f1ca63236634b33e585e09b146d
|
|
| BLAKE2b-256 |
f78b4e695c5b5d3a0b6e0556f9a0314248dfc70a7aaf14752bbc9bf67d54051a
|
Provenance
The following attestation bundles were made for cordis_memory-0.2.0.tar.gz:
Publisher:
publish-pypi.yml on ntoniorvn-blip/cordis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cordis_memory-0.2.0.tar.gz -
Subject digest:
ec1986659f8a5a4094d615c6323a1d8f68b570269a11513e1b8f0be94b9497c4 - Sigstore transparency entry: 2201675998
- Sigstore integration time:
-
Permalink:
ntoniorvn-blip/cordis@f910fe564c3b1fe4edd91670a3aa8d6eb022b373 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/ntoniorvn-blip
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@f910fe564c3b1fe4edd91670a3aa8d6eb022b373 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cordis_memory-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cordis_memory-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16bddd26c195f0032ca517838fb6d293c2e30cba2d3ee35e1ac656966271ef9d
|
|
| MD5 |
edb335656f9286fae9165793af83cbfe
|
|
| BLAKE2b-256 |
cd5b2866cec86d979490cbb1c417dbaf6c1ea918263488c85c7afc92e6f41cb3
|
Provenance
The following attestation bundles were made for cordis_memory-0.2.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on ntoniorvn-blip/cordis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cordis_memory-0.2.0-py3-none-any.whl -
Subject digest:
16bddd26c195f0032ca517838fb6d293c2e30cba2d3ee35e1ac656966271ef9d - Sigstore transparency entry: 2201676234
- Sigstore integration time:
-
Permalink:
ntoniorvn-blip/cordis@f910fe564c3b1fe4edd91670a3aa8d6eb022b373 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/ntoniorvn-blip
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@f910fe564c3b1fe4edd91670a3aa8d6eb022b373 -
Trigger Event:
release
-
Statement type: