memory_editMCP tool for correcting stored memories with edit tracking (21 → 22 tools)- Optional semantic search via ONNX embeddings (all-MiniLM-L6-v2, 384-dim)
- Install with
pip install lightning-memory[semantic] - Hybrid FTS5 + cosine similarity with reciprocal rank fusion
- Hash-based fallback when onnxruntime not installed
- Install with
- Memory deduplication using Jaccard word-set similarity (per-type thresholds)
lightning-memory statsCLI command — memory statistics dashboardlightning-memory export [json|csv]CLI command- Schema migration system using PRAGMA user_version
- Per-relay circuit breaker (auto-skip down relays, exponential backoff)
- L402 payment idempotency (duplicate tokens detected, payment logged once)
- Relay configuration examples in README
- Vendor name normalization across all subsystems —
bitrefill.com,www.bitrefill.com,BITREFILL.COMnow match consistently in reputation, budget, trust, and anomaly detection - Intelligence engine double-scan —
vendor_report()now counts failures in a single pass instead of scanning all memories twice - Relay sync batching —
push_memories()uses single event loop instead of per-memoryasyncio.run() pull_trust_assertions()now fetches all vendors concurrently instead of sequentially
GatewayClientreuses persistenthttpx.Clientwith connection poolingPhoenixdClientreuses persistenthttpx.AsyncClientwith connection pooling
- Community reputation via live NIP-85 trust attestation sync
- Auto-attestation: automatically publish trust scores after N transactions per vendor
- Know Your Agent (KYA) attestations for agent identity verification
- LNURL-auth session storage and lookup
- Structured compliance report generation and export
- Compliance report L402 gateway endpoint (/ln/compliance-report)
- Memory marketplace: discover remote gateways via Nostr relays
- GatewayClient for querying remote gateways with automatic L402 payment
- DNS-based gateway discovery via .well-known/lightning-memory.json
lightning-memory-manifestCLI command for generating gateway manifests- 8 new MCP tools: ln_trust_attest, ln_agent_attest, ln_agent_verify, ln_auth_session, ln_auth_lookup, ln_compliance_report, ln_discover_gateways, ln_remote_query (13 → 21 total)