惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Hacker News: Ask HN
Hacker News: Ask HN
H
Help Net Security
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
Jina AI
Jina AI
Stack Overflow Blog
Stack Overflow Blog
量子位
博客园_首页
Vercel News
Vercel News
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Forbes - Security
Forbes - Security
IT之家
IT之家
N
News and Events Feed by Topic
S
Security Affairs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Webroot Blog
Webroot Blog
Recorded Future
Recorded Future
L
LangChain Blog
Y
Y Combinator Blog
AI
AI
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Know Your Adversary
Know Your Adversary
AWS News Blog
AWS News Blog
Help Net Security
Help Net Security
Cyberwarzone
Cyberwarzone
L
Lohrmann on Cybersecurity
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google Online Security Blog
Google Online Security Blog
V2EX - 技术
V2EX - 技术
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
PCI Perspectives
PCI Perspectives
I
Intezer
T
Tenable Blog
G
Google Developers Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Troy Hunt's Blog
L
LINUX DO - 最新话题
云风的 BLOG
云风的 BLOG
C
CXSECURITY Database RSS Feed - CXSecurity.com
有赞技术团队
有赞技术团队
O
OpenAI News
P
Proofpoint News Feed
TaoSecurity Blog
TaoSecurity Blog
C
Check Point Blog
Last Week in AI
Last Week in AI
S
Schneier on Security
Simon Willison's Weblog
Simon Willison's Weblog
Blog — PlanetScale
Blog — PlanetScale

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Springboards - Flint Alpha Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages ABI Add safari/agent-harness — Safari browser automation via safari-mcp by achiya-automation · Pull Request #212 · HKUDS/CLI-Anything GitHub - Halfblood-Prince/trustcheck: Verify PyPI package attestations and improve Python supply-chain security GitHub - oguzbilgic/kern-ai: Agents that do the work and show it. GitHub - bruits/satteri: High-performance Markdown and MDX processing for the JavaScript ecosystem GitHub - tylergibbs1/feedstock: High-performance web crawler and scraper for TypeScript, powered by Bun and Playwright GitHub - Grimm67123/grimmbot: The self-improving sandboxed and open-source AI agent. With persistent memory and scheduling. GitHub - whitevanillaskies/whitebloom: Local whiteboard that blooms. GitHub - hwdsl2/docker-whisper: Docker image for a self-hosted Whisper speech-to-text server with speaker diarization and OpenAI-compatible transcription and translation APIs. Powered by faster-whisper. Supports all Whisper models, NVIDIA GPU (CUDA) acceleration, JSON/SRT/VTT output, SSE streaming, offline mode, and multi-arch (amd64, arm64). GitHub - yisding/reviewwiggum GitHub - MarwanAlsoltany/serrors: Structured errors for Go: sentinel hierarchies, typed data, custom formatting, and slog integration. GitHub - soatok/age-php GitHub - Luthiraa/markitme GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits GitHub - tombedor/excalicharts GitHub - wh1le/excalidraw-edit: Open and edit .excalidraw files from the terminal. Offline, auto-saves to disk. MalExt Sentry - Malicious Extension Scanner - Chrome 应用商店 GitHub - syi0808/asciianimesvg: Generate animated ASCII art SVGs from text. CLI, Rust library, WASM, and web editor. GitHub - zaina-ml/ml_forge: A visual-based graph node editor for training computer vision models. GitHub - anakin87/llm-rl-environments-lil-course: 🌱 A little course on Reinforcement Learning Environments for evaluating and training Language Models GitHub - takaakit/superpowers-uml: Superpowers-UML modifies Superpowers to ensure a software development workflow in which AI agents design through UML modeling. AdriByte Studio - Sviluppo Web e Soluzioni Digitali GitHub - chouligi/angel-copilot: Your personalized Angel Investment Advisor Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 GitHub - agenteractai/lodmem: Level Of Detail Context Management for Agents GitHub - ostefani/subnetlens: A fast, concurrent network scanner with a TUI and plain-text CLI, built in Go. It discovers live hosts on your network, scans their open ports, resolves hostnames, and fingerprints operating systems—delivered. Cyber Pulse: Agentic Intel - Apps on Google Play Whisper API: Self-Hostable Speech to Text Transcription The Agent-Web Protocol Stack: A Research Thesis GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs Show HN: Pardonned.com – A searchable database of US Pardons GitHub - patrickdappollonio/dux: Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do. kMC Crystal Simulator Show HN: HyperFlow – A self-improving agent framework built on LangGraph GitHub - stef41/vibescore: 🎵 Grade your vibe-coded project. One command, instant letter grade across security, quality, dependencies, and testing. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. imgur.com GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. GitHub - nowork-studio/toprank: Open-source Claude Code skills for SEO, SEM, Google Ads GitHub - tacomanator/sash: Lightweight macOS menu bar app for reliably cycling through windows of the current application. Appents | Social Media Management for Product-First Teams GitHub - pnhoang/youtube-spam-blocker: Automatically detects and hides spam messages in YouTube Live chat. Set rate limits, keyword filters, and block repeat offenders. GitHub - decisionnode/DecisionNode: CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable. GitHub - AvaCodeSolutions/django-email-learning: An open source Django app for creating email-based learning platforms with IMAP integration and React frontend components. The $100K Gap in Kubernetes Security Tooling Function Calling Harness: From 6.75% to 100%
GitHub - rishipratap10/memory-guardian
rishipratap1 · 2026-04-28 · via Hacker News: Show HN

