File-backed reference adapter for MGP.
This adapter proves that MGP is not limited to database backends. It is intended to cover file-native and workspace-style memory storage.
- each memory object is stored as one JSON file
- file path is derived from
memory_id - adapter state is persisted on disk under the configured storage directory
- one file per
memory_id - the file contains the canonical memory object and lightweight state metadata
backend_ref.adapteris normalized tofilebackend_ref.mgp_stateis set toactive,expired, orrevoked- search scans all files and performs substring matching on serialized
content
See manifest.json.
Highlights:
supports_write: truesupports_update: truesupports_search: truesupports_native_ttl: false
- search is scan-based and not indexed
- no native TTL support
- no graph relation support
- no native conflict detection
- stored format is JSON rather than markdown despite the file-based paradigm
This adapter is expected to pass the full compliance suite:
cd compliance
MGP_ADAPTER=file ../.venv/bin/python -m pytestThe CI workflow also publishes a JUnit XML artifact for the file adapter so compatibility results can be reviewed per run.