Skip to content

Add agent-readable catalog export and schema - #5

Merged
HuffmanMainNode merged 12 commits into
mainfrom
feature/agent-readable-catalog-export
Nov 3, 2026
Merged

HuffmanMainNode merged 12 commits into
mainfrom
feature/agent-readable-catalog-export

Conversation

@HuffmanMainNode

@HuffmanMainNode HuffmanMainNode commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

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.
  • README and catalog-schema documentation updated.
  • CI now generates the machine-readable export on every validation run.

Design choices

  • No network requests, paid APIs, third-party runtime dependencies, or hosted service.
  • Source-card provenance is retained for every entry.
  • Duplicate cards across indexes and categories remain separate source records.
  • Every classification is labeled as a discovery hint requiring human review.
  • Upstream status is explicitly marked as not checked by this export.
  • Agents are instructed not to treat catalog inclusion as endorsement, safety, or license approval.

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 ML and ml) 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.

@HuffmanMainNode
HuffmanMainNode marked this pull request as ready for review November 3, 2026 00:45
@HuffmanMainNode
HuffmanMainNode merged commit 5edc3a2 into main Nov 3, 2026
3 checks passed
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