Governed, portable memory for AI agents. v0, experimental.
Project description
RememberKit · v0
Governed, portable memory for AI agents.
The fifth question an agent raises, after who it is (IdentityKit), what it may do (MandateKit), what it spends (BudgetGuard), and what it did (WitnessKit): what does it know and remember? RememberKit records memory as signed, scoped, content-addressed records. Each one stands alone, so a memory can move from one agent to another and still be verified. It is a governance layer for memory, not a vector database.
Quick start
from rememberkit import Memory, generate_keypair, verify_pack
key, public_key = generate_keypair() # the signing key stays on-device
mem = Memory(key, agent="agent-7", subject="user-123")
mem.remember({"seat": "aisle"}, kind="preference", scope="travel", consent="shareable")
mem.remember({"home_card": "**** 1234"}, kind="fact", scope="payments", consent="private")
mem.recall(scope="travel") # the live view, by topic
pack = mem.share() # only consent >= "shareable" leaves
verify_pack(pack, trusted_keys=[public_key])["valid"] # True
What each piece does
remember(content, *, kind, scope, consent, supersedes)writes a signed record.recall(*, scope, kind, subject, min_consent)returns the live view: latest, not superseded, not revoked. A correction is just a new record thatsupersedesan old id.forget(id)writes a signed tombstone that withdraws a memory. Revocation is itself a verifiable record.share(*, scope, min_consent)exports a portable pack of only the records cleared to leave (consentshareableorpublicby default;privatestays).verify_record/verify_packcheck integrity and a trusted issuer.
Why "portable"
Every record is individually signed and content-addressed (its id is a SHA-256 over
its canonical content, RFC 8785). So a single memory carried to another agent verifies
on its own with verify_record, without trusting the transport or having the rest of
the store. Memory moves with its provenance attached.
Security model
A valid signature proves integrity, not authority. You must pin the issuer: pass
trusted_keys. Without it (and without an explicit allow_unverified_issuer=True),
verification fails closed. Verification never throws on hostile input.
Honest limitations (v0):
- Tamper-evident, not tamper-proof. A holder of the signing key can rewrite or forge records under the same agent. External anchoring (a witness log) is the roadmap.
- Consent is an advisory marker, not access control. It tells a well-behaved reader how a memory may be used; it does not stop a hostile holder from reading content it already has.
- Payloads must be JSON-safe (numbers within 2⁵³), the limit of canonical JSON.
Full notes in ../SECURITY.md.
Install
pip install rememberkit
(Or run from source: cd python && PYTHONPATH=. python3 ../demo.py.)
License
MIT.
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 rememberkit-0.0.1.tar.gz.
File metadata
- Download URL: rememberkit-0.0.1.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb78878d0fb575298f715835452087bd2b3dad2274a9f8870c563ee10b7d53ba
|
|
| MD5 |
da65e2c824069fe87c472ba4c8f99e40
|
|
| BLAKE2b-256 |
5d84ce56f160894b82aa7a690c604dd6f4a773b58be82f56abe15fd25a9fd145
|
File details
Details for the file rememberkit-0.0.1-py3-none-any.whl.
File metadata
- Download URL: rememberkit-0.0.1-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03a775ef6f98510985381eb4d437f82cf0378ac95b45f325ea55c065e82df430
|
|
| MD5 |
d1a13057260a834a20ff54e5332747eb
|
|
| BLAKE2b-256 |
5d429fa42f4df4c5eb1af5377def852580cbe486a684e5948255d52ca93dabf0
|