Skip to content
SkilledDragonEngineering Intelligence
MinilabKeylessOctober 21, 2026

WeightsPass checks an open-weights model's license, gate and size before you adopt it

A pre-flight check that reads Hugging Face Hub and GitHub metadata, never the weights, and returns PASS or REVIEW with a source URL on every fact. The keyless run uses four invented models.

By David Discua

Measured in the lab

4
synthetic models checked
1 PASS, 3 REVIEW
verdicts
55/55
facts with a source URL
4/4
live path vs replay, identical
WP-LICENSE-CLASS2
WP-GATE1
WP-DAY01
WP-LICENSE-FILE1
WP-WEIGHTS-FORMAT1
WP-REMOTE-CODE1
  • Synthetic Apache-2.0 model passed with parameters verified by headers
  • Custom license with a manual gate went to REVIEW
  • Pickle-only weights and auto_map remote code went to REVIEW
  • Fake model answer with an invented quote changed 0 verdicts
  • Exit code 2 when any model needs REVIEW

From reports/measured.json · run on October 21, 2026. Keyless replay of fixtures/synthetic/demo.json (neutral names, invented values) through the real CLI; the report carries no timestamp

How it is wired

checkmetadataday-zero probesrulesYouowner/model@revWeightsPassread-onlyHugging Face Hubcard, files, headersFramework repostagged releasesVerdictPASS or REVIEW

01/03You name a model and a revision.

WeightsPass is a pre-flight check for adopting open-weights models. Give it owner/model@revision and it reads public Hugging Face Hub and GitHub metadata, never the weights, then returns PASS or REVIEW with the facts behind it: license class and exact id, gate type, a parameter count checked against the safetensors headers, weight bytes per precision, an adapter ledger, and day-zero support in tagged framework releases. Every number in this post comes from a synthetic fixture with invented model names. The keyless run shows that the rules fire, the receipts are complete and the replay matches the live code path.

The catch

A PASS means no configured rule fired, and it is not legal advice. License classes come from fixed id lists, LICENSE files are matched by fingerprint, and clauses are found by fixed topic patterns, so NOTICE files, trademarks, patents, export rules and terms linked outside the repo are not covered. Metadata is whatever publishers declare, and adapters that do not declare base_model are missed. A day-zero hit means a framework's registry names the architecture at that tag, not that the model loads or runs well.

We did a live, read-only run over three public models on October 21, 2026. It finished in 13.38 s with 0 errors, and we do not publish verdicts on real, named models. The optional Gemini quote picker was tested only with a fake response.

What we ran (keyless)

bun install --frozen-lockfile
bun run weightspass check example-org/permissive-moe-a example-org/adapter-hub-c@v1.0 \
  --fixtures fixtures/synthetic/demo.json --policy fixtures/synthetic/policy.yaml --out out
bun run report

From reports/measured.json, a keyless replay through the real CLI on October 21, 2026:

Model (synthetic)VerdictRules firedLicenseGate
example-org/permissive-moe-aPASSnonepermissive (apache-2.0)none
example-org/custom-gated-bREVIEWWP-LICENSE-CLASS, WP-GATE, WP-DAY0custommanual
example-org/adapter-hub-cREVIEWWP-LICENSE-FILE, WP-WEIGHTS-FORMAT, WP-REMOTE-CODEpermissive (apache-2.0)none
example-org/copyleft-gguf-dREVIEWWP-LICENSE-CLASScopyleft (gpl-3.0)none

All 55 facts, reasons, clauses, precision rows and day-zero cells carried a source URL. Run through the live code path against a synthetic upstream, the four reports were identical to the fixture replay. Parameter counts came out as 1 verified by headers, 1 unverified because the repo is gated, and 2 with no safetensors. A fake model answer carrying an invented quote left 4 of 4 verdicts unchanged, and the invented quote was dropped. The replay made 24 Hugging Face requests (4 of them Range reads), 9 GitHub REST requests and 13 raw GitHub file reads, with a median of 29 ms for the four checks. engine-a and engine-b are mock frameworks that reuse the real probe code against made-up repos.

How it is wired

A branch or tag is resolved to its commit SHA first, and every later read uses that SHA. Parameter counts are checked with two HTTP Range requests per safetensors shard, up to 16 shards by default, or against model.safetensors.index.json. The day-zero probes and first-tag bisection come unchanged from our Day0Gap lab. The rules live in evaluate() in src/preflight.ts, defaults in weightspass.policy.example.yaml, and the same check runs as an MCP server with weightspass_check and weightspass_rules. Gemini only sees clauses WeightsPass already extracted, runs after the verdict is final, and any quote that is not a verbatim substring is dropped.

Minilab (open source)

The data comes from the Hugging Face Hub API and GitHub, and no keys are needed. Run bun run weightspass check owner/model@<commit-sha> --out out live and read-only (GitHub allows 60 REST requests an hour without a token), and the exit code is 2 when any model needs REVIEW.

Run it yourself

SkilledDragonCorp/weightspass

Clone, install and run the report with no API keys. The numbers above are what that run writes.

bun install --frozen-lockfile && bun run weightspass check example-org/permissive-moe-a example-org/adapter-hub-c@v1.0 --fixtures fixtures/synthetic/demo.json --policy fixtures/synthetic/policy.yaml --out out

SkilledDragon is not affiliated with Hugging Face, GitHub, Google (Gemini), the Model Context Protocol project, any framework project or any model publisher. Numbers come from a synthetic fixture. Not legal advice. Marks belong to their owners.

All labs