EAG schema primitives for epistemic context management
Project description
Engrammic Primitives
The schema library for Engrammic, a structured memory system for AI agents.
Most AI agents treat context like a scratchpad. Engrammic treats it like cognition: observations become claims, claims become facts, facts become beliefs. This library defines the types and rules that make that work.
Library for integrators. If you just want to use Engrammic memory in your agent, see engrammic-mcp (hosted) or engrammic-engine (local).
Install
pip install engrammic-primitives
What's Inside
Schema types for four cognitive layers:
| Layer | What it holds | Example |
|---|---|---|
| Memory | Raw observations | "User mentioned they prefer dark mode" |
| Knowledge | Claims with evidence | "User prefers dark mode" (based on 3 mentions) |
| Wisdom | Synthesized beliefs | "Optimize for low-light viewing in this user's sessions" |
| Intelligence | Reasoning chains | Step-by-step derivation of a conclusion |
Scoring functions for promotion decisions:
from primitives.eag import combined_confidence, should_promote_r1
# When should a claim become a fact?
decision = should_promote_r1(confidence=0.8, corroboration_count=3)
Transition predicates for enforcing layer rules (e.g., Knowledge requires evidence).
Protocols for storage backends (implement these to build your own store).
When to Use This
You're building something that stores and retrieves structured agent context, and you want compatibility with the Engrammic ecosystem.
If you just want to use Engrammic:
- engrammic-mcp for hosted or self-hosted service
- engrammic-engine for local-only (SQLite)
Modules
| Module | Purpose |
|---|---|
primitives.schema |
Node and edge type definitions |
primitives.eag |
Confidence, promotion, decay logic |
primitives.eag.transitions |
Layer transition predicates and constraints |
primitives.protocols |
Storage and lifecycle interfaces |
primitives.scoring |
Freshness and relevance formulas |
Learn More
- EAG Paradigm for the full cognitive architecture spec
License
Apache 2.0
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 engrammic_primitives-0.1.3.tar.gz.
File metadata
- Download URL: engrammic_primitives-0.1.3.tar.gz
- Upload date:
- Size: 59.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d1a904dfab779756523ae6515127c630e411ff818c480ab770e2830e125a382
|
|
| MD5 |
ad7f03fb2f425260f222c7dc53a07f4b
|
|
| BLAKE2b-256 |
937f0315eae7a2dac2746d212fda44715ff56cced0b2e990ee45230f7ca5f3a1
|
Provenance
The following attestation bundles were made for engrammic_primitives-0.1.3.tar.gz:
Publisher:
publish.yml on engrammic-ai/primitives
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
engrammic_primitives-0.1.3.tar.gz -
Subject digest:
1d1a904dfab779756523ae6515127c630e411ff818c480ab770e2830e125a382 - Sigstore transparency entry: 1632830491
- Sigstore integration time:
-
Permalink:
engrammic-ai/primitives@25efaa079309a24b71fb10b956c69988c5051781 -
Branch / Tag:
refs/heads/release - Owner: https://github.com/engrammic-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@25efaa079309a24b71fb10b956c69988c5051781 -
Trigger Event:
push
-
Statement type:
File details
Details for the file engrammic_primitives-0.1.3-py3-none-any.whl.
File metadata
- Download URL: engrammic_primitives-0.1.3-py3-none-any.whl
- Upload date:
- Size: 34.0 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 |
e01877ff3e740cf4d450c6811f8770b283353e8e517c8830947c76383e184379
|
|
| MD5 |
dc9f18c92a0a979b021ca791951868c5
|
|
| BLAKE2b-256 |
26825ed04080a632c1e69a0e8c04db447403f2987f351d567ffc7fa16b85f3a4
|
Provenance
The following attestation bundles were made for engrammic_primitives-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on engrammic-ai/primitives
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
engrammic_primitives-0.1.3-py3-none-any.whl -
Subject digest:
e01877ff3e740cf4d450c6811f8770b283353e8e517c8830947c76383e184379 - Sigstore transparency entry: 1632830500
- Sigstore integration time:
-
Permalink:
engrammic-ai/primitives@25efaa079309a24b71fb10b956c69988c5051781 -
Branch / Tag:
refs/heads/release - Owner: https://github.com/engrammic-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@25efaa079309a24b71fb10b956c69988c5051781 -
Trigger Event:
push
-
Statement type: