ENGINEERING

Auto-pin or revert HF models that drift off the license allowlist

Continuously checks tracked HuggingFace models against an approved-license allowlist.

CategoryEngineering
Enginesim
Difficultyadvanced
Triggerschedule
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerScheduled allowlist check fires
  • ActionLoad tracked models and last-good revisionsPostgreSQLPostgres
  • ActionFetch current license per model cardHugging FaceHugging Face
  • LogicFlag licenses not on the approved allowlist
  • ActionOpen PR pinning repo to last-good revisionGitHubGitHub
  • OutputOpen issue documenting the disallowed licenseGitHubGitHub

What it does

This workflow enforces a hard license allowlist on the HuggingFace models in your repos. On a schedule it compares each model card's current license to your approved SPDX list. Models still on the allowlist are left alone. Models that have drifted to a disallowed license are automatically pinned back to the last revision known to carry an approved license, and a GitHub issue is opened documenting the revert and the offending license so the team can decide next steps.

When to use it

Use it when you have a firm policy on acceptable licenses and want enforcement, not just alerts — keeping production on safe revisions automatically while a human reviews whether to migrate off the model entirely.

How it works

  1. 1A schedule triggers the allowlist check.
  2. 2It loads tracked models and their last-good approved revisions from Postgres.
  3. 3It fetches each model card's current license from HuggingFace.
  4. 4A branch flags any license not on the approved allowlist.
  5. 5For flagged models it opens a GitHub PR pinning the repo to the last-good revision.
  6. 6It opens a GitHub issue documenting the disallowed license and the auto-pin action.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect Hugging FaceModels, datasets, spaces — the open-source hub.
  2. 2
    Connect GitHubRepos, issues, pull requests, actions.
  3. 3
    Connect PostgresAny Postgres URL — query, write, migrate.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.