Skip to content

Exclude models-snapshot.js from telemetry verification#25

Merged
standardnguyen merged 1 commit intomainfrom
fix/models-snapshot-exclude
Apr 14, 2026
Merged

Exclude models-snapshot.js from telemetry verification#25
standardnguyen merged 1 commit intomainfrom
fix/models-snapshot-exclude

Conversation

@standards-bot-lola
Copy link
Copy Markdown
Collaborator

Summary

  • Adds --exclude=models-snapshot.js to EXCLUDE_ARGS in both scripts/verify-clean.sh and tests/static/check-source.sh
  • The build generates models-snapshot.js (not .ts) containing provider metadata with models.dev URLs. The existing exclude only had .ts, so both scripts would fail after a local build.

Fixes #23

The build generates models-snapshot.js (not .ts) containing provider
metadata with models.dev URLs. The exclude list only had .ts, so
verify-clean and check-source would fail after a local build.

Fixes #23

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@standardnguyen standardnguyen merged commit 5725142 into main Apr 14, 2026
3 checks passed
standards-bot-lola pushed a commit that referenced this pull request Apr 14, 2026
Instead of excluding models-snapshot.js/ts and models-api.json from the
telemetry scan (which creates blind spots), remove models.dev from the
domain list and verify the strip directly: grep for the "Stripped: no
remote model catalog fetch" sentinel in models.ts refresh().

This matches the approach check-binary.sh already uses (BANNED_DOMAINS_STRICT
excludes models.dev with the same rationale). Now all three scan scripts
are consistent.

Supersedes #25.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Verify-clean faild for "models.dev" in models-snapshot.js

2 participants