Memory governance for AI agents.

Most agent memory layers are passive storage. Memory Guardian is an active governance layer — it controls what gets stored, what gets retrieved, how memories age, and what contradicts what — with full explainability at every step.


The problem

AI agents with persistent memory break in predictable ways:

  • Duplicate facts accumulate until retrieval becomes noise
  • Conflicting preferences coexist with no resolution path
  • Stale memories from months ago outrank fresh ones
  • Retrieval is a black box — no way to know why a memory was selected
  • Quality degrades the longer an agent runs in production

In consumer apps, getting this wrong is a bad experience. In regulated environments — wealth management, KYC, claims, credit — getting this wrong is a suitability breach, a compliance failure, or a mis-sold product.


What Memory Guardian does differently

Capability Mem0 Zep Letta agentmemory Memory Guardian
Conflict detection Yes Yes Partial Yes Yes
Explainable retrieval (why_selected) No No No No Yes
Retrieval decision trace per stage No No No No Yes
Score decay + archival lifecycle No Partial Partial Yes (local) Yes
Consolidation of redundant memories Partial Partial No No Yes
Pinned memory (survives decay) No No No No Yes
NLI conflict detection No No No No Yes
Strict multi-tenant isolation at API layer Yes Yes No No Yes
Framework-agnostic production API Yes Yes No No Yes

Core features

Intelligent ingestion

Every memory write goes through enrichment, deduplication, and type normalisation before persistence. Two dedup paths run in sequence — exact match on normalised content, then vector-similarity match against nearby tenant memories. Noise does not enter the store.

Supported canonical memory types: fact, preference, episodic, instruction, consolidated. Aliases are normalised automatically (prefpreference, episodeepisodic, etc.). Unknown types are rejected with HTTP 422.

Task-aware retrieval

Retrieval combines four signals into a final score:

  • Semantic similarity — vector distance from query embedding
  • Importance — priority-weighted score from metadata
  • Recency — exponential decay with 30-day half-life; uses last_accessed_at where available
  • Frequency — logarithmic reuse score, capped at 20 accesses with a 21-day half-life to prevent runaway dominance

Returns ranked, deduplicated, relevant memories. Archived memories are excluded. Reranker applies after base scoring with deterministic fallback if the provider fails.

Explainable ranking

Every retrieved memory includes:

  • score_breakdown — per-signal contributions (similarity, importance, recency, frequency)
  • decision_trace — stage-by-stage trace: candidate generation → scoring → rerank → final order
  • why_selected — human-readable reasons generated from the actual executed path

This is not post-hoc explanation. The trace reflects what the system actually did.

Conflict detection — three providers

Heuristic (default, zero dependencies) Polarity analysis over shared topic tokens. Detects opposite-sentiment statements about the same subjects — e.g. "user likes X" vs "user hates X".

