Skip to content

Add local skill discovery and scoped availability tracing - #131

Merged
kxzk merged 3 commits into
mainfrom
feat/skill-availability
Nov 6, 2026
Merged

kxzk merged 3 commits into
mainfrom
feat/skill-availability

Conversation

@kxzk

@kxzk kxzk commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

TL;DR

Add local skill discovery and scoped skill availability tracing.

Why

Ruby 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.

Checklist

  • Has label
  • Has linked issue
  • Tests added for new behavior
  • Docs updated (if user-facing)

Verification

RSpec 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_skills walks immediate directories (with SKILL.md and optional langfuse-skills.lock), and config.skills = { available: ... } snapshots a catalog at tracing startup.

Propagates availability through OpenTelemetry context, not baggage. Langfuse.propagate_attributes accepts skills_available (override, clear with [], inherit with nil) and attach_skills (opt-in catalog on new spans). The span processor sets langfuse.observation.skills_available on 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.

@kxzk kxzk added the enhancement New feature or request label Nov 6, 2026
@simplepractice simplepractice deleted a comment from linear-code Bot Nov 6, 2026
@kxzk
kxzk merged commit 541e6cc into main Nov 6, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant