feat(poc): catalog-gen, a cli tool to generate new entity catalogs [V2] #2219
Draft
Al-Pragliola wants to merge 8 commits intokubeflow:mainfrom
Draft
feat(poc): catalog-gen, a cli tool to generate new entity catalogs [V2] #2219Al-Pragliola wants to merge 8 commits intokubeflow:mainfrom
Al-Pragliola wants to merge 8 commits intokubeflow:mainfrom
Conversation
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
486c71e to
f984f2a
Compare
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.
Description
This PR introduces a plugin-based catalog architecture that evolves the Model Catalog from a single-purpose service into a generic, extensible platform for managing diverse AI assets —
models, MCP servers, datasets, and more.
The existing Model Catalog is wrapped as a plugin with zero breaking changes: all current API paths, schemas, and behaviors are preserved. New asset types are added as independent
plugins, each with their own API surface, database tables, and data providers, all running under a unified
catalog-server.A companion CLI tool,
catalog-gen, scaffolds complete catalog plugins from a declarative YAML configuration, generating all boilerplate deterministically. Post-boilerplate steps (businesslogic, provider implementation, testing) are supported by generated AI agent workflows.
For a detailed architecture description, see #2220
Key Features
Plugin System
CatalogPlugininterface with lifecycle management: Init, Start, Stop, Healthy, RegisterRoutes, Migrationsinit()— adding a plugin is a blank importsources.yaml— each plugin reads its own data source definitions/healthz,/readyz,/api/pluginsModel Catalog as a Plugin
catalog/plugins/model/with no API changes/api/model_catalog/v1alpha1/Generic Catalog Framework
Loader[E, A],ProviderRegistry[E, A],ProviderFunc[E, A]filterQueryparameter across all list endpoints — SQL-like syntax with comparison, pattern matching, set membership, and logical operatorsPlugin API Schema Strategy
catalog/plugins/<name>/api/openapi/BaseResource,BaseResourceList,MetadataValue, etc.) inapi/openapi/src/lib/common.yamlscripts/merge_catalog_specs.sh) combines all plugin specs into a unifiedcatalog-spec.yamlwith schema prefixing, path absolutization, and conflict avoidancemake openapi/validatecatalog-gen— Deterministic Scaffoldingcatalog-gen init <name> --entity=<Entity> --package=<pkg>catalog.yaml: models, repositories, OpenAPI specs, providers, filter mappings, Makefilecatalog-gen generateregenerates non-editable files after schema changes; editable files (service impl, providers) are never overwrittenadd-property,add-artifact,add-artifact-property,gen-testdataAgentic Workflows
catalog-gengenerates.claude/commands/and.claude/skills/per plugin/add-property,/add-artifact,/regenerate,/fix-build,/gen-testdataCLAUDE.mdgenerated per plugin with architecture summary, type mappings, and workflow guideProject Structure
How Has This Been Tested?
Merge criteria:
DCOcheck)ok-to-testhas been added to the PR.