This repository is the canonical upstream baseline for the SocioProphet memory mesh runtime and deployment work.
It keeps three concerns separate:
services/memoryd/is the control-plane and stable API for recall, writeback, config watch, and resource application.adapters/contains integration shims for upstream systems such as LiteLLM and OpenClaw.third_party/andartifacts/pin upstream software and model artifacts without forcing us to vendor entire upstream repos.
This repository currently includes:
- a runnable
memorydFastAPI service with in-memory, SQLite, and PostgreSQL store seams; - optional vector retrieval wiring through Qdrant plus a deterministic local embedder for bring-up;
- a LiteLLM callback hook that performs recall-before-call and writeback-after-call;
- an OpenClaw plugin that exposes
memory_searchandmemory_writetools; - repo-native lock manifests for upstream software and model artifacts;
- importer and validation scripts so upstream resolution happens in one controlled place instead of at runtime;
- local M2 Mac Podman and Google Cloud review deployment scaffolding.
This is the canonical public repository for the runtime and deployment work. It is not a disposable starter artifact.
memorymeshowns the runtime, adapters, importer logic, deployment scaffolding, and build inputs.socioprophet-standards-storageshould mirror ADRs, normative schemas, retention policy, and benchmarks.sociosphereshould register the component and adapter manifests.
adapters/
litellm/
openclaw-memory-mesh/
artifacts/
models.lock.yaml
deploy/
services/
memoryd/
specs/
memoryd.openapi.yaml
third_party/
upstreams.lock.yaml
scripts/
validate_upstreams.py
render_import_plan.py
import_upstreams.py
- lock exact upstream versions in
third_party/upstreams.lock.yaml - mirror resolved artifacts into registries or stores we control
- vendor only patch queues or forked upstreams
- never allow production to fetch public dependencies at runtime
python -m venv .venv
. .venv/bin/activate
python -m pip install -r services/memoryd/requirements.txt
uvicorn services.memoryd.app.main:app --reload --port 8787In another shell:
python scripts/validate_upstreams.py third_party/upstreams.lock.yaml
python scripts/render_import_plan.py third_party/upstreams.lock.yaml
python scripts/import_upstreams.py third_party/upstreams.lock.yaml --output third_party/resolved.upstreams.json