Skip to content

fix(telemetry): drop skill, tool and agent names that look like paths - #1878

Merged
igorjs merged 1 commit into
mainfrom
feat/telemetry-name-check
Nov 19, 2026
Merged

igorjs merged 1 commit into
mainfrom
feat/telemetry-name-check

Conversation

@igorjs

@igorjs igorjs commented Nov 19, 2026

Copy link
Copy Markdown
Member

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 as playbook:review and plugin/skill are kept; a command and a file path logged beside the tool name are never stored.
  • cargo clippy --workspace --all-targets -- -D warnings and cargo fmt --check.

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
igorjs marked this pull request as ready for review November 19, 2026 09:56
@igorjs
igorjs enabled auto-merge November 19, 2026 09:56
@igorjs
igorjs added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 3a29005 Nov 19, 2026
46 checks passed
@igorjs
igorjs deleted the feat/telemetry-name-check branch November 19, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant