diff --git a/graph/configurations/cargo-check-post-edit-hook-for-rust-files-in-claude-code-a2d02a.md b/graph/configurations/cargo-check-post-edit-hook-for-rust-files-in-claude-code-a2d02a.md index 68a2e75c94e..d11882f6cb3 100644 --- a/graph/configurations/cargo-check-post-edit-hook-for-rust-files-in-claude-code-a2d02a.md +++ b/graph/configurations/cargo-check-post-edit-hook-for-rust-files-in-claude-code-a2d02a.md @@ -6,7 +6,7 @@ tags: [sba-scouting, rust, claude-code, hooks, linting, cargo, configuration, de importance: 0.65 confidence: 0.8 created: "2026-03-02T00:33:26.804471+00:00" -updated: "2026-03-02T02:09:21.572942+00:00" +updated: "2026-03-02T02:20:38.872040+00:00" relations: - target: 73646e80-a640-4316-b7c6-54a4330f1b28 type: RELATED_TO @@ -38,6 +38,11 @@ relations: direction: incoming strength: 0.8 edge_id: ceebc50e-6db0-444e-b31d-36344913dc12 + - target: be0bda86-d893-4f86-97c4-0ca4e1073121 + type: SOLVES + direction: incoming + strength: 0.95 + edge_id: b5623458-9ace-43ae-ae7e-101d465498ee --- # Cargo Check Post-Edit Hook Configuration diff --git a/graph/edges/fix-claude-code-posttooluse-ho--SOLVES--cargo-check-post-edit-hook-for-b56234.md b/graph/edges/fix-claude-code-posttooluse-ho--SOLVES--cargo-check-post-edit-hook-for-b56234.md new file mode 100644 index 00000000000..d9290b654b8 --- /dev/null +++ b/graph/edges/fix-claude-code-posttooluse-ho--SOLVES--cargo-check-post-edit-hook-for-b56234.md @@ -0,0 +1,13 @@ +--- +id: b5623458-9ace-43ae-ae7e-101d465498ee +type: SOLVES +from_id: be0bda86-d893-4f86-97c4-0ca4e1073121 +from_title: "Fix: Claude Code PostToolUse hook correct JSON format" +to_id: a2d02aea-07fd-4528-8158-f2f42a23a2dd +to_title: "Cargo check post-edit hook for Rust files in Claude Code" +strength: 0.95 +created: "2026-03-02T02:20:38.872040+00:00" +updated: "2026-03-02T02:20:38.872040+00:00" +--- + +The PostToolUse hook format fix directly solved the broken cargo check hook configuration. The original config used incorrect field names (tool_name, file_glob as object fields) and wrong event key (PostToolCall). The fix provided the correct format: PostToolUse event, matcher as plain regex string, hooks array with type:command. diff --git a/graph/fixes/fix-claude-code-posttooluse-hook-correct-json-format-be0bda.md b/graph/fixes/fix-claude-code-posttooluse-hook-correct-json-format-be0bda.md index a15394dfb7b..4f079211804 100644 --- a/graph/fixes/fix-claude-code-posttooluse-hook-correct-json-format-be0bda.md +++ b/graph/fixes/fix-claude-code-posttooluse-hook-correct-json-format-be0bda.md @@ -6,7 +6,7 @@ tags: [sba-scouting, rust, claude-code, hooks, configuration, fix] importance: 0.8 confidence: 0.8 created: "2026-03-02T02:08:35.272129+00:00" -updated: "2026-03-02T02:09:21.572942+00:00" +updated: "2026-03-02T02:20:38.872040+00:00" relations: - target: 62ee21e8-2b56-4d38-a73d-47e2724f08c6 type: BUILDS_ON @@ -28,6 +28,11 @@ relations: direction: outgoing strength: 0.8 edge_id: ceebc50e-6db0-444e-b31d-36344913dc12 + - target: a2d02aea-07fd-4528-8158-f2f42a23a2dd + type: SOLVES + direction: outgoing + strength: 0.95 + edge_id: b5623458-9ace-43ae-ae7e-101d465498ee --- # Claude Code PostToolUse Hook Correct Format