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.0.tar.gz (13.4 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.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for reconcile_agent_memory-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e3b774787060b3e13b902f0967b35058bd6e542e45e18985dd3c736fc6968150
MD5 b001ed523009f343253a6a25c8ef69bb
BLAKE2b-256 4077b4ec753a393843542c12972528d0883839f98800cfb0d5ce5043f8efcdd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for reconcile_agent_memory-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b953741e24dd8440444eb48034c8b69eafa20f49b847f039d63278cd0a56b803
MD5 1dedeaae9254adb56b4ea39fb18b53f5
BLAKE2b-256 62b3dee619601ab2a6d37ca5af16ff3280f77c070a8cefc1ab7f4b8418d2d44b

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