chore: Add .sdk_metadata.json for sdk-meta catalog - #38
Open
jsonbailey wants to merge 6 commits into
Open
Conversation
kinyoklion
reviewed
Sep 1, 2026
kinyoklion
reviewed
Sep 1, 2026
kinyoklion
approved these changes
Sep 1, 2026
jsonbailey
commented
Sep 1, 2026
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.
Why
The
sdk-metarepo builds the SDK catalog by crawling every repo with thelaunchdarkly-sdktopic and reading its.sdk_metadata.json. This repo has never had one, so the Ruby AI SDK is absent fromnames.json,types.json,features.json, andrepos.json.A recent attempt to fix this for the AI SDKs by hand-editing sdk-meta's
products/directory did not survive, becauseproducts/is generated —generate-products.shdeletes and rebuilds it frommetadata.sqlite3, which is itself rebuilt from these files. Adding the driving file here is the durable fix.What
One new file. No source, build, or release changes.
{ "version": 1, "sdks": { "ruby-server-sdk-ai": { "name": "Ruby Server AI SDK", "type": "ai", "languages": ["Ruby"], "aiSdkNames": ["launchdarkly-server-sdk-ai"], "features": { "aiCompletionConfig": { "introduced": "0.1" }, "aiTrackMetrics": { "introduced": "0.1" } } } } }Notes on the values
aiSdkNamesis the package name this SDK reports asaiSdkNamein its$ld:ai:sdk:infoevent (lib/server/ai/sdk_info.rb). It is added ahead of the sdk-meta support that reads it — see launchdarkly/sdk-meta#607 — and the ingest tool ignores unknown fields, so it is inert until that lands.The value is not unique: the Python AI SDK reports the same string. sdk-meta pairs each name with the SDK's declared
languagesat generation time, sorubyversuspythonis what tells them apart. That is also why the language is not repeated here.releasesblock omitted — this repo tags bare semver (0.4.0, notv0.4.0), which is sdk-meta's default. Notag-prefixneeded.userAgents/wrapperNamesomitted — this SDK wraps a caller-suppliedLDClient. It opens no connections of its own and sets no wrapper name, so it has neither.pathomitted — not a monorepo, matching sdk-meta's existinglaunchdarkly_ruby-server-sdk.json.No judge, agent, or agent-graph features — verified rather than assumed.
git grep -niE "judge|agent" <tag> -- libreturns zero matches at every released tag (0.1.0 through 0.4.0).Clientexposes onlycompletion_config,create_tracker, and the deprecatedconfig.Only
ai-prefixed features are declared. Everything else in sdk-meta's feature vocabulary belongs to the base SDK, not to this layer.contexts,experimentation, andprivateAttrsare all provided bylaunchdarkly-ruby-server-sdk, where sdk-meta already records them — declaring them again here would double-count and would make every AI SDK look identical in the feature matrix.Each
introducedvalue was checked against the tree at that tag rather than inferred from current source.Effect
The SDK appears in sdk-meta's catalog on the next nightly crawl. It will not appear in
releases.jsonuntil a 1.0 release — sdk-meta drops all0.xversions from release and EOL data. That matches howfastly,shopify-oxygen, andsvelteare handled today.chore:rather thanfeat:deliberately —release-please-config.jsonsetsbump-minor-pre-major: true, so afeat:would cut 0.5.0 for a metadata file.Note
Overview
Adds
.sdk_metadata.jsonso the Ruby Server AI SDK is picked up by sdk-meta’s nightly crawl and shows up in the generated catalog (names.json,types.json,features.json,repos.json).The file registers
ruby-server-sdk-aias typeai, mapsaiSdkNamestolaunchdarkly-server-sdk-ai(aligned withSDK_NAMEinsdk_info.rb), and declaresaiCompletionConfigandaiTrackMetricsfrom version 0.1. No application source, build, or release behavior changes.Reviewed by Cursor Bugbot for commit ba0b446. Bugbot is set up for automated code reviews on this repo. Configure here.