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.1.tar.gz (21.5 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.1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reconcile_agent_memory-0.1.1.tar.gz
  • Upload date:
  • Size: 21.5 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.1.tar.gz
Algorithm Hash digest
SHA256 451ec799dfc4650a97ef306ada72e21fb1cb6f7006bf3d0b3ae9d16c0f54404f
MD5 e15559100ed3a0b02d9677eb20ebe419
BLAKE2b-256 42cbda7ad5b532356222794ae1e7e3705673d36da8cd516b8d49e64c7e6496a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for reconcile_agent_memory-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d747027974368a69a3d42c9c0df1150bba219eeb4b4033f279190e5d8dab1ab1
MD5 fd194368ebfa3048d6263855f5c874e5
BLAKE2b-256 3bd60c1961919c9b59595cc82b0ede9001046e3e62719fee8f19b4d45b55de82

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