René's URL Explorer Experiment


Title: perf(pii): mask offloaded refs + parallelize + raise redaction concurrency by TheodoreSpeaks · Pull Request #5436 · simstudioai/sim · GitHub

Open Graph Title: perf(pii): mask offloaded refs + parallelize + raise redaction concurrency by TheodoreSpeaks · Pull Request #5436 · simstudioai/sim

X Title: perf(pii): mask offloaded refs + parallelize + raise redaction concurrency by TheodoreSpeaks · Pull Request #5436 · simstudioai/sim

Description: Summary Correctness fix: block-output and input redaction stages now hydrate → mask → re-store large-value refs. Function/tool outputs are offloaded to refs before reaching the redactor, and the string walk treats a ref as opaque — so big block outputs were coming back unredacted. Now covered (fails fast on the execution path). Parallelize large-value ref processing: collect refs across the whole payload and hydrate/mask/re-store them with bounded concurrency instead of one sequential pass per key (PII_REF_CONCURRENCY, default 4). Raise throughput: mask-batch chunk concurrency default 4 → 64 to saturate the load-balanced Presidio fleet behind the new internal ALB (PII_MASK_CHUNK_CONCURRENCY, env-tunable). Type of Change Bug fix Performance improvement Testing tsc clean, bun run lint, check:api-validation:strict pass 40 unit tests pass (added multi-ref/parallel + throw-mode coverage in pii-large-values.test.ts) Diagnosed against staging run b11e8f19 (function output offloaded to refs, zero Presidio calls → confirmed refs skipped) 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 Correctness fix: block-output and input redaction stages now hydrate → mask → re-store large-value refs. Function/tool outputs are offloaded to refs before reaching the redactor, and the s...

