Riz Ashraf
2024d9521b
refactor: Enforce agentic API design across mcp-memory handlers
...
- Replaced unconstrained JSON serialization (serde_json) with dense YAML (serde_yaml) to prevent context window bloat (ADR-0122).
- Replaced 404/empty array dead ends with token-efficient LLM fallback hints in router and meta/graph handlers.
- Ensured graceful error fallbacks instead of hard crashes.
2026-10-10 19:39:08 +01:00
Riz Ashraf
3ee95f5c39
Format massive JSON arrays into Markdown natively to avoid context blowouts
2026-10-10 18:45:00 +01:00
Riz Ashraf
760ebfcd40
perf: auto-populate git context natively to avoid token waste
...
- Added get_git_context() to utils.rs using git2 to natively fetch branch, commit, and repo_name without CLI overhead.
- Wired native auto-population into LogCodeChangeHandler, LogErrorFixHandler, TechDebtHandler, TasksHandler, MilestonesHandler, AutoSessionCheckpointHandler, and HandoffMemosHandler.
- Eliminates the need for the LLM to waste repetitive background turns running git rev-parse HEAD and git branch --show-current via terminal shell commands just to feed the MCP logging tools.
2026-10-10 18:32:02 +01:00
Riz Ashraf
5583132cdc
feat: add FetchUrlTool with proxy support and cross-OS path sanitization
...
- Implement native FetchUrlTool using reqwest for HTTP fetching, which respects HTTP_PROXY, HTTPS_PROXY, and NO_PROXY natively.
- Introduce sanitize_path in utils to bidirectionally handle Windows/WSL path mapping, applying it to various search/git handlers.
- Update .gitignore to exclude mcp_store.redb and tantivy_index.
2026-10-10 17:51:56 +01:00
Riz Ashraf
250b70d329
chore: strictly deny unused imports workspace-wide
...
- Added `unused_imports = "deny"` to workspace lints in Cargo.toml
- Opted-in all crates to inherit workspace lints
- Fixed resulting unused imports in `dump_schema.rs`
2026-10-10 14:30:49 +01:00
Riz Ashraf
9546ca4c04
test: update assertions to match markdown refactor of GetProjectHealthTool
2026-10-10 13:42:34 +01:00
Riz Ashraf
b5f1da3c0e
refactor: optimize LLM context window by returning curated Markdown instead of raw YAML dumps for query tools
2026-10-10 13:36:35 +01:00
Riz Ashraf
de060c4db4
fix: restore AppError::Internal for AST parser error, keeping BadRequest for JSON schema validation
2026-10-10 13:10:15 +01:00
Riz Ashraf
7c9e901c12
style: Apply cargo fix for unused variables
2026-10-10 11:12:03 +01:00
Riz Ashraf
e006ef1220
perf(mcp): Replace redundant LLM usages with deterministic logic
...
- Refactored memory_consolidation_worker to use purely deterministic string normalization ((N)$ regex stripping & lowercase) instead of passing graph entities to Ollama for duplication detection.
- Removed redundant Ollama architectural summarization from log_code_change tool since the agent already provides a descriptive summary.
- Removed redundant Ollama fix summarization from log_error_fix tool since the agent already provides a solution string.
2026-10-10 10:58:50 +01:00
Riz Ashraf
2cfaeda0cb
Refactor remaining tools to tagged enums
...
Refactored DecisionsTool, TechDebtTool, ManageCheckpointTool, HypothesesTool, AgentSignalsTool to use tagged enums for precise JSON schemas, and updated their handlers.
2026-10-10 10:23:58 +01:00
Riz Ashraf
8ff43487bc
fix: correct tests following strict removal of legacy json aliases
2026-10-10 08:24:42 +01:00
Riz Ashraf
3765e6b05d
chore: fix clippy warnings and run rustfmt
2026-10-09 00:39:50 +01:00
Riz Ashraf
fecd8bf33f
fix(tests): replace serde_json::from_str with serde_yaml::from_str for tool output assertions
2026-10-09 00:30:05 +01:00
Riz Ashraf
cb0c55775a
feat(mcp): switch to YAML serialization for tool outputs
...
- Replaced serde_json with serde_yaml in all handler endpoints.
- This drastically reduces token consumption for large list/graph responses by removing JSON braces and quotes.
2026-10-08 23:46:32 +01:00
Riz Ashraf
410b0c42ca
feat(ollama): enforce JSON logits & add nvim_buffer edit action
...
- Added format parameter to Ollama generate for JSON logit enforcement.
- Implemented safe edit action in nvim_buffer MCP tool to replace raw Lua.
2026-10-08 23:41:57 +01:00
Riz Ashraf
9d9e959744
chore: fix formatting and clippy lints
2026-10-08 23:01:38 +01:00
Riz Ashraf
35c802c1b8
perf: optimize store batch serialization, zero-clone semantic search, and lock contention
2026-10-07 22:14:53 +01:00
Riz Ashraf
8f924b793a
feat(reconciliation): implement deterministic state reconciliation engine and post-commit hook
...
- Implement ReconciliationEngine in server/src/handlers/reconciliation.rs
- Auto-transition ADRs to implemented, resolve tech debts, and cascade task unblocking
- Ingest git commit events via POST /api/git/commit and scripts/git-reconcile.py post-commit hook
- Add universal pagination, search filtering, and keyboard navigation to dashboard
- Implement non-destructive task TTL expiry sweeper and gate verification
- Implements: ADR-0102, ADR-0103
2026-10-07 19:00:44 +01:00
Riz Ashraf
ec977c24dd
feat(nvim,telemetry): implement ADR-0102 circuit breaker and ADR-0103 knowledge graph projection
2026-10-07 17:40:30 +01:00
Riz Ashraf
3d77e60a02
feat(embedding,notes): implement ADR-0056 Blake3 stable hashing and ADR-0057 priority-aware retention
2026-10-07 17:04:52 +01:00
Riz Ashraf
f546579596
feat(dashboard,adrs): enrich dashboard tabs with domain model parity and resolve consequence schema handling
2026-10-07 14:38:02 +01:00
Riz Ashraf
73c3d41c87
fix(dashboard,server): restore code change ledger UI and enrich model schema parity and pagination
2026-10-07 13:14:33 +01:00
Riz Ashraf
3b146f91c2
refactor: consolidate hypotheses, agent_signals, and process_logs into action-based smart tools
2026-10-07 12:00:20 +01:00
Riz Ashraf
79209da711
refactor: eradicate deprecated tools (sticky_notes, pinned_files, context_workspaces, pr_checklist, preferences) and dead code
2026-10-07 11:12:42 +01:00
Riz Ashraf
d80915635f
refactor: resolve critical concurrency, data loss, schema, and search audit passes
2026-10-07 07:09:28 +01:00
Riz Ashraf
e4a0fe72df
feat(embedding,vision): candle embeddings with offline fallback, on-demand clipboard vision capture, and concurrency audit
2026-10-07 06:36:09 +01:00
Riz Ashraf
5bd8b1587a
refactor: apply 5-pass audit optimizations across mcp-memory codebase
2026-10-06 06:05:38 +01:00
Riz Ashraf
924b6d09fa
refactor: address 5-pass audit findings for antipatterns, bottlenecks, memory efficiency, and LLM handlers
2026-10-05 21:44:10 +01:00
Riz Ashraf
19f9c7ace7
feat(dashboard): extract inline script to standalone dashboard.ts/js, add UI build/check recipes, and add route unit tests
2026-10-05 12:48:36 +01:00
Riz Ashraf
4b307b55b9
docs: update human and LLM docs and enhance tool/list schemas with actionable next steps
2026-10-05 11:22:55 +01:00
Riz Ashraf
961abb01e7
refactor: drop Manage prefix from consolidated smart MCP tools
2026-10-05 11:11:41 +01:00
Riz Ashraf
533adfd41b
refactor: consolidate nvim crates, extract server library, and update workspace dependencies
2026-10-04 01:42:59 +01:00
Riz Ashraf
a083719cf1
feat(server): refactor handlers, router, state management, and memory tools
2026-10-02 07:27:37 +01:00
Riz Ashraf
462f65f66d
refactor: Implement unified search abstraction, MemoryState refactoring, error handling, and unit test expansion
2026-10-01 08:37:52 +01:00
Riz Ashraf
a34554b7ff
Refactor: Dismantle MemoryState into semantic domain sub-structs
2026-09-30 21:13:03 +01:00
Riz Ashraf
0e866f2465
Refactor: Migrate unwrap calls to AppError in MCP handlers
2026-09-30 21:02:50 +01:00
Riz Ashraf
4e1a633dbd
Refactor: Fix clippy warnings and introduce AppError
2026-09-30 20:43:28 +01:00
Riz Ashraf
98a1716ac8
chore: fix clippy warnings, add embedding/omni_patch, update telemetry, and ignore temp files
2026-09-29 06:42:29 +01:00
Riz Ashraf
706e9ad172
style(clippy): auto-fix code style issues and unnecessary map_or allocations detected by cargo clippy
2026-09-27 22:38:08 +01:00
Riz Ashraf
febd48c65d
fix(mcp): prevent internal handler serialization errors from being silently discarded or defaulting to empty strings
2026-09-27 22:30:32 +01:00
Riz Ashraf
8f32a09399
fix(mcp): propagate internal serialization errors instead of silently swallowing them to prevent LLM hallucination
2026-09-27 22:19:43 +01:00
Riz Ashraf
54aead2151
Add proper lifecycle and superseding support for Architectural Decision Records
2026-09-27 10:01:46 +01:00
Riz Ashraf
70edfa4389
Add delete_decision tool for removing redundant ADRs
2026-09-27 09:57:04 +01:00
Riz Ashraf
4139d8fcc7
Add unit test for malformed Lucene query in OmniSearch
2026-09-27 09:46:08 +01:00
Riz Ashraf
01d3c22c57
Fix error swallowing by propagating JSON serialization errors to LLM
2026-09-27 09:44:04 +01:00
Riz Ashraf
48a1973ea6
Improve OmniSearch error handling to return Lucene syntax errors to LLM
2026-09-27 09:33:58 +01:00
Riz Ashraf
1ea635cdcc
Enhance OmniSearch for LLMs with limits and include_body flags
2026-09-27 09:31:58 +01:00
Riz Ashraf
4bae4e9c08
Test coverage and headless nvim bug fixes
2026-09-27 08:10:09 +01:00
Riz Ashraf
b1fc381107
fix(test): update test payloads to use snake_case after camelCase removal
2026-09-26 18:05:37 +01:00