Skip to main content

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:

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

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

engrammic_primitives-0.1.6.tar.gz (61.8 kB view details)

Uploaded Source

Built Distribution

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

engrammic_primitives-0.1.6-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

Details for the file engrammic_primitives-0.1.6.tar.gz.

File metadata

  • Download URL: engrammic_primitives-0.1.6.tar.gz
  • Upload date:
  • Size: 61.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for engrammic_primitives-0.1.6.tar.gz
Algorithm Hash digest
SHA256 a838e5f1a32d175efa58fd70a626a84bd69981d73585397ffea88d66342ed2b6
MD5 bd95233fa887ef26fc9b3186354f19dd
BLAKE2b-256 38cc1605bf05feb2f0e126d23d6c7851c09e90b12c66feff18566f8e3c4c983b

See more details on using hashes here.

Provenance

The following attestation bundles were made for engrammic_primitives-0.1.6.tar.gz:

Publisher: publish.yml on engrammic-ai/primitives

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file engrammic_primitives-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for engrammic_primitives-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dcaa5dc18b5a5048c5618ac42415aa48bf3a0bcb3a78a21d8f5feb6a198a5963
MD5 94e3c691bae3094e8883bf639ddac2fe
BLAKE2b-256 b267881f08d7320b22da4f8818c3bd1c8ca9969b7843f8da19e5f5a11ebdc9d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for engrammic_primitives-0.1.6-py3-none-any.whl:

Publisher: publish.yml on engrammic-ai/primitives

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page