Repository navigation
fix(telemetry): drop skill, tool and agent names that look like paths - #1878
Merged
Merged
Conversation
A stored name now has to start with a letter or digit, contain no .. and have at most two / separated parts, on top of the existing charset and length check. Signed-off-by: igorjs <2278164+igorjs@users.noreply.github.com>
igorjs
marked this pull request as ready for review
November 19, 2026 09:56
igorjs
enabled auto-merge
November 19, 2026 09:56
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.
Summary
The OTLP reader already drops every attribute outside an allowlist and checks the skill, tool and agent names for a safe charset. This tightens that check so a path, a flag or a command that reaches a name field is dropped instead of stored. A name must now start with a letter or digit, contain no
.., and have at most two/separated parts.This comes first because the next PR lets Claude Code log tool details. With that on, Claude Code puts the real skill name, and also commands, file paths and tool input, in the events it sends. The collector reads only the name fields, and this keeps a tool input out of the store even if one ever lands in them.
Notes for reviewers
cargo test -p playbook-telemetry: names that look like paths, flags or commands are dropped for skills and tools; real plugin names such asplaybook:reviewandplugin/skillare kept; a command and a file path logged beside the tool name are never stored.cargo clippy --workspace --all-targets -- -D warningsandcargo fmt --check.