refactor: consolidate hypotheses, agent_signals, and process_logs into action-based smart tools
This commit is contained in:
1 parent
79209da711
commit
3b146f91c2
17 files changed
+438
-359
No files matched your search
@@ -29,7 +29,7 @@ To prevent graph fragmentation and ensure optimal LLM tokenization and retrieval
|
||||
|
||||
## 🛠️ Consolidated Smart MCP Tools
|
||||
|
||||
The server consolidates granular single-purpose tools into 8 concise, action-oriented smart domain handlers with zero prefix clutter:
|
||||
The server consolidates granular single-purpose tools into 11 concise, action-oriented smart domain handlers with zero prefix clutter:
|
||||
|
||||
* **`tasks`**: Complete task lifecycle management (`add`, `update`, `delete`, `list`, `set_criteria`, `verify`).
|
||||
* **`milestones`**: Milestone tracking (`add`, `update`, `list`).
|
||||
@@ -39,7 +39,9 @@ The server consolidates granular single-purpose tools into 8 concise, action-ori
|
||||
* **`tech_debt`**: Engineering technical debt backlog (`log`, `resolve`, `list`).
|
||||
* **`environment`**: Infrastructure & tool fingerprints tracking (`update_fingerprint`, `read_fingerprint`, `log_requirement`, `register`, `get_details`).
|
||||
* **`clipboard`**: Cross-OS clipboard management (`read`, `write`).
|
||||
|
||||
* **`hypotheses`**: Diagnostic hypothesis memory (`log`, `query`).
|
||||
* **`agent_signals`**: Inter-agent signal bus (`broadcast`, `query`).
|
||||
* **`process_logs`**: Process and daemon log management (`watch`, `get`, `clear`).
|
||||
---
|
||||
|
||||
## Key Features & Capabilities
|
||||
@@ -79,10 +81,16 @@ Traces the full causal chain linking tasks, ADRs, audit ledger entries, git comm
|
||||
### 🎯 Topological Unblocked Task Resolver (`get_next_actionable_tasks`)
|
||||
Evaluates task dependency graphs and returns unblocked, ready-to-run tasks for subagent execution.
|
||||
|
||||
### 🧠 Chain-of-Thought & Diagnostic Hypothesis Memory (`log_hypothesis` / `query_hypotheses`)
|
||||
Records structured diagnostic hypotheses, test evidence, and verification statuses to preserve reasoning across sessions.
|
||||
### 🧠 Chain-of-Thought & Diagnostic Hypothesis Memory (`hypotheses`)
|
||||
Records structured diagnostic hypotheses, test evidence, and verification statuses (actions: `log`, `query`) to preserve reasoning across sessions.
|
||||
|
||||
### 📡 Inter-Agent Signal Bus (`agent_signals`)
|
||||
Facilitates real-time peer-to-peer signal exchange between autonomous subagents (actions: `broadcast`, `query`) with TTL expiration and activity feeds.
|
||||
|
||||
### 🔒 Resilient Storage & Serde Parameter Tolerances
|
||||
### 📑 Process & Daemon Log Management (`process_logs`)
|
||||
Registers and tails live process and daemon log files with UTF-8 safe seeking (actions: `watch`, `get`, `clear`) to diagnose runtime behavior without reading multi-megabyte files into chat context.
|
||||
|
||||
* **Explicit Fail-Fast Persistence Safety**: Replaced unsafe silent fallback to temporary databases (`/tmp/mcp_store_fallback_*`) with an explicit open retry and fail-fast panic unless `MCP_ALLOW_TMP_FALLBACK=1` is explicitly set, preventing silent data loss.
|
||||
* **Store Write Lock Minimization**: Releases write lock immediately following in-memory mutation, serializing JSON payloads under read locks to allow non-blocking concurrent readers.
|
||||
* **Two-Phase Graph Condensation**: Employs a non-destructive 2-phase commit in `condense_graph_worker` (reading without clearing, inserting into the knowledge graph, and only pruning summarized records by timestamp/content upon verified success).
|
||||
@@ -185,5 +193,5 @@ To view the dashboard, open your browser at:
|
||||
* **Bounded Telemetry Detail Records**: Activity and terminal telemetry buffers enforce a 4,000 character truncation ceiling on log details (`ActivityRecord`, `TerminalHistory`) to prevent unbounded RAM growth under heavy RPC traffic.
|
||||
* **Zero-Allocation Stream Formatting**: Graph condensation loops (`condense_graph_worker`) use `std::fmt::Write` string stream buffers to format subgraphs without allocating temporary string intermediates.
|
||||
* **SIMD-Friendly Single-Pass Cosine Similarity**: `cosine_similarity` calculates dot product and Euclidean norm squares in a single iterator fold pass over float vectors, enabling SIMD compiler auto-vectorization.
|
||||
* **Safe Stream Decoding on Log Tails**: Log tail operations (`get_recent_logs`) read raw bytes and decode using lossy UTF-8 conversion (`String::from_utf8_lossy`) to ensure resilience when seeking across multi-byte UTF-8 boundaries.
|
||||
* **Serde Parameter & Enum Tolerance**: All action enums (`StickyNoteAction`, `SnippetSearchMode`, `Relation`) support case-insensitive variants and field aliases (`source`/`from`, `target`/`to`, `relationType`/`relation_type`) to ensure seamless execution when LLMs pass varied string formatting.
|
||||
* **Safe Stream Decoding on Log Tails**: Process log tailing (`process_logs`, action: `get`) reads raw bytes and decodes using lossy UTF-8 conversion (`String::from_utf8_lossy`) to ensure resilience when seeking across multi-byte UTF-8 boundaries.
|
||||
* **Serde Parameter & Enum Tolerance**: All action enums (`HandoffMemoAction`, `HypothesisAction`, `AgentSignalAction`, `ProcessLogAction`, `SnippetSearchMode`, `Relation`) support case-insensitive variants and field aliases (`source`/`from`, `target`/`to`, `relationType`/`relation_type`) to ensure seamless execution when LLMs pass varied string formatting.
|
||||
Reference in new issue
Block a user