NLI — Natural Language Inference (optional, local) Uses microsoft/deberta-v3-small-mnli via HuggingFace transformers. Runs a text-classification pipeline on each candidate memory pair. Flags pairs where the contradiction label score exceeds a configurable threshold (default 0.8). Requires requirements-ml.txt. Model downloads on first use.

LLM (optional, OpenAI-compatible) Sends each candidate pair to an LLM with a structured prompt. Returns is_conflict, reason, conflict_type, and shared_topics. Most semantically capable. Works with any OpenAI-compatible endpoint including HuggingFace inference, Ollama, and others.

All providers fall back to heuristic automatically on failure. Memory writes are never rolled back if conflict analysis fails — the write path is failure-safe by design. Conflicts are persisted as first-class objects with canonical pair handling — no duplicate conflict records per pair.

Memory lifecycle

  • Decay — importance scores reduce over time using configurable heuristic or LLM policy. Pinned memories are always preserved regardless of score.
  • Archival — inactive low-importance memories are archived automatically. Archived memories are excluded from all retrieval.
  • Recency signalslast_accessed_at is updated atomically on retrieval. Lifecycle decisions use real access history, not just creation time.

Consolidation

  • Clusters similar active memories within strict scope boundaries (tenant_id + user_id + agent_id + session_id)
  • Generates a canonical consolidated memory via configurable summariser (heuristic or LLM)
  • Archives originals with consolidated_into trace metadata
  • Prevents recursive consolidation — memories with memory_type=consolidated are excluded from future consolidation input by default

Tenant isolation

  • X-Tenant-Id header enforced at API boundary — missing or blank returns 401/400
  • All repository queries scoped by tenant_id
  • No cross-tenant retrieval, conflict reads, or admin access possible by design
  • Admin endpoints require X-Is-Admin: true separately

FSI and regulated environment use cases

Memory Guardian's architecture maps directly to the memory governance requirements of regulated industries.

Wealth management suitability A client's stated risk appetite changes over time. Without conflict detection, both the old and new preference coexist with no governed resolution. Memory Guardian persists the contradiction as a first-class conflict object, flags it for review, and surfaces the most recent preference on retrieval with a full decision trace — your explainability record under MiFID II suitability requirements.

KYC / AML profiling Resolved sanctions flags and stale risk classifications should not carry the same weight as fresh transaction signals. Memory Guardian decays soft signals automatically, pins formal risk decisions permanently, and detects when new evidence contradicts a stored classification — triggering review rather than silent coexistence.

Claims handling Contradicting customer statements across multiple touchpoints are stored as conflict pairs with canonical traces — the audit trail needed if a case goes to dispute.

Credit underwriting Stale financial snapshots decay automatically. Covenant breaches and credit committee decisions are pinned permanently. Quarterly updates consolidate into a clean current-state picture.

Trade surveillance Investigated and cleared flags do not dominate current risk profiles. Lifecycle archival retires resolved low-value memories. Every retrieval decision is traceable.

Memory Guardian is early-stage open source software. These use cases reflect the architectural design intent, not production deployments. If you are building agent systems in financial services and recognise these problems, we want to hear from you.


Quickstart

With Docker Compose

git clone https://github.com/your-org/memory-guardian
cd memory-guardian
cp .env.example .env
docker compose up --build -d db
docker compose run --rm migrate
docker compose up --build -d api

Without Docker

# Python 3.12 required
pip install -r requirements-dev.txt

# Optional: NLI conflict detection (downloads DeBERTa model on first use ~500MB)
pip install -r requirements-ml.txt

cp .env.example .env
# Start PostgreSQL with pgvector, then:
alembic upgrade head
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000

Configuration

Copy .env.example to .env. Key variables:

# Environment
ENVIRONMENT=local
ALLOW_LOCAL_STUB_AUTH=true

# Database
DATABASE_URL=postgresql+asyncpg://user:pass@localhost:5432/memory_guardian