X Description: Summary Correctness fix: block-output and input redaction stages now hydrate → mask → re-store large-value refs. Function/tool outputs are offloaded to refs before reaching the redactor, and the s...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:dc6121cd-e091-9af6-6e81-0bc6b713c2d0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD39E:2BF3D1:25183D:340F4B:6AFB522D
html-safe-nonce454f8ffa5dd25c7a7f2251ec78b8fd2400aa50c929368add52a38d09622b5f20
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzlFOjJCRjNEMToyNTE4M0Q6MzQwRjRCOjZBRkI1MjJEIiwidmlzaXRvcl9pZCI6Ijc1MzI5Njk1NzM0Nzc5OTUwNTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac311b5d10b8153230a45d08061c991162eb434904c6d54ba9fb1a63251052d66a
hovercard-subject-tagpull_request:4001017365
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/5436/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 Correctness fix: block-output and input redaction stages now hydrate → mask → re-store large-value refs. Function/tool outputs are offloaded to refs before reaching the redactor, and the s...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
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
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5436/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5436%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5436%2Ffiles
Sign uphttps://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/5436/files
Reloadhttps://github.com/simstudioai/sim/pull/5436/files
Reloadhttps://github.com/simstudioai/sim/pull/5436/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://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
perf/pii-redaction-throughputhttps://github.com/simstudioai/sim/tree/perf/pii-redaction-throughput
Conversation 11 https://github.com/simstudioai/sim/pull/5436
Commits 4 https://github.com/simstudioai/sim/pull/5436/commits
Checks 17 https://github.com/simstudioai/sim/pull/5436/checks
Files changed https://github.com/simstudioai/sim/pull/5436/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5436/files
perf(pii): mask offloaded refs + parallelize + raise redaction concurrency https://github.com/simstudioai/sim/pull/5436/files#top
Show all changes 4 commits https://github.com/simstudioai/sim/pull/5436/files
3537faa perf(pii): mask offloaded refs in block outputs/input + parallelize +… TheodoreSpeaks Jul 6, 2026 https://github.com/simstudioai/sim/pull/5436/commits/3537faa7874d052225c7d835b389c336405fe223
932e2f9 fix(pii): keep resolveReplacements mapper total (respect mapWithConcu… TheodoreSpeaks Jul 6, 2026 https://github.com/simstudioai/sim/pull/5436/commits/932e2f90d3c026eb137da34bc0a3238c6bf1a832
0aa7648 feat(pii): make route->Presidio chunk concurrency env-tunable (PII_SE… TheodoreSpeaks Jul 6, 2026 https://github.com/simstudioai/sim/pull/5436/commits/0aa76488d8ae2fb41f6182089806e5df2914e23b
a4f8867 feat(pii): combined /redact + /redact_batch endpoint (one round-trip) TheodoreSpeaks Jul 6, 2026 https://github.com/simstudioai/sim/pull/5436/commits/a4f886774b8016ed6e34ebb60ef61244987112ce
Clear filters https://github.com/simstudioai/sim/pull/5436/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5436/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5436/files
server.py https://github.com/simstudioai/sim/pull/5436/files#diff-4447adf1c9c684d32a5fd31a17e05677749ef10d0ca6bce34ac9b6263e781a40
block-executor.ts https://github.com/simstudioai/sim/pull/5436/files#diff-56a5432011895e99101ab4af087446b215bca1a2b216e3c44a5087a11223000d
env.ts https://github.com/simstudioai/sim/pull/5436/files#diff-7db3fc610ff89cf819c4eb69b43ec37ae18530e1861f6c322faeb62f8f48f298
mask-client.ts https://github.com/simstudioai/sim/pull/5436/files#diff-8e6aeec5304a44062b4a7ecf04cf296b0f71d0ca7ec9567c89bf0718dbfffa97
validate_pii.test.ts https://github.com/simstudioai/sim/pull/5436/files#diff-86fbe23e3d8eeac22d4b46986d67330664de4fdda788cb815138d74e1c1ddd97
validate_pii.ts https://github.com/simstudioai/sim/pull/5436/files#diff-cc2e64c77312e17d68146afdb9708495ff2b8a265dafcd4dd289edf26f98fba0
pii-large-values.test.ts https://github.com/simstudioai/sim/pull/5436/files#diff-63d450d307947996b0226e832bb879039001f6a31392376d8535535610de80bf
pii-large-values.ts https://github.com/simstudioai/sim/pull/5436/files#diff-a0945120a671854c94e3a6a40f2a1229e454d7f38be21efe71503ec4765626c9
execution-core.ts https://github.com/simstudioai/sim/pull/5436/files#diff-2a32d546272efa06e3cbe2ccce1cf4e69c74ff37fe98253bcb2742ffed5bae4b
apps/pii/server.pyhttps://github.com/simstudioai/sim/pull/5436/files#diff-4447adf1c9c684d32a5fd31a17e05677749ef10d0ca6bce34ac9b6263e781a40
View file https://github.com/simstudioai/sim/blob/a4f886774b8016ed6e34ebb60ef61244987112ce/apps/pii/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5436/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5436/files#diff-4447adf1c9c684d32a5fd31a17e05677749ef10d0ca6bce34ac9b6263e781a40
https://github.com/simstudioai/sim/pull/5436/files#diff-4447adf1c9c684d32a5fd31a17e05677749ef10d0ca6bce34ac9b6263e781a40
https://github.com/simstudioai/sim/pull/5436/files#diff-4447adf1c9c684d32a5fd31a17e05677749ef10d0ca6bce34ac9b6263e781a40
apps/sim/executor/execution/block-executor.tshttps://github.com/simstudioai/sim/pull/5436/files#diff-56a5432011895e99101ab4af087446b215bca1a2b216e3c44a5087a11223000d
View file https://github.com/simstudioai/sim/blob/a4f886774b8016ed6e34ebb60ef61244987112ce/apps/sim/executor/execution/block-executor.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5436/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5436/files#diff-56a5432011895e99101ab4af087446b215bca1a2b216e3c44a5087a11223000d
https://github.com/simstudioai/sim/pull/5436/files#diff-56a5432011895e99101ab4af087446b215bca1a2b216e3c44a5087a11223000d
https://github.com/simstudioai/sim/pull/5436/files#diff-56a5432011895e99101ab4af087446b215bca1a2b216e3c44a5087a11223000d
https://github.com/simstudioai/sim/pull/5436/files#diff-56a5432011895e99101ab4af087446b215bca1a2b216e3c44a5087a11223000d
apps/sim/lib/core/config/env.tshttps://github.com/simstudioai/sim/pull/5436/files#diff-7db3fc610ff89cf819c4eb69b43ec37ae18530e1861f6c322faeb62f8f48f298
View file https://github.com/simstudioai/sim/blob/a4f886774b8016ed6e34ebb60ef61244987112ce/apps/sim/lib/core/config/env.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5436/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5436/files#diff-7db3fc610ff89cf819c4eb69b43ec37ae18530e1861f6c322faeb62f8f48f298
https://github.com/simstudioai/sim/pull/5436/files#diff-7db3fc610ff89cf819c4eb69b43ec37ae18530e1861f6c322faeb62f8f48f298
apps/sim/lib/guardrails/mask-client.tshttps://github.com/simstudioai/sim/pull/5436/files#diff-8e6aeec5304a44062b4a7ecf04cf296b0f71d0ca7ec9567c89bf0718dbfffa97
View file https://github.com/simstudioai/sim/blob/a4f886774b8016ed6e34ebb60ef61244987112ce/apps/sim/lib/guardrails/mask-client.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5436/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5436/files#diff-8e6aeec5304a44062b4a7ecf04cf296b0f71d0ca7ec9567c89bf0718dbfffa97
https://github.com/simstudioai/sim/pull/5436/files#diff-8e6aeec5304a44062b4a7ecf04cf296b0f71d0ca7ec9567c89bf0718dbfffa97
apps/sim/lib/guardrails/validate_pii.test.tshttps://github.com/simstudioai/sim/pull/5436/files#diff-86fbe23e3d8eeac22d4b46986d67330664de4fdda788cb815138d74e1c1ddd97
View file https://github.com/simstudioai/sim/blob/a4f886774b8016ed6e34ebb60ef61244987112ce/apps/sim/lib/guardrails/validate_pii.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5436/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5436/files#diff-86fbe23e3d8eeac22d4b46986d67330664de4fdda788cb815138d74e1c1ddd97
https://github.com/simstudioai/sim/pull/5436/files#diff-86fbe23e3d8eeac22d4b46986d67330664de4fdda788cb815138d74e1c1ddd97
https://github.com/simstudioai/sim/pull/5436/files#diff-86fbe23e3d8eeac22d4b46986d67330664de4fdda788cb815138d74e1c1ddd97
https://github.com/simstudioai/sim/pull/5436/files#diff-86fbe23e3d8eeac22d4b46986d67330664de4fdda788cb815138d74e1c1ddd97
apps/sim/lib/guardrails/validate_pii.tshttps://github.com/simstudioai/sim/pull/5436/files#diff-cc2e64c77312e17d68146afdb9708495ff2b8a265dafcd4dd289edf26f98fba0
View file https://github.com/simstudioai/sim/blob/a4f886774b8016ed6e34ebb60ef61244987112ce/apps/sim/lib/guardrails/validate_pii.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5436/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5436/files#diff-cc2e64c77312e17d68146afdb9708495ff2b8a265dafcd4dd289edf26f98fba0
https://github.com/simstudioai/sim/pull/5436/files#diff-cc2e64c77312e17d68146afdb9708495ff2b8a265dafcd4dd289edf26f98fba0
https://github.com/simstudioai/sim/pull/5436/files#diff-cc2e64c77312e17d68146afdb9708495ff2b8a265dafcd4dd289edf26f98fba0
https://github.com/simstudioai/sim/pull/5436/files#diff-cc2e64c77312e17d68146afdb9708495ff2b8a265dafcd4dd289edf26f98fba0
https://github.com/simstudioai/sim/pull/5436/files#diff-cc2e64c77312e17d68146afdb9708495ff2b8a265dafcd4dd289edf26f98fba0
https://github.com/simstudioai/sim/pull/5436/files#diff-cc2e64c77312e17d68146afdb9708495ff2b8a265dafcd4dd289edf26f98fba0
https://github.com/simstudioai/sim/pull/5436/files#diff-cc2e64c77312e17d68146afdb9708495ff2b8a265dafcd4dd289edf26f98fba0
apps/sim/lib/logs/execution/pii-large-values.test.tshttps://github.com/simstudioai/sim/pull/5436/files#diff-63d450d307947996b0226e832bb879039001f6a31392376d8535535610de80bf
View file https://github.com/simstudioai/sim/blob/a4f886774b8016ed6e34ebb60ef61244987112ce/apps/sim/lib/logs/execution/pii-large-values.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5436/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5436/files#diff-63d450d307947996b0226e832bb879039001f6a31392376d8535535610de80bf
Please reload this pagehttps://github.com/simstudioai/sim/pull/5436/files
https://github.com/simstudioai/sim/pull/5436/files#diff-63d450d307947996b0226e832bb879039001f6a31392376d8535535610de80bf
Please reload this pagehttps://github.com/simstudioai/sim/pull/5436/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5436/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.