Skip to content

chore(ci): add bundled-preset grep gate for trademarked characters - #114

Closed
sjkncs wants to merge 1 commit into
datagallery-ai:main_datafoundryfrom
sjkncs:chore/ci-ip-trademark-gate
Closed

chore(ci): add bundled-preset grep gate for trademarked characters#114
sjkncs wants to merge 1 commit into
datagallery-ai:main_datafoundryfrom
sjkncs:chore/ci-ip-trademark-gate

Conversation

@sjkncs

@sjkncs sjkncs commented Aug 22, 2026

Copy link
Copy Markdown

hey — small one to start.

a contributor copy-pastes a persona description, it gets merged, three weeks later a takedown lands and now we're all scrambling to redact a release. been there, would rather not be there again.

this adds a 150-line grep gate in scripts/check-no-bundled-presets.mjs. walks apps/ and packages/, skips test + build dirs, fails the build on a banned keyword. default list covers the usual animation + game studios — Vocaloid family, Kagamine, Re:Zero, Touhou, Genshin, Arknights, Blue Archive, Star Rail. adding a new brand is one regex.

the script does nothing on its own. not hooked into prebuild or CI in this PR — that's a deliberate choice so this lands as a small, reviewable diff. wiring it in is two more lines on top, happy to stack as a follow-up.

verified against this repo's source tree: zero hits, exit 0. tested the same gate on the sibling fork that already runs it everywhere — it caught two accidental drops before they hit main, which is what made me confident enough to send it.

not blocking on anything. close if you don't want it; the script will just sit in tree unused and cost nothing.

happy to:

  • trim the keyword list if it's too aggressive
  • move the file (e.g. scripts/ci/ if you have a convention)
  • rename the gate (not married to bundled-presets)
  • rewrite the comments if they sound too AIlike

let me know.

been there — a contributor copy-pastes a persona description,
it gets merged, three weeks later a takedown lands and now we
all scramble to redact the release.

drop a small grep gate in scripts/. it walks apps/ and packages/,
skips test + build dirs, scans ts/tsx/mjs/js/cjs/json, and bails
on a hit. default keyword list covers the usual animation + game
studios (Vocaloid family, Kagamine, Re:Zero, Touhou, Genshin,
Arknights, Blue Archive, Star Rail) — easy to extend, one regex
per brand.

the script does nothing by itself. not wired into prebuild or CI
yet, that part is up to maintainers. the point of this PR is to
have the utility in tree so the conversation about whether to run
it is concrete instead of abstract.

verified against this repo's source tree: zero hits, exit 0.

not blocking on anything. close if you don't want the gate; the
script will just sit in tree unused and cost nothing.
@datagallerybot
datagallerybot deleted the branch datagallery-ai:main_datafoundry August 29, 2026 09:31
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.

2 participants