# Embedding
# Set EMBEDDING_DIMENSION to match your model's actual output size exactly.
# HuggingFace free models typically output 64–384 dimensions.
# OpenAI text-embedding-3-small outputs up to 1536.
EMBEDDING_PROVIDER=llm
EMBEDDING_DIMENSION=64
LLM_EMBEDDING_API_TOKEN=...
LLM_EMBEDDING_BASE_URL=...      # HuggingFace inference endpoint or OpenAI-compatible URL
LLM_EMBEDDING_MODEL=...

# Conflict detection
CONFLICT_DETECTION_PROVIDER=llm  # llm | nli | heuristic
# NLI requires: pip install -r requirements-ml.txt

# Other providers
RERANKER_PROVIDER=llm
SUMMARIZER_PROVIDER=llm
INGESTION_ENRICHER_PROVIDER=llm
DEDUPE_PROVIDER=heuristic
MAINTENANCE_POLICY_PROVIDER=heuristic
CONSOLIDATION_QUALITY_PROVIDER=llm

# LLM API (OpenAI-compatible — works with HuggingFace, Ollama, OpenAI, etc.)
LLM_API_KEY=...
LLM_BASE_URL=...

Provider options and fallback

Every provider falls back to heuristic automatically on startup or request failure. The system never crashes on provider failure.

Variable Default Options
EMBEDDING_PROVIDER llm llm, heuristic (tests only)
CONFLICT_DETECTION_PROVIDER heuristic heuristic, nli, llm
RERANKER_PROVIDER heuristic heuristic, llm
INGESTION_ENRICHER_PROVIDER heuristic heuristic, llm
DEDUPE_PROVIDER off off, heuristic, llm
MAINTENANCE_POLICY_PROVIDER heuristic heuristic, llm
SUMMARIZER_PROVIDER heuristic heuristic, llm
CONSOLIDATION_QUALITY_PROVIDER heuristic heuristic, llm

Embedding dimension note

EMBEDDING_DIMENSION must match your active model's output size exactly. Retrieval and dedup only compare vectors with matching dimensions — dimension mismatch is enforced at query time. You can switch models and dimensions without breaking existing rows; old vectors simply won't be compared against new-dimension queries.


API surface

GET  /health

POST /api/v1/memories                         Store a memory
POST /api/v1/retrieve                         Retrieve memories for a query
GET  /api/v1/conflicts                        List conflicts for a user
GET  /api/v1/memories/{memory_id}/explain     Full explain payload

POST /api/v1/maintenance/decay                Run decay pass (admin)
POST /api/v1/maintenance/consolidate          Run consolidation pass (admin)

GET  /api/v1/admin/memories                   Memory explorer (admin, filterable, paginated)
GET  /api/v1/admin/memories/stats             Aggregate stats (admin)
GET  /api/v1/admin/memories/{memory_id}       Single memory with explain (admin)
GET  /api/v1/admin/conflicts                  Conflict list (admin, filterable, paginated)

Full OpenAPI spec at /docs (Swagger UI) or /openapi.json when running. Export committed spec:

python scripts/export_swagger_yaml.py

Example: store a memory

curl -X POST http://localhost:8000/api/v1/memories \
  -H "Content-Type: application/json" \
  -H "X-Subject: user-001" \
  -H "X-Tenant-Id: tenant-finance" \
  -d '{
    "user_id": "user-001",
    "content": "Client stated conservative risk appetite, no equities",
    "memory_type": "preference",
    "metadata": { "priority": "high", "pinned": true }
  }'

Example: retrieve with explanation

curl -X POST http://localhost:8000/api/v1/retrieve \
  -H "Content-Type: application/json" \
  -H "X-Subject: user-001" \
  -H "X-Tenant-Id: tenant-finance" \
  -d '{
    "user_id": "user-001",
    "query": "What is this client'\''s risk profile?",
    "top_k": 5
  }'

Every returned memory includes why_selected and score_breakdown.


Auth

Auth is fail-closed:

  • ENVIRONMENT defaults to production
  • Stub auth only active when ENVIRONMENT=local and ALLOW_LOCAL_STUB_AUTH=true
  • In local stub mode: X-Subject and X-Tenant-Id are both required
  • Admin endpoints require X-Is-Admin: true
  • Production use requires integrating a real JWT/OIDC provider

Architecture

