Add generated ARD catalog compatibility - #17
Open
MattBabbage wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Generates an ARD ingestion artifact from canonical catalog entries and verifies freshness in CI.
Changes:
- Adds deterministic catalog generation and validation.
- Documents regeneration steps.
- Adds pull-request freshness checks.
Show a summary per file
| File | Description |
|---|---|
scripts/generate_ai_catalog.py |
Generates and validates the aggregate catalog. |
ai-catalog.json |
Contains the generated ingestion catalog. |
.github/workflows/catalog.yml |
Checks aggregate freshness. |
README.md |
Documents the generated artifact. |
CONTRIBUTING.md |
Adds contributor regeneration steps. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 4/5 changed files
- Comments generated: 2
- Review effort level: Balanced
Comment on lines
+50
to
+51
| generated = dict(entry) | ||
| generated["identifier"] = "urn:air:" + entry["identifier"][len("urn:ai:") :] |
Comment on lines
+41
to
+42
| if sum(entry.get(field) is not None for field in ("url", "data")) != 1: | ||
| fail(f"{path.relative_to(ROOT)}: exactly one of url or data is required") |
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.
Summary
catalog/<publisher>/<name>.jsonas the canonical contributor layoutai-catalog.jsonfor ARD ingestion with deterministic ordering and validationurn:ai:identifiers to the ingestion parser's requiredurn:air:prefixValidation
python3 scripts/generate_ai_catalog.py --check