Skip to content

feat(catalog): worker-settable source_url + schema tags#1

Merged
rustyconover merged 1 commit into
mainfrom
feat/catalog-schema-metadata
Jun 24, 2026
Merged

feat(catalog): worker-settable source_url + schema tags#1
rustyconover merged 1 commit into
mainfrom
feat/catalog-schema-metadata

Conversation

@rustyconover

Copy link
Copy Markdown
Contributor

The vgi-lint metadata linter and the extension surface 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.
  • CatSchema had no tags field.

This adds:

  • CatalogModel.source_url: Option<String> (read by serialize_catalog_info).
  • CatSchema.tags: Vec<(String, String)> (+ Default derive), surfaced via the dispatcher's schema_info_forSchemaInfo.tagsduckdb_schemas().tags.
  • example-worker catalog literals updated for the new fields.

Verified end-to-end: built vgi-units against this SDK with catalog source_url + schema description_llm/description_md set → vgi-lint --fail-on info goes from 3 findings to 0 (100/100); VGI004/VGI116/VGI118 cleared. cargo fmt + clippy -D warnings clean; cargo test -p vgi green.

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

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>
@rustyconover rustyconover merged commit 5490a85 into main Jun 24, 2026
9 checks passed
@rustyconover rustyconover deleted the feat/catalog-schema-metadata branch June 24, 2026 15:49
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