app/api           HTTP routing, request/response, dependency injection
app/schemas       Pydantic validation
app/services      Domain workflows — ingestion, retrieval, conflict, lifecycle, consolidation
app/repositories  DB query layer, tenant-scoped
app/models        SQLAlchemy ORM models
app/core          Config, logging, exception contracts
alembic/          Schema migrations
tests/            Unit + integration coverage
admin_ui/         Streamlit memory inspector (optional)

Stack: FastAPI · SQLAlchemy 2.x async · PostgreSQL + pgvector · Alembic · Pydantic v2 · Uvicorn · Docker


Data model

Table Purpose
memories Tenant-scoped records with embeddings, importance score, reuse/access metadata
memory_conflicts Contradiction links between pairs — canonical pair uniqueness enforced
retrieval_logs Per-query retrieval outcomes and explanation payloads

Testing

pytest -q                    # all tests
pytest -q tests/bdd          # BDD acceptance scenarios
pytest -q tests/technical    # API contract tests
pytest -q -m bdd
pytest -q -m technical

Integration tests use ephemeral PostgreSQL + pgvector containers. Docker daemon required.

E2E simulation

python scripts/run_agent_e2e_simulation.py \
  --base-url http://127.0.0.1:8000 \
  --api-prefix /api/v1

Exercises ingestion, dedupe, retrieval explainability, tenant isolation, conflicts, maintenance, consolidation, and explain. Fails on any 5xx response.

Finance advisor test agent

# Deterministic mode
python scripts/run_finance_test_agent.py \
  --base-url http://127.0.0.1:8000 \
  --tenant-id finance-demo \
  --subject finance-test-agent \
  --user-message "I want to save £30,000 for a house deposit by next year."

# LLM mode
LLM_API_KEY=... python scripts/run_finance_test_agent.py \
  --mode llm \
  --llm-model gpt-4.1-mini \
  --user-message "I filed my tax return and signed a £12,000 car loan."

# Persist extracted memories back to Memory Guardian
python scripts/run_finance_test_agent.py \
  --user-message "I prefer low-risk index funds and avoid credit card debt." \
  --persist

Finance scenario matrix

python scripts/run_finance_test_agent_scenarios.py \
  --base-url http://127.0.0.1:8000 \
  --output-json /tmp/finance_scenario_report.json

Covers: health and auth contracts, memory persistence, contradiction detection, dedupe, pinned memory, tenant isolation, admin access control, invalid payload rejection.


Memory Inspector (Admin UI)

A Streamlit console for retrieval debugging, score trace inspection, conflict review, and lifecycle monitoring.

pip install -r admin_ui/requirements.txt

# .env
ADMIN_UI_ENABLED=true
ADMIN_UI_PASSWORD=<your_password>
MEMORY_GUARDIAN_API_BASE_URL=http://127.0.0.1:8000

streamlit run admin_ui/app.py
# Open http://127.0.0.1:8501

Status

MVP backend — ready for integration and pilot use.

  • Memory ingestion with enrichment and deduplication
  • Task-aware retrieval with multi-signal scoring
  • Explainable retrieval — why_selected and per-stage decision trace
  • Conflict detection — heuristic, NLI (DeBERTa via HuggingFace), and LLM providers
  • Failure-safe write path — memory writes never rolled back on conflict analysis failure
  • Score decay and archival lifecycle
  • Pinned memory — preserved through decay and archival
  • Consolidation with recursive prevention and trace metadata
  • Strict multi-tenant isolation at API and repository layers
  • Provider resilience — all providers fall back to heuristic on failure
  • Admin UI — Memory Inspector (Streamlit)
  • BDD and integration test coverage
  • CI — lint, tests, migration check, secret scan
  • Production JWT/OIDC auth provider
  • Distributed scheduling for maintenance jobs
  • End-user product frontend

Contributing

See CONTRIBUTING.md, SECURITY.md, CODE_OF_CONDUCT.md.

Before tagging a release:

bash scripts/release_preflight.sh

License

Apache 2.0

Copyright 2026 Memory Guardian Contributors. Licensed under the Apache License, Version 2.0. You may use, modify, and distribute this software freely. Any modifications must carry prominent notices. Patent rights are granted — and terminate automatically if you initiate patent litigation against the project.