Skip to content

fix(catalog): surface real extraction errors and self-heal CI labels - #68

Merged
BrainerVirus merged 1 commit into
mainfrom
fix/catalog-break-hardening
Sep 2, 2026
Merged

fix(catalog): surface real extraction errors and self-heal CI labels#68
BrainerVirus merged 1 commit into
mainfrom
fix/catalog-break-hardening

Conversation

@BrainerVirus

Copy link
Copy Markdown
Owner

Two permanent hardenings for the fragile paths documented in AGENTS.md

1. extractModelCatalog surfaces the real eval error

Previously every candidate span's failure was swallowed and the throw was a generic Could not evaluate model catalog — the 1.40.1 $R is not defined break required manual tarball reproduction to diagnose. Now the first candidate error is kept and appended:

Could not evaluate model catalog: $TOTALLY_MISSING is not defined

The catalog-break issue body will contain the actionable message directly. Regression-tested with a fixture referencing an unbindable identifier.

2. catalog-sync.yml self-heals the catalog-break / automation labels

The break-issue flow hard-failed (gh issue create → exit 1) whenever the labels were missing, as happened when the repo had issues disabled. A new Ensure automation labels step runs before the sync and force-creates both labels. Guarded by a release-workflow.test.ts case that asserts step existence and ordering (before catalog-sync-ci.ts).

TDD: both behaviors written as failing tests first. bun run check green (155 tests).

Note: touches src/catalog.ts → semantic-release will cut a patch (intended fix(catalog) release path).

extractModelCatalog kept the first candidate failure private and threw a generic 'Could not evaluate model catalog', so a new minified bundle shape (e.g. the $R is not defined regression) required manual reproduction to diagnose. The error now names the missing binding.

catalog-sync.yml failed to open catalog-break issues whenever the repo labels were missing (issues disabled at the time); the workflow now force-creates catalog-break and automation labels before every sync run.
@BrainerVirus
BrainerVirus merged commit 91da631 into main Sep 2, 2026
5 checks passed
@BrainerVirus
BrainerVirus deleted the fix/catalog-break-hardening branch September 2, 2026 15:02
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.7.47 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant