Files
treg/scripts
Jason ZhouandClaude Opus 5 a6d756759a feat(catalog): curation tooling — ingest, validate, verify, fx
- catalog_ingest.py: bulk-generate the extended tier from a provider's own
  spec. Re-runnable (same input, byte-identical output), core wins on
  collision, and verification stamps survive regeneration
- catalog_validate.py: schema + referential integrity, two rule sets for the
  two tiers, exactly-one-state, and a credential leak scan
- catalog_verify.py / catalog_verify_extended.py: live-test endpoints and
  capture examples. --via-treg routes through the /call proxy so an OAuth
  provider verifies with the token treg already holds; the bulk runner adds
  budget caps, --out/--merge for parallel batches, and balance readback
- catalog_fx_update.py: refresh the FX table so costs display in one currency

Verification lessons are documented, not just implemented: a uniform block of
identical failures is our tooling until proven otherwise; after fixing such a
bug, re-run every batch that ran before the fix; retries are free only under
per-success billing; a spend cap that reads a missing price as zero cannot
fire.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 22:51:23 +10:00
..