Repository navigation
Add local skill discovery and scoped availability tracing - #131
Merged
Merged
Conversation
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.
TL;DRAdd local skill discovery and scoped skill availability tracing.
WhyRuby agents can report available skill names and versions through explicit lists or an opt-in catalog. Nested scopes preserve override precedence and empty lists without sending skill data in baggage.
ChecklistVerificationRSpec and RuboCop passed with 97.17% coverage. Live OTLP ingestion and CLI observation readback passed; browser checks confirmed skill names, versions, overrides, clearing, and scope restoration.
Note
Medium Risk
Touches core propagation, span processor, and exported OTel attributes; behavior changes could affect downstream traces if callers rely on old attribute sets.
Overview
Adds local agent skill discovery and traces which skills are in scope without network calls.
Langfuse.discover_skillswalks immediate directories (withSKILL.mdand optionallangfuse-skills.lock), andconfig.skills = { available: ... }snapshots a catalog at tracing startup.Propagates availability through OpenTelemetry context, not baggage.
Langfuse.propagate_attributesacceptsskills_available(override, clear with[], inherit withnil) andattach_skills(opt-in catalog on new spans). The span processor setslangfuse.observation.skills_availableon recording spans, with explicit span attributes and propagated lists ahead of the catalog.Documentation covers discovery rules, lock precedence, and nesting; new RSpec exercises discovery edge cases and propagation precedence.
Reviewed by Cursor Bugbot for commit b65fe4a. Bugbot is set up for automated code reviews on this repo. Configure here.