Repository navigation
Add agent-readable catalog export and schema - #5
Merged
Merged
Conversation
HuffmanMainNode
marked this pull request as ready for review
November 3, 2026 00:45
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
Adds a dependency-free, offline JSON export so agents and other tools can consume the catalog without scraping Markdown.
Deliverables
scripts/catalog_export.py: validates the local catalog, then emits one structured JSON entry per Markdown card.schemas/catalog-index.schema.json: documents the exported record shape.docs/AGENT_INTEGRATION.md: explains safe agent consumption and trust boundaries.tests/test_catalog_export.py: tests dual-index preservation, normalized categories, explicit review status, refusal to export invalid catalogs, and direct CLI invocation.Design choices
Newly discovered catalog quality issue
The corrected duplicate audit identifies 49 same-index duplicate groups in the existing 625-card catalog. Many appear to be repeated cards across taxonomy aliases (such as
MLandml) or multiple category placements. They are preserved for human review and are not deleted or silently reclassified. The README and schema documentation now disclose this corrected baseline.Validation
The first CI attempt caught a direct-script import-path defect in the new exporter. That is fixed with explicit package/direct-execution import handling and a subprocess regression test. The next CI run must pass all tests, the 625-card local audit, and export generation on Python 3.11, 3.12, and 3.13 before merge.
Limits
The export is an offline discovery index. It does not verify upstream source code, security, official status, maintenance, or license rights.