feat(catalog): worker-settable source_url + schema tags#1
Merged
Conversation
The vgi-lint metadata linter (and the extension) expose a catalog `source_url` and schema-level tags (`vgi.description_llm` / `vgi.description_md`), but the worker SDK had no way to set them: `serialize_catalog_info` hard-coded `source_url` to None, and `CatSchema` had no `tags` field. - CatalogModel: add `source_url: Option<String>`; serialize_catalog_info now reads it instead of emitting None. - CatSchema: add `tags: Vec<(String, String)>` (and derive Default); the dispatcher's schema_info_for now surfaces them via SchemaInfo.tags (duckdb_schemas().tags). - Update vgi-example-worker catalog literals for the new fields. Verified end-to-end: a worker that sets catalog source_url + schema description_llm/description_md tags now passes `vgi-lint --fail-on info` (VGI004/VGI116/VGI118 cleared; 100/100). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
The
vgi-lintmetadata linter and the extension surface a catalogsource_urland schema-level tags (vgi.description_llm/vgi.description_md), but the worker SDK had no way to set them:serialize_catalog_infohard-codedsource_urltoNone.CatSchemahad notagsfield.This adds:
CatalogModel.source_url: Option<String>(read byserialize_catalog_info).CatSchema.tags: Vec<(String, String)>(+Defaultderive), surfaced via the dispatcher'sschema_info_for→SchemaInfo.tags→duckdb_schemas().tags.Verified end-to-end: built vgi-units against this SDK with catalog
source_url+ schemadescription_llm/description_mdset →vgi-lint --fail-on infogoes from 3 findings to 0 (100/100); VGI004/VGI116/VGI118 cleared.cargo fmt+clippy -D warningsclean;cargo test -p vgigreen.Ships in the in-progress 0.8.0. Workers adopt it by bumping to vgi 0.8.0 and populating the new fields.
🤖 Generated with Claude Code