Skip to main content

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;
  • capability and principle: 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

cordis_memory-0.5.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

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

cordis_memory-0.5.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file cordis_memory-0.5.1.tar.gz.

File metadata

  • Download URL: cordis_memory-0.5.1.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cordis_memory-0.5.1.tar.gz
Algorithm Hash digest
SHA256 4c9294bf9e52ef953b94ba0e71fe8bc444b098ca877857c2b11bc14a2f630904
MD5 7aafeb0b8683d7ab83aff3dfb690d1e9
BLAKE2b-256 3ed9cc77383901461cfd0a4eb9a2f5363e1d82da0273cb21a9467bd5550c3e7a

See more details on using hashes here.

File details

Details for the file cordis_memory-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: cordis_memory-0.5.1-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

Hashes for cordis_memory-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f49fe53045e5027dd54194e6dca41c2be7ab68e8b2287ba88d0c4db691d4e7a1
MD5 6d1e67230e9132c57740b777a7e3b706
BLAKE2b-256 9ad6304de392c66cd67393780b5da351d96fdddba8b12b74b1839a20bc997747

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 files

0.5.0

2 files

0.4.0

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page