Repository navigation
feat(mcp,dashboard): add update_memory, wire redact_secrets, harden dashboard and concurrency - #92
Open
michael-denyer wants to merge 1 commit into
Conversation
…ard and concurrency
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Close security, multi-process concurrency, dashboard isolation, and MCP editing gaps on top of the retrieval and maintenance fixes.
What changed
Storage.update_memoryand theupdate_memoryMCP tool to edit content, tags, category, or type in place while preserving counts, trust, hot status, and graph edges; reject duplicate content withValidationError.redact_secretsintostore_memoryandupdate_memory(enabled by default viaMEMORY_MCP_REDACT_SECRETS=true) and restrict its URL-credential regex to authority characters so URLs plus@tokens stay intact.Literalenum schemas on MCP tools, project/tag/category filters onlist_memories, and defaultbootstrap_projecttopromote_to_hot=Falsewith aroot_pathtraversal guard.hot_cache_metricswith atomic SQL counters incremented inside the caller transaction.CachedEmbeddingProvidera lockedOrderedDict, lock lazy model and classifier init, and guardprovider=Noneinml_classification.dashboard/app.py: passread_only=Truetorecall, readstorage.db_path, reject cross-origin mutating requests with HTTP 403, run sync routes on the threadpool, return 404 on missing IDs, and move raw SQL ontoStorage.Scope
Config, redaction, embeddings, ML classifier, storage hot cache/CRUD/search/relationships/sessions/injection tracking, MCP tools, FastAPI dashboard, and tests.
Tradeoffs
verify_same_origin_for_mutationschecksOrigin/Refererhost and port when present while allowing headerless requests so local CLI tools andTestClientkeep working.Blast Radius
MCP tool surface expands from 16 to 17 tools (
update_memory).bootstrap_projectno longer auto-promotes chunks unlesspromote_to_hot=True.Verification
pytest -q: 476 passed, 1 skipped (0 warnings at stack tip), including new tests inTestPR2MCPErgonomicsAndSafetyandTestDashboardHardening.ruff check src/ tests/andruff format --check src/ tests/: passed.