Skip to main content

A pluggable memory layer for LLM agents with usage verification, contradiction resolution, and multi-tenant access control

Project description

Reconcile

A pluggable memory layer for LLM agents that fixes a gap in every major alternative (Mem0, Letta/MemGPT, Zep): none of them verify that a fact retrieved and injected into an agent's context was actually used. This does.

What it does

  • Write-time contradiction resolution — a new fact about the same (tenant, subject, predicate) supersedes the old one instead of both floating in the store forever. O(1) via an index, not a linear scan.
  • Hybrid retrieval — TF-IDF similarity + subject-match bonus, scoped per tenant.
  • Usage verification — after a fact is injected into an agent's context, checks whether the response actually reflects it (not just whether the right words appear, but whether they're framed as current state vs. a suggestion, with an optional semantic-similarity fallback for paraphrases).
  • Multi-tenant access controlTenantScopedStore enforces caller→tenant authorization, not just a partition key.
  • Rule-based extraction — a regex fallback for turning raw text into facts when no LLM is available (explicitly not a replacement for one).
  • Thread-safe writes — a lock around the contradiction-check-and-write.

Status

65/65 tests passing. This is a validated prototype, not a production system — every known limitation is documented in STRESS_TEST_SUMMARY.md, SCALE_NOTES.md, and PARAPHRASE_CALIBRATION.md, and several tests exist specifically to pin known gaps rather than hide them (search test files for known_gap / known_limitation).

Install

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

reconcile_agent_memory-0.1.2.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

reconcile_agent_memory-0.1.2-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file reconcile_agent_memory-0.1.2.tar.gz.

File metadata

  • Download URL: reconcile_agent_memory-0.1.2.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for reconcile_agent_memory-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e397d8ffb40858563c82bb9981bb9b4b5468b44fc4d1ea0da6a4ed6fab470c69
MD5 1ffae858e8cf2b905ccbff00df444e5e
BLAKE2b-256 cd29e9e564326093c6e161d2f47422c36db7391c0294e25382a07e24747cb040

See more details on using hashes here.

File details

Details for the file reconcile_agent_memory-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for reconcile_agent_memory-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 875195d699a237e8557fc7dda80283ad0e620f21c79759762361c1808953d2da
MD5 1062b59289448bf53682a80a984f2760
BLAKE2b-256 224a55da037a483686b067d08ac485f77b5eb38cbb166a8cefe985eeb15f6b9a

See more details on using hashes here.

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