feat(evidence): wire arc-kit-au evidence graph into MCP query tools#76
Merged
Conversation
Closes #52. Adds 3 new actions to ledgerr_evidence tool: - summary: node counts by type, edge count, work queue summary - list_nodes: enumerate all nodes (optional filter by node type) - node_detail: full detail for a specific NodeId Updates published tool spec in contract.rs with new actions. Regenerates MCP contract artifacts.
Signed-off-by: Brian Horakh <35611074+elasticdotventures@users.noreply.github.com>
Member
|
@copilot MECE good faith critical review |
- Remove `#[cfg(feature = \"legacy\")]` gate from `unknown_tool_result`: `handle_external_tool` (compiled under `b00t`) called it, causing a compile error when `b00t` was activated without `legacy`. - Fix `NodeId::node_type()` missing \"vi\" → `ValidationIssue` arm: ValidationIssue nodes' NodeId prefix was not handled, returning `NodeType::Unknown` instead of `NodeType::ValidationIssue`. Adds a full round-trip test covering all 8 node-type prefixes. - Refactor `Summary` handler from O(8n) to O(n): Replace 8 separate `nodes_of_type()` linear scans with one pass building a `HashMap<&str, usize>` counter. - Extract `parse_evidence_node_type` and `evidence_node_type_label` as named module-level helpers (not inner functions). Eliminates duplicate string→NodeType mapping, makes them individually testable, and removes the `use arc_kit_au::NodeType` / `use arc_kit_au::NodeId` one-off imports inside match arms. - Simplify verbose `serde_json::Value::Number(serde_json::Number::from(...))` → `json!(count)` via the single-pass approach. Agent-Logs-Url: https://github.com/PromptExecution/l3dg3rr/sessions/deedd373-3e7a-48ea-8505-5d3994d9dfcd Co-authored-by: elasticdotventures <35611074+elasticdotventures@users.noreply.github.com>
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.
Closes #52.
Summary
Adds 3 new query actions to the existing
ledgerr_evidenceMCP tool, exposing the full arc-kit-au evidence graph through the MCP surface.New actions
Files changed: 4