René's URL Explorer Experiment


Title: feat(pii): regex-only block-output redaction + drop GLiNER/GPU image by TheodoreSpeaks · Pull Request #5697 · simstudioai/sim · GitHub

Open Graph Title: feat(pii): regex-only block-output redaction + drop GLiNER/GPU image by TheodoreSpeaks · Pull Request #5697 · simstudioai/sim

X Title: feat(pii): regex-only block-output redaction + drop GLiNER/GPU image by TheodoreSpeaks · Pull Request #5697 · simstudioai/sim

Description: Summary Restrict the block-output PII stage to regex/checksum entities only — drop the 4 spaCy-NER types (PERSON/LOCATION/NRP/DATE_TIME). Enforced at the UI grid, the API contract (migration-safe strip, never reject → existing rules stay saveable), and the resolver (so un-migrated rules can't feed NER into execution). Add a Presidio skip-spaCy fast path: regex-only requests reuse a blank NlpArtifacts to bypass the spaCy NER pass entirely — the per-leaf cost that made bulk block-output redaction slow. redact_batch logs nlp=skip|full. Remove the GLiNER/GPU image: strip torch/CUDA/GLiNER from docker/pii.Dockerfile, delete engines.py/requirements-gliner/bench+tests, restore server.py to a self-contained CPU spaCy service (keeps the NER-only pipe-disable ~2x win + the logging-emit fix), and drop the Helm pii.engine/pii.device wiring. Type of Change New feature + cleanup Testing 43 unit tests pass (regex-only grid + strip, contract transform, resolver strip); type-check, lint, check:api-validation:strict clean; py_compile server.py; helm lint + helm unittest (10/10) pass. ⚠️ The server skip-spaCy path is logic/syntax-verified but not runtime-tested locally (Presidio isn't installable here). Validate on staging: a regex-only block-output redaction should log nlp=skip and run dramatically faster than a NER (nlp=full) request. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Restrict the block-output PII stage to regex/checksum entities only — drop the 4 spaCy-NER types (PERSON/LOCATION/NRP/DATE_TIME). Enforced at the UI grid, the API contract (migration-safe ...

X Description: Summary Restrict the block-output PII stage to regex/checksum entities only — drop the 4 spaCy-NER types (PERSON/LOCATION/NRP/DATE_TIME). Enforced at the UI grid, the API contract (migration-safe ...

Opengraph URL: https://github.com/simstudioai/sim/pull/5697

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2d1e044c-42f9-fd51-89e0-9a3972738b13
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9832:CDD8D:9E22A0:E3885C:6A63855D
html-safe-nonce84b40be63d07596fd4c7c51f21fdb194be45400cf26ec2d23738b099b65f79e0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODMyOkNERDhEOjlFMjJBMDpFMzg4NUM6NkE2Mzg1NUQiLCJ2aXNpdG9yX2lkIjoiODczMTk4ODE0MTcyNDEwODEyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd34af6cb493de596595b2641c361ee5458ee684787a97bafa2a86d9dfc125aec
hovercard-subject-tagpull_request:4064026962
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5697/files
twitter:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
og:image:altSummary Restrict the block-output PII stage to regex/checksum entities only — drop the 4 spaCy-NER types (PERSON/LOCATION/NRP/DATE_TIME). Enforced at the UI grid, the API contract (migration-safe ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee4fb64aef87da454ec25b158147f7f5f14aef29216e5ca1612c2e48faa599d1f
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee839936ba5faffb9c836dda1cf4729d50c88a32e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5697/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5697%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5697%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/5697/files
Reloadhttps://github.com/simstudioai/sim/pull/5697/files
Reloadhttps://github.com/simstudioai/sim/pull/5697/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5697/files
simstudioai https://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Notifications https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Fork 3.7k https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Star 29.2k https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Code https://github.com/simstudioai/sim
Issues 111 https://github.com/simstudioai/sim/issues
Pull requests 121 https://github.com/simstudioai/sim/pulls
Actions https://github.com/simstudioai/sim/actions
Projects https://github.com/simstudioai/sim/projects
Security and quality 0 https://github.com/simstudioai/sim/security
Insights https://github.com/simstudioai/sim/pulse
Code https://github.com/simstudioai/sim
Issues https://github.com/simstudioai/sim/issues
Pull requests https://github.com/simstudioai/sim/pulls
Actions https://github.com/simstudioai/sim/actions
Projects https://github.com/simstudioai/sim/projects
Security and quality https://github.com/simstudioai/sim/security
Insights https://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
TheodoreSpeakshttps://github.com/TheodoreSpeaks
staginghttps://github.com/simstudioai/sim/tree/staging
feat/pii-regex-block-outputshttps://github.com/simstudioai/sim/tree/feat/pii-regex-block-outputs
Conversation 17 https://github.com/simstudioai/sim/pull/5697
Commits 4 https://github.com/simstudioai/sim/pull/5697/commits
Checks 17 https://github.com/simstudioai/sim/pull/5697/checks
Files changed https://github.com/simstudioai/sim/pull/5697/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5697/files
feat(pii): regex-only block-output redaction + drop GLiNER/GPU image https://github.com/simstudioai/sim/pull/5697/files#top
Show all changes 4 commits https://github.com/simstudioai/sim/pull/5697/files
005058f chore(pii): remove GLiNER/GPU image + add spaCy-skip fast path to CPU… TheodoreSpeaks Jul 15, 2026 https://github.com/simstudioai/sim/pull/5697/commits/005058f5e00de1e9e08aaeb031ee1734d3dd62cb
e2f5e48 feat(pii): restrict block-output redaction to regex-only entities TheodoreSpeaks Jul 15, 2026 https://github.com/simstudioai/sim/pull/5697/commits/e2f5e48b6244fda868d526f7ee4c42f660c52fc0
f8b45e6 fix(pii): derive spaCy-NER set from registry + skip fast path when sc… TheodoreSpeaks Jul 15, 2026 https://github.com/simstudioai/sim/pull/5697/commits/f8b45e6d846ac1b9fae42e7add2bb3b081c1f807
47ca743 fix(pii): include ORGANIZATION in app-side NER set (align with server) TheodoreSpeaks Jul 15, 2026 https://github.com/simstudioai/sim/pull/5697/commits/47ca74367a77e545422d0f9bc6d8d4bfa1cf990b
Clear filters https://github.com/simstudioai/sim/pull/5697/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5697/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5697/files
engines.py https://github.com/simstudioai/sim/pull/5697/files#diff-fbe90457362e24c1fba550733aa2c5d1f6631f23375e96edae7f41bfceacafc9
requirements-dev.txt https://github.com/simstudioai/sim/pull/5697/files#diff-f7a9125f0a589bcdf4e20571e6a25b1fa37d3fb8ae46981e3e53f0dfd40eddc8
requirements-gliner.txt https://github.com/simstudioai/sim/pull/5697/files#diff-631382ecf2c52bc4c26def2712572b38d746672c578c78d0d053010e00677694
bench_engines.py https://github.com/simstudioai/sim/pull/5697/files#diff-3a91363ef01402ecbacc8ddf5839033857ee2e631352b735772151f790ce2d6e
bench_payload.json https://github.com/simstudioai/sim/pull/5697/files#diff-977273acfc27de3f43322d8f6a02bd63acfb63005ee6c865fd8aa7d5c6cfffdf
server.py https://github.com/simstudioai/sim/pull/5697/files#diff-4447adf1c9c684d32a5fd31a17e05677749ef10d0ca6bce34ac9b6263e781a40
conftest.py https://github.com/simstudioai/sim/pull/5697/files#diff-6ce44a2f7bb2fc4fb40d1f8da636468417def63f018a2adcc0a5bc03ec700aff
test_engines.py https://github.com/simstudioai/sim/pull/5697/files#diff-2a33d1e9ba963e28973549f0bbc17effcfd4ca717d257c2f47e2b6f0de661ebb
test_integration.py https://github.com/simstudioai/sim/pull/5697/files#diff-ca7038f36b80b4066e03e590f590afe3d6915c0d3a9724e44516222c1ba28a1d
data-retention-settings.tsx https://github.com/simstudioai/sim/pull/5697/files#diff-764e9cf912d26c066290a0b604241370dd169586b89737be53eb4827da0b53ee
data-retention.test.ts https://github.com/simstudioai/sim/pull/5697/files#diff-e691139ee0a73509d793e51e34097725a0c48e4640c534205c88f048a13574d1
primitives.ts https://github.com/simstudioai/sim/pull/5697/files#diff-74acbd246ecd57f97189320f8dbdafcd78d0d5150fd1d25da51057ebd06f43f1
retention.test.ts https://github.com/simstudioai/sim/pull/5697/files#diff-f1bcd54f5d77bb6490d2eb8a3aef690ee5570ed2f6db11c4b31b6b4a302c5980
retention.ts https://github.com/simstudioai/sim/pull/5697/files#diff-31038279e82d6e375ed75ef055381db410d7e64a5c82e785f385bb2f1684eca0
pii-entities.test.ts https://github.com/simstudioai/sim/pull/5697/files#diff-454b1db3f3fab61a5307b632636eb332976d17631b3914bbbd3cef135dc757aa
pii-entities.ts https://github.com/simstudioai/sim/pull/5697/files#diff-152b565f41d018f52e7c31ea9388b68cd91a311b278499da00808224f70738d2
pii.Dockerfile https://github.com/simstudioai/sim/pull/5697/files#diff-9ffed6e2379c4cb446d31f12ffaf134779b805cf63f2083664be12267918a8e2
deployment-pii.yaml https://github.com/simstudioai/sim/pull/5697/files#diff-d3d1dde5e4a0eb52d77b759ca172a47fe2daf307769e49edbbbe66a05b2650d7
pii_test.yaml https://github.com/simstudioai/sim/pull/5697/files#diff-cfc33b707268cfa11d88d46284224b5a916982a2804a4c1c2198d0d967cb496b
values.schema.json https://github.com/simstudioai/sim/pull/5697/files#diff-3203678a723acd84dd61f119ae4b9e439b04d35a123c7918821e20c31a72c791
values.yaml https://github.com/simstudioai/sim/pull/5697/files#diff-5586790157aac5be1a3be674910d22e602e8c840abbf289d0ad31ffb5dac5cb1
apps/pii/engines.pyhttps://github.com/simstudioai/sim/pull/5697/files#diff-fbe90457362e24c1fba550733aa2c5d1f6631f23375e96edae7f41bfceacafc9
View file https://github.com/simstudioai/sim/blob/bfe83869e8be885eda44dd65785369227f321f3a/apps/pii/engines.py
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/simstudioai/sim/pull/5697/files
apps/pii/requirements-dev.txthttps://github.com/simstudioai/sim/pull/5697/files#diff-f7a9125f0a589bcdf4e20571e6a25b1fa37d3fb8ae46981e3e53f0dfd40eddc8
View file https://github.com/simstudioai/sim/blob/bfe83869e8be885eda44dd65785369227f321f3a/apps/pii/requirements-dev.txt
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/simstudioai/sim/pull/5697/files
apps/pii/requirements-gliner.txthttps://github.com/simstudioai/sim/pull/5697/files#diff-631382ecf2c52bc4c26def2712572b38d746672c578c78d0d053010e00677694
View file https://github.com/simstudioai/sim/blob/bfe83869e8be885eda44dd65785369227f321f3a/apps/pii/requirements-gliner.txt
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/simstudioai/sim/pull/5697/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5697/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5697/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.